HEX
Server: Apache/2.4.63 (Unix)
System: Linux Synopilou92 4.4.302+ #72806 SMP Mon Jul 21 23:16:00 CST 2025 x86_64
User: pilou92 (1026)
PHP: 8.0.30
Disabled: NONE
Upload Files
File: //volume1/@appstore/Spreadsheet/ui/dist/ui.sheet.js
(globalThis.webpackChunksynoffice_ui=globalThis.webpackChunksynoffice_ui||[]).push([["135"],{11853:function(e){e.exports=function(){var e=function(e,t,i,n){for(i=i||{},n=e.length;n--;i[e[n]]=t);return i},t=[1,3],i=[1,4],n=[1,5],o=[1,7],r=[1,19],a=[1,11],s=[1,12],l=[1,13],c=[1,14],d=[1,15],u=[1,16],h=[1,17],p=[1,18],f=[1,20],g=[1,27],m=[1,26],v=[1,22],b=[1,23],y=[1,24],w=[1,25],_=[1,28],x=[1,29],S=[1,30],C=[1,31],k=[1,32],I=[1,33],A=[1,34],T=[1,35],E=[5,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,38],R=[1,43],D=[1,44],O=[5,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,25,36,38],M=[5,7,8,9,11,12,13,14,15,16,17,18,19,20,21,38],N=[25,36],P=[1,66],L=[25,36,38],B=[7,38],F=[5,7,8,9,12,13,14,15,16,17,18,19,20,38],V=[5,7,8,9,14,15,16,17,18,19,20,38],z=[5,7,15,16,17,18,19,20,38],H={trace:function(){},yy:{},symbols_:{error:2,formula:3,expression:4,EOF:5,"(":6,")":7,"-":8,"+":9,":":10,"^":11,"*":12,"/":13,"&":14,"<>":15,"<=":16,">=":17,"=":18,"<":19,">":20,"%":21,constant:22,"{":23,listrows:24,"}":25,cellref:26,FUNC_NAME:27,arglist:28,name:29,FUNCTION:30,ERROR:31,LOGIC:32,NUMBER:33,STRING:34,listrow:35,SEMICOLON:36,listelem:37,COMMA:38,CELL:39,COLRANGECELL:40,ROWRANGECELL:41,SHEETNAME:42,VARIABLE:43,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",6:"(",7:")",8:"-",9:"+",10:":",11:"^",12:"*",13:"/",14:"&",15:"<>",16:"<=",17:">=",18:"=",19:"<",20:">",21:"%",23:"{",25:"}",30:"FUNCTION",31:"ERROR",32:"LOGIC",33:"NUMBER",34:"STRING",36:"SEMICOLON",38:"COMMA",39:"CELL",40:"COLRANGECELL",41:"ROWRANGECELL",42:"SHEETNAME",43:"VARIABLE"},productions_:[0,[3,2],[4,3],[4,2],[4,2],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,2],[4,1],[4,3],[4,1],[4,4],[4,1],[27,1],[22,1],[22,1],[22,1],[22,1],[24,1],[24,3],[35,1],[35,3],[37,1],[37,2],[37,2],[28,0],[28,1],[28,2],[28,3],[26,1],[26,1],[26,1],[26,2],[26,2],[26,2],[29,1],[29,2]],performAction:function(e,t,i,n,o,r,a){var s=r.length-1;switch(o){case 1:return r[s-1];case 2:this.$=r[s-1];break;case 3:this.$=n.handler.callOperator("invert",[r[s]]);break;case 4:this.$=n.handler.callOperator("plus",[r[s]]);break;case 5:n.handler.addCellRef(r[s-2],r[s]),this.$=r[s-2];break;case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:case 15:case 16:case 17:this.$=n.handler.callOperator(r[s-1],[r[s-2],r[s]]);break;case 18:this.$=n.handler.callOperator(r[s],[r[s-1]]);break;case 19:this.$=n.handler.createExpr(r[s]);break;case 20:this.$=n.handler.createConstantArrayExpr(r[s-1]);break;case 21:case 23:case 33:this.$=r[s];break;case 22:n.handler.leaveFunction(r[s-3]),this.$=n.handler.callFunction(r[s-3].toUpperCase(),r[s-1],n);break;case 24:this.$=r[s],n.handler.enterFunction(r[s].toUpperCase());break;case 25:this.$=n.handler.getErrorFromText(r[s].toUpperCase());break;case 26:this.$="TRUE"===r[s].toUpperCase();break;case 27:case 35:this.$=n.handler.numberify(r[s]);break;case 28:this.$=n.handler.extractString(r[s]);break;case 29:case 31:this.$=[r[s]];break;case 30:case 32:r[s-2].push(r[s]),this.$=r[s-2];break;case 34:this.$=-n.handler.numberify(r[s]);break;case 36:this.$=n.handler.createArgs();break;case 37:this.$=n.handler.createArgs(r[s]);break;case 38:0===r[s-1].length&&n.handler.pushArgs(r[s-1],n.handler.createExpr()),n.handler.pushArgs(r[s-1],n.handler.createExpr());break;case 39:0===r[s-2].length&&n.handler.pushArgs(r[s-2],n.handler.createExpr()),n.handler.pushArgs(r[s-2],r[s]);break;case 40:this.$=n.handler.createCellRefExpr(r[s]);break;case 41:this.$=n.handler.createColRefExpr(r[s]);break;case 42:this.$=n.handler.createRowRefExpr(r[s]);break;case 43:this.$=n.handler.createCellRefExpr(r[s],r[s-1]);break;case 44:this.$=n.handler.createColRefExpr(r[s],r[s-1]);break;case 45:this.$=n.handler.createRowRefExpr(r[s],r[s-1]);break;case 46:this.$=n.handler.getVariableExpr(r[s]);break;case 47:this.$=n.handler.getVariableExpr(r[s],r[s-1].slice(0,-1))}},table:[{3:1,4:2,6:t,8:i,9:n,22:6,23:o,26:8,27:9,29:10,30:r,31:a,32:s,33:l,34:c,39:d,40:u,41:h,42:p,43:f},{1:[3]},{5:[1,21],8:g,9:m,10:v,11:b,12:y,13:w,14:_,15:x,16:S,17:C,18:k,19:I,20:A,21:T},{4:36,6:t,8:i,9:n,22:6,23:o,26:8,27:9,29:10,30:r,31:a,32:s,33:l,34:c,39:d,40:u,41:h,42:p,43:f},{4:37,6:t,8:i,9:n,22:6,23:o,26:8,27:9,29:10,30:r,31:a,32:s,33:l,34:c,39:d,40:u,41:h,42:p,43:f},{4:38,6:t,8:i,9:n,22:6,23:o,26:8,27:9,29:10,30:r,31:a,32:s,33:l,34:c,39:d,40:u,41:h,42:p,43:f},e(E,[2,19]),{8:R,9:D,22:42,24:39,31:a,32:s,33:l,34:c,35:40,37:41},e(E,[2,21]),{6:[1,45]},e(E,[2,23]),e(O,[2,25]),e(O,[2,26]),e(O,[2,27]),e(O,[2,28]),e(E,[2,40]),e(E,[2,41]),e(E,[2,42]),{39:[1,46],40:[1,47],41:[1,48],43:[1,49]},{6:[2,24]},e(E,[2,46]),{1:[2,1]},{4:50,6:t,8:i,9:n,22:6,23:o,26:8,27:9,29:10,30:r,31:a,32:s,33:l,34:c,39:d,40:u,41:h,42:p,43:f},{4:51,6:t,8:i,9:n,22:6,23:o,26:8,27:9,29:10,30:r,31:a,32:s,33:l,34:c,39:d,40:u,41:h,42:p,43:f},{4:52,6:t,8:i,9:n,22:6,23:o,26:8,27:9,29:10,30:r,31:a,32:s,33:l,34:c,39:d,40:u,41:h,42:p,43:f},{4:53,6:t,8:i,9:n,22:6,23:o,26:8,27:9,29:10,30:r,31:a,32:s,33:l,34:c,39:d,40:u,41:h,42:p,43:f},{4:54,6:t,8:i,9:n,22:6,23:o,26:8,27:9,29:10,30:r,31:a,32:s,33:l,34:c,39:d,40:u,41:h,42:p,43:f},{4:55,6:t,8:i,9:n,22:6,23:o,26:8,27:9,29:10,30:r,31:a,32:s,33:l,34:c,39:d,40:u,41:h,42:p,43:f},{4:56,6:t,8:i,9:n,22:6,23:o,26:8,27:9,29:10,30:r,31:a,32:s,33:l,34:c,39:d,40:u,41:h,42:p,43:f},{4:57,6:t,8:i,9:n,22:6,23:o,26:8,27:9,29:10,30:r,31:a,32:s,33:l,34:c,39:d,40:u,41:h,42:p,43:f},{4:58,6:t,8:i,9:n,22:6,23:o,26:8,27:9,29:10,30:r,31:a,32:s,33:l,34:c,39:d,40:u,41:h,42:p,43:f},{4:59,6:t,8:i,9:n,22:6,23:o,26:8,27:9,29:10,30:r,31:a,32:s,33:l,34:c,39:d,40:u,41:h,42:p,43:f},{4:60,6:t,8:i,9:n,22:6,23:o,26:8,27:9,29:10,30:r,31:a,32:s,33:l,34:c,39:d,40:u,41:h,42:p,43:f},{4:61,6:t,8:i,9:n,22:6,23:o,26:8,27:9,29:10,30:r,31:a,32:s,33:l,34:c,39:d,40:u,41:h,42:p,43:f},{4:62,6:t,8:i,9:n,22:6,23:o,26:8,27:9,29:10,30:r,31:a,32:s,33:l,34:c,39:d,40:u,41:h,42:p,43:f},e(E,[2,18]),{7:[1,63],8:g,9:m,10:v,11:b,12:y,13:w,14:_,15:x,16:S,17:C,18:k,19:I,20:A,21:T},e(M,[2,3],{10:v}),e(M,[2,4],{10:v}),{25:[1,64],36:[1,65]},e(N,[2,29],{38:P}),e(L,[2,31]),e(L,[2,33]),{33:[1,67]},{33:[1,68]},e(B,[2,36],{22:6,26:8,27:9,29:10,28:69,4:70,6:t,8:i,9:n,23:o,30:r,31:a,32:s,33:l,34:c,39:d,40:u,41:h,42:p,43:f}),e(E,[2,43]),e(E,[2,44]),e(E,[2,45]),e(E,[2,47]),e(E,[2,5]),e([5,7,8,9,11,12,13,14,15,16,17,18,19,20,38],[2,6],{10:v,21:T}),e(F,[2,7],{10:v,11:b,21:T}),e(F,[2,8],{10:v,11:b,21:T}),e(V,[2,9],{10:v,11:b,12:y,13:w,21:T}),e(V,[2,10],{10:v,11:b,12:y,13:w,21:T}),e([5,7,14,15,16,17,18,19,20,38],[2,11],{8:g,9:m,10:v,11:b,12:y,13:w,21:T}),e(z,[2,12],{8:g,9:m,10:v,11:b,12:y,13:w,14:_,21:T}),e(z,[2,13],{8:g,9:m,10:v,11:b,12:y,13:w,14:_,21:T}),e(z,[2,14],{8:g,9:m,10:v,11:b,12:y,13:w,14:_,21:T}),e(z,[2,15],{8:g,9:m,10:v,11:b,12:y,13:w,14:_,21:T}),e(z,[2,16],{8:g,9:m,10:v,11:b,12:y,13:w,14:_,21:T}),e(z,[2,17],{8:g,9:m,10:v,11:b,12:y,13:w,14:_,21:T}),e(E,[2,2]),e(E,[2,20]),{8:R,9:D,22:42,31:a,32:s,33:l,34:c,35:71,37:41},{8:R,9:D,22:42,31:a,32:s,33:l,34:c,37:72},e(L,[2,34]),e(L,[2,35]),{7:[1,73],38:[1,74]},e(B,[2,37],{8:g,9:m,10:v,11:b,12:y,13:w,14:_,15:x,16:S,17:C,18:k,19:I,20:A,21:T}),e(N,[2,30],{38:P}),e(L,[2,32]),e(E,[2,22]),e(B,[2,38],{22:6,26:8,27:9,29:10,4:75,6:t,8:i,9:n,23:o,30:r,31:a,32:s,33:l,34:c,39:d,40:u,41:h,42:p,43:f}),e(B,[2,39],{8:g,9:m,10:v,11:b,12:y,13:w,14:_,15:x,16:S,17:C,18:k,19:I,20:A,21:T})],defaultActions:{19:[2,24],21:[2,1]},parseError:function(e,t){if(t.recoverable)this.trace(e);else{var i=Error(e);throw i.hash=t,i}},parse:function(e){var t=this,i=[0],n=[null],o=[],r=this.table,a="",s=0,l=0,c=0,d=o.slice.call(arguments,1),u=Object.create(this.lexer),h={yy:{}};for(var p in this.yy)Object.prototype.hasOwnProperty.call(this.yy,p)&&(h.yy[p]=this.yy[p]);u.setInput(e,h.yy),h.yy.lexer=u,h.yy.parser=this,void 0===u.yylloc&&(u.yylloc={});var f=u.yylloc;o.push(f);var g=u.options&&u.options.ranges;"function"==typeof h.yy.parseError?this.parseError=h.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var m,v,b,y,w,_,x,S,C,k={};;){if(b=i[i.length-1],this.defaultActions[b]?y=this.defaultActions[b]:(null==m&&(m=function(){var e;return"number"!=typeof(e=u.lex()||1)&&(e=t.symbols_[e]||e),e}()),y=r[b]&&r[b][m]),void 0===y||!y.length||!y[0]){var I="";for(_ in C=[],r[b])this.terminals_[_]&&_>2&&C.push("'"+this.terminals_[_]+"'");I=u.showPosition?"Parse error on line "+(s+1)+":\n"+u.showPosition()+"\nExpecting "+C.join(", ")+", got '"+(this.terminals_[m]||m)+"'":"Parse error on line "+(s+1)+": Unexpected "+(1==m?"end of input":"'"+(this.terminals_[m]||m)+"'"),this.parseError(I,{text:u.match,token:this.terminals_[m]||m,line:u.yylineno,loc:f,expected:C})}if(y[0]instanceof Array&&y.length>1)throw Error("Parse Error: multiple actions possible at state: "+b+", token: "+m);switch(y[0]){case 1:i.push(m),n.push(u.yytext),o.push(u.yylloc),i.push(y[1]),m=null,v?(m=v,v=null):(l=u.yyleng,a=u.yytext,s=u.yylineno,f=u.yylloc,c>0&&c--);break;case 2:if(x=this.productions_[y[1]][1],k.$=n[n.length-x],k._$={first_line:o[o.length-(x||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(x||1)].first_column,last_column:o[o.length-1].last_column},g&&(k._$.range=[o[o.length-(x||1)].range[0],o[o.length-1].range[1]]),void 0!==(w=this.performAction.apply(k,[a,l,s,h.yy,y[1],n,o].concat(d))))return w;x&&(i=i.slice(0,-1*x*2),n=n.slice(0,-1*x),o=o.slice(0,-1*x)),i.push(this.productions_[y[1]][0]),n.push(k.$),o.push(k._$),S=r[i[i.length-2]][i[i.length-1]],i.push(S);break;case 3:return!0}}return!0}};function W(){this.yy={}}return W.prototype=H,H.Parser=W,new W}()},68036:function(e,t,i){var n={"./jpn.json":["43171","273"],"./cht.json":["69347","260"],"./dan.json":["90109","172"],"./fre.json":["67888","289"],"./hun.json":["13822","904"],"./rus.json":["6118","448"],"./spn.json":["3853","790"],"./csy.json":["99522","200"],"./plk.json":["4848","808"],"./enu.json":["52836","196"],"./nld.json":["60050","363"],"./trk.json":["1302","959"],"./chs.json":["23491","743"],"./ptg.json":["87967","369"],"./ptb.json":["41992","459"],"./tha.json":["80310","605"],"./nor.json":["70571","272"],"./sve.json":["81446","405"],"./ger.json":["94511","491"],"./krn.json":["32781","4"],"./ita.json":["71513","393"]};function o(e){if(!i.o(n,e))return Promise.resolve().then(function(){var t=Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t});var t=n[e],o=t[0];return i.e(t[1]).then(function(){return i.t(o,23)})}o.keys=()=>Object.keys(n),o.id=68036,e.exports=o},55859:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BaselineSplitter=function(e){let t=[],i="";return e.split("").forEach(e=>{(0,n.isArabic)(e)&&(0,n.isArabic)(i)?i.length&&o.tashkeel.indexOf(e)>-1?t[t.length-1]+=e:o.lineBreakers.indexOf(i)>-1?t.push(e):t[t.length-1]+=e:t.push(e),-1===o.tashkeel.indexOf(e)&&(i=e)}),t};let n=i(70747),o=i(38028)},11343:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CharShaper=function(e,t){if(!(0,o.isArabic)(e))throw Error("Not Arabic");if("ء"===e)return"ء";for(let i=0;i<r.letterList.length;i++){let o=n.default[r.letterList[i]],a=Object.keys(o);for(let i=0;i<a.length;i++){let n=o[a[i]];if(n===e||"object"==typeof n&&n.indexOf&&n.indexOf(e)>-1){if(a.indexOf(t)>-1)return o[t]}else if("object"==typeof n&&void 0===n.indexOf){let i=Object.keys(n);for(let o=0;o<i.length;o++)if((n[i[o]]===e||"object"==typeof n[i[o]]&&n[i[o]].indexOf&&n[i[o]].indexOf(e)>-1)&&i.indexOf(t)>-1)return n[t]}}}};let n=i(52210),o=i(70747),r=i(38028)},15800:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GlyphSplitter=function(e){let t=[],i="";return e.split("").forEach(e=>{(0,n.isArabic)(e)&&(o.tashkeel.indexOf(e)>-1||i.length&&(0===o.lams.indexOf(i)&&o.alefs.indexOf(e)>-1||o.lams.indexOf(i)>0&&0===o.alefs.indexOf(e)))?t[t.length-1]+=e:t.push(e),-1===o.tashkeel.indexOf(e)&&(i=e)}),t};let n=i(70747),o=i(38028)},28589:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Normal=function(e,t){void 0===t&&(t=!0);let i="";return e.split("").forEach(e=>{if(!(0,r.isArabic)(e)){i+=e;return}for(let o=0;o<a.letterList.length;o++){let r=n.default[a.letterList[o]],s=Object.keys(r);for(let n=0;n<s.length;n++){let o=r[s[n]];if("object"==typeof o&&void 0===o.indexOf){let n=Object.keys(o);for(let r=0;r<n.length;r++){let a=o[n[r]];if(a===e||"object"==typeof a&&a.indexOf&&a.indexOf(e)>-1){if(a===e){if(t&&o.normal&&["isolated","initial","medial","final"].indexOf(n[r])>-1)return void("object"==typeof o.normal?i+=o.normal[0]:i+=o.normal);i+=e;return}else if("object"==typeof a&&a.indexOf&&a.indexOf(e)>-1){i+=a[0];return}}}}else if(o===e){if(t&&r.normal&&["isolated","initial","medial","final"].indexOf(s[n])>-1)return void("object"==typeof r.normal?i+=r.normal[0]:i+=r.normal);i+=e;return}else if("object"==typeof o&&o.indexOf&&o.indexOf(e)>-1){i+=o[0];return}}}for(let t=0;t<a.ligatureList.length;t++){let n=a.ligatureList[t];if("words"!==n){let t=Object.keys(o.default[n]);for(let r=0;r<t.length;r++)if(o.default[n][t[r]]===e){i+=n;return}}}for(let t=0;t<a.ligatureWordList.length;t++){let n=a.ligatureWordList[t];if(o.default.words[n]===e){i+=n;return}}i+=e}),i};let n=i(52210),o=i(30321),r=i(70747),a=i(38028)},87524:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ParentLetter=function(e){if(!(0,o.isArabic)(e))throw Error("Not an Arabic letter");for(let t=0;t<r.letterList.length;t++){let i=n.default[r.letterList[t]],o=Object.keys(i);for(let t=0;t<o.length;t++){let n=i[o[t]];if("object"==typeof n&&void 0===n.indexOf){let t=Object.keys(n);for(let i=0;i<t.length;i++){let o=n[t[i]];if(o===e||"object"==typeof o&&o.indexOf&&o.indexOf(e)>-1)return n}}else if(n===e||"object"==typeof n&&n.indexOf&&n.indexOf(e)>-1)return i}return null}},t.GrandparentLetter=function(e){if(!(0,o.isArabic)(e))throw Error("Not an Arabic letter");for(let t=0;t<r.letterList.length;t++){let i=n.default[r.letterList[t]],o=Object.keys(i);for(let t=0;t<o.length;t++){let n=i[o[t]];if("object"==typeof n&&void 0===n.indexOf){let t=Object.keys(n);for(let o=0;o<t.length;o++){let r=n[t[o]];if(r===e||"object"==typeof r&&r.indexOf&&r.indexOf(e)>-1)return i}}else if(n===e||"object"==typeof n&&n.indexOf&&n.indexOf(e)>-1)return i}return null}};let n=i(52210),o=i(70747),r=i(38028)},19610:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WordShaper=function(e){let t="initial",i="";for(let s=0;s<e.length;s++){let l=" ";for(let t=s+1;t<e.length&&(0,n.isArabic)(e[t]);t++)if(-1===o.tashkeel.indexOf(e[t])){l=e[t];break}if(!(0,n.isArabic)(e[s])||(0,n.isMath)(e[s]))i+=e[s],t="initial";else if(o.tashkeel.indexOf(e[s])>-1)i+=e[s];else if(" "===l||o.lineBreakers.indexOf(e[s])>-1)i+=(0,r.CharShaper)(e[s],"initial"===t?"isolated":"final"),t="initial";else if(o.lams.indexOf(e[s])>-1&&o.alefs.indexOf(l)>-1){for(i+=a.default[e[s]+l]["initial"===t?"isolated":"final"];e[s]!==l;)s++;t="initial"}else i+=(0,r.CharShaper)(e[s],t),t="medial"}return i};let n=i(70747),o=i(38028),r=i(11343),a=i(30321)},88136:function(e,t,i){"use strict";t.WordShaper=void 0,i(70747),i(15800),i(55859),i(28589),i(11343);var n=i(19610);Object.defineProperty(t,"WordShaper",{enumerable:!0,get:function(){return n.WordShaper}}),i(87524)},70747:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isArabic=function(e){if(e.length>1)throw Error("isArabic works on only one-character strings");let t=e.charCodeAt(0);for(let e=0;e<i.length;e++){let n=i[e];if(t>=n[0]&&t<=n[1])return!0}return!1},t.isMath=function(e){if(e.length>2)throw Error("isMath works on only one-character strings");let t=e.charCodeAt(0);return t>=1632&&t<=1644||t>=1776&&t<=1785};let i=[[1536,1791],[1872,1919],[2208,2303],[64336,65023],[65136,65279],[69216,69247],[126064,126143],[126464,126719]]},38028:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ligatureWordList=t.ligatureList=t.letterList=t.alefs=t.lams=t.lineBreakers=t.tashkeel=void 0;let n=i(52210),o=i(30321);t.letterList=Object.keys(n.default),t.ligatureList=Object.keys(o.default),t.ligatureWordList=Object.keys(o.default.words),t.lams="لڵڶڷڸ",t.alefs="اآأإٱٲٳٵݳݴ";let r="؅ـٰٴ۟ۧۨ";function a(e,i){for(var n=e;n<=i;n++)t.tashkeel=r+=String.fromCharCode(n)}t.tashkeel=r,a(1552,1562),a(1611,1631),a(1750,1756),a(1760,1764),a(1770,1773),a(2259,2273),a(2275,2303),a(65136,65151);let s="اةوۀۏ۽۾ݫݬݱݳݴݸݹ࣢ࢱࢲࢹ";function l(e,i){for(var n=e;n<=i;n++)t.lineBreakers=s+=String.fromCharCode(n)}t.lineBreakers=s,l(1536,1567),l(1569,1573),l(1583,1586),l(1632,1645),l(1649,1655),l(1672,1689),l(1731,1739),l(1746,1785),l(1881,1883),l(2218,2222),l(64336,65021),l(65152,65276),l(69216,69247),l(126064,126143),l(126464,126719)},52210:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={alef:{normal:["ا"],madda_above:{normal:["آ","آ"],isolated:"ﺁ",final:"ﺂ"},hamza_above:{normal:["أ","أ"],isolated:"ﺃ",final:"ﺄ"},hamza_below:{normal:["إ","إ"],isolated:"ﺇ",final:"ﺈ"},wasla:{normal:"ٱ",isolated:"ﭐ",final:"ﭑ"},wavy_hamza_above:["ٲ"],wavy_hamza_below:["اٟ","ٳ"],high_hamza:["ٵ","اٴ"],indic_two_above:["ݳ"],indic_three_above:["ݴ"],fathatan:{normal:["اً"],final:"ﴼ",isolated:"ﴽ"},isolated:"ﺍ",final:"ﺎ"},beh:{normal:["ب"],dotless:["ٮ"],three_dots_horizontally_below:["ݐ"],dot_below_three_dots_above:["ݑ"],three_dots_pointing_upwards_below:["ݒ"],three_dots_pointing_upwards_below_two_dots_above:["ݓ"],two_dots_below_dot_above:["ݔ"],inverted_small_v_below:["ݕ"],small_v:["ݖ"],small_v_below:["ࢠ"],hamza_above:["ࢡ"],small_meem_above:["ࢶ"],isolated:"ﺏ",final:"ﺐ",initial:"ﺑ",medial:"ﺒ"},"teh marbuta":{normal:["ة"],isolated:"ﺓ",final:"ﺔ"},teh:{normal:["ت"],ring:["ټ"],three_dots_above_downwards:["ٽ"],small_teh_above:["ࢸ"],isolated:"ﺕ",final:"ﺖ",initial:"ﺗ",medial:"ﺘ"},theh:{normal:["ث"],isolated:"ﺙ",final:"ﺚ",initial:"ﺛ",medial:"ﺜ"},jeem:{normal:["ج"],two_dots_above:["ࢢ"],isolated:"ﺝ",final:"ﺞ",initial:"ﺟ",medial:"ﺠ"},hah:{normal:["ح"],hamza_above:["ځ"],two_dots_vertical_above:["ڂ"],three_dots_above:["څ"],two_dots_above:["ݗ"],three_dots_pointing_upwards_below:["ݘ"],small_tah_below:["ݮ"],small_tah_two_dots:["ݯ"],small_tah_above:["ݲ"],indic_four_below:["ݼ"],isolated:"ﺡ",final:"ﺢ",initial:"ﺣ",medial:"ﺤ"},khah:{normal:["خ"],isolated:"ﺥ",final:"ﺦ",initial:"ﺧ",medial:"ﺨ"},dal:{normal:["د"],ring:["ډ"],dot_below:["ڊ"],dot_below_small_tah:["ڋ"],three_dots_above_downwards:["ڏ"],four_dots_above:["ڐ"],inverted_v:["ۮ"],two_dots_vertically_below_small_tah:["ݙ"],inverted_small_v_below:["ݚ"],three_dots_below:["ࢮ"],isolated:"ﺩ",final:"ﺪ"},thal:{normal:["ذ"],isolated:"ﺫ",final:"ﺬ"},reh:{normal:["ر"],small_v:["ڒ"],ring:["ړ"],dot_below:["ڔ"],small_v_below:["ڕ"],dot_below_dot_above:["ږ"],two_dots_above:["ڗ"],four_dots_above:["ڙ"],inverted_v:["ۯ"],stroke:["ݛ"],two_dots_vertically_above:["ݫ"],hamza_above:["ݬ"],small_tah_two_dots:["ݱ"],loop:["ࢪ"],small_noon_above:["ࢹ"],isolated:"ﺭ",final:"ﺮ"},zain:{normal:["ز"],inverted_v_above:["ࢲ"],isolated:"ﺯ",final:"ﺰ"},seen:{normal:["س"],dot_below_dot_above:["ښ"],three_dots_below:["ڛ"],three_dots_below_three_dots_above:["ڜ"],four_dots_above:["ݜ"],two_dots_vertically_above:["ݭ"],small_tah_two_dots:["ݰ"],indic_four_above:["ݽ"],inverted_v:["ݾ"],isolated:"ﺱ",final:"ﺲ",initial:"ﺳ",medial:"ﺴ"},sheen:{normal:["ش"],dot_below:["ۺ"],isolated:"ﺵ",final:"ﺶ",initial:"ﺷ",medial:"ﺸ"},sad:{normal:["ص"],two_dots_below:["ڝ"],three_dots_above:["ڞ"],three_dots_below:["ࢯ"],isolated:"ﺹ",final:"ﺺ",initial:"ﺻ",medial:"ﺼ"},dad:{normal:["ض"],dot_below:["ۻ"],isolated:"ﺽ",final:"ﺾ",initial:"ﺿ",medial:"ﻀ"},tah:{normal:["ط"],three_dots_above:["ڟ"],two_dots_above:["ࢣ"],isolated:"ﻁ",final:"ﻂ",initial:"ﻃ",medial:"ﻄ"},zah:{normal:["ظ"],isolated:"ﻅ",final:"ﻆ",initial:"ﻇ",medial:"ﻈ"},ain:{normal:["ع"],three_dots_above:["ڠ"],two_dots_above:["ݝ"],three_dots_pointing_downwards_above:["ݞ"],two_dots_vertically_above:["ݟ"],three_dots_below:["ࢳ"],isolated:"ﻉ",final:"ﻊ",initial:"ﻋ",medial:"ﻌ"},ghain:{normal:["غ"],dot_below:["ۼ"],isolated:"ﻍ",final:"ﻎ",initial:"ﻏ",medial:"ﻐ"},feh:{normal:["ف"],dotless:["ڡ"],dot_moved_below:["ڢ"],dot_below:["ڣ"],three_dots_below:["ڥ"],two_dots_below:["ݠ"],three_dots_pointing_upwards_below:["ݡ"],dot_below_three_dots_above:["ࢤ"],isolated:"ﻑ",final:"ﻒ",initial:"ﻓ",medial:"ﻔ"},qaf:{normal:["ق"],dotless:["ٯ"],dot_above:["ڧ"],three_dots_above:["ڨ"],dot_below:["ࢥ"],isolated:"ﻕ",final:"ﻖ",initial:"ﻗ",medial:"ﻘ"},kaf:{normal:["ك"],swash:["ڪ"],ring:["ګ"],dot_above:["ڬ"],three_dots_below:["ڮ"],two_dots_above:["ݿ"],dot_below:["ࢴ"],isolated:"ﻙ",final:"ﻚ",initial:"ﻛ",medial:"ﻜ"},lam:{normal:["ل"],small_v:["ڵ"],dot_above:["ڶ"],three_dots_above:["ڷ"],three_dots_below:["ڸ"],bar:["ݪ"],double_bar:["ࢦ"],isolated:"ﻝ",final:"ﻞ",initial:"ﻟ",medial:"ﻠ"},meem:{normal:["م"],dot_above:["ݥ"],dot_below:["ݦ"],three_dots_above:["ࢧ"],isolated:"ﻡ",final:"ﻢ",initial:"ﻣ",medial:"ﻤ"},noon:{normal:["ن"],dot_below:["ڹ"],ring:["ڼ"],three_dots_above:["ڽ"],two_dots_below:["ݧ"],small_tah:["ݨ"],small_v:["ݩ"],isolated:"ﻥ",final:"ﻦ",initial:"ﻧ",medial:"ﻨ"},heh:{normal:["ه"],isolated:"ﻩ",final:"ﻪ",initial:"ﻫ",medial:"ﻬ"},waw:{normal:["و"],hamza_above:{normal:["ؤ","ؤ"],isolated:"ﺅ",final:"ﺆ"},high_hamza:["ٶ","وٴ"],ring:["ۄ"],two_dots_above:["ۊ"],dot_above:["ۏ"],indic_two_above:["ݸ"],indic_three_above:["ݹ"],dot_within:["ࢫ"],isolated:"ﻭ",final:"ﻮ"},alef_maksura:{normal:["ى"],hamza_above:["ئ","ئ"],initial:"ﯨ",medial:"ﯩ",isolated:"ﻯ",final:"ﻰ"},yeh:{normal:["ي"],hamza_above:{normal:["ئ","ىٔ"],isolated:"ﺉ",final:"ﺊ",initial:"ﺋ",medial:"ﺌ"},two_dots_below_hamza_above:["ࢨ"],high_hamza:["ٸ","يٴ"],tail:["ۍ"],small_v:["ێ"],three_dots_below:["ۑ"],two_dots_below_dot_above:["ࢩ"],two_dots_below_small_noon_above:["ࢺ"],isolated:"ﻱ",final:"ﻲ",initial:"ﻳ",medial:"ﻴ"},tteh:{normal:["ٹ"],isolated:"ﭦ",final:"ﭧ",initial:"ﭨ",medial:"ﭩ"},tteheh:{normal:["ٺ"],isolated:"ﭞ",final:"ﭟ",initial:"ﭠ",medial:"ﭡ"},beeh:{normal:["ٻ"],isolated:"ﭒ",final:"ﭓ",initial:"ﭔ",medial:"ﭕ"},peh:{normal:["پ"],small_meem_above:["ࢷ"],isolated:"ﭖ",final:"ﭗ",initial:"ﭘ",medial:"ﭙ"},teheh:{normal:["ٿ"],isolated:"ﭢ",final:"ﭣ",initial:"ﭤ",medial:"ﭥ"},beheh:{normal:["ڀ"],isolated:"ﭚ",final:"ﭛ",initial:"ﭜ",medial:"ﭝ"},nyeh:{normal:["ڃ"],isolated:"ﭶ",final:"ﭷ",initial:"ﭸ",medial:"ﭹ"},dyeh:{normal:["ڄ"],isolated:"ﭲ",final:"ﭳ",initial:"ﭴ",medial:"ﭵ"},tcheh:{normal:["چ"],dot_above:["ڿ"],isolated:"ﭺ",final:"ﭻ",initial:"ﭼ",medial:"ﭽ"},tcheheh:{normal:["ڇ"],isolated:"ﭾ",final:"ﭿ",initial:"ﮀ",medial:"ﮁ"},ddal:{normal:["ڈ"],isolated:"ﮈ",final:"ﮉ"},dahal:{normal:["ڌ"],isolated:"ﮄ",final:"ﮅ"},ddahal:{normal:["ڍ"],isolated:"ﮂ",final:"ﮃ"},dul:{normal:["ڏ","ڎ"],isolated:"ﮆ",final:"ﮇ"},rreh:{normal:["ڑ"],isolated:"ﮌ",final:"ﮍ"},jeh:{normal:["ژ"],isolated:"ﮊ",final:"ﮋ"},veh:{normal:["ڤ"],isolated:"ﭪ",final:"ﭫ",initial:"ﭬ",medial:"ﭭ"},peheh:{normal:["ڦ"],isolated:"ﭮ",final:"ﭯ",initial:"ﭰ",medial:"ﭱ"},keheh:{normal:["ک"],dot_above:["ݢ"],three_dots_above:["ݣ"],three_dots_pointing_upwards_below:["ݤ"],isolated:"ﮎ",final:"ﮏ",initial:"ﮐ",medial:"ﮑ"},ng:{normal:["ڭ"],isolated:"ﯓ",final:"ﯔ",initial:"ﯕ",medial:"ﯖ"},gaf:{normal:["گ"],ring:["ڰ"],two_dots_below:["ڲ"],three_dots_above:["ڴ"],inverted_stroke:["ࢰ"],isolated:"ﮒ",final:"ﮓ",initial:"ﮔ",medial:"ﮕ"},ngoeh:{normal:["ڱ"],isolated:"ﮚ",final:"ﮛ",initial:"ﮜ",medial:"ﮝ"},gueh:{normal:["ڳ"],isolated:"ﮖ",final:"ﮗ",initial:"ﮘ",medial:"ﮙ"},"noon ghunna":{normal:["ں"],isolated:"ﮞ",final:"ﮟ"},rnoon:{normal:["ڻ"],isolated:"ﮠ",final:"ﮡ",initial:"ﮢ",medial:"ﮣ"},"heh doachashmee":{normal:["ھ"],isolated:"ﮪ",final:"ﮫ",initial:"ﮬ",medial:"ﮭ"},"heh goal":{normal:["ہ"],hamza_above:["ۂ","ۂ"],isolated:"ﮦ",final:"ﮧ",initial:"ﮨ",medial:"ﮩ"},"teh marbuta goal":{normal:["ۃ"]},"kirghiz oe":{normal:["ۅ"],isolated:"ﯠ",final:"ﯡ"},oe:{normal:["ۆ"],isolated:"ﯙ",final:"ﯚ"},u:{normal:["ۇ"],hamza_above:{normal:["ٷ","ۇٴ"],isolated:"ﯝ"},isolated:"ﯗ",final:"ﯘ"},yu:{normal:["ۈ"],isolated:"ﯛ",final:"ﯜ"},"kirghiz yu":{normal:["ۉ"],isolated:"ﯢ",final:"ﯣ"},ve:{normal:["ۋ"],isolated:"ﯞ",final:"ﯟ"},"farsi yeh":{normal:["ی"],indic_two_above:["ݵ"],indic_three_above:["ݶ"],indic_four_above:["ݷ"],isolated:"ﯼ",final:"ﯽ",initial:"ﯾ",medial:"ﯿ"},e:{normal:["ې"],isolated:"ﯤ",final:"ﯥ",initial:"ﯦ",medial:"ﯧ"},"yeh barree":{normal:["ے"],hamza_above:{normal:["ۓ","ۓ"],isolated:"ﮰ",final:"ﮱ"},indic_two_above:["ݺ"],indic_three_above:["ݻ"],isolated:"ﮮ",final:"ﮯ"},ae:{normal:["ە"],isolated:"ە",final:"ﻪ",yeh_above:{normal:["ۀ","ۀ"],isolated:"ﮤ",final:"ﮥ"}},"rohingya yeh":{normal:["ࢬ"]},"low alef":{normal:["ࢭ"]},"straight waw":{normal:["ࢱ"]},"african feh":{normal:["ࢻ"]},"african qaf":{normal:["ࢼ"]},"african noon":{normal:["ࢽ"]}}},30321:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={ئا:{isolated:"ﯪ",final:"ﯫ"},ئە:{isolated:"ﯬ",final:"ﯭ"},ئو:{isolated:"ﯮ",final:"ﯯ"},ئۇ:{isolated:"ﯰ",final:"ﯱ"},ئۆ:{isolated:"ﯲ",final:"ﯳ"},ئۈ:{isolated:"ﯴ",final:"ﯵ"},ئې:{isolated:"ﯶ",final:"ﯷ",initial:"ﯸ"},ئى:{uighur_kirghiz:{isolated:"ﯹ",final:"ﯺ",initial:"ﯻ"},isolated:"ﰃ",final:"ﱨ"},ئج:{isolated:"ﰀ",initial:"ﲗ"},ئح:{isolated:"ﰁ",initial:"ﲘ"},ئم:{isolated:"ﰂ",final:"ﱦ",initial:"ﲚ",medial:"ﳟ"},ئي:{isolated:"ﰄ",final:"ﱩ"},بج:{isolated:"ﰅ",initial:"ﲜ"},بح:{isolated:"ﰆ",initial:"ﲝ"},بخ:{isolated:"ﰇ",initial:"ﲞ"},بم:{isolated:"ﰈ",final:"ﱬ",initial:"ﲟ",medial:"ﳡ"},بى:{isolated:"ﰉ",final:"ﱮ"},بي:{isolated:"ﰊ",final:"ﱯ"},تج:{isolated:"ﰋ",initial:"ﲡ"},تح:{isolated:"ﰌ",initial:"ﲢ"},تخ:{isolated:"ﰍ",initial:"ﲣ"},تم:{isolated:"ﰎ",final:"ﱲ",initial:"ﲤ",medial:"ﳣ"},تى:{isolated:"ﰏ",final:"ﱴ"},تي:{isolated:"ﰐ",final:"ﱵ"},ثج:{isolated:"ﰑ"},ثم:{isolated:"ﰒ",final:"ﱸ",initial:"ﲦ",medial:"ﳥ"},ثى:{isolated:"ﰓ",final:"ﱺ"},ثو:{isolated:"ﰔ"},جح:{isolated:"ﰕ",initial:"ﲧ"},جم:{isolated:"ﰖ",initial:"ﲨ"},حج:{isolated:"ﰗ",initial:"ﲩ"},حم:{isolated:"ﰘ",initial:"ﲪ"},خج:{isolated:"ﰙ",initial:"ﲫ"},خح:{isolated:"ﰚ"},خم:{isolated:"ﰛ",initial:"ﲬ"},سج:{isolated:"ﰜ",initial:"ﲭ",medial:"ﴴ"},سح:{isolated:"ﰝ",initial:"ﲮ",medial:"ﴵ"},سخ:{isolated:"ﰞ",initial:"ﲯ",medial:"ﴶ"},سم:{isolated:"ﰟ",initial:"ﲰ",medial:"ﳧ"},صح:{isolated:"ﰠ",initial:"ﲱ"},صم:{isolated:"ﰡ",initial:"ﲳ"},ضج:{isolated:"ﰢ",initial:"ﲴ"},ضح:{isolated:"ﰣ",initial:"ﲵ"},ضخ:{isolated:"ﰤ",initial:"ﲶ"},ضم:{isolated:"ﰥ",initial:"ﲷ"},طح:{isolated:"ﰦ",initial:"ﲸ"},طم:{isolated:"ﰧ",initial:"ﴳ",medial:"ﴺ"},ظم:{isolated:"ﰨ",initial:"ﲹ",medial:"ﴻ"},عج:{isolated:"ﰩ",initial:"ﲺ"},عم:{isolated:"ﰪ",initial:"ﲻ"},غج:{isolated:"ﰫ",initial:"ﲼ"},غم:{isolated:"ﰬ",initial:"ﲽ"},فج:{isolated:"ﰭ",initial:"ﲾ"},فح:{isolated:"ﰮ",initial:"ﲿ"},فخ:{isolated:"ﰯ",initial:"ﳀ"},فم:{isolated:"ﰰ",initial:"ﳁ"},فى:{isolated:"ﰱ",final:"ﱼ"},في:{isolated:"ﰲ",final:"ﱽ"},قح:{isolated:"ﰳ",initial:"ﳂ"},قم:{isolated:"ﰴ",initial:"ﳃ"},قى:{isolated:"ﰵ",final:"ﱾ"},قي:{isolated:"ﰶ",final:"ﱿ"},كا:{isolated:"ﰷ",final:"ﲀ"},كج:{isolated:"ﰸ",initial:"ﳄ"},كح:{isolated:"ﰹ",initial:"ﳅ"},كخ:{isolated:"ﰺ",initial:"ﳆ"},كل:{isolated:"ﰻ",final:"ﲁ",initial:"ﳇ",medial:"ﳫ"},كم:{isolated:"ﰼ",final:"ﲂ",initial:"ﳈ",medial:"ﳬ"},كى:{isolated:"ﰽ",final:"ﲃ"},كي:{isolated:"ﰾ",final:"ﲄ"},لج:{isolated:"ﰿ",initial:"ﳉ"},لح:{isolated:"ﱀ",initial:"ﳊ"},لخ:{isolated:"ﱁ",initial:"ﳋ"},لم:{isolated:"ﱂ",final:"ﲅ",initial:"ﳌ",medial:"ﳭ"},لى:{isolated:"ﱃ",final:"ﲆ"},لي:{isolated:"ﱄ",final:"ﲇ"},مج:{isolated:"ﱅ",initial:"ﳎ"},مح:{isolated:"ﱆ",initial:"ﳏ"},مخ:{isolated:"ﱇ",initial:"ﳐ"},مم:{isolated:"ﱈ",final:"ﲉ",initial:"ﳑ"},مى:{isolated:"ﱉ"},مي:{isolated:"ﱊ"},نج:{isolated:"ﱋ",initial:"ﳒ"},نح:{isolated:"ﱌ",initial:"ﳓ"},نخ:{isolated:"ﱍ",initial:"ﳔ"},نم:{isolated:"ﱎ",final:"ﲌ",initial:"ﳕ",medial:"ﳮ"},نى:{isolated:"ﱏ",final:"ﲎ"},ني:{isolated:"ﱐ",final:"ﲏ"},هج:{isolated:"ﱑ",initial:"ﳗ"},هم:{isolated:"ﱒ",initial:"ﳘ"},هى:{isolated:"ﱓ"},هي:{isolated:"ﱔ"},يج:{isolated:"ﱕ",initial:"ﳚ"},يح:{isolated:"ﱖ",initial:"ﳛ"},يخ:{isolated:"ﱗ",initial:"ﳜ"},يم:{isolated:"ﱘ",final:"ﲓ",initial:"ﳝ",medial:"ﳰ"},يى:{isolated:"ﱙ",final:"ﲕ"},يي:{isolated:"ﱚ",final:"ﲖ"},ذٰ:{isolated:"ﱛ"},رٰ:{isolated:"ﱜ"},ىٰ:{isolated:"ﱝ",final:"ﲐ"},"ٌّ":{isolated:"ﱞ"},"ٍّ":{isolated:"ﱟ"},"َّ":{isolated:"ﱠ"},"ُّ":{isolated:"ﱡ"},"ِّ":{isolated:"ﱢ"},"ّٰ":{isolated:"ﱣ"},ئر:{final:"ﱤ"},ئز:{final:"ﱥ"},ئن:{final:"ﱧ"},بر:{final:"ﱪ"},بز:{final:"ﱫ"},بن:{final:"ﱭ"},تر:{final:"ﱰ"},تز:{final:"ﱱ"},تن:{final:"ﱳ"},ثر:{final:"ﱶ"},ثز:{final:"ﱷ"},ثن:{final:"ﱹ"},ثي:{final:"ﱻ"},ما:{final:"ﲈ"},نر:{final:"ﲊ"},نز:{final:"ﲋ"},نن:{final:"ﲍ"},ير:{final:"ﲑ"},يز:{final:"ﲒ"},ين:{final:"ﲔ"},ئخ:{initial:"ﲙ"},ئه:{initial:"ﲛ",medial:"ﳠ"},به:{initial:"ﲠ",medial:"ﳢ"},ته:{initial:"ﲥ",medial:"ﳤ"},صخ:{initial:"ﲲ"},له:{initial:"ﳍ"},نه:{initial:"ﳖ",medial:"ﳯ"},هٰ:{initial:"ﳙ"},يه:{initial:"ﳞ",medial:"ﳱ"},ثه:{medial:"ﳦ"},سه:{medial:"ﳨ",initial:"ﴱ"},شم:{medial:"ﳩ",isolated:"ﴌ",final:"ﴨ",initial:"ﴰ"},شه:{medial:"ﳪ",initial:"ﴲ"},ـَّ:{medial:"ﳲ"},ـُّ:{medial:"ﳳ"},ـِّ:{medial:"ﳴ"},طى:{isolated:"ﳵ",final:"ﴑ"},طي:{isolated:"ﳶ",final:"ﴒ"},عى:{isolated:"ﳷ",final:"ﴓ"},عي:{isolated:"ﳸ",final:"ﴔ"},غى:{isolated:"ﳹ",final:"ﴕ"},غي:{isolated:"ﳺ",final:"ﴖ"},سى:{isolated:"ﳻ"},سي:{isolated:"ﳼ",final:"ﴘ"},شى:{isolated:"ﳽ",final:"ﴙ"},شي:{isolated:"ﳾ",final:"ﴚ"},حى:{isolated:"ﳿ",final:"ﴛ"},حي:{isolated:"ﴀ",final:"ﴜ"},جى:{isolated:"ﴁ",final:"ﴝ"},جي:{isolated:"ﴂ",final:"ﴞ"},خى:{isolated:"ﴃ",final:"ﴟ"},خي:{isolated:"ﴄ",final:"ﴠ"},صى:{isolated:"ﴅ",final:"ﴡ"},صي:{isolated:"ﴆ",final:"ﴢ"},ضى:{isolated:"ﴇ",final:"ﴣ"},ضي:{isolated:"ﴈ",final:"ﴤ"},شج:{isolated:"ﴉ",final:"ﴥ",initial:"ﴭ",medial:"ﴷ"},شح:{isolated:"ﴊ",final:"ﴦ",initial:"ﴮ",medial:"ﴸ"},شخ:{isolated:"ﴋ",final:"ﴧ",initial:"ﴯ",medial:"ﴹ"},شر:{isolated:"ﴍ",final:"ﴩ"},سر:{isolated:"ﴎ",final:"ﴪ"},صر:{isolated:"ﴏ",final:"ﴫ"},ضر:{isolated:"ﴐ",final:"ﴬ"},سع:{final:"ﴗ"},تجم:{initial:"ﵐ"},تحج:{final:"ﵑ",initial:"ﵒ"},تحم:{initial:"ﵓ"},تخم:{initial:"ﵔ"},تمج:{initial:"ﵕ"},تمح:{initial:"ﵖ"},تمخ:{initial:"ﵗ"},جمح:{final:"ﵘ",initial:"ﵙ"},حمي:{final:"ﵚ"},حمى:{final:"ﵛ"},سحج:{initial:"ﵜ"},سجح:{initial:"ﵝ"},سجى:{final:"ﵞ"},سمح:{final:"ﵟ",initial:"ﵠ"},سمج:{initial:"ﵡ"},سمم:{final:"ﵢ",initial:"ﵣ"},صحح:{final:"ﵤ",initial:"ﵥ"},صمم:{final:"ﵦ",initial:"ﷅ"},شحم:{final:"ﵧ",initial:"ﵨ"},شجي:{final:"ﵩ"},شمخ:{final:"ﵪ",initial:"ﵫ"},شمم:{final:"ﵬ",initial:"ﵭ"},ضحى:{final:"ﵮ"},ضخم:{final:"ﵯ",initial:"ﵰ"},ضمح:{final:"ﵱ"},طمح:{initial:"ﵲ"},طمم:{initial:"ﵳ"},طمي:{final:"ﵴ"},عجم:{final:"ﵵ",initial:"ﷄ"},عمم:{final:"ﵶ",initial:"ﵷ"},عمى:{final:"ﵸ"},غمم:{final:"ﵹ"},غمي:{final:"ﵺ"},غمى:{final:"ﵻ"},فخم:{final:"ﵼ",initial:"ﵽ"},قمح:{final:"ﵾ",initial:"ﶴ"},قمم:{final:"ﵿ"},لحم:{final:"ﶀ",initial:"ﶵ"},لحي:{final:"ﶁ"},لحى:{final:"ﶂ"},لجج:{initial:"ﶃ",final:"ﶄ"},لخم:{final:"ﶅ",initial:"ﶆ"},لمح:{final:"ﶇ",initial:"ﶈ"},محج:{initial:"ﶉ"},محم:{initial:"ﶊ"},محي:{final:"ﶋ"},مجح:{initial:"ﶌ"},مجم:{initial:"ﶍ"},مخج:{initial:"ﶎ"},مخم:{initial:"ﶏ"},مجخ:{initial:"ﶒ"},همج:{initial:"ﶓ"},همم:{initial:"ﶔ"},نحم:{initial:"ﶕ"},نحى:{final:"ﶖ"},نجم:{final:"ﶗ",initial:"ﶘ"},نجى:{final:"ﶙ"},نمي:{final:"ﶚ"},نمى:{final:"ﶛ"},يمم:{final:"ﶜ",initial:"ﶝ"},بخي:{final:"ﶞ"},تجي:{final:"ﶟ"},تجى:{final:"ﶠ"},تخي:{final:"ﶡ"},تخى:{final:"ﶢ"},تمي:{final:"ﶣ"},تمى:{final:"ﶤ"},جمي:{final:"ﶥ"},جحى:{final:"ﶦ"},جمى:{final:"ﶧ"},سخى:{final:"ﶨ"},صحي:{final:"ﶩ"},شحي:{final:"ﶪ"},ضحي:{final:"ﶫ"},لجي:{final:"ﶬ"},لمي:{final:"ﶭ"},يحي:{final:"ﶮ"},يجي:{final:"ﶯ"},يمي:{final:"ﶰ"},ممي:{final:"ﶱ"},قمي:{final:"ﶲ"},نحي:{final:"ﶳ"},عمي:{final:"ﶶ"},كمي:{final:"ﶷ"},نجح:{initial:"ﶸ",final:"ﶽ"},مخي:{final:"ﶹ"},لجم:{initial:"ﶺ",final:"ﶼ"},كمم:{final:"ﶻ",initial:"ﷃ"},جحي:{final:"ﶾ"},حجي:{final:"ﶿ"},مجي:{final:"ﷀ"},فمي:{final:"ﷁ"},بحي:{final:"ﷂ"},سخي:{final:"ﷆ"},نجي:{final:"ﷇ"},لآ:{isolated:"ﻵ",final:"ﻶ"},لأ:{isolated:"ﻷ",final:"ﻸ"},لإ:{isolated:"ﻹ",final:"ﻺ"},لا:{isolated:"ﻻ",final:"ﻼ"},words:{صلے:"ﷰ",قلے:"ﷱ",الله:"ﷲ",اكبر:"ﷳ",محمد:"ﷴ",صلعم:"ﷵ",رسول:"ﷶ",عليه:"ﷷ",وسلم:"ﷸ",صلى:"ﷹ",صلىاللهعليهوسلم:"ﷺ",جلجلاله:"ﷻ",ریال:"﷼"}}},6799:function(e,t){!function(e){"use strict";var t="undefined"!=typeof Uint8Array?Uint8Array:Array;function i(e){var t=e.charCodeAt(0);return 43===t||45===t?62:47===t||95===t?63:t<48?-1:t<58?t-48+26+26:t<91?t-65:t<123?t-97+26:void 0}e.toByteArray=function(e){if(e.length%4>0)throw Error("Invalid string. Length must be a multiple of 4");var n,o,r,a,s,l,c=e.length;s="="===e.charAt(c-2)?2:+("="===e.charAt(c-1)),l=new t(3*e.length/4-s),r=s>0?e.length-4:e.length;var d=0;function u(e){l[d++]=e}for(n=0,o=0;n<r;n+=4,o+=3)u((0xff0000&(a=i(e.charAt(n))<<18|i(e.charAt(n+1))<<12|i(e.charAt(n+2))<<6|i(e.charAt(n+3))))>>16),u((65280&a)>>8),u(255&a);return 2===s?u(255&(a=i(e.charAt(n))<<2|i(e.charAt(n+1))>>4)):1===s&&(u((a=i(e.charAt(n))<<10|i(e.charAt(n+1))<<4|i(e.charAt(n+2))>>2)>>8&255),u(255&a)),l},e.fromByteArray=function(e){var t,i,n,o,r=e.length%3,a="";function s(e){return"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(e)}for(i=0,o=e.length-r;i<o;i+=3)a+=s((t=n=(e[i]<<16)+(e[i+1]<<8)+e[i+2])>>18&63)+s(t>>12&63)+s(t>>6&63)+s(63&t);switch(r){case 1:a+=s((n=e[e.length-1])>>2),a+=s(n<<4&63),a+="==";break;case 2:a+=s((n=(e[e.length-2]<<8)+e[e.length-1])>>10),a+=s(n>>4&63),a+=s(n<<2&63),a+="="}return a}}(t)},59759:function(e,t){var i;i=function(e){e.version="1.0.2";var t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,v=Math;function b(e,t){for(var i=0,n=0;i<e.length;++i)n=t*n+e[i];return n}function y(e,t,i,n,o){if(0===t)return i;if(1===t)return n;for(var r=2/e,a=n,s=1;s<t;++s)a=n*s*r+o*i,i=n,n=a;return a}function w(e,t,i,n,o){return function(i,r){if(n){if(0===i)return 1==n?-1/0:1/0;else if(i<0)return NaN}if(0===r)return e(i);if(1===r)return t(i);if(r<0)return NaN;r|=0;var a=e(i),s=t(i);return y(i,r,a,s,o)}}var _=function(){var e=[0xd6759744e,-0x31c78f292,651619640.7,-11214424.18,77392.33017,-184.9052456].reverse(),t=[0xd675973ab,0x3d5d6d39,9494680.718,59272.64853,267.8532712,1].reverse(),i=[1,-.001098628627,2734510407e-14,-2073370639e-15,2093887211e-16].reverse(),n=[-.01562499995,1430488765e-13,-6911147651e-15,7621095161e-16,-934935152e-16].reverse();function o(o){var r=0,a=0,s=0,l=o*o;if(o<8)r=(a=b(e,l))/(s=b(t,l));else{var c=o-.785398164;a=b(i,l=64/l),s=b(n,l),r=v.sqrt(.636619772/o)*(v.cos(c)*a-v.sin(c)*s*8/o)}return r}var r=[0x10d925ddd8,-0x1d6950b23,242396853.1,-2972611.439,15704.4826,-30.16036606].reverse(),a=[0x21b24bbb9a,0x891f618a,18583304.74,99447.43394,376.9991397,1].reverse(),s=[1,.00183105,-3516396496e-14,2457520174e-15,-240337019e-15].reverse(),l=[.04687499995,-2002690873e-13,8449199096e-15,-88228987e-14,105787412e-15].reverse();function c(e){var t=0,i=0,n=0,o=e*e,c=v.abs(e)-2.356194491;return 8>Math.abs(e)?t=(i=e*b(r,o))/(n=b(a,o)):(i=b(s,o=64/o),n=b(l,o),t=v.sqrt(.636619772/v.abs(e))*(v.cos(c)*i-v.sin(c)*n*8/v.abs(e)),e<0&&(t=-t)),t}return function e(t,i){if(i=Math.round(i),!isFinite(t))return isNaN(t)?t:0;if(i<0)return(i%2?-1:1)*e(t,-i);if(t<0)return(i%2?-1:1)*e(-t,i);if(0===i)return o(t);if(1===i)return c(t);if(0===t)return 0;var n=0;if(t>i)n=y(t,i,o(t),c(t),-1);else{for(var r=2*v.floor((i+v.floor(v.sqrt(40*i)))/2),a=!1,s=0,l=0,d=1,u=0,h=2/t,p=r;p>0;p--)u=p*h*d-s,s=d,d=u,v.abs(d)>1e10&&(d*=1e-10,s*=1e-10,n*=1e-10,l*=1e-10),a&&(l+=d),a=!a,p==i&&(n=s);n/=l=2*l-d}return n}}(),x=(t=[-0xb04cc5cd,0x1a4fa4b91,-512359803.6,10879881.29,-86327.92757,228.4622733].reverse(),i=[0x954bf890d,745249964.8,7189466.438,47447.2647,226.1030244,1].reverse(),n=[1,-.001098628627,2734510407e-14,-2073370639e-15,2093887211e-16].reverse(),o=[-.01562499995,1430488765e-13,-6911147651e-15,7621095161e-16,-934945152e-16].reverse(),r=[-4900604943e3,127527439e4,-0xbffb0414e,734926455.1,-4237922.726,8511.937935].reverse(),a=[249958057e5,0x62d2b66f40,0xde8afbbf,22459040.02,102042.605,354.9632885,1].reverse(),s=[1,.00183105,-3516396496e-14,2457520174e-15,-240337019e-15].reverse(),l=[.04687499995,-2002690873e-13,8449199096e-15,-88228987e-14,105787412e-15].reverse(),w(function(e){var r=0,a=0,s=0,l=e*e,c=e-.785398164;return e<8?r=(a=b(t,l))/(s=b(i,l))+.636619772*_(e,0)*v.log(e):(a=b(n,l=64/l),s=b(o,l),r=v.sqrt(.636619772/e)*(v.sin(c)*a+v.cos(c)*s*8/e)),r},function(e){var t=0,i=0,n=0,o=e*e,c=e-2.356194491;return e<8?t=(i=e*b(r,o))/(n=b(a,o))+.636619772*(_(e,1)*v.log(e)-1/e):(i=b(s,o=64/o),n=b(l,o),t=v.sqrt(.636619772/e)*(v.sin(c)*i+v.cos(c)*n*8/e)),t},"BESSELY",1,-1)),S=(c=[1,3.5156229,3.0899424,1.2067492,.2659732,.0360768,.0045813].reverse(),d=[.39894228,.01328592,.00225319,-.00157565,.00916281,-.02057706,.02635537,-.01647633,.00392377].reverse(),u=[.5,.87890594,.51498869,.15084934,.02658733,.00301532,32411e-8].reverse(),h=[.39894228,-.03988024,-.00362018,.00163801,-.01031555,.02282967,-.02895312,.01787654,-.00420059].reverse(),function e(t,i){if(0===(i=Math.round(i)))return t<=3.75?b(c,t*t/14.0625):v.exp(v.abs(t))/v.sqrt(v.abs(t))*b(d,3.75/v.abs(t));if(1===i)return t<3.75?t*b(u,t*t/14.0625):(t<0?-1:1)*v.exp(v.abs(t))/v.sqrt(v.abs(t))*b(h,3.75/v.abs(t));if(i<0)return NaN;if(0===v.abs(t))return 0;if(t==1/0)return 1/0;var n,o=0,r=2/v.abs(t),a=0,s=1,l=0;for(n=2*v.round((i+v.round(v.sqrt(40*i)))/2);n>0;n--)l=n*r*s+a,a=s,s=l,v.abs(s)>1e10&&(s*=1e-10,a*=1e-10,o*=1e-10),n==i&&(o=a);return o*=e(t,0)/s,t<0&&i%2?-o:o}),C=(p=[-.57721566,.4227842,.23069756,.0348859,.00262698,1075e-7,74e-7].reverse(),f=[1.25331414,-.07832358,.02189568,-.01062446,.00587872,-.0025154,53208e-8].reverse(),g=[1,.15443144,-.67278579,-.18156897,-.01919402,-.00110404,-4686e-8].reverse(),m=[1.25331414,.23498619,-.0365562,.01504268,-.00780353,.00325614,-68245e-8].reverse(),w(function(e){return e<=2?-v.log(e/2)*S(e,0)+b(p,e*e/4):v.exp(-e)/v.sqrt(e)*b(f,2/e)},function(e){return e<=2?v.log(e/2)*S(e,1)+1/e*b(g,e*e/4):v.exp(-e)/v.sqrt(e)*b(m,2/e)},"BESSELK",2,1));e.besselj=_,e.bessely=x,e.besseli=S,e.besselk=C},"undefined"==typeof DO_NOT_EXPORT_BESSEL?i(t):i({})},86061:function(e){!function(t){"use strict";var i,n="[big.js] ",o=n+"Invalid ",r=o+"decimal places",a=o+"rounding mode",s=n+"Division by zero",l={},c=void 0,d=/^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i;function u(e,t,i,n){var o=e.c,r=e.e+t+1;if(r<o.length){if(1===i)n=o[r]>=5;else if(2===i)n=o[r]>5||5==o[r]&&(n||r<0||o[r+1]!==c||1&o[r-1]);else if(3===i)n=n||!!o[0];else if(n=!1,0!==i)throw Error(a);if(r<1)o.length=1,n?(e.e=-t,o[0]=1):o[0]=e.e=0;else{if(o.length=r--,n)for(;++o[r]>9;)o[r]=0,r--||(++e.e,o.unshift(1));for(r=o.length;!o[--r];)o.pop()}}else if(i<0||i>3||i!==~~i)throw Error(a);return e}function h(e,t,i,n){var a,s,l=e.constructor,d=!e.c[0];if(i!==c){if(i!==~~i||i<(3==t)||i>1e6)throw Error(3==t?o+"precision":r);for(i=n-(e=new l(e)).e,e.c.length>++n&&u(e,i,l.RM),2==t&&(n=e.e+i+1);e.c.length<n;)e.c.push(0)}if(a=e.e,i=(s=e.c.join("")).length,2!=t&&(1==t||3==t&&n<=a||a<=l.NE||a>=l.PE))s=s.charAt(0)+(i>1?"."+s.slice(1):"")+(a<0?"e":"e+")+a;else if(a<0){for(;++a;)s="0"+s;s="0."+s}else if(a>0)if(++a>i)for(a-=i;a--;)s+="0";else a<i&&(s=s.slice(0,a)+"."+s.slice(a));else i>1&&(s=s.charAt(0)+"."+s.slice(1));return e.s<0&&(!d||4==t)?"-"+s:s}l.abs=function(){var e=new this.constructor(this);return e.s=1,e},l.cmp=function(e){var t,i=this.c,n=(e=new this.constructor(e)).c,o=this.s,r=e.s,a=this.e,s=e.e;if(!i[0]||!n[0])return i[0]?o:n[0]?-r:0;if(o!=r)return o;if(t=o<0,a!=s)return a>s^t?1:-1;for(o=-1,r=(a=i.length)<(s=n.length)?a:s;++o<r;)if(i[o]!=n[o])return i[o]>n[o]^t?1:-1;return a==s?0:a>s^t?1:-1},l.div=function(e){var t=this.constructor,i=this.c,n=(e=new t(e)).c,o=this.s==e.s?1:-1,a=t.DP;if(a!==~~a||a<0||a>1e6)throw Error(r);if(!n[0])throw Error(s);if(!i[0])return new t(0*o);var l,d,h,p,f,g=n.slice(),m=l=n.length,v=i.length,b=i.slice(0,l),y=b.length,w=e,_=w.c=[],x=0,S=a+(w.e=this.e-e.e)+1;for(w.s=o,o=S<0?0:S,g.unshift(0);y++<l;)b.push(0);do{for(h=0;h<10;h++){if(l!=(y=b.length))p=l>y?1:-1;else for(f=-1,p=0;++f<l;)if(n[f]!=b[f]){p=n[f]>b[f]?1:-1;break}if(p<0){for(d=y==l?n:g;y;){if(b[--y]<d[y]){for(f=y;f&&!b[--f];)b[f]=9;--b[f],b[y]+=10}b[y]-=d[y]}for(;!b[0];)b.shift()}else break}_[x++]=p?h:++h,b[0]&&p?b[y]=i[m]||0:b=[i[m]]}while((m++<v||b[0]!==c)&&o--);return!_[0]&&1!=x&&(_.shift(),w.e--),x>S&&u(w,a,t.RM,b[0]!==c),w},l.eq=function(e){return!this.cmp(e)},l.gt=function(e){return this.cmp(e)>0},l.gte=function(e){return this.cmp(e)>-1},l.lt=function(e){return 0>this.cmp(e)},l.lte=function(e){return 1>this.cmp(e)},l.minus=l.sub=function(e){var t,i,n,o,r=this.constructor,a=this.s,s=(e=new r(e)).s;if(a!=s)return e.s=-s,this.plus(e);var l=this.c.slice(),c=this.e,d=e.c,u=e.e;if(!l[0]||!d[0])return d[0]?(e.s=-s,e):new r(l[0]?this:0);if(a=c-u){for((o=a<0)?(a=-a,n=l):(u=c,n=d),n.reverse(),s=a;s--;)n.push(0);n.reverse()}else for(i=((o=l.length<d.length)?l:d).length,a=s=0;s<i;s++)if(l[s]!=d[s]){o=l[s]<d[s];break}if(o&&(n=l,l=d,d=n,e.s=-e.s),(s=(i=d.length)-(t=l.length))>0)for(;s--;)l[t++]=0;for(s=t;i>a;){if(l[--i]<d[i]){for(t=i;t&&!l[--t];)l[t]=9;--l[t],l[i]+=10}l[i]-=d[i]}for(;0===l[--s];)l.pop();for(;0===l[0];)l.shift(),--u;return l[0]||(e.s=1,l=[u=0]),e.c=l,e.e=u,e},l.mod=function(e){var t,i=this,n=i.constructor,o=i.s,r=(e=new n(e)).s;if(!e.c[0])throw Error(s);return(i.s=e.s=1,t=1==e.cmp(i),i.s=o,e.s=r,t)?new n(i):(o=n.DP,r=n.RM,n.DP=n.RM=0,i=i.div(e),n.DP=o,n.RM=r,this.minus(i.times(e)))},l.plus=l.add=function(e){var t,i=this.constructor,n=this.s,o=(e=new i(e)).s;if(n!=o)return e.s=-o,this.minus(e);var r=this.e,a=this.c,s=e.e,l=e.c;if(!a[0]||!l[0])return l[0]?e:new i(a[0]?this:0*n);if(a=a.slice(),n=r-s){for(n>0?(s=r,t=l):(n=-n,t=a),t.reverse();n--;)t.push(0);t.reverse()}for(a.length-l.length<0&&(t=l,l=a,a=t),n=l.length,o=0;n;a[n]%=10)o=(a[--n]=a[n]+l[n]+o)/10|0;for(o&&(a.unshift(o),++s),n=a.length;0===a[--n];)a.pop();return e.c=a,e.e=s,e},l.pow=function(e){var t=this,i=new t.constructor(1),n=i,r=e<0;if(e!==~~e||e<-1e6||e>1e6)throw Error(o+"exponent");for(r&&(e=-e);1&e&&(n=n.times(t)),e>>=1;)t=t.times(t);return r?i.div(n):n},l.round=function(e,t){var i=this.constructor;if(e===c)e=0;else if(e!==~~e||e<-1e6||e>1e6)throw Error(r);return u(new i(this),e,t===c?i.RM:t)},l.sqrt=function(){var e,t,i,o=this.constructor,r=this.s,a=this.e,s=new o(.5);if(!this.c[0])return new o(this);if(r<0)throw Error(n+"No square root");0===(r=Math.sqrt(this+""))||r===1/0?((t=this.c.join("")).length+a&1||(t+="0"),a=((a+1)/2|0)-(a<0||1&a),e=new o(((r=Math.sqrt(t))==1/0?"1e":(r=r.toExponential()).slice(0,r.indexOf("e")+1))+a)):e=new o(r),a=e.e+(o.DP+=4);do i=e,e=s.times(i.plus(this.div(i)));while(i.c.slice(0,a).join("")!==e.c.slice(0,a).join(""));return u(e,o.DP-=4,o.RM)},l.times=l.mul=function(e){var t,i=this.constructor,n=this.c,o=(e=new i(e)).c,r=n.length,a=o.length,s=this.e,l=e.e;if(e.s=this.s==e.s?1:-1,!n[0]||!o[0])return new i(0*e.s);for(e.e=s+l,r<a&&(t=n,n=o,o=t,l=r,r=a,a=l),t=Array(l=r+a);l--;)t[l]=0;for(s=a;s--;){for(a=0,l=r+s;l>s;)a=t[l]+o[s]*n[l-s-1]+a,t[l--]=a%10,a=a/10|0;t[l]=(t[l]+a)%10}for(a?++e.e:t.shift(),s=t.length;!t[--s];)t.pop();return e.c=t,e},l.toExponential=function(e){return h(this,1,e,e)},l.toFixed=function(e){return h(this,2,e,this.e+e)},l.toPrecision=function(e){return h(this,3,e,e-1)},l.toString=function(){return h(this)},l.valueOf=l.toJSON=function(){return h(this,4)},(i=function e(){function t(i){if(!(this instanceof t))return i===c?e():new t(i);i instanceof t?(this.s=i.s,this.e=i.e,this.c=i.c.slice()):function(e,t){var i,n,r;if(0===t&&1/t<0)t="-0";else if(!d.test(t+=""))throw Error(o+"number");for(e.s="-"==t.charAt(0)?(t=t.slice(1),-1):1,(i=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(i<0&&(i=n),i+=+t.slice(n+1),t=t.substring(0,n)):i<0&&(i=t.length),r=t.length,n=0;n<r&&"0"==t.charAt(n);)++n;if(n==r)e.c=[e.e=0];else{for(;r>0&&"0"==t.charAt(--r););for(e.e=i-n-1,e.c=[],i=0;n<=r;)e.c[i++]=+t.charAt(n++)}}(this,i),this.constructor=t}return t.prototype=l,t.DP=20,t.RM=1,t.NE=-7,t.PE=21,t.version="5.2.2",t}()).default=i.Big=i,"function"==typeof define&&define.amd?define(function(){return i}):e.exports?e.exports=i:t.Big=i}(this)},39499:function(e,t,i){"use strict";i.r(t),i.d(t,{generateParserModule:()=>iy,Flat:()=>eE,MismatchedTokenException:()=>tN,createToken:()=>ew,resolveGrammar:()=>tk,tokenMatcher:()=>eC,RepetitionWithSeparator:()=>eN,tokenName:()=>ed,EMPTY_ALT:()=>is,serializeProduction:()=>eF,Terminal:()=>eL,CstParser:()=>ic,Option:()=>eR,EOF:()=>ex,ParserDefinitionErrorType:()=>_,Repetition:()=>eM,Rule:()=>eT,VERSION:()=>x,createSyntaxDiagramsCode:()=>iu,defaultLexerErrorProvider:()=>ea,LexerDefinitionErrorType:()=>b,validateGrammar:()=>tI,createTokenInstance:()=>eS,assignOccurrenceIndices:()=>tA,EarlyExitException:()=>tB,tokenLabel:()=>ec,RepetitionMandatory:()=>eD,generateParserFactory:()=>ib,isRecognitionException:()=>tM,defaultGrammarResolverErrorProvider:()=>t_,NonTerminal:()=>eA,Lexer:()=>el,NoViableAltException:()=>tP,defaultGrammarValidatorErrorProvider:()=>tx,clearCache:()=>iw,Parser:()=>il,defaultParserErrorProvider:()=>tw,serializeGrammar:()=>eB,Alternation:()=>eP,RepetitionMandatoryWithSeparator:()=>eO,GAstVisitor:()=>eH,EmbeddedActionsParser:()=>id,NotAllInputParsedException:()=>tL});var n,o,r,a,s,l,c,d,u,h,p,f,g,m,v,b,y,w,_,x="6.5.0",S=i(29063),C=i(6646),k={},I=new C.RegExpParser;function A(e){var t=e.toString();if(k.hasOwnProperty(t))return k[t];var i=I.pattern(t);return k[t]=i,i}var T=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)},function(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),E="Complement Sets are not supported for first char optimization",R='Unable to use "first char" lexer optimizations:\n';function D(e,t,i){var n=X(e);t[n]=n,!0===i&&function(e,t){var i=String.fromCharCode(e),n=i.toUpperCase();if(n!==i){var o=X(n.charCodeAt(0));t[o]=o}else{var r=i.toLowerCase();if(r!==i){var o=X(r.charCodeAt(0));t[o]=o}}}(e,t)}function O(e,t){return(0,S.sE)(e.value,function(e){return"number"==typeof e?(0,S.r3)(t,e):void 0!==(0,S.sE)(t,function(t){return e.from<=t&&t<=e.to})})}var M=function(e){function t(t){var i=e.call(this)||this;return i.targetCharCodes=t,i.found=!1,i}return T(t,e),t.prototype.visitChildren=function(t){if(!0!==this.found){switch(t.type){case"Lookahead":this.visitLookahead(t);return;case"NegativeLookahead":this.visitNegativeLookahead(t);return}e.prototype.visitChildren.call(this,t)}},t.prototype.visitCharacter=function(e){(0,S.r3)(this.targetCharCodes,e.value)&&(this.found=!0)},t.prototype.visitSet=function(e){e.complement?void 0===O(e,this.targetCharCodes)&&(this.found=!0):void 0!==O(e,this.targetCharCodes)&&(this.found=!0)},t}(C.BaseRegExpVisitor);function N(e,t){if(!(t instanceof RegExp))return void 0!==(0,S.sE)(t,function(t){return(0,S.r3)(e,t.charCodeAt(0))});var i=A(t),n=new M(e);return n.visit(i),n.found}var P=(o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)},function(e,t){function i(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),L="PATTERN",B="defaultMode",F="modes",V="boolean"==typeof RegExp("(?:)").sticky,z=/[^\\][\$]/,H=/[^\\[][\^]|^\^/;function W(e){var t=e.ignoreCase?"i":"";return RegExp("^(?:"+e.source+")",t)}function Y(e){var t=e.ignoreCase?"iy":"y";return RegExp(""+e.source,t)}function U(e){var t=e.PATTERN;if((0,S.Kj)(t))return!1;if((0,S.mf)(t))return!0;if((0,S.e$)(t,"exec"))return!0;if((0,S.HD)(t))return!1;throw Error("non exhaustive match")}function G(e){return!!(0,S.HD)(e)&&1===e.length&&e.charCodeAt(0)}var Z={test:function(e){for(var t=e.length,i=this.lastIndex;i<t;i++){var n=e.charCodeAt(i);if(10===n)return this.lastIndex=i+1,!0;if(13===n)return 10===e.charCodeAt(i+1)?this.lastIndex=i+2:this.lastIndex=i+1,!0}return!1},lastIndex:0};function j(e,t){if((0,S.e$)(e,"LINE_BREAKS"))return!1;if((0,S.Kj)(e.PATTERN)){try{N(t,e.PATTERN)}catch(e){return{issue:b.IDENTIFY_TERMINATOR,errMsg:e.message}}return!1}if((0,S.HD)(e.PATTERN))return!1;if(U(e))return{issue:b.CUSTOM_LINE_BREAK};throw Error("non exhaustive match")}function q(e){return(0,S.UI)(e,function(e){return(0,S.HD)(e)&&e.length>0?e.charCodeAt(0):e})}function K(e,t,i){void 0===e[t]?e[t]=[i]:e[t].push(i)}function X(e){return e<256?e:Q[e]}var Q=[];function $(e,t){var i=e.tokenTypeIdx;return i===t.tokenTypeIdx||!0===t.isParent&&!0===t.categoryMatchesMap[i]}function J(e,t){return e.tokenTypeIdx===t.tokenTypeIdx}var ee=1,et={};function ei(e){var t,i,n,o=function(e){for(var t=(0,S.Qw)(e),i=e,n=!0;n;){i=(0,S.oA)((0,S.xH)((0,S.UI)(i,function(e){return e.CATEGORIES})));var o=(0,S.e5)(i,t);t=t.concat(o),(0,S.xb)(o)?n=!1:i=o}return t}(e);t=o,(0,S.Ed)(t,function(e){var t,i;en(e)||(et[ee]=e,e.tokenTypeIdx=ee++),eo(e)&&!(0,S.kJ)(e.CATEGORIES)&&(e.CATEGORIES=[e.CATEGORIES]),eo(e)||(e.CATEGORIES=[]),t=e,(0,S.e$)(t,"categoryMatches")||(e.categoryMatches=[]),i=e,(0,S.e$)(i,"categoryMatchesMap")||(e.categoryMatchesMap={})}),i=o,(0,S.Ed)(i,function(e){!function e(t,i){(0,S.Ed)(t,function(e){i.categoryMatchesMap[e.tokenTypeIdx]=!0}),(0,S.Ed)(i.CATEGORIES,function(n){var o=t.concat(i);(0,S.r3)(o,n)||e(o,n)})}([],e)}),n=o,(0,S.Ed)(n,function(e){e.categoryMatches=[],(0,S.Ed)(e.categoryMatchesMap,function(t,i){e.categoryMatches.push(et[i].tokenTypeIdx)})}),(0,S.Ed)(o,function(e){e.isParent=e.categoryMatches.length>0})}function en(e){return(0,S.e$)(e,"tokenTypeIdx")}function eo(e){return(0,S.e$)(e,"CATEGORIES")}function er(e){return(0,S.e$)(e,"tokenTypeIdx")}var ea={buildUnableToPopLexerModeMessage:function(e){return"Unable to pop Lexer Mode after encountering Token ->"+e.image+"<- The Mode Stack is empty"},buildUnexpectedCharactersMessage:function(e,t,i,n,o){return"unexpected character: ->"+e.charAt(t)+"<- at offset: "+t+", skipped "+i+" characters."}};(r=b||(b={}))[r.MISSING_PATTERN=0]="MISSING_PATTERN",r[r.INVALID_PATTERN=1]="INVALID_PATTERN",r[r.EOI_ANCHOR_FOUND=2]="EOI_ANCHOR_FOUND",r[r.UNSUPPORTED_FLAGS_FOUND=3]="UNSUPPORTED_FLAGS_FOUND",r[r.DUPLICATE_PATTERNS_FOUND=4]="DUPLICATE_PATTERNS_FOUND",r[r.INVALID_GROUP_TYPE_FOUND=5]="INVALID_GROUP_TYPE_FOUND",r[r.PUSH_MODE_DOES_NOT_EXIST=6]="PUSH_MODE_DOES_NOT_EXIST",r[r.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE=7]="MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE",r[r.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY=8]="MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY",r[r.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST=9]="MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST",r[r.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED=10]="LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED",r[r.SOI_ANCHOR_FOUND=11]="SOI_ANCHOR_FOUND",r[r.EMPTY_MATCH_PATTERN=12]="EMPTY_MATCH_PATTERN",r[r.NO_LINE_BREAKS_FLAGS=13]="NO_LINE_BREAKS_FLAGS",r[r.UNREACHABLE_PATTERN=14]="UNREACHABLE_PATTERN",r[r.IDENTIFY_TERMINATOR=15]="IDENTIFY_TERMINATOR",r[r.CUSTOM_LINE_BREAK=16]="CUSTOM_LINE_BREAK";var es={deferDefinitionErrorsHandling:!1,positionTracking:"full",lineTerminatorsPattern:/\n|\r\n?/g,lineTerminatorCharacters:["\n","\r"],ensureOptimizations:!1,safeMode:!1,errorMessageProvider:ea,traceInitPerf:!1,skipValidations:!1};Object.freeze(es);var el=function(){function e(e,t){var i=this;if(void 0===t&&(t=es),this.lexerDefinition=e,this.lexerDefinitionErrors=[],this.lexerDefinitionWarning=[],this.patternIdxToConfig={},this.charCodeToPatternIdxToConfig={},this.modes=[],this.emptyGroups={},this.config=void 0,this.trackStartLines=!0,this.trackEndLines=!0,this.hasCustom=!1,this.canModeBeOptimized={},"boolean"==typeof t)throw Error("The second argument to the Lexer constructor is now an ILexerConfig Object.\na boolean 2nd argument is no longer supported");this.config=(0,S.TS)(es,t);var n=this.config.traceInitPerf;!0===n?(this.traceInitMaxIdent=1/0,this.traceInitPerf=!0):"number"==typeof n&&(this.traceInitMaxIdent=n,this.traceInitPerf=!0),this.traceInitIndent=-1,this.TRACE_INIT("Lexer Constructor",function(){var n,o=!0;i.TRACE_INIT("Lexer Config handling",function(){if(i.config.lineTerminatorsPattern===es.lineTerminatorsPattern)i.config.lineTerminatorsPattern=Z;else if(i.config.lineTerminatorCharacters===es.lineTerminatorCharacters)throw Error("Error: Missing <lineTerminatorCharacters> property on the Lexer config.\n	For details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#MISSING_LINE_TERM_CHARS");if(t.safeMode&&t.ensureOptimizations)throw Error('"safeMode" and "ensureOptimizations" flags are mutually exclusive.');i.trackStartLines=/full|onlyStart/i.test(i.config.positionTracking),i.trackEndLines=/full/i.test(i.config.positionTracking),(0,S.kJ)(e)?((n={modes:{}}).modes[B]=(0,S.Qw)(e),n[B]=B):(o=!1,n=(0,S.Cl)(e))}),!1===i.config.skipValidations&&(i.TRACE_INIT("performRuntimeChecks",function(){var e,t,o,r;i.lexerDefinitionErrors=i.lexerDefinitionErrors.concat((e=n,i.trackStartLines,i.config.lineTerminatorCharacters,r=[],(0,S.e$)(e,B)||r.push({message:"A MultiMode Lexer cannot be initialized without a <"+B+"> property in its definition\n",type:b.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE}),(0,S.e$)(e,F)||r.push({message:"A MultiMode Lexer cannot be initialized without a <"+F+"> property in its definition\n",type:b.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY}),(0,S.e$)(e,F)&&(0,S.e$)(e,B)&&!(0,S.e$)(e.modes,e.defaultMode)&&r.push({message:"A MultiMode Lexer cannot be initialized with a "+B+": <"+e.defaultMode+">which does not exist\n",type:b.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST}),(0,S.e$)(e,F)&&(0,S.Ed)(e.modes,function(e,t){(0,S.Ed)(e,function(e,i){(0,S.o8)(e)&&r.push({message:"A Lexer cannot be initialized using an undefined Token Type. Mode:"+("<"+t+"> at index: <")+i+">\n",type:b.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED})})}),r))}),i.TRACE_INIT("performWarningRuntimeChecks",function(){var e,t,o,r,a,s,l,c;i.lexerDefinitionWarning=i.lexerDefinitionWarning.concat((e=n,t=i.trackStartLines,o=i.config.lineTerminatorCharacters,r=[],a=!1,s=(0,S.oA)((0,S.xH)((0,S.Q8)(e.modes,function(e){return e}))),l=(0,S.d1)(s,function(e){return e[L]===el.NA}),c=q(o),t&&(0,S.Ed)(l,function(e){var t=j(e,c);if(!1!==t){var i={message:function(e,t){if(t.issue===b.IDENTIFY_TERMINATOR)return"Warning: unable to identify line terminator usage in pattern.\n	The problem is in the <"+e.name+"> Token Type\n	 Root cause: "+t.errMsg+".\n	For details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#IDENTIFY_TERMINATOR";if(t.issue===b.CUSTOM_LINE_BREAK)return"Warning: A Custom Token Pattern should specify the <line_breaks> option.\n	The problem is in the <"+e.name+"> Token Type\n	For details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#CUSTOM_LINE_BREAK";throw Error("non exhaustive match")}(e,t),type:t.issue,tokenType:e};r.push(i)}else(0,S.e$)(e,"LINE_BREAKS")?!0===e.LINE_BREAKS&&(a=!0):N(c,e.PATTERN)&&(a=!0)}),t&&!a&&r.push({message:"Warning: No LINE_BREAKS Found.\n	This Lexer has been defined to track line and column information,\n	But none of the Token Types can be identified as matching a line terminator.\n	See https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#LINE_BREAKS \n	for details.",type:b.NO_LINE_BREAKS_FLAGS}),r))})),n.modes=n.modes?n.modes:{},(0,S.Ed)(n.modes,function(e,t){n.modes[t]=(0,S.d1)(e,function(e){return(0,S.o8)(e)})});var r=(0,S.XP)(n.modes);if((0,S.Ed)(n.modes,function(e,n){i.TRACE_INIT("Mode: <"+n+"> processing",function(){if(i.modes.push(n),!1===i.config.skipValidations&&i.TRACE_INIT("validatePatterns",function(){var t,n,o,a,s,l,c,d,u,h,p,f,g,m,v,y,w,_,x,k,I,T,E,R,D,O,M,N,B,F,V,W,Y;i.lexerDefinitionErrors=i.lexerDefinitionErrors.concat((t=[],s=e,l=(0,S.hX)(s,function(e){return!(0,S.e$)(e,L)}),n={errors:(0,S.UI)(l,function(e){return{message:"Token Type: ->"+e.name+"<- missing static 'PATTERN' property",type:b.MISSING_PATTERN,tokenTypes:[e]}}),valid:(0,S.e5)(s,l)},t=t.concat(n.errors),a=(c=n.valid,d=(0,S.hX)(c,function(e){var t=e[L];return!(0,S.Kj)(t)&&!(0,S.mf)(t)&&!(0,S.e$)(t,"exec")&&!(0,S.HD)(t)}),o={errors:(0,S.UI)(d,function(e){return{message:"Token Type: ->"+e.name+"<- static 'PATTERN' can only be a RegExp, a Function matching the {CustomPatternMatcherFunc} type or an Object matching the {ICustomPattern} interface.",type:b.INVALID_PATTERN,tokenTypes:[e]}}),valid:(0,S.e5)(c,d)}).valid,t=(t=(t=(t=(t=t.concat(o.errors)).concat((u=a,h=[],p=(0,S.hX)(u,function(e){return(0,S.Kj)(e[L])}),(h=(h=(h=(h=h.concat((f=p,g=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.found=!1,t}return P(t,e),t.prototype.visitEndAnchor=function(e){this.found=!0},t}(C.BaseRegExpVisitor),m=(0,S.hX)(f,function(e){var t=e[L];try{var i=A(t),n=new g;return n.visit(i),n.found}catch(e){return z.test(t.source)}}),(0,S.UI)(m,function(e){return{message:"Unexpected RegExp Anchor Error:\n	Token Type: ->"+e.name+"<- static 'PATTERN' cannot contain end of input anchor '$'\n	See sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#ANCHORS	for details.",type:b.EOI_ANCHOR_FOUND,tokenTypes:[e]}})))).concat((v=p,y=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.found=!1,t}return P(t,e),t.prototype.visitStartAnchor=function(e){this.found=!0},t}(C.BaseRegExpVisitor),w=(0,S.hX)(v,function(e){var t=e[L];try{var i=A(t),n=new y;return n.visit(i),n.found}catch(e){return H.test(t.source)}}),(0,S.UI)(w,function(e){return{message:"Unexpected RegExp Anchor Error:\n	Token Type: ->"+e.name+"<- static 'PATTERN' cannot contain start of input anchor '^'\n	See https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#ANCHORS	for details.",type:b.SOI_ANCHOR_FOUND,tokenTypes:[e]}})))).concat((_=p,x=(0,S.hX)(_,function(e){var t=e[L];return t instanceof RegExp&&(t.multiline||t.global)}),(0,S.UI)(x,function(e){return{message:"Token Type: ->"+e.name+"<- static 'PATTERN' may NOT contain global('g') or multiline('m')",type:b.UNSUPPORTED_FLAGS_FOUND,tokenTypes:[e]}})))).concat((k=p,I=[],T=(0,S.UI)(k,function(e){return(0,S.u4)(k,function(t,i){return e.PATTERN.source!==i.PATTERN.source||(0,S.r3)(I,i)||i.PATTERN===el.NA||(I.push(i),t.push(i)),t},[])}),T=(0,S.oA)(T),E=(0,S.hX)(T,function(e){return e.length>1}),(0,S.UI)(E,function(e){var t=(0,S.UI)(e,function(e){return e.name});return{message:"The same RegExp pattern ->"+(0,S.Ps)(e).PATTERN+"<-has been used in all of the following Token Types: "+t.join(", ")+" <-",type:b.DUPLICATE_PATTERNS_FOUND,tokenTypes:e}})))).concat((R=p,D=(0,S.hX)(R,function(e){return e[L].test("")}),(0,S.UI)(D,function(e){return{message:"Token Type: ->"+e.name+"<- static 'PATTERN' must not match an empty string",type:b.EMPTY_MATCH_PATTERN,tokenTypes:[e]}})))))).concat((O=a,M=(0,S.hX)(O,function(e){if(!(0,S.e$)(e,"GROUP"))return!1;var t=e.GROUP;return t!==el.SKIPPED&&t!==el.NA&&!(0,S.HD)(t)}),(0,S.UI)(M,function(e){return{message:"Token Type: ->"+e.name+"<- static 'GROUP' can only be Lexer.SKIPPED/Lexer.NA/A String",type:b.INVALID_GROUP_TYPE_FOUND,tokenTypes:[e]}})))).concat((N=a,B=r,F=(0,S.hX)(N,function(e){return void 0!==e.PUSH_MODE&&!(0,S.r3)(B,e.PUSH_MODE)}),(0,S.UI)(F,function(e){return{message:"Token Type: ->"+e.name+"<- static 'PUSH_MODE' value cannot refer to a Lexer Mode ->"+e.PUSH_MODE+"<-which does not exist",type:b.PUSH_MODE_DOES_NOT_EXIST,tokenTypes:[e]}})))).concat((V=a,W=[],Y=(0,S.u4)(V,function(e,t,i){var n,o=t.PATTERN;return o===el.NA||((0,S.HD)(o)?e.push({str:o,idx:i,tokenType:t}):(0,S.Kj)(o)&&(n=o,void 0===(0,S.sE)([".","\\","[","]","|","^","$","(",")","?","*","+","{"],function(e){return -1!==n.source.indexOf(e)}))&&e.push({str:o.source,idx:i,tokenType:t})),e},[]),(0,S.Ed)(V,function(e,t){(0,S.Ed)(Y,function(i){var n=i.str,o=i.idx,r=i.tokenType;if(t<o&&function(e,t){if((0,S.Kj)(t)){var i=t.exec(e);return null!==i&&0===i.index}if((0,S.mf)(t))return t(e,0,[],{});if((0,S.e$)(t,"exec"))return t.exec(e,0,[],{});if("string"==typeof t)return t===e;throw Error("non exhaustive match")}(n,e.PATTERN)){var a="Token: ->"+r.name+"<- can never be matched.\nBecause it appears AFTER the Token Type ->"+e.name+"<-in the lexer's definition.\nSee https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#UNREACHABLE";W.push({message:a,type:b.UNREACHABLE_PATTERN,tokenTypes:[e,r]})}})}),W))))}),(0,S.xb)(i.lexerDefinitionErrors)){var o;ei(e),i.TRACE_INIT("analyzeTokenTypes",function(){var n,r,a,s,l,c,d,u,h,p,f,g,m,v,b,y,w;n={lineTerminatorCharacters:i.config.lineTerminatorCharacters,positionTracking:t.positionTracking,ensureOptimizations:t.ensureOptimizations,safeMode:t.safeMode,tracer:i.TRACE_INIT.bind(i)},(v=(n=(0,S.ce)(n,{useSticky:V,debug:!1,safeMode:!1,positionTracking:"full",lineTerminatorCharacters:["\r","\n"],tracer:function(e,t){return t()}})).tracer)("initCharCodeToOptimizedIndexMap",function(){if((0,S.xb)(Q)){Q=Array(65536);for(var e=0;e<65536;e++)Q[e]=e>255?255+~~(e/255):e}}),v("Reject Lexer.NA",function(){r=(0,S.d1)(e,function(e){return e[L]===el.NA})}),b=!1,v("Transform Patterns",function(){b=!1,a=(0,S.UI)(r,function(e){var t=e[L];if((0,S.Kj)(t)){var i=t.source;return 1===i.length&&"^"!==i&&"$"!==i&&"."!==i?i:2!==i.length||"\\"!==i[0]||(0,S.r3)(["d","D","s","S","t","r","n","t","0","c","b","B","f","v","w","W"],i[1])?n.useSticky?Y(t):W(t):i[1]}if((0,S.mf)(t))return b=!0,{exec:t};if((0,S.e$)(t,"exec"))return b=!0,t;if("string"==typeof t)if(1===t.length)return t;else{var o=new RegExp(t.replace(/[\\^$.*+?()[\]{}|]/g,"\\$&"));return n.useSticky?Y(o):W(o)}throw Error("non exhaustive match")})}),v("misc mapping",function(){s=(0,S.UI)(r,function(e){return e.tokenTypeIdx}),l=(0,S.UI)(r,function(e){var t=e.GROUP;if(t!==el.SKIPPED){if((0,S.HD)(t))return t;if((0,S.o8)(t))return!1;throw Error("non exhaustive match")}}),c=(0,S.UI)(r,function(e){var t=e.LONGER_ALT;if(t)return(0,S.cq)(r,t)}),d=(0,S.UI)(r,function(e){return e.PUSH_MODE}),u=(0,S.UI)(r,function(e){return(0,S.e$)(e,"POP_MODE")})}),v("Line Terminator Handling",function(){var e=q(n.lineTerminatorCharacters);h=(0,S.UI)(r,function(e){return!1}),"onlyOffset"!==n.positionTracking&&(h=(0,S.UI)(r,function(t){return(0,S.e$)(t,"LINE_BREAKS")?t.LINE_BREAKS:!1===j(t,e)?N(e,t.PATTERN):void 0}))}),v("Misc Mapping #2",function(){p=(0,S.UI)(r,U),f=(0,S.UI)(a,G),g=(0,S.u4)(r,function(e,t){var i=t.GROUP;return(0,S.HD)(i)&&i!==el.SKIPPED&&(e[i]=[]),e},{}),m=(0,S.UI)(a,function(e,t){return{pattern:a[t],longerAlt:c[t],canLineTerminator:h[t],isCustom:p[t],short:f[t],group:l[t],push:d[t],pop:u[t],tokenTypeIdx:s[t],tokenType:r[t]}})}),y=!0,w=[],n.safeMode||v("First Char Optimization",function(){w=(0,S.u4)(r,function(e,t,i){if("string"==typeof t.PATTERN){var o;K(e,X(t.PATTERN.charCodeAt(0)),m[i])}else if((0,S.kJ)(t.START_CHARS_HINT))(0,S.Ed)(t.START_CHARS_HINT,function(t){var n=X("string"==typeof t?t.charCodeAt(0):t);o!==n&&(o=n,K(e,n,m[i]))});else if((0,S.Kj)(t.PATTERN))if(t.PATTERN.unicode)y=!1,n.ensureOptimizations&&(0,S.WB)(""+R+"	Unable to analyze < "+t.PATTERN.toString()+" > pattern.\n	The regexp unicode flag is not currently supported by the regexp-to-ast library.\n	This will disable the lexer's first char optimizations.\n	For details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#UNICODE_OPTIMIZE");else{var r=function(e,t){void 0===t&&(t=!1);try{var i=A(e);return function e(t,i,n){switch(t.type){case"Disjunction":for(var o=0;o<t.value.length;o++)e(t.value[o],i,n);break;case"Alternative":for(var r=t.value,o=0;o<r.length;o++){var a=r[o];switch(a.type){case"EndAnchor":case"GroupBackReference":case"Lookahead":case"NegativeLookahead":case"StartAnchor":case"WordBoundary":case"NonWordBoundary":continue}switch(a.type){case"Character":D(a.value,i,n);break;case"Set":if(!0===a.complement)throw Error(E);(0,S.Ed)(a.value,function(e){if("number"==typeof e)D(e,i,n);else if(!0===n)for(var t=e.from;t<=e.to;t++)D(t,i,n);else{for(var t=e.from;t<=e.to&&t<256;t++)D(t,i,n);if(e.to>=256)for(var o=e.from>=256?e.from:256,r=e.to,a=X(o),s=X(r),l=a;l<=s;l++)i[l]=l}});break;case"Group":e(a.value,i,n);break;default:throw Error("Non Exhaustive Match")}var s=void 0!==a.quantifier&&0===a.quantifier.atLeast;if("Group"===a.type&&!1===function e(t){return!!t.quantifier&&0===t.quantifier.atLeast||!!t.value&&((0,S.kJ)(t.value)?(0,S.yW)(t.value,e):e(t.value))}(a)||"Group"!==a.type&&!1===s)break}break;default:throw Error("non exhaustive match!")}return(0,S.VO)(i)}(i.value,{},i.flags.ignoreCase)}catch(i){if(i.message===E)t&&(0,S.rr)(""+R+"	Unable to optimize: < "+e.toString()+" >\n	Complement Sets cannot be automatically optimized.\n	This will disable the lexer's first char optimizations.\n	See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#COMPLEMENT for details.");else{var n="";t&&(n="\n	This will disable the lexer's first char optimizations.\n	See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#REGEXP_PARSING for details."),(0,S.WB)(R+"\n	Failed parsing: < "+e.toString()+" >\n	Using the regexp-to-ast library version: "+C.VERSION+"\n	Please open an issue at: https://github.com/bd82/regexp-to-ast/issues"+n)}}return[]}(t.PATTERN,n.ensureOptimizations);(0,S.xb)(r)&&(y=!1),(0,S.Ed)(r,function(t){K(e,t,m[i])})}else n.ensureOptimizations&&(0,S.WB)(""+R+"	TokenType: <"+t.name+"> is using a custom token pattern without providing <start_chars_hint> parameter.\n	This will disable the lexer's first char optimizations.\n	For details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#CUSTOM_OPTIMIZE"),y=!1;return e},[])}),v("ArrayPacking",function(){w=(0,S.X0)(w)}),o={emptyGroups:g,patternIdxToConfig:m,charCodeToPatternIdxToConfig:w,hasCustom:b,canBeOptimized:y}}),i.patternIdxToConfig[n]=o.patternIdxToConfig,i.charCodeToPatternIdxToConfig[n]=o.charCodeToPatternIdxToConfig,i.emptyGroups=(0,S.TS)(i.emptyGroups,o.emptyGroups),i.hasCustom=o.hasCustom||i.hasCustom,i.canModeBeOptimized[n]=o.canBeOptimized}})}),i.defaultMode=n.defaultMode,!(0,S.xb)(i.lexerDefinitionErrors)&&!i.config.deferDefinitionErrorsHandling)throw Error("Errors detected in definition of Lexer:\n"+(0,S.UI)(i.lexerDefinitionErrors,function(e){return e.message}).join("-----------------------\n"));(0,S.Ed)(i.lexerDefinitionWarning,function(e){(0,S.rr)(e.message)}),i.TRACE_INIT("Choosing sub-methods implementations",function(){if(V?(i.chopInput=S.Wd,i.match=i.matchWithTest):(i.updateLastIndex=S.dG,i.match=i.matchWithExec),o&&(i.handleModes=S.dG),!1===i.trackStartLines&&(i.computeNewColumn=S.Wd),!1===i.trackEndLines&&(i.updateTokenEndLineColumnLocation=S.dG),/full/i.test(i.config.positionTracking))i.createTokenInstance=i.createFullToken;else if(/onlyStart/i.test(i.config.positionTracking))i.createTokenInstance=i.createStartOnlyToken;else if(/onlyOffset/i.test(i.config.positionTracking))i.createTokenInstance=i.createOffsetOnlyToken;else throw Error('Invalid <positionTracking> config option: "'+i.config.positionTracking+'"');i.hasCustom?(i.addToken=i.addTokenUsingPush,i.handlePayload=i.handlePayloadWithCustom):(i.addToken=i.addTokenUsingMemberAccess,i.handlePayload=i.handlePayloadNoCustom)}),i.TRACE_INIT("Failed Optimization Warnings",function(){var e=(0,S.u4)(i.canModeBeOptimized,function(e,t,i){return!1===t&&e.push(i),e},[]);if(t.ensureOptimizations&&!(0,S.xb)(e))throw Error("Lexer Modes: < "+e.join(", ")+' > cannot be optimized.\n	 Disable the "ensureOptimizations" lexer config flag to silently ignore this and run the lexer in an un-optimized mode.\n	 Or inspect the console log for details on how to resolve these issues.')}),i.TRACE_INIT("clearRegExpParserCache",function(){k={}}),i.TRACE_INIT("toFastProperties",function(){(0,S.SV)(i)})})}return e.prototype.tokenize=function(e,t){if(void 0===t&&(t=this.defaultMode),!(0,S.xb)(this.lexerDefinitionErrors))throw Error("Unable to Tokenize because Errors detected in definition of Lexer:\n"+(0,S.UI)(this.lexerDefinitionErrors,function(e){return e.message}).join("-----------------------\n"));return this.tokenizeInternal(e,t)},e.prototype.tokenizeInternal=function(e,t){var i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,v,b,y,w=this,_=e,x=_.length,C=0,k=0,I=Array(this.hasCustom?0:Math.floor(e.length/10)),A=[],T=this.trackStartLines?1:void 0,E=this.trackStartLines?1:void 0,R=(i=this.emptyGroups,n={},o=(0,S.XP)(i),(0,S.Ed)(o,function(e){var t=i[e];if((0,S.kJ)(t))n[e]=[];else throw Error("non exhaustive match")}),n),D=this.trackStartLines,O=this.config.lineTerminatorsPattern,M=0,N=[],P=[],L=[],B=[];Object.freeze(B);var F=void 0;function V(){return N}function z(e){var t=P[X(e)];return void 0===t?B:t}var H=function(e){if(1===L.length&&void 0===e.tokenType.PUSH_MODE){var t=w.config.errorMessageProvider.buildUnableToPopLexerModeMessage(e);A.push({offset:e.startOffset,line:void 0!==e.startLine?e.startLine:void 0,column:void 0!==e.startColumn?e.startColumn:void 0,length:e.image.length,message:t})}else{L.pop();var i=(0,S.Z$)(L);N=w.patternIdxToConfig[i],P=w.charCodeToPatternIdxToConfig[i],M=N.length;var n=w.canModeBeOptimized[i]&&!1===w.config.safeMode;F=P&&n?z:V}};function W(e){L.push(e),P=this.charCodeToPatternIdxToConfig[e],M=(N=this.patternIdxToConfig[e]).length,M=N.length;var t=this.canModeBeOptimized[e]&&!1===this.config.safeMode;F=P&&t?z:V}for(W.call(this,t);C<x;){c=null;var Y=_.charCodeAt(C),U=F(Y),G=U.length;for(r=0;r<G;r++){var Z=(y=U[r]).pattern;d=null;var j=y.short;if(!1!==j?Y===j&&(c=Z):!0===y.isCustom?null!==(b=Z.exec(_,C,I,R))?(c=b[0],void 0!==b.payload&&(d=b.payload)):c=null:(this.updateLastIndex(Z,C),c=this.match(Z,e,C)),null!==c){if(void 0!==(l=y.longerAlt)){var q=N[l],K=q.pattern;u=null,!0===q.isCustom?null!==(b=K.exec(_,C,I,R))?(s=b[0],void 0!==b.payload&&(u=b.payload)):s=null:(this.updateLastIndex(K,C),s=this.match(K,e,C)),s&&s.length>c.length&&(c=s,d=u,y=q)}break}}if(null!==c){if(h=c.length,void 0!==(p=y.group)&&(f=y.tokenTypeIdx,g=this.createTokenInstance(c,C,f,y.tokenType,T,E,h),this.handlePayload(g,d),!1===p?k=this.addToken(I,k,g):R[p].push(g)),e=this.chopInput(e,h),C+=h,E=this.computeNewColumn(E,h),!0===D&&!0===y.canLineTerminator){var Q=0,$=void 0,J=void 0;O.lastIndex=0;do!0===($=O.test(c))&&(J=O.lastIndex-1,Q++);while(!0===$);0!==Q&&(T+=Q,E=h-J,this.updateTokenEndLineColumnLocation(g,p,J,Q,T,E,h))}this.handleModes(y,H,W,g)}else{for(var ee=C,et=T,ei=E,en=!1;!en&&C<x;)for(_.charCodeAt(C),e=this.chopInput(e,1),C++,a=0;a<M;a++){var eo=N[a],Z=eo.pattern,j=eo.short;if(!1!==j?_.charCodeAt(C)===j&&(en=!0):!0===eo.isCustom?en=null!==Z.exec(_,C,I,R):(this.updateLastIndex(Z,C),en=null!==Z.exec(e)),!0===en)break}m=C-ee,v=this.config.errorMessageProvider.buildUnexpectedCharactersMessage(_,ee,m,et,ei),A.push({offset:ee,line:et,column:ei,length:m,message:v})}}return this.hasCustom||(I.length=k),{tokens:I,groups:R,errors:A}},e.prototype.handleModes=function(e,t,i,n){if(!0===e.pop){var o=e.push;t(n),void 0!==o&&i.call(this,o)}else void 0!==e.push&&i.call(this,e.push)},e.prototype.chopInput=function(e,t){return e.substring(t)},e.prototype.updateLastIndex=function(e,t){e.lastIndex=t},e.prototype.updateTokenEndLineColumnLocation=function(e,t,i,n,o,r,a){var s,l;void 0!==t&&(l=(s=i===a-1)?-1:0,(1!==n||!0!==s)&&(e.endLine=o+l,e.endColumn=r-1+-l))},e.prototype.computeNewColumn=function(e,t){return e+t},e.prototype.createTokenInstance=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return null},e.prototype.createOffsetOnlyToken=function(e,t,i,n){return{image:e,startOffset:t,tokenTypeIdx:i,tokenType:n}},e.prototype.createStartOnlyToken=function(e,t,i,n,o,r){return{image:e,startOffset:t,startLine:o,startColumn:r,tokenTypeIdx:i,tokenType:n}},e.prototype.createFullToken=function(e,t,i,n,o,r,a){return{image:e,startOffset:t,endOffset:t+a-1,startLine:o,endLine:o,startColumn:r,endColumn:r+a-1,tokenTypeIdx:i,tokenType:n}},e.prototype.addToken=function(e,t,i){return 666},e.prototype.addTokenUsingPush=function(e,t,i){return e.push(i),t},e.prototype.addTokenUsingMemberAccess=function(e,t,i){return e[t]=i,++t},e.prototype.handlePayload=function(e,t){},e.prototype.handlePayloadNoCustom=function(e,t){},e.prototype.handlePayloadWithCustom=function(e,t){null!==t&&(e.payload=t)},e.prototype.match=function(e,t,i){return null},e.prototype.matchWithTest=function(e,t,i){return!0===e.test(t)?t.substring(i,e.lastIndex):null},e.prototype.matchWithExec=function(e,t){var i=e.exec(t);return null!==i?i[0]:i},e.prototype.TRACE_INIT=function(e,t){if(!0!==this.traceInitPerf)return t();this.traceInitIndent++;var i=Array(this.traceInitIndent+1).join("	");this.traceInitIndent<this.traceInitMaxIdent&&console.log(i+"--\x3e <"+e+">");var n=(0,S.HT)(t),o=n.time,r=n.value,a=o>10?console.warn:console.log;return this.traceInitIndent<this.traceInitMaxIdent&&a(i+"<-- <"+e+"> time: "+o+"ms"),this.traceInitIndent--,r},e.SKIPPED="This marks a skipped Token pattern, this means each token identified by it willbe consumed and then thrown into oblivion, this can be used to for example to completely ignore whitespace.",e.NA=/NOT_APPLICABLE/,e}();function ec(e){return eu(e)?e.LABEL:e.name}function ed(e){return e.name}function eu(e){return(0,S.HD)(e.LABEL)&&""!==e.LABEL}var eh="categories",ep="label",ef="group",eg="push_mode",em="pop_mode",ev="longer_alt",eb="line_breaks",ey="start_chars_hint";function ew(e){return e_(e)}function e_(e){var t=e.pattern,i={};if(i.name=e.name,(0,S.o8)(t)||(i.PATTERN=t),(0,S.e$)(e,"parent"))throw"The parent property is no longer supported.\nSee: https://github.com/SAP/chevrotain/issues/564#issuecomment-349062346 for details.";return(0,S.e$)(e,eh)&&(i.CATEGORIES=e[eh]),ei([i]),(0,S.e$)(e,ep)&&(i.LABEL=e[ep]),(0,S.e$)(e,ef)&&(i.GROUP=e[ef]),(0,S.e$)(e,em)&&(i.POP_MODE=e[em]),(0,S.e$)(e,eg)&&(i.PUSH_MODE=e[eg]),(0,S.e$)(e,ev)&&(i.LONGER_ALT=e[ev]),(0,S.e$)(e,eb)&&(i.LINE_BREAKS=e[eb]),(0,S.e$)(e,ey)&&(i.START_CHARS_HINT=e[ey]),i}var ex=e_({name:"EOF",pattern:el.NA});function eS(e,t,i,n,o,r,a,s){return{image:t,startOffset:i,endOffset:n,startLine:o,endLine:r,startColumn:a,endColumn:s,tokenTypeIdx:e.tokenTypeIdx,tokenType:e}}function eC(e,t){return $(e,t)}ei([ex]);var ek=(a=function(e,t){return(a=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)},function(e,t){function i(){this.constructor=e}a(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),eI=function(){function e(e){this.definition=e}return e.prototype.accept=function(e){e.visit(this),(0,S.Ed)(this.definition,function(t){t.accept(e)})},e}(),eA=function(e){function t(t){var i=e.call(this,[])||this;return i.idx=1,(0,S.f0)(i,(0,S.ei)(t,function(e){return void 0!==e})),i}return ek(t,e),Object.defineProperty(t.prototype,"definition",{get:function(){return void 0!==this.referencedRule?this.referencedRule.definition:[]},set:function(e){},enumerable:!0,configurable:!0}),t.prototype.accept=function(e){e.visit(this)},t}(eI),eT=function(e){function t(t){var i=e.call(this,t.definition)||this;return i.orgText="",(0,S.f0)(i,(0,S.ei)(t,function(e){return void 0!==e})),i}return ek(t,e),t}(eI),eE=function(e){function t(t){var i=e.call(this,t.definition)||this;return i.ignoreAmbiguities=!1,(0,S.f0)(i,(0,S.ei)(t,function(e){return void 0!==e})),i}return ek(t,e),t}(eI),eR=function(e){function t(t){var i=e.call(this,t.definition)||this;return i.idx=1,(0,S.f0)(i,(0,S.ei)(t,function(e){return void 0!==e})),i}return ek(t,e),t}(eI),eD=function(e){function t(t){var i=e.call(this,t.definition)||this;return i.idx=1,(0,S.f0)(i,(0,S.ei)(t,function(e){return void 0!==e})),i}return ek(t,e),t}(eI),eO=function(e){function t(t){var i=e.call(this,t.definition)||this;return i.idx=1,(0,S.f0)(i,(0,S.ei)(t,function(e){return void 0!==e})),i}return ek(t,e),t}(eI),eM=function(e){function t(t){var i=e.call(this,t.definition)||this;return i.idx=1,(0,S.f0)(i,(0,S.ei)(t,function(e){return void 0!==e})),i}return ek(t,e),t}(eI),eN=function(e){function t(t){var i=e.call(this,t.definition)||this;return i.idx=1,(0,S.f0)(i,(0,S.ei)(t,function(e){return void 0!==e})),i}return ek(t,e),t}(eI),eP=function(e){function t(t){var i=e.call(this,t.definition)||this;return i.idx=1,i.ignoreAmbiguities=!1,i.hasPredicates=!1,(0,S.f0)(i,(0,S.ei)(t,function(e){return void 0!==e})),i}return ek(t,e),t}(eI),eL=function(){function e(e){this.idx=1,(0,S.f0)(this,(0,S.ei)(e,function(e){return void 0!==e}))}return e.prototype.accept=function(e){e.visit(this)},e}();function eB(e){return(0,S.UI)(e,eF)}function eF(e){function t(e){return(0,S.UI)(e,eF)}if(e instanceof eA)return{type:"NonTerminal",name:e.nonTerminalName,idx:e.idx};if(e instanceof eE)return{type:"Flat",definition:t(e.definition)};if(e instanceof eR)return{type:"Option",idx:e.idx,definition:t(e.definition)};if(e instanceof eD)return{type:"RepetitionMandatory",name:e.name,idx:e.idx,definition:t(e.definition)};if(e instanceof eO)return{type:"RepetitionMandatoryWithSeparator",name:e.name,idx:e.idx,separator:eF(new eL({terminalType:e.separator})),definition:t(e.definition)};else if(e instanceof eN)return{type:"RepetitionWithSeparator",name:e.name,idx:e.idx,separator:eF(new eL({terminalType:e.separator})),definition:t(e.definition)};else if(e instanceof eM)return{type:"Repetition",name:e.name,idx:e.idx,definition:t(e.definition)};else if(e instanceof eP)return{type:"Alternation",name:e.name,idx:e.idx,definition:t(e.definition)};else if(e instanceof eL){var i={type:"Terminal",name:e.terminalType.name,label:ec(e.terminalType),idx:e.idx},n=e.terminalType.PATTERN;return e.terminalType.PATTERN&&(i.pattern=(0,S.Kj)(n)?n.source:n),i}else if(e instanceof eT)return{type:"Rule",name:e.name,orgText:e.orgText,definition:t(e.definition)};else throw Error("non exhaustive match")}var eV=function(){function e(){}return e.prototype.walk=function(e,t){var i=this;void 0===t&&(t=[]),(0,S.Ed)(e.definition,function(n,o){var r=(0,S.Cw)(e.definition,o+1);if(n instanceof eA)i.walkProdRef(n,r,t);else if(n instanceof eL)i.walkTerminal(n,r,t);else if(n instanceof eE)i.walkFlat(n,r,t);else if(n instanceof eR)i.walkOption(n,r,t);else if(n instanceof eD)i.walkAtLeastOne(n,r,t);else if(n instanceof eO)i.walkAtLeastOneSep(n,r,t);else if(n instanceof eN)i.walkManySep(n,r,t);else if(n instanceof eM)i.walkMany(n,r,t);else if(n instanceof eP)i.walkOr(n,r,t);else throw Error("non exhaustive match")})},e.prototype.walkTerminal=function(e,t,i){},e.prototype.walkProdRef=function(e,t,i){},e.prototype.walkFlat=function(e,t,i){var n=t.concat(i);this.walk(e,n)},e.prototype.walkOption=function(e,t,i){var n=t.concat(i);this.walk(e,n)},e.prototype.walkAtLeastOne=function(e,t,i){var n=[new eR({definition:e.definition})].concat(t,i);this.walk(e,n)},e.prototype.walkAtLeastOneSep=function(e,t,i){var n=ez(e,t,i);this.walk(e,n)},e.prototype.walkMany=function(e,t,i){var n=[new eR({definition:e.definition})].concat(t,i);this.walk(e,n)},e.prototype.walkManySep=function(e,t,i){var n=ez(e,t,i);this.walk(e,n)},e.prototype.walkOr=function(e,t,i){var n=this,o=t.concat(i);(0,S.Ed)(e.definition,function(e){var t=new eE({definition:[e]});n.walk(t,o)})},e}();function ez(e,t,i){return[new eR({definition:[new eL({terminalType:e.separator})].concat(e.definition)})].concat(t,i)}var eH=function(){function e(){}return e.prototype.visit=function(e){switch(e.constructor){case eA:return this.visitNonTerminal(e);case eE:return this.visitFlat(e);case eR:return this.visitOption(e);case eD:return this.visitRepetitionMandatory(e);case eO:return this.visitRepetitionMandatoryWithSeparator(e);case eN:return this.visitRepetitionWithSeparator(e);case eM:return this.visitRepetition(e);case eP:return this.visitAlternation(e);case eL:return this.visitTerminal(e);case eT:return this.visitRule(e);default:throw Error("non exhaustive match")}},e.prototype.visitNonTerminal=function(e){},e.prototype.visitFlat=function(e){},e.prototype.visitOption=function(e){},e.prototype.visitRepetition=function(e){},e.prototype.visitRepetitionMandatory=function(e){},e.prototype.visitRepetitionMandatoryWithSeparator=function(e){},e.prototype.visitRepetitionWithSeparator=function(e){},e.prototype.visitAlternation=function(e){},e.prototype.visitTerminal=function(e){},e.prototype.visitRule=function(e){},e}(),eW=(s=function(e,t){return(s=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)},function(e,t){function i(){this.constructor=e}s(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});function eY(e,t){return void 0===t&&(t=[]),e instanceof eR||e instanceof eM||e instanceof eN||(e instanceof eP?(0,S.G)(e.definition,function(e){return eY(e,t)}):!(e instanceof eA&&(0,S.r3)(t,e))&&e instanceof eI&&(e instanceof eA&&t.push(e),(0,S.yW)(e.definition,function(e){return eY(e,t)})))}function eU(e){if(e instanceof eA)return"SUBRULE";if(e instanceof eR)return"OPTION";if(e instanceof eP)return"OR";if(e instanceof eD)return"AT_LEAST_ONE";if(e instanceof eO)return"AT_LEAST_ONE_SEP";else if(e instanceof eN)return"MANY_SEP";else if(e instanceof eM)return"MANY";else if(e instanceof eL)return"CONSUME";else throw Error("non exhaustive match")}var eG=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.separator="-",t.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[],repetitionMandatory:[],repetitionMandatoryWithSeparator:[]},t}return eW(t,e),t.prototype.reset=function(){this.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[],repetitionMandatory:[],repetitionMandatoryWithSeparator:[]}},t.prototype.visitTerminal=function(e){var t=e.terminalType.name+this.separator+"Terminal";(0,S.e$)(this.dslMethods,t)||(this.dslMethods[t]=[]),this.dslMethods[t].push(e)},t.prototype.visitNonTerminal=function(e){var t=e.nonTerminalName+this.separator+"Terminal";(0,S.e$)(this.dslMethods,t)||(this.dslMethods[t]=[]),this.dslMethods[t].push(e)},t.prototype.visitOption=function(e){this.dslMethods.option.push(e)},t.prototype.visitRepetitionWithSeparator=function(e){this.dslMethods.repetitionWithSeparator.push(e)},t.prototype.visitRepetitionMandatory=function(e){this.dslMethods.repetitionMandatory.push(e)},t.prototype.visitRepetitionMandatoryWithSeparator=function(e){this.dslMethods.repetitionMandatoryWithSeparator.push(e)},t.prototype.visitRepetition=function(e){this.dslMethods.repetition.push(e)},t.prototype.visitAlternation=function(e){this.dslMethods.alternation.push(e)},t}(eH),eZ=new eG;function ej(e){if(e instanceof eA)return ej(e.referencedRule);if(e instanceof eL)return[e.terminalType];if(e instanceof eE||e instanceof eR||e instanceof eM||e instanceof eD||e instanceof eO||e instanceof eN||e instanceof eL||e instanceof eT)return function(e){for(var t,i=[],n=e.definition,o=0,r=n.length>o,a=!0;r&&a;)a=eY(t=n[o]),i=i.concat(ej(t)),o+=1,r=n.length>o;return(0,S.jj)(i)}(e);if(e instanceof eP){var t,i;return t=e,i=(0,S.UI)(t.definition,function(e){return ej(e)}),(0,S.jj)((0,S.xH)(i))}throw Error("non exhaustive match")}var eq="_~IN~_",eK=(l=function(e,t){return(l=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)},function(e,t){function i(){this.constructor=e}l(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),eX=function(e){function t(t){var i=e.call(this)||this;return i.topProd=t,i.follows={},i}return eK(t,e),t.prototype.startWalking=function(){return this.walk(this.topProd),this.follows},t.prototype.walkTerminal=function(e,t,i){},t.prototype.walkProdRef=function(e,t,i){var n,o,r=(n=e.referencedRule,o=e.idx,n.name+o+eq+this.topProd.name),a=ej(new eE({definition:t.concat(i)}));this.follows[r]=a},t}(eV);function eQ(e,t,i,n){return i|t|e|n+1<<24}var e$=(c=function(e,t){return(c=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)},function(e,t){function i(){this.constructor=e}c(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});function eJ(e,t){!0===isNaN(e.startOffset)?(e.startOffset=t.startOffset,e.endOffset=t.endOffset):e.endOffset<t.endOffset==!0&&(e.endOffset=t.endOffset)}function e0(e,t){!0===isNaN(e.startOffset)?(e.startOffset=t.startOffset,e.startColumn=t.startColumn,e.startLine=t.startLine,e.endOffset=t.endOffset,e.endColumn=t.endColumn,e.endLine=t.endLine):e.endOffset<t.endOffset==!0&&(e.endOffset=t.endOffset,e.endColumn=t.endColumn,e.endLine=t.endLine)}function e1(e,t,i){void 0===e.children[t]?e.children[t]=[i]:e.children[t].push(i)}var e2=function(e){function t(t){var i=e.call(this)||this;return i.result=[],i.ruleIdx=t,i}return e$(t,e),t.prototype.collectNamedDSLMethod=function(e,t,i){if(!(0,S.o8)(e.name)){var n,o=void 0;if(e instanceof eR||e instanceof eM||e instanceof eD||e instanceof eP)o=new t({definition:e.definition,idx:e.idx});else if(e instanceof eO||e instanceof eN)o=new t({definition:e.definition,idx:e.idx,separator:e.separator});else throw Error("non exhaustive match");var r=[o],a=(n=this.ruleIdx,e.idx|i|n);this.result.push({def:r,key:a,name:e.name,orgProd:e})}},t.prototype.visitOption=function(e){this.collectNamedDSLMethod(e,eR,512)},t.prototype.visitRepetition=function(e){this.collectNamedDSLMethod(e,eM,768)},t.prototype.visitRepetitionMandatory=function(e){this.collectNamedDSLMethod(e,eD,1024)},t.prototype.visitRepetitionMandatoryWithSeparator=function(e){this.collectNamedDSLMethod(e,eO,1536)},t.prototype.visitRepetitionWithSeparator=function(e){this.collectNamedDSLMethod(e,eN,1280)},t.prototype.visitAlternation=function(e){var t=this;this.collectNamedDSLMethod(e,eP,256);var i=e.definition.length>1;(0,S.Ed)(e.definition,function(n,o){if(!(0,S.o8)(n.name)){var r,a,s=n.definition;s=i?[new eR({definition:n.definition})]:n.definition;var l=(r=t.ruleIdx,a=e.idx,256|a|r|o+1<<24);t.result.push({def:s,key:l,name:n.name,orgProd:n})}})},t}(eH),e3=(d=function(e,t){return(d=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)},function(e,t){function i(){this.constructor=e}d(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),e4=function(e){function t(t,i){var n=e.call(this,t,i)||this;return n.path=i,n.nextTerminalName="",n.nextTerminalOccurrence=0,n.nextTerminalName=n.path.lastTok.name,n.nextTerminalOccurrence=n.path.lastTokOccurrence,n}return e3(t,e),t.prototype.walkTerminal=function(e,t,i){if(this.isAtEndOfPath&&e.terminalType.name===this.nextTerminalName&&e.idx===this.nextTerminalOccurrence&&!this.found){var n=new eE({definition:t.concat(i)});this.possibleTokTypes=ej(n),this.found=!0}},t}(function(e){function t(t,i){var n=e.call(this)||this;return n.topProd=t,n.path=i,n.possibleTokTypes=[],n.nextProductionName="",n.nextProductionOccurrence=0,n.found=!1,n.isAtEndOfPath=!1,n}return e3(t,e),t.prototype.startWalking=function(){if(this.found=!1,this.path.ruleStack[0]!==this.topProd.name)throw Error("The path does not start with the walker's top Rule!");return this.ruleStack=(0,S.Qw)(this.path.ruleStack).reverse(),this.occurrenceStack=(0,S.Qw)(this.path.occurrenceStack).reverse(),this.ruleStack.pop(),this.occurrenceStack.pop(),this.updateExpectedNext(),this.walk(this.topProd),this.possibleTokTypes},t.prototype.walk=function(t,i){void 0===i&&(i=[]),this.found||e.prototype.walk.call(this,t,i)},t.prototype.walkProdRef=function(e,t,i){if(e.referencedRule.name===this.nextProductionName&&e.idx===this.nextProductionOccurrence){var n=t.concat(i);this.updateExpectedNext(),this.walk(e.referencedRule,n)}},t.prototype.updateExpectedNext=function(){(0,S.xb)(this.ruleStack)?(this.nextProductionName="",this.nextProductionOccurrence=0,this.isAtEndOfPath=!0):(this.nextProductionName=this.ruleStack.pop(),this.nextProductionOccurrence=this.occurrenceStack.pop())},t}(eV)),e5=function(e){function t(t,i){var n=e.call(this)||this;return n.topRule=t,n.occurrence=i,n.result={token:void 0,occurrence:void 0,isEndOfRule:void 0},n}return e3(t,e),t.prototype.startWalking=function(){return this.walk(this.topRule),this.result},t}(eV),e6=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return e3(t,e),t.prototype.walkMany=function(t,i,n){if(t.idx===this.occurrence){var o=(0,S.Ps)(i.concat(n));this.result.isEndOfRule=void 0===o,o instanceof eL&&(this.result.token=o.terminalType,this.result.occurrence=o.idx)}else e.prototype.walkMany.call(this,t,i,n)},t}(e5),e8=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return e3(t,e),t.prototype.walkManySep=function(t,i,n){if(t.idx===this.occurrence){var o=(0,S.Ps)(i.concat(n));this.result.isEndOfRule=void 0===o,o instanceof eL&&(this.result.token=o.terminalType,this.result.occurrence=o.idx)}else e.prototype.walkManySep.call(this,t,i,n)},t}(e5),e7=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return e3(t,e),t.prototype.walkAtLeastOne=function(t,i,n){if(t.idx===this.occurrence){var o=(0,S.Ps)(i.concat(n));this.result.isEndOfRule=void 0===o,o instanceof eL&&(this.result.token=o.terminalType,this.result.occurrence=o.idx)}else e.prototype.walkAtLeastOne.call(this,t,i,n)},t}(e5),e9=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return e3(t,e),t.prototype.walkAtLeastOneSep=function(t,i,n){if(t.idx===this.occurrence){var o=(0,S.Ps)(i.concat(n));this.result.isEndOfRule=void 0===o,o instanceof eL&&(this.result.token=o.terminalType,this.result.occurrence=o.idx)}else e.prototype.walkAtLeastOneSep.call(this,t,i,n)},t}(e5);function te(e,t,i){void 0===i&&(i=[]),i=(0,S.Qw)(i);var n=[],o=0;function r(r){var a=te(r.concat((0,S.Cw)(e,o+1)),t,i);return n.concat(a)}for(;i.length<t&&o<e.length;){var a=e[o];if(a instanceof eE)return r(a.definition);if(a instanceof eA)return r(a.definition);if(a instanceof eR)n=r(a.definition);else if(a instanceof eD){var s=a.definition.concat([new eM({definition:a.definition})]);return r(s)}else if(a instanceof eO){var s=[new eE({definition:a.definition}),new eM({definition:[new eL({terminalType:a.separator})].concat(a.definition)})];return r(s)}else if(a instanceof eN){var s=a.definition.concat([new eM({definition:[new eL({terminalType:a.separator})].concat(a.definition)})]);n=r(s)}else if(a instanceof eM){var s=a.definition.concat([new eM({definition:a.definition})]);n=r(s)}else if(a instanceof eP)return(0,S.Ed)(a.definition,function(e){n=r(e.definition)}),n;else if(a instanceof eL)i.push(a.terminalType);else throw Error("non exhaustive match");o++}return n.push({partialPath:i,suffixDef:(0,S.Cw)(e,o)}),n}function tt(e,t,i,n){var o="EXIT_NONE_TERMINAL",r=[o],a="EXIT_ALTERNATIVE",s=!1,l=t.length,c=l-n-1,d=[],u=[];for(u.push({idx:-1,def:e,ruleStack:[],occurrenceStack:[]});!(0,S.xb)(u);){var h=u.pop();if(h===a){s&&(0,S.Z$)(u).idx<=c&&u.pop();continue}var p=h.def,f=h.idx,g=h.ruleStack,m=h.occurrenceStack;if(!(0,S.xb)(p)){var v=p[0];if(v===o){var b={idx:f,def:(0,S.Cw)(p),ruleStack:(0,S.j7)(g),occurrenceStack:(0,S.j7)(m)};u.push(b)}else if(v instanceof eL)if(f<l-1){var y=f+1;if(i(t[y],v.terminalType)){var b={idx:y,def:(0,S.Cw)(p),ruleStack:g,occurrenceStack:m};u.push(b)}}else if(f===l-1)d.push({nextTokenType:v.terminalType,nextTokenOccurrence:v.idx,ruleStack:g,occurrenceStack:m}),s=!0;else throw Error("non exhaustive match");else if(v instanceof eA){var w=(0,S.Qw)(g);w.push(v.nonTerminalName);var _=(0,S.Qw)(m);_.push(v.idx);var b={idx:f,def:v.definition.concat(r,(0,S.Cw)(p)),ruleStack:w,occurrenceStack:_};u.push(b)}else if(v instanceof eR){var x={idx:f,def:(0,S.Cw)(p),ruleStack:g,occurrenceStack:m};u.push(x),u.push(a);var C={idx:f,def:v.definition.concat((0,S.Cw)(p)),ruleStack:g,occurrenceStack:m};u.push(C)}else if(v instanceof eD){var k=new eM({definition:v.definition,idx:v.idx}),I=v.definition.concat([k],(0,S.Cw)(p)),b={idx:f,def:I,ruleStack:g,occurrenceStack:m};u.push(b)}else if(v instanceof eO){var A=new eL({terminalType:v.separator}),k=new eM({definition:[A].concat(v.definition),idx:v.idx}),I=v.definition.concat([k],(0,S.Cw)(p)),b={idx:f,def:I,ruleStack:g,occurrenceStack:m};u.push(b)}else if(v instanceof eN){var x={idx:f,def:(0,S.Cw)(p),ruleStack:g,occurrenceStack:m};u.push(x),u.push(a);var A=new eL({terminalType:v.separator}),T=new eM({definition:[A].concat(v.definition),idx:v.idx}),I=v.definition.concat([T],(0,S.Cw)(p)),C={idx:f,def:I,ruleStack:g,occurrenceStack:m};u.push(C)}else if(v instanceof eM){var x={idx:f,def:(0,S.Cw)(p),ruleStack:g,occurrenceStack:m};u.push(x),u.push(a);var T=new eM({definition:v.definition,idx:v.idx}),I=v.definition.concat([T],(0,S.Cw)(p)),C={idx:f,def:I,ruleStack:g,occurrenceStack:m};u.push(C)}else if(v instanceof eP)for(var E=v.definition.length-1;E>=0;E--){var R={idx:f,def:v.definition[E].definition.concat((0,S.Cw)(p)),ruleStack:g,occurrenceStack:m};u.push(R),u.push(a)}else if(v instanceof eE)u.push({idx:f,def:v.definition.concat((0,S.Cw)(p)),ruleStack:g,occurrenceStack:m});else if(v instanceof eT)u.push(function(e,t,i,n){var o=(0,S.Qw)(i);o.push(e.name);var r=(0,S.Qw)(n);return r.push(1),{idx:t,def:e.definition,ruleStack:o,occurrenceStack:r}}(v,f,g,m));else throw Error("non exhaustive match")}}return d}var ti=(u=function(e,t){return(u=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)},function(e,t){function i(){this.constructor=e}u(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});(h=y||(y={}))[h.OPTION=0]="OPTION",h[h.REPETITION=1]="REPETITION",h[h.REPETITION_MANDATORY=2]="REPETITION_MANDATORY",h[h.REPETITION_MANDATORY_WITH_SEPARATOR=3]="REPETITION_MANDATORY_WITH_SEPARATOR",h[h.REPETITION_WITH_SEPARATOR=4]="REPETITION_WITH_SEPARATOR",h[h.ALTERNATION=5]="ALTERNATION";var tn=function(e){function t(t,i,n){var o=e.call(this)||this;return o.topProd=t,o.targetOccurrence=i,o.targetProdType=n,o}return ti(t,e),t.prototype.startWalking=function(){return this.walk(this.topProd),this.restDef},t.prototype.checkIsTarget=function(e,t,i,n){return e.idx===this.targetOccurrence&&this.targetProdType===t&&(this.restDef=i.concat(n),!0)},t.prototype.walkOption=function(t,i,n){this.checkIsTarget(t,y.OPTION,i,n)||e.prototype.walkOption.call(this,t,i,n)},t.prototype.walkAtLeastOne=function(t,i,n){this.checkIsTarget(t,y.REPETITION_MANDATORY,i,n)||e.prototype.walkOption.call(this,t,i,n)},t.prototype.walkAtLeastOneSep=function(t,i,n){this.checkIsTarget(t,y.REPETITION_MANDATORY_WITH_SEPARATOR,i,n)||e.prototype.walkOption.call(this,t,i,n)},t.prototype.walkMany=function(t,i,n){this.checkIsTarget(t,y.REPETITION,i,n)||e.prototype.walkOption.call(this,t,i,n)},t.prototype.walkManySep=function(t,i,n){this.checkIsTarget(t,y.REPETITION_WITH_SEPARATOR,i,n)||e.prototype.walkOption.call(this,t,i,n)},t}(eV),to=function(e){function t(t,i,n){var o=e.call(this)||this;return o.targetOccurrence=t,o.targetProdType=i,o.targetRef=n,o.result=[],o}return ti(t,e),t.prototype.checkIsTarget=function(e,t){e.idx===this.targetOccurrence&&this.targetProdType===t&&(void 0===this.targetRef||e===this.targetRef)&&(this.result=e.definition)},t.prototype.visitOption=function(e){this.checkIsTarget(e,y.OPTION)},t.prototype.visitRepetition=function(e){this.checkIsTarget(e,y.REPETITION)},t.prototype.visitRepetitionMandatory=function(e){this.checkIsTarget(e,y.REPETITION_MANDATORY)},t.prototype.visitRepetitionMandatoryWithSeparator=function(e){this.checkIsTarget(e,y.REPETITION_MANDATORY_WITH_SEPARATOR)},t.prototype.visitRepetitionWithSeparator=function(e){this.checkIsTarget(e,y.REPETITION_WITH_SEPARATOR)},t.prototype.visitAlternation=function(e){this.checkIsTarget(e,y.ALTERNATION)},t}(eH);function tr(e){for(var t=Array(e),i=0;i<e;i++)t[i]=[];return t}function ta(e){for(var t=[""],i=0;i<e.length;i++){for(var n=e[i],o=[],r=0;r<t.length;r++){var a=t[r];o.push(a+"_"+n.tokenTypeIdx);for(var s=0;s<n.categoryMatches.length;s++){var l="_"+n.categoryMatches[s];o.push(a+l)}}t=o}return t}function ts(e,t){for(var i=(0,S.UI)(e,function(e){return te([e],1)}),n=tr(i.length),o=(0,S.UI)(i,function(e){var t={};return(0,S.Ed)(e,function(e){var i=ta(e.partialPath);(0,S.Ed)(i,function(e){t[e]=!0})}),t}),r=i,a=1;a<=t;a++){var s=r;r=tr(s.length);for(var l=function(e){for(var i=s[e],l=0;l<i.length;l++){var c=i[l].partialPath,d=i[l].suffixDef,u=ta(c);if(function(e,t,i){for(var n=0;n<e.length;n++)if(n!==i){for(var o=e[n],r=0;r<t.length;r++)if(!0===o[t[r]])return!1}return!0}(o,u,e)||(0,S.xb)(d)||c.length===t){var h=n[e];if(!1===td(h,c)){h.push(c);for(var p=0;p<u.length;p++){var f=u[p];o[e][f]=!0}}}else{var g=te(d,a+1,c);r[e]=r[e].concat(g),(0,S.Ed)(g,function(t){var i=ta(t.partialPath);(0,S.Ed)(i,function(t){o[e][t]=!0})})}}},c=0;c<s.length;c++)l(c)}return n}function tl(e,t,i,n){var o=new to(e,y.ALTERNATION,n);return t.accept(o),ts(o.result,i)}function tc(e,t,i,n){var o=new to(e,i);t.accept(o);var r=o.result,a=new tn(t,e,i).startWalking();return ts([new eE({definition:r}),new eE({definition:a})],n)}function td(e,t){e:for(var i=0;i<e.length;i++){var n=e[i];if(n.length===t.length){for(var o=0;o<n.length;o++){var r=t[o],a=n[o];if(!1==(r===a||void 0!==a.categoryMatchesMap[r.tokenTypeIdx]))continue e}return!0}}return!1}function tu(e){return(0,S.yW)(e,function(e){return(0,S.yW)(e,function(e){return(0,S.yW)(e,function(e){return(0,S.xb)(e.categoryMatches)})})})}var th=(p=function(e,t){return(p=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)},function(e,t){function i(){this.constructor=e}p(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});function tp(e){return eU(e)+"_#_"+e.idx+"_#_"+tf(e)}function tf(e){return e instanceof eL?e.terminalType.name:e instanceof eA?e.nonTerminalName:""}var tg=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.allProductions=[],t}return th(t,e),t.prototype.visitNonTerminal=function(e){this.allProductions.push(e)},t.prototype.visitOption=function(e){this.allProductions.push(e)},t.prototype.visitRepetitionWithSeparator=function(e){this.allProductions.push(e)},t.prototype.visitRepetitionMandatory=function(e){this.allProductions.push(e)},t.prototype.visitRepetitionMandatoryWithSeparator=function(e){this.allProductions.push(e)},t.prototype.visitRepetition=function(e){this.allProductions.push(e)},t.prototype.visitAlternation=function(e){this.allProductions.push(e)},t.prototype.visitTerminal=function(e){this.allProductions.push(e)},t}(eH),tm=/^[a-zA-Z_]\w*$/,tv=new RegExp(tm.source.replace("^","^\\$")),tb=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.alternations=[],t}return th(t,e),t.prototype.visitAlternation=function(e){this.alternations.push(e)},t}(eH),ty=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.allProductions=[],t}return th(t,e),t.prototype.visitRepetitionWithSeparator=function(e){this.allProductions.push(e)},t.prototype.visitRepetitionMandatory=function(e){this.allProductions.push(e)},t.prototype.visitRepetitionMandatoryWithSeparator=function(e){this.allProductions.push(e)},t.prototype.visitRepetition=function(e){this.allProductions.push(e)},t}(eH),tw={buildMismatchTokenMessage:function(e){var t=e.expected,i=e.actual;return e.previous,e.ruleName,"Expecting "+(eu(t)?"--\x3e "+ec(t)+" <--":"token of type --\x3e "+t.name+" <--")+" but found --\x3e '"+i.image+"' <--"},buildNotAllInputParsedMessage:function(e){var t=e.firstRedundant;return e.ruleName,"Redundant input, expecting EOF but found: "+t.image},buildNoViableAltMessage:function(e){var t=e.expectedPathsPerAlt,i=e.actual,n=(e.previous,e.customUserDescription);e.ruleName;var o="Expecting: ",r="\nbut found: '"+(0,S.Ps)(i).image+"'";if(n)return o+n+r;var a=(0,S.u4)(t,function(e,t){return e.concat(t)},[]),s=(0,S.UI)(a,function(e){return"["+(0,S.UI)(e,function(e){return ec(e)}).join(", ")+"]"});return o+"one of these possible Token sequences:\n"+(0,S.UI)(s,function(e,t){return"  "+(t+1)+". "+e}).join("\n")+r},buildEarlyExitMessage:function(e){var t=e.expectedIterationPaths,i=e.actual,n=e.customUserDescription;e.ruleName;var o="Expecting: ",r="\nbut found: '"+(0,S.Ps)(i).image+"'";return n?o+n+r:o+("expecting at least one iteration which starts with one of these possible Token sequences::\n  <"+(0,S.UI)(t,function(e){return"["+(0,S.UI)(e,function(e){return ec(e)}).join(",")+"]"}).join(" ,"))+">"+r}};Object.freeze(tw);var t_={buildRuleNotFoundError:function(e,t){return"Invalid grammar, reference to a rule which is not defined: ->"+t.nonTerminalName+"<-\ninside top level rule: ->"+e.name+"<-"}},tx={buildDuplicateFoundError:function(e,t){var i=e.name,n=(0,S.Ps)(t),o=n.idx,r=eU(n),a=n instanceof eL?n.terminalType.name:n instanceof eA?n.nonTerminalName:"",s="->"+r+(o>0?o:"")+"<- "+(a?"with argument: ->"+a+"<-":"")+"\n                  appears more than once ("+t.length+" times) in the top level rule: ->"+i+"<-.                  \n                  For further details see: https://sap.github.io/chevrotain/docs/FAQ.html#NUMERICAL_SUFFIXES \n                  ";return(s=s.replace(/[ \t]+/g," ")).replace(/\s\s+/g,"\n")},buildInvalidNestedRuleNameError:function(e,t){return"Invalid nested rule name: ->"+t.name+"<- inside rule: ->"+e.name+"<-\nit must match the pattern: ->"+tv.toString()+"<-.\nNote that this means a nested rule name must start with the '$'(dollar) sign."},buildDuplicateNestedRuleNameError:function(e,t){return"Duplicate nested rule name: ->"+(0,S.Ps)(t).name+"<- inside rule: ->"+e.name+"<-\nA nested name must be unique in the scope of a top level grammar rule."},buildNamespaceConflictError:function(e){return"Namespace conflict found in grammar.\nThe grammar has both a Terminal(Token) and a Non-Terminal(Rule) named: <"+e.name+">.\nTo resolve this make sure each Terminal and Non-Terminal names are unique\nThis is easy to accomplish by using the convention that Terminal names start with an uppercase letter\nand Non-Terminal names start with a lower case letter."},buildAlternationPrefixAmbiguityError:function(e){var t=(0,S.UI)(e.prefixPath,function(e){return ec(e)}).join(", "),i=0===e.alternation.idx?"":e.alternation.idx;return"Ambiguous alternatives: <"+e.ambiguityIndices.join(" ,")+"> due to common lookahead prefix\n"+("in <OR"+i+"> inside <")+e.topLevelRule.name+"> Rule,\n<"+t+"> may appears as a prefix path in all these alternatives.\nSee: https://sap.github.io/chevrotain/docs/guide/resolving_grammar_errors.html#COMMON_PREFIX\nFor Further details."},buildAlternationAmbiguityError:function(e){var t=(0,S.UI)(e.prefixPath,function(e){return ec(e)}).join(", "),i=0===e.alternation.idx?"":e.alternation.idx,n="Ambiguous Alternatives Detected: <"+e.ambiguityIndices.join(" ,")+"> in <OR"+i+"> inside <"+e.topLevelRule.name+"> Rule,\n<"+t+"> may appears as a prefix path in all these alternatives.\n";return n+"See: https://sap.github.io/chevrotain/docs/guide/resolving_grammar_errors.html#AMBIGUOUS_ALTERNATIVES\nFor Further details."},buildEmptyRepetitionError:function(e){var t=eU(e.repetition);return 0!==e.repetition.idx&&(t+=e.repetition.idx),"The repetition <"+t+"> within Rule <"+e.topLevelRule.name+"> can never consume any tokens.\nThis could lead to an infinite loop."},buildTokenNameError:function(e){return"Invalid Grammar Token name: ->"+e.tokenType.name+"<- it must match the pattern: ->"+e.expectedPattern.toString()+"<-"},buildEmptyAlternationError:function(e){return"Ambiguous empty alternative: <"+(e.emptyChoiceIdx+1)+">"+(" in <OR"+e.alternation.idx+"> inside <")+e.topLevelRule.name+"> Rule.\nOnly the last alternative may be an empty alternative."},buildTooManyAlternativesError:function(e){return"An Alternation cannot have more than 256 alternatives:\n"+("<OR"+e.alternation.idx+"> inside <"+e.topLevelRule.name+"> Rule.\n has ")+(e.alternation.definition.length+1)+" alternatives."},buildLeftRecursionError:function(e){var t=e.topLevelRule.name,i=t+" --\x3e "+S.UI(e.leftRecursionPath,function(e){return e.name}).concat([t]).join(" --\x3e ");return"Left Recursion found in grammar.\nrule: <"+t+"> can be invoked from itself (directly or indirectly)\nwithout consuming any Tokens. The grammar path that causes this is: \n "+i+"\n To fix this refactor your grammar to remove the left recursion.\nsee: https://en.wikipedia.org/wiki/LL_parser#Left_Factoring."},buildInvalidRuleNameError:function(e){return"Invalid grammar rule name: ->"+e.topLevelRule.name+"<- it must match the pattern: ->"+e.expectedPattern.toString()+"<-"},buildDuplicateRuleNameError:function(e){return"Duplicate definition, rule: ->"+(e.topLevelRule instanceof eT?e.topLevelRule.name:e.topLevelRule)+"<- is already defined in the grammar: ->"+e.grammarName+"<-"}},tS=(f=function(e,t){return(f=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)},function(e,t){function i(){this.constructor=e}f(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),tC=function(e){function t(t,i){var n=e.call(this)||this;return n.nameToTopRule=t,n.errMsgProvider=i,n.errors=[],n}return tS(t,e),t.prototype.resolveRefs=function(){var e=this;(0,S.Ed)((0,S.VO)(this.nameToTopRule),function(t){e.currTopLevel=t,t.accept(e)})},t.prototype.visitNonTerminal=function(e){var t=this.nameToTopRule[e.nonTerminalName];if(t)e.referencedRule=t;else{var i=this.errMsgProvider.buildRuleNotFoundError(this.currTopLevel,e);this.errors.push({message:i,type:_.UNRESOLVED_SUBRULE_REF,ruleName:this.currTopLevel.name,unresolvedRefName:e.nonTerminalName})}},t}(eH);function tk(e){e=(0,S.ce)(e,{errMsgProvider:t_});var t,i={};return(0,S.Ed)(e.rules,function(e){i[e.name]=e}),(t=new tC(i,e.errMsgProvider)).resolveRefs(),t.errors}function tI(e){var t,i,n,o,r,a,s,l,c,d,u,h,p,f,g,m,v,b,w,x,C,k,I,A,T,E,R,D,O,M,N,P,L;return t=(e=(0,S.ce)(e,{errMsgProvider:tx,ignoredIssues:{}})).rules,i=e.maxLookahead,n=e.tokenTypes,o=e.ignoredIssues,r=e.errMsgProvider,a=e.grammarName,s=S.UI(t,function(e){var t,i,n,o,a,s;return t=e,i=r,n=new tg,t.accept(n),o=n.allProductions,a=S.vM(o,tp),s=S.ei(a,function(e){return e.length>1}),S.UI(S.VO(s),function(e){var n=S.Ps(e),o=i.buildDuplicateFoundError(t,e),r=eU(n),a={message:o,type:_.DUPLICATE_PRODUCTIONS,ruleName:t.name,dslName:r,occurrence:n.idx},s=tf(n);return s&&(a.parameter=s),a})}),l=S.UI(t,function(e){return function e(t,i,n,o){void 0===o&&(o=[]);var r=[],a=function e(t){var i=[];if(S.xb(t))return i;var n=S.Ps(t);if(n instanceof eA)i.push(n.referencedRule);else if(n instanceof eE||n instanceof eR||n instanceof eD||n instanceof eO||n instanceof eN||n instanceof eM)i=i.concat(e(n.definition));else if(n instanceof eP)i=S.xH(S.UI(n.definition,function(t){return e(t.definition)}));else if(n instanceof eL);else throw Error("non exhaustive match");var o=eY(n),r=t.length>1;if(!o||!r)return i;var a=S.Cw(t);return i.concat(e(a))}(i.definition);if(S.xb(a))return[];var s=t.name;S.r3(a,t)&&r.push({message:n.buildLeftRecursionError({topLevelRule:t,leftRecursionPath:o}),type:_.LEFT_RECURSION,ruleName:s});var l=S.e5(a,o.concat([t])),c=S.UI(l,function(i){var r=S.Qw(o);return r.push(i),e(t,i,n,r)});return r.concat(S.xH(c))}(e,e,r)}),c=[],d=[],u=[],(0,S.yW)(l,S.xb)&&(c=(0,S.UI)(t,function(e){var t,i,n,o;return t=e,i=r,n=new tb,t.accept(n),o=n.alternations,S.u4(o,function(e,n){var o=S.j7(n.definition),r=S.UI(o,function(e,o){var r=tt([e],[],null,1);return S.xb(r)?{message:i.buildEmptyAlternationError({topLevelRule:t,alternation:n,emptyChoiceIdx:o}),type:_.NONE_LAST_EMPTY_ALT,ruleName:t.name,occurrence:n.idx,alternative:o+1}:null});return e.concat(S.oA(r))},[])}),d=(0,S.UI)(t,function(e){var t,n,a,s,l,c,d;return t=e,n=i,a=o,s=r,l=new tb,t.accept(l),c=l.alternations,(d=a[t.name])&&(c=(0,S.d1)(c,function(e){return d[eU(e)+(0===e.idx?"":e.idx)]})),c=(0,S.d1)(c,function(e){return!0===e.ignoreAmbiguities}),S.u4(c,function(e,i){var o,r,a,l,c,d,u,h,p,f,g,m,v=tl(i.idx,t,i.maxLookahead||n,i),b=(o=v,r=i,a=t,l=s,c=[],d=(0,S.u4)(o,function(e,t,i){return!0===r.definition[i].ignoreAmbiguities||(0,S.Ed)(t,function(t){var n=[i];(0,S.Ed)(o,function(e,o){i!==o&&td(e,t)&&!0!==r.definition[o].ignoreAmbiguities&&n.push(o)}),n.length>1&&!td(c,t)&&(c.push(t),e.push({alts:n,path:t}))}),e},[]),S.UI(d,function(e){var t=(0,S.UI)(e.alts,function(e){return e+1});return{message:l.buildAlternationAmbiguityError({topLevelRule:a,alternation:r,ambiguityIndices:t,prefixPath:e.path}),type:_.AMBIGUOUS_ALTS,ruleName:a.name,occurrence:r.idx,alternatives:[e.alts]}})),y=(u=v,h=i,p=t,f=s,g=[],m=(0,S.u4)(u,function(e,t,i){var n=(0,S.UI)(t,function(e){return{idx:i,path:e}});return e.concat(n)},[]),(0,S.Ed)(m,function(e){if(!0!==h.definition[e.idx].ignoreAmbiguities){var t=e.idx,i=e.path,n=(0,S.Oq)(m,function(e){var n;return!0!==h.definition[e.idx].ignoreAmbiguities&&e.idx<t&&(n=e.path,n.length<i.length&&(0,S.yW)(n,function(e,t){var n=i[t];return e===n||n.categoryMatchesMap[e.tokenTypeIdx]}))}),o=(0,S.UI)(n,function(e){var i=[e.idx+1,t+1],n=0===h.idx?"":h.idx;return{message:f.buildAlternationPrefixAmbiguityError({topLevelRule:p,alternation:h,ambiguityIndices:i,prefixPath:e.path}),type:_.AMBIGUOUS_PREFIX_ALTS,ruleName:p.name,occurrence:n,alternatives:i}});g=g.concat(o)}}),g);return e.concat(b,y)},[])}),w=t,x=i,C=r,k=[],(0,S.Ed)(w,function(e){var t=new ty;e.accept(t);var i=t.allProductions;(0,S.Ed)(i,function(t){var i=function(e){if(e instanceof eR)return y.OPTION;if(e instanceof eM)return y.REPETITION;if(e instanceof eD)return y.REPETITION_MANDATORY;if(e instanceof eO)return y.REPETITION_MANDATORY_WITH_SEPARATOR;if(e instanceof eN)return y.REPETITION_WITH_SEPARATOR;else if(e instanceof eP)return y.ALTERNATION;else throw Error("non exhaustive match")}(t),n=t.maxLookahead||x,o=tc(t.idx,e,i,n)[0];if((0,S.xb)((0,S.xH)(o))){var r=C.buildEmptyRepetitionError({topLevelRule:e,repetition:t});k.push({message:r,type:_.NO_NON_EMPTY_LOOKAHEAD,ruleName:e.name})}})}),u=k),I=t,A=n,T=r,E=[],R=(0,S.UI)(A,function(e){return e.name}),(0,S.Ed)(I,function(e){var t=e.name;if((0,S.r3)(R,t)){var i=T.buildNamespaceConflictError(e);E.push({message:i,type:_.CONFLICT_TOKENS_RULES_NAMESPACE,ruleName:t})}}),h=E,p=S.UI(n,function(e){var t,i,n;return t=e,i=r,n=[],t.name.match(tm)||n.push({message:i.buildTokenNameError({tokenType:t,expectedPattern:tm}),type:_.INVALID_TOKEN_NAME}),n}),D=t,O=r,M=[],(0,S.Ed)(D,function(e){var t=new e2("");e.accept(t);var i=(0,S.UI)(t.result,function(e){return e.orgProd});M.push((0,S.UI)(i,function(t){var i,n,o,r;return i=e,n=t,o=O,r=[],n.name.match(tv)||r.push({message:o.buildInvalidNestedRuleNameError(i,n),type:_.INVALID_NESTED_RULE_NAME,ruleName:i.name}),r}))}),f=(0,S.xH)(M),N=t,P=r,L=[],(0,S.Ed)(N,function(e){var t=new e2("");e.accept(t);var i=(0,S.vM)(t.result,function(e){return e.name}),n=(0,S.ei)(i,function(e){return e.length>1});(0,S.Ed)((0,S.VO)(n),function(t){var i=(0,S.UI)(t,function(e){return e.orgProd}),n=P.buildDuplicateNestedRuleNameError(e,i);L.push({message:n,type:_.DUPLICATE_NESTED_NAME,ruleName:e.name})})}),g=L,m=(0,S.UI)(t,function(e){var t,i,n,o;return t=e,i=r,n=new tb,t.accept(n),o=n.alternations,S.u4(o,function(e,n){return n.definition.length>255&&e.push({message:i.buildTooManyAlternativesError({topLevelRule:t,alternation:n}),type:_.TOO_MANY_ALTS,ruleName:t.name,occurrence:n.idx}),e},[])}),v=(0,S.UI)(t,function(e){var t,i,n,o;return t=e,i=r,n=[],(o=t.name).match(tm)||n.push({message:i.buildInvalidRuleNameError({topLevelRule:t,expectedPattern:tm}),type:_.INVALID_RULE_NAME,ruleName:o}),n}),b=(0,S.UI)(t,function(e){var i=e,n=t,o=a,s=r,l=[];if((0,S.u4)(n,function(e,t){return t.name===i.name?e+1:e},0)>1){var c=s.buildDuplicateRuleNameError({topLevelRule:i,grammarName:o});l.push({message:c,type:_.DUPLICATE_RULE_NAME,ruleName:i.name})}return l}),S.xH(s.concat(p,f,g,u,l,c,d,h,m,v,b))}function tA(e){(0,S.Ed)(e.rules,function(e){var t=new eG;e.accept(t),(0,S.Ed)(t.dslMethods,function(e){(0,S.Ed)(e,function(e,t){e.idx=t+1})})})}var tT="MismatchedTokenException",tE="NoViableAltException",tR="EarlyExitException",tD="NotAllInputParsedException",tO=[tT,tE,tR,tD];function tM(e){return(0,S.r3)(tO,e.name)}function tN(e,t,i){this.name=tT,this.message=e,this.token=t,this.previousToken=i,this.resyncedTokens=[]}function tP(e,t,i){this.name=tE,this.message=e,this.token=t,this.previousToken=i,this.resyncedTokens=[]}function tL(e,t){this.name=tD,this.message=e,this.token=t,this.resyncedTokens=[]}function tB(e,t,i){this.name=tR,this.message=e,this.token=t,this.previousToken=i,this.resyncedTokens=[]}Object.freeze(tO),tN.prototype=Error.prototype,tP.prototype=Error.prototype,tL.prototype=Error.prototype,tB.prototype=Error.prototype;var tF={},tV="InRuleRecoveryException";function tz(e){this.name=tV,this.message=e}tz.prototype=Error.prototype;var tH=function(){function e(){}return e.prototype.initRecoverable=function(e){this.firstAfterRepMap={},this.resyncFollows={},this.recoveryEnabled=(0,S.e$)(e,"recoveryEnabled")?e.recoveryEnabled:ir.recoveryEnabled,this.recoveryEnabled&&(this.attemptInRepetitionRecovery=tW)},e.prototype.getTokenToInsert=function(e){var t=eS(e,"",NaN,NaN,NaN,NaN,NaN,NaN);return t.isInsertedInRecovery=!0,t},e.prototype.canTokenTypeBeInsertedInRecovery=function(e){return!0},e.prototype.tryInRepetitionRecovery=function(e,t,i,n){for(var o=this,r=this.findReSyncTokenType(),a=this.exportLexerState(),s=[],l=!1,c=this.LA(1),d=this.LA(1),u=function(){var e=o.LA(0),t=new tN(o.errorMessageProvider.buildMismatchTokenMessage({expected:n,actual:c,previous:e,ruleName:o.getCurrRuleFullName()}),c,o.LA(0));t.resyncedTokens=(0,S.j7)(s),o.SAVE_ERROR(t)};!l;)if(this.tokenMatcher(d,n))return void u();else if(i.call(this)){u(),e.apply(this,t);return}else this.tokenMatcher(d,r)?l=!0:(d=this.SKIP_TOKEN(),this.addToResyncTokens(d,s));this.importLexerState(a)},e.prototype.shouldInRepetitionRecoveryBeTried=function(e,t,i){return!(!1===i||void 0===e||void 0===t||this.tokenMatcher(this.LA(1),e)||this.isBackTracking()||this.canPerformInRuleRecovery(e,this.getFollowsForInRuleRecovery(e,t)))},e.prototype.getFollowsForInRuleRecovery=function(e,t){var i=this.getCurrentGrammarPath(e,t);return this.getNextPossibleTokenTypes(i)},e.prototype.tryInRuleRecovery=function(e,t){if(this.canRecoverWithSingleTokenInsertion(e,t))return this.getTokenToInsert(e);if(this.canRecoverWithSingleTokenDeletion(e)){var i=this.SKIP_TOKEN();return this.consumeToken(),i}throw new tz("sad sad panda")},e.prototype.canPerformInRuleRecovery=function(e,t){return this.canRecoverWithSingleTokenInsertion(e,t)||this.canRecoverWithSingleTokenDeletion(e)},e.prototype.canRecoverWithSingleTokenInsertion=function(e,t){var i=this;if(!this.canTokenTypeBeInsertedInRecovery(e)||(0,S.xb)(t))return!1;var n=this.LA(1);return void 0!==(0,S.sE)(t,function(e){return i.tokenMatcher(n,e)})},e.prototype.canRecoverWithSingleTokenDeletion=function(e){return this.tokenMatcher(this.LA(2),e)},e.prototype.isInCurrentRuleReSyncSet=function(e){var t=this.getCurrFollowKey(),i=this.getFollowSetFromFollowKey(t);return(0,S.r3)(i,e)},e.prototype.findReSyncTokenType=function(){for(var e=this.flattenFollowSet(),t=this.LA(1),i=2;;){var n=t.tokenType;if((0,S.r3)(e,n))return n;t=this.LA(i),i++}},e.prototype.getCurrFollowKey=function(){if(1===this.RULE_STACK.length)return tF;var e=this.getLastExplicitRuleShortName(),t=this.getLastExplicitRuleOccurrenceIndex(),i=this.getPreviousExplicitRuleShortName();return{ruleName:this.shortRuleNameToFullName(e),idxInCallingRule:t,inRule:this.shortRuleNameToFullName(i)}},e.prototype.buildFullFollowKeyStack=function(){var e=this,t=this.RULE_STACK,i=this.RULE_OCCURRENCE_STACK;return(0,S.xb)(this.LAST_EXPLICIT_RULE_STACK)||(t=(0,S.UI)(this.LAST_EXPLICIT_RULE_STACK,function(t){return e.RULE_STACK[t]}),i=(0,S.UI)(this.LAST_EXPLICIT_RULE_STACK,function(t){return e.RULE_OCCURRENCE_STACK[t]})),(0,S.UI)(t,function(n,o){return 0===o?tF:{ruleName:e.shortRuleNameToFullName(n),idxInCallingRule:i[o],inRule:e.shortRuleNameToFullName(t[o-1])}})},e.prototype.flattenFollowSet=function(){var e=this,t=(0,S.UI)(this.buildFullFollowKeyStack(),function(t){return e.getFollowSetFromFollowKey(t)});return(0,S.xH)(t)},e.prototype.getFollowSetFromFollowKey=function(e){if(e===tF)return[ex];var t=e.ruleName+e.idxInCallingRule+eq+e.inRule;return this.resyncFollows[t]},e.prototype.addToResyncTokens=function(e,t){return this.tokenMatcher(e,ex)||t.push(e),t},e.prototype.reSyncTo=function(e){for(var t=[],i=this.LA(1);!1===this.tokenMatcher(i,e);)i=this.SKIP_TOKEN(),this.addToResyncTokens(i,t);return(0,S.j7)(t)},e.prototype.attemptInRepetitionRecovery=function(e,t,i,n,o,r,a){},e.prototype.getCurrentGrammarPath=function(e,t){return{ruleStack:this.getHumanReadableRuleStack(),occurrenceStack:(0,S.Qw)(this.RULE_OCCURRENCE_STACK),lastTok:e,lastTokOccurrence:t}},e.prototype.getHumanReadableRuleStack=function(){var e=this;return(0,S.xb)(this.LAST_EXPLICIT_RULE_STACK)?(0,S.UI)(this.RULE_STACK,function(t){return e.shortRuleNameToFullName(t)}):(0,S.UI)(this.LAST_EXPLICIT_RULE_STACK,function(t){return e.shortRuleNameToFullName(e.RULE_STACK[t])})},e}();function tW(e,t,i,n,o,r,a){var s=this.getKeyForAutomaticLookahead(n,o),l=this.firstAfterRepMap[s];if(void 0===l){var c=this.getCurrRuleFullName();l=new r(this.getGAstProductions()[c],o).startWalking(),this.firstAfterRepMap[s]=l}var d=l.token,u=l.occurrence,h=l.isEndOfRule;1===this.RULE_STACK.length&&h&&void 0===d&&(d=ex,u=1),this.shouldInRepetitionRecoveryBeTried(d,u,a)&&this.tryInRepetitionRecovery(e,t,i,d)}var tY=function(){function e(){}return e.prototype.initLooksAhead=function(e){this.dynamicTokensEnabled=(0,S.e$)(e,"dynamicTokensEnabled")?e.dynamicTokensEnabled:ir.dynamicTokensEnabled,this.maxLookahead=(0,S.e$)(e,"maxLookahead")?e.maxLookahead:ir.maxLookahead,this.lookAheadFuncsCache=(0,S.dU)()?new Map:[],(0,S.dU)()?(this.getLaFuncFromCache=this.getLaFuncFromMap,this.setLaFuncCache=this.setLaFuncCacheUsingMap):(this.getLaFuncFromCache=this.getLaFuncFromObj,this.setLaFuncCache=this.setLaFuncUsingObj)},e.prototype.preComputeLookaheadFunctions=function(e){var t=this;(0,S.Ed)(e,function(e){t.TRACE_INIT(e.name+" Rule Lookahead",function(){var i,n=(eZ.reset(),e.accept(eZ),i=eZ.dslMethods,eZ.reset(),i),o=n.alternation,r=n.repetition,a=n.option,s=n.repetitionMandatory,l=n.repetitionMandatoryWithSeparator,c=n.repetitionWithSeparator;(0,S.Ed)(o,function(i){var n=0===i.idx?"":i.idx;t.TRACE_INIT(""+eU(i)+n,function(){var n,o,r,a,s,l,c,d,u=(n=i.idx,o=i.maxLookahead||t.maxLookahead,r=i.hasPredicates,a=t.dynamicTokensEnabled,s=t.lookAheadBuilderForAlternatives,c=tu(l=tl(n,e,o))?J:$,s(l,r,c,a)),h=(d=t.fullRuleNameToShort[e.name],256|i.idx|d);t.setLaFuncCache(h,u)})}),(0,S.Ed)(r,function(i){t.computeLookaheadFunc(e,i.idx,768,y.REPETITION,i.maxLookahead,eU(i))}),(0,S.Ed)(a,function(i){t.computeLookaheadFunc(e,i.idx,512,y.OPTION,i.maxLookahead,eU(i))}),(0,S.Ed)(s,function(i){t.computeLookaheadFunc(e,i.idx,1024,y.REPETITION_MANDATORY,i.maxLookahead,eU(i))}),(0,S.Ed)(l,function(i){t.computeLookaheadFunc(e,i.idx,1536,y.REPETITION_MANDATORY_WITH_SEPARATOR,i.maxLookahead,eU(i))}),(0,S.Ed)(c,function(i){t.computeLookaheadFunc(e,i.idx,1280,y.REPETITION_WITH_SEPARATOR,i.maxLookahead,eU(i))})})})},e.prototype.computeLookaheadFunc=function(e,t,i,n,o,r){var a=this;this.TRACE_INIT(""+r+(0===t?"":t),function(){var r,s,l,c,d,u=(r=o||a.maxLookahead,s=a.dynamicTokensEnabled,l=a.lookAheadBuilderForOptional,d=tu(c=tc(t,e,n,r))?J:$,l(c[0],d,s)),h=t|i|a.fullRuleNameToShort[e.name];a.setLaFuncCache(h,u)})},e.prototype.lookAheadBuilderForOptional=function(e,t,i){return function(e,t,i){var n=(0,S.yW)(e,function(e){return 1===e.length}),o=e.length;if(!n||i)return function(){t:for(var i=0;i<o;i++){for(var n=e[i],r=n.length,a=0;a<r;a++)if(!1===t(this.LA(a+1),n[a]))continue t;return!0}return!1};var r=(0,S.xH)(e);if(1===r.length&&(0,S.xb)(r[0].categoryMatches)){var a=r[0].tokenTypeIdx;return function(){return this.LA(1).tokenTypeIdx===a}}var s=(0,S.u4)(r,function(e,t,i){return e[t.tokenTypeIdx]=!0,(0,S.Ed)(t.categoryMatches,function(t){e[t]=!0}),e},[]);return function(){return!0===s[this.LA(1).tokenTypeIdx]}}(e,t,i)},e.prototype.lookAheadBuilderForAlternatives=function(e,t,i,n){var o=e.length,r=(0,S.yW)(e,function(e){return(0,S.yW)(e,function(e){return 1===e.length})});if(t)return function(t){for(var n=(0,S.UI)(t,function(e){return e.GATE}),r=0;r<o;r++){var a=e[r],s=a.length,l=n[r];if(void 0===l||!1!==l.call(this))t:for(var c=0;c<s;c++){for(var d=a[c],u=d.length,h=0;h<u;h++)if(!1===i(this.LA(h+1),d[h]))continue t;return r}}};if(!r||n)return function(){for(var t=0;t<o;t++){var n=e[t],r=n.length;t:for(var a=0;a<r;a++){for(var s=n[a],l=s.length,c=0;c<l;c++)if(!1===i(this.LA(c+1),s[c]))continue t;return t}}};var a=(0,S.UI)(e,function(e){return(0,S.xH)(e)}),s=(0,S.u4)(a,function(e,t,i){return(0,S.Ed)(t,function(t){(0,S.e$)(e,t.tokenTypeIdx)||(e[t.tokenTypeIdx]=i),(0,S.Ed)(t.categoryMatches,function(t){(0,S.e$)(e,t)||(e[t]=i)})}),e},[]);return function(){return s[this.LA(1).tokenTypeIdx]}},e.prototype.getKeyForAutomaticLookahead=function(e,t){return t|e|this.getLastExplicitRuleShortName()},e.prototype.getLaFuncFromCache=function(e){},e.prototype.getLaFuncFromMap=function(e){return this.lookAheadFuncsCache.get(e)},e.prototype.getLaFuncFromObj=function(e){return this.lookAheadFuncsCache[e]},e.prototype.setLaFuncCache=function(e,t){},e.prototype.setLaFuncCacheUsingMap=function(e,t){this.lookAheadFuncsCache.set(e,t)},e.prototype.setLaFuncUsingObj=function(e,t){this.lookAheadFuncsCache[e]=t},e}(),tU=/^\s*function\s*(\S*)\s*\(/,tG="name";function tZ(e){var t=e.name;return t||e.toString().match(tU)[1]}function tj(e,t){var i=Object.getOwnPropertyDescriptor(e,tG);return(!!(0,S.o8)(i)||!!i.configurable)&&(Object.defineProperty(e,tG,{enumerable:!1,configurable:!0,writable:!1,value:t}),!0)}function tq(e,t){for(var i=(0,S.XP)(e),n=i.length,o=0;o<n;o++)for(var r=e[i[o]],a=r.length,s=0;s<a;s++){var l=r[s];void 0===l.tokenTypeIdx&&(void 0!==l.fullName?this[l.fullName](l.children,t):this[l.name](l.children,t))}}(g=w||(w={}))[g.REDUNDANT_METHOD=0]="REDUNDANT_METHOD",g[g.MISSING_METHOD=1]="MISSING_METHOD";var tK=["constructor","visit","validateVisitor"],tX=function(){function e(){}return e.prototype.initTreeBuilder=function(e){if(this.LAST_EXPLICIT_RULE_STACK=[],this.CST_STACK=[],this.outputCst=(0,S.e$)(e,"outputCst")?e.outputCst:ir.outputCst,this.nodeLocationTracking=(0,S.e$)(e,"nodeLocationTracking")?e.nodeLocationTracking:ir.nodeLocationTracking,this.outputCst)if(/full/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=e0,this.setNodeLocationFromNode=e0,this.cstPostRule=S.dG,this.setInitialNodeLocation=this.setInitialNodeLocationFullRecovery):(this.setNodeLocationFromToken=S.dG,this.setNodeLocationFromNode=S.dG,this.cstPostRule=this.cstPostRuleFull,this.setInitialNodeLocation=this.setInitialNodeLocationFullRegular);else if(/onlyOffset/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=eJ,this.setNodeLocationFromNode=eJ,this.cstPostRule=S.dG,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRecovery):(this.setNodeLocationFromToken=S.dG,this.setNodeLocationFromNode=S.dG,this.cstPostRule=this.cstPostRuleOnlyOffset,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRegular);else if(/none/i.test(this.nodeLocationTracking))this.setNodeLocationFromToken=S.dG,this.setNodeLocationFromNode=S.dG,this.cstPostRule=S.dG,this.setInitialNodeLocation=S.dG;else throw Error('Invalid <nodeLocationTracking> config option: "'+e.nodeLocationTracking+'"');else this.cstInvocationStateUpdate=S.dG,this.cstFinallyStateUpdate=S.dG,this.cstPostTerminal=S.dG,this.cstPostNonTerminal=S.dG,this.cstPostRule=S.dG,this.getLastExplicitRuleShortName=this.getLastExplicitRuleShortNameNoCst,this.getPreviousExplicitRuleShortName=this.getPreviousExplicitRuleShortNameNoCst,this.getLastExplicitRuleOccurrenceIndex=this.getLastExplicitRuleOccurrenceIndexNoCst,this.manyInternal=this.manyInternalNoCst,this.orInternal=this.orInternalNoCst,this.optionInternal=this.optionInternalNoCst,this.atLeastOneInternal=this.atLeastOneInternalNoCst,this.manySepFirstInternal=this.manySepFirstInternalNoCst,this.atLeastOneSepFirstInternal=this.atLeastOneSepFirstInternalNoCst},e.prototype.setInitialNodeLocationOnlyOffsetRecovery=function(e){e.location={startOffset:NaN,endOffset:NaN}},e.prototype.setInitialNodeLocationOnlyOffsetRegular=function(e){e.location={startOffset:this.LA(1).startOffset,endOffset:NaN}},e.prototype.setInitialNodeLocationFullRecovery=function(e){e.location={startOffset:NaN,startLine:NaN,startColumn:NaN,endOffset:NaN,endLine:NaN,endColumn:NaN}},e.prototype.setInitialNodeLocationFullRegular=function(e){var t=this.LA(1);e.location={startOffset:t.startOffset,startLine:t.startLine,startColumn:t.startColumn,endOffset:NaN,endLine:NaN,endColumn:NaN}},e.prototype.cstNestedInvocationStateUpdate=function(e,t){var i={name:e,fullName:this.shortRuleNameToFull[this.getLastExplicitRuleShortName()]+e,children:{}};this.setInitialNodeLocation(i),this.CST_STACK.push(i)},e.prototype.cstInvocationStateUpdate=function(e,t){this.LAST_EXPLICIT_RULE_STACK.push(this.RULE_STACK.length-1);var i={name:e,children:{}};this.setInitialNodeLocation(i),this.CST_STACK.push(i)},e.prototype.cstFinallyStateUpdate=function(){this.LAST_EXPLICIT_RULE_STACK.pop(),this.CST_STACK.pop()},e.prototype.cstNestedFinallyStateUpdate=function(){var e=this.CST_STACK.pop();this.cstPostRule(e)},e.prototype.cstPostRuleFull=function(e){var t=this.LA(0),i=e.location;i.startOffset<=t.startOffset==!0?(i.endOffset=t.endOffset,i.endLine=t.endLine,i.endColumn=t.endColumn):(i.startOffset=NaN,i.startLine=NaN,i.startColumn=NaN)},e.prototype.cstPostRuleOnlyOffset=function(e){var t=this.LA(0),i=e.location;i.startOffset<=t.startOffset==!0?i.endOffset=t.endOffset:i.startOffset=NaN},e.prototype.cstPostTerminal=function(e,t){var i=this.CST_STACK[this.CST_STACK.length-1];void 0===i.children[e]?i.children[e]=[t]:i.children[e].push(t),this.setNodeLocationFromToken(i.location,t)},e.prototype.cstPostNonTerminal=function(e,t){if(!0!==this.isBackTracking()){var i=this.CST_STACK[this.CST_STACK.length-1];e1(i,t,e),this.setNodeLocationFromNode(i.location,e.location)}},e.prototype.getBaseCstVisitorConstructor=function(){if((0,S.o8)(this.baseCstVisitorConstructor)){var e,t,i,n=(e=this.className,t=this.allRuleNames,tj(i=function(){},e+"BaseSemantics"),i.prototype={visit:function(e,t){if((0,S.kJ)(e)&&(e=e[0]),!(0,S.o8)(e))if(void 0!==e.fullName)return this[e.fullName](e.children,t);else return this[e.name](e.children,t)},validateVisitor:function(){var e,i,n,o,r,a,s,l=(e=this,i=t,a=(n=e,o=i,r=(0,S.UI)(o,function(e){if(!(0,S.mf)(n[e]))return{msg:"Missing visitor method: <"+e+"> on "+tZ(n.constructor)+" CST Visitor.",type:w.MISSING_METHOD,methodName:e}}),(0,S.oA)(r)),s=function(e,t){var i=[];for(var n in e)tm.test(n)&&(0,S.mf)(e[n])&&!(0,S.r3)(tK,n)&&!(0,S.r3)(t,n)&&i.push({msg:"Redundant visitor method: <"+n+"> on "+tZ(e.constructor)+" CST Visitor\nThere is no Grammar Rule corresponding to this method's name.\nFor utility methods on visitor classes use methods names that do not match /"+tm.source+"/.",type:w.REDUNDANT_METHOD,methodName:n});return i}(e,i),a.concat(s));if(!(0,S.xb)(l)){var c=(0,S.UI)(l,function(e){return e.msg});throw Error("Errors Detected in CST Visitor <"+tZ(this.constructor)+">:\n	"+c.join("\n\n").replace(/\n/g,"\n	"))}}},i.prototype.constructor=i,i._RULE_NAMES=t,i);return this.baseCstVisitorConstructor=n,n}return this.baseCstVisitorConstructor},e.prototype.getBaseCstVisitorConstructorWithDefaults=function(){if((0,S.o8)(this.baseCstVisitorWithDefaultsConstructor)){var e,t,i,n,o,r=(e=this.className,t=this.allRuleNames,i=this.getBaseCstVisitorConstructor(),tj(n=function(){},e+"BaseSemanticsWithDefaults"),o=Object.create(i.prototype),(0,S.Ed)(t,function(e){o[e]=tq}),n.prototype=o,n.prototype.constructor=n,n);return this.baseCstVisitorWithDefaultsConstructor=r,r}return this.baseCstVisitorWithDefaultsConstructor},e.prototype.nestedRuleBeforeClause=function(e,t){var i;return void 0!==e.NAME?(i=e.NAME,this.nestedRuleInvocationStateUpdate(i,t),i):void 0},e.prototype.nestedAltBeforeClause=function(e,t,i,n){var o,r,a=(o=this.getLastExplicitRuleShortName(),t|i|o|n+1<<24);return void 0!==e.NAME?(r=e.NAME,this.nestedRuleInvocationStateUpdate(r,a),{shortName:a,nestedName:r}):void 0},e.prototype.nestedRuleFinallyClause=function(e,t){var i=this.CST_STACK,n=i[i.length-1];this.nestedRuleFinallyStateUpdate();var o=i[i.length-1];e1(o,t,n),this.setNodeLocationFromNode(o.location,n.location)},e.prototype.getLastExplicitRuleShortName=function(){var e=this.LAST_EXPLICIT_RULE_STACK[this.LAST_EXPLICIT_RULE_STACK.length-1];return this.RULE_STACK[e]},e.prototype.getLastExplicitRuleShortNameNoCst=function(){var e=this.RULE_STACK;return e[e.length-1]},e.prototype.getPreviousExplicitRuleShortName=function(){var e=this.LAST_EXPLICIT_RULE_STACK[this.LAST_EXPLICIT_RULE_STACK.length-2];return this.RULE_STACK[e]},e.prototype.getPreviousExplicitRuleShortNameNoCst=function(){var e=this.RULE_STACK;return e[e.length-2]},e.prototype.getLastExplicitRuleOccurrenceIndex=function(){var e=this.LAST_EXPLICIT_RULE_STACK[this.LAST_EXPLICIT_RULE_STACK.length-1];return this.RULE_OCCURRENCE_STACK[e]},e.prototype.getLastExplicitRuleOccurrenceIndexNoCst=function(){var e=this.RULE_OCCURRENCE_STACK;return e[e.length-1]},e.prototype.nestedRuleInvocationStateUpdate=function(e,t){this.RULE_OCCURRENCE_STACK.push(1),this.RULE_STACK.push(t),this.cstNestedInvocationStateUpdate(e,t)},e.prototype.nestedRuleFinallyStateUpdate=function(){this.RULE_STACK.pop(),this.RULE_OCCURRENCE_STACK.pop(),this.cstNestedFinallyStateUpdate()},e}(),tQ=function(){function e(){}return e.prototype.initLexerAdapter=function(){this.tokVector=[],this.tokVectorLength=0,this.currIdx=-1},Object.defineProperty(e.prototype,"input",{get:function(){return this.tokVector},set:function(e){if(!0!==this.selfAnalysisDone)throw Error("Missing <performSelfAnalysis> invocation at the end of the Parser's constructor.");this.reset(),this.tokVector=e,this.tokVectorLength=e.length},enumerable:!0,configurable:!0}),e.prototype.SKIP_TOKEN=function(){return this.currIdx<=this.tokVector.length-2?(this.consumeToken(),this.LA(1)):io},e.prototype.LA=function(e){var t=this.currIdx+e;return t<0||this.tokVectorLength<=t?io:this.tokVector[t]},e.prototype.consumeToken=function(){this.currIdx++},e.prototype.exportLexerState=function(){return this.currIdx},e.prototype.importLexerState=function(e){this.currIdx=e},e.prototype.resetLexerState=function(){this.currIdx=-1},e.prototype.moveToTerminatedState=function(){this.currIdx=this.tokVector.length-1},e.prototype.getLexerPosition=function(){return this.exportLexerState()},e}(),t$=function(){function e(){}return e.prototype.ACTION=function(e){return e.call(this)},e.prototype.consume=function(e,t,i){return this.consumeInternal(t,e,i)},e.prototype.subrule=function(e,t,i){return this.subruleInternal(t,e,i)},e.prototype.option=function(e,t){return this.optionInternal(t,e)},e.prototype.or=function(e,t){return this.orInternal(t,e)},e.prototype.many=function(e,t){return this.manyInternal(e,t)},e.prototype.atLeastOne=function(e,t){return this.atLeastOneInternal(e,t)},e.prototype.CONSUME=function(e,t){return this.consumeInternal(e,0,t)},e.prototype.CONSUME1=function(e,t){return this.consumeInternal(e,1,t)},e.prototype.CONSUME2=function(e,t){return this.consumeInternal(e,2,t)},e.prototype.CONSUME3=function(e,t){return this.consumeInternal(e,3,t)},e.prototype.CONSUME4=function(e,t){return this.consumeInternal(e,4,t)},e.prototype.CONSUME5=function(e,t){return this.consumeInternal(e,5,t)},e.prototype.CONSUME6=function(e,t){return this.consumeInternal(e,6,t)},e.prototype.CONSUME7=function(e,t){return this.consumeInternal(e,7,t)},e.prototype.CONSUME8=function(e,t){return this.consumeInternal(e,8,t)},e.prototype.CONSUME9=function(e,t){return this.consumeInternal(e,9,t)},e.prototype.SUBRULE=function(e,t){return this.subruleInternal(e,0,t)},e.prototype.SUBRULE1=function(e,t){return this.subruleInternal(e,1,t)},e.prototype.SUBRULE2=function(e,t){return this.subruleInternal(e,2,t)},e.prototype.SUBRULE3=function(e,t){return this.subruleInternal(e,3,t)},e.prototype.SUBRULE4=function(e,t){return this.subruleInternal(e,4,t)},e.prototype.SUBRULE5=function(e,t){return this.subruleInternal(e,5,t)},e.prototype.SUBRULE6=function(e,t){return this.subruleInternal(e,6,t)},e.prototype.SUBRULE7=function(e,t){return this.subruleInternal(e,7,t)},e.prototype.SUBRULE8=function(e,t){return this.subruleInternal(e,8,t)},e.prototype.SUBRULE9=function(e,t){return this.subruleInternal(e,9,t)},e.prototype.OPTION=function(e){return this.optionInternal(e,0)},e.prototype.OPTION1=function(e){return this.optionInternal(e,1)},e.prototype.OPTION2=function(e){return this.optionInternal(e,2)},e.prototype.OPTION3=function(e){return this.optionInternal(e,3)},e.prototype.OPTION4=function(e){return this.optionInternal(e,4)},e.prototype.OPTION5=function(e){return this.optionInternal(e,5)},e.prototype.OPTION6=function(e){return this.optionInternal(e,6)},e.prototype.OPTION7=function(e){return this.optionInternal(e,7)},e.prototype.OPTION8=function(e){return this.optionInternal(e,8)},e.prototype.OPTION9=function(e){return this.optionInternal(e,9)},e.prototype.OR=function(e){return this.orInternal(e,0)},e.prototype.OR1=function(e){return this.orInternal(e,1)},e.prototype.OR2=function(e){return this.orInternal(e,2)},e.prototype.OR3=function(e){return this.orInternal(e,3)},e.prototype.OR4=function(e){return this.orInternal(e,4)},e.prototype.OR5=function(e){return this.orInternal(e,5)},e.prototype.OR6=function(e){return this.orInternal(e,6)},e.prototype.OR7=function(e){return this.orInternal(e,7)},e.prototype.OR8=function(e){return this.orInternal(e,8)},e.prototype.OR9=function(e){return this.orInternal(e,9)},e.prototype.MANY=function(e){this.manyInternal(0,e)},e.prototype.MANY1=function(e){this.manyInternal(1,e)},e.prototype.MANY2=function(e){this.manyInternal(2,e)},e.prototype.MANY3=function(e){this.manyInternal(3,e)},e.prototype.MANY4=function(e){this.manyInternal(4,e)},e.prototype.MANY5=function(e){this.manyInternal(5,e)},e.prototype.MANY6=function(e){this.manyInternal(6,e)},e.prototype.MANY7=function(e){this.manyInternal(7,e)},e.prototype.MANY8=function(e){this.manyInternal(8,e)},e.prototype.MANY9=function(e){this.manyInternal(9,e)},e.prototype.MANY_SEP=function(e){this.manySepFirstInternal(0,e)},e.prototype.MANY_SEP1=function(e){this.manySepFirstInternal(1,e)},e.prototype.MANY_SEP2=function(e){this.manySepFirstInternal(2,e)},e.prototype.MANY_SEP3=function(e){this.manySepFirstInternal(3,e)},e.prototype.MANY_SEP4=function(e){this.manySepFirstInternal(4,e)},e.prototype.MANY_SEP5=function(e){this.manySepFirstInternal(5,e)},e.prototype.MANY_SEP6=function(e){this.manySepFirstInternal(6,e)},e.prototype.MANY_SEP7=function(e){this.manySepFirstInternal(7,e)},e.prototype.MANY_SEP8=function(e){this.manySepFirstInternal(8,e)},e.prototype.MANY_SEP9=function(e){this.manySepFirstInternal(9,e)},e.prototype.AT_LEAST_ONE=function(e){this.atLeastOneInternal(0,e)},e.prototype.AT_LEAST_ONE1=function(e){return this.atLeastOneInternal(1,e)},e.prototype.AT_LEAST_ONE2=function(e){this.atLeastOneInternal(2,e)},e.prototype.AT_LEAST_ONE3=function(e){this.atLeastOneInternal(3,e)},e.prototype.AT_LEAST_ONE4=function(e){this.atLeastOneInternal(4,e)},e.prototype.AT_LEAST_ONE5=function(e){this.atLeastOneInternal(5,e)},e.prototype.AT_LEAST_ONE6=function(e){this.atLeastOneInternal(6,e)},e.prototype.AT_LEAST_ONE7=function(e){this.atLeastOneInternal(7,e)},e.prototype.AT_LEAST_ONE8=function(e){this.atLeastOneInternal(8,e)},e.prototype.AT_LEAST_ONE9=function(e){this.atLeastOneInternal(9,e)},e.prototype.AT_LEAST_ONE_SEP=function(e){this.atLeastOneSepFirstInternal(0,e)},e.prototype.AT_LEAST_ONE_SEP1=function(e){this.atLeastOneSepFirstInternal(1,e)},e.prototype.AT_LEAST_ONE_SEP2=function(e){this.atLeastOneSepFirstInternal(2,e)},e.prototype.AT_LEAST_ONE_SEP3=function(e){this.atLeastOneSepFirstInternal(3,e)},e.prototype.AT_LEAST_ONE_SEP4=function(e){this.atLeastOneSepFirstInternal(4,e)},e.prototype.AT_LEAST_ONE_SEP5=function(e){this.atLeastOneSepFirstInternal(5,e)},e.prototype.AT_LEAST_ONE_SEP6=function(e){this.atLeastOneSepFirstInternal(6,e)},e.prototype.AT_LEAST_ONE_SEP7=function(e){this.atLeastOneSepFirstInternal(7,e)},e.prototype.AT_LEAST_ONE_SEP8=function(e){this.atLeastOneSepFirstInternal(8,e)},e.prototype.AT_LEAST_ONE_SEP9=function(e){this.atLeastOneSepFirstInternal(9,e)},e.prototype.RULE=function(e,t,i){if(void 0===i&&(i=ia),(0,S.r3)(this.definedRulesNames,e)){var n={message:tx.buildDuplicateRuleNameError({topLevelRule:e,grammarName:this.className}),type:_.DUPLICATE_RULE_NAME,ruleName:e};this.definitionErrors.push(n)}this.definedRulesNames.push(e);var o=this.defineRule(e,t,i);return this[e]=o,o},e.prototype.OVERRIDE_RULE=function(e,t,i){void 0===i&&(i=ia);var n,o,r,a=[];a=a.concat((n=this.definedRulesNames,o=this.className,r=[],S.r3(n,e)||r.push({message:"Invalid rule override, rule: ->"+e+"<- cannot be overridden in the grammar: ->"+o+"<-as it is not defined in any of the super grammars ",type:_.INVALID_RULE_OVERRIDE,ruleName:e}),r)),this.definitionErrors.push.apply(this.definitionErrors,a);var s=this.defineRule(e,t,i);return this[e]=s,s},e.prototype.BACKTRACK=function(e,t){return function(){this.isBackTrackingStack.push(1);var i=this.saveRecogState();try{return e.apply(this,t),!0}catch(e){if(tM(e))return!1;throw e}finally{this.reloadRecogState(i),this.isBackTrackingStack.pop()}}},e.prototype.getGAstProductions=function(){return this.gastProductionsCache},e.prototype.getSerializedGastProductions=function(){return eB((0,S.VO)(this.gastProductionsCache))},e}(),tJ=function(){function e(){}return e.prototype.initRecognizerEngine=function(e,t){if(this.className=tZ(this.constructor),this.shortRuleNameToFull={},this.fullRuleNameToShort={},this.ruleShortNameIdx=256,this.tokenMatcher=J,this.definedRulesNames=[],this.tokensMap={},this.allRuleNames=[],this.isBackTrackingStack=[],this.RULE_STACK=[],this.RULE_OCCURRENCE_STACK=[],this.gastProductionsCache={},(0,S.e$)(t,"serializedGrammar"))throw Error("The Parser's configuration can no longer contain a <serializedGrammar> property.\n	See: https://sap.github.io/chevrotain/docs/changes/BREAKING_CHANGES.html#_6-0-0\n	For Further details.");if((0,S.kJ)(e)){if((0,S.xb)(e))throw Error("A Token Vocabulary cannot be empty.\n	Note that the first argument for the parser constructor\n	is no longer a Token vector (since v4.0).");if("number"==typeof e[0].startOffset)throw Error("The Parser constructor no longer accepts a token vector as the first argument.\n	See: https://sap.github.io/chevrotain/docs/changes/BREAKING_CHANGES.html#_4-0-0\n	For Further details.")}if((0,S.kJ)(e))this.tokensMap=(0,S.u4)(e,function(e,t){return e[t.name]=t,e},{});else if((0,S.e$)(e,"modes")&&(0,S.yW)((0,S.xH)((0,S.VO)(e.modes)),er)){var i=(0,S.xH)((0,S.VO)(e.modes)),n=(0,S.jj)(i);this.tokensMap=(0,S.u4)(n,function(e,t){return e[t.name]=t,e},{})}else if((0,S.Kn)(e))this.tokensMap=(0,S.Cl)(e);else throw Error("<tokensDictionary> argument must be An Array of Token constructors, A dictionary of Token constructors or an IMultiModeLexerDefinition");this.tokensMap.EOF=ex;var o=(0,S.yW)((0,S.VO)(e),function(e){return(0,S.xb)(e.categoryMatches)});this.tokenMatcher=o?J:$,ei((0,S.VO)(this.tokensMap))},e.prototype.defineRule=function(e,t,i){if(this.selfAnalysisDone)throw Error("Grammar rule <"+e+"> may not be defined after the 'performSelfAnalysis' method has been called'\nMake sure that all grammar rule definitions are done before 'performSelfAnalysis' is called.");var n,o=(0,S.e$)(i,"resyncEnabled")?i.resyncEnabled:ia.resyncEnabled,r=(0,S.e$)(i,"recoveryValueFunc")?i.recoveryValueFunc:ia.recoveryValueFunc,a=this.ruleShortNameIdx<<12;function s(e){try{if(!0!==this.outputCst)return t.apply(this,e);t.apply(this,e);var i=this.CST_STACK[this.CST_STACK.length-1];return this.cstPostRule(i),i}catch(e){return this.invokeRuleCatch(e,o,r)}finally{this.ruleFinallyStateUpdate()}}return this.ruleShortNameIdx++,this.shortRuleNameToFull[a]=e,this.fullRuleNameToShort[e]=a,(n=function(t,i){return void 0===t&&(t=0),this.ruleInvocationStateUpdate(a,e,t),s.call(this,i)}).ruleName=e,n.originalGrammarAction=t,n},e.prototype.invokeRuleCatch=function(e,t,i){var n=1===this.RULE_STACK.length,o=t&&!this.isBackTracking()&&this.recoveryEnabled;if(tM(e)){if(o){var r=this.findReSyncTokenType();if(this.isInCurrentRuleReSyncSet(r)){if(e.resyncedTokens=this.reSyncTo(r),!this.outputCst)return i();var a=this.CST_STACK[this.CST_STACK.length-1];return a.recoveredNode=!0,a}if(this.outputCst){var a=this.CST_STACK[this.CST_STACK.length-1];a.recoveredNode=!0,e.partialCstResult=a}throw e}if(n)return this.moveToTerminatedState(),i()}throw e},e.prototype.optionInternal=function(e,t){var i=this.getKeyForAutomaticLookahead(512,t),n=this.nestedRuleBeforeClause(e,i);try{return this.optionInternalLogic(e,t,i)}finally{void 0!==n&&this.nestedRuleFinallyClause(i,n)}},e.prototype.optionInternalNoCst=function(e,t){var i=this.getKeyForAutomaticLookahead(512,t);return this.optionInternalLogic(e,t,i)},e.prototype.optionInternalLogic=function(e,t,i){var n,o,r=this,a=this.getLaFuncFromCache(i);if(void 0!==e.DEF){if(n=e.DEF,void 0!==(o=e.GATE)){var s=a;a=function(){return o.call(r)&&s.call(r)}}}else n=e;if(!0===a.call(this))return n.call(this)},e.prototype.atLeastOneInternal=function(e,t){var i=this.getKeyForAutomaticLookahead(1024,e),n=this.nestedRuleBeforeClause(t,i);try{return this.atLeastOneInternalLogic(e,t,i)}finally{void 0!==n&&this.nestedRuleFinallyClause(i,n)}},e.prototype.atLeastOneInternalNoCst=function(e,t){var i=this.getKeyForAutomaticLookahead(1024,e);this.atLeastOneInternalLogic(e,t,i)},e.prototype.atLeastOneInternalLogic=function(e,t,i){var n,o,r=this,a=this.getLaFuncFromCache(i);if(void 0!==t.DEF){if(n=t.DEF,void 0!==(o=t.GATE)){var s=a;a=function(){return o.call(r)&&s.call(r)}}}else n=t;if(!0===a.call(this))for(var l=this.doSingleRepetition(n);!0===a.call(this)&&!0===l;)l=this.doSingleRepetition(n);else throw this.raiseEarlyExitException(e,y.REPETITION_MANDATORY,t.ERR_MSG);this.attemptInRepetitionRecovery(this.atLeastOneInternal,[e,t],a,1024,e,e7)},e.prototype.atLeastOneSepFirstInternal=function(e,t){var i=this.getKeyForAutomaticLookahead(1536,e),n=this.nestedRuleBeforeClause(t,i);try{this.atLeastOneSepFirstInternalLogic(e,t,i)}finally{void 0!==n&&this.nestedRuleFinallyClause(i,n)}},e.prototype.atLeastOneSepFirstInternalNoCst=function(e,t){var i=this.getKeyForAutomaticLookahead(1536,e);this.atLeastOneSepFirstInternalLogic(e,t,i)},e.prototype.atLeastOneSepFirstInternalLogic=function(e,t,i){var n=this,o=t.DEF,r=t.SEP;if(!0===this.getLaFuncFromCache(i).call(this)){o.call(this);for(var a=function(){return n.tokenMatcher(n.LA(1),r)};!0===this.tokenMatcher(this.LA(1),r);)this.CONSUME(r),o.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,r,a,o,e9],a,1536,e,e9)}else throw this.raiseEarlyExitException(e,y.REPETITION_MANDATORY_WITH_SEPARATOR,t.ERR_MSG)},e.prototype.manyInternal=function(e,t){var i=this.getKeyForAutomaticLookahead(768,e),n=this.nestedRuleBeforeClause(t,i);try{return this.manyInternalLogic(e,t,i)}finally{void 0!==n&&this.nestedRuleFinallyClause(i,n)}},e.prototype.manyInternalNoCst=function(e,t){var i=this.getKeyForAutomaticLookahead(768,e);return this.manyInternalLogic(e,t,i)},e.prototype.manyInternalLogic=function(e,t,i){var n,o,r=this,a=this.getLaFuncFromCache(i);if(void 0!==t.DEF){if(n=t.DEF,void 0!==(o=t.GATE)){var s=a;a=function(){return o.call(r)&&s.call(r)}}}else n=t;for(var l=!0;!0===a.call(this)&&!0===l;)l=this.doSingleRepetition(n);this.attemptInRepetitionRecovery(this.manyInternal,[e,t],a,768,e,e6,l)},e.prototype.manySepFirstInternal=function(e,t){var i=this.getKeyForAutomaticLookahead(1280,e),n=this.nestedRuleBeforeClause(t,i);try{this.manySepFirstInternalLogic(e,t,i)}finally{void 0!==n&&this.nestedRuleFinallyClause(i,n)}},e.prototype.manySepFirstInternalNoCst=function(e,t){var i=this.getKeyForAutomaticLookahead(1280,e);this.manySepFirstInternalLogic(e,t,i)},e.prototype.manySepFirstInternalLogic=function(e,t,i){var n=this,o=t.DEF,r=t.SEP;if(!0===this.getLaFuncFromCache(i).call(this)){o.call(this);for(var a=function(){return n.tokenMatcher(n.LA(1),r)};!0===this.tokenMatcher(this.LA(1),r);)this.CONSUME(r),o.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,r,a,o,e8],a,1280,e,e8)}},e.prototype.repetitionSepSecondInternal=function(e,t,i,n,o){for(;i();)this.CONSUME(t),n.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,t,i,n,o],i,1536,e,o)},e.prototype.doSingleRepetition=function(e){var t=this.getLexerPosition();return e.call(this),this.getLexerPosition()>t},e.prototype.orInternalNoCst=function(e,t){var i=(0,S.kJ)(e)?e:e.DEF,n=this.getKeyForAutomaticLookahead(256,t),o=this.getLaFuncFromCache(n).call(this,i);if(void 0!==o)return i[o].ALT.call(this);this.raiseNoAltException(t,e.ERR_MSG)},e.prototype.orInternal=function(e,t){var i=this.getKeyForAutomaticLookahead(256,t),n=this.nestedRuleBeforeClause(e,i);try{var o=(0,S.kJ)(e)?e:e.DEF,r=this.getLaFuncFromCache(i).call(this,o);if(void 0!==r){var a=o[r],s=this.nestedAltBeforeClause(a,t,256,r);try{return a.ALT.call(this)}finally{void 0!==s&&this.nestedRuleFinallyClause(s.shortName,s.nestedName)}}this.raiseNoAltException(t,e.ERR_MSG)}finally{void 0!==n&&this.nestedRuleFinallyClause(i,n)}},e.prototype.ruleFinallyStateUpdate=function(){if(this.RULE_STACK.pop(),this.RULE_OCCURRENCE_STACK.pop(),this.cstFinallyStateUpdate(),0===this.RULE_STACK.length&&!1===this.isAtEndOfInput()){var e=this.LA(1),t=this.errorMessageProvider.buildNotAllInputParsedMessage({firstRedundant:e,ruleName:this.getCurrRuleFullName()});this.SAVE_ERROR(new tL(t,e))}},e.prototype.subruleInternal=function(e,t,i){var n;try{var o=void 0!==i?i.ARGS:void 0;return n=e.call(this,t,o),this.cstPostNonTerminal(n,void 0!==i&&void 0!==i.LABEL?i.LABEL:e.ruleName),n}catch(t){this.subruleInternalError(t,i,e.ruleName)}},e.prototype.subruleInternalError=function(e,t,i){throw tM(e)&&void 0!==e.partialCstResult&&(this.cstPostNonTerminal(e.partialCstResult,void 0!==t&&void 0!==t.LABEL?t.LABEL:i),delete e.partialCstResult),e},e.prototype.consumeInternal=function(e,t,i){var n;try{var o=this.LA(1);!0===this.tokenMatcher(o,e)?(this.consumeToken(),n=o):this.consumeInternalError(e,o,i)}catch(i){n=this.consumeInternalRecovery(e,t,i)}return this.cstPostTerminal(void 0!==i&&void 0!==i.LABEL?i.LABEL:e.name,n),n},e.prototype.consumeInternalError=function(e,t,i){var n,o=this.LA(0);throw n=void 0!==i&&i.ERR_MSG?i.ERR_MSG:this.errorMessageProvider.buildMismatchTokenMessage({expected:e,actual:t,previous:o,ruleName:this.getCurrRuleFullName()}),this.SAVE_ERROR(new tN(n,t,o))},e.prototype.consumeInternalRecovery=function(e,t,i){if(this.recoveryEnabled&&"MismatchedTokenException"===i.name&&!this.isBackTracking()){var n=this.getFollowsForInRuleRecovery(e,t);try{return this.tryInRuleRecovery(e,n)}catch(e){if(e.name===tV)throw i;throw e}}throw i},e.prototype.saveRecogState=function(){var e=this.errors,t=(0,S.Qw)(this.RULE_STACK);return{errors:e,lexerState:this.exportLexerState(),RULE_STACK:t,CST_STACK:this.CST_STACK,LAST_EXPLICIT_RULE_STACK:this.LAST_EXPLICIT_RULE_STACK}},e.prototype.reloadRecogState=function(e){this.errors=e.errors,this.importLexerState(e.lexerState),this.RULE_STACK=e.RULE_STACK},e.prototype.ruleInvocationStateUpdate=function(e,t,i){this.RULE_OCCURRENCE_STACK.push(i),this.RULE_STACK.push(e),this.cstInvocationStateUpdate(t,e)},e.prototype.isBackTracking=function(){return 0!==this.isBackTrackingStack.length},e.prototype.getCurrRuleFullName=function(){var e=this.getLastExplicitRuleShortName();return this.shortRuleNameToFull[e]},e.prototype.shortRuleNameToFullName=function(e){return this.shortRuleNameToFull[e]},e.prototype.isAtEndOfInput=function(){return this.tokenMatcher(this.LA(1),ex)},e.prototype.reset=function(){this.resetLexerState(),this.isBackTrackingStack=[],this.errors=[],this.RULE_STACK=[],this.LAST_EXPLICIT_RULE_STACK=[],this.CST_STACK=[],this.RULE_OCCURRENCE_STACK=[]},e}(),t0=function(){function e(){}return e.prototype.initErrorHandler=function(e){this._errors=[],this.errorMessageProvider=(0,S.ce)(e.errorMessageProvider,ir.errorMessageProvider)},e.prototype.SAVE_ERROR=function(e){if(tM(e))return e.context={ruleStack:this.getHumanReadableRuleStack(),ruleOccurrenceStack:(0,S.Qw)(this.RULE_OCCURRENCE_STACK)},this._errors.push(e),e;throw Error("Trying to save an Error which is not a RecognitionException")},Object.defineProperty(e.prototype,"errors",{get:function(){return(0,S.Qw)(this._errors)},set:function(e){this._errors=e},enumerable:!0,configurable:!0}),e.prototype.raiseEarlyExitException=function(e,t,i){for(var n=this.getCurrRuleFullName(),o=tc(e,this.getGAstProductions()[n],t,this.maxLookahead)[0],r=[],a=1;a<=this.maxLookahead;a++)r.push(this.LA(a));var s=this.errorMessageProvider.buildEarlyExitMessage({expectedIterationPaths:o,actual:r,previous:this.LA(0),customUserDescription:i,ruleName:n});throw this.SAVE_ERROR(new tB(s,this.LA(1),this.LA(0)))},e.prototype.raiseNoAltException=function(e,t){for(var i=this.getCurrRuleFullName(),n=tl(e,this.getGAstProductions()[i],this.maxLookahead),o=[],r=1;r<=this.maxLookahead;r++)o.push(this.LA(r));var a=this.LA(0),s=this.errorMessageProvider.buildNoViableAltMessage({expectedPathsPerAlt:n,actual:o,previous:a,customUserDescription:t,ruleName:this.getCurrRuleFullName()});throw this.SAVE_ERROR(new tP(s,this.LA(1),a))},e}(),t1=function(){function e(){}return e.prototype.initContentAssist=function(){},e.prototype.computeContentAssist=function(e,t){var i=this.gastProductionsCache[e];if((0,S.o8)(i))throw Error("Rule ->"+e+"<- does not exist in this grammar.");return tt([i],t,this.tokenMatcher,this.maxLookahead)},e.prototype.getNextPossibleTokenTypes=function(e){var t=(0,S.Ps)(e.ruleStack);return new e4(this.getGAstProductions()[t],e).startWalking()},e}(),t2={description:"This Object indicates the Parser is during Recording Phase"};Object.freeze(t2);var t3=e_({name:"RECORDING_PHASE_TOKEN",pattern:el.NA});ei([t3]);var t4=eS(t3,"This IToken indicates the Parser is in Recording Phase\n	See: https://sap.github.io/chevrotain/docs/guide/internals.html#grammar-recording for details",-1,-1,-1,-1,-1,-1);Object.freeze(t4);var t5={name:"This CSTNode indicates the Parser is in Recording Phase\n	See: https://sap.github.io/chevrotain/docs/guide/internals.html#grammar-recording for details",children:{}},t6=function(){function e(){}return e.prototype.initGastRecorder=function(e){this.recordingProdStack=[],this.RECORDING_PHASE=!1},e.prototype.enableRecording=function(){var e=this;this.RECORDING_PHASE=!0,this.TRACE_INIT("Enable Recording",function(){for(var t=function(t){var i=t>0?t:"";e["CONSUME"+i]=function(e,i){return this.consumeInternalRecord(e,t,i)},e["SUBRULE"+i]=function(e,i){return this.subruleInternalRecord(e,t,i)},e["OPTION"+i]=function(e){return this.optionInternalRecord(e,t)},e["OR"+i]=function(e){return this.orInternalRecord(e,t)},e["MANY"+i]=function(e){this.manyInternalRecord(t,e)},e["MANY_SEP"+i]=function(e){this.manySepFirstInternalRecord(t,e)},e["AT_LEAST_ONE"+i]=function(e){this.atLeastOneInternalRecord(t,e)},e["AT_LEAST_ONE_SEP"+i]=function(e){this.atLeastOneSepFirstInternalRecord(t,e)}},i=0;i<10;i++)t(i);e.consume=function(e,t,i){return this.consumeInternalRecord(t,e,i)},e.subrule=function(e,t,i){return this.subruleInternalRecord(t,e,i)},e.option=function(e,t){return this.optionInternalRecord(t,e)},e.or=function(e,t){return this.orInternalRecord(t,e)},e.many=function(e,t){this.manyInternalRecord(e,t)},e.atLeastOne=function(e,t){this.atLeastOneInternalRecord(e,t)},e.ACTION=e.ACTION_RECORD,e.BACKTRACK=e.BACKTRACK_RECORD,e.LA=e.LA_RECORD})},e.prototype.disableRecording=function(){var e=this;this.RECORDING_PHASE=!1,this.TRACE_INIT("Deleting Recording methods",function(){for(var t=0;t<10;t++){var i=t>0?t:"";delete e["CONSUME"+i],delete e["SUBRULE"+i],delete e["OPTION"+i],delete e["OR"+i],delete e["MANY"+i],delete e["MANY_SEP"+i],delete e["AT_LEAST_ONE"+i],delete e["AT_LEAST_ONE_SEP"+i]}delete e.consume,delete e.subrule,delete e.option,delete e.or,delete e.many,delete e.atLeastOne,delete e.ACTION,delete e.BACKTRACK,delete e.LA})},e.prototype.ACTION_RECORD=function(e){},e.prototype.BACKTRACK_RECORD=function(e,t){return function(){return!0}},e.prototype.LA_RECORD=function(e){return io},e.prototype.topLevelRuleRecord=function(e,t){try{var i=new eT({definition:[],name:e});return i.name=e,this.recordingProdStack.push(i),t.call(this),this.recordingProdStack.pop(),i}catch(e){if(!0!==e.KNOWN_RECORDER_ERROR)try{e.message=e.message+'\n	 This error was thrown during the "grammar recording phase" For more info see:\n	https://sap.github.io/chevrotain/docs/guide/internals.html#grammar-recording'}catch(e){}throw e}},e.prototype.optionInternalRecord=function(e,t){return t8.call(this,eR,e,t)},e.prototype.atLeastOneInternalRecord=function(e,t){t8.call(this,eD,t,e)},e.prototype.atLeastOneSepFirstInternalRecord=function(e,t){t8.call(this,eO,t,e,!0)},e.prototype.manyInternalRecord=function(e,t){t8.call(this,eM,t,e)},e.prototype.manySepFirstInternalRecord=function(e,t){t8.call(this,eN,t,e,!0)},e.prototype.orInternalRecord=function(e,t){return t7.call(this,e,t)},e.prototype.subruleInternalRecord=function(e,t,i){if(ie(t),!e||!1===(0,S.e$)(e,"ruleName")){var n=Error("<SUBRULE"+t9(t)+"> argument is invalid expecting a Parser method reference but got: <"+JSON.stringify(e)+">\n inside top level rule: <"+this.recordingProdStack[0].name+">");throw n.KNOWN_RECORDER_ERROR=!0,n}var o=(0,S.fj)(this.recordingProdStack),r=new eA({idx:t,nonTerminalName:e.ruleName,referencedRule:void 0});return o.definition.push(r),this.outputCst?t5:t2},e.prototype.consumeInternalRecord=function(e,t,i){if(ie(t),!en(e)){var n=Error("<CONSUME"+t9(t)+"> argument is invalid expecting a TokenType reference but got: <"+JSON.stringify(e)+">\n inside top level rule: <"+this.recordingProdStack[0].name+">");throw n.KNOWN_RECORDER_ERROR=!0,n}var o=(0,S.fj)(this.recordingProdStack),r=new eL({idx:t,terminalType:e});return o.definition.push(r),t4},e}();function t8(e,t,i,n){void 0===n&&(n=!1),ie(i);var o=(0,S.fj)(this.recordingProdStack),r=(0,S.mf)(t)?t:t.DEF,a=new e({definition:[],idx:i});return(0,S.e$)(t,"NAME")&&(a.name=t.NAME),n&&(a.separator=t.SEP),(0,S.e$)(t,"MAX_LOOKAHEAD")&&(a.maxLookahead=t.MAX_LOOKAHEAD),this.recordingProdStack.push(a),r.call(this),o.definition.push(a),this.recordingProdStack.pop(),t2}function t7(e,t){var i=this;ie(t);var n=(0,S.fj)(this.recordingProdStack),o=!1===(0,S.kJ)(e),r=!1===o?e:e.DEF,a=new eP({definition:[],idx:t,ignoreAmbiguities:o&&!0===e.IGNORE_AMBIGUITIES});return(0,S.e$)(e,"NAME")&&(a.name=e.NAME),(0,S.e$)(e,"MAX_LOOKAHEAD")&&(a.maxLookahead=e.MAX_LOOKAHEAD),a.hasPredicates=(0,S.G)(r,function(e){return(0,S.mf)(e.GATE)}),n.definition.push(a),(0,S.Ed)(r,function(e){var t=new eE({definition:[]});a.definition.push(t),(0,S.e$)(e,"NAME")&&(t.name=e.NAME),(0,S.e$)(e,"IGNORE_AMBIGUITIES")?t.ignoreAmbiguities=e.IGNORE_AMBIGUITIES:(0,S.e$)(e,"GATE")&&(t.ignoreAmbiguities=!0),i.recordingProdStack.push(t),e.ALT.call(i),i.recordingProdStack.pop()}),t2}function t9(e){return 0===e?"":""+e}function ie(e){if(e<0||e>255){var t=Error("Invalid DSL Method idx value: <"+e+">\n	Idx value must be a none negative value smaller than "+256);throw t.KNOWN_RECORDER_ERROR=!0,t}}var it=function(){function e(){}return e.prototype.initPerformanceTracer=function(e){if((0,S.e$)(e,"traceInitPerf")){var t=e.traceInitPerf,i="number"==typeof t;this.traceInitMaxIdent=i?t:1/0,this.traceInitPerf=i?t>0:t}else this.traceInitMaxIdent=0,this.traceInitPerf=ir.traceInitPerf;this.traceInitIndent=-1},e.prototype.TRACE_INIT=function(e,t){if(!0!==this.traceInitPerf)return t();this.traceInitIndent++;var i=Array(this.traceInitIndent+1).join("	");this.traceInitIndent<this.traceInitMaxIdent&&console.log(i+"--\x3e <"+e+">");var n=(0,S.HT)(t),o=n.time,r=n.value,a=o>10?console.warn:console.log;return this.traceInitIndent<this.traceInitMaxIdent&&a(i+"<-- <"+e+"> time: "+o+"ms"),this.traceInitIndent--,r},e}(),ii=(m=function(e,t){return(m=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)},function(e,t){function i(){this.constructor=e}m(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),io=eS(ex,"",NaN,NaN,NaN,NaN,NaN,NaN);Object.freeze(io);var ir=Object.freeze({recoveryEnabled:!1,maxLookahead:4,ignoredIssues:{},dynamicTokensEnabled:!1,outputCst:!0,errorMessageProvider:tw,nodeLocationTracking:"none",traceInitPerf:!1,skipValidations:!1}),ia=Object.freeze({recoveryValueFunc:function(){},resyncEnabled:!0});function is(e){return void 0===e&&(e=void 0),function(){return e}}(v=_||(_={}))[v.INVALID_RULE_NAME=0]="INVALID_RULE_NAME",v[v.DUPLICATE_RULE_NAME=1]="DUPLICATE_RULE_NAME",v[v.INVALID_RULE_OVERRIDE=2]="INVALID_RULE_OVERRIDE",v[v.DUPLICATE_PRODUCTIONS=3]="DUPLICATE_PRODUCTIONS",v[v.UNRESOLVED_SUBRULE_REF=4]="UNRESOLVED_SUBRULE_REF",v[v.LEFT_RECURSION=5]="LEFT_RECURSION",v[v.NONE_LAST_EMPTY_ALT=6]="NONE_LAST_EMPTY_ALT",v[v.AMBIGUOUS_ALTS=7]="AMBIGUOUS_ALTS",v[v.CONFLICT_TOKENS_RULES_NAMESPACE=8]="CONFLICT_TOKENS_RULES_NAMESPACE",v[v.INVALID_TOKEN_NAME=9]="INVALID_TOKEN_NAME",v[v.INVALID_NESTED_RULE_NAME=10]="INVALID_NESTED_RULE_NAME",v[v.DUPLICATE_NESTED_NAME=11]="DUPLICATE_NESTED_NAME",v[v.NO_NON_EMPTY_LOOKAHEAD=12]="NO_NON_EMPTY_LOOKAHEAD",v[v.AMBIGUOUS_PREFIX_ALTS=13]="AMBIGUOUS_PREFIX_ALTS",v[v.TOO_MANY_ALTS=14]="TOO_MANY_ALTS";var il=function(){function e(e,t){void 0===t&&(t=ir),this.ignoredIssues=ir.ignoredIssues,this.definitionErrors=[],this.selfAnalysisDone=!1,this.initErrorHandler(t),this.initLexerAdapter(),this.initLooksAhead(t),this.initRecognizerEngine(e,t),this.initRecoverable(t),this.initTreeBuilder(t),this.initContentAssist(),this.initGastRecorder(t),this.initPerformanceTracer(t),(0,S.e$)(t,"ignoredIssues")&&t.ignoredIssues!==ir.ignoredIssues&&(0,S.rr)("The <ignoredIssues> IParserConfig property is soft-deprecated and will be removed in future versions.\n	Please use the <IGNORE_AMBIGUITIES> flag on the relevant DSL method instead."),this.ignoredIssues=(0,S.e$)(t,"ignoredIssues")?t.ignoredIssues:ir.ignoredIssues,this.skipValidations=(0,S.e$)(t,"skipValidations")?t.skipValidations:ir.skipValidations}return e.performSelfAnalysis=function(e){e.performSelfAnalysis()},e.prototype.performSelfAnalysis=function(){var t=this;this.TRACE_INIT("performSelfAnalysis",function(){t.selfAnalysisDone=!0;var i=t.className;t.TRACE_INIT("toFastProps",function(){(0,S.SV)(t)}),t.TRACE_INIT("Grammar Recording",function(){try{t.enableRecording(),(0,S.Ed)(t.definedRulesNames,function(e){var i=t[e].originalGrammarAction,n=void 0;t.TRACE_INIT(e+" Rule",function(){n=t.topLevelRuleRecord(e,i)}),t.gastProductionsCache[e]=n})}finally{t.disableRecording()}});var n=[];if(t.TRACE_INIT("Grammar Resolving",function(){n=tk({rules:(0,S.VO)(t.gastProductionsCache)}),t.definitionErrors.push.apply(t.definitionErrors,n)}),t.TRACE_INIT("Grammar Validations",function(){if((0,S.xb)(n)&&!1===t.skipValidations){var e=tI({rules:(0,S.VO)(t.gastProductionsCache),maxLookahead:t.maxLookahead,tokenTypes:(0,S.VO)(t.tokensMap),ignoredIssues:t.ignoredIssues,errMsgProvider:tx,grammarName:i});t.definitionErrors.push.apply(t.definitionErrors,e)}}),(0,S.xb)(t.definitionErrors)&&(t.recoveryEnabled&&t.TRACE_INIT("computeAllProdsFollows",function(){var e,i,n=(e=(0,S.VO)(t.gastProductionsCache),i={},(0,S.Ed)(e,function(e){var t=new eX(e).startWalking();(0,S.f0)(i,t)}),i);t.resyncFollows=n}),t.TRACE_INIT("ComputeLookaheadFunctions",function(){t.preComputeLookaheadFunctions((0,S.VO)(t.gastProductionsCache))})),t.TRACE_INIT("expandAllNestedRuleNames",function(){var e,i,n,o=(e=(0,S.VO)(t.gastProductionsCache),i=t.fullRuleNameToShort,n={allRuleNames:[]},(0,S.Ed)(e,function(e){var t=i[e.name];n.allRuleNames.push(e.name);var o=new e2(t);e.accept(o),(0,S.Ed)(o.result,function(t){t.def,t.key;var i=t.name;n.allRuleNames.push(e.name+i)})}),n);t.allRuleNames=o.allRuleNames}),!e.DEFER_DEFINITION_ERRORS_HANDLING&&!(0,S.xb)(t.definitionErrors))throw Error("Parser Definition Errors detected:\n "+(0,S.UI)(t.definitionErrors,function(e){return e.message}).join("\n-------------------------------\n"))})},e.DEFER_DEFINITION_ERRORS_HANDLING=!1,e}();(0,S.ef)(il,[tH,tY,tX,tQ,tJ,t$,t0,t1,t6,it]);var ic=function(e){function t(t,i){void 0===i&&(i=ir);var n=this,o=(0,S.Cl)(i);return o.outputCst=!0,e.call(this,t,o)||this}return ii(t,e),t}(il),id=function(e){function t(t,i){void 0===i&&(i=ir);var n=this,o=(0,S.Cl)(i);return o.outputCst=!1,e.call(this,t,o)||this}return ii(t,e),t}(il);function iu(e,t){var i=void 0===t?{}:t,n=i.resourceBase,o=void 0===n?"https://unpkg.com/chevrotain@"+x+"/diagrams/":n,r=i.css;return"\n\x3c!-- This is a generated file --\x3e\n<!DOCTYPE html>\n<meta charset=\"utf-8\">\n<style>\n  body {\n    background-color: hsl(30, 20%, 95%)\n  }\n</style>\n\n\n<link rel='stylesheet' href='"+(void 0===r?"https://unpkg.com/chevrotain@"+x+"/diagrams/diagrams.css":r)+"'>\n"+("\n<script src='"+o+"vendor/railroad-diagrams.js'><\/script>\n<script src='"+o+"src/diagrams_builder.js'><\/script>\n<script src='"+o+"src/diagrams_behavior.js'><\/script>\n<script src='"+o+"src/main.js'><\/script>\n")+'\n<div id="diagrams" align="center"></div>    \n'+("\n<script>\n    window.serializedGrammar = "+JSON.stringify(e,null,"  ")+";\n<\/script>\n")+'\n<script>\n    var diagramsDiv = document.getElementById("diagrams");\n    main.drawDiagramsFromSerializedGrammar(serializedGrammar, diagramsDiv);\n<\/script>\n'}function ih(e){var t;return"\nfunction "+e.name+"(tokenVocabulary, config) {\n    // invoke super constructor\n    // No support for embedded actions currently, so we can 'hardcode'\n    // The use of CstParser.\n    chevrotain.CstParser.call(this, tokenVocabulary, config)\n\n    const $ = this\n\n    "+(t=e.rules,(0,S.UI)(t,function(e){var t,i,n;return i=1,n=iv(1,'$.RULE("'+(t=e).name+'", function() {')+"\n"+im(t.definition,i+1)+(iv(i+1,"})")+"\n")}).join("\n"))+"\n\n    // very important to call this after all the rules have been defined.\n    // otherwise the parser may not work correctly as it will lack information\n    // derived during the self analysis phase.\n    this.performSelfAnalysis(this)\n}\n\n// inheritance as implemented in javascript in the previous decade... :(\n"+e.name+".prototype = Object.create(chevrotain.CstParser.prototype)\n"+e.name+".prototype.constructor = "+e.name+"    \n    "}function ip(e,t,i){var n=iv(i,"$."+(e+t.idx)+"(");return t.name||t.separator?(n+="{\n",t.name&&(n+=iv(i+1,'NAME: "'+t.name+'"')+",\n"),t.separator&&(n+=iv(i+1,"SEP: this.tokensMap."+t.separator.name)+",\n"),n+="DEF: "+ig(t.definition,i+2)+"\n",n+=iv(i,"}")+"\n"):n+=ig(t.definition,i+1),n+=iv(i,")")+"\n"}function ig(e,t){var i="function() {\n";return i+=im(e,t),i+=iv(t,"}")+"\n"}function im(e,t){var i="";return(0,S.Ed)(e,function(e){i+=function(e,t){var i,n;if(e instanceof eA)return iv(t,"$.SUBRULE"+e.idx+"($."+e.nonTerminalName+")\n");if(e instanceof eR)return ip("OPTION",e,t);if(e instanceof eD)return ip("AT_LEAST_ONE",e,t);if(e instanceof eO)return ip("AT_LEAST_ONE_SEP",e,t);if(e instanceof eN)return ip("MANY_SEP",e,t);else if(e instanceof eM)return ip("MANY",e,t);else if(e instanceof eP)return iv(t,"$.OR"+e.idx+"([")+"\n"+(0,S.UI)(e.definition,function(e){var i,n,o;return i=e,o=iv(n=t+1,"{")+"\n",i.name&&(o+=iv(n+1,'NAME: "'+i.name+'",')+"\n"),o+=iv(n+1,"ALT: function() {")+"\n",o+=im(i.definition,n+1),o+=iv(n+1,"}")+"\n",o+=iv(n,"}")}).join(",\n")+"\n"+iv(t,"])\n");else if(e instanceof eL)return n=e.terminalType.name,iv(t,"$.CONSUME"+e.idx+"(this.tokensMap."+n+")\n");else if(e instanceof eE)return im(e.definition,t);else throw Error("non exhaustive match")}(e,t+1)}),i}function iv(e,t){return Array(4*e+1).join(" ")+t}function ib(e){var t,n=Function("tokenVocabulary","config","chevrotain","    \n"+ih(t={name:e.name,rules:e.rules})+"\nreturn new "+t.name+"(tokenVocabulary, config)    \n");return function(t){return n(e.tokenVocabulary,t,i(39499))}}function iy(e){var t;return"\n(function (root, factory) {\n    if (typeof define === 'function' && define.amd) {\n        // AMD. Register as an anonymous module.\n        define(['chevrotain'], factory);\n    } else if (typeof module === 'object' && module.exports) {\n        // Node. Does not work with strict CommonJS, but\n        // only CommonJS-like environments that support module.exports,\n        // like Node.\n        module.exports = factory(require('chevrotain'));\n    } else {\n        // Browser globals (root is window)\n        root.returnExports = factory(root.b);\n    }\n}(typeof self !== 'undefined' ? self : this, function (chevrotain) {\n\n"+ih(t={name:e.name,rules:e.rules})+"\n    \nreturn {\n    "+t.name+": "+t.name+" \n}\n}));\n"}function iw(){console.warn("The clearCache function was 'soft' removed from the Chevrotain API.\n	 It performs no action other than printing this message.\n	 Please avoid using it as it will be completely removed in the future")}},29063:function(e,t,i){"use strict";function n(e){return e&&0===e.length}function o(e){return null==e?[]:Object.keys(e)}function r(e){for(var t=[],i=Object.keys(e),n=0;n<i.length;n++)t.push(e[i[n]]);return t}function a(e,t){for(var i=[],n=o(e),r=0;r<n.length;r++){var a=n[r];i.push(t.call(null,e[a],a))}return i}function s(e,t){for(var i=[],n=0;n<e.length;n++)i.push(t.call(null,e[n],n));return i}function l(e){return n(e)?void 0:e[0]}function c(e){var t=e&&e.length;return t?e[t-1]:void 0}function d(e,t){if(Array.isArray(e))for(var i=0;i<e.length;i++)t.call(null,e[i],i);else if(R(e))for(var n=o(e),i=0;i<n.length;i++){var r=n[i],a=e[r];t.call(null,a,r)}else throw Error("non exhaustive match")}function u(e){return"string"==typeof e}function h(e){return void 0===e}function p(e){return e instanceof Function}function f(e,t){return void 0===t&&(t=1),e.slice(t,e.length)}function g(e,t){return void 0===t&&(t=1),e.slice(0,e.length-t)}function m(e,t){var i=[];if(Array.isArray(e))for(var n=0;n<e.length;n++){var o=e[n];t.call(null,o)&&i.push(o)}return i}function v(e,t){return m(e,function(e){return!t(e)})}function b(e,t){for(var i=Object.keys(e),n={},o=0;o<i.length;o++){var r=i[o],a=e[r];t(a)&&(n[r]=a)}return n}function y(e,t){return!!R(e)&&e.hasOwnProperty(t)}function w(e,t){return void 0!==S(e,function(e){return e===t})}function _(e){for(var t=[],i=0;i<e.length;i++)t.push(e[i]);return t}function x(e){var t={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}function S(e,t){for(var i=0;i<e.length;i++){var n=e[i];if(t.call(null,n))return n}}function C(e,t){for(var i=[],n=0;n<e.length;n++){var o=e[n];t.call(null,o)&&i.push(o)}return i}function k(e,t,i){for(var n=Array.isArray(e),a=n?e:r(e),s=n?[]:o(e),l=i,c=0;c<a.length;c++)l=t.call(null,l,a[c],n?c:s[c]);return l}function I(e){return v(e,function(e){return null==e})}function A(e,t){void 0===t&&(t=function(e){return e});var i=[];return k(e,function(e,n){var o=t(n);return w(i,o)?e:(i.push(o),e.concat(n))},[])}function T(e){return Array.isArray(e)}function E(e){return e instanceof RegExp}function R(e){return e instanceof Object}function D(e,t){for(var i=0;i<e.length;i++)if(!t(e[i],i))return!1;return!0}function O(e,t){return v(e,function(e){return w(t,e)})}function M(e,t){for(var i=0;i<e.length;i++)if(t(e[i]))return!0;return!1}function N(e,t){for(var i=0;i<e.length;i++)if(e[i]===t)return i;return -1}function P(e){for(var t=[],i=1;i<arguments.length;i++)t[i-1]=arguments[i];for(var n=0;n<t.length;n++)for(var r=t[n],a=o(r),s=0;s<a.length;s++){var l=a[s];e[l]=r[l]}return e}function L(e){for(var t=[],i=1;i<arguments.length;i++)t[i-1]=arguments[i];for(var n=0;n<t.length;n++){var r=t[n];if(!h(r))for(var a=o(r),s=0;s<a.length;s++){var l=a[s];y(e,l)||(e[l]=r[l])}}return e}function B(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return L.apply(null,[{}].concat(e))}function F(e,t){var i={};return d(e,function(e){var n=t(e),o=i[n];o?o.push(e):i[n]=[e]}),i}function V(e,t){for(var i=x(e),n=o(t),r=0;r<n.length;r++){var a=n[r],s=t[a];i[a]=s}return i}function z(){}function H(e){return e}function W(e){for(var t=[],i=0;i<e.length;i++){var n=e[i];t.push(void 0!==n?n:void 0)}return t}function Y(e){console&&console.error&&console.error("Error: "+e)}function U(e){console&&console.warn&&console.warn("Warning: "+e)}function G(){return"function"==typeof Map}function Z(e,t){t.forEach(function(t){var i=t.prototype;Object.getOwnPropertyNames(i).forEach(function(n){if("constructor"!==n){var o=Object.getOwnPropertyDescriptor(i,n);o&&(o.get||o.set)?Object.defineProperty(e.prototype,n,o):e.prototype[n]=t.prototype[n]}})})}function j(e){function t(){}t.prototype=e;var i=new t;function n(){return typeof i.bar}return n(),n(),e}function q(e){return e[e.length-1]}function K(e){var t=new Date().getTime(),i=e();return{time:new Date().getTime()-t,value:i}}i.d(t,{Cl:()=>x,Cw:()=>f,Ed:()=>d,G:()=>M,HD:()=>u,HT:()=>K,Kj:()=>E,Kn:()=>R,Oq:()=>C,Ps:()=>l,Q8:()=>a,Qw:()=>_,SV:()=>j,TS:()=>V,UI:()=>s,VO:()=>r,WB:()=>Y,Wd:()=>H,X0:()=>W,XP:()=>o,Z$:()=>c,ce:()=>B,cq:()=>N,d1:()=>v,dG:()=>z,dU:()=>G,e$:()=>y,e5:()=>O,ef:()=>Z,ei:()=>b,f0:()=>P,fj:()=>q,hX:()=>m,j7:()=>g,jj:()=>A,kJ:()=>T,mf:()=>p,o8:()=>h,oA:()=>I,r3:()=>w,rr:()=>U,sE:()=>S,u4:()=>k,vM:()=>F,xH:()=>function e(t){for(var i=[],n=0;n<t.length;n++){var o=t[n];Array.isArray(o)?i=i.concat(e(o)):i.push(o)}return i},xb:()=>n,yW:()=>D})},44589:function(e,t,i){var n=i(13337),o={};for(var r in n)n.hasOwnProperty(r)&&(o[n[r]]=r);var a=e.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var s in a)if(a.hasOwnProperty(s)){if(!("channels"in a[s]))throw Error("missing channels property: "+s);if(!("labels"in a[s]))throw Error("missing channel labels property: "+s);if(a[s].labels.length!==a[s].channels)throw Error("channel and label counts mismatch: "+s);var l=a[s].channels,c=a[s].labels;delete a[s].channels,delete a[s].labels,Object.defineProperty(a[s],"channels",{value:l}),Object.defineProperty(a[s],"labels",{value:c})}a.rgb.hsl=function(e){var t,i,n=e[0]/255,o=e[1]/255,r=e[2]/255,a=Math.min(n,o,r),s=Math.max(n,o,r),l=s-a;return s===a?t=0:n===s?t=(o-r)/l:o===s?t=2+(r-n)/l:r===s&&(t=4+(n-o)/l),(t=Math.min(60*t,360))<0&&(t+=360),i=(a+s)/2,[t,100*(s===a?0:i<=.5?l/(s+a):l/(2-s-a)),100*i]},a.rgb.hsv=function(e){var t,i,n,o,r,a=e[0]/255,s=e[1]/255,l=e[2]/255,c=Math.max(a,s,l),d=c-Math.min(a,s,l),u=function(e){return(c-e)/6/d+.5};return 0===d?o=r=0:(r=d/c,t=u(a),i=u(s),n=u(l),a===c?o=n-i:s===c?o=1/3+t-n:l===c&&(o=2/3+i-t),o<0?o+=1:o>1&&(o-=1)),[360*o,100*r,100*c]},a.rgb.hwb=function(e){var t=e[0],i=e[1],n=e[2];return[a.rgb.hsl(e)[0],1/255*Math.min(t,Math.min(i,n))*100,100*(n=1-1/255*Math.max(t,Math.max(i,n)))]},a.rgb.cmyk=function(e){var t,i=e[0]/255,n=e[1]/255,o=e[2]/255;return t=Math.min(1-i,1-n,1-o),[100*((1-i-t)/(1-t)||0),100*((1-n-t)/(1-t)||0),100*((1-o-t)/(1-t)||0),100*t]},a.rgb.keyword=function(e){var t,i=o[e];if(i)return i;var r=1/0;for(var a in n)if(n.hasOwnProperty(a)){var s=n[a],l=Math.pow(e[0]-s[0],2)+Math.pow(e[1]-s[1],2)+Math.pow(e[2]-s[2],2);l<r&&(r=l,t=a)}return t},a.keyword.rgb=function(e){return n[e]},a.rgb.xyz=function(e){var t=e[0]/255,i=e[1]/255,n=e[2]/255;return[100*(.4124*(t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92)+.3576*(i=i>.04045?Math.pow((i+.055)/1.055,2.4):i/12.92)+.1805*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)),100*(.2126*t+.7152*i+.0722*n),100*(.0193*t+.1192*i+.9505*n)]},a.rgb.lab=function(e){var t=a.rgb.xyz(e),i=t[0],n=t[1],o=t[2];return i/=95.047,n/=100,o/=108.883,i=i>.008856?Math.pow(i,1/3):7.787*i+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(i-n),200*(n-(o=o>.008856?Math.pow(o,1/3):7.787*o+16/116))]},a.hsl.rgb=function(e){var t,i,n,o,r,a=e[0]/360,s=e[1]/100,l=e[2]/100;if(0===s)return[r=255*l,r,r];i=l<.5?l*(1+s):l+s-l*s,t=2*l-i,o=[0,0,0];for(var c=0;c<3;c++)(n=a+-(1/3*(c-1)))<0&&n++,n>1&&n--,r=6*n<1?t+(i-t)*6*n:2*n<1?i:3*n<2?t+(i-t)*(2/3-n)*6:t,o[c]=255*r;return o},a.hsl.hsv=function(e){var t,i=e[0],n=e[1]/100,o=e[2]/100,r=n,a=Math.max(o,.01);return o*=2,n*=o<=1?o:2-o,r*=a<=1?a:2-a,t=(o+n)/2,[i,100*(0===o?2*r/(a+r):2*n/(o+n)),100*t]},a.hsv.rgb=function(e){var t=e[0]/60,i=e[1]/100,n=e[2]/100,o=Math.floor(t)%6,r=t-Math.floor(t),a=255*n*(1-i),s=255*n*(1-i*r),l=255*n*(1-i*(1-r));switch(n*=255,o){case 0:return[n,l,a];case 1:return[s,n,a];case 2:return[a,n,l];case 3:return[a,s,n];case 4:return[l,a,n];case 5:return[n,a,s]}},a.hsv.hsl=function(e){var t,i,n,o=e[0],r=e[1]/100,a=e[2]/100,s=Math.max(a,.01);return n=(2-r)*a,t=(2-r)*s,[o,100*(i=(i=r*s/(t<=1?t:2-t))||0),100*(n/=2)]},a.hwb.rgb=function(e){var t,i,n,o,r,a,s,l=e[0]/360,c=e[1]/100,d=e[2]/100,u=c+d;switch(u>1&&(c/=u,d/=u),t=Math.floor(6*l),i=1-d,n=6*l-t,(1&t)!=0&&(n=1-n),o=c+n*(i-c),t){default:case 6:case 0:r=i,a=o,s=c;break;case 1:r=o,a=i,s=c;break;case 2:r=c,a=i,s=o;break;case 3:r=c,a=o,s=i;break;case 4:r=o,a=c,s=i;break;case 5:r=i,a=c,s=o}return[255*r,255*a,255*s]},a.cmyk.rgb=function(e){var t=e[0]/100,i=e[1]/100,n=e[2]/100,o=e[3]/100;return[255*(1-Math.min(1,t*(1-o)+o)),255*(1-Math.min(1,i*(1-o)+o)),255*(1-Math.min(1,n*(1-o)+o))]},a.xyz.rgb=function(e){var t,i,n,o=e[0]/100,r=e[1]/100,a=e[2]/100;return t=3.2406*o+-1.5372*r+-.4986*a,i=-.9689*o+1.8758*r+.0415*a,n=.0557*o+-.204*r+1.057*a,t=t>.0031308?1.055*Math.pow(t,1/2.4)-.055:12.92*t,i=i>.0031308?1.055*Math.pow(i,1/2.4)-.055:12.92*i,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,[255*(t=Math.min(Math.max(0,t),1)),255*(i=Math.min(Math.max(0,i),1)),255*(n=Math.min(Math.max(0,n),1))]},a.xyz.lab=function(e){var t=e[0],i=e[1],n=e[2];return t/=95.047,i/=100,n/=108.883,t=t>.008856?Math.pow(t,1/3):7.787*t+16/116,[116*(i=i>.008856?Math.pow(i,1/3):7.787*i+16/116)-16,500*(t-i),200*(i-(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116))]},a.lab.xyz=function(e){var t,i,n,o=e[0],r=e[1],a=e[2];t=r/500+(i=(o+16)/116),n=i-a/200;var s=Math.pow(i,3),l=Math.pow(t,3),c=Math.pow(n,3);return i=(s>.008856?s:(i-16/116)/7.787)*100,[t=(l>.008856?l:(t-16/116)/7.787)*95.047,i,n=(c>.008856?c:(n-16/116)/7.787)*108.883]},a.lab.lch=function(e){var t,i=e[0],n=e[1],o=e[2];return(t=360*Math.atan2(o,n)/2/Math.PI)<0&&(t+=360),[i,Math.sqrt(n*n+o*o),t]},a.lch.lab=function(e){var t,i=e[0],n=e[1];return[i,n*Math.cos(t=e[2]/360*2*Math.PI),n*Math.sin(t)]},a.rgb.ansi16=function(e){var t=e[0],i=e[1],n=e[2],o=1 in arguments?arguments[1]:a.rgb.hsv(e)[2];if(0===(o=Math.round(o/50)))return 30;var r=30+(Math.round(n/255)<<2|Math.round(i/255)<<1|Math.round(t/255));return 2===o&&(r+=60),r},a.hsv.ansi16=function(e){return a.rgb.ansi16(a.hsv.rgb(e),e[2])},a.rgb.ansi256=function(e){var t=e[0],i=e[1],n=e[2];return t===i&&i===n?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(i/255*5)+Math.round(n/255*5)},a.ansi16.rgb=function(e){var t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),[t=t/10.5*255,t,t];var i=(~~(e>50)+1)*.5;return[(1&t)*i*255,(t>>1&1)*i*255,(t>>2&1)*i*255]},a.ansi256.rgb=function(e){if(e>=232){var t,i=(e-232)*10+8;return[i,i,i]}return[Math.floor((e-=16)/36)/5*255,Math.floor((t=e%36)/6)/5*255,t%6/5*255]},a.rgb.hex=function(e){var t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},a.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var i=t[0];3===t[0].length&&(i=i.split("").map(function(e){return e+e}).join(""));var n=parseInt(i,16);return[n>>16&255,n>>8&255,255&n]},a.rgb.hcg=function(e){var t,i,n=e[0]/255,o=e[1]/255,r=e[2]/255,a=Math.max(Math.max(n,o),r),s=Math.min(Math.min(n,o),r),l=a-s;return t=l<1?s/(1-l):0,[360*((l<=0?0:a===n?(o-r)/l%6:a===o?2+(r-n)/l:4+(n-o)/l+4)/6%1),100*l,100*t]},a.hsl.hcg=function(e){var t=e[1]/100,i=e[2]/100,n=1,o=0;return(n=i<.5?2*t*i:2*t*(1-i))<1&&(o=(i-.5*n)/(1-n)),[e[0],100*n,100*o]},a.hsv.hcg=function(e){var t=e[1]/100,i=e[2]/100,n=t*i,o=0;return n<1&&(o=(i-n)/(1-n)),[e[0],100*n,100*o]},a.hcg.rgb=function(e){var t=e[0]/360,i=e[1]/100,n=e[2]/100;if(0===i)return[255*n,255*n,255*n];var o=[0,0,0],r=t%1*6,a=r%1,s=1-a,l=0;switch(Math.floor(r)){case 0:o[0]=1,o[1]=a,o[2]=0;break;case 1:o[0]=s,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=a;break;case 3:o[0]=0,o[1]=s,o[2]=1;break;case 4:o[0]=a,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=s}return l=(1-i)*n,[(i*o[0]+l)*255,(i*o[1]+l)*255,(i*o[2]+l)*255]},a.hcg.hsv=function(e){var t=e[1]/100,i=t+e[2]/100*(1-t),n=0;return i>0&&(n=t/i),[e[0],100*n,100*i]},a.hcg.hsl=function(e){var t=e[1]/100,i=e[2]/100*(1-t)+.5*t,n=0;return i>0&&i<.5?n=t/(2*i):i>=.5&&i<1&&(n=t/(2*(1-i))),[e[0],100*n,100*i]},a.hcg.hwb=function(e){var t=e[1]/100,i=t+e[2]/100*(1-t);return[e[0],(i-t)*100,(1-i)*100]},a.hwb.hcg=function(e){var t=e[1]/100,i=1-e[2]/100,n=i-t,o=0;return n<1&&(o=(i-n)/(1-n)),[e[0],100*n,100*o]},a.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},a.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},a.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},a.gray.hsl=a.gray.hsv=function(e){return[0,0,e[0]]},a.gray.hwb=function(e){return[0,100,e[0]]},a.gray.cmyk=function(e){return[0,0,0,e[0]]},a.gray.lab=function(e){return[e[0],0,0]},a.gray.hex=function(e){var t=255&Math.round(e[0]/100*255),i=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(i.length)+i},a.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}},18358:function(e,t,i){var n=i(44589),o=i(3314),r={};Object.keys(n).forEach(function(e){r[e]={},Object.defineProperty(r[e],"channels",{value:n[e].channels}),Object.defineProperty(r[e],"labels",{value:n[e].labels});var t=o(e);Object.keys(t).forEach(function(i){var n,o,a=t[i];r[e][i]=(n=function(e){if(null==e)return e;arguments.length>1&&(e=Array.prototype.slice.call(arguments));var t=a(e);if("object"==typeof t)for(var i=t.length,n=0;n<i;n++)t[n]=Math.round(t[n]);return t},"conversion"in a&&(n.conversion=a.conversion),n),r[e][i].raw=(o=function(e){return null==e?e:(arguments.length>1&&(e=Array.prototype.slice.call(arguments)),a(e))},"conversion"in a&&(o.conversion=a.conversion),o)})}),e.exports=r},3314:function(e,t,i){var n=i(44589);e.exports=function(e){for(var t=function(e){var t=function(){for(var e={},t=Object.keys(n),i=t.length,o=0;o<i;o++)e[t[o]]={distance:-1,parent:null};return e}(),i=[e];for(t[e].distance=0;i.length;)for(var o=i.pop(),r=Object.keys(n[o]),a=r.length,s=0;s<a;s++){var l=r[s],c=t[l];-1===c.distance&&(c.distance=t[o].distance+1,c.parent=o,i.unshift(l))}return t}(e),i={},o=Object.keys(t),r=o.length,a=0;a<r;a++){var s=o[a];null!==t[s].parent&&(i[s]=function(e,t){for(var i=[t[e].parent,e],o=n[t[e].parent][e],r=t[e].parent;t[r].parent;)i.unshift(t[r].parent),o=function(e,t){return function(i){return t(e(i))}}(n[t[r].parent][r],o),r=t[r].parent;return o.conversion=i,o}(s,t))}return i}},5101:function(e,t,i){let n=i(99419),o={};for(let e of Object.keys(n))o[n[e]]=e;let r={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(let t of(e.exports=r,Object.keys(r))){if(!("channels"in r[t]))throw Error("missing channels property: "+t);if(!("labels"in r[t]))throw Error("missing channel labels property: "+t);if(r[t].labels.length!==r[t].channels)throw Error("channel and label counts mismatch: "+t);let{channels:e,labels:i}=r[t];delete r[t].channels,delete r[t].labels,Object.defineProperty(r[t],"channels",{value:e}),Object.defineProperty(r[t],"labels",{value:i})}r.rgb.hsl=function(e){let t,i=e[0]/255,n=e[1]/255,o=e[2]/255,r=Math.min(i,n,o),a=Math.max(i,n,o),s=a-r;a===r?t=0:i===a?t=(n-o)/s:n===a?t=2+(o-i)/s:o===a&&(t=4+(i-n)/s),(t=Math.min(60*t,360))<0&&(t+=360);let l=(r+a)/2;return[t,100*(a===r?0:l<=.5?s/(a+r):s/(2-a-r)),100*l]},r.rgb.hsv=function(e){let t,i,n,o,r,a=e[0]/255,s=e[1]/255,l=e[2]/255,c=Math.max(a,s,l),d=c-Math.min(a,s,l),u=function(e){return(c-e)/6/d+.5};return 0===d?(o=0,r=0):(r=d/c,t=u(a),i=u(s),n=u(l),a===c?o=n-i:s===c?o=1/3+t-n:l===c&&(o=2/3+i-t),o<0?o+=1:o>1&&(o-=1)),[360*o,100*r,100*c]},r.rgb.hwb=function(e){let t=e[0],i=e[1],n=e[2];return[r.rgb.hsl(e)[0],1/255*Math.min(t,Math.min(i,n))*100,100*(n=1-1/255*Math.max(t,Math.max(i,n)))]},r.rgb.cmyk=function(e){let t=e[0]/255,i=e[1]/255,n=e[2]/255,o=Math.min(1-t,1-i,1-n);return[100*((1-t-o)/(1-o)||0),100*((1-i-o)/(1-o)||0),100*((1-n-o)/(1-o)||0),100*o]},r.rgb.keyword=function(e){let t,i=o[e];if(i)return i;let r=1/0;for(let i of Object.keys(n)){let o=n[i],a=(e[0]-o[0])**2+(e[1]-o[1])**2+(e[2]-o[2])**2;a<r&&(r=a,t=i)}return t},r.keyword.rgb=function(e){return n[e]},r.rgb.xyz=function(e){let t=e[0]/255,i=e[1]/255,n=e[2]/255;return[100*(.4124*(t=t>.04045?((t+.055)/1.055)**2.4:t/12.92)+.3576*(i=i>.04045?((i+.055)/1.055)**2.4:i/12.92)+.1805*(n=n>.04045?((n+.055)/1.055)**2.4:n/12.92)),100*(.2126*t+.7152*i+.0722*n),100*(.0193*t+.1192*i+.9505*n)]},r.rgb.lab=function(e){let t=r.rgb.xyz(e),i=t[0],n=t[1],o=t[2];return i/=95.047,n/=100,o/=108.883,[116*(n=n>.008856?n**(1/3):7.787*n+16/116)-16,500*((i=i>.008856?i**(1/3):7.787*i+16/116)-n),200*(n-(o=o>.008856?o**(1/3):7.787*o+16/116))]},r.hsl.rgb=function(e){let t,i,n,o=e[0]/360,r=e[1]/100,a=e[2]/100;if(0===r)return[n=255*a,n,n];t=a<.5?a*(1+r):a+r-a*r;let s=2*a-t,l=[0,0,0];for(let e=0;e<3;e++)(i=o+-(1/3*(e-1)))<0&&i++,i>1&&i--,n=6*i<1?s+(t-s)*6*i:2*i<1?t:3*i<2?s+(t-s)*(2/3-i)*6:s,l[e]=255*n;return l},r.hsl.hsv=function(e){let t=e[0],i=e[1]/100,n=e[2]/100,o=i,r=Math.max(n,.01);n*=2,i*=n<=1?n:2-n,o*=r<=1?r:2-r;let a=(n+i)/2;return[t,100*(0===n?2*o/(r+o):2*i/(n+i)),100*a]},r.hsv.rgb=function(e){let t=e[0]/60,i=e[1]/100,n=e[2]/100,o=Math.floor(t)%6,r=t-Math.floor(t),a=255*n*(1-i),s=255*n*(1-i*r),l=255*n*(1-i*(1-r));switch(n*=255,o){case 0:return[n,l,a];case 1:return[s,n,a];case 2:return[a,n,l];case 3:return[a,s,n];case 4:return[l,a,n];case 5:return[n,a,s]}},r.hsv.hsl=function(e){let t,i,n=e[0],o=e[1]/100,r=e[2]/100,a=Math.max(r,.01);i=(2-o)*r;let s=(2-o)*a;return[n,100*(t=(t=o*a/(s<=1?s:2-s))||0),100*(i/=2)]},r.hwb.rgb=function(e){let t,i,n,o,r=e[0]/360,a=e[1]/100,s=e[2]/100,l=a+s;l>1&&(a/=l,s/=l);let c=Math.floor(6*r),d=1-s;t=6*r-c,(1&c)!=0&&(t=1-t);let u=a+t*(d-a);switch(c){default:case 6:case 0:i=d,n=u,o=a;break;case 1:i=u,n=d,o=a;break;case 2:i=a,n=d,o=u;break;case 3:i=a,n=u,o=d;break;case 4:i=u,n=a,o=d;break;case 5:i=d,n=a,o=u}return[255*i,255*n,255*o]},r.cmyk.rgb=function(e){let t=e[0]/100,i=e[1]/100,n=e[2]/100,o=e[3]/100;return[255*(1-Math.min(1,t*(1-o)+o)),255*(1-Math.min(1,i*(1-o)+o)),255*(1-Math.min(1,n*(1-o)+o))]},r.xyz.rgb=function(e){let t,i,n,o=e[0]/100,r=e[1]/100,a=e[2]/100;return t=(t=3.2406*o+-1.5372*r+-.4986*a)>.0031308?1.055*t**(1/2.4)-.055:12.92*t,i=(i=-.9689*o+1.8758*r+.0415*a)>.0031308?1.055*i**(1/2.4)-.055:12.92*i,n=(n=.0557*o+-.204*r+1.057*a)>.0031308?1.055*n**(1/2.4)-.055:12.92*n,[255*(t=Math.min(Math.max(0,t),1)),255*(i=Math.min(Math.max(0,i),1)),255*(n=Math.min(Math.max(0,n),1))]},r.xyz.lab=function(e){let t=e[0],i=e[1],n=e[2];return t/=95.047,i/=100,n/=108.883,[116*(i=i>.008856?i**(1/3):7.787*i+16/116)-16,500*((t=t>.008856?t**(1/3):7.787*t+16/116)-i),200*(i-(n=n>.008856?n**(1/3):7.787*n+16/116))]},r.lab.xyz=function(e){let t,i,n,o=e[0],r=e[1],a=e[2];t=r/500+(i=(o+16)/116),n=i-a/200;let s=i**3,l=t**3,c=n**3;return i=(s>.008856?s:(i-16/116)/7.787)*100,[t=(l>.008856?l:(t-16/116)/7.787)*95.047,i,n=(c>.008856?c:(n-16/116)/7.787)*108.883]},r.lab.lch=function(e){let t,i=e[0],n=e[1],o=e[2];return(t=360*Math.atan2(o,n)/2/Math.PI)<0&&(t+=360),[i,Math.sqrt(n*n+o*o),t]},r.lch.lab=function(e){let t=e[0],i=e[1],n=e[2]/360*2*Math.PI;return[t,i*Math.cos(n),i*Math.sin(n)]},r.rgb.ansi16=function(e,t=null){let[i,n,o]=e,a=null===t?r.rgb.hsv(e)[2]:t;if(0===(a=Math.round(a/50)))return 30;let s=30+(Math.round(o/255)<<2|Math.round(n/255)<<1|Math.round(i/255));return 2===a&&(s+=60),s},r.hsv.ansi16=function(e){return r.rgb.ansi16(r.hsv.rgb(e),e[2])},r.rgb.ansi256=function(e){let t=e[0],i=e[1],n=e[2];return t===i&&i===n?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(i/255*5)+Math.round(n/255*5)},r.ansi16.rgb=function(e){let t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),[t=t/10.5*255,t,t];let i=(~~(e>50)+1)*.5;return[(1&t)*i*255,(t>>1&1)*i*255,(t>>2&1)*i*255]},r.ansi256.rgb=function(e){let t;if(e>=232){let t=(e-232)*10+8;return[t,t,t]}return[Math.floor((e-=16)/36)/5*255,Math.floor((t=e%36)/6)/5*255,t%6/5*255]},r.rgb.hex=function(e){let t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},r.hex.rgb=function(e){let t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let i=t[0];3===t[0].length&&(i=i.split("").map(e=>e+e).join(""));let n=parseInt(i,16);return[n>>16&255,n>>8&255,255&n]},r.rgb.hcg=function(e){let t,i,n=e[0]/255,o=e[1]/255,r=e[2]/255,a=Math.max(Math.max(n,o),r),s=Math.min(Math.min(n,o),r),l=a-s;return t=l<1?s/(1-l):0,[360*((l<=0?0:a===n?(o-r)/l%6:a===o?2+(r-n)/l:4+(n-o)/l)/6%1),100*l,100*t]},r.hsl.hcg=function(e){let t=e[1]/100,i=e[2]/100,n=i<.5?2*t*i:2*t*(1-i),o=0;return n<1&&(o=(i-.5*n)/(1-n)),[e[0],100*n,100*o]},r.hsv.hcg=function(e){let t=e[1]/100,i=e[2]/100,n=t*i,o=0;return n<1&&(o=(i-n)/(1-n)),[e[0],100*n,100*o]},r.hcg.rgb=function(e){let t=e[0]/360,i=e[1]/100,n=e[2]/100;if(0===i)return[255*n,255*n,255*n];let o=[0,0,0],r=t%1*6,a=r%1,s=1-a,l=0;switch(Math.floor(r)){case 0:o[0]=1,o[1]=a,o[2]=0;break;case 1:o[0]=s,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=a;break;case 3:o[0]=0,o[1]=s,o[2]=1;break;case 4:o[0]=a,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=s}return l=(1-i)*n,[(i*o[0]+l)*255,(i*o[1]+l)*255,(i*o[2]+l)*255]},r.hcg.hsv=function(e){let t=e[1]/100,i=t+e[2]/100*(1-t),n=0;return i>0&&(n=t/i),[e[0],100*n,100*i]},r.hcg.hsl=function(e){let t=e[1]/100,i=e[2]/100*(1-t)+.5*t,n=0;return i>0&&i<.5?n=t/(2*i):i>=.5&&i<1&&(n=t/(2*(1-i))),[e[0],100*n,100*i]},r.hcg.hwb=function(e){let t=e[1]/100,i=t+e[2]/100*(1-t);return[e[0],(i-t)*100,(1-i)*100]},r.hwb.hcg=function(e){let t=e[1]/100,i=1-e[2]/100,n=i-t,o=0;return n<1&&(o=(i-n)/(1-n)),[e[0],100*n,100*o]},r.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},r.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},r.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},r.gray.hsl=function(e){return[0,0,e[0]]},r.gray.hsv=r.gray.hsl,r.gray.hwb=function(e){return[0,100,e[0]]},r.gray.cmyk=function(e){return[0,0,0,e[0]]},r.gray.lab=function(e){return[e[0],0,0]},r.gray.hex=function(e){let t=255&Math.round(e[0]/100*255),i=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(i.length)+i},r.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}},2771:function(e,t,i){let n=i(5101),o=i(3153),r={};Object.keys(n).forEach(e=>{r[e]={},Object.defineProperty(r[e],"channels",{value:n[e].channels}),Object.defineProperty(r[e],"labels",{value:n[e].labels});let t=o(e);Object.keys(t).forEach(i=>{let n=t[i];r[e][i]=function(e){let t=function(...t){let i=t[0];if(null==i)return i;i.length>1&&(t=i);let n=e(t);if("object"==typeof n)for(let e=n.length,t=0;t<e;t++)n[t]=Math.round(n[t]);return n};return"conversion"in e&&(t.conversion=e.conversion),t}(n),r[e][i].raw=function(e){let t=function(...t){let i=t[0];return null==i?i:(i.length>1&&(t=i),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(n)})}),e.exports=r},3153:function(e,t,i){let n=i(5101);e.exports=function(e){let t=function(e){let t=function(){let e={},t=Object.keys(n);for(let i=t.length,n=0;n<i;n++)e[t[n]]={distance:-1,parent:null};return e}(),i=[e];for(t[e].distance=0;i.length;){let e=i.pop(),o=Object.keys(n[e]);for(let n=o.length,r=0;r<n;r++){let n=o[r],a=t[n];-1===a.distance&&(a.distance=t[e].distance+1,a.parent=e,i.unshift(n))}}return t}(e),i={},o=Object.keys(t);for(let e=o.length,r=0;r<e;r++){let e=o[r];null!==t[e].parent&&(i[e]=function(e,t){let i=[t[e].parent,e],o=n[t[e].parent][e],r=t[e].parent;for(;t[r].parent;)i.unshift(t[r].parent),o=function(e,t){return function(i){return t(e(i))}}(n[t[r].parent][r],o),r=t[r].parent;return o.conversion=i,o}(e,t))}return i}},13337:function(e){"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},99419:function(e){"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},2489:function(e,t,i){var n=i(99419),o=i(27933),r=Object.hasOwnProperty,a=Object.create(null);for(var s in n)r.call(n,s)&&(a[n[s]]=s);var l=e.exports={to:{},get:{}};function c(e,t,i){return Math.min(Math.max(t,e),i)}function d(e){var t=Math.round(e).toString(16).toUpperCase();return t.length<2?"0"+t:t}l.get=function(e){var t,i;switch(e.substring(0,3).toLowerCase()){case"hsl":t=l.get.hsl(e),i="hsl";break;case"hwb":t=l.get.hwb(e),i="hwb";break;default:t=l.get.rgb(e),i="rgb"}return t?{model:i,value:t}:null},l.get.rgb=function(e){if(!e)return null;var t,i,o,a=[0,0,0,1];if(t=e.match(/^#([a-f0-9]{6})([a-f0-9]{2})?$/i)){for(i=0,o=t[2],t=t[1];i<3;i++){var s=2*i;a[i]=parseInt(t.slice(s,s+2),16)}o&&(a[3]=parseInt(o,16)/255)}else if(t=e.match(/^#([a-f0-9]{3,4})$/i)){for(i=0,o=(t=t[1])[3];i<3;i++)a[i]=parseInt(t[i]+t[i],16);o&&(a[3]=parseInt(o+o,16)/255)}else if(t=e.match(/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)){for(i=0;i<3;i++)a[i]=parseInt(t[i+1],0);t[4]&&(t[5]?a[3]=.01*parseFloat(t[4]):a[3]=parseFloat(t[4]))}else if(t=e.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)){for(i=0;i<3;i++)a[i]=Math.round(2.55*parseFloat(t[i+1]));t[4]&&(t[5]?a[3]=.01*parseFloat(t[4]):a[3]=parseFloat(t[4]))}else if(!(t=e.match(/^(\w+)$/)))return null;else return"transparent"===t[1]?[0,0,0,0]:r.call(n,t[1])?((a=n[t[1]])[3]=1,a):null;for(i=0;i<3;i++)a[i]=c(a[i],0,255);return a[3]=c(a[3],0,1),a},l.get.hsl=function(e){if(!e)return null;var t=e.match(/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(t){var i=parseFloat(t[4]);return[(parseFloat(t[1])%360+360)%360,c(parseFloat(t[2]),0,100),c(parseFloat(t[3]),0,100),c(isNaN(i)?1:i,0,1)]}return null},l.get.hwb=function(e){if(!e)return null;var t=e.match(/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(t){var i=parseFloat(t[4]);return[(parseFloat(t[1])%360+360)%360,c(parseFloat(t[2]),0,100),c(parseFloat(t[3]),0,100),c(isNaN(i)?1:i,0,1)]}return null},l.to.hex=function(){var e=o(arguments);return"#"+d(e[0])+d(e[1])+d(e[2])+(e[3]<1?d(Math.round(255*e[3])):"")},l.to.rgb=function(){var e=o(arguments);return e.length<4||1===e[3]?"rgb("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+")":"rgba("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+", "+e[3]+")"},l.to.rgb.percent=function(){var e=o(arguments),t=Math.round(e[0]/255*100),i=Math.round(e[1]/255*100),n=Math.round(e[2]/255*100);return e.length<4||1===e[3]?"rgb("+t+"%, "+i+"%, "+n+"%)":"rgba("+t+"%, "+i+"%, "+n+"%, "+e[3]+")"},l.to.hsl=function(){var e=o(arguments);return e.length<4||1===e[3]?"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)":"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+e[3]+")"},l.to.hwb=function(){var e=o(arguments),t="";return e.length>=4&&1!==e[3]&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"},l.to.keyword=function(e){return a[e.slice(0,3)]}},74654:function(e,t,i){"use strict";var n=i(2489),o=i(18358),r=[].slice,a=["keyword","gray","hex"],s={};Object.keys(o).forEach(function(e){s[r.call(o[e].labels).sort().join("")]=e});var l={};function c(e,t){if(!(this instanceof c))return new c(e,t);if(t&&t in a&&(t=null),t&&!(t in o))throw Error("Unknown model: "+t);if(null==e)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(e instanceof c)this.model=e.model,this.color=e.color.slice(),this.valpha=e.valpha;else if("string"==typeof e){var i,d,u=n.get(e);if(null===u)throw Error("Unable to parse color from string: "+e);this.model=u.model,d=o[this.model].channels,this.color=u.value.slice(0,d),this.valpha="number"==typeof u.value[d]?u.value[d]:1}else if(e.length){this.model=t||"rgb",d=o[this.model].channels;var p=r.call(e,0,d);this.color=h(p,d),this.valpha="number"==typeof e[d]?e[d]:1}else if("number"==typeof e)e&=0xffffff,this.model="rgb",this.color=[e>>16&255,e>>8&255,255&e],this.valpha=1;else{this.valpha=1;var f=Object.keys(e);"alpha"in e&&(f.splice(f.indexOf("alpha"),1),this.valpha="number"==typeof e.alpha?e.alpha:0);var g=f.sort().join("");if(!(g in s))throw Error("Unable to parse color from object: "+JSON.stringify(e));this.model=s[g];var m=o[this.model].labels,v=[];for(i=0;i<m.length;i++)v.push(e[m[i]]);this.color=h(v)}if(l[this.model])for(i=0,d=o[this.model].channels;i<d;i++){var b=l[this.model][i];b&&(this.color[i]=b(this.color[i]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}function d(e,t,i){return(e=Array.isArray(e)?e:[e]).forEach(function(e){(l[e]||(l[e]=[]))[t]=i}),e=e[0],function(n){var o;return arguments.length?(i&&(n=i(n)),(o=this[e]()).color[t]=n):(o=this[e]().color[t],i&&(o=i(o))),o}}function u(e){return function(t){return Math.max(0,Math.min(e,t))}}function h(e,t){for(var i=0;i<t;i++)"number"!=typeof e[i]&&(e[i]=0);return e}c.prototype={toString:function(){return this.string()},toJSON:function(){return this[this.model]()},string:function(e){var t=this.model in n.to?this:this.rgb(),i=1===(t=t.round("number"==typeof e?e:1)).valpha?t.color:t.color.concat(this.valpha);return n.to[t.model](i)},percentString:function(e){var t=this.rgb().round("number"==typeof e?e:1),i=1===t.valpha?t.color:t.color.concat(this.valpha);return n.to.rgb.percent(i)},array:function(){return 1===this.valpha?this.color.slice():this.color.concat(this.valpha)},object:function(){for(var e={},t=o[this.model].channels,i=o[this.model].labels,n=0;n<t;n++)e[i[n]]=this.color[n];return 1!==this.valpha&&(e.alpha=this.valpha),e},unitArray:function(){var e=this.rgb().color;return e[0]/=255,e[1]/=255,e[2]/=255,1!==this.valpha&&e.push(this.valpha),e},unitObject:function(){var e=this.rgb().object();return e.r/=255,e.g/=255,e.b/=255,1!==this.valpha&&(e.alpha=this.valpha),e},round:function(e){var t;return e=Math.max(e||0,0),new c(this.color.map((t=e,function(e){return Number(e.toFixed(t))})).concat(this.valpha),this.model)},alpha:function(e){return arguments.length?new c(this.color.concat(Math.max(0,Math.min(1,e))),this.model):this.valpha},red:d("rgb",0,u(255)),green:d("rgb",1,u(255)),blue:d("rgb",2,u(255)),hue:d(["hsl","hsv","hsl","hwb","hcg"],0,function(e){return(e%360+360)%360}),saturationl:d("hsl",1,u(100)),lightness:d("hsl",2,u(100)),saturationv:d("hsv",1,u(100)),value:d("hsv",2,u(100)),chroma:d("hcg",1,u(100)),gray:d("hcg",2,u(100)),white:d("hwb",1,u(100)),wblack:d("hwb",2,u(100)),cyan:d("cmyk",0,u(100)),magenta:d("cmyk",1,u(100)),yellow:d("cmyk",2,u(100)),black:d("cmyk",3,u(100)),x:d("xyz",0,u(100)),y:d("xyz",1,u(100)),z:d("xyz",2,u(100)),l:d("lab",0,u(100)),a:d("lab",1),b:d("lab",2),keyword:function(e){return arguments.length?new c(e):o[this.model].keyword(this.color)},hex:function(e){return arguments.length?new c(e):n.to.hex(this.rgb().round().color)},rgbNumber:function(){var e=this.rgb().color;return(255&e[0])<<16|(255&e[1])<<8|255&e[2]},luminosity:function(){for(var e=this.rgb().color,t=[],i=0;i<e.length;i++){var n=e[i]/255;t[i]=n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4)}return .2126*t[0]+.7152*t[1]+.0722*t[2]},contrast:function(e){var t=this.luminosity(),i=e.luminosity();return t>i?(t+.05)/(i+.05):(i+.05)/(t+.05)},level:function(e){var t=this.contrast(e);return t>=7.1?"AAA":t>=4.5?"AA":""},isDark:function(){var e=this.rgb().color;return(299*e[0]+587*e[1]+114*e[2])/1e3<128},isLight:function(){return!this.isDark()},negate:function(){for(var e=this.rgb(),t=0;t<3;t++)e.color[t]=255-e.color[t];return e},lighten:function(e){var t=this.hsl();return t.color[2]+=t.color[2]*e,t},darken:function(e){var t=this.hsl();return t.color[2]-=t.color[2]*e,t},saturate:function(e){var t=this.hsl();return t.color[1]+=t.color[1]*e,t},desaturate:function(e){var t=this.hsl();return t.color[1]-=t.color[1]*e,t},whiten:function(e){var t=this.hwb();return t.color[1]+=t.color[1]*e,t},blacken:function(e){var t=this.hwb();return t.color[2]+=t.color[2]*e,t},grayscale:function(){var e=this.rgb().color,t=.3*e[0]+.59*e[1]+.11*e[2];return c.rgb(t,t,t)},fade:function(e){return this.alpha(this.valpha-this.valpha*e)},opaquer:function(e){return this.alpha(this.valpha+this.valpha*e)},rotate:function(e){var t=this.hsl(),i=t.color[0];return i=(i=(i+e)%360)<0?360+i:i,t.color[0]=i,t},mix:function(e,t){if(!e||!e.rgb)throw Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof e);var i=e.rgb(),n=this.rgb(),o=void 0===t?.5:t,r=2*o-1,a=i.alpha()-n.alpha(),s=((r*a==-1?r:(r+a)/(1+r*a))+1)/2,l=1-s;return c.rgb(s*i.red()+l*n.red(),s*i.green()+l*n.green(),s*i.blue()+l*n.blue(),i.alpha()*o+n.alpha()*(1-o))}},Object.keys(o).forEach(function(e){if(-1===a.indexOf(e)){var t=o[e].channels;c.prototype[e]=function(){if(this.model===e)return new c(this);if(arguments.length)return new c(arguments,e);var i,n="number"==typeof arguments[t]?t:this.valpha;return new c((Array.isArray(i=o[this.model][e].raw(this.color))?i:[i]).concat(n),e)},c[e]=function(i){return"number"==typeof i&&(i=h(r.call(arguments),t)),new c(i,e)}}}),e.exports=c},17175:function(e,t,i){e.exports=function(){"use strict";function e(e,t){return e(t={exports:{}},t.exports),t.exports}"undefined"!=typeof window?window:void 0!==i.g?i.g:"undefined"!=typeof self&&self;var t=e(function(e,t){e.exports=function(){function e(e,t){if(!e)return void console.warn("drag is missing elem!");n(e,t,"touchstart","touchmove","touchend"),n(e,t,"mousedown","mousemove","mouseup")}return e.xyslider=function(n){var o=i(n.class||"",n.parent),r=i("pointer",o);return i("shape shape1",r),i("shape shape2",r),i("bg bg1",o),i("bg bg2",o),e(o,t(n.cbs,r)),{background:o,pointer:r}},e.slider=function(n){var o=i(n.class,n.parent),r=i("pointer",o);return i("shape",r),i("bg",o),e(o,t(n.cbs,r)),{background:o,pointer:r}},e;function t(e,t){var i={};for(var n in e)i[n]=function(e){return function(i){i.pointer=t,e(i)}}(e[n]);return i}function i(e,t){var i,n,o,r;return i="div",n=e,o=t,r=document.createElement("div"),n&&(r.className=n),o.appendChild(r),r}function n(e,t,i,n,a){var c,d,u,h=(t=(c=t)?{begin:c.begin||s,change:c.change||s,end:c.end||s}:{begin:function(e){d={x:e.elem.offsetLeft,y:e.elem.offsetTop},u=e.cursor},change:function(e){(function(e,t,i){e.style[t]=i})(e.elem,"left",d.x+e.cursor.x-u.x+"px"),function(e,t,i){e.style[t]=i}(e.elem,"top",d.y+e.cursor.y-u.y+"px")},end:s}).begin,p=t.change,f=t.end;o(e,i,function(t){var i=function(e){var t=Array.prototype.slice,i=t.apply(arguments,[1]);return function(){return e.apply(null,i.concat(t.apply(arguments)))}}(l,p,e);o(document,n,i),o(document,a,function o(){r(document,n,i),r(document,a,o),l(f,e,t)}),l(h,e,t)})}function o(e,t,i){var n=!1;try{var o=Object.defineProperty({},"passive",{get:function(){n=!0}});window.addEventListener("testPassive",null,o),window.removeEventListener("testPassive",null,o)}catch(e){}e.addEventListener(t,i,!!n&&{passive:!1})}function r(e,t,i){e.removeEventListener(t,i,!1)}function a(e,t,i){e.style[t]=i}function s(){}function l(e,t,i){i.preventDefault();var n,o,r,a,s,l={x:(n=t.getBoundingClientRect()).left,y:n.top},c=t.clientWidth,d=t.clientHeight,u={x:(o=0,((r=i).touches?r.touches[r.touches.length-1]:r).clientX),y:(a=0,((s=i).touches?s.touches[s.touches.length-1]:s).clientY)},h=(u.x-l.x)/c,p=(u.y-l.y)/d;e({x:isNaN(h)?0:h,y:isNaN(p)?0:p,cursor:u,elem:t,e:i})}}()}),n=e(function(e,t){e.exports=function(){function e(t){if(Array.isArray(t)){if("string"==typeof t[0]&&"function"==typeof e[t[0]])return new e[t[0]](t.slice(1,t.length));if(4===t.length)return new e.RGB(t[0]/255,t[1]/255,t[2]/255,t[3]/255)}else if("string"==typeof t){var n=t.toLowerCase();e.namedColors[n]&&(t="#"+e.namedColors[n]),"transparent"===n&&(t="rgba(0,0,0,0)");var a=t.match(r);if(a){var s=a[1].toUpperCase(),l=i(a[8])?a[8]:parseFloat(a[8]),c="H"===s[0],d=a[3]?100:c?360:255,u=a[5]||c?100:255,h=a[7]||c?100:255;if(i(e[s]))throw Error("color."+s+" is not installed.");return new e[s](parseFloat(a[2])/d,parseFloat(a[4])/u,parseFloat(a[6])/h,l)}t.length<6&&(t=t.replace(/^#?([0-9a-f])([0-9a-f])([0-9a-f])$/i,"$1$1$2$2$3$3"));var p=t.match(/^#?([0-9a-f][0-9a-f])([0-9a-f][0-9a-f])([0-9a-f][0-9a-f])$/i);if(p)return new e.RGB(parseInt(p[1],16)/255,parseInt(p[2],16)/255,parseInt(p[3],16)/255);if(e.CMYK){var f=t.match(RegExp("^cmyk\\("+o.source+","+o.source+","+o.source+","+o.source+"\\)$","i"));if(f)return new e.CMYK(parseFloat(f[1])/100,parseFloat(f[2])/100,parseFloat(f[3])/100,parseFloat(f[4])/100)}}else if("object"==typeof t&&t.isColor)return t;return!1}var t=[],i=function(e){return void 0===e},n=/\s*(\.\d+|\d+(?:\.\d+)?)(%)?\s*/,o=/\s*(\.\d+|100|\d?\d(?:\.\d+)?)%\s*/,r=RegExp("^(rgb|hsl|hsv)a?\\("+n.source+","+n.source+","+n.source+"(?:,"+/\s*(\.\d+|\d+(?:\.\d+)?)\s*/.source+")?\\)$","i");e.namedColors={},e.installColorSpace=function(n,o,r){function a(t,i){var n={};for(var o in n[i.toLowerCase()]=function(){return this.rgb()[i.toLowerCase()]()},e[i].propertyNames.forEach(function(e){var t="black"===e?"k":e.charAt(0);n[e]=n[t]=function(t,n){return this[i.toLowerCase()]()[e](t,n)}}),n)n.hasOwnProperty(o)&&void 0===e[t].prototype[o]&&(e[t].prototype[o]=n[o])}e[n]=function(e){var t=Array.isArray(e)?e:arguments;o.forEach(function(e,i){var r=t[i];if("alpha"===e)this._alpha=isNaN(r)||r>1?1:r<0?0:r;else{if(isNaN(r))throw Error("["+n+"]: Invalid color: ("+o.join(",")+")");"hue"===e?this._hue=r<0?r-Math.floor(r):r%1:this["_"+e]=r<0?0:r>1?1:r}},this)},e[n].propertyNames=o;var s=e[n].prototype;for(var l in["valueOf","hex","hexa","css","cssa"].forEach(function(e){s[e]=s[e]||("RGB"===n?s.hex:function(){return this.rgb()[e]()})}),s.isColor=!0,s.equals=function(e,t){i(t)&&(t=1e-10),e=e[n.toLowerCase()]();for(var r=0;r<o.length;r+=1)if(Math.abs(this["_"+o[r]]-e["_"+o[r]])>t)return!1;return!0},s.toJSON=function(){return[n].concat(o.map(function(e){return this["_"+e]},this))},r)if(r.hasOwnProperty(l)){var c=l.match(/^from(.*)$/);c?e[c[1].toUpperCase()].prototype[n.toLowerCase()]=r[l]:s[l]=r[l]}return s[n.toLowerCase()]=function(){return this},s.toString=function(){return"["+n+" "+o.map(function(e){return this["_"+e]},this).join(", ")+"]"},o.forEach(function(e){var t="black"===e?"k":e.charAt(0);s[e]=s[t]=function(t,i){return void 0===t?this["_"+e]:new this.constructor(i?o.map(function(i){return this["_"+i]+(e===i?t:0)},this):o.map(function(i){return e===i?t:this["_"+i]},this))}}),t.forEach(function(e){a(n,e),a(e,n)}),t.push(n),e},e.pluginList=[],e.use=function(t){return -1===e.pluginList.indexOf(t)&&(this.pluginList.push(t),t(e)),e},e.installMethod=function(i,n){return t.forEach(function(t){e[t].prototype[i]=n}),this},e.installColorSpace("RGB",["red","green","blue","alpha"],{hex:function(){var e=(65536*Math.round(255*this._red)+256*Math.round(255*this._green)+Math.round(255*this._blue)).toString(16);return"#"+"00000".substr(0,6-e.length)+e},hexa:function(){var e=Math.round(255*this._alpha).toString(16);return"#"+"00".substr(0,2-e.length)+e+this.hex().substr(1,6)},css:function(){return"rgb("+Math.round(255*this._red)+","+Math.round(255*this._green)+","+Math.round(255*this._blue)+")"},cssa:function(){return"rgba("+Math.round(255*this._red)+","+Math.round(255*this._green)+","+Math.round(255*this._blue)+","+this._alpha+")"}});var a=function(e){e.installColorSpace("XYZ",["x","y","z","alpha"],{fromRgb:function(){var t=function(e){return e>.04045?Math.pow((e+.055)/1.055,2.4):e/12.92},i=t(this._red),n=t(this._green),o=t(this._blue);return new e.XYZ(.4124564*i+.3575761*n+.1804375*o,.2126729*i+.7151522*n+.072175*o,.0193339*i+.119192*n+.9503041*o,this._alpha)},rgb:function(){var t=this._x,i=this._y,n=this._z,o=function(e){return e>.0031308?1.055*Math.pow(e,1/2.4)-.055:12.92*e};return new e.RGB(o(3.2404542*t+-1.5371385*i+-.4985314*n),o(-.969266*t+1.8760108*i+.041556*n),o(.0556434*t+-.2040259*i+1.0572252*n),this._alpha)},lab:function(){var t=function(e){return e>.008856?Math.pow(e,1/3):7.787037*e+4/29},i=t(this._x/95.047),n=t(this._y/100),o=t(this._z/108.883);return new e.LAB(116*n-16,500*(i-n),200*(n-o),this._alpha)}})},s=function(e){e.installColorSpace("HSV",["hue","saturation","value","alpha"],{rgb:function(){var t,i,n,o=this._hue,r=this._saturation,a=this._value,s=Math.min(5,Math.floor(6*o)),l=6*o-s,c=a*(1-r),d=a*(1-l*r),u=a*(1-(1-l)*r);switch(s){case 0:t=a,i=u,n=c;break;case 1:t=d,i=a,n=c;break;case 2:t=c,i=a,n=u;break;case 3:t=c,i=d,n=a;break;case 4:t=u,i=c,n=a;break;case 5:t=a,i=c,n=d}return new e.RGB(t,i,n,this._alpha)},hsl:function(){var t,i=(2-this._saturation)*this._value,n=this._saturation*this._value,o=i<=1?i:2-i;return t=o<1e-9?0:n/o,new e.HSL(this._hue,t,i/2,this._alpha)},fromRgb:function(){var t,i=this._red,n=this._green,o=this._blue,r=Math.max(i,n,o),a=r-Math.min(i,n,o);if(0===a)t=0;else switch(r){case i:t=(n-o)/a/6+ +(n<o);break;case n:t=(o-i)/a/6+1/3;break;case o:t=(i-n)/a/6+2/3}return new e.HSV(t,0===r?0:a/r,r,this._alpha)}})},l=function(e){e.use(s),e.installColorSpace("HSL",["hue","saturation","lightness","alpha"],{hsv:function(){var t,i=2*this._lightness,n=this._saturation*(i<=1?i:2-i);return t=i+n<1e-9?0:2*n/(i+n),new e.HSV(this._hue,t,(i+n)/2,this._alpha)},rgb:function(){return this.hsv().rgb()},fromRgb:function(){return this.hsv().hsl()}})};return e.use(a).use(function(e){e.use(a),e.installColorSpace("LAB",["l","a","b","alpha"],{fromRgb:function(){return this.xyz().lab()},rgb:function(){return this.xyz().rgb()},xyz:function(){var t=function(e){var t=Math.pow(e,3);return t>.008856?t:(e-16/116)/7.87},i=(this._l+16)/116,n=this._a/500+i,o=i-this._b/200;return new e.XYZ(95.047*t(n),100*t(i),108.883*t(o),this._alpha)}})}).use(s).use(l).use(function(e){e.installColorSpace("CMYK",["cyan","magenta","yellow","black","alpha"],{rgb:function(){return new e.RGB(1-this._cyan*(1-this._black)-this._black,1-this._magenta*(1-this._black)-this._black,1-this._yellow*(1-this._black)-this._black,this._alpha)},fromRgb:function(){var t=this._red,i=this._green,n=this._blue,o=1-t,r=1-i,a=1-n,s=1;return t||i||n?(s=Math.min(o,Math.min(r,a)),o=(o-s)/(1-s),r=(r-s)/(1-s),a=(a-s)/(1-s)):s=1,new e.CMYK(o,r,a,s,this._alpha)}})}).use(function(e){e.namedColors={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgrey:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",grey:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"}}).use(function(e){e.installMethod("clearer",function(e){return this.alpha(isNaN(e)?-.1:-e,!0)})}).use(function(e){e.use(l),e.installMethod("darken",function(e){return this.lightness(isNaN(e)?-.1:-e,!0)})}).use(function(e){e.use(l),e.installMethod("desaturate",function(e){return this.saturation(isNaN(e)?-.1:-e,!0)})}).use(function(e){function t(){var t=this.rgb(),i=.3*t._red+.59*t._green+.11*t._blue;return new e.RGB(i,i,i,t._alpha)}e.installMethod("greyscale",t).installMethod("grayscale",t)}).use(function(e){e.use(l),e.installMethod("lighten",function(e){return this.lightness(isNaN(e)?.1:e,!0)})}).use(function(e){e.installMethod("mix",function(t,i){t=e(t).rgb();var n=2*(i=1-(isNaN(i)?.5:i))-1,o=this._alpha-t._alpha,r=((n*o==-1?n:(n+o)/(1+n*o))+1)/2,a=1-r,s=this.rgb();return new e.RGB(s._red*r+t._red*a,s._green*r+t._green*a,s._blue*r+t._blue*a,s._alpha*i+t._alpha*(1-i))})}).use(function(e){e.installMethod("negate",function(){var t=this.rgb();return new e.RGB(1-t._red,1-t._green,1-t._blue,this._alpha)})}).use(function(e){e.installMethod("opaquer",function(e){return this.alpha(isNaN(e)?.1:e,!0)})}).use(function(e){e.use(l),e.installMethod("rotate",function(e){return this.hue((e||0)/360,!0)})}).use(function(e){e.use(l),e.installMethod("saturate",function(e){return this.saturation(isNaN(e)?.1:e,!0)})}).use(function(e){e.installMethod("toAlpha",function(e){var t=this.rgb(),i=e(e).rgb(),n=new e.RGB(0,0,0,t._alpha),o=["_red","_green","_blue"];return o.forEach(function(e){t[e]<1e-10?n[e]=t[e]:t[e]>i[e]?n[e]=(t[e]-i[e])/(1-i[e]):t[e]>i[e]?n[e]=(i[e]-t[e])/i[e]:n[e]=0}),n._red>n._green?n._red>n._blue?t._alpha=n._red:t._alpha=n._blue:n._green>n._blue?t._alpha=n._green:t._alpha=n._blue,t._alpha<1e-10||(o.forEach(function(e){t[e]=(t[e]-i[e])/t._alpha+i[e]}),t._alpha*=n._alpha),t})})}()}),o=function(e){var t=Array.prototype.slice,i=t.apply(arguments,[1]);return function(){return e.apply(null,i.concat(t.apply(arguments)))}}(r,"div");function r(e,t,i){var n=document.createElement(e);return n.className=t,i.appendChild(n),n}function a(e,t,i){return Math.min(Math.max(e,t),i)}var s={clamp:a,e:r,div:o,labelInput:function(e,t,i,n){var a,s,l,c,d,u,h,p,f,g="colorPickerInput"+Math.floor(1001*Math.random()),m=o(e,i);return{label:(a=t,s=m,l=g,(c=r("label","",s)).innerHTML=a,l&&c.setAttribute("for",l),c),input:(d="text",u=m,h=n,p=g,(f=r("input","",u)).type=d,h&&(f.maxLength=h),p&&f.setAttribute("id",p),h&&(f.maxLength=h),f)}},X:function(e,t){e.style.left=a(100*t,0,100)+"%"},Y:function(e,t){e.style.top=a(100*t,0,100)+"%"},BG:function(e,t){e.style.background=t}},l={currentColor:function(e){var t=s.div("currentColorContainer",e),i=s.div("currentColor",t);return{change:function(e){s.BG(i,e.cssa())}}},fields:function(e,t,i){var n=i.space,o=i.limit||255,r=i.fix>=0?i.fix:0,a=(""+o).length+r;a=r?a+1:a;var l=n.split(""),c="A"==n[n.length-1];if(0>["RGB","HSL","HSV","CMYK"].indexOf(n=c?n.slice(0,-1):n))return console.warn("Invalid field names",n);var d=s.div("colorFields",e),u=l.map(function(e){e=e.toLowerCase();var t=s.labelInput("color "+e,e,d,a);return t.input.onblur=h,t.input.onkeydown=p,t.input.onkeyup=f,{name:e,e:t}});function h(){t.done()}function p(e){!(e.ctrlKey||e.altKey)&&/^[a-zA-Z]$/.test(e.key)&&e.preventDefault()}function f(){var e=[n];u.forEach(function(t){e.push(t.e.input.value/o)}),c||e.push(t.getAlpha()),t.set(e)}return{change:function(e){u.forEach(function(t){t.e.input.value=(e[t.name]()*o).toFixed(r)})}}},hex:function(e,t,i){var n=s.labelInput("hex",i.label||"",e,7);return n.input.value="#",n.input.onkeyup=function(e){var i=e.keyCode||e.which,n=e.target.value;n=function(e,t,i){for(var n=e,o=e.length;o<7;o++)n+="0";return n}(n="#"==n[0]?n:"#"+n,7,"0"),13==i&&t.set(n)},n.input.onblur=function(e){t.set(e.target.value),t.done()},{change:function(e){n.input.value="#"==n.input.value[0]?"#":"",n.input.value+=e.hex().slice(1)}}},alpha:function(e,i){var n=t.slider({parent:e,class:"oned alpha",cbs:{begin:o,change:o,end:function(){i.done()}}});function o(e){var t=s.clamp(e.y,0,1);s.Y(e.pointer,t),i.setAlpha(1-t)}return{change:function(e){s.Y(n.pointer,1-e.alpha())}}},close:function(e,t,i){var n=s.e("a",i.class||"close",e);n.href="#",n.innerHTML=i.label||"Close",n.onclick=function(e){e.preventDefault(),t.hide()}}},c=function(e){var i,n;return(i=p,(n=[e.init,e.xy,e.z]).map(i).filter(f).length!=n.length)?console.warn("colorjoe: missing cb"):function(i,n,o){return function(e){if(!e.e)return console.warn("colorjoe: missing element");var i="string"==typeof e.e?document.getElementById(e.e):e.e;i.className="colorPicker";var n=e.cbs,o=t.xyslider({parent:i,class:"twod",cbs:{begin:r,change:r,end:m}});function r(e){p=n.xy(p,{x:s.clamp(e.x,0,1),y:s.clamp(e.y,0,1)},o,a),g()}var a=t.slider({parent:i,class:"oned",cbs:{begin:l,change:l,end:m}});function l(e){p=n.z(p,s.clamp(e.y,0,1),o,a),g()}var d=u(e.color),p=n.init(d,o,a),f={change:[],done:[]};function g(e){e=h(e)?e:[];for(var t,i=f.change,n=0,o=i.length;n<o;n++)t=i[n],-1==e.indexOf(t.name)&&t.fn(p)}function m(){if(!d.equals(p)){for(var e=0,t=f.done.length;e<t;e++)f.done[e].fn(p);d=p}}var v={e:i,done:function(){return m(),this},update:function(e){return g(e),this},hide:function(){return i.style.display="none",this},show:function(){return i.style.display="",this},get:function(){return p},set:function(e){var t=this.get();return p=n.init(u(e),o,a),t.equals(p)||this.update(),this},getAlpha:function(){return p.alpha()},setAlpha:function(e){return p=p.alpha(e),this.update(),this},on:function(e,t,i){return"change"==e||"done"==e?f[e].push({name:i,fn:t}):console.warn('Passed invalid evt name "'+e+'" to colorjoe.on'),this},removeAllListeners:function(e){if(e)f[e]=[];else for(var t in f)f[t]=[];return this}};return function(e,t,i){if(i){var n,o,r,a=s.div("extras",e);i.forEach(function(e,i){h(e)?(o=e[0],r=e.length>1?e[1]:{}):(o=e,r={});var s,l,d,u=o in c.extras?c.extras[o]:null;if(u){for(var p in n=u(a,(s=t,l=o+i,(d=function(e){var t={};for(var i in e)t[i]=e[i];return t}(s)).update=function(){s.update([l])},d),r))t.on(p,n[p],o)}})}}(i,v,e.extras),g(),v}({e:i,color:n,cbs:e,extras:o})}};for(var d in c.rgb=c({init:function(e,t,i){var o=n(e).hsv();return this.xy(o,{x:o.saturation(),y:1-o.value()},t,i),this.z(o,o.hue(),t,i),o},xy:function(e,t,i){return s.X(i.pointer,t.x),s.Y(i.pointer,t.y),e.saturation(t.x).value(1-t.y)},z:function(e,t,i,o){var r,a;return s.Y(o.pointer,t),r=i.background,a=t,s.BG(r,new n.HSV(a,1,1).cssa()),e.hue(t)}}),c.hsl=c({init:function(e,t,i){var o=n(e).hsl();return this.xy(o,{x:o.hue(),y:1-o.saturation()},t,i),this.z(o,1-o.lightness(),t,i),o},xy:function(e,t,i,n){return s.X(i.pointer,t.x),s.Y(i.pointer,t.y),s.BG(n.background,e.css()),e.hue(t.x).saturation(1-t.y)},z:function(e,t,i,n){return s.Y(n.pointer,t),e.lightness(1-t)}}),c.extras={},c.registerExtra=function(e,t){e in c.extras&&console.warn('Extra "'+e+'"has been registered already!'),c.extras[e]=t},l)c.registerExtra(d,l[d]);function u(e){if(void 0===e)return n("#000");if(e.isColor)return e;var t=n(e);return t||(void 0!==e&&console.warn("Passed invalid color to colorjoe, using black instead"),n("#000"))}function h(e){return"[object Array]"===Object.prototype.toString.call(e)}function p(e){return"function"==typeof e}function f(e){return e}return c}()},7847:function(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>s});var n=i(31627),o=i.n(n),r=i(96384),a=i.n(r)()(o());a.push([e.id,".DriveRoundButton_root_dGCcY{background-image:var(--c3ae8810);background-size:cover;width:var(--6a62a301);--v-button-border-width:0;--v-button-size-normal-padding__text:0;--v-button-size-normal-height:var(--6fba7968);--v-button-action-bkg-color--normal:var(--80b9975a);--v-button-action-bkg-color--hover:var(--80b9975a);--v-button-action-bkg-color--active:var(--80b9975a);--v-button-action-bkg-color--disabled:var(--80b9975a);--v-button-action-color--normal:var(--084bec0f);--v-button-action-color--hover:var(--084bec0f);--v-button-action-color--active:var(--084bec0f);--v-button-action-color--disabled:var(--084bec0f)}",""]),a.locals={root:"DriveRoundButton_root_dGCcY"};let s=a},26990:function(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>s});var n=i(31627),o=i.n(n),r=i(96384),a=i.n(r)()(o());a.push([e.id,".ActionButton_action_Dx9eE.ActionButton_action_Dx9eE{color:#30a1f2;--v-button-size-normal-height:20px;--v-button-border-width:0px}.ActionButton_action_Dx9eE.ActionButton_action_Dx9eE:hover{color:#0b8be5}.ActionButton_action_Dx9eE.ActionButton_action_Dx9eE:active{color:#007ed9}",""]),a.locals={action:"ActionButton_action_Dx9eE"};let s=a},14337:function(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>s});var n=i(31627),o=i.n(n),r=i(96384),a=i.n(r)()(o());a.push([e.id,".AvatarMoreButton_btn_wvmk1{--v-button-size-normal-height:24px;background-clip:initial;background-image:var(--d-assets-collaborator-more-1x,none);background-origin:border-box;background-position:0 0;background-size:var(--d-assets-collaborator-more__size,auto);width:var(--v-button-size-normal-height);--v-button-grey-bkg-color--normal:#fff;--v-button-grey-bkg-color--hover:#fff;--v-button-grey-bkg-color--active:#fff;--v-button-grey-border-color--normal:#d8dadc;--v-button-grey-border-color--hover:#d8dadc;--v-button-grey-border-color--active:#d8dadc}.AvatarMoreButton_btn_wvmk1:hover{background-position-y:-24px}.AvatarMoreButton_btn_wvmk1:active,.AvatarMoreButton_btn_wvmk1.v-btn-dropdown-shown{background-position-y:-48px;--v-button-grey-border-color--active:var(--d-theme-main-color);--v-button-grey-bkg-color--active:var(--d-theme-main-color)}.AvatarMoreButton_btn_wvmk1.AvatarMoreButton_disabled_lRUuX{background-position-y:-72px}.AvatarMoreButton_item_gOC0L{height:36px;padding:0 32px 0 40px}.AvatarMoreButton_avatar_TpxQK{left:8px;position:absolute;top:6px}.AvatarMoreButton_title_jge6R{font-size:13px;line-height:36px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@media (min-resolution:144dpi){.AvatarMoreButton_btn_wvmk1{background-image:var(--d-assets-collaborator-more-2x,none)}}",""]),a.locals={btn:"AvatarMoreButton_btn_wvmk1",disabled:"AvatarMoreButton_disabled_lRUuX",item:"AvatarMoreButton_item_gOC0L",avatar:"AvatarMoreButton_avatar_TpxQK",title:"AvatarMoreButton_title_jge6R"};let s=a},84243:function(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>s});var n=i(31627),o=i.n(n),r=i(96384),a=i.n(r)()(o());a.push([e.id,".DropdownMenu_root_Vi_BQ{background:#fff;border:1px solid #d8dadc;border-radius:3px;box-shadow:0 2px 8px #00000040}",""]),a.locals={root:"DropdownMenu_root_Vi_BQ"};let s=a},58597:function(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>s});var n=i(31627),o=i.n(n),r=i(96384),a=i.n(r)()(o());a.push([e.id,".IconButton_btn_jXEOt .IconButton_icon_kneya{background-position-y:calc(0em - var(--icon-index))}.IconButton_btn_jXEOt.v-btn-disabled .IconButton_icon_kneya{background-position-y:calc(-3em - var(--icon-index))}.IconButton_btn_jXEOt:not(.v-btn-disabled):active .IconButton_icon_kneya{background-position-y:calc(-2em - var(--icon-index))}.IconButton_btn_jXEOt:not(.v-btn-disabled):hover .IconButton_icon_kneya{background-position-y:calc(-1em - var(--icon-index))}",""]),a.locals={btn:"IconButton_btn_jXEOt",icon:"IconButton_icon_kneya"};let s=a},22789:function(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>s});var n=i(31627),o=i.n(n),r=i(96384),a=i.n(r)()(o());a.push([e.id,".OnlineUser_root_Gnx3K{margin:2px}",""]),a.locals={root:"OnlineUser_root_Gnx3K"};let s=a},74416:function(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>s});var n=i(31627),o=i.n(n),r=i(96384),a=i.n(r)()(o());a.push([e.id,'.RightSidePanelResizer_resizer_FV9fx{cursor:col-resize;left:-2px;width:5px;z-index:9009}.RightSidePanelResizer_resizer_FV9fx,.RightSidePanelResizer_resizer_FV9fx:hover:after{height:100%;position:absolute;top:0}.RightSidePanelResizer_resizer_FV9fx:hover:after{background-color:var(--d-theme-main-color);content:"";left:1px;width:3px}',""]),a.locals={resizer:"RightSidePanelResizer_resizer_FV9fx"};let s=a},1709:function(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>s});var n=i(31627),o=i.n(n),r=i(96384),a=i.n(r)()(o());a.push([e.id,".AdjustmentButton_button_zHVSI{--v-button-size-normal-height:20px;--v-button-size-normal-padding__text:0 8px;--v-button-border-width:0;--v-button-size-normal-gap__text:0;border-radius:100px;--v-button-grey-bkg-color--normal:#f6f8fa;--v-button-grey-bkg-color--hover:#eceef0;--v-button-grey-bkg-color--active:#eceef0}.AdjustmentButton_icon_nVyNB{order:1}",""]),a.locals={button:"AdjustmentButton_button_zHVSI",icon:"AdjustmentButton_icon_nVyNB"};let s=a},89008:function(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>s});var n=i(31627),o=i.n(n),r=i(96384),a=i.n(r)()(o());a.push([e.id,".AdjustmentButtonList_list_ETEEu{gap:6px}.AdjustmentButtonList_list_ETEEu .v-overflow-item{flex:none}",""]),a.locals={list:"AdjustmentButtonList_list_ETEEu"};let s=a},19047:function(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>s});var n=i(31627),o=i.n(n),r=i(96384),a=i.n(r)()(o());a.push([e.id,".AdjustmentOverflowButton_button_pohYO{--v-button-size-normal-height:20px;--v-button-padding__text--round-icon:2px;--v-button-border-width:0;--v-button-grey-bkg-color--normal:#f6f8fa;--v-button-grey-bkg-color--hover:#eceef0;--v-button-grey-bkg-color--active:#eceef0}",""]),a.locals={button:"AdjustmentOverflowButton_button_pohYO"};let s=a},11885:function(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>s});var n=i(31627),o=i.n(n),r=i(96384),a=i.n(r)()(o());a.push([e.id,".FileExtractFailWindow_text_QF6bf{white-space:pre-wrap;word-wrap:break-word;overflow-wrap:break-word}",""]),a.locals={text:"FileExtractFailWindow_text_QF6bf"};let s=a},53379:function(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>s});var n=i(31627),o=i.n(n),r=i(96384),a=i.n(r)()(o());a.push([e.id,".InputArea_editor_QGSQd,.InputArea_textarea_Km8qr{background-color:#fff;border:1px solid #d8dadc;border-radius:3px;box-sizing:border-box;height:100%;padding:8px 9px}.InputArea_editor_QGSQd .v-scrollbar,.InputArea_textarea_Km8qr .v-scrollbar{width:calc(100% + 9px)}.InputArea_editor_QGSQd .v-scrollbar-inner,.InputArea_textarea_Km8qr .v-scrollbar-inner{padding-right:9px}.has-error .InputArea_editor_QGSQd{background-color:#fff2f4;border-color:#fa899c}.InputArea_editor-header_LJt6s{gap:4px}.InputArea_editor-header_LJt6s,.InputArea_textarea_Km8qr{display:flex;flex-direction:column}.InputArea_textarea_Km8qr{background-color:#fff;border:1px solid #d8dadc;border-radius:3px;min-height:0}.has-error .InputArea_textarea_Km8qr{background-color:#fff2f4;border-color:#fa899c}.InputArea_textarea-scrollbar_d2nQJ{flex:1}.InputArea_textarea-scrollbar-inner_ySuOo{display:flex;min-height:100%}textarea.InputArea_textarea-input_WGjdC{background:#0000;border:none;box-sizing:border-box;color:#2e3032;display:block;font-size:13px;line-height:20px;padding:0;width:100%}textarea.InputArea_textarea-input_WGjdC::placeholder{color:#babcbe}.InputArea_submit-button_LVWMn{align-self:flex-end;padding:3px 0}.InputArea_query-button_LNgE4{--v-button-grey-bkg-color__split--normal:#fff;--v-button-grey-bkg-color__split--hover:#fff;--v-button-grey-bkg-color__split--active:#fff;--v-button-grey-bkg-color--normal:#f6f8fa;--v-button-grey-bkg-color--hover:#eceef0;--v-button-grey-bkg-color--active:#eceef0;--v-button-border-radius:100px;--v-button-border-width:0;--v-button-padding__dropdown:0 6px 0 0}.InputArea_query-button_LNgE4 .v-btn-text .v-btn-content{font-size:12px}",""]),a.locals={editor:"InputArea_editor_QGSQd",textarea:"InputArea_textarea_Km8qr","editor-header":"InputArea_editor-header_LJt6s",editorHeader:"InputArea_editor-header_LJt6s","textarea-scrollbar":"InputArea_textarea-scrollbar_d2nQJ",textareaScrollbar:"InputArea_textarea-scrollbar_d2nQJ","textarea-scrollbar-inner":"InputArea_textarea-scrollbar-inner_ySuOo",textareaScrollbarInner:"InputArea_textarea-scrollbar-inner_ySuOo","textarea-input":"InputArea_textarea-input_WGjdC",textareaInput:"InputArea_textarea-input_WGjdC","submit-button":"InputArea_submit-button_LVWMn",submitButton:"InputArea_submit-button_LVWMn","query-button":"InputArea_query-button_LNgE4",queryButton:"InputArea_query-button_LNgE4"};let s=a},81620:function(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>s});var n=i(31627),o=i.n(n),r=i(96384),a=i.n(r)()(o());a.push([e.id,'.SelectionInfo_root_B4i3c{align-items:center;background:rgba(var(--d-theme-main-color-decimal,""),.1);border-radius:4px;color:#2e3032;display:flex;justify-content:center;padding:4px 6px}.SelectionInfo_text_Wiyu1{flex:auto;font-size:12px;line-height:20px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}',""]),a.locals={root:"SelectionInfo_root_B4i3c",text:"SelectionInfo_text_Wiyu1"};let s=a},76858:function(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>s});var n=i(31627),o=i.n(n),r=i(96384),a=i.n(r)()(o());a.push([e.id,".SubmitButton_button_Co5mo.v-btn.v-btn-styleless{background-color:var(--d-theme-main-color);border-radius:50%;height:24px;width:24px}.SubmitButton_button_Co5mo.v-btn.v-btn-styleless.v-btn-disabled{background-color:#56585a33}.SubmitButton_button_Co5mo.v-btn.v-btn-styleless.v-btn-disabled .v-btn-text{opacity:1}",""]),a.locals={button:"SubmitButton_button_Co5mo"};let s=a},50190:function(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>s});var n=i(31627),o=i.n(n),r=i(96384),a=i.n(r)()(o());a.push([e.id,".ChartPanel_body_SMm4A{height:100%;padding-left:16px;padding-right:16px}.ChartPanel_tabs_vGdic.v-layout .v-tabs-tab-content.v-layout{padding:0;width:calc(100% + 16px)}.ChartPanel_tab-pane_R2Stw .v-scrollbar .v-scrollbar-view .v-scrollbar-inner{height:100%}.ChartPanel_tab-pane-body_yy_kv{width:calc(100% - 16px)}.ChartPanel_center_J7HHS{align-items:center;color:#7e8082;display:flex;font-size:var(--v-font-size-tier1);height:100%;justify-content:center;text-align:center}",""]),a.locals={body:"ChartPanel_body_SMm4A",tabs:"ChartPanel_tabs_vGdic","tab-pane":"ChartPanel_tab-pane_R2Stw",tabPane:"ChartPanel_tab-pane_R2Stw","tab-pane-body":"ChartPanel_tab-pane-body_yy_kv",tabPaneBody:"ChartPanel_tab-pane-body_yy_kv",center:"ChartPanel_center_J7HHS"};let s=a},46604:function(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>s});var n=i(31627),o=i.n(n),r=i(96384),a=i.n(r)()(o());a.push([e.id,".CustomPanel_root_Iyapo{padding-bottom:8px}.CustomPanel_center_ZkneL{align-items:center;color:#7e8082;display:flex;font-size:var(--v-font-size-tier1);height:100%;justify-content:center;text-align:center}",""]),a.locals={root:"CustomPanel_root_Iyapo",center:"CustomPanel_center_ZkneL"};let s=a},61669:function(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>s});var n=i(31627),o=i.n(n),r=i(96384),a=i.n(r)()(o());a.push([e.id,".GridlineFieldset_form_fQr8i.v-layout{padding:0 4px}",""]),a.locals={form:"GridlineFieldset_form_fQr8i"};let s=a},97542:function(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>s});var n=i(31627),o=i.n(n),r=i(96384),a=i.n(r)()(o());a.push([e.id,".LegendFieldset_form_xuLgN.v-layout{padding:0 4px}",""]),a.locals={form:"LegendFieldset_form_xuLgN"};let s=a},68652:function(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>s});var n=i(31627),o=i.n(n),r=i(96384),a=i.n(r)()(o());a.push([e.id,".PieFieldset_form_wqUXk.v-layout{padding:0 4px}",""]),a.locals={form:"PieFieldset_form_wqUXk"};let s=a},93228:function(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>s});var n=i(31627),o=i.n(n),r=i(96384),a=i.n(r)()(o());a.push([e.id,".PlotSizeFieldset_form_D2Oof.v-layout{padding:0 4px}",""]),a.locals={form:"PlotSizeFieldset_form_D2Oof"};let s=a},92138:function(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>s});var n=i(31627),o=i.n(n),r=i(96384),a=i.n(r)()(o());a.push([e.id,".SeriesFieldset_form_W7QlI.v-layout{padding:0 4px}.SeriesFieldset_line-solid_b_jSl{background-position:6px 3px}.SeriesFieldset_line-dash_VzmIE,.SeriesFieldset_line-solid_b_jSl{background-image:url(webman/3rdparty/Spreadsheet/images/_Asset/1x/_Common/menu_border_style.png?aa169008);background-repeat:no-repeat;height:30px;pointer-events:none;width:110px}.SeriesFieldset_line-dash_VzmIE{background-position:6px -21px}.SeriesFieldset_line-dot_HCZYz{background-image:url(webman/3rdparty/Spreadsheet/images/_Asset/1x/_Common/menu_border_style.png?aa169008);background-position:6px -45px;background-repeat:no-repeat;height:30px;pointer-events:none;width:110px}.SeriesFieldset_point-none_hwgC8{background-position:0 0}.SeriesFieldset_point-circle_NWvmO,.SeriesFieldset_point-none_hwgC8{background-image:url(webman/3rdparty/Spreadsheet/images/_Asset/1x/_Common/menu_point_style.png?e820c170);display:block;height:24px;margin-right:4px;pointer-events:none;width:24px}.SeriesFieldset_point-circle_NWvmO{background-position:0 -24px}.SeriesFieldset_point-triangle_Xm_UE{background-position:0 -48px}.SeriesFieldset_point-square_U0ZOk,.SeriesFieldset_point-triangle_Xm_UE{background-image:url(webman/3rdparty/Spreadsheet/images/_Asset/1x/_Common/menu_point_style.png?e820c170);display:block;height:24px;margin-right:4px;pointer-events:none;width:24px}.SeriesFieldset_point-square_U0ZOk{background-position:0 -72px}.SeriesFieldset_point-diamond_C9GLO{background-image:url(webman/3rdparty/Spreadsheet/images/_Asset/1x/_Common/menu_point_style.png?e820c170);background-position:0 -96px;display:block;height:24px;margin-right:4px;pointer-events:none;width:24px}@media (min-resolution:144dpi){.SeriesFieldset_line-dash_VzmIE,.SeriesFieldset_line-dot_HCZYz,.SeriesFieldset_line-solid_b_jSl{background-image:url(webman/3rdparty/Spreadsheet/images/_Asset/2x/_Common/menu_border_style.png?cd1dc991);background-size:90px 72px}.SeriesFieldset_point-circle_NWvmO,.SeriesFieldset_point-diamond_C9GLO,.SeriesFieldset_point-none_hwgC8,.SeriesFieldset_point-square_U0ZOk,.SeriesFieldset_point-triangle_Xm_UE{background-image:url(webman/3rdparty/Spreadsheet/images/_Asset/2x/_Common/menu_point_style.png?af6a144b);background-size:24px 120px}}",""]),a.locals={form:"SeriesFieldset_form_W7QlI","line-solid":"SeriesFieldset_line-solid_b_jSl",lineSolid:"SeriesFieldset_line-solid_b_jSl","line-dash":"SeriesFieldset_line-dash_VzmIE",lineDash:"SeriesFieldset_line-dash_VzmIE","line-dot":"SeriesFieldset_line-dot_HCZYz",lineDot:"SeriesFieldset_line-dot_HCZYz","point-none":"SeriesFieldset_point-none_hwgC8",pointNone:"SeriesFieldset_point-none_hwgC8","point-circle":"SeriesFieldset_point-circle_NWvmO",pointCircle:"SeriesFieldset_point-circle_NWvmO","point-triangle":"SeriesFieldset_point-triangle_Xm_UE",pointTriangle:"SeriesFieldset_point-triangle_Xm_UE","point-square":"SeriesFieldset_point-square_U0ZOk",pointSquare:"SeriesFieldset_point-square_U0ZOk","point-diamond":"SeriesFieldset_point-diamond_C9GLO",pointDiamond:"SeriesFieldset_point-diamond_C9GLO"};let s=a},38223:function(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>s});var n=i(31627),o=i.n(n),r=i(96384),a=i.n(r)()(o());a.push([e.id,".StyleFieldset_form_dPRym.v-layout{padding:0 4px}",""]),a.locals={form:"StyleFieldset_form_dPRym"};let s=a},45312:function(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>s});var n=i(31627),o=i.n(n),r=i(96384),a=i.n(r)()(o());a.push([e.id,".TitleFieldset_form_oLVZg.v-layout{padding:0 4px}",""]),a.locals={form:"TitleFieldset_form_oLVZg"};let s=a},98412:function(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>s});var n=i(31627),o=i.n(n),r=i(96384),a=i.n(r)()(o());a.push([e.id,".AxisForm_form_ggRYx.v-layout{padding:0 4px}",""]),a.locals={form:"AxisForm_form_ggRYx"};let s=a},79190:function(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>s});var n=i(31627),o=i.n(n),r=i(96384),a=i.n(r)()(o());a.push([e.id,".CustomSelect_tick-icon_znlWL{background-image:var(--d-assets-dropdown-menu-tick-1x,none);background-size:var(--d-assets-dropdown-menu-tick__size,auto);flex:none;height:24px;margin-right:4px;width:24px}.CustomSelect_option-icon_m846S{flex:none}.CustomSelect_hidden_vnns2{visibility:hidden}.CustomSelect_text_u3lgi{padding-right:32px}@media (min-resolution:144dpi){.CustomSelect_tick-icon_znlWL{background-image:var(--d-assets-dropdown-menu-tick-2x,none)}}",""]),a.locals={"tick-icon":"CustomSelect_tick-icon_znlWL",tickIcon:"CustomSelect_tick-icon_znlWL","option-icon":"CustomSelect_option-icon_m846S",optionIcon:"CustomSelect_option-icon_m846S",hidden:"CustomSelect_hidden_vnns2",text:"CustomSelect_text_u3lgi"};let s=a},81034:function(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>s});var n=i(31627),o=i.n(n),r=i(96384),a=i.n(r)()(o());a.push([e.id,".FontFormItems_toolbar_obcUQ .FontFormItems_bold_Jlkyp{background-image:var(--d-assets-editor-bold-1x,none);background-size:var(--d-assets-editor-bold__size,auto)}.FontFormItems_toolbar_obcUQ .FontFormItems_italic_BaI4m{background-image:var(--d-assets-editor-italic-1x,none);background-size:var(--d-assets-editor-italic__size,auto)}.FontFormItems_toolbar_obcUQ .FontFormItems_color_GH31z{background-image:var(--d-assets-editor-text-color-1x,none);background-size:var(--d-assets-editor-text-color__size,auto)}.FontFormItems_toolbar_obcUQ .FontFormItems_dropdown_oTcPV{background-image:var(--d-assets-editor-dropdown-1x,none);background-size:var(--d-assets-editor-dropdown__size,auto)}@media (min-resolution:144dpi){.FontFormItems_toolbar_obcUQ .FontFormItems_bold_Jlkyp{background-image:var(--d-assets-editor-bold-2x,none)}.FontFormItems_toolbar_obcUQ .FontFormItems_italic_BaI4m{background-image:var(--d-assets-editor-italic-2x,none)}.FontFormItems_toolbar_obcUQ .FontFormItems_color_GH31z{background-image:var(--d-assets-editor-text-color-2x,none)}.FontFormItems_toolbar_obcUQ .FontFormItems_dropdown_oTcPV{background-image:var(--d-assets-editor-dropdown-2x,none)}}",""]),a.locals={toolbar:"FontFormItems_toolbar_obcUQ",bold:"FontFormItems_bold_Jlkyp",italic:"FontFormItems_italic_BaI4m",color:"FontFormItems_color_GH31z",dropdown:"FontFormItems_dropdown_oTcPV"};let s=a},50374:function(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>s});var n=i(31627),o=i.n(n),r=i(96384),a=i.n(r)()(o());a.push([e.id,".FormItem_label_FDrl8{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}",""]),a.locals={label:"FormItem_label_FDrl8"};let s=a},48823:function(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>s});var n=i(31627),o=i.n(n),r=i(96384),a=i.n(r)()(o());a.push([e.id,".DataPanel_wrapper_Cdpzt{padding:0 4px}.DataPanel_separator_pWAvM{border-top:1px solid #e2e4e6;height:1px;margin:12px 0 7px}",""]),a.locals={wrapper:"DataPanel_wrapper_Cdpzt",separator:"DataPanel_separator_pWAvM"};let s=a},21825:function(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>s});var n=i(31627),o=i.n(n),r=i(96384),a=i.n(r)()(o());a.push([e.id,".TypesList_container_JEor0{display:flex;flex-flow:row wrap;gap:8px}.TypesList_icon_lShIy{border:1px solid #d8dadc;box-sizing:border-box;height:60px;width:84px}.TypesList_icon_lShIy.TypesList_active_tQjt7,.TypesList_icon_lShIy:hover{border-color:var(--d-theme-main-color)}.TypesList_icon_lShIy.TypesList_active_tQjt7{background-position:-1px -1px;border-width:2px}.TypesList_icon-bar_d6DYM{background-image:url(webman/3rdparty/Spreadsheet/images/_Asset/1x/_Common/chart_type_bar.png?05cebaf9)}.TypesList_icon-bar-stack_Jybo4{background-image:url(webman/3rdparty/Spreadsheet/images/_Asset/1x/_Common/chart_type_stacked_bar.png?1b8803aa)}.TypesList_icon-bar-horizontal_rK5BH{background-image:url(webman/3rdparty/Spreadsheet/images/_Asset/1x/_Common/chart_type_horizontal_bar.png?4b7680b1)}.TypesList_icon-bar-stack-horizontal_bo3Rr{background-image:url(webman/3rdparty/Spreadsheet/images/_Asset/1x/_Common/chart_type_stacked_horizontal_bar.png?9d74e5e3)}.TypesList_icon-line_UbYGU{background-image:url(webman/3rdparty/Spreadsheet/images/_Asset/1x/_Common/chart_type_line.png?0d3c90de)}.TypesList_icon-line-stack_zMI0c{background-image:url(webman/3rdparty/Spreadsheet/images/_Asset/1x/_Common/chart_type_stacked_line.png?a81a8b67)}.TypesList_icon-area_cHROo{background-image:url(webman/3rdparty/Spreadsheet/images/_Asset/1x/_Common/chart_type_area.png?64d29382)}.TypesList_icon-area-stack_CmBLa{background-image:url(webman/3rdparty/Spreadsheet/images/_Asset/1x/_Common/chart_type_stacked_area.png?6896fb72)}.TypesList_icon-pie_qWldj{background-image:url(webman/3rdparty/Spreadsheet/images/_Asset/1x/_Common/chart_type_pie.png?e07ee608)}.TypesList_icon-scatter_z84be{background-image:url(webman/3rdparty/Spreadsheet/images/_Asset/1x/_Common/chart_type_scatter.png?efb5cd0c)}.TypesList_icon-hybrid_gOL6W{background-image:url(webman/3rdparty/Spreadsheet/images/_Asset/1x/_Common/chart_type_hybrid.png?db331c2a)}@media (min-resolution:144dpi){.TypesList_icon-bar_d6DYM{background-image:url(webman/3rdparty/Spreadsheet/images/_Asset/2x/_Common/chart_type_bar.png?66637fb4);background-size:84px 60px}.TypesList_icon-bar-stack_Jybo4{background-image:url(webman/3rdparty/Spreadsheet/images/_Asset/2x/_Common/chart_type_stacked_bar.png?a725b853);background-size:84px 60px}.TypesList_icon-bar-horizontal_rK5BH{background-image:url(webman/3rdparty/Spreadsheet/images/_Asset/2x/_Common/chart_type_horizontal_bar.png?a91aa5d4);background-size:84px 60px}.TypesList_icon-bar-stack-horizontal_bo3Rr{background-image:url(webman/3rdparty/Spreadsheet/images/_Asset/2x/_Common/chart_type_stacked_horizontal_bar.png?ce76a908);background-size:84px 60px}.TypesList_icon-line_UbYGU{background-image:url(webman/3rdparty/Spreadsheet/images/_Asset/2x/_Common/chart_type_line.png?628f49b7);background-size:84px 60px}.TypesList_icon-line-stack_zMI0c{background-image:url(webman/3rdparty/Spreadsheet/images/_Asset/2x/_Common/chart_type_stacked_line.png?66c857e9);background-size:84px 60px}.TypesList_icon-area_cHROo{background-image:url(webman/3rdparty/Spreadsheet/images/_Asset/2x/_Common/chart_type_area.png?bbd101cb);background-size:84px 60px}.TypesList_icon-area-stack_CmBLa{background-image:url(webman/3rdparty/Spreadsheet/images/_Asset/2x/_Common/chart_type_stacked_area.png?7aa50531);background-size:84px 60px}.TypesList_icon-pie_qWldj{background-image:url(webman/3rdparty/Spreadsheet/images/_Asset/2x/_Common/chart_type_pie.png?36c5672d)}.TypesList_icon-pie_qWldj,.TypesList_icon-scatter_z84be{background-size:84px 60px}.TypesList_icon-scatter_z84be{background-image:url(webman/3rdparty/Spreadsheet/images/_Asset/2x/_Common/chart_type_scatter.png?65e6ea37)}.TypesList_icon-hybrid_gOL6W{background-image:url(webman/3rdparty/Spreadsheet/images/_Asset/2x/_Common/chart_type_hybrid.png?bb0be18f);background-size:84px 60px}}",""]),a.locals={container:"TypesList_container_JEor0",icon:"TypesList_icon_lShIy",active:"TypesList_active_tQjt7","icon-bar":"TypesList_icon-bar_d6DYM",iconBar:"TypesList_icon-bar_d6DYM","icon-bar-stack":"TypesList_icon-bar-stack_Jybo4",iconBarStack:"TypesList_icon-bar-stack_Jybo4","icon-bar-horizontal":"TypesList_icon-bar-horizontal_rK5BH",iconBarHorizontal:"TypesList_icon-bar-horizontal_rK5BH","icon-bar-stack-horizontal":"TypesList_icon-bar-stack-horizontal_bo3Rr",iconBarStackHorizontal:"TypesList_icon-bar-stack-horizontal_bo3Rr","icon-line":"TypesList_icon-line_UbYGU",iconLine:"TypesList_icon-line_UbYGU","icon-line-stack":"TypesList_icon-line-stack_zMI0c",iconLineStack:"TypesList_icon-line-stack_zMI0c","icon-area":"TypesList_icon-area_cHROo",iconArea:"TypesList_icon-area_cHROo","icon-area-stack":"TypesList_icon-area-stack_CmBLa",iconAreaStack:"TypesList_icon-area-stack_CmBLa","icon-pie":"TypesList_icon-pie_qWldj",iconPie:"TypesList_icon-pie_qWldj","icon-scatter":"TypesList_icon-scatter_z84be",iconScatter:"TypesList_icon-scatter_z84be","icon-hybrid":"TypesList_icon-hybrid_gOL6W",iconHybrid:"TypesList_icon-hybrid_gOL6W"};let s=a},65428:function(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>s});var n=i(31627),o=i.n(n),r=i(96384),a=i.n(r)()(o());a.push([e.id,".CustomColorWindow_color-picker-panel_qxGPK.v-panel.v-layout .body-wrapper{overflow:visible}",""]),a.locals={"color-picker-panel":"CustomColorWindow_color-picker-panel_qxGPK",colorPickerPanel:"CustomColorWindow_color-picker-panel_qxGPK"};let s=a},10274:function(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>s});var n=i(31627),o=i.n(n),r=i(96384),a=i.n(r)()(o());a.push([e.id,".DropdownItem_icon_gF33A{left:6px;position:absolute;top:2px}",""]),a.locals={icon:"DropdownItem_icon_gF33A"};let s=a},89138:function(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>s});var n=i(31627),o=i.n(n),r=i(96384),a=i.n(r)()(o());a.push([e.id,".EyeDropperItem_icon_nYGCB{background-image:url(webman/3rdparty/Spreadsheet/images/_Asset/1x/_Common/editor_color_picker.png?622e6642)}@media (min-resolution:144dpi){.EyeDropperItem_icon_nYGCB{background-image:url(webman/3rdparty/Spreadsheet/images/_Asset/2x/_Common/editor_color_picker.png?24533b42);background-size:24px 24px}}",""]),a.locals={icon:"EyeDropperItem_icon_nYGCB"};let s=a},90771:function(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>s});var n=i(31627),o=i.n(n),r=i(96384),a=i.n(r)()(o());a.push([e.id,".ActionBarMobile_root_H4T5Z{background-color:#424446;bottom:0;box-shadow:0 -2px 4px #00000040;flex-direction:column;font-size:17px;position:fixed;width:100%;z-index:10000}.ActionBarMobile_head_vgmSb,.ActionBarMobile_root_H4T5Z{display:flex}.ActionBarMobile_head_vgmSb{border-bottom:1px solid #fff3;color:#fff;flex-direction:row;height:56px}.ActionBarMobile_icon_eVBNy{margin:12px 16px}.ActionBarMobile_close_cOBd9{background-image:url(webman/3rdparty/Spreadsheet/images/_Asset/1x/_Common/icon_mobile_close.png?c704162f);background-position:50%;background-repeat:no-repeat;cursor:pointer;height:24px;margin:0 0 4px auto;padding:16px 12px;width:24px}.ActionBarMobile_title_ivUck{line-height:56px;overflow:hidden;padding-right:16px;text-overflow:ellipsis;white-space:nowrap}.ActionBarMobile_action_ubR9k{color:#ced0d2;cursor:pointer;height:50px;line-height:50px;margin-left:16px}.ActionBarMobile_action_ubR9k>a{color:#ced0d2;display:inline-block;width:100%}@media (min-resolution:144dpi){.ActionBarMobile_close_cOBd9{background-image:url(webman/3rdparty/Spreadsheet/images/_Asset/2x/_Common/icon_mobile_close.png?9289a595);background-size:24px 24px}}",""]),a.locals={root:"ActionBarMobile_root_H4T5Z",head:"ActionBarMobile_head_vgmSb",icon:"ActionBarMobile_icon_eVBNy",close:"ActionBarMobile_close_cOBd9",title:"ActionBarMobile_title_ivUck",action:"ActionBarMobile_action_ubR9k"};let s=a},5370:function(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>s});var n=i(31627),o=i.n(n),r=i(96384),a=i.n(r)()(o());a.push([e.id,".DropZone_dragging-container_l2sr0{align-items:center;display:flex;justify-content:center}.DropZone_root_wpCIc{height:100%;position:relative}.DropZone_dragging-container_l2sr0{height:100%;pointer-events:none;position:absolute;width:100%}",""]),a.locals={"dragging-container":"DropZone_dragging-container_l2sr0",draggingContainer:"DropZone_dragging-container_l2sr0",root:"DropZone_root_wpCIc"};let s=a},71632:function(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>s});var n=i(31627),o=i.n(n),r=i(96384),a=i.n(r)()(o());a.push([e.id,".SidePanel_panel_Jf0xw{height:100%}.SidePanel_panel_Jf0xw .default-tbar.v-toolbar{padding:8px 16px}.SidePanel_panel_Jf0xw .default-tbar.v-toolbar .right-wrapper{gap:8px}.SidePanel_title_XXqve{color:var(--v-color-font-tier1);font-size:15px;font-weight:var(--v-font-weight-bold);height:28px;line-height:28px;overflow:hidden;text-overflow:ellipsis;-webkit-user-select:none;user-select:none;white-space:nowrap}.SidePanel_close_tzKiy{background-image:var(--d-assets-window-close-1x,none);background-position:0 0;background-size:var(--d-assets-window-close__size,auto);cursor:pointer;margin:2px 0}.SidePanel_close_tzKiy:hover{background-position:0 -24px}.SidePanel_close_tzKiy:active{background-position:0 -48px}@media (min-resolution:144dpi){.SidePanel_close_tzKiy{background-image:var(--d-assets-window-close-2x,none)}}",""]),a.locals={panel:"SidePanel_panel_Jf0xw",title:"SidePanel_title_XXqve",close:"SidePanel_close_tzKiy"};let s=a},34847:function(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>s});var n=i(31627),o=i.n(n),r=i(96384),a=i.n(r)()(o());a.push([e.id,".EditMenuPortal_target_Yg5HK{z-index:9009}",""]),a.locals={target:"EditMenuPortal_target_Yg5HK"};let s=a},86814:function(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>s});var n=i(31627),o=i.n(n),r=i(96384),a=i.n(r)()(o());a.push([e.id,'.HotkeyWindow_window_WZk2e{--v-window-padding-top__header:20px;--v-window-padding-right__header:20px;--v-window-padding-bottom__header:16px;--v-window-padding-left__header:20px;--v-window-padding-left__header-text--model:14px;--v-window-line-height__header-text:28px}.HotkeyWindow_window_WZk2e.v-window:before{border-bottom:none}.HotkeyWindow_window_WZk2e .window-header-tool-wrapper{--v-window-header-tool-wrapper-margin:0 0 0 12px}.HotkeyWindow_panel_BLEJv{height:100%;padding-bottom:20px}.HotkeyWindow_fieldset_uXalT{margin:0 18px 24px 14px;padding:0}.HotkeyWindow_fieldset_uXalT.v-fieldset{--v-fieldset-padding__title-wrapper:0 0 0 0;--v-fieldset-font-size__title-wrapper:15px;--v-fieldset-font-weight__title-wrapper:var(--v-font-weight-normal);--v-fieldset-line-height__title-wrapper:28px}.HotkeyWindow_fieldset_uXalT.v-fieldset .v-fieldset-body{padding:4px 0 8px}.HotkeyWindow_fieldset_uXalT.v-fieldset .v-fieldset-title-wrapper .fieldset-chevron-down{background-image:var(--d-assets-hotkey-arrow-down-1x,none);background-size:var(--d-assets-hotkey-arrow-down__size,auto)}.HotkeyWindow_fieldset_uXalT.v-fieldset .v-fieldset-title-wrapper .fieldset-chevron-up{background-image:var(--d-assets-hotkey-arrow-up-1x,none);background-size:var(--d-assets-hotkey-arrow-up__size,auto)}.HotkeyWindow_fieldset_uXalT.v-fieldset .v-fieldset-title-wrapper:before{border-bottom:none}.HotkeyWindow_fieldset_uXalT.v-fieldset.collapsible:not(.collapsed) .v-fieldset-title-wrapper{color:var(--d-theme-main-color)}.HotkeyWindow_fieldset_uXalT.v-fieldset.collapsible:not(.collapsed) .v-fieldset-title-wrapper .v-fieldset-collapse-icon{background-position:0 -24px}.HotkeyWindow_form_S5w2Q{color:var(--v-color-font-tier2);padding:0 20px 0 28px}.HotkeyWindow_form-hd_U_rJr{border-bottom:1px solid var(--v-color-border-tier2);font-size:13px;font-weight:var(--v-font-weight-bold);margin-bottom:7px}.HotkeyWindow_form-hd-first_lK_7i{margin:0;padding:0 12px 0 8px;width:230px}.HotkeyWindow_form-hd-last_zlwye{margin:0;padding:0 8px 0 0;width:452px}.HotkeyWindow_form-cell-first_vjoAo{color:var(--d-theme-main-color,"");font-size:15px;font-weight:var(--v-font-weight-bold);margin:0;padding:0 12px 0 8px;width:230px}.HotkeyWindow_form-cell-last_RHZM_{font-size:13px;margin:0;padding:0 8px 0 0;width:452px}.HotkeyWindow_form_S5w2Q .v-form-multi-wrapper{line-height:28px}.HotkeyWindow_form_S5w2Q .v-form-item{line-height:20px}@media (min-resolution:144dpi){.HotkeyWindow_fieldset_uXalT.v-fieldset .v-fieldset-title-wrapper .fieldset-chevron-down{background-image:var(--d-assets-hotkey-arrow-down-2x,none)}.HotkeyWindow_fieldset_uXalT.v-fieldset .v-fieldset-title-wrapper .fieldset-chevron-up{background-image:var(--d-assets-hotkey-arrow-up-2x,none)}}',""]),a.locals={window:"HotkeyWindow_window_WZk2e",panel:"HotkeyWindow_panel_BLEJv",fieldset:"HotkeyWindow_fieldset_uXalT",form:"HotkeyWindow_form_S5w2Q","form-hd":"HotkeyWindow_form-hd_U_rJr",formHd:"HotkeyWindow_form-hd_U_rJr","form-hd-first":"HotkeyWindow_form-hd-first_lK_7i",formHdFirst:"HotkeyWindow_form-hd-first_lK_7i","form-hd-last":"HotkeyWindow_form-hd-last_zlwye",formHdLast:"HotkeyWindow_form-hd-last_zlwye","form-cell-first":"HotkeyWindow_form-cell-first_vjoAo",formCellFirst:"HotkeyWindow_form-cell-first_vjoAo","form-cell-last":"HotkeyWindow_form-cell-last_RHZM_",formCellLast:"HotkeyWindow_form-cell-last_RHZM_"};let s=a},1075:function(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>s});var n=i(31627),o=i.n(n),r=i(96384),a=i.n(r)()(o());a.push([e.id,'.ItemSuffix_padding_RjUTt{flex:1}.ItemSuffix_new-feature_R2FqS{background-color:rgba(var(--d-theme-main-color-decimal,""),.2);border-radius:3px;box-sizing:border-box;color:var(--d-theme-main-color);height:20px;line-height:16px;padding:2px 6px}.ItemSuffix_new-feature_R2FqS.ItemSuffix_hidden_NDDLY{visibility:hidden}.ItemSuffix_hotkey_e4f_g{color:var(--v-color-font-tier2)}.ItemSuffix_hotkey_e4f_g.ItemSuffix_disabled_Xw2T3{color:var(--v-color-font-tier3)}',""]),a.locals={padding:"ItemSuffix_padding_RjUTt","new-feature":"ItemSuffix_new-feature_R2FqS",newFeature:"ItemSuffix_new-feature_R2FqS",hidden:"ItemSuffix_hidden_NDDLY",hotkey:"ItemSuffix_hotkey_e4f_g",disabled:"ItemSuffix_disabled_Xw2T3"};let s=a},64486:function(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>s});var n=i(31627),o=i.n(n),r=i(96384),a=i.n(r)()(o());a.push([e.id,".OfficeMenuItem_menu-item_jgoAG.v-menu-item-disabled .is-bkg.v-icon{background-position:0 -72px}",""]),a.locals={"menu-item":"OfficeMenuItem_menu-item_jgoAG",menuItem:"OfficeMenuItem_menu-item_jgoAG"};let s=a},25903:function(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>s});var n=i(31627),o=i.n(n),r=i(96384),a=i.n(r)()(o());a.push([e.id,".OfficeMenuSubmenu_submenu_Gft36.v-menu-item-disabled .is-bkg.v-icon{background-position:0 -72px}",""]),a.locals={submenu:"OfficeMenuSubmenu_submenu_Gft36"};let s=a},86341:function(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>s});var n=i(31627),o=i.n(n),r=i(96384),a=i.n(r)()(o());a.push([e.id,".syno-o-new-feature-hint,.syno-o-new-feature-hint>.tooltip-arrow{--v-tooltip-arrow-size:14px;--v-tooltip-arrow-size__wrapper:14px;--v-tooltip-arrow-left-offset:30px;--v-tooltip-border-width:0px;--v-tooltip-border-color--info:#fff;--v-tooltip-bkg-color--info:#fff;--v-tooltip-max-width--info:324px;--v-tooltip-padding-tb--info:20px;--v-tooltip-padding-lr--info:20px;--v-tooltip-box-shadow--info:2px 2px 16px 0 #00000040}",""]),a.locals={};let s=a},74127:function(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>s});var n=i(31627),o=i.n(n),r=i(96384),a=i.n(r)()(o());a.push([e.id,".NewFeatureHintContent_header_Obu6h{margin-bottom:6px}.NewFeatureHintContent_title_sKE8E{color:#000;font-size:14px;font-weight:700}.NewFeatureHintContent_label_ObnGu{background-color:rgba(var(--d-theme-main-color-decimal),.2);border-radius:3px;box-sizing:border-box;color:var(--d-theme-main-color);font-size:13px;height:20px;line-height:16px;padding:2px 6px}.NewFeatureHintContent_body_O4DYz{color:#7e8082;font-size:14px;padding-bottom:28px}.NewFeatureHintContent_footer_AXWcc{align-items:center;display:flex;gap:5px;justify-content:flex-end;min-width:180px}",""]),a.locals={header:"NewFeatureHintContent_header_Obu6h",title:"NewFeatureHintContent_title_sKE8E",label:"NewFeatureHintContent_label_ObnGu",body:"NewFeatureHintContent_body_O4DYz",footer:"NewFeatureHintContent_footer_AXWcc"};let s=a},62463:function(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>s});var n=i(31627),o=i.n(n),r=i(96384),a=i.n(r)()(o());a.push([e.id,".EditableTag_tag_OxUFT{align-items:center;background-color:#f6f8fa;border-radius:3px;color:#7e8082;display:inline-block;gap:2px;max-width:260px;overflow:hidden;padding:0 6px;text-overflow:ellipsis;vertical-align:middle;white-space:nowrap}",""]),a.locals={tag:"EditableTag_tag_OxUFT"};let s=a},72203:function(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>s});var n=i(31627),o=i.n(n),r=i(96384),a=i.n(r)()(o());a.push([e.id,".RichEditor_editor-container_g6HHO{box-sizing:border-box;display:flex;flex-direction:column;font-size:13px;gap:8px;height:100%;line-height:20px;min-height:0;width:100%}.RichEditor_scrollbar_JdSTi{flex:1}.RichEditor_scrollbar-inner_HGvFY{display:flex;min-height:100%}.RichEditor_editor_b32e2{background:#0000;border:none;box-sizing:border-box;color:#2e3032;display:block;overflow-wrap:break-word;-webkit-user-select:text;user-select:text;white-space:pre-wrap;width:100%}.RichEditor_editor-disabled_tq1Gf{background-color:#f6f8fa}[contenteditable=true]:empty:before{color:#babcbe;content:attr(placeholder);pointer-events:none}.RichEditor_query-placeholder_CQDfB{color:#babcbe;display:inline-block;padding-left:2px}.RichEditor_query-placeholder-hidden_GBFaU{display:none}.RichEditor_empty-buffer_OVrsT{display:inline-block;height:22px;min-width:1px;vertical-align:middle}.RichEditor_footer_YKCWc{align-items:center;display:flex;gap:12px;justify-content:space-between}.RichEditor_footer-disabled_kqMQD{background-color:#f6f8fa}.RichEditor_footer-left_QXqEQ,.RichEditor_footer-right_Dg3NT{display:flex;gap:12px}.RichEditor_footer-right_Dg3NT{justify-content:flex-end}",""]),a.locals={"editor-container":"RichEditor_editor-container_g6HHO",editorContainer:"RichEditor_editor-container_g6HHO",scrollbar:"RichEditor_scrollbar_JdSTi","scrollbar-inner":"RichEditor_scrollbar-inner_HGvFY",scrollbarInner:"RichEditor_scrollbar-inner_HGvFY",editor:"RichEditor_editor_b32e2","editor-disabled":"RichEditor_editor-disabled_tq1Gf",editorDisabled:"RichEditor_editor-disabled_tq1Gf","query-placeholder":"RichEditor_query-placeholder_CQDfB",queryPlaceholder:"RichEditor_query-placeholder_CQDfB","query-placeholder-hidden":"RichEditor_query-placeholder-hidden_GBFaU",queryPlaceholderHidden:"RichEditor_query-placeholder-hidden_GBFaU","empty-buffer":"RichEditor_empty-buffer_OVrsT",emptyBuffer:"RichEditor_empty-buffer_OVrsT",footer:"RichEditor_footer_YKCWc","footer-disabled":"RichEditor_footer-disabled_kqMQD",footerDisabled:"RichEditor_footer-disabled_kqMQD","footer-left":"RichEditor_footer-left_QXqEQ",footerLeft:"RichEditor_footer-left_QXqEQ","footer-right":"RichEditor_footer-right_Dg3NT",footerRight:"RichEditor_footer-right_Dg3NT"};let s=a},4909:function(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>s});var n=i(31627),o=i.n(n),r=i(96384),a=i.n(r)()(o());a.push([e.id,".TagNode_tag_Qy3hR{align-items:center;background-color:#f6f8fa;border-radius:3px;display:inline-block;gap:2px;max-width:260px;overflow:hidden;padding:0 6px;text-overflow:ellipsis;vertical-align:middle;white-space:nowrap}.TagNode_tag-href__pfk2{text-decoration:none}.TagNode_tag-href__pfk2,.TagNode_tag-href__pfk2:hover{color:#2e3032}.TagNode_tag-text_pFWmv{color:#7e8082}",""]),a.locals={tag:"TagNode_tag_Qy3hR","tag-href":"TagNode_tag-href__pfk2",tagHref:"TagNode_tag-href__pfk2","tag-text":"TagNode_tag-text_pFWmv",tagText:"TagNode_tag-text_pFWmv"};let s=a},21165:function(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>s});var n=i(31627),o=i.n(n),r=i(96384),a=i.n(r)()(o());a.push([e.id,".CandidateList_list_ONX_V{overflow:hidden}.CandidateList_menu-item-bottom-action_F7H6d.v-menu-item{color:#30a1f2;text-decoration:none}.CandidateList_menu-item-bottom-action_F7H6d.v-menu-item:hover{color:#0b8be5}.CandidateList_menu-item-bottom-action_F7H6d.v-menu-item:active{color:#007ed9}",""]),a.locals={list:"CandidateList_list_ONX_V","menu-item-bottom-action":"CandidateList_menu-item-bottom-action_F7H6d",menuItemBottomAction:"CandidateList_menu-item-bottom-action_F7H6d"};let s=a},65706:function(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>s});var n=i(31627),o=i.n(n),r=i(96384),a=i.n(r)()(o());a.push([e.id,".CandidateListItemText_wrapper_R7WCm{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.CandidateListItemText_desc_KPYDj,.CandidateListItemText_title_lgU9z{height:20px;line-height:20px}.CandidateListItemText_title_lgU9z{color:#2e3032;font-size:13px}.CandidateListItemText_title-match_OA278{font-weight:700}.CandidateListItemText_desc_KPYDj{color:#7e8082;font-size:12px}",""]),a.locals={wrapper:"CandidateListItemText_wrapper_R7WCm",desc:"CandidateListItemText_desc_KPYDj",title:"CandidateListItemText_title_lgU9z","title-match":"CandidateListItemText_title-match_OA278",titleMatch:"CandidateListItemText_title-match_OA278"};let s=a},52177:function(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>s});var n=i(31627),o=i.n(n),r=i(96384),a=i.n(r)()(o());a.push([e.id,".CandidateListItems_items-wrapper_Be2nN .v-menu-item,.CandidateListItems_items-wrapper_Be2nN .v-menu-submenu-item{--v-menu-item-height:auto;--v-menu-item-margin__icon:0 12px 0 0}.CandidateListItems_items-wrapper_Be2nN .v-menu-item{--v-menu-item-padding--has-icon:6px 12px}.CandidateListItems_items-wrapper_Be2nN .v-menu-submenu-item{--v-menu-submenu-item-padding--has-icon:6px 4px 6px 12px}",""]),a.locals={"items-wrapper":"CandidateListItems_items-wrapper_Be2nN",itemsWrapper:"CandidateListItems_items-wrapper_Be2nN"};let s=a},93645:function(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>s});var n=i(31627),o=i.n(n),r=i(96384),a=i.n(r)()(o());a.push([e.id,'.RightSidePanelContainer_panel__JzMK{background:#fff;height:100%}.RightSidePanelContainer_panel__JzMK:after{border-left:1px solid #e2e4e6;content:"";height:100%;left:0;position:absolute;top:0;width:0}',""]),a.locals={panel:"RightSidePanelContainer_panel__JzMK"};let s=a},78633:function(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>s});var n=i(31627),o=i.n(n),r=i(96384),a=i.n(r)()(o());a.push([e.id,'.ColorPickerButton_wrapper_vZ1Lt{align-items:center;display:flex;margin:0 6px 0 0}.ColorPickerButton_wrapper_vZ1Lt .ColorPickerButton_btn_g4xV6{background-color:#0000;background-position:0 0;border:0;cursor:pointer;height:24px;padding:0;position:relative}.ColorPickerButton_wrapper_vZ1Lt:hover .ColorPickerButton_btn_g4xV6:not(.ColorPickerButton_disabled_JZYEM){background-color:var(--v-item-bg-tier2);background-position:0 -24px}.ColorPickerButton_wrapper_vZ1Lt:active .ColorPickerButton_btn_g4xV6:not(.ColorPickerButton_disabled_JZYEM){background-color:rgba(var(--d-theme-main-color-decimal,""),.15);background-position:0 -48px}.ColorPickerButton_wrapper_vZ1Lt .ColorPickerButton_btn_g4xV6.ColorPickerButton_active_lagi4:not(.ColorPickerButton_disabled_JZYEM){background-position:0 -48px}.ColorPickerButton_wrapper_vZ1Lt .ColorPickerButton_btn_g4xV6.ColorPickerButton_disabled_JZYEM{background-position:0 -72px;cursor:default}.ColorPickerButton_wrapper_vZ1Lt .ColorPickerButton_btn-main_IIdYZ{border-radius:3px 0 0 3px;width:24px}.ColorPickerButton_wrapper_vZ1Lt .ColorPickerButton_btn-drop-down_f6ZDk{border-radius:0 3px 3px 0;width:14px}.ColorPickerButton_wrapper_vZ1Lt .ColorPickerButton_color-preview__lJwF{display:block;height:2px;left:5px;padding:0;position:absolute;top:18px;width:14px}',""]),a.locals={wrapper:"ColorPickerButton_wrapper_vZ1Lt",btn:"ColorPickerButton_btn_g4xV6",disabled:"ColorPickerButton_disabled_JZYEM",active:"ColorPickerButton_active_lagi4","btn-main":"ColorPickerButton_btn-main_IIdYZ",btnMain:"ColorPickerButton_btn-main_IIdYZ","btn-drop-down":"ColorPickerButton_btn-drop-down_f6ZDk",btnDropDown:"ColorPickerButton_btn-drop-down_f6ZDk","color-preview":"ColorPickerButton_color-preview__lJwF",colorPreview:"ColorPickerButton_color-preview__lJwF"};let s=a},87869:function(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>s});var n=i(31627),o=i.n(n),r=i(96384),a=i.n(r)()(o());a.push([e.id,'.DefaultButton_btn_YhWYe{--height:24px;--width:24px;background-color:#0000;background-position:0 0;border:0;border-radius:3px;cursor:pointer;height:var(--height);margin:0 4px 0 0;padding:0;width:var(--width)}.DefaultButton_btn_YhWYe:not(.DefaultButton_disabled_oBmNK):hover{background-color:var(--v-item-bg-tier2);background-position:0 calc(0px - var(--height)*1)}.DefaultButton_btn_YhWYe:not(.DefaultButton_disabled_oBmNK):active{background-color:rgba(var(--d-theme-main-color-decimal,""),.15)}.DefaultButton_btn_YhWYe:not(.DefaultButton_disabled_oBmNK).DefaultButton_active_UlDPV,.DefaultButton_btn_YhWYe:not(.DefaultButton_disabled_oBmNK):active{background-position:0 calc(0px - var(--height)*2)}.DefaultButton_btn_YhWYe.DefaultButton_disabled_oBmNK{background-position:0 calc(0px - var(--height)*3);cursor:default}',""]),a.locals={btn:"DefaultButton_btn_YhWYe",disabled:"DefaultButton_disabled_oBmNK",active:"DefaultButton_active_UlDPV"};let s=a},790:function(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>s});var n=i(31627),o=i.n(n),r=i(96384),a=i.n(r)()(o());a.push([e.id,".ToolBar_tool-bar_h7sIT{align-items:center;display:flex;height:30px}",""]),a.locals={"tool-bar":"ToolBar_tool-bar_h7sIT",toolBar:"ToolBar_tool-bar_h7sIT"};let s=a},6562:function(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>s});var n=i(31627),o=i.n(n),r=i(96384),a=i.n(r)()(o());a.push([e.id,".ToolBarSplit_split_q4IBK{background-color:#e2e4e6;border:0;height:20px;margin:3px;width:1px}",""]),a.locals={split:"ToolBarSplit_split_q4IBK"};let s=a},40603:function(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>s});var n=i(31627),o=i.n(n),r=i(96384),a=i.n(r)()(o());a.push([e.id,".PreferenceWindow_more-info_KSDLN{line-height:20px;padding-left:8px}.PreferenceWindow_more-info-text_O525a{color:#30a1f2;font-size:13px;text-decoration:none}.PreferenceWindow_more-info-text_O525a:hover{color:#0b8be5}.PreferenceWindow_more-info-text_O525a:active{color:#007ed9}",""]),a.locals={"more-info":"PreferenceWindow_more-info_KSDLN",moreInfo:"PreferenceWindow_more-info_KSDLN","more-info-text":"PreferenceWindow_more-info-text_O525a",moreInfoText:"PreferenceWindow_more-info-text_O525a"};let s=a},34919:function(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>s});var n=i(31627),o=i.n(n),r=i(96384),a=i.n(r)()(o());a.push([e.id,".TextToolbar_root_SICbt{align-items:stretch;border-bottom:1px solid #e2e4e6;box-sizing:border-box;display:flex;gap:8px;position:relative}.TextToolbar_icon_JQtBh{background-image:url(webman/3rdparty/Spreadsheet/images/_Asset/1x/_SpreadSheet/icon_furmula.png?70a93e6b)}.TextToolbar_icon-wrapper_HGZrI{align-items:center;border-right:1px solid #e2e4e6;box-sizing:border-box;display:flex;flex:none;justify-content:center}.syno-o-mobile .TextToolbar_root_SICbt{border-bottom:none;border-top:1px solid #e2e4e6}@media (min-resolution:144dpi){.TextToolbar_icon_JQtBh{background-image:url(webman/3rdparty/Spreadsheet/images/_Asset/2x/_SpreadSheet/icon_furmula.png?e062a2d7);background-size:36px 24px}}",""]),a.locals={root:"TextToolbar_root_SICbt",icon:"TextToolbar_icon_JQtBh","icon-wrapper":"TextToolbar_icon-wrapper_HGZrI",iconWrapper:"TextToolbar_icon-wrapper_HGZrI"};let s=a},44637:function(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>s});var n=i(31627),o=i.n(n),r=i(96384),a=i.n(r)()(o());a.push([e.id,'.MaybeAiHelperPanel_code-piece_ZEaU7{background-color:rgba(var(--d-theme-main-color-decimal,""),.1);color:var(--d-theme-main-color);cursor:pointer}.MaybeAiHelperPanel_code-piece_ZEaU7:hover{background-color:rgba(var(--d-theme-main-color-decimal,""),.2)}',""]),a.locals={"code-piece":"MaybeAiHelperPanel_code-piece_ZEaU7",codePiece:"MaybeAiHelperPanel_code-piece_ZEaU7"};let s=a},19718:function(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>s});var n=i(31627),o=i.n(n),r=i(96384),a=i.n(r)()(o());a.push([e.id,".CellHistoryPanel_panel_DAYzC{background-color:#eceef0;border:1px solid #d8dadc;border-radius:3px;box-shadow:0 2px 8px 0 #00000040;position:fixed;width:250px;z-index:11000}.CellHistoryPanel_panel_DAYzC .CellHistoryPanel_header_AUdPs{align-items:center;column-gap:8px;display:flex;flex-direction:row;font-size:14px;font-weight:700;margin:12px 16px}.CellHistoryPanel_panel_DAYzC .CellHistoryPanel_header_AUdPs .CellHistoryPanel_header-text_ps9AJ{flex-grow:1;line-height:24px}.CellHistoryPanel_panel_DAYzC .CellHistoryPanel_header_AUdPs .CellHistoryPanel_btn_bDzyk{background-color:#0000;background-image:url(webman/3rdparty/Spreadsheet/images/_Asset/1x/_SpreadSheet/icon_footer_paging.png?1818caf6);border:none;height:24px;width:24px}.CellHistoryPanel_panel_DAYzC .CellHistoryPanel_header_AUdPs .CellHistoryPanel_btn_bDzyk.CellHistoryPanel_btn-prev_ya_Tu{background-position:0 -96px}.CellHistoryPanel_panel_DAYzC .CellHistoryPanel_header_AUdPs .CellHistoryPanel_btn_bDzyk.CellHistoryPanel_btn-prev_ya_Tu:focus,.CellHistoryPanel_panel_DAYzC .CellHistoryPanel_header_AUdPs .CellHistoryPanel_btn_bDzyk.CellHistoryPanel_btn-prev_ya_Tu:hover{background-position:0 -120px}.CellHistoryPanel_panel_DAYzC .CellHistoryPanel_header_AUdPs .CellHistoryPanel_btn_bDzyk.CellHistoryPanel_btn-prev_ya_Tu:active{background-position:0 -144px}.CellHistoryPanel_panel_DAYzC .CellHistoryPanel_header_AUdPs .CellHistoryPanel_btn_bDzyk.CellHistoryPanel_btn-prev_ya_Tu:disabled,.CellHistoryPanel_panel_DAYzC .CellHistoryPanel_header_AUdPs .CellHistoryPanel_btn_bDzyk.CellHistoryPanel_btn-prev_ya_Tu.v-btn-disabled{background-position:0 -168px}.CellHistoryPanel_panel_DAYzC .CellHistoryPanel_header_AUdPs .CellHistoryPanel_btn_bDzyk.CellHistoryPanel_btn-next_bCp1X{background-position:0 -192px}.CellHistoryPanel_panel_DAYzC .CellHistoryPanel_header_AUdPs .CellHistoryPanel_btn_bDzyk.CellHistoryPanel_btn-next_bCp1X:focus,.CellHistoryPanel_panel_DAYzC .CellHistoryPanel_header_AUdPs .CellHistoryPanel_btn_bDzyk.CellHistoryPanel_btn-next_bCp1X:hover{background-position:0 -216px}.CellHistoryPanel_panel_DAYzC .CellHistoryPanel_header_AUdPs .CellHistoryPanel_btn_bDzyk.CellHistoryPanel_btn-next_bCp1X:active{background-position:0 -240px}.CellHistoryPanel_panel_DAYzC .CellHistoryPanel_header_AUdPs .CellHistoryPanel_btn_bDzyk.CellHistoryPanel_btn-next_bCp1X:disabled,.CellHistoryPanel_panel_DAYzC .CellHistoryPanel_header_AUdPs .CellHistoryPanel_btn_bDzyk.CellHistoryPanel_btn-next_bCp1X.v-btn-disabled{background-position:0 -264px}.CellHistoryPanel_panel_DAYzC .CellHistoryPanel_record-info_AKkPS{margin:8px 16px}.CellHistoryPanel_panel_DAYzC .CellHistoryPanel_content-panel_rV3e1{padding:12px 16px}.CellHistoryPanel_panel_DAYzC .CellHistoryPanel_content-wrapper_beSLF{background:#fff;overflow-wrap:break-word}.CellHistoryPanel_panel_DAYzC .CellHistoryPanel_content-wrapper_beSLF .CellHistoryPanel_content_U3ev6{font-size:13px}.CellHistoryPanel_panel_DAYzC .CellHistoryPanel_content-wrapper_beSLF .CellHistoryPanel_content_U3ev6 .CellHistoryPanel_loading-icon-wrapper_s8HOu{display:block;margin:auto;width:fit-content}.CellHistoryPanel_panel_DAYzC .CellHistoryPanel_content-wrapper_beSLF .CellHistoryPanel_content_U3ev6 .CellHistoryPanel_content-text_CxJIB{white-space:pre-wrap}.CellHistoryPanel_panel_DAYzC .CellHistoryPanel_note-container_DqjIG{background:#fff}.CellHistoryPanel_panel_DAYzC .CellHistoryPanel_note-container_DqjIG .CellHistoryPanel_note_I_GUU{font-size:10px}.CellHistoryPanel_panel_DAYzC .CellHistoryPanel_note-container_DqjIG .CellHistoryPanel_note-border_YUeRS{border-top:1px solid #eceef0;margin:0 16px}@media (min-resolution:144dpi){.CellHistoryPanel_panel_DAYzC .CellHistoryPanel_header_AUdPs .CellHistoryPanel_btn_bDzyk{background-image:url(webman/3rdparty/Spreadsheet/images/_Asset/2x/_SpreadSheet/icon_footer_paging.png?a01e1c71);background-size:24px 384px}}",""]),a.locals={panel:"CellHistoryPanel_panel_DAYzC",header:"CellHistoryPanel_header_AUdPs","header-text":"CellHistoryPanel_header-text_ps9AJ",headerText:"CellHistoryPanel_header-text_ps9AJ",btn:"CellHistoryPanel_btn_bDzyk","btn-prev":"CellHistoryPanel_btn-prev_ya_Tu",btnPrev:"CellHistoryPanel_btn-prev_ya_Tu","btn-next":"CellHistoryPanel_btn-next_bCp1X",btnNext:"CellHistoryPanel_btn-next_bCp1X","record-info":"CellHistoryPanel_record-info_AKkPS",recordInfo:"CellHistoryPanel_record-info_AKkPS","content-panel":"CellHistoryPanel_content-panel_rV3e1",contentPanel:"CellHistoryPanel_content-panel_rV3e1","content-wrapper":"CellHistoryPanel_content-wrapper_beSLF",contentWrapper:"CellHistoryPanel_content-wrapper_beSLF",content:"CellHistoryPanel_content_U3ev6","loading-icon-wrapper":"CellHistoryPanel_loading-icon-wrapper_s8HOu",loadingIconWrapper:"CellHistoryPanel_loading-icon-wrapper_s8HOu","content-text":"CellHistoryPanel_content-text_CxJIB",contentText:"CellHistoryPanel_content-text_CxJIB","note-container":"CellHistoryPanel_note-container_DqjIG",noteContainer:"CellHistoryPanel_note-container_DqjIG",note:"CellHistoryPanel_note_I_GUU","note-border":"CellHistoryPanel_note-border_YUeRS",noteBorder:"CellHistoryPanel_note-border_YUeRS"};let s=a},54449:function(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>s});var n=i(31627),o=i.n(n),r=i(96384),a=i.n(r)()(o());a.push([e.id,".DataEditor_form_KER4t.v-layout{padding:0}",""]),a.locals={form:"DataEditor_form_KER4t"};let s=a},41282:function(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>s});var n=i(31627),o=i.n(n),r=i(96384),a=i.n(r)()(o());a.push([e.id,".PositionTypeFieldSet_radio-group_xVOvJ{display:flex;flex-direction:column;gap:8px}",""]),a.locals={"radio-group":"PositionTypeFieldSet_radio-group_xVOvJ",radioGroup:"PositionTypeFieldSet_radio-group_xVOvJ"};let s=a},58187:function(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>s});var n=i(31627),o=i.n(n),r=i(96384),a=i.n(r)()(o());a.push([e.id,".RangeChooser_form-item_G3fka{justify-content:center}",""]),a.locals={"form-item":"RangeChooser_form-item_G3fka",formItem:"RangeChooser_form-item_G3fka"};let s=a},62759:function(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>s});var n=i(31627),o=i.n(n),r=i(96384),a=i.n(r)()(o());a.push([e.id,".RangeInput_trigger_iT6Ja{opacity:.4}.RangeInput_trigger-icon_fEBMR{background-image:url(webman/3rdparty/Spreadsheet/images/_Asset/1x/_SpreadSheet/trigger_select_range.png?fc5f72c5)}@media (min-resolution:144dpi){.RangeInput_trigger-icon_fEBMR{background-image:url(webman/3rdparty/Spreadsheet/images/_Asset/2x/_SpreadSheet/trigger_select_range.png?d919e069);background-size:24px 96px}}",""]),a.locals={trigger:"RangeInput_trigger_iT6Ja","trigger-icon":"RangeInput_trigger-icon_fEBMR",triggerIcon:"RangeInput_trigger-icon_fEBMR"};let s=a},60914:function(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>s});var n=i(31627),o=i.n(n),r=i(96384),a=i.n(r)()(o());a.push([e.id,".SheetRangeChooser_sheet-icon_N4jSw{background-image:url(webman/3rdparty/Spreadsheet/images/_Asset/FileType/16/synosheet.png?3a61d763);background-position:6px;background-repeat:no-repeat}@media (min-resolution:144dpi){.SheetRangeChooser_sheet-icon_N4jSw{background-image:url(webman/3rdparty/Spreadsheet/images/_Asset/FileType/32/synosheet.png?a0a653a1);background-size:16px 16px}}",""]),a.locals={"sheet-icon":"SheetRangeChooser_sheet-icon_N4jSw",sheetIcon:"SheetRangeChooser_sheet-icon_N4jSw"};let s=a},93728:function(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>s});var n=i(31627),o=i.n(n),r=i(96384),a=i.n(r)()(o());a.push([e.id,".SimpleTabBar_tab-bar_XO0u_{background-color:#f6f8fa;border-top:1px solid #d8dadc;display:flex;height:33px;overflow:visible;padding:0}.SimpleTabBar_tab-btn_v6Ptt.v-btn{height:24px;margin-top:4px}.SimpleTabBar_tab-btn_v6Ptt.v-btn .SimpleTabBar_tab-icon-scroll-left_HuG_d{background-image:url(webman/3rdparty/Spreadsheet/images/_Asset/1x/_SpreadSheet/icon_footer_paging.png?1818caf6)}.SimpleTabBar_tab-btn_v6Ptt.v-btn .SimpleTabBar_tab-icon-scroll-right_VWqXP{background-image:url(webman/3rdparty/Spreadsheet/images/_Asset/1x/_SpreadSheet/icon_footer_paging.png?1818caf6)}.SimpleTabBar_tab-left_zE3Fe{display:flex;margin:0 8px}.SimpleTabBar_tab-center__REhR{flex:1;overflow:hidden;position:relative;top:-1px}.SimpleTabBar_tab-item-wrapper_UZAXq{display:flex;overflow:auto hidden;scrollbar-width:none}.SimpleTabBar_tab-item-wrapper_UZAXq::-webkit-scrollbar{display:none}.SimpleTabBar_dragging-tab_UBFK_{position:absolute;top:0}.SimpleTabBar_gradient-block_ry4W6{background-color:#0000;background-image:linear-gradient(90deg,#f6f8fa00,#f6f8fa);height:100%;position:absolute;top:1px;width:12px;z-index:1}.SimpleTabBar_gradient-block_ry4W6.SimpleTabBar_gradient-block-left_ES5_t{left:0;transform:rotate(180deg)}.SimpleTabBar_gradient-block_ry4W6.SimpleTabBar_gradient-block-right_UwWjs{right:0}.SimpleTabBar_tab-right_U5LFM{display:flex;gap:4px;margin:0 16px}.SimpleTabBar_space_N2DcG{flex:1}@media (min-resolution:144dpi){.SimpleTabBar_tab-btn_v6Ptt.v-btn .SimpleTabBar_tab-icon-scroll-left_HuG_d{background-image:url(webman/3rdparty/Spreadsheet/images/_Asset/2x/_SpreadSheet/icon_footer_paging.png?a01e1c71);background-size:24px 384px}.SimpleTabBar_tab-btn_v6Ptt.v-btn .SimpleTabBar_tab-icon-scroll-right_VWqXP{background-image:url(webman/3rdparty/Spreadsheet/images/_Asset/2x/_SpreadSheet/icon_footer_paging.png?a01e1c71);background-size:24px 384px}}",""]),a.locals={"tab-bar":"SimpleTabBar_tab-bar_XO0u_",tabBar:"SimpleTabBar_tab-bar_XO0u_","tab-btn":"SimpleTabBar_tab-btn_v6Ptt",tabBtn:"SimpleTabBar_tab-btn_v6Ptt","tab-icon-scroll-left":"SimpleTabBar_tab-icon-scroll-left_HuG_d",tabIconScrollLeft:"SimpleTabBar_tab-icon-scroll-left_HuG_d","tab-icon-scroll-right":"SimpleTabBar_tab-icon-scroll-right_VWqXP",tabIconScrollRight:"SimpleTabBar_tab-icon-scroll-right_VWqXP","tab-left":"SimpleTabBar_tab-left_zE3Fe",tabLeft:"SimpleTabBar_tab-left_zE3Fe","tab-center":"SimpleTabBar_tab-center__REhR",tabCenter:"SimpleTabBar_tab-center__REhR","tab-item-wrapper":"SimpleTabBar_tab-item-wrapper_UZAXq",tabItemWrapper:"SimpleTabBar_tab-item-wrapper_UZAXq","dragging-tab":"SimpleTabBar_dragging-tab_UBFK_",draggingTab:"SimpleTabBar_dragging-tab_UBFK_","gradient-block":"SimpleTabBar_gradient-block_ry4W6",gradientBlock:"SimpleTabBar_gradient-block_ry4W6","gradient-block-left":"SimpleTabBar_gradient-block-left_ES5_t",gradientBlockLeft:"SimpleTabBar_gradient-block-left_ES5_t","gradient-block-right":"SimpleTabBar_gradient-block-right_UwWjs",gradientBlockRight:"SimpleTabBar_gradient-block-right_UwWjs","tab-right":"SimpleTabBar_tab-right_U5LFM",tabRight:"SimpleTabBar_tab-right_U5LFM",space:"SimpleTabBar_space_N2DcG"};let s=a},79523:function(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>s});var n=i(31627),o=i.n(n),r=i(96384),a=i.n(r)()(o());a.push([e.id,'.TabItem_tab-item_NXJlt{border-top:1px solid #d8dadc;cursor:pointer;flex-shrink:0;height:30px;margin-left:0}.TabItem_tab-item_NXJlt.TabItem_tab-active_DKM6v{border-top:1px solid #fafcfe;cursor:default}.TabItem_tab-item_NXJlt.TabItem_tab-disabled_oIOuu{cursor:default}.TabItem_tab-item_NXJlt.TabItem_tab-diff_eujbE:before{border-bottom:3px solid #0000;border-left:3px solid #0000;border-right:3px solid var(--highlight-color,#00a6a6);border-top:3px solid var(--highlight-color,#00a6a6);box-sizing:border-box;content:"";display:block;float:right;height:6px;width:6px}.TabItem_tab-item-text_oC9OY{border-color:#d8dadc;border-radius:0 0 3px 3px;border-style:solid;border-width:0 1px 1px 0;color:#7e8082;font-size:13px;height:27px;line-height:27px;padding:0 14px}.TabItem_tab-item-text_oC9OY:hover{background-color:#fff;color:#2e3032}.TabItem_tab-selected_qDA6u .TabItem_tab-item-text_oC9OY{background-color:#fff;color:#2db27b}.TabItem_tab-active_DKM6v .TabItem_tab-item-text_oC9OY{border-color:#c4c6c8;box-shadow:0 1px 2px #00000026}.TabItem_tab-disabled_oIOuu .TabItem_tab-item-text_oC9OY{color:#babcbe}.TabItem_tab-item_NXJlt:first-child .TabItem_tab-item-text_oC9OY{border-left-width:1px}.TabItem_tab-color-line_sXkJR{border:1px solid #0000;border-radius:0 0 2px 2px;margin:-4px 2px 0}',""]),a.locals={"tab-item":"TabItem_tab-item_NXJlt",tabItem:"TabItem_tab-item_NXJlt","tab-active":"TabItem_tab-active_DKM6v",tabActive:"TabItem_tab-active_DKM6v","tab-disabled":"TabItem_tab-disabled_oIOuu",tabDisabled:"TabItem_tab-disabled_oIOuu","tab-diff":"TabItem_tab-diff_eujbE",tabDiff:"TabItem_tab-diff_eujbE","tab-item-text":"TabItem_tab-item-text_oC9OY",tabItemText:"TabItem_tab-item-text_oC9OY","tab-selected":"TabItem_tab-selected_qDA6u",tabSelected:"TabItem_tab-selected_qDA6u","tab-color-line":"TabItem_tab-color-line_sXkJR",tabColorLine:"TabItem_tab-color-line_sXkJR"};let s=a},79081:function(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>s});var n=i(31627),o=i.n(n),r=i(96384),a=i.n(r)()(o());a.push([e.id,".SelectionInfo_btn_UQPvV{background-color:#0000;cursor:pointer;display:flex;max-width:168px;min-width:80px}.SelectionInfo_btn-with-trigger_ShMHc{background-color:#eceef0;border:1px solid #eceef0;border-radius:3px}.SelectionInfo_btn-with-trigger_ShMHc:hover{border-color:#c4c6c8}.SelectionInfo_btn-with-trigger_ShMHc:active{background-color:#e2e4e6}.SelectionInfo_text_ggKGE{font-size:12px;font-weight:700;line-height:26px;overflow:hidden;padding:0 10px;text-overflow:ellipsis;white-space:nowrap}.SelectionInfo_trigger_dkKIk{background-image:url(webman/3rdparty/Spreadsheet/images/_Component/1x/_Common/bt_updown.png?09658bda);background-position:center 0;background-repeat:no-repeat;border-left:1px solid #c4c6c8;width:30px}@media (min-resolution:144dpi){.SelectionInfo_trigger_dkKIk{background-image:url(webman/3rdparty/Spreadsheet/images/_Component/2x/_Common/bt_updown.png?d018b38c);background-size:6px 48px}}",""]),a.locals={btn:"SelectionInfo_btn_UQPvV","btn-with-trigger":"SelectionInfo_btn-with-trigger_ShMHc",btnWithTrigger:"SelectionInfo_btn-with-trigger_ShMHc",text:"SelectionInfo_text_ggKGE",trigger:"SelectionInfo_trigger_dkKIk"};let s=a},22850:function(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>s});var n=i(31627),o=i.n(n),r=i(96384),a=i.n(r)()(o());a.push([e.id,".TabBar_tab-icon-add_VcOho{background-image:url(webman/3rdparty/Spreadsheet/images/_Asset/1x/_SpreadSheet/icon_footer_create_sheet.png?8b6b1f1d)}.TabBar_tab-icon-more_F0Ccc{background-image:url(webman/3rdparty/Spreadsheet/images/_Asset/1x/_SpreadSheet/icon_footer_all_sheets.png?9ea763ff)}.TabBar_tab-selection-info_bZMUu{align-self:center;height:24px;margin-right:6px}@media (min-resolution:144dpi){.TabBar_tab-icon-add_VcOho{background-image:url(webman/3rdparty/Spreadsheet/images/_Asset/2x/_SpreadSheet/icon_footer_create_sheet.png?e8ada930);background-size:24px 96px}.TabBar_tab-icon-more_F0Ccc{background-image:url(webman/3rdparty/Spreadsheet/images/_Asset/2x/_SpreadSheet/icon_footer_all_sheets.png?f37ea51b);background-size:24px 96px}}",""]),a.locals={"tab-icon-add":"TabBar_tab-icon-add_VcOho",tabIconAdd:"TabBar_tab-icon-add_VcOho","tab-icon-more":"TabBar_tab-icon-more_F0Ccc",tabIconMore:"TabBar_tab-icon-more_F0Ccc","tab-selection-info":"TabBar_tab-selection-info_bZMUu",tabSelectionInfo:"TabBar_tab-selection-info_bZMUu"};let s=a},47626:function(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>s});var n=i(31627),o=i.n(n),r=i(96384),a=i.n(r)()(o());a.push([e.id,".TabSheetMenu_title-wrapper_JeYtP{align-items:center;display:flex}.TabSheetMenu_color-icon_d8YOJ{border:4px solid #0000;border-radius:2px;height:0;margin:0 8px}.TabSheetMenu_hidden_x1V3q{color:#babcbe}.TabSheetMenu_hidden_x1V3q.active{color:#babcbe}",""]),a.locals={"title-wrapper":"TabSheetMenu_title-wrapper_JeYtP",titleWrapper:"TabSheetMenu_title-wrapper_JeYtP","color-icon":"TabSheetMenu_color-icon_d8YOJ",colorIcon:"TabSheetMenu_color-icon_d8YOJ",hidden:"TabSheetMenu_hidden_x1V3q"};let s=a},61222:function(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>s});var n=i(31627),o=i.n(n),r=i(96384),a=i.n(r)()(o());a.push([e.id,".CfListWindow_table_vjyzR{font-size:13px;height:100%;--v-table-cell-height:42px}.CfListWindow_table_vjyzR .CfListWindow_cf-rule_SF8A3{font-weight:700}.CfListWindow_table_vjyzR .CfListWindow_cf-preview-container_JXmaF{justify-content:center}.CfListWindow_table_vjyzR .CfListWindow_cf-preview-container_JXmaF,.CfListWindow_table_vjyzR .CfListWindow_cf-range-input-container_QsgBG{align-items:center;display:flex;height:100%;width:100%}.CfListWindow_table_vjyzR .CfListWindow_cf-range-input-container_QsgBG .CfListWindow_range-input_QO2xL{--v-table-padding-left__input:9px;--v-table-padding-right__input:5px;--v-table-height__input:32px;--v-input-height:26px}.CfListWindow_fbar_eR0jz{flex-direction:row;flex-shrink:0;margin-left:auto;padding-right:24px}",""]),a.locals={table:"CfListWindow_table_vjyzR","cf-rule":"CfListWindow_cf-rule_SF8A3",cfRule:"CfListWindow_cf-rule_SF8A3","cf-preview-container":"CfListWindow_cf-preview-container_JXmaF",cfPreviewContainer:"CfListWindow_cf-preview-container_JXmaF","cf-range-input-container":"CfListWindow_cf-range-input-container_QsgBG",cfRangeInputContainer:"CfListWindow_cf-range-input-container_QsgBG","range-input":"CfListWindow_range-input_QO2xL",rangeInput:"CfListWindow_range-input_QO2xL",fbar:"CfListWindow_fbar_eR0jz"};let s=a},5841:function(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>s});var n=i(31627),o=i.n(n),r=i(96384),a=i.n(r)()(o());a.push([e.id,".CfPreview_cf-preview_axUKA{align-items:center;border:1px solid #0000001a;display:flex;height:22px;justify-content:center;padding:3px 0;width:78px}",""]),a.locals={"cf-preview":"CfPreview_cf-preview_axUKA",cfPreview:"CfPreview_cf-preview_axUKA"};let s=a},59906:function(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>s});var n=i(31627),o=i.n(n),r=i(96384),a=i.n(r)()(o());a.push([e.id,".CfWindow_field-set_IAnOF{font-size:13px}.CfWindow_field-set_IAnOF .v-fieldset-title-wrapper{font-weight:700}.CfWindow_field-set_IAnOF .CfWindow_separator_bvFu7{text-align:center}.CfWindow_field-set_IAnOF .CfWindow_toolbar_jceop{background-color:#f6f8fa;border:1px solid #e2e4e6;padding:0 6px}.CfWindow_field-set_IAnOF .CfWindow_toolbar_jceop .CfWindow_bold_fyokq{background-image:url(webman/3rdparty/Spreadsheet/images/_Asset/1x/_SpreadSheet/editor_bold.png?7abc17cd)}.CfWindow_field-set_IAnOF .CfWindow_toolbar_jceop .CfWindow_italic_xRU7c{background-image:url(webman/3rdparty/Spreadsheet/images/_Asset/1x/_SpreadSheet/editor_italic.png?f2286f3b)}.CfWindow_field-set_IAnOF .CfWindow_toolbar_jceop .CfWindow_underline_IdHs2{background-image:url(webman/3rdparty/Spreadsheet/images/_Asset/1x/_SpreadSheet/editor_underline.png?ffdd82dd)}.CfWindow_field-set_IAnOF .CfWindow_toolbar_jceop .CfWindow_strike_TnZZD{background-image:url(webman/3rdparty/Spreadsheet/images/_Asset/1x/_SpreadSheet/editor_strikethrough.png?fd2c0cff)}.CfWindow_field-set_IAnOF .CfWindow_toolbar_jceop .CfWindow_color_rEfHc{background-image:url(webman/3rdparty/Spreadsheet/images/_Asset/1x/_SpreadSheet/editor_text_color.png?a43d1179)}.CfWindow_field-set_IAnOF .CfWindow_toolbar_jceop .CfWindow_bg-color_wKhS3{background-image:url(webman/3rdparty/Spreadsheet/images/_Asset/1x/_SpreadSheet/editor_fill_color.png?ea72f0a6)}.CfWindow_field-set_IAnOF .CfWindow_toolbar_jceop .CfWindow_dropdown_uV9Kd{background-image:url(webman/3rdparty/Spreadsheet/images/_Asset/1x/_SpreadSheet/editor_dropdown.png?b72e466a)}@media (min-resolution:144dpi){.CfWindow_field-set_IAnOF .CfWindow_toolbar_jceop .CfWindow_bold_fyokq{background-image:url(webman/3rdparty/Spreadsheet/images/_Asset/2x/_SpreadSheet/editor_bold.png?55cf5361);background-size:24px 96px}.CfWindow_field-set_IAnOF .CfWindow_toolbar_jceop .CfWindow_italic_xRU7c{background-image:url(webman/3rdparty/Spreadsheet/images/_Asset/2x/_SpreadSheet/editor_italic.png?c0ad6b62);background-size:24px 96px}.CfWindow_field-set_IAnOF .CfWindow_toolbar_jceop .CfWindow_underline_IdHs2{background-image:url(webman/3rdparty/Spreadsheet/images/_Asset/2x/_SpreadSheet/editor_underline.png?76393afb);background-size:24px 96px}.CfWindow_field-set_IAnOF .CfWindow_toolbar_jceop .CfWindow_strike_TnZZD{background-image:url(webman/3rdparty/Spreadsheet/images/_Asset/2x/_SpreadSheet/editor_strikethrough.png?dad87b7b);background-size:24px 96px}.CfWindow_field-set_IAnOF .CfWindow_toolbar_jceop .CfWindow_color_rEfHc{background-image:url(webman/3rdparty/Spreadsheet/images/_Asset/2x/_SpreadSheet/editor_text_color.png?6445976e);background-size:24px 96px}.CfWindow_field-set_IAnOF .CfWindow_toolbar_jceop .CfWindow_bg-color_wKhS3{background-image:url(webman/3rdparty/Spreadsheet/images/_Asset/2x/_SpreadSheet/editor_fill_color.png?8dae419e);background-size:24px 96px}.CfWindow_field-set_IAnOF .CfWindow_toolbar_jceop .CfWindow_dropdown_uV9Kd{background-image:url(webman/3rdparty/Spreadsheet/images/_Asset/2x/_SpreadSheet/editor_dropdown.png?93f668e8);background-size:14px 96px}}",""]),a.locals={"field-set":"CfWindow_field-set_IAnOF",fieldSet:"CfWindow_field-set_IAnOF",separator:"CfWindow_separator_bvFu7",toolbar:"CfWindow_toolbar_jceop",bold:"CfWindow_bold_fyokq",italic:"CfWindow_italic_xRU7c",underline:"CfWindow_underline_IdHs2",strike:"CfWindow_strike_TnZZD",color:"CfWindow_color_rEfHc","bg-color":"CfWindow_bg-color_wKhS3",bgColor:"CfWindow_bg-color_wKhS3",dropdown:"CfWindow_dropdown_uV9Kd"};let s=a},28413:function(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>s});var n=i(31627),o=i.n(n),r=i(96384),a=i.n(r)()(o());a.push([e.id,".DefineListWindow_table_keMGK{font-size:13px;height:100%;--v-table-cell-height:42px}.DefineListWindow_table_keMGK .DefineListWindow_define-range-input-container_nxbPN{align-items:center;display:flex;height:100%;width:100%}.DefineListWindow_table_keMGK .DefineListWindow_define-range-input-container_nxbPN .DefineListWindow_range-input_tVgG6{--v-table-padding-left__input:9px;--v-table-padding-right__input:5px;--v-table-height__input:32px;--v-input-height:26px}.DefineListWindow_fbar_xkuBD{flex-direction:row;flex-shrink:0;margin-left:auto;padding-right:24px}",""]),a.locals={table:"DefineListWindow_table_keMGK","define-range-input-container":"DefineListWindow_define-range-input-container_nxbPN",defineRangeInputContainer:"DefineListWindow_define-range-input-container_nxbPN","range-input":"DefineListWindow_range-input_tVgG6",rangeInput:"DefineListWindow_range-input_tVgG6",fbar:"DefineListWindow_fbar_xkuBD"};let s=a},95521:function(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>s});var n=i(31627),o=i.n(n),r=i(96384),a=i.n(r)()(o());a.push([e.id,".externalList_root_o8bTX{flex-direction:column;height:100%;padding:0 16px}.externalList_body_Zmqs8,.externalList_root_o8bTX{display:flex}.externalList_body_Zmqs8{flex:1;flex-direction:column;font-size:13px;line-height:20px;overflow:hidden}.externalList_all-action-wrapper_BDOb3{align-items:center;display:flex;gap:8px;height:46px}.externalList_all-action-wrapper_BDOb3 .externalList_auto-refresh-check_eyXYr{flex:1}.externalList_all-action-wrapper_BDOb3 .externalList_refresh-all_swvG4{background-image:url(webman/3rdparty/Spreadsheet/images/_Asset/1x/_SpreadSheet/icon_refresh.png?70b9328e)}.externalList_all-action-wrapper_BDOb3 .externalList_break-all_OYvqF{background-image:url(webman/3rdparty/Spreadsheet/images/_Asset/1x/_SpreadSheet/icon_break_all_links.png?b169e8c2)}.externalList_data-view_jcTVz{border-top:1px solid #e2e4e6;flex:1}.externalList_info__kisi{align-items:center;box-sizing:border-box;color:#2e3032;display:flex;gap:10px;height:52px;padding:6px 8px 6px 10px}.externalList_info-icon_lC0fu.v-icon{background-image:url(webman/3rdparty/Spreadsheet/images/svg/synosheet.svg?55bebc2c);background-size:21px 22px;height:22px;width:21px}.externalList_info-content_vkWav{flex:1;overflow:hidden}.externalList_info-header_SQYE8{display:flex;font-weight:700;gap:8px;height:20px}.externalList_info-file-name_yiGYh{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.externalList_info-button-wrapper_eMrPt{display:flex;gap:18px}.externalList_info-search_E2gdt{background-image:url(webman/3rdparty/Spreadsheet/images/_Asset/1x/_SpreadSheet/icon_find_link.png?03abc113)}.externalList_info-more_i4llL{background-image:url(webman/3rdparty/Spreadsheet/images/_Asset/1x/_SpreadSheet/icon_history_more.png?dc9d014a)}.externalList_info-status_IrUMz{align-items:center;color:#7e8082;display:flex;gap:2px;height:20px}.externalList_info-status-error-icon_y1nbb.v-icon{background-image:url(webman/3rdparty/Spreadsheet/images/_Asset/1x/_SpreadSheet/icon_error.png?fce5f30e);height:14px;width:14px}.externalList_info-status-text_QC8ID{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.externalList_empty-desc_QcJXj{color:#7e8082;margin-top:6px}.externalList_empty-link_8mcwF{color:#30a1f2;margin-top:6px;text-decoration:none}.externalList_empty-link_8mcwF:hover{color:#0b8be5}.externalList_empty-link_8mcwF:active{color:#007ed9}@media (min-resolution:144dpi){.externalList_all-action-wrapper_BDOb3 .externalList_refresh-all_swvG4{background-image:url(webman/3rdparty/Spreadsheet/images/_Asset/2x/_SpreadSheet/icon_refresh.png?3a4b0cc7);background-size:24px 96px}.externalList_all-action-wrapper_BDOb3 .externalList_break-all_OYvqF{background-image:url(webman/3rdparty/Spreadsheet/images/_Asset/2x/_SpreadSheet/icon_break_all_links.png?74f82424);background-size:24px 96px}.externalList_info-search_E2gdt{background-image:url(webman/3rdparty/Spreadsheet/images/_Asset/2x/_SpreadSheet/icon_find_link.png?c6a5a2d4);background-size:20px 80px}.externalList_info-more_i4llL{background-image:url(webman/3rdparty/Spreadsheet/images/_Asset/2x/_SpreadSheet/icon_history_more.png?bc4726dd);background-size:3px 80px}.externalList_info-status-error-icon_y1nbb.v-icon{background-image:url(webman/3rdparty/Spreadsheet/images/_Asset/2x/_SpreadSheet/icon_error.png?d2fbca1f);background-size:14px 14px}}",""]),a.locals={root:"externalList_root_o8bTX",body:"externalList_body_Zmqs8","all-action-wrapper":"externalList_all-action-wrapper_BDOb3",allActionWrapper:"externalList_all-action-wrapper_BDOb3","auto-refresh-check":"externalList_auto-refresh-check_eyXYr",autoRefreshCheck:"externalList_auto-refresh-check_eyXYr","refresh-all":"externalList_refresh-all_swvG4",refreshAll:"externalList_refresh-all_swvG4","break-all":"externalList_break-all_OYvqF",breakAll:"externalList_break-all_OYvqF","data-view":"externalList_data-view_jcTVz",dataView:"externalList_data-view_jcTVz",info:"externalList_info__kisi","info-icon":"externalList_info-icon_lC0fu",infoIcon:"externalList_info-icon_lC0fu","info-content":"externalList_info-content_vkWav",infoContent:"externalList_info-content_vkWav","info-header":"externalList_info-header_SQYE8",infoHeader:"externalList_info-header_SQYE8","info-file-name":"externalList_info-file-name_yiGYh",infoFileName:"externalList_info-file-name_yiGYh","info-button-wrapper":"externalList_info-button-wrapper_eMrPt",infoButtonWrapper:"externalList_info-button-wrapper_eMrPt","info-search":"externalList_info-search_E2gdt",infoSearch:"externalList_info-search_E2gdt","info-more":"externalList_info-more_i4llL",infoMore:"externalList_info-more_i4llL","info-status":"externalList_info-status_IrUMz",infoStatus:"externalList_info-status_IrUMz","info-status-error-icon":"externalList_info-status-error-icon_y1nbb",infoStatusErrorIcon:"externalList_info-status-error-icon_y1nbb","info-status-text":"externalList_info-status-text_QC8ID",infoStatusText:"externalList_info-status-text_QC8ID","empty-desc":"externalList_empty-desc_QcJXj",emptyDesc:"externalList_empty-desc_QcJXj","empty-link":"externalList_empty-link_8mcwF",emptyLink:"externalList_empty-link_8mcwF"};let s=a},12046:function(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>s});var n=i(31627),o=i.n(n),r=i(96384),a=i.n(r)()(o());a.push([e.id,".externalPermission_flex_yF9Sd{align-items:center;display:flex}.externalPermission_root_bwCUz{background-color:#fff3e7;box-shadow:0 1px 0 0 #e2e4e6;height:100%;padding:0 16px}.externalPermission_left_WMzKv{flex:1;gap:24px}.externalPermission_text-wrapper_OgAbJ{color:#2e3032;gap:8px;line-height:24px}.externalPermission_text-wrapper_OgAbJ .externalPermission_bold_q17Nn{font-weight:700}.externalPermission_button-wrapper_qBWex{gap:6px}.externalPermission_warning_tS3DG{background-image:url(webman/3rdparty/Spreadsheet/images/_Asset/1x/_SpreadSheet/icon_warning.png?10b7254c)}.externalPermission_close_fhGf5{background-image:url(webman/3rdparty/Spreadsheet/images/_Component/1x/_Common/rt_button.png?befa229d)}@media (min-resolution:144dpi){.externalPermission_warning_tS3DG{background-image:url(webman/3rdparty/Spreadsheet/images/_Asset/2x/_SpreadSheet/icon_warning.png?0615db10);background-size:24px 24px}.externalPermission_close_fhGf5{background-image:url(webman/3rdparty/Spreadsheet/images/_Component/2x/_Common/rt_button.png?a0ff42a6);background-size:24px 96px}}",""]),a.locals={flex:"externalPermission_flex_yF9Sd",root:"externalPermission_root_bwCUz",left:"externalPermission_left_WMzKv","text-wrapper":"externalPermission_text-wrapper_OgAbJ",textWrapper:"externalPermission_text-wrapper_OgAbJ",bold:"externalPermission_bold_q17Nn","button-wrapper":"externalPermission_button-wrapper_qBWex",buttonWrapper:"externalPermission_button-wrapper_qBWex",warning:"externalPermission_warning_tS3DG",close:"externalPermission_close_fhGf5"};let s=a},24493:function(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>s});var n=i(31627),o=i.n(n),r=i(96384),a=i.n(r)()(o());a.push([e.id,".BaseSection_root_tnj0z{display:flex;flex-direction:column;gap:8px}.BaseSection_title_EpYFu{color:var(--v-color-font-tier1);font-size:13px;font-weight:var(--v-font-weight-bold);line-height:30px}",""]),a.locals={root:"BaseSection_root_tnj0z",title:"BaseSection_title_EpYFu"};let s=a},89251:function(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>s});var n=i(31627),o=i.n(n),r=i(96384),a=i.n(r)()(o());a.push([e.id,".FilterForm_root_QfoxO{box-sizing:border-box;height:auto;padding:8px 16px 20px;width:380px}.FilterForm_root_QfoxO,.FilterForm_section_zJ2sS{display:flex;flex-direction:column}.FilterForm_section_zJ2sS{gap:16px}.FilterForm_separator_e_3MF{background:#e2e4e6;height:1px;margin:12px 0 0}.FilterForm_flex-container_jf8lz{display:flex}.FilterForm_only-me_QE2Rm{align-items:center;justify-content:space-between;margin-top:16px}.FilterForm_only-me-left-part_qOyOE{gap:4px}.FilterForm_only-me-label_mfUVB{font-size:13px;line-height:24px}.FilterForm_only-me-toggle_vEOWC{--v-toggle-width:33px;--v-toggle-height:19px;--v-toggle-width__indicator:17px;--v-toggle-height__indicator:17px;--v-toggle-x__indicator--on:14px}.FilterForm_fbar_r6v4y{justify-content:space-between;margin-top:16px}.FilterForm_fbar_r6v4y .FilterForm_fbar-right-btns_sLKPD{gap:12px}.FilterForm_btn-apply_TzG1K{--v-button-min-width__footbar--normal:80px}",""]),a.locals={root:"FilterForm_root_QfoxO",section:"FilterForm_section_zJ2sS",separator:"FilterForm_separator_e_3MF","flex-container":"FilterForm_flex-container_jf8lz",flexContainer:"FilterForm_flex-container_jf8lz","only-me":"FilterForm_only-me_QE2Rm",onlyMe:"FilterForm_only-me_QE2Rm","only-me-left-part":"FilterForm_only-me-left-part_qOyOE",onlyMeLeftPart:"FilterForm_only-me-left-part_qOyOE","only-me-label":"FilterForm_only-me-label_mfUVB",onlyMeLabel:"FilterForm_only-me-label_mfUVB","only-me-toggle":"FilterForm_only-me-toggle_vEOWC",onlyMeToggle:"FilterForm_only-me-toggle_vEOWC",fbar:"FilterForm_fbar_r6v4y","fbar-right-btns":"FilterForm_fbar-right-btns_sLKPD",fbarRightBtns:"FilterForm_fbar-right-btns_sLKPD","btn-apply":"FilterForm_btn-apply_TzG1K",btnApply:"FilterForm_btn-apply_TzG1K"};let s=a},46594:function(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>s});var n=i(31627),o=i.n(n),r=i(96384),a=i.n(r)()(o());a.push([e.id,".FilterSection_root_pkQXS{height:307px}.FilterSection_form_DtW2t{padding:0}.FilterSection_tabs_e7QnK.v-tabs.v-layout{--v-tab-font-size:13px;--v-tab-color:var(--v-color-font-tier2)}.FilterSection_tab_LNemY{display:flex;flex-direction:column;padding-top:12px}.FilterSection_tab-color_xU5Dd,.FilterSection_tab-condition_nDaDw{gap:8px}.FilterSection_color-select_HDB5l{--v-select-height__input:24px;--v-select-padding-left:14px;--v-select-padding-top:3px;--v-select-padding-bottom:3px}.FilterSection_color-select-option_wighl{border:2px solid;border-radius:2px;height:20px;width:200px}",""]),a.locals={root:"FilterSection_root_pkQXS",form:"FilterSection_form_DtW2t",tabs:"FilterSection_tabs_e7QnK",tab:"FilterSection_tab_LNemY","tab-color":"FilterSection_tab-color_xU5Dd",tabColor:"FilterSection_tab-color_xU5Dd","tab-condition":"FilterSection_tab-condition_nDaDw",tabCondition:"FilterSection_tab-condition_nDaDw","color-select":"FilterSection_color-select_HDB5l",colorSelect:"FilterSection_color-select_HDB5l","color-select-option":"FilterSection_color-select-option_wighl",colorSelectOption:"FilterSection_color-select-option_wighl"};let s=a},37489:function(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>s});var n=i(31627),o=i.n(n),r=i(96384),a=i.n(r)()(o());a.push([e.id,".SortSection_btn-group_RNcj2{display:flex}.SortSection_btn_VSpG6{flex:auto;--v-button-grey-bkg-color--hover:var(--v-button-grey-bkg-color--active);--v-button-group-bkg-color--active:#2db27b1a;--v-button-group-color--active:var(--v-color-main);--v-button-group-border-color--active:var(--v-button-group-border-color)}",""]),a.locals={"btn-group":"SortSection_btn-group_RNcj2",btnGroup:"SortSection_btn-group_RNcj2",btn:"SortSection_btn_VSpG6"};let s=a},62215:function(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>s});var n=i(31627),o=i.n(n),r=i(96384),a=i.n(r)()(o());a.push([e.id,".ValuesContainer_root_HFbek{box-sizing:border-box;display:flex;flex-direction:column;height:100%}.ValuesContainer_search_QN3_Z{margin-bottom:4px}.ValuesContainer_search-icon_bUr3j{background-image:url(webman/3rdparty/Spreadsheet/images/_Component/1x/_SpreadSheet/icon_search.png?cc7299c9)}.ValuesContainer_scrollbar-container_LkI1m{flex:auto;overflow:hidden}.ValuesContainer_checkbox-indent_KerjS{margin-left:30px}.ValuesContainer_checkbox__40vY .v-checkbox-label{box-sizing:border-box;width:100%}.ValuesContainer_checkbox-label-content_bs6Nk{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ValuesContainer_search-only-btn_c9R4g{margin-top:12px}@media (min-resolution:144dpi){.ValuesContainer_search-icon_bUr3j{background-image:url(webman/3rdparty/Spreadsheet/images/_Component/2x/_SpreadSheet/icon_search.png?467590bc);background-size:24px 96px}}",""]),a.locals={root:"ValuesContainer_root_HFbek",search:"ValuesContainer_search_QN3_Z","search-icon":"ValuesContainer_search-icon_bUr3j",searchIcon:"ValuesContainer_search-icon_bUr3j","scrollbar-container":"ValuesContainer_scrollbar-container_LkI1m",scrollbarContainer:"ValuesContainer_scrollbar-container_LkI1m","checkbox-indent":"ValuesContainer_checkbox-indent_KerjS",checkboxIndent:"ValuesContainer_checkbox-indent_KerjS",checkbox:"ValuesContainer_checkbox__40vY","checkbox-label-content":"ValuesContainer_checkbox-label-content_bs6Nk",checkboxLabelContent:"ValuesContainer_checkbox-label-content_bs6Nk","search-only-btn":"ValuesContainer_search-only-btn_c9R4g",searchOnlyBtn:"ValuesContainer_search-only-btn_c9R4g"};let s=a},79355:function(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>s});var n=i(31627),o=i.n(n),r=i(96384),a=i.n(r)()(o());a.push([e.id,".ValuesSection_values_WP50l{height:256px}",""]),a.locals={values:"ValuesSection_values_WP50l"};let s=a},42738:function(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>s});var n=i(31627),o=i.n(n),r=i(96384),a=i.n(r)()(o());a.push([e.id,".FilterViewToolbar_root_G8Z_5{align-items:center;background-color:#66686a;color:#fff;display:flex;font-size:13px;height:41px;justify-content:center}.FilterViewToolbar_label_PR7fe{flex:none;font-weight:700}.FilterViewToolbar_label_PR7fe.FilterViewToolbar_label-name_YOuWm{padding:0 4px 0 40px}.FilterViewToolbar_label_PR7fe.FilterViewToolbar_label-range_GEz9t{padding:0 4px 0 28px}.FilterViewToolbar_input-name_kGdNW.v-textfield-wrapper,.FilterViewToolbar_input-range_g9pcG.v-textfield-wrapper{background-color:#66686a;width:176px;--v-input-bkg-color:#66686a;--v-input-bkg-color--hover:#66686a;--v-input-bkg-color--focus:#66686a;--v-input-border:1px solid #0000;--v-input-border--hover:1px solid #9c9ead;--v-input-border--focus:1px solid #2db27b;--v-input-color:#fff}.FilterViewToolbar_input-range_g9pcG:hover .FilterViewToolbar_trigger-icon_NTb9J{background-image:url(webman/3rdparty/Spreadsheet/images/_Asset/1x/_SpreadSheet/icon_filter_select_range.png?f4ee0faa)}.FilterViewToolbar_setting-button_glJQA{margin:0 6px 0 auto}.FilterViewToolbar_setting-button_glJQA .FilterViewToolbar_setting-icon_G8J4j{background-image:url(webman/3rdparty/Spreadsheet/images/_Asset/1x/_SpreadSheet/icon_filter_settings.png?a1d641e1)}.FilterViewToolbar_close-button_lwh2F{margin-right:6px}.FilterViewToolbar_close-button_lwh2F .FilterViewToolbar_close-icon_rnHvL{background-image:url(webman/3rdparty/Spreadsheet/images/_Component/1x/_Common/rt_button_dark.png?e3519cc2)}@media (min-resolution:144dpi){.FilterViewToolbar_input-range_g9pcG:hover .FilterViewToolbar_trigger-icon_NTb9J{background-image:url(webman/3rdparty/Spreadsheet/images/_Asset/2x/_SpreadSheet/icon_filter_select_range.png?c35df95d);background-size:24px 96px}.FilterViewToolbar_setting-button_glJQA .FilterViewToolbar_setting-icon_G8J4j{background-image:url(webman/3rdparty/Spreadsheet/images/_Asset/2x/_SpreadSheet/icon_filter_settings.png?97949548);background-size:24px 96px}.FilterViewToolbar_close-button_lwh2F .FilterViewToolbar_close-icon_rnHvL{background-image:url(webman/3rdparty/Spreadsheet/images/_Component/2x/_Common/rt_button_dark.png?9c7e2ade);background-size:24px 96px}}",""]),a.locals={root:"FilterViewToolbar_root_G8Z_5",label:"FilterViewToolbar_label_PR7fe","label-name":"FilterViewToolbar_label-name_YOuWm",labelName:"FilterViewToolbar_label-name_YOuWm","label-range":"FilterViewToolbar_label-range_GEz9t",labelRange:"FilterViewToolbar_label-range_GEz9t","input-name":"FilterViewToolbar_input-name_kGdNW",inputName:"FilterViewToolbar_input-name_kGdNW","input-range":"FilterViewToolbar_input-range_g9pcG",inputRange:"FilterViewToolbar_input-range_g9pcG","trigger-icon":"FilterViewToolbar_trigger-icon_NTb9J",triggerIcon:"FilterViewToolbar_trigger-icon_NTb9J","setting-button":"FilterViewToolbar_setting-button_glJQA",settingButton:"FilterViewToolbar_setting-button_glJQA","setting-icon":"FilterViewToolbar_setting-icon_G8J4j",settingIcon:"FilterViewToolbar_setting-icon_G8J4j","close-button":"FilterViewToolbar_close-button_lwh2F",closeButton:"FilterViewToolbar_close-button_lwh2F","close-icon":"FilterViewToolbar_close-icon_rnHvL",closeIcon:"FilterViewToolbar_close-icon_rnHvL"};let s=a},12724:function(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>s});var n=i(31627),o=i.n(n),r=i(96384),a=i.n(r)()(o());a.push([e.id,".HandsonPanel_root_SyGmi{display:flex;flex-direction:column;height:100%;width:100%}.HandsonPanel_text-toolbar_VBgwf{flex:none;order:var(--text-toolbar-order)}.HandsonPanel_filter-view-toolbar_mnqdC{flex:none;order:var(--filter-view-order)}.HandsonPanel_hot-wrapper_GbcLJ{flex:auto;order:var(--hot-wrapper-order)}.HandsonPanel_tab-bar_ehubi{flex:none;order:var(--tab-bar-order)}",""]),a.locals={root:"HandsonPanel_root_SyGmi","text-toolbar":"HandsonPanel_text-toolbar_VBgwf",textToolbar:"HandsonPanel_text-toolbar_VBgwf","filter-view-toolbar":"HandsonPanel_filter-view-toolbar_mnqdC",filterViewToolbar:"HandsonPanel_filter-view-toolbar_mnqdC","hot-wrapper":"HandsonPanel_hot-wrapper_GbcLJ",hotWrapper:"HandsonPanel_hot-wrapper_GbcLJ","tab-bar":"HandsonPanel_tab-bar_ehubi",tabBar:"HandsonPanel_tab-bar_ehubi"};let s=a},84274:function(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>s});var n=i(31627),o=i.n(n),r=i(96384),a=i.n(r)()(o());a.push([e.id,".HistoryPanel_root_Jjlgz{display:flex;flex-direction:column;height:100%}.HistoryPanel_hot_XKMCG{flex:1}",""]),a.locals={root:"HistoryPanel_root_Jjlgz",hot:"HistoryPanel_hot_XKMCG"};let s=a},55048:function(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>s});var n=i(31627),o=i.n(n),r=i(96384),a=i.n(r)()(o());a.push([e.id,".HotWrapper_root_sSP7d{height:100%}",""]),a.locals={root:"HotWrapper_root_sSP7d"};let s=a},30604:function(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>s});var n=i(31627),o=i.n(n),r=i(96384),a=i.n(r)()(o());a.push([e.id,".ImagePanel_body_uLSx1{height:100%;padding:0 16px}.ImagePanel_center_ItYG_{align-items:center;color:#7e8082;display:flex;font-size:13px;height:100%;justify-content:center}",""]),a.locals={body:"ImagePanel_body_uLSx1",center:"ImagePanel_center_ItYG_"};let s=a},56596:function(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>s});var n=i(31627),o=i.n(n),r=i(96384),a=i.n(r)()(o());a.push([e.id,".AxisComponent_content-empty_SuAEX{justify-content:center}.AxisComponent_content-empty_SuAEX,.AxisComponent_header_zc75X{align-items:center;display:flex}.AxisComponent_header_zc75X{gap:6px}.AxisComponent_title_Yeczz{flex:1;overflow:hidden}.AxisComponent_content_hLUjp{margin-top:8px}.AxisComponent_content-empty_SuAEX{font-size:12px;height:72px}.AxisComponent_content-empty-normal_WLC85{color:#ced0d2}.AxisComponent_content-empty-active_zLzSg{border:1px solid var(--d-theme-main-color)}.AxisComponent_content-list_M6sIp{display:flex;flex-direction:column;gap:8px}.AxisComponent_drop-line_Trm2q{background-color:var(--d-theme-main-color);height:2px;margin:7px 0;order:1}.AxisComponent_menu_OXuwK{box-sizing:border-box;min-width:0}",""]),a.locals={"content-empty":"AxisComponent_content-empty_SuAEX",contentEmpty:"AxisComponent_content-empty_SuAEX",header:"AxisComponent_header_zc75X",title:"AxisComponent_title_Yeczz",content:"AxisComponent_content_hLUjp","content-empty-normal":"AxisComponent_content-empty-normal_WLC85",contentEmptyNormal:"AxisComponent_content-empty-normal_WLC85","content-empty-active":"AxisComponent_content-empty-active_zLzSg",contentEmptyActive:"AxisComponent_content-empty-active_zLzSg","content-list":"AxisComponent_content-list_M6sIp",contentList:"AxisComponent_content-list_M6sIp","drop-line":"AxisComponent_drop-line_Trm2q",dropLine:"AxisComponent_drop-line_Trm2q",menu:"AxisComponent_menu_OXuwK"};let s=a},21311:function(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>s});var n=i(31627),o=i.n(n),r=i(96384),a=i.n(r)()(o());a.push([e.id,".AxisContainer_axis-container_JsWG9{display:flex;flex-direction:column;gap:32px}.AxisContainer_checkbox_KYtws{cursor:default}",""]),a.locals={"axis-container":"AxisContainer_axis-container_JsWG9",axisContainer:"AxisContainer_axis-container_JsWG9",checkbox:"AxisContainer_checkbox_KYtws"};let s=a},96793:function(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>s});var n=i(31627),o=i.n(n),r=i(96384),a=i.n(r)()(o());a.push([e.id,".AxisField_header_pkLw1{align-items:center;display:flex;justify-content:center}.AxisField_card_e9fE3{cursor:grab;padding:8px}.AxisField_card_e9fE3:active{cursor:grabbing}.v-dd-ghost .AxisField_card_e9fE3{cursor:grabbing;width:248px}.AxisField_header_pkLw1{gap:8px;height:30px}.AxisField_title_d_6zP{flex:1;font-weight:var(--v-font-weight-bold);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.AxisField_content_IugOW{margin-top:8px}",""]),a.locals={header:"AxisField_header_pkLw1",card:"AxisField_card_e9fE3",title:"AxisField_title_d_6zP",content:"AxisField_content_IugOW"};let s=a},66851:function(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>s});var n=i(31627),o=i.n(n),r=i(96384),a=i.n(r)()(o());a.push([e.id,".ChangeDataSourceWindow_suggested-item_Pcv7K{align-items:center;display:flex;gap:4px;height:30px;justify-content:center}.ChangeDataSourceWindow_suggested-icon_Yx1gI{background-image:url(webman/3rdparty/Spreadsheet/images/_Asset/1x/_SpreadSheet/trigger_select_range.png?fc5f72c5)}.ChangeDataSourceWindow_suggested-range_hAENm{flex:1;font-size:13px;line-height:20px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ChangeDataSourceWindow_window_W2eML .v-spin{min-width:max-content}@media (min-resolution:144dpi){.ChangeDataSourceWindow_suggested-icon_Yx1gI{background-image:url(webman/3rdparty/Spreadsheet/images/_Asset/2x/_SpreadSheet/trigger_select_range.png?d919e069);background-size:24px 96px}}",""]),a.locals={"suggested-item":"ChangeDataSourceWindow_suggested-item_Pcv7K",suggestedItem:"ChangeDataSourceWindow_suggested-item_Pcv7K","suggested-icon":"ChangeDataSourceWindow_suggested-icon_Yx1gI",suggestedIcon:"ChangeDataSourceWindow_suggested-icon_Yx1gI","suggested-range":"ChangeDataSourceWindow_suggested-range_hAENm",suggestedRange:"ChangeDataSourceWindow_suggested-range_hAENm",window:"ChangeDataSourceWindow_window_W2eML"};let s=a},98554:function(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>s});var n=i(31627),o=i.n(n),r=i(96384),a=i.n(r)()(o());a.push([e.id,".DataFieldSelectItem_wrapper_QiIji+.DataFieldSelectItem_wrapper_QiIji{margin-top:12px}.DataFieldSelectItem_select_twajH{cursor:pointer;margin-top:4px}",""]),a.locals={wrapper:"DataFieldSelectItem_wrapper_QiIji",select:"DataFieldSelectItem_select_twajH"};let s=a},99734:function(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>s});var n=i(31627),o=i.n(n),r=i(96384),a=i.n(r)()(o());a.push([e.id,".DateGroupWindow_checkbox-wrapper_vw9Oa{border:1px solid #d8dadc;border-radius:3px;margin-bottom:8px;padding:8px}",""]),a.locals={"checkbox-wrapper":"DateGroupWindow_checkbox-wrapper_vw9Oa",checkboxWrapper:"DateGroupWindow_checkbox-wrapper_vw9Oa"};let s=a},49241:function(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>s});var n=i(31627),o=i.n(n),r=i(96384),a=i.n(r)()(o());a.push([e.id,".DragTarget_dd-ghost_VVAc_{box-shadow:0 4px 4px #00000040}",""]),a.locals={"dd-ghost":"DragTarget_dd-ghost_VVAc_",ddGhost:"DragTarget_dd-ghost_VVAc_"};let s=a},77929:function(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>s});var n=i(31627),o=i.n(n),r=i(96384),a=i.n(r)()(o());a.push([e.id,".FieldCard_card_Hpokm{background-color:var(--v-item-bg-tier1);border-radius:2px;box-sizing:border-box}.FieldCard_active_KhVwA{background-color:var(--d-theme-color-grid-select);color:var(--d-theme-main-color)}.FieldCard_disabled_LtXJ1{opacity:.4}",""]),a.locals={card:"FieldCard_card_Hpokm",active:"FieldCard_active_KhVwA",disabled:"FieldCard_disabled_LtXJ1"};let s=a},5963:function(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>s});var n=i(31627),o=i.n(n),r=i(96384),a=i.n(r)()(o());a.push([e.id,".FieldList_field_sRxrP{align-items:center;display:flex;justify-content:center}.FieldList_container_K7V_b{display:flex;flex-direction:column;gap:4px}.FieldList_field_sRxrP{cursor:grab;gap:6px;height:36px;min-width:148px;padding:8px 6px}.FieldList_field_sRxrP:active,.v-dd-ghost .FieldList_field_sRxrP{cursor:grabbing}.FieldList_field_sRxrP .FieldList_checkbox_nR4Du{--v-checkbox-padding-left__label:24px;cursor:default}.v-dd-ghost .FieldList_field_sRxrP .FieldList_checkbox_nR4Du{display:none}.FieldList_name_W0XfX{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}",""]),a.locals={field:"FieldList_field_sRxrP",container:"FieldList_container_K7V_b",checkbox:"FieldList_checkbox_nR4Du",name:"FieldList_name_W0XfX"};let s=a},12638:function(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>s});var n=i(31627),o=i.n(n),r=i(96384),a=i.n(r)()(o());a.push([e.id,".IncompatiblePanel_root_fOUIh{padding:0 16px 0 15px}.IncompatiblePanel_message_GfLnH{color:var(--v-color-font-tier2)}.IncompatiblePanel_btn_N5X8F{margin-top:6px}",""]),a.locals={root:"IncompatiblePanel_root_fOUIh",message:"IncompatiblePanel_message_GfLnH",btn:"IncompatiblePanel_btn_N5X8F"};let s=a},35229:function(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>s});var n=i(31627),o=i.n(n),r=i(96384),a=i.n(r)()(o());a.push([e.id,".InsertPivotTableWindow_radio-group_KUc6W{margin-bottom:8px}",""]),a.locals={"radio-group":"InsertPivotTableWindow_radio-group_KUc6W",radioGroup:"InsertPivotTableWindow_radio-group_KUc6W"};let s=a},43039:function(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>s});var n=i(31627),o=i.n(n),r=i(96384),a=i.n(r)()(o());a.push([e.id,".NumberGroupWindow_tips-block_uCczV{height:210px;margin-bottom:8px;margin-top:24px}.NumberGroupWindow_tips-title_kUEqv{color:#0aa;display:inline-block;line-height:var(--v-line-height-100);margin-bottom:8px}.NumberGroupWindow_tips-list_ShbFE{padding-left:.5em}.NumberGroupWindow_tips-list-item_cfxty{margin-bottom:8px}",""]),a.locals={"tips-block":"NumberGroupWindow_tips-block_uCczV",tipsBlock:"NumberGroupWindow_tips-block_uCczV","tips-title":"NumberGroupWindow_tips-title_kUEqv",tipsTitle:"NumberGroupWindow_tips-title_kUEqv","tips-list":"NumberGroupWindow_tips-list_ShbFE",tipsList:"NumberGroupWindow_tips-list_ShbFE","tips-list-item":"NumberGroupWindow_tips-list-item_cfxty",tipsListItem:"NumberGroupWindow_tips-list-item_cfxty"};let s=a},99173:function(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>s});var n=i(31627),o=i.n(n),r=i(96384),a=i.n(r)()(o());a.push([e.id,".PivotTableEditorPanel_data-source-display_dMrm1{align-items:center;display:flex;justify-content:center}.PivotTableEditorPanel_root_YE8kl{color:#2e3032;font-size:13px;line-height:20px;padding-top:8px}.PivotTableEditorPanel_root-panel_sva9T{display:flex;height:100%}.PivotTableEditorPanel_divider_gcOsG{border-right:1px solid #d8dadc;height:calc(100% - 8px);width:0}.PivotTableEditorPanel_display_BAzcZ{align-items:center;display:flex;height:30px}.PivotTableEditorPanel_flex-panel_geI4s{display:flex;flex-direction:column}.PivotTableEditorPanel_flex-panel-inner_VdAFt{padding:0 12px}.PivotTableEditorPanel_flex-panel-scroller_B4iBp{flex:1}.PivotTableEditorPanel_flex-panel-scroller-bottom-preserve_Ze1B8{margin-bottom:32px}.PivotTableEditorPanel_fields-list-panel_PfwYC{box-sizing:border-box;flex:178;gap:8px;min-width:178px;padding:0 3px}.PivotTableEditorPanel_search-input_dIblf{margin-top:4px}.PivotTableEditorPanel_search-icon_IxH60{background-image:url(webman/3rdparty/Spreadsheet/images/_Component/1x/_SpreadSheet/icon_search.png?cc7299c9)}.PivotTableEditorPanel_editor-panel_vAibh{box-sizing:border-box;flex:280;min-width:280px;padding:0 4px}.PivotTableEditorPanel_axis-fields-wrapper_ELEeU{display:flex;flex:1;flex-direction:column;gap:12px;overflow:hidden}.PivotTableEditorPanel_data-source-wrapper_GbDx0{gap:8px}.PivotTableEditorPanel_data-source-display_dMrm1{flex:1;overflow:hidden}.PivotTableEditorPanel_data-source-label_I7O6T{flex:none}.PivotTableEditorPanel_data-source-space_bSKVO{flex:1 0 auto;width:4px}.PivotTableEditorPanel_data-source-location_hW_MF{overflow:hidden}.PivotTableEditorPanel_data-source-refresh_vxOJ3{background-image:url(webman/3rdparty/Spreadsheet/images/_Asset/1x/_SpreadSheet/icon_refresh.png?70b9328e)}@media (min-resolution:144dpi){.PivotTableEditorPanel_search-icon_IxH60{background-image:url(webman/3rdparty/Spreadsheet/images/_Component/2x/_SpreadSheet/icon_search.png?467590bc);background-size:24px 96px}.PivotTableEditorPanel_data-source-refresh_vxOJ3{background-image:url(webman/3rdparty/Spreadsheet/images/_Asset/2x/_SpreadSheet/icon_refresh.png?3a4b0cc7);background-size:24px 96px}}",""]),a.locals={"data-source-display":"PivotTableEditorPanel_data-source-display_dMrm1",dataSourceDisplay:"PivotTableEditorPanel_data-source-display_dMrm1",root:"PivotTableEditorPanel_root_YE8kl","root-panel":"PivotTableEditorPanel_root-panel_sva9T",rootPanel:"PivotTableEditorPanel_root-panel_sva9T",divider:"PivotTableEditorPanel_divider_gcOsG",display:"PivotTableEditorPanel_display_BAzcZ","flex-panel":"PivotTableEditorPanel_flex-panel_geI4s",flexPanel:"PivotTableEditorPanel_flex-panel_geI4s","flex-panel-inner":"PivotTableEditorPanel_flex-panel-inner_VdAFt",flexPanelInner:"PivotTableEditorPanel_flex-panel-inner_VdAFt","flex-panel-scroller":"PivotTableEditorPanel_flex-panel-scroller_B4iBp",flexPanelScroller:"PivotTableEditorPanel_flex-panel-scroller_B4iBp","flex-panel-scroller-bottom-preserve":"PivotTableEditorPanel_flex-panel-scroller-bottom-preserve_Ze1B8",flexPanelScrollerBottomPreserve:"PivotTableEditorPanel_flex-panel-scroller-bottom-preserve_Ze1B8","fields-list-panel":"PivotTableEditorPanel_fields-list-panel_PfwYC",fieldsListPanel:"PivotTableEditorPanel_fields-list-panel_PfwYC","search-input":"PivotTableEditorPanel_search-input_dIblf",searchInput:"PivotTableEditorPanel_search-input_dIblf","search-icon":"PivotTableEditorPanel_search-icon_IxH60",searchIcon:"PivotTableEditorPanel_search-icon_IxH60","editor-panel":"PivotTableEditorPanel_editor-panel_vAibh",editorPanel:"PivotTableEditorPanel_editor-panel_vAibh","axis-fields-wrapper":"PivotTableEditorPanel_axis-fields-wrapper_ELEeU",axisFieldsWrapper:"PivotTableEditorPanel_axis-fields-wrapper_ELEeU","data-source-wrapper":"PivotTableEditorPanel_data-source-wrapper_GbDx0",dataSourceWrapper:"PivotTableEditorPanel_data-source-wrapper_GbDx0","data-source-label":"PivotTableEditorPanel_data-source-label_I7O6T",dataSourceLabel:"PivotTableEditorPanel_data-source-label_I7O6T","data-source-space":"PivotTableEditorPanel_data-source-space_bSKVO",dataSourceSpace:"PivotTableEditorPanel_data-source-space_bSKVO","data-source-location":"PivotTableEditorPanel_data-source-location_hW_MF",dataSourceLocation:"PivotTableEditorPanel_data-source-location_hW_MF","data-source-refresh":"PivotTableEditorPanel_data-source-refresh_vxOJ3",dataSourceRefresh:"PivotTableEditorPanel_data-source-refresh_vxOJ3"};let s=a},52941:function(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>s});var n=i(31627),o=i.n(n),r=i(96384),a=i.n(r)()(o());a.push([e.id,".ProtectionPanel_body_iifOD{align-items:flex-start;display:flex;flex-direction:column;gap:8px;height:100%;padding:8px 16px 0 15px}",""]),a.locals={body:"ProtectionPanel_body_iifOD"};let s=a},44435:function(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>s});var n=i(31627),o=i.n(n),r=i(96384),a=i.n(r)()(o());a.push([e.id,".ProtectionRuleData_rule_Bfc1P{padding:6px 8px}.ProtectionRuleData_rule-more-icon_JISNo{background-image:url(webman/3rdparty/Spreadsheet/images/_Asset/1x/_SpreadSheet/icon_history_more.png?dc9d014a);background-position-x:10px;background-repeat:no-repeat}.ProtectionRuleData_rule-more_zoIvg{float:right;margin-right:3px}.ProtectionRuleData_rule-title_cYitp{color:var(--v-color-font-tier1);font-size:var(--v-font-size-tier1);font-weight:var(--v-font-weight-bold);line-height:20px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:calc(100% - 16px)}.ProtectionRuleData_rule-scope_X81Mk,.ProtectionRuleData_rule-state_oc_gn{color:var(--v-color-font-tier2)}.ProtectionRuleData_rule-scope_X81Mk,.ProtectionRuleData_rule-state_oc_gn,.ProtectionRuleData_rule-state-view_qi3qG{font-size:var(--v-font-size-tier1);line-height:20px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:calc(100% - 16px)}.ProtectionRuleData_rule-state-view_qi3qG{color:#f2616d}@media (min-resolution:144dpi){.ProtectionRuleData_rule-more-icon_JISNo{background-image:url(webman/3rdparty/Spreadsheet/images/_Asset/2x/_SpreadSheet/icon_history_more.png?bc4726dd);background-size:3px 80px}}",""]),a.locals={rule:"ProtectionRuleData_rule_Bfc1P","rule-more-icon":"ProtectionRuleData_rule-more-icon_JISNo",ruleMoreIcon:"ProtectionRuleData_rule-more-icon_JISNo","rule-more":"ProtectionRuleData_rule-more_zoIvg",ruleMore:"ProtectionRuleData_rule-more_zoIvg","rule-title":"ProtectionRuleData_rule-title_cYitp",ruleTitle:"ProtectionRuleData_rule-title_cYitp","rule-scope":"ProtectionRuleData_rule-scope_X81Mk",ruleScope:"ProtectionRuleData_rule-scope_X81Mk","rule-state":"ProtectionRuleData_rule-state_oc_gn",ruleState:"ProtectionRuleData_rule-state_oc_gn","rule-state-view":"ProtectionRuleData_rule-state-view_qi3qG",ruleStateView:"ProtectionRuleData_rule-state-view_qi3qG"};let s=a},4711:function(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>s});var n=i(31627),o=i.n(n),r=i(96384),a=i.n(r)()(o());a.push([e.id,".ProtectionRuleDataView_data-view_lz8kV{border-top:1px solid #e2e4e6;height:100%;width:100%}.ProtectionRuleDataView_empty-text_TaAGY{color:var(--v-color-font-tier2);font-size:var(--v-font-size-tier1)}",""]),a.locals={"data-view":"ProtectionRuleDataView_data-view_lz8kV",dataView:"ProtectionRuleDataView_data-view_lz8kV","empty-text":"ProtectionRuleDataView_empty-text_TaAGY",emptyText:"ProtectionRuleDataView_empty-text_TaAGY"};let s=a},10798:function(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>s});var n=i(31627),o=i.n(n),r=i(96384),a=i.n(r)()(o());a.push([e.id,".SettingWindow_field-set_Q2vCA .v-fieldset-title-wrapper:hover{color:#00a282}",""]),a.locals={"field-set":"SettingWindow_field-set_Q2vCA",fieldSet:"SettingWindow_field-set_Q2vCA"};let s=a},49977:function(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>s});var n=i(31627),o=i.n(n),r=i(96384),a=i.n(r)()(o());a.push([e.id,".ValidWindow_field-set_Lz4eI .v-fieldset-title-wrapper{font-weight:700}.ValidWindow_list-item-icon-button_n6gK9{padding:2px 0}.ValidWindow_icon_SOkKJ{background-image:url(webman/3rdparty/Spreadsheet/images/_Asset/1x/_SpreadSheet/trigger_select_range.png?fc5f72c5)}.ValidWindow_separator_NrOCq{font-size:13px;text-align:center}.ValidWindow_fbar_STQvX{margin-left:auto;padding-right:24px}@media (min-resolution:144dpi){.ValidWindow_icon_SOkKJ{background-image:url(webman/3rdparty/Spreadsheet/images/_Asset/2x/_SpreadSheet/trigger_select_range.png?d919e069);background-size:24px 96px}}",""]),a.locals={"field-set":"ValidWindow_field-set_Lz4eI",fieldSet:"ValidWindow_field-set_Lz4eI","list-item-icon-button":"ValidWindow_list-item-icon-button_n6gK9",listItemIconButton:"ValidWindow_list-item-icon-button_n6gK9",icon:"ValidWindow_icon_SOkKJ",separator:"ValidWindow_separator_NrOCq",fbar:"ValidWindow_fbar_STQvX"};let s=a},83192:function(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>s});var n=i(31627),o=i.n(n),r=i(96384),a=i.n(r)()(o());a.push([e.id,".CandidateList_list_sGcVV{overflow:hidden}.CandidateList_loading-wrapper_zUVko{border:none;box-shadow:none;height:60px}.CandidateList_icon_vMLmm{background-image:url(webman/3rdparty/Spreadsheet/images/_Component/1x/_Common/icon_users_groups.png?fad56b20)}.CandidateList_icon_vMLmm.CandidateList_user_xaiJM{background-position:0 0}.CandidateList_icon_vMLmm.CandidateList_group_AOZ6r{background-position:0 -24px}.CandidateList_icon_vMLmm.CandidateList_channel__Sln2{background-position:0 -48px}@media (min-resolution:144dpi){.CandidateList_icon_vMLmm{background-image:url(webman/3rdparty/Spreadsheet/images/_Component/2x/_Common/icon_users_groups.png?0c86b7a1);background-size:24px 72px}}",""]),a.locals={list:"CandidateList_list_sGcVV","loading-wrapper":"CandidateList_loading-wrapper_zUVko",loadingWrapper:"CandidateList_loading-wrapper_zUVko",icon:"CandidateList_icon_vMLmm",user:"CandidateList_user_xaiJM",group:"CandidateList_group_AOZ6r",channel:"CandidateList_channel__Sln2"};let s=a},39129:function(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>s});var n=i(31627),o=i.n(n),r=i(96384),a=i.n(r)()(o());a.push([e.id,".v-btn.commentButtons_btn_r0TMV{height:24px;width:24px}.v-btn.commentButtons_btn_r0TMV:hover{background-position:0 -24px}.v-btn.commentButtons_btn_r0TMV:active,.v-btn.commentButtons_btn_r0TMV.v-btn-menu-shown{background-position:0 -48px}.v-btn.commentButtons_btn-resolve_jSOnX{background-image:url(webman/3rdparty/Spreadsheet/images/_Asset/1x/_Common/icon_comment_resolve.png?98cc4a08);margin-right:2px}.v-btn.commentButtons_btn-resolve_jSOnX.commentButtons_resolved_rmEvL{background-position:0 -48px}.v-btn.commentButtons_btn-resolve_jSOnX.commentButtons_resolved_rmEvL:hover{background-position:0 -72px}.v-btn.commentButtons_btn-reject_ObNLa{background-image:url(webman/3rdparty/Spreadsheet/images/_Asset/1x/_Common/icon_suggestion_deny.png?9dc2c6cc)}@media (min-resolution:144dpi){.v-btn.commentButtons_btn-resolve_jSOnX{background-image:url(webman/3rdparty/Spreadsheet/images/_Asset/2x/_Common/icon_comment_resolve.png?2d750b67);background-size:24px 96px}.v-btn.commentButtons_btn-reject_ObNLa{background-image:url(webman/3rdparty/Spreadsheet/images/_Asset/2x/_Common/icon_suggestion_deny.png?d3c6c2d7);background-size:24px 96px}}",""]),a.locals={btn:"commentButtons_btn_r0TMV","btn-resolve":"commentButtons_btn-resolve_jSOnX",btnResolve:"commentButtons_btn-resolve_jSOnX",resolved:"commentButtons_resolved_rmEvL","btn-reject":"commentButtons_btn-reject_ObNLa",btnReject:"commentButtons_btn-reject_ObNLa"};let s=a},20492:function(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>s});var n=i(31627),o=i.n(n),r=i(96384),a=i.n(r)()(o());a.push([e.id,".FormulaSyntax_expandable-item_TrMtZ{background-color:var(--v-color-white);border:1px solid #d8dadc;border-radius:var(--v-border-radius-100);box-shadow:0 2px 8px #00000040;color:#2e3032;font-size:var(--v-font-size-tier1);font-weight:var(--v-font-weight-normal);line-height:var(--v-line-height-100);overflow-wrap:break-word;position:fixed;-webkit-user-select:text;user-select:text;width:340px;z-index:303}.FormulaSyntax_top_caYzg{align-items:center;display:flex;padding:12px 16px}.FormulaSyntax_formula-syntax_zKT7Z{flex:none;font-weight:var(--v-font-weight-bold);margin:0 8px 0 0;width:248px}.FormulaSyntax_toggle-img_EKVDr{margin:0 4px 0 0}.FormulaSyntax_close-img_DLidm,.FormulaSyntax_toggle-img_EKVDr{cursor:pointer;flex:none}.FormulaSyntax_hr_SLvVg{background-color:#e2e4e6;border:0;height:1px;margin:0 8px}.FormulaSyntax_bottom_APiMN{padding:12px 16px 16px}.FormulaSyntax_learn-more_z2ZKm{color:#2e3032}.FormulaSyntax_learn-more_z2ZKm:hover{color:#0b8be5}.FormulaSyntax_learn-more_z2ZKm:active{color:#007ed9}.FormulaSyntax_formula-example_YQhvu{margin:16px 0}.FormulaSyntax_formula-arguments_WNYCX{display:flex;flex-direction:column;gap:16px}.FormulaSyntax_section-name_Achqw{margin:0 0 8px}.FormulaSyntax_rounded-box_HV7UO{background-color:#f6f8fa;border-radius:var(--v-border-radius-100);padding:5px 10px;white-space:pre-line}.FormulaSyntax_green-word_hQv_o{color:#2db27b;font-weight:var(--v-font-weight-bold)}.FormulaSyntax_red-asterisk_D8xji{color:#f2616d}.FormulaSyntax_green-background_oi3PX{background-color:#2db27b1a}.FormulaSyntax_question_sww6L{background-color:#26986e;cursor:pointer;padding:2px 4px;position:fixed;z-index:109}",""]),a.locals={"expandable-item":"FormulaSyntax_expandable-item_TrMtZ",expandableItem:"FormulaSyntax_expandable-item_TrMtZ",top:"FormulaSyntax_top_caYzg","formula-syntax":"FormulaSyntax_formula-syntax_zKT7Z",formulaSyntax:"FormulaSyntax_formula-syntax_zKT7Z","toggle-img":"FormulaSyntax_toggle-img_EKVDr",toggleImg:"FormulaSyntax_toggle-img_EKVDr","close-img":"FormulaSyntax_close-img_DLidm",closeImg:"FormulaSyntax_close-img_DLidm",hr:"FormulaSyntax_hr_SLvVg",bottom:"FormulaSyntax_bottom_APiMN","learn-more":"FormulaSyntax_learn-more_z2ZKm",learnMore:"FormulaSyntax_learn-more_z2ZKm","formula-example":"FormulaSyntax_formula-example_YQhvu",formulaExample:"FormulaSyntax_formula-example_YQhvu","formula-arguments":"FormulaSyntax_formula-arguments_WNYCX",formulaArguments:"FormulaSyntax_formula-arguments_WNYCX","section-name":"FormulaSyntax_section-name_Achqw",sectionName:"FormulaSyntax_section-name_Achqw","rounded-box":"FormulaSyntax_rounded-box_HV7UO",roundedBox:"FormulaSyntax_rounded-box_HV7UO","green-word":"FormulaSyntax_green-word_hQv_o",greenWord:"FormulaSyntax_green-word_hQv_o","red-asterisk":"FormulaSyntax_red-asterisk_D8xji",redAsterisk:"FormulaSyntax_red-asterisk_D8xji","green-background":"FormulaSyntax_green-background_oi3PX",greenBackground:"FormulaSyntax_green-background_oi3PX",question:"FormulaSyntax_question_sww6L"};let s=a},64891:function(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>s});var n=i(31627),o=i.n(n),r=i(96384),a=i.n(r)()(o());a.push([e.id,".FunctionMenu_function-menu_l2hlP{overflow:hidden;position:fixed;--after-list-height:43px;--v-menu-line-height__title:30px;--v-menu-margin__divider:6px 0;--v-menu-height__divider:1px}.FunctionMenu_ai-item_F7vUF{align-items:center;display:flex;gap:6px}.FunctionMenu_ai-item-text_MdDMs{padding:0}",""]),a.locals={"function-menu":"FunctionMenu_function-menu_l2hlP",functionMenu:"FunctionMenu_function-menu_l2hlP","ai-item":"FunctionMenu_ai-item_F7vUF",aiItem:"FunctionMenu_ai-item_F7vUF","ai-item-text":"FunctionMenu_ai-item-text_MdDMs",aiItemText:"FunctionMenu_ai-item-text_MdDMs"};let s=a},17855:function(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>s});var n=i(31627),o=i.n(n),r=i(96384),a=i.n(r)()(o());a.push([e.id,'/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%}body{margin:0}main{display:block}h1{font-size:2em;margin:.67em 0}hr{box-sizing:initial;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:#0000}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:initial}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:initial}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details{display:block}summary{display:list-item}[hidden],template{display:none}body{color:var(--v-color-font-tier1);font-family:var(--v-font-family-base);font-size:var(--v-font-size-tier1);font-variant-ligatures:none}body:lang(zh-TW){font-family:var(--v-font-family-zh-tw)}body:lang(zh-CN){font-family:var(--v-font-family-zh-cn)}body:lang(ja){font-family:var(--v-font-family-ja)}blockquote,body,dd,div,dl,dt,fieldset,form,h1,h2,h3,h4,h5,h6,html,input,li,ol,p,pre,td,th,ul{margin:0;padding:0}ul{list-style:none}ul li{margin:0;padding:0}:focus{outline:none!important;outline:0}[v-cloak]{display:none}.affix-wrapper .affix-inner{z-index:var(--v-z-index-affix-inner)}.adv-columns{--v-adv-columns-margin-right__column:40px;--v-adv-columns-margin-right__last-column:0;--v-adv-columns-custom:false;display:flex;flex-direction:row;overflow:hidden}.adv-columns .adv-column{flex:1 1 50%;margin-right:var(--v-adv-columns-margin-right__column);overflow:hidden}.adv-columns .adv-column:last-child{margin-right:var(--v-adv-columns-margin-right__last-column)}.adv-form{--v-adv-form-font-size:var(--v-font-size-tier1);--v-adv-form-line-height:var(--v-line-height-100);--v-adv-form-color:var(--v-color-font-tier1);--v-adv-form-margin--mobile:0 0 12px 0;--v-adv-form-margin-right__label:8px;--v-adv-form-line-height__label:var(--v-line-height-100);--v-adv-form-padding__label:4px 0;--v-adv-form-padding__value:4px 0;--v-adv-form-custom:false;color:var(--v-adv-form-color);display:grid;font-size:var(--v-adv-form-font-size);grid-template-columns:auto 1fr;line-height:var(--v-adv-form-line-height)}.adv-form.mobile .adv-form-label,.adv-form.mobile .adv-form-value{grid-column-end:3;grid-column-start:1}.adv-form.mobile .adv-form-value{margin:var(--v-adv-form-margin--mobile)}.adv-form .adv-form-label{grid-column-end:2;grid-column-start:1;line-height:var(--v-adv-form-line-height__label);margin-right:var(--v-adv-form-margin-right__label);padding:var(--v-adv-form-padding__label)}.adv-form .adv-form-value{grid-column-end:3;grid-column-start:2;overflow:hidden;padding:var(--v-adv-form-padding__value);text-overflow:ellipsis;white-space:nowrap}.adv-form .adv-form-value.multiple-line{overflow:visible;text-overflow:clip;white-space:normal}.adv-grid{--v-adv-grid-border-radius:var(--v-border-radius-200);--v-adv-grid-border:1px solid #323c4680;--v-adv-grid-border-width:1px;--v-adv-grid-bkg-color:var(--v-color-white);--v-adv-grid-bkg-color__row--hover:var(--v-item-bg-tier3);--v-adv-grid-padding__row-hover-action:0 0 0 6px;--v-adv-grid-padding__cell-wrapper:0 8px 0 0;--v-adv-grid-padding__cell:6px 0 6px 0;--v-adv-grid-padding__cell-wrapper--first:0 8px 0 8px;--v-adv-grid-margin-left__sort-icon:4px;--v-adv-grid-margin-left__head-cell-tip:6px;--v-adv-grid-bkg-color__head:#323c4680;--v-adv-grid-border__head:none;--v-adv-grid-color__head-cell:var(--v-color-white);--v-adv-grid-line-height__head-cell:var(--v-line-height-100);--v-adv-grid-font-weight__head-cell:var(--v-font-weight-normal);--v-adv-grid-height__head-cell:var(--v-line-height-100);--v-adv-grid-font-size__head-cell:var(--v-font-size-tier1);--v-adv-grid-padding-top__head-cell:6px;--v-adv-grid-padding-right__head-cell:8px;--v-adv-grid-padding-bottom__head-cell:6px;--v-adv-grid-padding-left__head-cell:0;--v-adv-grid-padding-left__first-head-cell:8px;--v-adv-grid-line-height__cell:var(--v-line-height-100);--v-adv-grid-font-size__cell:var(--v-font-size-tier1);--v-adv-grid-color__cell:#414b55;--v-adv-grid-bkg-color__cell:var(--v-color-white);--v-adv-grid-padding-left__first-cell:8px;--v-adv-grid-border-radius__last-cell:var(--v-border-radius-100);--v-adv-grid-line-height__empty-body:var(--v-line-height-50);--v-adv-grid-color__empty-body:var(--v-color-font-tier2);--v-adv-grid-padding__empty-body:6px 8px 6px 8px;--v-adv-grid-custom:false;background-color:var(--v-adv-grid-bkg-color);border-collapse:initial;border-radius:var(--v-adv-grid-border-radius);border-spacing:0;border-width:var(--v-adv-grid-border-width);border:var(--v-adv-grid-border);table-layout:fixed}.adv-grid .empty-body-content{align-items:center;color:var(--v-adv-grid-color__empty-body);display:flex;flex-direction:row;justify-content:center;line-height:var(--v-adv-grid-line-height__empty-body);padding:var(--v-adv-grid-padding__empty-body)}.adv-grid tr.table-head-row{background-color:var(--v-adv-grid-bkg-color)}.adv-grid .adv-grid-thead th.table-head .head-cell{cursor:pointer}.adv-grid .adv-grid-thead th.table-head .head-cell.disable-sort{cursor:default}.adv-grid th.table-head{background-color:var(--v-adv-grid-bkg-color__head);border:var(--v-adv-grid-border__head)}.adv-grid th.table-head .head-cell{color:var(--v-adv-grid-color__head-cell);display:flex;flex-direction:row;font-size:var(--v-adv-grid-font-size__head-cell);font-weight:var(--v-adv-grid-font-weight__head-cell);height:var(--v-adv-grid-height__head-cell);line-height:var(--v-adv-grid-line-height__head-cell);padding:calc(var(--v-adv-grid-padding-top__head-cell) - var(--v-adv-grid-border-width)) var(--v-adv-grid-padding-right__head-cell) var(--v-adv-grid-padding-bottom__head-cell) var(--v-adv-grid-padding-left__head-cell);text-align:left}.adv-grid th.table-head .head-cell .head-cell-content{flex:0 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.adv-grid th.table-head .head-cell:hover .sort-icon{display:inline-block}.adv-grid th.table-head .head-cell .sort-icon{display:none;flex:0 0 auto;margin-left:var(--v-adv-grid-margin-left__sort-icon)}.adv-grid th.table-head .head-cell .sort-icon.activate{display:inline-block}.adv-grid th.table-head .head-cell .head-cell-tip{flex:0 0 auto;margin-left:var(--v-adv-grid-margin-left__head-cell-tip)}.adv-grid th.table-head:first-child .head-cell{padding-left:var(--v-adv-grid-padding-left__first-head-cell)}.adv-grid .adv-grid-body tr.table-row .row-hover-action{display:none;flex:0 0 auto}.adv-grid .adv-grid-body tr.table-row.keep-activate,.adv-grid .adv-grid-body tr.table-row:hover{background-color:var(--v-adv-grid-bkg-color__row--hover)}.adv-grid .adv-grid-body tr.table-row.keep-activate td.table-cell .row-hover-action,.adv-grid .adv-grid-body tr.table-row:hover td.table-cell .row-hover-action{display:flex;flex-direction:row;margin-left:auto;padding:var(--v-adv-grid-padding__row-hover-action)}.adv-grid .adv-grid-body tr.table-row td.table-cell{border-bottom:none}.adv-grid .adv-grid-body tr.table-row td.table-cell .cell-wrapper{align-items:center;display:flex;flex-direction:row;padding:var(--v-adv-grid-padding__cell-wrapper)}.adv-grid .adv-grid-body tr.table-row td.table-cell .cell{align-items:center;color:var(--v-adv-grid-color__cell);display:block;flex:1 1 auto;font-size:var(--v-adv-grid-font-size__cell);line-height:var(--v-adv-grid-line-height__cell);overflow:hidden;padding:var(--v-adv-grid-padding__cell);text-align:left;text-overflow:ellipsis;white-space:nowrap}.adv-grid .adv-grid-body tr.table-row td.table-cell:first-child .cell-wrapper{padding:var(--v-adv-grid-padding__cell-wrapper--first)}.adv-grid .adv-grid-body tr.table-row:last-child td.table-cell:first-child .cell{border-bottom-left-radius:var(--v-adv-grid-border-radius__last-cell);overflow:hidden}.adv-grid .adv-grid-body tr.table-row:last-child td.table-cell:last-child .cell{border-bottom-right-radius:var(--v-adv-grid-border-radius__last-cell);overflow:hidden}.v-btn.v-btn-styleless.v-avatar{--v-avatar-size--normal:48px;--v-avatar-size--small:32px;--v-avatar-size--large:60px;--v-avatar-font-size--small:14px;--v-avatar-font-size--normal:14px;--v-avatar-font-size--large:28px;--v-avatar-size__rounded-icon:16px;--v-avatar-bkg-color__rounded-icon:#abb5c2;--v-avatar-bottom__rounded-icon:-2px;--v-avatar-right__rounded-icon:-2px;--v-avatar-size__user-icon:12px;--v-avatar-bkg-color--hover:#fff3;--v-avatar-bkg-color--active:#fff3;background-color:var(--bkg-color);border-radius:50%;color:var(--front-color);position:relative}.v-btn.v-btn-styleless.v-avatar--normal{height:var(--v-avatar-size--normal);width:var(--v-avatar-size--normal)}.v-btn.v-btn-styleless.v-avatar--normal .v-btn-text{font-size:var(--v-avatar-font-size--normal);line-height:var(--v-avatar-size--normal)}.v-btn.v-btn-styleless.v-avatar--small{height:var(--v-avatar-size--small);width:var(--v-avatar-size--small)}.v-btn.v-btn-styleless.v-avatar--small .v-btn-text{font-size:var(--v-avatar-font-size--small);line-height:var(--v-avatar-size--small)}.v-btn.v-btn-styleless.v-avatar--large{height:var(--v-avatar-size--large);width:var(--v-avatar-size--large)}.v-btn.v-btn-styleless.v-avatar--large .v-btn-text{font-size:var(--v-avatar-font-size--large);line-height:var(--v-avatar-size--large)}.v-btn.v-btn-styleless.v-avatar .rounded-icon{align-items:center;background-color:var(--v-avatar-bkg-color__rounded-icon);border-radius:50%;bottom:var(--v-avatar-bottom__rounded-icon);display:flex;height:var(--v-avatar-size__rounded-icon);justify-content:center;position:absolute;right:var(--v-avatar-right__rounded-icon);width:var(--v-avatar-size__rounded-icon)}.v-btn.v-btn-styleless.v-avatar .avatar-user{background-image:url(webman/3rdparty/Spreadsheet/dist/assets/images/svg/cate_icn_user.svg);background-position:0 -12px;background-size:12px 24px;height:var(--v-avatar-size__user-icon);width:var(--v-avatar-size__user-icon)}.v-btn.v-btn-styleless.v-avatar.v-btn-disabled{background-color:var(--bkg-color);color:var(--front-color)}.v-btn.v-btn-styleless.v-avatar.v-btn-disabled .v-btn-text{opacity:1}.v-btn.v-btn-styleless.v-avatar:hover{background-color:var(--bkg-color)}.v-btn.v-btn-styleless.v-avatar:hover .v-btn-text{background-color:var(--v-avatar-bkg-color--hover);color:var(--front-color)}.v-btn.v-btn-styleless.v-avatar:active{background-color:var(--bkg-color)}.v-btn.v-btn-styleless.v-avatar:active .v-btn-text{background-color:var(--v-avatar-bkg-color--active);color:var(--front-color)}.layout-alert-bar{background-color:var(--v-color-white)}.v-alert-bar{--v-alert-bar-grey-color--normal:var(--v-color-font-tier1);--v-alert-bar-grey-bkg-color--normal:#99b1cc1a;--v-alert-bar-grey-border-color--normal:#99b1cc00;--v-alert-bar-blue-color--normal:var(--v-color-blue);--v-alert-bar-blue-bkg-color--normal:#0099e61a;--v-alert-bar-blue-border-color--normal:#0099e600;--v-alert-bar-red-color--normal:var(--v-color-red);--v-alert-bar-red-bkg-color--normal:#f2616d1a;--v-alert-bar-red-border-color--normal:#f2616d00;--v-alert-bar-orange-color--normal:var(--v-color-orange);--v-alert-bar-orange-bkg-color--normal:#fa90251a;--v-alert-bar-orange-border-color--normal:#fa902500;--v-alert-bar-green-color--normal:var(--v-color-green);--v-alert-bar-green-bkg-color--normal:#47b2121a;--v-alert-bar-green-border-color--normal:#47b21200;--v-alert-bar-width:100%;--v-alert-bar-font-size:var(--v-font-size-tier1);--v-alert-bar-line-height__text:20px;--v-alert-bar-border-radius:var(--v-border-radius-200);--v-alert-bar-border-width:0px;--v-alert-bar-margin__text:0 0 0 8px;--v-alert-bar-margin-right__text--has-btn:16px;--v-alert-bar-margin-right__text--has-link:16px;--v-alert-bar-margin-right__text--has-close:8px;--v-alert-bar-margin-left__text--has-icon:6px;--v-alert-bar-padding-top:4px;--v-alert-bar-padding-bottom:4px;--v-alert-bar-padding-right:16px;--v-alert-bar-padding-left:8px;--v-alert-bar-padding-top__has-btn:6px;--v-alert-bar-padding-bottom__has-btn:6px;--v-alert-bar-padding-left--has-icon:8px;--v-alert-bar-padding-right--has-btn:12px;--v-alert-bar-padding-right--has-close:12px;--v-alert-bar-padding-right--has-link:16px;--v-alert-bar-padding-left__action:0;--v-alert-bar-padding-right__action:0;--v-alert-bar-padding-right__link-without-close:4px;--v-alert-bar-padding__text:2px 0;--v-alert-bar-padding__text--has-btn:3px 0;--v-alert-bar-color__action__normal:var(--v-color-action-normal);--v-alert-bar-color__action__hover:var(--v-color-action-hover);--v-alert-bar-color__action__active:var(--v-color-action-active);--v-alert-bar-color__action__disabled:var(--v-color-action-disabled);--v-alert-bar-text-decoration__action-link:underline;--v-alert-bar-border__action-link:none;--v-alert-bar-background-color__action-link:#0000;--v-alert-bar-outline__action-link:none;--v-alert-bar-width__close-btn:20px;--v-alert-bar-height__close-btn:20px;align-items:center;border-radius:var(--v-alert-bar-border-radius);box-sizing:border-box;display:flex;flex-direction:row;padding:calc(var(--v-alert-bar-padding-top) - var(--v-alert-bar-border-width)) calc(var(--v-alert-bar-padding-right) - var(--v-alert-bar-border-width)) calc(var(--v-alert-bar-padding-bottom) - var(--v-alert-bar-border-width)) calc(var(--v-alert-bar-padding-left) - var(--v-alert-bar-border-width));width:var(--v-alert-bar-width)}.v-alert-bar.v-alert-bar-grey{background-color:var(--v-alert-bar-grey-bkg-color--normal);border:var(--v-alert-bar-border-width) solid var(--v-alert-bar-grey-border-color--normal);color:var(--v-alert-bar-grey-color--normal)}.v-alert-bar.v-alert-bar-blue{background-color:var(--v-alert-bar-blue-bkg-color--normal);border:var(--v-alert-bar-border-width) solid var(--v-alert-bar-blue-border-color--normal);color:var(--v-alert-bar-blue-color--normal)}.v-alert-bar.v-alert-bar-green{background-color:var(--v-alert-bar-green-bkg-color--normal);border:var(--v-alert-bar-border-width) solid var(--v-alert-bar-green-border-color--normal);color:var(--v-alert-bar-green-color--normal)}.v-alert-bar.v-alert-bar-orange{background-color:var(--v-alert-bar-orange-bkg-color--normal);border:var(--v-alert-bar-border-width) solid var(--v-alert-bar-orange-border-color--normal);color:var(--v-alert-bar-orange-color--normal)}.v-alert-bar.v-alert-bar-red{background-color:var(--v-alert-bar-red-bkg-color--normal);border:var(--v-alert-bar-border-width) solid var(--v-alert-bar-red-border-color--normal);color:var(--v-alert-bar-red-color--normal)}.v-alert-bar .alert-bar-status-icon{background-image:image-set(url("webman/3rdparty/Spreadsheet/dist/assets/images/1x/alert_status.png") 1x,url("webman/3rdparty/Spreadsheet/dist/assets/images/2x/alert_status.png") 1.5x);background-size:24px}.v-alert-bar .alert-bar-status-icon.alert-bar-status-info{background-position:0 0}.v-alert-bar .alert-bar-status-icon.alert-bar-status-processing{background-position:0 -24px}.v-alert-bar .alert-bar-status-icon.alert-bar-status-normal{background-position:0 -48px}.v-alert-bar .alert-bar-status-icon.alert-bar-status-warning{background-position:0 -72px}.v-alert-bar .alert-bar-status-icon.alert-bar-status-error{background-position:0 -96px}.v-alert-bar.has-btn{padding-bottom:var(--v-alert-bar-padding-bottom__has-btn);padding-right:var(--v-alert-bar-padding-right--has-btn);padding-top:var(--v-alert-bar-padding-top__has-btn)}.v-alert-bar.has-link{padding-right:var(--v-alert-bar-padding-right--has-link)}.v-alert-bar.has-close{padding-right:var(--v-alert-bar-padding-right--has-close)}.v-alert-bar.has-icon{padding-left:calc(var(--v-alert-bar-padding-left--has-icon) - var(--v-alert-bar-border-width))}.v-alert-bar .v-alert-bar-text{display:inline-block;font-size:var(--v-alert-bar-font-size);line-height:var(--v-alert-bar-line-height__text);margin:var(--v-alert-bar-margin__text);padding:var(--v-alert-bar-padding__text);vertical-align:top;width:var(--v-alert-bar-width)}.v-alert-bar .v-alert-bar-text.has-close{margin-right:var(--v-alert-bar-margin-right__text--has-close)}.v-alert-bar .v-alert-bar-text.has-btn{margin-right:var(--v-alert-bar-margin-right__text--has-btn);padding:var(--v-alert-bar-padding__text--has-btn)}.v-alert-bar .v-alert-bar-text.has-link{margin-right:var(--v-alert-bar-margin-right__text--has-link)}.v-alert-bar .v-alert-bar-text.has-icon{margin-left:var(--v-alert-bar-margin-left__text--has-icon)}.v-alert-bar .v-alert-bar-close{background-image:image-set(url("webman/3rdparty/Spreadsheet/dist/assets/images/1x/alert_close.png") 1x,url("webman/3rdparty/Spreadsheet/dist/assets/images/2x/alert_close.png") 1.5x);background-size:20px;cursor:pointer;display:inline-block;height:var(--v-alert-bar-height__close-btn);vertical-align:top;width:var(--v-alert-bar-width__close-btn)}.v-alert-bar .v-alert-bar-close:hover{background-position:0 -20px}.v-alert-bar .v-alert-bar-close:active{background-position:0 -40px}.v-alert-bar .v-alert-bar-action{color:var(--v-alert-bar-color__action__normal);font-size:var(--v-alert-bar-font-size);line-height:var(--v-alert-bar-line-height__text);padding-left:var(--v-alert-bar-padding-left__action);padding-right:var(--v-alert-bar-padding-right__action);text-align:center}.v-alert-bar .v-alert-bar-action__link{background-color:var(--v-alert-bar-background-color__action-link);border:var(--v-alert-bar-border__action-link);outline:var(--v-alert-bar-outline__action-link);-webkit-text-decoration:var(--v-alert-bar-text-decoration__action-link);text-decoration:var(--v-alert-bar-text-decoration__action-link);white-space:nowrap}.v-alert-bar .v-alert-bar-action__link:not(.has-close){padding-right:var(--v-alert-bar-padding-right__link-without-close)}.v-alert-bar .v-alert-bar-action:hover{color:var(--v-alert-bar-color__action__hover)}.v-alert-bar .v-alert-bar-action:active,.v-alert-bar .v-alert-bar-action:focus-visible{color:var(--v-alert-bar-color__action__active)}.v-alert-bar .v-alert-bar-action.v-alert-bar-disabled{color:var(--v-alert-bar-color__action__disabled)}.v-alert-bar .v-alert-bar-action:not(.v-alert-bar-disabled){cursor:pointer}.v-alert-bar .right{margin-left:auto;margin-right:8px}.v-alert-bar .right:last-child{margin-right:0}.v-app-bar{--v-app-bar-padding:0 22px 0 24px;--v-app-bar-padding--mobile:0 22px 0 18px;--v-app-bar-height:60px;--v-app-bar-font-weight__app-name:var(--v-font-weight-bold);--v-app-bar-font-size__app-name:20px;--v-app-bar-color__app-name:#1e2832;--v-app-bar-line-height__app-name:26px;--v-app-bar-margin__navbar-items-group:36px;align-items:center;display:flex;flex-direction:row;height:var(--v-app-bar-height);overflow:hidden;padding:var(--v-app-bar-padding)}.v-app-bar--mobile{padding:var(--v-app-bar-padding--mobile)}.v-app-bar__navbar-items-group.v-space.spacing-regular{gap:0;margin-left:var(--v-app-bar-margin__navbar-items-group)}.v-app-bar__navbar-items-group.v-space.spacing-regular .v-navbar-item.v-btn .v-btn-text{padding-bottom:0;padding-top:0}.v-app-bar__title.v-space.spacing-regular{cursor:pointer;flex:0 0 auto;gap:8px}.v-app-bar__hamburger{margin-right:12px}.v-app-bar__app-icon{background-size:32px 32px}.v-app-bar__app-name{color:var(--v-app-bar-color__app-name);font-size:var(--v-app-bar-font-size__app-name);font-weight:var(--v-app-bar-font-weight__app-name);line-height:var(--v-app-bar-line-height__app-name);-webkit-user-select:none;user-select:none}.v-app-bar__right-toolbar.v-space.spacing-regular{flex:1 1 auto;gap:20px;margin-left:auto;overflow:hidden}.v-app-bar__toolbar-buttons.v-space.spacing-regular{flex:1 1 auto;gap:14px}.v-app-bar__toolbar-overflow-list{flex:1 1 auto}.v-app-bar__toolbar-overflow-list .v-overflow-item{margin-right:18px}.v-app-bar__toolbar-overflow-list .v-overflow-item:last-of-type{margin-right:0}.v-app-bar__notify{background-position:0 0}.v-app-bar__help,.v-app-bar__notify{background-image:url(webman/3rdparty/Spreadsheet/dist/assets/images/svg/header_bt_tab.svg);background-size:auto;height:24px;width:24px}.v-app-bar__help{background-position:0 -144px}.v-app-bar__launch{background-image:url(webman/3rdparty/Spreadsheet/dist/assets/images/svg/header_bt_tab.svg);background-position:0 -288px;background-size:auto;height:24px;width:24px}.v-app-bar__more{background-image:image-set(url("webman/3rdparty/Spreadsheet/dist/assets/images/1x/icn_more.png") 1x,url("webman/3rdparty/Spreadsheet/dist/assets/images/2x/icn_more.png") 1.5x)}.v-app-bar-launch-menu{--v-app-bar-launch-menu-padding:8px 0;--v-app-bar-launch-menu-padding__group:0 0 0 20px;--v-app-bar-launch-menu-padding__action:0 10px 0 20px;--v-app-bar-launch-menu-height__action:52px;--v-app-bar-launch-menu-color__action:var(--v-color-action-normal);--v-app-bar-launch-menu-bkg-color__action--active:#eceef0}.v-app-bar-launch-menu.v-menu{padding:var(--v-app-bar-launch-menu-padding)}.v-app-bar-launch-menu .v-app-bar-launch-menu-item-group .v-menu-group-title{padding:var(--v-app-bar-launch-menu-padding__group)}.v-app-bar-launch-menu__action{align-items:center;color:var(--v-app-bar-launch-menu-color__action);cursor:pointer;display:flex;height:var(--v-app-bar-launch-menu-height__action);padding:var(--v-app-bar-launch-menu-padding__action)}.v-app-bar-launch-menu__action:hover{background-color:var(--v-app-bar-launch-menu-bkg-color__action--active)}.v-app-bar-launch-menu-item{--v-app-bar-launch-menu-item-height:52px;--v-app-bar-launch-menu-item-padding:0 10px 0 20px;--v-app-bar-launch-menu-item-size__icon:32px;--v-app-bar-launch-menu-item-margin__title:0 0 0 12px}.v-app-bar-launch-menu-item.v-menu-item{align-items:center;display:flex;height:var(--v-app-bar-launch-menu-item-height);line-height:var(--v-app-bar-launch-menu-item-height__item);padding:var(--v-app-bar-launch-menu-item-padding)}.v-app-bar-launch-menu-item__icon{background-size:24px 24px;height:var(--v-app-bar-launch-menu-item-size__icon);width:var(--v-app-bar-launch-menu-item-size__icon)}.v-app-bar-launch-menu-item__title{margin:var(--v-app-bar-launch-menu-item-margin__title)}.v-navbar-item.v-btn.v-btn-grey,.v-navbar-item.v-btn.v-btn-grey.v-btn-dropdown{--v-navbar-item-height:32px;--v-navbar-item-padding:4px 10px;--v-navbar-item-font-weight:var(--v-font-weight-medium);--v-navbar-item-font-size:var(--v-font-size-tier1);--v-navbar-item-color:var(--v-color-font-tier1);--v-navbar-item-color--hover:var(--v-color-action-hover);--v-navbar-item-color--active:var(--v-color-action-active);--v-navbar-item-line-height:var(--v-line-height-200);background-color:#0000;border:none;color:var(--v-navbar-item-color);font-size:var(--v-navbar-item-font-size);font-weight:var(--v-navbar-item-font-weight);height:var(--v-navbar-item-height);line-height:var(--v-navbar-item-line-height)}.v-navbar-item.v-btn.v-btn-grey .v-btn-text,.v-navbar-item.v-btn.v-btn-grey.v-btn-dropdown .v-btn-text{padding:var(--v-navbar-item-padding)}.v-navbar-item.v-btn.v-btn-grey.v-btn-dropdown:hover,.v-navbar-item.v-btn.v-btn-grey:hover{background-color:#0000;border:none;color:var(--v-navbar-item-color--hover)}.v-navbar-item.v-btn.v-btn-grey.active,.v-navbar-item.v-btn.v-btn-grey.v-btn-dropdown.active,.v-navbar-item.v-btn.v-btn-grey.v-btn-dropdown:active,.v-navbar-item.v-btn.v-btn-grey:active{background-color:#0000;border:none;color:var(--v-navbar-item-color--active)}.app-profile-menu{--v-app-profile-menu-margin__avatar:0 0 6px 0;--v-app-profile-menu-padding:0 0 8px 0;--v-app-profile-menu-line-height__name:var(--v-line-height-200);--v-app-profile-menu-line-height__email:var(--v-line-height-100);--v-app-profile-menu-color__name:var(--v-color-font-tier1);--v-app-profile-menu-color__email:var(--v-color-font-tier2);--v-app-profile-menu-padding__profile-menu-item:24px 0 16px 0;--v-app-profile-menu-color__info-wrapper:4px 0;--v-app-profile-menu-margin__info-wrapper:0 0 4px 0}.app-profile-menu.v-menu{padding:var(--v-app-profile-menu-padding)}.app-profile-menu .profile-menu-item{display:flex;flex-direction:column;height:auto;padding:var(--v-app-profile-menu-padding__profile-menu-item)}.app-profile-menu .profile-menu-item.active{background-color:#0000;cursor:default}.app-profile-menu__info-wrapper{margin:var(--v-app-profile-menu-margin__info-wrapper);padding:var(--v-app-profile-menu-color__info-wrapper);text-align:center}.app-profile-menu__avatar{margin-bottom:var(--v-app-profile-menu-margin__avatar)}.app-profile-menu__name{color:var(--v-app-profile-menu-color__name);line-height:var(--v-app-profile-menu-line-height__name)}.app-profile-menu__email{color:var(--v-app-profile-menu-color__email);line-height:var(--v-app-profile-menu-line-height__email)}.v-window-header-wrapper.standalone .user-menu-btn{background-color:#0000;margin-right:16px}.v-window-header-wrapper.standalone .user-menu-btn:active,.v-window-header-wrapper.standalone .user-menu-btn:hover,.v-window-header-wrapper.standalone .user-menu-btn[disabled]{background-color:#0000;border-color:#0000}.v-page-list-app-window.v-window.mobile-fit{box-shadow:none}.v-page-list-app-window.v-window.mobile-fit .v-window-header-wrapper .v-window-header-title{-webkit-line-clamp:1;word-break:break-all}.v-page-list-app-window.v-window.mobile-fit .v-window-body .page-list-app-window-trap-body .module-list-layout{background-color:var(--v-color-white);position:absolute;width:300px;z-index:var(--v-z-index-page-list-app-window-module-list)}.v-page-list-app-window.v-window.mobile-fit .v-window-body .page-list-app-window-trap-body .module-list-layout.slide-enter,.v-page-list-app-window.v-window.mobile-fit .v-window-body .page-list-app-window-trap-body .module-list-layout.slide-leave-to{transform:translateX(-100%)}.v-page-list-app-window.v-window.mobile-fit .v-window-body .page-list-app-window-trap-body .module-list-layout.slide-enter-active,.v-page-list-app-window.v-window.mobile-fit .v-window-body .page-list-app-window-trap-body .module-list-layout.slide-leave-active{transition:transform .2s ease-in-out}.v-page-list-app-window.v-window.mobile-fit .v-window-body .page-list-app-window-trap-body .module-list-mask{background-color:#0003;height:100%;position:absolute;width:100%;z-index:var(--v-z-index-page-list-app-window-module-list-mask)}.v-page-list-app-window.v-window.mobile-fit .v-window-body .page-list-app-window-trap-body .module-list-mask.fade-enter,.v-page-list-app-window.v-window.mobile-fit .v-window-body .page-list-app-window-trap-body .module-list-mask.fade-leave-to{opacity:0}.v-page-list-app-window.v-window.mobile-fit .v-window-body .page-list-app-window-trap-body .module-list-mask.fade-enter-active,.v-page-list-app-window.v-window.mobile-fit .v-window-body .page-list-app-window-trap-body .module-list-mask.fade-leave-active{transition:opacity .2s ease-in-out}.v-page-list-app-window.v-window .v-window-body{position:relative}.v-page-list-app-window.v-window .v-window-body .page-list-app-window-trap-body{display:flex;flex-direction:column}.v-page-list-app-window.v-window .v-window-body .page-list-app-window-trap-body .page-list-app-top-bar{flex:0 1 auto}.v-page-list-app-window.v-window .v-window-body .page-list-app-window-trap-body .page-list-app-main{display:flex;flex:1 1 auto;flex-direction:row;height:100%}.v-page-list-app-window.v-window .v-window-body .page-list-app-window-trap-body .page-list-app-main .module-list-layout{border-right:1px solid #c6d4e080;box-sizing:border-box;display:flex;flex:0 0 auto;flex-direction:column;height:100%;width:240px}.v-page-list-app-window.v-window .v-window-body .page-list-app-window-trap-body .page-list-app-main .module-list-layout .v-toolbar{flex:0 0 auto}.v-page-list-app-window.v-window .v-window-body .page-list-app-window-trap-body .page-list-app-main .module-list-layout .v-module-list{flex:1 1 auto;height:100%;overflow:hidden}.v-page-list-app-window.v-window .v-window-body .page-list-app-window-trap-body .page-list-app-main .container{flex:1 1 auto;overflow:hidden;position:relative;z-index:0}.v-page-list-app-window.v-window .v-window-body .page-list-app-window-trap-body .page-list-app-main .container .page-list-container-spin{height:100%;left:0;position:absolute;top:0;width:100%}.v-page-list-app-window.v-window .v-window-body .page-list-app-window-trap-body .page-list-app-main .container .page-list-module{height:100%}.v-btn{--v-button-blue-color--normal:var(--v-color-white);--v-button-blue-color--hover:var(--v-color-white);--v-button-blue-color--active:var(--v-color-white);--v-button-blue-color--disabled:var(--v-color-white);--v-button-blue-bkg-color--normal:var(--v-color-blue);--v-button-blue-bkg-color--hover:#0075db;--v-button-blue-bkg-color--active:#006dcc;--v-button-blue-bkg-color--disabled:var(--v-color-blue);--v-button-blue-border-color--normal:var(--v-color-blue);--v-button-blue-border-color--hover:#0062b8;--v-button-blue-border-color--active:#005299;--v-button-blue-border-color--disabled:var(--v-color-blue);--v-button-blue-bkg-color__split--normal:#fff6;--v-button-blue-bkg-color__split--hover:#fff6;--v-button-blue-bkg-color__split--active:#fff6;--v-button-blue-bkg-color__split--disabled:#fff3;--v-button-red-color--normal:var(--v-color-white);--v-button-red-color--hover:var(--v-color-white);--v-button-red-color--active:var(--v-color-white);--v-button-red-color--disabled:var(--v-color-white);--v-button-red-bkg-color--normal:var(--v-color-red);--v-button-red-bkg-color--hover:#d12e2e;--v-button-red-bkg-color--active:#bd1e1e;--v-button-red-bkg-color--disabled:var(--v-color-red);--v-button-red-border-color--normal:var(--v-color-red);--v-button-red-border-color--hover:#a81b1b;--v-button-red-border-color--active:#991818;--v-button-red-border-color--disabled:var(--v-color-red);--v-button-red-bkg-color__split--normal:#fff6;--v-button-red-bkg-color__split--hover:#fff6;--v-button-red-bkg-color__split--active:#fff6;--v-button-red-bkg-color__split--disabled:#fff3;--v-button-orange-color--normal:var(--v-color-white);--v-button-orange-color--hover:var(--v-color-white);--v-button-orange-color--active:var(--v-color-white);--v-button-orange-color--disabled:var(--v-color-white);--v-button-orange-bkg-color--normal:var(--v-color-orange);--v-button-orange-bkg-color--hover:#e67808;--v-button-orange-bkg-color--active:#d96c00;--v-button-orange-bkg-color--disabled:var(--v-color-orange);--v-button-orange-border-color--normal:var(--v-color-orange);--v-button-orange-border-color--hover:#bf6000;--v-button-orange-border-color--active:#ad5700;--v-button-orange-border-color--disabled:var(--v-color-orange);--v-button-orange-bkg-color__split--normal:#fff6;--v-button-orange-bkg-color__split--hover:#fff6;--v-button-orange-bkg-color__split--active:#fff6;--v-button-orange-bkg-color__split--disabled:#fff3;--v-button-green-color--normal:var(--v-color-white);--v-button-green-color--hover:var(--v-color-white);--v-button-green-color--active:var(--v-color-white);--v-button-green-color--disabled:var(--v-color-white);--v-button-green-bkg-color--normal:var(--v-color-green);--v-button-green-bkg-color--hover:#038f08;--v-button-green-bkg-color--active:#008004;--v-button-green-bkg-color--disabled:var(--v-color-green);--v-button-green-border-color--normal:var(--v-color-green);--v-button-green-border-color--hover:#006603;--v-button-green-border-color--active:#005703;--v-button-green-border-color--disabled:var(--v-color-green);--v-button-green-bkg-color__split--normal:#fff6;--v-button-green-bkg-color__split--hover:#fff6;--v-button-green-bkg-color__split--active:#fff6;--v-button-green-bkg-color__split--disabled:#fff3;--v-button-grey-color--normal:var(--v-color-font-tier1);--v-button-grey-color--hover:var(--v-color-font-tier1);--v-button-grey-color--active:var(--v-color-font-tier1);--v-button-grey-color--disabled:var(--v-color-font-tier3);--v-button-grey-bkg-color--normal:#f6f8fa;--v-button-grey-bkg-color--hover:#f6f8fa;--v-button-grey-bkg-color--active:#eceef0;--v-button-grey-bkg-color--disabled:#f6f8fa;--v-button-grey-border-color--normal:#d8dadc;--v-button-grey-border-color--hover:#c4c6c8;--v-button-grey-border-color--active:#c4c6c8;--v-button-grey-border-color--disabled:#d8dadc;--v-button-grey-bkg-color__split--normal:#d8dadc;--v-button-grey-bkg-color__split--hover:#c4c6c8;--v-button-grey-bkg-color__split--active:#c4c6c8;--v-button-grey-bkg-color__split--disabled:#d8dadc;--v-button-action-color--normal:var(--d-theme-default-btn-font-color);--v-button-action-color--hover:var(--d-theme-hover-btn-font-color);--v-button-action-color--active:var(--d-theme-active-btn-font-color);--v-button-action-color--disabled:var(--d-theme-disabled-btn-font-color);--v-button-action-bkg-color--normal:var(--d-theme-default-btn-fallback-color);--v-button-action-bkg-color--hover:var(--d-theme-hover-btn-fallback-color);--v-button-action-bkg-color--active:var(--d-theme-active-btn-fallback-color);--v-button-action-bkg-color--disabled:var(--d-theme-disabled-btn-fallback-color);--v-button-action-border-color--normal:var(--d-theme-default-btn-border-color);--v-button-action-border-color--hover:var(--d-theme-hover-btn-border-color);--v-button-action-border-color--active:var(--d-theme-active-btn-border-color);--v-button-action-border-color--disabled:var(--d-theme-disabled-btn-border-color);--v-button-action-bkg-color__split--normal:#fff6;--v-button-action-bkg-color__split--hover:#fff6;--v-button-action-bkg-color__split--active:#fff6;--v-button-action-bkg-color__split--disabled:#fff3;--v-button-cancel-color--normal:var(--v-color-font-tier1);--v-button-cancel-color--hover:var(--v-color-font-tier1);--v-button-cancel-color--active:var(--v-color-font-tier1);--v-button-cancel-color--disabled:var(--v-color-font-tier3);--v-button-cancel-bkg-color--normal:#f6f8fa;--v-button-cancel-bkg-color--hover:#f6f8fa;--v-button-cancel-bkg-color--active:#eceef0;--v-button-cancel-bkg-color--disabled:#f6f8fa;--v-button-cancel-border-color--normal:#d8dadc;--v-button-cancel-border-color--hover:#c4c6c8;--v-button-cancel-border-color--active:#c4c6c8;--v-button-cancel-border-color--disabled:#d8dadc;--v-button-cancel-bkg-color__split--normal:#d8dadc;--v-button-cancel-bkg-color__split--hover:#c4c6c8;--v-button-cancel-bkg-color__split--active:#c4c6c8;--v-button-cancel-bkg-color__split--disabled:#d8dadc;--v-button-grey-inverse-color--normal:#fff;--v-button-grey-inverse-color--hover:#fff;--v-button-grey-inverse-color--active:#fff;--v-button-grey-inverse-color--disabled:#fff;--v-button-grey-inverse-bkg-color--normal:#333;--v-button-grey-inverse-bkg-color--hover:#000000bf;--v-button-grey-inverse-bkg-color--active:#000000bf;--v-button-grey-inverse-bkg-color--disabled:#333;--v-button-grey-inverse-border-color--normal:#0000;--v-button-grey-inverse-border-color--hover:#0000;--v-button-grey-inverse-border-color--active:#0000;--v-button-grey-inverse-border-color--disabled:#0000;--v-button-grey-inverse-bkg-color__split--normal:#fff6;--v-button-grey-inverse-bkg-color__split--hover:#fff6;--v-button-grey-inverse-bkg-color__split--active:#fff6;--v-button-grey-inverse-bkg-color__split--disabled:#fff3;--v-button-border-action-color--normal:var(--v-color-font-tier1);--v-button-border-action-color--hover:var(--v-color-main);--v-button-border-action-color--active:var(--v-color-main);--v-button-border-action-color--disabled:var(--v-color-font-tier1);--v-button-border-action-bkg-color--normal:#0000;--v-button-border-action-bkg-color--hover:#0000;--v-button-border-action-bkg-color--active:#0000;--v-button-border-action-bkg-color--disabled:#0000;--v-button-border-action-border-color--normal:#e2e4e6;--v-button-border-action-border-color--hover:var(--v-color-main);--v-button-border-action-border-color--active:var(--v-color-main);--v-button-border-action-border-color--disabled:#e2e4e6;--v-button-border-action-bkg-color__split--normal:#d8dadc;--v-button-border-action-bkg-color__split--hover:var(--v-color-main);--v-button-border-action-bkg-color__split--active:var(--v-color-main);--v-button-border-action-bkg-color__split--disabled:#d8dadc;--v-button-height--welcome:42px;--v-button-font-weight:var(--v-font-weight-normal);--v-button-font-size:var(--v-font-size-tier1);--v-button-font-size--welcome:var(--v-font-size-tier2);--v-button-border-radius:3px;--v-button-color--normal:var(--v-color-font-tier1);--v-button-color--hover:var(--v-color-font-tier1);--v-button-color--active:var(--v-color-font-tier1);--v-button-color--disabled:var(--v-color-font-tier1);--v-button-padding__text--welcome:0 24px;--v-button-width__split:1px;--v-button-margin__split:0 2px 0 0;--v-button-margin__icon--icon-text:0;--v-button-padding__text--round-icon:1px;--v-button-border-width:1px;--v-button-width__dropdown:12px;--v-button-height__dropdown:24px;--v-button-padding__dropdown:0 2px 0 0;--v-button-width__icon:30px;--v-button-height__icon:30px;--v-button-padding-left__icon:28px;--v-button-padding__dropdown--split:0 2px;--v-button-padding-right__dropdown:14px;--v-button-min-width__footbar--normal:120px;--v-button-min-width__footbar--cancel:80px;--v-button-min-width__footbar--mobile:0;--v-button-min-width--welcome-normal:180px;--v-button-min-width--welcome-cancel:120px;--v-button-box-shadow__footbar--normal:none;--v-button-box-shadow__footbar--cancel:none;--v-button-box-shadow__footbar--blue:none;--v-button-box-shadow__footbar--red:none;--v-button-box-shadow__footbar--error:0 4px 8px 0 #e6404026;--v-button-border-radius__footbar:100px;--v-button-opacity--disabled:0.4;--v-button-padding__text--icon:0;--v-button-padding__text--icon-dropdown:0;--v-button-padding__text--icon-split:0;--v-button-size-normal-height:30px;--v-button-size-normal-padding__text:0 13px 0 13px;--v-button-size-normal-padding__text--split:0 13px 0 13px;--v-button-size-normal-padding__text--dropdown:0 13px 0 13px;--v-button-size-normal-padding__text--icon:1px 2px;--v-button-size-normal-padding__text--icon-dropdown:1px 4px 1px 2px;--v-button-size-normal-gap__text--icon-dropdown:0;--v-button-size-normal-padding__text--icon-split:1px 2px;--v-button-size-normal-padding__text--icon-text:0 13px 0 5px;--v-button-size-normal-padding__text--icon-text-dropdown:0 13px 0 5px;--v-button-size-normal-gap__text--icon-text-dropdown:2px;--v-button-size-normal-padding__text--icon-text-split:0 13px 0 5px;--v-button-size-normal-gap__text:2px;--v-button-size-small-height:26px;--v-button-size-small-padding__text:0 11px 0 11px;--v-button-size-small-padding__text--split:0 11px 0 11px;--v-button-size-small-padding__text--dropdown:0 11px 0 11px;--v-button-size-small-padding__text--icon:1px 2px;--v-button-size-small-padding__text--icon-dropdown:1px 4px 1px 2px;--v-button-size-small-gap__text--icon-dropdown:0;--v-button-size-small-padding__text--icon-split:1px 2px;--v-button-size-small-padding__text--icon-text:0 11px 0 5px;--v-button-size-small-gap__text--icon-text-dropdown:2px;--v-button-size-small-padding__text--icon-text-dropdown:0 11px 0 5px;--v-button-size-small-padding__text--icon-text-split:0 11px 0 5px;--v-button-size-small-gap__text:2px;border-radius:var(--v-button-border-radius);display:inline-block;font-size:var(--v-button-font-size);font-weight:var(--v-button-font-weight);padding:0;text-align:center;-webkit-user-select:none;user-select:none;vertical-align:top}.v-btn.v-btn-normal{height:var(--v-button-size-normal-height);line-height:var(--v-button-size-normal-height)}.v-btn.v-btn-normal .v-btn-text{gap:var(--v-button-size-normal-gap__text);line-height:calc(var(--v-button-size-normal-height) - var(--v-button-border-width)*2);padding:var(--v-button-size-normal-padding__text)}.v-btn.v-btn-normal.v-btn-display-icon-text .v-btn-text{padding:var(--v-button-size-normal-padding__text--icon-text)}.v-btn.v-btn-normal.v-btn-display-icon-text.v-btn-dropdown .v-btn-text{gap:var(--v-button-size-normal-gap__text--icon-text-dropdown);padding:var(--v-button-size-normal-padding__text--icon-text-dropdown)}.v-btn.v-btn-normal.v-btn-display-icon-text.v-btn-styleless .v-btn-text,.v-btn.v-btn-normal.v-btn-display-icon-text.v-btn-styleless-dropdown .v-btn-text{padding:0}.v-btn.v-btn-normal.v-btn-display-icon-text.v-btn-split .v-btn-text{padding:var(--v-button-size-normal-padding__text--icon-text-split)}.v-btn.v-btn-normal.v-btn-display-icon{background-repeat:no-repeat;flex:0 0 auto;line-height:0}.v-btn.v-btn-normal.v-btn-display-icon .v-btn-text{height:100%;line-height:0;padding:var(--v-button-size-normal-padding__text--icon);width:100%}.v-btn.v-btn-normal.v-btn-display-icon.v-btn-styleless{line-height:0}.v-btn.v-btn-normal.v-btn-display-icon.v-btn-styleless .v-btn-text{line-height:0;padding:0}.v-btn.v-btn-normal.v-btn-display-icon.v-btn-dropdown .v-btn-text,.v-btn.v-btn-normal.v-btn-display-icon.v-btn-styleless-dropdown .v-btn-text{gap:var(--v-button-size-normal-gap__text--icon-dropdown);padding:var(--v-button-size-normal-padding__text--icon-dropdown)}.v-btn.v-btn-normal.v-btn-display-icon.v-btn-split .v-btn-text{padding:var(--v-button-size-normal-padding__text--icon-split)}.v-btn.v-btn-normal.v-btn-split .v-btn-text{padding:var(--v-button-size-normal-padding__text--split)}.v-btn.v-btn-normal.v-btn-dropdown .v-btn-text{padding:var(--v-button-size-normal-padding__text--dropdown)}.v-btn.v-btn-small{height:var(--v-button-size-small-height);line-height:var(--v-button-size-small-height)}.v-btn.v-btn-small .v-btn-text{gap:var(--v-button-size-small-gap__text);line-height:calc(var(--v-button-size-small-height) - var(--v-button-border-width)*2);padding:var(--v-button-size-small-padding__text)}.v-btn.v-btn-small.v-btn-display-icon-text .v-btn-text{padding:var(--v-button-size-small-padding__text--icon-text)}.v-btn.v-btn-small.v-btn-display-icon-text.v-btn-dropdown .v-btn-text{gap:var(--v-button-size-small-gap__text--icon-text-dropdown);padding:var(--v-button-size-small-padding__text--icon-text-dropdown)}.v-btn.v-btn-small.v-btn-display-icon-text.v-btn-styleless .v-btn-text,.v-btn.v-btn-small.v-btn-display-icon-text.v-btn-styleless-dropdown .v-btn-text{padding:0}.v-btn.v-btn-small.v-btn-display-icon-text.v-btn-split .v-btn-text{padding:var(--v-button-size-small-padding__text--icon-text-split)}.v-btn.v-btn-small.v-btn-display-icon{background-repeat:no-repeat;flex:0 0 auto;line-height:0}.v-btn.v-btn-small.v-btn-display-icon .v-btn-text{height:100%;line-height:0;padding:var(--v-button-size-small-padding__text--icon);width:100%}.v-btn.v-btn-small.v-btn-display-icon.v-btn-styleless{line-height:0}.v-btn.v-btn-small.v-btn-display-icon.v-btn-styleless .v-btn-text{line-height:0;padding:0}.v-btn.v-btn-small.v-btn-display-icon.v-btn-dropdown .v-btn-text,.v-btn.v-btn-small.v-btn-display-icon.v-btn-styleless-dropdown .v-btn-text{gap:var(--v-button-size-small-gap__text--icon-dropdown);padding:var(--v-button-size-small-padding__text--icon-dropdown)}.v-btn.v-btn-small.v-btn-display-icon.v-btn-split .v-btn-text{padding:var(--v-button-size-small-padding__text--icon-split)}.v-btn.v-btn-small.v-btn-split .v-btn-text{padding:var(--v-button-size-small-padding__text--split)}.v-btn.v-btn-small.v-btn-dropdown .v-btn-text{padding:var(--v-button-size-small-padding__text--dropdown)}.v-btn.v-btn-blue{background-color:var(--v-button-blue-bkg-color--normal);border:var(--v-button-border-width) solid var(--v-button-blue-border-color--normal);color:var(--v-button-blue-color--normal)}.v-btn.v-btn-blue .btn-arrow{background-position:0 -24px}.v-btn.v-btn-blue .split-div{background-color:var(--v-button-blue-bkg-color__split--normal)}.v-btn.v-btn-blue:hover{background-color:var(--v-button-blue-bkg-color--hover);border-color:var(--v-button-blue-border-color--hover);color:var(--v-button-blue-color--hover)}.v-btn.v-btn-blue:hover .split-div{background-color:var(--v-button-blue-bkg-color__split--hover)}.v-btn.v-btn-blue.v-btn-pressed,.v-btn.v-btn-blue:active,.v-btn.v-btn-blue:focus-visible{background-color:var(--v-button-blue-bkg-color--active);border-color:var(--v-button-blue-border-color--active);color:var(--v-button-blue-color--active)}.v-btn.v-btn-blue.v-btn-pressed .split-div,.v-btn.v-btn-blue:active .split-div,.v-btn.v-btn-blue:focus-visible .split-div{background-color:var(--v-button-blue-bkg-color__split--active)}.v-btn.v-btn-blue.v-btn-disabled{background-color:var(--v-button-blue-bkg-color--disabled);border-color:var(--v-button-blue-border-color--disabled);color:var(--v-button-blue-color--disabled)}.v-btn.v-btn-blue.v-btn-disabled .split-btn,.v-btn.v-btn-blue.v-btn-disabled .v-btn-text{opacity:var(--v-button-opacity--disabled)}.v-btn.v-btn-blue.v-btn-disabled .split-div{background-color:var(--v-button-blue-bkg-color__split--disabled)}.v-btn.v-btn-red{background-color:var(--v-button-red-bkg-color--normal);border:var(--v-button-border-width) solid var(--v-button-red-border-color--normal);color:var(--v-button-red-color--normal)}.v-btn.v-btn-red .btn-arrow{background-position:0 -24px}.v-btn.v-btn-red .split-div{background-color:var(--v-button-red-bkg-color__split--normal)}.v-btn.v-btn-red:hover{background-color:var(--v-button-red-bkg-color--hover);border-color:var(--v-button-red-border-color--hover);color:var(--v-button-red-color--hover)}.v-btn.v-btn-red:hover .split-div{background-color:var(--v-button-red-bkg-color__split--hover)}.v-btn.v-btn-red.v-btn-pressed,.v-btn.v-btn-red:active,.v-btn.v-btn-red:focus-visible{background-color:var(--v-button-red-bkg-color--active);border-color:var(--v-button-red-border-color--active);color:var(--v-button-red-color--active)}.v-btn.v-btn-red.v-btn-pressed .split-div,.v-btn.v-btn-red:active .split-div,.v-btn.v-btn-red:focus-visible .split-div{background-color:var(--v-button-red-bkg-color__split--active)}.v-btn.v-btn-red.v-btn-disabled{background-color:var(--v-button-red-bkg-color--disabled);border-color:var(--v-button-red-border-color--disabled);color:var(--v-button-red-color--disabled)}.v-btn.v-btn-red.v-btn-disabled .split-btn,.v-btn.v-btn-red.v-btn-disabled .v-btn-text{opacity:var(--v-button-opacity--disabled)}.v-btn.v-btn-red.v-btn-disabled .split-div{background-color:var(--v-button-red-bkg-color__split--disabled)}.v-btn.v-btn-orange{background-color:var(--v-button-orange-bkg-color--normal);border:var(--v-button-border-width) solid var(--v-button-orange-border-color--normal);color:var(--v-button-orange-color--normal)}.v-btn.v-btn-orange .btn-arrow{background-position:0 -24px}.v-btn.v-btn-orange .split-div{background-color:var(--v-button-orange-bkg-color__split--normal)}.v-btn.v-btn-orange:hover{background-color:var(--v-button-orange-bkg-color--hover);border-color:var(--v-button-orange-border-color--hover);color:var(--v-button-orange-color--hover)}.v-btn.v-btn-orange:hover .split-div{background-color:var(--v-button-orange-bkg-color__split--hover)}.v-btn.v-btn-orange.v-btn-pressed,.v-btn.v-btn-orange:active,.v-btn.v-btn-orange:focus-visible{background-color:var(--v-button-orange-bkg-color--active);border-color:var(--v-button-orange-border-color--active);color:var(--v-button-orange-color--active)}.v-btn.v-btn-orange.v-btn-pressed .split-div,.v-btn.v-btn-orange:active .split-div,.v-btn.v-btn-orange:focus-visible .split-div{background-color:var(--v-button-orange-bkg-color__split--active)}.v-btn.v-btn-orange.v-btn-disabled{background-color:var(--v-button-orange-bkg-color--disabled);border-color:var(--v-button-orange-border-color--disabled);color:var(--v-button-orange-color--disabled)}.v-btn.v-btn-orange.v-btn-disabled .split-btn,.v-btn.v-btn-orange.v-btn-disabled .v-btn-text{opacity:var(--v-button-opacity--disabled)}.v-btn.v-btn-orange.v-btn-disabled .split-div{background-color:var(--v-button-orange-bkg-color__split--disabled)}.v-btn.v-btn-green{background-color:var(--v-button-green-bkg-color--normal);border:var(--v-button-border-width) solid var(--v-button-green-border-color--normal);color:var(--v-button-green-color--normal)}.v-btn.v-btn-green .btn-arrow{background-position:0 -24px}.v-btn.v-btn-green .split-div{background-color:var(--v-button-green-bkg-color__split--normal)}.v-btn.v-btn-green:hover{background-color:var(--v-button-green-bkg-color--hover);border-color:var(--v-button-green-border-color--hover);color:var(--v-button-green-color--hover)}.v-btn.v-btn-green:hover .split-div{background-color:var(--v-button-green-bkg-color__split--hover)}.v-btn.v-btn-green.v-btn-pressed,.v-btn.v-btn-green:active,.v-btn.v-btn-green:focus-visible{background-color:var(--v-button-green-bkg-color--active);border-color:var(--v-button-green-border-color--active);color:var(--v-button-green-color--active)}.v-btn.v-btn-green.v-btn-pressed .split-div,.v-btn.v-btn-green:active .split-div,.v-btn.v-btn-green:focus-visible .split-div{background-color:var(--v-button-green-bkg-color__split--active)}.v-btn.v-btn-green.v-btn-disabled{background-color:var(--v-button-green-bkg-color--disabled);border-color:var(--v-button-green-border-color--disabled);color:var(--v-button-green-color--disabled)}.v-btn.v-btn-green.v-btn-disabled .split-btn,.v-btn.v-btn-green.v-btn-disabled .v-btn-text{opacity:var(--v-button-opacity--disabled)}.v-btn.v-btn-green.v-btn-disabled .split-div{background-color:var(--v-button-green-bkg-color__split--disabled)}.v-btn.v-btn-grey{background-color:var(--v-button-grey-bkg-color--normal);border:var(--v-button-border-width) solid var(--v-button-grey-border-color--normal);color:var(--v-button-grey-color--normal)}.v-btn.v-btn-grey .btn-arrow{background-position:0 0}.v-btn.v-btn-grey .split-div{background-color:var(--v-button-grey-bkg-color__split--normal)}.v-btn.v-btn-grey:hover{background-color:var(--v-button-grey-bkg-color--hover);border-color:var(--v-button-grey-border-color--hover);color:var(--v-button-grey-color--hover)}.v-btn.v-btn-grey:hover .split-div{background-color:var(--v-button-grey-bkg-color__split--hover)}.v-btn.v-btn-grey.v-btn-pressed,.v-btn.v-btn-grey:active,.v-btn.v-btn-grey:focus-visible{background-color:var(--v-button-grey-bkg-color--active);border-color:var(--v-button-grey-border-color--active);color:var(--v-button-grey-color--active)}.v-btn.v-btn-grey.v-btn-pressed .split-div,.v-btn.v-btn-grey:active .split-div,.v-btn.v-btn-grey:focus-visible .split-div{background-color:var(--v-button-grey-bkg-color__split--active)}.v-btn.v-btn-grey.v-btn-disabled{background-color:var(--v-button-grey-bkg-color--disabled);border-color:var(--v-button-grey-border-color--disabled);color:var(--v-button-grey-color--disabled)}.v-btn.v-btn-grey.v-btn-disabled .split-btn,.v-btn.v-btn-grey.v-btn-disabled .v-btn-text{opacity:var(--v-button-opacity--disabled)}.v-btn.v-btn-grey.v-btn-disabled .split-div{background-color:var(--v-button-grey-bkg-color__split--disabled)}.v-btn.v-btn-main{background-color:var(--v-button-action-bkg-color--normal);border:var(--v-button-border-width) solid var(--v-button-action-border-color--normal);color:var(--v-button-action-color--normal)}.v-btn.v-btn-main .btn-arrow{background-position:0 -24px}.v-btn.v-btn-main .split-div{background-color:var(--v-button-action-bkg-color__split--normal)}.v-btn.v-btn-main:hover{background-color:var(--v-button-action-bkg-color--hover);border-color:var(--v-button-action-border-color--hover);color:var(--v-button-action-color--hover)}.v-btn.v-btn-main:hover .split-div{background-color:var(--v-button-action-bkg-color__split--hover)}.v-btn.v-btn-main.v-btn-pressed,.v-btn.v-btn-main:active,.v-btn.v-btn-main:focus-visible{background-color:var(--v-button-action-bkg-color--active);border-color:var(--v-button-action-border-color--active);color:var(--v-button-action-color--active)}.v-btn.v-btn-main.v-btn-pressed .split-div,.v-btn.v-btn-main:active .split-div,.v-btn.v-btn-main:focus-visible .split-div{background-color:var(--v-button-action-bkg-color__split--active)}.v-btn.v-btn-main.v-btn-disabled{background-color:var(--v-button-action-bkg-color--disabled);border-color:var(--v-button-action-border-color--disabled);color:var(--v-button-action-color--disabled)}.v-btn.v-btn-main.v-btn-disabled .split-btn,.v-btn.v-btn-main.v-btn-disabled .v-btn-text{opacity:var(--v-button-opacity--disabled)}.v-btn.v-btn-main.v-btn-disabled .split-div{background-color:var(--v-button-action-bkg-color__split--disabled)}.v-btn.v-btn-cancel{background-color:var(--v-button-cancel-bkg-color--normal);border:var(--v-button-border-width) solid var(--v-button-cancel-border-color--normal);color:var(--v-button-cancel-color--normal)}.v-btn.v-btn-cancel .btn-arrow{background-position:0 -24px}.v-btn.v-btn-cancel .split-div{background-color:var(--v-button-cancel-bkg-color__split--normal)}.v-btn.v-btn-cancel:hover{background-color:var(--v-button-cancel-bkg-color--hover);border-color:var(--v-button-cancel-border-color--hover);color:var(--v-button-cancel-color--hover)}.v-btn.v-btn-cancel:hover .split-div{background-color:var(--v-button-cancel-bkg-color__split--hover)}.v-btn.v-btn-cancel.v-btn-pressed,.v-btn.v-btn-cancel:active,.v-btn.v-btn-cancel:focus-visible{background-color:var(--v-button-cancel-bkg-color--active);border-color:var(--v-button-cancel-border-color--active);color:var(--v-button-cancel-color--active)}.v-btn.v-btn-cancel.v-btn-pressed .split-div,.v-btn.v-btn-cancel:active .split-div,.v-btn.v-btn-cancel:focus-visible .split-div{background-color:var(--v-button-cancel-bkg-color__split--active)}.v-btn.v-btn-cancel.v-btn-disabled{background-color:var(--v-button-cancel-bkg-color--disabled);border-color:var(--v-button-cancel-border-color--disabled);color:var(--v-button-cancel-color--disabled)}.v-btn.v-btn-cancel.v-btn-disabled .split-btn,.v-btn.v-btn-cancel.v-btn-disabled .v-btn-text{opacity:var(--v-button-opacity--disabled)}.v-btn.v-btn-cancel.v-btn-disabled .split-div{background-color:var(--v-button-cancel-bkg-color__split--disabled)}.v-btn.v-btn-grey-inverse{background-color:var(--v-button-grey-inverse-bkg-color--normal);border:var(--v-button-border-width) solid var(--v-button-grey-inverse-border-color--normal);color:var(--v-button-grey-inverse-color--normal)}.v-btn.v-btn-grey-inverse .btn-arrow{background-position:0 -24px}.v-btn.v-btn-grey-inverse .split-div{background-color:var(--v-button-grey-inverse-bkg-color__split--normal)}.v-btn.v-btn-grey-inverse:hover{background-color:var(--v-button-grey-inverse-bkg-color--hover);border-color:var(--v-button-grey-inverse-border-color--hover);color:var(--v-button-grey-inverse-color--hover)}.v-btn.v-btn-grey-inverse:hover .split-div{background-color:var(--v-button-grey-inverse-bkg-color__split--hover)}.v-btn.v-btn-grey-inverse.v-btn-pressed,.v-btn.v-btn-grey-inverse:active,.v-btn.v-btn-grey-inverse:focus-visible{background-color:var(--v-button-grey-inverse-bkg-color--active);border-color:var(--v-button-grey-inverse-border-color--active);color:var(--v-button-grey-inverse-color--active)}.v-btn.v-btn-grey-inverse.v-btn-pressed .split-div,.v-btn.v-btn-grey-inverse:active .split-div,.v-btn.v-btn-grey-inverse:focus-visible .split-div{background-color:var(--v-button-grey-inverse-bkg-color__split--active)}.v-btn.v-btn-grey-inverse.v-btn-disabled{background-color:var(--v-button-grey-inverse-bkg-color--disabled);border-color:var(--v-button-grey-inverse-border-color--disabled);color:var(--v-button-grey-inverse-color--disabled)}.v-btn.v-btn-grey-inverse.v-btn-disabled .split-btn,.v-btn.v-btn-grey-inverse.v-btn-disabled .v-btn-text{opacity:var(--v-button-opacity--disabled)}.v-btn.v-btn-grey-inverse.v-btn-disabled .split-div{background-color:var(--v-button-grey-inverse-bkg-color__split--disabled)}.v-btn:hover{color:var(--v-button-color--hover)}.v-btn.v-btn-pressed,.v-btn:active,.v-btn:focus-visible{color:var(--v-button-color--active)}.v-btn.v-btn-disabled{color:var(--v-button-color--disabled)}.v-btn:not(.v-btn-disabled){cursor:pointer}.v-btn .v-btn-text{align-items:center;box-sizing:border-box;display:inline-flex;justify-content:center;line-height:calc(var(--v-button-height) - var(--v-button-border-width)*2);max-width:100%;white-space:nowrap}.v-btn .v-btn-text,.v-btn .v-btn-text .v-btn-content{overflow:hidden;text-overflow:ellipsis;vertical-align:top}.v-btn .split-div{display:inline-block;flex:0 0 auto;height:100%;margin:var(--v-button-margin__split);width:var(--v-button-width__split)}.v-btn.v-btn-display-icon .v-btn-text,.v-btn.v-btn-display-icon-text .v-btn-text{align-items:center;justify-content:center}.v-btn.v-btn-split .btn-arrow{padding:var(--v-button-padding__dropdown)}.v-btn.v-btn-dropdown{align-items:center;display:inline-flex;justify-content:center}.v-btn.v-btn-dropdown .btn-arrow{background-image:image-set(url("webman/3rdparty/Spreadsheet/dist/assets/images/1x/bt_dp_arrow.png") 1x,url("webman/3rdparty/Spreadsheet/dist/assets/images/2x/bt_dp_arrow.png") 1.5x);background-repeat:no-repeat;background-size:12px;display:inline-block;flex:0 0 auto;height:var(--v-button-height__dropdown);vertical-align:top;width:var(--v-button-width__dropdown)}.v-btn.v-btn-footbar{border-radius:var(--v-button-border-radius__footbar)}.v-btn.v-btn-footbar.v-btn{box-shadow:var(--v-button-box-shadow__footbar--normal);min-width:var(--v-button-min-width__footbar--normal)}.v-btn.v-btn-footbar.v-btn.mobile{min-width:var(--v-button-min-width__footbar--mobile)}.v-btn.v-btn-footbar.v-btn-cancel,.v-btn.v-btn-footbar.v-btn-grey{box-shadow:var(--v-button-box-shadow__footbar--cancel);min-width:var(--v-button-min-width__footbar--cancel)}.v-btn.v-btn-footbar.v-btn-cancel.mobile,.v-btn.v-btn-footbar.v-btn-grey.mobile{min-width:var(--v-button-min-width__footbar--mobile)}.v-btn.v-btn-footbar.v-btn-blue{box-shadow:var(--v-button-box-shadow__footbar--blue)}.v-btn.v-btn-footbar.v-btn-red{box-shadow:var(--v-button-box-shadow__footbar--red)}.v-btn.v-btn-border-dropdown.v-btn-blue,.v-btn.v-btn-border-dropdown.v-btn-cancel,.v-btn.v-btn-border-dropdown.v-btn-grey,.v-btn.v-btn-border-dropdown.v-btn-main,.v-btn.v-btn-border-split.v-btn-blue,.v-btn.v-btn-border-split.v-btn-cancel,.v-btn.v-btn-border-split.v-btn-grey,.v-btn.v-btn-border-split.v-btn-main,.v-btn.v-btn-border.v-btn-blue,.v-btn.v-btn-border.v-btn-cancel,.v-btn.v-btn-border.v-btn-grey,.v-btn.v-btn-border.v-btn-main{background-color:var(--v-button-border-action-bkg-color--normal);border:var(--v-button-border-width) solid var(--v-button-border-action-border-color--normal);color:var(--v-button-border-action-color--normal)}.v-btn.v-btn-border-dropdown.v-btn-blue .btn-arrow,.v-btn.v-btn-border-dropdown.v-btn-cancel .btn-arrow,.v-btn.v-btn-border-dropdown.v-btn-grey .btn-arrow,.v-btn.v-btn-border-dropdown.v-btn-main .btn-arrow,.v-btn.v-btn-border-split.v-btn-blue .btn-arrow,.v-btn.v-btn-border-split.v-btn-cancel .btn-arrow,.v-btn.v-btn-border-split.v-btn-grey .btn-arrow,.v-btn.v-btn-border-split.v-btn-main .btn-arrow,.v-btn.v-btn-border.v-btn-blue .btn-arrow,.v-btn.v-btn-border.v-btn-cancel .btn-arrow,.v-btn.v-btn-border.v-btn-grey .btn-arrow,.v-btn.v-btn-border.v-btn-main .btn-arrow{background-position:0 0}.v-btn.v-btn-border-dropdown.v-btn-blue .split-div,.v-btn.v-btn-border-dropdown.v-btn-cancel .split-div,.v-btn.v-btn-border-dropdown.v-btn-grey .split-div,.v-btn.v-btn-border-dropdown.v-btn-main .split-div,.v-btn.v-btn-border-split.v-btn-blue .split-div,.v-btn.v-btn-border-split.v-btn-cancel .split-div,.v-btn.v-btn-border-split.v-btn-grey .split-div,.v-btn.v-btn-border-split.v-btn-main .split-div,.v-btn.v-btn-border.v-btn-blue .split-div,.v-btn.v-btn-border.v-btn-cancel .split-div,.v-btn.v-btn-border.v-btn-grey .split-div,.v-btn.v-btn-border.v-btn-main .split-div{background-color:var(--v-button-border-action-bkg-color__split--normal)}.v-btn.v-btn-border-dropdown.v-btn-blue:hover,.v-btn.v-btn-border-dropdown.v-btn-cancel:hover,.v-btn.v-btn-border-dropdown.v-btn-grey:hover,.v-btn.v-btn-border-dropdown.v-btn-main:hover,.v-btn.v-btn-border-split.v-btn-blue:hover,.v-btn.v-btn-border-split.v-btn-cancel:hover,.v-btn.v-btn-border-split.v-btn-grey:hover,.v-btn.v-btn-border-split.v-btn-main:hover,.v-btn.v-btn-border.v-btn-blue:hover,.v-btn.v-btn-border.v-btn-cancel:hover,.v-btn.v-btn-border.v-btn-grey:hover,.v-btn.v-btn-border.v-btn-main:hover{background-color:var(--v-button-border-action-bkg-color--hover);border-color:var(--v-button-border-action-border-color--hover);color:var(--v-button-border-action-color--hover)}.v-btn.v-btn-border-dropdown.v-btn-blue:hover .split-div,.v-btn.v-btn-border-dropdown.v-btn-cancel:hover .split-div,.v-btn.v-btn-border-dropdown.v-btn-grey:hover .split-div,.v-btn.v-btn-border-dropdown.v-btn-main:hover .split-div,.v-btn.v-btn-border-split.v-btn-blue:hover .split-div,.v-btn.v-btn-border-split.v-btn-cancel:hover .split-div,.v-btn.v-btn-border-split.v-btn-grey:hover .split-div,.v-btn.v-btn-border-split.v-btn-main:hover .split-div,.v-btn.v-btn-border.v-btn-blue:hover .split-div,.v-btn.v-btn-border.v-btn-cancel:hover .split-div,.v-btn.v-btn-border.v-btn-grey:hover .split-div,.v-btn.v-btn-border.v-btn-main:hover .split-div{background-color:var(--v-button-border-action-bkg-color__split--hover)}.v-btn.v-btn-border-dropdown.v-btn-blue.v-btn-pressed,.v-btn.v-btn-border-dropdown.v-btn-blue:active,.v-btn.v-btn-border-dropdown.v-btn-blue:focus-visible,.v-btn.v-btn-border-dropdown.v-btn-cancel.v-btn-pressed,.v-btn.v-btn-border-dropdown.v-btn-cancel:active,.v-btn.v-btn-border-dropdown.v-btn-cancel:focus-visible,.v-btn.v-btn-border-dropdown.v-btn-grey.v-btn-pressed,.v-btn.v-btn-border-dropdown.v-btn-grey:active,.v-btn.v-btn-border-dropdown.v-btn-grey:focus-visible,.v-btn.v-btn-border-dropdown.v-btn-main.v-btn-pressed,.v-btn.v-btn-border-dropdown.v-btn-main:active,.v-btn.v-btn-border-dropdown.v-btn-main:focus-visible,.v-btn.v-btn-border-split.v-btn-blue.v-btn-pressed,.v-btn.v-btn-border-split.v-btn-blue:active,.v-btn.v-btn-border-split.v-btn-blue:focus-visible,.v-btn.v-btn-border-split.v-btn-cancel.v-btn-pressed,.v-btn.v-btn-border-split.v-btn-cancel:active,.v-btn.v-btn-border-split.v-btn-cancel:focus-visible,.v-btn.v-btn-border-split.v-btn-grey.v-btn-pressed,.v-btn.v-btn-border-split.v-btn-grey:active,.v-btn.v-btn-border-split.v-btn-grey:focus-visible,.v-btn.v-btn-border-split.v-btn-main.v-btn-pressed,.v-btn.v-btn-border-split.v-btn-main:active,.v-btn.v-btn-border-split.v-btn-main:focus-visible,.v-btn.v-btn-border.v-btn-blue.v-btn-pressed,.v-btn.v-btn-border.v-btn-blue:active,.v-btn.v-btn-border.v-btn-blue:focus-visible,.v-btn.v-btn-border.v-btn-cancel.v-btn-pressed,.v-btn.v-btn-border.v-btn-cancel:active,.v-btn.v-btn-border.v-btn-cancel:focus-visible,.v-btn.v-btn-border.v-btn-grey.v-btn-pressed,.v-btn.v-btn-border.v-btn-grey:active,.v-btn.v-btn-border.v-btn-grey:focus-visible,.v-btn.v-btn-border.v-btn-main.v-btn-pressed,.v-btn.v-btn-border.v-btn-main:active,.v-btn.v-btn-border.v-btn-main:focus-visible{background-color:var(--v-button-border-action-bkg-color--active);border-color:var(--v-button-border-action-border-color--active);color:var(--v-button-border-action-color--active)}.v-btn.v-btn-border-dropdown.v-btn-blue.v-btn-pressed .split-div,.v-btn.v-btn-border-dropdown.v-btn-blue:active .split-div,.v-btn.v-btn-border-dropdown.v-btn-blue:focus-visible .split-div,.v-btn.v-btn-border-dropdown.v-btn-cancel.v-btn-pressed .split-div,.v-btn.v-btn-border-dropdown.v-btn-cancel:active .split-div,.v-btn.v-btn-border-dropdown.v-btn-cancel:focus-visible .split-div,.v-btn.v-btn-border-dropdown.v-btn-grey.v-btn-pressed .split-div,.v-btn.v-btn-border-dropdown.v-btn-grey:active .split-div,.v-btn.v-btn-border-dropdown.v-btn-grey:focus-visible .split-div,.v-btn.v-btn-border-dropdown.v-btn-main.v-btn-pressed .split-div,.v-btn.v-btn-border-dropdown.v-btn-main:active .split-div,.v-btn.v-btn-border-dropdown.v-btn-main:focus-visible .split-div,.v-btn.v-btn-border-split.v-btn-blue.v-btn-pressed .split-div,.v-btn.v-btn-border-split.v-btn-blue:active .split-div,.v-btn.v-btn-border-split.v-btn-blue:focus-visible .split-div,.v-btn.v-btn-border-split.v-btn-cancel.v-btn-pressed .split-div,.v-btn.v-btn-border-split.v-btn-cancel:active .split-div,.v-btn.v-btn-border-split.v-btn-cancel:focus-visible .split-div,.v-btn.v-btn-border-split.v-btn-grey.v-btn-pressed .split-div,.v-btn.v-btn-border-split.v-btn-grey:active .split-div,.v-btn.v-btn-border-split.v-btn-grey:focus-visible .split-div,.v-btn.v-btn-border-split.v-btn-main.v-btn-pressed .split-div,.v-btn.v-btn-border-split.v-btn-main:active .split-div,.v-btn.v-btn-border-split.v-btn-main:focus-visible .split-div,.v-btn.v-btn-border.v-btn-blue.v-btn-pressed .split-div,.v-btn.v-btn-border.v-btn-blue:active .split-div,.v-btn.v-btn-border.v-btn-blue:focus-visible .split-div,.v-btn.v-btn-border.v-btn-cancel.v-btn-pressed .split-div,.v-btn.v-btn-border.v-btn-cancel:active .split-div,.v-btn.v-btn-border.v-btn-cancel:focus-visible .split-div,.v-btn.v-btn-border.v-btn-grey.v-btn-pressed .split-div,.v-btn.v-btn-border.v-btn-grey:active .split-div,.v-btn.v-btn-border.v-btn-grey:focus-visible .split-div,.v-btn.v-btn-border.v-btn-main.v-btn-pressed .split-div,.v-btn.v-btn-border.v-btn-main:active .split-div,.v-btn.v-btn-border.v-btn-main:focus-visible .split-div{background-color:var(--v-button-border-action-bkg-color__split--active)}.v-btn.v-btn-border-dropdown.v-btn-blue.v-btn-disabled,.v-btn.v-btn-border-dropdown.v-btn-cancel.v-btn-disabled,.v-btn.v-btn-border-dropdown.v-btn-grey.v-btn-disabled,.v-btn.v-btn-border-dropdown.v-btn-main.v-btn-disabled,.v-btn.v-btn-border-split.v-btn-blue.v-btn-disabled,.v-btn.v-btn-border-split.v-btn-cancel.v-btn-disabled,.v-btn.v-btn-border-split.v-btn-grey.v-btn-disabled,.v-btn.v-btn-border-split.v-btn-main.v-btn-disabled,.v-btn.v-btn-border.v-btn-blue.v-btn-disabled,.v-btn.v-btn-border.v-btn-cancel.v-btn-disabled,.v-btn.v-btn-border.v-btn-grey.v-btn-disabled,.v-btn.v-btn-border.v-btn-main.v-btn-disabled{background-color:var(--v-button-border-action-bkg-color--disabled);border-color:var(--v-button-border-action-border-color--disabled);color:var(--v-button-border-action-color--disabled)}.v-btn.v-btn-border-dropdown.v-btn-blue.v-btn-disabled .split-btn,.v-btn.v-btn-border-dropdown.v-btn-blue.v-btn-disabled .v-btn-text,.v-btn.v-btn-border-dropdown.v-btn-cancel.v-btn-disabled .split-btn,.v-btn.v-btn-border-dropdown.v-btn-cancel.v-btn-disabled .v-btn-text,.v-btn.v-btn-border-dropdown.v-btn-grey.v-btn-disabled .split-btn,.v-btn.v-btn-border-dropdown.v-btn-grey.v-btn-disabled .v-btn-text,.v-btn.v-btn-border-dropdown.v-btn-main.v-btn-disabled .split-btn,.v-btn.v-btn-border-dropdown.v-btn-main.v-btn-disabled .v-btn-text,.v-btn.v-btn-border-split.v-btn-blue.v-btn-disabled .split-btn,.v-btn.v-btn-border-split.v-btn-blue.v-btn-disabled .v-btn-text,.v-btn.v-btn-border-split.v-btn-cancel.v-btn-disabled .split-btn,.v-btn.v-btn-border-split.v-btn-cancel.v-btn-disabled .v-btn-text,.v-btn.v-btn-border-split.v-btn-grey.v-btn-disabled .split-btn,.v-btn.v-btn-border-split.v-btn-grey.v-btn-disabled .v-btn-text,.v-btn.v-btn-border-split.v-btn-main.v-btn-disabled .split-btn,.v-btn.v-btn-border-split.v-btn-main.v-btn-disabled .v-btn-text,.v-btn.v-btn-border.v-btn-blue.v-btn-disabled .split-btn,.v-btn.v-btn-border.v-btn-blue.v-btn-disabled .v-btn-text,.v-btn.v-btn-border.v-btn-cancel.v-btn-disabled .split-btn,.v-btn.v-btn-border.v-btn-cancel.v-btn-disabled .v-btn-text,.v-btn.v-btn-border.v-btn-grey.v-btn-disabled .split-btn,.v-btn.v-btn-border.v-btn-grey.v-btn-disabled .v-btn-text,.v-btn.v-btn-border.v-btn-main.v-btn-disabled .split-btn,.v-btn.v-btn-border.v-btn-main.v-btn-disabled .v-btn-text{opacity:var(--v-button-opacity--disabled)}.v-btn.v-btn-border-dropdown.v-btn-blue.v-btn-disabled .split-div,.v-btn.v-btn-border-dropdown.v-btn-cancel.v-btn-disabled .split-div,.v-btn.v-btn-border-dropdown.v-btn-grey.v-btn-disabled .split-div,.v-btn.v-btn-border-dropdown.v-btn-main.v-btn-disabled .split-div,.v-btn.v-btn-border-split.v-btn-blue.v-btn-disabled .split-div,.v-btn.v-btn-border-split.v-btn-cancel.v-btn-disabled .split-div,.v-btn.v-btn-border-split.v-btn-grey.v-btn-disabled .split-div,.v-btn.v-btn-border-split.v-btn-main.v-btn-disabled .split-div,.v-btn.v-btn-border.v-btn-blue.v-btn-disabled .split-div,.v-btn.v-btn-border.v-btn-cancel.v-btn-disabled .split-div,.v-btn.v-btn-border.v-btn-grey.v-btn-disabled .split-div,.v-btn.v-btn-border.v-btn-main.v-btn-disabled .split-div{background-color:var(--v-button-border-action-bkg-color__split--disabled)}.v-btn.v-btn-footbar-border,.v-btn.v-btn-footbar-border-dropdown{border-radius:var(--v-button-border-radius__footbar)}.v-btn.v-btn-footbar-border-dropdown.v-btn,.v-btn.v-btn-footbar-border.v-btn{box-shadow:var(--v-button-box-shadow__footbar--normal);min-width:var(--v-button-min-width__footbar--normal)}.v-btn.v-btn-footbar-border-dropdown.v-btn.mobile,.v-btn.v-btn-footbar-border.v-btn.mobile{min-width:var(--v-button-min-width__footbar--mobile)}.v-btn.v-btn-footbar-border-dropdown.v-btn-cancel,.v-btn.v-btn-footbar-border-dropdown.v-btn-grey,.v-btn.v-btn-footbar-border.v-btn-cancel,.v-btn.v-btn-footbar-border.v-btn-grey{box-shadow:var(--v-button-box-shadow__footbar--cancel);min-width:var(--v-button-min-width__footbar--cancel)}.v-btn.v-btn-footbar-border-dropdown.v-btn-cancel.mobile,.v-btn.v-btn-footbar-border-dropdown.v-btn-grey.mobile,.v-btn.v-btn-footbar-border.v-btn-cancel.mobile,.v-btn.v-btn-footbar-border.v-btn-grey.mobile{min-width:var(--v-button-min-width__footbar--mobile)}.v-btn.v-btn-footbar-border-dropdown.v-btn-blue,.v-btn.v-btn-footbar-border-dropdown.v-btn-cancel,.v-btn.v-btn-footbar-border-dropdown.v-btn-grey,.v-btn.v-btn-footbar-border-dropdown.v-btn-main,.v-btn.v-btn-footbar-border.v-btn-blue,.v-btn.v-btn-footbar-border.v-btn-cancel,.v-btn.v-btn-footbar-border.v-btn-grey,.v-btn.v-btn-footbar-border.v-btn-main{background-color:var(--v-button-border-action-bkg-color--normal);border:var(--v-button-border-width) solid var(--v-button-border-action-border-color--normal);color:var(--v-button-border-action-color--normal)}.v-btn.v-btn-footbar-border-dropdown.v-btn-blue .btn-arrow,.v-btn.v-btn-footbar-border-dropdown.v-btn-cancel .btn-arrow,.v-btn.v-btn-footbar-border-dropdown.v-btn-grey .btn-arrow,.v-btn.v-btn-footbar-border-dropdown.v-btn-main .btn-arrow,.v-btn.v-btn-footbar-border.v-btn-blue .btn-arrow,.v-btn.v-btn-footbar-border.v-btn-cancel .btn-arrow,.v-btn.v-btn-footbar-border.v-btn-grey .btn-arrow,.v-btn.v-btn-footbar-border.v-btn-main .btn-arrow{background-position:0 0}.v-btn.v-btn-footbar-border-dropdown.v-btn-blue .split-div,.v-btn.v-btn-footbar-border-dropdown.v-btn-cancel .split-div,.v-btn.v-btn-footbar-border-dropdown.v-btn-grey .split-div,.v-btn.v-btn-footbar-border-dropdown.v-btn-main .split-div,.v-btn.v-btn-footbar-border.v-btn-blue .split-div,.v-btn.v-btn-footbar-border.v-btn-cancel .split-div,.v-btn.v-btn-footbar-border.v-btn-grey .split-div,.v-btn.v-btn-footbar-border.v-btn-main .split-div{background-color:var(--v-button-border-action-bkg-color__split--normal)}.v-btn.v-btn-footbar-border-dropdown.v-btn-blue:hover,.v-btn.v-btn-footbar-border-dropdown.v-btn-cancel:hover,.v-btn.v-btn-footbar-border-dropdown.v-btn-grey:hover,.v-btn.v-btn-footbar-border-dropdown.v-btn-main:hover,.v-btn.v-btn-footbar-border.v-btn-blue:hover,.v-btn.v-btn-footbar-border.v-btn-cancel:hover,.v-btn.v-btn-footbar-border.v-btn-grey:hover,.v-btn.v-btn-footbar-border.v-btn-main:hover{background-color:var(--v-button-border-action-bkg-color--hover);border-color:var(--v-button-border-action-border-color--hover);color:var(--v-button-border-action-color--hover)}.v-btn.v-btn-footbar-border-dropdown.v-btn-blue:hover .split-div,.v-btn.v-btn-footbar-border-dropdown.v-btn-cancel:hover .split-div,.v-btn.v-btn-footbar-border-dropdown.v-btn-grey:hover .split-div,.v-btn.v-btn-footbar-border-dropdown.v-btn-main:hover .split-div,.v-btn.v-btn-footbar-border.v-btn-blue:hover .split-div,.v-btn.v-btn-footbar-border.v-btn-cancel:hover .split-div,.v-btn.v-btn-footbar-border.v-btn-grey:hover .split-div,.v-btn.v-btn-footbar-border.v-btn-main:hover .split-div{background-color:var(--v-button-border-action-bkg-color__split--hover)}.v-btn.v-btn-footbar-border-dropdown.v-btn-blue.v-btn-pressed,.v-btn.v-btn-footbar-border-dropdown.v-btn-blue:active,.v-btn.v-btn-footbar-border-dropdown.v-btn-blue:focus-visible,.v-btn.v-btn-footbar-border-dropdown.v-btn-cancel.v-btn-pressed,.v-btn.v-btn-footbar-border-dropdown.v-btn-cancel:active,.v-btn.v-btn-footbar-border-dropdown.v-btn-cancel:focus-visible,.v-btn.v-btn-footbar-border-dropdown.v-btn-grey.v-btn-pressed,.v-btn.v-btn-footbar-border-dropdown.v-btn-grey:active,.v-btn.v-btn-footbar-border-dropdown.v-btn-grey:focus-visible,.v-btn.v-btn-footbar-border-dropdown.v-btn-main.v-btn-pressed,.v-btn.v-btn-footbar-border-dropdown.v-btn-main:active,.v-btn.v-btn-footbar-border-dropdown.v-btn-main:focus-visible,.v-btn.v-btn-footbar-border.v-btn-blue.v-btn-pressed,.v-btn.v-btn-footbar-border.v-btn-blue:active,.v-btn.v-btn-footbar-border.v-btn-blue:focus-visible,.v-btn.v-btn-footbar-border.v-btn-cancel.v-btn-pressed,.v-btn.v-btn-footbar-border.v-btn-cancel:active,.v-btn.v-btn-footbar-border.v-btn-cancel:focus-visible,.v-btn.v-btn-footbar-border.v-btn-grey.v-btn-pressed,.v-btn.v-btn-footbar-border.v-btn-grey:active,.v-btn.v-btn-footbar-border.v-btn-grey:focus-visible,.v-btn.v-btn-footbar-border.v-btn-main.v-btn-pressed,.v-btn.v-btn-footbar-border.v-btn-main:active,.v-btn.v-btn-footbar-border.v-btn-main:focus-visible{background-color:var(--v-button-border-action-bkg-color--active);border-color:var(--v-button-border-action-border-color--active);color:var(--v-button-border-action-color--active)}.v-btn.v-btn-footbar-border-dropdown.v-btn-blue.v-btn-pressed .split-div,.v-btn.v-btn-footbar-border-dropdown.v-btn-blue:active .split-div,.v-btn.v-btn-footbar-border-dropdown.v-btn-blue:focus-visible .split-div,.v-btn.v-btn-footbar-border-dropdown.v-btn-cancel.v-btn-pressed .split-div,.v-btn.v-btn-footbar-border-dropdown.v-btn-cancel:active .split-div,.v-btn.v-btn-footbar-border-dropdown.v-btn-cancel:focus-visible .split-div,.v-btn.v-btn-footbar-border-dropdown.v-btn-grey.v-btn-pressed .split-div,.v-btn.v-btn-footbar-border-dropdown.v-btn-grey:active .split-div,.v-btn.v-btn-footbar-border-dropdown.v-btn-grey:focus-visible .split-div,.v-btn.v-btn-footbar-border-dropdown.v-btn-main.v-btn-pressed .split-div,.v-btn.v-btn-footbar-border-dropdown.v-btn-main:active .split-div,.v-btn.v-btn-footbar-border-dropdown.v-btn-main:focus-visible .split-div,.v-btn.v-btn-footbar-border.v-btn-blue.v-btn-pressed .split-div,.v-btn.v-btn-footbar-border.v-btn-blue:active .split-div,.v-btn.v-btn-footbar-border.v-btn-blue:focus-visible .split-div,.v-btn.v-btn-footbar-border.v-btn-cancel.v-btn-pressed .split-div,.v-btn.v-btn-footbar-border.v-btn-cancel:active .split-div,.v-btn.v-btn-footbar-border.v-btn-cancel:focus-visible .split-div,.v-btn.v-btn-footbar-border.v-btn-grey.v-btn-pressed .split-div,.v-btn.v-btn-footbar-border.v-btn-grey:active .split-div,.v-btn.v-btn-footbar-border.v-btn-grey:focus-visible .split-div,.v-btn.v-btn-footbar-border.v-btn-main.v-btn-pressed .split-div,.v-btn.v-btn-footbar-border.v-btn-main:active .split-div,.v-btn.v-btn-footbar-border.v-btn-main:focus-visible .split-div{background-color:var(--v-button-border-action-bkg-color__split--active)}.v-btn.v-btn-footbar-border-dropdown.v-btn-blue.v-btn-disabled,.v-btn.v-btn-footbar-border-dropdown.v-btn-cancel.v-btn-disabled,.v-btn.v-btn-footbar-border-dropdown.v-btn-grey.v-btn-disabled,.v-btn.v-btn-footbar-border-dropdown.v-btn-main.v-btn-disabled,.v-btn.v-btn-footbar-border.v-btn-blue.v-btn-disabled,.v-btn.v-btn-footbar-border.v-btn-cancel.v-btn-disabled,.v-btn.v-btn-footbar-border.v-btn-grey.v-btn-disabled,.v-btn.v-btn-footbar-border.v-btn-main.v-btn-disabled{background-color:var(--v-button-border-action-bkg-color--disabled);border-color:var(--v-button-border-action-border-color--disabled);color:var(--v-button-border-action-color--disabled)}.v-btn.v-btn-footbar-border-dropdown.v-btn-blue.v-btn-disabled .split-btn,.v-btn.v-btn-footbar-border-dropdown.v-btn-blue.v-btn-disabled .v-btn-text,.v-btn.v-btn-footbar-border-dropdown.v-btn-cancel.v-btn-disabled .split-btn,.v-btn.v-btn-footbar-border-dropdown.v-btn-cancel.v-btn-disabled .v-btn-text,.v-btn.v-btn-footbar-border-dropdown.v-btn-grey.v-btn-disabled .split-btn,.v-btn.v-btn-footbar-border-dropdown.v-btn-grey.v-btn-disabled .v-btn-text,.v-btn.v-btn-footbar-border-dropdown.v-btn-main.v-btn-disabled .split-btn,.v-btn.v-btn-footbar-border-dropdown.v-btn-main.v-btn-disabled .v-btn-text,.v-btn.v-btn-footbar-border.v-btn-blue.v-btn-disabled .split-btn,.v-btn.v-btn-footbar-border.v-btn-blue.v-btn-disabled .v-btn-text,.v-btn.v-btn-footbar-border.v-btn-cancel.v-btn-disabled .split-btn,.v-btn.v-btn-footbar-border.v-btn-cancel.v-btn-disabled .v-btn-text,.v-btn.v-btn-footbar-border.v-btn-grey.v-btn-disabled .split-btn,.v-btn.v-btn-footbar-border.v-btn-grey.v-btn-disabled .v-btn-text,.v-btn.v-btn-footbar-border.v-btn-main.v-btn-disabled .split-btn,.v-btn.v-btn-footbar-border.v-btn-main.v-btn-disabled .v-btn-text{opacity:var(--v-button-opacity--disabled)}.v-btn.v-btn-footbar-border-dropdown.v-btn-blue.v-btn-disabled .split-div,.v-btn.v-btn-footbar-border-dropdown.v-btn-cancel.v-btn-disabled .split-div,.v-btn.v-btn-footbar-border-dropdown.v-btn-grey.v-btn-disabled .split-div,.v-btn.v-btn-footbar-border-dropdown.v-btn-main.v-btn-disabled .split-div,.v-btn.v-btn-footbar-border.v-btn-blue.v-btn-disabled .split-div,.v-btn.v-btn-footbar-border.v-btn-cancel.v-btn-disabled .split-div,.v-btn.v-btn-footbar-border.v-btn-grey.v-btn-disabled .split-div,.v-btn.v-btn-footbar-border.v-btn-main.v-btn-disabled .split-div{background-color:var(--v-button-border-action-bkg-color__split--disabled)}.v-btn.v-btn-border-dropdown:hover:not(.v-btn-disabled) .btn-arrow:not(.disabled),.v-btn.v-btn-border-split:hover:not(.v-btn-disabled) .btn-arrow:not(.disabled),.v-btn.v-btn-footbar-border-dropdown:hover:not(.v-btn-disabled) .btn-arrow:not(.disabled){color:var(--hover);fill-opacity:var(--fill-opacity--hover)}.v-btn.v-btn-border-dropdown:active:not(.v-btn-disabled) .btn-arrow:not(.disabled),.v-btn.v-btn-border-split:active:not(.v-btn-disabled) .btn-arrow:not(.disabled),.v-btn.v-btn-footbar-border-dropdown:active:not(.v-btn-disabled) .btn-arrow:not(.disabled){color:var(--active);fill-opacity:var(--fill-opacity--active)}.v-btn.v-btn-welcome{border-radius:calc(var(--v-button-height--welcome)/2);height:var(--v-button-height--welcome);line-height:var(--v-button-height--welcome);min-width:var(--v-button-min-width--welcome-normal)}.v-btn.v-btn-welcome.v-btn-cancel,.v-btn.v-btn-welcome.v-btn-grey{min-width:var(--v-button-min-width--welcome-cancel)}.v-btn.v-btn-welcome .v-btn-text{font-size:var(--v-button-font-size--welcome);line-height:calc(var(--v-button-height--welcome) - var(--v-button-border-width)*2);padding:var(--v-button-padding__text--welcome)}.v-btn.v-btn-round{border-radius:50%}.v-btn.v-btn-round.v-btn-display-icon .v-btn-text{padding:var(--v-button-padding__text--round-icon)}.v-btn.v-btn-round-border{border-radius:50%}.v-btn.v-btn-round-border.v-btn-display-icon .v-btn-text{padding:var(--v-button-padding__text--round-icon)}.v-btn.v-btn-round-border.v-btn-blue,.v-btn.v-btn-round-border.v-btn-cancel,.v-btn.v-btn-round-border.v-btn-grey,.v-btn.v-btn-round-border.v-btn-main{background-color:var(--v-button-border-action-bkg-color--normal);border:var(--v-button-border-width) solid var(--v-button-border-action-border-color--normal);color:var(--v-button-border-action-color--normal)}.v-btn.v-btn-round-border.v-btn-blue .btn-arrow,.v-btn.v-btn-round-border.v-btn-cancel .btn-arrow,.v-btn.v-btn-round-border.v-btn-grey .btn-arrow,.v-btn.v-btn-round-border.v-btn-main .btn-arrow{background-position:0 0}.v-btn.v-btn-round-border.v-btn-blue .split-div,.v-btn.v-btn-round-border.v-btn-cancel .split-div,.v-btn.v-btn-round-border.v-btn-grey .split-div,.v-btn.v-btn-round-border.v-btn-main .split-div{background-color:var(--v-button-border-action-bkg-color__split--normal)}.v-btn.v-btn-round-border.v-btn-blue:hover,.v-btn.v-btn-round-border.v-btn-cancel:hover,.v-btn.v-btn-round-border.v-btn-grey:hover,.v-btn.v-btn-round-border.v-btn-main:hover{background-color:var(--v-button-border-action-bkg-color--hover);border-color:var(--v-button-border-action-border-color--hover);color:var(--v-button-border-action-color--hover)}.v-btn.v-btn-round-border.v-btn-blue:hover .split-div,.v-btn.v-btn-round-border.v-btn-cancel:hover .split-div,.v-btn.v-btn-round-border.v-btn-grey:hover .split-div,.v-btn.v-btn-round-border.v-btn-main:hover .split-div{background-color:var(--v-button-border-action-bkg-color__split--hover)}.v-btn.v-btn-round-border.v-btn-blue.v-btn-pressed,.v-btn.v-btn-round-border.v-btn-blue:active,.v-btn.v-btn-round-border.v-btn-blue:focus-visible,.v-btn.v-btn-round-border.v-btn-cancel.v-btn-pressed,.v-btn.v-btn-round-border.v-btn-cancel:active,.v-btn.v-btn-round-border.v-btn-cancel:focus-visible,.v-btn.v-btn-round-border.v-btn-grey.v-btn-pressed,.v-btn.v-btn-round-border.v-btn-grey:active,.v-btn.v-btn-round-border.v-btn-grey:focus-visible,.v-btn.v-btn-round-border.v-btn-main.v-btn-pressed,.v-btn.v-btn-round-border.v-btn-main:active,.v-btn.v-btn-round-border.v-btn-main:focus-visible{background-color:var(--v-button-border-action-bkg-color--active);border-color:var(--v-button-border-action-border-color--active);color:var(--v-button-border-action-color--active)}.v-btn.v-btn-round-border.v-btn-blue.v-btn-pressed .split-div,.v-btn.v-btn-round-border.v-btn-blue:active .split-div,.v-btn.v-btn-round-border.v-btn-blue:focus-visible .split-div,.v-btn.v-btn-round-border.v-btn-cancel.v-btn-pressed .split-div,.v-btn.v-btn-round-border.v-btn-cancel:active .split-div,.v-btn.v-btn-round-border.v-btn-cancel:focus-visible .split-div,.v-btn.v-btn-round-border.v-btn-grey.v-btn-pressed .split-div,.v-btn.v-btn-round-border.v-btn-grey:active .split-div,.v-btn.v-btn-round-border.v-btn-grey:focus-visible .split-div,.v-btn.v-btn-round-border.v-btn-main.v-btn-pressed .split-div,.v-btn.v-btn-round-border.v-btn-main:active .split-div,.v-btn.v-btn-round-border.v-btn-main:focus-visible .split-div{background-color:var(--v-button-border-action-bkg-color__split--active)}.v-btn.v-btn-round-border.v-btn-blue.v-btn-disabled,.v-btn.v-btn-round-border.v-btn-cancel.v-btn-disabled,.v-btn.v-btn-round-border.v-btn-grey.v-btn-disabled,.v-btn.v-btn-round-border.v-btn-main.v-btn-disabled{background-color:var(--v-button-border-action-bkg-color--disabled);border-color:var(--v-button-border-action-border-color--disabled);color:var(--v-button-border-action-color--disabled)}.v-btn.v-btn-round-border.v-btn-blue.v-btn-disabled .split-btn,.v-btn.v-btn-round-border.v-btn-blue.v-btn-disabled .v-btn-text,.v-btn.v-btn-round-border.v-btn-cancel.v-btn-disabled .split-btn,.v-btn.v-btn-round-border.v-btn-cancel.v-btn-disabled .v-btn-text,.v-btn.v-btn-round-border.v-btn-grey.v-btn-disabled .split-btn,.v-btn.v-btn-round-border.v-btn-grey.v-btn-disabled .v-btn-text,.v-btn.v-btn-round-border.v-btn-main.v-btn-disabled .split-btn,.v-btn.v-btn-round-border.v-btn-main.v-btn-disabled .v-btn-text{opacity:var(--v-button-opacity--disabled)}.v-btn.v-btn-round-border.v-btn-blue.v-btn-disabled .split-div,.v-btn.v-btn-round-border.v-btn-cancel.v-btn-disabled .split-div,.v-btn.v-btn-round-border.v-btn-grey.v-btn-disabled .split-div,.v-btn.v-btn-round-border.v-btn-main.v-btn-disabled .split-div{background-color:var(--v-button-border-action-bkg-color__split--disabled)}.v-btn.v-btn-round-border:hover:not(.v-btn-disabled) .v-icon:not(.disabled){color:var(--hover);fill-opacity:var(--fill-opacity--hover)}.v-btn.v-btn-round-border:active:not(.v-btn-disabled) .v-icon:not(.disabled){color:var(--active);fill-opacity:var(--fill-opacity--active)}.v-btn.v-btn-styleless{background-color:#0000;border:0;border-radius:0;height:auto;width:auto}.v-btn.v-btn-styleless .v-btn-text{padding:0}.v-btn.v-btn-styleless.v-btn-disabled,.v-btn.v-btn-styleless.v-btn-pressed,.v-btn.v-btn-styleless:active,.v-btn.v-btn-styleless:focus-visible,.v-btn.v-btn-styleless:hover{background-color:#0000}.v-btn.v-btn-styleless:after,.v-btn.v-btn-styleless:before{content:none!important}.v-btn-group{--v-button-group-border-color:var(--v-color-border-tier1);--v-button-group-bkg-color--active:var(--v-color-main);--v-button-group-color--active:var(--v-color-white);--v-button-group-border-color--active:var(--v-color-main);--v-button-group-border-color__collapsing:#0000;font-size:0}.v-btn-group .v-btn:first-child{border-bottom-right-radius:0;border-top-right-radius:0}.v-btn-group .v-btn:first-child.v-btn-grey,.v-btn-group .v-btn:first-child.v-btn-grey:active,.v-btn-group .v-btn:first-child.v-btn-grey:hover{border-right-color:var(--v-button-group-border-color)}.v-btn-group .v-btn:first-child.v-btn-grey.v-btn-active{border-right-color:var(--v-button-group-border-color--active)}.v-btn-group .v-btn:last-child{border-bottom-left-radius:0;border-left:1px solid var(--v-button-group-border-color__collapsing);border-top-left-radius:0}.v-btn-group .v-btn.v-btn-active{background-color:var(--v-button-group-bkg-color--active);color:var(--v-button-group-color--active)}.v-btn-group .v-btn:not(:first-child):not(:last-child){border-radius:0}.v-btn-group .v-btn:not(:first-child):not(:last-child).v-btn-grey{border-left-color:var(--v-button-group-border-color__collapsing);border-right-color:var(--v-button-group-border-color)}.v-btn-group .v-btn:not(:first-child):not(:last-child).v-btn-active{border-right-color:var(--v-button-group-border-color--active)}.breakpoint-buttons-group .breakpoint-buttons-group-more-button .v-btn-text{padding:0}.breakpoint-buttons-group .breakpoint-buttons-group-more-button .v-btn-text .buttons-group-more{background-image:image-set(url("webman/3rdparty/Spreadsheet/dist/assets/images/1x/icn_more.png") 1x,url("webman/3rdparty/Spreadsheet/dist/assets/images/2x/icn_more.png") 1.5x);background-size:24px;height:24px;line-height:0;width:24px}.breakpoint-buttons-group .breakpoint-buttons-group-more-button .v-btn-text .buttons-group-more.v-btn-menu-shown,.breakpoint-buttons-group .breakpoint-buttons-group-more-button .v-btn-text .buttons-group-more:active,.breakpoint-buttons-group .breakpoint-buttons-group-more-button .v-btn-text .buttons-group-more:hover{background-position:0 -24px}.v-button-split{--v-button-split-width:1px;--v-button-split-bkg-color:var(--v-color-border-tier2);--v-button-split-height:20px;background:var(--v-button-split-bkg-color);display:inline-block;flex-shrink:0;height:var(--v-button-split-height);line-height:0;overflow:hidden;vertical-align:top;width:var(--v-button-split-width)}.v-card-wrapper.v-layout{--v-card-border-radius:4px;--v-card-margin-bottom:16px;--v-card-border:1px solid var(--v-color-border-tier3);--v-card-background-color:var(--v-color-white);--v-card-box-shadow:0px 4px 9px #00000005;--v-card-font-weight__card-title:var(--v-font-weight-bold);--v-card-font-size__card-title:var(--v-font-size-tier1);--v-card-color__card-title:var(--v-color-font-tier1);--v-card-line-height__card-title:28px;--v-card-margin-right__card-title:12px;--v-card-margin-left__actions-wrapper:auto;--v-card-gap__actions-wrapper:8px;--v-card-width__arrow:24px;--v-card-height__arrow:24px;--v-card-margin__header--regular:15px 19px 16px 19px;--v-card-margin__header--compact:5px 9px 6px 19px;background-color:var(--v-card-background-color);border:var(--v-card-border);border-radius:var(--v-card-border-radius);box-shadow:var(--v-card-box-shadow);display:flex;margin-bottom:var(--v-card-margin-bottom);--svc-layout-margin:unset;--svc-layout-padding:unset;flex-direction:column}.v-card-wrapper.v-layout .v-card-header{align-items:center;display:flex;flex:0 0 auto;flex-direction:row}.v-card-wrapper.v-layout .v-card-header .v-card-title{color:var(--v-card-color__card-title);font-size:var(--v-card-font-size__card-title);font-weight:var(--v-card-font-weight__card-title);line-height:var(--v-card-line-height__card-title);margin-right:var(--v-card-margin-right__card-title)}.v-card-wrapper.v-layout .v-card-header .actions-wrapper{align-items:center;display:flex;flex-direction:row;gap:var(--v-card-gap__actions-wrapper);margin-left:var(--v-card-margin-left__actions-wrapper)}.v-card-wrapper.v-layout .v-card-header .actions-wrapper .card-arrow-down,.v-card-wrapper.v-layout .v-card-header .actions-wrapper .card-arrow-up{background-image:image-set(url("webman/3rdparty/Spreadsheet/dist/assets/images/1x/cate_section_arrow.png") 1x,url("webman/3rdparty/Spreadsheet/dist/assets/images/2x/cate_section_arrow.png") 1.5x);background-size:48px;cursor:pointer;flex:0 0 auto;height:var(--v-card-height__arrow);width:var(--v-card-width__arrow)}.v-card-wrapper.v-layout .v-card-header .actions-wrapper .card-arrow-down:hover,.v-card-wrapper.v-layout .v-card-header .actions-wrapper .card-arrow-up:hover{background-position-y:-24px}.v-card-wrapper.v-layout .v-card-header .actions-wrapper .card-arrow-down:active,.v-card-wrapper.v-layout .v-card-header .actions-wrapper .card-arrow-up:active{background-position-y:-48px}.v-card-wrapper.v-layout .v-card-header .actions-wrapper .card-arrow-down{background-position-x:0}.v-card-wrapper.v-layout .v-card-header .actions-wrapper .card-arrow-up{background-position-x:24px}.v-card-wrapper.v-layout .v-card-body{flex:1 1 auto}.v-card-wrapper.v-layout.layout-card-regular-has-header .v-card-header{margin:var(--v-card-margin__header--regular)}.v-card-wrapper.v-layout.layout-card-compact-has-header .v-card-header{margin:var(--v-card-margin__header--compact)}.v-checkbox-wrapper{--v-checkbox-left__icon:0;--v-checkbox-font-size__label:13px;--v-checkbox-color__label:#2e3032;--v-checkbox-color__label--red:#f2616d;--v-checkbox-color__label--red-disabled:#f2616d66;--v-checkbox-padding-tb__label:0;--v-checkbox-padding-right__label:0;--v-checkbox-padding-left__label:30px;--v-checkbox-padding-tb:5px;--v-checkbox-padding-lr:0;--v-checkbox-line-height__label:20px;padding:var(--v-checkbox-padding-tb) var(--v-checkbox-padding-lr);position:relative}.v-checkbox-wrapper .v-icon.checkbox{background-image:url(webman/3rdparty/Spreadsheet/dist/assets/images/svg/checkbox.svg);background-position:0 0;background-size:20px;height:20px;left:var(--v-checkbox-left__icon);position:absolute;top:calc(var(--v-checkbox-padding-tb) + var(--v-checkbox-padding-tb__label));width:20px}.has-error .v-checkbox-wrapper .v-icon.checkbox{background-position:0 -180px}.v-checkbox-wrapper input[type=checkbox]{opacity:0;pointer-events:none;position:absolute}.v-checkbox-wrapper .v-checkbox-label{color:var(--v-checkbox-color__label);display:inline-block;font-size:var(--v-checkbox-font-size__label);line-height:var(--v-checkbox-line-height__label);padding:var(--v-checkbox-padding-tb__label) var(--v-checkbox-padding-right__label) var(--v-checkbox-padding-tb__label) var(--v-checkbox-padding-left__label);vertical-align:top}.v-checkbox-wrapper .v-checkbox-label.label-color-red{color:var(--v-checkbox-color__label--red)}.v-checkbox-wrapper.checked .v-icon.checkbox{background-position:0 -60px}.has-error .v-checkbox-wrapper.checked .v-icon.checkbox{background-position:0 -200px}.v-checkbox-wrapper.indeterminate .v-icon.checkbox{background-position:0 -120px}.has-error .v-checkbox-wrapper.indeterminate .v-icon.checkbox{background-position:0 -220px}.v-checkbox-wrapper.focused .v-icon.checkbox,.v-checkbox-wrapper:hover .v-icon.checkbox{background-position:0 -20px}.has-error .v-checkbox-wrapper.focused .v-icon.checkbox,.has-error .v-checkbox-wrapper:hover .v-icon.checkbox{background-position:0 -180px}.v-checkbox-wrapper.focused.checked .v-icon.checkbox,.v-checkbox-wrapper:hover.checked .v-icon.checkbox{background-position:0 -80px}.has-error .v-checkbox-wrapper.focused.checked .v-icon.checkbox,.has-error .v-checkbox-wrapper:hover.checked .v-icon.checkbox{background-position:0 -200px}.v-checkbox-wrapper.focused.indeterminate .v-icon.checkbox,.v-checkbox-wrapper:hover.indeterminate .v-icon.checkbox{background-position:0 -140px}.has-error .v-checkbox-wrapper.focused.indeterminate .v-icon.checkbox,.has-error .v-checkbox-wrapper:hover.indeterminate .v-icon.checkbox{background-position:0 -220px}.v-checkbox-wrapper.disabled .v-checkbox-label{color:var(--v-color-font-tier3)}.v-checkbox-wrapper.disabled .v-checkbox-label.label-color-red{color:var(--v-checkbox-color__label--red-disabled)}.v-checkbox-wrapper.disabled .v-icon.checkbox{background-position:0 -40px}.v-checkbox-wrapper.disabled.checked .v-icon.checkbox{background-position:0 -100px}.v-checkbox-wrapper.disabled.indeterminate .v-icon.checkbox{background-position:0 -160px}.v-color-custom-panel.v-panel{--v-color-picker-panel-width__bg:250px;--v-color-picker-panel-height__bg:250px;--v-color-picker-panel-padding:16px 20px;--v-color-picker-panel-size__pointer:16px;--v-color-picker-panel-border__pointer:2px solid #fff;--v-color-picker-panel-box-shadow__pointer:0 0 3px 1px #0003;--v-color-picker-panel-margin-right__color-area:16px;--v-color-picker-panel-border-radius__color-area:var(--v-border-radius-200);--v-color-picker-panel-height__color-bar:250px;--v-color-picker-panel-width__color-bar:8px;--v-color-picker-panel-gap__color-bar:12px;--v-color-picker-panel-margin__color-bar:0 32px 0 0;--v-color-picker-panel-border-radius__color-bar:var(--v-border-radius-200);--v-color-picker-panel-border__alpha:1px solid #0000001a;--v-color-picker-panel-border__color-area:1px solid #0000001a;--v-color-picker-panel-width__minimap:68px;--v-color-picker-panel-height__minimap:48px;--v-color-picker-panel-margin__minimap:0 0 12px auto;--v-color-picker-panel-border__minimap:1px solid #0000001a;--v-color-picker-panel-gap__form:8px;--v-color-picker-panel-color__field:var(--v-color-font-tier1);--v-color-picker-panel-gap__field:8px;--v-color-picker-panel-width__textfield:68px;--v-color-picker-panel-width__value-textfield:92px;padding-top:var(--v-color-picker-panel-padding-top)}.v-color-custom-panel.v-panel .layout-body-wrapper{padding:0}.v-color-custom-panel.v-panel .color-wrapper{box-sizing:border-box;display:flex;padding:var(--v-color-picker-panel-padding)}.v-color-custom-panel.v-panel .color-wrapper .pointer{border:var(--v-color-picker-panel-border__pointer);border-radius:50%;box-shadow:var(--v-color-picker-panel-box-shadow__pointer);box-sizing:border-box;cursor:pointer;height:var(--v-color-picker-panel-size__pointer);position:absolute;transform:translate(-50%,-50%);width:var(--v-color-picker-panel-size__pointer);z-index:2}.v-color-custom-panel.v-panel .color-wrapper .color-area{border-radius:var(--v-color-picker-panel-border-radius__color-area);height:var(--v-color-picker-panel-height__bg);margin-right:var(--v-color-picker-panel-margin-right__color-area);position:relative;width:var(--v-color-picker-panel-width__bg)}.v-color-custom-panel.v-panel .color-wrapper .color-area .color-bg{border:var(--v-color-picker-panel-border__color-area);border-radius:var(--v-color-picker-panel-border-radius__color-area);box-sizing:border-box;height:100%;position:absolute;width:100%}.v-color-custom-panel.v-panel .color-wrapper .color-area .color-bg.cover-right{background:linear-gradient(90deg,#fff 0,#fff0);background-origin:border-box;border:none;z-index:0}.v-color-custom-panel.v-panel .color-wrapper .color-area .color-bg.cover-bottom{background:linear-gradient(180deg,#0000 0,#000);background-origin:border-box;z-index:1}.v-color-custom-panel.v-panel .color-wrapper .color-bar{display:flex;gap:var(--v-color-picker-panel-gap__color-bar);height:var(--v-color-picker-panel-height__color-bar);margin:var(--v-color-picker-panel-margin__color-bar)}.v-color-custom-panel.v-panel .color-wrapper .color-bar .bar{background-origin:border-box;border-radius:var(--v-color-picker-panel-border-radius__color-bar);box-sizing:border-box;height:100%;position:relative;width:var(--v-color-picker-panel-width__color-bar)}.v-color-custom-panel.v-panel .color-wrapper .color-bar .bar .pointer{transform:translate(-4px,-8px)}.v-color-custom-panel.v-panel .color-wrapper .color-bar .bar.hue{background:linear-gradient(180deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 66%,#f0f 83%,red);border:var(--v-color-picker-panel-border__alpha)}.v-color-custom-panel.v-panel .color-wrapper .color-bar .bar.hue .pointer{transform:translate(-5px,-9px)}.v-color-custom-panel.v-panel .color-wrapper .color-bar .bar.alpha{background-image:url(webman/3rdparty/Spreadsheet/dist/assets/images/svg/color_picker_transparent_bg.svg);background-size:8px 8px}.v-color-custom-panel.v-panel .color-wrapper .color-bar .bar.alpha .cover{background-image:linear-gradient(179deg,var(--current-color) 0,#f000 100%);background-origin:border-box;border:var(--v-color-picker-panel-border__alpha);border-radius:var(--v-color-picker-panel-border-radius__color-bar);box-sizing:border-box;height:100%;width:100%}.v-color-custom-panel.v-panel .color-wrapper .display-area{display:flex;flex-direction:column;margin-left:auto}.v-color-custom-panel.v-panel .color-wrapper .display-area .minimap{background-image:url(webman/3rdparty/Spreadsheet/dist/assets/images/svg/color_picker_transparent_bg.svg);background-origin:border-box;background-size:8px 8px;border-radius:var(--v-color-picker-panel-border-radius__color-area);height:var(--v-color-picker-panel-height__minimap);margin:var(--v-color-picker-panel-margin__minimap);width:var(--v-color-picker-panel-width__minimap)}.v-color-custom-panel.v-panel .color-wrapper .display-area .minimap .minimap-color{border:var(--v-color-picker-panel-border__minimap);border-radius:var(--v-color-picker-panel-border-radius__color-area);box-sizing:border-box;height:100%;width:100%}.v-color-custom-panel.v-panel .color-wrapper .display-area .form{display:flex;flex:1 1 auto;flex-direction:column;gap:var(--v-color-picker-panel-gap__form)}.v-color-custom-panel.v-panel .color-wrapper .display-area .form .field{align-items:center;color:var(--v-color-picker-panel-color__field);display:flex;gap:var(--v-color-picker-panel-gap__field)}.v-color-custom-panel.v-panel .color-wrapper .display-area .form .field .v-textfield-wrapper{flex:0 0 auto;margin-left:auto;width:var(--v-color-picker-panel-width__textfield)}.v-color-custom-panel.v-panel .color-wrapper .display-area .form .field.real-value{margin-top:auto;width:var(--v-color-picker-panel-width__value-textfield)}.v-color-custom-panel.v-panel .color-wrapper .display-area .form .field.real-value .v-textfield-wrapper{flex:1 1 auto}.v-select-wrapper.v-color-picker-wrapper{--v-color-picker-width__icon:16px;--v-color-picker-height__icon:16px;--v-color-picker-border:1px solid #0000;--v-color-picker-border--hover:1px solid #7c8a9866;--v-color-picker-border--focus:1px solid #7c8a9880;--v-color-picker-border--disabled:1px solid #0000;--v-color-picker-border-width:1px;--v-color-picker-bkg-color:#c6d4e066;--v-color-picker-bkg-color--hover:#c6d4e066;--v-color-picker-bkg-color--focus:#c0d4e099;--v-color-picker-bkg-color--disabled:#c6d4e066;--v-color-picker-padding-top:6px;--v-color-picker-padding-right:26px;--v-color-picker-padding-bottom:6px;--v-color-picker-padding-left:10px;--v-color-picker-width:52px;--v-color-picker-opacity--disabled:0.4;--v-color-picker-top__dropdown-icon:3px;--v-color-picker-right__dropdown-icon:8px;--v-color-picker-border__icon:1px solid #0000001a;--v-color-picker-border-radius__icon:var(--v-border-radius-50);--v-color-picker-border-radius:var(--v-border-radius-100);--v-color-picker-custom:false;background-color:var(--v-color-picker-bkg-color);border:var(--v-color-picker-border);border-radius:var(--v-color-picker-border-radius);box-sizing:border-box;cursor:pointer;padding:calc(var(--v-color-picker-padding-top) - var(--v-color-picker-border-width)) calc(var(--v-color-picker-padding-right) - var(--v-color-picker-border-width)) calc(var(--v-color-picker-padding-bottom) - var(--v-color-picker-border-width)) calc(var(--v-color-picker-padding-left) - var(--v-color-picker-border-width));position:relative;width:var(--v-color-picker-width)}.v-select-wrapper.v-color-picker-wrapper:hover{background-color:var(--v-color-picker-bkg-color--hover);border:var(--v-color-picker-border--hover)}.v-select-wrapper.v-color-picker-wrapper.focused{background-color:var(--v-color-picker-bkg-color--focus);border:var(--v-color-picker-border--focus)}.v-select-wrapper.v-color-picker-wrapper.disabled{background-color:var(--v-color-picker-bkg-color--disabled);border:var(--v-color-picker-border--disabled);cursor:default;opacity:var(--v-color-picker-opacity--disabled)}.v-select-wrapper.v-color-picker-wrapper .v-icon.color-picker-dropdown{background-image:image-set(url("webman/3rdparty/Spreadsheet/dist/assets/images/1x/bt_dp_arrow.png") 1x,url("webman/3rdparty/Spreadsheet/dist/assets/images/2x/bt_dp_arrow.png") 1.5x);background-position:0 0;background-size:12px;background-size:12px 48px;display:inline-block;height:24px;position:absolute;right:calc(var(--v-color-picker-right__dropdown-icon) - var(--v-color-picker-border-width));top:calc(var(--v-color-picker-top__dropdown-icon) - var(--v-color-picker-border-width));width:12px}.v-select-wrapper.v-color-picker-wrapper.focused,.v-select-wrapper.v-color-picker-wrapper:hover{background-position:0 -24px}.v-select-wrapper.v-color-picker-wrapper.disabled{background-position:0 0}.v-color-picker-dropdown{--v-color-picker-dropdown-padding-tb:8px;--v-color-picker-dropdown-padding-lr:8px;--v-color-picker-dropdown-bkg-color:#fff;--v-color-picker-dropdown-border-radius:3px;--v-color-picker-dropdown-border:1px solid #d8dadc;--v-color-picker-dropdown-border-width:1px;--v-color-picker-dropdown-box-shadow:0 2px 8px #00000040;--v-color-picker-dropdown-font-size__button:var(--v-font-size-tier1);--v-color-picker-dropdown-line-height__button:var(--v-line-height-300);--v-color-picker-dropdown-color__button:var(--v-color-font-tier1);--v-color-picker-dropdown-padding__button:0 0 0 36px;--v-color-picker-dropdown-bkg-color__button:#0000;--v-color-picker-dropdown-bkg-color__button--hover:var(--v-item-bg-tier2);--v-color-picker-dropdown-width:252px;--v-color-picker-dropdown-padding__item:2px;--v-color-picker-dropdown-border__item:1px solid #0000;--v-color-picker-dropdown-margin__item:1px;--v-color-picker-dropdown-border-radius__item:var(--v-border-radius-200);--v-color-picker-dropdown-border-radius__block:var(--v-border-radius-50);--v-color-picker-dropdown-border__item--hover:1px solid #0003;--v-color-picker-dropdown-border__item--active:1px solid #0009;--v-color-picker-dropdown-width__block:16px;--v-color-picker-dropdown-height__block:16px;--v-color-picker-dropdown-border__block:1px solid #e8eaf6;--v-color-picker-dropdown-padding__custom-wrapper:3px 6px 3px 6px;--v-color-picker-dropdown-padding__common-wrapper:3px 6px 3px 6px;--v-color-picker-dropdown-padding__default-wrapper:3px 6px 3px 6px;background-color:var(--v-color-picker-dropdown-bkg-color);border:var(--v-color-picker-dropdown-border);border-radius:var(--v-color-picker-dropdown-border-radius);border-width:var(--v-color-picker-dropdown-border-width);box-shadow:var(--v-color-picker-dropdown-box-shadow);box-sizing:border-box;display:flex;flex-direction:column;padding:calc(var(--v-color-picker-dropdown-padding-tb) - var(--v-color-picker-dropdown-border-width)) calc(var(--v-color-picker-dropdown-padding-lr) - var(--v-color-picker-dropdown-border-width))}.v-color-picker-dropdown ul{list-style-type:none}.v-color-picker-dropdown .custom-button-wrapper,.v-color-picker-dropdown .reset-button-wrapper{display:flex;position:relative}.v-color-picker-dropdown .custom-button-wrapper:focus,.v-color-picker-dropdown .custom-button-wrapper:hover,.v-color-picker-dropdown .reset-button-wrapper:focus,.v-color-picker-dropdown .reset-button-wrapper:hover{background-color:var(--v-color-picker-dropdown-bkg-color__button--hover)}.v-color-picker-dropdown .color-picker-custom,.v-color-picker-dropdown .color-picker-reset{height:24px;left:6px;position:absolute;top:2px;width:24px}.v-color-picker-dropdown .color-picker-reset{background-image:image-set(url("webman/3rdparty/Spreadsheet/dist/assets/images/1x/textfield_color_reset.png") 1x,url("webman/3rdparty/Spreadsheet/dist/assets/images/2x/textfield_color_reset.png") 1.5x);background-size:24px}.v-color-picker-dropdown .color-picker-custom{background-image:image-set(url("webman/3rdparty/Spreadsheet/dist/assets/images/1x/textfield_color_custom.png") 1x,url("webman/3rdparty/Spreadsheet/dist/assets/images/2x/textfield_color_custom.png") 1.5x);background-size:24px}.v-color-picker-dropdown .color-picker-button{background-color:var(--v-color-picker-dropdown-bkg-color__button);border-radius:3px;border-width:0;color:var(--v-color-picker-dropdown-color__button);cursor:pointer;font-family:var(--v-font-family-base);font-size:var(--v-color-picker-dropdown-font-size__button);font-variant-ligatures:none;line-height:var(--v-color-picker-dropdown-line-height__button);padding:var(--v-color-picker-dropdown-padding__button);position:relative;text-align:left;width:100%}.v-color-picker-dropdown .color-picker-button:lang(zh-TW){font-family:var(--v-font-family-zh-tw)}.v-color-picker-dropdown .color-picker-button:lang(zh-CN){font-family:var(--v-font-family-zh-cn)}.v-color-picker-dropdown .color-picker-button:lang(ja){font-family:var(--v-font-family-ja)}.v-color-picker-dropdown .common-color-wrapper{box-sizing:border-box;display:flex;flex-wrap:wrap;padding:var(--v-color-picker-dropdown-padding__common-wrapper);width:var(--v-color-picker-dropdown-width)}.v-color-picker-dropdown .common-color-wrapper .color-item{border:var(--v-color-picker-dropdown-border__item);border-radius:var(--v-color-picker-dropdown-border-radius__item);margin:var(--v-color-picker-dropdown-margin__item);padding:var(--v-color-picker-dropdown-padding__item)}.v-color-picker-dropdown .common-color-wrapper .color-item:hover{border:var(--v-color-picker-dropdown-border__item--hover)}.v-color-picker-dropdown .common-color-wrapper .color-item.activated{border:var(--v-color-picker-dropdown-border__item--active)}.v-color-picker-dropdown .common-color-wrapper .color-item .color-block{background-image:url(webman/3rdparty/Spreadsheet/dist/assets/images/svg/color_picker_transparent_bg.svg);background-size:8px 8px;border-radius:var(--v-color-picker-dropdown-border-radius__block);display:block;height:var(--v-color-picker-dropdown-height__block);overflow:hidden;position:relative;width:var(--v-color-picker-dropdown-width__block)}.v-color-picker-dropdown .common-color-wrapper .color-item .color-block .cover{border-radius:var(--v-color-picker-dropdown-border-radius__block);box-sizing:border-box;display:inline-block;height:100%;width:100%}.v-color-picker-dropdown .common-color-wrapper .color-item .color-block .cover.has-border{border:var(--v-color-picker-dropdown-border__block)}.v-color-picker-dropdown .custom-color-wrapper{box-sizing:border-box;display:flex;flex-wrap:wrap;padding:var(--v-color-picker-dropdown-padding__custom-wrapper);width:var(--v-color-picker-dropdown-width)}.v-color-picker-dropdown .custom-color-wrapper .color-item{border:var(--v-color-picker-dropdown-border__item);border-radius:var(--v-color-picker-dropdown-border-radius__item);margin:var(--v-color-picker-dropdown-margin__item);padding:var(--v-color-picker-dropdown-padding__item)}.v-color-picker-dropdown .custom-color-wrapper .color-item:hover{border:var(--v-color-picker-dropdown-border__item--hover)}.v-color-picker-dropdown .custom-color-wrapper .color-item.activated{border:var(--v-color-picker-dropdown-border__item--active)}.v-color-picker-dropdown .custom-color-wrapper .color-item .color-block{background-image:url(webman/3rdparty/Spreadsheet/dist/assets/images/svg/color_picker_transparent_bg.svg);background-size:8px 8px;border-radius:var(--v-color-picker-dropdown-border-radius__block);display:block;height:var(--v-color-picker-dropdown-height__block);overflow:hidden;position:relative;width:var(--v-color-picker-dropdown-width__block)}.v-color-picker-dropdown .custom-color-wrapper .color-item .color-block .cover{border-radius:var(--v-color-picker-dropdown-border-radius__block);box-sizing:border-box;display:inline-block;height:100%;width:100%}.v-color-picker-dropdown .custom-color-wrapper .color-item .color-block .cover.has-border{border:var(--v-color-picker-dropdown-border__block)}.v-color-picker-dropdown .default-color-wrapper{box-sizing:border-box;display:flex;flex-wrap:wrap;padding:var(--v-color-picker-dropdown-padding__default-wrapper);width:var(--v-color-picker-dropdown-width)}.v-color-picker-dropdown .default-color-wrapper .color-item{border:var(--v-color-picker-dropdown-border__item);border-radius:var(--v-color-picker-dropdown-border-radius__item);margin:var(--v-color-picker-dropdown-margin__item);padding:var(--v-color-picker-dropdown-padding__item)}.v-color-picker-dropdown .default-color-wrapper .color-item:hover{border:var(--v-color-picker-dropdown-border__item--hover)}.v-color-picker-dropdown .default-color-wrapper .color-item.activated{border:var(--v-color-picker-dropdown-border__item--active)}.v-color-picker-dropdown .default-color-wrapper .color-item .color-block{background-image:url(webman/3rdparty/Spreadsheet/dist/assets/images/svg/color_picker_transparent_bg.svg);background-size:8px 8px;border-radius:var(--v-color-picker-dropdown-border-radius__block);display:block;height:var(--v-color-picker-dropdown-height__block);overflow:hidden;position:relative;width:var(--v-color-picker-dropdown-width__block)}.v-color-picker-dropdown .default-color-wrapper .color-item .color-block .cover{border-radius:var(--v-color-picker-dropdown-border-radius__block);box-sizing:border-box;display:inline-block;height:100%;width:100%}.v-color-picker-dropdown .default-color-wrapper .color-item .color-block .cover.has-border{border:var(--v-color-picker-dropdown-border__block)}.v-select-color-icon{background-image:url(webman/3rdparty/Spreadsheet/dist/assets/images/svg/color_picker_transparent_bg.svg);background-size:8px 8px;border-radius:var(--v-color-picker-border-radius__icon);display:block;height:var(--v-color-picker-height__icon);overflow:hidden;width:var(--v-color-picker-width__icon)}.v-select-color-icon .cover{border:var(--v-color-picker-border__icon);border-radius:var(--v-color-picker-border-radius__icon);box-sizing:border-box;display:block;height:100%;width:100%}.v-copy-cut-field-wrapper{--v-copy-cut-field-margin-left__button:8px;--v-copy-cut-field-custom:false;align-items:flex-start;display:flex;flex-direction:row;width:100%}.v-copy-cut-field-wrapper .v-copy-cut-field-input{width:100%}.v-copy-cut-field-wrapper .v-btn-display-icon{background-position:top 1px right 2px;background-repeat:no-repeat;margin-left:var(--v-copy-cut-field-margin-left__button)}.v-copy-cut-field-wrapper .v-btn-display-icon .v-icon.copy{background-image:image-set(url("webman/3rdparty/Spreadsheet/dist/assets/images/1x/menu_copy.png") 1x,url("webman/3rdparty/Spreadsheet/dist/assets/images/2x/menu_copy.png") 1.5x);background-size:24px}.v-copy-cut-field-wrapper .v-btn-display-icon .v-icon.cut{background-image:image-set(url("webman/3rdparty/Spreadsheet/dist/assets/images/1x/menu_cut.png") 1x,url("webman/3rdparty/Spreadsheet/dist/assets/images/2x/menu_cut.png") 1.5x);background-size:24px}.mobile-row-card-wrapper{display:flex;flex-direction:column;--v-table-mobile-row-card-font-size__header:var(--v-font-size-tier4);--v-table-mobile-row-card-margin__header:12px 0 0 0;--v-table-mobile-row-card-margin__content:12px 0 0 0;--v-table-mobile-row-card-margin__desc:6px 0 0 0;--v-table-mobile-row-card-margin-right__header-title:12px;--v-table-mobile-row-card-color__header:var(--v-color-font-tier1);--v-table-mobile-row-card-line-height__header:var(--v-line-height-200);--v-table-mobile-row-card-font-weight__header:var(--v-font-weight-normal);--v-table-mobile-row-card-width__label:180px;--v-table-mobile-row-card-font-size__label:var(--v-font-size-tier1);--v-table-mobile-row-card-color__label:var(--v-color-font-tier2);--v-table-mobile-row-card-height__field:auto;--v-table-mobile-row-card-line-height__field:var(--v-line-height-100);--v-table-mobile-row-card-padding__field:4px 0;--v-table-mobile-row-card-font-size__desc:var(--v-font-size-tier1);--v-table-mobile-row-card-color__desc:var(--v-color-font-tier1);--v-table-mobile-row-card-line-height__desc:var(--v-line-height-100);--v-table-mobile-row-card-padding__desc:4px 0;--v-table-mobile-row-card-padding__desc--collapsible:4px 0 4px 32px;--v-table-mobile-row-card-padding__field--collapsible:0 0 0 32px;--v-table-mobile-row-card-margin__expand-icon:0 8px 0 0;--v-table-mobile-row-card-margin__field-value--vertical:0 0 12px 0;--v-table-mobile-row-card-row-gap__field:6px;--v-table-mobile-row-card-column-gap__field:8px;--v-table-mobile-row-card-border-bottom:1px solid var(--v-color-border-tier3);--v-table-mobile-row-card-padding:0 0 12px 0;border-bottom:var(--v-table-mobile-row-card-border-bottom);padding:var(--v-table-mobile-row-card-padding)}.mobile-row-card-wrapper .header-wrapper{align-items:center;cursor:pointer;display:flex;margin:var(--v-table-mobile-row-card-margin__header)}.mobile-row-card-wrapper .header-wrapper .header-title{color:var(--v-table-mobile-row-card-color__header);font-size:var(--v-table-mobile-row-card-font-size__header);line-height:var(--v-table-mobile-row-card-line-height__header);margin-right:var(--v-table-mobile-row-card-margin-right__header-title)}.mobile-row-card-wrapper .header-wrapper .data-table-mobile-chevron-down,.mobile-row-card-wrapper .header-wrapper .data-table-mobile-chevron-up{background-image:image-set(url("webman/3rdparty/Spreadsheet/dist/assets/images/1x/cate_section_arrow.png") 1x,url("webman/3rdparty/Spreadsheet/dist/assets/images/2x/cate_section_arrow.png") 1.5x);background-size:48px;cursor:pointer;flex:0 0 auto;height:24px;margin:var(--v-table-mobile-row-card-margin__expand-icon);width:24px}.mobile-row-card-wrapper .header-wrapper .data-table-mobile-chevron-down{background-position-x:0}.mobile-row-card-wrapper .header-wrapper .data-table-mobile-chevron-up{background-position-x:24px}.mobile-row-card-wrapper .header-wrapper .action-wrapper{margin-left:auto}.mobile-row-card-wrapper .desc-wrapper{color:var(--v-table-mobile-row-card-color__desc);font-size:var(--v-table-mobile-row-card-font-size__desc);line-height:var(--v-table-mobile-row-card-line-height__desc);margin:var(--v-table-mobile-row-card-margin__desc);padding:var(--v-table-mobile-row-card-padding__desc)}.mobile-row-card-wrapper .content-wrapper{margin:var(--v-table-mobile-row-card-margin__content)}.mobile-row-card-wrapper.collapsible .desc-wrapper{padding:var(--v-table-mobile-row-card-padding__desc--collapsible)}.mobile-row-card-wrapper.collapsible .field-wrapper{padding:var(--v-table-mobile-row-card-padding__field--collapsible)}.mobile-row-card-wrapper .field-wrapper{column-gap:var(--v-table-mobile-row-card-column-gap__field);display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto 1fr;row-gap:var(--v-table-mobile-row-card-row-gap__field)}.mobile-row-card-wrapper .field-wrapper.field-align-vertical{row-gap:0}.mobile-row-card-wrapper .field-wrapper.field-align-vertical .mobile-label,.mobile-row-card-wrapper .field-wrapper.field-align-vertical .mobile-value{grid-column-end:3;grid-column-start:1;width:auto}.mobile-row-card-wrapper .field-wrapper.field-align-vertical .mobile-value{margin:var(--v-table-mobile-row-card-margin__field-value--vertical);overflow-wrap:break-word}.mobile-row-card-wrapper .field-wrapper.field-align-vertical .mobile-value:last-child{margin-bottom:0}.mobile-row-card-wrapper .field-wrapper .mobile-label,.mobile-row-card-wrapper .field-wrapper .mobile-value{height:var(--v-table-mobile-row-card-height__field);line-height:var(--v-table-mobile-row-card-line-height__field);padding:var(--v-table-mobile-row-card-padding__field)}.mobile-row-card-wrapper .field-wrapper .mobile-label{color:var(--v-table-mobile-row-card-color__label);grid-column-end:2;grid-column-start:1;width:var(--v-table-mobile-row-card-width__label)}.mobile-row-card-wrapper .field-wrapper .mobile-value{grid-column-end:3;grid-column-start:2}.data-table-draggable-indicator{--v-table-dragging-bkg-color__row--invalid-drop-hover:#0000;--v-table-dragging-bkg-color__row--valid-drop-hover:var(--v-item-bg-tier2);--v-table-dragging-border__row--valid-drop-hover:1px solid var(--v-color-main);--v-table-dragging-bkg-color__row-dragging:rgba(var(--d-theme-color-grid-select),0.4);--v-table-dragging-opacity:0.4;box-sizing:border-box;display:block;overflow:hidden;pointer-events:none;position:absolute;top:0;z-index:var(--v-z-index-data-table-col-moveable-indicator)}.data-table-draggable-indicator.landed-down{border-bottom:var(--v-table-dragging-border__row--valid-drop-hover)}.data-table-draggable-indicator.landed-up{border-top:var(--v-table-dragging-border__row--valid-drop-hover)}.data-table-draggable-indicator.landed-inner{border:var(--v-table-dragging-border__row--valid-drop-hover)}.col-moveable-indicator{--v-table-indicator-width__resize-indicator:1px;--v-table-indicator-color__resize-indicator:#505a64;--v-table-indicator-width__moveable-indicator:9px;--v-table-indicator-height__moveable-indicator:9px;background:#0000 no-repeat 0 0;display:block;height:var(--v-table-indicator-height__moveable-indicator);overflow:hidden;position:absolute;top:0;width:var(--v-table-indicator-width__moveable-indicator);z-index:var(--v-z-index-data-table-col-moveable-indicator)}.col-moveable-indicator.bottom{background-image:image-set(url("webman/3rdparty/Spreadsheet/dist/assets/images/1x/col-move-bottom.png") 1x,url("webman/3rdparty/Spreadsheet/dist/assets/images/2x/col-move-bottom.png") 1.5x);background-size:9px}.col-moveable-indicator.top{background-image:image-set(url("webman/3rdparty/Spreadsheet/dist/assets/images/1x/col-move-top.png") 1x,url("webman/3rdparty/Spreadsheet/dist/assets/images/2x/col-move-top.png") 1.5x);background-size:9px}.col-moveable-indicator--hidden{display:none}.v-table-dd-ghost{--v-table-dd-ghost-border-color:rgba(var(--v-color-blue),0.2);--v-table-dd-ghost-bkg-color:var(--v-item-bg-tier1);--v-table-dd-ghost-box-shadow:0 2px 4px #00000014;--v-table-dd-ghost-padding__col-moveable:6px 12px 6px 0;--v-table-dd-ghost-border-radius:4px;--v-table-dd-ghost-opacity:0.7;--v-table-dd-ghost-width__col-desc:120px;--v-table-dd-ghost-margin-left__drop-icon:10px;--v-table-dd-ghost-margin-left__col-desc:8px;--v-table-dd-ghost-font-size__col-desc:var(--v-font-size-tier2);--v-table-dd-ghost-color__col-desc:var(--v-color-font-tier1);--v-table-dd-ghost-height__col-desc:24px;--v-table-border-bottom--cover-border:1px solid var(--v-color-border-tier3);--v-table-padding:0;--v-table-color:var(--v-color-font-tier1);--v-table-color__dragging:var(--v-color-font-tier3);--v-table-border-top:1px solid var(--v-color-border-tier2);--v-table-border-top--mobile:1px solid var(--v-color-border-tier3);--v-table-border-right__th:1px solid var(--v-color-border-tier3);--v-table-opacity__spin-masking:0.6;--v-table-padding-left__th--draggable:24px;--v-table-left__border--draggable:16px;--v-table-padding-right__last-th:25px;--v-table-margin__form-item:0;--v-table-height__form-item:28px;--v-table-border-radius__input:var(--v-border-radius-200);--v-table-margin__input:1px 0;--v-table-height__input:28px;--v-table-border-width__input:1px;--v-table-padding-top__input:3px;--v-table-padding-bottom__input:3px;--v-table-padding-right__input:12px;--v-table-padding-left__input:12px;--v-table-min-height__input:26px;--v-table-height__select:26px;--v-table-padding-top__select:3px;--v-table-padding-bottom__select:3px;--v-table-max-width__empty-wrapper:400px;--v-table-min-height__empty-wrapper:20px;--v-table-padding__empty-wrapper:17px 19px;--v-table-border__empty-wrapper:1px solid var(--v-color-border-tier2);--v-table-border-radius__empty-wrapper:var(--v-border-radius-100);--v-table-box-shadow__empty-wrapper:0 1px 4px 0 rggba(0,0,0,0.16);--v-table-line-height__empty-wrapper:20px;--v-table-font-size__empty-wrapper:var(--v-font-size-tier1);--v-table-bkg-color__row:var(--v-color-white);--v-table-bkg-color__row--hover:var(--v-item-bg-tier1);--v-table-bkg-color__row--selected:var(--d-theme-color-grid-select);--v-table-header-padding-lr__menu-wrapper:2px;--v-table-header-border-left__menu:1px solid var(--v-color-border-tier3);--v-table-header-border-bottom__th:1px solid var(--v-color-border-tier3);--v-table-header-bkg-color__menu:var(--v-color-white);--v-table-header-border-width:1px;--v-table-header-width__menu-icon:12px;--v-table-header-height__menu-icon:24px;--v-table-header-height__menu-border:28px;--v-table-group-header-padding-top__th:2px;--v-table-group-header-padding__second-th:2px 0;--v-table-group-header-height__border--single:16px;--v-table-group-header-height__border--total:24px;--v-table-group-header-height__column:20px;--v-table-group-header-top__border:4px;--v-table-group-header-padding-lr__menu-wrapper:2px;--v-table-group-header-border-left__menu:1px solid var(--v-color-border-tier3);--v-table-group-header-border-bottom__th:1px solid var(--v-color-border-tier3);--v-table-group-header-bkg-color__menu:var(--v-color-white);--v-table-group-header-border-width:1px;--v-table-group-header-width__menu-icon:12px;--v-table-group-header-height__menu-icon:24px;--v-table-group-header-height__menu-border:28px;--v-table-cell-height:29px;--v-table-cell-size__action:20px;--v-table-cell-padding-tb:0;--v-table-cell-padding-lr:8px;--v-table-cell-padding__group-content--auto-row-height:4px 8px;--v-table-cell-padding--has-expand:0 0 0 4px;--v-table-cell-line-height__content:20px;--v-table-cell-line-height__group-node:20px;--v-table-cell-size__expand-icon:20px;--v-table-cell-margin__expand-icon:4px 4px 0 0;--v-table-cell-border__inner--landed:1px solid var(--v-color-action-normal);--v-table-cell-border-bottom:1px solid var(--v-color-border-tier3);--v-table-cell-font-weight__advanced--expanded:var(--v-font-weight-bold);--v-table-cell-opacity--expanded-disabled:0.4;--v-table-cell-opacity__first-cell--draggable:0.4;--v-table-cell-padding__last-cell:0 25px 0 8px;--v-table-cell-padding-left__first-cell--draggable:24px;--v-table-cell-padding-left__group-node:32px;--v-table-cell-font-weight__group-title:var(--v-font-weight-bold);--v-table-cell-font-size__group-title:var(--v-font-size-small-tier1);--v-table-cell-padding-left__group-title:4px;--v-table-cell-padding-left__group-title-not-expandable:8px;--v-table-cell-color__group-title:#2e303280;--v-table-cell-color__group-title--hover:#2e303299;--v-table-cell-color__group-title--active:#2e3032b3;--v-table-cell-width__group-check-wrapper:20px;--v-table-cell-height__group-check-wrapper:20px;--v-table-cell-padding__group-check-wrapper:0 4px 0 0;--v-table-head-cell-margin__sorter--action:4px 0 4px 0;--v-table-head-cell-margin__sorter--action-with-text:4px 0 4px 4px;--v-table-head-cell-margin__sorter:4px 0 4px 4px;--v-table-head-cell-padding__checkbox:0 4px;--v-table-head-cell-color:var(--v-color-font-tier2);--v-table-head-cell-color--hover:var(--v-color-main);--v-table-head-cell-color--active:#005cad;--v-table-head-cell-padding:0 8px;--v-table-head-cell-height:28px;--v-table-head-cell-line-height:28px;--v-table-head-cell-font-size:var(--v-font-size-tier1);--v-table-head-cell-font-weight:var(--v-font-weight-normal);border:1px solid var(--v-table-dd-ghost-border-color);box-shadow:var(--v-table-dd-ghost-box-shadow);padding:0}.v-table-dd-ghost .v-table{background-color:var(--v-table-dd-ghost-bkg-color);border:none}.v-table-dd-ghost .v-table-body td{border-bottom:none!important}.v-table-dd-ghost .v-table-body td.cell-first.is-draggable .data-table-draggable-s{background-position:0 -24px;color:var(--hover)}.v-table-dd-ghost.col-moveable-ghost{border-radius:var(--v-table-dd-ghost-border-radius);opacity:var(--v-table-dd-ghost-opacity);padding:var(--v-table-dd-ghost-padding__col-moveable)}.v-table-dd-ghost.col-moveable-ghost .col-moveable{display:flex}.v-table-dd-ghost.col-moveable-ghost .dd-drop-icon{background-image:image-set(url("webman/3rdparty/Spreadsheet/dist/assets/images/1x/dd_icn.png") 1x,url("webman/3rdparty/Spreadsheet/dist/assets/images/2x/dd_icn.png") 1.5x);background-size:24px;height:24px;margin-left:var(--v-table-dd-ghost-margin-left__drop-icon);width:24px}.v-table-dd-ghost.col-moveable-ghost .col-desc{color:var(--v-table-dd-ghost-color__col-desc);font-size:var(--v-table-dd-ghost-font-size__col-desc);line-height:var(--v-table-dd-ghost-height__col-desc);margin-left:var(--v-table-dd-ghost-margin-left__col-desc);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:var(--v-table-dd-ghost-width__col-desc)}.v-table-dd-ghost.col-moveable-ghost.dd-valid .dd-drop-icon{background-position:0 0}.v-table-dd-ghost.col-moveable-ghost.dd-invalid .dd-drop-icon{background-position:0 -24px}.v-table-wrapper{--v-table-border-bottom--cover-border:1px solid var(--v-color-border-tier3);--v-table-padding:0;--v-table-color:var(--v-color-font-tier1);--v-table-color__dragging:var(--v-color-font-tier3);--v-table-border-top:1px solid var(--v-color-border-tier2);--v-table-border-top--mobile:1px solid var(--v-color-border-tier3);--v-table-border-right__th:1px solid var(--v-color-border-tier3);--v-table-opacity__spin-masking:0.6;--v-table-padding-left__th--draggable:24px;--v-table-left__border--draggable:16px;--v-table-padding-right__last-th:25px;--v-table-margin__form-item:0;--v-table-height__form-item:28px;--v-table-border-radius__input:var(--v-border-radius-200);--v-table-margin__input:1px 0;--v-table-height__input:28px;--v-table-border-width__input:1px;--v-table-padding-top__input:3px;--v-table-padding-bottom__input:3px;--v-table-padding-right__input:12px;--v-table-padding-left__input:12px;--v-table-min-height__input:26px;--v-table-height__select:26px;--v-table-padding-top__select:3px;--v-table-padding-bottom__select:3px;--v-table-max-width__empty-wrapper:400px;--v-table-min-height__empty-wrapper:20px;--v-table-padding__empty-wrapper:17px 19px;--v-table-border__empty-wrapper:1px solid var(--v-color-border-tier2);--v-table-border-radius__empty-wrapper:var(--v-border-radius-100);--v-table-box-shadow__empty-wrapper:0 1px 4px 0 rggba(0,0,0,0.16);--v-table-line-height__empty-wrapper:20px;--v-table-font-size__empty-wrapper:var(--v-font-size-tier1);--v-table-bkg-color__row:var(--v-color-white);--v-table-bkg-color__row--hover:var(--v-item-bg-tier1);--v-table-bkg-color__row--selected:var(--d-theme-color-grid-select);--v-table-header-padding-lr__menu-wrapper:2px;--v-table-header-border-left__menu:1px solid var(--v-color-border-tier3);--v-table-header-border-bottom__th:1px solid var(--v-color-border-tier3);--v-table-header-bkg-color__menu:var(--v-color-white);--v-table-header-border-width:1px;--v-table-header-width__menu-icon:12px;--v-table-header-height__menu-icon:24px;--v-table-header-height__menu-border:28px;--v-table-group-header-padding-top__th:2px;--v-table-group-header-padding__second-th:2px 0;--v-table-group-header-height__border--single:16px;--v-table-group-header-height__border--total:24px;--v-table-group-header-height__column:20px;--v-table-group-header-top__border:4px;--v-table-group-header-padding-lr__menu-wrapper:2px;--v-table-group-header-border-left__menu:1px solid var(--v-color-border-tier3);--v-table-group-header-border-bottom__th:1px solid var(--v-color-border-tier3);--v-table-group-header-bkg-color__menu:var(--v-color-white);--v-table-group-header-border-width:1px;--v-table-group-header-width__menu-icon:12px;--v-table-group-header-height__menu-icon:24px;--v-table-group-header-height__menu-border:28px;--v-table-cell-height:29px;--v-table-cell-size__action:20px;--v-table-cell-padding-tb:0;--v-table-cell-padding-lr:8px;--v-table-cell-padding__group-content--auto-row-height:4px 8px;--v-table-cell-padding--has-expand:0 0 0 4px;--v-table-cell-line-height__content:20px;--v-table-cell-line-height__group-node:20px;--v-table-cell-size__expand-icon:20px;--v-table-cell-margin__expand-icon:4px 4px 0 0;--v-table-cell-border__inner--landed:1px solid var(--v-color-action-normal);--v-table-cell-border-bottom:1px solid var(--v-color-border-tier3);--v-table-cell-font-weight__advanced--expanded:var(--v-font-weight-bold);--v-table-cell-opacity--expanded-disabled:0.4;--v-table-cell-opacity__first-cell--draggable:0.4;--v-table-cell-padding__last-cell:0 25px 0 8px;--v-table-cell-padding-left__first-cell--draggable:24px;--v-table-cell-padding-left__group-node:32px;--v-table-cell-font-weight__group-title:var(--v-font-weight-bold);--v-table-cell-font-size__group-title:var(--v-font-size-small-tier1);--v-table-cell-padding-left__group-title:4px;--v-table-cell-padding-left__group-title-not-expandable:8px;--v-table-cell-color__group-title:#2e303280;--v-table-cell-color__group-title--hover:#2e303299;--v-table-cell-color__group-title--active:#2e3032b3;--v-table-cell-width__group-check-wrapper:20px;--v-table-cell-height__group-check-wrapper:20px;--v-table-cell-padding__group-check-wrapper:0 4px 0 0;--v-table-head-cell-margin__sorter--action:4px 0 4px 0;--v-table-head-cell-margin__sorter--action-with-text:4px 0 4px 4px;--v-table-head-cell-margin__sorter:4px 0 4px 4px;--v-table-head-cell-padding__checkbox:0 4px;--v-table-head-cell-color:var(--v-color-font-tier2);--v-table-head-cell-color--hover:var(--v-color-main);--v-table-head-cell-color--active:#005cad;--v-table-head-cell-padding:0 8px;--v-table-head-cell-height:28px;--v-table-head-cell-line-height:28px;--v-table-head-cell-font-size:var(--v-font-size-tier1);--v-table-head-cell-font-weight:var(--v-font-weight-normal);--v-table-dd-ghost-border-color:rgba(var(--v-color-blue),0.2);--v-table-dd-ghost-bkg-color:var(--v-item-bg-tier1);--v-table-dd-ghost-box-shadow:0 2px 4px #00000014;--v-table-dd-ghost-padding__col-moveable:6px 12px 6px 0;--v-table-dd-ghost-border-radius:4px;--v-table-dd-ghost-opacity:0.7;--v-table-dd-ghost-width__col-desc:120px;--v-table-dd-ghost-margin-left__drop-icon:10px;--v-table-dd-ghost-margin-left__col-desc:8px;--v-table-dd-ghost-font-size__col-desc:var(--v-font-size-tier2);--v-table-dd-ghost-color__col-desc:var(--v-color-font-tier1);--v-table-dd-ghost-height__col-desc:24px;--v-table-dragging-bkg-color__row--invalid-drop-hover:#0000;--v-table-dragging-bkg-color__row--valid-drop-hover:var(--v-item-bg-tier2);--v-table-dragging-border__row--valid-drop-hover:1px solid var(--v-color-main);--v-table-dragging-bkg-color__row-dragging:rgba(var(--d-theme-color-grid-select),0.4);--v-table-dragging-opacity:0.4;box-sizing:border-box;display:flex;flex-direction:column;overflow:hidden;padding:var(--v-table-padding)}@keyframes slideUp{0%{transform:translate3d(0,100%,0)}to{transform:translateZ(0)}}@keyframes slideDown{0%{transform:translateZ(0)}to{transform:translate3d(0,100%,0)}}.v-table-wrapper>.v-pagination{flex:0 0 auto}.v-table-wrapper>.v-pagination.sticky-scroll{bottom:0;position:absolute}.v-table-wrapper>.v-pagination.slide-enter-active{animation:slideUp .3s}.v-table-wrapper>.v-pagination.slide-leave-active{animation:slideDown .3s}.v-table-wrapper .cover-wrapper{height:100%;position:absolute;width:100%;z-index:var(--v-z-index-data-table-cover)}.v-table{border-top:var(--v-table-border-top);color:var(--v-table-color);display:flex;flex:1 1 auto;flex-flow:column;height:100%;overflow:hidden;position:relative}.v-table.hide-header .v-table-header{display:none}.v-table.show-cover-bottom-border{border-bottom:var(--v-table-border-bottom--cover-border)}.v-table>.v-spin-wrapper-masking{opacity:var(--v-table-opacity__spin-masking)}.v-table>.v-scrollbar .y-rail{margin:var(--rail-y-margin)}.v-table table{border-collapse:initial;border-spacing:0;table-layout:fixed}.v-table.mobile{border-top:var(--v-table-border-top--mobile)}.v-table th{border-left:0;border-right:var(--v-table-border-right__th);box-sizing:border-box;justify-content:flex-start;-webkit-user-select:none;user-select:none}.v-table th,.v-table th.cell-left{text-align:left}.v-table th.cell-left .cell{justify-content:flex-start}.v-table th.cell-right{text-align:right}.v-table th.cell-right .cell{justify-content:flex-end}.v-table th.cell-center{text-align:center}.v-table th.cell-center .cell{justify-content:center}.v-table th.text-selectable{-webkit-user-select:text;user-select:text}.v-table th.last-th-cell{border-right:none}.v-table th.sorting .action-cell:hover .v-table-column-sorter,.v-table th.sorting .head-cell:hover .v-table-column-sorter{background-position:0 -40px;display:inline-block}.v-table th.sorting .action-cell:hover .v-table-column-sorter:not(.disabled),.v-table th.sorting .head-cell:hover .v-table-column-sorter:not(.disabled){color:var(--hover);fill-opacity:var(--fill-opacity--hover)}.v-table th.sorting .action-cell:hover .v-table-column-sorter.data-table-sort-up,.v-table th.sorting .head-cell:hover .v-table-column-sorter.data-table-sort-up{background-position:0 -60px}.v-table th.sorting .action-cell:active .v-table-column-sorter,.v-table th.sorting .head-cell:active .v-table-column-sorter{background-position:0 -80px;display:inline-block}.v-table th.sorting .action-cell:active .v-table-column-sorter:not(.disabled),.v-table th.sorting .head-cell:active .v-table-column-sorter:not(.disabled){color:var(--active);fill-opacity:var(--fill-opacity--active)}.v-table th.sorting .action-cell:active .v-table-column-sorter.data-table-sort-up,.v-table th.sorting .head-cell:active .v-table-column-sorter.data-table-sort-up{background-position:0 -100px}.v-table th.disable-sort .action-cell,.v-table th.disable-sort .action-cell:active,.v-table th.disable-sort .action-cell:hover,.v-table th.disable-sort .head-cell,.v-table th.disable-sort .head-cell:active,.v-table th.disable-sort .head-cell:hover{color:var(--v-table-head-cell-color);cursor:default}.v-table th .action-cell,.v-table th .head-cell{background-color:#0000;color:var(--v-table-head-cell-color);cursor:pointer;display:inline-flex;height:var(--v-table-head-cell-line-height);line-height:var(--v-table-head-cell-line-height);overflow:hidden;position:relative;text-overflow:ellipsis;white-space:nowrap}.v-table th .action-cell .cell-title,.v-table th .head-cell .cell-title{flex:0 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.v-table th .action-cell:hover,.v-table th .head-cell:hover{color:var(--d-theme-main-color)}.v-table th .action-cell:hover .v-table-column-sorter,.v-table th .head-cell:hover .v-table-column-sorter{background-position:0 -60px;display:inline-block}.v-table th .action-cell:hover .v-table-column-sorter:not(.disabled),.v-table th .head-cell:hover .v-table-column-sorter:not(.disabled){color:var(--hover);fill-opacity:var(--fill-opacity--hover)}.v-table th .action-cell:hover .v-table-header-hd-menu.hover-hd-menu,.v-table th .head-cell:hover .v-table-header-hd-menu.hover-hd-menu{display:inline-block}.v-table th .action-cell:active,.v-table th .head-cell:active{color:var(--d-theme-main-color-click)}.v-table th .action-cell:active .v-table-column-sorter,.v-table th .head-cell:active .v-table-column-sorter{background-position:0 -100px;display:inline-block}.v-table th .action-cell:active .v-table-column-sorter:not(.disabled),.v-table th .head-cell:active .v-table-column-sorter:not(.disabled){color:var(--active);fill-opacity:var(--fill-opacity--active)}.v-table th .action-cell .v-table-header-hd-menu.hover-hd-menu,.v-table th .head-cell .v-table-header-hd-menu.hover-hd-menu{display:none;position:absolute;right:8px}.v-table th.sorting .v-table-column-sorter{display:inline-block}.v-table th .v-table-column-sorter{background-image:image-set(url("webman/3rdparty/Spreadsheet/dist/assets/images/1x/grid_bt_sort.png") 1x,url("webman/3rdparty/Spreadsheet/dist/assets/images/2x/grid_bt_sort.png") 1.5x);background-size:8px;display:none;flex:0 0 auto;height:20px;vertical-align:top;width:8px}.v-table th .v-table-column-sorter.data-table-sort-up{background-position:0 -20px}.v-table td{box-sizing:border-box;justify-content:flex-start;overflow:hidden}.v-table td,.v-table td.cell-left{text-align:left}.v-table td.cell-left .cell{justify-content:flex-start}.v-table td.cell-right{text-align:right}.v-table td.cell-right .cell{justify-content:flex-end}.v-table td.cell-center{text-align:center}.v-table td.cell-center .cell{justify-content:center}.v-table .row-hover{background:var(--v-table-bkg-color__row--hover)}.v-table .row-selected{background:var(--v-table-bkg-color__row--selected)}.v-table .v-table-header{position:relative}.v-table .v-table-header.border-visible th{border-right:var(--v-table-border-right__th)}.v-table .v-table-header.border-hidden th{border-right:none}.v-table .v-table-header.border-hidden table:after{display:none}.v-table .v-table-header.border-hover th{border-right:none}.v-table .v-table-header.border-hover table:after{display:none}.v-table .v-table-header.border-hover th:not(.last-th-cell):has(+th:hover),.v-table .v-table-header.border-hover th:not(.last-th-cell):hover{border-right:var(--v-table-border-right__th)}.v-table .v-table-header.border-hover:has(.last-th-cell:hover) table:after{display:block}.v-table .v-table-header .hd-menu-btn-wrapper{align-items:center;display:flex;height:calc(100% - var(--v-table-header-border-width));padding:0 var(--v-table-header-padding-lr__menu-wrapper);position:absolute;right:0;top:0}.v-table .v-table-header .hd-menu-btn-wrapper .v-table-header-hd-menu{cursor:pointer;display:block;height:var(--v-table-header-height__menu-icon);width:var(--v-table-header-width__menu-icon)}.v-table .v-table-header .hd-menu-btn-wrapper .v-table-header-hd-menu .v-btn-text{padding:0}.v-table .v-table-header .hd-menu-btn-wrapper .v-table-header-hd-menu .data-table-header-menu.v-icon{background-image:image-set(url("webman/3rdparty/Spreadsheet/dist/assets/images/1x/grid_bt_more.png") 1x,url("webman/3rdparty/Spreadsheet/dist/assets/images/2x/grid_bt_more.png") 1.5x);background-position:0 calc(var(--v-table-header-height__menu-icon)*0);background-size:var(--v-table-header-width__menu-icon);width:var(--v-table-header-width__menu-icon)}.v-table .v-table-header .hd-menu-btn-wrapper .v-table-header-hd-menu .data-table-header-menu.v-icon:hover{background-position:0 calc(var(--v-table-header-height__menu-icon)*-1)}.v-table .v-table-header .hd-menu-btn-wrapper .v-table-header-hd-menu .data-table-header-menu.v-icon:active{background-position:0 calc(var(--v-table-header-height__menu-icon)*-2)}.v-table .v-table-header.group-header table:after{height:calc(100% - var(--v-table-header-border-width))}.v-table .v-table-header table{width:100%}.v-table .v-table-header table:after{--v-table-header-padding-lr__menu-wrapper:2px;--v-table-header-border-left__menu:1px solid var(--v-color-border-tier3);--v-table-header-border-bottom__th:1px solid var(--v-color-border-tier3);--v-table-header-bkg-color__menu:var(--v-color-white);--v-table-header-border-width:1px;--v-table-header-width__menu-icon:12px;--v-table-header-height__menu-icon:24px;--v-table-header-height__menu-border:28px;--v-table-head-cell-margin__sorter--action:4px 0 4px 0;--v-table-head-cell-margin__sorter--action-with-text:4px 0 4px 4px;--v-table-head-cell-margin__sorter:4px 0 4px 4px;--v-table-head-cell-padding__checkbox:0 4px;--v-table-head-cell-color:var(--v-color-font-tier2);--v-table-head-cell-color--hover:var(--v-color-main);--v-table-head-cell-color--active:#005cad;--v-table-head-cell-padding:0 8px;--v-table-head-cell-height:28px;--v-table-head-cell-line-height:28px;--v-table-head-cell-font-size:var(--v-font-size-tier1);--v-table-head-cell-font-weight:var(--v-font-weight-normal);background-color:var(--v-table-header-bkg-color__menu);border-left:var(--v-table-header-border-left__menu);content:"";height:var(--v-table-header-height__menu-border);position:absolute;right:0;top:calc(var(--v-table-head-cell-height)/2 - var(--v-table-header-height__menu-border)/2);width:calc(var(--v-table-header-width__menu-icon) + var(--v-table-header-padding-lr__menu-wrapper)*2)}.v-table .v-table-header table:has(.border-hidden):after,.v-table .v-table-header table:has(.border-hover):after{display:none}.v-table .v-table-header table:has(.last-th-cell.border-hover:hover):after{display:block}.v-table .v-table-header table tr{position:relative}.v-table .v-table-header table tr th.group{border-bottom:none;padding-top:var(--v-table-group-header-padding-top__th)}.v-table .v-table-header table tr.second-column-row th{border-right:none;padding:var(--v-table-group-header-padding__second-th);position:relative}.v-table .v-table-header table tr.second-column-row th:after{border-right:var(--v-table-border-right__th);content:"";height:var(--v-table-group-header-height__border--single);position:absolute;right:0;top:var(--v-table-group-header-top__border)}.v-table .v-table-header table tr.second-column-row th.last-th-visible-sec-row-cell:after{height:var(--v-table-group-header-height__border--total);top:0}.v-table .v-table-header table tr.first-column-row,.v-table .v-table-header table tr.second-column-row{height:var(--v-table-group-header-height__column);line-height:var(--v-table-group-header-height__column)}.v-table .v-table-header table tr.first-column-row th .head-cell .v-table-column-sorter,.v-table .v-table-header table tr.second-column-row th .head-cell .v-table-column-sorter{margin:var(--v-table-head-cell-margin__sorter);margin-bottom:0;margin-top:0}.v-table .v-table-header table tr.first-column-row th .action-cell,.v-table .v-table-header table tr.second-column-row th .action-cell{padding:calc(var(--v-table-group-header-height__column)/2 - var(--v-table-cell-size__action)/2) 0}.v-table .v-table-header table tr.first-column-row th .action-cell .v-table-column-sorter,.v-table .v-table-header table tr.second-column-row th .action-cell .v-table-column-sorter{margin:var(--v-table-head-cell-margin__sorter);margin-bottom:0;margin-top:0}.v-table .v-table-header table tr.first-column-row th .action-cell,.v-table .v-table-header table tr.first-column-row th .head-cell,.v-table .v-table-header table tr.first-column-row th .inner-cell,.v-table .v-table-header table tr.second-column-row th .action-cell,.v-table .v-table-header table tr.second-column-row th .head-cell,.v-table .v-table-header table tr.second-column-row th .inner-cell{height:var(--v-table-group-header-height__column);line-height:var(--v-table-group-header-height__column)}.v-table .v-table-header table th{border-bottom:var(--v-table-header-border-bottom__th)}.v-table .v-table-header table th .inner-cell{box-sizing:border-box;display:inline-flex;font-size:var(--v-table-head-cell-font-size);font-weight:var(--v-table-head-cell-font-weight);height:var(--v-table-head-cell-height);line-height:var(--v-table-head-cell-line-height);padding:var(--v-table-head-cell-padding);vertical-align:top;width:100%}.v-table .v-table-header table th .inner-cell .cell{flex:1 1 auto}.v-table .v-table-header table th.cell-first.is-draggable .inner-cell{padding-left:var(--v-table-padding-left__th--draggable)}.v-table .v-table-header table th.cell-first.is-draggable .inner-cell:before{--v-table-group-header-padding-top__th:2px;--v-table-group-header-padding__second-th:2px 0;--v-table-group-header-height__border--single:16px;--v-table-group-header-height__border--total:24px;--v-table-group-header-height__column:20px;--v-table-group-header-top__border:4px;--v-table-group-header-padding-lr__menu-wrapper:2px;--v-table-group-header-border-left__menu:1px solid var(--v-color-border-tier3);--v-table-group-header-border-bottom__th:1px solid var(--v-color-border-tier3);--v-table-group-header-bkg-color__menu:var(--v-color-white);--v-table-group-header-border-width:1px;--v-table-group-header-width__menu-icon:12px;--v-table-group-header-height__menu-icon:24px;--v-table-group-header-height__menu-border:28px;border-left:1px solid var(--v-color-border-tier3);content:"";display:inline-block;height:100%;left:var(--v-table-left__border--draggable);position:absolute;vertical-align:top}.v-table .v-table-header table th.last-th-cell .inner-cell{padding-right:var(--v-table-padding-right__last-th)}.v-table .v-table-header table th .v-whitetip-wrapper{flex:0 0 auto}.v-table .v-table-header table th .head-cell .v-table-column-sorter{margin:var(--v-table-head-cell-margin__sorter)}.v-table .v-table-header table th .action-cell{align-items:center;display:inline-flex;padding:calc(var(--v-table-head-cell-height)/2 - var(--v-table-cell-size__action)/2) 0}.v-table .v-table-header table th .action-cell .v-checkbox-wrapper{display:inline-block;flex:0 0 auto;height:var(--v-table-cell-size__action);line-height:0;padding:0;vertical-align:top;width:var(--v-table-cell-size__action)}.v-table .v-table-header table th .action-cell .v-checkbox-wrapper .v-checkbox-icon{position:relative;top:0}.v-table .v-table-header table th .action-cell .v-checkbox-wrapper .v-checkbox-input{left:0;top:0}.v-table .v-table-header table th .action-cell .v-checkbox-wrapper .v-checkbox-label{display:none}.v-table .v-table-header table th .action-cell .v-radio-wrapper{height:var(--v-table-cell-size__action);padding:0;width:var(--v-table-cell-size__action)}.v-table .v-table-header table th .action-cell .v-radio-wrapper .v-radio-label{display:none}.v-table .v-table-header table th .action-cell .v-radio-wrapper .v-radio-icon{left:0;top:0}.v-table .v-table-header table th .action-cell .v-table-column-sorter{margin:var(--v-table-head-cell-margin__sorter)}.v-table .v-table-header table th .action-cell{height:var(--v-table-cell-size__action);line-height:var(--v-table-cell-size__action)}.v-table .v-table-header table th .action-cell .v-checkbox-wrapper{padding:var(--v-table-head-cell-padding__checkbox)}.v-table .v-table-header table th .action-cell .v-checkbox-wrapper+.v-table-column-sorter{margin:var(--v-table-head-cell-margin__sorter--action)}.v-table .v-table-header table th .action-cell .v-checkbox-wrapper+.cell-title+.v-table-column-sorter{margin:var(--v-table-head-cell-margin__sorter--action-with-text)}.v-table .v-table-header table th .action-cell .cell-title{flex:0 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.v-table .v-table-empty-body{align-items:center;display:flex;height:100%;justify-content:center}.v-table .v-table-empty-body .empty-wrapper{border:var(--v-table-border__empty-wrapper);border-radius:var(--v-table-border-radius__empty-wrapper);box-shadow:var(--v-table-box-shadow__empty-wrapper);font-size:var(--v-table-font-size__empty-wrapper);line-height:var(--v-table-line-height__empty-wrapper);max-width:var(--v-table-max-width__empty-wrapper);min-height:var(--v-table-min-height__empty-wrapper);overflow-wrap:break-word;padding:var(--v-table-padding__empty-wrapper)}.v-table .v-table-content{height:100%}.v-table .v-table-content.expandable td{vertical-align:top}.v-table .v-table-content.expandable td.expandable-cell{border-bottom:none}.v-table .v-table-content.expandable td.expandable-cell .expandable-slide-up-down{padding:8px 25px 0 28px}.v-table .v-table-content.expandable td.expandable-cell .expandable-slide-up-down .adv-columns .adv-column{margin-bottom:8px}.v-table .v-table-content.expandable td.expandable-cell .expandable-slide-up-down .adv-grid{margin:var(--v-table-margin__adv-grid--expandable);margin-bottom:14px;margin-top:4px}.v-table .v-table-content.expandable td.has-expand-icon .inner-cell{padding:var(--v-table-cell-padding--has-expand)}.v-table .v-table-content.expandable td .inner-cell{height:auto}.v-table .v-table-content.expandable td .action-cell{padding:calc(var(--v-table-cell-height)/2 - var(--v-table-cell-size__action)/2) 0}.v-table .v-table-content.expandable td .content-cell{height:auto;line-height:var(--v-table-cell-line-height__content);overflow:hidden;padding:calc(var(--v-table-cell-height)/2 - var(--v-table-cell-line-height__content)/2) 0;text-overflow:ellipsis;white-space:normal;width:auto}.v-table .v-table-content.expandable td .data-table-expand-down,.v-table .v-table-content.expandable td .data-table-expand-up{background-image:image-set(url("webman/3rdparty/Spreadsheet/dist/assets/images/1x/exgrid_icn_arrow.png") 1x,url("webman/3rdparty/Spreadsheet/dist/assets/images/2x/exgrid_icn_arrow.png") 1.5x);background-size:40px;cursor:pointer;flex:0 0 auto;height:var(--v-table-cell-size__expand-icon);margin:var(--v-table-cell-margin__expand-icon);width:var(--v-table-cell-size__expand-icon)}.v-table .v-table-content.expandable td .data-table-expand-down:active,.v-table .v-table-content.expandable td .data-table-expand-down:hover,.v-table .v-table-content.expandable td .data-table-expand-up:active,.v-table .v-table-content.expandable td .data-table-expand-up:hover{background-position-y:calc(var(--v-table-cell-size__expand-icon)*-1)}.v-table .v-table-content.expandable td .data-table-expand-down{background-position-x:0}.v-table .v-table-content.expandable td .data-table-expand-up{background-position-x:calc(var(--v-table-cell-size__expand-icon)*-1)}.v-table .v-table-content.auto-row-height .v-table-group-node-group td{vertical-align:top}.v-table .v-table-content.auto-row-height .v-table-group-node-group td .content-cell{height:auto;line-height:var(--v-table-cell-line-height__content);overflow:hidden;padding:var(--v-table-cell-padding__group-content--auto-row-height);text-overflow:ellipsis;white-space:normal;width:auto}.v-table .v-table-content.auto-row-height td{vertical-align:top}.v-table .v-table-content.auto-row-height td .inner-cell{height:auto}.v-table .v-table-content.auto-row-height td .inner-cell .content-cell{height:auto;line-height:var(--v-table-cell-line-height__content);overflow:hidden;padding:calc(var(--v-table-cell-height)/2 - var(--v-table-cell-line-height__content)/2) 0;text-overflow:ellipsis;white-space:normal;width:auto}.v-table .v-table-content table{width:100%}.v-table .v-table-content table tr{position:relative}.v-table .v-table-content table tr .row-hover-action{--v-table-cell-row-hover-width__before:28px;--v-table-cell-row-hover-bkg-color__before:linear-gradient(90deg,#fff0,#fff 85%);--v-table-cell-row-hover-bkg-color__before--hover:linear-gradient(90deg,#f5fafe00,#f5fafe 85%);--v-table-cell-row-hover-bkg-color__before--selected:linear-gradient(90deg,#e6f2fd00,#e6f2fd 85%);--v-table-cell-row-hover-bkg-color:var(--v-color-white);--v-table-cell-row-hover-bkg-color--hover:#f5fafe;--v-table-cell-row-hover-bkg-color--selected:#e6f2fd;--v-table-cell-row-hover-padding:0 25px 0 0;align-items:center;background-color:var(--v-table-cell-row-hover-bkg-color);display:none;height:var(--v-table-cell-height);padding:var(--v-table-cell-row-hover-padding);position:absolute;right:0}.v-table .v-table-content table tr .row-hover-action:before{background:var(--v-table-cell-row-hover-bkg-color__before);content:"";height:100%;left:calc(var(--v-table-cell-row-hover-width__before)*-1);position:absolute;width:var(--v-table-cell-row-hover-width__before)}.v-table .v-table-content table tr .row-hover-action.keep-activate{display:flex}.v-table .v-table-content table tr:hover .row-hover-action{background-color:var(--v-table-cell-row-hover-bkg-color--hover);display:flex}.v-table .v-table-content table tr:hover .row-hover-action:before{background:var(--v-table-cell-row-hover-bkg-color__before--hover)}.v-table .v-table-content table tr:hover td.cell-first.is-draggable.disable-drag .data-table-draggable-s{background-position:0 0;color:var(--normal)}.v-table .v-table-content table tr:hover td.cell-first.is-draggable .data-table-draggable-s{background-position:0 -24px;color:var(--hover)}.v-table .v-table-content table tr:hover td.cell-first.is-draggable .data-table-draggable-s.show-icon-only-hover{display:block}.v-table .v-table-content table tr.row-selected .row-hover-action{background-color:var(--v-table-cell-row-hover-bkg-color--selected)}.v-table .v-table-content table tr.row-selected .row-hover-action:before{background:var(--v-table-cell-row-hover-bkg-color__before--selected)}.v-table .v-table-content table tr.row-selected td.cell-first.is-draggable.disable-drag .data-table-draggable-s{background-position:0 0;color:var(--normal)}.v-table .v-table-content table tr.row-selected td.cell-first.is-draggable .data-table-draggable-s{background-position:0 -24px;color:var(--active)}.v-table .v-table-content table tr.row-disabled{color:var(--v-color-font-tier3)}.v-table .v-table-content table tr.row-disabled td.cell-first.is-draggable .data-table-draggable-s{cursor:default}.v-table .v-table-content table tr.is-dragging{opacity:var(--v-table-dragging-opacity);position:relative}.v-table .v-table-content table tr.is-landed:not(.is-dragging):hover{background-color:var(--v-table-dragging-bkg-color__row--invalid-drop-hover)}.v-table .v-table-content table tr.is-landed:not(.is-dragging):hover td.cell-first .data-table-draggable-s{color:var(--normal);fill-opacity:var(--fill-opacity--normal)}.v-table .v-table-content table tr.is-landed.landed-inner:hover{background-color:var(--v-table-dragging-bkg-color__row--valid-drop-hover)}.v-table .v-table-content table tr td{border-bottom:var(--v-table-cell-border-bottom)}.v-table .v-table-content table tr.advance.expanded td{border-bottom:none;font-weight:var(--v-table-cell-font-weight__advanced--expanded)}.v-table .v-table-content table tr.expandable-row.expanded .expandable-cell{border-bottom:var(--v-table-cell-border-bottom)}.v-table .v-table-content table tr.expandable-row.row-disabled .expandable-cell{opacity:var(--v-table-cell-opacity--expanded-disabled)}.v-table .v-table-content td{-webkit-user-select:none;user-select:none}.v-table .v-table-content td.text-selectable{-webkit-user-select:text;user-select:text}.v-table .v-table-content td.last-td-cell .inner-cell{padding:var(--v-table-cell-padding__last-cell)}.v-table .v-table-content td .inner-cell{box-sizing:border-box;display:inline-flex;height:var(--v-table-cell-height);line-height:var(--v-table-cell-height);padding:var(--v-table-cell-padding-tb) var(--v-table-cell-padding-lr);transition:height .4s ease;vertical-align:top;width:100%}.v-table .v-table-content td .inner-cell .cell{flex:1 1 auto}.v-table .v-table-content td .data-table-draggable-s{background-image:image-set(url("webman/3rdparty/Spreadsheet/dist/assets/images/1x/grid_bt_drag_s.png") 1x,url("webman/3rdparty/Spreadsheet/dist/assets/images/2x/grid_bt_drag_s.png") 1.5x);background-repeat:no-repeat;background-size:8px;bottom:0;cursor:move;height:24px;left:0;margin:auto 4px;position:absolute;top:0;width:8px}.v-table .v-table-content td .data-table-draggable-s.show-icon-only-hover{display:none}.v-table .v-table-content td.disable-drag .data-table-draggable-s{--v-table-cell-height:29px;--v-table-cell-size__action:20px;--v-table-cell-padding-tb:0;--v-table-cell-padding-lr:8px;--v-table-cell-padding__group-content--auto-row-height:4px 8px;--v-table-cell-padding--has-expand:0 0 0 4px;--v-table-cell-line-height__content:20px;--v-table-cell-line-height__group-node:20px;--v-table-cell-size__expand-icon:20px;--v-table-cell-margin__expand-icon:4px 4px 0 0;--v-table-cell-border__inner--landed:1px solid var(--v-color-action-normal);--v-table-cell-border-bottom:1px solid var(--v-color-border-tier3);--v-table-cell-font-weight__advanced--expanded:var(--v-font-weight-bold);--v-table-cell-opacity--expanded-disabled:0.4;--v-table-cell-opacity__first-cell--draggable:0.4;--v-table-cell-padding__last-cell:0 25px 0 8px;--v-table-cell-padding-left__first-cell--draggable:24px;--v-table-cell-padding-left__group-node:32px;--v-table-cell-font-weight__group-title:var(--v-font-weight-bold);--v-table-cell-font-size__group-title:var(--v-font-size-small-tier1);--v-table-cell-padding-left__group-title:4px;--v-table-cell-padding-left__group-title-not-expandable:8px;--v-table-cell-color__group-title:#2e303280;--v-table-cell-color__group-title--hover:#2e303299;--v-table-cell-color__group-title--active:#2e3032b3;--v-table-cell-width__group-check-wrapper:20px;--v-table-cell-height__group-check-wrapper:20px;--v-table-cell-padding__group-check-wrapper:0 4px 0 0;cursor:default;opacity:var(--v-table-cell-opacity__first-cell--draggable)}.v-table .v-table-content td.cell-first.is-draggable{position:relative}.v-table .v-table-content td.cell-first.is-draggable .inner-cell{padding-left:var(--v-table-cell-padding-left__first-cell--draggable)}.v-table .v-table-content td .content-cell{background-color:#0000;height:calc(var(--v-table-cell-height) - var(--v-table-cell-padding-tb)*2);line-height:calc(var(--v-table-cell-height) - var(--v-table-cell-padding-tb)*2);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.v-table .v-table-content td .content-cell .html-content{display:inline-block;vertical-align:top}.v-table .v-table-content td .action-cell{align-items:center;display:inline-flex;flex:1 1 auto;padding:calc(var(--v-table-cell-height)/2 - var(--v-table-cell-size__action)/2) 0}.v-table .v-table-content td .action-cell .v-checkbox-wrapper{display:inline-block;flex:0 0 auto;height:var(--v-table-cell-size__action);line-height:0;padding:0;vertical-align:top;width:var(--v-table-cell-size__action)}.v-table .v-table-content td .action-cell .v-checkbox-wrapper .v-checkbox-icon{position:relative;top:0}.v-table .v-table-content td .action-cell .v-checkbox-wrapper .v-checkbox-input{left:0;top:0}.v-table .v-table-content td .action-cell .v-checkbox-wrapper .v-checkbox-label{display:none}.v-table .v-table-content td .action-cell .v-radio-wrapper{height:var(--v-table-cell-size__action);padding:0;width:var(--v-table-cell-size__action)}.v-table .v-table-content td .action-cell .v-radio-wrapper .v-radio-label{display:none}.v-table .v-table-content td .action-cell .v-radio-wrapper .v-radio-icon{left:0;top:0}.v-table .v-table-tree-node-ct .v-table-tree-node-table .cell-content{background-color:#0000;color:var(--v-color-font-tier1);font-size:0;height:28px;height:calc(var(--v-table-cell-height) - var(--v-table-cell-padding-tb)*2);line-height:28px;line-height:calc(var(--v-table-cell-height) - var(--v-table-cell-padding-tb)*2);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.v-table .v-table-tree-node-ct .v-table-tree-node-table .cell-text{font-size:var(--v-font-size-tier1)}.v-table .v-table-tree-node-ct .v-table-tree-node-table .cell-expandable{display:inline-block;height:20px;margin-top:4px;vertical-align:top;width:20px}.v-table .v-table-tree-node-ct .v-table-tree-node-table .cell-expandable.show{background-image:image-set(url("webman/3rdparty/Spreadsheet/dist/assets/images/1x/cate_tree_arrow.png") 1x,url("webman/3rdparty/Spreadsheet/dist/assets/images/2x/cate_tree_arrow.png") 1.5x);background-size:20px;cursor:pointer}.v-table .v-table-tree-node-ct .v-table-tree-node-table .cell-expandable.expand{background-position:0 0}.v-table .v-table-tree-node-ct .v-table-tree-node-table .cell-expandable.collapse{background-position:0 -20px}.v-table .v-table-tree-node-ct .v-table-tree-node-table .cell-indent-1{display:inline-block;vertical-align:top;width:8px}.v-table .v-table-tree-node-ct .v-table-tree-node-table .cell-indent-2{display:inline-block;vertical-align:top;width:16px}.v-table .v-table-tree-node-ct .v-table-tree-node-table .cell-indent-3{display:inline-block;vertical-align:top;width:24px}.v-table .v-table-tree-node-ct .v-table-tree-node-table .cell-indent-4{display:inline-block;vertical-align:top;width:32px}.v-table .v-table-tree-node-ct .v-table-tree-node-table .cell-indent-5{display:inline-block;vertical-align:top;width:40px}.v-table .v-table-tree-node-ct .v-table-tree-node-table .cell-indent-6{display:inline-block;vertical-align:top;width:48px}.v-table .v-table-tree-node-ct .v-table-tree-node-table .cell-indent-7{display:inline-block;vertical-align:top;width:56px}.v-table .v-table-tree-node-ct .v-table-tree-node-table .cell-indent-8{display:inline-block;vertical-align:top;width:64px}.v-table .v-table-tree-node-ct .v-table-tree-node-table .cell-indent-9{display:inline-block;vertical-align:top;width:72px}.v-table .v-table-tree-node-ct .v-table-tree-node-table .cell-indent-10{display:inline-block;vertical-align:top;width:80px}.v-table .col-resizable-indicator{--v-table-indicator-width__resize-indicator:1px;--v-table-indicator-color__resize-indicator:#505a64;--v-table-indicator-width__moveable-indicator:9px;--v-table-indicator-height__moveable-indicator:9px;background:var(--v-table-indicator-color__resize-indicator);cursor:ew-resize;height:100%;position:absolute;top:0;width:var(--v-table-indicator-width__resize-indicator)}.v-table .col-resizable-indicator--hidden{display:none}.v-table .v-form-item{height:var(--v-table-height__form-item);margin:var(--v-table-margin__form-item)}.v-table .v-form-item-label{display:none!important}.v-table .v-form-item-control,.v-table .v-form-item-input{height:100%;width:100%}.v-table .v-textfield-wrapper{border-radius:var(--v-table-border-radius__input);box-sizing:border-box;height:calc(var(--v-table-height__input) - var(--v-table-border-width__input)*2);line-height:normal;margin:var(--v-table-margin__input);width:100%}.v-table .v-textfield-wrapper .input-container{border-width:var(--v-table-border-width__input);padding-left:calc(var(--v-table-padding-left__input) - 1px);padding-right:calc(var(--v-table-padding-right__input) - 1px)}.v-table .v-textfield-wrapper .v-textfield-input.fit-container{box-sizing:border-box;height:auto;width:100%}.v-table .v-select-wrapper,.v-table .v-textfield-wrapper .v-textfield-input.fit-container{padding-bottom:calc(var(--v-table-padding-bottom__input) - 1px);padding-top:calc(var(--v-table-padding-top__input) - 1px)}.v-table .v-select-wrapper{background:var(--v-color-white);border-width:var(--v-table-border-width__input);height:var(--v-table-min-height__input);line-height:normal;margin:var(--v-table-margin__input);padding-left:calc(var(--v-table-padding-left__input) - 1px)}.v-table .v-select2-wrapper{margin:var(--v-table-margin__input);--width:100%!important;--height:var(--v-table-height__select)!important;--v-select-size-padding-top:var(--v-table-padding-top__select);--v-select-size-padding-bottom:var(--v-table-padding-bottom__select)}.v-table__menu.v-menu{--v-table-menu-padding__menu-item:0 20px 0 8px;--v-table-menu-padding-left__menu-item-content:24px}.v-table__menu.v-menu .v-menu-item-checkbox{padding:var(--v-table-menu-padding__menu-item)}.v-table-group-node-ct .with-border{border-bottom:var(--v-table-cell-border-bottom)}.v-table-group-node-ct .v-table-group-node-table-wrapper{overflow:hidden;position:relative}.v-table-group-node-ct.expandable .v-table-group-node-table{border-collapse:initial;overflow:hidden}.v-table-group-node-ct.expandable .v-table-group-node-table td.group-indent .inner-cell{padding-left:var(--v-table-cell-padding-left__group-node)}.v-table-group-node-ct .v-table-group-node-group-title{align-items:center;color:var(--v-table-cell-color__group-title);display:flex;font-size:var(--v-table-cell-font-size__group-title);font-weight:var(--v-table-cell-font-weight__group-title);height:var(--v-table-cell-height);padding-left:var(--v-table-cell-padding-left__group-title-not-expandable);position:relative}.v-table-group-node-ct .v-table-group-node-group-title.expandable{cursor:pointer;padding-left:var(--v-table-cell-padding-left__group-title)}.v-table-group-node-ct .v-table-group-node-group-title .v-checkbox-wrapper{display:inline-block;flex:0 0 auto;height:var(--v-table-cell-height__group-check-wrapper);padding:var(--v-table-cell-padding__group-check-wrapper);vertical-align:top;width:var(--v-table-cell-width__group-check-wrapper)}.v-table-group-node-ct .v-table-group-node-group-title .v-checkbox-wrapper .v-checkbox-icon{position:relative;top:0}.v-table-group-node-ct .v-table-group-node-group-title .v-checkbox-wrapper .v-checkbox-input{left:0;top:0}.v-table-group-node-ct .v-table-group-node-group-title .v-checkbox-wrapper .v-checkbox-label{display:none}.v-table-group-node-ct .v-table-group-node-group-title .group-expand-icon{background-image:image-set(url("webman/3rdparty/Spreadsheet/dist/assets/images/1x/cate_section_arrow.png") 1x,url("webman/3rdparty/Spreadsheet/dist/assets/images/2x/cate_section_arrow.png") 1.5x);background-size:48px;height:24px;margin:2px 4px 2px 0;width:24px}.v-table-group-node-ct .v-table-group-node-group-title .group-expand-icon.data-table-chevron-up{background-position-x:0}.v-table-group-node-ct .v-table-group-node-group-title .group-expand-icon.data-table-chevron-down{background-position-x:24px}.v-table-group-node-ct .v-table-group-node-group-title:hover{color:var(--v-table-cell-color__group-title--hover)}.v-table-group-node-ct .v-table-group-node-group-title:hover .arrow{background-position-y:-24px}.v-table-group-node-ct .v-table-group-node-group-title:active,.v-table-group-node-ct .v-table-group-node-group-title:focus{color:var(--v-table-cell-color__group-title--active)}.v-table-group-node-ct .v-table-group-node-group-title:active .arrow,.v-table-group-node-ct .v-table-group-node-group-title:focus .arrow{background-position-y:-48px}.v-data-view{--v-data-view-padding__item-wrap:0px;--v-data-view-border-bottom__item-wrap:1px solid var(--v-color-border-tier3);--v-data-view-bkg-color__item-wrap--hover:var(--d-theme-color-grid-hover);--v-data-view-bkg-color__item-wrap--selected:var(--d-theme-color-grid-select);--v-data-view-custom:false;display:flex;overflow:hidden}.v-data-view .v-data-view-body{flex:1 1 auto;overflow:hidden}.v-data-view .v-data-view-item-wrap{border-bottom:var(--v-data-view-border-bottom__item-wrap);border-top:0;padding:var(--v-data-view-padding__item-wrap)}.v-data-view .v-data-view-item-wrap:hover{background-color:var(--v-data-view-bkg-color__item-wrap--hover)}.v-data-view .v-data-view-item-wrap.v-data-view-item-selected{background-color:var(--v-data-view-bkg-color__item-wrap--selected)}.v-dt-picker{--v-date-picker-border-width:1px;--v-date-picker-border-radius:3px;--v-date-picker-color__placeholder:#babcbe;--v-date-picker-size__trigger:24px;--v-date-picker-top__trigger:3px;--v-date-picker-right__trigger:4px;--v-date-picker-opacity__icon--disabled:1}.v-dt-picker .v-dt-input{display:block;width:100%}.v-dt-picker .v-dt-input::placeholder{color:var(--v-date-picker-color__placeholder)}.v-dt-picker:not(.disabled):hover .v-icon.date-picker-calendar:not(.disabled){color:var(--hover);fill-opacity:var(--fill-opacity--hover)}.v-dt-picker:not(.disabled).focused .v-icon.date-picker-calendar,.v-dt-picker:not(.disabled).pressed .v-icon.date-picker-calendar,.v-dt-picker:not(.disabled):active .v-icon.date-picker-calendar{background-position:0 -24px}.v-dt-picker:not(.disabled).focused .v-icon.date-picker-calendar:not(.disabled),.v-dt-picker:not(.disabled).pressed .v-icon.date-picker-calendar:not(.disabled),.v-dt-picker:not(.disabled):active .v-icon.date-picker-calendar:not(.disabled){color:var(--active);fill-opacity:var(--fill-opacity--active)}.v-dt-picker.disabled .v-icon.date-picker-calendar{cursor:default;opacity:var(--v-select-opacity__icon--disabled)}.v-dt-picker .v-icon.date-picker-calendar{background-color:#0000;background-image:image-set(url("webman/3rdparty/Spreadsheet/dist/assets/images/1x/combo_calendar.png") 1x,url("webman/3rdparty/Spreadsheet/dist/assets/images/2x/combo_calendar.png") 1.5x);background-position:0 0;background-size:var(--v-date-picker-size__trigger);border-radius:0 var(--v-date-picker-border-radius) var(--v-date-picker-border-radius) 0;cursor:pointer;display:block;height:var(--v-date-picker-size__trigger);right:calc(var(--v-date-picker-right__trigger) - var(--v-date-picker-border-width));top:calc(var(--v-date-picker-top__trigger) - var(--v-date-picker-border-width));width:var(--v-date-picker-size__trigger)}.v-dt-dropdown{--v-date-picker-dropdown-width:270px;--v-date-picker-dropdown-width--with-week-nubmer:290px;--v-date-picker-dropdown-padding:0px;--v-date-picker-dropdown-border-top__time-wrapper:1px solid #c6d4e059;--v-date-picker-dropdown-margin__time-wrapper:12px -16px 0 -16px;--v-date-picker-dropdown-padding__time-wrapper:8px 16px 0 16px;--v-date-picker-dropdown-margin-bottom__time-checkbox:8px;--v-date-picker-dropdown-margin-bottom__form-item:0px;--v-date-picker-dropdown-height__inner-panel:212px;--v-date-picker-dropdown-min-width__inner-panel:100px;--v-date-picker-dropdown-font-size__inner-panel:var(--v-font-size-tier1);--v-date-picker-dropdown-padding__hd:12px 16px;--v-date-picker-dropdown-padding-right__hd-picker:24px;--v-date-picker-dropdown-margin-right__hd-picker:10px;--v-date-picker-dropdown-margin-left__hd-picker:0px;--v-date-picker-dropdown-line-height__hd-picker:24px;--v-date-picker-dropdown-color__hd:var(--v-color-font-tier1);--v-date-picker-dropdown-color__hd--activated:var(--v-color-main);--v-date-picker-dropdown-font-size__hd-picker:var(--v-font-size-tier1);--v-date-picker-dropdown-font-weight__hd-picker:var(--v-font-weight-bold);--v-date-picker-dropdown-height__hd-picker-trigger:24px;--v-date-picker-dropdown-width__hd-picker-trigger:24px;--v-date-picker-dropdown-top__hd-picker-trigger:0;--v-date-picker-dropdown-right__hd-picker-trigger:0;--v-date-picker-dropdown-top__chg-month-btn:12px;--v-date-picker-dropdown-width__chg-month-btn:24px;--v-date-picker-dropdown-height__chg-month-btn:24px;--v-date-picker-dropdown-gap__body:4px;--v-date-picker-dropdown-color__body:var(--v-color-font-tier1);--v-date-picker-dropdown-padding__body:0 15px;--v-date-picker-dropdown-font-size__body:var(--v-font-size-tier1);--v-date-picker-dropdown-width__week-number:16px;--v-date-picker-dropdown-height__week-number:34px;--v-date-picker-dropdown-color__week-number:var(--v-color-font-tier2);--v-date-picker-dropdown-font-size__week-number:10px;--v-date-picker-dropdown-width__weekday:28px;--v-date-picker-dropdown-height__weekday:28px;--v-date-picker-dropdown-color__weekday:var(--v-color-font-tier3);--v-date-picker-dropdown-padding__weekday:3px;--v-date-picker-dropdown-bkg-color__date-cell--this-week:var(--v-color-bg-grey-10);--v-date-picker-dropdown-padding__date-cell:3px;--v-date-picker-dropdown-border-radius__date-cell:4px;--v-date-picker-dropdown-border__date-cell:2px solid #0000;--v-date-picker-dropdown-border__date-cell--today:2px solid var(--v-color-main);--v-date-picker-dropdown-border__date-cell--selected:2px solid #0000;--v-date-picker-dropdown-bkg-color__date-cell--today:#0000;--v-date-picker-dropdown-bkg-color__date-cell--other-month:#0000;--v-date-picker-dropdown-bkg-color__date-cell--hover-other-month:#c6d4e066;--v-date-picker-dropdown-bkg-color__date-cell--hover:#c6d4e066;--v-date-picker-dropdown-bkg-color__date-cell--selected:var(--v-color-main);--v-date-picker-dropdown-bkg-color__date-cell--disabled:#0000;--v-date-picker-dropdown-color__date-cell--today:var(--v-color-main);--v-date-picker-dropdown-color__date-cell--other-month:var(--v-color-font-tier3);--v-date-picker-dropdown-color__date-cell--selected:var(--v-color-white);--v-date-picker-dropdown-color__date-cell--disabled:var(--v-color-font-tier3);--v-date-picker-dropdown-font-weight__date-cell--today:var(--v-font-weight-bold);--v-date-picker-dropdown-font-weight__date-cell--selected:var(--v-font-weight-bold);--v-date-picker-dropdown-height__dot:4px;--v-date-picker-dropdown-width__dot:4px;--v-date-picker-dropdown-border-radius__dot:50%;--v-date-picker-dropdown-right__dot:1px;--v-date-picker-dropdown-bottom__dot:1px;--v-date-picker-dropdown-bkg-color__dot:var(--d-theme-main-color);--v-date-picker-dropdown-bkg-color__dot--other-month:rgba(var(--d-theme-main-color),0.4);--v-date-picker-dropdown-bkg-color__dot--other-month-hover:rgba(var(--d-theme-main-color),0.4);--v-date-picker-dropdown-bkg-color__dot--selected:var(--v-color-white);--v-date-picker-dropdown-bkg-color__dot--disabled:#505a6466;--v-date-picker-dropdown-padding__footer:5px 16px 16px 16px;--v-date-picker-dropdown-height__footer-button:28px;--v-date-picker-dropdown-border-radius__footer-button:100px;--v-date-picker-dropdown-width__footer-select:70px;--v-date-picker-dropdown-width__footer-select-wrapper:100%;--v-date-picker-dropdown-width__footer-separator:12px;--v-date-picker-dropdown-line-height__footer-separator:28px;--v-date-picker-common-var-border-width:1px;--v-date-picker-common-var-padding-lr:16px;--v-date-picker-common-var-size__hd-content:24px;--v-date-picker-common-var-padding-tb__hd:12px;--v-date-picker-common-var-size__cell:28px;--v-date-picker-common-var-distance__cell:3px;--v-date-picker-common-var-border-width__cell:2px;--v-date-picker-common-var-size__dot:4px;--v-date-picker-common-var-margin__dot:1px;--v-date-picker-common-var-bkg-color__dot:var(--d-theme-main-color);--v-date-picker-common-var-bkg-color__dot--disabled:#505a6466;width:var(--v-date-picker-dropdown-width)}.v-dt-dropdown.with-week-number{width:var(--v-date-picker-dropdown-width--with-week-nubmer)}.v-dt-dropdown.v-select2-dropdown{padding:var(--v-date-picker-dropdown-padding)}.v-dt-dropdown .v-dt-header{color:var(--v-date-picker-dropdown-color__hd);display:flex;padding:var(--v-date-picker-dropdown-padding__hd)}.v-dt-dropdown .v-dt-header .v-icon.date-picker-down{background-image:image-set(url("webman/3rdparty/Spreadsheet/dist/assets/images/1x/combo_trigger.png") 1x,url("webman/3rdparty/Spreadsheet/dist/assets/images/2x/combo_trigger.png") 1.5x);background-position:0 0;background-size:var(--v-date-picker-dropdown-width__hd-picker-trigger);height:var(--v-date-picker-dropdown-height__hd-picker-trigger);position:absolute;right:var(--v-date-picker-dropdown-right__hd-picker-trigger);top:var(--v-date-picker-dropdown-top__hd-picker-trigger);width:var(--v-date-picker-dropdown-width__hd-picker-trigger)}.v-dt-dropdown .v-dt-header .v-dt-month-picker,.v-dt-dropdown .v-dt-header .v-dt-year-picker{cursor:pointer;display:inline-block;flex:0 0 auto;font-size:var(--v-date-picker-dropdown-font-size__hd-picker);font-weight:var(--v-date-picker-dropdown-font-weight__hd-picker);line-height:var(--v-date-picker-dropdown-line-height__hd-picker);margin-right:var(--v-date-picker-dropdown-margin-right__hd-picker);padding-right:var(--v-date-picker-dropdown-padding-right__hd-picker);position:relative;vertical-align:top}.v-dt-dropdown .v-dt-header .v-dt-month-picker.expanded,.v-dt-dropdown .v-dt-header .v-dt-month-picker:hover,.v-dt-dropdown .v-dt-header .v-dt-year-picker.expanded,.v-dt-dropdown .v-dt-header .v-dt-year-picker:hover{color:var(--v-date-picker-dropdown-color__hd--activated)}.v-dt-dropdown .v-dt-header .v-dt-month-picker.expanded .v-icon.date-picker-down,.v-dt-dropdown .v-dt-header .v-dt-month-picker:hover .v-icon.date-picker-down,.v-dt-dropdown .v-dt-header .v-dt-year-picker.expanded .v-icon.date-picker-down,.v-dt-dropdown .v-dt-header .v-dt-year-picker:hover .v-icon.date-picker-down{background-position:0 calc(var(--v-date-picker-dropdown-height__hd-picker-trigger)*-1)}.v-dt-dropdown .v-dt-header .v-dt-month-picker.expanded .v-icon.date-picker-down:not(.disabled),.v-dt-dropdown .v-dt-header .v-dt-month-picker:hover .v-icon.date-picker-down:not(.disabled),.v-dt-dropdown .v-dt-header .v-dt-year-picker.expanded .v-icon.date-picker-down:not(.disabled),.v-dt-dropdown .v-dt-header .v-dt-year-picker:hover .v-icon.date-picker-down:not(.disabled){color:var(--hover);fill-opacity:var(--fill-opacity--hover)}.v-dt-dropdown .v-dt-header .v-icon.date-picker-left,.v-dt-dropdown .v-dt-header .v-icon.date-picker-right{background-image:image-set(url("webman/3rdparty/Spreadsheet/dist/assets/images/1x/bt_prev_next.png") 1x,url("webman/3rdparty/Spreadsheet/dist/assets/images/2x/bt_prev_next.png") 1.5x);background-position-y:0;background-size:calc(var(--v-date-picker-dropdown-width__chg-month-btn)*2);cursor:pointer;flex:0 0 auto;height:var(--v-date-picker-dropdown-height__chg-month-btn);position:absolute;top:var(--v-date-picker-dropdown-top__chg-month-btn);width:var(--v-date-picker-dropdown-width__chg-month-btn)}.v-dt-dropdown .v-dt-header .v-icon.date-picker-left:active,.v-dt-dropdown .v-dt-header .v-icon.date-picker-left:hover,.v-dt-dropdown .v-dt-header .v-icon.date-picker-right:active,.v-dt-dropdown .v-dt-header .v-icon.date-picker-right:hover{background-position-y:calc(var(--v-date-picker-dropdown-height__chg-month-btn)*-1)}.v-dt-dropdown .v-dt-header .v-dt-prev-month-btn{background-position-x:0;right:40px}.v-dt-dropdown .v-dt-header .v-dt-next-month-btn{background-position-x:calc(var(--v-date-picker-dropdown-width__chg-month-btn)*-1);right:16px}.v-dt-dropdown .v-dt-body{color:var(--v-date-picker-dropdown-color__body);display:flex;flex-direction:row;font-size:var(--v-date-picker-dropdown-font-size__body);gap:var(--v-date-picker-dropdown-gap__body);padding:var(--v-date-picker-dropdown-padding__body);-webkit-user-select:none;user-select:none}.v-dt-dropdown .v-dt-body .v-dt-week-number{display:grid;grid-column-start:2;grid-template-rows:repeat(6,1fr)}.v-dt-dropdown .v-dt-body .v-dt-week-number .v-dt-week-number-cell{align-items:center;color:var(--v-date-picker-dropdown-color__week-number);display:flex;font-size:var(--v-date-picker-dropdown-font-size__week-number);grid-row-start:var(--row-start);height:var(--v-date-picker-dropdown-height__week-number);justify-content:center;width:var(--v-date-picker-dropdown-width__week-number)}.v-dt-dropdown .v-dt-body .v-dt-table{flex:1 1 auto}.v-dt-dropdown .v-dt-body .v-dt-table-body,.v-dt-dropdown .v-dt-body .v-dt-table-head{display:grid;grid-template-columns:repeat(7,1fr)}.v-dt-dropdown .v-dt-body .v-dt-cell,.v-dt-dropdown .v-dt-body .v-dt-table-head-cell{align-items:center;display:flex;justify-content:center}.v-dt-dropdown .v-dt-body .v-dt-table-head-cell{padding-bottom:var(--v-date-picker-dropdown-padding__weekday);padding-top:var(--v-date-picker-dropdown-padding__weekday)}.v-dt-dropdown .v-dt-body .v-dt-weekday{align-items:center;box-sizing:border-box;color:var(--v-date-picker-dropdown-color__weekday);display:flex;height:var(--v-date-picker-dropdown-height__weekday);justify-content:center;width:var(--v-date-picker-dropdown-width__weekday)}.v-dt-dropdown .v-dt-body .v-dt-cell{padding-bottom:var(--v-date-picker-dropdown-padding__date-cell);padding-top:var(--v-date-picker-dropdown-padding__date-cell)}.v-dt-dropdown .v-dt-body .v-dt-cell:nth-child(-n+1 of .this-week){border-bottom-left-radius:var(--v-date-picker-dropdown-border-radius__date-cell);border-top-left-radius:var(--v-date-picker-dropdown-border-radius__date-cell)}.v-dt-dropdown .v-dt-body .v-dt-cell:nth-last-child(-n+1 of .this-week){border-bottom-right-radius:var(--v-date-picker-dropdown-border-radius__date-cell);border-top-right-radius:var(--v-date-picker-dropdown-border-radius__date-cell)}.v-dt-dropdown .v-dt-body .v-dt-cell.this-week{background-color:var(--v-date-picker-dropdown-bkg-color__date-cell--this-week)}.v-dt-dropdown .v-dt-body .v-dt-date{align-items:center;border:var(--v-date-picker-dropdown-border__date-cell);border-radius:var(--v-date-picker-dropdown-border-radius__date-cell);box-sizing:border-box;cursor:pointer;display:flex;height:var(--v-date-picker-common-var-size__cell);justify-content:center;position:relative;width:var(--v-date-picker-common-var-size__cell)}.v-dt-dropdown .v-dt-body .v-dt-date .dot{background-color:var(--v-date-picker-dropdown-bkg-color__dot);border-radius:var(--v-date-picker-dropdown-border-radius__dot);bottom:var(--v-date-picker-dropdown-bottom__dot);display:inline-block;height:var(--v-date-picker-dropdown-height__dot);position:absolute;right:var(--v-date-picker-dropdown-right__dot);width:var(--v-date-picker-dropdown-width__dot)}.v-dt-dropdown .v-dt-body .v-dt-date.other-month{background-color:#0000;color:var(--v-date-picker-dropdown-color__date-cell--other-month)}.v-dt-dropdown .v-dt-body .v-dt-date.other-month .dot{background-color:var(--v-date-picker-dropdown-bkg-color__dot--other-month)}.v-dt-dropdown .v-dt-body .v-dt-date.other-month:not(.active):not(.today):not(.disabled):hover{background-color:var(--v-date-picker-dropdown-bkg-color__date-cell--hover-other-month)}.v-dt-dropdown .v-dt-body .v-dt-date.other-month:not(.active):not(.today):not(.disabled):hover .dot{background-color:var(--v-date-picker-dropdown-bkg-color__dot--other-month-hover)}.v-dt-dropdown .v-dt-body .v-dt-date.active,.v-dt-dropdown .v-dt-body .v-dt-date:hover{background-color:var(--v-date-picker-dropdown-bkg-color__date-cell--hover)}.v-dt-dropdown .v-dt-body .v-dt-date.active .dot,.v-dt-dropdown .v-dt-body .v-dt-date:hover .dot{background-color:var(--v-date-picker-dropdown-bkg-color__dot)}.v-dt-dropdown .v-dt-body .v-dt-date.today{background-color:var(--v-date-picker-dropdown-bkg-color__date-cell--today);border:var(--v-date-picker-dropdown-border__date-cell--today);color:var(--v-date-picker-dropdown-color__date-cell--today);font-weight:var(--v-date-picker-dropdown-font-weight__date-cell--today)}.v-dt-dropdown .v-dt-body .v-dt-date.today .dot{background-color:var(--v-date-picker-dropdown-bkg-color__dot)}.v-dt-dropdown .v-dt-body .v-dt-date.selected{background-color:var(--v-date-picker-dropdown-bkg-color__date-cell--selected);border:var(--v-date-picker-dropdown-border__date-cell--selected);color:var(--v-date-picker-dropdown-color__date-cell--selected);font-weight:var(--v-date-picker-dropdown-font-weight__date-cell--selected)}.v-dt-dropdown .v-dt-body .v-dt-date.selected .dot{background-color:var(--v-date-picker-dropdown-bkg-color__dot--selected)}.v-dt-dropdown .v-dt-body .v-dt-date.disabled{background-color:var(--v-date-picker-dropdown-bkg-color__date-cell--disabled);color:var(--v-date-picker-dropdown-color__date-cell--disabled);cursor:default}.v-dt-dropdown .v-dt-body .v-dt-date.disabled .dot{background-color:var(--v-date-picker-dropdown-bkg-color__dot--disabled)}.v-dt-dropdown .v-dt-footer{padding:var(--v-date-picker-dropdown-padding__footer)}.v-dt-dropdown .v-dt-footer .button-wrapper{align-items:flex-start;display:flex;justify-content:space-between}.v-dt-dropdown .v-dt-footer .button-wrapper .left{flex:1 1 auto;flex-grow:1}.v-dt-dropdown .v-dt-footer .button-wrapper .left,.v-dt-dropdown .v-dt-footer .button-wrapper .right{height:var(--v-date-picker-dropdown-height__footer-button)}.v-dt-dropdown .v-dt-footer .button-wrapper .v-btn{border-radius:var(--v-date-picker-dropdown-border-radius__footer-button)}.v-dt-dropdown .v-dt-footer .v-select2-wrapper{width:var(--v-date-picker-dropdown-width__footer-select)!important}.v-dt-select-wrapper{display:inline-flex;flex-flow:row nowrap;justify-content:flex-start;width:var(--v-date-picker-dropdown-width__footer-select-wrapper)}.v-dt-select-wrapper .v-select2-wrapper.enable-24hr{flex:1}.v-dt-select-wrapper .separator{line-height:var(--v-date-picker-dropdown-line-height__footer-separator);text-align:center;width:var(--v-date-picker-dropdown-width__footer-separator)}.v-dt-select-wrapper .separator.empty{flex:1;width:var(--v-date-picker-dropdown-width__footer-separator)}.v-dt-time-wrapper{border-top:var(--v-date-picker-dropdown-border-top__time-wrapper);margin:var(--v-date-picker-dropdown-margin__time-wrapper);padding:var(--v-date-picker-dropdown-padding__time-wrapper);width:100%}.v-dt-time-wrapper .v-checkbox-wrapper{margin-bottom:var(--v-date-picker-dropdown-margin-bottom__time-checkbox)}.v-dt-time-wrapper .v-form-item{margin-bottom:var(--v-date-picker-dropdown-margin-bottom__form-item)}.v-dt-inner-panel.v-menu{--v-date-picker-dropdown-width:270px;--v-date-picker-dropdown-width--with-week-nubmer:290px;--v-date-picker-dropdown-padding:0px;--v-date-picker-dropdown-border-top__time-wrapper:1px solid #c6d4e059;--v-date-picker-dropdown-margin__time-wrapper:12px -16px 0 -16px;--v-date-picker-dropdown-padding__time-wrapper:8px 16px 0 16px;--v-date-picker-dropdown-margin-bottom__time-checkbox:8px;--v-date-picker-dropdown-margin-bottom__form-item:0px;--v-date-picker-dropdown-height__inner-panel:212px;--v-date-picker-dropdown-min-width__inner-panel:100px;--v-date-picker-dropdown-font-size__inner-panel:var(--v-font-size-tier1);--v-date-picker-dropdown-padding__hd:12px 16px;--v-date-picker-dropdown-padding-right__hd-picker:24px;--v-date-picker-dropdown-margin-right__hd-picker:10px;--v-date-picker-dropdown-margin-left__hd-picker:0px;--v-date-picker-dropdown-line-height__hd-picker:24px;--v-date-picker-dropdown-color__hd:var(--v-color-font-tier1);--v-date-picker-dropdown-color__hd--activated:var(--v-color-main);--v-date-picker-dropdown-font-size__hd-picker:var(--v-font-size-tier1);--v-date-picker-dropdown-font-weight__hd-picker:var(--v-font-weight-bold);--v-date-picker-dropdown-height__hd-picker-trigger:24px;--v-date-picker-dropdown-width__hd-picker-trigger:24px;--v-date-picker-dropdown-top__hd-picker-trigger:0;--v-date-picker-dropdown-right__hd-picker-trigger:0;--v-date-picker-dropdown-top__chg-month-btn:12px;--v-date-picker-dropdown-width__chg-month-btn:24px;--v-date-picker-dropdown-height__chg-month-btn:24px;--v-date-picker-dropdown-gap__body:4px;--v-date-picker-dropdown-color__body:var(--v-color-font-tier1);--v-date-picker-dropdown-padding__body:0 15px;--v-date-picker-dropdown-font-size__body:var(--v-font-size-tier1);--v-date-picker-dropdown-width__week-number:16px;--v-date-picker-dropdown-height__week-number:34px;--v-date-picker-dropdown-color__week-number:var(--v-color-font-tier2);--v-date-picker-dropdown-font-size__week-number:10px;--v-date-picker-dropdown-width__weekday:28px;--v-date-picker-dropdown-height__weekday:28px;--v-date-picker-dropdown-color__weekday:var(--v-color-font-tier3);--v-date-picker-dropdown-padding__weekday:3px;--v-date-picker-dropdown-bkg-color__date-cell--this-week:var(--v-color-bg-grey-10);--v-date-picker-dropdown-padding__date-cell:3px;--v-date-picker-dropdown-border-radius__date-cell:4px;--v-date-picker-dropdown-border__date-cell:2px solid #0000;--v-date-picker-dropdown-border__date-cell--today:2px solid var(--v-color-main);--v-date-picker-dropdown-border__date-cell--selected:2px solid #0000;--v-date-picker-dropdown-bkg-color__date-cell--today:#0000;--v-date-picker-dropdown-bkg-color__date-cell--other-month:#0000;--v-date-picker-dropdown-bkg-color__date-cell--hover-other-month:#c6d4e066;--v-date-picker-dropdown-bkg-color__date-cell--hover:#c6d4e066;--v-date-picker-dropdown-bkg-color__date-cell--selected:var(--v-color-main);--v-date-picker-dropdown-bkg-color__date-cell--disabled:#0000;--v-date-picker-dropdown-color__date-cell--today:var(--v-color-main);--v-date-picker-dropdown-color__date-cell--other-month:var(--v-color-font-tier3);--v-date-picker-dropdown-color__date-cell--selected:var(--v-color-white);--v-date-picker-dropdown-color__date-cell--disabled:var(--v-color-font-tier3);--v-date-picker-dropdown-font-weight__date-cell--today:var(--v-font-weight-bold);--v-date-picker-dropdown-font-weight__date-cell--selected:var(--v-font-weight-bold);--v-date-picker-dropdown-height__dot:4px;--v-date-picker-dropdown-width__dot:4px;--v-date-picker-dropdown-border-radius__dot:50%;--v-date-picker-dropdown-right__dot:1px;--v-date-picker-dropdown-bottom__dot:1px;--v-date-picker-dropdown-bkg-color__dot:var(--d-theme-main-color);--v-date-picker-dropdown-bkg-color__dot--other-month:rgba(var(--d-theme-main-color),0.4);--v-date-picker-dropdown-bkg-color__dot--other-month-hover:rgba(var(--d-theme-main-color),0.4);--v-date-picker-dropdown-bkg-color__dot--selected:var(--v-color-white);--v-date-picker-dropdown-bkg-color__dot--disabled:#505a6466;--v-date-picker-dropdown-padding__footer:5px 16px 16px 16px;--v-date-picker-dropdown-height__footer-button:28px;--v-date-picker-dropdown-border-radius__footer-button:100px;--v-date-picker-dropdown-width__footer-select:70px;--v-date-picker-dropdown-width__footer-select-wrapper:100%;--v-date-picker-dropdown-width__footer-separator:12px;--v-date-picker-dropdown-line-height__footer-separator:28px;font-size:var(--v-date-picker-dropdown-font-size__inner-panel);height:var(--v-date-picker-dropdown-height__inner-panel);min-width:var(--v-date-picker-dropdown-min-width__inner-panel)}.v-handle{height:20px;position:absolute;width:20px}.v-handle-tl{cursor:nw-resize;left:-10px;top:-10px}.v-handle-tm{cursor:n-resize;left:10px;right:10px;top:-10px;width:calc(100% - 20px)}.v-handle-tr{cursor:ne-resize;right:-10px;top:-10px}.v-handle-ml{cursor:w-resize;left:-10px}.v-handle-ml,.v-handle-mr{height:calc(100% - 20px);top:10px}.v-handle-mr{cursor:e-resize;right:-10px}.v-handle-bl{bottom:-10px;cursor:sw-resize;left:-10px}.v-handle-bm{bottom:-10px;cursor:s-resize;left:10px;width:calc(100% - 20px)}.v-handle-br{bottom:-10px;cursor:se-resize;right:-10px}.v-empty-view{--v-empty-view-width__icon:120px;--v-empty-view-height__icon:120px;--v-empty-view-margin-top__text:0;--v-empty-view-margin-top__text--has-title:12px;--v-empty-view-margin-top__text--has-icon:20px;--v-empty-view-margin-top__title--has-icon:20px;--v-empty-view-line-height__text:var(--v-line-height-100);--v-empty-view-line-height__title:var(--v-line-height-200);--v-empty-view-font-size__title:var(--v-font-size-tier4);--v-empty-view-font-weight__title:var(--v-font-weight-bold);--v-empty-view-color__title:var(--v-color-font-tier1);--v-empty-view-color__text:var(--v-color-font-tier2);--v-empty-view-margin-top__action:16px;--v-empty-view-min-width__button:80px;--v-empty-view-custom:false;display:flex;height:100%;width:100%}.v-empty-view .v-empty-view-box{margin:auto;text-align:center}.v-empty-view .v-empty-view-icon{height:var(--v-empty-view-height__icon);margin:auto;width:var(--v-empty-view-width__icon)}.v-empty-view .v-empty-view-icon+.v-empty-view-text{margin-top:var(--v-empty-view-margin-top__text--has-icon)}.v-empty-view .v-empty-view-icon+.v-empty-view-title{margin-top:var(--v-empty-view-margin-top__title--has-icon)}.v-empty-view .empty-view-default.v-icon{background-image:url(webman/3rdparty/Spreadsheet/dist/assets/images/svg/empty_default.svg);background-size:var(--v-empty-view-width__icon);height:var(--v-empty-view-height__icon);width:var(--v-empty-view-width__icon)}.v-empty-view .v-empty-view-title{color:var(--v-empty-view-color__title);font-size:var(--v-empty-view-font-size__title);font-weight:var(--v-empty-view-font-weight__title);line-height:var(--v-empty-view-line-height__title);text-align:center}.v-empty-view .v-empty-view-title+.v-empty-view-text{margin-top:var(--v-empty-view-margin-top__text--has-title)}.v-empty-view .v-empty-view-text{color:var(--v-empty-view-color__text);line-height:var(--v-empty-view-line-height__text);margin-top:var(--v-empty-view-margin-top__text);text-align:center}.v-empty-view .v-empty-view-action{margin-top:var(--v-empty-view-margin-top__action);text-align:center}.v-empty-view .v-btn{min-width:var(--v-empty-view-min-width__button)}.v-expandable-item.item-wrap{--v-expandable-item-padding-left__summary:64px;--v-expandable-item-height__summary:58px;--v-expandable-item-width__icon:32px;--v-expandable-item-height__icon:32px;--v-expandable-item-top__icon:13px;--v-expandable-item-left__icon:16px;--v-expandable-item-line-height__title:var(--v-line-height-100);--v-expandable-item-font-weight__title:var(--v-font-weight-bold);--v-expandable-item-margin-top__title-wrapper:8px;--v-expandable-item-line-height__desc:var(--v-line-height-100);--v-expandable-item-margin-top__desc:8px;--v-expandable-item-margin-top__status:2px;--v-expandable-item-font-size__status:var(--v-font-size-tier1);--v-expandable-item-color__status:var(--v-color-font-tier2);--v-expandable-item-line-height__status:var(--v-line-height-100);--v-expandable-item-top__toggle:0;--v-expandable-item-right__toggle:0;--v-expandable-item-width__toggle:58px;--v-expandable-item-height__toggle:58px;--v-expandable-item-top__img:16px;--v-expandable-item-top__img-1:16px;--v-expandable-item-width__toggle-icon:24px;--v-expandable-item-height__toggle-icon:24px;--v-expandable-item-padding__detail:0 16px 8px 64px;--v-expandable-item-opacity__disabled:0.4;--v-expandable-item-margin__icon-wrapper:0 0 0 16px;--v-expandable-item-margin__main-wrapper:0 0 0 16px;--v-expandable-item-margin__toggle-wrapper:0 16px 0 12px;--v-expandable-item-right__status-icon:-6px;--v-expandable-item-bottom__status-icon:-6px;--v-expandable-item-width__status-icon:24px;--v-expandable-item-height__status-icon:24px;position:relative;-webkit-user-select:none;user-select:none}.v-expandable-item.item-wrap.disabled-all{cursor:default;opacity:var(--v-expandable-item-opacity__disabled)}.v-expandable-item.item-wrap.disabled-all .item-summary .toggle-wrapper{cursor:default}.v-expandable-item.item-wrap.disabled-detail:not(.disabled-all) .icon-wrapper,.v-expandable-item.item-wrap.disabled-detail:not(.disabled-all) .item-status-wrapper{opacity:var(--v-expandable-item-opacity__disabled)}.v-expandable-item.item-wrap .item-summary{display:flex;min-height:var(--v-expandable-item-height__summary);position:relative}.v-expandable-item.item-wrap .item-summary .icon-wrapper{align-items:center;display:flex;flex:0 0 auto;margin:var(--v-expandable-item-margin__icon-wrapper)}.v-expandable-item.item-wrap .item-summary .icon-wrapper .item-icon{display:inline-block;height:var(--v-expandable-item-height__icon);position:relative;width:var(--v-expandable-item-width__icon)}.v-expandable-item.item-wrap .item-summary .icon-wrapper .item-status-icon{bottom:var(--v-expandable-item-bottom__status-icon);position:absolute;right:var(--v-expandable-item-right__status-icon)}.v-expandable-item.item-wrap .item-summary .main-wrapper{flex:1 1 auto;margin:var(--v-expandable-item-margin__main-wrapper);min-width:0}.v-expandable-item.item-wrap .item-summary .toggle-wrapper{align-items:center;cursor:pointer;display:flex;flex:0 0 auto;margin:var(--v-expandable-item-margin__toggle-wrapper)}.v-expandable-item.item-wrap .item-summary .toggle-wrapper:hover .item-toggle-img:not(.disabled){color:var(--hover);fill-opacity:var(--fill-opacity--hover)}.v-expandable-item.item-wrap .item-summary .toggle-wrapper:active .item-toggle-img:not(.disabled){color:var(--active);fill-opacity:var(--fill-opacity--active)}.v-expandable-item.item-wrap .item-summary .item-title{display:inline-block;font-weight:var(--v-expandable-item-font-weight__title);line-height:var(--v-expandable-item-line-height__title);overflow:hidden;text-overflow:ellipsis;vertical-align:top;white-space:nowrap}.v-expandable-item.item-wrap .item-summary .item-desc{display:inline-block;line-height:var(--v-expandable-item-line-height__desc);margin-top:var(--v-expandable-item-margin-top__desc);overflow:hidden;text-overflow:ellipsis;vertical-align:top;white-space:nowrap}.v-expandable-item.item-wrap .item-summary .title-wrapper{align-items:center;display:flex;flex-direction:row;margin-top:var(--v-expandable-item-margin-top__title-wrapper)}.v-expandable-item.item-wrap .item-summary .item-status-wrapper{align-items:center;display:flex;flex-direction:row;font-size:var(--v-expandable-item-font-size__status);line-height:var(--v-expandable-item-line-height__status);margin-top:var(--v-expandable-item-margin-top__status)}.v-expandable-item.item-wrap .item-summary .item-status-wrapper .item-status{color:var(--v-expandable-item-color__status);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.v-expandable-item.item-wrap .item-summary .expandable-item-down,.v-expandable-item.item-wrap .item-summary .expandable-item-up{background-image:image-set(url("webman/3rdparty/Spreadsheet/dist/assets/images/1x/exgrid_arrow.png") 1x,url("webman/3rdparty/Spreadsheet/dist/assets/images/2x/exgrid_arrow.png") 1.5x);background-position-y:0;background-repeat:no-repeat;background-size:48px;height:var(--v-expandable-item-height__toggle-icon);width:var(--v-expandable-item-width__toggle-icon)}.v-expandable-item.item-wrap .item-summary .expandable-item-down:hover,.v-expandable-item.item-wrap .item-summary .expandable-item-up:hover{background-position-y:-24px}.v-expandable-item.item-wrap .item-summary .expandable-item-down:active,.v-expandable-item.item-wrap .item-summary .expandable-item-down:focus,.v-expandable-item.item-wrap .item-summary .expandable-item-up:active,.v-expandable-item.item-wrap .item-summary .expandable-item-up:focus{background-position-y:-48px}.v-expandable-item.item-wrap .item-summary .expandable-item-down{background-position-x:0}.v-expandable-item.item-wrap .item-summary .expandable-item-up{background-position-x:-24px}.v-expandable-item.item-wrap .item-detail{padding:var(--v-expandable-item-padding__detail)}.v-ext-window .x-window-bl{display:none}.v-edit-menu{display:flex;flex-direction:row;--v-edit-menu-bkg-color:#1e2022;--v-edit-menu-box-shadow:0 2px 8px #00000040;--v-edit-menu-border-radius:var(--v-border-radius-200);--v-edit-menu-width__gradient-filter:48px;background-color:var(--v-edit-menu-bkg-color);border-radius:var(--v-edit-menu-border-radius);box-shadow:var(--v-edit-menu-box-shadow);overflow:auto}.v-edit-menu .edit-menu-scrollbar-inner{display:inline-flex;flex-direction:row;vertical-align:top}.v-edit-menu .gradient-filter{height:100%;pointer-events:none;position:absolute;width:var(--v-edit-menu-width__gradient-filter)}.v-edit-menu .gradient-filter.prev-filter{background-image:linear-gradient(90deg,#1e2022,#1e202200);border-bottom-left-radius:var(--v-edit-menu-border-radius);border-top-left-radius:var(--v-edit-menu-border-radius);left:0;top:0}.v-edit-menu .gradient-filter.next-filter{background-image:linear-gradient(90deg,#1e202200,#1e2022);border-bottom-right-radius:var(--v-edit-menu-border-radius);border-top-right-radius:var(--v-edit-menu-border-radius);right:0;top:0}.v-edit-menu-item{--v-edit-menu-item-font-size:var(--v-font-size-tier1);--v-edit-menu-item-color:var(--v-color-white-tier1);--v-edit-menu-item-border-right:1px solid #fff3;--v-edit-menu-item-line-height:36px;--v-edit-menu-item-padding:0 14px;--v-edit-menu-item-gap:8px;--v-edit-menu-item-padding--more:0 8px 0 14px;align-items:center;border-right:var(--v-edit-menu-item-border-right);color:var(--v-edit-menu-item-color);cursor:pointer;display:flex;font-size:var(--v-edit-menu-item-font-size);gap:var(--v-edit-menu-item-gap);justify-content:center;line-height:var(--v-edit-menu-item-line-height);overflow:hidden;padding:var(--v-edit-menu-item-padding);text-overflow:ellipsis;white-space:nowrap}.v-edit-menu-item.has-more{padding:var(--v-edit-menu-item-padding--more)}.v-edit-menu-item .more-btn-wrapper{align-items:center;display:flex;height:100%}.v-edit-menu-item .more-btn-wrapper .edit-menu-more{background-image:image-set(url("webman/3rdparty/Spreadsheet/dist/assets/images/1x/edit_menu_more.png") 1x,url("webman/3rdparty/Spreadsheet/dist/assets/images/2x/edit_menu_more.png") 1.5x);background-size:12px 24px;-webkit-user-select:none;user-select:none}.v-edit-menu-item .edit-menu-text{-webkit-user-select:none;user-select:none}.v-edit-menu-item:last-child{border-right:none}.v-fieldset{--v-fieldset-padding:var(--svc-layout-padding);--v-fieldset-padding__title-wrapper:0 0 1px 4px;--v-fieldset-font-size__title-wrapper:14px;--v-fieldset-font-weight__title-wrapper:var(--v-font-weight-bold);--v-fieldset-line-height__title-wrapper:29px;--v-fieldset-height__title-wrapper:29px;--v-fieldset-bkg-color__title-wrapper:var(--v-color-white);--v-fieldset-color__title-wrapper:var(--v-color-font-tier1);--v-fieldset-color__title-wrapper--hover:var(--v-color-main);--v-fieldset-color__title-wrapper--focus:var(--v-color-main);--v-fieldset-border-bottom__border:1px dashed var(--v-color-border-tier1);--v-fieldset-padding-left__title:4px;overflow:hidden;padding:var(--v-fieldset-padding)}.v-fieldset .v-fieldset-title-wrapper{background-color:var(--v-fieldset-bkg-color__title-wrapper);color:var(--v-fieldset-color__title-wrapper);display:flex;font-size:var(--v-fieldset-font-size__title-wrapper);font-weight:var(--v-fieldset-font-weight__title-wrapper);height:var(--v-fieldset-height__title-wrapper);line-height:var(--v-fieldset-line-height__title-wrapper);padding:var(--v-fieldset-padding__title-wrapper);position:relative}.v-fieldset .v-fieldset-title-wrapper:before{--v-fieldset-padding:var(--svc-layout-padding);--v-fieldset-padding__title-wrapper:0 0 1px 4px;--v-fieldset-font-size__title-wrapper:14px;--v-fieldset-font-weight__title-wrapper:var(--v-font-weight-bold);--v-fieldset-line-height__title-wrapper:29px;--v-fieldset-height__title-wrapper:29px;--v-fieldset-bkg-color__title-wrapper:var(--v-color-white);--v-fieldset-color__title-wrapper:var(--v-color-font-tier1);--v-fieldset-color__title-wrapper--hover:var(--v-color-main);--v-fieldset-color__title-wrapper--focus:var(--v-color-main);--v-fieldset-border-bottom__border:1px dashed var(--v-color-border-tier1);--v-fieldset-padding-left__title:4px;border-bottom:var(--v-fieldset-border-bottom__border);bottom:0;content:"";left:0;position:absolute;right:0}.v-fieldset .v-fieldset-title-wrapper .v-fieldset-title{overflow:hidden;padding-left:var(--v-fieldset-padding-left__title);width:100%}.v-fieldset .v-fieldset-title-wrapper .fieldset-chevron-down,.v-fieldset .v-fieldset-title-wrapper .fieldset-chevron-up{background-image:image-set(url("webman/3rdparty/Spreadsheet/dist/assets/images/1x/fieldset_arrow.png") 1x,url("webman/3rdparty/Spreadsheet/dist/assets/images/2x/fieldset_arrow.png") 1.5x);background-position:-24px 0;background-size:48px;flex:0 0 auto;height:24px;width:24px}.v-fieldset .v-fieldset-body.v-layout{--v-fieldset-body-padding:var(--svc-layout-padding,8px);padding:var(--v-fieldset-body-padding);position:relative}.v-fieldset.collapsible .v-fieldset-title-wrapper{cursor:pointer}.v-fieldset.collapsible .v-fieldset-title-wrapper:hover{color:var(--v-fieldset-color__title-wrapper--hover)}.v-fieldset.collapsible .v-fieldset-title-wrapper:hover .fieldset-chevron-up{background-position:-24px -24px}.v-fieldset.collapsible .v-fieldset-title-wrapper:hover .fieldset-chevron-up:not(.disabled){color:var(--hover);fill-opacity:var(--fill-opacity--hover)}.v-fieldset.collapsible .v-fieldset-title-wrapper:active,.v-fieldset.collapsible .v-fieldset-title-wrapper:focus{color:var(--v-fieldset-color__title-wrapper--focus)}.v-fieldset.collapsible .v-fieldset-title-wrapper:active .fieldset-chevron-up,.v-fieldset.collapsible .v-fieldset-title-wrapper:focus .fieldset-chevron-up{background-position:-24px -48px}.v-fieldset.collapsible .v-fieldset-title-wrapper:active .fieldset-chevron-up:not(.disabled),.v-fieldset.collapsible .v-fieldset-title-wrapper:focus .fieldset-chevron-up:not(.disabled){color:var(--active);fill-opacity:var(--fill-opacity--active)}.v-fieldset.collapsed .v-fieldset-title-wrapper .fieldset-chevron-down{background-position:0 0}.v-fieldset.collapsed .v-fieldset-title-wrapper:hover .fieldset-chevron-down{background-position:0 -24px}.v-fieldset.collapsed .v-fieldset-title-wrapper:hover .fieldset-chevron-down:not(.disabled){color:var(--hover);fill-opacity:var(--fill-opacity--hover)}.v-fieldset.collapsed .v-fieldset-title-wrapper:active .fieldset-chevron-down{background-position:0 -48px}.v-fieldset.collapsed .v-fieldset-title-wrapper:active .fieldset-chevron-down:not(.disabled){color:var(--active);fill-opacity:var(--fill-opacity--active)}.v-file-btn{--v-file-button-height:28px;--v-file-button-bkg-color__input:#fff;--v-file-button-bkg-color__input--invalid:#fff2f4;--v-file-button-bkg-color__input--hover:#fff;--v-file-button-bkg-color__input--focus:#fff;--v-file-button-border-width:1px;--v-file-button-border__input:1px solid #d8dadc;--v-file-button-border__input--invalid:1px solid #fa899c;--v-file-button-border__input--hover:1px solid #c4c6c8;--v-file-button-border__input--focus:1px solid var(--d-theme-main-color);--v-file-button-color__input:#2e3032;--v-file-button-bkg-color__input--disabled:#eceef0;--v-file-button-border__input--disabled:1px solid #d8dadc;--v-file-button-color__input--disabled:#babcbe;--v-file-button-margin-left__button:6px;--v-file-button-custom:false;display:flex;height:var(--v-file-button-height)}.v-file-btn.custom{display:block;height:auto}.v-file-btn .file-button-upload{background-image:image-set(url("webman/3rdparty/Spreadsheet/dist/assets/images/1x/icn_folder.png") 1x,url("webman/3rdparty/Spreadsheet/dist/assets/images/2x/icn_folder.png") 1.5x);background-size:24px}.v-file-btn .file-textfield.v-textfield-wrapper.icon-in-input .file-button-upload,.v-file-btn .file-textfield.v-textfield-wrapper.icon-in-input .v-textfield-input{cursor:pointer}.v-file-btn .file-textfield.v-textfield-wrapper.icon-in-input:hover:not(.disabled) .v-textfield-input-wrapper .input-container{background-color:var(--v-file-button-bkg-color__input--hover);border:var(--v-file-button-border__input--hover)}.v-file-btn .file-textfield.v-textfield-wrapper .input-container,.v-file-btn .file-textfield.v-textfield-wrapper:hover:not(.disabled) .v-textfield-input-wrapper .input-container{background-color:var(--v-file-button-bkg-color__input);border:var(--v-file-button-border__input)}.v-file-btn .file-textfield.v-textfield-wrapper .input-container{color:var(--v-file-button-color__input);cursor:default}.v-file-btn .file-input{height:0;visibility:hidden;width:0}.has-error .v-file-btn .file-textfield.v-textfield-wrapper:not(.disabled) .input-container,.has-error .v-file-btn .file-textfield.v-textfield-wrapper:not(.disabled).icon-in-input .input-container{background-color:var(--v-file-button-bkg-color__input--invalid);border:var(--v-file-button-border__input--invalid)}.v-file-btn .v-btn{margin-left:var(--v-file-button-margin-left__button)}.v-file-btn.disabled .file-textfield.v-textfield-wrapper .input-container{background-color:var(--v-file-button-bkg-color__input--disabled);border:var(--v-file-button-border__input--disabled);color:var(--v-file-button-color__input--disabled)}.v-form-item{--v-form-item-margin-bottom:8px;--v-form-item-margin-bottom--vertical:8px;--v-form-item-margin-right__label:10px;--v-form-item-color__label:#2e3032;--v-form-item-line-height__label:20px;--v-form-item-line-height__value--textonly:20px;--v-form-item-font-size__label:13px;--v-form-item-font-size__textonly:13px;--v-form-item-padding___label:5px 0;--v-form-item-padding__value--textonly:5px 0;--v-form-item-padding__validate-message:5px 0;--v-form-item-padding-left__label-indent-unit:28px;--v-form-item-font-size__description:13px;--v-form-item-color__description:var(--v-color-font-tier1);--v-form-item-line-height__description:20px;--v-form-item-padding__description:5px 0;--v-form-item-width__label:150px;--v-form-margin-b1:6px;--v-form-margin-b2:12px;--v-form-margin-b3:18px;--v-form-margin-b4:24px;display:flex;margin-bottom:var(--v-form-item-margin-bottom)}.v-form-item.hide-label{padding-left:calc(var(--v-form-item-padding-left__label-indent-unit)*var(--indent, 0))}.v-form-item.is-composite{margin-bottom:0}.v-form-item-label{box-sizing:border-box;color:var(--v-form-item-color__label);flex:0 0 auto;font-size:var(--v-form-item-font-size__label);line-height:var(--v-form-item-line-height__label);margin-right:var(--v-form-item-margin-right__label);padding:var(--v-form-item-padding___label);padding-left:calc(var(--v-form-item-padding-left__label-indent-unit)*var(--indent, 0));vertical-align:top;width:var(--v-form-item-width__label)}.v-form-item-label.disabled{color:var(--v-color-font-tier3)}.v-form-item-input .v-form-displayfield{font-size:var(--v-form-item-font-size__textonly);line-height:var(--v-form-item-line-height__value--textonly);padding:var(--v-form-item-padding__value--textonly)}.v-form-item-input .validate-message{color:var(--v-color-red);font-size:var(--v-font-size-small-tier1);line-height:20px;overflow-wrap:break-word;padding:var(--v-form-item-padding__validate-message)}.v-form-item-input .item-description{color:var(--v-form-item-color__description);font-size:var(--v-form-item-font-size__description);line-height:var(--v-form-item-line-height__description);overflow-wrap:break-word;padding:var(--v-form-item-padding__description)}.v-form-item-input .item-description.disabled{color:var(--v-color-font-tier3)}.v-form-horizontal .v-form-item,.v-form-horizontal .v-form-multi-wrapper{align-items:flex-start;flex-direction:row}.v-form-vertical .v-form-item,.v-form-vertical .v-form-multi-wrapper{flex-direction:column;margin-bottom:var(--v-form-item-margin-bottom--vertical);padding-left:calc(var(--v-form-item-padding-left__label-indent-unit)*var(--indent, 0))}.v-form-vertical .v-form-item.is-composite{margin-bottom:0}.v-form-vertical .v-form-multi-wrapper{align-items:stretch}.v-form-vertical .v-form-multi-wrapper .v-form-multi-item{width:100%}.v-form-vertical .v-form-item-label{padding-left:0;width:100%}.v-form-vertical .v-table-wrapper .mobile-row-card-wrapper .mobile-value .v-form-item{--v-form-item-margin-bottom--vertical:0}.v-form-multi-wrapper{--v-form-item-margin-bottom:8px;--v-form-item-margin-bottom--vertical:8px;--v-form-item-margin-right__label:10px;--v-form-item-color__label:#2e3032;--v-form-item-line-height__label:20px;--v-form-item-line-height__value--textonly:20px;--v-form-item-font-size__label:13px;--v-form-item-font-size__textonly:13px;--v-form-item-padding___label:5px 0;--v-form-item-padding__value--textonly:5px 0;--v-form-item-padding__validate-message:5px 0;--v-form-item-padding-left__label-indent-unit:28px;--v-form-item-font-size__description:13px;--v-form-item-color__description:var(--v-color-font-tier1);--v-form-item-line-height__description:20px;--v-form-item-padding__description:5px 0;--v-form-item-width__label:150px;--v-form-multiple-item-gap--none:0px;--v-form-multiple-item-gap--small:6px;--v-form-multiple-item-gap--large:8px;align-items:flex-start;display:flex;margin-bottom:var(--v-form-item-margin-bottom)}.v-form-multi-wrapper.hide-label{padding-left:calc(var(--v-form-item-padding-left__label-indent-unit)*var(--indent, 0))}.v-form-multi-wrapper.flex-form-multiple-item .v-form-multi-item-wrapper{flex:1 1 auto}.v-form-multi-wrapper.flex-form-multiple-item .v-form-multi-item-wrapper .v-form-multi-item{width:100%}.v-form-multi-wrapper .v-form-multi-item{display:inline-flex;flex-direction:row;flex-wrap:nowrap;justify-content:flex-start}.v-form-multi-wrapper .v-form-multi-item.small{gap:var(--v-form-multiple-item-gap--small)}.v-form-multi-wrapper .v-form-multi-item.large{gap:var(--v-form-multiple-item-gap--large)}.v-form-multi-wrapper .v-form-multi-item.none{gap:var(--v-form-multiple-item-gap--none)}.v-form-multi-wrapper .v-form-multi-item .v-row{flex:1 1 auto}.v-form-incremental-wrapper.v-form-multi-wrapper{width:100%}.v-form-incremental-wrapper.v-form-multi-wrapper .v-form-multi-item-wrapper{display:flex;flex:1 1 auto;flex-direction:column}.v-form-incremental-wrapper.v-form-multi-wrapper .v-form-multi-item-wrapper .v-form-multi-item{flex-direction:column}.v-form-incremental-wrapper.v-form-multi-wrapper .v-form-incremental-row{margin-bottom:6px}.v-highlight-box{--v-highlight-box-width:100%;--v-highlight-box-height:100%;--v-highlight-box-border-radius:var(--v-border-radius-300);--v-highlight-box-blue:#0099e61a;--v-highlight-box-grey:#99b1cc1a;--v-highlight-box-padding__inner:10px 20px;--v-highlight-box-custom:false;border-radius:var(--v-highlight-box-border-radius);height:var(--v-highlight-box-height);width:var(--v-highlight-box-width)}.v-highlight-box .v-highlight-box-inner{padding:var(--v-highlight-box-padding__inner)}.v-highlight-box.v-highlight-box-blue{background-color:var(--v-highlight-box-blue)}.v-highlight-box.v-highlight-box-grey{background-color:var(--v-highlight-box-grey)}.v-icon{--v-icon-width--normal:24px;--v-icon-height--normal:24px;--v-icon-width--thin-rect:12px;--v-icon-height--thin-rect:24px;--v-icon-set-set01-normal:#56585a;--v-icon-set-set01-hover:#56585a;--v-icon-set-set01-active:#56585a;--v-icon-set-set01-fill-opacity--normal:1;--v-icon-set-set01-fill-opacity--hover:1;--v-icon-set-set01-fill-opacity--active:1;--v-icon-set-set02-normal:#fff;--v-icon-set-set02-hover:#fff;--v-icon-set-set02-active:#fff;--v-icon-set-set02-fill-opacity--normal:1;--v-icon-set-set02-fill-opacity--hover:1;--v-icon-set-set02-fill-opacity--active:1;--v-icon-set-set03-normal:var(--v-color-action-normal);--v-icon-set-set03-hover:var(--v-color-action-normal);--v-icon-set-set03-active:var(--v-color-action-normal);--v-icon-set-set03-fill-opacity--normal:1;--v-icon-set-set03-fill-opacity--hover:1;--v-icon-set-set03-fill-opacity--active:1;--v-icon-set-set04-normal:var(--v-color-red);--v-icon-set-set04-hover:var(--v-color-red);--v-icon-set-set04-active:var(--v-color-red);--v-icon-set-set04-fill-opacity--normal:1;--v-icon-set-set04-fill-opacity--hover:1;--v-icon-set-set04-fill-opacity--active:1;--v-icon-set-set05-normal:#56585a;--v-icon-set-set05-hover:#56585a;--v-icon-set-set05-active:#56585a;--v-icon-set-set05-fill-opacity--normal:0.9;--v-icon-set-set05-fill-opacity--hover:0.9;--v-icon-set-set05-fill-opacity--active:0.9;--v-icon-set-set06-normal:#56585a;--v-icon-set-set06-hover:#56585a;--v-icon-set-set06-active:#56585a;--v-icon-set-set06-fill-opacity--normal:0.75;--v-icon-set-set06-fill-opacity--hover:0.75;--v-icon-set-set06-fill-opacity--active:0.75;--v-icon-set-set11-normal:#56585a;--v-icon-set-set11-hover:#56585a;--v-icon-set-set11-active:#fff;--v-icon-set-set11-fill-opacity--normal:1;--v-icon-set-set11-fill-opacity--hover:1;--v-icon-set-set11-fill-opacity--active:1;--v-icon-set-set12-normal:#56585a;--v-icon-set-set12-hover:#56585a;--v-icon-set-set12-active:var(--v-color-action-normal);--v-icon-set-set12-fill-opacity--normal:1;--v-icon-set-set12-fill-opacity--hover:1;--v-icon-set-set12-fill-opacity--active:1;--v-icon-set-set13-normal:#56585a;--v-icon-set-set13-hover:var(--v-color-action-normal);--v-icon-set-set13-active:var(--v-color-action-normal);--v-icon-set-set13-fill-opacity--normal:1;--v-icon-set-set13-fill-opacity--hover:1;--v-icon-set-set13-fill-opacity--active:1;--v-icon-set-set14-normal:#56585a;--v-icon-set-set14-hover:var(--v-color-action-normal);--v-icon-set-set14-active:var(--v-color-action-active);--v-icon-set-set14-fill-opacity--normal:1;--v-icon-set-set14-fill-opacity--hover:1;--v-icon-set-set14-fill-opacity--active:1;--v-icon-set-set15-normal:var(--v-color-action-normal);--v-icon-set-set15-hover:var(--v-color-action-hover);--v-icon-set-set15-active:var(--v-color-action-active);--v-icon-set-set15-fill-opacity--normal:1;--v-icon-set-set15-fill-opacity--hover:1;--v-icon-set-set15-fill-opacity--active:1;--v-icon-set-set16-normal:#56585a;--v-icon-set-set16-hover:var(--v-color-action-normal);--v-icon-set-set16-active:var(--v-color-action-hover);--v-icon-set-set16-fill-opacity--normal:0.6;--v-icon-set-set16-fill-opacity--hover:1;--v-icon-set-set16-fill-opacity--active:1;--v-icon-set-set17-normal:#56585a;--v-icon-set-set17-hover:#56585a;--v-icon-set-set17-active:var(--v-color-action-normal);--v-icon-set-set17-fill-opacity--normal:0.5;--v-icon-set-set17-fill-opacity--hover:1;--v-icon-set-set17-fill-opacity--active:1;--v-icon-set-set21-normal:#56585a;--v-icon-set-set21-hover:#56585a;--v-icon-set-set21-active:#56585a;--v-icon-set-set21-fill-opacity--normal:0.6;--v-icon-set-set21-fill-opacity--hover:0.85;--v-icon-set-set21-fill-opacity--active:1;--v-icon-set-set22-normal:#56585a;--v-icon-set-set22-hover:var(--v-color-red);--v-icon-set-set22-active:var(--v-color-red);--v-icon-set-set22-fill-opacity--normal:1;--v-icon-set-set22-fill-opacity--hover:1;--v-icon-set-set22-fill-opacity--active:1;--v-icon-set-set23-normal:#fff;--v-icon-set-set23-hover:#fff;--v-icon-set-set23-active:#fff;--v-icon-set-set23-fill-opacity--normal:0.7;--v-icon-set-set23-fill-opacity--hover:0.85;--v-icon-set-set23-fill-opacity--active:1;--v-icon-set-set24-normal:#fff;--v-icon-set-set24-hover:#fff;--v-icon-set-set24-active:#fff;--v-icon-set-set24-fill-opacity--normal:0.6;--v-icon-set-set24-fill-opacity--hover:0.85;--v-icon-set-set24-fill-opacity--active:1;--v-icon-set-set25-normal:#7c8a98;--v-icon-set-set25-hover:#7c8a98;--v-icon-set-set25-active:#7c8a98;--v-icon-set-set25-fill-opacity--normal:0.4;--v-icon-set-set25-fill-opacity--hover:0.7;--v-icon-set-set25-fill-opacity--active:1;--v-icon-set-set26-normal:#c6d4e0;--v-icon-set-set26-hover:#b4c1cc;--v-icon-set-set26-active:#b4c1cc;--v-icon-set-set26-fill-opacity--normal:0.8;--v-icon-set-set26-fill-opacity--hover:1;--v-icon-set-set26-fill-opacity--active:1;--v-icon-set-set31-normal:#56585a;--v-icon-set-set31-hover:#56585a;--v-icon-set-set31-active:#56585a;--v-icon-set-set31-fill-opacity--normal:0.5;--v-icon-set-set31-fill-opacity--hover:0.6;--v-icon-set-set31-fill-opacity--active:0.7;--v-icon-set-set32-normal:#414b55;--v-icon-set-set32-hover:#414b55;--v-icon-set-set32-active:#414b55;--v-icon-set-set32-fill-opacity--normal:0.6;--v-icon-set-set32-fill-opacity--hover:1;--v-icon-set-set32-fill-opacity--active:1;--v-icon-set-set33-normal:#56585a;--v-icon-set-set33-hover:var(--v-color-action-normal);--v-icon-set-set33-active:var(--v-color-action-normal);--v-icon-set-set33-fill-opacity--normal:0.5;--v-icon-set-set33-fill-opacity--hover:0.75;--v-icon-set-set33-fill-opacity--active:1;--v-icon-set-set07-normal:var(--v-color-font-tier1);--v-icon-set-set07-hover:var(--v-color-font-tier1);--v-icon-set-set07-active:var(--v-color-font-tier1);--v-icon-set-set07-fill-opacity--normal:1;--v-icon-set-set07-fill-opacity--hover:1;--v-icon-set-set07-fill-opacity--active:1;--v-icon-set-set08-normal:var(--v-color-font-tier2);--v-icon-set-set08-hover:var(--v-color-font-tier2);--v-icon-set-set08-active:var(--v-color-font-tier2);--v-icon-set-set08-fill-opacity--normal:1;--v-icon-set-set08-fill-opacity--hover:1;--v-icon-set-set08-fill-opacity--active:1;--v-icon-set-set09-normal:var(--v-color-font-tier3);--v-icon-set-set09-hover:var(--v-color-font-tier3);--v-icon-set-set09-active:var(--v-color-font-tier3);--v-icon-set-set09-fill-opacity--normal:1;--v-icon-set-set09-fill-opacity--hover:1;--v-icon-set-set09-fill-opacity--active:1;display:inline-block;flex-shrink:0;line-height:0;vertical-align:top}.v-icon.v-icon-size-normal{height:var(--v-icon-height--normal);width:var(--v-icon-width--normal)}.v-icon.v-icon-size-thin-rect{height:var(--v-icon-height--thin-rect);width:var(--v-icon-width--thin-rect)}.v-icon.disabled{cursor:default}.v-icon.icon-set01{color:var(--v-icon-set-set01-normal);fill-opacity:var(--v-icon-set-set01-fill-opacity--normal);--normal:var(--v-icon-set-set01-normal);--fill-opacity--normal:var(--v-icon-set-set01-fill-opacity--normal)}.v-icon.icon-set01:not(.disabled){--hover:var(--v-icon-set-set01-hover);--active:var(--v-icon-set-set01-active);--fill-opacity--hover:var(--v-icon-set-set01-fill-opacity--hover);--fill-opacity--active:var(--v-icon-set-set01-fill-opacity--active)}.v-icon.icon-set01:not(.disabled):hover{color:var(--v-icon-set-set01-hover);fill-opacity:var(--v-icon-set-set01-fill-opacity--hover)}.v-icon.icon-set01:not(.disabled):active{color:var(--v-icon-set-set01-active);fill-opacity:var(--v-icon-set-set01-fill-opacity--active)}.v-icon.icon-set02{color:var(--v-icon-set-set02-normal);fill-opacity:var(--v-icon-set-set02-fill-opacity--normal);--normal:var(--v-icon-set-set02-normal);--fill-opacity--normal:var(--v-icon-set-set02-fill-opacity--normal)}.v-icon.icon-set02:not(.disabled){--hover:var(--v-icon-set-set02-hover);--active:var(--v-icon-set-set02-active);--fill-opacity--hover:var(--v-icon-set-set02-fill-opacity--hover);--fill-opacity--active:var(--v-icon-set-set02-fill-opacity--active)}.v-icon.icon-set02:not(.disabled):hover{color:var(--v-icon-set-set02-hover);fill-opacity:var(--v-icon-set-set02-fill-opacity--hover)}.v-icon.icon-set02:not(.disabled):active{color:var(--v-icon-set-set02-active);fill-opacity:var(--v-icon-set-set02-fill-opacity--active)}.v-icon.icon-set03{color:var(--v-icon-set-set03-normal);fill-opacity:var(--v-icon-set-set03-fill-opacity--normal);--normal:var(--v-icon-set-set03-normal);--fill-opacity--normal:var(--v-icon-set-set03-fill-opacity--normal)}.v-icon.icon-set03:not(.disabled){--hover:var(--v-icon-set-set03-hover);--active:var(--v-icon-set-set03-active);--fill-opacity--hover:var(--v-icon-set-set03-fill-opacity--hover);--fill-opacity--active:var(--v-icon-set-set03-fill-opacity--active)}.v-icon.icon-set03:not(.disabled):hover{color:var(--v-icon-set-set03-hover);fill-opacity:var(--v-icon-set-set03-fill-opacity--hover)}.v-icon.icon-set03:not(.disabled):active{color:var(--v-icon-set-set03-active);fill-opacity:var(--v-icon-set-set03-fill-opacity--active)}.v-icon.icon-set04{color:var(--v-icon-set-set04-normal);fill-opacity:var(--v-icon-set-set04-fill-opacity--normal);--normal:var(--v-icon-set-set04-normal);--fill-opacity--normal:var(--v-icon-set-set04-fill-opacity--normal)}.v-icon.icon-set04:not(.disabled){--hover:var(--v-icon-set-set04-hover);--active:var(--v-icon-set-set04-active);--fill-opacity--hover:var(--v-icon-set-set04-fill-opacity--hover);--fill-opacity--active:var(--v-icon-set-set04-fill-opacity--active)}.v-icon.icon-set04:not(.disabled):hover{color:var(--v-icon-set-set04-hover);fill-opacity:var(--v-icon-set-set04-fill-opacity--hover)}.v-icon.icon-set04:not(.disabled):active{color:var(--v-icon-set-set04-active);fill-opacity:var(--v-icon-set-set04-fill-opacity--active)}.v-icon.icon-set05{color:var(--v-icon-set-set05-normal);fill-opacity:var(--v-icon-set-set05-fill-opacity--normal);--normal:var(--v-icon-set-set05-normal);--fill-opacity--normal:var(--v-icon-set-set05-fill-opacity--normal)}.v-icon.icon-set05:not(.disabled){--hover:var(--v-icon-set-set05-hover);--active:var(--v-icon-set-set05-active);--fill-opacity--hover:var(--v-icon-set-set05-fill-opacity--hover);--fill-opacity--active:var(--v-icon-set-set05-fill-opacity--active)}.v-icon.icon-set05:not(.disabled):hover{color:var(--v-icon-set-set05-hover);fill-opacity:var(--v-icon-set-set05-fill-opacity--hover)}.v-icon.icon-set05:not(.disabled):active{color:var(--v-icon-set-set05-active);fill-opacity:var(--v-icon-set-set05-fill-opacity--active)}.v-icon.icon-set06{color:var(--v-icon-set-set06-normal);fill-opacity:var(--v-icon-set-set06-fill-opacity--normal);--normal:var(--v-icon-set-set06-normal);--fill-opacity--normal:var(--v-icon-set-set06-fill-opacity--normal)}.v-icon.icon-set06:not(.disabled){--hover:var(--v-icon-set-set06-hover);--active:var(--v-icon-set-set06-active);--fill-opacity--hover:var(--v-icon-set-set06-fill-opacity--hover);--fill-opacity--active:var(--v-icon-set-set06-fill-opacity--active)}.v-icon.icon-set06:not(.disabled):hover{color:var(--v-icon-set-set06-hover);fill-opacity:var(--v-icon-set-set06-fill-opacity--hover)}.v-icon.icon-set06:not(.disabled):active{color:var(--v-icon-set-set06-active);fill-opacity:var(--v-icon-set-set06-fill-opacity--active)}.v-icon.icon-set11{color:var(--v-icon-set-set11-normal);fill-opacity:var(--v-icon-set-set11-fill-opacity--normal);--normal:var(--v-icon-set-set11-normal);--fill-opacity--normal:var(--v-icon-set-set11-fill-opacity--normal)}.v-icon.icon-set11:not(.disabled){--hover:var(--v-icon-set-set11-hover);--active:var(--v-icon-set-set11-active);--fill-opacity--hover:var(--v-icon-set-set11-fill-opacity--hover);--fill-opacity--active:var(--v-icon-set-set11-fill-opacity--active)}.v-icon.icon-set11:not(.disabled):hover{color:var(--v-icon-set-set11-hover);fill-opacity:var(--v-icon-set-set11-fill-opacity--hover)}.v-icon.icon-set11:not(.disabled):active{color:var(--v-icon-set-set11-active);fill-opacity:var(--v-icon-set-set11-fill-opacity--active)}.v-icon.icon-set12{color:var(--v-icon-set-set12-normal);fill-opacity:var(--v-icon-set-set12-fill-opacity--normal);--normal:var(--v-icon-set-set12-normal);--fill-opacity--normal:var(--v-icon-set-set12-fill-opacity--normal)}.v-icon.icon-set12:not(.disabled){--hover:var(--v-icon-set-set12-hover);--active:var(--v-icon-set-set12-active);--fill-opacity--hover:var(--v-icon-set-set12-fill-opacity--hover);--fill-opacity--active:var(--v-icon-set-set12-fill-opacity--active)}.v-icon.icon-set12:not(.disabled):hover{color:var(--v-icon-set-set12-hover);fill-opacity:var(--v-icon-set-set12-fill-opacity--hover)}.v-icon.icon-set12:not(.disabled):active{color:var(--v-icon-set-set12-active);fill-opacity:var(--v-icon-set-set12-fill-opacity--active)}.v-icon.icon-set13{color:var(--v-icon-set-set13-normal);fill-opacity:var(--v-icon-set-set13-fill-opacity--normal);--normal:var(--v-icon-set-set13-normal);--fill-opacity--normal:var(--v-icon-set-set13-fill-opacity--normal)}.v-icon.icon-set13:not(.disabled){--hover:var(--v-icon-set-set13-hover);--active:var(--v-icon-set-set13-active);--fill-opacity--hover:var(--v-icon-set-set13-fill-opacity--hover);--fill-opacity--active:var(--v-icon-set-set13-fill-opacity--active)}.v-icon.icon-set13:not(.disabled):hover{color:var(--v-icon-set-set13-hover);fill-opacity:var(--v-icon-set-set13-fill-opacity--hover)}.v-icon.icon-set13:not(.disabled):active{color:var(--v-icon-set-set13-active);fill-opacity:var(--v-icon-set-set13-fill-opacity--active)}.v-icon.icon-set14{color:var(--v-icon-set-set14-normal);fill-opacity:var(--v-icon-set-set14-fill-opacity--normal);--normal:var(--v-icon-set-set14-normal);--fill-opacity--normal:var(--v-icon-set-set14-fill-opacity--normal)}.v-icon.icon-set14:not(.disabled){--hover:var(--v-icon-set-set14-hover);--active:var(--v-icon-set-set14-active);--fill-opacity--hover:var(--v-icon-set-set14-fill-opacity--hover);--fill-opacity--active:var(--v-icon-set-set14-fill-opacity--active)}.v-icon.icon-set14:not(.disabled):hover{color:var(--v-icon-set-set14-hover);fill-opacity:var(--v-icon-set-set14-fill-opacity--hover)}.v-icon.icon-set14:not(.disabled):active{color:var(--v-icon-set-set14-active);fill-opacity:var(--v-icon-set-set14-fill-opacity--active)}.v-icon.icon-set15{color:var(--v-icon-set-set15-normal);fill-opacity:var(--v-icon-set-set15-fill-opacity--normal);--normal:var(--v-icon-set-set15-normal);--fill-opacity--normal:var(--v-icon-set-set15-fill-opacity--normal)}.v-icon.icon-set15:not(.disabled){--hover:var(--v-icon-set-set15-hover);--active:var(--v-icon-set-set15-active);--fill-opacity--hover:var(--v-icon-set-set15-fill-opacity--hover);--fill-opacity--active:var(--v-icon-set-set15-fill-opacity--active)}.v-icon.icon-set15:not(.disabled):hover{color:var(--v-icon-set-set15-hover);fill-opacity:var(--v-icon-set-set15-fill-opacity--hover)}.v-icon.icon-set15:not(.disabled):active{color:var(--v-icon-set-set15-active);fill-opacity:var(--v-icon-set-set15-fill-opacity--active)}.v-icon.icon-set16{color:var(--v-icon-set-set16-normal);fill-opacity:var(--v-icon-set-set16-fill-opacity--normal);--normal:var(--v-icon-set-set16-normal);--fill-opacity--normal:var(--v-icon-set-set16-fill-opacity--normal)}.v-icon.icon-set16:not(.disabled){--hover:var(--v-icon-set-set16-hover);--active:var(--v-icon-set-set16-active);--fill-opacity--hover:var(--v-icon-set-set16-fill-opacity--hover);--fill-opacity--active:var(--v-icon-set-set16-fill-opacity--active)}.v-icon.icon-set16:not(.disabled):hover{color:var(--v-icon-set-set16-hover);fill-opacity:var(--v-icon-set-set16-fill-opacity--hover)}.v-icon.icon-set16:not(.disabled):active{color:var(--v-icon-set-set16-active);fill-opacity:var(--v-icon-set-set16-fill-opacity--active)}.v-icon.icon-set17{color:var(--v-icon-set-set17-normal);fill-opacity:var(--v-icon-set-set17-fill-opacity--normal);--normal:var(--v-icon-set-set17-normal);--fill-opacity--normal:var(--v-icon-set-set17-fill-opacity--normal)}.v-icon.icon-set17:not(.disabled){--hover:var(--v-icon-set-set17-hover);--active:var(--v-icon-set-set17-active);--fill-opacity--hover:var(--v-icon-set-set17-fill-opacity--hover);--fill-opacity--active:var(--v-icon-set-set17-fill-opacity--active)}.v-icon.icon-set17:not(.disabled):hover{color:var(--v-icon-set-set17-hover);fill-opacity:var(--v-icon-set-set17-fill-opacity--hover)}.v-icon.icon-set17:not(.disabled):active{color:var(--v-icon-set-set17-active);fill-opacity:var(--v-icon-set-set17-fill-opacity--active)}.v-icon.icon-set21{color:var(--v-icon-set-set21-normal);fill-opacity:var(--v-icon-set-set21-fill-opacity--normal);--normal:var(--v-icon-set-set21-normal);--fill-opacity--normal:var(--v-icon-set-set21-fill-opacity--normal)}.v-icon.icon-set21:not(.disabled){--hover:var(--v-icon-set-set21-hover);--active:var(--v-icon-set-set21-active);--fill-opacity--hover:var(--v-icon-set-set21-fill-opacity--hover);--fill-opacity--active:var(--v-icon-set-set21-fill-opacity--active)}.v-icon.icon-set21:not(.disabled):hover{color:var(--v-icon-set-set21-hover);fill-opacity:var(--v-icon-set-set21-fill-opacity--hover)}.v-icon.icon-set21:not(.disabled):active{color:var(--v-icon-set-set21-active);fill-opacity:var(--v-icon-set-set21-fill-opacity--active)}.v-icon.icon-set22{color:var(--v-icon-set-set22-normal);fill-opacity:var(--v-icon-set-set22-fill-opacity--normal);--normal:var(--v-icon-set-set22-normal);--fill-opacity--normal:var(--v-icon-set-set22-fill-opacity--normal)}.v-icon.icon-set22:not(.disabled){--hover:var(--v-icon-set-set22-hover);--active:var(--v-icon-set-set22-active);--fill-opacity--hover:var(--v-icon-set-set22-fill-opacity--hover);--fill-opacity--active:var(--v-icon-set-set22-fill-opacity--active)}.v-icon.icon-set22:not(.disabled):hover{color:var(--v-icon-set-set22-hover);fill-opacity:var(--v-icon-set-set22-fill-opacity--hover)}.v-icon.icon-set22:not(.disabled):active{color:var(--v-icon-set-set22-active);fill-opacity:var(--v-icon-set-set22-fill-opacity--active)}.v-icon.icon-set23{color:var(--v-icon-set-set23-normal);fill-opacity:var(--v-icon-set-set23-fill-opacity--normal);--normal:var(--v-icon-set-set23-normal);--fill-opacity--normal:var(--v-icon-set-set23-fill-opacity--normal)}.v-icon.icon-set23:not(.disabled){--hover:var(--v-icon-set-set23-hover);--active:var(--v-icon-set-set23-active);--fill-opacity--hover:var(--v-icon-set-set23-fill-opacity--hover);--fill-opacity--active:var(--v-icon-set-set23-fill-opacity--active)}.v-icon.icon-set23:not(.disabled):hover{color:var(--v-icon-set-set23-hover);fill-opacity:var(--v-icon-set-set23-fill-opacity--hover)}.v-icon.icon-set23:not(.disabled):active{color:var(--v-icon-set-set23-active);fill-opacity:var(--v-icon-set-set23-fill-opacity--active)}.v-icon.icon-set24{color:var(--v-icon-set-set24-normal);fill-opacity:var(--v-icon-set-set24-fill-opacity--normal);--normal:var(--v-icon-set-set24-normal);--fill-opacity--normal:var(--v-icon-set-set24-fill-opacity--normal)}.v-icon.icon-set24:not(.disabled){--hover:var(--v-icon-set-set24-hover);--active:var(--v-icon-set-set24-active);--fill-opacity--hover:var(--v-icon-set-set24-fill-opacity--hover);--fill-opacity--active:var(--v-icon-set-set24-fill-opacity--active)}.v-icon.icon-set24:not(.disabled):hover{color:var(--v-icon-set-set24-hover);fill-opacity:var(--v-icon-set-set24-fill-opacity--hover)}.v-icon.icon-set24:not(.disabled):active{color:var(--v-icon-set-set24-active);fill-opacity:var(--v-icon-set-set24-fill-opacity--active)}.v-icon.icon-set25{color:var(--v-icon-set-set25-normal);fill-opacity:var(--v-icon-set-set25-fill-opacity--normal);--normal:var(--v-icon-set-set25-normal);--fill-opacity--normal:var(--v-icon-set-set25-fill-opacity--normal)}.v-icon.icon-set25:not(.disabled){--hover:var(--v-icon-set-set25-hover);--active:var(--v-icon-set-set25-active);--fill-opacity--hover:var(--v-icon-set-set25-fill-opacity--hover);--fill-opacity--active:var(--v-icon-set-set25-fill-opacity--active)}.v-icon.icon-set25:not(.disabled):hover{color:var(--v-icon-set-set25-hover);fill-opacity:var(--v-icon-set-set25-fill-opacity--hover)}.v-icon.icon-set25:not(.disabled):active{color:var(--v-icon-set-set25-active);fill-opacity:var(--v-icon-set-set25-fill-opacity--active)}.v-icon.icon-set26{color:var(--v-icon-set-set26-normal);fill-opacity:var(--v-icon-set-set26-fill-opacity--normal);--normal:var(--v-icon-set-set26-normal);--fill-opacity--normal:var(--v-icon-set-set26-fill-opacity--normal)}.v-icon.icon-set26:not(.disabled){--hover:var(--v-icon-set-set26-hover);--active:var(--v-icon-set-set26-active);--fill-opacity--hover:var(--v-icon-set-set26-fill-opacity--hover);--fill-opacity--active:var(--v-icon-set-set26-fill-opacity--active)}.v-icon.icon-set26:not(.disabled):hover{color:var(--v-icon-set-set26-hover);fill-opacity:var(--v-icon-set-set26-fill-opacity--hover)}.v-icon.icon-set26:not(.disabled):active{color:var(--v-icon-set-set26-active);fill-opacity:var(--v-icon-set-set26-fill-opacity--active)}.v-icon.icon-set31{color:var(--v-icon-set-set31-normal);fill-opacity:var(--v-icon-set-set31-fill-opacity--normal);--normal:var(--v-icon-set-set31-normal);--fill-opacity--normal:var(--v-icon-set-set31-fill-opacity--normal)}.v-icon.icon-set31:not(.disabled){--hover:var(--v-icon-set-set31-hover);--active:var(--v-icon-set-set31-active);--fill-opacity--hover:var(--v-icon-set-set31-fill-opacity--hover);--fill-opacity--active:var(--v-icon-set-set31-fill-opacity--active)}.v-icon.icon-set31:not(.disabled):hover{color:var(--v-icon-set-set31-hover);fill-opacity:var(--v-icon-set-set31-fill-opacity--hover)}.v-icon.icon-set31:not(.disabled):active{color:var(--v-icon-set-set31-active);fill-opacity:var(--v-icon-set-set31-fill-opacity--active)}.v-icon.icon-set32{color:var(--v-icon-set-set32-normal);fill-opacity:var(--v-icon-set-set32-fill-opacity--normal);--normal:var(--v-icon-set-set32-normal);--fill-opacity--normal:var(--v-icon-set-set32-fill-opacity--normal)}.v-icon.icon-set32:not(.disabled){--hover:var(--v-icon-set-set32-hover);--active:var(--v-icon-set-set32-active);--fill-opacity--hover:var(--v-icon-set-set32-fill-opacity--hover);--fill-opacity--active:var(--v-icon-set-set32-fill-opacity--active)}.v-icon.icon-set32:not(.disabled):hover{color:var(--v-icon-set-set32-hover);fill-opacity:var(--v-icon-set-set32-fill-opacity--hover)}.v-icon.icon-set32:not(.disabled):active{color:var(--v-icon-set-set32-active);fill-opacity:var(--v-icon-set-set32-fill-opacity--active)}.v-icon.icon-set33{color:var(--v-icon-set-set33-normal);fill-opacity:var(--v-icon-set-set33-fill-opacity--normal);--normal:var(--v-icon-set-set33-normal);--fill-opacity--normal:var(--v-icon-set-set33-fill-opacity--normal)}.v-icon.icon-set33:not(.disabled){--hover:var(--v-icon-set-set33-hover);--active:var(--v-icon-set-set33-active);--fill-opacity--hover:var(--v-icon-set-set33-fill-opacity--hover);--fill-opacity--active:var(--v-icon-set-set33-fill-opacity--active)}.v-icon.icon-set33:not(.disabled):hover{color:var(--v-icon-set-set33-hover);fill-opacity:var(--v-icon-set-set33-fill-opacity--hover)}.v-icon.icon-set33:not(.disabled):active{color:var(--v-icon-set-set33-active);fill-opacity:var(--v-icon-set-set33-fill-opacity--active)}.v-icon.icon-set07{color:var(--v-icon-set-set07-normal);fill-opacity:var(--v-icon-set-set07-fill-opacity--normal);--normal:var(--v-icon-set-set07-normal);--fill-opacity--normal:var(--v-icon-set-set07-fill-opacity--normal)}.v-icon.icon-set07:not(.disabled){--hover:var(--v-icon-set-set07-hover);--active:var(--v-icon-set-set07-active);--fill-opacity--hover:var(--v-icon-set-set07-fill-opacity--hover);--fill-opacity--active:var(--v-icon-set-set07-fill-opacity--active)}.v-icon.icon-set07:not(.disabled):hover{color:var(--v-icon-set-set07-hover);fill-opacity:var(--v-icon-set-set07-fill-opacity--hover)}.v-icon.icon-set07:not(.disabled):active{color:var(--v-icon-set-set07-active);fill-opacity:var(--v-icon-set-set07-fill-opacity--active)}.v-icon.icon-set08{color:var(--v-icon-set-set08-normal);fill-opacity:var(--v-icon-set-set08-fill-opacity--normal);--normal:var(--v-icon-set-set08-normal);--fill-opacity--normal:var(--v-icon-set-set08-fill-opacity--normal)}.v-icon.icon-set08:not(.disabled){--hover:var(--v-icon-set-set08-hover);--active:var(--v-icon-set-set08-active);--fill-opacity--hover:var(--v-icon-set-set08-fill-opacity--hover);--fill-opacity--active:var(--v-icon-set-set08-fill-opacity--active)}.v-icon.icon-set08:not(.disabled):hover{color:var(--v-icon-set-set08-hover);fill-opacity:var(--v-icon-set-set08-fill-opacity--hover)}.v-icon.icon-set08:not(.disabled):active{color:var(--v-icon-set-set08-active);fill-opacity:var(--v-icon-set-set08-fill-opacity--active)}.v-icon.icon-set09{color:var(--v-icon-set-set09-normal);fill-opacity:var(--v-icon-set-set09-fill-opacity--normal);--normal:var(--v-icon-set-set09-normal);--fill-opacity--normal:var(--v-icon-set-set09-fill-opacity--normal)}.v-icon.icon-set09:not(.disabled){--hover:var(--v-icon-set-set09-hover);--active:var(--v-icon-set-set09-active);--fill-opacity--hover:var(--v-icon-set-set09-fill-opacity--hover);--fill-opacity--active:var(--v-icon-set-set09-fill-opacity--active)}.v-icon.icon-set09:not(.disabled):hover{color:var(--v-icon-set-set09-hover);fill-opacity:var(--v-icon-set-set09-fill-opacity--hover)}.v-icon.icon-set09:not(.disabled):active{color:var(--v-icon-set-set09-active);fill-opacity:var(--v-icon-set-set09-fill-opacity--active)}.info-board-wrapper{--v-info-board-min-height:34px;--v-info-board-border-bottom__indicator:1px solid var(--v-color-border-tier2);--v-info-board-border-bottom__indicator--enabled-hover:1px solid var(--v-color-border-draggable-tier1);--v-info-board-border-bottom__indicator--enabled-active:1px solid var(--v-color-border-tier2);--v-info-board-height__ghost:5px;--v-info-board-bottom__ghost:-3px;--v-info-board-margin-top__board-title:5px;--v-info-board-margin-left__title:8px;--v-info-board-line-height__title:var(--v-line-height-100);--v-info-board-padding__title:4px 0;--v-info-board-font-size__title:var(--v-font-size-tier1);--v-info-board-font-weight__title:var(--v-font-weight-bold);--v-info-board-margin__icon:0 8px 0 12px;--v-info-board-color__content--empty:var(--v-color-font-tier2);--v-info-board-padding-top__tabs:8px;--v-info-board-height__dragging-indicator:1px;--v-info-board-bkg-color__dragging-indicator:var(--v-color-border-draggable-default);--v-info-board-custom:false;box-sizing:border-box;display:flex;flex:0 0 auto;flex-direction:column;min-height:var(--v-info-board-min-height);position:relative}.info-board-wrapper .info-board-indicator{border-bottom:var(--v-info-board-border-bottom__indicator);display:block;left:0;position:relative;top:0}.info-board-wrapper .info-board-indicator.enabled{cursor:row-resize}.info-board-wrapper .info-board-indicator.enabled:hover{border-bottom:var(--v-info-board-border-bottom__indicator--enabled-hover)}.info-board-wrapper .info-board-indicator.enabled:active{border-bottom:var(--v-info-board-border-bottom__indicator--enabled-active)}.info-board-wrapper .info-board-indicator .ghost{bottom:var(--v-info-board-bottom__ghost);height:var(--v-info-board-height__ghost);position:absolute;width:100%}.info-board-wrapper .board-title{align-items:center;display:flex;flex:0 0 auto;margin-top:var(--v-info-board-margin-top__board-title);overflow:hidden;white-space:nowrap}.info-board-wrapper .board-title .title{flex:1 1 auto;font-size:var(--v-info-board-font-size__title);font-weight:var(--v-info-board-font-weight__title);line-height:var(--v-info-board-line-height__title);margin-left:var(--v-info-board-margin-left__title);overflow:hidden;padding:var(--v-info-board-padding__title);text-overflow:ellipsis}.info-board-wrapper .board-title .info-board-down,.info-board-wrapper .board-title .info-board-up{background-image:image-set(url("webman/3rdparty/Spreadsheet/dist/assets/images/1x/infoboard_arrow.png") 1x,url("webman/3rdparty/Spreadsheet/dist/assets/images/2x/infoboard_arrow.png") 1.5x);background-size:48px;cursor:pointer;display:inline-block;flex:0 0 auto;height:24px;margin:var(--v-info-board-margin__icon);vertical-align:top;width:24px}.info-board-wrapper .board-title .info-board-down:hover,.info-board-wrapper .board-title .info-board-up:hover{background-position-y:-24px}.info-board-wrapper .board-title .info-board-down:active,.info-board-wrapper .board-title .info-board-up:active{background-position-y:-48px}.info-board-wrapper .board-title .info-board-up{background-position-x:0}.info-board-wrapper .board-title .info-board-down{background-position-x:24px}.info-board-wrapper .board-content{flex:1 0 auto}.info-board-wrapper .board-content .empty{align-items:center;color:var(--v-info-board-color__content--empty);display:flex;height:100%;justify-content:center}.info-board-wrapper .board-content .v-tabs{box-sizing:border-box;overflow:hidden;padding-top:var(--v-info-board-padding-top__tabs)}.info-board-dragging-indicator{--v-info-board-min-height:34px;--v-info-board-border-bottom__indicator:1px solid var(--v-color-border-tier2);--v-info-board-border-bottom__indicator--enabled-hover:1px solid var(--v-color-border-draggable-tier1);--v-info-board-border-bottom__indicator--enabled-active:1px solid var(--v-color-border-tier2);--v-info-board-height__ghost:5px;--v-info-board-bottom__ghost:-3px;--v-info-board-margin-top__board-title:5px;--v-info-board-margin-left__title:8px;--v-info-board-line-height__title:var(--v-line-height-100);--v-info-board-padding__title:4px 0;--v-info-board-font-size__title:var(--v-font-size-tier1);--v-info-board-font-weight__title:var(--v-font-weight-bold);--v-info-board-margin__icon:0 8px 0 12px;--v-info-board-color__content--empty:var(--v-color-font-tier2);--v-info-board-padding-top__tabs:8px;--v-info-board-height__dragging-indicator:1px;--v-info-board-bkg-color__dragging-indicator:var(--v-color-border-draggable-default);--v-info-board-custom:false;background-color:var(--v-info-board-bkg-color__dragging-indicator);cursor:row-resize;display:block;height:var(--v-info-board-height__dragging-indicator);position:absolute;z-index:var(--v-z-index-info-board-indicator)}.v-info-mask-wrapper{height:100%;position:relative;width:100%}.v-info-mask{--v-info-mask-bkg-color__mask:#fff9;--v-info-mask-bkg-color__wrapper:var(--v-color-white);--v-info-mask-border__wrapper:1px solid var(--v-color-border-tier2);--v-info-mask-border-width__wrapper:1px;--v-info-mask-border-radius__wrapper:var(--v-border-radius-100);--v-info-mask-font-weight__content:var(--v-font-weight-normal);--v-info-mask-padding-top__content:18px;--v-info-mask-padding-right__content:20px;--v-info-mask-padding-bottom__content:18px;--v-info-mask-padding-left__content:20px;--v-info-mask-max-width__content:640px;--v-info-mask-font-size__content:var(--v-font-size-tier1);--v-info-mask-color__content:var(--v-color-font-tier1);--v-info-mask-line-height__content:var(--v-line-height-100);--v-info-mask-box-shadow:0 2px 8px #00000040;align-items:center;background:var(--v-info-mask-bkg-color__mask);display:flex;flex-direction:column;height:100%;justify-content:center;left:0;position:absolute;top:0;width:100%}.v-info-mask .info-content-wrapper{background-color:var(--v-info-mask-bkg-color__wrapper);border:var(--v-info-mask-border__wrapper);border-radius:var(--v-info-mask-border-radius__wrapper);border-width:var(--v-info-mask-border-width__wrapper);box-shadow:var(--v-info-mask-box-shadow)}.v-info-mask .info-content-wrapper .info-content{box-sizing:border-box;color:var(--v-info-mask-color__content);font-size:var(--v-info-mask-font-size__content);font-weight:var(--v-info-mask-font-weight__content);line-height:var(--v-info-mask-line-height__content);max-width:var(--v-info-mask-max-width__content);padding:calc(var(--v-info-mask-padding-top__content) - var(--v-info-mask-border-width__wrapper)) calc(var(--v-info-mask-padding-right__content) - var(--v-info-mask-border-width__wrapper)) calc(var(--v-info-mask-padding-bottom__content) - var(--v-info-mask-border-width__wrapper)) calc(var(--v-info-mask-padding-left__content) - var(--v-info-mask-border-width__wrapper));-webkit-user-select:none;user-select:none}.v-input-strength-wrapper{--v-input-strength-width__line:100%;--v-input-strength-height__line:4px;--v-input-strength-margin__line:6px 0;--v-input-strength-height:18px;--v-input-strength-margin-top:4px;--v-input-strength-bkg-color__line:#505a6426;--v-input-strength-bkg-color__line--weak:var(--v-color-red);--v-input-strength-bkg-color__line--medium:var(--v-color-orange);--v-input-strength-bkg-color__line--strong:var(--v-color-green);--v-input-strength-color__line--weak:var(--v-color-red);--v-input-strength-color__line--medium:var(--v-color-orange);--v-input-strength-color__line--strong:var(--v-color-green)}.v-input-strength-wrapper .strength-cover{border-radius:var(--v-border-radius-100);height:var(--v-input-strength-height__line);transition:width .1s ease-in-out,color .1s ease-in-out;width:0}.v-input-strength-wrapper.weak .strength-text{color:var(--v-input-strength-color__line--weak)}.v-input-strength-wrapper.weak .strength-cover{background-color:var(--v-input-strength-bkg-color__line--weak);width:33%}.v-input-strength-wrapper.medium .strength-text{color:var(--v-input-strength-color__line--medium)}.v-input-strength-wrapper.medium .strength-cover{background-color:var(--v-input-strength-bkg-color__line--medium);width:66%}.v-input-strength-wrapper.strong .strength-text{color:var(--v-input-strength-color__line--strong)}.v-input-strength-wrapper.strong .strength-cover{background-color:var(--v-input-strength-bkg-color__line--strong);width:100%}.v-input-strength-wrapper .strength-line{background-color:var(--v-input-strength-bkg-color__line);border-radius:var(--v-border-radius-50);height:var(--v-input-strength-height__line);margin:var(--v-input-strength-margin__line);width:var(--v-input-strength-width__line)}.v-input-password-rules{--v-password-rule-color:var(--v-color-font-tier1);--v-password-rule-color__tick-icon--checked:var(--v-color-action-normal);--v-password-rule-opacity__tick-icon--checked:1;--v-password-rule-color__tick-icon:#56585a;--v-password-rule-opacity__tick-icon:0.2;--v-password-rule-margin__tick-icon:2px 0;--v-password-rule-padding__text:4px 0;--v-password-rule-gap__checked-item:6px;--v-password-rule-bkg-color__panel--mobile:#c6d4e02e;--v-password-rule-border-radius__panel--mobile:var(--v-border-radius-200);--v-password-rule-padding__panel--mobile:12px 16px;--v-password-rule-margin__panel--mobile:6px 0 0 0;line-height:var(--v-line-height-100)}.v-input-password-rules .rule-header{padding:var(--v-password-rule-padding__text)}.v-input-password-rules .rule-wrapper .rule-checked-item{align-items:flex-start;display:flex;gap:var(--v-password-rule-gap__checked-item)}.v-input-password-rules .rule-wrapper .rule-checked-item .rule-text{padding:var(--v-password-rule-padding__text)}.v-input-password-rules .rule-wrapper .rule-checked-item .input-password-rule-tick{background-image:image-set(url("webman/3rdparty/Spreadsheet/dist/assets/images/1x/tick.png") 1x,url("webman/3rdparty/Spreadsheet/dist/assets/images/2x/tick.png") 1.5x);background-size:24px;color:var(--v-password-rule-color__tick-icon);fill-opacity:var(--v-password-rule-opacity__tick-icon);margin:var(--v-password-rule-margin__tick-icon)}.v-input-password-rules .rule-wrapper .rule-checked-item.checked .input-password-rule-tick{color:var(--v-password-rule-color__tick-icon--checked);fill-opacity:var(--v-password-rule-opacity__tick-icon--checked);background-position:0 -24px}.v-tooltip-directive.password-info-tip.info{--v-input-password-tip-min-width:200px;--v-input-password-tip-line-height:var(--v-line-height-100);line-height:var(--v-input-password-tip-line-height);min-width:var(--v-input-password-tip-min-width)}.v-textfield-wrapper{--v-input-border-width:1px;--v-input-border:1px solid #d8dadc;--v-input-border-color--hover:#c4c6c8;--v-input-border-color--invalid:#fa899c;--v-input-border-color--focus:var(--d-theme-main-color);--v-input-border-color--disabled:#d8dadc;--v-input-border-radius:3px;--v-input-margin__scrollbar:2px 0 2px 0;--v-input-width__scrollbar:6px;--v-input-width__scrollbar_rail:8px;--v-input-font-size:13px;--v-input-color:#2e3032;--v-input-color__placeholder:#babcbe;--v-input-color--disabled:#babcbe;--v-input-bkg-color:#fff;--v-input-bkg-color--hover:#fff;--v-input-bkg-color--invalid:#fff2f4;--v-input-bkg-color--focus:#fff;--v-input-bkg-color--disabled:#eceef0;--v-input-height:20px;--v-input-padding-right:10px;--v-input-padding-left:10px;--v-input-padding-top:5px;--v-input-padding-bottom:5px;--v-input-padding-right--textarea:18px;--v-input-padding-right--textarea-icon:8px;--v-input-padding-right--icon:4px;--v-input-margin__suffix:0 0 0 6px;--v-input-margin__suffix--icons:0 0 0 4px;--v-input-margin__textarea__suffix:1px 0 0 4px;--v-input-margin__textarea__suffix--icons:1px 0 0 4px;--v-input-gap__suffix:2px;--v-input-margin__prefix:0 6px 0 0;--v-input-font-size__affix:13px;--v-input-color__affix:var(--v-color-font-tier2);--v-input-height__affix:20px;--v-input-opacity__icon--disabled:1;--v-input-opacity__clear-icon:1;--v-input-opacity__clear-icon--hover:1;--v-input-opacity__clear-icon--active:1;--v-input-right__inupt-suffix-icons:4px;--v-input-top__inupt-suffix-icons:0;--v-input-padding-right__input--with-suffix-icons:4px;--v-input-padding-top__textarea-suffix-icons:2px;--v-input-right__textarea-suffix-icons:8px;color:var(--v-input-color);font-size:var(--v-input-font-size);position:relative}.v-textfield-wrapper .input-container{background-color:var(--v-input-bkg-color);border:var(--v-input-border);border-radius:var(--v-input-border-radius);border-width:var(--v-input-border-width);box-sizing:border-box;padding-left:calc(var(--v-input-padding-left) - var(--v-input-border-width));padding-right:calc(var(--v-input-padding-right) - var(--v-input-border-width));vertical-align:top}.v-textfield-wrapper .input-container.textarea{padding-right:calc(var(--v-input-padding-right--textarea) - var(--v-input-border-width))}.v-textfield-wrapper .input-container.textarea.only-suffix-icons{padding-right:calc(var(--v-input-padding-right--textarea-icon) - var(--v-input-border-width))}.v-textfield-wrapper .input-container.only-suffix-icons{padding-right:calc(var(--v-input-padding-right--icon) - var(--v-input-border-width))}.v-textfield-wrapper input[type=number],.v-textfield-wrapper input[type=password],.v-textfield-wrapper input[type=text],.v-textfield-wrapper textarea{border:none;color:var(--v-input-color)}.v-textfield-wrapper input[type=number]::placeholder,.v-textfield-wrapper input[type=password]::placeholder,.v-textfield-wrapper input[type=text]::placeholder,.v-textfield-wrapper textarea::placeholder{color:var(--v-input-color__placeholder)}.v-textfield-wrapper input[type=number]::-ms-clear,.v-textfield-wrapper input[type=number]::-ms-reveal,.v-textfield-wrapper input[type=password]::-ms-clear,.v-textfield-wrapper input[type=password]::-ms-reveal,.v-textfield-wrapper input[type=text]::-ms-clear,.v-textfield-wrapper input[type=text]::-ms-reveal,.v-textfield-wrapper textarea::-ms-clear,.v-textfield-wrapper textarea::-ms-reveal{display:none}.v-textfield-wrapper input[type=number]::-webkit-inner-spin-button{-webkit-appearance:none}.v-textfield-wrapper .v-textfield-input,.v-textfield-wrapper .v-textfield-textarea{background:none;line-height:var(--v-input-height);padding-bottom:calc(var(--v-input-padding-bottom) - var(--v-input-border-width));padding-left:0;padding-right:0;padding-top:calc(var(--v-input-padding-top) - var(--v-input-border-width))}.v-textfield-wrapper .v-textfield-input.fit-container,.v-textfield-wrapper .v-textfield-textarea.fit-container{box-sizing:border-box;height:auto;width:100%}.v-textfield-wrapper .textarea-fake-scrollbar.v-scrollbar{height:100%;position:absolute;right:0;top:0;width:1px}.v-textfield-wrapper .textarea-fake-scrollbar.v-scrollbar .y-rail{margin:var(--v-input-margin__scrollbar);width:var(--v-input-width__scrollbar_rail)}.v-textfield-wrapper .textarea-fake-scrollbar.v-scrollbar .y-bar{width:var(--v-input-width__scrollbar)}.v-textfield-wrapper .v-textfield-textarea-wrapper{align-items:flex-start;display:inline-flex;position:relative;vertical-align:top}.v-textfield-wrapper .v-textfield-textarea-wrapper.fit-container{width:100%}.v-textfield-wrapper .v-textfield-textarea-wrapper .v-textfield-textarea{display:block;line-height:var(--v-input-height);overflow:hidden;resize:none}.v-textfield-wrapper .v-textfield-textarea-wrapper .suffix-wrapper{margin:var(--v-input-margin__textarea__suffix)}.v-textfield-wrapper .v-textfield-textarea-wrapper .suffix-wrapper.has-suffix-icons{margin:var(--v-input-margin__textarea__suffix--icons)}.v-textfield-wrapper .prefix-wrapper{margin:var(--v-input-margin__prefix)}.v-textfield-wrapper .prefix-wrapper,.v-textfield-wrapper .suffix-wrapper{align-items:center;box-sizing:border-box;color:var(--v-input-color__affix);display:inline-flex;font-size:var(--v-input-font-size__affix);line-height:var(--v-input-height__affix);vertical-align:top;white-space:nowrap}.v-textfield-wrapper .suffix-wrapper{gap:var(--v-input-gap__suffix);height:100%;margin:var(--v-input-margin__suffix)}.v-textfield-wrapper .suffix-wrapper.has-suffix-icons{margin:var(--v-input-margin__suffix--icons)}.v-textfield-wrapper .suffix-wrapper .input-clear{background-image:image-set(url("webman/3rdparty/Spreadsheet/dist/assets/images/1x/textfield_bt_clear.png") 1x,url("webman/3rdparty/Spreadsheet/dist/assets/images/2x/textfield_bt_clear.png") 1.5x);background-size:24px;cursor:pointer;display:inline-block;height:24px;opacity:var(--v-input-opacity__clear-icon);vertical-align:top;width:24px}.v-textfield-wrapper .suffix-wrapper .input-clear:hover{opacity:var(--v-input-opacity__clear-icon--hover)}.v-textfield-wrapper .suffix-wrapper .input-clear:active{opacity:var(--v-input-opacity__clear-icon--active)}.v-textfield-wrapper .suffix-wrapper .input-eye,.v-textfield-wrapper .suffix-wrapper .input-eye-slash{background-image:image-set(url("webman/3rdparty/Spreadsheet/dist/assets/images/1x/textfield_bt_show_psw.png") 1x,url("webman/3rdparty/Spreadsheet/dist/assets/images/2x/textfield_bt_show_psw.png") 1.5x);background-position:0 -48px;background-size:24px;cursor:pointer;display:inline-block;height:24px;vertical-align:top;width:24px}.v-textfield-wrapper .suffix-wrapper .input-eye-slash:active,.v-textfield-wrapper .suffix-wrapper .input-eye-slash:hover,.v-textfield-wrapper .suffix-wrapper .input-eye:active,.v-textfield-wrapper .suffix-wrapper .input-eye:hover{background-position:0 -72px}.v-textfield-wrapper .v-textfield-input-wrapper{align-items:center;display:inline-flex;height:100%;position:relative;vertical-align:top;width:100%}.v-textfield-wrapper .v-textfield-input-wrapper.password.mask-password .input-eye,.v-textfield-wrapper .v-textfield-input-wrapper.password.mask-password .input-eye-slash{background-position:0 0}.v-textfield-wrapper .v-textfield-input-wrapper.password.mask-password .input-eye-slash:active,.v-textfield-wrapper .v-textfield-input-wrapper.password.mask-password .input-eye-slash:hover,.v-textfield-wrapper .v-textfield-input-wrapper.password.mask-password .input-eye:active,.v-textfield-wrapper .v-textfield-input-wrapper.password.mask-password .input-eye:hover{background-position:0 -24px}.v-textfield-wrapper:hover:not(.disabled):not(.disabled-hover):not(.focused) .input-container{background-color:var(--v-input-bkg-color--hover);border-color:var(--v-input-border-color--hover)}.has-error .v-textfield-wrapper:hover:not(.disabled):not(.disabled-hover):not(.focused) .input-container{background-color:var(--v-input-bkg-color--invalid);border-color:var(--v-input-border-color--invalid)}.v-textfield-wrapper.focused .input-container{background-color:var(--v-input-bkg-color--focus);border-color:var(--v-input-border-color--focus)}.has-error .v-textfield-wrapper .input-container,.has-error .v-textfield-wrapper:focus .input-container,.has-error .v-textfield-wrapper:hover .input-container{background-color:var(--v-input-bkg-color--invalid);border-color:var(--v-input-border-color--invalid)}.v-textfield-wrapper.disabled .prefix-wrapper,.v-textfield-wrapper.disabled .suffix-wrapper,.v-textfield-wrapper.disabled:focus .prefix-wrapper,.v-textfield-wrapper.disabled:focus .suffix-wrapper,.v-textfield-wrapper.disabled:hover .prefix-wrapper,.v-textfield-wrapper.disabled:hover .suffix-wrapper{color:var(--v-input-color--disabled)}.v-textfield-wrapper.disabled .prefix-wrapper .v-icon,.v-textfield-wrapper.disabled .suffix-wrapper .v-icon,.v-textfield-wrapper.disabled:focus .prefix-wrapper .v-icon,.v-textfield-wrapper.disabled:focus .suffix-wrapper .v-icon,.v-textfield-wrapper.disabled:hover .prefix-wrapper .v-icon,.v-textfield-wrapper.disabled:hover .suffix-wrapper .v-icon{cursor:default;opacity:var(--v-input-opacity__icon--disabled);pointer-events:none}.v-textfield-wrapper.disabled .v-textfield-input,.v-textfield-wrapper.disabled .v-textfield-textarea,.v-textfield-wrapper.disabled:focus .v-textfield-input,.v-textfield-wrapper.disabled:focus .v-textfield-textarea,.v-textfield-wrapper.disabled:hover .v-textfield-input,.v-textfield-wrapper.disabled:hover .v-textfield-textarea{color:var(--v-input-color--disabled);cursor:default;pointer-events:none}.v-textfield-wrapper.disabled .input-container,.v-textfield-wrapper.disabled:focus .input-container,.v-textfield-wrapper.disabled:hover .input-container{background-color:var(--v-input-bkg-color--disabled);border-color:var(--v-input-border-color--disabled)}.v-textfield-wrapper .password-rule-wrapper{--v-password-rule-color:var(--v-color-font-tier1);--v-password-rule-color__tick-icon--checked:var(--v-color-action-normal);--v-password-rule-opacity__tick-icon--checked:1;--v-password-rule-color__tick-icon:#56585a;--v-password-rule-opacity__tick-icon:0.2;--v-password-rule-margin__tick-icon:2px 0;--v-password-rule-padding__text:4px 0;--v-password-rule-gap__checked-item:6px;--v-password-rule-bkg-color__panel--mobile:#c6d4e02e;--v-password-rule-border-radius__panel--mobile:var(--v-border-radius-200);--v-password-rule-padding__panel--mobile:12px 16px;--v-password-rule-margin__panel--mobile:6px 0 0 0;border-radius:var(--v-password-rule-border-radius__panel--mobile);color:var(--v-password-rule-color);line-height:var(--v-line-height-100);margin:var(--v-password-rule-margin__panel--mobile);padding:var(--v-password-rule-padding__panel--mobile);width:auto}.v-input-steppers-wrapper{display:flex;flex-direction:row;--v-input-steppers-line-height:30px;--v-input-steppers-height:30px;--v-input-steppers-font-size:var(--v-font-size-tier1);--v-input-steppers-padding-lr__input:40px;--v-input-steppers-padding-right__input--up-down:29px;--v-input-steppers-padding-left__input--up-down:10px;--v-input-steppers-gap__button--up-down:0;--v-input-steppers-border-width:1px;--v-input-steppers-border:1px solid #d8dadc;--v-input-steppers-border-radius:var(--v-border-radius-200);--v-input-steppers-margin__icon:1px;--v-input-steppers-opacity__icon--disabled:1;--v-input-steppers-bkg-color--disabled:#eceef0;--v-input-steppers-bkg-color--invalid:#fff2f4;--v-input-steppers-border-color--disabled:#d8dadc;--v-input-steppers-border-color--hover:#c4c6c8;--v-input-steppers-border-color--focus:var(--d-theme-main-color);--v-input-steppers-border-color--invalid:#fa899c;--v-input-steppers-color:#2e3032;--v-input-steppers-color--disabled:#babcbe;--v-input-steppers-width__updown-icon:18px;--v-input-steppers-height__updown-icon:14px;align-items:center;border-radius:var(--v-input-steppers-border-radius);box-sizing:border-box;position:relative;z-index:0}.v-input-steppers-wrapper .border-minus-wrapper,.v-input-steppers-wrapper .border-plus-wrapper{align-items:center;display:flex;gap:1px;height:100%;position:absolute}.v-input-steppers-wrapper .border-minus-wrapper{border-left:1px solid #0000;box-sizing:border-box;left:0;top:0}.v-input-steppers-wrapper .border-plus-wrapper{border:1px solid #0000;box-sizing:border-box;right:0;top:0}.v-input-steppers-wrapper .up-down-wrapper{display:flex;flex-direction:row;position:absolute;right:1px;top:1px}.v-input-steppers-wrapper .up-down-icon-wrapper{align-items:center;display:flex;flex-direction:column;gap:var(--v-input-steppers-gap__button--up-down);justify-content:center}.v-input-steppers-wrapper.up-down .number{padding-left:calc(var(--v-input-steppers-padding-left__input--up-down) - var(--v-input-steppers-border-width));padding-right:calc(var(--v-input-steppers-padding-right__input--up-down) - var(--v-input-steppers-border-width));text-align:left}.v-input-steppers-wrapper.up-down .input-steppers-minus,.v-input-steppers-wrapper.up-down .input-steppers-plus{position:relative}.v-input-steppers-wrapper.up-down .input-steppers-minus:before,.v-input-steppers-wrapper.up-down .input-steppers-plus:before{border:1px solid #0000;border-left:none;content:"";display:block;height:100%;position:absolute;right:-1px;top:-1px;width:100%}.v-input-steppers-wrapper.up-down .stepper-border{position:relative}.v-input-steppers-wrapper .number{-webkit-appearance:none;-moz-appearance:textfield;background:#0000;border:var(--v-input-steppers-border);border-radius:var(--v-input-steppers-border-radius);border-width:var(--v-input-steppers-border-width);box-sizing:border-box;color:var(--v-input-steppers-color);flex:0 0 auto;font-size:var(--v-input-steppers-font-size);line-height:calc(var(--v-input-steppers-line-height) - var(--v-input-steppers-border-width)*2);margin:0 auto;padding-left:calc(var(--v-input-steppers-padding-lr__input) - var(--v-input-steppers-border-width));padding-right:calc(var(--v-input-steppers-padding-lr__input) - var(--v-input-steppers-border-width));position:relative;text-align:center;width:100%;z-index:-1}.v-input-steppers-wrapper .number::-webkit-inner-spin-button,.v-input-steppers-wrapper .number::-webkit-outer-spin-button{display:none}.v-input-steppers-wrapper .number:hover{border-color:var(--v-input-steppers-border-color--hover)}.v-input-steppers-wrapper .number:active,.v-input-steppers-wrapper .number:focus,.v-input-steppers-wrapper.show-menu .number{border-color:var(--v-input-steppers-border-color--focus)}.v-input-steppers-wrapper.disabled{background:var(--v-input-steppers-bkg-color--disabled)}.v-input-steppers-wrapper.disabled .number{border-color:var(--v-input-steppers-border-color--disabled);color:var(--v-input-steppers-color--disabled);cursor:default}.has-error .v-input-steppers-wrapper{background:var(--v-input-steppers-bkg-color--invalid)}.has-error .v-input-steppers-wrapper .number{border-color:var(--v-input-steppers-border-color--invalid)}.v-input-steppers-wrapper.up-down .input-steppers-minus,.v-input-steppers-wrapper.up-down .input-steppers-plus{background-image:image-set(url("webman/3rdparty/Spreadsheet/dist/assets/images/1x/icn_numeric_updown.png") 1x,url("webman/3rdparty/Spreadsheet/dist/assets/images/2x/icn_numeric_updown.png") 1.5x);background-size:20px 48px;height:var(--v-input-steppers-height__updown-icon);margin:0;width:var(--v-input-steppers-width__updown-icon)}.v-input-steppers-wrapper.up-down .input-steppers-plus{background-position:0 0}.v-input-steppers-wrapper.up-down .input-steppers-plus:not(.disabled):active,.v-input-steppers-wrapper.up-down .input-steppers-plus:not(.disabled):hover{background-position:0 -12px}.v-input-steppers-wrapper.up-down .input-steppers-minus{background-position:0 -24px}.v-input-steppers-wrapper.up-down .input-steppers-minus:not(.disabled):active,.v-input-steppers-wrapper.up-down .input-steppers-minus:not(.disabled):hover{background-position:0 -36px}.v-input-steppers-wrapper .input-steppers-minus{background-position:0 0;cursor:pointer;flex:0 0 auto;margin-left:var(--v-input-steppers-margin__icon)}.v-input-steppers-wrapper .input-steppers-minus:not(.disabled):active,.v-input-steppers-wrapper .input-steppers-minus:not(.disabled):hover{background-position:0 -24px}.v-input-steppers-wrapper .input-steppers-plus{background-position:0 -48px;cursor:pointer;flex:0 0 auto;margin-right:var(--v-input-steppers-margin__icon)}.v-input-steppers-wrapper .input-steppers-plus:not(.disabled):active,.v-input-steppers-wrapper .input-steppers-plus:not(.disabled):hover{background-position:0 -72px}.v-input-steppers-wrapper .input-steppers-icon{background-image:image-set(url("webman/3rdparty/Spreadsheet/dist/assets/images/1x/icn_numeric_plusminus.png") 1x,url("webman/3rdparty/Spreadsheet/dist/assets/images/2x/icn_numeric_plusminus.png") 1.5x);background-size:24px 96px;cursor:pointer}.v-input-steppers-wrapper .input-steppers-icon.disabled{cursor:default;opacity:var(--v-input-steppers-opacity__icon--disabled)}.v-input-steppers-wrapper .stepper-border{border-right:var(--v-input-steppers-border);height:calc(var(--v-input-steppers-line-height) - var(--v-input-steppers-border-width)*2);width:0}.v-layout{--svc-layout-margin:0;--svc-layout-padding:0;--svc-layout-height:auto;box-sizing:border-box;height:var(--svc-layout-height);margin:var(--svc-layout-margin);padding:var(--svc-layout-padding)}.v-layout.pass-through{margin:0;padding:0}.v-toolbar{align-items:center;display:flex;font-size:0;padding-bottom:8px}.v-toolbar .main-wrapper{align-items:center;display:flex;flex:1 1 auto;gap:6px;overflow:hidden}.v-toolbar .right-wrapper{align-items:center;display:flex;flex:0 0 auto;gap:6px;margin-left:auto;margin-right:0}.v-toolbar.v-overflow-toolbar>*{margin-right:0}.v-toolbar.v-overflow-toolbar .v-overflow-list{flex:1 1 auto;gap:6px}.v-menu{--v-menu-margin-bottom:0;--v-menu-width:auto;--v-menu-padding-tb:8px;--v-menu-padding-lr:8px;--v-menu-bkg-color:#fff;--v-menu-border-radius:3px;--v-menu-border:1px solid #d8dadc;--v-menu-border-width:1px;--v-menu-box-shadow:0 2px 8px #00000040;--v-menu-height__divider:1px;--v-menu-margin__divider:6px 0;--v-menu-bkg-color__divider:#e2e4e6;--v-menu-height__group-title:28px;--v-menu-line-height__group-title:28px;--v-menu-color__group-title:#7e8082;--v-menu-color__group-title--disabled:#babcbe;--v-menu-padding-left__group-title:6px;--v-menu-padding-right__group-title:12px;--v-menu-font-size__group-title:12px;--v-menu-font-weight__group-title:400;background:var(--v-menu-bkg-color);border:var(--v-menu-border);border-radius:var(--v-menu-border-radius);border-width:var(--v-menu-border-width);box-shadow:var(--v-menu-box-shadow);box-sizing:border-box;display:flex;flex-direction:column;list-style:none;margin-bottom:var(--v-menu-margin-bottom);outline:none;padding:calc(var(--v-menu-padding-tb) - var(--v-menu-border-width)) calc(var(--v-menu-padding-lr) - var(--v-menu-border-width));position:relative;width:var(--v-menu-width);z-index:var(--v-z-index-menu-wrapper)}.v-menu-hidden{display:none}.v-menu-item{--v-menu-item-padding:0 8px 0 34px;--v-menu-item-padding--has-icon:0 8px 0 6px;--v-menu-item-padding--has-select:var(--v-menu-item-padding--has-icon);--v-menu-item-padding--has-checkbox:var(--v-menu-item-padding--has-icon);--v-menu-item-margin:0;--v-menu-item-margin__checkbox:0 8px 0 0;--v-menu-item-margin__icon:0 4px 0 0;--v-menu-item-margin__select:0 4px 0 0;--v-menu-item-border-radius:3px;--v-menu-item-font-size:13px;--v-menu-item-font-weight:400;--v-menu-item-line-height:30px;--v-menu-item-height:30px;--v-menu-item-color:#2e3032;--v-menu-item-color__desc:#7e8082;--v-menu-item-margin-left__desc:4px;--v-menu-item-color__desc--disabled:#babcbe;--v-menu-item-bkg-color--active:#eceef0;--v-menu-item-bkg-color--disabled:#0000;--v-menu-item-color__title--active:#2e3032;--v-menu-item-color__title--disabled:#babcbe;--v-menu-item-font-size__title:13px;--v-menu-item-margin__title:0;--v-menu-item-color__link--disabled:#babcbe;--v-menu-item-size__icon:24px;--v-menu-item-opacity__icon--disabled:1;--v-menu-item-top__icon:3px;--v-menu-item-size__checkbox:20px;--v-menu-item-top__checkbox:5px;align-items:center;border-radius:var(--v-menu-item-border-radius);color:var(--v-menu-item-color);cursor:pointer;display:flex;font-size:var(--v-menu-item-font-size);font-weight:var(--v-menu-item-font-weight);height:var(--v-menu-item-height);line-height:var(--v-menu-item-line-height);margin:var(--v-menu-item-margin);overflow:hidden;padding:var(--v-menu-item-padding);position:relative;white-space:nowrap}.v-menu-item>.desc,.v-menu-item>.title{flex:0 1 auto;overflow:hidden;text-overflow:ellipsis}.v-menu-item>.desc{color:var(--v-menu-item-color__desc);margin-left:var(--v-menu-item-margin-left__desc)}.v-menu-item:has(.icon--left){padding:var(--v-menu-item-padding--has-icon)}.v-menu-item.v-menu-item-select{padding:var(--v-menu-item-padding--has-select)}.v-menu-item.v-menu-item-checkbox{padding:var(--v-menu-item-padding--has-checkbox)}.v-menu-item.active{background-color:var(--v-menu-item-bkg-color--active);color:var(--v-menu-item-color__title--active)}.v-menu-item.disabled,.v-menu-item.disabled:focus,.v-menu-item.disabled:hover{background:var(--v-menu-item-bkg-color--disabled);border-color:#0000;color:var(--v-menu-item-color__title--disabled);cursor:default}.v-menu-item.disabled:focus>a,.v-menu-item.disabled:hover>a,.v-menu-item.disabled>a{color:var(--v-menu-item-color__link--disabled);pointer-events:none}.v-menu-item.disabled:focus>.desc,.v-menu-item.disabled:hover>.desc,.v-menu-item.disabled>.desc{color:var(--v-menu-item-color__desc--disabled)}.v-menu-item.disabled .v-icon:not(.v-checkbox-icon),.v-menu-item.disabled:after,.v-menu-item.disabled:focus .v-icon:not(.v-checkbox-icon),.v-menu-item.disabled:focus:after,.v-menu-item.disabled:hover .v-icon:not(.v-checkbox-icon),.v-menu-item.disabled:hover:after{opacity:var(--v-menu-item-opacity__icon--disabled)}.v-menu-item .icon--left{background-repeat:no-repeat;background-size:var(--v-menu-item-size__icon);height:var(--v-menu-item-size__icon);margin:var(--v-menu-item-margin__icon);width:var(--v-menu-item-size__icon)}.v-menu-item .icon--left.v-icon--select{margin:var(--v-menu-item-margin__select)}.v-menu-item .icon--left.v-icon--checkbox{background-image:url(webman/3rdparty/Spreadsheet/dist/assets/images/svg/checkbox.svg);background-position:0 calc(var(--v-menu-item-size__checkbox)*0);background-size:var(--v-menu-item-size__checkbox);height:var(--v-menu-item-size__checkbox);margin:var(--v-menu-item-margin__checkbox);width:var(--v-menu-item-size__checkbox)}.v-menu-item .icon--left.menu-item-tick{background-image:image-set(url("webman/3rdparty/Spreadsheet/dist/assets/images/1x/menu_selected.png") 1x,url("webman/3rdparty/Spreadsheet/dist/assets/images/2x/menu_selected.png") 1.5x);background-size:var(--v-menu-item-size__icon)}.v-menu-item .item-suffix{align-items:center;display:flex;margin-left:auto}.v-menu-item.v-menu-item-checkbox:hover{background:var(--v-menu-item-bkg-color--active);color:var(--v-menu-item-color__title--active)}.v-menu-item.v-menu-item-checkbox-indeterminate .icon--left.menu-item-checkbox{background-position:0 calc(var(--v-menu-item-size__checkbox)*-6)}.v-menu-item.v-menu-item-checkbox-checked .icon--left.menu-item-checkbox{background-position:0 calc(var(--v-menu-item-size__checkbox)*-3)}.v-menu-item.v-menu-item-checkbox.v-menu-item-disabled.v-menu-item-checkbox-checked .icon--left.menu-item-checkbox{background-position:0 calc(var(--v-menu-item-size__checkbox)*-5)}.v-menu-item.v-menu-item-checkbox.v-menu-item-disabled .icon--left.menu-item-checkbox{background-position:0 calc(var(--v-menu-item-size__checkbox)*-2)}.v-menu-item.v-menu-item-checkbox.v-menu-item-disabled:hover{background-color:var(--v-menu-item-bkg-color--disabled);color:var(--v-menu-item-color__title--disabled)}.v-menu-submenu-item{--v-menu-submenu-item-padding:0 4px 0 34px;--v-menu-submenu-item-padding--has-icon:0 4px 0 6px;--v-menu-submenu-item-height__arrow:24px;--v-menu-submenu-item-width__arrow:12px;--v-menu-item-padding:0 8px 0 34px;--v-menu-item-padding--has-icon:0 8px 0 6px;--v-menu-item-padding--has-select:var(--v-menu-item-padding--has-icon);--v-menu-item-padding--has-checkbox:var(--v-menu-item-padding--has-icon);--v-menu-item-margin:0;--v-menu-item-margin__checkbox:0 8px 0 0;--v-menu-item-margin__icon:0 4px 0 0;--v-menu-item-margin__select:0 4px 0 0;--v-menu-item-border-radius:3px;--v-menu-item-font-size:13px;--v-menu-item-font-weight:400;--v-menu-item-line-height:30px;--v-menu-item-height:30px;--v-menu-item-color:#2e3032;--v-menu-item-color__desc:#7e8082;--v-menu-item-margin-left__desc:4px;--v-menu-item-color__desc--disabled:#babcbe;--v-menu-item-bkg-color--active:#eceef0;--v-menu-item-bkg-color--disabled:#0000;--v-menu-item-color__title--active:#2e3032;--v-menu-item-color__title--disabled:#babcbe;--v-menu-item-font-size__title:13px;--v-menu-item-margin__title:0;--v-menu-item-color__link--disabled:#babcbe;--v-menu-item-size__icon:24px;--v-menu-item-opacity__icon--disabled:1;--v-menu-item-top__icon:3px;--v-menu-item-size__checkbox:20px;--v-menu-item-top__checkbox:5px;align-items:center;border-radius:var(--v-menu-item-border-radius);color:var(--v-menu-item-color);cursor:pointer;display:flex;font-size:var(--v-menu-item-font-size);font-weight:var(--v-menu-item-font-weight);height:var(--v-menu-item-height);line-height:var(--v-menu-item-line-height);margin:var(--v-menu-item-margin);overflow:hidden;padding:var(--v-menu-submenu-item-padding);position:relative;white-space:nowrap}.v-menu-submenu-item>.desc,.v-menu-submenu-item>.title{flex:0 1 auto;overflow:hidden;text-overflow:ellipsis}.v-menu-submenu-item>.desc{color:var(--v-menu-item-color__desc);margin-left:var(--v-menu-item-margin-left__desc)}.v-menu-submenu-item:has(.icon--left){padding:var(--v-menu-item-padding--has-icon)}.v-menu-submenu-item.v-menu-item-select{padding:var(--v-menu-item-padding--has-select)}.v-menu-submenu-item.v-menu-item-checkbox{padding:var(--v-menu-item-padding--has-checkbox)}.v-menu-submenu-item.active{background-color:var(--v-menu-item-bkg-color--active);color:var(--v-menu-item-color__title--active)}.v-menu-submenu-item.disabled,.v-menu-submenu-item.disabled:focus,.v-menu-submenu-item.disabled:hover{background:var(--v-menu-item-bkg-color--disabled);border-color:#0000;color:var(--v-menu-item-color__title--disabled);cursor:default}.v-menu-submenu-item.disabled:focus>a,.v-menu-submenu-item.disabled:hover>a,.v-menu-submenu-item.disabled>a{color:var(--v-menu-item-color__link--disabled);pointer-events:none}.v-menu-submenu-item.disabled:focus>.desc,.v-menu-submenu-item.disabled:hover>.desc,.v-menu-submenu-item.disabled>.desc{color:var(--v-menu-item-color__desc--disabled)}.v-menu-submenu-item.disabled .v-icon:not(.v-checkbox-icon),.v-menu-submenu-item.disabled:after,.v-menu-submenu-item.disabled:focus .v-icon:not(.v-checkbox-icon),.v-menu-submenu-item.disabled:focus:after,.v-menu-submenu-item.disabled:hover .v-icon:not(.v-checkbox-icon),.v-menu-submenu-item.disabled:hover:after{opacity:var(--v-menu-item-opacity__icon--disabled)}.v-menu-submenu-item .icon--left{background-repeat:no-repeat;background-size:var(--v-menu-item-size__icon);height:var(--v-menu-item-size__icon);margin:var(--v-menu-item-margin__icon);width:var(--v-menu-item-size__icon)}.v-menu-submenu-item .icon--left.v-icon--select{margin:var(--v-menu-item-margin__select)}.v-menu-submenu-item .icon--left.v-icon--checkbox{background-image:url(webman/3rdparty/Spreadsheet/dist/assets/images/svg/checkbox.svg);background-position:0 calc(var(--v-menu-item-size__checkbox)*0);background-size:var(--v-menu-item-size__checkbox);height:var(--v-menu-item-size__checkbox);margin:var(--v-menu-item-margin__checkbox);width:var(--v-menu-item-size__checkbox)}.v-menu-submenu-item .icon--left.menu-item-tick{background-image:image-set(url("webman/3rdparty/Spreadsheet/dist/assets/images/1x/menu_selected.png") 1x,url("webman/3rdparty/Spreadsheet/dist/assets/images/2x/menu_selected.png") 1.5x);background-size:var(--v-menu-item-size__icon)}.v-menu-submenu-item .item-suffix{align-items:center;display:flex;margin-left:auto}.v-menu-submenu-item:has(.icon--left){padding:var(--v-menu-submenu-item-padding--has-icon)}.v-menu-submenu-item .menu-submenu-triangle-right{background-image:image-set(url("webman/3rdparty/Spreadsheet/dist/assets/images/1x/menu_arrow_r.png") 1x,url("webman/3rdparty/Spreadsheet/dist/assets/images/2x/menu_arrow_r.png") 1.5x);background-size:12px 48px;height:var(--v-menu-submenu-item-height__arrow);width:var(--v-menu-submenu-item-width__arrow)}.v-menu-item-divider{--v-menu-margin-bottom:0;--v-menu-width:auto;--v-menu-padding-tb:8px;--v-menu-padding-lr:8px;--v-menu-bkg-color:#fff;--v-menu-border-radius:3px;--v-menu-border:1px solid #d8dadc;--v-menu-border-width:1px;--v-menu-box-shadow:0 2px 8px #00000040;--v-menu-height__divider:1px;--v-menu-margin__divider:6px 0;--v-menu-bkg-color__divider:#e2e4e6;--v-menu-height__group-title:28px;--v-menu-line-height__group-title:28px;--v-menu-color__group-title:#7e8082;--v-menu-color__group-title--disabled:#babcbe;--v-menu-padding-left__group-title:6px;--v-menu-padding-right__group-title:12px;--v-menu-font-size__group-title:12px;--v-menu-font-weight__group-title:400;background:var(--v-menu-bkg-color__divider);flex-shrink:0;height:var(--v-menu-height__divider);line-height:0;margin:var(--v-menu-margin__divider);overflow:hidden}.v-menu-group{--v-menu-group-padding-left__group-title:6px;--v-menu-group-padding-right__group-title:12px}.v-menu-group .v-menu-group-title{color:var(--v-menu-color__group-title);font-size:var(--v-menu-font-size__group-title);font-weight:var(--v-menu-font-weight__group-title);height:var(--v-menu-height__group-title);line-height:var(--v-menu-line-height__group-title);overflow:hidden;padding-left:var(--v-menu-group-padding-left__group-title);padding-right:var(--v-menu-group-padding-right__group-title);text-overflow:ellipsis;white-space:nowrap}.v-menu-group-disabled .v-menu-group-title{color:var(--v-menu-color__group-title--disabled)}.layout-module-list-panel .v-module-list .v-scrollbar{padding:var(--svc-layout-padding)}.layout-module-list-toolbar .v-toolbar{padding:var(--svc-layout-padding-top) var(--svc-layout-padding-right) 8px var(--svc-layout-padding-left)}.layout-module-list-toolbar .v-module-list .v-scrollbar{padding:0 var(--svc-layout-padding-right) var(--svc-layout-padding-bottom) var(--svc-layout-padding-left)}.v-module-list .v-scrollbar{box-sizing:border-box}.v-module-list .module-item-section{--v-module-list-section-padding:8px 0 0 0;--v-module-list-section-padding--sub-module:4px 0 0 0;--v-module-list-section-width:100%;--v-module-list-section-padding-bottom--collapsed:8px;--v-module-list-section-padding-top--first-of-type:0;--v-module-list-section-border--collapsible:1px solid var(--v-color-border-tier3);--v-module-list-section-border--collapsible--last-of-type:none;--v-module-list-section-padding-left__module-item:12px;--v-module-list-section-padding-right__module-item:6px;--v-module-list-section-padding-left__module-item--has-indent:calc(var(--indent)*40px);--v-module-list-section-padding-left__module-item--collapsible:11px;--v-module-list-section-padding-left__module-item--collapsible-has-indent:calc(var(--indent)*40px - 1px);--v-module-list-section-line-height__module-item-text:24px;--v-module-list-section-font-weight__module-item-text:var(--v-font-weight-bold);--v-module-list-section-font-size__module-item-text:var(--v-font-size-small-tier1);--v-module-list-section-color__module-item-text:#414b5580;--v-module-list-section-color__module-item-text--collapsible-hover:var(--v-color-font-tier2);--v-module-list-section-color__module-item-text--collapsible-active:#414b55b3;--v-module-list-section-padding__options:4px 0;--v-module-list-section-padding__options--sub-module:4px 0 0 0;--v-module-list-section-padding-bottom__options--collapsible:8px;--v-module-list-section-margin-right__arrow:5px;--v-module-list-section-width__arrow:24px;--v-module-list-section-height__arrow:24px;--v-module-list-section-margin__action-wrapper:0 0 0 6px;border-bottom:none;display:inline-flex;flex-direction:column;padding:var(--v-module-list-section-padding);vertical-align:top;width:var(--v-module-list-section-width)}.v-module-list .module-item-section.is-sub-module{padding:var(--v-module-list-section-padding--sub-module)}.v-module-list .module-item-section.has-indent .module-item{padding-left:var(--v-module-list-section-padding-left__module-item--has-indent)}.v-module-list .module-item-section .action-wrapper{align-items:center;display:flex;flex:0 0 auto;margin:var(--v-module-list-section-margin__action-wrapper)}.v-module-list .module-item-section .module-item{align-items:center;display:inline-flex;padding-left:var(--v-module-list-section-padding-left__module-item);padding-right:var(--v-module-list-section-padding-right__module-item);vertical-align:top}.v-module-list .module-item-section .module-item .module-section-item-text{color:var(--v-module-list-section-color__module-item-text);flex:1 1 auto;font-size:var(--v-module-list-section-font-size__module-item-text);font-weight:var(--v-font-weight-bold);font-weight:var(--v-module-list-section-font-weight__module-item-text);line-height:var(--v-module-list-section-line-height__module-item-text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.v-module-list .module-item-section.is-sub-module .module-options{padding:var(--v-module-list-section-padding__options--sub-module)}.v-module-list .module-item-section .module-options{padding:var(--v-module-list-section-padding__options)}.v-module-list .module-item-section.collapsible{border-bottom:var(--v-module-list-section-border--collapsible)}.v-module-list .module-item-section.collapsible .module-options{padding-bottom:var(--v-module-list-section-padding-bottom__options--collapsible)}.v-module-list .module-item-section.collapsible.has-indent .module-item{padding-left:var(--v-module-list-section-padding-left__module-item--collapsible-has-indent)}.v-module-list .module-item-section.collapsible .module-item{cursor:pointer;padding-left:var(--v-module-list-section-padding-left__module-item--collapsible)}.v-module-list .module-item-section.collapsible .module-item .module-item-content:hover .module-section-item-text{color:var(--v-module-list-section-color__module-item-text--collapsible-hover)}.v-module-list .module-item-section.collapsible .module-item .module-item-content:hover .module-item-arrow{background-position-y:-24px}.v-module-list .module-item-section.collapsible .module-item .module-item-content:hover .module-item-arrow:not(.disabled){color:var(--hover);fill-opacity:var(--fill-opacity--hover)}.v-module-list .module-item-section.collapsible .module-item .module-item-content:active .module-section-item-text{color:var(--v-module-list-section-color__module-item-text--collapsible-active)}.v-module-list .module-item-section.collapsible .module-item .module-item-content:active .module-item-arrow{background-position-y:-48px}.v-module-list .module-item-section.collapsible .module-item .module-item-content:active .module-item-arrow:not(.disabled){color:var(--active);fill-opacity:var(--fill-opacity--active)}.v-module-list .module-item-section.collapsed{padding-bottom:var(--v-module-list-section-padding-bottom--collapsed)}.v-module-list .module-item-section .module-list-section-arrow-down,.v-module-list .module-item-section .module-list-section-arrow-up{background-image:image-set(url("webman/3rdparty/Spreadsheet/dist/assets/images/1x/cate_section_arrow.png") 1x,url("webman/3rdparty/Spreadsheet/dist/assets/images/2x/cate_section_arrow.png") 1.5x);background-size:48px;flex:0 0 auto;height:var(--v-module-list-section-height__arrow);margin-right:var(--v-module-list-section-margin-right__arrow);width:var(--v-module-list-section-width__arrow)}.v-module-list .module-item-section .module-list-section-arrow-down{background-position-x:0}.v-module-list .module-item-section .module-list-section-arrow-up{background-position-x:24px}.v-module-list .module-item-content{display:flex;flex:1 1 auto;overflow:hidden}.v-module-list .module-item-wrapper:first-of-type.module-item-section:not(.is-sub-module){padding-top:var(--v-module-list-section-padding-top--first-of-type)}.v-module-list .module-item-section.collapsible:last-of-type{border-bottom:var(--v-module-list-section-border--collapsible--last-of-type)}.v-module-list .module-list-divider{--v-module-list-divider-width:100%;--v-module-list-divider-height:1px;--v-module-list-divider-margin:8px 0;--v-module-list-divider-bkg-color:var(--v-color-border-tier3);background-color:var(--v-module-list-divider-bkg-color);height:var(--v-module-list-divider-height);margin:var(--v-module-list-divider-margin);width:var(--v-module-list-divider-width)}.v-module-list .module-item-option-wrapper{--v-module-list-option-width:100%;--v-module-list-option-border-radius:5px;--v-module-list-option-padding:0 6px 0 calc(var(--indent)*40px);--v-module-list-option-height--normal:42px;--v-module-list-option-height--small:28px;--v-module-list-option-font-size:var(--v-font-size-tier2);--v-module-list-option-background-color--hover:var(--v-item-bg-tier1);--v-module-list-option-background-color--activated:var(--v-item-bg-tier2);--v-module-list-option-background-color--sub-module-activated:var(--v-item-bg-tier3);--v-module-list-option-opacity--disabled:0.4;--v-module-list-option-color__text:var(--v-color-font-tier1);--v-module-list-option-color__text--hover:var(--v-color-font-tier1);--v-module-list-option-color__text--activated:var(--v-color-font-tier1);--v-module-list-option-color__text--sub-module-activated:var(--v-color-font-tier1);--v-module-list-option-line-height__text:18px;--v-module-list-option-font-weight__text:var(--v-font-weight-normal);--v-module-list-option-font-weight__text--hover:var(--v-font-weight-normal);--v-module-list-option-font-weight__text--activated:var(--v-font-weight-normal);--v-module-list-option-font-weight__text--sub-module-activated:var(--v-font-weight-normal);--v-module-list-option-margin__action-wrapper:0 0 0 4px;--v-module-list-option-width__icon:22px;--v-module-list-option-height__icon:22px;--v-module-list-option-margin__icon:0 6px 0 12px;--v-module-list-option-margin__icon--has-indent:0 6px 0 0}.v-module-list .module-item-option-wrapper .module-item-option{align-items:center;border-radius:var(--v-module-list-option-border-radius);box-sizing:border-box;cursor:pointer;display:flex;flex-direction:row;padding:var(--v-module-list-option-padding);width:var(--v-module-list-option-width)}.v-module-list .module-item-option-wrapper .module-item-option .action-wrapper{align-items:center;display:flex;flex:0 0 auto;margin:var(--v-module-list-option-margin__action-wrapper)}.v-module-list .module-item-option-wrapper .module-item-option.module-item-option-normal{font-size:var(--v-module-list-option-font-size);height:var(--v-module-list-option-height--normal)}.v-module-list .module-item-option-wrapper .module-item-option.module-item-option-normal .module-item-text{display:-webkit-box;overflow:hidden;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow-wrap:break-word}.v-module-list .module-item-option-wrapper .module-item-option.module-item-option-small{height:var(--v-module-list-option-height--small)}.v-module-list .module-item-option-wrapper .module-item-option.module-item-option-small .module-item-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.v-module-list .module-item-option-wrapper .module-item-option:hover:not(.non-selectable){background-color:var(--v-module-list-option-background-color--hover)}.v-module-list .module-item-option-wrapper .module-item-option:hover:not(.non-selectable) .module-item-text{color:var(--v-module-list-option-color__text--hover);font-weight:var(--v-module-list-option-font-weight__text--hover)}.v-module-list .module-item-option-wrapper .module-item-option.non-selectable{cursor:default}.v-module-list .module-item-option-wrapper .module-item-option.collapsible{cursor:pointer}.v-module-list .module-item-option-wrapper .module-item-option.collapsible:hover{background-color:var(--v-module-list-option-background-color--hover)}.v-module-list .module-item-option-wrapper .module-item-option.collapsible:hover .module-item-text{color:var(--v-module-list-option-color__text--hover);font-weight:var(--v-module-list-option-font-weight__text--hover)}.v-module-list .module-item-option-wrapper .module-item-option.collapsible.sub-module-activated{background-color:var(--v-module-list-option-background-color--sub-module-activated)}.v-module-list .module-item-option-wrapper .module-item-option.collapsible.sub-module-activated .module-item-text{color:var(--v-module-list-option-color__text--sub-module-activated);font-weight:var(--v-module-list-option-font-weight__text--sub-module-activated)}.v-module-list .module-item-option-wrapper .module-item-option.activated:not(.non-selectable){background-color:var(--v-module-list-option-background-color--activated)}.v-module-list .module-item-option-wrapper .module-item-option.activated:not(.non-selectable) .module-item-text{color:var(--v-module-list-option-color__text--activated);font-weight:var(--v-module-list-option-font-weight__text--activated)}.v-module-list .module-item-option-wrapper .module-item-option.disabled{background-color:#0000;cursor:default;opacity:var(--v-module-list-option-opacity--disabled)}.v-module-list .module-item-option-wrapper .module-item-option.disabled .module-item-text{color:var(--v-module-list-option-color__text);font-weight:var(--v-module-list-option-font-weight__text)}.v-module-list .module-item-option-wrapper .module-item-option.disabled .module-item-icon{background-position-y:0}.v-module-list .module-item-option-wrapper .module-item-option .module-list-option-overview{background-image:image-set(url("webman/3rdparty/Spreadsheet/dist/assets/images/1x/cate_icn_overview.png") 1x,url("webman/3rdparty/Spreadsheet/dist/assets/images/2x/cate_icn_overview.png") 1.5x);background-size:22px}.v-module-list .module-item-option-wrapper .module-item-option.has-indent .module-item-icon{margin:var(--v-module-list-option-margin__icon--has-indent)}.v-module-list .module-item-option-wrapper .module-item-option .module-item-icon{flex:0 0 auto;height:var(--v-module-list-option-height__icon);margin:var(--v-module-list-option-margin__icon);position:relative;width:var(--v-module-list-option-width__icon)}.v-module-list .module-item-option-wrapper .module-item-option .module-item-text{color:var(--v-module-list-option-color__text);flex:1 1 auto;font-weight:var(--v-module-list-option-font-weight__text);line-height:var(--v-module-list-option-line-height__text)}.v-pagination{--v-pagination-padding:0 8px;--v-pagination-bkg-color:var(--v-color-white);--v-pagination-padding--mobile:2px 0;--v-pagination-border-top:1px solid var(--v-color-border-tier3);--v-pagination-border-bottom:1px solid var(--v-color-border-tier2);--v-pagination-margin-right__prev--less:4px;--v-pagination-margin-left__next--less:8px;--v-pagination-bkg-color__item--less-hover:#0000;--v-pagination-bkg-color__item--less-active:#0000;--v-pagination-color__item--less-hover:var(--v-color-font-tier1);--v-pagination-color__item--less-active:var(--v-color-font-tier1);--v-pagination-padding__paging:0;--v-pagination-margin-right__first:4px;--v-pagination-margin-left__last:4px;--v-pagination-margin-right__prev:28px;--v-pagination-margin-right__prev--mobile:4px;--v-pagination-margin-right__next--mobile:8px;--v-pagination-padding__ctrl-item--mobile:4px;--v-pagination-margin-left__next:32px;--v-pagination-padding__item:0 3px;--v-pagination-padding__item--mobile:4px 3px;--v-pagination-font-size__item:var(--v-font-size-tier1);--v-pagination-color__item:var(--v-color-font-tier1);--v-pagination-border-radius__item:var(--v-border-radius-100);--v-pagination-min-width__item:24px;--v-pagination-min-width__item--mobile:32px;--v-pagination-height__item:var(--v-line-height-200);--v-pagination-height__item--mobile:32px;--v-pagination-margin-left__item:4px;--v-pagination-bkg-color__item--hover:#c6d4e066;--v-pagination-bkg-color__item--active:var(--v-color-main);--v-pagination-color__item--active:var(--v-color-white);--v-pagination-font-weight__item--active:var(--v-font-weight-normal);--v-pagination-bkg-color__item-ghost:#0000;--v-pagination-bkg-color__item-ghost--hover:#0000;--v-pagination-bkg-color__item-ghost--active:#0000;--v-pagination-padding__right:0 0 0 2px;--v-pagination-height__right:28px;--v-pagination-height__right--mobile:32px;--v-pagination-margin-left__total:12px;--v-pagination-font-size__total:var(--v-font-size-tier1);--v-pagination-color__total:var(--v-color-font-tier1);--v-pagination-color__selected-item:var(--v-color-main);--v-pagination-height__total:var(--v-line-height-100);--v-pagination-margin-left__loading-icon:12px;--v-pagination-padding-left__loading-icon:5px;--v-pagination-margin__loading-divider:2px 0;--v-pagination-height__loading-divider:20px;--v-pagination-width__loading-divider:1px;--v-pagination-bkg-color__loading-divider:#c6d4e066;--v-pagination-left__loading-divider:0;--v-pagination-margin-left__refresh:12px;--v-pagination-padding-left__refresh:5px;--v-pagination-padding__refresh--mobile:4px 4px 4px 9px;--v-pagination-margin__refresh-divider:2px 0;--v-pagination-height__refresh-divider:20px;--v-pagination-width__refresh-divider:1px;--v-pagination-bkg-color__refresh-divider:#c6d4e066;--v-pagination-left__refresh-divider:0;--v-pagination-margin-right__per-page-wrapper:0;--v-pagination-color__per-page-wrapper:var(--v-color-font-tier1);--v-pagination-margin-right__per-page-text:4px;--v-pagination-line-height__per-page-text:var(--v-line-height-100);--v-pagination-height__select:26px;--v-pagination-padding-tb__select:3px;--v-pagination-opacity__icon--disabled:0.4;align-items:center;background-color:var(--v-pagination-bkg-color);border-bottom:var(--v-pagination-border-bottom);border-top:var(--v-pagination-border-top);box-sizing:border-box;display:flex;justify-content:space-between;overflow:hidden;padding:var(--v-pagination-padding);width:100%}.v-pagination.less .left-paging .v-pagination-prev{margin-right:var(--v-pagination-margin-right__prev--less)}.v-pagination.less .left-paging .v-pagination-next{margin-left:var(--v-pagination-margin-left__next--less)}.v-pagination.less .left-paging .v-pagination-item{cursor:default}.v-pagination.less .left-paging .v-pagination-item:hover{background-color:var(--v-pagination-bkg-color__item--less-hover);color:var(--v-pagination-color__item--less-hover)}.v-pagination.less .left-paging .v-pagination-item.v-pagination-item-active{background-color:var(--v-pagination-bkg-color__item--less-active);color:var(--v-pagination-color__item--less-active)}.v-pagination.rwd--less{padding:var(--v-pagination-padding--mobile)}.v-pagination.rwd--less .left-paging .v-pagination-first,.v-pagination.rwd--less .left-paging .v-pagination-last,.v-pagination.rwd--less .left-paging .v-pagination-next,.v-pagination.rwd--less .left-paging .v-pagination-prev{padding:var(--v-pagination-padding__ctrl-item--mobile)}.v-pagination.rwd--less .left-paging .v-pagination-item{height:var(--v-pagination-height__item--mobile);min-width:var(--v-pagination-min-width__item--mobile);padding:var(--v-pagination-padding__item--mobile)}.v-pagination.rwd--less .left-paging .v-pagination-prev{margin-right:var(--v-pagination-margin-right__prev--mobile)}.v-pagination.rwd--less .left-paging .v-pagination-next{margin-left:var(--v-pagination-margin-right__next--mobile)}.v-pagination.rwd--less .left-paging .v-pagination-first{background-position:var(--v-pagination-padding__ctrl-item--mobile) var(--v-pagination-padding__ctrl-item--mobile);height:24px;width:24px}.v-pagination.rwd--less .left-paging .v-pagination-first:hover{background-position:var(--v-pagination-padding__ctrl-item--mobile) calc(-24px + var(--v-pagination-padding__ctrl-item--mobile))}.v-pagination.rwd--less .left-paging .v-pagination-first.disabled{background-position:var(--v-pagination-padding__ctrl-item--mobile) calc(-48px + var(--v-pagination-padding__ctrl-item--mobile))}.v-pagination.rwd--less .left-paging .v-pagination-last{background-position:calc(24px + var(--v-pagination-padding__ctrl-item--mobile)) var(--v-pagination-padding__ctrl-item--mobile);height:24px;width:24px}.v-pagination.rwd--less .left-paging .v-pagination-last:hover{background-position:calc(24px + var(--v-pagination-padding__ctrl-item--mobile)) calc(-24px + var(--v-pagination-padding__ctrl-item--mobile))}.v-pagination.rwd--less .left-paging .v-pagination-last.disabled{background-position:calc(24px + var(--v-pagination-padding__ctrl-item--mobile)) calc(-48px + var(--v-pagination-padding__ctrl-item--mobile))}.v-pagination.rwd--less .left-paging .pagination-left{background-position:var(--v-pagination-padding__ctrl-item--mobile) var(--v-pagination-padding__ctrl-item--mobile);height:24px;width:24px}.v-pagination.rwd--less .left-paging .pagination-left:hover{background-position:var(--v-pagination-padding__ctrl-item--mobile) calc(-24px + var(--v-pagination-padding__ctrl-item--mobile))}.v-pagination.rwd--less .left-paging .pagination-left.disabled{background-position:var(--v-pagination-padding__ctrl-item--mobile) calc(-48px + var(--v-pagination-padding__ctrl-item--mobile))}.v-pagination.rwd--less .left-paging .pagination-left-double{background-position:var(--v-pagination-padding__ctrl-item--mobile) var(--v-pagination-padding__ctrl-item--mobile);height:24px;width:24px}.v-pagination.rwd--less .left-paging .pagination-left-double:hover{background-position:var(--v-pagination-padding__ctrl-item--mobile) calc(-24px + var(--v-pagination-padding__ctrl-item--mobile))}.v-pagination.rwd--less .left-paging .pagination-left-double.disabled{background-position:var(--v-pagination-padding__ctrl-item--mobile) calc(-48px + var(--v-pagination-padding__ctrl-item--mobile))}.v-pagination.rwd--less .left-paging .pagination-right{background-position:calc(24px + var(--v-pagination-padding__ctrl-item--mobile)) var(--v-pagination-padding__ctrl-item--mobile);height:24px;width:24px}.v-pagination.rwd--less .left-paging .pagination-right:hover{background-position:calc(24px + var(--v-pagination-padding__ctrl-item--mobile)) calc(-24px + var(--v-pagination-padding__ctrl-item--mobile))}.v-pagination.rwd--less .left-paging .pagination-right.disabled{background-position:calc(24px + var(--v-pagination-padding__ctrl-item--mobile)) calc(-48px + var(--v-pagination-padding__ctrl-item--mobile))}.v-pagination.rwd--less .left-paging .pagination-right-double{background-position:calc(24px + var(--v-pagination-padding__ctrl-item--mobile)) var(--v-pagination-padding__ctrl-item--mobile);height:24px;width:24px}.v-pagination.rwd--less .left-paging .pagination-right-double:hover{background-position:calc(24px + var(--v-pagination-padding__ctrl-item--mobile)) calc(-24px + var(--v-pagination-padding__ctrl-item--mobile))}.v-pagination.rwd--less .left-paging .pagination-right-double.disabled{background-position:calc(24px + var(--v-pagination-padding__ctrl-item--mobile)) calc(-48px + var(--v-pagination-padding__ctrl-item--mobile))}.v-pagination.rwd--less .v-pagination-right{height:var(--v-pagination-height__right--mobile)}.v-pagination.rwd--less .v-pagination-right .pagination-refresh{padding:var(--v-pagination-padding__refresh--mobile)}.v-pagination .left-paging{display:flex;padding:var(--v-pagination-padding__paging);vertical-align:top;width:auto}.v-pagination .left-paging .v-pagination-first{background-image:image-set(url("webman/3rdparty/Spreadsheet/dist/assets/images/1x/grid_bt_prev_next_toend.png") 1x,url("webman/3rdparty/Spreadsheet/dist/assets/images/2x/grid_bt_prev_next_toend.png") 1.5x);background-position:0 0;background-size:48px;cursor:pointer;display:inline-block;height:24px;margin-right:var(--v-pagination-margin-right__first);vertical-align:top;width:24px}.v-pagination .left-paging .v-pagination-first:hover{background-position:0 -24px}.v-pagination .left-paging .v-pagination-first.disabled{background-position:0 -48px;cursor:default;opacity:var(--v-pagination-opacity__icon--disabled)}.v-pagination .left-paging .v-pagination-last{background-image:image-set(url("webman/3rdparty/Spreadsheet/dist/assets/images/1x/grid_bt_prev_next_toend.png") 1x,url("webman/3rdparty/Spreadsheet/dist/assets/images/2x/grid_bt_prev_next_toend.png") 1.5x);background-position:24px 0;background-size:48px;cursor:pointer;display:inline-block;height:24px;margin-left:var(--v-pagination-margin-left__last);vertical-align:top;width:24px}.v-pagination .left-paging .v-pagination-last:hover{background-position:24px -24px}.v-pagination .left-paging .v-pagination-last.disabled{background-position:24px -48px;cursor:default;opacity:var(--v-pagination-opacity__icon--disabled)}.v-pagination .left-paging .pagination-left{background-image:image-set(url("webman/3rdparty/Spreadsheet/dist/assets/images/1x/grid_bt_prev_next.png") 1x,url("webman/3rdparty/Spreadsheet/dist/assets/images/2x/grid_bt_prev_next.png") 1.5x);background-position:0 0;background-size:48px;cursor:pointer;display:inline-block;height:24px;margin-right:var(--v-pagination-margin-right__prev);vertical-align:top;width:24px}.v-pagination .left-paging .pagination-left:hover{background-position:0 -24px}.v-pagination .left-paging .pagination-left.disabled{background-position:0 -48px;cursor:default;opacity:var(--v-pagination-opacity__icon--disabled)}.v-pagination .left-paging .pagination-left-double{background-image:image-set(url("webman/3rdparty/Spreadsheet/dist/assets/images/1x/grid_bt_prev_next_double.png") 1x,url("webman/3rdparty/Spreadsheet/dist/assets/images/2x/grid_bt_prev_next_double.png") 1.5x);background-position:0 0;background-size:48px;cursor:pointer;display:inline-block;height:24px;margin-right:var(--v-pagination-margin-right__prev);vertical-align:top;width:24px}.v-pagination .left-paging .pagination-left-double:hover{background-position:0 -24px}.v-pagination .left-paging .pagination-left-double.disabled{background-position:0 -48px;cursor:default;opacity:var(--v-pagination-opacity__icon--disabled)}.v-pagination .left-paging .pagination-right{background-image:image-set(url("webman/3rdparty/Spreadsheet/dist/assets/images/1x/grid_bt_prev_next.png") 1x,url("webman/3rdparty/Spreadsheet/dist/assets/images/2x/grid_bt_prev_next.png") 1.5x);background-position:24px 0;background-size:48px;cursor:pointer;display:inline-block;height:24px;margin-left:var(--v-pagination-margin-left__next);vertical-align:top;width:24px}.v-pagination .left-paging .pagination-right:hover{background-position:24px -24px}.v-pagination .left-paging .pagination-right.disabled{background-position:24px -48px;cursor:default;opacity:var(--v-pagination-opacity__icon--disabled)}.v-pagination .left-paging .pagination-right-double{background-image:image-set(url("webman/3rdparty/Spreadsheet/dist/assets/images/1x/grid_bt_prev_next_double.png") 1x,url("webman/3rdparty/Spreadsheet/dist/assets/images/2x/grid_bt_prev_next_double.png") 1.5x);background-position:24px 0;background-size:48px;cursor:pointer;display:inline-block;height:24px;margin-left:var(--v-pagination-margin-left__next);vertical-align:top;width:24px}.v-pagination .left-paging .pagination-right-double:hover{background-position:24px -24px}.v-pagination .left-paging .pagination-right-double.disabled{background-position:24px -48px;cursor:default;opacity:var(--v-pagination-opacity__icon--disabled)}.v-pagination .left-paging .v-pagination-item{border-radius:var(--v-pagination-border-radius__item);box-sizing:border-box;color:var(--v-pagination-color__item);cursor:pointer;display:inline-block;font-size:var(--v-pagination-font-size__item);height:var(--v-pagination-height__item);line-height:var(--v-pagination-height__item);margin-left:var(--v-pagination-margin-left__item);min-width:var(--v-pagination-min-width__item);padding:var(--v-pagination-padding__item);text-align:center;-webkit-user-select:none;user-select:none;vertical-align:top;width:auto}.v-pagination .left-paging .v-pagination-item:hover{background-color:var(--v-pagination-bkg-color__item--hover)}.v-pagination .left-paging .v-pagination-item.v-pagination-item-active{background-color:var(--v-pagination-bkg-color__item--active);color:var(--v-pagination-color__item--active);font-weight:var(--v-pagination-font-weight__item--active)}.v-pagination .left-paging .v-pagination-item.v-pagination-item-ghost{background-color:var(--v-pagination-bkg-color__item-ghost);cursor:default}.v-pagination .left-paging .v-pagination-item.v-pagination-item-ghost:hover{background-color:var(--v-pagination-bkg-color__item-ghost--hover)}.v-pagination .left-paging .v-pagination-item.v-pagination-item-ghost:active{background-color:var(--v-pagination-bkg-color__item-ghost--active)}.v-pagination .v-pagination-right{align-items:center;display:flex;flex-direction:row;float:right;height:var(--v-pagination-height__right);overflow:hidden;padding:var(--v-pagination-padding__right)}.v-pagination .v-pagination-right .v-pagination-total{color:var(--v-pagination-color__total);display:inline-block;font-size:var(--v-pagination-font-size__total);height:var(--v-pagination-height__total);line-height:var(--v-pagination-height__total);margin-left:var(--v-pagination-margin-left__total);overflow:hidden;text-overflow:ellipsis;vertical-align:top;white-space:nowrap}.v-pagination .v-pagination-right .v-pagination-total .selected-item{color:var(--v-pagination-color__selected-item)}.v-pagination .v-pagination-right .v-spin-icon{margin-left:var(--v-pagination-margin-left__loading-icon);padding-left:var(--v-pagination-padding-left__loading-icon)}.v-pagination .v-pagination-right .v-spin-icon:before{background-color:var(--v-pagination-bkg-color__loading-divider);content:"";display:block;height:var(--v-pagination-height__loading-divider);left:var(--v-pagination-left__loading-divider);margin:var(--v-pagination-margin__loading-divider);position:absolute;width:var(--v-pagination-width__loading-divider);--v-pagination-padding:0 8px;--v-pagination-bkg-color:var(--v-color-white);--v-pagination-padding--mobile:2px 0;--v-pagination-border-top:1px solid var(--v-color-border-tier3);--v-pagination-border-bottom:1px solid var(--v-color-border-tier2);--v-pagination-margin-right__prev--less:4px;--v-pagination-margin-left__next--less:8px;--v-pagination-bkg-color__item--less-hover:#0000;--v-pagination-bkg-color__item--less-active:#0000;--v-pagination-color__item--less-hover:var(--v-color-font-tier1);--v-pagination-color__item--less-active:var(--v-color-font-tier1);--v-pagination-padding__paging:0;--v-pagination-margin-right__first:4px;--v-pagination-margin-left__last:4px;--v-pagination-margin-right__prev:28px;--v-pagination-margin-right__prev--mobile:4px;--v-pagination-margin-right__next--mobile:8px;--v-pagination-padding__ctrl-item--mobile:4px;--v-pagination-margin-left__next:32px;--v-pagination-padding__item:0 3px;--v-pagination-padding__item--mobile:4px 3px;--v-pagination-font-size__item:var(--v-font-size-tier1);--v-pagination-color__item:var(--v-color-font-tier1);--v-pagination-border-radius__item:var(--v-border-radius-100);--v-pagination-min-width__item:24px;--v-pagination-min-width__item--mobile:32px;--v-pagination-height__item:var(--v-line-height-200);--v-pagination-height__item--mobile:32px;--v-pagination-margin-left__item:4px;--v-pagination-bkg-color__item--hover:#c6d4e066;--v-pagination-bkg-color__item--active:var(--v-color-main);--v-pagination-color__item--active:var(--v-color-white);--v-pagination-font-weight__item--active:var(--v-font-weight-normal);--v-pagination-bkg-color__item-ghost:#0000;--v-pagination-bkg-color__item-ghost--hover:#0000;--v-pagination-bkg-color__item-ghost--active:#0000;--v-pagination-padding__right:0 0 0 2px;--v-pagination-height__right:28px;--v-pagination-height__right--mobile:32px;--v-pagination-margin-left__total:12px;--v-pagination-font-size__total:var(--v-font-size-tier1);--v-pagination-color__total:var(--v-color-font-tier1);--v-pagination-color__selected-item:var(--v-color-main);--v-pagination-height__total:var(--v-line-height-100);--v-pagination-margin-left__loading-icon:12px;--v-pagination-padding-left__loading-icon:5px;--v-pagination-margin__loading-divider:2px 0;--v-pagination-height__loading-divider:20px;--v-pagination-width__loading-divider:1px;--v-pagination-bkg-color__loading-divider:#c6d4e066;--v-pagination-left__loading-divider:0;--v-pagination-margin-left__refresh:12px;--v-pagination-padding-left__refresh:5px;--v-pagination-padding__refresh--mobile:4px 4px 4px 9px;--v-pagination-margin__refresh-divider:2px 0;--v-pagination-height__refresh-divider:20px;--v-pagination-width__refresh-divider:1px;--v-pagination-bkg-color__refresh-divider:#c6d4e066;--v-pagination-left__refresh-divider:0;--v-pagination-margin-right__per-page-wrapper:0;--v-pagination-color__per-page-wrapper:var(--v-color-font-tier1);--v-pagination-margin-right__per-page-text:4px;--v-pagination-line-height__per-page-text:var(--v-line-height-100);--v-pagination-height__select:26px;--v-pagination-padding-tb__select:3px;--v-pagination-opacity__icon--disabled:0.4}.v-pagination .v-pagination-right .v-spin-icon>i{left:9px}.v-pagination .v-pagination-right .pagination-refresh{background-image:image-set(url("webman/3rdparty/Spreadsheet/dist/assets/images/1x/grid_bt_refresh.png") 1x,url("webman/3rdparty/Spreadsheet/dist/assets/images/2x/grid_bt_refresh.png") 1.5x);background-origin:content-box;background-position:0 0;background-repeat:no-repeat;background-size:24px;cursor:pointer;display:inline-block;height:24px;margin-left:var(--v-pagination-margin-left__refresh);padding-left:var(--v-pagination-padding-left__refresh);position:relative;vertical-align:top;width:24px}.v-pagination .v-pagination-right .pagination-refresh:hover{background-position:0 -24px}.v-pagination .v-pagination-right .pagination-refresh.disabled{background-position:0 -48px;cursor:default;opacity:var(--v-pagination-opacity__icon--disabled)}.v-pagination .v-pagination-right .pagination-refresh:before{background-color:var(--v-pagination-bkg-color__refresh-divider);content:"";display:block;height:var(--v-pagination-height__refresh-divider);left:var(--v-pagination-left__refresh-divider);margin:var(--v-pagination-margin__refresh-divider);position:absolute;width:var(--v-pagination-width__refresh-divider)}.v-pagination .v-pagination-right .items-per-page-wrapper{align-items:center;color:var(--v-pagination-color__per-page-wrapper);display:inline-flex;margin-right:var(--v-pagination-margin-right__per-page-wrapper);overflow:hidden}.v-pagination .v-pagination-right .items-per-page-wrapper .items-per-page-text{flex:0 1 auto;line-height:var(--v-pagination-line-height__text);margin-right:var(--v-pagination-margin-right__per-page-text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.v-pagination .v-pagination-right .items-per-page-wrapper .v-select2-wrapper{flex:0 0 auto;--height:var(--v-pagination-height__select)!important;--v-select-size-padding-top:var(--v-pagination-padding-tb__select);--v-select-size-padding-bottom:var(--v-pagination-padding-tb__select)}.v-status-bar{--v-status-bar-margin:8px 0 0 0;--v-status-bar-font-size:var(--v-font-size-tier1);--v-status-bar-color:var(--v-color-font-tier1);--v-status-bar-line-height:20px;--v-status-bar-height__icon:24px;--v-status-bar-width__icon:24px;--v-status-bar-left__icon:0;--v-status-bar-margin__icon:0 4px 0 0;--v-status-bar-height__loading-icon:24px;--v-status-bar-width__loading-icon:24px;--v-status-bar-height__text:20px;--v-status-bar-line-height__text:20px;--v-status-bar-padding-left__text:0;--v-status-bar-color__text--success:var(--v-color-green);--v-status-bar-color__text--error:var(--v-color-red);--v-status-bar-color__text--loading:var(--v-color-blue);color:var(--v-status-bar-color);display:inline-block;font-size:var(--v-status-bar-font-size);font-weight:var(--v-font-weight-normal);line-height:var(--v-status-bar-line-height);margin:var(--v-status-bar-margin)}.v-status-bar.fade-leave-active{transition:opacity .5s}.v-status-bar.fade-enter,.v-status-bar.fade-leave-to{opacity:0}.v-status-bar .status-icon,.v-status-bar .v-spin-icon{left:var(--v-status-bar-left__icon);margin:var(--v-status-bar-margin__icon)}.v-status-bar .status-error,.v-status-bar .status-icon,.v-status-bar .status-success{display:inline-block;height:var(--v-status-bar-height__icon);vertical-align:top;width:var(--v-status-bar-width__icon)}.v-status-bar .status-icon{background-image:image-set(url("webman/3rdparty/Spreadsheet/dist/assets/images/1x/footer_status.png") 1x,url("webman/3rdparty/Spreadsheet/dist/assets/images/2x/footer_status.png") 1.5x);background-position:0 0;background-size:24px 48px}.v-status-bar .status-loading-icon{background-position:0 0;display:inline-block;height:var(--v-status-bar-height__loading-icon);vertical-align:top;width:var(--v-status-bar-width__loading-icon)}.v-status-bar .status-text{align-items:center;display:flex;height:var(--v-status-bar-height__text);line-height:var(--v-status-bar-line-height__text);overflow:hidden;padding-left:var(--v-status-bar-padding-left__text);position:relative;text-overflow:ellipsis;white-space:nowrap}.v-status-bar.success .status-icon{background-position:0 0}.v-status-bar.success .status-text{color:var(--v-status-bar-color__text--success)}.v-status-bar.error .status-icon{background-position:0 -24px}.v-status-bar.error .status-text{color:var(--v-status-bar-color__text--error)}.v-status-bar.loading .status-icon{background:none}.v-status-bar.loading .status-text{color:var(--v-status-bar-color__text--loading)}.v-panel.v-layout{--v-panel-padding-bottom__tbar:8px;--v-panel-border-bottom__tbar--with-border:1px solid var(--v-color-border-tier2);--v-panel-custom:false}.v-panel.v-layout .slide-toolbar-enter,.v-panel.v-layout .slide-toolbar-enter-from,.v-panel.v-layout .slide-toolbar-leave-to{transform:translateY(-100%)}.v-panel.v-layout .slide-toolbar-leave-active{box-sizing:border-box;position:absolute;width:100%}.v-panel.v-layout .slide-toolbar-enter-active,.v-panel.v-layout .slide-toolbar-leave-active,.v-panel.v-layout .slide-toolbar-move{transition:transform .2s ease-in-out}.v-panel.v-layout .v-panel-wrapper{display:flex;flex-direction:column;height:100%}.v-panel.v-layout .layout-body-wrapper,.v-panel.v-layout .layout-body-wrapper-transition{display:flex;flex-direction:column;height:100%;overflow:hidden}.v-panel.v-layout .default-tbar.v-toolbar{padding-bottom:var(--v-panel-padding-bottom__tbar)}.v-panel.v-layout .tbar-has-border{border-bottom:var(--v-panel-border-bottom__tbar--with-border)}.v-panel.v-layout .fbar-wrapper{--v-panel-footer-border-top:0px solid #c6d4e080;--v-panel-footer-padding:12px 0 20px 0;--v-panel-footer-margin:var(--svc-layout-margin,0 16px);--v-panel-footer-margin--fluid:var(--svc-layout-margin,0);--v-panel-footer-padding-left__status-bar:20px;--v-panel-footer-margin__status-bar:0;--v-panel-footer-margin-left__button:10px;--v-panel-footer-padding-right__right:20px;--v-panel-footer-padding__button-region--mobile:0;--v-panel-footer-border-top--mobile:0px solid #c6d4e080;--v-panel-footer-padding--mobile:13px 20px 13px 20px;--v-panel-footer-gap__button-region--mobile:10px;align-items:center;border-top:var(--v-panel-footer-border-top);display:flex;flex:0 0 auto;font-size:0;margin:var(--v-panel-footer-margin);overflow:hidden;padding:var(--v-panel-footer-padding)}.v-panel.v-layout .fbar-wrapper--fluid{margin:var(--v-panel-footer-margin--fluid)}.v-panel.v-layout .fbar-wrapper .v-status-bar{margin:var(--v-panel-footer-margin__status-bar);min-width:0;padding-left:var(--v-panel-footer-padding-left__status-bar)}.v-panel.v-layout .fbar-wrapper .v-btn{margin-left:var(--v-panel-footer-margin-left__button)}.v-panel.v-layout .fbar-wrapper .pull-right{flex-shrink:0;margin-left:auto;padding-right:var(--v-panel-footer-padding-right__right)}.v-panel.v-layout .fbar-wrapper .button-region.row{flex-direction:row}.v-panel.v-layout .fbar-wrapper .button-region.column-reverse{flex-direction:column-reverse}.v-panel.v-layout .body-wrapper{flex:1 1 auto;overflow:hidden}.v-panel.v-layout.mobile .fbar-wrapper{border-top:var(--v-panel-footer-border-top--mobile);padding:var(--v-panel-footer-padding--mobile)}.v-panel.v-layout.mobile .button-region{display:flex;flex:1 1 auto;gap:var(--v-panel-footer-gap__button-region--mobile);overflow:hidden;padding:var(--v-panel-footer-padding__button-region--mobile);width:auto}.v-panel.v-layout.mobile .button-region .v-btn{flex:1 1 0;margin-left:0}.v-ps{height:100%;overflow:hidden;padding-right:0;position:relative;--v-perfect-scrollbar-padding-right--with-padding:16px;--v-perfect-scrollbar-height__x:15px;--v-perfect-scrollbar-width__y:10px;--v-perfect-scrollbar-opacity__y--hover:0.6;--v-perfect-scrollbar-opacity__active:0.9;--v-perfect-scrollbar-bkg-color--normal:#0000001f;--v-perfect-scrollbar-border-radius__thumb-x:6px;--v-perfect-scrollbar-height__thumb-x:8px;--v-perfect-scrollbar-bottom__thumb-x:2px;--v-perfect-scrollbar-bkg-color--active:#0000006b;--v-perfect-scrollbar-border-radius__thumb-y:6px;--v-perfect-scrollbar-width__thumb-y:8px;--v-perfect-scrollbar-right__thumb-y:2px}.v-ps .v-ps-wrapper{height:auto;width:auto}.v-ps.ps{overflow:hidden!important;overflow-anchor:none;touch-action:auto}.v-ps.ps.auto-scroll{overflow:scroll!important;scrollbar-width:none}.v-ps.ps.auto-scroll::-webkit-scrollbar{display:none}.v-ps.ps.with-padding{padding-right:var(--v-perfect-scrollbar-padding-right--with-padding)}.v-ps .ps__rail-x{bottom:0;height:var(--v-perfect-scrollbar-height__x)}.v-ps .ps__rail-x,.v-ps .ps__rail-y{display:none;position:absolute;transition:background-color .2s linear,opacity .2s linear;-webkit-transition:background-color .2s linear,opacity .2s linear}.v-ps .ps__rail-y{right:0;width:var(--v-perfect-scrollbar-width__y)}.v-ps.ps--active-x>.ps__rail-x,.v-ps.ps--active-y>.ps__rail-y{background-color:#0000;display:block}.v-ps .ps--focus>.ps__rail-x,.v-ps .ps--focus>.ps__rail-y,.v-ps .ps--scrolling-x>.ps__rail-x,.v-ps .ps--scrolling-y>.ps__rail-y,.v-ps.ps:hover>.ps__rail-x,.v-ps.ps:hover>.ps__rail-y{opacity:var(--v-perfect-scrollbar-opacity__y--hover)}.v-ps.ps .ps__rail-x.ps--clicking,.v-ps.ps .ps__rail-x:focus,.v-ps.ps .ps__rail-x:hover,.v-ps.ps .ps__rail-y.ps--clicking,.v-ps.ps .ps__rail-y:focus,.v-ps.ps .ps__rail-y:hover{background-color:#0000;opacity:var(--v-perfect-scrollbar-opacity--active)}.v-ps .ps__thumb-x{border-radius:var(--v-perfect-scrollbar-border-radius__thumb-x);bottom:var(--v-perfect-scrollbar-bottom__thumb-x);height:var(--v-perfect-scrollbar-height__thumb-x);transition:background-color .2s linear,height .2s ease-in-out;-webkit-transition:background-color .2s linear,height .2s ease-in-out}.v-ps .ps__thumb-x,.v-ps .ps__thumb-y{background-color:var(--v-perfect-scrollbar-bkg-color--normal);position:absolute}.v-ps .ps__thumb-y{border-radius:var(--v-perfect-scrollbar-border-radius__thumb-y);right:var(--v-perfect-scrollbar-right__thumb-y);transition:background-color .2s linear,width .2s ease-in-out;-webkit-transition:background-color .2s linear,width .2s ease-in-out;width:var(--v-perfect-scrollbar-width__thumb-y)}.v-ps .ps__rail-x.ps--clicking .ps__thumb-x,.v-ps .ps__rail-x:focus>.ps__thumb-x,.v-ps .ps__rail-x:hover>.ps__thumb-x,.v-ps .ps__rail-y.ps--clicking .ps__thumb-y,.v-ps .ps__rail-y:focus>.ps__thumb-y,.v-ps .ps__rail-y:hover>.ps__thumb-y{background-color:var(--v-perfect-scrollbar-bkg-color--active)}@supports(-ms-overflow-style:none){.v-ps.ps{overflow:auto!important}}.vue-portal-target{left:0;position:absolute;top:0;z-index:15000}.progress-wrapper{--v-progress-font-size__title:var(--v-font-size-tier1);--v-progress-line-height__title:20px;--v-progress-font-weight__title:var(--v-font-weight-normal);--v-progress-font-size__percent:var(--v-font-size-tier1);--v-progress-line-height__percent:20px;--v-progress-font-weight__percent:var(--v-font-weight-bold);--v-progress-margin__title-wrapper:0 0 8px 0;--v-progress-bkg-color__outer:#505a6426;--v-progress-border-radius__outer:3px;--v-progress-height__outer:6px;--v-progress-opacity--disabled:0.4;--v-progress-width__inner:0;--v-progress-height__inner:6px;--v-progress-bkg-color__inner:var(--v-color-main);--v-progress-border-radius__inner:3px;--v-progress-bkg-color--paused:#505a6466;--v-progress-font-size__info:var(--v-font-size-tier1);--v-progress-margin-top__info:8px;--v-progress-color__info:var(--v-color-font-tier2);--v-progress-line-height__info:20px;--v-progress-font-weight__info:var(--v-font-weight-normal)}.progress-wrapper .progress-title-wrapper{display:flex;margin:var(--v-progress-margin__title-wrapper)}.progress-wrapper .progress-title-wrapper .progress-title{cursor:default;display:inline-block;flex:0 1 auto;font-size:var(--v-progress-font-size__title);font-weight:var(--v-progress-font-weight__title);line-height:var(--v-progress-line-height__title);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.progress-wrapper .progress-title-wrapper .progress-percent{display:inline-block;font-size:var(--v-progress-font-size__percent);font-weight:var(--v-progress-font-weight__percent);line-height:var(--v-progress-line-height__percent);margin-left:auto}.progress-wrapper .progress-bar-outer{background:var(--v-progress-bkg-color__outer);border-radius:var(--v-progress-border-radius__outer);height:var(--v-progress-height__outer);width:100%}.progress-wrapper .progress-bar-outer.disabled{opacity:var(--v-progress-opacity--disabled)}.progress-wrapper .progress-bar-outer.disabled .progress-bar-inner{animation:none}.progress-wrapper .progress-bar-outer .progress-bar-inner{background-color:var(--v-progress-bkg-color__inner);border-bottom-left-radius:var(--v-progress-border-radius__inner);border-top-left-radius:var(--v-progress-border-radius__inner);height:var(--v-progress-height__inner);transition-duration:.1s;transition-property:width;width:var(--v-progress-width__inner)}.progress-wrapper .progress-bar-outer .progress-bar-inner.paused{animation:none;background-color:var(--v-progress-bkg-color--paused)}.progress-wrapper .progress-bar-outer .progress-bar-inner--full{border-bottom-right-radius:var(--v-progress-border-radius__inner);border-top-right-radius:var(--v-progress-border-radius__inner)}.progress-wrapper .progress-bar-outer .progress-bar-inner--waiting{animation:progressWait 10s steps(10) infinite}.progress-wrapper .progress-bar-outer .segments-outer{border-radius:var(--v-progress-border-radius__outer);display:flex;flex-direction:row;height:var(--v-progress-height__outer);overflow:hidden}.progress-wrapper .progress-bar-outer .segments-outer .segment-inner{border-right:var(--border-size) solid var(--border-color);flex:0 0 auto;height:var(--v-progress-height__inner)}.progress-wrapper .progress-bar-outer .segments-outer .segment-inner:last-of-type{border-right:none}.progress-wrapper .progress-info{color:var(--v-progress-color__info);font-size:var(--v-progress-font-size__info);font-weight:var(--v-progress-font-weight__info);line-height:var(--v-progress-line-height__info);margin-top:var(--v-progress-margin-top__info)}@keyframes progressWait{0%{width:0}to{width:100%}}.v-radio-group .v-radio-wrapper{margin-bottom:var(--v-radio-margin-bottom)}.v-radio-wrapper{--v-radio-left__icon:0;--v-radio-font-size__label:13px;--v-radio-color__label:#2e3032;--v-radio-color__label--red:#f2616d;--v-radio-color__label--red-disabled:#f2616d66;--v-radio-padding-tb__label:0;--v-radio-padding-right__label:0;--v-radio-padding-left__label:30px;--v-radio-padding-tb:5px;--v-radio-padding-lr:0;--v-radio-line-height__label:20px;--v-radio-margin-bottom:0;padding:var(--v-radio-padding-tb) var(--v-radio-padding-lr);position:relative}.v-radio-wrapper .v-icon.radio{background-image:url(webman/3rdparty/Spreadsheet/dist/assets/images/svg/radio.svg);background-position:0 0;background-size:20px;height:20px;left:var(--v-radio-left__icon);position:absolute;top:calc(var(--v-radio-padding-tb) + var(--v-radio-padding-tb__label));width:20px}.has-error .v-radio-wrapper .v-icon.radio{background-position:0 -120px}.v-radio-wrapper input[type=radio]{opacity:0;position:absolute}.v-radio-wrapper .v-radio-label{color:var(--v-color-font-tier1);display:inline-block;font-size:var(--v-radio-font-size__label);line-height:var(--v-radio-line-height__label);padding:var(--v-radio-padding-tb__label) var(--v-radio-padding-right__label) var(--v-radio-padding-tb__label) var(--v-radio-padding-left__label);vertical-align:top}.v-radio-wrapper .v-radio-label.label-color-red{color:var(--v-radio-color__label--red)}.v-radio-wrapper.checked .v-icon.radio{background-position:0 -60px}.has-error .v-radio-wrapper.checked .v-icon.radio{background-position:0 -140px}.v-radio-wrapper.focused:not(.disabled) .v-icon.radio,.v-radio-wrapper:hover:not(.disabled) .v-icon.radio{background-position:0 -20px}.has-error .v-radio-wrapper.focused:not(.disabled) .v-icon.radio,.has-error .v-radio-wrapper:hover:not(.disabled) .v-icon.radio{background-position:0 -120px}.v-radio-wrapper.focused:not(.disabled).checked .v-icon.radio,.v-radio-wrapper:hover:not(.disabled).checked .v-icon.radio{background-position:0 -80px}.has-error .v-radio-wrapper.focused:not(.disabled).checked .v-icon.radio,.has-error .v-radio-wrapper:hover:not(.disabled).checked .v-icon.radio{background-position:0 -140px}.v-radio-wrapper.disabled .v-radio-label{color:var(--v-color-font-tier3)}.v-radio-wrapper.disabled .v-radio-label.label-color-red{color:var(--v-radio-color__label--red-disabled)}.v-radio-wrapper.disabled .v-radio-icon{background-position:0 -40px}.v-radio-wrapper.disabled.checked .v-radio-icon{background-position:0 -100px}.v-select2-dropdown-menu-item.schedule-base-option .item-icon.schedule{background-image:none}.v-schedule-btn-wrapper{--v-schedule-table-btn-wrap-margin-bottom:12px;--v-schedule-table-btn-margin-right:12px;--v-schedule-table-btn-width__icon:24px;--v-schedule-table-btn-height__icon:24px;--v-schedule-table-btn-margin-right__icon:4px;--v-schedule-table-btn-margin-left__edit-icon:6px;--v-schedule-table-btn-border-radius__icon:3px;--v-schedule-table-btn-width__icon-inner:14px;--v-schedule-table-btn-height__icon-inner:14px;--v-schedule-table-btn-border__icon-inner:1px solid #dcdee0;--v-schedule-table-btn-border-radius__icon-inner:1px;--v-schedule-table-btn-bkg-color__icon-inner:var(--v-color-main);--v-schedule-table-btn-bkg-color--blue:var(--v-color-blue);--v-schedule-table-btn-bkg-color--red:var(--v-color-red);--v-schedule-table-btn-bkg-color--green:var(--v-color-green);--v-schedule-table-btn-bkg-color--orange:var(--v-color-orange);--v-schedule-table-btn-bkg-color--yellow:#ffc041;--v-schedule-table-btn-bkg-color--clear:var(--v-color-white);--v-schedule-table-btn-bkg-color--hover:#c6d4e033;--v-schedule-table-btn-bkg-color--pressed:var(--v-color-border-tier3);--v-schedule-table-btn-width__clear-icon:24px;--v-schedule-table-btn-height__clear-icon:24px;--v-schedule-table-btn-color__text:var(--v-color-font-tier1);--v-schedule-table-btn-line-height__text:var(--v-line-height-300);--v-schedule-table-btn-margin-top__text:4px;--v-schedule-table-btn-margin-bottom__text:4px;display:grid;margin-bottom:var(--v-schedule-table-btn-wrap-margin-bottom)}.v-schedule-btn-wrapper .v-schedule-btn{align-items:center;display:inline-flex;margin-right:var(--v-schedule-table-btn-margin-right);vertical-align:top}.v-schedule-btn-wrapper .v-schedule-btn .v-schedule-btn-icon{align-items:center;border-radius:var(--v-schedule-table-btn-border-radius__icon);cursor:pointer;display:inline-flex;flex:0 0 auto;height:var(--v-schedule-table-btn-height__icon);justify-content:center;margin-right:var(--v-schedule-table-btn-margin-right__icon);vertical-align:top;width:var(--v-schedule-table-btn-width__icon)}.v-schedule-btn-wrapper .v-schedule-btn .v-schedule-btn-icon>.btn-icon-inner{background-color:var(--v-schedule-table-btn-bkg-color__icon-inner);border:var(--v-schedule-table-btn-border__icon-inner);border-radius:var(--v-schedule-table-btn-border-radius__icon-inner);box-sizing:border-box;height:var(--v-schedule-table-btn-height__icon-inner);width:var(--v-schedule-table-btn-width__icon-inner)}.v-schedule-btn-wrapper .v-schedule-btn .v-schedule-btn-icon--blue>.btn-icon-inner{background-color:var(--v-schedule-table-btn-bkg-color--blue)}.v-schedule-btn-wrapper .v-schedule-btn .v-schedule-btn-icon--red>.btn-icon-inner{background-color:var(--v-schedule-table-btn-bkg-color--red)}.v-schedule-btn-wrapper .v-schedule-btn .v-schedule-btn-icon--green>.btn-icon-inner{background-color:var(--v-schedule-table-btn-bkg-color--green)}.v-schedule-btn-wrapper .v-schedule-btn .v-schedule-btn-icon--orange>.btn-icon-inner{background-color:var(--v-schedule-table-btn-bkg-color--orange)}.v-schedule-btn-wrapper .v-schedule-btn .v-schedule-btn-icon--yellow>.btn-icon-inner{background-color:var(--v-schedule-table-btn-bkg-color--yellow)}.v-schedule-btn-wrapper .v-schedule-btn .v-schedule-btn-icon:hover{background-color:var(--v-schedule-table-btn-bkg-color--hover)}.v-schedule-btn-wrapper .v-schedule-btn .v-schedule-btn-icon.v-schedule-btn-icon-pressed{background-color:var(--v-schedule-table-btn-bkg-color--pressed)}.v-schedule-btn-wrapper .v-schedule-btn .v-schedule-btn-icon-clear{background-image:url(webman/3rdparty/Spreadsheet/dist/assets/images/svg/schedule_table_color_clear.svg);background-size:var(--v-schedule-table-btn-width__clear-icon) var(--v-schedule-table-btn-height__clear-icon);height:var(--v-schedule-table-btn-height__clear-icon);width:var(--v-schedule-table-btn-width__clear-icon)}.v-schedule-btn-wrapper .v-schedule-btn .v-schedule-btn-text{color:var(--v-schedule-table-btn-color__text);display:inline-block;line-height:var(--v-schedule-table-btn-line-height__text);overflow:hidden;text-overflow:ellipsis;-webkit-user-select:none;user-select:none;vertical-align:top;white-space:nowrap}.v-schedule-btn-wrapper .v-schedule-btn .schedule-table-pen{background-image:image-set(url("webman/3rdparty/Spreadsheet/dist/assets/images/1x/pen.png") 1x,url("webman/3rdparty/Spreadsheet/dist/assets/images/2x/pen.png") 1.5x);background-size:24px;cursor:pointer;flex:0 0 auto;margin-left:var(--v-schedule-table-btn-margin-left__edit-icon)}.v-schedule-btn-wrapper .v-schedule-btn .schedule-table-pen:active,.v-schedule-btn-wrapper .v-schedule-btn .schedule-table-pen:hover{background-position:0 -24px}.v-schedule-table{--v-schedule-table-border:1px solid #e2e4e6;--v-schedule-table-inner-border:1px solid #e6ecf2;--v-schedule-table-border-radius:4px;--v-schedule-table-margin__triangle:0px 3px 3px 0px;--v-schedule-table-size__triangle:8px;--v-schedule-table-border-color__triangle:#0099e6;--v-schedule-table-border-color__triangle--hover:#0099e6cc}.v-schedule-table .v-schedule{--v-schedule-table-body-cell-width--first:42px;--v-schedule-table-body-cell-bkg-color--first:#c6d4e014;--v-schedule-table-body-cell-color--first:var(--v-color-font-tier1);--v-schedule-table-body-cell-line-height--first:24px;--v-schedule-table-body-cell-font-size--first:var(--v-font-size-small-tier1);--v-schedule-table-body-cell-bkg-color--first-hover:#0099e60f;--v-schedule-table-body-cell-opacity--first-hover:1;--v-schedule-table-body-cell-border-bottom-left-radius--last-row-fist-child:3px;--v-schedule-table-body-cell-border-bottom-right-radius--last-row-last-child:3px;--v-schedule-table-body-cell-width:24px;--v-schedule-table-body-cell-height:24px;--v-schedule-table-body-cell-width--half:11px;--v-schedule-table-body-cell-width--quarter:7px;--v-schedule-table-body-cell-border-left__split-cell:1px solid #f0f6fc;--v-schedule-table-body-cell-opacity--hover:0.8;--v-schedule-table-body-cell-opacity--clear-hover:1;--v-schedule-table-body-cell-bkg-color--clean-hover:#0099e60f;border-collapse:initial;border-color:#0000;border:var(--v-schedule-table-border);border-radius:var(--v-schedule-table-border-radius);border-spacing:0;position:relative}.v-schedule-table .select-all-cell{vertical-align:bottom}.v-schedule-table .select-all-cell .select-all-triangle{border-bottom:var(--v-schedule-table-size__triangle) solid var(--v-schedule-table-border-color__triangle);border-left:var(--v-schedule-table-size__triangle) solid #0000;float:right;height:0;margin:var(--v-schedule-table-margin__triangle);width:0}.v-schedule-table .select-all-cell:hover .select-all-triangle{border-bottom-color:var(--v-schedule-table-border-color__triangle--hover)}.v-schedule-table .head-cell{--v-schedule-table-head-cell-width:24px;--v-schedule-table-head-cell-height:24px;--v-schedule-table-head-cell-color:var(--v-color-font-tier1);--v-schedule-table-head-cell-width--half:23px;--v-schedule-table-head-cell-width--quarter:27px;--v-schedule-table-head-cell-bkg-color:#c6d4e014;--v-schedule-table-head-cell-font-weight:var(--v-font-weight-bold);--v-schedule-table-head-cell-font-size:var(--v-font-size-small-tier1);--v-schedule-table-head-cell-border-left--first:none;--v-schedule-table-head-cell-border-top-left-radius--first:3px;--v-schedule-table-head-cell-border-right--last:none;--v-schedule-table-head-cell-border-top-right-radius--last:3px;--v-schedule-table-head-cell-bkg-color--hover:#0099e60f;background-color:var(--v-schedule-table-head-cell-bkg-color);border-left:var(--v-schedule-table-inner-border);color:var(--v-schedule-table-head-cell-color);font-size:var(--v-schedule-table-head-cell-font-size);font-weight:var(--v-schedule-table-head-cell-font-weight);height:var(--v-schedule-table-head-cell-height);text-align:center;-webkit-user-select:none;user-select:none;width:var(--v-schedule-table-head-cell-width)}.v-schedule-table .head-cell.split-30{width:var(--v-schedule-table-head-cell-width--half)}.v-schedule-table .head-cell.split-15{width:var(--v-schedule-table-head-cell-width--quarter)}.v-schedule-table .head-cell:first-child{border-left:var(--v-schedule-table-head-cell-border-left--first);border-top-left-radius:var(--v-schedule-table-head-cell-border-top-left-radius--first)}.v-schedule-table .head-cell:last-child{border-right:var(--v-schedule-table-head-cell-border-right--last);border-top-right-radius:var(--v-schedule-table-head-cell-border-top-right-radius--last)}.v-schedule-table .head-cell:hover{background-color:var(--v-schedule-table-head-cell-bkg-color--hover)}.v-schedule-table .cell.first-cell{background-color:var(--v-schedule-table-body-cell-bkg-color--first);border-bottom:none;border-left:none;border-top:var(--v-schedule-table-inner-border);color:var(--v-schedule-table-body-cell-color--first);cursor:pointer;font-size:var(--v-schedule-table-body-cell-font-size--first);line-height:var(--v-schedule-table-body-cell-line-height--first);text-align:center;-webkit-user-select:none;user-select:none;width:var(--v-schedule-table-body-cell-width--first)}.v-schedule-table .cell.first-cell:hover{background-color:var(--v-schedule-table-body-cell-bkg-color--first-hover);opacity:var(--v-schedule-table-body-cell-opacity--first-hover)}.v-schedule-table .normal-row:last-child .body-cell:last-child{border-bottom-right-radius:var(--v-schedule-table-body-cell-border-bottom-right-radius--last-row-last-child)}.v-schedule-table .normal-row:last-child .body-cell:first-child{border-bottom-left-radius:var(--v-schedule-table-body-cell-border-bottom-left-radius--last-row-fist-child)}.v-schedule-table .body-cell{border-left:var(--v-schedule-table-inner-border);border-top:var(--v-schedule-table-inner-border);height:var(--v-schedule-table-body-cell-width);text-align:center;width:var(--v-schedule-table-body-cell-height)}.v-schedule-table .body-cell.split-30{width:var(--v-schedule-table-body-cell-width--half)}.v-schedule-table .body-cell.split-15{width:var(--v-schedule-table-body-cell-width--quarter)}.v-schedule-table .body-cell.split-cell{border-left:var(--v-schedule-table-body-cell-border-left__split-cell)}.v-schedule-table .body-cell:last-child{border-right-color:#0000}.v-schedule-table .body-cell.row-col-over,.v-schedule-table .body-cell:hover{opacity:var(--v-schedule-table-body-cell-opacity--hover)}.v-schedule-table .body-cell.cell-option--clear.row-col-over,.v-schedule-table .body-cell.cell-option--clear:hover{background-color:var(--v-schedule-table-body-cell-bkg-color--clean-hover);opacity:var(--v-schedule-table-body-cell-opacity--clear-hover)}.v-schedule-table .cell-option{--v-schedule-table-btn-margin-right:12px;--v-schedule-table-btn-width__icon:24px;--v-schedule-table-btn-height__icon:24px;--v-schedule-table-btn-margin-right__icon:4px;--v-schedule-table-btn-margin-left__edit-icon:6px;--v-schedule-table-btn-border-radius__icon:3px;--v-schedule-table-btn-width__icon-inner:14px;--v-schedule-table-btn-height__icon-inner:14px;--v-schedule-table-btn-border__icon-inner:1px solid #dcdee0;--v-schedule-table-btn-border-radius__icon-inner:1px;--v-schedule-table-btn-bkg-color__icon-inner:var(--v-color-main);--v-schedule-table-btn-bkg-color--blue:var(--v-color-blue);--v-schedule-table-btn-bkg-color--red:var(--v-color-red);--v-schedule-table-btn-bkg-color--green:var(--v-color-green);--v-schedule-table-btn-bkg-color--orange:var(--v-color-orange);--v-schedule-table-btn-bkg-color--yellow:#ffc041;--v-schedule-table-btn-bkg-color--clear:var(--v-color-white);--v-schedule-table-btn-bkg-color--hover:#c6d4e033;--v-schedule-table-btn-bkg-color--pressed:var(--v-color-border-tier3);--v-schedule-table-btn-width__clear-icon:24px;--v-schedule-table-btn-height__clear-icon:24px;--v-schedule-table-btn-color__text:var(--v-color-font-tier1);--v-schedule-table-btn-line-height__text:var(--v-line-height-300);--v-schedule-table-btn-margin-top__text:4px;--v-schedule-table-btn-margin-bottom__text:4px;background-color:var(--v-schedule-table-btn-bkg-color--blue)}.v-schedule-table .cell-option--clear{background-color:var(--v-schedule-table-btn-bkg-color--clear)}.v-schedule-table .cell-option--blue{background-color:var(--v-schedule-table-btn-bkg-color--blue)}.v-schedule-table .cell-option--red{background-color:var(--v-schedule-table-btn-bkg-color--red)}.v-schedule-table .cell-option--green{background-color:var(--v-schedule-table-btn-bkg-color--green)}.v-schedule-table .cell-option--orange{background-color:var(--v-schedule-table-btn-bkg-color--orange)}.v-schedule-table .cell-option--yellow{background-color:var(--v-schedule-table-btn-bkg-color--yellow)}.v-scrollbar{--v-scrollbar-opacity--disabled:0.4;--v-scrollbar-width__rail-y:10px;--v-scrollbar-width__bar-y:8px;--v-scrollbar-height__rail-x:10px;--v-scrollbar-height__bar-x:8px;--v-scrollbar-border-radius__bar:4px;--v-scrollbar-bkg-color--normal:#56585a33;--v-scrollbar-bkg-color--hover:#56585a40;--v-scrollbar-bkg-color--active:#56585a4d;--v-scrollbar-padding-right--with-padding:16px;--v-scrollbar-bottom__thumb-x:2px;--v-scrollbar-right__thumb-y:2px;height:100%;overflow:hidden;position:relative}.v-scrollbar.overscroll-auto .v-scrollbar-view{overscroll-behavior:auto}.v-scrollbar.overscroll-none .v-scrollbar-view{overscroll-behavior:none}.v-scrollbar.overscroll-contain .v-scrollbar-view{overscroll-behavior:contain}.v-scrollbar.disabled .v-scrollbar-view{overflow:hidden}.v-scrollbar.disabled .rail .bar,.v-scrollbar.disabled .rail:active .bar,.v-scrollbar.disabled .rail:hover .bar{background-color:var(--v-scrollbar-bkg-color--normal);opacity:var(--v-scrollbar-opacity--disabled)}.v-scrollbar.with-padding{padding-right:var(--v-scrollbar-padding-right--with-padding)}.v-scrollbar .v-scrollbar-inner{position:relative}.v-scrollbar .v-scrollbar-view{height:100%;overflow:auto;scrollbar-width:none}.v-scrollbar .v-scrollbar-view::-webkit-scrollbar{display:none}.v-scrollbar .rail{position:absolute;z-index:var(--v-z-index-scrollbar-rail)}.v-scrollbar .rail:hover .bar{background-color:var(--v-scrollbar-bkg-color--hover)}.v-scrollbar .rail:active .bar{background-color:var(--v-scrollbar-bkg-color--active)}.v-scrollbar .rail .bar{background-color:var(--v-scrollbar-bkg-color--normal);border-radius:var(--v-scrollbar-border-radius__bar);position:absolute;transition:background-color .2s linear,width .2s ease-in-out}.v-scrollbar .rail .bar.hidden{background-color:#0000}.v-scrollbar .x-rail{bottom:0;height:var(--v-scrollbar-height__rail-x);left:0}.v-scrollbar .x-rail .x-bar{height:var(--v-scrollbar-height__bar-x)}.v-scrollbar .y-rail{right:0;top:0;width:var(--v-scrollbar-width__rail-y)}.v-scrollbar .y-rail .y-bar{width:var(--v-scrollbar-width__bar-y)}.v-search-input.v-textfield-wrapper{--v-search-input-padding-left:6px;--v-search-input-margin-right__icon:4px;--v-search-input-margin-right__icon--advanced:2px;--v-search-input-padding-right--right-adv:4px;--v-search-input-margin-left__right-adv:4px;--v-search-input-margin-left__right-adv--with-suffix-icon:2px;--v-search-input-border-radius:3px;--v-search-input-padding-tb__dropdown:16px;--v-search-input-padding-lr__dropdown:24px;--v-search-input-bkg-color__dropdown:#fff;--v-search-input-border-radius__dropdown:3px;--v-search-input-border__dropdown:1px solid #d8dadc;--v-search-input-border-width__dropdown:1px;--v-search-input-box-shadow__dropdown:0 1px 4px 0 #00000029;--v-search-input-margin-top__footbar:20px;--v-search-input-gap__btn:8px;position:relative}.v-search-input.v-textfield-wrapper .input-container{border-radius:var(--v-search-input-border-radius)}.v-search-input.v-textfield-wrapper .input-container.search-filter{padding-left:calc(var(--v-search-input-padding-left) - var(--v-input-border-width))}.v-search-input.v-textfield-wrapper .input-container.search-filter .search-icon{margin-right:var(--v-search-input-margin-right__icon)}.v-search-input.v-textfield-wrapper .input-container.search-filter .search-icon.select-advanced-search{background-image:url(webman/3rdparty/Spreadsheet/dist/assets/images/svg/advanced_search.svg)}.v-search-input.v-textfield-wrapper .input-container.search-filter .search-icon.select-advanced-filter{background-image:url(webman/3rdparty/Spreadsheet/dist/assets/images/svg/advanced_filter.svg)}.v-search-input.v-textfield-wrapper .input-container.search-filter .search-icon.select-filter,.v-search-input.v-textfield-wrapper .input-container.search-filter .search-icon.select-search{background-image:image-set(url("webman/3rdparty/Spreadsheet/dist/assets/images/1x/textfield_icn_search_filter.png") 1x,url("webman/3rdparty/Spreadsheet/dist/assets/images/2x/textfield_icn_search_filter.png") 1.5x);background-position:0 0;background-size:24px}.v-search-input.v-textfield-wrapper .input-container.search-filter .search-icon.select-filter{background-position:0 -24px}.v-search-input.v-textfield-wrapper .input-container.search-filter .search-icon.select-advanced-filter,.v-search-input.v-textfield-wrapper .input-container.search-filter .search-icon.select-advanced-search{background-position:0 0;background-size:32px;cursor:pointer;height:24px;margin-right:var(--v-search-input-margin-right__icon--advanced);width:32px}.v-search-input.v-textfield-wrapper .input-container.search-filter .search-icon.select-advanced-filter:not(.disabled).active,.v-search-input.v-textfield-wrapper .input-container.search-filter .search-icon.select-advanced-search:not(.disabled).active{background-position-y:-48px}.v-search-input.v-textfield-wrapper .input-container.search-filter .search-icon.select-advanced-filter:not(.disabled).show-advanced-panel,.v-search-input.v-textfield-wrapper .input-container.search-filter .search-icon.select-advanced-filter:not(.disabled).show-advanced-panel.active,.v-search-input.v-textfield-wrapper .input-container.search-filter .search-icon.select-advanced-filter:not(.disabled):active,.v-search-input.v-textfield-wrapper .input-container.search-filter .search-icon.select-advanced-filter:not(.disabled):active.active,.v-search-input.v-textfield-wrapper .input-container.search-filter .search-icon.select-advanced-filter:not(.disabled):hover,.v-search-input.v-textfield-wrapper .input-container.search-filter .search-icon.select-advanced-filter:not(.disabled):hover.active,.v-search-input.v-textfield-wrapper .input-container.search-filter .search-icon.select-advanced-search:not(.disabled).show-advanced-panel,.v-search-input.v-textfield-wrapper .input-container.search-filter .search-icon.select-advanced-search:not(.disabled).show-advanced-panel.active,.v-search-input.v-textfield-wrapper .input-container.search-filter .search-icon.select-advanced-search:not(.disabled):active,.v-search-input.v-textfield-wrapper .input-container.search-filter .search-icon.select-advanced-search:not(.disabled):active.active,.v-search-input.v-textfield-wrapper .input-container.search-filter .search-icon.select-advanced-search:not(.disabled):hover,.v-search-input.v-textfield-wrapper .input-container.search-filter .search-icon.select-advanced-search:not(.disabled):hover.active{background-position-y:-24px}.v-search-input.v-textfield-wrapper .input-container.search-filter .search-icon.disabled{cursor:default;opacity:.4}.v-search-input.v-textfield-wrapper .input-container.search-filter.has-right-advanced-icon{padding-right:calc(var(--v-search-input-padding-right--right-adv) - var(--v-input-border-width))}.v-search-input.v-textfield-wrapper .input-container.search-filter.has-right-advanced-icon .select-adjust{background-image:image-set(url("webman/3rdparty/Spreadsheet/dist/assets/images/1x/textfield_bt_search_right_advanced.png") 1x,url("webman/3rdparty/Spreadsheet/dist/assets/images/2x/textfield_bt_search_right_advanced.png") 1.5x);background-position:0 0;background-size:24px;cursor:pointer;margin-left:var(--v-search-input-margin-left__right-adv)}.v-search-input.v-textfield-wrapper .input-container.search-filter.has-right-advanced-icon .select-adjust:not(.disabled).active,.v-search-input.v-textfield-wrapper .input-container.search-filter.has-right-advanced-icon .select-adjust:not(.disabled):active,.v-search-input.v-textfield-wrapper .input-container.search-filter.has-right-advanced-icon .select-adjust:not(.disabled):hover{background-position-y:-24px}.v-search-input.v-textfield-wrapper .input-container.search-filter.has-right-advanced-icon .select-adjust:not(.disabled).active:not(.disabled),.v-search-input.v-textfield-wrapper .input-container.search-filter.has-right-advanced-icon .select-adjust:not(.disabled):active:not(.disabled),.v-search-input.v-textfield-wrapper .input-container.search-filter.has-right-advanced-icon .select-adjust:not(.disabled):hover:not(.disabled){color:var(--active);fill-opacity:var(--fill-opacity--active)}.v-search-input.v-textfield-wrapper .input-container.search-filter.has-right-advanced-icon .select-adjust.disabled{cursor:default;opacity:.4}.v-search-input.v-textfield-wrapper .input-container.search-filter.has-right-advanced-icon.only-suffix-icons .select-adjust{margin-left:var(--v-search-input-margin-left__right-adv--with-suffix-icon)}.v-search-input-advanced{--v-search-input-padding-left:6px;--v-search-input-margin-right__icon:4px;--v-search-input-margin-right__icon--advanced:2px;--v-search-input-padding-right--right-adv:4px;--v-search-input-margin-left__right-adv:4px;--v-search-input-margin-left__right-adv--with-suffix-icon:2px;--v-search-input-border-radius:3px;--v-search-input-padding-tb__dropdown:16px;--v-search-input-padding-lr__dropdown:24px;--v-search-input-bkg-color__dropdown:#fff;--v-search-input-border-radius__dropdown:3px;--v-search-input-border__dropdown:1px solid #d8dadc;--v-search-input-border-width__dropdown:1px;--v-search-input-box-shadow__dropdown:0 1px 4px 0 #00000029;--v-search-input-margin-top__footbar:20px;--v-search-input-gap__btn:8px;background-color:var(--v-search-input-bkg-color__dropdown);border:var(--v-search-input-border__dropdown);border-radius:var(--v-search-input-border-radius__dropdown);border-width:var(--v-search-input-border-width__dropdown);box-shadow:var(--v-search-input-box-shadow__dropdown);padding:calc(var(--v-search-input-padding-tb__dropdown) - var(--v-search-input-border-width__dropdown)) calc(var(--v-search-input-padding-lr__dropdown) - var(--v-search-input-border-width__dropdown))}.v-search-input-advanced .v-search-input-advanced-footbar{display:flex;justify-content:flex-end;margin-top:var(--v-search-input-margin-top__footbar)}.v-search-input-advanced .v-search-input-advanced-footbar .v-btn{margin-left:var(--v-search-input-gap__btn)}.v-search-suggestions-wrapper{background:#fff;border:1px solid var(--v-color-border-tier2);border-radius:4px;box-shadow:0 1px 4px 0 #00000029;box-sizing:border-box;list-style:none;margin-bottom:0;outline:none;padding:8px;width:200px}.v-search-suggestions-wrapper,.v-search-suggestions-wrapper .v-search-suggestion-scrollbar{display:flex;flex-direction:column}.v-search-suggestions-wrapper .v-search-suggestions{display:flex;flex-direction:column;overflow:hidden;padding-top:2px}.v-search-suggestions-wrapper .v-search-search-criteria{border-bottom:1px solid #979797;color:var(--v-color-font-tier1);font-size:var(--v-font-size-tier2);font-weight:var(--v-font-weight-bold);line-height:30px;padding-left:10px}.syno-cjk .v-search-suggestions-wrapper .v-search-search-criteria{font-weight:var(--v-font-weight-semi-bold)}.v-search-suggestions-item{box-sizing:border-box;color:var(--v-color-font-tier1);cursor:pointer;display:block;height:38px;letter-spacing:.1px;margin:0;overflow:hidden;padding:8px 20px 8px 12px;position:relative;text-overflow:ellipsis;white-space:nowrap}.v-search-suggestions-item.unselectable{cursor:default}.v-search-suggestions-item.unselectable:hover{background-color:var(--v-color-white)}.v-search-suggestions-item:hover{background-color:#f5f5fa;border-radius:3px}.v-search-suggestions-item.child-item{padding-left:36px}.v-search-suggestions-item-selected{background-color:#f5f5fa;border-radius:3px}.v-search-suggestions-item .search-suggestion-item-content{font-size:var(--v-font-size-tier2);line-height:22px}.v-search-suggestions-item .search-suggestion-item-content .item-prompt{color:#909090;position:absolute;right:12px}.v-search-suggestions-item.group{color:var(--v-color-font-tier2);cursor:default;height:38px;line-height:28px;overflow:hidden;padding:8px 6px 8px 12px;text-overflow:ellipsis;white-space:nowrap}.v-search-suggestions-item.group:hover{background-color:var(--v-color-white)}.v-search-block{background-color:#0000;border-radius:2px 0 0 2px;color:var(--v-color-font-tier1);display:inline-block;font-size:12px;line-height:24px;margin-right:1px;padding:0;position:relative;top:3px;vertical-align:top}.v-search-block.v-search-block-category{background-color:#e1f8fa;padding:0 7px}.v-search-block.v-search-block-operator{background-color:#ebebf5;padding:0 7px}.v-search-block.v-search-block-value{background-color:#e6f0ff;padding:0 7px}.v-search-block.v-search-block-conjunction{background-color:#505a78;color:var(--v-color-white);padding:0 7px}.v-search-block.v-search-block-bracket{background-color:#dff5ab;padding:0 7px}.v-search{border:1px solid var(--v-color-border-tier2);border-radius:4px;box-sizing:border-box;position:relative;width:100%}.v-search .search-dropdown{position:absolute}.v-search .semantic-search-icon{background-image:image-set(url("webman/3rdparty/Spreadsheet/dist/assets/images/1x/textfield_icn_search_filter.png") 1x,url("webman/3rdparty/Spreadsheet/dist/assets/images/2x/textfield_icn_search_filter.png") 1.5x);background-position:0 0;background-size:24px;display:block;height:24px;left:6px;position:absolute;top:3px;width:24px}.v-search.has-error,.v-search.has-error:focus-within,.v-search.has-error:hover{border:1px solid var(--v-color-red)}.v-search:hover{border-color:#7c8a9880}.v-search:focus-within{border-color:var(--v-color-blue)}.v-search .v-search-popup{height:100%}.v-search .v-search-popup>.v-ps.ps{padding-right:0}.v-search .v-search-contenteditable{box-sizing:border-box;color:var(--v-color-font-tier1);line-height:30px;overflow:hidden;padding:0 11px 0 33px;width:100%}.v-search .v-search-contenteditable:empty:before{color:#888;content:attr(placeholder);float:left}.v-search .semantic-search-clear{background-image:image-set(url("webman/3rdparty/Spreadsheet/dist/assets/images/1x/textfield_bt_clear.png") 1x,url("webman/3rdparty/Spreadsheet/dist/assets/images/2x/textfield_bt_clear.png") 1.5x);background-size:24px;cursor:pointer;display:inline-block;height:24px;opacity:.4;position:absolute;right:4px;top:4px;width:24px}.v-search .semantic-search-clear:hover{opacity:.7}.v-search .semantic-search-clear:active{opacity:1}.v-select2-wrapper{--v-select-bkg-color:#fff;--v-select-bkg-color--hover:#fff;--v-select-bkg-color--invalid:#fff2f4;--v-select-bkg-color--focus:#fff;--v-select-bkg-color--disabled:#eceef0;--v-select-font-size:13px;--v-select-color:#2e3032;--v-select-color__input-placeholder:#babcbe;--v-select-color--disabled:#babcbe;--v-select-height__input:20px;--v-select-line-height__input:20px;--v-select-border-width:1px;--v-select-border:1px solid #d8dadc;--v-select-border-color--hover:#c4c6c8;--v-select-border-color--invalid:#fa899c;--v-select-border-color--focus:var(--d-theme-main-color);--v-select-border-color--disabled:#d8dadc;--v-select-border-radius:3px;--v-select-size__icon:24px;--v-select-size__dropdown-icon:24px;--v-select-opacity__icon--disabled:1;--v-select-size__clear-icon:24px;--v-select-opacity__clear-icon:1;--v-select-opacity__clear-icon--hover:1;--v-select-opacity__clear-icon--active:1;--v-select-padding-tb__dropdown:8px;--v-select-padding-lr__dropdown:8px;--v-select-bkg-color__dropdown:#fff;--v-select-border-radius__dropdown:3px;--v-select-border__dropdown:1px solid #d8dadc;--v-select-border-width__dropdown:1px;--v-select-box-shadow__dropdown:0 2px 8px #00000040;--v-select-padding__menu-item:0 6px;--v-select-border-radius__menu-item:3px;--v-select-bkg-color__menu-item--selected:#eceef0;--v-select-height__menu-item:30px;--v-select-color__menu-item:#2e3032;--v-select-color__menu-item--selected:#2e3032;--v-select-color__menu-item--disabled:#babcbe;--v-select-color__item-link--disabled:#babcbe;--v-select-color__menu-item--action:var(--v-color-action-normal);--v-select-color__menu-item--selected-action:var(--v-color-action-normal);--v-select-color__menu-item--disabled-action:rgba(var(--d-theme-main-color),0.4);--v-select-color__menu-item--not-found:var(--v-color-font-tier3);--v-select-padding-left__title--with-icon:24px;--v-select-line-height__multiline-option:var(--v-line-height-200);--v-select-padding-tb__multiline-option:2px;--v-select-font-weight__multiline-option-title:var(--v-font-weight-bold);--v-select-color__multiline-option-title:var(--v-color-font-tier1);--v-select-color__multiline-option-title--disabled:var(--v-color-font-tier3);--v-select-color__multiline-option-desc:var(--v-color-font-tier1);--v-select-color__multiline-option-desc--disabled:var(--v-color-font-tier3);--v-select-color__item-desc:#7e8082;--v-select-font-size__item-desc:13px;--v-select-margin-left__item-desc:4px;--v-select-height__dropdown-loading-text:30px;--v-select-padding-left__dropdown-loading-text:6px;--v-select-color__dropdown-loading-text:var(--v-color-font-tier1);--v-select-margin-right__dropdown-loading-spin:4px;--v-select-margin-right__menu-item-icon:4px;--v-select-size__checkbox:20px;--v-select-size__tick:24px;--v-select-height__group-label:28px;--v-select-color__group-label:#7e8082;--v-select-color__group-title--disabled:#babcbe;--v-select-padding-left__group-label:6px;--v-select-padding-right__group-label:12px;--v-select-font-size__group-label:12px;--v-select-font-weight__group-label:400;--v-select-margin__menu-divider:6px 0;--v-select-border-top__menu-divider:1px solid #e2e4e6;--v-select-opacity__menu-item-icon--disabled:1;--v-select-padding-left__menu-item-icon:6px;--v-select-padding-left__menu-check-item:8px;--v-select-margin-right__menu-check-item-icon:6px;--v-select-padding-left__menu-indent:36px;--v-select-padding-left__menu-tick-item:6px;--v-select-margin-right__menu-tick-item-icon:4px;--v-select-padding-rules-text-padding-top:5px;--v-select-padding-rules-text-padding-right:4px;--v-select-padding-rules-text-padding-right--has-icon:4px;--v-select-padding-rules-text-padding-bottom:5px;--v-select-padding-rules-text-padding-left:10px;--v-select-padding-rules-text-padding-left--has-icon:6px;--v-select-padding-rules-text-gap__suffix-wrapper:2px;--v-select-padding-rules-text-margin__suffix-wrapper:0 0 0 8px;--v-select-padding-rules-text-margin__prefix-wrapper:0 4px 0 0;--v-select-padding-rules-label-padding-top:2px;--v-select-padding-rules-label-padding-bottom:2px;--v-select-padding-rules-label-padding-right:2px;--v-select-padding-rules-label-padding-right--has-icon:8px;--v-select-padding-rules-label-padding-left:3px;--v-select-padding-rules-label-padding-left--full-width:12px;--v-select-padding-rules-label-padding-left--display:12px;--v-select-padding-rules-label-padding-left--has-icon:6px;--v-select-padding-rules-label-gap__suffix-wrapper:2px;--v-select-padding-rules-label-margin__suffix-wrapper:1px 0 1px 4px;--v-select-padding-rules-label-margin__prefix-wrapper:1px 4px 1px 0;--v-select-padding-rules-label-width__ps:6px;--v-select-padding-rules-label-right__ps:2px;--v-select-padding-rules-label-margin-top__ps-rail:1px;background-color:var(--v-select-bkg-color);border:var(--v-select-border);border-radius:var(--v-select-border-radius);box-sizing:border-box;color:var(--v-select-color);font-size:var(--v-select-font-size);height:var(--height);overflow:hidden;padding-bottom:0;padding-left:calc(var(--v-select-padding-rules-text-padding-left) - var(--v-select-border-width));padding-right:calc(var(--v-select-padding-rules-text-padding-right) - var(--v-select-border-width));padding-top:0;position:relative;width:var(--width)}.v-select2-wrapper:has(.prefix-wrapper--has-icon){padding-left:calc(var(--v-select-padding-rules-text-padding-left--has-icon) - var(--v-select-border-width))}.v-select2-wrapper:has(.suffix-wrapper--has-icon){padding-right:calc(var(--v-select-padding-rules-text-padding-right--has-icon) - var(--v-select-border-width))}.v-select2-wrapper .input-wrapper .prefix-wrapper{margin:var(--v-select-padding-rules-text-margin__prefix-wrapper)}.v-select2-wrapper .input-wrapper .suffix-wrapper{gap:var(--v-select-padding-rules-text-gap__suffix-wrapper);margin:var(--v-select-padding-rules-text-margin__suffix-wrapper)}.v-select2-wrapper .select-input{padding-bottom:calc(var(--v-select-padding-rules-text-padding-bottom) - var(--v-select-border-width));padding-left:0;padding-right:0;padding-top:calc(var(--v-select-padding-rules-text-padding-top) - var(--v-select-border-width))}.v-select2-wrapper .input-wrapper{align-items:center;display:flex;flex-direction:row;position:relative}.v-select2-wrapper .input-wrapper .prefix-wrapper,.v-select2-wrapper .input-wrapper .suffix-wrapper{align-items:center;display:flex;flex:0 0 auto;flex-direction:row}.v-select2-wrapper .input-wrapper .v-select-ul-wrap{flex:1 1 auto}.v-select2-wrapper .v-icon{height:var(--v-select-size__icon);width:var(--v-select-size__icon)}.v-select2-wrapper .v-select2-input{background-color:#0000;border:0;color:var(--v-select-color);height:var(--v-select-height__input);line-height:var(--v-select-line-height__input);vertical-align:top;width:100%}.v-select2-wrapper .v-select2-input::placeholder{color:var(--v-select-color__input-placeholder)}.has-error .v-select2-wrapper{background-color:var(--v-select-bkg-color--invalid);border-color:var(--v-select-border-color--invalid)}.v-select2-wrapper.readonly .v-select2-input{cursor:pointer}.v-select2-wrapper .v-select2-text-display{cursor:pointer;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.v-select2-wrapper .v-select2-text-display.placeholder{color:var(--v-select-color__input-placeholder)}.v-select2-wrapper .v-select-ul-wrap{box-sizing:border-box;display:flex;flex-wrap:wrap;gap:var(--v-multiple-select-gap__ul-wrapper);list-style:none;margin:0;padding:0;width:100%}.v-select2-wrapper .select-adjust{background-image:image-set(url("webman/3rdparty/Spreadsheet/dist/assets/images/1x/textfield_bt_search_right_advanced.png") 1x,url("webman/3rdparty/Spreadsheet/dist/assets/images/2x/textfield_bt_search_right_advanced.png") 1.5x);background-size:24px 48px}.v-select2-wrapper .select-adjust.active,.v-select2-wrapper .select-adjust:active{background-position-y:-24px}.v-select2-wrapper .select-adjust.active:not(.disabled),.v-select2-wrapper .select-adjust:active:not(.disabled){color:var(--active);fill-opacity:var(--fill-opacity--active)}.v-select2-wrapper .select-adjust:hover{background-position-y:-24px}.v-select2-wrapper .select-adjust:hover:not(.disabled){color:var(--hover);fill-opacity:var(--fill-opacity--hover)}.v-select2-wrapper .select-adjust.show-advanced-panel{background-position-y:-24px}.v-select2-wrapper .select-adjust.show-advanced-panel:not(.disabled){color:var(--active);fill-opacity:var(--fill-opacity--active)}.v-select2-wrapper .select-dropdown{background-color:#0000;background-image:image-set(url("webman/3rdparty/Spreadsheet/dist/assets/images/1x/combo_trigger.png") 1x,url("webman/3rdparty/Spreadsheet/dist/assets/images/2x/combo_trigger.png") 1.5x);background-position:0 0;background-size:var(--v-select-size__dropdown-icon);cursor:pointer;height:var(--v-select-size__dropdown-icon);width:var(--v-select-size__dropdown-icon)}.v-select2-wrapper .select-filter,.v-select2-wrapper .select-search{background-image:image-set(url("webman/3rdparty/Spreadsheet/dist/assets/images/1x/textfield_icn_search_filter.png") 1x,url("webman/3rdparty/Spreadsheet/dist/assets/images/2x/textfield_icn_search_filter.png") 1.5x);background-position:0 0;background-size:24px}.v-select2-wrapper .select-filter{background-position:0 -24px}.v-select2-wrapper .select-advanced-search{background-image:url(webman/3rdparty/Spreadsheet/dist/assets/images/svg/advanced_search.svg)}.v-select2-wrapper .select-advanced-filter{background-image:url(webman/3rdparty/Spreadsheet/dist/assets/images/svg/advanced_filter.svg)}.v-select2-wrapper .select-advanced-filter,.v-select2-wrapper .select-advanced-search{background-position:0 0;background-size:32px;cursor:pointer;height:24px;width:32px}.v-select2-wrapper .select-advanced-filter.active,.v-select2-wrapper .select-advanced-search.active{background-position-y:-48px}.v-select2-wrapper .select-advanced-filter.show-advanced-panel,.v-select2-wrapper .select-advanced-filter.show-advanced-panel.active,.v-select2-wrapper .select-advanced-filter:active,.v-select2-wrapper .select-advanced-filter:active.active,.v-select2-wrapper .select-advanced-filter:hover,.v-select2-wrapper .select-advanced-filter:hover.active,.v-select2-wrapper .select-advanced-search.show-advanced-panel,.v-select2-wrapper .select-advanced-search.show-advanced-panel.active,.v-select2-wrapper .select-advanced-search:active,.v-select2-wrapper .select-advanced-search:active.active,.v-select2-wrapper .select-advanced-search:hover,.v-select2-wrapper .select-advanced-search:hover.active{background-position-y:-24px}.v-select2-wrapper .select-clear{background-image:image-set(url("webman/3rdparty/Spreadsheet/dist/assets/images/1x/textfield_bt_clear.png") 1x,url("webman/3rdparty/Spreadsheet/dist/assets/images/2x/textfield_bt_clear.png") 1.5x);background-size:var(--v-select-size__clear-icon);cursor:pointer;height:var(--v-select-size__clear-icon);opacity:var(--v-select-opacity__clear-icon);width:var(--v-select-size__clear-icon)}.v-select2-wrapper .select-clear:hover{opacity:var(--v-select-opacity__clear-icon--hover)}.v-select2-wrapper .select-clear:active{opacity:var(--v-select-opacity__clear-icon--active)}.v-select2-wrapper:hover{background-color:var(--v-select-bkg-color--hover);border-color:var(--v-select-border-color--hover)}.has-error .v-select2-wrapper:hover{background-color:var(--v-select-bkg-color--invalid);border-color:var(--v-select-border-color--invalid)}.v-select2-wrapper.focused,.v-select2-wrapper.pressed{background-color:var(--v-select-bkg-color--focus);border-color:var(--v-select-border-color--focus)}.v-select2-wrapper.focused .select-dropdown,.v-select2-wrapper.pressed .select-dropdown{background-position:0 -24px}.v-select2-wrapper.focused .select-dropdown:not(.disabled),.v-select2-wrapper.pressed .select-dropdown:not(.disabled){color:var(--active);fill-opacity:var(--fill-opacity--active)}.has-error .v-select2-wrapper.focused,.has-error .v-select2-wrapper.pressed{background-color:var(--v-select-bkg-color--invalid);border-color:var(--v-select-border-color--invalid)}.v-select2-wrapper.disabled{background-color:var(--v-select-bkg-color--disabled);border-color:var(--v-select-border-color--disabled);color:var(--v-select-color--disabled)}.v-select2-wrapper.disabled .select-adjust{cursor:default}.v-select2-wrapper.disabled .select-adjust,.v-select2-wrapper.disabled .v-select2-icon{opacity:var(--v-select-opacity__icon--disabled)}.v-select2-wrapper.disabled .v-select2-icon .v-icon{cursor:default}.v-select2-wrapper.disabled .v-select2-icon .v-icon.select-advanced-filter,.v-select2-wrapper.disabled .v-select2-icon .v-icon.select-advanced-filter:active,.v-select2-wrapper.disabled .v-select2-icon .v-icon.select-advanced-filter:active.active,.v-select2-wrapper.disabled .v-select2-icon .v-icon.select-advanced-filter:hover,.v-select2-wrapper.disabled .v-select2-icon .v-icon.select-advanced-filter:hover.active,.v-select2-wrapper.disabled .v-select2-icon .v-icon.select-advanced-search,.v-select2-wrapper.disabled .v-select2-icon .v-icon.select-advanced-search:active,.v-select2-wrapper.disabled .v-select2-icon .v-icon.select-advanced-search:active.active,.v-select2-wrapper.disabled .v-select2-icon .v-icon.select-advanced-search:hover,.v-select2-wrapper.disabled .v-select2-icon .v-icon.select-advanced-search:hover.active{background-position-y:0}.v-select2-wrapper.disabled .v-multiselect-input,.v-select2-wrapper.disabled .v-select2-input{background-color:#0000;color:var(--v-select-color--disabled);cursor:default}.v-select2-wrapper.disabled .v-select2-text-display{cursor:default}.v-select2-wrapper.disabled .select-dropdown{background-position:0 0;cursor:default;opacity:var(--v-select-opacity__icon--disabled)}.v-select2-wrapper.v-multiselect-wrapper{--v-multiple-select-height__text-display:20px;--v-multiple-select-font-size__input:var(--v-font-size-tier1);--v-multiple-select-color__input:var(--v-color-font-tier1);--v-multiple-select-line-height__input:30px;--v-multiple-select-gap__ul-wrapper:4px;--v-multiple-select-bkg-color__item-wrapper:#f6f8fa;--v-multiple-select-bkg-color__item-wrapper--hover:#f0f2f4;--v-multiple-select-bkg-color__item-wrapper--active:#e6e8ea;--v-multiple-select-bkg-color__item-wrapper--disabled:rgba(var(--d-theme-main-color),0.1);--v-multiple-select-bkg-color__item-wrapper--invalid:#f2616d1a;--v-multiple-select-bkg-color__item-wrapper--invalid-hover:#f2616d33;--v-multiple-select-bkg-color__item-wrapper--invalid-active:#f2616d4d;--v-multiple-select-bkg-color__item-wrapper--invalid-disabled:#f2616d1a;--v-multiple-select-border-radius__item-wrapper:var(--v-border-radius-100);--v-multiple-select-color__item-label--disabled:var(--v-color-font-tier1);--v-multiple-select-color__item-label--active:var(--v-color-font-tier1);--v-multiple-select-color__item-label--invalid:var(--v-color-red);--v-multiple-select-color__item-label--invalid-active:var(--v-color-red);--v-multiple-select-color__item-label--invalid-disabled:var(--v-color-font-error-tier2);--v-multiple-select-padding__item-wrapper:0 4px 0 8px;--v-multiple-select-padding__item-wrapper--editing:2px 6px;--v-multiple-select-padding-left__item-wrapper--has-icon:6px;--v-multiple-select-padding-right__item-wrapper--disabled:12px;--v-multiple-select-font-size__item-label:var(--v-font-size-tier1);--v-multiple-select-color__item-label:var(--v-color-font-tier1);--v-multiple-select-line-height__item-label:20px;--v-multiple-select-margin-right__item-label-icon:2px;--v-multiple-select-margin-left__item-remove-icon:6px;--v-multiple-select-padding__input:0;--v-multiple-select-color__input-placeholder:#babcbe;--v-multiple-select-padding-lr:3px;--v-multiple-select-padding-right:25px;--v-multiple-select-width__ps:8px;--v-multiple-select-margin-top__ps-rail:0;--v-multiple-select-padding__ul-wrapper:0 0 0 6px;--v-multiple-select-padding-top__input:0;--v-multiple-select-padding-right__input:0;--v-multiple-select-padding-bottom__input:0;--v-multiple-select-padding-left__input:0;padding-bottom:0;padding-left:calc(var(--v-select-padding-rules-label-padding-left) - var(--v-select-border-width));padding-right:calc(var(--v-select-padding-rules-label-padding-right) - var(--v-select-border-width));padding-top:0}.v-select2-wrapper.v-multiselect-wrapper:has(.prefix-wrapper--has-icon){padding-left:calc(var(--v-select-padding-rules-label-padding-left--has-icon) - var(--v-select-border-width))}.v-select2-wrapper.v-multiselect-wrapper:has(.suffix-wrapper--has-icon){padding-right:calc(var(--v-select-padding-rules-label-padding-right--has-icon) - var(--v-select-border-width))}.v-select2-wrapper.v-multiselect-wrapper--full-width{padding-left:calc(var(--v-select-padding-rules-label-padding-left--full-width) - var(--v-select-border-width))}.v-select2-wrapper.v-multiselect-wrapper .input-wrapper .prefix-wrapper{margin:var(--v-select-padding-rules-label-margin__prefix-wrapper)}.v-select2-wrapper.v-multiselect-wrapper .input-wrapper .suffix-wrapper{gap:var(--v-select-padding-rules-label-gap__suffix-wrapper);margin:var(--v-select-padding-rules-label-margin__suffix-wrapper)}.v-select2-wrapper.v-multiselect-wrapper .select-input{padding-bottom:calc(var(--v-select-padding-rules-label-padding-bottom) - var(--v-select-border-width));padding-left:0;padding-right:0;padding-top:calc(var(--v-select-padding-rules-label-padding-top) - var(--v-select-border-width))}.v-select2-wrapper.v-multiselect-wrapper .input-wrapper{align-items:flex-start}.v-select2-wrapper.v-multiselect-wrapper--display-html,.v-select2-wrapper.v-multiselect-wrapper--display-text{padding-bottom:0;padding-left:calc(var(--v-select-padding-rules-text-padding-left) - var(--v-select-border-width));padding-right:calc(var(--v-select-padding-rules-text-padding-right) - var(--v-select-border-width));padding-top:0}.v-select2-wrapper.v-multiselect-wrapper--display-html:has(.prefix-wrapper--has-icon),.v-select2-wrapper.v-multiselect-wrapper--display-text:has(.prefix-wrapper--has-icon){padding-left:calc(var(--v-select-padding-rules-text-padding-left--has-icon) - var(--v-select-border-width))}.v-select2-wrapper.v-multiselect-wrapper--display-html:has(.suffix-wrapper--has-icon),.v-select2-wrapper.v-multiselect-wrapper--display-text:has(.suffix-wrapper--has-icon){padding-right:calc(var(--v-select-padding-rules-text-padding-right--has-icon) - var(--v-select-border-width))}.v-select2-wrapper.v-multiselect-wrapper--display-html .input-wrapper .prefix-wrapper,.v-select2-wrapper.v-multiselect-wrapper--display-text .input-wrapper .prefix-wrapper{margin:var(--v-select-padding-rules-text-margin__prefix-wrapper)}.v-select2-wrapper.v-multiselect-wrapper--display-html .input-wrapper .suffix-wrapper,.v-select2-wrapper.v-multiselect-wrapper--display-text .input-wrapper .suffix-wrapper{gap:var(--v-select-padding-rules-text-gap__suffix-wrapper);margin:var(--v-select-padding-rules-text-margin__suffix-wrapper)}.v-select2-wrapper.v-multiselect-wrapper--display-html .select-input,.v-select2-wrapper.v-multiselect-wrapper--display-text .select-input{padding-bottom:calc(var(--v-select-padding-rules-text-padding-bottom) - var(--v-select-border-width));padding-left:0;padding-right:0;padding-top:calc(var(--v-select-padding-rules-text-padding-top) - var(--v-select-border-width))}.v-select2-wrapper.v-multiselect-wrapper--display-html .input-wrapper,.v-select2-wrapper.v-multiselect-wrapper--display-text .input-wrapper{align-items:center;cursor:pointer}.v-select2-wrapper.v-multiselect-wrapper--full-width .input-wrapper input.v-multiselect-input{box-sizing:border-box;flex:1 1 auto;width:100%}.v-select2-wrapper.v-multiselect-wrapper .v-select2-text-display{flex:1 1 auto;height:var(--v-multiple-select-height__text-display);line-height:var(--v-multiple-select-height__text-display);overflow:hidden;text-overflow:ellipsis;-webkit-user-select:none;user-select:none;white-space:nowrap}.v-select2-advanced,.v-select2-dropdown{--v-select-bkg-color:#fff;--v-select-bkg-color--hover:#fff;--v-select-bkg-color--invalid:#fff2f4;--v-select-bkg-color--focus:#fff;--v-select-bkg-color--disabled:#eceef0;--v-select-font-size:13px;--v-select-color:#2e3032;--v-select-color__input-placeholder:#babcbe;--v-select-color--disabled:#babcbe;--v-select-height__input:20px;--v-select-line-height__input:20px;--v-select-border-width:1px;--v-select-border:1px solid #d8dadc;--v-select-border-color--hover:#c4c6c8;--v-select-border-color--invalid:#fa899c;--v-select-border-color--focus:var(--d-theme-main-color);--v-select-border-color--disabled:#d8dadc;--v-select-border-radius:3px;--v-select-size__icon:24px;--v-select-size__dropdown-icon:24px;--v-select-opacity__icon--disabled:1;--v-select-size__clear-icon:24px;--v-select-opacity__clear-icon:1;--v-select-opacity__clear-icon--hover:1;--v-select-opacity__clear-icon--active:1;--v-select-padding-tb__dropdown:8px;--v-select-padding-lr__dropdown:8px;--v-select-bkg-color__dropdown:#fff;--v-select-border-radius__dropdown:3px;--v-select-border__dropdown:1px solid #d8dadc;--v-select-border-width__dropdown:1px;--v-select-box-shadow__dropdown:0 2px 8px #00000040;--v-select-padding__menu-item:0 6px;--v-select-border-radius__menu-item:3px;--v-select-bkg-color__menu-item--selected:#eceef0;--v-select-height__menu-item:30px;--v-select-color__menu-item:#2e3032;--v-select-color__menu-item--selected:#2e3032;--v-select-color__menu-item--disabled:#babcbe;--v-select-color__item-link--disabled:#babcbe;--v-select-color__menu-item--action:var(--v-color-action-normal);--v-select-color__menu-item--selected-action:var(--v-color-action-normal);--v-select-color__menu-item--disabled-action:rgba(var(--d-theme-main-color),0.4);--v-select-color__menu-item--not-found:var(--v-color-font-tier3);--v-select-padding-left__title--with-icon:24px;--v-select-line-height__multiline-option:var(--v-line-height-200);--v-select-padding-tb__multiline-option:2px;--v-select-font-weight__multiline-option-title:var(--v-font-weight-bold);--v-select-color__multiline-option-title:var(--v-color-font-tier1);--v-select-color__multiline-option-title--disabled:var(--v-color-font-tier3);--v-select-color__multiline-option-desc:var(--v-color-font-tier1);--v-select-color__multiline-option-desc--disabled:var(--v-color-font-tier3);--v-select-color__item-desc:#7e8082;--v-select-font-size__item-desc:13px;--v-select-margin-left__item-desc:4px;--v-select-height__dropdown-loading-text:30px;--v-select-padding-left__dropdown-loading-text:6px;--v-select-color__dropdown-loading-text:var(--v-color-font-tier1);--v-select-margin-right__dropdown-loading-spin:4px;--v-select-margin-right__menu-item-icon:4px;--v-select-size__checkbox:20px;--v-select-size__tick:24px;--v-select-height__group-label:28px;--v-select-color__group-label:#7e8082;--v-select-color__group-title--disabled:#babcbe;--v-select-padding-left__group-label:6px;--v-select-padding-right__group-label:12px;--v-select-font-size__group-label:12px;--v-select-font-weight__group-label:400;--v-select-margin__menu-divider:6px 0;--v-select-border-top__menu-divider:1px solid #e2e4e6;--v-select-opacity__menu-item-icon--disabled:1;--v-select-padding-left__menu-item-icon:6px;--v-select-padding-left__menu-check-item:8px;--v-select-margin-right__menu-check-item-icon:6px;--v-select-padding-left__menu-indent:36px;--v-select-padding-left__menu-tick-item:6px;--v-select-margin-right__menu-tick-item-icon:4px;background-color:var(--v-select-bkg-color__dropdown);border:var(--v-select-border__dropdown);border-radius:var(--v-select-border-radius__dropdown);border-width:var(--v-select-border-width__dropdown);box-shadow:var(--v-select-box-shadow__dropdown);padding:calc(var(--v-select-padding-tb__dropdown) - var(--v-select-border-width__dropdown)) calc(var(--v-select-padding-lr__dropdown) - var(--v-select-border-width__dropdown))}.v-select2-dropdown{box-sizing:border-box;display:flex;flex-direction:column}.v-select2-dropdown .v-select2-dropdown-loading-text{align-items:center;color:var(--v-select-color__dropdown-loading-text);display:flex;line-height:var(--v-select-height__dropdown-loading-text);padding-left:var(--v-select-padding-left__dropdown-loading-text);-webkit-user-select:none;user-select:none}.v-select2-dropdown .v-select2-dropdown-loading-text .v-spin-icon{margin-right:var(--v-select-margin-right__dropdown-loading-spin)}.v-select2-dropdown .v-select2-dropdown-menu-item-group-label{color:var(--v-select-color__group-label);font-size:var(--v-select-font-size__group-label);font-weight:var(--v-select-font-weight__group-label);line-height:var(--v-select-height__group-label);overflow:hidden;padding:0 var(--v-select-padding-right__group-label) 0 var(--v-select-padding-left__group-label);text-overflow:ellipsis;white-space:nowrap}.v-select2-dropdown .v-select2-dropdown-menu-item{align-items:center;border-radius:var(--v-select-border-radius__menu-item);color:var(--v-select-color__menu-item);cursor:pointer;display:flex;height:var(--v-select-height__menu-item);line-height:var(--v-select-height__menu-item);overflow:hidden;padding:var(--v-select-padding__menu-item);text-overflow:ellipsis;white-space:nowrap}.v-select2-dropdown .v-select2-dropdown-menu-item.not-found{color:var(--v-select-color__menu-item--not-found);cursor:default;display:block}.v-select2-dropdown .v-select2-dropdown-menu-item .item-icon{background-position:0 0;background-size:24px;flex:0 0 auto;height:24px;margin-right:var(--v-select-margin-right__menu-item-icon);width:24px}.v-select2-dropdown .v-select2-dropdown-menu-item .item-desc{color:var(--v-select-color__item-desc);font-size:var(--v-select-font-size__item-desc);margin-left:var(--v-select-margin-left__item-desc);overflow:hidden;text-overflow:ellipsis}.v-select2-dropdown .v-select2-dropdown-menu-item .option-text{flex:0 1 auto;overflow:hidden;text-overflow:ellipsis}.v-select2-dropdown .v-select2-dropdown-menu-item .item-suffix{margin-left:auto}.v-select2-dropdown .v-select2-dropdown-menu-item.v-select2-dropdown-menu-multiline-item{align-items:center;display:flex;height:auto;line-height:var(--v-select-line-height__multiline-option);padding-bottom:var(--v-select-padding-tb__multiline-option);padding-top:var(--v-select-padding-tb__multiline-option)}.v-select2-dropdown .v-select2-dropdown-menu-item.v-select2-dropdown-menu-multiline-item .multiline-option-content-wrapper{align-items:center;display:flex;width:100%}.v-select2-dropdown .v-select2-dropdown-menu-item.v-select2-dropdown-menu-multiline-item .multiline-option-content-wrapper .multiline-option-content{display:grid}.v-select2-dropdown .v-select2-dropdown-menu-item.v-select2-dropdown-menu-multiline-item .multiline-option-content-wrapper .multiline-option-content .multiline-option-title{color:var(--v-select-color__multiline-option-title);display:inline-block;font-weight:var(--v-select-font-weight__multiline-option-title);vertical-align:top;width:100%}.v-select2-dropdown .v-select2-dropdown-menu-item.v-select2-dropdown-menu-multiline-item .multiline-option-content-wrapper .multiline-option-content .multiline-option-desc{color:var(--v-select-color__multiline-option-desc);display:inline-block;margin:0;overflow:hidden;text-overflow:ellipsis;vertical-align:top;width:100%}.v-select2-dropdown .v-select2-dropdown-menu-item.has-icon{padding-left:var(--v-select-padding-left__menu-item-icon)}.v-select2-dropdown .v-select2-dropdown-menu-item.disabled,.v-select2-dropdown .v-select2-dropdown-menu-item.disabled.activated,.v-select2-dropdown .v-select2-dropdown-menu-item.disabled.activated:active,.v-select2-dropdown .v-select2-dropdown-menu-item.disabled.activated:hover,.v-select2-dropdown .v-select2-dropdown-menu-item.disabled:active,.v-select2-dropdown .v-select2-dropdown-menu-item.disabled:hover{background-color:#0000;color:var(--v-select-color__menu-item--disabled);cursor:default}.v-select2-dropdown .v-select2-dropdown-menu-item.disabled .multiline-option-content-wrapper .multiline-option-content .multiline-option-title,.v-select2-dropdown .v-select2-dropdown-menu-item.disabled.activated .multiline-option-content-wrapper .multiline-option-content .multiline-option-title,.v-select2-dropdown .v-select2-dropdown-menu-item.disabled.activated:active .multiline-option-content-wrapper .multiline-option-content .multiline-option-title,.v-select2-dropdown .v-select2-dropdown-menu-item.disabled.activated:hover .multiline-option-content-wrapper .multiline-option-content .multiline-option-title,.v-select2-dropdown .v-select2-dropdown-menu-item.disabled:active .multiline-option-content-wrapper .multiline-option-content .multiline-option-title,.v-select2-dropdown .v-select2-dropdown-menu-item.disabled:hover .multiline-option-content-wrapper .multiline-option-content .multiline-option-title{color:var(--v-select-color__multiline-option-title--disabled)}.v-select2-dropdown .v-select2-dropdown-menu-item.disabled .multiline-option-content-wrapper .multiline-option-content .multiline-option-desc,.v-select2-dropdown .v-select2-dropdown-menu-item.disabled.activated .multiline-option-content-wrapper .multiline-option-content .multiline-option-desc,.v-select2-dropdown .v-select2-dropdown-menu-item.disabled.activated:active .multiline-option-content-wrapper .multiline-option-content .multiline-option-desc,.v-select2-dropdown .v-select2-dropdown-menu-item.disabled.activated:hover .multiline-option-content-wrapper .multiline-option-content .multiline-option-desc,.v-select2-dropdown .v-select2-dropdown-menu-item.disabled:active .multiline-option-content-wrapper .multiline-option-content .multiline-option-desc,.v-select2-dropdown .v-select2-dropdown-menu-item.disabled:hover .multiline-option-content-wrapper .multiline-option-content .multiline-option-desc{color:var(--v-select-color__multiline-option-desc--disabled)}.v-select2-dropdown .v-select2-dropdown-menu-item.disabled .item-desc,.v-select2-dropdown .v-select2-dropdown-menu-item.disabled.activated .item-desc,.v-select2-dropdown .v-select2-dropdown-menu-item.disabled.activated:active .item-desc,.v-select2-dropdown .v-select2-dropdown-menu-item.disabled.activated:hover .item-desc,.v-select2-dropdown .v-select2-dropdown-menu-item.disabled:active .item-desc,.v-select2-dropdown .v-select2-dropdown-menu-item.disabled:hover .item-desc{color:var(--v-select-color__menu-item--disabled)}.v-select2-dropdown .v-select2-dropdown-menu-item.disabled .item-icon,.v-select2-dropdown .v-select2-dropdown-menu-item.disabled.activated .item-icon,.v-select2-dropdown .v-select2-dropdown-menu-item.disabled.activated:active .item-icon,.v-select2-dropdown .v-select2-dropdown-menu-item.disabled.activated:hover .item-icon,.v-select2-dropdown .v-select2-dropdown-menu-item.disabled:active .item-icon,.v-select2-dropdown .v-select2-dropdown-menu-item.disabled:hover .item-icon{opacity:var(--v-select-opacity__menu-item--disabled)}.v-select2-dropdown .v-select2-dropdown-menu-item.tick{align-items:center;display:flex;padding-left:var(--v-select-padding-left__menu-tick-item)}.v-select2-dropdown .v-select2-dropdown-menu-item.tick.disabled .option-text{color:var(--v-select-color__menu-item--disabled)}.v-select2-dropdown .v-select2-dropdown-menu-item.tick.disabled .select-option-tick{opacity:.4}.v-select2-dropdown .v-select2-dropdown-menu-item.tick .select-option-tick,.v-select2-dropdown .v-select2-dropdown-menu-item.tick .select-option-untick{background-size:var(--v-select-size__tick);display:inline-block;flex-shrink:0;height:var(--v-select-size__tick);margin-right:var(--v-select-margin-right__menu-tick-item-icon);vertical-align:top;width:var(--v-select-size__tick)}.v-select2-dropdown .v-select2-dropdown-menu-item.tick .select-option-tick{background-image:image-set(url("webman/3rdparty/Spreadsheet/dist/assets/images/1x/menu_selected.png") 1x,url("webman/3rdparty/Spreadsheet/dist/assets/images/2x/menu_selected.png") 1.5x);background-size:var(--v-select-size__tick)}.v-select2-dropdown .v-select2-dropdown-menu-item.tick .select-option-untick{background:none}.v-select2-dropdown .v-select2-dropdown-menu-item.tick .option-text{color:var(--v-select-color__menu-item)}.v-select2-dropdown .v-select2-dropdown-menu-item.check{align-items:center;display:flex;padding-left:var(--v-select-padding-left__menu-check-item)}.v-select2-dropdown .v-select2-dropdown-menu-item.check.disabled .option-text{color:var(--v-select-color__menu-item--disabled)}.v-select2-dropdown .v-select2-dropdown-menu-item.check.disabled .checkbox-icon,.v-select2-dropdown .v-select2-dropdown-menu-item.check.disabled .checkbox-icon:active,.v-select2-dropdown .v-select2-dropdown-menu-item.check.disabled .checkbox-icon:hover{background-position:0 calc(var(--v-select-size__checkbox)*-2)}.v-select2-dropdown .v-select2-dropdown-menu-item.check.disabled.is-selected .checkbox-icon,.v-select2-dropdown .v-select2-dropdown-menu-item.check.disabled.is-selected .checkbox-icon:active,.v-select2-dropdown .v-select2-dropdown-menu-item.check.disabled.is-selected .checkbox-icon:hover{background-position:0 calc(var(--v-select-size__checkbox)*-5)}.v-select2-dropdown .v-select2-dropdown-menu-item.check.is-selected .checkbox-icon{background-position:0 calc(var(--v-select-size__checkbox)*-3)}.v-select2-dropdown .v-select2-dropdown-menu-item.check.is-selected .checkbox-icon:active,.v-select2-dropdown .v-select2-dropdown-menu-item.check.is-selected .checkbox-icon:hover{background-position:0 calc(var(--v-select-size__checkbox)*-4)}.v-select2-dropdown .v-select2-dropdown-menu-item.check .checkbox-icon{background-image:url(webman/3rdparty/Spreadsheet/dist/assets/images/svg/checkbox.svg);background-size:var(--v-select-size__checkbox);display:inline-block;flex-shrink:0;height:var(--v-select-size__checkbox);margin-right:var(--v-select-margin-right__menu-check-item-icon);vertical-align:top;width:var(--v-select-size__checkbox)}.v-select2-dropdown .v-select2-dropdown-menu-item.check .checkbox-icon:active,.v-select2-dropdown .v-select2-dropdown-menu-item.check .checkbox-icon:hover{background-position:0 calc(var(--v-select-size__checkbox)*-1)}.v-select2-dropdown .v-select2-dropdown-menu-item.check .option-text{color:var(--v-select-color__menu-item)}.v-select2-dropdown .v-select2-dropdown-menu-item.activated,.v-select2-dropdown .v-select2-dropdown-menu-item.selected{background:var(--v-select-bkg-color__menu-item--selected);color:var(--v-select-color__menu-item--selected)}.v-select2-dropdown .v-select2-dropdown-menu-item.action{color:var(--v-select-color__menu-item--action);flex-shrink:0}.v-select2-dropdown .v-select2-dropdown-menu-item.action.activated,.v-select2-dropdown .v-select2-dropdown-menu-item.action.selected{background:var(--v-select-bkg-color__menu-item--selected);color:var(--v-select-color__menu-item--selected-action)}.v-select2-dropdown .v-select2-dropdown-menu-item.action.activated.disabled,.v-select2-dropdown .v-select2-dropdown-menu-item.action.disabled{background-color:#0000;color:var(--v-select-color__menu-item--disabled-action)}.v-select2-dropdown .v-select2-dropdown-menu-item.indent{padding-left:var(--v-select-padding-left__menu-indent)}.v-select2-dropdown .v-select2-dropdown-divider{border-top:var(--v-select-border-top__menu-divider);margin:var(--v-select-margin__menu-divider);width:100%}.v-select2-dropdown ul{margin:0;padding-left:0}.v-multiselect-ct.v-scrollbar{--v-multiple-select-height__text-display:20px;--v-multiple-select-font-size__input:var(--v-font-size-tier1);--v-multiple-select-color__input:var(--v-color-font-tier1);--v-multiple-select-line-height__input:30px;--v-multiple-select-gap__ul-wrapper:4px;--v-multiple-select-bkg-color__item-wrapper:#f6f8fa;--v-multiple-select-bkg-color__item-wrapper--hover:#f0f2f4;--v-multiple-select-bkg-color__item-wrapper--active:#e6e8ea;--v-multiple-select-bkg-color__item-wrapper--disabled:rgba(var(--d-theme-main-color),0.1);--v-multiple-select-bkg-color__item-wrapper--invalid:#f2616d1a;--v-multiple-select-bkg-color__item-wrapper--invalid-hover:#f2616d33;--v-multiple-select-bkg-color__item-wrapper--invalid-active:#f2616d4d;--v-multiple-select-bkg-color__item-wrapper--invalid-disabled:#f2616d1a;--v-multiple-select-border-radius__item-wrapper:var(--v-border-radius-100);--v-multiple-select-color__item-label--disabled:var(--v-color-font-tier1);--v-multiple-select-color__item-label--active:var(--v-color-font-tier1);--v-multiple-select-color__item-label--invalid:var(--v-color-red);--v-multiple-select-color__item-label--invalid-active:var(--v-color-red);--v-multiple-select-color__item-label--invalid-disabled:var(--v-color-font-error-tier2);--v-multiple-select-padding__item-wrapper:0 4px 0 8px;--v-multiple-select-padding__item-wrapper--editing:2px 6px;--v-multiple-select-padding-left__item-wrapper--has-icon:6px;--v-multiple-select-padding-right__item-wrapper--disabled:12px;--v-multiple-select-font-size__item-label:var(--v-font-size-tier1);--v-multiple-select-color__item-label:var(--v-color-font-tier1);--v-multiple-select-line-height__item-label:20px;--v-multiple-select-margin-right__item-label-icon:2px;--v-multiple-select-margin-left__item-remove-icon:6px;--v-multiple-select-padding__input:0;--v-multiple-select-color__input-placeholder:#babcbe;--v-multiple-select-padding-lr:3px;--v-multiple-select-padding-right:25px;--v-multiple-select-width__ps:8px;--v-multiple-select-margin-top__ps-rail:0;--v-multiple-select-padding__ul-wrapper:0 0 0 6px;--v-multiple-select-padding-top__input:0;--v-multiple-select-padding-right__input:0;--v-multiple-select-padding-bottom__input:0;--v-multiple-select-padding-left__input:0;box-sizing:border-box;display:flex;flex-direction:column;position:static;width:100%}.v-multiselect-ct.v-scrollbar .y-bar{right:var(--v-select-padding-rules-label-right__ps);width:var(--v-select-padding-rules-label-width__ps)}.v-multiselect-ct.v-scrollbar .y-rail{margin-top:var(--v-select-padding-rules-label-margin-top__ps-rail)}.v-multiselect-ct.v-scrollbar .v-multiselect-item-wrapper{align-items:center;background:var(--v-multiple-select-bkg-color__item-wrapper);border-radius:var(--v-multiple-select-border-radius__item-wrapper);box-sizing:border-box;display:inline-flex;flex:0 0 auto;max-width:100%;overflow:hidden;padding:var(--v-multiple-select-padding__item-wrapper);position:relative;text-overflow:ellipsis;-webkit-user-select:none;user-select:none;vertical-align:top}.v-multiselect-ct.v-scrollbar .v-multiselect-item-wrapper.v-multiselect-item-disabled,.v-multiselect-ct.v-scrollbar .v-multiselect-item-wrapper.v-multiselect-item-disabled:active,.v-multiselect-ct.v-scrollbar .v-multiselect-item-wrapper.v-multiselect-item-disabled:hover{background-color:var(--v-multiple-select-bkg-color__item-wrapper--disabled);padding-right:var(--v-multiple-select-padding-right__item-wrapper--disabled)}.v-multiselect-ct.v-scrollbar .v-multiselect-item-wrapper.v-multiselect-item-disabled .v-multiselect-item-label,.v-multiselect-ct.v-scrollbar .v-multiselect-item-wrapper.v-multiselect-item-disabled:active .v-multiselect-item-label,.v-multiselect-ct.v-scrollbar .v-multiselect-item-wrapper.v-multiselect-item-disabled:hover .v-multiselect-item-label{color:var(--v-multiple-select-color__item-label--disabled)}.v-multiselect-ct.v-scrollbar .v-multiselect-item-wrapper.v-multiselect-item-disabled.v-multiselect-item-invalid,.v-multiselect-ct.v-scrollbar .v-multiselect-item-wrapper.v-multiselect-item-disabled.v-multiselect-item-invalid:active,.v-multiselect-ct.v-scrollbar .v-multiselect-item-wrapper.v-multiselect-item-disabled.v-multiselect-item-invalid:hover{background-color:var(--v-multiple-select-bkg-color__item-wrapper--invalid-disabled)}.v-multiselect-ct.v-scrollbar .v-multiselect-item-wrapper.v-multiselect-item-disabled.v-multiselect-item-invalid .v-multiselect-item-label,.v-multiselect-ct.v-scrollbar .v-multiselect-item-wrapper.v-multiselect-item-disabled.v-multiselect-item-invalid:active .v-multiselect-item-label,.v-multiselect-ct.v-scrollbar .v-multiselect-item-wrapper.v-multiselect-item-disabled.v-multiselect-item-invalid:hover .v-multiselect-item-label{color:var(--v-multiple-select-color__item-label--invalid-disabled)}.v-multiselect-ct.v-scrollbar .v-multiselect-item-wrapper.v-multiselect-item-disabled .v-multiselect-item-label-icon{opacity:var(--v-select-opacity__icon--disabled)}.v-multiselect-ct.v-scrollbar .v-multiselect-item-wrapper.v-multiselect-item-invalid{background-color:var(--v-multiple-select-bkg-color__item-wrapper--invalid)}.v-multiselect-ct.v-scrollbar .v-multiselect-item-wrapper.v-multiselect-item-invalid .v-multiselect-item-label{color:var(--v-multiple-select-color__item-label--invalid)}.v-multiselect-ct.v-scrollbar .v-multiselect-item-wrapper.v-multiselect-item-invalid:hover{background:var(--v-multiple-select-bkg-color__item-wrapper--invalid-hover)}.v-multiselect-ct.v-scrollbar .v-multiselect-item-wrapper.v-multiselect-item-invalid.selected,.v-multiselect-ct.v-scrollbar .v-multiselect-item-wrapper.v-multiselect-item-invalid:active,.v-multiselect-ct.v-scrollbar .v-multiselect-item-wrapper.v-multiselect-item-invalid:focus{background:var(--v-multiple-select-bkg-color__item-wrapper--invalid-active)}.v-multiselect-ct.v-scrollbar .v-multiselect-item-wrapper.v-multiselect-item-invalid.selected .v-multiselect-item-label,.v-multiselect-ct.v-scrollbar .v-multiselect-item-wrapper.v-multiselect-item-invalid:active .v-multiselect-item-label,.v-multiselect-ct.v-scrollbar .v-multiselect-item-wrapper.v-multiselect-item-invalid:focus .v-multiselect-item-label{color:var(--v-multiple-select-color__item-label--invalid-active)}.v-multiselect-ct.v-scrollbar .v-multiselect-item-wrapper.v-multiselect-item-invalid .multiple-select-label-remove{background-position:0 -120px;color:#d91111;fill-opacity:.4}.v-multiselect-ct.v-scrollbar .v-multiselect-item-wrapper.v-multiselect-item-invalid .multiple-select-label-remove:hover{background-position:0 -140px;fill-opacity:.5}.v-multiselect-ct.v-scrollbar .v-multiselect-item-wrapper.v-multiselect-item-invalid .multiple-select-label-remove:active,.v-multiselect-ct.v-scrollbar .v-multiselect-item-wrapper.v-multiselect-item-invalid .multiple-select-label-remove:focus{background-position:0 -160px;fill-opacity:.6}.v-multiselect-ct.v-scrollbar .v-multiselect-item-wrapper.has-icon{padding-left:var(--v-multiple-select-padding-left__item-wrapper--has-icon)}.v-multiselect-ct.v-scrollbar .v-multiselect-item-wrapper .v-multiselect-item-label{color:var(--v-multiple-select-color__item-label);flex:1 1 auto;font-size:var(--v-multiple-select-font-size__item-label);line-height:var(--v-multiple-select-line-height__item-label);overflow:hidden;text-overflow:ellipsis}.v-multiselect-ct.v-scrollbar .v-multiselect-item-wrapper .v-multiselect-item-label-icon{flex:0 0 auto;height:24px;margin-right:var(--v-multiple-select-margin-right__item-label-icon);width:24px}.v-multiselect-ct.v-scrollbar .v-multiselect-item-wrapper .multiple-select-label-remove{color:var(--v-color-action-active);cursor:pointer;display:inline-block;flex:0 0 auto;height:20px;left:0;margin-left:var(--v-multiple-select-margin-left__item-remove-icon);position:relative;top:0;vertical-align:top;width:20px;fill-opacity:.4;background-image:image-set(url("webman/3rdparty/Spreadsheet/dist/assets/images/1x/super_remove.png") 1x,url("webman/3rdparty/Spreadsheet/dist/assets/images/2x/super_remove.png") 1.5x);background-position:0 0;background-size:20px}.v-multiselect-ct.v-scrollbar .v-multiselect-item-wrapper .multiple-select-label-remove:hover{background-position:0 -20px;fill-opacity:.5}.v-multiselect-ct.v-scrollbar .v-multiselect-item-wrapper .multiple-select-label-remove:active,.v-multiselect-ct.v-scrollbar .v-multiselect-item-wrapper .multiple-select-label-remove:focus{background-position:0 -40px;fill-opacity:.6}.v-multiselect-ct.v-scrollbar .v-multiselect-item-wrapper:hover{background-color:var(--v-multiple-select-bkg-color__item-wrapper--hover)}.v-multiselect-ct.v-scrollbar .v-multiselect-item-wrapper.selected,.v-multiselect-ct.v-scrollbar .v-multiselect-item-wrapper:active,.v-multiselect-ct.v-scrollbar .v-multiselect-item-wrapper:focus{background-color:var(--v-multiple-select-bkg-color__item-wrapper--active)}.v-multiselect-ct.v-scrollbar .v-multiselect-item-wrapper.selected .v-multiselect-item-label-icon,.v-multiselect-ct.v-scrollbar .v-multiselect-item-wrapper:active .v-multiselect-item-label-icon,.v-multiselect-ct.v-scrollbar .v-multiselect-item-wrapper:focus .v-multiselect-item-label-icon{background-position:0 -24px}.v-multiselect-ct.v-scrollbar .v-multiselect-item-wrapper.selected .v-multiselect-item-label-icon:not(.disabled),.v-multiselect-ct.v-scrollbar .v-multiselect-item-wrapper:active .v-multiselect-item-label-icon:not(.disabled),.v-multiselect-ct.v-scrollbar .v-multiselect-item-wrapper:focus .v-multiselect-item-label-icon:not(.disabled){color:var(--active);fill-opacity:var(--fill-opacity--active)}.v-multiselect-ct.v-scrollbar .v-multiselect-item-wrapper.selected .v-multiselect-item-label,.v-multiselect-ct.v-scrollbar .v-multiselect-item-wrapper:active .v-multiselect-item-label,.v-multiselect-ct.v-scrollbar .v-multiselect-item-wrapper:focus .v-multiselect-item-label{color:var(--v-multiple-select-color__item-label--active)}.v-multiselect-ct.v-scrollbar .v-multiselect-item-wrapper.selected .multiple-select-label-remove,.v-multiselect-ct.v-scrollbar .v-multiselect-item-wrapper:active .multiple-select-label-remove,.v-multiselect-ct.v-scrollbar .v-multiselect-item-wrapper:focus .multiple-select-label-remove{background-position:0 -60px;color:#fff;fill-opacity:.7}.v-multiselect-ct.v-scrollbar .v-multiselect-item-wrapper.selected .multiple-select-label-remove:hover,.v-multiselect-ct.v-scrollbar .v-multiselect-item-wrapper:active .multiple-select-label-remove:hover,.v-multiselect-ct.v-scrollbar .v-multiselect-item-wrapper:focus .multiple-select-label-remove:hover{background-position:0 -80px;fill-opacity:.8}.v-multiselect-ct.v-scrollbar .v-multiselect-item-wrapper.selected .multiple-select-label-remove:active,.v-multiselect-ct.v-scrollbar .v-multiselect-item-wrapper.selected .multiple-select-label-remove:focus,.v-multiselect-ct.v-scrollbar .v-multiselect-item-wrapper:active .multiple-select-label-remove:active,.v-multiselect-ct.v-scrollbar .v-multiselect-item-wrapper:active .multiple-select-label-remove:focus,.v-multiselect-ct.v-scrollbar .v-multiselect-item-wrapper:focus .multiple-select-label-remove:active,.v-multiselect-ct.v-scrollbar .v-multiselect-item-wrapper:focus .multiple-select-label-remove:focus{background-position:0 -100px;fill-opacity:.9}.v-multiselect-ct.v-scrollbar .v-multiselect-item-wrapper--editing{background-color:#0000;border:none;color:var(--v-multiple-select-color__input);font-size:var(--v-multiple-select-font-size__input);line-height:var(--v-multiple-select-line-height__input);min-width:10px;padding:var(--v-multiple-select-padding__item-wrapper--editing);width:10px}.v-multiselect-ct.v-scrollbar .v-multiselect-item-wrapper--editing::placeholder{color:var(--v-multiple-select-color__input-placeholder)}.v-multiselect-ct.v-scrollbar input.v-multiselect-input{background-color:#0000;border-width:0;color:var(--v-multiple-select-color__input);font-size:var(--v-multiple-select-font-size__input);line-height:var(--v-multiple-select-line-height__input);min-width:10px;padding:var(--v-multiple-select-padding__input);width:10px}.v-multiselect-ct.v-scrollbar input.v-multiselect-input::placeholder{color:var(--v-multiple-select-color__input-placeholder)}.slide-up-down-enter-active,.slide-up-down-leave-active{transition:max-height .24s ease,padding-top .24s ease,padding-bottom .24s ease}.v-slider{--v-slider-min-width__slider:182px;--v-slider-padding__slider:6px 3px;--v-slider-height__line:16px;--v-slider-bkg-color__line:#ced0d2;--v-slider-border-radius__line:var(--v-border-radius-50);--v-slider-opacity__line--disabled:1;--v-slider-bkg-color__line--active:var(--d-theme-main-color);--v-slider-margin__thumb-line:6px 0;--v-slider-height__thumb-line:4px;--v-slider-height__thumb:16px;--v-slider-width__thumb:6px;--v-slider-border__thumb:1px solid #c4c6c8;--v-slider-border__thumb--hover:1px solid #c4c6c8;--v-slider-border__thumb--disabled:1px solid #c4c6c8;--v-slider-border-radius__thumb:1px;--v-slider-bkg-color__thumb--disabled:#f6f8fa;--v-slider-bkg-color__thumb:#f6f8fa;--v-slider-margin__suffix:0 0 0 16px;--v-slider-margin__prefix:0 16px 0 0;--v-slider-gap__labels:16px;--v-slider-height__slider:30px;min-width:var(--v-slider-min-width__slider);position:relative;transition:all .2s}.v-slider,.v-slider .v-slider-line-wrapper{box-sizing:border-box;display:flex;width:100%}.v-slider .v-slider-line-wrapper{flex-direction:column;padding:var(--v-slider-padding__slider);transition:inherit}.v-slider .v-slider-labels{align-items:center;display:flex;flex-direction:row;gap:var(--v-slider-gap__labels)}.v-slider .v-slider-prefix-labels{margin:var(--v-slider-margin__prefix)}.v-slider .v-slider-suffix-labels{margin:var(--v-slider-margin__suffix)}.v-slider .v-slider-suffix-labels .slider-input input{min-width:max-content}.v-slider .v-slider-line{cursor:pointer;height:var(--v-slider-height__line);position:relative;transition:inherit;-webkit-user-select:none;user-select:none;width:100%}.v-slider .v-slider-line:after,.v-slider .v-slider-line:before{border-radius:var(--v-slider-border-radius__line);content:"";height:var(--v-slider-height__thumb-line);left:0;margin:var(--v-slider-margin__thumb-line);position:absolute;top:0;transition:inherit;width:100%}.v-slider .v-slider-line:before{background:var(--v-slider-bkg-color__line)}.v-slider .v-slider-line:after{background:var(--v-slider-bkg-color__line--active);width:var(--percent)}.v-slider .v-slider-line .v-slider-thumb{background-color:var(--v-slider-bkg-color__thumb);border:var(--v-slider-border__thumb);border-radius:var(--v-slider-border-radius__thumb);box-sizing:border-box;cursor:pointer;height:var(--v-slider-height__thumb);left:var(--percent);position:relative;top:50%;transform:translate(-50%,-50%);transition:inherit;transition-property:left;-webkit-user-select:none;user-select:none;width:var(--v-slider-width__thumb);z-index:var(--v-z-index-slider-thumb)}.v-slider .v-slider-line .v-slider-thumb:before{--v-slider-thumb-tip-color:var(--v-color-white);--v-slider-thumb-tip-border:1px solid #969696;--v-slider-thumb-tip-bkg-color:#606264;background-color:var(--v-slider-thumb-tip-bkg-color);border:var(--v-slide-thumb-tip-border);border-radius:4px;bottom:100%;box-shadow:0 1px 4px 0 #0000004d;color:var(--v-slider-thumb-tip-color);content:var(--value);display:none;left:50%;line-height:20px;margin-bottom:6px;padding:3px 12px;position:absolute;transform:translateX(-50%)}.v-slider.v-slider-disabled .v-slider-line{cursor:default}.v-slider.v-slider-disabled .v-slider-line:after,.v-slider.v-slider-disabled .v-slider-line:before{opacity:var(--v-slider-opacity__line--disabled)}.v-slider.v-slider-disabled .v-slider-line .v-slider-thumb{background-color:var(--v-slider-bkg-color__thumb--disabled);border:var(--v-slider-border__thumb--disabled);cursor:default}.v-slider.v-slider-dragging{transition:none}.v-slider.v-slider-dragging .v-slider-line .v-slider-thumb:before{display:none}.v-slider.v-slider-dragging.has-tip .v-slider-line .v-slider-thumb:before{display:block}.v-slider:hover:not(.v-slider-disabled) .v-slider-line .v-slider-thumb{border:var(--v-slider-border__thumb--hover)}.v-space{--v-space-gap--regular:12px;--v-space-gap--dense:6px;--v-space-gap--none:0;display:flex}.v-space.direction-row{flex-direction:row}.v-space.direction-column{flex-direction:column}.v-space.spacing-regular{gap:var(--v-space-gap--regular)}.v-space.spacing-none{gap:var(--v-space-gap--none)}.v-space.spacing-dense{gap:var(--v-space-gap--dense)}.v-space.align-start{align-items:flex-start}.v-space.justify-content-start{justify-content:flex-start}.v-space.align-end{align-items:flex-end}.v-space.justify-content-end{justify-content:flex-end}.v-space.align-baseline{align-items:baseline}.v-space.justify-content-baseline{justify-content:baseline}.v-space.align-center{align-items:center}.v-space.justify-content-center{justify-content:center}.v-space.align-stretch{align-items:stretch}.v-space.justify-content-stretch{justify-content:stretch}.v-space.justify-content-space-between{justify-content:space-between}.v-space.justify-content-space-around{justify-content:space-around}.v-space.justify-content-space-evenly{justify-content:space-evenly}.v-spin-wrapper.large-dots{--v-large-dots-spin-width:320px;--v-large-dots-spin-height:60px;--v-large-dots-spin-size__dot:12px;--v-large-dots-spin-color__dot:var(--v-color-main);--v-large-dots-spin-gap__dot:10px;display:flex;height:var(--v-large-dots-spin-height);margin:auto;position:relative;width:var(--v-large-dots-spin-width)}.v-spin-wrapper.large-dots .loader-inner{animation:loading-dots .8s ease infinite alternate;animation-delay:.32s;border-radius:50%;height:var(--v-large-dots-spin-size__dot);margin:auto;position:relative;top:calc(var(--v-large-dots-spin-size__dot)*-1);width:var(--v-large-dots-spin-size__dot)}.v-spin-wrapper.large-dots .loader-inner:after,.v-spin-wrapper.large-dots .loader-inner:before{--v-large-dots-spin-width:320px;--v-large-dots-spin-height:60px;--v-large-dots-spin-size__dot:12px;--v-large-dots-spin-color__dot:var(--v-color-main);--v-large-dots-spin-gap__dot:10px;animation:loading-dots .8s ease infinite alternate;border-radius:50%;content:"";height:var(--v-large-dots-spin-size__dot);position:absolute;width:var(--v-large-dots-spin-size__dot)}.v-spin-wrapper.large-dots .loader-inner:before{animation-delay:.16s;left:calc((var(--v-large-dots-spin-size__dot) + var(--v-large-dots-spin-gap__dot))*-1)}.v-spin-wrapper.large-dots .loader-inner:after{animation-delay:.48s;right:calc((var(--v-large-dots-spin-size__dot) + var(--v-large-dots-spin-gap__dot))*-1)}@keyframes loading-dots{0%{box-shadow:0 var(--v-large-dots-spin-size__dot) 0 calc(var(--v-large-dots-spin-size__dot)*-1) var(--v-large-dots-spin-color__dot)}to{box-shadow:0 var(--v-large-dots-spin-size__dot) 0 var(--v-large-dots-spin-color__dot)}}.v-spin-icon{--v-spin-icon-size:24px;--v-spin-icon-top:0;--v-spin-icon-left:0;--v-spin-icon-size__rect:16px;--v-spin-icon-border__rect:2px solid var(--v-color-main);--v-spin-icon-border-radius__rect:50%;display:inline-block;height:var(--v-spin-icon-size);left:var(--v-spin-icon-left);overflow:hidden;position:relative;top:var(--v-spin-icon-top);vertical-align:top;width:var(--v-spin-icon-size)}.v-spin-icon>i{animation:keyframe-v-spin-icon-1 2s linear infinite;height:var(--v-spin-icon-size__rect);left:calc(var(--v-spin-icon-size)/2 - var(--v-spin-icon-size__rect)/2);position:absolute;top:calc(var(--v-spin-icon-size)/2 - var(--v-spin-icon-size__rect)/2);width:var(--v-spin-icon-size__rect)}@keyframes keyframe-v-spin-icon-1{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.v-spin-icon>i>i{bottom:0;display:block;height:var(--v-spin-icon-size__rect);left:0;margin:auto;position:absolute;right:0;top:0;width:var(--v-spin-icon-size__rect);clip:rect(0,var(--v-spin-icon-size__rect),var(--v-spin-icon-size__rect),calc(var(--v-spin-icon-size__rect)/2));animation:keyframe-v-spin-icon-2 1.4s linear infinite}@keyframes keyframe-v-spin-icon-2{0%{transform:rotate(0deg)}to{transform:rotate(200deg)}}.v-spin-icon>i>i:after{bottom:0;content:"";height:var(--v-spin-icon-size__rect);left:0;margin:auto;position:absolute;right:0;top:0;width:var(--v-spin-icon-size__rect);clip:rect(0,var(--v-spin-icon-size__rect),var(--v-spin-icon-size__rect),calc(var(--v-spin-icon-size__rect)/2));animation:keyframe-v-spin-icon-3 1.4s ease-in infinite;border:var(--v-spin-icon-border__rect);border-radius:var(--v-spin-icon-border-radius__rect);box-sizing:border-box}@keyframes keyframe-v-spin-icon-3{0%{transform:rotate(-160deg)}40%{transform:rotate(-90deg)}to{transform:rotate(160deg)}}.v-spin{background-color:var(--v-spin-bkg-color);background-image:none;border:1px solid var(--v-spin-border-color);border-image:initial;border-radius:var(--v-spin-border-radius);box-shadow:var(--v-spin-box-shadow);overflow:hidden;padding:0;position:absolute;z-index:var(--v-z-index-spin-wrapper)}.v-spin .v-spin-icon{left:var(--v-spin-left__spin-icon);position:absolute;top:var(--v-spin-top__spin-icon)}.v-spin-text{background-color:var(--v-spin-bkg-color__text);background-image:none;line-height:var(--v-spin-line-height__text);min-height:var(--v-spin-line-height__text);padding:var(--v-spin-padding-tb__text) var(--v-spin-padding-lr__text);position:relative}.v-spin-text.has-icon{padding-left:var(--v-spin-padding-left__text--has-icon)}.v-spin-wrapper{--v-spin-bkg-color:var(--v-color-white);--v-spin-box-shadow:#00000029 0px 1px 4px 0;--v-spin-border-radius:3px;--v-spin-border-color:1px solid var(--v-color-border-tier2);--v-spin-top__spin-icon:4px;--v-spin-left__spin-icon:8px;--v-spin-line-height__text:20px;--v-spin-padding-tb__text:6px;--v-spin-padding-lr__text:16px;--v-spin-padding-left__text--has-icon:38px;--v-spin-bkg-color__text:var(--v-color-white);--v-spin-opacity__masking:0.5;--v-spin-bkg-color__masking:var(--v-color-white);position:relative}.v-spin-wrapper .v-spin{left:50%;top:50%;transform:translate(-50%,-50%)}.v-spin-wrapper-masking{background-color:var(--v-spin-bkg-color__masking);height:100%;opacity:var(--v-spin-opacity__masking);position:absolute;width:100%;z-index:var(--v-z-index-spin-mask)}.v-tabs.v-layout{--v-tabs-height:100%;--v-tabs-height__nav-wrap:30px;--v-tabs-border-bottom__nav-wrap:1px solid var(--v-color-border-tier2);--v-tabs-border-width__nav-wrap:1px;--v-tabs-border-color__nav-wrap:#c6d4e0b3;--v-tabs-width__gradient-filter:48px;--v-tab-color:var(--v-color-font-tier1);--v-tab-font-size:var(--v-font-size-tier2);--v-tab-font-weight:var(--v-font-weight-bold);--v-tab-line-height:28px;--v-tab-padding:0 14px 0 14px;--v-tab-margin-right:4px;--v-tab-color--hover:var(--v-color-main);--v-tab-color--active:var(--v-color-main);--v-tab-color--disabled:var(--v-color-font-tier3);--v-tab-font-weight--active:var(--v-font-weight-bold);--v-tab-font-weight--guard:var(--v-font-weight-normal);--v-tab-border-bottom--active:2px solid var(--v-color-main);--v-tab-size__error-dot:5px;--v-tab-bkg-color__error-dot:#fa4b4b;--v-tab-margin__error-dot:1px 0 0 1px;display:flex;flex-direction:column;height:var(--v-tabs-height)}.v-tabs.v-layout .v-tabs-nav-container{position:relative}.v-tabs.v-layout .v-tabs-nav-container:before{background-color:var(--v-tabs-border-color__nav-wrap);bottom:0;content:"";height:var(--v-tabs-border-width__nav-wrap);left:0;position:absolute;width:100%}.v-tabs.v-layout .v-tabs-nav-container.scrolling-to-left .prev-filter,.v-tabs.v-layout .v-tabs-nav-container.scrolling-to-right .next-filter{display:none}.v-tabs.v-layout .v-tabs-nav-container .gradient-filter{height:100%;pointer-events:none;position:absolute;width:var(--v-tabs-width__gradient-filter)}.v-tabs.v-layout .v-tabs-nav-container .gradient-filter.prev-filter{background-image:linear-gradient(90deg,#fff,#fff0);left:0;top:0}.v-tabs.v-layout .v-tabs-nav-container .gradient-filter.next-filter{background-image:linear-gradient(90deg,#fff0,#fff);right:0;top:0}.v-tabs.v-layout .v-tabs-nav-container .v-tabs-nav-wrap{display:flex;flex-direction:row;height:var(--v-tabs-height__nav-wrap);overflow:auto;position:relative;scrollbar-width:none}.v-tabs.v-layout .v-tabs-nav-container .v-tabs-nav-wrap::-webkit-scrollbar{display:none}.v-tabs.v-layout.v7 .v-tabs-tab.v-tabs-tab-active{align-items:center;border-bottom:none;display:inline-flex;flex-direction:column;position:relative;vertical-align:top}.v-tabs.v-layout.v7 .v-tabs-tab.v-tabs-tab-active:before{background-color:var(--v-color-white);border-color:var(--v-color-border-tier2);border-style:solid;border-width:1px 0 0 1px;bottom:-4px;content:"";height:9px;position:absolute;transform:rotate(45deg);width:9px}.v-tabs.v-layout .v-tabs-tab{box-sizing:border-box;color:var(--v-tab-color);cursor:pointer;display:inline-flex;flex:0 0 auto;flex-direction:column;font-size:var(--v-tab-font-size);font-weight:var(--v-tab-font-weight);height:100%;line-height:var(--v-tab-line-height);margin-right:var(--v-tab-margin-right);overflow:hidden;padding:var(--v-tab-padding);text-align:center}.v-tabs.v-layout .v-tabs-tab.v-tabs-tab-active{border-bottom:var(--v-tab-border-bottom--active);color:var(--v-tab-color--active);font-weight:var(--v-tab-font-weight--active)}.v-tabs.v-layout .v-tabs-tab.v-tabs-tab-disabled{color:var(--v-tab-color--disabled);pointer-events:none}.v-tabs.v-layout .v-tabs-tab.v-tabs-tab-hidden{display:none}.v-tabs.v-layout .v-tabs-tab:hover{color:var(--v-tab-color--hover)}.v-tabs.v-layout .tab-text-wrapper{display:flex;flex-direction:row;position:relative}.v-tabs.v-layout .tab-text-wrapper .error-dot{background-color:var(--v-tab-bkg-color__error-dot);border-radius:50%;height:var(--v-tab-size__error-dot);margin:var(--v-tab-margin__error-dot);position:relative;width:var(--v-tab-size__error-dot)}.v-tabs.v-layout .v-tabs-tab-text-guard{font-weight:var(--v-tab-font-weight--guard);height:0;overflow:hidden}.v-tabs.v-layout .v-tabs-tab-content.v-layout{--svc-layout-padding:4px 0 0 0;--v-tab-content-padding:var(--svc-layout-padding);--v-tab-content-padding-bottom__tbar-wrapper:8px;display:flex;flex:1 1 auto;overflow:hidden;padding:var(--v-tab-content-padding)}.v-tabs.v-layout .v-tabs-tab-content.v-layout .v-tabs-tabpane{flex:1 1 auto;overflow:hidden}.v-tabs.v-layout .v-tabs-tab-content.v-layout .v-tabs-tabpane .tbar-wrapper{font-size:0;padding-bottom:var(--v-tab-content-padding-bottom__tbar-wrapper)}.v-tabs.v-layout .button-region.row{flex-direction:row}.v-tabs.v-layout .button-region.column-reverse{flex-direction:column-reverse}.v-tabs.v-layout.mobile .v-tabs-footer.v-layout{padding:var(--v-tab-footer-padding--mobile)}.v-tabs.v-layout.mobile .v-tabs-footer.v-layout .button-region{display:flex;flex:1 1 auto;gap:var(--v-tab-footer-gap__button-region--mobile);overflow:hidden;padding:var(--v-tab-footer-padding__button-region--mobile);width:auto}.v-tabs.v-layout.mobile .v-tabs-footer.v-layout .button-region .v-btn{flex:1 1 0;margin:0}.v-tabs.v-layout .v-tabs-footer.v-layout{--v-tab-footer-border-top:0px solid #c6d4e080;--v-tab-footer-padding:12px 0 20px 0;--v-tab-footer-height:28px;--v-tab-footer-margin:var(--svc-layout-margin,0);--v-tab-footer-padding-right--pull-right:20px;--v-tab-footer-padding__button-region--mobile:0;--v-tab-footer-margin-left-button:10px;--v-tab-footer-padding--mobile:13px 24px 13px 24px;--v-tab-footer-gap__button-region--mobile:10px;border-top:var(--v-tab-footer-border-top);box-sizing:initial;display:flex;flex:0 0 auto;font-size:0;margin:var(--v-tab-footer-margin);padding:var(--v-tab-footer-padding);width:auto}.v-tabs.v-layout .v-tabs-footer.v-layout .pull-right{flex-shrink:0;margin-left:auto;padding-right:var(--v-tab-footer-padding-right--pull-right)}.v-tabs.v-layout .v-tabs-footer.v-layout .v-btn{margin-left:var(--v-tab-footer-margin-left-button)}.v-toast{--v-toast-max-width:min(100% - 40px,800px);--v-toast-font-size:var(--v-font-size-tier1);--v-toast-background-color:#6a6c6ef2;--v-toast-padding-top:8px;--v-toast-padding-bottom:8px;--v-toast-padding-right:20px;--v-toast-padding-left:20px;--v-toast-padding-left--has-icon:8px;--v-toast-padding-right--has-close:16px;--v-toast-border-width:1px;--v-toast-border:1px solid #6a6c6ef2;--v-toast-box-shadow:0 2px 8px 0 #00000040;--v-toast-border-radius:3px;--v-toast-margin__icon:0 6px 0 0;--v-toast-padding__text:2px 0;--v-toast-line-height__text:20px;--v-toast-color__text:var(--v-color-white-tier1);--v-toast-margin__close-btn:0 0 0 12px;--v-toast-width__close-btn:20px;--v-toast-height__close-btn:20px;--v-toast-color__action-btn:#fff;--v-toast-text-decoration__action-btn:underline;--v-toast-margin__action-btn:0 0 0 8px;--v-toast-padding-left__action-btn:0;--v-toast-padding-right__action-btn:0;--v-toast-border__action-btn:none;--v-toast-background-color__action-btn:inherit;align-items:center;background-color:var(--v-toast-background-color);border:var(--v-toast-border);border-radius:var(--v-toast-border-radius);box-shadow:var(--v-toast-box-shadow);box-sizing:border-box;display:flex;flex-direction:row;font-size:var(--v-toast-font-size);max-width:var(--v-toast-max-width);padding:calc(var(--v-toast-padding-top) - var(--v-toast-border-width)) calc(var(--v-toast-padding-right) - var(--v-toast-border-width)) calc(var(--v-toast-padding-bottom) - var(--v-toast-border-width)) calc(var(--v-toast-padding-left) - var(--v-toast-border-width));position:absolute;z-index:var(--v-z-index-toast-wrapper)}.v-toast.has-icon{padding-left:calc(var(--v-toast-padding-left--has-icon) - var(--v-toast-border-width))}.v-toast.has-close{padding-right:calc(var(--v-toast-padding-right--has-close) - var(--v-toast-border-width))}.v-toast .v-icon{margin:var(--v-toast-margin__icon)}.v-toast.animate-in{animation:bounce-in .3s ease-out}.v-toast .v-toast-text{color:var(--v-toast-color__text);display:inline-block;line-height:var(--v-toast-line-height__text);padding:var(--v-toast-padding__text);vertical-align:top}.v-toast .toast-close{background-image:image-set(url("webman/3rdparty/Spreadsheet/dist/assets/images/1x/toast_close.png") 1x,url("webman/3rdparty/Spreadsheet/dist/assets/images/2x/toast_close.png") 1.5x);background-size:20px;cursor:pointer;display:inline-block;height:var(--v-toast-height__close-btn);margin:var(--v-toast-margin__close-btn);vertical-align:top;width:var(--v-toast-width__close-btn)}.v-toast .toast-close:hover{background-position:0 calc(var(--v-toast-height__close-btn)*-1)}.v-toast .toast-close:active{background-position:0 calc(var(--v-toast-height__close-btn)*-2)}.v-toast .v-toast-action-btn{background-color:var(--v-toast-background-color__action-btn);border:var(--v-toast-border__action-btn);color:var(--v-toast-color__action-btn);margin:var(--v-toast-margin__action-btn);padding-left:var(--v-toast-padding-left__action-btn);padding-right:var(--v-toast-padding-right__action-btn);text-align:center;-webkit-text-decoration:var(--v-toast-text-decoration__action-btn);text-decoration:var(--v-toast-text-decoration__action-btn)}.v-toast .v-toast-action-btn:hover{cursor:pointer}.v-toast.fadeInUp-enter-active{animation:toastFadeInUp .3s}@keyframes toastFadeInUp{0%{opacity:0;transform:translate3d(0,100%,0)}to{opacity:1;transform:translateZ(0)}}.v-toggle{--v-toggle-height:28px;--v-toggle-line-height:var(--v-line-height-100);--v-toggle-padding__prefix:4px 0;--v-toggle-padding__suffix:4px 0;--v-toggle-width__loading:32px;--v-toggle-opacity--disabled:0.4;--v-toggle-color:var(--v-color-font-tier1);--v-toggle-color--disabled:var(--v-color-font-tier3);--v-toggle-gap:6px;--v-toggle-bkg-color:var(--v-item-bg-tier2);align-items:center;color:var(--v-toggle-color);cursor:pointer;display:flex;gap:var(--v-toggle-gap);height:var(--v-toggle-height);line-height:var(--v-toggle-line-height)}.v-toggle--loading{cursor:default}.v-toggle:hover .v-toggle__track{background-color:var(--v-toggle-track-bkg-color--hover)}.v-toggle--on .v-toggle__track{background-color:var(--v-toggle-track-bkg-color--on)}.v-toggle--on .v-toggle__indicator{transform:translateX(calc(var(--v-toggle-track-width) - var(--v-toggle-indicator-width) - var(--v-toggle-indicator-offset)))}.v-toggle--on:hover .v-toggle__track{background-color:var(--v-toggle-track-bkg-color--on-hover)}.v-toggle--disabled{color:var(--v-toggle-color--disabled);cursor:default}.v-toggle--disabled .v-toggle__track{opacity:var(--v-toggle-opacity--disabled)}.v-toggle--disabled .v-toggle__track,.v-toggle--disabled:hover .v-toggle__track{background-color:var(--v-toggle-track-bkg-color--disabled)}.v-toggle--disabled.v-toggle--on .v-toggle__track,.v-toggle--disabled.v-toggle--on:hover .v-toggle__track{background-color:var(--v-toggle-track-bkg-color--on-disabled)}.v-toggle__prefix{padding:var(--v-toggle-padding__prefix)}.v-toggle__suffix{padding:var(--v-toggle-padding__suffix)}.v-toggle__loading{align-items:center;display:flex;justify-content:center;width:var(--v-toggle-width__loading)}.v-toggle__track{--v-toggle-track-width:32px;--v-toggle-track-height:18px;--v-toggle-track-border-radius:18px;--v-toggle-track-bkg-color:#505a644d;--v-toggle-track-bkg-color--hover:#505a6480;--v-toggle-track-bkg-color--disabled:#505a644d;--v-toggle-track-bkg-color--on:var(--v-color-action-normal);--v-toggle-track-bkg-color--on-hover:var(--v-color-action-hover);--v-toggle-track-bkg-color--on-disabled:var(--v-color-action-normal);align-items:center;background-color:var(--v-toggle-track-bkg-color);border-radius:var(--v-toggle-track-border-radius);display:flex;height:var(--v-toggle-track-height);position:relative;width:var(--v-toggle-track-width)}.v-toggle__indicator{--v-toggle-indicator-bkg-color:var(--v-color-white);--v-toggle-indicator-width:12px;--v-toggle-indicator-height:12px;--v-toggle-indicator-border-radius:50%;--v-toggle-indicator-offset:3px;background-color:var(--v-toggle-indicator-bkg-color);border-radius:var(--v-toggle-indicator-border-radius);height:var(--v-toggle-indicator-height);margin:var(--v-toggle-indicator-margin);position:absolute;transform:translateX(var(--v-toggle-indicator-offset));transition:color .2s ease-in-out,transform .2s ease-in-out;width:var(--v-toggle-indicator-width)}.v-trap-focus-body{display:inherit;flex-direction:inherit;height:100%;width:100%}.v-trap-focus-indicator{height:0;overflow:hidden;width:0}.v-dd-ghost.v-tree-panel-dd{--v-tree-panel-ghost-bkg-color:#0000;--v-tree-panel-ghost-bkg-color__node-content--valid:var(--v-color-main);--v-tree-panel-ghost-bkg-color__node-content:#a0aab4;--v-tree-panel-ghost-margin-left__icon:2px;--v-tree-panel-ghost-width__icon:16px;--v-tree-panel-ghost-height__icon:16px;--v-tree-panel-ghost-padding__node-content:0 12px;--v-tree-panel-ghost-box-shadow__node-content:0 2px 4px 0 #00000014;--v-tree-panel-ghost-border-radius__node-content:var(--v-border-radius-300);--v-tree-panel-ghost-font-size__node-content:var(--v-font-size-tier1);--v-tree-panel-ghost-max-width__node-content:320px;--v-tree-panel-ghost-color__node-content:var(--v-color-white);--v-tree-panel-ghost-line-height__node-content:var(--v-line-height-100);--v-tree-panel-ghost-line-height__title:var(--v-line-height-100);--v-tree-panel-ghost-padding__title:4px 0;background-color:var(--v-tree-panel-ghost-bkg-color)!important}.v-dd-ghost.v-tree-panel-dd.dd-valid .v-tree-panel .v-tree-panel-node-content-wrapper{background-color:var(--v-tree-panel-ghost-bkg-color__node-content--valid)}.v-dd-ghost.v-tree-panel-dd .v-tree-panel .v-tree-panel-icon{background-size:16px;display:inline-block;flex:0 0 auto;height:var(--v-tree-panel-ghost-height__icon);margin-left:var(--v-tree-panel-ghost-margin-left__icon);vertical-align:top;width:var(--v-tree-panel-ghost-width__icon)}.v-dd-ghost.v-tree-panel-dd .v-tree-panel .v-tree-panel-node-content-wrapper{background-color:var(--v-tree-panel-ghost-bkg-color__node-content);border-radius:var(--v-tree-panel-ghost-border-radius__node-content);box-shadow:var(--v-tree-panel-ghost-box-shadow__node-content);box-sizing:border-box;color:var(--v-tree-panel-ghost-color__node-content);display:flex;font-size:var(--v-tree-panel-ghost-font-size__node-content);line-height:var(--v-tree-panel-ghost-line-height__node-content);max-width:var(--v-tree-panel-ghost-max-width__node-content);padding:var(--v-tree-panel-ghost-padding__node-content)}.v-dd-ghost.v-tree-panel-dd .v-tree-panel .v-tree-panel-node-content-wrapper .v-tree-panel-title{line-height:var(--v-tree-panel-ghost-line-height__title);overflow:hidden;padding:var(--v-tree-panel-ghost-padding__title);text-overflow:ellipsis;white-space:nowrap}.v-tree-panel-scrollbar{--v-tree-panel-scrollbar-padding-right__scrollbar:12px;--v-tree-panel-scrollbar-padding-bottom__scrollbar--horizontal:20px;--v-tree-panel-scrollbar-height__scrollbar-rail-x:14px;--v-tree-panel-scrollbar-bottom__scrollbar-rail-x:6px;padding-right:var(--v-tree-panel-scrollbar-padding-right__scrollbar)}.v-tree-panel-scrollbar.horizontal-scroll{padding-bottom:var(--v-tree-panel-scrollbar-padding-bottom__scrollbar--horizontal)}.v-tree-panel-scrollbar.horizontal-scroll .v-scrollbar-inner{display:inline-block}.v-tree-panel-scrollbar.horizontal-scroll .x-rail{bottom:var(--v-tree-panel-scrollbar-bottom__scrollbar-rail-x);height:var(--v-tree-panel-scrollbar-height__scrollbar-rail-x)}.layout-tree-selector{--v-tree-panel-layout-bkg-color--selector:var(--v-color-white);--v-tree-panel-layout-border-radius--selector:3px;--v-tree-panel-layout-border--selector:1px solid #d8dadc;--v-tree-panel-layout-border-right--navigation:1px solid #d8dadc80;--v-tree-panel-layout-padding-right__scrollbar--selector:11px;background-color:var(--v-tree-panel-layout-bkg-color--selector);border:var(--v-tree-panel-layout-border--selector);border-radius:var(--v-tree-panel-layout-border-radius--selector)}.layout-tree-selector .v-tree-panel-scrollbar{padding-right:var(--v-tree-panel-layout-padding-right__scrollbar--selector)}.layout-tree-navigation{border-right:var(--v-tree-panel-layout-border-right--navigation)}.v-tree-panel{--v-tree-panel-color:var(--v-color-font-tier1);--v-tree-panel-padding:0;--v-tree-panel-margin:0;--v-tree-panel-padding__child-tree:0;--v-tree-panel-margin__child-tree:0;--v-tree-panel-font-weight__child-tree:var(--v-font-weight-normal);--v-tree-panel-height__dragging-indicator:2px;--v-tree-panel-bkg-color__dragging-indicator:var(--v-color-main);--v-tree-panel-border-radius__dragging-indicator:var(--v-border-radius-10);--v-tree-panel-bkg-color__node-wrapper--dragging:#0000;--v-tree-panel-color__node-wrapper--dragging:var(--v-color-font-tier1);--v-tree-panel-height__node-wrapper:30px;--v-tree-panel-line-height__node-wrapper:30px;--v-tree-panel-border-radius__node-wrapper:var(--v-border-radius-300);--v-tree-panel-bkg-color__inner:#0000;--v-tree-panel-border__node-wrapper:0;--v-tree-panel-margin-left__icon--with-checkbox:2px;--v-tree-panel-margin__checkbox:0 4px 0 2px;--v-tree-panel-padding__checkbox:0;--v-tree-panel-width__checkbox:20px;--v-tree-panel-height__checkbox:20px;--v-tree-panel-top__icon:0;--v-tree-panel-padding-left__action:6px;--v-tree-panel-bkg-color--dragging:#c6d4e033;--v-tree-panel-color--dragging:var(--v-color-font-tier3);--v-tree-panel-opacity__arrow--dragging:0.4;--v-tree-panel-font-size__title:13px;--v-tree-panel-color__title--dragging:var(--v-color-font-tier3);--v-tree-panel-bkg-color--dragging-inner:var(--v-item-bg-tier2);--v-tree-panel-color__title--dragging-inner:inherit;--v-tree-panel-border--dragging-inner:1px solid var(--v-color-main);--v-tree-panel-bkg-color--selected:var(--v-item-bg-tier2);--v-tree-panel-color__title--selected:inherit;--v-tree-panel-bkg-color--disabled:inherit;--v-tree-panel-color--disabled:var(--v-color-font-tier3);--v-tree-panel-opacity__arrow--disabled:0.4;--v-tree-panel-color__title--disabled:var(--v-color-font-tier3);--v-tree-panel-bkg-color--hover:var(--v-item-bg-tier1);--v-tree-panel-color__title--hover:inherit;--v-tree-panel-padding-right__node-content-wrapper:10px;--v-tree-panel-padding-left__node-content-wrapper:4px;--v-tree-panel-width__spin-icon:24px;--v-tree-panel-height__spin-icon:24px;--v-tree-panel-margin__arrow:3px 0;--v-tree-panel-height__arrow:24px;--v-tree-panel-width__arrow:24px;--v-tree-panel-margin__icon:0;--v-tree-panel-width__icon:16px;--v-tree-panel-height__icon:16px;--v-tree-panel-prefix-indent:11px;--v-tree-panel-indent:14px;--v-tree-panel-height__node-wrapper--module:42px;--v-tree-panel-line-height__node-wrapper--module:42px;--v-tree-panel-margin-top__node-wrapper--module:0;--v-tree-panel-padding-left__node-content-wrapper--module:0;--v-tree-panel-font-size__title--module:var(--v-font-size-tier1);--v-tree-panel-line-height__title--module:42px;--v-tree-panel-margin__icon--module:10px 6px 10px 12px;--v-tree-panel-width__icon--module:22px;--v-tree-panel-height__icon--module:22px;--v-tree-panel-font-weight__node--selected--module:var(--v-font-weight-normal);color:var(--v-tree-panel-color);display:block;list-style-type:none;margin:var(--v-tree-panel-margin);min-width:100%;padding:var(--v-tree-panel-padding)}.v-tree-panel .v-tree-panel-child-tree{font-weight:var(--v-tree-panel-font-weight__child-tree);list-style-type:none;margin:var(--v-tree-panel-margin__child-tree);overflow:hidden;padding:var(--v-tree-panel-padding__child-tree)}.v-tree-panel .dragging-indicator{background-color:var(--v-tree-panel-bkg-color__dragging-indicator);border-radius:var(--v-tree-panel-border-radius__dragging-indicator);height:var(--v-tree-panel-height__dragging-indicator);position:absolute;width:100%}.v-tree-panel.dragging{cursor:pointer}.v-tree-panel.dragging .v-tree-panel-node-wrapper:not(.v-tree-panel-dragging):not(.v-tree-panel-dragging-inner):hover{background-color:var(--v-tree-panel-bkg-color__node-wrapper--dragging);color:var(--v-tree-panel-color__node-wrapper--dragging)}.v-tree-panel .v-tree-panel-node{position:relative}.v-tree-panel .v-tree-panel-node-wrapper{align-items:center;border:var(--v-tree-panel-border__node-wrapper);border-radius:var(--v-tree-panel-border-radius__node-wrapper);box-sizing:border-box;cursor:pointer;display:flex;height:var(--v-tree-panel-height__node-wrapper);line-height:var(--v-tree-panel-line-height__node-wrapper);overflow:hidden}.v-tree-panel .v-tree-panel-node-wrapper .v-checkbox-wrapper{display:inline-block;flex:0 0 auto;height:var(--v-tree-panel-height__checkbox);margin:var(--v-tree-panel-margin__checkbox);padding:var(--v-tree-panel-padding__wrapper);vertical-align:top;width:var(--v-tree-panel-width__checkbox)}.v-tree-panel .v-tree-panel-node-wrapper .v-checkbox-wrapper+.v-tree-panel-icon{margin-left:var(--v-tree-panel-margin-left__icon--with-checkbox)}.v-tree-panel .v-tree-panel-node-wrapper .v-checkbox-wrapper .v-checkbox-label{display:none}.v-tree-panel .v-tree-panel-node-wrapper .v-checkbox-wrapper .v-checkbox-icon{top:var(--v-tree-panel-top__icon)}.v-tree-panel .v-tree-panel-node-wrapper .action-slot,.v-tree-panel .v-tree-panel-node-wrapper .suffix-slot{display:inline-flex;vertical-align:top}.v-tree-panel .v-tree-panel-node-wrapper .action-slot{margin-left:auto;padding-left:var(--v-tree-panel-padding-left__action)}.v-tree-panel .v-tree-panel-node-wrapper .v-tree-panel-title{font-size:var(--v-tree-panel-font-size__title);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.v-tree-panel .v-tree-panel-node-wrapper.v-tree-panel-dragging{background:var(--v-tree-panel-bkg-color--dragging);color:var(--v-tree-panel-color--dragging)}.v-tree-panel .v-tree-panel-node-wrapper.v-tree-panel-dragging .tree-panel-arrow{opacity:var(--v-tree-panel-opacity__arrow--dragging)}.v-tree-panel .v-tree-panel-node-wrapper.v-tree-panel-dragging .v-tree-panel-title{color:var(--v-tree-panel-color__title--dragging)}.v-tree-panel .v-tree-panel-node-wrapper.v-tree-panel-dragging-inner{background:var(--v-tree-panel-bkg-color--dragging-inner);border:var(--v-tree-panel-border--dragging-inner)}.v-tree-panel .v-tree-panel-node-wrapper.v-tree-panel-dragging-inner:hover{background:var(--v-tree-panel-bkg-color--dragging-inner)}.v-tree-panel .v-tree-panel-node-wrapper.v-tree-panel-dragging-inner .v-tree-panel-title{color:var(--v-tree-panel-color__title--dragging-inner)}.v-tree-panel .v-tree-panel-node-wrapper.v-tree-panel-node-selected:not(.v-tree-panel-dragging){background:var(--v-tree-panel-bkg-color--selected)}.v-tree-panel .v-tree-panel-node-wrapper.v-tree-panel-node-selected:not(.v-tree-panel-dragging) .v-tree-panel-title{color:var(--v-tree-panel-color__title--selected)}.v-tree-panel .v-tree-panel-node-wrapper.v-tree-panel-disabled{background:var(--v-tree-panel-bkg-color--disabled);color:var(--v-tree-panel-color--disabled)}.v-tree-panel .v-tree-panel-node-wrapper.v-tree-panel-disabled .tree-panel-arrow{opacity:var(--v-tree-panel-opacity__arrow--disabled)}.v-tree-panel .v-tree-panel-node-wrapper.v-tree-panel-disabled .v-tree-panel-title{color:var(--v-tree-panel-color__title--disabled)}.v-tree-panel .v-tree-panel-node-wrapper:hover:not(.v-tree-panel-node-selected,.v-tree-panel-dragging,.v-tree-panel-dragging-inner){background:var(--v-tree-panel-bkg-color--hover)}.v-tree-panel .v-tree-panel-node-wrapper:hover:not(.v-tree-panel-node-selected,.v-tree-panel-dragging,.v-tree-panel-dragging-inner) .v-tree-panel-title{color:var(--v-tree-panel-color__title--hover)}.v-tree-panel.horizontal-scroll{display:inline-block;min-width:100%}.v-tree-panel.horizontal-scroll .v-tree-panel-node-content-wrapper{overflow:visible;text-overflow:ellipsis}.v-tree-panel .v-tree-panel-node-content-wrapper{align-items:center;display:inline-flex;flex:1 1 auto;overflow:hidden;padding-left:var(--v-tree-panel-padding-left__node-content-wrapper);padding-right:var(--v-tree-panel-padding-right__node-content-wrapper);text-overflow:ellipsis;-webkit-user-select:none;user-select:none;vertical-align:top;white-space:nowrap}.v-tree-panel .v-tree-panel-spin-icon{height:var(--v-tree-panel-height__spin-icon);width:var(--v-tree-panel-width__spin-icon)}.v-tree-panel .v-tree-panel-spin-icon>i,.v-tree-panel .v-tree-panel-spin-icon>i>i{height:12px;width:12px}.v-tree-panel .v-tree-panel-spin-icon>i>i{clip:rect(0,12px,12px,6px)}.v-tree-panel .v-tree-panel-spin-icon>i>i:after{clip:rect(0,12px,12px,6px);border-color:#505a64;border-width:2px;height:12px;width:12px}.v-tree-panel .tree-panel-arrow{background-image:image-set(url("webman/3rdparty/Spreadsheet/dist/assets/images/1x/cate_tree_arrow.png") 1x,url("webman/3rdparty/Spreadsheet/dist/assets/images/2x/cate_tree_arrow.png") 1.5x);background-size:20px;cursor:pointer;display:inline-block;flex:0 0 auto;height:var(--v-tree-panel-height__arrow);margin:var(--v-tree-panel-margin__arrow);vertical-align:top;visibility:visible;width:var(--v-tree-panel-width__arrow)}.v-tree-panel .tree-panel-arrow.hided{visibility:hidden}.v-tree-panel .tree-panel-arrow-down{background-position:0 0}.v-tree-panel .tree-panel-arrow-right{background-position:0 -20px}.v-tree-panel .v-tree-panel-icon{background-size:16px;display:inline-block;flex:0 0 auto;height:var(--v-tree-panel-height__icon);margin:var(--v-tree-panel-margin__icon);vertical-align:top;width:var(--v-tree-panel-width__icon)}.v-tree-panel .v-tree-panel-indent{flex:0 0 auto;width:calc(var(--v-tree-panel-prefix-indent) + var(--v-tree-panel-indent)*var(--indent) - 1px)}.v-tree-panel.v-module>.v-tree-panel-node:first-child .v-tree-panel-node-wrapper{margin-top:var(--v-tree-panel-margin-top__node-wrapper--module)}.v-tree-panel.v-module .v-tree-panel-node-content-wrapper{padding-left:var(--v-tree-panel-padding-left__node-content-wrapper)}.v-tree-panel.v-module .v-tree-panel-node-wrapper{height:var(--v-tree-panel-height__node-wrapper--module);line-height:var(--v-tree-panel-line-height__node-wrapper--module);margin-top:var(--v-tree-panel-margin-top__node-wrapper--module)}.v-tree-panel.v-module .v-tree-panel-node-wrapper .v-tree-panel-title{font-size:var(--v-tree-panel-font-size__title--module);line-height:var(--v-tree-panel-line-height__title--module)}.v-tree-panel.v-module .tree-panel-arrow{display:none}.v-tree-panel.v-module .v-tree-panel-icon{background-position:0 0;display:inline-block;height:var(--v-tree-panel-height__icon--module);margin:var(--v-tree-panel-margin__icon--module);vertical-align:top;width:var(--v-tree-panel-width__icon--module)}.v-tree-panel.v-module .v-tree-panel-node-selected{font-weight:var(--v-tree-panel-font-weight__node--selected--module)}.v-tree-panel.v-module .v-tree-panel-node-selected .v-tree-panel-icon{background-position:0 0}.v-divider{--v-typography-divider-height:1px;--v-typography-divider-bkg-color:#e2e4e6;--v-typography-divider-margin:6px 0;background:var(--v-typography-divider-bkg-color);flex-shrink:0;height:var(--v-typography-divider-height);line-height:0;margin:var(--v-typography-divider-margin);overflow:hidden;width:100%}.v-a{color:var(--v-color-action-normal);cursor:pointer}.v-header{margin:28px 0 20px;position:relative}.v-header:hover .anchor{opacity:1}.v-header .anchor{left:-1em;opacity:0;position:absolute}.v-header .anchor:hover{opacity:1}.v-p{box-sizing:border-box;font-size:var(--v-font-size-tier1);line-height:var(--v-line-height-100);margin:28px 0 20px}.v-hr{border-bottom:1px solid var(--v-color-border-tier1);border-top:none}.v-code{font-size:var(--v-font-size-tier1);line-height:var(--v-line-height-100)}.v-code pre{overflow:auto;padding:10px}.v-blockquote{border-left:3px solid var(--v-color-font-tier2);padding-left:20px}.v-text--strong{font-weight:var(--v-font-weight-bold)}.v-list{--v-bullet-padding-indent:0 0 0 16px;font-size:var(--v-font-size-tier1)}ul.v-list{list-style:none}.v-li{font-size:var(--v-font-size-tier1);line-height:var(--v-line-height-100);padding:var(--v-bullet-padding-indent);position:relative}.v-li .bullet-dot{background-color:currentColor;border-radius:50%;height:4px;left:2px;position:absolute;top:8px;width:4px}.v-typo-table{min-width:600px;width:100%;--v-table-border-radius:var(--v-border-radius-200);--v-table-border:1px solid #323c4680;--v-table-border-width:1px;--v-table-bkg-color:var(--v-color-white);--v-table-bkg-color__row--hover:var(--v-item-bg-tier3);--v-table-padding__row-hover-action:0 0 0 6px;--v-table-padding__cell-wrapper:0 8px 0 0;--v-table-padding__cell:6px 0 6px 0;--v-table-padding__cell-wrapper--first:0 8px 0 8px;--v-table-margin-left__sort-icon:4px;--v-table-margin-left__head-cell-tip:6px;--v-table-bkg-color__head:#323c4680;--v-table-border__head:none;--v-table-color__head-cell:var(--v-color-white);--v-table-line-height__head-cell:var(--v-line-height-100);--v-table-font-weight__head-cell:var(--v-font-weight-normal);--v-table-height__head-cell:var(--v-line-height-100);--v-table-font-size__head-cell:var(--v-font-size-tier1);--v-table-padding-top__head-cell:6px;--v-table-padding-right__head-cell:8px;--v-table-padding-bottom__head-cell:6px;--v-table-padding-left__head-cell:0;--v-table-padding-left__first-head-cell:8px;--v-table-line-height__cell:var(--v-line-height-100);--v-table-font-size__cell:var(--v-font-size-tier1);--v-table-color__cell:#414b55;--v-table-bkg-color__cell:var(--v-color-white);--v-table-padding-left__first-cell:8px;--v-table-border-radius__last-cell:var(--v-border-radius-100);--v-table-line-height__empty-body:var(--v-line-height-50);--v-table-color__empty-body:var(--v-color-font-tier2);--v-table-padding__empty-body:6px 8px 6px 8px;--v-table-custom:false;border-collapse:initial;border-radius:var(--v-table-border-radius);border-spacing:0;border-width:var(--v-table-border-width);border:var(--v-table-border);font-size:var(--v-font-size-tier1);line-height:var(--v-line-height-100);table-layout:auto}.v-typo-table tr{background-color:var(--v-table-bkg-color__row)}.v-typo-table th{background-color:var(--v-table-bkg-color__head);border:var(--v-table-border__head);box-sizing:border-box;color:var(--v-table-color__head-cell);font-size:var(--v-table-font-size__head-cell);font-weight:var(--v-table-font-weight__head-cell);height:var(--v-table-height__head-cell);line-height:var(--v-table-line-height__head-cell);padding:8px 16px;text-align:left;text-transform:uppercase}.v-typo-table thead{white-space:nowrap}.v-typo-table tbody tr td{background-color:var(--v-table-bkg-color__cell);border-bottom:none;color:var(--v-table-color__cell);font-size:var(--v-table-font-size__cell);line-height:var(--v-table-line-height__cell);padding:8px 16px;text-align:left}.v-typo-table tbody tr td:nth-of-type(2){overflow-wrap:break-word}.v-typo-table tbody tr td:nth-of-type(3){color:var(--v-color-orange)}.v-typo-table tbody tr td:nth-of-type(5){color:var(--v-color-green)}.v-typo-table tbody tr td:first-of-type{font-weight:var(--v-font-weight-semi-bold)}.v-typo-table tbody tr:last-child td:first-child{border-bottom-left-radius:var(--v-table-border-radius__last-cell)}.v-typo-table tbody tr:last-child td:last-child{border-bottom-right-radius:var(--v-table-border-radius__last-cell)}.v-typo-tip{border-radius:8px;font-size:var(--v-font-size-tier1);line-height:24px;padding:16px 16px 8px}.v-typo-tip.info{background-color:rgba(var(--d-theme-main-color),.1);border:1px solid var(--d-theme-main-color);color:var(--v-color-main)}.v-typo-tip.error{background-color:#f2616d1a;border:1px solid #f2616d;color:var(--v-color-red)}.v-typo-tip.warn{background-color:#fa90251a;border:1px solid #fa9025;color:var(--v-color-orange)}.v-typo-tip .tip-title{font-weight:600}.v-typo-tip .tip-content{line-height:24px;margin:8px 0}.v-whitetip-wrapper{--v-whitetip-icon-opacity--disabled:0.4;--v-whitetip-icon-size--small:20px;--v-whitetip-icon-margin-top--small:0;--v-whitetip-icon-margin-left--small:6px;--v-whitetip-icon-size--normal:24px;--v-whitetip-icon-margin-top--normal:0;--v-whitetip-icon-margin-left--normal:0;align-items:center;display:inline-flex;justify-content:center;vertical-align:top}.v-whitetip-wrapper.disabled{opacity:var(--v-whitetip-icon-opacity--disabled)}.v-whitetip-wrapper.small .v-whitetip-icon{background-image:url(webman/3rdparty/Spreadsheet/dist/assets/images/svg/whitetip_small.svg);background-size:20px;height:var(--v-whitetip-icon-size--small);width:var(--v-whitetip-icon-size--small)}.v-whitetip-wrapper.small .v-whitetip-icon.white{background-image:url(webman/3rdparty/Spreadsheet/dist/assets/images/svg/whitetip_small_white.svg)}.v-whitetip-wrapper.small .v-whitetip-icon.has-margin{margin-left:var(--v-whitetip-icon-margin-left--small);margin-top:var(--v-whitetip-icon-margin-top--small)}.v-whitetip-wrapper.small .v-whitetip-icon:before{height:var(--v-whitetip-icon-size--small);width:var(--v-whitetip-icon-size--small)}.v-whitetip-icon{background-image:url(webman/3rdparty/Spreadsheet/dist/assets/images/svg/whitetip.svg);background-size:24px;display:inline-block;height:var(--v-whitetip-icon-size--normal);overflow:visible;position:relative;vertical-align:top;width:var(--v-whitetip-icon-size--normal)}.v-whitetip-icon.has-margin{margin-left:var(--v-whitetip-icon-margin-left--normal);margin-top:var(--v-whitetip-icon-margin-top--normal)}.v-whitetip-icon:before{content:"";height:var(--v-whitetip-icon-size--normal);left:0;position:absolute;top:0;width:var(--v-whitetip-icon-size--normal)}.v-whitetip-tooltip.v-tooltip-directive{--v-whitetip-bkg-color:#fff;--v-whitetip-border-radius:8px;--v-whitetip-border:none;--v-whitetip-padding:12px 20px;--v-whitetip-color:#2e3032;--v-whitetip-padding--complex:12px 20px;--v-whitetip-line-height:20px;--v-whitetip-line-height--complex:20px;--v-whitetip-box-shadow:0 4px 15px 0 #0003;--v-whitetip-max-width:600px;background:var(--v-whitetip-bkg-color);border:var(--v-whitetip-border);border-radius:var(--v-whitetip-border-radius);box-shadow:var(--v-whitetip-box-shadow);color:var(--v-whitetip-color);line-height:var(--v-whitetip-line-height);max-width:var(--v-whitetip-max-width);overflow-wrap:break-word;padding:var(--v-whitetip-padding)}.v-whitetip-tooltip.v-tooltip-directive.complex-tip{line-height:var(--v-whitetip-line-height--complex);padding:var(--v-whitetip-padding--complex)}.v-whitetip-tooltip.v-tooltip-directive.no-padding{padding:0}.v-window{--v-window-bkg-color__header:var(--v-color-white);--v-window-padding-top__header:12px;--v-window-padding-right__header:20px;--v-window-padding-bottom__header:12px;--v-window-padding-left__header:20px;--v-window-margin__header:0;--v-window-margin__hamburger-icon:0 12px 0 0;--v-window-height__header--mobile:auto;--v-window-opacity__header--deactive:0.4;--v-window-border-bottom__header:0;--v-window-padding-left__header-text--model:4px;--v-window-line-height__header-text:var(--v-line-height-200);--v-window-font-size__header-text:var(--v-font-size-tier4);--v-window-font-weight__header-text:var(--v-font-weight-bold);--v-window-padding-left__header-text:4px;--v-window-color__header-text:var(--v-color-font-tier1);--v-window-size__icon:24px;--v-window-opacity--dragging:0.65;--v-window-box-shadow:0 4px 16px #00000040;--v-window-border-radius:6px;--v-window-border-radius--mobile:6px;--v-window-bkg-color:var(--v-color-white);--v-window-bkg-color--dragging:#f2f2f2;--v-window-opacity__wrapper:0.4;--v-window-bkg-color__body:var(--v-color-white);--v-window-custom:false;background-color:var(--v-window-bkg-color);border-radius:var(--v-window-border-radius);box-shadow:var(--v-window-box-shadow);display:flex;flex-direction:column;overflow:hidden}.v-window.dragging{opacity:var(--v-window-opacity--dragging)}@keyframes window-blink{50%{box-shadow:none}}.v-window.blink{animation:window-blink .2s steps(1) infinite}.v-window.deactive-win .v-window-header-wrapper{opacity:var(--v-window-opacity__header--deactive)}.v-window .v-window-header-wrapper{align-items:center;background-color:var(--v-window-bkg-color__header);border-bottom:var(--v-window-border-bottom__header);border-top-left-radius:var(--v-window-border-radius);border-top-right-radius:var(--v-window-border-radius);box-sizing:border-box;cursor:default;display:flex;flex:0 0 auto;height:calc(var(--v-window-padding-top__header) + var(--v-window-size__icon) + var(--v-window-padding-bottom__header));line-height:calc(var(--v-window-padding-top__header) + var(--v-window-size__icon) + var(--v-window-padding-bottom__header));margin:var(--v-window-margin__header);padding:var(--v-window-padding-top__header) var(--v-window-padding-right__header) var(--v-window-padding-bottom__header) var(--v-window-padding-left__header);position:relative;-webkit-user-select:none;user-select:none}.v-window .v-window-header-wrapper.draggable{cursor:move}.v-window .v-window-header-wrapper.mobile-fit{align-items:start;border-top-left-radius:var(--v-window-border-radius--mobile);border-top-right-radius:var(--v-window-border-radius--mobile);height:var(--v-window-height__header--mobile)}.v-window .v-window-header-wrapper .app-window-header-hamburger{margin:var(--v-window-margin__hamburger-icon)}.v-window .v-window-header-wrapper.modal-win .v-window-header-text{padding-left:var(--v-window-padding-left__header-text--model)}.v-window .v-window-header-wrapper .v-window-header-text{color:var(--v-window-color__header-text);display:inline-flex;flex:1 1 auto;font-size:var(--v-window-font-size__header-text);font-weight:var(--v-window-font-weight__header-text);line-height:var(--v-window-line-height__header-text);margin:calc(var(--v-window-size__icon)/2 - var(--v-window-line-height__header-text)/2) 0;overflow:hidden;padding-left:var(--v-window-padding-left__header-text);text-align:left;text-overflow:ellipsis;vertical-align:top;white-space:nowrap;width:auto}.v-window .v-window-header-wrapper .v-window-header-text .v-window-header-title{display:-webkit-box;-webkit-line-clamp:1;white-space:normal;word-break:break-all;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis}.v-window .v-window-header-wrapper .app-icon{background-size:24px 24px;display:inline-block;flex:0 0 auto;height:var(--v-window-size__icon);vertical-align:top;width:var(--v-window-size__icon)}.v-window.mobile-fit{border-radius:var(--v-window-border-radius--mobile)}.v-window.mobile-fit .v-window-header-wrapper .v-window-header-title{-webkit-line-clamp:2;overflow-wrap:break-word;word-break:normal}.v-window.mobile-fit .v-window-body{border-radius:var(--v-window-border-radius--mobile)}.v-window .v-window-body{background-color:var(--v-window-bkg-color__body);border-bottom-left-radius:var(--v-window-border-radius);border-bottom-right-radius:var(--v-window-border-radius);flex:1 1 auto;height:100%;overflow:hidden}.v-window .v-window-body .focus-last-alert{height:0;overflow:hidden;width:0}.v-window .v-window-mask{height:100%;position:absolute;width:100%;z-index:var(--v-z-index-window-mask)}.v-window .v-window-mask .v-spin-wrapper{height:100%;width:100%}.v-window-container-mask{background-color:#00000080;height:100%;position:absolute;top:0;width:100%}.v-wizard-window.v-window{--v-wizard-window-opacity__tool--disabled:0.4;--v-wizard-window-bkg-color__header-wrapper:var(--d-theme-main-color);--v-wizard-window-bkg-color:var(--v-color-blue);--v-wizard-window-opacity__header-text:0.7;--v-wizard-window-color__header-text:var(--v-color-white);--v-wizard-window-color__sub-wrapper:#ffffffb3;--v-wizard-window-line-height__header-text:var(--v-line-height-200);--v-wizard-window-font-size__header-text:var(--v-font-size-small-tier1);--v-wizard-window-font-weight__header-text:var(--v-font-weight-bold);--v-wizard-window-size__icon:24px;--v-wizard-window-width__text:100%;--v-wizard-window-padding-left__sub-wrapper:4px;--v-wizard-window-padding__headline-transform:0 0 10px 20px;--v-wizard-window-top__headline-transform:32px;--v-wizard-window-width__tool:24px;--v-wizard-window-height__tool:24px;--v-wizard-window-margin-left__tool:8px;--v-wizard-window-bkg-color__spin:var(--v-color-blue);--v-wizard-window-height__spin:100%;--v-wizard-window-padding-top__header:var(--v-window-padding-top__header);--v-wizard-window-padding-right__header:var(--v-window-padding-right__header);--v-wizard-window-padding-bottom__header:var(--v-window-padding-bottom__header);--v-wizard-window-padding-left__header:var(--v-window-padding-left__header);--v-wizard-window-custom:false;background-color:var(--v-wizard-window-bkg-color)}.v-wizard-window.v-window .headline-transform{background-color:var(--v-wizard-window-bkg-color);box-sizing:border-box;color:var(--v-wizard-window-color__sub-wrapper);font-size:var(--v-window-font-size__header-text);line-height:var(--v-window-line-height__header-text);padding:var(--v-wizard-window-padding__headline-transform);position:fixed;top:var(--v-wizard-window-top__headline-transform);width:100%;z-index:var(--v-z-index-window-wizard-headline-transform)}.v-wizard-window.v-window .headline-transform .headline-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.v-wizard-window.v-window .v-window-header-wrapper{background-color:var(--v-wizard-window-bkg-color__header-wrapper);border-bottom:none;height:calc(var(--v-wizard-window-padding-top__header) + var(--v-wizard-window-size__icon) + var(--v-wizard-window-padding-bottom__header));line-height:calc(var(--v-wizard-window-padding-top__header) + var(--v-wizard-window-line-height__header-text) + var(--v-wizard-window-padding-bottom__header));padding:var(--v-wizard-window-padding-top__header) var(--v-wizard-window-padding-right__header) var(--v-wizard-window-padding-bottom__header) var(--v-wizard-window-padding-left__header)}.v-wizard-window.v-window .v-window-header-wrapper .v-window-header-text{color:var(--v-wizard-window-color__header-text);font-size:var(--v-wizard-window-font-size__header-text);font-weight:var(--v-wizard-window-font-weight__header-text);opacity:var(--v-wizard-window-opacity__header-text);width:100%}.v-wizard-window.v-window .v-window-header-wrapper .v-window-header-text .v-window-header-title{-webkit-line-clamp:1;word-break:break-all}.v-wizard-window.v-window .v-window-header-wrapper .v-window-header-text .sub-wrapper{display:inline-block;flex:1 1 auto;font-weight:var(--v-font-weight-normal);overflow:hidden;padding-left:var(--v-wizard-window-padding-left__sub-wrapper);text-overflow:ellipsis;vertical-align:top;white-space:nowrap}.v-wizard-window.v-window .v-window-header-wrapper .v-window-header-text .sub-wrapper .sub-title{color:var(--v-wizard-window-color__sub-wrapper);text-overflow:clip;white-space:normal}.v-wizard-window.v-window .v-window-header-wrapper.mobile-fit .v-window-header-text{flex-direction:column}.v-wizard-window.v-window .v-window-header-wrapper.mobile-fit .v-window-header-text .sub-wrapper{padding-left:var(--v-wizard-window-padding-left__sub-wrapper--mobile)}.v-wizard-window.v-window .v-window-header-wrapper .tool-wrapper .tool{cursor:pointer;height:var(--v-wizard-window-height__tool);margin-left:var(--v-wizard-window-margin-left__tool);width:var(--v-wizard-window-width__tool)}.v-window-draggable{--v-window-bkg-color__header:var(--v-color-white);--v-window-padding-top__header:12px;--v-window-padding-right__header:20px;--v-window-padding-bottom__header:12px;--v-window-padding-left__header:20px;--v-window-margin__header:0;--v-window-margin__hamburger-icon:0 12px 0 0;--v-window-height__header--mobile:auto;--v-window-opacity__header--deactive:0.4;--v-window-border-bottom__header:0;--v-window-padding-left__header-text--model:4px;--v-window-line-height__header-text:var(--v-line-height-200);--v-window-font-size__header-text:var(--v-font-size-tier4);--v-window-font-weight__header-text:var(--v-font-weight-bold);--v-window-padding-left__header-text:4px;--v-window-color__header-text:var(--v-color-font-tier1);--v-window-size__icon:24px;--v-window-opacity--dragging:0.65;--v-window-box-shadow:0 4px 16px #00000040;--v-window-border-radius:6px;--v-window-border-radius--mobile:6px;--v-window-bkg-color:var(--v-color-white);--v-window-bkg-color--dragging:#f2f2f2;--v-window-opacity__wrapper:0.4;--v-window-bkg-color__body:var(--v-color-white);--v-window-custom:false;--v-wizard-window-opacity__tool--disabled:0.4;--v-wizard-window-bkg-color__header-wrapper:var(--d-theme-main-color);--v-wizard-window-bkg-color:var(--v-color-blue);--v-wizard-window-opacity__header-text:0.7;--v-wizard-window-color__header-text:var(--v-color-white);--v-wizard-window-color__sub-wrapper:#ffffffb3;--v-wizard-window-line-height__header-text:var(--v-line-height-200);--v-wizard-window-font-size__header-text:var(--v-font-size-small-tier1);--v-wizard-window-font-weight__header-text:var(--v-font-weight-bold);--v-wizard-window-size__icon:24px;--v-wizard-window-width__text:100%;--v-wizard-window-padding-left__sub-wrapper:4px;--v-wizard-window-padding__headline-transform:0 0 10px 20px;--v-wizard-window-top__headline-transform:32px;--v-wizard-window-width__tool:24px;--v-wizard-window-height__tool:24px;--v-wizard-window-margin-left__tool:8px;--v-wizard-window-bkg-color__spin:var(--v-color-blue);--v-wizard-window-height__spin:100%;--v-wizard-window-padding-top__header:var(--v-window-padding-top__header);--v-wizard-window-padding-right__header:var(--v-window-padding-right__header);--v-wizard-window-padding-bottom__header:var(--v-window-padding-bottom__header);--v-wizard-window-padding-left__header:var(--v-window-padding-left__header);--v-wizard-window-custom:false;background-color:var(--v-window-bkg-color--dragging);border-radius:var(--v-window-border-radius);box-shadow:var(--v-window-box-shadow);opacity:var(--v-window-opacity--dragging);position:absolute;z-index:var(--v-z-index-window-drag-ghost)}.v-window-draggable .v-window-header-wrapper{align-items:center;background-color:var(--v-window-bkg-color__header);border-bottom:var(--v-window-border-bottom__header);border-top-left-radius:var(--v-window-border-radius);border-top-right-radius:var(--v-window-border-radius);box-sizing:border-box;cursor:default;display:flex;flex:0 0 auto;height:calc(var(--v-window-padding-top__header) + var(--v-window-size__icon) + var(--v-window-padding-bottom__header));line-height:calc(var(--v-window-padding-top__header) + var(--v-window-size__icon) + var(--v-window-padding-bottom__header));margin:var(--v-window-margin__header);padding:var(--v-window-padding-top__header) var(--v-window-padding-right__header) var(--v-window-padding-bottom__header) var(--v-window-padding-left__header);position:relative;-webkit-user-select:none;user-select:none}.v-window-draggable .v-window-header-wrapper.draggable{cursor:move}.v-window-draggable .v-window-header-wrapper.mobile-fit{align-items:start;border-top-left-radius:var(--v-window-border-radius--mobile);border-top-right-radius:var(--v-window-border-radius--mobile);height:var(--v-window-height__header--mobile)}.v-window-draggable .v-window-header-wrapper .app-window-header-hamburger{margin:var(--v-window-margin__hamburger-icon)}.v-window-draggable .v-window-header-wrapper.modal-win .v-window-header-text{padding-left:var(--v-window-padding-left__header-text--model)}.v-window-draggable .v-window-header-wrapper .v-window-header-text{color:var(--v-window-color__header-text);display:inline-flex;flex:1 1 auto;font-size:var(--v-window-font-size__header-text);font-weight:var(--v-window-font-weight__header-text);line-height:var(--v-window-line-height__header-text);margin:calc(var(--v-window-size__icon)/2 - var(--v-window-line-height__header-text)/2) 0;overflow:hidden;padding-left:var(--v-window-padding-left__header-text);text-align:left;text-overflow:ellipsis;vertical-align:top;white-space:nowrap;width:auto}.v-window-draggable .v-window-header-wrapper .v-window-header-text .v-window-header-title{display:-webkit-box;-webkit-line-clamp:1;white-space:normal;word-break:break-all;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis}.v-window-draggable .v-window-header-wrapper .app-icon{background-size:24px 24px;display:inline-block;flex:0 0 auto;height:var(--v-window-size__icon);vertical-align:top;width:var(--v-window-size__icon)}.v-window-draggable.v-wizard-window .v-window-header-wrapper{background-color:var(--v-wizard-window-bkg-color__header-wrapper);border-bottom:none;height:calc(var(--v-wizard-window-padding-top__header) + var(--v-wizard-window-size__icon) + var(--v-wizard-window-padding-bottom__header));line-height:calc(var(--v-wizard-window-padding-top__header) + var(--v-wizard-window-line-height__header-text) + var(--v-wizard-window-padding-bottom__header));padding:var(--v-wizard-window-padding-top__header) var(--v-wizard-window-padding-right__header) var(--v-wizard-window-padding-bottom__header) var(--v-wizard-window-padding-left__header)}.v-window-draggable.v-wizard-window .v-window-header-wrapper .v-window-header-text{color:var(--v-wizard-window-color__header-text);font-size:var(--v-wizard-window-font-size__header-text);font-weight:var(--v-wizard-window-font-weight__header-text);opacity:var(--v-wizard-window-opacity__header-text);width:100%}.v-window-draggable.v-wizard-window .v-window-header-wrapper .v-window-header-text .v-window-header-title{-webkit-line-clamp:1;word-break:break-all}.v-window-draggable.v-wizard-window .v-window-header-wrapper .v-window-header-text .sub-wrapper{display:inline-block;flex:1 1 auto;font-weight:var(--v-font-weight-normal);overflow:hidden;padding-left:var(--v-wizard-window-padding-left__sub-wrapper);text-overflow:ellipsis;vertical-align:top;white-space:nowrap}.v-window-draggable.v-wizard-window .v-window-header-wrapper .v-window-header-text .sub-wrapper .sub-title{color:var(--v-wizard-window-color__sub-wrapper);text-overflow:clip;white-space:normal}.v-window-draggable.v-wizard-window .v-window-header-wrapper.mobile-fit .v-window-header-text{flex-direction:column}.v-window-draggable.v-wizard-window .v-window-header-wrapper.mobile-fit .v-window-header-text .sub-wrapper{padding-left:var(--v-wizard-window-padding-left__sub-wrapper--mobile)}.v-window-draggable.v-wizard-window .v-window-header-wrapper .tool-wrapper .tool{cursor:pointer;height:var(--v-wizard-window-height__tool);margin-left:var(--v-wizard-window-margin-left__tool);width:var(--v-wizard-window-width__tool)}.v-window-resizable-ghost{--v-window-resizable-border__ghost:1px dashed;--v-window-resizable-width__handler:6px;--v-window-resizable-height__handler:6px;border:var(--v-window-resizable-border__ghost);display:block;pointer-events:none;position:absolute;z-index:var(--v-z-index-window-resize-ghost)}.v-window-resizable-resizing-mask{height:100vh;left:0;position:absolute;top:0;width:100vw}.v-window-resizable{--v-window-resizable-border__ghost:1px dashed;--v-window-resizable-width__handler:6px;--v-window-resizable-height__handler:6px}.v-window-resizable .handler{height:var(--v-window-resizable-height__handler);opacity:0;position:absolute;width:var(--v-window-resizable-width__handler)}.v-window-resizable .handler.v-window-resizable-sw{bottom:0;cursor:sw-resize;left:0;z-index:var(--v-z-index-window-resize-corner)}.v-window-resizable .handler.v-window-resizable-se{bottom:0;cursor:se-resize;right:0;z-index:var(--v-z-index-window-resize-corner)}.v-window-resizable .handler.v-window-resizable-nw{cursor:nw-resize;left:0;top:0;z-index:var(--v-z-index-window-resize-corner)}.v-window-resizable .handler.v-window-resizable-ne{cursor:ne-resize;right:0;top:0;z-index:var(--v-z-index-window-resize-corner)}.v-window-resizable .handler.v-window-resizable-s{bottom:0;cursor:s-resize;left:0;width:100%;z-index:var(--v-z-index-window-resize-edge)}.v-window-resizable .handler.v-window-resizable-n{cursor:n-resize;left:0;top:0;width:100%;z-index:var(--v-z-index-window-resize-edge)}.v-window-resizable .handler.v-window-resizable-w{cursor:w-resize;height:100%;left:0;top:0;z-index:var(--v-z-index-window-resize-edge)}.v-window-resizable .handler.v-window-resizable-e{cursor:e-resize;height:100%;right:0;top:0;z-index:var(--v-z-index-window-resize-edge)}.window-header-tool-wrapper{--v-window-header-tool-wrapper-opacity--disabled:0.4;--v-window-header-tool-wrapper-margin:0 4px 0 8px;--v-window-header-tool-wrapper-size__tool:24px;--v-window-header-tool-wrapper-gap:8px;display:inline-flex;flex-direction:row;float:right;gap:var(--v-window-header-tool-wrapper-gap);margin:var(--v-window-header-tool-wrapper-margin)}.window-header-tool-wrapper .tool{cursor:pointer;height:var(--v-window-header-tool-wrapper-size__tool);width:var(--v-window-header-tool-wrapper-size__tool)}.window-header-tool-wrapper .tool.window-tool-close{background-image:image-set(url("webman/3rdparty/Spreadsheet/dist/assets/images/1x/wdheader_bt_close.png") 1x,url("webman/3rdparty/Spreadsheet/dist/assets/images/2x/wdheader_bt_close.png") 1.5x);background-position:0 0;background-size:24px}.window-header-tool-wrapper .tool.window-tool-close.disabled{cursor:auto;opacity:var(--v-window-header-tool-wrapper-opacity--disabled)}.window-header-tool-wrapper .tool.window-tool-close:not(.disabled):hover{background-position:0 calc(var(--v-window-header-tool-wrapper-size__tool)*-1)}.window-header-tool-wrapper .tool.window-tool-close:not(.disabled):active{background-position:0 calc(var(--v-window-header-tool-wrapper-size__tool)*-2)}.window-header-tool-wrapper .tool.window-tool-maximize{background-image:image-set(url("webman/3rdparty/Spreadsheet/dist/assets/images/1x/wdheader_bt_maximize.png") 1x,url("webman/3rdparty/Spreadsheet/dist/assets/images/2x/wdheader_bt_maximize.png") 1.5x);background-position:0 0;background-size:24px}.window-header-tool-wrapper .tool.window-tool-maximize.disabled{cursor:auto;opacity:var(--v-window-header-tool-wrapper-opacity--disabled)}.window-header-tool-wrapper .tool.window-tool-maximize:not(.disabled):hover{background-position:0 calc(var(--v-window-header-tool-wrapper-size__tool)*-1)}.window-header-tool-wrapper .tool.window-tool-maximize:not(.disabled):active{background-position:0 calc(var(--v-window-header-tool-wrapper-size__tool)*-2)}.window-header-tool-wrapper .tool.window-tool-restore{background-image:image-set(url("webman/3rdparty/Spreadsheet/dist/assets/images/1x/wdheader_bt_restore.png") 1x,url("webman/3rdparty/Spreadsheet/dist/assets/images/2x/wdheader_bt_restore.png") 1.5x);background-position:0 0;background-size:24px}.window-header-tool-wrapper .tool.window-tool-restore.disabled{cursor:auto;opacity:var(--v-window-header-tool-wrapper-opacity--disabled)}.window-header-tool-wrapper .tool.window-tool-restore:not(.disabled):hover{background-position:0 calc(var(--v-window-header-tool-wrapper-size__tool)*-1)}.window-header-tool-wrapper .tool.window-tool-restore:not(.disabled):active{background-position:0 calc(var(--v-window-header-tool-wrapper-size__tool)*-2)}.window-header-tool-wrapper .tool.window-tool-minimize{background-image:image-set(url("webman/3rdparty/Spreadsheet/dist/assets/images/1x/wdheader_bt_minimize.png") 1x,url("webman/3rdparty/Spreadsheet/dist/assets/images/2x/wdheader_bt_minimize.png") 1.5x);background-position:0 0;background-size:24px}.window-header-tool-wrapper .tool.window-tool-minimize.disabled{cursor:auto;opacity:var(--v-window-header-tool-wrapper-opacity--disabled)}.window-header-tool-wrapper .tool.window-tool-minimize:not(.disabled):hover{background-position:0 calc(var(--v-window-header-tool-wrapper-size__tool)*-1)}.window-header-tool-wrapper .tool.window-tool-minimize:not(.disabled):active{background-position:0 calc(var(--v-window-header-tool-wrapper-size__tool)*-2)}.window-header-tool-wrapper .tool.window-tool-help{background-image:image-set(url("webman/3rdparty/Spreadsheet/dist/assets/images/1x/wdheader_bt_help.png") 1x,url("webman/3rdparty/Spreadsheet/dist/assets/images/2x/wdheader_bt_help.png") 1.5x);background-position:0 0;background-size:24px}.window-header-tool-wrapper .tool.window-tool-help.disabled{cursor:auto;opacity:var(--v-window-header-tool-wrapper-opacity--disabled)}.window-header-tool-wrapper .tool.window-tool-help:not(.disabled):hover{background-position:0 calc(var(--v-window-header-tool-wrapper-size__tool)*-1)}.window-header-tool-wrapper .tool.window-tool-help:not(.disabled):active{background-position:0 calc(var(--v-window-header-tool-wrapper-size__tool)*-2)}.window-header-tool-wrapper .tool.window-tool-fullscreen{background-position:0 -768px}.window-header-tool-wrapper .tool.window-tool-fullscreen .collapse{background-position:0 -864px}.window-header-tool-wrapper.dark .tool.window-tool-close{background-image:image-set(url("webman/3rdparty/Spreadsheet/dist/assets/images/1x/wdheader_bt_close_dark.png") 1x,url("webman/3rdparty/Spreadsheet/dist/assets/images/2x/wdheader_bt_close_dark.png") 1.5x);background-position:0 0;background-size:24px}.window-header-tool-wrapper.dark .tool.window-tool-close.disabled{cursor:auto;opacity:var(--v-window-header-tool-wrapper-opacity--disabled)}.window-header-tool-wrapper.dark .tool.window-tool-close:not(.disabled):hover{background-position:0 calc(var(--v-window-header-tool-wrapper-size__tool)*-1)}.window-header-tool-wrapper.dark .tool.window-tool-close:not(.disabled):active{background-position:0 calc(var(--v-window-header-tool-wrapper-size__tool)*-2)}.window-header-tool-wrapper.dark .tool.window-tool-help{background-image:image-set(url("webman/3rdparty/Spreadsheet/dist/assets/images/1x/wdheader_bt_help_dark.png") 1x,url("webman/3rdparty/Spreadsheet/dist/assets/images/2x/wdheader_bt_help_dark.png") 1.5x);background-position:0 0;background-size:24px}.window-header-tool-wrapper.dark .tool.window-tool-help.disabled{cursor:auto;opacity:var(--v-window-header-tool-wrapper-opacity--disabled)}.window-header-tool-wrapper.dark .tool.window-tool-help:not(.disabled):hover{background-position:0 calc(var(--v-window-header-tool-wrapper-size__tool)*-1)}.window-header-tool-wrapper.dark .tool.window-tool-help:not(.disabled):active{background-position:0 calc(var(--v-window-header-tool-wrapper-size__tool)*-2)}.v-window.v-about-window.dark-theme{background-color:#434548}.v-window.v-about-window.dark-theme .v-about-window-body.v-window-body .v-about-window-body-wrapper .content-bottom .desc,.v-window.v-about-window.dark-theme .v-about-window-body.v-window-body .v-about-window-body-wrapper .content-bottom .name,.v-window.v-about-window.dark-theme .v-about-window-body.v-window-body .v-about-window-body-wrapper .content-top .desc,.v-window.v-about-window.dark-theme .v-about-window-body.v-window-body .v-about-window-body-wrapper .content-top .name{color:var(--v-color-white)}.v-window.v-about-window.dark-theme .v-about-window-body.v-window-body .v-about-window-body-wrapper .content-bottom .copyright,.v-window.v-about-window.dark-theme .v-about-window-body.v-window-body .v-about-window-body-wrapper .content-top .copyright{color:#fff9}.v-window.v-about-window.dark-theme .v-about-window-body.v-window-body .v-about-window-body-wrapper .content-bottom .links>*,.v-window.v-about-window.dark-theme .v-about-window-body.v-window-body .v-about-window-body-wrapper .content-top .links>*{color:#4096ff}.v-window.v-about-window .v-about-window-mask{background-color:#ffffff0d;bottom:0;height:100%;left:0;pointer-events:none;position:absolute;right:0;top:0;width:100%;z-index:99999999}.v-window.v-about-window .v-about-window-header.v-window-header-wrapper{background-color:inherit;border-bottom:none;cursor:default;height:26px;padding:12px 0 0 20px}.v-window.v-about-window .v-about-window-header.v-window-header-wrapper .tool-wrapper{margin-right:12px}.v-window.v-about-window .v-about-window-body.v-window-body{background-color:inherit}.v-window.v-about-window .v-about-window-body.v-window-body .v-about-window-body-wrapper{padding:0 36px 18px}.v-window.v-about-window .v-about-window-body.v-window-body .v-about-window-body-wrapper .content-bottom,.v-window.v-about-window .v-about-window-body.v-window-body .v-about-window-body-wrapper .content-top{align-items:center;display:flex;flex-direction:column;padding:0 36px}.v-window.v-about-window .v-about-window-body.v-window-body .v-about-window-body-wrapper .content-bottom .content-row,.v-window.v-about-window .v-about-window-body.v-window-body .v-about-window-body-wrapper .content-top .content-row{text-align:center}.v-window.v-about-window .v-about-window-body.v-window-body .v-about-window-body-wrapper .content-bottom .name-and-desc,.v-window.v-about-window .v-about-window-body.v-window-body .v-about-window-body-wrapper .content-top .name-and-desc{display:flex;flex-direction:column}.v-window.v-about-window .v-about-window-body.v-window-body .v-about-window-body-wrapper .content-bottom .name-and-desc.swap,.v-window.v-about-window .v-about-window-body.v-window-body .v-about-window-body-wrapper .content-top .name-and-desc.swap{flex-direction:column-reverse}.v-window.v-about-window .v-about-window-body.v-window-body .v-about-window-body-wrapper .content-bottom .icon,.v-window.v-about-window .v-about-window-body.v-window-body .v-about-window-body-wrapper .content-top .icon{background-size:contain;height:64px;margin-bottom:10px;width:64px}.v-window.v-about-window .v-about-window-body.v-window-body .v-about-window-body-wrapper .content-bottom .name,.v-window.v-about-window .v-about-window-body.v-window-body .v-about-window-body-wrapper .content-top .name{color:var(--v-color-font-tier1);font-size:18px;font-weight:var(--v-font-weight-normal);height:28px;line-height:28px;margin:auto;position:relative}.v-window.v-about-window .v-about-window-body.v-window-body .v-about-window-body-wrapper .content-bottom .name .beta-tag,.v-window.v-about-window .v-about-window-body.v-window-body .v-about-window-body-wrapper .content-top .name .beta-tag{background-image:image-set(url("webman/3rdparty/Spreadsheet/dist/assets/images/1x/icn_beta.png") 1x,url("webman/3rdparty/Spreadsheet/dist/assets/images/2x/icn_beta.png") 1.5x);background-size:32px;height:16px;position:absolute;right:-37px;top:0;width:32px}.v-window.v-about-window .v-about-window-body.v-window-body .v-about-window-body-wrapper .content-bottom .name .label,.v-window.v-about-window .v-about-window-body.v-window-body .v-about-window-body-wrapper .content-top .name .label{display:inline;font-size:var(--v-font-size-tier1);font-style:italic;font-weight:var(--v-font-weight-normal);line-height:28px}.v-window.v-about-window .v-about-window-body.v-window-body .v-about-window-body-wrapper .content-bottom .desc,.v-window.v-about-window .v-about-window-body.v-window-body .v-about-window-body-wrapper .content-top .desc{color:var(--v-color-font-tier1);font-size:var(--v-font-size-tier1);font-weight:var(--v-font-weight-normal);line-height:24px}.v-window.v-about-window .v-about-window-body.v-window-body .v-about-window-body-wrapper .content-bottom .links,.v-window.v-about-window .v-about-window-body.v-window-body .v-about-window-body-wrapper .content-top .links{padding-bottom:6px}.v-window.v-about-window .v-about-window-body.v-window-body .v-about-window-body-wrapper .content-bottom .links>*,.v-window.v-about-window .v-about-window-body.v-window-body .v-about-window-body-wrapper .content-top .links>*{color:var(--v-color-action-normal);display:inline-block;font-size:var(--v-font-size-small-tier1);font-weight:var(--v-font-weight-normal);line-height:20px;text-decoration:underline}.v-window.v-about-window .v-about-window-body.v-window-body .v-about-window-body-wrapper .content-bottom .links .terms,.v-window.v-about-window .v-about-window-body.v-window-body .v-about-window-body-wrapper .content-top .links .terms{margin-right:20px}.v-window.v-about-window .v-about-window-body.v-window-body .v-about-window-body-wrapper .content-bottom .copyright,.v-window.v-about-window .v-about-window-body.v-window-body .v-about-window-body-wrapper .content-top .copyright{color:var(--v-color-font-tier3);font-size:var(--v-font-size-small-tier1);font-weight:var(--v-font-weight-normal);line-height:20px}.v-window.v-about-window .v-about-window-body.v-window-body .v-about-window-body-wrapper .divider{background-color:var(--v-color-border-tier3);height:1px;margin:20px 0 8px;width:100%}.v-window.v-about-window-v2{--v-about-window-v2-border-radius:12px;--v-about-window-v2-padding-top__header:12px;--v-about-window-v2-padding-right__header:0;--v-about-window-v2-padding-bottom__header:0;--v-about-window-v2-padding-left__header:0;--v-about-window-v2-border-bottom__header:0 solid #0000;--v-about-window-v2-margin__header-tool-wrapper:0 12px 0 0;--v-about-window-v2-padding__page-wrapper:0 36px 0 36px;--v-about-window-v2-padding__footer-wrapper:0 36px 36px 36px;--v-about-window-v2-padding__footer-content:0 24px 0 96px;--v-about-window-v2-padding__content-wrapper:0 24px 0 0;--v-about-window-v2-font-size__title:22px;--v-about-window-v2-font-size__subscript:14px;--v-about-window-v2-font-style__subscript:var(--v-font-style-italic);--v-about-window-v2-line-height__subscript:var(--v-line-height-200);--v-about-window-v2-color:var(--v-color-font-tier1);--v-about-window-v2-margin__title:0 6px 0 0;--v-about-window-v2-height__title-wrapper:32px;--v-about-window-v2-margin__sub-title:2px 0 0 0;--v-about-window-v2-margin__version-wrapper:12px 0 0 0;--v-about-window-v2-gap__version-wrapper:2px;--v-about-window-v2-margin__spin-icon:0 0 0 6px;--v-about-window-v2-margin__tagline-wrapper:18px 0 0 0;--v-about-window-v2-line-height__title-wrapper:32px;--v-about-window-v2-font-size__content-wrapper:var(--v-font-size-tier2);--v-about-window-v2-line-height__content-wrapper:22px;--v-about-window-v2-gap__page-wrapper:24px;--v-about-window-v2-size__icon:72px;--v-about-window-v2-height__divider:1px;--v-about-window-v2-margin__divider:24px 0;--v-about-window-v2-padding__divider:0 36px;--v-about-window-v2-bkg-color__divider:var(--v-color-border-tier3);--v-about-window-v2-font-size__footer-wrapper:var(--v-font-size-tier2);--v-about-window-v2-line-height__footer-wrapper:var(--v-line-height-100);--v-about-window-v2-gap__footer-content:8px;--v-about-window-v2-bkg-color__ellipsis:var(--v-color-action-normal);--v-about-window-v2-color__copyright:var(--v-color-font-tier3);--v-about-window-v2-margin__tick-blue:0 0 0 6px;border-radius:var(--v-about-window-v2-border-radius);box-shadow:none;color:var(--v-about-window-v2-color)}.v-window.v-about-window-v2 .window-header-tool-wrapper{margin:var(--v-about-window-v2-margin__header-tool-wrapper)}.v-window.v-about-window-v2 .v-window-header-wrapper{border-bottom:var(--v-about-window-v2-border-bottom__header);border-top-left-radius:var(--v-about-window-v2-border-radius);border-top-right-radius:var(--v-about-window-v2-border-radius);height:calc(var(--v-about-window-v2-padding-top__header) + var(--v-about-window-v2-size__icon) + var(--v-about-window-v2-padding-bottom__header));padding:var(--v-about-window-v2-padding-top__header) var(--v-about-window-v2-padding-right__header) var(--v-about-window-v2-padding-bottom__header) var(--v-about-window-v2-padding-left__header)}.v-window.v-about-window-v2 .page-wrapper{display:flex;flex-direction:row;gap:var(--v-about-window-v2-gap__page-wrapper);padding:var(--v-about-window-v2-padding__page-wrapper)}.v-window.v-about-window-v2 .page-wrapper .icon-wrapper .app-icon{background-size:var(--v-about-window-v2-size__icon)}.v-window.v-about-window-v2 .page-wrapper .content-wrapper{font-size:var(--v-about-window-v2-font-size__content-wrapper);line-height:var(--v-about-window-v2-line-height__content-wrapper);padding:var(--v-about-window-v2-padding__content-wrapper);width:100%}.v-window.v-about-window-v2 .page-wrapper .content-wrapper .title-wrapper{align-items:center;display:flex;flex-direction:row;height:var(--v-about-window-v2-height__title-wrapper);line-height:var(--v-about-window-v2-line-height__title-wrapper)}.v-window.v-about-window-v2 .page-wrapper .content-wrapper .title-wrapper .title{font-size:var(--v-about-window-v2-font-size__title);margin:var(--v-about-window-v2-margin__title)}.v-window.v-about-window-v2 .page-wrapper .content-wrapper .title-wrapper .subscript{font-size:var(--v-about-window-v2-font-size__subscript);font-style:var(--v-about-window-v2-font-style__subscript);line-height:var(--v-about-window-v2-line-height__subscript)}.v-window.v-about-window-v2 .page-wrapper .content-wrapper .title-wrapper .badge-wrapper{align-items:center;display:flex;flex-direction:row}.v-window.v-about-window-v2 .page-wrapper .content-wrapper .sub-title{margin:var(--v-about-window-v2-margin__sub-title)}.v-window.v-about-window-v2 .page-wrapper .content-wrapper .version-wrapper{display:flex;flex-direction:column;gap:var(--v-about-window-v2-gap__version-wrapper);margin:var(--v-about-window-v2-margin__version-wrapper)}.v-window.v-about-window-v2 .page-wrapper .content-wrapper .version-wrapper .version-status{align-items:center;display:flex}.v-window.v-about-window-v2 .page-wrapper .content-wrapper .version-wrapper .version-status .about-tick-blue{margin:var(--v-about-window-v2-margin__tick-blue)}.v-window.v-about-window-v2 .page-wrapper .content-wrapper .tagline-wrapper{margin:var(--v-about-window-v2-margin__tagline-wrapper)}.v-window.v-about-window-v2 .divider{background-clip:content-box;background-color:var(--v-about-window-v2-bkg-color__divider);box-sizing:border-box;height:var(--v-about-window-v2-height__divider);margin:var(--v-about-window-v2-margin__divider);padding:var(--v-about-window-v2-padding__divider);width:100%}.v-window.v-about-window-v2 .footer-wrapper{line-height:var(--v-about-window-v2-line-height__footer-wrapper);padding:var(--v-about-window-v2-padding__footer-wrapper)}.v-window.v-about-window-v2 .footer-wrapper .footer-content{display:flex;flex-direction:column;gap:var(--v-about-window-v2-gap__footer-content);padding:var(--v-about-window-v2-padding__footer-content)}.v-window.v-about-window-v2 .footer-wrapper .footer-content .content-row{align-items:center;display:flex}.v-window.v-about-window-v2 .footer-wrapper .footer-content .copyright{color:var(--v-about-window-v2-color__copyright)}.v-window.v-about-window-v2 .footer-wrapper .footer-content .ellipsis{background-color:var(--v-about-window-v2-bkg-color__ellipsis);border-radius:50%;display:inline-block;height:2px;margin:0 12px;width:2px}.v-window.v-about-window-v2 .link{color:var(--v-color-action-normal);font-weight:var(--v-font-weight-normal);text-decoration:underline}.v-about-window-v2-mask.v-window-container-mask{background-color:#0006}.v-spin-icon.about-window-v2-spin-icon{--v-spin-icon-size__rect:14px;--v-spin-icon-size:20px;margin:var(--v-about-window-v2-margin__spin-icon)}.v-messsage-box-window-mask-container{background-color:var(--v-message-box-window-bkg-color__container);height:100%;opacity:var(--v-message-box-window-opacity__container);position:absolute;width:100%}.v-messsage-box-window-mask-container,.v-window.v-message-box-window{--v-message-box-window-bkg-color__container:var(--v-color-white);--v-message-box-window-opacity__container:1;--v-message-box-window-border-radius:6px;--v-message-box-window-box-shadow:0 4px 16px 0 #0000004d;--v-message-box-window-color__panel:var(--v-color-font-tier1);--v-message-box-window-padding__panel:0;--v-message-box-window-padding__panel-body--is-password:16px 20px 0 20px;--v-message-box-window-border-radius__panel:8px;--v-message-box-window-padding__wrapper:16px 20px 0 20px;--v-message-box-window-font-size__password-desc:var(--v-font-size-tier1);--v-message-box-window-line-height__password-desc:var(--v-line-height-100);--v-message-box-window-padding__password-desc:4px 0;--v-message-box-window-margin__password-form:6px 0 0 0;--v-message-box-window-margin__password-form-item:0;--v-message-box-window-width__password-input:200px;--v-message-box-window-padding__password-fbar:28px 30px 20px 30px;--v-message-box-window-padding__body:24px 30px 0 30px;--v-message-box-window-margin-top__body--with-icon:0;--v-message-box-window-margin-top__body--with-icon-title:26px;--v-message-box-window-font-size__progress-title:var(--v-font-size-tier1);--v-message-box-window-line-height__progress-title:var(--v-line-height-100);--v-message-box-window-font-size__progress-percent:var(--v-font-size-tier1);--v-message-box-window-line-height__progress-percent:var(--v-line-height-100);--v-message-box-window-margin-top__progress-outer:8px;--v-message-box-window-bkg-color__progress-outer:#505a6426;--v-message-box-window-border-radius__progress:var(--v-border-radius-100);--v-message-box-window-height__progress:6px;--v-message-box-window-bkg-color__progress-inner:var(--v-color-blue);--v-message-box-window-font-size__progress-info:var(--v-font-size-tier1);--v-message-box-window-font-weight__progress-info:var(--v-font-weight-normal);--v-message-box-window-padding__progress-info:0;--v-message-box-window-margin-top__progress-info:8px;--v-message-box-window-padding__progress-title-wrapper:0;--v-message-box-window-color__progress-info:var(--v-color-font-tier2);--v-message-box-window-line-height__progress-info:var(--v-line-height-100);--v-message-box-window-top__icon-wrapper:-14px;--v-message-box-window-left__icon-wrapper:30px;--v-message-box-window-size__icon-wrapper:48px;--v-message-box-window-box-shadow__icon-wrapper:0 6px 12px 0 #e6404026;--v-message-box-window-border-radius__icon-wrapper:24px;--v-message-box-window-bkg-color__icon-wrapper--alarm:#e64040;--v-message-box-window-top__dialog-icon:8px;--v-message-box-window-left__dialog-icon:8px;--v-message-box-window-size__dialog-icon--alarm:32px;--v-message-box-window-font-size__dialog-title:16px;--v-message-box-window-line-height__dialog-title:var(--v-line-height-200);--v-message-box-window-margin-bottom__dialog-title:12px;--v-message-box-window-padding__dialog-content:0px;--v-message-box-window-font-size__dialog-content:var(--v-font-size-tier1);--v-message-box-window-line-height__dialog-content:var(--v-line-height-100);--v-message-box-window-margin__fbar-wrapper:0;--v-message-box-window-padding__fbar-wrapper:28px 30px 20px 30px;--v-message-box-window-margin-left__fbar-btn--pull-left:0;--v-message-box-window-margin-right__fbar-btn--pull-left:8px;--v-message-box-window-padding-right__fbar--pull-right:0;--v-message-box-window-padding-left__fbar--status-bar:0;--v-message-box-window-custom:false}.v-window.v-message-box-window{border-radius:var(--v-message-box-window-border-radius);box-shadow:var(--v-message-box-window-box-shadow);overflow:visible}.v-window.v-message-box-window .message-box-wrapper{flex:1 1 auto}.v-window.v-message-box-window .message-box-wrapper .focus-last-alert{height:0;overflow:hidden;width:0}.v-window.v-message-box-window .message-box{color:var(--v-message-box-window-color__panel);height:100%;padding:var(--v-message-box-window-padding__panel)}.v-window.v-message-box-window .message-box,.v-window.v-message-box-window .message-box .v-spin-wrapper-masking{border-radius:var(--v-message-box-window-border-radius__panel)}.v-window.v-message-box-window .message-box.is-password .body-wrapper{font-weight:var(--v-font-weight-normal)}.v-window.v-message-box-window .message-box.is-password .body-wrapper .dialog-content{font-size:var(--v-message-box-window-font-size__password-desc);line-height:var(--v-message-box-window-line-height__password-desc);padding:var(--v-message-box-window-padding__password-desc)}.v-window.v-message-box-window .message-box.is-password .body-wrapper .v-form{margin:var(--v-message-box-window-margin__password-form)}.v-window.v-message-box-window .message-box.is-password .body-wrapper .v-form .password-form-item{margin:var(--v-message-box-window-margin__password-form-item)}.v-window.v-message-box-window .message-box.is-password .body-wrapper .v-form .v-textfield-wrapper{width:var(--v-message-box-window-width__password-input)}.v-window.v-message-box-window .message-box.is-password .fbar-wrapper{padding:var(--v-message-box-window-padding__password-fbar)}.v-window.v-message-box-window .message-box .body-wrapper{padding:var(--v-message-box-window-padding__body)}.v-window.v-message-box-window .message-box .body-wrapper .message-box-body.has-icon{margin-top:var(--v-message-box-window-margin-top__body--with-icon)}.v-window.v-message-box-window .message-box .body-wrapper .message-box-body.has-icon.has-title{margin-top:var(--v-message-box-window-margin-top__body--with-icon-title)}.v-window.v-message-box-window .message-box .body-wrapper .progress-wrapper .progress-title-wrapper{padding:var(--v-message-box-window-padding__progress-title-wrapper)}.v-window.v-message-box-window .message-box .body-wrapper .progress-wrapper .progress-title-wrapper .progress-title{display:inline-block;font-size:var(--v-message-box-window-font-size__progress-title);font-weight:var(--v-font-weight-normal);line-height:var(--v-message-box-window-line-height__progress-title)}.v-window.v-message-box-window .message-box .body-wrapper .progress-wrapper .progress-title-wrapper .progress-percent{display:inline-block;font-size:var(--v-message-box-window-font-size__progress-percent);font-weight:var(--v-font-weight-bold);line-height:var(--v-message-box-window-line-height__progress-percent)}.v-window.v-message-box-window .message-box .body-wrapper .progress-wrapper .progress-bar-outer{background:var(--v-message-box-window-bkg-color__progress-outer);border-radius:var(--v-message-box-window-border-radius__progress);height:var(--v-message-box-window-height__progress);margin-top:var(--v-message-box-window-margin-top__progress-outer);width:100%}.v-window.v-message-box-window .message-box .body-wrapper .progress-wrapper .progress-bar-outer .progress-bar-inner{background:var(--v-message-box-window-bkg-color__progress-inner);border-bottom-left-radius:var(--v-message-box-window-border-radius__progress);border-top-left-radius:var(--v-message-box-window-border-radius__progress);height:var(--v-message-box-window-height__progress);width:0}.v-window.v-message-box-window .message-box .body-wrapper .progress-wrapper .progress-bar-outer .progress-bar-inner--full{border-bottom-right-radius:var(--v-message-box-window-border-radius__progress);border-top-right-radius:var(--v-message-box-window-border-radius__progress)}.v-window.v-message-box-window .message-box .body-wrapper .progress-wrapper .progress-info{color:var(--v-message-box-window-color__progress-info);font-size:var(--v-message-box-window-font-size__progress-info);font-weight:var(--v-message-box-window-font-weight__progress-info);line-height:var(--v-message-box-window-line-height__progress-info);margin-top:var(--v-message-box-window-margin-top__progress-info);padding:var(--v-message-box-window-padding__progress-info)}.v-window.v-message-box-window .message-box .body-wrapper .dialog-icon-wrapper{border-radius:var(--v-message-box-window-border-radius__icon-wrapper);box-shadow:var(--v-message-box-window-box-shadow__icon-wrapper);height:var(--v-message-box-window-size__icon-wrapper);left:var(--v-message-box-window-left__icon-wrapper);position:absolute;top:var(--v-message-box-window-top__icon-wrapper);width:var(--v-message-box-window-size__icon-wrapper);z-index:var(--v-z-index-message-box-window-icon)}.v-window.v-message-box-window .message-box .body-wrapper .dialog-icon-wrapper.alarm{background-color:var(--v-message-box-window-bkg-color__icon-wrapper--alarm)}.v-window.v-message-box-window .message-box .body-wrapper .dialog-icon-wrapper .dialog-icon{left:var(--v-message-box-window-left__dialog-icon);position:relative;top:var(--v-message-box-window-top__dialog-icon)}.v-window.v-message-box-window .message-box .body-wrapper .dialog-icon-wrapper .dialog-icon.alarm{background-image:image-set(url("webman/3rdparty/Spreadsheet/dist/assets/images/1x/dialog_alarm.png") 1x,url("webman/3rdparty/Spreadsheet/dist/assets/images/2x/dialog_alarm.png") 1.5x);background-size:32px;height:var(--v-message-box-window-size__dialog-icon--alarm);width:var(--v-message-box-window-size__dialog-icon--alarm)}.v-window.v-message-box-window .message-box .body-wrapper .dialog-title{font-size:var(--v-message-box-window-font-size__dialog-title);font-weight:var(--v-font-weight-bold);line-height:var(--v-message-box-window-line-height__dialog-title);margin-bottom:var(--v-message-box-window-margin-bottom__dialog-title)}.v-window.v-message-box-window .message-box .body-wrapper .dialog-content{font-size:var(--v-message-box-window-font-size__dialog-content);font-weight:var(--v-font-weight-normal);line-height:var(--v-message-box-window-line-height__dialog-content);overflow-wrap:break-word;padding:var(--v-message-box-window-padding__dialog-content)}.v-window.v-message-box-window .message-box .fbar-wrapper{border-top:none;margin:var(--v-message-box-window-margin__fbar-wrapper);padding:var(--v-message-box-window-padding__fbar-wrapper)}.v-window.v-message-box-window .message-box .fbar-wrapper .default{display:flex}.v-window.v-message-box-window .message-box .fbar-wrapper .pull-left .v-btn{margin-left:var(--v-message-box-window-margin-left__fbar-btn--pull-left);margin-right:var(--v-message-box-window-margin-right__fbar-btn--pull-left)}.v-window.v-message-box-window .message-box .fbar-wrapper .pull-right{padding-right:var(--v-message-box-window-padding-right__fbar--pull-right)}.v-window.v-message-box-window .message-box .fbar-wrapper .v-status-bar{padding-left:var(--v-message-box-window-padding-left__fbar--status-bar)}.v-wizard.v-layout{--v-wizard-padding-bottom__wrap:0;--v-wizard-height__wrap:56px;--v-wizard-bkg-color__wrap:var(--d-theme-main-color);--v-wizard-top__headline:12px;--v-wizard-padding__headline:12px 40px 20px 40px;--v-wizard-padding__headline--mobile:4px 20px 16px 20px;--v-wizard-top__headline--mobile:4px;--v-wizard-left__headline--mobile:20px;--v-wizard-left__headline:40px;--v-wizard-line-height__headline:24px;--v-wizard-line-height__headline--fixed:20px;--v-wizard-width__headline:calc(100% - 40px);--v-wizard-width__headline--mobile:calc(100% - 20px);--v-wizard-height__headline:24px;--v-wizard-color__headline:var(--v-color-white);--v-wizard-font-size__headline:16px;--v-wizard-font-size__headline--mobile:15px;--v-wizard-font-size__headline--fixed:12px;--v-wizard-font-weight__headline:var(--v-font-weight-bold);--v-wizard-font-weight__headline--fixed:var(--v-font-weight-normal);--v-wizard-border-top__footer:0px solid #c6d4e080;--v-wizard-padding__footer:12px 20px 20px 20px;--v-wizard-padding__welcome-footer:13px 24px 20px 24px;--v-wizard-margin-left__footer-btn:10px;--v-wizard-margin-right__footer-left-area:12px;--v-wizard-margin__footer-left-btn:0 12px 0 10px;--v-wizard-gap__button-region--mobile:10px;--v-wizard-border-top__footer--mobile:0px solid #c6d4e080;--v-wizard-padding__footer--mobile:13px 20px 13px 20px;--v-wizard-padding__welcome-footer--mobile:13px 20px 20px 20px;display:flex;flex-direction:column;height:100%}.v-wizard.v-layout.mobile .step-wrap .headline-wrap{padding:var(--v-wizard-padding__headline--mobile)}.v-wizard.v-layout.mobile .step-wrap .headline-wrap .headline{display:-webkit-box;font-size:var(--v-wizard-font-size__headline--mobile);-webkit-line-clamp:2;white-space:normal;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis}.v-wizard.v-layout .step-wrap{flex:1 1 auto;overflow:hidden;padding-bottom:var(--v-wizard-padding-bottom__wrap)}.v-wizard.v-layout .step-wrap>.step-scrollbar.v-ps.ps{display:flex;flex-direction:column}.v-wizard.v-layout .step-wrap>.step-scrollbar.v-ps.ps .headline-wrap{flex:0 0 auto}.v-wizard.v-layout .step-wrap>.step-scrollbar.v-ps.ps .step-container{flex:1 1 auto}.v-wizard.v-layout .step-wrap .headline-wrap{background-color:var(--v-wizard-bkg-color__wrap);box-sizing:border-box;height:auto;padding:var(--v-wizard-padding__headline);position:relative}.v-wizard.v-layout .step-wrap .headline-wrap.fixed-headline{position:fixed;width:100%}.v-wizard.v-layout .step-wrap .headline-wrap.fixed-headline .headline{font-size:var(--v-wizard-font-size__headline--fixed);font-weight:var(--v-wizard-font-weight__headline--fixed);line-height:var(--v-wizard-line-height__headline--fixed);padding:0}.v-wizard.v-layout .step-wrap .headline-wrap .headline{color:var(--v-wizard-color__headline);font-size:var(--v-wizard-font-size__headline);font-weight:var(--v-wizard-font-weight__headline);height:auto;line-height:var(--v-wizard-line-height__headline);overflow:hidden;position:relative;text-overflow:ellipsis;width:100%}.v-wizard.v-layout .step-wrap .step-container.v-layout{--v-wizard-step-container-padding__layout:var(--svc-layout-padding);padding:var(--v-wizard-step-container-padding__layout)}.v-wizard.v-layout .v-wizard-footer{align-items:center;border-top:var(--v-wizard-border-top__footer);box-sizing:border-box;display:flex;flex-direction:row;padding:var(--v-wizard-padding__footer);width:100%}.v-wizard.v-layout .v-wizard-footer.mobile{border-top:var(--v-wizard-border-top__footer--mobile);padding:var(--v-wizard-padding__footer--mobile)}.v-wizard.v-layout .v-wizard-footer.mobile .button-region{display:flex;flex:1 1 auto;gap:var(--v-wizard-gap__button-region--mobile);margin:0;overflow:hidden;width:auto}.v-wizard.v-layout .v-wizard-footer.mobile .button-region .v-btn{flex:1 1 0;margin:0}.v-wizard.v-layout .v-wizard-footer.welcome{border-top:none;padding:var(--v-wizard-padding__welcome-footer)}.v-wizard.v-layout .v-wizard-footer.welcome.mobile{padding:var(--v-wizard-padding__welcome-footer--mobile)}.v-wizard.v-layout .v-wizard-footer .button-group{display:inline-flex;flex-flow:row;width:auto}.v-wizard.v-layout .v-wizard-footer .button-group.center{align-items:center;justify-content:center;width:100%}.v-wizard.v-layout .v-wizard-footer .button-group.center .v-btn{margin-right:0}.v-wizard.v-layout .v-wizard-footer .button-group .v-btn{margin-left:var(--v-wizard-margin-left__footer-btn)}.v-wizard.v-layout .v-wizard-footer .left-area{align-items:center;display:flex;flex-direction:row;margin-right:var(--v-wizard-margin-right__footer-left-area);overflow:hidden;width:100%}.v-wizard.v-layout .v-wizard-footer .left-area .left-btn{margin:var(--v-wizard-margin__footer-left-btn)}.v-wizard.v-layout .v-wizard-footer .left-area .status-bar{width:100%}.v-wizard.v-layout .v-wizard-step{height:100%;position:relative}.v-timeline{--v-timeline-height:100%;--v-timeline-width:100%;--v-timeline-width__group:100%;--v-timeline-padding__group:0 12px 0 0;--v-timeline-bkg-color__group-header:var(--v-color-white);--v-timeline-width__group-header:100%;--v-timeline-min-height__group-header:42px;--v-timeline-padding__group-header-text:0 2px 0 8px;--v-timeline-font-weight__group-header-text:var(--v-font-weight-bold);--v-timeline-font-size__group-header-text:var(--v-font-size-small-tier1);--v-timeline-line-height__group-header-text:var(--v-line-height-200);--v-timeline-color__group-header-text:#414b5580;--v-timeline-color__group-header-text--hover:var(--v-color-font-tier2);--v-timeline-color__group-header-text--active:#414b55b3;--v-timeline-width__group-item:100%;--v-timeline-height__group-item:42px;--v-timeline-padding-right__group-item:6px;--v-timeline-bkg-color__group-item--hover:var(--v-item-bg-tier1);--v-timeline-bkg-color__group-item--active:var(--v-item-bg-tier2);--v-timeline-border-radius__group-item:var(--v-border-radius-300);--v-timeline-padding-right__group-item-rail:46px;--v-timeline-color__group-item-rail-line:var(--v-color-border-tier2);--v-timeline-color__group-item-rail-circle:var(--v-color-white);--v-timeline-border-color__group-item-rail-circle:#8c96a0;--v-timeline-border-color__group-item-rail-circle--active:var(--v-color-main);--v-timeline-border-radius__group-item-rail-circle:50%;--v-timeline-margin-right__group-item-date:4px;--v-timeline-font-size__group-item-date:var(--v-font-size-tier2);--v-timeline-font-weight__group-item-date:var(--v-font-weight-bold);--v-timeline-line-height__group-item-date:var(--v-line-height-100);--v-timeline-color__group-item-date:var(--v-color-font-tier1);--v-timeline-font-size__group-item-time:var(--v-font-size-small-tier1);--v-timeline-font-weight__group-item-time:var(--v-font-weight-normal);--v-timeline-line-height__group-item-time:var(--v-line-height-100);--v-timeline-color__group-item-time:var(--v-color-font-tier2);height:var(--v-timeline-height);width:var(--v-timeline-width)}.v-timeline .group{box-sizing:border-box;display:inline-block;padding:var(--v-timeline-padding__group);width:var(--v-timeline-width__group)}.v-timeline .group .group-header{align-items:center;background-color:var(--v-timeline-bkg-color__group-header);display:inline-flex;flex-direction:row;min-height:var(--v-timeline-min-height__group-header);position:sticky;top:0;width:var(--v-timeline-width__group-header);z-index:2}.v-timeline .group .group-header .text{color:var(--v-timeline-color__group-header-text);flex:1;font-size:var(--v-timeline-font-size__group-header-text);font-weight:var(--v-timeline-font-weight__group-header-text);line-height:var(--v-timeline-line-height__group-header-text);padding:var(--v-timeline-padding__group-header-text)}.v-timeline .group .group-header:hover{cursor:pointer}.v-timeline .group .group-header:hover .text{color:var(--v-timeline-color__group-header-text--hover)}.v-timeline .group .group-header:hover .arrow:not(.disabled){color:var(--hover);fill-opacity:var(--fill-opacity--hover)}.v-timeline .group .group-header:active .text{color:var(--v-timeline-color__group-header-text--active)}.v-timeline .group .group-header:active .arrow:not(.disabled){color:var(--active);fill-opacity:var(--fill-opacity--active)}.v-timeline .group .group-points{padding:4px 0}.v-timeline .point-item{align-items:center;border-radius:var(--v-timeline-border-radius__group-item);box-sizing:border-box;cursor:default;display:flex;flex-direction:row;height:var(--v-timeline-height__group-item);padding-right:var(--v-timeline-padding-right__group-item);width:var(--v-timeline-width__group-item)}.v-timeline .point-item .line{height:100%;padding-right:var(--v-timeline-padding-right__group-item-rail);position:relative}.v-timeline .point-item .line:before{background:var(--v-timeline-color__group-item-rail-line);content:"";height:100%;left:24px;position:absolute;width:2px}.v-timeline .point-item .line:after{background-color:var(--v-timeline-color__group-item-rail-circle);border:2px solid var(--v-timeline-border-color__group-item-rail-circle);border-radius:var(--v-timeline-border-radius__group-item-rail-circle);box-sizing:border-box;content:"";height:10px;left:20px;position:absolute;top:17px;width:10px}.v-timeline .point-item .text{align-items:center;display:inline-flex;flex:1;flex-direction:row}.v-timeline .point-item .text .date{color:var(--v-timeline-color__group-item-date);font-size:var(--v-timeline-font-size__group-item-date);font-weight:var(--v-timeline-font-weight__group-item-date);line-height:var(--v-timeline-line-height__group-item-date);margin-right:var(--v-timeline-margin-right__group-item-date)}.v-timeline .point-item .text .time{color:var(--v-timeline-color__group-item-time);font-size:var(--v-timeline-font-size__group-item-time);font-weight:var(--v-timeline-font-weight__group-item-time);line-height:var(--v-timeline-line-height__group-item-time)}.v-timeline .point-item .action-wrapper{display:none}.v-timeline .point-item.selected{background-color:var(--v-timeline-bkg-color__group-item--active)}.v-timeline .point-item.selected .line:after{border-color:var(--v-timeline-border-color__group-item-rail-circle--active)}.v-timeline .point-item.selected .action-wrapper{display:block}.v-timeline .point-item:hover:not(.selected){background-color:var(--v-timeline-bkg-color__group-item--hover);cursor:pointer}.v-timeline .point-item:hover:not(.selected) .action-wrapper{display:block}.v-timeline .point-item:first-of-type .line:before{bottom:0;height:calc(100% + 4px)}.v-timeline .point-item:last-of-type .line:before{bottom:-4px;height:calc(100% + 4px)}.v-timeline .point-item:first-of-type:last-of-type .line:before{bottom:-4px;height:calc(100% + 8px)}.v-breadcrumb{--v-breadcrumb-width:100%;--v-breadcrumb-padding:2px 0;--v-breadcrumb-color__divider:#56585a;--v-breadcrumb-min-width__ellipsis-item:24px;--v-breadcrumb-font-size__item:var(--v-font-size-tier1);--v-breadcrumb-font-weight__item:var(--v-font-weight-normal);--v-breadcrumb-line-height__item:var(--v-line-height-200);--v-breadcrumb-color__item:var(--v-color-font-tier1);--v-breadcrumb-color__item--hover:var(--v-color-action-normal);--v-breadcrumb-font-weight__last-item:var(--v-font-weight-bold);align-items:center;display:inline-flex;flex-direction:row;padding:var(--v-breadcrumb-padding);width:var(--v-breadcrumb-width)}.v-breadcrumb .item.divider{color:rgba(var(--v-breadcrumb-color__divider));fill-opacity:.6;background-image:image-set(url("webman/3rdparty/Spreadsheet/dist/assets/images/1x/breadcrumb_slash.png") 1x,url("webman/3rdparty/Spreadsheet/dist/assets/images/2x/breadcrumb_slash.png") 1.5x);background-size:20px auto;width:20px}.v-breadcrumb .item.v-btn.v-btn-styleless{color:var(--v-breadcrumb-color__item);cursor:pointer;font-size:var(--v-breadcrumb-font-size__item);font-weight:var(--v-breadcrumb-font-weight__item)}.v-breadcrumb .item.v-btn.v-btn-styleless,.v-breadcrumb .item.v-btn.v-btn-styleless .v-btn-text{line-height:var(--v-breadcrumb-line-height__item)}.v-breadcrumb .item.v-btn.v-btn-styleless.action .v-icon.action-dropdown{background-image:image-set(url("webman/3rdparty/Spreadsheet/dist/assets/images/1x/combo_trigger.png") 1x,url("webman/3rdparty/Spreadsheet/dist/assets/images/2x/combo_trigger.png") 1.5x);background-position:0 0;background-size:24px}.v-breadcrumb .item.v-btn.v-btn-styleless.ellipsis{min-width:var(--v-breadcrumb-min-width__ellipsis-item)}.v-breadcrumb .item.v-btn.v-btn-styleless.ellipsis.action{min-width:calc(var(--v-breadcrumb-min-width__ellipsis-item) + 24px)}.v-breadcrumb .item.v-btn.v-btn-styleless.ellipsis .v-btn-text .v-btn-content{display:flex}.v-breadcrumb .item.v-btn.v-btn-styleless.ellipsis .v-btn-text .v-btn-content span{flex:1 1 auto;overflow:hidden;text-overflow:ellipsis;vertical-align:top}.v-breadcrumb .item.v-btn.v-btn-styleless:hover{color:var(--v-breadcrumb-color__item--hover)}.v-breadcrumb .item.v-btn.v-btn-styleless:hover .v-icon.action-dropdown{background-position-y:-24px}.v-breadcrumb .item.v-btn.v-btn-styleless:hover .v-icon.action-dropdown:not(.disabled){color:var(--hover);fill-opacity:var(--fill-opacity--hover)}.v-breadcrumb .item.v-btn.v-btn-styleless:last-of-type .v-btn-text{font-weight:var(--v-breadcrumb-font-weight__last-item)}.v-breadcrumb .v-breadcrumb-spacer{flex:1 1 auto;overflow:hidden;width:1px}.v-row{display:flex;flex-direction:row;flex-wrap:nowrap;margin-left:calc(var(--v-row-horizontal-gap)*-1/2);margin-right:calc(var(--v-row-horizontal-gap)*-1/2);row-gap:var(--v-row-vertical-gap)}.v-row.wrap{flex-wrap:wrap}.v-row.align-start{align-items:flex-start}.v-row.justify-content-start{justify-content:flex-start}.v-row.align-end{align-items:flex-end}.v-row.justify-content-end{justify-content:flex-end}.v-row.align-baseline{align-items:baseline}.v-row.justify-content-baseline{justify-content:baseline}.v-row.align-center{align-items:center}.v-row.justify-content-center{justify-content:center}.v-row.align-stretch{align-items:stretch}.v-row.justify-content-stretch{justify-content:stretch}.v-grid{align-items:var(--grid-align);display:grid;gap:var(--v-grid-row-gap,0) var(--v-grid-col-gap,0);grid-template-columns:var(--grid-template-columns,1fr);grid-template-rows:var(--grid-template-rows,1fr);justify-content:var(--grid-justify);overflow:hidden;width:100%}.v-col-auto.in-grid-layout{grid-column:auto/auto}.v-col-auto.in-row-layout{flex:auto}.v-col-none.in-row-layout{flex:none}.v-col{box-sizing:border-box}.v-col.in-grid-layout.v-col-0{grid-column:auto/span 0}.v-col.in-grid-layout.v-col-1{grid-column:auto/span 1}.v-col.in-grid-layout.v-col-2{grid-column:auto/span 2}.v-col.in-grid-layout.v-col-3{grid-column:auto/span 3}.v-col.in-grid-layout.v-col-4{grid-column:auto/span 4}.v-col.in-grid-layout.v-col-5{grid-column:auto/span 5}.v-col.in-grid-layout.v-col-6{grid-column:auto/span 6}.v-col.in-grid-layout.v-col-7{grid-column:auto/span 7}.v-col.in-grid-layout.v-col-8{grid-column:auto/span 8}.v-col.in-grid-layout.v-col-9{grid-column:auto/span 9}.v-col.in-grid-layout.v-col-10{grid-column:auto/span 10}.v-col.in-grid-layout.v-col-11{grid-column:auto/span 11}.v-col.in-grid-layout.v-col-12{grid-column:auto/span 12}.v-col.in-grid-layout.v-col-13{grid-column:auto/span 13}.v-col.in-grid-layout.v-col-14{grid-column:auto/span 14}.v-col.in-grid-layout.v-col-15{grid-column:auto/span 15}.v-col.in-grid-layout.v-col-16{grid-column:auto/span 16}.v-col.in-grid-layout.v-col-17{grid-column:auto/span 17}.v-col.in-grid-layout.v-col-18{grid-column:auto/span 18}.v-col.in-grid-layout.v-col-19{grid-column:auto/span 19}.v-col.in-grid-layout.v-col-20{grid-column:auto/span 20}.v-col.in-grid-layout.v-col-21{grid-column:auto/span 21}.v-col.in-grid-layout.v-col-22{grid-column:auto/span 22}.v-col.in-grid-layout.v-col-23{grid-column:auto/span 23}.v-col.in-grid-layout.v-col-24{grid-column:auto/span 24}.v-col.in-row-layout.v-col-0{flex:0 0 0%;max-width:0}.v-col.in-row-layout.v-col-1{flex:0 0 4.1666666667%;max-width:4.1666666667%}.v-col.in-row-layout.v-col-2{flex:0 0 8.3333333333%;max-width:8.3333333333%}.v-col.in-row-layout.v-col-3{flex:0 0 12.5%;max-width:12.5%}.v-col.in-row-layout.v-col-4{flex:0 0 16.6666666667%;max-width:16.6666666667%}.v-col.in-row-layout.v-col-5{flex:0 0 20.8333333333%;max-width:20.8333333333%}.v-col.in-row-layout.v-col-6{flex:0 0 25%;max-width:25%}.v-col.in-row-layout.v-col-7{flex:0 0 29.1666666667%;max-width:29.1666666667%}.v-col.in-row-layout.v-col-8{flex:0 0 33.3333333333%;max-width:33.3333333333%}.v-col.in-row-layout.v-col-9{flex:0 0 37.5%;max-width:37.5%}.v-col.in-row-layout.v-col-10{flex:0 0 41.6666666667%;max-width:41.6666666667%}.v-col.in-row-layout.v-col-11{flex:0 0 45.8333333333%;max-width:45.8333333333%}.v-col.in-row-layout.v-col-12{flex:0 0 50%;max-width:50%}.v-col.in-row-layout.v-col-13{flex:0 0 54.1666666667%;max-width:54.1666666667%}.v-col.in-row-layout.v-col-14{flex:0 0 58.3333333333%;max-width:58.3333333333%}.v-col.in-row-layout.v-col-15{flex:0 0 62.5%;max-width:62.5%}.v-col.in-row-layout.v-col-16{flex:0 0 66.6666666667%;max-width:66.6666666667%}.v-col.in-row-layout.v-col-17{flex:0 0 70.8333333333%;max-width:70.8333333333%}.v-col.in-row-layout.v-col-18{flex:0 0 75%;max-width:75%}.v-col.in-row-layout.v-col-19{flex:0 0 79.1666666667%;max-width:79.1666666667%}.v-col.in-row-layout.v-col-20{flex:0 0 83.3333333333%;max-width:83.3333333333%}.v-col.in-row-layout.v-col-21{flex:0 0 87.5%;max-width:87.5%}.v-col.in-row-layout.v-col-22{flex:0 0 91.6666666667%;max-width:91.6666666667%}.v-col.in-row-layout.v-col-23{flex:0 0 95.8333333333%;max-width:95.8333333333%}.v-col.in-row-layout.v-col-24{flex:0 0 100%;max-width:100%}.v-col.in-row-layout{padding-left:calc(var(--v-row-horizontal-gap)/2);padding-right:calc(var(--v-row-horizontal-gap)/2)}.v-notification-container{float:right;margin:-6px;min-height:58px;overflow:hidden;padding:6px;position:absolute;right:12px;transition:top .3s ease-in-out 0s;width:320px;z-index:12003}.v-notification-container .v-notification-wrapper{display:flex;padding:8px 12px 12px}.v-notification-container .v-notification-wrapper .v-icon.v-notification-icon{height:32px;margin-right:10px;width:32px}.v-notification-container .v-notification-body-wrapper{display:flex;flex-direction:column}.v-notification-container .v-notification-panel{background-color:#fff;border-radius:4px;box-shadow:0 2px 6px #00000080;min-height:58px;opacity:1;position:relative;right:0;transition:top .3s ease-in-out 0s,right .5s ease-out 0s,opacity .5s ease-out 0s;width:320px}.v-notification-container .v-notification-panel.show{top:0!important}.v-notification-container .v-notification-panel.leave{opacity:0;right:-326px}.v-notification-container .v-notification-panel .close-btn{background-image:image-set(url("webman/3rdparty/Spreadsheet/dist/assets/images/1x/wdheader_bt_close.png") 1x,url("webman/3rdparty/Spreadsheet/dist/assets/images/2x/wdheader_bt_close.png") 1.5x);background-position:0 0;background-size:24px;cursor:pointer;height:24px;position:absolute;right:6px;top:6px;width:24px}.v-notification-container .v-notification-panel .close-btn:hover{background-position:0 -24px}.v-notification-container .v-notification-panel .close-btn:active{background-position:0 -48px}.v-notification-container .v-notification-body{color:var(--v-color-font-tier1);font-size:var(--v-font-size-tier1);font-weight:var(--v-font-weight-normal);letter-spacing:0;line-height:20px;min-height:18px;overflow-wrap:break-word}.v-notification-container .v-notification-title{color:var(--v-color-blue);display:flex;font-size:var(--v-font-size-tier1);font-weight:var(--v-font-weight-bold);letter-spacing:0;line-height:20px;margin-right:26px;min-height:20px;overflow-wrap:break-word;padding-bottom:4px}.v-notification-container .v-notification-footer-wrapper{align-items:center;display:flex;justify-content:flex-end;padding:0 20px 12px 12px}.v-notification-container .v-notification-footer-wrapper a.v-notification-footer-skip-btn{color:#414b55;cursor:pointer;margin-right:20px}.v-overflow-list{align-items:center;display:flex;overflow:hidden}.v-overflow-list .v-overflow-list-spacer{flex:0 1 auto;width:1px}.v-overflow-text{align-items:center;box-sizing:border-box;display:flex;flex-direction:row;overflow:hidden}.v-overflow-text .v-overflow-text-content{white-space:nowrap}.v-overflow-text .v-overflow-text-spacer{flex:0 1 auto;width:1px}.v-ghost{box-sizing:border-box;position:relative;--v-ghost-height:40px;--v-ghost-width:200px;--v-ghost-padding:10px 24px 10px 16px;--v-ghost-box-shadow:0 2px 8px 0 #0003;--v-ghost-border:1px solid #0000;--v-ghost-border-radius:var(--v-border-radius-200);--v-ghost-bkg-color:var(--v-color-white);--v-ghost-font-size:var(--v-font-size-tier1);--v-ghost-color:var(--v-color-font-tier1);--v-ghost-line-height:var(--v-line-height-100);--v-ghost-font-weight:var(--v-font-weight-normal);--v-ghost-dot-border-width:1px;--v-ghost-dot-size:24px;--v-ghost-dot-padding:0 6px;--v-ghost-dot-bkg-color:var(--v-color-red);--v-ghost-dot-color:var(--v-color-white);--v-ghost-dot-border-radius:14px;--v-ghost-dot-box-shadow:0 2px 8px 0 #0003;background-color:var(--v-ghost-bkg-color);border:var(--v-ghost-border);border-radius:var(--v-ghost-border-radius);box-shadow:var(--v-ghost-box-shadow);color:var(--v-ghost-color);font-size:var(--v-ghost-font-size);font-weight:var(--v-ghost-font-weight);height:var(--v-ghost-height);line-height:var(--v-ghost-line-height);padding:var(--v-ghost-padding);width:var(--v-ghost-width)}.v-ghost .ghost-title-wrapper{align-items:center;display:flex;gap:8px}.v-ghost .ghost-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.v-ghost .ghost-dot-nums{align-items:center;background-color:var(--v-ghost-dot-bkg-color);border-radius:var(--v-ghost-dot-border-radius);box-shadow:var(--v-ghost-dot-box-shadow);box-sizing:border-box;color:var(--v-ghost-dot-color);display:inline-flex;font-style:normal;height:var(--v-ghost-dot-size);justify-content:center;left:calc(var(--v-ghost-width) - var(--v-ghost-dot-size)/2 - var(--v-ghost-dot-border-width));list-style:none;min-width:var(--v-ghost-dot-size);padding:var(--v-ghost-dot-padding);position:absolute;top:calc(var(--v-ghost-dot-size)/-2 - var(--v-ghost-dot-border-width))}.otp-input{--v-otp-input-gap__content:8px}.otp-input .input-content{display:flex;flex-direction:row;gap:var(--v-otp-input-gap__content)}.v-segment-control{--v-segment-control-width:auto;--v-segment-control-bkg-color:#c6d4e066;--v-segment-control-padding:2px;--v-segment-control-border-radius:var(--v-border-radius-100);background-color:var(--v-segment-control-bkg-color);border-radius:var(--v-segment-control-border-radius);display:inline-flex;padding:var(--v-segment-control-padding);width:var(--v-segment-control-width)}.v-segment-item{--v-segment-item-line-height:20px;--v-segment-item-height:24px;--v-segment-item-flex:1 1 auto;--v-segment-item-font-size:var(--v-font-size-tier1);--v-segment-item-min-width:48px;--v-segment-item-padding:0 12px;--v-segment-item-bkg-color--active:var(--v-color-white);--v-segment-item-bkg-color--hover:#0000000a;--v-segment-item-border-radius:var(--v-border-radius-10);--v-segment-item-gap:6px;--v-segment-item-size__dot:6px;--v-segment-item-bkg-color__dot:var(--v-color-red);--v-segment-item-opacity--disabled:0.4;align-items:center;border-radius:var(--v-segment-item-border-radius);box-sizing:border-box;cursor:pointer;display:flex;flex:var(--v-segment-item-flex);font-size:var(--v-segment-item-font-size);gap:var(--v-segment-item-gap);height:var(--v-segment-item-height);justify-content:center;line-height:var(--v-segment-item-line-height);min-width:var(--v-segment-item-min-width);padding:var(--v-segment-item-padding)}.v-segment-item--disabled{cursor:default}.v-segment-item--disabled .v-icon{opacity:var(--v-segment-item-opacity--disabled)}.v-segment-item__content{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.v-segment-item__content--disabled{opacity:var(--v-segment-item-opacity--disabled)}.v-segment-item__dot{background-color:var(--v-segment-item-bkg-color__dot);border-radius:var(--v-border-radius-circle);display:block;height:var(--v-segment-item-size__dot);width:var(--v-segment-item-size__dot)}.v-segment-item__dot--disabled{opacity:var(--v-segment-item-opacity--disabled)}.v-segment-item--active{background-color:var(--v-segment-item-bkg-color--active);transition:background-color .2s ease-in-out}.v-segment-item:hover:not(.v-segment-item--active):not(.v-segment-item--disabled){background-color:var(--v-segment-item-bkg-color--hover);transition:background-color .1s ease-in-out}.v-notify-container{display:flex;flex-direction:column;position:fixed;right:0;top:0;z-index:99999}.v-notify-container--tr{--animate-from:translate3d(0,0,0)}.v-notify-container--tr .v-notification-v2{transform-origin:center top}.v-notify-container--tl{--animate-from:translate3d(-100%,0,0)}.v-notify-container--tl .v-notification-v2{transform-origin:center top}.v-notify-container--bl{--animate-from:translate3d(-100%,-100%,0)}.v-notify-container--bl .v-notification-v2{transform-origin:center bottom}.v-notify-container--br{--animate-from:translate3d(0,-100%,0)}.v-notify-container--br .v-notification-v2{transform-origin:center bottom}.v-notify-container--no-animate .v-notification-v2{transition:none}.v-notify-container .v-notification-v2{position:absolute}.v-notify-container .v-notification-v2.notify-list-enter-active,.v-notify-container .v-notification-v2.notify-list-leave-active{transition:all .3s ease-in-out}.v-notify-container .v-notification-v2.notify-list-enter-from,.v-notify-container .v-notification-v2.notify-list-leave-to{opacity:0;transform:var(--animate-from)}.v-notification-v2{--v-notification-v2-width:360px;--v-notification-v2-min-width:320px;--v-notification-v2-max-width:480px;--v-notification-v2-padding:12px;--v-notification-v2-box-shadow:0 2px 8px 0 #0003;--v-notification-v2-line-height:var(--v-line-height-100);--v-notification-v2-bkg-color:var(--v-color-white);--v-notification-v2-bkg-color--blur:var(--v-color-white-tier2);--v-notification-v2-filter--blur:blur(5px);--v-notification-v2-border-radius:var(--v-border-radius-200);background-color:var(--v-notification-v2-bkg-color);border-radius:var(--v-notification-v2-border-radius);box-shadow:var(--v-notification-v2-box-shadow);box-sizing:border-box;line-height:var(--v-notification-v2-line-height);max-width:var(--v-notification-v2-max-width);min-width:var(--v-notification-v2-min-width);opacity:1;padding:var(--v-notification-v2-padding);transition:all .3s ease-in-out;width:var(--v-notification-v2-width);z-index:var(--z-index)}.v-notification-v2:after{bottom:calc(var(--normal-gap)*-1);content:"";height:var(--normal-gap);left:0;position:absolute;width:100%}.v-notification-v2--blur{-webkit-backdrop-filter:var(--v-notification-v2-filter--blur);backdrop-filter:var(--v-notification-v2-filter--blur);background-color:var(--v-notification-v2-bkg-color--blur)}.v-notification-v2--blur>*,.v-notification-v2--no-visible{opacity:0}.v-notification-v2__container{align-items:flex-start;display:flex;flex-direction:row}.v-notification-v2__icon{--v-notification-v2-icon-margin:0 10px 0 0;flex:0 0 auto;margin:var(--v-notification-v2-icon-margin)}.v-notification-v2__body{--v-notification-v2-body-gap:4px;--v-notification-v2-body-font-size__title:var(--v-font-size-tier1);--v-notification-v2-body-font-weight__title:var(--v-font-weight-bold);--v-notification-v2-body-color__title:var(--v-color-main);--v-notification-v2-body-padding:2px 0;display:flex;flex:1 1 auto;flex-direction:column;gap:var(--v-notification-v2-body-gap);padding:var(--v-notification-v2-body-padding)}.v-notification-v2__title{color:var(--v-notification-v2-body-color__title);font-size:var(--v-notification-v2-body-font-size__title);font-weight:var(--v-notification-v2-body-font-weight__title)}.v-notification-v2__actions{--v-notification-v2-actions-margin:0 0 0 4px;flex:0 0 auto;margin:var(--v-notification-v2-actions-margin)}.v-notification-v2__actions .notify-tray-close{cursor:pointer}.v-notification-v2__footer{--v-notification-v2-footer-padding:12px 8px 0 0;--v-notification-v2-footer-gap:8px;--v-notification-v2-footer-color__skip:var(--v-color-font-default);--v-notification-v2-footer-padding__skip:0 14px;align-items:center;display:flex;flex-direction:row;gap:var(--v-notification-v2-footer-gap);justify-content:flex-end;padding:var(--v-notification-v2-footer-padding)}.v-notification-v2__footer .v-notification-v2__footer-skip{color:var(--v-notification-v2-footer-color__skip);padding:var(--v-notification-v2-footer-padding__skip);text-decoration:underline}.v-tooltip-directive{--v-tooltip-opacity:0.8;--v-tooltip-line-height:20px;--v-tooltip-padding-tb:4px;--v-tooltip-padding-lr:14px;--v-tooltip-font-size:13px;--v-tooltip-border-radius:4px;--v-tooltip-bkg-color:#606264;--v-tooltip-color:var(--v-color-white);--v-tooltip-border-width:1px;--v-tooltip-border-color:#969696;--v-tooltip-width__triangle:12px;--v-tooltip-box-shadow:0 1px 4px 0 #0000004d;--v-tooltip-max-width:600px;--v-tooltip-font-weight:400;--v-tooltip-border-color--info:#969696;--v-tooltip-bkg-color--info:#606264;--v-tooltip-box-shadow--info:0 1px 4px 0 #0000004d;--v-tooltip-color--info:#fff;--v-tooltip-padding-tb--info:var(--v-tooltip-padding-tb);--v-tooltip-padding-lr--info:var(--v-tooltip-padding-lr);--v-tooltip-max-width--info:400px;--v-tooltip-bkg-color--error:#fa707c;--v-tooltip-border-color--error:#ff9191;--v-tooltip-max-width--error:400px;background-color:var(--v-tooltip-bkg-color);border:var(--v-tooltip-border-width) solid var(--v-tooltip-border-color);border-radius:var(--v-tooltip-border-radius);box-shadow:0 1px 4px 0 #0000004d;box-sizing:border-box;color:var(--v-tooltip-color);font-size:var(--v-tooltip-font-size);font-weight:var(--v-tooltip-font-weight);line-height:var(--v-tooltip-line-height);max-width:var(--v-tooltip-max-width);opacity:var(--v-tooltip-opacity);overflow-wrap:break-word;padding:calc(var(--v-tooltip-padding-tb) - var(--v-tooltip-border-width)) calc(var(--v-tooltip-padding-lr) - var(--v-tooltip-border-width));pointer-events:none;position:absolute;z-index:var(--v-z-index-tooltip-wrapper)}.v-tooltip-directive.interactive{pointer-events:auto}.v-tooltip-directive.error{max-width:var(--v-tooltip-max-width--error)}.v-tooltip-directive.error,.v-tooltip-directive.error .tooltip-arrow:after{background-color:var(--v-tooltip-bkg-color--error);border-color:var(--v-tooltip-border-color--error)}.v-tooltip-directive.info{color:var(--v-tooltip-color--info);max-width:var(--v-tooltip-max-width--info);padding:calc(var(--v-tooltip-padding-tb--info) - var(--v-tooltip-border-width)) calc(var(--v-tooltip-padding-lr--info) - var(--v-tooltip-border-width))}.v-tooltip-directive.info,.v-tooltip-directive.info .tooltip-arrow:after{background-color:var(--v-tooltip-bkg-color--info);border-color:var(--v-tooltip-border-color--info);box-shadow:var(--v-tooltip-box-shadow--info)}.v-tooltip-directive .tooltip-arrow{--v-tooltip-arrow-size__wrapper--main-axis:100%;--v-tooltip-arrow-size__wrapper:10px;--v-tooltip-arrow-size:7px;--v-tooltip-arrow-left-offset:12px;--v-tooltip-arrow-right-offset:12px;--v-tooltip-arrow-top-offset:6px;--v-tooltip-arrow-bottom-offset:6px;overflow:hidden;position:absolute}.v-tooltip-directive .tooltip-arrow:after{background-color:var(--v-tooltip-bkg-color);border-color:var(--v-tooltip-border-color);border-style:solid;border-width:var(--v-tooltip-border-width);box-shadow:var(--v-tooltip-box-shadow);content:"";display:block;height:var(--v-tooltip-arrow-size);position:absolute;width:var(--v-tooltip-arrow-size)}.v-tooltip-directive .tooltip-arrow[data-placement^=top]{bottom:100%;height:var(--v-tooltip-arrow-size__wrapper);left:0;width:var(--v-tooltip-arrow-size__wrapper--main-axis)}.v-tooltip-directive .tooltip-arrow[data-placement^=top][data-placement*=left]:after{left:var(--v-tooltip-arrow-left-offset);transform:rotate(45deg);transform-origin:left bottom}.v-tooltip-directive .tooltip-arrow[data-placement^=top][data-placement*=right]:after{right:var(--v-tooltip-arrow-left-offset);transform:rotate(315deg);transform-origin:right bottom}.v-tooltip-directive .tooltip-arrow[data-placement^=top]:after{top:var(--v-tooltip-border-width)}.v-tooltip-directive .tooltip-arrow[data-placement^=bottom]{height:var(--v-tooltip-arrow-size__wrapper);left:0;top:100%;width:var(--v-tooltip-arrow-size__wrapper--main-axis)}.v-tooltip-directive .tooltip-arrow[data-placement^=bottom][data-placement*=left]:after{left:var(--v-tooltip-arrow-left-offset);transform:rotate(315deg);transform-origin:left top}.v-tooltip-directive .tooltip-arrow[data-placement^=bottom][data-placement*=right]:after{right:var(--v-tooltip-arrow-right-offset);transform:rotate(45deg);transform-origin:right top}.v-tooltip-directive .tooltip-arrow[data-placement^=right]{height:var(--v-tooltip-arrow-size__wrapper--main-axis);left:100%;top:0;width:var(--v-tooltip-arrow-size__wrapper)}.v-tooltip-directive .tooltip-arrow[data-placement^=right][data-placement*=top]:after{top:var(--v-tooltip-arrow-top-offset);transform:rotate(45deg);transform-origin:left top}.v-tooltip-directive .tooltip-arrow[data-placement^=right][data-placement*=bottom]:after{bottom:var(--v-tooltip-arrow-bottom-offset);transform:rotate(315deg);transform-origin:left bottom}.v-tooltip-directive .tooltip-arrow[data-placement^=left]{height:var(--v-tooltip-arrow-size__wrapper--main-axis);right:100%;top:0;width:var(--v-tooltip-arrow-size__wrapper)}.v-tooltip-directive .tooltip-arrow[data-placement^=left][data-placement*=top]:after{top:var(--v-tooltip-arrow-top-offset);transform:rotate(315deg);transform-origin:right top}.v-tooltip-directive .tooltip-arrow[data-placement^=left][data-placement*=bottom]:after{bottom:var(--v-tooltip-arrow-bottom-offset);transform:rotate(45deg);transform-origin:right bottom}.v-tooltip-directive .tooltip-arrow[data-placement^=left]:after{left:var(--v-tooltip-border-width)}.vue-portal-target.tip-portal{position:relative;z-index:auto}:root{--v-font-family-base:arial,verdana,tahoma,helvetica,sans-serif;--v-font-family-zh-tw:var(--v-font-family-base);--v-font-family-zh-cn:var(--v-font-family-base);--v-font-family-ja:var(--v-font-family-base);--v-color-font-tier1:#2e3032;--v-color-font-tier2:#7e8082;--v-color-font-tier3:#babcbe;--v-color-font-error-tier1:#f2616d;--v-color-font-error-tier2:#f2616d66;--v-color-border-default:#d8dadc;--v-color-border-tier1:#d8dadc;--v-color-border-tier2:#e2e4e6;--v-color-border-tier3:#eceef0;--v-color-grey-disable:#adb1b566;--v-color-green:#47b212;--v-color-blue:#0099e6;--v-color-orange:#fa9025;--v-color-red:#f2616d;--v-color-teal:#00a6a6;--v-color-white:#fff;--v-color-white-tier1:#fff;--v-color-white-tier2:#fff9;--v-color-white-tier3:#fff6;--v-color-grey:#adb1b5;--v-item-bg-default:#f6f8fa;--v-item-bg-tier1:#f6f8fa;--v-item-bg-tier2:#eceef0;--v-item-bg-tier3:#99b1cc1a;--v-color-bg-grey:#99b1cc;--v-color-bg-grey-10:#99b1cc1a;--v-color-action-disabled:rgba(var(--d-theme-main-color),0.4);--v-color-action-normal:var(--d-theme-main-color);--v-color-action-hover:var(--d-theme-main-color-hover);--v-color-action-active:var(--d-theme-main-color-click);--v-color-border-draggable-default:#3d5366;--v-color-border-draggable-tier1:#3d536680;--v-font-size-tier1:13px;--v-font-size-tier2:14px;--v-font-size-tier3:15px;--v-font-size-tier4:16px;--v-font-size-small-tier1:12px;--v-font-style-normal:normal;--v-font-style-italic:italic;--v-font-weight-normal:400;--v-font-weight-bold:700;--v-font-weight-medium:500;--v-font-weight-semi-bold:600;--v-line-height-50:18px;--v-line-height-100:20px;--v-line-height-200:24px;--v-line-height-300:28px;--v-border-radius-10:1px;--v-border-radius-50:2px;--v-border-radius-100:3px;--v-border-radius-200:4px;--v-border-radius-300:5px;--v-border-radius-circle:50%;--v-color-main:var(--d-theme-main-color);--v-color-primary:var(--d-theme-main-color);--v-color-secondary:#47b212;--v-color-error:#f2616d;--v-color-font-default:#2e3032;--v-z-index-tooltip-wrapper:30000;--v-z-index-data-table-col-moveable-indicator:20000;--v-z-index-data-table-cover:2;--v-z-index-spin-wrapper:20002;--v-z-index-spin-mask:20001;--v-z-index-slider-thumb:1;--v-z-index-menu-wrapper:1050;--v-z-index-toast-wrapper:2000;--v-z-index-window-drag-ghost:12000;--v-z-index-window-resize-ghost:50000;--v-z-index-window-resize-corner:101;--v-z-index-window-resize-edge:100;--v-z-index-window-mask:20000;--v-z-index-window-wizard-headline-transform:2;--v-z-index-message-box-window-icon:20005;--v-z-index-popup-arrow:-1;--v-z-index-popup-box:0;--v-z-index-page-list-app-window-module-list:10001;--v-z-index-page-list-app-window-module-list-mask:10000;--v-z-index-scrollbar-rail:10;--v-z-index-affix-inner:1;--v-z-index-info-board-indicator:20000;--v-z-index-notification-wrapper:12003}@media (-ms-high-contrast:none),screen and (-ms-high-contrast:active){.v-ps.ps{overflow:auto!important}}',""]);let s=a},21712:function(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>s});var n=i(31627),o=i.n(n),r=i(96384),a=i.n(r)()(o());a.push([e.id,'.v-checkbox-wrapper .v-icon.checkbox{background-image:var(--d-assets-checkbox-button-1x,none);background-position:0 0;background-size:var(--d-assets-checkbox-button__size,auto);height:24px;top:3px;width:24px}.has-error .v-checkbox-wrapper .v-icon.checkbox{background-position:0 0}.has-error .v-checkbox-wrapper.checked .v-icon.checkbox,.v-checkbox-wrapper.checked .v-icon.checkbox{background-position:0 -72px}.has-error .v-checkbox-wrapper.indeterminate .v-icon.checkbox,.v-checkbox-wrapper.indeterminate .v-icon.checkbox{background-position:0 -144px}.has-error .v-checkbox-wrapper.focused .v-icon.checkbox,.has-error .v-checkbox-wrapper:hover .v-icon.checkbox,.v-checkbox-wrapper.focused .v-icon.checkbox,.v-checkbox-wrapper:hover .v-icon.checkbox{background-position:0 -24px}.has-error .v-checkbox-wrapper.focused.checked .v-icon.checkbox,.has-error .v-checkbox-wrapper:hover.checked .v-icon.checkbox,.v-checkbox-wrapper.focused.checked .v-icon.checkbox,.v-checkbox-wrapper:hover.checked .v-icon.checkbox{background-position:0 -96px}.has-error .v-checkbox-wrapper.focused.indeterminate .v-icon.checkbox,.has-error .v-checkbox-wrapper:hover.indeterminate .v-icon.checkbox,.v-checkbox-wrapper.focused.indeterminate .v-icon.checkbox,.v-checkbox-wrapper:hover.indeterminate .v-icon.checkbox{background-position:0 -168px}.has-error .v-checkbox-wrapper.disabled .v-icon.checkbox,.v-checkbox-wrapper.disabled .v-icon.checkbox{background-position:0 -48px}.has-error .v-checkbox-wrapper.disabled.checked .v-icon.checkbox,.v-checkbox-wrapper.disabled.checked .v-icon.checkbox{background-position:0 -120px}.has-error .v-checkbox-wrapper.disabled.indeterminate .v-icon.checkbox,.v-checkbox-wrapper.disabled.indeterminate .v-icon.checkbox{background-position:0 -192px}.v-copy-cut-field-wrapper input{height:28px!important;padding:5px 0!important}.v-copy-cut-field-wrapper button{width:40px}.v-fieldset .v-fieldset-title-wrapper .fieldset-chevron-down,.v-fieldset .v-fieldset-title-wrapper .fieldset-chevron-up{height:24px;margin:0;width:24px}.v-fieldset .v-fieldset-title-wrapper .fieldset-chevron-down{background-image:var(--d-assets-fieldset-arrow-down-1x,none);background-size:var(--d-assets-fieldset-arrow-down__size,auto)}.v-fieldset .v-fieldset-title-wrapper .fieldset-chevron-up{background-image:var(--d-assets-fieldset-arrow-up-1x,none);background-size:var(--d-assets-fieldset-arrow-up__size,auto)}.v-fieldset.collapsible .v-fieldset-title-wrapper:active .v-fieldset-collapse-icon,.v-fieldset.collapsible .v-fieldset-title-wrapper:focus .v-fieldset-collapse-icon,.v-fieldset.collapsible .v-fieldset-title-wrapper:hover .v-fieldset-collapse-icon{background-position:0 -24px}.v-fieldset.collapsible.collapsed .v-fieldset-title-wrapper{--v-fieldset-font-weight__title-wrapper:var(--v-font-weight-normal)}.v-input-steppers-wrapper.up-down .input-steppers-down,.v-input-steppers-wrapper.up-down .input-steppers-up{background-image:var(--d-assets-input-steppers-updown-1x,none);background-size:var(--d-assets-input-steppers-updown__size,auto);height:14px;width:18px}.v-input-steppers-wrapper.up-down .input-steppers-up{background-position-x:0;background-position-y:0!important;border-top-right-radius:3px}.v-input-steppers-wrapper.up-down .input-steppers-up:not(.disabled):hover{background-position-x:-18px}.v-input-steppers-wrapper.up-down .input-steppers-up:not(.disabled):active{background-position-x:-36px}.v-input-steppers-wrapper.up-down .input-steppers-up.disabled{background-position-x:-126px}.v-input-steppers-wrapper.up-down .input-steppers-down{background-position-x:0;background-position-y:14px!important;border-bottom-right-radius:3px}.v-input-steppers-wrapper.up-down .input-steppers-down:not(.disabled):hover{background-position-x:-72px}.v-input-steppers-wrapper.up-down .input-steppers-down:not(.disabled):active{background-position-x:-90px}.v-input-steppers-wrapper.up-down .input-steppers-down.disabled{background-position-x:-126px}.v-input-steppers-wrapper.right-left .input-steppers-minus,.v-input-steppers-wrapper.right-left .input-steppers-plus{background-position-x:0;background-position-y:0!important;height:24px;width:24px}.v-input-steppers-wrapper.right-left .input-steppers-plus{background-image:var(--d-assets-input-steppers-increase-1x,none);background-size:var(--d-assets-input-steppers-increase__size,auto);border-bottom-right-radius:3px;border-top-right-radius:3px}.v-input-steppers-wrapper.right-left .input-steppers-plus:not(.disabled):hover{background-position-y:-24px!important}.v-input-steppers-wrapper.right-left .input-steppers-plus:not(.disabled):active{background-position-y:-48px!important}.v-input-steppers-wrapper.right-left .input-steppers-plus.disabled{background-position-y:-72px!important}.v-input-steppers-wrapper.right-left .input-steppers-minus{background-image:var(--d-assets-input-steppers-decrease-1x,none);background-size:var(--d-assets-input-steppers-decrease__size,auto);border-bottom-left-radius:3px;border-top-left-radius:3px}.v-input-steppers-wrapper.right-left .input-steppers-minus:not(.disabled):hover{background-position-y:-24px!important}.v-input-steppers-wrapper.right-left .input-steppers-minus:not(.disabled):active{background-position-y:-48px!important}.v-input-steppers-wrapper.right-left .input-steppers-minus.disabled{background-position-y:-72px!important}.v-menu-submenu-item.disabled .v-icon.menu-submenu-triangle-right,.v-menu-submenu-item.disabled:focus .v-icon.menu-submenu-triangle-right,.v-menu-submenu-item.disabled:hover .v-icon.menu-submenu-triangle-right{--v-menu-item-opacity__icon--disabled:0.4}.v-menu .icon--left.menu-item-tick{background-image:var(--d-assets-menu-selected-1x,none);background-size:var(--d-assets-menu-selected__size,auto)}.v-menu .v-menu-item .title,.v-menu .v-menu-submenu-item .title{padding-left:0}.v-menu .v-menu-item .title:last-child,.v-menu .v-menu-submenu-item .title:last-child{padding-right:34px}.v-radio-wrapper .v-icon.radio{background-image:var(--d-assets-radio-button-1x,none);background-size:var(--d-assets-radio-button__size,auto);height:24px;top:3px;width:24px}.has-error .v-radio-wrapper.checked .v-icon.radio,.v-radio-wrapper.checked .v-icon.radio{background-position:0 -72px}.has-error .v-radio-wrapper.focused:not(.disabled) .v-icon.radio,.has-error .v-radio-wrapper:hover:not(.disabled) .v-icon.radio,.v-radio-wrapper.focused:not(.disabled) .v-icon.radio,.v-radio-wrapper:hover:not(.disabled) .v-icon.radio{background-position:0 -24px}.has-error .v-radio-wrapper.focused:not(.disabled).checked .v-icon.radio,.has-error .v-radio-wrapper:hover:not(.disabled).checked .v-icon.radio,.v-radio-wrapper.focused:not(.disabled).checked .v-icon.radio,.v-radio-wrapper:hover:not(.disabled).checked .v-icon.radio{background-position:0 -96px}.has-error .v-radio-wrapper.disabled .v-icon.radio,.v-radio-wrapper.disabled .v-icon.radio{background-position:0 -48px}.has-error .v-radio-wrapper.disabled.checked .v-icon.radio,.v-radio-wrapper.disabled.checked .v-icon.radio{background-position:0 -120px}.v-scrollbar .x-rail .x-bar{top:1px}.v-scrollbar .y-rail .y-bar{left:1px}.v-select2-wrapper .select-dropdown{background-image:var(--d-assets-dropdown-trigger-1x,none);background-size:var(--d-assets-dropdown-trigger__size,auto)}.v-select2-wrapper:hover .select-dropdown{background-position:calc(var(--v-select-size__dropdown-icon)*-1) 0}.v-select2-wrapper.focused .select-dropdown,.v-select2-wrapper.pressed .select-dropdown{background-position:calc(var(--v-select-size__dropdown-icon)*-2) 0}.v-select2-wrapper.disabled .select-dropdown{background-position:calc(var(--v-select-size__dropdown-icon)*-3) 0}.v-select2-dropdown-menu-item .v-icon{margin:3px 4px 3px 0}.v-multiselect-ct .v-multiselect-item-wrapper{border:1px solid #d8dadc;height:22px;margin-top:3px}.v-multiselect-ct .v-multiselect-item-wrapper:active,.v-multiselect-ct .v-multiselect-item-wrapper:hover{border-color:#c4c6c8}.v-multiselect-ct .v-multiselect-item-wrapper.v-multiselect-item-invalid{border-color:#fa899c}.v-multiselect-ct .v-multiselect-item-wrapper.v-multiselect-item-invalid:active,.v-multiselect-ct .v-multiselect-item-wrapper.v-multiselect-item-invalid:hover{border-color:#ff7a85}.v-toast{z-index:200000}.v-tooltip-directive>span{white-space:pre-wrap}.v-window-draggable:not(.v-about-window,.v-about-window-v2,.v-wizard-window):before,.v-window:not(.v-about-window,.v-about-window-v2,.v-wizard-window):before{border-bottom:2px solid var(--d-theme-main-color);content:"";left:var(--v-window-padding-left__header);pointer-events:none;position:absolute;top:calc(var(--v-window-padding-top__header) + var(--v-window-size__icon) + var(--v-window-padding-bottom__header) - 2px);width:calc(100% - var(--v-window-padding-left__header) - var(--v-window-padding-right__header));z-index:1}.v-window-draggable:not(.v-about-window,.v-about-window-v2,.v-wizard-window):after,.v-window:not(.v-about-window,.v-about-window-v2,.v-wizard-window):after{border-radius:var(--v-window-border-radius);content:"";height:100%;left:0;outline:1px solid var(--v-color-border-tier1);outline-offset:-1px;pointer-events:none;position:absolute;top:0;width:100%}.v-window-draggable:not(.v-about-window,.v-about-window-v2,.v-wizard-window) .window-header-tool-wrapper .tool.window-tool-close,.v-window:not(.v-about-window,.v-about-window-v2,.v-wizard-window) .window-header-tool-wrapper .tool.window-tool-close{background-image:var(--d-assets-window-close-1x,none);background-size:var(--d-assets-window-close__size,auto)}.v-window-container-mask:not(.v-about-window-v2-mask){opacity:0}.v-window.v-message-box-window:before{border-bottom:0}.v-window.v-about-window,.v-window.v-about-window-v2,.v-window.v-wizard-window{--v-color-blue:#057feb;--v-color-white:#fff;--v-color-font-tier1:#414b55;--v-color-font-tier2:#414b5599;--v-color-font-tier3:#414b5566;--v-color-border-default:#c6d4e0;--v-color-border-tier1:#c6d4e0e6;--v-color-border-tier2:#c6d4e0b3;--v-color-border-tier3:#c6d4e066;--v-color-action-normal:#30a1f2;--v-color-action-hover:#0b8be5;--v-color-action-active:#007ed9;--v-font-size-tier1:13px;--v-font-size-tier2:14px;--v-font-size-tier3:15px;--v-font-size-tier4:16px;--v-font-size-small-tier1:12px;--v-window-bkg-color__header:var(--v-color-white);--v-window-padding-top__header:8px;--v-window-padding-right__header:0;--v-window-padding-bottom__header:8px;--v-window-padding-left__header:18px;--v-window-margin__header:0;--v-window-margin__hamburger-icon:0 12px 0 0;--v-window-height__header--mobile:auto;--v-window-opacity__header--deactive:0.4;--v-window-border-bottom__header:1px solid #c6d4e080;--v-window-padding-left__header-text--model:2px;--v-window-line-height__header-text:var(--v-line-height-100);--v-window-font-size__header-text:var(--v-font-size-small-tier1);--v-window-font-weight__header-text:var(--v-font-weight-bold);--v-window-padding-left__header-text:10px;--v-window-color__header-text:#414b55d9;--v-window-size__icon:24px;--v-window-opacity--dragging:0.65;--v-window-box-shadow:0 4px 16px 0 #0009;--v-window-border-radius:var(--v-border-radius-100);--v-window-border-radius--mobile:0;--v-window-bkg-color:var(--v-color-white);--v-window-bkg-color--dragging:#f2f2f2;--v-window-opacity__wrapper:0.4;--v-window-bkg-color__body:var(--v-color-white);--v-window-custom:false}.v-window.v-about-window .window-header-tool-wrapper,.v-window.v-about-window-v2 .window-header-tool-wrapper,.v-window.v-wizard-window .window-header-tool-wrapper{--v-window-header-tool-wrapper-opacity--disabled:0.4;--v-window-header-tool-wrapper-margin:0 16px 0 8px;--v-window-header-tool-wrapper-size__tool:24px;--v-window-header-tool-wrapper-gap:8px}.v-window.v-about-window-v2{--v-color-main:var(--v-color-blue);--v-font-weight-normal:400;--v-font-weight-bold:700;--v-font-weight-medium:500;--v-font-weight-semi-bold:600}body .v-btn,body .v-form-item-label,body .v-select2-dropdown,body .v-select2-input,body .v-textfield-input,body .v-textfield-textarea{font-size:13px}@media (min-resolution:144dpi){.v-checkbox-wrapper .v-icon.checkbox{background-image:var(--d-assets-checkbox-button-2x,none)}.v-fieldset .v-fieldset-title-wrapper .fieldset-chevron-down{background-image:var(--d-assets-fieldset-arrow-down-2x,none)}.v-fieldset .v-fieldset-title-wrapper .fieldset-chevron-up{background-image:var(--d-assets-fieldset-arrow-up-2x,none)}.v-input-steppers-wrapper.up-down .input-steppers-down,.v-input-steppers-wrapper.up-down .input-steppers-up{background-image:var(--d-assets-input-steppers-updown-2x,none)}.v-input-steppers-wrapper.right-left .input-steppers-plus{background-image:var(--d-assets-input-steppers-increase-2x,none)}.v-input-steppers-wrapper.right-left .input-steppers-minus{background-image:var(--d-assets-input-steppers-decrease-2x,none)}.v-menu .icon--left.menu-item-tick{background-image:var(--d-assets-menu-selected-2x,none)}.v-radio-wrapper .v-icon.radio{background-image:var(--d-assets-radio-button-2x,none)}.v-select2-wrapper .select-dropdown{background-image:var(--d-assets-dropdown-trigger-2x,none)}.v-window-draggable:not(.v-about-window,.v-about-window-v2,.v-wizard-window) .window-header-tool-wrapper .tool.window-tool-close,.v-window:not(.v-about-window,.v-about-window-v2,.v-wizard-window) .window-header-tool-wrapper .tool.window-tool-close{background-image:var(--d-assets-window-close-2x,none)}}',""]);let s=a},31675:function(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>s});var n=i(31627),o=i.n(n),r=i(96384),a=i.n(r)()(o());a.push([e.id,".v-slider .v-slider-line-wrapper .v-slider-line{pointer-events:auto}.v-menu .v-menu-item .icon--left,.v-menu .v-menu-submenu .icon--left{background-repeat:no-repeat;background-size:var(--v-menu-item-size__icon);height:var(--v-menu-item-size__icon);left:0;margin:var(--v-menu-item-margin__icon);position:static;top:0;width:var(--v-menu-item-size__icon)}.v-menu .v-menu-item .icon--left.v-icon--select,.v-menu .v-menu-submenu .icon--left.v-icon--select{margin:var(--v-menu-item-margin__select)}.v-menu .v-menu-item .icon--left+.title,.v-menu .v-menu-submenu .icon--left+.title{padding-left:0}.v-select2-wrapper .select-dropdown{display:inline-block;position:static;right:0;top:0}",""]);let s=a},97920:function(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>s});var n=i(31627),o=i.n(n),r=i(96384),a=i.n(r)()(o());a.push([e.id,":root{--d-assets-window-close-1x:url(webman/3rdparty/Spreadsheet/images/_Component/1x/_Common/rt_button.png?befa229d);--d-assets-window-close-2x:url(webman/3rdparty/Spreadsheet/images/_Component/2x/_Common/rt_button.png?a0ff42a6);--d-assets-window-close__size:24px 96px;--d-assets-checkbox-button-1x:url(webman/3rdparty/Spreadsheet/images/_Component/1x/_SpreadSheet/checkbox.png?d931810a);--d-assets-checkbox-button-2x:url(webman/3rdparty/Spreadsheet/images/_Component/2x/_SpreadSheet/checkbox.png?229b2b4c);--d-assets-checkbox-button__size:24px 216px;--d-assets-dropdown-trigger-1x:url(webman/3rdparty/Spreadsheet/images/_Component/1x/_SpreadSheet/trigger.png?43f6ec57);--d-assets-dropdown-trigger-2x:url(webman/3rdparty/Spreadsheet/images/_Component/2x/_SpreadSheet/trigger.png?9ee3b573);--d-assets-dropdown-trigger__size:96px 24px;--d-assets-input-steppers-updown-1x:url(webman/3rdparty/Spreadsheet/images/_Component/1x/_SpreadSheet/trigger_increase_decrease.png?1a242f1a);--d-assets-input-steppers-updown-2x:url(webman/3rdparty/Spreadsheet/images/_Component/2x/_SpreadSheet/trigger_increase_decrease.png?57c93003);--d-assets-input-steppers-updown__size:144px 28px;--d-assets-menu-selected-1x:url(webman/3rdparty/Spreadsheet/images/_Component/1x/_SpreadSheet/dropdown_menu_tick.png?8e100f59);--d-assets-menu-selected-2x:url(webman/3rdparty/Spreadsheet/images/_Component/2x/_SpreadSheet/dropdown_menu_tick.png?7efe5255);--d-assets-menu-selected__size:24px 24px;--d-assets-radio-button-1x:url(webman/3rdparty/Spreadsheet/images/_Component/1x/_SpreadSheet/radio_button.png?446b960c);--d-assets-radio-button-2x:url(webman/3rdparty/Spreadsheet/images/_Component/2x/_SpreadSheet/radio_button.png?6d5fbb29);--d-assets-radio-button__size:24px 144px;--d-assets-dropdown-menu-tick-1x:url(webman/3rdparty/Spreadsheet/images/_Component/1x/_SpreadSheet/dropdown_menu_tick.png?8e100f59);--d-assets-dropdown-menu-tick-2x:url(webman/3rdparty/Spreadsheet/images/_Component/2x/_SpreadSheet/dropdown_menu_tick.png?7efe5255);--d-assets-dropdown-menu-tick__size:24px 24px;--d-assets-input-steppers-decrease-1x:url(webman/3rdparty/Spreadsheet/images/_Asset/1x/_Common/editor_font_size_decrease.png?8e0fc5c0);--d-assets-input-steppers-decrease-2x:url(webman/3rdparty/Spreadsheet/images/_Asset/2x/_Common/editor_font_size_decrease.png?2558acfe);--d-assets-input-steppers-decrease__size:24px 96px;--d-assets-input-steppers-increase-1x:url(webman/3rdparty/Spreadsheet/images/_Asset/1x/_Common/editor_font_size_increase.png?4371a50b);--d-assets-input-steppers-increase-2x:url(webman/3rdparty/Spreadsheet/images/_Asset/2x/_Common/editor_font_size_increase.png?603b319a);--d-assets-input-steppers-increase__size:24px 96px;--d-assets-fieldset-arrow-down-1x:url(webman/3rdparty/Spreadsheet/images/_Asset/1x/_SpreadSheet/icon_fieldset_arrow_down.png?7b863235);--d-assets-fieldset-arrow-down-2x:url(webman/3rdparty/Spreadsheet/images/_Asset/2x/_SpreadSheet/icon_fieldset_arrow_down.png?17dd120d);--d-assets-fieldset-arrow-down__size:24px 96px;--d-assets-fieldset-arrow-up-1x:url(webman/3rdparty/Spreadsheet/images/_Asset/1x/_SpreadSheet/icon_fieldset_arrow_up.png?ae9dfdf1);--d-assets-fieldset-arrow-up-2x:url(webman/3rdparty/Spreadsheet/images/_Asset/2x/_SpreadSheet/icon_fieldset_arrow_up.png?a46b7962);--d-assets-fieldset-arrow-up__size:24px 96px;--d-assets-hotkey-arrow-down-1x:url(webman/3rdparty/Spreadsheet/images/_Asset/1x/_SpreadSheet/icon_hotkey_arrow_down.png?3bdead5e);--d-assets-hotkey-arrow-down-2x:url(webman/3rdparty/Spreadsheet/images/_Asset/2x/_SpreadSheet/icon_hotkey_arrow_down.png?3d506d4f);--d-assets-hotkey-arrow-down__size:24px 96px;--d-assets-hotkey-arrow-up-1x:url(webman/3rdparty/Spreadsheet/images/_Asset/1x/_SpreadSheet/icon_hotkey_arrow_up.png?6313ab7b);--d-assets-hotkey-arrow-up-2x:url(webman/3rdparty/Spreadsheet/images/_Asset/2x/_SpreadSheet/icon_hotkey_arrow_up.png?73877410);--d-assets-hotkey-arrow-up__size:24px 96px;--d-assets-editor-bold-1x:url(webman/3rdparty/Spreadsheet/images/_Asset/1x/_SpreadSheet/editor_bold.png?7abc17cd);--d-assets-editor-bold-2x:url(webman/3rdparty/Spreadsheet/images/_Asset/2x/_SpreadSheet/editor_bold.png?55cf5361);--d-assets-editor-bold__size:24px 96px;--d-assets-editor-italic-1x:url(webman/3rdparty/Spreadsheet/images/_Asset/1x/_SpreadSheet/editor_italic.png?f2286f3b);--d-assets-editor-italic-2x:url(webman/3rdparty/Spreadsheet/images/_Asset/2x/_SpreadSheet/editor_italic.png?c0ad6b62);--d-assets-editor-italic__size:24px 96px;--d-assets-editor-text-color-1x:url(webman/3rdparty/Spreadsheet/images/_Asset/1x/_SpreadSheet/editor_text_color.png?a43d1179);--d-assets-editor-text-color-2x:url(webman/3rdparty/Spreadsheet/images/_Asset/2x/_SpreadSheet/editor_text_color.png?6445976e);--d-assets-editor-text-color__size:24px 96px;--d-assets-editor-dropdown-1x:url(webman/3rdparty/Spreadsheet/images/_Asset/1x/_SpreadSheet/editor_dropdown.png?b72e466a);--d-assets-editor-dropdown-2x:url(webman/3rdparty/Spreadsheet/images/_Asset/2x/_SpreadSheet/editor_dropdown.png?93f668e8);--d-assets-editor-dropdown__size:14px 96px;--d-assets-collaborator-more-1x:url(webman/3rdparty/Spreadsheet/images/_Asset/1x/_SpreadSheet/icon_collaborator_more.png?c8d380c1);--d-assets-collaborator-more-2x:url(webman/3rdparty/Spreadsheet/images/_Asset/2x/_SpreadSheet/icon_collaborator_more.png?412e23ea);--d-assets-collaborator-more__size:24px 96px;--d-assets-editor-add-comment-1x:url(webman/3rdparty/Spreadsheet/images/_Asset/1x/_SpreadSheet/editor_add_comment.png?d98c93f9);--d-assets-editor-add-comment-2x:url(webman/3rdparty/Spreadsheet/images/_Asset/2x/_SpreadSheet/editor_add_comment.png?ac83d3aa);--d-assets-editor-add-comment__size:24px 96px;--d-assets-editor-link-1x:url(webman/3rdparty/Spreadsheet/images/_Asset/1x/_SpreadSheet/editor_link.png?80fbf04d);--d-assets-editor-link-2x:url(webman/3rdparty/Spreadsheet/images/_Asset/2x/_SpreadSheet/editor_link.png?2d579b49);--d-assets-editor-link__size:24px 96px;--d-assets-editor-cut-1x:url(webman/3rdparty/Spreadsheet/images/_Asset/1x/_SpreadSheet/editor_cut.png?4ebafbe7);--d-assets-editor-cut-2x:url(webman/3rdparty/Spreadsheet/images/_Asset/2x/_SpreadSheet/editor_cut.png?c12acd9a);--d-assets-editor-cut__size:24px 96px;--d-assets-editor-copy-1x:url(webman/3rdparty/Spreadsheet/images/_Asset/1x/_SpreadSheet/editor_copy.png?3ee77f7f);--d-assets-editor-copy-2x:url(webman/3rdparty/Spreadsheet/images/_Asset/2x/_SpreadSheet/editor_copy.png?26306f70);--d-assets-editor-copy__size:24px 96px;--d-assets-editor-paste-1x:url(webman/3rdparty/Spreadsheet/images/_Asset/1x/_SpreadSheet/editor_paste.png?42924603);--d-assets-editor-paste-2x:url(webman/3rdparty/Spreadsheet/images/_Asset/2x/_SpreadSheet/editor_paste.png?2d0811d9);--d-assets-editor-paste__size:24px 96px;--d-assets-editor-clear-format-1x:url(webman/3rdparty/Spreadsheet/images/_Asset/1x/_SpreadSheet/editor_clear_format.png?fda44bb8);--d-assets-editor-clear-format-2x:url(webman/3rdparty/Spreadsheet/images/_Asset/2x/_SpreadSheet/editor_clear_format.png?1bad2d72);--d-assets-editor-clear-format__size:24px 96px;--d-theme-main-color:#2db27b;--d-theme-main-color-hover:#39bf87;--d-theme-main-color-click:#21a66f;--d-theme-main-color-disable:#abe1ca;--d-theme-color-grid-hover:#f6f8fa;--d-theme-color-grid-select:#eaf7f2;--d-theme-default-btn-border-color:#179963;--d-theme-hover-btn-border-color:#21a66f;--d-theme-active-btn-border-color:#0e8c58;--d-theme-disabled-btn-border-color:#179963;--d-theme-default-btn-font-color:#fff;--d-theme-hover-btn-font-color:#fff;--d-theme-active-btn-font-color:#fff;--d-theme-disabled-btn-font-color:#96d9bd;--d-theme-default-btn-background-linear:linear-gradient(#2db27b,#2db27b);--d-theme-default-btn-fallback-color:#2db27b;--d-theme-hover-btn-background-linear:linear-gradient(#39bf87,#39bf87);--d-theme-hover-btn-fallback-color:#39bf87;--d-theme-active-btn-background-linear:linear-gradient(#21a66f,#21a66f);--d-theme-active-btn-fallback-color:#21a66f;--d-theme-disabled-btn-background-linear:linear-gradient(#2db27b,#2db27b);--d-theme-disabled-btn-fallback-color:#2db27b;--d-theme-name:sheet;--d-theme-main-color-decimal:45,178,123}",""]);let s=a},20240:function(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>s});var n=i(31627),o=i.n(n),r=i(96384),a=i.n(r)()(o());a.push([e.id,".table-wrapper{-webkit-tap-highlight-color:rgba(0,0,0,0);overflow:hidden;position:relative;--scroller-background:#fff;--scroller-track-color:#fafcfe;--scroller-border:1px solid #e2e4e6;--scroller-separator-border:1px solid #0000001a;--scroller-physical-size:15px}.table-wrapper.mobile{--scroller-background:#0000;--scroller-track-color:#0000;--scroller-border:none;--scroller-separator-border:none;--scroller-physical-size:0}.scroller-thumb{background-color:#56585a33;border-radius:4px;position:absolute}.scroller-thumb:hover{background-color:#56585a40}.scroller-thumb:active{background-color:#56585a4d}.scroller-thumb.fade{opacity:0;transition:opacity .5s ease-in}.scroller-corner{background:var(--scroller-track-color);height:14px;position:absolute;width:14px}.scroller-corner:not(.rtl){right:0}.scroller-corner.rtl{left:0}.scroller-track-x{height:100%}.scroller-track-x:not(.rtl){border-left:var(--scroller-separator-border)}.scroller-track-x.rtl{border-right:var(--scroller-separator-border)}.scroller-track-y{border-top:var(--scroller-separator-border);width:100%}.scroller-track{background:var(--scroller-track-color);position:absolute}.scroller-thumb-x{height:8px;margin:3px 0}.scroller-thumb-y{margin:0 3px;width:8px}.scroller{background:var(--scroller-background);position:absolute}.scroller.invisible .scroller-corner{display:none}.scroller-x{border-top:var(--scroller-border);bottom:0;height:14px;width:100%;z-index:301}.scroller-y{height:100%;width:14px;z-index:301}.scroller-y:not(.rtl){border-left:var(--scroller-border);right:0}.scroller-y.rtl{border-right:var(--scroller-border);left:0}.manualColumnResizer,.manualRowResizer{position:absolute;z-index:114}.manualColumnResizer.active,.manualRowResizer.active{background:#0000;border-right:1px solid #2daf7d}.manualColumnResizer{cursor:col-resize;height:25px;width:3px}.manualRowResizer{cursor:row-resize;height:3px;width:50px}.manualColumnResizerGuide,.manualRowResizerGuide{background:#0000;display:none;position:absolute;z-index:114}.manualColumnResizerGuide.active,.manualRowResizerGuide.active{display:block}.manualColumnResizerGuide{border-right:1px solid #2daf7d;height:100%;margin-left:3px}.manualRowResizerGuide{border-bottom:1px solid #2daf7d;margin-top:3px;width:100%}.manualColumnResizer:active,.manualColumnResizer:hover,.manualRowResizer:active,.manualRowResizer:hover{background-color:#009959}.manual-move-col-grab,.manual-move-row-grab{background:#0000;cursor:grab;display:none;position:absolute;z-index:112}.manual-move-col-grab.manual-move-active,.manual-move-row-grab.manual-move-active{display:block}.manual-move-row-grab{width:50px}.manual-move-col-grab{height:25px}.manual-move-col-block,.manual-move-row-block{background:#2db37b26;border:2px solid #0099594d;box-sizing:border-box;cursor:grabbing;display:none;position:absolute;z-index:112}.manual-move-col-block.manual-move-active,.manual-move-row-block.manual-move-active{display:block}.manual-move-row-block{width:100%}.manual-move-col-block{height:100%}.manual-move-col-guide,.manual-move-row-guide{background:#56585a;display:none;position:absolute;z-index:113}.manual-move-col-guide.manual-move-active,.manual-move-row-guide.manual-move-active{display:block}.manual-move-row-guide{height:2px;width:100%}.manual-move-col-guide{height:100%;width:2px}.syno-o-sh-horizontal-freeze-bar,.syno-o-sh-vertical-freeze-bar{background-color:#0000001a;position:absolute;z-index:110}.syno-o-sh-horizontal-freeze-bar{height:3px;left:0;width:100%}.syno-o-sh-vertical-freeze-bar{height:100%;top:0;width:3px}.syno-o-sh-view-canvas{position:absolute;z-index:105}.syno-o-sh-view-canvas.rtl{right:0}.syno-o-sh-view-corner-container{overflow:hidden;position:absolute;z-index:108}.syno-o-sh-view-corner-container.top{top:0}.syno-o-sh-view-corner-container.bottom{bottom:var(--scroller-physical-size)}.syno-o-sh-view-corner-container.left:not(.rtl){left:0}.syno-o-sh-view-corner-container.right.rtl{left:var(--scroller-physical-size)}.syno-o-sh-view-corner-container.right:not(.rtl){right:var(--scroller-physical-size)}.syno-o-sh-view-corner-container.left.rtl{right:0}.syno-o-sh-view-corner-container .syno-o-sh-view-corner-scrollable{height:0;position:absolute;width:0}.syno-o-sh-view-selection{position:absolute;z-index:202}.syno-o-sh-view-selection>div{border:0;display:block;position:absolute}.syno-o-sh-view-selection .top-border{height:0;left:0;top:0}.syno-o-sh-view-selection .right-border{right:0;top:0;width:0}.syno-o-sh-view-selection .bottom-border{bottom:0;height:0;left:0}.syno-o-sh-view-selection .left-border{left:0;top:0;width:0}.syno-o-sh-view-selection .syno-o-sh-view-selection-corner{background-color:#26986e;border:solid #fff;border-width:var(--selection-corner-border-width);cursor:crosshair;height:var(--selection-corner-size);pointer-events:auto;width:var(--selection-corner-size)}.syno-o-sh-view-selection .syno-o-sh-view-selection-corner.top-left{left:var(--selection-corner-offset);top:var(--selection-corner-offset)}.syno-o-sh-view-selection .syno-o-sh-view-selection-corner.top-left.rtl{left:auto;right:var(--selection-corner-offset)}.syno-o-sh-view-selection .syno-o-sh-view-selection-corner.bottom-right{bottom:var(--selection-corner-offset);right:var(--selection-corner-offset)}.syno-o-sh-view-selection .syno-o-sh-view-selection-corner.bottom-right.rtl{left:var(--selection-corner-offset);right:auto}.syno-o-sh-view-selection.filter-selection{z-index:202}.syno-o-sh-view-selection.copy-selection{z-index:203}.syno-o-sh-view-selection.fill-selection{z-index:204}.syno-o-sh-view-selection.online-peer{z-index:205}.syno-o-sh-view-selection.formula-selection{z-index:206}.syno-o-sh-view-selection.multi-area{--selection-corner-border-width:2px;--selection-corner-size:5px;--selection-corner-offset:-4px;z-index:208}.syno-o-sh-view-selection.multi-area .selection-border-movable{cursor:grab;pointer-events:auto}.syno-o-sh-view-selection.copy-selection-dragging{cursor:grabbing;z-index:209}.syno-o-sh-view-selection.mobile-selection{--selection-corner-border-width:2px;--selection-corner-size:14px;--selection-corner-offset:calc(var(--selection-corner-size)/-2 - var(--selection-corner-border-width) + 1px)}.syno-o-sh-view-selection.mobile-selection .syno-o-sh-view-selection-corner{border-radius:50%}.syno-o-sh-cell-viewer{display:none;overflow:auto;position:absolute;z-index:207}.syno-o-sh-cell-viewer>canvas{display:block}.syno-o-sh-cell-highlight{position:absolute}.syno-o-sh-cell-highlight.content-highlight{z-index:107}.syno-o-sh-cell-highlight.cover-highlight{z-index:300}.syno-o-sh-search-result{background-color:#daf7cc;opacity:.5}.syno-o-sh-diff{background-color:#00a6a61a}.syno-o-sh-editor-holder{position:absolute;z-index:303}.syno-o-sh-view-footer{margin-left:40px;position:absolute;z-index:108}.syno-o-sh-drawing-overlay{position:absolute;z-index:208}.syno-o-sh-drawing-overlay .syno-o-sh-drawing-wrapper,.syno-o-sh-drawing-overlay .syno-sh-image-container{height:100%;width:100%}.syno-o-sh-drawing-overlay.syno-o-sh-chart-overlay{background:#0000;border:1px solid #929496}.syno-o-sh-drawing-overlay.syno-o-sh-chart-overlay .syno-o-sh-drawing-wrapper{position:relative}.syno-o-sh-drawing-overlay.syno-o-sh-chart-overlay .syno-o-sh-chart-empty-msg{background-color:#fff;background-image:url(webman/3rdparty/Spreadsheet/images/_Asset/1x/_Common/icon_chart_invalid.png?791f133d);background-position:50%;background-repeat:no-repeat;height:100%;width:100%}.syno-o-sh-drawing-overlay .syno-o-sh-drawing-selection{background-color:#0000;border-style:solid;border-width:4px;height:100%;left:-4px;pointer-events:none;position:absolute;top:-4px;width:100%}@media (min-resolution:144dpi){.syno-o-sh-drawing-overlay.syno-o-sh-chart-overlay .syno-o-sh-chart-empty-msg{background-image:url(webman/3rdparty/Spreadsheet/images/_Asset/2x/_Common/icon_chart_invalid.png?281d28c7);background-size:144px 144px}}",""]);let s=a},63551:function(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>s});var n=i(31627),o=i.n(n),r=i(96384),a=i.n(r)()(o());a.push([e.id,".syno-o-mobile-header[data-v-3992ee22]{align-items:center;background:#f6f8fa;column-gap:8px;display:flex;justify-content:space-between;overflow:hidden;padding:10px 16px 10px 14px}.syno-o-title[data-v-3992ee22]{font-size:20px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.syno-o-sheet-theme .syno-o-title[data-v-3992ee22]{color:#2db27b}.syno-o-doc-theme .syno-o-title[data-v-3992ee22]{color:#4987f2}.syno-o-slide-theme .syno-o-title[data-v-3992ee22]{color:#faa700}.syno-o-mobile-header-buttons[data-v-3992ee22]{column-gap:16px;display:flex;flex-shrink:0}.syno-o-mobile-header-buttons .syno-o-btn[data-v-3992ee22]{background-color:#0000;background-position:0 0;border:none;height:24px;width:24px}.syno-o-mobile-header-buttons .syno-o-btn[data-v-3992ee22]:focus,.syno-o-mobile-header-buttons .syno-o-btn[data-v-3992ee22]:hover{background-position:0 -24px}.syno-o-mobile-header-buttons .syno-o-btn[data-v-3992ee22]:active{background-position:0 -48px}.syno-o-mobile-header-buttons .syno-o-btn.v-btn-disabled[data-v-3992ee22],.syno-o-mobile-header-buttons .syno-o-btn[data-v-3992ee22]:disabled{background-position:0 -72px}.syno-o-sheet-theme .syno-o-mobile-header-buttons .syno-o-all-comment-btn[data-v-3992ee22]{background-image:url(webman/3rdparty/Spreadsheet/images/_Asset/1x/_SpreadSheet/icon_comment_list.png?ed9f07b3)}.syno-o-doc-theme .syno-o-mobile-header-buttons .syno-o-all-comment-btn[data-v-3992ee22]{background-image:url(webman/3rdparty/Spreadsheet/images/_Asset/1x/_Document/icon_comment_list.png?5668eba1)}.syno-o-slide-theme .syno-o-mobile-header-buttons .syno-o-all-comment-btn[data-v-3992ee22]{background-image:url(webman/3rdparty/Spreadsheet/images/_Asset/1x/_Presentation/icon_comment_list.png?61670f54)}.syno-o-sheet-theme .syno-o-mobile-header-buttons .syno-o-more-action-btn[data-v-3992ee22]{background-image:url(webman/3rdparty/Spreadsheet/images/_Asset/1x/_SpreadSheet/icon_header_more.png?96dd12ea)}.syno-o-doc-theme .syno-o-mobile-header-buttons .syno-o-more-action-btn[data-v-3992ee22]{background-image:url(webman/3rdparty/Spreadsheet/images/_Asset/1x/_Document/icon_header_more.png?cda7ebe8)}.syno-o-slide-theme .syno-o-mobile-header-buttons .syno-o-more-action-btn[data-v-3992ee22]{background-image:url(webman/3rdparty/Spreadsheet/images/_Asset/1x/_Presentation/icon_header_more.png?403fdb21)}.syno-o-sheet-theme .syno-o-mobile-header-buttons .syno-o-find-btn[data-v-3992ee22]{background-image:url(webman/3rdparty/Spreadsheet/images/_Asset/1x/_SpreadSheet/icon_header_search.png?4accce1e)}.syno-o-doc-theme .syno-o-mobile-header-buttons .syno-o-find-btn[data-v-3992ee22]{background-image:url(webman/3rdparty/Spreadsheet/images/_Asset/1x/_Document/icon_header_search.png?eb57eab0)}.syno-o-slide-theme .syno-o-mobile-header-buttons .syno-o-find-btn[data-v-3992ee22]{background-image:url(webman/3rdparty/Spreadsheet/images/_Asset/1x/_Presentation/icon_header_search.png?b0593693)}.syno-o-mobile-header-menu[data-v-3992ee22]{--v-menu-font-size__title:16px;--v-menu-line-height__title:48px;--v-menu-height__title:48px}@media (min-resolution:144dpi){.syno-o-sheet-theme .syno-o-mobile-header-buttons .syno-o-all-comment-btn[data-v-3992ee22]{background-image:url(webman/3rdparty/Spreadsheet/images/_Asset/2x/_SpreadSheet/icon_comment_list.png?c8446c24);background-size:24px 96px}.syno-o-doc-theme .syno-o-mobile-header-buttons .syno-o-all-comment-btn[data-v-3992ee22]{background-image:url(webman/3rdparty/Spreadsheet/images/_Asset/2x/_Document/icon_comment_list.png?863d1f8d);background-size:24px 96px}.syno-o-slide-theme .syno-o-mobile-header-buttons .syno-o-all-comment-btn[data-v-3992ee22]{background-image:url(webman/3rdparty/Spreadsheet/images/_Asset/2x/_Presentation/icon_comment_list.png?80a624c3);background-size:24px 96px}.syno-o-sheet-theme .syno-o-mobile-header-buttons .syno-o-more-action-btn[data-v-3992ee22]{background-image:url(webman/3rdparty/Spreadsheet/images/_Asset/2x/_SpreadSheet/icon_header_more.png?10b1e5ba);background-size:24px 96px}.syno-o-doc-theme .syno-o-mobile-header-buttons .syno-o-more-action-btn[data-v-3992ee22]{background-image:url(webman/3rdparty/Spreadsheet/images/_Asset/2x/_Document/icon_header_more.png?32d4ad31);background-size:24px 96px}.syno-o-slide-theme .syno-o-mobile-header-buttons .syno-o-more-action-btn[data-v-3992ee22]{background-image:url(webman/3rdparty/Spreadsheet/images/_Asset/2x/_Presentation/icon_header_more.png?63c0ae34);background-size:24px 96px}.syno-o-sheet-theme .syno-o-mobile-header-buttons .syno-o-find-btn[data-v-3992ee22]{background-image:url(webman/3rdparty/Spreadsheet/images/_Asset/2x/_SpreadSheet/icon_header_search.png?8d3e5d0c);background-size:24px 96px}.syno-o-doc-theme .syno-o-mobile-header-buttons .syno-o-find-btn[data-v-3992ee22]{background-image:url(webman/3rdparty/Spreadsheet/images/_Asset/2x/_Document/icon_header_search.png?9b9d1278);background-size:24px 96px}.syno-o-slide-theme .syno-o-mobile-header-buttons .syno-o-find-btn[data-v-3992ee22]{background-image:url(webman/3rdparty/Spreadsheet/images/_Asset/2x/_Presentation/icon_header_search.png?16f53385);background-size:24px 96px}}",""]);let s=a},69356:function(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>s});var n=i(31627),o=i.n(n),r=i(96384),a=i.n(r)()(o());a.push([e.id,".color-joe{background-color:#fff;display:flex;margin-bottom:6px}.color-joe .extras{display:flex;flex-flow:column wrap;height:252px;margin-left:18px;margin-right:6px}.color-joe .extras .currentColorContainer{border:1px solid #d8dadc;height:58px;overflow:hidden;width:86px}.color-joe .extras .currentColor{border:none;border-radius:0;height:58px;width:86px}.color-joe .extras .colorFields{margin-bottom:8px;margin-top:12px}.color-joe .extras .colorFields .color{margin-bottom:6px;text-align:right}.color-joe .extras .colorFields .color label{display:inline-block;text-align:left;width:20px}.color-joe .extras .colorFields .color input{margin:0;width:48px}.color-joe .extras .colorFields .color input,.color-joe .extras .hex input{border:1px solid #d8dadc;border-radius:1px;color:#2e3032;font-size:13px;height:20px;line-height:20px;padding:4px 9px}.color-joe .extras .hex input{width:68px}.color-joe .extras .alpha{margin-right:24px}.color-joe .twod{border:1px solid #d8dadc;height:250px;margin:0 6px 0 8px;width:250px}.color-joe .twod .bg{height:250px;position:absolute;width:250px}.color-joe .twod .bg1{background:linear-gradient(90deg,#fff 0,#fff0);z-index:0}.color-joe .twod .bg2{background:linear-gradient(180deg,#0000 0,#000);z-index:1}.color-joe .twod .pointer{position:relative;width:8px;z-index:2}.color-joe .twod .pointer .shape{border-radius:99em;position:absolute;transform:translate(-50%,-50%)}.color-joe .twod .pointer .shape1{border:1px solid #000;height:12px;width:12px}.color-joe .twod .pointer .shape2{border:1px solid #fff;height:10px;width:10px}.color-joe .oned{border:1px solid #d8dadc;height:250px;margin:0 6px;width:18px}.color-joe .oned .bg{background:linear-gradient(180deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 66%,#f0f 83%,red);border:0;height:250px;width:20px}.color-joe .oned .pointer{position:relative;z-index:2}.color-joe .oned .pointer .shape{margin-left:-1px;margin-top:-4px;position:absolute}.color-joe .oned .pointer .shape1{border:1px solid #000;border-radius:2px;height:5px;width:20px}.color-joe .oned .pointer .shape2{border:1px solid #fff;border-radius:1px;height:3px;margin-left:0;margin-top:-3px;width:18px}.color-joe.enableAlpha .oned{width:10px}.color-joe.enableAlpha .oned .bg{width:100%}.color-joe.enableAlpha .oned .shape1{width:10px}.color-joe.enableAlpha .oned .shape2{width:8px}.color-joe.enableAlpha .oned .pointer .shape1{z-index:1}.color-joe.enableAlpha .extras{margin-left:0}.color-joe.enableAlpha .extras .colorFields{margin-bottom:6px}",""]);let s=a},41717:function(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>s});var n=i(31627),o=i.n(n),r=i(96384),a=i.n(r)()(o());a.push([e.id,".syno-o-comment-panel-view-all-btn[data-v-b0ac858a]{color:#2e3032;font-size:15px;font-weight:700;text-decoration:underline}.syno-o-comment-panel-view-all-btn[data-v-b0ac858a] span{padding:0}",""]);let s=a},96384:function(e){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var i="",n=void 0!==t[5];return t[4]&&(i+="@supports (".concat(t[4],") {")),t[2]&&(i+="@media ".concat(t[2]," {")),n&&(i+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),i+=e(t),n&&(i+="}"),t[2]&&(i+="}"),t[4]&&(i+="}"),i}).join("")},t.i=function(e,i,n,o,r){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(n)for(var s=0;s<this.length;s++){var l=this[s][0];null!=l&&(a[l]=!0)}for(var c=0;c<e.length;c++){var d=[].concat(e[c]);n&&a[d[0]]||(void 0!==r&&(void 0===d[5]||(d[1]="@layer".concat(d[5].length>0?" ".concat(d[5]):""," {").concat(d[1],"}")),d[5]=r),i&&(d[2]&&(d[1]="@media ".concat(d[2]," {").concat(d[1],"}")),d[2]=i),o&&(d[4]?(d[1]="@supports (".concat(d[4],") {").concat(d[1],"}"),d[4]=o):d[4]="".concat(o)),t.push(d))}},t}},31627:function(e){"use strict";e.exports=function(e){return e[1]}},65969:function(e,t,i){var n=i(47475);!function(){for(var e in n){if(null==n||!n.hasOwnProperty(e)||"default"===e||"__esModule"===e)return;t[e]=n[e]}}();var o=i(83471);!function(){for(var e in o){if(null==o||!o.hasOwnProperty(e)||"default"===e||"__esModule"===e)return;t[e]=o[e]}}(),i(62295),i(26730),i(61723),i(92004),i(3683),i(13790),i(74719),i(59070),i(74698),i(36793),i(52161),i(83031),i(4193),i(79034),i(45753),i(62597),i(36231),i(57667),i(58199),i(21223),i(51309),i(96214),i(61756),i(76901),i(25761),i(69818),i(27017),i(57498),i(38189),i(39857),i(41891),i(96729),i(16348),i(13074),i(34870),i(86782),i(4781),i(35866),i(41293),i(65218),i(76356),i(41336),i(77658),i(76955)},33776:function(e,t,i){var n=i(66023),o={};function r(){this._coordinateSystems=[]}r.prototype={constructor:r,create:function(e,t){var i=[];n.each(o,function(n,o){var r=n.create(e,t);i=i.concat(r||[])}),this._coordinateSystems=i},update:function(e,t){n.each(this._coordinateSystems,function(i){i.update&&i.update(e,t)})},getCoordinateSystems:function(){return this._coordinateSystems.slice()}},r.register=function(e,t){o[e]=t},r.get=function(e){return o[e]},e.exports=r},13966:function(e,t,i){var n=i(66023),o=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isDisposed","on","off","getDataURL","getConnectedDataURL","getModel","getOption","getViewOfComponentModel","getViewOfSeriesModel"];e.exports=function(e){n.each(o,function(t){this[t]=n.bind(e[t],e)},this)}},90353:function(e,t,i){var n=i(47475),o=i(66023);e.exports=function(e,t){o.each(t,function(t){t.update="updateView",n.registerAction(t,function(i,n){var o={};return n.eachComponent({mainType:"series",subType:e,query:i},function(e){e[t.method]&&e[t.method](i.name,i.dataIndex);var n=e.getData();n.each(function(t){var i=n.getName(t);o[i]=e.isSelected(i)||!1})}),{name:i.name,selected:o}})})}},74911:function(e,t,i){var n=i(47475),o=i(66023),r=i(31616).updateCenterAndZoom;n.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},function(e,t){var i=e.componentType||"series";t.eachComponent({mainType:i,query:e},function(t){var n=t.coordinateSystem;if("geo"===n.type){var a=r(n,e,t.get("scaleLimit"));t.setCenter&&t.setCenter(a.center),t.setZoom&&t.setZoom(a.zoom),"series"===i&&o.each(t.seriesGroup,function(e){e.setCenter(a.center),e.setZoom(a.zoom)})}})})},31616:function(e,t){t.updateCenterAndZoom=function(e,t,i){var n=e.getZoom(),o=e.getCenter(),r=t.zoom,a=e.dataToPoint(o);if(null!=t.dx&&null!=t.dy){a[0]-=t.dx,a[1]-=t.dy;var o=e.pointToData(a);e.setCenter(o)}if(null!=r){if(i){var s=i.min||0;r=Math.max(Math.min(n*r,i.max||1/0),s)/n}e.scale[0]*=r,e.scale[1]*=r;var l=e.position,c=(t.originX-l[0])*(r-1),d=(t.originY-l[1])*(r-1);l[0]-=c,l[1]-=d,e.updateTransform();var o=e.pointToData(a);e.setCenter(o),e.setZoom(r*n)}return{center:e.getCenter(),zoom:e.getZoom()}}},61723:function(e,t,i){var n=i(47475),o=i(66023),r=i(42862),a=r.layout,s=r.largeLayout;i(34087),i(85976),i(56242),i(31372),n.registerLayout(o.curry(a,"bar")),n.registerLayout(s),n.registerVisual({seriesType:"bar",reset:function(e){e.getData().setVisual("legendSymbol","roundRect")}})},85976:function(e,t,i){e.exports=i(84480).extend({type:"series.bar",dependencies:["grid","polar"],brushSelector:"rect",getProgressive:function(){return!!this.get("large")&&this.get("progressive")},getProgressiveThreshold:function(){var e=this.get("progressiveThreshold"),t=this.get("largeThreshold");return t>e&&(e=t),e}})},56242:function(e,t,i){i(38603).__DEV__;var n=i(47475),o=i(66023),r=i(76165),a=i(93928).setLabel,s=i(27611),l=i(61444),c=i(87205),d=["itemStyle","barBorderWidth"];o.extend(s.prototype,l);var u=n.extendChartView({type:"bar",render:function(e,t,i){this._updateDrawMode(e);var n=e.get("coordinateSystem");return("cartesian2d"===n||"polar"===n)&&(this._isLargeDraw?this._renderLarge(e,t,i):this._renderNormal(e,t,i)),this.group},incrementalPrepareRender:function(e,t,i){this._clear(),this._updateDrawMode(e)},incrementalRender:function(e,t,i,n){this._incrementalRenderLarge(e,t)},_updateDrawMode:function(e){var t=e.pipelineContext.large;(null==this._isLargeDraw||t^this._isLargeDraw)&&(this._isLargeDraw=t,this._clear())},_renderNormal:function(e,t,i){var n,o=this.group,a=e.getData(),s=this._data,l=e.coordinateSystem,c=l.getBaseAxis();"cartesian2d"===l.type?n=c.isHorizontal():"polar"===l.type&&(n="angle"===c.dim);var d=e.isAnimationEnabled()?e:null;a.diff(s).add(function(t){if(a.hasValue(t)){var i=a.getItemModel(t),r=g[l.type](a,t,i),s=h[l.type](a,t,i,r,n,d);a.setItemGraphicEl(t,s),o.add(s),m(s,a,t,i,r,e,n,"polar"===l.type)}}).update(function(t,i){var c=s.getItemGraphicEl(i);if(!a.hasValue(t))return void o.remove(c);var u=a.getItemModel(t),p=g[l.type](a,t,u);c?r.updateProps(c,{shape:p},d,t):c=h[l.type](a,t,u,p,n,d,!0),a.setItemGraphicEl(t,c),o.add(c),m(c,a,t,u,p,e,n,"polar"===l.type)}).remove(function(e){var t=s.getItemGraphicEl(e);"cartesian2d"===l.type?t&&p(e,d,t):t&&f(e,d,t)}).execute(),this._data=a},_renderLarge:function(e,t,i){this._clear(),b(e,this.group)},_incrementalRenderLarge:function(e,t){b(t,this.group,!0)},dispose:o.noop,remove:function(e){this._clear(e)},_clear:function(e){var t=this.group,i=this._data;e&&e.get("animation")&&i&&!this._isLargeDraw?i.eachItemGraphicEl(function(t){"sector"===t.type?f(t.dataIndex,e,t):p(t.dataIndex,e,t)}):t.removeAll(),this._data=null}}),h={cartesian2d:function(e,t,i,n,a,s,l){var c=new r.Rect({shape:o.extend({},n)});if(s){var d=c.shape,u=a?"height":"width",h={};d[u]=0,h[u]=n[u],r[l?"updateProps":"initProps"](c,{shape:h},s,t)}return c},polar:function(e,t,i,n,a,s,l){var c=n.startAngle<n.endAngle,d=new r.Sector({shape:o.defaults({clockwise:c},n)});if(s){var u=d.shape,h=a?"r":"endAngle",p={};u[h]=a?0:n.startAngle,p[h]=n[h],r[l?"updateProps":"initProps"](d,{shape:p},s,t)}return d}};function p(e,t,i){i.style.text=null,r.updateProps(i,{shape:{width:0}},t,e,function(){i.parent&&i.parent.remove(i)})}function f(e,t,i){i.style.text=null,r.updateProps(i,{shape:{r:i.shape.r0}},t,e,function(){i.parent&&i.parent.remove(i)})}var g={cartesian2d:function(e,t,i){var n,o,r=e.getItemLayout(t),a=(n=i,o=r,Math.min(n.get(d)||0,Math.abs(o.width),Math.abs(o.height))),s=r.width>0?1:-1,l=r.height>0?1:-1;return{x:r.x+s*a/2,y:r.y+l*a/2,width:r.width-s*a,height:r.height-l*a}},polar:function(e,t,i){var n=e.getItemLayout(t);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle}}};function m(e,t,i,n,s,l,c,d){var u=t.getItemVisual(i,"color"),h=t.getItemVisual(i,"opacity"),p=n.getModel("itemStyle"),f=n.getModel("emphasis.itemStyle").getBarItemStyle();d||e.setShape("r",p.get("barBorderRadius")||0),e.useStyle(o.defaults({fill:u,opacity:h},p.getBarItemStyle()));var g=n.getShallow("cursor");g&&e.attr("cursor",g);var m=c?s.height>0?"bottom":"top":s.width>0?"left":"right";d||a(e.style,f,n,u,l,i,m),r.setHoverStyle(e,f)}var v=c.extend({type:"largeBar",shape:{points:[]},buildPath:function(e,t){for(var i=t.points,n=this.__startPoint,o=this.__valueIdx,r=0;r<i.length;r+=2)n[this.__valueIdx]=i[r+o],e.moveTo(n[0],n[1]),e.lineTo(i[r],i[r+1])}});function b(e,t,i){var n,o,r,a,s,l=e.getData(),c=[],d=+!!l.getLayout("valueAxisHorizontal");c[1-d]=l.getLayout("valueAxisStart");var u=new v({shape:{points:l.getLayout("largePoints")},incremental:!!i,__startPoint:c,__valueIdx:d});t.add(u),n=u,o=e,a=(r=l).getVisual("borderColor")||r.getVisual("color"),s=o.getModel("itemStyle").getItemStyle(["color","borderColor"]),n.useStyle(s),n.style.fill=null,n.style.stroke=a,n.style.lineWidth=r.getLayout("barWidth")}e.exports=u},84480:function(e,t,i){var n=i(26626),o=i(6551);e.exports=n.extend({type:"series.__base_bar__",getInitialData:function(e,t){return o(this.getSource(),this)},getMarkerPosition:function(e){var t=this.coordinateSystem;if(t){var i=t.dataToPoint(t.clampData(e)),n=this.getData(),o=n.getLayout("offset"),r=n.getLayout("size"),a=+!t.getBaseAxis().isHorizontal();return i[a]+=o+r/2,i}return[NaN,NaN]},defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod",itemStyle:{},emphasis:{}}})},14624:function(e,t,i){var n=i(84480).extend({type:"series.pictorialBar",dependencies:["grid"],defaultOption:{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",progressive:0,hoverAnimation:!1},getInitialData:function(e){return e.stack=null,n.superApply(this,"getInitialData",arguments)}});e.exports=n},54687:function(e,t,i){var n=i(47475),o=i(66023),r=i(76165),a=i(87557).createSymbol,s=i(98763),l=s.parsePercent,c=s.isNumeric,d=i(93928).setLabel,u=["itemStyle","borderWidth"],h=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],p=new r.Circle;function f(e,t,i,n){var r,a,s,d,h,f,m,v,b,y,w,_,x,S,C,k,I,A,T,E,R,O=e.getItemLayout(t),M=i.get("symbolRepeat"),N=i.get("symbolClip"),P=i.get("symbolPosition")||"start",L=(i.get("symbolRotate")||0)*Math.PI/180||0,B=i.get("symbolPatternSize")||2,F=i.isAnimationEnabled(),V={dataIndex:t,layout:O,itemModel:i,symbolType:e.getItemVisual(t,"symbol")||"circle",color:e.getItemVisual(t,"color"),symbolClip:N,symbolRepeat:M,symbolRepeatDirection:i.get("symbolRepeatDirection"),symbolPatternSize:B,rotation:L,animationModel:F?i:null,hoverAnimation:F&&i.get("hoverAnimation"),z2:i.getShallow("z",!0)||0};(function(e,t,i,n,r){var a,s=n.valueDim,l=e.get("symbolBoundingData"),c=n.coordSys.getOtherAxis(n.coordSys.getBaseAxis()),d=c.toGlobalCoord(c.dataToCoord(0)),u=1-+(i[s.wh]<=0);if(o.isArray(l)){var h=[g(c,l[0])-d,g(c,l[1])-d];h[1]<h[0]&&h.reverse(),a=h[u]}else a=null!=l?g(c,l)-d:t?n.coordSysExtent[s.index][u]-d:i[s.wh];r.boundingLength=a,t&&(r.repeatCutLength=i[s.wh]),r.pxSign=a>0?1:a<0?-1:0})(i,M,O,n,V),r=e,a=t,s=O,d=M,h=0,f=V.boundingLength,m=V.pxSign,v=B,b=n,y=V,w=b.valueDim,x=Math.abs(s[(_=b.categoryDim).wh]),S=r.getItemVisual(a,"symbolSize"),o.isArray(S)?S=S.slice():(null==S&&(S="100%"),S=[S,S]),S[_.index]=l(S[_.index],x),S[w.index]=l(S[w.index],d?x:Math.abs(f)),y.symbolSize=S,C=y.symbolScale=[S[0]/v,S[1]/v],C[w.index]*=(b.isHorizontal?-1:1)*m,k=i,I=V.symbolScale,A=L,T=n,E=V,(R=k.get(u)||0)&&(p.attr({scale:I.slice(),rotation:A}),p.updateTransform(),R/=p.getLineScale(),R*=I[T.valueDim.index]),E.valueLineWidth=R;var z=V.symbolSize,H=i.get("symbolOffset");return o.isArray(H)&&(H=[l(H[0],z[0]),l(H[1],z[1])]),function(e,t,i,n,r,a,s,d,u,h,p,f){var g=p.categoryDim,m=p.valueDim,v=f.pxSign,b=Math.max(t[m.index]+d,0),y=b;if(n){var w=Math.abs(u),_=o.retrieve(e.get("symbolMargin"),"15%")+"",x=!1;_.lastIndexOf("!")===_.length-1&&(x=!0,_=_.slice(0,_.length-1));var S=Math.max(b+2*(_=l(_,t[m.index])),0),C=x?0:2*_,k=c(n),I=k?n:D((w+C)/S);_=(w-I*b)/2/(x?I:I-1),S=b+2*_,C=x?0:2*_,k||"fixed"===n||(I=h?D((Math.abs(h)+C)/S):0),y=I*S-C,f.repeatTimes=I,f.symbolMargin=_}var A=y/2*v,T=f.pathPosition=[];T[g.index]=i[g.wh]/2,T[m.index]="start"===s?A:"end"===s?u-A:u/2,a&&(T[0]+=a[0],T[1]+=a[1]);var E=f.bundlePosition=[];E[g.index]=i[g.xy],E[m.index]=i[m.xy];var R=f.barRectShape=o.extend({},i);R[m.wh]=v*Math.max(Math.abs(i[m.wh]),Math.abs(T[m.index]+A)),R[g.wh]=i[g.wh];var O=f.clipShape={};O[g.xy]=-i[g.xy],O[g.wh]=p.ecSize[g.wh],O[m.xy]=0,O[m.wh]=i[m.wh]}(i,z,O,M,0,H,P,V.valueLineWidth,V.boundingLength,V.repeatCutLength,n,V),V}function g(e,t){return e.toGlobalCoord(e.dataToCoord(e.scale.parse(t)))}function m(e){var t=e.symbolPatternSize,i=a(e.symbolType,-t/2,-t/2,t,t,e.color);return i.attr({culling:!0}),"image"!==i.type&&i.setStyle({strokeNoScale:!0}),i}function v(e,t,i,n){var o=e.__pictorialBundle,r=i.symbolSize,a=i.valueLineWidth,s=i.pathPosition,l=t.valueDim,c=i.repeatTimes||0,d=0,u=r[t.valueDim.index]+a+2*i.symbolMargin;for(T(e,function(e){e.__pictorialAnimationIndex=d,e.__pictorialRepeatTimes=c,d<c?E(e,null,f(d),i,n):E(e,null,{scale:[0,0]},i,n,function(){o.remove(e)}),C(e,i),d++});d<c;d++){var h=m(i);h.__pictorialAnimationIndex=d,h.__pictorialRepeatTimes=c,o.add(h);var p=f(d);E(h,{position:p.position,scale:[0,0]},{scale:p.scale,rotation:p.rotation},i,n),h.on("mouseover",g).on("mouseout",v),C(h,i)}function f(e){var t=s.slice(),n=i.pxSign,o=e;return("start"===i.symbolRepeatDirection?n>0:n<0)&&(o=c-1-e),t[l.index]=u*(o-c/2+.5)+s[l.index],{position:t,scale:i.symbolScale.slice(),rotation:i.rotation}}function g(){T(e,function(e){e.trigger("emphasis")})}function v(){T(e,function(e){e.trigger("normal")})}}function b(e,t,i,n){var o=e.__pictorialBundle,r=e.__pictorialMainPath;r?E(r,null,{position:i.pathPosition.slice(),scale:i.symbolScale.slice(),rotation:i.rotation},i,n):(r=e.__pictorialMainPath=m(i),o.add(r),E(r,{position:i.pathPosition.slice(),scale:[0,0],rotation:i.rotation},{scale:i.symbolScale.slice()},i,n),r.on("mouseover",function(){this.trigger("emphasis")}).on("mouseout",function(){this.trigger("normal")})),C(r,i)}function y(e,t,i){var n=o.extend({},t.barRectShape),a=e.__pictorialBarRect;a?E(a,null,{shape:n},t,i):(a=e.__pictorialBarRect=new r.Rect({z2:2,shape:n,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),e.add(a))}function w(e,t,i,n){if(i.symbolClip){var a=e.__pictorialClipPath,s=o.extend({},i.clipShape),l=t.valueDim,c=i.animationModel,d=i.dataIndex;if(a)r.updateProps(a,{shape:s},c,d);else{s[l.wh]=0,a=new r.Rect({shape:s}),e.__pictorialBundle.setClipPath(a),e.__pictorialClipPath=a;var u={};u[l.wh]=i.clipShape[l.wh],r[n?"updateProps":"initProps"](a,{shape:u},c,d)}}}function _(e,t){var i=e.getItemModel(t);return i.getAnimationDelayParams=x,i.isAnimationEnabled=S,i}function x(e){return{index:e.__pictorialAnimationIndex,count:e.__pictorialRepeatTimes}}function S(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function C(e,t){e.off("emphasis").off("normal");var i=t.symbolScale.slice();t.hoverAnimation&&e.on("emphasis",function(){this.animateTo({scale:[1.1*i[0],1.1*i[1]]},400,"elasticOut")}).on("normal",function(){this.animateTo({scale:i.slice()},400,"elasticOut")})}function k(e,t,i,n){var o=new r.Group,a=new r.Group;return o.add(a),o.__pictorialBundle=a,a.attr("position",i.bundlePosition.slice()),i.symbolRepeat?v(o,t,i):b(o,t,i),y(o,i,n),w(o,t,i,n),o.__pictorialShapeStr=A(e,i),o.__pictorialSymbolMeta=i,o}function I(e,t,i,n){var a=n.__pictorialBarRect;a&&(a.style.text=null);var s=[];T(n,function(e){s.push(e)}),n.__pictorialMainPath&&s.push(n.__pictorialMainPath),n.__pictorialClipPath&&(i=null),o.each(s,function(e){r.updateProps(e,{scale:[0,0]},i,t,function(){n.parent&&n.parent.remove(n)})}),e.setItemGraphicEl(t,null)}function A(e,t){return[e.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function T(e,t,i){o.each(e.__pictorialBundle.children(),function(n){n!==e.__pictorialBarRect&&t.call(i,n)})}function E(e,t,i,n,o,a){t&&e.attr(t),n.symbolClip&&!o?i&&e.attr(i):i&&r[o?"updateProps":"initProps"](e,i,n.animationModel,n.dataIndex,a)}function R(e,t,i){var n=i.color,a=i.dataIndex,s=i.itemModel,l=s.getModel("itemStyle").getItemStyle(["color"]),c=s.getModel("emphasis.itemStyle").getItemStyle(),u=s.getShallow("cursor");T(e,function(e){e.setColor(n),e.setStyle(o.defaults({fill:n,opacity:i.opacity},l)),r.setHoverStyle(e,c),u&&(e.cursor=u),e.z2=i.z2});var h={},p=t.valueDim.posDesc[+(i.boundingLength>0)],f=e.__pictorialBarRect;d(f.style,h,s,n,t.seriesModel,a,p),r.setHoverStyle(f,h)}function D(e){var t=Math.round(e);return 1e-4>Math.abs(e-t)?t:Math.ceil(e)}e.exports=n.extendChartView({type:"pictorialBar",render:function(e,t,i){var n=this.group,o=e.getData(),a=this._data,s=e.coordinateSystem,l=!!s.getBaseAxis().isHorizontal(),c=s.grid.getRect(),d={ecSize:{width:i.getWidth(),height:i.getHeight()},seriesModel:e,coordSys:s,coordSysExtent:[[c.x,c.x+c.width],[c.y,c.y+c.height]],isHorizontal:l,valueDim:h[+l],categoryDim:h[1-l]};return o.diff(a).add(function(e){if(o.hasValue(e)){var t=_(o,e),i=f(o,e,t,d),r=k(o,d,i);o.setItemGraphicEl(e,r),n.add(r),R(r,d,i)}}).update(function(e,t){var i,s,l,c,u,h,p=a.getItemGraphicEl(t);if(!o.hasValue(e))return void n.remove(p);var g=_(o,e),m=f(o,e,g,d),x=A(o,m);p&&x!==p.__pictorialShapeStr&&(n.remove(p),o.setItemGraphicEl(e,null),p=null),p?(i=p,s=d,c=(l=m).animationModel,u=l.dataIndex,h=i.__pictorialBundle,r.updateProps(h,{position:l.bundlePosition.slice()},c,u),l.symbolRepeat?v(i,s,l,!0):b(i,s,l,!0),y(i,l,!0),w(i,s,l,!0)):p=k(o,d,m,!0),o.setItemGraphicEl(e,p),p.__pictorialSymbolMeta=m,n.add(p),R(p,d,m)}).remove(function(e){var t=a.getItemGraphicEl(e);t&&I(a,e,t.__pictorialSymbolMeta.animationModel,t)}).execute(),this._data=o,this.group},dispose:o.noop,remove:function(e,t){var i=this.group,n=this._data;e.get("animation")?n&&n.eachItemGraphicEl(function(t){I(n,t.dataIndex,e,t)}):i.removeAll()}})},61444:function(e,t,i){var n=i(24954)([["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["stroke","barBorderColor"],["lineWidth","barBorderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]);e.exports={getBarItemStyle:function(e){var t=n(this,e);if(this.getBorderLineDash){var i=this.getBorderLineDash();i&&(t.lineDash=i)}return t}}},93928:function(e,t,i){var n=i(76165),o=i(31750).getDefaultLabel;function r(e,t){"outside"===e.textPosition&&(e.textPosition=t)}t.setLabel=function(e,t,i,a,s,l,c){var d=i.getModel("label"),u=i.getModel("emphasis.label");n.setLabelStyle(e,t,d,u,{labelFetcher:s,labelDataIndex:l,defaultText:o(s.getData(),l),isRectText:!0,autoColor:a}),r(e),r(t)}},45753:function(e,t,i){var n=i(47475);i(6134),i(7662);var o=i(47459),r=i(76424);n.registerVisual(o),n.registerLayout(r)},6134:function(e,t,i){var n=i(66023),o=i(26626),r=i(90005).seriesModelMixin,a=o.extend({type:"series.boxplot",dependencies:["xAxis","yAxis","grid"],defaultValueDimensions:[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],dimensions:null,defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:2,shadowOffsetY:2,shadowColor:"rgba(0,0,0,0.4)"}},animationEasing:"elasticOut",animationDuration:800}});n.mixin(a,r,!0),e.exports=a},7662:function(e,t,i){var n=i(66023),o=i(55756),r=i(76165),a=i(87205),s=["itemStyle"],l=["emphasis","itemStyle"],c=o.extend({type:"boxplot",render:function(e,t,i){var n=e.getData(),o=this.group,r=this._data;this._data||o.removeAll();var a=+("horizontal"===e.get("layout"));n.diff(r).add(function(e){if(n.hasValue(e)){var t=u(n.getItemLayout(e),n,e,a,!0);n.setItemGraphicEl(e,t),o.add(t)}}).update(function(e,t){var i=r.getItemGraphicEl(t);if(!n.hasValue(e))return void o.remove(i);var s=n.getItemLayout(e);i?h(s,i,n,e):i=u(s,n,e,a),o.add(i),n.setItemGraphicEl(e,i)}).remove(function(e){var t=r.getItemGraphicEl(e);t&&o.remove(t)}).execute(),this._data=n},remove:function(e){var t=this.group,i=this._data;this._data=null,i&&i.eachItemGraphicEl(function(e){e&&t.remove(e)})},dispose:n.noop}),d=a.extend({type:"boxplotBoxPath",shape:{},buildPath:function(e,t){var i=t.points,n=0;for(e.moveTo(i[n][0],i[n][1]),n++;n<4;n++)e.lineTo(i[n][0],i[n][1]);for(e.closePath();n<i.length;n++)e.moveTo(i[n][0],i[n][1]),n++,e.lineTo(i[n][0],i[n][1])}});function u(e,t,i,o,r){var a,s,l,c=e.ends,u=new d({shape:{points:r?(a=c,s=o,l=e,n.map(a,function(e){return(e=e.slice())[s]=l.initBaseline,e})):c}});return h(e,u,t,i,r),u}function h(e,t,i,n,o){var a=i.hostModel;(0,r[o?"initProps":"updateProps"])(t,{shape:{points:e.ends}},a,n);var c=i.getItemModel(n),d=c.getModel(s),u=i.getItemVisual(n,"color"),h=d.getItemStyle(["borderColor"]);h.stroke=u,h.strokeNoScale=!0,t.useStyle(h),t.z2=100;var p=c.getModel(l).getItemStyle();r.setHoverStyle(t,p)}e.exports=c},76424:function(e,t,i){var n=i(66023),o=i(98763).parsePercent,r=n.each;e.exports=function(e){var t,i;r((t=[],i=[],e.eachSeriesByType("boxplot",function(e){var o=e.getBaseAxis(),r=n.indexOf(i,o);r<0&&(r=i.length,i[r]=o,t[r]={axis:o,seriesModels:[]}),t[r].seriesModels.push(e)}),t),function(e){var t=e.seriesModels;t.length&&(function(e){var t,i,a=e.axis,s=e.seriesModels,l=s.length,c=e.boxWidthList=[],d=e.boxOffsetList=[],u=[];if("category"===a.type)i=a.getBandWidth();else{var h=0;r(s,function(e){h=Math.max(h,e.getData().count())}),(t=a.getExtent())[1],t[0]}r(s,function(e){var t=e.get("boxWidth");n.isArray(t)||(t=[t,t]),u.push([o(t[0],i)||0,o(t[1],i)||0])});var p=.8*i-2,f=p/l*.3,g=(p-f*(l-1))/l,m=g/2-p/2;r(s,function(e,t){d.push(m),m+=f+g,c.push(Math.min(Math.max(g,u[t][0]),u[t][1]))})}(e),r(t,function(t,i){!function(e,t,i){var n=e.coordinateSystem,o=e.getData(),r=i/2,a=+("horizontal"!==e.get("layout")),s=1-a,l=["x","y"],c=o.mapDimension(l[a]),d=o.mapDimension(l[s],!0);if(null!=c&&!(d.length<5))for(var u=0;u<o.count();u++){var h=o.get(c,u),p=y(h,d[2],u),f=y(h,d[0],u),g=y(h,d[1],u),m=y(h,d[3],u),v=y(h,d[4],u),b=[];w(b,g,0),w(b,m,1),b.push(f,g,v,m),_(b,f),_(b,v),_(b,p),o.setItemLayout(u,{initBaseline:p[s],ends:b})}function y(e,i,r){var l,c=o.get(i,r),d=[];return d[a]=e,d[s]=c,isNaN(e)||isNaN(c)?l=[NaN,NaN]:(l=n.dataToPoint(d),l[a]+=t),l}function w(e,t,i){var n=t.slice(),o=t.slice();n[a]+=r,o[a]-=r,i?e.push(n,o):e.push(o,n)}function _(e,t){var i=t.slice(),n=t.slice();i[a]-=r,n[a]+=r,e.push(i,n)}}(t,e.boxOffsetList[i],e.boxWidthList[i])}))})}},47459:function(e){var t=["itemStyle","borderColor"];e.exports=function(e,i){var n=e.get("color");e.eachRawSeriesByType("boxplot",function(i){var o=n[i.seriesIndex%n.length],r=i.getData();r.setVisual({legendSymbol:"roundRect",color:i.get(t)||o}),e.isSeriesFiltered(i)||r.each(function(e){var i=r.getItemModel(e);r.setItemVisual(e,{color:i.get(t,!0)})})})}},62597:function(e,t,i){var n=i(47475);i(8016),i(518);var o=i(59291),r=i(19529),a=i(44642);n.registerPreprocessor(o),n.registerVisual(r),n.registerLayout(a)},8016:function(e,t,i){var n=i(66023),o=i(26626),r=i(90005).seriesModelMixin,a=o.extend({type:"series.candlestick",dependencies:["xAxis","yAxis","grid"],defaultValueDimensions:[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],dimensions:null,defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,layout:null,itemStyle:{color:"#c23531",color0:"#314656",borderWidth:1,borderColor:"#c23531",borderColor0:"#314656"},emphasis:{itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationUpdate:!1,animationEasing:"linear",animationDuration:300},getShadowDim:function(){return"open"},brushSelector:function(e,t,i){var n=t.getItemLayout(e);return n&&i.rect(n.brushRect)}});n.mixin(a,r,!0),e.exports=a},518:function(e,t,i){var n=i(66023),o=i(55756),r=i(76165),a=i(87205),s=["itemStyle"],l=["emphasis","itemStyle"],c=["color","color0","borderColor","borderColor0"],d=o.extend({type:"candlestick",render:function(e,t,i){this._updateDrawMode(e),this._isLargeDraw?this._renderLarge(e):this._renderNormal(e)},incrementalPrepareRender:function(e,t,i){this._clear(),this._updateDrawMode(e)},incrementalRender:function(e,t,i,n){this._isLargeDraw?this._incrementalRenderLarge(e,t):this._incrementalRenderNormal(e,t)},_updateDrawMode:function(e){var t=e.pipelineContext.large;(null==this._isLargeDraw||t^this._isLargeDraw)&&(this._isLargeDraw=t,this._clear())},_renderNormal:function(e){var t=e.getData(),i=this._data,n=this.group,o=t.getLayout("isSimpleBox");this._data||n.removeAll(),t.diff(i).add(function(i){if(t.hasValue(i)){var a,s=t.getItemLayout(i);a=h(s,i,!0),r.initProps(a,{shape:{points:s.ends}},e,i),p(a,t,i,o),n.add(a),t.setItemGraphicEl(i,a)}}).update(function(a,s){var l=i.getItemGraphicEl(s);if(!t.hasValue(a))return void n.remove(l);var c=t.getItemLayout(a);l?r.updateProps(l,{shape:{points:c.ends}},e,a):l=h(c,a),p(l,t,a,o),n.add(l),t.setItemGraphicEl(a,l)}).remove(function(e){var t=i.getItemGraphicEl(e);t&&n.remove(t)}).execute(),this._data=t},_renderLarge:function(e){this._clear(),g(e,this.group)},_incrementalRenderNormal:function(e,t){for(var i,n,o=t.getData(),r=o.getLayout("isSimpleBox");null!=(i=e.next());)p(n=h(o.getItemLayout(i),i),o,i,r),n.incremental=!0,this.group.add(n)},_incrementalRenderLarge:function(e,t){g(t,this.group,!0)},remove:function(e){this._clear()},_clear:function(){this.group.removeAll(),this._data=null},dispose:n.noop}),u=a.extend({type:"normalCandlestickBox",shape:{},buildPath:function(e,t){var i=t.points;this.__simpleBox?(e.moveTo(i[4][0],i[4][1]),e.lineTo(i[6][0],i[6][1])):(e.moveTo(i[0][0],i[0][1]),e.lineTo(i[1][0],i[1][1]),e.lineTo(i[2][0],i[2][1]),e.lineTo(i[3][0],i[3][1]),e.closePath(),e.moveTo(i[4][0],i[4][1]),e.lineTo(i[5][0],i[5][1]),e.moveTo(i[6][0],i[6][1]),e.lineTo(i[7][0],i[7][1]))}});function h(e,t,i){var o,r,a=e.ends;return new u({shape:{points:i?(o=a,r=e,n.map(o,function(e){return(e=e.slice())[1]=r.initBaseline,e})):a},z2:100})}function p(e,t,i,n){var o=t.getItemModel(i),a=o.getModel(s),d=t.getItemVisual(i,"color"),u=t.getItemVisual(i,"borderColor")||d,h=a.getItemStyle(c);e.useStyle(h),e.style.strokeNoScale=!0,e.style.fill=d,e.style.stroke=u,e.__simpleBox=n;var p=o.getModel(l).getItemStyle();r.setHoverStyle(e,p)}var f=a.extend({type:"largeCandlestickBox",shape:{},buildPath:function(e,t){for(var i=t.points,n=0;n<i.length;)if(this.__sign===i[n++]){var o=i[n++];e.moveTo(o,i[n++]),e.lineTo(o,i[n++])}else n+=3}});function g(e,t,i){var n=e.getData(),o=n.getLayout("largePoints"),r=new f({shape:{points:o},__sign:1});t.add(r);var a=new f({shape:{points:o},__sign:-1});t.add(a),m(1,r,e,n),m(-1,a,e,n),i&&(r.incremental=!0,a.incremental=!0)}function m(e,t,i,n){var o=e>0?"P":"N",r=n.getVisual("borderColor"+o)||n.getVisual("color"+o),a=i.getModel(s).getItemStyle(c);t.useStyle(a),t.style.fill=null,t.style.stroke=r}e.exports=d},44642:function(e,t,i){var n=i(76165).subPixelOptimize,o=i(85773),r=i(98763).parsePercent,a=i(66023).retrieve2,s="undefined"!=typeof Float32Array?Float32Array:Array;function l(e,t,i,n,o){var r;return i>n?-1:i<n?1:t>0?e.get(o,t-1)<=n?1:-1:1}e.exports={seriesType:"candlestick",plan:o(),reset:function(e){var t,i,o,c,d,u,h,p,f=e.coordinateSystem,g=e.getData(),m=(t=e,i=g,d="category"===(c=t.getBaseAxis()).type?c.getBandWidth():Math.abs((o=c.getExtent())[1]-o[0])/i.count(),u=r(a(t.get("barMaxWidth"),d),d),h=r(a(t.get("barMinWidth"),1),d),null!=(p=t.get("barWidth"))?r(p,d):Math.max(Math.min(d/2,u),h)),v=["x","y"],b=g.mapDimension("x"),y=g.mapDimension("y",!0),w=y[0],_=y[1],x=y[2],S=y[3];if(g.setLayout({candleWidth:m,isSimpleBox:m<=1.3}),null!=b&&!(y.length<4))return{progress:e.pipelineContext.large?function(e,t){for(var i,n,o=new s(5*e.count),r=0,a=[],c=[];null!=(n=e.next());){var d=t.get(b,n),u=t.get(w,n),h=t.get(_,n),p=t.get(x,n),g=t.get(S,n);if(isNaN(d)||isNaN(p)||isNaN(g)){o[r++]=NaN,r+=4;continue}o[r++]=l(t,n,u,h,_),a[0]=d,a[1]=p,i=f.dataToPoint(a,null,c),o[r++]=i?i[0]:NaN,o[r++]=i?i[1]:NaN,a[1]=g,i=f.dataToPoint(a,null,c),o[r++]=i?i[1]:NaN}t.setLayout("largePoints",o)}:function(e,t){for(var i;null!=(i=e.next());){var o=t.get(b,i),r=t.get(w,i),a=t.get(_,i),s=t.get(x,i),c=t.get(S,i),d=Math.min(r,a),u=Math.max(r,a),h=C(d,o),p=C(u,o),g=C(s,o),v=C(c,o),y=[];k(y,p,0),k(y,h,1),y.push(I(v),I(p),I(g),I(h)),t.setItemLayout(i,{sign:l(t,i,r,a,_),initBaseline:r>a?p[1]:h[1],ends:y,brushRect:function(e,t,i){var n=C(e,i),o=C(t,i);return n[0]-=m/2,o[0]-=m/2,{x:n[0],y:n[1],width:m,height:o[1]-n[1]}}(s,c,o)})}function C(e,t){var i=[];return i[0]=t,i[1]=e,isNaN(t)||isNaN(e)?[NaN,NaN]:f.dataToPoint(i)}function k(e,t,i){var o=t.slice(),r=t.slice();o[0]=n(o[0]+m/2,1,!1),r[0]=n(r[0]-m/2,1,!0),i?e.push(o,r):e.push(r,o)}function I(e){return e[0]=n(e[0],1),e}}}}}},19529:function(e,t,i){var n=i(85773),o=["itemStyle","borderColor"],r=["itemStyle","borderColor0"],a=["itemStyle","color"],s=["itemStyle","color0"];e.exports={seriesType:"candlestick",plan:n(),performRawSeries:!0,reset:function(e,t){var i=e.getData(),n=e.pipelineContext.large;if(i.setVisual({legendSymbol:"roundRect",colorP:l(1,e),colorN:l(-1,e),borderColorP:c(1,e),borderColorN:c(-1,e)}),!t.isSeriesFiltered(e))return!n&&{progress:function(e,t){for(var i;null!=(i=e.next());){var n=t.getItemModel(i),o=t.getItemLayout(i).sign;t.setItemVisual(i,{color:l(o,n),borderColor:c(o,n)})}}};function l(e,t){return t.get(e>0?a:s)}function c(e,t){return t.get(e>0?o:r)}}}},59291:function(e,t,i){var n=i(66023);e.exports=function(e){e&&n.isArray(e.series)&&n.each(e.series,function(e){n.isObject(e)&&"k"===e.type&&(e.type="candlestick")})}},61756:function(e,t,i){i(38603).__DEV__;var n=i(66023),o=i(76165),r=i(31750).getDefaultLabel,a=i(6551),s=i(42862).getLayoutOnAxis,l=i(13593),c=i(26626),d=i(55756),u=i(807),h=i(90777),p=i(34696),f=i(18398),g=i(61226),m=["itemStyle"],v=["emphasis","itemStyle"],b=["label"],y=["emphasis","label"],w={cartesian2d:u,geo:h,singleAxis:p,polar:f,calendar:g};function _(e,t,i,n,o){null==i[e]||o||(t[e]=i[e],i[e]=n[e])}function x(e,t,i,a){var l,c,d,u,h,p,f,g=e.get("renderItem"),_=e.coordinateSystem,x={};_&&(x=_.prepareCustoms?_.prepareCustoms():w[_.type](_));var S=n.defaults({getWidth:a.getWidth,getHeight:a.getHeight,getZr:a.getZr,getDevicePixelRatio:a.getDevicePixelRatio,value:function(e,i){return null==i&&(i=d),t.get(t.getDimension(e||0),i)},style:function(i,a){null==a&&(a=d),I(a);var s=u.getModel(m).getItemStyle();null!=f&&(s.fill=f);var l=t.getItemVisual(a,"opacity");return null!=l&&(s.opacity=l),o.setTextStyle(s,h,null,{autoColor:f,isRectText:!0}),s.text=h.getShallow("show")?n.retrieve2(e.getFormattedLabel(a,"normal"),r(t,a)):null,i&&n.extend(s,i),s},styleEmphasis:function(i,a){null==a&&(a=d),I(a);var s=u.getModel(v).getItemStyle();return o.setTextStyle(s,p,null,{isRectText:!0},!0),s.text=p.getShallow("show")?n.retrieve3(e.getFormattedLabel(a,"emphasis"),e.getFormattedLabel(a,"normal"),r(t,a)):null,i&&n.extend(s,i),s},visual:function(e,i){return null==i&&(i=d),t.getItemVisual(i,e)},barLayout:function(e){if(_.getBaseAxis){var t=_.getBaseAxis();return s(n.defaults({axis:t},e),a)}},currentSeriesIndices:function(){return i.getCurrentSeriesIndices()},font:function(e){return o.getFont(e,i)}},x.api||{}),C={context:{},seriesId:e.id,seriesName:e.name,seriesIndex:e.seriesIndex,coordSys:x.coordSys,dataInsideLength:t.count(),encode:(l=e.getData(),c={},n.each(l.dimensions,function(e,t){var i=l.getDimensionInfo(e);if(!i.isExtraCoord){var n=i.coordDim;(c[n]=c[n]||[])[i.coordDimIndex]=t}}),c)},k=!0;return function(e,i){return d=e,k=!0,g&&g(n.defaults({dataIndexInside:e,dataIndex:t.getRawIndex(e),actionType:i?i.type:null},C),S)};function I(e){null==e&&(e=d),k&&(h=(u=t.getItemModel(e)).getModel(b),p=u.getModel(y),f=t.getItemVisual(e,"color"),k=!1)}}function S(e,t,i,n,o,r){return(e=C(e,t,i,n,o,r,!0))&&r.setItemGraphicEl(t,e),e}function C(e,t,i,r,a,s,c){var d,u=!i,h=(i=i||{}).type,p=i.shape,f=i.style;if(e&&(u||null!=h&&h!==e.__customGraphicType||"path"===h&&(d=p)&&(d.hasOwnProperty("pathData")||d.hasOwnProperty("d"))&&T(p)!==e.__customPathData||"image"===h&&E(f,"image")&&f.image!==e.__customImagePath||"text"===h&&E(p,"text")&&f.text!==e.__customText)&&(a.remove(e),e=null),!u){var g=!e;return e||(e=function(e){var t,i=e.type;if("path"===i){var n=e.shape,r=null!=n.width&&null!=n.height?{x:n.x||0,y:n.y||0,width:n.width,height:n.height}:null,a=T(n);(t=o.makePath(a,null,r,n.layout||"center")).__customPathData=a}else"image"===i?(t=new o.Image({})).__customImagePath=e.style.image:"text"===i?(t=new o.Text({})).__customText=e.style.text:t=new o[i.charAt(0).toUpperCase()+i.slice(1)];return t.__customGraphicType=i,t.name=e.name,t}(i)),!function(e,t,i,r,a,s,l){var c={},d=i.style||{};if(i.shape&&(c.shape=n.clone(i.shape)),i.position&&(c.position=i.position.slice()),i.scale&&(c.scale=i.scale.slice()),i.origin&&(c.origin=i.origin.slice()),i.rotation&&(c.rotation=i.rotation),"image"===e.type&&i.style){var u=c.style={};n.each(["x","y","width","height"],function(t){_(t,u,d,e.style,s)})}if("text"===e.type&&i.style){var u=c.style={};n.each(["x","y"],function(t){_(t,u,d,e.style,s)}),!d.hasOwnProperty("textFill")&&d.fill&&(d.textFill=d.fill),!d.hasOwnProperty("textStroke")&&d.stroke&&(d.textStroke=d.stroke)}if("group"!==e.type&&(e.useStyle(d),s)){e.style.opacity=0;var h=d.opacity;null==h&&(h=1),o.initProps(e,{style:{opacity:h}},r,t)}s?e.attr(c):o.updateProps(e,c,r,t),i.hasOwnProperty("z2")&&e.attr("z2",i.z2||0),i.hasOwnProperty("silent")&&e.attr("silent",i.silent),i.hasOwnProperty("invisible")&&e.attr("invisible",i.invisible),i.hasOwnProperty("ignore")&&e.attr("ignore",i.ignore),i.hasOwnProperty("info")&&e.attr("info",i.info);var p=i.styleEmphasis,f=!1===p;e.__cusHasEmphStl&&null==p||!e.__cusHasEmphStl&&f||(o.setElementHoverStyle(e,p),e.__cusHasEmphStl=!f),l&&o.setAsHoverStyleTrigger(e,!f)}(e,t,i,r,0,g,c),"group"===h&&function(e,t,i,n,o){var r,a=i.children,s=a?a.length:0,c=i.$mergeChildren,d="byName"===c||i.diffChildrenByName,u=!1===c;if(s||d||u){if(d){return new l((r={oldChildren:e.children()||[],newChildren:a||[],dataIndex:t,animatableModel:n,group:e,data:o}).oldChildren,r.newChildren,k,k,r).add(I).update(I).remove(A).execute()}u&&e.removeAll();for(var h=0;h<s;h++)a[h]&&C(e.childAt(h),t,a[h],n,e,o)}}(e,t,i,r,s),a.add(e),e}}function k(e,t){var i=e&&e.name;return null!=i?i:"e\0\0"+t}function I(e,t){var i=this.context,n=null!=e?i.newChildren[e]:null;C(null!=t?i.oldChildren[t]:null,i.dataIndex,n,i.animatableModel,i.group,i.data)}function A(e){var t=this.context,i=t.oldChildren[e];i&&t.group.remove(i)}function T(e){return e&&(e.pathData||e.d)}function E(e,t){return e&&e.hasOwnProperty(t)}c.extend({type:"series.custom",dependencies:["grid","polar","geo","singleAxis","calendar"],defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,useTransform:!0},getInitialData:function(e,t){return a(this.getSource(),this)},getDataParams:function(e,t,i){var n=c.prototype.getDataParams.apply(this,arguments);return i&&(n.info=i.info),n}}),d.extend({type:"custom",_data:null,render:function(e,t,i,n){var o=this._data,r=e.getData(),a=this.group,s=x(e,r,t,i);r.diff(o).add(function(t){S(null,t,s(t,n),e,a,r)}).update(function(t,i){S(o.getItemGraphicEl(i),t,s(t,n),e,a,r)}).remove(function(e){var t=o.getItemGraphicEl(e);t&&a.remove(t)}).execute(),this._data=r},incrementalPrepareRender:function(e,t,i){this.group.removeAll(),this._data=null},incrementalRender:function(e,t,i,n,o){var r=t.getData(),a=x(t,r,i,n);function s(e){e.isGroup||(e.incremental=!0,e.useHoverLayer=!0)}for(var l=e.start;l<e.end;l++)S(null,l,a(l,o),t,this.group,r).traverse(s)},dispose:n.noop,filterForExposedEvent:function(e,t,i,n){var o=t.element;if(null==o||i.name===o)return!0;for(;(i=i.parent)&&i!==this.group;)if(i.name===o)return!0;return!1}})},36231:function(e,t,i){var n=i(47475);i(72389),i(40766);var o=i(41314),r=i(64342);n.registerVisual(o("effectScatter","circle")),n.registerLayout(r("effectScatter"))},72389:function(e,t,i){var n=i(6551);e.exports=i(26626).extend({type:"series.effectScatter",dependencies:["grid","polar"],getInitialData:function(e,t){return n(this.getSource(),this)},brushSelector:"point",defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",rippleEffect:{period:4,scale:2.5,brushType:"fill"},symbolSize:10}})},40766:function(e,t,i){var n=i(47475),o=i(67076),r=i(43156),a=i(36653),s=i(64342);e.exports=n.extendChartView({type:"effectScatter",init:function(){this._symbolDraw=new o(r)},render:function(e,t,i){var n=e.getData(),o=this._symbolDraw;o.updateData(n),this.group.add(o.group)},updateTransform:function(e,t,i){var n=e.getData();this.group.dirty();var o=s().reset(e);o.progress&&o.progress({start:0,end:n.count()},n),this._symbolDraw.updateLayout(n)},_updateGroupTransform:function(e){var t=e.coordinateSystem;t&&t.getRoamTransform&&(this.group.transform=a.clone(t.getRoamTransform()),this.group.decomposeTransform())},remove:function(e,t){this._symbolDraw&&this._symbolDraw.remove(t)},dispose:function(){}})},83031:function(e,t,i){var n=i(47475);i(7956),i(84558);var o=i(34907),r=i(19770),a=i(6817);n.registerVisual(o("funnel")),n.registerLayout(r),n.registerProcessor(a("funnel"))},7956:function(e,t,i){var n=i(47475),o=i(71469),r=i(70018).defaultEmphasis,a=n.extendSeriesModel({type:"series.funnel",init:function(e){a.superApply(this,"init",arguments),this.legendDataProvider=function(){return this.getRawData()},this._defaultLabelLine(e)},getInitialData:function(e,t){return o(this,["value"])},_defaultLabelLine:function(e){r(e,"labelLine",["show"]);var t=e.labelLine,i=e.emphasis.labelLine;t.show=t.show&&e.label.show,i.show=i.show&&e.emphasis.label.show},getDataParams:function(e){var t=this.getData(),i=a.superCall(this,"getDataParams",e),n=t.mapDimension("value"),o=t.getSum(n);return i.percent=o?+(t.get(n,e)/o*100).toFixed(2):0,i.$vars.push("percent"),i},defaultOption:{zlevel:0,z:2,legendHoverLink:!0,left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1,type:"solid"}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}}}});e.exports=a},84558:function(e,t,i){var n=i(76165),o=i(66023),r=i(55756);function a(e,t){n.Group.call(this);var i=new n.Polygon,o=new n.Polyline,r=new n.Text;function a(){o.ignore=o.hoverIgnore,r.ignore=r.hoverIgnore}function s(){o.ignore=o.normalIgnore,r.ignore=r.normalIgnore}this.add(i),this.add(o),this.add(r),this.updateData(e,t,!0),this.on("emphasis",a).on("normal",s).on("mouseover",a).on("mouseout",s)}var s=a.prototype,l=["itemStyle","opacity"];s.updateData=function(e,t,i){var r=this.childAt(0),a=e.hostModel,s=e.getItemModel(t),c=e.getItemLayout(t),d=e.getItemModel(t).get(l);d=null==d?1:d,r.useStyle({}),i?(r.setShape({points:c.points}),r.setStyle({opacity:0}),n.initProps(r,{style:{opacity:d}},a,t)):n.updateProps(r,{style:{opacity:d},shape:{points:c.points}},a,t);var u=s.getModel("itemStyle"),h=e.getItemVisual(t,"color");r.setStyle(o.defaults({lineJoin:"round",fill:h},u.getItemStyle(["opacity"]))),r.hoverStyle=u.getModel("emphasis").getItemStyle(),this._updateLabel(e,t),n.setHoverStyle(this)},s._updateLabel=function(e,t){var i=this.childAt(1),o=this.childAt(2),r=e.hostModel,a=e.getItemModel(t),s=e.getItemLayout(t).label,l=e.getItemVisual(t,"color");n.updateProps(i,{shape:{points:s.linePoints||s.linePoints}},r,t),n.updateProps(o,{style:{x:s.x,y:s.y}},r,t),o.attr({rotation:s.rotation,origin:[s.x,s.y],z2:10});var c=a.getModel("label"),d=a.getModel("emphasis.label"),u=a.getModel("labelLine"),h=a.getModel("emphasis.labelLine"),l=e.getItemVisual(t,"color");n.setLabelStyle(o.style,o.hoverStyle={},c,d,{labelFetcher:e.hostModel,labelDataIndex:t,defaultText:e.getName(t),autoColor:l,useInsideStyle:!!s.inside},{textAlign:s.textAlign,textVerticalAlign:s.verticalAlign}),o.ignore=o.normalIgnore=!c.get("show"),o.hoverIgnore=!d.get("show"),i.ignore=i.normalIgnore=!u.get("show"),i.hoverIgnore=!h.get("show"),i.setStyle({stroke:l}),i.setStyle(u.getModel("lineStyle").getLineStyle()),i.hoverStyle=h.getModel("lineStyle").getLineStyle()},o.inherits(a,n.Group),e.exports=r.extend({type:"funnel",render:function(e,t,i){var n=e.getData(),o=this._data,r=this.group;n.diff(o).add(function(e){var t=new a(n,e);n.setItemGraphicEl(e,t),r.add(t)}).update(function(e,t){var i=o.getItemGraphicEl(t);i.updateData(n,e),r.add(i),n.setItemGraphicEl(e,i)}).remove(function(e){var t=o.getItemGraphicEl(e);r.remove(t)}).execute(),this._data=n},remove:function(){this.group.removeAll(),this._data=null},dispose:function(){}})},19770:function(e,t,i){var n=i(68006),o=i(98763),r=o.parsePercent,a=o.linearMap;e.exports=function(e,t,i){e.eachSeriesByType("funnel",function(e){var i=e.getData(),o=i.mapDimension("value"),s=e.get("sort"),l=n.getLayoutRect(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),c=function(e,t){for(var i=e.mapDimension("value"),n=e.mapArray(i,function(e){return e}),o=[],r="ascending"===t,a=0,s=e.count();a<s;a++)o[a]=a;return"function"==typeof t?o.sort(t):"none"!==t&&o.sort(function(e,t){return r?n[e]-n[t]:n[t]-n[e]}),o}(i,s),d=[r(e.get("minSize"),l.width),r(e.get("maxSize"),l.width)],u=i.getDataExtent(o),h=e.get("min"),p=e.get("max");null==h&&(h=Math.min(u[0],0)),null==p&&(p=u[1]);var f=e.get("funnelAlign"),g=e.get("gap"),m=(l.height-g*(i.count()-1))/i.count(),v=l.y,b=function(e,t){var n,r=a(i.get(o,e)||0,[h,p],d,!0);switch(f){case"left":n=l.x;break;case"center":n=l.x+(l.width-r)/2;break;case"right":n=l.x+l.width-r}return[[n,t],[n+r,t]]};"ascending"===s&&(m=-m,g=-g,v+=l.height,c=c.reverse());for(var y=0;y<c.length;y++){var w=c[y],_=c[y+1],x=i.getItemModel(w).get("itemStyle.height");null==x?x=m:(x=r(x,l.height),"ascending"===s&&(x=-x));var S=b(w,v),C=b(_,v+x);v+=x+g,i.setItemLayout(w,{points:S.concat(C.slice().reverse())})}i.each(function(e){var t=i.getItemModel(e),n=t.getModel("label").get("position"),o=t.getModel("labelLine"),r=i.getItemLayout(e),a=r.points,s="inner"===n||"inside"===n||"center"===n;if(s)c=(a[0][0]+a[1][0]+a[2][0]+a[3][0])/4,d=(a[0][1]+a[1][1]+a[2][1]+a[3][1])/4,l="center",u=[[c,d],[c,d]];else{var l,c,d,u,h,p,f,g=o.get("length");"left"===n?(h=(a[3][0]+a[0][0])/2,p=(a[3][1]+a[0][1])/2,c=(f=h-g)-5,l="right"):(h=(a[1][0]+a[2][0])/2,p=(a[1][1]+a[2][1])/2,c=(f=h+g)+5,l="left");var m=p;u=[[h,p],[f,m]],d=m}r.label={linePoints:u,x:c,y:d,verticalAlign:"middle",textAlign:l,inside:s}})})}},52161:function(e,t,i){i(10026),i(93570)},10026:function(e,t,i){var n=i(71469),o=i(26626),r=i(66023);e.exports=o.extend({type:"series.gauge",getInitialData:function(e,t){var i=e.data||[];return r.isArray(i)||(i=[i]),e.data=i,n(this,["value"])},defaultOption:{zlevel:0,z:2,center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,lineStyle:{color:[[.2,"#91c7ae"],[.8,"#63869e"],[1,"#c23531"]],width:30}},splitLine:{show:!0,length:30,lineStyle:{color:"#eee",width:2,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:8,lineStyle:{color:"#eee",width:1,type:"solid"}},axisLabel:{show:!0,distance:5,color:"auto"},pointer:{show:!0,length:"80%",width:8},itemStyle:{color:"auto"},title:{show:!0,offsetCenter:[0,"-40%"],color:"#333",fontSize:15},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"auto",fontSize:30}}})},93570:function(e,t,i){var n=i(25917),o=i(76165),r=i(55756),a=i(98763),s=a.parsePercent,l=a.round,c=a.linearMap;function d(e,t){return t&&("string"==typeof t?e=t.replace("{value}",null!=e?e:""):"function"==typeof t&&(e=t(e))),e}var u=2*Math.PI;e.exports=r.extend({type:"gauge",render:function(e,t,i){this.group.removeAll();var n,o,r=e.get("axisLine.lineStyle.color"),a=(n=e.get("center"),o=Math.min(i.getWidth(),i.getHeight()),{cx:s(n[0],i.getWidth()),cy:s(n[1],i.getHeight()),r:s(e.get("radius"),o/2)});this._renderMain(e,t,i,r,a)},dispose:function(){},_renderMain:function(e,t,i,n,r){for(var a=this.group,s=e.getModel("axisLine").getModel("lineStyle"),l=e.get("clockwise"),c=-e.get("startAngle")/180*Math.PI,d=-e.get("endAngle")/180*Math.PI,h=(d-c)%u,p=c,f=s.get("width"),g=0;g<n.length;g++){var d=c+h*Math.min(Math.max(n[g][0],0),1),m=new o.Sector({shape:{startAngle:p,endAngle:d,cx:r.cx,cy:r.cy,clockwise:l,r0:r.r-f,r:r.r},silent:!0});m.setStyle({fill:n[g][1]}),m.setStyle(s.getLineStyle(["color","borderWidth","borderColor"])),a.add(m),p=d}var v=function(e){if(e<=0)return n[0][1];for(var t=0;t<n.length;t++)if(n[t][0]>=e&&(0===t?0:n[t-1][0])<e)return n[t][1];return n[t-1][1]};if(!l){var b=c;c=d,d=b}this._renderTicks(e,t,i,v,r,c,d,l),this._renderPointer(e,t,i,v,r,c,d,l),this._renderTitle(e,t,i,v,r),this._renderDetail(e,t,i,v,r)},_renderTicks:function(e,t,i,n,r,a,c,u){for(var h=this.group,p=r.cx,f=r.cy,g=r.r,m=+e.get("min"),v=+e.get("max"),b=e.getModel("splitLine"),y=e.getModel("axisTick"),w=e.getModel("axisLabel"),_=e.get("splitNumber"),x=y.get("splitNumber"),S=s(b.get("length"),g),C=s(y.get("length"),g),k=a,I=(c-a)/_,A=I/x,T=b.getModel("lineStyle").getLineStyle(),E=y.getModel("lineStyle").getLineStyle(),R=0;R<=_;R++){var D=Math.cos(k),O=Math.sin(k);if(b.get("show")){var M=new o.Line({shape:{x1:D*g+p,y1:O*g+f,x2:D*(g-S)+p,y2:O*(g-S)+f},style:T,silent:!0});"auto"===T.stroke&&M.setStyle({stroke:n(R/_)}),h.add(M)}if(w.get("show")){var N=d(l(R/_*(v-m)+m),w.get("formatter")),P=w.get("distance"),L=n(R/_);h.add(new o.Text({style:o.setTextStyle({},w,{text:N,x:D*(g-S-P)+p,y:O*(g-S-P)+f,textVerticalAlign:O<-.4?"top":O>.4?"bottom":"middle",textAlign:D<-.4?"left":D>.4?"right":"center"},{autoColor:L}),silent:!0}))}if(y.get("show")&&R!==_){for(var B=0;B<=x;B++){var D=Math.cos(k),O=Math.sin(k),F=new o.Line({shape:{x1:D*g+p,y1:O*g+f,x2:D*(g-C)+p,y2:O*(g-C)+f},silent:!0,style:E});"auto"===E.stroke&&F.setStyle({stroke:n((R+B/x)/_)}),h.add(F),k+=A}k-=A}else k+=I}},_renderPointer:function(e,t,i,r,a,l,d,u){var h=this.group,p=this._data;if(!e.get("pointer.show")){p&&p.eachItemGraphicEl(function(e){h.remove(e)});return}var f=[+e.get("min"),+e.get("max")],g=[l,d],m=e.getData(),v=m.mapDimension("value");m.diff(p).add(function(t){var i=new n({shape:{angle:l}});o.initProps(i,{shape:{angle:c(m.get(v,t),f,g,!0)}},e),h.add(i),m.setItemGraphicEl(t,i)}).update(function(t,i){var n=p.getItemGraphicEl(i);o.updateProps(n,{shape:{angle:c(m.get(v,t),f,g,!0)}},e),h.add(n),m.setItemGraphicEl(t,n)}).remove(function(e){var t=p.getItemGraphicEl(e);h.remove(t)}).execute(),m.eachItemGraphicEl(function(e,t){var i=m.getItemModel(t),n=i.getModel("pointer");e.setShape({x:a.cx,y:a.cy,width:s(n.get("width"),a.r),r:s(n.get("length"),a.r)}),e.useStyle(i.getModel("itemStyle").getItemStyle()),"auto"===e.style.fill&&e.setStyle("fill",r(c(m.get(v,t),f,[0,1],!0))),o.setHoverStyle(e,i.getModel("emphasis.itemStyle").getItemStyle())}),this._data=m},_renderTitle:function(e,t,i,n,r){var a=e.getData(),l=a.mapDimension("value"),d=e.getModel("title");if(d.get("show")){var u=d.get("offsetCenter"),h=r.cx+s(u[0],r.r),p=r.cy+s(u[1],r.r),f=+e.get("min"),g=+e.get("max"),m=n(c(e.getData().get(l,0),[f,g],[0,1],!0));this.group.add(new o.Text({silent:!0,style:o.setTextStyle({},d,{x:h,y:p,text:a.getName(0),textAlign:"center",textVerticalAlign:"middle"},{autoColor:m,forceRich:!0})}))}},_renderDetail:function(e,t,i,n,r){var a=e.getModel("detail"),l=+e.get("min"),u=+e.get("max");if(a.get("show")){var h=a.get("offsetCenter"),p=r.cx+s(h[0],r.r),f=r.cy+s(h[1],r.r),g=s(a.get("width"),r.r),m=s(a.get("height"),r.r),v=e.getData(),b=v.get(v.mapDimension("value"),0),y=n(c(b,[l,u],[0,1],!0));this.group.add(new o.Text({silent:!0,style:o.setTextStyle({},a,{x:p,y:f,text:d(b,a.get("formatter")),textWidth:isNaN(g)?null:g,textHeight:isNaN(m)?null:m,textAlign:"center",textVerticalAlign:"middle"},{autoColor:y,forceRich:!0})}))}}})},25917:function(e,t,i){e.exports=i(87205).extend({type:"echartsGaugePointer",shape:{angle:0,width:10,r:10,x:0,y:0},buildPath:function(e,t){var i=Math.cos,n=Math.sin,o=t.r,r=t.width,a=t.angle,s=t.x-i(a)*r*(r>=o/3?1:2),l=t.y-n(a)*r*(r>=o/3?1:2);a=t.angle-Math.PI/2,e.moveTo(s,l),e.lineTo(t.x+i(a)*r,t.y+n(a)*r),e.lineTo(t.x+i(t.angle)*o,t.y+n(t.angle)*o),e.lineTo(t.x-i(a)*r,t.y-n(a)*r),e.lineTo(s,l)}})},36793:function(e,t,i){var n=i(47475);i(59506),i(31540),i(34187);var o=i(49832),r=i(41314),a=i(77851),s=i(14031),l=i(77889),c=i(67472),d=i(23189),u=i(60714);n.registerProcessor(o),n.registerVisual(r("graph","circle",null)),n.registerVisual(a),n.registerVisual(s),n.registerLayout(l),n.registerLayout(c),n.registerLayout(d),n.registerCoordinateSystem("graphView",{create:u})},59506:function(e,t,i){var n=i(47475),o=i(90942),r=i(66023),a=i(70018).defaultEmphasis,s=i(27611),l=i(20438).encodeHTML,c=i(89923),d=n.extendSeriesModel({type:"series.graph",init:function(e){d.superApply(this,"init",arguments),this.legendDataProvider=function(){return this._categoriesData},this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},mergeOption:function(e){d.superApply(this,"mergeOption",arguments),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},mergeDefaultAndTheme:function(e){d.superApply(this,"mergeDefaultAndTheme",arguments),a(e,["edgeLabel"],["show"])},getInitialData:function(e,t){var i=e.edges||e.links||[],n=e.data||e.nodes||[],o=this;if(n&&i)return c(n,i,this,!0,function(e,i){e.wrapMethod("getItemModel",function(e){var t=o._categoriesModels[e.getShallow("category")];return t&&(t.parentModel=e.parentModel,e.parentModel=t),e});var n=o.getModel("edgeLabel"),r=new s({label:n.option},n.parentModel,t),a=o.getModel("emphasis.edgeLabel"),l=new s({emphasis:{label:a.option}},a.parentModel,t);function c(e){return(e=this.parsePath(e))&&"label"===e[0]?r:e&&"emphasis"===e[0]&&"label"===e[1]?l:this.parentModel}i.wrapMethod("getItemModel",function(e){return e.customizeGetParent(c),e})}).data},getGraph:function(){return this.getData().graph},getEdgeData:function(){return this.getGraph().edgeData},getCategoriesData:function(){return this._categoriesData},formatTooltip:function(e,t,i){if("edge"!==i)return d.superApply(this,"formatTooltip",arguments);var n=this.getData(),o=this.getDataParams(e,i),r=n.graph.getEdgeByIndex(e),a=n.getName(r.node1.dataIndex),s=n.getName(r.node2.dataIndex),c=[];return null!=a&&c.push(a),null!=s&&c.push(s),c=l(c.join(" > ")),o.value&&(c+=" : "+l(o.value)),c},_updateCategoriesData:function(){var e=r.map(this.option.categories||[],function(e){return null!=e.value?e:r.extend({value:0},e)}),t=new o(["value"],this);t.initData(e),this._categoriesData=t,this._categoriesModels=t.mapArray(function(e){return t.getItemModel(e,!0)})},setZoom:function(e){this.option.zoom=e},setCenter:function(e){this.option.center=e},isAnimationEnabled:function(){return d.superCall(this,"isAnimationEnabled")&&!("force"===this.get("layout")&&this.get("force.layoutAnimation"))},defaultOption:{zlevel:0,z:2,coordinateSystem:"view",legendHoverLink:!0,hoverAnimation:!0,layout:null,focusNodeAdjacency:!1,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle"},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,curveness:0,opacity:.5},emphasis:{label:{show:!0}}}});e.exports=d},31540:function(e,t,i){var n=i(47475),o=i(66023),r=i(67076),a=i(93275),s=i(84275),l=i(75398),c=i(56694).onIrrelevantElement,d=i(76165),u=i(61709),h="__focusNodeAdjacency",p="__unfocusNodeAdjacency",f=["itemStyle","opacity"],g=["lineStyle","opacity"];function m(e,t){return e.getVisual("opacity")||e.getModel().get(t)}function v(e,t,i){var n=e.getGraphicEl(),o=m(e,t);null!=i&&(null==o&&(o=1),o*=i),n.downplay&&n.downplay(),n.traverse(function(e){if("group"!==e.type){var t=e.lineLabelOriginalOpacity;(null==t||null!=i)&&(t=o),e.setStyle("opacity",t)}})}function b(e,t){var i=m(e,t),n=e.getGraphicEl();n.highlight&&n.highlight(),n.traverse(function(e){"group"!==e.type&&e.setStyle("opacity",i)})}e.exports=n.extendChartView({type:"graph",init:function(e,t){var i=new r,n=new a,o=this.group;this._controller=new s(t.getZr()),this._controllerHost={target:o},o.add(i.group),o.add(n.group),this._symbolDraw=i,this._lineDraw=n,this._firstRender=!0},render:function(e,t,i){var n=e.coordinateSystem;this._model=e,this._nodeScaleRatio=e.get("nodeScaleRatio");var o=this._symbolDraw,r=this._lineDraw,a=this.group;if("view"===n.type){var s={position:n.position,scale:n.scale};this._firstRender?a.attr(s):d.updateProps(a,s,e)}u(e.getGraph(),this._getNodeGlobalScale(e));var l=e.getData();o.updateData(l);var c=e.getEdgeData();r.updateData(c),this._updateNodeAndLinkScale(),this._updateController(e,t,i),clearTimeout(this._layoutTimeout);var f=e.forceLayout,g=e.get("force.layoutAnimation");f&&this._startForceLayoutIteration(f,g),l.eachItemGraphicEl(function(t,n){var o=l.getItemModel(n);t.off("drag").off("dragend");var r=o.get("draggable");r&&t.on("drag",function(){f&&(f.warmUp(),this._layouting||this._startForceLayoutIteration(f,g),f.setFixed(n),l.setItemLayout(n,t.position))},this).on("dragend",function(){f&&f.setUnfixed(n)},this),t.setDraggable(r&&f),t[h]&&t.off("mouseover",t[h]),t[p]&&t.off("mouseout",t[p]),o.get("focusNodeAdjacency")&&(t.on("mouseover",t[h]=function(){i.dispatchAction({type:"focusNodeAdjacency",seriesId:e.id,dataIndex:t.dataIndex})}),t.on("mouseout",t[p]=function(){i.dispatchAction({type:"unfocusNodeAdjacency",seriesId:e.id})}))},this),l.graph.eachEdge(function(t){var n=t.getGraphicEl();n[h]&&n.off("mouseover",n[h]),n[p]&&n.off("mouseout",n[p]),t.getModel().get("focusNodeAdjacency")&&(n.on("mouseover",n[h]=function(){i.dispatchAction({type:"focusNodeAdjacency",seriesId:e.id,edgeDataIndex:t.dataIndex})}),n.on("mouseout",n[p]=function(){i.dispatchAction({type:"unfocusNodeAdjacency",seriesId:e.id})}))});var m="circular"===e.get("layout")&&e.get("circular.rotateLabel"),v=l.getLayout("cx"),b=l.getLayout("cy");l.eachItemGraphicEl(function(e,t){var i=e.getSymbolPath();if(m){var n=l.getItemLayout(t),o=Math.atan2(n[1]-b,n[0]-v);o<0&&(o=2*Math.PI+o);var r=n[0]<v;r&&(o-=Math.PI);var a=r?"left":"right";i.setStyle({textRotation:-o,textPosition:a,textOrigin:"center"}),i.hoverStyle&&(i.hoverStyle.textPosition=a)}else i.setStyle({textRotation:0})}),this._firstRender=!1},dispose:function(){this._controller&&this._controller.dispose(),this._controllerHost={}},focusNodeAdjacency:function(e,t,i,n){var r=this._model.getData().graph,a=n.dataIndex,s=n.edgeDataIndex,l=r.getNodeByIndex(a),c=r.getEdgeByIndex(s);(l||c)&&(r.eachNode(function(e){v(e,f,.1)}),r.eachEdge(function(e){v(e,g,.1)}),l&&(b(l,f),o.each(l.edges,function(e){e.dataIndex<0||(b(e,g),b(e.node1,f),b(e.node2,f))})),c&&(b(c,g),b(c.node1,f),b(c.node2,f)))},unfocusNodeAdjacency:function(e,t,i,n){var o=this._model.getData().graph;o.eachNode(function(e){v(e,f)}),o.eachEdge(function(e){v(e,g)})},_startForceLayoutIteration:function(e,t){var i=this;!function n(){e.step(function(e){i.updateLayout(i._model),(i._layouting=!e)&&(t?i._layoutTimeout=setTimeout(n,16):n())})}()},_updateController:function(e,t,i){var n=this._controller,o=this._controllerHost,r=this.group;if(n.setPointerChecker(function(t,n,o){var a=r.getBoundingRect();return a.applyTransform(r.transform),a.contain(n,o)&&!c(t,i,e)}),"view"!==e.coordinateSystem.type)return void n.disable();n.enable(e.get("roam")),o.zoomLimit=e.get("scaleLimit"),o.zoom=e.coordinateSystem.getZoom(),n.off("pan").off("zoom").on("pan",function(t){l.updateViewOnPan(o,t.dx,t.dy),i.dispatchAction({seriesId:e.id,type:"graphRoam",dx:t.dx,dy:t.dy})}).on("zoom",function(t){l.updateViewOnZoom(o,t.scale,t.originX,t.originY),i.dispatchAction({seriesId:e.id,type:"graphRoam",zoom:t.scale,originX:t.originX,originY:t.originY}),this._updateNodeAndLinkScale(),u(e.getGraph(),this._getNodeGlobalScale(e)),this._lineDraw.updateLayout()},this)},_updateNodeAndLinkScale:function(){var e=this._model,t=e.getData(),i=this._getNodeGlobalScale(e),n=[i,i];t.eachItemGraphicEl(function(e,t){e.attr("scale",n)})},_getNodeGlobalScale:function(e){var t=e.coordinateSystem;if("view"!==t.type)return 1;var i=this._nodeScaleRatio,n=t.scale,o=n&&n[0]||1;return((t.getZoom()-1)*i+1)/o},updateLayout:function(e){u(e.getGraph(),this._getNodeGlobalScale(e)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},remove:function(e,t){this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()}})},61709:function(e,t,i){var n=i(30783),o=i(3265),r=[],a=[],s=[],l=n.quadraticAt,c=o.distSquare,d=Math.abs;function u(e,t,i){for(var n,o=e[0],u=e[1],h=e[2],p=1/0,f=i*i,g=.1,m=.1;m<=.9;m+=.1){r[0]=l(o[0],u[0],h[0],m),r[1]=l(o[1],u[1],h[1],m);var v=d(c(r,t)-f);v<p&&(p=v,n=m)}for(var b=0;b<32;b++){var y=n+g;a[0]=l(o[0],u[0],h[0],n),a[1]=l(o[1],u[1],h[1],n),s[0]=l(o[0],u[0],h[0],y),s[1]=l(o[1],u[1],h[1],y);var v=c(a,t)-f;if(.01>d(v))break;var w=c(s,t)-f;g/=2,v<0?w>=0?n+=g:n-=g:w>=0?n-=g:n+=g}return n}e.exports=function(e,t){var i=[],r=n.quadraticSubdivide,a=[[],[],[]],s=[[],[]],l=[];function c(e){var t=e.getVisual("symbolSize");return t instanceof Array&&(t=(t[0]+t[1])/2),t}t/=2,e.eachEdge(function(e,n){var d=e.getLayout(),h=e.getVisual("fromSymbol"),p=e.getVisual("toSymbol");!d.__original&&(d.__original=[o.clone(d[0]),o.clone(d[1])],d[2]&&d.__original.push(o.clone(d[2])));var f=d.__original;if(null!=d[2]){if(o.copy(a[0],f[0]),o.copy(a[1],f[2]),o.copy(a[2],f[1]),h&&"none"!==h){var g=c(e.node1),m=u(a,f[0],g*t);r(a[0][0],a[1][0],a[2][0],m,i),a[0][0]=i[3],a[1][0]=i[4],r(a[0][1],a[1][1],a[2][1],m,i),a[0][1]=i[3],a[1][1]=i[4]}if(p&&"none"!==p){var g=c(e.node2),m=u(a,f[1],g*t);r(a[0][0],a[1][0],a[2][0],m,i),a[1][0]=i[1],a[2][0]=i[2],r(a[0][1],a[1][1],a[2][1],m,i),a[1][1]=i[1],a[2][1]=i[2]}o.copy(d[0],a[0]),o.copy(d[1],a[2]),o.copy(d[2],a[1])}else{if(o.copy(s[0],f[0]),o.copy(s[1],f[1]),o.sub(l,s[1],s[0]),o.normalize(l,l),h&&"none"!==h){var g=c(e.node1);o.scaleAndAdd(s[0],s[0],l,g*t)}if(p&&"none"!==p){var g=c(e.node2);o.scaleAndAdd(s[1],s[1],l,-g*t)}o.copy(d[0],s[0]),o.copy(d[1],s[1])}})}},49832:function(e){e.exports=function(e){var t=e.findComponents({mainType:"legend"});t&&t.length&&e.eachSeriesByType("graph",function(e){var i=e.getCategoriesData(),n=e.getGraph().data,o=i.mapArray(i.getName);n.filterSelf(function(e){var i=n.getItemModel(e).getShallow("category");if(null!=i){"number"==typeof i&&(i=o[i]);for(var r=0;r<t.length;r++)if(!t[r].isSelected(i))return!1}return!0})},this)}},77851:function(e){e.exports=function(e){var t={};e.eachSeriesByType("graph",function(e){var i=e.getCategoriesData(),n=e.getData(),o={};i.each(function(n){var r=i.getName(n);o["ec-"+r]=n;var a=i.getItemModel(n).get("itemStyle.color")||e.getColorFromPalette(r,t);i.setItemVisual(n,"color",a)}),i.count()&&n.each(function(e){var t=n.getItemModel(e).getShallow("category");null!=t&&("string"==typeof t&&(t=o["ec-"+t]),n.getItemVisual(e,"color",!0)||n.setItemVisual(e,"color",i.getItemVisual(t,"color")))})})}},67472:function(e,t,i){var n=i(22260).circularLayout;e.exports=function(e){e.eachSeriesByType("graph",function(e){"circular"===e.get("layout")&&n(e)})}},22260:function(e,t,i){var n=i(3265);t.circularLayout=function(e){var t=e.coordinateSystem;if(!t||"view"===t.type){var i=t.getBoundingRect(),o=e.getData(),r=o.graph,a=0,s=o.getSum("value"),l=2*Math.PI/(s||o.count()),c=i.width/2+i.x,d=i.height/2+i.y,u=Math.min(i.width,i.height)/2;r.eachNode(function(e){var t=e.getValue("value");a+=l*(s?t:1)/2,e.setLayout([u*Math.cos(a)+c,u*Math.sin(a)+d]),a+=l*(s?t:1)/2}),o.setLayout({cx:c,cy:d}),r.eachEdge(function(e){var t,i=e.getModel().get("lineStyle.curveness")||0,o=n.clone(e.node1.getLayout()),r=n.clone(e.node2.getLayout()),a=(o[0]+r[0])/2,s=(o[1]+r[1])/2;+i&&(i*=3,t=[c*i+a*(1-i),d*i+s*(1-i)]),e.setLayout([o,r,t])})}}},60714:function(e,t,i){var n=i(3115),o=i(68006).getLayoutRect,r=i(91273);e.exports=function(e,t){var i=[];return e.eachSeriesByType("graph",function(e){var a=e.get("coordinateSystem");if(!a||"view"===a){var s,l=e.getData(),c=l.mapArray(function(e){var t=l.getItemModel(e);return[+t.get("x"),+t.get("y")]}),d=[],u=[];r.fromPoints(c,d,u),u[0]-d[0]==0&&(u[0]+=1,d[0]-=1),u[1]-d[1]==0&&(u[1]+=1,d[1]-=1);var h=(u[0]-d[0])/(u[1]-d[1]),p=((s=e.getBoxLayoutParams()).aspect=h,o(s,{width:t.getWidth(),height:t.getHeight()}));isNaN(h)&&(d=[p.x,p.y],u=[p.x+p.width,p.y+p.height]);var f=u[0]-d[0],g=u[1]-d[1],m=p.width,v=p.height,b=e.coordinateSystem=new n;b.zoomLimit=e.get("scaleLimit"),b.setBoundingRect(d[0],d[1],f,g),b.setViewRect(p.x,p.y,m,v),b.setCenter(e.get("center")),b.setZoom(e.get("zoom")),i.push(b)}}),i}},14031:function(e){function t(e){return e instanceof Array||(e=[e,e]),e}e.exports=function(e){e.eachSeriesByType("graph",function(e){var i=e.getGraph(),n=e.getEdgeData(),o=t(e.get("edgeSymbol")),r=t(e.get("edgeSymbolSize")),a="lineStyle.color".split("."),s="lineStyle.opacity".split(".");n.setVisual("fromSymbol",o&&o[0]),n.setVisual("toSymbol",o&&o[1]),n.setVisual("fromSymbolSize",r&&r[0]),n.setVisual("toSymbolSize",r&&r[1]),n.setVisual("color",e.get(a)),n.setVisual("opacity",e.get(s)),n.each(function(e){var o=n.getItemModel(e),r=i.getEdgeByIndex(e),l=t(o.getShallow("symbol",!0)),c=t(o.getShallow("symbolSize",!0)),d=o.get(a),u=o.get(s);switch(d){case"source":d=r.node1.getVisual("color");break;case"target":d=r.node2.getVisual("color")}l[0]&&r.setVisual("fromSymbol",l[0]),l[1]&&r.setVisual("toSymbol",l[1]),c[0]&&r.setVisual("fromSymbolSize",c[0]),c[1]&&r.setVisual("toSymbolSize",c[1]),r.setVisual("color",d),r.setVisual("opacity",u)})})}},88797:function(e,t,i){var n=i(3265),o=n.scaleAndAdd;t.forceLayout=function(e,t,i){for(var r=i.rect,a=r.width,s=r.height,l=[r.x+a/2,r.y+s/2],c=null==i.gravity?.1:i.gravity,d=0;d<e.length;d++){var u=e[d];u.p||(u.p=n.create(a*(Math.random()-.5)+l[0],s*(Math.random()-.5)+l[1])),u.pp=n.clone(u.p),u.edges=null}var h=.6;return{warmUp:function(){h=.5},setFixed:function(t){e[t].fixed=!0},setUnfixed:function(t){e[t].fixed=!1},step:function(i){for(var r=[],a=e.length,s=0;s<t.length;s++){var d=t[s],u=d.n1,p=d.n2;n.sub(r,p.p,u.p);var f=n.len(r)-d.d,g=p.w/(u.w+p.w);isNaN(g)&&(g=0),n.normalize(r,r),u.fixed||o(u.p,u.p,r,g*f*h),p.fixed||o(p.p,p.p,r,-(1-g)*f*h)}for(var s=0;s<a;s++){var m=e[s];m.fixed||(n.sub(r,l,m.p),o(m.p,m.p,r,c*h))}for(var s=0;s<a;s++)for(var u=e[s],v=s+1;v<a;v++){var p=e[v];n.sub(r,p.p,u.p);var f=n.len(r);0===f&&(n.set(r,Math.random()-.5,Math.random()-.5),f=1);var b=(u.rep+p.rep)/f/f;u.fixed||o(u.pp,u.pp,r,b),p.fixed||o(p.pp,p.pp,r,-b)}for(var y=[],s=0;s<a;s++){var m=e[s];m.fixed||(n.sub(y,m.p,m.pp),o(m.p,m.p,y,h),n.copy(m.pp,m.p))}h*=.992,i&&i(e,t,h<.01)}}}},23189:function(e,t,i){var n=i(88797).forceLayout,o=i(79486).simpleLayout,r=i(22260).circularLayout,a=i(98763).linearMap,s=i(3265),l=i(66023);e.exports=function(e){e.eachSeriesByType("graph",function(e){var t=e.coordinateSystem;if(!t||"view"===t.type)if("force"===e.get("layout")){var i=e.preservedPoints||{},c=e.getGraph(),d=c.data,u=c.edgeData,h=e.getModel("force"),p=h.get("initLayout");e.preservedPoints?d.each(function(e){var t=d.getId(e);d.setItemLayout(e,i[t]||[NaN,NaN])}):p&&"none"!==p?"circular"===p&&r(e):o(e);var f=d.getDataExtent("value"),g=u.getDataExtent("value"),m=h.get("repulsion"),v=h.get("edgeLength");l.isArray(m)||(m=[m,m]),l.isArray(v)||(v=[v,v]),v=[v[1],v[0]];var b=d.mapArray("value",function(e,t){var i=d.getItemLayout(t),n=a(e,f,m);return isNaN(n)&&(n=(m[0]+m[1])/2),{w:n,rep:n,fixed:d.getItemModel(t).get("fixed"),p:!i||isNaN(i[0])||isNaN(i[1])?null:i}}),y=u.mapArray("value",function(e,t){var i=c.getEdgeByIndex(t),n=a(e,g,v);return isNaN(n)&&(n=(v[0]+v[1])/2),{n1:b[i.node1.dataIndex],n2:b[i.node2.dataIndex],d:n,curveness:i.getModel().get("lineStyle.curveness")||0}}),t=e.coordinateSystem,w=n(b,y,{rect:t.getBoundingRect(),gravity:h.get("gravity")}),_=w.step;w.step=function(e){for(var t=0,n=b.length;t<n;t++)b[t].fixed&&s.copy(b[t].p,c.getNodeByIndex(t).getLayout());_(function(t,n,o){for(var r=0,a=t.length;r<a;r++)t[r].fixed||c.getNodeByIndex(r).setLayout(t[r].p),i[d.getId(r)]=t[r].p;for(var r=0,a=n.length;r<a;r++){var l=n[r],u=c.getEdgeByIndex(r),h=l.n1.p,p=l.n2.p,f=u.getLayout();(f=f?f.slice():[])[0]=f[0]||[],f[1]=f[1]||[],s.copy(f[0],h),s.copy(f[1],p),+l.curveness&&(f[2]=[(h[0]+p[0])/2-(h[1]-p[1])*l.curveness,(h[1]+p[1])/2-(p[0]-h[0])*l.curveness]),u.setLayout(f)}e&&e(o)})},e.forceLayout=w,e.preservedPoints=i,w.step()}else e.forceLayout=null})}},34187:function(e,t,i){var n=i(47475),o=i(31616).updateCenterAndZoom;i(81518),n.registerAction({type:"graphRoam",event:"graphRoam",update:"none"},function(e,t){t.eachComponent({mainType:"series",query:e},function(t){var i=o(t.coordinateSystem,e);t.setCenter&&t.setCenter(i.center),t.setZoom&&t.setZoom(i.zoom)})})},77889:function(e,t,i){var n=i(66023).each,o=i(79486),r=o.simpleLayout,a=o.simpleLayoutEdge;e.exports=function(e,t){e.eachSeriesByType("graph",function(e){var t=e.get("layout"),i=e.coordinateSystem;if(i&&"view"!==i.type){var o=e.getData(),s=[];n(i.dimensions,function(e){s=s.concat(o.mapDimension(e,!0))});for(var l=0;l<o.count();l++){for(var c=[],d=!1,u=0;u<s.length;u++){var h=o.get(s[u],l);isNaN(h)||(d=!0),c.push(h)}d?o.setItemLayout(l,i.dataToPoint(c)):o.setItemLayout(l,[NaN,NaN])}a(o.graph)}else t&&"none"!==t||r(e)})}},79486:function(e,t,i){var n=i(3265);function o(e){e.eachEdge(function(e){var t=e.getModel().get("lineStyle.curveness")||0,i=n.clone(e.node1.getLayout()),o=n.clone(e.node2.getLayout()),r=[i,o];+t&&r.push([(i[0]+o[0])/2-(i[1]-o[1])*t,(i[1]+o[1])/2-(o[0]-i[0])*t]),e.setLayout(r)})}t.simpleLayout=function(e){var t=e.coordinateSystem;if(!t||"view"===t.type){var i=e.getGraph();i.eachNode(function(e){var t=e.getModel();e.setLayout([+t.get("x"),+t.get("y")])}),o(i)}},t.simpleLayoutEdge=o},58199:function(e,t,i){i(25889),i(66198)},88701:function(e,t,i){var n=i(66023);function o(){var e=n.createCanvas();this.canvas=e,this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={}}o.prototype={update:function(e,t,i,n,o,r){var a=this._getBrush(),s=this._getGradient(e,o,"inRange"),l=this._getGradient(e,o,"outOfRange"),c=this.pointSize+this.blurSize,d=this.canvas,u=d.getContext("2d"),h=e.length;d.width=t,d.height=i;for(var p=0;p<h;++p){var f=e[p],g=f[0],m=f[1],v=n(f[2]);u.globalAlpha=v,u.drawImage(a,g-c,m-c)}if(!d.width||!d.height)return d;for(var b=u.getImageData(0,0,d.width,d.height),y=b.data,w=0,_=y.length,x=this.minOpacity,S=this.maxOpacity-x;w<_;){var v=y[w+3]/256,C=4*Math.floor(255*v);if(v>0){var k=r(v)?s:l;v>0&&(v=v*S+x),y[w++]=k[C],y[w++]=k[C+1],y[w++]=k[C+2],y[w++]=k[C+3]*v*256}else w+=4}return u.putImageData(b,0,0),d},_getBrush:function(){var e=this._brushCanvas||(this._brushCanvas=n.createCanvas()),t=this.pointSize+this.blurSize,i=2*t;e.width=i,e.height=i;var o=e.getContext("2d");return o.clearRect(0,0,i,i),o.shadowOffsetX=i,o.shadowBlur=this.blurSize,o.shadowColor="#000",o.beginPath(),o.arc(-t,t,this.pointSize,0,2*Math.PI,!0),o.closePath(),o.fill(),e},_getGradient:function(e,t,i){for(var n=this._gradientPixels,o=n[i]||(n[i]=new Uint8ClampedArray(1024)),r=[0,0,0,0],a=0,s=0;s<256;s++)t[i](s/255,!0,r),o[a++]=r[0],o[a++]=r[1],o[a++]=r[2],o[a++]=r[3];return o}},e.exports=o},25889:function(e,t,i){var n=i(26626),o=i(6551),r=i(33776);e.exports=n.extend({type:"series.heatmap",getInitialData:function(e,t){return o(this.getSource(),this,{generateCoord:"value"})},preventIncremental:function(){var e=r.get(this.get("coordinateSystem"));if(e&&e.dimensions)return"lng"===e.dimensions[0]&&"lat"===e.dimensions[1]},defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0}})},66198:function(e,t,i){i(38603).__DEV__;var n=i(47475),o=i(76165),r=i(88701),a=i(66023);e.exports=n.extendChartView({type:"heatmap",render:function(e,t,i){t.eachComponent("visualMap",function(t){t.eachTargetSeries(function(i){i===e&&(o=t)})}),this.group.removeAll(),this._incrementalDisplayable=null;var n,o,r=e.coordinateSystem;"cartesian2d"===r.type||"calendar"===r.type?this._renderOnCartesianAndCalendar(e,i,0,e.getData().count()):"lng"===(n=r.dimensions)[0]&&"lat"===n[1]&&this._renderOnGeo(r,e,o,i)},incrementalPrepareRender:function(e,t,i){this.group.removeAll()},incrementalRender:function(e,t,i,n){t.coordinateSystem&&this._renderOnCartesianAndCalendar(t,n,e.start,e.end,!0)},_renderOnCartesianAndCalendar:function(e,t,i,n,r){var s=e.coordinateSystem;if("cartesian2d"===s.type){var l=s.getAxis("x"),c=s.getAxis("y");S=l.getBandWidth(),C=c.getBandWidth()}for(var d=this.group,u=e.getData(),h="itemStyle",p="emphasis.itemStyle",f="label",g="emphasis.label",m=e.getModel(h).getItemStyle(["color"]),v=e.getModel(p).getItemStyle(),b=e.getModel(f),y=e.getModel(g),w=s.type,_="cartesian2d"===w?[u.mapDimension("x"),u.mapDimension("y"),u.mapDimension("value")]:[u.mapDimension("time"),u.mapDimension("value")],x=i;x<n;x++){if("cartesian2d"===w){if(isNaN(u.get(_[2],x)))continue;var S,C,k,I=s.dataToPoint([u.get(_[0],x),u.get(_[1],x)]);k=new o.Rect({shape:{x:I[0]-S/2,y:I[1]-C/2,width:S,height:C},style:{fill:u.getItemVisual(x,"color"),opacity:u.getItemVisual(x,"opacity")}})}else{if(isNaN(u.get(_[1],x)))continue;k=new o.Rect({z2:1,shape:s.dataToRect([u.get(_[0],x)]).contentShape,style:{fill:u.getItemVisual(x,"color"),opacity:u.getItemVisual(x,"opacity")}})}var A=u.getItemModel(x);u.hasItemOption&&(m=A.getModel(h).getItemStyle(["color"]),v=A.getModel(p).getItemStyle(),b=A.getModel(f),y=A.getModel(g));var T=e.getRawValue(x),E="-";T&&null!=T[2]&&(E=T[2]),o.setLabelStyle(m,v,b,y,{labelFetcher:e,labelDataIndex:x,defaultText:E,isRectText:!0}),k.setStyle(m),o.setHoverStyle(k,u.hasItemOption?v:a.extend({},v)),k.incremental=r,r&&(k.useHoverLayer=!0),d.add(k),u.setItemGraphicEl(x,k)}},_renderOnGeo:function(e,t,i,n){var s,l,c,d,u,h,p,f=i.targetVisuals.inRange,g=i.targetVisuals.outOfRange,m=t.getData(),v=this._hmLayer||this._hmLayer||new r;v.blurSize=t.get("blurSize"),v.pointSize=t.get("pointSize"),v.minOpacity=t.get("minOpacity"),v.maxOpacity=t.get("maxOpacity");var b=e.getViewRect().clone(),y=e.getRoamTransform();b.applyTransform(y);var w=Math.max(b.x,0),_=Math.max(b.y,0),x=Math.min(b.width+b.x,n.getWidth()),S=Math.min(b.height+b.y,n.getHeight()),C=x-w,k=S-_,I=[m.mapDimension("lng"),m.mapDimension("lat"),m.mapDimension("value")],A=m.mapArray(I,function(t,i,n){var o=e.dataToPoint([t,i]);return o[0]-=w,o[1]-=_,o.push(n),o}),T=i.getExtent(),E="visualMap.continuous"===i.type?(s=i.option.range,l=T[1]-T[0],s=[(s[0]-T[0])/l,(s[1]-T[0])/l],function(e){return e>=s[0]&&e<=s[1]}):(c=i.getPieceList(),d=i.option.selected,u=T[1]-T[0],h=(c=a.map(c,function(e){return{interval:[(e.interval[0]-T[0])/u,(e.interval[1]-T[0])/u]}})).length,p=0,function(e){for(var t=p;t<h;t++){var i=c[t].interval;if(i[0]<=e&&e<=i[1]){p=t;break}}if(t===h)for(var t=p-1;t>=0;t--){var i=c[t].interval;if(i[0]<=e&&e<=i[1]){p=t;break}}return t>=0&&t<h&&d[t]});v.update(A,C,k,f.color.getNormalizer(),{inRange:f.color.getColorMapper(),outOfRange:g.color.getColorMapper()},E);var R=new o.Image({style:{width:C,height:k,x:w,y:_,image:v.canvas},silent:!0});this.group.add(R)},dispose:function(){}})},36397:function(e,t,i){var n=i(76165),o=i(7574),r=i(66023),a=i(87557).createSymbol,s=i(3265),l=i(30783);function c(e,t,i){n.Group.call(this),this.add(this.createLine(e,t,i)),this._updateEffectSymbol(e,t)}var d=c.prototype;d.createLine=function(e,t,i){return new o(e,t,i)},d._updateEffectSymbol=function(e,t){var i=e.getItemModel(t).getModel("effect"),n=i.get("symbolSize"),o=i.get("symbol");r.isArray(n)||(n=[n,n]);var s=i.get("color")||e.getItemVisual(t,"color"),l=this.childAt(1);this._symbolType!==o&&(this.remove(l),(l=a(o,-.5,-.5,1,1,s)).z2=100,l.culling=!0,this.add(l)),l&&(l.setStyle("shadowColor",s),l.setStyle(i.getItemStyle(["color"])),l.attr("scale",n),l.setColor(s),l.attr("scale",n),this._symbolType=o,this._updateEffectAnimation(e,i,t))},d._updateEffectAnimation=function(e,t,i){var n=this.childAt(1);if(n){var o=this,a=e.getItemLayout(i),s=1e3*t.get("period"),l=t.get("loop"),c=t.get("constantSpeed"),d=r.retrieve(t.get("delay"),function(t){return t/e.count()*s/3}),u="function"==typeof d;if(n.ignore=!0,this.updateAnimationPoints(n,a),c>0&&(s=this.getLineLength(n)/c*1e3),s!==this._period||l!==this._loop){n.stopAnimation();var h=d;u&&(h=d(i)),n.__t>0&&(h=-s*n.__t),n.__t=0;var p=n.animate("",l).when(s,{__t:1}).delay(h).during(function(){o.updateSymbolPosition(n)});l||p.done(function(){o.remove(n)}),p.start()}this._period=s,this._loop=l}},d.getLineLength=function(e){return s.dist(e.__p1,e.__cp1)+s.dist(e.__cp1,e.__p2)},d.updateAnimationPoints=function(e,t){e.__p1=t[0],e.__p2=t[1],e.__cp1=t[2]||[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]},d.updateData=function(e,t,i){this.childAt(0).updateData(e,t,i),this._updateEffectSymbol(e,t)},d.updateSymbolPosition=function(e){var t=e.__p1,i=e.__p2,n=e.__cp1,o=e.__t,r=e.position,a=l.quadraticAt,s=l.quadraticDerivativeAt;r[0]=a(t[0],n[0],i[0],o),r[1]=a(t[1],n[1],i[1],o);var c=s(t[0],n[0],i[0],o);e.rotation=-Math.atan2(s(t[1],n[1],i[1],o),c)-Math.PI/2,e.ignore=!1},d.updateLayout=function(e,t){this.childAt(0).updateLayout(e,t);var i=e.getItemModel(t).getModel("effect");this._updateEffectAnimation(e,i,t)},r.inherits(c,n.Group),e.exports=c},94479:function(e,t,i){var n=i(14385),o=i(66023),r=i(36397),a=i(3265);function s(e,t,i){r.call(this,e,t,i),this._lastFrame=0,this._lastFramePercent=0}var l=s.prototype;l.createLine=function(e,t,i){return new n(e,t,i)},l.updateAnimationPoints=function(e,t){this._points=t;for(var i=[0],n=0,o=1;o<t.length;o++){var r=t[o-1],s=t[o];n+=a.dist(r,s),i.push(n)}if(0!==n){for(var o=0;o<i.length;o++)i[o]/=n;this._offsets=i,this._length=n}},l.getLineLength=function(e){return this._length},l.updateSymbolPosition=function(e){var t,i=e.__t,n=this._points,o=this._offsets,r=n.length;if(o){var s=this._lastFrame;if(i<this._lastFramePercent){for(t=Math.min(s+1,r-1);t>=0&&!(o[t]<=i);t--);t=Math.min(t,r-2)}else{for(var t=s;t<r&&!(o[t]>i);t++);t=Math.min(t-1,r-2)}a.lerp(e.position,n[t],n[t+1],(i-o[t])/(o[t+1]-o[t]));var l=n[t+1][0]-n[t][0];e.rotation=-Math.atan2(n[t+1][1]-n[t][1],l)-Math.PI/2,this._lastFrame=t,this._lastFramePercent=i,e.ignore=!1}},o.inherits(s,r),e.exports=s},43156:function(e,t,i){var n=i(66023),o=i(87557).createSymbol,r=i(76165).Group,a=i(98763).parsePercent,s=i(25718);function l(e,t){e.eachChild(function(e){e.attr({z:t.z,zlevel:t.zlevel,style:{stroke:"stroke"===t.brushType?t.color:null,fill:"fill"===t.brushType?t.color:null}})})}function c(e,t){r.call(this);var i=new s(e,t),n=new r;this.add(i),this.add(n),n.beforeUpdate=function(){this.attr(i.getScale())},this.updateData(e,t)}var d=c.prototype;d.stopEffectAnimation=function(){this.childAt(1).removeAll()},d.startEffectAnimation=function(e){for(var t=e.symbolType,i=e.color,n=this.childAt(1),r=0;r<3;r++){var a=o(t,-1,-1,2,2,i);a.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scale:[.5,.5]});var s=-r/3*e.period+e.effectOffset;a.animate("",!0).when(e.period,{scale:[e.rippleScale/2,e.rippleScale/2]}).delay(s).start(),a.animateStyle(!0).when(e.period,{opacity:0}).delay(s).start(),n.add(a)}l(n,e)},d.updateEffectAnimation=function(e){for(var t=this._effectCfg,i=this.childAt(1),n=["symbolType","period","rippleScale"],o=0;o<n.length;o++){var r=n[o];if(t[r]!==e[r]){this.stopEffectAnimation(),this.startEffectAnimation(e);return}}l(i,e)},d.highlight=function(){this.trigger("emphasis")},d.downplay=function(){this.trigger("normal")},d.updateData=function(e,t){var i,o=e.hostModel;this.childAt(0).updateData(e,t);var r=this.childAt(1),s=e.getItemModel(t),l=e.getItemVisual(t,"symbol"),c=(i=e.getItemVisual(t,"symbolSize"),n.isArray(i)||(i=[+i,+i]),i),d=e.getItemVisual(t,"color");r.attr("scale",c),r.traverse(function(e){e.attr({fill:d})});var u=s.getShallow("symbolOffset");if(u){var h=r.position;h[0]=a(u[0],c[0]),h[1]=a(u[1],c[1])}r.rotation=(s.getShallow("symbolRotate")||0)*Math.PI/180||0;var p={};if(p.showEffectOn=o.get("showEffectOn"),p.rippleScale=s.get("rippleEffect.scale"),p.brushType=s.get("rippleEffect.brushType"),p.period=1e3*s.get("rippleEffect.period"),p.effectOffset=t/e.count(),p.z=s.getShallow("z")||0,p.zlevel=s.getShallow("zlevel")||0,p.symbolType=l,p.color=d,this.off("mouseover").off("mouseout").off("emphasis").off("normal"),"render"===p.showEffectOn)this._effectCfg?this.updateEffectAnimation(p):this.startEffectAnimation(p),this._effectCfg=p;else{this._effectCfg=null,this.stopEffectAnimation();var f=this.childAt(0),g=function(){f.highlight(),"render"!==p.showEffectOn&&this.startEffectAnimation(p)},m=function(){f.downplay(),"render"!==p.showEffectOn&&this.stopEffectAnimation()};this.on("mouseover",g,this).on("mouseout",m,this).on("emphasis",g,this).on("normal",m,this)}this._effectCfg=p},d.fadeOut=function(e){this.off("mouseover").off("mouseout").off("emphasis").off("normal"),e&&e()},n.inherits(c,r),e.exports=c},87300:function(e,t,i){var n=i(76165),o=i(55117),r=i(11846),a=i(5280),s=n.extendShape({shape:{polyline:!1,curveness:0,segs:[]},buildPath:function(e,t){var i=t.segs,n=t.curveness;if(t.polyline)for(var o=0;o<i.length;){var r=i[o++];if(r>0){e.moveTo(i[o++],i[o++]);for(var a=1;a<r;a++)e.lineTo(i[o++],i[o++])}}else for(var o=0;o<i.length;){var s=i[o++],l=i[o++],c=i[o++],d=i[o++];if(e.moveTo(s,l),n>0){var u=(s+c)/2-(l-d)*n,h=(l+d)/2-(c-s)*n;e.quadraticCurveTo(u,h,c,d)}else e.lineTo(c,d)}},findDataIndex:function(e,t){var i=this.shape,n=i.segs,o=i.curveness;if(i.polyline)for(var s=0,l=0;l<n.length;){var c=n[l++];if(c>0)for(var d=n[l++],u=n[l++],h=1;h<c;h++){var p=n[l++],f=n[l++];if(r.containStroke(d,u,p,f))return s}s++}else for(var s=0,l=0;l<n.length;){var d=n[l++],u=n[l++],p=n[l++],f=n[l++];if(o>0){var g=(d+p)/2-(u-f)*o,m=(u+f)/2-(p-d)*o;if(a.containStroke(d,u,g,m,p,f))return s}else if(r.containStroke(d,u,p,f))return s;s++}return -1}});function l(){this.group=new n.Group}var c=l.prototype;c.isPersistent=function(){return!this._incremental},c.updateData=function(e){this.group.removeAll();var t=new s({rectHover:!0,cursor:"default"});t.setShape({segs:e.getLayout("linesPoints")}),this._setCommon(t,e),this.group.add(t),this._incremental=null},c.incrementalPrepareUpdate=function(e){this.group.removeAll(),this._clearIncremental(),e.count()>5e5?(this._incremental||(this._incremental=new o({silent:!0})),this.group.add(this._incremental)):this._incremental=null},c.incrementalUpdate=function(e,t){var i=new s;i.setShape({segs:t.getLayout("linesPoints")}),this._setCommon(i,t,!!this._incremental),this._incremental?this._incremental.addDisplayable(i,!0):(i.rectHover=!0,i.cursor="default",i.__startIndex=e.start,this.group.add(i))},c.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},c._setCommon=function(e,t,i){var n=t.hostModel;e.setShape({polyline:n.get("polyline"),curveness:n.get("lineStyle.curveness")}),e.useStyle(n.getModel("lineStyle").getLineStyle()),e.style.strokeNoScale=!0;var o=t.getVisual("color");o&&e.setStyle("stroke",o),e.setStyle("fill"),i||(e.seriesIndex=n.seriesIndex,e.on("mousemove",function(t){e.dataIndex=null;var i=e.findDataIndex(t.offsetX,t.offsetY);i>0&&(e.dataIndex=i+e.__startIndex)}))},c._clearIncremental=function(){var e=this._incremental;e&&e.clearDisplaybles()},e.exports=l},30843:function(e,t,i){var n=i(76165),o=i(87557).createSymbol,r=i(55117),a=n.extendShape({shape:{points:null},symbolProxy:null,buildPath:function(e,t){var i=t.points,n=t.size,o=this.symbolProxy,r=o.shape;if(!((e.getContext?e.getContext():e)&&n[0]<4))for(var a=0;a<i.length;){var s=i[a++],l=i[a++];isNaN(s)||isNaN(l)||(r.x=s-n[0]/2,r.y=l-n[1]/2,r.width=n[0],r.height=n[1],o.buildPath(e,r,!0))}},afterBrush:function(e){var t=this.shape,i=t.points,n=t.size;if(n[0]<4){this.setTransform(e);for(var o=0;o<i.length;){var r=i[o++],a=i[o++];isNaN(r)||isNaN(a)||e.fillRect(r-n[0]/2,a-n[1]/2,n[0],n[1])}this.restoreTransform(e)}},findDataIndex:function(e,t){for(var i=this.shape,n=i.points,o=i.size,r=Math.max(o[0],4),a=Math.max(o[1],4),s=n.length/2-1;s>=0;s--){var l=2*s,c=n[l]-r/2,d=n[l+1]-a/2;if(e>=c&&t>=d&&e<=c+r&&t<=d+a)return s}return -1}});function s(){this.group=new n.Group}var l=s.prototype;l.isPersistent=function(){return!this._incremental},l.updateData=function(e){this.group.removeAll();var t=new a({rectHover:!0,cursor:"default"});t.setShape({points:e.getLayout("symbolPoints")}),this._setCommon(t,e),this.group.add(t),this._incremental=null},l.updateLayout=function(e){if(!this._incremental){var t=e.getLayout("symbolPoints");this.group.eachChild(function(e){if(null!=e.startIndex){var i=(e.endIndex-e.startIndex)*2,n=4*e.startIndex*2;t=new Float32Array(t.buffer,n,i)}e.setShape("points",t)})}},l.incrementalPrepareUpdate=function(e){this.group.removeAll(),this._clearIncremental(),e.count()>2e6?(this._incremental||(this._incremental=new r({silent:!0})),this.group.add(this._incremental)):this._incremental=null},l.incrementalUpdate=function(e,t){var i;this._incremental?(i=new a,this._incremental.addDisplayable(i,!0)):((i=new a({rectHover:!0,cursor:"default",startIndex:e.start,endIndex:e.end})).incremental=!0,this.group.add(i)),i.setShape({points:t.getLayout("symbolPoints")}),this._setCommon(i,t,!!this._incremental)},l._setCommon=function(e,t,i){var n=t.hostModel,r=t.getVisual("symbolSize");e.setShape("size",r instanceof Array?r:[r,r]),e.symbolProxy=o(t.getVisual("symbol"),0,0,0,0),e.setColor=e.symbolProxy.setColor;var a=e.shape.size[0]<4;e.useStyle(n.getModel("itemStyle").getItemStyle(a?["color","shadowBlur","shadowColor"]:["color"]));var s=t.getVisual("color");s&&e.setColor(s),i||(e.seriesIndex=n.seriesIndex,e.on("mousemove",function(t){e.dataIndex=null;var i=e.findDataIndex(t.offsetX,t.offsetY);i>=0&&(e.dataIndex=i+(e.startIndex||0))}))},l.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},l._clearIncremental=function(){var e=this._incremental;e&&e.clearDisplaybles()},e.exports=s},7574:function(e,t,i){var n=i(66023),o=i(3265),r=i(87557),a=i(51819),s=i(76165),l=i(98763).round,c=["fromSymbol","toSymbol"];function d(e){return"_"+e+"Type"}function u(e,t,i){var o=t.getItemVisual(i,"color"),a=t.getItemVisual(i,e),s=t.getItemVisual(i,e+"Size");if(a&&"none"!==a){n.isArray(s)||(s=[s,s]);var l=r.createSymbol(a,-s[0]/2,-s[1]/2,s[0],s[1],o);return l.name=e,l}}function h(e,t){var i=t[0],n=t[1],o=t[2];e.x1=i[0],e.y1=i[1],e.x2=n[0],e.y2=n[1],e.percent=1,o?(e.cpx1=o[0],e.cpy1=o[1]):(e.cpx1=NaN,e.cpy1=NaN)}function p(e,t,i){s.Group.call(this),this._createLine(e,t,i)}var f=p.prototype;f.beforeUpdate=function(){var e=this.childOfName("fromSymbol"),t=this.childOfName("toSymbol"),i=this.childOfName("label");if(e||t||!i.ignore){for(var n=1,r=this.parent;r;)r.scale&&(n/=r.scale[0]),r=r.parent;var a=this.childOfName("line");if(this.__dirty||a.__dirty){var s=a.shape.percent,l=a.pointAt(0),c=a.pointAt(s),d=o.sub([],c,l);if(o.normalize(d,d),e){e.attr("position",l);var u=a.tangentAt(0);e.attr("rotation",Math.PI/2-Math.atan2(u[1],u[0])),e.attr("scale",[n*s,n*s])}if(t){t.attr("position",c);var u=a.tangentAt(1);t.attr("rotation",-Math.PI/2-Math.atan2(u[1],u[0])),t.attr("scale",[n*s,n*s])}if(!i.ignore){i.attr("position",c);var h,p,f,g=5*n;if("end"===i.__position)h=[d[0]*g+c[0],d[1]*g+c[1]],p=d[0]>.8?"left":d[0]<-.8?"right":"center",f=d[1]>.8?"top":d[1]<-.8?"bottom":"middle";else if("middle"===i.__position){var m=s/2,u=a.tangentAt(m),v=[u[1],-u[0]],b=a.pointAt(m);v[1]>0&&(v[0]=-v[0],v[1]=-v[1]),h=[b[0]+v[0]*g,b[1]+v[1]*g],p="center",f="bottom";var y=-Math.atan2(u[1],u[0]);c[0]<l[0]&&(y=Math.PI+y),i.attr("rotation",y)}else h=[-d[0]*g+l[0],-d[1]*g+l[1]],p=d[0]>.8?"right":d[0]<-.8?"left":"center",f=d[1]>.8?"bottom":d[1]<-.8?"top":"middle";i.attr({style:{textVerticalAlign:i.__verticalAlign||f,textAlign:i.__textAlign||p},position:h,scale:[n,n]})}}}},f._createLine=function(e,t,i){var o,r,l=e.hostModel,p=(o=e.getItemLayout(t),h((r=new a({name:"line"})).shape,o),r);p.shape.percent=0,s.initProps(p,{shape:{percent:1}},l,t),this.add(p);var f=new s.Text({name:"label",lineLabelOriginalOpacity:1});this.add(f),n.each(c,function(i){var n=u(i,e,t);this.add(n),this[d(i)]=e.getItemVisual(t,i)},this),this._updateCommonStl(e,t,i)},f.updateData=function(e,t,i){var o=e.hostModel,r=this.childOfName("line"),a=e.getItemLayout(t),l={shape:{}};h(l.shape,a),s.updateProps(r,l,o,t),n.each(c,function(i){var n=e.getItemVisual(t,i),o=d(i);if(this[o]!==n){this.remove(this.childOfName(i));var r=u(i,e,t);this.add(r)}this[o]=n},this),this._updateCommonStl(e,t,i)},f._updateCommonStl=function(e,t,i){var o,r,a=e.hostModel,d=this.childOfName("line"),u=i&&i.lineStyle,h=i&&i.hoverLineStyle,p=i&&i.labelModel,f=i&&i.hoverLabelModel;if(!i||e.hasItemOption){var g=e.getItemModel(t);u=g.getModel("lineStyle").getLineStyle(),h=g.getModel("emphasis.lineStyle").getLineStyle(),p=g.getModel("label"),f=g.getModel("emphasis.label")}var m=e.getItemVisual(t,"color"),v=n.retrieve3(e.getItemVisual(t,"opacity"),u.opacity,1);d.useStyle(n.defaults({strokeNoScale:!0,fill:"none",stroke:m,opacity:v},u)),d.hoverStyle=h,n.each(c,function(e){var t=this.childOfName(e);t&&(t.setColor(m),t.setStyle({opacity:v}))},this);var b=p.getShallow("show"),y=f.getShallow("show"),w=this.childOfName("label");if((b||y)&&(o=m||"#000",null==(r=a.getFormattedLabel(t,"normal",e.dataType)))){var _=a.getRawValue(t);r=null==_?e.getName(t):isFinite(_)?l(_):_}var x=b?r:null,S=y?n.retrieve2(a.getFormattedLabel(t,"emphasis",e.dataType),r):null,C=w.style;(null!=x||null!=S)&&(s.setTextStyle(w.style,p,{text:x},{autoColor:o}),w.__textAlign=C.textAlign,w.__verticalAlign=C.textVerticalAlign,w.__position=p.get("position")||"middle"),null!=S?w.hoverStyle={text:S,textFill:f.getTextColor(!0),fontStyle:f.getShallow("fontStyle"),fontWeight:f.getShallow("fontWeight"),fontSize:f.getShallow("fontSize"),fontFamily:f.getShallow("fontFamily")}:w.hoverStyle={text:null},w.ignore=!b&&!y,s.setHoverStyle(this)},f.highlight=function(){this.trigger("emphasis")},f.downplay=function(){this.trigger("normal")},f.updateLayout=function(e,t){this.setLinePoints(e.getItemLayout(t))},f.setLinePoints=function(e){var t=this.childOfName("line");h(t.shape,e),t.dirty()},n.inherits(p,s.Group),e.exports=p},93275:function(e,t,i){var n=i(76165),o=i(7574);function r(e){this._ctor=e||o,this.group=new n.Group}var a=r.prototype;function s(e){var t=e.hostModel;return{lineStyle:t.getModel("lineStyle").getLineStyle(),hoverLineStyle:t.getModel("emphasis.lineStyle").getLineStyle(),labelModel:t.getModel("label"),hoverLabelModel:t.getModel("emphasis.label")}}function l(e){return isNaN(e[0])||isNaN(e[1])}function c(e){return!l(e[0])&&!l(e[1])}a.isPersistent=function(){return!0},a.updateData=function(e){var t=this,i=t.group,n=t._lineData;t._lineData=e,n||i.removeAll();var o=s(e);e.diff(n).add(function(i){var n=t,r=e,a=i,s=o;if(c(r.getItemLayout(a))){var l=new n._ctor(r,a,s);r.setItemGraphicEl(a,l),n.group.add(l)}}).update(function(i,r){!function(e,t,i,n,o,r){var a=t.getItemGraphicEl(n);if(!c(i.getItemLayout(o)))return e.group.remove(a);a?a.updateData(i,o,r):a=new e._ctor(i,o,r),i.setItemGraphicEl(o,a),e.group.add(a)}(t,n,e,r,i,o)}).remove(function(e){i.remove(n.getItemGraphicEl(e))}).execute()},a.updateLayout=function(){var e=this._lineData;e&&e.eachItemGraphicEl(function(t,i){t.updateLayout(e,i)},this)},a.incrementalPrepareUpdate=function(e){this._seriesScope=s(e),this._lineData=null,this.group.removeAll()},a.incrementalUpdate=function(e,t){function i(e){e.isGroup||(e.incremental=e.useHoverLayer=!0)}for(var n=e.start;n<e.end;n++)if(c(t.getItemLayout(n))){var o=new this._ctor(t,n,this._seriesScope);o.traverse(i),this.group.add(o),t.setItemGraphicEl(n,o)}},a.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},a._clearIncremental=function(){var e=this._incremental;e&&e.clearDisplaybles()},e.exports=r},51819:function(e,t,i){var n=i(76165),o=i(3265),r=n.Line.prototype,a=n.BezierCurve.prototype;function s(e){return isNaN(+e.cpx1)||isNaN(+e.cpy1)}e.exports=n.extendShape({type:"ec-line",style:{stroke:"#000",fill:null},shape:{x1:0,y1:0,x2:0,y2:0,percent:1,cpx1:null,cpy1:null},buildPath:function(e,t){(s(t)?r:a).buildPath(e,t)},pointAt:function(e){return s(this.shape)?r.pointAt.call(this,e):a.pointAt.call(this,e)},tangentAt:function(e){var t=this.shape,i=s(t)?[t.x2-t.x1,t.y2-t.y1]:a.tangentAt.call(this,e);return o.normalize(i,i)}})},14385:function(e,t,i){var n=i(76165),o=i(66023);function r(e,t,i){n.Group.call(this),this._createPolyline(e,t,i)}var a=r.prototype;a._createPolyline=function(e,t,i){var o=e.getItemLayout(t),r=new n.Polyline({shape:{points:o}});this.add(r),this._updateCommonStl(e,t,i)},a.updateData=function(e,t,i){var o=e.hostModel,r=this.childAt(0),a={shape:{points:e.getItemLayout(t)}};n.updateProps(r,a,o,t),this._updateCommonStl(e,t,i)},a._updateCommonStl=function(e,t,i){var r=this.childAt(0),a=e.getItemModel(t),s=e.getItemVisual(t,"color"),l=i&&i.lineStyle,c=i&&i.hoverLineStyle;(!i||e.hasItemOption)&&(l=a.getModel("lineStyle").getLineStyle(),c=a.getModel("emphasis.lineStyle").getLineStyle()),r.useStyle(o.defaults({strokeNoScale:!0,fill:"none",stroke:s},l)),r.hoverStyle=c,n.setHoverStyle(this)},a.updateLayout=function(e,t){this.childAt(0).setShape("points",e.getItemLayout(t))},o.inherits(r,n.Group),e.exports=r},25718:function(e,t,i){var n=i(66023),o=i(87557).createSymbol,r=i(76165),a=i(98763).parsePercent,s=i(31750).getDefaultLabel;function l(e,t,i){r.Group.call(this),this.updateData(e,t,i)}var c=l.prototype,d=l.getSymbolSize=function(e,t){var i=e.getItemVisual(t,"symbolSize");return i instanceof Array?i.slice():[+i,+i]};function u(e){return[e[0]/2,e[1]/2]}function h(e,t){this.parent.drift(e,t)}c._createSymbol=function(e,t,i,n,r){this.removeAll();var a=o(e,-1,-1,2,2,t.getItemVisual(i,"color"),r);a.attr({z2:100,culling:!0,scale:u(n)}),a.drift=h,this._symbolType=e,this.add(a)},c.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(e)},c.getSymbolPath=function(){return this.childAt(0)},c.getScale=function(){return this.childAt(0).scale},c.highlight=function(){this.childAt(0).trigger("emphasis")},c.downplay=function(){this.childAt(0).trigger("normal")},c.setZ=function(e,t){var i=this.childAt(0);i.zlevel=e,i.z=t},c.setDraggable=function(e){var t=this.childAt(0);t.draggable=e,t.cursor=e?"move":"pointer"},c.updateData=function(e,t,i){this.silent=!1;var n=e.getItemVisual(t,"symbol")||"circle",o=e.hostModel,a=d(e,t),s=n!==this._symbolType;if(s){var l=e.getItemVisual(t,"symbolKeepAspect");this._createSymbol(n,e,t,a,l)}else{var c=this.childAt(0);c.silent=!1,r.updateProps(c,{scale:u(a)},o,t)}if(this._updateCommon(e,t,a,i),s){var c=this.childAt(0),h=i&&i.fadeIn,p={scale:c.scale.slice()};h&&(p.style={opacity:c.style.opacity}),c.scale=[0,0],h&&(c.style.opacity=0),r.initProps(c,p,o,t)}this._seriesModel=o};var p=["itemStyle"],f=["emphasis","itemStyle"],g=["label"],m=["emphasis","label"];function v(){r.isInEmphasis(this)||y.call(this)}function b(){r.isInEmphasis(this)||w.call(this)}function y(){if(!this.incremental&&!this.useHoverLayer){var e=this.__symbolOriginalScale,t=e[1]/e[0];this.animateTo({scale:[Math.max(1.1*e[0],e[0]+3),Math.max(1.1*e[1],e[1]+3*t)]},400,"elasticOut")}}function w(){this.incremental||this.useHoverLayer||this.animateTo({scale:this.__symbolOriginalScale},400,"elasticOut")}c._updateCommon=function(e,t,i,o){var l=this.childAt(0),c=e.hostModel,d=e.getItemVisual(t,"color");"image"!==l.type&&l.useStyle({strokeNoScale:!0});var h=o&&o.itemStyle,_=o&&o.hoverItemStyle,x=o&&o.symbolRotate,S=o&&o.symbolOffset,C=o&&o.labelModel,k=o&&o.hoverLabelModel,I=o&&o.hoverAnimation,A=o&&o.cursorStyle;if(!o||e.hasItemOption){var T=o&&o.itemModel?o.itemModel:e.getItemModel(t);h=T.getModel(p).getItemStyle(["color"]),_=T.getModel(f).getItemStyle(),x=T.getShallow("symbolRotate"),S=T.getShallow("symbolOffset"),C=T.getModel(g),k=T.getModel(m),I=T.getShallow("hoverAnimation"),A=T.getShallow("cursor")}else _=n.extend({},_);var E=l.style;l.attr("rotation",(x||0)*Math.PI/180||0),S&&l.attr("position",[a(S[0],i[0]),a(S[1],i[1])]),A&&l.attr("cursor",A),l.setColor(d,o&&o.symbolInnerColor),l.setStyle(h);var R=e.getItemVisual(t,"opacity");null!=R&&(E.opacity=R);var D=e.getItemVisual(t,"liftZ"),O=l.__z2Origin;null!=D?null==O&&(l.__z2Origin=l.z2,l.z2+=D):null!=O&&(l.z2=O,l.__z2Origin=null);var M=o&&o.useNameLabel;r.setLabelStyle(E,_,C,k,{labelFetcher:c,labelDataIndex:t,defaultText:function(t,i){return M?e.getName(t):s(e,t)},isRectText:!0,autoColor:d}),l.off("mouseover").off("mouseout").off("emphasis").off("normal"),l.hoverStyle=_,r.setHoverStyle(l),l.__symbolOriginalScale=u(i),I&&c.isAnimationEnabled()&&l.on("mouseover",v).on("mouseout",b).on("emphasis",y).on("normal",w)},c.fadeOut=function(e,t){var i=this.childAt(0);this.silent=i.silent=!0,t&&t.keepLabel||(i.style.text=null),r.updateProps(i,{style:{opacity:0},scale:[0,0]},this._seriesModel,this.dataIndex,e)},n.inherits(l,r.Group),e.exports=l},67076:function(e,t,i){var n=i(76165),o=i(25718),r=i(66023).isObject;function a(e){this.group=new n.Group,this._symbolCtor=e||o}var s=a.prototype;function l(e,t,i,n){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(n.isIgnore&&n.isIgnore(i))&&!(n.clipShape&&!n.clipShape.contain(t[0],t[1]))&&"none"!==e.getItemVisual(i,"symbol")}function c(e){return null==e||r(e)||(e={isIgnore:e}),e||{}}function d(e){var t=e.hostModel;return{itemStyle:t.getModel("itemStyle").getItemStyle(["color"]),hoverItemStyle:t.getModel("emphasis.itemStyle").getItemStyle(),symbolRotate:t.get("symbolRotate"),symbolOffset:t.get("symbolOffset"),hoverAnimation:t.get("hoverAnimation"),labelModel:t.getModel("label"),hoverLabelModel:t.getModel("emphasis.label"),cursorStyle:t.get("cursor")}}s.updateData=function(e,t){t=c(t);var i=this.group,o=e.hostModel,r=this._data,a=this._symbolCtor,s=d(e);r||i.removeAll(),e.diff(r).add(function(n){var o=e.getItemLayout(n);if(l(e,o,n,t)){var r=new a(e,n,s);r.attr("position",o),e.setItemGraphicEl(n,r),i.add(r)}}).update(function(c,d){var u=r.getItemGraphicEl(d),h=e.getItemLayout(c);if(!l(e,h,c,t))return void i.remove(u);u?(u.updateData(e,c,s),n.updateProps(u,{position:h},o)):(u=new a(e,c)).attr("position",h),i.add(u),e.setItemGraphicEl(c,u)}).remove(function(e){var t=r.getItemGraphicEl(e);t&&t.fadeOut(function(){i.remove(t)})}).execute(),this._data=e},s.isPersistent=function(){return!0},s.updateLayout=function(){var e=this._data;e&&e.eachItemGraphicEl(function(t,i){var n=e.getItemLayout(i);t.attr("position",n)})},s.incrementalPrepareUpdate=function(e){this._seriesScope=d(e),this._data=null,this.group.removeAll()},s.incrementalUpdate=function(e,t,i){function n(e){e.isGroup||(e.incremental=e.useHoverLayer=!0)}i=c(i);for(var o=e.start;o<e.end;o++){var r=t.getItemLayout(o);if(l(t,r,o,i)){var a=new this._symbolCtor(t,o,this._seriesScope);a.traverse(n),a.attr("position",r),this.group.add(a),t.setItemGraphicEl(o,a)}}},s.remove=function(e){var t=this.group,i=this._data;i&&e?i.eachItemGraphicEl(function(e){e.fadeOut(function(){t.remove(e)})}):t.removeAll()},e.exports=a},89923:function(e,t,i){var n=i(66023),o=i(90942),r=i(44185),a=i(22911),s=i(35047),l=i(33776),c=i(6551);e.exports=function(e,t,i,d,u){for(var h,p=new r(d),f=0;f<e.length;f++)p.addNode(n.retrieve(e[f].id,e[f].name,f),f);for(var g=[],m=[],v=0,f=0;f<t.length;f++){var b=t[f],y=b.source,w=b.target;p.addEdge(y,w,v)&&(m.push(b),g.push(n.retrieve(b.id,y+" > "+w)),v++)}var _=i.get("coordinateSystem");if("cartesian2d"===_||"polar"===_)h=c(e,i);else{var x=l.get(_),S=x&&"view"!==x.type&&x.dimensions||[];0>n.indexOf(S,"value")&&S.concat(["value"]),(h=new o(s(e,{coordDimensions:S}),i)).initData(e)}var C=new o(["value"],i);return C.initData(m,g),u&&u(h,C),a({mainData:h,struct:p,structAttr:"graph",datas:{node:h,edge:C},datasAttr:{node:"data",edge:"edgeData"}}),p.update(),p}},6551:function(e,t,i){var n=i(66023),o=i(90942),r=i(35047),a=i(38237).SOURCE_FORMAT_ORIGINAL,s=i(39116).getDimensionTypeByAxis,l=i(70018).getDataItemValue,c=i(33776),d=i(26774).getCoordSysDefineBySeries,u=i(36265),h=i(74733).enableDataStack;e.exports=function(e,t,i){i=i||{},u.isInstance(e)||(e=u.seriesDataToSource(e));var p,f,g,m=t.get("coordinateSystem"),v=c.get(m),b=d(t);b&&(p=n.map(b.coordSysDims,function(e){var t={name:e},i=b.axisMap.get(e);return i&&(t.type=s(i.get("type"))),t})),p||(p=v&&(v.getDimensionsInfo?v.getDimensionsInfo():v.dimensions.slice())||["x","y"]);var y=r(e,{coordDimensions:p,generateCoord:i.generateCoord});b&&n.each(y,function(e,t){var i=e.coordDim,n=b.categoryAxisMap.get(i);n&&(null==f&&(f=t),e.ordinalMeta=n.getOrdinalMeta()),null!=e.otherDims.itemName&&(g=!0)}),g||null==f||(y[f].otherDims.itemName=0);var w=h(t,y),_=new o(y,t);_.setCalculationInfo(w);var x=null!=f&&function(e){if(e.sourceFormat===a){var t=function(e){for(var t=0;t<e.length&&null==e[t];)t++;return e[t]}(e.data||[]);return null!=t&&!n.isArray(l(t))}}(e)?function(e,t,i,n){return n===f?i:this.defaultDimValueGetter(e,t,i,n)}:null;return _.hasItemOption=!1,_.initData(e,null,x),_}},71469:function(e,t,i){var n=i(35047),o=i(90942),r=i(66023),a=r.extend,s=r.isArray;e.exports=function(e,t,i){t=s(t)&&{coordDimensions:t}||a({},t);var r=e.getSource(),l=new o(n(r,t),e);return l.initData(r,i),l}},85773:function(e,t,i){var n=i(70018).makeInner;e.exports=function(){var e=n();return function(t){var i=e(t),n=t.pipelineContext,o=i.large,r=i.progressiveRender,a=i.large=n.large,s=i.progressiveRender=n.progressiveRender;return!!(o^a||r^s)&&"reset"}}},81518:function(e,t,i){var n=i(47475);n.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},function(){}),n.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},function(){})},31750:function(e,t,i){var n=i(89211).retrieveRawValue;t.getDefaultLabel=function(e,t){var i=e.mapDimension("defaultedLabel",!0),o=i.length;if(1===o)return n(e,t,i[0]);if(o){for(var r=[],a=0;a<i.length;a++){var s=n(e,t,i[a]);r.push(s)}return r.join(" ")}}},38300:function(e,t,i){var n=i(66023);function o(e){for(var t=[];e;)(e=e.parentNode)&&t.push(e);return t.reverse()}t.retrieveTargetInfo=function(e,t,i){if(e&&n.indexOf(t,e.type)>=0){var o=i.getData().tree.root,r=e.targetNode;if("string"==typeof r&&(r=o.getNodeById(r)),r&&o.contains(r))return{node:r};var a=e.targetNodeId;if(null!=a&&(r=o.getNodeById(a)))return{node:r}}},t.getPathToRoot=o,t.aboveViewRoot=function(e,t){var i=o(e);return n.indexOf(i,t)>=0},t.wrapTreePathInfo=function(e,t){for(var i=[];e;){var n=e.dataIndex;i.push({name:e.name,dataIndex:n,value:t.getRawValue(n)}),e=e.parentNode}return i.reverse(),i}},90005:function(e,t,i){var n=i(71469),o=i(66023),r=i(39116).getDimensionTypeByAxis;t.seriesModelMixin={_baseAxisDim:null,getInitialData:function(e,t){var i,a,s=t.getComponent("xAxis",this.get("xAxisIndex")),l=t.getComponent("yAxis",this.get("yAxisIndex")),c=s.get("type"),d=l.get("type");"category"===c?(e.layout="horizontal",i=s.getOrdinalMeta(),a=!0):"category"===d?(e.layout="vertical",i=l.getOrdinalMeta(),a=!0):e.layout=e.layout||"horizontal";var u=["x","y"],h=+("horizontal"!==e.layout),p=this._baseAxisDim=u[h],f=u[1-h],g=[s,l],m=g[h].get("type"),v=g[1-h].get("type"),b=e.data;if(b&&a){var y=[];o.each(b,function(e,t){var i;e.value&&o.isArray(e.value)?(i=e.value.slice(),e.value.unshift(t)):o.isArray(e)?(i=e.slice(),e.unshift(t)):i=e,y.push(i)}),e.data=y}var w=this.defaultValueDimensions;return n(this,{coordDimensions:[{name:p,type:r(m),ordinalMeta:i,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:f,type:r(v),dimsDef:w.slice()}],dimensionsCount:w.length+1})},getBaseAxis:function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+"Axis",this.get(e+"AxisIndex")).axis}}},26730:function(e,t,i){var n=i(47475);i(26420),i(7594);var o=i(41314),r=i(64342),a=i(45868);i(31372),n.registerVisual(o("line","circle","line")),n.registerLayout(r("line")),n.registerProcessor(n.PRIORITY.PROCESSOR.STATISTIC,a("line"))},26420:function(e,t,i){i(38603).__DEV__;var n=i(6551);e.exports=i(26626).extend({type:"series.line",dependencies:["grid","polar"],getInitialData:function(e,t){return n(this.getSource(),this)},defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,clipOverflow:!0,label:{position:"top"},lineStyle:{width:2,type:"solid"},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0}})},7594:function(e,t,i){i(38603).__DEV__;var n=i(66023),o=i(67076),r=i(25718),a=i(82927),s=i(76165),l=i(70018),c=i(68742),d=c.Polyline,u=c.Polygon,h=i(55756),p=i(98763).round,f=i(14889),g=f.prepareDataCoordInfo,m=f.getStackedOnPoint;function v(e,t){if(e.length===t.length){for(var i=0;i<e.length;i++){var n=e[i],o=t[i];if(n[0]!==o[0]||n[1]!==o[1])return}return!0}}function b(e){return"number"==typeof e?e:.5*!!e}function y(e){var t=e.getGlobalExtent();if(e.onBand){var i=e.getBandWidth()/2-1,n=t[1]>t[0]?1:-1;t[0]+=n*i,t[1]-=n*i}return t}function w(e,t,i,n){var o,r,a,l,c;return"polar"===e.type?(o=e.getAngleAxis(),(r=e.getRadiusAxis().getExtent().slice())[0]>r[1]&&r.reverse(),a=o.getExtent(),l=Math.PI/180,i&&(r[0]-=.5,r[1]+=.5),c=new s.Sector({shape:{cx:p(e.cx,1),cy:p(e.cy,1),r0:p(r[0],1),r:p(r[1],1),startAngle:-a[0]*l,endAngle:-a[1]*l,clockwise:o.inverse}}),t&&(c.shape.endAngle=-a[0]*l,s.initProps(c,{shape:{endAngle:-a[1]*l}},n)),c):function(e,t,i,n){var o=y(e.getAxis("x")),r=y(e.getAxis("y")),a=e.getBaseAxis().isHorizontal(),l=Math.min(o[0],o[1]),c=Math.min(r[0],r[1]),d=Math.max(o[0],o[1])-l,u=Math.max(r[0],r[1])-c;if(i)l-=.5,d+=.5,c-=.5,u+=.5;else{var h=n.get("lineStyle.width")||2,p=n.get("clipOverflow")?h/2:Math.max(d,u);a?(c-=p,u+=2*p):(l-=p,d+=2*p)}var f=new s.Rect({shape:{x:l,y:c,width:d,height:u}});return t&&(f.shape[a?"width":"height"]=0,s.initProps(f,{shape:{width:d,height:u}},n)),f}(e,t,i,n)}function _(e,t,i){for(var n=t.getBaseAxis(),o=+("x"!==n.dim&&"radius"!==n.dim),r=[],a=0;a<e.length-1;a++){var s=e[a+1],l=e[a];r.push(l);var c=[];switch(i){case"end":c[o]=s[o],c[1-o]=l[1-o],r.push(c);break;case"middle":var d=(l[o]+s[o])/2,u=[];c[o]=u[o]=d,c[1-o]=l[1-o],u[1-o]=s[1-o],r.push(c),r.push(u);break;default:c[o]=l[o],c[1-o]=s[1-o],r.push(c)}}return e[a]&&r.push(e[a]),r}e.exports=h.extend({type:"line",init:function(){var e=new s.Group,t=new o;this.group.add(t.group),this._symbolDraw=t,this._lineGroup=e},render:function(e,t,i){var o=e.coordinateSystem,a=this.group,l=e.getData(),c=e.getModel("lineStyle"),d=e.getModel("areaStyle"),u=l.mapArray(l.getItemLayout),h="polar"===o.type,p=this._coordSys,f=this._symbolDraw,y=this._polyline,x=this._polygon,S=this._lineGroup,C=e.get("animation"),k=!d.isEmpty(),I=d.get("origin"),A=g(o,l,I),T=function(e,t,i){if(!i.valueDim)return[];for(var n=[],o=0,r=t.count();o<r;o++)n.push(m(i,e,t,o));return n}(o,l,A),E=e.get("showSymbol"),R=E&&!h&&function(e,t,i){var o=e.get("showAllSymbol"),a="auto"===o;if(!o||a){var s=i.getAxesByScale("ordinal")[0];if(s&&!(a&&function(e,t){var i=e.getExtent(),n=Math.abs(i[1]-i[0])/e.scale.count();isNaN(n)&&(n=0);for(var o=t.count(),a=Math.max(1,Math.round(o/5)),s=0;s<o;s+=a)if(1.5*r.getSymbolSize(t,s)[+!!e.isHorizontal()]>n)return!1;return!0}(s,t))){var l=t.mapDimension(s.dim),c={};return n.each(s.getViewLabels(),function(e){c[e.tickValue]=1}),function(e){return!c.hasOwnProperty(t.get(l,e))}}}}(e,l,o),D=this._data;D&&D.eachItemGraphicEl(function(e,t){e.__temp&&(a.remove(e),D.setItemGraphicEl(t,null))}),E||f.remove(),a.add(S);var O=!h&&e.get("step");y&&p.type===o.type&&O===this._step?(k&&!x?x=this._newPolygon(u,T,o,C):x&&!k&&(S.remove(x),x=this._polygon=null),S.setClipPath(w(o,!1,!1,e)),E&&f.updateData(l,{isIgnore:R,clipShape:w(o,!1,!0,e)}),l.eachItemGraphicEl(function(e){e.stopAnimation(!0)}),v(this._stackedOnPoints,T)&&v(this._points,u)||(C?this._updateAnimation(l,T,o,i,O,I):(O&&(u=_(u,o,O),T=_(T,o,O)),y.setShape({points:u}),x&&x.setShape({points:u,stackedOnPoints:T})))):(E&&f.updateData(l,{isIgnore:R,clipShape:w(o,!1,!0,e)}),O&&(u=_(u,o,O),T=_(T,o,O)),y=this._newPolyline(u,o,C),k&&(x=this._newPolygon(u,T,o,C)),S.setClipPath(w(o,!0,!1,e)));var M=function(e,t){var i,o,r=e.getVisual("visualMeta");if(r&&r.length&&e.count()&&"cartesian2d"===t.type){for(var a=r.length-1;a>=0;a--){var l=r[a].dimension,c=e.dimensions[l],d=e.getDimensionInfo(c);if("x"===(i=d&&d.coordDim)||"y"===i){o=r[a];break}}if(o){var u=t.getAxis(i),h=n.map(o.stops,function(e){return{coord:u.toGlobalCoord(u.dataToCoord(e.value)),color:e.color}}),p=h.length,f=o.outerColors.slice();p&&h[0].coord>h[p-1].coord&&(h.reverse(),f.reverse());var g=h[0].coord-10,m=h[p-1].coord+10,v=m-g;if(v<.001)return"transparent";n.each(h,function(e){e.offset=(e.coord-g)/v}),h.push({offset:p?h[p-1].offset:.5,color:f[1]||"transparent"}),h.unshift({offset:p?h[0].offset:.5,color:f[0]||"transparent"});var b=new s.LinearGradient(0,0,0,0,h,!0);return b[i]=g,b[i+"2"]=m,b}}}(l,o)||l.getVisual("color");y.useStyle(n.defaults(c.getLineStyle(),{fill:"none",stroke:M,lineJoin:"bevel"}));var N=e.get("smooth");if(N=b(e.get("smooth")),y.setShape({smooth:N,smoothMonotone:e.get("smoothMonotone"),connectNulls:e.get("connectNulls")}),x){var P=l.getCalculationInfo("stackedOnSeries"),L=0;x.useStyle(n.defaults(d.getAreaStyle(),{fill:M,opacity:.7,lineJoin:"bevel"})),P&&(L=b(P.get("smooth"))),x.setShape({smooth:N,stackedOnSmooth:L,smoothMonotone:e.get("smoothMonotone"),connectNulls:e.get("connectNulls")})}this._data=l,this._coordSys=o,this._stackedOnPoints=T,this._points=u,this._step=O,this._valueOrigin=I},dispose:function(){},highlight:function(e,t,i,n){var o=e.getData(),a=l.queryDataIndex(o,n);if(a instanceof Array||null==a||!(a>=0))h.prototype.highlight.call(this,e,t,i,n);else{var s=o.getItemGraphicEl(a);if(!s){var c=o.getItemLayout(a);if(!c)return;(s=new r(o,a)).position=c,s.setZ(e.get("zlevel"),e.get("z")),s.ignore=isNaN(c[0])||isNaN(c[1]),s.__temp=!0,o.setItemGraphicEl(a,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}},downplay:function(e,t,i,n){var o=e.getData(),r=l.queryDataIndex(o,n);if(null!=r&&r>=0){var a=o.getItemGraphicEl(r);a&&(a.__temp?(o.setItemGraphicEl(r,null),this.group.remove(a)):a.downplay())}else h.prototype.downplay.call(this,e,t,i,n)},_newPolyline:function(e){var t=this._polyline;return t&&this._lineGroup.remove(t),t=new d({shape:{points:e},silent:!0,z2:10}),this._lineGroup.add(t),this._polyline=t,t},_newPolygon:function(e,t){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new u({shape:{points:e,stackedOnPoints:t},silent:!0}),this._lineGroup.add(i),this._polygon=i,i},_updateAnimation:function(e,t,i,n,o,r){var l=this._polyline,c=this._polygon,d=e.hostModel,u=a(this._data,e,this._stackedOnPoints,t,this._coordSys,i,this._valueOrigin,r),h=u.current,p=u.stackedOnCurrent,f=u.next,g=u.stackedOnNext;o&&(h=_(u.current,i,o),p=_(u.stackedOnCurrent,i,o),f=_(u.next,i,o),g=_(u.stackedOnNext,i,o)),l.shape.__points=u.current,l.shape.points=h,s.updateProps(l,{shape:{points:f}},d),c&&(c.setShape({points:h,stackedOnPoints:p}),s.updateProps(c,{shape:{points:f,stackedOnPoints:g}},d));for(var m=[],v=u.status,b=0;b<v.length;b++)if("="===v[b].cmd){var y=e.getItemGraphicEl(v[b].idx1);y&&m.push({el:y,ptIdx:b})}l.animators&&l.animators.length&&l.animators[0].during(function(){for(var e=0;e<m.length;e++)m[e].el.attr("position",l.shape.__points[m[e].ptIdx])})},remove:function(e){var t=this.group,i=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),i&&i.eachItemGraphicEl(function(e,n){e.__temp&&(t.remove(e),i.setItemGraphicEl(n,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._data=null}})},14889:function(e,t,i){var n=i(74733).isDimensionStacked,o=i(66023).map;t.prepareDataCoordInfo=function(e,t,i){var r,a,s,l,c,d=e.getBaseAxis(),u=e.getOtherAxis(d),h=(r=u,a=i,s=0,l=r.scale.getExtent(),"start"===a?s=l[0]:"end"===a?s=l[1]:l[0]>0?s=l[0]:l[1]<0&&(s=l[1]),s),p=d.dim,f=u.dim,g=t.mapDimension(f),m=t.mapDimension(p),v=+("x"===f||"radius"===f),b=o(e.dimensions,function(e){return t.mapDimension(e)}),y=t.getCalculationInfo("stackResultDimension");return(c|=n(t,b[0]))&&(b[0]=y),(c|=n(t,b[1]))&&(b[1]=y),{dataDimsForPoint:b,valueStart:h,valueAxisDim:f,baseAxisDim:p,stacked:!!c,valueDim:g,baseDim:m,baseDataOffset:v,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}},t.getStackedOnPoint=function(e,t,i,n){var o=NaN;e.stacked&&(o=i.get(i.getCalculationInfo("stackedOverDimension"),n)),isNaN(o)&&(o=e.valueStart);var r=e.baseDataOffset,a=[];return a[r]=i.get(e.baseDim,n),a[1-r]=o,t.dataToPoint(a)}},82927:function(e,t,i){var n=i(14889),o=n.prepareDataCoordInfo,r=n.getStackedOnPoint;e.exports=function(e,t,i,n,a,s,l,c){for(var d,u=(d=[],t.diff(e).add(function(e){d.push({cmd:"+",idx:e})}).update(function(e,t){d.push({cmd:"=",idx:t,idx1:e})}).remove(function(e){d.push({cmd:"-",idx:e})}).execute(),d),h=[],p=[],f=[],g=[],m=[],v=[],b=[],y=o(a,t,l),w=o(s,e,c),_=0;_<u.length;_++){var x=u[_],S=!0;switch(x.cmd){case"=":var C=e.getItemLayout(x.idx),k=t.getItemLayout(x.idx1);(isNaN(C[0])||isNaN(C[1]))&&(C=k.slice()),h.push(C),p.push(k),f.push(i[x.idx]),g.push(n[x.idx1]),b.push(t.getRawIndex(x.idx1));break;case"+":var I=x.idx;h.push(a.dataToPoint([t.get(y.dataDimsForPoint[0],I),t.get(y.dataDimsForPoint[1],I)])),p.push(t.getItemLayout(I).slice()),f.push(r(y,a,t,I)),g.push(n[I]),b.push(t.getRawIndex(I));break;case"-":var I=x.idx,A=e.getRawIndex(I);A!==I?(h.push(e.getItemLayout(I)),p.push(s.dataToPoint([e.get(w.dataDimsForPoint[0],I),e.get(w.dataDimsForPoint[1],I)])),f.push(i[I]),g.push(r(w,s,e,I)),b.push(A)):S=!1}S&&(m.push(x),v.push(v.length))}v.sort(function(e,t){return b[e]-b[t]});for(var T=[],E=[],R=[],D=[],O=[],_=0;_<v.length;_++){var I=v[_];T[_]=h[I],E[_]=p[I],R[_]=f[I],D[_]=g[I],O[_]=m[I]}return{current:T,next:E,stackedOnCurrent:R,stackedOnNext:D,status:O}}},68742:function(e,t,i){var n=i(87205),o=i(3265),r=i(13065),a=o.min,s=o.max,l=o.scaleAndAdd,c=o.copy,d=[],u=[],h=[];function p(e){return isNaN(e[0])||isNaN(e[1])}function f(e,t,i,n,o,r,a,s,l,c,d){return"none"!==c&&c?g.apply(this,arguments):m.apply(this,arguments)}function g(e,t,i,n,o,r,a,s,l,d,f){for(var g=0,m=i,v=0;v<n;v++){var b=t[m];if(m>=o||m<0)break;if(p(b)){if(f){m+=r;continue}break}if(m===i)e[r>0?"moveTo":"lineTo"](b[0],b[1]);else if(l>0){var y=t[g],w=+("y"===d),_=(b[w]-y[w])*l;c(u,y),u[w]=y[w]+_,c(h,b),h[w]=b[w]-_,e.bezierCurveTo(u[0],u[1],h[0],h[1],b[0],b[1])}else e.lineTo(b[0],b[1]);g=m,m+=r}return v}function m(e,t,i,n,r,f,g,m,v,b,y){for(var w=0,_=i,x=0;x<n;x++){var S=t[_];if(_>=r||_<0)break;if(p(S)){if(y){_+=f;continue}break}if(_===i)e[f>0?"moveTo":"lineTo"](S[0],S[1]),c(u,S);else if(v>0){var C=_+f,k=t[C];if(y)for(;k&&p(t[C]);)C+=f,k=t[C];var I=.5,A=t[w],k=t[C];if(!k||p(k))c(h,S);else{if(p(k)&&!y&&(k=S),o.sub(d,k,A),"x"===b||"y"===b){var T,E,R=+("x"!==b);T=Math.abs(S[R]-A[R]),E=Math.abs(S[R]-k[R])}else T=o.dist(S,A),E=o.dist(S,k);l(h,S,d,-v*(1-(I=E/(E+T))))}a(u,u,m),s(u,u,g),a(h,h,m),s(h,h,g),e.bezierCurveTo(u[0],u[1],h[0],h[1],S[0],S[1]),l(u,S,d,v*I)}else e.lineTo(S[0],S[1]);w=_,_+=f}return x}function v(e,t){var i=[1/0,1/0],n=[-1/0,-1/0];if(t)for(var o=0;o<e.length;o++){var r=e[o];r[0]<i[0]&&(i[0]=r[0]),r[1]<i[1]&&(i[1]=r[1]),r[0]>n[0]&&(n[0]=r[0]),r[1]>n[1]&&(n[1]=r[1])}return{min:t?i:n,max:t?n:i}}var b=n.extend({type:"ec-polyline",shape:{points:[],smooth:0,smoothConstraint:!0,smoothMonotone:null,connectNulls:!1},style:{fill:null,stroke:"#000"},brush:r(n.prototype.brush),buildPath:function(e,t){var i=t.points,n=0,o=i.length,r=v(i,t.smoothConstraint);if(t.connectNulls){for(;o>0&&p(i[o-1]);o--);for(;n<o&&p(i[n]);n++);}for(;n<o;)n+=f(e,i,n,o,o,1,r.min,r.max,t.smooth,t.smoothMonotone,t.connectNulls)+1}}),y=n.extend({type:"ec-polygon",shape:{points:[],stackedOnPoints:[],smooth:0,stackedOnSmooth:0,smoothConstraint:!0,smoothMonotone:null,connectNulls:!1},brush:r(n.prototype.brush),buildPath:function(e,t){var i=t.points,n=t.stackedOnPoints,o=0,r=i.length,a=t.smoothMonotone,s=v(i,t.smoothConstraint),l=v(n,t.smoothConstraint);if(t.connectNulls){for(;r>0&&p(i[r-1]);r--);for(;o<r&&p(i[o]);o++);}for(;o<r;){var c=f(e,i,o,r,r,1,s.min,s.max,t.smooth,a,t.connectNulls);f(e,n,o+c-1,c,r,-1,l.min,l.max,t.stackedOnSmooth,a,t.connectNulls),o+=c+1,e.closePath()}}});t.Polyline=b,t.Polygon=y},57667:function(e,t,i){var n=i(47475);i(93422),i(1792);var o=i(29329),r=i(76801);n.registerLayout(o),n.registerVisual(r)},93422:function(e,t,i){i(38603).__DEV__;var n=i(26626),o=i(90942),r=i(66023),a=r.concatArray,s=r.mergeAll,l=r.map,c=i(20438).encodeHTML;i(33776);var d="undefined"==typeof Uint32Array?Array:Uint32Array,u="undefined"==typeof Float64Array?Array:Float64Array;function h(e){var t=e.data;t&&t[0]&&t[0][0]&&t[0][0].coord&&(e.data=l(t,function(e){var t={coords:[e[0].coord,e[1].coord]};return e[0].name&&(t.fromName=e[0].name),e[1].name&&(t.toName=e[1].name),s([t,e[0],e[1]])}))}var p=n.extend({type:"series.lines",dependencies:["grid","polar"],visualColorAccessPath:"lineStyle.color",init:function(e){e.data=e.data||[],h(e);var t=this._processFlatCoordsArray(e.data);this._flatCoords=t.flatCoords,this._flatCoordsOffset=t.flatCoordsOffset,t.flatCoords&&(e.data=new Float32Array(t.count)),p.superApply(this,"init",arguments)},mergeOption:function(e){if(e.data=e.data||[],h(e),e.data){var t=this._processFlatCoordsArray(e.data);this._flatCoords=t.flatCoords,this._flatCoordsOffset=t.flatCoordsOffset,t.flatCoords&&(e.data=new Float32Array(t.count))}p.superApply(this,"mergeOption",arguments)},appendData:function(e){var t=this._processFlatCoordsArray(e.data);t.flatCoords&&(this._flatCoords?(this._flatCoords=a(this._flatCoords,t.flatCoords),this._flatCoordsOffset=a(this._flatCoordsOffset,t.flatCoordsOffset)):(this._flatCoords=t.flatCoords,this._flatCoordsOffset=t.flatCoordsOffset),e.data=new Float32Array(t.count)),this.getRawData().appendData(e.data)},_getCoordsFromItemModel:function(e){var t=this.getData().getItemModel(e);return t.option instanceof Array?t.option:t.getShallow("coords")},getLineCoordsCount:function(e){return this._flatCoordsOffset?this._flatCoordsOffset[2*e+1]:this._getCoordsFromItemModel(e).length},getLineCoords:function(e,t){if(this._flatCoordsOffset){for(var i=this._flatCoordsOffset[2*e],n=this._flatCoordsOffset[2*e+1],o=0;o<n;o++)t[o]=t[o]||[],t[o][0]=this._flatCoords[i+2*o],t[o][1]=this._flatCoords[i+2*o+1];return n}for(var r=this._getCoordsFromItemModel(e),o=0;o<r.length;o++)t[o]=t[o]||[],t[o][0]=r[o][0],t[o][1]=r[o][1];return r.length},_processFlatCoordsArray:function(e){var t=0;if(this._flatCoords&&(t=this._flatCoords.length),"number"==typeof e[0]){for(var i=e.length,n=new d(i),o=new u(i),r=0,a=0,s=0,l=0;l<i;){s++;var c=e[l++];n[a++]=r+t,n[a++]=c;for(var h=0;h<c;h++){var p=e[l++],f=e[l++];o[r++]=p,o[r++]=f}}return{flatCoordsOffset:new Uint32Array(n.buffer,0,a),flatCoords:o,count:s}}return{flatCoordsOffset:null,flatCoords:null,count:e.length}},getInitialData:function(e,t){var i=new o(["value"],this);return i.hasItemOption=!1,i.initData(e.data,[],function(e,t,n,o){if(e instanceof Array)return NaN;i.hasItemOption=!0;var r=e.value;if(null!=r)return r instanceof Array?r[o]:r}),i},formatTooltip:function(e){var t=this.getData().getItemModel(e),i=t.get("name");if(i)return i;var n=t.get("fromName"),o=t.get("toName"),r=[];return null!=n&&r.push(n),null!=o&&r.push(o),c(r.join(" > "))},preventIncremental:function(){return!!this.get("effect.show")},getProgressive:function(){var e=this.option.progressive;return null==e?this.option.large?1e4:this.get("progressive"):e},getProgressiveThreshold:function(){var e=this.option.progressiveThreshold;return null==e?this.option.large?2e4:this.get("progressiveThreshold"):e},defaultOption:{coordinateSystem:"geo",zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,label:{show:!1,position:"end"},lineStyle:{opacity:.5}}});e.exports=p},1792:function(e,t,i){i(38603).__DEV__;var n=i(47475),o=i(93275),r=i(36397),a=i(7574),s=i(14385),l=i(94479),c=i(87300),d=i(29329);e.exports=n.extendChartView({type:"lines",init:function(){},render:function(e,t,i){var n=e.getData(),o=this._updateLineDraw(n,e),r=e.get("zlevel"),a=e.get("effect.trailLength"),s=i.getZr(),l="svg"===s.painter.getType();l||s.painter.getLayer(r).clear(!0),null==this._lastZlevel||l||s.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(e)&&a&&!l&&s.configLayer(r,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(a/10+.9,1),0)}),o.updateData(n),this._lastZlevel=r,this._finished=!0},incrementalPrepareRender:function(e,t,i){var n=e.getData();this._updateLineDraw(n,e).incrementalPrepareUpdate(n),this._clearLayer(i),this._finished=!1},incrementalRender:function(e,t,i){this._lineDraw.incrementalUpdate(e,t.getData()),this._finished=e.end===t.getData().count()},updateTransform:function(e,t,i){var n=e.getData(),o=e.pipelineContext;if(!this._finished||o.large||o.progressiveRender)return{update:!0};var r=d.reset(e);r.progress&&r.progress({start:0,end:n.count()},n),this._lineDraw.updateLayout(),this._clearLayer(i)},_updateLineDraw:function(e,t){var i=this._lineDraw,n=this._showEffect(t),d=!!t.get("polyline"),u=t.pipelineContext.large;return i&&n===this._hasEffet&&d===this._isPolyline&&u===this._isLargeDraw||(i&&i.remove(),i=this._lineDraw=u?new c:new o(d?n?l:s:n?r:a),this._hasEffet=n,this._isPolyline=d,this._isLargeDraw=u,this.group.removeAll()),this.group.add(i.group),i},_showEffect:function(e){return!!e.get("effect.show")},_clearLayer:function(e){var t=e.getZr();"svg"!==t.painter.getType()&&null!=this._lastZlevel&&t.painter.getLayer(this._lastZlevel).clear(!0)},remove:function(e,t){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(t)},dispose:function(){}})},29329:function(e,t,i){e.exports={seriesType:"lines",plan:i(85773)(),reset:function(e){var t=e.coordinateSystem,i=e.get("polyline"),n=e.pipelineContext.large;return{progress:function(o,r){var a=[];if(n){var s,l=o.end-o.start;if(i){for(var c=0,d=o.start;d<o.end;d++)c+=e.getLineCoordsCount(d);s=new Float32Array(l+2*c)}else s=new Float32Array(4*l);for(var u=0,h=[],d=o.start;d<o.end;d++){var p=e.getLineCoords(d,a);i&&(s[u++]=p);for(var f=0;f<p;f++)h=t.dataToPoint(a[f],!1,h),s[u++]=h[0],s[u++]=h[1]}r.setLayout("linesPoints",s)}else for(var d=o.start;d<o.end;d++){var g=r.getItemModel(d),p=e.getLineCoords(d,a),m=[];if(i)for(var v=0;v<p;v++)m.push(t.dataToPoint(a[v]));else{m[0]=t.dataToPoint(a[0]),m[1]=t.dataToPoint(a[1]);var b=g.get("lineStyle.curveness");+b&&(m[2]=[(m[0][0]+m[1][0])/2-(m[0][1]-m[1][1])*b,(m[0][1]+m[1][1])/2-(m[1][0]-m[0][0])*b])}r.setItemLayout(d,m)}}}}}},76801:function(e){function t(e){return e instanceof Array||(e=[e,e]),e}var i="lineStyle.opacity".split(".");e.exports={seriesType:"lines",reset:function(e,n,o){var r=t(e.get("symbol")),a=t(e.get("symbolSize")),s=e.getData();return s.setVisual("fromSymbol",r&&r[0]),s.setVisual("toSymbol",r&&r[1]),s.setVisual("fromSymbolSize",a&&a[0]),s.setVisual("toSymbolSize",a&&a[1]),s.setVisual("opacity",e.get(i)),{dataEach:s.hasItemOption?function(e,n){var o=e.getItemModel(n),r=t(o.getShallow("symbol",!0)),a=t(o.getShallow("symbolSize",!0)),s=o.get(i);r[0]&&e.setItemVisual(n,"fromSymbol",r[0]),r[1]&&e.setItemVisual(n,"toSymbol",r[1]),a[0]&&e.setItemVisual(n,"fromSymbolSize",a[0]),a[1]&&e.setItemVisual(n,"toSymbolSize",a[1]),e.setItemVisual(n,"opacity",s)}:null}}}},74719:function(e,t,i){var n=i(47475);i(23296),i(49024),i(74911),i(85605);var o=i(28037),r=i(76807),a=i(94388),s=i(11903),l=i(90353);n.registerLayout(o),n.registerVisual(r),n.registerProcessor(n.PRIORITY.PROCESSOR.STATISTIC,a),n.registerPreprocessor(s),l("map",[{type:"mapToggleSelect",event:"mapselectchanged",method:"toggleSelected"},{type:"mapSelect",event:"mapselected",method:"select"},{type:"mapUnSelect",event:"mapunselected",method:"unSelect"}])},23296:function(e,t,i){var n=i(66023),o=i(71469),r=i(26626),a=i(20438),s=a.encodeHTML,l=a.addCommas,c=i(33601),d=i(89211).retrieveRawAttr,u=i(70351),h=r.extend({type:"series.map",dependencies:["geo"],layoutMode:"box",needsDrawMap:!1,seriesGroup:[],getInitialData:function(e){for(var t=o(this,["value"]),i=t.mapDimension("value"),r=n.createHashMap(),a=[],s=[],l=0,c=t.count();l<c;l++){var h=t.getName(l);r.set(h,!0),a.push({name:h,value:t.get(i,l),selected:d(t,l,"selected")})}var p=u.load(this.getMapType(),this.option.nameMap);return n.each(p.regions,function(e){var t=e.name;r.get(t)||(a.push({name:t}),s.push(t))}),this.updateSelectedMap(a),t.appendValues([],s),t},getHostGeoModel:function(){var e=this.option.geoIndex;return null!=e?this.dependentModels.geo[e]:null},getMapType:function(){return(this.getHostGeoModel()||this).option.map},getRawValue:function(e){var t=this.getData();return t.get(t.mapDimension("value"),e)},getRegionModel:function(e){var t=this.getData();return t.getItemModel(t.indexOfName(e))},formatTooltip:function(e){for(var t=this.getData(),i=l(this.getRawValue(e)),n=t.getName(e),o=this.seriesGroup,r=[],a=0;a<o.length;a++){var c=o[a].originalData.indexOfName(n),d=t.mapDimension("value");isNaN(o[a].originalData.get(d,c))||r.push(s(o[a].name))}return r.join(", ")+"<br />"+s(n+" : "+i)},getTooltipPosition:function(e){if(null!=e){var t=this.getData().getName(e),i=this.coordinateSystem,n=i.getRegion(t);return n&&i.dataToPoint(n.center)}},setZoom:function(e){this.option.zoom=e},setCenter:function(e){this.option.center=e},defaultOption:{zlevel:0,z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:.75,showLegendSymbol:!0,dataRangeHoverLink:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}}}});n.mixin(h,c),e.exports=h},49024:function(e,t,i){var n=i(47475),o=i(66023),r=i(76165),a=i(88142),s="__seriesMapHighDown",l="__seriesMapCallKey";function c(e){var t=this[s];t&&t.recordVersion===this[l]&&d(t,e)}function d(e,t){var i=e.circle,n=e.labelModel,o=e.hoverLabelModel,a=e.emphasisText,s=e.normalText;t?(i.style.extendFrom(r.setTextStyle({},o,{text:o.get("show")?a:null},{isRectText:!0,useInsideStyle:!1},!0)),i.__mapOriginalZ2=i.z2,i.z2+=r.Z2_EMPHASIS_LIFT):(r.setTextStyle(i.style,n,{text:n.get("show")?s:null,textPosition:n.getShallow("position")||"bottom"},{isRectText:!0,useInsideStyle:!1}),i.dirty(!1),null!=i.__mapOriginalZ2&&(i.z2=i.__mapOriginalZ2,i.__mapOriginalZ2=null))}e.exports=n.extendChartView({type:"map",render:function(e,t,i,n){if(!n||"mapToggleSelect"!==n.type||n.from!==this.uid){var o=this.group;if(o.removeAll(),!e.getHostGeoModel()){if(n&&"geoRoam"===n.type&&"series"===n.componentType&&n.seriesId===e.id){var r=this._mapDraw;r&&o.add(r.group)}else if(e.needsDrawMap){var r=this._mapDraw||new a(i,!0);o.add(r.group),r.draw(e,t,i,this,n),this._mapDraw=r}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;e.get("showLegendSymbol")&&t.getComponent("legend")&&this._renderSymbols(e,t,i)}}},remove:function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},dispose:function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},_renderSymbols:function(e,t,i){var n=e.originalData,a=this.group;n.each(n.mapDimension("value"),function(t,i){if(!isNaN(t)){var u=n.getItemLayout(i);if(u&&u.point){var h=u.point,p=u.offset,f=new r.Circle({style:{fill:e.getData().getVisual("color")},shape:{cx:h[0]+9*p,cy:h[1],r:3},silent:!0,z2:8+(p?0:r.Z2_EMPHASIS_LIFT+1)});if(!p){var g=e.mainSeries.getData(),m=n.getName(i),v=g.indexOfName(m),b=n.getItemModel(i),y=b.getModel("label"),w=b.getModel("emphasis.label"),_=g.getItemGraphicEl(v),x=o.retrieve2(e.getFormattedLabel(v,"normal"),m),S=o.retrieve2(e.getFormattedLabel(v,"emphasis"),x),C=_[s],k=Math.random();if(!C){C=_[s]={};var I=o.curry(c,!0),A=o.curry(c,!1);_.on("mouseover",I).on("mouseout",A).on("emphasis",I).on("normal",A)}_[l]=k,o.extend(C,{recordVersion:k,circle:f,labelModel:y,hoverLabelModel:w,emphasisText:S,normalText:x}),d(C,!1)}a.add(f)}}})}})},11903:function(e,t,i){var n=i(66023);e.exports=function(e){var t=[];n.each(e.series,function(e){e&&"map"===e.type&&(t.push(e),e.map=e.map||e.mapType,n.defaults(e,e.mapLocation))})}},94388:function(e,t,i){var n=i(66023);e.exports=function(e){var t={};e.eachSeriesByType("map",function(e){var i=e.getHostGeoModel(),n=i?"o"+i.id:"i"+e.getMapType();(t[n]=t[n]||[]).push(e)}),n.each(t,function(e,t){for(var i,o,r,a=(i=n.map(e,function(e){return e.getData()}),o=e[0].get("mapValueCalculation"),r={},n.each(i,function(e){e.each(e.mapDimension("value"),function(t,i){var n="ec-"+e.getName(i);r[n]=r[n]||[],isNaN(t)||r[n].push(t)})}),i[0].map(i[0].mapDimension("value"),function(e,t){for(var n,a="ec-"+i[0].getName(t),s=0,l=1/0,c=-1/0,d=r[a].length,u=0;u<d;u++)l=Math.min(l,r[a][u]),c=Math.max(c,r[a][u]),s+=r[a][u];return n="min"===o?l:"max"===o?c:"average"===o?s/d:s,0===d?NaN:n})),s=0;s<e.length;s++)e[s].originalData=e[s].getData();for(var s=0;s<e.length;s++)e[s].seriesGroup=e,e[s].needsDrawMap=0===s&&!e[s].getHostGeoModel(),e[s].setData(a.cloneShallow()),e[s].mainSeries=e[0]})}},28037:function(e,t,i){var n=i(66023);e.exports=function(e){var t={};e.eachSeriesByType("map",function(i){var o=i.getMapType();if(!i.getHostGeoModel()&&!t[o]){var r={};n.each(i.seriesGroup,function(t){var i=t.coordinateSystem,n=t.originalData;t.get("showLegendSymbol")&&e.getComponent("legend")&&n.each(n.mapDimension("value"),function(e,t){var o=n.getName(t),a=i.getRegion(o);if(!(!a||isNaN(e))){var s=r[o]||0,l=i.dataToPoint(a.center);r[o]=s+1,n.setItemLayout(t,{point:l,offset:s})}})});var a=i.getData();a.each(function(e){var t=a.getName(e),i=a.getItemLayout(e)||{};i.showLabel=!r[t],a.setItemLayout(e,i)}),t[o]=!0}})}},76807:function(e){e.exports=function(e){e.eachSeriesByType("map",function(e){var t=e.get("color"),i=e.getModel("itemStyle"),n=i.get("areaColor"),o=i.get("color")||t[e.seriesIndex%t.length];e.getData().setVisual({areaColor:n,color:o})})}},4193:function(e,t,i){var n=i(47475);i(41891),i(11779),i(65134);var o=i(32106);n.registerVisual(o)},11779:function(e,t,i){var n=i(66023),o=n.each,r=n.createHashMap,a=i(26626),s=i(6551);e.exports=a.extend({type:"series.parallel",dependencies:["parallel"],visualColorAccessPath:"lineStyle.color",getInitialData:function(e,t){var i=this.getSource();return function(e,t){if(!e.encodeDefine){var i=t.ecModel.getComponent("parallel",t.get("parallelIndex"));if(i){var n=e.encodeDefine=r();o(i.dimensions,function(e){var t=+e.replace("dim","");n.set(e,t)})}}}(i,this),s(i,this)},getRawIndicesByActiveState:function(e){var t=this.coordinateSystem,i=this.getData(),n=[];return t.eachActiveState(i,function(t,o){e===t&&n.push(i.getRawIndex(o))}),n},defaultOption:{zlevel:0,z:2,coordinateSystem:"parallel",parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:"solid"},emphasis:{label:{show:!1}},progressive:500,smooth:!1,animationEasing:"linear"}})},65134:function(e,t,i){var n=i(76165);function o(e,t,i,n){for(var o=[],r=0;r<i.length;r++){var a,s=i[r],l=e.get(e.mapDimension(s),t);a=l,("category"===n.getAxis(s).type?null==a:null==a||isNaN(a))||o.push(n.dataToPoint(l,s))}return o}function r(e,t,i,r,a){var s=o(e,i,r,a),l=new n.Polyline({shape:{points:s},silent:!0,z2:10});return t.add(l),e.setItemGraphicEl(i,l),l}function a(e){var t=e.get("smooth",!0);return!0===t&&(t=.3),{lineStyle:e.getModel("lineStyle").getLineStyle(),smooth:null!=t?t:.3}}function s(e,t,i,n){var o=n.lineStyle;t.hasItemOption&&(o=t.getItemModel(i).getModel("lineStyle").getLineStyle()),e.useStyle(o);var r=e.style;r.fill=null,r.stroke=t.getItemVisual(i,"color"),r.opacity=t.getItemVisual(i,"opacity"),n.smooth&&(e.shape.smooth=n.smooth)}e.exports=i(55756).extend({type:"parallel",init:function(){this._dataGroup=new n.Group,this.group.add(this._dataGroup),this._data,this._initialized},render:function(e,t,i,l){var c=this._dataGroup,d=e.getData(),u=this._data,h=e.coordinateSystem,p=h.dimensions,f=a(e);if(d.diff(u).add(function(e){s(r(d,c,e,p,h),d,e,f)}).update(function(t,i){var r=u.getItemGraphicEl(i),a=o(d,t,p,h);d.setItemGraphicEl(t,r);var c=l&&!1===l.animation?null:e;n.updateProps(r,{shape:{points:a}},c,t),s(r,d,t,f)}).remove(function(e){var t=u.getItemGraphicEl(e);c.remove(t)}).execute(),!this._initialized){this._initialized=!0;var g,m,v,b,y,w,_,x=(g=h,m=e,v=function(){setTimeout(function(){c.removeClipPath()})},b=g.model,y=g.getRect(),w=new n.Rect({shape:{x:y.x,y:y.y,width:y.width,height:y.height}}),_="horizontal"===b.get("layout")?"width":"height",w.setShape(_,0),n.initProps(w,{shape:{width:y.width,height:y.height}},m,v),w);c.setClipPath(x)}this._data=d},incrementalPrepareRender:function(e,t,i){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},incrementalRender:function(e,t,i){for(var n=t.getData(),o=t.coordinateSystem,l=o.dimensions,c=a(t),d=e.start;d<e.end;d++){var u=r(n,this._dataGroup,d,l,o);u.incremental=!0,s(u,n,d,c)}},dispose:function(){},remove:function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null}})},32106:function(e){var t=["lineStyle","normal","opacity"];e.exports={seriesType:"parallel",reset:function(e,i,n){var o=e.getModel("itemStyle"),r=e.getModel("lineStyle"),a=i.get("color"),s=r.get("color")||o.get("color")||a[e.seriesIndex%a.length],l=e.get("inactiveOpacity"),c=e.get("activeOpacity"),d=e.getModel("lineStyle").getLineStyle(),u=e.coordinateSystem,h=e.getData(),p={normal:d.opacity,active:c,inactive:l};return h.setVisual("color",s),{progress:function(e,i){u.eachActiveState(i,function(e,n){var o=p[e];if("normal"===e&&i.hasItemOption){var r=i.getItemModel(n).get(t,!0);null!=r&&(o=r)}i.setItemVisual(n,"opacity",o)},e.start,e.end)}}}}},21223:function(e,t,i){var n=i(47475),o=i(66023);i(34087),i(14624),i(54687);var r=i(42862).layout,a=i(41314);i(31372),n.registerLayout(o.curry(r,"pictorialBar")),n.registerVisual(a("pictorialBar","roundRect"))},92004:function(e,t,i){var n=i(47475),o=i(66023);i(8515),i(92737);var r=i(90353),a=i(34907),s=i(45202),l=i(6817);r("pie",[{type:"pieToggleSelect",event:"pieselectchanged",method:"toggleSelected"},{type:"pieSelect",event:"pieselected",method:"select"},{type:"pieUnSelect",event:"pieunselected",method:"unSelect"}]),n.registerVisual(a("pie")),n.registerLayout(o.curry(s,"pie")),n.registerProcessor(l("pie"))},8515:function(e,t,i){var n=i(47475),o=i(71469),r=i(66023),a=i(70018),s=i(98763).getPercentWithPrecision,l=i(33601),c=i(89211).retrieveRawAttr,d=n.extendSeriesModel({type:"series.pie",init:function(e){d.superApply(this,"init",arguments),this.legendDataProvider=function(){return this.getRawData()},this.updateSelectedMap(this._createSelectableList()),this._defaultLabelLine(e)},mergeOption:function(e){d.superCall(this,"mergeOption",e),this.updateSelectedMap(this._createSelectableList())},getInitialData:function(e,t){return o(this,["value"])},_createSelectableList:function(){for(var e=this.getRawData(),t=e.mapDimension("value"),i=[],n=0,o=e.count();n<o;n++)i.push({name:e.getName(n),value:e.get(t,n),selected:c(e,n,"selected")});return i},getDataParams:function(e){var t=this.getData(),i=d.superCall(this,"getDataParams",e),n=[];return t.each(t.mapDimension("value"),function(e){n.push(e)}),i.percent=s(n,e,t.hostModel.get("percentPrecision")),i.$vars.push("percent"),i},_defaultLabelLine:function(e){a.defaultEmphasis(e,"labelLine",["show"]);var t=e.labelLine,i=e.emphasis.labelLine;t.show=t.show&&e.label.show,i.show=i.show&&e.emphasis.label.show},defaultOption:{zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,selectedOffset:10,hoverOffset:10,avoidLabelOverlap:!0,percentPrecision:2,stillShowZeroSum:!0,label:{rotate:!1,show:!0,position:"outer"},labelLine:{show:!0,length:15,length2:15,smooth:!1,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1},animationType:"expansion",animationEasing:"cubicOut"}});r.mixin(d,l),e.exports=d},92737:function(e,t,i){var n=i(66023),o=i(76165),r=i(55756);function a(e,t,i,n){var o=t.getData(),r=this.dataIndex,a=o.getName(r),l=t.get("selectedOffset");n.dispatchAction({type:"pieToggleSelect",from:e,name:a,seriesId:t.id}),o.each(function(e){s(o.getItemGraphicEl(e),o.getItemLayout(e),t.isSelected(o.getName(e)),l,i)})}function s(e,t,i,n,o){var r=(t.startAngle+t.endAngle)/2,a=i?n:0,s=[Math.cos(r)*a,Math.sin(r)*a];o?e.animate().when(200,{position:s}).start("bounceOut"):e.attr("position",s)}function l(e,t){o.Group.call(this);var i=new o.Sector({z2:2}),n=new o.Polyline,r=new o.Text;function a(){n.ignore=n.hoverIgnore,r.ignore=r.hoverIgnore}function s(){n.ignore=n.normalIgnore,r.ignore=r.normalIgnore}this.add(i),this.add(n),this.add(r),this.updateData(e,t,!0),this.on("emphasis",a).on("normal",s).on("mouseover",a).on("mouseout",s)}var c=l.prototype;c.updateData=function(e,t,i){var r=this.childAt(0),a=e.hostModel,l=e.getItemModel(t),c=e.getItemLayout(t),d=n.extend({},c);d.label=null,i?(r.setShape(d),"scale"===a.getShallow("animationType")?(r.shape.r=c.r0,o.initProps(r,{shape:{r:c.r}},a,t)):(r.shape.endAngle=c.startAngle,o.updateProps(r,{shape:{endAngle:c.endAngle}},a,t))):o.updateProps(r,{shape:d},a,t);var u=e.getItemVisual(t,"color");r.useStyle(n.defaults({lineJoin:"bevel",fill:u},l.getModel("itemStyle").getItemStyle())),r.hoverStyle=l.getModel("emphasis.itemStyle").getItemStyle();var h=l.getShallow("cursor");function p(){r.stopAnimation(!0),r.animateTo({shape:{r:c.r+a.get("hoverOffset")}},300,"elasticOut")}function f(){r.stopAnimation(!0),r.animateTo({shape:{r:c.r}},300,"elasticOut")}h&&r.attr("cursor",h),s(this,e.getItemLayout(t),a.isSelected(null,t),a.get("selectedOffset"),a.get("animation")),r.off("mouseover").off("mouseout").off("emphasis").off("normal"),l.get("hoverAnimation")&&a.isAnimationEnabled()&&r.on("mouseover",p).on("mouseout",f).on("emphasis",p).on("normal",f),this._updateLabel(e,t),o.setHoverStyle(this)},c._updateLabel=function(e,t){var i=this.childAt(1),n=this.childAt(2),r=e.hostModel,a=e.getItemModel(t),s=e.getItemLayout(t).label,l=e.getItemVisual(t,"color");o.updateProps(i,{shape:{points:s.linePoints||[[s.x,s.y],[s.x,s.y],[s.x,s.y]]}},r,t),o.updateProps(n,{style:{x:s.x,y:s.y}},r,t),n.attr({rotation:s.rotation,origin:[s.x,s.y],z2:10});var c=a.getModel("label"),d=a.getModel("emphasis.label"),u=a.getModel("labelLine"),h=a.getModel("emphasis.labelLine"),l=e.getItemVisual(t,"color");o.setLabelStyle(n.style,n.hoverStyle={},c,d,{labelFetcher:e.hostModel,labelDataIndex:t,defaultText:e.getName(t),autoColor:l,useInsideStyle:!!s.inside},{textAlign:s.textAlign,textVerticalAlign:s.verticalAlign,opacity:e.getItemVisual(t,"opacity")}),n.ignore=n.normalIgnore=!c.get("show"),n.hoverIgnore=!d.get("show"),i.ignore=i.normalIgnore=!u.get("show"),i.hoverIgnore=!h.get("show"),i.setStyle({stroke:l,opacity:e.getItemVisual(t,"opacity")}),i.setStyle(u.getModel("lineStyle").getLineStyle()),i.hoverStyle=h.getModel("lineStyle").getLineStyle();var p=u.get("smooth");p&&!0===p&&(p=.4),i.setShape({smooth:p})},n.inherits(l,o.Group),e.exports=r.extend({type:"pie",init:function(){var e=new o.Group;this._sectorGroup=e},render:function(e,t,i,o){if(!o||o.from!==this.uid){var r=e.getData(),s=this._data,c=this.group,d=t.get("animation"),u=!s,h=e.get("animationType"),p=n.curry(a,this.uid,e,d,i),f=e.get("selectedMode");if(r.diff(s).add(function(e){var t=new l(r,e);u&&"scale"!==h&&t.eachChild(function(e){e.stopAnimation(!0)}),f&&t.on("click",p),r.setItemGraphicEl(e,t),c.add(t)}).update(function(e,t){var i=s.getItemGraphicEl(t);i.updateData(r,e),i.off("click"),f&&i.on("click",p),c.add(i),r.setItemGraphicEl(e,i)}).remove(function(e){var t=s.getItemGraphicEl(e);c.remove(t)}).execute(),d&&u&&r.count()>0&&"scale"!==h){var g=r.getItemLayout(0),m=Math.max(i.getWidth(),i.getHeight())/2,v=n.bind(c.removeClipPath,c);c.setClipPath(this._createClipPath(g.cx,g.cy,m,g.startAngle,g.clockwise,v,e))}else c.removeClipPath();this._data=r}},dispose:function(){},_createClipPath:function(e,t,i,n,r,a,s){var l=new o.Sector({shape:{cx:e,cy:t,r0:0,r:i,startAngle:n,endAngle:n,clockwise:r}});return o.initProps(l,{shape:{endAngle:n+(r?1:-1)*Math.PI*2}},s,a),l},containPoint:function(e,t){var i=t.getData().getItemLayout(0);if(i){var n=e[0]-i.cx,o=e[1]-i.cy,r=Math.sqrt(n*n+o*o);return r<=i.r&&r>=i.r0}}})},22621:function(e,t,i){var n=i(99280);function o(e,t,i,n,o,r,a){function s(t,i){for(var n=t;n>=0&&(e[n].y-=i,!(n>0)||!(e[n].y>e[n-1].y+e[n-1].height));n--);}function l(e,t,i,n,o,r){for(var a=t?Number.MAX_VALUE:0,s=0,l=e.length;s<l;s++){var c=Math.abs(e[s].y-n),d=e[s].len,u=e[s].len2,h=c<o+d?Math.sqrt((o+d+u)*(o+d+u)-c*c):Math.abs(e[s].x-i);t&&h>=a&&(h=a-10),!t&&h<=a&&(h=a+10),e[s].x=i+h*r,a=h}}e.sort(function(e,t){return e.y-t.y});for(var c,d=0,u=e.length,h=[],p=[],f=0;f<u;f++)(c=e[f].y-d)<0&&function(t,i,n,o){for(var r=t;r<i;r++)if(e[r].y+=n,r>t&&r+1<i&&e[r+1].y>e[r].y+e[r].height)return void s(r,n/2);s(i-1,n/2)}(f,u,-c,0),d=e[f].y+e[f].height;a-d<0&&s(u-1,d-a);for(var f=0;f<u;f++)e[f].y>=i?p.push(e[f]):h.push(e[f]);l(h,!1,t,i,n,o),l(p,!0,t,i,n,o)}function r(e){return"center"===e.position}e.exports=function(e,t,i,a){var s,l,c=e.getData(),d=[],u=!1;c.each(function(i){var o,r,a,h,p=c.getItemLayout(i),f=c.getItemModel(i),g=f.getModel("label"),m=g.get("position")||f.get("emphasis.label.position"),v=f.getModel("labelLine"),b=v.get("length"),y=v.get("length2"),w=(p.startAngle+p.endAngle)/2,_=Math.cos(w),x=Math.sin(w);s=p.cx,l=p.cy;var S="inside"===m||"inner"===m;if("center"===m)o=p.cx,r=p.cy,h="center";else{var C=(S?(p.r+p.r0)/2*_:p.r*_)+s,k=(S?(p.r+p.r0)/2*x:p.r*x)+l;if(o=C+3*_,r=k+3*x,!S){var I=C+_*(b+t-p.r),A=k+x*(b+t-p.r),T=I+(_<0?-1:1)*y;o=T+(_<0?-5:5),r=A,a=[[C,k],[I,A],[T,A]]}h=S?"center":_>0?"left":"right"}var E=g.getFont(),R=g.get("rotate")?_<0?-w+Math.PI:-w:0,D=e.getFormattedLabel(i,"normal")||c.getName(i),O=n.getBoundingRect(D,E,h,"top");u=!!R,p.label={x:o,y:r,position:m,height:O.height,len:b,len2:y,linePoints:a,textAlign:h,verticalAlign:"middle",rotation:R,inside:S},S||d.push(p.label)}),!u&&e.get("avoidLabelOverlap")&&function(e,t,i,n,a,s){for(var l=[],c=[],d=0;d<e.length;d++)r(e[d])||(e[d].x<t?l.push(e[d]):c.push(e[d]));o(c,t,i,n,1,a,s),o(l,t,i,n,-1,a,s);for(var d=0;d<e.length;d++)if(!r(e[d])){var u=e[d].linePoints;if(u){var h=u[1][0]-u[2][0];e[d].x<t?u[2][0]=e[d].x+3:u[2][0]=e[d].x-3,u[1][1]=u[2][1]=e[d].y,u[1][0]=u[2][0]+h}}}(d,s,l,t,i,a)}},45202:function(e,t,i){var n=i(98763),o=n.parsePercent,r=n.linearMap,a=i(22621),s=i(66023),l=2*Math.PI,c=Math.PI/180;e.exports=function(e,t,i,n){t.eachSeriesByType(e,function(e){var t=e.getData(),n=t.mapDimension("value"),d=e.get("center"),u=e.get("radius");s.isArray(u)||(u=[0,u]),s.isArray(d)||(d=[d,d]);var h=i.getWidth(),p=i.getHeight(),f=Math.min(h,p),g=o(d[0],h),m=o(d[1],p),v=o(u[0],f/2),b=o(u[1],f/2),y=-e.get("startAngle")*c,w=e.get("minAngle")*c,_=0;t.each(n,function(e){!isNaN(e)&&_++});var x=t.getSum(n),S=Math.PI/(x||_)*2,C=e.get("clockwise"),k=e.get("roseType"),I=e.get("stillShowZeroSum"),A=t.getDataExtent(n);A[0]=0;var T=l,E=0,R=y,D=C?1:-1;if(t.each(n,function(e,i){if(isNaN(e))return void t.setItemLayout(i,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:C,cx:g,cy:m,r0:v,r:k?NaN:b});(n="area"!==k?0===x&&I?S:e*S:l/_)<w?(n=w,T-=w):E+=e;var n,o=R+D*n;t.setItemLayout(i,{angle:n,startAngle:R,endAngle:o,clockwise:C,cx:g,cy:m,r0:v,r:k?r(e,A,[v,b]):b}),R=o}),T<l&&_)if(T<=.001){var O=l/_;t.each(n,function(e,i){if(!isNaN(e)){var n=t.getItemLayout(i);n.angle=O,n.startAngle=y+D*i*O,n.endAngle=y+D*(i+1)*O}})}else S=T/E,R=y,t.each(n,function(e,i){if(!isNaN(e)){var n=t.getItemLayout(i),o=n.angle===w?w:e*S;n.startAngle=R,n.endAngle=R+D*o,R+=D*o}});a(e,b,h,p)})}},13790:function(e,t,i){var n=i(47475);i(27154),i(87681),i(59524);var o=i(34907),r=i(41314),a=i(29056),s=i(6817),l=i(93535);n.registerVisual(o("radar")),n.registerVisual(r("radar","circle")),n.registerLayout(a),n.registerProcessor(s("radar")),n.registerPreprocessor(l)},87681:function(e,t,i){var n=i(26626),o=i(71469),r=i(66023),a=i(20438).encodeHTML,s=n.extend({type:"series.radar",dependencies:["radar"],init:function(e){s.superApply(this,"init",arguments),this.legendDataProvider=function(){return this.getRawData()}},getInitialData:function(e,t){return o(this,{generateCoord:"indicator_",generateCoordCount:1/0})},formatTooltip:function(e){var t=this.getData(),i=this.coordinateSystem.getIndicatorAxes(),n=this.getData().getName(e);return a(""===n?this.name:n)+"<br/>"+r.map(i,function(i,n){var o=t.get(t.mapDimension(i.dim),e);return a(i.name+" : "+o)}).join("<br />")},defaultOption:{zlevel:0,z:2,coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid"},label:{position:"top"},symbol:"emptyCircle",symbolSize:4}});e.exports=s},59524:function(e,t,i){var n=i(47475),o=i(76165),r=i(66023),a=i(87557);e.exports=n.extendChartView({type:"radar",render:function(e,t,i){var n=e.coordinateSystem,s=this.group,l=e.getData(),c=this._data;function d(t,i,n,s,l,c){n.removeAll();for(var d=0;d<i.length-1;d++){var u=function(e,t){var i=e.getItemVisual(t,"symbol")||"circle",n=e.getItemVisual(t,"color");if("none"!==i){var o,s=(o=e.getItemVisual(t,"symbolSize"),r.isArray(o)||(o=[+o,+o]),o),l=a.createSymbol(i,-1,-1,2,2,n);return l.attr({style:{strokeNoScale:!0},z2:100,scale:[s[0]/2,s[1]/2]}),l}}(s,l);u&&(u.__dimIdx=d,t[d]?(u.attr("position",t[d]),o[c?"initProps":"updateProps"](u,{position:i[d]},e,l)):u.attr("position",i[d]),n.add(u))}}function u(e){return r.map(e,function(e){return[n.cx,n.cy]})}l.diff(c).add(function(t){var i=l.getItemLayout(t);if(i){var n=new o.Polygon,r=new o.Polyline,a={shape:{points:i}};n.shape.points=u(i),r.shape.points=u(i),o.initProps(n,a,e,t),o.initProps(r,a,e,t);var s=new o.Group,c=new o.Group;s.add(r),s.add(n),s.add(c),d(r.shape.points,i,c,l,t,!0),l.setItemGraphicEl(t,s)}}).update(function(t,i){var n=c.getItemGraphicEl(i),r=n.childAt(0),a=n.childAt(1),s=n.childAt(2),u={shape:{points:l.getItemLayout(t)}};u.shape.points&&(d(r.shape.points,u.shape.points,s,l,t,!1),o.updateProps(r,u,e),o.updateProps(a,u,e),l.setItemGraphicEl(t,n))}).remove(function(e){s.remove(c.getItemGraphicEl(e))}).execute(),l.eachItemGraphicEl(function(e,t){var i=l.getItemModel(t),n=e.childAt(0),a=e.childAt(1),c=e.childAt(2),d=l.getItemVisual(t,"color");s.add(e),n.useStyle(r.defaults(i.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:d})),n.hoverStyle=i.getModel("emphasis.lineStyle").getLineStyle();var u=i.getModel("areaStyle"),h=i.getModel("emphasis.areaStyle"),p=u.isEmpty()&&u.parentModel.isEmpty(),f=h.isEmpty()&&h.parentModel.isEmpty();f=f&&p,a.ignore=p,a.useStyle(r.defaults(u.getAreaStyle(),{fill:d,opacity:.7})),a.hoverStyle=h.getAreaStyle();var g=i.getModel("itemStyle").getItemStyle(["color"]),m=i.getModel("emphasis.itemStyle").getItemStyle(),v=i.getModel("label"),b=i.getModel("emphasis.label");function y(){a.attr("ignore",f)}function w(){a.attr("ignore",p)}c.eachChild(function(e){e.setStyle(g),e.hoverStyle=r.clone(m),o.setLabelStyle(e.style,e.hoverStyle,v,b,{labelFetcher:l.hostModel,labelDataIndex:t,labelDimIndex:e.__dimIdx,defaultText:l.get(l.dimensions[e.__dimIdx],t),autoColor:d,isRectText:!0})}),e.off("mouseover").off("mouseout").off("normal").off("emphasis"),e.on("emphasis",y).on("mouseover",y).on("normal",w).on("mouseout",w),o.setHoverStyle(e)}),this._data=l},remove:function(){this.group.removeAll(),this._data=null},dispose:function(){}})},93535:function(e,t,i){var n=i(66023);e.exports=function(e){var t=e.polar;if(t){n.isArray(t)||(t=[t]);var i=[];n.each(t,function(t,o){t.indicator?(t.type&&!t.shape&&(t.shape=t.type),e.radar=e.radar||[],n.isArray(e.radar)||(e.radar=[e.radar]),e.radar.push(t)):i.push(t)}),e.polar=i}n.each(e.series,function(e){e&&"radar"===e.type&&e.polarIndex&&(e.radarIndex=e.polarIndex)})}},29056:function(e){e.exports=function(e){e.eachSeriesByType("radar",function(e){var t=e.getData(),i=[],n=e.coordinateSystem;if(n){for(var o=n.getIndicatorAxes(),r=0;r<o.length;r++)t.each(t.mapDimension(o[r].dim),a);t.each(function(e){i[e][0]&&i[e].push(i[e][0].slice()),t.setItemLayout(e,i[e])})}function a(e,t){i[t]=i[t]||[],i[t][r]=n.dataToPoint(e,r)}})}},79034:function(e,t,i){var n=i(47475);i(48564),i(12824),i(95260);var o=i(19594),r=i(43568);n.registerLayout(o),n.registerVisual(r)},48564:function(e,t,i){var n=i(26626),o=i(89923),r=i(20438).encodeHTML,a=n.extend({type:"series.sankey",layoutInfo:null,getInitialData:function(e){var t=e.edges||e.links,i=e.data||e.nodes;if(i&&t)return o(i,t,this,!0).data},setNodePosition:function(e,t){var i=this.option.data[e];i.localX=t[0],i.localY=t[1]},getGraph:function(){return this.getData().graph},getEdgeData:function(){return this.getGraph().edgeData},formatTooltip:function(e,t,i){if("edge"===i){var n=this.getDataParams(e,i),o=n.data,s=o.source+" -- "+o.target;return n.value&&(s+=" : "+n.value),r(s)}return a.superCall(this,"formatTooltip",e,t)},optionUpdated:function(){var e=this.option;!0===e.focusNodeAdjacency&&(e.focusNodeAdjacency="allEdges")},defaultOption:{zlevel:0,z:2,coordinateSystem:"view",layout:null,left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,focusNodeAdjacency:!1,layoutIterations:32,label:{show:!0,position:"right",color:"#000",fontSize:12},itemStyle:{borderWidth:1,borderColor:"#333"},lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.6}},animationEasing:"linear",animationDuration:1e3}});e.exports=a},12824:function(e,t,i){var n=i(76165),o=i(47475),r=i(66023),a=["itemStyle","opacity"],s=["lineStyle","opacity"];function l(e,t){return e.getVisual("opacity")||e.getModel().get(t)}function c(e,t,i){var n=e.getGraphicEl(),o=l(e,t);null!=i&&(null==o&&(o=1),o*=i),n.downplay&&n.downplay(),n.traverse(function(e){"group"!==e.type&&e.setStyle("opacity",o)})}function d(e,t){var i=l(e,t),n=e.getGraphicEl();n.highlight&&n.highlight(),n.traverse(function(e){"group"!==e.type&&e.setStyle("opacity",i)})}var u=n.extendShape({shape:{x1:0,y1:0,x2:0,y2:0,cpx1:0,cpy1:0,cpx2:0,cpy2:0,extent:0,orient:""},buildPath:function(e,t){var i=t.extent;"vertical"===t.orient?(e.moveTo(t.x1,t.y1),e.bezierCurveTo(t.cpx1,t.cpy1,t.cpx2,t.cpy2,t.x2,t.y2),e.lineTo(t.x2+i,t.y2),e.bezierCurveTo(t.cpx2+i,t.cpy2,t.cpx1+i,t.cpy1,t.x1+i,t.y1)):(e.moveTo(t.x1,t.y1),e.bezierCurveTo(t.cpx1,t.cpy1,t.cpx2,t.cpy2,t.x2,t.y2),e.lineTo(t.x2,t.y2+i),e.bezierCurveTo(t.cpx2,t.cpy2+i,t.cpx1,t.cpy1+i,t.x1,t.y1+i)),e.closePath()}});e.exports=o.extendChartView({type:"sankey",_model:null,_focusAdjacencyDisabled:!1,render:function(e,t,i){var o,r,a,s,l=this,c=e.getGraph(),d=this.group,h=e.layoutInfo,p=h.width,f=h.height,g=e.getData(),m=e.getData("edge"),v=e.get("orient");this._model=e,d.removeAll(),d.attr("position",[h.x,h.y]),c.eachEdge(function(t){var i,o,r,a,s,l,c,h,g=new u;g.dataIndex=t.dataIndex,g.seriesIndex=e.seriesIndex,g.dataType="edge";var b=t.getModel("lineStyle"),y=b.get("curveness"),w=t.node1.getLayout(),_=t.node1.getModel(),x=_.get("localX"),S=_.get("localY"),C=t.node2.getLayout(),k=t.node2.getModel(),I=k.get("localX"),A=k.get("localY"),T=t.getLayout();switch(g.shape.extent=Math.max(1,T.dy),g.shape.orient=v,"vertical"===v?(i=(null!=x?x*p:w.x)+T.sy,o=(null!=S?S*f:w.y)+w.dy,r=(null!=I?I*p:C.x)+T.ty,a=null!=A?A*f:C.y,s=i,l=o*(1-y)+a*y,c=r,h=o*y+a*(1-y)):(i=(null!=x?x*p:w.x)+w.dx,o=(null!=S?S*f:w.y)+T.sy,r=null!=I?I*p:C.x,a=(null!=A?A*f:C.y)+T.ty,s=i*(1-y)+r*y,l=o,c=i*y+r*(1-y),h=a),g.setShape({x1:i,y1:o,x2:r,y2:a,cpx1:s,cpy1:l,cpx2:c,cpy2:h}),g.setStyle(b.getItemStyle()),g.style.fill){case"source":g.style.fill=t.node1.getVisual("color");break;case"target":g.style.fill=t.node2.getVisual("color")}n.setHoverStyle(g,t.getModel("emphasis.lineStyle").getItemStyle()),d.add(g),m.setItemGraphicEl(t.dataIndex,g)}),c.eachNode(function(t){var i=t.getLayout(),o=t.getModel(),r=o.get("localX"),a=o.get("localY"),s=o.getModel("label"),l=o.getModel("emphasis.label"),c=new n.Rect({shape:{x:null!=r?r*p:i.x,y:null!=a?a*f:i.y,width:i.dx,height:i.dy},style:o.getModel("itemStyle").getItemStyle()}),u=t.getModel("emphasis.itemStyle").getItemStyle();n.setLabelStyle(c.style,u,s,l,{labelFetcher:e,labelDataIndex:t.dataIndex,defaultText:t.id,isRectText:!0}),c.setStyle("fill",t.getVisual("color")),n.setHoverStyle(c,u),d.add(c),g.setItemGraphicEl(t.dataIndex,c),c.dataType="node"}),g.eachItemGraphicEl(function(t,n){var o=g.getItemModel(n);o.get("draggable")&&(t.drift=function(t,o){l._focusAdjacencyDisabled=!0,this.shape.x+=t,this.shape.y+=o,this.dirty(),i.dispatchAction({type:"dragNode",seriesId:e.id,dataIndex:g.getRawIndex(n),localX:this.shape.x/p,localY:this.shape.y/f})},t.ondragend=function(){l._focusAdjacencyDisabled=!1},t.draggable=!0,t.cursor="move"),o.get("focusNodeAdjacency")&&(t.off("mouseover").on("mouseover",function(){l._focusAdjacencyDisabled||i.dispatchAction({type:"focusNodeAdjacency",seriesId:e.id,dataIndex:t.dataIndex})}),t.off("mouseout").on("mouseout",function(){l._focusAdjacencyDisabled||i.dispatchAction({type:"unfocusNodeAdjacency",seriesId:e.id})}))}),m.eachItemGraphicEl(function(t,n){m.getItemModel(n).get("focusNodeAdjacency")&&(t.off("mouseover").on("mouseover",function(){l._focusAdjacencyDisabled||i.dispatchAction({type:"focusNodeAdjacency",seriesId:e.id,edgeDataIndex:t.dataIndex})}),t.off("mouseout").on("mouseout",function(){l._focusAdjacencyDisabled||i.dispatchAction({type:"unfocusNodeAdjacency",seriesId:e.id})}))}),!this._data&&e.get("animation")&&d.setClipPath((o=d.getBoundingRect(),r=e,a=function(){d.removeClipPath()},s=new n.Rect({shape:{x:o.x-10,y:o.y-10,width:0,height:o.height+20}}),n.initProps(s,{shape:{width:o.width+20,height:o.height+20}},r,a),s)),this._data=e.getData()},dispose:function(){},focusNodeAdjacency:function(e,t,i,n){var o=this._model.getData(),l=o.graph,u=n.dataIndex,h=o.getItemModel(u),p=n.edgeDataIndex;if(null!=u||null!=p){var f=l.getNodeByIndex(u),g=l.getEdgeByIndex(p);if(l.eachNode(function(e){c(e,a,.1)}),l.eachEdge(function(e){c(e,s,.1)}),f){d(f,a);var m=h.get("focusNodeAdjacency");"outEdges"===m?r.each(f.outEdges,function(e){e.dataIndex<0||(d(e,s),d(e.node2,a))}):"inEdges"===m?r.each(f.inEdges,function(e){e.dataIndex<0||(d(e,s),d(e.node1,a))}):"allEdges"===m&&r.each(f.edges,function(e){e.dataIndex<0||(d(e,s),d(e.node1,a),d(e.node2,a))})}g&&(d(g,s),d(g.node1,a),d(g.node2,a))}},unfocusNodeAdjacency:function(e,t,i,n){var o=this._model.getGraph();o.eachNode(function(e){c(e,a)}),o.eachEdge(function(e){c(e,s)})}})},95260:function(e,t,i){var n=i(47475);i(81518),n.registerAction({type:"dragNode",event:"dragNode",update:"update"},function(e,t){t.eachComponent({mainType:"series",subType:"sankey",query:e},function(t){t.setNodePosition(e.dataIndex,[e.localX,e.localY])})})},19594:function(e,t,i){var n=i(68006),o=i(66023),r=i(70018).groupData;function a(e,t,i,n,r){o.each(e,function(e){var o,a,s,l,c,d=0,u=e.length;if("vertical"===r){for(e.sort(function(e,t){return e.getLayout().x-t.getLayout().x}),s=0;s<u;s++)(a=d-(o=e[s]).getLayout().x)>0&&(l=o.getLayout().x+a,o.setLayout({x:l},!0)),d=o.getLayout().x+o.getLayout().dx+t;if((a=d-t-n)>0)for(l=o.getLayout().x-a,o.setLayout({x:l},!0),d=l,s=u-2;s>=0;--s)(a=(o=e[s]).getLayout().x+o.getLayout().dx+t-d)>0&&(l=o.getLayout().x-a,o.setLayout({x:l},!0)),d=o.getLayout().x}else{for(e.sort(function(e,t){return e.getLayout().y-t.getLayout().y}),s=0;s<u;s++)(a=d-(o=e[s]).getLayout().y)>0&&(c=o.getLayout().y+a,o.setLayout({y:c},!0)),d=o.getLayout().y+o.getLayout().dy+t;if((a=d-t-i)>0)for(c=o.getLayout().y-a,o.setLayout({y:c},!0),d=c,s=u-2;s>=0;--s)(a=(o=e[s]).getLayout().y+o.getLayout().dy+t-d)>0&&(c=o.getLayout().y-a,o.setLayout({y:c},!0)),d=o.getLayout().y}})}function s(e,t){return c(e.node2,t)*e.getValue()}function l(e,t){return c(e.node1,t)*e.getValue()}function c(e,t){return"vertical"===t?e.getLayout().x+e.getLayout().dx/2:e.getLayout().y+e.getLayout().dy/2}function d(e){return e.getValue()}function u(e,t,i){for(var n=0,o=e.length,r=-1;++r<o;){var a=+t.call(e,e[r],i);isNaN(a)||(n+=a)}return n}i(38603).__DEV__,e.exports=function(e,t,i){e.eachSeriesByType("sankey",function(e){var i,h,p,f,g,m,v,b,y,w,_,x,S,C=e.get("nodeWidth"),k=e.get("nodeGap"),I=(i=e,h=t,n.getLayoutRect(i.getBoxLayoutParams(),{width:h.getWidth(),height:h.getHeight()}));e.layoutInfo=I;var A=I.width,T=I.height,E=e.getGraph(),R=E.nodes,D=E.edges;p=R,o.each(p,function(e){var t=Math.max(u(e.outEdges,d),u(e.inEdges,d));e.setLayout({value:t},!0)});var O=0!==o.filter(R,function(e){return 0===e.getLayout().value}).length?0:e.get("layoutIterations");f=R,g=D,m=C,v=k,b=A,y=T,w=O,function(e,t,i,n,r,a){for(var s,l,c,d,u,h,p=[],f=[],g=[],m=[],v=0,b=0,y=0;y<t.length;y++)p[y]=1;for(y=0;y<e.length;y++)f[y]=e[y].inEdges.length,0===f[y]&&g.push(e[y]);for(;g.length;){for(var w=0;w<g.length;w++){var _=g[w];"vertical"===a?(_.setLayout({y:v},!0),_.setLayout({dy:i},!0)):(_.setLayout({x:v},!0),_.setLayout({dx:i},!0));for(var x=0;x<_.outEdges.length;x++){var S=_.outEdges[x];p[t.indexOf(S)]=0;var C=S.node2,k=e.indexOf(C);0==--f[k]&&m.push(C)}}++v,g=m,m=[]}for(y=0;y<p.length;y++);s=e,l=v,c=a,o.each(s,function(e){e.outEdges.length||("vertical"===c?e.setLayout({y:l-1},!0):e.setLayout({x:l-1},!0))}),d=e,u="vertical"===a?(r-i)/(v-1):(n-i)/(v-1),h=a,o.each(d,function(e){if("vertical"===h){var t=e.getLayout().y*u;e.setLayout({y:t},!0)}else{var i=e.getLayout().x*u;e.setLayout({x:i},!0)}})}(f,g,m,b,y,_=e.get("orient")),function(e,t,i,n,h,p,f){var g,m,v,b,y,w,_,x,S,C,k,I,A,T=(g=e,m=[],v="vertical"===f?"y":"x",(b=r(g,function(e){return e.getLayout()[v]})).keys.sort(function(e,t){return e-t}),o.each(b.keys,function(e){m.push(b.buckets.get(e))}),m);y=0,w=T,_=t,x=i,S=n,C=h,k=f,I=[],o.each(w,function(e){var t=e.length,i=0,n=0;o.each(e,function(e){i+=e.getLayout().value}),n="vertical"===k?(S-(t-1)*C)/i:(x-(t-1)*C)/i,I.push(n)}),I.sort(function(e,t){return e-t}),A=I[0],o.each(w,function(e){o.each(e,function(e,t){var i=e.getLayout().value*A;"vertical"===k?(e.setLayout({x:t},!0),e.setLayout({dx:i},!0)):(e.setLayout({y:t},!0),e.setLayout({dy:i},!0))})}),o.each(_,function(e){var t=+e.getValue()*A;e.setLayout({dy:t},!0)}),a(T,h,i,n,f);for(var E=1;p>0;p--)(function(e,t,i){o.each(e.slice().reverse(),function(e){o.each(e,function(e){if(e.outEdges.length){var n=u(e.outEdges,s,i)/u(e.outEdges,d,i);if("vertical"===i){var o=e.getLayout().x+(n-c(e,i))*t;e.setLayout({x:o},!0)}else{var r=e.getLayout().y+(n-c(e,i))*t;e.setLayout({y:r},!0)}}})})})(T,E*=.99,f),a(T,h,i,n,f),function(e,t,i){o.each(e,function(e){o.each(e,function(e){if(e.inEdges.length){var n=u(e.inEdges,l,i)/u(e.inEdges,d,i);if("vertical"===i){var o=e.getLayout().x+(n-c(e,i))*t;e.setLayout({x:o},!0)}else{var r=e.getLayout().y+(n-c(e,i))*t;e.setLayout({y:r},!0)}}})})}(T,E,f),a(T,h,i,n,f)}(f,g,y,b,v,w,_),x=f,S=_,o.each(x,function(e){"vertical"===S?(e.outEdges.sort(function(e,t){return e.node2.getLayout().x-t.node2.getLayout().x}),e.inEdges.sort(function(e,t){return e.node1.getLayout().x-t.node1.getLayout().x})):(e.outEdges.sort(function(e,t){return e.node2.getLayout().y-t.node2.getLayout().y}),e.inEdges.sort(function(e,t){return e.node1.getLayout().y-t.node1.getLayout().y}))}),o.each(x,function(e){var t=0,i=0;o.each(e.outEdges,function(e){e.setLayout({sy:t},!0),t+=e.getLayout().dy}),o.each(e.inEdges,function(e){e.setLayout({ty:i},!0),i+=e.getLayout().dy})})})}},43568:function(e,t,i){var n=i(95138),o=i(66023);e.exports=function(e,t){e.eachSeriesByType("sankey",function(e){var t=e.getGraph().nodes;if(t.length){var i=1/0,r=-1/0;o.each(t,function(e){var t=e.getLayout().value;t<i&&(i=t),t>r&&(r=t)}),o.each(t,function(t){var o=new n({type:"color",mappingMethod:"linear",dataExtent:[i,r],visual:e.get("color")}).mapValueToVisual(t.getLayout().value);t.setVisual("color",o);var a=t.getModel().get("itemStyle.color");null!=a&&t.setVisual("color",a)})}})}},3683:function(e,t,i){var n=i(47475);i(54837),i(85741);var o=i(41314),r=i(64342);i(31372),n.registerVisual(o("scatter","circle")),n.registerLayout(r("scatter"))},54837:function(e,t,i){var n=i(6551);e.exports=i(26626).extend({type:"series.scatter",dependencies:["grid","polar","geo","singleAxis","calendar"],getInitialData:function(e,t){return n(this.getSource(),this)},brushSelector:"point",getProgressive:function(){var e=this.option.progressive;return null==e?this.option.large?5e3:this.get("progressive"):e},getProgressiveThreshold:function(){var e=this.option.progressiveThreshold;return null==e?this.option.large?1e4:this.get("progressiveThreshold"):e},defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8}}})},85741:function(e,t,i){var n=i(47475),o=i(67076),r=i(30843),a=i(64342);n.extendChartView({type:"scatter",render:function(e,t,i){var n=e.getData();this._updateSymbolDraw(n,e).updateData(n),this._finished=!0},incrementalPrepareRender:function(e,t,i){var n=e.getData();this._updateSymbolDraw(n,e).incrementalPrepareUpdate(n),this._finished=!1},incrementalRender:function(e,t,i){this._symbolDraw.incrementalUpdate(e,t.getData()),this._finished=e.end===t.getData().count()},updateTransform:function(e,t,i){var n=e.getData();if(this.group.dirty(),!this._finished||n.count()>1e4||!this._symbolDraw.isPersistent())return{update:!0};var o=a().reset(e);o.progress&&o.progress({start:0,end:n.count()},n),this._symbolDraw.updateLayout(n)},_updateSymbolDraw:function(e,t){var i=this._symbolDraw,n=t.pipelineContext.large;return i&&n===this._isLargeDraw||(i&&i.remove(),i=this._symbolDraw=n?new r:new o,this._isLargeDraw=n,this.group.removeAll()),this.group.add(i.group),i},remove:function(e,t){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},dispose:function(){}})},96214:function(e,t,i){var n=i(47475),o=i(66023);i(17426),i(14021),i(32401);var r=i(34907),a=i(3124),s=i(6817);n.registerVisual(o.curry(r,"sunburst")),n.registerLayout(o.curry(a,"sunburst")),n.registerProcessor(o.curry(s,"sunburst"))},61831:function(e,t,i){var n=i(66023),o=i(76165),r={NONE:"none",ANCESTOR:"ancestor",SELF:"self"};function a(e,t,i){o.Group.call(this);var n=new o.Sector({z2:2});n.seriesIndex=t.seriesIndex;var r=new o.Text({z2:4,silent:e.getModel("label").get("silent")});function a(){r.ignore=r.hoverIgnore}function s(){r.ignore=r.normalIgnore}this.add(n),this.add(r),this.updateData(!0,e,"normal",t,i),this.on("emphasis",a).on("normal",s).on("mouseover",a).on("mouseout",s)}var s=a.prototype;s.updateData=function(e,t,i,r,a){this.node=t,t.piece=this,r=r||this._seriesModel,a=a||this._ecModel;var s,l,c,d,u=this.childAt(0);u.dataIndex=t.dataIndex;var h=t.getModel(),p=t.getLayout(),f=n.extend({},p);f.label=null;var g=function(e,t,i){var o=e.getVisual("color"),r=e.getVisual("visualMeta");r&&0!==r.length||(o=null);var a=e.getModel("itemStyle").get("color");if(a);else{if(o)return o;if(0===e.depth)return i.option.color[0];var s=i.option.color.length;a=i.option.color[function(e){for(var t=e;t.depth>1;)t=t.parentNode;var i=e.getAncestors()[0];return n.indexOf(i.children,t)}(e)%s]}return a}(t,0,a);s=t,l=r,c=g,l.getData().setItemVisual(s.dataIndex,"color",c);var m=h.getModel("itemStyle").getItemStyle();if("normal"===i)d=m;else{var v=h.getModel(i+".itemStyle").getItemStyle();d=n.merge(v,m)}d=n.defaults({lineJoin:"bevel",fill:d.fill||g},d),e?(u.setShape(f),u.shape.r=p.r0,o.updateProps(u,{shape:{r:p.r}},r,t.dataIndex),u.useStyle(d)):"object"==typeof d.fill&&d.fill.type||"object"==typeof u.style.fill&&u.style.fill.type?(o.updateProps(u,{shape:f},r),u.useStyle(d)):o.updateProps(u,{shape:f,style:d},r),this._updateLabel(r,g,i);var b=h.getShallow("cursor");if(b&&u.attr("cursor",b),e){var y=r.getShallow("highlightPolicy");this._initEvents(u,t,r,y)}this._seriesModel=r||this._seriesModel,this._ecModel=a||this._ecModel},s.onEmphasis=function(e){var t=this;this.node.hostTree.root.eachNode(function(i){var n,o,a;i.piece&&(t.node===i?i.piece.updateData(!1,i,"emphasis"):(n=i,o=t.node,(a=e)!==r.NONE&&(a===r.SELF?n===o:a===r.ANCESTOR?n===o||n.isAncestorOf(o):n===o||n.isDescendantOf(o)))?i.piece.childAt(0).trigger("highlight"):e!==r.NONE&&i.piece.childAt(0).trigger("downplay"))})},s.onNormal=function(){this.node.hostTree.root.eachNode(function(e){e.piece&&e.piece.updateData(!1,e,"normal")})},s.onHighlight=function(){this.updateData(!1,this.node,"highlight")},s.onDownplay=function(){this.updateData(!1,this.node,"downplay")},s._updateLabel=function(e,t,i){var r,a=this.node.getModel(),s=a.getModel("label"),l="normal"===i||"emphasis"===i?s:a.getModel(i+".label"),c=a.getModel("emphasis.label"),d=n.retrieve(e.getFormattedLabel(this.node.dataIndex,"normal",null,null,"label"),this.node.name);!1===k("show")&&(d="");var u=this.node.getLayout(),h=l.get("minAngle");null==h&&(h=s.get("minAngle")),h=h/180*Math.PI;var p=u.endAngle-u.startAngle;null!=h&&Math.abs(p)<h&&(d="");var f=this.childAt(1);o.setLabelStyle(f.style,f.hoverStyle||{},s,c,{defaultText:l.getShallow("show")?d:null,autoColor:t,useInsideStyle:!0});var g=(u.startAngle+u.endAngle)/2,m=Math.cos(g),v=Math.sin(g),b=k("position"),y=k("distance")||0,w=k("align");"outside"===b?(r=u.r+y,w=g>Math.PI/2?"right":"left"):w&&"center"!==w?"left"===w?(r=u.r0+y,g>Math.PI/2&&(w="right")):"right"===w&&(r=u.r-y,g>Math.PI/2&&(w="left")):(r=(u.r+u.r0)/2,w="center"),f.attr("style",{text:d,textAlign:w,textVerticalAlign:k("verticalAlign")||"middle",opacity:k("opacity")});var _=r*m+u.cx,x=r*v+u.cy;f.attr("position",[_,x]);var S=k("rotate"),C=0;function k(e){var t=l.get(e);return null==t?s.get(e):t}"radial"===S?(C=-g)<-Math.PI/2&&(C+=Math.PI):"tangential"===S?(C=Math.PI/2-g)>Math.PI/2?C-=Math.PI:C<-Math.PI/2&&(C+=Math.PI):"number"==typeof S&&(C=S*Math.PI/180),f.attr("rotation",C)},s._initEvents=function(e,t,i,n){e.off("mouseover").off("mouseout").off("emphasis").off("normal");var o=this,r=function(){o.onEmphasis(n)},a=function(){o.onNormal()};i.isAnimationEnabled()&&e.on("mouseover",r).on("mouseout",a).on("emphasis",r).on("normal",a).on("downplay",function(){o.onDownplay()}).on("highlight",function(){o.onHighlight()})},n.inherits(a,o.Group),e.exports=a},17426:function(e,t,i){var n=i(66023),o=i(26626),r=i(67935),a=i(38300).wrapTreePathInfo;e.exports=o.extend({type:"series.sunburst",_viewRoot:null,getInitialData:function(e,t){var i={name:e.name,children:e.data};!function e(t){var i=0;n.each(t.children,function(t){e(t);var o=t.value;n.isArray(o)&&(o=o[0]),i+=o});var o=t.value;n.isArray(o)&&(o=o[0]),(null==o||isNaN(o))&&(o=i),o<0&&(o=0),n.isArray(t.value)?t.value[0]=o:t.value=o}(i);var o=e.levels||[],a={};return a.levels=o,r.createTree(i,this,a).data},optionUpdated:function(){this.resetViewRoot()},getDataParams:function(e){var t=o.prototype.getDataParams.apply(this,arguments);return t.treePathInfo=a(this.getData().tree.getNodeByDataIndex(e),this),t},defaultOption:{zlevel:0,z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,percentPrecision:2,stillShowZeroSum:!0,highlightPolicy:"descendant",nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0,emphasis:{}},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1,emphasis:{},highlight:{opacity:1},downplay:{opacity:.9}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicOut",data:[],levels:[],sort:"desc"},getViewRoot:function(){return this._viewRoot},resetViewRoot:function(e){e?this._viewRoot=e:e=this._viewRoot;var t=this.getRawData().tree.root;e&&(e===t||t.contains(e))||(this._viewRoot=t)}})},14021:function(e,t,i){var n=i(66023),o=i(55756),r=i(61831),a=i(13593);e.exports=o.extend({type:"sunburst",init:function(){},render:function(e,t,i,o){var s=this;this.seriesModel=e,this.api=i,this.ecModel=t;var l=e.getData(),c=l.tree.root,d=e.getViewRoot(),u=this.group,h=e.get("renderLabelForZeroData"),p=[];if(d.eachNode(function(e){p.push(e)}),function(i,o){function s(e){return e.getId()}function d(n,a){!function(i,n){if(h||!i||i.getValue()||(i=null),i!==c&&n!==c){if(n&&n.piece){var o;i?(n.piece.updateData(!1,i,"normal",e,t),l.setItemGraphicEl(i.dataIndex,n.piece)):(o=n)&&o.piece&&(u.remove(o.piece),o.piece=null)}else if(i){var a=new r(i,e,t);u.add(a),l.setItemGraphicEl(i.dataIndex,a)}}}(null==n?null:i[n],null==a?null:o[a])}(0!==i.length||0!==o.length)&&new a(o,i,s,s).add(d).update(d).remove(n.curry(d,null)).execute()}(p,this._oldChildren||[]),function(i,n){if(n.depth>0){s.virtualPiece?s.virtualPiece.updateData(!1,i,"normal",e,t):(s.virtualPiece=new r(i,e,t),u.add(s.virtualPiece)),n.piece._onclickEvent&&n.piece.off("click",n.piece._onclickEvent);var o=function(e){s._rootToNode(n.parentNode)};n.piece._onclickEvent=o,s.virtualPiece.on("click",o)}else s.virtualPiece&&(u.remove(s.virtualPiece),s.virtualPiece=null)}(c,d),o&&o.highlight&&o.highlight.piece){var f=e.getShallow("highlightPolicy");o.highlight.piece.onEmphasis(f)}else if(o&&o.unhighlight){var g=this.virtualPiece;!g&&c.children.length&&(g=c.children[0].piece),g&&g.onNormal()}this._initEvents(),this._oldChildren=p},dispose:function(){},_initEvents:function(){var e=this,t=function(t){var i=!1;e.seriesModel.getViewRoot().eachNode(function(n){if(!i&&n.piece&&n.piece.childAt(0)===t.target){var o=n.getModel().get("nodeClick");if("rootToNode"===o)e._rootToNode(n);else if("link"===o){var r=n.getModel(),a=r.get("link");if(a){var s=r.get("target",!0)||"_blank";window.open(a,s)}}i=!0}})};this.group._onclickEvent&&this.group.off("click",this.group._onclickEvent),this.group.on("click",t),this.group._onclickEvent=t},_rootToNode:function(e){e!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:"sunburstRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e})},containPoint:function(e,t){var i=t.getData().getItemLayout(0);if(i){var n=e[0]-i.cx,o=e[1]-i.cy,r=Math.sqrt(n*n+o*o);return r<=i.r&&r>=i.r0}}})},32401:function(e,t,i){var n=i(47475),o=i(38300),r="sunburstRootToNode";n.registerAction({type:r,update:"updateView"},function(e,t){t.eachComponent({mainType:"series",subType:"sunburst",query:e},function(t,i){var n=o.retrieveTargetInfo(e,[r],t);if(n){var a=t.getViewRoot();a&&(e.direction=o.aboveViewRoot(a,n.node)?"rollUp":"drillDown"),t.resetViewRoot(n.node)}})});var a="sunburstHighlight";n.registerAction({type:a,update:"updateView"},function(e,t){t.eachComponent({mainType:"series",subType:"sunburst",query:e},function(t,i){var n=o.retrieveTargetInfo(e,[a],t);n&&(e.highlight=n.node)})}),n.registerAction({type:"sunburstUnhighlight",update:"updateView"},function(e,t){t.eachComponent({mainType:"series",subType:"sunburst",query:e},function(t,i){e.unhighlight=!0})})},3124:function(e,t,i){var n=i(98763).parsePercent,o=i(66023),r=2*Math.PI,a=Math.PI/180;e.exports=function(e,t,i,s){t.eachSeriesByType(e,function(e){var t=e.get("center"),s=e.get("radius");o.isArray(s)||(s=[0,s]),o.isArray(t)||(t=[t,t]);var l=i.getWidth(),c=i.getHeight(),d=Math.min(l,c),u=n(t[0],l),h=n(t[1],c),p=n(s[0],d/2),f=n(s[1],d/2),g=-e.get("startAngle")*a,m=e.get("minAngle")*a,v=e.getData().tree.root,b=e.getViewRoot(),y=b.depth,w=e.get("sort");null!=w&&function e(t,i){var n=t.children||[];t.children=function(e,t){if("function"==typeof t)return e.sort(t);var i="asc"===t;return e.sort(function(e,t){var n=(e.getValue()-t.getValue())*(i?1:-1);return 0===n?(e.dataIndex-t.dataIndex)*(i?-1:1):n})}(n,i),n.length&&o.each(t.children,function(t){e(t,i)})}(b,w);var _=0;o.each(b.children,function(e){!isNaN(e.getValue())&&_++});var x=b.getValue(),S=Math.PI/(x||_)*2,C=b.depth>0,k=(f-p)/(b.height-(C?-1:1)||1),I=e.get("clockwise"),A=e.get("stillShowZeroSum"),T=r,E=0,R=I?1:-1,D=function(e,t){if(e){var i=t;if(e!==v){var r=e.getValue(),a=0===x&&A?S:r*S;a<m?(a=m,T-=m):E+=r,i=t+R*a;var s=e.depth-y-(C?-1:1),l=p+k*s,c=p+k*(s+1),f=e.getModel();null!=f.get("r0")&&(l=n(f.get("r0"),d/2)),null!=f.get("r")&&(c=n(f.get("r"),d/2)),e.setLayout({angle:a,startAngle:t,endAngle:i,clockwise:I,cx:u,cy:h,r0:l,r:c})}if(e.children&&e.children.length){var g=0;o.each(e.children,function(e){g+=D(e,t+g)})}return i-t}};if(C){var O=2*Math.PI;v.setLayout({angle:O,startAngle:g,endAngle:g+O,clockwise:I,cx:u,cy:h,r0:p,r:p+k})}D(b,g)})}},51309:function(e,t,i){var n=i(47475);i(96729),i(4796),i(11205);var o=i(95553),r=i(67952),a=i(6817);n.registerLayout(o),n.registerVisual(r),n.registerProcessor(a("themeRiver"))},4796:function(e,t,i){var n=i(26626),o=i(35047),r=i(39116).getDimensionTypeByAxis,a=i(90942),s=i(66023),l=i(70018).groupData,c=i(20438).encodeHTML,d=n.extend({type:"series.themeRiver",dependencies:["singleAxis"],nameMap:null,init:function(e){d.superApply(this,"init",arguments),this.legendDataProvider=function(){return this.getRawData()}},fixData:function(e){var t=e.length,i=l(e,function(e){return e[2]}),n=[];i.buckets.each(function(e,t){n.push({name:t,dataList:e})});for(var o=n.length,r=-1,a=-1,s=0;s<o;++s){var c=n[s].dataList.length;c>r&&(r=c,a=s)}for(var d=0;d<o;++d)if(d!==a)for(var u=n[d].name,h=0;h<r;++h){for(var p=n[a].dataList[h][0],f=n[d].dataList.length,g=-1,m=0;m<f;++m)if(n[d].dataList[m][0]===p){g=m;break}-1===g&&(e[t]=[],e[t][0]=p,e[t][1]=0,e[t][2]=u,t++)}return e},getInitialData:function(e,t){for(var i=t.queryComponents({mainType:"singleAxis",index:this.get("singleAxisIndex"),id:this.get("singleAxisId")})[0].get("type"),n=s.filter(e.data,function(e){return void 0!==e[2]}),l=this.fixData(n||[]),c=[],d=this.nameMap=s.createHashMap(),u=0,h=0;h<l.length;++h)c.push(l[h][2]),!d.get(l[h][2])&&(d.set(l[h][2],u),u++);var p=new a(o(l,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:r(i)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}),this);return p.initData(l),p},getLayerSeries:function(){for(var e=this.getData(),t=e.count(),i=[],n=0;n<t;++n)i[n]=n;var o=e.mapDimension("single"),r=l(i,function(t){return e.get("name",t)}),a=[];return r.buckets.each(function(t,i){t.sort(function(t,i){return e.get(o,t)-e.get(o,i)}),a.push({name:i,indices:t})}),a},getAxisTooltipData:function(e,t,i){s.isArray(e)||(e=e?[e]:[]);for(var n,o=this.getData(),r=this.getLayerSeries(),a=[],l=r.length,c=0;c<l;++c){for(var d=Number.MAX_VALUE,u=-1,h=r[c].indices.length,p=0;p<h;++p){var f=o.get(e[0],r[c].indices[p]),g=Math.abs(f-t);g<=d&&(n=f,d=g,u=r[c].indices[p])}a.push(u)}return{dataIndices:a,nestestValue:n}},formatTooltip:function(e){var t=this.getData(),i=t.getName(e),n=t.get(t.mapDimension("value"),e);return(isNaN(n)||null==n)&&(n="-"),c(i+" : "+n)},defaultOption:{zlevel:0,z:2,coordinateSystem:"singleAxis",boundaryGap:["10%","10%"],singleAxisIndex:0,animationEasing:"linear",label:{margin:4,show:!0,position:"left",color:"#000",fontSize:11},emphasis:{label:{show:!0}}}});e.exports=d},11205:function(e,t,i){var n=i(47475),o=i(68742).Polygon,r=i(76165),a=i(66023),s=a.bind,l=a.extend,c=i(13593);e.exports=n.extendChartView({type:"themeRiver",init:function(){this._layers=[]},render:function(e,t,i){var n=e.getData(),a=this.group,d=e.getLayerSeries(),u=n.getLayout("layoutInfo"),h=u.rect,p=u.boundaryGap;function f(e){return e.name}a.attr("position",[0,h.y+p[0]]);var g=new c(this._layersSeries||[],d,f,f),m={};function v(t,i,s){var c,u,h,p=this._layers;if("remove"===t)return void a.remove(p[i]);for(var f=[],g=[],v=d[i].indices,b=0;b<v.length;b++){var y=n.getItemLayout(v[b]),w=y.x,_=y.y0,x=y.y;f.push([w,_]),g.push([w,_+x]),c=n.getItemVisual(v[b],"color")}var S=n.getItemLayout(v[0]),C=n.getItemModel(v[b-1]),k=C.getModel("label"),I=k.get("margin");if("add"===t){var A,T,E,R,D=m[i]=new r.Group;u=new o({shape:{points:f,stackedOnPoints:g,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),h=new r.Text({style:{x:S.x-I,y:S.y0+S.y/2}}),D.add(u),D.add(h),a.add(D),u.setClipPath((A=u.getBoundingRect(),T=e,E=function(){u.removeClipPath()},R=new r.Rect({shape:{x:A.x-10,y:A.y-10,width:0,height:A.height+20}}),r.initProps(R,{shape:{width:A.width+20,height:A.height+20}},T,E),R))}else{var D=p[s];u=D.childAt(0),h=D.childAt(1),a.add(D),m[i]=D,r.updateProps(u,{shape:{points:f,stackedOnPoints:g}},e),r.updateProps(h,{style:{x:S.x-I,y:S.y0+S.y/2}},e)}var O=C.getModel("emphasis.itemStyle"),M=C.getModel("itemStyle");r.setTextStyle(h.style,k,{text:k.get("show")?e.getFormattedLabel(v[b-1],"normal")||n.getName(v[b-1]):null,textVerticalAlign:"middle"}),u.setStyle(l({fill:c},M.getItemStyle(["color"]))),r.setHoverStyle(u,O.getItemStyle())}g.add(s(v,this,"add")).update(s(v,this,"update")).remove(s(v,this,"remove")).execute(),this._layersSeries=d,this._layers=m},dispose:function(){}})},95553:function(e,t,i){var n=i(66023),o=i(98763);function r(e,t,i){if(e.count())for(var o,r=t.coordinateSystem,a=t.getLayerSeries(),s=e.mapDimension("single"),l=e.mapDimension("value"),c=n.map(a,function(t){return n.map(t.indices,function(t){var i=r.dataToPoint(e.get(s,t));return i[1]=e.get(l,t),i})}),d=function(e){for(var t,i=e.length,n=e[0].length,o=[],r=[],a=0,s={},l=0;l<n;++l){for(var c=0,t=0;c<i;++c)t+=e[c][l][1];t>a&&(a=t),o.push(t)}for(var d=0;d<n;++d)r[d]=(a-o[d])/2;a=0;for(var u=0;u<n;++u){var h=o[u]+r[u];h>a&&(a=h)}return s.y0=r,s.max=a,s}(c),u=d.y0,h=i/d.max,p=a.length,f=a[0].indices.length,g=0;g<f;++g){o=u[g]*h,e.setItemLayout(a[0].indices[g],{layerIndex:0,x:c[0][g][0],y0:o,y:c[0][g][1]*h});for(var m=1;m<p;++m)o+=c[m-1][g][1]*h,e.setItemLayout(a[m].indices[g],{layerIndex:m,x:c[m][g][0],y0:o,y:c[m][g][1]*h})}}e.exports=function(e,t){e.eachSeriesByType("themeRiver",function(e){var t=e.getData(),i=e.coordinateSystem,n={},a=i.getRect();n.rect=a;var s=e.get("boundaryGap"),l=i.getAxis();n.boundaryGap=s,"horizontal"===l.orient?(s[0]=o.parsePercent(s[0],a.height),s[1]=o.parsePercent(s[1],a.height),r(t,e,a.height-s[0]-s[1])):(s[0]=o.parsePercent(s[0],a.width),s[1]=o.parsePercent(s[1],a.width),r(t,e,a.width-s[0]-s[1])),t.setLayout("layoutInfo",n)})}},67952:function(e,t,i){var n=i(66023).createHashMap;e.exports=function(e){e.eachSeriesByType("themeRiver",function(e){var t=e.getData(),i=e.getRawData(),o=e.get("color"),r=n();t.each(function(e){r.set(t.getRawIndex(e),e)}),i.each(function(n){var a=i.getName(n),s=o[(e.nameMap.get(a)-1)%o.length];i.setItemVisual(n,"color",s);var l=r.get(n);null!=l&&t.setItemVisual(l,"color",s)})})}},59070:function(e,t,i){var n=i(47475);i(16242),i(93479),i(90951);var o=i(41314),r=i(94042);n.registerVisual(o("tree","circle")),n.registerLayout(r)},16242:function(e,t,i){var n=i(26626),o=i(67935),r=i(20438).encodeHTML;e.exports=n.extend({type:"series.tree",layoutInfo:null,layoutMode:"box",getInitialData:function(e){var t={name:e.name,children:e.data},i=e.leaves||{},n={};n.leaves=i;var r=o.createTree(t,this,n),a=0;r.eachNode("preorder",function(e){e.depth>a&&(a=e.depth)});var s=e.expandAndCollapse&&e.initialTreeDepth>=0?e.initialTreeDepth:a;return r.root.eachNode("preorder",function(e){var t=e.hostTree.data.getRawDataItem(e.dataIndex);e.isExpand=t&&null!=t.collapsed?!t.collapsed:e.depth<=s}),r.data},getOrient:function(){var e=this.get("orient");return"horizontal"===e?e="LR":"vertical"===e&&(e="TB"),e},setZoom:function(e){this.option.zoom=e},setCenter:function(e){this.option.center=e},formatTooltip:function(e){for(var t=this.getData().tree,i=t.root.children[0],n=t.getNodeByDataIndex(e),o=n.getValue(),a=n.name;n&&n!==i;)a=n.parentNode.name+"."+a,n=n.parentNode;return r(a+(isNaN(o)||null==o?"":" : "+o))},defaultOption:{zlevel:0,z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderColor:"#c23531",borderWidth:1.5},label:{show:!0,color:"#555"},leaves:{label:{show:!0}},animationEasing:"linear",animationDuration:700,animationDurationUpdate:1e3}})},93479:function(e,t,i){var n=i(66023),o=i(76165),r=i(25718),a=i(67217).radialCoordinate,s=i(47475),l=i(91273),c=i(3115),d=i(75398),u=i(84275),h=i(56694).onIrrelevantElement;function p(e,t){var i=e.getItemLayout(t);return i&&!isNaN(i.x)&&!isNaN(i.y)&&"none"!==e.getItemVisual(t,"symbol")}function f(e,t,i){return i.itemModel=t,i.itemStyle=t.getModel("itemStyle").getItemStyle(),i.hoverItemStyle=t.getModel("emphasis.itemStyle").getItemStyle(),i.lineStyle=t.getModel("lineStyle").getLineStyle(),i.labelModel=t.getModel("label"),i.hoverLabelModel=t.getModel("emphasis.label"),!1===e.isExpand&&0!==e.children.length?i.symbolInnerColor=i.itemStyle.fill:i.symbolInnerColor="#fff",i}function g(e,t,i,a,s,l){var c=!i,d=e.tree.getNodeByDataIndex(t),u=d.getModel(),l=f(d,u,l),h=e.tree.root,p=d.parentNode===h?d:d.parentNode||d,g=e.getItemGraphicEl(p.dataIndex),m=p.getLayout(),b=g?{x:g.position[0],y:g.position[1],rawX:g.__radialOldRawX,rawY:g.__radialOldRawY}:m,y=d.getLayout();c?(i=new r(e,t,l)).attr("position",[b.x,b.y]):i.updateData(e,t,l),i.__radialOldRawX=i.__radialRawX,i.__radialOldRawY=i.__radialRawY,i.__radialRawX=y.rawX,i.__radialRawY=y.rawY,a.add(i),e.setItemGraphicEl(t,i),o.updateProps(i,{position:[y.x,y.y]},s);var w=i.getSymbolPath();if("radial"===l.layout){var _,x,S=h.children[0],C=S.getLayout(),k=S.children.length;if(y.x===C.x&&!0===d.isExpand){var I={};I.x=(S.children[0].getLayout().x+S.children[k-1].getLayout().x)/2,I.y=(S.children[0].getLayout().y+S.children[k-1].getLayout().y)/2,(_=Math.atan2(I.y-C.y,I.x-C.x))<0&&(_=2*Math.PI+_),(x=I.x<C.x)&&(_-=Math.PI)}else(_=Math.atan2(y.y-C.y,y.x-C.x))<0&&(_=2*Math.PI+_),0===d.children.length||0!==d.children.length&&!1===d.isExpand?(x=y.x<C.x)&&(_-=Math.PI):(x=y.x>C.x)||(_-=Math.PI);var A=x?"left":"right";w.setStyle({textPosition:A,textRotation:-_,textOrigin:"center",verticalAlign:"middle"})}if(d.parentNode&&d.parentNode!==h){var T=i.__edge;T||(T=i.__edge=new o.BezierCurve({shape:v(l,b,b),style:n.defaults({opacity:0,strokeNoScale:!0},l.lineStyle)})),o.updateProps(T,{shape:v(l,m,y),style:{opacity:1}},s),a.add(T)}}function m(e,t,i,n,r,a){for(var s,l=e.tree.getNodeByDataIndex(t),c=e.tree.root,d=l.getModel(),a=f(l,d,a),u=l.parentNode===c?l:l.parentNode||l;null==(s=u.getLayout());)u=u.parentNode===c?u:u.parentNode||u;o.updateProps(i,{position:[s.x+1,s.y+1]},r,function(){n.remove(i),e.setItemGraphicEl(t,null)}),i.fadeOut(null,{keepLabel:!0});var h=i.__edge;h&&o.updateProps(h,{shape:v(a,s,s),style:{opacity:0}},r,function(){n.remove(h)})}function v(e,t,i){var n,o,r,s,l,c,d,u,h=e.orient;if("radial"===e.layout){l=t.rawX,d=t.rawY,c=i.rawX,u=i.rawY;var p=a(l,d),f=a(l,d+(u-d)*e.curvature),g=a(c,u+(d-u)*e.curvature),m=a(c,u);return{x1:p.x,y1:p.y,x2:m.x,y2:m.y,cpx1:f.x,cpy1:f.y,cpx2:g.x,cpy2:g.y}}return l=t.x,d=t.y,c=i.x,u=i.y,("LR"===h||"RL"===h)&&(n=l+(c-l)*e.curvature,o=d,r=c+(l-c)*e.curvature,s=u),("TB"===h||"BT"===h)&&(n=l,o=d+(u-d)*e.curvature,r=c,s=u+(d-u)*e.curvature),{x1:l,y1:d,x2:c,y2:u,cpx1:n,cpy1:o,cpx2:r,cpy2:s}}e.exports=s.extendChartView({type:"tree",init:function(e,t){this._oldTree,this._mainGroup=new o.Group,this._controller=new u(t.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},render:function(e,t,i,n){var o=e.getData(),r=e.layoutInfo,a=this._mainGroup,s=e.get("layout");"radial"===s?a.attr("position",[r.x+r.width/2,r.y+r.height/2]):a.attr("position",[r.x,r.y]),this._updateViewCoordSys(e),this._updateController(e,t,i);var l=this._data,c={expandAndCollapse:e.get("expandAndCollapse"),layout:s,orient:e.getOrient(),curvature:e.get("lineStyle.curveness"),symbolRotate:e.get("symbolRotate"),symbolOffset:e.get("symbolOffset"),hoverAnimation:e.get("hoverAnimation"),useNameLabel:!0,fadeIn:!0};o.diff(l).add(function(t){p(o,t)&&g(o,t,null,a,e,c)}).update(function(t,i){var n=l.getItemGraphicEl(i);if(!p(o,t)){n&&m(l,i,n,a,e,c);return}g(o,t,n,a,e,c)}).remove(function(t){var i=l.getItemGraphicEl(t);i&&m(l,t,i,a,e,c)}).execute(),this._nodeScaleRatio=e.get("nodeScaleRatio"),this._updateNodeAndLinkScale(e),!0===c.expandAndCollapse&&o.eachItemGraphicEl(function(t,n){t.off("click").on("click",function(){i.dispatchAction({type:"treeExpandAndCollapse",seriesId:e.id,dataIndex:n})})}),this._data=o},_updateViewCoordSys:function(e){var t=e.getData(),i=[];t.each(function(e){var n=t.getItemLayout(e);!n||isNaN(n.x)||isNaN(n.y)||i.push([+n.x,+n.y])});var n=[],o=[];l.fromPoints(i,n,o),o[0]-n[0]==0&&(o[0]+=1,n[0]-=1),o[1]-n[1]==0&&(o[1]+=1,n[1]-=1);var r=e.coordinateSystem=new c;r.zoomLimit=e.get("scaleLimit"),r.setBoundingRect(n[0],n[1],o[0]-n[0],o[1]-n[1]),r.setCenter(e.get("center")),r.setZoom(e.get("zoom")),this.group.attr({position:r.position,scale:r.scale}),this._viewCoordSys=r},_updateController:function(e,t,i){var n=this._controller,o=this._controllerHost,r=this.group;n.setPointerChecker(function(t,n,o){var a=r.getBoundingRect();return a.applyTransform(r.transform),a.contain(n,o)&&!h(t,i,e)}),n.enable(e.get("roam")),o.zoomLimit=e.get("scaleLimit"),o.zoom=e.coordinateSystem.getZoom(),n.off("pan").off("zoom").on("pan",function(t){d.updateViewOnPan(o,t.dx,t.dy),i.dispatchAction({seriesId:e.id,type:"treeRoam",dx:t.dx,dy:t.dy})},this).on("zoom",function(t){d.updateViewOnZoom(o,t.scale,t.originX,t.originY),i.dispatchAction({seriesId:e.id,type:"treeRoam",zoom:t.scale,originX:t.originX,originY:t.originY}),this._updateNodeAndLinkScale(e)},this)},_updateNodeAndLinkScale:function(e){var t=e.getData(),i=this._getNodeGlobalScale(e),n=[i,i];t.eachItemGraphicEl(function(e,t){e.attr("scale",n)})},_getNodeGlobalScale:function(e){var t=e.coordinateSystem;if("view"!==t.type)return 1;var i=this._nodeScaleRatio,n=t.scale,o=n&&n[0]||1;return((t.getZoom()-1)*i+1)/o},dispose:function(){this._controller&&this._controller.dispose(),this._controllerHost={}},remove:function(){this._mainGroup.removeAll(),this._data=null}})},67217:function(e,t,i){var n=i(68006);function o(e){var t=e.children;return t.length&&e.isExpand?t[t.length-1]:e.hierNode.thread}function r(e){var t=e.children;return t.length&&e.isExpand?t[0]:e.hierNode.thread}function a(e,t){return e.parentNode===t.parentNode?1:2}t.init=function(e){e.hierNode={defaultAncestor:null,ancestor:e,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var t,i,n=[e];t=n.pop();)if(i=t.children,t.isExpand&&i.length)for(var o=i.length,r=o-1;r>=0;r--){var a=i[r];a.hierNode={defaultAncestor:null,ancestor:a,prelim:0,modifier:0,change:0,shift:0,i:r,thread:null},n.push(a)}},t.firstWalk=function(e,t){var i=e.isExpand?e.children:[],n=e.parentNode.children,a=e.hierNode.i?n[e.hierNode.i-1]:null;if(i.length){!function(e){for(var t=e.children,i=t.length,n=0,o=0;--i>=0;){var r=t[i];r.hierNode.prelim+=n,r.hierNode.modifier+=n,o+=r.hierNode.change,n+=r.hierNode.shift+o}}(e);var s=(i[0].hierNode.prelim+i[i.length-1].hierNode.prelim)/2;a?(e.hierNode.prelim=a.hierNode.prelim+t(e,a),e.hierNode.modifier=e.hierNode.prelim-s):e.hierNode.prelim=s}else a&&(e.hierNode.prelim=a.hierNode.prelim+t(e,a));e.parentNode.hierNode.defaultAncestor=function(e,t,i,n){if(t){for(var a=e,s=e,l=s.parentNode.children[0],c=t,d=a.hierNode.modifier,u=s.hierNode.modifier,h=l.hierNode.modifier,p=c.hierNode.modifier;c=o(c),s=r(s),c&&s;){a=o(a),l=r(l),a.hierNode.ancestor=e;var f,g,m,v=c.hierNode.prelim+p-s.hierNode.prelim-u+n(c,s);v>0&&(function(e,t,i){var n=i/(t.hierNode.i-e.hierNode.i);t.hierNode.change-=n,t.hierNode.shift+=i,t.hierNode.modifier+=i,t.hierNode.prelim+=i,e.hierNode.change+=n}((f=c,g=e,m=i,f.hierNode.ancestor.parentNode===g.parentNode?f.hierNode.ancestor:m),e,v),u+=v,d+=v),p+=c.hierNode.modifier,u+=s.hierNode.modifier,d+=a.hierNode.modifier,h+=l.hierNode.modifier}c&&!o(a)&&(a.hierNode.thread=c,a.hierNode.modifier+=p-d),s&&!r(l)&&(l.hierNode.thread=s,l.hierNode.modifier+=u-h,i=e)}return i}(e,a,e.parentNode.hierNode.defaultAncestor||n[0],t)},t.secondWalk=function(e){var t=e.hierNode.prelim+e.parentNode.hierNode.modifier;e.setLayout({x:t},!0),e.hierNode.modifier+=e.parentNode.hierNode.modifier},t.separation=function(e){return arguments.length?e:a},t.radialCoordinate=function(e,t){var i={};return i.x=t*Math.cos(e-=Math.PI/2),i.y=t*Math.sin(e),i},t.getViewRect=function(e,t){return n.getLayoutRect(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}},71821:function(e,t){t.eachAfter=function(e,t,i){for(var n,o=[e],r=[];n=o.pop();)if(r.push(n),n.isExpand){var a=n.children;if(a.length)for(var s=0;s<a.length;s++)o.push(a[s])}for(;n=r.pop();)t(n,i)},t.eachBefore=function(e,t){for(var i,n=[e];i=n.pop();)if(t(i),i.isExpand){var o=i.children;if(o.length)for(var r=o.length-1;r>=0;r--)n.push(o[r])}}},90951:function(e,t,i){var n=i(47475),o=i(31616).updateCenterAndZoom;n.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(e,t){t.eachComponent({mainType:"series",subType:"tree",query:e},function(t){var i=e.dataIndex,n=t.getData().tree.getNodeByDataIndex(i);n.isExpand=!n.isExpand})}),n.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(e,t){t.eachComponent({mainType:"series",subType:"tree",query:e},function(t){var i=o(t.coordinateSystem,e);t.setCenter&&t.setCenter(i.center),t.setZoom&&t.setZoom(i.zoom)})})},94042:function(e,t,i){var n=i(71821),o=n.eachAfter,r=n.eachBefore,a=i(67217),s=a.init,l=a.firstWalk,c=a.secondWalk,d=a.separation,u=a.radialCoordinate,h=a.getViewRect;e.exports=function(e,t){e.eachSeriesByType("tree",function(e){!function(e,t){var i=h(e,t);e.layoutInfo=i;var n=e.get("layout"),a=0,p=0,f=null;"radial"===n?(a=2*Math.PI,p=Math.min(i.height,i.width)/2,f=d(function(e,t){return(e.parentNode===t.parentNode?1:2)/e.depth})):(a=i.width,p=i.height,f=d());var g=e.getData().tree.root,m=g.children[0];if(m){s(g),o(m,l,f),g.hierNode.modifier=-m.hierNode.prelim,r(m,c);var v=m,b=m,y=m;r(m,function(e){var t=e.getLayout().x;t<v.getLayout().x&&(v=e),t>b.getLayout().x&&(b=e),e.depth>y.depth&&(y=e)});var w=v===b?1:f(v,b)/2,_=w-v.getLayout().x,x=0,S=0,C=0,k=0;if("radial"===n)x=a/(b.getLayout().x+w+_),S=p/(y.depth-1||1),r(m,function(e){C=(e.getLayout().x+_)*x,k=(e.depth-1)*S;var t=u(C,k);e.setLayout({x:t.x,y:t.y,rawX:C,rawY:k},!0)});else{var I=e.getOrient();"RL"===I||"LR"===I?(S=p/(b.getLayout().x+w+_),x=a/(y.depth-1||1),r(m,function(e){k=(e.getLayout().x+_)*S,C="LR"===I?(e.depth-1)*x:a-(e.depth-1)*x,e.setLayout({x:C,y:k},!0)})):("TB"===I||"BT"===I)&&(x=a/(b.getLayout().x+w+_),S=p/(y.depth-1||1),r(m,function(e){C=(e.getLayout().x+_)*x,k="TB"===I?(e.depth-1)*S:p-(e.depth-1)*S,e.setLayout({x:C,y:k},!0)}))}}}(e,t)})}},74698:function(e,t,i){var n=i(47475);i(88566),i(30872),i(76527);var o=i(1058),r=i(13311);n.registerVisual(o),n.registerLayout(r)},68595:function(e,t,i){var n=i(76165),o=i(68006),r=i(66023),a=i(38300).wrapTreePathInfo;function s(e){this.group=new n.Group,e.add(this.group)}s.prototype={constructor:s,render:function(e,t,i,n){var r=e.getModel("breadcrumb"),a=this.group;if(a.removeAll(),r.get("show")&&i){var s=r.getModel("itemStyle"),l=s.getModel("textStyle"),c={pos:{left:r.get("left"),right:r.get("right"),top:r.get("top"),bottom:r.get("bottom")},box:{width:t.getWidth(),height:t.getHeight()},emptyItemWidth:r.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(i,c,l),this._renderContent(e,c,s,l,n),o.positionElement(a,c.pos,c.box)}},_prepare:function(e,t,i){for(var n=e;n;n=n.parentNode){var o=n.getModel().get("name"),r=Math.max(i.getTextRect(o).width+16,t.emptyItemWidth);t.totalWidth+=r+8,t.renderList.push({node:n,text:o,width:r})}},_renderContent:function(e,t,i,s,l){for(var c=0,d=t.emptyItemWidth,u=e.get("breadcrumb.height"),h=o.getAvailableSize(t.pos,t.box),p=t.totalWidth,f=t.renderList,g=f.length-1;g>=0;g--){var m,v,b,y=f[g],w=y.node,_=y.width,x=y.text;p>h.width&&(p-=_-d,_=d,x=null);var S=new n.Polygon({shape:{points:function(e,t,i,n,o,r){var a=[[o?e:e-5,0],[e+i,t],[e+i,t+n],[o?e:e-5,t+n]];return r||a.splice(2,0,[e+i+5,t+n/2]),o||a.push([e,t+n/2]),a}(c,0,_,u,g===f.length-1,0===g)},style:r.defaults(i.getItemStyle(),{lineJoin:"bevel",text:x,textFill:s.getTextColor(),textFont:s.getFont()}),z:10,onclick:r.curry(l,w)});this.group.add(S),m=S,v=e,b=w,m.eventData={componentType:"series",componentSubType:"treemap",componentIndex:v.componentIndex,seriesIndex:v.componentIndex,seriesName:v.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:b&&b.dataIndex,name:b&&b.name},treePathInfo:b&&a(b,v)},c+=_+8}},remove:function(){this.group.removeAll()}},e.exports=s},88566:function(e,t,i){var n=i(66023),o=i(26626),r=i(67935),a=i(27611),s=i(20438),l=s.encodeHTML,c=s.addCommas,d=i(38300).wrapTreePathInfo;e.exports=o.extend({type:"series.treemap",layoutMode:"box",dependencies:["grid","polar"],_viewRoot:null,defaultOption:{progressive:0,hoverLayerThreshold:1/0,left:"center",top:"middle",right:null,bottom:null,width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.1024,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",borderColor:"rgba(255,255,255,0.7)",borderWidth:1,shadowColor:"rgba(150,150,150,1)",shadowBlur:3,shadowOffsetX:0,shadowOffsetY:0,textStyle:{color:"#fff"}},emphasis:{textStyle:{}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",ellipsis:!0},upperLabel:{show:!1,position:[0,"50%"],height:20,color:"#fff",ellipsis:!0,verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],color:"#fff",ellipsis:!0,verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},getInitialData:function(e,t){var i={name:e.name,children:e.data};!function e(t){var i=0;n.each(t.children,function(t){e(t);var o=t.value;n.isArray(o)&&(o=o[0]),i+=o});var o=t.value;n.isArray(o)&&(o=o[0]),(null==o||isNaN(o))&&(o=i),o<0&&(o=0),n.isArray(t.value)?t.value[0]=o:t.value=o}(i);var o=e.levels||[];o=e.levels=function(e,t){var i,o=t.get("color");if(o)return e=e||[],n.each(e,function(e){var t=new a(e),n=t.get("color");(t.get("itemStyle.color")||n&&"none"!==n)&&(i=!0)}),i||((e[0]||(e[0]={})).color=o.slice()),e}(o,t);var s={};return s.levels=o,r.createTree(i,this,s).data},optionUpdated:function(){this.resetViewRoot()},formatTooltip:function(e){var t=this.getData(),i=this.getRawValue(e),o=n.isArray(i)?c(i[0]):c(i);return l(t.getName(e)+": "+o)},getDataParams:function(e){var t=o.prototype.getDataParams.apply(this,arguments);return t.treePathInfo=d(this.getData().tree.getNodeByDataIndex(e),this),t},setLayoutInfo:function(e){this.layoutInfo=this.layoutInfo||{},n.extend(this.layoutInfo,e)},mapIdToIndex:function(e){var t=this._idIndexMap;t||(t=this._idIndexMap=n.createHashMap(),this._idIndexMapCount=0);var i=t.get(e);return null==i&&t.set(e,i=this._idIndexMapCount++),i},getViewRoot:function(){return this._viewRoot},resetViewRoot:function(e){e?this._viewRoot=e:e=this._viewRoot;var t=this.getRawData().tree.root;e&&(e===t||t.contains(e))||(this._viewRoot=t)}})},30872:function(e,t,i){var n=i(47475),o=i(66023),r=i(76165),a=i(13593),s=i(38300),l=i(68595),c=i(84275),d=i(71497),u=i(36653),h=i(45617),p=i(24954),f=o.bind,g=r.Group,m=r.Rect,v=o.each,b=["label"],y=["emphasis","label"],w=["upperLabel"],_=["emphasis","upperLabel"],x=p([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),S=function(e){var t=x(e);return t.stroke=t.fill=t.lineWidth=null,t};function C(){return{nodeGroup:[],background:[],content:[]}}function k(e,t,i,n,a,s,l,c,d,u){if(l){var h=l.getLayout();if(h&&h.isInView){var p=h.width,f=h.height,v=h.borderWidth,C=h.invisible,k=l.getRawIndex(),I=c&&c.getRawIndex(),A=l.viewChildren,T=h.upperHeight,E=A&&A.length,R=l.getModel("itemStyle"),D=l.getModel("emphasis.itemStyle"),O=j("nodeGroup",g);if(O){if(d.add(O),O.attr("position",[h.x||0,h.y||0]),O.__tmNodeWidth=p,O.__tmNodeHeight=f,h.isAboveViewRoot)return O;var M=j("background",m,u,1);if(M&&(N=O,P=M,L=E&&h.upperHeight,P.dataIndex=l.dataIndex,P.seriesIndex=e.seriesIndex,P.setShape({x:0,y:0,width:p,height:f}),B=l.getVisual("borderColor",!0),F=D.get("borderColor"),G(P,function(){var e=S(R);e.fill=B;var t=x(D);if(t.fill=F,L){var i=p-2*v;Z(e,t,B,i,T,{x:v,y:0,width:i,height:T})}else e.text=t.text=null;P.setStyle(e),r.setHoverStyle(P,t)}),N.add(P)),!E){var N,P,L,B,F,V,z,H,W,Y,U=j("content",m,u,2);U&&(V=O,(z=U).dataIndex=l.dataIndex,z.seriesIndex=e.seriesIndex,H=Math.max(p-2*v,0),W=Math.max(f-2*v,0),z.culling=!0,z.setShape({x:v,y:v,width:H,height:W}),Y=l.getVisual("color",!0),G(z,function(){var e=S(R);e.fill=Y;var t=x(D);Z(e,t,Y,H,W),z.setStyle(e),r.setHoverStyle(z,t)}),V.add(z))}return O}}}function G(e,t){C?e.invisible||s.push(e):(t(),e.__tmWillVisible||(e.invisible=!1))}function Z(t,i,n,a,s,c){var d=l.getModel(),u=o.retrieve(e.getFormattedLabel(l.dataIndex,"normal",null,null,c?"upperLabel":"label"),d.get("name"));if(!c&&h.isLeafRoot){var p=e.get("drillDownIcon",!0);u=p?p+" "+u:u}var f=d.getModel(c?w:b),g=d.getModel(c?_:y),m=f.getShallow("show");r.setLabelStyle(t,i,f,g,{defaultText:m?u:null,autoColor:n,isRectText:!0}),c&&(t.textRect=o.clone(c)),t.truncate=m&&f.get("ellipsis")?{outerWidth:a,outerHeight:s,minChar:2}:null}function j(e,r,s,c){var d,u,h,p,f=null!=I&&i[e][I],g=a[e];return f?(i[e][I]=null,d=g,u=f,h=e,(d[k]={}).old="nodeGroup"===h?u.position.slice():o.extend({},u.shape)):C||((f=new r({z:((p=10*s+c)-1)/p})).__tmDepth=s,f.__tmStorageName=e,function(e,t,i){var o=e[k]={},r=l.parentNode;if(r&&(!n||"drillDown"===n.direction)){var s=0,c=0,d=a.background[r.getRawIndex()];!n&&d&&d.old&&(s=d.old.width,c=d.old.height),o.old="nodeGroup"===i?[0,c]:{x:s,y:c,width:0,height:0}}o.fadein="nodeGroup"!==i}(g,0,e)),t[e][k]=f}}e.exports=n.extendChartView({type:"treemap",init:function(e,t){this._containerGroup,this._storage=C(),this._oldTree,this._breadcrumb,this._controller,this._state="ready"},render:function(e,t,i,n){var r=t.findComponents({mainType:"series",subType:"treemap",query:n});if(!(0>o.indexOf(r,e))){this.seriesModel=e,this.api=i,this.ecModel=t;var a=s.retrieveTargetInfo(n,["treemapZoomToNode","treemapRootToNode"],e),l=n&&n.type,c=e.layoutInfo,d=!this._oldTree,u=this._storage,h="treemapRootToNode"===l&&a&&u?{rootNodeGroup:u.nodeGroup[a.node.getRawIndex()],direction:n.direction}:null,p=this._giveContainerGroup(c),f=this._doRender(p,e,h);d||l&&"treemapZoomToNode"!==l&&"treemapRootToNode"!==l?f.renderFinally():this._doAnimation(p,f,e,h),this._resetController(i),this._renderBreadcrumb(e,i,a)}},_giveContainerGroup:function(e){var t=this._containerGroup;return t||(t=this._containerGroup=new g,this._initEvents(t),this.group.add(t)),t.attr("position",[e.x,e.y]),t},_doRender:function(e,t,i){var n,r,s=t.getData().tree,l=this._oldTree,c=C(),d=C(),u=this._storage,h=[],p=o.curry(k,t,d,u,i,c,h);!function e(t,i,n,r,s){function l(e){return e.getId()}function c(o,a){var l=null!=o?t[o]:null,c=null!=a?i[a]:null,d=p(l,c,n,s);d&&e(l&&l.viewChildren||[],c&&c.viewChildren||[],d,r,s+1)}r?(i=t,v(t,function(e,t){e.isRemoved()||c(t,t)})):new a(i,t,l,l).add(c).update(c).remove(o.curry(c,null)).execute()}(s.root?[s.root]:[],l&&l.root?[l.root]:[],e,s===l||!l,0);var f=(n=u,r=C(),n&&v(n,function(e,t){var i=r[t];v(e,function(e){e&&(i.push(e),e.__tmWillDelete=1)})}),r);return this._oldTree=s,this._storage=d,{lastsForAnimation:c,willDeleteEls:f,renderFinally:function(){v(f,function(e){v(e,function(e){e.parent&&e.parent.remove(e)})}),v(h,function(e){e.invisible=!0,e.dirty()})}}},_doAnimation:function(e,t,i,n){if(i.get("animation")){var r=i.get("animationDurationUpdate"),a=i.get("animationEasing"),s=h.createWrap();v(t.willDeleteEls,function(e,t){v(e,function(e,i){if(!e.invisible){var o,l=e.parent;if(n&&"drillDown"===n.direction)o=l===n.rootNodeGroup?{shape:{x:0,y:0,width:l.__tmNodeWidth,height:l.__tmNodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var c=0,d=0;l.__tmWillDelete||(c=l.__tmNodeWidth/2,d=l.__tmNodeHeight/2),o="nodeGroup"===t?{position:[c,d],style:{opacity:0}}:{shape:{x:c,y:d,width:0,height:0},style:{opacity:0}}}o&&s.add(e,o,r,a)}})}),v(this._storage,function(e,i){v(e,function(e,n){var l=t.lastsForAnimation[i][n],c={};l&&("nodeGroup"===i?l.old&&(c.position=e.position.slice(),e.attr("position",l.old)):(l.old&&(c.shape=o.extend({},e.shape),e.setShape(l.old)),l.fadein?(e.setStyle("opacity",0),c.style={opacity:1}):1!==e.style.opacity&&(c.style={opacity:1})),s.add(e,c,r,a))})},this),this._state="animating",s.done(f(function(){this._state="ready",t.renderFinally()},this)).start()}},_resetController:function(e){var t=this._controller;t||((t=this._controller=new c(e.getZr())).enable(this.seriesModel.get("roam")),t.on("pan",f(this._onPan,this)),t.on("zoom",f(this._onZoom,this)));var i=new d(0,0,e.getWidth(),e.getHeight());t.setPointerChecker(function(e,t,n){return i.contain(t,n)})},_clearController:function(){var e=this._controller;e&&(e.dispose(),e=null)},_onPan:function(e){if("animating"!==this._state&&(Math.abs(e.dx)>3||Math.abs(e.dy)>3)){var t=this.seriesModel.getData().tree.root;if(t){var i=t.getLayout();i&&this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:i.x+e.dx,y:i.y+e.dy,width:i.width,height:i.height}})}}},_onZoom:function(e){var t=e.originX,i=e.originY;if("animating"!==this._state){var n=this.seriesModel.getData().tree.root;if(!n)return;var o=n.getLayout();if(!o)return;var r=new d(o.x,o.y,o.width,o.height),a=this.seriesModel.layoutInfo;t-=a.x,i-=a.y;var s=u.create();u.translate(s,s,[-t,-i]),u.scale(s,s,[e.scale,e.scale]),u.translate(s,s,[t,i]),r.applyTransform(s),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:r.x,y:r.y,width:r.width,height:r.height}})}},_initEvents:function(e){e.on("click",function(e){if("ready"===this._state){var t=this.seriesModel.get("nodeClick",!0);if(t){var i=this.findTarget(e.offsetX,e.offsetY);if(i){var n=i.node;if(n.getLayout().isLeafRoot)this._rootToNode(i);else if("zoomToNode"===t)this._zoomToNode(i);else if("link"===t){var o=n.hostTree.data.getItemModel(n.dataIndex),r=o.get("link",!0),a=o.get("target",!0)||"blank";r&&window.open(r,a)}}}}},this)},_renderBreadcrumb:function(e,t,i){!i&&((i=null!=e.get("leafDepth",!0)?{node:e.getViewRoot()}:this.findTarget(t.getWidth()/2,t.getHeight()/2))||(i={node:e.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new l(this.group))).render(e,t,i.node,f(function(t){"animating"!==this._state&&(s.aboveViewRoot(e.getViewRoot(),t)?this._rootToNode({node:t}):this._zoomToNode({node:t}))},this))},remove:function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=C(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},dispose:function(){this._clearController()},_zoomToNode:function(e){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},_rootToNode:function(e){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},findTarget:function(e,t){var i;return this.seriesModel.getViewRoot().eachNode({attr:"viewChildren",order:"preorder"},function(n){var o=this._storage.background[n.getRawIndex()];if(o){var r=o.transformCoordToLocal(e,t),a=o.shape;if(!(a.x<=r[0])||!(r[0]<=a.x+a.width)||!(a.y<=r[1])||!(r[1]<=a.y+a.height))return!1;i={node:n,offsetX:r[0],offsetY:r[1]}}},this),i}})},76527:function(e,t,i){for(var n=i(47475),o=i(38300),r=function(){},a=["treemapZoomToNode","treemapRender","treemapMove"],s=0;s<a.length;s++)n.registerAction({type:a[s],update:"updateView"},r);n.registerAction({type:"treemapRootToNode",update:"updateView"},function(e,t){t.eachComponent({mainType:"series",subType:"treemap",query:e},function(t,i){var n=o.retrieveTargetInfo(e,["treemapZoomToNode","treemapRootToNode"],t);if(n){var r=t.getViewRoot();r&&(e.direction=o.aboveViewRoot(r,n.node)?"rollUp":"drillDown"),t.resetViewRoot(n.node)}})})},13311:function(e,t,i){var n=i(66023),o=i(71497),r=i(98763),a=r.parsePercent,s=r.MAX_SAFE_INTEGER,l=i(68006),c=i(38300),d=Math.max,u=Math.min,h=n.retrieve,p=n.each,f=["itemStyle","borderWidth"],g=["itemStyle","gapWidth"],m=["upperLabel","show"],v=["upperLabel","height"];function b(e,t,i,n,o){var r=+(t!==i.width),a=1-r,s=["x","y"],l=["width","height"],c=i[s[r]],h=t?e.area/t:0;(o||h>i[l[a]])&&(h=i[l[a]]);for(var p=0,f=e.length;p<f;p++){var g=e[p],m={},v=h?g.getLayout().area/h:0,b=m[l[a]]=d(h-2*n,0),y=i[s[r]]+i[l[r]]-c,w=p===f-1||y<v?y:v,_=m[l[r]]=d(w-2*n,0);m[s[a]]=i[s[a]]+u(n,b/2),m[s[r]]=c+u(n,_/2),c+=w,g.setLayout(m,!0)}i[s[a]]+=h,i[l[a]]-=h}function y(e){return e.get(m)?e.get(v):0}e.exports={seriesType:"treemap",reset:function(e,t,i,r){var m=i.getWidth(),v=i.getHeight(),w=e.option,_=l.getLayoutRect(e.getBoxLayoutParams(),{width:i.getWidth(),height:i.getHeight()}),x=w.size||[],S=a(h(_.width,x[0]),m),C=a(h(_.height,x[1]),v),k=r&&r.type,I=c.retrieveTargetInfo(r,["treemapZoomToNode","treemapRootToNode"],e),A="treemapRender"===k||"treemapMove"===k?r.rootRect:null,T=e.getViewRoot(),E=c.getPathToRoot(T);if("treemapMove"!==k){var R="treemapZoomToNode"===k?function(e,t,i,n,o){var r,a=(t||{}).node,l=[n,o];if(!a||a===i)return l;for(var c=n*o,d=c*e.option.zoomToNodeRatio;r=a.parentNode;){for(var u=0,h=r.children,p=0,g=h.length;p<g;p++)u+=h[p].getValue();var m=a.getValue();if(0===m)return l;d*=u/m;var v=r.getModel(),b=v.get(f),w=Math.max(b,y(v,b));(d+=4*b*b+(3*b+w)*Math.pow(d,.5))>s&&(d=s),a=r}d<c&&(d=c);var _=Math.pow(d/c,.5);return[n*_,o*_]}(e,I,T,S,C):A?[A.width,A.height]:[S,C],D=w.sort;D&&"asc"!==D&&"desc"!==D&&(D="desc");var O={squareRatio:w.squareRatio,sort:D,leafDepth:w.leafDepth};T.hostTree.clearLayouts();var M={x:0,y:0,width:R[0],height:R[1],area:R[0]*R[1]};T.setLayout(M),function e(t,i,o,r){if(!t.isRemoved()){var a,s,l=t.getLayout();a=l.width,s=l.height;var c=t.getModel(),h=c.get(f),m=c.get(g)/2,v=y(c),w=Math.max(h,v),_=h-m,x=w-m,c=t.getModel();t.setLayout({borderWidth:h,upperHeight:w,upperLabelHeight:v},!0);var S=(a=d(a-2*_,0))*(s=d(s-_-x,0)),C=function(e,t,i,o,r,a){var s,l,c=e.children||[],d=o.sort;"asc"!==d&&"desc"!==d&&(d=null);var u=null!=o.leafDepth&&o.leafDepth<=a;if(r&&!u)return e.viewChildren=[];s=c=n.filter(c,function(e){return!e.isRemoved()}),(l=d)&&s.sort(function(e,t){var i="asc"===l?e.getValue()-t.getValue():t.getValue()-e.getValue();return 0===i?"asc"===l?e.dataIndex-t.dataIndex:t.dataIndex-e.dataIndex:i});var h=function(e,t,i){for(var n,o=0,r=0,a=t.length;r<a;r++)o+=t[r].getValue();var s=e.get("visualDimension");if(t&&t.length)if("value"===s&&i)n=[t[t.length-1].getValue(),t[0].getValue()],"asc"===i&&n.reverse();else{var n=[1/0,-1/0];p(t,function(e){var t=e.getValue(s);t<n[0]&&(n[0]=t),t>n[1]&&(n[1]=t)})}else n=[NaN,NaN];return{sum:o,dataExtent:n}}(t,c,d);if(0===h.sum||(h.sum=function(e,t,i,n,o){if(!n)return i;for(var r=e.get("visibleMin"),a=o.length,s=a,l=a-1;l>=0;l--){var c=o["asc"===n?a-l-1:l].getValue();c/i*t<r&&(s=l,i-=c)}return"asc"===n?o.splice(0,a-s):o.splice(s,a-s),i}(t,i,h.sum,d,c),0===h.sum))return e.viewChildren=[];for(var f=0,g=c.length;f<g;f++){var m=c[f].getValue()/h.sum*i;c[f].setLayout({area:m})}return u&&(c.length&&e.setLayout({isLeafRoot:!0},!0),c.length=0),e.viewChildren=c,e.setLayout({dataExtent:h.dataExtent},!0),c}(t,c,S,i,o,r);if(C.length){var k={x:_,y:x,width:a,height:s},I=u(a,s),A=1/0,T=[];T.area=0;for(var E=0,R=C.length;E<R;){var D=C[E];T.push(D),T.area+=D.getLayout().area;var O=function(e,t,i){for(var n,o=0,r=1/0,a=0,s=e.length;a<s;a++)(n=e[a].getLayout().area)&&(n<r&&(r=n),n>o&&(o=n));var l=e.area*e.area,c=t*t*i;return l?d(c*o/l,l/(c*r)):1/0}(T,I,i.squareRatio);O<=A?(E++,A=O):(T.area-=T.pop().getLayout().area,b(T,I,k,m,!1),I=u(k.width,k.height),T.length=T.area=0,A=1/0)}if(T.length&&b(T,I,k,m,!0),!o){var M=c.get("childrenVisibleMin");null!=M&&S<M&&(o=!0)}for(var E=0,R=C.length;E<R;E++)e(C[E],i,o,r+1)}}}(T,O,!1,0);var M=T.getLayout();p(E,function(e,t){var i=(E[t+1]||T).getValue();e.setLayout(n.extend({dataExtent:[i,i],borderWidth:0,upperHeight:0},M))})}var N=e.getData().tree.root;N.setLayout(function(e,t,i){if(t)return{x:t.x,y:t.y};var n={x:0,y:0};if(!i)return n;var o=i.node,r=o.getLayout();if(!r)return n;for(var a=[r.width/2,r.height/2],s=o;s;){var l=s.getLayout();a[0]+=l.x,a[1]+=l.y,s=s.parentNode}return{x:e.width/2-a[0],y:e.height/2-a[1]}}(_,A,I),!0),e.setLayoutInfo(_),function e(t,i,n,r,a){var s=t.getLayout(),l=n[a],c=l&&l===t;if((!l||c)&&(a!==n.length||t===r)){t.setLayout({isInView:!0,invisible:!c&&!i.intersect(s),isAboveViewRoot:c},!0);var d=new o(i.x-s.x,i.y-s.y,i.width,i.height);p(t.viewChildren||[],function(t){e(t,d,n,r,a+1)})}}(N,new o(-_.x,-_.y,m,v),E,T,0)}}},1058:function(e,t,i){var n=i(95138),o=i(53453),r=i(66023),a=r.isArray,s="itemStyle";function l(e){var t=c(e,"color");if(t){var i=c(e,"colorAlpha"),n=c(e,"colorSaturation");return n&&(t=o.modifyHSL(t,null,null,n)),i&&(t=o.modifyAlpha(t,i)),t}}function c(e,t){var i=e[t];if(null!=i&&"none"!==i)return i}function d(e,t){var i=e.get(t);return a(i)&&i.length?{name:t,range:i}:null}e.exports={seriesType:"treemap",reset:function(e,t,i,a){var c=e.getData().tree,u=c.root,h=e.getModel(s);u.isRemoved()||function e(t,i,a,c,u,h){var p,f=t.getModel(),g=t.getLayout();if(g&&!g.invisible&&g.isInView){var m,v,b,y,w,_,x,S=t.getModel(s),C=(m=S,v=i,b=a[t.depth],y=c,w=r.extend({},v),r.each(["color","colorAlpha","colorSaturation"],function(e){var t=m.get(e,!0);null==t&&b&&(t=b[e]),null==t&&(t=v[e]),null==t&&(t=y.get(e)),null!=t&&(w[e]=t)}),w),k=S.get("borderColor"),I=S.get("borderColorSaturation");null!=I&&(_=I,k=null!=(x=p=l(C,t))?o.modifyHSL(x,null,null,_):null),t.setVisual("borderColor",k);var A=t.viewChildren;if(A&&A.length){var T=function(e,t,i,o,r,a){if(a&&a.length){var s=d(t,"color")||null!=r.color&&"none"!==r.color&&(d(t,"colorAlpha")||d(t,"colorSaturation"));if(s){var l=t.get("visualMin"),c=t.get("visualMax"),u=i.dataExtent.slice();null!=l&&l<u[0]&&(u[0]=l),null!=c&&c>u[1]&&(u[1]=c);var h=t.get("colorMappingBy"),p={type:s.name,dataExtent:u,visual:s.range};"color"===p.type&&("index"===h||"id"===h)?(p.mappingMethod="category",p.loop=!0):p.mappingMethod="linear";var f=new n(p);return f.__drColorMappingBy=h,f}}}(0,f,g,0,C,A);r.each(A,function(t,i){if(t.depth>=u.length||t===u[t.depth]){var n=function(e,t,i,n,o,a){var s=r.extend({},t);if(o){var l=o.type,c="color"===l&&o.__drColorMappingBy,d="index"===c?n:"id"===c?a.mapIdToIndex(i.getId()):i.getValue(e.get("visualDimension"));s[l]=o.mapValueToVisual(d)}return s}(f,C,t,i,T,h);e(t,n,a,c,u,h)}})}else p=l(C,t),t.setVisual("color",p)}}(u,{},r.map(c.levelModels,function(e){return e?e.get(s):null}),h,e.getViewRoot().getAncestors(),e)}}},66912:function(e,t,i){i(1748),i(86929)},95375:function(e,t,i){i(13452),i(73772)},86929:function(e,t,i){var n=i(66023),o=i(76165),r=i(27611),a=i(90516),s=["axisLine","axisLabel","axisTick","splitLine","splitArea"];function l(e,t,i){t[1]>t[0]&&(t=t.slice().reverse());var n=e.coordToPoint([t[0],i]),o=e.coordToPoint([t[1],i]);return{x1:n[0],y1:n[1],x2:o[0],y2:o[1]}}function c(e){return+!e.getRadiusAxis().inverse}function d(e){var t=e[0],i=e[e.length-1];t&&i&&1e-4>Math.abs(Math.abs(t.coord-i.coord)-360)&&e.pop()}e.exports=a.extend({type:"angleAxis",axisPointerClass:"PolarAxisPointer",render:function(e,t){if(this.group.removeAll(),e.get("show")){var i=e.axis,o=i.polar,r=o.getRadiusAxis().getExtent(),a=i.getTicksCoords(),l=n.map(i.getViewLabels(),function(e){var e=n.clone(e);return e.coord=i.dataToCoord(e.tickValue),e});d(l),d(a),n.each(s,function(t){e.get(t+".show")&&(!i.scale.isBlank()||"axisLine"===t)&&this["_"+t](e,o,a,r,l)},this)}},_axisLine:function(e,t,i,n){var r=e.getModel("axisLine.lineStyle"),a=new o.Circle({shape:{cx:t.cx,cy:t.cy,r:n[c(t)]},style:r.getLineStyle(),z2:1,silent:!0});a.style.fill=null,this.group.add(a)},_axisTick:function(e,t,i,r){var a=e.getModel("axisTick"),s=(a.get("inside")?-1:1)*a.get("length"),d=r[c(t)],u=n.map(i,function(e){return new o.Line({shape:l(t,[d,d+s],e.coord)})});this.group.add(o.mergePath(u,{style:n.defaults(a.getModel("lineStyle").getLineStyle(),{stroke:e.get("axisLine.lineStyle.color")})}))},_axisLabel:function(e,t,i,a,s){var l=e.getCategories(!0),d=e.getModel("axisLabel"),u=d.get("margin");n.each(s,function(i,n){var s=d,h=i.tickValue,p=a[c(t)],f=t.coordToPoint([p+u,i.coord]),g=t.cx,m=t.cy,v=Math.abs(f[0]-g)/p<.3?"center":f[0]>g?"left":"right",b=Math.abs(f[1]-m)/p<.3?"middle":f[1]>m?"top":"bottom";l&&l[h]&&l[h].textStyle&&(s=new r(l[h].textStyle,d,d.ecModel));var y=new o.Text({silent:!0});this.group.add(y),o.setTextStyle(y.style,s,{x:f[0],y:f[1],textFill:s.getTextColor()||e.get("axisLine.lineStyle.color"),text:i.formattedLabel,textAlign:v,textVerticalAlign:b})},this)},_splitLine:function(e,t,i,r){var a=e.getModel("splitLine").getModel("lineStyle"),s=a.get("color"),c=0;s=s instanceof Array?s:[s];for(var d=[],u=0;u<i.length;u++){var h=c++%s.length;d[h]=d[h]||[],d[h].push(new o.Line({shape:l(t,r,i[u].coord)}))}for(var u=0;u<d.length;u++)this.group.add(o.mergePath(d[u],{style:n.defaults({stroke:s[u%s.length]},a.getLineStyle()),silent:!0,z:e.get("z")}))},_splitArea:function(e,t,i,r){if(i.length){var a=e.getModel("splitArea").getModel("areaStyle"),s=a.get("color"),l=0;s=s instanceof Array?s:[s];for(var c=[],d=Math.PI/180,u=-i[0].coord*d,h=Math.min(r[0],r[1]),p=Math.max(r[0],r[1]),f=e.get("clockwise"),g=1;g<i.length;g++){var m=l++%s.length;c[m]=c[m]||[],c[m].push(new o.Sector({shape:{cx:t.cx,cy:t.cy,r0:h,r:p,startAngle:u,endAngle:-i[g].coord*d,clockwise:f},silent:!0})),u=-i[g].coord*d}for(var g=0;g<c.length;g++)this.group.add(o.mergePath(c[g],{style:n.defaults({fill:s[g%s.length]},a.getAreaStyle()),silent:!0}))}}})},96972:function(e,t,i){var n=i(66023),o=n.retrieve,r=n.defaults,a=n.extend,s=n.each,l=i(20438),c=i(76165),d=i(27611),u=i(98763),h=u.isRadianAroundZero,p=u.remRadian,f=i(87557).createSymbol,g=i(36653),m=i(3265).applyTransform,v=i(16978).shouldShowAllLabels,b=Math.PI;function y(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+"Index"]=e.componentIndex,t}var w=function(e,t){this.opt=t,this.axisModel=e,r(t,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0}),this.group=new c.Group;var i=new c.Group({position:t.position.slice(),rotation:t.rotation});i.updateTransform(),this._transform=i.transform,this._dumbGroup=i};w.prototype={constructor:w,hasBuilder:function(e){return!!_[e]},add:function(e){_[e].call(this)},getGroup:function(){return this.group}};var _={axisLine:function(){var e=this.opt,t=this.axisModel;if(t.get("axisLine.show")){var i=this.axisModel.axis.getExtent(),n=this._transform,o=[i[0],0],r=[i[1],0];n&&(m(o,o,n),m(r,r,n));var l=a({lineCap:"round"},t.getModel("axisLine.lineStyle").getLineStyle());this.group.add(new c.Line(c.subPixelOptimizeLine({anid:"line",shape:{x1:o[0],y1:o[1],x2:r[0],y2:r[1]},style:l,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1})));var d=t.get("axisLine.symbol"),u=t.get("axisLine.symbolSize"),h=t.get("axisLine.symbolOffset")||0;if("number"==typeof h&&(h=[h,h]),null!=d){"string"==typeof d&&(d=[d,d]),("string"==typeof u||"number"==typeof u)&&(u=[u,u]);var p=u[0],g=u[1];s([{rotate:e.rotation+Math.PI/2,offset:h[0],r:0},{rotate:e.rotation-Math.PI/2,offset:h[1],r:Math.sqrt((o[0]-r[0])*(o[0]-r[0])+(o[1]-r[1])*(o[1]-r[1]))}],function(t,i){if("none"!==d[i]&&null!=d[i]){var n=f(d[i],-p/2,-g/2,p,g,l.stroke,!0),r=t.r+t.offset,a=[o[0]+r*Math.cos(e.rotation),o[1]-r*Math.sin(e.rotation)];n.attr({rotation:t.rotate,position:a,silent:!0,z2:11}),this.group.add(n)}},this)}}},axisTickLabel:function(){var e=this.axisModel,t=this.opt,i=function(e,t,i){var n=t.axis;if(!(!t.get("axisTick.show")||n.scale.isBlank())){for(var o=t.getModel("axisTick"),a=o.getModel("lineStyle"),s=o.get("length"),l=n.getTicksCoords(),d=[],u=[],h=e._transform,p=[],f=0;f<l.length;f++){var g=l[f].coord;d[0]=g,d[1]=0,u[0]=g,u[1]=i.tickDirection*s,h&&(m(d,d,h),m(u,u,h));var v=new c.Line(c.subPixelOptimizeLine({anid:"tick_"+l[f].tickValue,shape:{x1:d[0],y1:d[1],x2:u[0],y2:u[1]},style:r(a.getLineStyle(),{stroke:t.get("axisLine.lineStyle.color")}),z2:2,silent:!0}));e.group.add(v),p.push(v)}return p}}(this,e,t),n=function(e,t,i){var n=t.axis;if(!(!o(i.axisLabelShow,t.get("axisLabel.show"))||n.scale.isBlank())){var r=t.getModel("axisLabel"),a=r.get("margin"),l=n.getViewLabels(),u=(o(i.labelRotate,r.get("rotate"))||0)*b/180,h=x(i.rotation,u,i.labelDirection),p=t.getCategories(!0),f=[],g=S(t),m=t.get("triggerEvent");return s(l,function(o,s){var l=o.tickValue,u=o.formattedLabel,v=o.rawLabel,b=r;p&&p[l]&&p[l].textStyle&&(b=new d(p[l].textStyle,r,t.ecModel));var w=b.getTextColor()||t.get("axisLine.lineStyle.color"),_=[n.dataToCoord(l),i.labelOffset+i.labelDirection*a],x=new c.Text({anid:"label_"+l,position:_,rotation:h.rotation,silent:g,z2:10});c.setTextStyle(x.style,b,{text:u,textAlign:b.getShallow("align",!0)||h.textAlign,textVerticalAlign:b.getShallow("verticalAlign",!0)||b.getShallow("baseline",!0)||h.textVerticalAlign,textFill:"function"==typeof w?w("category"===n.type?v:"value"===n.type?l+"":l,s):w}),m&&(x.eventData=y(t),x.eventData.targetType="axisLabel",x.eventData.value=v),e._dumbGroup.add(x),x.updateTransform(),f.push(x),e.group.add(x),x.decomposeTransform()}),f}}(this,e,t);!function(e,t,i){if(!v(e.axis)){var n=e.get("axisLabel.showMinLabel"),o=e.get("axisLabel.showMaxLabel");i=i||[];var r=(t=t||[])[0],a=t[1],s=t[t.length-1],l=t[t.length-2],c=i[0],d=i[1],u=i[i.length-1],h=i[i.length-2];!1===n?(C(r),C(c)):k(r,a)&&(n?(C(a),C(d)):(C(r),C(c))),!1===o?(C(s),C(u)):k(l,s)&&(o?(C(l),C(h)):(C(s),C(u)))}}(e,n,i)},axisName:function(){var e,t,i=this.opt,n=this.axisModel,r=o(i.axisName,n.get("name"));if(r){var s,d,u,f,g,m,v,w,_,C=n.get("nameLocation"),k=i.nameDirection,A=n.getModel("nameTextStyle"),T=n.get("nameGap")||0,E=this.axisModel.axis.getExtent(),R=E[0]>E[1]?-1:1,D=["start"===C?E[0]-R*T:"end"===C?E[1]+R*T:(E[0]+E[1])/2,I(C)?i.labelOffset+k*T:0],O=n.get("nameRotate");null!=O&&(O=O*b/180),I(C)?e=x(i.rotation,null!=O?O:i.rotation,k):(s=i,d=C,u=O||0,f=E,v=p(u-s.rotation),w=f[0]>f[1],_="start"===d&&!w||"start"!==d&&w,h(v-b/2)?(m=_?"bottom":"top",g="center"):h(v-1.5*b)?(m=_?"top":"bottom",g="center"):(m="middle",g=v<1.5*b&&v>b/2?_?"left":"right":_?"right":"left"),e={rotation:v,textAlign:g,textVerticalAlign:m},null!=(t=i.axisNameAvailableWidth)&&(isFinite(t=Math.abs(t/Math.sin(e.rotation)))||(t=null)));var M=A.getFont(),N=n.get("nameTruncate",!0)||{},P=N.ellipsis,L=o(i.nameTruncateMaxWidth,N.maxWidth,t),B=null!=P&&null!=L?l.truncateText(r,L,M,P,{minChar:2,placeholder:N.placeholder}):r,F=n.get("tooltip",!0),V=n.mainType,z={componentType:V,name:r,$vars:["name"]};z[V+"Index"]=n.componentIndex;var H=new c.Text({anid:"name",__fullText:r,__truncatedText:B,position:D,rotation:e.rotation,silent:S(n),z2:1,tooltip:F&&F.show?a({content:r,formatter:function(){return r},formatterParams:z},F):null});c.setTextStyle(H.style,A,{text:B,textFont:M,textFill:A.getTextColor()||n.get("axisLine.lineStyle.color"),textAlign:e.textAlign,textVerticalAlign:e.textVerticalAlign}),n.get("triggerEvent")&&(H.eventData=y(n),H.eventData.targetType="axisName",H.eventData.name=r),this._dumbGroup.add(H),H.updateTransform(),this.group.add(H),H.decomposeTransform()}}},x=w.innerTextLayout=function(e,t,i){var n,o,r=p(t-e);return h(r)?(o=i>0?"top":"bottom",n="center"):h(r-b)?(o=i>0?"bottom":"top",n="center"):(o="middle",n=r>0&&r<b?i>0?"right":"left":i>0?"left":"right"),{rotation:r,textAlign:n,textVerticalAlign:o}};function S(e){var t=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||t&&t.show)}function C(e){e&&(e.ignore=!0)}function k(e,t,i){var n=e&&e.getBoundingRect().clone(),o=t&&t.getBoundingRect().clone();if(n&&o){var r=g.identity([]);return g.rotate(r,r,-e.rotation),n.applyTransform(g.mul([],r,e.getLocalTransform())),o.applyTransform(g.mul([],r,t.getLocalTransform())),n.intersect(o)}}function I(e){return"middle"===e||"center"===e}e.exports=w},90516:function(e,t,i){i(38603).__DEV__;var n=i(47475),o=i(75475),r=n.extendComponentView({type:"axis",_axisPointer:null,axisPointerClass:null,render:function(e,t,i,n){this.axisPointerClass&&o.fixValue(e),r.superApply(this,"render",arguments),a(this,e,t,i,n,!0)},updateAxisPointer:function(e,t,i,n,o){a(this,e,t,i,n,!1)},remove:function(e,t){var i=this._axisPointer;i&&i.remove(t),r.superApply(this,"remove",arguments)},dispose:function(e,t){s(this,t),r.superApply(this,"dispose",arguments)}});function a(e,t,i,n,a,l){var c=r.getAxisPointerClass(e.axisPointerClass);if(c){var d=o.getAxisPointerModel(t);d?(e._axisPointer||(e._axisPointer=new c)).render(t,d,n,l):s(e,n)}}function s(e,t,i){var n=e._axisPointer;n&&n.dispose(t,i),e._axisPointer=null}var l=[];r.registerAxisPointerClass=function(e,t){l[e]=t},r.getAxisPointerClass=function(e){return e&&l[e]},e.exports=r},73772:function(e,t,i){var n=i(66023),o=i(76165),r=i(96972),a=i(90516),s=i(5592),l=["axisLine","axisTickLabel","axisName"],c=["splitArea","splitLine"],d=a.extend({type:"cartesianAxis",axisPointerClass:"CartesianAxisPointer",render:function(e,t,i,a){this.group.removeAll();var u=this._axisGroup;if(this._axisGroup=new o.Group,this.group.add(this._axisGroup),e.get("show")){var h=e.getCoordSysModel(),p=s.layout(h,e),f=new r(e,p);n.each(l,f.add,f),this._axisGroup.add(f.getGroup()),n.each(c,function(t){e.get(t+".show")&&this["_"+t](e,h)},this),o.groupTransition(u,this._axisGroup,e),d.superCall(this,"render",e,t,i,a)}},remove:function(){this._splitAreaColors=null},_splitLine:function(e,t){var i=e.axis;if(!i.scale.isBlank()){var r=e.getModel("splitLine"),a=r.getModel("lineStyle"),s=a.get("color");s=n.isArray(s)?s:[s];for(var l=t.coordinateSystem.getRect(),c=i.isHorizontal(),d=0,u=i.getTicksCoords({tickModel:r}),h=[],p=[],f=a.getLineStyle(),g=0;g<u.length;g++){var m=i.toGlobalCoord(u[g].coord);c?(h[0]=m,h[1]=l.y,p[0]=m,p[1]=l.y+l.height):(h[0]=l.x,h[1]=m,p[0]=l.x+l.width,p[1]=m);var v=d++%s.length,b=u[g].tickValue;this._axisGroup.add(new o.Line(o.subPixelOptimizeLine({anid:null!=b?"line_"+u[g].tickValue:null,shape:{x1:h[0],y1:h[1],x2:p[0],y2:p[1]},style:n.defaults({stroke:s[v]},f),silent:!0})))}}},_splitArea:function(e,t){var i=e.axis;if(!i.scale.isBlank()){var r=e.getModel("splitArea"),a=r.getModel("areaStyle"),s=a.get("color"),l=t.coordinateSystem.getRect(),c=i.getTicksCoords({tickModel:r,clamp:!0});if(c.length){var d=s.length,u=this._splitAreaColors,h=n.createHashMap(),p=0;if(u)for(var f=0;f<c.length;f++){var g=u.get(c[f].tickValue);if(null!=g){p=(g+(d-1)*f)%d;break}}var m=i.toGlobalCoord(c[0].coord),v=a.getAreaStyle();s=n.isArray(s)?s:[s];for(var f=1;f<c.length;f++){var b,y,w,_,x=i.toGlobalCoord(c[f].coord);i.isHorizontal()?(b=m,y=l.y,w=x-b,_=l.height,m=b+w):(b=l.x,y=m,w=l.width,_=x-y,m=y+_);var S=c[f-1].tickValue;null!=S&&h.set(S,p),this._axisGroup.add(new o.Rect({anid:null!=S?"area_"+S:null,shape:{x:b,y:y,width:w,height:_},style:n.defaults({fill:s[p]},v),silent:!0})),p=(p+1)%d}this._splitAreaColors=h}}}});d.extend({type:"xAxis"}),d.extend({type:"yAxis"})},43608:function(e,t,i){var n=i(47475),o=i(66023),r=i(96972),a=i(40844),s=i(58143),l=i(76165),c=["axisLine","axisTickLabel","axisName"],d=n.extendComponentView({type:"parallelAxis",init:function(e,t){d.superApply(this,"init",arguments),(this._brushController=new a(t.getZr())).on("brush",o.bind(this._onBrush,this))},render:function(e,t,i,n){var a,s,d;if(a=e,s=t,!(d=n)||"axisAreaSelect"!==d.type||s.findComponents({mainType:"parallelAxis",query:d})[0]!==a){this.axisModel=e,this.api=i,this.group.removeAll();var u=this._axisGroup;if(this._axisGroup=new l.Group,this.group.add(this._axisGroup),e.get("show")){var h,p=(h=e,t.getComponent("parallel",h.get("parallelIndex"))),f=p.coordinateSystem,g=e.getAreaSelectStyle(),m=g.width,v=e.axis.dim,b=f.getAxisLayout(v),y=o.extend({strokeContainThreshold:m},b),w=new r(e,y);o.each(c,w.add,w),this._axisGroup.add(w.getGroup()),this._refreshBrushController(y,g,e,p,m,i);var _=n&&!1===n.animation?null:e;l.groupTransition(u,this._axisGroup,_)}}},_refreshBrushController:function(e,t,i,n,r,a){var c,d,u=i.axis.getExtent(),h=u[1]-u[0],p=Math.min(30,.1*Math.abs(h)),f=l.BoundingRect.create({x:u[0],y:-r/2,width:h,height:r});f.x-=p,f.width+=2*p,this._brushController.mount({enableGlobalPan:!0,rotation:e.rotation,position:e.position}).setPanels([{panelId:"pl",clipPath:s.makeRectPanelClipPath(f),isTargetByCursor:s.makeRectIsTargetByCursor(f,a,n),getLinearBrushOtherExtent:s.makeLinearBrushOtherExtent(f,0)}]).enableBrush({brushType:"lineX",brushStyle:t,removeOnClick:!0}).updateCovers((d=(c=i).axis,o.map(c.activeIntervals,function(e){return{brushType:"lineX",panelId:"pl",range:[d.dataToCoord(e[0],!0),d.dataToCoord(e[1],!0)]}})))},_onBrush:function(e,t){var i=this.axisModel,n=i.axis,r=o.map(e,function(e){return[n.coordToData(e.range[0],!0),n.coordToData(e.range[1],!0)]});(!i.option.realtime===t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:i.id,intervals:r})},dispose:function(){this._brushController.dispose()}});e.exports=d},74353:function(e,t,i){var n=i(66023),o=i(76165),r=i(96972),a=i(90516),s=["axisLine","axisTickLabel","axisName"],l=["splitLine","splitArea"];e.exports=a.extend({type:"radiusAxis",axisPointerClass:"PolarAxisPointer",render:function(e,t){if(this.group.removeAll(),e.get("show")){var i,o,a,c=e.axis,d=c.polar,u=d.getAngleAxis(),h=c.getTicksCoords(),p=u.getExtent()[0],f=c.getExtent(),g=(i=d,o=e,a=p,{position:[i.cx,i.cy],rotation:a/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:o.getModel("axisLabel").get("rotate"),z2:1}),m=new r(e,g);n.each(s,m.add,m),this.group.add(m.getGroup()),n.each(l,function(t){e.get(t+".show")&&!c.scale.isBlank()&&this["_"+t](e,d,p,f,h)},this)}},_splitLine:function(e,t,i,r,a){var s=e.getModel("splitLine").getModel("lineStyle"),l=s.get("color"),c=0;l=l instanceof Array?l:[l];for(var d=[],u=0;u<a.length;u++){var h=c++%l.length;d[h]=d[h]||[],d[h].push(new o.Circle({shape:{cx:t.cx,cy:t.cy,r:a[u].coord},silent:!0}))}for(var u=0;u<d.length;u++)this.group.add(o.mergePath(d[u],{style:n.defaults({stroke:l[u%l.length],fill:null},s.getLineStyle()),silent:!0}))},_splitArea:function(e,t,i,r,a){if(a.length){var s=e.getModel("splitArea").getModel("areaStyle"),l=s.get("color"),c=0;l=l instanceof Array?l:[l];for(var d=[],u=a[0].coord,h=1;h<a.length;h++){var p=c++%l.length;d[p]=d[p]||[],d[p].push(new o.Sector({shape:{cx:t.cx,cy:t.cy,r0:u,r:a[h].coord,startAngle:0,endAngle:2*Math.PI},silent:!0})),u=a[h].coord}for(var h=0;h<d.length;h++)this.group.add(o.mergePath(d[h],{style:n.defaults({fill:l[h%l.length]},s.getAreaStyle()),silent:!0}))}}})},13389:function(e,t,i){var n=i(66023),o=i(96972),r=i(76165),a=i(42897),s=i(90516),l=["axisLine","axisTickLabel","axisName"],c="splitLine",d=s.extend({type:"singleAxis",axisPointerClass:"SingleAxisPointer",render:function(e,t,i,r){var s=this.group;s.removeAll();var u=a.layout(e),h=new o(e,u);n.each(l,h.add,h),s.add(h.getGroup()),e.get(c+".show")&&this["_"+c](e),d.superCall(this,"render",e,t,i,r)},_splitLine:function(e){var t=e.axis;if(!t.scale.isBlank()){var i=e.getModel("splitLine"),n=i.getModel("lineStyle"),o=n.get("width"),a=n.get("color");a=a instanceof Array?a:[a];for(var s=e.coordinateSystem.getRect(),l=t.isHorizontal(),c=[],d=0,u=t.getTicksCoords({tickModel:i}),h=[],p=[],f=0;f<u.length;++f){var g=t.toGlobalCoord(u[f].coord);l?(h[0]=g,h[1]=s.y,p[0]=g,p[1]=s.y+s.height):(h[0]=s.x,h[1]=g,p[0]=s.x+s.width,p[1]=g);var m=d++%a.length;c[m]=c[m]||[],c[m].push(new r.Line(r.subPixelOptimizeLine({shape:{x1:h[0],y1:h[1],x2:p[0],y2:p[1]},style:{lineWidth:o},silent:!0})))}for(var f=0;f<c.length;++f)this.group.add(r.mergePath(c[f],{style:{stroke:a[f%a.length],lineDash:n.getLineDash(o),lineWidth:o},silent:!0}))}}});e.exports=d},22947:function(e,t,i){var n=i(47475);n.registerAction({type:"axisAreaSelect",event:"axisAreaSelected"},function(e,t){t.eachComponent({mainType:"parallelAxis",query:e},function(t){t.axis.model.setActiveIntervals(e.intervals)})}),n.registerAction("parallelAxisExpand",function(e,t){t.eachComponent({mainType:"parallel",query:e},function(t){t.setAxisExpand(e)})})},57498:function(e,t,i){var n=i(47475),o=i(66023),r=i(75475),a=i(92782);i(54574),i(65328),i(46576),n.registerPreprocessor(function(e){if(e){e.axisPointer&&0!==e.axisPointer.length||(e.axisPointer={});var t=e.axisPointer.link;t&&!o.isArray(t)&&(e.axisPointer.link=[t])}}),n.registerProcessor(n.PRIORITY.PROCESSOR.STATISTIC,function(e,t){e.getComponent("axisPointer").coordSysAxesInfo=r.collect(e,t)}),n.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},a)},54574:function(e,t,i){e.exports=i(47475).extendComponentModel({type:"axisPointer",coordSysAxesInfo:null,defaultOption:{show:"auto",triggerOn:null,zlevel:0,z:50,type:"line",snap:!1,triggerTooltip:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#aaa",width:1,type:"solid"},shadowStyle:{color:"rgba(150,150,150,0.3)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,shadowBlur:3,shadowColor:"#aaa"},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}}})},65328:function(e,t,i){var n=i(47475),o=i(21774),r=n.extendComponentView({type:"axisPointer",render:function(e,t,i){var n=t.getComponent("tooltip"),r=e.get("triggerOn")||n&&n.get("triggerOn")||"mousemove|click";o.register("axisPointer",i,function(e,t,i){"none"!==r&&("leave"===e||r.indexOf(e)>=0)&&i({type:"updateAxisPointer",currTrigger:e,x:t&&t.offsetX,y:t&&t.offsetY})})},remove:function(e,t){o.unregister(t.getZr(),"axisPointer"),r.superApply(this._model,"remove",arguments)},dispose:function(e,t){o.unregister("axisPointer",t),r.superApply(this._model,"dispose",arguments)}});e.exports=r},4167:function(e,t,i){var n=i(66023),o=i(51938),r=i(76165),a=i(75475),s=i(3006),l=i(44050),c=(0,i(70018).makeInner)(),d=n.clone,u=n.bind;function h(){}function p(e,t,i,o){!function e(t,i){if(!(n.isObject(t)&&n.isObject(i)))return t===i;var o=!0;return n.each(i,function(i,n){o=o&&e(t[n],i)}),!!o}(c(i).lastProp,o)&&(c(i).lastProp=o,t?r.updateProps(i,o,e):(i.stopAnimation(),i.attr(o)))}function f(e,t){e[t.get("label.show")?"show":"hide"]()}function g(e){return{position:e.position.slice(),rotation:e.rotation||0}}function m(e,t,i){var n=t.get("z"),o=t.get("zlevel");e&&e.traverse(function(e){"group"!==e.type&&(null!=n&&(e.z=n),null!=o&&(e.zlevel=o),e.silent=i)})}h.prototype={_group:null,_lastGraphicKey:null,_handle:null,_dragging:!1,_lastValue:null,_lastStatus:null,_payloadInfo:null,animationThreshold:15,render:function(e,t,i,o){var a=t.get("value"),s=t.get("status");if(this._axisModel=e,this._axisPointerModel=t,this._api=i,o||this._lastValue!==a||this._lastStatus!==s){this._lastValue=a,this._lastStatus=s;var l=this._group,c=this._handle;if(!s||"hide"===s){l&&l.hide(),c&&c.hide();return}l&&l.show(),c&&c.show();var d={};this.makeElOption(d,a,e,t,i);var u=d.graphicKey;u!==this._lastGraphicKey&&this.clear(i),this._lastGraphicKey=u;var h=this._moveAnimation=this.determineAnimation(e,t);if(l){var f=n.curry(p,t,h);this.updatePointerEl(l,d,f,t),this.updateLabelEl(l,d,f,t)}else l=this._group=new r.Group,this.createPointerEl(l,d,e,t),this.createLabelEl(l,d,e,t),i.getZr().add(l);m(l,t,!0),this._renderHandle(a)}},remove:function(e){this.clear(e)},dispose:function(e){this.clear(e)},determineAnimation:function(e,t){var i=t.get("animation"),n=e.axis,o="category"===n.type,r=t.get("snap");if(!r&&!o)return!1;if("auto"===i||null==i){var s=this.animationThreshold;if(o&&n.getBandWidth()>s)return!0;if(r){var l=a.getAxisInfo(e).seriesDataCount,c=n.getExtent();return Math.abs(c[0]-c[1])/l>s}return!1}return!0===i},makeElOption:function(e,t,i,n,o){},createPointerEl:function(e,t,i,n){var o=t.pointer;if(o){var a=c(e).pointerEl=new r[o.type](d(t.pointer));e.add(a)}},createLabelEl:function(e,t,i,n){if(t.label){var o=c(e).labelEl=new r.Rect(d(t.label));e.add(o),f(o,n)}},updatePointerEl:function(e,t,i){var n=c(e).pointerEl;n&&(n.setStyle(t.pointer.style),i(n,{shape:t.pointer.shape}))},updateLabelEl:function(e,t,i,n){var o=c(e).labelEl;o&&(o.setStyle(t.label.style),i(o,{shape:t.label.shape,position:t.label.position}),f(o,n))},_renderHandle:function(e){if(!this._dragging&&this.updateHandleTransform){var t,i=this._axisPointerModel,o=this._api.getZr(),a=this._handle,c=i.getModel("handle"),d=i.get("status");if(!c.get("show")||!d||"hide"===d){a&&o.remove(a),this._handle=null;return}this._handle||(t=!0,a=this._handle=r.createIcon(c.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(e){s.stop(e.event)},onmousedown:u(this._onHandleDragMove,this,0,0),drift:u(this._onHandleDragMove,this),ondragend:u(this._onHandleDragEnd,this)}),o.add(a)),m(a,i,!1),a.setStyle(c.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var h=c.get("size");n.isArray(h)||(h=[h,h]),a.attr("scale",[h[0]/2,h[1]/2]),l.createOrUpdate(this,"_doDispatchAxisPointer",c.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,t)}},_moveHandleToValue:function(e,t){p(this._axisPointerModel,!t&&this._moveAnimation,this._handle,g(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},_onHandleDragMove:function(e,t){var i=this._handle;if(i){this._dragging=!0;var n=this.updateHandleTransform(g(i),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=n,i.stopAnimation(),i.attr(g(n)),c(i).lastProp=null,this._doDispatchAxisPointer()}},_doDispatchAxisPointer:function(){if(this._handle){var e=this._payloadInfo,t=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:t.axis.dim,axisIndex:t.componentIndex}]})}},_onHandleDragEnd:function(e){if(this._dragging=!1,this._handle){var t=this._axisPointerModel.get("value");this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"})}},getHandleTransform:null,updateHandleTransform:null,clear:function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),i=this._group,n=this._handle;t&&i&&(this._lastGraphicKey=null,i&&t.remove(i),n&&t.remove(n),this._group=null,this._handle=null,this._payloadInfo=null)},doClear:function(){},buildLabel:function(e,t,i){return{x:e[i=i||0],y:e[1-i],width:t[i],height:t[1-i]}}},h.prototype.constructor=h,o.enableClassExtend(h),e.exports=h},46576:function(e,t,i){var n=i(76165),o=i(4167),r=i(50272),a=i(5592),s=i(90516),l=o.extend({makeElOption:function(e,t,i,n,o){var s=i.axis,l=s.grid,u=n.get("type"),h=c(l,s).getOtherAxis(s).getGlobalExtent(),p=s.toGlobalCoord(s.dataToCoord(t,!0));if(u&&"none"!==u){var f=r.buildElStyle(n),g=d[u](s,p,h,f);g.style=f,e.graphicKey=g.type,e.pointer=g}var m=a.layout(l.model,i);r.buildCartesianSingleLabelElOption(t,e,m,i,n,o)},getHandleTransform:function(e,t,i){var n=a.layout(t.axis.grid.model,t,{labelInside:!1});return n.labelMargin=i.get("handle.margin"),{position:r.getTransformedPosition(t.axis,e,n),rotation:n.rotation+(n.labelDirection<0?Math.PI:0)}},updateHandleTransform:function(e,t,i,n){var o=i.axis,r=o.grid,a=o.getGlobalExtent(!0),s=c(r,o).getOtherAxis(o).getGlobalExtent(),l=+("x"!==o.dim),d=e.position;d[l]+=t[l],d[l]=Math.min(a[1],d[l]),d[l]=Math.max(a[0],d[l]);var u=(s[1]+s[0])/2,h=[u,u];return h[l]=d[l],{position:d,rotation:e.rotation,cursorPoint:h,tooltipOption:[{verticalAlign:"middle"},{align:"center"}][l]}}});function c(e,t){var i={};return i[t.dim+"AxisIndex"]=t.index,e.getCartesian(i)}var d={line:function(e,t,i,o){var a=r.makeLineShape([t,i[0]],[t,i[1]],u(e));return n.subPixelOptimizeLine({shape:a,style:o}),{type:"Line",shape:a}},shadow:function(e,t,i,n){var o=Math.max(1,e.getBandWidth()),a=i[1]-i[0];return{type:"Rect",shape:r.makeRectShape([t-o/2,i[0]],[o,a],u(e))}}};function u(e){return+("x"!==e.dim)}s.registerAxisPointerClass("CartesianAxisPointer",l),e.exports=l},81745:function(e,t,i){var n=i(20438),o=i(4167),r=i(76165),a=i(50272),s=i(36653),l=i(96972),c=i(90516),d=o.extend({makeElOption:function(e,t,i,o,c){var d,h=i.axis;"angle"===h.dim&&(this.animationThreshold=Math.PI/18);var p=h.polar,f=p.getOtherAxis(h).getExtent();d=h["dataTo"+n.capitalFirst(h.dim)](t);var g=o.get("type");if(g&&"none"!==g){var m=a.buildElStyle(o),v=u[g](h,p,d,f,m);v.style=m,e.graphicKey=v.type,e.pointer=v}var b=function(e,t,i,n,o){var a,c,d,u=t.axis,h=u.dataToCoord(e),p=n.getAngleAxis().getExtent()[0];p=p/180*Math.PI;var f=n.getRadiusAxis().getExtent();if("radius"===u.dim){var g=s.create();s.rotate(g,g,p),s.translate(g,g,[n.cx,n.cy]),a=r.applyTransform([h,-o],g);var m=t.getModel("axisLabel").get("rotate")||0,v=l.innerTextLayout(p,m*Math.PI/180,-1);c=v.textAlign,d=v.textVerticalAlign}else{var b=f[1];a=n.coordToPoint([b+o,h]);var y=n.cx,w=n.cy;c=Math.abs(a[0]-y)/b<.3?"center":a[0]>y?"left":"right",d=Math.abs(a[1]-w)/b<.3?"middle":a[1]>w?"top":"bottom"}return{position:a,align:c,verticalAlign:d}}(t,i,0,p,o.get("label.margin"));a.buildLabelElOption(e,i,o,c,b)}}),u={line:function(e,t,i,n,o){return"angle"===e.dim?{type:"Line",shape:a.makeLineShape(t.coordToPoint([n[0],i]),t.coordToPoint([n[1],i]))}:{type:"Circle",shape:{cx:t.cx,cy:t.cy,r:i}}},shadow:function(e,t,i,n,o){var r=Math.max(1,e.getBandWidth()),s=Math.PI/180;return"angle"===e.dim?{type:"Sector",shape:a.makeSectorShape(t.cx,t.cy,n[0],n[1],(-i-r/2)*s,(-i+r/2)*s)}:{type:"Sector",shape:a.makeSectorShape(t.cx,t.cy,i-r/2,i+r/2,0,2*Math.PI)}}};c.registerAxisPointerClass("PolarAxisPointer",d),e.exports=d},77858:function(e,t,i){var n=i(76165),o=i(4167),r=i(50272),a=i(42897),s=i(90516),l=["x","y"],c=["width","height"],d=o.extend({makeElOption:function(e,t,i,n,o){var s=i.axis,l=s.coordinateSystem,c=p(l,1-h(s)),d=l.dataToPoint(t)[0],f=n.get("type");if(f&&"none"!==f){var g=r.buildElStyle(n),m=u[f](s,d,c,g);m.style=g,e.graphicKey=m.type,e.pointer=m}var v=a.layout(i);r.buildCartesianSingleLabelElOption(t,e,v,i,n,o)},getHandleTransform:function(e,t,i){var n=a.layout(t,{labelInside:!1});return n.labelMargin=i.get("handle.margin"),{position:r.getTransformedPosition(t.axis,e,n),rotation:n.rotation+(n.labelDirection<0?Math.PI:0)}},updateHandleTransform:function(e,t,i,n){var o=i.axis,r=o.coordinateSystem,a=h(o),s=p(r,a),l=e.position;l[a]+=t[a],l[a]=Math.min(s[1],l[a]),l[a]=Math.max(s[0],l[a]);var c=p(r,1-a),d=(c[1]+c[0])/2,u=[d,d];return u[a]=l[a],{position:l,rotation:e.rotation,cursorPoint:u,tooltipOption:{verticalAlign:"middle"}}}}),u={line:function(e,t,i,o){var a=r.makeLineShape([t,i[0]],[t,i[1]],h(e));return n.subPixelOptimizeLine({shape:a,style:o}),{type:"Line",shape:a}},shadow:function(e,t,i,n){var o=e.getBandWidth(),a=i[1]-i[0];return{type:"Rect",shape:r.makeRectShape([t-o/2,i[0]],[o,a],h(e))}}};function h(e){return+!e.isHorizontal()}function p(e,t){var i=e.getRect();return[i[l[t]],i[l[t]]+i[c[t]]]}s.registerAxisPointerClass("SingleAxisPointer",d),e.exports=d},92782:function(e,t,i){var n=i(66023),o=i(70018).makeInner,r=i(75475),a=i(28693),s=n.each,l=n.curry,c=o();function d(e,t,i,o,r){var a=e.axis;if(!a.scale.isBlank()&&a.containData(t)){if(!e.involveSeries)return void i.showPointer(e,t);var l,c,d,u,h,p,f,g,m=(l=t,u=(d=(c=e).axis).dim,h=l,p=[],f=Number.MAX_VALUE,g=-1,s(c.seriesModels,function(e,t){var i,n,o=e.getData().mapDimension(u,!0);if(e.getAxisTooltipData){var r=e.getAxisTooltipData(o,l,d);n=r.dataIndices,i=r.nestestValue}else{if(!(n=e.getData().indicesOfNearest(o[0],l,"category"===d.type?.5:null)).length)return;i=e.getData().get(o[0],n[0])}if(null!=i&&isFinite(i)){var a=l-i,c=Math.abs(a);c<=f&&((c<f||a>=0&&g<0)&&(f=c,g=a,h=i,p.length=0),s(n,function(t){p.push({seriesIndex:e.seriesIndex,dataIndexInside:t,dataIndex:e.getData().getRawIndex(t)})}))}}),{payloadBatch:p,snapToValue:h}),v=m.payloadBatch,b=m.snapToValue;v[0]&&null==r.seriesIndex&&n.extend(r,v[0]),!o&&e.snap&&a.containData(b)&&null!=b&&(t=b),i.showPointer(e,t,v,r),i.showTooltip(e,m,b)}}function u(e,t,i,n){e[t.key]={value:i,payloadBatch:n}}function h(e,t,i,n){var o=i.payloadBatch,a=t.axis,s=a.model,l=t.axisPointerModel;if(t.triggerTooltip&&o.length){var c=t.coordSys.model,d=r.makeKey(c),u=e.map[d];u||(u=e.map[d]={coordSysId:c.id,coordSysIndex:c.componentIndex,coordSysType:c.type,coordSysMainType:c.mainType,dataByAxis:[]},e.list.push(u)),u.dataByAxis.push({axisDim:a.dim,axisIndex:s.componentIndex,axisType:s.type,axisId:s.id,value:n,valueLabelOpt:{precision:l.get("label.precision"),formatter:l.get("label.formatter")},seriesDataIndices:o.slice()})}}function p(e){var t=e.axis.model,i={},n=i.axisDim=e.axis.dim;return i.axisIndex=i[n+"AxisIndex"]=t.componentIndex,i.axisName=i[n+"AxisName"]=t.name,i.axisId=i[n+"AxisId"]=t.id,i}function f(e){return!e||null==e[0]||isNaN(e[0])||null==e[1]||isNaN(e[1])}e.exports=function(e,t,i){var o=e.currTrigger,r=[e.x,e.y],g=e.dispatchAction||n.bind(i.dispatchAction,i),m=t.getComponent("axisPointer").coordSysAxesInfo;if(m){f(r)&&(r=a({seriesIndex:e.seriesIndex,dataIndex:e.dataIndex},t).point);var v,b,y,w,_,x,S,C,k,I,A,T,E=f(r),R=e.axesInfo,D=m.axesInfo,O="leave"===o||f(r),M={},N={},P={list:[],map:{}},L={showPointer:l(u,N),showTooltip:l(h,P)};s(m.coordSysMap,function(e,t){var i=E||e.containPoint(r);s(m.coordSysAxesInfo[t],function(e,t){var n=e.axis,o=function(e,t){for(var i=0;i<(e||[]).length;i++){var n=e[i];if(t.axis.dim===n.axisDim&&t.axis.model.componentIndex===n.axisIndex)return n}}(R,e);if(!O&&i&&(!R||o)){var a=o&&o.value;null!=a||E||(a=n.pointToData(r)),null!=a&&d(e,a,L,!1,M)}})});var B={};return s(D,function(e,t){var i=e.linkGroup;i&&!N[t]&&s(i.axesInfo,function(t,n){var o=N[n];if(t!==e&&o){var r=o.value;i.mapper&&(r=e.axis.scale.parse(i.mapper(r,p(t),p(e)))),B[e.key]=r}})}),s(B,function(e,t){d(D[t],e,L,!0,M)}),v=N,b=D,y=M.axesInfo=[],s(b,function(e,t){var i=e.axisPointerModel.option,n=v[t];n?(e.useHandle||(i.status="show"),i.value=n.value,i.seriesDataIndices=(n.payloadBatch||[]).slice()):e.useHandle||(i.status="hide"),"show"===i.status&&y.push({axisDim:e.axis.dim,axisIndex:e.axis.model.componentIndex,value:i.value})}),function(e,t,i,n){if(f(t)||!e.list.length)return n({type:"hideTip"});var o=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:i.tooltipOption,position:i.position,dataIndexInside:o.dataIndexInside,dataIndex:o.dataIndex,seriesIndex:o.seriesIndex,dataByCoordSys:e.list})}(P,r,e,g),w=D,_=0,S=(x=i).getZr(),C="axisPointerLastHighlights",k=c(S)[C]||{},I=c(S)[C]={},s(w,function(e,t){var i=e.axisPointerModel.option;"show"===i.status&&s(i.seriesDataIndices,function(e){I[e.seriesIndex+" | "+e.dataIndex]=e})}),A=[],T=[],n.each(k,function(e,t){I[t]||T.push(e)}),n.each(I,function(e,t){k[t]||A.push(e)}),T.length&&x.dispatchAction({type:"downplay",escapeConnect:!0,batch:T}),A.length&&x.dispatchAction({type:"highlight",escapeConnect:!0,batch:A}),M}}},28693:function(e,t,i){var n=i(66023),o=i(70018);e.exports=function(e,t){var i,r=[],a=e.seriesIndex;if(null==a||!(i=t.getSeriesByIndex(a)))return{point:[]};var s=i.getData(),l=o.queryDataIndex(s,e);if(null==l||l<0||n.isArray(l))return{point:[]};var c=s.getItemGraphicEl(l),d=i.coordinateSystem;if(i.getTooltipPosition)r=i.getTooltipPosition(l)||[];else if(d&&d.dataToPoint)r=d.dataToPoint(s.getValues(n.map(d.dimensions,function(e){return s.mapDimension(e)}),l,!0))||[];else if(c){var u=c.getBoundingRect().clone();u.applyTransform(c.transform),r=[u.x+u.width/2,u.y+u.height/2]}return{point:r,el:c}}},21774:function(e,t,i){var n=i(66023),o=i(57674),r=(0,i(70018).makeInner)(),a=n.each;function s(e,t,i){e.handler("leave",null,i)}function l(e,t,i,n){t.handler(e,i,n)}t.register=function(e,t,i){if(!o.node){var c=t.getZr();r(c).records||(r(c).records={}),function(e,t){r(e).initialized||(r(e).initialized=!0,i("click",n.curry(l,"click")),i("mousemove",n.curry(l,"mousemove")),i("globalout",s));function i(i,n){e.on(i,function(i){var o,s,l,c,d,u,h,p,f=(o=t,s={showTip:[],hideTip:[]},{dispatchAction:l=function(e){var t=s[e.type];t?t.push(e):(e.dispatchAction=l,o.dispatchAction(e))},pendings:s});a(r(e).records,function(e){e&&n(e,i,f.dispatchAction)}),c=f.pendings,d=t,h=c.showTip.length,p=c.hideTip.length,h?u=c.showTip[h-1]:p&&(u=c.hideTip[p-1]),u&&(u.dispatchAction=null,d.dispatchAction(u))})}}(c,t),(r(c).records[e]||(r(c).records[e]={})).handler=i}},t.unregister=function(e,t){if(!o.node){var i=t.getZr();(r(i).records||{})[e]&&(r(i).records[e]=null)}}},75475:function(e,t,i){var n=i(66023),o=i(27611),r=n.each,a=n.curry;function s(e,t){return"all"===e||n.isArray(e)&&n.indexOf(e,t)>=0||e===t}function l(e){var t=(e.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[d(e)]}function c(e){return!!e.get("handle.show")}function d(e){return e.type+"||"+e.id}t.collect=function(e,t){var i,l,u,h,p,f,g,m={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return i=m,l=e,u=t,h=l.getComponent("tooltip"),f=(p=l.getComponent("axisPointer")).get("link",!0)||[],g=[],r(u.getCoordinateSystems(),function(e){if(e.axisPointerEnabled){var t=d(e.model),u=i.coordSysAxesInfo[t]={};i.coordSysMap[t]=e;var m=e.model.getModel("tooltip",h);if(r(e.getAxes(),a(w,!1,null)),e.getTooltipAxes&&h&&m.get("show")){var v="axis"===m.get("trigger"),b="cross"===m.get("axisPointer.type"),y=e.getTooltipAxes(m.get("axisPointer.axis"));(v||b)&&r(y.baseAxes,a(w,!b||"cross",v)),b&&r(y.otherAxes,a(w,"cross",!1))}}function w(t,a,h){var v=h.model.getModel("axisPointer",p),b=v.get("show");if(b&&("auto"!==b||t||c(v))){null==a&&(a=v.get("triggerTooltip"));var y=(v=t?function(e,t,i,a,s,l){var c=t.getModel("axisPointer"),d={};r(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],function(e){d[e]=n.clone(c.get(e))}),d.snap="category"!==e.type&&!!l,"cross"===c.get("type")&&(d.type="line");var u=d.label||(d.label={});if(null==u.show&&(u.show=!1),"cross"===s){var h=c.get("label.show");if(u.show=null==h||h,!l){var p=d.lineStyle=c.get("crossStyle");p&&n.defaults(u,p.textStyle)}}return e.model.getModel("axisPointer",new o(d,i,a))}(h,m,p,l,t,a):v).get("snap"),w=d(h.model),_=a||y||"category"===h.type,x=i.axesInfo[w]={key:w,axis:h,coordSys:e,axisPointerModel:v,triggerTooltip:a,involveSeries:_,snap:y,useHandle:c(v),seriesModels:[]};u[w]=x,i.seriesInvolved|=_;var S=function(e,t){for(var i=t.model,n=t.dim,o=0;o<e.length;o++){var r=e[o]||{};if(s(r[n+"AxisId"],i.id)||s(r[n+"AxisIndex"],i.componentIndex)||s(r[n+"AxisName"],i.name))return o}}(f,h);if(null!=S){var C=g[S]||(g[S]={axesInfo:{}});C.axesInfo[w]=x,C.mapper=f[S].mapper,x.linkGroup=C}}}}),m.seriesInvolved&&function(e,t){t.eachSeries(function(t){var i=t.coordinateSystem,n=t.get("tooltip.trigger",!0),o=t.get("tooltip.show",!0);i&&"none"!==n&&!1!==n&&"item"!==n&&!1!==o&&!1!==t.get("axisPointer.show",!0)&&r(e.coordSysAxesInfo[d(i.model)],function(e){var n=e.axis;i.getAxis(n.dim)===n&&(e.seriesModels.push(t),null==e.seriesDataCount&&(e.seriesDataCount=0),e.seriesDataCount+=t.getData().count())})},this)}(m,e),m},t.fixValue=function(e){var t=l(e);if(t){var i=t.axisPointerModel,n=t.axis.scale,o=i.option,r=i.get("status"),a=i.get("value");null!=a&&(a=n.parse(a));var s=c(i);null==r&&(o.status=s?"show":"hide");var d=n.getExtent().slice();d[0]>d[1]&&d.reverse(),(null==a||a>d[1])&&(a=d[1]),a<d[0]&&(a=d[0]),o.value=a,s&&(o.status=t.axis.scale.isBlank()?"hide":"show")}},t.getAxisInfo=l,t.getAxisPointerModel=function(e){var t=l(e);return t&&t.axisPointerModel},t.makeKey=d},50272:function(e,t,i){var n=i(66023),o=i(76165),r=i(99280),a=i(20438),s=i(36653),l=i(16978),c=i(96972);function d(e,t,i,n,o){var s,l,c,d,h,p,f=u(i.get("value"),t.axis,t.ecModel,i.get("seriesDataIndices"),{precision:i.get("label.precision"),formatter:i.get("label.formatter")}),g=i.getModel("label"),m=a.normalizeCssArray(g.get("padding")||0),v=g.getFont(),b=r.getBoundingRect(f,v),y=o.position,w=b.width+m[1]+m[3],_=b.height+m[0]+m[2],x=o.align;"right"===x&&(y[0]-=w),"center"===x&&(y[0]-=w/2);var S=o.verticalAlign;"bottom"===S&&(y[1]-=_),"middle"===S&&(y[1]-=_/2),s=y,l=w,c=_,h=(d=n).getWidth(),p=d.getHeight(),s[0]=Math.min(s[0]+l,h)-l,s[1]=Math.min(s[1]+c,p)-c,s[0]=Math.max(s[0],0),s[1]=Math.max(s[1],0);var C=g.get("backgroundColor");C&&"auto"!==C||(C=t.get("axisLine.lineStyle.color")),e.label={shape:{x:0,y:0,width:w,height:_,r:g.get("borderRadius")},position:y.slice(),style:{text:f,textFont:v,textFill:g.getTextColor(),textPosition:"inside",fill:C,stroke:g.get("borderColor")||"transparent",lineWidth:g.get("borderWidth")||0,shadowBlur:g.get("shadowBlur"),shadowColor:g.get("shadowColor"),shadowOffsetX:g.get("shadowOffsetX"),shadowOffsetY:g.get("shadowOffsetY")},z2:10}}function u(e,t,i,o,r){e=t.scale.parse(e);var a=t.scale.getLabel(e,{precision:r.precision}),s=r.formatter;if(s){var c={value:l.getAxisRawValue(t,e),seriesData:[]};n.each(o,function(e){var t=i.getSeriesByIndex(e.seriesIndex),n=e.dataIndexInside,o=t&&t.getDataParams(n);o&&c.seriesData.push(o)}),n.isString(s)?a=s.replace("{value}",a):n.isFunction(s)&&(a=s(c))}return a}function h(e,t,i){var n=s.create();return s.rotate(n,n,i.rotation),s.translate(n,n,i.position),o.applyTransform([e.dataToCoord(t),(i.labelOffset||0)+(i.labelDirection||1)*(i.labelMargin||0)],n)}t.buildElStyle=function(e){var t,i=e.get("type"),n=e.getModel(i+"Style");return"line"===i?(t=n.getLineStyle()).fill=null:"shadow"===i&&((t=n.getAreaStyle()).stroke=null),t},t.buildLabelElOption=d,t.getValueLabel=u,t.getTransformedPosition=h,t.buildCartesianSingleLabelElOption=function(e,t,i,n,o,r){var a=c.innerTextLayout(i.rotation,0,i.labelDirection);i.labelMargin=o.get("label.margin"),d(t,n,o,r,{position:h(n.axis,e,i),align:a.textAlign,verticalAlign:a.textVerticalAlign})},t.makeLineShape=function(e,t,i){return{x1:e[i=i||0],y1:e[1-i],x2:t[i],y2:t[1-i]}},t.makeRectShape=function(e,t,i){return{x:e[i=i||0],y:e[1-i],width:t[i],height:t[1-i]}},t.makeSectorShape=function(e,t,i,n,o,r){return{cx:e,cy:t,r0:i,r:n,startAngle:o,endAngle:r,clockwise:!0}}},16348:function(e,t,i){var n=i(47475),o=i(43635);i(69417),i(25519),i(93630),i(8320),i(50443),n.registerPreprocessor(o)},25519:function(e,t,i){i(38603).__DEV__;var n=i(47475),o=i(66023),r=i(49002),a=i(27611),s=["#ddd"];function l(e,t){return o.merge({brushType:e.brushType,brushMode:e.brushMode,transformable:e.transformable,brushStyle:new a(e.brushStyle).getItemStyle(),removeOnClick:e.removeOnClick,z:e.z},t,!0)}e.exports=n.extendComponentModel({type:"brush",dependencies:["geo","grid","xAxis","yAxis","parallel","series"],defaultOption:{toolbox:null,brushLink:null,seriesIndex:"all",geoIndex:null,xAxisIndex:null,yAxisIndex:null,brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(120,140,180,0.3)",borderColor:"rgba(120,140,180,0.8)"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},areas:[],brushType:null,brushOption:{},coordInfoList:[],optionUpdated:function(e,t){var i=this.option;t||r.replaceVisualOption(i,e,["inBrush","outOfBrush"]);var n=i.inBrush=i.inBrush||{};i.outOfBrush=i.outOfBrush||{color:s},n.hasOwnProperty("liftZ")||(n.liftZ=5)},setAreas:function(e){e&&(this.areas=o.map(e,function(e){return l(this.option,e)},this))},setBrushOption:function(e){this.brushOption=l(this.option,e),this.brushType=this.brushOption.brushType}})},93630:function(e,t,i){var n=i(47475),o=i(66023),r=i(40844);function a(e,t,i,n){n&&n.$from===e.id||this._brushController.setPanels(e.brushTargetManager.makePanelOpts(i)).enableBrush(e.brushOption).updateCovers(e.areas.slice())}e.exports=n.extendComponentView({type:"brush",init:function(e,t){this.ecModel=e,this.api=t,this.model,(this._brushController=new r(t.getZr())).on("brush",o.bind(this._onBrush,this)).mount()},render:function(e){return this.model=e,a.apply(this,arguments)},updateTransform:a,updateView:a,dispose:function(){this._brushController.dispose()},_onBrush:function(e,t){var i=this.model.id;this.model.brushTargetManager.setOutputRanges(e,this.ecModel),(!t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:i,areas:o.clone(e),$from:i})}})},8320:function(e,t,i){var n=i(47475);n.registerAction({type:"brush",event:"brush"},function(e,t){t.eachComponent({mainType:"brush",query:e},function(t){t.setAreas(e.areas)})}),n.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},function(){})},43635:function(e,t,i){var n=i(66023),o=["rect","polygon","keep","clear"];e.exports=function(e,t){var i=e&&e.brush;if(n.isArray(i)||(i=i?[i]:[]),i.length){var r,a,s=[];n.each(i,function(e){var t=e.hasOwnProperty("toolbox")?e.toolbox:[];t instanceof Array&&(s=s.concat(t))});var l=e&&e.toolbox;n.isArray(l)&&(l=l[0]),l||(e.toolbox=[l={feature:{}}]);var c=l.feature||(l.feature={}),d=c.brush||(c.brush={}),u=d.type||(d.type=[]);u.push.apply(u,s),r=u,a={},n.each(r,function(e){a[e]=1}),r.length=0,n.each(a,function(e,t){r.push(t)}),t&&!u.length&&u.push.apply(u,o)}}},86128:function(e,t,i){var n=i(76703),o=i(71497);function r(e){var t=["x","y"],i=["width","height"];return{point:function(t,i,n){if(t){var o=n.range;return a(t[e],o)}},rect:function(n,o,r){if(n){var s=r.range,l=[n[t[e]],n[t[e]]+n[i[e]]];return l[1]<l[0]&&l.reverse(),a(l[0],s)||a(l[1],s)||a(s[0],l)||a(s[1],l)}}}}function a(e,t){return t[0]<=e&&e<=t[1]}function s(e,t,i,n,o){for(var r=0,a=o[o.length-1];r<o.length;r++){var s=o[r];if(function(e,t,i,n,o,r,a,s){var l,c=function(e,t,i,n){return e*n-t*i}(i-e,o-a,n-t,r-s);if((l=c)<=1e-6&&l>=-1e-6)return!1;var d=function(e,t,i,n){return e*n-t*i}(o-e,o-a,r-t,r-s)/c;if(d<0||d>1)return!1;var u=function(e,t,i,n){return e*n-t*i}(i-e,o-e,n-t,r-t)/c;return!(u<0)&&!(u>1)}(e,t,i,n,s[0],s[1],a[0],a[1]))return!0;a=s}}function l(e,t,i,n){return e*n-t*i}e.exports={lineX:r(0),lineY:r(1),rect:{point:function(e,t,i){return e&&i.boundingRect.contain(e[0],e[1])},rect:function(e,t,i){return e&&i.boundingRect.intersect(e)}},polygon:{point:function(e,t,i){return e&&i.boundingRect.contain(e[0],e[1])&&n.contain(i.range,e[0],e[1])},rect:function(e,t,i){var r=i.range;if(!e||r.length<=1)return!1;var a=e.x,l=e.y,c=e.width,d=e.height,u=r[0];if(n.contain(r,a,l)||n.contain(r,a+c,l)||n.contain(r,a,l+d)||n.contain(r,a+c,l+d)||o.create(e).contain(u[0],u[1])||s(a,l,a+c,l,r)||s(a,l,a,l+d,r)||s(a+c,l,a+c,l+d,r)||s(a,l+d,a+c,l+d,r))return!0}}}},69417:function(e,t,i){var n=i(47475),o=i(66023),r=i(71497),a=i(49002),s=i(86128),l=i(44050),c=i(30170),d=["inBrush","outOfBrush"],u="__ecBrushSelect",h="__ecInBrushSelectEvent",p=n.PRIORITY.VISUAL.BRUSH;function f(e,t){if(!e.isDisposed()){var i=e.getZr();i[h]=!0,e.dispatchAction({type:"brushSelect",batch:t}),i[h]=!1}}function g(e,t,i,n){for(var o=0,r=t.length;o<r;o++){var a=t[o];if(e[a.brushType](n,i,a.selectors,a))return!0}}function m(e){var t=e.brushSelector;if(o.isString(t)){var i=[];return o.each(s,function(e,n){i[n]=function(i,n,o,r){var a=n.getItemLayout(i);return e[t](a,o,r)}}),i}if(o.isFunction(t)){var n={};return o.each(s,function(e,i){n[i]=t}),n}return t}n.registerLayout(p,function(e,t,i){e.eachComponent({mainType:"brush"},function(t){i&&"takeGlobalCursor"===i.type&&t.setBrushOption("brush"===i.key?i.brushOption:{brushType:!1}),(t.brushTargetManager=new c(t.option,e)).setInputRanges(t.areas,e)})}),n.registerVisual(p,function(e,t,i){var n,r,c=[];e.eachComponent({mainType:"brush"},function(t,i){var l={brushId:t.id,brushIndex:i,brushName:t.name,areas:o.clone(t.areas),selected:[]};c.push(l);var u=t.option,h=u.brushLink,p=[],f=[],b=[],y=0;i||(n=u.throttleType,r=u.throttleDelay);var w=o.map(t.areas,function(e){var t,i;return i=(t=o.defaults({boundingRect:v[e.brushType](e)},e)).selectors={},o.each(s[t.brushType],function(e,n){i[n]=function(n){return e(n,i,t)}}),t}),_=a.createVisualMappings(t.option,d,function(e){e.mappingMethod="fixed"});function x(e){return"all"===h||p[e]}function S(e){return!!e.length}o.isArray(h)&&o.each(h,function(e){p[e]=1}),e.eachSeries(function(i,n){var r,a,s,l=b[n]=[];"parallel"===i.subType?(r=i,a=n,s=r.coordinateSystem,y|=s.hasAxisBrushed(),x(a)&&s.eachActiveState(r.getData(),function(e,t){"active"===e&&(f[t]=1)})):function(i,n,r){var a,s,l,c=m(i);if(!(!c||(a=t,s=n,null!=(l=a.option.seriesIndex)&&"all"!==l&&(o.isArray(l)?0>o.indexOf(l,s):s!==l)))&&(o.each(w,function(n){c[n.brushType]&&t.brushTargetManager.controlSeries(n,i,e)&&r.push(n),y|=S(r)}),x(n)&&S(r))){var d=i.getData();d.each(function(e){g(c,r,d,e)&&(f[e]=1)})}}(i,n,l)}),e.eachSeries(function(e,t){var i={seriesId:e.id,seriesIndex:t,seriesName:e.name,dataIndex:[]};l.selected.push(i);var n=m(e),o=b[t],r=e.getData(),s=x(t)?function(e){return f[e]?(i.dataIndex.push(r.getRawIndex(e)),"inBrush"):"outOfBrush"}:function(e){return g(n,o,r,e)?(i.dataIndex.push(r.getRawIndex(e)),"inBrush"):"outOfBrush"};(x(t)?y:S(o))&&a.applyVisual(d,_,r,s)})}),function(e,t,i,n,o){if(o){var r=e.getZr();r[h]||(r[u]||(r[u]=f),l.createOrUpdate(r,u,i,t)(e,n))}}(t,n,r,c,i)});var v={lineX:o.noop,lineY:o.noop,rect:function(e){return b(e.range)},polygon:function(e){for(var t,i=e.range,n=0,o=i.length;n<o;n++){t=t||[[1/0,-1/0],[1/0,-1/0]];var r=i[n];r[0]<t[0][0]&&(t[0][0]=r[0]),r[0]>t[0][1]&&(t[0][1]=r[0]),r[1]<t[1][0]&&(t[1][0]=r[1]),r[1]>t[1][1]&&(t[1][1]=r[1])}return t&&b(t)}};function b(e){return new r(e[0][0],e[1][0],e[0][1]-e[0][0],e[1][1]-e[1][0])}},13074:function(e,t,i){i(93779),i(82834),i(80697)},80697:function(e,t,i){var n=i(47475),o=i(66023),r=i(76165),a=i(20438),s=i(98763),l={EN:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],CN:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},c={EN:["S","M","T","W","T","F","S"],CN:["日","一","二","三","四","五","六"]};e.exports=n.extendComponentView({type:"calendar",_tlpoints:null,_blpoints:null,_firstDayOfMonth:null,_firstDayPoints:null,render:function(e,t,i){var n=this.group;n.removeAll();var o=e.coordinateSystem,r=o.getRangeInfo(),a=o.getOrient();this._renderDayRect(e,r,n),this._renderLines(e,r,a,n),this._renderYearText(e,r,a,n),this._renderMonthText(e,a,n),this._renderWeekText(e,r,a,n)},_renderDayRect:function(e,t,i){for(var n=e.coordinateSystem,o=e.getModel("itemStyle").getItemStyle(),a=n.getCellWidth(),s=n.getCellHeight(),l=t.start.time;l<=t.end.time;l=n.getNextNDay(l,1).time){var c=n.dataToRect([l],!1).tl,d=new r.Rect({shape:{x:c[0],y:c[1],width:a,height:s},cursor:"default",style:o});i.add(d)}},_renderLines:function(e,t,i,n){var o=this,r=e.coordinateSystem,a=e.getModel("splitLine.lineStyle").getLineStyle(),s=e.get("splitLine.show"),l=a.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var c=t.start,d=0;c.time<=t.end.time;d++){h(c.formatedDate),0===d&&(c=r.getDateInfo(t.start.y+"-"+t.start.m));var u=c.date;u.setMonth(u.getMonth()+1),c=r.getDateInfo(u)}function h(t){o._firstDayOfMonth.push(r.getDateInfo(t)),o._firstDayPoints.push(r.dataToRect([t],!1).tl);var l=o._getLinePointsOfOneWeek(e,t,i);o._tlpoints.push(l[0]),o._blpoints.push(l[l.length-1]),s&&o._drawSplitline(l,a,n)}h(r.getNextNDay(t.end.time,1).formatedDate),s&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,l,i),a,n),s&&this._drawSplitline(o._getEdgesPoints(o._blpoints,l,i),a,n)},_getEdgesPoints:function(e,t,i){var n=[e[0].slice(),e[e.length-1].slice()],o=+("horizontal"!==i);return n[0][o]=n[0][o]-t/2,n[1][o]=n[1][o]+t/2,n},_drawSplitline:function(e,t,i){var n=new r.Polyline({z2:20,shape:{points:e},style:t});i.add(n)},_getLinePointsOfOneWeek:function(e,t,i){var n=e.coordinateSystem;t=n.getDateInfo(t);for(var o=[],r=0;r<7;r++){var a=n.getNextNDay(t.time,r),s=n.dataToRect([a.time],!1);o[2*a.day]=s.tl,o[2*a.day+1]=s["horizontal"===i?"bl":"tr"]}return o},_formatterLabel:function(e,t){return"string"==typeof e&&e?a.formatTplSimple(e,t):"function"==typeof e?e(t):t.nameMap},_yearTextPositionControl:function(e,t,i,n,o){t=t.slice();var r=["center","bottom"];"bottom"===n?(t[1]+=o,r=["center","top"]):"left"===n?t[0]-=o:"right"===n?(t[0]+=o,r=["center","top"]):t[1]-=o;var a=0;return("left"===n||"right"===n)&&(a=Math.PI/2),{rotation:a,position:t,style:{textAlign:r[0],textVerticalAlign:r[1]}}},_renderYearText:function(e,t,i,n){var o=e.getModel("yearLabel");if(o.get("show")){var a=o.get("margin"),s=o.get("position");s||(s="horizontal"!==i?"top":"left");var l=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],c=(l[0][0]+l[1][0])/2,d=(l[0][1]+l[1][1])/2,u=+("horizontal"!==i),h={top:[c,l[u][1]],bottom:[c,l[1-u][1]],left:[l[1-u][0],d],right:[l[u][0],d]},p=t.start.y;+t.end.y>+t.start.y&&(p=p+"-"+t.end.y);var f=o.get("formatter"),g={start:t.start.y,end:t.end.y,nameMap:p},m=this._formatterLabel(f,g),v=new r.Text({z2:30});r.setTextStyle(v.style,o,{text:m}),v.attr(this._yearTextPositionControl(v,h[s],i,s,a)),n.add(v)}},_monthTextPositionControl:function(e,t,i,n,o){var r="left",a="top",s=e[0],l=e[1];return"horizontal"===i?(l+=o,t&&(r="center"),"start"===n&&(a="bottom")):(s+=o,t&&(a="middle"),"start"===n&&(r="right")),{x:s,y:l,textAlign:r,textVerticalAlign:a}},_renderMonthText:function(e,t,i){var n=e.getModel("monthLabel");if(n.get("show")){var a=n.get("nameMap"),s=n.get("margin"),c=n.get("position"),d=n.get("align"),u=[this._tlpoints,this._blpoints];o.isString(a)&&(a=l[a.toUpperCase()]||[]);var h=+("start"!==c),p=+("horizontal"!==t);s="start"===c?-s:s;for(var f="center"===d,g=0;g<u[h].length-1;g++){var m=u[h][g].slice(),v=this._firstDayOfMonth[g];if(f){var b=this._firstDayPoints[g];m[p]=(b[p]+u[0][g+1][p])/2}var y=n.get("formatter"),w=a[+v.m-1],_={yyyy:v.y,yy:(v.y+"").slice(2),MM:v.m,M:+v.m,nameMap:w},x=this._formatterLabel(y,_),S=new r.Text({z2:30});o.extend(r.setTextStyle(S.style,n,{text:x}),this._monthTextPositionControl(m,f,t,c,s)),i.add(S)}}},_weekTextPositionControl:function(e,t,i,n,o){var r="center",a="middle",s=e[0],l=e[1],c="start"===i;return"horizontal"===t?(s=s+n+(c?1:-1)*o[0]/2,r=c?"right":"left"):(l=l+n+(c?1:-1)*o[1]/2,a=c?"bottom":"top"),{x:s,y:l,textAlign:r,textVerticalAlign:a}},_renderWeekText:function(e,t,i,n){var a=e.getModel("dayLabel");if(a.get("show")){var l=e.coordinateSystem,d=a.get("position"),u=a.get("nameMap"),h=a.get("margin"),p=l.getFirstDayOfWeek();o.isString(u)&&(u=c[u.toUpperCase()]||[]);var f=l.getNextNDay(t.end.time,7-t.lweek).time,g=[l.getCellWidth(),l.getCellHeight()];h=s.parsePercent(h,g[+("horizontal"!==i)]),"start"===d&&(f=l.getNextNDay(t.start.time,-(7+t.fweek)).time,h=-h);for(var m=0;m<7;m++){var v=l.getNextNDay(f,m),b=l.dataToRect([v.time],!1).center,y=m;y=Math.abs((m+p)%7);var w=new r.Text({z2:30});o.extend(r.setTextStyle(w.style,a,{text:u[y]}),this._weekTextPositionControl(b,i,d,h,g)),n.add(w)}}}})},86782:function(e,t,i){i(48663),i(94715),i(21390),i(15610),i(55373),i(8727),i(38532),i(58417),i(13554)},46896:function(e,t,i){var n=i(66023),o=i(98763),r=i(24154),a=n.each,s=o.asc,l=function(e,t,i,n){this._dimName=e,this._axisIndex=t,this._valueWindow,this._percentWindow,this._dataExtent,this._minMaxSpan,this.ecModel=n,this._dataZoomModel=i};function c(e,t){var i=e.getAxisModel(),n=e._percentWindow,r=e._valueWindow;if(n){var a=o.getPixelPrecision(r,[0,500]);a=Math.min(a,20);var s=t||0===n[0]&&100===n[1];i.setRange(s?null:+r[0].toFixed(a),s?null:+r[1].toFixed(a))}}l.prototype={constructor:l,hostedBy:function(e){return this._dataZoomModel===e},getDataValueWindow:function(){return this._valueWindow.slice()},getDataPercentWindow:function(){return this._percentWindow.slice()},getTargetSeriesModels:function(){var e=[],t=this.ecModel;return t.eachSeries(function(i){if(r.isCoordSupported(i.get("coordinateSystem"))){var n=this._dimName,o=t.queryComponents({mainType:n+"Axis",index:i.get(n+"AxisIndex"),id:i.get(n+"AxisId")})[0];this._axisIndex===(o&&o.componentIndex)&&e.push(i)}},this),e},getAxisModel:function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},getOtherAxisModel:function(){var e,t,i,n=this._dimName,o=this.ecModel,r=this.getAxisModel();return"x"===n||"y"===n?(t="gridIndex",e="x"===n?"y":"x"):(t="polarIndex",e="angle"===n?"radius":"angle"),o.eachComponent(e+"Axis",function(e){(e.get(t)||0)===(r.get(t)||0)&&(i=e)}),i},getMinMaxSpan:function(){return n.clone(this._minMaxSpan)},calculateDataWindow:function(e){var t=this._dataExtent,i=this.getAxisModel().axis.scale,n=this._dataZoomModel.getRangePropMode(),r=[0,100],l=[e.start,e.end],c=[];return a(["startValue","endValue"],function(t){c.push(null!=e[t]?i.parse(e[t]):null)}),a([0,1],function(e){var a=c[e],s=l[e];"percent"===n[e]?(null==s&&(s=r[e]),a=i.parse(o.linearMap(s,r,t,!0))):s=o.linearMap(a,t,r,!0),c[e]=a,l[e]=s}),{valueWindow:s(c),percentWindow:s(l)}},reset:function(e){if(e===this._dataZoomModel){var t,i,n,r,s,l,d,u,h,p,f,g,m,v=this.getTargetSeriesModels();this._dataExtent=(t=this,i=this._dimName,n=[1/0,-1/0],a(v,function(e){var t=e.getData();t&&a(t.mapDimension(i,!0),function(e){var i=t.getApproximateExtent(e);i[0]<n[0]&&(n[0]=i[0]),i[1]>n[1]&&(n[1]=i[1])})}),n[1]<n[0]&&(n=[NaN,NaN]),r=t,s=n,d=(l=r.getAxisModel()).getMin(!0),h=(u="category"===l.get("type"))&&l.getCategories().length,null!=d&&"dataMin"!==d&&"function"!=typeof d?s[0]=d:u&&(s[0]=h>0?0:NaN),null!=(p=l.getMax(!0))&&"dataMax"!==p&&"function"!=typeof p?s[1]=p:u&&(s[1]=h>0?h-1:NaN),!l.get("scale",!0)&&(s[0]>0&&(s[0]=0),s[1]<0&&(s[1]=0)),n);var b=this.calculateDataWindow(e.option);this._valueWindow=b.valueWindow,this._percentWindow=b.percentWindow,f=this,g=f._minMaxSpan={},m=f._dataZoomModel,a(["min","max"],function(e){g[e+"Span"]=m.get(e+"Span");var t=m.get(e+"ValueSpan");if(null!=t&&(g[e+"ValueSpan"]=t,null!=(t=f.getAxisModel().axis.scale.parse(t)))){var i=f._dataExtent;g[e+"Span"]=o.linearMap(i[0]+t,i,[0,100],!0)}}),c(this)}},restore:function(e){e===this._dataZoomModel&&(this._valueWindow=this._percentWindow=null,c(this,!0))},filterData:function(e,t){if(e===this._dataZoomModel){var i=this._dimName,n=this.getTargetSeriesModels(),o=e.get("filterMode"),r=this._valueWindow;"none"!==o&&a(n,function(e){var t=e.getData(),n=t.mapDimension(i,!0);n.length&&("weakFilter"===o?t.filterSelf(function(e){for(var i,o,a,s=0;s<n.length;s++){var l=t.get(n[s],e),c=!isNaN(l),d=l<r[0],u=l>r[1];if(c&&!d&&!u)return!0;c&&(a=!0),d&&(i=!0),u&&(o=!0)}return a&&i&&o}):a(n,function(i){if("empty"===o)e.setData(t.map(i,function(e){var t;return(t=e)>=r[0]&&t<=r[1]?e:NaN}));else{var n={};n[i]=r,t.selectRange(n)}}),a(n,function(e){t.setApproximateExtent(r,e)}))})}}},e.exports=l},94715:function(e,t,i){i(38603).__DEV__;var n=i(47475),o=i(66023),r=i(57674),a=i(70018),s=i(24154),l=i(46896),c=o.each,d=s.eachAxisDim;function u(e){var t={};return c(["start","end","startValue","endValue","throttle"],function(i){e.hasOwnProperty(i)&&(t[i]=e[i])}),t}function h(e,t){var i=e._rangePropMode,n=e.get("rangeMode");c([["start","startValue"],["end","endValue"]],function(e,o){var r=null!=t[e[0]],a=null!=t[e[1]];r&&!a?i[o]="percent":!r&&a?i[o]="value":n?i[o]=n[o]:r&&(i[o]="percent")})}e.exports=n.extendComponentModel({type:"dataZoom",dependencies:["xAxis","yAxis","zAxis","radiusAxis","angleAxis","singleAxis","series"],defaultOption:{zlevel:0,z:4,orient:null,xAxisIndex:null,yAxisIndex:null,filterMode:"filter",throttle:null,start:0,end:100,startValue:null,endValue:null,minSpan:null,maxSpan:null,minValueSpan:null,maxValueSpan:null,rangeMode:null},init:function(e,t,i){this._dataIntervalByAxis={},this._dataInfo={},this._axisProxies={},this.textStyleModel,this._autoThrottle=!0,this._rangePropMode=["percent","percent"];var n=u(e);this.mergeDefaultAndTheme(e,i),this.doInit(n)},mergeOption:function(e){var t=u(e);o.merge(this.option,e,!0),this.doInit(t)},doInit:function(e){var t=this.option;r.canvasSupported||(t.realtime=!1),this._setDefaultThrottle(e),h(this,e),c([["start","startValue"],["end","endValue"]],function(e,i){"value"===this._rangePropMode[i]&&(t[e[0]]=null)},this),this.textStyleModel=this.getModel("textStyle"),this._resetTarget(),this._giveAxisProxies()},_giveAxisProxies:function(){var e=this._axisProxies;this.eachTargetAxis(function(t,i,n,o){var r=this.dependentModels[t.axis][i],a=r.__dzAxisProxy||(r.__dzAxisProxy=new l(t.name,i,this,o));e[t.name+"_"+i]=a},this)},_resetTarget:function(){var e=this.option,t=this._judgeAutoMode();d(function(t){var i=t.axisIndex;e[i]=a.normalizeToArray(e[i])},this),"axisIndex"===t?this._autoSetAxisIndex():"orient"===t&&this._autoSetOrient()},_judgeAutoMode:function(){var e=this.option,t=!1;d(function(i){null!=e[i.axisIndex]&&(t=!0)},this);var i=e.orient;return null==i&&t?"orient":t?void 0:(null==i&&(e.orient="horizontal"),"axisIndex")},_autoSetAxisIndex:function(){var e=!0,t=this.get("orient",!0),i=this.option,n=this.dependentModels;if(e){var r="vertical"===t?"y":"x";n[r+"Axis"].length?(i[r+"AxisIndex"]=[0],e=!1):c(n.singleAxis,function(n){e&&n.get("orient",!0)===t&&(i.singleAxisIndex=[n.componentIndex],e=!1)})}e&&d(function(t){if(e){var n=[],o=this.dependentModels[t.axis];if(o.length&&!n.length)for(var r=0,a=o.length;r<a;r++)"category"===o[r].get("type")&&n.push(r);i[t.axisIndex]=n,n.length&&(e=!1)}},this),e&&this.ecModel.eachSeries(function(e){this._isSeriesHasAllAxesTypeOf(e,"value")&&d(function(t){var n=i[t.axisIndex],r=e.get(t.axisIndex),a=e.get(t.axisId);r=e.ecModel.queryComponents({mainType:t.axis,index:r,id:a})[0].componentIndex,0>o.indexOf(n,r)&&n.push(r)})},this)},_autoSetOrient:function(){var e;this.eachTargetAxis(function(t){e||(e=t.name)},this),this.option.orient="y"===e?"vertical":"horizontal"},_isSeriesHasAllAxesTypeOf:function(e,t){var i=!0;return d(function(n){var o=e.get(n.axisIndex),r=this.dependentModels[n.axis][o];r&&r.get("type")===t||(i=!1)},this),i},_setDefaultThrottle:function(e){if(e.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var t=this.ecModel.option;this.option.throttle=t.animation&&t.animationDurationUpdate>0?100:20}},getFirstTargetAxisModel:function(){var e;return d(function(t){if(null==e){var i=this.get(t.axisIndex);i.length&&(e=this.dependentModels[t.axis][i[0]])}},this),e},eachTargetAxis:function(e,t){var i=this.ecModel;d(function(n){c(this.get(n.axisIndex),function(o){e.call(t,n,o,this,i)},this)},this)},getAxisProxy:function(e,t){return this._axisProxies[e+"_"+t]},getAxisModel:function(e,t){var i=this.getAxisProxy(e,t);return i&&i.getAxisModel()},setRawRange:function(e,t){var i=this.option;c([["start","startValue"],["end","endValue"]],function(t){(null!=e[t[0]]||null!=e[t[1]])&&(i[t[0]]=e[t[0]],i[t[1]]=e[t[1]])},this),t||h(this,e)},getPercentRange:function(){var e=this.findRepresentativeAxisProxy();if(e)return e.getDataPercentWindow()},getValueRange:function(e,t){if(null!=e||null!=t)return this.getAxisProxy(e,t).getDataValueWindow();var i=this.findRepresentativeAxisProxy();if(i)return i.getDataValueWindow()},findRepresentativeAxisProxy:function(e){if(e)return e.__dzAxisProxy;var t=this._axisProxies;for(var i in t)if(t.hasOwnProperty(i)&&t[i].hostedBy(this))return t[i];for(var i in t)if(t.hasOwnProperty(i)&&!t[i].hostedBy(this))return t[i]},getRangePropMode:function(){return this._rangePropMode.slice()}})},21390:function(e,t,i){e.exports=i(11648).extend({type:"dataZoom",render:function(e,t,i,n){this.dataZoomModel=e,this.ecModel=t,this.api=i},getTargetCoordInfo:function(){var e=this.dataZoomModel,t=this.ecModel,i={};return e.eachTargetAxis(function(e,n){var o=t.getComponent(e.axis,n);if(o){var r=o.getCoordSysModel();r&&function(e,t,i,n){for(var o,r=0;r<i.length;r++)if(i[r].model===e){o=i[r];break}o||i.push(o={model:e,axisModels:[],coordIndex:n}),o.axisModels.push(t)}(r,o,i[r.mainType]||(i[r.mainType]=[]),r.componentIndex)}},this),i}})},8727:function(e,t,i){e.exports=i(94715).extend({type:"dataZoom.inside",defaultOption:{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}})},38532:function(e,t,i){var n=i(66023),o=i(21390),r=i(28542),a=i(47055),s=n.bind,l=o.extend({type:"dataZoom.inside",init:function(e,t){this._range},render:function(e,t,i,o){l.superApply(this,"render",arguments),this._range=e.getPercentRange(),n.each(this.getTargetCoordInfo(),function(t,o){var r=n.map(t,function(e){return a.generateCoordId(e.model)});n.each(t,function(t){var l=t.model,d={};n.each(["pan","zoom","scrollMove"],function(e){d[e]=s(c[e],this,t,o)},this),a.register(i,{coordId:a.generateCoordId(l),allCoordIds:r,containsPoint:function(e,t,i){return l.coordinateSystem.containPoint([t,i])},dataZoomId:e.id,dataZoomModel:e,getRange:d})},this)},this)},dispose:function(){a.unregister(this.api,this.dataZoomModel.id),l.superApply(this,"dispose",arguments),this._range=null}}),c={zoom:function(e,t,i,n){var o=this._range,a=o.slice(),s=e.axisModels[0];if(s){var l=u[t](null,[n.originX,n.originY],s,i,e),c=(l.signal>0?l.pixelStart+l.pixelLength-l.pixel:l.pixel-l.pixelStart)/l.pixelLength*(a[1]-a[0])+a[0],d=Math.max(1/n.scale,0);a[0]=(a[0]-c)*d+c,a[1]=(a[1]-c)*d+c;var h=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(r(0,a,[0,100],0,h.minSpan,h.maxSpan),this._range=a,o[0]!==a[0]||o[1]!==a[1])return a}},pan:d(function(e,t,i,n,o,r){var a=u[n]([r.oldX,r.oldY],[r.newX,r.newY],t,o,i);return a.signal*(e[1]-e[0])*a.pixel/a.pixelLength}),scrollMove:d(function(e,t,i,n,o,r){return u[n]([0,0],[r.scrollDelta,r.scrollDelta],t,o,i).signal*(e[1]-e[0])*r.scrollDelta})};function d(e){return function(t,i,n,o){var a=this._range,s=a.slice(),l=t.axisModels[0];if(l&&(r(e(s,l,t,i,n,o),s,[0,100],"all"),this._range=s,a[0]!==s[0]||a[1]!==s[1]))return s}}var u={grid:function(e,t,i,n,o){var r=i.axis,a={},s=o.model.coordinateSystem.getRect();return e=e||[0,0],"x"===r.dim?(a.pixel=t[0]-e[0],a.pixelLength=s.width,a.pixelStart=s.x,a.signal=r.inverse?1:-1):(a.pixel=t[1]-e[1],a.pixelLength=s.height,a.pixelStart=s.y,a.signal=r.inverse?-1:1),a},polar:function(e,t,i,n,o){var r=i.axis,a={},s=o.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),c=s.getAngleAxis().getExtent();return e=e?s.pointToCoord(e):[0,0],t=s.pointToCoord(t),"radiusAxis"===i.mainType?(a.pixel=t[0]-e[0],a.pixelLength=l[1]-l[0],a.pixelStart=l[0],a.signal=r.inverse?1:-1):(a.pixel=t[1]-e[1],a.pixelLength=c[1]-c[0],a.pixelStart=c[0],a.signal=r.inverse?-1:1),a},singleAxis:function(e,t,i,n,o){var r=i.axis,a=o.model.coordinateSystem.getRect(),s={};return e=e||[0,0],"horizontal"===r.orient?(s.pixel=t[0]-e[0],s.pixelLength=a.width,s.pixelStart=a.x,s.signal=r.inverse?1:-1):(s.pixel=t[1]-e[1],s.pixelLength=a.height,s.pixelStart=a.y,s.signal=r.inverse?-1:1),s}};e.exports=l},5781:function(e,t,i){e.exports=i(94715).extend({type:"dataZoom.select"})},82467:function(e,t,i){e.exports=i(21390).extend({type:"dataZoom.select"})},15610:function(e,t,i){e.exports=i(94715).extend({type:"dataZoom.slider",layoutMode:"box",defaultOption:{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#2f4554",width:.5,opacity:.3},areaStyle:{color:"rgba(47,69,84,0.3)",opacity:.3}},borderColor:"#ddd",fillerColor:"rgba(167,183,204,0.4)",handleIcon:"M8.2,13.6V3.9H6.3v9.7H3.1v14.9h3.3v9.7h1.8v-9.7h3.3V13.6H8.2z M9.7,24.4H4.8v-1.4h4.9V24.4z M9.7,19.1H4.8v-1.4h4.9V19.1z",handleSize:"100%",handleStyle:{color:"#a7b7cc"},labelPrecision:null,labelFormatter:null,showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#333"}}})},55373:function(e,t,i){var n=i(66023),o=i(3006),r=i(76165),a=i(44050),s=i(21390),l=i(98763),c=i(68006),d=i(28542),u=r.Rect,h=l.linearMap,p=l.asc,f=n.bind,g=n.each,m="horizontal",v="vertical",b=["line","bar","candlestick","scatter"],y=s.extend({type:"dataZoom.slider",init:function(e,t){this._displayables={},this._orient,this._range,this._handleEnds,this._size,this._handleWidth,this._handleHeight,this._location,this._dragging,this._dataShadowInfo,this.api=t},render:function(e,t,i,n){if(y.superApply(this,"render",arguments),a.createOrUpdate(this,"_dispatchZoomAction",this.dataZoomModel.get("throttle"),"fixRate"),this._orient=e.get("orient"),!1===this.dataZoomModel.get("show"))return void this.group.removeAll();n&&"dataZoom"===n.type&&n.from===this.uid||this._buildView(),this._updateView()},remove:function(){y.superApply(this,"remove",arguments),a.clear(this,"_dispatchZoomAction")},dispose:function(){y.superApply(this,"dispose",arguments),a.clear(this,"_dispatchZoomAction")},_buildView:function(){var e=this.group;e.removeAll(),this._resetLocation(),this._resetInterval();var t=this._displayables.barGroup=new r.Group;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),e.add(t),this._positionGroup()},_resetLocation:function(){var e=this.dataZoomModel,t=this.api,i=this._findCoordRect(),o={width:t.getWidth(),height:t.getHeight()},r=this._orient===m?{right:o.width-i.x-i.width,top:o.height-30-7,width:i.width,height:30}:{right:7,top:i.y,width:30,height:i.height},a=c.getLayoutParams(e.option);n.each(["right","top","width","height"],function(e){"ph"===a[e]&&(a[e]=r[e])});var s=c.getLayoutRect(a,o,e.padding);this._location={x:s.x,y:s.y},this._size=[s.width,s.height],this._orient===v&&this._size.reverse()},_positionGroup:function(){var e=this.group,t=this._location,i=this._orient,n=this.dataZoomModel.getFirstTargetAxisModel(),o=n&&n.get("inverse"),r=this._displayables.barGroup,a=(this._dataShadowInfo||{}).otherAxisInverse;r.attr(i!==m||o?i===m&&o?{scale:a?[-1,1]:[-1,-1]}:i!==v||o?{scale:a?[-1,-1]:[-1,1],rotation:Math.PI/2}:{scale:a?[1,-1]:[1,1],rotation:Math.PI/2}:{scale:a?[1,1]:[1,-1]});var s=e.getBoundingRect([r]);e.attr("position",[t.x-s.x,t.y-s.y])},_getViewExtent:function(){return[0,this._size[0]]},_renderBackground:function(){var e=this.dataZoomModel,t=this._size,i=this._displayables.barGroup;i.add(new u({silent:!0,shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:e.get("backgroundColor")},z2:-40})),i.add(new u({shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:"transparent"},z2:0,onclick:n.bind(this._onClickPanelClick,this)}))},_renderDataShadow:function(){var e,t=this._dataShadowInfo=this._prepareDataShadowInfo();if(t){var i=this._size,o=t.series,a=o.getRawData(),s=o.getShadowDim?o.getShadowDim():t.otherDim;if(null!=s){var l=a.getDataExtent(s),c=(l[1]-l[0])*.3;l=[l[0]-c,l[1]+c];var d=[0,i[1]],u=[0,i[0]],p=[[i[0],0],[0,0]],f=[],g=u[1]/(a.count()-1),m=0,v=Math.round(a.count()/i[0]);a.each([s],function(t,i){if(v>0&&i%v){m+=g;return}var n=null==t||isNaN(t)||""===t,o=n?0:h(t,l,d,!0);n&&!e&&i?(p.push([p[p.length-1][0],0]),f.push([f[f.length-1][0],0])):!n&&e&&(p.push([m,0]),f.push([m,0])),p.push([m,o]),f.push([m,o]),m+=g,e=n});var b=this.dataZoomModel;this._displayables.barGroup.add(new r.Polygon({shape:{points:p},style:n.defaults({fill:b.get("dataBackgroundColor")},b.getModel("dataBackground.areaStyle").getAreaStyle()),silent:!0,z2:-20})),this._displayables.barGroup.add(new r.Polyline({shape:{points:f},style:b.getModel("dataBackground.lineStyle").getLineStyle(),silent:!0,z2:-19}))}}},_prepareDataShadowInfo:function(){var e,t=this.dataZoomModel,i=t.get("showDataShadow");if(!1!==i){var o=this.ecModel;return t.eachTargetAxis(function(r,a){var s=t.getAxisProxy(r.name,a).getTargetSeriesModels();n.each(s,function(t){if(!e&&!(!0!==i&&0>n.indexOf(b,t.get("type")))){var s,l=o.getComponent(r.axis,a).axis,c={x:"y",y:"x",radius:"angle",angle:"radius"}[r.name],d=t.coordinateSystem;null!=c&&d.getOtherAxis&&(s=d.getOtherAxis(l).inverse),c=t.getData().mapDimension(c),e={thisAxis:l,series:t,thisDim:r.name,otherDim:c,otherAxisInverse:s}}},this)},this),e}},_renderHandle:function(){var e=this._displayables,t=e.handles=[],i=e.handleLabels=[],n=this._displayables.barGroup,a=this._size,s=this.dataZoomModel;n.add(e.filler=new u({draggable:!0,cursor:w(this._orient),drift:f(this._onDragMove,this,"all"),onmousemove:function(e){o.stop(e.event)},ondragstart:f(this._showDataInfo,this,!0),ondragend:f(this._onDragEnd,this),onmouseover:f(this._showDataInfo,this,!0),onmouseout:f(this._showDataInfo,this,!1),style:{fill:s.get("fillerColor"),textPosition:"inside"}})),n.add(new u(r.subPixelOptimizeRect({silent:!0,shape:{x:0,y:0,width:a[0],height:a[1]},style:{stroke:s.get("dataBackgroundColor")||s.get("borderColor"),lineWidth:1,fill:"rgba(0,0,0,0)"}}))),g([0,1],function(e){var a=r.createIcon(s.get("handleIcon"),{cursor:w(this._orient),draggable:!0,drift:f(this._onDragMove,this,e),onmousemove:function(e){o.stop(e.event)},ondragend:f(this._onDragEnd,this),onmouseover:f(this._showDataInfo,this,!0),onmouseout:f(this._showDataInfo,this,!1)},{x:-1,y:0,width:2,height:2}),c=a.getBoundingRect();this._handleHeight=l.parsePercent(s.get("handleSize"),this._size[1]),this._handleWidth=c.width/c.height*this._handleHeight,a.setStyle(s.getModel("handleStyle").getItemStyle());var d=s.get("handleColor");null!=d&&(a.style.fill=d),n.add(t[e]=a);var u=s.textStyleModel;this.group.add(i[e]=new r.Text({silent:!0,invisible:!0,style:{x:0,y:0,text:"",textVerticalAlign:"middle",textAlign:"center",textFill:u.getTextColor(),textFont:u.getFont()},z2:10}))},this)},_resetInterval:function(){var e=this._range=this.dataZoomModel.getPercentRange(),t=this._getViewExtent();this._handleEnds=[h(e[0],[0,100],t,!0),h(e[1],[0,100],t,!0)]},_updateInterval:function(e,t){var i=this.dataZoomModel,n=this._handleEnds,o=this._getViewExtent(),r=i.findRepresentativeAxisProxy().getMinMaxSpan(),a=[0,100];d(t,n,o,i.get("zoomLock")?"all":e,null!=r.minSpan?h(r.minSpan,a,o,!0):null,null!=r.maxSpan?h(r.maxSpan,a,o,!0):null);var s=this._range,l=this._range=p([h(n[0],o,a,!0),h(n[1],o,a,!0)]);return!s||s[0]!==l[0]||s[1]!==l[1]},_updateView:function(e){var t=this._displayables,i=this._handleEnds,n=p(i.slice()),o=this._size;g([0,1],function(e){var n=t.handles[e],r=this._handleHeight;n.attr({scale:[r/2,r/2],position:[i[e],o[1]/2-r/2]})},this),t.filler.setShape({x:n[0],y:0,width:n[1]-n[0],height:o[1]}),this._updateDataInfo(e)},_updateDataInfo:function(e){var t=this.dataZoomModel,i=this._displayables,n=i.handleLabels,o=this._orient,a=["",""];if(t.get("showDetail")){var s=t.findRepresentativeAxisProxy();if(s){var l=s.getAxisModel().axis,c=this._range,d=e?s.calculateDataWindow({start:c[0],end:c[1]}).valueWindow:s.getDataValueWindow();a=[this._formatLabel(d[0],l),this._formatLabel(d[1],l)]}}var u=p(this._handleEnds.slice());function h(e){var t=r.getTransform(i.handles[e].parent,this.group),s=r.transformDirection(0===e?"right":"left",t),l=this._handleWidth/2+5,c=r.applyTransform([u[e]+(0===e?-l:l),this._size[1]/2],t);n[e].setStyle({x:c[0],y:c[1],textVerticalAlign:o===m?"middle":s,textAlign:o===m?s:"center",text:a[e]})}h.call(this,0),h.call(this,1)},_formatLabel:function(e,t){var i=this.dataZoomModel,o=i.get("labelFormatter"),r=i.get("labelPrecision");(null==r||"auto"===r)&&(r=t.getPixelPrecision());var a=null==e||isNaN(e)?"":"category"===t.type||"time"===t.type?t.scale.getLabel(Math.round(e)):e.toFixed(Math.min(r,20));return n.isFunction(o)?o(e,a):n.isString(o)?o.replace("{value}",a):a},_showDataInfo:function(e){e=this._dragging||e;var t=this._displayables.handleLabels;t[0].attr("invisible",!e),t[1].attr("invisible",!e)},_onDragMove:function(e,t,i){this._dragging=!0;var n=this._displayables.barGroup.getLocalTransform(),o=r.applyTransform([t,i],n,!0),a=this._updateInterval(e,o[0]),s=this.dataZoomModel.get("realtime");this._updateView(!s),a&&s&&this._dispatchZoomAction()},_onDragEnd:function(){this._dragging=!1,this._showDataInfo(!1),this.dataZoomModel.get("realtime")||this._dispatchZoomAction()},_onClickPanelClick:function(e){var t=this._size,i=this._displayables.barGroup.transformCoordToLocal(e.offsetX,e.offsetY);if(!(i[0]<0)&&!(i[0]>t[0])&&!(i[1]<0)&&!(i[1]>t[1])){var n=this._handleEnds,o=(n[0]+n[1])/2,r=this._updateInterval("all",i[0]-o);this._updateView(),r&&this._dispatchZoomAction()}},_dispatchZoomAction:function(){var e=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,start:e[0],end:e[1]})},_findCoordRect:function(){var e;if(g(this.getTargetCoordInfo(),function(t){if(!e&&t.length){var i=t[0].model.coordinateSystem;e=i.getRect&&i.getRect()}}),!e){var t=this.api.getWidth(),i=this.api.getHeight();e={x:.2*t,y:.2*i,width:.6*t,height:.6*i}}return e}});function w(e){return"vertical"===e?"ns-resize":"ew-resize"}e.exports=y},13554:function(e,t,i){var n=i(47475),o=i(66023),r=i(24154);n.registerAction("dataZoom",function(e,t){var i=r.createLinkedNodesFinder(o.bind(t.eachComponent,t,"dataZoom"),r.eachAxisDim,function(e,t){return e.get(t.axisIndex)}),n=[];t.eachComponent({mainType:"dataZoom",query:e},function(e,t){n.push.apply(n,i(e).nodes)}),o.each(n,function(t,i){t.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})},58417:function(e,t,i){var n=i(47475),o=i(66023),r=o.createHashMap,a=o.each;n.registerProcessor({getTargetSeries:function(e){var t=r();return e.eachComponent("dataZoom",function(e){e.eachTargetAxis(function(e,i,n){a(n.getAxisProxy(e.name,i).getTargetSeriesModels(),function(e){t.set(e.uid,e)})})}),t},modifyOutputEnd:!0,overallReset:function(e,t){e.eachComponent("dataZoom",function(e){e.eachTargetAxis(function(e,i,n){n.getAxisProxy(e.name,i).reset(n,t)}),e.eachTargetAxis(function(e,i,n){n.getAxisProxy(e.name,i).filterData(n,t)})}),e.eachComponent("dataZoom",function(e){var t=e.findRepresentativeAxisProxy(),i=t.getDataPercentWindow(),n=t.getDataValueWindow();e.setRawRange({start:i[0],end:i[1],startValue:n[0],endValue:n[1]},!0)})}})},24154:function(e,t,i){var n=i(66023),o=i(20438),r=["cartesian2d","polar","singleAxis"];function a(e,t){e=e.slice();var i=n.map(e,o.capitalFirst);t=(t||[]).slice();var r=n.map(t,o.capitalFirst);return function(o,a){n.each(e,function(e,n){for(var s={name:e,capital:i[n]},l=0;l<t.length;l++)s[t[l]]=e+r[l];o.call(a,s)})}}var s=a(["x","y","z","radius","angle","single"],["axisIndex","axis","index","id"]);t.isCoordSupported=function(e){return n.indexOf(r,e)>=0},t.createNameEach=a,t.eachAxisDim=s,t.createLinkedNodesFinder=function(e,t,i){return function(r){var a,s={nodes:[],records:{}};if(t(function(e){s.records[e.name]={}}),!r)return s;o(r,s);do a=!1,e(l);while(a);function l(e){var r,l,c,d,u;r=e,l=s,!(n.indexOf(l.nodes,r)>=0)&&(c=e,d=s,u=!1,t(function(e){n.each(i(c,e)||[],function(t){d.records[e.name][t]&&(u=!0)})}),u)&&(o(e,s),a=!0)}return s};function o(e,o){o.nodes.push(e),t(function(t){n.each(i(e,t)||[],function(e){o.records[t.name][e]=!0})})}}},18058:function(e,t,i){var n=i(66023).each,o="\0_ec_hist_store";function r(e){var t=e[o];return t||(t=e[o]=[{}]),t}t.push=function(e,t){var i=r(e);n(t,function(t,n){for(var o=i.length-1;o>=0&&!i[o][n];o--);if(o<0){var r=e.queryComponents({mainType:"dataZoom",subType:"select",id:n})[0];if(r){var a=r.getPercentRange();i[0][n]={dataZoomId:n,start:a[0],end:a[1]}}}}),i.push(t)},t.pop=function(e){var t=r(e),i=t[t.length-1];t.length>1&&t.pop();var o={};return n(i,function(e,i){for(var n=t.length-1;n>=0;n--){var e=t[n][i];if(e){o[i]=e;break}}}),o},t.clear=function(e){e[o]=null},t.count=function(e){return r(e).length}},47055:function(e,t,i){var n=i(66023),o=i(84275),r=i(44050),a="\0_ec_dataZoom_roams";function s(e){var t=e.getZr();return t[a]||(t[a]={})}function l(e){n.each(e,function(t,i){t.count||(t.controller.dispose(),delete e[i])})}function c(e,t){e.dispatchAction({type:"dataZoom",batch:t})}t.register=function(e,t){var i,a,d,u,h,p,f,g,m=s(e),v=t.dataZoomId,b=t.coordId;n.each(m,function(e,i){var o=e.dataZoomInfos;o[v]&&0>n.indexOf(t.allCoordIds,b)&&(delete o[v],e.count--)}),l(m);var y=m[b];y||((y=m[b]={coordId:b,dataZoomInfos:{},count:0}).controller=(i=e,a=y,d=new o(i.getZr()),n.each(["pan","zoom","scrollMove"],function(e){d.on(e,function(t){var i=[];n.each(a.dataZoomInfos,function(n){if(t.isAvailableBehavior(n.dataZoomModel.option)){var o=(n.getRange||{})[e],r=o&&o(a.controller,t);!n.dataZoomModel.get("disabled",!0)&&r&&i.push({dataZoomId:n.dataZoomId,start:r[0],end:r[1]})}}),i.length&&a.dispatchAction(i)})}),d),y.dispatchAction=n.curry(c,e)),!y.dataZoomInfos[v]&&y.count++,y.dataZoomInfos[v]=t;var w=(u=y.dataZoomInfos,p="type_",f={type_true:2,type_move:1,type_false:0,type_undefined:-1},g=!0,n.each(u,function(e){var t=e.dataZoomModel,i=!t.get("disabled",!0)&&(!t.get("zoomLock",!0)||"move");f[p+i]>f[p+h]&&(h=i),g&=t.get("preventDefaultMouseMove",!0)}),{controlType:h,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!g}});y.controller.enable(w.controlType,w.opt),y.controller.setPointerChecker(t.containsPoint),r.createOrUpdate(y,"dispatchAction",t.dataZoomModel.get("throttle",!0),"fixRate")},t.unregister=function(e,t){var i=s(e);n.each(i,function(e){e.controller.dispose();var i=e.dataZoomInfos;i[t]&&(delete i[t],e.count--)}),l(i)},t.generateCoordId=function(e){return e.type+"\0_"+e.id}},48663:function(e,t,i){i(76056).registerSubTypeDefaulter("dataZoom",function(){return"slider"})},34683:function(e,t,i){i(48663),i(94715),i(21390),i(5781),i(82467),i(58417),i(13554)},62295:function(e,t,i){var n=i(76056),o=i(11648),r=i(4522).detectSourceFormat,a=i(38237).SERIES_LAYOUT_BY_COLUMN;n.extend({type:"dataset",defaultOption:{seriesLayoutBy:a,sourceHeader:null,dimensions:null,source:null},optionUpdated:function(){r(this)}}),o.extend({type:"dataset"})},39857:function(e,t,i){var n=i(47475),o=i(66023);function r(e,t){t.update="updateView",n.registerAction(t,function(t,i){var n={};return i.eachComponent({mainType:"geo",query:t},function(i){i[e](t.name);var r=i.coordinateSystem;o.each(r.regions,function(e){n[e.name]=i.isSelected(e.name)||!1})}),{selected:n,name:t.name}})}i(10649),i(85605),i(89980),i(74911),r("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),r("select",{type:"geoSelect",event:"geoselected"}),r("unSelect",{type:"geoUnSelect",event:"geounselected"})},89980:function(e,t,i){var n=i(88142);e.exports=i(47475).extendComponentView({type:"geo",init:function(e,t){var i=new n(t,!0);this._mapDraw=i,this.group.add(i.group)},render:function(e,t,i,n){if(!n||"geoToggleSelect"!==n.type||n.from!==this.uid){var o=this._mapDraw;e.get("show")?o.draw(e,t,i,this,n):this._mapDraw.group.removeAll(),this.group.silent=e.get("silent")}},dispose:function(){this._mapDraw&&this._mapDraw.remove()}})},76901:function(e,t,i){i(38603).__DEV__;var n=i(47475),o=i(66023),r=i(70018),a=i(76165),s=i(68006);n.registerPreprocessor(function(e){var t=e.graphic;o.isArray(t)?t[0]&&t[0].elements?e.graphic=[e.graphic[0]]:e.graphic=[{elements:t}]:t&&!t.elements&&(e.graphic=[{elements:[t]}])});var l=n.extendComponentModel({type:"graphic",defaultOption:{elements:[],parentId:null},_elOptionsToUpdate:null,mergeOption:function(e){var t=this.option.elements;this.option.elements=null,l.superApply(this,"mergeOption",arguments),this.option.elements=t},optionUpdated:function(e,t){var i=this.option,n=(t?i:e).elements,a=i.elements=t?[]:i.elements,l=[];this._flatten(n,l);var c=r.mappingToExists(a,l);r.makeIdAndName(c);var d=this._elOptionsToUpdate=[];o.each(c,function(e,t){var i,n,r,l,c,h,p,f,g=e.option;g&&(d.push(g),function(e,t){var i=e.exist;if(t.id=e.keyInfo.id,!t.type&&i&&(t.type=i.type),null==t.parentId){var n=t.parentOption;n?t.parentId=n.id:i&&(t.parentId=i.parentId)}t.parentOption=null}(e,g),i=a,n=t,r=g,l=o.extend({},r),c=i[n],"merge"===(h=r.$action||"merge")?c?(o.merge(c,l,!0),s.mergeLayoutParam(c,l,{ignoreSize:!0}),s.copyLayoutParams(r,c)):i[n]=l:"replace"===h?i[n]=l:"remove"===h&&c&&(i[n]=null),p=a[t],f=g,p&&(p.hv=f.hv=[u(f,["left","right"]),u(f,["top","bottom"])],"group"===p.type&&(null==p.width&&(p.width=f.width=0),null==p.height&&(p.height=f.height=0))))},this);for(var h=a.length-1;h>=0;h--)null==a[h]?a.splice(h,1):delete a[h].$action},_flatten:function(e,t,i){o.each(e,function(e){if(e){i&&(e.parentOption=i),t.push(e);var n=e.children;"group"===e.type&&n&&this._flatten(n,t,e),delete e.children}},this)},useElOptionsToUpdate:function(){var e=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,e}});function c(e,t,i,n){var o=i.type,r=new a[o.charAt(0).toUpperCase()+o.slice(1)](i);t.add(r),n.set(e,r),r.__ecGraphicId=e}function d(e,t){var i=e&&e.parent;i&&("group"===e.type&&e.traverse(function(e){d(e,t)}),t.removeKey(e.__ecGraphicId),i.remove(e))}function u(e,t){var i;return o.each(t,function(t){null!=e[t]&&"auto"!==e[t]&&(i=!0)}),i}n.extendComponentView({type:"graphic",init:function(e,t){this._elMap=o.createHashMap(),this._lastGraphicModel},render:function(e,t,i){e!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=e,this._updateElements(e),this._relocate(e,i)},_updateElements:function(e){var t=e.useElOptionsToUpdate();if(t){var i=this._elMap,n=this.group;o.each(t,function(t){var r,a,l,u,h,p=t.$action,f=t.id,g=i.get(f),m=t.parentId,v=null!=m?i.get(m):n,b=t.style;"text"===t.type&&b&&(t.hv&&t.hv[1]&&(b.textVerticalAlign=b.textBaseline=null),!b.hasOwnProperty("textFill")&&b.fill&&(b.textFill=b.fill),!b.hasOwnProperty("textStroke")&&b.stroke&&(b.textStroke=b.stroke));var y=(r=t,r=o.extend({},r),o.each(["id","parentId","$action","hv","bounding"].concat(s.LOCATION_PARAMS),function(e){delete r[e]}),r);p&&"merge"!==p?"replace"===p?(d(g,i),c(f,v,y,i)):"remove"===p&&d(g,i):g?g.attr(y):c(f,v,y,i);var w=i.get(f);w&&(w.__ecGraphicWidth=t.width,w.__ecGraphicHeight=t.height,a=w,l=e,u=0,h=a.eventData,a.silent||a.ignore||h||(h=a.eventData={componentType:"graphic",componentIndex:l.componentIndex,name:a.name}),h&&(h.info=a.info))})}},_relocate:function(e,t){for(var i=e.option.elements,n=this.group,o=this._elMap,r=i.length-1;r>=0;r--){var a=i[r],l=o.get(a.id);if(l){var c=l.parent,d=c===n?{width:t.getWidth(),height:t.getHeight()}:{width:c.__ecGraphicWidth||0,height:c.__ecGraphicHeight||0};s.positionElement(l,a,d,null,{hv:a.hv,boundingMode:a.bounding})}}},_clear:function(){var e=this._elMap;e.each(function(t){d(t,e)}),this._elMap=o.createHashMap()},dispose:function(){this._clear()}})},25761:function(e,t,i){i(31372),i(46576),i(57498)},31372:function(e,t,i){var n=i(47475),o=i(66023),r=i(76165);i(34087),i(95375),n.extendComponentView({type:"grid",render:function(e,t){this.group.removeAll(),e.get("show")&&this.group.add(new r.Rect({shape:e.coordinateSystem.getRect(),style:o.defaults({fill:e.get("backgroundColor")},e.getItemStyle()),silent:!0,z2:-1}))}}),n.registerPreprocessor(function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})})},40844:function(e,t,i){i(38603).__DEV__;var n=i(66023),o=i(56177),r=i(76165),a=i(75319),s=i(13593),l=n.curry,c=n.each,d=n.map,u=Math.min,h=Math.max,p=Math.pow,f="globalPan",g={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},m={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},v={brushStyle:{lineWidth:2,stroke:"rgba(0,0,0,0.3)",fill:"rgba(0,0,0,0.1)"},transformable:!0,brushMode:"single",removeOnClick:!1},b=0;function y(e){o.call(this),this._zr=e,this.group=new r.Group,this._brushType,this._brushOption,this._panels,this._track=[],this._dragging,this._covers=[],this._creatingCover,this._creatingPanel,this._enableGlobalPan,this._uid="brushController_"+b++,this._handlers={},c(G,function(e,t){this._handlers[t]=n.bind(e,this)},this)}function w(e,t){var i=j[t.brushType].createCover(e,t);return i.__brushOption=t,S(i,t),e.group.add(i),i}function _(e,t){var i=k(t);return i.endCreating&&(i.endCreating(e,t),S(t,t.__brushOption)),t}function x(e,t){var i=t.__brushOption;k(t).updateCoverShape(e,t,i.range,i)}function S(e,t){var i=t.z;null==i&&(i=1e4),e.traverse(function(e){e.z=i,e.z2=i})}function C(e,t){k(t).updateCommon(e,t),x(e,t)}function k(e){return j[e.__brushOption.brushType]}function I(e,t,i){var n,o=e._panels;if(!o)return!0;var r=e._transform;return c(o,function(e){e.isTargetByCursor(t,i,r)&&(n=e)}),n}function A(e,t){var i=e._panels;if(!i)return!0;var n=t.__brushOption.panelId;return null==n||i[n]}function T(e){var t=e._covers,i=t.length;return c(t,function(t){e.group.remove(t)},e),t.length=0,!!i}function E(e,t){var i=d(e._covers,function(e){var t=e.__brushOption,i=n.clone(t.range);return{brushType:t.brushType,panelId:t.panelId,range:i}});e.trigger("brush",i,{isEnd:!!t.isEnd,removeOnClick:!!t.removeOnClick})}function R(e){var t=e.length-1;return t<0&&(t=0),[e[0],e[t]]}function D(e,t,i,n){var o=new r.Group;return o.add(new r.Rect({name:"main",style:P(i),silent:!0,draggable:!0,cursor:"move",drift:l(e,t,o,"nswe"),ondragend:l(E,t,{isEnd:!0})})),c(n,function(i){o.add(new r.Rect({name:i,style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:l(e,t,o,i),ondragend:l(E,t,{isEnd:!0})}))}),o}function O(e,t,i,n){var o=n.brushStyle.lineWidth||0,r=h(o,6),a=i[0][0],s=i[1][0],l=a-o/2,c=s-o/2,d=i[0][1],u=i[1][1],p=d-r+o/2,f=u-r+o/2,g=d-a,m=u-s,v=g+o,b=m+o;N(e,t,"main",a,s,g,m),n.transformable&&(N(e,t,"w",l,c,r,b),N(e,t,"e",p,c,r,b),N(e,t,"n",l,c,v,r),N(e,t,"s",l,f,v,r),N(e,t,"nw",l,c,r,r),N(e,t,"ne",p,c,r,r),N(e,t,"sw",l,f,r,r),N(e,t,"se",p,f,r,r))}function M(e,t){var i=t.__brushOption,n=i.transformable,o=t.childAt(0);o.useStyle(P(i)),o.attr({silent:!n,cursor:n?"move":"default"}),c(["w","e","n","s","se","sw","ne","nw"],function(i){var o=t.childOfName(i),a=function e(t,i){if(i.length>1){var n=[e(t,(i=i.split(""))[0]),e(t,i[1])];return("e"===n[0]||"w"===n[0])&&n.reverse(),n.join("")}var n=r.transformDirection({w:"left",e:"right",n:"top",s:"bottom"}[i],r.getTransform(t.group));return({left:"w",right:"e",top:"n",bottom:"s"})[n]}(e,i);o&&o.attr({silent:!n,invisible:!n,cursor:n?m[a]+"-resize":null})})}function N(e,t,i,n,o,r,a){var s,l,c,d=t.childOfName(i);d&&d.setShape((l=u((s=z(e,t,[[n,o],[n+r,o+a]]))[0][0],s[1][0]),{x:l,y:c=u(s[0][1],s[1][1]),width:h(s[0][0],s[1][0])-l,height:h(s[0][1],s[1][1])-c}))}function P(e){return n.defaults({strokeNoScale:!0},e.brushStyle)}function L(e,t,i,n){var o=[u(e,i),u(t,n)],r=[h(e,i),h(t,n)];return[[o[0],r[0]],[o[1],r[1]]]}function B(e,t,i,n,o,r,a,s){var l=n.__brushOption,d=e(l.range),u=V(i,r,a);c(o.split(""),function(e){var t=g[e];d[t[0]][t[1]]+=u[t[0]]}),l.range=t(L(d[0][0],d[1][0],d[0][1],d[1][1])),C(i,n),E(i,{isEnd:!1})}function F(e,t,i,n,o){var r=t.__brushOption.range,a=V(e,i,n);c(r,function(e){e[0]+=a[0],e[1]+=a[1]}),C(e,t),E(e,{isEnd:!1})}function V(e,t,i){var n=e.group,o=n.transformCoordToLocal(t,i),r=n.transformCoordToLocal(0,0);return[o[0]-r[0],o[1]-r[1]]}function z(e,t,i){var o=A(e,t);return o&&!0!==o?o.clipPath(i,e._transform):n.clone(i)}function H(e){var t=e.event;t.preventDefault&&t.preventDefault()}function W(e,t,i){return e.childOfName("main").contain(t,i)}function Y(e,t,i,o){var r,a=e._creatingCover,s=e._creatingPanel,l=e._brushOption;if(e._track.push(i.slice()),function(e){var t=e._track;if(!t.length)return!1;var i=t[t.length-1],n=t[0],o=i[0]-n[0],r=i[1]-n[1];return p(o*o+r*r,.5)>6}(e)||a){if(s&&!a){"single"===l.brushMode&&T(e);var c=n.clone(l);c.brushType=U(c.brushType,s),c.panelId=!0===s?null:s.panelId,a=e._creatingCover=w(e,c),e._covers.push(a)}if(a){var d=j[U(e._brushType,s)];a.__brushOption.range=d.getCreatingRange(z(e,a,e._track)),o&&(_(e,a),d.updateCommon(e,a)),x(e,a),r={isEnd:o}}}else o&&"single"===l.brushMode&&l.removeOnClick&&I(e,t,i)&&T(e)&&(r={isEnd:o,removeOnClick:!0});return r}function U(e,t){return"auto"===e?t.defaultBrushType:e}y.prototype={constructor:y,enableBrush:function(e){var t,i,o,r,s;return this._brushType&&(t=this,i=t._zr,a.release(i,f,t._uid),c(t._handlers,function(e,t){i.off(t,e)}),t._brushType=t._brushOption=null),e.brushType&&(o=this,r=e,s=o._zr,o._enableGlobalPan||a.take(s,f,o._uid),c(o._handlers,function(e,t){s.on(t,e)}),o._brushType=r.brushType,o._brushOption=n.merge(n.clone(v),r,!0)),this},setPanels:function(e){if(e&&e.length){var t=this._panels={};n.each(e,function(e){t[e.panelId]=n.clone(e)})}else this._panels=null;return this},mount:function(e){e=e||{},this._enableGlobalPan=e.enableGlobalPan;var t=this.group;return this._zr.add(t),t.attr({position:e.position||[0,0],rotation:e.rotation||0,scale:e.scale||[1,1]}),this._transform=t.getLocalTransform(),this},eachCover:function(e,t){c(this._covers,e,t)},updateCovers:function(e){e=n.map(e,function(e){return n.merge(n.clone(v),e,!0)});var t=this._covers,i=this._covers=[],o=this,r=this._creatingCover;return new s(t,e,function(e,t){return a(e.__brushOption,t)},a).add(l).update(l).remove(function(e){t[e]!==r&&o.group.remove(t[e])}).execute(),this;function a(e,t){return(null!=e.id?e.id:"\0-brush-index-"+t)+"-"+e.brushType}function l(n,a){var s=e[n];if(null!=a&&t[a]===r)i[n]=t[a];else{var l=i[n]=null!=a?(t[a].__brushOption=s,t[a]):_(o,w(o,s));C(o,l)}}},unmount:function(){return this.enableBrush(!1),T(this),this._zr.remove(this.group),this},dispose:function(){this.unmount(),this.off()}},n.mixin(y,o);var G={mousedown:function(e){if(this._dragging)Z.call(this,e);else if(!e.target||!e.target.draggable){H(e);var t=this.group.transformCoordToLocal(e.offsetX,e.offsetY);this._creatingCover=null,(this._creatingPanel=I(this,e,t))&&(this._dragging=!0,this._track=[t.slice()])}},mousemove:function(e){var t=this.group.transformCoordToLocal(e.offsetX,e.offsetY);if(!function(e,t,i){if(e._brushType){var n=e._zr,o=e._covers,r=I(e,t,i);if(!e._dragging)for(var a=0;a<o.length;a++){var s=o[a].__brushOption;if(r&&(!0===r||s.panelId===r.panelId)&&j[s.brushType].contain(o[a],i[0],i[1]))return}r&&n.setCursorStyle("crosshair")}}(this,e,t),this._dragging){H(e);var i=Y(this,e,t,!1);i&&E(this,i)}},mouseup:Z};function Z(e){if(this._dragging){H(e);var t=this.group.transformCoordToLocal(e.offsetX,e.offsetY),i=Y(this,e,t,!0);this._dragging=!1,this._track=[],this._creatingCover=null,i&&E(this,i)}}var j={lineX:q(0),lineY:q(1),rect:{createCover:function(e,t){return D(l(B,function(e){return e},function(e){return e}),e,t,["w","e","n","s","se","sw","ne","nw"])},getCreatingRange:function(e){var t=R(e);return L(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(e,t,i,n){O(e,t,i,n)},updateCommon:M,contain:W},polygon:{createCover:function(e,t){var i=new r.Group;return i.add(new r.Polyline({name:"main",style:P(t),silent:!0})),i},getCreatingRange:function(e){return e},endCreating:function(e,t){t.remove(t.childAt(0)),t.add(new r.Polygon({name:"main",draggable:!0,drift:l(F,e,t),ondragend:l(E,e,{isEnd:!0})}))},updateCoverShape:function(e,t,i,n){t.childAt(0).setShape({points:z(e,t,i)})},updateCommon:M,contain:W}};function q(e){return{createCover:function(t,i){return D(l(B,function(t){var i=[t,[0,100]];return e&&i.reverse(),i},function(t){return t[e]}),t,i,[["w","e"],["n","s"]][e])},getCreatingRange:function(t){var i=R(t);return[u(i[0][e],i[1][e]),h(i[0][e],i[1][e])]},updateCoverShape:function(t,i,n,o){var r,a=A(t,i);if(!0!==a&&a.getLinearBrushOtherExtent)r=a.getLinearBrushOtherExtent(e,t._transform);else{var s=t._zr;r=[0,[s.getWidth(),s.getHeight()][1-e]]}var l=[n,r];e&&l.reverse(),O(t,i,l,o)},updateCommon:M,contain:W}}e.exports=y},30170:function(e,t,i){i(38603).__DEV__;var n=i(66023),o=i(76165),r=i(70018),a=i(58143),s=n.each,l=n.indexOf,c=n.curry,d=["dataToPoint","pointToData"],u=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"];function h(e,t,i){var n=this._targetInfoList=[],o={},r=g(t,e);s(m,function(e,t){(!i||!i.include||l(i.include,t)>=0)&&e(r,n,o)})}var p=h.prototype;function f(e){return e[0]>e[1]&&e.reverse(),e}function g(e,t){return r.parseFinder(e,t,{includeMainTypes:u})}p.setOutputRanges=function(e,t){this.matchOutputRanges(e,t,function(e,t,i){if((e.coordRanges||(e.coordRanges=[])).push(t),!e.coordRange){e.coordRange=t;var n=y[e.brushType](0,i,t);e.__rangeOffset={offset:_[e.brushType](n.values,e.range,[1,1]),xyMinMax:n.xyMinMax}}})},p.matchOutputRanges=function(e,t,i){s(e,function(e){var o=this.findTargetInfo(e,t);o&&!0!==o&&n.each(o.coordSyses,function(n){var o=y[e.brushType](1,n,e.range);i(e,o.values,n,t)})},this)},p.setInputRanges=function(e,t){s(e,function(e){var i=this.findTargetInfo(e,t);if(e.range=e.range||[],i&&!0!==i){e.panelId=i.panelId;var n,o,r,a,s,l=y[e.brushType](0,i.coordSys,e.coordRange),c=e.__rangeOffset;e.range=c?_[e.brushType](l.values,c.offset,(n=l.xyMinMax,o=c.xyMinMax,r=S(n),a=S(o),isNaN((s=[r[0]/a[0],r[1]/a[1]])[0])&&(s[0]=1),isNaN(s[1])&&(s[1]=1),s)):l.values}},this)},p.makePanelOpts=function(e,t){return n.map(this._targetInfoList,function(i){var n=i.getPanelRect();return{panelId:i.panelId,defaultBrushType:t&&t(i),clipPath:a.makeRectPanelClipPath(n),isTargetByCursor:a.makeRectIsTargetByCursor(n,e,i.coordSysModel),getLinearBrushOtherExtent:a.makeLinearBrushOtherExtent(n)}})},p.controlSeries=function(e,t,i){var n=this.findTargetInfo(e,i);return!0===n||n&&l(n.coordSyses,t.coordinateSystem)>=0},p.findTargetInfo=function(e,t){for(var i=this._targetInfoList,n=g(t,e),o=0;o<i.length;o++){var r=i[o],a=e.panelId;if(a){if(r.panelId===a)return r}else for(var o=0;o<v.length;o++)if(v[o](n,r))return r}return!0};var m={grid:function(e,t){var i=e.xAxisModels,o=e.yAxisModels,r=e.gridModels,a=n.createHashMap(),c={},d={};(i||o||r)&&(s(i,function(e){var t=e.axis.grid.model;a.set(t.id,t),c[t.id]=!0}),s(o,function(e){var t=e.axis.grid.model;a.set(t.id,t),d[t.id]=!0}),s(r,function(e){a.set(e.id,e),c[e.id]=!0,d[e.id]=!0}),a.each(function(e){var n=e.coordinateSystem,r=[];s(n.getCartesians(),function(e,t){(l(i,e.getAxis("x").model)>=0||l(o,e.getAxis("y").model)>=0)&&r.push(e)}),t.push({panelId:"grid--"+e.id,gridModel:e,coordSysModel:e,coordSys:r[0],coordSyses:r,getPanelRect:b.grid,xAxisDeclared:c[e.id],yAxisDeclared:d[e.id]})}))},geo:function(e,t){s(e.geoModels,function(e){var i=e.coordinateSystem;t.push({panelId:"geo--"+e.id,geoModel:e,coordSysModel:e,coordSys:i,coordSyses:[i],getPanelRect:b.geo})})}},v=[function(e,t){var i=e.xAxisModel,n=e.yAxisModel,o=e.gridModel;return!o&&i&&(o=i.axis.grid.model),!o&&n&&(o=n.axis.grid.model),o&&o===t.gridModel},function(e,t){var i=e.geoModel;return i&&i===t.geoModel}],b={grid:function(){return this.coordSys.grid.getRect().clone()},geo:function(){var e=this.coordSys,t=e.getBoundingRect().clone();return t.applyTransform(o.getTransform(e)),t}},y={lineX:c(w,0),lineY:c(w,1),rect:function(e,t,i){var n=t[d[e]]([i[0][0],i[1][0]]),o=t[d[e]]([i[0][1],i[1][1]]),r=[f([n[0],o[0]]),f([n[1],o[1]])];return{values:r,xyMinMax:r}},polygon:function(e,t,i){var o=[[1/0,-1/0],[1/0,-1/0]];return{values:n.map(i,function(i){var n=t[d[e]](i);return o[0][0]=Math.min(o[0][0],n[0]),o[1][0]=Math.min(o[1][0],n[1]),o[0][1]=Math.max(o[0][1],n[0]),o[1][1]=Math.max(o[1][1],n[1]),n}),xyMinMax:o}}};function w(e,t,i,o){var r=i.getAxis(["x","y"][e]),a=f(n.map([0,1],function(e){return t?r.coordToData(r.toLocalCoord(o[e])):r.toGlobalCoord(r.dataToCoord(o[e]))})),s=[];return s[e]=a,s[1-e]=[NaN,NaN],{values:a,xyMinMax:s}}var _={lineX:c(x,0),lineY:c(x,1),rect:function(e,t,i){return[[e[0][0]-i[0]*t[0][0],e[0][1]-i[0]*t[0][1]],[e[1][0]-i[1]*t[1][0],e[1][1]-i[1]*t[1][1]]]},polygon:function(e,t,i){return n.map(e,function(e,n){return[e[0]-i[0]*t[n][0],e[1]-i[1]*t[n][1]]})}};function x(e,t,i,n){return[t[0]-n[e]*i[0],t[1]-n[e]*i[1]]}function S(e){return e?[e[0][1]-e[0][0],e[1][1]-e[1][0]]:[NaN,NaN]}e.exports=h},88142:function(e,t,i){var n=i(66023),o=i(84275),r=i(75398),a=i(56694).onIrrelevantElement,s=i(76165),l=i(70351),c=i(79426).getUID;function d(e,t){var i=e.getItemStyle(),n=e.get("areaColor");return null!=n&&(i.fill=n),i}function u(e,t){t.eachChild(function(t){n.each(t.__regions,function(i){t.trigger(e.isSelected(i.name)?"emphasis":"normal")})})}function h(e,t){var i=new s.Group;this.uid=c("ec_map_draw"),this._controller=new o(e.getZr()),this._controllerHost={target:t?i:null},this.group=i,this._updateGroup=t,this._mouseDownFlag,this._mapName,this._initialized,i.add(this._regionsGroup=new s.Group),i.add(this._backgroundGroup=new s.Group)}h.prototype={constructor:h,draw:function(e,t,i,o,r){var a,l="geo"===e.mainType,c=e.getData&&e.getData();l&&t.eachComponent({mainType:"series",subType:"map"},function(t){c||t.getHostGeoModel()!==e||(c=t.getData())});var h=e.coordinateSystem;this._updateBackground(h);var p=this._regionsGroup,f=this.group,g=h.scale,m={position:h.position,scale:g};!p.childAt(0)||r?f.attr(m):s.updateProps(f,m,e),p.removeAll();var v=["itemStyle"],b=["emphasis","itemStyle"],y=["label"],w=["emphasis","label"],_=n.createHashMap();n.each(h.regions,function(t){var i=_.get(t.name)||_.set(t.name,new s.Group),o=new s.CompoundPath({shape:{paths:[]}});i.add(o);var r=e.getRegionModel(t.name)||e,a=r.getModel(v),u=r.getModel(b),h=d(a,g),f=d(u,g),m=r.getModel(y),x=r.getModel(w);if(c){T=c.indexOfName(t.name);var S=c.getItemVisual(T,"color",!0);S&&(h.fill=S)}n.each(t.geometries,function(e){if("polygon"===e.type){o.shape.paths.push(new s.Polygon({shape:{points:e.exterior}}));for(var t=0;t<(e.interiors?e.interiors.length:0);t++)o.shape.paths.push(new s.Polygon({shape:{points:e.interiors[t]}}))}}),o.setStyle(h),o.style.strokeNoScale=!0,o.culling=!0;var C=m.get("show"),k=x.get("show"),I=c&&isNaN(c.get(c.mapDimension("value"),T)),A=c&&c.getItemLayout(T);if(l||I&&(C||k)||A&&A.showLabel){var T,E,R=l?t.name:T;(!c||T>=0)&&(E=e);var D=new s.Text({position:t.center.slice(),scale:[1/g[0],1/g[1]],z2:10,silent:!0});s.setLabelStyle(D.style,D.hoverStyle={},m,x,{labelFetcher:E,labelDataIndex:R,defaultText:t.name,useInsideStyle:!1},{textAlign:"center",textVerticalAlign:"middle"}),i.add(D)}if(c)c.setItemGraphicEl(T,i);else{var r=e.getRegionModel(t.name);o.eventData={componentType:"geo",componentIndex:e.componentIndex,geoIndex:e.componentIndex,name:t.name,region:r&&r.option||{}}}(i.__regions||(i.__regions=[])).push(t),s.setHoverStyle(i,f,{hoverSilentOnTouch:!!e.get("selectedMode")}),p.add(i)}),this._updateController(e,t,i),a=this,p.off("click"),p.off("mousedown"),e.get("selectedMode")&&(p.on("mousedown",function(){a._mouseDownFlag=!0}),p.on("click",function(t){if(a._mouseDownFlag){a._mouseDownFlag=!1;for(var r=t.target;!r.__regions;)r=r.parent;if(r){var s={type:("geo"===e.mainType?"geo":"map")+"ToggleSelect",batch:n.map(r.__regions,function(e){return{name:e.name,from:o.uid}})};s[e.mainType+"Id"]=e.id,i.dispatchAction(s),u(e,p)}}})),u(e,p)},remove:function(){this._regionsGroup.removeAll(),this._backgroundGroup.removeAll(),this._controller.dispose(),this._mapName&&l.removeGraphic(this._mapName,this.uid),this._mapName=null,this._controllerHost={}},_updateBackground:function(e){var t=e.map;this._mapName!==t&&n.each(l.makeGraphic(t,this.uid),function(e){this._backgroundGroup.add(e)},this),this._mapName=t},_updateController:function(e,t,i){var o=e.coordinateSystem,s=this._controller,l=this._controllerHost;l.zoomLimit=e.get("scaleLimit"),l.zoom=o.getZoom(),s.enable(e.get("roam")||!1);var c=e.mainType;function d(){var t={type:"geoRoam",componentType:c};return t[c+"Id"]=e.id,t}s.off("pan").on("pan",function(e){this._mouseDownFlag=!1,r.updateViewOnPan(l,e.dx,e.dy),i.dispatchAction(n.extend(d(),{dx:e.dx,dy:e.dy}))},this),s.off("zoom").on("zoom",function(e){if(this._mouseDownFlag=!1,r.updateViewOnZoom(l,e.scale,e.originX,e.originY),i.dispatchAction(n.extend(d(),{zoom:e.scale,originX:e.originX,originY:e.originY})),this._updateGroup){var t=this.group.scale;this._regionsGroup.traverse(function(e){"text"===e.type&&e.attr("scale",[1/t[0],1/t[1]])})}},this),s.setPointerChecker(function(t,n,r){return o.getViewRectAfterRoam().contain(n,r)&&!a(t,i,e)})}},e.exports=h},84275:function(e,t,i){var n=i(66023),o=i(56177),r=i(3006),a=i(75319);function s(e){this.pointerChecker,this._zr=e,this._opt={};var t=n.bind,i=t(l,this),r=t(c,this),a=t(d,this),s=t(u,this),p=t(h,this);o.call(this),this.setPointerChecker=function(e){this.pointerChecker=e},this.enable=function(t,o){this.disable(),this._opt=n.defaults(n.clone(o)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),null==t&&(t=!0),(!0===t||"move"===t||"pan"===t)&&(e.on("mousedown",i),e.on("mousemove",r),e.on("mouseup",a)),(!0===t||"scale"===t||"zoom"===t)&&(e.on("mousewheel",s),e.on("pinch",p))},this.disable=function(){e.off("mousedown",i),e.off("mousemove",r),e.off("mouseup",a),e.off("mousewheel",s),e.off("pinch",p)},this.dispose=this.disable,this.isDragging=function(){return this._dragging},this.isPinching=function(){return this._pinching}}function l(e){if(!r.isMiddleOrRightButtonOnMouseUpDown(e)&&(!e.target||!e.target.draggable)){var t=e.offsetX,i=e.offsetY;this.pointerChecker&&this.pointerChecker(e,t,i)&&(this._x=t,this._y=i,this._dragging=!0)}}function c(e){if(!(!this._dragging||!g("moveOnMouseMove",e,this._opt)||"pinch"===e.gestureEvent||a.isTaken(this._zr,"globalPan"))){var t=e.offsetX,i=e.offsetY,n=this._x,o=this._y;this._x=t,this._y=i,this._opt.preventDefaultMouseMove&&r.stop(e.event),f(this,"pan","moveOnMouseMove",e,{dx:t-n,dy:i-o,oldX:n,oldY:o,newX:t,newY:i})}}function d(e){r.isMiddleOrRightButtonOnMouseUpDown(e)||(this._dragging=!1)}function u(e){var t=g("zoomOnMouseWheel",e,this._opt),i=g("moveOnMouseWheel",e,this._opt),n=e.wheelDelta,o=Math.abs(n),r=e.offsetX,a=e.offsetY;if(0!==n&&(t||i)){if(t){var s=o>3?1.4:o>1?1.2:1.1;p(this,"zoom","zoomOnMouseWheel",e,{scale:n>0?s:1/s,originX:r,originY:a})}if(i){var l=Math.abs(n);p(this,"scrollMove","moveOnMouseWheel",e,{scrollDelta:(n>0?1:-1)*(l>3?.4:l>1?.15:.05),originX:r,originY:a})}}}function h(e){if(!a.isTaken(this._zr,"globalPan")){var t=e.pinchScale>1?1.1:1/1.1;p(this,"zoom",null,e,{scale:t,originX:e.pinchX,originY:e.pinchY})}}function p(e,t,i,n,o){e.pointerChecker&&e.pointerChecker(n,o.originX,o.originY)&&(r.stop(n.event),f(e,t,i,n,o))}function f(e,t,i,o,r){r.isAvailableBehavior=n.bind(g,null,i,o),e.trigger(t,r)}function g(e,t,i){var o=i[e];return!e||o&&(!n.isString(o)||t.event[o+"Key"])}n.mixin(s,o),e.exports=s},58143:function(e,t,i){var n=i(71497),o=i(56694).onIrrelevantElement,r=i(76165);function a(e){return n.create(e)}t.makeRectPanelClipPath=function(e){return e=a(e),function(t,i){return r.clipPointsByRect(t,e)}},t.makeLinearBrushOtherExtent=function(e,t){return e=a(e),function(i){var n=null!=t?t:i,o=n?e.width:e.height,r=n?e.x:e.y;return[r,r+(o||0)]}},t.makeRectIsTargetByCursor=function(e,t,i){return e=a(e),function(n,r,a){return e.contain(r[0],r[1])&&!o(n,t,i)}}},56694:function(e,t){var i={axisPointer:1,tooltip:1,brush:1};t.onIrrelevantElement=function(e,t,n){var o=t.getComponentByElement(e.topTarget),r=o&&o.coordinateSystem;return o&&o!==n&&!i[o.mainType]&&r&&r.model!==n}},75319:function(e,t,i){var n=i(47475),o="\0_ec_interaction_mutex";function r(e){return e[o]||(e[o]={})}n.registerAction({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},function(){}),t.take=function(e,t,i){r(e)[t]=i},t.release=function(e,t,i){var n=r(e);n[t]===i&&(n[t]=null)},t.isTaken=function(e,t){return!!r(e)[t]}},81166:function(e,t,i){var n=i(68006),o=n.getLayoutRect,r=n.box,a=n.positionElement,s=i(20438),l=i(76165);t.layout=function(e,t,i){var n=t.getBoxLayoutParams(),s=t.get("padding"),l={width:i.getWidth(),height:i.getHeight()},c=o(n,l,s);r(t.get("orient"),e,t.get("itemGap"),c.width,c.height),a(e,n,l,s)},t.makeBackground=function(e,t){var i=s.normalizeCssArray(t.get("padding")),n=t.getItemStyle(["color","opacity"]);n.fill=t.get("backgroundColor");var e=new l.Rect({shape:{x:e.x-i[3],y:e.y-i[0],width:e.width+i[1]+i[3],height:e.height+i[0]+i[2],r:t.get("borderRadius")},style:n,silent:!0,z2:-1});return e}},75398:function(e,t){t.updateViewOnPan=function(e,t,i){var n=e.target,o=n.position;o[0]+=t,o[1]+=i,n.dirty()},t.updateViewOnZoom=function(e,t,i,n){var o=e.target,r=e.zoomLimit,a=o.position,s=o.scale,l=e.zoom=e.zoom||1;if(l*=t,r){var c=r.min||0;l=Math.max(Math.min(r.max||1/0,l),c)}var d=l/e.zoom;e.zoom=l,a[0]-=(i-a[0])*(d-1),a[1]-=(n-a[1])*(d-1),s[0]*=d,s[1]*=d,o.dirty()}},33601:function(e,t,i){var n=i(66023);e.exports={updateSelectedMap:function(e){this._targetList=n.isArray(e)?e.slice():[],this._selectTargetMap=n.reduce(e||[],function(e,t){return e.set(t.name,t),e},n.createHashMap())},select:function(e,t){var i=null!=t?this._targetList[t]:this._selectTargetMap.get(e);"single"===this.get("selectedMode")&&this._selectTargetMap.each(function(e){e.selected=!1}),i&&(i.selected=!0)},unSelect:function(e,t){var i=null!=t?this._targetList[t]:this._selectTargetMap.get(e);i&&(i.selected=!1)},toggleSelected:function(e,t){var i=null!=t?this._targetList[t]:this._selectTargetMap.get(e);if(null!=i)return this[i.selected?"unSelect":"select"](e,t),i.selected},isSelected:function(e,t){var i=null!=t?this._targetList[t]:this._selectTargetMap.get(e);return i&&i.selected}}},28542:function(e){function t(e,t){var i=e[t]-e[1-t];return{span:Math.abs(i),sign:i>0?-1:i<0?1:t?-1:1}}function i(e,t){return Math.min(t[1],Math.max(t[0],e))}e.exports=function(e,n,o,r,a,s){n[0]=i(n[0],o),n[1]=i(n[1],o),e=e||0;var l=o[1]-o[0];null!=a&&(a=i(a,[0,l])),null!=s&&(s=Math.max(s,null!=a?a:0)),"all"===r&&(a=s=Math.abs(n[1]-n[0]),r=0);var c=t(n,r);n[r]+=e;var d=a||0,u=o.slice();c.sign<0?u[0]+=d:u[1]-=d,n[r]=i(n[r],u);var h=t(n,r);null!=a&&(h.sign!==c.sign||h.span<a)&&(n[1-r]=n[r]+c.sign*a);var h=t(n,r);return null!=s&&h.span>s&&(n[1-r]=n[r]+h.sign*s),n}},87536:function(e,t,i){var n=i(47475);i(49114),i(53597),i(25668);var o=i(98663),r=i(76056);n.registerProcessor(o),r.registerSubTypeDefaulter("legend",function(){return"plain"})},49114:function(e,t,i){var n=i(47475),o=i(66023),r=i(27611),a=i(70018).isNameSpecified,s=n.extendComponentModel({type:"legend.plain",dependencies:["series"],layoutMode:{type:"box",ignoreSize:!0},init:function(e,t,i){this.mergeDefaultAndTheme(e,i),e.selected=e.selected||{}},mergeOption:function(e){s.superCall(this,"mergeOption",e)},optionUpdated:function(){this._updateData(this.ecModel);var e=this._data;if(e[0]&&"single"===this.get("selectedMode")){for(var t=!1,i=0;i<e.length;i++){var n=e[i].get("name");if(this.isSelected(n)){this.select(n),t=!0;break}}t||this.select(e[0].get("name"))}},_updateData:function(e){var t=[],i=[];e.eachRawSeries(function(n){var o,r=n.name;if(i.push(r),n.legendDataProvider){var s=n.legendDataProvider(),l=s.mapArray(s.getName);e.isSeriesFiltered(n)||(i=i.concat(l)),l.length?t=t.concat(l):o=!0}else o=!0;o&&a(n)&&t.push(n.name)}),this._availableNames=i;var n=this.get("data")||t,s=o.map(n,function(e){return("string"==typeof e||"number"==typeof e)&&(e={name:e}),new r(e,this,this.ecModel)},this);this._data=s},getData:function(){return this._data},select:function(e){var t=this.option.selected;if("single"===this.get("selectedMode")){var i=this._data;o.each(i,function(e){t[e.get("name")]=!1})}t[e]=!0},unSelect:function(e){"single"!==this.get("selectedMode")&&(this.option.selected[e]=!1)},toggleSelected:function(e){var t=this.option.selected;t.hasOwnProperty(e)||(t[e]=!0),this[t[e]?"unSelect":"select"](e)},isSelected:function(e){var t=this.option.selected;return!(t.hasOwnProperty(e)&&!t[e])&&o.indexOf(this._availableNames,e)>=0},defaultOption:{zlevel:0,z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,inactiveColor:"#ccc",textStyle:{color:"#333"},selectedMode:!0,tooltip:{show:!1}}});e.exports=s},25668:function(e,t,i){i(38603).__DEV__;var n=i(47475),o=i(66023),r=i(87557).createSymbol,a=i(76165),s=i(81166).makeBackground,l=i(68006),c=o.curry,d=o.each,u=a.Group;function h(e,t){t.dispatchAction({type:"legendToggleSelect",name:e})}function p(e,t,i,n){var o=i.getZr().storage.getDisplayList()[0];o&&o.useHoverLayer||i.dispatchAction({type:"highlight",seriesName:e,name:t,excludeSeriesId:n})}function f(e,t,i,n){var o=i.getZr().storage.getDisplayList()[0];o&&o.useHoverLayer||i.dispatchAction({type:"downplay",seriesName:e,name:t,excludeSeriesId:n})}e.exports=n.extendComponentView({type:"legend.plain",newlineDisabled:!1,init:function(){this.group.add(this._contentGroup=new u),this._backgroundEl,this._isFirstRender=!0},getContentGroup:function(){return this._contentGroup},render:function(e,t,i){var n=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),e.get("show",!0)){var r=e.get("align");r&&"auto"!==r||(r="right"===e.get("left")&&"vertical"===e.get("orient")?"right":"left"),this.renderInner(r,e,t,i);var a=e.getBoxLayoutParams(),c={width:i.getWidth(),height:i.getHeight()},d=e.get("padding"),u=l.getLayoutRect(a,c,d),h=this.layoutInner(e,r,u,n),p=l.getLayoutRect(o.defaults({width:h.width,height:h.height},a),c,d);this.group.attr("position",[p.x-h.x,p.y-h.y]),this.group.add(this._backgroundEl=s(h,e))}},resetInner:function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl)},renderInner:function(e,t,i,n){var r=this.getContentGroup(),a=o.createHashMap(),s=t.get("selectedMode"),l=[];i.eachRawSeries(function(e){e.get("legendHoverLink")||l.push(e.id)}),d(t.getData(),function(o,d){var g=o.get("name");if(!this.newlineDisabled&&(""===g||"\n"===g))return void r.add(new u({newline:!0}));var m=i.getSeriesByName(g)[0];if(!a.get(g))if(m){var v=m.getData(),b=v.getVisual("color");"function"==typeof b&&(b=b(m.getDataParams(0)));var y=v.getVisual("legendSymbol")||"roundRect",w=v.getVisual("symbol");this._createItem(g,d,o,t,y,w,e,b,s).on("click",c(h,g,n)).on("mouseover",c(p,m.name,null,n,l)).on("mouseout",c(f,m.name,null,n,l)),a.set(g,!0)}else i.eachRawSeries(function(i){if(!a.get(g)&&i.legendDataProvider){var r=i.legendDataProvider(),u=r.indexOfName(g);if(!(u<0)){var m=r.getItemVisual(u,"color");this._createItem(g,d,o,t,"roundRect",null,e,m,s).on("click",c(h,g,n)).on("mouseover",c(p,null,g,n,l)).on("mouseout",c(f,null,g,n,l)),a.set(g,!0)}}},this)},this)},_createItem:function(e,t,i,n,s,l,c,d,h){var p=n.get("itemWidth"),f=n.get("itemHeight"),g=n.get("inactiveColor"),m=n.get("symbolKeepAspect"),v=n.isSelected(e),b=new u,y=i.getModel("textStyle"),w=i.get("icon"),_=i.getModel("tooltip"),x=_.parentModel;if(s=w||s,b.add(r(s,0,0,p,f,v?d:g,null==m||m)),!w&&l&&(l!==s||"none"===l)){var S=.8*f;"none"===l&&(l="circle"),b.add(r(l,(p-S)/2,(f-S)/2,S,S,v?d:g,null==m||m))}var C=n.get("formatter"),k=e;"string"==typeof C&&C?k=C.replace("{name}",null!=e?e:""):"function"==typeof C&&(k=C(e)),b.add(new a.Text({style:a.setTextStyle({},y,{text:k,x:"left"===c?p+5:-5,y:f/2,textFill:v?y.getTextColor():g,textAlign:c,textVerticalAlign:"middle"})}));var I=new a.Rect({shape:b.getBoundingRect(),invisible:!0,tooltip:_.get("show")?o.extend({content:e,formatter:x.get("formatter",!0)||function(){return e},formatterParams:{componentType:"legend",legendIndex:n.componentIndex,name:e,$vars:["name"]}},_.option):null});return b.add(I),b.eachChild(function(e){e.silent=!0}),I.silent=!h,this.getContentGroup().add(b),a.setHoverStyle(b),b.__legendDataIndex=t,b},layoutInner:function(e,t,i){var n=this.getContentGroup();l.box(e.get("orient"),n,e.get("itemGap"),i.width,i.height);var o=n.getBoundingRect();return n.attr("position",[-o.x,-o.y]),this.group.getBoundingRect()},remove:function(){this.getContentGroup().removeAll(),this._isFirstRender=!0}})},23511:function(e,t,i){var n=i(49114),o=i(68006),r=o.mergeLayoutParam,a=o.getLayoutParams,s=n.extend({type:"legend.scroll",setScrollDataIndex:function(e){this.option.scrollDataIndex=e},defaultOption:{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800},init:function(e,t,i,n){var o=a(e);s.superCall(this,"init",e,t,i,n),l(this,e,o)},mergeOption:function(e,t){s.superCall(this,"mergeOption",e,t),l(this,this.option,e)},getOrient:function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}}});function l(e,t,i){var n=e.getOrient(),o=[1,1];o[n.index]=0,r(t,i,{type:"box",ignoreSize:o})}e.exports=s},80403:function(e,t,i){var n=i(66023),o=i(76165),r=i(68006),a=i(25668),s=o.Group,l=["width","height"],c=["x","y"],d=a.extend({type:"legend.scroll",newlineDisabled:!0,init:function(){d.superCall(this,"init"),this._currentIndex=0,this.group.add(this._containerGroup=new s),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new s),this._showController},resetInner:function(){d.superCall(this,"resetInner"),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},renderInner:function(e,t,i,r){var a=this;d.superCall(this,"renderInner",e,t,i,r);var s=this._controllerGroup,l=t.get("pageIconSize",!0);n.isArray(l)||(l=[l,l]),u("pagePrev",0);var c=t.getModel("pageTextStyle");function u(e,i){var c=o.createIcon(t.get("pageIcons",!0)[t.getOrient().name][i],{onclick:n.bind(a._pageGo,a,e+"DataIndex",t,r)},{x:-l[0]/2,y:-l[1]/2,width:l[0],height:l[1]});c.name=e,s.add(c)}s.add(new o.Text({name:"pageText",style:{textFill:c.getTextColor(),font:c.getFont(),textVerticalAlign:"middle",textAlign:"center"},silent:!0})),u("pageNext",1)},layoutInner:function(e,t,i,a){var s=this.getContentGroup(),d=this._containerGroup,u=this._controllerGroup,h=e.getOrient().index,p=l[h],f=l[1-h],g=c[1-h];r.box(e.get("orient"),s,e.get("itemGap"),h?i.width:null,h?null:i.height),r.box("horizontal",u,e.get("pageButtonItemGap",!0));var m=s.getBoundingRect(),v=u.getBoundingRect(),b=this._showController=m[p]>i[p],y=[-m.x,-m.y];a||(y[h]=s.position[h]);var w=[0,0],_=[-v.x,-v.y],x=n.retrieve2(e.get("pageButtonGap",!0),e.get("itemGap",!0));b&&("end"===e.get("pageButtonPosition",!0)?_[h]+=i[p]-v[p]:w[h]+=v[p]+x),_[1-h]+=m[f]/2-v[f]/2,s.attr("position",y),d.attr("position",w),u.attr("position",_);var S=(this.group.getBoundingRect(),{x:0,y:0});if(S[p]=b?i[p]:m[p],S[f]=Math.max(m[f],v[f]),S[g]=Math.min(0,v[g]+_[1-h]),d.__rectSize=i[p],b){var C={x:0,y:0};C[p]=Math.max(i[p]-v[p]-x,0),C[f]=S[f],d.setClipPath(new o.Rect({shape:C})),d.__rectSize=C[p]}else u.eachChild(function(e){e.attr({invisible:!0,silent:!0})});var k=this._getPageInfo(e);return null!=k.pageIndex&&o.updateProps(s,{position:k.contentPosition},!!b&&e),this._updatePageInfoView(e,k),S},_pageGo:function(e,t,i){var n=this._getPageInfo(t)[e];null!=n&&i.dispatchAction({type:"legendScroll",scrollDataIndex:n,legendId:t.id})},_updatePageInfoView:function(e,t){var i=this._controllerGroup;n.each(["pagePrev","pageNext"],function(n){var o=null!=t[n+"DataIndex"],r=i.childOfName(n);r&&(r.setStyle("fill",o?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),r.cursor=o?"pointer":"default")});var o=i.childOfName("pageText"),r=e.get("pageFormatter"),a=t.pageIndex,s=null!=a?a+1:0,l=t.pageCount;o&&r&&o.setStyle("text",n.isString(r)?r.replace("{current}",s).replace("{total}",l):r({current:s,total:l}))},_getPageInfo:function(e){var t=e.get("scrollDataIndex",!0),i=this.getContentGroup(),n=this._containerGroup.__rectSize,o=e.getOrient().index,r=l[o],a=c[o],s=this._findTargetItemIndex(t),d=i.children(),u=d[s],h=d.length,p=+!!h,f={contentPosition:i.position.slice(),pageCount:p,pageIndex:p-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!u)return f;var g=w(u);f.contentPosition[o]=-g.s;for(var m=s+1,v=g,b=g,y=null;m<=h;++m)(!(y=w(d[m]))&&b.e>v.s+n||y&&!_(y,v.s))&&(v=b.i>v.i?b:y)&&(null==f.pageNextDataIndex&&(f.pageNextDataIndex=v.i),++f.pageCount),b=y;for(var m=s-1,v=g,b=g,y=null;m>=-1;--m)(!(y=w(d[m]))||!_(b,y.s))&&v.i<b.i&&(b=v,null==f.pagePrevDataIndex&&(f.pagePrevDataIndex=v.i),++f.pageCount,++f.pageIndex),v=y;return f;function w(e){if(e){var t=e.getBoundingRect(),i=t[a]+e.position[o];return{s:i,e:i+t[r],i:e.__legendDataIndex}}}function _(e,t){return e.e>=t&&e.s<=t+n}},_findTargetItemIndex:function(e){var t,i=this.getContentGroup();return this._showController?i.eachChild(function(i,n){i.__legendDataIndex===e&&(t=n)}):t=0,t}});e.exports=d},53597:function(e,t,i){var n=i(47475),o=i(66023);function r(e,t,i){var n,r={},a="toggleSelected"===e;return i.eachComponent("legend",function(i){a&&null!=n?i[n?"select":"unSelect"](t.name):(i[e](t.name),n=i.isSelected(t.name));var s=i.getData();o.each(s,function(e){var t=e.get("name");if("\n"!==t&&""!==t){var n=i.isSelected(t);r.hasOwnProperty(t)?r[t]=r[t]&&n:r[t]=n}})}),{name:t.name,selected:r}}n.registerAction("legendToggleSelect","legendselectchanged",o.curry(r,"toggleSelected")),n.registerAction("legendSelect","legendselected",o.curry(r,"select")),n.registerAction("legendUnSelect","legendunselected",o.curry(r,"unSelect"))},98663:function(e){e.exports=function(e){var t=e.findComponents({mainType:"legend"});t&&t.length&&e.filterSeries(function(e){for(var i=0;i<t.length;i++)if(!t[i].isSelected(e.name))return!1;return!0})}},36118:function(e,t,i){i(47475).registerAction("legendScroll","legendscroll",function(e,t){var i=e.scrollDataIndex;null!=i&&t.eachComponent({mainType:"legend",subType:"scroll",query:e},function(e){e.setScrollDataIndex(i)})})},69818:function(e,t,i){i(87536),i(23511),i(80403),i(36118)},65218:function(e,t,i){var n=i(47475);i(38349),i(32739),n.registerPreprocessor(function(e){e.markArea=e.markArea||{}})},41293:function(e,t,i){var n=i(47475);i(8326),i(9308),n.registerPreprocessor(function(e){e.markLine=e.markLine||{}})},35866:function(e,t,i){var n=i(47475);i(26982),i(99238),n.registerPreprocessor(function(e){e.markPoint=e.markPoint||{}})},38349:function(e,t,i){e.exports=i(93277).extend({type:"markArea",defaultOption:{zlevel:0,z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}}})},32739:function(e,t,i){var n=i(66023),o=i(53453),r=i(90942),a=i(98763),s=i(76165),l=i(83976),c=i(40103),d=function(e,t,i,o){var r=l.dataTransform(e,o[0]),a=l.dataTransform(e,o[1]),s=n.retrieve,c=r.coord,d=a.coord;c[0]=s(c[0],-1/0),c[1]=s(c[1],-1/0),d[0]=s(d[0],1/0),d[1]=s(d[1],1/0);var u=n.mergeAll([{},r,a]);return u.coord=[r.coord,a.coord],u.x0=r.x,u.y0=r.y,u.x1=a.x,u.y1=a.y,u};function u(e){return!isNaN(e)&&!isFinite(e)}function h(e,t,i,n){var o=1-e;return u(t[o])&&u(i[o])}function p(e,t){var i=t.coord[0],n=t.coord[1];return!!("cartesian2d"===e.type&&i&&n&&(h(1,i,n,e)||h(0,i,n,e)))||l.dataFilter(e,{coord:i,x:t.x0,y:t.y0})||l.dataFilter(e,{coord:n,x:t.x1,y:t.y1})}function f(e,t,i,n,o){var r,s=n.coordinateSystem,l=e.getItemModel(t),c=a.parsePercent(l.get(i[0]),o.getWidth()),d=a.parsePercent(l.get(i[1]),o.getHeight());if(isNaN(c)||isNaN(d)){if(n.getMarkerPosition)r=n.getMarkerPosition(e.getValues(i,t));else{var h=e.get(i[0],t),p=e.get(i[1],t),f=[h,p];s.clampData&&s.clampData(f,f),r=s.dataToPoint(f,!0)}if("cartesian2d"===s.type){var g=s.getAxis("x"),m=s.getAxis("y"),h=e.get(i[0],t),p=e.get(i[1],t);u(h)?r[0]=g.toGlobalCoord(g.getExtent()[+("x0"!==i[0])]):u(p)&&(r[1]=m.toGlobalCoord(m.getExtent()[+("y0"!==i[1])]))}isNaN(c)||(r[0]=c),isNaN(d)||(r[1]=d)}else r=[c,d];return r}var g=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]];c.extend({type:"markArea",updateTransform:function(e,t,i){t.eachSeries(function(e){var t=e.markAreaModel;if(t){var o=t.getData();o.each(function(t){var r=n.map(g,function(n){return f(o,t,n,e,i)});o.setItemLayout(t,r),o.getItemGraphicEl(t).setShape("points",r)})}},this)},renderSeries:function(e,t,i,a){var l,c,u,h,m,v,b,y=e.coordinateSystem,w=e.id,_=e.getData(),x=this.markerGroupMap,S=x.get(w)||x.set(w,{group:new s.Group});this.group.add(S.group),S.__keep=!0;var C=(l=y,c=e,u=t,l?(h=n.map(l&&l.dimensions,function(e){var t=c.getData(),i=t.getDimensionInfo(t.mapDimension(e))||{};return n.defaults({name:e},i)}),m=new r(n.map(["x0","y0","x1","y1"],function(e,t){return{name:e,type:h[t%2].type}}),u)):m=new r(h=[{name:"value",type:"float"}],u),v=n.map(u.get("data"),n.curry(d,c,l,u)),l&&(v=n.filter(v,n.curry(p,l))),b=l?function(e,t,i,n){return e.coord[Math.floor(n/2)][n%2]}:function(e){return e.value},m.initData(v,null,b),m.hasItemOption=!0,m);t.setData(C),C.each(function(t){C.setItemLayout(t,n.map(g,function(i){return f(C,t,i,e,a)})),C.setItemVisual(t,{color:_.getVisual("color")})}),C.diff(S.__data).add(function(e){var t=new s.Polygon({shape:{points:C.getItemLayout(e)}});C.setItemGraphicEl(e,t),S.group.add(t)}).update(function(e,i){var n=S.__data.getItemGraphicEl(i);s.updateProps(n,{shape:{points:C.getItemLayout(e)}},t,e),S.group.add(n),C.setItemGraphicEl(e,n)}).remove(function(e){var t=S.__data.getItemGraphicEl(e);S.group.remove(t)}).execute(),C.eachItemGraphicEl(function(e,i){var r=C.getItemModel(i),a=r.getModel("label"),l=r.getModel("emphasis.label"),c=C.getItemVisual(i,"color");e.useStyle(n.defaults(r.getModel("itemStyle").getItemStyle(),{fill:o.modifyAlpha(c,.4),stroke:c})),e.hoverStyle=r.getModel("emphasis.itemStyle").getItemStyle(),s.setLabelStyle(e.style,e.hoverStyle,a,l,{labelFetcher:t,labelDataIndex:i,defaultText:C.getName(i)||"",isRectText:!0,autoColor:c}),s.setHoverStyle(e,{}),e.dataModel=t}),S.__data=C,S.group.silent=t.get("silent")||e.get("silent")}})},8326:function(e,t,i){e.exports=i(93277).extend({type:"markLine",defaultOption:{zlevel:0,z:5,symbol:["circle","arrow"],symbolSize:[8,16],precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end"},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"}})},9308:function(e,t,i){var n=i(66023),o=i(90942),r=i(98763),a=i(83976),s=i(93275),l=i(40103),c=function(e,t,i,o){var r=e.getData(),s=o.type;if(!n.isArray(o)&&("min"===s||"max"===s||"average"===s||"median"===s||null!=o.xAxis||null!=o.yAxis)){if(null!=o.yAxis||null!=o.xAxis)l=null!=o.yAxis?"y":"x",t.getAxis(l),c=n.retrieve(o.yAxis,o.xAxis);else{var l,c,d=a.getAxisInfo(o,r,t,e);l=d.valueDataDim,d.valueAxis,c=a.numCalculate(r,l,s)}var u=+("x"!==l),h=1-u,p=n.clone(o),f={};p.type=null,p.coord=[],f.coord=[],p.coord[h]=-1/0,f.coord[h]=1/0;var g=i.get("precision");g>=0&&"number"==typeof c&&(c=+c.toFixed(Math.min(g,20))),p.coord[u]=f.coord[u]=c,o=[p,f,{type:s,valueIndex:o.valueIndex,value:c}]}return(o=[a.dataTransform(e,o[0]),a.dataTransform(e,o[1]),n.extend({},o[2])])[2].type=o[2].type||"",n.merge(o[2],o[0]),n.merge(o[2],o[1]),o};function d(e){return!isNaN(e)&&!isFinite(e)}function u(e,t,i,n){var o=1-e,r=n.dimensions[e];return d(t[o])&&d(i[o])&&t[e]===i[e]&&n.getAxis(r).containData(t[e])}function h(e,t){if("cartesian2d"===e.type){var i=t[0].coord,n=t[1].coord;if(i&&n&&(u(1,i,n,e)||u(0,i,n,e)))return!0}return a.dataFilter(e,t[0])&&a.dataFilter(e,t[1])}function p(e,t,i,n,o){var a,s=n.coordinateSystem,l=e.getItemModel(t),c=r.parsePercent(l.get("x"),o.getWidth()),u=r.parsePercent(l.get("y"),o.getHeight());if(isNaN(c)||isNaN(u)){if(n.getMarkerPosition)a=n.getMarkerPosition(e.getValues(e.dimensions,t));else{var h=s.dimensions,p=e.get(h[0],t),f=e.get(h[1],t);a=s.dataToPoint([p,f])}if("cartesian2d"===s.type){var g=s.getAxis("x"),m=s.getAxis("y"),h=s.dimensions;d(e.get(h[0],t))?a[0]=g.toGlobalCoord(g.getExtent()[+!i]):d(e.get(h[1],t))&&(a[1]=m.toGlobalCoord(m.getExtent()[+!i]))}isNaN(c)||(a[0]=c),isNaN(u)||(a[1]=u)}else a=[c,u];e.setItemLayout(t,a)}e.exports=l.extend({type:"markLine",updateTransform:function(e,t,i){t.eachSeries(function(e){var t=e.markLineModel;if(t){var n=t.getData(),o=t.__from,r=t.__to;o.each(function(t){p(o,t,!0,e,i),p(r,t,!1,e,i)}),n.each(function(e){n.setItemLayout(e,[o.getItemLayout(e),r.getItemLayout(e)])}),this.markerGroupMap.get(e.id).updateLayout()}},this)},renderSeries:function(e,t,i,r){var l,d,u,f,g,m,v,b,y,w=e.coordinateSystem,_=e.id,x=e.getData(),S=this.markerGroupMap,C=S.get(_)||S.set(_,new s);this.group.add(C.group);var k=(l=w,d=e,u=t,g=new o(f=l?n.map(l&&l.dimensions,function(e){var t=d.getData().getDimensionInfo(d.getData().mapDimension(e))||{};return n.defaults({name:e},t)}):[{name:"value",type:"float"}],u),m=new o(f,u),v=new o([],u),b=n.map(u.get("data"),n.curry(c,d,l,u)),l&&(b=n.filter(b,n.curry(h,l))),y=l?a.dimValueGetter:function(e){return e.value},g.initData(n.map(b,function(e){return e[0]}),null,y),m.initData(n.map(b,function(e){return e[1]}),null,y),v.initData(n.map(b,function(e){return e[2]})),v.hasItemOption=!0,{from:g,to:m,line:v}),I=k.from,A=k.to,T=k.line;t.__from=I,t.__to=A,t.setData(T);var E=t.get("symbol"),R=t.get("symbolSize");function D(t,i,n){var o=t.getItemModel(i);p(t,i,n,e,r),t.setItemVisual(i,{symbolSize:o.get("symbolSize")||R[+!n],symbol:o.get("symbol",!0)||E[+!n],color:o.get("itemStyle.color")||x.getVisual("color")})}n.isArray(E)||(E=[E,E]),"number"==typeof R&&(R=[R,R]),k.from.each(function(e){D(I,e,!0),D(A,e,!1)}),T.each(function(e){var t=T.getItemModel(e).get("lineStyle.color");T.setItemVisual(e,{color:t||I.getItemVisual(e,"color")}),T.setItemLayout(e,[I.getItemLayout(e),A.getItemLayout(e)]),T.setItemVisual(e,{fromSymbolSize:I.getItemVisual(e,"symbolSize"),fromSymbol:I.getItemVisual(e,"symbol"),toSymbolSize:A.getItemVisual(e,"symbolSize"),toSymbol:A.getItemVisual(e,"symbol")})}),C.updateData(T),k.line.eachItemGraphicEl(function(e,i){e.traverse(function(e){e.dataModel=t})}),C.__keep=!0,C.group.silent=t.get("silent")||e.get("silent")}})},26982:function(e,t,i){e.exports=i(93277).extend({type:"markPoint",defaultOption:{zlevel:0,z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}}})},99238:function(e,t,i){var n=i(66023),o=i(67076),r=i(98763),a=i(90942),s=i(83976);function l(e,t,i){var n=t.coordinateSystem;e.each(function(o){var a,s=e.getItemModel(o),l=r.parsePercent(s.get("x"),i.getWidth()),c=r.parsePercent(s.get("y"),i.getHeight());if(isNaN(l)||isNaN(c)){if(t.getMarkerPosition)a=t.getMarkerPosition(e.getValues(e.dimensions,o));else if(n){var d=e.get(n.dimensions[0],o),u=e.get(n.dimensions[1],o);a=n.dataToPoint([d,u])}}else a=[l,c];isNaN(l)||(a[0]=l),isNaN(c)||(a[1]=c),e.setItemLayout(o,a)})}e.exports=i(40103).extend({type:"markPoint",updateTransform:function(e,t,i){t.eachSeries(function(e){var t=e.markPointModel;t&&(l(t.getData(),e,i),this.markerGroupMap.get(e.id).updateLayout(t))},this)},renderSeries:function(e,t,i,r){var c,d,u,h,p,f=e.coordinateSystem,g=e.id,m=e.getData(),v=this.markerGroupMap,b=v.get(g)||v.set(g,new o),y=(c=f,d=e,u=t,h=new a(c?n.map(c&&c.dimensions,function(e){var t=d.getData().getDimensionInfo(d.getData().mapDimension(e))||{};return n.defaults({name:e},t)}):[{name:"value",type:"float"}],u),p=n.map(u.get("data"),n.curry(s.dataTransform,d)),c&&(p=n.filter(p,n.curry(s.dataFilter,c))),h.initData(p,null,c?s.dimValueGetter:function(e){return e.value}),h);t.setData(y),l(t.getData(),e,r),y.each(function(e){var i=y.getItemModel(e),n=i.getShallow("symbolSize");"function"==typeof n&&(n=n(t.getRawValue(e),t.getDataParams(e))),y.setItemVisual(e,{symbolSize:n,color:i.get("itemStyle.color")||m.getVisual("color"),symbol:i.getShallow("symbol")})}),b.updateData(y),this.group.add(b.group),y.eachItemGraphicEl(function(e){e.traverse(function(e){e.dataModel=t})}),b.__keep=!0,b.group.silent=t.get("silent")||e.get("silent")}})},93277:function(e,t,i){i(38603).__DEV__;var n=i(47475),o=i(66023),r=i(57674),a=i(70018),s=i(20438),l=i(9084),c=s.addCommas,d=s.encodeHTML;function u(e){a.defaultEmphasis(e,"label",["show"])}var h=n.extendComponentModel({type:"marker",dependencies:["series","grid","polar","geo"],init:function(e,t,i,n){this.mergeDefaultAndTheme(e,i),this.mergeOption(e,i,n.createdBySelf,!0)},isAnimationEnabled:function(){if(r.node)return!1;var e=this.__hostSeries;return this.getShallow("animation")&&e&&e.isAnimationEnabled()},mergeOption:function(e,t,i,n){var r=this.constructor,a=this.mainType+"Model";i||t.eachSeries(function(e){var i=e.get(this.mainType,!0),s=e[a];if(!i||!i.data){e[a]=null;return}s?s.mergeOption(i,t,!0):(n&&u(i),o.each(i.data,function(e){e instanceof Array?(u(e[0]),u(e[1])):u(e)}),s=new r(i,this,t),o.extend(s,{mainType:this.mainType,seriesIndex:e.seriesIndex,name:e.name,createdBySelf:!0}),s.__hostSeries=e),e[a]=s},this)},formatTooltip:function(e){var t=this.getData(),i=this.getRawValue(e),n=o.isArray(i)?o.map(i,c).join(", "):c(i),r=t.getName(e),a=d(this.name);return(null!=i||r)&&(a+="<br />"),r&&(a+=d(r),null!=i&&(a+=" : ")),null!=i&&(a+=d(n)),a},getData:function(){return this._data},setData:function(e){this._data=e}});o.mixin(h,l),e.exports=h},40103:function(e,t,i){var n=i(47475),o=i(66023);e.exports=n.extendComponentView({type:"marker",init:function(){this.markerGroupMap=o.createHashMap()},render:function(e,t,i){var n=this.markerGroupMap;n.each(function(e){e.__keep=!1});var o=this.type+"Model";t.eachSeries(function(e){var n=e[o];n&&this.renderSeries(e,n,t,i)},this),n.each(function(e){e.__keep||this.group.remove(e.group)},this)},renderSeries:function(){}})},83976:function(e,t,i){var n=i(66023),o=i(98763),r=i(74733).isDimensionStacked,a=n.indexOf;function s(e,t,i,n,a,s){var l=[],c=r(t,n)?t.getCalculationInfo("stackResultDimension"):n,d=u(t,c,e),h=t.indicesOfNearest(c,d)[0];l[a]=t.get(i,h),l[s]=t.get(n,h);var p=o.getPrecision(t.get(n,h));return(p=Math.min(p,20))>=0&&(l[s]=+l[s].toFixed(p)),l}var l=n.curry,c={min:l(s,"min"),max:l(s,"max"),average:l(s,"average")};function d(e,t,i,n){var o={};return null!=e.valueIndex||null!=e.valueDim?(o.valueDataDim=null!=e.valueIndex?t.getDimension(e.valueIndex):e.valueDim,o.valueAxis=i.getAxis(function(e,t){var i=e.getData(),n=i.dimensions;t=i.getDimension(t);for(var o=0;o<n.length;o++){var r=i.getDimensionInfo(n[o]);if(r.name===t)return r.coordDim}}(n,o.valueDataDim)),o.baseAxis=i.getOtherAxis(o.valueAxis),o.baseDataDim=t.mapDimension(o.baseAxis.dim)):(o.baseAxis=n.getBaseAxis(),o.valueAxis=i.getOtherAxis(o.baseAxis),o.baseDataDim=t.mapDimension(o.baseAxis.dim),o.valueDataDim=t.mapDimension(o.valueAxis.dim)),o}function u(e,t,i){if("average"===i){var n=0,o=0;return e.each(t,function(e,t){!isNaN(e)&&(n+=e,o++)}),n/o}return"median"===i?e.getMedian(t):e.getDataExtent(t,!0)[+("max"===i)]}t.dataTransform=function(e,t){var i,o=e.getData(),r=e.coordinateSystem;if(t&&!(!isNaN(parseFloat((i=t).x))&&!isNaN(parseFloat(i.y)))&&!n.isArray(t.coord)&&r){var s=r.dimensions,l=d(t,o,r,e);if((t=n.clone(t)).type&&c[t.type]&&l.baseAxis&&l.valueAxis){var h=a(s,l.baseAxis.dim),p=a(s,l.valueAxis.dim);t.coord=c[t.type](o,l.baseDataDim,l.valueDataDim,h,p),t.value=t.coord[p]}else{for(var f=[null!=t.xAxis?t.xAxis:t.radiusAxis,null!=t.yAxis?t.yAxis:t.angleAxis],g=0;g<2;g++)c[f[g]]&&(f[g]=u(o,o.mapDimension(s[g]),f[g]));t.coord=f}}return t},t.getAxisInfo=d,t.dataFilter=function(e,t){return!e||!e.containData||!t.coord||!(isNaN(parseFloat(t.x))&&isNaN(parseFloat(t.y)))||e.containData(t.coord)},t.dimValueGetter=function(e,t,i,n){return n<2?e.coord&&e.coord[n]:e.value},t.numCalculate=u},41891:function(e,t,i){var n=i(47475),o=i(66023),r=i(44050),a=i(31879);i(54249),i(59314),i(89040),n.extendComponentView({type:"parallel",render:function(e,t,i){this._model=e,this._api=i,this._handlers||(this._handlers={},o.each(s,function(e,t){i.getZr().on(t,this._handlers[t]=o.bind(e,this))},this)),r.createOrUpdate(this,"_throttledDispatchExpand",e.get("axisExpandRate"),"fixRate")},dispose:function(e,t){o.each(this._handlers,function(e,i){t.getZr().off(i,e)}),this._handlers=null},_throttledDispatchExpand:function(e){this._dispatchExpand(e)},_dispatchExpand:function(e){e&&this._api.dispatchAction(o.extend({type:"parallelAxisExpand"},e))}});var s={mousedown:function(e){l(this,"click")&&(this._mouseDownPoint=[e.offsetX,e.offsetY])},mouseup:function(e){var t=this._mouseDownPoint;if(l(this,"click")&&t){var i=[e.offsetX,e.offsetY];if(Math.pow(t[0]-i[0],2)+Math.pow(t[1]-i[1],2)>5)return;var n=this._model.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]);"none"!==n.behavior&&this._dispatchExpand({axisExpandWindow:n.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(e){if(!this._mouseDownPoint&&l(this,"mousemove")){var t=this._model,i=t.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]),n=i.behavior;"jump"===n&&this._throttledDispatchExpand.debounceNextCall(t.get("axisExpandDebounce")),this._throttledDispatchExpand("none"===n?null:{axisExpandWindow:i.axisExpandWindow,animation:"jump"===n&&null})}}};function l(e,t){var i=e._model;return i.get("axisExpandable")&&i.get("axisExpandTriggerOn")===t}n.registerPreprocessor(a)},89040:function(e,t,i){i(54249),i(22947),i(43608)},38189:function(e,t,i){var n=i(47475),o=i(66023),r=i(19995);i(1748),i(66912),i(26514),i(57498),i(81745),n.registerLayout(o.curry(r,"bar")),n.extendComponentView({type:"polar"})},27154:function(e,t,i){i(80194),i(96274),i(99547)},99547:function(e,t,i){i(38603).__DEV__;var n=i(47475),o=i(66023),r=i(96972),a=i(76165),s=["axisLine","axisTickLabel","axisName"];e.exports=n.extendComponentView({type:"radar",render:function(e,t,i){this.group.removeAll(),this._buildAxes(e),this._buildSplitLineAndArea(e)},_buildAxes:function(e){var t=e.coordinateSystem,i=t.getIndicatorAxes(),n=o.map(i,function(e){return new r(e.model,{position:[t.cx,t.cy],rotation:e.angle,labelDirection:-1,tickDirection:-1,nameDirection:1})});o.each(n,function(e){o.each(s,e.add,e),this.group.add(e.getGroup())},this)},_buildSplitLineAndArea:function(e){var t=e.coordinateSystem,i=t.getIndicatorAxes();if(i.length){var n=e.get("shape"),r=e.getModel("splitLine"),s=e.getModel("splitArea"),l=r.getModel("lineStyle"),c=s.getModel("areaStyle"),d=r.get("show"),u=s.get("show"),h=l.get("color"),p=c.get("color");h=o.isArray(h)?h:[h],p=o.isArray(p)?p:[p];var f=[],g=[];if("circle"===n)for(var m=i[0].getTicksCoords(),v=t.cx,b=t.cy,y=0;y<m.length;y++){if(d){var w=T(f,h,y);f[w].push(new a.Circle({shape:{cx:v,cy:b,r:m[y].coord}}))}if(u&&y<m.length-1){var w=T(g,p,y);g[w].push(new a.Ring({shape:{cx:v,cy:b,r0:m[y].coord,r:m[y+1].coord}}))}}else for(var _,x=o.map(i,function(e,i){var n=e.getTicksCoords();return _=null==_?n.length-1:Math.min(n.length-1,_),o.map(n,function(e){return t.coordToPoint(e.coord,i)})}),S=[],y=0;y<=_;y++){for(var C=[],k=0;k<i.length;k++)C.push(x[k][y]);if(C[0]&&C.push(C[0].slice()),d){var w=T(f,h,y);f[w].push(new a.Polyline({shape:{points:C}}))}if(u&&S){var w=T(g,p,y-1);g[w].push(new a.Polygon({shape:{points:C.concat(S)}}))}S=C.slice().reverse()}var I=l.getLineStyle(),A=c.getAreaStyle();o.each(g,function(e,t){this.group.add(a.mergePath(e,{style:o.defaults({stroke:"none",fill:p[t%p.length]},A),silent:!0}))},this),o.each(f,function(e,t){this.group.add(a.mergePath(e,{style:o.defaults({fill:"none",stroke:h[t%h.length]},I),silent:!0}))},this)}function T(e,t,i){var n=i%t.length;return e[n]=e[n]||[],n}}})},26514:function(e,t,i){i(1748),i(74353)},96729:function(e,t,i){var n=i(47475);i(593),i(13389),i(11049),i(57498),i(77858),n.extendComponentView({type:"single"})},76356:function(e,t,i){var n=i(47475),o=i(81255);i(44368),i(23157),i(4753),i(93151),n.registerPreprocessor(o)},4753:function(e,t,i){var n=i(66023),o=i(29497),r=i(9084),a=o.extend({type:"timeline.slider",defaultOption:{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"emptyCircle",symbolSize:10,lineStyle:{show:!0,width:2,color:"#304654"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#304654"},itemStyle:{color:"#304654",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:13,color:"#c23531",borderWidth:5,borderColor:"rgba(194,53,49, 0.5)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:22,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"path://M18.6,50.8l22.5-22.5c0.2-0.2,0.3-0.4,0.3-0.7c0-0.3-0.1-0.5-0.3-0.7L18.7,4.4c-0.1-0.1-0.2-0.3-0.2-0.5 c0-0.4,0.3-0.8,0.8-0.8c0.2,0,0.5,0.1,0.6,0.3l23.5,23.5l0,0c0.2,0.2,0.3,0.4,0.3,0.7c0,0.3-0.1,0.5-0.3,0.7l-0.1,0.1L19.7,52 c-0.1,0.1-0.3,0.2-0.5,0.2c-0.4,0-0.8-0.3-0.8-0.8C18.4,51.2,18.5,51,18.6,50.8z",prevIcon:"path://M43,52.8L20.4,30.3c-0.2-0.2-0.3-0.4-0.3-0.7c0-0.3,0.1-0.5,0.3-0.7L42.9,6.4c0.1-0.1,0.2-0.3,0.2-0.5 c0-0.4-0.3-0.8-0.8-0.8c-0.2,0-0.5,0.1-0.6,0.3L18.3,28.8l0,0c-0.2,0.2-0.3,0.4-0.3,0.7c0,0.3,0.1,0.5,0.3,0.7l0.1,0.1L41.9,54 c0.1,0.1,0.3,0.2,0.5,0.2c0.4,0,0.8-0.3,0.8-0.8C43.2,53.2,43.1,53,43,52.8z",color:"#304654",borderColor:"#304654",borderWidth:1},emphasis:{label:{show:!0,color:"#c23531"},itemStyle:{color:"#c23531"},controlStyle:{color:"#c23531",borderColor:"#c23531",borderWidth:2}},data:[]}});n.mixin(a,r),e.exports=a},93151:function(e,t,i){var n=i(66023),o=i(71497),r=i(36653),a=i(76165),s=i(68006),l=i(92604),c=i(84588),d=i(87557).createSymbol,u=i(16978),h=i(98763),p=i(20438).encodeHTML,f=n.bind,g=n.each,m=Math.PI;function v(e,t,i,o,r,a){var s=t.get("color");r?(r.setColor(s),i.add(r),a&&a.onUpdate(r)):((r=d(e.get("symbol"),-1,-1,2,2,s)).setStyle("strokeNoScale",!0),i.add(r),a&&a.onCreate(r));var l=t.getItemStyle(["color","symbol","symbolSize"]);r.setStyle(l),o=n.merge({rectHover:!0,z2:100},o,!0);var c=e.get("symbolSize");c=c instanceof Array?c.slice():[+c,+c],c[0]/=2,c[1]/=2,o.scale=c;var u=e.get("symbolOffset");if(u){var p=o.position=o.position||[0,0];p[0]+=h.parsePercent(u[0],c[0]),p[1]+=h.parsePercent(u[1],c[1])}var f=e.get("symbolRotate");return o.rotation=(f||0)*Math.PI/180||0,r.attr(o),r.updateTransform(),r}function b(e,t,i,n,o){if(!e.dragging){var r=n.getModel("checkpointStyle"),a=i.dataToCoord(n.getData().get(["value"],t));o||!r.get("animation",!0)?e.attr({position:[a,0]}):(e.stopAnimation(!0),e.animateTo({position:[a,0]},r.get("animationDuration",!0),r.get("animationEasing",!0)))}}e.exports=l.extend({type:"timeline.slider",init:function(e,t){this.api=t,this._axis,this._viewRect,this._timer,this._currentPointer,this._mainGroup,this._labelGroup},render:function(e,t,i,n){if(this.model=e,this.api=i,this.ecModel=t,this.group.removeAll(),e.get("show",!0)){var o=this._layout(e,i),r=this._createGroup("mainGroup"),a=this._createGroup("labelGroup"),s=this._axis=this._createAxis(o,e);e.formatTooltip=function(e){return p(s.scale.getLabel(e))},g(["AxisLine","AxisTick","Control","CurrentPointer"],function(t){this["_render"+t](o,r,s,e)},this),this._renderAxisLabel(o,a,s,e),this._position(o,e)}this._doPlayStop()},remove:function(){this._clearTimer(),this.group.removeAll()},dispose:function(){this._clearTimer()},_layout:function(e,t){var i,n,o,r,a,l,c=e.get("label.position"),d=e.get("orient"),u=(i=e,n=t,s.getLayoutRect(i.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()},i.get("padding")));null==c||"auto"===c?c="horizontal"===d?u.y+u.height/2<t.getHeight()/2?"-":"+":u.x+u.width/2<t.getWidth()/2?"+":"-":isNaN(c)&&(c=({horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}})[d][c]);var h={horizontal:"center",vertical:c>=0||"+"===c?"left":"right"},p={horizontal:c>=0||"+"===c?"top":"bottom",vertical:"middle"},f="vertical"===d?u.height:u.width,g=e.getModel("controlStyle"),v=g.get("show",!0),b=v?g.get("itemSize"):0,y=v?g.get("itemGap"):0,w=b+y,_=e.get("label.rotate")||0;_=_*m/180;var x=g.get("position",!0),S=v&&g.get("showPlayBtn",!0),C=v&&g.get("showPrevBtn",!0),k=v&&g.get("showNextBtn",!0),I=0,A=f;return"left"===x||"bottom"===x?(S&&(o=[0,0],I+=w),C&&(r=[I,0],I+=w)):(S&&(o=[A-b,0],A-=w),C&&(r=[0,0],I+=w)),k&&(a=[A-b,0],A-=w),l=[I,A],e.get("inverse")&&l.reverse(),{viewRect:u,mainLength:f,orient:d,rotation:({horizontal:0,vertical:m/2})[d],labelRotation:_,labelPosOpt:c,labelAlign:e.get("label.align")||h[d],labelBaseline:e.get("label.verticalAlign")||e.get("label.baseline")||p[d],playPosition:o,prevBtnPosition:r,nextBtnPosition:a,axisExtent:l,controlSize:b,controlGap:y}},_position:function(e,t){var i=this._mainGroup,n=this._labelGroup,o=e.viewRect;if("vertical"===e.orient){var a=r.create(),s=o.x,l=o.y+o.height;r.translate(a,a,[-s,-l]),r.rotate(a,a,-m/2),r.translate(a,a,[s,l]),(o=o.clone()).applyTransform(a)}var c=b(o),d=b(i.getBoundingRect()),u=b(n.getBoundingRect()),h=i.position,p=n.position;p[0]=h[0]=c[0][0];var f=e.labelPosOpt;if(isNaN(f)){var g=+("+"!==f);y(h,d,c,1,g),y(p,u,c,1,1-g)}else{var g=f>=0?0:1;y(h,d,c,1,g),p[1]=h[1]+f}function v(e){var t=e.position;e.origin=[c[0][0]-t[0],c[1][0]-t[1]]}function b(e){return[[e.x,e.x+e.width],[e.y,e.y+e.height]]}function y(e,t,i,n,o){e[n]+=i[n][o]-t[n][o]}i.attr("position",h),n.attr("position",p),i.rotation=n.rotation=e.rotation,v(i),v(n)},_createAxis:function(e,t){var i=t.getData(),n=t.get("axisType"),o=u.createScaleByModel(t,n);o.getTicks=function(){return i.mapArray(["value"],function(e){return e})};var r=i.getDataExtent("value");o.setExtent(r[0],r[1]),o.niceTicks();var a=new c("value",o,e.axisExtent,n);return a.model=t,a},_createGroup:function(e){var t=this["_"+e]=new a.Group;return this.group.add(t),t},_renderAxisLine:function(e,t,i,o){var r=i.getExtent();o.get("lineStyle.show")&&t.add(new a.Line({shape:{x1:r[0],y1:0,x2:r[1],y2:0},style:n.extend({lineCap:"round"},o.getModel("lineStyle").getLineStyle()),silent:!0,z2:1}))},_renderAxisTick:function(e,t,i,n){var o=n.getData();g(i.scale.getTicks(),function(e){var r=i.dataToCoord(e),s=o.getItemModel(e),l=s.getModel("itemStyle"),c=s.getModel("emphasis.itemStyle"),d=v(s,l,t,{position:[r,0],onclick:f(this._changeTimeline,this,e)});a.setHoverStyle(d,c.getItemStyle()),s.get("tooltip")?(d.dataIndex=e,d.dataModel=n):d.dataIndex=d.dataModel=null},this)},_renderAxisLabel:function(e,t,i,n){if(i.getLabelModel().get("show")){var o=n.getData();g(i.getViewLabels(),function(n){var r=n.tickValue,s=o.getItemModel(r),l=s.getModel("label"),c=s.getModel("emphasis.label"),d=i.dataToCoord(n.tickValue),u=new a.Text({position:[d,0],rotation:e.labelRotation-e.rotation,onclick:f(this._changeTimeline,this,r),silent:!1});a.setTextStyle(u.style,l,{text:n.formattedLabel,textAlign:e.labelAlign,textVerticalAlign:e.labelBaseline}),t.add(u),a.setHoverStyle(u,a.setTextStyle({},c))},this)}},_renderControl:function(e,t,i,r){var s=e.controlSize,l=e.rotation,c=r.getModel("controlStyle").getItemStyle(),d=r.getModel("emphasis.controlStyle").getItemStyle(),u=[0,-s/2,s,s],h=r.getPlayState(),p=r.get("inverse",!0);function g(e,i,h,p){if(e){var f,g,m,v,b=(f=r,g=i,m=u,v={position:e,origin:[s/2,0],rotation:p?-l:0,rectHover:!0,style:c,onclick:h},a.makePath(f.get(g).replace(/^path:\/\//,""),n.clone(v||{}),new o(m[0],m[1],m[2],m[3]),"center"));t.add(b),a.setHoverStyle(b,d)}}g(e.nextBtnPosition,"controlStyle.nextIcon",f(this._changeTimeline,this,p?"-":"+")),g(e.prevBtnPosition,"controlStyle.prevIcon",f(this._changeTimeline,this,p?"+":"-")),g(e.playPosition,"controlStyle."+(h?"stopIcon":"playIcon"),f(this._handlePlayClick,this,!h),!0)},_renderCurrentPointer:function(e,t,i,n){var o=n.getData(),r=n.getCurrentIndex(),a=o.getItemModel(r).getModel("checkpointStyle"),s=this;this._currentPointer=v(a,a,this._mainGroup,{},this._currentPointer,{onCreate:function(e){e.draggable=!0,e.drift=f(s._handlePointerDrag,s),e.ondragend=f(s._handlePointerDragend,s),b(e,r,i,n,!0)},onUpdate:function(e){b(e,r,i,n)}})},_handlePlayClick:function(e){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:e,from:this.uid})},_handlePointerDrag:function(e,t,i){this._clearTimer(),this._pointerChangeTimeline([i.offsetX,i.offsetY])},_handlePointerDragend:function(e){this._pointerChangeTimeline([e.offsetX,e.offsetY],!0)},_pointerChangeTimeline:function(e,t){var i=this._toAxisCoord(e)[0],n=this._axis,o=h.asc(n.getExtent().slice());i>o[1]&&(i=o[1]),i<o[0]&&(i=o[0]),this._currentPointer.position[0]=i,this._currentPointer.dirty();var r=this._findNearestTick(i),a=this.model;(t||r!==a.getCurrentIndex()&&a.get("realtime"))&&this._changeTimeline(r)},_doPlayStop:function(){this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout(f(function(){var e=this.model;this._changeTimeline(e.getCurrentIndex()+(e.get("rewind",!0)?-1:1))},this),this.model.get("playInterval")))},_toAxisCoord:function(e){var t=this._mainGroup.getLocalTransform();return a.applyTransform(e,t,!0)},_findNearestTick:function(e){var t,i=this.model.getData(),n=1/0,o=this._axis;return i.each(["value"],function(i,r){var a=Math.abs(o.dataToCoord(i)-e);a<n&&(n=a,t=r)}),t},_clearTimer:function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},_changeTimeline:function(e){var t=this.model.getCurrentIndex();"+"===e?e=t+1:"-"===e&&(e=t-1),this.api.dispatchAction({type:"timelineChange",currentIndex:e,from:this.uid})}})},84588:function(e,t,i){var n=i(66023),o=i(11237),r=function(e,t,i,n){o.call(this,e,t,i),this.type=n||"value",this.model=null};r.prototype={constructor:r,getLabelModel:function(){return this.model.getModel("label")},isHorizontal:function(){return"horizontal"===this.model.get("orient")}},n.inherits(r,o),e.exports=r},29497:function(e,t,i){var n=i(66023),o=i(76056),r=i(90942),a=i(70018),s=o.extend({type:"timeline",layoutMode:"box",defaultOption:{zlevel:0,z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},init:function(e,t,i){this._data,this._names,this.mergeDefaultAndTheme(e,i),this._initData()},mergeOption:function(e){s.superApply(this,"mergeOption",arguments),this._initData()},setCurrentIndex:function(e){null==e&&(e=this.option.currentIndex);var t=this._data.count();this.option.loop?e=(e%t+t)%t:(e>=t&&(e=t-1),e<0&&(e=0)),this.option.currentIndex=e},getCurrentIndex:function(){return this.option.currentIndex},isIndexMax:function(){return this.getCurrentIndex()>=this._data.count()-1},setPlayState:function(e){this.option.autoPlay=!!e},getPlayState:function(){return!!this.option.autoPlay},_initData:function(){var e=this.option,t=e.data||[],i=e.axisType,o=this._names=[];if("category"===i){var s=[];n.each(t,function(e,t){var i,r=a.getDataItemValue(e);n.isObject(e)?(i=n.clone(e)).value=t:i=t,s.push(i),!n.isString(r)&&(null==r||isNaN(r))&&(r=""),o.push(r+"")}),t=s}(this._data=new r([{name:"value",type:{category:"ordinal",time:"time"}[i]||"number"}],this)).initData(t,o)},getData:function(){return this._data},getCategories:function(){if("category"===this.get("axisType"))return this._names.slice()}});e.exports=s},92604:function(e,t,i){e.exports=i(11648).extend({type:"timeline"})},81255:function(e,t,i){var n=i(66023);function o(e){var t=e.itemStyle||(e.itemStyle={}),i=t.emphasis||(t.emphasis={}),o=e.label||e.label||{},a=o.normal||(o.normal={}),s={normal:1,emphasis:1};n.each(o,function(e,t){s[t]||r(a,t)||(a[t]=e)}),i.label&&!r(o,"emphasis")&&(o.emphasis=i.label,delete i.label)}function r(e,t){return e.hasOwnProperty(t)}e.exports=function(e){var t=e&&e.timeline;n.isArray(t)||(t=t?[t]:[]),n.each(t,function(e){e&&function(e){var t=e.type,i={number:"value",time:"time"};if(i[t]&&(e.axisType=i[t],delete e.type),o(e),r(e,"controlPosition")){var a=e.controlStyle||(e.controlStyle={});r(a,"position")||(a.position=e.controlPosition),"none"!==a.position||r(a,"show")||(a.show=!1,delete a.position),delete e.controlPosition}n.each(e.data||[],function(e){n.isObject(e)&&!n.isArray(e)&&(!r(e,"value")&&r(e,"name")&&(e.value=e.name),o(e))})}(e)})}},23157:function(e,t,i){var n=i(47475),o=i(66023);n.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(e,t){var i=t.getComponent("timeline");return i&&null!=e.currentIndex&&(i.setCurrentIndex(e.currentIndex),!i.get("loop",!0)&&i.isIndexMax()&&i.setPlayState(!1)),t.resetOption("timeline"),o.defaults({currentIndex:i.option.currentIndex},e)}),n.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(e,t){var i=t.getComponent("timeline");i&&null!=e.playState&&i.setPlayState(e.playState)})},44368:function(e,t,i){i(76056).registerSubTypeDefaulter("timeline",function(){return"slider"})},34870:function(e,t,i){var n=i(47475),o=i(76165),r=i(68006).getLayoutRect;n.extendComponentModel({type:"title",layoutMode:{type:"box",ignoreSize:!0},defaultOption:{zlevel:0,z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bolder",color:"#333"},subtextStyle:{color:"#aaa"}}}),n.extendComponentView({type:"title",render:function(e,t,i){if(this.group.removeAll(),e.get("show")){var n=this.group,a=e.getModel("textStyle"),s=e.getModel("subtextStyle"),l=e.get("textAlign"),c=e.get("textBaseline"),d=new o.Text({style:o.setTextStyle({},a,{text:e.get("text"),textFill:a.getTextColor()},{disableBox:!0}),z2:10}),u=d.getBoundingRect(),h=e.get("subtext"),p=new o.Text({style:o.setTextStyle({},s,{text:h,textFill:s.getTextColor(),y:u.height+e.get("itemGap"),textVerticalAlign:"top"},{disableBox:!0}),z2:10}),f=e.get("link"),g=e.get("sublink"),m=e.get("triggerEvent",!0);d.silent=!f&&!m,p.silent=!g&&!m,f&&d.on("click",function(){window.open(f,"_"+e.get("target"))}),g&&p.on("click",function(){window.open(g,"_"+e.get("subtarget"))}),d.eventData=p.eventData=m?{componentType:"title",componentIndex:e.componentIndex}:null,n.add(d),h&&n.add(p);var v=n.getBoundingRect(),b=e.getBoxLayoutParams();b.width=v.width,b.height=v.height;var y=r(b,{width:i.getWidth(),height:i.getHeight()},e.get("padding"));l||("middle"===(l=e.get("left")||e.get("right"))&&(l="center"),"right"===l?y.x+=y.width:"center"===l&&(y.x+=y.width/2)),c||("center"===(c=e.get("top")||e.get("bottom"))&&(c="middle"),"bottom"===c?y.y+=y.height:"middle"===c&&(y.y+=y.height/2),c=c||"top"),n.attr("position",[y.x,y.y]);var w={textAlign:l,textVerticalAlign:c};d.setStyle(w),p.setStyle(w),v=n.getBoundingRect();var _=y.margin,x=e.getItemStyle(["color","opacity"]);x.fill=e.get("backgroundColor");var S=new o.Rect({shape:{x:v.x-_[3],y:v.y-_[0],width:v.width+_[1]+_[3],height:v.height+_[0]+_[2],r:e.get("borderRadius")},style:x,silent:!0});o.subPixelOptimizeRect(S),n.add(S)}}})},41336:function(e,t,i){i(90224),i(5474),i(47611),i(98821),i(1029),i(98867),i(37173)},90224:function(e,t,i){var n=i(47475),o=i(66023),r=i(40412),a=n.extendComponentModel({type:"toolbox",layoutMode:{type:"box",ignoreSize:!0},optionUpdated:function(){a.superApply(this,"optionUpdated",arguments),o.each(this.option.feature,function(e,t){var i=r.get(t);i&&o.merge(e,i.defaultOption)})},defaultOption:{show:!0,z:6,zlevel:0,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}}}});e.exports=a},5474:function(e,t,i){var n=i(47475),o=i(66023),r=i(99280),a=i(40412),s=i(76165),l=i(27611),c=i(13593),d=i(81166);e.exports=n.extendComponentView({type:"toolbox",render:function(e,t,i,n){var u=this.group;if(u.removeAll(),e.get("show")){var h=+e.get("itemSize"),p=e.get("feature")||{},f=this._features||(this._features={}),g=[];o.each(p,function(e,t){g.push(t)}),new c(this._featureNames||[],g).add(m).update(m).remove(o.curry(m,null)).execute(),this._featureNames=g,d.layout(u,e,i),u.add(d.makeBackground(u.getBoundingRect(),e)),u.eachChild(function(e){var t=e.__title,n=e.hoverStyle;if(n&&t){var o=r.getBoundingRect(t,r.makeFont(n)),a=e.position[0]+u.position[0],s=e.position[1]+u.position[1]+h,l=!1;s+o.height>i.getHeight()&&(n.textPosition="top",l=!0);var c=l?-5-o.height:h+8;a+o.width/2>i.getWidth()?(n.textPosition=["100%",c],n.textAlign="right"):a-o.width/2<0&&(n.textPosition=[0,c],n.textAlign="left")}})}function m(r,c){var d,m=g[r],v=g[c],b=new l(p[m],e,e.ecModel);if(m&&!v){if(0===m.indexOf("my"))d={model:b,onclick:b.option.onclick,featureName:m};else{var y=a.get(m);if(!y)return;d=new y(b,t,i)}f[m]=d}else{if(!(d=f[v]))return;d.model=b,d.ecModel=t,d.api=i}if(!m&&v){d.dispose&&d.dispose(t,i);return}if(!b.get("show")||d.unusable){d.remove&&d.remove(t,i);return}(function(n,r,a){var l=n.getModel("iconStyle"),c=n.getModel("emphasis.iconStyle"),d=r.getIcons?r.getIcons():n.get("icon"),p=n.get("title")||{};if("string"==typeof d){var f=d,g=p;p={},(d={})[a]=f,p[a]=g}var m=n.iconPaths={};o.each(d,function(a,d){var f=s.createIcon(a,{},{x:-h/2,y:-h/2,width:h,height:h});f.setStyle(l.getItemStyle()),f.hoverStyle=c.getItemStyle(),s.setHoverStyle(f),e.get("showTitle")&&(f.__title=p[d],f.on("mouseover",function(){var e=c.getItemStyle();f.setStyle({text:p[d],textPosition:e.textPosition||"bottom",textFill:e.fill||e.stroke||"#000",textAlign:e.textAlign||"center"})}).on("mouseout",function(){f.setStyle({textFill:null})})),f.trigger(n.get("iconStatus."+d)||"normal"),u.add(f),f.on("click",o.bind(r.onclick,r,t,i,d)),m[d]=f})})(b,d,m),b.setIconStatus=function(e,t){var i=this.option,n=this.iconPaths;i.iconStatus=i.iconStatus||{},i.iconStatus[e]=t,n[e]&&n[e].trigger(t)},d.render&&d.render(b,t,i,n)}},updateView:function(e,t,i,n){o.each(this._features,function(e){e.updateView&&e.updateView(e.model,t,i,n)})},remove:function(e,t){o.each(this._features,function(i){i.remove&&i.remove(e,t)}),this.group.removeAll()},dispose:function(e,t){o.each(this._features,function(i){i.dispose&&i.dispose(e,t)})}})},50443:function(e,t,i){var n=i(66023),o=i(40412),r=i(66934).toolbox.brush;function a(e,t,i){this.model=e,this.ecModel=t,this.api=i,this._brushType,this._brushMode}a.defaultOption={show:!0,type:["rect","polygon","lineX","lineY","keep","clear"],icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:n.clone(r.title)};var s=a.prototype;s.render=s.updateView=function(e,t,i){var o,r,a;t.eachComponent({mainType:"brush"},function(e){o=e.brushType,r=e.brushOption.brushMode||"single",a|=e.areas.length}),this._brushType=o,this._brushMode=r,n.each(e.get("type",!0),function(t){e.setIconStatus(t,("keep"===t?"multiple"===r:"clear"===t?a:t===o)?"emphasis":"normal")})},s.getIcons=function(){var e=this.model,t=e.get("icon",!0),i={};return n.each(e.get("type",!0),function(e){t[e]&&(i[e]=t[e])}),i},s.onclick=function(e,t,i){var n=this._brushType,o=this._brushMode;"clear"===i?(t.dispatchAction({type:"axisAreaSelect",intervals:[]}),t.dispatchAction({type:"brush",command:"clear",areas:[]})):t.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:"keep"===i?n:n!==i&&i,brushMode:"keep"===i?"multiple"===o?"single":"multiple":o}})},o.register("brush",a),e.exports=a},1029:function(e,t,i){var n=i(47475),o=i(66023),r=i(3006),a=i(66934),s=i(40412),l=a.toolbox.dataView,c=Array(60).join("-");function d(e){return e.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}var u=RegExp("[	]+","g");function h(e){this._dom=null,this.model=e}h.defaultOption={show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:o.clone(l.title),lang:o.clone(l.lang),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"},h.prototype.onclick=function(e,t){var i,n,a,s,l,h,p,f=t.getDom(),g=this.model;this._dom&&f.removeChild(this._dom);var m=document.createElement("div");m.style.cssText="position:absolute;left:5px;top:5px;bottom:5px;right:5px;",m.style.backgroundColor=g.get("backgroundColor")||"#fff";var v=document.createElement("h4"),b=g.get("lang")||[];v.innerHTML=b[0]||g.get("title"),v.style.cssText="margin: 10px 20px;",v.style.color=g.get("textColor");var y=document.createElement("div"),w=document.createElement("textarea");y.style.cssText="display:block;width:100%;overflow:auto;";var _=g.get("optionToContent"),x=g.get("contentToOption"),S=(p=(i={},n=[],a=[],e.eachRawSeries(function(e){var t=e.coordinateSystem;if(t&&("cartesian2d"===t.type||"polar"===t.type)){var o=t.getBaseAxis();if("category"===o.type){var r=o.dim+"_"+o.index;i[r]||(i[r]={categoryAxis:o,valueAxis:t.getOtherAxis(o),series:[]},a.push({axisDim:o.dim,axisIndex:o.index})),i[r].series.push(e)}else n.push(e)}else n.push(e)}),{seriesGroupByCategoryAxis:i,other:n,meta:a}),{value:o.filter([(s=p.seriesGroupByCategoryAxis,l=[],o.each(s,function(e,t){var i=e.categoryAxis,n=e.valueAxis.dim,r=[" "].concat(o.map(e.series,function(e){return e.name})),a=[i.model.getCategories()];o.each(e.series,function(e){a.push(e.getRawData().mapArray(n,function(e){return e}))});for(var s=[r.join("	")],c=0;c<a[0].length;c++){for(var d=[],u=0;u<a.length;u++)d.push(a[u][c]);s.push(d.join("	"))}l.push(s.join("\n"))}),l.join("\n\n"+c+"\n\n")),(h=p.other,o.map(h,function(e){var t=e.getRawData(),i=[e.name],n=[];return t.each(t.dimensions,function(){for(var e=arguments.length,o=arguments[e-1],r=t.getName(o),a=0;a<e-1;a++)n[a]=arguments[a];i.push((r?r+"	":"")+n.join("	"))}),i.join("\n")}).join("\n\n"+c+"\n\n"))],function(e){return e.replace(/[\n\t\s]/g,"")}).join("\n\n"+c+"\n\n"),meta:p.meta});if("function"==typeof _){var C=_(t.getOption());"string"==typeof C?y.innerHTML=C:o.isDom(C)&&y.appendChild(C)}else y.appendChild(w),w.readOnly=g.get("readOnly"),w.style.cssText="width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;",w.style.color=g.get("textColor"),w.style.borderColor=g.get("textareaBorderColor"),w.style.backgroundColor=g.get("textareaColor"),w.value=S.value;var k=S.meta,I=document.createElement("div");I.style.cssText="position:absolute;bottom:0;left:0;right:0;";var A="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",T=document.createElement("div"),E=document.createElement("div");A+=";background-color:"+g.get("buttonColor")+";color:"+g.get("buttonTextColor");var R=this;function D(){f.removeChild(m),R._dom=null}r.addEventListener(T,"click",D),r.addEventListener(E,"click",function(){var e,i,n,r;try{"function"==typeof x?e=x(y,t.getOption()):(i=w.value,n=i.split(RegExp("\n*"+c+"\n*","g")),r={series:[]},o.each(n,function(e,t){if(function(e){if(e.slice(0,e.indexOf("\n")).indexOf("	")>=0)return!0}(e)){var i=function(e){for(var t=e.split(/\n+/g),i=d(t.shift()).split(u),n=[],r=o.map(i,function(e){return{name:e,data:[]}}),a=0;a<t.length;a++){var s=d(t[a]).split(u);n.push(s.shift());for(var l=0;l<s.length;l++)r[l]&&(r[l].data[a]=s[l])}return{series:r,categories:n}}(e),n=k[t],a=n.axisDim+"Axis";n&&(r[a]=r[a]||[],r[a][n.axisIndex]={data:i.categories},r.series=r.series.concat(i.series))}else{var i=function(e){for(var t=e.split(/\n+/g),i=d(t.shift()),n=[],o=0;o<t.length;o++){var r,a=d(t[o]).split(u),s="",l=!1;isNaN(a[0])?(l=!0,s=a[0],a=a.slice(1),n[o]={name:s,value:[]},r=n[o].value):r=n[o]=[];for(var c=0;c<a.length;c++)r.push(+a[c]);1===r.length&&(l?n[o].value=r[0]:n[o]=r[0])}return{name:i,data:n}}(e);r.series.push(i)}}),e=r)}catch(e){throw D(),Error("Data view format error "+e)}e&&t.dispatchAction({type:"changeDataView",newOption:e}),D()}),T.innerHTML=b[1],E.innerHTML=b[2],E.style.cssText=A,T.style.cssText=A,g.get("readOnly")||I.appendChild(E),I.appendChild(T),r.addEventListener(w,"keydown",function(e){if(9===(e.keyCode||e.which)){var t=this.value,i=this.selectionStart,n=this.selectionEnd;this.value=t.substring(0,i)+"	"+t.substring(n),this.selectionStart=this.selectionEnd=i+1,r.stop(e)}}),m.appendChild(v),m.appendChild(y),m.appendChild(I),y.style.height=f.clientHeight-80+"px",f.appendChild(m),this._dom=m},h.prototype.remove=function(e,t){this._dom&&t.getDom().removeChild(this._dom)},h.prototype.dispose=function(e,t){this.remove(e,t)},s.register("dataView",h),n.registerAction({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(e,t){var i=[];o.each(e.newOption.series,function(e){var n=t.getSeriesByName(e.name)[0];if(n){var r,a=n.get("data");i.push({name:e.name,data:(r=e.data,o.map(r,function(e,t){var i=a&&a[t];return o.isObject(i)&&!o.isArray(i)?(o.isObject(e)&&!o.isArray(e)&&(e=e.value),o.defaults({value:e},i)):e}))})}else i.push(o.extend({type:"scatter"},e))}),t.mergeOption(o.defaults({series:i},e.newOption))}),e.exports=h},98867:function(e,t,i){var n=i(47475),o=i(66023),r=i(40844),a=i(30170),s=i(18058),l=i(28542),c=i(66934),d=i(40412);i(34683);var u=c.toolbox.dataZoom,h=o.each;function p(e,t,i){(this._brushController=new r(i.getZr())).on("brush",o.bind(this._onBrush,this)).mount(),this._isZoomActive}p.defaultOption={show:!0,icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:o.clone(u.title)};var f=p.prototype;f.render=function(e,t,i,n){var o,r,l,c,d,u,h,p,f;this.model=e,this.ecModel=t,this.api=i,o=e,r=t,l=this,c=n,d=i,u=l._isZoomActive,c&&"takeGlobalCursor"===c.type&&(u="dataZoomSelect"===c.key&&c.dataZoomSelectActive),l._isZoomActive=u,o.setIconStatus("zoom",u?"emphasis":"normal"),h=new a(m(o.option),r,{include:["grid"]}),l._brushController.setPanels(h.makePanelOpts(d,function(e){return e.xAxisDeclared&&!e.yAxisDeclared?"lineX":!e.xAxisDeclared&&e.yAxisDeclared?"lineY":"rect"})).enableBrush(!!u&&{brushType:"auto",brushStyle:{lineWidth:0,fill:"rgba(0,0,0,0.2)"}}),p=e,f=t,p.setIconStatus("back",s.count(f)>1?"emphasis":"normal")},f.onclick=function(e,t,i){g[i].call(this)},f.remove=function(e,t){this._brushController.unmount()},f.dispose=function(e,t){this._brushController.dispose()};var g={zoom:function(){var e=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:e})},back:function(){this._dispatchZoomAction(s.pop(this.ecModel))}};function m(e){var t={};return o.each(["xAxisIndex","yAxisIndex"],function(i){t[i]=e[i],null==t[i]&&(t[i]="all"),(!1===t[i]||"none"===t[i])&&(t[i]=[])}),t}f._onBrush=function(e,t){if(t.isEnd&&e.length){var i={},n=this.ecModel;this._brushController.updateCovers([]),new a(m(this.model.option),n,{include:["grid"]}).matchOutputRanges(e,n,function(e,t,i){if("cartesian2d"===i.type){var n=e.brushType;"rect"===n?(o("x",i,t[0]),o("y",i,t[1])):o({lineX:"x",lineY:"y"}[n],i,t)}}),s.push(n,i),this._dispatchZoomAction(i)}function o(e,t,o){var r,a,s,c=t.getAxis(e),d=c.model,u=(r=e,a=d,n.eachComponent({mainType:"dataZoom",subType:"select"},function(e){e.getAxisModel(r,a.componentIndex)&&(s=e)}),s),h=u.findRepresentativeAxisProxy(d).getMinMaxSpan();(null!=h.minValueSpan||null!=h.maxValueSpan)&&(o=l(0,o.slice(),c.scale.getExtent(),0,h.minValueSpan,h.maxValueSpan)),u&&(i[u.id]={dataZoomId:u.id,startValue:o[0],endValue:o[1]})}},f._dispatchZoomAction=function(e){var t=[];h(e,function(e,i){t.push(o.clone(e))}),t.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:t})},d.register("dataZoom",p),n.registerPreprocessor(function(e){if(e){var t=e.dataZoom||(e.dataZoom=[]);o.isArray(t)||(e.dataZoom=t=[t]);var i=e.toolbox;if(i&&(o.isArray(i)&&(i=i[0]),i&&i.feature)){var n=i.feature.dataZoom;r("xAxis",n),r("yAxis",n)}}function r(i,n){if(n){var r,a,s,l=i+"Index",c=n[l];null==c||"all"===c||o.isArray(c)||(c=!1===c||"none"===c?[]:[c]),r=i,a=function(e,n){if(null==c||"all"===c||-1!==o.indexOf(c,n)){var r={type:"select",$fromToolbox:!0,id:"\0_ec_\0toolbox-dataZoom_"+i+n};r[l]=n,t.push(r)}},s=e[r],o.isArray(s)||(s=s?[s]:[]),h(s,a)}}}),e.exports=p},98821:function(e,t,i){var n=i(47475),o=i(66023),r=i(66934),a=i(40412),s=r.toolbox.magicType;function l(e){this.model=e}l.defaultOption={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z",tiled:"M2.3,2.2h22.8V25H2.3V2.2z M35,2.2h22.8V25H35V2.2zM2.3,35h22.8v22.8H2.3V35z M35,35h22.8v22.8H35V35z"},title:o.clone(s.title),option:{},seriesIndex:{}};var c=l.prototype;c.getIcons=function(){var e=this.model,t=e.get("icon"),i={};return o.each(e.get("type"),function(e){t[e]&&(i[e]=t[e])}),i};var d={line:function(e,t,i,n){if("bar"===e)return o.merge({id:t,type:"line",data:i.get("data"),stack:i.get("stack"),markPoint:i.get("markPoint"),markLine:i.get("markLine")},n.get("option.line")||{},!0)},bar:function(e,t,i,n){if("line"===e)return o.merge({id:t,type:"bar",data:i.get("data"),stack:i.get("stack"),markPoint:i.get("markPoint"),markLine:i.get("markLine")},n.get("option.bar")||{},!0)},stack:function(e,t,i,n){if("line"===e||"bar"===e)return o.merge({id:t,stack:"__ec_magicType_stack__"},n.get("option.stack")||{},!0)},tiled:function(e,t,i,n){if("line"===e||"bar"===e)return o.merge({id:t,stack:""},n.get("option.tiled")||{},!0)}},u=[["line","bar"],["stack","tiled"]];c.onclick=function(e,t,i){var n=this.model,r=n.get("seriesIndex."+i);if(d[i]){var a={series:[]};o.each(u,function(e){o.indexOf(e,i)>=0&&o.each(e,function(e){n.setIconStatus(e,"normal")})}),n.setIconStatus(i,"emphasis"),e.eachComponent({mainType:"series",query:null==r?null:{seriesIndex:r}},function(t){var r=t.subType,s=t.id,l=d[i](r,s,t,n);l&&(o.defaults(l,t.option),a.series.push(l));var c=t.coordinateSystem;if(c&&"cartesian2d"===c.type&&("line"===i||"bar"===i)){var u=c.getAxesByScale("ordinal")[0];if(u){var h=u.dim+"Axis",p=e.queryComponents({mainType:h,index:t.get(name+"Index"),id:t.get(name+"Id")})[0].componentIndex;a[h]=a[h]||[];for(var f=0;f<=p;f++)a[h][p]=a[h][p]||{};a[h][p].boundaryGap="bar"===i}}}),t.dispatchAction({type:"changeMagicType",currentType:i,newOption:a})}},n.registerAction({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(e,t){t.mergeOption(e.newOption)}),a.register("magicType",l),e.exports=l},37173:function(e,t,i){var n=i(47475),o=i(18058),r=i(66934),a=i(40412);function s(e){this.model=e}s.defaultOption={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:r.toolbox.restore.title},s.prototype.onclick=function(e,t,i){o.clear(e),t.dispatchAction({type:"restore",from:this.uid})},a.register("restore",s),n.registerAction({type:"restore",event:"restore",update:"prepareAndUpdate"},function(e,t){t.resetOption("recreate")}),e.exports=s},47611:function(e,t,i){var n=i(57674),o=i(66934),r=i(40412),a=o.toolbox.saveAsImage;function s(e){this.model=e}s.defaultOption={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:a.title,type:"png",name:"",excludeComponents:["toolbox"],pixelRatio:1,lang:a.lang.slice()},s.prototype.unusable=!n.canvasSupported,s.prototype.onclick=function(e,t){var i=this.model,o=i.get("name")||e.get("title.0.text")||"echarts",r=document.createElement("a"),a=i.get("type",!0)||"png";r.download=o+"."+a,r.target="_blank";var s=t.getConnectedDataURL({type:a,backgroundColor:i.get("backgroundColor",!0)||e.get("backgroundColor")||"#fff",excludeComponents:i.get("excludeComponents"),pixelRatio:i.get("pixelRatio")});if(r.href=s,"function"!=typeof MouseEvent||n.browser.ie||n.browser.edge)if(window.navigator.msSaveOrOpenBlob){for(var l=atob(s.split(",")[1]),c=l.length,d=new Uint8Array(c);c--;)d[c]=l.charCodeAt(c);var u=new Blob([d]);window.navigator.msSaveOrOpenBlob(u,o+"."+a)}else{var h=i.get("lang"),p='<body style="margin:0;"><img src="'+s+'" style="max-width:100%;" title="'+(h&&h[0]||"")+'" /></body>';window.open().document.write(p)}else{var f=new MouseEvent("click",{view:window,bubbles:!0,cancelable:!1});r.dispatchEvent(f)}},r.register("saveAsImage",s),e.exports=s},40412:function(e,t){var i={};t.register=function(e,t){i[e]=t},t.get=function(e){return i[e]}},27017:function(e,t,i){var n=i(47475);i(57498),i(76115),i(2719),n.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},function(){}),n.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},function(){})},4198:function(e,t,i){var n=i(66023),o=i(53453),r=i(3006),a=i(57674),s=i(20438),l=n.each,c=s.toCamelCase,d=["","-webkit-","-moz-","-o-"];function u(e,t){if(a.wxa)return null;var i=document.createElement("div"),n=this._zr=t.getZr();this.el=i,this._x=t.getWidth()/2,this._y=t.getHeight()/2,e.appendChild(i),this._container=e,this._show=!1,this._hideTimeout;var o=this;i.onmouseenter=function(){o._enterable&&(clearTimeout(o._hideTimeout),o._show=!0),o._inContent=!0},i.onmousemove=function(t){if(t=t||window.event,!o._enterable){var i=n.handler;r.normalizeEvent(e,t,!0),i.dispatch("mousemove",t)}},i.onmouseleave=function(){o._enterable&&o._show&&o.hideLater(o._hideDelay),o._inContent=!1}}u.prototype={constructor:u,_enterable:!0,update:function(){var e=this._container,t=e.currentStyle||document.defaultView.getComputedStyle(e),i=e.style;"absolute"!==i.position&&"absolute"!==t.position&&(i.position="relative")},show:function(e){clearTimeout(this._hideTimeout);var t,i,r,u,h,p,f,g,m,v,b=this.el;b.style.cssText="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(t=[],i=e.get("transitionDuration"),r=e.get("backgroundColor"),u=e.getModel("textStyle"),h=e.get("padding"),i&&t.push((f="left "+i+"s "+(p="cubic-bezier(0.23, 1, 0.32, 1)")+",top "+i+"s "+p,n.map(d,function(e){return e+"transition:"+f}).join(";"))),r&&(a.canvasSupported?t.push("background-Color:"+r):(t.push("background-Color:#"+o.toHex(r)),t.push("filter:alpha(opacity=70)"))),l(["width","color","radius"],function(i){var n="border-"+i,o=c(n),r=e.get(o);null!=r&&t.push(n+":"+r+("color"===i?"":"px"))}),t.push((g=[],m=u.get("fontSize"),(v=u.getTextColor())&&g.push("color:"+v),g.push("font:"+u.getFont()),m&&g.push("line-height:"+Math.round(3*m/2)+"px"),l(["decoration","align"],function(e){var t=u.get(e);t&&g.push("text-"+e+":"+t)}),g.join(";"))),null!=h&&t.push("padding:"+s.normalizeCssArray(h).join("px ")+"px"),t.join(";")+";")+";left:"+this._x+"px;top:"+this._y+"px;"+(e.get("extraCssText")||""),b.style.display=b.innerHTML?"block":"none",b.style.pointerEvents=this._enterable?"auto":"none",this._show=!0},setContent:function(e){this.el.innerHTML=null==e?"":e},setEnterable:function(e){this._enterable=e},getSize:function(){var e=this.el;return[e.clientWidth,e.clientHeight]},moveTo:function(e,t){var i,n=this._zr;n&&n.painter&&(i=n.painter.getViewportRootOffset())&&(e+=i.offsetLeft,t+=i.offsetTop);var o=this.el.style;o.left=e+"px",o.top=t+"px",this._x=e,this._y=t},hide:function(){this.el.style.display="none",this._show=!1},hideLater:function(e){this._show&&!(this._inContent&&this._enterable)&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(n.bind(this.hide,this),e)):this.hide())},isShow:function(){return this._show},getOuterSize:function(){var e=this.el.clientWidth,t=this.el.clientHeight;if(document.defaultView&&document.defaultView.getComputedStyle){var i=document.defaultView.getComputedStyle(this.el);i&&(e+=parseInt(i.paddingLeft,10)+parseInt(i.paddingRight,10)+parseInt(i.borderLeftWidth,10)+parseInt(i.borderRightWidth,10),t+=parseInt(i.paddingTop,10)+parseInt(i.paddingBottom,10)+parseInt(i.borderTopWidth,10)+parseInt(i.borderBottomWidth,10))}return{width:e,height:t}}},e.exports=u},76115:function(e,t,i){e.exports=i(47475).extendComponentModel({type:"tooltip",dependencies:["axisPointer"],defaultOption:{zlevel:0,z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:!1,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"rgba(50,50,50,0.7)",borderColor:"#333",borderRadius:4,borderWidth:0,padding:5,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#fff",fontSize:14}}})},38947:function(e,t,i){var n=i(66023),o=i(77894);function r(e){this._zr=e.getZr(),this._show=!1,this._hideTimeout}r.prototype={constructor:r,_enterable:!0,update:function(){},show:function(e){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.attr("show",!0),this._show=!0},setContent:function(e,t,i){this.el&&this._zr.remove(this.el);for(var n={},r=e,a="{marker",s=r.indexOf(a);s>=0;){var l=r.indexOf("|}"),c=r.substr(s+a.length,l-s-a.length);c.indexOf("sub")>-1?n["marker"+c]={textWidth:4,textHeight:4,textBorderRadius:2,textBackgroundColor:t[c],textOffset:[3,0]}:n["marker"+c]={textWidth:10,textHeight:10,textBorderRadius:5,textBackgroundColor:t[c]},s=(r=r.substr(l+1)).indexOf("{marker")}this.el=new o({style:{rich:n,text:e,textLineHeight:20,textBackgroundColor:i.get("backgroundColor"),textBorderRadius:i.get("borderRadius"),textFill:i.get("textStyle.color"),textPadding:i.get("padding")},z:i.get("z")}),this._zr.add(this.el);var d=this;this.el.on("mouseover",function(){d._enterable&&(clearTimeout(d._hideTimeout),d._show=!0),d._inContent=!0}),this.el.on("mouseout",function(){d._enterable&&d._show&&d.hideLater(d._hideDelay),d._inContent=!1})},setEnterable:function(e){this._enterable=e},getSize:function(){var e=this.el.getBoundingRect();return[e.width,e.height]},moveTo:function(e,t){this.el&&this.el.attr("position",[e,t])},hide:function(){this.el.hide(),this._show=!1},hideLater:function(e){this._show&&!(this._inContent&&this._enterable)&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(n.bind(this.hide,this),e)):this.hide())},isShow:function(){return this._show},getOuterSize:function(){return this.getSize()}},e.exports=r},2719:function(e,t,i){var n=i(47475),o=i(66023),r=i(57674),a=i(4198),s=i(38947),l=i(20438),c=i(98763),d=i(76165),u=i(28693),h=i(68006),p=i(27611),f=i(21774),g=i(16978),m=i(50272),v=i(70018).getTooltipRenderMode,b=o.bind,y=o.each,w=c.parsePercent,_=new d.Rect({shape:{x:-1,y:-1,width:2,height:2}});function x(e){for(var t=e.pop();e.length;){var i=e.pop();i&&(p.isInstance(i)&&(i=i.get("tooltip",!0)),"string"==typeof i&&(i={formatter:i}),t=new p(i,t,t.ecModel))}return t}function S(e,t){return e.dispatchAction||o.bind(t.dispatchAction,t)}function C(e){return"center"===e||"middle"===e}e.exports=n.extendComponentView({type:"tooltip",init:function(e,t){if(!r.node){var i,n=e.getComponent("tooltip").get("renderMode");this._renderMode=v(n),"html"===this._renderMode?(i=new a(t.getDom(),t),this._newLine="<br/>"):(i=new s(t),this._newLine="\n"),this._tooltipContent=i}},render:function(e,t,i){if(!r.node){this.group.removeAll(),this._tooltipModel=e,this._ecModel=t,this._api=i,this._lastDataByCoordSys=null,this._alwaysShowContent=e.get("alwaysShowContent");var n=this._tooltipContent;n.update(),n.setEnterable(e.get("enterable")),this._initGlobalListener(),this._keepShow()}},_initGlobalListener:function(){var e=this._tooltipModel.get("triggerOn");f.register("itemTooltip",this._api,b(function(t,i,n){"none"!==e&&(e.indexOf(t)>=0?this._tryShow(i,n):"leave"===t&&this._hide(n))},this))},_keepShow:function(){var e=this._tooltipModel,t=this._ecModel,i=this._api;if(null!=this._lastX&&null!=this._lastY&&"none"!==e.get("triggerOn")){var n=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){n.manuallyShowTip(e,t,i,{x:n._lastX,y:n._lastY})})}},manuallyShowTip:function(e,t,i,n){if(n.from!==this.uid&&!r.node){var o=S(n,i);this._ticket="";var a=n.dataByCoordSys;if(n.tooltip&&null!=n.x&&null!=n.y)_.position=[n.x,n.y],_.update(),_.tooltip=n.tooltip,this._tryShow({offsetX:n.x,offsetY:n.y,target:_},o);else if(a)this._tryShow({offsetX:n.x,offsetY:n.y,position:n.position,event:{},dataByCoordSys:n.dataByCoordSys,tooltipOption:n.tooltipOption},o);else if(null!=n.seriesIndex){if(this._manuallyAxisShowTip(e,t,i,n))return;var s=u(n,t),l=s.point[0],c=s.point[1];null!=l&&null!=c&&this._tryShow({offsetX:l,offsetY:c,position:n.position,target:s.el,event:{}},o)}else null!=n.x&&null!=n.y&&(i.dispatchAction({type:"updateAxisPointer",x:n.x,y:n.y}),this._tryShow({offsetX:n.x,offsetY:n.y,position:n.position,target:i.getZr().findHover(n.x,n.y).target,event:{}},o))}},manuallyHideTip:function(e,t,i,n){var o=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=null,n.from!==this.uid&&this._hide(S(n,i))},_manuallyAxisShowTip:function(e,t,i,n){var o=n.seriesIndex,r=n.dataIndex,a=t.getComponent("axisPointer").coordSysAxesInfo;if(null!=o&&null!=r&&null!=a){var s=t.getSeriesByIndex(o);if(s){var e=x([s.getData().getItemModel(r),s,(s.coordinateSystem||{}).model,e]);if("axis"===e.get("trigger"))return i.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:r,position:n.position}),!0}}},_tryShow:function(e,t){var i=e.target;if(this._tooltipModel){this._lastX=e.offsetX,this._lastY=e.offsetY;var n=e.dataByCoordSys;n&&n.length?this._showAxisTooltip(n,e):i&&null!=i.dataIndex?(this._lastDataByCoordSys=null,this._showSeriesItemTooltip(e,i,t)):i&&i.tooltip?(this._lastDataByCoordSys=null,this._showComponentItemTooltip(e,i,t)):(this._lastDataByCoordSys=null,this._hide(t))}},_showOrMove:function(e,t){var i=e.get("showDelay");t=o.bind(t,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(t,i):t()},_showAxisTooltip:function(e,t){var i=this._ecModel,n=this._tooltipModel,r=[t.offsetX,t.offsetY],a=[],s=[],c=x([t.tooltipOption,n]),d=this._renderMode,u=this._newLine,h={};y(e,function(e){y(e.dataByAxis,function(e){var t=i.getComponent(e.axisDim+"Axis",e.axisIndex),n=e.value,r=[];if(t&&null!=n){var c=m.getValueLabel(n,t.axis,i,e.seriesDataIndices,e.valueLabelOpt);o.each(e.seriesDataIndices,function(a){var l=i.getSeriesByIndex(a.seriesIndex),u=a.dataIndexInside,p=l&&l.getDataParams(u);if(p.axisDim=e.axisDim,p.axisIndex=e.axisIndex,p.axisType=e.axisType,p.axisId=e.axisId,p.axisValue=g.getAxisRawValue(t.axis,n),p.axisValueLabel=c,p){s.push(p);var f,m=l.formatTooltip(u,!0,null,d);if(o.isObject(m)){f=m.html;var v=m.markers;o.merge(h,v)}else f=m;r.push(f)}}),"html"!==d?a.push(r.join(u)):a.push((c?l.encodeHTML(c)+u:"")+r.join(u))}})},this),a.reverse(),a=a.join(this._newLine+this._newLine);var p=t.position;this._showOrMove(c,function(){this._updateContentNotChangedOnAxis(e)?this._updatePosition(c,p,r[0],r[1],this._tooltipContent,s):this._showTooltipContent(c,a,s,Math.random(),r[0],r[1],p,void 0,h)})},_showSeriesItemTooltip:function(e,t,i){var n,r,a=this._ecModel,s=t.seriesIndex,l=a.getSeriesByIndex(s),c=t.dataModel||l,d=t.dataIndex,u=t.dataType,h=c.getData(),p=x([h.getItemModel(d),c,l&&(l.coordinateSystem||{}).model,this._tooltipModel]),f=p.get("trigger");if(null==f||"item"===f){var g=c.getDataParams(d,u),m=c.formatTooltip(d,!1,u,this._renderMode);o.isObject(m)?(n=m.html,r=m.markers):(n=m,r=null);var v="item_"+c.name+"_"+d;this._showOrMove(p,function(){this._showTooltipContent(p,n,g,v,e.offsetX,e.offsetY,e.position,e.target,r)}),i({type:"showTip",dataIndexInside:d,dataIndex:h.getRawIndex(d),seriesIndex:s,from:this.uid})}},_showComponentItemTooltip:function(e,t,i){var n=t.tooltip;if("string"==typeof n){var o=n;n={content:o,formatter:o}}var r=new p(n,this._tooltipModel,this._ecModel),a=r.get("content"),s=Math.random();this._showOrMove(r,function(){this._showTooltipContent(r,a,r.get("formatterParams")||{},s,e.offsetX,e.offsetY,e.position,t)}),i({type:"showTip",from:this.uid})},_showTooltipContent:function(e,t,i,n,o,r,a,s,c){if(this._ticket="",e.get("showContent")&&e.get("show")){var d=this._tooltipContent,u=e.get("formatter");a=a||e.get("position");var h=t;if(u&&"string"==typeof u)h=l.formatTpl(u,i,!0);else if("function"==typeof u){var p=b(function(t,n){t===this._ticket&&(d.setContent(n,c,e),this._updatePosition(e,a,o,r,d,i,s))},this);this._ticket=n,h=u(i,n,p)}d.setContent(h,c,e),d.show(e),this._updatePosition(e,a,o,r,d,i,s)}},_updatePosition:function(e,t,i,n,r,a,s){var l=this._api.getWidth(),c=this._api.getHeight();t=t||e.get("position");var d=r.getSize(),u=e.get("align"),p=e.get("verticalAlign"),f=s&&s.getBoundingRect().clone();if(s&&f.applyTransform(s.transform),"function"==typeof t&&(t=t([i,n],a,r.el,f,{viewSize:[l,c],contentSize:d.slice()})),o.isArray(t))i=w(t[0],l),n=w(t[1],c);else if(o.isObject(t)){t.width=d[0],t.height=d[1];var g=h.getLayoutRect(t,{width:l,height:c});i=g.x,n=g.y,u=null,p=null}else if("string"==typeof t&&s){var m=function(e,t,i){var n=i[0],o=i[1],r=0,a=0,s=t.width,l=t.height;switch(e){case"inside":r=t.x+s/2-n/2,a=t.y+l/2-o/2;break;case"top":r=t.x+s/2-n/2,a=t.y-o-5;break;case"bottom":r=t.x+s/2-n/2,a=t.y+l+5;break;case"left":r=t.x-n-5,a=t.y+l/2-o/2;break;case"right":r=t.x+s+5,a=t.y+l/2-o/2}return[r,a]}(t,f,d);i=m[0],n=m[1]}else{var v,b,y,_,x,S,k,I,A,T,m=(v=i,b=n,y=r,_=l,x=c,S=u?null:20,k=p?null:20,A=(I=y.getOuterSize()).width,T=I.height,null!=S&&(v+A+S>_?v-=A+S:v+=S),null!=k&&(b+T+k>x?b-=T+k:b+=k),[v,b]);i=m[0],n=m[1]}if(u&&(i-=C(u)?d[0]/2:"right"===u?d[0]:0),p&&(n-=C(p)?d[1]/2:"bottom"===p?d[1]:0),e.get("confine")){var E,R,D,O,M,N,P,L,m=(E=i,R=n,D=r,O=l,M=c,P=(N=D.getOuterSize()).width,L=N.height,E=Math.min(E+P,O)-P,R=Math.min(R+L,M)-L,[E=Math.max(E,0),R=Math.max(R,0)]);i=m[0],n=m[1]}r.moveTo(i,n)},_updateContentNotChangedOnAxis:function(e){var t=this._lastDataByCoordSys,i=!!t&&t.length===e.length;return i&&y(t,function(t,n){var o=t.dataByAxis||{},r=(e[n]||{}).dataByAxis||[];(i&=o.length===r.length)&&y(o,function(e,t){var n=r[t]||{},o=e.seriesDataIndices||[],a=n.seriesDataIndices||[];(i&=e.value===n.value&&e.axisType===n.axisType&&e.axisId===n.axisId&&o.length===a.length)&&y(o,function(e,t){var n=a[t];i&=e.seriesIndex===n.seriesIndex&&e.dataIndex===n.dataIndex})})}),this._lastDataByCoordSys=e,!!i},_hide:function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},dispose:function(e,t){r.node||(this._tooltipContent.hide(),f.unregister("itemTooltip",t))}})},4781:function(e,t,i){i(34457),i(35991)},7744:function(e,t,i){var n=i(66023),o=i(56863),r=i(98763),a=o.extend({type:"visualMap.continuous",defaultOption:{align:"auto",calculable:!1,range:null,realtime:!0,itemHeight:null,itemWidth:null,hoverLink:!0,hoverLinkDataSize:null,hoverLinkOnHandle:null},optionUpdated:function(e,t){a.superApply(this,"optionUpdated",arguments),this.resetExtent(),this.resetVisual(function(e){e.mappingMethod="linear",e.dataExtent=this.getExtent()}),this._resetRange()},resetItemSize:function(){a.superApply(this,"resetItemSize",arguments);var e=this.itemSize;"horizontal"===this._orient&&e.reverse(),(null==e[0]||isNaN(e[0]))&&(e[0]=20),(null==e[1]||isNaN(e[1]))&&(e[1]=140)},_resetRange:function(){var e=this.getExtent(),t=this.option.range;!t||t.auto?(e.auto=1,this.option.range=e):n.isArray(t)&&(t[0]>t[1]&&t.reverse(),t[0]=Math.max(t[0],e[0]),t[1]=Math.min(t[1],e[1]))},completeVisualOption:function(){o.prototype.completeVisualOption.apply(this,arguments),n.each(this.stateList,function(e){var t=this.option.controller[e].symbolSize;t&&t[0]!==t[1]&&(t[0]=0)},this)},setSelected:function(e){this.option.range=e.slice(),this._resetRange()},getSelected:function(){var e=this.getExtent(),t=r.asc((this.get("range")||[]).slice());return t[0]>e[1]&&(t[0]=e[1]),t[1]>e[1]&&(t[1]=e[1]),t[0]<e[0]&&(t[0]=e[0]),t[1]<e[0]&&(t[1]=e[0]),t},getValueState:function(e){var t=this.option.range,i=this.getExtent();return(t[0]<=i[0]||t[0]<=e)&&(t[1]>=i[1]||e<=t[1])?"inRange":"outOfRange"},findTargetDataIndices:function(e){var t=[];return this.eachTargetSeries(function(i){var n=[],o=i.getData();o.each(this.getDataDimension(o),function(t,i){e[0]<=t&&t<=e[1]&&n.push(i)},this),t.push({seriesId:i.id,dataIndex:n})},this),t},getVisualMeta:function(e){var t=s(this,"outOfRange",this.getExtent()),i=s(this,"inRange",this.option.range.slice()),n=[];function o(t,i){n.push({value:t,color:e(t,i)})}for(var r=0,a=0,l=i.length,c=t.length;a<c&&(!i.length||t[a]<=i[0]);a++)t[a]<i[r]&&o(t[a],"outOfRange");for(var d=1;r<l;r++,d=0)d&&n.length&&o(i[r],"outOfRange"),o(i[r],"inRange");for(var d=1;a<c;a++)(!i.length||i[i.length-1]<t[a])&&(d&&(n.length&&o(n[n.length-1].value,"outOfRange"),d=0),o(t[a],"outOfRange"));var u=n.length;return{stops:n,outerColors:[u?n[0].color:"transparent",u?n[u-1].color:"transparent"]}}});function s(e,t,i){if(i[0]===i[1])return i.slice();for(var n=(i[1]-i[0])/200,o=i[0],r=[],a=0;a<=200&&o<i[1];a++)r.push(o),o+=n;return r.push(i[1]),r}e.exports=a},55941:function(e,t,i){var n=i(66023),o=i(53429),r=i(3006),a=i(8541),s=i(76165),l=i(98763),c=i(28542),d=i(86655),u=i(70018),h=l.linearMap,p=n.each,f=Math.min,g=Math.max,m=a.extend({type:"visualMap.continuous",init:function(){m.superApply(this,"init",arguments),this._shapes={},this._dataInterval=[],this._handleEnds=[],this._orient,this._useHandle,this._hoverLinkDataIndices=[],this._dragging,this._hovering},doRender:function(e,t,i,n){n&&"selectDataRange"===n.type&&n.from===this.uid||this._buildView()},_buildView:function(){this.group.removeAll();var e=this.visualMapModel,t=this.group;this._orient=e.get("orient"),this._useHandle=e.get("calculable"),this._resetInterval(),this._renderBar(t);var i=e.get("text");this._renderEndsText(t,i,0),this._renderEndsText(t,i,1),this._updateView(!0),this.renderBackground(t),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(t)},_renderEndsText:function(e,t,i){if(t){var n=t[1-i];n=null!=n?n+"":"";var o=this.visualMapModel,r=o.get("textGap"),a=o.itemSize,l=this._shapes.barGroup,c=this._applyTransform([a[0]/2,0===i?-r:a[1]+r],l),d=this._applyTransform(0===i?"bottom":"top",l),u=this._orient,h=this.visualMapModel.textStyleModel;this.group.add(new s.Text({style:{x:c[0],y:c[1],textVerticalAlign:"horizontal"===u?"middle":d,textAlign:"horizontal"===u?d:"center",text:n,textFont:h.getFont(),textFill:h.getTextColor()}}))}},_renderBar:function(e){var t=this.visualMapModel,i=this._shapes,o=t.itemSize,r=this._orient,a=this._useHandle,s=d.getItemAlign(t,this.api,o),l=i.barGroup=this._createBarGroup(s);l.add(i.outOfRange=v()),l.add(i.inRange=v(null,a?y(this._orient):null,n.bind(this._dragHandle,this,"all",!1),n.bind(this._dragHandle,this,"all",!0)));var c=t.textStyleModel.getTextRect("国"),u=g(c.width,c.height);a&&(i.handleThumbs=[],i.handleLabels=[],i.handleLabelPoints=[],this._createHandle(l,0,o,u,r,s),this._createHandle(l,1,o,u,r,s)),this._createIndicator(l,o,u,r),e.add(l)},_createHandle:function(e,t,i,o,a){var l,c,d=n.bind(this._dragHandle,this,t,!1),u=n.bind(this._dragHandle,this,t,!0),h=v((l=t,c=o,0===l?[[0,0],[c,0],[c,-c]]:[[0,0],[c,0],[c,c]]),y(this._orient),d,u);h.position[0]=i[0],e.add(h);var p=this.visualMapModel.textStyleModel,f=new s.Text({draggable:!0,drift:d,onmousemove:function(e){r.stop(e.event)},ondragend:u,style:{x:0,y:0,text:"",textFont:p.getFont(),textFill:p.getTextColor()}});this.group.add(f);var g=["horizontal"===a?o/2:1.5*o,"horizontal"===a?0===t?-(1.5*o):1.5*o:0===t?-o/2:o/2],m=this._shapes;m.handleThumbs[t]=h,m.handleLabelPoints[t]=g,m.handleLabels[t]=f},_createIndicator:function(e,t,i,n){var o=v([[0,0]],"move");o.position[0]=t[0],o.attr({invisible:!0,silent:!0}),e.add(o);var r=this.visualMapModel.textStyleModel,a=new s.Text({silent:!0,invisible:!0,style:{x:0,y:0,text:"",textFont:r.getFont(),textFill:r.getTextColor()}});this.group.add(a);var l=this._shapes;l.indicator=o,l.indicatorLabel=a,l.indicatorLabelPoint=["horizontal"===n?i/2:9,0]},_dragHandle:function(e,t,i,n){if(this._useHandle){if(this._dragging=!t,!t){var o=this._applyTransform([i,n],this._shapes.barGroup,!0);this._updateInterval(e,o[1]),this._updateView()}!this.visualMapModel.get("realtime")===t&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),t?this._hovering||this._clearHoverLinkToSeries():b(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[e],!1)}},_resetInterval:function(){var e=this.visualMapModel,t=this._dataInterval=e.getSelected(),i=e.getExtent(),n=[0,e.itemSize[1]];this._handleEnds=[h(t[0],i,n,!0),h(t[1],i,n,!0)]},_updateInterval:function(e,t){t=t||0;var i=this.visualMapModel,n=this._handleEnds,o=[0,i.itemSize[1]];c(t,n,o,e,0);var r=i.getExtent();this._dataInterval=[h(n[0],o,r,!0),h(n[1],o,r,!0)]},_updateView:function(e){var t=this.visualMapModel,i=t.getExtent(),n=this._shapes,o=[0,t.itemSize[1]],r=e?o:this._handleEnds,a=this._createBarVisual(this._dataInterval,i,r,"inRange"),s=this._createBarVisual(i,i,o,"outOfRange");n.inRange.setStyle({fill:a.barColor,opacity:a.opacity}).setShape("points",a.barPoints),n.outOfRange.setStyle({fill:s.barColor,opacity:s.opacity}).setShape("points",s.barPoints),this._updateHandle(r,a)},_createBarVisual:function(e,t,i,n){var r={forceState:n,convertOpacityToAlpha:!0},a=this._makeColorGradient(e,r),s=[this.getControllerVisual(e[0],"symbolSize",r),this.getControllerVisual(e[1],"symbolSize",r)],l=this._createBarPoints(i,s);return{barColor:new o(0,0,0,1,a),barPoints:l,handlesColor:[a[0].color,a[a.length-1].color]}},_makeColorGradient:function(e,t){var i=[],n=(e[1]-e[0])/100;i.push({color:this.getControllerVisual(e[0],"color",t),offset:0});for(var o=1;o<100;o++){var r=e[0]+n*o;if(r>e[1])break;i.push({color:this.getControllerVisual(r,"color",t),offset:o/100})}return i.push({color:this.getControllerVisual(e[1],"color",t),offset:1}),i},_createBarPoints:function(e,t){var i=this.visualMapModel.itemSize;return[[i[0]-t[0],e[0]],[i[0],e[0]],[i[0],e[1]],[i[0]-t[1],e[1]]]},_createBarGroup:function(e){var t=this._orient,i=this.visualMapModel.get("inverse");return new s.Group("horizontal"===t&&!i?{scale:"bottom"===e?[1,1]:[-1,1],rotation:Math.PI/2}:"horizontal"===t&&i?{scale:"bottom"===e?[-1,1]:[1,1],rotation:-Math.PI/2}:"vertical"===t&&!i?{scale:"left"===e?[1,-1]:[-1,-1]}:{scale:"left"===e?[1,1]:[-1,1]})},_updateHandle:function(e,t){if(this._useHandle){var i=this._shapes,n=this.visualMapModel,o=i.handleThumbs,r=i.handleLabels;p([0,1],function(a){var l=o[a];l.setStyle("fill",t.handlesColor[a]),l.position[1]=e[a];var c=s.applyTransform(i.handleLabelPoints[a],s.getTransform(l,this.group));r[a].setStyle({x:c[0],y:c[1],text:n.formatValueText(this._dataInterval[a]),textVerticalAlign:"middle",textAlign:this._applyTransform("horizontal"===this._orient?0===a?"bottom":"top":"left",i.barGroup)})},this)}},_showIndicator:function(e,t,i,n){var o=this.visualMapModel,r=o.getExtent(),a=o.itemSize,l=h(e,r,[0,a[1]],!0),c=this._shapes,d=c.indicator;if(d){d.position[1]=l,d.attr("invisible",!1),d.setShape("points",(u=!!i,p=n,m=l,v=a[1],u?[[0,-f(p,g(m,0))],[6,0],[0,f(p,g(v-m,0))]]:[[0,0],[5,-5],[5,5]]));var u,p,m,v,b=this.getControllerVisual(e,"color",{convertOpacityToAlpha:!0});d.setStyle("fill",b);var y=s.applyTransform(c.indicatorLabelPoint,s.getTransform(d,this.group)),w=c.indicatorLabel;w.attr("invisible",!1);var _=this._applyTransform("left",c.barGroup),x=this._orient;w.setStyle({text:(i||"")+o.formatValueText(t),textVerticalAlign:"horizontal"===x?_:"middle",textAlign:"horizontal"===x?"center":_,x:y[0],y:y[1]})}},_enableHoverLinkToSeries:function(){var e=this;this._shapes.barGroup.on("mousemove",function(t){if(e._hovering=!0,!e._dragging){var i=e.visualMapModel.itemSize,n=e._applyTransform([t.offsetX,t.offsetY],e._shapes.barGroup,!0,!0);n[1]=f(g(0,n[1]),i[1]),e._doHoverLinkToSeries(n[1],0<=n[0]&&n[0]<=i[0])}}).on("mouseout",function(){e._hovering=!1,e._dragging||e._clearHoverLinkToSeries()})},_enableHoverLinkFromSeries:function(){var e=this.api.getZr();this.visualMapModel.option.hoverLink?(e.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),e.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},_doHoverLinkToSeries:function(e,t){var i=this.visualMapModel,n=i.itemSize;if(i.option.hoverLink){var o,r,a,s,l,c=[0,n[1]],p=i.getExtent();e=f(g(c[0],e),c[1]);var m=(o=i,r=p,a=c,s=6,(l=o.get("hoverLinkDataSize"))&&(s=h(l,r,a,!0)/2),s),v=[e-m,e+m],y=h(e,c,p,!0),w=[h(v[0],c,p,!0),h(v[1],c,p,!0)];v[0]<c[0]&&(w[0]=-1/0),v[1]>c[1]&&(w[1]=1/0),t&&(w[0]===-1/0?this._showIndicator(y,w[1],"< ",m):w[1]===1/0?this._showIndicator(y,w[0],"> ",m):this._showIndicator(y,y,"≈ ",m));var _=this._hoverLinkDataIndices,x=[];(t||b(i))&&(x=this._hoverLinkDataIndices=i.findTargetDataIndices(w));var S=u.compressBatches(_,x);this._dispatchHighDown("downplay",d.convertDataIndex(S[0])),this._dispatchHighDown("highlight",d.convertDataIndex(S[1]))}},_hoverLinkFromSeriesMouseOver:function(e){var t=e.target,i=this.visualMapModel;if(t&&null!=t.dataIndex){var n=this.ecModel.getSeriesByIndex(t.seriesIndex);if(i.isTargetSeries(n)){var o=n.getData(t.dataType),r=o.get(i.getDataDimension(o),t.dataIndex,!0);isNaN(r)||this._showIndicator(r,r)}}},_hideIndicator:function(){var e=this._shapes;e.indicator&&e.indicator.attr("invisible",!0),e.indicatorLabel&&e.indicatorLabel.attr("invisible",!0)},_clearHoverLinkToSeries:function(){this._hideIndicator();var e=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",d.convertDataIndex(e)),e.length=0},_clearHoverLinkFromSeries:function(){this._hideIndicator();var e=this.api.getZr();e.off("mouseover",this._hoverLinkFromSeriesMouseOver),e.off("mouseout",this._hideIndicator)},_applyTransform:function(e,t,i,o){var r=s.getTransform(t,o?null:this.group);return s[n.isArray(e)?"applyTransform":"transformDirection"](e,r,i)},_dispatchHighDown:function(e,t){t&&t.length&&this.api.dispatchAction({type:e,batch:t})},dispose:function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},remove:function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()}});function v(e,t,i,n){return new s.Polygon({shape:{points:e},draggable:!!i,cursor:t,drift:i,onmousemove:function(e){r.stop(e.event)},ondragend:n})}function b(e){var t=e.get("hoverLinkOnHandle");return!!(null==t?e.get("realtime"):t)}function y(e){return"vertical"===e?"ns-resize":"ew-resize"}e.exports=m},67320:function(e,t,i){i(38603).__DEV__;var n=i(66023),o=i(56863),r=i(95138),a=i(61224),s=i(98763).reformIntervals,l=o.extend({type:"visualMap.piecewise",defaultOption:{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieceList:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0,showLabel:null},optionUpdated:function(e,t){l.superApply(this,"optionUpdated",arguments),this._pieceList=[],this.resetExtent();var i=this._mode=this._determineMode();c[this._mode].call(this),this._resetSelected(e,t);var o=this.option.categories;this.resetVisual(function(e,t){"categories"===i?(e.mappingMethod="category",e.categories=n.clone(o)):(e.dataExtent=this.getExtent(),e.mappingMethod="piecewise",e.pieceList=n.map(this._pieceList,function(e){var e=n.clone(e);return"inRange"!==t&&(e.visual=null),e}))})},completeVisualOption:function(){var e=this.option,t={},i=r.listVisualTypes(),s=this.isCategory();function l(e,t,i){return e&&e[t]&&(n.isObject(e[t])?e[t].hasOwnProperty(i):e[t]===i)}n.each(e.pieces,function(e){n.each(i,function(i){e.hasOwnProperty(i)&&(t[i]=1)})}),n.each(t,function(t,i){var o=0;n.each(this.stateList,function(t){o|=l(e,t,i)||l(e.target,t,i)},this),o||n.each(this.stateList,function(t){(e[t]||(e[t]={}))[i]=a.get(i,"inRange"===t?"active":"inactive",s)})},this),o.prototype.completeVisualOption.apply(this,arguments)},_resetSelected:function(e,t){var i=this.option,o=this._pieceList,r=(t?i:e).selected||{};if(i.selected=r,n.each(o,function(e,t){var i=this.getSelectedMapKey(e);r.hasOwnProperty(i)||(r[i]=!0)},this),"single"===i.selectedMode){var a=!1;n.each(o,function(e,t){var i=this.getSelectedMapKey(e);r[i]&&(a?r[i]=!1:a=!0)},this)}},getSelectedMapKey:function(e){return"categories"===this._mode?e.value+"":e.index+""},getPieceList:function(){return this._pieceList},_determineMode:function(){var e=this.option;return e.pieces&&e.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},setSelected:function(e){this.option.selected=n.clone(e)},getValueState:function(e){var t=r.findPieceIndex(e,this._pieceList);return null!=t&&this.option.selected[this.getSelectedMapKey(this._pieceList[t])]?"inRange":"outOfRange"},findTargetDataIndices:function(e){var t=[];return this.eachTargetSeries(function(i){var n=[],o=i.getData();o.each(this.getDataDimension(o),function(t,i){r.findPieceIndex(t,this._pieceList)===e&&n.push(i)},this),t.push({seriesId:i.id,dataIndex:n})},this),t},getRepresentValue:function(e){var t;if(this.isCategory())t=e.value;else if(null!=e.value)t=e.value;else{var i=e.interval||[];t=i[0]===-1/0&&i[1]===1/0?0:(i[0]+i[1])/2}return t},getVisualMeta:function(e){if(!this.isCategory()){var t=[],i=[],o=this,r=this._pieceList.slice();if(r.length){var a=r[0].interval[0];a!==-1/0&&r.unshift({interval:[-1/0,a]}),(a=r[r.length-1].interval[1])!==1/0&&r.push({interval:[a,1/0]})}else r.push({interval:[-1/0,1/0]});var s=-1/0;return n.each(r,function(e){var t=e.interval;t&&(t[0]>s&&l([s,t[0]],"outOfRange"),l(t.slice()),s=t[1])},this),{stops:t,outerColors:i}}function l(n,r){var a=o.getRepresentValue({interval:n});r||(r=o.getValueState(a));var s=e(a,r);n[0]===-1/0?i[0]=s:n[1]===1/0?i[1]=s:t.push({value:n[0],color:s},{value:n[1],color:s})}}}),c={splitNumber:function(){var e=this.option,t=this._pieceList,i=Math.min(e.precision,20),o=this.getExtent(),r=e.splitNumber;e.splitNumber=r=Math.max(parseInt(r,10),1);for(var a=(o[1]-o[0])/r;+a.toFixed(i)!==a&&i<5;)i++;e.precision=i,a=+a.toFixed(i);var l=0;e.minOpen&&t.push({index:l++,interval:[-1/0,o[0]],close:[0,0]});for(var c=o[0],d=l+r;l<d;c+=a){var u=l===r-1?o[1]:c+a;t.push({index:l++,interval:[c,u],close:[1,1]})}e.maxOpen&&t.push({index:l++,interval:[o[1],1/0],close:[0,0]}),s(t),n.each(t,function(e){e.text=this.formatValueText(e.interval)},this)},categories:function(){var e=this.option;n.each(e.categories,function(e){this._pieceList.push({text:this.formatValueText(e,!0),value:e})},this),d(e,this._pieceList)},pieces:function(){var e=this.option,t=this._pieceList;n.each(e.pieces,function(e,i){n.isObject(e)||(e={value:e});var o={text:"",index:i};if(null!=e.label&&(o.text=e.label),e.hasOwnProperty("value")){var a=o.value=e.value;o.interval=[a,a],o.close=[1,1]}else{for(var s=o.interval=[],l=o.close=[0,0],c=[1,0,1],d=[-1/0,1/0],u=[],h=0;h<2;h++){for(var p=[["gte","gt","min"],["lte","lt","max"]][h],f=0;f<3&&null==s[h];f++)s[h]=e[p[f]],l[h]=c[f],u[h]=2===f;null==s[h]&&(s[h]=d[h])}u[0]&&s[1]===1/0&&(l[0]=0),u[1]&&s[0]===-1/0&&(l[1]=0),s[0]===s[1]&&l[0]&&l[1]&&(o.value=s[0])}o.visual=r.retrieveVisuals(e),t.push(o)},this),d(e,t),s(t),n.each(t,function(e){var t=e.close,i=[["<","≤"][t[1]],[">","≥"][t[0]]];e.text=e.text||this.formatValueText(null!=e.value?e.value:e.interval,!1,i)},this)}};function d(e,t){var i=e.inverse;("vertical"===e.orient?!i:i)&&t.reverse()}e.exports=l},11689:function(e,t,i){var n=i(66023),o=i(8541),r=i(76165),a=i(87557).createSymbol,s=i(68006),l=i(86655);e.exports=o.extend({type:"visualMap.piecewise",doRender:function(){var e=this.group;e.removeAll();var t=this.visualMapModel,i=t.get("textGap"),o=t.textStyleModel,a=o.getFont(),l=o.getTextColor(),c=this._getItemAlign(),d=t.itemSize,u=this._getViewData(),h=u.endsText,p=n.retrieve(t.get("showLabel",!0),!h);h&&this._renderEndsText(e,h[0],d,p,c),n.each(u.viewPieceList,function(o){var s=o.piece,u=new r.Group;u.onclick=n.bind(this._onItemClick,this,s),this._enableHoverLink(u,o.indexInModelPieceList);var h=t.getRepresentValue(s);if(this._createItemSymbol(u,h,[0,0,d[0],d[1]]),p){var f=this.visualMapModel.getValueState(h);u.add(new r.Text({style:{x:"right"===c?-i:d[0]+i,y:d[1]/2,text:s.text,textVerticalAlign:"middle",textAlign:c,textFont:a,textFill:l,opacity:"outOfRange"===f?.5:1}}))}e.add(u)},this),h&&this._renderEndsText(e,h[1],d,p,c),s.box(t.get("orient"),e,t.get("itemGap")),this.renderBackground(e),this.positionGroup(e)},_enableHoverLink:function(e,t){e.on("mouseover",n.bind(i,this,"highlight")).on("mouseout",n.bind(i,this,"downplay"));function i(e){var i=this.visualMapModel;i.option.hoverLink&&this.api.dispatchAction({type:e,batch:l.convertDataIndex(i.findTargetDataIndices(t))})}},_getItemAlign:function(){var e=this.visualMapModel,t=e.option;if("vertical"===t.orient)return l.getItemAlign(e,this.api,e.itemSize);var i=t.align;return i&&"auto"!==i||(i="left"),i},_renderEndsText:function(e,t,i,n,o){if(t){var a=new r.Group,s=this.visualMapModel.textStyleModel;a.add(new r.Text({style:{x:n?"right"===o?i[0]:0:i[0]/2,y:i[1]/2,textVerticalAlign:"middle",textAlign:n?o:"center",text:t,textFont:s.getFont(),textFill:s.getTextColor()}})),e.add(a)}},_getViewData:function(){var e=this.visualMapModel,t=n.map(e.getPieceList(),function(e,t){return{piece:e,indexInModelPieceList:t}}),i=e.get("text"),o=e.get("orient"),r=e.get("inverse");return("horizontal"===o?r:!r)?t.reverse():i&&(i=i.slice().reverse()),{viewPieceList:t,endsText:i}},_createItemSymbol:function(e,t,i){e.add(a(this.getControllerVisual(t,"symbol"),i[0],i[1],i[2],i[3],this.getControllerVisual(t,"color")))},_onItemClick:function(e){var t=this.visualMapModel,i=t.option,o=n.clone(i.selected),r=t.getSelectedMapKey(e);"single"===i.selectedMode?(o[r]=!0,n.each(o,function(e,t){o[t]=t===r})):o[r]=!o[r],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}})},56863:function(e,t,i){var n=i(47475),o=i(66023),r=i(57674),a=i(61224),s=i(95138),l=i(49002),c=i(70018),d=i(98763),u=s.mapVisual,h=s.eachVisual,p=o.isArray,f=o.each,g=d.asc,m=d.linearMap,v=o.noop;e.exports=n.extendComponentModel({type:"visualMap",dependencies:["series"],stateList:["inRange","outOfRange"],replacableOptionKeys:["inRange","outOfRange","target","controller","color"],dataBound:[-1/0,1/0],layoutMode:{type:"box",ignoreSize:!0},defaultOption:{show:!0,zlevel:0,z:4,seriesIndex:"all",min:0,max:200,dimension:null,inRange:null,outOfRange:null,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,color:null,formatter:null,text:null,textStyle:{color:"#333"}},init:function(e,t,i){this._dataExtent,this.targetVisuals={},this.controllerVisuals={},this.textStyleModel,this.itemSize,this.mergeDefaultAndTheme(e,i)},optionUpdated:function(e,t){var i=this.option;r.canvasSupported||(i.realtime=!1),t||l.replaceVisualOption(i,e,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},resetVisual:function(e){var t=this.stateList;e=o.bind(e,this),this.controllerVisuals=l.createVisualMappings(this.option.controller,t,e),this.targetVisuals=l.createVisualMappings(this.option.target,t,e)},getTargetSeriesIndices:function(){var e=this.option.seriesIndex,t=[];return null==e||"all"===e?this.ecModel.eachSeries(function(e,i){t.push(i)}):t=c.normalizeToArray(e),t},eachTargetSeries:function(e,t){o.each(this.getTargetSeriesIndices(),function(i){e.call(t,this.ecModel.getSeriesByIndex(i))},this)},isTargetSeries:function(e){var t=!1;return this.eachTargetSeries(function(i){i===e&&(t=!0)}),t},formatValueText:function(e,t,i){var n,r,a=this.option,s=a.precision,l=this.dataBound,c=a.formatter;if(i=i||["<",">"],o.isArray(e)&&(e=e.slice(),n=!0),r=t?e:n?[d(e[0]),d(e[1])]:d(e),o.isString(c))return c.replace("{value}",n?r[0]:r).replace("{value2}",n?r[1]:r);if(o.isFunction(c))return n?c(e[0],e[1]):c(e);if(!n)return r;if(e[0]===l[0])return i[0]+" "+r[1];if(e[1]===l[1])return i[1]+" "+r[0];return r[0]+" - "+r[1];function d(e){return e===l[0]?"min":e===l[1]?"max":(+e).toFixed(Math.min(s,20))}},resetExtent:function(){var e=this.option,t=g([e.min,e.max]);this._dataExtent=t},getDataDimension:function(e){var t=this.option.dimension,i=e.dimensions;if(null!=t||i.length){if(null!=t)return e.getDimension(t);for(var n=e.dimensions,o=n.length-1;o>=0;o--){var r=n[o];if(!e.getDimensionInfo(r).isCalculationCoord)return r}}},getExtent:function(){return this._dataExtent.slice()},completeVisualOption:function(){var e=this.ecModel,t=this.option,i={inRange:t.inRange,outOfRange:t.outOfRange},n=t.target||(t.target={}),r=t.controller||(t.controller={});o.merge(n,i),o.merge(r,i);var l=this.isCategory();function c(i){p(t.color)&&!i.inRange&&(i.inRange={color:t.color.slice().reverse()}),i.inRange=i.inRange||{color:e.get("gradientColor")},f(this.stateList,function(e){var t=i[e];if(o.isString(t)){var n=a.get(t,"active",l);n?(i[e]={},i[e][t]=n):delete i[e]}},this)}c.call(this,n),c.call(this,r),(function(e,t,i){var n=e[t],o=e[i];n&&!o&&(o=e[i]={},f(n,function(e,t){if(s.isValidType(t)){var i=a.get(t,"inactive",l);null!=i&&(o[t]=i,"color"!==t||o.hasOwnProperty("opacity")||o.hasOwnProperty("colorAlpha")||(o.opacity=[0,0]))}}))}).call(this,n,"inRange","outOfRange"),(function(e){var t=(e.inRange||{}).symbol||(e.outOfRange||{}).symbol,i=(e.inRange||{}).symbolSize||(e.outOfRange||{}).symbolSize,n=this.get("inactiveColor");f(this.stateList,function(r){var a=this.itemSize,s=e[r];s||(s=e[r]={color:l?n:[n]}),null==s.symbol&&(s.symbol=t&&o.clone(t)||(l?"roundRect":["roundRect"])),null==s.symbolSize&&(s.symbolSize=i&&o.clone(i)||(l?a[0]:[a[0],a[0]])),s.symbol=u(s.symbol,function(e){return"none"===e||"square"===e?"roundRect":e});var c=s.symbolSize;if(null!=c){var d=-1/0;h(c,function(e){e>d&&(d=e)}),s.symbolSize=u(c,function(e){return m(e,[0,d],[0,a[0]],!0)})}},this)}).call(this,r)},resetItemSize:function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},isCategory:function(){return!!this.option.categories},setSelected:v,getValueState:v,getVisualMeta:v})},8541:function(e,t,i){var n=i(47475),o=i(66023),r=i(76165),a=i(20438),s=i(68006),l=i(95138);e.exports=n.extendComponentView({type:"visualMap",autoPositionValues:{left:1,right:1,top:1,bottom:1},init:function(e,t){this.ecModel=e,this.api=t,this.visualMapModel},render:function(e,t,i,n){if(this.visualMapModel=e,!1===e.get("show"))return void this.group.removeAll();this.doRender.apply(this,arguments)},renderBackground:function(e){var t=this.visualMapModel,i=a.normalizeCssArray(t.get("padding")||0),n=e.getBoundingRect();e.add(new r.Rect({z2:-1,silent:!0,shape:{x:n.x-i[3],y:n.y-i[0],width:n.width+i[3]+i[1],height:n.height+i[0]+i[2]},style:{fill:t.get("backgroundColor"),stroke:t.get("borderColor"),lineWidth:t.get("borderWidth")}}))},getControllerVisual:function(e,t,i){var n=(i=i||{}).forceState,r=this.visualMapModel,a={};function s(e){return a[e]}function c(e,t){a[e]=t}"symbol"===t&&(a.symbol=r.get("itemSymbol")),"color"===t&&(a.color=r.get("contentColor"));var d=r.controllerVisuals[n||r.getValueState(e)],u=l.prepareVisualTypes(d);return o.each(u,function(n){var o=d[n];i.convertOpacityToAlpha&&"opacity"===n&&(n="colorAlpha",o=d.__alphaForOpacity),l.dependsOn(n,t)&&o&&o.applyVisual(e,s,c)}),a[t]},positionGroup:function(e){var t=this.visualMapModel,i=this.api;s.positionElement(e,t.getBoxLayoutParams(),{width:i.getWidth(),height:i.getHeight()})},doRender:o.noop})},86655:function(e,t,i){var n=i(66023),o=i(68006).getLayoutRect;t.getItemAlign=function(e,t,i){var n=e.option,r=n.align;if(null!=r&&"auto"!==r)return r;for(var a={width:t.getWidth(),height:t.getHeight()},s=+("horizontal"===n.orient),l=[["left","right","width"],["top","bottom","height"]],c=l[s],d=[0,null,10],u={},h=0;h<3;h++)u[l[1-s][h]]=d[h],u[c[h]]=2===h?i[0]:n[c[h]];var p=[["x","width",3],["y","height",0]][s],f=o(u,a,n.padding);return c[(f.margin[p[2]]||0)+f[p[0]]+.5*f[p[1]]<.5*a[p[1]]?0:1]},t.convertDataIndex=function(e){return n.each(e||[],function(t){null!=e.dataIndex&&(e.dataIndexInside=e.dataIndex,e.dataIndex=null)}),e}},81485:function(e,t,i){var n=i(66023),o=n.each;function r(e,t){return e&&e.hasOwnProperty&&e.hasOwnProperty(t)}e.exports=function(e){var t=e&&e.visualMap;n.isArray(t)||(t=t?[t]:[]),o(t,function(e){if(e){r(e,"splitList")&&!r(e,"pieces")&&(e.pieces=e.splitList,delete e.splitList);var t=e.pieces;t&&n.isArray(t)&&o(t,function(e){n.isObject(e)&&(r(e,"start")&&!r(e,"min")&&(e.min=e.start),r(e,"end")&&!r(e,"max")&&(e.max=e.end))})}})}},62102:function(e,t,i){i(76056).registerSubTypeDefaulter("visualMap",function(e){return e.categories||(e.pieces?e.pieces.length>0:e.splitNumber>0)&&!e.calculable?"piecewise":"continuous"})},74680:function(e,t,i){var n=i(47475),o=i(66023),r=i(49002),a=i(95138),s=n.PRIORITY.VISUAL.COMPONENT;function l(e,t,i,n){for(var o=t.targetVisuals[n],r=a.prepareVisualTypes(o),s={color:e.getData().getVisual("color")},l=0,c=r.length;l<c;l++){var d=r[l],u=o["opacity"===d?"__alphaForOpacity":d];u&&u.applyVisual(i,h,p)}return s.color;function h(e){return s[e]}function p(e,t){s[e]=t}}n.registerVisual(s,{createOnAllSeries:!0,reset:function(e,t){var i=[];return t.eachComponent("visualMap",function(t){var n=e.pipelineContext;!t.isTargetSeries(e)||n&&n.large||i.push(r.incrementalApplyVisual(t.stateList,t.targetVisuals,o.bind(t.getValueState,t),t.getDataDimension(e.getData())))}),i}}),n.registerVisual(s,{createOnAllSeries:!0,reset:function(e,t){var i=e.getData(),n=[];t.eachComponent("visualMap",function(t){if(t.isTargetSeries(e)){var r=t.getVisualMeta(o.bind(l,null,e,t))||{stops:[],outerColors:[]},a=t.getDataDimension(i),s=i.getDimensionInfo(a);null!=s&&(r.dimension=s.index,n.push(r))}}),e.getData().setVisual("visualMeta",n)}})},96267:function(e,t,i){i(47475).registerAction({type:"selectDataRange",event:"dataRangeSelected",update:"update"},function(e,t){t.eachComponent({mainType:"visualMap",query:e},function(t){t.setSelected(e.selected)})})},34457:function(e,t,i){var n=i(47475),o=i(81485);i(62102),i(74680),i(7744),i(55941),i(96267),n.registerPreprocessor(o)},35991:function(e,t,i){var n=i(47475),o=i(81485);i(62102),i(74680),i(67320),i(11689),i(96267),n.registerPreprocessor(o)},38603:function(e,t,i){var n;"undefined"!=typeof window?n=window.__DEV__:void 0!==i.g&&(n=i.g.__DEV__),void 0===n&&(n=!0),t.__DEV__=n},11237:function(e,t,i){var n=i(66023),o=n.each,r=n.map,a=i(98763),s=a.linearMap,l=a.getPixelPrecision,c=i(81176),d=c.createAxisTicks,u=c.createAxisLabels,h=c.calculateCategoryInterval,p=[0,1],f=function(e,t,i){this.dim=e,this.scale=t,this._extent=i||[0,0],this.inverse=!1,this.onBand=!1};function g(e,t){var i=(e[1]-e[0])/t/2;e[0]+=i,e[1]-=i}f.prototype={constructor:f,contain:function(e){var t=this._extent,i=Math.min(t[0],t[1]),n=Math.max(t[0],t[1]);return e>=i&&e<=n},containData:function(e){return this.contain(this.dataToCoord(e))},getExtent:function(){return this._extent.slice()},getPixelPrecision:function(e){return l(e||this.scale.getExtent(),this._extent)},setExtent:function(e,t){var i=this._extent;i[0]=e,i[1]=t},dataToCoord:function(e,t){var i=this._extent,n=this.scale;return e=n.normalize(e),this.onBand&&"ordinal"===n.type&&g(i=i.slice(),n.count()),s(e,p,i,t)},coordToData:function(e,t){var i=this._extent,n=this.scale;this.onBand&&"ordinal"===n.type&&g(i=i.slice(),n.count());var o=s(e,i,p,t);return this.scale.scale(o)},pointToData:function(e,t){},getTicksCoords:function(e){var t=(e=e||{}).tickModel||this.getTickModel(),i=d(this,t),n=r(i.ticks,function(e){return{coord:this.dataToCoord(e),tickValue:e}},this),a=t.get("alignWithLabel");return function(e,t,i,n,r){var a,s=t.length;if(e.onBand&&!n&&s){var l,c,d,u,h,p,f,g,m=e.getExtent();if(1===s)t[0].coord=m[0],a=t[1]={coord:m[0]};else{var v=t[1].coord-t[0].coord;o(t,function(e){e.coord-=v/2;var t=t||0;t%2>0&&(e.coord-=v/((t+1)*2))}),a={coord:t[s-1].coord+v},t.push(a)}var b=m[0]>m[1];l=t[0].coord,c=m[0],(b?l>c:l<c)&&(r?t[0].coord=m[0]:t.shift()),r&&(d=m[0],u=t[0].coord,b?d>u:d<u)&&t.unshift({coord:m[0]}),h=m[1],p=a.coord,(b?h>p:h<p)&&(r?a.coord=m[1]:t.pop()),r&&(f=a.coord,g=m[1],b?f>g:f<g)&&t.push({coord:m[1]})}}(this,n,i.tickCategoryInterval,a,e.clamp),n},getViewLabels:function(){return u(this).labels},getLabelModel:function(){return this.model.getModel("axisLabel")},getTickModel:function(){return this.model.getModel("axisTick")},getBandWidth:function(){var e=this._extent,t=this.scale.getExtent(),i=t[1]-t[0]+ +!!this.onBand;return 0===i&&(i=1),Math.abs(Math.abs(e[1]-e[0]))/i},isHorizontal:null,getRotate:null,calculateCategoryInterval:function(){return h(this)}},e.exports=f},3115:function(e,t,i){var n=i(66023),o=i(3265),r=i(36653),a=i(71497),s=i(53733),l=o.applyTransform;function c(){s.call(this)}function d(e){this.name=e,this.zoomLimit,s.call(this),this._roamTransformable=new c,this._rawTransformable=new c,this._center,this._zoom}function u(e,t,i,n){var o=i.seriesModel,r=o?o.coordinateSystem:null;return r===this?r[e](n):null}n.mixin(c,s),d.prototype={constructor:d,type:"view",dimensions:["x","y"],setBoundingRect:function(e,t,i,n){return this._rect=new a(e,t,i,n),this._rect},getBoundingRect:function(){return this._rect},setViewRect:function(e,t,i,n){this.transformTo(e,t,i,n),this._viewRect=new a(e,t,i,n)},transformTo:function(e,t,i,n){var o=this.getBoundingRect(),r=this._rawTransformable;r.transform=o.calculateTransform(new a(e,t,i,n)),r.decomposeTransform(),this._updateTransform()},setCenter:function(e){e&&(this._center=e,this._updateCenterAndZoom())},setZoom:function(e){e=e||1;var t=this.zoomLimit;t&&(null!=t.max&&(e=Math.min(t.max,e)),null!=t.min&&(e=Math.max(t.min,e))),this._zoom=e,this._updateCenterAndZoom()},getDefaultCenter:function(){var e=this.getBoundingRect();return[e.x+e.width/2,e.y+e.height/2]},getCenter:function(){return this._center||this.getDefaultCenter()},getZoom:function(){return this._zoom||1},getRoamTransform:function(){return this._roamTransformable.getLocalTransform()},_updateCenterAndZoom:function(){var e=this._rawTransformable.getLocalTransform(),t=this._roamTransformable,i=this.getDefaultCenter(),n=this.getCenter(),r=this.getZoom();n=o.applyTransform([],n,e),i=o.applyTransform([],i,e),t.origin=n,t.position=[i[0]-n[0],i[1]-n[1]],t.scale=[r,r],this._updateTransform()},_updateTransform:function(){var e=this._roamTransformable,t=this._rawTransformable;t.parent=e,e.updateTransform(),t.updateTransform(),r.copy(this.transform||(this.transform=[]),t.transform||r.create()),this._rawTransform=t.getLocalTransform(),this.invTransform=this.invTransform||[],r.invert(this.invTransform,this.transform),this.decomposeTransform()},getViewRect:function(){return this._viewRect},getViewRectAfterRoam:function(){var e=this.getBoundingRect().clone();return e.applyTransform(this.transform),e},dataToPoint:function(e,t,i){var n=t?this._rawTransform:this.transform;return i=i||[],n?l(i,e,n):o.copy(i,e)},pointToData:function(e){var t=this.invTransform;return t?l([],e,t):[e[0],e[1]]},convertToPixel:n.curry(u,"dataToPoint"),convertFromPixel:n.curry(u,"pointToData"),containPoint:function(e){return this.getViewRectAfterRoam().contain(e[0],e[1])}},n.mixin(d,s),e.exports=d},27780:function(e,t,i){var n=i(66023),o={show:!0,zlevel:0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#333",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#ccc"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},r={};r.categoryAxis=n.merge({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},o),r.valueAxis=n.merge({boundaryGap:[0,0],splitNumber:5},o),r.timeAxis=n.defaults({scale:!0,min:"dataMin",max:"dataMax"},r.valueAxis),r.logAxis=n.defaults({scale:!0,logBase:10},r.valueAxis),e.exports=r},16978:function(e,t,i){i(38603).__DEV__;var n=i(66023),o=i(78309),r=i(74323),a=i(3029),s=i(98763),l=i(42862),c=l.prepareLayoutBarSeries,d=l.makeColumnLayout,u=l.retrieveColumnLayout,h=i(71497);function p(e,t){var i=e.type,o=t.getMin(),r=t.getMax(),a=null!=o,l=null!=r,h=e.getExtent();"ordinal"===i?f=t.getCategories().length:(g=t.get("boundaryGap"),n.isArray(g)||(g=[g||0,g||0]),"boolean"==typeof g[0]&&(g=[0,0]),g[0]=s.parsePercent(g[0],1),g[1]=s.parsePercent(g[1],1),m=h[1]-h[0]||Math.abs(h[0])),null==o&&(o="ordinal"===i?f?0:NaN:h[0]-g[0]*m),null==r&&(r="ordinal"===i?f?f-1:NaN:h[1]+g[1]*m),"dataMin"===o?o=h[0]:"function"==typeof o&&(o=o({min:h[0],max:h[1]})),"dataMax"===r?r=h[1]:"function"==typeof r&&(r=r({min:h[0],max:h[1]})),null!=o&&isFinite(o)||(o=NaN),null!=r&&isFinite(r)||(r=NaN),e.setBlank(n.eqNaN(o)||n.eqNaN(r)||"ordinal"===i&&!e.getOrdinalMeta().categories.length),t.getNeedCrossZero()&&(o>0&&r>0&&!a&&(o=0),o<0&&r<0&&!l&&(r=0));var p=t.ecModel;if(p&&"time"===i){var f,g,m,v,b=c("bar",p);if(n.each(b,function(e){v|=e.getBaseAxis()===t.axis}),v){var y=function(e,t,i,o){var r=i.axis.getExtent(),a=r[1]-r[0],s=u(o,i.axis);if(void 0===s)return{min:e,max:t};var l=1/0;n.each(s,function(e){l=Math.min(e.offset,l)});var c=-1/0;n.each(s,function(e){c=Math.max(e.offset+e.width,c)});var d=(l=Math.abs(l))+(c=Math.abs(c)),h=t-e,p=h/(1-(l+c)/a)-h;return t+=c/d*p,{min:e-=l/d*p,max:t}}(o,r,t,d(b));o=y.min,r=y.max}}return[o,r]}function f(e){var t,i=e.getLabelModel().get("formatter"),n="category"===e.type?e.scale.getExtent()[0]:null;return"string"==typeof i?(t=i,i=function(i){return i=e.scale.getLabel(i),t.replace("{value}",null!=i?i:"")}):"function"==typeof i?function(t,o){return null!=n&&(o=t-n),i(g(e,t),o)}:function(t){return e.scale.getLabel(t)}}function g(e,t){return"category"===e.type?e.scale.getLabel(t):t}function m(e){var t=e.get("interval");return null==t?"auto":t}i(68494),i(98990),t.getScaleExtent=p,t.niceScaleExtent=function(e,t){var i=p(e,t),n=null!=t.getMin(),o=null!=t.getMax(),r=t.get("splitNumber");"log"===e.type&&(e.base=t.get("logBase"));var a=e.type;e.setExtent(i[0],i[1]),e.niceExtent({splitNumber:r,fixMin:n,fixMax:o,minInterval:"interval"===a||"time"===a?t.get("minInterval"):null,maxInterval:"interval"===a||"time"===a?t.get("maxInterval"):null});var s=t.get("interval");null!=s&&e.setInterval&&e.setInterval(s)},t.createScaleByModel=function(e,t){if(t=t||e.get("type"))switch(t){case"category":return new o(e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),[1/0,-1/0]);case"value":return new r;default:return(a.getClass(t)||r).create(e)}},t.ifAxisCrossZero=function(e){var t=e.scale.getExtent(),i=t[0],n=t[1];return!(i>0&&n>0||i<0&&n<0)},t.makeLabelFormatter=f,t.getAxisRawValue=g,t.estimateLabelUnionRect=function(e){var t,i,n,o=e.model,r=e.scale;if(!(!o.get("axisLabel.show")||r.isBlank())){var a="category"===e.type,s=r.getExtent();i=a?r.count():(t=r.getTicks()).length;var l=e.getLabelModel(),c=f(e),d=1;i>40&&(d=Math.ceil(i/40));for(var u=0;u<i;u+=d){var p=c(t?t[u]:s[0]+u),g=function(e,t){var i=t*Math.PI/180,n=e.plain(),o=n.width,r=n.height,a=o*Math.cos(i)+r*Math.sin(i),s=o*Math.sin(i)+r*Math.cos(i);return new h(n.x,n.y,a,s)}(l.getTextRect(p),l.get("rotate")||0);n?n.union(g):n=g}return n}},t.getOptionCategoryInterval=m,t.shouldShowAllLabels=function(e){return"category"===e.type&&0===m(e.getLabelModel())}},80390:function(e,t,i){var n=i(66023);e.exports={getMin:function(e){var t=this.option,i=e||null==t.rangeStart?t.min:t.rangeStart;return this.axis&&null!=i&&"dataMin"!==i&&"function"!=typeof i&&!n.eqNaN(i)&&(i=this.axis.scale.parse(i)),i},getMax:function(e){var t=this.option,i=e||null==t.rangeEnd?t.max:t.rangeEnd;return this.axis&&null!=i&&"dataMax"!==i&&"function"!=typeof i&&!n.eqNaN(i)&&(i=this.axis.scale.parse(i)),i},getNeedCrossZero:function(){var e=this.option;return null==e.rangeStart&&null==e.rangeEnd&&!e.scale},getCoordSysModel:n.noop,setRange:function(e,t){this.option.rangeStart=e,this.option.rangeEnd=t},resetRange:function(){this.option.rangeStart=this.option.rangeEnd=null}}},42626:function(e,t,i){var n=i(66023),o=i(27780),r=i(76056),a=i(68006),s=a.getLayoutParams,l=a.mergeLayoutParam,c=i(5298),d=["value","category","time","log"];e.exports=function(e,t,i,a){n.each(d,function(r){t.extend({type:e+"Axis."+r,mergeDefaultAndTheme:function(t,o){var a=this.layoutMode,c=a?s(t):{},d=o.getTheme();n.merge(t,d.get(r+"Axis")),n.merge(t,this.getDefaultOption()),t.type=i(e,t),a&&l(t,c,a)},optionUpdated:function(){"category"===this.option.type&&(this.__ordinalMeta=c.createByAxisModel(this))},getCategories:function(e){var t=this.option;if("category"===t.type)return e?t.data:this.__ordinalMeta.categories},getOrdinalMeta:function(){return this.__ordinalMeta},defaultOption:n.mergeAll([{},o[r+"Axis"],a],!0)})}),r.registerSubTypeDefaulter(e+"Axis",n.curry(i,e))}},81176:function(e,t,i){var n=i(66023),o=i(99280),r=i(70018).makeInner,a=i(16978),s=a.makeLabelFormatter,l=a.getOptionCategoryInterval,c=a.shouldShowAllLabels,d=r();function u(e,t){var i,o,r,a,s=h(e,"labels"),c=l(t),u=p(s,c);return u||(n.isFunction(c)?r=m(e,c):(a="auto"===c?null!=(o=d(i=e).autoInterval)?o:d(i).autoInterval=i.calculateCategoryInterval():c,r=g(e,a)),f(s,c,{labels:r,labelCategoryInterval:a}))}function h(e,t){return d(e)[t]||(d(e)[t]=[])}function p(e,t){for(var i=0;i<e.length;i++)if(e[i].key===t)return e[i].value}function f(e,t,i){return e.push({key:t,value:i}),i}function g(e,t,i){var n=s(e),o=e.scale,r=o.getExtent(),a=e.getLabelModel(),l=[],d=Math.max((t||0)+1,1),u=r[0],h=o.count();0!==u&&d>1&&h/d>2&&(u=Math.round(Math.ceil(u/d)*d));var p=c(e),f=a.get("showMinLabel")||p,g=a.get("showMaxLabel")||p;f&&u!==r[0]&&v(r[0]);for(var m=u;m<=r[1];m+=d)v(m);function v(e){l.push(i?e:{formattedLabel:n(e),rawLabel:o.getLabel(e),tickValue:e})}return g&&m!==r[1]&&v(r[1]),l}function m(e,t,i){var o=e.scale,r=s(e),a=[];return n.each(o.getTicks(),function(e){var n=o.getLabel(e);t(e,n)&&a.push(i?e:{formattedLabel:r(e),rawLabel:n,tickValue:e})}),a}t.createAxisLabels=function(e){var t,i,o,r,a,l;return"category"===e.type?(i=(t=e).getLabelModel(),o=u(t,i),!i.get("show")||t.scale.isBlank()?{labels:[],labelCategoryInterval:o.labelCategoryInterval}:o):(a=(r=e).scale.getTicks(),l=s(r),{labels:n.map(a,function(e,t){return{formattedLabel:l(e,t),rawLabel:r.scale.getLabel(e),tickValue:e}})})},t.createAxisTicks=function(e,t){return"category"===e.type?function(e,t){var i,o,r=h(e,"ticks"),a=l(t),s=p(r,a);if(s)return s;if((!t.get("show")||e.scale.isBlank())&&(i=[]),n.isFunction(a))i=m(e,a,!0);else if("auto"===a){var c=u(e,e.getLabelModel());o=c.labelCategoryInterval,i=n.map(c.labels,function(e){return e.tickValue})}else i=g(e,o=a,!0);return f(r,a,{ticks:i,tickCategoryInterval:o})}(e,t):{ticks:e.scale.getTicks()}},t.calculateCategoryInterval=function(e){var t,i,n=(i=(t=e).getLabelModel(),{axisRotate:t.getRotate?t.getRotate():t.isHorizontal&&!t.isHorizontal()?90:0,labelRotate:i.get("rotate")||0,font:i.getFont()}),r=s(e),a=(n.axisRotate-n.labelRotate)/180*Math.PI,l=e.scale,c=l.getExtent(),u=l.count();if(c[1]-c[0]<1)return 0;var h=1;u>40&&(h=Math.max(1,Math.floor(u/40)));for(var p=c[0],f=e.dataToCoord(p+1)-e.dataToCoord(p),g=Math.abs(f*Math.cos(a)),m=Math.abs(f*Math.sin(a)),v=0,b=0;p<=c[1];p+=h){var y=0,w=0,_=o.getBoundingRect(r(p),n.font,"center","top");y=1.3*_.width,w=1.3*_.height,v=Math.max(v,y,7),b=Math.max(b,w,7)}var x=v/g,S=b/m;isNaN(x)&&(x=1/0),isNaN(S)&&(S=1/0);var C=Math.max(0,Math.floor(Math.min(x,S))),k=d(e.model),I=k.lastAutoInterval,A=k.lastTickCount;return null!=I&&null!=A&&1>=Math.abs(I-C)&&1>=Math.abs(A-u)&&I>C?C=I:(k.lastTickCount=u,k.lastAutoInterval=C),C}},93779:function(e,t,i){var n=i(66023),o=i(68006),r=i(98763),a=i(33776);function s(e,t,i){this._model=e}function l(e,t,i,n){var o=i.calendarModel,r=i.seriesModel,a=o?o.coordinateSystem:r?r.coordinateSystem:null;return a===this?a[e](n):null}s.prototype={constructor:s,type:"calendar",dimensions:["time","value"],getDimensionsInfo:function(){return[{name:"time",type:"time"},"value"]},getRangeInfo:function(){return this._rangeInfo},getModel:function(){return this._model},getRect:function(){return this._rect},getCellWidth:function(){return this._sw},getCellHeight:function(){return this._sh},getOrient:function(){return this._orient},getFirstDayOfWeek:function(){return this._firstDayOfWeek},getDateInfo:function(e){var t=(e=r.parseDate(e)).getFullYear(),i=e.getMonth()+1;i=i<10?"0"+i:i;var n=e.getDate();n=n<10?"0"+n:n;var o=e.getDay();return{y:t,m:i,d:n,day:o=Math.abs((o+7-this.getFirstDayOfWeek())%7),time:e.getTime(),formatedDate:t+"-"+i+"-"+n,date:e}},getNextNDay:function(e,t){return 0===(t=t||0)||(e=new Date(this.getDateInfo(e).time)).setDate(e.getDate()+t),this.getDateInfo(e)},update:function(e,t){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var i=this._rangeInfo.weeks||1,r=["width","height"],a=this._model.get("cellSize").slice(),s=this._model.getBoxLayoutParams(),l="horizontal"===this._orient?[i,7]:[7,i];n.each([0,1],function(e){u(a,e)&&(s[r[e]]=a[e]*l[e])});var c={width:t.getWidth(),height:t.getHeight()},d=this._rect=o.getLayoutRect(s,c);function u(e,t){return null!=e[t]&&"auto"!==e[t]}n.each([0,1],function(e){u(a,e)||(a[e]=d[r[e]]/l[e])}),this._sw=a[0],this._sh=a[1]},dataToPoint:function(e,t){n.isArray(e)&&(e=e[0]),null==t&&(t=!0);var i=this.getDateInfo(e),o=this._rangeInfo,r=i.formatedDate;if(t&&!(i.time>=o.start.time&&i.time<o.end.time+864e5))return[NaN,NaN];var a=i.day,s=this._getRangeInfo([o.start.time,r]).nthWeek;return"vertical"===this._orient?[this._rect.x+a*this._sw+this._sw/2,this._rect.y+s*this._sh+this._sh/2]:[this._rect.x+s*this._sw+this._sw/2,this._rect.y+a*this._sh+this._sh/2]},pointToData:function(e){var t=this.pointToDate(e);return t&&t.time},dataToRect:function(e,t){var i=this.dataToPoint(e,t);return{contentShape:{x:i[0]-(this._sw-this._lineWidth)/2,y:i[1]-(this._sh-this._lineWidth)/2,width:this._sw-this._lineWidth,height:this._sh-this._lineWidth},center:i,tl:[i[0]-this._sw/2,i[1]-this._sh/2],tr:[i[0]+this._sw/2,i[1]-this._sh/2],br:[i[0]+this._sw/2,i[1]+this._sh/2],bl:[i[0]-this._sw/2,i[1]+this._sh/2]}},pointToDate:function(e){var t=Math.floor((e[0]-this._rect.x)/this._sw)+1,i=Math.floor((e[1]-this._rect.y)/this._sh)+1,n=this._rangeInfo.range;return"vertical"===this._orient?this._getDateByWeeksAndDay(i,t-1,n):this._getDateByWeeksAndDay(t,i-1,n)},convertToPixel:n.curry(l,"dataToPoint"),convertFromPixel:n.curry(l,"pointToData"),_initRangeOption:function(){var e=this._model.get("range"),t=e;if(n.isArray(t)&&1===t.length&&(t=t[0]),/^\d{4}$/.test(t)&&(e=[t+"-01-01",t+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(t)){var i=this.getDateInfo(t),o=i.date;o.setMonth(o.getMonth()+1);var r=this.getNextNDay(o,-1);e=[i.formatedDate,r.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(t)&&(e=[t,t]);var a=this._getRangeInfo(e);return a.start.time>a.end.time&&e.reverse(),e},_getRangeInfo:function(e){(e=[this.getDateInfo(e[0]),this.getDateInfo(e[1])])[0].time>e[1].time&&(t=!0,e.reverse());var t,i=Math.floor(e[1].time/864e5)-Math.floor(e[0].time/864e5)+1,n=new Date(e[0].time),o=n.getDate(),r=e[1].date.getDate();if(n.setDate(o+i-1),n.getDate()!==r)for(var a=n.getTime()-e[1].time>0?1:-1;n.getDate()!==r&&(n.getTime()-e[1].time)*a>0;)i-=a,n.setDate(o+i-1);var s=Math.floor((i+e[0].day+6)/7),l=t?-s+1:s-1;return t&&e.reverse(),{range:[e[0].formatedDate,e[1].formatedDate],start:e[0],end:e[1],allDay:i,weeks:s,nthWeek:l,fweek:e[0].day,lweek:e[1].day}},_getDateByWeeksAndDay:function(e,t,i){var n=this._getRangeInfo(i);if(e>n.weeks||0===e&&t<n.fweek||e===n.weeks&&t>n.lweek)return!1;var o=(e-1)*7-n.fweek+t,r=new Date(n.start.time);return r.setDate(n.start.d+o),this.getDateInfo(r)}},s.dimensions=s.prototype.dimensions,s.getDimensionsInfo=s.prototype.getDimensionsInfo,s.create=function(e,t){var i=[];return e.eachComponent("calendar",function(n){var o=new s(n,e,t);i.push(o),n.coordinateSystem=o}),e.eachSeries(function(e){"calendar"===e.get("coordinateSystem")&&(e.coordinateSystem=i[e.get("calendarIndex")||0])}),i},a.register("calendar",s),e.exports=s},82834:function(e,t,i){var n=i(66023),o=i(76056),r=i(68006),a=r.getLayoutParams,s=r.sizeCalculable,l=r.mergeLayoutParam,c=o.extend({type:"calendar",coordinateSystem:null,defaultOption:{zlevel:0,z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",nameMap:"en",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",nameMap:"en",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},init:function(e,t,i,n){var o=a(e);c.superApply(this,"init",arguments),d(e,o)},mergeOption:function(e,t){c.superApply(this,"mergeOption",arguments),d(this.option,e)}});function d(e,t){var i=e.cellSize;n.isArray(i)?1===i.length&&(i[1]=i[0]):i=e.cellSize=[i,i];var o=n.map([0,1],function(e){return s(t,e)&&(i[e]="auto"),null!=i[e]&&"auto"!==i[e]});l(e,t,{type:"box",ignoreSize:o})}e.exports=c},61226:function(e){e.exports=function(e){var t=e.getRect(),i=e.getRangeInfo();return{coordSys:{type:"calendar",x:t.x,y:t.y,width:t.width,height:t.height,cellWidth:e.getCellWidth(),cellHeight:e.getCellHeight(),rangeInfo:{start:i.start,end:i.end,weeks:i.weeks,dayCount:i.allDay}},api:{coord:function(t,i){return e.dataToPoint(t,i)}}}}},80919:function(e,t,i){var n=i(66023),o=i(11237),r=function(e,t,i,n,r){o.call(this,e,t,i),this.type=n||"value",this.position=r||"bottom"};r.prototype={constructor:r,index:0,getAxesOnZeroOf:null,model:null,isHorizontal:function(){var e=this.position;return"top"===e||"bottom"===e},getGlobalExtent:function(e){var t=this.getExtent();return t[0]=this.toGlobalCoord(t[0]),t[1]=this.toGlobalCoord(t[1]),e&&t[0]>t[1]&&t.reverse(),t},getOtherAxis:function(){this.grid.getOtherAxis()},pointToData:function(e,t){return this.coordToData(this.toLocalCoord(e[+("x"!==this.dim)]),t)},toLocalCoord:null,toGlobalCoord:null},n.inherits(r,o),e.exports=r},13452:function(e,t,i){var n=i(66023),o=i(76056),r=i(42626),a=i(80390),s=o.extend({type:"cartesian2dAxis",axis:null,init:function(){s.superApply(this,"init",arguments),this.resetRange()},mergeOption:function(){s.superApply(this,"mergeOption",arguments),this.resetRange()},restoreData:function(){s.superApply(this,"restoreData",arguments),this.resetRange()},getCoordSysModel:function(){return this.ecModel.queryComponents({mainType:"grid",index:this.option.gridIndex,id:this.option.gridId})[0]}});function l(e,t){return t.type||(t.data?"category":"value")}n.merge(s.prototype,a);var c={offset:0};r("x",s,l,c),r("y",s,l,c),e.exports=s},66795:function(e,t,i){var n=i(66023);function o(e){return this._axes[e]}var r=function(e){this._axes={},this._dimList=[],this.name=e||""};r.prototype={constructor:r,type:"cartesian",getAxis:function(e){return this._axes[e]},getAxes:function(){return n.map(this._dimList,o,this)},getAxesByScale:function(e){return e=e.toLowerCase(),n.filter(this.getAxes(),function(t){return t.scale.type===e})},addAxis:function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},dataToCoord:function(e){return this._dataCoordConvert(e,"dataToCoord")},coordToData:function(e){return this._dataCoordConvert(e,"coordToData")},_dataCoordConvert:function(e,t){for(var i=this._dimList,n=e instanceof Array?[]:{},o=0;o<i.length;o++){var r=i[o],a=this._axes[r];n[r]=a[t](e[r])}return n}},e.exports=r},58477:function(e,t,i){var n=i(66023),o=i(66795);function r(e){o.call(this,e)}r.prototype={constructor:r,type:"cartesian2d",dimensions:["x","y"],getBaseAxis:function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},containPoint:function(e){var t=this.getAxis("x"),i=this.getAxis("y");return t.contain(t.toLocalCoord(e[0]))&&i.contain(i.toLocalCoord(e[1]))},containData:function(e){return this.getAxis("x").containData(e[0])&&this.getAxis("y").containData(e[1])},dataToPoint:function(e,t,i){var n=this.getAxis("x"),o=this.getAxis("y");return(i=i||[])[0]=n.toGlobalCoord(n.dataToCoord(e[0])),i[1]=o.toGlobalCoord(o.dataToCoord(e[1])),i},clampData:function(e,t){var i=this.getAxis("x").scale,n=this.getAxis("y").scale,o=i.getExtent(),r=n.getExtent(),a=i.parse(e[0]),s=n.parse(e[1]);return(t=t||[])[0]=Math.min(Math.max(Math.min(o[0],o[1]),a),Math.max(o[0],o[1])),t[1]=Math.min(Math.max(Math.min(r[0],r[1]),s),Math.max(r[0],r[1])),t},pointToData:function(e,t){var i=this.getAxis("x"),n=this.getAxis("y");return(t=t||[])[0]=i.coordToData(i.toLocalCoord(e[0])),t[1]=n.coordToData(n.toLocalCoord(e[1])),t},getOtherAxis:function(e){return this.getAxis("x"===e.dim?"y":"x")}},n.inherits(r,o),e.exports=r},34087:function(e,t,i){i(38603).__DEV__;var n=i(66023),o=n.isObject,r=n.each,a=n.map,s=n.indexOf;n.retrieve;var l=i(68006).getLayoutRect,c=i(16978),d=c.createScaleByModel,u=c.ifAxisCrossZero,h=c.niceScaleExtent,p=c.estimateLabelUnionRect,f=i(58477),g=i(80919),m=i(33776),v=i(74733).getStackedDimension;function b(e,t,i){return e.getCoordSysModel()===t}function y(e,t,i){this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this._initCartesian(e,t,i),this.model=e}i(74541);var w=y.prototype;function _(e,t,i,n){i.getAxesOnZeroOf=function(){return o?[o]:[]};var o,r=e[t],a=i.model,s=a.get("axisLine.onZero"),l=a.get("axisLine.onZeroAxisIndex");if(s){if(null!=l)x(r[l])&&(o=r[l]);else for(var c in r)if(r.hasOwnProperty(c)&&x(r[c])&&!n[d(r[c])]){o=r[c];break}o&&(n[d(o)]=!0)}function d(e){return e.dim+"_"+e.index}}function x(e){return e&&"category"!==e.type&&"time"!==e.type&&u(e)}w.type="grid",w.axisPointerEnabled=!0,w.getRect=function(){return this._rect},w.update=function(e,t){var i=this._axesMap;this._updateScale(e,this.model),r(i.x,function(e){h(e.scale,e.model)}),r(i.y,function(e){h(e.scale,e.model)});var n={};r(i.x,function(e){_(i,"y",e,n)}),r(i.y,function(e){_(i,"x",e,n)}),this.resize(this.model,t)},w.resize=function(e,t,i){var n=l(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()});this._rect=n;var o=this._axesList;function a(){r(o,function(e){var t,i,o,r,a=e.isHorizontal(),s=a?[0,n.width]:[0,n.height],l=+!!e.inverse;e.setExtent(s[l],s[1-l]),t=e,i=a?n.x:n.y,r=(o=t.getExtent())[0]+o[1],t.toGlobalCoord="x"===t.dim?function(e){return e+i}:function(e){return r-e+i},t.toLocalCoord="x"===t.dim?function(e){return e-i}:function(e){return r-e+i}})}a(),!i&&e.get("containLabel")&&(r(o,function(e){if(!e.model.get("axisLabel.inside")){var t=p(e);if(t){var i=e.isHorizontal()?"height":"width",o=e.model.get("axisLabel.margin");n[i]-=t[i]+o,"top"===e.position?n.y+=t.height+o:"left"===e.position&&(n.x+=t.width+o)}}}),a())},w.getAxis=function(e,t){var i=this._axesMap[e];if(null!=i){if(null==t){for(var n in i)if(i.hasOwnProperty(n))return i[n]}return i[t]}},w.getAxes=function(){return this._axesList.slice()},w.getCartesian=function(e,t){if(null!=e&&null!=t){var i="x"+e+"y"+t;return this._coordsMap[i]}o(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var n=0,r=this._coordsList;n<r.length;n++)if(r[n].getAxis("x").index===e||r[n].getAxis("y").index===t)return r[n]},w.getCartesians=function(){return this._coordsList.slice()},w.convertToPixel=function(e,t,i){var n=this._findConvertTarget(e,t);return n.cartesian?n.cartesian.dataToPoint(i):n.axis?n.axis.toGlobalCoord(n.axis.dataToCoord(i)):null},w.convertFromPixel=function(e,t,i){var n=this._findConvertTarget(e,t);return n.cartesian?n.cartesian.pointToData(i):n.axis?n.axis.coordToData(n.axis.toLocalCoord(i)):null},w._findConvertTarget=function(e,t){var i,n,o=t.seriesModel,r=t.xAxisModel||o&&o.getReferringComponents("xAxis")[0],a=t.yAxisModel||o&&o.getReferringComponents("yAxis")[0],l=t.gridModel,c=this._coordsList;return o?0>s(c,i=o.coordinateSystem)&&(i=null):r&&a?i=this.getCartesian(r.componentIndex,a.componentIndex):r?n=this.getAxis("x",r.componentIndex):a?n=this.getAxis("y",a.componentIndex):l&&l.coordinateSystem===this&&(i=this._coordsList[0]),{cartesian:i,axis:n}},w.containPoint=function(e){var t=this._coordsList[0];if(t)return t.containPoint(e)},w._initCartesian=function(e,t,i){var n={left:!1,right:!1,top:!1,bottom:!1},o={x:{},y:{}},a={x:0,y:0};if(t.eachComponent("xAxis",s("x"),this),t.eachComponent("yAxis",s("y"),this),!a.x||!a.y){this._axesMap={},this._axesList=[];return}function s(i){return function(r,s){if(b(r,e,t)){var l=r.get("position");"x"===i?"top"!==l&&"bottom"!==l&&n[l="bottom"]&&(l="top"===l?"bottom":"top"):"left"!==l&&"right"!==l&&n[l="left"]&&(l="left"===l?"right":"left"),n[l]=!0;var c=new g(i,d(r),[0,0],r.get("type"),l),u="category"===c.type;c.onBand=u&&r.get("boundaryGap"),c.inverse=r.get("inverse"),r.axis=c,c.model=r,c.grid=this,c.index=s,this._axesList.push(c),o[i][s]=c,a[i]++}}}this._axesMap=o,r(o.x,function(t,i){r(o.y,function(n,o){var r="x"+i+"y"+o,a=new f(r);a.grid=this,a.model=e,this._coordsMap[r]=a,this._coordsList.push(a),a.addAxis(t),a.addAxis(n)},this)},this)},w._updateScale=function(e,t){function i(e,t,i){r(e.mapDimension(t.dim,!0),function(i){t.scale.unionExtentFromData(e,v(e,i))})}r(this._axesList,function(e){e.scale.setExtent(1/0,-1/0)}),e.eachSeries(function(n){if(k(n)){var o=C(n,e),r=o[0],a=o[1];if(b(r,t,e)&&b(a,t,e)){var s=this.getCartesian(r.componentIndex,a.componentIndex),l=n.getData(),c=s.getAxis("x"),d=s.getAxis("y");"list"===l.type&&(i(l,c,n),i(l,d,n))}}},this)},w.getTooltipAxes=function(e){var t=[],i=[];return r(this.getCartesians(),function(n){var o=null!=e&&"auto"!==e?n.getAxis(e):n.getBaseAxis(),r=n.getOtherAxis(o);0>s(t,o)&&t.push(o),0>s(i,r)&&i.push(r)}),{baseAxes:t,otherAxes:i}};var S=["xAxis","yAxis"];function C(e,t){return a(S,function(t){return e.getReferringComponents(t)[0]})}function k(e){return"cartesian2d"===e.get("coordinateSystem")}y.create=function(e,t){var i=[];return e.eachComponent("grid",function(n,o){var r=new y(n,e,t);r.name="grid_"+o,r.resize(n,t,!0),n.coordinateSystem=r,i.push(r)}),e.eachSeries(function(t){if(k(t)){var i=C(t,e),n=i[0],o=i[1];t.coordinateSystem=n.getCoordSysModel().coordinateSystem.getCartesian(n.componentIndex,o.componentIndex)}}),i},y.dimensions=y.prototype.dimensions=f.prototype.dimensions,m.register("cartesian2d",y),e.exports=y},74541:function(e,t,i){i(13452),e.exports=i(76056).extend({type:"grid",dependencies:["xAxis","yAxis"],layoutMode:"box",coordinateSystem:null,defaultOption:{show:!1,zlevel:0,z:0,left:"10%",top:60,right:"10%",bottom:60,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"}})},5592:function(e,t,i){var n=i(66023);t.layout=function(e,t,i){i=i||{};var o=e.coordinateSystem,r=t.axis,a={},s=r.getAxesOnZeroOf()[0],l=r.position,c=s?"onZero":l,d=r.dim,u=o.getRect(),h=[u.x,u.x+u.width,u.y,u.y+u.height],p={left:0,right:1,top:0,bottom:1,onZero:2},f=t.get("offset")||0,g="x"===d?[h[2]-f,h[3]+f]:[h[0]-f,h[1]+f];if(s){var m=s.toGlobalCoord(s.dataToCoord(0));g[p.onZero]=Math.max(Math.min(m,g[1]),g[0])}a.position=["y"===d?g[p[c]]:h[0],"x"===d?g[p[c]]:h[3]],a.rotation=Math.PI/2*+("x"!==d),a.labelDirection=a.tickDirection=a.nameDirection=({top:-1,bottom:1,left:-1,right:1})[l],a.labelOffset=s?g[p[l]]-g[p.onZero]:0,t.get("axisTick.inside")&&(a.tickDirection=-a.tickDirection),n.retrieve(i.labelInside,t.get("axisLabel.inside"))&&(a.labelDirection=-a.labelDirection);var v=t.get("axisLabel.rotate");return a.labelRotate="top"===c?-v:v,a.z2=1,a}},807:function(e,t,i){var n=i(66023);function o(e,t){return t=t||[0,0],n.map(["x","y"],function(i,n){var o=this.getAxis(i),r=t[n],a=e[n]/2;return"category"===o.type?o.getBandWidth():Math.abs(o.dataToCoord(r-a)-o.dataToCoord(r+a))},this)}e.exports=function(e){var t=e.grid.getRect();return{coordSys:{type:"cartesian2d",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(t){return e.dataToPoint(t)},size:n.bind(o,e)}}}},61979:function(e,t,i){var n=i(66023),o=i(71497),r=i(3115),a=i(70351);function s(e,t,i,n){r.call(this,e),this.map=t;var o=a.load(t,i);this._nameCoordMap=o.nameCoordMap,this._regionsMap=o.regionsMap,this._invertLongitute=null==n||n,this.regions=o.regions,this._rect=o.boundingRect}function l(e,t,i,n){var o=i.geoModel,r=i.seriesModel,a=o?o.coordinateSystem:r?r.coordinateSystem||(r.getReferringComponents("geo")[0]||{}).coordinateSystem:null;return a===this?a[e](n):null}s.prototype={constructor:s,type:"geo",dimensions:["lng","lat"],containCoord:function(e){for(var t=this.regions,i=0;i<t.length;i++)if(t[i].contain(e))return!0;return!1},transformTo:function(e,t,i,n){var r=this.getBoundingRect(),a=this._invertLongitute;r=r.clone(),a&&(r.y=-r.y-r.height);var s=this._rawTransformable;if(s.transform=r.calculateTransform(new o(e,t,i,n)),s.decomposeTransform(),a){var l=s.scale;l[1]=-l[1]}s.updateTransform(),this._updateTransform()},getRegion:function(e){return this._regionsMap.get(e)},getRegionByCoord:function(e){for(var t=this.regions,i=0;i<t.length;i++)if(t[i].contain(e))return t[i]},addGeoCoord:function(e,t){this._nameCoordMap.set(e,t)},getGeoCoord:function(e){return this._nameCoordMap.get(e)},getBoundingRect:function(){return this._rect},dataToPoint:function(e,t,i){if("string"==typeof e&&(e=this.getGeoCoord(e)),e)return r.prototype.dataToPoint.call(this,e,t,i)},convertToPixel:n.curry(l,"dataToPoint"),convertFromPixel:n.curry(l,"pointToData")},n.mixin(s,r),e.exports=s},10649:function(e,t,i){var n=i(66023),o=i(70018),r=i(76056),a=i(27611),s=i(33601),l=i(85605),c=r.extend({type:"geo",coordinateSystem:null,layoutMode:"box",init:function(e){r.prototype.init.apply(this,arguments),o.defaultEmphasis(e,"label",["show"])},optionUpdated:function(){var e=this.option,t=this;e.regions=l.getFilledRegions(e.regions,e.map,e.nameMap),this._optionModelMap=n.reduce(e.regions||[],function(e,i){return i.name&&e.set(i.name,new a(i,t)),e},n.createHashMap()),this.updateSelectedMap(e.regions)},defaultOption:{zlevel:0,z:0,show:!0,left:"center",top:"center",aspectScale:null,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",color:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},regions:[]},getRegionModel:function(e){return this._optionModelMap.get(e)||new a(null,this,this.ecModel)},getFormattedLabel:function(e,t){var i=this.getRegionModel(e).get("label."+t+".formatter"),n={name:e};return"function"==typeof i?(n.status=t,i(n)):"string"==typeof i?i.replace("{a}",null!=e?e:""):void 0},setZoom:function(e){this.option.zoom=e},setCenter:function(e){this.option.center=e}});n.mixin(c,s),e.exports=c},41504:function(e,t,i){var n=i(71497),o=i(91273),r=i(3265),a=i(76703);function s(e,t,i){if(this.name=e,this.geometries=t,i)i=[i[0],i[1]];else{var n=this.getBoundingRect();i=[n.x+n.width/2,n.y+n.height/2]}this.center=i}s.prototype={constructor:s,properties:null,getBoundingRect:function(){var e=this._rect;if(e)return e;for(var t=Number.MAX_VALUE,i=[t,t],a=[-t,-t],s=[],l=[],c=this.geometries,d=0;d<c.length;d++)if("polygon"===c[d].type){var u=c[d].exterior;o.fromPoints(u,s,l),r.min(i,i,s),r.max(a,a,l)}return 0===d&&(i[0]=i[1]=a[0]=a[1]=0),this._rect=new n(i[0],i[1],a[0]-i[0],a[1]-i[1])},contain:function(e){var t=this.getBoundingRect(),i=this.geometries;if(!t.contain(e[0],e[1]))return!1;i:for(var n=0,o=i.length;n<o;n++)if("polygon"===i[n].type){var r=i[n].exterior,s=i[n].interiors;if(a.contain(r,e[0],e[1])){for(var l=0;l<(s?s.length:0);l++)if(a.contain(s[l]))continue i;return!0}}return!1},transformTo:function(e,t,i,o){var a=this.getBoundingRect(),s=a.width/a.height;i?o||(o=i/s):i=s*o;for(var l=new n(e,t,i,o),c=a.calculateTransform(l),d=this.geometries,u=0;u<d.length;u++)if("polygon"===d[u].type){for(var h=d[u].exterior,p=d[u].interiors,f=0;f<h.length;f++)r.applyTransform(h[f],h[f],c);for(var g=0;g<(p?p.length:0);g++)for(var f=0;f<p[g].length;f++)r.applyTransform(p[g][f],p[g][f],c)}(a=this._rect).copy(l),this.center=[a.x+a.width/2,a.y+a.height/2]},cloneShallow:function(e){null==e&&(e=this.name);var t=new s(e,this.geometries,this.center);return t._rect=this._rect,t.transformTo=null,t}},e.exports=s},10003:function(e){var t=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];e.exports=function(e,i){"china"===e&&"台湾"===i.name&&i.geometries.push({type:"polygon",exterior:t[0]})}},8394:function(e){var t={Russia:[100,60],"United States":[-99,38],"United States of America":[-99,38]};e.exports=function(e,i){if("world"===e){var n=t[i.name];if(n){var o=i.center;o[0]=n[0],o[1]=n[1]}}}},34175:function(e,t,i){for(var n=i(66023),o=i(41504),r=[126,25],a=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]],s=0;s<a.length;s++)for(var l=0;l<a[s].length;l++)a[s][l][0]/=10.5,a[s][l][1]/=-14,a[s][l][0]+=r[0],a[s][l][1]+=r[1];e.exports=function(e,t){"china"===e&&t.push(new o("南海诸岛",n.map(a,function(e){return{type:"polygon",exterior:e}}),r))}},79380:function(e){var t={南海诸岛:[32,80],广东:[0,-10],香港:[10,5],澳门:[-10,10],天津:[5,5]};e.exports=function(e,i){if("china"===e){var n=t[i.name];if(n){var o=i.center;o[0]+=n[0]/10.5,o[1]+=-n[1]/14}}}},85605:function(e,t,i){i(38603).__DEV__;var n=i(47475),o=i(66023),r=i(61979),a=i(68006),s=i(98763),l=i(70351),c=i(55725);function d(e,t){var i,n,o=e.get("boundingCoords");if(null!=o){var r=o[0],l=o[1];isNaN(r[0])||isNaN(r[1])||isNaN(l[0])||isNaN(l[1])||this.setBoundingRect(r[0],r[1],l[0]-r[0],l[1]-r[1])}var c=this.getBoundingRect(),d=e.get("layoutCenter"),u=e.get("layoutSize"),h=t.getWidth(),p=t.getHeight(),f=c.width/c.height*this.aspectScale,g=!1;if(d&&u&&(d=[s.parsePercent(d[0],h),s.parsePercent(d[1],p)],u=s.parsePercent(u,Math.min(h,p)),isNaN(d[0])||isNaN(d[1])||isNaN(u)||(g=!0)),g){var n={};f>1?(n.width=u,n.height=u/f):(n.height=u,n.width=u*f),n.y=d[1]-n.height/2,n.x=d[0]-n.width/2}else(i=e.getBoxLayoutParams()).aspect=f,n=a.getLayoutRect(i,{width:h,height:p});this.setViewRect(n.x,n.y,n.width,n.height),this.setCenter(e.get("center")),this.setZoom(e.get("zoom"))}function u(e,t){o.each(t.get("geoCoord"),function(t,i){e.addGeoCoord(i,t)})}var h={dimensions:r.prototype.dimensions,create:function(e,t){var i=[];e.eachComponent("geo",function(e,n){var o=e.get("map"),a=e.get("aspectScale"),s=!0,l=c.retrieveMap(o);l&&l[0]&&"svg"===l[0].type?(null==a&&(a=1),s=!1):null==a&&(a=.75);var h=new r(o+n,o,e.get("nameMap"),s);h.aspectScale=a,h.zoomLimit=e.get("scaleLimit"),i.push(h),u(h,e),e.coordinateSystem=h,h.model=e,h.resize=d,h.resize(e,t)}),e.eachSeries(function(e){if("geo"===e.get("coordinateSystem")){var t=e.get("geoIndex")||0;e.coordinateSystem=i[t]}});var n={};return e.eachSeriesByType("map",function(e){if(!e.getHostGeoModel()){var t=e.getMapType();n[t]=n[t]||[],n[t].push(e)}}),o.each(n,function(e,n){var a=o.map(e,function(e){return e.get("nameMap")}),s=new r(n,n,o.mergeAll(a));s.zoomLimit=o.retrieve.apply(null,o.map(e,function(e){return e.get("scaleLimit")})),i.push(s),s.resize=d,s.aspectScale=e[0].get("aspectScale"),s.resize(e[0],t),o.each(e,function(e){e.coordinateSystem=s,u(s,e)})}),i},getFilledRegions:function(e,t,i){for(var n=(e||[]).slice(),r=o.createHashMap(),a=0;a<n.length;a++)r.set(n[a].name,n[a]);var s=l.load(t,i);return o.each(s.regions,function(e){var t=e.name;r.get(t)||n.push({name:t})}),n}};n.registerCoordinateSystem("geo",h),e.exports=h},2045:function(e,t,i){var n=i(66023).each,o=i(75376),r=i(70018).makeInner,a=i(34175),s=i(79380),l=i(8394),c=i(10003),d=r();e.exports={load:function(e,t){var i,r=d(t).parsed;if(r)return r;var u=t.specialAreas||{},h=t.geoJSON;try{i=h?o(h):[]}catch(e){throw Error("Invalid geoJson format\n"+e.message)}return n(i,function(t){var i=t.name;s(e,t),l(e,t),c(e,t);var n=u[i];n&&t.transformTo(n.left,n.top,n.width,n.height)}),a(e,i),d(t).parsed={regions:i,boundingRect:function(e){for(var t,i=0;i<e.length;i++){var n=e[i].getBoundingRect();(t=t||n.clone()).union(n)}return t}(i)}}}},97418:function(e,t,i){var n=i(42640),o=n.parseSVG,r=n.makeViewBoxTransform,a=i(35601),s=i(54668),l=i(66023),c=l.assert,d=l.createHashMap,u=i(71497),h=(0,i(70018).makeInner)();function p(e,t){var i,n,l=e.svgXML;try{n=(i=l&&o(l,{ignoreViewBox:!0,ignoreRootClip:!0})||{}).root,c(null!=n)}catch(e){throw Error("Invalid svg format\n"+e.message)}var d=i.width,h=i.height,p=i.viewBoxRect;if(t||(t=null==d||null==h?n.getBoundingRect():new u(0,0,0,0),null!=d&&(t.width=d),null!=h&&(t.height=h)),p){var f=r(p,t.width,t.height),g=n;(n=new a).add(g),g.scale=f.scale,g.position=f.position}return n.setClipPath(new s({shape:t.plain()})),{root:n,boundingRect:t}}e.exports={load:function(e,t){var i=h(t).originRoot;if(i)return{root:i,boundingRect:h(t).boundingRect};var n=p(t);return h(t).originRoot=n.root,h(t).boundingRect=n.boundingRect,n},makeGraphic:function(e,t,i){var n=h(t),o=n.rootMap||(n.rootMap=d()),r=o.get(i);if(r)return r;var a=n.originRoot,s=n.boundingRect;return n.originRootHostKey?r=p(t,s).root:(n.originRootHostKey=i,r=a),o.set(i,r)},removeGraphic:function(e,t,i){var n=h(t),o=n.rootMap;o&&o.removeKey(i),i===n.originRootHostKey&&(n.originRootHostKey=null)}}},70351:function(e,t,i){i(38603).__DEV__;var n=i(66023),o=n.each,r=n.createHashMap,a=i(55725),s=i(2045),l=i(97418),c=i(71497),d={geoJSON:s,svg:l};function u(e){return function(t,i){var n=h(t),r=[];return o(n,function(n){var o=d[n.type][e];o&&r.push(o(t,n,i))}),r}}function h(e){return a.retrieveMap(e)||[]}e.exports={load:function(e,t){var i,n=[],a=r(),s=r();return o(h(e),function(r){var l=d[r.type].load(e,r);o(l.regions,function(e){var i=e.name;t&&t.hasOwnProperty(i)&&(e=e.cloneShallow(i=t[i])),n.push(e),a.set(i,e),s.set(i,e.center)});var c=l.boundingRect;c&&(i?i.union(c):i=c.clone())}),{regions:n,regionsMap:a,nameCoordMap:s,boundingRect:i||new c(0,0,0,0)}},makeGraphic:u("makeGraphic"),removeGraphic:u("removeGraphic")}},55725:function(e,t,i){i(38603).__DEV__;var n=i(66023),o=n.createHashMap,r=n.isString,a=n.isArray,s=n.each;n.assert;var l=i(42640).parseXML,c=o(),d={geoJSON:function(e){var t=e.source;e.geoJSON=r(t)?"undefined"!=typeof JSON&&JSON.parse?JSON.parse(t):Function("return ("+t+");")():t},svg:function(e){e.svgXML=l(e.source)}};e.exports={registerMap:function(e,t,i){var n;return a(t)?n=t:t.svg?n=[{type:"svg",source:t.svg,specialAreas:t.specialAreas}]:(t.geoJson&&!t.features&&(i=t.specialAreas,t=t.geoJson),n=[{type:"geoJSON",source:t,specialAreas:i}]),s(n,function(e){var t=e.type;"geoJson"===t&&(t=e.type="geoJSON"),(0,d[t])(e)}),c.set(e,n)},retrieveMap:function(e){return c.get(e)}}},75376:function(e,t,i){var n=i(66023),o=i(41504);function r(e,t,i){for(var n=[],o=t[0],r=t[1],a=0;a<e.length;a+=2){var s=e.charCodeAt(a)-64,l=e.charCodeAt(a+1)-64;l=l>>1^-(1&l),s=(s>>1^-(1&s))+o,l+=r,o=s,r=l,n.push([s/i,l/i])}return n}e.exports=function(e){return!function(e){if(e.UTF8Encoding){var t=e.UTF8Scale;null==t&&(t=1024);for(var i=e.features,n=0;n<i.length;n++)for(var o=i[n].geometry,a=o.coordinates,s=o.encodeOffsets,l=0;l<a.length;l++){var c=a[l];if("Polygon"===o.type)a[l]=r(c,s[l],t);else if("MultiPolygon"===o.type)for(var d=0;d<c.length;d++){var u=c[d];c[d]=r(u,s[l][d],t)}}e.UTF8Encoding=!1}}(e),n.map(n.filter(e.features,function(e){return e.geometry&&e.properties&&e.geometry.coordinates.length>0}),function(e){var t=e.properties,i=e.geometry,r=i.coordinates,a=[];"Polygon"===i.type&&a.push({type:"polygon",exterior:r[0],interiors:r.slice(1)}),"MultiPolygon"===i.type&&n.each(r,function(e){e[0]&&a.push({type:"polygon",exterior:e[0],interiors:e.slice(1)})});var s=new o(t.name,a,t.cp);return s.properties=t,s})}},90777:function(e,t,i){var n=i(66023);function o(e,t){return t=t||[0,0],n.map([0,1],function(i){var n=t[i],o=e[i]/2,r=[],a=[];return r[i]=n-o,a[i]=n+o,r[1-i]=a[1-i]=t[1-i],Math.abs(this.dataToPoint(r)[i]-this.dataToPoint(a)[i])},this)}e.exports=function(e){var t=e.getBoundingRect();return{coordSys:{type:"geo",x:t.x,y:t.y,width:t.width,height:t.height,zoom:e.getZoom()},api:{coord:function(t){return e.dataToPoint(t)},size:n.bind(o,e)}}}},33371:function(e,t,i){var n=i(66023),o=i(76056),r=i(24954),a=i(42626),s=i(98763),l=i(80390),c=o.extend({type:"baseParallelAxis",axis:null,activeIntervals:[],getAreaSelectStyle:function(){return r([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},setActiveIntervals:function(e){var t=this.activeIntervals=n.clone(e);if(t)for(var i=t.length-1;i>=0;i--)s.asc(t[i])},getActiveState:function(e){var t=this.activeIntervals;if(!t.length)return"normal";if(null==e||isNaN(e))return"inactive";if(1===t.length){var i=t[0];if(i[0]<=e&&e<=i[1])return"active"}else for(var n=0,o=t.length;n<o;n++)if(t[n][0]<=e&&e<=t[n][1])return"active";return"inactive"}});n.merge(c.prototype,l),a("parallel",c,function(e,t){return t.type||(t.data?"category":"value")},{type:"value",dim:null,areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10}),e.exports=c},19201:function(e,t,i){var n=i(66023),o=i(36653),r=i(68006),a=i(16978),s=i(97224),l=i(76165),c=i(98763),d=i(28542),u=n.each,h=Math.min,p=Math.max,f=Math.floor,g=Math.ceil,m=c.round,v=Math.PI;function b(e,t,i){this._axesMap=n.createHashMap(),this._axesLayout={},this.dimensions=e.dimensions,this._rect,this._model=e,this._init(e,t,i)}function y(e,t){return h(p(e,t[0]),t[1])}b.prototype={type:"parallel",constructor:b,_init:function(e,t,i){var n=e.dimensions,o=e.parallelAxisIndex;u(n,function(e,i){var n=o[i],r=t.getComponent("parallelAxis",n),l=this._axesMap.set(e,new s(e,a.createScaleByModel(r),[0,0],r.get("type"),n)),c="category"===l.type;l.onBand=c&&r.get("boundaryGap"),l.inverse=r.get("inverse"),r.axis=l,l.model=r,l.coordinateSystem=r.coordinateSystem=this},this)},update:function(e,t){this._updateAxesFromSeries(this._model,e)},containPoint:function(e){var t=this._makeLayoutInfo(),i=t.axisBase,n=t.layoutBase,o=t.pixelDimIndex,r=e[1-o],a=e[o];return r>=i&&r<=i+t.axisLength&&a>=n&&a<=n+t.layoutLength},getModel:function(){return this._model},_updateAxesFromSeries:function(e,t){t.eachSeries(function(i){if(e.contains(i,t)){var n=i.getData();u(this.dimensions,function(e){var t=this._axesMap.get(e);t.scale.unionExtentFromData(n,n.mapDimension(e)),a.niceScaleExtent(t.scale,t.model)},this)}},this)},resize:function(e,t){this._rect=r.getLayoutRect(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),this._layoutAxes()},getRect:function(){return this._rect},_makeLayoutInfo:function(){var e,t=this._model,i=this._rect,n=["x","y"],o=["width","height"],r=t.get("layout"),a=+("horizontal"!==r),s=i[o[a]],l=[0,s],c=this.dimensions.length,d=y(t.get("axisExpandWidth"),l),u=y(t.get("axisExpandCount")||0,[0,c]),h=t.get("axisExpandable")&&c>3&&c>u&&u>1&&d>0&&s>0,p=t.get("axisExpandWindow");p?(e=y(p[1]-p[0],l),p[1]=p[0]+e):(e=y(d*(u-1),l),(p=[d*(t.get("axisExpandCenter")||f(c/2))-e/2])[1]=p[0]+e);var v=(s-e)/(c-u);v<3&&(v=0);var b=[f(m(p[0]/d,1))+1,g(m(p[1]/d,1))-1],w=v/d*p[0];return{layout:r,pixelDimIndex:a,layoutBase:i[n[a]],layoutLength:s,axisBase:i[n[1-a]],axisLength:i[o[1-a]],axisExpandable:h,axisExpandWidth:d,axisCollapseWidth:v,axisExpandWindow:p,axisCount:c,winInnerIndices:b,axisExpandWindow0Pos:w}},_layoutAxes:function(){var e=this._rect,t=this._axesMap,i=this.dimensions,n=this._makeLayoutInfo(),r=n.layout;t.each(function(e){var t=[0,n.axisLength],i=+!!e.inverse;e.setExtent(t[i],t[1-i])}),u(i,function(t,i){var a=(n.axisExpandable?function(e,t){var i,n,o=t.layoutLength,r=t.axisExpandWidth,a=t.axisCount,s=t.axisCollapseWidth,l=t.winInnerIndices,c=s,d=!1;return e<l[0]?(i=e*s,n=s):e<=l[1]?(i=t.axisExpandWindow0Pos+e*r-t.axisExpandWindow[0],c=r,d=!0):(i=o-(a-1-e)*s,n=s),{position:i,axisNameAvailableWidth:c,axisLabelShow:d,nameTruncateMaxWidth:n}}:function(e,t){var i=t.layoutLength/(t.axisCount-1);return{position:i*e,axisNameAvailableWidth:i,axisLabelShow:!0}})(i,n),s={horizontal:{x:a.position,y:n.axisLength},vertical:{x:0,y:a.position}},l=[s[r].x+e.x,s[r].y+e.y],c={horizontal:v/2,vertical:0}[r],d=o.create();o.rotate(d,d,c),o.translate(d,d,l),this._axesLayout[t]={position:l,rotation:c,transform:d,axisNameAvailableWidth:a.axisNameAvailableWidth,axisLabelShow:a.axisLabelShow,nameTruncateMaxWidth:a.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},getAxis:function(e){return this._axesMap.get(e)},dataToPoint:function(e,t){return this.axisCoordToPoint(this._axesMap.get(t).dataToCoord(e),t)},eachActiveState:function(e,t,i,o){null==i&&(i=0),null==o&&(o=e.count());var r,a=this._axesMap,s=this.dimensions,l=[],c=[];n.each(s,function(t){l.push(e.mapDimension(t)),c.push(a.get(t).model)});for(var d=this.hasAxisBrushed(),u=i;u<o;u++){if(d){r="active";for(var h=e.getValues(l,u),p=0,f=s.length;p<f;p++)if("inactive"===c[p].getActiveState(h[p])){r="inactive";break}}else r="normal";t(r,u)}},hasAxisBrushed:function(){for(var e=this.dimensions,t=this._axesMap,i=!1,n=0,o=e.length;n<o;n++)"normal"!==t.get(e[n]).model.getActiveState()&&(i=!0);return i},axisCoordToPoint:function(e,t){var i=this._axesLayout[t];return l.applyTransform([e,0],i.transform)},getAxisLayout:function(e){return n.clone(this._axesLayout[e])},getSlidedAxisExpandWindow:function(e){var t,i=this._makeLayoutInfo(),n=i.pixelDimIndex,o=i.axisExpandWindow.slice(),r=o[1]-o[0],a=[0,i.axisExpandWidth*(i.axisCount-1)];if(!this.containPoint(e))return{behavior:"none",axisExpandWindow:o};var s=e[n]-i.layoutBase-i.axisExpandWindow0Pos,l="slide",c=i.axisCollapseWidth,u=this._model.get("axisExpandSlideTriggerArea"),f=null!=u[0];if(c)f&&c&&s<r*u[0]?(l="jump",t=s-r*u[2]):f&&c&&s>r*(1-u[0])?(l="jump",t=s-r*(1-u[2])):(t=s-r*u[1])>=0&&(t=s-r*(1-u[1]))<=0&&(t=0),(t*=i.axisExpandWidth/c)?d(t,o,a,"all"):l="none";else{var r=o[1]-o[0];(o=[p(0,a[1]*s/r-r/2)])[1]=h(a[1],o[0]+r),o[0]=o[1]-r}return{axisExpandWindow:o,behavior:l}}},e.exports=b},97224:function(e,t,i){var n=i(66023),o=i(11237),r=function(e,t,i,n,r){o.call(this,e,t,i),this.type=n||"value",this.axisIndex=r};r.prototype={constructor:r,model:null,isHorizontal:function(){return"horizontal"!==this.coordinateSystem.getModel().get("layout")}},n.inherits(r,o),e.exports=r},59314:function(e,t,i){var n=i(66023),o=i(76056);i(33371),e.exports=o.extend({type:"parallel",dependencies:["parallelAxis"],coordinateSystem:null,dimensions:null,parallelAxisIndex:null,layoutMode:"box",defaultOption:{zlevel:0,z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},init:function(){o.prototype.init.apply(this,arguments),this.mergeOption({})},mergeOption:function(e){var t=this.option;e&&n.merge(t,e,!0),this._initDimensions()},contains:function(e,t){var i=e.get("parallelIndex");return null!=i&&t.getComponent("parallel",i)===this},setAxisExpand:function(e){n.each(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(t){e.hasOwnProperty(t)&&(this.option[t]=e[t])},this)},_initDimensions:function(){var e=this.dimensions=[],t=this.parallelAxisIndex=[],i=n.filter(this.dependentModels.parallelAxis,function(e){return(e.get("parallelIndex")||0)===this.componentIndex},this);n.each(i,function(i){e.push("dim"+i.get("dim")),t.push(i.componentIndex)})}})},54249:function(e,t,i){var n=i(19201);i(33776).register("parallel",{create:function(e,t){var i=[];return e.eachComponent("parallel",function(o,r){var a=new n(o,e,t);a.name="parallel_"+r,a.resize(o,t),o.coordinateSystem=a,a.model=o,i.push(a)}),e.eachSeries(function(t){if("parallel"===t.get("coordinateSystem")){var i=e.queryComponents({mainType:"parallel",index:t.get("parallelIndex"),id:t.get("parallelId")})[0];t.coordinateSystem=i.coordinateSystem}}),i}})},31879:function(e,t,i){var n=i(66023),o=i(70018);e.exports=function(e){var t,i;(function(e){if(!e.parallel){var t=!1;n.each(e.series,function(e){e&&"parallel"===e.type&&(t=!0)}),t&&(e.parallel=[{}])}})(e),t=e,i=o.normalizeToArray(t.parallelAxis),n.each(i,function(e){if(n.isObject(e)){var i=e.parallelIndex||0,r=o.normalizeToArray(t.parallel)[i];r&&r.parallelAxisDefault&&n.merge(e,r.parallelAxisDefault,!1)}})}},10224:function(e,t,i){var n=i(66023),o=i(99280),r=i(11237),a=(0,i(70018).makeInner)();function s(e,t){t=t||[0,360],r.call(this,"angle",e,t),this.type="category"}s.prototype={constructor:s,pointToData:function(e,t){return this.polar.pointToData(e,t)[+("radius"!==this.dim)]},dataToAngle:r.prototype.dataToCoord,angleToData:r.prototype.coordToData,calculateCategoryInterval:function(){var e=this.getLabelModel(),t=this.scale,i=t.getExtent(),n=t.count();if(i[1]-i[0]<1)return 0;var r=i[0],s=Math.abs(this.dataToCoord(r+1)-this.dataToCoord(r)),l=Math.max(o.getBoundingRect(r,e.getFont(),"center","top").height,7)/s;isNaN(l)&&(l=1/0);var c=Math.max(0,Math.floor(l)),d=a(this.model),u=d.lastAutoInterval,h=d.lastTickCount;return null!=u&&null!=h&&1>=Math.abs(u-c)&&1>=Math.abs(h-n)&&u>c?c=u:(d.lastTickCount=n,d.lastAutoInterval=c),c}},n.inherits(s,r),e.exports=s},57634:function(e,t,i){var n=i(66023),o=i(76056),r=i(42626),a=i(80390),s=o.extend({type:"polarAxis",axis:null,getCoordSysModel:function(){return this.ecModel.queryComponents({mainType:"polar",index:this.option.polarIndex,id:this.option.polarId})[0]}});n.merge(s.prototype,a);function l(e,t){return t.type||(t.data?"category":"value")}r("angle",s,l,{startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:!1}}),r("radius",s,l,{splitNumber:5})},89646:function(e,t,i){var n=i(94288),o=i(10224),r=function(e){this.name=e||"",this.cx=0,this.cy=0,this._radiusAxis=new n,this._angleAxis=new o,this._radiusAxis.polar=this._angleAxis.polar=this};r.prototype={type:"polar",axisPointerEnabled:!0,constructor:r,dimensions:["radius","angle"],model:null,containPoint:function(e){var t=this.pointToCoord(e);return this._radiusAxis.contain(t[0])&&this._angleAxis.contain(t[1])},containData:function(e){return this._radiusAxis.containData(e[0])&&this._angleAxis.containData(e[1])},getAxis:function(e){return this["_"+e+"Axis"]},getAxes:function(){return[this._radiusAxis,this._angleAxis]},getAxesByScale:function(e){var t=[],i=this._angleAxis,n=this._radiusAxis;return i.scale.type===e&&t.push(i),n.scale.type===e&&t.push(n),t},getAngleAxis:function(){return this._angleAxis},getRadiusAxis:function(){return this._radiusAxis},getOtherAxis:function(e){var t=this._angleAxis;return e===t?this._radiusAxis:t},getBaseAxis:function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},getTooltipAxes:function(e){var t=null!=e&&"auto"!==e?this.getAxis(e):this.getBaseAxis();return{baseAxes:[t],otherAxes:[this.getOtherAxis(t)]}},dataToPoint:function(e,t){return this.coordToPoint([this._radiusAxis.dataToRadius(e[0],t),this._angleAxis.dataToAngle(e[1],t)])},pointToData:function(e,t){var i=this.pointToCoord(e);return[this._radiusAxis.radiusToData(i[0],t),this._angleAxis.angleToData(i[1],t)]},pointToCoord:function(e){var t=e[0]-this.cx,i=e[1]-this.cy,n=this.getAngleAxis(),o=n.getExtent(),r=Math.min(o[0],o[1]),a=Math.max(o[0],o[1]);n.inverse?r=a-360:a=r+360;var s=Math.sqrt(t*t+i*i);t/=s;for(var l=Math.atan2(-(i/=s),t)/Math.PI*180,c=l<r?1:-1;l<r||l>a;)l+=360*c;return[s,l]},coordToPoint:function(e){var t=e[0],i=e[1]/180*Math.PI;return[Math.cos(i)*t+this.cx,-Math.sin(i)*t+this.cy]}},e.exports=r},12889:function(e,t,i){var n=i(47475);i(57634),e.exports=n.extendComponentModel({type:"polar",dependencies:["polarAxis","angleAxis"],coordinateSystem:null,findAxisModel:function(e){var t;return this.ecModel.eachComponent(e,function(e){e.getCoordSysModel()===this&&(t=e)},this),t},defaultOption:{zlevel:0,z:0,center:["50%","50%"],radius:"80%"}})},94288:function(e,t,i){var n=i(66023),o=i(11237);function r(e,t){o.call(this,"radius",e,t),this.type="category"}r.prototype={constructor:r,pointToData:function(e,t){return this.polar.pointToData(e,t)[+("radius"!==this.dim)]},dataToRadius:o.prototype.dataToCoord,radiusToData:o.prototype.coordToData},n.inherits(r,o),e.exports=r},1748:function(e,t,i){i(38603).__DEV__;var n=i(66023),o=i(89646),r=i(98763).parsePercent,a=i(16978),s=a.createScaleByModel,l=a.niceScaleExtent,c=i(33776),d=i(74733).getStackedDimension;function u(e,t){var i=this,o=i.getAngleAxis(),r=i.getRadiusAxis();if(o.scale.setExtent(1/0,-1/0),r.scale.setExtent(1/0,-1/0),e.eachSeries(function(e){if(e.coordinateSystem===i){var t=e.getData();n.each(t.mapDimension("radius",!0),function(e){r.scale.unionExtentFromData(t,d(t,e))}),n.each(t.mapDimension("angle",!0),function(e){o.scale.unionExtentFromData(t,d(t,e))})}}),l(o.scale,o.model),l(r.scale,r.model),"category"===o.type&&!o.onBand){var a=o.getExtent(),s=360/o.scale.count();o.inverse?a[1]+=s:a[1]-=s,o.setExtent(a[0],a[1])}}function h(e,t){if(e.type=t.get("type"),e.scale=s(t),e.onBand=t.get("boundaryGap")&&"category"===e.type,e.inverse=t.get("inverse"),"angleAxis"===t.mainType){e.inverse^=t.get("clockwise");var i=t.get("startAngle");e.setExtent(i,i+(e.inverse?-360:360))}t.axis=e,e.model=t}i(12889);var p={dimensions:o.prototype.dimensions,create:function(e,t){var i=[];return e.eachComponent("polar",function(e,n){var a,s,l,c,d,p,f=new o(n);f.update=u;var g=f.getRadiusAxis(),m=f.getAngleAxis(),v=e.findAxisModel("radiusAxis"),b=e.findAxisModel("angleAxis");h(g,v),h(m,b),a=e.get("center"),s=t.getWidth(),l=t.getHeight(),f.cx=r(a[0],s),f.cy=r(a[1],l),c=f.getRadiusAxis(),d=Math.min(s,l)/2,p=r(e.get("radius"),d),c.inverse?c.setExtent(p,0):c.setExtent(0,p),i.push(f),e.coordinateSystem=f,f.model=e}),e.eachSeries(function(t){if("polar"===t.get("coordinateSystem")){var i=e.queryComponents({mainType:"polar",index:t.get("polarIndex"),id:t.get("polarId")})[0];t.coordinateSystem=i.coordinateSystem}}),i}};c.register("polar",p)},18398:function(e,t,i){var n=i(66023);function o(e,t){return n.map(["Radius","Angle"],function(i,n){var o=this["get"+i+"Axis"](),r=t[n],a=e[n]/2,s="dataTo"+i,l="category"===o.type?o.getBandWidth():Math.abs(o[s](r-a)-o[s](r+a));return"Angle"===i&&(l=l*Math.PI/180),l},this)}e.exports=function(e){var t=e.getRadiusAxis(),i=e.getAngleAxis(),r=t.getExtent();return r[0]>r[1]&&r.reverse(),{coordSys:{type:"polar",cx:e.cx,cy:e.cy,r:r[1],r0:r[0]},api:{coord:n.bind(function(n){var o=t.dataToRadius(n[0]),r=i.dataToAngle(n[1]),a=e.coordToPoint([o,r]);return a.push(o,r*Math.PI/180),a}),size:n.bind(o,e)}}}},66923:function(e,t,i){var n=i(66023),o=i(11237);function r(e,t,i){o.call(this,e,t,i),this.type="value",this.angle=0,this.name="",this.model}n.inherits(r,o),e.exports=r},80194:function(e,t,i){var n=i(66023),o=i(66923),r=i(74323),a=i(98763),s=i(16978),l=s.getScaleExtent,c=s.niceScaleExtent,d=i(33776);function u(e,t,i){this._model=e,this.dimensions=[],this._indicatorAxes=n.map(e.getIndicatorModels(),function(e,t){var i="indicator_"+t,n=new o(i,new r);return n.name=e.get("name"),n.model=e,e.axis=n,this.dimensions.push(i),n},this),this.resize(e,i),this.cx,this.cy,this.r,this.r0,this.startAngle}u.prototype.getIndicatorAxes=function(){return this._indicatorAxes},u.prototype.dataToPoint=function(e,t){var i=this._indicatorAxes[t];return this.coordToPoint(i.dataToCoord(e),t)},u.prototype.coordToPoint=function(e,t){var i=this._indicatorAxes[t].angle;return[this.cx+e*Math.cos(i),this.cy-e*Math.sin(i)]},u.prototype.pointToData=function(e){var t,i=e[0]-this.cx,n=e[1]-this.cy,o=Math.sqrt(i*i+n*n);i/=o;for(var r=Math.atan2(-(n/=o),i),a=1/0,s=-1,l=0;l<this._indicatorAxes.length;l++){var c=this._indicatorAxes[l],d=Math.abs(r-c.angle);d<a&&(t=c,s=l,a=d)}return[s,+(t&&t.coodToData(o))]},u.prototype.resize=function(e,t){var i=e.get("center"),o=t.getWidth(),r=t.getHeight(),s=Math.min(o,r)/2;this.cx=a.parsePercent(i[0],o),this.cy=a.parsePercent(i[1],r),this.startAngle=e.get("startAngle")*Math.PI/180;var l=e.get("radius");("string"==typeof l||"number"==typeof l)&&(l=[0,l]),this.r0=a.parsePercent(l[0],s),this.r=a.parsePercent(l[1],s),n.each(this._indicatorAxes,function(e,t){e.setExtent(this.r0,this.r);var i=this.startAngle+t*Math.PI*2/this._indicatorAxes.length;e.angle=Math.atan2(Math.sin(i),Math.cos(i))},this)},u.prototype.update=function(e,t){var i=this._indicatorAxes,o=this._model;n.each(i,function(e){e.scale.setExtent(1/0,-1/0)}),e.eachSeriesByType("radar",function(t,r){if("radar"===t.get("coordinateSystem")&&e.getComponent("radar",t.get("radarIndex"))===o){var a=t.getData();n.each(i,function(e){e.scale.unionExtentFromData(a,a.mapDimension(e.dim))})}},this);var r=o.get("splitNumber");function s(e){var t=Math.pow(10,Math.floor(Math.log(e)/Math.LN10)),i=e/t;return 2===i?i=5:i*=2,i*t}n.each(i,function(e,t){var i,n,o=l(e.scale,e.model);c(e.scale,e.model);var d=e.model,u=e.scale,h=d.getMin(),p=d.getMax(),f=u.getInterval();if(null!=h&&null!=p)u.setExtent(+h,+p),u.setInterval((p-h)/r);else if(null!=h)do i=h+f*r,u.setExtent(+h,i),u.setInterval(f),f=s(f);while(i<o[1]&&isFinite(i)&&isFinite(o[1]));else if(null!=p)do n=p-f*r,u.setExtent(n,+p),u.setInterval(f),f=s(f);while(n>o[0]&&isFinite(n)&&isFinite(o[0]));else{u.getTicks().length-1>r&&(f=s(f));var g=Math.round((o[0]+o[1])/2/f)*f,m=Math.round(r/2);u.setExtent(a.round(g-m*f),a.round(g+(r-m)*f)),u.setInterval(f)}})},u.dimensions=[],u.create=function(e,t){var i=[];return e.eachComponent("radar",function(n){var o=new u(n,e,t);i.push(o),n.coordinateSystem=o}),e.eachSeriesByType("radar",function(e){"radar"===e.get("coordinateSystem")&&(e.coordinateSystem=i[e.get("radarIndex")||0])}),i},d.register("radar",u),e.exports=u},96274:function(e,t,i){var n=i(47475),o=i(66023),r=i(27780),a=i(27611),s=i(80390),l=r.valueAxis;function c(e,t){return o.defaults({show:t},e)}e.exports=n.extendComponentModel({type:"radar",optionUpdated:function(){var e=this.get("boundaryGap"),t=this.get("splitNumber"),i=this.get("scale"),n=this.get("axisLine"),r=this.get("axisTick"),l=this.get("axisLabel"),c=this.get("name"),d=this.get("name.show"),u=this.get("name.formatter"),h=this.get("nameGap"),p=this.get("triggerEvent"),f=o.map(this.get("indicator")||[],function(f){null!=f.max&&f.max>0&&!f.min?f.min=0:null!=f.min&&f.min<0&&!f.max&&(f.max=0);var g=c;if(null!=f.color&&(g=o.defaults({color:f.color},c)),f=o.merge(o.clone(f),{boundaryGap:e,splitNumber:t,scale:i,axisLine:n,axisTick:r,axisLabel:l,name:f.text,nameLocation:"end",nameGap:h,nameTextStyle:g,triggerEvent:p},!1),d||(f.name=""),"string"==typeof u){var m=f.name;f.name=u.replace("{value}",null!=m?m:"")}else"function"==typeof u&&(f.name=u(f.name,f));var v=o.extend(new a(f,null,this.ecModel),s);return v.mainType="radar",v.componentIndex=this.componentIndex,v},this);this.getIndicatorModels=function(){return f}},defaultOption:{zlevel:0,z:0,center:["50%","50%"],radius:"75%",startAngle:90,name:{show:!0},boundaryGap:[0,0],splitNumber:5,nameGap:15,scale:!1,shape:"polygon",axisLine:o.merge({lineStyle:{color:"#bbb"}},l.axisLine),axisLabel:c(l.axisLabel,!1),axisTick:c(l.axisTick,!1),splitLine:c(l.splitLine,!0),splitArea:c(l.splitArea,!0),indicator:[]}})},11049:function(e,t,i){var n=i(66023),o=i(76056),r=i(42626),a=i(80390),s=o.extend({type:"singleAxis",layoutMode:"box",axis:null,coordinateSystem:null,getCoordSysModel:function(){return this}});n.merge(s.prototype,a),r("single",s,function(e,t){return t.type||(t.data?"category":"value")},{left:"5%",top:"5%",right:"5%",bottom:"5%",type:"value",position:"bottom",orient:"horizontal",axisLine:{show:!0,lineStyle:{width:2,type:"solid"}},tooltip:{show:!0},axisTick:{show:!0,length:6,lineStyle:{width:2}},axisLabel:{show:!0,interval:"auto"},splitLine:{show:!0,lineStyle:{type:"dashed",opacity:.2}}}),e.exports=s},85865:function(e,t,i){var n=i(87642),o=i(16978),r=i(68006).getLayoutRect,a=i(66023).each;function s(e,t,i){this.dimension="single",this.dimensions=["single"],this._axis=null,this._rect,this._init(e,t,i),this.model=e}s.prototype={type:"singleAxis",axisPointerEnabled:!0,constructor:s,_init:function(e,t,i){var r=new n(this.dimension,o.createScaleByModel(e),[0,0],e.get("type"),e.get("position")),a="category"===r.type;r.onBand=a&&e.get("boundaryGap"),r.inverse=e.get("inverse"),r.orient=e.get("orient"),e.axis=r,r.model=e,r.coordinateSystem=this,this._axis=r},update:function(e,t){e.eachSeries(function(e){if(e.coordinateSystem===this){var t=e.getData();a(t.mapDimension(this.dimension,!0),function(e){this._axis.scale.unionExtentFromData(t,e)},this),o.niceScaleExtent(this._axis.scale,this._axis.model)}},this)},resize:function(e,t){this._rect=r({left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")},{width:t.getWidth(),height:t.getHeight()}),this._adjustAxis()},getRect:function(){return this._rect},_adjustAxis:function(){var e=this._rect,t=this._axis,i=t.isHorizontal(),n=i?[0,e.width]:[0,e.height],o=+!!t.reverse;t.setExtent(n[o],n[1-o]),this._updateAxisTransform(t,i?e.x:e.y)},_updateAxisTransform:function(e,t){var i=e.getExtent(),n=i[0]+i[1],o=e.isHorizontal();e.toGlobalCoord=o?function(e){return e+t}:function(e){return n-e+t},e.toLocalCoord=o?function(e){return e-t}:function(e){return n-e+t}},getAxis:function(){return this._axis},getBaseAxis:function(){return this._axis},getAxes:function(){return[this._axis]},getTooltipAxes:function(){return{baseAxes:[this.getAxis()]}},containPoint:function(e){var t=this.getRect(),i=this.getAxis();return"horizontal"===i.orient?i.contain(i.toLocalCoord(e[0]))&&e[1]>=t.y&&e[1]<=t.y+t.height:i.contain(i.toLocalCoord(e[1]))&&e[0]>=t.y&&e[0]<=t.y+t.height},pointToData:function(e){var t=this.getAxis();return[t.coordToData(t.toLocalCoord(e[+("horizontal"!==t.orient)]))]},dataToPoint:function(e){var t=this.getAxis(),i=this.getRect(),n=[],o=+("horizontal"!==t.orient);return e instanceof Array&&(e=e[0]),n[o]=t.toGlobalCoord(t.dataToCoord(+e)),n[1-o]=0===o?i.y+i.height/2:i.x+i.width/2,n}},e.exports=s},87642:function(e,t,i){var n=i(66023),o=i(11237),r=function(e,t,i,n,r){o.call(this,e,t,i),this.type=n||"value",this.position=r||"bottom",this.orient=null};r.prototype={constructor:r,model:null,isHorizontal:function(){var e=this.position;return"top"===e||"bottom"===e},pointToData:function(e,t){return this.coordinateSystem.pointToData(e,t)[0]},toGlobalCoord:null,toLocalCoord:null},n.inherits(r,o),e.exports=r},34696:function(e,t,i){var n=i(66023);function o(e,t){var i=this.getAxis(),n=t instanceof Array?t[0]:t,o=(e instanceof Array?e[0]:e)/2;return"category"===i.type?i.getBandWidth():Math.abs(i.dataToCoord(n-o)-i.dataToCoord(n+o))}e.exports=function(e){var t=e.getRect();return{coordSys:{type:"singleAxis",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(t){return e.dataToPoint(t)},size:n.bind(o,e)}}}},42897:function(e,t,i){var n=i(66023);t.layout=function(e,t){t=t||{};var i=e.coordinateSystem,o=e.axis,r={},a=o.position,s=o.orient,l=i.getRect(),c=[l.x,l.x+l.width,l.y,l.y+l.height],d={horizontal:{top:c[2],bottom:c[3]},vertical:{left:c[0],right:c[1]}};r.position=["vertical"===s?d.vertical[a]:c[0],"horizontal"===s?d.horizontal[a]:c[3]],r.rotation=Math.PI/2*({horizontal:0,vertical:1})[s],r.labelDirection=r.tickDirection=r.nameDirection=({top:-1,bottom:1,right:1,left:-1})[a],e.get("axisTick.inside")&&(r.tickDirection=-r.tickDirection),n.retrieve(t.labelInside,e.get("axisLabel.inside"))&&(r.labelDirection=-r.labelDirection);var u=t.rotate;return null==u&&(u=e.get("axisLabel.rotate")),r.labelRotation="top"===a?-u:u,r.z2=1,r}},593:function(e,t,i){var n=i(85865);i(33776).register("single",{create:function(e,t){var i=[];return e.eachComponent("singleAxis",function(o,r){var a=new n(o,e,t);a.name="single_"+r,a.resize(o,t),o.coordinateSystem=a,i.push(a)}),e.eachSeries(function(t){if("singleAxis"===t.get("coordinateSystem")){var i=e.queryComponents({mainType:"singleAxis",index:t.get("singleAxisIndex"),id:t.get("singleAxisId")})[0];t.coordinateSystem=i&&i.coordinateSystem}}),i},dimensions:n.prototype.dimensions})},13593:function(e){function t(e){return e}function i(e,i,n,o,r){this._old=e,this._new=i,this._oldKeyGetter=n||t,this._newKeyGetter=o||t,this.context=r}function n(e,t,i,n,o){for(var r=0;r<e.length;r++){var a="_ec_"+o[n](e[r],r),s=t[a];null==s?(i.push(a),t[a]=r):(s.length||(t[a]=s=[s]),s.push(r))}}i.prototype={constructor:i,add:function(e){return this._add=e,this},update:function(e){return this._update=e,this},remove:function(e){return this._remove=e,this},execute:function(){var e,t=this._old,i=this._new,o={},r=[],a=[];for(n(t,{},r,"_oldKeyGetter",this),n(i,o,a,"_newKeyGetter",this),e=0;e<t.length;e++){var s=r[e],l=o[s];if(null!=l){var c=l.length;c?(1===c&&(o[s]=null),l=l.unshift()):o[s]=null,this._update&&this._update(l,e)}else this._remove&&this._remove(e)}for(var e=0;e<a.length;e++){var s=a[e];if(o.hasOwnProperty(s)){var l=o[s];if(null==l)continue;if(l.length)for(var d=0,c=l.length;d<c;d++)this._add&&this._add(l[d]);else this._add&&this._add(l)}}}},e.exports=i},44185:function(e,t,i){i(38603).__DEV__;var n=i(66023),o=i(51938).enableClassCheck;function r(e){return"_EC_"+e}var a=function(e){this._directed=e||!1,this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this.data,this.edgeData},s=a.prototype;function l(e,t){this.id=null==e?"":e,this.inEdges=[],this.outEdges=[],this.edges=[],this.hostGraph,this.dataIndex=null==t?-1:t}function c(e,t,i){this.node1=e,this.node2=t,this.dataIndex=null==i?-1:i}s.type="graph",s.isDirected=function(){return this._directed},s.addNode=function(e,t){e=e||""+t;var i=this._nodesMap;if(!i[r(e)]){var n=new l(e,t);return n.hostGraph=this,this.nodes.push(n),i[r(e)]=n,n}},s.getNodeByIndex=function(e){var t=this.data.getRawIndex(e);return this.nodes[t]},s.getNodeById=function(e){return this._nodesMap[r(e)]},s.addEdge=function(e,t,i){var n=this._nodesMap,o=this._edgesMap;if("number"==typeof e&&(e=this.nodes[e]),"number"==typeof t&&(t=this.nodes[t]),l.isInstance(e)||(e=n[r(e)]),l.isInstance(t)||(t=n[r(t)]),e&&t){var a=e.id+"-"+t.id;if(!o[a]){var s=new c(e,t,i);return s.hostGraph=this,this._directed&&(e.outEdges.push(s),t.inEdges.push(s)),e.edges.push(s),e!==t&&t.edges.push(s),this.edges.push(s),o[a]=s,s}}},s.getEdgeByIndex=function(e){var t=this.edgeData.getRawIndex(e);return this.edges[t]},s.getEdge=function(e,t){l.isInstance(e)&&(e=e.id),l.isInstance(t)&&(t=t.id);var i=this._edgesMap;return this._directed?i[e+"-"+t]:i[e+"-"+t]||i[t+"-"+e]},s.eachNode=function(e,t){for(var i=this.nodes,n=i.length,o=0;o<n;o++)i[o].dataIndex>=0&&e.call(t,i[o],o)},s.eachEdge=function(e,t){for(var i=this.edges,n=i.length,o=0;o<n;o++)i[o].dataIndex>=0&&i[o].node1.dataIndex>=0&&i[o].node2.dataIndex>=0&&e.call(t,i[o],o)},s.breadthFirstTraverse=function(e,t,i,n){if(l.isInstance(t)||(t=this._nodesMap[r(t)]),t){for(var o="out"===i?"outEdges":"in"===i?"inEdges":"edges",a=0;a<this.nodes.length;a++)this.nodes[a].__visited=!1;if(!e.call(n,t,null))for(var s=[t];s.length;)for(var c=s.shift(),d=c[o],a=0;a<d.length;a++){var u=d[a],h=u.node1===c?u.node2:u.node1;if(!h.__visited){if(e.call(n,h,c))return;s.push(h),h.__visited=!0}}}},s.update=function(){for(var e=this.data,t=this.edgeData,i=this.nodes,n=this.edges,o=0,r=i.length;o<r;o++)i[o].dataIndex=-1;for(var o=0,r=e.count();o<r;o++)i[e.getRawIndex(o)].dataIndex=o;t.filterSelf(function(e){var i=n[t.getRawIndex(e)];return i.node1.dataIndex>=0&&i.node2.dataIndex>=0});for(var o=0,r=n.length;o<r;o++)n[o].dataIndex=-1;for(var o=0,r=t.count();o<r;o++)n[t.getRawIndex(o)].dataIndex=o},s.clone=function(){for(var e=new a(this._directed),t=this.nodes,i=this.edges,n=0;n<t.length;n++)e.addNode(t[n].id,t[n].dataIndex);for(var n=0;n<i.length;n++){var o=i[n];e.addEdge(o.node1.id,o.node2.id,o.dataIndex)}return e},l.prototype={constructor:l,degree:function(){return this.edges.length},inDegree:function(){return this.inEdges.length},outDegree:function(){return this.outEdges.length},getModel:function(e){if(!(this.dataIndex<0))return this.hostGraph.data.getItemModel(this.dataIndex).getModel(e)}},c.prototype.getModel=function(e){if(!(this.dataIndex<0))return this.hostGraph.edgeData.getItemModel(this.dataIndex).getModel(e)};var d=function(e,t){return{getValue:function(i){var n=this[e][t];return n.get(n.getDimension(i||"value"),this.dataIndex)},setVisual:function(i,n){this.dataIndex>=0&&this[e][t].setItemVisual(this.dataIndex,i,n)},getVisual:function(i,n){return this[e][t].getItemVisual(this.dataIndex,i,n)},setLayout:function(i,n){this.dataIndex>=0&&this[e][t].setItemLayout(this.dataIndex,i,n)},getLayout:function(){return this[e][t].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[e][t].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[e][t].getRawIndex(this.dataIndex)}}};n.mixin(l,d("hostGraph","data")),n.mixin(c,d("hostGraph","edgeData")),a.Node=l,a.Edge=c,o(l),o(c),e.exports=a},90942:function(e,t,i){i(38603).__DEV__;var n=i(66023),o=i(27611),r=i(13593),a=i(36265),s=i(89211),l=s.defaultDimValueGetters,c=s.DefaultDataProvider,d=i(39116).summarizeDimensions,u=n.isObject,h="undefined",p={float:typeof Float64Array===h?Array:Float64Array,int:typeof Int32Array===h?Array:Int32Array,ordinal:Array,number:Array,time:Array},f=typeof Uint32Array===h?Array:Uint32Array,g=typeof Int32Array===h?Array:Int32Array,m=typeof Uint16Array===h?Array:Uint16Array;function v(e){return e._rawCount>65535?f:m}var b=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_rawData","_chunkSize","_chunkCount","_dimValueGetter","_count","_rawCount","_nameDimIdx","_idDimIdx"],y=["_extent","_approximateExtent","_rawExtent"];function w(e,t){n.each(b.concat(t.__wrappedMethods||[]),function(i){t.hasOwnProperty(i)&&(e[i]=t[i])}),e.__wrappedMethods=t.__wrappedMethods,n.each(y,function(i){e[i]=n.clone(t[i])}),e._calculationInfo=n.extend(t._calculationInfo)}var _=function(e,t){e=e||["x","y"];for(var i={},o=[],r={},a=0;a<e.length;a++){var s=e[a];n.isString(s)&&(s={name:s});var l=s.name;s.type=s.type||"float",s.coordDim||(s.coordDim=l,s.coordDimIndex=0),s.otherDims=s.otherDims||{},o.push(l),i[l]=s,s.index=a,s.createInvertedIndices&&(r[l]=[])}this.dimensions=o,this._dimensionInfos=i,this.hostModel=t,this.dataType,this._indices=null,this._count=0,this._rawCount=0,this._storage={},this._nameList=[],this._idList=[],this._optionModels=[],this._visual={},this._layout={},this._itemVisuals=[],this.hasItemVisual={},this._itemLayouts=[],this._graphicEls=[],this._chunkSize=1e5,this._chunkCount=0,this._rawData,this._rawExtent={},this._extent={},this._approximateExtent={},this._dimensionsSummary=d(this),this._invertedIndicesMap=r,this._calculationInfo={}},x=_.prototype;function S(e,t,i,n,o){var r=p[t.type],a=n-1,s=t.name,l=e[s][a];if(l&&l.length<i){for(var c=new r(Math.min(o-a*i,i)),d=0;d<l.length;d++)c[d]=l[d];e[s][a]=c}for(var u=n*i;u<o;u+=i)e[s].push(new r(Math.min(o-u,i)))}function C(e){var t=e._invertedIndicesMap;n.each(t,function(i,n){var o=e._dimensionInfos[n].ordinalMeta;if(o){i=t[n]=new g(o.categories.length);for(var r=0;r<i.length;r++)i[r]=-1;for(var r=0;r<e._count;r++)i[e.get(n,r)]=r}})}function k(e,t,i){var n;if(null!=t){var o=e._chunkSize,r=Math.floor(i/o),a=e.dimensions[t],s=e._storage[a][r];if(s){n=s[i%o];var l=e._dimensionInfos[a].ordinalMeta;l&&l.categories.length&&(n=l.categories[n])}}return n}function I(e){return e}function A(e){return e<this._count&&e>=0?this._indices[e]:-1}function T(e,t){var i=e._idList[t];return null==i&&(i=k(e,e._idDimIdx,t)),null==i&&(i="e\0\0"+t),i}function E(e){return n.isArray(e)||(e=[e]),e}function R(e,t){var i=e.dimensions,o=new _(n.map(i,e.getDimensionInfo,e),e.hostModel);w(o,e);for(var r=o._storage={},a=e._storage,s=0;s<i.length;s++){var l=i[s];a[l]&&(n.indexOf(t,l)>=0?(r[l]=function(e){for(var t=Array(e.length),i=0;i<e.length;i++)t[i]=function(e){var t=e.constructor;return t===Array?e.slice():new t(e)}(e[i]);return t}(a[l]),o._rawExtent[l]=D(),o._extent[l]=null):r[l]=a[l])}return o}function D(){return[1/0,-1/0]}x.type="list",x.hasItemOption=!0,x.getDimension=function(e){return isNaN(e)||(e=this.dimensions[e]||e),e},x.getDimensionInfo=function(e){return this._dimensionInfos[this.getDimension(e)]},x.getDimensionsOnCoord=function(){return this._dimensionsSummary.dataDimsOnCoord.slice()},x.mapDimension=function(e,t){var i=this._dimensionsSummary;if(null==t)return i.encodeFirstDimNotExtra[e];var n=i.encode[e];return!0===t?(n||[]).slice():n&&n[t]},x.initData=function(e,t,i){(a.isInstance(e)||n.isArrayLike(e))&&(e=new c(e,this.dimensions.length)),this._rawData=e,this._storage={},this._indices=null,this._nameList=t||[],this._idList=[],this._nameRepeatCount={},i||(this.hasItemOption=!1),this.defaultDimValueGetter=l[this._rawData.getSource().sourceFormat],this._dimValueGetter=i=i||this.defaultDimValueGetter,this._dimValueGetterArrayRows=l.arrayRows,this._rawExtent={},this._initDataFromProvider(0,e.count()),e.pure&&(this.hasItemOption=!1)},x.getProvider=function(){return this._rawData},x.appendData=function(e){var t=this._rawData,i=this.count();t.appendData(e);var n=t.count();t.persistent||(n+=i),this._initDataFromProvider(i,n)},x.appendValues=function(e,t){for(var i=this._chunkSize,n=this._storage,o=this.dimensions,r=o.length,a=this._rawExtent,s=this.count(),l=s+Math.max(e.length,t?t.length:0),c=this._chunkCount,d=0;d<r;d++){var u=o[d];a[u]||(a[u]=D()),n[u]||(n[u]=[]),S(n,this._dimensionInfos[u],i,c,l),this._chunkCount=n[u].length}for(var h=Array(r),p=s;p<l;p++){for(var f=p-s,g=Math.floor(p/i),m=p%i,v=0;v<r;v++){var u=o[v],b=this._dimValueGetterArrayRows(e[f]||h,u,f,v);n[u][g][m]=b;var y=a[u];b<y[0]&&(y[0]=b),b>y[1]&&(y[1]=b)}t&&(this._nameList[p]=t[f])}this._rawCount=this._count=l,this._extent={},C(this)},x._initDataFromProvider=function(e,t){if(!(e>=t)){for(var i,n=this._chunkSize,o=this._rawData,r=this._storage,a=this.dimensions,s=a.length,l=this._dimensionInfos,c=this._nameList,d=this._idList,u=this._rawExtent,h=this._nameRepeatCount={},p=this._chunkCount,f=0;f<s;f++){var g=a[f];u[g]||(u[g]=D());var m=l[g];0===m.otherDims.itemName&&(i=this._nameDimIdx=f),0===m.otherDims.itemId&&(this._idDimIdx=f),r[g]||(r[g]=[]),S(r,m,n,p,t),this._chunkCount=r[g].length}for(var v=Array(s),b=e;b<t;b++){v=o.getItem(b,v);for(var y=Math.floor(b/n),w=b%n,_=0;_<s;_++){var g=a[_],x=r[g][y],k=this._dimValueGetter(v,g,b,_);x[w]=k;var I=u[g];k<I[0]&&(I[0]=k),k>I[1]&&(I[1]=k)}if(!o.pure){var A=c[b];if(v&&null==A){if(null!=v.name)c[b]=A=v.name;else if(null!=i){var T=a[i],E=r[T][y];if(E){A=E[w];var R=l[T].ordinalMeta;R&&R.categories.length&&(A=R.categories[A])}}}var O=null==v?null:v.id;null==O&&null!=A&&(h[A]=h[A]||0,O=A,h[A]>0&&(O+="__ec__"+h[A]),h[A]++),null!=O&&(d[b]=O)}}!o.persistent&&o.clean&&o.clean(),this._rawCount=this._count=t,this._extent={},C(this)}},x.count=function(){return this._count},x.getIndices=function(){var e,t=this._indices;if(t){var i=t.constructor,n=this._count;if(i===Array){e=new i(n);for(var o=0;o<n;o++)e[o]=t[o]}else e=new i(t.buffer,0,n)}else for(var i=v(this),e=new i(this.count()),o=0;o<e.length;o++)e[o]=o;return e},x.get=function(e,t){if(!(t>=0&&t<this._count))return NaN;var i=this._storage;if(!i[e])return NaN;var n=Math.floor((t=this.getRawIndex(t))/this._chunkSize),o=t%this._chunkSize;return i[e][n][o]},x.getByRawIndex=function(e,t){if(!(t>=0&&t<this._rawCount))return NaN;var i=this._storage[e];if(!i)return NaN;var n=Math.floor(t/this._chunkSize),o=t%this._chunkSize;return i[n][o]},x._getFast=function(e,t){var i=Math.floor(t/this._chunkSize),n=t%this._chunkSize;return this._storage[e][i][n]},x.getValues=function(e,t){var i=[];n.isArray(e)||(t=e,e=this.dimensions);for(var o=0,r=e.length;o<r;o++)i.push(this.get(e[o],t));return i},x.hasValue=function(e){for(var t=this._dimensionsSummary.dataDimsOnCoord,i=this._dimensionInfos,n=0,o=t.length;n<o;n++)if("ordinal"!==i[t[n]].type&&isNaN(this.get(t[n],e)))return!1;return!0},x.getDataExtent=function(e){e=this.getDimension(e);var t,i=this._storage[e],n=D();if(!i)return n;var o=this.count();if(!this._indices)return this._rawExtent[e].slice();if(t=this._extent[e])return t.slice();for(var r=(t=n)[0],a=t[1],s=0;s<o;s++){var l=this._getFast(e,this.getRawIndex(s));l<r&&(r=l),l>a&&(a=l)}return t=[r,a],this._extent[e]=t,t},x.getApproximateExtent=function(e){return e=this.getDimension(e),this._approximateExtent[e]||this.getDataExtent(e)},x.setApproximateExtent=function(e,t){t=this.getDimension(t),this._approximateExtent[t]=e.slice()},x.getCalculationInfo=function(e){return this._calculationInfo[e]},x.setCalculationInfo=function(e,t){u(e)?n.extend(this._calculationInfo,e):this._calculationInfo[e]=t},x.getSum=function(e){var t=this._storage[e],i=0;if(t)for(var n=0,o=this.count();n<o;n++){var r=this.get(e,n);isNaN(r)||(i+=r)}return i},x.getMedian=function(e){var t=[];this.each(e,function(e,i){isNaN(e)||t.push(e)});var i=[].concat(t).sort(function(e,t){return e-t}),n=this.count();return 0===n?0:n%2==1?i[(n-1)/2]:(i[n/2]+i[n/2-1])/2},x.rawIndexOf=function(e,t){var i=(e&&this._invertedIndicesMap[e])[t];return null==i||isNaN(i)?-1:i},x.indexOfName=function(e){for(var t=0,i=this.count();t<i;t++)if(this.getName(t)===e)return t;return -1},x.indexOfRawIndex=function(e){if(!this._indices)return e;if(e>=this._rawCount||e<0)return -1;var t=this._indices,i=t[e];if(null!=i&&i<this._count&&i===e)return e;for(var n=0,o=this._count-1;n<=o;){var r=(n+o)/2|0;if(t[r]<e)n=r+1;else{if(!(t[r]>e))return r;o=r-1}}return -1},x.indicesOfNearest=function(e,t,i){var n=this._storage[e],o=[];if(!n)return o;null==i&&(i=1/0);for(var r=Number.MAX_VALUE,a=-1,s=0,l=this.count();s<l;s++){var c=t-this.get(e,s),d=Math.abs(c);c<=i&&d<=r&&((d<r||c>=0&&a<0)&&(r=d,a=c,o.length=0),o.push(s))}return o},x.getRawIndex=I,x.getRawDataItem=function(e){if(this._rawData.persistent)return this._rawData.getItem(this.getRawIndex(e));for(var t=[],i=0;i<this.dimensions.length;i++){var n=this.dimensions[i];t.push(this.get(n,e))}return t},x.getName=function(e){var t=this.getRawIndex(e);return this._nameList[t]||k(this,this._nameDimIdx,t)||""},x.getId=function(e){return T(this,this.getRawIndex(e))},x.each=function(e,t,i,o){"use strict";if(this._count){"function"==typeof e&&(o=i,i=t,t=e,e=[]),i=i||o||this;for(var r=(e=n.map(E(e),this.getDimension,this)).length,a=0;a<this.count();a++)switch(r){case 0:t.call(i,a);break;case 1:t.call(i,this.get(e[0],a),a);break;case 2:t.call(i,this.get(e[0],a),this.get(e[1],a),a);break;default:for(var s=0,l=[];s<r;s++)l[s]=this.get(e[s],a);l[s]=a,t.apply(i,l)}}},x.filterSelf=function(e,t,i,o){"use strict";if(this._count){"function"==typeof e&&(o=i,i=t,t=e,e=[]),i=i||o||this,e=n.map(E(e),this.getDimension,this);for(var r=this.count(),a=new(v(this))(r),s=[],l=e.length,c=0,d=e[0],u=0;u<r;u++){var h,p=this.getRawIndex(u);if(0===l)h=t.call(i,u);else if(1===l){var f=this._getFast(d,p);h=t.call(i,f,u)}else{for(var g=0;g<l;g++)s[g]=this._getFast(d,p);s[g]=u,h=t.apply(i,s)}h&&(a[c++]=p)}return c<r&&(this._indices=a),this._count=c,this._extent={},this.getRawIndex=this._indices?A:I,this}},x.selectRange=function(e){"use strict";if(this._count){var t=[];for(var i in e)e.hasOwnProperty(i)&&t.push(i);var n=t.length;if(n){var o=this.count(),r=new(v(this))(o),a=0,s=t[0],l=e[s][0],c=e[s][1],d=!1;if(!this._indices){var u=0;if(1===n){for(var h=this._storage[t[0]],p=0;p<this._chunkCount;p++)for(var f=h[p],g=Math.min(this._count-p*this._chunkSize,this._chunkSize),m=0;m<g;m++){var b=f[m];(b>=l&&b<=c||isNaN(b))&&(r[a++]=u),u++}d=!0}else if(2===n){for(var h=this._storage[s],y=this._storage[t[1]],w=e[t[1]][0],_=e[t[1]][1],p=0;p<this._chunkCount;p++)for(var f=h[p],x=y[p],g=Math.min(this._count-p*this._chunkSize,this._chunkSize),m=0;m<g;m++){var b=f[m],S=x[m];(b>=l&&b<=c||isNaN(b))&&(S>=w&&S<=_||isNaN(S))&&(r[a++]=u),u++}d=!0}}if(!d)if(1===n)for(var m=0;m<o;m++){var C=this.getRawIndex(m),b=this._getFast(s,C);(b>=l&&b<=c||isNaN(b))&&(r[a++]=C)}else for(var m=0;m<o;m++){for(var k=!0,C=this.getRawIndex(m),p=0;p<n;p++){var T=t[p],b=this._getFast(i,C);(b<e[T][0]||b>e[T][1])&&(k=!1)}k&&(r[a++]=this.getRawIndex(m))}return a<o&&(this._indices=r),this._count=a,this._extent={},this.getRawIndex=this._indices?A:I,this}}},x.mapArray=function(e,t,i,n){"use strict";"function"==typeof e&&(n=i,i=t,t=e,e=[]),i=i||n||this;var o=[];return this.each(e,function(){o.push(t&&t.apply(this,arguments))},i),o},x.map=function(e,t,i,o){"use strict";i=i||o||this;var r=R(this,e=n.map(E(e),this.getDimension,this));r._indices=this._indices,r.getRawIndex=r._indices?A:I;for(var a=r._storage,s=[],l=this._chunkSize,c=e.length,d=this.count(),u=[],h=r._rawExtent,p=0;p<d;p++){for(var f=0;f<c;f++)u[f]=this.get(e[f],p);u[c]=p;var g=t&&t.apply(i,u);if(null!=g){"object"!=typeof g&&(s[0]=g,g=s);for(var m=this.getRawIndex(p),v=Math.floor(m/l),b=m%l,y=0;y<g.length;y++){var w=e[y],_=g[y],x=h[w],S=a[w];S&&(S[v][b]=_),_<x[0]&&(x[0]=_),_>x[1]&&(x[1]=_)}}}return r},x.downSample=function(e,t,i,n){for(var o=R(this,[e]),r=o._storage,a=[],s=Math.floor(1/t),l=r[e],c=this.count(),d=this._chunkSize,u=o._rawExtent[e],h=new(v(this))(c),p=0,f=0;f<c;f+=s){s>c-f&&(a.length=s=c-f);for(var g=0;g<s;g++){var m=this.getRawIndex(f+g),b=Math.floor(m/d),y=m%d;a[g]=l[b][y]}var w=i(a),_=this.getRawIndex(Math.min(f+n(a,w)||0,c-1)),x=Math.floor(_/d),S=_%d;l[x][S]=w,w<u[0]&&(u[0]=w),w>u[1]&&(u[1]=w),h[p++]=_}return o._count=p,o._indices=h,o.getRawIndex=A,o},x.getItemModel=function(e){var t=this.hostModel;return new o(this.getRawDataItem(e),t,t&&t.ecModel)},x.diff=function(e){var t=this;return new r(e?e.getIndices():[],this.getIndices(),function(t){return T(e,t)},function(e){return T(t,e)})},x.getVisual=function(e){var t=this._visual;return t&&t[e]},x.setVisual=function(e,t){if(u(e)){for(var i in e)e.hasOwnProperty(i)&&this.setVisual(i,e[i]);return}this._visual=this._visual||{},this._visual[e]=t},x.setLayout=function(e,t){if(u(e)){for(var i in e)e.hasOwnProperty(i)&&this.setLayout(i,e[i]);return}this._layout[e]=t},x.getLayout=function(e){return this._layout[e]},x.getItemLayout=function(e){return this._itemLayouts[e]},x.setItemLayout=function(e,t,i){this._itemLayouts[e]=i?n.extend(this._itemLayouts[e]||{},t):t},x.clearItemLayouts=function(){this._itemLayouts.length=0},x.getItemVisual=function(e,t,i){var n=this._itemVisuals[e],o=n&&n[t];return null!=o||i?o:this.getVisual(t)},x.setItemVisual=function(e,t,i){var n=this._itemVisuals[e]||{},o=this.hasItemVisual;if(this._itemVisuals[e]=n,u(t)){for(var r in t)t.hasOwnProperty(r)&&(n[r]=t[r],o[r]=!0);return}n[t]=i,o[t]=!0},x.clearAllVisual=function(){this._visual={},this._itemVisuals=[],this.hasItemVisual={}};var O=function(e){e.seriesIndex=this.seriesIndex,e.dataIndex=this.dataIndex,e.dataType=this.dataType};x.setItemGraphicEl=function(e,t){var i=this.hostModel;t&&(t.dataIndex=e,t.dataType=this.dataType,t.seriesIndex=i&&i.seriesIndex,"group"===t.type&&t.traverse(O,t)),this._graphicEls[e]=t},x.getItemGraphicEl=function(e){return this._graphicEls[e]},x.eachItemGraphicEl=function(e,t){n.each(this._graphicEls,function(i,n){i&&e&&e.call(t,i,n)})},x.cloneShallow=function(e){if(e||(e=new _(n.map(this.dimensions,this.getDimensionInfo,this),this.hostModel)),e._storage=this._storage,w(e,this),this._indices){var t=this._indices.constructor;e._indices=new t(this._indices)}else e._indices=null;return e.getRawIndex=e._indices?A:I,e},x.wrapMethod=function(e,t){var i=this[e];"function"==typeof i&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var e=i.apply(this,arguments);return t.apply(this,[e].concat(n.slice(arguments)))})},x.TRANSFERABLE_METHODS=["cloneShallow","downSample","map"],x.CHANGABLE_METHODS=["filterSelf","selectRange"],e.exports=_},5298:function(e,t,i){var n=i(66023),o=n.createHashMap,r=n.isObject,a=n.map;function s(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this._map}s.createByAxisModel=function(e){var t=e.option,i=t.data,n=i&&a(i,d);return new s({categories:n,needCollect:!n,deduplication:!1!==t.dedplication})};var l=s.prototype;function c(e){return e._map||(e._map=o(e.categories))}function d(e){return r(e)&&null!=e.value?e.value:e+""}l.getOrdinal=function(e){return c(this).get(e)},l.parseAndCollect=function(e){var t,i=this._needCollect;if("string"!=typeof e&&!i)return e;if(i&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,t;var n=c(this);return null==(t=n.get(e))&&(i?(t=this.categories.length,this.categories[t]=e,n.set(e,t)):t=NaN),t},e.exports=s},36265:function(e,t,i){var n=i(66023),o=n.createHashMap,r=n.isTypedArray,a=i(51938).enableClassCheck,s=i(38237),l=s.SOURCE_FORMAT_ORIGINAL,c=s.SERIES_LAYOUT_BY_COLUMN,d=s.SOURCE_FORMAT_UNKNOWN,u=s.SOURCE_FORMAT_TYPED_ARRAY,h=s.SOURCE_FORMAT_KEYED_COLUMNS;function p(e){this.fromDataset=e.fromDataset,this.data=e.data||(e.sourceFormat===h?{}:[]),this.sourceFormat=e.sourceFormat||d,this.seriesLayoutBy=e.seriesLayoutBy||c,this.dimensionsDefine=e.dimensionsDefine,this.encodeDefine=e.encodeDefine&&o(e.encodeDefine),this.startIndex=e.startIndex||0,this.dimensionsDetectCount=e.dimensionsDetectCount}p.seriesDataToSource=function(e){return new p({data:e,sourceFormat:r(e)?u:l,fromDataset:!1})},a(p),e.exports=p},67935:function(e,t,i){var n=i(66023),o=i(27611),r=i(22911),a=i(90942),s=i(35047),l=function(e,t){this.name=e||"",this.depth=0,this.height=0,this.parentNode=null,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.hostTree=t};function c(e,t,i){this.root,this.data,this._nodes=[],this.hostModel=e,this.levelModels=n.map(t||[],function(t){return new o(t,e,e.ecModel)}),this.leavesModel=new o(i||{},e,e.ecModel)}l.prototype={constructor:l,isRemoved:function(){return this.dataIndex<0},eachNode:function(e,t,i){"function"==typeof e&&(i=t,t=e,e=null),e=e||{},n.isString(e)&&(e={order:e});var o,r=e.order||"preorder",a=this[e.attr||"children"];"preorder"===r&&(o=t.call(i,this));for(var s=0;!o&&s<a.length;s++)a[s].eachNode(e,t,i);"postorder"===r&&t.call(i,this)},updateDepthAndHeight:function(e){var t=0;this.depth=e;for(var i=0;i<this.children.length;i++){var n=this.children[i];n.updateDepthAndHeight(e+1),n.height>t&&(t=n.height)}this.height=t+1},getNodeById:function(e){if(this.getId()===e)return this;for(var t=0,i=this.children,n=i.length;t<n;t++){var o=i[t].getNodeById(e);if(o)return o}},contains:function(e){if(e===this)return!0;for(var t=0,i=this.children,n=i.length;t<n;t++){var o=i[t].contains(e);if(o)return o}},getAncestors:function(e){for(var t=[],i=e?this:this.parentNode;i;)t.push(i),i=i.parentNode;return t.reverse(),t},getValue:function(e){var t=this.hostTree.data;return t.get(t.getDimension(e||"value"),this.dataIndex)},setLayout:function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,e,t)},getLayout:function(){return this.hostTree.data.getItemLayout(this.dataIndex)},getModel:function(e){if(!(this.dataIndex<0)){var t,i=this.hostTree,n=i.data.getItemModel(this.dataIndex),o=this.getLevelModel();return o||0!==this.children.length&&(0===this.children.length||!1!==this.isExpand)||(t=this.getLeavesModel()),n.getModel(e,(o||t||i.hostModel).getModel(e))}},getLevelModel:function(){return(this.hostTree.levelModels||[])[this.depth]},getLeavesModel:function(){return this.hostTree.leavesModel},setVisual:function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,e,t)},getVisual:function(e,t){return this.hostTree.data.getItemVisual(this.dataIndex,e,t)},getRawIndex:function(){return this.hostTree.data.getRawIndex(this.dataIndex)},getId:function(){return this.hostTree.data.getId(this.dataIndex)},isAncestorOf:function(e){for(var t=e.parentNode;t;){if(t===this)return!0;t=t.parentNode}return!1},isDescendantOf:function(e){return e!==this&&e.isAncestorOf(this)}},c.prototype={constructor:c,type:"tree",eachNode:function(e,t,i){this.root.eachNode(e,t,i)},getNodeByDataIndex:function(e){var t=this.data.getRawIndex(e);return this._nodes[t]},getNodeByName:function(e){return this.root.getNodeByName(e)},update:function(){for(var e=this.data,t=this._nodes,i=0,n=t.length;i<n;i++)t[i].dataIndex=-1;for(var i=0,n=e.count();i<n;i++)t[e.getRawIndex(i)].dataIndex=i},clearLayouts:function(){this.data.clearItemLayouts()}},c.createTree=function(e,t,i){var o=new c(t,i.levels,i.leaves),d=[],u=1;!function e(t,i){var r,a,s,c=t.value;u=Math.max(u,n.isArray(c)?c.length:1),d.push(t);var h=new l(t.name,o);i?(r=h,s=(a=i).children,r.parentNode!==a&&(s.push(r),r.parentNode=a)):o.root=h,o._nodes.push(h);var p=t.children;if(p)for(var f=0;f<p.length;f++)e(p[f],h)}(e),o.root.updateDepthAndHeight(0);var h=new a(s(d,{coordDimensions:["value"],dimensionsCount:u}),t);return h.initData(d),r({mainData:h,struct:o,structAttr:"tree"}),o.update(),o},e.exports=c},30456:function(e,t,i){var n=i(66023),o=n.createHashMap,r=n.each,a=n.isString,s=n.defaults,l=n.extend,c=n.isObject,d=n.clone,u=i(70018).normalizeToArray,h=i(4522).guessOrdinal,p=i(36265),f=i(39116).OTHER_DIMENSIONS;function g(e,t,i){if(i||null!=t.get(e)){for(var n=0;null!=t.get(e+n);)n++;e+=n}return t.set(e,!0),e}e.exports=function(e,t,i){p.isInstance(t)||(t=p.seriesDataToSource(t)),i=i||{},e=(e||[]).slice();for(var n,m,v,b,y,w=(i.dimsDef||[]).slice(),_=o(i.encodeDef),x=o(),S=o(),C=[],k=(n=t,m=e,v=w,b=i.dimCount,y=Math.max(n.dimensionsDetectCount||1,m.length,v.length,b||0),r(m,function(e){var t=e.dimsDef;t&&(y=Math.max(y,t.length))}),y),I=0;I<k;I++){var A=w[I]=l({},c(w[I])?w[I]:{name:w[I]}),T=A.name,E=C[I]={otherDims:{}};null!=T&&null==x.get(T)&&(E.name=E.displayName=T,x.set(T,I)),null!=A.type&&(E.type=A.type),null!=A.displayName&&(E.displayName=A.displayName)}_.each(function(e,t){if(1===(e=u(e).slice()).length&&e[0]<0)return void _.set(t,!1);var i=_.set(t,[]);r(e,function(e,n){a(e)&&(e=x.get(e)),null!=e&&e<k&&(i[n]=e,D(C[e],t,n))})});var R=0;function D(e,t,i){null!=f.get(t)?e.otherDims[t]=i:(e.coordDim=t,e.coordDimIndex=i,S.set(t,!0))}r(e,function(e,t){if(a(e))o=e,e={};else{var e,i,n,o=e.name,l=e.ordinalMeta;e.ordinalMeta=null,(e=d(e)).ordinalMeta=l,i=e.dimsDef,n=e.otherDims,e.name=e.coordDim=e.coordDimIndex=e.dimsDef=e.otherDims=null}var h=_.get(o);if(!1!==h){var h=u(h);if(!h.length)for(var p=0;p<(i&&i.length||1);p++){for(;R<C.length&&null!=C[R].coordDim;)R++;R<C.length&&h.push(R++)}r(h,function(t,r){var a=C[t];if(D(s(a,e),o,r),null==a.name&&i){var l=i[r];c(l)||(l={name:l}),a.name=a.displayName=l.name,a.defaultTooltip=l.defaultTooltip}n&&s(a.otherDims,n)})}});var O=i.generateCoord,M=i.generateCoordCount,N=null!=M;M=O?M||1:0;for(var P=O||"value",L=0;L<k;L++){var E=C[L]=C[L]||{};null==E.coordDim&&(E.coordDim=g(P,S,N),E.coordDimIndex=0,(!O||M<=0)&&(E.isExtraCoord=!0),M--),null==E.name&&(E.name=g(E.coordDim,x)),null==E.type&&h(t,L,E.name)&&(E.type="ordinal")}return C}},35047:function(e,t,i){var n=i(30456);e.exports=function(e,t){return n((t=t||{}).coordDimensions||[],e,{dimsDef:t.dimensionsDefine||e.dimensionsDefine,encodeDef:t.encodeDefine||e.encodeDefine,dimCount:t.dimensionsCount,generateCoord:t.generateCoord,generateCoordCount:t.generateCoordCount})}},89211:function(e,t,i){i(38603).__DEV__;var n=i(66023);n.isTypedArray;var o=n.extend;n.assert;var r=n.each,a=n.isObject,s=i(70018),l=s.getDataItemValue,c=s.isDataItemOption,d=i(98763).parseDate,u=i(36265),h=i(38237),p=h.SOURCE_FORMAT_TYPED_ARRAY,f=h.SOURCE_FORMAT_ARRAY_ROWS,g=h.SOURCE_FORMAT_ORIGINAL,m=h.SOURCE_FORMAT_OBJECT_ROWS;function v(e,t){u.isInstance(e)||(e=u.seriesDataToSource(e)),this._source=e;var i=this._data=e.data,n=e.sourceFormat;n===p&&(this._offset=0,this._dimSize=t,this._data=i),o(this,y[n===f?n+"_"+e.seriesLayoutBy:n])}var b=v.prototype;b.pure=!1,b.persistent=!0,b.getSource=function(){return this._source};var y={arrayRows_column:{pure:!0,count:function(){return Math.max(0,this._data.length-this._source.startIndex)},getItem:function(e){return this._data[e+this._source.startIndex]},appendData:x},arrayRows_row:{pure:!0,count:function(){var e=this._data[0];return e?Math.max(0,e.length-this._source.startIndex):0},getItem:function(e){e+=this._source.startIndex;for(var t=[],i=this._data,n=0;n<i.length;n++){var o=i[n];t.push(o?o[e]:null)}return t},appendData:function(){throw Error('Do not support appendData when set seriesLayoutBy: "row".')}},objectRows:{pure:!0,count:w,getItem:_,appendData:x},keyedColumns:{pure:!0,count:function(){var e=this._source.dimensionsDefine[0].name,t=this._data[e];return t?t.length:0},getItem:function(e){for(var t=[],i=this._source.dimensionsDefine,n=0;n<i.length;n++){var o=this._data[i[n].name];t.push(o?o[e]:null)}return t},appendData:function(e){var t=this._data;r(e,function(e,i){for(var n=t[i]||(t[i]=[]),o=0;o<(e||[]).length;o++)n.push(e[o])})}},original:{count:w,getItem:_,appendData:x},typedArray:{persistent:!1,pure:!0,count:function(){return this._data?this._data.length/this._dimSize:0},getItem:function(e,t){e-=this._offset,t=t||[];for(var i=this._dimSize*e,n=0;n<this._dimSize;n++)t[n]=this._data[i+n];return t},appendData:function(e){this._data=e},clean:function(){this._offset+=this.count(),this._data=null}}};function w(){return this._data.length}function _(e){return this._data[e]}function x(e){for(var t=0;t<e.length;t++)this._data.push(e[t])}var S={arrayRows:C,objectRows:function(e,t,i,n){return null!=i?e[n]:e},keyedColumns:C,original:function(e,t,i,n){var o=l(e);return null!=i&&o instanceof Array?o[i]:o},typedArray:C};function C(e,t,i,n){return null!=i?e[i]:e}function k(e,t,i,n){return I(e[n],this._dimensionInfos[t])}function I(e,t){var i=t&&t.type;if("ordinal"===i){var n=t&&t.ordinalMeta;return n?n.parseAndCollect(e):e}return"time"===i&&"number"!=typeof e&&null!=e&&"-"!==e&&(e=+d(e)),null==e||""===e?NaN:+e}t.DefaultDataProvider=v,t.defaultDimValueGetters={arrayRows:k,objectRows:function(e,t,i,n){return I(e[t],this._dimensionInfos[t])},keyedColumns:k,original:function(e,t,i,n){var o=e&&(null==e.value?e:e.value);return!this._rawData.pure&&c(e)&&(this.hasItemOption=!0),I(o instanceof Array?o[n]:o,this._dimensionInfos[t])},typedArray:function(e,t,i,n){return e[n]}},t.retrieveRawValue=function(e,t,i){if(e){var n,o,r=e.getRawDataItem(t);if(null!=r){var a=e.getProvider().getSource().sourceFormat,s=e.getDimensionInfo(i);return s&&(n=s.name,o=s.index),S[a](r,t,o,n)}}},t.retrieveRawAttr=function(e,t,i){if(e){var n=e.getProvider().getSource().sourceFormat;if(n===g||n===m){var o=e.getRawDataItem(t);if(n!==g||a(o)||(o=null),o)return o[i]}}}},74733:function(e,t,i){var n=i(66023),o=n.each,r=n.isString;function a(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}t.enableDataStack=function(e,t,i){var n,a,s,l,c=(i=i||{}).byIndex,d=i.stackedCoordDimension,u=!!(e&&e.get("stack"));if(o(t,function(e,i){r(e)&&(t[i]=e={name:e}),u&&!e.isExtraCoord&&(c||n||!e.ordinalMeta||(n=e),a||"ordinal"===e.type||"time"===e.type||d&&d!==e.coordDim||(a=e))}),!a||c||n||(c=!0),a){s="__\0ecstackresult",l="__\0ecstackedover",n&&(n.createInvertedIndices=!0);var h=a.coordDim,p=a.type,f=0;o(t,function(e){e.coordDim===h&&f++}),t.push({name:s,coordDim:h,coordDimIndex:f,type:p,isExtraCoord:!0,isCalculationCoord:!0}),f++,t.push({name:l,coordDim:l,coordDimIndex:f,type:p,isExtraCoord:!0,isCalculationCoord:!0})}return{stackedDimension:a&&a.name,stackedByDimension:n&&n.name,isStackedByIndex:c,stackedOverDimension:l,stackResultDimension:s}},t.isDimensionStacked=a,t.getStackedDimension=function(e,t){return a(e,t)?e.getCalculationInfo("stackResultDimension"):t}},39116:function(e,t,i){var n=i(66023),o=n.each,r=n.createHashMap;n.assert,i(38603).__DEV__;var a=r(["tooltip","label","itemName","itemId","seriesName"]);t.OTHER_DIMENSIONS=a,t.summarizeDimensions=function(e){var t={},i=t.encode={},n=r(),s=[],l=[];o(e.dimensions,function(t){var o=e.getDimensionInfo(t),r=o.coordDim;if(r){var c,d=i[r];i.hasOwnProperty(r)||(d=i[r]=[]),d[o.coordDimIndex]=t,o.isExtraCoord||(n.set(r,1),"ordinal"!==(c=o.type)&&"time"!==c&&(s[0]=t)),o.defaultTooltip&&l.push(t)}a.each(function(e,t){var n=i[t];i.hasOwnProperty(t)||(n=i[t]=[]);var r=o.otherDims[t];null!=r&&!1!==r&&(n[r]=o.name)})});var c=[],d={};n.each(function(e,t){var n=i[t];d[t]=n[0],c=c.concat(n)}),t.dataDimsOnCoord=c,t.encodeFirstDimNotExtra=d;var u=i.label;u&&u.length&&(s=u.slice());var h=i.tooltip;return h&&h.length?l=h.slice():l.length||(l=s.slice()),i.defaultedLabel=s,i.defaultedTooltip=l,t},t.getDimensionTypeByAxis=function(e){return"category"===e?"ordinal":"time"===e?"time":"float"}},22911:function(e,t,i){var n=i(66023),o=n.each,r="\0__link_datas",a="\0__link_mainData";function s(e,t){var i;if(i=this,i[a]===i){var o=n.extend({},this[r]);o[this.dataType]=t,u(t,o,e)}else h(t,this.dataType,this[a],e);return t}function l(e,t){return e.struct&&e.struct.update(this),t}function c(e,t){return o(t[r],function(i,n){i!==t&&h(i.cloneShallow(),n,t,e)}),t}function d(e){var t=this[a];return null==e||null==t?t:t[r][e]}function u(e,t,i){e[r]={},o(t,function(t,n){h(t,n,e,i)})}function h(e,t,i,n){i[r][t]=e,e[a]=i,e.dataType=t,n.struct&&(e[n.structAttr]=n.struct,n.struct[n.datasAttr[t]]=e),e.getLinkedData=d}e.exports=function(e){var t=e.mainData,i=e.datas;i||(i={main:t},e.datasAttr={main:"data"}),e.datas=e.mainData=null,u(t,i,e),o(i,function(i){o(t.TRANSFERABLE_METHODS,function(t){i.wrapMethod(t,n.curry(s,e))})}),t.wrapMethod("cloneShallow",n.curry(c,e)),o(t.CHANGABLE_METHODS,function(i){t.wrapMethod(i,n.curry(l,e))}),n.assert(i[t.dataType]===t)}},4522:function(e,t,i){i(38603).__DEV__;var n=i(70018),o=n.makeInner,r=n.getDataItemValue,a=i(26774).getCoordSysDefineBySeries,s=i(66023),l=s.createHashMap,c=s.each,d=s.map,u=s.isArray,h=s.isString,p=s.isObject,f=s.isTypedArray,g=s.isArrayLike,m=s.extend;s.assert;var v=i(36265),b=i(38237),y=b.SOURCE_FORMAT_ORIGINAL,w=b.SOURCE_FORMAT_ARRAY_ROWS,_=b.SOURCE_FORMAT_OBJECT_ROWS,x=b.SOURCE_FORMAT_KEYED_COLUMNS,S=b.SOURCE_FORMAT_UNKNOWN,C=b.SOURCE_FORMAT_TYPED_ARRAY,k=b.SERIES_LAYOUT_BY_ROW,I=o();function A(e){if(e){var t=l();return d(e,function(e,i){if(null==(e=m({},p(e)?e:{name:e})).name)return e;e.name+="",null==e.displayName&&(e.displayName=e.name);var n=t.get(e.name);return n?e.name+="-"+n.count++:t.set(e.name,{count:1}),e})}}function T(e,t,i,n){if(null==n&&(n=1/0),t===k)for(var o=0;o<i.length&&o<n;o++)e(i[o]?i[o][0]:null,o);else for(var r=i[0]||[],o=0;o<r.length&&o<n;o++)e(r[o],o)}function E(e,t,i,n,o,a){var s,l;if(f(e))return!1;if(n&&(l=p(l=n[a])?l.name:l),t===w)if(i===k){for(var c=e[a],d=0;d<(c||[]).length&&d<5;d++)if(null!=(s=b(c[o+d])))return s}else for(var d=0;d<e.length&&d<5;d++){var g=e[o+d];if(g&&null!=(s=b(g[a])))return s}else if(t===_){if(!l)return;for(var d=0;d<e.length&&d<5;d++){var m=e[d];if(m&&null!=(s=b(m[l])))return s}}else if(t===x){if(!l)return;var c=e[l];if(!c||f(c))return!1;for(var d=0;d<c.length&&d<5;d++)if(null!=(s=b(c[d])))return s}else if(t===y)for(var d=0;d<e.length&&d<5;d++){var m=e[d],v=r(m);if(!u(v))return!1;if(null!=(s=b(v[a])))return s}function b(e){return(!(null!=e&&isFinite(e))||""===e)&&(!!h(e)&&"-"!==e||void 0)}return!1}t.detectSourceFormat=function(e){var t=e.option.source,i=S;if(f(t))i=C;else if(u(t)){0===t.length&&(i=w);for(var n=0,o=t.length;n<o;n++){var r=t[n];if(null!=r){if(u(r)){i=w;break}else if(p(r)){i=_;break}}}}else if(p(t)){for(var a in t)if(t.hasOwnProperty(a)&&g(t[a])){i=x;break}}else if(null!=t)throw Error("Invalid data");I(e).sourceFormat=i},t.getSource=function(e){return I(e).source},t.resetSourceDefaulter=function(e){I(e).datasetMap=l()},t.prepareSource=function(e){var t=e.option,i=t.data,n=f(i)?C:y,o=!1,s=t.seriesLayoutBy,d=t.sourceHeader,g=t.dimensions,m=function(e){var t=e.option;if(!t.data)return e.ecModel.getComponent("dataset",t.datasetIndex||0)}(e);if(m){var b=m.option;i=b.source,n=I(m).sourceFormat,o=!0,s=s||b.seriesLayoutBy,null==d&&(d=b.sourceHeader),g=g||b.dimensions}var S=function(e,t,i,n,o){if(!e)return{dimensionsDefine:A(o)};if(t===w)"auto"===n||null==n?T(function(e){null!=e&&"-"!==e&&(h(e)?null==s&&(s=1):s=0)},i,e,10):s=+!!n,o||1!==s||(o=[],T(function(e,t){o[t]=null!=e?e:""},i,e)),a=o?o.length:i===k?e.length:e[0]?e[0].length:null;else if(t===_)o||(o=function(e){for(var t,i=0;i<e.length&&!(t=e[i++]););if(t){var n=[];return c(t,function(e,t){n.push(t)}),n}}(e),l=!0);else if(t===x)o||(o=[],l=!0,c(e,function(e,t){o.push(t)}));else if(t===y){var a,s,l,d,f=r(e[0]);a=u(f)&&f.length||1}return l&&c(o,function(e,t){(p(e)?e.name:e)==="name"&&(d=t)}),{startIndex:s,dimensionsDefine:A(o),dimensionsDetectCount:a,potentialNameDimIndex:d}}(i,n,s,d,g),R=t.encode;!R&&m&&(R=function(e,t,i,n,o,r){var s,d=a(e),u={},h=[],p=[],f=e.subType,g=l(["pie","map","funnel"]),m=l(["line","bar","pictorialBar","scatter","effectScatter","candlestick","boxplot"]);if(d&&null!=m.get(f)){var v=I(e.ecModel).datasetMap,b=t.uid+"_"+o,y=v.get(b)||v.set(b,{categoryWayDim:1,valueWayDim:0});c(d.coordSysDims,function(e){if(null==d.firstCategoryDimIndex){var t=y.valueWayDim++;u[e]=t,p.push(t)}else if(d.categoryAxisMap.get(e))u[e]=0,h.push(0);else{var t=y.categoryWayDim++;u[e]=t,p.push(t)}})}else if(null!=g.get(f)){for(var w=0;w<5&&null==s;w++)E(i,n,o,r.dimensionsDefine,r.startIndex,w)||(s=w);if(null!=s){u.value=s;var _=r.potentialNameDimIndex||Math.max(s-1,0);p.push(_),h.push(_)}}return h.length&&(u.itemName=h),p.length&&(u.seriesName=p),u}(e,m,i,n,s,S)),I(e).source=new v({data:i,fromDataset:o,seriesLayoutBy:s,sourceFormat:n,dimensionsDefine:S.dimensionsDefine,startIndex:S.startIndex,dimensionsDetectCount:S.dimensionsDetectCount,encodeDefine:R})},t.guessOrdinal=function(e,t){return E(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}},38237:function(e,t){t.SOURCE_FORMAT_ORIGINAL="original",t.SOURCE_FORMAT_ARRAY_ROWS="arrayRows",t.SOURCE_FORMAT_OBJECT_ROWS="objectRows",t.SOURCE_FORMAT_KEYED_COLUMNS="keyedColumns",t.SOURCE_FORMAT_UNKNOWN="unknown",t.SOURCE_FORMAT_TYPED_ARRAY="typedArray",t.SERIES_LAYOUT_BY_COLUMN="column",t.SERIES_LAYOUT_BY_ROW="row"},47475:function(e,t,i){i(38603).__DEV__;var n=i(19206),o=i(66023),r=i(53453),a=i(57674),s=i(58265),l=i(56177),c=i(16438),d=i(13966),u=i(33776),h=i(53734),p=i(34357),f=i(45888),g=i(76056),m=i(26626),v=i(11648),b=i(55756),y=i(76165),w=i(70018),_=i(44050).throttle,x=i(75607),S=i(49151),C=i(28794),k=i(5328),I=i(58650),A=i(78956);i(62295);var T=i(55725),E=o.assert,R=o.each,D=o.isFunction,O=o.isObject,M=g.parseClassType,N="__flagInMainProcess",P="__optionUpdated",L=/^[a-zA-Z0-9_]+$/;function B(e){return function(t,i,n){t=t&&t.toLowerCase(),l.prototype[e].call(this,t,i,n)}}function F(){l.call(this)}function V(e,t,i){i=i||{},"string"==typeof t&&(t=ec[t]),this.id,this.group,this._dom=e;var r,a,c,h,f=this._zr=n.init(e,{renderer:i.renderer||"canvas",devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height});this._throttledZrFlush=_(o.bind(f.flush,f),17);var t=o.clone(t);t&&p(t,!0),this._theme=t,this._chartsViews=[],this._chartsMap={},this._componentsViews=[],this._componentsMap={},this._coordSysMgr=new u;var g=this._api=(r=this,a=r._coordSysMgr,o.extend(new d(r),{getCoordinateSystems:o.bind(a.getCoordinateSystems,a),getComponentByElement:function(e){for(;e;){var t=e.__ecComponentInfo;if(null!=t)return r._model.getComponent(t.mainType,t.index);e=e.parent}}}));function m(e,t){return e.__prio-t.__prio}s(el,m),s(er,m),this._scheduler=new k(this,g,er,el),l.call(this,this._ecEventProcessor=new ei),this._messageCenter=new F,this._initEvents(),this.resize=o.bind(this.resize,this),this._pendingActions=[],f.animation.on("frame",this._onframe,this),c=f,h=this,c.on("rendered",function(){h.trigger("rendered"),!c.animation.isFinished()||h[P]||h._scheduler.unfinished||h._pendingActions.length||h.trigger("finished")}),o.setAsPrimitive(this)}F.prototype.on=B("on"),F.prototype.off=B("off"),F.prototype.one=B("one"),o.mixin(F,l);var z=V.prototype;function H(e,t,i){var n,o=this._model,r=this._coordSysMgr.getCoordinateSystems();t=w.parseFinder(o,t);for(var a=0;a<r.length;a++){var s=r[a];if(s[e]&&null!=(n=s[e](o,t,i)))return n}}z._onframe=function(){if(!this._disposed){var e=this._scheduler;if(this[P]){var t=this[P].silent;this[N]=!0,Y(this),W.update.call(this),this[N]=!1,this[P]=!1,j.call(this,t),q.call(this,t)}else if(e.unfinished){var i=1,n=this._model,o=this._api;e.unfinished=!1;do{var r=+new Date;e.performSeriesTasks(n),e.performDataProcessorTasks(n),G(this,n),e.performVisualTasks(n),$(this,this._model,o,"remain"),i-=+new Date-r}while(i>0&&e.unfinished);e.unfinished||this._zr.flush()}}},z.getDom=function(){return this._dom},z.getZr=function(){return this._zr},z.setOption=function(e,t,i){var n;if(O(t)&&(i=t.lazyUpdate,n=t.silent,t=t.notMerge),this[N]=!0,!this._model||t){var o=new h(this._api),r=this._theme,a=this._model=new c(null,null,r,o);a.scheduler=this._scheduler,a.init(null,null,r,o)}this._model.setOption(e,ea),i?(this[P]={silent:n},this[N]=!1):(Y(this),W.update.call(this),this._zr.flush(),this[P]=!1,this[N]=!1,j.call(this,n),q.call(this,n))},z.setTheme=function(){console.error("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},z.getModel=function(){return this._model},z.getOption=function(){return this._model&&this._model.getOption()},z.getWidth=function(){return this._zr.getWidth()},z.getHeight=function(){return this._zr.getHeight()},z.getDevicePixelRatio=function(){return this._zr.painter.dpr||window.devicePixelRatio||1},z.getRenderedCanvas=function(e){if(a.canvasSupported)return(e=e||{}).pixelRatio=e.pixelRatio||1,e.backgroundColor=e.backgroundColor||this._model.get("backgroundColor"),this._zr.painter.getRenderedCanvas(e)},z.getSvgDataUrl=function(){if(a.svgSupported){var e=this._zr,t=e.storage.getDisplayList();return o.each(t,function(e){e.stopAnimation(!0)}),e.painter.pathToDataUrl()}},z.getDataURL=function(e){var t=(e=e||{}).excludeComponents,i=this._model,n=[],o=this;R(t,function(e){i.eachComponent({mainType:e},function(e){var t=o._componentsMap[e.__viewId];t.group.ignore||(n.push(t),t.group.ignore=!0)})});var r="svg"===this._zr.painter.getType()?this.getSvgDataUrl():this.getRenderedCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return R(n,function(e){e.group.ignore=!1}),r},z.getConnectedDataURL=function(e){if(a.canvasSupported){var t=this.group,i=Math.min,r=Math.max,s=1/0;if(!eh[t])return this.getDataURL(e);var l=s,c=s,d=-s,u=-s,h=[],p=e&&e.pixelRatio||1;o.each(eu,function(n,a){if(n.group===t){var s=n.getRenderedCanvas(o.clone(e)),p=n.getDom().getBoundingClientRect();l=i(p.left,l),c=i(p.top,c),d=r(p.right,d),u=r(p.bottom,u),h.push({dom:s,left:p.left,top:p.top})}}),l*=p,c*=p,d*=p,u*=p;var f=d-l,g=u-c,m=o.createCanvas();m.width=f,m.height=g;var v=n.init(m);return R(h,function(e){var t=new y.Image({style:{x:e.left*p-l,y:e.top*p-c,image:e.dom}});v.add(t)}),v.refreshImmediately(),m.toDataURL("image/"+(e&&e.type||"png"))}},z.convertToPixel=o.curry(H,"convertToPixel"),z.convertFromPixel=o.curry(H,"convertFromPixel"),z.containPixel=function(e,t){var i,n=this._model;return e=w.parseFinder(n,e),o.each(e,function(e,n){n.indexOf("Models")>=0&&o.each(e,function(e){var o=e.coordinateSystem;if(o&&o.containPoint)i|=!!o.containPoint(t);else if("seriesModels"===n){var r=this._chartsMap[e.__viewId];r&&r.containPoint&&(i|=r.containPoint(t,e))}},this)},this),!!i},z.getVisual=function(e,t){var i=this._model,n=(e=w.parseFinder(i,e,{defaultMainType:"series"})).seriesModel.getData(),o=e.hasOwnProperty("dataIndexInside")?e.dataIndexInside:e.hasOwnProperty("dataIndex")?n.indexOfRawIndex(e.dataIndex):null;return null!=o?n.getItemVisual(o,t):n.getVisual(t)},z.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},z.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]};var W={prepareAndUpdate:function(e){Y(this),W.update.call(this,e)},update:function(e){var t=this._model,i=this._api,n=this._zr,o=this._coordSysMgr,s=this._scheduler;if(t){s.restoreData(t,e),s.performSeriesTasks(t),o.create(t,i),s.performDataProcessorTasks(t,e),G(this,t),o.update(t,i),X(t),s.performVisualTasks(t,e),Q(this,t,i,e);var l=t.get("backgroundColor")||"transparent";if(a.canvasSupported)n.setBackgroundColor(l);else{var c=r.parse(l);l=r.stringify(c,"rgb"),0===c[3]&&(l="transparent")}J(t,i)}},updateTransform:function(e){var t=this._model,i=this,n=this._api;if(t){var r=[];t.eachComponent(function(o,a){var s=i.getViewOfComponentModel(a);if(s&&s.__alive)if(s.updateTransform){var l=s.updateTransform(a,t,n,e);l&&l.update&&r.push(s)}else r.push(s)});var a=o.createHashMap();t.eachSeries(function(o){var r=i._chartsMap[o.__viewId];if(r.updateTransform){var s=r.updateTransform(o,t,n,e);s&&s.update&&a.set(o.uid,1)}else a.set(o.uid,1)}),X(t),this._scheduler.performVisualTasks(t,e,{setDirty:!0,dirtyMap:a}),$(i,t,n,e,a),J(t,this._api)}},updateView:function(e){var t=this._model;t&&(b.markUpdateMethod(e,"updateView"),X(t),this._scheduler.performVisualTasks(t,e,{setDirty:!0}),Q(this,this._model,this._api,e),J(t,this._api))},updateVisual:function(e){W.update.call(this,e)},updateLayout:function(e){W.update.call(this,e)}};function Y(e){var t=e._model,i=e._scheduler;i.restorePipelines(t),i.prepareStageTasks(),K(e,"component",t,i),K(e,"chart",t,i),i.plan()}function U(e,t,i,n,r){var a=e._model;if(!n)return void R(e._componentsViews.concat(e._chartsViews),d);var s={};s[n+"Id"]=i[n+"Id"],s[n+"Index"]=i[n+"Index"],s[n+"Name"]=i[n+"Name"];var l={mainType:n,query:s};r&&(l.subType=r);var c=i.excludeSeriesId;function d(n){n&&n.__alive&&n[t]&&n[t](n.__model,a,e._api,i)}null!=c&&(c=o.createHashMap(w.normalizeToArray(c))),a&&a.eachComponent(l,function(t){c&&null!=c.get(t.id)||d(e["series"===n?"_chartsMap":"_componentsMap"][t.__viewId])},e)}function G(e,t){var i=e._chartsMap,n=e._scheduler;t.eachSeries(function(e){n.updateStreamModes(e,i[e.__viewId])})}function Z(e,t){var i,n=e.type,r=e.escapeConnect,a=en[n],s=a.actionInfo,l=(s.update||"update").split(":"),c=l.pop();l=null!=l[0]&&M(l[0]),this[N]=!0;var d=[e],u=!1;e.batch&&(u=!0,d=o.map(e.batch,function(t){return(t=o.defaults(o.extend({},t),e)).batch=null,t}));var h=[],p="highlight"===n||"downplay"===n;R(d,function(e){(i=(i=a.action(e,this._model,this._api))||o.extend({},e)).type=s.event||i.type,h.push(i),p?U(this,c,e,"series"):l&&U(this,c,e,l.main,l.sub)},this),"none"===c||p||l||(this[P]?(Y(this),W.update.call(this,e),this[P]=!1):W[c].call(this,e)),i=u?{type:s.event||n,escapeConnect:r,batch:h}:h[0],this[N]=!1,t||this._messageCenter.trigger(i.type,i)}function j(e){for(var t=this._pendingActions;t.length;){var i=t.shift();Z.call(this,i,e)}}function q(e){e||this.trigger("updated")}function K(e,t,i,n){for(var o="component"===t,r=o?e._componentsViews:e._chartsViews,a=o?e._componentsMap:e._chartsMap,s=e._zr,l=e._api,c=0;c<r.length;c++)r[c].__alive=!1;function d(e){var t="_ec_"+e.id+"_"+e.type,c=a[t];if(!c){var d=M(e.type);(c=new(o?v.getClass(d.main,d.sub):b.getClass(d.sub))).init(i,l),a[t]=c,r.push(c),s.add(c.group)}e.__viewId=c.__id=t,c.__alive=!0,c.__model=e,c.group.__ecComponentInfo={mainType:e.mainType,index:e.componentIndex},o||n.prepareView(c,e,i,l)}o?i.eachComponent(function(e,t){"series"!==e&&d(t)}):i.eachSeries(d);for(var c=0;c<r.length;){var u=r[c];u.__alive?c++:(o||u.renderTask.dispose(),s.remove(u.group),u.dispose(i,l),r.splice(c,1),delete a[u.__id],u.__id=u.group.__ecComponentInfo=null)}}function X(e){e.clearColorPalette(),e.eachSeries(function(e){e.clearColorPalette()})}function Q(e,t,i,n){var o,r,a,s,l;o=e,r=t,a=i,s=n,R((0,o._componentsViews),function(e){var t=e.__model;e.render(t,r,a,s),et(t,e)}),R(e._chartsViews,function(e){e.__alive=!1}),$(e,t,i,n),R(e._chartsViews,function(e){e.__alive||e.remove(t,i)})}function $(e,t,i,n,o){var r,s,l,c,d,u=e._scheduler;t.eachSeries(function(t){var i,r,a,s=e._chartsMap[t.__viewId];s.__alive=!0;var l=s.renderTask;u.updatePayload(l,n),o&&o.get(t.uid)&&l.dirty(),d|=l.perform(u.getPerformArgs(l)),s.group.silent=!!t.get("silent"),et(t,s),i=t,r=s,a=i.get("blendMode")||null,r.group.traverse(function(e){e.isGroup||e.style.blend===a||e.setStyle("blend",a),e.eachPendingDisplayable&&e.eachPendingDisplayable(function(e){e.setStyle("blend",a)})})}),u.unfinished|=d,r=e._zr,s=t,l=r.storage,c=0,l.traverse(function(e){!e.isGroup&&c++}),c>s.get("hoverLayerThreshold")&&!a.node&&l.traverse(function(e){e.isGroup||(e.useHoverLayer=!0)}),S(e._zr.dom,t)}function J(e,t){R(es,function(i){i(e,t)})}z.resize=function(e){this._zr.resize(e);var t=this._model;if(this._loadingFX&&this._loadingFX.resize(),t){var i=t.resetOption("media"),n=e&&e.silent;this[N]=!0,i&&Y(this),W.update.call(this),this[N]=!1,j.call(this,n),q.call(this,n)}},z.showLoading=function(e,t){if(O(e)&&(t=e,e=""),e=e||"default",this.hideLoading(),ed[e]){var i=ed[e](this._api,t),n=this._zr;this._loadingFX=i,n.add(i)}},z.hideLoading=function(){this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},z.makeActionFromEvent=function(e){var t=o.extend({},e);return t.type=eo[e.type],t},z.dispatchAction=function(e,t){if((O(t)||(t={silent:!!t}),en[e.type])&&this._model){if(this[N])return void this._pendingActions.push(e);Z.call(this,e,t.silent),t.flush?this._zr.flush(!0):!1!==t.flush&&a.browser.weChat&&this._throttledZrFlush(),j.call(this,t.silent),q.call(this,t.silent)}},z.appendData=function(e){var t=e.seriesIndex;this.getModel().getSeriesByIndex(t).appendData(e),this._scheduler.unfinished=!0},z.on=B("on"),z.off=B("off"),z.one=B("one");var ee=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function et(e,t){var i=e.get("z"),n=e.get("zlevel");t.group.traverse(function(e){"group"!==e.type&&(null!=i&&(e.z=i),null!=n&&(e.zlevel=n))})}function ei(){this.eventInfo}z._initEvents=function(){R(ee,function(e){var t=function(t){var i,n=this.getModel(),r=t.target;if("globalout"===e)i={};else if(r&&null!=r.dataIndex){var a=r.dataModel||n.getSeriesByIndex(r.seriesIndex);i=a&&a.getDataParams(r.dataIndex,r.dataType,r)||{}}else r&&r.eventData&&(i=o.extend({},r.eventData));if(i){var s=i.componentType,l=i.componentIndex;("markLine"===s||"markPoint"===s||"markArea"===s)&&(s="series",l=i.seriesIndex);var c=s&&null!=l&&n.getComponent(s,l),d=c&&this["series"===c.mainType?"_chartsMap":"_componentsMap"][c.__viewId];i.event=t,i.type=e,this._ecEventProcessor.eventInfo={targetEl:r,packedEvent:i,model:c,view:d},this.trigger(e,i)}};t.zrEventfulCallAtLast=!0,this._zr.on(e,t,this)},this),R(eo,function(e,t){this._messageCenter.on(t,function(e){this.trigger(t,e)},this)},this)},z.isDisposed=function(){return this._disposed},z.clear=function(){this.setOption({series:[]},!0)},z.dispose=function(){if(!this._disposed){this._disposed=!0,w.setAttribute(this.getDom(),eg,"");var e=this._api,t=this._model;R(this._componentsViews,function(i){i.dispose(t,e)}),R(this._chartsViews,function(i){i.dispose(t,e)}),this._zr.dispose(),delete eu[this.id]}},o.mixin(V,l),ei.prototype={constructor:ei,normalizeQuery:function(e){var t={},i={},n={};if(o.isString(e)){var r=M(e);t.mainType=r.main||null,t.subType=r.sub||null}else{var a=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};o.each(e,function(e,o){for(var r=!1,l=0;l<a.length;l++){var c=a[l],d=o.lastIndexOf(c);if(d>0&&d===o.length-c.length){var u=o.slice(0,d);"data"!==u&&(t.mainType=u,t[c.toLowerCase()]=e,r=!0)}}s.hasOwnProperty(o)&&(i[o]=e,r=!0),r||(n[o]=e)})}return{cptQuery:t,dataQuery:i,otherQuery:n}},filter:function(e,t,i){var n=this.eventInfo;if(!n)return!0;var o=n.targetEl,r=n.packedEvent,a=n.model,s=n.view;if(!a||!s)return!0;var l=t.cptQuery,c=t.dataQuery;return d(l,a,"mainType")&&d(l,a,"subType")&&d(l,a,"index","componentIndex")&&d(l,a,"name")&&d(l,a,"id")&&d(c,r,"name")&&d(c,r,"dataIndex")&&d(c,r,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(e,t.otherQuery,o,r));function d(e,t,i,n){return null==e[i]||t[n||i]===e[i]}},afterTrigger:function(){this.eventInfo=null}};var en={},eo={},er=[],ea=[],es=[],el=[],ec={},ed={},eu={},eh={},ep=new Date-0,ef=new Date-0,eg="_echarts_instance_";function em(e){eh[e]=!1}function ev(e){return eu[w.getAttribute(e,eg)]}function eb(e){ea.push(e)}function ey(e,t){ex(er,e,t,1e3)}function ew(e,t,i){"function"==typeof t&&(i=t,t="");var n=O(e)?e.type:[e,e={event:t}][0];e.event=(e.event||n).toLowerCase(),t=e.event,E(L.test(n)&&L.test(t)),en[n]||(en[n]={action:i,actionInfo:e}),eo[t]=n}function e_(e,t){ex(el,e,t,3e3,"visual")}function ex(e,t,i,n,o){(D(t)||O(t))&&(i=t,t=n);var r=k.wrapStageHandler(i,o);return r.__prio=t,r.__raw=i,e.push(r),r}e_(2e3,x),eb(p),ey(5e3,f),ed.default=C,ew({type:"highlight",event:"highlight",update:"highlight"},o.noop),ew({type:"downplay",event:"downplay",update:"downplay"},o.noop),ec.light=I,ec.dark=A,t.version="4.2.1",t.dependencies={zrender:"4.0.6"},t.PRIORITY={PROCESSOR:{FILTER:1e3,STATISTIC:5e3},VISUAL:{LAYOUT:1e3,GLOBAL:2e3,CHART:3e3,COMPONENT:4e3,BRUSH:5e3}},t.init=function(e,t,i){var n=ev(e);if(n)return n;var o=new V(e,t,i);o.id="ec_"+ep++,eu[o.id]=o,w.setAttribute(e,eg,o.id);var r="__connectUpdateStatus";function a(e,t){for(var i=0;i<e.length;i++)e[i][r]=t}return R(eo,function(e,t){o._messageCenter.on(t,function(e){if(eh[o.group]&&0!==o[r]&&(!e||!e.escapeConnect)){var t=o.makeActionFromEvent(e),i=[];R(eu,function(e){e!==o&&e.group===o.group&&i.push(e)}),a(i,0),R(i,function(e){1!==e[r]&&e.dispatchAction(t)}),a(i,2)}})}),o},t.connect=function(e){if(o.isArray(e)){var t=e;e=null,R(t,function(t){null!=t.group&&(e=t.group)}),e=e||"g_"+ef++,R(t,function(t){t.group=e})}return eh[e]=!0,e},t.disConnect=em,t.disconnect=em,t.dispose=function(e){"string"==typeof e?e=eu[e]:e instanceof V||(e=ev(e)),e instanceof V&&!e.isDisposed()&&e.dispose()},t.getInstanceByDom=ev,t.getInstanceById=function(e){return eu[e]},t.registerTheme=function(e,t){ec[e]=t},t.registerPreprocessor=eb,t.registerProcessor=ey,t.registerPostUpdate=function(e){es.push(e)},t.registerAction=ew,t.registerCoordinateSystem=function(e,t){u.register(e,t)},t.getCoordinateSystemDimensions=function(e){var t=u.get(e);if(t)return t.getDimensionsInfo?t.getDimensionsInfo():t.dimensions.slice()},t.registerLayout=function(e,t){ex(el,e,t,1e3,"layout")},t.registerVisual=e_,t.registerLoading=function(e,t){ed[e]=t},t.extendComponentModel=function(e){return g.extend(e)},t.extendComponentView=function(e){return v.extend(e)},t.extendSeriesModel=function(e){return m.extend(e)},t.extendChartView=function(e){return b.extend(e)},t.setCanvasCreator=function(e){o.$override("createCanvas",e)},t.registerMap=function(e,t,i){T.registerMap(e,t,i)},t.getMap=function(e){var t=T.retrieveMap(e);return t&&t[0]&&{geoJson:t[0].geoJSON,specialAreas:t[0].specialAreas}},t.dataTool={};var eS=i(83471);for(var eC in eS)eS.hasOwnProperty(eC)&&(t[eC]=eS[eC])},83471:function(e,t,i){t.zrender=i(19206),t.matrix=i(36653),t.vector=i(3265);var n=i(66023);t.color=i(53453);var o=i(76165);t.number=i(98763),t.format=i(20438);var r=i(44050);r.throttle,t.throttle=r.throttle,t.helper=i(16129);var a=i(75376);t.parseGeoJSON=a,t.List=i(90942),t.Model=i(27611),t.Axis=i(11237),t.env=i(57674);var s={};n.each(["map","each","filter","indexOf","inherits","reduce","filter","bind","curry","isArray","isString","isObject","isFunction","extend","defaults","clone","merge"],function(e){s[e]=n[e]});var l={};n.each(["extendShape","extendPath","makePath","makeImage","mergePath","resizePath","createIcon","setHoverStyle","setLabelStyle","setTextStyle","setText","getFont","updateProps","initProps","getTransform","clipPointsByRect","clipRectByRect","Group","Image","Text","Circle","Sector","Ring","Polygon","Polyline","Rect","Line","BezierCurve","Arc","IncrementalDisplayable","CompoundPath","LinearGradient","RadialGradient","BoundingRect"],function(e){l[e]=o[e]}),t.parseGeoJson=a,t.util=s,t.graphic=l},16129:function(e,t,i){var n=i(66023),o=i(6551),r=i(16978),a=i(80390),s=i(27611),l=i(68006);l.getLayoutRect,t.getLayoutRect=l.getLayoutRect;var c=i(74733),d=c.enableDataStack,u=c.isDimensionStacked,h=c.getStackedDimension;t.completeDimensions=i(30456),t.createDimensions=i(35047),t.createSymbol=i(87557).createSymbol,t.createList=function(e){return o(e.getSource(),e)},t.dataStack={isDimensionStacked:u,enableDataStack:d,getStackedDimension:h},t.createScale=function(e,t){var i=t;s.isInstance(t)||(i=new s(t),n.mixin(i,a));var o=r.createScaleByModel(i);return o.setExtent(e[0],e[1]),r.niceScaleExtent(o,i),o},t.mixinAxisModelCommonMethods=function(e){n.mixin(e,a)}},66934:function(e){e.exports={toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}}},42862:function(e,t,i){var n=i(66023),o=i(98763).parsePercent,r=i(74733).isDimensionStacked,a=i(85773),s="__ec_stack_",l="undefined"!=typeof Float32Array?Float32Array:Array;function c(e){return e.get("stack")||s+e.seriesIndex}function d(e){return e.dim+e.index}function u(e,t){var i=[];return t.eachSeriesByType(e,function(e){m(e)&&!v(e)&&i.push(e)}),i}function h(e){var t=[];return n.each(e,function(e){var i=e.getData(),n=e.coordinateSystem.getBaseAxis(),r=n.getExtent(),a="category"===n.type?n.getBandWidth():Math.abs(r[1]-r[0])/i.count(),s=o(e.get("barWidth"),a),l=o(e.get("barMaxWidth"),a),u=e.get("barGap"),h=e.get("barCategoryGap");t.push({bandWidth:a,barWidth:s,barMaxWidth:l,barGap:u,barCategoryGap:h,axisKey:d(n),stackId:c(e)})}),p(t)}function p(e){var t={};n.each(e,function(e,i){var n=e.axisKey,o=e.bandWidth,r=t[n]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},a=r.stacks;t[n]=r;var s=e.stackId;!a[s]&&r.autoWidthCount++,a[s]=a[s]||{width:0,maxWidth:0};var l=e.barWidth;l&&!a[s].width&&(a[s].width=l,l=Math.min(r.remainedWidth,l),r.remainedWidth-=l);var c=e.barMaxWidth;c&&(a[s].maxWidth=c);var d=e.barGap;null!=d&&(r.gap=d);var u=e.barCategoryGap;null!=u&&(r.categoryGap=u)});var i={};return n.each(t,function(e,t){i[t]={};var r,a=e.stacks,s=e.bandWidth,l=o(e.categoryGap,s),c=o(e.gap,1),d=e.remainedWidth,u=e.autoWidthCount,h=(d-l)/(u+(u-1)*c);h=Math.max(h,0),n.each(a,function(e,t){var i=e.maxWidth;i&&i<h&&(i=Math.min(i,d),e.width&&(i=Math.min(i,e.width)),d-=i,e.width=i,u--)}),h=Math.max(h=(d-l)/(u+(u-1)*c),0);var p=0;n.each(a,function(e,t){e.width||(e.width=h),r=e,p+=e.width*(1+c)}),r&&(p-=r.width*c);var f=-p/2;n.each(a,function(e,n){i[t][n]=i[t][n]||{offset:f,width:e.width},f+=e.width*(1+c)})}),i}function f(e,t,i){if(e&&t){var n=e[d(t)];return null!=n&&null!=i&&(n=n[c(i)]),n}}var g={seriesType:"bar",plan:a(),reset:function(e){if(m(e)&&v(e)){var t=e.getData(),i=e.coordinateSystem,n=i.getBaseAxis(),o=i.getOtherAxis(n),r=t.mapDimension(o.dim),a=t.mapDimension(n.dim),s=o.isHorizontal(),c=+!s,d=f(h([e]),n,e).width;return d>.5||(d=.5),{progress:function(e,t){for(var u,h=new l(2*e.count),p=[],f=[],g=0;null!=(u=e.next());)f[c]=t.get(r,u),f[1-c]=t.get(a,u),p=i.dataToPoint(f,null,p),h[g++]=p[0],h[g++]=p[1];t.setLayout({largePoints:h,barWidth:d,valueAxisStart:b(n,o,!1),valueAxisHorizontal:s})}}}}};function m(e){return e.coordinateSystem&&"cartesian2d"===e.coordinateSystem.type}function v(e){return e.pipelineContext&&e.pipelineContext.large}function b(e,t,i){var n,o,r=t.getGlobalExtent();r[0]>r[1]?(n=r[1],o=r[0]):(n=r[0],o=r[1]);var a=t.toGlobalCoord(t.dataToCoord(0));return a<n&&(a=n),a>o&&(a=o),a}t.getLayoutOnAxis=function(e){var t=[],i=e.axis,o="axis0";if("category"===i.type){for(var r=i.getBandWidth(),a=0;a<e.count||0;a++)t.push(n.defaults({bandWidth:r,axisKey:o,stackId:s+a},e));for(var l=p(t),c=[],a=0;a<e.count;a++){var d=l[o][s+a];d.offsetCenter=d.offset+d.width/2,c.push(d)}return c}},t.prepareLayoutBarSeries=u,t.makeColumnLayout=h,t.retrieveColumnLayout=f,t.layout=function(e,t){var i=u(e,t),o=h(i),a={},s={};n.each(i,function(e){var t=e.getData(),i=e.coordinateSystem,n=i.getBaseAxis(),l=c(e),u=o[d(n)][l],h=u.offset,p=u.width,f=i.getOtherAxis(n),g=e.get("barMinHeight")||0;a[l]=a[l]||[],s[l]=s[l]||[],t.setLayout({offset:h,size:p});for(var m=t.mapDimension(f.dim),v=t.mapDimension(n.dim),y=r(t,m),w=f.isHorizontal(),_=b(n,f,y),x=0,S=t.count();x<S;x++){var C,k,I,A,T=t.get(m,x),E=t.get(v,x);if(!isNaN(T)){var R=T>=0?"p":"n",D=_;if(y&&(a[l][E]||(a[l][E]={p:_,n:_}),D=a[l][E][R]),w){var O=i.dataToPoint([T,E]);C=D,k=O[1]+h,I=O[0]-_,A=p,Math.abs(I)<g&&(I=(I<0?-1:1)*g),y&&(a[l][E][R]+=I)}else{var O=i.dataToPoint([E,T]);C=O[0]+h,k=D,I=p,Math.abs(A=O[1]-_)<g&&(A=(A<=0?-1:1)*g),y&&(a[l][E][R]+=A)}t.setItemLayout(x,{x:C,y:k,width:I,height:A})}}},this)},t.largeLayout=g},19995:function(e,t,i){var n=i(66023),o=i(98763).parsePercent,r=i(74733).isDimensionStacked;function a(e){return e.get("stack")||"__ec_stack_"+e.seriesIndex}e.exports=function(e,t,i){i.getWidth(),i.getHeight();var s,l,c,d,u={},h=(s=n.filter(t.getSeriesByType(e),function(e){return!t.isSeriesFiltered(e)&&e.coordinateSystem&&"polar"===e.coordinateSystem.type}),c={},n.each(s,function(e,t){var i=e.getData(),n=e.coordinateSystem.getBaseAxis(),r=n.getExtent(),s="category"===n.type?n.getBandWidth():Math.abs(r[1]-r[0])/i.count(),l=c[n.dim]||{bandWidth:s,remainedWidth:s,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},d=l.stacks;c[n.dim]=l;var u=a(e);!d[u]&&l.autoWidthCount++,d[u]=d[u]||{width:0,maxWidth:0};var h=o(e.get("barWidth"),s),p=o(e.get("barMaxWidth"),s),f=e.get("barGap"),g=e.get("barCategoryGap");h&&!d[u].width&&(h=Math.min(l.remainedWidth,h),d[u].width=h,l.remainedWidth-=h),p&&(d[u].maxWidth=p),null!=f&&(l.gap=f),null!=g&&(l.categoryGap=g)}),d={},n.each(c,function(e,t){d[t]={};var i,r=e.stacks,a=e.bandWidth,s=o(e.categoryGap,a),l=o(e.gap,1),c=e.remainedWidth,u=e.autoWidthCount,h=(c-s)/(u+(u-1)*l);h=Math.max(h,0),n.each(r,function(e,t){var i=e.maxWidth;i&&i<h&&(i=Math.min(i,c),e.width&&(i=Math.min(i,e.width)),c-=i,e.width=i,u--)}),h=Math.max(h=(c-s)/(u+(u-1)*l),0);var p=0;n.each(r,function(e,t){e.width||(e.width=h),i=e,p+=e.width*(1+l)}),i&&(p-=i.width*l);var f=-p/2;n.each(r,function(e,i){d[t][i]=d[t][i]||{offset:f,width:e.width},f+=e.width*(1+l)})}),d);t.eachSeriesByType(e,function(e){if("polar"===e.coordinateSystem.type){var t=e.getData(),i=e.coordinateSystem,n=i.getBaseAxis(),o=a(e),s=h[n.dim][o],l=s.offset,c=s.width,d=i.getOtherAxis(n),p=e.coordinateSystem.cx,f=e.coordinateSystem.cy,g=e.get("barMinHeight")||0,m=e.get("barMinAngle")||0;u[o]=u[o]||[];for(var v=t.mapDimension(d.dim),b=t.mapDimension(n.dim),y=r(t,v),w=d.getExtent()[0],_=0,x=t.count();_<x;_++){var S,C,k,I,A=t.get(v,_),T=t.get(b,_);if(!isNaN(A)){var E=A>=0?"p":"n",R=w;if(y&&(u[o][T]||(u[o][T]={p:w,n:w}),R=u[o][T][E]),"radius"===d.dim){var D=d.dataToRadius(A)-w,O=n.dataToAngle(T);Math.abs(D)<g&&(D=(D<0?-1:1)*g),S=R,C=R+D,I=(k=O-l)-c,y&&(u[o][T][E]=C)}else{var M=d.dataToAngle(A,!0)-w,N=n.dataToRadius(T);Math.abs(M)<m&&(M=(M<0?-1:1)*m),C=(S=N+l)+c,k=R,I=R+M,y&&(u[o][T][E]=I)}t.setItemLayout(_,{cx:p,cy:f,r0:S,r:C,startAngle:-k*Math.PI/180,endAngle:-I*Math.PI/180})}}}},this)}},64342:function(e,t,i){var n=i(66023).map,o=i(85773),r=i(74733).isDimensionStacked;e.exports=function(e){return{seriesType:e,plan:o(),reset:function(e){var t=e.getData(),i=e.coordinateSystem,o=e.pipelineContext.large;if(i){var a=n(i.dimensions,function(e){return t.mapDimension(e)}).slice(0,2),s=a.length,l=t.getCalculationInfo("stackResultDimension");return r(t,a[0])&&(a[0]=l),r(t,a[1])&&(a[1]=l),s&&{progress:function(e,t){for(var n,r=e.end-e.start,l=o&&new Float32Array(r*s),c=e.start,d=0,u=[],h=[];c<e.end;c++){if(1===s){var p=t.get(a[0],c);n=!isNaN(p)&&i.dataToPoint(p,null,h)}else{var p=u[0]=t.get(a[0],c),f=u[1]=t.get(a[1],c);n=!isNaN(p)&&!isNaN(f)&&i.dataToPoint(u,null,h)}o?(l[d++]=n?n[0]:NaN,l[d++]=n?n[1]:NaN):t.setItemLayout(c,n&&n.slice()||[NaN,NaN])}o&&t.setLayout("symbolPoints",l)}}}}}}},28794:function(e,t,i){var n=i(66023),o=i(76165),r=Math.PI;e.exports=function(e,t){t=t||{},n.defaults(t,{text:"loading",color:"#c23531",textColor:"#000",maskColor:"rgba(255, 255, 255, 0.8)",zlevel:0});var i=new o.Rect({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4}),a=new o.Arc({shape:{startAngle:-r/2,endAngle:-r/2+.1,r:10},style:{stroke:t.color,lineCap:"round",lineWidth:5},zlevel:t.zlevel,z:10001}),s=new o.Rect({style:{fill:"none",text:t.text,textPosition:"right",textDistance:10,textFill:t.textColor},zlevel:t.zlevel,z:10001});a.animateShape(!0).when(1e3,{endAngle:3*r/2}).start("circularInOut"),a.animateShape(!0).when(1e3,{startAngle:3*r/2}).delay(300).start("circularInOut");var l=new o.Group;return l.add(a),l.add(s),l.add(i),l.resize=function(){var t=e.getWidth()/2,n=e.getHeight()/2;a.setShape({cx:t,cy:n});var o=a.shape.r;s.setShape({x:t-o,y:n-o,width:2*o,height:2*o}),i.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},l.resize(),l}},76056:function(e,t,i){var n=i(66023),o=i(27611),r=i(79426),a=i(51938),s=a.enableClassManagement,l=a.parseClassType,c=i(70018).makeInner,d=i(68006),u=i(76627),h=c(),p=o.extend({type:"component",id:"",name:"",mainType:"",subType:"",componentIndex:0,defaultOption:null,ecModel:null,dependentModels:[],uid:null,layoutMode:null,$constructor:function(e,t,i,n){o.call(this,e,t,i,n),this.uid=r.getUID("ec_cpt_model")},init:function(e,t,i,n){this.mergeDefaultAndTheme(e,i)},mergeDefaultAndTheme:function(e,t){var i=this.layoutMode,o=i?d.getLayoutParams(e):{},r=t.getTheme();n.merge(e,r.get(this.mainType)),n.merge(e,this.getDefaultOption()),i&&d.mergeLayoutParam(e,o,i)},mergeOption:function(e,t){n.merge(this.option,e,!0);var i=this.layoutMode;i&&d.mergeLayoutParam(this.option,e,i)},optionUpdated:function(e,t){},getDefaultOption:function(){var e=h(this);if(!e.defaultOption){for(var t=[],i=this.constructor;i;){var o=i.prototype.defaultOption;o&&t.push(o),i=i.superClass}for(var r={},a=t.length-1;a>=0;a--)r=n.merge(r,t[a],!0);e.defaultOption=r}return e.defaultOption},getReferringComponents:function(e){return this.ecModel.queryComponents({mainType:e,index:this.get(e+"Index",!0),id:this.get(e+"Id",!0)})}});s(p,{registerWhenExtend:!0}),r.enableSubTypeDefaulter(p),r.enableTopologicalTravel(p,function(e){var t=[];return n.each(p.getClassesByMainType(e),function(e){t=t.concat(e.prototype.dependencies||[])}),t=n.map(t,function(e){return l(e).main}),"dataset"!==e&&0>=n.indexOf(t,"dataset")&&t.unshift("dataset"),t}),n.mixin(p,u),e.exports=p},16438:function(e,t,i){i(38603).__DEV__;var n=i(66023),o=n.each,r=n.filter,a=n.map,s=n.isArray,l=n.indexOf,c=n.isObject,d=n.isString,u=n.createHashMap,h=n.assert,p=n.clone,f=n.merge,g=n.extend,m=n.mixin,v=i(70018),b=i(27611),y=i(76056),w=i(11685),_=i(30698),x=i(4522).resetSourceDefaulter,S="\0_ec_inner",C=b.extend({init:function(e,t,i,n){i=i||{},this.option=null,this._theme=new b(i),this._optionManager=n},setOption:function(e,t){h(!(S in e),"please use chart.getOption()"),this._optionManager.setOption(e,t),this.resetOption(null)},resetOption:function(e){var t=!1,i=this._optionManager;if(!e||"recreate"===e){var n=i.mountOption("recreate"===e);this.option&&"recreate"!==e?(this.restoreData(),this.mergeOption(n)):k.call(this,n),t=!0}if(("timeline"===e||"media"===e)&&this.restoreData(),!e||"recreate"===e||"timeline"===e){var r=i.getTimelineOption(this);r&&(this.mergeOption(r),t=!0)}if(!e||"recreate"===e||"media"===e){var a=i.getMediaOption(this,this._api);a.length&&o(a,function(e){this.mergeOption(e,t=!0)},this)}return t},mergeOption:function(e){var t=this.option,i=this._componentsMap,n=[];x(this),o(e,function(e,i){null!=e&&(y.hasClass(i)?i&&n.push(i):t[i]=null==t[i]?p(e):f(t[i],e,!0))}),y.topologicalTravel(n,y.getAllClassMainTypes(),function(n,r){var a,l,d,u=v.normalizeToArray(e[n]),p=v.mappingToExists(i.get(n),u);v.makeIdAndName(p),o(p,function(e,t){var i,o,r,a=e.option;c(a)&&(e.keyInfo.mainType=n,e.keyInfo.subType=(i=n,o=a,r=e.exist,o.type?o.type:r?r.subType:y.determineSubType(i,o)))});var f=(a=i,s(l=r)||(l=l?[l]:[]),d={},o(l,function(e){d[e]=(a.get(e)||[]).slice()}),d);t[n]=[],i.set(n,[]),o(p,function(e,o){var r=e.exist,a=e.option;if(h(c(a)||r,"Empty component definition"),a){var s=y.getClass(n,e.keyInfo.subType,!0);if(r&&r instanceof s)r.name=e.keyInfo.name,r.mergeOption(a,this),r.optionUpdated(a,!1);else{var l=g({dependentModels:f,componentIndex:o},e.keyInfo);g(r=new s(a,this,this,l),l),r.init(a,this,this,l),r.optionUpdated(null,!0)}}else r.mergeOption({},this),r.optionUpdated({},!1);i.get(n)[o]=r,t[n][o]=r.option},this),"series"===n&&I(this,i.get("series"))},this),this._seriesIndicesMap=u(this._seriesIndices=this._seriesIndices||[])},getOption:function(){var e=p(this.option);return o(e,function(t,i){if(y.hasClass(i)){for(var t=v.normalizeToArray(t),n=t.length-1;n>=0;n--)v.isIdInner(t[n])&&t.splice(n,1);e[i]=t}}),delete e[S],e},getTheme:function(){return this._theme},getComponent:function(e,t){var i=this._componentsMap.get(e);if(i)return i[t||0]},queryComponents:function(e){var t,i=e.mainType;if(!i)return[];var n=e.index,o=e.id,c=e.name,d=this._componentsMap.get(i);if(!d||!d.length)return[];if(null!=n)s(n)||(n=[n]),t=r(a(n,function(e){return d[e]}),function(e){return!!e});else if(null!=o){var u=s(o);t=r(d,function(e){return u&&l(o,e.id)>=0||!u&&e.id===o})}else if(null!=c){var h=s(c);t=r(d,function(e){return h&&l(c,e.name)>=0||!h&&e.name===c})}else t=d.slice();return A(t,e)},findComponents:function(e){var t,i,n,o,a,s=e.query,l=e.mainType,c=(t=s,i=l+"Index",n=l+"Id",o=l+"Name",t&&(null!=t[i]||null!=t[n]||null!=t[o])?{mainType:l,index:t[i],id:t[n],name:t[o]}:null);return a=A(c?this.queryComponents(c):this._componentsMap.get(l),e),e.filter?r(a,e.filter):a},eachComponent:function(e,t,i){var n=this._componentsMap;"function"==typeof e?(i=t,t=e,n.each(function(e,n){o(e,function(e,o){t.call(i,n,e,o)})})):d(e)?o(n.get(e),t,i):c(e)&&o(this.findComponents(e),t,i)},getSeriesByName:function(e){return r(this._componentsMap.get("series"),function(t){return t.name===e})},getSeriesByIndex:function(e){return this._componentsMap.get("series")[e]},getSeriesByType:function(e){return r(this._componentsMap.get("series"),function(t){return t.subType===e})},getSeries:function(){return this._componentsMap.get("series").slice()},getSeriesCount:function(){return this._componentsMap.get("series").length},eachSeries:function(e,t){o(this._seriesIndices,function(i){var n=this._componentsMap.get("series")[i];e.call(t,n,i)},this)},eachRawSeries:function(e,t){o(this._componentsMap.get("series"),e,t)},eachSeriesByType:function(e,t,i){o(this._seriesIndices,function(n){var o=this._componentsMap.get("series")[n];o.subType===e&&t.call(i,o,n)},this)},eachRawSeriesByType:function(e,t,i){return o(this.getSeriesByType(e),t,i)},isSeriesFiltered:function(e){return null==this._seriesIndicesMap.get(e.componentIndex)},getCurrentSeriesIndices:function(){return(this._seriesIndices||[]).slice()},filterSeries:function(e,t){I(this,r(this._componentsMap.get("series"),e,t))},restoreData:function(e){var t=this._componentsMap;I(this,t.get("series"));var i=[];t.each(function(e,t){i.push(t)}),y.topologicalTravel(i,y.getAllClassMainTypes(),function(i,n){o(t.get(i),function(t){"series"===i&&function(e,t){if(t){var i=t.seiresIndex,n=t.seriesId,o=t.seriesName;return null!=i&&e.componentIndex!==i||null!=n&&e.id!==n||null!=o&&e.name!==o}}(t,e)||t.restoreData()})})}});function k(e){var t,i;this.option={},this.option[S]=1,this._componentsMap=u({series:[]}),this._seriesIndices,this._seriesIndicesMap,t=this._theme.option,i=e.color&&!e.colorLayer,o(t,function(t,n){("colorLayer"!==n||!i)&&(y.hasClass(n)||("object"==typeof t?e[n]=e[n]?f(e[n],t,!1):p(t):null==e[n]&&(e[n]=t)))}),f(e,w,!1),this.mergeOption(e)}function I(e,t){e._seriesIndicesMap=u(e._seriesIndices=a(t,function(e){return e.componentIndex})||[])}function A(e,t){return t.hasOwnProperty("subType")?r(e,function(e){return e.subType===t.subType}):e}m(C,_),e.exports=C},27611:function(e,t,i){var n=i(66023),o=i(57674),r=i(70018).makeInner,a=i(51938),s=a.enableClassExtend,l=a.enableClassCheck,c=i(83909),d=i(69957),u=i(78055),h=i(157),p=n.mixin,f=r();function g(e,t,i){this.parentModel=t,this.ecModel=i,this.option=e}function m(e,t,i){for(var n=0;n<t.length&&(!t[n]||null!=(e=e&&"object"==typeof e?e[t[n]]:null));n++);return null==e&&i&&(e=i.get(t)),e}function v(e,t){var i=f(e).getParent;return i?i.call(e,t):e.parentModel}g.prototype={constructor:g,init:null,mergeOption:function(e){n.merge(this.option,e,!0)},get:function(e,t){return null==e?this.option:m(this.option,this.parsePath(e),!t&&v(this,e))},getShallow:function(e,t){var i=this.option,n=null==i?i:i[e],o=!t&&v(this,e);return null==n&&o&&(n=o.getShallow(e)),n},getModel:function(e,t){var i;return new g(null==e?this.option:m(this.option,e=this.parsePath(e)),t=t||(i=v(this,e))&&i.getModel(e),this.ecModel)},isEmpty:function(){return null==this.option},restoreData:function(){},clone:function(){return new this.constructor(n.clone(this.option))},setReadOnly:function(e){},parsePath:function(e){return"string"==typeof e&&(e=e.split(".")),e},customizeGetParent:function(e){f(this).getParent=e},isAnimationEnabled:function(){if(!o.node){if(null!=this.option.animation)return!!this.option.animation;else if(this.parentModel)return this.parentModel.isAnimationEnabled()}}},s(g),l(g),p(g,c),p(g,d),p(g,u),p(g,h),e.exports=g},53734:function(e,t,i){var n=i(66023),o=i(70018),r=i(76056),a=n.each,s=n.clone,l=n.map,c=n.merge,d=/^(min|max)?(.+)$/;function u(e){this._api=e,this._timelineOptions=[],this._mediaList=[],this._mediaDefault,this._currentMediaIndices=[],this._optionBackup,this._newBaseOption}function h(e,t,i){var o,r,s=[],l=[],c=e.timeline;return e.baseOption&&(r=e.baseOption),(c||e.options)&&(r=r||{},s=(e.options||[]).slice()),e.media&&(r=r||{},a(e.media,function(e){e&&e.option&&(e.query?l.push(e):o||(o=e))})),r||(r=e),r.timeline||(r.timeline=c),a([r].concat(s).concat(n.map(l,function(e){return e.option})),function(e){a(t,function(t){t(e,i)})}),{baseOption:r,timelineOptions:s,mediaDefault:o,mediaList:l}}u.prototype={constructor:u,setOption:function(e,t){e&&n.each(o.normalizeToArray(e.series),function(e){e&&e.data&&n.isTypedArray(e.data)&&n.setAsPrimitive(e.data)}),e=s(e,!0);var i,d,u=this._optionBackup,p=h.call(this,e,t,!u);this._newBaseOption=p.baseOption,u?(i=u.baseOption,a(d=(d=p.baseOption)||{},function(e,t){if(null!=e){var n=i[t];if(r.hasClass(t)){e=o.normalizeToArray(e),n=o.normalizeToArray(n);var a=o.mappingToExists(n,e);i[t]=l(a,function(e){return e.option&&e.exist?c(e.exist,e.option,!0):e.exist||e.option})}else i[t]=c(n,e,!0)}}),p.timelineOptions.length&&(u.timelineOptions=p.timelineOptions),p.mediaList.length&&(u.mediaList=p.mediaList),p.mediaDefault&&(u.mediaDefault=p.mediaDefault)):this._optionBackup=p},mountOption:function(e){var t=this._optionBackup;return this._timelineOptions=l(t.timelineOptions,s),this._mediaList=l(t.mediaList,s),this._mediaDefault=s(t.mediaDefault),this._currentMediaIndices=[],s(e?t.baseOption:this._newBaseOption)},getTimelineOption:function(e){var t,i=this._timelineOptions;if(i.length){var n=e.getComponent("timeline");n&&(t=s(i[n.getCurrentIndex()],!0))}return t},getMediaOption:function(e){var t,i,o=this._api.getWidth(),r=this._api.getHeight(),a=this._mediaList,c=this._mediaDefault,u=[],h=[];if(!a.length&&!c)return h;for(var p=0,f=a.length;p<f;p++)(function(e,t,i){var o={width:t,height:i,aspectratio:t/i},r=!0;return n.each(e,function(e,t){var i=t.match(d);if(i&&i[1]&&i[2]){var n,a,s,l=i[1];n=o[i[2].toLowerCase()],a=e,("min"===(s=l)?n>=a:"max"===s?n<=a:n===a)||(r=!1)}}),r})(a[p].query,o,r)&&u.push(p);return!u.length&&c&&(u=[-1]),u.length&&(t=u,i=this._currentMediaIndices,t.join(",")!==i.join(","))&&(h=l(u,function(e){return s(-1===e?c.option:a[e].option)})),this._currentMediaIndices=u,h}},e.exports=u},26626:function(e,t,i){i(38603).__DEV__;var n=i(66023),o=i(57674),r=i(20438),a=r.formatTime,s=r.encodeHTML,l=r.addCommas,c=r.getTooltipMarker,d=i(70018),u=i(76056),h=i(30698),p=i(9084),f=i(68006),g=f.getLayoutParams,m=f.mergeLayoutParam,v=i(68940).createTask,b=i(4522),y=b.prepareSource,w=b.getSource,_=i(89211).retrieveRawValue,x=d.makeInner(),S=u.extend({type:"series.__base__",seriesIndex:0,coordinateSystem:null,defaultOption:null,legendDataProvider:null,visualColorAccessPath:"itemStyle.color",layoutMode:null,init:function(e,t,i,n){this.seriesIndex=this.componentIndex,this.dataTask=v({count:k,reset:I}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,i),y(this);var o=this.getInitialData(e,i);T(o,this),this.dataTask.context.data=o,x(this).dataBeforeProcessed=o,C(this)},mergeDefaultAndTheme:function(e,t){var i=this.layoutMode,o=i?g(e):{},r=this.subType;u.hasClass(r)&&(r+="Series"),n.merge(e,t.getTheme().get(this.subType)),n.merge(e,this.getDefaultOption()),d.defaultEmphasis(e,"label",["show"]),this.fillDataTextStyle(e.data),i&&m(e,o,i)},mergeOption:function(e,t){e=n.merge(this.option,e,!0),this.fillDataTextStyle(e.data);var i=this.layoutMode;i&&m(this.option,e,i),y(this);var o=this.getInitialData(e,t);T(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,x(this).dataBeforeProcessed=o,C(this)},fillDataTextStyle:function(e){if(e&&!n.isTypedArray(e))for(var t=["show"],i=0;i<e.length;i++)e[i]&&e[i].label&&d.defaultEmphasis(e[i],"label",t)},getInitialData:function(){},appendData:function(e){this.getRawData().appendData(e.data)},getData:function(e){var t=R(this);if(!t)return x(this).data;var i=t.context.data;return null==e?i:i.getLinkedData(e)},setData:function(e){var t=R(this);if(t){var i=t.context;i.data!==e&&t.modifyOutputEnd&&t.setOutputEnd(e.count()),i.outputData=e,t!==this.dataTask&&(i.data=e)}x(this).data=e},getSource:function(){return w(this)},getRawData:function(){return x(this).dataBeforeProcessed},getBaseAxis:function(){var e=this.coordinateSystem;return e&&e.getBaseAxis&&e.getBaseAxis()},formatTooltip:function(e,t,i,o){var r,u=this,h="html"===(o=o||"html")?"<br/>":"\n",p="richText"===o,f={},g=0,m=this.getData(),v=m.mapDimension("defaultedTooltip",!0),b=v.length,y=this.getRawValue(e),w=n.isArray(y),x=m.getItemVisual(e,"color");n.isObject(x)&&x.colorStops&&(x=(x.colorStops[0]||{}).color),x=x||"transparent";var S=(b>1||w&&!b?function(i){var r=n.reduce(i,function(e,t,i){var n=m.getDimensionInfo(i);return e|(n&&!1!==n.tooltip&&null!=n.displayName)},0),d=[];function h(e,i){var n=m.getDimensionInfo(i);if(n&&!1!==n.otherDims.tooltip){var h=n.type,v="sub"+u.seriesIndex+"at"+g,b=c({color:x,type:"subItem",renderMode:o,markerId:v}),y="string"==typeof b?b:b.content,w=(r?y+s(n.displayName||"-")+": ":"")+s("ordinal"===h?e+"":"time"===h?t?"":a("yyyy/MM/dd hh:mm:ss",e):l(e));w&&d.push(w),p&&(f[v]=x,++g)}}v.length?n.each(v,function(t){h(_(m,e,t),t)}):n.each(i,h);var b=r?p?"\n":"<br/>":"",y=b+d.join(b||", ");return{renderMode:o,content:y,style:f}}(y):(r=b?_(m,e,v[0]):w?y[0]:y,{renderMode:o,content:s(l(r)),style:f})).content,C=u.seriesIndex+"at"+g,k=c({color:x,type:"item",renderMode:o,markerId:C});f[C]=x,++g;var I=m.getName(e),A=this.name;d.isNameSpecified(this)||(A=""),A=A?s(A)+(t?": ":h):"";var T="string"==typeof k?k:k.content;return{html:t?T+A+S:A+T+(I?s(I)+": "+S:S),markers:f}},isAnimationEnabled:function(){if(o.node)return!1;var e=this.getShallow("animation");return e&&this.getData().count()>this.getShallow("animationThreshold")&&(e=!1),e},restoreData:function(){this.dataTask.dirty()},getColorFromPalette:function(e,t,i){var n=this.ecModel,o=h.getColorFromPalette.call(this,e,t,i);return o||(o=n.getColorFromPalette(e,t,i)),o},coordDimToDataDim:function(e){return this.getRawData().mapDimension(e,!0)},getProgressive:function(){return this.get("progressive")},getProgressiveThreshold:function(){return this.get("progressiveThreshold")},getAxisTooltipData:null,getTooltipPosition:null,pipeTask:null,preventIncremental:null,pipelineContext:null});function C(e){var t,i,o,r=e.name;d.isNameSpecified(e)||(e.name=(i=(t=e.getRawData()).mapDimension("seriesName",!0),o=[],n.each(i,function(e){var i=t.getDimensionInfo(e);i.displayName&&o.push(i.displayName)}),o.join(" ")||r))}function k(e){return e.model.getRawData().count()}function I(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),A}function A(e,t){e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function T(e,t){n.each(e.CHANGABLE_METHODS,function(i){e.wrapMethod(i,n.curry(E,t))})}function E(e){var t=R(e);t&&t.setOutputEnd(this.count())}function R(e){var t=(e.ecModel||{}).scheduler,i=t&&t.getPipeline(e.uid);if(i){var n=i.currentTask;if(n){var o=n.agentStubMap;o&&(n=o.get(e.uid))}return n}}n.mixin(S,p),n.mixin(S,h),e.exports=S},11685:function(e){var t="";"undefined"!=typeof navigator&&(t=navigator.platform||""),e.exports={color:["#c23531","#2f4554","#61a0a8","#d48265","#91c7ae","#749f83","#ca8622","#bda29a","#6e7074","#546570","#c4ccd3"],gradientColor:["#f6efa6","#d88273","#bf444c"],textStyle:{fontFamily:t.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,animation:"auto",animationDuration:1e3,animationDurationUpdate:300,animationEasing:"exponentialOut",animationEasingUpdate:"cubicOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1}},69957:function(e,t,i){var n=i(24954)([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]);e.exports={getAreaStyle:function(e,t){return n(this,e,t)}}},76627:function(e){e.exports={getBoxLayoutParams:function(){return{left:this.get("left"),top:this.get("top"),right:this.get("right"),bottom:this.get("bottom"),width:this.get("width"),height:this.get("height")}}}},30698:function(e,t,i){var n=i(70018),o=n.makeInner,r=n.normalizeToArray,a=o();e.exports={clearColorPalette:function(){a(this).colorIdx=0,a(this).colorNameMap={}},getColorFromPalette:function(e,t,i){var n=a(t=t||this),o=n.colorIdx||0,s=n.colorNameMap=n.colorNameMap||{};if(s.hasOwnProperty(e))return s[e];var l=r(this.get("color",!0)),c=this.get("colorLayer",!0),d=null!=i&&c?function(e,t){for(var i=e.length,n=0;n<i;n++)if(e[n].length>t)return e[n];return e[i-1]}(c,i):l;if((d=d||l)&&d.length){var u=d[o];return e&&(s[e]=u),n.colorIdx=(o+1)%d.length,u}}}},9084:function(e,t,i){var n=i(89211).retrieveRawValue,o=i(20438),r=o.getTooltipMarker,a=o.formatTpl,s=i(70018).getTooltipRenderMode,l=/\{@(.+?)\}/g;e.exports={getDataParams:function(e,t){var i=this.getData(t),n=this.getRawValue(e,t),o=i.getRawIndex(e),a=i.getName(e),l=i.getRawDataItem(e),c=i.getItemVisual(e,"color"),d=this.ecModel.getComponent("tooltip"),u=s(d&&d.get("renderMode")),h=this.mainType,p="series"===h;return{componentType:h,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:p?this.subType:null,seriesIndex:this.seriesIndex,seriesId:p?this.id:null,seriesName:p?this.name:null,name:a,dataIndex:o,data:l,dataType:t,value:n,color:c,marker:r({color:c,renderMode:u}),$vars:["seriesName","name","value"]}},getFormattedLabel:function(e,t,i,o,r){t=t||"normal";var s=this.getData(i),c=s.getItemModel(e),d=this.getDataParams(e,i);null!=o&&d.value instanceof Array&&(d.value=d.value[o]);var u=c.get("normal"===t?[r||"label","formatter"]:[t,r||"label","formatter"]);return"function"==typeof u?(d.status=t,u(d)):"string"==typeof u?a(u,d).replace(l,function(t,i){var o=i.length;return"["===i.charAt(0)&&"]"===i.charAt(o-1)&&(i=+i.slice(1,o-1)),n(s,e,i)}):void 0},getRawValue:function(e,t){return n(this.getData(t),e)},formatTooltip:function(){}}},157:function(e,t,i){var n=i(24954)([["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["textPosition"],["textAlign"]]);e.exports={getItemStyle:function(e,t){var i=n(this,e,t),o=this.getBorderLineDash();return o&&(i.lineDash=o),i},getBorderLineDash:function(){var e=this.get("borderType");return"solid"===e||null==e?null:"dashed"===e?[5,5]:[1,1]}}},83909:function(e,t,i){var n=i(24954)([["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]);e.exports={getLineStyle:function(e){var t=n(this,e),i=this.getLineDash(t.lineWidth);return i&&(t.lineDash=i),t},getLineDash:function(e){null==e&&(e=1);var t=this.get("type"),i=Math.max(e,2),n=4*e;return"solid"===t||null==t?null:"dashed"===t?[n,n]:[i,i]}}},24954:function(e,t,i){var n=i(66023);e.exports=function(e){for(var t=0;t<e.length;t++)e[t][1]||(e[t][1]=e[t][0]);return function(t,i,o){for(var r={},a=0;a<e.length;a++){var s=e[a][1];if(!(i&&n.indexOf(i,s)>=0||o&&0>n.indexOf(o,s))){var l=t.getShallow(s);null!=l&&(r[e[a][0]]=l)}}return r}}},78055:function(e,t,i){var n=i(99280),o=i(76165),r=["textStyle","color"];e.exports={getTextColor:function(e){var t=this.ecModel;return this.getShallow("color")||(!e&&t?t.get(r):null)},getFont:function(){return o.getFont({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},getTextRect:function(e){return n.getBoundingRect(e,this.getFont(),this.getShallow("align"),this.getShallow("verticalAlign")||this.getShallow("baseline"),this.getShallow("padding"),this.getShallow("lineHeight"),this.getShallow("rich"),this.getShallow("truncateText"))}}},26774:function(e,t,i){i(38603).__DEV__;var n=i(66023),o=n.createHashMap;n.retrieve;var r=n.each,a={cartesian2d:function(e,t,i,n){var o=e.getReferringComponents("xAxis")[0],r=e.getReferringComponents("yAxis")[0];t.coordSysDims=["x","y"],i.set("x",o),i.set("y",r),s(o)&&(n.set("x",o),t.firstCategoryDimIndex=0),s(r)&&(n.set("y",r),t.firstCategoryDimIndex=1)},singleAxis:function(e,t,i,n){var o=e.getReferringComponents("singleAxis")[0];t.coordSysDims=["single"],i.set("single",o),s(o)&&(n.set("single",o),t.firstCategoryDimIndex=0)},polar:function(e,t,i,n){var o=e.getReferringComponents("polar")[0],r=o.findAxisModel("radiusAxis"),a=o.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],i.set("radius",r),i.set("angle",a),s(r)&&(n.set("radius",r),t.firstCategoryDimIndex=0),s(a)&&(n.set("angle",a),t.firstCategoryDimIndex=1)},geo:function(e,t,i,n){t.coordSysDims=["lng","lat"]},parallel:function(e,t,i,n){var o=e.ecModel,a=o.getComponent("parallel",e.get("parallelIndex")),l=t.coordSysDims=a.dimensions.slice();r(a.parallelAxisIndex,function(e,r){var a=o.getComponent("parallelAxis",e),c=l[r];i.set(c,a),s(a)&&null==t.firstCategoryDimIndex&&(n.set(c,a),t.firstCategoryDimIndex=r)})}};function s(e){return"category"===e.get("type")}t.getCoordSysDefineBySeries=function(e){var t=e.get("coordinateSystem"),i={coordSysName:t,coordSysDims:[],axisMap:o(),categoryAxisMap:o()},n=a[t];if(n)return n(e,i,i.axisMap,i.categoryAxisMap),i}},34357:function(e,t,i){var n=i(66023),o=n.each,r=n.isArray,a=n.isObject,s=i(17544),l=i(70018).normalizeToArray;function c(e){o(d,function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])})}var d=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],u=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"];e.exports=function(e,t){s(e,t),e.series=l(e.series),o(e.series,function(e){if(a(e)){var t=e.type;if(("pie"===t||"gauge"===t)&&null!=e.clockWise&&(e.clockwise=e.clockWise),"gauge"===t){var i=function(e,t){t=t.split(",");for(var i=e,n=0;n<t.length&&null!=(i=i&&i[t[n]]);n++);return i}(e,"pointer.color");null!=i&&function(e,t,i,n){t=t.split(",");for(var o,r=e,a=0;a<t.length-1;a++)null==r[o=t[a]]&&(r[o]={}),r=r[o];null==r[t[a]]&&(r[t[a]]=i)}(e,"itemStyle.normal.color",i)}c(e)}}),e.dataRange&&(e.visualMap=e.dataRange),o(u,function(t){var i=e[t];i&&(r(i)||(i=[i]),o(i,function(e){c(e)}))})}},17544:function(e,t,i){var n=i(66023),o=i(70018),r=n.each,a=n.isObject,s=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function l(e){var t=e&&e.itemStyle;if(t)for(var i=0,o=s.length;i<o;i++){var r=s[i],a=t.normal,l=t.emphasis;a&&a[r]&&(e[r]=e[r]||{},e[r].normal?n.merge(e[r].normal,a[r]):e[r].normal=a[r],a[r]=null),l&&l[r]&&(e[r]=e[r]||{},e[r].emphasis?n.merge(e[r].emphasis,l[r]):e[r].emphasis=l[r],l[r]=null)}}function c(e,t,i){if(e&&e[t]&&(e[t].normal||e[t].emphasis)){var o=e[t].normal,r=e[t].emphasis;o&&(i?(e[t].normal=e[t].emphasis=null,n.defaults(e[t],o)):e[t]=o),r&&(e.emphasis=e.emphasis||{},e.emphasis[t]=r)}}function d(e){c(e,"itemStyle"),c(e,"lineStyle"),c(e,"areaStyle"),c(e,"label"),c(e,"labelLine"),c(e,"upperLabel"),c(e,"edgeLabel")}function u(e,t){var i=a(e)&&e[t],n=a(i)&&i.textStyle;if(n)for(var r=0,s=o.TEXT_STYLE_OPTIONS.length;r<s;r++){var t=o.TEXT_STYLE_OPTIONS[r];n.hasOwnProperty(t)&&(i[t]=n[t])}}function h(e){e&&(d(e),u(e,"label"),e.emphasis&&u(e.emphasis,"label"))}function p(e){return n.isArray(e)?e:e?[e]:[]}function f(e){return(n.isArray(e)?e[0]:e)||{}}e.exports=function(e,t){r(p(e.series),function(e){a(e)&&function(e){if(a(e)){l(e),d(e),u(e,"label"),u(e,"upperLabel"),u(e,"edgeLabel"),e.emphasis&&(u(e.emphasis,"label"),u(e.emphasis,"upperLabel"),u(e.emphasis,"edgeLabel"));var t=e.markPoint;t&&(l(t),h(t));var i=e.markLine;i&&(l(i),h(i));var o=e.markArea;o&&h(o);var r=e.data;if("graph"===e.type){r=r||e.nodes;var s=e.links||e.edges;if(s&&!n.isTypedArray(s))for(var p=0;p<s.length;p++)h(s[p]);n.each(e.categories,function(e){d(e)})}if(r&&!n.isTypedArray(r))for(var p=0;p<r.length;p++)h(r[p]);var t=e.markPoint;if(t&&t.data)for(var f=t.data,p=0;p<f.length;p++)h(f[p]);var i=e.markLine;if(i&&i.data)for(var g=i.data,p=0;p<g.length;p++)n.isArray(g[p])?(h(g[p][0]),h(g[p][1])):h(g[p]);"gauge"===e.type?(u(e,"axisLabel"),u(e,"title"),u(e,"detail")):"treemap"===e.type?(c(e.breadcrumb,"itemStyle"),n.each(e.levels,function(e){d(e)})):"tree"===e.type&&d(e.leaves)}}(e)});var i=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&i.push("valueAxis","categoryAxis","logAxis","timeAxis"),r(i,function(t){r(p(e[t]),function(e){e&&(u(e,"axisLabel"),u(e.axisPointer,"label"))})}),r(p(e.parallel),function(e){var t=e&&e.parallelAxisDefault;u(t,"axisLabel"),u(t&&t.axisPointer,"label")}),r(p(e.calendar),function(e){c(e,"itemStyle"),u(e,"dayLabel"),u(e,"monthLabel"),u(e,"yearLabel")}),r(p(e.radar),function(e){u(e,"name")}),r(p(e.geo),function(e){a(e)&&(h(e),r(p(e.regions),function(e){h(e)}))}),r(p(e.timeline),function(e){h(e),c(e,"label"),c(e,"itemStyle"),c(e,"controlStyle",!0);var t=e.data;n.isArray(t)&&n.each(t,function(e){n.isObject(e)&&(c(e,"label"),c(e,"itemStyle"))})}),r(p(e.toolbox),function(e){c(e,"iconStyle"),r(e.feature,function(e){c(e,"iconStyle")})}),u(f(e.axisPointer),"label"),u(f(e.tooltip).axisPointer,"label")}},6817:function(e){e.exports=function(e){return{seriesType:e,reset:function(e,t){var i=t.findComponents({mainType:"legend"});if(i&&i.length){var n=e.getData();n.filterSelf(function(e){for(var t=n.getName(e),o=0;o<i.length;o++)if(!i[o].isSelected(t))return!1;return!0})}}}}},45868:function(e){var t={average:function(e){for(var t=0,i=0,n=0;n<e.length;n++)!isNaN(e[n])&&(t+=e[n],i++);return 0===i?NaN:t/i},sum:function(e){for(var t=0,i=0;i<e.length;i++)t+=e[i]||0;return t},max:function(e){for(var t=-1/0,i=0;i<e.length;i++)e[i]>t&&(t=e[i]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,i=0;i<e.length;i++)e[i]<t&&(t=e[i]);return isFinite(t)?t:NaN},nearest:function(e){return e[0]}},i=function(e,t){return Math.round(e.length/2)};e.exports=function(e){return{seriesType:e,modifyOutputEnd:!0,reset:function(e,n,o){var r=e.getData(),a=e.get("sampling"),s=e.coordinateSystem;if("cartesian2d"===s.type&&a){var l,c=s.getBaseAxis(),d=s.getOtherAxis(c),u=c.getExtent(),h=u[1]-u[0],p=Math.round(r.count()/h);p>1&&("string"==typeof a?l=t[a]:"function"==typeof a&&(l=a),l&&e.setData(r.downSample(r.mapDimension(d.dim),1/p,l,i)))}}}}},45888:function(e,t,i){var n=i(66023),o=n.createHashMap,r=n.each;function a(e){r(e,function(t,i){var n=[],o=[NaN,NaN],r=[t.stackResultDimension,t.stackedOverDimension],a=t.data,s=t.isStackedByIndex,l=a.map(r,function(r,l,c){var d,u,h=a.get(t.stackedDimension,c);if(isNaN(h))return o;s?u=a.getRawIndex(c):d=a.get(t.stackedByDimension,c);for(var p=NaN,f=i-1;f>=0;f--){var g=e[f];if(s||(u=g.data.rawIndexOf(g.stackedByDimension,d)),u>=0){var m=g.data.getByRawIndex(g.stackResultDimension,u);if(h>=0&&m>0||h<=0&&m<0){h+=m,p=m;break}}}return n[0]=h,n[1]=p,n});a.hostModel.setData(l),t.data=l})}e.exports=function(e){var t=o();e.eachSeries(function(e){var i=e.get("stack");if(i){var n=t.get(i)||t.set(i,[]),o=e.getData(),r={stackResultDimension:o.getCalculationInfo("stackResultDimension"),stackedOverDimension:o.getCalculationInfo("stackedOverDimension"),stackedDimension:o.getCalculationInfo("stackedDimension"),stackedByDimension:o.getCalculationInfo("stackedByDimension"),isStackedByIndex:o.getCalculationInfo("isStackedByIndex"),data:o,seriesModel:e};if(!r.stackedDimension||!(r.isStackedByIndex||r.stackedByDimension))return;n.length&&o.setCalculationInfo("stackedOnSeries",n[n.length-1].seriesModel),n.push(r)}}),t.each(a)}},74323:function(e,t,i){var n=i(98763),o=i(20438),r=i(3029),a=i(32683),s=n.round,l=r.extend({type:"interval",_interval:0,_intervalPrecision:2,setExtent:function(e,t){var i=this._extent;isNaN(e)||(i[0]=parseFloat(e)),isNaN(t)||(i[1]=parseFloat(t))},unionExtent:function(e){var t=this._extent;e[0]<t[0]&&(t[0]=e[0]),e[1]>t[1]&&(t[1]=e[1]),l.prototype.setExtent.call(this,t[0],t[1])},getInterval:function(){return this._interval},setInterval:function(e){this._interval=e,this._niceExtent=this._extent.slice(),this._intervalPrecision=a.getIntervalPrecision(e)},getTicks:function(){return a.intervalScaleGetTicks(this._interval,this._extent,this._niceExtent,this._intervalPrecision)},getLabel:function(e,t){if(null==e)return"";var i=t&&t.precision;return null==i?i=n.getPrecisionSafe(e)||0:"auto"===i&&(i=this._intervalPrecision),e=s(e,i,!0),o.addCommas(e)},niceTicks:function(e,t,i){e=e||5;var n=this._extent,o=n[1]-n[0];if(isFinite(o)){o<0&&(o=-o,n.reverse());var r=a.intervalScaleNiceTicks(n,e,t,i);this._intervalPrecision=r.intervalPrecision,this._interval=r.interval,this._niceExtent=r.niceTickExtent}},niceExtent:function(e){var t=this._extent;if(t[0]===t[1])if(0!==t[0]){var i=t[0];e.fixMax||(t[1]+=i/2),t[0]-=i/2}else t[1]=1;isFinite(t[1]-t[0])||(t[0]=0,t[1]=1),this.niceTicks(e.splitNumber,e.minInterval,e.maxInterval);var n=this._interval;e.fixMin||(t[0]=s(Math.floor(t[0]/n)*n)),e.fixMax||(t[1]=s(Math.ceil(t[1]/n)*n))}});l.create=function(){return new l},e.exports=l},98990:function(e,t,i){var n=i(66023),o=i(3029),r=i(98763),a=i(74323),s=o.prototype,l=a.prototype,c=r.getPrecisionSafe,d=r.round,u=Math.floor,h=Math.ceil,p=Math.pow,f=Math.log,g=o.extend({type:"log",base:10,$constructor:function(){o.apply(this,arguments),this._originalScale=new a},getTicks:function(){var e=this._originalScale,t=this._extent,i=e.getExtent();return n.map(l.getTicks.call(this),function(n){var o=r.round(p(this.base,n));return o=n===t[0]&&e.__fixMin?d(o,c(i[0])):o,o=n===t[1]&&e.__fixMax?d(o,c(i[1])):o},this)},getLabel:l.getLabel,scale:function(e){return e=s.scale.call(this,e),p(this.base,e)},setExtent:function(e,t){var i=this.base;e=f(e)/f(i),t=f(t)/f(i),l.setExtent.call(this,e,t)},getExtent:function(){var e,t,i=this.base,n=s.getExtent.call(this);n[0]=p(i,n[0]),n[1]=p(i,n[1]);var o=this._originalScale,r=o.getExtent();return o.__fixMin&&(n[0]=(e=n[0],d(e,c(r[0])))),o.__fixMax&&(n[1]=(t=n[1],d(t,c(r[1])))),n},unionExtent:function(e){this._originalScale.unionExtent(e);var t=this.base;e[0]=f(e[0])/f(t),e[1]=f(e[1])/f(t),s.unionExtent.call(this,e)},unionExtentFromData:function(e,t){this.unionExtent(e.getApproximateExtent(t))},niceTicks:function(e){e=e||10;var t=this._extent,i=t[1]-t[0];if(i!==1/0&&!(i<=0)){var n=r.quantity(i);for(e/i*n<=.5&&(n*=10);!isNaN(n)&&1>Math.abs(n)&&Math.abs(n)>0;)n*=10;var o=[r.round(h(t[0]/n)*n),r.round(u(t[1]/n)*n)];this._interval=n,this._niceExtent=o}},niceExtent:function(e){l.niceExtent.call(this,e);var t=this._originalScale;t.__fixMin=e.fixMin,t.__fixMax=e.fixMax}});n.each(["contain","normalize"],function(e){g.prototype[e]=function(t){return t=f(t)/f(this.base),s[e].call(this,t)}}),g.create=function(){return new g},e.exports=g},78309:function(e,t,i){var n=i(66023),o=i(3029),r=i(5298),a=o.prototype,s=o.extend({type:"ordinal",init:function(e,t){(!e||n.isArray(e))&&(e=new r({categories:e})),this._ordinalMeta=e,this._extent=t||[0,e.categories.length-1]},parse:function(e){return"string"==typeof e?this._ordinalMeta.getOrdinal(e):Math.round(e)},contain:function(e){return e=this.parse(e),a.contain.call(this,e)&&null!=this._ordinalMeta.categories[e]},normalize:function(e){return a.normalize.call(this,this.parse(e))},scale:function(e){return Math.round(a.scale.call(this,e))},getTicks:function(){for(var e=[],t=this._extent,i=t[0];i<=t[1];)e.push(i),i++;return e},getLabel:function(e){if(!this.isBlank())return this._ordinalMeta.categories[e]},count:function(){return this._extent[1]-this._extent[0]+1},unionExtentFromData:function(e,t){this.unionExtent(e.getApproximateExtent(t))},getOrdinalMeta:function(){return this._ordinalMeta},niceTicks:n.noop,niceExtent:n.noop});s.create=function(){return new s},e.exports=s},3029:function(e,t,i){var n=i(51938);function o(e){this._setting=e||{},this._extent=[1/0,-1/0],this._interval=0,this.init&&this.init.apply(this,arguments)}o.prototype.parse=function(e){return e},o.prototype.getSetting=function(e){return this._setting[e]},o.prototype.contain=function(e){var t=this._extent;return e>=t[0]&&e<=t[1]},o.prototype.normalize=function(e){var t=this._extent;return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])},o.prototype.scale=function(e){var t=this._extent;return e*(t[1]-t[0])+t[0]},o.prototype.unionExtent=function(e){var t=this._extent;e[0]<t[0]&&(t[0]=e[0]),e[1]>t[1]&&(t[1]=e[1])},o.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},o.prototype.getExtent=function(){return this._extent.slice()},o.prototype.setExtent=function(e,t){var i=this._extent;isNaN(e)||(i[0]=e),isNaN(t)||(i[1]=t)},o.prototype.isBlank=function(){return this._isBlank},o.prototype.setBlank=function(e){this._isBlank=e},o.prototype.getLabel=null,n.enableClassExtend(o),n.enableClassManagement(o,{registerWhenExtend:!0}),e.exports=o},68494:function(e,t,i){var n=i(66023),o=i(98763),r=i(20438),a=i(32683),s=i(74323),l=s.prototype,c=Math.ceil,d=Math.floor,u=function(e,t,i,n){for(;i<n;){var o=i+n>>>1;e[o][1]<t?i=o+1:n=o}return i},h=s.extend({type:"time",getLabel:function(e){var t=this._stepLvl,i=new Date(e);return r.formatTime(t[0],i,this.getSetting("useUTC"))},niceExtent:function(e){var t=this._extent;if(t[0]===t[1]&&(t[0]-=864e5,t[1]+=864e5),t[1]===-1/0&&t[0]===1/0){var i=new Date;t[1]=+new Date(i.getFullYear(),i.getMonth(),i.getDate()),t[0]=t[1]-864e5}this.niceTicks(e.splitNumber,e.minInterval,e.maxInterval);var n=this._interval;e.fixMin||(t[0]=o.round(d(t[0]/n)*n)),e.fixMax||(t[1]=o.round(c(t[1]/n)*n))},niceTicks:function(e,t,i){e=e||10;var n=this._extent,r=n[1]-n[0],s=r/e;null!=t&&s<t&&(s=t),null!=i&&s>i&&(s=i);var l=p.length,h=u(p,s,0,l),f=p[Math.min(h,l-1)],g=f[1];if("year"===f[0]){var m=r/g;g*=o.nice(m/e,!0)}var v=this.getSetting("useUTC")?0:60*new Date(+n[0]||+n[1]).getTimezoneOffset()*1e3,b=[Math.round(c((n[0]-v)/g)*g+v),Math.round(d((n[1]-v)/g)*g+v)];a.fixExtent(b,n),this._stepLvl=f,this._interval=g,this._niceExtent=b},parse:function(e){return+o.parseDate(e)}});n.each(["contain","normalize"],function(e){h.prototype[e]=function(t){return l[e].call(this,this.parse(t))}});var p=[["hh:mm:ss",1e3],["hh:mm:ss",5e3],["hh:mm:ss",1e4],["hh:mm:ss",15e3],["hh:mm:ss",3e4],["hh:mm\nMM-dd",6e4],["hh:mm\nMM-dd",3e5],["hh:mm\nMM-dd",6e5],["hh:mm\nMM-dd",9e5],["hh:mm\nMM-dd",18e5],["hh:mm\nMM-dd",36e5],["hh:mm\nMM-dd",72e5],["hh:mm\nMM-dd",216e5],["hh:mm\nMM-dd",432e5],["MM-dd\nyyyy",864e5],["MM-dd\nyyyy",1728e5],["MM-dd\nyyyy",2592e5],["MM-dd\nyyyy",3456e5],["MM-dd\nyyyy",432e6],["MM-dd\nyyyy",5184e5],["week",6048e5],["MM-dd\nyyyy",864e6],["week",12096e5],["week",18144e5],["month",26784e5],["week",36288e5],["month",53568e5],["week",6048e6],["quarter",8208e6],["month",107136e5],["month",13392e6],["half-year",16416e6],["month",214272e5],["month",26784e6],["year",32832e6]];h.create=function(e){return new h({useUTC:e.ecModel.get("useUTC")})},e.exports=h},32683:function(e,t,i){var n=i(98763),o=n.round;function r(e){return n.getPrecisionSafe(e)+2}function a(e,t,i){e[t]=Math.max(Math.min(e[t],i[1]),i[0])}function s(e,t){isFinite(e[0])||(e[0]=t[0]),isFinite(e[1])||(e[1]=t[1]),a(e,0,t),a(e,1,t),e[0]>e[1]&&(e[0]=e[1])}t.intervalScaleNiceTicks=function(e,t,i,a){var l={},c=e[1]-e[0],d=l.interval=n.nice(c/t,!0);null!=i&&d<i&&(d=l.interval=i),null!=a&&d>a&&(d=l.interval=a);var u=l.intervalPrecision=r(d);return s(l.niceTickExtent=[o(Math.ceil(e[0]/d)*d,u),o(Math.floor(e[1]/d)*d,u)],e),l},t.getIntervalPrecision=r,t.fixExtent=s,t.intervalScaleGetTicks=function(e,t,i,n){var r=[];if(!e)return r;t[0]<i[0]&&r.push(t[0]);for(var a=i[0];a<=i[1]&&(r.push(a),(a=o(a+e,n))!==r[r.length-1]);)if(r.length>1e4)return[];return t[1]>(r.length?r[r.length-1]:i[1])&&r.push(t[1]),r}},5328:function(e,t,i){var n,o=i(66023),r=o.each,a=o.map,s=o.isFunction,l=o.createHashMap,c=o.noop,d=i(68940).createTask,u=i(79426).getUID,h=i(16438),p=i(13966),f=i(70018).normalizeToArray;function g(e,t,i,n){this.ecInstance=e,this.api=t,this.unfinished;var i=this._dataProcessorHandlers=i.slice(),n=this._visualHandlers=n.slice();this._allHandlers=i.concat(n),this._stageTaskMap=l()}var m=g.prototype;function v(e,t,i,n,o){var a;function s(e,t){return e.setDirty&&(!e.dirtyMap||e.dirtyMap.get(t.__pipeline.id))}o=o||{},r(t,function(t,r){if(!o.visualType||o.visualType===t.visualType){var l=e._stageTaskMap.get(t.uid),c=l.seriesTaskMap,d=l.overallTask;if(d){var u,h=d.agentStubMap;h.each(function(e){s(o,e)&&(e.dirty(),u=!0)}),u&&d.dirty(),b(d,n);var p=e.getPerformArgs(d,o.block);h.each(function(e){e.perform(p)}),a|=d.perform(p)}else c&&c.each(function(r,l){s(o,r)&&r.dirty();var c=e.getPerformArgs(r,o.block);c.skip=!t.performRawSeries&&i.isSeriesFiltered(r.context.model),b(r,n),a|=r.perform(c)})}}),e.unfinished|=a}m.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each(function(e){var t=e.overallTask;t&&t.dirty()})},m.getPerformArgs=function(e,t){if(e.__pipeline){var i=this._pipelineMap.get(e.__pipeline.id),n=i.context,o=!t&&i.progressiveEnabled&&(!n||n.progressiveRender)&&e.__idxInPipeline>i.blockIndex?i.step:null,r=n&&n.modDataCount,a=null!=r?Math.ceil(r/o):null;return{step:o,modBy:a,modDataCount:r}}},m.getPipeline=function(e){return this._pipelineMap.get(e)},m.updateStreamModes=function(e,t){var i=this._pipelineMap.get(e.uid),n=e.getData().count(),o=i.progressiveEnabled&&t.incrementalPrepareRender&&n>=i.threshold,r=e.get("large")&&n>=e.get("largeThreshold"),a="mod"===e.get("progressiveChunkMode")?n:null;e.pipelineContext=i.context={progressiveRender:o,modDataCount:a,large:r}},m.restorePipelines=function(e){var t=this,i=t._pipelineMap=l();e.eachSeries(function(e){var n=e.getProgressive(),o=e.uid;i.set(o,{id:o,head:null,tail:null,threshold:e.getProgressiveThreshold(),progressiveEnabled:n&&!(e.preventIncremental&&e.preventIncremental()),blockIndex:-1,step:Math.round(n||700),count:0}),T(t,e,e.dataTask)})},m.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.ecInstance.getModel(),i=this.api;r(this._allHandlers,function(n){var o=e.get(n.uid)||e.set(n.uid,[]);n.reset&&function(e,t,i,n,o){var r=i.seriesTaskMap||(i.seriesTaskMap=l()),a=t.seriesType,s=t.getTargetSeries;function c(i){var a=i.uid,s=r.get(a)||r.set(a,d({plan:S,reset:C,count:A}));s.context={model:i,ecModel:n,api:o,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:e},T(e,i,s)}t.createOnAllSeries?n.eachRawSeries(c):a?n.eachRawSeriesByType(a,c):s&&s(n,o).each(c);var u=e._pipelineMap;r.each(function(e,t){u.get(t)||(e.dispose(),r.removeKey(t))})}(this,n,o,t,i),n.overallReset&&function(e,t,i,n,o){var a=i.overallTask=i.overallTask||d({reset:y});a.context={ecModel:n,api:o,overallReset:t.overallReset,scheduler:e};var s=a.agentStubMap=a.agentStubMap||l(),c=t.seriesType,u=t.getTargetSeries,h=!0,p=t.modifyOutputEnd;function f(t){var i=t.uid,n=s.get(i);n||(n=s.set(i,d({reset:w,onDirty:x})),a.dirty()),n.context={model:t,overallProgress:h,modifyOutputEnd:p},n.agent=a,n.__block=h,T(e,t,n)}c?n.eachRawSeriesByType(c,f):u?u(n,o).each(f):(h=!1,r(n.getSeries(),f));var g=e._pipelineMap;s.each(function(e,t){g.get(t)||(e.dispose(),a.dirty(),s.removeKey(t))})}(this,n,o,t,i)},this)},m.prepareView=function(e,t,i,n){var o=e.renderTask,r=o.context;r.model=t,r.ecModel=i,r.api=n,o.__block=!e.incrementalPrepareRender,T(this,t,o)},m.performDataProcessorTasks=function(e,t){v(this,this._dataProcessorHandlers,e,t,{block:!0})},m.performVisualTasks=function(e,t,i){v(this,this._visualHandlers,e,t,i)},m.performSeriesTasks=function(e){var t;e.eachSeries(function(e){t|=e.dataTask.perform()}),this.unfinished|=t},m.plan=function(){this._pipelineMap.each(function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)})};var b=m.updatePayload=function(e,t){"remain"!==t&&(e.context.payload=t)};function y(e){e.overallReset(e.ecModel,e.api,e.payload)}function w(e,t){return e.overallProgress&&_}function _(){this.agent.dirty(),this.getDownstream().dirty()}function x(){this.agent&&this.agent.dirty()}function S(e){return e.plan&&e.plan(e.model,e.ecModel,e.api,e.payload)}function C(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=f(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?a(t,function(e,t){return I(t)}):k}var k=I(0);function I(e){return function(t,i){var n=i.data,o=i.resetDefines[e];if(o&&o.dataEach)for(var r=t.start;r<t.end;r++)o.dataEach(n,r);else o&&o.progress&&o.progress(t,n)}}function A(e){return e.data.count()}function T(e,t,i){var n=t.uid,o=e._pipelineMap.get(n);o.head||(o.head=i),o.tail&&o.tail.pipe(i),o.tail=i,i.__idxInPipeline=o.count++,i.__pipeline=o}g.wrapStageHandler=function(e,t){return s(e)&&(e={overallReset:e,seriesType:function(e){n=null;try{e(E,R)}catch(e){}return n}(e)}),e.uid=u("stageHandler"),t&&(e.visualType=t),e};var E={},R={};function D(e,t){for(var i in t.prototype)e[i]=c}D(E,h),D(R,p),E.eachSeriesByType=E.eachRawSeriesByType=function(e){n=e},E.eachComponent=function(e){"series"===e.mainType&&e.subType&&(n=e.subType)},e.exports=g},68940:function(e,t,i){var n=i(66023);n.assert;var o=n.isArray;function r(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0,this.context}i(38603).__DEV__;var a=r.prototype;a.perform=function(e){var t,i,n,r,a,s,c,d,u,h=this._upstream,p=e&&e.skip;if(this._dirty&&h){var f=this.context;f.data=f.outputData=h.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!p&&(d=this._plan(this.context));var g=((t=this._modBy)>=1||(t=1),t),m=this._modDataCount||0,v=((i=e&&e.modBy)>=1||(i=1),i),b=e&&e.modDataCount||0;(g!==v||m!==b)&&(d="reset"),(this._dirty||"reset"===d)&&(this._dirty=!1,n=this,r=p,n._dueIndex=n._outputDueEnd=n._dueEnd=0,n._settedOutputEnd=null,!r&&n._reset&&((a=n._reset(n.context))&&a.progress&&(s=a.forceFirstProgress,a=a.progress),o(a)&&!a.length&&(a=null)),n._progress=a,n._modBy=n._modDataCount=null,(c=n._downstream)&&c.dirty(),u=s),this._modBy=v,this._modDataCount=b;var y=e&&e.step;if(h?this._dueEnd=h._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var w=this._dueIndex,_=Math.min(null!=y?this._dueIndex+y:1/0,this._dueEnd);if(!p&&(u||w<_)){var x=this._progress;if(o(x))for(var S=0;S<x.length;S++)l(this,x[S],w,_,v,b);else l(this,x,w,_,v,b)}this._dueIndex=_;var C=null!=this._settedOutputEnd?this._settedOutputEnd:_;this._outputDueEnd=C}else this._dueIndex=this._outputDueEnd=null!=this._settedOutputEnd?this._settedOutputEnd:this._dueEnd;return this.unfinished()};var s=function(){var e,t,i,n,o,r={reset:function(l,c,d,u){t=l,e=c,i=d,o=Math.ceil((n=u)/i),r.next=i>1&&n>0?s:a}};return r;function a(){return t<e?t++:null}function s(){var r=t%o*i+Math.ceil(t/o),a=t>=e?null:r<n?r:t;return t++,a}}();function l(e,t,i,n,o,r){s.reset(i,n,o,r),e._callingProgress=t,e._callingProgress({start:i,end:n,count:n-i,next:s.next},e.context)}a.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},a.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},a.pipe=function(e){(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.dirty())},a.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},a.getUpstream=function(){return this._upstream},a.getDownstream=function(){return this._downstream},a.setOutputEnd=function(e){this._outputDueEnd=this._settedOutputEnd=e},t.createTask=function(e){return new r(e)}},78956:function(e){var t="#eee",i=function(){return{axisLine:{lineStyle:{color:t}},axisTick:{lineStyle:{color:t}},axisLabel:{textStyle:{color:t}},splitLine:{lineStyle:{type:"dashed",color:"#aaa"}},splitArea:{areaStyle:{color:t}}}},n=["#dd6b66","#759aa0","#e69d87","#8dc1a9","#ea7e53","#eedd78","#73a373","#73b9bc","#7289ab","#91ca8c","#f49f42"],o={color:n,backgroundColor:"#333",tooltip:{axisPointer:{lineStyle:{color:t},crossStyle:{color:t}}},legend:{textStyle:{color:t}},textStyle:{color:t},title:{textStyle:{color:t}},toolbox:{iconStyle:{normal:{borderColor:t}}},dataZoom:{textStyle:{color:t}},visualMap:{textStyle:{color:t}},timeline:{lineStyle:{color:t},itemStyle:{normal:{color:n[1]}},label:{normal:{textStyle:{color:t}}},controlStyle:{normal:{color:t,borderColor:t}}},timeAxis:i(),logAxis:i(),valueAxis:i(),categoryAxis:i(),line:{symbol:"circle"},graph:{color:n},gauge:{title:{textStyle:{color:t}}},candlestick:{itemStyle:{normal:{color:"#FD1050",color0:"#0CF49B",borderColor:"#FD1050",borderColor0:"#0CF49B"}}}};o.categoryAxis.splitLine.show=!1,e.exports=o},58650:function(e){var t=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];e.exports={color:t,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],t]}},45617:function(e,t,i){var n=i(66023);t.createWrap=function(){var e,t=[],i={};return{add:function(e,o,r,a,s){return n.isString(a)&&(s=a,a=0),!i[e.id]&&(i[e.id]=1,t.push({el:e,target:o,time:r,delay:a,easing:s}),!0)},done:function(t){return e=t,this},start:function(){for(var n=t.length,o=0,r=t.length;o<r;o++){var a=t[o];a.el.animateTo(a.target,a.time,a.delay,a.easing,s)}return this;function s(){--n||(t.length=0,i={},e&&e())}}}}},51938:function(e,t,i){i(38603).__DEV__;var n=i(66023),o="___EC__COMPONENT__CONTAINER___";function r(e){var t={main:"",sub:""};return e&&(t.main=(e=e.split("."))[0]||"",t.sub=e[1]||""),t}var a=0;function s(e,t){var i=n.slice(arguments,2);return this.superClass.prototype[t].apply(e,i)}function l(e,t,i){return this.superClass.prototype[t].apply(e,i)}t.parseClassType=r,t.enableClassExtend=function(e,t){e.$constructor=e,e.extend=function(e){var t=this,i=function(){e.$constructor?e.$constructor.apply(this,arguments):t.apply(this,arguments)};return n.extend(i.prototype,e),i.extend=this.extend,i.superCall=s,i.superApply=l,n.inherits(i,this),i.superClass=t,i}},t.enableClassCheck=function(e){var t=["__\0is_clz",a++,Math.random().toFixed(3)].join("_");e.prototype[t]=!0,e.isInstance=function(e){return!!(e&&e[t])}},t.enableClassManagement=function(e,t){t=t||{};var i={};if(e.registerClass=function(e,t){if(t){var a,s,l;a=t,n.assert(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(a),'componentType "'+a+'" illegal'),(t=r(t)).sub?t.sub!==o&&(((l=i[(s=t).main])&&l[o]||((l=i[s.main]={})[o]=!0),l)[t.sub]=e):i[t.main]=e}return e},e.getClass=function(e,t,n){var r=i[e];if(r&&r[o]&&(r=t?r[t]:null),n&&!r)throw Error(t?"Component "+e+"."+(t||"")+" not exists. Load it first.":e+".type should be specified.");return r},e.getClassesByMainType=function(e){e=r(e);var t=[],a=i[e.main];return a&&a[o]?n.each(a,function(e,i){i!==o&&t.push(e)}):t.push(a),t},e.hasClass=function(e){return!!i[(e=r(e)).main]},e.getAllClassMainTypes=function(){var e=[];return n.each(i,function(t,i){e.push(i)}),e},e.hasSubTypes=function(e){var t=i[(e=r(e)).main];return t&&t[o]},e.parseClassType=r,t.registerWhenExtend){var a=e.extend;a&&(e.extend=function(t){var i=a.call(this,t);return e.registerClass(i,t.type)})}return e},t.setReadOnly=function(e,t){}},79426:function(e,t,i){var n=i(66023),o=i(51938).parseClassType,r=0;t.getUID=function(e){return[e||"",r++,Math.random().toFixed(5)].join("_")},t.enableSubTypeDefaulter=function(e){var t={};return e.registerSubTypeDefaulter=function(e,i){t[(e=o(e)).main]=i},e.determineSubType=function(i,n){var r=n.type;if(!r){var a=o(i).main;e.hasSubTypes(i)&&t[a]&&(r=t[a](n))}return r},e},t.enableTopologicalTravel=function(e,t){e.topologicalTravel=function(e,o,r,a){if(e.length){var s,l,c,d=(s=o,l={},c=[],n.each(s,function(e){var o,r,a,d=i(l,e),u=(o=d.originalDeps=t(e),r=s,a=[],n.each(o,function(e){n.indexOf(r,e)>=0&&a.push(e)}),a);d.entryCount=u.length,0===d.entryCount&&c.push(e),n.each(u,function(t){0>n.indexOf(d.predecessor,t)&&d.predecessor.push(t);var o=i(l,t);0>n.indexOf(o.successor,t)&&o.successor.push(e)})}),{graph:l,noEntryList:c}),u=d.graph,h=d.noEntryList,p={};for(n.each(e,function(e){p[e]=!0});h.length;){var f=h.pop(),g=u[f],m=!!p[f];m&&(r.call(a,f,g.originalDeps.slice()),delete p[f]),n.each(g.successor,m?b:v)}n.each(p,function(){throw Error("Circle dependency may exists")})}function v(e){u[e].entryCount--,0===u[e].entryCount&&h.push(e)}function b(e){p[e]=!0,v(e)}};function i(e,t){return e[t]||(e[t]={predecessor:[],successor:[]}),e[t]}}},20438:function(e,t,i){var n=i(66023),o=i(99280),r=i(98763),a=n.normalizeCssArray,s=/([&<>"'])/g,l={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function c(e){return null==e?"":(e+"").replace(s,function(e,t){return l[t]})}var d=["a","b","c","d","e","f","g"],u=function(e,t){return"{"+e+(null==t?"":t)+"}"};function h(e,t){return e+="","0000".substr(0,t-e.length)+e}var p=o.truncateText;t.addCommas=function(e){return isNaN(e)?"-":(e=(e+"").split("."))[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")},t.toCamelCase=function(e,t){return e=(e||"").toLowerCase().replace(/-(.)/g,function(e,t){return t.toUpperCase()}),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e},t.normalizeCssArray=a,t.encodeHTML=c,t.formatTpl=function(e,t,i){n.isArray(t)||(t=[t]);var o=t.length;if(!o)return"";for(var r=t[0].$vars||[],a=0;a<r.length;a++){var s=d[a];e=e.replace(u(s),u(s,0))}for(var l=0;l<o;l++)for(var h=0;h<r.length;h++){var p=t[l][r[h]];e=e.replace(u(d[h],l),i?c(p):p)}return e},t.formatTplSimple=function(e,t,i){return n.each(t,function(t,n){e=e.replace("{"+n+"}",i?c(t):t)}),e},t.getTooltipMarker=function(e,t){var i=(e=n.isString(e)?{color:e,extraCssText:t}:e||{}).color,o=e.type,t=e.extraCssText,r=e.renderMode||"html",a=e.markerId||"X";return i?"html"===r?"subItem"===o?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+c(i)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:5px;border-radius:10px;width:10px;height:10px;background-color:'+c(i)+";"+(t||"")+'"></span>':{renderMode:r,content:"{marker"+a+"|}  ",style:{color:i}}:""},t.formatTime=function(e,t,i){("week"===e||"month"===e||"quarter"===e||"half-year"===e||"year"===e)&&(e="MM-dd\nyyyy");var n=r.parseDate(t),o=i?"UTC":"",a=n["get"+o+"FullYear"](),s=n["get"+o+"Month"]()+1,l=n["get"+o+"Date"](),c=n["get"+o+"Hours"](),d=n["get"+o+"Minutes"](),u=n["get"+o+"Seconds"](),p=n["get"+o+"Milliseconds"]();return e=e.replace("MM",h(s,2)).replace("M",s).replace("yyyy",a).replace("yy",a%100).replace("dd",h(l,2)).replace("d",l).replace("hh",h(c,2)).replace("h",c).replace("mm",h(d,2)).replace("m",d).replace("ss",h(u,2)).replace("s",u).replace("SSS",h(p,3))},t.capitalFirst=function(e){return e?e.charAt(0).toUpperCase()+e.substr(1):e},t.truncateText=p,t.getTextBoundingRect=function(e){return o.getBoundingRect(e.text,e.font,e.textAlign,e.textVerticalAlign,e.textPadding,e.textLineHeight,e.rich,e.truncate)},t.getTextRect=function(e,t,i,n,r,a,s,l){return o.getBoundingRect(e,t,i,n,r,l,a,s)}},76165:function(e,t,i){var n=i(66023),o=i(86022),r=i(53453),a=i(36653),s=i(3265),l=i(87205),c=i(53733),d=i(52728);t.Image=d,t.Group=i(35601),t.Text=i(77894),t.Circle=i(38035),t.Sector=i(10631),t.Ring=i(6609),t.Polygon=i(11960),t.Polyline=i(35243),t.Rect=i(54668),t.Line=i(52949),t.BezierCurve=i(27209),t.Arc=i(26072),t.CompoundPath=i(93549),t.LinearGradient=i(53429),t.RadialGradient=i(6963),t.BoundingRect=i(71497),t.IncrementalDisplayable=i(55117);var u=Math.round,h=Math.max,p=Math.min,f={};function g(e,t,i,n){var r=o.createFromString(e,t);return i&&("center"===n&&(i=m(i,r.getBoundingRect())),b(r,i)),r}function m(e,t){var i,n=t.width/t.height,o=e.height*n;return i=o<=e.width?e.height:(o=e.width)/n,{x:e.x+e.width/2-o/2,y:e.y+e.height/2-i/2,width:o,height:i}}var v=o.mergePath;function b(e,t){if(e.applyTransform){var i=e.getBoundingRect().calculateTransform(t);e.applyTransform(i)}}function y(e,t,i){var n=u(2*e);return(n+u(t))%2==0?n/2:(n+(i?1:-1))/2}function w(e){return null!=e&&"none"!==e}var _=n.createHashMap(),x=0;function S(e){var t=e.__hoverStl;if(t&&!e.__highlighted){var i=e.useHoverLayer;e.__highlighted=i?"layer":"plain";var n=e.__zr;if(n||!i){var o=e,r=e.style;i&&(r=(o=n.addHover(e)).style),F(r),i||function(e){if(e.__hoverStlDirty){e.__hoverStlDirty=!1;var t=e.__hoverStl;if(!t){e.__cachedNormalStl=e.__cachedNormalZ2=null;return}var i=e.__cachedNormalStl={};e.__cachedNormalZ2=e.z2;var n=e.style;for(var o in t)null!=t[o]&&(i[o]=n[o]);i.fill=n.fill,i.stroke=n.stroke}}(o),r.extendFrom(t),C(r,t,"fill"),C(r,t,"stroke"),B(r),i||(e.dirty(!1),e.z2+=1)}}}function C(e,t,i){!w(t[i])&&w(e[i])&&(e[i]=function(e){if("string"!=typeof e)return e;var t=_.get(e);return!t&&(t=r.lift(e,-.1),x<1e4&&(_.set(e,t),x++)),t}(e[i]))}function k(e){var t=e.__highlighted;if(t){if(e.__highlighted=!1,"layer"===t)e.__zr&&e.__zr.removeHover(e);else if(t){var i=e.style,n=e.__cachedNormalStl;n&&(F(i),e.setStyle(n),B(i));var o=e.__cachedNormalZ2;null!=o&&e.z2-o==1&&(e.z2=o)}}}function I(e,t){e.isGroup?e.traverse(function(e){e.isGroup||t(e)}):t(e)}function A(e,t){t=e.__hoverStl=!1!==t&&(t||{}),e.__hoverStlDirty=!0,e.__highlighted&&(e.__cachedNormalStl=null,k(e),S(e))}function T(e){this.__hoverSilentOnTouch&&e.zrByTouch||this.__isEmphasisEntered||I(this,S)}function E(e){this.__hoverSilentOnTouch&&e.zrByTouch||this.__isEmphasisEntered||I(this,k)}function R(){this.__isEmphasisEntered=!0,I(this,S)}function D(){this.__isEmphasisEntered=!1,I(this,k)}function O(e,t){var i=!1===t;if(e.__hoverSilentOnTouch=null!=t&&t.hoverSilentOnTouch,!i||e.__hoverStyleTrigger){var n=i?"off":"on";e[n]("mouseover",T)[n]("mouseout",E),e[n]("emphasis",R)[n]("normal",D),e.__hoverStyleTrigger=!i}}function M(e,t,i,o,r){return N(e,t,o,r),i&&n.extend(e,i),e}function N(e,t,i,o){if((i=i||f).isRectText){var r,a=t.getShallow("position")||(o?null:"inside");"outside"===a&&(a="top"),e.textPosition=a,e.textOffset=t.getShallow("offset");var s=t.getShallow("rotate");null!=s&&(s*=Math.PI/180),e.textRotation=s,e.textDistance=n.retrieve2(t.getShallow("distance"),o?null:5)}var l=t.ecModel,c=l&&l.option.textStyle,d=function(e){for(var t;e&&e!==e.ecModel;){var i=(e.option||f).rich;if(i)for(var n in t=t||{},i)i.hasOwnProperty(n)&&(t[n]=1);e=e.parentModel}return t}(t);if(d){for(var u in r={},d)if(d.hasOwnProperty(u)){var h=t.getModel(["rich",u]);P(r[u]={},h,c,i,o)}}return e.rich=r,P(e,t,c,i,o,!0),i.forceRich&&!i.textStyle&&(i.textStyle={}),e}function P(e,t,i,o,r,a){i=!r&&i||f,e.textFill=L(t.getShallow("color"),o)||i.color,e.textStroke=L(t.getShallow("textBorderColor"),o)||i.textBorderColor,e.textStrokeWidth=n.retrieve2(t.getShallow("textBorderWidth"),i.textBorderWidth),e.insideRawTextPosition=e.textPosition,r||(a&&(e.insideRollbackOpt=o,B(e)),null==e.textFill&&(e.textFill=o.autoColor)),e.fontStyle=t.getShallow("fontStyle")||i.fontStyle,e.fontWeight=t.getShallow("fontWeight")||i.fontWeight,e.fontSize=t.getShallow("fontSize")||i.fontSize,e.fontFamily=t.getShallow("fontFamily")||i.fontFamily,e.textAlign=t.getShallow("align"),e.textVerticalAlign=t.getShallow("verticalAlign")||t.getShallow("baseline"),e.textLineHeight=t.getShallow("lineHeight"),e.textWidth=t.getShallow("width"),e.textHeight=t.getShallow("height"),e.textTag=t.getShallow("tag"),a&&o.disableBox||(e.textBackgroundColor=L(t.getShallow("backgroundColor"),o),e.textPadding=t.getShallow("padding"),e.textBorderColor=L(t.getShallow("borderColor"),o),e.textBorderWidth=t.getShallow("borderWidth"),e.textBorderRadius=t.getShallow("borderRadius"),e.textBoxShadowColor=t.getShallow("shadowColor"),e.textBoxShadowBlur=t.getShallow("shadowBlur"),e.textBoxShadowOffsetX=t.getShallow("shadowOffsetX"),e.textBoxShadowOffsetY=t.getShallow("shadowOffsetY")),e.textShadowColor=t.getShallow("textShadowColor")||i.textShadowColor,e.textShadowBlur=t.getShallow("textShadowBlur")||i.textShadowBlur,e.textShadowOffsetX=t.getShallow("textShadowOffsetX")||i.textShadowOffsetX,e.textShadowOffsetY=t.getShallow("textShadowOffsetY")||i.textShadowOffsetY}function L(e,t){return"auto"!==e?e:t&&t.autoColor?t.autoColor:null}function B(e){var t,i=e.insideRollbackOpt;if(i&&null==e.textFill){var n=i.useInsideStyle,o=e.insideRawTextPosition,r=i.autoColor;!1!==n&&(!0===n||i.isRectText&&o&&"string"==typeof o&&o.indexOf("inside")>=0)?(t={textFill:null,textStroke:e.textStroke,textStrokeWidth:e.textStrokeWidth},e.textFill="#fff",null==e.textStroke&&(e.textStroke=r,null==e.textStrokeWidth&&(e.textStrokeWidth=2))):null!=r&&(t={textFill:null},e.textFill=r),t&&(e.insideRollback=t)}}function F(e){var t=e.insideRollback;t&&(e.textFill=t.textFill,e.textStroke=t.textStroke,e.textStrokeWidth=t.textStrokeWidth,e.insideRollback=null)}function V(e,t,i,n,o,r){if("function"==typeof o&&(r=o,o=null),n&&n.isAnimationEnabled()){var a=e?"Update":"",s=n.getShallow("animationDuration"+a),l=n.getShallow("animationEasing"+a),c=n.getShallow("animationDelay"+a);"function"==typeof c&&(c=c(o,n.getAnimationDelayParams?n.getAnimationDelayParams(t,o):null)),"function"==typeof s&&(s=s(o)),s>0?t.animateTo(i,s,c||0,l,r,!!r):(t.stopAnimation(),t.attr(i),r&&r())}else t.stopAnimation(),t.attr(i),r&&r()}function z(e,t,i,n,o){V(!0,e,t,i,n,o)}function H(e,t,i){return t&&!n.isArrayLike(t)&&(t=c.getLocalTransform(t)),i&&(t=a.invert([],t)),s.applyTransform([],e,t)}t.Z2_EMPHASIS_LIFT=1,t.extendShape=function(e){return l.extend(e)},t.extendPath=function(e,t){return o.extendFromString(e,t)},t.makePath=g,t.makeImage=function(e,t,i){var n=new d({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(e){if("center"===i){var o={width:e.width,height:e.height};n.setStyle(m(t,o))}}});return n},t.mergePath=v,t.resizePath=b,t.subPixelOptimizeLine=function(e){var t=e.shape,i=e.style.lineWidth;return u(2*t.x1)===u(2*t.x2)&&(t.x1=t.x2=y(t.x1,i,!0)),u(2*t.y1)===u(2*t.y2)&&(t.y1=t.y2=y(t.y1,i,!0)),e},t.subPixelOptimizeRect=function(e){var t=e.shape,i=e.style.lineWidth,n=t.x,o=t.y,r=t.width,a=t.height;return t.x=y(t.x,i,!0),t.y=y(t.y,i,!0),t.width=Math.max(y(n+r,i,!1)-t.x,+(0!==r)),t.height=Math.max(y(o+a,i,!1)-t.y,+(0!==a)),e},t.subPixelOptimize=y,t.setElementHoverStyle=A,t.isInEmphasis=function(e){return e&&e.__isEmphasisEntered},t.setHoverStyle=function(e,t,i){e.isGroup?e.traverse(function(e){e.isGroup||A(e,e.hoverStyle||t)}):A(e,e.hoverStyle||t),O(e,i)},t.setAsHoverStyleTrigger=O,t.setLabelStyle=function(e,t,i,o,r,a,s){var l,c=(r=r||f).labelFetcher,d=r.labelDataIndex,u=r.labelDimIndex,h=i.getShallow("show"),p=o.getShallow("show");(h||p)&&(c&&(l=c.getFormattedLabel(d,"normal",null,u)),null==l&&(l=n.isFunction(r.defaultText)?r.defaultText(d,r):r.defaultText));var g=h?l:null,m=p?n.retrieve2(c?c.getFormattedLabel(d,"emphasis",null,u):null,l):null;(null!=g||null!=m)&&(M(e,i,a,r),M(t,o,s,r,!0)),e.text=g,t.text=m},t.setTextStyle=M,t.setText=function(e,t,i){var n,o={isRectText:!0};!1===i?n=!0:o.autoColor=i,N(e,t,o,n)},t.getFont=function(e,t){var i=t||t.getModel("textStyle");return n.trim([e.fontStyle||i&&i.getShallow("fontStyle")||"",e.fontWeight||i&&i.getShallow("fontWeight")||"",(e.fontSize||i&&i.getShallow("fontSize")||12)+"px",e.fontFamily||i&&i.getShallow("fontFamily")||"sans-serif"].join(" "))},t.updateProps=z,t.initProps=function(e,t,i,n,o){V(!1,e,t,i,n,o)},t.getTransform=function(e,t){for(var i=a.identity([]);e&&e!==t;)a.mul(i,e.getLocalTransform(),i),e=e.parent;return i},t.applyTransform=H,t.transformDirection=function(e,t,i){var n=0===t[4]||0===t[5]||0===t[0]?1:Math.abs(2*t[4]/t[0]),o=0===t[4]||0===t[5]||0===t[2]?1:Math.abs(2*t[4]/t[2]),r=["left"===e?-n:"right"===e?n:0,"top"===e?-o:"bottom"===e?o:0];return Math.abs((r=H(r,t,i))[0])>Math.abs(r[1])?r[0]>0?"right":"left":r[1]>0?"bottom":"top"},t.groupTransition=function(e,t,i,o){if(e&&t){var r,a=(r={},e.traverse(function(e){!e.isGroup&&e.anid&&(r[e.anid]=e)}),r);t.traverse(function(e){if(!e.isGroup&&e.anid){var t=a[e.anid];if(t){var n=l(e);e.attr(l(t)),z(e,n,i,e.dataIndex)}}})}function l(e){var t={position:s.clone(e.position),rotation:e.rotation};return e.shape&&(t.shape=n.extend({},e.shape)),t}},t.clipPointsByRect=function(e,t){return n.map(e,function(e){var i=e[0];i=p(i=h(i,t.x),t.x+t.width);var n=e[1];return[i,n=p(n=h(n,t.y),t.y+t.height)]})},t.clipRectByRect=function(e,t){var i=h(e.x,t.x),n=p(e.x+e.width,t.x+t.width),o=h(e.y,t.y),r=p(e.y+e.height,t.y+t.height);if(n>=i&&r>=o)return{x:i,y:o,width:n-i,height:r-o}},t.createIcon=function(e,t,i){var o=(t=n.extend({rectHover:!0},t)).style={strokeNoScale:!0};if(i=i||{x:-1,y:-1,width:2,height:2},e)return 0===e.indexOf("image://")?(o.image=e.slice(8),n.defaults(o,i),new d(t)):g(e.replace("path://",""),t,i,"center")}},68006:function(e,t,i){var n=i(66023),o=i(71497),r=i(98763).parsePercent,a=i(20438),s=n.each,l=["left","right","top","bottom","width","height"],c=[["width","left","right"],["height","top","bottom"]];function d(e,t,i,n,o){var r=0,a=0;null==n&&(n=1/0),null==o&&(o=1/0);var s=0;t.eachChild(function(l,c){var d,u,h=l.position,p=l.getBoundingRect(),f=t.childAt(c+1),g=f&&f.getBoundingRect();if("horizontal"===e){var m=p.width+(g?-g.x+p.x:0);(d=r+m)>n||l.newline?(r=0,d=m,a+=s+i,s=p.height):s=Math.max(s,p.height)}else{var v=p.height+(g?-g.y+p.y:0);(u=a+v)>o||l.newline?(r+=s+i,a=0,u=v,s=p.width):s=Math.max(s,p.width)}l.newline||(h[0]=r,h[1]=a,"horizontal"===e?r=d+i:a=u+i)})}var u=n.curry(d,"vertical"),h=n.curry(d,"horizontal");function p(e,t,i){i=a.normalizeCssArray(i||0);var n=t.width,s=t.height,l=r(e.left,n),c=r(e.top,s),d=r(e.right,n),u=r(e.bottom,s),h=r(e.width,n),p=r(e.height,s),f=i[2]+i[0],g=i[1]+i[3],m=e.aspect;switch(isNaN(h)&&(h=n-d-g-l),isNaN(p)&&(p=s-u-f-c),null!=m&&(isNaN(h)&&isNaN(p)&&(m>n/s?h=.8*n:p=.8*s),isNaN(h)&&(h=m*p),isNaN(p)&&(p=h/m)),isNaN(l)&&(l=n-d-h-g),isNaN(c)&&(c=s-u-p-f),e.left||e.right){case"center":l=n/2-h/2-i[3];break;case"right":l=n-h-g}switch(e.top||e.bottom){case"middle":case"center":c=s/2-p/2-i[0];break;case"bottom":c=s-p-f}l=l||0,c=c||0,isNaN(h)&&(h=n-g-l-(d||0)),isNaN(p)&&(p=s-f-c-(u||0));var v=new o(l+i[3],c+i[0],h,p);return v.margin=i,v}function f(e,t){return t&&e&&s(l,function(i){t.hasOwnProperty(i)&&(e[i]=t[i])}),e}t.LOCATION_PARAMS=l,t.HV_NAMES=c,t.box=d,t.vbox=u,t.hbox=h,t.getAvailableSize=function(e,t,i){var n=t.width,o=t.height,s=r(e.x,n),l=r(e.y,o),c=r(e.x2,n),d=r(e.y2,o);return(isNaN(s)||isNaN(parseFloat(e.x)))&&(s=0),(isNaN(c)||isNaN(parseFloat(e.x2)))&&(c=n),(isNaN(l)||isNaN(parseFloat(e.y)))&&(l=0),(isNaN(d)||isNaN(parseFloat(e.y2)))&&(d=o),{width:Math.max(c-s-(i=a.normalizeCssArray(i||0))[1]-i[3],0),height:Math.max(d-l-i[0]-i[2],0)}},t.getLayoutRect=p,t.positionElement=function(e,t,i,r,a){var s,l=!a||!a.hv||a.hv[0],c=!a||!a.hv||a.hv[1],d=a&&a.boundingMode||"all";if(l||c){if("raw"===d)s="group"===e.type?new o(0,0,+t.width||0,+t.height||0):e.getBoundingRect();else if(s=e.getBoundingRect(),e.needLocalTransform()){var u=e.getLocalTransform();(s=s.clone()).applyTransform(u)}t=p(n.defaults({width:s.width,height:s.height},t),i,r);var h=e.position,f=l?t.x-s.x:0,g=c?t.y-s.y:0;e.attr("position","raw"===d?[f,g]:[h[0]+f,h[1]+g])}},t.sizeCalculable=function(e,t){return null!=e[c[t][0]]||null!=e[c[t][1]]&&null!=e[c[t][2]]},t.mergeLayoutParam=function(e,t,i){n.isObject(i)||(i={});var o=i.ignoreSize;n.isArray(o)||(o=[o,o]);var r=l(c[0],0),a=l(c[1],1);function l(i,n){var r={},a=0,l={},c=0;if(s(i,function(t){l[t]=e[t]}),s(i,function(e){d(t,e)&&(r[e]=l[e]=t[e]),u(r,e)&&a++,u(l,e)&&c++}),o[n])return u(t,i[1])?l[i[2]]=null:u(t,i[2])&&(l[i[1]]=null),l;if(2===c||!a)return l;if(a>=2)return r;for(var h=0;h<i.length;h++){var p=i[h];if(!d(r,p)&&d(e,p)){r[p]=e[p];break}}return r}function d(e,t){return e.hasOwnProperty(t)}function u(e,t){return null!=e[t]&&"auto"!==e[t]}function h(e,t,i){s(e,function(e){t[e]=i[e]})}h(c[0],e,r),h(c[1],e,a)},t.getLayoutParams=function(e){return f({},e)},t.copyLayoutParams=f},70018:function(e,t,i){var n=i(66023),o=i(57674),r=n.each,a=n.isObject,s=n.isArray,l="series\0";function c(e){return e instanceof Array?e:null==e?[]:[e]}function d(e){return a(e)&&e.id&&0===(e.id+"").indexOf("\0_ec_\0")}var u=0;function h(e,t){return e&&e.hasOwnProperty(t)}t.normalizeToArray=c,t.defaultEmphasis=function(e,t,i){if(e){e[t]=e[t]||{},e.emphasis=e.emphasis||{},e.emphasis[t]=e.emphasis[t]||{};for(var n=0,o=i.length;n<o;n++){var r=i[n];!e.emphasis[t].hasOwnProperty(r)&&e[t].hasOwnProperty(r)&&(e.emphasis[t][r]=e[t][r])}}},t.TEXT_STYLE_OPTIONS=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"],t.getDataItemValue=function(e){return!a(e)||s(e)||e instanceof Date?e:e.value},t.isDataItemOption=function(e){return a(e)&&!(e instanceof Array)},t.mappingToExists=function(e,t){t=(t||[]).slice();var i=n.map(e||[],function(e,t){return{exist:e}});return r(t,function(e,n){if(a(e)){for(var o=0;o<i.length;o++)if(!i[o].option&&null!=e.id&&i[o].exist.id===e.id+""){i[o].option=e,t[n]=null;return}for(var o=0;o<i.length;o++){var r=i[o].exist;if(!i[o].option&&(null==r.id||null==e.id)&&null!=e.name&&!d(e)&&!d(r)&&r.name===e.name+""){i[o].option=e,t[n]=null;return}}}}),r(t,function(e,t){if(a(e)){for(var n=0;n<i.length;n++){var o=i[n].exist;if(!i[n].option&&!d(o)&&null==e.id){i[n].option=e;break}}n>=i.length&&i.push({option:e})}}),i},t.makeIdAndName=function(e){var t=n.createHashMap();r(e,function(e,i){var n=e.exist;n&&t.set(n.id,e)}),r(e,function(e,i){var o=e.option;n.assert(!o||null==o.id||!t.get(o.id)||t.get(o.id)===e,"id duplicates: "+(o&&o.id)),o&&null!=o.id&&t.set(o.id,e),e.keyInfo||(e.keyInfo={})}),r(e,function(e,i){var n=e.exist,o=e.option,r=e.keyInfo;if(a(o)){if(r.name=null!=o.name?o.name+"":n?n.name:l+i,n)r.id=n.id;else if(null!=o.id)r.id=o.id+"";else{var s=0;do r.id="\0"+r.name+"\0"+s++;while(t.get(r.id))}t.set(r.id,e)}})},t.isNameSpecified=function(e){var t=e.name;return!!(t&&t.indexOf(l))},t.isIdInner=d,t.compressBatches=function(e,t){var i={},n={};return o(e||[],i),o(t||[],n,i),[r(i),r(n)];function o(e,t,i){for(var n=0,o=e.length;n<o;n++)for(var r=e[n].seriesId,a=c(e[n].dataIndex),s=i&&i[r],l=0,d=a.length;l<d;l++){var u=a[l];s&&s[u]?s[u]=null:(t[r]||(t[r]={}))[u]=1}}function r(e,t){var i=[];for(var n in e)if(e.hasOwnProperty(n)&&null!=e[n])if(t)i.push(+n);else{var o=r(e[n],!0);o.length&&i.push({seriesId:n,dataIndex:o})}return i}},t.queryDataIndex=function(e,t){return null!=t.dataIndexInside?t.dataIndexInside:null!=t.dataIndex?n.isArray(t.dataIndex)?n.map(t.dataIndex,function(t){return e.indexOfRawIndex(t)}):e.indexOfRawIndex(t.dataIndex):null!=t.name?n.isArray(t.name)?n.map(t.name,function(t){return e.indexOfName(t)}):e.indexOfName(t.name):void 0},t.makeInner=function(){var e="__\0ec_inner_"+u+++"_"+Math.random().toFixed(5);return function(t){return t[e]||(t[e]={})}},t.parseFinder=function(e,t,i){if(n.isString(t)){var o={};o[t+"Index"]=0,t=o}var a=i&&i.defaultMainType;!a||h(t,a+"Index")||h(t,a+"Id")||h(t,a+"Name")||(t[a+"Index"]=0);var s={};return r(t,function(o,r){var o=t[r];if("dataIndex"===r||"dataIndexInside"===r){s[r]=o;return}var a=r.match(/^(\w+)(Index|Id|Name)$/)||[],l=a[1],c=(a[2]||"").toLowerCase();if(!(!l||!c||null==o||"index"===c&&"none"===o||i&&i.includeMainTypes&&0>n.indexOf(i.includeMainTypes,l))){var d={mainType:l};("index"!==c||"all"!==o)&&(d[c]=o);var u=e.queryComponents(d);s[l+"Models"]=u,s[l+"Model"]=u[0]}}),s},t.setAttribute=function(e,t,i){e.setAttribute?e.setAttribute(t,i):e[t]=i},t.getAttribute=function(e,t){return e.getAttribute?e.getAttribute(t):e[t]},t.getTooltipRenderMode=function(e){return"auto"===e?o.domSupported?"html":"richText":e||"html"},t.groupData=function(e,t){var i=n.createHashMap(),o=[];return n.each(e,function(e){var n=t(e);(i.get(n)||(o.push(n),i.set(n,[]))).push(e)}),{keys:o,buckets:i}}},98763:function(e,t,i){var n=i(66023),o=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d\d)(?::(\d\d)(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function r(e){return Math.floor(Math.log(e)/Math.LN10)}t.linearMap=function(e,t,i,n){var o=t[1]-t[0],r=i[1]-i[0];if(0===o)return 0===r?i[0]:(i[0]+i[1])/2;if(n){if(o>0){if(e<=t[0])return i[0];else if(e>=t[1])return i[1]}else if(e>=t[0])return i[0];else if(e<=t[1])return i[1]}else{if(e===t[0])return i[0];if(e===t[1])return i[1]}return(e-t[0])/o*r+i[0]},t.parsePercent=function(e,t){switch(e){case"center":case"middle":e="50%";break;case"left":case"top":e="0%";break;case"right":case"bottom":e="100%"}return"string"==typeof e?e.replace(/^\s+/,"").replace(/\s+$/,"").match(/%$/)?parseFloat(e)/100*t:parseFloat(e):null==e?NaN:+e},t.round=function(e,t,i){return null==t&&(t=10),t=Math.min(Math.max(0,t),20),e=(+e).toFixed(t),i?e:+e},t.asc=function(e){return e.sort(function(e,t){return e-t}),e},t.getPrecision=function(e){if(isNaN(e*=1))return 0;for(var t=1,i=0;Math.round(e*t)/t!==e;)t*=10,i++;return i},t.getPrecisionSafe=function(e){var t=e.toString(),i=t.indexOf("e");if(i>0){var n=+t.slice(i+1);return n<0?-n:0}var o=t.indexOf(".");return o<0?0:t.length-1-o},t.getPixelPrecision=function(e,t){var i=Math.log,n=Math.LN10,o=Math.min(Math.max(-Math.floor(i(e[1]-e[0])/n)+Math.round(i(Math.abs(t[1]-t[0]))/n),0),20);return isFinite(o)?o:20},t.getPercentWithPrecision=function(e,t,i){if(!e[t])return 0;var o=n.reduce(e,function(e,t){return e+(isNaN(t)?0:t)},0);if(0===o)return 0;for(var r=Math.pow(10,i),a=n.map(e,function(e){return(isNaN(e)?0:e)/o*r*100}),s=100*r,l=n.map(a,function(e){return Math.floor(e)}),c=n.reduce(l,function(e,t){return e+t},0),d=n.map(a,function(e,t){return e-l[t]});c<s;){for(var u=Number.NEGATIVE_INFINITY,h=null,p=0,f=d.length;p<f;++p)d[p]>u&&(u=d[p],h=p);++l[h],d[h]=0,++c}return l[t]/r},t.MAX_SAFE_INTEGER=0x1fffffffffffff,t.remRadian=function(e){var t=2*Math.PI;return(e%t+t)%t},t.isRadianAroundZero=function(e){return e>-1e-4&&e<1e-4},t.parseDate=function(e){if(e instanceof Date)return e;if("string"==typeof e){var t=o.exec(e);if(!t)return new Date(NaN);if(!t[8])return new Date(+t[1],+(t[2]||1)-1,+t[3]||1,+t[4]||0,+(t[5]||0),+t[6]||0,+t[7]||0);var i=+t[4]||0;return"Z"!==t[8].toUpperCase()&&(i-=t[8].slice(0,3)),new Date(Date.UTC(+t[1],+(t[2]||1)-1,+t[3]||1,i,+(t[5]||0),+t[6]||0,+t[7]||0))}return null==e?new Date(NaN):new Date(Math.round(e))},t.quantity=function(e){return Math.pow(10,r(e))},t.nice=function(e,t){var i,n=r(e),o=Math.pow(10,n),a=e/o;return e=(t?a<1.5?1:a<2.5?2:a<4?3:a<7?5:10:a<1?1:a<2?2:a<3?3:a<5?5:10)*o,n>=-20?+e.toFixed(n<0?-n:0):e},t.quantile=function(e,t){var i=(e.length-1)*t+1,n=Math.floor(i),o=+e[n-1],r=i-n;return r?o+r*(e[n]-o):o},t.reformIntervals=function(e){e.sort(function(e,t){return!function e(t,i,n){return t.interval[n]<i.interval[n]||t.interval[n]===i.interval[n]&&(t.close[n]-i.close[n]==(n?-1:1)||!n&&e(t,i,1))}(e,t,0)?1:-1});for(var t=-1/0,i=1,n=0;n<e.length;){for(var o=e[n].interval,r=e[n].close,a=0;a<2;a++)o[a]<=t&&(o[a]=t,r[a]=a?1:1-i),t=o[a],i=r[a];o[0]===o[1]&&r[0]*r[1]!=1?e.splice(n,1):n++}return e},t.isNumeric=function(e){return e-parseFloat(e)>=0}},87557:function(e,t,i){var n=i(66023),o=i(76165),r=i(71497),a=o.extendShape({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var i=t.cx,n=t.cy,o=t.width/2,r=t.height/2;e.moveTo(i,n-r),e.lineTo(i+o,n+r),e.lineTo(i-o,n+r),e.closePath()}}),s=o.extendShape({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var i=t.cx,n=t.cy,o=t.width/2,r=t.height/2;e.moveTo(i,n-r),e.lineTo(i+o,n),e.lineTo(i,n+r),e.lineTo(i-o,n),e.closePath()}}),l=o.extendShape({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var i=t.x,n=t.y,o=t.width/5*3,r=Math.max(o,t.height),a=o/2,s=a*a/(r-a),l=n-r+a+s,c=Math.asin(s/a),d=Math.cos(c)*a,u=Math.sin(c),h=Math.cos(c),p=.6*a,f=.7*a;e.moveTo(i-d,l+s),e.arc(i,l,a,Math.PI-c,2*Math.PI+c),e.bezierCurveTo(i+d-u*p,l+s+h*p,i,n-f,i,n),e.bezierCurveTo(i,n-f,i-d+u*p,l+s+h*p,i-d,l+s),e.closePath()}}),c=o.extendShape({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var i=t.height,n=t.width,o=t.x,r=t.y,a=n/3*2;e.moveTo(o,r),e.lineTo(o+a,r+i),e.lineTo(o,r+i/4*3),e.lineTo(o-a,r+i),e.lineTo(o,r),e.closePath()}}),d={line:o.Line,rect:o.Rect,roundRect:o.Rect,square:o.Rect,circle:o.Circle,diamond:s,pin:l,arrow:c,triangle:a},u={line:function(e,t,i,n,o){o.x1=e,o.y1=t+n/2,o.x2=e+i,o.y2=t+n/2},rect:function(e,t,i,n,o){o.x=e,o.y=t,o.width=i,o.height=n},roundRect:function(e,t,i,n,o){o.x=e,o.y=t,o.width=i,o.height=n,o.r=Math.min(i,n)/4},square:function(e,t,i,n,o){var r=Math.min(i,n);o.x=e,o.y=t,o.width=r,o.height=r},circle:function(e,t,i,n,o){o.cx=e+i/2,o.cy=t+n/2,o.r=Math.min(i,n)/2},diamond:function(e,t,i,n,o){o.cx=e+i/2,o.cy=t+n/2,o.width=i,o.height=n},pin:function(e,t,i,n,o){o.x=e+i/2,o.y=t+n/2,o.width=i,o.height=n},arrow:function(e,t,i,n,o){o.x=e+i/2,o.y=t+n/2,o.width=i,o.height=n},triangle:function(e,t,i,n,o){o.cx=e+i/2,o.cy=t+n/2,o.width=i,o.height=n}},h={};n.each(d,function(e,t){h[t]=new e});var p=o.extendShape({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},beforeBrush:function(){var e=this.style;"pin"===this.shape.symbolType&&"inside"===e.textPosition&&(e.textPosition=["50%","40%"],e.textAlign="center",e.textVerticalAlign="middle")},buildPath:function(e,t,i){var n=t.symbolType,o=h[n];"none"!==t.symbolType&&(o||(o=h[n="rect"]),u[n](t.x,t.y,t.width,t.height,o.shape),o.buildPath(e,o.shape,i))}});function f(e,t){if("image"!==this.type){var i=this.style,n=this.shape;n&&"line"===n.symbolType?i.stroke=e:this.__isEmptyBrush?(i.stroke=e,i.fill=t||"#fff"):(i.fill&&(i.fill=e),i.stroke&&(i.stroke=e)),this.dirty(!1)}}t.createSymbol=function(e,t,i,n,a,s,l){var c,d=0===e.indexOf("empty");return d&&(e=e.substr(5,1).toLowerCase()+e.substr(6)),(c=0===e.indexOf("image://")?o.makeImage(e.slice(8),new r(t,i,n,a),l?"center":"cover"):0===e.indexOf("path://")?o.makePath(e.slice(7),{},new r(t,i,n,a),l?"center":"cover"):new p({shape:{symbolType:e,x:t,y:i,width:n,height:a}})).__isEmptyBrush=d,c.setColor=f,c.setColor(s),c}},44050:function(e,t){var i="\0__throttleOriginMethod",n="\0__throttleRate",o="\0__throttleType";function r(e,t,i){var n,o,r,a,s,l=0,c=0,d=null;function u(){c=new Date().getTime(),d=null,e.apply(r,a||[])}t=t||0;var h=function(){n=new Date().getTime(),r=this,a=arguments;var e=s||t,h=s||i;s=null,o=n-(h?l:c)-e,clearTimeout(d),h?d=setTimeout(u,e):o>=0?u():d=setTimeout(u,-o),l=n};return h.clear=function(){d&&(clearTimeout(d),d=null)},h.debounceNextCall=function(e){s=e},h}t.throttle=r,t.createOrUpdate=function(e,t,a,s){var l=e[t];if(l){var c=l[i]||l,d=l[o];if(l[n]!==a||d!==s){if(null==a||!s)return e[t]=c;(l=e[t]=r(c,a,"debounce"===s))[i]=c,l[o]=s,l[n]=a}return l}},t.clear=function(e,t){var n=e[t];n&&n[i]&&(e[t]=n[i])}},55756:function(e,t,i){var n=i(66023).each,o=i(35601),r=i(79426),a=i(51938),s=i(70018),l=i(68940).createTask,c=i(85773),d=s.makeInner(),u=c();function h(){this.group=new o,this.uid=r.getUID("viewChart"),this.renderTask=l({plan:m,reset:v}),this.renderTask.context={view:this}}h.prototype={type:"chart",init:function(e,t){},render:function(e,t,i,n){},highlight:function(e,t,i,n){g(e.getData(),n,"emphasis")},downplay:function(e,t,i,n){g(e.getData(),n,"normal")},remove:function(e,t){this.group.removeAll()},dispose:function(){},incrementalPrepareRender:null,incrementalRender:null,updateTransform:null,filterForExposedEvent:null};var p=h.prototype;function f(e,t){if(e&&(e.trigger(t),"group"===e.type))for(var i=0;i<e.childCount();i++)f(e.childAt(i),t)}function g(e,t,i){var o=s.queryDataIndex(e,t);null!=o?n(s.normalizeToArray(o),function(t){f(e.getItemGraphicEl(t),i)}):e.eachItemGraphicEl(function(e){f(e,i)})}function m(e){return u(e.model)}function v(e){var t=e.model,i=e.ecModel,n=e.api,o=e.payload,r=t.pipelineContext.progressiveRender,a=e.view,s=o&&d(o).updateMethod,l=r?"incrementalPrepareRender":s&&a[s]?s:"render";return"render"!==l&&a[l](t,i,n,o),b[l]}p.updateView=p.updateLayout=p.updateVisual=function(e,t,i,n){this.render(e,t,i,n)},a.enableClassExtend(h,["dispose"]),a.enableClassManagement(h,{registerWhenExtend:!0}),h.markUpdateMethod=function(e,t){d(e).updateMethod=t};var b={incrementalPrepareRender:{progress:function(e,t){t.view.incrementalRender(e,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(e,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}};e.exports=h},11648:function(e,t,i){var n=i(35601),o=i(79426),r=i(51938),a=function(){this.group=new n,this.uid=o.getUID("viewComponent")};a.prototype={constructor:a,init:function(e,t){},render:function(e,t,i,n){},dispose:function(){},filterForExposedEvent:null};var s=a.prototype;s.updateView=s.updateLayout=s.updateVisual=function(e,t,i,n){},r.enableClassExtend(a),r.enableClassManagement(a,{registerWhenExtend:!0}),e.exports=a},95138:function(e,t,i){var n=i(66023),o=i(53453),r=i(98763).linearMap,a=n.each,s=n.isObject,l=function(e){var t,i,o=e.mappingMethod,r=e.type,s=this.option=n.clone(e);this.type=r,this.mappingMethod=o,this._normalizeData=y[o];var l=c[r];this.applyVisual=l.applyVisual,this.getColorMapper=l.getColorMapper,this._doMap=l._doMap[o],"piecewise"===o?(d(s),i=(t=s).pieceList,t.hasSpecialVisual=!1,n.each(i,function(e,i){e.originIndex=i,null!=e.visual&&(t.hasSpecialVisual=!0)})):"category"===o?s.categories?function(e){var t=e.categories,i=e.visual,o=e.categoryMap={};if(a(t,function(e,t){o[e]=t}),!n.isArray(i)){var r=[];n.isObject(i)?a(i,function(e,t){var i=o[t];r[null!=i?i:-1]=e}):r[-1]=i,i=b(e,r)}for(var s=t.length-1;s>=0;s--)null==i[s]&&(delete o[t[s]],t.pop())}(s):d(s,!0):(n.assert("linear"!==o||s.dataExtent),d(s))};l.prototype={constructor:l,mapValueToVisual:function(e){var t=this._normalizeData(e);return this._doMap(t,e)},getNormalizer:function(){return n.bind(this._normalizeData,this)}};var c=l.visualHandlers={color:{applyVisual:p("color"),getColorMapper:function(){var e=this.option;return n.bind("category"===e.mappingMethod?function(e,t){return t||(e=this._normalizeData(e)),f.call(this,e)}:function(t,i,n){var r=!!n;return i||(t=this._normalizeData(t)),n=o.fastLerp(t,e.parsedVisual,n),r?n:o.stringify(n,"rgba")},this)},_doMap:{linear:function(e){return o.stringify(o.fastLerp(e,this.option.parsedVisual),"rgba")},category:f,piecewise:function(e,t){var i=v.call(this,t);return null==i&&(i=o.stringify(o.fastLerp(e,this.option.parsedVisual),"rgba")),i},fixed:g}},colorHue:u(function(e,t){return o.modifyHSL(e,t)}),colorSaturation:u(function(e,t){return o.modifyHSL(e,null,t)}),colorLightness:u(function(e,t){return o.modifyHSL(e,null,null,t)}),colorAlpha:u(function(e,t){return o.modifyAlpha(e,t)}),opacity:{applyVisual:p("opacity"),_doMap:m([0,1])},liftZ:{applyVisual:p("liftZ"),_doMap:{linear:g,category:g,piecewise:g,fixed:g}},symbol:{applyVisual:function(e,t,i){var o=this.mapValueToVisual(e);if(n.isString(o))i("symbol",o);else if(s(o))for(var r in o)o.hasOwnProperty(r)&&i(r,o[r])},_doMap:{linear:h,category:f,piecewise:function(e,t){var i=v.call(this,t);return null==i&&(i=h.call(this,e)),i},fixed:g}},symbolSize:{applyVisual:p("symbolSize"),_doMap:m([0,1])}};function d(e,t){var i=e.visual,o=[];n.isObject(i)?a(i,function(e){o.push(e)}):null!=i&&o.push(i),t||1!==o.length||({color:1,symbol:1}).hasOwnProperty(e.type)||(o[1]=o[0]),b(e,o)}function u(e){return{applyVisual:function(t,i,n){t=this.mapValueToVisual(t),n("color",e(i("color"),t))},_doMap:m([0,1])}}function h(e){var t=this.option.visual;return t[Math.round(r(e,[0,1],[0,t.length-1],!0))]||{}}function p(e){return function(t,i,n){n(e,this.mapValueToVisual(t))}}function f(e){var t=this.option.visual;return t[this.option.loop&&-1!==e?e%t.length:e]}function g(){return this.option.visual[0]}function m(e){return{linear:function(t){return r(t,e,this.option.visual,!0)},category:f,piecewise:function(t,i){var n=v.call(this,i);return null==n&&(n=r(t,e,this.option.visual,!0)),n},fixed:g}}function v(e){var t=this.option,i=t.pieceList;if(t.hasSpecialVisual){var n=l.findPieceIndex(e,i),o=i[n];if(o&&o.visual)return o.visual[this.type]}}function b(e,t){return e.visual=t,"color"===e.type&&(e.parsedVisual=n.map(t,function(e){return o.parse(e)})),t}var y={linear:function(e){return r(e,this.option.dataExtent,[0,1],!0)},piecewise:function(e){var t=this.option.pieceList,i=l.findPieceIndex(e,t,!0);if(null!=i)return r(i,[0,t.length-1],[0,1],!0)},category:function(e){var t=this.option.categories?this.option.categoryMap[e]:e;return null==t?-1:t},fixed:n.noop};l.listVisualTypes=function(){var e=[];return n.each(c,function(t,i){e.push(i)}),e},l.addVisualHandler=function(e,t){c[e]=t},l.isValidType=function(e){return c.hasOwnProperty(e)},l.eachVisual=function(e,t,i){n.isObject(e)?n.each(e,t,i):t.call(i,e)},l.mapVisual=function(e,t,i){var o,r=n.isArray(e)?[]:n.isObject(e)?{}:(o=!0,null);return l.eachVisual(e,function(e,n){var a=t.call(i,e,n);o?r=a:r[n]=a}),r},l.retrieveVisuals=function(e){var t,i={};return e&&a(c,function(n,o){e.hasOwnProperty(o)&&(i[o]=e[o],t=!0)}),t?i:null},l.prepareVisualTypes=function(e){if(s(e)){var t=[];a(e,function(e,i){t.push(i)}),e=t}else{if(!n.isArray(e))return[];e=e.slice()}return e.sort(function(e,t){return"color"===t&&"color"!==e&&0===e.indexOf("color")?1:-1}),e},l.dependsOn=function(e,t){return"color"===t?!!(e&&0===e.indexOf(t)):e===t},l.findPieceIndex=function(e,t,i){for(var n,o=1/0,r=0,a=t.length;r<a;r++){var s=t[r].value;if(null!=s){if(s===e||"string"==typeof s&&s===e+"")return r;i&&S(s,r)}}for(var r=0,a=t.length;r<a;r++){var l,c,d,u,h,p,f,g,m,v,b,y,w=t[r],_=w.interval,x=w.close;if(_){if(_[0]===-1/0){if(l=x[1],c=e,d=_[1],l?c<=d:c<d)return r}else if(_[1]===1/0){if(u=x[0],h=_[0],p=e,u?h<=p:h<p)return r}else{if(f=x[0],g=_[0],m=e,(f?g<=m:g<m)&&(v=x[1],b=e,y=_[1],v?b<=y:b<y))return r}i&&S(_[0],r),i&&S(_[1],r)}}if(i)return e===1/0?t.length-1:e===-1/0?0:n;function S(t,i){var r=Math.abs(t-e);r<o&&(o=r,n=i)}},e.exports=l},49151:function(e,t,i){var n=i(66023),o=i(66934),r=i(89211).retrieveRawValue;e.exports=function(e,t){var i,a=t.getModel("aria");if(a.get("show")){if(a.get("description"))return void e.setAttribute("aria-label",a.get("description"));var s=0;t.eachSeries(function(e,t){++s},this);var l=a.get("data.maxCount")||10,c=a.get("series.maxCount")||10,d=Math.min(s,c);if(!(s<1)){var u,h=((u=t.getModel("title").option)&&u.length&&(u=u[0]),u&&u.text);i=h?f(g("general.withTitle"),{title:h}):g("general.withoutTitle");var p=[];i+=f(g(s>1?"series.multiple.prefix":"series.single.prefix"),{seriesCount:s}),t.eachSeries(function(e,t){if(t<d){var i,n,a=e.get("name"),c="series."+(s>1?"multiple":"single")+".";n=f(n=g(a?c+"withName":c+"withoutName"),{seriesId:e.seriesIndex,seriesName:e.get("name"),seriesType:(i=e.subType,o.series.typeNames[i]||"自定义图")});var u=e.getData();window.data=u,u.count()>l?n+=f(g("data.partialData"),{displayCnt:l}):n+=g("data.allData");for(var h=[],m=0;m<u.count();m++)if(m<l){var v=u.getName(m),b=r(u,m);h.push(f(v?g("data.withName"):g("data.withoutName"),{name:v,value:b}))}n+=h.join(g("data.separator.middle"))+g("data.separator.end"),p.push(n)}}),i+=p.join(g("series.multiple.separator.middle"))+g("series.multiple.separator.end"),e.setAttribute("aria-label",i)}}function f(e,t){if("string"!=typeof e)return e;var i=e;return n.each(t,function(e,t){i=i.replace(RegExp("\\{\\s*"+t+"\\s*\\}","g"),e)}),i}function g(e){var t=a.get(e);if(null!=t)return t;for(var i=e.split("."),n=o.aria,r=0;r<i.length;++r)n=n[i[r]];return n}}},34907:function(e,t,i){var n=i(66023).createHashMap;e.exports=function(e){return{getTargetSeries:function(t){var i={},o=n();return t.eachSeriesByType(e,function(e){e.__paletteScope=i,o.set(e.uid,e)}),o},reset:function(e,t){var i=e.getRawData(),n={},o=e.getData();o.each(function(e){n[o.getRawIndex(e)]=e}),i.each(function(t){var r=n[t],a=null!=r&&o.getItemVisual(r,"color",!0);if(a)i.setItemVisual(t,"color",a);else{var s=i.getItemModel(t).get("itemStyle.color")||e.getColorFromPalette(i.getName(t)||t+"",e.__paletteScope,i.count());i.setItemVisual(t,"color",s),null!=r&&o.setItemVisual(r,"color",s)}})}}}},75607:function(e,t,i){var n=i(47580);e.exports={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var i=e.getData(),o=(e.visualColorAccessPath||"itemStyle.color").split("."),r=e.get(o)||e.getColorFromPalette(e.name,null,t.getSeriesCount());if(i.setVisual("color",r),!t.isSeriesFiltered(e))return"function"!=typeof r||r instanceof n||i.each(function(t){i.setItemVisual(t,"color",r(e.getDataParams(t)))}),{dataEach:i.hasItemOption?function(e,t){var i=e.getItemModel(t).get(o,!0);null!=i&&e.setItemVisual(t,"color",i)}:null}}}},41314:function(e){e.exports=function(e,t,i){return{seriesType:e,performRawSeries:!0,reset:function(e,n,o){var r=e.getData(),a=e.get("symbol")||t,s=e.get("symbolSize"),l=e.get("symbolKeepAspect");if(r.setVisual({legendSymbol:i||a,symbol:a,symbolSize:s,symbolKeepAspect:l}),!n.isSeriesFiltered(e)){var c="function"==typeof s;return{dataEach:r.hasItemOption||c?function(t,i){if("function"==typeof s){var n=e.getRawValue(i),o=e.getDataParams(i);t.setItemVisual(i,"symbolSize",s(n,o))}if(t.hasItemOption){var r=t.getItemModel(i),a=r.getShallow("symbol",!0),l=r.getShallow("symbolSize",!0),c=r.getShallow("symbolKeepAspect",!0);null!=a&&t.setItemVisual(i,"symbol",a),null!=l&&t.setItemVisual(i,"symbolSize",l),null!=c&&t.setItemVisual(i,"symbolKeepAspect",c)}}:null}}}}}},61224:function(e,t,i){var n=i(66023),o={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}};e.exports={get:function(e,t,i){var r=n.clone((o[e]||{})[t]);return i&&n.isArray(r)?r[r.length-1]:r}}},49002:function(e,t,i){var n=i(66023),o=i(95138),r=n.each;function a(e){if(e){for(var t in e)if(e.hasOwnProperty(t))return!0}}t.createVisualMappings=function(e,t,i){var a={};return r(t,function(t){var s,l=a[t]=((s=function(){}).prototype.__hidden=s.prototype,new s);r(e[t],function(e,r){if(o.isValidType(r)){var a={type:r,visual:e};i&&i(a,t),l[r]=new o(a),"opacity"===r&&((a=n.clone(a)).type="colorAlpha",l.__hidden.__alphaForOpacity=new o(a))}})}),a},t.replaceVisualOption=function(e,t,i){var o;n.each(i,function(e){t.hasOwnProperty(e)&&a(t[e])&&(o=!0)}),o&&n.each(i,function(i){t.hasOwnProperty(i)&&a(t[i])?e[i]=n.clone(t[i]):delete e[i]})},t.applyVisual=function(e,t,i,r,a,s){var l,c={};function d(e){return i.getItemVisual(l,e)}function u(e,t){i.setItemVisual(l,e,t)}function h(e,n){l=null==s?e:n;var o=i.getRawDataItem(l);if(!o||!1!==o.visualMap)for(var h=r.call(a,e),p=t[h],f=c[h],g=0,m=f.length;g<m;g++){var v=f[g];p[v]&&p[v].applyVisual(e,d,u)}}n.each(e,function(e){var i=o.prepareVisualTypes(t[e]);c[e]=i}),null==s?i.each(h):i.each([s],h)},t.incrementalApplyVisual=function(e,t,i,r){var a={};return n.each(e,function(e){var i=o.prepareVisualTypes(t[e]);a[e]=i}),{progress:function(e,n){function o(e){return n.getItemVisual(l,e)}function s(e,t){n.setItemVisual(l,e,t)}for(null!=r&&(r=n.getDimension(r));null!=(l=e.next());){var l,c=n.getRawDataItem(l);if(!c||!1!==c.visualMap)for(var d=null!=r?n.get(r,l,!0):l,u=i(d),h=t[u],p=a[u],f=0,g=p.length;f<g;f++){var m=p[f];h[m]&&h[m].applyVisual(d,o,s)}}}}}},11312:function(e){"use strict";var t=Object.prototype.hasOwnProperty,i="~";function n(){}function o(e,t,i){this.fn=e,this.context=t,this.once=i||!1}function r(e,t,n,r,a){if("function"!=typeof n)throw TypeError("The listener must be a function");var s=new o(n,r||e,a),l=i?i+t:t;return e._events[l]?e._events[l].fn?e._events[l]=[e._events[l],s]:e._events[l].push(s):(e._events[l]=s,e._eventsCount++),e}function a(e,t){0==--e._eventsCount?e._events=new n:delete e._events[t]}function s(){this._events=new n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(i=!1)),s.prototype.eventNames=function(){var e,n,o=[];if(0===this._eventsCount)return o;for(n in e=this._events)t.call(e,n)&&o.push(i?n.slice(1):n);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(e)):o},s.prototype.listeners=function(e){var t=i?i+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var o=0,r=n.length,a=Array(r);o<r;o++)a[o]=n[o].fn;return a},s.prototype.listenerCount=function(e){var t=i?i+e:e,n=this._events[t];return n?n.fn?1:n.length:0},s.prototype.emit=function(e,t,n,o,r,a){var s=i?i+e:e;if(!this._events[s])return!1;var l,c,d=this._events[s],u=arguments.length;if(d.fn){switch(d.once&&this.removeListener(e,d.fn,void 0,!0),u){case 1:return d.fn.call(d.context),!0;case 2:return d.fn.call(d.context,t),!0;case 3:return d.fn.call(d.context,t,n),!0;case 4:return d.fn.call(d.context,t,n,o),!0;case 5:return d.fn.call(d.context,t,n,o,r),!0;case 6:return d.fn.call(d.context,t,n,o,r,a),!0}for(c=1,l=Array(u-1);c<u;c++)l[c-1]=arguments[c];d.fn.apply(d.context,l)}else{var h,p=d.length;for(c=0;c<p;c++)switch(d[c].once&&this.removeListener(e,d[c].fn,void 0,!0),u){case 1:d[c].fn.call(d[c].context);break;case 2:d[c].fn.call(d[c].context,t);break;case 3:d[c].fn.call(d[c].context,t,n);break;case 4:d[c].fn.call(d[c].context,t,n,o);break;default:if(!l)for(h=1,l=Array(u-1);h<u;h++)l[h-1]=arguments[h];d[c].fn.apply(d[c].context,l)}}return!0},s.prototype.on=function(e,t,i){return r(this,e,t,i,!1)},s.prototype.once=function(e,t,i){return r(this,e,t,i,!0)},s.prototype.removeListener=function(e,t,n,o){var r=i?i+e:e;if(!this._events[r])return this;if(!t)return a(this,r),this;var s=this._events[r];if(s.fn)s.fn!==t||o&&!s.once||n&&s.context!==n||a(this,r);else{for(var l=0,c=[],d=s.length;l<d;l++)(s[l].fn!==t||o&&!s[l].once||n&&s[l].context!==n)&&c.push(s[l]);c.length?this._events[r]=1===c.length?c[0]:c:a(this,r)}return this},s.prototype.removeAllListeners=function(e){var t;return e?(t=i?i+e:e,this._events[t]&&a(this,t)):(this._events=new n,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=i,s.EventEmitter=s,e.exports=s},70777:function(e){e.exports&&(e.exports=function(){function e(e,t){void 0===t&&(t=0);var i=e.charCodeAt(t);if(55296<=i&&i<=56319&&t<e.length-1){var n=i,o=e.charCodeAt(t+1);return 56320<=o&&o<=57343?(n-55296)*1024+(o-56320)+65536:n}if(56320<=i&&i<=57343&&t>=1){var n=e.charCodeAt(t-1),o=i;return 55296<=n&&n<=56319?(n-55296)*1024+(o-56320)+65536:o}return i}function t(e){return 1536<=e&&e<=1541||1757==e||1807==e||2274==e||3406==e||69821==e||70082<=e&&e<=70083||72250==e||72326<=e&&e<=72329||73030==e?12:13==e?0:10==e?1:0<=e&&e<=9||11<=e&&e<=12||14<=e&&e<=31||127<=e&&e<=159||173==e||1564==e||6158==e||8203==e||8206<=e&&e<=8207||8232==e||8233==e||8234<=e&&e<=8238||8288<=e&&e<=8292||8293==e||8294<=e&&e<=8303||55296<=e&&e<=57343||65279==e||65520<=e&&e<=65528||65529<=e&&e<=65531||113824<=e&&e<=113827||119155<=e&&e<=119162||917504==e||917505==e||917506<=e&&e<=917535||917632<=e&&e<=917759||918e3<=e&&e<=921599?2:768<=e&&e<=879||1155<=e&&e<=1159||1160<=e&&e<=1161||1425<=e&&e<=1469||1471==e||1473<=e&&e<=1474||1476<=e&&e<=1477||1479==e||1552<=e&&e<=1562||1611<=e&&e<=1631||1648==e||1750<=e&&e<=1756||1759<=e&&e<=1764||1767<=e&&e<=1768||1770<=e&&e<=1773||1809==e||1840<=e&&e<=1866||1958<=e&&e<=1968||2027<=e&&e<=2035||2070<=e&&e<=2073||2075<=e&&e<=2083||2085<=e&&e<=2087||2089<=e&&e<=2093||2137<=e&&e<=2139||2260<=e&&e<=2273||2275<=e&&e<=2306||2362==e||2364==e||2369<=e&&e<=2376||2381==e||2385<=e&&e<=2391||2402<=e&&e<=2403||2433==e||2492==e||2494==e||2497<=e&&e<=2500||2509==e||2519==e||2530<=e&&e<=2531||2561<=e&&e<=2562||2620==e||2625<=e&&e<=2626||2631<=e&&e<=2632||2635<=e&&e<=2637||2641==e||2672<=e&&e<=2673||2677==e||2689<=e&&e<=2690||2748==e||2753<=e&&e<=2757||2759<=e&&e<=2760||2765==e||2786<=e&&e<=2787||2810<=e&&e<=2815||2817==e||2876==e||2878==e||2879==e||2881<=e&&e<=2884||2893==e||2902==e||2903==e||2914<=e&&e<=2915||2946==e||3006==e||3008==e||3021==e||3031==e||3072==e||3134<=e&&e<=3136||3142<=e&&e<=3144||3146<=e&&e<=3149||3157<=e&&e<=3158||3170<=e&&e<=3171||3201==e||3260==e||3263==e||3266==e||3270==e||3276<=e&&e<=3277||3285<=e&&e<=3286||3298<=e&&e<=3299||3328<=e&&e<=3329||3387<=e&&e<=3388||3390==e||3393<=e&&e<=3396||3405==e||3415==e||3426<=e&&e<=3427||3530==e||3535==e||3538<=e&&e<=3540||3542==e||3551==e||3633==e||3636<=e&&e<=3642||3655<=e&&e<=3662||3761==e||3764<=e&&e<=3769||3771<=e&&e<=3772||3784<=e&&e<=3789||3864<=e&&e<=3865||3893==e||3895==e||3897==e||3953<=e&&e<=3966||3968<=e&&e<=3972||3974<=e&&e<=3975||3981<=e&&e<=3991||3993<=e&&e<=4028||4038==e||4141<=e&&e<=4144||4146<=e&&e<=4151||4153<=e&&e<=4154||4157<=e&&e<=4158||4184<=e&&e<=4185||4190<=e&&e<=4192||4209<=e&&e<=4212||4226==e||4229<=e&&e<=4230||4237==e||4253==e||4957<=e&&e<=4959||5906<=e&&e<=5908||5938<=e&&e<=5940||5970<=e&&e<=5971||6002<=e&&e<=6003||6068<=e&&e<=6069||6071<=e&&e<=6077||6086==e||6089<=e&&e<=6099||6109==e||6155<=e&&e<=6157||6277<=e&&e<=6278||6313==e||6432<=e&&e<=6434||6439<=e&&e<=6440||6450==e||6457<=e&&e<=6459||6679<=e&&e<=6680||6683==e||6742==e||6744<=e&&e<=6750||6752==e||6754==e||6757<=e&&e<=6764||6771<=e&&e<=6780||6783==e||6832<=e&&e<=6845||6846==e||6912<=e&&e<=6915||6964==e||6966<=e&&e<=6970||6972==e||6978==e||7019<=e&&e<=7027||7040<=e&&e<=7041||7074<=e&&e<=7077||7080<=e&&e<=7081||7083<=e&&e<=7085||7142==e||7144<=e&&e<=7145||7149==e||7151<=e&&e<=7153||7212<=e&&e<=7219||7222<=e&&e<=7223||7376<=e&&e<=7378||7380<=e&&e<=7392||7394<=e&&e<=7400||7405==e||7412==e||7416<=e&&e<=7417||7616<=e&&e<=7673||7675<=e&&e<=7679||8204==e||8400<=e&&e<=8412||8413<=e&&e<=8416||8417==e||8418<=e&&e<=8420||8421<=e&&e<=8432||11503<=e&&e<=11505||11647==e||11744<=e&&e<=11775||12330<=e&&e<=12333||12334<=e&&e<=12335||12441<=e&&e<=12442||42607==e||42608<=e&&e<=42610||42612<=e&&e<=42621||42654<=e&&e<=42655||42736<=e&&e<=42737||43010==e||43014==e||43019==e||43045<=e&&e<=43046||43204<=e&&e<=43205||43232<=e&&e<=43249||43302<=e&&e<=43309||43335<=e&&e<=43345||43392<=e&&e<=43394||43443==e||43446<=e&&e<=43449||43452==e||43493==e||43561<=e&&e<=43566||43569<=e&&e<=43570||43573<=e&&e<=43574||43587==e||43596==e||43644==e||43696==e||43698<=e&&e<=43700||43703<=e&&e<=43704||43710<=e&&e<=43711||43713==e||43756<=e&&e<=43757||43766==e||44005==e||44008==e||44013==e||64286==e||65024<=e&&e<=65039||65056<=e&&e<=65071||65438<=e&&e<=65439||66045==e||66272==e||66422<=e&&e<=66426||68097<=e&&e<=68099||68101<=e&&e<=68102||68108<=e&&e<=68111||68152<=e&&e<=68154||68159==e||68325<=e&&e<=68326||69633==e||69688<=e&&e<=69702||69759<=e&&e<=69761||69811<=e&&e<=69814||69817<=e&&e<=69818||69888<=e&&e<=69890||69927<=e&&e<=69931||69933<=e&&e<=69940||70003==e||70016<=e&&e<=70017||70070<=e&&e<=70078||70090<=e&&e<=70092||70191<=e&&e<=70193||70196==e||70198<=e&&e<=70199||70206==e||70367==e||70371<=e&&e<=70378||70400<=e&&e<=70401||70460==e||70462==e||70464==e||70487==e||70502<=e&&e<=70508||70512<=e&&e<=70516||70712<=e&&e<=70719||70722<=e&&e<=70724||70726==e||70832==e||70835<=e&&e<=70840||70842==e||70845==e||70847<=e&&e<=70848||70850<=e&&e<=70851||71087==e||71090<=e&&e<=71093||71100<=e&&e<=71101||71103<=e&&e<=71104||71132<=e&&e<=71133||71219<=e&&e<=71226||71229==e||71231<=e&&e<=71232||71339==e||71341==e||71344<=e&&e<=71349||71351==e||71453<=e&&e<=71455||71458<=e&&e<=71461||71463<=e&&e<=71467||72193<=e&&e<=72198||72201<=e&&e<=72202||72243<=e&&e<=72248||72251<=e&&e<=72254||72263==e||72273<=e&&e<=72278||72281<=e&&e<=72283||72330<=e&&e<=72342||72344<=e&&e<=72345||72752<=e&&e<=72758||72760<=e&&e<=72765||72767==e||72850<=e&&e<=72871||72874<=e&&e<=72880||72882<=e&&e<=72883||72885<=e&&e<=72886||73009<=e&&e<=73014||73018==e||73020<=e&&e<=73021||73023<=e&&e<=73029||73031==e||92912<=e&&e<=92916||92976<=e&&e<=92982||94095<=e&&e<=94098||113821<=e&&e<=113822||119141==e||119143<=e&&e<=119145||119150<=e&&e<=119154||119163<=e&&e<=119170||119173<=e&&e<=119179||119210<=e&&e<=119213||119362<=e&&e<=119364||121344<=e&&e<=121398||121403<=e&&e<=121452||121461==e||121476==e||121499<=e&&e<=121503||121505<=e&&e<=121519||122880<=e&&e<=122886||122888<=e&&e<=122904||122907<=e&&e<=122913||122915<=e&&e<=122916||122918<=e&&e<=122922||125136<=e&&e<=125142||125252<=e&&e<=125258||917536<=e&&e<=917631||917760<=e&&e<=917999?3:127462<=e&&e<=127487?4:2307==e||2363==e||2366<=e&&e<=2368||2377<=e&&e<=2380||2382<=e&&e<=2383||2434<=e&&e<=2435||2495<=e&&e<=2496||2503<=e&&e<=2504||2507<=e&&e<=2508||2563==e||2622<=e&&e<=2624||2691==e||2750<=e&&e<=2752||2761==e||2763<=e&&e<=2764||2818<=e&&e<=2819||2880==e||2887<=e&&e<=2888||2891<=e&&e<=2892||3007==e||3009<=e&&e<=3010||3014<=e&&e<=3016||3018<=e&&e<=3020||3073<=e&&e<=3075||3137<=e&&e<=3140||3202<=e&&e<=3203||3262==e||3264<=e&&e<=3265||3267<=e&&e<=3268||3271<=e&&e<=3272||3274<=e&&e<=3275||3330<=e&&e<=3331||3391<=e&&e<=3392||3398<=e&&e<=3400||3402<=e&&e<=3404||3458<=e&&e<=3459||3536<=e&&e<=3537||3544<=e&&e<=3550||3570<=e&&e<=3571||3635==e||3763==e||3902<=e&&e<=3903||3967==e||4145==e||4155<=e&&e<=4156||4182<=e&&e<=4183||4228==e||6070==e||6078<=e&&e<=6085||6087<=e&&e<=6088||6435<=e&&e<=6438||6441<=e&&e<=6443||6448<=e&&e<=6449||6451<=e&&e<=6456||6681<=e&&e<=6682||6741==e||6743==e||6765<=e&&e<=6770||6916==e||6965==e||6971==e||6973<=e&&e<=6977||6979<=e&&e<=6980||7042==e||7073==e||7078<=e&&e<=7079||7082==e||7143==e||7146<=e&&e<=7148||7150==e||7154<=e&&e<=7155||7204<=e&&e<=7211||7220<=e&&e<=7221||7393==e||7410<=e&&e<=7411||7415==e||43043<=e&&e<=43044||43047==e||43136<=e&&e<=43137||43188<=e&&e<=43203||43346<=e&&e<=43347||43395==e||43444<=e&&e<=43445||43450<=e&&e<=43451||43453<=e&&e<=43456||43567<=e&&e<=43568||43571<=e&&e<=43572||43597==e||43755==e||43758<=e&&e<=43759||43765==e||44003<=e&&e<=44004||44006<=e&&e<=44007||44009<=e&&e<=44010||44012==e||69632==e||69634==e||69762==e||69808<=e&&e<=69810||69815<=e&&e<=69816||69932==e||70018==e||70067<=e&&e<=70069||70079<=e&&e<=70080||70188<=e&&e<=70190||70194<=e&&e<=70195||70197==e||70368<=e&&e<=70370||70402<=e&&e<=70403||70463==e||70465<=e&&e<=70468||70471<=e&&e<=70472||70475<=e&&e<=70477||70498<=e&&e<=70499||70709<=e&&e<=70711||70720<=e&&e<=70721||70725==e||70833<=e&&e<=70834||70841==e||70843<=e&&e<=70844||70846==e||70849==e||71088<=e&&e<=71089||71096<=e&&e<=71099||71102==e||71216<=e&&e<=71218||71227<=e&&e<=71228||71230==e||71340==e||71342<=e&&e<=71343||71350==e||71456<=e&&e<=71457||71462==e||72199<=e&&e<=72200||72249==e||72279<=e&&e<=72280||72343==e||72751==e||72766==e||72873==e||72881==e||72884==e||94033<=e&&e<=94078||119142==e||119149==e?5:4352<=e&&e<=4447||43360<=e&&e<=43388?6:4448<=e&&e<=4519||55216<=e&&e<=55238?7:4520<=e&&e<=4607||55243<=e&&e<=55291?8:44032==e||44060==e||44088==e||44116==e||44144==e||44172==e||44200==e||44228==e||44256==e||44284==e||44312==e||44340==e||44368==e||44396==e||44424==e||44452==e||44480==e||44508==e||44536==e||44564==e||44592==e||44620==e||44648==e||44676==e||44704==e||44732==e||44760==e||44788==e||44816==e||44844==e||44872==e||44900==e||44928==e||44956==e||44984==e||45012==e||45040==e||45068==e||45096==e||45124==e||45152==e||45180==e||45208==e||45236==e||45264==e||45292==e||45320==e||45348==e||45376==e||45404==e||45432==e||45460==e||45488==e||45516==e||45544==e||45572==e||45600==e||45628==e||45656==e||45684==e||45712==e||45740==e||45768==e||45796==e||45824==e||45852==e||45880==e||45908==e||45936==e||45964==e||45992==e||46020==e||46048==e||46076==e||46104==e||46132==e||46160==e||46188==e||46216==e||46244==e||46272==e||46300==e||46328==e||46356==e||46384==e||46412==e||46440==e||46468==e||46496==e||46524==e||46552==e||46580==e||46608==e||46636==e||46664==e||46692==e||46720==e||46748==e||46776==e||46804==e||46832==e||46860==e||46888==e||46916==e||46944==e||46972==e||47e3==e||47028==e||47056==e||47084==e||47112==e||47140==e||47168==e||47196==e||47224==e||47252==e||47280==e||47308==e||47336==e||47364==e||47392==e||47420==e||47448==e||47476==e||47504==e||47532==e||47560==e||47588==e||47616==e||47644==e||47672==e||47700==e||47728==e||47756==e||47784==e||47812==e||47840==e||47868==e||47896==e||47924==e||47952==e||47980==e||48008==e||48036==e||48064==e||48092==e||48120==e||48148==e||48176==e||48204==e||48232==e||48260==e||48288==e||48316==e||48344==e||48372==e||48400==e||48428==e||48456==e||48484==e||48512==e||48540==e||48568==e||48596==e||48624==e||48652==e||48680==e||48708==e||48736==e||48764==e||48792==e||48820==e||48848==e||48876==e||48904==e||48932==e||48960==e||48988==e||49016==e||49044==e||49072==e||49100==e||49128==e||49156==e||49184==e||49212==e||49240==e||49268==e||49296==e||49324==e||49352==e||49380==e||49408==e||49436==e||49464==e||49492==e||49520==e||49548==e||49576==e||49604==e||49632==e||49660==e||49688==e||49716==e||49744==e||49772==e||49800==e||49828==e||49856==e||49884==e||49912==e||49940==e||49968==e||49996==e||50024==e||50052==e||50080==e||50108==e||50136==e||50164==e||50192==e||50220==e||50248==e||50276==e||50304==e||50332==e||50360==e||50388==e||50416==e||50444==e||50472==e||50500==e||50528==e||50556==e||50584==e||50612==e||50640==e||50668==e||50696==e||50724==e||50752==e||50780==e||50808==e||50836==e||50864==e||50892==e||50920==e||50948==e||50976==e||51004==e||51032==e||51060==e||51088==e||51116==e||51144==e||51172==e||51200==e||51228==e||51256==e||51284==e||51312==e||51340==e||51368==e||51396==e||51424==e||51452==e||51480==e||51508==e||51536==e||51564==e||51592==e||51620==e||51648==e||51676==e||51704==e||51732==e||51760==e||51788==e||51816==e||51844==e||51872==e||51900==e||51928==e||51956==e||51984==e||52012==e||52040==e||52068==e||52096==e||52124==e||52152==e||52180==e||52208==e||52236==e||52264==e||52292==e||52320==e||52348==e||52376==e||52404==e||52432==e||52460==e||52488==e||52516==e||52544==e||52572==e||52600==e||52628==e||52656==e||52684==e||52712==e||52740==e||52768==e||52796==e||52824==e||52852==e||52880==e||52908==e||52936==e||52964==e||52992==e||53020==e||53048==e||53076==e||53104==e||53132==e||53160==e||53188==e||53216==e||53244==e||53272==e||53300==e||53328==e||53356==e||53384==e||53412==e||53440==e||53468==e||53496==e||53524==e||53552==e||53580==e||53608==e||53636==e||53664==e||53692==e||53720==e||53748==e||53776==e||53804==e||53832==e||53860==e||53888==e||53916==e||53944==e||53972==e||54e3==e||54028==e||54056==e||54084==e||54112==e||54140==e||54168==e||54196==e||54224==e||54252==e||54280==e||54308==e||54336==e||54364==e||54392==e||54420==e||54448==e||54476==e||54504==e||54532==e||54560==e||54588==e||54616==e||54644==e||54672==e||54700==e||54728==e||54756==e||54784==e||54812==e||54840==e||54868==e||54896==e||54924==e||54952==e||54980==e||55008==e||55036==e||55064==e||55092==e||55120==e||55148==e||55176==e?9:44033<=e&&e<=44059||44061<=e&&e<=44087||44089<=e&&e<=44115||44117<=e&&e<=44143||44145<=e&&e<=44171||44173<=e&&e<=44199||44201<=e&&e<=44227||44229<=e&&e<=44255||44257<=e&&e<=44283||44285<=e&&e<=44311||44313<=e&&e<=44339||44341<=e&&e<=44367||44369<=e&&e<=44395||44397<=e&&e<=44423||44425<=e&&e<=44451||44453<=e&&e<=44479||44481<=e&&e<=44507||44509<=e&&e<=44535||44537<=e&&e<=44563||44565<=e&&e<=44591||44593<=e&&e<=44619||44621<=e&&e<=44647||44649<=e&&e<=44675||44677<=e&&e<=44703||44705<=e&&e<=44731||44733<=e&&e<=44759||44761<=e&&e<=44787||44789<=e&&e<=44815||44817<=e&&e<=44843||44845<=e&&e<=44871||44873<=e&&e<=44899||44901<=e&&e<=44927||44929<=e&&e<=44955||44957<=e&&e<=44983||44985<=e&&e<=45011||45013<=e&&e<=45039||45041<=e&&e<=45067||45069<=e&&e<=45095||45097<=e&&e<=45123||45125<=e&&e<=45151||45153<=e&&e<=45179||45181<=e&&e<=45207||45209<=e&&e<=45235||45237<=e&&e<=45263||45265<=e&&e<=45291||45293<=e&&e<=45319||45321<=e&&e<=45347||45349<=e&&e<=45375||45377<=e&&e<=45403||45405<=e&&e<=45431||45433<=e&&e<=45459||45461<=e&&e<=45487||45489<=e&&e<=45515||45517<=e&&e<=45543||45545<=e&&e<=45571||45573<=e&&e<=45599||45601<=e&&e<=45627||45629<=e&&e<=45655||45657<=e&&e<=45683||45685<=e&&e<=45711||45713<=e&&e<=45739||45741<=e&&e<=45767||45769<=e&&e<=45795||45797<=e&&e<=45823||45825<=e&&e<=45851||45853<=e&&e<=45879||45881<=e&&e<=45907||45909<=e&&e<=45935||45937<=e&&e<=45963||45965<=e&&e<=45991||45993<=e&&e<=46019||46021<=e&&e<=46047||46049<=e&&e<=46075||46077<=e&&e<=46103||46105<=e&&e<=46131||46133<=e&&e<=46159||46161<=e&&e<=46187||46189<=e&&e<=46215||46217<=e&&e<=46243||46245<=e&&e<=46271||46273<=e&&e<=46299||46301<=e&&e<=46327||46329<=e&&e<=46355||46357<=e&&e<=46383||46385<=e&&e<=46411||46413<=e&&e<=46439||46441<=e&&e<=46467||46469<=e&&e<=46495||46497<=e&&e<=46523||46525<=e&&e<=46551||46553<=e&&e<=46579||46581<=e&&e<=46607||46609<=e&&e<=46635||46637<=e&&e<=46663||46665<=e&&e<=46691||46693<=e&&e<=46719||46721<=e&&e<=46747||46749<=e&&e<=46775||46777<=e&&e<=46803||46805<=e&&e<=46831||46833<=e&&e<=46859||46861<=e&&e<=46887||46889<=e&&e<=46915||46917<=e&&e<=46943||46945<=e&&e<=46971||46973<=e&&e<=46999||47001<=e&&e<=47027||47029<=e&&e<=47055||47057<=e&&e<=47083||47085<=e&&e<=47111||47113<=e&&e<=47139||47141<=e&&e<=47167||47169<=e&&e<=47195||47197<=e&&e<=47223||47225<=e&&e<=47251||47253<=e&&e<=47279||47281<=e&&e<=47307||47309<=e&&e<=47335||47337<=e&&e<=47363||47365<=e&&e<=47391||47393<=e&&e<=47419||47421<=e&&e<=47447||47449<=e&&e<=47475||47477<=e&&e<=47503||47505<=e&&e<=47531||47533<=e&&e<=47559||47561<=e&&e<=47587||47589<=e&&e<=47615||47617<=e&&e<=47643||47645<=e&&e<=47671||47673<=e&&e<=47699||47701<=e&&e<=47727||47729<=e&&e<=47755||47757<=e&&e<=47783||47785<=e&&e<=47811||47813<=e&&e<=47839||47841<=e&&e<=47867||47869<=e&&e<=47895||47897<=e&&e<=47923||47925<=e&&e<=47951||47953<=e&&e<=47979||47981<=e&&e<=48007||48009<=e&&e<=48035||48037<=e&&e<=48063||48065<=e&&e<=48091||48093<=e&&e<=48119||48121<=e&&e<=48147||48149<=e&&e<=48175||48177<=e&&e<=48203||48205<=e&&e<=48231||48233<=e&&e<=48259||48261<=e&&e<=48287||48289<=e&&e<=48315||48317<=e&&e<=48343||48345<=e&&e<=48371||48373<=e&&e<=48399||48401<=e&&e<=48427||48429<=e&&e<=48455||48457<=e&&e<=48483||48485<=e&&e<=48511||48513<=e&&e<=48539||48541<=e&&e<=48567||48569<=e&&e<=48595||48597<=e&&e<=48623||48625<=e&&e<=48651||48653<=e&&e<=48679||48681<=e&&e<=48707||48709<=e&&e<=48735||48737<=e&&e<=48763||48765<=e&&e<=48791||48793<=e&&e<=48819||48821<=e&&e<=48847||48849<=e&&e<=48875||48877<=e&&e<=48903||48905<=e&&e<=48931||48933<=e&&e<=48959||48961<=e&&e<=48987||48989<=e&&e<=49015||49017<=e&&e<=49043||49045<=e&&e<=49071||49073<=e&&e<=49099||49101<=e&&e<=49127||49129<=e&&e<=49155||49157<=e&&e<=49183||49185<=e&&e<=49211||49213<=e&&e<=49239||49241<=e&&e<=49267||49269<=e&&e<=49295||49297<=e&&e<=49323||49325<=e&&e<=49351||49353<=e&&e<=49379||49381<=e&&e<=49407||49409<=e&&e<=49435||49437<=e&&e<=49463||49465<=e&&e<=49491||49493<=e&&e<=49519||49521<=e&&e<=49547||49549<=e&&e<=49575||49577<=e&&e<=49603||49605<=e&&e<=49631||49633<=e&&e<=49659||49661<=e&&e<=49687||49689<=e&&e<=49715||49717<=e&&e<=49743||49745<=e&&e<=49771||49773<=e&&e<=49799||49801<=e&&e<=49827||49829<=e&&e<=49855||49857<=e&&e<=49883||49885<=e&&e<=49911||49913<=e&&e<=49939||49941<=e&&e<=49967||49969<=e&&e<=49995||49997<=e&&e<=50023||50025<=e&&e<=50051||50053<=e&&e<=50079||50081<=e&&e<=50107||50109<=e&&e<=50135||50137<=e&&e<=50163||50165<=e&&e<=50191||50193<=e&&e<=50219||50221<=e&&e<=50247||50249<=e&&e<=50275||50277<=e&&e<=50303||50305<=e&&e<=50331||50333<=e&&e<=50359||50361<=e&&e<=50387||50389<=e&&e<=50415||50417<=e&&e<=50443||50445<=e&&e<=50471||50473<=e&&e<=50499||50501<=e&&e<=50527||50529<=e&&e<=50555||50557<=e&&e<=50583||50585<=e&&e<=50611||50613<=e&&e<=50639||50641<=e&&e<=50667||50669<=e&&e<=50695||50697<=e&&e<=50723||50725<=e&&e<=50751||50753<=e&&e<=50779||50781<=e&&e<=50807||50809<=e&&e<=50835||50837<=e&&e<=50863||50865<=e&&e<=50891||50893<=e&&e<=50919||50921<=e&&e<=50947||50949<=e&&e<=50975||50977<=e&&e<=51003||51005<=e&&e<=51031||51033<=e&&e<=51059||51061<=e&&e<=51087||51089<=e&&e<=51115||51117<=e&&e<=51143||51145<=e&&e<=51171||51173<=e&&e<=51199||51201<=e&&e<=51227||51229<=e&&e<=51255||51257<=e&&e<=51283||51285<=e&&e<=51311||51313<=e&&e<=51339||51341<=e&&e<=51367||51369<=e&&e<=51395||51397<=e&&e<=51423||51425<=e&&e<=51451||51453<=e&&e<=51479||51481<=e&&e<=51507||51509<=e&&e<=51535||51537<=e&&e<=51563||51565<=e&&e<=51591||51593<=e&&e<=51619||51621<=e&&e<=51647||51649<=e&&e<=51675||51677<=e&&e<=51703||51705<=e&&e<=51731||51733<=e&&e<=51759||51761<=e&&e<=51787||51789<=e&&e<=51815||51817<=e&&e<=51843||51845<=e&&e<=51871||51873<=e&&e<=51899||51901<=e&&e<=51927||51929<=e&&e<=51955||51957<=e&&e<=51983||51985<=e&&e<=52011||52013<=e&&e<=52039||52041<=e&&e<=52067||52069<=e&&e<=52095||52097<=e&&e<=52123||52125<=e&&e<=52151||52153<=e&&e<=52179||52181<=e&&e<=52207||52209<=e&&e<=52235||52237<=e&&e<=52263||52265<=e&&e<=52291||52293<=e&&e<=52319||52321<=e&&e<=52347||52349<=e&&e<=52375||52377<=e&&e<=52403||52405<=e&&e<=52431||52433<=e&&e<=52459||52461<=e&&e<=52487||52489<=e&&e<=52515||52517<=e&&e<=52543||52545<=e&&e<=52571||52573<=e&&e<=52599||52601<=e&&e<=52627||52629<=e&&e<=52655||52657<=e&&e<=52683||52685<=e&&e<=52711||52713<=e&&e<=52739||52741<=e&&e<=52767||52769<=e&&e<=52795||52797<=e&&e<=52823||52825<=e&&e<=52851||52853<=e&&e<=52879||52881<=e&&e<=52907||52909<=e&&e<=52935||52937<=e&&e<=52963||52965<=e&&e<=52991||52993<=e&&e<=53019||53021<=e&&e<=53047||53049<=e&&e<=53075||53077<=e&&e<=53103||53105<=e&&e<=53131||53133<=e&&e<=53159||53161<=e&&e<=53187||53189<=e&&e<=53215||53217<=e&&e<=53243||53245<=e&&e<=53271||53273<=e&&e<=53299||53301<=e&&e<=53327||53329<=e&&e<=53355||53357<=e&&e<=53383||53385<=e&&e<=53411||53413<=e&&e<=53439||53441<=e&&e<=53467||53469<=e&&e<=53495||53497<=e&&e<=53523||53525<=e&&e<=53551||53553<=e&&e<=53579||53581<=e&&e<=53607||53609<=e&&e<=53635||53637<=e&&e<=53663||53665<=e&&e<=53691||53693<=e&&e<=53719||53721<=e&&e<=53747||53749<=e&&e<=53775||53777<=e&&e<=53803||53805<=e&&e<=53831||53833<=e&&e<=53859||53861<=e&&e<=53887||53889<=e&&e<=53915||53917<=e&&e<=53943||53945<=e&&e<=53971||53973<=e&&e<=53999||54001<=e&&e<=54027||54029<=e&&e<=54055||54057<=e&&e<=54083||54085<=e&&e<=54111||54113<=e&&e<=54139||54141<=e&&e<=54167||54169<=e&&e<=54195||54197<=e&&e<=54223||54225<=e&&e<=54251||54253<=e&&e<=54279||54281<=e&&e<=54307||54309<=e&&e<=54335||54337<=e&&e<=54363||54365<=e&&e<=54391||54393<=e&&e<=54419||54421<=e&&e<=54447||54449<=e&&e<=54475||54477<=e&&e<=54503||54505<=e&&e<=54531||54533<=e&&e<=54559||54561<=e&&e<=54587||54589<=e&&e<=54615||54617<=e&&e<=54643||54645<=e&&e<=54671||54673<=e&&e<=54699||54701<=e&&e<=54727||54729<=e&&e<=54755||54757<=e&&e<=54783||54785<=e&&e<=54811||54813<=e&&e<=54839||54841<=e&&e<=54867||54869<=e&&e<=54895||54897<=e&&e<=54923||54925<=e&&e<=54951||54953<=e&&e<=54979||54981<=e&&e<=55007||55009<=e&&e<=55035||55037<=e&&e<=55063||55065<=e&&e<=55091||55093<=e&&e<=55119||55121<=e&&e<=55147||55149<=e&&e<=55175||55177<=e&&e<=55203?10:9757==e||9977==e||9994<=e&&e<=9997||127877==e||127938<=e&&e<=127940||127943==e||127946<=e&&e<=127948||128066<=e&&e<=128067||128070<=e&&e<=128080||128110==e||128112<=e&&e<=128120||128124==e||128129<=e&&e<=128131||128133<=e&&e<=128135||128170==e||128372<=e&&e<=128373||128378==e||128400==e||128405<=e&&e<=128406||128581<=e&&e<=128583||128587<=e&&e<=128591||128675==e||128692<=e&&e<=128694||128704==e||128716==e||129304<=e&&e<=129308||129310<=e&&e<=129311||129318==e||129328<=e&&e<=129337||129341<=e&&e<=129342||129489<=e&&e<=129501?13:127995<=e&&e<=127999?14:8205==e?15:9792==e||9794==e||9877<=e&&e<=9878||9992==e||10084==e||127752==e||127806==e||127859==e||127891==e||127908==e||127912==e||127979==e||127981==e||128139==e||128187<=e&&e<=128188||128295==e||128300==e||128488==e||128640==e||128658==e?16:128102<=e&&e<=128105?17:11}return this.nextBreak=function(i,n){if(void 0===n&&(n=0),n<0)return 0;if(n>=i.length-1)return i.length;for(var o,r=t(e(i,n)),a=[],s=n+1;s<i.length;s++)if(o=s-1,!(55296<=i.charCodeAt(o)&&56319>=i.charCodeAt(o)&&56320<=i.charCodeAt(o+1)&&57343>=i.charCodeAt(o+1))){var l=t(e(i,s));if(function(e,t,i){var n=[e].concat(t).concat([i]),o=n[n.length-2],r=n.lastIndexOf(14);if(r>1&&n.slice(1,r).every(function(e){return 3==e})&&-1==[3,13,17].indexOf(e))return 2;var a=n.lastIndexOf(4);if(a>0&&n.slice(1,a).every(function(e){return 4==e})&&-1==[12,4].indexOf(o))if(n.filter(function(e){return 4==e}).length%2==1)return 3;else return 4;if(0==o&&1==i)return 0;if(2==o||0==o||1==o)if(14==i&&t.every(function(e){return 3==e}))return 2;else return 1;if(2==i||0==i||1==i)return 1;if(6==o&&(6==i||7==i||9==i||10==i))return 0;if((9==o||7==o)&&(7==i||8==i))return 0;else if((10==o||8==o)&&8==i)return 0;else if(3==i||15==i)return 0;else if(5==i)return 0;else if(12==o)return 0;var s=-1!=n.indexOf(3)?n.lastIndexOf(3)-1:n.length-2;return -1!=[13,17].indexOf(n[s])&&n.slice(s+1,-1).every(function(e){return 3==e})&&14==i||15==o&&-1!=[16,17].indexOf(i)?0:-1!=t.indexOf(4)?2:+(4!=o||4!=i)}(r,a,l))return s;a.push(l)}return i.length},this.splitGraphemes=function(e){for(var t,i=[],n=0;(t=this.nextBreak(e,n))<e.length;)i.push(e.slice(n,t)),n=t;return n<e.length&&i.push(e.slice(n)),i},this.iterateGraphemes=function(e){var t=0,i={next:(function(){var i,n;return(n=this.nextBreak(e,t))<e.length?(i=e.slice(t,n),t=n,{value:i,done:!1}):t<e.length?(i=e.slice(t),t=e.length,{value:i,done:!1}):{value:void 0,done:!0}}).bind(this)};return"undefined"!=typeof Symbol&&Symbol.iterator&&(i[Symbol.iterator]=function(){return i}),i},this.countGraphemes=function(e){for(var t,i=0,n=0;(t=this.nextBreak(e,n))<e.length;)n=t,i++;return n<e.length&&i++,i},this})},48254:function(e){e.exports=function(e){return!!e&&"string"!=typeof e&&(e instanceof Array||Array.isArray(e)||e.length>=0&&(e.splice instanceof Function||Object.getOwnPropertyDescriptor(e,e.length-1)&&"String"!==e.constructor.name))}},74617:function(e){e.exports=function(){var e=function(e,t){var i=Array.prototype.concat,n=Array.prototype.slice,o=Object.prototype.toString;function r(t,i){var n=t>i?t:i;return e.pow(10,17-~~(e.log(n>0?n:-n)*e.LOG10E))}var a=Array.isArray||function(e){return"[object Array]"===o.call(e)};function s(e){return"[object Function]"===o.call(e)}function l(e){return"number"==typeof e&&e-e==0}function c(){return new c._init(arguments)}function d(){return 0}function u(){return 1}function h(e,t){return+(e===t)}c.fn=c.prototype,c._init=function(e){if(a(e[0]))if(a(e[0][0])){s(e[1])&&(e[0]=c.map(e[0],e[1]));for(var t=0;t<e[0].length;t++)this[t]=e[0][t];this.length=e[0].length}else this[0]=s(e[1])?c.map(e[0],e[1]):e[0],this.length=1;else if(l(e[0]))this[0]=c.seq.apply(null,e),this.length=1;else{if(e[0]instanceof c)return c(e[0].toArray());this[0]=[],this.length=1}return this},c._init.prototype=c.prototype,c._init.constructor=c,c.utils={calcRdx:r,isArray:a,isFunction:s,isNumber:l,toVector:function(e){return i.apply([],e)}},c._random_fn=e.random,c.setRandom=function(e){if("function"!=typeof e)throw TypeError("fn is not a function");c._random_fn=e},c.extend=function(e){var t,i;if(1==arguments.length){for(i in e)c[i]=e[i];return this}for(t=1;t<arguments.length;t++)for(i in arguments[t])e[i]=arguments[t][i];return e},c.rows=function(e){return e.length||1},c.cols=function(e){return e[0].length||1},c.dimensions=function(e){return{rows:c.rows(e),cols:c.cols(e)}},c.row=function(e,t){return a(t)?t.map(function(t){return c.row(e,t)}):e[t]},c.rowa=function(e,t){return c.row(e,t)},c.col=function(e,t){if(a(t)){var i=c.arange(e.length).map(function(){return Array(t.length)});return t.forEach(function(t,n){c.arange(e.length).forEach(function(o){i[o][n]=e[o][t]})}),i}for(var n=Array(e.length),o=0;o<e.length;o++)n[o]=[e[o][t]];return n},c.cola=function(e,t){return c.col(e,t).map(function(e){return e[0]})},c.diag=function(e){for(var t=c.rows(e),i=Array(t),n=0;n<t;n++)i[n]=[e[n][n]];return i},c.antidiag=function(e){for(var t=c.rows(e)-1,i=Array(t),n=0;t>=0;t--,n++)i[n]=[e[n][t]];return i},c.transpose=function(e){var t,i,n,o,r,s=[];for(a(e[0])||(e=[e]),i=e.length,n=e[0].length,r=0;r<n;r++){for(o=0,t=Array(i);o<i;o++)t[o]=e[o][r];s.push(t)}return 1===s.length?s[0]:s},c.map=function(e,t,i){var n,o,r,s,l;for(a(e[0])||(e=[e]),o=e.length,r=e[0].length,s=i?e:Array(o),n=0;n<o;n++)for(s[n]||(s[n]=Array(r)),l=0;l<r;l++)s[n][l]=t(e[n][l],n,l);return 1===s.length?s[0]:s},c.cumreduce=function(e,t,i){var n,o,r,s,l;for(a(e[0])||(e=[e]),o=e.length,r=e[0].length,s=i?e:Array(o),n=0;n<o;n++)for(s[n]||(s[n]=Array(r)),r>0&&(s[n][0]=e[n][0]),l=1;l<r;l++)s[n][l]=t(s[n][l-1],e[n][l]);return 1===s.length?s[0]:s},c.alter=function(e,t){return c.map(e,t,!0)},c.create=function(e,t,i){var n,o,r=Array(e);for(s(t)&&(i=t,t=e),n=0;n<e;n++)for(o=0,r[n]=Array(t);o<t;o++)r[n][o]=i(n,o);return r},c.zeros=function(e,t){return l(t)||(t=e),c.create(e,t,d)},c.ones=function(e,t){return l(t)||(t=e),c.create(e,t,u)},c.rand=function(e,t){return l(t)||(t=e),c.create(e,t,c._random_fn)},c.identity=function(e,t){return l(t)||(t=e),c.create(e,t,h)},c.symmetric=function(e){var t,i,n=e.length;if(e.length!==e[0].length)return!1;for(t=0;t<n;t++)for(i=0;i<n;i++)if(e[i][t]!==e[t][i])return!1;return!0},c.clear=function(e){return c.alter(e,d)},c.seq=function(e,t,i,n){s(n)||(n=!1);var o,a=[],l=r(e,t),c=(t*l-e*l)/((i-1)*l),d=e;for(o=0;d<=t&&o<i;d=(e*l+c*l*++o)/l)a.push(n?n(d,o):d);return a},c.arange=function(e,i,n){var o,r=[];if(n=n||1,t===i&&(i=e,e=0),e===i||0===n||e<i&&n<0||e>i&&n>0)return[];if(n>0)for(o=e;o<i;o+=n)r.push(o);else for(o=e;o>i;o+=n)r.push(o);return r},c.slice=function(){function e(e,i,n,o){var r,a=[],s=e.length;if(t===i&&t===n&&t===o)return c.copy(e);if(i=i||0,n=n||e.length,o=o||1,(i=i>=0?i:s+i)===(n=n>=0?n:s+n)||0===o||i<n&&o<0||i>n&&o>0)return[];if(o>0)for(r=i;r<n;r+=o)a.push(e[r]);else for(r=i;r>n;r+=o)a.push(e[r]);return a}return function(t,i){if(l((i=i||{}).row)){var n,o;if(l(i.col))return t[i.row][i.col];return e(c.rowa(t,i.row),(n=i.col||{}).start,n.end,n.step)}return l(i.col)?e(c.cola(t,i.col),(o=i.row||{}).start,o.end,o.step):(o=i.row||{},n=i.col||{},e(t,o.start,o.end,o.step).map(function(t){return e(t,n.start,n.end,n.step)}))}}(),c.sliceAssign=function(i,n,o){var r,a;if(l(n.row)){if(l(n.col))return i[n.row][n.col]=o;n.col=n.col||{},n.col.start=n.col.start||0,n.col.end=n.col.end||i[0].length,n.col.step=n.col.step||1,r=c.arange(n.col.start,e.min(i.length,n.col.end),n.col.step);var s=n.row;return r.forEach(function(e,t){i[s][e]=o[t]}),i}if(l(n.col)){n.row=n.row||{},n.row.start=n.row.start||0,n.row.end=n.row.end||i.length,n.row.step=n.row.step||1,a=c.arange(n.row.start,e.min(i[0].length,n.row.end),n.row.step);var d=n.col;return a.forEach(function(e,t){i[e][d]=o[t]}),i}return o[0].length===t&&(o=[o]),n.row.start=n.row.start||0,n.row.end=n.row.end||i.length,n.row.step=n.row.step||1,n.col.start=n.col.start||0,n.col.end=n.col.end||i[0].length,n.col.step=n.col.step||1,a=c.arange(n.row.start,e.min(i.length,n.row.end),n.row.step),r=c.arange(n.col.start,e.min(i[0].length,n.col.end),n.col.step),a.forEach(function(e,t){r.forEach(function(n,r){i[e][n]=o[t][r]})}),i},c.diagonal=function(e){var t=c.zeros(e.length,e.length);return e.forEach(function(e,i){t[i][i]=e}),t},c.copy=function(e){return e.map(function(e){return l(e)?e:e.map(function(e){return e})})};var p=c.prototype;p.length=0,p.push=Array.prototype.push,p.sort=Array.prototype.sort,p.splice=Array.prototype.splice,p.slice=Array.prototype.slice,p.toArray=function(){return this.length>1?n.call(this):n.call(this)[0]},p.map=function(e,t){return c(c.map(this,e,t))},p.cumreduce=function(e,t){return c(c.cumreduce(this,e,t))},p.alter=function(e){return c.alter(this,e),this};for(var f="transpose clear symmetric rows cols dimensions diag antidiag".split(" "),g=0;g<f.length;g++)!function(e){p[e]=function(t){var i,n=this;return t?(setTimeout(function(){t.call(n,p[e].call(n))}),this):a(i=c[e](this))?c(i):i}}(f[g]);for(var m="row col".split(" "),v=0;v<m.length;v++)!function(e){p[e]=function(t,i){var n=this;return i?(setTimeout(function(){i.call(n,p[e].call(n,t))}),this):c(c[e](this,t))}}(m[v]);for(var b="create zeros ones rand identity".split(" "),y=0;y<b.length;y++)!function(e){p[e]=function(){return c(c[e].apply(null,arguments))}}(b[y]);return c}(Math);!function(e,t){var i=e.utils.isFunction;function n(e,t){return e-t}function o(e,i,n){return t.max(i,t.min(e,n))}e.sum=function(e){for(var t=0,i=e.length;--i>=0;)t+=e[i];return t},e.sumsqrd=function(e){for(var t=0,i=e.length;--i>=0;)t+=e[i]*e[i];return t},e.sumsqerr=function(t){for(var i,n=e.mean(t),o=0,r=t.length;--r>=0;)o+=(i=t[r]-n)*i;return o},e.sumrow=function(e){for(var t=0,i=e.length;--i>=0;)t+=e[i];return t},e.product=function(e){for(var t=1,i=e.length;--i>=0;)t*=e[i];return t},e.min=function(e){for(var t=e[0],i=0;++i<e.length;)e[i]<t&&(t=e[i]);return t},e.max=function(e){for(var t=e[0],i=0;++i<e.length;)e[i]>t&&(t=e[i]);return t},e.unique=function(e){for(var t={},i=[],n=0;n<e.length;n++)t[e[n]]||(t[e[n]]=!0,i.push(e[n]));return i},e.mean=function(t){return e.sum(t)/t.length},e.meansqerr=function(t){return e.sumsqerr(t)/t.length},e.geomean=function(i){var n=i.map(t.log),o=e.mean(n);return t.exp(o)},e.median=function(e){var t=e.length,i=e.slice().sort(n);return 1&t?i[t/2|0]:(i[t/2-1]+i[t/2])/2},e.cumsum=function(t){return e.cumreduce(t,function(e,t){return e+t})},e.cumprod=function(t){return e.cumreduce(t,function(e,t){return e*t})},e.diff=function(e){var t,i=[],n=e.length;for(t=1;t<n;t++)i.push(e[t]-e[t-1]);return i},e.rank=function(e){var t,i=[],o={};for(t=0;t<e.length;t++){var r=e[t];o[r]?o[r]++:(o[r]=1,i.push(r))}var a=i.sort(n),s={},l=1;for(t=0;t<a.length;t++){var r=a[t],c=o[r],d=(l+(l+c-1))/2;s[r]=d,l+=c}return e.map(function(e){return s[e]})},e.mode=function(e){var t,i=e.length,o=e.slice().sort(n),r=1,a=0,s=0,l=[];for(t=0;t<i;t++)o[t]===o[t+1]?r++:(r>a?(l=[o[t]],a=r,s=0):r===a&&(l.push(o[t]),s++),r=1);return 0===s?l[0]:l},e.range=function(t){return e.max(t)-e.min(t)},e.variance=function(t,i){return e.sumsqerr(t)/(t.length-+!!i)},e.pooledvariance=function(t){return t.reduce(function(t,i){return t+e.sumsqerr(i)},0)/(t.reduce(function(e,t){return e+t.length},0)-t.length)},e.deviation=function(t){for(var i=e.mean(t),n=t.length,o=Array(n),r=0;r<n;r++)o[r]=t[r]-i;return o},e.stdev=function(i,n){return t.sqrt(e.variance(i,n))},e.pooledstdev=function(i){return t.sqrt(e.pooledvariance(i))},e.meandev=function(i){for(var n=e.mean(i),o=[],r=i.length-1;r>=0;r--)o.push(t.abs(i[r]-n));return e.mean(o)},e.meddev=function(i){for(var n=e.median(i),o=[],r=i.length-1;r>=0;r--)o.push(t.abs(i[r]-n));return e.median(o)},e.coeffvar=function(t){return e.stdev(t)/e.mean(t)},e.quartiles=function(e){var i=e.length,o=e.slice().sort(n);return[o[t.round(i/4)-1],o[t.round(i/2)-1],o[t.round(3*i/4)-1]]},e.quantiles=function(e,i,r,a){var s,l,c,d,u,h,p=e.slice().sort(n),f=[i.length],g=e.length;for(void 0===r&&(r=3/8),void 0===a&&(a=3/8),s=0;s<i.length;s++)c=r+(l=i[s])*(1-r-a),d=g*l+c,u=t.floor(o(d,1,g-1)),h=o(d-u,0,1),f[s]=(1-h)*p[u-1]+h*p[u];return f},e.percentile=function(e,t,i){var o=e.slice().sort(n),r=t*(o.length+(i?1:-1))+ +!i,a=parseInt(r);return a+1<o.length?o[a-1]+(r-a)*(o[a]-o[a-1]):o[a-1]},e.percentileOfScore=function(e,t,i){var n,o,r=0,a=e.length,s=!1;for("strict"===i&&(s=!0),o=0;o<a;o++)n=e[o],(s&&n<t||!s&&n<=t)&&r++;return r/a},e.histogram=function(i,n){n=n||4;var o,r=e.min(i),a=(e.max(i)-r)/n,s=i.length,l=[];for(o=0;o<n;o++)l[o]=0;for(o=0;o<s;o++)l[t.min(t.floor((i[o]-r)/a),n-1)]+=1;return l},e.covariance=function(t,i){var n,o=e.mean(t),r=e.mean(i),a=t.length,s=Array(a);for(n=0;n<a;n++)s[n]=(t[n]-o)*(i[n]-r);return e.sum(s)/(a-1)},e.corrcoeff=function(t,i){return e.covariance(t,i)/e.stdev(t,1)/e.stdev(i,1)},e.spearmancoeff=function(t,i){return t=e.rank(t),i=e.rank(i),e.corrcoeff(t,i)},e.stanMoment=function(i,n){for(var o=e.mean(i),r=e.stdev(i),a=i.length,s=0,l=0;l<a;l++)s+=t.pow((i[l]-o)/r,n);return s/i.length},e.skewness=function(t){return e.stanMoment(t,3)},e.kurtosis=function(t){return e.stanMoment(t,4)-3};for(var r=e.prototype,a="cumsum cumprod".split(" "),s=0;s<a.length;s++)!function(t){r[t]=function(n,o){var a=[],s=0,l=this;if(i(n)&&(o=n,n=!1),o)return setTimeout(function(){o.call(l,r[t].call(l,n))}),this;if(this.length>1){for(l=!0===n?this:this.transpose();s<l.length;s++)a[s]=e[t](l[s]);return a}return e[t](this[0],n)}}(a[s]);for(var l="sum sumsqrd sumsqerr sumrow product min max unique mean meansqerr geomean median diff rank mode range variance deviation stdev meandev meddev coeffvar quartiles histogram skewness kurtosis".split(" "),c=0;c<l.length;c++)!function(t){r[t]=function(n,o){var a=[],s=0,l=this;if(i(n)&&(o=n,n=!1),o)return setTimeout(function(){o.call(l,r[t].call(l,n))}),this;if(this.length>1){for("sumrow"!==t&&(l=!0===n?this:this.transpose());s<l.length;s++)a[s]=e[t](l[s]);return!0===n?e[t](e.utils.toVector(a)):a}return e[t](this[0],n)}}(l[c]);for(var d="quantiles percentileOfScore".split(" "),u=0;u<d.length;u++)!function(t){r[t]=function(){var n,o=[],a=0,s=this,l=Array.prototype.slice.call(arguments);if(i(l[l.length-1])){n=l[l.length-1];var c=l.slice(0,l.length-1);return setTimeout(function(){n.call(s,r[t].apply(s,c))}),this}n=void 0;var d=function(i){return e[t].apply(s,[i].concat(l))};if(this.length>1){for(s=s.transpose();a<s.length;a++)o[a]=d(s[a]);return o}return d(this[0])}}(d[u])}(e,Math);var t=Math;e.gammaln=function(e){var i,n,o=0,r=[76.18009172947146,-86.50532032941678,24.01409824083091,-1.231739572450155,.001208650973866179,-5395239384953e-18],a=1.000000000190015;for(n=(i=e)+5.5,n-=(e+.5)*t.log(n);o<6;o++)a+=r[o]/++i;return t.log(2.5066282746310007*a/e)-n},e.loggam=function(e){var i,n,o,r,a,s,l,c=[.08333333333333333,-.002777777777777778,7936507936507937e-19,-5952380952380952e-19,8417508417508418e-19,-.001917526917526918,.00641025641025641,-.02955065359477124,.1796443723688307,-1.3924322169059];if(i=e,l=0,1==e||2==e)return 0;for(e<=7&&(l=t.floor(7-e),i=e+l),n=1/(i*i),o=2*t.PI,a=c[9],s=8;s>=0;s--)a*=n,a+=c[s];if(r=a/i+.5*t.log(o)+(i-.5)*t.log(i)-i,e<=7)for(s=1;s<=l;s++)r-=t.log(i-1),i-=1;return r},e.gammafn=function(e){var i,n,o,r,a=[-1.716185138865495,24.76565080557592,-379.80425647094563,629.3311553128184,866.9662027904133,-31451.272968848367,-36144.413418691176,66456.14382024054],s=[-30.8402300119739,315.35062697960416,-1015.1563674902192,-3107.771671572311,22538.11842098015,4755.846277527881,-134659.9598649693,-115132.2596755535],l=!1,c=0,d=0,u=0,h=e;if(e>171.6243769536076)return 1/0;if(h<=0){if(!(r=h%1+36e-17))return 1/0;l=(1&h?-1:1)*t.PI/t.sin(t.PI*r),h=1-h}for(i=0,o=h,n=h<1?h++:(h-=c=(0|h)-1)-1;i<8;++i)u=(u+a[i])*n,d=d*n+s[i];if(r=u/d+1,o<h)r/=o;else if(o>h)for(i=0;i<c;++i)r*=h,h++;return l&&(r=l/r),r},e.gammap=function(t,i){return e.lowRegGamma(t,i)*e.gammafn(t)},e.lowRegGamma=function(i,n){var o,r=e.gammaln(i),a=i,s=1/i,l=s,c=n+1-i,d=1/1e-30,u=1/c,h=u,p=1,f=-~(8.5*t.log(i>=1?i:1/i)+.4*i+17);if(n<0||i<=0)return NaN;if(n<i+1){for(;p<=f;p++)s+=l*=n/++a;return s*t.exp(-n+i*t.log(n)-r)}for(;p<=f;p++)c+=2,h*=(u=1/(u=(o=-p*(p-i))*u+c))*(d=c+o/d);return 1-h*t.exp(-n+i*t.log(n)-r)},e.factorialln=function(t){return t<0?NaN:e.gammaln(t+1)},e.factorial=function(t){return t<0?NaN:e.gammafn(t+1)},e.combination=function(i,n){return i>170||n>170?t.exp(e.combinationln(i,n)):e.factorial(i)/e.factorial(n)/e.factorial(i-n)},e.combinationln=function(t,i){return e.factorialln(t)-e.factorialln(i)-e.factorialln(t-i)},e.permutation=function(t,i){return e.factorial(t)/e.factorial(t-i)},e.betafn=function(i,n){if(!(i<=0)&&!(n<=0))return i+n>170?t.exp(e.betaln(i,n)):e.gammafn(i)*e.gammafn(n)/e.gammafn(i+n)},e.betaln=function(t,i){return e.gammaln(t)+e.gammaln(i)-e.gammaln(t+i)},e.betacf=function(e,i,n){var o,r,a,s,l=1,c=i+n,d=i+1,u=i-1,h=1,p=1-c*e/d;for(1e-30>t.abs(p)&&(p=1e-30),s=p=1/p;l<=100&&(o=2*l,p=1+(r=l*(n-l)*e/((u+o)*(i+o)))*p,1e-30>t.abs(p)&&(p=1e-30),h=1+r/h,1e-30>t.abs(h)&&(h=1e-30),s*=(p=1/p)*h,p=1+(r=-(i+l)*(c+l)*e/((i+o)*(d+o)))*p,1e-30>t.abs(p)&&(p=1e-30),h=1+r/h,1e-30>t.abs(h)&&(h=1e-30),s*=a=(p=1/p)*h,!(3e-7>t.abs(a-1)));l++);return s},e.gammapinv=function(i,n){var o,r,a,s,l,c=0,d=n-1,u=e.gammaln(n);if(i>=1)return t.max(100,n+100*t.sqrt(n));if(i<=0)return 0;for(n>1?(s=t.log(d),l=t.exp(d*(s-1)-u),o=(2.30753+.27061*(r=t.sqrt(-2*t.log(i<.5?i:1-i))))/(1+r*(.99229+.04481*r))-r,i<.5&&(o=-o),o=t.max(.001,n*t.pow(1-1/(9*n)-o/(3*t.sqrt(n)),3))):o=i<(r=1-n*(.253+.12*n))?t.pow(i/r,1/n):1-t.log(1-(i-r)/(1-r));c<12;c++){if(o<=0)return 0;if(a=(e.lowRegGamma(n,o)-i)/(r=n>1?l*t.exp(-(o-d)+d*(t.log(o)-s)):t.exp(-o+d*t.log(o)-u)),(o-=r=a/(1-.5*t.min(1,a*((n-1)/o-1))))<=0&&(o=.5*(o+r)),t.abs(r)<1e-8*o)break}return o},e.erf=function(e){var i,n,o,r,a=[-1.3026537197817094,.6419697923564902,.019476473204185836,-.00956151478680863,-946595344482036e-18,366839497852761e-18,42523324806907e-18,-20278578112534e-18,-1624290004647e-18,130365583558e-17,15626441722e-18,-85238095915e-18,6529054439e-18,5059343495e-18,-991364156e-18,-227365122e-18,96467911e-18,2394038e-18,-6886027e-18,894487e-18,313092e-18,-112708e-18,381e-18,7106e-18,-1523e-18,-94e-18,121e-18,-28e-18],s=a.length-1,l=!1,c=0,d=0;for(e<0&&(e=-e,l=!0),n=4*(i=2/(2+e))-2;s>0;s--)o=c,c=n*c-d+a[s],d=o;return r=i*t.exp(-e*e+.5*(a[0]+n*c)-d),l?r-1:1-r},e.erfc=function(t){return 1-e.erf(t)},e.erfcinv=function(i){var n,o,r,a,s=0;if(i>=2)return -100;if(i<=0)return 100;for(a=i<1?i:2-i,n=-.70711*((2.30753+.27061*(r=t.sqrt(-2*t.log(a/2))))/(1+r*(.99229+.04481*r))-r);s<2;s++)o=e.erfc(n)-a,n+=o/(1.1283791670955126*t.exp(-n*n)-n*o);return i<1?n:-n},e.ibetainv=function(i,n,o){var r,a,s,l,c,d,u,h,p,f=n-1,g=o-1,m=0;if(i<=0)return 0;if(i>=1)return 1;for(n>=1&&o>=1?(c=(2.30753+.27061*(s=t.sqrt(-2*t.log(i<.5?i:1-i))))/(1+s*(.99229+.04481*s))-s,i<.5&&(c=-c),d=(c*c-3)/6,u=2/(1/(2*n-1)+1/(2*o-1)),h=c*t.sqrt(d+u)/u-(1/(2*o-1)-1/(2*n-1))*(d+5/6-2/(3*u)),c=n/(n+o*t.exp(2*h))):(r=t.log(n/(n+o)),a=t.log(o/(n+o)),h=(s=t.exp(n*r)/n)+(l=t.exp(o*a)/o),c=i<s/h?t.pow(n*h*i,1/n):1-t.pow(o*h*(1-i),1/o)),p=-e.gammaln(n)-e.gammaln(o)+e.gammaln(n+o);m<10&&0!==c&&1!==c&&(l=(e.ibeta(c,n,o)-i)/(s=t.exp(f*t.log(c)+g*t.log(1-c)+p)),(c-=s=l/(1-.5*t.min(1,l*(f/c-g/(1-c)))))<=0&&(c=.5*(c+s)),c>=1&&(c=.5*(c+s+1)),!(t.abs(s)<1e-8*c)||!(m>0));m++);return c},e.ibeta=function(i,n,o){var r=0===i||1===i?0:t.exp(e.gammaln(n+o)-e.gammaln(n)-e.gammaln(o)+n*t.log(i)+o*t.log(1-i));return!(i<0)&&!(i>1)&&(i<(n+1)/(n+o+2)?r*e.betacf(i,n,o)/n:1-r*e.betacf(1-i,o,n)/o)},e.randn=function(i,n){var o,r,a,s,l;if(n||(n=i),i)return e.create(i,n,function(){return e.randn()});do o=e._random_fn(),r=1.7156*(e._random_fn()-.5),l=(a=o-.449871)*a+(s=t.abs(r)+.386595)*(.196*s-.25472*a);while(l>.27597&&(l>.27846||r*r>-4*t.log(o)*o*o));return r/o},e.randg=function(i,n,o){var r,a,s,l,c,d,u=i;if(o||(o=n),i||(i=1),n)return(d=e.zeros(n,o)).alter(function(){return e.randg(i)}),d;i<1&&(i+=1),r=i-1/3,a=1/t.sqrt(9*r);do{do l=1+a*(c=e.randn());while(l<=0);l=l*l*l,s=e._random_fn()}while(s>1-.331*t.pow(c,4)&&t.log(s)>.5*c*c+r*(1-l+t.log(l)));if(i==u)return r*l;do s=e._random_fn();while(0===s);return t.pow(s,1/u)*r*l};for(var i="gammaln gammafn factorial factorialln".split(" "),n=0;n<i.length;n++)!function(t){e.fn[t]=function(){return e(e.map(this,function(i){return e[t](i)}))}}(i[n]);for(var o="randn".split(" "),r=0;r<o.length;r++)!function(t){e.fn[t]=function(){return e(e[t].apply(null,arguments))}}(o[r]);for(var a=Math,s="beta centralF cauchy chisquare exponential gamma invgamma kumaraswamy laplace lognormal noncentralt normal pareto studentt weibull uniform binomial negbin hypgeom poisson triangular tukey arcsine".split(" "),l=0;l<s.length;l++)!function(t){e[t]=function e(t,i,n){return this instanceof e?(this._a=t,this._b=i,this._c=n,this):new e(t,i,n)},e.fn[t]=function(i,n,o){var r=e[t](i,n,o);return r.data=this,r},e[t].prototype.sample=function(i){var n=this._a,o=this._b,r=this._c;return i?e.alter(i,function(){return e[t].sample(n,o,r)}):e[t].sample(n,o,r)};for(var i="pdf cdf inv".split(" "),n=0;n<i.length;n++)!function(i){e[t].prototype[i]=function(n){var o=this._a,r=this._b,a=this._c;return(n||0===n||(n=this.data),"number"!=typeof n)?e.fn.map.call(n,function(n){return e[t][i](n,o,r,a)}):e[t][i](n,o,r,a)}}(i[n]);for(var o="mean median mode variance".split(" "),r=0;r<o.length;r++)!function(i){e[t].prototype[i]=function(){return e[t][i](this._a,this._b,this._c)}}(o[r])}(s[l]);function c(e,t,i,n){for(var o,r=0,s=1,l=1,c=1,d=0,u=0;a.abs((l-u)/l)>n;)u=l,r=l+(o=-(t+d)*(t+i+d)*e/(t+2*d)/(t+2*d+1))*r,s=c+o*s,d+=1,l=r+(o=d*(i-d)*e/(t+2*d-1)/(t+2*d))*l,r/=c=s+o*c,s/=c,l/=c,c=1;return l/t}function d(t,i,n){var o=[.9815606342467192,.9041172563704749,.7699026741943047,.5873179542866175,.3678314989981802,.1252334085114689],r=[.04717533638651183,.10693932599531843,.16007832854334622,.20316742672306592,.2334925365383548,.24914704581340277],s=.5*t;if(s>=8)return 1;var l=2*e.normal.cdf(s,0,1,1,0)-1;l=l>=a.exp(-50/n)?a.pow(l,n):0;for(var c=s,d=(8-s)/(y=t>3?2:3),u=c+d,h=0,p=n-1,f=1;f<=y;f++){for(var g=0,m=.5*(u+c),v=.5*(u-c),b=1;b<=12;b++){var y,w,_=m+v*(6<b?o[(w=12-b+1)-1]:-o[(w=b)-1]),x=_*_;if(x>60)break;var S=.5*(2*e.normal.cdf(_,0,1,1,0))-.5*(2*e.normal.cdf(_,t,1,1,0));S>=a.exp(-30/p)&&(g+=S=r[w-1]*a.exp(-(.5*x))*a.pow(S,p))}g*=2*v*n/a.sqrt(2*a.PI),h+=g,c=u,u+=d}return(l+=h)<=a.exp(-30/i)?0:(l=a.pow(l,i))>=1?1:l}e.extend(e.beta,{pdf:function(t,i,n){return t>1||t<0?0:1==i&&1==n?1:i<512&&n<512?a.pow(t,i-1)*a.pow(1-t,n-1)/e.betafn(i,n):a.exp((i-1)*a.log(t)+(n-1)*a.log(1-t)-e.betaln(i,n))},cdf:function(t,i,n){return t>1||t<0?(t>1)*1:e.ibeta(t,i,n)},inv:function(t,i,n){return e.ibetainv(t,i,n)},mean:function(e,t){return e/(e+t)},median:function(t,i){return e.ibetainv(.5,t,i)},mode:function(e,t){return(e-1)/(e+t-2)},sample:function(t,i){var n=e.randg(t);return n/(n+e.randg(i))},variance:function(e,t){return e*t/(a.pow(e+t,2)*(e+t+1))}}),e.extend(e.centralF,{pdf:function(t,i,n){var o;return t<0?0:i<=2?0===t&&i<2?1/0:0===t&&2===i?1:1/e.betafn(i/2,n/2)*a.pow(i/n,i/2)*a.pow(t,i/2-1)*a.pow(1+i/n*t,-(i+n)/2):(o=n/(n+t*i),i*o/2*e.binomial.pdf((i-2)/2,(i+n-2)/2,i*t/(n+t*i)))},cdf:function(t,i,n){return t<0?0:e.ibeta(i*t/(i*t+n),i/2,n/2)},inv:function(t,i,n){return n/(i*(1/e.ibetainv(t,i/2,n/2)-1))},mean:function(e,t){return t>2?t/(t-2):void 0},mode:function(e,t){return e>2?t*(e-2)/(e*(t+2)):void 0},sample:function(t,i){return 2*e.randg(t/2)/t/(2*e.randg(i/2)/i)},variance:function(e,t){if(!(t<=4))return 2*t*t*(e+t-2)/(e*(t-2)*(t-2)*(t-4))}}),e.extend(e.cauchy,{pdf:function(e,t,i){return i<0?0:i/(a.pow(e-t,2)+a.pow(i,2))/a.PI},cdf:function(e,t,i){return a.atan((e-t)/i)/a.PI+.5},inv:function(e,t,i){return t+i*a.tan(a.PI*(e-.5))},median:function(e){return e},mode:function(e){return e},sample:function(t,i){return e.randn()*a.sqrt(1/(2*e.randg(.5)))*i+t}}),e.extend(e.chisquare,{pdf:function(t,i){return t<0?0:0===t&&2===i?.5:a.exp((i/2-1)*a.log(t)-t/2-i/2*a.log(2)-e.gammaln(i/2))},cdf:function(t,i){return t<0?0:e.lowRegGamma(i/2,t/2)},inv:function(t,i){return 2*e.gammapinv(t,.5*i)},mean:function(e){return e},median:function(e){return e*a.pow(1-2/(9*e),3)},mode:function(e){return e-2>0?e-2:0},sample:function(t){return 2*e.randg(t/2)},variance:function(e){return 2*e}}),e.extend(e.exponential,{pdf:function(e,t){return e<0?0:t*a.exp(-t*e)},cdf:function(e,t){return e<0?0:1-a.exp(-t*e)},inv:function(e,t){return-a.log(1-e)/t},mean:function(e){return 1/e},median:function(e){return 1/e*a.log(2)},mode:function(){return 0},sample:function(t){return -1/t*a.log(e._random_fn())},variance:function(e){return a.pow(e,-2)}}),e.extend(e.gamma,{pdf:function(t,i,n){return t<0?0:0===t&&1===i?1/n:a.exp((i-1)*a.log(t)-t/n-e.gammaln(i)-i*a.log(n))},cdf:function(t,i,n){return t<0?0:e.lowRegGamma(i,t/n)},inv:function(t,i,n){return e.gammapinv(t,i)*n},mean:function(e,t){return e*t},mode:function(e,t){if(e>1)return(e-1)*t},sample:function(t,i){return e.randg(t)*i},variance:function(e,t){return e*t*t}}),e.extend(e.invgamma,{pdf:function(t,i,n){return t<=0?0:a.exp(-(i+1)*a.log(t)-n/t-e.gammaln(i)+i*a.log(n))},cdf:function(t,i,n){return t<=0?0:1-e.lowRegGamma(i,n/t)},inv:function(t,i,n){return n/e.gammapinv(1-t,i)},mean:function(e,t){return e>1?t/(e-1):void 0},mode:function(e,t){return t/(e+1)},sample:function(t,i){return i/e.randg(t)},variance:function(e,t){if(!(e<=2))return t*t/((e-1)*(e-1)*(e-2))}}),e.extend(e.kumaraswamy,{pdf:function(e,t,i){return 0===e&&1===t?i:1===e&&1===i?t:a.exp(a.log(t)+a.log(i)+(t-1)*a.log(e)+(i-1)*a.log(1-a.pow(e,t)))},cdf:function(e,t,i){return e<0?0:e>1?1:1-a.pow(1-a.pow(e,t),i)},inv:function(e,t,i){return a.pow(1-a.pow(1-e,1/i),1/t)},mean:function(t,i){return i*e.gammafn(1+1/t)*e.gammafn(i)/e.gammafn(1+1/t+i)},median:function(e,t){return a.pow(1-a.pow(2,-1/t),1/e)},mode:function(e,t){if(e>=1&&t>=1&&1!==e&&1!==t)return a.pow((e-1)/(e*t-1),1/e)},variance:function(){throw Error("variance not yet implemented")}}),e.extend(e.lognormal,{pdf:function(e,t,i){return e<=0?0:a.exp(-a.log(e)-.5*a.log(2*a.PI)-a.log(i)-a.pow(a.log(e)-t,2)/(2*i*i))},cdf:function(t,i,n){return t<0?0:.5+.5*e.erf((a.log(t)-i)/a.sqrt(2*n*n))},inv:function(t,i,n){return a.exp(-1.4142135623730951*n*e.erfcinv(2*t)+i)},mean:function(e,t){return a.exp(e+t*t/2)},median:function(e){return a.exp(e)},mode:function(e,t){return a.exp(e-t*t)},sample:function(t,i){return a.exp(e.randn()*i+t)},variance:function(e,t){return(a.exp(t*t)-1)*a.exp(2*e+t*t)}}),e.extend(e.noncentralt,{pdf:function(t,i,n){return 1e-14>a.abs(n)?e.studentt.pdf(t,i):1e-14>a.abs(t)?a.exp(e.gammaln((i+1)/2)-n*n/2-.5*a.log(a.PI*i)-e.gammaln(i/2)):i/t*(e.noncentralt.cdf(t*a.sqrt(1+2/i),i+2,n)-e.noncentralt.cdf(t,i,n))},cdf:function(t,i,n){if(1e-14>a.abs(n))return e.studentt.cdf(t,i);var o=!1;t<0&&(o=!0,n=-n);for(var r=e.normal.cdf(-n,0,1),s=1e-14+1,l=1e-14+1,c=t*t/(t*t+i),d=0,u=a.exp(-n*n/2),h=a.exp(-n*n/2-.5*a.log(2)-e.gammaln(1.5))*n;d<200||l>1e-14||s>1e-14;)l=s,d>0&&(u*=n*n/(2*d),h*=n*n/(2*(d+.5))),r+=.5*(s=u*e.beta.cdf(c,d+.5,i/2)+h*e.beta.cdf(c,d+1,i/2)),d++;return o?1-r:r}}),e.extend(e.normal,{pdf:function(e,t,i){return a.exp(-.5*a.log(2*a.PI)-a.log(i)-a.pow(e-t,2)/(2*i*i))},cdf:function(t,i,n){return .5*(1+e.erf((t-i)/a.sqrt(2*n*n)))},inv:function(t,i,n){return -1.4142135623730951*n*e.erfcinv(2*t)+i},mean:function(e){return e},median:function(e){return e},mode:function(e){return e},sample:function(t,i){return e.randn()*i+t},variance:function(e,t){return t*t}}),e.extend(e.pareto,{pdf:function(e,t,i){return e<t?0:i*a.pow(t,i)/a.pow(e,i+1)},cdf:function(e,t,i){return e<t?0:1-a.pow(t/e,i)},inv:function(e,t,i){return t/a.pow(1-e,1/i)},mean:function(e,t){if(!(t<=1))return t*a.pow(e,t)/(t-1)},median:function(e,t){return e*(t*a.SQRT2)},mode:function(e){return e},variance:function(e,t){if(!(t<=2))return e*e*t/(a.pow(t-1,2)*(t-2))}}),e.extend(e.studentt,{pdf:function(t,i){return i=i>1e100?1e100:i,1/(a.sqrt(i)*e.betafn(.5,i/2))*a.pow(1+t*t/i,-((i+1)/2))},cdf:function(t,i){var n=i/2;return e.ibeta((t+a.sqrt(t*t+i))/(2*a.sqrt(t*t+i)),n,n)},inv:function(t,i){var n=e.ibetainv(2*a.min(t,1-t),.5*i,.5);return n=a.sqrt(i*(1-n)/n),t>.5?n:-n},mean:function(e){return e>1?0:void 0},median:function(){return 0},mode:function(){return 0},sample:function(t){return e.randn()*a.sqrt(t/(2*e.randg(t/2)))},variance:function(e){return e>2?e/(e-2):e>1?1/0:void 0}}),e.extend(e.weibull,{pdf:function(e,t,i){return e<0||t<0||i<0?0:i/t*a.pow(e/t,i-1)*a.exp(-a.pow(e/t,i))},cdf:function(e,t,i){return e<0?0:1-a.exp(-a.pow(e/t,i))},inv:function(e,t,i){return t*a.pow(-a.log(1-e),1/i)},mean:function(t,i){return t*e.gammafn(1+1/i)},median:function(e,t){return e*a.pow(a.log(2),1/t)},mode:function(e,t){return t<=1?0:e*a.pow((t-1)/t,1/t)},sample:function(t,i){return t*a.pow(-a.log(e._random_fn()),1/i)},variance:function(t,i){return t*t*e.gammafn(1+2/i)-a.pow(e.weibull.mean(t,i),2)}}),e.extend(e.uniform,{pdf:function(e,t,i){return e<t||e>i?0:1/(i-t)},cdf:function(e,t,i){return e<t?0:e<i?(e-t)/(i-t):1},inv:function(e,t,i){return t+e*(i-t)},mean:function(e,t){return .5*(e+t)},median:function(t,i){return e.mean(t,i)},mode:function(){throw Error("mode is not yet implemented")},sample:function(t,i){return t/2+i/2+(i/2-t/2)*(2*e._random_fn()-1)},variance:function(e,t){return a.pow(t-e,2)/12}}),e.extend(e.binomial,{pdf:function(t,i,n){return 0===n||1===n?+(i*n===t):e.combination(i,t)*a.pow(n,t)*a.pow(1-n,i-t)},cdf:function(t,i,n){if(t<0)return 0;if(t>=i)return 1;if(n<0||n>1||i<=0)return NaN;var o,r=(t=a.floor(t))+1,s=i-t,l=r+s,d=a.exp(e.gammaln(l)-e.gammaln(s)-e.gammaln(r)+r*a.log(n)+s*a.log(1-n));return o=n<(r+1)/(l+2)?d*c(n,r,s,1e-10):1-d*c(1-n,s,r,1e-10),a.round(1e10*(1-o))/1e10}}),e.extend(e.negbin,{pdf:function(t,i,n){return t===t>>>0&&(t<0?0:e.combination(t+i-1,i-1)*a.pow(1-n,t)*a.pow(n,i))},cdf:function(t,i,n){var o=0,r=0;if(t<0)return 0;for(;r<=t;r++)o+=e.negbin.pdf(r,i,n);return o}}),e.extend(e.hypgeom,{pdf:function(t,i,n,o){if(t!=t|0)return!1;if(t<0||t<n-(i-o))return 0;if(t>o||t>n)return 0;if(2*n>i)if(2*o>i)return e.hypgeom.pdf(i-n-o+t,i,i-n,i-o);else return e.hypgeom.pdf(o-t,i,i-n,o);if(2*o>i)return e.hypgeom.pdf(n-t,i,n,i-o);if(n<o)return e.hypgeom.pdf(t,i,o,n);for(var r=1,s=0,l=0;l<t;l++){for(;r>1&&s<o;)r*=1-n/(i-s),s++;r*=(o-l)*(n-l)/((l+1)*(i-n-o+l+1))}for(;s<o;s++)r*=1-n/(i-s);return a.min(1,a.max(0,r))},cdf:function(t,i,n,o){if(t<0||t<n-(i-o))return 0;if(t>=o||t>=n)return 1;if(2*n>i)if(2*o>i)return e.hypgeom.cdf(i-n-o+t,i,i-n,i-o);else return 1-e.hypgeom.cdf(o-t-1,i,i-n,o);if(2*o>i)return 1-e.hypgeom.cdf(n-t-1,i,n,i-o);if(n<o)return e.hypgeom.cdf(t,i,o,n);for(var r=1,s=1,l=0,c=0;c<t;c++){for(;r>1&&l<o;){var d=1-n/(i-l);s*=d,r*=d,l++}s*=(o-c)*(n-c)/((c+1)*(i-n-o+c+1)),r+=s}for(;l<o;l++)r*=1-n/(i-l);return a.min(1,a.max(0,r))}}),e.extend(e.poisson,{pdf:function(t,i){return i<0||t%1!=0||t<0?0:a.pow(i,t)*a.exp(-i)/e.factorial(t)},cdf:function(t,i){var n=[],o=0;if(t<0)return 0;for(;o<=t;o++)n.push(e.poisson.pdf(o,i));return e.sum(n)},mean:function(e){return e},variance:function(e){return e},sampleSmall:function(t){var i=1,n=0,o=a.exp(-t);do n++,i*=e._random_fn();while(i>o);return n-1},sampleLarge:function(t){var i,n,o,r,s,l,c,d,u,h;for(r=a.sqrt(t),s=a.log(t),l=-.059+.02483*(c=.931+2.53*r),d=1.1239+1.1328/(c-3.4),u=.9277-3.6224/(c-2);;){if(n=a.random()-.5,o=a.random(),h=.5-a.abs(n),i=a.floor((2*l/h+c)*n+t+.43),h>=.07&&o<=u)return i;if(!(i<0)&&(!(h<.013)||!(o>h))&&a.log(o)+a.log(d)-a.log(l/(h*h)+c)<=-t+i*s-e.loggam(i+1))return i}},sample:function(e){return e<10?this.sampleSmall(e):this.sampleLarge(e)}}),e.extend(e.triangular,{pdf:function(e,t,i,n){return i<=t||n<t||n>i?NaN:e<t||e>i?0:e<n?2*(e-t)/((i-t)*(n-t)):e===n?2/(i-t):2*(i-e)/((i-t)*(i-n))},cdf:function(e,t,i,n){return i<=t||n<t||n>i?NaN:e<=t?0:e>=i?1:e<=n?a.pow(e-t,2)/((i-t)*(n-t)):1-a.pow(i-e,2)/((i-t)*(i-n))},inv:function(e,t,i,n){return i<=t||n<t||n>i?NaN:e<=(n-t)/(i-t)?t+(i-t)*a.sqrt((n-t)/(i-t)*e):t+(i-t)*(1-a.sqrt((1-e)*(1-(n-t)/(i-t))))},mean:function(e,t,i){return(e+t+i)/3},median:function(e,t,i){return i<=(e+t)/2?t-a.sqrt((t-e)*(t-i))/a.sqrt(2):i>(e+t)/2?e+a.sqrt((t-e)*(i-e))/a.sqrt(2):void 0},mode:function(e,t,i){return i},sample:function(t,i,n){var o=e._random_fn();return o<(n-t)/(i-t)?t+a.sqrt(o*(i-t)*(n-t)):i-a.sqrt((1-o)*(i-t)*(i-n))},variance:function(e,t,i){return(e*e+t*t+i*i-e*t-e*i-t*i)/18}}),e.extend(e.arcsine,{pdf:function(e,t,i){return i<=t?NaN:e<=t||e>=i?0:2/a.PI*a.pow(a.pow(i-t,2)-a.pow(2*e-t-i,2),-.5)},cdf:function(e,t,i){return e<t?0:e<i?2/a.PI*a.asin(a.sqrt((e-t)/(i-t))):1},inv:function(e,t,i){return t+(.5-.5*a.cos(a.PI*e))*(i-t)},mean:function(e,t){return t<=e?NaN:(e+t)/2},median:function(e,t){return t<=e?NaN:(e+t)/2},mode:function(){throw Error("mode is not yet implemented")},sample:function(t,i){return(t+i)/2+(i-t)/2*a.sin(2*a.PI*e.uniform.sample(0,1))},variance:function(e,t){return t<=e?NaN:a.pow(t-e,2)/8}}),e.extend(e.laplace,{pdf:function(e,t,i){return i<=0?0:a.exp(-a.abs(e-t)/i)/(2*i)},cdf:function(e,t,i){return i<=0?0:e<t?.5*a.exp((e-t)/i):1-.5*a.exp(-(e-t)/i)},mean:function(e){return e},median:function(e){return e},mode:function(e){return e},variance:function(e,t){return 2*t*t},sample:function(t,i){var n=e._random_fn()-.5;return t-i*(n/a.abs(n))*a.log(1-2*a.abs(n))}}),e.extend(e.tukey,{cdf:function(t,i,n){var o=[.9894009349916499,.9445750230732326,.8656312023878318,.755404408355003,.6178762444026438,.45801677765722737,.2816035507792589,.09501250983763744],r=[.027152459411754096,.062253523938647894,.09515851168249279,.12462897125553388,.14959598881657674,.16915651939500254,.18260341504492358,.1894506104550685];if(t<=0)return 0;if(n<2||i<2)return NaN;if(!Number.isFinite(t))return 1;if(n>25e3)return d(t,1,i);var s=.5*n,l=s*a.log(n)-n*a.log(2)-e.gammaln(s),c=s-1,u=.25*n;f=n<=100?1:n<=800?.5:n<=5e3?.25:.125,l+=a.log(f);for(var h=0,p=1;p<=50;p++){for(var f,g,m,v=0,b=(2*p-1)*f,y=1;y<=16;y++)if(8<y?(g=y-8-1,m=l+c*a.log(b+o[g]*f)-(o[g]*f+b)*u):(g=y-1,m=l+c*a.log(b-o[g]*f)+(o[g]*f-b)*u),m>=-30){v+=d(8<y?t*a.sqrt((o[g]*f+b)*.5):t*a.sqrt((-(o[g]*f)+b)*.5),1,i)*r[g]*a.exp(m)}if(p*f>=1&&v<=1e-14)break;h+=v}if(v>1e-14)throw Error("tukey.cdf failed to converge");return h>1&&(h=1),h},inv:function(t,i,n){if(n<2||i<2||t<0||t>1)return NaN;if(0===t)return 0;if(1===t)return 1/0;var o,r,s,l,c,d,u=(s=.5-.5*t,c=(l=a.sqrt(a.log(1/(s*s))))+((((-453642210148e-16*l+-.204231210125)*l+-.342242088547)*l+-1)*l+.322232421088)/((((.0038560700634*l+.10353775285)*l+.531103462366)*l+.588581570495)*l+.099348462606),n<120&&(c+=(c*c*c+c)/n/4),d=.8832-.2368*c,n<120&&(d+=-1.214/n+1.208*c/n),c*(d*a.log(i-1)+1.4142)),h=e.tukey.cdf(u,i,n)-t;o=h>0?a.max(0,u-1):u+1;for(var p=e.tukey.cdf(o,i,n)-t,f=1;f<50;f++)if(r=o-p*(o-u)/(p-h),h=p,u=o,r<0&&(r=0,p=-t),p=e.tukey.cdf(r,i,n)-t,o=r,1e-4>a.abs(o-u))return r;throw Error("tukey.inv failed to converge")}}),function(e,t){var i,n,o=Array.prototype.push,r=e.utils.isArray;function a(t){return r(t)||t instanceof e}e.extend({add:function(t,i){return a(i)?(a(i[0])||(i=[i]),e.map(t,function(e,t,n){return e+i[t][n]})):e.map(t,function(e){return e+i})},subtract:function(t,i){return a(i)?(a(i[0])||(i=[i]),e.map(t,function(e,t,n){return e-i[t][n]||0})):e.map(t,function(e){return e-i})},divide:function(t,i){return a(i)?(a(i[0])||(i=[i]),e.multiply(t,e.inv(i))):e.map(t,function(e){return e/i})},multiply:function(t,i){var n,o,r,s,l,c,d,u;if(void 0===t.length&&void 0===i.length)return t*i;if(l=t.length,c=t[0].length,d=e.zeros(l,r=a(i)?i[0].length:c),u=0,a(i)){for(;u<r;u++)for(n=0;n<l;n++){for(o=0,s=0;o<c;o++)s+=t[n][o]*i[o][u];d[n][u]=s}return 1===l&&1===u?d[0][0]:d}return e.map(t,function(e){return e*i})},outer:function(t,i){return e.multiply(t.map(function(e){return[e]}),[i])},dot:function(t,i){a(t[0])||(t=[t]),a(i[0])||(i=[i]);for(var n,o,r=1===t[0].length&&1!==t.length?e.transpose(t):t,s=1===i[0].length&&1!==i.length?e.transpose(i):i,l=[],c=0,d=r.length,u=r[0].length;c<d;c++){for(o=0,l[c]=[],n=0;o<u;o++)n+=r[c][o]*s[c][o];l[c]=n}return 1===l.length?l[0]:l},pow:function(i,n){return e.map(i,function(e){return t.pow(e,n)})},exp:function(i){return e.map(i,function(e){return t.exp(e)})},log:function(i){return e.map(i,function(e){return t.log(e)})},abs:function(i){return e.map(i,function(e){return t.abs(e)})},norm:function(e,i){var n=0,o=0;for(isNaN(i)&&(i=2),a(e[0])&&(e=e[0]);o<e.length;o++)n+=t.pow(t.abs(e[o]),i);return t.pow(n,1/i)},angle:function(i,n){return t.acos(e.dot(i,n)/(e.norm(i)*e.norm(n)))},aug:function(e,t){var i,n=[];for(i=0;i<e.length;i++)n.push(e[i].slice());for(i=0;i<n.length;i++)o.apply(n[i],t[i]);return n},inv:function(t){for(var i,n=t.length,o=t[0].length,r=e.identity(n,o),a=e.gauss_jordan(t,r),s=[],l=0;l<n;l++)for(s[l]=[],i=o;i<a[0].length;i++)s[l][i-o]=a[l][i];return s},det:function e(t){if(2===t.length)return t[0][0]*t[1][1]-t[0][1]*t[1][0];for(var i=0,n=0;n<t.length;n++){for(var o=[],r=1;r<t.length;r++){o[r-1]=[];for(var a=0;a<t.length;a++)a<n?o[r-1][a]=t[r][a]:a>n&&(o[r-1][a-1]=t[r][a])}var s=n%2?-1:1;i+=e(o)*t[0][n]*s}return i},gauss_elimination:function(i,n){var o,r,a,s,l=0,c=0,d=i.length,u=i[0].length,h=1,p=0,f=[];for(l=0,o=(i=e.aug(i,n))[0].length;l<d;l++){for(r=i[l][l],c=l,s=l+1;s<u;s++)r<t.abs(i[s][l])&&(r=i[s][l],c=s);if(c!=l)for(s=0;s<o;s++)a=i[l][s],i[l][s]=i[c][s],i[c][s]=a;for(c=l+1;c<d;c++)for(h=i[c][l]/i[l][l],s=l;s<o;s++)i[c][s]=i[c][s]-h*i[l][s]}for(l=d-1;l>=0;l--){for(p=0,c=l+1;c<=d-1;c++)p+=f[c]*i[l][c];f[l]=(i[l][o-1]-p)/i[l][l]}return f},gauss_jordan:function(i,n){var o,r,a,s=e.aug(i,n),l=s.length,c=s[0].length,d=0;for(r=0;r<l;r++){var u=r;for(a=r+1;a<l;a++)t.abs(s[a][r])>t.abs(s[u][r])&&(u=a);var h=s[r];for(s[r]=s[u],s[u]=h,a=r+1;a<l;a++)for(d=s[a][r]/s[r][r],o=r;o<c;o++)s[a][o]-=s[r][o]*d}for(r=l-1;r>=0;r--){for(a=0,d=s[r][r];a<r;a++)for(o=c-1;o>r-1;o--)s[a][o]-=s[r][o]*s[a][r]/d;for(s[r][r]/=d,o=l;o<c;o++)s[r][o]/=d}return s},triaUpSolve:function(t,i){var n,o=t[0].length,r=e.zeros(1,o)[0],a=!1;return(void 0!=i[0].length&&(i=i.map(function(e){return e[0]}),a=!0),e.arange(o-1,-1,-1).forEach(function(a){n=e.arange(a+1,o).map(function(e){return r[e]*t[a][e]}),r[a]=(i[a]-e.sum(n))/t[a][a]}),a)?r.map(function(e){return[e]}):r},triaLowSolve:function(t,i){var n,o=t[0].length,r=e.zeros(1,o)[0],a=!1;return(void 0!=i[0].length&&(i=i.map(function(e){return e[0]}),a=!0),e.arange(o).forEach(function(o){n=e.arange(o).map(function(e){return t[o][e]*r[e]}),r[o]=(i[o]-e.sum(n))/t[o][o]}),a)?r.map(function(e){return[e]}):r},lu:function(t){var i,n=t.length,o=e.identity(n),r=e.zeros(t.length,t[0].length);return e.arange(n).forEach(function(e){r[0][e]=t[0][e]}),e.arange(1,n).forEach(function(a){e.arange(a).forEach(function(n){i=e.arange(n).map(function(e){return o[a][e]*r[e][n]}),o[a][n]=(t[a][n]-e.sum(i))/r[n][n]}),e.arange(a,n).forEach(function(n){i=e.arange(a).map(function(e){return o[a][e]*r[e][n]}),r[a][n]=t[i.length][n]-e.sum(i)})}),[o,r]},cholesky:function(i){var n,o=i.length,r=e.zeros(i.length,i[0].length);return e.arange(o).forEach(function(a){n=e.arange(a).map(function(e){return t.pow(r[a][e],2)}),r[a][a]=t.sqrt(i[a][a]-e.sum(n)),e.arange(a+1,o).forEach(function(t){n=e.arange(a).map(function(e){return r[a][e]*r[t][e]}),r[t][a]=(i[a][t]-e.sum(n))/r[a][a]})}),r},gauss_jacobi:function(i,n,o,r){for(var a,s,l,c,d=0,u=0,h=i.length,p=[],f=[],g=[];d<h;d++)for(u=0,p[d]=[],f[d]=[],g[d]=[];u<h;u++)d>u?(p[d][u]=i[d][u],f[d][u]=g[d][u]=0):d<u?(f[d][u]=i[d][u],p[d][u]=g[d][u]=0):(g[d][u]=i[d][u],p[d][u]=f[d][u]=0);for(l=e.multiply(e.multiply(e.inv(g),e.add(p,f)),-1),s=e.multiply(e.inv(g),n),a=o,c=e.add(e.multiply(l,o),s),d=2;t.abs(e.norm(e.subtract(c,a)))>r;)a=c,c=e.add(e.multiply(l,a),s),d++;return c},gauss_seidel:function(i,n,o,r){for(var a,s,l,c,d,u=0,h=i.length,p=[],f=[],g=[];u<h;u++)for(a=0,p[u]=[],f[u]=[],g[u]=[];a<h;a++)u>a?(p[u][a]=i[u][a],f[u][a]=g[u][a]=0):u<a?(f[u][a]=i[u][a],p[u][a]=g[u][a]=0):(g[u][a]=i[u][a],p[u][a]=f[u][a]=0);for(c=e.multiply(e.multiply(e.inv(e.add(g,p)),f),-1),l=e.multiply(e.inv(e.add(g,p)),n),s=o,d=e.add(e.multiply(c,o),l),u=2;t.abs(e.norm(e.subtract(d,s)))>r;)s=d,d=e.add(e.multiply(c,s),l),u+=1;return d},SOR:function(i,n,o,r,a){for(var s,l,c,d,u,h=0,p=i.length,f=[],g=[],m=[];h<p;h++)for(s=0,f[h]=[],g[h]=[],m[h]=[];s<p;s++)h>s?(f[h][s]=i[h][s],g[h][s]=m[h][s]=0):h<s?(g[h][s]=i[h][s],f[h][s]=m[h][s]=0):(m[h][s]=i[h][s],f[h][s]=g[h][s]=0);for(d=e.multiply(e.inv(e.add(m,e.multiply(f,a))),e.subtract(e.multiply(m,1-a),e.multiply(g,a))),c=e.multiply(e.multiply(e.inv(e.add(m,e.multiply(f,a))),n),a),l=o,u=e.add(e.multiply(d,o),c),h=2;t.abs(e.norm(e.subtract(u,l)))>r;)l=u,u=e.add(e.multiply(d,l),c),h++;return u},householder:function(i){for(var n,o,r,a,s=i.length,l=i[0].length,c=0,d=[],u=[];c<s-1;c++){for(n=0,a=c+1;a<l;a++)n+=i[a][c]*i[a][c];for(n=(i[c+1][c]>0?-1:1)*t.sqrt(n),o=t.sqrt((n*n-i[c+1][c]*n)/2),(d=e.zeros(s,1))[c+1][0]=(i[c+1][c]-n)/(2*o),r=c+2;r<s;r++)d[r][0]=i[r][c]/(2*o);u=e.subtract(e.identity(s,l),e.multiply(e.multiply(d,e.transpose(d)),2)),i=e.multiply(u,e.multiply(i,u))}return i},QR:(i=e.sum,n=e.arange,function(o){var r,a,s,l=o.length,c=o[0].length,d=e.zeros(c,c);for(a=0,o=e.copy(o);a<c;a++){for(r=0,d[a][a]=t.sqrt(i(n(l).map(function(e){return o[e][a]*o[e][a]})));r<l;r++)o[r][a]=o[r][a]/d[a][a];for(s=a+1;s<c;s++)for(r=0,d[a][s]=i(n(l).map(function(e){return o[e][a]*o[e][s]}));r<l;r++)o[r][s]=o[r][s]-o[r][a]*d[a][s]}return[o,d]}),lstsq:function(t,i){var n,o,r,a=!1;void 0===i[0].length&&(i=i.map(function(e){return[e]}),a=!0);var s=e.QR(t),l=s[0],c=s[1],d=t[0].length,u=e.slice(l,{col:{end:d}}),h=(n=e.slice(c,{row:{end:d}}),o=(n=e.copy(n)).length,r=e.identity(o),e.arange(o-1,-1,-1).forEach(function(t){e.sliceAssign(r,{row:t},e.divide(e.slice(r,{row:t}),n[t][t])),e.sliceAssign(n,{row:t},e.divide(e.slice(n,{row:t}),n[t][t])),e.arange(t).forEach(function(i){var o=e.multiply(n[i][t],-1),a=e.slice(n,{row:i}),s=e.multiply(e.slice(n,{row:t}),o);e.sliceAssign(n,{row:i},e.add(a,s));var l=e.slice(r,{row:i}),c=e.multiply(e.slice(r,{row:t}),o);e.sliceAssign(r,{row:i},e.add(l,c))})}),r),p=e.transpose(u);void 0===p[0].length&&(p=[p]);var f=e.multiply(e.multiply(h,p),i);return(void 0===f.length&&(f=[[f]]),a)?f.map(function(e){return e[0]}):f},jacobi:function(i){for(var n,o,r,a,s,l,c,d=1,u=i.length,h=e.identity(u,u),p=[];1===d;){for(n=0,s=i[0][1],r=0,a=1;n<u;n++)for(o=0;o<u;o++)n!=o&&s<t.abs(i[n][o])&&(s=t.abs(i[n][o]),r=n,a=o);for(n=1,l=i[r][r]===i[a][a]?i[r][a]>0?t.PI/4:-t.PI/4:t.atan(2*i[r][a]/(i[r][r]-i[a][a]))/2,(c=e.identity(u,u))[r][r]=t.cos(l),c[r][a]=-t.sin(l),c[a][r]=t.sin(l),c[a][a]=t.cos(l),h=e.multiply(h,c),i=e.multiply(e.multiply(e.inv(c),i),c),d=0;n<u;n++)for(o=1;o<u;o++)n!=o&&t.abs(i[n][o])>.001&&(d=1)}for(n=0;n<u;n++)p.push(i[n][n]);return[h,p]},rungekutta:function(e,t,i,n,o,r){var a,s,l,c,d;if(2===r)for(;n<=i;)a=t*e(n,o),s=t*e(n+t,o+a),o+=(a+s)/2,n+=t;if(4===r)for(;n<=i;)a=t*e(n,o),s=t*e(n+t/2,o+a/2),c=t*e(n+t/2,o+s/2),d=t*e(n+t,o+c),o+=(a+2*s+2*c+d)/6,n+=t;return o},romberg:function(e,i,n,o){for(var r,a,s,l,c,d=0,u=(n-i)/2,h=[],p=[],f=[];d<o/2;){for(c=e(i),s=i,l=0;s<=n;s+=u,l++)h[l]=s;for(s=1,r=h.length;s<r-1;s++)c+=(s%2!=0?4:2)*e(h[s]);c=u/3*(c+e(n)),f[d]=c,u/=2,d++}for(a=f.length,r=1;1!==a;){for(s=0;s<a-1;s++)p[s]=(t.pow(4,r)*f[s+1]-f[s])/(t.pow(4,r)-1);a=p.length,f=p,p=[],r++}return f},richardson:function(e,i,n,o){function r(e,t){for(var i,n=0,o=e.length;n<o;n++)e[n]===t&&(i=n);return i}for(var a,s,l,c,d,u=t.abs(n-e[r(e,n)+1]),h=0,p=[],f=[];o>=u;)a=r(e,n+o),s=r(e,n),p[h]=(i[a]-2*i[s]+i[2*s-a])/(o*o),o/=2,h++;for(c=p.length,l=1;1!=c;){for(d=0;d<c-1;d++)f[d]=(t.pow(4,l)*p[d+1]-p[d])/(t.pow(4,l)-1);c=f.length,p=f,f=[],l++}return p},simpson:function(e,t,i,n){for(var o,r=(i-t)/n,a=e(t),s=[],l=t,c=0,d=1;l<=i;l+=r,c++)s[c]=l;for(o=s.length;d<o-1;d++)a+=(d%2!=0?4:2)*e(s[d]);return r/3*(a+e(i))},hermite:function(e,t,i,n){for(var o,r=e.length,a=0,s=0,l=[],c=[],d=[],u=[];s<r;s++){for(o=0,l[s]=1;o<r;o++)s!=o&&(l[s]*=(n-e[o])/(e[s]-e[o]));for(o=0,c[s]=0;o<r;o++)s!=o&&(c[s]+=1/(e[s]-e[o]));d[s]=(1-2*(n-e[s])*c[s])*(l[s]*l[s]),u[s]=(n-e[s])*(l[s]*l[s]),a+=d[s]*t[s]+u[s]*i[s]}return a},lagrange:function(e,t,i){for(var n,o,r=0,a=0,s=e.length;a<s;a++){for(n=0,o=t[a];n<s;n++)a!=n&&(o*=(i-e[n])/(e[a]-e[n]));r+=o}return r},cubic_spline:function(t,i,n){for(var o,r=t.length,a=0,s=[],l=[],c=[],d=[],u=[],h=[],p=[];a<r-1;a++)u[a]=t[a+1]-t[a];for(a=1,c[0]=0;a<r-1;a++)c[a]=3/u[a]*(i[a+1]-i[a])-3/u[a-1]*(i[a]-i[a-1]);for(a=1;a<r-1;a++)s[a]=[],l[a]=[],s[a][a-1]=u[a-1],s[a][a]=2*(u[a-1]+u[a]),s[a][a+1]=u[a],l[a][0]=c[a];for(o=0,d=e.multiply(e.inv(s),l);o<r-1;o++)h[o]=(i[o+1]-i[o])/u[o]-u[o]*(d[o+1][0]+2*d[o][0])/3,p[o]=(d[o+1][0]-d[o][0])/(3*u[o]);for(o=0;o<r&&!(t[o]>n);o++);return i[o-=1]+(n-t[o])*h[o]+e.sq(n-t[o])*d[o]+(n-t[o])*e.sq(n-t[o])*p[o]},gauss_quadrature:function(){throw Error("gauss_quadrature not yet implemented")},PCA:function(t){var i,n,o=t.length,r=t[0].length,a=0,s=[],l=[],c=[],d=[],u=[],h=[],p=[],f=[],g=[],m=[];for(a=0;a<o;a++)s[a]=e.sum(t[a])/r;for(a=0;a<r;a++)for(i=0,p[a]=[];i<o;i++)p[a][i]=t[i][a]-s[i];for(a=0,p=e.transpose(p);a<o;a++)for(i=0,f[a]=[];i<o;i++)f[a][i]=e.dot([p[a]],[p[i]])/(r-1);for(a=0,g=(c=e.jacobi(f))[0],l=c[1],m=e.transpose(g);a<l.length;a++)for(i=a;i<l.length;i++)l[a]<l[i]&&(n=l[a],l[a]=l[i],l[i]=n,d=m[a],m[a]=m[i],m[i]=d);for(a=0,h=e.transpose(p);a<o;a++)for(i=0,u[a]=[];i<h.length;i++)u[a][i]=e.dot([m[a]],[h[i]]);return[t,l,m,u]}});for(var s="add divide multiply subtract dot pow exp log abs norm angle".split(" "),l=0;l<s.length;l++)!function(t){e.fn[t]=function(i,n){var o=this;return n?(setTimeout(function(){n.call(o,e.fn[t].call(o,i))},15),this):"number"==typeof e[t](this,i)?e[t](this,i):e(e[t](this,i))}}(s[l])}(e,Math);var u=Math,h=[].slice,p=e.utils.isNumber,f=e.utils.isArray;function g(e,t,i,n){if(e>1||i>1||e<=0||i<=0)throw Error("Proportions should be greater than 0 and less than 1");var o=(e*t+i*n)/(t+n);return(e-i)/u.sqrt(o*(1-o)*(1/t+1/n))}return e.extend({zscore:function(){var t=h.call(arguments);return p(t[1])?(t[0]-t[1])/t[2]:(t[0]-e.mean(t[1]))/e.stdev(t[1],t[2])},ztest:function(){var t,i=h.call(arguments);return f(i[1])?(t=e.zscore(i[0],i[1],i[3]),1===i[2]?e.normal.cdf(-u.abs(t),0,1):2*e.normal.cdf(-u.abs(t),0,1)):i.length>2?(t=e.zscore(i[0],i[1],i[2]),1===i[3]?e.normal.cdf(-u.abs(t),0,1):2*e.normal.cdf(-u.abs(t),0,1)):(t=i[0],1===i[1]?e.normal.cdf(-u.abs(t),0,1):2*e.normal.cdf(-u.abs(t),0,1))}}),e.extend(e.fn,{zscore:function(e,t){return(e-this.mean())/this.stdev(t)},ztest:function(t,i,n){var o=u.abs(this.zscore(t,n));return 1===i?e.normal.cdf(-o,0,1):2*e.normal.cdf(-o,0,1)}}),e.extend({tscore:function(){var t=h.call(arguments);return 4===t.length?(t[0]-t[1])/(t[2]/u.sqrt(t[3])):(t[0]-e.mean(t[1]))/(e.stdev(t[1],!0)/u.sqrt(t[1].length))},ttest:function(){var t,i=h.call(arguments);return 5===i.length?(t=u.abs(e.tscore(i[0],i[1],i[2],i[3])),1===i[4]?e.studentt.cdf(-t,i[3]-1):2*e.studentt.cdf(-t,i[3]-1)):p(i[1])?(t=u.abs(i[0]),1==i[2]?e.studentt.cdf(-t,i[1]-1):2*e.studentt.cdf(-t,i[1]-1)):(t=u.abs(e.tscore(i[0],i[1])),1==i[2]?e.studentt.cdf(-t,i[1].length-1):2*e.studentt.cdf(-t,i[1].length-1))}}),e.extend(e.fn,{tscore:function(e){return(e-this.mean())/(this.stdev(!0)/u.sqrt(this.cols()))},ttest:function(t,i){return 1===i?1-e.studentt.cdf(u.abs(this.tscore(t)),this.cols()-1):2*e.studentt.cdf(-u.abs(this.tscore(t)),this.cols()-1)}}),e.extend({anovafscore:function(){var t,i,n,o,r,a,s,l,c=h.call(arguments);if(1===c.length){for(s=0,r=Array(c[0].length);s<c[0].length;s++)r[s]=c[0][s];c=r}for(s=0,i=[];s<c.length;s++)i=i.concat(c[s]);for(s=0,n=e.mean(i),t=0;s<c.length;s++)t+=c[s].length*u.pow(e.mean(c[s])-n,2);for(t/=c.length-1,a=0,s=0;s<c.length;s++)for(l=0,o=e.mean(c[s]);l<c[s].length;l++)a+=u.pow(c[s][l]-o,2);return t/(a/=i.length-c.length)},anovaftest:function(){var t,i,n,o,r=h.call(arguments);if(p(r[0]))return 1-e.centralF.cdf(r[0],r[1],r[2]);var a=e.anovafscore(r);for(o=0,t=r.length-1,n=0;o<r.length;o++)n+=r[o].length;return i=n-t-1,1-e.centralF.cdf(a,t,i)},ftest:function(t,i,n){return 1-e.centralF.cdf(t,i,n)}}),e.extend(e.fn,{anovafscore:function(){return e.anovafscore(this.toArray())},anovaftes:function(){var t,i=0;for(t=0;t<this.length;t++)i+=this[t].length;return e.ftest(this.anovafscore(),this.length-1,i-this.length)}}),e.extend({qscore:function(){var t,i,n,o,r,a=h.call(arguments);return p(a[0])?(t=a[0],i=a[1],n=a[2],o=a[3],r=a[4]):(t=e.mean(a[0]),i=e.mean(a[1]),n=a[0].length,o=a[1].length,r=a[2]),u.abs(t-i)/(r*u.sqrt((1/n+1/o)/2))},qtest:function(){var t,i=h.call(arguments);3===i.length?(t=i[0],i=i.slice(1)):7===i.length?(t=e.qscore(i[0],i[1],i[2],i[3],i[4]),i=i.slice(5)):(t=e.qscore(i[0],i[1],i[2]),i=i.slice(3));var n=i[0],o=i[1];return 1-e.tukey.cdf(t,o,n-o)},tukeyhsd:function(t){for(var i=e.pooledstdev(t),n=t.map(function(t){return e.mean(t)}),o=t.reduce(function(e,t){return e+t.length},0),r=[],a=0;a<t.length;++a)for(var s=a+1;s<t.length;++s){var l=e.qtest(n[a],n[s],t[a].length,t[s].length,i,o,t.length);r.push([[a,s],l])}return r}}),e.extend({normalci:function(){var t,i=h.call(arguments),n=[,,];return t=4===i.length?u.abs(e.normal.inv(i[1]/2,0,1)*i[2]/u.sqrt(i[3])):u.abs(e.normal.inv(i[1]/2,0,1)*e.stdev(i[2])/u.sqrt(i[2].length)),n[0]=i[0]-t,n[1]=i[0]+t,n},tci:function(){var t,i=h.call(arguments),n=[,,];return t=4===i.length?u.abs(e.studentt.inv(i[1]/2,i[3]-1)*i[2]/u.sqrt(i[3])):u.abs(e.studentt.inv(i[1]/2,i[2].length-1)*e.stdev(i[2],!0)/u.sqrt(i[2].length)),n[0]=i[0]-t,n[1]=i[0]+t,n},significant:function(e,t){return e<t}}),e.extend(e.fn,{normalci:function(t,i){return e.normalci(t,i,this.toArray())},tci:function(t,i){return e.tci(t,i,this.toArray())}}),e.extend(e.fn,{oneSidedDifferenceOfProportions:function(t,i,n,o){var r=g(t,i,n,o);return e.ztest(r,1)},twoSidedDifferenceOfProportions:function(t,i,n,o){var r=g(t,i,n,o);return e.ztest(r,2)}}),e.models=function(){function t(t,i){var n=t.length,o=i[0].length-1,r=e.lstsq(i,t),a=e.multiply(i,r.map(function(e){return[e]})).map(function(e){return e[0]}),s=e.subtract(t,a),l=e.mean(t),c=e.sum(a.map(function(e){return Math.pow(e-l,2)})),d=e.sum(t.map(function(e,t){return Math.pow(e-a[t],2)})),u=c+d;return{exog:i,endog:t,nobs:n,df_model:o,df_resid:n-o-1,coef:r,predict:a,resid:s,ybar:l,SST:u,SSE:c,SSR:d,R2:c/u}}return{ols:function(i,n){var o,r,a,s,l,c,d,u,h,p,f,g,m,v,b=t(i,n),y=(r=(o=b.exog)[0].length,a=e.arange(r).map(function(i){var n=e.arange(r).filter(function(e){return e!==i});return t(e.col(o,i).map(function(e){return e[0]}),e.col(o,n))}),s=Math.sqrt(b.SSR/b.df_resid),l=a.map(function(e){return s/Math.sqrt(e.SST*(1-e.R2))}),d=(c=b.coef.map(function(e,t){return(e-0)/l[t]})).map(function(t){var i=e.studentt.cdf(t,b.df_resid);return(i>.5?1-i:i)*2}),u=e.studentt.inv(.975,b.df_resid),h=b.coef.map(function(e,t){var i=u*l[t];return[e-i,e+i]}),{se:l,t:c,p:d,sigmaHat:s,interval95:h}),w=(v=1-(f=p=b.R2/b.df_model/((1-b.R2)/b.df_resid),g=b.df_model,m=b.df_resid,e.beta.cdf(f/(m/g+f),g/2,m/2)),{F_statistic:p,pvalue:v}),_=1-(1-b.R2)*((b.nobs-1)/b.df_resid);return b.t=y,b.f=w,b.adjust_R2=_,b}}}(),e.extend({buildxmatrix:function(){for(var t=Array(arguments.length),i=0;i<arguments.length;i++){var n=[1];t[i]=n.concat(arguments[i])}return e(t)},builddxmatrix:function(){for(var t=Array(arguments[0].length),i=0;i<arguments[0].length;i++){var n=[1];t[i]=n.concat(arguments[0][i])}return e(t)},buildjxmatrix:function(t){for(var i=Array(t.length),n=0;n<t.length;n++)i[n]=t[n];return e.builddxmatrix(i)},buildymatrix:function(t){return e(t).transpose()},buildjymatrix:function(e){return e.transpose()},matrixmult:function(t,i){var n,o,r,a,s;if(t.cols()==i.rows()){if(i.rows()>1){for(n=0,a=[];n<t.rows();n++)for(o=0,a[n]=[];o<i.cols();o++){for(r=0,s=0;r<t.cols();r++)s+=t.toArray()[n][r]*i.toArray()[r][o];a[n][o]=s}return e(a)}for(n=0,a=[];n<t.rows();n++)for(o=0,a[n]=[];o<i.cols();o++){for(r=0,s=0;r<t.cols();r++)s+=t.toArray()[n][r]*i.toArray()[o];a[n][o]=s}return e(a)}},regress:function(t,i){var n=e.xtranspxinv(t),o=t.transpose(),r=e.matrixmult(e(n),o);return e.matrixmult(r,i)},regresst:function(t,i,n){var o,r,a,s=e.regress(t,i),l={};l.anova={};var c=e.jMatYBar(t,s);l.yBar=c;var d=i.mean();l.anova.residuals=e.residuals(i,c),l.anova.ssr=e.ssr(c,d),l.anova.msr=l.anova.ssr/(t[0].length-1),l.anova.sse=e.sse(i,c),l.anova.mse=l.anova.sse/(i.length-(t[0].length-1)-1),l.anova.sst=e.sst(i,d),l.anova.mst=l.anova.sst/(i.length-1),l.anova.r2=1-l.anova.sse/l.anova.sst,l.anova.r2<0&&(l.anova.r2=0),l.anova.fratio=l.anova.msr/l.anova.mse,l.anova.pvalue=e.anovaftest(l.anova.fratio,t[0].length-1,i.length-(t[0].length-1)-1),l.anova.rmse=Math.sqrt(l.anova.mse),l.anova.r2adj=1-l.anova.mse/l.anova.mst,l.anova.r2adj<0&&(l.anova.r2adj=0),l.stats=Array(t[0].length);for(var u=e.xtranspxinv(t),h=0;h<s.length;h++)o=Math.sqrt(l.anova.mse*Math.abs(u[h][h])),r=Math.abs(s[h]/o),a=e.ttest(r,i.length-t[0].length-1,n),l.stats[h]=[s[h],o,r,a];return l.regress=s,l},xtranspx:function(t){return e.matrixmult(t.transpose(),t)},xtranspxinv:function(t){var i=e.matrixmult(t.transpose(),t);return e.inv(i)},jMatYBar:function(t,i){var n=e.matrixmult(t,i);return new e(n)},residuals:function(t,i){return e.matrixsubtract(t,i)},ssr:function(e,t){for(var i=0,n=0;n<e.length;n++)i+=Math.pow(e[n]-t,2);return i},sse:function(e,t){for(var i=0,n=0;n<e.length;n++)i+=Math.pow(e[n]-t[n],2);return i},sst:function(e,t){for(var i=0,n=0;n<e.length;n++)i+=Math.pow(e[n]-t,2);return i},matrixsubtract:function(t,i){for(var n=Array(t.length),o=0;o<t.length;o++){n[o]=Array(t[o].length);for(var r=0;r<t[o].length;r++)n[o][r]=t[o][r]-i[o][r]}return e(n)}}),e.jStat=e,e}()},6646:function(e){var t,i;t="undefined"!=typeof self?self:this,i=function(){function e(){}e.prototype.saveState=function(){return{idx:this.idx,input:this.input,groupIdx:this.groupIdx}},e.prototype.restoreState=function(e){this.idx=e.idx,this.input=e.input,this.groupIdx=e.groupIdx},e.prototype.pattern=function(e){this.idx=0,this.input=e,this.groupIdx=0,this.consumeChar("/");var t=this.disjunction();this.consumeChar("/");for(var i={type:"Flags",global:!1,ignoreCase:!1,multiLine:!1,unicode:!1,sticky:!1};this.isRegExpFlag();)switch(this.popChar()){case"g":s(i,"global");break;case"i":s(i,"ignoreCase");break;case"m":s(i,"multiLine");break;case"u":s(i,"unicode");break;case"y":s(i,"sticky")}if(this.idx!==this.input.length)throw Error("Redundant input: "+this.input.substring(this.idx));return{type:"Pattern",flags:i,value:t}},e.prototype.disjunction=function(){var e=[];for(e.push(this.alternative());"|"===this.peekChar();)this.consumeChar("|"),e.push(this.alternative());return{type:"Disjunction",value:e}},e.prototype.alternative=function(){for(var e=[];this.isTerm();)e.push(this.term());return{type:"Alternative",value:e}},e.prototype.term=function(){return this.isAssertion()?this.assertion():this.atom()},e.prototype.assertion=function(){switch(this.popChar()){case"^":return{type:"StartAnchor"};case"$":return{type:"EndAnchor"};case"\\":switch(this.popChar()){case"b":return{type:"WordBoundary"};case"B":return{type:"NonWordBoundary"}}throw Error("Invalid Assertion Escape");case"(":switch(this.consumeChar("?"),this.popChar()){case"=":e="Lookahead";break;case"!":e="NegativeLookahead"}l(e);var e,t=this.disjunction();return this.consumeChar(")"),{type:e,value:t}}throw Error("Internal Error - Should never get here!")},e.prototype.quantifier=function(e){var t;switch(this.popChar()){case"*":t={atLeast:0,atMost:1/0};break;case"+":t={atLeast:1,atMost:1/0};break;case"?":t={atLeast:0,atMost:1};break;case"{":var i=this.integerIncludingZero();switch(this.popChar()){case"}":t={atLeast:i,atMost:i};break;case",":t=this.isDigit()?{atLeast:i,atMost:this.integerIncludingZero()}:{atLeast:i,atMost:1/0},this.consumeChar("}")}if(!0===e&&void 0===t)return;l(t)}if(!0!==e||void 0!==t)return l(t),"?"===this.peekChar(0)?(this.consumeChar("?"),t.greedy=!1):t.greedy=!0,t.type="Quantifier",t},e.prototype.atom=function(){var e;switch(this.peekChar()){case".":e=this.dotAll();break;case"\\":e=this.atomEscape();break;case"[":e=this.characterClass();break;case"(":e=this.group()}return void 0===e&&this.isPatternCharacter()&&(e=this.patternCharacter()),l(e),this.isQuantifier()&&(e.quantifier=this.quantifier()),e},e.prototype.dotAll=function(){return this.consumeChar("."),{type:"Set",complement:!0,value:[r("\n"),r("\r"),r("\u2028"),r("\u2029")]}},e.prototype.atomEscape=function(){switch(this.consumeChar("\\"),this.peekChar()){case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":return this.decimalEscapeAtom();case"d":case"D":case"s":case"S":case"w":case"W":return this.characterClassEscape();case"f":case"n":case"r":case"t":case"v":return this.controlEscapeAtom();case"c":return this.controlLetterEscapeAtom();case"0":return this.nulCharacterAtom();case"x":return this.hexEscapeSequenceAtom();case"u":return this.regExpUnicodeEscapeSequenceAtom();default:return this.identityEscapeAtom()}},e.prototype.decimalEscapeAtom=function(){return{type:"GroupBackReference",value:this.positiveInteger()}},e.prototype.characterClassEscape=function(){var e,t=!1;switch(this.popChar()){case"d":e=c;break;case"D":e=c,t=!0;break;case"s":e=u;break;case"S":e=u,t=!0;break;case"w":e=d;break;case"W":e=d,t=!0}return l(e),{type:"Set",value:e,complement:t}},e.prototype.controlEscapeAtom=function(){var e;switch(this.popChar()){case"f":e=r("\f");break;case"n":e=r("\n");break;case"r":e=r("\r");break;case"t":e=r("	");break;case"v":e=r("\v")}return l(e),{type:"Character",value:e}},e.prototype.controlLetterEscapeAtom=function(){this.consumeChar("c");var e=this.popChar();if(!1===/[a-zA-Z]/.test(e))throw Error("Invalid ");return{type:"Character",value:e.toUpperCase().charCodeAt(0)-64}},e.prototype.nulCharacterAtom=function(){return this.consumeChar("0"),{type:"Character",value:r("\0")}},e.prototype.hexEscapeSequenceAtom=function(){return this.consumeChar("x"),this.parseHexDigits(2)},e.prototype.regExpUnicodeEscapeSequenceAtom=function(){return this.consumeChar("u"),this.parseHexDigits(4)},e.prototype.identityEscapeAtom=function(){return{type:"Character",value:r(this.popChar())}},e.prototype.classPatternCharacterAtom=function(){switch(this.peekChar()){case"\n":case"\r":case"\u2028":case"\u2029":case"\\":case"]":throw Error("TBD");default:return{type:"Character",value:r(this.popChar())}}},e.prototype.characterClass=function(){var e=[],t=!1;for(this.consumeChar("["),"^"===this.peekChar(0)&&(this.consumeChar("^"),t=!0);this.isClassAtom();){var i=this.classAtom();if("Character"===i.type&&this.isRangeDash()){this.consumeChar("-");var n=this.classAtom();if("Character"===n.type){if(n.value<i.value)throw Error("Range out of order in character class");e.push({from:i.value,to:n.value})}else a(i.value,e),e.push(r("-")),a(n.value,e)}else a(i.value,e)}return this.consumeChar("]"),{type:"Set",complement:t,value:e}},e.prototype.classAtom=function(){switch(this.peekChar()){case"]":case"\n":case"\r":case"\u2028":case"\u2029":throw Error("TBD");case"\\":return this.classEscape();default:return this.classPatternCharacterAtom()}},e.prototype.classEscape=function(){switch(this.consumeChar("\\"),this.peekChar()){case"b":return this.consumeChar("b"),{type:"Character",value:r("\b")};case"d":case"D":case"s":case"S":case"w":case"W":return this.characterClassEscape();case"f":case"n":case"r":case"t":case"v":return this.controlEscapeAtom();case"c":return this.controlLetterEscapeAtom();case"0":return this.nulCharacterAtom();case"x":return this.hexEscapeSequenceAtom();case"u":return this.regExpUnicodeEscapeSequenceAtom();default:return this.identityEscapeAtom()}},e.prototype.group=function(){var e=!0;this.consumeChar("("),"?"===this.peekChar(0)?(this.consumeChar("?"),this.consumeChar(":"),e=!1):this.groupIdx++;var t=this.disjunction();this.consumeChar(")");var i={type:"Group",capturing:e,value:t};return e&&(i.idx=this.groupIdx),i},e.prototype.positiveInteger=function(){var e=this.popChar();if(!1===o.test(e))throw Error("Expecting a positive integer");for(;n.test(this.peekChar(0));)e+=this.popChar();return parseInt(e,10)},e.prototype.integerIncludingZero=function(){var e=this.popChar();if(!1===n.test(e))throw Error("Expecting an integer");for(;n.test(this.peekChar(0));)e+=this.popChar();return parseInt(e,10)},e.prototype.patternCharacter=function(){var e=this.popChar();switch(e){case"\n":case"\r":case"\u2028":case"\u2029":case"^":case"$":case"\\":case".":case"*":case"+":case"?":case"(":case")":case"[":case"|":throw Error("TBD");default:return{type:"Character",value:r(e)}}},e.prototype.isRegExpFlag=function(){switch(this.peekChar(0)){case"g":case"i":case"m":case"u":case"y":return!0;default:return!1}},e.prototype.isRangeDash=function(){return"-"===this.peekChar()&&this.isClassAtom(1)},e.prototype.isDigit=function(){return n.test(this.peekChar(0))},e.prototype.isClassAtom=function(e){switch(void 0===e&&(e=0),this.peekChar(e)){case"]":case"\n":case"\r":case"\u2028":case"\u2029":return!1;default:return!0}},e.prototype.isTerm=function(){return this.isAtom()||this.isAssertion()},e.prototype.isAtom=function(){if(this.isPatternCharacter())return!0;switch(this.peekChar(0)){case".":case"\\":case"[":case"(":return!0;default:return!1}},e.prototype.isAssertion=function(){switch(this.peekChar(0)){case"^":case"$":return!0;case"\\":switch(this.peekChar(1)){case"b":case"B":return!0;default:return!1}case"(":return"?"===this.peekChar(1)&&("="===this.peekChar(2)||"!"===this.peekChar(2));default:return!1}},e.prototype.isQuantifier=function(){var e=this.saveState();try{return void 0!==this.quantifier(!0)}catch(e){return!1}finally{this.restoreState(e)}},e.prototype.isPatternCharacter=function(){switch(this.peekChar()){case"^":case"$":case"\\":case".":case"*":case"+":case"?":case"(":case")":case"[":case"|":case"/":case"\n":case"\r":case"\u2028":case"\u2029":return!1;default:return!0}},e.prototype.parseHexDigits=function(e){for(var t="",n=0;n<e;n++){var o=this.popChar();if(!1===i.test(o))throw Error("Expecting a HexDecimal digits");t+=o}return{type:"Character",value:parseInt(t,16)}},e.prototype.peekChar=function(e){return void 0===e&&(e=0),this.input[this.idx+e]},e.prototype.popChar=function(){var e=this.peekChar(0);return this.consumeChar(),e},e.prototype.consumeChar=function(e){if(void 0!==e&&this.input[this.idx]!==e)throw Error("Expected: '"+e+"' but found: '"+this.input[this.idx]+"' at offset: "+this.idx);if(this.idx>=this.input.length)throw Error("Unexpected end of input");this.idx++};var t,i=/[0-9a-fA-F]/,n=/[0-9]/,o=/[1-9]/;function r(e){return e.charCodeAt(0)}function a(e,t){void 0!==e.length?e.forEach(function(e){t.push(e)}):t.push(e)}function s(e,t){if(!0===e[t])throw"duplicate flag "+t;e[t]=!0}function l(e){if(void 0===e)throw Error("Internal Error - Should never get here!")}var c=[];for(t=r("0");t<=r("9");t++)c.push(t);var d=[r("_")].concat(c);for(t=r("a");t<=r("z");t++)d.push(t);for(t=r("A");t<=r("Z");t++)d.push(t);var u=[r(" "),r("\f"),r("\n"),r("\r"),r("	"),r("\v"),r("	"),r("\xa0"),r(" "),r(" "),r(" "),r(" "),r(" "),r(" "),r(" "),r(" "),r(" "),r(" "),r(" "),r(" "),r("\u2028"),r("\u2029"),r(" "),r(" "),r(" "),r("\uFEFF")];function h(){}return h.prototype.visitChildren=function(e){for(var t in e){var i=e[t];e.hasOwnProperty(t)&&(void 0!==i.type?this.visit(i):Array.isArray(i)&&i.forEach(function(e){this.visit(e)},this))}},h.prototype.visit=function(e){switch(e.type){case"Pattern":this.visitPattern(e);break;case"Flags":this.visitFlags(e);break;case"Disjunction":this.visitDisjunction(e);break;case"Alternative":this.visitAlternative(e);break;case"StartAnchor":this.visitStartAnchor(e);break;case"EndAnchor":this.visitEndAnchor(e);break;case"WordBoundary":this.visitWordBoundary(e);break;case"NonWordBoundary":this.visitNonWordBoundary(e);break;case"Lookahead":this.visitLookahead(e);break;case"NegativeLookahead":this.visitNegativeLookahead(e);break;case"Character":this.visitCharacter(e);break;case"Set":this.visitSet(e);break;case"Group":this.visitGroup(e);break;case"GroupBackReference":this.visitGroupBackReference(e);break;case"Quantifier":this.visitQuantifier(e)}this.visitChildren(e)},h.prototype.visitPattern=function(e){},h.prototype.visitFlags=function(e){},h.prototype.visitDisjunction=function(e){},h.prototype.visitAlternative=function(e){},h.prototype.visitStartAnchor=function(e){},h.prototype.visitEndAnchor=function(e){},h.prototype.visitWordBoundary=function(e){},h.prototype.visitNonWordBoundary=function(e){},h.prototype.visitLookahead=function(e){},h.prototype.visitNegativeLookahead=function(e){},h.prototype.visitCharacter=function(e){},h.prototype.visitSet=function(e){},h.prototype.visitGroup=function(e){},h.prototype.visitGroupBackReference=function(e){},h.prototype.visitQuantifier=function(e){},{RegExpParser:e,BaseRegExpVisitor:h,VERSION:"0.4.0"}},"function"==typeof define&&define.amd?define([],i):e.exports?e.exports=i():t.regexpToAst=i()},27933:function(e,t,i){"use strict";var n=i(48254),o=Array.prototype.concat,r=Array.prototype.slice,a=e.exports=function(e){for(var t=[],i=0,a=e.length;i<a;i++){var s=e[i];n(s)?t=o.call(t,r.call(s)):t.push(s)}return t};a.wrap=function(e){return function(){return e(a(arguments))}}},96909:function(e){function t(){this.table=new Uint16Array(16),this.trans=new Uint16Array(288)}function i(e,i){this.source=e,this.sourceIndex=0,this.tag=0,this.bitcount=0,this.dest=i,this.destLen=0,this.ltree=new t,this.dtree=new t}var n,o=new t,r=new t,a=new Uint8Array(30),s=new Uint16Array(30),l=new Uint8Array(30),c=new Uint16Array(30),d=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),u=new t,h=new Uint8Array(320);function p(e,t,i,n){var o,r;for(o=0;o<i;++o)e[o]=0;for(o=0;o<30-i;++o)e[o+i]=o/i|0;for(r=n,o=0;o<30;++o)t[o]=r,r+=1<<e[o]}var f=new Uint16Array(16);function g(e,t,i,n){var o,r;for(o=0;o<16;++o)e.table[o]=0;for(o=0;o<n;++o)e.table[t[i+o]]++;for(r=0,e.table[0]=0,o=0;o<16;++o)f[o]=r,r+=e.table[o];for(o=0;o<n;++o)t[i+o]&&(e.trans[f[t[i+o]]++]=o)}function m(e,t,i){if(!t)return i;for(;e.bitcount<24;)e.tag|=e.source[e.sourceIndex++]<<e.bitcount,e.bitcount+=8;var n=e.tag&65535>>>16-t;return e.tag>>>=t,e.bitcount-=t,n+i}function v(e,t){for(;e.bitcount<24;)e.tag|=e.source[e.sourceIndex++]<<e.bitcount,e.bitcount+=8;var i=0,n=0,o=0,r=e.tag;do n=2*n+(1&r),r>>>=1,++o,i+=t.table[o],n-=t.table[o];while(n>=0);return e.tag=r,e.bitcount-=o,t.trans[i+n]}function b(e,t,i){for(;;){var n,o,r,d,u=v(e,t);if(256===u)return 0;if(u<256)e.dest[e.destLen++]=u;else for(u-=257,n=m(e,a[u],s[u]),o=v(e,i),d=r=e.destLen-m(e,l[o],c[o]);d<r+n;++d)e.dest[e.destLen++]=e.dest[d]}}for(n=0;n<7;++n)o.table[n]=0;for(n=0,o.table[7]=24,o.table[8]=152,o.table[9]=112;n<24;++n)o.trans[n]=256+n;for(n=0;n<144;++n)o.trans[24+n]=n;for(n=0;n<8;++n)o.trans[168+n]=280+n;for(n=0;n<112;++n)o.trans[176+n]=144+n;for(n=0;n<5;++n)r.table[n]=0;for(n=0,r.table[5]=32;n<32;++n)r.trans[n]=n;p(a,s,4,3),p(l,c,2,1),a[28]=0,s[28]=258,e.exports=function(e,t){var n,a,s=new i(e,t);do{switch(n=function(e){e.bitcount--||(e.tag=e.source[e.sourceIndex++],e.bitcount=7);var t=1&e.tag;return e.tag>>>=1,t}(s),m(s,2,0)){case 0:a=function(e){for(var t,i,n;e.bitcount>8;)e.sourceIndex--,e.bitcount-=8;if((t=256*(t=e.source[e.sourceIndex+1])+e.source[e.sourceIndex])!==(65535&~(256*e.source[e.sourceIndex+3]+e.source[e.sourceIndex+2])))return -3;for(e.sourceIndex+=4,n=t;n;--n)e.dest[e.destLen++]=e.source[e.sourceIndex++];return e.bitcount=0,0}(s);break;case 1:a=b(s,o,r);break;case 2:!function(e,t,i){for(a=0,n=m(e,5,257),o=m(e,5,1),r=m(e,4,4);a<19;++a)h[a]=0;for(a=0;a<r;++a){var n,o,r,a,s,l,c=m(e,3,0);h[d[a]]=c}for(g(u,h,0,19),s=0;s<n+o;){var p=v(e,u);switch(p){case 16:var f=h[s-1];for(l=m(e,2,3);l;--l)h[s++]=f;break;case 17:for(l=m(e,3,3);l;--l)h[s++]=0;break;case 18:for(l=m(e,7,11);l;--l)h[s++]=0;break;default:h[s++]=p}}g(t,h,0,n),g(i,h,n,o)}(s,s.ltree,s.dtree),a=b(s,s.ltree,s.dtree);break;default:a=-3}if(0!==a)throw Error("Data error")}while(!n);if(s.destLen<s.dest.length)if("function"==typeof s.dest.slice)return s.dest.slice(0,s.destLen);else return s.dest.subarray(0,s.destLen);return s.dest}},9981:function(e,t,i){let n=i(96909),{swap32LE:o}=i(92396),r=2112;e.exports=class{constructor(e){let t="function"==typeof e.readUInt32BE&&"function"==typeof e.slice;if(t||e instanceof Uint8Array){let i;if(t)this.highStart=e.readUInt32LE(0),this.errorValue=e.readUInt32LE(4),i=e.readUInt32LE(8),e=e.slice(12);else{let t=new DataView(e.buffer);this.highStart=t.getUint32(0,!0),this.errorValue=t.getUint32(4,!0),i=t.getUint32(8,!0),e=e.subarray(12)}e=n(e,new Uint8Array(i)),o(e=n(e,new Uint8Array(i))),this.data=new Uint32Array(e.buffer)}else({data:this.data,highStart:this.highStart,errorValue:this.errorValue}=e)}get(e){let t;return e<0||e>1114111?this.errorValue:e<55296||e>56319&&e<=65535?(t=(this.data[e>>5]<<2)+(31&e),this.data[t]):e<=65535?(t=(this.data[2048+(e-55296>>5)]<<2)+(31&e),this.data[t]):e<this.highStart?(t=this.data[r-32+(e>>11)],t=((t=this.data[t+(e>>5&63)])<<2)+(31&e),this.data[t]):this.data[this.data.length-4]}}},92396:function(e){let t=18===new Uint8Array(new Uint32Array([0x12345678]).buffer)[0],i=(e,t,i)=>{let n=e[t];e[t]=e[i],e[i]=n},n=e=>{let t=e.length;for(let n=0;n<t;n+=4)i(e,n,n+3),i(e,n+1,n+2)};e.exports={swap32LE:e=>{t&&n(e)}}},4337:function(e,t){"use strict";t.default=(e,t)=>{let i=e.__vccOpts||e;for(let[e,n]of t)i[e]=n;return i}},88432:function(e,t,i){"use strict";i.d(t,{Z:()=>a});var n=i(63447);let o=["width","height"],r=(0,n.defineComponent)({name:"vIconBtCopy",props:{width:{type:[Number,String],default:16},height:{type:[Number,String],default:16}}}),a=(0,i(4337).default)(r,[["render",function(e,t,i,r,a,s){return(0,n.openBlock)(),(0,n.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 16 16",width:e.width,height:e.height},t[0]||(t[0]=[(0,n.createElementVNode)("path",{"fill-rule":"evenodd",d:"M3 2a1 1 0 0 0-1 1v5.666a1 1 0 0 0 1 1h.333V3.333h6.334V3a1 1 0 0 0-1-1H3Zm4 4.5h4a.5.5 0 0 1 .5.5v4a.5.5 0 0 1-.5.5H7a.5.5 0 0 1-.5-.5V7a.5.5 0 0 1 .5-.5ZM5 7a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V7Z","clip-rule":"evenodd"},null,-1)]),8,o)}]])},77574:function(e,t,i){"use strict";i.d(t,{Z:()=>a});var n=i(63447);let o=["width","height"],r=(0,n.defineComponent)({name:"vIconIcChevronDown",props:{width:{type:[Number,String],default:16},height:{type:[Number,String],default:16}}}),a=(0,i(4337).default)(r,[["render",function(e,t,i,r,a,s){return(0,n.openBlock)(),(0,n.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 16 16",width:e.width,height:e.height},t[0]||(t[0]=[(0,n.createElementVNode)("path",{"fill-rule":"evenodd",d:"M4.646 6.646a.5.5 0 0 1 .708 0L8 9.293l2.646-2.647a.5.5 0 0 1 .708.708l-3 3a.5.5 0 0 1-.708 0l-3-3a.5.5 0 0 1 0-.708Z","clip-rule":"evenodd"},null,-1)]),8,o)}]])},40915:function(e,t,i){"use strict";i.d(t,{Z:()=>a});var n=i(63447);let o=["width","height"],r=(0,n.defineComponent)({name:"vIconIcSelectionRefer",props:{width:{type:[Number,String],default:16},height:{type:[Number,String],default:16}}}),a=(0,i(4337).default)(r,[["render",function(e,t,i,r,a,s){return(0,n.openBlock)(),(0,n.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 16 16",width:e.width,height:e.height},t[0]||(t[0]=[(0,n.createElementVNode)("path",{"fill-rule":"evenodd",d:"M8 7h1v1H8a3 3 0 0 0-3 3v1H4v-1a4 4 0 0 1 4-4Zm1-2v5l4-2.5L9 5Z","clip-rule":"evenodd"},null,-1)]),8,o)}]])},56391:function(e,t,i){"use strict";i.d(t,{Z:()=>a});var n=i(63447);let o=["width","height"],r=(0,n.defineComponent)({name:"vIconSynodoc",props:{width:{type:[Number,String],default:64},height:{type:[Number,String],default:64}}}),a=(0,i(4337).default)(r,[["render",function(e,t,i,r,a,s){return(0,n.openBlock)(),(0,n.createElementBlock)("svg",{viewBox:"0 0 64 64",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",fill:"currentColor",width:e.width,height:e.height},t[0]||(t[0]=[(0,n.createStaticVNode)('<title>64/synodoc</title><defs><path d="M50,50 L50,53 L15,53 L15,50 L50,50 Z M50,43 L50,46 L15,46 L15,43 L50,43 Z M50,36 L50,39 L15,39 L15,36 L50,36 Z" id="6eec5ee368d5b4e7b85eea107325fad8__path-1"></path></defs><g id="6eec5ee368d5b4e7b85eea107325fad8__2021Q1-7.0-file-station-icon" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"><g id="6eec5ee368d5b4e7b85eea107325fad8__64/synodoc"><path d="M10,7 L41.7490225,7 C42.5495999,7 43.316968,7.31998675 43.8803725,7.88875702 L56.1313501,20.2564105 C56.6878201,20.8181803 57,21.5769297 57,22.3676535 L57,57 C57,58.6568542 55.6568542,60 54,60 L10,60 C8.34314575,60 7,58.6568542 7,57 L7,10 C7,8.34314575 8.34314575,7 10,7 Z" id="6eec5ee368d5b4e7b85eea107325fad8__Rectangle" fill="#4987F2"></path><rect id="6eec5ee368d5b4e7b85eea107325fad8__Rectangle" fill="#1C56BA" x="3" y="3" width="25" height="25" rx="3.5"></rect><path d="M9,18.3632169 L12.2274225,18.0494397 C12.4216665,19.1327235 12.8157518,19.9283649 13.4096902,20.4363876 C14.0036285,20.9444104 14.804873,21.1984179 15.8134476,21.1984179 C16.8817896,21.1984179 17.6867694,20.9724259 18.2284113,20.5204351 C18.7700532,20.0684442 19.0408701,19.5398844 19.0408701,18.9347396 C19.0408701,18.5462516 18.9269403,18.2156682 18.6990771,17.9429796 C18.471214,17.6702909 18.0733933,17.4330926 17.5056032,17.2313777 C17.1171152,17.0969011 16.2318241,16.8578352 14.8497034,16.5141727 C13.0716237,16.0733883 11.8239983,15.5317545 11.1067897,14.8892551 C10.0982151,13.9852734 9.5939354,12.8833288 9.5939354,11.5833883 C9.5939354,10.7466449 9.83113364,9.96407747 10.3055372,9.23566249 C10.7799408,8.50724751 11.46352,7.95253981 12.3562953,7.57152274 C13.2490706,7.19050568 14.3267351,7 15.589321,7 C17.6512957,7 19.2033567,7.45198405 20.2455504,8.35596572 C21.2877442,9.25994739 22.0339344,10.5667871 22.0862308,12.0759135 L18.7691576,12.2215958 C18.6272101,11.3773815 18.1238213,10.6700744 17.6568886,10.3002637 C17.1899559,9.930453 16.4895674,9.74555043 15.555702,9.74555043 C14.591953,9.74555043 13.8374011,9.94352691 13.2920237,10.3394858 C12.9408904,10.5934972 12.7653263,10.9334191 12.7653263,11.3592617 C12.7653263,11.7477497 12.9296841,12.0802008 13.2584047,12.3566249 C13.6767764,12.7077583 14.6928067,13.073828 16.306526,13.4548451 C17.9202454,13.8358622 19.1137074,14.2299474 19.8869479,14.6371127 C20.6601884,15.044278 21.2653241,15.6008534 21.7023731,16.3068556 C22.1394221,17.0128578 22.3579433,17.885075 22.3579433,18.9235333 C22.3579433,19.8648696 22.0964649,20.7464252 21.5735003,21.5682268 C21.0505357,22.3900283 20.3109255,23.0007671 19.3546473,23.4004614 C18.3983692,23.8001558 17.2067749,24 15.7798286,24 C13.7029121,24 12.1078939,23.5200004 10.9947264,22.5599868 C9.88155893,21.5999732 9.21665676,20.2010639 9,18.3632169 Z" id="6eec5ee368d5b4e7b85eea107325fad8__S" fill="#FFFFFF"></path><g id="6eec5ee368d5b4e7b85eea107325fad8__Combined-Shape" opacity="0.699999988"><use fill="#4987F2" xlink:href="#6eec5ee368d5b4e7b85eea107325fad8__path-1"></use><use fill="#FFFFFF" xlink:href="#6eec5ee368d5b4e7b85eea107325fad8__path-1"></use></g></g></g>',3)]),8,o)}]])},90977:function(e,t,i){"use strict";i.d(t,{Z:()=>a});var n=i(63447);let o=["width","height"],r=(0,n.defineComponent)({name:"vIconSynoslide",props:{width:{type:[Number,String],default:64},height:{type:[Number,String],default:64}}}),a=(0,i(4337).default)(r,[["render",function(e,t,i,r,a,s){return(0,n.openBlock)(),(0,n.createElementBlock)("svg",{viewBox:"0 0 64 64",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",fill:"currentColor",width:e.width,height:e.height},t[0]||(t[0]=[(0,n.createStaticVNode)('<title>64/synoslide</title><g id="931bffdafd7539e9dbaab3224f00a1b8__2021Q1-7.0-file-station-icon" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"><g id="931bffdafd7539e9dbaab3224f00a1b8__64/synoslide"><path d="M10,7 L41.7490225,7 C42.5495999,7 43.316968,7.31998675 43.8803725,7.88875702 L56.1313501,20.2564105 C56.6878201,20.8181803 57,21.5769297 57,22.3676535 L57,57 C57,58.6568542 55.6568542,60 54,60 L10,60 C8.34314575,60 7,58.6568542 7,57 L7,10 C7,8.34314575 8.34314575,7 10,7 Z" id="931bffdafd7539e9dbaab3224f00a1b8__Rectangle" fill="#FFA200"></path><path d="M32,32 L32,44 L42.9551817,43.999726 C42.4500817,49.6063569 37.738136,54 32,54 C25.9248678,54 21,49.0751322 21,43 C21,36.9248678 25.9248678,32 32,32 Z M35,30 C40.9787016,30 45.8433652,34.7697636 45.9962926,40.7115925 L46,41 L34.9997781,41 L35,30 Z" id="931bffdafd7539e9dbaab3224f00a1b8__Combined-Shape" fill="#FFFFFF" opacity="0.699999988"></path><rect id="931bffdafd7539e9dbaab3224f00a1b8__Rectangle" fill="#D67900" x="3" y="3" width="25" height="25" rx="3.5"></rect><path d="M9,18.3632169 L12.2274225,18.0494397 C12.4216665,19.1327235 12.8157518,19.9283649 13.4096902,20.4363876 C14.0036285,20.9444104 14.804873,21.1984179 15.8134476,21.1984179 C16.8817896,21.1984179 17.6867694,20.9724259 18.2284113,20.5204351 C18.7700532,20.0684442 19.0408701,19.5398844 19.0408701,18.9347396 C19.0408701,18.5462516 18.9269403,18.2156682 18.6990771,17.9429796 C18.471214,17.6702909 18.0733933,17.4330926 17.5056032,17.2313777 C17.1171152,17.0969011 16.2318241,16.8578352 14.8497034,16.5141727 C13.0716237,16.0733883 11.8239983,15.5317545 11.1067897,14.8892551 C10.0982151,13.9852734 9.5939354,12.8833288 9.5939354,11.5833883 C9.5939354,10.7466449 9.83113364,9.96407747 10.3055372,9.23566249 C10.7799408,8.50724751 11.46352,7.95253981 12.3562953,7.57152274 C13.2490706,7.19050568 14.3267351,7 15.589321,7 C17.6512957,7 19.2033567,7.45198405 20.2455504,8.35596572 C21.2877442,9.25994739 22.0339344,10.5667871 22.0862308,12.0759135 L18.7691576,12.2215958 C18.6272101,11.3773815 18.1238213,10.6700744 17.6568886,10.3002637 C17.1899559,9.930453 16.4895674,9.74555043 15.555702,9.74555043 C14.591953,9.74555043 13.8374011,9.94352691 13.2920237,10.3394858 C12.9408904,10.5934972 12.7653263,10.9334191 12.7653263,11.3592617 C12.7653263,11.7477497 12.9296841,12.0802008 13.2584047,12.3566249 C13.6767764,12.7077583 14.6928067,13.073828 16.306526,13.4548451 C17.9202454,13.8358622 19.1137074,14.2299474 19.8869479,14.6371127 C20.6601884,15.044278 21.2653241,15.6008534 21.7023731,16.3068556 C22.1394221,17.0128578 22.3579433,17.885075 22.3579433,18.9235333 C22.3579433,19.8648696 22.0964649,20.7464252 21.5735003,21.5682268 C21.0505357,22.3900283 20.3109255,23.0007671 19.3546473,23.4004614 C18.3983692,23.8001558 17.2067749,24 15.7798286,24 C13.7029121,24 12.1078939,23.5200004 10.9947264,22.5599868 C9.88155893,21.5999732 9.21665676,20.2010639 9,18.3632169 Z" id="931bffdafd7539e9dbaab3224f00a1b8__S" fill="#FFFFFF"></path></g></g>',2)]),8,o)}]])},38066:function(e,t,i){"use strict";i.d(t,{Z:()=>u});var n=i(63447),o=i(76293),r=i(23886);let a=(0,n.defineComponent)({components:{vButton:o.Z,vIcon:r.Z},props:{synoId:{type:String,required:!0},iconCls:{type:String,default:""},iconHeight:{type:Number,default:24},iconWidth:{type:Number,default:24},iconIndex:{type:Number,default:0}},computed:{iconStyle(){return{height:`${this.iconHeight}px`,width:`${this.iconWidth}px`,fontSize:`${this.iconHeight}px`,"--icon-index":`${this.iconIndex}em`}}}});var s=i(84990),l=i.n(s),c=i(4337);let d={};d.$style=l();let u=(0,c.default)(a,[["render",function(e,t,i,o,r,a){let s=(0,n.resolveComponent)("v-icon"),l=(0,n.resolveComponent)("v-button");return(0,n.openBlock)(),(0,n.createBlock)(l,(0,n.mergeProps)({ref:"button","syno-id":`icon-button-${e.synoId}`,class:e.$style.btn,type:"styleless",display:"icon"},e.$attrs),(0,n.createSlots)({icon:(0,n.withCtx)(()=>[(0,n.createVNode)(s,{class:(0,n.normalizeClass)([e.iconCls,e.$style.icon]),style:(0,n.normalizeStyle)(e.iconStyle),type:"bkg-img"},null,8,["class","style"])]),_:2},[e.$slots.default?{name:"dropdown",fn:(0,n.withCtx)(()=>[(0,n.renderSlot)(e.$slots,"default")]),key:"0"}:void 0]),1040,["syno-id","class"])}],["__cssModules",d]])},14036:function(e,t,i){"use strict";i.d(t,{Z:()=>k});var n=i(63447),o=i(76293);let r=(0,n.defineComponent)({__name:"DriveRoundButton",props:{synoId:{},height:{},width:{},bgColor:{},fontColor:{},img:{}},setup(e){(0,n.useCssVars)(e=>({"6a62a301":t.width,c3ae8810:`url(${t.img})`,"6fba7968":t.height,"80b9975a":t.img?"transparent":t.bgColor,"084bec0f":t.fontColor}));let t=e;return(e,i)=>((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(o.Z),(0,n.mergeProps)({"syno-id":t.synoId,class:e.$style.root,type:"round",suffix:"main"},e.$attrs),{default:(0,n.withCtx)(()=>[(0,n.renderSlot)(e.$slots,"default")]),dropdown:(0,n.withCtx)(()=>[(0,n.renderSlot)(e.$slots,"dropdown")]),_:3},16,["syno-id","class"]))}});var a=i(5638),s=i.n(a),l=i(4337);let c={};c.$style=s();let d=(0,l.default)(r,[["__cssModules",c]]);var u=i(62013),h=i(24536);let p=(0,n.defineComponent)({__name:"AvatarButton",props:{user:{}},emits:["user-click"],setup(e,t){let{emit:i}=t,o=(0,u.s)(),r=(0,h._)();(0,n.watch)(()=>e.user,e=>{r.fetchAvatar(e.clientId)},{immediate:!0});let a=(0,n.computed)(()=>o.getUserDisplayTip(e.user.uid,e.user)),s=(0,n.computed)(()=>o.getUserDisplayFirstName(e.user.uid,e.user)),l=(0,n.computed)(()=>e.user.img?"#ffffff":o.getUserDisplayColor(e.user.uid,e.user));function c(){i("user-click",e.user.clientId,e.user)}return(e,t)=>{let i=(0,n.resolveDirective)("tooltip");return(0,n.withDirectives)(((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(d),{"syno-id":"avatar-button",height:"24px",width:"24px","bg-color":l.value,"font-color":"#ffffff",img:e.user.img,onClick:c},(0,n.createSlots)({_:2},[e.user.img?void 0:{name:"default",fn:(0,n.withCtx)(()=>[(0,n.createTextVNode)((0,n.toDisplayString)(s.value),1)]),key:"0"}]),1032,["bg-color","img"])),[[i,a.value]])}}});var f=i(31842),g=i(47501);let m=(0,n.defineComponent)({__name:"AvatarMoreButton",props:{users:{}},emits:["user-click"],setup(e,t){let{emit:i}=t,r=(0,u.s)(),a=(0,n.useCssModule)();function s(e,t){i("user-click",e,t)}function l(e){return e.querySelector(`.${a.title}`)}return(t,i)=>{let a=(0,n.resolveDirective)("tooltip");return(0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(o.Z),{"syno-id":"more-button",type:"round",class:(0,n.normalizeClass)(t.$style.btn),alignment:{opts:{constrainHeight:!0}}},{dropdown:(0,n.withCtx)(()=>[(0,n.createVNode)((0,n.unref)(f.Z),{"syno-id":"more-button-menu",width:"auto",style:{"max-width":"800px"}},{default:(0,n.withCtx)(()=>[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(e.users,e=>(0,n.withDirectives)(((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(g.Z),{key:e.clientId,"syno-id":`menu-item-${e.clientId}`,class:(0,n.normalizeClass)(t.$style.item)},{default:(0,n.withCtx)(()=>[(0,n.createVNode)(p,{user:e,class:(0,n.normalizeClass)(t.$style.avatar),onUserClick:s},null,8,["user","class"]),(0,n.createElementVNode)("div",{class:(0,n.normalizeClass)(t.$style.title)},(0,n.toDisplayString)((0,n.unref)(r).getUserDisplayName(e.uid,e)),3)]),_:2},1032,["syno-id","class"])),[[a,{content:(0,n.unref)(r).getUserDisplayTip(e.uid,e),overflowOnly:l}]])),128))]),_:1})]),_:1},8,["class"])}}});var v=i(1909),b=i.n(v);let y={};y.$style=b();let w=(0,l.default)(m,[["__cssModules",y]]),_=(0,n.defineComponent)({__name:"OnlineUser",emits:["user-click"],setup(e,t){let{emit:i}=t,o=(0,h._)(),r=(0,n.toRef)(()=>o.users),a=(0,n.toRef)(()=>o.maxUser),s=(0,n.computed)(()=>r.value.slice(0,a.value)),l=(0,n.computed)(()=>r.value.slice(a.value));function c(e,t){i("user-click",e,t)}return(0,n.watch)(()=>s.value.length,()=>{SYNO.SDS.Office.GetWindow().getEventMgr().fireEvent("online_user_status_change")}),(e,t)=>((0,n.openBlock)(),(0,n.createElementBlock)(n.Fragment,null,[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(s.value,t=>((0,n.openBlock)(),(0,n.createBlock)(p,{key:t.clientId,user:t,class:(0,n.normalizeClass)(e.$style.root),onUserClick:c},null,8,["user","class"]))),128)),l.value.length>0?((0,n.openBlock)(),(0,n.createBlock)(w,{key:0,users:l.value,class:(0,n.normalizeClass)(e.$style.root),onUserClick:c},null,8,["users","class"])):(0,n.createCommentVNode)("",!0)],64))}});var x=i(21738),S=i.n(x);let C={};C.$style=S();let k=(0,l.default)(_,[["__cssModules",C]])},14810:function(e,t,i){"use strict";i.d(t,{Z:()=>u});var n=i(63447),o=i(47501),r=i(22053),a=i(84433),s=i(53991),l=i(32334),c=i(58093);let d={ref:"container"},u=(0,n.defineComponent)({__name:"AiAdjustmentItems",props:{adjustments:{default:()=>s.Gz},useCustomInstruction:{type:Boolean,default:!1}},emits:["apply"],setup(e,t){let{expose:i,emit:u}=t,h=(0,n.useTemplateRef)("container"),p=(0,n.useTemplateRef)("inputArea"),f=(0,n.ref)(void 0),{getText:g,clear:m,focus:v}=(0,a.YG)(p),b=(0,n.computed)(()=>e.adjustments.map(e=>({key:e,title:(0,l.$)("ai_writer",e),hasOptions:(0,s.sc)(e)})));function y(){if(h.value){let e=h.value.getBoundingClientRect().bottom;f.value=document.body.getBoundingClientRect().bottom-e}}function w(e){u("apply",e)}function _(){u("apply","custom_instruction",{instruction:g()})}return(0,n.onMounted)(()=>{v(),y()}),(0,n.onBeforeUnmount)(()=>{m()}),i({focusInput:v,clearInput:m,constrainInput:y}),(e,t)=>((0,n.openBlock)(),(0,n.createElementBlock)("div",d,[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(b.value,e=>{var t;return(0,n.openBlock)(),(0,n.createElementBlock)(n.Fragment,{key:e.key},[e.hasOptions?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(r.mx),{key:0,title:e.title,"syno-id":e.key,"use-adaptive-container":!1,height:(t=e.key,(0,s.y7)(t)>10?316:void 0),"use-scrollbar":""},{default:(0,n.withCtx)(()=>[(0,n.createVNode)(c.Z,{adjustment:e.key,onClick:w},null,8,["adjustment"])]),_:2},1032,["title","syno-id","height"])):((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(o.Z),{key:1,"syno-id":e.key,title:e.title,onClick:t=>w(e.key)},null,8,["syno-id","title","onClick"]))],64)}),128)),e.useCustomInstruction?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(a.ox),{key:0,ref:"inputArea","max-height":f.value,placeholder:(0,n.unref)(l.$)("ai_common","custom_instruction_placeholder"),type:"textarea",onKeydown:[t[0]||(t[0]=(0,n.withKeys)((0,n.withModifiers)(()=>{},["stop"]),["up"])),t[1]||(t[1]=(0,n.withKeys)((0,n.withModifiers)(()=>{},["stop"]),["down"])),t[2]||(t[2]=(0,n.withKeys)((0,n.withModifiers)(()=>{},["stop"]),["right"])),t[3]||(t[3]=(0,n.withKeys)((0,n.withModifiers)(()=>{},["stop"]),["left"])),t[4]||(t[4]=(0,n.withKeys)((0,n.withModifiers)(()=>{},["stop"]),["enter"]))],onSubmit:_},null,8,["max-height","placeholder"])):(0,n.createCommentVNode)("",!0)],512))}})},50461:function(e,t,i){"use strict";i.d(t,{Z:()=>a});var n=i(63447),o=i(22053),r=i(14810);let a=(0,n.defineComponent)({__name:"AiAdjustmentMenu",props:{adjustments:{},useCustomInstruction:{type:Boolean},subMenuAlignment:{default:"tl->tr"}},emits:["apply"],setup(e,t){let{expose:i,emit:a}=t,s=(0,n.useTemplateRef)("menu"),l=(0,n.useTemplateRef)("items"),c=(0,n.computed)(()=>({...o.dl,pos:e.subMenuAlignment}));function d(e,t){a("apply",e,t)}return i({focusInput:function(){l.value?.focusInput()},clearInput:function(){l.value?.clearInput()},constrainInput:function(){l.value?.constrainInput()},constrainMenu:function(e){s.value?.tryConstrain(e)}}),(e,t)=>((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(o.NV),{ref:"menu","syno-id":"menu","default-alignment":c.value,"auto-focus":!1,onMousedown:t[0]||(t[0]=(0,n.withModifiers)(()=>{},["stop"]))},{default:(0,n.withCtx)(()=>[(0,n.createVNode)(r.Z,{ref:"items",adjustments:e.adjustments,"use-custom-instruction":e.useCustomInstruction,onApply:d},null,8,["adjustments","use-custom-instruction"])]),_:1},8,["default-alignment"]))}})},58093:function(e,t,i){"use strict";i.d(t,{Z:()=>c});var n=i(63447),o=i(24766),r=i(47501),a=i(53991),s=i(4077),l=i(32334);let c=(0,n.defineComponent)({__name:"AiAdjustmentOptionsItems",props:{adjustment:{}},emits:["click"],setup(e,t){let{emit:i}=t,c=(0,n.computed)(()=>(0,a.Q3)(e.adjustment)),d=(0,n.ref)([]),u=(0,n.computed)(()=>d.value.length>0);function h(e){e.startsWith("translate_")&&(0,s.$)().then(t=>{let i=t?.ai_helper_languages??[],n=e.slice(10);(i=i.filter(e=>e!==n)).push(n),(0,s.L)({ai_helper_languages:i.slice(-3)})}),i("click",e)}return(0,n.watch)(()=>e.adjustment,e=>{"translate"===e&&(0,s.$)().then(t=>{"translate"===e&&t&&(d.value=(t.ai_helper_languages??[]).map(e=>({key:`translate_${e}`,title:(0,l.$)("ai_writer",`lang_${e}`)})).reverse())})},{immediate:!0}),(e,t)=>u.value?((0,n.openBlock)(),(0,n.createElementBlock)(n.Fragment,{key:0},[(0,n.createVNode)((0,n.unref)(o.Z),{title:(0,n.unref)(l.$)("ai_writer","recently_used_languages")},{default:(0,n.withCtx)(()=>[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(d.value,e=>{let{key:t,title:i}=e;return(0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(r.Z),{key:t,"syno-id":t,title:i,onClick:e=>h(t)},null,8,["syno-id","title","onClick"])}),128))]),_:1},8,["title"]),(0,n.createVNode)((0,n.unref)(o.Z),{title:(0,n.unref)(l.$)("ai_writer","other_languages")},{default:(0,n.withCtx)(()=>[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(c.value,e=>{let{key:t,title:i}=e;return(0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(r.Z),{key:t,"syno-id":t,title:i,onClick:e=>h(t)},null,8,["syno-id","title","onClick"])}),128))]),_:1},8,["title"])],64)):((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,{key:1},(0,n.renderList)(c.value,e=>{let{key:t,title:i}=e;return(0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(r.Z),{key:t,"syno-id":t,title:i,onClick:e=>h(t)},null,8,["syno-id","title","onClick"])}),128))}})},25260:function(e,t,i){"use strict";i.d(t,{Z:()=>b});var n=i(63447),o=i(76293),r=i(23886);let a=["width","height"],s=(0,n.defineComponent)({name:"vIconBtSubmit",props:{width:{type:[Number,String],default:20},height:{type:[Number,String],default:20}}});var l=i(4337);let c=(0,l.default)(s,[["render",function(e,t,i,o,r,s){return(0,n.openBlock)(),(0,n.createElementBlock)("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:e.width,height:e.height},t[0]||(t[0]=[(0,n.createElementVNode)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M13.4107 10.5897C13.7362 10.9151 14.2638 10.9151 14.5892 10.5897C14.9147 10.2643 14.9147 9.73664 14.5892 9.4112L10.5892 5.41108C10.4329 5.25479 10.221 5.16699 9.99994 5.16699C9.77892 5.16699 9.56695 5.25479 9.41067 5.41108L5.41067 9.41124C5.08524 9.73668 5.08525 10.2643 5.4107 10.5897C5.73614 10.9152 6.26378 10.9152 6.58921 10.5897L9.16665 8.01219L9.16665 14.0002C9.16665 14.4604 9.53974 14.8335 9.99998 14.8335C10.4602 14.8335 10.8333 14.4604 10.8333 14.0002L10.8333 8.01224L13.4107 10.5897Z",fill:"white"},null,-1)]),8,a)}]]),d=["width","height"],u=(0,n.defineComponent)({name:"vIconBtStop",props:{width:{type:[Number,String],default:20},height:{type:[Number,String],default:20}}}),h=(0,l.default)(u,[["render",function(e,t,i,o,r,a){return(0,n.openBlock)(),(0,n.createElementBlock)("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:e.width,height:e.height},t[0]||(t[0]=[(0,n.createElementVNode)("rect",{x:"7",y:"7",width:"6",height:"6",fill:"white"},null,-1)]),8,d)}]]);var p=i(32334);let f=(0,n.defineComponent)({__name:"SubmitButton",props:{type:{},disabled:{type:Boolean,default:!1}},emits:["click"],setup(e,t){let{emit:i}=t,a=(0,n.computed)(()=>"submit"===e.type?c:h),s=(0,n.computed)(()=>{switch(e.type){case"submit":default:return{disabled:!0};case"stop":return{content:(0,p.$)("effect","stop")}}});return(e,t)=>{let l=(0,n.resolveDirective)("tooltip");return(0,n.withDirectives)(((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(o.Z),{"syno-id":"button",display:"icon",type:"styleless",disabled:e.disabled,class:(0,n.normalizeClass)(e.$style.button),onClick:t[0]||(t[0]=e=>i("click"))},{icon:(0,n.withCtx)(()=>[(0,n.createVNode)((0,n.unref)(r.Z),{"svg-icon":a.value,disabled:e.disabled},null,8,["svg-icon","disabled"])]),_:1},8,["disabled","class"])),[[l,s.value]])}}});var g=i(55141),m=i.n(g);let v={};v.$style=m();let b=(0,l.default)(f,[["__cssModules",v]])},46804:function(e,t,i){"use strict";i.d(t,{Z:()=>e5});var n=i(63447),o=i(32334),r=i(65949),a=i(22366),s=i(3384),l=i(72681),c=i(92325),d=i(55693);let u=["onClick"],h=(0,n.defineComponent)({__name:"TypesList",setup(e){let t=(0,d.G)(),i=function(){let e=c.xs;return[["bar",e.CHART_TYPE.BAR,e.DIRECTION.COL,e.GROUPING.STANDARD,(0,o.$)("chart","type_bar")],["bar-stack",e.CHART_TYPE.BAR,e.DIRECTION.COL,e.GROUPING.STACKED,(0,o.$)("chart","type_bar_stack")],["bar-horizontal",e.CHART_TYPE.BAR,e.DIRECTION.ROW,e.GROUPING.STANDARD,(0,o.$)("chart","type_bar_horizontal")],["bar-stack-horizontal",e.CHART_TYPE.BAR,e.DIRECTION.ROW,e.GROUPING.STACKED,(0,o.$)("chart","type_bar_stack_horizontal")],["line",e.CHART_TYPE.LINE,e.DIRECTION.COL,e.GROUPING.STANDARD,(0,o.$)("chart","type_line")],["line-stack",e.CHART_TYPE.LINE,e.DIRECTION.COL,e.GROUPING.STACKED,(0,o.$)("chart","type_line_stack")],["area",e.CHART_TYPE.AREA,e.DIRECTION.COL,e.GROUPING.STANDARD,(0,o.$)("chart","type_area")],["area-stack",e.CHART_TYPE.AREA,e.DIRECTION.COL,e.GROUPING.STACKED,(0,o.$)("chart","type_area_stack")],["pie",e.CHART_TYPE.PIE,e.DIRECTION.COL,e.GROUPING.STANDARD,(0,o.$)("chart","type_pie")],["scatter",e.CHART_TYPE.SCATTER,e.DIRECTION.COL,e.GROUPING.STANDARD,(0,o.$)("chart","type_scatter")],["hybrid",e.CHART_TYPE.HYBRID,e.DIRECTION.COL,e.GROUPING.STANDARD,(0,o.$)("chart","type_hybrid")]].map(e=>({class:e[0],type:e[1],direction:e[2],grouping:e[3],tip:e[4]}))}(),r=(0,n.ref)(-1);(0,n.watch)(()=>t.chartInfo,e=>{if(!e){r.value=-1;return}let t=e?.getChartSetting().type,n=e?.getChartSetting().barDir,o=e?.getChartSetting().grouping;r.value=i.findIndex(e=>e.type===t&&e.direction===n&&e.grouping===c.xs.GROUPING.STACKED==(o===c.xs.GROUPING.STACKED))},{immediate:!0});let a=(0,n.useCssModule)();return(e,o)=>{let s=(0,n.resolveDirective)("tooltip");return(0,n.openBlock)(),(0,n.createElementBlock)("div",{class:(0,n.normalizeClass)(e.$style.container)},[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)((0,n.unref)(i),(e,o)=>{var l;return(0,n.withDirectives)(((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:e.class,class:(0,n.normalizeClass)((l=e.class,[a.icon,a[`icon-${l}`],r.value===o?a.active:""])),onClick:n=>(function(e,n,o){let a=i[r.value];(a.type!==e||a.direction!==n||a.grouping!==o)&&t.relayMethod("applyChartSetting",[e,n,o])})(e.type,e.direction,e.grouping)},null,10,u)),[[s,e.tip]])}),128))],2)}}});var p=i(29419),f=i.n(p),g=i(4337);let m={};m.$style=f();let v=(0,g.default)(h,[["__cssModules",m]]);var b=i(29095);let y={key:0},w=(0,n.defineComponent)({__name:"DataPanel",setup(e){let t=(0,d.G)(),i=(0,n.computed)(()=>!!t.chartInfo),r=(0,n.ref)(!1),a=(0,n.ref)(!1),s=(0,n.ref)(!1);function l(e){t.relayMethod("applyUseColumnHeader",[e])}function c(e){t.relayMethod("applyUseRowHeader",[e])}function u(e){t.relayMethod("applySwitchRowColumn",[e])}return(0,n.watch)(()=>t.chartInfo,e=>{e&&(r.value=e.getUseColumnHeader(),a.value=e.getUseRowHeader(),s.value=e.getSwitchRowColumn())},{immediate:!0}),(e,t)=>i.value?((0,n.openBlock)(),(0,n.createElementBlock)("div",y,[(0,n.createElementVNode)("div",{class:(0,n.normalizeClass)(e.$style.wrapper)},[(0,n.createVNode)(v)],2),(0,n.createElementVNode)("div",{class:(0,n.normalizeClass)(e.$style.separator)},null,2),(0,n.createElementVNode)("div",{class:(0,n.normalizeClass)(e.$style.wrapper)},[(0,n.renderSlot)(e.$slots,"data-editor")],2),(0,n.createElementVNode)("div",{class:(0,n.normalizeClass)(e.$style.separator)},null,2),(0,n.createElementVNode)("div",{class:(0,n.normalizeClass)(e.$style.wrapper)},[(0,n.createVNode)((0,n.unref)(b.Z),{"model-value":r.value,"syno-id":"column_header",onChange:l},{default:(0,n.withCtx)(()=>[(0,n.createTextVNode)((0,n.toDisplayString)((0,n.unref)(o.$)("chart","use_column_header")),1)]),_:1},8,["model-value"]),(0,n.createVNode)((0,n.unref)(b.Z),{"model-value":a.value,"syno-id":"column-header",onChange:c},{default:(0,n.withCtx)(()=>[(0,n.createTextVNode)((0,n.toDisplayString)((0,n.unref)(o.$)("chart","use_row_header")),1)]),_:1},8,["model-value"]),(0,n.createVNode)((0,n.unref)(b.Z),{"model-value":s.value,"syno-id":"column_header",onChange:u},{default:(0,n.withCtx)(()=>[(0,n.createTextVNode)((0,n.toDisplayString)((0,n.unref)(o.$)("chart","switch_row_column")),1)]),_:1},8,["model-value"])],2)])):(0,n.createCommentVNode)("",!0)}});var _=i(7334),x=i.n(_);let S={};S.$style=x();let C=(0,g.default)(w,[["__cssModules",S]]);var k=i(37167),I=i(21723),A=i(56280),T=i(87708),E=i(60592);let R=(0,n.defineComponent)({__name:"FormItem",props:{label:{}},setup:e=>(e,t)=>{let i=(0,n.resolveDirective)("tooltip");return(0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(A.Z),{"syno-id":"form-item"},{label:(0,n.withCtx)(()=>[(0,n.withDirectives)(((0,n.openBlock)(),(0,n.createElementBlock)("div",{class:(0,n.normalizeClass)(e.$style.label)},[(0,n.createTextVNode)((0,n.toDisplayString)(`${e.label}${(0,n.unref)(o.$)("common","colon")}`),1)],2)),[[i,{content:e.label,overflowOnly:!0}]])]),default:(0,n.withCtx)(()=>[(0,n.renderSlot)(e.$slots,"default")]),_:3})}});var D=i(71556),O=i.n(D);let M={};M.$style=O();let N=(0,g.default)(R,[["__cssModules",M]]);var P=i(94550),L=i(63462);let B=(0,n.defineComponent)({__name:"RowCol",setup:e=>(e,t)=>((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(P.Z),{"syno-id":"row-1",gap:["8px","8px"]},{default:(0,n.withCtx)(()=>[(0,n.createVNode)((0,n.unref)(L.Z),{"syno-id":"col-1",flex:"12"},{default:(0,n.withCtx)(()=>[(0,n.renderSlot)(e.$slots,"col1")]),_:3}),(0,n.createVNode)((0,n.unref)(L.Z),{"syno-id":"col-2",flex:"12"},{default:(0,n.withCtx)(()=>[(0,n.renderSlot)(e.$slots,"col2")]),_:3})]),_:3}))});function F(e){return e.alpha<1?e.color+Math.round(255*e.alpha).toString(16).padStart(2,"0"):e.color}function V(e){return{color:`#${e.slice(0,6)}`,alpha:e.length>6?parseInt(e.slice(6),16)/255:1}}let z=(0,n.defineComponent)({__name:"StyleFieldset",props:{isCollapsed:{type:Boolean}},emits:["click-header"],setup(e,t){let{emit:i}=t,r=(0,d.G)(),a=(0,n.ref)({color:"#ffffff",alpha:1}),s=(0,n.ref)(""),l=(0,n.ref)(!1),u=(0,n.ref)(!1);function h(e){let t=e?F(e):null;r.relayMethod("applyChartBackgroundColor",[t])}function p(e){let t=r.chartInfo;t&&t.ensureGlobalTextStyle().getFontFamily()!==e&&r.relayMethod("applyGlobalFontFamily",[e])}function f(e){r.relayMethod("applyChartShowBlank",[e])}return(0,n.watch)(()=>r.chartInfo,e=>{e&&(a.value=V(e.ensureChart().getBackgroundColor().slice(1)),s.value=e.ensureGlobalTextStyle().getFontFamily(),l.value=[c.xs.CHART_TYPE.LINE,c.xs.CHART_TYPE.AREA,c.xs.CHART_TYPE.HYBRID].indexOf(e.ensureChart().getType())>=0,u.value=e.ensurePlotArea().getBlankAs()===c.xs.BLANK_AS.SPAN)},{immediate:!0}),(e,t)=>(0,n.unref)(r).chartInfo?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(k.Z),{key:0,"syno-id":"style-fieldset",title:(0,n.unref)(o.$)("chart","chart_style_title"),collapsed:e.isCollapsed,"layout-order":-1/0,onHeaderClick:t[0]||(t[0]=e=>i("click-header"))},{default:(0,n.withCtx)(()=>[(0,n.createVNode)((0,n.unref)(I.Z),{"syno-id":"form",class:(0,n.normalizeClass)(e.$style.form),direction:"vertical"},{default:(0,n.withCtx)(()=>[(0,n.createVNode)(B,null,{col1:(0,n.withCtx)(()=>[(0,n.createVNode)(N,{label:(0,n.unref)(o.$)("handsontable","background_color")},{default:(0,n.withCtx)(()=>[(0,n.createVNode)(T.Z,{"syno-id":"color-picker","model-value":a.value.color,alpha:a.value.alpha,"has-alpha":"",onChange:h},null,8,["model-value","alpha"])]),_:1},8,["label"])]),col2:(0,n.withCtx)(()=>[(0,n.createVNode)(N,{label:(0,n.unref)(o.$)("handsontable","fontfamily")},{default:(0,n.withCtx)(()=>[(0,n.createVNode)(E.Z,{"model-value":s.value,"onUpdate:modelValue":p},null,8,["model-value"])]),_:1},8,["label"])]),_:1}),l.value?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(A.Z),{key:0,"syno-id":"hide-label-item","hide-label":""},{default:(0,n.withCtx)(()=>[(0,n.createVNode)((0,n.unref)(b.Z),{"model-value":u.value,"syno-id":"null-label",onChange:f},{default:(0,n.withCtx)(()=>[(0,n.createTextVNode)((0,n.toDisplayString)((0,n.unref)(o.$)("chart","show_null_value")),1)]),_:1},8,["model-value"])]),_:1})):(0,n.createCommentVNode)("",!0)]),_:1},8,["class"])]),_:1},8,["title","collapsed"])):(0,n.createCommentVNode)("",!0)}});var H=i(57792),W=i.n(H);let Y={};Y.$style=W();let U=(0,g.default)(z,[["__cssModules",Y]]);var G=i(92731),Z=i(251);let j=(0,n.defineComponent)({__name:"FontFormItems",props:{disabled:{type:Boolean},familyLabel:{},sizeLabel:{},styleLabel:{},fontConfig:{}},emits:["update:family","update:size","update:bold","update:italic","update:color"],setup(e,t){let{emit:i}=t,r=[{value:10,title:"10"},{value:12,title:"12"},{value:14,title:"14"},{value:16,title:"16"},{value:18,title:"18"},{value:24,title:"24"},{value:36,title:"36"}],a=(0,n.useCssModule)(),s=(0,n.computed)(()=>[{type:"defaultBtn",name:"bold",active:e.fontConfig.bold,disabled:e.disabled,tooltip:(0,o.$)("handsontable","bold"),cls:a.bold},{type:"defaultBtn",name:"italic",active:e.fontConfig.italic,disabled:e.disabled,tooltip:(0,o.$)("handsontable","italic"),cls:a.italic},{type:"colorPickerBtn",name:"color",color:e.fontConfig.color.slice(1),disabled:e.disabled,tooltip:(0,o.$)("tag","color"),cls:a.color}]);function l(t){"bold"===t?i("update:bold",!e.fontConfig.bold):"italic"===t&&i("update:italic",!e.fontConfig.italic)}return(t,o)=>((0,n.openBlock)(),(0,n.createElementBlock)("div",null,[(0,n.createVNode)(B,null,{col1:(0,n.withCtx)(()=>[(0,n.createVNode)(N,{label:t.familyLabel},{default:(0,n.withCtx)(()=>[(0,n.createVNode)(E.Z,{"model-value":t.fontConfig.family,disabled:e.disabled,"onUpdate:modelValue":o[0]||(o[0]=e=>i("update:family",e))},null,8,["model-value","disabled"])]),_:1},8,["label"])]),col2:(0,n.withCtx)(()=>[(0,n.createVNode)(N,{label:t.sizeLabel},{default:(0,n.withCtx)(()=>[(0,n.createVNode)((0,n.unref)(Z.r),{"model-value":t.fontConfig.size,"syno-id":"input-steppers-size",menu:r,min:0,step:1,disabled:e.disabled,"onUpdate:modelValue":o[1]||(o[1]=e=>i("update:size",e))},null,8,["model-value","disabled"])]),_:1},8,["label"])]),_:1}),(0,n.createVNode)(B,null,{col1:(0,n.withCtx)(()=>[(0,n.createVNode)(N,{label:t.styleLabel},{default:(0,n.withCtx)(()=>[(0,n.createVNode)((0,n.unref)(G.u),{elements:s.value,class:(0,n.normalizeClass)(t.$style.toolbar),"cls-dropdown":t.$style.dropdown,"disable-label":e.disabled,onClick:l,onUpdateColor:o[2]||(o[2]=(e,t)=>{i("update:color",void 0===t?null:`#${t}`)})},null,8,["elements","class","cls-dropdown","disable-label"])]),_:1},8,["label"])]),col2:(0,n.withCtx)(()=>[(0,n.renderSlot)(t.$slots,"additional-col")]),_:3})]))}});var q=i(32128),K=i.n(q);let X={};X.$style=K();let Q=(0,g.default)(j,[["__cssModules",X]]);var $=i(72914);let J=(0,n.defineComponent)({__name:"CustomSelect",props:{synoId:{},modelValue:{type:[String,Number,Boolean,null]},showTickIconModelValues:{}},setup:e=>(t,i)=>((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)($.Z),(0,n.mergeProps)({"syno-id":t.synoId,"model-value":t.modelValue,width:"auto","max-height":"100%","display-mode":"text","custom-dropdown-cls":t.$style.dropdown},t.$attrs),(0,n.createSlots)({"inner-option":(0,n.withCtx)(i=>{var o;let{option:r}=i;return[(0,n.createElementVNode)("div",{class:(0,n.normalizeClass)([t.$style["tick-icon"],{[t.$style.hidden]:(o=r.value,!e.showTickIconModelValues?.includes(o))}])},null,2),r.icon?((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:0,class:(0,n.normalizeClass)([r.icon,t.$style["option-icon"]])},null,2)):(0,n.createCommentVNode)("",!0),""!==r.label?((0,n.openBlock)(),(0,n.createElementBlock)("span",{key:1,class:(0,n.normalizeClass)([t.$style.text,"option-text"])},(0,n.toDisplayString)(r.label),3)):(0,n.createCommentVNode)("",!0)]}),_:2},[(0,n.renderList)(t.$slots,(e,i)=>({name:i,fn:(0,n.withCtx)(e=>[(0,n.renderSlot)(t.$slots,i,(0,n.normalizeProps)((0,n.guardReactiveProps)(e)))])}))]),1040,["syno-id","model-value","custom-dropdown-cls"]))});var ee=i(72524),et=i.n(ee);let ei={};ei.$style=et();let en=(0,g.default)(J,[["__cssModules",ei]]);function eo(e,t){return{family:e.getFontFamily()||t.getFontFamily(),size:e.getFontSize()||t.getFontSize(),bold:e.getBold()||t.getBold(),italic:e.getItalic()||t.getItalic(),color:e.getColor()||t.getColor()}}let er=(0,n.defineComponent)({__name:"PieFieldset",props:{isCollapsed:{type:Boolean}},emits:["click-header"],setup(e,t){let{emit:i}=t,r=(0,d.G)(),a=(0,n.ref)(0),s=(0,n.ref)({color:"#ffffff",alpha:1}),l=(0,n.ref)("none"),c=(0,n.ref)({family:"",size:0,bold:!1,italic:!1,color:"#ffffff"}),u=(0,n.ref)(!1),h=[{value:0,label:"0%"},{value:25,label:"25%"},{value:50,label:"50%"},{value:75,label:"75%"}],p=[{value:"none",label:(0,o.$)("common","none"),options:{cat:!1,val:!1,percent:!1}},{value:"label",label:(0,o.$)("chart","show_label"),options:{cat:!0,val:!1,percent:!1}},{value:"value",label:(0,o.$)("chart","show_value"),options:{cat:!1,val:!0,percent:!1}},{value:"percent",label:(0,o.$)("chart","show_percent"),options:{cat:!1,val:!1,percent:!0}},{value:"value-percent",label:(0,o.$)("chart","show_value_percent"),options:{cat:!1,val:!0,percent:!0}}];function f(e){let t=r.chartInfo;if(!t)return;let i=e?F(e):null;t.ensurePieSeries().getPieBorderColor()!==i&&r.relayMethod("applyPieBorderColor",[i])}function g(e){let t=r.chartInfo;t&&t.ensurePieSeries().getPieHoleSize()!==e&&r.relayMethod("applyPieHoleSize",[e])}function m(e){let t=r.chartInfo;if(!t)return;let i=p.find(t=>t.value===e)?.options;if(!i)return;let n=t.ensurePieLabel();(n.getShowCat()!==i.cat||n.getShowVal()!==i.val||n.getShowPercent()!==i.percent)&&r.relayMethod("applyPieLabelDisplay",[i])}function v(e){let t=r.chartInfo;t&&t.ensurePieLabelStyle().getFontFamily()!==e&&r.relayMethod("applyPieLabelFontFamily",[e])}function b(e){let t=r.chartInfo;t&&t.ensurePieLabelStyle().getFontSize()!==e&&r.relayMethod("applyPieLabelFontSize",[e])}function y(e){let t=r.chartInfo;t&&t.ensurePieLabelStyle().getBold()!==e&&r.relayMethod("applyPieLabelBold",[e])}function w(e){let t=r.chartInfo;t&&t.ensurePieLabelStyle().getItalic()!==e&&r.relayMethod("applyPieLabelItalic",[e])}function _(e){let t=r.chartInfo;t&&t.ensurePieLabelStyle().getColor()!==e&&r.relayMethod("applyPieLabelColor",[e])}return(0,n.watch)(()=>r.chartInfo,e=>{if(!e)return;let t=e.ensurePieSeries();a.value=t.getPieHoleSize();let i=t.getPieBorderColor();s.value=i?V(i.slice(1)):{color:"#ffffff",alpha:1};let n=t.ensureLabel();l.value=p.find(e=>e.options.cat===n.getShowCat()&&e.options.val===n.getShowVal()&&e.options.percent===n.getShowPercent())?.value??"none",c.value=eo(e.ensurePieLabelStyle(),e.ensureGlobalTextStyle()),u.value="none"===l.value},{immediate:!0}),(e,t)=>(0,n.unref)(r).chartInfo?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(k.Z),{key:0,"syno-id":"fieldset",title:(0,n.unref)(o.$)("chart","type_pie"),collapsed:e.isCollapsed,onHeaderClick:t[0]||(t[0]=e=>i("click-header"))},{default:(0,n.withCtx)(()=>[(0,n.createVNode)((0,n.unref)(I.Z),{"syno-id":"form",class:(0,n.normalizeClass)(e.$style.form),direction:"vertical"},{default:(0,n.withCtx)(()=>[(0,n.createVNode)(B,null,{col1:(0,n.withCtx)(()=>[(0,n.createVNode)(N,{label:(0,n.unref)(o.$)("chart","doughnut_hole")},{default:(0,n.withCtx)(()=>[(0,n.createVNode)(en,{"syno-id":"doughnut-hole","model-value":a.value,options:h,"show-tick-icon-model-values":[a.value],"onUpdate:modelValue":g},null,8,["model-value","show-tick-icon-model-values"])]),_:1},8,["label"])]),col2:(0,n.withCtx)(()=>[(0,n.createVNode)(N,{label:(0,n.unref)(o.$)("handsontable","border_color")},{default:(0,n.withCtx)(()=>[(0,n.createVNode)(T.Z,{"syno-id":"color-picker","model-value":s.value.color,alpha:s.value.alpha,"has-alpha":"",onChange:f},null,8,["model-value","alpha"])]),_:1},8,["label"])]),_:1}),(0,n.createVNode)(N,{label:(0,n.unref)(o.$)("chart","slice_label")},{default:(0,n.withCtx)(()=>[(0,n.createVNode)(en,{"syno-id":"slice-label","model-value":l.value,options:p,"show-tick-icon-model-values":[l.value],"onUpdate:modelValue":m},null,8,["model-value","show-tick-icon-model-values"])]),_:1},8,["label"]),(0,n.createVNode)(Q,{disabled:u.value,"family-label":(0,n.unref)(o.$)("chart","label_font"),"size-label":(0,n.unref)(o.$)("chart","label_size"),"style-label":(0,n.unref)(o.$)("chart","label_style"),"font-config":c.value,"onUpdate:family":v,"onUpdate:size":b,"onUpdate:bold":y,"onUpdate:italic":w,"onUpdate:color":_},null,8,["disabled","family-label","size-label","style-label","font-config"])]),_:1},8,["class"])]),_:1},8,["title","collapsed"])):(0,n.createCommentVNode)("",!0)}});var ea=i(22779),es=i.n(ea);let el={};el.$style=es();let ec=(0,g.default)(er,[["__cssModules",el]]);var ed=i(32361);let eu=(0,n.defineComponent)({__name:"TitleFieldset",props:{isCollapsed:{type:Boolean}},emits:["click-header"],setup(e,t){let{emit:i}=t,r=(0,d.G)(),a=(0,n.ref)("title"),s=(0,n.ref)(""),l=(0,n.ref)({family:"",size:0,bold:!1,italic:!1,color:"#ffffff"}),u=(0,n.computed)(()=>{let e=[{value:"title",label:(0,o.$)("chart","title")},{value:"subtitle",label:(0,o.$)("chart","subtitle")}],t=r.chartInfo;if(!t)return e;let i=t.getChartSetting();if(i.type!==c.xs.CHART_TYPE.PIE){let n=i.type===c.xs.CHART_TYPE.BAR&&i.barDir===c.xs.DIRECTION.ROW;e.push({value:"xTitle",label:(0,o.$)("chart",n?"vertical_axis_title":"horizontal_axis_title")});let r=!1,a=!1;t.forEachSeries(e=>(e.getRightAxis()?r=!0:a=!0,!!r&&!!a||null),this),a&&e.push({value:"yTitle",label:(0,o.$)("chart",n?"horizontal_axis_title":"vertical_axis_title")}),r&&e.push({value:"y2Title",label:(0,o.$)("chart",n?"top_horizontal_axis_title":"right_vertical_axis_title")})}return e});function h(){let e=r.chartInfo;if(!e)return;let t=e.ensureTitle(a.value);s.value!==t.getText()&&(s.value=t.getText()),l.value=eo(t.ensureTextStyle(),e.ensureGlobalTextStyle())}function p(e){a.value=e,h()}function f(e){let t=r.chartInfo;t&&t.ensureTitle(a.value).ensureTextStyle().getFontFamily()!==e&&r.relayMethod("applyTitleFontFamily",[a.value,e])}function g(e){let t=r.chartInfo;t&&t.ensureTitle(a.value).ensureTextStyle().getFontSize()!==e&&r.relayMethod("applyTitleFontSize",[a.value,e])}function m(e){let t=r.chartInfo;t&&t.ensureTitle(a.value).ensureTextStyle().getBold()!==e&&r.relayMethod("applyTitleBold",[a.value,e])}function v(e){let t=r.chartInfo;t&&t.ensureTitle(a.value).ensureTextStyle().getItalic()!==e&&r.relayMethod("applyTitleItalic",[a.value,e])}function b(e){let t=r.chartInfo;t&&t.ensureTitle(a.value).ensureTextStyle().getColor()!==e&&r.relayMethod("applyTitleColor",[a.value,e])}return(0,n.watch)(()=>r.chartInfo,e=>{e&&(u.value.some(e=>e.value===a.value)||(a.value=u.value[0].value),h())},{immediate:!0}),(0,n.watch)(()=>s.value,e=>{var t=e;let i=r.chartInfo;i&&i.ensureTitle(a.value).getText()!==t&&r.relayMethod("applyTitleText",[a.value,t])}),(e,t)=>(0,n.unref)(r).chartInfo?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(k.Z),{key:0,"syno-id":"fieldset-title",title:(0,n.unref)(o.$)("chart","chart_title_title"),collapsed:e.isCollapsed,onHeaderClick:t[1]||(t[1]=e=>i("click-header"))},{default:(0,n.withCtx)(()=>[(0,n.createVNode)((0,n.unref)(I.Z),{"syno-id":"form-title",class:(0,n.normalizeClass)(e.$style.form),direction:"vertical"},{default:(0,n.withCtx)(()=>[(0,n.createVNode)(N,{label:(0,n.unref)(o.$)("chart","title_type")},{default:(0,n.withCtx)(()=>[(0,n.createVNode)(en,{"model-value":a.value,"syno-id":"type",options:u.value,"onUpdate:modelValue":p},null,8,["model-value","options"])]),_:1},8,["label"]),(0,n.createVNode)(N,{label:(0,n.unref)(o.$)("chart","title_text")},{default:(0,n.withCtx)(()=>[(0,n.createVNode)((0,n.unref)(ed.Z),{modelValue:s.value,"onUpdate:modelValue":t[0]||(t[0]=e=>s.value=e),"syno-id":"input-slice-label"},null,8,["modelValue"])]),_:1},8,["label"]),(0,n.createVNode)(Q,{disabled:""===s.value,"family-label":(0,n.unref)(o.$)("chart","title_font"),"size-label":(0,n.unref)(o.$)("chart","title_size"),"style-label":(0,n.unref)(o.$)("chart","title_style"),"font-config":l.value,"onUpdate:family":f,"onUpdate:size":g,"onUpdate:bold":m,"onUpdate:italic":v,"onUpdate:color":b},null,8,["disabled","family-label","size-label","style-label","font-config"])]),_:1},8,["class"])]),_:1},8,["title","collapsed"])):(0,n.createCommentVNode)("",!0)}});var eh=i(93396),ep=i.n(eh);let ef={};ef.$style=ep();let eg=(0,g.default)(eu,[["__cssModules",ef]]);var em=i(23886);let ev=(0,n.defineComponent)({__name:"SeriesFieldset",props:{isCollapsed:{type:Boolean}},emits:["click-header"],setup(e,t){let{emit:i}=t,r=(0,d.G)(),a=(0,n.ref)(!1),s=(0,n.ref)(null),l=(0,n.ref)(!1),u=(0,n.ref)(!1),h=(0,n.ref)(!1),p=(0,n.ref)(1),f=(0,n.ref)(!1),g=(0,n.ref)(!1),m=(0,n.ref)(!1),v=(0,n.ref)(!1),y=(0,n.ref)(!1),w=(0,n.ref)(""),_=(0,n.ref)(!1),x=(0,n.ref)("#ffffff"),S=(0,n.ref)(!1),C=(0,n.ref)({family:"",size:0,bold:!1,italic:!1,color:"#ffffff"}),E=(0,n.ref)(!1),R=(0,n.ref)(1),D=(0,n.ref)("solid"),O=(0,n.ref)(!1),M=(0,n.ref)(2),P=(0,n.ref)("none"),L=(0,n.useCssModule)(),F=(0,n.ref)(-1),V=(0,n.computed)(()=>{let e=r.chartInfo;if(!e)return[];let t=e.getChartSetting().type===c.xs.CHART_TYPE.PIE,i=[];if(t){let t=e.getEmptyCategory(),n=e.getSeriesCat();Array.isArray(n)&&n.forEach(function(e,n){let r=e?String(e):String.format((0,o.$)("chart","pie_series_default_display"),n+1);t[n]||i.push({value:n,label:r})})}else{let t=e.getEmptySeries();i.push({value:-1,label:(0,o.$)("chart","all_series")});let n=e.getSeriesTx();Array.isArray(n)&&n.forEach(function(e,n){t[n]||i.push({value:n,label:e?String(e):String.format((0,o.$)("chart","series_default_display"),n+1)})})}return i}),z=[{value:c.xs.CHART_TYPE.BAR,label:(0,o.$)("chart","type_bar")},{value:c.xs.CHART_TYPE.LINE,label:(0,o.$)("chart","type_line")}],H=[{value:1,label:"1px"},{value:2,label:"2px"},{value:3,label:"3px"},{value:4,label:"4px"},{value:8,label:"8px"},{value:12,label:"12px"},{value:16,label:"16px"},"-",{value:"solid",label:"",icon:L["line-solid"]},{value:"dash",label:"",icon:L["line-dash"]},{value:"dot",label:"",icon:L["line-dot"]}],W=(0,n.computed)(()=>L["line-"+D.value]),Y=(0,n.computed)(()=>{let e=r.chartInfo;if(!e)return[];let t=e.getChartSetting();if(t.type===c.xs.CHART_TYPE.PIE)return[];let i=t.type===c.xs.CHART_TYPE.BAR&&t.barDir===c.xs.DIRECTION.ROW;return[{value:!1,label:(0,o.$)("chart",i?"bottom_axis":"left_axis")},{value:!0,label:(0,o.$)("chart",i?"top_axis":"right_axis")}]}),U=[{value:2,label:"2px"},{value:5,label:"5px"},{value:7,label:"7px"},{value:10,label:"10px"},{value:14,label:"14px"},"-",{value:"none",label:(0,o.$)("common","none"),icon:L["point-none"]},{value:"circle",label:(0,o.$)("chart","symbol_circle"),icon:L["point-circle"]},{value:"triangle",label:(0,o.$)("chart","symbol_triangle"),icon:L["point-triangle"]},{value:"square",label:(0,o.$)("chart","symbol_square"),icon:L["point-square"]},{value:"diamond",label:(0,o.$)("chart","symbol_diamond"),icon:L["point-diamond"]}],G=(0,n.computed)(()=>L["point-"+P.value]),Z=[{value:0,label:"0%"},{value:.1,label:"10%"},{value:.2,label:"20%"},{value:.3,label:"30%"},{value:.5,label:"50%"},{value:.7,label:"70%"},{value:.9,label:"90%"},{value:1,label:"100%"}],j=[{value:"t",label:(0,o.$)("common","position_top")},{value:"l",label:(0,o.$)("common","position_left")},{value:"r",label:(0,o.$)("common","position_right")},{value:"b",label:(0,o.$)("common","position_bottom")}],q=[{value:"t",label:(0,o.$)("chart","label_position_outside")},{value:"inBase",label:(0,o.$)("chart","label_position_inside_base")},{value:"inCenter",label:(0,o.$)("chart","label_position_inside_center")},{value:"inEnd",label:(0,o.$)("chart","label_position_inside_end")}],K=(0,n.ref)(j);function X(e,t,i,n){null===e[t]?e[t]=i:e[t]!==i&&(e[t]=n)}function $(){let e=r.chartInfo;if(!e)return;let t=e.ensureChart().getType()!==c.xs.CHART_TYPE.PIE&&!0===v.value,i=-1===F.value?null:F.value,n=e.ensureChart().getType(),o=n===c.xs.CHART_TYPE.HYBRID;if(y.value=t&&(!o||null!==i),S.value=t,!t)return;let a=e.ensureSeries(i);if(y.value&&(K.value=n===c.xs.CHART_TYPE.BAR||o&&a.getType()===c.xs.CHART_TYPE.BAR?q:j),null==i){let e=r.chartInfo;if(!e)return;let t={position:null,fontFamily:null,fontSize:null,italic:null,bold:null,color:null};e.forEachSeries(function(e){let i=e.ensureLabel(),n=i.ensureTextStyle();X(t,"position",i.getPosition(),""),X(t,"fontFamily",n.getFontFamily(),""),X(t,"fontSize",n.getFontSize(),0),X(t,"italic",n.getItalic(),!1),X(t,"bold",n.getBold(),!1),X(t,"color",n.getColor(),"#000000")}),null===t.position?w.value=K.value[0].value:w.value=t.position,C.value=eo(new(e.getConfigCls("textStyle"))(e,t),e.ensureGlobalTextStyle());return}let s=a.ensureLabel(),l=s.getPosition();-1===K.value.findIndex(e=>e.value===l)?w.value=K.value[0].value:w.value=l,C.value=eo(s.ensureTextStyle(),e.ensureGlobalTextStyle())}function J(){let e=r.chartInfo;if(!e)return;let t=-1===F.value?null:F.value;e.ensureChart().getType()===c.xs.CHART_TYPE.PIE?function(){let e=r.chartInfo;if(!e)return;let t=-1===F.value?null:F.value;if(null==t||t<0)return;let i=e.ensurePieSeries().getPieColor(t);if(!i){let n=e.getSeriesThemeColors();i=n[t%n.length]}_.value=!0,x.value=i,a.value=!1,E.value=!1,l.value=!1,O.value=!1,h.value=!1,f.value=!1,m.value=!1,$()}():null==t?function(){let e=r.chartInfo;if(!e)return;let t={type:null,lineType:null,lineWidth:null,isRightAxis:null,markerSymbol:null,markerSize:null,opacity:null,smooth:null,label:null};e.forEachSeries(function(e){X(t,"type",e.getType(),null),X(t,"lineType",e.ensureLineStyle().getType(),!1),X(t,"lineWidth",e.ensureLineStyle().getWidth(),!1),X(t,"isRightAxis",e.getRightAxis(),!1),X(t,"markerSymbol",e.ensureMarker().getSymbol(),!1),X(t,"markerSize",e.ensureMarker().getSize(),!1),X(t,"opacity",e.getOpacity(),null),X(t,"smooth",e.getSmooth(),!1),X(t,"label",!e.ensureLabel().getHidden(),!1)}),_.value=!1;let i=e.ensureChart().getType();a.value=i===c.xs.CHART_TYPE.HYBRID,s.value=t.type;let n=i===c.xs.CHART_TYPE.LINE||i===c.xs.CHART_TYPE.AREA;E.value=n,"boolean"!=typeof t.lineType&&"boolean"!=typeof t.lineWidth&&null!==t.lineType&&null!==t.lineWidth&&(D.value=t.lineType,R.value=t.lineWidth),l.value=!0,null!==t.isRightAxis&&(u.value=t.isRightAxis),O.value=n||i===c.xs.CHART_TYPE.SCATTER,"boolean"!=typeof t.markerSymbol&&"boolean"!=typeof t.markerSize&&null!==t.markerSymbol&&null!==t.markerSize&&(P.value=t.markerSymbol,M.value=t.markerSize),h.value=i===c.xs.CHART_TYPE.AREA,null!==t.opacity&&(p.value=t.opacity),f.value=n,null!==t.smooth&&(g.value=t.smooth),m.value=!0,null!==t.label&&(v.value=t.label),$()}():function(e){if(e<0)return;let t=r.chartInfo;if(!t)return;let i=c.xs.CHART_TYPE,n=t.ensureSeries(e),o=n.getColor();if(!o){let i=t.getSeriesThemeColors();o=i[(e-1)%i.length]}_.value=!0,x.value=o;let d=n.getType();a.value=t.ensureChart().getType()===i.HYBRID,s.value=d;let b=d===i.LINE||d===i.AREA;E.value=b;let y=n.ensureLineStyle().compute();R.value=y.width,D.value=y.type,l.value=!0,u.value=n.getRightAxis(),O.value=b||d===i.SCATTER;let w=n.ensureMarker().compute();M.value=w.size,P.value=w.symbol,h.value=d===i.AREA,p.value=n.getOpacity(),f.value=b,g.value=n.getSmooth(),m.value=!0,v.value=!n.ensureLabel().getHidden(),$()}(t)}function ee(e){let t=r.chartInfo;if(!t)return;let i=-1===F.value?null:F.value;(null===i||e!==t.ensureSeries(i).getType())&&r.relayMethod("applySeriesType",[i,e])}function et(e){let t=r.chartInfo;if(!t)return;let i=-1===F.value?null:F.value,n=e?e.color:null;n!==t.getSeriesColor(i)&&r.relayMethod("applySeriesColor",[i,n])}function ei(e){let t=r.chartInfo;if(!t)return;let i=-1===F.value?null:F.value;"number"==typeof e?(null===i||e!==t.ensureSeries(i).ensureLineStyle().getWidth())&&r.relayMethod("applySeriesLineWidth",[i,e]):(null===i||e!==t.ensureSeries(i).ensureLineStyle().getType())&&r.relayMethod("applySeriesLineType",[i,e])}function er(e){let t=r.chartInfo;if(!t)return;let i=-1===F.value?null:F.value;(null===i||e!==t.ensureSeries(i).getRightAxis())&&r.relayMethod("applySeriesRightAxis",[i,e])}function ea(e){let t=r.chartInfo;if(!t)return;let i=-1===F.value?null:F.value;"number"==typeof e?(null===i||e!==t.ensureSeries(i).ensureMarker().getSize())&&r.relayMethod("applySeriesMarkerSize",[i,e]):(null===i||e!==t.ensureSeries(i).ensureMarker().getSymbol())&&r.relayMethod("applySeriesMarkerSymbol",[i,e])}function es(e){let t=r.chartInfo;if(!t)return;let i=-1===F.value?null:F.value;(null===i||e!==t.ensureSeries(i).getOpacity())&&r.relayMethod("applySeriesOpacity",[i,e])}function el(e){let t=r.chartInfo;if(!t)return;let i=-1===F.value?null:F.value;(null===i||e!==t.ensureSeries(i).getSmooth())&&r.relayMethod("applySeriesSmooth",[i,e])}function ec(e){let t=r.chartInfo;if(!t)return;let i=-1===F.value?null:F.value,n=!e;(null===i||n!==t.ensureSeriesLabel(i).getHidden())&&r.relayMethod("applySeriesLabelHidden",[i,n])}function ed(e){let t=r.chartInfo;if(!t)return;let i=-1===F.value?null:F.value;(null===i||e!==t.ensureSeriesLabel(i).getPosition())&&r.relayMethod("applySeriesLabelPosition",[i,e])}function eu(e){let t=r.chartInfo;if(!t)return;let i=-1===F.value?null:F.value;(null===i||e!==t.ensureSeriesLabelStyle(i).getFontFamily())&&r.relayMethod("applySeriesLabelFontFamily",[i,e])}function eh(e){let t=r.chartInfo;if(!t)return;let i=-1===F.value?null:F.value;(null===i||e!==t.ensureSeriesLabelStyle(i).getFontSize())&&r.relayMethod("applySeriesLabelFontSize",[i,e])}function ep(e){let t=r.chartInfo;if(!t)return;let i=-1===F.value?null:F.value;(null===i||e!==t.ensureSeriesLabelStyle(i).getBold())&&r.relayMethod("applySeriesLabelBold",[i,e])}function ef(e){let t=r.chartInfo;if(!t)return;let i=-1===F.value?null:F.value;(null===i||e!==t.ensureSeriesLabelStyle(i).getItalic())&&r.relayMethod("applySeriesLabelItalic",[i,e])}function eg(e){let t=r.chartInfo;if(!t)return;let i=-1===F.value?null:F.value;(null===i||e!==t.ensureSeriesLabelStyle(i).getColor())&&r.relayMethod("applySeriesLabelColor",[i,e])}return(0,n.watch)(()=>F.value,()=>{J()}),(0,n.watch)(()=>r.chartInfo,async e=>{e&&(V.value.some(e=>e.value===F.value)||(F.value=V.value[0].value),J())},{immediate:!0}),(e,t)=>(0,n.unref)(r).chartInfo?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(k.Z),{key:0,"syno-id":"fieldset",title:(0,n.unref)(o.$)("chart","series"),collapsed:e.isCollapsed,onHeaderClick:t[1]||(t[1]=e=>i("click-header"))},{default:(0,n.withCtx)(()=>[(0,n.createVNode)((0,n.unref)(I.Z),{"syno-id":"form",class:(0,n.normalizeClass)(e.$style.form),direction:"vertical"},{default:(0,n.withCtx)(()=>[(0,n.createVNode)(N,{label:(0,n.unref)(o.$)("common","apply_to")},{default:(0,n.withCtx)(()=>[(0,n.createVNode)(en,{modelValue:F.value,"onUpdate:modelValue":t[0]||(t[0]=e=>F.value=e),"syno-id":"apply-select",options:V.value},null,8,["modelValue","options"])]),_:1},8,["label"]),a.value?((0,n.openBlock)(),(0,n.createBlock)(N,{key:0,label:(0,n.unref)(o.$)("chart","type")},{default:(0,n.withCtx)(()=>[(0,n.createVNode)(en,{"syno-id":"type-select","model-value":s.value,options:z,"onUpdate:modelValue":ee},null,8,["model-value"])]),_:1},8,["label"])):(0,n.createCommentVNode)("",!0),(0,n.createVNode)(B,null,{col1:(0,n.withCtx)(()=>[_.value?((0,n.openBlock)(),(0,n.createBlock)(N,{key:0,label:(0,n.unref)(o.$)("tag","color")},{default:(0,n.withCtx)(()=>[(0,n.createVNode)(T.Z,{"syno-id":"color-picker","model-value":x.value,onChange:et},null,8,["model-value"])]),_:1},8,["label"])):(0,n.createCommentVNode)("",!0)]),col2:(0,n.withCtx)(()=>[E.value?((0,n.openBlock)(),(0,n.createBlock)(N,{key:0,label:(0,n.unref)(o.$)("chart","line_style")},{default:(0,n.withCtx)(()=>[(0,n.createVNode)(en,{"syno-id":"line-select","model-value":D.value,options:H,"show-tick-icon-model-values":[R.value,D.value],"dropdown-width":"auto","dropdown-offset":[-17,1],"onUpdate:modelValue":ei},{icon:(0,n.withCtx)(()=>[(0,n.createVNode)((0,n.unref)(em.Z),{class:(0,n.normalizeClass)(W.value),size:[85,30],type:"bkg-img",style:{left:"9px",top:"1px"}},null,8,["class"])]),_:1},8,["model-value","show-tick-icon-model-values"])]),_:1},8,["label"])):(0,n.createCommentVNode)("",!0)]),_:1}),(0,n.createVNode)(B,null,{col1:(0,n.withCtx)(()=>[l.value?((0,n.openBlock)(),(0,n.createBlock)(N,{key:0,label:(0,n.unref)(o.$)("chart","axis")},{default:(0,n.withCtx)(()=>[(0,n.createVNode)(en,{"syno-id":"axis-select","model-value":u.value,options:Y.value,"dropdown-width":"auto","onUpdate:modelValue":er},null,8,["model-value","options"])]),_:1},8,["label"])):(0,n.createCommentVNode)("",!0)]),col2:(0,n.withCtx)(()=>[O.value?((0,n.openBlock)(),(0,n.createBlock)(N,{key:0,label:(0,n.unref)(o.$)("chart","point_style")},{default:(0,n.withCtx)(()=>[(0,n.createVNode)(en,{"syno-id":"point-select","model-value":P.value,options:U,"show-tick-icon-model-values":[M.value,P.value],"dropdown-width":"auto","dropdown-offset":[-17,1],class:"has-icon","onUpdate:modelValue":ea},{icon:(0,n.withCtx)(()=>[(0,n.createVNode)((0,n.unref)(em.Z),{class:(0,n.normalizeClass)(G.value),size:[24,24],type:"bkg-img",style:{left:"9px",top:"1px"}},null,8,["class"])]),_:1},8,["model-value","show-tick-icon-model-values"])]),_:1},8,["label"])):(0,n.createCommentVNode)("",!0)]),_:1}),h.value?((0,n.openBlock)(),(0,n.createBlock)(N,{key:1,label:(0,n.unref)(o.$)("chart","area_opacity")},{default:(0,n.withCtx)(()=>[(0,n.createVNode)(en,{"syno-id":"area-opacity-select","model-value":p.value,options:Z,"onUpdate:modelValue":es},null,8,["model-value"])]),_:1},8,["label"])):(0,n.createCommentVNode)("",!0),f.value||m.value?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(A.Z),{key:2,"syno-id":"checkbox-form-item","hide-label":""},{default:(0,n.withCtx)(()=>[f.value?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(b.Z),{key:0,"model-value":g.value,"syno-id":"smooth",onChange:el},{default:(0,n.withCtx)(()=>[(0,n.createTextVNode)((0,n.toDisplayString)((0,n.unref)(o.$)("chart","smooth")),1)]),_:1},8,["model-value"])):(0,n.createCommentVNode)("",!0),m.value?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(b.Z),{key:1,"model-value":v.value,"syno-id":"data-label",onChange:ec},{default:(0,n.withCtx)(()=>[(0,n.createTextVNode)((0,n.toDisplayString)((0,n.unref)(o.$)("chart","data_label")),1)]),_:1},8,["model-value"])):(0,n.createCommentVNode)("",!0)]),_:1})):(0,n.createCommentVNode)("",!0),y.value?((0,n.openBlock)(),(0,n.createBlock)(N,{key:3,label:(0,n.unref)(o.$)("chart","label_position")},{default:(0,n.withCtx)(()=>[(0,n.createVNode)(en,{"syno-id":"position-select","model-value":w.value,options:K.value,"show-tick-icon-model-values":[w.value],"onUpdate:modelValue":ed},null,8,["model-value","options","show-tick-icon-model-values"])]),_:1},8,["label"])):(0,n.createCommentVNode)("",!0),S.value?((0,n.openBlock)(),(0,n.createBlock)(Q,{key:4,"family-label":(0,n.unref)(o.$)("chart","label_font"),"size-label":(0,n.unref)(o.$)("chart","label_size"),"style-label":(0,n.unref)(o.$)("chart","label_style"),"font-config":C.value,"onUpdate:family":eu,"onUpdate:size":eh,"onUpdate:bold":ep,"onUpdate:italic":ef,"onUpdate:color":eg},null,8,["family-label","size-label","style-label","font-config"])):(0,n.createCommentVNode)("",!0)]),_:1},8,["class"])]),_:1},8,["title","collapsed"])):(0,n.createCommentVNode)("",!0)}});var eb=i(32992),ey=i.n(eb);let ew={};ew.$style=ey();let e_=(0,g.default)(ev,[["__cssModules",ew]]),ex=(0,n.defineComponent)({__name:"LegendFieldset",props:{isCollapsed:{type:Boolean}},emits:["click-header"],setup(e,t){let{emit:i}=t,r=(0,d.G)(),a=(0,n.ref)("t"),s=(0,n.ref)({family:"",size:0,bold:!1,italic:!1,color:"#ffffff"}),l=[{value:"t",label:(0,o.$)("common","position_top")},{value:"l",label:(0,o.$)("common","position_left")},{value:"r",label:(0,o.$)("common","position_right")},{value:"b",label:(0,o.$)("common","position_bottom")},{value:"none",label:(0,o.$)("common","hide")}];function c(e){let t=r.chartInfo;if(!t)return;let i=t.ensureChartLegend();"none"===e?i.getHidden()||r.relayMethod("applyLegendHidden",[!0]):(i.getHidden()||e!==i.getPosition())&&r.relayMethod("applyLegendPosition",[e]),a.value=e}function u(e){let t=r.chartInfo;t&&t.ensureChartLegendStyle().getFontFamily()!==e&&r.relayMethod("applyLegendFontFamily",[e])}function h(e){let t=r.chartInfo;t&&t.ensureChartLegendStyle().getFontSize()!==e&&r.relayMethod("applyLegendFontSize",[e])}function p(e){let t=r.chartInfo;t&&t.ensureChartLegendStyle().getBold()!==e&&r.relayMethod("applyLegendBold",[e])}function f(e){let t=r.chartInfo;t&&t.ensureChartLegendStyle().getItalic()!==e&&r.relayMethod("applyLegendItalic",[e])}function g(e){let t=r.chartInfo;t&&t.ensureChartLegendStyle().getColor()!==e&&r.relayMethod("applyLegendColor",[e])}return(0,n.watch)(()=>r.chartInfo,e=>{if(!e)return;let t=e.ensureChartLegend();a.value=t.getHidden()?"none":t.getPosition(),s.value=eo(t.ensureTextStyle(),e.ensureGlobalTextStyle())},{immediate:!0}),(e,t)=>(0,n.unref)(r).chartInfo?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(k.Z),{key:0,"syno-id":"fieldset",title:(0,n.unref)(o.$)("chart","legend"),collapsed:e.isCollapsed,onHeaderClick:t[0]||(t[0]=e=>i("click-header"))},{default:(0,n.withCtx)(()=>[(0,n.createVNode)((0,n.unref)(I.Z),{"syno-id":"form",class:(0,n.normalizeClass)(e.$style.form),direction:"vertical"},{default:(0,n.withCtx)(()=>[(0,n.createVNode)(N,{label:(0,n.unref)(o.$)("chart","legend_position")},{default:(0,n.withCtx)(()=>[(0,n.createVNode)(en,{"syno-id":"position-select","model-value":a.value,options:l,"show-tick-icon-model-values":[a.value],"onUpdate:modelValue":c},null,8,["model-value","show-tick-icon-model-values"])]),_:1},8,["label"]),(0,n.createVNode)(Q,{disabled:"none"===a.value,"family-label":(0,n.unref)(o.$)("chart","legend_font"),"size-label":(0,n.unref)(o.$)("chart","legend_size"),"style-label":(0,n.unref)(o.$)("chart","legend_style"),"font-config":s.value,"onUpdate:family":u,"onUpdate:size":h,"onUpdate:bold":p,"onUpdate:italic":f,"onUpdate:color":g},null,8,["disabled","family-label","size-label","style-label","font-config"])]),_:1},8,["class"])]),_:1},8,["title","collapsed"])):(0,n.createCommentVNode)("",!0)}});var eS=i(7821),eC=i.n(eS);let ek={};ek.$style=eC();let eI=(0,g.default)(ex,[["__cssModules",ek]]);var eA=i(53495),eT=i(82822);let eE=(0,n.defineComponent)({__name:"AxisForm",props:{isNumericAxis:{type:Boolean},axisType:{}},setup(e){let t=(0,d.G)(),i=(0,n.ref)(!1),r=(0,n.ref)({family:"",size:0,bold:!1,italic:!1,color:"#ffffff"}),a=(0,n.ref)(0),s=(0,n.ref)(!1),l=(0,n.ref)(!1),u=(0,n.ref)(void 0),h=(0,n.ref)(!1),p=(0,n.ref)(void 0),f=(0,n.ref)(!1),g=(0,n.ref)(!1),m=(0,n.ref)(!1),v=(0,n.ref)(!1),y=(0,n.ref)(!1),w=(0,n.ref)(!1),_=(0,n.ref)(!1),x=(0,n.ref)(0),S=(0,n.ref)(!1),C=[{value:0,label:"0"},{value:30,label:"30"},{value:45,label:"45"},{value:60,label:"60"},{value:90,label:"90"}];function k(i){let n=t.chartInfo;n&&n.ensureAxisLabel(e.axisType)?.getHidden()!==i&&t.relayMethod("applyAxisLabelHidden",[e.axisType,i])}function T(i){let n=t.chartInfo;n&&n.ensureAxisLabelStyle(e.axisType).getFontFamily()!==i&&t.relayMethod("applyAxisLabelFontFamily",[e.axisType,i])}function E(i){let n=t.chartInfo;n&&n.ensureAxisLabelStyle(e.axisType).getFontSize()!==i&&t.relayMethod("applyAxisLabelFontSize",[e.axisType,i])}function R(i){let n=t.chartInfo;n&&n.ensureAxisLabelStyle(e.axisType).getBold()!==i&&t.relayMethod("applyAxisLabelBold",[e.axisType,i])}function D(i){let n=t.chartInfo;n&&n.ensureAxisLabelStyle(e.axisType).getItalic()!==i&&t.relayMethod("applyAxisLabelItalic",[e.axisType,i])}function O(i){let n=t.chartInfo;n&&n.ensureAxisLabelStyle(e.axisType).getColor()!==i&&t.relayMethod("applyAxisLabelColor",[e.axisType,i])}function M(e){return Math.floor(e)}function P(i){let n=t.chartInfo;n&&n.ensureAxis(e.axisType).getTickNumber()!==i&&t.relayMethod("applyAxisTickNumber",[e.axisType,i])}function L(i){let n=t.chartInfo;n&&n.ensureAxisLabel(e.axisType)?.getRotate()!==i&&t.relayMethod("applyAxisLabelRotate",[e.axisType,i])}function F(i){let n=t.chartInfo;if(!n)return;let o=n.ensureAxisScaling(e.axisType),r=i,a=o.getMax();null!==a&&i>a&&(r=a),o.getMin()!==r&&t.relayMethod("applyAxisScalingMin",[e.axisType,r])}function V(i){let n=t.chartInfo;if(!n)return;let o=n.ensureAxisScaling(e.axisType),r=i,a=o.getMin();null!==a&&i<a&&(r=a),o.getMax()!==r&&t.relayMethod("applyAxisScalingMax",[e.axisType,r])}function z(i){let n=t.chartInfo;n&&n.ensureAxis(e.axisType).getTreatAsText()!==i&&t.relayMethod("applyAxisTreatAsText",[e.axisType,i])}function H(i){let n=t.chartInfo;n&&n.ensureAxisScaling(e.axisType).getLog()!==i&&t.relayMethod("applyAxisScalingLog",[e.axisType,i])}function W(i){let n=t.chartInfo;n&&n.ensureAxisScaling(e.axisType).getRevert()!==i&&t.relayMethod("applyAxisScalingRevert",[e.axisType,i])}return(0,n.watch)(()=>t.chartInfo,t=>{if(!t)return;let n=t.ensureAxis(e.axisType),o=n.ensureLabel(),d=n.ensureScaling(),b=o.getHidden();i.value=b,r.value=eo(o.ensureTextStyle(),t.ensureGlobalTextStyle()),s.value=e.isNumericAxis,l.value=b,a.value=n.getTickNumber(),S.value=b,x.value=o.getRotate(),h.value=e.isNumericAxis;let C=d.getMin();u.value=(0,eT.Z)(C)?C:void 0,f.value=e.isNumericAxis;let k=d.getMax();p.value=(0,eT.Z)(k)?k:void 0,m.value="x"===e.axisType&&t.ensureChart().getType()===c.xs.CHART_TYPE.SCATTER,g.value=n.getTreatAsText(),y.value=e.isNumericAxis&&t.ensureChart().getGrouping()===c.xs.GROUPING.STANDARD,v.value=d.getLog(),_.value=!e.isNumericAxis,w.value=d.getRevert()},{immediate:!0}),(e,t)=>((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(I.Z),{"syno-id":"form",class:(0,n.normalizeClass)(e.$style.form),direction:"vertical"},{default:(0,n.withCtx)(()=>[(0,n.createVNode)((0,n.unref)(A.Z),{"syno-id":"hide-label-item","hide-label":""},{default:(0,n.withCtx)(()=>[(0,n.createVNode)((0,n.unref)(b.Z),{"model-value":i.value,"syno-id":"hide-label",onChange:k},{default:(0,n.withCtx)(()=>[(0,n.createTextVNode)((0,n.toDisplayString)((0,n.unref)(o.$)("chart","hide_label")),1)]),_:1},8,["model-value"])]),_:1}),(0,n.createVNode)(Q,{disabled:i.value,"family-label":(0,n.unref)(o.$)("chart","label_font"),"size-label":(0,n.unref)(o.$)("chart","label_size"),"style-label":(0,n.unref)(o.$)("chart","label_style"),"font-config":r.value,"onUpdate:family":T,"onUpdate:size":E,"onUpdate:bold":R,"onUpdate:italic":D,"onUpdate:color":O},{"additional-col":(0,n.withCtx)(()=>[s.value?((0,n.openBlock)(),(0,n.createBlock)(N,{key:0,label:(0,n.unref)(o.$)("chart","label_quantity")},{default:(0,n.withCtx)(()=>[(0,n.createVNode)((0,n.unref)(eA.Z),{disabled:l.value,"model-value":a.value,"syno-id":"quantity","controls-type":"up-down",min:0,max:10,step:1,"patch-num":M,style:{width:"100%"},"onUpdate:modelValue":P},null,8,["disabled","model-value"])]),_:1},8,["label"])):(0,n.createCommentVNode)("",!0)]),_:1},8,["disabled","family-label","size-label","style-label","font-config"]),(0,n.createVNode)(N,{label:(0,n.unref)(o.$)("chart","slant_label")},{default:(0,n.withCtx)(()=>[(0,n.createVNode)(en,{disabled:S.value,"syno-id":"slant-select","model-value":x.value,options:C,"onUpdate:modelValue":L},null,8,["disabled","model-value"])]),_:1},8,["label"]),(0,n.createVNode)(B,null,{col1:(0,n.withCtx)(()=>[h.value?((0,n.openBlock)(),(0,n.createBlock)(N,{key:0,label:(0,n.unref)(o.$)("chart","min_value")},{default:(0,n.withCtx)(()=>[(0,n.createVNode)((0,n.unref)(ed.Z),{"model-value":u.value,"syno-id":"input-min","number-only":"","onUpdate:modelValue":F},null,8,["model-value"])]),_:1},8,["label"])):(0,n.createCommentVNode)("",!0)]),col2:(0,n.withCtx)(()=>[f.value?((0,n.openBlock)(),(0,n.createBlock)(N,{key:0,label:(0,n.unref)(o.$)("chart","max_value")},{default:(0,n.withCtx)(()=>[(0,n.createVNode)((0,n.unref)(ed.Z),{"model-value":p.value,"syno-id":"input-max","number-only":"","onUpdate:modelValue":V},null,8,["model-value"])]),_:1},8,["label"])):(0,n.createCommentVNode)("",!0)]),_:1}),m.value||y.value||_.value?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(A.Z),{key:0,"syno-id":"checks-item","hide-label":""},{default:(0,n.withCtx)(()=>[m.value?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(b.Z),{key:0,"model-value":g.value,"syno-id":"as-text",onChange:z},{default:(0,n.withCtx)(()=>[(0,n.createTextVNode)((0,n.toDisplayString)((0,n.unref)(o.$)("chart","label_as_text")),1)]),_:1},8,["model-value"])):(0,n.createCommentVNode)("",!0),y.value?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(b.Z),{key:1,"model-value":v.value,"syno-id":"log",onChange:H},{default:(0,n.withCtx)(()=>[(0,n.createTextVNode)((0,n.toDisplayString)((0,n.unref)(o.$)("chart","axis_log_base")),1)]),_:1},8,["model-value"])):(0,n.createCommentVNode)("",!0),_.value?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(b.Z),{key:2,"model-value":w.value,"syno-id":"reverse",onChange:W},{default:(0,n.withCtx)(()=>[(0,n.createTextVNode)((0,n.toDisplayString)((0,n.unref)(o.$)("chart","axis_reverse")),1)]),_:1},8,["model-value"])):(0,n.createCommentVNode)("",!0)]),_:1})):(0,n.createCommentVNode)("",!0)]),_:1},8,["class"]))}});var eR=i(7657),eD=i.n(eR);let eO={};eO.$style=eD();let eM=(0,g.default)(eE,[["__cssModules",eO]]),eN=(0,n.defineComponent)({__name:"HorizontalAxisFieldset",props:{isCollapsed:{type:Boolean}},emits:["click-header"],setup(e,t){let{emit:i}=t,r=(0,d.G)(),a=(0,n.computed)(()=>{if(!r.chartInfo)return"";let e=r.chartInfo.getChartSetting();return e.type===c.xs.CHART_TYPE.BAR&&e.barDir!==c.xs.DEFAULT.BAR_DIR?(0,o.$)("chart","vertical_axis"):(0,o.$)("chart","horizontal_axis")}),s=(0,n.computed)(()=>r.chartInfo?.ensureChart().getType()===c.xs.CHART_TYPE.SCATTER&&!r.chartInfo?.ensureAxis("x").getTreatAsText());return(e,t)=>(0,n.unref)(r).chartInfo?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(k.Z),{key:0,"syno-id":"fieldset",title:a.value,collapsed:e.isCollapsed,onHeaderClick:t[0]||(t[0]=e=>i("click-header"))},{default:(0,n.withCtx)(()=>[(0,n.createVNode)(eM,{"is-numeric-axis":s.value,"axis-type":"x"},null,8,["is-numeric-axis"])]),_:1},8,["title","collapsed"])):(0,n.createCommentVNode)("",!0)}}),eP=(0,n.defineComponent)({__name:"VerticalAxisFieldset",props:{isCollapsed:{type:Boolean}},emits:["click-header"],setup(e,t){let{emit:i}=t,r=(0,d.G)(),a=(0,n.computed)(()=>{if(!r.chartInfo)return"";let e=r.chartInfo.getChartSetting();return e.type===c.xs.CHART_TYPE.BAR&&e.barDir!==c.xs.DEFAULT.BAR_DIR?(0,o.$)("chart","horizontal_axis"):(0,o.$)("chart","vertical_axis")});return(e,t)=>(0,n.unref)(r).chartInfo?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(k.Z),{key:0,"syno-id":"fieldset",title:a.value,collapsed:e.isCollapsed,onHeaderClick:t[0]||(t[0]=e=>i("click-header"))},{default:(0,n.withCtx)(()=>[(0,n.createVNode)(eM,{"is-numeric-axis":!0,"axis-type":"y"})]),_:1},8,["title","collapsed"])):(0,n.createCommentVNode)("",!0)}}),eL=(0,n.defineComponent)({__name:"RightVerticalAxisFieldset",props:{isCollapsed:{type:Boolean}},emits:["click-header"],setup(e,t){let{emit:i}=t,r=(0,d.G)(),a=(0,n.computed)(()=>{if(!r.chartInfo)return"";let e=r.chartInfo.getChartSetting();return e.type===c.xs.CHART_TYPE.BAR&&e.barDir===c.xs.DIRECTION.ROW?(0,o.$)("chart","top_horizontal_axis"):(0,o.$)("chart","right_vertical_axis")});return(e,t)=>(0,n.unref)(r).chartInfo?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(k.Z),{key:0,"syno-id":"fieldset",title:a.value,collapsed:e.isCollapsed,onHeaderClick:t[0]||(t[0]=e=>i("click-header"))},{default:(0,n.withCtx)(()=>[(0,n.createVNode)(eM,{"is-numeric-axis":!0,"axis-type":"y2"})]),_:1},8,["title","collapsed"])):(0,n.createCommentVNode)("",!0)}}),eB=(0,n.defineComponent)({__name:"GridlineFieldset",props:{isCollapsed:{type:Boolean}},emits:["click-header"],setup(e,t){let{emit:i}=t,r=(0,d.G)(),a=(0,n.ref)(!1),s=(0,n.ref)(""),l=(0,n.ref)(!1),u=(0,n.ref)("#ffffff"),h=(0,n.ref)(!1),p=(0,n.ref)([]);function f(e){r.relayMethod("applyAxisGridHidden",[null,e])}function g(){if(!s.value)return;let e=r.chartInfo;e&&(u.value=e.ensureAxisMajorGridLines(s.value).getColor())}function m(e){r.chartInfo&&(s.value=e,g())}function v(e){if(!s.value)return;let t=r.chartInfo;if(!t)return;let i=e?.color??null;t.ensureAxisMajorGridLines(s.value).getColor()!==i&&r.relayMethod("applyAxisGridColor",[s.value,i])}return(0,n.watch)(()=>r.chartInfo,e=>{if(!e)return;let t=e.calcAxisBias(),i=e.ensureXAxis(),n=t<=0&&e.ensureYAxis(),r=t>=0&&e.ensureYAxis2(),d=i.ensureMajorGridLines().getHidden()&&(!n||n.ensureMajorGridLines().getHidden())&&(!r||r.ensureMajorGridLines().getHidden());if(a.value=d,d){s.value="",l.value=!0,h.value=!0;return}l.value=!1,h.value=!1;let u=[],f=e.getChartSetting(),m=f.type===c.xs.CHART_TYPE.BAR&&f.barDir===c.xs.DIRECTION.ROW;f.type===c.xs.CHART_TYPE.SCATTER&&u.push({value:"x",label:(0,o.$)("chart","horizontal_axis")}),n&&u.push({value:"y",label:(0,o.$)("chart",m?"horizontal_axis":"vertical_axis")}),r&&u.push({value:"y2",label:(0,o.$)("chart",m?"top_horizontal_axis":"right_vertical_axis")}),p.value=u,0===u.length?s.value="":u.find(e=>e.value===s.value)||(s.value=u[0].value),g()},{immediate:!0}),(e,t)=>(0,n.unref)(r).chartInfo?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(k.Z),{key:0,"syno-id":"fieldset",title:(0,n.unref)(o.$)("chart","gridline"),collapsed:e.isCollapsed,onHeaderClick:t[0]||(t[0]=e=>i("click-header"))},{default:(0,n.withCtx)(()=>[(0,n.createVNode)((0,n.unref)(I.Z),{"syno-id":"form",class:(0,n.normalizeClass)(e.$style.form),direction:"vertical"},{default:(0,n.withCtx)(()=>[(0,n.createVNode)((0,n.unref)(A.Z),{"syno-id":"hide-all-item","hide-label":""},{default:(0,n.withCtx)(()=>[(0,n.createVNode)((0,n.unref)(b.Z),{"model-value":a.value,"syno-id":"hide-label",onChange:f},{default:(0,n.withCtx)(()=>[(0,n.createTextVNode)((0,n.toDisplayString)((0,n.unref)(o.$)("chart","hide_gridline")),1)]),_:1},8,["model-value"])]),_:1}),(0,n.createVNode)(N,{label:(0,n.unref)(o.$)("common","apply_to")},{default:(0,n.withCtx)(()=>[(0,n.createVNode)(en,{"syno-id":"apply-to-select",disabled:l.value,"model-value":s.value,options:p.value,"onUpdate:modelValue":m},null,8,["disabled","model-value","options"])]),_:1},8,["label"]),(0,n.createVNode)(N,{label:(0,n.unref)(o.$)("chart","gridline_color")},{default:(0,n.withCtx)(()=>[(0,n.createVNode)(T.Z,{"syno-id":"color-picker",disabled:h.value,"model-value":u.value,onChange:v},null,8,["disabled","model-value"])]),_:1},8,["label"])]),_:1},8,["class"])]),_:1},8,["title","collapsed"])):(0,n.createCommentVNode)("",!0)}});var eF=i(33649),eV=i.n(eF);let ez={};ez.$style=eV();let eH=(0,g.default)(eB,[["__cssModules",ez]]),eW=(0,n.defineComponent)({__name:"PlotSizeFieldset",props:{isCollapsed:{type:Boolean}},emits:["click-header"],setup(e,t){let{emit:i}=t,r=(0,d.G)(),a=(0,n.ref)(!1),s=(0,n.ref)(0),l=(0,n.ref)(0),c=(0,n.ref)(0),u=(0,n.ref)(0);(0,n.watch)(()=>r.chartInfo,e=>{if(!e)return;let t=e.ensurePlotArea().ensureLayout();a.value=t.getEnabled(),s.value=t.getLeft(),l.value=t.getRight(),c.value=t.getTop(),u.value=t.getBottom()},{immediate:!0});let h={min:0,step:.1};function p(e){let t=r.chartInfo;if(!t)return;let i={};e&&(i=t.calcPlotBound(!0),["top","left","right","bottom"].forEach(e=>{i[e]=f(i[e])})),r.relayMethod("applyPlotAreaLayoutEnabled",[e,e?i:null])}function f(e){return Math.round(100*e)/100}function g(e){let t=r.chartInfo;t&&t.ensurePlotArea().ensureLayout().getTop()!==e&&r.relayMethod("applyPlotAreaTop",[e])}function m(e){let t=r.chartInfo;t&&t.ensurePlotArea().ensureLayout().getBottom()!==e&&r.relayMethod("applyPlotAreaBottom",[e])}function v(e){let t=r.chartInfo;t&&t.ensurePlotArea().ensureLayout().getLeft()!==e&&r.relayMethod("applyPlotAreaLeft",[e])}function y(e){let t=r.chartInfo;t&&t.ensurePlotArea().ensureLayout().getRight()!==e&&r.relayMethod("applyPlotAreaRight",[e])}return(e,t)=>(0,n.unref)(r).chartInfo?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(k.Z),{key:0,"syno-id":"fieldset",title:(0,n.unref)(o.$)("chart","plot_area"),collapsed:e.isCollapsed,onHeaderClick:t[0]||(t[0]=e=>i("click-header"))},{default:(0,n.withCtx)(()=>[(0,n.createVNode)((0,n.unref)(I.Z),{"syno-id":"form",class:(0,n.normalizeClass)(e.$style.form),direction:"vertical"},{default:(0,n.withCtx)(()=>[(0,n.createVNode)((0,n.unref)(A.Z),{"syno-id":"custom-margin-item","hide-label":""},{default:(0,n.withCtx)(()=>[(0,n.createVNode)((0,n.unref)(b.Z),{"model-value":a.value,"syno-id":"custom-margin-label",onChange:p},{default:(0,n.withCtx)(()=>[(0,n.createTextVNode)((0,n.toDisplayString)((0,n.unref)(o.$)("chart","customize_plot_area_margins")),1)]),_:1},8,["model-value"])]),_:1}),(0,n.createVNode)(B,null,{col1:(0,n.withCtx)(()=>[(0,n.createVNode)(N,{label:(0,n.unref)(o.$)("common","position_top")},{default:(0,n.withCtx)(()=>[(0,n.createVNode)((0,n.unref)(eA.Z),{"model-value":c.value,"syno-id":"top","controls-type":"up-down",disabled:!a.value,min:h.min,step:h.step,"patch-num":f,style:{width:"100%"},"onUpdate:modelValue":g},null,8,["model-value","disabled","min","step"])]),_:1},8,["label"])]),col2:(0,n.withCtx)(()=>[(0,n.createVNode)(N,{label:(0,n.unref)(o.$)("common","position_bottom")},{default:(0,n.withCtx)(()=>[(0,n.createVNode)((0,n.unref)(eA.Z),{"model-value":u.value,"syno-id":"bottom","controls-type":"up-down",disabled:!a.value,min:h.min,step:h.step,"patch-num":f,style:{width:"100%"},"onUpdate:modelValue":m},null,8,["model-value","disabled","min","step"])]),_:1},8,["label"])]),_:1}),(0,n.createVNode)(B,null,{col1:(0,n.withCtx)(()=>[(0,n.createVNode)(N,{label:(0,n.unref)(o.$)("common","position_left")},{default:(0,n.withCtx)(()=>[(0,n.createVNode)((0,n.unref)(eA.Z),{"model-value":s.value,"syno-id":"left","controls-type":"up-down",disabled:!a.value,min:h.min,step:h.step,"patch-num":f,style:{width:"100%"},"onUpdate:modelValue":v},null,8,["model-value","disabled","min","step"])]),_:1},8,["label"])]),col2:(0,n.withCtx)(()=>[(0,n.createVNode)(N,{label:(0,n.unref)(o.$)("common","position_right")},{default:(0,n.withCtx)(()=>[(0,n.createVNode)((0,n.unref)(eA.Z),{"model-value":l.value,"syno-id":"right","controls-type":"up-down",disabled:!a.value,min:h.min,step:h.step,"patch-num":f,style:{width:"100%"},"onUpdate:modelValue":y},null,8,["model-value","disabled","min","step"])]),_:1},8,["label"])]),_:1})]),_:1},8,["class"])]),_:1},8,["title","collapsed"])):(0,n.createCommentVNode)("",!0)}});var eY=i(41630),eU=i.n(eY);let eG={};eG.$style=eU();let eZ=(0,g.default)(eW,[["__cssModules",eG]]),ej=(0,g.default)({},[["render",function(e,t){return(0,n.openBlock)(),(0,n.createElementBlock)("div",null,[(0,n.renderSlot)(e.$slots,"default")])}]]),eq=["textContent"],eK=(0,n.defineComponent)({__name:"CustomPanel",setup(e){let t=(0,d.G)(),i=(0,n.computed)(()=>t.chartInfo?.ensureChart().getType()===c.xs.CHART_TYPE.PIE),r=(0,n.computed)(()=>!i.value),a=(0,n.computed)(()=>{let e=t.chartInfo;if(!e)return!1;let n=e.ensureYAxis(),o=e.calcAxisBias();return!i.value&&o<=0&&n}),s=(0,n.computed)(()=>{let e=t.chartInfo;if(!e)return!1;let n=e.ensureYAxis2(),o=e.calcAxisBias();return!i.value&&o>=0&&n}),l=(0,n.computed)(()=>!i.value),u=(0,n.computed)(()=>t.chartInfo?.isDrawable()),h=(0,n.ref)(0);function p(e){h.value=h.value===e?0:e}return(e,t)=>((0,n.openBlock)(),(0,n.createElementBlock)("div",{style:(0,n.normalizeStyle)({height:u.value?"auto":"100%"})},[((0,n.openBlock)(),(0,n.createBlock)(n.KeepAlive,null,[u.value?((0,n.openBlock)(),(0,n.createBlock)(ej,{key:0,class:(0,n.normalizeClass)(e.$style.root)},{default:(0,n.withCtx)(()=>[(0,n.createVNode)(U,{"is-collapsed":1!==h.value,onClickHeader:t[0]||(t[0]=e=>p(1))},null,8,["is-collapsed"]),i.value?((0,n.openBlock)(),(0,n.createBlock)(ec,{key:0,"is-collapsed":2!==h.value,onClickHeader:t[1]||(t[1]=e=>p(2))},null,8,["is-collapsed"])):(0,n.createCommentVNode)("",!0),(0,n.createVNode)(eg,{"is-collapsed":3!==h.value,onClickHeader:t[2]||(t[2]=e=>p(3))},null,8,["is-collapsed"]),(0,n.createVNode)(e_,{"is-collapsed":4!==h.value,onClickHeader:t[3]||(t[3]=e=>p(4))},null,8,["is-collapsed"]),(0,n.createVNode)(eI,{"is-collapsed":5!==h.value,onClickHeader:t[4]||(t[4]=e=>p(5))},null,8,["is-collapsed"]),r.value?((0,n.openBlock)(),(0,n.createBlock)(eN,{key:1,"is-collapsed":6!==h.value,onClickHeader:t[5]||(t[5]=e=>p(6))},null,8,["is-collapsed"])):(0,n.createCommentVNode)("",!0),a.value?((0,n.openBlock)(),(0,n.createBlock)(eP,{key:2,"is-collapsed":7!==h.value,onClickHeader:t[6]||(t[6]=e=>p(7))},null,8,["is-collapsed"])):(0,n.createCommentVNode)("",!0),s.value?((0,n.openBlock)(),(0,n.createBlock)(eL,{key:3,"is-collapsed":8!==h.value,onClickHeader:t[7]||(t[7]=e=>p(8))},null,8,["is-collapsed"])):(0,n.createCommentVNode)("",!0),l.value?((0,n.openBlock)(),(0,n.createBlock)(eH,{key:4,"is-collapsed":9!==h.value,onClickHeader:t[8]||(t[8]=e=>p(9))},null,8,["is-collapsed"])):(0,n.createCommentVNode)("",!0),(0,n.createVNode)(eZ,{"is-collapsed":10!==h.value,onClickHeader:t[9]||(t[9]=e=>p(10))},null,8,["is-collapsed"]),(0,n.renderSlot)(e.$slots,"additional-custom-fieldset",{expandIndex:h.value,onClickFieldsetHeader:p})]),_:3},8,["class"])):((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:1,class:(0,n.normalizeClass)(e.$style.center),textContent:(0,n.toDisplayString)((0,n.unref)(o.$)("chart","empty_msg"))},null,10,eq))],1024))],4))}});var eX=i(49958),eQ=i.n(eX);let e$={};e$.$style=eQ();let eJ=(0,g.default)(eK,[["__cssModules",e$]]),e0=["textContent"],e1=(0,n.defineComponent)({__name:"ChartPanel",setup(e){let t=(0,d.G)(),i=(0,n.ref)("data-tab");return(e,c)=>((0,n.openBlock)(),(0,n.createBlock)(r.Z,{"panel-key":(0,n.unref)(a.z),title:(0,n.unref)(o.$)("chart","win_title")},{body:(0,n.withCtx)(()=>[((0,n.openBlock)(),(0,n.createBlock)(n.KeepAlive,null,[(0,n.unref)(t).chartInfo?((0,n.openBlock)(),(0,n.createBlock)(ej,{key:0,"syno-id":"body",class:(0,n.normalizeClass)(e.$style.body)},{default:(0,n.withCtx)(()=>[(0,n.createVNode)((0,n.unref)(s.Z),{modelValue:i.value,"onUpdate:modelValue":c[0]||(c[0]=e=>i.value=e),"syno-id":"tabs",class:(0,n.normalizeClass)(e.$style.tabs),fbar:!1},{default:(0,n.withCtx)(()=>[(0,n.createVNode)((0,n.unref)(l.Z),{"syno-id":"data",class:(0,n.normalizeClass)(e.$style["tab-pane"]),"tab-key":"data-tab",tab:(0,n.unref)(o.$)("chart","data_panel_title")},{"scroll-body":(0,n.withCtx)(()=>[(0,n.createVNode)(C,{class:(0,n.normalizeClass)(e.$style["tab-pane-body"])},{"data-editor":(0,n.withCtx)(()=>[(0,n.renderSlot)(e.$slots,"data-editor")]),_:3},8,["class"])]),_:3},8,["class","tab-key","tab"]),(0,n.createVNode)((0,n.unref)(l.Z),{"syno-id":"custom",class:(0,n.normalizeClass)(e.$style["tab-pane"]),"tab-key":"custom-tab",tab:(0,n.unref)(o.$)("common","customize")},{"scroll-body":(0,n.withCtx)(()=>[(0,n.createVNode)(eJ,{class:(0,n.normalizeClass)(e.$style["tab-pane-body"]),"chart-info":(0,n.unref)(t).chartInfo},{"additional-custom-fieldset":(0,n.withCtx)(t=>{let{expandIndex:i,onClickFieldsetHeader:o}=t;return[(0,n.renderSlot)(e.$slots,"additional-custom-fieldset",{expandIndex:i,onClickFieldsetHeader:o})]}),_:3},8,["class","chart-info"])]),_:3},8,["class","tab-key","tab"])]),_:3},8,["modelValue","class"])]),_:3},8,["class"])):((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:1,class:(0,n.normalizeClass)(e.$style.center),textContent:(0,n.toDisplayString)((0,n.unref)(o.$)("chart","editor_empty_description"))},null,10,e0))],1024))]),_:3},8,["panel-key","title"]))}});var e2=i(32002),e3=i.n(e2);let e4={};e4.$style=e3();let e5=(0,g.default)(e1,[["__cssModules",e4]])},87708:function(e,t,i){"use strict";i.d(t,{Z:()=>R});var n=i(63447),o=i(13971),r=i(59416),a=i(55554),s=i(46569),l=i(18954),c=i(71367),d=i(96868),u=i(43319),h=i(74318),p=i(2176),f=i(47696),g=i(65698),m=i(70979),v=i(67798),b=i(9022),y=i(74999),w=i(23886),_=i(49098),x=i(54730),S=i(71283),C=i(40172),k=i(66794);(0,b.z)("color-picker-dropdown",y.zw);let I=(0,n.defineComponent)({name:"ColorPicker",components:{vColorPickerDropdown:m.Z,vIcon:w.Z,vPortal:_.Z},directives:{clickoutside:g.ZP},mixins:[d.ZP,f.Z,h.Z,p.ZP,b.Z],props:{align:{type:String,default:void 0},dropdownOffset:{type:Array,default:()=>{}},alignOptions:{type:Object,default:()=>{}},disabled:{type:Boolean,default:!1},[l.yz.value()]:{type:String,default:""},alpha:{type:Number,default:1},customDropdownCls:{type:String,default:""},options:{type:Array,default:()=>v.QP},commonOptions:{type:Array,default:()=>v.o7},customOptions:{type:Array,default:()=>[]},position:{type:String,default:"absolute"},dropdownWidth:{type:String,default:"234px"},id:{type:String,default:()=>`syno-${(0,u.V)()}`},name:{type:String,default:""},hasCustom:{type:Boolean,default:!0},filterSameColor:{type:Boolean,default:!1}},emits:["select","showcustom","update:model-value","input"],data:()=>({prefix:"v-select",orgValue:"",isFocused:!1,found:!1,show:!1,container:null,activeIndex:-1}),computed:{currentColor(){return{color:(0,l.eQ)(this),alpha:this.alpha}},innerAlignment(){((0,x.$K)(this.align)||(0,x.$K)(this.alignOptions)||(0,x.$K)(this.dropdownOffset))&&(0,S.D8)("The prop 'align', 'dropdownOffset' is deprecated, please use 'alignment' instead.");let e=(0,x.$K)(this.align)?this.align:this.getPopupConfigValue("alignment");return(0,x.HD)(this.alignment)&&(e={pos:e}),(0,C.Z)(e,{offset:this.dropdownOffset,opts:this.alignOptions})},wrapCls(){return[`${this.prefix}-wrapper v-color-picker-wrapper`,{disabled:this.disabled,focused:this.isFocused||this.show}]},dropdownCls(){return[`${this.prefix}-dropdown`,"v-color-picker-dropdown",`${this.prefix}-dropdown-placement-bottomLeft`,this.customDropdownCls]},iconStyle(){let e=this.currentColor;return{backgroundColor:(0,v.ZP)(e.color||"#FFFFFF").alpha(e.alpha).string()}}},watch:{show:{async handler(e){e||this.$refs.colorPickerBtn&&this.$refs.colorPickerBtn.focus()}}},mounted(){this.orgValue=(0,l.eQ)(this)||""},methods:{clickOutside(){this.show=!1},reset(){(0,c.Qy)(this,"input",this.orgValue)},showCustom(){this.show=!1,(0,c.Qy)(this,"showcustom")},showDropdown(){this.show=!0},closeDropdown(e){this.show=!1},toggleDropdown(){this.disabled||(this.show?this.closeDropdown():this.showDropdown())},updateActiveIndex(e){return this.$refs.dropdown?.updateActiveIndex(e)},clearSelection(){return this.activeIndex=-1,this.$refs.dropdown?.clearSelection()},select(e,t){let i=t?t.color:"";(0,c.Qy)(this,(0,l.ef)(),i),(0,c.Qy)(this,"select",t)}}}),A=["aria-expanded"],T=["name"];var E=(0,k.Z)(I,[["render",function(e,t,i,o,r,a){let s=(0,n.resolveComponent)("v-icon"),l=(0,n.resolveComponent)("v-color-picker-dropdown"),c=(0,n.resolveComponent)("v-portal"),d=(0,n.resolveDirective)("syno-id"),u=(0,n.resolveDirective)("clickoutside");return(0,n.withDirectives)(((0,n.openBlock)(),(0,n.createElementBlock)("div",{ref:"colorPickerBtn",class:(0,n.normalizeClass)(e.wrapCls),tabindex:"0",role:"combobox","aria-haspopup":"true","aria-expanded":e.show,onClick:t[0]||(t[0]=function(){return e.toggleDropdown&&e.toggleDropdown(...arguments)}),onKeydown:[t[1]||(t[1]=(0,n.withKeys)((0,n.withModifiers)(function(){return e.showDropdown&&e.showDropdown(...arguments)},["prevent","stop"]),["enter"])),t[2]||(t[2]=(0,n.withKeys)((0,n.withModifiers)(function(){return e.showDropdown&&e.showDropdown(...arguments)},["prevent","stop"]),["down"]))],onFocus:t[3]||(t[3]=t=>e.isFocused=!0),onBlur:t[4]||(t[4]=t=>e.isFocused=!1)},[(0,n.withDirectives)(((0,n.openBlock)(),(0,n.createElementBlock)("span",{ref:"colorIcon",class:(0,n.normalizeClass)(e.prefix+"-color-icon"),style:(0,n.normalizeStyle)(e.iconStyle),name:e.name},[(0,n.createElementVNode)("i",{class:"cover",style:(0,n.normalizeStyle)(e.iconStyle)},null,4)],14,T)),[[d]]),(0,n.createVNode)(s,{name:"color-picker-dropdown",class:(0,n.normalizeClass)(e.prefix+"-dropdown-icon"),"svg-icon-set":"set01"},null,8,["class"]),e.show?((0,n.openBlock)(),(0,n.createBlock)(c,{key:0,"mount-to":e.getContainerEl(),alignment:e.innerAlignment,anchor:e.$el,"acquire-z-index":""},{default:(0,n.withCtx)(()=>[(0,n.createVNode)(l,{ref:"dropdown","syno-id":e.synoId,"filter-same-color":e.filterSameColor,"has-custom":e.hasCustom,options:e.options,"current-color":e.currentColor,"common-options":e.commonOptions,"custom-options":e.customOptions,onSelect:e.select,onCloseDropdown:e.closeDropdown,onReset:e.reset,onShowCustom:e.showCustom},(0,n.createSlots)({_:2},[(0,n.renderList)(e.$slots,(t,i)=>({name:i,fn:(0,n.withCtx)(t=>[(0,n.renderSlot)(e.$slots,i,(0,n.normalizeProps)((0,n.guardReactiveProps)(t)))])}))]),1032,["syno-id","filter-same-color","has-custom","options","current-color","common-options","custom-options","onSelect","onCloseDropdown","onReset","onShowCustom"])]),_:3},8,["mount-to","alignment","anchor"])):(0,n.createCommentVNode)("",!0)],42,A)),[[u,e.clickOutside,void 0,{children:!0}]])}]]);let R=(0,n.defineComponent)({name:"ColorPicker",components:{vColorPickerDropdown:r.Z},extends:E,mixins:[o.Z],props:{alignOptions:{type:Object,default:()=>({pushXOffset:16})},hasAlpha:{type:Boolean,default:!1}},emits:["input","change"],methods:{reset(){this.show=!1,this.$emit("input",""),this.onChange(null)},showCustom(){this.show=!1,this._showCustom()},async _showCustom(){let e=await (0,a.h)(this.modelValue.slice(1),this.hasAlpha,this.alpha);this._isDestroyed||this.onChange(e)},async showEyeDropper(){this.show=!1;let e=await (0,s.P)();this._isDestroyed||this.onChange(e)},select(e,t){this.show=!1,E.methods?.select.call(this,e,t),this.onChange(t)},onChange(e){this.$emit("change",e)}},render(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];return this.maybeCreateEyeDropper(()=>this.showEyeDropper()),E.render?.call(this,...t)}})},59416:function(e,t,i){"use strict";i.d(t,{Z:()=>a});var n=i(63447),o=i(70979),r=i(13971);let a=(0,n.defineComponent)({name:"ColorPickerDropdown",extends:o.Z,mixins:[r.Z],render(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];return this.maybeCreateEyeDropper(),o.Z.render.call(this,...t)}})},43614:function(e,t,i){"use strict";i.d(t,{Z:()=>v});var n=i(63447),o=i(59492),r=i(7046),a=i(17175);let s=(0,n.defineComponent)({props:{initialColor:{type:String,default:"#000000"},initialAlpha:{type:Number,default:1},useAlpha:{type:Boolean,default:!1},onApply:{type:Function,default:()=>void 0}},data(){return{color:this.initialColor??"#000000",opacity:this.initialAlpha??1,joe:null}},mounted(){this.$nextTick(()=>{let e=this.$refs.picker,t=["currentColor",["fields",{space:this.useAlpha?"RGBA":"RGB",limit:255,fix:0}],"hex"];this.useAlpha&&t.unshift("alpha");let i=a.rgb(e,this.color,t);if(i.setAlpha(this.opacity),i.done(),this.joe=i,e.classList.remove("colorPicker"),e.classList.add("syno-o-colorjoe","color-joe"),Array.prototype.forEach.call(e.querySelectorAll(".colorFields label"),e=>{e.textContent=e.textContent.toUpperCase()+_T("common","colon")}),Array.prototype.forEach.call(e.querySelectorAll(".oned .pointer"),e=>{e.firstChild.classList.add("shape1");let t=document.createElement("div");t.className="shape shape2",e.appendChild(t)}),this.useAlpha){e.classList.add("enableAlpha");let t=t=>{let i=t.cssa(),n=i.slice(0,i.lastIndexOf(",")),o=e.querySelector(".alpha .bg");o&&(o.style.background=`linear-gradient(to bottom,${n},1), ${n},0))`)};t(i.get()),i.on("change",t)}i.on("done",e=>{this.color=e.hex().toLowerCase(),this.useAlpha&&(this.opacity=e.alpha())})})},beforeUnmount(){this.joe&&this.joe.removeAllListeners()},methods:{getColor(){return this.color},getOpacity(){return this.opacity},onKeydownEnter(e){e.stopPropagation(),e.preventDefault(),this.$refs.picker.querySelector(".hex>input").blur(),(0,n.nextTick)(()=>{this.joe.done(),this.onApply()})}}});i(36442);var l=i(4337);let c=(0,l.default)(s,[["render",function(e,t,i,o,r,a){return(0,n.openBlock)(),(0,n.createElementBlock)("div",{ref:"picker",class:"syno-o-colorjoe",onKeydown:t[0]||(t[0]=(0,n.withKeys)(function(){for(var t=arguments.length,i=Array(t),n=0;n<t;n++)i[n]=arguments[n];return e.onKeydownEnter&&e.onKeydownEnter(...i)},["enter"]))},null,544)}]]);var d=i(54736),u=i(32334),h=i(27107);let p=(0,n.defineComponent)({__name:"CustomColorWindow",props:{enableAlpha:{type:Boolean,default:!1},initColor:{default:"000000"},initAlpha:{default:1},customCls:{default:""}},emits:["apply","close"],setup(e,t){let{emit:i}=t,a=(0,n.useTemplateRef)("customColorPickerWindow"),s=(0,n.useTemplateRef)("customColorPicker"),l=(0,n.computed)(()=>e.enableAlpha?468:452);function p(){a.value?.onClose()}function f(){if(!s.value)return;let t=s.value.getColor().replace("#",""),n=e.enableAlpha?s.value.getOpacity():1,o=1===n?t:t+(0,d.C)(n);i("apply",t,n),(0,h.oR)(o),p()}function g(){p()}return(e,t)=>((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(o.Z),{ref:"customColorPickerWindow",height:"auto",width:l.value,title:(0,n.unref)(u.$)("handsontable","custom_color_win_title"),class:(0,n.normalizeClass)(e.customCls),"syno-id":"custom-color-picker-window",onClose:t[0]||(t[0]=()=>i("close")),onKeydown:(0,n.withKeys)((0,n.withModifiers)(f,["stop","prevent"]),["enter"])},{default:(0,n.withCtx)(()=>[(0,n.createVNode)((0,n.unref)(r.Z),{"syno-id":"custom-color-picker-panel",class:(0,n.normalizeClass)(e.$style["color-picker-panel"]),"confirm-text":(0,n.unref)(u.$)("common","ok"),"cancel-text":(0,n.unref)(u.$)("common","cancel"),confirm:f,cancel:g},{body:(0,n.withCtx)(()=>[(0,n.createVNode)(c,{ref:"customColorPicker","initial-color":`#${e.initColor}`,"initial-alpha":e.initAlpha,"use-alpha":e.enableAlpha},null,8,["initial-color","initial-alpha","use-alpha"])]),_:1},8,["class","confirm-text","cancel-text"])]),_:1},8,["width","title","class","onKeydown"]))}});var f=i(81856),g=i.n(f);let m={};m.$style=g();let v=(0,l.default)(p,[["__cssModules",m]])},67378:function(e,t,i){"use strict";i.d(t,{Z:()=>u});var n=i(63447),o=i(7046),r=i(23886);let a=(0,n.defineComponent)({name:"SidePanel",components:{vPanel:{...o.Z,props:{...o.Z.props,title:{type:String,default:""}}},vIcon:r.Z},extends:o.Z,props:{tbar:{type:[Boolean,Object],default:!0},fbar:{type:Boolean,default:!1},layoutType:{type:String,default:"side"},title:{type:String,default:""}},emits:["close"],methods:{getScrollbar(){return this.$refs.panel?.$refs.scrollbar},onClose(){this.$emit("close")}}});var s=i(15945),l=i.n(s),c=i(4337);let d={};d.$style=l();let u=(0,c.default)(a,[["render",function(e,t,i,o,r,a){let s=(0,n.resolveComponent)("v-icon"),l=(0,n.resolveComponent)("v-panel");return(0,n.openBlock)(),(0,n.createBlock)(l,(0,n.mergeProps)({ref:"panel","syno-id":"panel",class:e.$style.panel},e.$props),(0,n.createSlots)({tbar:(0,n.withCtx)(()=>[(0,n.renderSlot)(e.$slots,"icon"),(0,n.createElementVNode)("div",{"syno-id":"title",class:(0,n.normalizeClass)(e.$style.title)},(0,n.toDisplayString)(e.title),3),(0,n.renderSlot)(e.$slots,"post-title")]),"tbar-right":(0,n.withCtx)(()=>[(0,n.renderSlot)(e.$slots,"pre-close"),(0,n.createVNode)(s,{"syno-id":"close",class:(0,n.normalizeClass)(e.$style.close),type:"bkg-img",onClick:e.onClose},null,8,["class","onClick"])]),_:2},[(0,n.renderList)(e.$slots,(t,i)=>({name:String(i),fn:(0,n.withCtx)(t=>[(0,n.renderSlot)(e.$slots,i,(0,n.normalizeProps)((0,n.guardReactiveProps)(t)))])}))]),1040,["class"])}],["__cssModules",d]])},65949:function(e,t,i){"use strict";i.d(t,{Z:()=>s});var n=i(63447),o=i(67378),r=i(46989),a=i(61367);let s=(0,n.defineComponent)({__name:"RightSidePanel",props:{panelKey:{},initWidth:{default:312},resizable:{type:Boolean,default:!1},maxWidth:{default:1/0},minWidth:{default:0},beforeClose:{}},emits:["resizeWidth","close","active","deactive","activeExpand"],setup(e,t){let{expose:i,emit:s}=t,l=(0,r.H)();l.initResizeInfo(e.panelKey,{width:e.initWidth,resizable:e.resizable,maxWidth:e.maxWidth,minWidth:e.minWidth}),(0,n.watch)(()=>e.resizable,t=>{l.updateResizeInfo(e.panelKey,"resizable",t)}),(0,n.watch)(()=>e.initWidth,t=>{l.updateResizeInfo(e.panelKey,"width",t)}),(0,n.watch)(()=>e.minWidth,t=>{l.updateResizeInfo(e.panelKey,"minWidth",t)}),(0,n.watch)(()=>e.maxWidth,t=>{l.updateResizeInfo(e.panelKey,"maxWidth",t)});let c=(0,n.inject)("rightSidePanelContainer"),d=l.getResizeInfoRef(e.panelKey),u=(0,n.ref)(null),h=(0,n.ref)(!1);async function p(){(!e.beforeClose||await e.beforeClose())&&(c?.close(),s("close"))}(0,n.watch)(()=>l.activePanelKey,async(t,i)=>{h.value=t===e.panelKey,h.value?(l.expanded&&(await (0,n.nextTick)(),s("activeExpand")),s("active")):i===e.panelKey&&s("deactive")},{immediate:!0}),(0,n.watch)(()=>l.expanded,e=>{e&&h.value&&s("activeExpand")}),(0,n.watch)(()=>d?.value.width,e=>{void 0!==e&&s("resizeWidth",e)});let f=(0,n.computed)(()=>{let e;return{width:(0,a.isMobileLayout)()?"100%":`${d?.value.width??312}px`}});return i({getSidePanel:function(){return u.value}}),(e,t)=>(0,n.withDirectives)(((0,n.openBlock)(),(0,n.createBlock)(o.Z,(0,n.mergeProps)({ref_key:"sidePanel",ref:u,"syno-id":"right-side-panel"},e.$attrs,{style:f.value,onClose:p}),(0,n.createSlots)({_:2},[(0,n.renderList)(e.$slots,(t,i)=>({name:i,fn:(0,n.withCtx)(t=>[(0,n.renderSlot)(e.$slots,i,(0,n.normalizeProps)((0,n.guardReactiveProps)(t)))])}))]),1040,["style"])),[[n.vShow,h.value]])}})},43930:function(e,t,i){"use strict";i.d(t,{Z:()=>c});var n=i(63447);let o=(0,n.defineComponent)({name:"RightSidePanelContainer",provide(){return{rightSidePanelContainer:this}},emits:["close"],methods:{close(){this.$emit("close")}}});var r=i(36256),a=i.n(r),s=i(4337);let l={};l.$style=a();let c=(0,s.default)(o,[["render",function(e,t,i,o,r,a){return(0,n.openBlock)(),(0,n.createElementBlock)("div",{class:(0,n.normalizeClass)(e.$style.panel)},[(0,n.renderSlot)(e.$slots,"default")],2)}],["__cssModules",l]])},60592:function(e,t,i){"use strict";i.d(t,{Z:()=>l});var n=i(63447),o=i(19760),r=i(85908),a=i(72914);let s=(0,n.defineComponent)({name:"FontFamilySelect",components:{vSingleSelect:a.Z},extends:a.Z,props:{width:{type:[Number,String],default:"auto"},dropdownWidth:{type:String,default:"210px"},options:{type:[Object,Array],default:void 0},editable:{type:Boolean,default:!1},defaultOption:{type:[Object,Function,String],default:()=>()=>o.u}},emits:["update:modelValue"],data:()=>({defaultOptions:[]}),computed:{innerOptions(){return this.options??this.defaultOptions},innerValue:{get(){let e=this.modelValue;if(null==e)return e;let t=e.toLocaleLowerCase(),i=this.innerOptions.find(e=>t===e[this.valueField]?.toLocaleLowerCase())||this.innerOptions.find(e=>t===e[this.displayField]?.toLocaleLowerCase());return i?i[this.valueField]:e},set(e){this.$emit("update:modelValue",e)}},currentOptions(){return this.isSearchMode?this.transformGroupOptions(this.searchOptions):this.transformGroupOptions(this.innerOptions)}},watch:{displayField(e){this.updateDefaultOptions()},valueField(e){this.updateDefaultOptions()}},async created(){this.updateDefaultOptions()},methods:{async updateDefaultOptions(){this.defaultOptions=(await (0,r.G)()).map(e=>{let{display:t,value:i}=e;return{[this.displayField]:t||i,[this.valueField]:i}})}}}),l=(0,i(4337).default)(s,[["render",function(e,t,i,o,r,a){let s=(0,n.resolveComponent)("v-single-select");return(0,n.openBlock)(),(0,n.createBlock)(s,(0,n.mergeProps)(e.$props,{modelValue:e.innerValue,"onUpdate:modelValue":t[0]||(t[0]=t=>e.innerValue=t),"syno-id":"select",options:e.innerOptions}),(0,n.createSlots)({_:2},[(0,n.renderList)(e.$slots,(t,i)=>({name:i,fn:(0,n.withCtx)(t=>[(0,n.renderSlot)(e.$slots,i,(0,n.normalizeProps)((0,n.guardReactiveProps)(t)))])}))]),1040,["modelValue","options"])}]])},30198:function(e,t,i){"use strict";i.d(t,{Z:()=>p});var n=i(63447),o=i(59492),r=i(7046),a=i(32334);let s=["href"],l=(0,n.defineComponent)({__name:"PreferenceWindow",props:{width:{},height:{},helpUrl:{}},emits:["confirm"],setup(e,t){let{emit:i}=t,l=(0,n.useTemplateRef)("window");function c(){l.value?.onClose()}function d(){i("confirm"),c()}return(t,i)=>((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(o.Z),{ref:"window","syno-id":"window",title:(0,n.unref)(a.$)("preference_setting","preference_setting"),width:e.width,height:e.height,onKeydown:(0,n.withKeys)((0,n.withModifiers)(d,["stop","prevent"]),["enter"])},{default:(0,n.withCtx)(()=>[(0,n.createVNode)((0,n.unref)(r.Z),{"syno-id":"panel","confirm-text":(0,n.unref)(a.$)("common","ok"),confirm:d,cancel:c},{body:(0,n.withCtx)(()=>[(0,n.renderSlot)(t.$slots,"default"),(0,n.createElementVNode)("div",{class:(0,n.normalizeClass)(t.$style["more-info"])},[(0,n.createElementVNode)("a",{href:e.helpUrl,target:"_blank",rel:"noreferrer noopener",class:(0,n.normalizeClass)(t.$style["more-info-text"])},(0,n.toDisplayString)((0,n.unref)(a.$)("common","learn_more")),11,s)],2)]),_:3},8,["confirm-text"])]),_:3},8,["title","width","height","onKeydown"]))}});var c=i(37460),d=i.n(c),u=i(4337);let h={};h.$style=d();let p=(0,u.default)(l,[["__cssModules",h]])},42905:function(e,t,i){"use strict";i.d(t,{Z:()=>c});var n=i(63447);let o={class:"syno-o-comment-info"},r={class:"syno-o-comment-info-center"};var a=i(52091),s=i(73756);let l=(0,n.defineComponent)({name:"CommentInfo",props:{author:{type:Number,default:-1},authorName:{type:String,default:""},timestamp:{type:Number,default:0},userIconSize:{type:String,default:""},userIconFontSize:{type:String,default:""},userFontSize:{type:String,default:""},timeFontSize:{type:String,default:""}},data:()=>({iconUrl:"",autoUpdateTimer:null}),computed:{innerAuthor(){return this.author>0?this.author:-1},time(){return this.autoUpdateTimer&&this.timestamp?(0,a.rJ)(this.timestamp):""},authorDisplayName(){return(0,a.tz)(this.innerAuthor,{name:this.authorName})},iconAlphabet(){return(0,a.JA)(this.innerAuthor,{name:this.authorName})},iconBackground(){return(0,a.o1)(this.innerAuthor,this.authorDisplayName)}},watch:{innerAuthor(){this.refreshIconUrl()}},created(){this.refreshIconUrl(),this.autoUpdateTimeString()},beforeUnmount(){clearTimeout(this.autoUpdateTimer)},methods:{autoUpdateTimeString(){this.autoUpdateTimer&&clearTimeout(this.autoUpdateTimer);let e=Date.now(),t=new Date(e);t.setDate(t.getDate()+1),t.setHours(0,0,0,0),this.autoUpdateTimer=setTimeout(()=>{this.autoUpdateTimeString()},Math.max(t.getTime()-e,0))},async refreshIconUrl(){let e=this.innerAuthor,t=await (0,s.Z)(e);this.innerAuthor===e&&(this.iconUrl=t?`url(${t})`:"")}}}),c=(0,i(4337).default)(l,[["render",function(e,t,i,a,s,l){let c=(0,n.resolveDirective)("tooltip");return(0,n.openBlock)(),(0,n.createElementBlock)("div",o,[e.iconUrl?((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:0,class:"syno-o-comment-info-icon icon-img",style:(0,n.normalizeStyle)({backgroundImage:e.iconUrl,width:e.userIconSize,height:e.userIconSize})},null,4)):((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:1,class:"syno-o-comment-info-icon icon-text",style:(0,n.normalizeStyle)({backgroundColor:e.iconBackground,width:e.userIconSize,height:e.userIconSize,lineHeight:e.userIconSize,fontSize:e.userIconFontSize})},(0,n.toDisplayString)(e.iconAlphabet),5)),(0,n.createElementVNode)("div",r,[(0,n.withDirectives)(((0,n.openBlock)(),(0,n.createElementBlock)("div",{class:"syno-o-comment-info-user",style:(0,n.normalizeStyle)({fontSize:e.userFontSize})},[(0,n.createTextVNode)((0,n.toDisplayString)(e.authorDisplayName),1)],4)),[[c,{content:e.authorDisplayName}]]),e.time?(0,n.withDirectives)(((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:0,class:"syno-o-comment-info-time",style:(0,n.normalizeStyle)({fontSize:e.timeFontSize})},[(0,n.createTextVNode)((0,n.toDisplayString)(e.time),1)],4)),[[c,{content:e.time}]]):(0,n.createCommentVNode)("",!0)]),(0,n.renderSlot)(e.$slots,"buttons")])}]])},5638:function(e,t,i){var n=i(7847);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),(0,i(594).Z)("67198cd4",n,!0,{})},60005:function(e,t,i){var n=i(26990);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),(0,i(594).Z)("512da59e",n,!0,{})},1909:function(e,t,i){var n=i(14337);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),(0,i(594).Z)("1994369a",n,!0,{})},12493:function(e,t,i){var n=i(84243);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),(0,i(594).Z)("771de8ab",n,!0,{})},84990:function(e,t,i){var n=i(58597);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),(0,i(594).Z)("fd4d9bd2",n,!0,{})},21738:function(e,t,i){var n=i(22789);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),(0,i(594).Z)("5f6ca854",n,!0,{})},18146:function(e,t,i){var n=i(74416);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),(0,i(594).Z)("671f107d",n,!0,{})},15959:function(e,t,i){var n=i(1709);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),(0,i(594).Z)("15216eac",n,!0,{})},92362:function(e,t,i){var n=i(89008);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),(0,i(594).Z)("52928216",n,!0,{})},97032:function(e,t,i){var n=i(19047);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),(0,i(594).Z)("e9b77512",n,!0,{})},5971:function(e,t,i){var n=i(11885);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),(0,i(594).Z)("c7c95066",n,!0,{})},60464:function(e,t,i){var n=i(53379);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),(0,i(594).Z)("26e77db3",n,!0,{})},13699:function(e,t,i){var n=i(81620);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),(0,i(594).Z)("eb2fc06c",n,!0,{})},55141:function(e,t,i){var n=i(76858);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),(0,i(594).Z)("52914ba8",n,!0,{})},32002:function(e,t,i){var n=i(50190);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),(0,i(594).Z)("063762f1",n,!0,{})},49958:function(e,t,i){var n=i(46604);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),(0,i(594).Z)("d7d0ff7a",n,!0,{})},33649:function(e,t,i){var n=i(61669);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),(0,i(594).Z)("61c6fb2e",n,!0,{})},7821:function(e,t,i){var n=i(97542);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),(0,i(594).Z)("9f29769a",n,!0,{})},22779:function(e,t,i){var n=i(68652);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),(0,i(594).Z)("5546850e",n,!0,{})},41630:function(e,t,i){var n=i(93228);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),(0,i(594).Z)("6ccbc2d8",n,!0,{})},32992:function(e,t,i){var n=i(92138);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),(0,i(594).Z)("a94cc91e",n,!0,{})},57792:function(e,t,i){var n=i(38223);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),(0,i(594).Z)("105ea019",n,!0,{})},93396:function(e,t,i){var n=i(45312);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),(0,i(594).Z)("72f910c8",n,!0,{})},7657:function(e,t,i){var n=i(98412);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),(0,i(594).Z)("6bfc1843",n,!0,{})},72524:function(e,t,i){var n=i(79190);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),(0,i(594).Z)("1f179fa0",n,!0,{})},32128:function(e,t,i){var n=i(81034);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),(0,i(594).Z)("6b4e7cca",n,!0,{})},71556:function(e,t,i){var n=i(50374);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),(0,i(594).Z)("e110c9f8",n,!0,{})},7334:function(e,t,i){var n=i(48823);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),(0,i(594).Z)("f2941d6c",n,!0,{})},29419:function(e,t,i){var n=i(21825);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),(0,i(594).Z)("55795501",n,!0,{})},81856:function(e,t,i){var n=i(65428);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),(0,i(594).Z)("28cb0fdf",n,!0,{})},2599:function(e,t,i){var n=i(10274);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),(0,i(594).Z)("3ecd17b5",n,!0,{})},36523:function(e,t,i){var n=i(89138);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),(0,i(594).Z)("7c8bbc2b",n,!0,{})},33556:function(e,t,i){var n=i(90771);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),(0,i(594).Z)("636fb72c",n,!0,{})},62059:function(e,t,i){var n=i(5370);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),(0,i(594).Z)("9ec45c20",n,!0,{})},15945:function(e,t,i){var n=i(71632);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),(0,i(594).Z)("feaca1f4",n,!0,{})},77330:function(e,t,i){var n=i(34847);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),(0,i(594).Z)("2b58d580",n,!0,{})},46888:function(e,t,i){var n=i(86814);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),(0,i(594).Z)("118be163",n,!0,{})},35481:function(e,t,i){var n=i(1075);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),(0,i(594).Z)("19fd85a7",n,!0,{})},5586:function(e,t,i){var n=i(64486);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),(0,i(594).Z)("5d2fc936",n,!0,{})},84753:function(e,t,i){var n=i(25903);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),(0,i(594).Z)("2acbfc88",n,!0,{})},2477:function(e,t,i){var n=i(86341);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),(0,i(594).Z)("5460da1b",n,!0,{})},80824:function(e,t,i){var n=i(74127);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),(0,i(594).Z)("321fa100",n,!0,{})},38615:function(e,t,i){var n=i(62463);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),(0,i(594).Z)("f72d900a",n,!0,{})},90198:function(e,t,i){var n=i(72203);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),(0,i(594).Z)("9515b74c",n,!0,{})},56503:function(e,t,i){var n=i(4909);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),(0,i(594).Z)("bbaea200",n,!0,{})},87403:function(e,t,i){var n=i(21165);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),(0,i(594).Z)("4058893f",n,!0,{})},71048:function(e,t,i){var n=i(65706);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),(0,i(594).Z)("3268fac0",n,!0,{})},74046:function(e,t,i){var n=i(52177);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),(0,i(594).Z)("79b730c4",n,!0,{})},36256:function(e,t,i){var n=i(93645);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),(0,i(594).Z)("82fa9e20",n,!0,{})},19423:function(e,t,i){var n=i(78633);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),(0,i(594).Z)("4444e5da",n,!0,{})},63460:function(e,t,i){var n=i(87869);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),(0,i(594).Z)("c72651a4",n,!0,{})},33915:function(e,t,i){var n=i(790);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),(0,i(594).Z)("2c1ba988",n,!0,{})},95695:function(e,t,i){var n=i(6562);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),(0,i(594).Z)("0802885e",n,!0,{})},37460:function(e,t,i){var n=i(40603);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),(0,i(594).Z)("b152f054",n,!0,{})},54227:function(e,t,i){var n=i(34919);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),(0,i(594).Z)("bf2c36a2",n,!0,{})},3407:function(e,t,i){var n=i(44637);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),(0,i(594).Z)("135ab4f0",n,!0,{})},93935:function(e,t,i){var n=i(19718);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),(0,i(594).Z)("4a8755a8",n,!0,{})},59464:function(e,t,i){var n=i(54449);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),(0,i(594).Z)("712d819b",n,!0,{})},61426:function(e,t,i){var n=i(41282);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),(0,i(594).Z)("6c124e22",n,!0,{})},82629:function(e,t,i){var n=i(58187);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),(0,i(594).Z)("629f0088",n,!0,{})},28463:function(e,t,i){var n=i(62759);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),(0,i(594).Z)("41616c16",n,!0,{})},61434:function(e,t,i){var n=i(60914);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),(0,i(594).Z)("598d07ea",n,!0,{})},86912:function(e,t,i){var n=i(93728);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),(0,i(594).Z)("e1f0655a",n,!0,{})},94820:function(e,t,i){var n=i(79523);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),(0,i(594).Z)("6bd03aa2",n,!0,{})},1937:function(e,t,i){var n=i(79081);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),(0,i(594).Z)("67f182a9",n,!0,{})},18762:function(e,t,i){var n=i(22850);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),(0,i(594).Z)("4cebd5b8",n,!0,{})},50068:function(e,t,i){var n=i(47626);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),(0,i(594).Z)("e73841c4",n,!0,{})},6637:function(e,t,i){var n=i(61222);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),(0,i(594).Z)("7ad8ce71",n,!0,{})},65451:function(e,t,i){var n=i(5841);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),(0,i(594).Z)("72397cf0",n,!0,{})},86468:function(e,t,i){var n=i(59906);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),(0,i(594).Z)("0c398e69",n,!0,{})},21261:function(e,t,i){var n=i(28413);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),(0,i(594).Z)("4a98bddf",n,!0,{})},3016:function(e,t,i){var n=i(95521);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),(0,i(594).Z)("85209bac",n,!0,{})},33426:function(e,t,i){var n=i(12046);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),(0,i(594).Z)("a7305294",n,!0,{})},32391:function(e,t,i){var n=i(24493);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),(0,i(594).Z)("d0f2e37a",n,!0,{})},80439:function(e,t,i){var n=i(89251);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),(0,i(594).Z)("1e707413",n,!0,{})},20242:function(e,t,i){var n=i(46594);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),(0,i(594).Z)("e132e9c4",n,!0,{})},10937:function(e,t,i){var n=i(37489);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),(0,i(594).Z)("1fe0545e",n,!0,{})},76864:function(e,t,i){var n=i(62215);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),(0,i(594).Z)("7a92f606",n,!0,{})},42493:function(e,t,i){var n=i(79355);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),(0,i(594).Z)("2f2f03cc",n,!0,{})},34845:function(e,t,i){var n=i(42738);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),(0,i(594).Z)("1dc4726c",n,!0,{})},67557:function(e,t,i){var n=i(12724);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),(0,i(594).Z)("3e64903d",n,!0,{})},17686:function(e,t,i){var n=i(84274);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),(0,i(594).Z)("57f5202a",n,!0,{})},11392:function(e,t,i){var n=i(55048);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),(0,i(594).Z)("2a3fee8a",n,!0,{})},3986:function(e,t,i){var n=i(30604);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),(0,i(594).Z)("f219634a",n,!0,{})},3783:function(e,t,i){var n=i(56596);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),(0,i(594).Z)("569424f2",n,!0,{})},61958:function(e,t,i){var n=i(21311);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),(0,i(594).Z)("16d1fd4d",n,!0,{})},82447:function(e,t,i){var n=i(96793);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),(0,i(594).Z)("2e225bae",n,!0,{})},97959:function(e,t,i){var n=i(66851);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),(0,i(594).Z)("79f278e1",n,!0,{})},38626:function(e,t,i){var n=i(98554);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),(0,i(594).Z)("05e5823c",n,!0,{})},95047:function(e,t,i){var n=i(99734);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),(0,i(594).Z)("470652d2",n,!0,{})},92762:function(e,t,i){var n=i(49241);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),(0,i(594).Z)("30b7e6fa",n,!0,{})},69191:function(e,t,i){var n=i(77929);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),(0,i(594).Z)("50184478",n,!0,{})},72116:function(e,t,i){var n=i(5963);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),(0,i(594).Z)("175f41c6",n,!0,{})},81361:function(e,t,i){var n=i(12638);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),(0,i(594).Z)("d8162c92",n,!0,{})},21846:function(e,t,i){var n=i(35229);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),(0,i(594).Z)("53dbb780",n,!0,{})},63710:function(e,t,i){var n=i(43039);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),(0,i(594).Z)("31c8f8fa",n,!0,{})},42030:function(e,t,i){var n=i(99173);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),(0,i(594).Z)("f0883a42",n,!0,{})},1815:function(e,t,i){var n=i(52941);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),(0,i(594).Z)("63532cba",n,!0,{})},53276:function(e,t,i){var n=i(44435);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),(0,i(594).Z)("5650447c",n,!0,{})},5221:function(e,t,i){var n=i(4711);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),(0,i(594).Z)("0bfd81af",n,!0,{})},24646:function(e,t,i){var n=i(10798);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),(0,i(594).Z)("7d29e030",n,!0,{})},94285:function(e,t,i){var n=i(49977);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),(0,i(594).Z)("9e0cc2f4",n,!0,{})},27727:function(e,t,i){var n=i(83192);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),(0,i(594).Z)("fbdb7736",n,!0,{})},2652:function(e,t,i){var n=i(39129);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),(0,i(594).Z)("2d50d440",n,!0,{})},7366:function(e,t,i){var n=i(20492);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),(0,i(594).Z)("61f7496a",n,!0,{})},23811:function(e,t,i){var n=i(64891);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),(0,i(594).Z)("64c51c27",n,!0,{})},59963:function(e,t,i){var n=i(17855);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),(0,i(594).Z)("c8ac298e",n,!0,{})},43278:function(e,t,i){var n=i(21712);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),(0,i(594).Z)("bf96b5e2",n,!0,{})},58386:function(e,t,i){var n=i(31675);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),(0,i(594).Z)("b2c88b14",n,!0,{})},54799:function(e,t,i){var n=i(97920);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),(0,i(594).Z)("576f7293",n,!0,{})},59458:function(e,t,i){var n=i(20240);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),(0,i(594).Z)("5a95265e",n,!0,{})},13840:function(e,t,i){var n=i(63551);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),(0,i(594).Z)("4e8bb318",n,!0,{})},36442:function(e,t,i){var n=i(69356);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),(0,i(594).Z)("87deda7a",n,!0,{})},45326:function(e,t,i){var n=i(41717);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.id,n,""]]),n.locals&&(e.exports=n.locals),(0,i(594).Z)("38fe06e3",n,!0,{})},594:function(e,t,i){"use strict";function n(e,t){for(var i=[],n={},o=0;o<t.length;o++){var r=t[o],a=r[0],s={id:e+":"+o,css:r[1],media:r[2],sourceMap:r[3]};n[a]?n[a].parts.push(s):i.push(n[a]={id:a,parts:[s]})}return i}i.d(t,{Z:()=>g});var o,r="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!r)throw Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var a={},s=r&&(document.head||document.getElementsByTagName("head")[0]),l=null,c=0,d=!1,u=function(){},h=null,p="data-vue-ssr-id",f="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function g(e,t,i,o){d=i,h=o||{};var r=n(e,t);return m(r),function(t){for(var i=[],o=0;o<r.length;o++){var s=a[r[o].id];s.refs--,i.push(s)}t?m(r=n(e,t)):r=[];for(var o=0;o<i.length;o++){var s=i[o];if(0===s.refs){for(var l=0;l<s.parts.length;l++)s.parts[l]();delete a[s.id]}}}}function m(e){for(var t=0;t<e.length;t++){var i=e[t],n=a[i.id];if(n){n.refs++;for(var o=0;o<n.parts.length;o++)n.parts[o](i.parts[o]);for(;o<i.parts.length;o++)n.parts.push(b(i.parts[o]));n.parts.length>i.parts.length&&(n.parts.length=i.parts.length)}else{for(var r=[],o=0;o<i.parts.length;o++)r.push(b(i.parts[o]));a[i.id]={id:i.id,refs:1,parts:r}}}}function v(){var e=document.createElement("style");return e.type="text/css",s.appendChild(e),e}function b(e){var t,i,n=document.querySelector("style["+p+'~="'+e.id+'"]');if(n)if(d)return u;else n.parentNode.removeChild(n);if(f){var o=c++;t=w.bind(null,n=l||(l=v()),o,!1),i=w.bind(null,n,o,!0)}else t=_.bind(null,n=v()),i=function(){n.parentNode.removeChild(n)};return t(e),function(n){n?(n.css!==e.css||n.media!==e.media||n.sourceMap!==e.sourceMap)&&t(e=n):i()}}var y=(o=[],function(e,t){return o[e]=t,o.filter(Boolean).join("\n")});function w(e,t,i,n){var o=i?"":n.css;if(e.styleSheet)e.styleSheet.cssText=y(t,o);else{var r=document.createTextNode(o),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(r,a[t]):e.appendChild(r)}}function _(e,t){var i=t.css,n=t.media,o=t.sourceMap;if(n&&e.setAttribute("media",n),h.ssrId&&e.setAttribute(p,t.id),o&&(i+="\n/*# sourceURL="+o.sources[0]+" */",i+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */"),e.styleSheet)e.styleSheet.cssText=i;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(i))}}},50329:function(e,t,i){var n=i(68609),o=i(56177),r=i(53733),a=i(54517),s=i(66023),l=function(e){r.call(this,e),o.call(this,e),a.call(this,e),this.id=e.id||n()};l.prototype={type:"element",name:"",__zr:null,ignore:!1,clipPath:null,isGroup:!1,drift:function(e,t){switch(this.draggable){case"horizontal":t=0;break;case"vertical":e=0}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=e,i[5]+=t,this.decomposeTransform(),this.dirty(!1)},beforeUpdate:function(){},afterUpdate:function(){},update:function(){this.updateTransform()},traverse:function(e,t){},attrKV:function(e,t){if("position"===e||"scale"===e||"origin"===e){if(t){var i=this[e];i||(i=this[e]=[]),i[0]=t[0],i[1]=t[1]}}else this[e]=t},hide:function(){this.ignore=!0,this.__zr&&this.__zr.refresh()},show:function(){this.ignore=!1,this.__zr&&this.__zr.refresh()},attr:function(e,t){if("string"==typeof e)this.attrKV(e,t);else if(s.isObject(e))for(var i in e)e.hasOwnProperty(i)&&this.attrKV(i,e[i]);return this.dirty(!1),this},setClipPath:function(e){var t=this.__zr;t&&e.addSelfToZr(t),this.clipPath&&this.clipPath!==e&&this.removeClipPath(),this.clipPath=e,e.__zr=t,e.__clipTarget=this,this.dirty(!1)},removeClipPath:function(){var e=this.clipPath;e&&(e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__clipTarget=null,this.clipPath=null,this.dirty(!1))},addSelfToZr:function(e){this.__zr=e;var t=this.animators;if(t)for(var i=0;i<t.length;i++)e.animation.addAnimator(t[i]);this.clipPath&&this.clipPath.addSelfToZr(e)},removeSelfFromZr:function(e){this.__zr=null;var t=this.animators;if(t)for(var i=0;i<t.length;i++)e.animation.removeAnimator(t[i]);this.clipPath&&this.clipPath.removeSelfFromZr(e)}},s.mixin(l,a),s.mixin(l,r),s.mixin(l,o),e.exports=l},95725:function(e,t,i){var n=i(66023),o=i(3265),r=i(93787),a=i(56177),s=i(3006),l=i(78963),c="silent";function d(e){s.stop(this.event)}function u(){}u.prototype.dispose=function(){};var h=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],p=function(e,t,i,n){a.call(this),this.storage=e,this.painter=t,this.painterRoot=n,i=i||new u,this.proxy=null,this._hovered={},this._lastTouchMoment,this._lastX,this._lastY,this._gestureMgr,r.call(this),this.setHandlerProxy(i)};p.prototype={constructor:p,setHandlerProxy:function(e){this.proxy&&this.proxy.dispose(),e&&(n.each(h,function(t){e.on&&e.on(t,this[t],this)},this),e.handler=this),this.proxy=e},mousemove:function(e){var t=e.zrX,i=e.zrY,n=this._hovered,o=n.target;o&&!o.__zr&&(o=(n=this.findHover(n.x,n.y)).target);var r=this._hovered=this.findHover(t,i),a=r.target,s=this.proxy;s.setCursor&&s.setCursor(a?a.cursor:"default"),o&&a!==o&&this.dispatchToElement(n,"mouseout",e),this.dispatchToElement(r,"mousemove",e),a&&a!==o&&this.dispatchToElement(r,"mouseover",e)},mouseout:function(e){this.dispatchToElement(this._hovered,"mouseout",e);var t,i=e.toElement||e.relatedTarget;do i=i&&i.parentNode;while(i&&9!==i.nodeType&&!(t=i===this.painterRoot));t||this.trigger("globalout",{event:e})},resize:function(e){this._hovered={}},dispatch:function(e,t){var i=this[e];i&&i.call(this,t)},dispose:function(){this.proxy.dispose(),this.storage=this.proxy=this.painter=null},setCursorStyle:function(e){var t=this.proxy;t.setCursor&&t.setCursor(e)},dispatchToElement:function(e,t,i){var n=(e=e||{}).target;if(!n||!n.silent){for(var o,r="on"+t,a={type:t,event:i,target:(o=e).target,topTarget:o.topTarget,cancelBubble:!1,offsetX:i.zrX,offsetY:i.zrY,gestureEvent:i.gestureEvent,pinchX:i.pinchX,pinchY:i.pinchY,pinchScale:i.pinchScale,wheelDelta:i.zrDelta,zrByTouch:i.zrByTouch,which:i.which,stop:d};n&&(n[r]&&(a.cancelBubble=n[r].call(n,a)),n.trigger(t,a),n=n.parent,!a.cancelBubble););!a.cancelBubble&&(this.trigger(t,a),this.painter&&this.painter.eachOtherLayer(function(e){"function"==typeof e[r]&&e[r].call(e,a),e.trigger&&e.trigger(t,a)}))}},findHover:function(e,t,i){for(var n,o=this.storage.getDisplayList(),r={x:e,y:t},a=o.length-1;a>=0;a--)if(o[a]!==i&&!o[a].ignore&&(n=function(e,t,i){if(e[e.rectHover?"rectContain":"contain"](t,i)){for(var n,o=e;o;){if(o.clipPath&&!o.clipPath.contain(t,i))return!1;o.silent&&(n=!0),o=o.parent}return!n||c}return!1}(o[a],e,t))&&(r.topTarget||(r.topTarget=o[a]),n!==c)){r.target=o[a];break}return r},processGesture:function(e,t){this._gestureMgr||(this._gestureMgr=new l);var i=this._gestureMgr;"start"===t&&i.clear();var n=i.recognize(e,this.findHover(e.zrX,e.zrY,null).target,this.proxy.dom);if("end"===t&&i.clear(),n){var o=n.type;e.gestureEvent=o,this.dispatchToElement({target:n.target},o,n.event)}}},n.each(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(e){p.prototype[e]=function(t){var i=this.findHover(t.zrX,t.zrY),n=i.target;if("mousedown"===e)this._downEl=n,this._downPoint=[t.zrX,t.zrY],this._upEl=n;else if("mouseup"===e)this._upEl=n;else if("click"===e){if(this._downEl!==this._upEl||!this._downPoint||o.dist(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(i,e,t)}}),n.mixin(p,a),n.mixin(p,r),e.exports=p},92941:function(e,t,i){var n=i(66023),o=i(14152).devicePixelRatio,r=i(77157),a=i(51501);function s(){return!1}function l(e,t,i){var o=n.createCanvas(),r=t.getWidth(),a=t.getHeight(),s=o.style;return s&&(s.position="absolute",s.left=0,s.top=0,s.width=r+"px",s.height=a+"px",o.setAttribute("data-zr-dom-id",e)),o.width=r*i,o.height=a*i,o}var c=function(e,t,i){i=i||o,"string"==typeof e?r=l(e,t,i):n.isObject(e)&&(e=(r=e).id),this.id=e,this.dom=r;var r,a=r.style;a&&(r.onselectstart=s,a["-webkit-user-select"]="none",a["user-select"]="none",a["-webkit-touch-callout"]="none",a["-webkit-tap-highlight-color"]="rgba(0,0,0,0)",a.padding=0,a.margin=0,a["border-width"]=0),this.domBack=null,this.ctxBack=null,this.painter=t,this.config=null,this.clearColor=0,this.motionBlur=!1,this.lastFrameAlpha=.7,this.dpr=i};c.prototype={constructor:c,__dirty:!0,__used:!1,__drawIndex:0,__startIndex:0,__endIndex:0,incremental:!1,getElementCount:function(){return this.__endIndex-this.__startIndex},initContext:function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},createBackBuffer:function(){var e=this.dpr;this.domBack=l("back-"+this.id,this.painter,e),this.ctxBack=this.domBack.getContext("2d"),1!==e&&this.ctxBack.scale(e,e)},resize:function(e,t){var i=this.dpr,n=this.dom,o=n.style,r=this.domBack;o&&(o.width=e+"px",o.height=t+"px"),n.width=e*i,n.height=t*i,r&&(r.width=e*i,r.height=t*i,1!==i&&this.ctxBack.scale(i,i))},clear:function(e,t){var i,n=this.dom,o=this.ctx,s=n.width,l=n.height,t=t||this.clearColor,c=this.motionBlur&&!e,d=this.lastFrameAlpha,u=this.dpr;if(c&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(n,0,0,s/u,l/u)),o.clearRect(0,0,s,l),t&&"transparent"!==t&&(t.colorStops?(i=t.__canvasGradient||r.getGradient(o,t,{x:0,y:0,width:s,height:l}),t.__canvasGradient=i):t.image&&(i=a.prototype.getCanvasPattern.call(t,o)),o.save(),o.fillStyle=i||t,o.fillRect(0,0,s,l),o.restore()),c){var h=this.domBack;o.save(),o.globalAlpha=d,o.drawImage(h,0,0,s,l),o.restore()}}},e.exports=c},2837:function(e,t,i){var n=i(14152).devicePixelRatio,o=i(66023),r=i(94627),a=i(71497),s=i(58265),l=i(92941),c=i(51017),d=i(52728),u=i(57674);function h(e){return parseInt(e,10)}var p=new a(0,0,0,0),f=new a(0,0,0,0),g=function(e,t,i){this.type="canvas";var r=!e.nodeName||"CANVAS"===e.nodeName.toUpperCase();this._opts=i=o.extend({},i||{}),this.dpr=i.devicePixelRatio||n,this._singleCanvas=r,this.root=e;var a=e.style;a&&(a["-webkit-tap-highlight-color"]="transparent",a["-webkit-user-select"]=a["user-select"]=a["-webkit-touch-callout"]="none",e.innerHTML=""),this.storage=t;var s=this._zlevelList=[],c=this._layers={};if(this._layerConfig={},this._needsManuallyCompositing=!1,r){var d=e.width,u=e.height;null!=i.width&&(d=i.width),null!=i.height&&(u=i.height),this.dpr=i.devicePixelRatio||1,e.width=d*this.dpr,e.height=u*this.dpr,this._width=d,this._height=u;var h=new l(e,this,this.dpr);h.__builtin__=!0,h.initContext(),c[314159]=h,h.zlevel=314159,s.push(314159),this._domRoot=e}else{this._width=this._getSize(0),this._height=this._getSize(1);var p,f,g,m=this._domRoot=(p=this._width,f=this._height,(g=document.createElement("div")).style.cssText=["position:relative","overflow:hidden","width:"+p+"px","height:"+f+"px","padding:0","margin:0","border-width:0"].join(";")+";",g);e.appendChild(m)}this._hoverlayer=null,this._hoverElements=[]};g.prototype={constructor:g,getType:function(){return"canvas"},isSingleCanvas:function(){return this._singleCanvas},getViewportRoot:function(){return this._domRoot},getViewportRootOffset:function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},refresh:function(e){var t=this.storage.getDisplayList(!0),i=this._zlevelList;this._redrawId=Math.random(),this._paintList(t,e,this._redrawId);for(var n=0;n<i.length;n++){var o=i[n],r=this._layers[o];if(!r.__builtin__&&r.refresh){var a=0===n?this._backgroundColor:null;r.refresh(a)}}return this.refreshHover(),this},addHover:function(e,t){if(!e.__hoverMir){var i=new e.constructor({style:e.style,shape:e.shape,z:e.z,z2:e.z2,silent:e.silent});return i.__from=e,e.__hoverMir=i,t&&i.setStyle(t),this._hoverElements.push(i),i}},removeHover:function(e){var t=e.__hoverMir,i=this._hoverElements,n=o.indexOf(i,t);n>=0&&i.splice(n,1),e.__hoverMir=null},clearHover:function(e){for(var t=this._hoverElements,i=0;i<t.length;i++){var n=t[i].__from;n&&(n.__hoverMir=null)}t.length=0},refreshHover:function(){var e=this._hoverElements,t=e.length,i=this._hoverlayer;if(i&&i.clear(),t){s(e,this.storage.displayableSortFunc),i||(i=this._hoverlayer=this.getLayer(1e5));var n={};i.ctx.save();for(var o=0;o<t;){var r=e[o],a=r.__from;if(!(a&&a.__zr)){e.splice(o,1),a.__hoverMir=null,t--;continue}o++,a.invisible||(r.transform=a.transform,r.invTransform=a.invTransform,r.__clipPaths=a.__clipPaths,this._doPaintEl(r,i,!0,n))}i.ctx.restore()}},getHoverLayer:function(){return this.getLayer(1e5)},_paintList:function(e,t,i){if(this._redrawId===i){t=t||!1,this._updateLayerStatus(e);var n=this._doPaintList(e,t);if(this._needsManuallyCompositing&&this._compositeManually(),!n){var o=this;c(function(){o._paintList(e,t,i)})}}},_compositeManually:function(){var e=this.getLayer(314159).ctx,t=this._domRoot.width,i=this._domRoot.height;e.clearRect(0,0,t,i),this.eachBuiltinLayer(function(n){n.virtual&&e.drawImage(n.dom,0,0,t,i)})},_doPaintList:function(e,t){for(var i=[],n=0;n<this._zlevelList.length;n++){var r=this._zlevelList[n],a=this._layers[r];a.__builtin__&&a!==this._hoverlayer&&(a.__dirty||t)&&i.push(a)}for(var s=!0,l=0;l<i.length;l++){var a=i[l],c=a.ctx,d={};c.save();var h=t?a.__startIndex:a.__drawIndex,p=!t&&a.incremental&&Date.now,f=p&&Date.now(),g=a.zlevel===this._zlevelList[0]?this._backgroundColor:null;if(a.__startIndex===a.__endIndex)a.clear(!1,g);else if(h===a.__startIndex){var m=e[h];m.incremental&&m.notClear&&!t||a.clear(!1,g)}-1===h&&(console.error("For some unknown reason. drawIndex is -1"),h=a.__startIndex);for(var v=h;v<a.__endIndex;v++){var b=e[v];if(this._doPaintEl(b,a,t,d),b.__dirty=b.__dirtyText=!1,p&&Date.now()-f>15)break}a.__drawIndex=v,a.__drawIndex<a.__endIndex&&(s=!1),d.prevElClipPaths&&c.restore(),c.restore()}return u.wxa&&o.each(this._layers,function(e){e&&e.ctx&&e.ctx.draw&&e.ctx.draw()}),s},_doPaintEl:function(e,t,i,n){var o,r,a=t.ctx,s=e.transform;if((t.__dirty||i)&&!e.invisible&&0!==e.style.opacity&&!(s&&!s[0]&&!s[3])&&!(e.culling&&(o=this._width,r=this._height,p.copy(e.getBoundingRect()),e.transform&&p.applyTransform(e.transform),f.width=o,f.height=r,!p.intersect(f)))){var l=e.__clipPaths;if((!n.prevElClipPaths||function(e,t){if(e===t)return!1;if(!e||!t||e.length!==t.length)return!0;for(var i=0;i<e.length;i++)if(e[i]!==t[i])return!0}(l,n.prevElClipPaths))&&(n.prevElClipPaths&&(t.ctx.restore(),n.prevElClipPaths=null,n.prevEl=null),l)){a.save();for(var c=0;c<l.length;c++){var d=l[c];d.setTransform(a),a.beginPath(),d.buildPath(a,d.shape),a.clip(),d.restoreTransform(a)}n.prevElClipPaths=l}e.beforeBrush&&e.beforeBrush(a),e.brush(a,n.prevEl||null),n.prevEl=e,e.afterBrush&&e.afterBrush(a)}},getLayer:function(e,t){this._singleCanvas&&!this._needsManuallyCompositing&&(e=314159);var i=this._layers[e];return i||((i=new l("zr_"+e,this,this.dpr)).zlevel=e,i.__builtin__=!0,this._layerConfig[e]&&o.merge(i,this._layerConfig[e],!0),t&&(i.virtual=t),this.insertLayer(e,i),i.initContext()),i},insertLayer:function(e,t){var i=this._layers,n=this._zlevelList,o=n.length,a=null,s=-1,l=this._domRoot;if(i[e])return void r("ZLevel "+e+" has been used already");if(!(t&&(t.__builtin__||"function"==typeof t.resize&&"function"==typeof t.refresh&&1)))return void r("Layer of zlevel "+e+" is not valid");if(o>0&&e>n[0]){for(s=0;s<o-1&&(!(n[s]<e)||!(n[s+1]>e));s++);a=i[n[s]]}if(n.splice(s+1,0,e),i[e]=t,!t.virtual)if(a){var c=a.dom;c.nextSibling?l.insertBefore(t.dom,c.nextSibling):l.appendChild(t.dom)}else l.firstChild?l.insertBefore(t.dom,l.firstChild):l.appendChild(t.dom)},eachLayer:function(e,t){var i,n,o=this._zlevelList;for(n=0;n<o.length;n++)i=o[n],e.call(t,this._layers[i],i)},eachBuiltinLayer:function(e,t){var i,n,o,r=this._zlevelList;for(o=0;o<r.length;o++)n=r[o],(i=this._layers[n]).__builtin__&&e.call(t,i,n)},eachOtherLayer:function(e,t){var i,n,o,r=this._zlevelList;for(o=0;o<r.length;o++)n=r[o],(i=this._layers[n]).__builtin__||e.call(t,i,n)},getLayers:function(){return this._layers},_updateLayerStatus:function(e){function t(e){o&&(o.__endIndex!==e&&(o.__dirty=!0),o.__endIndex=e)}if(this.eachBuiltinLayer(function(e,t){e.__dirty=e.__used=!1}),this._singleCanvas)for(var i=1;i<e.length;i++){var n=e[i];if(n.zlevel!==e[i-1].zlevel||n.incremental){this._needsManuallyCompositing=!0;break}}for(var o=null,a=0,i=0;i<e.length;i++){var s,n=e[i],l=n.zlevel;n.incremental?((s=this.getLayer(l+.001,this._needsManuallyCompositing)).incremental=!0,a=1):s=this.getLayer(l+.01*(a>0),this._needsManuallyCompositing),s.__builtin__||r("ZLevel "+l+" has been used by unkown layer "+s.id),s!==o&&(s.__used=!0,s.__startIndex!==i&&(s.__dirty=!0),s.__startIndex=i,s.incremental?s.__drawIndex=-1:s.__drawIndex=i,t(i),o=s),n.__dirty&&(s.__dirty=!0,s.incremental&&s.__drawIndex<0&&(s.__drawIndex=i))}t(i),this.eachBuiltinLayer(function(e,t){!e.__used&&e.getElementCount()>0&&(e.__dirty=!0,e.__startIndex=e.__endIndex=e.__drawIndex=0),e.__dirty&&e.__drawIndex<0&&(e.__drawIndex=e.__startIndex)})},clear:function(){return this.eachBuiltinLayer(this._clearLayer),this},_clearLayer:function(e){e.clear()},setBackgroundColor:function(e){this._backgroundColor=e},configLayer:function(e,t){if(t){var i=this._layerConfig;i[e]?o.merge(i[e],t,!0):i[e]=t;for(var n=0;n<this._zlevelList.length;n++){var r=this._zlevelList[n];if(r===e||r===e+.01){var a=this._layers[r];o.merge(a,i[e],!0)}}}},delLayer:function(e){var t=this._layers,i=this._zlevelList,n=t[e];n&&(n.dom.parentNode.removeChild(n.dom),delete t[e],i.splice(o.indexOf(i,e),1))},resize:function(e,t){if(this._domRoot.style){var i=this._domRoot;i.style.display="none";var n=this._opts;if(null!=e&&(n.width=e),null!=t&&(n.height=t),e=this._getSize(0),t=this._getSize(1),i.style.display="",this._width!==e||t!==this._height){for(var r in i.style.width=e+"px",i.style.height=t+"px",this._layers)this._layers.hasOwnProperty(r)&&this._layers[r].resize(e,t);o.each(this._progressiveLayers,function(i){i.resize(e,t)}),this.refresh(!0)}this._width=e,this._height=t}else{if(null==e||null==t)return;this._width=e,this._height=t,this.getLayer(314159).resize(e,t)}return this},clearLayer:function(e){var t=this._layers[e];t&&t.clear()},dispose:function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},getRenderedCanvas:function(e){if(e=e||{},this._singleCanvas&&!this._compositeManually)return this._layers[314159].dom;var t=new l("image",this,e.pixelRatio||this.dpr);if(t.initContext(),t.clear(!1,e.backgroundColor||this._backgroundColor),e.pixelRatio<=this.dpr){this.refresh();var i=t.dom.width,n=t.dom.height,o=t.ctx;this.eachLayer(function(e){e.__builtin__?o.drawImage(e.dom,0,0,i,n):e.renderToCanvas&&(t.ctx.save(),e.renderToCanvas(t.ctx),t.ctx.restore())})}else for(var r={},a=this.storage.getDisplayList(!0),s=0;s<a.length;s++){var c=a[s];this._doPaintEl(c,t,!0,r)}return t.dom},getWidth:function(){return this._width},getHeight:function(){return this._height},_getSize:function(e){var t=this._opts,i=["width","height"][e],n=["clientWidth","clientHeight"][e],o=["paddingLeft","paddingTop"][e],r=["paddingRight","paddingBottom"][e];if(null!=t[i]&&"auto"!==t[i])return parseFloat(t[i]);var a=this.root,s=document.defaultView.getComputedStyle(a);return(a[n]||h(s[i])||h(a.style[i]))-(h(s[o])||0)-(h(s[r])||0)|0},pathToImage:function(e,t){t=t||this.dpr;var i=document.createElement("canvas"),n=i.getContext("2d"),o=e.getBoundingRect(),r=e.style,a=r.shadowBlur*t,s=r.shadowOffsetX*t,l=r.shadowOffsetY*t,c=r.hasStroke()?r.lineWidth:0,u=Math.max(c/2,-s+a),h=Math.max(c/2,s+a),p=Math.max(c/2,-l+a),f=Math.max(c/2,l+a),g=o.width+u+h,m=o.height+p+f;i.width=g*t,i.height=m*t,n.scale(t,t),n.clearRect(0,0,g,m),n.dpr=t;var v={position:e.position,rotation:e.rotation,scale:e.scale};e.position=[u-o.x,p-o.y],e.rotation=0,e.scale=[1,1],e.updateTransform(),e&&e.brush(n);var b=new d({style:{x:0,y:0,image:i}});return null!=v.position&&(b.position=e.position=v.position),null!=v.rotation&&(b.rotation=e.rotation=v.rotation),null!=v.scale&&(b.scale=e.scale=v.scale),b}},e.exports=g},16949:function(e,t,i){var n=i(66023),o=i(57674),r=i(35601),a=i(58265);function s(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var l=function(){this._roots=[],this._displayList=[],this._displayListLen=0};l.prototype={constructor:l,traverse:function(e,t){for(var i=0;i<this._roots.length;i++)this._roots[i].traverse(e,t)},getDisplayList:function(e,t){return t=t||!1,e&&this.updateDisplayList(t),this._displayList},updateDisplayList:function(e){this._displayListLen=0;for(var t=this._roots,i=this._displayList,n=0,r=t.length;n<r;n++)this._updateAndAddDisplayable(t[n],null,e);i.length=this._displayListLen,o.canvasSupported&&a(i,s)},_updateAndAddDisplayable:function(e,t,i){if(!e.ignore||i){e.beforeUpdate(),e.__dirty&&e.update(),e.afterUpdate();var n=e.clipPath;if(n){t=t?t.slice():[];for(var o=n,r=e;o;)o.parent=r,o.updateTransform(),t.push(o),r=o,o=o.clipPath}if(e.isGroup){for(var a=e._children,s=0;s<a.length;s++){var l=a[s];e.__dirty&&(l.__dirty=!0),this._updateAndAddDisplayable(l,t,i)}e.__dirty=!1}else e.__clipPaths=t,this._displayList[this._displayListLen++]=e}},addRoot:function(e){e.__storage!==this&&(e instanceof r&&e.addChildrenToStorage(this),this.addToStorage(e),this._roots.push(e))},delRoot:function(e){if(null==e){for(var t=0;t<this._roots.length;t++){var i=this._roots[t];i instanceof r&&i.delChildrenFromStorage(this)}this._roots=[],this._displayList=[],this._displayListLen=0;return}if(e instanceof Array){for(var t=0,o=e.length;t<o;t++)this.delRoot(e[t]);return}var a=n.indexOf(this._roots,e);a>=0&&(this.delFromStorage(e),this._roots.splice(a,1),e instanceof r&&e.delChildrenFromStorage(this))},addToStorage:function(e){return e&&(e.__storage=this,e.dirty(!1)),this},delFromStorage:function(e){return e&&(e.__storage=null),this},dispose:function(){this._renderList=this._roots=null},displayableSortFunc:s},e.exports=l},72482:function(e,t,i){var n=i(66023),o=i(3006).Dispatcher,r=i(51017),a=i(76183),s=function(e){e=e||{},this.stage=e.stage||{},this.onframe=e.onframe||function(){},this._clips=[],this._running=!1,this._time,this._pausedTime,this._pauseStart,this._paused=!1,o.call(this)};s.prototype={constructor:s,addClip:function(e){this._clips.push(e)},addAnimator:function(e){e.animation=this;for(var t=e.getClips(),i=0;i<t.length;i++)this.addClip(t[i])},removeClip:function(e){var t=n.indexOf(this._clips,e);t>=0&&this._clips.splice(t,1)},removeAnimator:function(e){for(var t=e.getClips(),i=0;i<t.length;i++)this.removeClip(t[i]);e.animation=null},_update:function(){for(var e=new Date().getTime()-this._pausedTime,t=e-this._time,i=this._clips,n=i.length,o=[],r=[],a=0;a<n;a++){var s=i[a],l=s.step(e,t);l&&(o.push(l),r.push(s))}for(var a=0;a<n;)i[a]._needsRemove?(i[a]=i[n-1],i.pop(),n--):a++;n=o.length;for(var a=0;a<n;a++)r[a].fire(o[a]);this._time=e,this.onframe(t),this.trigger("frame",t),this.stage.update&&this.stage.update()},_startLoop:function(){var e=this;this._running=!0,r(function t(){e._running&&(r(t),e._paused||e._update())})},start:function(){this._time=new Date().getTime(),this._pausedTime=0,this._startLoop()},stop:function(){this._running=!1},pause:function(){this._paused||(this._pauseStart=new Date().getTime(),this._paused=!0)},resume:function(){this._paused&&(this._pausedTime+=new Date().getTime()-this._pauseStart,this._paused=!1)},clear:function(){this._clips=[]},isFinished:function(){return!this._clips.length},animate:function(e,t){var i=new a(e,(t=t||{}).loop,t.getter,t.setter);return this.addAnimator(i),i}},n.mixin(s,o),e.exports=s},76183:function(e,t,i){var n=i(98559),o=i(53453),r=i(66023).isArrayLike,a=Array.prototype.slice;function s(e,t){return e[t]}function l(e,t,i){e[t]=i}function c(e,t,i,n,o){var r=e.length;if(1===o)for(var a=0;a<r;a++)n[a]=(s=e[a],(t[a]-s)*i+s);else for(var s,l,c=r&&e[0].length,a=0;a<r;a++)for(var d=0;d<c;d++)n[a][d]=(l=e[a][d],(t[a][d]-l)*i+l)}function d(e,t,i){var n=e.length,o=t.length;if(n!==o)if(n>o)e.length=o;else for(var r=n;r<o;r++)e.push(1===i?t[r]:a.call(t[r]));for(var s=e[0]&&e[0].length,r=0;r<e.length;r++)if(1===i)isNaN(e[r])&&(e[r]=t[r]);else for(var l=0;l<s;l++)isNaN(e[r][l])&&(e[r][l]=t[r][l])}function u(e,t,i,n,o,r,a,s,l){var c=e.length;if(1===l)for(var d=0;d<c;d++)s[d]=h(e[d],t[d],i[d],n[d],o,r,a);else for(var u=e[0].length,d=0;d<c;d++)for(var p=0;p<u;p++)s[d][p]=h(e[d][p],t[d][p],i[d][p],n[d][p],o,r,a)}function h(e,t,i,n,o,r,a){var s=(i-e)*.5,l=(n-t)*.5;return(2*(t-i)+s+l)*a+(-3*(t-i)-2*s-l)*r+s*o+t}function p(e){return e[0]=Math.floor(e[0]),e[1]=Math.floor(e[1]),e[2]=Math.floor(e[2]),"rgba("+e.join(",")+")"}var f=function(e,t,i,n){this._tracks={},this._target=e,this._loop=t||!1,this._getter=i||s,this._setter=n||l,this._clipCount=0,this._delay=0,this._doneList=[],this._onframeList=[],this._clipList=[]};f.prototype={when:function(e,t){var i=this._tracks;for(var n in t)if(t.hasOwnProperty(n)){if(!i[n]){i[n]=[];var o=this._getter(this._target,n);if(null==o)continue;0!==e&&i[n].push({time:0,value:function(e){if(r(e)){var t=e.length;if(r(e[0])){for(var i=[],n=0;n<t;n++)i.push(a.call(e[n]));return i}return a.call(e)}return e}(o)})}i[n].push({time:e,value:t[n]})}return this},during:function(e){return this._onframeList.push(e),this},pause:function(){for(var e=0;e<this._clipList.length;e++)this._clipList[e].pause();this._paused=!0},resume:function(){for(var e=0;e<this._clipList.length;e++)this._clipList[e].resume();this._paused=!1},isPaused:function(){return!!this._paused},_doneCallback:function(){this._tracks={},this._clipList.length=0;for(var e=this._doneList,t=e.length,i=0;i<t;i++)e[i].call(this)},start:function(e,t){var i,a=this,s=0,l=function(){--s||a._doneCallback()};for(var f in this._tracks)if(this._tracks.hasOwnProperty(f)){var g=function(e,t,i,a,s,l){var f,g,m,v,b,y,w,_,x=e._getter,S=e._setter,C="spline"===t,k=a.length;if(k){var I=r(a[0].value),A=!1,T=!1,E=I?r((f=a[a.length-1].value)&&f[0])?2:1:0;a.sort(function(e,t){return e.time-t.time}),g=a[k-1].time;for(var R=[],D=[],O=a[0].value,M=!0,N=0;N<k;N++){R.push(a[N].time/g);var P=a[N].value;if(I&&function(e,t,i){if(e===t)return!0;var n=e.length;if(n!==t.length)return!1;if(1===i){for(var o=0;o<n;o++)if(e[o]!==t[o])return!1}else for(var r=e[0].length,o=0;o<n;o++)for(var a=0;a<r;a++)if(e[o][a]!==t[o][a])return!1;return!0}(P,O,E)||!I&&P===O||(M=!1),O=P,"string"==typeof P){var L=o.parse(P);L?(P=L,A=!0):T=!0}D.push(P)}if(l||!M){for(var B=D[k-1],N=0;N<k-1;N++)I?d(D[N],B,E):!isNaN(D[N])||isNaN(B)||T||A||(D[N]=B);I&&d(x(e._target,s),B,E);var F=0,V=0;if(A)var z=[0,0,0,0];var H=new n({target:e._target,life:g,loop:e._loop,delay:e._delay,onframe:function(e,t){if(t<0)r=0;else if(t<V){for(r=m=Math.min(F+1,k-1);r>=0&&!(R[r]<=t);r--);r=Math.min(r,k-2)}else{for(r=F;r<k&&!(R[r]>t);r++);r=Math.min(r-1,k-2)}F=r,V=t;var i,n,o,r,a,l=R[r+1]-R[r];if(0!==l)if(v=(t-R[r])/l,C)if(y=D[r],b=D[0===r?r:r-1],w=D[r>k-2?k-1:r+1],_=D[r>k-3?k-1:r+2],I)u(b,y,w,_,v,v*v,v*v*v,x(e,s),E);else{if(A)a=u(b,y,w,_,v,v*v,v*v*v,z,1),a=p(z);else{if(T)return v>.5?w:y;a=h(b,y,w,_,v,v*v,v*v*v)}S(e,s,a)}else if(I)c(D[r],D[r+1],v,x(e,s),E);else{if(A)c(D[r],D[r+1],v,z,1),a=p(z);else{if(T)return i=D[r],n=D[r+1],v>.5?n:i;o=D[r],a=(D[r+1]-o)*v+o}S(e,s,a)}},ondestroy:i});return t&&"spline"!==t&&(H.easing=t),H}}}(this,e,l,this._tracks[f],f,t);g&&(this._clipList.push(g),s++,this.animation&&this.animation.addClip(g),i=g)}if(i){var m=i.onframe;i.onframe=function(e,t){m(e,t);for(var i=0;i<a._onframeList.length;i++)a._onframeList[i](e,t)}}return s||this._doneCallback(),this},stop:function(e){for(var t=this._clipList,i=this.animation,n=0;n<t.length;n++){var o=t[n];e&&o.onframe(this._target,1),i&&i.removeClip(o)}t.length=0},delay:function(e){return this._delay=e,this},done:function(e){return e&&this._doneList.push(e),this},getClips:function(){return this._clipList}},e.exports=f},98559:function(e,t,i){var n=i(83375);function o(e){this._target=e.target,this._life=e.life||1e3,this._delay=e.delay||0,this._initialized=!1,this.loop=null!=e.loop&&e.loop,this.gap=e.gap||0,this.easing=e.easing||"Linear",this.onframe=e.onframe,this.ondestroy=e.ondestroy,this.onrestart=e.onrestart,this._pausedTime=0,this._paused=!1}o.prototype={constructor:o,step:function(e,t){if(this._initialized||(this._startTime=e+this._delay,this._initialized=!0),this._paused){this._pausedTime+=t;return}var i=(e-this._startTime-this._pausedTime)/this._life;if(!(i<0)){i=Math.min(i,1);var o=this.easing,r="string"==typeof o?n[o]:o,a="function"==typeof r?r(i):i;return(this.fire("frame",a),1===i)?this.loop?(this.restart(e),"restart"):(this._needsRemove=!0,"destroy"):null}},restart:function(e){var t=(e-this._startTime-this._pausedTime)%this._life;this._startTime=e-t+this.gap,this._pausedTime=0,this._needsRemove=!1},fire:function(e,t){this[e="on"+e]&&this[e](this._target,t)},pause:function(){this._paused=!0},resume:function(){this._paused=!1}},e.exports=o},83375:function(e){var t={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return .5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return 0===e?0:Math.pow(1024,e-1)},exponentialOut:function(e){return 1===e?1:1-Math.pow(2,-10*e)},exponentialInOut:function(e){return 0===e?0:1===e?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(-Math.pow(2,-10*(e-1))+2)},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,i=.1;return 0===e?0:1===e?1:(!i||i<1?(i=1,t=.1):t=.4*Math.asin(1/i)/(2*Math.PI),-(i*Math.pow(2,10*(e-=1))*Math.sin(2*Math.PI*(e-t)/.4)))},elasticOut:function(e){var t,i=.1;return 0===e?0:1===e?1:(!i||i<1?(i=1,t=.1):t=.4*Math.asin(1/i)/(2*Math.PI),i*Math.pow(2,-10*e)*Math.sin(2*Math.PI*(e-t)/.4)+1)},elasticInOut:function(e){var t,i=.1;return 0===e?0:1===e?1:(!i||i<1?(i=1,t=.1):t=.4*Math.asin(1/i)/(2*Math.PI),(e*=2)<1)?-.5*(i*Math.pow(2,10*(e-=1))*Math.sin(2*Math.PI*(e-t)/.4)):i*Math.pow(2,-10*(e-=1))*Math.sin(2*Math.PI*(e-t)/.4)*.5+1},backIn:function(e){return e*e*(2.70158*e-1.70158)},backOut:function(e){return--e*e*(2.70158*e+1.70158)+1},backInOut:function(e){return(e*=2)<1?e*e*(3.5949095*e-2.5949095)*.5:.5*((e-=2)*e*(3.5949095*e+2.5949095)+2)},bounceIn:function(e){return 1-t.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?.5*t.bounceIn(2*e):.5*t.bounceOut(2*e-1)+.5}};e.exports=t},51017:function(e){e.exports="undefined"!=typeof window&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){setTimeout(e,16)}},14152:function(e,t){var i=1;"undefined"!=typeof window&&(i=Math.max(window.devicePixelRatio||1,1));var n=i;t.debugMode=0,t.devicePixelRatio=n},50649:function(e,t,i){var n=i(43431).normalizeRadian,o=2*Math.PI;t.containStroke=function(e,t,i,r,a,s,l,c,d){if(0===l)return!1;var u=Math.sqrt((c-=e)*c+(d-=t)*d);if(u-l>i||u+l<i)return!1;if(Math.abs(r-a)%o<1e-4)return!0;if(s){var h=r;r=n(a),a=n(h)}else r=n(r),a=n(a);r>a&&(a+=o);var p=Math.atan2(d,c);return p<0&&(p+=o),p>=r&&p<=a||p+o>=r&&p+o<=a}},16858:function(e,t,i){var n=i(30783);t.containStroke=function(e,t,i,o,r,a,s,l,c,d,u){return 0!==c&&(!(u>t+c)||!(u>o+c)||!(u>a+c)||!(u>l+c))&&(!(u<t-c)||!(u<o-c)||!(u<a-c)||!(u<l-c))&&(!(d>e+c)||!(d>i+c)||!(d>r+c)||!(d>s+c))&&(!(d<e-c)||!(d<i-c)||!(d<r-c)||!(d<s-c))&&n.cubicProjectPoint(e,t,i,o,r,a,s,l,d,u,null)<=c/2}},11846:function(e,t){t.containStroke=function(e,t,i,n,o,r,a){if(0===o)return!1;var s=0,l=e;if(a>t+o&&a>n+o||a<t-o&&a<n-o||r>e+o&&r>i+o||r<e-o&&r<i-o)return!1;if(e===i)return Math.abs(r-e)<=o/2;s=(t-n)/(e-i);var c=s*r-a+(l=(e*n-i*t)/(e-i));return c*c/(s*s+1)<=o/2*o/2}},83212:function(e,t,i){var n=i(12057),o=i(11846),r=i(16858),a=i(5280),s=i(50649),l=i(43431).normalizeRadian,c=i(30783),d=i(71696),u=n.CMD,h=2*Math.PI,p=[-1,-1,-1],f=[-1,-1];function g(e,t,i,n,g){for(var m=0,v=0,b=0,y=0,w=0,_=0;_<e.length;){var x=e[_++];switch(x===u.M&&_>1&&!i&&(m+=d(v,b,y,w,n,g)),1===_&&(v=e[_],b=e[_+1],y=v,w=b),x){case u.M:y=e[_++],w=e[_++],v=y,b=w;break;case u.L:if(i){if(o.containStroke(v,b,e[_],e[_+1],t,n,g))return!0}else m+=d(v,b,e[_],e[_+1],n,g)||0;v=e[_++],b=e[_++];break;case u.C:if(i){if(r.containStroke(v,b,e[_++],e[_++],e[_++],e[_++],e[_],e[_+1],t,n,g))return!0}else m+=function(e,t,i,n,o,r,a,s,l,d){if(d>t&&d>n&&d>r&&d>s||d<t&&d<n&&d<r&&d<s)return 0;var u=c.cubicRootAt(t,n,r,s,d,p);if(0===u)return 0;for(var h,g,m=0,v=-1,b=0;b<u;b++){var y=p[b],w=0===y||1===y?.5:1;c.cubicAt(e,i,o,a,y)<l||(v<0&&(v=c.cubicExtrema(t,n,r,s,f),f[1]<f[0]&&v>1&&function(){var e=f[0];f[0]=f[1],f[1]=e}(),h=c.cubicAt(t,n,r,s,f[0]),v>1&&(g=c.cubicAt(t,n,r,s,f[1]))),2===v?y<f[0]?m+=h<t?w:-w:y<f[1]?m+=g<h?w:-w:m+=s<g?w:-w:y<f[0]?m+=h<t?w:-w:m+=s<h?w:-w)}return m}(v,b,e[_++],e[_++],e[_++],e[_++],e[_],e[_+1],n,g)||0;v=e[_++],b=e[_++];break;case u.Q:if(i){if(a.containStroke(v,b,e[_++],e[_++],e[_],e[_+1],t,n,g))return!0}else m+=function(e,t,i,n,o,r,a,s){if(s>t&&s>n&&s>r||s<t&&s<n&&s<r)return 0;var l=c.quadraticRootAt(t,n,r,s,p);if(0===l)return 0;var d=c.quadraticExtremum(t,n,r);if(d>=0&&d<=1){for(var u=0,h=c.quadraticAt(t,n,r,d),f=0;f<l;f++){var g=0===p[f]||1===p[f]?.5:1,m=c.quadraticAt(e,i,o,p[f]);m<a||(p[f]<d?u+=h<t?g:-g:u+=r<h?g:-g)}return u}var g=0===p[0]||1===p[0]?.5:1,m=c.quadraticAt(e,i,o,p[0]);return m<a?0:r<t?g:-g}(v,b,e[_++],e[_++],e[_],e[_+1],n,g)||0;v=e[_++],b=e[_++];break;case u.A:var S=e[_++],C=e[_++],k=e[_++],I=e[_++],A=e[_++],T=e[_++];_+=1;var E=1-e[_++],R=Math.cos(A)*k+S,D=Math.sin(A)*I+C;_>1?m+=d(v,b,R,D,n,g):(y=R,w=D);var O=(n-S)*I/k+S;if(i){if(s.containStroke(S,C,I,A,A+T,E,t,O,g))return!0}else m+=function(e,t,i,n,o,r,a,s){if((s-=t)>i||s<-i)return 0;var c=Math.sqrt(i*i-s*s);p[0]=-c,p[1]=c;var d=Math.abs(n-o);if(d<1e-4)return 0;if(d%h<1e-4){n=0,o=h;var u=r?1:-1;return a>=p[0]+e&&a<=p[1]+e?u:0}if(r){var c=n;n=l(o),o=l(c)}else n=l(n),o=l(o);n>o&&(o+=h);for(var f=0,g=0;g<2;g++){var m=p[g];if(m+e>a){var v=Math.atan2(s,m),u=r?1:-1;v<0&&(v=h+v),(v>=n&&v<=o||v+h>=n&&v+h<=o)&&(v>Math.PI/2&&v<1.5*Math.PI&&(u=-u),f+=u)}}return f}(S,C,I,A,A+T,E,O,g);v=Math.cos(A+T)*k+S,b=Math.sin(A+T)*I+C;break;case u.R:y=v=e[_++],w=b=e[_++];var M=e[_++],N=e[_++],R=y+M,D=w+N;if(i){if(o.containStroke(y,w,R,w,t,n,g)||o.containStroke(R,w,R,D,t,n,g)||o.containStroke(R,D,y,D,t,n,g)||o.containStroke(y,D,y,w,t,n,g))return!0}else m+=d(R,w,R,D,n,g),m+=d(y,D,y,w,n,g);break;case u.Z:if(i){if(o.containStroke(v,b,y,w,t,n,g))return!0}else m+=d(v,b,y,w,n,g);v=y,b=w}}return i||1e-4>Math.abs(b-w)||(m+=d(v,b,y,w,n,g)||0),0!==m}t.contain=function(e,t,i){return g(e,0,!1,t,i)},t.containStroke=function(e,t,i,n){return g(e,t,!0,i,n)}},76703:function(e,t,i){var n=i(71696);function o(e,t){return 1e-8>Math.abs(e-t)}t.contain=function(e,t,i){var r=0,a=e[0];if(!a)return!1;for(var s=1;s<e.length;s++){var l=e[s];r+=n(a[0],a[1],l[0],l[1],t,i),a=l}var c=e[0];return o(a[0],c[0])&&o(a[1],c[1])||(r+=n(a[0],a[1],c[0],c[1],t,i)),0!==r}},5280:function(e,t,i){var n=i(30783).quadraticProjectPoint;t.containStroke=function(e,t,i,o,r,a,s,l,c){return 0!==s&&(!(c>t+s)||!(c>o+s)||!(c>a+s))&&(!(c<t-s)||!(c<o-s)||!(c<a-s))&&(!(l>e+s)||!(l>i+s)||!(l>r+s))&&(!(l<e-s)||!(l<i-s)||!(l<r-s))&&n(e,t,i,o,r,a,l,c,null)<=s/2}},99280:function(e,t,i){var n=i(71497),o=i(21715),r=i(66023),a=r.getContext,s=r.extend,l=r.retrieve2,c=r.retrieve3,d=r.trim,u={},h=0,p=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g,f="12px sans-serif",g={};function m(e,t){var i=e+":"+(t=t||f);if(u[i])return u[i];for(var n=(e+"").split("\n"),o=0,r=0,a=n.length;r<a;r++)o=Math.max(S(n[r],t).width,o);return h>5e3&&(h=0,u={}),h++,u[i]=o,o}function v(e,t,i){return"right"===i?e-=t:"center"===i&&(e-=t/2),e}function b(e,t,i){return"middle"===i?e-=t/2:"bottom"===i&&(e-=t),e}function y(e,t,i,n,o){if(!t)return"";var r=(e+"").split("\n");o=w(t,i,n,o);for(var a=0,s=r.length;a<s;a++)r[a]=_(r[a],o);return r.join("\n")}function w(e,t,i,n){(n=s({},n)).font=t;var i=l(i,"...");n.maxIterations=l(n.maxIterations,2);var o=n.minChar=l(n.minChar,0);n.cnCharWidth=m("国",t);var r=n.ascCharWidth=m("a",t);n.placeholder=l(n.placeholder,"");for(var a=e=Math.max(0,e-1),c=0;c<o&&a>=r;c++)a-=r;var d=m(i,t);return d>a&&(i="",d=0),a=e-d,n.ellipsis=i,n.ellipsisWidth=d,n.contentWidth=a,n.containerWidth=e,n}function _(e,t){var i=t.containerWidth,n=t.font,o=t.contentWidth;if(!i)return"";var r=m(e,n);if(r<=i)return e;for(var a=0;;a++){if(r<=o||a>=t.maxIterations){e+=t.ellipsis;break}var s=0===a?function(e,t,i,n){for(var o=0,r=0,a=e.length;r<a&&o<t;r++){var s=e.charCodeAt(r);o+=0<=s&&s<=127?i:n}return r}(e,o,t.ascCharWidth,t.cnCharWidth):r>0?Math.floor(e.length*o/r):0;r=m(e=e.substr(0,s),n)}return""===e&&(e=t.placeholder),e}function x(e){return m("国",e)}function S(e,t){return g.measureText(e,t)}function C(e,t,i,n,o){null!=e&&(e+="");var r=l(n,x(t)),a=e?e.split("\n"):[],s=a.length*r,c=s;if(i&&(c+=i[0]+i[2]),e&&o){var d=o.outerHeight,u=o.outerWidth;if(null!=d&&c>d)e="",a=[];else if(null!=u)for(var h=w(u-(i?i[1]+i[3]:0),t,o.ellipsis,{minChar:o.minChar,placeholder:o.placeholder}),p=0,f=a.length;p<f;p++)a[p]=_(a[p],h)}return{lines:a,height:s,outerHeight:c,lineHeight:r}}function k(e,t){var i,n={lines:[],width:0,height:0};if(null!=e&&(e+=""),!e)return n;for(var r=p.lastIndex=0;null!=(i=p.exec(e));){var a=i.index;a>r&&I(n,e.substring(r,a)),I(n,i[2],i[1]),r=p.lastIndex}r<e.length&&I(n,e.substring(r,e.length));var s=n.lines,d=0,u=0,h=[],f=t.textPadding,g=t.truncate,v=g&&g.outerWidth,b=g&&g.outerHeight;f&&(null!=v&&(v-=f[1]+f[3]),null!=b&&(b-=f[0]+f[2]));for(var w=0;w<s.length;w++){for(var _=s[w],S=0,C=0,k=0;k<_.tokens.length;k++){var A=_.tokens[k],T=A.styleName&&t.rich[A.styleName]||{},E=A.textPadding=T.textPadding,R=A.font=T.font||t.font,D=A.textHeight=l(T.textHeight,x(R));if(E&&(D+=E[0]+E[2]),A.height=D,A.lineHeight=c(T.textLineHeight,t.textLineHeight,D),A.textAlign=T&&T.textAlign||t.textAlign,A.textVerticalAlign=T&&T.textVerticalAlign||"middle",null!=b&&d+A.lineHeight>b)return{lines:[],width:0,height:0};A.textWidth=m(A.text,R);var O=T.textWidth,M=null==O||"auto"===O;if("string"==typeof O&&"%"===O.charAt(O.length-1))A.percentWidth=O,h.push(A),O=0;else{if(M){O=A.textWidth;var N=T.textBackgroundColor,P=N&&N.image;P&&(P=o.findExistImage(P),o.isImageReady(P)&&(O=Math.max(O,P.width*D/P.height)))}var L=E?E[1]+E[3]:0;O+=L;var B=null!=v?v-C:null;null!=B&&B<O&&(!M||B<L?(A.text="",A.textWidth=O=0):(A.text=y(A.text,B-L,R,g.ellipsis,{minChar:g.minChar}),A.textWidth=m(A.text,R),O=A.textWidth+L))}C+=A.width=O,T&&(S=Math.max(S,A.lineHeight))}_.width=C,_.lineHeight=S,d+=S,u=Math.max(u,C)}n.outerWidth=n.width=l(t.textWidth,u),n.outerHeight=n.height=l(t.textHeight,d),f&&(n.outerWidth+=f[1]+f[3],n.outerHeight+=f[0]+f[2]);for(var w=0;w<h.length;w++){var A=h[w],F=A.percentWidth;A.width=parseInt(F,10)/100*u}return n}function I(e,t,i){for(var n=""===t,o=t.split("\n"),r=e.lines,a=0;a<o.length;a++){var s=o[a],l={styleName:i,text:s,isLineHolder:!s&&!n};if(a)r.push({tokens:[l]});else{var c=(r[r.length-1]||(r[0]={tokens:[]})).tokens,d=c.length;1===d&&c[0].isLineHolder?c[0]=l:(s||!d||n)&&c.push(l)}}}g.measureText=function(e,t){var i=a();return i.font=t||f,i.measureText(e)},t.DEFAULT_FONT=f,t.$override=function(e,t){g[e]=t},t.getWidth=m,t.getBoundingRect=function(e,t,i,o,r,a,s,l){var c,d,u,h,p,f,g,y,w,_,x,S,I,A,T,E;return s?(c=e,d=t,u=i,h=o,f=(p=k(c,{rich:s,truncate:l,font:d,textAlign:u,textPadding:r,textLineHeight:a})).outerWidth,g=p.outerHeight,new n(v(0,f,u),b(0,g,h),f,g)):(y=e,w=t,_=i,x=o,I=C(y,w,S=r,a,l),A=m(y,w),S&&(A+=S[1]+S[3]),T=I.outerHeight,(E=new n(v(0,A,_),b(0,T,x),A,T)).lineHeight=I.lineHeight,E)},t.adjustTextX=v,t.adjustTextY=b,t.adjustTextPositionOnRect=function(e,t,i){var n=t.x,o=t.y,r=t.height,a=t.width,s=r/2,l="left",c="top";switch(e){case"left":n-=i,o+=s,l="right",c="middle";break;case"right":n+=i+a,o+=s,c="middle";break;case"top":n+=a/2,o-=i,l="center",c="bottom";break;case"bottom":n+=a/2,o+=r+i,l="center";break;case"inside":n+=a/2,o+=s,l="center",c="middle";break;case"insideLeft":n+=i,o+=s,c="middle";break;case"insideRight":n+=a-i,o+=s,l="right",c="middle";break;case"insideTop":n+=a/2,o+=i,l="center";break;case"insideBottom":n+=a/2,o+=r-i,l="center",c="bottom";break;case"insideTopLeft":n+=i,o+=i;break;case"insideTopRight":n+=a-i,o+=i,l="right";break;case"insideBottomLeft":n+=i,o+=r-i,c="bottom";break;case"insideBottomRight":n+=a-i,o+=r-i,l="right",c="bottom"}return{x:n,y:o,textAlign:l,textVerticalAlign:c}},t.truncateText=y,t.getLineHeight=x,t.measureText=S,t.parsePlainText=C,t.parseRichText=k,t.makeFont=function(e){var t=(e.fontSize||e.fontFamily)&&[e.fontStyle,e.fontWeight,(e.fontSize||12)+"px",e.fontFamily||"sans-serif"].join(" ");return t&&d(t)||e.textFont||e.font}},43431:function(e,t){var i=2*Math.PI;t.normalizeRadian=function(e){return(e%=i)<0&&(e+=i),e}},71696:function(e){e.exports=function(e,t,i,n,o,r){if(r>t&&r>n||r<t&&r<n||n===t)return 0;var a=n<t?1:-1,s=(r-t)/(n-t);(1===s||0===s)&&(a=n<t?.5:-.5);var l=s*(i-e)+e;return l===o?1/0:l>o?a:0}},35601:function(e,t,i){var n=i(66023),o=i(50329),r=i(71497),a=function(e){for(var t in e=e||{},o.call(this,e),e)e.hasOwnProperty(t)&&(this[t]=e[t]);this._children=[],this.__storage=null,this.__dirty=!0};a.prototype={constructor:a,isGroup:!0,type:"group",silent:!1,children:function(){return this._children.slice()},childAt:function(e){return this._children[e]},childOfName:function(e){for(var t=this._children,i=0;i<t.length;i++)if(t[i].name===e)return t[i]},childCount:function(){return this._children.length},add:function(e){return e&&e!==this&&e.parent!==this&&(this._children.push(e),this._doAdd(e)),this},addBefore:function(e,t){if(e&&e!==this&&e.parent!==this&&t&&t.parent===this){var i=this._children,n=i.indexOf(t);n>=0&&(i.splice(n,0,e),this._doAdd(e))}return this},_doAdd:function(e){e.parent&&e.parent.remove(e),e.parent=this;var t=this.__storage,i=this.__zr;t&&t!==e.__storage&&(t.addToStorage(e),e instanceof a&&e.addChildrenToStorage(t)),i&&i.refresh()},remove:function(e){var t=this.__zr,i=this.__storage,o=this._children,r=n.indexOf(o,e);return r<0||(o.splice(r,1),e.parent=null,i&&(i.delFromStorage(e),e instanceof a&&e.delChildrenFromStorage(i)),t&&t.refresh()),this},removeAll:function(){var e,t,i=this._children,n=this.__storage;for(t=0;t<i.length;t++)e=i[t],n&&(n.delFromStorage(e),e instanceof a&&e.delChildrenFromStorage(n)),e.parent=null;return i.length=0,this},eachChild:function(e,t){for(var i=this._children,n=0;n<i.length;n++){var o=i[n];e.call(t,o,n)}return this},traverse:function(e,t){for(var i=0;i<this._children.length;i++){var n=this._children[i];e.call(t,n),"group"===n.type&&n.traverse(e,t)}return this},addChildrenToStorage:function(e){for(var t=0;t<this._children.length;t++){var i=this._children[t];e.addToStorage(i),i instanceof a&&i.addChildrenToStorage(e)}},delChildrenFromStorage:function(e){for(var t=0;t<this._children.length;t++){var i=this._children[t];e.delFromStorage(i),i instanceof a&&i.delChildrenFromStorage(e)}},dirty:function(){return this.__dirty=!0,this.__zr&&this.__zr.refresh(),this},getBoundingRect:function(e){for(var t=null,i=new r(0,0,0,0),n=e||this._children,o=[],a=0;a<n.length;a++){var s=n[a];if(!s.ignore&&!s.invisible){var l=s.getBoundingRect(),c=s.getLocalTransform(o);c?(i.copy(l),i.applyTransform(c),(t=t||i.clone()).union(i)):(t=t||l.clone()).union(l)}}return t||i}},n.inherits(a,o),e.exports=a},71497:function(e,t,i){var n,o,r,a,s=i(3265),l=i(36653),c=s.applyTransform,d=Math.min,u=Math.max;function h(e,t,i,n){i<0&&(e+=i,i=-i),n<0&&(t+=n,n=-n),this.x=e,this.y=t,this.width=i,this.height=n}h.prototype={constructor:h,union:function(e){var t=d(e.x,this.x),i=d(e.y,this.y);this.width=u(e.x+e.width,this.x+this.width)-t,this.height=u(e.y+e.height,this.y+this.height)-i,this.x=t,this.y=i},applyTransform:(n=[],o=[],r=[],a=[],function(e){if(e){n[0]=r[0]=this.x,n[1]=a[1]=this.y,o[0]=a[0]=this.x+this.width,o[1]=r[1]=this.y+this.height,c(n,n,e),c(o,o,e),c(r,r,e),c(a,a,e),this.x=d(n[0],o[0],r[0],a[0]),this.y=d(n[1],o[1],r[1],a[1]);var t=u(n[0],o[0],r[0],a[0]),i=u(n[1],o[1],r[1],a[1]);this.width=t-this.x,this.height=i-this.y}}),calculateTransform:function(e){var t=e.width/this.width,i=e.height/this.height,n=l.create();return l.translate(n,n,[-this.x,-this.y]),l.scale(n,n,[t,i]),l.translate(n,n,[e.x,e.y]),n},intersect:function(e){if(!e)return!1;e instanceof h||(e=h.create(e));var t=this.x,i=this.x+this.width,n=this.y,o=this.y+this.height,r=e.x,a=e.x+e.width,s=e.y,l=e.y+e.height;return!(i<r||a<t||o<s||l<n)},contain:function(e,t){return e>=this.x&&e<=this.x+this.width&&t>=this.y&&t<=this.y+this.height},clone:function(){return new h(this.x,this.y,this.width,this.height)},copy:function(e){this.x=e.x,this.y=e.y,this.width=e.width,this.height=e.height},plain:function(){return{x:this.x,y:this.y,width:this.width,height:this.height}}},h.create=function(e){return new h(e.x,e.y,e.width,e.height)},e.exports=h},78963:function(e,t,i){var n=i(3006),o=function(){this._track=[]};function r(e){var t=e[1][0]-e[0][0],i=e[1][1]-e[0][1];return Math.sqrt(t*t+i*i)}o.prototype={constructor:o,recognize:function(e,t,i){return this._doTrack(e,t,i),this._recognize(e)},clear:function(){return this._track.length=0,this},_doTrack:function(e,t,i){var o=e.touches;if(o){for(var r={points:[],touches:[],target:t,event:e},a=0,s=o.length;a<s;a++){var l=o[a],c=n.clientToLocal(i,l,{});r.points.push([c.zrX,c.zrY]),r.touches.push(l)}this._track.push(r)}},_recognize:function(e){for(var t in a)if(a.hasOwnProperty(t)){var i=a[t](this._track,e);if(i)return i}}};var a={pinch:function(e,t){var i=e.length;if(i){var n=(e[i-1]||{}).points,o=(e[i-2]||{}).points||n;if(o&&o.length>1&&n&&n.length>1){var a=r(n)/r(o);isFinite(a)||(a=1),t.pinchScale=a;var s=[(n[0][0]+n[1][0])/2,(n[0][1]+n[1][1])/2];return t.pinchX=s[0],t.pinchY=s[1],{type:"pinch",target:e[0].target,event:t}}}}};e.exports=o},4186:function(e){var t=function(){this.head=null,this.tail=null,this._len=0},i=t.prototype;i.insert=function(e){var t=new n(e);return this.insertEntry(t),t},i.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},i.remove=function(e){var t=e.prev,i=e.next;t?t.next=i:this.head=i,i?i.prev=t:this.tail=t,e.next=e.prev=null,this._len--},i.len=function(){return this._len},i.clear=function(){this.head=this.tail=null,this._len=0};var n=function(e){this.value=e,this.next,this.prev},o=function(e){this._list=new t,this._map={},this._maxSize=e||10,this._lastRemovedEntry=null},r=o.prototype;r.put=function(e,t){var i=this._list,o=this._map,r=null;if(null==o[e]){var a=i.len(),s=this._lastRemovedEntry;if(a>=this._maxSize&&a>0){var l=i.head;i.remove(l),delete o[l.key],r=l.value,this._lastRemovedEntry=l}s?s.value=t:s=new n(t),s.key=e,i.insertEntry(s),o[e]=s}return r},r.get=function(e){var t=this._map[e],i=this._list;if(null!=t)return t!==i.tail&&(i.remove(t),i.insertEntry(t)),t.value},r.clear=function(){this._list.clear(),this._map={}},e.exports=o},12057:function(e,t,i){var n=i(30783),o=i(3265),r=i(91273),a=i(71497),s=i(14152).devicePixelRatio,l={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},c=[],d=[],u=[],h=[],p=Math.min,f=Math.max,g=Math.cos,m=Math.sin,v=Math.sqrt,b=Math.abs,y="undefined"!=typeof Float32Array,w=function(e){this._saveData=!e,this._saveData&&(this.data=[]),this._ctx=null};w.prototype={constructor:w,_xi:0,_yi:0,_x0:0,_y0:0,_ux:0,_uy:0,_len:0,_lineDash:null,_dashOffset:0,_dashIdx:0,_dashSum:0,setScale:function(e,t){this._ux=b(1/s/e)||0,this._uy=b(1/s/t)||0},getContext:function(){return this._ctx},beginPath:function(e){return this._ctx=e,e&&e.beginPath(),e&&(this.dpr=e.dpr),this._saveData&&(this._len=0),this._lineDash&&(this._lineDash=null,this._dashOffset=0),this},moveTo:function(e,t){return this.addData(l.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},lineTo:function(e,t){var i=b(e-this._xi)>this._ux||b(t-this._yi)>this._uy||this._len<5;return this.addData(l.L,e,t),this._ctx&&i&&(this._needsDash()?this._dashedLineTo(e,t):this._ctx.lineTo(e,t)),i&&(this._xi=e,this._yi=t),this},bezierCurveTo:function(e,t,i,n,o,r){return this.addData(l.C,e,t,i,n,o,r),this._ctx&&(this._needsDash()?this._dashedBezierTo(e,t,i,n,o,r):this._ctx.bezierCurveTo(e,t,i,n,o,r)),this._xi=o,this._yi=r,this},quadraticCurveTo:function(e,t,i,n){return this.addData(l.Q,e,t,i,n),this._ctx&&(this._needsDash()?this._dashedQuadraticTo(e,t,i,n):this._ctx.quadraticCurveTo(e,t,i,n)),this._xi=i,this._yi=n,this},arc:function(e,t,i,n,o,r){return this.addData(l.A,e,t,i,i,n,o-n,0,+!r),this._ctx&&this._ctx.arc(e,t,i,n,o,r),this._xi=g(o)*i+e,this._yi=m(o)*i+t,this},arcTo:function(e,t,i,n,o){return this._ctx&&this._ctx.arcTo(e,t,i,n,o),this},rect:function(e,t,i,n){return this._ctx&&this._ctx.rect(e,t,i,n),this.addData(l.R,e,t,i,n),this},closePath:function(){this.addData(l.Z);var e=this._ctx,t=this._x0,i=this._y0;return e&&(this._needsDash()&&this._dashedLineTo(t,i),e.closePath()),this._xi=t,this._yi=i,this},fill:function(e){e&&e.fill(),this.toStatic()},stroke:function(e){e&&e.stroke(),this.toStatic()},setLineDash:function(e){if(e instanceof Array){this._lineDash=e,this._dashIdx=0;for(var t=0,i=0;i<e.length;i++)t+=e[i];this._dashSum=t}return this},setLineDashOffset:function(e){return this._dashOffset=e,this},len:function(){return this._len},setData:function(e){var t=e.length;!(this.data&&this.data.length===t)&&y&&(this.data=new Float32Array(t));for(var i=0;i<t;i++)this.data[i]=e[i];this._len=t},appendPath:function(e){e instanceof Array||(e=[e]);for(var t=e.length,i=0,n=this._len,o=0;o<t;o++)i+=e[o].len();y&&this.data instanceof Float32Array&&(this.data=new Float32Array(n+i));for(var o=0;o<t;o++)for(var r=e[o].data,a=0;a<r.length;a++)this.data[n++]=r[a];this._len=n},addData:function(e){if(this._saveData){var t=this.data;this._len+arguments.length>t.length&&(this._expandData(),t=this.data);for(var i=0;i<arguments.length;i++)t[this._len++]=arguments[i];this._prevCmd=e}},_expandData:function(){if(!(this.data instanceof Array)){for(var e=[],t=0;t<this._len;t++)e[t]=this.data[t];this.data=e}},_needsDash:function(){return this._lineDash},_dashedLineTo:function(e,t){var i,n,o=this._dashSum,r=this._dashOffset,a=this._lineDash,s=this._ctx,l=this._xi,c=this._yi,d=e-l,u=t-c,h=v(d*d+u*u),g=l,m=c,b=a.length;for(d/=h,u/=h,r<0&&(r=o+r),r%=o,g-=r*d,m-=r*u;d>0&&g<=e||d<0&&g>=e||0===d&&(u>0&&m<=t||u<0&&m>=t);)g+=d*(i=a[n=this._dashIdx]),m+=u*i,this._dashIdx=(n+1)%b,d>0&&g<l||d<0&&g>l||u>0&&m<c||u<0&&m>c||s[n%2?"moveTo":"lineTo"](d>=0?p(g,e):f(g,e),u>=0?p(m,t):f(m,t));d=g-e,u=m-t,this._dashOffset=-v(d*d+u*u)},_dashedBezierTo:function(e,t,i,o,r,a){var s,l,c,d,u,h=this._dashSum,p=this._dashOffset,f=this._lineDash,g=this._ctx,m=this._xi,b=this._yi,y=n.cubicAt,w=0,_=this._dashIdx,x=f.length,S=0;for(p<0&&(p=h+p),p%=h,s=0;s<1;s+=.1)w+=v((l=y(m,e,i,r,s+.1)-y(m,e,i,r,s))*l+(c=y(b,t,o,a,s+.1)-y(b,t,o,a,s))*c);for(;_<x&&!((S+=f[_])>p);_++);for(s=(S-p)/w;s<=1;)d=y(m,e,i,r,s),u=y(b,t,o,a,s),_%2?g.moveTo(d,u):g.lineTo(d,u),s+=f[_]/w,_=(_+1)%x;_%2!=0&&g.lineTo(r,a),l=r-d,c=a-u,this._dashOffset=-v(l*l+c*c)},_dashedQuadraticTo:function(e,t,i,n){var o=i,r=n;i=(i+2*e)/3,n=(n+2*t)/3,e=(this._xi+2*e)/3,t=(this._yi+2*t)/3,this._dashedBezierTo(e,t,i,n,o,r)},toStatic:function(){var e=this.data;e instanceof Array&&(e.length=this._len,y&&(this.data=new Float32Array(e)))},getBoundingRect:function(){c[0]=c[1]=u[0]=u[1]=Number.MAX_VALUE,d[0]=d[1]=h[0]=h[1]=-Number.MAX_VALUE;for(var e=this.data,t=0,i=0,n=0,s=0,p=0;p<e.length;){var f=e[p++];switch(1===p&&(t=e[p],i=e[p+1],n=t,s=i),f){case l.M:n=e[p++],s=e[p++],t=n,i=s,u[0]=n,u[1]=s,h[0]=n,h[1]=s;break;case l.L:r.fromLine(t,i,e[p],e[p+1],u,h),t=e[p++],i=e[p++];break;case l.C:r.fromCubic(t,i,e[p++],e[p++],e[p++],e[p++],e[p],e[p+1],u,h),t=e[p++],i=e[p++];break;case l.Q:r.fromQuadratic(t,i,e[p++],e[p++],e[p],e[p+1],u,h),t=e[p++],i=e[p++];break;case l.A:var v=e[p++],b=e[p++],y=e[p++],w=e[p++],_=e[p++],x=e[p++]+_;p+=1;var S=1-e[p++];1===p&&(n=g(_)*y+v,s=m(_)*w+b),r.fromArc(v,b,y,w,_,x,S,u,h),t=g(x)*y+v,i=m(x)*w+b;break;case l.R:n=t=e[p++],s=i=e[p++];var C=e[p++],k=e[p++];r.fromLine(n,s,n+C,s+k,u,h);break;case l.Z:t=n,i=s}o.min(c,c,u),o.max(d,d,h)}return 0===p&&(c[0]=c[1]=d[0]=d[1]=0),new a(c[0],c[1],d[0]-c[0],d[1]-c[1])},rebuildPath:function(e){for(var t,i,n,o,r,a,s=this.data,c=this._ux,d=this._uy,u=this._len,h=0;h<u;){var p=s[h++];switch(1===h&&(n=s[h],o=s[h+1],t=n,i=o),p){case l.M:t=n=s[h++],i=o=s[h++],e.moveTo(n,o);break;case l.L:r=s[h++],a=s[h++],(b(r-n)>c||b(a-o)>d||h===u-1)&&(e.lineTo(r,a),n=r,o=a);break;case l.C:e.bezierCurveTo(s[h++],s[h++],s[h++],s[h++],s[h++],s[h++]),n=s[h-2],o=s[h-1];break;case l.Q:e.quadraticCurveTo(s[h++],s[h++],s[h++],s[h++]),n=s[h-2],o=s[h-1];break;case l.A:var f=s[h++],v=s[h++],y=s[h++],w=s[h++],_=s[h++],x=s[h++],S=s[h++],C=s[h++],k=y>w?y:w,I=y>w?1:y/w,A=y>w?w/y:1,T=_+x;Math.abs(y-w)>.001?(e.translate(f,v),e.rotate(S),e.scale(I,A),e.arc(0,0,k,_,T,1-C),e.scale(1/I,1/A),e.rotate(-S),e.translate(-f,-v)):e.arc(f,v,k,_,T,1-C),1===h&&(t=g(_)*y+f,i=m(_)*w+v),n=g(T)*y+f,o=m(T)*w+v;break;case l.R:t=n=s[h],i=o=s[h+1],e.rect(s[h++],s[h++],s[h++],s[h++]);break;case l.Z:e.closePath(),n=t,o=i}}}},w.CMD=l,e.exports=w},35786:function(e){function t(){}t.prototype={diff:function(e,t,i){i||(i=function(e,t){return e===t}),this.equals=i;var n=this;e=e.slice();var o=(t=t.slice()).length,r=e.length,a=1,s=o+r,l=[{newPos:-1,components:[]}],c=this.extractCommon(l[0],t,e,0);if(l[0].newPos+1>=o&&c+1>=r){for(var d=[],u=0;u<t.length;u++)d.push(u);return[{indices:d,count:t.length}]}for(;a<=s;){var h=function(){for(var i=-1*a;i<=a;i+=2){var s,c,d=l[i-1],u=l[i+1],h=(u?u.newPos:0)-i;d&&(l[i-1]=void 0);var p=d&&d.newPos+1<o,f=u&&0<=h&&h<r;if(!p&&!f){l[i]=void 0;continue}if(!p||f&&d.newPos<u.newPos?(c={newPos:(s=u).newPos,components:s.components.slice(0)},n.pushComponent(c.components,void 0,!0)):(c=d,c.newPos++,n.pushComponent(c.components,!0,void 0)),h=n.extractCommon(c,t,e,i),c.newPos+1>=o&&h+1>=r)return function(e,t,i,n){for(var o=0,r=t.length,a=0,s=0;o<r;o++){var l=t[o];if(l.removed){for(var c=[],d=s;d<s+l.count;d++)c.push(d);l.indices=c,s+=l.count}else{for(var c=[],d=a;d<a+l.count;d++)c.push(d);l.indices=c,a+=l.count,l.added||(s+=l.count)}}return t}(0,c.components,0,0);l[i]=c}a++}();if(h)return h}},pushComponent:function(e,t,i){var n=e[e.length-1];n&&n.added===t&&n.removed===i?e[e.length-1]={count:n.count+1,added:t,removed:i}:e.push({count:1,added:t,removed:i})},extractCommon:function(e,t,i,n){for(var o=t.length,r=i.length,a=e.newPos,s=a-n,l=0;a+1<o&&s+1<r&&this.equals(t[a+1],i[s+1]);)a++,s++,l++;return l&&e.components.push({count:l}),e.newPos=a,s},tokenize:function(e){return e.slice()},join:function(e){return e.slice()}};var i=new t;e.exports=function(e,t,n){return i.diff(e,t,n)}},91273:function(e,t,i){var n=i(3265),o=i(30783),r=Math.min,a=Math.max,s=Math.sin,l=Math.cos,c=2*Math.PI,d=n.create(),u=n.create(),h=n.create(),p=[],f=[];t.fromPoints=function(e,t,i){if(0!==e.length){var n,o=e[0],s=o[0],l=o[0],c=o[1],d=o[1];for(n=1;n<e.length;n++)s=r(s,(o=e[n])[0]),l=a(l,o[0]),c=r(c,o[1]),d=a(d,o[1]);t[0]=s,t[1]=c,i[0]=l,i[1]=d}},t.fromLine=function(e,t,i,n,o,s){o[0]=r(e,i),o[1]=r(t,n),s[0]=a(e,i),s[1]=a(t,n)},t.fromCubic=function(e,t,i,n,s,l,c,d,u,h){var g,m=o.cubicExtrema,v=o.cubicAt,b=m(e,i,s,c,p);for(g=0,u[0]=1/0,u[1]=1/0,h[0]=-1/0,h[1]=-1/0;g<b;g++){var y=v(e,i,s,c,p[g]);u[0]=r(y,u[0]),h[0]=a(y,h[0])}for(g=0,b=m(t,n,l,d,f);g<b;g++){var w=v(t,n,l,d,f[g]);u[1]=r(w,u[1]),h[1]=a(w,h[1])}u[0]=r(e,u[0]),h[0]=a(e,h[0]),u[0]=r(c,u[0]),h[0]=a(c,h[0]),u[1]=r(t,u[1]),h[1]=a(t,h[1]),u[1]=r(d,u[1]),h[1]=a(d,h[1])},t.fromQuadratic=function(e,t,i,n,s,l,c,d){var u=o.quadraticExtremum,h=o.quadraticAt,p=a(r(u(e,i,s),1),0),f=a(r(u(t,n,l),1),0),g=h(e,i,s,p),m=h(t,n,l,f);c[0]=r(e,s,g),c[1]=r(t,l,m),d[0]=a(e,s,g),d[1]=a(t,l,m)},t.fromArc=function(e,t,i,o,r,a,p,f,g){var m=n.min,v=n.max,b=Math.abs(r-a);if(b%c<1e-4&&b>1e-4){f[0]=e-i,f[1]=t-o,g[0]=e+i,g[1]=t+o;return}if(d[0]=l(r)*i+e,d[1]=s(r)*o+t,u[0]=l(a)*i+e,u[1]=s(a)*o+t,m(f,d,u),v(g,d,u),(r%=c)<0&&(r+=c),(a%=c)<0&&(a+=c),r>a&&!p?a+=c:r<a&&p&&(r+=c),p){var y=a;a=r,r=y}for(var w=0;w<a;w+=Math.PI/2)w>r&&(h[0]=l(w)*i+e,h[1]=s(w)*o+t,m(f,h,f),v(g,h,g))}},30783:function(e,t,i){var n=i(3265),o=n.create,r=n.distSquare,a=Math.pow,s=Math.sqrt,l=s(3),c=1/3,d=o(),u=o(),h=o();function p(e){return e>-1e-8&&e<1e-8}function f(e){return e>1e-8||e<-1e-8}function g(e,t,i,n,o){var r=1-o;return r*r*(r*e+3*o*t)+o*o*(o*n+3*r*i)}function m(e,t,i,n){var o=1-n;return o*(o*e+2*n*t)+n*n*i}t.cubicAt=g,t.cubicDerivativeAt=function(e,t,i,n,o){var r=1-o;return 3*(((t-e)*r+2*(i-t)*o)*r+(n-i)*o*o)},t.cubicRootAt=function(e,t,i,n,o,r){var d=n+3*(t-i)-e,u=3*(i-2*t+e),h=3*(t-e),f=e-o,g=u*u-3*d*h,m=u*h-9*d*f,v=h*h-3*u*f,b=0;if(p(g)&&p(m))if(p(u))r[0]=0;else{var y=-h/u;y>=0&&y<=1&&(r[b++]=y)}else{var w=m*m-4*g*v;if(p(w)){var _=m/g,y=-u/d+_,x=-_/2;y>=0&&y<=1&&(r[b++]=y),x>=0&&x<=1&&(r[b++]=x)}else if(w>0){var S=s(w),C=g*u+1.5*d*(-m+S),k=g*u+1.5*d*(-m-S),y=(-u-((C=C<0?-a(-C,c):a(C,c))+(k=k<0?-a(-k,c):a(k,c))))/(3*d);y>=0&&y<=1&&(r[b++]=y)}else{var I=Math.acos((2*g*u-3*d*m)/(2*s(g*g*g)))/3,A=s(g),T=Math.cos(I),y=(-u-2*A*T)/(3*d),x=(-u+A*(T+l*Math.sin(I)))/(3*d),E=(-u+A*(T-l*Math.sin(I)))/(3*d);y>=0&&y<=1&&(r[b++]=y),x>=0&&x<=1&&(r[b++]=x),E>=0&&E<=1&&(r[b++]=E)}}return b},t.cubicExtrema=function(e,t,i,n,o){var r=6*i-12*t+6*e,a=9*t+3*n-3*e-9*i,l=3*t-3*e,c=0;if(p(a)){if(f(r)){var d=-l/r;d>=0&&d<=1&&(o[c++]=d)}}else{var u=r*r-4*a*l;if(p(u))o[0]=-r/(2*a);else if(u>0){var h=s(u),d=(-r+h)/(2*a),g=(-r-h)/(2*a);d>=0&&d<=1&&(o[c++]=d),g>=0&&g<=1&&(o[c++]=g)}}return c},t.cubicSubdivide=function(e,t,i,n,o,r){var a=(t-e)*o+e,s=(i-t)*o+t,l=(n-i)*o+i,c=(s-a)*o+a,d=(l-s)*o+s,u=(d-c)*o+c;r[0]=e,r[1]=a,r[2]=c,r[3]=u,r[4]=u,r[5]=d,r[6]=l,r[7]=n},t.cubicProjectPoint=function(e,t,i,n,o,a,l,c,p,f,m){var v,b,y,w,_,x=.005,S=1/0;d[0]=p,d[1]=f;for(var C=0;C<1;C+=.05)u[0]=g(e,i,o,l,C),u[1]=g(t,n,a,c,C),(w=r(d,u))<S&&(v=C,S=w);S=1/0;for(var k=0;k<32&&!(x<1e-4);k++)b=v-x,y=v+x,u[0]=g(e,i,o,l,b),u[1]=g(t,n,a,c,b),w=r(u,d),b>=0&&w<S?(v=b,S=w):(h[0]=g(e,i,o,l,y),h[1]=g(t,n,a,c,y),_=r(h,d),y<=1&&_<S?(v=y,S=_):x*=.5);return m&&(m[0]=g(e,i,o,l,v),m[1]=g(t,n,a,c,v)),s(S)},t.quadraticAt=m,t.quadraticDerivativeAt=function(e,t,i,n){return 2*((1-n)*(t-e)+n*(i-t))},t.quadraticRootAt=function(e,t,i,n,o){var r=e-2*t+i,a=2*(t-e),l=e-n,c=0;if(p(r)){if(f(a)){var d=-l/a;d>=0&&d<=1&&(o[c++]=d)}}else{var u=a*a-4*r*l;if(p(u)){var d=-a/(2*r);d>=0&&d<=1&&(o[c++]=d)}else if(u>0){var h=s(u),d=(-a+h)/(2*r),g=(-a-h)/(2*r);d>=0&&d<=1&&(o[c++]=d),g>=0&&g<=1&&(o[c++]=g)}}return c},t.quadraticExtremum=function(e,t,i){var n=e+i-2*t;return 0===n?.5:(e-t)/n},t.quadraticSubdivide=function(e,t,i,n,o){var r=(t-e)*n+e,a=(i-t)*n+t,s=(a-r)*n+r;o[0]=e,o[1]=r,o[2]=s,o[3]=s,o[4]=a,o[5]=i},t.quadraticProjectPoint=function(e,t,i,n,o,a,l,c,p){var f,g=.005,v=1/0;d[0]=l,d[1]=c;for(var b=0;b<1;b+=.05){u[0]=m(e,i,o,b),u[1]=m(t,n,a,b);var y=r(d,u);y<v&&(f=b,v=y)}v=1/0;for(var w=0;w<32&&!(g<1e-4);w++){var _=f-g,x=f+g;u[0]=m(e,i,o,_),u[1]=m(t,n,a,_);var y=r(u,d);if(_>=0&&y<v)f=_,v=y;else{h[0]=m(e,i,o,x),h[1]=m(t,n,a,x);var S=r(h,d);x<=1&&S<v?(f=x,v=S):g*=.5}}return p&&(p[0]=m(e,i,o,f),p[1]=m(t,n,a,f)),s(v)}},57674:function(e){var t,i,n,o,r,a,s={};e.exports="object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?{browser:{},os:{},node:!1,wxa:!0,canvasSupported:!0,svgSupported:!1,touchEventsSupported:!0,domSupported:!1}:"undefined"==typeof document&&"undefined"!=typeof self?{browser:{},os:{},node:!1,worker:!0,canvasSupported:!0,domSupported:!1}:"undefined"==typeof navigator?{browser:{},os:{},node:!0,worker:!1,canvasSupported:!0,svgSupported:!0,domSupported:!1}:(t=navigator.userAgent,i={},n=t.match(/Firefox\/([\d.]+)/),o=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),r=t.match(/Edge\/([\d.]+)/),a=/micromessenger/i.test(t),n&&(i.firefox=!0,i.version=n[1]),o&&(i.ie=!0,i.version=o[1]),r&&(i.edge=!0,i.version=r[1]),a&&(i.weChat=!0),{browser:i,os:{},node:!1,canvasSupported:!!document.createElement("canvas").getContext,svgSupported:"undefined"!=typeof SVGRect,touchEventsSupported:"ontouchstart"in window&&!i.ie&&!i.edge,pointerEventsSupported:"onpointerdown"in window&&(i.edge||i.ie&&i.version>=11),domSupported:"undefined"!=typeof document})},3006:function(e,t,i){t.Dispatcher=i(56177);var n=i(57674),o="undefined"!=typeof window&&!!window.addEventListener,r=/^(?:mouse|pointer|contextmenu|drag|drop)|click/;function a(e,t,i,o){return i=i||{},o||!n.canvasSupported?s(e,t,i):n.browser.firefox&&null!=t.layerX&&t.layerX!==t.offsetX?(i.zrX=t.layerX,i.zrY=t.layerY):null!=t.offsetX?(i.zrX=t.offsetX,i.zrY=t.offsetY):s(e,t,i),i}function s(e,t,i){var n=e.getBoundingClientRect?e.getBoundingClientRect():{left:0,top:0};i.zrX=t.clientX-n.left,i.zrY=t.clientY-n.top}var l=o?function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0}:function(e){e.returnValue=!1,e.cancelBubble=!0};t.clientToLocal=a,t.normalizeEvent=function(e,t,i){if(null!=(t=t||window.event).zrX)return t;var n=t.type;if(n&&n.indexOf("touch")>=0){var o="touchend"!==n?t.targetTouches[0]:t.changedTouches[0];o&&a(e,o,t,i)}else a(e,t,t,i),t.zrDelta=t.wheelDelta?t.wheelDelta/120:-(t.detail||0)/3;var s=t.button;return null==t.which&&void 0!==s&&r.test(t.type)&&(t.which=1&s?1:2&s?3:4&s?2:0),t},t.addEventListener=function(e,t,i){o?e.addEventListener(t,i):e.attachEvent("on"+t,i)},t.removeEventListener=function(e,t,i){o?e.removeEventListener(t,i):e.detachEvent("on"+t,i)},t.stop=l,t.isMiddleOrRightButtonOnMouseUpDown=function(e){return 2===e.which||3===e.which},t.notLeftMouse=function(e){return e.which>1}},68609:function(e){var t=2311;e.exports=function(){return t++}},94627:function(e,t,i){var n=i(14152).debugMode,o=function(){};1===n?o=function(){for(var e in arguments)throw Error(arguments[e])}:n>1&&(o=function(){for(var e in arguments)console.log(arguments[e])}),e.exports=o},36653:function(e,t){var i="undefined"==typeof Float32Array?Array:Float32Array;function n(){var e=new i(6);return o(e),e}function o(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function r(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}t.create=n,t.identity=o,t.copy=r,t.mul=function(e,t,i){var n=t[0]*i[0]+t[2]*i[1],o=t[1]*i[0]+t[3]*i[1],r=t[0]*i[2]+t[2]*i[3],a=t[1]*i[2]+t[3]*i[3],s=t[0]*i[4]+t[2]*i[5]+t[4],l=t[1]*i[4]+t[3]*i[5]+t[5];return e[0]=n,e[1]=o,e[2]=r,e[3]=a,e[4]=s,e[5]=l,e},t.translate=function(e,t,i){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+i[0],e[5]=t[5]+i[1],e},t.rotate=function(e,t,i){var n=t[0],o=t[2],r=t[4],a=t[1],s=t[3],l=t[5],c=Math.sin(i),d=Math.cos(i);return e[0]=n*d+a*c,e[1]=-n*c+a*d,e[2]=o*d+s*c,e[3]=-o*c+d*s,e[4]=d*r+c*l,e[5]=d*l-c*r,e},t.scale=function(e,t,i){var n=i[0],o=i[1];return e[0]=t[0]*n,e[1]=t[1]*o,e[2]=t[2]*n,e[3]=t[3]*o,e[4]=t[4]*n,e[5]=t[5]*o,e},t.invert=function(e,t){var i=t[0],n=t[2],o=t[4],r=t[1],a=t[3],s=t[5],l=i*a-r*n;return l?(l=1/l,e[0]=a*l,e[1]=-r*l,e[2]=-n*l,e[3]=i*l,e[4]=(n*s-a*o)*l,e[5]=(r*o-i*s)*l,e):null},t.clone=function(e){var t=n();return r(t,e),t}},58265:function(e){function t(e,t,i,n){var o=t+1;if(o===i)return 1;if(0>n(e[o++],e[t])){for(;o<i&&0>n(e[o],e[o-1]);)o++;var r=e,a=t,s=o;for(s--;a<s;){var l=r[a];r[a++]=r[s],r[s--]=l}}else for(;o<i&&n(e[o],e[o-1])>=0;)o++;return o-t}function i(e,t,i,n,o){for(n===t&&n++;n<i;n++){for(var r,a=e[n],s=t,l=n;s<l;)0>o(a,e[r=s+l>>>1])?l=r:s=r+1;var c=n-s;switch(c){case 3:e[s+3]=e[s+2];case 2:e[s+2]=e[s+1];case 1:e[s+1]=e[s];break;default:for(;c>0;)e[s+c]=e[s+c-1],c--}e[s]=a}}function n(e,t,i,n,o,r){var a=0,s=0,l=1;if(r(e,t[i+o])>0){for(s=n-o;l<s&&r(e,t[i+o+l])>0;)a=l,(l=(l<<1)+1)<=0&&(l=s);l>s&&(l=s),a+=o,l+=o}else{for(s=o+1;l<s&&0>=r(e,t[i+o-l]);)a=l,(l=(l<<1)+1)<=0&&(l=s);l>s&&(l=s);var c=a;a=o-l,l=o-c}for(a++;a<l;){var d=a+(l-a>>>1);r(e,t[i+d])>0?a=d+1:l=d}return l}function o(e,t,i,n,o,r){var a=0,s=0,l=1;if(0>r(e,t[i+o])){for(s=o+1;l<s&&0>r(e,t[i+o-l]);)a=l,(l=(l<<1)+1)<=0&&(l=s);l>s&&(l=s);var c=a;a=o-l,l=o-c}else{for(s=n-o;l<s&&r(e,t[i+o+l])>=0;)a=l,(l=(l<<1)+1)<=0&&(l=s);l>s&&(l=s),a+=o,l+=o}for(a++;a<l;){var d=a+(l-a>>>1);0>r(e,t[i+d])?l=d:a=d+1}return l}function r(e,t){var i,r,a=7,s=0,l=0;e.length;var c=[];function d(s){var d=i[s],u=r[s],h=i[s+1],p=r[s+1];r[s]=u+p,s===l-3&&(i[s+1]=i[s+2],r[s+1]=r[s+2]),l--;var f=o(e[h],e,d,u,0,t);d+=f,0!=(u-=f)&&0!==(p=n(e[d+u-1],e,h,p,p-1,t))&&(u<=p?function(i,r,s,l){var d,u,h,p=0;for(p=0;p<r;p++)c[p]=e[i+p];var f=0,g=s,m=i;if(e[m++]=e[g++],0==--l){for(p=0;p<r;p++)e[m+p]=c[f+p];return}if(1===r){for(p=0;p<l;p++)e[m+p]=e[g+p];e[m+l]=c[f];return}for(var v=a;;){d=0,u=0,h=!1;do if(0>t(e[g],c[f])){if(e[m++]=e[g++],u++,d=0,0==--l){h=!0;break}}else if(e[m++]=c[f++],d++,u=0,1==--r){h=!0;break}while((d|u)<v);if(h)break;do{if(0!==(d=o(e[g],c,f,r,0,t))){for(p=0;p<d;p++)e[m+p]=c[f+p];if(m+=d,f+=d,(r-=d)<=1){h=!0;break}}if(e[m++]=e[g++],0==--l){h=!0;break}if(0!==(u=n(c[f],e,g,l,0,t))){for(p=0;p<u;p++)e[m+p]=e[g+p];if(m+=u,g+=u,0==(l-=u)){h=!0;break}}if(e[m++]=c[f++],1==--r){h=!0;break}v--}while(d>=7||u>=7);if(h)break;v<0&&(v=0),v+=2}if((a=v)<1&&(a=1),1===r){for(p=0;p<l;p++)e[m+p]=e[g+p];e[m+l]=c[f]}else if(0===r)throw Error();else for(p=0;p<r;p++)e[m+p]=c[f+p]}(d,u,h,p):function(i,r,s,l){var d=0;for(d=0;d<l;d++)c[d]=e[s+d];var u=i+r-1,h=l-1,p=s+l-1,f=0,g=0;if(e[p--]=e[u--],0==--r){for(d=0,f=p-(l-1);d<l;d++)e[f+d]=c[d];return}if(1===l){for(p-=r,u-=r,g=p+1,f=u+1,d=r-1;d>=0;d--)e[g+d]=e[f+d];e[p]=c[h];return}for(var m=a;;){var v=0,b=0,y=!1;do if(0>t(c[h],e[u])){if(e[p--]=e[u--],v++,b=0,0==--r){y=!0;break}}else if(e[p--]=c[h--],b++,v=0,1==--l){y=!0;break}while((v|b)<m);if(y)break;do{if(0!=(v=r-o(c[h],e,i,r,r-1,t))){for(p-=v,u-=v,r-=v,g=p+1,f=u+1,d=v-1;d>=0;d--)e[g+d]=e[f+d];if(0===r){y=!0;break}}if(e[p--]=c[h--],1==--l){y=!0;break}if(0!=(b=l-n(e[u],c,0,l,l-1,t))){for(p-=b,h-=b,l-=b,g=p+1,f=h+1,d=0;d<b;d++)e[g+d]=c[f+d];if(l<=1){y=!0;break}}if(e[p--]=e[u--],0==--r){y=!0;break}m--}while(v>=7||b>=7);if(y)break;m<0&&(m=0),m+=2}if((a=m)<1&&(a=1),1===l){for(p-=r,u-=r,g=p+1,f=u+1,d=r-1;d>=0;d--)e[g+d]=e[f+d];e[p]=c[h]}else if(0===l)throw Error();else for(d=0,f=p-(l-1);d<l;d++)e[f+d]=c[d]}(d,u,h,p))}i=[],r=[],this.mergeRuns=function(){for(;l>1;){var e=l-2;if(e>=1&&r[e-1]<=r[e]+r[e+1]||e>=2&&r[e-2]<=r[e]+r[e-1])r[e-1]<r[e+1]&&e--;else if(r[e]>r[e+1])break;d(e)}},this.forceMergeRuns=function(){for(;l>1;){var e=l-2;e>0&&r[e-1]<r[e+1]&&e--,d(e)}},this.pushRun=function(e,t){i[l]=e,r[l]=t,l+=1}}e.exports=function(e,n,o,a){o||(o=0),a||(a=e.length);var s=a-o;if(!(s<2)){var l=0;if(s<32){l=t(e,o,a,n),i(e,o,a,o+l,n);return}var c=new r(e,n),d=function(e){for(var t=0;e>=32;)t|=1&e,e>>=1;return e+t}(s);do{if((l=t(e,o,a,n))<d){var u=s;u>d&&(u=d),i(e,o,o+u,o+l,n),l=u}c.pushRun(o,l),c.mergeRuns(),s-=l,o+=l}while(0!==s);c.forceMergeRuns()}}},66023:function(e,t){var i,n={"[object Function]":1,"[object RegExp]":1,"[object Date]":1,"[object Error]":1,"[object CanvasGradient]":1,"[object CanvasPattern]":1,"[object Image]":1,"[object Canvas]":1},o={"[object Int8Array]":1,"[object Uint8Array]":1,"[object Uint8ClampedArray]":1,"[object Int16Array]":1,"[object Uint16Array]":1,"[object Int32Array]":1,"[object Uint32Array]":1,"[object Float32Array]":1,"[object Float64Array]":1},r=Object.prototype.toString,a=Array.prototype,s=a.forEach,l=a.filter,c=a.slice,d=a.map,u=a.reduce,h={};function p(e){if(null==e||"object"!=typeof e)return e;var t=e,i=r.call(e);if("[object Array]"===i){if(!e[S]){t=[];for(var a=0,s=e.length;a<s;a++)t[a]=p(e[a])}}else if(o[i]){if(!e[S]){var l=e.constructor;if(e.constructor.from)t=l.from(e);else{t=new l(e.length);for(var a=0,s=e.length;a<s;a++)t[a]=p(e[a])}}}else if(!n[i]&&!e[S]&&!x(e))for(var c in t={},e)e.hasOwnProperty(c)&&(t[c]=p(e[c]));return t}function f(e,t,i){if(!w(t)||!w(e))return i?p(t):e;for(var n in t)if(t.hasOwnProperty(n)){var o=e[n],r=t[n];!(w(r)&&w(o))||y(r)||y(o)||x(r)||x(o)||_(r)||_(o)||r[S]||o[S]?!i&&n in e||(e[n]=p(t[n],!0)):f(o,r,i)}return e}function g(e,t,i){for(var n in t)t.hasOwnProperty(n)&&(i?null!=t[n]:null==e[n])&&(e[n]=t[n]);return e}var m=function(){return h.createCanvas()};function v(e,t,i){if(e&&t)if(e.forEach&&e.forEach===s)e.forEach(t,i);else if(e.length===+e.length)for(var n=0,o=e.length;n<o;n++)t.call(i,e[n],n,e);else for(var r in e)e.hasOwnProperty(r)&&t.call(i,e[r],r,e)}function b(e,t){var i=c.call(arguments,2);return function(){return e.apply(t,i.concat(c.call(arguments)))}}function y(e){return"[object Array]"===r.call(e)}function w(e){var t=typeof e;return"function"===t||!!e&&"object"===t}function _(e){return!!n[r.call(e)]}function x(e){return"object"==typeof e&&"number"==typeof e.nodeType&&"object"==typeof e.ownerDocument}h.createCanvas=function(){return document.createElement("canvas")};var S="__ec_primitive__";function C(e){var t=y(e);this.data={};var i=this;function n(e,n){t?i.set(e,n):i.set(n,e)}e instanceof C?e.each(n):e&&v(e,n)}C.prototype={constructor:C,get:function(e){return this.data.hasOwnProperty(e)?this.data[e]:null},set:function(e,t){return this.data[e]=t},each:function(e,t){for(var i in void 0!==t&&(e=b(e,t)),this.data)this.data.hasOwnProperty(i)&&e(this.data[i],i)},removeKey:function(e){delete this.data[e]}},t.$override=function(e,t){"createCanvas"===e&&(i=null),h[e]=t},t.clone=p,t.merge=f,t.mergeAll=function(e,t){for(var i=e[0],n=1,o=e.length;n<o;n++)i=f(i,e[n],t);return i},t.extend=function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i]);return e},t.defaults=g,t.createCanvas=m,t.getContext=function(){return i||(i=m().getContext("2d")),i},t.indexOf=function(e,t){if(e){if(e.indexOf)return e.indexOf(t);for(var i=0,n=e.length;i<n;i++)if(e[i]===t)return i}return -1},t.inherits=function(e,t){var i=e.prototype;function n(){}for(var o in n.prototype=t.prototype,e.prototype=new n,i)e.prototype[o]=i[o];e.prototype.constructor=e,e.superClass=t},t.mixin=function(e,t,i){g(e="prototype"in e?e.prototype:e,t="prototype"in t?t.prototype:t,i)},t.isArrayLike=function(e){if(e)return"string"!=typeof e&&"number"==typeof e.length},t.each=v,t.map=function(e,t,i){if(e&&t)if(e.map&&e.map===d)return e.map(t,i);else{for(var n=[],o=0,r=e.length;o<r;o++)n.push(t.call(i,e[o],o,e));return n}},t.reduce=function(e,t,i,n){if(e&&t)if(e.reduce&&e.reduce===u)return e.reduce(t,i,n);else{for(var o=0,r=e.length;o<r;o++)i=t.call(n,i,e[o],o,e);return i}},t.filter=function(e,t,i){if(e&&t)if(e.filter&&e.filter===l)return e.filter(t,i);else{for(var n=[],o=0,r=e.length;o<r;o++)t.call(i,e[o],o,e)&&n.push(e[o]);return n}},t.find=function(e,t,i){if(e&&t){for(var n=0,o=e.length;n<o;n++)if(t.call(i,e[n],n,e))return e[n]}},t.bind=b,t.curry=function(e){var t=c.call(arguments,1);return function(){return e.apply(this,t.concat(c.call(arguments)))}},t.isArray=y,t.isFunction=function(e){return"function"==typeof e},t.isString=function(e){return"[object String]"===r.call(e)},t.isObject=w,t.isBuiltInObject=_,t.isTypedArray=function(e){return!!o[r.call(e)]},t.isDom=x,t.eqNaN=function(e){return e!=e},t.retrieve=function(e){for(var t=0,i=arguments.length;t<i;t++)if(null!=arguments[t])return arguments[t]},t.retrieve2=function(e,t){return null!=e?e:t},t.retrieve3=function(e,t,i){return null!=e?e:null!=t?t:i},t.slice=function(){return Function.call.apply(c,arguments)},t.normalizeCssArray=function(e){if("number"==typeof e)return[e,e,e,e];var t=e.length;return 2===t?[e[0],e[1],e[0],e[1]]:3===t?[e[0],e[1],e[2],e[1]]:e},t.assert=function(e,t){if(!e)throw Error(t)},t.trim=function(e){return null==e?null:"function"==typeof e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")},t.setAsPrimitive=function(e){e[S]=!0},t.isPrimitive=function(e){return e[S]},t.createHashMap=function(e){return new C(e)},t.concatArray=function(e,t){for(var i=new e.constructor(e.length+t.length),n=0;n<e.length;n++)i[n]=e[n];var o=e.length;for(n=0;n<t.length;n++)i[n+o]=t[n];return i},t.noop=function(){}},3265:function(e,t){var i="undefined"==typeof Float32Array?Array:Float32Array;function n(e){return Math.sqrt(o(e))}function o(e){return e[0]*e[0]+e[1]*e[1]}function r(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}function a(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}t.create=function(e,t){var n=new i(2);return null==e&&(e=0),null==t&&(t=0),n[0]=e,n[1]=t,n},t.copy=function(e,t){return e[0]=t[0],e[1]=t[1],e},t.clone=function(e){var t=new i(2);return t[0]=e[0],t[1]=e[1],t},t.set=function(e,t,i){return e[0]=t,e[1]=i,e},t.add=function(e,t,i){return e[0]=t[0]+i[0],e[1]=t[1]+i[1],e},t.scaleAndAdd=function(e,t,i,n){return e[0]=t[0]+i[0]*n,e[1]=t[1]+i[1]*n,e},t.sub=function(e,t,i){return e[0]=t[0]-i[0],e[1]=t[1]-i[1],e},t.len=n,t.length=n,t.lenSquare=o,t.lengthSquare=o,t.mul=function(e,t,i){return e[0]=t[0]*i[0],e[1]=t[1]*i[1],e},t.div=function(e,t,i){return e[0]=t[0]/i[0],e[1]=t[1]/i[1],e},t.dot=function(e,t){return e[0]*t[0]+e[1]*t[1]},t.scale=function(e,t,i){return e[0]=t[0]*i,e[1]=t[1]*i,e},t.normalize=function(e,t){var i=n(t);return 0===i?(e[0]=0,e[1]=0):(e[0]=t[0]/i,e[1]=t[1]/i),e},t.distance=r,t.dist=r,t.distanceSquare=a,t.distSquare=a,t.negate=function(e,t){return e[0]=-t[0],e[1]=-t[1],e},t.lerp=function(e,t,i,n){return e[0]=t[0]+n*(i[0]-t[0]),e[1]=t[1]+n*(i[1]-t[1]),e},t.applyTransform=function(e,t,i){var n=t[0],o=t[1];return e[0]=i[0]*n+i[2]*o+i[4],e[1]=i[1]*n+i[3]*o+i[5],e},t.min=function(e,t,i){return e[0]=Math.min(t[0],i[0]),e[1]=Math.min(t[1],i[1]),e},t.max=function(e,t,i){return e[0]=Math.max(t[0],i[0]),e[1]=Math.max(t[1],i[1]),e}},98158:function(e,t,i){var n=i(3006),o=n.addEventListener,r=n.removeEventListener,a=n.normalizeEvent,s=i(66023),l=i(56177),c=i(57674),d=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],u=["touchstart","touchend","touchmove"],h={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},p=s.map(d,function(e){var t=e.replace("mouse","pointer");return h[t]?t:e});function f(e){return"mousewheel"===e&&c.browser.firefox?"DOMMouseScroll":e}function g(e){e._touching=!0,clearTimeout(e._touchTimer),e._touchTimer=setTimeout(function(){e._touching=!1},700)}var m={mousemove:function(e){e=a(this.dom,e),this.trigger("mousemove",e)},mouseout:function(e){var t=(e=a(this.dom,e)).toElement||e.relatedTarget;if(t!==this.dom)for(;t&&9!==t.nodeType;){if(t===this.dom)return;t=t.parentNode}this.trigger("mouseout",e)},touchstart:function(e){(e=a(this.dom,e)).zrByTouch=!0,this._lastTouchMoment=new Date,this.handler.processGesture(this,e,"start"),m.mousemove.call(this,e),m.mousedown.call(this,e),g(this)},touchmove:function(e){(e=a(this.dom,e)).zrByTouch=!0,this.handler.processGesture(this,e,"change"),m.mousemove.call(this,e),g(this)},touchend:function(e){(e=a(this.dom,e)).zrByTouch=!0,this.handler.processGesture(this,e,"end"),m.mouseup.call(this,e),+new Date-this._lastTouchMoment<300&&m.click.call(this,e),g(this)},pointerdown:function(e){m.mousedown.call(this,e)},pointermove:function(e){v(e)||m.mousemove.call(this,e)},pointerup:function(e){m.mouseup.call(this,e)},pointerout:function(e){v(e)||m.mouseout.call(this,e)}};function v(e){var t=e.pointerType;return"pen"===t||"touch"===t}function b(e){var t;function i(t,i){s.each(t,function(t){o(e,f(t),i._handlers[t])},i)}l.call(this),this.dom=e,this._touching=!1,this._touchTimer,this._handlers={},t=this,s.each(u,function(e){t._handlers[e]=s.bind(m[e],t)}),s.each(p,function(e){t._handlers[e]=s.bind(m[e],t)}),s.each(d,function(e){var i,n;t._handlers[e]=(i=m[e],n=t,function(){if(!n._touching)return i.apply(n,arguments)})}),c.pointerEventsSupported?i(p,this):(c.touchEventsSupported&&i(u,this),i(d,this))}s.each(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(e){m[e]=function(t){t=a(this.dom,t),this.trigger(e,t)}});var y=b.prototype;y.dispose=function(){for(var e=d.concat(u),t=0;t<e.length;t++){var i=e[t];r(this.dom,f(i),this._handlers[i])}},y.setCursor=function(e){this.dom.style&&(this.dom.style.cursor=e||"default")},s.mixin(b,l),e.exports=b},93549:function(e,t,i){var n=i(87205);e.exports=n.extend({type:"compound",shape:{paths:null},_updatePathDirty:function(){for(var e=this.__dirtyPath,t=this.shape.paths,i=0;i<t.length;i++)e=e||t[i].__dirtyPath;this.__dirtyPath=e,this.__dirty=this.__dirty||e},beforeBrush:function(){this._updatePathDirty();for(var e=this.shape.paths||[],t=this.getGlobalScale(),i=0;i<e.length;i++)e[i].path||e[i].createPathProxy(),e[i].path.setScale(t[0],t[1])},buildPath:function(e,t){for(var i=t.paths||[],n=0;n<i.length;n++)i[n].buildPath(e,i[n].shape,!0)},afterBrush:function(){for(var e=this.shape.paths||[],t=0;t<e.length;t++)e[t].__dirtyPath=!1},getBoundingRect:function(){return this._updatePathDirty(),n.prototype.getBoundingRect.call(this)}})},85553:function(e,t,i){var n=i(66023),o=i(77157),r=i(50329),a=i(29695);function s(e){for(var t in e=e||{},r.call(this,e),e)e.hasOwnProperty(t)&&"style"!==t&&(this[t]=e[t]);this.style=new o(e.style,this),this._rect=null,this.__clipPaths=[]}s.prototype={constructor:s,type:"displayable",__dirty:!0,invisible:!1,z:0,z2:0,zlevel:0,draggable:!1,dragging:!1,silent:!1,culling:!1,cursor:"pointer",rectHover:!1,progressive:!1,incremental:!1,globalScaleRatio:1,beforeBrush:function(e){},afterBrush:function(e){},brush:function(e,t){},getBoundingRect:function(){},contain:function(e,t){return this.rectContain(e,t)},traverse:function(e,t){e.call(t,this)},rectContain:function(e,t){var i=this.transformCoordToLocal(e,t);return this.getBoundingRect().contain(i[0],i[1])},dirty:function(){this.__dirty=this.__dirtyText=!0,this._rect=null,this.__zr&&this.__zr.refresh()},animateStyle:function(e){return this.animate("style",e)},attrKV:function(e,t){"style"!==e?r.prototype.attrKV.call(this,e,t):this.style.set(t)},setStyle:function(e,t){return this.style.set(e,t),this.dirty(!1),this},useStyle:function(e){return this.style=new o(e,this),this.dirty(!1),this}},n.inherits(s,r),n.mixin(s,a),e.exports=s},47580:function(e){var t=function(e){this.colorStops=e||[]};t.prototype={constructor:t,addColorStop:function(e,t){this.colorStops.push({offset:e,color:t})}},e.exports=t},52728:function(e,t,i){var n=i(85553),o=i(71497),r=i(66023),a=i(21715);function s(e){n.call(this,e)}s.prototype={constructor:s,type:"image",brush:function(e,t){var i=this.style,n=i.image;i.bind(e,this,t);var o=this._image=a.createOrUpdateImage(n,this._image,this,this.onload);if(o&&a.isImageReady(o)){var r=i.x||0,s=i.y||0,l=i.width,c=i.height,d=o.width/o.height;if(null==l&&null!=c?l=c*d:null==c&&null!=l?c=l/d:null==l&&null==c&&(l=o.width,c=o.height),this.setTransform(e),i.sWidth&&i.sHeight){var u=i.sx||0,h=i.sy||0;e.drawImage(o,u,h,i.sWidth,i.sHeight,r,s,l,c)}else if(i.sx&&i.sy){var u=i.sx,h=i.sy,p=l-u,f=c-h;e.drawImage(o,u,h,p,f,r,s,l,c)}else e.drawImage(o,r,s,l,c);null!=i.text&&(this.restoreTransform(e),this.drawRectText(e,this.getBoundingRect()))}},getBoundingRect:function(){var e=this.style;return this._rect||(this._rect=new o(e.x||0,e.y||0,e.width||0,e.height||0)),this._rect}},r.inherits(s,n),e.exports=s},55117:function(e,t,i){var n=i(66023).inherits,o=i(85553),r=i(71497);function a(e){o.call(this,e),this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.notClear=!0}a.prototype.incremental=!0,a.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.dirty(),this.notClear=!1},a.prototype.addDisplayable=function(e,t){t?this._temporaryDisplayables.push(e):this._displayables.push(e),this.dirty()},a.prototype.addDisplayables=function(e,t){t=t||!1;for(var i=0;i<e.length;i++)this.addDisplayable(e[i],t)},a.prototype.eachPendingDisplayable=function(e){for(var t=this._cursor;t<this._displayables.length;t++)e&&e(this._displayables[t]);for(var t=0;t<this._temporaryDisplayables.length;t++)e&&e(this._temporaryDisplayables[t])},a.prototype.update=function(){this.updateTransform();for(var e=this._cursor;e<this._displayables.length;e++){var t=this._displayables[e];t.parent=this,t.update(),t.parent=null}for(var e=0;e<this._temporaryDisplayables.length;e++){var t=this._temporaryDisplayables[e];t.parent=this,t.update(),t.parent=null}},a.prototype.brush=function(e,t){for(var i=this._cursor;i<this._displayables.length;i++){var n=this._displayables[i];n.beforeBrush&&n.beforeBrush(e),n.brush(e,i===this._cursor?null:this._displayables[i-1]),n.afterBrush&&n.afterBrush(e)}this._cursor=i;for(var i=0;i<this._temporaryDisplayables.length;i++){var n=this._temporaryDisplayables[i];n.beforeBrush&&n.beforeBrush(e),n.brush(e,0===i?null:this._temporaryDisplayables[i-1]),n.afterBrush&&n.afterBrush(e)}this._temporaryDisplayables=[],this.notClear=!0};var s=[];a.prototype.getBoundingRect=function(){if(!this._rect){for(var e=new r(1/0,1/0,-1/0,-1/0),t=0;t<this._displayables.length;t++){var i=this._displayables[t],n=i.getBoundingRect().clone();i.needLocalTransform()&&n.applyTransform(i.getLocalTransform(s)),e.union(n)}this._rect=e}return this._rect},a.prototype.contain=function(e,t){var i=this.transformCoordToLocal(e,t);if(this.getBoundingRect().contain(i[0],i[1])){for(var n=0;n<this._displayables.length;n++)if(this._displayables[n].contain(e,t))return!0}return!1},n(a,o),e.exports=a},53429:function(e,t,i){var n=i(66023),o=i(47580),r=function(e,t,i,n,r,a){this.x=null==e?0:e,this.y=null==t?0:t,this.x2=null==i?1:i,this.y2=null==n?0:n,this.type="linear",this.global=a||!1,o.call(this,r)};r.prototype={constructor:r},n.inherits(r,o),e.exports=r},87205:function(e,t,i){var n=i(85553),o=i(66023),r=i(12057),a=i(83212),s=i(51501).prototype.getCanvasPattern,l=Math.abs,c=new r(!0);function d(e){n.call(this,e),this.path=null}d.prototype={constructor:d,type:"path",__dirtyPath:!0,strokeContainThreshold:5,subPixelOptimize:!1,brush:function(e,t){var i,n=this.style,o=this.path||c,r=n.hasStroke(),a=n.hasFill(),l=n.fill,d=n.stroke,u=a&&!!l.colorStops,h=r&&!!d.colorStops,p=a&&!!l.image,f=r&&!!d.image;n.bind(e,this,t),this.setTransform(e),this.__dirty&&(u&&(i=i||this.getBoundingRect(),this._fillGradient=n.getGradient(e,l,i)),h&&(i=i||this.getBoundingRect(),this._strokeGradient=n.getGradient(e,d,i))),u?e.fillStyle=this._fillGradient:p&&(e.fillStyle=s.call(l,e)),h?e.strokeStyle=this._strokeGradient:f&&(e.strokeStyle=s.call(d,e));var g=n.lineDash,m=n.lineDashOffset,v=!!e.setLineDash,b=this.getGlobalScale();if(o.setScale(b[0],b[1]),this.__dirtyPath||g&&!v&&r?(o.beginPath(e),g&&!v&&(o.setLineDash(g),o.setLineDashOffset(m)),this.buildPath(o,this.shape,!1),this.path&&(this.__dirtyPath=!1)):(e.beginPath(),this.path.rebuildPath(e)),a)if(null!=n.fillOpacity){var y=e.globalAlpha;e.globalAlpha=n.fillOpacity*n.opacity,o.fill(e),e.globalAlpha=y}else o.fill(e);if(g&&v&&(e.setLineDash(g),e.lineDashOffset=m),r)if(null!=n.strokeOpacity){var y=e.globalAlpha;e.globalAlpha=n.strokeOpacity*n.opacity,o.stroke(e),e.globalAlpha=y}else o.stroke(e);g&&v&&e.setLineDash([]),null!=n.text&&(this.restoreTransform(e),this.drawRectText(e,this.getBoundingRect()))},buildPath:function(e,t,i){},createPathProxy:function(){this.path=new r},getBoundingRect:function(){var e=this._rect,t=this.style,i=!e;if(i){var n=this.path;n||(n=this.path=new r),this.__dirtyPath&&(n.beginPath(),this.buildPath(n,this.shape,!1)),e=n.getBoundingRect()}if(this._rect=e,t.hasStroke()){var o=this._rectWithStroke||(this._rectWithStroke=e.clone());if(this.__dirty||i){o.copy(e);var a=t.lineWidth,s=t.strokeNoScale?this.getLineScale():1;t.hasFill()||(a=Math.max(a,this.strokeContainThreshold||4)),s>1e-10&&(o.width+=a/s,o.height+=a/s,o.x-=a/s/2,o.y-=a/s/2)}return o}return e},contain:function(e,t){var i=this.transformCoordToLocal(e,t),n=this.getBoundingRect(),o=this.style;if(e=i[0],t=i[1],n.contain(e,t)){var r=this.path.data;if(o.hasStroke()){var s=o.lineWidth,l=o.strokeNoScale?this.getLineScale():1;if(l>1e-10&&(o.hasFill()||(s=Math.max(s,this.strokeContainThreshold)),a.containStroke(r,s/l,e,t)))return!0}if(o.hasFill())return a.contain(r,e,t)}return!1},dirty:function(e){null==e&&(e=!0),e&&(this.__dirtyPath=e,this._rect=null),this.__dirty=this.__dirtyText=!0,this.__zr&&this.__zr.refresh(),this.__clipTarget&&this.__clipTarget.dirty()},animateShape:function(e){return this.animate("shape",e)},attrKV:function(e,t){"shape"===e?(this.setShape(t),this.__dirtyPath=!0,this._rect=null):n.prototype.attrKV.call(this,e,t)},setShape:function(e,t){var i=this.shape;if(i){if(o.isObject(e))for(var n in e)e.hasOwnProperty(n)&&(i[n]=e[n]);else i[e]=t;this.dirty(!0)}return this},getLineScale:function(){var e=this.transform;return e&&l(e[0]-1)>1e-10&&l(e[3]-1)>1e-10?Math.sqrt(l(e[0]*e[3]-e[2]*e[1])):1}},d.extend=function(e){var t=function(t){d.call(this,t),e.style&&this.style.extendFrom(e.style,!1);var i=e.shape;if(i){this.shape=this.shape||{};var n=this.shape;for(var o in i)!n.hasOwnProperty(o)&&i.hasOwnProperty(o)&&(n[o]=i[o])}e.init&&e.init.call(this,t)};for(var i in o.inherits(t,d),e)"style"!==i&&"shape"!==i&&(t.prototype[i]=e[i]);return t},o.inherits(d,n),e.exports=d},51501:function(e){var t=function(e,t){this.image=e,this.repeat=t,this.type="pattern"};t.prototype.getCanvasPattern=function(e){return e.createPattern(this.image,this.repeat||"repeat")},e.exports=t},6963:function(e,t,i){var n=i(66023),o=i(47580),r=function(e,t,i,n,r){this.x=null==e?.5:e,this.y=null==t?.5:t,this.r=null==i?.5:i,this.type="radial",this.global=r||!1,o.call(this,n)};r.prototype={constructor:r},n.inherits(r,o),e.exports=r},77157:function(e,t,i){var n=i(34793),o=i(11677).ContextCachedBy,r=[["shadowBlur",0],["shadowOffsetX",0],["shadowOffsetY",0],["shadowColor","#000"],["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]],a=function(e){this.extendFrom(e,!1)};a.prototype={constructor:a,fill:"#000",stroke:null,opacity:1,fillOpacity:null,strokeOpacity:null,lineDash:null,lineDashOffset:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,lineWidth:1,strokeNoScale:!1,text:null,font:null,textFont:null,fontStyle:null,fontWeight:null,fontSize:null,fontFamily:null,textTag:null,textFill:"#000",textStroke:null,textWidth:null,textHeight:null,textStrokeWidth:0,textLineHeight:null,textPosition:"inside",textRect:null,textOffset:null,textAlign:null,textVerticalAlign:null,textDistance:5,textShadowColor:"transparent",textShadowBlur:0,textShadowOffsetX:0,textShadowOffsetY:0,textBoxShadowColor:"transparent",textBoxShadowBlur:0,textBoxShadowOffsetX:0,textBoxShadowOffsetY:0,transformText:!1,textRotation:0,textOrigin:null,textBackgroundColor:null,textBorderColor:null,textBorderWidth:0,textBorderRadius:0,textPadding:null,rich:null,truncate:null,blend:null,bind:function(e,t,i){var a=i&&i.style,s=!a||e.__attrCachedBy!==o.STYLE_BIND;e.__attrCachedBy=o.STYLE_BIND;for(var l=0;l<r.length;l++){var c=r[l],d=c[0];(s||this[d]!==a[d])&&(e[d]=n(e,d,this[d]||c[1]))}(s||this.fill!==a.fill)&&(e.fillStyle=this.fill),(s||this.stroke!==a.stroke)&&(e.strokeStyle=this.stroke),(s||this.opacity!==a.opacity)&&(e.globalAlpha=null==this.opacity?1:this.opacity),(s||this.blend!==a.blend)&&(e.globalCompositeOperation=this.blend||"source-over"),this.hasStroke()&&(e.lineWidth=this.lineWidth/(this.strokeNoScale&&t&&t.getLineScale?t.getLineScale():1))},hasFill:function(){var e=this.fill;return null!=e&&"none"!==e},hasStroke:function(){var e=this.stroke;return null!=e&&"none"!==e&&this.lineWidth>0},extendFrom:function(e,t){if(e)for(var i in e)e.hasOwnProperty(i)&&(!0===t||(!1===t?!this.hasOwnProperty(i):null!=e[i]))&&(this[i]=e[i])},set:function(e,t){"string"==typeof e?this[e]=t:this.extendFrom(e,!0)},clone:function(){var e=new this.constructor;return e.extendFrom(this,!0),e},getGradient:function(e,t,i){for(var n=("radial"===t.type?function(e,t,i){var n=i.width,o=i.height,r=Math.min(n,o),a=null==t.x?.5:t.x,s=null==t.y?.5:t.y,l=null==t.r?.5:t.r;return t.global||(a=a*n+i.x,s=s*o+i.y,l*=r),e.createRadialGradient(a,s,0,a,s,l)}:function(e,t,i){var n=null==t.x?0:t.x,o=null==t.x2?1:t.x2,r=null==t.y?0:t.y,a=null==t.y2?0:t.y2;return t.global||(n=n*i.width+i.x,o=o*i.width+i.x,r=r*i.height+i.y,a=a*i.height+i.y),n=isNaN(n)?0:n,o=isNaN(o)?1:o,r=isNaN(r)?0:r,a=isNaN(a)?0:a,e.createLinearGradient(n,r,o,a)})(e,t,i),o=t.colorStops,r=0;r<o.length;r++)n.addColorStop(o[r].offset,o[r].color);return n}};for(var s=a.prototype,l=0;l<r.length;l++){var c=r[l];c[0]in s||(s[c[0]]=c[1])}a.getGradient=s.getGradient,e.exports=a},77894:function(e,t,i){var n=i(85553),o=i(66023),r=i(99280),a=i(93258),s=i(11677).ContextCachedBy,l=function(e){n.call(this,e)};l.prototype={constructor:l,type:"text",brush:function(e,t){var i=this.style;this.__dirty&&a.normalizeTextStyle(i,!0),i.fill=i.stroke=i.shadowBlur=i.shadowColor=i.shadowOffsetX=i.shadowOffsetY=null;var n=i.text;if(null!=n&&(n+=""),!a.needDrawText(n,i)){e.__attrCachedBy=s.NONE;return}this.setTransform(e),a.renderText(this,e,n,i,null,t),this.restoreTransform(e)},getBoundingRect:function(){var e=this.style;if(this.__dirty&&a.normalizeTextStyle(e,!0),!this._rect){var t=e.text;null!=t?t+="":t="";var i=r.getBoundingRect(e.text+"",e.font,e.textAlign,e.textVerticalAlign,e.textPadding,e.textLineHeight,e.rich);if(i.x+=e.x||0,i.y+=e.y||0,a.getStroke(e.textStroke,e.textStrokeWidth)){var n=e.textStrokeWidth;i.x-=n/2,i.y-=n/2,i.width+=n,i.height+=n}this._rect=i}return this._rect}},o.inherits(l,n),e.exports=l},11677:function(e,t){t.ContextCachedBy={NONE:0,STYLE_BIND:1,PLAIN_TEXT:2},t.WILL_BE_RESTORED=9},13065:function(e,t,i){var n=i(57674),o=[["shadowBlur",0],["shadowColor","#000"],["shadowOffsetX",0],["shadowOffsetY",0]];e.exports=function(e){return n.browser.ie&&n.browser.version>=11?function(){var t,i=this.__clipPaths,n=this.style;if(i)for(var r=0;r<i.length;r++){var a=i[r],s=a&&a.shape,l=a&&a.type;if(s&&("sector"===l&&s.startAngle===s.endAngle||"rect"===l&&(!s.width||!s.height))){for(var c=0;c<o.length;c++)o[c][2]=n[o[c][0]],n[o[c][0]]=o[c][1];t=!0;break}}if(e.apply(this,arguments),t)for(var c=0;c<o.length;c++)n[o[c][0]]=o[c][2]}:e}},34793:function(e){var t={shadowBlur:1,shadowOffsetX:1,shadowOffsetY:1,textShadowBlur:1,textShadowOffsetX:1,textShadowOffsetY:1,textBoxShadowBlur:1,textBoxShadowOffsetX:1,textBoxShadowOffsetY:1};e.exports=function(e,i,n){return t.hasOwnProperty(i)?n*e.dpr:n}},21715:function(e,t,i){var n=new(i(4186))(50);function o(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<e.pending.length;t++){var i=e.pending[t],n=i.cb;n&&n(this,i.cbPayload),i.hostEl.dirty()}e.pending.length=0}function r(e){return e&&e.width&&e.height}t.findExistImage=function(e){if("string"!=typeof e)return e;var t=n.get(e);return t&&t.image},t.createOrUpdateImage=function(e,t,i,a,s){if(!e)return t;if("string"!=typeof e)return e;if(t&&t.__zrImageSrc===e||!i)return t;var l=n.get(e),c={hostEl:i,cb:a,cbPayload:s};return l?r(t=l.image)||l.pending.push(c):((t=new Image).onload=t.onerror=o,n.put(e,t.__cachedImgObj={image:t,pending:[c]}),t.src=t.__zrImageSrc=e),t},t.isImageReady=r},30846:function(e,t,i){var n=i(73586),o=i(47073);t.buildPath=function(e,t,i){var r=t.points,a=t.smooth;if(r&&r.length>=2){if(a&&"spline"!==a){var s=o(r,a,i,t.smoothConstraint);e.moveTo(r[0][0],r[0][1]);for(var l=r.length,c=0;c<(i?l:l-1);c++){var d=s[2*c],u=s[2*c+1],h=r[(c+1)%l];e.bezierCurveTo(d[0],d[1],u[0],u[1],h[0],h[1])}}else{"spline"===a&&(r=n(r,i)),e.moveTo(r[0][0],r[0][1]);for(var c=1,p=r.length;c<p;c++)e.lineTo(r[c][0],r[c][1])}i&&e.closePath()}}},39094:function(e,t){t.buildPath=function(e,t){var i,n,o,r,a,s=t.x,l=t.y,c=t.width,d=t.height,u=t.r;c<0&&(s+=c,c=-c),d<0&&(l+=d,d=-d),"number"==typeof u?i=n=o=r=u:u instanceof Array?1===u.length?i=n=o=r=u[0]:2===u.length?(i=o=u[0],n=r=u[1]):3===u.length?(i=u[0],n=r=u[1],o=u[2]):(i=u[0],n=u[1],o=u[2],r=u[3]):i=n=o=r=0,i+n>c&&(a=i+n,i*=c/a,n*=c/a),o+r>c&&(a=o+r,o*=c/a,r*=c/a),n+o>d&&(a=n+o,n*=d/a,o*=d/a),i+r>d&&(a=i+r,i*=d/a,r*=d/a),e.moveTo(s+i,l),e.lineTo(s+c-n,l),0!==n&&e.arc(s+c-n,l+n,n,-Math.PI/2,0),e.lineTo(s+c,l+d-o),0!==o&&e.arc(s+c-o,l+d-o,o,0,Math.PI/2),e.lineTo(s+r,l+d),0!==r&&e.arc(s+r,l+d-r,r,Math.PI/2,Math.PI),e.lineTo(s,l+i),0!==i&&e.arc(s+i,l+i,i,Math.PI,1.5*Math.PI)}},47073:function(e,t,i){var n=i(3265),o=n.min,r=n.max,a=n.scale,s=n.distance,l=n.add,c=n.clone,d=n.sub;e.exports=function(e,t,i,n){var u,h,p,f,g=[],m=[],v=[],b=[];if(n){p=[1/0,1/0],f=[-1/0,-1/0];for(var y=0,w=e.length;y<w;y++)o(p,p,e[y]),r(f,f,e[y]);o(p,p,n[0]),r(f,f,n[1])}for(var y=0,w=e.length;y<w;y++){var _=e[y];if(i)u=e[y?y-1:w-1],h=e[(y+1)%w];else if(0===y||y===w-1){g.push(c(e[y]));continue}else u=e[y-1],h=e[y+1];d(m,h,u),a(m,m,t);var x=s(_,u),S=s(_,h),C=x+S;0!==C&&(x/=C,S/=C),a(v,m,-x),a(b,m,S);var k=l([],_,v),I=l([],_,b);n&&(r(k,k,p),o(k,k,f),r(I,I,p),o(I,I,f)),g.push(k),g.push(I)}return i&&g.push(g.shift()),g}},73586:function(e,t,i){var n=i(3265).distance;function o(e,t,i,n,o,r,a){var s=(i-e)*.5,l=(n-t)*.5;return(2*(t-i)+s+l)*a+(-3*(t-i)-2*s-l)*r+s*o+t}e.exports=function(e,t){for(var i=e.length,r=[],a=0,s=1;s<i;s++)a+=n(e[s-1],e[s]);var l=a/2;l=l<i?i:l;for(var s=0;s<l;s++){var c,d,u,h=s/(l-1)*(t?i:i-1),p=Math.floor(h),f=h-p,g=e[p%i];t?(c=e[(p-1+i)%i],d=e[(p+1)%i],u=e[(p+2)%i]):(c=e[0===p?p:p-1],d=e[p>i-2?i-1:p+1],u=e[p>i-3?i-1:p+2]);var m=f*f,v=f*m;r.push([o(c[0],g[0],d[0],u[0],f,m,v),o(c[1],g[1],d[1],u[1],f,m,v)])}return r}},39950:function(e,t){var i=Math.round;function n(e,t,n){var o=i(2*e);return(o+i(t))%2==0?o/2:(o+(n?1:-1))/2}t.subPixelOptimizeLine=function(e,t,o){var r=o&&o.lineWidth;if(t&&r){var a=t.x1,s=t.x2,l=t.y1,c=t.y2;i(2*a)===i(2*s)?e.x1=e.x2=n(a,r,!0):(e.x1=a,e.x2=s),i(2*l)===i(2*c)?e.y1=e.y2=n(l,r,!0):(e.y1=l,e.y2=c)}},t.subPixelOptimizeRect=function(e,t,i){var o=i&&i.lineWidth;if(t&&o){var r=t.x,a=t.y,s=t.width,l=t.height;e.x=n(r,o,!0),e.y=n(a,o,!0),e.width=Math.max(n(r+s,o,!1)-e.x,+(0!==s)),e.height=Math.max(n(a+l,o,!1)-e.y,+(0!==l))}},t.subPixelOptimize=n},93258:function(e,t,i){var n=i(66023),o=n.retrieve2,r=n.retrieve3,a=n.each,s=n.normalizeCssArray,l=n.isString,c=n.isObject,d=i(99280),u=i(39094),h=i(21715),p=i(34793),f=i(11677),g=f.ContextCachedBy,m=f.WILL_BE_RESTORED,v=d.DEFAULT_FONT,b={left:1,right:1,center:1},y={top:1,bottom:1,middle:1},w=[["textShadowBlur","shadowBlur",0],["textShadowOffsetX","shadowOffsetX",0],["textShadowOffsetY","shadowOffsetY",0],["textShadowColor","shadowColor","transparent"]];function _(e){if(e){e.font=d.makeFont(e);var t=e.textAlign;"middle"===t&&(t="center"),e.textAlign=null==t||b[t]?t:"left";var i=e.textVerticalAlign||e.textBaseline;"center"===i&&(i="middle"),e.textVerticalAlign=null==i||y[i]?i:"top",e.textPadding&&(e.textPadding=s(e.textPadding))}}function x(e,t,i,n,o){if(i&&t.textRotation){var r=t.textOrigin;"center"===r?(n=i.width/2+i.x,o=i.height/2+i.y):r&&(n=r[0]+i.x,o=r[1]+i.y),e.translate(n,o),e.rotate(-t.textRotation),e.translate(-n,-o)}}function S(e,t,i,n,a,s,l,c){var d=n.rich[i.styleName]||{};d.text=i.text;var u=i.textVerticalAlign,h=s+a/2;"top"===u?h=s+i.height/2:"bottom"===u&&(h=s+a-i.height/2),!i.isLineHolder&&C(d)&&k(e,t,d,"right"===c?l-i.width:"center"===c?l-i.width/2:l,h-i.height/2,i.width,i.height);var p=i.textPadding;p&&(l=O(l,c,p),h-=i.height/2-p[2]-i.textHeight/2),T(t,"shadowBlur",r(d.textShadowBlur,n.textShadowBlur,0)),T(t,"shadowColor",d.textShadowColor||n.textShadowColor||"transparent"),T(t,"shadowOffsetX",r(d.textShadowOffsetX,n.textShadowOffsetX,0)),T(t,"shadowOffsetY",r(d.textShadowOffsetY,n.textShadowOffsetY,0)),T(t,"textAlign",c),T(t,"textBaseline","middle"),T(t,"font",i.font||v);var f=E(d.textStroke||n.textStroke,m),g=R(d.textFill||n.textFill),m=o(d.textStrokeWidth,n.textStrokeWidth);f&&(T(t,"lineWidth",m),T(t,"strokeStyle",f),t.strokeText(i.text,l,h)),g&&(T(t,"fillStyle",g),t.fillText(i.text,l,h))}function C(e){return!!(e.textBackgroundColor||e.textBorderWidth&&e.textBorderColor)}function k(e,t,i,n,o,r,a){var s=i.textBackgroundColor,d=i.textBorderWidth,p=i.textBorderColor,f=l(s);if(T(t,"shadowBlur",i.textBoxShadowBlur||0),T(t,"shadowColor",i.textBoxShadowColor||"transparent"),T(t,"shadowOffsetX",i.textBoxShadowOffsetX||0),T(t,"shadowOffsetY",i.textBoxShadowOffsetY||0),f||d&&p){t.beginPath();var g=i.textBorderRadius;g?u.buildPath(t,{x:n,y:o,width:r,height:a,r:g}):t.rect(n,o,r,a),t.closePath()}if(f)if(T(t,"fillStyle",s),null!=i.fillOpacity){var m=t.globalAlpha;t.globalAlpha=i.fillOpacity*i.opacity,t.fill(),t.globalAlpha=m}else t.fill();else if(c(s)){var v=s.image;(v=h.createOrUpdateImage(v,null,e,I,s))&&h.isImageReady(v)&&t.drawImage(v,n,o,r,a)}if(d&&p)if(T(t,"lineWidth",d),T(t,"strokeStyle",p),null!=i.strokeOpacity){var m=t.globalAlpha;t.globalAlpha=i.strokeOpacity*i.opacity,t.stroke(),t.globalAlpha=m}else t.stroke()}function I(e,t){t.image=e}function A(e,t,i){var n=t.x||0,o=t.y||0,r=t.textAlign,a=t.textVerticalAlign;if(i){var s=t.textPosition;if(s instanceof Array)n=i.x+D(s[0],i.width),o=i.y+D(s[1],i.height);else{var l=d.adjustTextPositionOnRect(s,i,t.textDistance);n=l.x,o=l.y,r=r||l.textAlign,a=a||l.textVerticalAlign}var c=t.textOffset;c&&(n+=c[0],o+=c[1])}return{baseX:n,baseY:o,textAlign:r,textVerticalAlign:a}}function T(e,t,i){return e[t]=p(e,t,i),e[t]}function E(e,t){return null==e||t<=0||"transparent"===e||"none"===e?null:e.image||e.colorStops?"#000":e}function R(e){return null==e||"none"===e?null:e.image||e.colorStops?"#000":e}function D(e,t){return"string"==typeof e?e.lastIndexOf("%")>=0?parseFloat(e)/100*t:parseFloat(e):e}function O(e,t,i){return"right"===t?e-i[1]:"center"===t?e+i[3]/2-i[1]/2:e+i[3]}t.normalizeTextStyle=function(e){return _(e),a(e.rich,_),e},t.renderText=function(e,t,i,n,o,r){var a,s,l,c,u,h;n.rich?(a=e,s=t,l=i,c=n,u=o,r!==m&&(s.__attrCachedBy=g.NONE),(h=a.__textCotentBlock)&&!a.__dirtyText||(h=a.__textCotentBlock=d.parseRichText(l,c)),function(e,t,i,n,o){var r=i.width,a=i.outerWidth,s=i.outerHeight,l=n.textPadding,c=A(s,n,o),u=c.baseX,h=c.baseY,p=c.textAlign,f=c.textVerticalAlign;x(t,n,o,u,h);var g=d.adjustTextX(u,a,p),m=d.adjustTextY(h,s,f),v=g,b=m;l&&(v+=l[3],b+=l[0]);var y=v+r;C(n)&&k(e,t,n,g,m,a,s);for(var w=0;w<i.lines.length;w++){for(var _,I=i.lines[w],T=I.tokens,E=T.length,R=I.lineHeight,D=I.width,O=0,M=v,N=y,P=E-1;O<E&&(!(_=T[O]).textAlign||"left"===_.textAlign);)S(e,t,_,n,R,b,M,"left"),D-=_.width,M+=_.width,O++;for(;P>=0&&"right"===(_=T[P]).textAlign;)S(e,t,_,n,R,b,N,"right"),D-=_.width,N-=_.width,P--;for(M+=(r-(M-v)-(y-N)-D)/2;O<=P;)S(e,t,_=T[O],n,R,b,M+_.width/2,"center"),M+=_.width,O++;b+=R}}(a,s,h,c,u)):function(e,t,i,n,o,r){"use strict";var a,s=C(n),l=!1,c=t.__attrCachedBy===g.PLAIN_TEXT;r!==m?(r&&(a=r.style,l=!s&&c&&a),t.__attrCachedBy=s?g.NONE:g.PLAIN_TEXT):c&&(t.__attrCachedBy=g.NONE);var u=n.font||v;l&&u===(a.font||v)||(t.font=u);var h=e.__computedFont;e.__styleFont!==u&&(e.__styleFont=u,h=e.__computedFont=t.font);var f=n.textPadding,b=n.textLineHeight,y=e.__textCotentBlock;(!y||e.__dirtyText)&&(y=e.__textCotentBlock=d.parsePlainText(i,h,f,b,n.truncate));var _=y.outerHeight,S=y.lines,I=y.lineHeight,T=A(_,n,o),D=T.baseX,M=T.baseY,N=T.textAlign||"left",P=T.textVerticalAlign;x(t,n,o,D,M);var L=d.adjustTextY(M,_,P),B=D,F=L;if(s||f){var V=d.getWidth(i,h);f&&(V+=f[1]+f[3]);var z=d.adjustTextX(D,V,N);s&&k(e,t,n,z,L,V,_),f&&(B=O(D,N,f),F+=f[0])}t.textAlign=N,t.textBaseline="middle",t.globalAlpha=n.opacity||1;for(var H=0;H<w.length;H++){var W=w[H],Y=W[0],U=W[1],G=n[Y];l&&G===a[Y]||(t[U]=p(t,U,G||W[2]))}F+=I/2;var Z=n.textStrokeWidth,j=l?a.textStrokeWidth:null,q=!l||Z!==j,K=!l||q||n.textStroke!==a.textStroke,X=E(n.textStroke,Z),Q=R(n.textFill);if(X&&(q&&(t.lineWidth=Z),K&&(t.strokeStyle=X)),Q&&(!l||n.textFill!==a.textFill)&&(t.fillStyle=Q),1===S.length)X&&t.strokeText(S[0],B,F),Q&&t.fillText(S[0],B,F);else for(var H=0;H<S.length;H++)X&&t.strokeText(S[H],B,F),Q&&t.fillText(S[H],B,F),F+=I}(e,t,i,n,o,r)},t.getStroke=E,t.getFill=R,t.needDrawText=function(e,t){return null!=e&&(e||t.textBackgroundColor||t.textBorderWidth&&t.textBorderColor||t.textPadding)}},29695:function(e,t,i){var n=i(93258),o=i(71497),r=i(11677).WILL_BE_RESTORED,a=new o,s=function(){};s.prototype={constructor:s,drawRectText:function(e,t){var i=this.style;t=i.textRect||t,this.__dirty&&n.normalizeTextStyle(i,!0);var o=i.text;if(null!=o&&(o+=""),n.needDrawText(o,i)){e.save();var s=this.transform;i.transformText?this.setTransform(e):s&&(a.copy(t),a.applyTransform(s),t=a),n.renderText(this,e,o,i,t,r),e.restore()}}},e.exports=s},26072:function(e,t,i){e.exports=i(87205).extend({type:"arc",shape:{cx:0,cy:0,r:0,startAngle:0,endAngle:2*Math.PI,clockwise:!0},style:{stroke:"#000",fill:null},buildPath:function(e,t){var i=t.cx,n=t.cy,o=Math.max(t.r,0),r=t.startAngle,a=t.endAngle,s=t.clockwise,l=Math.cos(r),c=Math.sin(r);e.moveTo(l*o+i,c*o+n),e.arc(i,n,o,r,a,!s)}})},27209:function(e,t,i){var n=i(87205),o=i(3265),r=i(30783),a=r.quadraticSubdivide,s=r.cubicSubdivide,l=r.quadraticAt,c=r.cubicAt,d=r.quadraticDerivativeAt,u=r.cubicDerivativeAt,h=[];function p(e,t,i){var n=e.cpx2,o=e.cpy2;return null===n||null===o?[(i?u:c)(e.x1,e.cpx1,e.cpx2,e.x2,t),(i?u:c)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(i?d:l)(e.x1,e.cpx1,e.x2,t),(i?d:l)(e.y1,e.cpy1,e.y2,t)]}e.exports=n.extend({type:"bezier-curve",shape:{x1:0,y1:0,x2:0,y2:0,cpx1:0,cpy1:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(e,t){var i=t.x1,n=t.y1,o=t.x2,r=t.y2,l=t.cpx1,c=t.cpy1,d=t.cpx2,u=t.cpy2,p=t.percent;0!==p&&(e.moveTo(i,n),null==d||null==u?(p<1&&(a(i,l,o,p,h),l=h[1],o=h[2],a(n,c,r,p,h),c=h[1],r=h[2]),e.quadraticCurveTo(l,c,o,r)):(p<1&&(s(i,l,d,o,p,h),l=h[1],d=h[2],o=h[3],s(n,c,u,r,p,h),c=h[1],u=h[2],r=h[3]),e.bezierCurveTo(l,c,d,u,o,r)))},pointAt:function(e){return p(this.shape,e,!1)},tangentAt:function(e){var t=p(this.shape,e,!0);return o.normalize(t,t)}})},38035:function(e,t,i){e.exports=i(87205).extend({type:"circle",shape:{cx:0,cy:0,r:0},buildPath:function(e,t,i){i&&e.moveTo(t.cx+t.r,t.cy),e.arc(t.cx,t.cy,t.r,0,2*Math.PI,!0)}})},60961:function(e,t,i){e.exports=i(87205).extend({type:"ellipse",shape:{cx:0,cy:0,rx:0,ry:0},buildPath:function(e,t){var i=t.cx,n=t.cy,o=t.rx,r=t.ry,a=.5522848*o,s=.5522848*r;e.moveTo(i-o,n),e.bezierCurveTo(i-o,n-s,i-a,n-r,i,n-r),e.bezierCurveTo(i+a,n-r,i+o,n-s,i+o,n),e.bezierCurveTo(i+o,n+s,i+a,n+r,i,n+r),e.bezierCurveTo(i-a,n+r,i-o,n+s,i-o,n),e.closePath()}})},52949:function(e,t,i){var n=i(87205),o=i(39950).subPixelOptimizeLine,r={};e.exports=n.extend({type:"line",shape:{x1:0,y1:0,x2:0,y2:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(e,t){this.subPixelOptimize?(o(r,t,this.style),i=r.x1,n=r.y1,a=r.x2,s=r.y2):(i=t.x1,n=t.y1,a=t.x2,s=t.y2);var i,n,a,s,l=t.percent;0!==l&&(e.moveTo(i,n),l<1&&(a=i*(1-l)+a*l,s=n*(1-l)+s*l),e.lineTo(a,s))},pointAt:function(e){var t=this.shape;return[t.x1*(1-e)+t.x2*e,t.y1*(1-e)+t.y2*e]}})},11960:function(e,t,i){var n=i(87205),o=i(30846);e.exports=n.extend({type:"polygon",shape:{points:null,smooth:!1,smoothConstraint:null},buildPath:function(e,t){o.buildPath(e,t,!0)}})},35243:function(e,t,i){var n=i(87205),o=i(30846);e.exports=n.extend({type:"polyline",shape:{points:null,smooth:!1,smoothConstraint:null},style:{stroke:"#000",fill:null},buildPath:function(e,t){o.buildPath(e,t,!1)}})},54668:function(e,t,i){var n=i(87205),o=i(39094),r=i(39950).subPixelOptimizeRect,a={};e.exports=n.extend({type:"rect",shape:{r:0,x:0,y:0,width:0,height:0},buildPath:function(e,t){var i,n,s,l;this.subPixelOptimize?(r(a,t,this.style),i=a.x,n=a.y,s=a.width,l=a.height,a.r=t.r,t=a):(i=t.x,n=t.y,s=t.width,l=t.height),t.r?o.buildPath(e,t):e.rect(i,n,s,l),e.closePath()}})},6609:function(e,t,i){e.exports=i(87205).extend({type:"ring",shape:{cx:0,cy:0,r:0,r0:0},buildPath:function(e,t){var i=t.cx,n=t.cy,o=2*Math.PI;e.moveTo(i+t.r,n),e.arc(i,n,t.r,0,o,!1),e.moveTo(i+t.r0,n),e.arc(i,n,t.r0,0,o,!0)}})},10631:function(e,t,i){var n=i(87205),o=i(13065);e.exports=n.extend({type:"sector",shape:{cx:0,cy:0,r0:0,r:0,startAngle:0,endAngle:2*Math.PI,clockwise:!0},brush:o(n.prototype.brush),buildPath:function(e,t){var i=t.cx,n=t.cy,o=Math.max(t.r0||0,0),r=Math.max(t.r,0),a=t.startAngle,s=t.endAngle,l=t.clockwise,c=Math.cos(a),d=Math.sin(a);e.moveTo(c*o+i,d*o+n),e.lineTo(c*r+i,d*r+n),e.arc(i,n,r,a,s,!l),e.lineTo(Math.cos(s)*o+i,Math.sin(s)*o+n),0!==o&&e.arc(i,n,o,s,a,l),e.closePath()}})},54517:function(e,t,i){var n=i(76183),o=i(94627),r=i(66023),a=r.isString,s=r.isFunction,l=r.isObject,c=r.isArrayLike,d=r.indexOf,u=function(){this.animators=[]};function h(e,t,i,n,o,r,d,u){a(n)?(r=o,o=n,n=0):s(o)?(r=o,o="linear",n=0):s(n)?(r=n,n=0):s(i)?(r=i,i=500):i||(i=500),e.stopAnimation(),function e(t,i,n,o,r,a,s){var d={},u=0;for(var h in o)o.hasOwnProperty(h)&&(null!=n[h]?l(o[h])&&!c(o[h])?e(t,i?i+"."+h:h,n[h],o[h],r,a,s):(s?(d[h]=n[h],p(t,i,h,o[h])):d[h]=o[h],u++):null==o[h]||s||p(t,i,h,o[h]));u>0&&t.animate(i,!1).when(null==r?500:r,d).delay(a||0)}(e,"",e,t,i,n,u);var h=e.animators.slice(),f=h.length;function g(){--f||!r||r()}!f&&r&&r();for(var m=0;m<h.length;m++)h[m].done(g).start(o,d)}function p(e,t,i,n){if(t){var o={};o[t]={},o[t][i]=n,e.attr(o)}else e.attr(i,n)}u.prototype={constructor:u,animate:function(e,t){var i,r=!1,a=this,s=this.__zr;if(e){var l=e.split("."),c=a;r="shape"===l[0];for(var u=0,h=l.length;u<h;u++)c&&(c=c[l[u]]);c&&(i=c)}else i=a;if(!i)return void o('Property "'+e+'" is not existed in element '+a.id);var p=a.animators,f=new n(i,t);return f.during(function(e){a.dirty(r)}).done(function(){p.splice(d(p,f),1)}),p.push(f),s&&s.animation.addAnimator(f),f},stopAnimation:function(e){for(var t=this.animators,i=t.length,n=0;n<i;n++)t[n].stop(e);return t.length=0,this},animateTo:function(e,t,i,n,o,r){h(this,e,t,i,n,o,r)},animateFrom:function(e,t,i,n,o,r){h(this,e,t,i,n,o,r,!0)}},e.exports=u},93787:function(e){function t(){this.on("mousedown",this._dragStart,this),this.on("mousemove",this._drag,this),this.on("mouseup",this._dragEnd,this),this.on("globalout",this._dragEnd,this)}function i(e,t){return{target:e,topTarget:t&&t.topTarget}}t.prototype={constructor:t,_dragStart:function(e){var t=e.target;t&&t.draggable&&(this._draggingTarget=t,t.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.dispatchToElement(i(t,e),"dragstart",e.event))},_drag:function(e){var t=this._draggingTarget;if(t){var n=e.offsetX,o=e.offsetY,r=n-this._x,a=o-this._y;this._x=n,this._y=o,t.drift(r,a,e),this.dispatchToElement(i(t,e),"drag",e.event);var s=this.findHover(n,o,t).target,l=this._dropTarget;this._dropTarget=s,t!==s&&(l&&s!==l&&this.dispatchToElement(i(l,e),"dragleave",e.event),s&&s!==l&&this.dispatchToElement(i(s,e),"dragenter",e.event))}},_dragEnd:function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.dispatchToElement(i(t,e),"dragend",e.event),this._dropTarget&&this.dispatchToElement(i(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null}},e.exports=t},56177:function(e){var t=Array.prototype.slice,i=function(e){this._$handlers={},this._$eventProcessor=e};function n(e,t,i,n,o,r){var a,s,l=e._$handlers;if("function"==typeof i&&(o=n,n=i,i=null),!n||!t)return e;a=i,s=e._$eventProcessor,null!=a&&s&&s.normalizeQuery&&(a=s.normalizeQuery(a)),i=a,l[t]||(l[t]=[]);for(var c=0;c<l[t].length;c++)if(l[t][c].h===n)return e;var d={h:n,one:r,query:i,ctx:o||e,callAtLast:n.zrEventfulCallAtLast},u=l[t].length-1,h=l[t][u];return h&&h.callAtLast?l[t].splice(u,0,d):l[t].push(d),e}i.prototype={constructor:i,one:function(e,t,i,o){return n(this,e,t,i,o,!0)},on:function(e,t,i,o){return n(this,e,t,i,o,!1)},isSilent:function(e){var t=this._$handlers;return!t[e]||!t[e].length},off:function(e,t){var i=this._$handlers;if(!e)return this._$handlers={},this;if(t){if(i[e]){for(var n=[],o=0,r=i[e].length;o<r;o++)i[e][o].h!==t&&n.push(i[e][o]);i[e]=n}i[e]&&0===i[e].length&&delete i[e]}else delete i[e];return this},trigger:function(e){var i=this._$handlers[e],n=this._$eventProcessor;if(i){var o=arguments,r=o.length;r>3&&(o=t.call(o,1));for(var a=i.length,s=0;s<a;){var l=i[s];if(n&&n.filter&&null!=l.query&&!n.filter(e,l.query)){s++;continue}switch(r){case 1:l.h.call(l.ctx);break;case 2:l.h.call(l.ctx,o[1]);break;case 3:l.h.call(l.ctx,o[1],o[2]);break;default:l.h.apply(l.ctx,o)}l.one?(i.splice(s,1),a--):s++}}return n&&n.afterTrigger&&n.afterTrigger(e),this},triggerWithContext:function(e){var i=this._$handlers[e],n=this._$eventProcessor;if(i){var o=arguments,r=o.length;r>4&&(o=t.call(o,1,o.length-1));for(var a=o[o.length-1],s=i.length,l=0;l<s;){var c=i[l];if(n&&n.filter&&null!=c.query&&!n.filter(e,c.query)){l++;continue}switch(r){case 1:c.h.call(a);break;case 2:c.h.call(a,o[1]);break;case 3:c.h.call(a,o[1],o[2]);break;default:c.h.apply(a,o)}c.one?(i.splice(l,1),s--):l++}}return n&&n.afterTrigger&&n.afterTrigger(e),this}},e.exports=i},53733:function(e,t,i){var n=i(36653),o=i(3265),r=n.identity;function a(e){return e>5e-5||e<-5e-5}var s=function(e){(e=e||{}).position||(this.position=[0,0]),null==e.rotation&&(this.rotation=0),e.scale||(this.scale=[1,1]),this.origin=this.origin||null},l=s.prototype;l.transform=null,l.needLocalTransform=function(){return a(this.rotation)||a(this.position[0])||a(this.position[1])||a(this.scale[0]-1)||a(this.scale[1]-1)};var c=[];l.updateTransform=function(){var e=this.parent,t=e&&e.transform,i=this.needLocalTransform(),o=this.transform;if(!(i||t)){o&&r(o);return}o=o||n.create(),i?this.getLocalTransform(o):r(o),t&&(i?n.mul(o,e.transform,o):n.copy(o,e.transform)),this.transform=o;var a=this.globalScaleRatio;if(null!=a&&1!==a){this.getGlobalScale(c);var s=c[0]<0?-1:1,l=c[1]<0?-1:1,d=((c[0]-s)*a+s)/c[0]||0,u=((c[1]-l)*a+l)/c[1]||0;o[0]*=d,o[1]*=d,o[2]*=u,o[3]*=u}this.invTransform=this.invTransform||n.create(),n.invert(this.invTransform,o)},l.getLocalTransform=function(e){return s.getLocalTransform(this,e)},l.setTransform=function(e){var t=this.transform,i=e.dpr||1;t?e.setTransform(i*t[0],i*t[1],i*t[2],i*t[3],i*t[4],i*t[5]):e.setTransform(i,0,0,i,0,0)},l.restoreTransform=function(e){var t=e.dpr||1;e.setTransform(t,0,0,t,0,0)};var d=[],u=n.create();l.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],i=e[2]*e[2]+e[3]*e[3],n=this.position,o=this.scale;a(t-1)&&(t=Math.sqrt(t)),a(i-1)&&(i=Math.sqrt(i)),e[0]<0&&(t=-t),e[3]<0&&(i=-i),n[0]=e[4],n[1]=e[5],o[0]=t,o[1]=i,this.rotation=Math.atan2(-e[1]/i,e[0]/t)}},l.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(n.mul(d,e.invTransform,t),t=d);var i=this.origin;i&&(i[0]||i[1])&&(u[4]=i[0],u[5]=i[1],n.mul(d,t,u),d[4]-=i[0],d[5]-=i[1],t=d),this.setLocalTransform(t)}},l.getGlobalScale=function(e){var t=this.transform;return(e=e||[],t)?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1])):(e[0]=1,e[1]=1),e},l.transformCoordToLocal=function(e,t){var i=[e,t],n=this.invTransform;return n&&o.applyTransform(i,i,n),i},l.transformCoordToGlobal=function(e,t){var i=[e,t],n=this.transform;return n&&o.applyTransform(i,i,n),i},s.getLocalTransform=function(e,t){r(t=t||[]);var i=e.origin,o=e.scale||[1,1],a=e.rotation||0,s=e.position||[0,0];return i&&(t[4]-=i[0],t[5]-=i[1]),n.scale(t,t,o),a&&n.rotate(t,t,a),i&&(t[4]+=i[0],t[5]+=i[1]),t[4]+=s[0],t[5]+=s[1],t},e.exports=s},30516:function(e,t,i){var n=i(9471).createElement,o=i(66023),r=i(94627),a=i(87205),s=i(52728),l=i(77894),c=i(35786),d=i(83115),u=i(61719),h=i(73623),p=i(49875),f=p.path,g=p.image,m=p.text;function v(e){return parseInt(e,10)}function b(e,t){return t&&e&&t.parentNode!==e}function y(e,t,i){if(b(e,t)&&i){var n=i.nextSibling;n?e.insertBefore(t,n):e.appendChild(t)}}function w(e,t){if(b(e,t)){var i=e.firstChild;i?e.insertBefore(t,i):e.appendChild(t)}}function _(e,t){t&&e&&t.parentNode===e&&e.removeChild(t)}function x(e){return e.__textSvgEl}function S(e){return e.__svgEl}var C=function(e,t,i,r){this.root=e,this.storage=t,this._opts=i=o.extend({},i||{});var a=n("svg");a.setAttribute("xmlns","http://www.w3.org/2000/svg"),a.setAttribute("version","1.1"),a.setAttribute("baseProfile","full"),a.style.cssText="user-select:none;position:absolute;left:0;top:0;",this.gradientManager=new d(r,a),this.clipPathManager=new u(r,a),this.shadowManager=new h(r,a);var s=document.createElement("div");s.style.cssText="overflow:hidden;position:relative",this._svgRoot=a,this._viewport=s,e.appendChild(s),s.appendChild(a),this.resize(i.width,i.height),this._visibleList=[]};C.prototype={constructor:C,getType:function(){return"svg"},getViewportRoot:function(){return this._viewport},getViewportRootOffset:function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},refresh:function(){var e=this.storage.getDisplayList(!0);this._paintList(e)},setBackgroundColor:function(e){this._viewport.style.background=e},_paintList:function(e){this.gradientManager.markAllUnused(),this.clipPathManager.markAllUnused(),this.shadowManager.markAllUnused();var t,i,n=this._svgRoot,o=this._visibleList,r=e.length,d=[];for(t=0;t<r;t++){var u,h=e[t],p=(u=h)instanceof a?f:u instanceof s?g:u instanceof l?m:f,v=S(h)||x(h);h.invisible||(h.__dirty&&(p&&p.brush(h),this.clipPathManager.update(h),h.style&&(this.gradientManager.update(h.style.fill),this.gradientManager.update(h.style.stroke),this.shadowManager.update(v,h)),h.__dirty=!1),d.push(h))}var b=c(o,d);for(t=0;t<b.length;t++){var C=b[t];if(C.removed)for(var k=0;k<C.count;k++){var h=o[C.indices[k]],v=S(h),I=x(h);_(n,v),_(n,I)}}for(t=0;t<b.length;t++){var C=b[t];if(C.added)for(var k=0;k<C.count;k++){var h=d[C.indices[k]],v=S(h),I=x(h);i?y(n,v,i):w(n,v),v?y(n,I,v):i?y(n,I,i):w(n,I),y(n,I,v),i=I||v||i,this.gradientManager.addWithoutUpdate(v,h),this.shadowManager.addWithoutUpdate(i,h),this.clipPathManager.markUsed(h)}else if(!C.removed)for(var k=0;k<C.count;k++){var h=d[C.indices[k]];i=v=x(h)||S(h)||i,this.gradientManager.markUsed(h),this.gradientManager.addWithoutUpdate(v,h),this.shadowManager.markUsed(h),this.shadowManager.addWithoutUpdate(v,h),this.clipPathManager.markUsed(h)}}this.gradientManager.removeUnused(),this.clipPathManager.removeUnused(),this.shadowManager.removeUnused(),this._visibleList=d},_getDefs:function(e){var t=this._svgRoot,i=this._svgRoot.getElementsByTagName("defs");if(0!==i.length)return i[0];if(!e)return null;var i=t.insertBefore(n("defs"),t.firstChild);return i.contains||(i.contains=function(e){var t=i.children;if(!t)return!1;for(var n=t.length-1;n>=0;--n)if(t[n]===e)return!0;return!1}),i},resize:function(e,t){var i=this._viewport;i.style.display="none";var n=this._opts;if(null!=e&&(n.width=e),null!=t&&(n.height=t),e=this._getSize(0),t=this._getSize(1),i.style.display="",this._width!==e||this._height!==t){this._width=e,this._height=t;var o=i.style;o.width=e+"px",o.height=t+"px";var r=this._svgRoot;r.setAttribute("width",e),r.setAttribute("height",t)}},getWidth:function(){return this._width},getHeight:function(){return this._height},_getSize:function(e){var t=this._opts,i=["width","height"][e],n=["clientWidth","clientHeight"][e],o=["paddingLeft","paddingTop"][e],r=["paddingRight","paddingBottom"][e];if(null!=t[i]&&"auto"!==t[i])return parseFloat(t[i]);var a=this.root,s=document.defaultView.getComputedStyle(a);return(a[n]||v(s[i])||v(a.style[i]))-(v(s[o])||0)-(v(s[r])||0)|0},dispose:function(){this.root.innerHTML="",this._svgRoot=this._viewport=this.storage=null},clear:function(){this._viewport&&this.root.removeChild(this._viewport)},pathToDataUrl:function(){return this.refresh(),"data:image/svg+xml;charset=UTF-8,"+this._svgRoot.outerHTML}},o.each(["getLayer","insertLayer","eachLayer","eachBuiltinLayer","eachOtherLayer","getLayers","modLayer","delLayer","clearLayer","toDataURL","pathToImage"],function(e){C.prototype[e]=function(){r('In SVG mode painter not support method "'+e+'"')}}),e.exports=C},9471:function(e,t){t.createElement=function(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}},49875:function(e,t,i){var n=i(9471).createElement,o=i(12057),r=i(71497),a=i(36653),s=i(99280),l=i(93258),c=i(77894),d=o.CMD,u=Array.prototype.join,h="none",p=Math.round,f=Math.sin,g=Math.cos,m=Math.PI,v=2*Math.PI,b=180/m;function y(e){return p(1e4*e)/1e4}function w(e){return e<1e-4&&e>-1e-4}function _(e,t){t&&x(e,"transform","matrix("+u.call(t,",")+")")}function x(e,t,i){i&&("linear"===i.type||"radial"===i.type)||e.setAttribute(t,i)}function S(e,t,i,n){if(null!=(o=i?t.textFill:t.fill)&&o!==h){var o,r,a=i?t.textFill:t.fill;a="transparent"===a?h:a,"none"!==e.getAttribute("clip-path")&&a===h&&(a="rgba(0, 0, 0, 0.002)"),x(e,"fill",a),x(e,"fill-opacity",null!=t.fillOpacity?t.fillOpacity*t.opacity:t.opacity)}else x(e,"fill",h);if(null!=(r=i?t.textStroke:t.stroke)&&r!==h){var s=i?t.textStroke:t.stroke;x(e,"stroke",s="transparent"===s?h:s),x(e,"stroke-width",(i?t.textStrokeWidth:t.lineWidth)/(!i&&t.strokeNoScale?n.getLineScale():1)),x(e,"paint-order",i?"stroke":"fill"),x(e,"stroke-opacity",null!=t.strokeOpacity?t.strokeOpacity:t.opacity),t.lineDash?(x(e,"stroke-dasharray",t.lineDash.join(",")),x(e,"stroke-dashoffset",p(t.lineDashOffset||0))):x(e,"stroke-dasharray",""),t.lineCap&&x(e,"stroke-linecap",t.lineCap),t.lineJoin&&x(e,"stroke-linejoin",t.lineJoin),t.miterLimit&&x(e,"stroke-miterlimit",t.miterLimit)}else x(e,"stroke",h)}var C={};C.brush=function(e){var t=e.style,i=e.__svgEl;i||(e.__svgEl=i=n("path")),e.path||e.createPathProxy();var o=e.path;if(e.__dirtyPath){o.beginPath(),o.subPixelOptimize=!1,e.buildPath(o,e.shape),e.__dirtyPath=!1;var r=function(e){for(var t=[],i=e.data,n=e.len(),o=0;o<n;){var r=i[o++],a="",s=0;switch(r){case d.M:a="M",s=2;break;case d.L:a="L",s=2;break;case d.Q:a="Q",s=4;break;case d.C:a="C",s=6;break;case d.A:var l=i[o++],c=i[o++],u=i[o++],h=i[o++],_=i[o++],x=i[o++],S=i[o++],C=i[o++],k=Math.abs(x),I=w(k-v)&&!w(k),A=!1;A=k>=v||!w(k)&&(x>-m&&x<0||x>m)==!!C;var T=y(l+u*g(_)),E=y(c+h*f(_));I&&(x=C?v-1e-4:-v+1e-4,A=!0,9===o&&t.push("M",T,E));var R=y(l+u*g(_+x)),D=y(c+h*f(_+x));t.push("A",y(u),y(h),p(S*b),+A,+C,R,D);break;case d.Z:a="Z";break;case d.R:var R=y(i[o++]),D=y(i[o++]),O=y(i[o++]),M=y(i[o++]);t.push("M",R,D,"L",R+O,D,"L",R+O,D+M,"L",R,D+M,"L",R,D)}a&&t.push(a);for(var N=0;N<s;N++)t.push(y(i[o++]))}return t.join(" ")}(o);0>r.indexOf("NaN")&&x(i,"d",r)}S(i,t,!1,e),_(i,e.transform),null!=t.text&&T(e,e.getBoundingRect())};var k={};k.brush=function(e){var t=e.style,i=t.image;if(i instanceof HTMLImageElement&&(i=i.src),i){var o,r,a=t.x||0,s=t.y||0,l=t.width,c=t.height,d=e.__svgEl;d||(e.__svgEl=d=n("image")),i!==e.__imageSrc&&(o=d,r=i,o.setAttributeNS("http://www.w3.org/1999/xlink","href",r),e.__imageSrc=i),x(d,"width",l),x(d,"height",c),x(d,"x",a),x(d,"y",s),_(d,e.transform),null!=t.text&&T(e,e.getBoundingRect())}};var I={},A=new r,T=function(e,t,i){var o,r,d=e.style;e.__dirty&&l.normalizeTextStyle(d,!0);var u=d.text;if(null!=u){u+="";var h=e.__textSvgEl;h||(e.__textSvgEl=h=n("text"));var p=d.textPosition,f=d.textDistance,g=d.textAlign||"left";"number"==typeof d.fontSize&&(d.fontSize+="px");var m=d.font||[d.fontStyle||"",d.fontWeight||"",d.fontSize||"",d.fontFamily||""].join(" ")||s.DEFAULT_FONT,v=E(d.textVerticalAlign),b=(i=s.getBoundingRect(u,m,g,v,d.textPadding,d.textLineHeight)).lineHeight;if(p instanceof Array)o=t.x+p[0],r=t.y+p[1];else{var y=s.adjustTextPositionOnRect(p,t,f);o=y.x,r=y.y,v=E(y.textVerticalAlign),g=y.textAlign}x(h,"alignment-baseline",v),m&&(h.style.font=m);var w=d.textPadding;if(x(h,"x",o),x(h,"y",r),S(h,d,!0,e),e instanceof c||e.style.transformText)_(h,e.transform);else{if(e.transform)A.copy(t),A.applyTransform(e.transform),t=A;else{var C=e.transformCoordToGlobal(t.x,t.y);t.x=C[0],t.y=C[1],e.transform=a.identity(a.create())}var k=d.textOrigin;"center"===k?(o=i.width/2+o,r=i.height/2+r):k&&(o=k[0]+o,r=k[1]+r);var I=-d.textRotation||0,T=a.create();a.rotate(T,T,I);var C=[e.transform[4],e.transform[5]];a.translate(T,T,C),_(h,T)}var R=u.split("\n"),D=R.length,O=g;"left"===O?(O="start",w&&(o+=w[3])):"right"===O?(O="end",w&&(o-=w[1])):"center"===O&&(O="middle",w&&(o+=(w[3]-w[1])/2));var M=0;if("after-edge"===v?(M=-i.height+b,w&&(M-=w[2])):"middle"===v?(M=(-i.height+b)/2,w&&(r+=(w[0]-w[2])/2)):w&&(M+=w[0]),e.__text!==u||e.__textFont!==m){var N=e.__tspanList||[];e.__tspanList=N;for(var P=0;P<D;P++){var L=N[P];L?L.innerHTML="":(L=N[P]=n("tspan"),h.appendChild(L),x(L,"alignment-baseline",v),x(L,"text-anchor",O)),x(L,"x",o),x(L,"y",r+P*b+M),L.appendChild(document.createTextNode(R[P]))}for(;P<N.length;P++)h.removeChild(N[P]);N.length=D,e.__text=u,e.__textFont=m}else if(e.__tspanList.length)for(var B=e.__tspanList.length,P=0;P<B;++P){var L=e.__tspanList[P];L&&(x(L,"x",o),x(L,"y",r+P*b+M))}}};function E(e){return"middle"===e?"middle":"bottom"===e?"after-edge":"hanging"}I.drawRectText=T,I.brush=function(e){var t=e.style;null!=t.text&&(t.textPosition=[0,0],T(e,{x:t.x||0,y:t.y||0,width:0,height:0},e.getBoundingRect()))},t.path=C,t.image=k,t.text=I},61719:function(e,t,i){var n=i(10206),o=i(66023),r=i(36653);function a(e,t){n.call(this,e,t,"clipPath","__clippath_in_use__")}o.inherits(a,n),a.prototype.update=function(e){var t=this.getSvgElement(e);t&&this.updateDom(t,e.__clipPaths,!1);var i=this.getTextSvgElement(e);i&&this.updateDom(i,e.__clipPaths,!0),this.markUsed(e)},a.prototype.updateDom=function(e,t,i){if(t&&t.length>0){var n,o,a=this.getDefs(!0),s=t[0],l=i?"_textDom":"_dom";s[l]?(o=s[l].getAttribute("id"),n=s[l],a.contains(n)||a.appendChild(n)):(o="zr"+this._zrId+"-clip-"+this.nextId,++this.nextId,(n=this.createElement("clipPath")).setAttribute("id",o),a.appendChild(n),s[l]=n);var c=this.getSvgProxy(s);if(s.transform&&s.parent.invTransform&&!i){var d=Array.prototype.slice.call(s.transform);r.mul(s.transform,s.parent.invTransform,s.transform),c.brush(s),s.transform=d}else c.brush(s);var u=this.getSvgElement(s);n.innerHTML="",n.appendChild(u.cloneNode()),e.setAttribute("clip-path","url(#"+o+")"),t.length>1&&this.updateDom(n,t.slice(1),i)}else e&&e.setAttribute("clip-path","none")},a.prototype.markUsed=function(e){var t=this;e.__clipPaths&&e.__clipPaths.length>0&&o.each(e.__clipPaths,function(e){e._dom&&n.prototype.markUsed.call(t,e._dom),e._textDom&&n.prototype.markUsed.call(t,e._textDom)})},e.exports=a},10206:function(e,t,i){var n=i(9471).createElement,o=i(66023),r=i(87205),a=i(52728),s=i(77894),l=i(49875),c=l.path,d=l.image,u=l.text;function h(e,t,i,n,o){this._zrId=e,this._svgRoot=t,this._tagNames="string"==typeof i?[i]:i,this._markLabel=n,this._domName=o||"_dom",this.nextId=0}h.prototype.createElement=n,h.prototype.getDefs=function(e){var t=this._svgRoot,i=this._svgRoot.getElementsByTagName("defs");return 0!==i.length?i[0]:e?((i=t.insertBefore(this.createElement("defs"),t.firstChild)).contains||(i.contains=function(e){var t=i.children;if(!t)return!1;for(var n=t.length-1;n>=0;--n)if(t[n]===e)return!0;return!1}),i):null},h.prototype.update=function(e,t){if(e){var i=this.getDefs(!1);if(e[this._domName]&&i.contains(e[this._domName]))"function"==typeof t&&t(e);else{var n=this.add(e);n&&(e[this._domName]=n)}}},h.prototype.addDom=function(e){this.getDefs(!0).appendChild(e)},h.prototype.removeDom=function(e){var t=this.getDefs(!1);t&&e[this._domName]&&(t.removeChild(e[this._domName]),e[this._domName]=null)},h.prototype.getDoms=function(){var e=this.getDefs(!1);if(!e)return[];var t=[];return o.each(this._tagNames,function(i){var n=e.getElementsByTagName(i);t=t.concat([].slice.call(n))}),t},h.prototype.markAllUnused=function(){var e=this.getDoms(),t=this;o.each(e,function(e){e[t._markLabel]="0"})},h.prototype.markUsed=function(e){e&&(e[this._markLabel]="1")},h.prototype.removeUnused=function(){var e=this.getDefs(!1);if(e){var t=this.getDoms(),i=this;o.each(t,function(t){"1"!==t[i._markLabel]&&e.removeChild(t)})}},h.prototype.getSvgProxy=function(e){return e instanceof r?c:e instanceof a?d:e instanceof s?u:c},h.prototype.getTextSvgElement=function(e){return e.__textSvgEl},h.prototype.getSvgElement=function(e){return e.__svgEl},e.exports=h},83115:function(e,t,i){var n=i(10206),o=i(66023),r=i(94627),a=i(53453);function s(e,t){n.call(this,e,t,["linearGradient","radialGradient"],"__gradient_in_use__")}o.inherits(s,n),s.prototype.addWithoutUpdate=function(e,t){if(t&&t.style){var i=this;o.each(["fill","stroke"],function(n){if(t.style[n]&&("linear"===t.style[n].type||"radial"===t.style[n].type)){var o,r=t.style[n],a=i.getDefs(!0);r._dom?(o=r._dom,a.contains(r._dom)||i.addDom(o)):o=i.add(r),i.markUsed(t);var s=o.getAttribute("id");e.setAttribute(n,"url(#"+s+")")}})}},s.prototype.add=function(e){var t;if("linear"===e.type)t=this.createElement("linearGradient");else{if("radial"!==e.type)return r("Illegal gradient type."),null;t=this.createElement("radialGradient")}return e.id=e.id||this.nextId++,t.setAttribute("id","zr"+this._zrId+"-gradient-"+e.id),this.updateDom(e,t),this.addDom(t),t},s.prototype.update=function(e){var t=this;n.prototype.update.call(this,e,function(){var i=e.type,n=e._dom.tagName;"linear"===i&&"linearGradient"===n||"radial"===i&&"radialGradient"===n?t.updateDom(e,e._dom):(t.removeDom(e),t.add(e))})},s.prototype.updateDom=function(e,t){if("linear"===e.type)t.setAttribute("x1",e.x),t.setAttribute("y1",e.y),t.setAttribute("x2",e.x2),t.setAttribute("y2",e.y2);else{if("radial"!==e.type)return void r("Illegal gradient type.");t.setAttribute("cx",e.x),t.setAttribute("cy",e.y),t.setAttribute("r",e.r)}e.global?t.setAttribute("gradientUnits","userSpaceOnUse"):t.setAttribute("gradientUnits","objectBoundingBox"),t.innerHTML="";for(var i=e.colorStops,n=0,o=i.length;n<o;++n){var s=this.createElement("stop");s.setAttribute("offset",100*i[n].offset+"%");var l=i[n].color;if(l.indexOf(!1)){var c=a.parse(l)[3],d=a.toHex(l);s.setAttribute("stop-color","#"+d),s.setAttribute("stop-opacity",c)}else s.setAttribute("stop-color",i[n].color);t.appendChild(s)}e._dom=t},s.prototype.markUsed=function(e){if(e.style){var t=e.style.fill;t&&t._dom&&n.prototype.markUsed.call(this,t._dom),(t=e.style.stroke)&&t._dom&&n.prototype.markUsed.call(this,t._dom)}},e.exports=s},73623:function(e,t,i){var n=i(10206);function o(e,t){n.call(this,e,t,["filter"],"__filter_in_use__","_shadowDom")}function r(e){return e&&(e.shadowBlur||e.shadowOffsetX||e.shadowOffsetY||e.textShadowBlur||e.textShadowOffsetX||e.textShadowOffsetY)}i(66023).inherits(o,n),o.prototype.addWithoutUpdate=function(e,t){if(t&&r(t.style)){var i,n=t.style;n._shadowDom?(i=n._shadowDom,this.getDefs(!0).contains(n._shadowDom)||this.addDom(i)):i=this.add(t),this.markUsed(t);var o=i.getAttribute("id");e.style.filter="url(#"+o+")"}},o.prototype.add=function(e){var t=this.createElement("filter"),i=e.style;return i._shadowDomId=i._shadowDomId||this.nextId++,t.setAttribute("id","zr"+this._zrId+"-shadow-"+i._shadowDomId),this.updateDom(e,t),this.addDom(t),t},o.prototype.update=function(e,t){var i=t.style;if(r(i)){var o=this;n.prototype.update.call(this,t,function(e){o.updateDom(t,e._shadowDom)})}else this.remove(e,i)},o.prototype.remove=function(e,t){null!=t._shadowDomId&&(this.removeDom(t),e.style.filter="")},o.prototype.updateDom=function(e,t){var i,n,o,r,a=t.getElementsByTagName("feDropShadow");a=0===a.length?this.createElement("feDropShadow"):a[0];var s=e.style,l=e.scale&&e.scale[0]||1,c=e.scale&&e.scale[1]||1;if(s.shadowBlur||s.shadowOffsetX||s.shadowOffsetY)i=s.shadowOffsetX||0,n=s.shadowOffsetY||0,o=s.shadowBlur,r=s.shadowColor;else{if(!s.textShadowBlur)return void this.removeDom(t,s);i=s.textShadowOffsetX||0,n=s.textShadowOffsetY||0,o=s.textShadowBlur,r=s.textShadowColor}a.setAttribute("dx",i/l),a.setAttribute("dy",n/c),a.setAttribute("flood-color",r);var d=o/2/l,u=o/2/c;a.setAttribute("stdDeviation",d+" "+u),t.setAttribute("x","-100%"),t.setAttribute("y","-100%"),t.setAttribute("width",Math.ceil(o/2*200)+"%"),t.setAttribute("height",Math.ceil(o/2*200)+"%"),t.appendChild(a),s._shadowDom=t},o.prototype.markUsed=function(e){var t=e.style;t&&t._shadowDom&&n.prototype.markUsed.call(this,t._shadowDom)},e.exports=o},76955:function(e,t,i){i(49875),(0,i(19206).registerPainter)("svg",i(30516))},53453:function(e,t,i){var n=i(4186),o={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function r(e){return(e=Math.round(e))<0?0:e>255?255:e}function a(e){return e<0?0:e>1?1:e}function s(e){return e.length&&"%"===e.charAt(e.length-1)?r(parseFloat(e)/100*255):r(parseInt(e,10))}function l(e){return e.length&&"%"===e.charAt(e.length-1)?a(parseFloat(e)/100):a(parseFloat(e))}function c(e,t,i){return(i<0?i+=1:i>1&&(i-=1),6*i<1)?e+(t-e)*i*6:2*i<1?t:3*i<2?e+(t-e)*(2/3-i)*6:e}function d(e,t,i,n,o){return e[0]=t,e[1]=i,e[2]=n,e[3]=o,e}function u(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var h=new n(20),p=null;function f(e,t){p&&u(p,t),p=h.put(e,p||t.slice())}function g(e,t){if(e){t=t||[];var i=h.get(e);if(i)return u(t,i);var n=(e+="").replace(/ /g,"").toLowerCase();if(n in o)return u(t,o[n]),f(e,t),t;if("#"===n.charAt(0)){if(4===n.length){var r=parseInt(n.substr(1),16);return r>=0&&r<=4095?(d(t,(3840&r)>>4|(3840&r)>>8,240&r|(240&r)>>4,15&r|(15&r)<<4,1),f(e,t),t):void d(t,0,0,0,1)}if(7===n.length){var r=parseInt(n.substr(1),16);return r>=0&&r<=0xffffff?(d(t,(0xff0000&r)>>16,(65280&r)>>8,255&r,1),f(e,t),t):void d(t,0,0,0,1)}return}var a=n.indexOf("("),c=n.indexOf(")");if(-1!==a&&c+1===n.length){var p=n.substr(0,a),g=n.substr(a+1,c-(a+1)).split(","),v=1;switch(p){case"rgba":if(4!==g.length)return void d(t,0,0,0,1);v=l(g.pop());case"rgb":if(3!==g.length)return void d(t,0,0,0,1);return d(t,s(g[0]),s(g[1]),s(g[2]),v),f(e,t),t;case"hsla":if(4!==g.length)return void d(t,0,0,0,1);return g[3]=l(g[3]),m(g,t),f(e,t),t;case"hsl":if(3!==g.length)return void d(t,0,0,0,1);return m(g,t),f(e,t),t;default:return}}d(t,0,0,0,1)}}function m(e,t){var i=(parseFloat(e[0])%360+360)%360/360,n=l(e[1]),o=l(e[2]),a=o<=.5?o*(n+1):o+n-o*n,s=2*o-a;return d(t=t||[],r(255*c(s,a,i+1/3)),r(255*c(s,a,i)),r(255*c(s,a,i-1/3)),1),4===e.length&&(t[3]=e[3]),t}function v(e,t,i){if(t&&t.length&&e>=0&&e<=1){i=i||[];var n,o,s,l,c=e*(t.length-1),d=Math.floor(c),u=Math.ceil(c),h=t[d],p=t[u],f=c-d;return i[0]=r((n=h[0],n+(p[0]-n)*f)),i[1]=r((o=h[1],o+(p[1]-o)*f)),i[2]=r((s=h[2],s+(p[2]-s)*f)),i[3]=a((l=h[3],l+(p[3]-l)*f)),i}}function b(e,t,i){if(t&&t.length&&e>=0&&e<=1){var n,o,s,l,c=e*(t.length-1),d=Math.floor(c),u=Math.ceil(c),h=g(t[d]),p=g(t[u]),f=c-d,m=y([r((n=h[0],n+(p[0]-n)*f)),r((o=h[1],o+(p[1]-o)*f)),r((s=h[2],s+(p[2]-s)*f)),a((l=h[3],l+(p[3]-l)*f))],"rgba");return i?{color:m,leftIndex:d,rightIndex:u,value:c}:m}}function y(e,t){if(e&&e.length){var i=e[0]+","+e[1]+","+e[2];return("rgba"===t||"hsva"===t||"hsla"===t)&&(i+=","+e[3]),t+"("+i+")"}}t.parse=g,t.lift=function(e,t){var i=g(e);if(i){for(var n=0;n<3;n++)t<0?i[n]=i[n]*(1-t)|0:i[n]=(255-i[n])*t+i[n]|0,i[n]>255?i[n]=255:e[n]<0&&(i[n]=0);return y(i,4===i.length?"rgba":"rgb")}},t.toHex=function(e){var t=g(e);if(t)return(0x1000000+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)},t.fastLerp=v,t.fastMapToColor=v,t.lerp=b,t.mapToColor=b,t.modifyHSL=function(e,t,i,n){if(e=g(e)){var o;return e=function(e){if(e){var t,i,n=e[0]/255,o=e[1]/255,r=e[2]/255,a=Math.min(n,o,r),s=Math.max(n,o,r),l=s-a,c=(s+a)/2;if(0===l)t=0,i=0;else{i=c<.5?l/(s+a):l/(2-s-a);var d=((s-n)/6+l/2)/l,u=((s-o)/6+l/2)/l,h=((s-r)/6+l/2)/l;n===s?t=h-u:o===s?t=1/3+d-h:r===s&&(t=2/3+u-d),t<0&&(t+=1),t>1&&(t-=1)}var p=[360*t,i,c];return null!=e[3]&&p.push(e[3]),p}}(e),null!=t&&(e[0]=(o=Math.round(o=t))<0?0:o>360?360:o),null!=i&&(e[1]=l(i)),null!=n&&(e[2]=l(n)),y(m(e),"rgba")}},t.modifyAlpha=function(e,t){if((e=g(e))&&null!=t)return e[3]=a(t),y(e,"rgba")},t.stringify=y},42640:function(e,t,i){var n=i(35601),o=i(52728),r=i(77894),a=i(38035),s=i(54668),l=i(60961),c=i(52949),d=i(87205),u=i(11960),h=i(35243),p=i(53429),f=i(77157),g=i(36653),m=i(86022).createFromString,v=i(66023),b=v.isString,y=v.extend,w=v.defaults,_=v.trim,x=v.each,S=/[\s,]+/;function C(e){for(b(e)&&(e=new DOMParser().parseFromString(e,"text/xml")),9===e.nodeType&&(e=e.firstChild);"svg"!==e.nodeName.toLowerCase()||1!==e.nodeType;)e=e.nextSibling;return e}function k(){this._defs={},this._root=null,this._isDefine=!1,this._isText=!1}k.prototype.parse=function(e,t){t=t||{};var i,o,r=C(e);if(!r)throw Error("Illegal svg");var a=new n;this._root=a;var l=r.getAttribute("viewBox")||"",c=parseFloat(r.getAttribute("width")||t.width),d=parseFloat(r.getAttribute("height")||t.height);isNaN(c)&&(c=null),isNaN(d)&&(d=null),D(r,a,null,!0);for(var u=r.firstChild;u;)this._parseNode(u,a),u=u.nextSibling;if(l){var h=_(l).split(S);h.length>=4&&(i={x:parseFloat(h[0]||0),y:parseFloat(h[1]||0),width:parseFloat(h[2]),height:parseFloat(h[3])})}if(i&&null!=c&&null!=d&&(o=L(i,c,d),!t.ignoreViewBox)){var p=a;(a=new n).add(p),p.scale=o.scale.slice(),p.position=o.position.slice()}return t.ignoreRootClip||null==c||null==d||a.setClipPath(new s({shape:{x:0,y:0,width:c,height:d}})),{root:a,width:c,height:d,viewBoxRect:i,viewBoxTransform:o}},k.prototype._parseNode=function(e,t){var i,n=e.nodeName.toLowerCase();if("defs"===n?this._isDefine=!0:"text"===n&&(this._isText=!0),this._isDefine){var o=A[n];if(o){var r=o.call(this,e),a=e.getAttribute("id");a&&(this._defs[a]=r)}}else{var o=I[n];o&&(i=o.call(this,e,t),t.add(i))}for(var s=e.firstChild;s;)1===s.nodeType&&this._parseNode(s,i),3===s.nodeType&&this._isText&&this._parseText(s,i),s=s.nextSibling;"defs"===n?this._isDefine=!1:"text"===n&&(this._isText=!1)},k.prototype._parseText=function(e,t){if(1===e.nodeType){var i=e.getAttribute("dx")||0,n=e.getAttribute("dy")||0;this._textX+=parseFloat(i),this._textY+=parseFloat(n)}var o=new r({style:{text:e.textContent,transformText:!0},position:[this._textX||0,this._textY||0]});T(t,o),D(e,o,this._defs);var a=o.style.fontSize;a&&a<9&&(o.style.fontSize=9,o.scale=o.scale||[1,1],o.scale[0]*=a/9,o.scale[1]*=a/9);var s=o.getBoundingRect();return this._textX+=s.width,t.add(o),o};var I={g:function(e,t){var i=new n;return T(t,i),D(e,i,this._defs),i},rect:function(e,t){var i=new s;return T(t,i),D(e,i,this._defs),i.setShape({x:parseFloat(e.getAttribute("x")||0),y:parseFloat(e.getAttribute("y")||0),width:parseFloat(e.getAttribute("width")||0),height:parseFloat(e.getAttribute("height")||0)}),i},circle:function(e,t){var i=new a;return T(t,i),D(e,i,this._defs),i.setShape({cx:parseFloat(e.getAttribute("cx")||0),cy:parseFloat(e.getAttribute("cy")||0),r:parseFloat(e.getAttribute("r")||0)}),i},line:function(e,t){var i=new c;return T(t,i),D(e,i,this._defs),i.setShape({x1:parseFloat(e.getAttribute("x1")||0),y1:parseFloat(e.getAttribute("y1")||0),x2:parseFloat(e.getAttribute("x2")||0),y2:parseFloat(e.getAttribute("y2")||0)}),i},ellipse:function(e,t){var i=new l;return T(t,i),D(e,i,this._defs),i.setShape({cx:parseFloat(e.getAttribute("cx")||0),cy:parseFloat(e.getAttribute("cy")||0),rx:parseFloat(e.getAttribute("rx")||0),ry:parseFloat(e.getAttribute("ry")||0)}),i},polygon:function(e,t){var i=e.getAttribute("points");i&&(i=E(i));var n=new u({shape:{points:i||[]}});return T(t,n),D(e,n,this._defs),n},polyline:function(e,t){var i=new d;T(t,i),D(e,i,this._defs);var n=e.getAttribute("points");return n&&(n=E(n)),new h({shape:{points:n||[]}})},image:function(e,t){var i=new o;return T(t,i),D(e,i,this._defs),i.setStyle({image:e.getAttribute("xlink:href"),x:e.getAttribute("x"),y:e.getAttribute("y"),width:e.getAttribute("width"),height:e.getAttribute("height")}),i},text:function(e,t){var i=e.getAttribute("x")||0,o=e.getAttribute("y")||0,r=e.getAttribute("dx")||0,a=e.getAttribute("dy")||0;this._textX=parseFloat(i)+parseFloat(r),this._textY=parseFloat(o)+parseFloat(a);var s=new n;return T(t,s),D(e,s,this._defs),s},tspan:function(e,t){var i=e.getAttribute("x"),o=e.getAttribute("y");null!=i&&(this._textX=parseFloat(i)),null!=o&&(this._textY=parseFloat(o));var r=e.getAttribute("dx")||0,a=e.getAttribute("dy")||0,s=new n;return T(t,s),D(e,s,this._defs),this._textX+=r,this._textY+=a,s},path:function(e,t){var i=m(e.getAttribute("d")||"");return T(t,i),D(e,i,this._defs),i}},A={lineargradient:function(e){var t=new p(parseInt(e.getAttribute("x1")||0,10),parseInt(e.getAttribute("y1")||0,10),parseInt(e.getAttribute("x2")||10,10),parseInt(e.getAttribute("y2")||0,10));return function(e,t){for(var i=e.firstChild;i;){if(1===i.nodeType){var n=i.getAttribute("offset");n=n.indexOf("%")>0?parseInt(n,10)/100:n?parseFloat(n):0;var o=i.getAttribute("stop-color")||"#000000";t.addColorStop(n,o)}i=i.nextSibling}}(e,t),t},radialgradient:function(e){}};function T(e,t){e&&e.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),w(t.__inheritedStyle,e.__inheritedStyle))}function E(e){for(var t=_(e).split(S),i=[],n=0;n<t.length;n+=2){var o=parseFloat(t[n]),r=parseFloat(t[n+1]);i.push([o,r])}return i}var R={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-align":"textAlign","alignment-baseline":"textBaseline"};function D(e,t,i,n){var o=t.__inheritedStyle||{},r="text"===t.type;if(1===e.nodeType&&(function(e,t){var i=e.getAttribute("transform");if(i){i=i.replace(/,/g," ");var n=null,o=[];i.replace(N,function(e,t,i){o.push(t,i)});for(var r=o.length-1;r>0;r-=2){var a=o[r],s=o[r-1];switch(n=n||g.create(),s){case"translate":a=_(a).split(S),g.translate(n,n,[parseFloat(a[0]),parseFloat(a[1]||0)]);break;case"scale":a=_(a).split(S),g.scale(n,n,[parseFloat(a[0]),parseFloat(a[1]||a[0])]);break;case"rotate":a=_(a).split(S),g.rotate(n,n,parseFloat(a[0]));break;case"skew":a=_(a).split(S),console.warn("Skew transform is not supported yet");break;case"matrix":var a=_(a).split(S);n[0]=parseFloat(a[0]),n[1]=parseFloat(a[1]),n[2]=parseFloat(a[2]),n[3]=parseFloat(a[3]),n[4]=parseFloat(a[4]),n[5]=parseFloat(a[5])}}t.setLocalTransform(n)}}(e,t),y(o,function(e){var t,i=e.getAttribute("style"),n={};if(!i)return n;var o={};for(P.lastIndex=0;null!=(t=P.exec(i));)o[t[1]]=t[2];for(var r in R)R.hasOwnProperty(r)&&null!=o[r]&&(n[R[r]]=o[r]);return n}(e)),!n)){for(var a in R)if(R.hasOwnProperty(a)){var s=e.getAttribute(a);null!=s&&(o[R[a]]=s)}}var l=r?"textStroke":"stroke";t.style=t.style||new f;var c=t.style;null!=o.fill&&c.set(r?"textFill":"fill",M(o.fill,i)),null!=o.stroke&&c.set(l,M(o.stroke,i)),x(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(e){null!=o[e]&&c.set("lineWidth"===e&&r?"textStrokeWidth":e,parseFloat(o[e]))}),o.textBaseline&&"auto"!==o.textBaseline||(o.textBaseline="alphabetic"),"alphabetic"===o.textBaseline&&(o.textBaseline="bottom"),"start"===o.textAlign&&(o.textAlign="left"),"end"===o.textAlign&&(o.textAlign="right"),x(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign","textBaseline"],function(e){null!=o[e]&&c.set(e,o[e])}),o.lineDash&&(t.style.lineDash=_(o.lineDash).split(S)),c[l]&&"none"!==c[l]&&(t[l]=!0),t.__inheritedStyle=o}var O=/url\(\s*#(.*?)\)/;function M(e,t){var i=t&&e&&e.match(O);return i?t[_(i[1])]:e}var N=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.e,]*)\)/g,P=/([^\s:;]+)\s*:\s*([^:;]+)/g;function L(e,t,i){var n=Math.min(t/e.width,i/e.height),o=[-(e.x+e.width/2)*n+t/2,-(e.y+e.height/2)*n+i/2];return{scale:[n,n],position:o}}t.parseXML=C,t.makeViewBoxTransform=L,t.parseSVG=function(e,t){return new k().parse(e,t)}},86022:function(e,t,i){var n=i(87205),o=i(12057),r=i(2122),a=Math.sqrt,s=Math.sin,l=Math.cos,c=Math.PI,d=function(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])},u=function(e,t){return(e[0]*t[0]+e[1]*t[1])/(d(e)*d(t))},h=function(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(u(e,t))};function p(e,t,i,n,o,r,d,p,f,g,m){var v=c/180*f,b=l(v)*(e-i)/2+s(v)*(t-n)/2,y=-1*s(v)*(e-i)/2+l(v)*(t-n)/2,w=b*b/(d*d)+y*y/(p*p);w>1&&(d*=a(w),p*=a(w));var _=(o===r?-1:1)*a((d*d*(p*p)-d*d*(y*y)-p*p*(b*b))/(d*d*(y*y)+p*p*(b*b)))||0,x=_*d*y/p,S=-(_*p)*b/d,C=(e+i)/2+l(v)*x-s(v)*S,k=(t+n)/2+s(v)*x+l(v)*S,I=h([1,0],[(b-x)/d,(y-S)/p]),A=[(b-x)/d,(y-S)/p],T=[(-1*b-x)/d,(-1*y-S)/p],E=h(A,T);-1>=u(A,T)&&(E=c),u(A,T)>=1&&(E=0),0===r&&E>0&&(E-=2*c),1===r&&E<0&&(E+=2*c),m.addData(g,C,k,d,p,I,E,v,r)}var f=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,g=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function m(e,t){var i=function(e){if(!e)return new o;for(var t=0,i=0,n=0,r=0,a=new o,s=o.CMD,l=e.match(f),c=0;c<l.length;c++){for(var d=l[c],u=d.charAt(0),h=d.match(g)||[],m=h.length,v=0;v<m;v++)h[v]=parseFloat(h[v]);for(var b=0;b<m;){var y,w,_,x,S,C,k,I,A,T=t,E=i;switch(u){case"l":t+=h[b++],i+=h[b++],w=s.L,a.addData(w,t,i);break;case"L":t=h[b++],i=h[b++],w=s.L,a.addData(w,t,i);break;case"m":t+=h[b++],i+=h[b++],w=s.M,a.addData(w,t,i),n=t,r=i,u="l";break;case"M":t=h[b++],i=h[b++],w=s.M,a.addData(w,t,i),n=t,r=i,u="L";break;case"h":t+=h[b++],w=s.L,a.addData(w,t,i);break;case"H":t=h[b++],w=s.L,a.addData(w,t,i);break;case"v":i+=h[b++],w=s.L,a.addData(w,t,i);break;case"V":i=h[b++],w=s.L,a.addData(w,t,i);break;case"C":w=s.C,a.addData(w,h[b++],h[b++],h[b++],h[b++],h[b++],h[b++]),t=h[b-2],i=h[b-1];break;case"c":w=s.C,a.addData(w,h[b++]+t,h[b++]+i,h[b++]+t,h[b++]+i,h[b++]+t,h[b++]+i),t+=h[b-2],i+=h[b-1];break;case"S":_=t,x=i;var R=a.len(),D=a.data;y===s.C&&(_+=t-D[R-4],x+=i-D[R-3]),w=s.C,T=h[b++],E=h[b++],t=h[b++],i=h[b++],a.addData(w,_,x,T,E,t,i);break;case"s":_=t,x=i;var R=a.len(),D=a.data;y===s.C&&(_+=t-D[R-4],x+=i-D[R-3]),w=s.C,T=t+h[b++],E=i+h[b++],t+=h[b++],i+=h[b++],a.addData(w,_,x,T,E,t,i);break;case"Q":T=h[b++],E=h[b++],t=h[b++],i=h[b++],w=s.Q,a.addData(w,T,E,t,i);break;case"q":T=h[b++]+t,E=h[b++]+i,t+=h[b++],i+=h[b++],w=s.Q,a.addData(w,T,E,t,i);break;case"T":_=t,x=i;var R=a.len(),D=a.data;y===s.Q&&(_+=t-D[R-4],x+=i-D[R-3]),t=h[b++],i=h[b++],w=s.Q,a.addData(w,_,x,t,i);break;case"t":_=t,x=i;var R=a.len(),D=a.data;y===s.Q&&(_+=t-D[R-4],x+=i-D[R-3]),t+=h[b++],i+=h[b++],w=s.Q,a.addData(w,_,x,t,i);break;case"A":S=h[b++],C=h[b++],k=h[b++],I=h[b++],A=h[b++],T=t,E=i,t=h[b++],p(T,E,t,i=h[b++],I,A,S,C,k,w=s.A,a);break;case"a":S=h[b++],C=h[b++],k=h[b++],I=h[b++],A=h[b++],T=t,E=i,t+=h[b++],p(T,E,t,i+=h[b++],I,A,S,C,k,w=s.A,a)}}("z"===u||"Z"===u)&&(w=s.Z,a.addData(w),t=n,i=r),y=w}return a.toStatic(),a}(e);return(t=t||{}).buildPath=function(e){if(e.setData){e.setData(i.data);var t=e.getContext();t&&e.rebuildPath(t)}else{var t=e;i.rebuildPath(t)}},t.applyTransform=function(e){r(i,e),this.dirty(!0)},t}t.createFromString=function(e,t){return new n(m(e,t))},t.extendFromString=function(e,t){return n.extend(m(e,t))},t.mergePath=function(e,t){for(var i=[],o=e.length,r=0;r<o;r++){var a=e[r];a.path||a.createPathProxy(),a.__dirtyPath&&a.buildPath(a.path,a.shape,!0),i.push(a.path)}var s=new n(t);return s.createPathProxy(),s.buildPath=function(e){e.appendPath(i);var t=e.getContext();t&&e.rebuildPath(t)},s}},2122:function(e,t,i){var n=i(12057),o=i(3265).applyTransform,r=n.CMD,a=[[],[],[]],s=Math.sqrt,l=Math.atan2;e.exports=function(e,t){var i,n,c,d,u,h,p=e.data,f=r.M,g=r.C,m=r.L,v=r.R,b=r.A,y=r.Q;for(c=0,d=0;c<p.length;){switch(i=p[c++],d=c,n=0,i){case f:case m:n=1;break;case g:n=3;break;case y:n=2;break;case b:var w=t[4],_=t[5],x=s(t[0]*t[0]+t[1]*t[1]),S=s(t[2]*t[2]+t[3]*t[3]),C=l(-t[1]/S,t[0]/x);p[c]*=x,p[c++]+=w,p[c]*=S,p[c++]+=_,p[c++]*=x,p[c++]*=S,p[c++]+=C,p[c++]+=C,c+=2,d=c;break;case v:h[0]=p[c++],h[1]=p[c++],o(h,h,t),p[d++]=h[0],p[d++]=h[1],h[0]+=p[c++],h[1]+=p[c++],o(h,h,t),p[d++]=h[0],p[d++]=h[1]}for(u=0;u<n;u++){var h=a[u];h[0]=p[c++],h[1]=p[c++],o(h,h,t),p[d++]=h[0],p[d++]=h[1]}}}},11004:function(e,t,i){var n=i(94627),o=i(93295),r=i(66023).each;function a(e){return parseInt(e,10)}function s(e,t){o.initVML(),this.root=e,this.storage=t;var i=document.createElement("div"),n=document.createElement("div");i.style.cssText="display:inline-block;overflow:hidden;position:relative;width:300px;height:150px;",n.style.cssText="position:absolute;left:0;top:0;",e.appendChild(i),this._vmlRoot=n,this._vmlViewport=i,this.resize();var r=t.delFromStorage,a=t.addToStorage;t.delFromStorage=function(e){r.call(t,e),e&&e.onRemove&&e.onRemove(n)},t.addToStorage=function(e){e.onAdd&&e.onAdd(n),a.call(t,e)},this._firstPaint=!0}s.prototype={constructor:s,getType:function(){return"vml"},getViewportRoot:function(){return this._vmlViewport},getViewportRootOffset:function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},refresh:function(){var e=this.storage.getDisplayList(!0,!0);this._paintList(e)},_paintList:function(e){for(var t=this._vmlRoot,i=0;i<e.length;i++){var n=e[i];n.invisible||n.ignore?(n.__alreadyNotVisible||n.onRemove(t),n.__alreadyNotVisible=!0):(n.__alreadyNotVisible&&n.onAdd(t),n.__alreadyNotVisible=!1,n.__dirty&&(n.beforeBrush&&n.beforeBrush(),(n.brushVML||n.brush).call(n,t),n.afterBrush&&n.afterBrush())),n.__dirty=!1}this._firstPaint&&(this._vmlViewport.appendChild(t),this._firstPaint=!1)},resize:function(e,t){var e=null==e?this._getWidth():e,t=null==t?this._getHeight():t;if(this._width!==e||this._height!==t){this._width=e,this._height=t;var i=this._vmlViewport.style;i.width=e+"px",i.height=t+"px"}},dispose:function(){this.root.innerHTML="",this._vmlRoot=this._vmlViewport=this.storage=null},getWidth:function(){return this._width},getHeight:function(){return this._height},clear:function(){this._vmlViewport&&this.root.removeChild(this._vmlViewport)},_getWidth:function(){var e=this.root,t=e.currentStyle;return(e.clientWidth||a(t.width))-a(t.paddingLeft)-a(t.paddingRight)|0},_getHeight:function(){var e=this.root,t=e.currentStyle;return(e.clientHeight||a(t.height))-a(t.paddingTop)-a(t.paddingBottom)|0}},r(["getLayer","insertLayer","eachLayer","eachBuiltinLayer","eachOtherLayer","getLayers","modLayer","delLayer","clearLayer","toDataURL","pathToImage"],function(e){s.prototype[e]=function(){n('In IE8.0 VML mode painter not support method "'+e+'"')}}),e.exports=s},93295:function(e,t,i){var n,o=i(57674),r="urn:schemas-microsoft-com:vml",a="undefined"==typeof window?null:window,s=!1,l=a&&a.document;if(l&&!o.canvasSupported)try{l.namespaces.zrvml||l.namespaces.add("zrvml",r),n=function(e){return l.createElement("<zrvml:"+e+' class="zrvml">')}}catch(e){n=function(e){return l.createElement("<"+e+' xmlns="'+r+'" class="zrvml">')}}t.doc=l,t.createNode=function(e){return n(e)},t.initVML=function(){if(!s&&l){s=!0;var e=l.styleSheets;e.length<31?l.createStyleSheet().addRule(".zrvml","behavior:url(#default#VML)"):e[0].addRule(".zrvml","behavior:url(#default#VML)")}}},35360:function(e,t,i){var n=i(57674),o=i(3265).applyTransform,r=i(71497),a=i(53453),s=i(99280),l=i(93258),c=i(29695),d=i(85553),u=i(52728),h=i(77894),p=i(87205),f=i(12057),g=i(47580),m=i(93295),v=f.CMD,b=Math.round,y=Math.sqrt,w=Math.abs,_=Math.cos,x=Math.sin,S=Math.max;if(!n.canvasSupported){var C,k="progid:DXImageTransform.Microsoft",I=function(e){e.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px;",e.coordsize="21600,21600",e.coordorigin="0,0"},A=function(e,t,i){return"rgb("+[e,t,i].join(",")+")"},T=function(e,t){t&&e&&t.parentNode!==e&&e.appendChild(t)},E=function(e,t){t&&e&&t.parentNode===e&&e.removeChild(t)},R=function(e,t,i){return 1e5*(parseFloat(e)||0)+1e3*(parseFloat(t)||0)+i},D=function(e,t){return"string"==typeof e?e.lastIndexOf("%")>=0?parseFloat(e)/100*t:parseFloat(e):e},O=function(e,t,i){var n=a.parse(t);isNaN(i*=1)&&(i=1),n&&(e.color=A(n[0],n[1],n[2]),e.opacity=i*n[3])},M=function(e){var t=a.parse(e);return[A(t[0],t[1],t[2]),t[3]]},N=function(e,t,i){var n=t.fill;if(null!=n)if(n instanceof g){var r,a=0,s=[0,0],l=0,c=1,d=i.getBoundingRect(),u=d.width,h=d.height;if("linear"===n.type){r="gradient";var p,f=i.transform,m=[n.x*u,n.y*h],v=[n.x2*u,n.y2*h];f&&(o(m,m,f),o(v,v,f)),(a=180*Math.atan2(v[0]-m[0],v[1]-m[1])/Math.PI)<0&&(a+=360),a<1e-6&&(a=0)}else{r="gradientradial";var m=[n.x*u,n.y*h],f=i.transform,b=i.scale,y=u,w=h;s=[(m[0]-d.x)/y,(m[1]-d.y)/w],f&&o(m,m,f);var _=S(y/=21600*b[0],w/=21600*b[1]);l=0/_,c=2*n.r/_-l}var x=n.colorStops.slice();x.sort(function(e,t){return e.offset-t.offset});for(var C=x.length,k=[],I=[],A=0;A<C;A++){var T=x[A],E=M(T.color);I.push(T.offset*c+l+" "+E[0]),(0===A||A===C-1)&&k.push(E)}if(C>=2){var R=k[0][0],D=k[1][0],N=k[0][1]*t.opacity,P=k[1][1]*t.opacity;e.type=r,e.method="none",e.focus="100%",e.angle=a,e.color=R,e.color2=D,e.colors=I.join(","),e.opacity=P,e.opacity2=N}"radial"===r&&(e.focusposition=s.join(","))}else O(e,n,t.opacity)},P=function(e,t){null!=t.lineDash&&(e.dashstyle=t.lineDash.join(" ")),null==t.stroke||t.stroke instanceof g||O(e,t.stroke,t.opacity)},L=function(e,t,i,n){var o="fill"===t,r=e.getElementsByTagName(t)[0];null!=i[t]&&"none"!==i[t]&&(o||!o&&i.lineWidth)?(e[o?"filled":"stroked"]="true",i[t]instanceof g&&E(e,r),r||(r=m.createNode(t)),o?N(r,i,n):P(r,i),T(e,r)):(e[o?"filled":"stroked"]="false",E(e,r))},B=[[],[],[]],F=function(e,t){var i=v.M,n=v.C,r=v.L,a=v.A,s=v.Q,l=[],c=e.data,d=e.len();for(h=0;h<d;){switch(u=c[h++],S="",w=0,u){case i:S=" m ",w=1,p=c[h++],f=c[h++],B[0][0]=p,B[0][1]=f;break;case r:S=" l ",w=1,p=c[h++],f=c[h++],B[0][0]=p,B[0][1]=f;break;case s:case n:var u,h,p,f,g,m,w=3,S=" c ",C=c[h++],k=c[h++],I=c[h++],A=c[h++];u===s?(g=I,m=A,I=(I+2*C)/3,A=(A+2*k)/3,C=(p+2*C)/3,k=(f+2*k)/3):(g=c[h++],m=c[h++]),B[0][0]=C,B[0][1]=k,B[1][0]=I,B[1][1]=A,B[2][0]=g,B[2][1]=m,p=g,f=m;break;case a:var T=0,E=0,R=1,D=1,O=0;t&&(T=t[4],E=t[5],R=y(t[0]*t[0]+t[1]*t[1]),D=y(t[2]*t[2]+t[3]*t[3]),O=Math.atan2(-t[1]/D,t[0]/R));var M=c[h++],N=c[h++],P=c[h++],L=c[h++],F=c[h++]+O,V=c[h++]+F+O;h++;var z=c[h++],H=M+_(F)*P,W=N+x(F)*L,C=M+_(V)*P,k=N+x(V)*L,Y=z?" wa ":" at ";1e-4>Math.abs(H-C)&&(Math.abs(V-F)>.01?z&&(H+=.0125):1e-4>Math.abs(W-N)?z&&H<M||!z&&H>M?k-=.0125:k+=.0125:z&&W<N||!z&&W>N?C+=.0125:C-=.0125),l.push(Y,b(((M-P)*R+T)*21600-10800),",",b(((N-L)*D+E)*21600-10800),",",b(((M+P)*R+T)*21600-10800),",",b(((N+L)*D+E)*21600-10800),",",b((H*R+T)*21600-10800),",",b((W*D+E)*21600-10800),",",b((C*R+T)*21600-10800),",",b((k*D+E)*21600-10800)),p=C,f=k;break;case v.R:var U=B[0],G=B[1];U[0]=c[h++],U[1]=c[h++],G[0]=U[0]+c[h++],G[1]=U[1]+c[h++],t&&(o(U,U,t),o(G,G,t)),U[0]=b(21600*U[0]-10800),G[0]=b(21600*G[0]-10800),U[1]=b(21600*U[1]-10800),G[1]=b(21600*G[1]-10800),l.push(" m ",U[0],",",U[1]," l ",G[0],",",U[1]," l ",G[0],",",G[1]," l ",U[0],",",G[1]);break;case v.Z:l.push(" x ")}if(w>0){l.push(S);for(var Z=0;Z<w;Z++){var j=B[Z];t&&o(j,j,t),l.push(b(21600*j[0]-10800),",",b(21600*j[1]-10800),Z<w-1?",":"")}}}return l.join("")};p.prototype.brushVML=function(e){var t=this.style,i=this._vmlEl;i||(I(i=m.createNode("shape")),this._vmlEl=i),L(i,"fill",t,this),L(i,"stroke",t,this);var n=this.transform,o=null!=n,r=i.getElementsByTagName("stroke")[0];if(r){var a=t.lineWidth;o&&!t.strokeNoScale&&(a*=y(w(n[0]*n[3]-n[1]*n[2]))),r.weight=a+"px"}var s=this.path||(this.path=new f);this.__dirtyPath&&(s.beginPath(),s.subPixelOptimize=!1,this.buildPath(s,this.shape),s.toStatic(),this.__dirtyPath=!1),i.path=F(s,this.transform),i.style.zIndex=R(this.zlevel,this.z,this.z2),T(e,i),null!=t.text?this.drawRectText(e,this.getBoundingRect()):this.removeRectText(e)},p.prototype.onRemove=function(e){E(e,this._vmlEl),this.removeRectText(e)},p.prototype.onAdd=function(e){T(e,this._vmlEl),this.appendRectText(e)},u.prototype.brushVML=function(e){var t,i,n,r,a=this.style,s=a.image;if("object"==typeof(t=s)&&t.tagName&&"IMG"===t.tagName.toUpperCase()){var l=s.src;if(l===this._imageSrc)i=this._imageWidth,n=this._imageHeight;else{var c=s.runtimeStyle,d=c.width,u=c.height;c.width="auto",c.height="auto",i=s.width,n=s.height,c.width=d,c.height=u,this._imageSrc=l,this._imageWidth=i,this._imageHeight=n}s=l}else s===this._imageSrc&&(i=this._imageWidth,n=this._imageHeight);if(s){var h=a.x||0,p=a.y||0,f=a.width,g=a.height,v=a.sWidth,w=a.sHeight,_=a.sx||0,x=a.sy||0,C=this._vmlEl;C||(I(C=m.doc.createElement("div")),this._vmlEl=C);var A=C.style,E=!1,D=1,O=1;if(this.transform&&(D=y((r=this.transform)[0]*r[0]+r[1]*r[1]),O=y(r[2]*r[2]+r[3]*r[3]),E=r[1]||r[2]),E){var M=[h,p],N=[h+f,p],P=[h,p+g],L=[h+f,p+g];o(M,M,r),o(N,N,r),o(P,P,r),o(L,L,r);var B=S(M[0],N[0],P[0],L[0]),F=S(M[1],N[1],P[1],L[1]),V=[];V.push("M11=",r[0]/D,",","M12=",r[2]/O,",","M21=",r[1]/D,",","M22=",r[3]/O,",","Dx=",b(h*D+r[4]),",","Dy=",b(p*O+r[5])),A.padding="0 "+b(B)+"px "+b(F)+"px 0",A.filter=k+".Matrix("+V.join("")+", SizingMethod=clip)"}else r&&(h=h*D+r[4],p=p*O+r[5]),A.filter="",A.left=b(h)+"px",A.top=b(p)+"px";var z=this._imageEl,H=this._cropEl;z||(z=m.doc.createElement("div"),this._imageEl=z);var W=z.style;if(v&&w){if(i&&n)W.width=b(D*i*f/v)+"px",W.height=b(O*n*g/w)+"px";else{var Y=new Image,U=this;Y.onload=function(){Y.onload=null,i=Y.width,n=Y.height,W.width=b(D*i*f/v)+"px",W.height=b(O*n*g/w)+"px",U._imageWidth=i,U._imageHeight=n,U._imageSrc=s},Y.src=s}H||((H=m.doc.createElement("div")).style.overflow="hidden",this._cropEl=H);var G=H.style;G.width=b((f+_*f/v)*D),G.height=b((g+x*g/w)*O),G.filter=k+".Matrix(Dx="+-_*f/v*D+",Dy="+-x*g/w*O+")",H.parentNode||C.appendChild(H),z.parentNode!==H&&H.appendChild(z)}else W.width=b(D*f)+"px",W.height=b(O*g)+"px",C.appendChild(z),H&&H.parentNode&&(C.removeChild(H),this._cropEl=null);var Z="",j=a.opacity;j<1&&(Z+=".Alpha(opacity="+b(100*j)+") "),W.filter=Z+=k+".AlphaImageLoader(src="+s+", SizingMethod=scale)",C.style.zIndex=R(this.zlevel,this.z,this.z2),T(e,C),null!=a.text&&this.drawRectText(e,this.getBoundingRect())}},u.prototype.onRemove=function(e){E(e,this._vmlEl),this._vmlEl=null,this._cropEl=null,this._imageEl=null,this.removeRectText(e)},u.prototype.onAdd=function(e){T(e,this._vmlEl),this.appendRectText(e)};var V="normal",z={},H=0,W=document.createElement("div"),Y=function(e){var t=z[e];if(!t){H>100&&(H=0,z={});var i,n=W.style;try{n.font=e,i=n.fontFamily.split(",")[0]}catch(e){}t={style:n.fontStyle||V,variant:n.fontVariant||V,weight:n.fontWeight||V,size:0|parseFloat(n.fontSize||12),family:i||"Microsoft YaHei"},z[e]=t,H++}return t};s.$override("measureText",function(e,t){var i=m.doc;C||((C=i.createElement("div")).style.cssText="position:absolute;top:-20000px;left:0;padding:0;margin:0;border:none;white-space:pre;",m.doc.body.appendChild(C));try{C.style.font=t}catch(e){}return C.innerHTML="",C.appendChild(i.createTextNode(e)),{width:C.offsetWidth}});for(var U=new r,G=function(e,t,i,n){var r,a,c,d,u,h=this.style;this.__dirty&&l.normalizeTextStyle(h,!0);var p=h.text;if(null!=p&&(p+=""),p){if(h.rich){var f=s.parseRichText(p,h);p=[];for(var g=0;g<f.lines.length;g++){for(var v=f.lines[g].tokens,y=[],w=0;w<v.length;w++)y.push(v[w].text);p.push(y.join(""))}p=p.join("\n")}var _=h.textAlign,x=h.textVerticalAlign,S=Y(h.font),C=S.style+" "+S.variant+" "+S.weight+" "+S.size+'px "'+S.family+'"';i=i||s.getBoundingRect(p,C,_,x,h.textPadding,h.textLineHeight);var k=this.transform;if(k&&!n&&(U.copy(t),U.applyTransform(k),t=U),n)r=t.x,a=t.y;else{var A=h.textPosition,E=h.textDistance;if(A instanceof Array)r=t.x+D(A[0],t.width),a=t.y+D(A[1],t.height),_=_||"left";else{var O=s.adjustTextPositionOnRect(A,t,E);r=O.x,a=O.y,_=_||O.textAlign,x=x||O.textVerticalAlign}}r=s.adjustTextX(r,i.width,_),a=s.adjustTextY(a,i.height,x)+i.height/2;var M=m.createNode,N=this._textVmlEl;N?d=(c=(u=N.firstChild).nextSibling).nextSibling:(N=M("line"),c=M("path"),d=M("textpath"),u=M("skew"),d.style["v-text-align"]="left",I(N),c.textpathok=!0,d.on=!0,N.from="0 0",N.to="1000 0.05",T(N,u),T(N,c),T(N,d),this._textVmlEl=N);var P=[r,a],B=N.style;k&&n?(o(P,P,k),u.on=!0,u.matrix=k[0].toFixed(3)+","+k[2].toFixed(3)+","+k[1].toFixed(3)+","+k[3].toFixed(3)+",0,0",u.offset=(b(P[0])||0)+","+(b(P[1])||0),u.origin="0 0",B.left="0px",B.top="0px"):(u.on=!1,B.left=b(r)+"px",B.top=b(a)+"px"),d.string=String(p).replace(/&/g,"&amp;").replace(/"/g,"&quot;");try{d.style.font=C}catch(e){}L(N,"fill",{fill:h.textFill,opacity:h.opacity},this),L(N,"stroke",{stroke:h.textStroke,opacity:h.opacity,lineDash:h.lineDash},this),N.style.zIndex=R(this.zlevel,this.z,this.z2),T(e,N)}},Z=function(e){E(e,this._textVmlEl),this._textVmlEl=null},j=function(e){T(e,this._textVmlEl)},q=[c,d,u,p,h],K=0;K<q.length;K++){var X=q[K].prototype;X.drawRectText=G,X.removeRectText=Z,X.appendRectText=j}h.prototype.brushVML=function(e){var t=this.style;null!=t.text?this.drawRectText(e,{x:t.x||0,y:t.y||0,width:0,height:0},this.getBoundingRect(),!0):this.removeRectText(e)},h.prototype.onRemove=function(e){this.removeRectText(e)},h.prototype.onAdd=function(e){this.appendRectText(e)}}},77658:function(e,t,i){i(35360),(0,i(19206).registerPainter)("vml",i(11004))},19206:function(e,t,i){var n=i(68609),o=i(57674),r=i(66023),a=i(95725),s=i(16949),l=i(2837),c=i(72482),d=i(98158),u=!o.canvasSupported,h={canvas:l},p={},f=function(e,t,i){i=i||{},this.dom=t,this.id=e;var n=this,l=new s,p=i.renderer;if(u){if(!h.vml)throw Error("You need to require 'zrender/vml/vml' to support IE8");p="vml"}else p&&h[p]||(p="canvas");var f=new h[p](t,l,i,e);this.storage=l,this.painter=f;var g=o.node||o.worker?null:new d(f.getViewportRoot());this.handler=new a(l,f,g,f.root),this.animation=new c({stage:{update:r.bind(this.flush,this)}}),this.animation.start(),this._needsRefresh;var m=l.delFromStorage,v=l.addToStorage;l.delFromStorage=function(e){m.call(l,e),e&&e.removeSelfFromZr(n)},l.addToStorage=function(e){v.call(l,e),e.addSelfToZr(n)}};f.prototype={constructor:f,getId:function(){return this.id},add:function(e){this.storage.addRoot(e),this._needsRefresh=!0},remove:function(e){this.storage.delRoot(e),this._needsRefresh=!0},configLayer:function(e,t){this.painter.configLayer&&this.painter.configLayer(e,t),this._needsRefresh=!0},setBackgroundColor:function(e){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this._needsRefresh=!0},refreshImmediately:function(){this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1},refresh:function(){this._needsRefresh=!0},flush:function(){var e;this._needsRefresh&&(e=!0,this.refreshImmediately()),this._needsRefreshHover&&(e=!0,this.refreshHoverImmediately()),e&&this.trigger("rendered")},addHover:function(e,t){if(this.painter.addHover){var i=this.painter.addHover(e,t);return this.refreshHover(),i}},removeHover:function(e){this.painter.removeHover&&(this.painter.removeHover(e),this.refreshHover())},clearHover:function(){this.painter.clearHover&&(this.painter.clearHover(),this.refreshHover())},refreshHover:function(){this._needsRefreshHover=!0},refreshHoverImmediately:function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.refreshHover()},resize:function(e){e=e||{},this.painter.resize(e.width,e.height),this.handler.resize()},clearAnimation:function(){this.animation.clear()},getWidth:function(){return this.painter.getWidth()},getHeight:function(){return this.painter.getHeight()},pathToImage:function(e,t){return this.painter.pathToImage(e,t)},setCursorStyle:function(e){this.handler.setCursorStyle(e)},findHover:function(e,t){return this.handler.findHover(e,t)},on:function(e,t,i){this.handler.on(e,t,i)},off:function(e,t){this.handler.off(e,t)},trigger:function(e,t){this.handler.trigger(e,t)},clear:function(){this.storage.delRoot(),this.painter.clear()},dispose:function(){var e;this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,e=this.id,delete p[e]}},t.version="4.0.7",t.init=function(e,t){var i=new f(n(),e,t);return p[i.id]=i,i},t.dispose=function(e){if(e)e.dispose();else{for(var t in p)p.hasOwnProperty(t)&&p[t].dispose();p={}}return this},t.getInstance=function(e){return p[e]},t.registerPainter=function(e,t){h[e]=t}},78146:function(e,t,i){"use strict";function n(e){return getComputedStyle(e)}function o(e,t){for(var i in t){var n=t[i];"number"==typeof n&&(n+="px"),e.style[i]=n}return e}function r(e){var t=document.createElement("div");return t.className=e,t}i.d(t,{Z:()=>A});var a="undefined"!=typeof Element&&(Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector);function s(e,t){if(!a)throw Error("No element matching method supported");return a.call(e,t)}function l(e){e.remove?e.remove():e.parentNode&&e.parentNode.removeChild(e)}function c(e,t){return Array.prototype.filter.call(e.children,function(e){return s(e,t)})}var d={main:"ps",element:{thumb:function(e){return"ps__thumb-"+e},rail:function(e){return"ps__rail-"+e},consuming:"ps__child--consume"},state:{focus:"ps--focus",clicking:"ps--clicking",active:function(e){return"ps--active-"+e},scrolling:function(e){return"ps--scrolling-"+e}}},u={x:null,y:null};function h(e,t){var i=e.element.classList,n=d.state.scrolling(t);i.contains(n)?clearTimeout(u[t]):i.add(n)}function p(e,t){u[t]=setTimeout(function(){return e.isAlive&&e.element.classList.remove(d.state.scrolling(t))},e.settings.scrollingThreshold)}var f=function(e){this.element=e,this.handlers={}},g={isEmpty:{configurable:!0}};f.prototype.bind=function(e,t){void 0===this.handlers[e]&&(this.handlers[e]=[]),this.handlers[e].push(t),this.element.addEventListener(e,t,!1)},f.prototype.unbind=function(e,t){var i=this;this.handlers[e]=this.handlers[e].filter(function(n){return!!t&&n!==t||(i.element.removeEventListener(e,n,!1),!1)})},f.prototype.unbindAll=function(){for(var e in this.handlers)this.unbind(e)},g.isEmpty.get=function(){var e=this;return Object.keys(this.handlers).every(function(t){return 0===e.handlers[t].length})},Object.defineProperties(f.prototype,g);var m=function(){this.eventElements=[]};function v(e){if("function"==typeof window.CustomEvent)return new CustomEvent(e);var t=document.createEvent("CustomEvent");return t.initCustomEvent(e,!1,!1,void 0),t}m.prototype.eventElement=function(e){var t=this.eventElements.filter(function(t){return t.element===e})[0];return t||(t=new f(e),this.eventElements.push(t)),t},m.prototype.bind=function(e,t,i){this.eventElement(e).bind(t,i)},m.prototype.unbind=function(e,t,i){var n=this.eventElement(e);n.unbind(t,i),n.isEmpty&&this.eventElements.splice(this.eventElements.indexOf(n),1)},m.prototype.unbindAll=function(){this.eventElements.forEach(function(e){return e.unbindAll()}),this.eventElements=[]},m.prototype.once=function(e,t,i){var n=this.eventElement(e),o=function(e){n.unbind(t,o),i(e)};n.bind(t,o)};var b=function(e,t,i,n,o){var r;if(void 0===n&&(n=!0),void 0===o&&(o=!1),"top"===t)r=["contentHeight","containerHeight","scrollTop","y","up","down"];else if("left"===t)r=["contentWidth","containerWidth","scrollLeft","x","left","right"];else throw Error("A proper axis should be provided");!function(e,t,i,n,o){var r=i[0],a=i[1],s=i[2],l=i[3],c=i[4],d=i[5];void 0===n&&(n=!0),void 0===o&&(o=!1);var u=e.element;e.reach[l]=null,u[s]<1&&(e.reach[l]="start"),u[s]>e[r]-e[a]-1&&(e.reach[l]="end"),t&&(u.dispatchEvent(v("ps-scroll-"+l)),t<0?u.dispatchEvent(v("ps-scroll-"+c)):t>0&&u.dispatchEvent(v("ps-scroll-"+d)),n&&(h(e,l),p(e,l))),e.reach[l]&&(t||o)&&u.dispatchEvent(v("ps-"+l+"-reach-"+e.reach[l]))}(e,i,r,n,o)};function y(e){return parseInt(e,10)||0}var w={isWebKit:"undefined"!=typeof document&&"WebkitAppearance"in document.documentElement.style,supportsTouch:"undefined"!=typeof window&&("ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch),supportsIePointer:"undefined"!=typeof navigator&&navigator.msMaxTouchPoints,isChrome:"undefined"!=typeof navigator&&/Chrome/i.test(navigator&&navigator.userAgent)},_=function(e){var t=e.element,i=Math.floor(t.scrollTop);e.containerWidth=t.clientWidth,e.containerHeight=t.clientHeight,e.contentWidth=t.scrollWidth,e.contentHeight=t.scrollHeight;var n=e.xRailContainer,r=e.yRailContainer;(t=n).contains(e.scrollbarXRail)||(c(t,d.element.rail("x")).forEach(function(e){return l(e)}),t.appendChild(e.scrollbarXRail)),(t=r).contains(e.scrollbarYRail)||(c(t,d.element.rail("y")).forEach(function(e){return l(e)}),t.appendChild(e.scrollbarYRail)),t=e.element,!e.settings.suppressScrollX&&e.containerWidth+e.settings.scrollXMarginOffset<e.contentWidth?(e.scrollbarXActive=!0,e.railXWidth=e.containerWidth-e.railXMarginWidth,e.railXRatio=e.containerWidth/e.railXWidth,e.scrollbarXWidth=x(e,y(e.railXWidth*e.containerWidth/e.contentWidth)),e.scrollbarXLeft=y((e.negativeScrollAdjustment+t.scrollLeft)*(e.railXWidth-e.scrollbarXWidth)/(e.contentWidth-e.containerWidth))):e.scrollbarXActive=!1,!e.settings.suppressScrollY&&e.containerHeight+e.settings.scrollYMarginOffset<e.contentHeight?(e.scrollbarYActive=!0,e.railYHeight=e.containerHeight-e.railYMarginHeight,e.railYRatio=e.containerHeight/e.railYHeight,e.scrollbarYHeight=x(e,y(e.railYHeight*e.containerHeight/e.contentHeight)),e.scrollbarYTop=y(i*(e.railYHeight-e.scrollbarYHeight)/(e.contentHeight-e.containerHeight))):e.scrollbarYActive=!1,e.scrollbarXLeft>=e.railXWidth-e.scrollbarXWidth&&(e.scrollbarXLeft=e.railXWidth-e.scrollbarXWidth),e.scrollbarYTop>=e.railYHeight-e.scrollbarYHeight&&(e.scrollbarYTop=e.railYHeight-e.scrollbarYHeight),function(e,t){var i={width:t.railXWidth};if(t.element===t.xRailContainer){var n=Math.floor(e.scrollTop);t.isRtl?i.left=t.negativeScrollAdjustment+e.scrollLeft+t.containerWidth-t.contentWidth:i.left=e.scrollLeft,t.isScrollbarXUsingBottom?i.bottom=t.scrollbarXBottom-n:i.top=t.scrollbarXTop+n}o(t.scrollbarXRail,i);var r={height:t.railYHeight};t.element===t.yRailContainer&&(r.top=Math.round(e.scrollTop),t.isScrollbarYUsingRight?t.isRtl?r.right=t.contentWidth-(t.negativeScrollAdjustment+e.scrollLeft)-t.scrollbarYRight-t.scrollbarYOuterWidth:r.right=t.scrollbarYRight-e.scrollLeft:t.isRtl?r.left=t.negativeScrollAdjustment+e.scrollLeft+2*t.containerWidth-t.contentWidth-t.scrollbarYLeft-t.scrollbarYOuterWidth:r.left=t.scrollbarYLeft+e.scrollLeft),o(t.scrollbarYRail,r),o(t.scrollbarX,{left:t.scrollbarXLeft,width:t.scrollbarXWidth-t.railBorderXWidth}),o(t.scrollbarY,{top:t.scrollbarYTop,height:t.scrollbarYHeight-t.railBorderYWidth})}(t,e),e.scrollbarXActive?n.classList.add(d.state.active("x")):(n.classList.remove(d.state.active("x")),e.scrollbarXWidth=0,e.scrollbarXLeft=0,t.scrollLeft=0),e.scrollbarYActive?(r.classList.add(d.state.active("y")),t.classList.add(d.state.active("y"))):(r.classList.remove(d.state.active("y")),e.scrollbarYHeight=0,e.scrollbarYTop=0,t.scrollTop=0)};function x(e,t){return e.settings.minScrollbarLength&&(t=Math.max(t,e.settings.minScrollbarLength)),e.settings.maxScrollbarLength&&(t=Math.min(t,e.settings.maxScrollbarLength)),t}var S=function(){var e=!1;try{new MouseEvent("mousedown"),e=!0}catch(e){}return e}();function C(e,t){var i=t[0],n=t[1],o=t[2],r=t[3],a=t[4],s=t[5],l=t[6],c=t[7],u=t[8],f=e.element,g=null,m=null,v=null;function b(t){f[l]=g+v*(t[o]-m),h(e,c),_(e),t.stopPropagation(),t.preventDefault()}function y(){p(e,c),e[u].classList.remove(d.state.clicking),e.event.unbind(e.ownerDocument,"mousemove",b)}e.event.bind(e[a],"mousedown",function(t){g=f[l],m=t[o],v=(e[n]-e[i])/(e[r]-e[s]),e.event.bind(e.ownerDocument,"mousemove",b),e.event.once(e.ownerDocument,"mouseup",y),e[u].classList.add(d.state.clicking),t.stopPropagation(),t.preventDefault()})}var k={"click-rail":function(e){e.event.bind(e.scrollbarY,"mousedown",function(e){return e.stopPropagation()}),e.event.bind(e.scrollbarYRail,"mousedown",function(t){var i=t.pageY-window.pageYOffset-e.scrollbarYRail.getBoundingClientRect().top,n=i>e.scrollbarYTop?1:-1;if(1===n&&i<e.scrollbarYTop+e.scrollbarYHeight){t.stopPropagation(),S&&e.scrollbarY.dispatchEvent(new MouseEvent("mousedown",t));return}e.element.scrollTop+=n*e.containerHeight,_(e),t.stopPropagation()}),e.event.bind(e.scrollbarX,"mousedown",function(e){return e.stopPropagation()}),e.event.bind(e.scrollbarXRail,"mousedown",function(t){var i=t.pageX-window.pageXOffset-e.scrollbarXRail.getBoundingClientRect().left,n=i>e.scrollbarXLeft?1:-1;if(1===n&&i<e.scrollbarXLeft+e.scrollbarXWidth){t.stopPropagation(),S&&e.scrollbarX.dispatchEvent(new MouseEvent("mousedown",t));return}e.element.scrollLeft+=n*e.containerWidth,_(e),t.stopPropagation()})},"drag-thumb":function(e){C(e,["containerWidth","contentWidth","pageX","railXWidth","scrollbarX","scrollbarXWidth","scrollLeft","x","scrollbarXRail"]),C(e,["containerHeight","contentHeight","pageY","railYHeight","scrollbarY","scrollbarYHeight","scrollTop","y","scrollbarYRail"])},keyboard:function(e){var t=e.element;e.event.bind(e.ownerDocument,"keydown",function(i){if(!(i.isDefaultPrevented&&i.isDefaultPrevented())&&!i.defaultPrevented&&(s(t,":hover")||s(e.scrollbarX,":focus")||s(e.scrollbarY,":focus"))){var n,o=document.activeElement?document.activeElement:e.ownerDocument.activeElement;if(o){if("IFRAME"===o.tagName)o=o.contentDocument.activeElement;else for(;o.shadowRoot;)o=o.shadowRoot.activeElement;if(s(n=o,"input,[contenteditable]")||s(n,"select,[contenteditable]")||s(n,"textarea,[contenteditable]")||s(n,"button,[contenteditable]"))return}var r=0,a=0;switch(i.which){case 37:r=i.metaKey?-e.contentWidth:i.altKey?-e.containerWidth:-30;break;case 38:a=i.metaKey?e.contentHeight:i.altKey?e.containerHeight:30;break;case 39:r=i.metaKey?e.contentWidth:i.altKey?e.containerWidth:30;break;case 40:a=i.metaKey?-e.contentHeight:i.altKey?-e.containerHeight:-30;break;case 32:a=i.shiftKey?e.containerHeight:-e.containerHeight;break;case 33:a=e.containerHeight;break;case 34:a=-e.containerHeight;break;case 36:a=e.contentHeight;break;case 35:a=-e.contentHeight;break;default:return}e.settings.suppressScrollX&&0!==r||(!e.settings.suppressScrollY||0===a)&&(t.scrollTop-=a,t.scrollLeft+=r,_(e),function(i,n){var o=Math.floor(t.scrollTop);if(0===i){if(!e.scrollbarYActive)return!1;if(0===o&&n>0||o>=e.contentHeight-e.containerHeight&&n<0)return!e.settings.wheelPropagation}var r=t.scrollLeft;if(0===n){if(!e.scrollbarXActive)return!1;if(0===r&&i<0||r>=e.contentWidth-e.containerWidth&&i>0)return!e.settings.wheelPropagation}return!0}(r,a)&&i.preventDefault())}})},wheel:function(e){var t=e.element;function i(i){var o=(s=i.deltaX,l=-1*i.deltaY,((void 0===s||void 0===l)&&(s=-1*i.wheelDeltaX/6,l=i.wheelDeltaY/6),i.deltaMode&&1===i.deltaMode&&(s*=10,l*=10),s!=s&&l!=l&&(s=0,l=i.wheelDelta),i.shiftKey)?[-l,-s]:[s,l]),r=o[0],a=o[1];if(!function(e,i,o){if(!w.isWebKit&&t.querySelector("select:focus"))return!0;if(!t.contains(e))return!1;for(var r=e;r&&r!==t;){if(r.classList.contains(d.element.consuming))return!0;var a=n(r);if([a.overflow,a.overflowX,a.overflowY].join("").match(/(scroll|auto)/)){var s=r.scrollHeight-r.clientHeight;if(s>0&&!(0===r.scrollTop&&o>0)&&!(r.scrollTop===s&&o<0))return!0;var l=r.scrollWidth-r.clientWidth;if(l>0&&!(0===r.scrollLeft&&i<0)&&!(r.scrollLeft===l&&i>0))return!0}r=r.parentNode}return!1}(i.target,r,a)){var s,l,c,u,h,p,f,g,m=!1;e.settings.useBothWheelAxes?e.scrollbarYActive&&!e.scrollbarXActive?(a?t.scrollTop-=a*e.settings.wheelSpeed:t.scrollTop+=r*e.settings.wheelSpeed,m=!0):e.scrollbarXActive&&!e.scrollbarYActive&&(r?t.scrollLeft+=r*e.settings.wheelSpeed:t.scrollLeft-=a*e.settings.wheelSpeed,m=!0):(t.scrollTop-=a*e.settings.wheelSpeed,t.scrollLeft+=r*e.settings.wheelSpeed),_(e),(m=m||(u=Math.floor(t.scrollTop),h=0===t.scrollTop,p=u+t.offsetHeight===t.scrollHeight,f=0===t.scrollLeft,g=t.scrollLeft+t.offsetWidth===t.scrollWidth,!(Math.abs(a)>Math.abs(r)?h||p:f||g)||!e.settings.wheelPropagation))&&!i.ctrlKey&&(i.stopPropagation(),i.preventDefault())}}void 0!==window.onwheel?e.event.bind(t,"wheel",i):void 0!==window.onmousewheel&&e.event.bind(t,"mousewheel",i)},touch:function(e){if(w.supportsTouch||w.supportsIePointer){var t=[1,1],i=e.element,o={},r=0,a={},s=null;w.supportsTouch?(e.event.bind(i,"touchstart",h),e.event.bind(i,"touchmove",p),e.event.bind(i,"touchend",f)):w.supportsIePointer&&(window.PointerEvent?(e.event.bind(i,"pointerdown",h),e.event.bind(i,"pointermove",p),e.event.bind(i,"pointerup",f)):window.MSPointerEvent&&(e.event.bind(i,"MSPointerDown",h),e.event.bind(i,"MSPointerMove",p),e.event.bind(i,"MSPointerUp",f)))}function l(t,n){i.scrollTop-=n,i.scrollLeft-=t,_(e)}function c(e){return e.targetTouches?e.targetTouches[0]:e}function u(e){return(!e.pointerType||"pen"!==e.pointerType||0!==e.buttons)&&(!!e.targetTouches&&1===e.targetTouches.length||!!e.pointerType&&"mouse"!==e.pointerType&&e.pointerType!==e.MSPOINTER_TYPE_MOUSE)}function h(i){if(u(i)){var n=c(i);o.pageX=n.pageX,o.pageY=n.pageY,function(i){if(!i){t=[1,1];return}t=i===e.scrollbarX?[-1,0]:i===e.scrollbarY?[0,-1]:[1,1]}(n.target),r=new Date().getTime(),null!==s&&clearInterval(s)}}function p(s){if(u(s)){var h=c(s),p={pageX:h.pageX,pageY:h.pageY},f=(p.pageX-o.pageX)*t[0],g=(p.pageY-o.pageY)*t[1];if(!function(e,t,o){if(!i.contains(e))return!1;for(var r=e;r&&r!==i;){if(r.classList.contains(d.element.consuming))return!0;var a=n(r);if([a.overflow,a.overflowX,a.overflowY].join("").match(/(scroll|auto)/)){var s=r.scrollHeight-r.clientHeight;if(s>0&&!(0===r.scrollTop&&o>0)&&!(r.scrollTop===s&&o<0))return!0;var l=r.scrollLeft-r.clientWidth;if(l>0&&!(0===r.scrollLeft&&t<0)&&!(r.scrollLeft===l&&t>0))return!0}r=r.parentNode}return!1}(s.target,f,g)){l(f,g),o=p;var m=new Date().getTime(),v=m-r;v>0&&(a.x=f/v,a.y=g/v,r=m),function(t,n){var o=Math.floor(i.scrollTop),r=i.scrollLeft,a=Math.abs(t),s=Math.abs(n);if(s>a){if(n<0&&o===e.contentHeight-e.containerHeight||n>0&&0===o)return 0===window.scrollY&&n>0&&w.isChrome}else a>s&&t<0&&(e.contentWidth,e.containerWidth);return!0}(f,g)&&s.preventDefault()}}}function f(){e.settings.swipeEasing&&(clearInterval(s),s=setInterval(function(){if(e.isInitialized||!a.x&&!a.y||.01>Math.abs(a.x)&&.01>Math.abs(a.y))return void clearInterval(s);l(30*a.x,30*a.y),a.x*=.8,a.y*=.8},10))}}},I=function(e,t){var i,a,s,l=this;if(void 0===t&&(t={}),"string"==typeof e&&(e=document.querySelector(e)),!e||!e.nodeName)throw Error("no element is specified to initialize PerfectScrollbar");for(var c in this.element=e,e.classList.add(d.main),this.settings={handlers:["click-rail","drag-thumb","keyboard","wheel","touch"],maxScrollbarLength:null,minScrollbarLength:null,scrollingThreshold:1e3,scrollXMarginOffset:0,scrollYMarginOffset:0,suppressScrollX:!1,suppressScrollY:!1,swipeEasing:!0,useBothWheelAxes:!1,wheelPropagation:!0,wheelSpeed:1},t)l.settings[c]=t[c];this.containerWidth=null,this.containerHeight=null,this.contentWidth=null,this.contentHeight=null;var u=function(){return e.classList.add(d.state.focus)},h=function(){return e.classList.remove(d.state.focus)};this.xRailContainer=e,this.yRailContainer=e,t&&(t.xRailContainer&&(this.xRailContainer=document.querySelector(t.xRailContainer)),t.yRailContainer&&(this.yRailContainer=document.querySelector(t.yRailContainer))),this.isRtl="rtl"===n(e).direction,this.isNegativeScroll=(i=e.scrollLeft,a=null,e.scrollLeft=-1,a=e.scrollLeft<0,e.scrollLeft=i,a),this.negativeScrollAdjustment=this.isNegativeScroll?e.scrollWidth-e.clientWidth:0,this.event=new m,this.ownerDocument=e.ownerDocument||document,this.scrollbarXRail=r(d.element.rail("x")),e.appendChild(this.scrollbarXRail),this.scrollbarX=r(d.element.thumb("x")),this.scrollbarXRail.appendChild(this.scrollbarX),this.scrollbarX.setAttribute("tabindex",0),this.event.bind(this.scrollbarX,"focus",u),this.event.bind(this.scrollbarX,"blur",h),this.scrollbarXActive=null,this.scrollbarXWidth=null,this.scrollbarXLeft=null;var p=n(this.scrollbarXRail);this.scrollbarXBottom=parseInt(p.bottom,10),isNaN(this.scrollbarXBottom)?(this.isScrollbarXUsingBottom=!1,this.scrollbarXTop=y(p.top)):this.isScrollbarXUsingBottom=!0,this.railBorderXWidth=y(p.borderLeftWidth)+y(p.borderRightWidth),o(this.scrollbarXRail,{display:"block"}),this.railXMarginWidth=y(p.marginLeft)+y(p.marginRight),o(this.scrollbarXRail,{display:""}),this.railXWidth=null,this.railXRatio=null,this.scrollbarYRail=r(d.element.rail("y")),e.appendChild(this.scrollbarYRail),this.scrollbarY=r(d.element.thumb("y")),this.scrollbarYRail.appendChild(this.scrollbarY),this.scrollbarY.setAttribute("tabindex",0),this.event.bind(this.scrollbarY,"focus",u),this.event.bind(this.scrollbarY,"blur",h),this.scrollbarYActive=null,this.scrollbarYHeight=null,this.scrollbarYTop=null;var f=n(this.scrollbarYRail);this.scrollbarYRight=parseInt(f.right,10),isNaN(this.scrollbarYRight)?(this.isScrollbarYUsingRight=!1,this.scrollbarYLeft=y(f.left)):this.isScrollbarYUsingRight=!0,this.scrollbarYOuterWidth=this.isRtl?y((s=n(this.scrollbarY)).width)+y(s.paddingLeft)+y(s.paddingRight)+y(s.borderLeftWidth)+y(s.borderRightWidth):null,this.railBorderYWidth=y(f.borderTopWidth)+y(f.borderBottomWidth),o(this.scrollbarYRail,{display:"block"}),this.railYMarginHeight=y(f.marginTop)+y(f.marginBottom),o(this.scrollbarYRail,{display:""}),this.railYHeight=null,this.railYRatio=null,this.reach={x:e.scrollLeft<=0?"start":e.scrollLeft>=this.contentWidth-this.containerWidth?"end":null,y:e.scrollTop<=0?"start":e.scrollTop>=this.contentHeight-this.containerHeight?"end":null},this.isAlive=!0,this.settings.handlers.forEach(function(e){return k[e](l)}),this.lastScrollTop=Math.floor(e.scrollTop),this.lastScrollLeft=e.scrollLeft,this.event.bind(this.element,"scroll",function(e){return l.onScroll(e)}),_(this)};I.prototype.update=function(){this.isAlive&&(this.negativeScrollAdjustment=this.isNegativeScroll?this.element.scrollWidth-this.element.clientWidth:0,o(this.scrollbarXRail,{display:"block"}),o(this.scrollbarYRail,{display:"block"}),this.railXMarginWidth=y(n(this.scrollbarXRail).marginLeft)+y(n(this.scrollbarXRail).marginRight),this.railYMarginHeight=y(n(this.scrollbarYRail).marginTop)+y(n(this.scrollbarYRail).marginBottom),o(this.scrollbarXRail,{display:"none"}),o(this.scrollbarYRail,{display:"none"}),_(this),b(this,"top",0,!1,!0),b(this,"left",0,!1,!0),o(this.scrollbarXRail,{display:""}),o(this.scrollbarYRail,{display:""}))},I.prototype.onScroll=function(e){this.isAlive&&(_(this),b(this,"top",this.element.scrollTop-this.lastScrollTop),b(this,"left",this.element.scrollLeft-this.lastScrollLeft),this.lastScrollTop=Math.floor(this.element.scrollTop),this.lastScrollLeft=this.element.scrollLeft)},I.prototype.destroy=function(){this.isAlive&&(this.event.unbindAll(),l(this.scrollbarX),l(this.scrollbarY),l(this.scrollbarXRail),l(this.scrollbarYRail),this.removePsClasses(),this.element=null,this.scrollbarX=null,this.scrollbarY=null,this.scrollbarXRail=null,this.scrollbarYRail=null,this.isAlive=!1)},I.prototype.removePsClasses=function(){this.element.className=this.element.className.split(" ").filter(function(e){return!e.match(/^ps([-_].+|)$/)}).join(" ")};let A=I},61367:function(e,t,i){"use strict";function n(e,t){let i=t.find(t=>{let[i,n]=t;return n instanceof RegExp?n.test(e):"function"==typeof n&&n(e)});return i?i[0]:null}i.r(t),i.d(t,{isBrowser:()=>a,isIPadOS:()=>v,isIOS:()=>b,getBrowser:()=>r,isNode:()=>s,isPlatform:()=>m,getPlatform:()=>g,isChrome:()=>c,isFirefox:()=>u,isOSKSupported:()=>E,isSafari:()=>d,isMobileLayout:()=>T,isAndroid:()=>y,isWindows:()=>w,getNetworkProtocol:()=>k,isOpera:()=>l,isTouchSupported:()=>R,isAndroidWebview:()=>p,isIOSFamily:()=>S,isLinux:()=>_,getNetworkConnectionParallelism:()=>I,isMac:()=>x});let o="undefined"==typeof navigator?"node":n(navigator.userAgent,[["opera",/opera/i],["chrome",/chrome/i],["safari",/safari/i],["firefox",/gecko\/\d/i]]);function r(){return o}function a(e){return o===e}function s(){return a("node")}function l(){return a("opera")}function c(){return a("chrome")}function d(){return a("safari")}function u(){return a("firefox")}let h="undefined"!=typeof navigator&&/\bwv\b/.test(navigator.userAgent);function p(){return h}let f="undefined"==typeof navigator?null:n(navigator.userAgent,[["ios",()=>/iPhone|iPad|iPod/i.test(navigator.platform)],["ipad",()=>/MacIntel/i.test(navigator.platform)&&navigator.maxTouchPoints>1],["android",/android/i],["windows",/windows|win32/i],["linux",/linux/i],["mac",/Mac_PowerPC|Macintosh/i]]);function g(){return f}function m(e){return f===e}function v(){return m("ipad")}function b(){return m("ios")}function y(){return m("android")}function w(){return m("windows")}function _(){return m("linux")}function x(){return m("mac")}function S(){return b()||v()}let C=function(){if("undefined"==typeof performance)return null;let e=performance.getEntriesByType?.("navigation")[0]||performance.getEntries?.()[0];return e&&e.nextHopProtocol||null}();function k(){return C}function I(){switch(C){case"http/0.9":case"http/1.0":case"http/1.1":return"limited";case"h2":case"h2c":case"h3":return"unlimited";default:return"unknown"}}let A="undefined"!=typeof navigator&&/mobile/i.test(navigator.userAgent);function T(){return A||b()||y()}function E(){return b()||v()||y()}function R(){return navigator.maxTouchPoints>0}},92325:function(e,t,i){"use strict";i.d(t,{KV:()=>ec,kL:()=>W,cQ:()=>o,xs:()=>n});var n={};i.r(n),i.d(n,{BLANK_AS:()=>f,CHART_TYPE:()=>s,DEFAULT:()=>r,DIRECTION:()=>a,GROUPING:()=>l,LABEL_POSITION:()=>h,LEGEND_POSITION:()=>u,LINE_DASH:()=>p,MARKER_SYMBOL:()=>d,ORIENTATION:()=>c});var o={};i.r(o),i.d(o,{PLOT_STYLE:()=>w,ensureString:()=>S,getFontHeight:()=>_,isDefined:()=>m,isEmpty:()=>g,isFunction:()=>v,isNumber:()=>b,isString:()=>y,parseHexColor:()=>C,trimArray:()=>x});let r={TYPE:"bar",BAR_DIR:"col",GROUPING:"standard",DATA_DIR:"row",ORIENTATION:"minMax",MARKER_SYMBOL:"circle",LEGEND_POSITION:"r",LABEL_POSITION:"t",LINE_DASH:"solid",BLANK_AS:"gap",BACKGROUND:"#FFFFFF"},a={ROW:"row",COL:"col"},s={BAR:"bar",LINE:"line",AREA:"area",PIE:"pie",SCATTER:"scatter",HYBRID:"hybrid"},l={STANDARD:"standard",STACKED:"stacked",PERCENT:"percentStacked"},c={SEQUENCE:"minMax",REVERSE:"maxMin"},d={CIRCLE:"circle",DIAMOND:"diamond",TRIANGLE:"triangle",SQUARE:"square",NONE:"none"},u={TOP:"t",LEFT:"l",RIGHT:"r",BOTTOM:"b"},h={TOP:"t",LEFT:"l",RIGHT:"r",BOTTOM:"b",INSIDE_BASE:"inBase",INSIDE_END:"inEnd",INSIDE_CENTER:"inCenter"},p={SOLID:"solid",DASH:"dash",DOT:"dot"},f={ZERO:"zero",GAP:"gap",SPAN:"span"};function g(e){return null==e||""===e}function m(e){return null!=e}function v(e){return"[object Function]"===Object.prototype.toString.call(e)}function b(e){return"number"==typeof e&&isFinite(e)}function y(e){return"string"==typeof e}let w={titleGap:8,legendWidth:72,padding:{top:32,bottom:32,left:16,right:16},plotGap:12,cm2pxMultiplier:72/2.54/.75};function _(e){return 1.4*e}function x(e,t){let i;for(;(i=e.length)&&null==e[i-1];)t&&(e=e.slice(),t=!1),e.pop();return e}function S(e){return m(e)?String(e):""}function C(e){if(e.length<=7)return e;let t=parseInt(e.substr(1,2),16),i=parseInt(e.substr(3,2),16),n=parseInt(e.substr(5,2),16),o=Math.round(parseInt(e.substr(7,2),16)/255*100)/100;return`rgba(${t},${i},${n},${o})`}var k=i(41385);class I{constructor(e){this.chartInfo=e}initData(){let e=this.chartInfo.getEmptyCategory(),t=this.chartInfo.getEmptySeries();function i(e){let t=[];for(let i=0;i<e.length;i++)e[i]||t.push(i);return t}this._categoryIndexMap=i(e),this._seriesIndexMap=i(t);let n=this.chartInfo.getSeriesCat(),o=this.chartInfo.calcSeriesData(),r=(t,i)=>!e[i];for(let e of(o=o.filter((e,i)=>!t[i]),n=n.filter(r),o))e.data=e.data.filter(r);this._category=this._processCategory(n),this._data=this._processData(o)}_getNullValue(){return null}_processCategory(e){for(let t=0,i=e.length;t<i;t++)g(e[t])&&(e[t]="");return e}_processData(e){let t=this._getNullValue();for(let i=0,n=e.length;i<n;i++){let n=e[i].data;for(let e=0,i=n.length;e<i;e++)b(n[e])||(n[e]=t);e[i].name=this._uniquifyName(e[i].name,i)}return e}_calcPlotBound(){let e=this.chartInfo.ensurePlotArea().ensureLayout();if(!e.getEnabled())return this.chartInfo.calcPlotBound();let t=(e.getTop()||0)*w.cm2pxMultiplier,i=(e.getLeft()||0)*w.cm2pxMultiplier;return{top:t,left:i,right:(e.getRight()||0)*w.cm2pxMultiplier,bottom:(e.getBottom()||0)*w.cm2pxMultiplier}}convert(e,t){return this._containerWidth=e||560,this._containerHeight=t||410,this._plotBound=this._calcPlotBound(),{title:this.convertTitle(),legend:this.convertLegend(),series:this.convertSeries(),color:this.convertColor(),backgroundColor:this.convertBackground(),textStyle:this.convertTextStyle(this.chartInfo.ensureGlobalTextStyle()),tooltip:this.convertTooltip(),animation:!1}}convertTitle(){let e={top:w.padding.top,left:"center",itemGap:w.titleGap},t=this.chartInfo.ensureChartTitle();t&&!t.getHidden()&&Object.assign(e,{text:t.getText(),textStyle:this.convertTextStyle(t.ensureTextStyle())});let i=this.chartInfo.ensureChartSubtitle();return i&&!i.getHidden()&&Object.assign(e,{subtext:i.getText(),subtextStyle:this.convertTextStyle(i.ensureTextStyle())}),e}convertLegend(){let e=this.chartInfo.ensureChartLegend();if(e.getHidden())return{show:!1};let t={selectedMode:!1,itemWidth:12,itemHeight:12,padding:0,formatter:this._getOriginName};switch(e.getPosition()){case"t":{let i=e.ensureTextStyle().getFontSize()||this.chartInfo.ensureGlobalTextStyle().getFontSize();t.top=this._plotBound.top-w.plotGap-_(i),t.orient="horizontal";break}case"b":t.bottom=w.padding.bottom,t.orient="horizontal";break;case"l":t.top=this._plotBound.top,t.right=this._containerWidth-this._plotBound.left+w.plotGap,t.orient="vertical";break;default:t.top=this._plotBound.top,t.left=this._containerWidth-this._plotBound.right+w.plotGap,t.orient="vertical"}return t.textStyle=this.convertTextStyle(e.ensureTextStyle()),t.data=this._convertLegendIcon(),t}_convertLegendIcon(){return this._data.map(e=>({name:e.name,icon:"rect"}))}convertSeries(){return this._data.map((e,t)=>this._convertSeries(this.chartInfo.ensureSeries(this._seriesIndexMap[t]),e))}_convertSeries(e,t){let i={name:t.name,data:t.data,emphasis:this._convertSeriesEmphasis(),tooltip:{formatter:this._convertSeriesTooltipFormatter(e)}},n=e.ensureLabel();return n.getHidden()||(i.label=this._convertSeriesLabel(n,e)),i}_convertSeriesEmphasis(){return{itemStyle:{shadowColor:"rgba(0,0,0,0.5)",shadowBlur:6,shadowOffsetY:2}}}_convertSeriesLabel(e,t){let i={show:!0,position:this._switchSeriesLabelPosition(e,t),textBorderWidth:3,...this.convertTextStyle(e.ensureTextStyle())};return i.textBorderColor=i.position.startsWith("inside")?"auto":this.chartInfo.ensureChart().getBackgroundColor(),i}_switchSeriesLabelPosition(e){let t="top";switch(e.getPosition()){case"r":t="right";break;case"b":t="bottom";break;case"l":t="left"}return t}convertColor(){let e=this.chartInfo.getSeriesThemeColors();return this._data.map((t,i)=>(i=this._seriesIndexMap[i],this.chartInfo.getSeriesColor(i)||e[i%e.length]))}convertBackground(){return C(this.chartInfo.ensureChart().getBackgroundColor())}convertTextStyle(e){return{fontFamily:`"${e.getFontFamily()}"`,fontSize:e.getFontSize(),fontStyle:e.getItalic()?"italic":"normal",fontWeight:e.getBold()?"bold":"normal",color:e.getColor()}}convertTooltip(){return{show:!0,position:"top",transitionDuration:0,padding:[4,12],backgroundColor:"#606264",borderWidth:1,borderColor:"#FFF",extraCssText:"box-shadow: 0 1px 4px rgba(0,0,0,0.1); border-radius: 3px;"}}_convertSeriesTooltipFormatter(e){return t=>{let i="";t.name&&(i+=`<span class="syno-o-chart-tooltip-category">${(0,k.htmlEscape)(t.name)}</span><br>`),i+=`<span class="syno-o-chart-tooltip-icon" style="background-color: ${(0,k.htmlEscape)(t.color)}"></span>`;let n=this._getOriginName(t.seriesName),o=this._tooltipValueFormatter(t.value,e.getRightAxis()?"y2":"y1");return i+`<span class="syno-o-chart-tooltip-series">${n?(0,k.htmlEscape)(n)+": ":""}${(0,k.htmlEscape)(o)}</span>`}}_tooltipValueFormatter(e,t){return this._dataFormatter(e,t)}_dataFormatter(e,t){return v(this.chartInfo.dataFormatter)?this.chartInfo.dataFormatter(e,t):e}_uniquifyName(e,t){return(1e3+t).toString().substr(1)+e}_getOriginName(e){return e.substr(3)}}class A extends I{constructor(e){super(e);let t=this.chartInfo.calcAxisBias();this._useAxis=[t<=0,t>=0]}_getGridSpace(e){return e&&e.getText()?_(e.ensureTextStyle().getFontSize()||this.chartInfo.ensureGlobalTextStyle().getFontSize())+12:0}_calcGridBound(){let{top:e,left:t,right:i,bottom:n}=this._plotBound;return{top:e,left:t+this._getGridSpace(this._useAxis[0]&&this.chartInfo.ensureYAxis().ensureTitle()),right:i+this._getGridSpace(this._useAxis[1]&&this.chartInfo.ensureYAxis2().ensureTitle()),bottom:n+this._getGridSpace(this.chartInfo.ensureXAxis().ensureTitle())}}convert(e,t){let i=super.convert(e,t);return i.grid=this.convertGrid(),i.xAxis=this.convertXAxis(!1),i.yAxis=this.convertYAxis(!0),i}convertGrid(){return{containLabel:!0,...this._calcGridBound()}}convertXAxis(e){return this.convertCategoryAxis(this.chartInfo.ensureXAxis(),e)}convertYAxis(e){return[this.chartInfo.ensureYAxis(),this.chartInfo.ensureYAxis2()].map((t,i)=>this.convertValueAxis(this._useAxis[i]&&t,e,"y"+(i+1)))}convertCategoryAxis(e,t){return{type:"category",data:this._category,inverse:e.ensureScaling().getRevert(),...this.convertAxis(e,t)}}convertValueAxis(e,t,i){if(!e)return{show:!1};let n={splitNumber:e.getTickNumber(),scale:!0,...this.convertAxis(e,t),...this.convertAxisScale(e.ensureScaling())};return!1!==n.axisLabel.show&&(n.axisLabel.formatter=e=>this._dataFormatter(e,i)),n}convertAxisScale(e){return{type:e.getLog()&&this.chartInfo.ensureChart().getGrouping()===l.STANDARD?"log":"value",min:e.getMin(),max:e.getMax()}}convertAxis(e,t){return{axisLine:{show:!1},axisTick:{show:!1},axisLabel:this.convertAxisLabel(e.ensureLabel(),t),splitLine:{lineStyle:this.convertAxisLine(e.ensureMajorGridLines(),t)},...this.convertAxisTitle(e.ensureTitle(),t)}}convertAxisLine(e,t){return{color:e.getHidden()?"transparent":e.getColor()}}convertAxisTitle(e,t){return!e||!e.getText()||e.getHidden()?{}:{name:e.getText(),nameTextStyle:this.convertTextStyle(e.ensureTextStyle()),nameLocation:"center",nameGap:t?56:28}}convertAxisLabel(e,t){return!e||e.getHidden()?{show:!1}:{show:!0,rotate:e.getRotate(),margin:t?12:4,...this.convertTextStyle(e.ensureTextStyle())}}convertLegend(){let e=super.convertLegend(),t=this.chartInfo.ensureChartLegend().getPosition();return("l"===t||"r"===t)&&(e.top=this._plotBound.top),e}_convertSeries(e,t){let i=super._convertSeries(e,t);return e.getRightAxis()&&(i.yAxisIndex=1),i.label&&(i.label.formatter=t=>this._labelValueFormatter(t.value,e.getRightAxis()?"y2":"y1")),i}_labelValueFormatter(e,t){return this._dataFormatter(e,t)}}class T extends A{constructor(e){super(e),this.stacked=this.chartInfo.ensureChart().getGrouping()===l.STACKED}_getNullValue(){return this.stacked?0:null}convertValueAxis(e,t,i){let n=super.convertValueAxis(e,t,i);return this.stacked&&n.scale&&(n.scale=!1),n}_convertSeries(e,t){let i=super._convertSeries(e,t);return this.stacked&&(i.stack=e.getRightAxis()?"s0":"s1"),i}}class E extends T{_convertSeries(e,t){let i=super._convertSeries(e,t);return E.fillSeriesOption(i,this.chartInfo,e,t)}_convertLegendIcon(){let e=super._convertLegendIcon();return e.forEach((e,t)=>{e.icon=E.switchLegendIcon(this.chartInfo.ensureSeries(t).ensureMarker().getSymbol())}),e}static fillSeriesOption(e,t,i,n){e.type="line";let o=i.ensureMarker();e.symbol=E.switchSeriesMarker(o.getSymbol()),e.symbolSize=o.getSize();let r=i.ensureLineStyle(),a=r.getType();switch(a){case"dot":a="dotted";break;case"dash":a="dashed";break;default:a="solid"}return e.lineStyle={type:a,width:r.getWidth()},i.getSmooth()&&(e.smooth=!0),t.ensurePlotArea().getBlankAs()===f.SPAN&&(e.connectNulls=!0),e}static switchSeriesMarker(e){let t;switch(e){case d.NONE:t="image://data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII=";break;case d.DIAMOND:t="diamond";break;case d.TRIANGLE:t="triangle";break;case d.SQUARE:t="rect";break;default:t="circle"}return t}static switchLegendIcon(e){let t="line";switch(e){case d.CIRCLE:t="circle";break;case d.DIAMOND:t="diamond";break;case d.TRIANGLE:t="triangle";break;case d.SQUARE:t="rect"}return t}}class R extends E{_convertSeries(e,t){let i=super._convertSeries(e,t);return i.areaStyle={opacity:e.getOpacity()},i}}class D extends T{convertXAxis(e){return this.chartInfo.ensureChart().getBarDir()===r.BAR_DIR?super.convertXAxis(e):super.convertYAxis(e)}convertYAxis(e){return this.chartInfo.ensureChart().getBarDir()===r.BAR_DIR?super.convertYAxis(e):super.convertXAxis(e)}_convertSeries(e,t){let i=super._convertSeries(e,t);return this.chartInfo.ensureChart().getBarDir()!==r.BAR_DIR&&i.yAxisIndex&&(i.xAxisIndex=i.yAxisIndex,delete i.yAxisIndex),D.fillSeriesOption(i,this.chartInfo,e,t)}_switchSeriesLabelPosition(e){let t=this.chartInfo.ensureChart().getBarDir()!==r.BAR_DIR,i=t?"right":"top";switch(e.getPosition()){case"inBase":i=t?"insideLeft":"insideBottom";break;case"inCenter":i="inside";break;case"inEnd":i=t?"insideRight":"insideTop"}return i}static fillSeriesOption(e){return e.type="bar",e}}class O extends I{_processCategory(e){e=super._processCategory(e);for(let t=0,i=e.length;t<i;t++)e[t]=this._uniquifyName(e[t],t);return e}_processData(e){e.length=1;let t=e[0].data;for(let e=0,i=t.length;e<i;e++){let i=t[e];t[e]={value:null==i?null:Math.abs(i),name:this._category[e]}}return e}convertColor(){let e=this.chartInfo.getSeriesThemeColors(),t=e.length,i=this.chartInfo.ensurePieSeries().getPieColor(),n=[];for(let o=0,r=this._data[0].data.length;o<r;o++){let r=this._categoryIndexMap[o];n[o]=i&&i[r]||e[r%t]}return n}_convertLegendIcon(){return this._category.map(e=>({name:e,icon:"rect"}))}convertSeries(){return[this._convertSeries(this.chartInfo.ensurePieSeries(),this._data[0])]}_convertSeries(e,t){let i=this._containerWidth-this._plotBound.left-this._plotBound.right,n=this._containerHeight-this._plotBound.top-this._plotBound.bottom,o=Math.min(i,n)/2;return{type:"pie",data:t.data,emphasis:this._convertSeriesEmphasis(),selectedMode:!1,center:[this._plotBound.left+i/2,this._plotBound.top+n/2],radius:[e.getPieHoleSize()/100*o,o],itemStyle:{borderColor:C(e.getPieBorderColor())},tooltip:{formatter:this._convertSeriesTooltipFormatter(e)},label:this._convertSeriesLabel(e.ensureLabel())}}_convertSeriesLabel(e){return{show:e.getShowCat()||e.getShowVal()||e.getShowPercent(),formatter:t=>{let i=[];return e.getShowCat()&&i.push(this._getOriginName(t.name)),e.getShowVal()&&i.push(this._dataFormatter(t.value,"y1")),e.getShowPercent()&&i.push(i.length?`(${t.percent}%)`:`${t.percent}%`),i.join(" ")},...this.convertTextStyle(e.ensureTextStyle())}}_convertSeriesTooltipFormatter(){return e=>{let t="",i=this._getOriginName(e.name);return i&&(t+=`<span class="syno-o-chart-tooltip-category">${i}</span><br>`),t+=`<span class="syno-o-chart-tooltip-icon" style="background-color: ${e.color}"></span><span class="syno-o-chart-tooltip-series">${this._tooltipValueFormatter(e.value,"y1")}</span>`}}}class M extends A{_processCategory(e){if(this._xHasNumber=!1,this.chartInfo.ensureXAxis().getTreatAsText())return super._processCategory(e);for(let t=0,i=e.length;t<i;t++)b(e[t])?this._xHasNumber=!0:e[t]=null;return e}convertXAxis(){let e=this.chartInfo.ensureXAxis();return e.getTreatAsText()?super.convertXAxis():this.convertValueAxis(e,!1,"x")}_convertSeries(e,t){let i=super._convertSeries(e,t);i.type="scatter",this.chartInfo.ensureXAxis().getTreatAsText()||(i.data=i.data.map((e,t)=>this._xHasNumber?[this._category[t],e]:[t,e]));let n=e.ensureMarker();return i.symbol=E.switchSeriesMarker(n.getSymbol()),i.symbolSize=n.getSize(),i}_convertLegendIcon(){let e=super._convertLegendIcon();return e.forEach((e,t)=>{let i=E.switchLegendIcon(this.chartInfo.ensureSeries(t).ensureMarker().getSymbol());e.icon="line"===i?"rect":i}),e}_tooltipValueFormatter(e,t){return Array.isArray(e)?`${this._dataFormatter(e[0],"x")},${this._dataFormatter(e[1],t)}`:this._dataFormatter(e,t)}_labelValueFormatter(e,t){let i=Array.isArray(e)?e[1]:e;return this._dataFormatter(i,t)}}class N extends A{_convertSeries(e,t){let i=super._convertSeries(e,t);return e.getType(!0)===s.BAR?D.fillSeriesOption(i,this.chartInfo,e,t):E.fillSeriesOption(i,this.chartInfo,e,t)}_convertLegendIcon(){let e=super._convertLegendIcon();return e.forEach((e,t)=>{let i=this.chartInfo.ensureSeries(t);i.getType()===s.LINE&&(e.icon=E.switchLegendIcon(i.ensureMarker().getSymbol()))}),e}_switchSeriesLabelPosition(e,t){return t.getType()===s.BAR?D.prototype._switchSeriesLabelPosition.call(this,e,t):super._switchSeriesLabelPosition(e,t)}}var P=i(22273);let L=Object.prototype.hasOwnProperty;class B{constructor(e,t){this.fillArgs(...arguments),t&&this.initSubConfig(t)}fillArgs(e,t){this._info=e,this._config=t}static get configName(){return""}static get subConfigList(){return null}static get configList(){return null}static get supportMap(){return L.call(this,"_supportMap")||(this._supportMap=this.createSupportMap()),this._supportMap}static createSupportMap(){let e,t=Object.create(null);return(e=this.configList)&&e.forEach(e=>{t[e]=!0}),(e=this.subConfigList)&&e.forEach(e=>{t[e]=!0}),t}initSubConfig(e){let t=this.constructor.subConfigList;if(t)for(let i=0,n=t.length;i<n;++i){let n=t[i],o=e[n];if(m(o)){let e="ensure"+(0,P.Z)(n);(this["_"+e]||this[e]).call(this,o)}}}_cloneConfig(e){return Object.assign(Object.create(null),e)}_getConfig(e,t,i,n){return e&&m(e[t])?e[t]:n||null==i?null:i}_setConfig(e,t,i){return m(i)?e&&e[t]===i||((e=this._cloneConfig(e))[t]=i):(!e||t in e)&&(e=this._cloneConfig(e),delete e[t]),e}build(){let e=this.getRawConfig(),t,i=this.constructor.supportMap;for(let n in e)if(L.call(e,n)){if(i[n])continue;t||(t=this._cloneConfig(e)),delete t[n]}let n=this.constructor.subConfigList;if(n&&n.length)for(let i=0,o=n.length;i<o;++i){let o,r=n[i],a=this["get"+(0,P.Z)(r)](),s=Array.isArray(a);s?(o=x(a.map(e=>e&&e.build()))).length||(o=null):o=a&&a.build(),(e&&r in e?!o||(s?!function(e,t){let i=Math.max(e?e.length:0,t?t.length:0);for(let n=0;n<i;++n)if((e&&e[n])!=(t&&t[n]))return!1;return!0}(o,e[r]):o!==e[r]):o)&&(t||(t=this._cloneConfig(e)),o?t[r]=o:delete t[r])}return t&&(e=t),e&&!function(e){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!0;return!1}(e)&&(e=null),this.setRawConfig(e),e}compute(e){let t,i=Object.create(null);if((t=this.constructor.subConfigList)&&t.length)for(let n=0,o=t.length;n<o;++n){let o,r=t[n],a=(0,P.Z)(r),s="ensure"+a,l=this[s]();if(Array.isArray(l)){let t=this["get"+a+"Count"],i=t?t.call(this):l.length;o=[];for(let t=0;t<i;++t)o.push(this[s](t).compute(e))}else o=l.compute(e);i[r]=o}if((t=this.constructor.configList)&&t.length)for(let e=0,n=t.length;e<n;++e){let n=t[e],o=this["get"+(0,P.Z)(n)];if(o){let e=o.call(this);null!=e&&(i[n]=e)}}return i}cloneRawConfig(){return Object.assign(Object.create(null),this.getRawConfig())}getRawConfig(){return this._config}setRawConfig(e){return this._config!==e&&(this._config=e,!0)}getChartInfo(){return this._info}getSubConfig(e){return this[e]}setSubConfig(e,t,i){return i||(t=this.createSubConfig(e,t)),this[e]=t}createSubConfig(e,t){let i=this.getChartInfo(),n=i.getConfigCls(e);if(!n)throw Error(`Unknown sub-config name. (${e})`);return t[0]!==i&&(t=[i].concat(t)),new n(...t)}getConfig(e,t,i){return this._getConfig(this.getRawConfig(),e,t,i)}setConfig(e,t){return this.setRawConfig(this._setConfig(this.getRawConfig(),e,t))}}let F=["xAxis","yAxis","yAxis2","series","layout"],V=["blankAs","useRowHeader","useColumnHeader","switchRowColumn"],z=["plotArea","title","subtitle","legend","textStyle"],H=["backgroundColor","chartType","barDir","grouping"];class W extends B{static get configName(){return"chart"}static get subConfigList(){return z}static get configList(){return H}initSubConfig(e){super.initSubConfig(this.fixConfig(e))}fixConfig(e){let t=e.plotArea;if(!t||t.series)return e;let i=t.subCharts;if(!i||!i.length)return e;t=(e=this._cloneConfig(e)).plotArea=this._cloneConfig(t),delete t.subCharts;let n=t.series=[];for(let t=0,o=i.length;t<o;++t){let{type:o,series:r,barDir:a,grouping:s}=i[t];for(let e=0,t=r.length;e<t;++e){let t=this._cloneConfig(r[e]);t.type=o,n.push(t)}a&&(e.barDir=a),s&&(e.grouping=s)}return n.sort(Y),e.chartType=i.length>1?"hybrid":i[0].type,e}getPlotArea(){return this.getSubConfig("plotArea")}ensurePlotArea(e){return this.getPlotArea()||this.setSubConfig("plotArea",[e])}getTitle(){return this.getSubConfig("title")}ensureTitle(e){return this.getTitle()||this.setSubConfig("title",[e,"title"])}getSubtitle(){return this.getSubConfig("subtitle")}ensureSubtitle(e){return this.getSubtitle()||this.setSubConfig("subtitle",this.createSubConfig("title",[e,"subtitle"]),!0)}getLegend(){return this.getSubConfig("legend")}ensureLegend(e){return this.getLegend()||this.setSubConfig("legend",[e])}getTextStyle(){return this.getSubConfig("textStyle")}ensureTextStyle(e){return this.getTextStyle()||this.setSubConfig("textStyle",[e,"global"])}getBackgroundColor(e){return this.getConfig("backgroundColor",r.BACKGROUND,e)}setBackgroundColor(e){return this.setConfig("backgroundColor",e)}getChartType(e){return this.getConfig("chartType",r.TYPE,e)}setChartType(e){return this.setConfig("chartType",e)}getBarDir(e){return this.getConfig("barDir",r.BAR_DIR,e)}setBarDir(e){return this.setConfig("barDir",e)}getGrouping(e){return this.getConfig("grouping",r.GROUPING,e)}setGrouping(e){return this.setConfig("grouping",e)}getType(e){return this.getChartType(e)}setType(e){return this.setChartType(e)}}function Y(e,t){return e.index-t.index}let U=["min","max","orientation","logBase"],G=["hidden","color"],Z=["title","label","scaling","majorGridLines"],j=["tickNumber","treatAsText"],q=["symbol","size"],K=["type","width"],X=["label","marker","lineStyle"],Q=["type","color","axis2","smooth","opacity","holeSize","pieColors","pieBorderColor"],$=["textStyle"],J=["hidden","position"],ee=["textStyle"],et=["hidden","position","rotate","showVal","showCat","showPercent"],ei=["textStyle"],en=["hidden","text"],eo={title:{fontSize:16,bold:!0},subtitle:{fontSize:13,color:"#7E8082"},axisTitle:{bold:!0},global:{fontFamily:"Arial",fontSize:12,italic:!1,bold:!1,color:"#000000"}},er=["fontFamily","fontSize","italic","bold","color"],ea=["enabled","top","left","right","bottom"],es=[class extends B{static get configName(){return"plotArea"}static get subConfigList(){return F}static get configList(){return V}initSubConfig(e){super.initSubConfig(this.fixConfig(e))}fixConfig(e){let{nonNumericAsZero:t,zeroStart:i,xAxisTitle:n,yAxisTitle:o}=e;if(!m(t)&&!i&&!n&&!o)return e;if(e=this._cloneConfig(e),delete e.nonNumericAsZero,delete e.zeroStart,delete e.xAxisTitle,delete e.yAxisTitle,!e.blankAs&&m(t)&&(e.blankAs=t?f.ZERO:f.GAP),!e.xAxis&&(n||i)){let t=e.xAxis=Object.create(null);n&&(t.title=n),i&&(t.scaling={min:0})}if(!e.yAxis&&(o||i)){let t=e.yAxis=Object.create(null);o&&(t.title=o),i&&(t.scaling={min:0})}return!e.yAxis2&&i&&(e.yAxis2={scaling:{min:0}}),e}getXAxis(){return this.getSubConfig("xAxis")}ensureXAxis(e){return this.getXAxis()||this.setSubConfig("xAxis",this.createSubConfig("axis",[e]),!0)}getYAxis(){return this.getSubConfig("yAxis")}ensureYAxis(e){return this.getYAxis()||this.setSubConfig("yAxis",this.createSubConfig("axis",[e]),!0)}getYAxis2(){return this.getSubConfig("yAxis2")}ensureYAxis2(e){return this.getYAxis2()||this.setSubConfig("yAxis2",this.createSubConfig("axis",[e]),!0)}_getSeries(){return this.getSubConfig("series")}_ensureSeries(e){return this._getSeries()||this.setSubConfig("series",Array.isArray(e)?e.map((e,t)=>this.createSubConfig("series",[e,t])):[],!0)}getSeries(e){let t=this._getSeries();return t?b(e)?t[e]:t:null}ensureSeries(e,t){let i=this._ensureSeries();return b(e)?i[e]||(i[e]=this.createSubConfig("series",[t,e])):i}getSeriesCount(){return this.getChartInfo().getSeriesCount()}getLayout(){return this.getSubConfig("layout")}ensureLayout(e){return this.getLayout()||this.setSubConfig("layout",this.createSubConfig("layout",[e]),!0)}getBlankAs(e){return this.getConfig("blankAs",r.BLANK_AS,e)}setBlankAs(e){return this.setConfig("blankAs",e)}getUseRowHeader(){return this.getConfig("useRowHeader",!0)}setUseRowHeader(e){return this.setConfig("useRowHeader",!!e)}getUseColumnHeader(){return this.getConfig("useColumnHeader",!0)}setUseColumnHeader(e){return this.setConfig("useColumnHeader",!!e)}getSwitchRowColumn(){return this.getConfig("switchRowColumn",!1)}setSwitchRowColumn(e){return this.setConfig("switchRowColumn",!!e)}},W,class extends B{static get configName(){return"scaling"}static get configList(){return U}getMin(e){return this.getConfig("min",null,e)}setMin(e){return this.setConfig("min",b(e)?e:null)}getMax(e){return this.getConfig("max",null,e)}setMax(e){return this.setConfig("max",b(e)?e:null)}getOrientation(e){return this.getConfig("orientation",r.ORIENTATION,e)}setOrientation(e){return this.setConfig("orientation",e)}getLogBase(e){return this.getConfig("logBase",null,e)}setLogBase(e){return this.setConfig("logBase",b(e)?e:null)}getRevert(){return this.getOrientation()===c.REVERSE}setRevert(e){return this.setOrientation(e?c.REVERSE:c.SEQUENCE)}getLog(){return!!m(this.getLogBase())}setLog(e){return this.setLogBase(e?10:null)}},class extends B{static get configName(){return"majorGridLines"}static get configList(){return G}getHidden(e){return this.getConfig("hidden",!1,e)}setHidden(e){return this.setConfig("hidden",!!e)}getColor(e){return this.getConfig("color","#CCCCCC",e)}setColor(e){return this.setConfig("color",e)}},class extends B{static get configName(){return"axis"}static get subConfigList(){return Z}static get configList(){return j}getTitle(){return this.getSubConfig("title")}ensureTitle(e){return this.getTitle()||this.setSubConfig("title",[e,"axisTitle"])}getLabel(){return this.getSubConfig("label")}ensureLabel(e){return this.getLabel()||this.setSubConfig("label",[e])}getScaling(){return this.getSubConfig("scaling")}ensureScaling(e){return this.getScaling()||this.setSubConfig("scaling",[e])}getMajorGridLines(){return this.getSubConfig("majorGridLines")}ensureMajorGridLines(e){return this.getMajorGridLines()||this.setSubConfig("majorGridLines",[e])}getTickNumber(e){return this.getConfig("tickNumber",5,e)}setTickNumber(e){return this.setConfig("tickNumber",b(e)?e:null)}getTreatAsText(e){return this.getConfig("treatAsText",!1,e)}setTreatAsText(e){return this.setConfig("treatAsText",!!e)}},class extends B{constructor(e,t){!0===t?t=null:!1===t&&(t={symbol:d.NONE}),super(e,t)}static get configName(){return"marker"}static get configList(){return q}getSymbol(e){return this.getConfig("symbol",r.MARKER_SYMBOL,e)}setSymbol(e){return this.setConfig("symbol",e)}getSize(e){return this.getConfig("size",5,e)}setSize(e){return this.setConfig("size",b(e)?e:null)}},class extends B{static get configName(){return"lineStyle"}static get configList(){return K}getType(e){return this.getConfig("type",r.LINE_DASH,e)}setType(e){return this.setConfig("type",e)}getWidth(e){return this.getConfig("width",2,e)}setWidth(e){return this.setConfig("width",b(e)?e:null)}},class extends B{constructor(e,t,i){super(e,t),this.index=b(i)?i:0}static get configName(){return"series"}static get subConfigList(){return X}static get configList(){return Q}getDefaultType(){let e=this.getChartInfo().ensureChart().getType();return e===s.HYBRID?s.BAR:e}getDefaultColor(e){let t=this.getChartInfo().getSeriesThemeColors();return t[e%t.length]}compute(e){let t=super.compute(e);if(e){let e=this.getChartInfo();e.dataHasCat()&&(t.cat=e.getSourceSeriesCat()),e.dataHasTx()&&(t.tx=e.getSourceSeriesTx(this.index)),t.val=e.getSourceSeriesVal(this.index)}return t}getLabel(){return this.getSubConfig("label")}ensureLabel(e){return this.getLabel()||this.setSubConfig("label",[e])}getMarker(){return this.getSubConfig("marker")}ensureMarker(e){return this.getMarker()||this.setSubConfig("marker",[e])}getLineStyle(){return this.getSubConfig("lineStyle")}ensureLineStyle(e){return this.getLineStyle()||this.setSubConfig("lineStyle",[e])}getType(e){let t=this.getConfig("type",null,e);return e||t?t:this.getDefaultType()}setType(e){return this.setConfig("type",e)}getColor(e){let t=this.getConfig("color",null,e);return e||t?t:this.getDefaultColor(this.index)}setColor(e){return this.setConfig("color",e)}getAxis2(e){return this.getConfig("axis2",!1,e)}setAxis2(e){return this.setConfig("axis2",!!e)}getSmooth(e){return this.getConfig("smooth",!1,e)}setSmooth(e){return this.setConfig("smooth",!!e)}getOpacity(e){return this.getConfig("opacity",.2,e)}setOpacity(e){return this.setConfig("opacity",b(e)?e:null)}getHoleSize(e){return this.getConfig("holeSize",0,e)}setHoleSize(e){return this.setConfig("holeSize",e)}getPieColors(e){return this.getConfig("pieColors",null,e)}setPieColors(e){return this.setConfig("pieColors",Array.isArray(e)?x(e,!0):null)}getPieBorderColor(e){return this.getConfig("pieBorderColor","#FFFFFF00",e)}setPieBorderColor(e){return this.setConfig("pieBorderColor",e)}getRightAxis(e){return this.getAxis2(e)}setRightAxis(e){return this.setAxis2(e)}getLineSmooth(e){return this.getSmooth(e)}setLineSmooth(e){return this.setSmooth(e)}getAreaOpacity(e){return this.getOpacity(e)}setAreaOpacity(e){return this.setOpacity(e)}getPieHoleSize(e){return this.getHoleSize(e)}setPieHoleSize(e){return this.setHoleSize(e)}getPieColor(e,t){let i=this.getPieColors(t);return i&&Array.isArray(i)?b(e)?i[e]||this.getDefaultColor(e):i:null}setPieColor(e,t){if(b(e)){let i=this.getPieColors();(i=i?i.slice():[])[e]=t,t=x(i)}return this.setPieColors(t)}},class extends B{static get configName(){return"legend"}static get subConfigList(){return $}static get configList(){return J}getTextStyle(){return this.getSubConfig("textStyle")}ensureTextStyle(e){return this.getTextStyle()||this.setSubConfig("textStyle",[e])}getHidden(e){return this.getConfig("hidden",!1,e)}setHidden(e){return this.setConfig("hidden",!!e)}getPosition(e){return this.getConfig("position",r.LEGEND_POSITION,e)}setPosition(e){return this.setConfig("position",e)}},class extends B{static get configName(){return"label"}static get subConfigList(){return ee}static get configList(){return et}getTextStyle(){return this.getSubConfig("textStyle")}ensureTextStyle(e){return this.getTextStyle()||this.setSubConfig("textStyle",[e])}getHidden(e){return this.getConfig("hidden",!1,e)}setHidden(e){return this.setConfig("hidden",!!e)}getPosition(e){return this.getConfig("position",r.LABEL_POSITION,e)}setPosition(e){return this.setConfig("position",e)}getRotate(e){return this.getConfig("rotate",0,e)}setRotate(e){return this.setConfig("rotate",e)}getShowVal(e){return this.getConfig("showVal",!1,e)}setShowVal(e){return this.setConfig("showVal",!!e)}getShowCat(e){return this.getConfig("showCat",!1,e)}setShowCat(e){return this.setConfig("showCat",!!e)}getShowPercent(e){return this.getConfig("showPercent",!1,e)}setShowPercent(e){return this.setConfig("showPercent",!!e)}},class extends B{constructor(e,t,i){y(t)&&(t={text:t}),super(e,t,i)}fillArgs(e,t,i){super.fillArgs(...arguments),this.styleKey=i}static get configName(){return"title"}static get subConfigList(){return ei}static get configList(){return en}getTextStyle(){return this.getSubConfig("textStyle")}ensureTextStyle(e){return this.getTextStyle()||this.setSubConfig("textStyle",[e,this.styleKey])}getHidden(e){return this.getConfig("hidden",!1,e)}setHidden(e){return this.setConfig("hidden",!!e)}getText(e){return this.getConfig("text","",e)}setText(e){return this.setConfig("text",e)}},class extends B{constructor(e,t,i){super(e,t),this.defaultStyle=eo[i]}static get configName(){return"textStyle"}static get configList(){return er}getStyleConfig(e,t){let i=this.getConfig(e,null,t);if(t||m(i))return i;let n=this.defaultStyle&&this.defaultStyle[e];return m(n)?n:this.getChartInfo().ensureGlobalTextStyle()["get"+(0,P.Z)(e)]()}getFontFamily(e){return this.getStyleConfig("fontFamily",e)}setFontFamily(e){return this.setConfig("fontFamily",e)}getFontSize(e){return this.getStyleConfig("fontSize",e)}setFontSize(e){return this.setConfig("fontSize",e)}getItalic(e){return this.getStyleConfig("italic",e)}setItalic(e){return this.setConfig("italic",!!e)}getBold(e){return this.getStyleConfig("bold",e)}setBold(e){return this.setConfig("bold",!!e)}getColor(e){return this.getStyleConfig("color",e)}setColor(e){return this.setConfig("color",e)}},class extends B{static get configName(){return"layout"}static get configList(){return ea}getEnabled(e){return this.getConfig("enabled",!1,e)}setEnabled(e){return this.setConfig("enabled",e)}getLeft(e){return this.getConfig("left",null,e)}setLeft(e){return this.setConfig("left",e)}getTop(e){return this.getConfig("top",null,e)}setTop(e){return this.setConfig("top",e)}getRight(e){return this.getConfig("right",null,e)}setRight(e){return this.setConfig("right",e)}getBottom(e){return this.getConfig("bottom",null,e)}setBottom(e){return this.setConfig("bottom",e)}}].reduce(function(e,t){return e[t.configName]=t,e},Object.create(null)),el=["#509BE6","#FFC100","#F26166","#AD70CC","#4DBF4D","#FF8F3D","#8E6F69","#00B6CE","#E25FBC","#4D5FFF","#27D790","#3B8795"],ec=class{constructor(e,t){this.readChartCfg(e),this.readOptionCfg(t),this._options=t}getConfigMap(){return es}getConfigCls(e){return this.getConfigMap()[e]}readChartCfg(e){this._config=new(this.getConfigCls("chart"))(this,e)}readOptionCfg(e){}getUseRowHeader(){return this.ensurePlotArea().getUseRowHeader()}getUseColumnHeader(){return this.ensurePlotArea().getUseColumnHeader()}getSwitchRowColumn(){return this.ensurePlotArea().getSwitchRowColumn()}dataHasCat(){return this.getSwitchRowColumn()?this.getUseColumnHeader():this.getUseRowHeader()}dataHasTx(){return this.getSwitchRowColumn()?this.getUseRowHeader():this.getUseColumnHeader()}setRawData(e){this.data=e}getRawData(){return this.data}cloneRawData(e){let t=this.getRawData();if(!t)return t;if(!e)return t.map(e=>e.slice());{let e=[],i=this._getDataColNumber(t),n=this._getDataRowNumber(t);for(let o=0;o<i;++o){e[o]=[];for(let i=0;i<n;++i)e[o][i]=this._getData(t,i,o)}return e}}_getData(e,t,i){let n=e&&e[t]&&e[t][i];return null!=n?n:null}getData(e,t){return this._getData(this.getRawData(),e,t)}_getDataRowNumber(e){return e?e.length:0}getDataRowNumber(){return this._getDataRowNumber(this.getRawData())}_getDataColNumber(e){return e&&e[0]?e[0].length:0}getDataColNumber(){return this._getDataColNumber(this.getRawData())}ensureChart(){return this._config}ensureChartTitle(){return this.ensureChart().ensureTitle()}ensureChartSubtitle(){return this.ensureChart().ensureSubtitle()}ensureChartLegend(){return this.ensureChart().ensureLegend()}ensureChartLegendStyle(){return this.ensureChartLegend().ensureTextStyle()}ensureGlobalTextStyle(){return this.ensureChart().ensureTextStyle()}ensurePlotArea(){return this.ensureChart().ensurePlotArea()}ensureSeries(e){return this.ensurePlotArea().ensureSeries(e)}ensureSeriesLabel(e){return this.ensureSeries(e).ensureLabel()}ensureSeriesLabelStyle(e){return this.ensureSeriesLabel(e).ensureTextStyle()}ensurePieSeries(){return this.ensureSeries(0)}ensurePieLabel(){return this.ensurePieSeries().ensureLabel()}ensurePieLabelStyle(){return this.ensurePieLabel().ensureTextStyle()}ensureTitle(e){switch(e){case"title":return this.ensureChartTitle();case"subtitle":return this.ensureChartSubtitle();case"xTitle":return this.ensureXAxis().ensureTitle();case"yTitle":return this.ensureYAxis().ensureTitle();case"y2Title":return this.ensureYAxis2().ensureTitle();default:return null}}ensureTitleStyle(e){let t=this.ensureTitle(e);return t&&t.ensureTextStyle()}ensureXAxis(){return this.ensurePlotArea().ensureXAxis()}ensureYAxis(){return this.ensurePlotArea().ensureYAxis()}ensureYAxis2(){return this.ensurePlotArea().ensureYAxis2()}ensureAxis(e){switch(e){case"x":return this.ensureXAxis();case"y":return this.ensureYAxis();case"y2":return this.ensureYAxis2();default:return null}}ensureAxisScaling(e){let t=this.ensureAxis(e);return t&&t.ensureScaling()}ensureAxisMajorGridLines(e){let t=this.ensureAxis(e);return t&&t.ensureMajorGridLines()}ensureAxisLabel(e){let t=this.ensureAxis(e);return t&&t.ensureLabel()}ensureAxisLabelStyle(e){let t=this.ensureAxisLabel(e);return t&&t.ensureTextStyle()}build(){return this.ensureChart().build()}compute(e){return this.ensureChart().compute(e)}getChartSetting(){let e=this.ensureChart();return this.filterChartSetting(e.getType(),e.getBarDir(),e.getGrouping(),!0)}getSeriesCat(e){let t=+!!this.dataHasTx();if(b(e))return this.dataHasCat()?S(this.getData(0,t+e)):"";{let e=this.getDataColNumber(),i=Array(e-t);if(this.dataHasCat())for(let n=t;n<e;++n)i[n-t]=this.getData(0,n);else i.fill("");return i}}getSourceSeriesCat(){return this.getSeriesCat()}getSeriesTx(e){let t=+!!this.dataHasCat();if(b(e))return this.dataHasTx()?S(this.getData(t+e,0)):"";{let e=this.getDataRowNumber(),i=Array(e-t);if(this.dataHasTx())for(let n=t;n<e;++n)i[n-t]=S(this.getData(n,0));else i.fill("");return i}}getSourceSeriesTx(e){return this.getSeriesTx(e)}getSeriesVal(e,t){let i=e+ +!!this.dataHasCat(),n=+!!this.dataHasTx();if(b(t))return this.getData(i,n+t);{let e=this.getDataColNumber(),t=[];for(let o=n;o<e;++o)t.push(this.getData(i,o));return t}}getSourceSeriesVal(e,t){return this.getSeriesVal(e,t)}getSeriesThemeColors(){return el}getSeriesCount(e){let t=this.getDataRowNumber()-+!!this.dataHasCat();if(e){let e=this.ensureSeries().length;t<e&&(t=e)}return t}getSeriesColor(e){return this.ensureChart().getType()===s.PIE?this.ensurePieSeries().getPieColor(e):this.ensureSeries(e).getColor()}calcAxisBias(){let e,t;return(this.forEachSeries(function(i){if(i.getRightAxis()?t=!0:e=!0,e&&t)return!0}),e&&t)?0:e?-1:t?1:NaN}forEachSeries(e,t,i){for(let n=0,o=this.getSeriesCount(i);n<o;++n){let i=e.call(t,this.ensureSeries(n),n,o);if(null!=i)return i}}eachSeries(e){return this.forEachSeries(function(t,i){if(!1===e.call(this,t,i))return!1},this)}filterChartSetting(e,t,i,n){switch(e){case s.BAR:case s.LINE:case s.AREA:break;default:i=n?r.GROUPING:null}return{type:e,barDir:e===s.BAR?t:n?r.BAR_DIR:null,grouping:i}}handleSeries(e,t,i){b(e)?t.call(i,this.ensureSeries(e),e):this.forEachSeries(t,i)}_handleTitle(e,t,i){let n=this.ensureTitle(e);n&&t.call(i,n,e)}handleTitle(e,t,i){e?this._handleTitle(e,t,i):["title","subtitle","xTitle","yTitle","y2Title"].forEach(e=>{this._handleTitle(e,t,i)})}_handleAxis(e,t,i){let n=this.ensureAxis(e);n&&t.call(i,n,e)}handleAxis(e,t,i){e?this._handleAxis(e,t,i):["x","y","y2"].forEach(e=>{this._handleAxis(e,t,i)})}getAllColors(){let e=[];function t(t){t&&e.push(t.substr(1).toLowerCase())}return t(this.ensureChart().getBackgroundColor(!0)),this.handleTitle(null,function(e){t(e.ensureTextStyle().getColor(!0))},this),this.forEachSeries(function(e){t(e.getColor(!0)),t(e.getPieBorderColor(!0)),t(e.ensureLabel().ensureTextStyle().getColor(!0)),(e.getPieColors(!0)||[]).forEach(t)},this,!0),t(this.ensureChartLegendStyle().getColor(!0)),this.handleAxis(null,function(e){t(e.ensureLabel().ensureTextStyle().getColor(!0)),t(e.ensureMajorGridLines().getColor(!0))},this),e}static checkCmdName(e){return e&&e in this.prototype&&"apply"!==e&&(e.startsWith("apply")||e.startsWith("_apply"))}apply(e,t){return!!this.constructor.checkCmdName(e)&&(this[e].apply(this,t),!0)}invert(e,t){if(!this.constructor.checkCmdName(e))return!1;let i=this[e.replace("apply","invert")].apply(this,t);return Array.isArray(i)||(i=[i]),i.forEach(t=>{t.name||(t.name=e)}),i}applyChartSetting(e,t,i){if({type:e,barDir:t,grouping:i}=this.filterChartSetting(e,t,i),this._applyChartType(e),e===s.HYBRID){let e=this.getSeriesCount()/2;this.forEachSeries(function(t,i){t.setType(i<e?s.BAR:null)},this,!0)}else this.forEachSeries(function(e,t){e.setType(null)},this,!0);this._applyChartBarDir(t),this._applyChartGrouping(i)}_applyChartType(e){this.ensureChart().setType(e)}_applyChartBarDir(e){this.ensureChart().setBarDir(e)}_applyChartGrouping(e){this.ensureChart().setGrouping(e)}applyChartBackgroundColor(e){this.ensureChart().setBackgroundColor(e)}applyChartBlankAs(e){this.ensurePlotArea().setBlankAs(e)}applyChartShowBlank(e){this.applyChartBlankAs(e?f.SPAN:f.GAP)}applyGlobalFontFamily(e){this.ensureGlobalTextStyle().setFontFamily(e)}applyUseColumnHeader(e){this.ensurePlotArea().setUseColumnHeader(e)}applyUseRowHeader(e){this.ensurePlotArea().setUseRowHeader(e)}applySwitchRowColumn(e){this.ensurePlotArea().setSwitchRowColumn(e)}applyPieHoleSize(e){this.ensurePieSeries().setPieHoleSize(e)}applyPieBorderColor(e){this.ensurePieSeries().setPieBorderColor(e)}applyPieLabelDisplay(e){let t=this.ensurePieLabel();t.setShowVal(e.val),t.setShowCat(e.cat),t.setShowPercent(e.percent)}applyPieLabelFontFamily(e){this.ensurePieLabelStyle().setFontFamily(e)}applyPieLabelFontSize(e){this.ensurePieLabelStyle().setFontSize(e)}applyPieLabelBold(e){this.ensurePieLabelStyle().setBold(e)}applyPieLabelItalic(e){this.ensurePieLabelStyle().setItalic(e)}applyPieLabelColor(e){this.ensurePieLabelStyle().setColor(e)}applyTitleText(e,t){this.handleTitle(e,function(e){e.setText(t)})}applyTitleFontFamily(e,t){this.handleTitle(e,function(e){e.ensureTextStyle().setFontFamily(t)})}applyTitleFontSize(e,t){this.handleTitle(e,function(e){e.ensureTextStyle().setFontSize(t)})}applyTitleBold(e,t){this.handleTitle(e,function(e){e.ensureTextStyle().setBold(t)})}applyTitleItalic(e,t){this.handleTitle(e,function(e){e.ensureTextStyle().setItalic(t)})}applyTitleColor(e,t){this.handleTitle(e,function(e){e.ensureTextStyle().setColor(t)})}applySeriesType(e,t){this.handleSeries(e,function(e){e.setType(t)})}applySeriesColor(e,t){if(b(e))if(this.ensureChart().getType()===s.PIE)return this._applyPieColor(e,t);else return this._applySeriesColor(e,t)}_applyPieColor(e,t){this.ensurePieSeries().setPieColor(e,t)}_applySeriesColor(e,t){this.ensureSeries(e).setColor(t)}applySeriesRightAxis(e,t){this.handleSeries(e,function(e){e.setRightAxis(t)})}applySeriesSmooth(e,t){this.handleSeries(e,function(e){e.setSmooth(t)})}applySeriesOpacity(e,t){this.handleSeries(e,function(e){e.setOpacity(t)})}applySeriesLineType(e,t){this.handleSeries(e,function(e){e.ensureLineStyle().setType(t)})}applySeriesLineWidth(e,t){this.handleSeries(e,function(e){e.ensureLineStyle().setWidth(t)})}applySeriesMarkerSymbol(e,t){this.handleSeries(e,function(e){e.ensureMarker().setSymbol(t)})}applySeriesMarkerSize(e,t){this.handleSeries(e,function(e){e.ensureMarker().setSize(t)})}applySeriesLabelHidden(e,t){this.handleSeries(e,function(e){e.ensureLabel().setHidden(t)})}applySeriesLabelPosition(e,t){this.handleSeries(e,function(e){e.ensureLabel().setPosition(t)})}applySeriesLabelFontFamily(e,t){this.handleSeries(e,function(e){e.ensureLabel().ensureTextStyle().setFontFamily(t)})}applySeriesLabelFontSize(e,t){this.handleSeries(e,function(e){e.ensureLabel().ensureTextStyle().setFontSize(t)})}applySeriesLabelItalic(e,t){this.handleSeries(e,function(e){e.ensureLabel().ensureTextStyle().setItalic(t)})}applySeriesLabelBold(e,t){this.handleSeries(e,function(e){e.ensureLabel().ensureTextStyle().setBold(t)})}applySeriesLabelColor(e,t){this.handleSeries(e,function(e){e.ensureLabel().ensureTextStyle().setColor(t)})}applyLegendHidden(e){this.ensureChartLegend().setHidden(e)}applyLegendPosition(e){this.ensureChartLegend().setPosition(e),this.applyLegendHidden(!1)}applyLegendFontFamily(e){this.ensureChartLegendStyle().setFontFamily(e)}applyLegendFontSize(e){this.ensureChartLegendStyle().setFontSize(e)}applyLegendItalic(e){this.ensureChartLegendStyle().setItalic(e)}applyLegendBold(e){this.ensureChartLegendStyle().setBold(e)}applyLegendColor(e){this.ensureChartLegendStyle().setColor(e)}applyAxisTickNumber(e,t){this.handleAxis(e,function(e){e.setTickNumber(t)})}applyAxisTreatAsText(e,t){this.handleAxis(e,function(e){e.setTreatAsText(t)})}applyAxisScalingMin(e,t){this.handleAxis(e,function(e){e.ensureScaling().setMin(t)})}applyAxisScalingMax(e,t){this.handleAxis(e,function(e){e.ensureScaling().setMax(t)})}applyAxisScalingOrientation(e,t){this.handleAxis(e,function(e){e.ensureScaling().setOrientation(t)})}applyAxisScalingRevert(e,t){this.handleAxis(e,function(e){e.ensureScaling().setRevert(t)})}applyAxisScalingLogBase(e,t){this.handleAxis(e,function(e){e.ensureScaling().setLogBase(t)})}applyAxisScalingLog(e,t){this.handleAxis(e,function(e){e.ensureScaling().setLog(t)})}applyAxisGridHidden(e,t){this.handleAxis(e,function(e){e.ensureMajorGridLines().setHidden(t)})}applyAxisGridColor(e,t){this.handleAxis(e,function(e){e.ensureMajorGridLines().setColor(t)})}applyAxisLabelHidden(e,t){this.handleAxis(e,function(e){e.ensureLabel().setHidden(t)})}applyAxisLabelRotate(e,t){this.handleAxis(e,function(e){e.ensureLabel().setRotate(t)})}applyAxisLabelFontFamily(e,t){this.handleAxis(e,function(e){e.ensureLabel().ensureTextStyle().setFontFamily(t)})}applyAxisLabelFontSize(e,t){this.handleAxis(e,function(e){e.ensureLabel().ensureTextStyle().setFontSize(t)})}applyAxisLabelItalic(e,t){this.handleAxis(e,function(e){e.ensureLabel().ensureTextStyle().setItalic(t)})}applyAxisLabelBold(e,t){this.handleAxis(e,function(e){e.ensureLabel().ensureTextStyle().setBold(t)})}applyAxisLabelColor(e,t){this.handleAxis(e,function(e){e.ensureLabel().ensureTextStyle().setColor(t)})}applyPlotAreaLayoutEnabled(e,t){let i=this.ensurePlotArea().ensureLayout();i.setEnabled(e),e&&t?(i.setTop(t.top||0),i.setLeft(t.left||0),i.setRight(t.right||0),i.setBottom(t.bottom||0)):(i.setTop(null),i.setLeft(null),i.setRight(null),i.setBottom(null))}applyPlotAreaLeft(e){this.ensurePlotArea().ensureLayout().setLeft(e)}applyPlotAreaTop(e){this.ensurePlotArea().ensureLayout().setTop(e)}applyPlotAreaRight(e){this.ensurePlotArea().ensureLayout().setRight(e)}applyPlotAreaBottom(e){this.ensurePlotArea().ensureLayout().setBottom(e)}invertChartSetting(){let e=[];return e.push.apply(e,this.invert("_applyChartGrouping")),e.push.apply(e,this.invert("_applyChartBarDir")),this.forEachSeries(function(t,i){e.push.apply(e,this.invert("applySeriesType",[i]))},this,!0),e.push.apply(e,this.invert("_applyChartType")),e}_invertChartType(e){return{args:[this.ensureChart().getType(!0)]}}_invertChartBarDir(e){return{args:[this.ensureChart().getBarDir(!0)]}}_invertChartGrouping(e){return{args:[this.ensureChart().getGrouping(!0)]}}invertChartBackgroundColor(e){return{args:[this.ensureChart().getBackgroundColor(!0)]}}invertChartBlankAs(e){return{args:[this.ensurePlotArea().getBlankAs(!0)]}}invertChartShowBlank(e){return this.invert("applyChartBlankAs")}invertGlobalFontFamily(e){return{args:[this.ensureGlobalTextStyle().getFontFamily(!0)]}}invertUseColumnHeader(e){return{args:[this.ensurePlotArea().getUseColumnHeader(!0)]}}invertUseRowHeader(e){return{args:[this.ensurePlotArea().getUseRowHeader(!0)]}}invertSwitchRowColumn(e){return{args:[this.ensurePlotArea().getSwitchRowColumn(!0)]}}invertPieHoleSize(e){return{args:[this.ensurePieSeries().getPieHoleSize(!0)]}}invertPieBorderColor(e){return{args:[this.ensurePieSeries().getPieBorderColor(!0)]}}invertPieLabelDisplay(e){let t=this.ensurePieLabel();return{args:[{val:t.getShowVal(!0),cat:t.getShowCat(!0),percent:t.getShowPercent(!0)}]}}invertPieLabelFontFamily(e){return{args:[this.ensurePieLabelStyle().getFontFamily(!0)]}}invertPieLabelFontSize(e){return{args:[this.ensurePieLabelStyle().getFontSize(!0)]}}invertPieLabelBold(e){return{args:[this.ensurePieLabelStyle().getBold(!0)]}}invertPieLabelItalic(e){return{args:[this.ensurePieLabelStyle().getItalic(!0)]}}invertPieLabelColor(e){return{args:[this.ensurePieLabelStyle().getColor(!0)]}}invertTitleText(e,t){let i=[];return this.handleTitle(e,function(e,t){i.push({args:[t,e.getText(!0)]})}),i}invertTitleFontFamily(e,t){let i=[];return this.handleTitle(e,function(e,t){i.push({args:[t,e.ensureTextStyle().getFontFamily(!0)]})}),i}invertTitleFontSize(e,t){let i=[];return this.handleTitle(e,function(e,t){i.push({args:[t,e.ensureTextStyle().getFontSize(!0)]})}),i}invertTitleBold(e,t){let i=[];return this.handleTitle(e,function(e,t){i.push({args:[t,e.ensureTextStyle().getBold(!0)]})}),i}invertTitleItalic(e,t){let i=[];return this.handleTitle(e,function(e,t){i.push({args:[t,e.ensureTextStyle().getItalic(!0)]})}),i}invertTitleColor(e,t){let i=[];return this.handleTitle(e,function(e,t){i.push({args:[t,e.ensureTextStyle().getColor(!0)]})}),i}invertSeriesType(e,t){let i=[];return this.handleSeries(e,function(e,t){i.push({args:[t,e.getType(!0)]})}),i}invertSeriesColor(e,t){if(b(e))if(this.ensureChart().getType()===s.PIE)return this.invert("_applyPieColor",arguments);else return this.invert("_applySeriesColor",arguments)}_invertPieColor(e,t){return{args:[e,this.ensurePieSeries().getPieColor(e,!0)]}}_invertSeriesColor(e,t){return{args:[e,this.ensureSeries(e).getColor(!0)]}}invertSeriesRightAxis(e,t){let i=[];return this.handleSeries(e,function(e,t){i.push({args:[t,e.getRightAxis(!0)]})}),i}invertSeriesSmooth(e,t){let i=[];return this.handleSeries(e,function(e,t){i.push({args:[t,e.getSmooth(!0)]})}),i}invertSeriesOpacity(e,t){let i=[];return this.handleSeries(e,function(e,t){i.push({args:[t,e.getOpacity(!0)]})}),i}invertSeriesLineType(e,t){let i=[];return this.handleSeries(e,function(e,t){i.push({args:[t,e.ensureLineStyle().getType(!0)]})}),i}invertSeriesLineWidth(e,t){let i=[];return this.handleSeries(e,function(e,t){i.push({args:[t,e.ensureLineStyle().getWidth(!0)]})}),i}invertSeriesMarkerSymbol(e,t){let i=[];return this.handleSeries(e,function(e,t){i.push({args:[t,e.ensureMarker().getSymbol(!0)]})}),i}invertSeriesMarkerSize(e,t){let i=[];return this.handleSeries(e,function(e,t){i.push({args:[t,e.ensureMarker().getSize(!0)]})}),i}invertSeriesLabelHidden(e,t){let i=[];return this.handleSeries(e,function(e,t){i.push({args:[t,e.ensureLabel().getHidden(!0)]})}),i}invertSeriesLabelPosition(e,t){let i=[];return this.handleSeries(e,function(e,t){i.push({args:[t,e.ensureLabel().getPosition(!0)]})}),i}invertSeriesLabelFontFamily(e,t){let i=[];return this.handleSeries(e,function(e,t){i.push({args:[t,e.ensureLabel().ensureTextStyle().getFontFamily(!0)]})}),i}invertSeriesLabelFontSize(e,t){let i=[];return this.handleSeries(e,function(e,t){i.push({args:[t,e.ensureLabel().ensureTextStyle().getFontSize(!0)]})}),i}invertSeriesLabelItalic(e,t){let i=[];return this.handleSeries(e,function(e,t){i.push({args:[t,e.ensureLabel().ensureTextStyle().getItalic(!0)]})}),i}invertSeriesLabelBold(e,t){let i=[];return this.handleSeries(e,function(e,t){i.push({args:[t,e.ensureLabel().ensureTextStyle().getBold(!0)]})}),i}invertSeriesLabelColor(e,t){let i=[];return this.handleSeries(e,function(e,t){i.push({args:[t,e.ensureLabel().ensureTextStyle().getColor(!0)]})}),i}invertLegendHidden(e){return{args:[this.ensureChartLegend().getHidden(!0)]}}invertLegendPosition(e){return[{args:[this.ensureChartLegend().getPosition(!0)]},{name:"applyLegendHidden",args:[this.ensureChartLegend().getHidden(!0)]}]}invertLegendFontFamily(e){return{args:[this.ensureChartLegendStyle().getFontFamily(!0)]}}invertLegendFontSize(e){return{args:[this.ensureChartLegendStyle().getFontSize(!0)]}}invertLegendItalic(e){return{args:[this.ensureChartLegendStyle().getItalic(!0)]}}invertLegendBold(e){return{args:[this.ensureChartLegendStyle().getBold(!0)]}}invertLegendColor(e){return{args:[this.ensureChartLegendStyle().getColor(!0)]}}invertAxisTickNumber(e,t){let i=[];return this.handleAxis(e,function(e,t){i.push({args:[t,e.getTickNumber(!0)]})}),i}invertAxisTreatAsText(e,t){let i=[];return this.handleAxis(e,function(e,t){i.push({args:[t,e.getTreatAsText(!0)]})}),i}invertAxisScalingMin(e,t){let i=[];return this.handleAxis(e,function(e,t){i.push({args:[t,e.ensureScaling().getMin(!0)]})}),i}invertAxisScalingMax(e,t){let i=[];return this.handleAxis(e,function(e,t){i.push({args:[t,e.ensureScaling().getMax(!0)]})}),i}invertAxisScalingOrientation(e,t){let i=[];return this.handleAxis(e,function(e,t){i.push({args:[t,e.ensureScaling().getOrientation(!0)]})}),i}invertAxisScalingRevert(e,t){return this.invert("applyAxisScalingOrientation",[e])}invertAxisScalingLogBase(e,t){let i=[];return this.handleAxis(e,function(e,t){i.push({args:[t,e.ensureScaling().getLogBase(!0)]})}),i}invertAxisScalingLog(e,t){return this.invert("applyAxisScalingLogBase",[e])}invertAxisGridHidden(e,t){let i=[];return this.handleAxis(e,function(e,t){i.push({args:[t,e.ensureMajorGridLines().getHidden(!0)]})}),i}invertAxisGridColor(e,t){let i=[];return this.handleAxis(e,function(e,t){i.push({args:[t,e.ensureMajorGridLines().getColor(!0)]})}),i}invertAxisLabelHidden(e,t){let i=[];return this.handleAxis(e,function(e,t){i.push({args:[t,e.ensureLabel().getHidden(!0)]})}),i}invertAxisLabelRotate(e,t){let i=[];return this.handleAxis(e,function(e,t){i.push({args:[t,e.ensureLabel().getRotate(!0)]})}),i}invertAxisLabelFontFamily(e,t){let i=[];return this.handleAxis(e,function(e,t){i.push({args:[t,e.ensureLabel().ensureTextStyle().getFontFamily(!0)]})}),i}invertAxisLabelFontSize(e,t){let i=[];return this.handleAxis(e,function(e,t){i.push({args:[t,e.ensureLabel().ensureTextStyle().getFontSize(!0)]})}),i}invertAxisLabelItalic(e,t){let i=[];return this.handleAxis(e,function(e,t){i.push({args:[t,e.ensureLabel().ensureTextStyle().getItalic(!0)]})}),i}invertAxisLabelBold(e,t){let i=[];return this.handleAxis(e,function(e,t){i.push({args:[t,e.ensureLabel().ensureTextStyle().getBold(!0)]})}),i}invertAxisLabelColor(e,t){let i=[];return this.handleAxis(e,function(e,t){i.push({args:[t,e.ensureLabel().ensureTextStyle().getColor(!0)]})}),i}invertPlotAreaLayoutEnabled(e){let t=this.ensurePlotArea().ensureLayout(),i={top:t.getTop(!0),left:t.getLeft(!0),right:t.getRight(!0),bottom:t.getBottom(!0)};return{args:[t.getEnabled(!0),i]}}invertPlotAreaLeft(e){return{args:[this.ensurePlotArea().ensureLayout().getLeft(!0)]}}invertPlotAreaTop(e){return{args:[this.ensurePlotArea().ensureLayout().getTop(!0)]}}invertPlotAreaRight(e){return{args:[this.ensurePlotArea().ensureLayout().getRight(!0)]}}invertPlotAreaBottom(e){return{args:[this.ensurePlotArea().ensureLayout().getBottom(!0)]}}isDrawable(){let e,t,i,n=this.ensureChart().getType()===s.PIE,o=+!!this.dataHasCat(),r=+!!this.dataHasTx(),a=n?o+1:this.getDataRowNumber(),l=this.getDataColNumber();if(o>=a||r>=l)return!1;for(e=o;e<a;e++)for(t=r;t<l;t++)if(b(i=this.getData(e,t))&&(!n||i>0))return!0;return!1}getEmptyCategory(){let e=this.getSeriesCat(),t=this.getSeriesCount();return e.map((i,n)=>{if(!g(e[n]))return!1;for(let e=0;e<t;e++)if(b(this.getSeriesVal(e,n)))return!1;return!0})}getEmptySeries(){return Array.from({length:this.getSeriesCount()},(e,t)=>this.getSeriesVal(t).every(e=>g(e)))}calcSeriesData(e){let t=[];for(let e=0,i=this.getSeriesCount();e<i;++e)t.push({name:this.getSeriesTx(e),data:this.getSeriesVal(e)});return t}calcPlotBound(e){let{top:t,bottom:i,left:n,right:o}=w.padding,r=this.ensureGlobalTextStyle().getFontSize(),a=this.ensureChartTitle();a.getText()&&(t+=_(a.ensureTextStyle().getFontSize()||r));let s=this.ensureChartSubtitle();s.getText()&&(t+=_(s.ensureTextStyle().getFontSize()||r)+(a.getText()?w.titleGap:0));let l=this.ensureChartLegend();if(!l.getHidden())switch(l.getPosition()){case"t":t+=_(l.ensureTextStyle().getFontSize()||r)+w.plotGap;break;case"b":i+=_(l.ensureTextStyle().getFontSize()||r)+w.plotGap;break;case"l":n+=w.legendWidth;break;default:o+=w.legendWidth}return t+=w.plotGap,n+=w.plotGap,o+=w.plotGap,e&&(t/=w.cm2pxMultiplier,n/=w.cm2pxMultiplier,o/=w.cm2pxMultiplier,i/=w.cm2pxMultiplier),{top:t,left:n,right:o,bottom:i}}getEchartParameters(e,t){let i=function(e){switch(e.ensureChart().getType()){case s.LINE:return new E(e);case s.AREA:return new R(e);case s.BAR:return new D(e);case s.PIE:return new O(e);case s.SCATTER:return new M(e);case s.HYBRID:return new N(e)}}(this);if(i)return i.initData(),i.convert(e,t)}clone(){return new this.constructor(this.getChartCfg(),this.getOptionCfg())}getConfig(){return{chartCfg:this.getChartCfg(),optionCfg:this.getOptionCfg()}}getChartCfg(){return this.build()}getOptionCfg(){return this._options}}},85196:function(e,t,i){"use strict";i.d(t,{jB:()=>h,hn:()=>F,T5:()=>g,z1:()=>r,sv:()=>p,xs:()=>r});var n,o,r={};i.r(r),i.d(r,{x4:()=>l,pR:()=>d,Wd:()=>c,pV:()=>a,BM:()=>s});let a=0,s=1,l=0,c=1,d=2;class u{constructor(e){if(void 0===e.status)throw Error("not given a status");this.id=e.id,"number"==typeof e.author?(this.author=e.author,this.authorName=e.authorName||""):(this.author=0,this.authorName=e.authorName||e.author||""),this.status=e.status,this.text=e.text||"",this.timestamp=e.timestamp||0,this.lastModified=e.lastModified||0}isOpened(){return this.status===l}isResolved(){return this.status===c}isAuthor(e){return 0===e||this.author===e}editText(e){if(!e.text)throw Error("empty string is not allowed");return this.copy({text:e.text,lastModified:e.lastModified})}toJSON(){return{id:this.id,author:this.author,authorName:this.authorName||void 0,status:this.status,text:this.text,timestamp:this.timestamp,lastModified:this.lastModified}}static fromJSON(e){throw Error("BaseComment is not constructable.")}}class h extends u{constructor(e){super(e)}isReopened(){return this.status===d}copy(e){return new this.constructor(Object.assign(this.toObject(),e))}toObject(){return this.toJSON()}static fromJSON(e){return new this(e)}}class p extends u{constructor(e){super(e),this.type=e.type,this.replies=e.replies||[]}isDiscussion(){return this.type===a}isSuggestion(){return this.type===s}getReply(e){return this._ensureReplyIndexInBound(e),this.replies[e]}_ensureReplyIndexInBound(e){if(e<0||e>=this.replies.length){var t;throw t=this.replies.length,Error(`Request #${e}, only ${t} replies`)}}reply(e){if(this.status===c){let t=this.constructor.createReply({...e,status:d});return this.copy({status:l,replies:this.replies.concat(t)})}{let t=this.constructor.createReply(e);return this.copy({replies:this.replies.concat(t)})}}resolve(e){return this._setStatus(e,c,c)}reopen(e){return this._setStatus(e,l,d)}_setStatus(e,t,i){if(this.status===t)return this;let n=this.constructor.createReply({...e,status:i,text:""});return this.copy({status:t,replies:this.replies.concat(n)})}removeReply(e){this._ensureReplyIndexInBound(e.replyIndex);let t=this.replies.slice();return t.splice(e.replyIndex,1),this.copy({replies:t})}editReplyText(e){this._ensureReplyIndexInBound(e.replyIndex);let t=this.replies.slice();return t[e.replyIndex]=t[e.replyIndex].editText(e),this.copy({replies:t})}copy(e){return new this.constructor(Object.assign(this.toObject(),e))}toObject(){return Object.assign(super.toJSON(),{type:this.type,replies:this.replies.slice()})}toJSON(){return Object.assign(super.toJSON(),{type:this.type,replies:this.replies.map(e=>e.toJSON())})}static fromJSON(e){return new this({...e,replies:(e.replies||[]).map(this.createReply,this)})}static createReply(e){return h.fromJSON(e)}}var f=i(11312);class g extends f.EventEmitter{constructor(e){super(),this.comments=e||Object.create(null)}getCommentById(e,t){void 0===t&&(t=!1);let i=this.comments[e]||null;if(!i&&t)throw Error(`Comment id: "${e}" Not Found`);return i}getBy(e,t){return this.getCommentById(e,t)}getComments(){return this.comments}getAllCommentIds(){return Object.keys(this.comments)}getAllCommentValues(){return Object.values(this.comments)}getCommentCount(){return this.getAllCommentIds().length}forEach(e,t){let i=this.comments;for(let n in i)if(Object.prototype.hasOwnProperty.call(i,n)&&e.call(t,i[n],n,i))break}copy(){return Object.assign(Object.create(Object.getPrototypeOf(this)),this,{comments:{...this.comments}})}setComment(e){let t=this.copy();return t.comments[e.id]=e,this.emit("commentChanged",[[e.id,e.toJSON()]]),t}deleteComment(e){let t=this.copy();return delete t.comments[e],this.emit("commentChanged",[[e,null]]),t}createComment(e,t){if(this.getCommentById(t.id))throw Error(`Comment id "${t.id}" already exists in store`);if(e!==t.author)throw Error("Can only create comment by yourself");if(t.type===a&&t.status!==l)throw Error("Can only create open status discussion.");let i=this.constructor.createComment(t);return this.setComment(i)}removeComment(e,t){if(!this.getCommentById(t.target,!0).isAuthor(e))throw Error("Can only remove comment created by self");return this.deleteComment(t.target)}reply(e,t){let i=this.getCommentById(t.target,!0);return this.setComment(i.reply(t))}removeReply(e,t){let i=this.getCommentById(t.target,!0),n=i.getReply(t.replyIndex);if(!n.isAuthor(e))throw Error(`No permission to remove reply in reply \`${n.id}\` of comment \`${i.id}\` by uid ${e}.`);return this.setComment(i.removeReply(t))}resolve(e,t){let i=this.getCommentById(t.target,!0);return this.setComment(i.resolve(t))}reopen(e,t){let i=this.getCommentById(t.target,!0);return this.setComment(i.reopen(t))}editCommentText(e,t){let i=this.getCommentById(t.target,!0);if(!i.isOpened())throw Error(`Unable to edit comment text in a resolved comment \`${i.id}\`.`);if(!i.isAuthor(e))throw Error(`No permission to edit comment text in comment \`${i.id}\` by uid ${e}.`);return this.setComment(i.editText(t))}editReplyText(e,t){let i=this.getCommentById(t.target,!0);if(!i.isOpened())throw Error(`Unable to edit reply text in a resolved comment \`${i.id}\`.`);let n=i.getReply(t.replyIndex);if(n.isResolved()||n.isReopened()&&!n.text)throw Error(`Unable to edit reply text in a resolved/reopened reply \`${n.id}\` of comment \`${i.id}\`.`);if(!n.isAuthor(e))throw Error(`No permission to edit reply text in reply \`${n.id}\` of comment \`${i.id}\` by uid ${e}.`);return this.setComment(i.editReplyText(t))}toJSON(){return Object.keys(this.comments).map(e=>this.comments[e].toJSON())}static fromJSON(e){return new this(this.createComments(e||[]))}static createComment(e){return p.fromJSON(e)}static createComments(e){return e.reduce((e,t)=>{let i=this.createComment(t);return e[i.id]=i,e},Object.create(null))}}var m=i(34877),v=i(27796),b=i(75952),y=i(80954),w=i(94353),_=i(89357),x=i(54851),S=i(67737),C=(n=function(e,t){return e&&(0,_.Z)(e,t,x.Z)},function(e,t){if(null==e)return e;if(!(0,S.Z)(e))return n(e,t);for(var i=e.length,r=-1,a=Object(e);(o?r--:++r<i)&&!1!==t(a[r],r,a););return e});let k=function(e,t){var i=-1,n=(0,S.Z)(e)?Array(e.length):[];return C(e,function(e,o,r){n[++i]=t(e,o,r)}),n},I=function(e,t){var i=e.length;for(e.sort(t);i--;)e[i]=e[i].value;return e};var A=i(94421),T=i(56721);let E=function(e,t){if(e!==t){var i=void 0!==e,n=null===e,o=e==e,r=(0,T.Z)(e),a=void 0!==t,s=null===t,l=t==t,c=(0,T.Z)(t);if(!s&&!c&&!r&&e>t||r&&a&&l&&!s&&!c||n&&a&&l||!i&&l||!o)return 1;if(!n&&!r&&!c&&e<t||c&&i&&o&&!n&&!r||s&&i&&o||!a&&o||!l)return -1}return 0},R=function(e,t,i){for(var n=-1,o=e.criteria,r=t.criteria,a=o.length,s=i.length;++n<a;){var l=E(o[n],r[n]);if(l){if(n>=s)return l;return l*("desc"==i[n]?-1:1)}}return e.index-t.index};var D=i(85627),O=i(3073);let M=function(e,t,i){t=t.length?(0,b.Z)(t,function(e){return(0,O.Z)(e)?function(t){return(0,y.Z)(t,1===e.length?e[0]:e)}:e}):[D.Z];var n=-1;return t=(0,b.Z)(t,(0,A.Z)(w.Z)),I(k(e,function(e,i,o){return{criteria:(0,b.Z)(t,function(t){return t(e)}),index:++n,value:e}}),function(e,t){return R(e,t,i)})};var N=i(11021),P=i(99302),L=(0,N.Z)(function(e,t){if(null==e)return[];var i=t.length;return i>1&&(0,P.Z)(e,t[0],t[1])?t=[]:i>2&&(0,P.Z)(t[0],t[1],t[2])&&(t=[t[0]]),M(e,(0,v.Z)(t,1),[])}),B=i(65611);function F(e){return(0,m.defineStore)(`comment-base-${e}`,{state:()=>({comments:[]}),getters:{getCommentById(e){let{comments:t}=e;return e=>t.find(t=>t.id===e)??null}},actions:{flush(e){e.comments&&(this.comments=L(e.comments,["id"]))},updateByDelta(e){for(let[t,i]of e){let e=(0,B.Z)(this.comments,{id:t},"id"),n=this.comments[e]?.id===t;i?this.comments.splice(e,+!!n,i):n&&this.comments.splice(e,1)}}}})}},44175:function(e,t,i){"use strict";let n,o;function r(e){return 32===e||9===e||10===e}function a(e){return 12288===e}function s(e){return r(e)||a(e)}i.d(t,{wf:()=>v,ue:()=>S,Ao:()=>x,bk:()=>Q});let l=(()=>{function e(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];let[n,o,r,a,s,l,c,d]=t;return n|o<<1|r<<2|a<<3|s<<4|l<<5|c<<6|d<<7}let t=[0,0,0,0,0,0,0,0,0,0,0,0];return[[e(0,0,0,0,0,0,0,1),e(0,0,0,0,0,0,0,0),0,e(0,0,0,1,0,0,0,0),0,0,0,e(0,0,1,0,0,0,0,0),0,0,0,e(0,0,1,0,0,0,0,0)],[e(0,0,0,0,0,0,0,1),e(0,0,0,0,0,0,0,0),0,e(0,0,0,1,0,0,0,0),0,0,0,e(0,0,1,0,0,0,0,0),0,0,0,e(0,0,1,0,0,0,0,0)],[e(0,0,0,0,0,0,0,1),e(0,0,0,0,0,0,0,0),0,e(0,0,0,1,0,0,0,0),0,0,0,e(0,0,1,0,0,0,0,0),0,0,0,e(0,0,1,0,0,0,0,0)],[e(0,0,0,0,0,0,0,0),e(0,0,0,0,0,0,0,0),0,e(0,0,0,0,0,0,0,0),0,0,0,e(0,0,0,0,0,0,0,0),0,0,0,e(0,0,0,0,0,0,0,0)],[e(0,0,0,0,0,0,0,1),e(0,0,0,0,0,0,0,0),0,e(0,0,0,1,0,0,0,0),0,0,0,e(0,0,1,0,0,0,0,0),0,0,0,e(0,0,1,0,0,0,0,0)],[e(0,0,0,0,0,0,0,1),e(0,0,0,0,0,0,0,0),0,e(0,0,0,1,0,0,0,0),0,0,0,e(0,0,1,0,0,0,0,0),0,0,0,e(0,0,1,0,0,0,0,0)],[e(0,0,0,0,0,0,0,0),e(0,0,0,0,0,0,0,0),0,e(0,0,0,0,0,0,0,0),0,0,0,e(0,0,0,0,0,0,0,0),0,0,0,e(0,0,0,0,0,0,0,0)],[e(0,0,0,0,0,0,0,0),e(0,0,0,0,0,0,0,0),0,e(0,0,0,0,0,0,0,0),0,0,0,e(0,0,0,0,0,0,0,0),0,0,0,e(0,0,0,0,0,0,0,0)],[e(0,0,0,0,0,0,0,1),e(0,0,0,0,0,0,0,0),0,e(0,0,0,1,0,0,0,0),0,0,0,e(0,0,1,0,0,0,0,0),0,0,0,e(0,0,1,0,0,0,0,0)],[e(0,0,0,0,0,0,0,1),e(0,0,0,0,0,0,0,0),0,e(0,0,0,1,0,0,0,0),0,0,0,e(0,0,1,0,0,0,0,0),0,0,0,e(0,0,1,0,0,0,0,0)],[e(0,0,0,0,0,0,0,1),e(0,0,0,0,0,0,0,0),0,e(0,0,0,1,0,0,0,0),0,0,0,e(0,0,1,0,0,0,0,0),0,0,0,e(0,0,1,0,0,0,0,0)],[e(0,0,0,0,0,0,0,1),e(0,0,0,0,0,0,0,0),0,e(0,0,0,1,0,0,0,0),0,0,0,e(0,0,1,0,0,0,0,0),0,0,0,e(0,0,1,0,0,0,0,0)],[e(0,1,1,0,1,1,1,1),e(0,1,1,0,1,0,0,0),0,e(0,0,0,1,1,1,0,1),255,255,255,e(1,1,1,1,0,1,1,1),255,255,255,e(1,1,1,1,0,1,1,1)],[e(0,0,0,0,0,0,0,1),e(0,0,0,0,0,0,0,0),0,e(0,0,0,1,0,0,0,0),0,0,0,e(0,0,1,0,0,0,0,0),0,0,0,e(0,0,1,0,0,0,0,0)],[e(0,0,0,0,0,0,0,0),e(0,0,0,0,0,0,0,0),0,e(0,0,0,0,0,0,0,0),0,0,0,e(0,0,0,0,0,0,0,0),0,0,0,e(0,0,0,0,0,0,0,0)],t,t,t,t,t,t,t,t,t,t,[e(0,0,0,0,0,0,0,1),e(0,0,0,0,0,0,0,0),0,e(0,0,0,1,0,0,0,0),0,0,0,e(0,0,1,0,0,0,0,0),0,0,0,e(0,0,1,0,0,0,0,0)],[e(0,0,0,0,0,0,0,1),e(0,0,0,0,0,0,0,0),0,e(0,0,0,1,0,0,0,0),0,0,0,e(0,0,1,0,0,0,0,0),0,0,0,e(0,0,1,0,0,0,0,0)],[e(0,0,0,0,0,0,0,0),e(0,0,0,0,0,0,0,0),0,e(0,0,0,0,0,0,0,0),0,0,0,e(0,0,0,0,0,0,0,0),0,0,0,e(0,0,0,0,0,0,0,0)],[e(0,0,0,0,0,0,0,1),e(0,0,0,0,0,0,0,0),0,e(0,0,0,1,0,0,0,0),0,0,0,e(0,0,1,0,0,0,0,0),0,0,0,e(0,0,1,0,0,0,0,0)],[e(0,0,0,0,0,0,0,1),e(0,0,0,0,0,0,0,0),0,e(0,0,0,1,0,0,0,0),0,0,0,e(0,0,1,0,0,0,0,0),0,0,0,e(0,0,1,0,0,0,0,0)],[e(0,0,1,1,1,1,0,1),e(0,1,1,0,1,0,0,1),255,e(1,0,0,1,1,1,0,1),255,255,255,e(1,1,1,1,0,1,1,1),255,255,255,e(1,1,1,1,0,1,1,0)],[e(0,0,0,0,0,0,0,0),e(0,0,0,0,0,0,0,0),0,e(0,0,0,0,0,0,0,0),0,0,0,e(0,0,0,0,0,0,0,0),0,0,0,e(0,0,0,0,0,0,0,0)],t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,[e(0,0,0,0,0,0,0,0),e(0,0,0,0,0,0,0,0),0,e(0,0,0,0,0,0,0,0),0,0,0,e(0,0,0,0,0,0,0,0),0,0,0,e(0,0,0,0,0,0,0,0)],[e(0,0,0,0,0,0,0,1),e(0,0,0,0,0,0,0,0),0,e(0,0,0,1,0,0,0,0),0,0,0,e(0,0,1,0,0,0,0,0),0,0,0,e(0,0,1,0,0,0,0,0)],[e(0,0,0,0,0,0,0,1),e(0,0,0,0,0,0,0,0),0,e(0,0,0,1,0,0,0,0),0,0,0,e(0,0,1,0,0,0,0,0),0,0,0,e(0,0,1,0,0,0,0,0)],[e(0,0,0,0,0,0,0,0),e(0,0,0,0,0,0,0,0),0,e(0,0,0,0,0,0,0,0),0,0,0,e(0,0,0,0,0,0,0,0),0,0,0,e(0,0,0,0,0,0,0,0)],[e(0,0,0,0,0,0,0,0),e(0,0,0,0,0,0,0,0),0,e(0,0,0,0,0,0,0,0),0,0,0,e(0,0,0,0,0,0,0,0),0,0,0,e(0,0,0,0,0,0,0,0)],[e(0,0,0,0,0,0,0,0),e(0,0,0,0,0,0,0,0),0,e(0,0,0,0,0,0,0,0),0,0,0,e(0,0,0,0,0,0,0,0),0,0,0,e(0,0,0,0,0,0,0,0)],t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t,[e(0,0,0,0,0,0,0,0),e(0,0,0,0,0,0,0,0),0,e(0,0,0,0,0,0,0,0),0,0,0,e(0,0,0,0,0,0,0,0),0,0,0,e(0,0,0,0,0,0,0,0)],[e(0,0,0,0,0,0,0,1),e(0,0,0,0,0,0,0,0),0,e(0,0,0,1,0,0,0,0),0,0,0,e(0,0,1,0,0,0,0,0),0,0,0,e(0,0,1,0,0,0,0,0)],[e(0,0,0,0,0,0,0,1),e(0,0,0,0,0,0,0,0),0,e(0,0,0,1,0,0,0,0),0,0,0,e(0,0,1,0,0,0,0,0),0,0,0,e(0,0,1,0,0,0,0,0)],[e(0,0,0,0,0,0,0,1),e(0,0,0,0,0,0,0,0),0,e(0,0,0,1,0,0,0,0),0,0,0,e(0,0,1,0,0,0,0,0),0,0,0,e(0,0,1,0,0,0,0,0)],[e(0,0,0,0,0,0,0,0),e(0,0,0,0,0,0,0,0),0,e(0,0,0,0,0,0,0,0),0,0,0,e(0,0,0,0,0,0,0,0),0,0,0,e(0,0,0,0,0,0,0,0)]]})();function c(e){return e>=48&&e<=57}function d(e){return"string"!=typeof e?{textWrapping:e?.textWrapping??"wrap",endOfLineSpace:e?.endOfLineSpace??"wrap",endOfLineOtherSpace:e?.endOfLineOtherSpace??"wrap"}:"pre-wrap"===e?{textWrapping:"wrap",endOfLineSpace:"hang",endOfLineOtherSpace:"hang"}:{textWrapping:"wrap",endOfLineSpace:"wrap",endOfLineOtherSpace:"wrap"}}var u=i(97545);let h={preceding:!1,subsequent:!1};function p(e){return h.preceding=e?.preceding??!1,h.subsequent=e?.subsequent??!1,h}let f={text:"",hasPrecedingJoiner:!1,hasSubsequentJoiner:!1,prefixedJoiner:"",suffixedJoiner:""};var g=i(46342);let m=[0,0];function v(e){if(e)return"verticalAlign"in e||"verticalAlignReferenceStyle"in e||"additionalLineStyles"in e?{...e,verticalAlign:void 0,verticalAlignReferenceStyle:void 0,additionalLineStyles:void 0}:e}function b(e){e.font=(0,g.generateFontStyle)(e)}function y(e){if(b(e),e.verticalAlignReferenceStyle&&b(e.verticalAlignReferenceStyle),e.additionalLineStyles){let t=e.additionalLineStyles;Array.isArray(t)?t.forEach(b):b(t)}return e}function w(e,t){if(e){let i={...t,...e};if(e.verticalAlignReferenceStyle&&(i.verticalAlignReferenceStyle={...t,...e.verticalAlignReferenceStyle}),e.additionalLineStyles){let n=e.additionalLineStyles;Array.isArray(n)?i.additionalLineStyles=n.map(e=>({...t,...e})):i.additionalLineStyles={...t,...n}}return y(i)}if(t)return y({...t})}function _(e,t){return{width:e.width,height:e.height,textBoxAscent:e.fontBoundingBoxAscent,textBoxDescent:e.fontBoundingBoxDescent,lineBoxAscent:t.lineBoundingBoxAscent,lineBoxDescent:t.lineBoundingBoxDescent}}function x(e){let t=e?.textBoxAscent??0,i=e?.textBoxDescent??0,n=e?.lineBoxAscent??0,o=e?.lineBoxDescent??0;return{width:e?.width??0,height:t+i,textBoxAscent:t,textBoxDescent:i,lineBoxAscent:n,lineBoxDescent:o}}function S(e,t){let i=Math.max(e.textBoxAscent,t.textBoxAscent),n=Math.max(e.textBoxDescent,t.textBoxDescent),o=Math.max(e.lineBoxAscent,t.lineBoxAscent),r=Math.max(e.lineBoxDescent,t.lineBoxDescent);return{width:e.width+t.width,height:i+n,textBoxAscent:i,textBoxDescent:n,lineBoxAscent:o,lineBoxDescent:r}}function C(e,t){return{text:(0,g.measureText)(e,t),line:(0,g.measureLine)(t)}}function k(e,t){return t?e=function(e,t){let i=t.additionalLineStyles;if(!i)return e;for(let t of(e={...e},Array.isArray(i)?i:[i])){let{lineBoundingBoxAscent:i,lineBoundingBoxDescent:n}=(0,g.measureLine)(t);e.lineBoxAscent=Math.max(e.lineBoxAscent,i),e.lineBoxDescent=Math.max(e.lineBoxDescent,n)}return e}(e=function(e,t){let i=t.verticalAlign;if("super"!==i&&"sub"!==i)return e;let n=(0,g.measureLine)(t.verticalAlignReferenceStyle??t),o="super"===i?n.superBaselineAscent:n.subBaselineAscent;return{width:e.width,height:e.height,textBoxAscent:e.textBoxAscent+o,textBoxDescent:e.textBoxDescent-o,lineBoxAscent:Math.max(e.lineBoxAscent+o,n.lineBoundingBoxAscent),lineBoxDescent:Math.max(e.lineBoxDescent-o,n.lineBoundingBoxDescent)}}(e,t),t):e}function I(e){if("number"==typeof e)return{total:e,width:e,margin:[0,0],filled:void 0};{let{width:t,margin:i=[0,0],filled:n}=e;return{total:t-i[0]-i[1],width:t,margin:i,filled:n&&x(n)}}}function A(e,t){return w(e.style,t?.defaultStyle)}function T(e){let t="border"in e?e.border:void 0;return{left:t?.left??0,top:t?.top??0,right:t?.right??0,bottom:t?.bottom??0}}function E(e,t,i){let{text:n,line:o}=C(e,t),r=T(i),a=n.fontBoundingBoxAscent+r.top,s=n.fontBoundingBoxDescent+r.bottom,l=o.lineBoundingBoxAscent+r.top,c=o.lineBoundingBoxDescent+r.bottom;return k({width:n.width+r.left+r.right,height:a+s,textBoxAscent:a,textBoxDescent:s,lineBoxAscent:l,lineBoxDescent:c},t)}var R=i(9981),D=i(6799),O={};let M=[[4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,3,4,4,4,4,4,4,4,4,4,4,4],[0,4,4,1,1,4,4,4,4,1,1,0,0,0,0,1,1,1,0,0,4,2,4,0,0,0,0,0,0,0,0,1,0],[0,4,4,1,1,4,4,4,4,1,1,1,1,1,0,1,1,1,0,0,4,2,4,0,0,0,0,0,0,0,0,1,0],[4,4,4,1,1,1,4,4,4,1,1,1,1,1,1,1,1,1,1,1,4,2,4,1,1,1,1,1,1,1,1,1,1],[1,4,4,1,1,1,4,4,4,1,1,1,1,1,1,1,1,1,1,1,4,2,4,1,1,1,1,1,1,1,1,1,1],[0,4,4,1,1,1,4,4,4,0,0,0,0,0,0,1,1,1,0,0,4,2,4,0,0,0,0,0,0,0,0,1,0],[0,4,4,1,1,1,4,4,4,0,0,0,0,0,0,1,1,1,0,0,4,2,4,0,0,0,0,0,0,0,0,1,0],[0,4,4,1,1,1,4,4,4,0,0,1,0,1,0,1,1,1,0,0,4,2,4,0,0,0,0,0,0,0,0,1,0],[0,4,4,1,1,1,4,4,4,0,0,1,1,1,0,1,1,1,0,0,4,2,4,0,0,0,0,0,0,0,0,1,0],[1,4,4,1,1,1,4,4,4,0,0,1,1,1,1,1,1,1,0,0,4,2,4,1,1,1,1,1,0,1,1,1,0],[1,4,4,1,1,1,4,4,4,0,0,1,1,1,0,1,1,1,0,0,4,2,4,0,0,0,0,0,0,0,0,1,0],[1,4,4,1,1,1,4,4,4,1,1,1,1,1,0,1,1,1,0,0,4,2,4,0,0,0,0,0,0,0,0,1,0],[1,4,4,1,1,1,4,4,4,1,1,1,1,1,0,1,1,1,0,0,4,2,4,0,0,0,0,0,0,0,0,1,0],[1,4,4,1,1,1,4,4,4,1,1,1,1,1,0,1,1,1,0,0,4,2,4,0,0,0,0,0,0,0,0,1,0],[0,4,4,1,1,1,4,4,4,0,1,0,0,0,0,1,1,1,0,0,4,2,4,0,0,0,0,0,0,0,0,1,0],[0,4,4,1,1,1,4,4,4,0,0,0,0,0,0,1,1,1,0,0,4,2,4,0,0,0,0,0,0,0,0,1,0],[0,4,4,1,0,1,4,4,4,0,0,1,0,0,0,1,1,1,0,0,4,2,4,0,0,0,0,0,0,0,0,1,0],[0,4,4,1,0,1,4,4,4,0,0,0,0,0,0,1,1,1,0,0,4,2,4,0,0,0,0,0,0,0,0,1,0],[1,4,4,1,1,1,4,4,4,1,1,1,1,1,1,1,1,1,1,1,4,2,4,1,1,1,1,1,1,1,1,1,0],[0,4,4,1,1,1,4,4,4,0,0,0,0,0,0,1,1,1,0,4,4,2,4,0,0,0,0,0,0,0,0,1,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,0,0,0,0,0,0,0,0,0,0,0,0],[1,4,4,1,1,1,4,4,4,1,1,1,1,1,0,1,1,1,0,0,4,2,4,0,0,0,0,0,0,0,0,1,0],[1,4,4,1,1,1,4,4,4,1,1,1,1,1,1,1,1,1,1,1,4,2,4,1,1,1,1,1,1,1,1,1,1],[0,4,4,1,1,1,4,4,4,0,1,0,0,0,0,1,1,1,0,0,4,2,4,0,0,0,1,1,0,0,0,1,0],[0,4,4,1,1,1,4,4,4,0,1,0,0,0,0,1,1,1,0,0,4,2,4,0,0,0,0,1,0,0,0,1,0],[0,4,4,1,1,1,4,4,4,0,1,0,0,0,0,1,1,1,0,0,4,2,4,1,1,1,1,0,0,0,0,1,0],[0,4,4,1,1,1,4,4,4,0,1,0,0,0,0,1,1,1,0,0,4,2,4,0,0,0,1,1,0,0,0,1,0],[0,4,4,1,1,1,4,4,4,0,1,0,0,0,0,1,1,1,0,0,4,2,4,0,0,0,0,1,0,0,0,1,0],[0,4,4,1,1,1,4,4,4,0,0,0,0,0,0,1,1,1,0,0,4,2,4,0,0,0,0,0,1,0,0,1,0],[0,4,4,1,1,1,4,4,4,0,1,0,0,0,0,1,1,1,0,0,4,2,4,0,0,0,0,0,0,0,1,1,0],[0,4,4,1,1,1,4,4,4,0,1,0,0,0,0,1,1,1,0,0,4,2,4,0,0,0,0,0,0,0,0,1,0],[1,4,4,1,1,1,4,4,4,1,1,1,1,1,0,1,1,1,0,0,4,2,4,0,0,0,0,0,0,0,0,1,0],[0,4,4,1,1,0,4,4,4,0,0,0,0,0,0,0,0,0,0,0,4,2,4,0,0,0,0,0,0,0,0,1,0]],N=new R(D.toByteArray("AAgOAAAAAAAQ4QAAAQ0P8vDtnQuMXUUZx+eyu7d7797d9m5bHoWltKVUlsjLWE0VJNigQoMVqkStEoNQQUl5GIo1KKmogEgqkKbBRki72lYabZMGKoGAjQRtJJDaCCIRiiigREBQS3z+xzOTnZ3O+3HOhd5NfpkzZx7fN9988zivu2M9hGwB28F94DnwEngd/Asc1EtIs9c/bIPDwCxwLDgezHcodyo4w5C+CCwBS8FnwSXgCnA1uFbI93XwbXAbWAfWgx+CzWAb+An4KfgFeAzsYWWfYuFz4CXwGvgb+Dfo6yNkEEwGh4CZYB44FpwI3g1OY+kfBItZOo2fB84Hy8DF4HJwNbiWpV8PVoO1LH4n2NRXyN+KcAd4kNVP9XsY4aPgcfAbsBfs6SniL4K/sPjfEf6HlanXCRkCw2BGvUh/keWfXS/CY+pFXs7x9XHmM94LTmWIeU2cgbxnS/k/B3kf86jDhU8L9V2E40vAFWAlWFUfb++NOL4F3C7JX4/4GiE+hvgWsF0oS7mXldspnN+F493gyXrh9xTav0cg3EvzgVfBG6wsmVSEkxBOBgdPGpd7JI6PnqRvJ68/xlbHof53gPeA94OzwLngk+ACsAwsByvASrAK3MB0Ws3CtQjvBJvAVrADPMDSHkb4CNijaccTwvnf4fiPEs8Lxy+D18A/QU8/xjgYBjPAbDAKTgYLwOngTHAO+EQ/8wuEF4EvsPiVCFf2+9tsFStzA8LVHuXXBsi6QyqzUYiPMR/7Mc7dAx7oL8bzw/3u/Bw8Bp4Az4AXwCtgHzsmDXP5fiF9iiVvly5d0sHngar16NKlS5cuXbp06fLmYlqHXrcd3ph4P0THUY3iXh49novju4S0tzfs5d+JPKewfAsRntZb3K9ZhOMlrO6lCC8An28U9+OuovcPcPxlVu5rCL/VmHh/iHIrzn3fIPu7SN8Axmg+8AOwEWwCm7tp3bRuWjetm5Y8bSu4B9zbKO6ZVsnORrVU3f4uXTqZ2H3sLoyx3eDXjfDndE9qyj6L838CfwVvgFpzYnof4oNgOhgBc8Fos9DrZIQLmtXPP1MmF6wGj4H+KXoWguvADkXaPil+YpuQy8Am8Ey7ODdtmJDF4HowBp4De6HDTNjhfHAHeBr0DBBy0kDxfPbcgSIusgrcWhtnJ8vL+TPix7UIOQtcBq4C28Cr4KRBnANbwSuDE+s50JgyNNFuXbp06XIgsXjIvPafjvXozKY+fVFz/z0LT1uCtKVSWbrOLWPnztG8e0Xfy7ol8XtZJi7WtG+5od2UFXQ/A12vUeS7jp27yVKHjdsU9lXB869TyNvAzt0lpP2oWbwLdjiO78bx/Sz+EMJHwK9Y/LcIfw+eZ3F67/Hl5vh9xX80J+rwX8SvRDhpgL17iPAQMHNArfPrqHPewLheI+AERV6efwV418B4nOZ/H+IfYHV8GOF5LJ3eAz0fx8sM9S0fUNud39O9CulfGZhY5huI3wzWgNvBelbHZoTbNPVpfYjKQpkHwUNgl0LWblbnk0LbbDxr0OMFpL3iqWdu9nWYPlVAWkXY39LnGdCkDbeqv1YNbfcMQ3t9oe8lzm6NH9N1ZB6Ln4BwfkJZJk7RyFnYKt6b/JDQXx9p5X+eFdqOjzM9P9MB/lUlFzr20aXIdzlY4dmn9F3YqtvoO76/2hp/D/xA5Zue88nNyL8GbFbs075X0tyUig3Qd2MCnf//HjnzpbsR3g9+1kHzzVjdnE71/qVBX9rGPUh/ysNWe1neFzvIDi5zAufV1sT0N0poR22wkFUfTOPfA4N2mbZ5fSrqOHSw+IbkSBbOGSzSRgf91/GTUWYBOB2cIZQ/G8cfBZ8CFwrnL8XxF8FKcA24jqXdiPA7Qr61OF7H4mMItwzuv2/YLth1ISt3Hzu3k4W7EH5JqPdRHD/O4k+z8A8IX5Lq3y7Z4nXE9xn6kX6vQ4bKfy+ok+hH+xf3hq9dnTTHhjKd2GmDuWA242iHMq4cC7A8kJ7i8o1+skSa7Jieo38HCWnoNjKFhdSFBxzpZ7QE6lI8N4S14aASZcryaV/WWHw66f6NHuCoxuQxmvM56GX9QMd8Q4D65ywGP+ZzRJuM+zQvx/MOS2VFeqQ4IXnH26zM9Xe6/E6D+4foAzzuajPZp8Qyw5ayZVDWuH0z0BtYRkeIDqH9KO9VbH1btd/lhNqCzvl8zeLnG0S/hnU6baHfpiuO6yy0rd+DHURo/zYF5H26j03rQsip2ndzz82u1z9N4VjWKWeb68Tedpt95HRVXp7H1R6p+/Wt4FPy/PpWwscOLRJ+PVWF/+W0iVyGzs18TIvXkOJ1Wxm66vSXz+vylenrZcj1ub439W+K8RNCGTJi2p/TJ1K23VaXr35tRpnzmjxequgfcfyk6B/TGBVlyedsNgpdd/h+W1U3P99QyFPNo1X3TwpM/WLTIWYfoBqXrv6iskHZ/RFr79R6hIyHBrH3f1nrUVnjP8SnZZ+rYtzr9Exld5MNbPNErusAPg+77u/eDOPftU9yj39TH7rezxd1LvsZQJlzkWlOirG/79zjMj/mtHUKu7vKy+3/LnXr9okyKedjX5/0He9iP/j63LwOQdarEVlfy8OO/Lqw023j6xcqmwxLiOd6heM2i9cV9LJy8jMJ23yQ+rpbfu7EQ/pXE8KYvUSqvVnb4XzZa6LrHMXHR+zcLvqWbm/Bn0/HzIs6fWPHoat8XfnDKmZGxRxeMbn2UqZ5Q94nmcZRbqqUXbZ8+lcjE+cPX11t814orvvAXNcG8vqj2vvk1MGn3anlj0bIT72v47bvE+Lc98T9b6r7AKn6j+8Duf7D0nnZx/j7Zjn0j9nbpSTndaLr9WNLivP+iN23xF7L+fqv6ZouFyb78jxVXvv5jJ9YUs9/sddO8h7KNg5jrhfaJGztT6G7KF+1d6yCmD5Kdb2fan60rSc552fZr3zeQ9DpnPp+Si5cx5Ktv2QfSzF/mMbWdOm46rFI4XstnU9xeqX4NKb7TKEdcr6pZOK3ID1k/LvFHkVczEuZLEDr499YqvqBym1aEHWgcvoYOtv0M91qQl5TfpO/in6rWx8OVpT1Wedkv3f5xom3T/xeR/6Gx6V86PWAOB4bBpqWdN+yTcVxjIyGRz/FrDGu6w/3d7kPm8StX8RyPu+uuvpNju/vTLJV37GpvoM0oZPnW87VLnL/5pDno1NoW1R6yedU6TyUv3u19a3KFnIbTLYz+ZCLP4T0tU1uivFgso0pnsJ/UtXvarNY28Xq5cvkBDrQP/E5ZaiuQwwfmTlsOiQRU1fMuqrDd/3ISSuwjOwXOfTyGUMpZIXq4GpLn3pUcdfzch2x7XO1u2uZHOPb1G6b3Xg9PH1IIWeEpJlPQtqos2EKW8b0u8rnuP1UeVLoXJb9be0uG9nnbchjU+XTszT5VeNBThPHnc5OKj1U9aj0GTHIVaGy1YhEWT4ixns00DT+XEzWn/7VAsIc63Cov3OdyhwjrnaqQqZvWKXdypRdlq+k8msZ031U+Rm4fA+3TtyeR9hwfW9G9yxDN0fZMN33F+9TE6md4hwoxumfaUzI9fN3PFT3xVV2msrQ3UsnChm6Nulk8TndpS28D3zX9tTIPsF/z7Am5OkTjm1tI1JZW74+4VgsZ0N3L1yXV3WeP5uR7TGHHdvC3JQlxybfpd22tDlk/2eofRK8TzrN/qnar/K/OUTth6I/+jAnEptNbPvFHP2gs40N3+dfMWtwqvVct7/wfd8gtQ7imifial9ZJ9/3IHLYU6eDj3+4PhsNhX+vwvcWLnu6kGfEMe8DuciPfUfGZB8X/7HJy/Gefe5n+VRGFd/wyP2ta7/LO4yh/sbLV/k9lev6kfO9Dt/5U67b1/6u/epqB1U9Me23jfHY9sscAg4tkbLl+e4/U36rJ9ddxfd6sg5vq5ice42Wpk/pb9FOJ36/W9tpv4kbC79nUbZceX8Zu6/qJ+P3WvhvA8v3reh7Jbn2d6rrNC7XNZTLma4Ba0JI9efX2uLzF5scG/w9UNU1ZxW+ymUfzELeTllXlQ1rUuhzjS5fp9c964iFBOqeSz63bU065nZKdU+mDEz3qHIjjifquw0pnb/raRtvrnsYcb46ihT3taoYz6brdNW9l6rWRnE/navdPn1XlR1km7hcz1WlH/elKuSOSvLLuE8U6m8uzwRdfcGl73VyTHuyMvzJ1Sa2cWDTP/Z63Kc94n2B1PYr24dz1JlyHLlcP+S4B6vD1c9EW4q2LWstCvUjeVy63k/LMYdUNd5D1xQfvVTzX1VjkMsUv88N8VH5fReVn/Fjn++/h6X6Q8a6b1/q3g/i/ewi0/Scs8zxXeV6mWIOUPlPzBgdFerW+bZrm2P18dnjuK6HunEp+rHvPMXbr+sHVb/lnL+pTP57jPw9Cvk3PW178JD9qChfzuvTf7Htl38L1QUf/VKu9SFjwWbTWPvFEvu7Uq76y7+31g6QlYPc669pbsm9Xur2LWI9Pu8ypfDXqm3A2z8s1FWGn4ntL9NfQu2oSlftX9uetvTtv7J8Ql4zxfXGZ3zk8PeQ9w59x2uMfqI8/q5eKh/l9cb2rwsu9rSNl06ZP2Pmxtz+rNMx93yno0n2/82rVH7rQ+y9P15H6FyRun9ViH81ATmffI7nJ5r8uXXW6enbP6b/B8/l5OifVHYLnb9S39s2zcc+Ph+rh8+eQgVPS72elzGWY/tUtbbabBpDiI7yN1q6/4th2y+ErAc5+9BVvu/7KamJbWNZeuqI/R4tRf+YyD1HmOZM1bMV3/14Sn10c0Xu+Sj1nOXb5jL73ncdy02uvlXZNde65dOHYl7Vs4KYuS6FzWLn2zJlpZqPXPVPOa5yzKOyn1VhT9lmMfdbfH7D11Wf2PXN5h9y+dD287+qxgSnaYmnIrRtIb8pJe6/Uv9OVer6Whn0zfGO/BEloZI9ojmfAlUflClDd178bTmVHVTpZXOkAlk/lb42UujmI89HH5V+cl7XtowY6vTxLVWok6UrGzoGTHN+bB+6ri05687VNpvfuvRfaP2uMlNQth1D5JjGelm/8yn+9p3p/7qk9gnfeddXZmq/Sm333PJT659Kv1zjNbZ9uv2Oi//67CV8/N1nj1DmviyXDNVeJkaeaX8UsyesYg8cu2+NvdaPfb+lLDu5tvt/")),P=function(e){switch(e){case 33:case 39:case 40:case 42:return 12;case 35:return 5;default:return e}},L=function(e){switch(e){case 37:case 38:return 34;case 41:return 22;default:return e}};class B{constructor(e,t=!1){this.position=e,this.required=t}}O=class{nextCodePoint(){let e=this.string.charCodeAt(this.pos++),t=this.string.charCodeAt(this.pos);return 55296<=e&&e<=56319&&56320<=t&&t<=57343?(this.pos++,(e-55296)*1024+(t-56320)+65536):e}nextCharClass(){return P(N.get(this.nextCodePoint()))}getSimpleBreak(){switch(this.nextClass){case 41:return!1;case 34:case 37:case 38:return this.curClass=34,!1;case 36:return this.curClass=36,!1}return null}getPairTableBreak(e){let t=!1;switch(M[this.curClass][this.nextClass]){case 0:t=!0;break;case 1:t=41===e;break;case 2:if(!(t=41===e))return!1;break;case 3:if(41!==e)return t}return this.LB8a&&(t=!1),this.LB21a&&(16===this.curClass||17===this.curClass)?(t=!1,this.LB21a=!1):this.LB21a=13===this.curClass,28===this.curClass?(this.LB30a++,2==this.LB30a&&28===this.nextClass&&(t=!0,this.LB30a=0)):this.LB30a=0,this.curClass=this.nextClass,t}nextBreak(){if(null==this.curClass){let e=this.nextCharClass();this.curClass=L(e),this.nextClass=e,this.LB8a=31===e,this.LB30a=0}for(;this.pos<this.string.length;){this.lastPos=this.pos;let e=this.nextClass;if(this.nextClass=this.nextCharClass(),34===this.curClass||36===this.curClass&&37!==this.nextClass)return this.curClass=L(P(this.nextClass)),new B(this.lastPos,!0);let t=this.getSimpleBreak();if(null===t&&(t=this.getPairTableBreak(e)),this.LB8a=31===this.nextClass,t)return new B(this.lastPos)}return this.lastPos<this.string.length?(this.lastPos=this.string.length,new B(this.string.length)):null}constructor(e){this.string=e,this.pos=0,this.lastPos=0,this.curClass=null,this.nextClass=null,this.LB8a=!1,this.LB21a=!1,this.LB30a=0}};class F{constructor(e,t={}){this.implementation=new O(e),this.breakOpportunityCaches=[],this.pos=0}get textLength(){return this.implementation.string.length}nextToPos(){let{pos:e}=this;if(e>=this.textLength)return null;let{implementation:t,breakOpportunityCaches:i}=this;for(;i.length<=e;){let e=t.lastPos,n=t.nextBreak();if(!n)return null;let{position:o}=n;for(let t=e;t<o;++t)i.push(n)}let n=i[e];return this.seek(n.position),n}seek(e){let t=this.textLength;return(e<0&&(e+=t),e>=0&&e<=t)?(this.pos=e,!0):(this.pos=t,!1)}next(e){return"number"==typeof e&&this.seek(e),this.nextToPos()}}function V(e){return e>127&&160!==e}class z{constructor(e,t={}){this.text=e,this.breakSpaceType=t.breakSpaceType??"after_every_spaces",this.icuLineBreaker=void 0}getBreakSpaceType(){return this.breakSpaceType}ensureIcuLineBreaker(){return this.icuLineBreaker??(this.icuLineBreaker=new F(this.text))}next(e){let t,i,{text:n,breakSpaceType:o}=this,s=n.length;if(!(e>=0&&e<s))return -1;let d=-1,u=++e>=2?n.charCodeAt(e-2):0,h=n.charCodeAt(e-1),p=r(h);for(let f=e;f<s;++f,u=h,h=t,p=i){switch(i=r(t=n.charCodeAt(f)),o){case"before_every_spaces":if(i||a(t))return f;break;case"before_space_run":if(i){if(!p)return f;continue}break;case"after_space_run":if(p){if(!i)return f;continue}break;case"after_every_spaces":if(p||a(h))return f;if(i||a(t))return f+1}if(function(e,t,i){if(45===t&&c(i))return c(e)||(32|e)>=97&&(32|e)<=122;if(t>=33&&t<=127&&i>=33&&i<=127){let e=i-33,n=e%8;return!!(l[t-33][(e-n)/8]&1<<n)}return!1}(u,h,t)||(V(t)||V(h))&&(d<f&&(d=this.ensureIcuLineBreaker().next(f-1)?.position??-1),f===d&&!p))return f}return s}}function H(e,t,i){let n=e.at(-1)?.to??0;t<=n||e.push({from:n,to:t,forceBreak:i})}class W{constructor(e,t,i={}){this.textMetas=t,this.textChunks=[],this.lastTextMetaIndex=-1,this.initTextChunks(e,i)}collectTextChunks(e,t,i,n,o){for(let t=n;t<o;++t){let i=e.charCodeAt(t);10===i?H(this.textChunks,t+1,!0):9===i&&"tab"===this.findTextMeta(t).item.type&&H(this.textChunks,t,!1)}(9!==e.charCodeAt(i-1)||"tab"!==this.findTextMeta(i-1).item.type)&&H(this.textChunks,i,!1)}initTextChunksForWrap(e,t){let i=new z(e,t),{spaceBefore:n,spaceChecker:o}=function(e){let t,i;switch(e){case"before_every_spaces":t=!0,i=s;break;case"before_space_run":t=!0,i=r;break;case"after_space_run":t=!1,i=r;break;case"after_every_spaces":t=!1,i=s;break;default:throw Error(`Invalid break space type: ${e}`)}return{spaceBefore:t,spaceChecker:i}}(i.getBreakSpaceType()),a=0;for(;;){let t=i.next(a);if(t<0)break;let r=a,s=t;if(n){for(let i=a;i<t;++i)if(!o(e.charCodeAt(i))){s=i;break}}else for(let i=t-1;i>=a;--i)if(!o(e.charCodeAt(i))){r=i+1;break}this.collectTextChunks(e,a,t,r,s),a=t}}initTextChunksForNoWrap(e,t){for(let t=0,i=e.length;t<i;++t)10===e.charCodeAt(t)&&H(this.textChunks,t+1,!0)}initTextChunks(e,t){let{textWrapping:i}=d(t.whiteSpaceRule);"wrap"===i?this.initTextChunksForWrap(e,t):this.initTextChunksForNoWrap(e,t),H(this.textChunks,e.length,!1)}findTextMeta(e){let{textMetas:t,lastTextMetaIndex:i}=this,n=function(e,t,i){let n=t>=0?e[t]:null;if(n&&i>=n.from&&i<n.to)return t;let o=n&&i>=n.to?t+1:0;for(let t=o,n=e.length;t<n;++t)if(i<e[t].to)return t;throw Error(`Given position is out of range. pos: ${i}, range: ${[e.at(0)?.from,e.at(-1)?.to]}`)}(t,i,e);return this.lastTextMetaIndex=n,t[n]}*iterateTextChunks(){yield*this.textChunks}}var Y=i(88141),U=i(59359);let G={preceding:!1,subsequent:!1};class Z{constructor(e={}){let t=e.canvas?e.canvas.getContext("2d"):void 0!==o?o:o=(0,U.createCanvasRenderingContext2D)();if(!t)throw Error("The canvas does not have 2D context.");this.whiteSpaceRule=d(e.whiteSpaceRule),this.overflowWrapType=e.overflowWrapType??"normal",this.renderingContext=t,this.defaultStyle=e.defaultStyle,this.hangingSpaceChecker=function(e){let t="hang"===e.endOfLineSpace,i="hang"===e.endOfLineOtherSpace;return t&&i?s:t?r:i?a:void 0}(this.whiteSpaceRule),this.canvasStyle={direction:t.direction,font:t.font,fontStretch:t.fontStretch}}getWhiteSpaceRule(){return this.whiteSpaceRule}getOverflowWrapType(){return this.overflowWrapType}generateEffectiveTextDrawingStyle(e){return(0,g.generateEffectiveTextDrawingStyle)(this.defaultStyle?{...this.defaultStyle,...e}:e)}doSetupCanvasContext(e){let t=this.canvasStyle=this.generateEffectiveTextDrawingStyle(e);Object.assign(this.renderingContext,t)}createTextResult(e,t){let i={...function(e,t){let{preceding:i,subsequent:n}=p(t),o="",r=(0,u.findHeadJoiningTarget)(e,0,i);void 0!==r&&(e=(o=(0,u.isRTL)(r)?"‏‍":"‍")+e);let a="",s=(0,u.findTailJoiningTarget)(e,e.length,n);return void 0!==s&&(e+=a=(0,u.isRTL)(s)?"‍‏":"‍"),f.text=e,f.hasPrecedingJoiner=i,f.hasSubsequentJoiner=n,f.prefixedJoiner=o,f.suffixedJoiner=a,f}(e,t)};return{text:e,displayTextResult:i,displayStyle:this.canvasStyle,metrics:new g.TextMetrics(this.renderingContext.measureText(i.text))}}measureText(e,t){return this.doSetupCanvasContext(t?.style),this.createTextResult(e,t?.joiningRule)}fitText(e,t,i){return(this.doSetupCanvasContext(i?.style),i?.enableOverflowWrap)?this.fitTextWithWrap(e,t,i):this.fitTextSimple(e,t,i)}fitTextWithWrap(e,t,i){return"break-word"===this.overflowWrapType?this.fitTextWithWrapBreakWord(e,t,i):this.fitTextWithWrapNormal(e,t,i)}fitTextWithWrapBreakWord(e,t,i){let o=this.findHangingSpaceOffset(t);if(0===o)return this.createTextResultForFit(t,t.length,i);let r=i?.enableOverflowWrap==="allow_overflow";if(e>=0){let a=t.slice(0,o),s=function(e,t){let i=function(e){let t=e?.fontSize;return"number"==typeof t?t:10}(t);if(!(i>0))return null;let o=i*e.length,[r,a]=n??(n=function(){let e={font:"240px Arial"};return[Math.min(...["i","l"].map(t=>(0,g.measureText)(t,e).width))/240,Math.max(...[" "].map(t=>(0,g.measureText)(t,e).width))/240]}());return m[0]=o*r,m[1]=o*a,m}(a,i?.style);if(s&&e>=s[1]){let n;for(let r of(0,u.iterateGraphemeBreaks)(a,{reversed:!0})){let s=this.createTextResultForFit(a,r,i);if(s.metrics.width<=e)return this.maybeExtendTextResultForFit(s,t,o,i);n=s}if(n)return r?this.maybeExtendTextResultForFit(n,t,o,i):null}else if(s&&e<=s[0]){let n;for(let s of(0,u.iterateGraphemeBreaks)(a)){let l=this.createTextResultForFit(a,s,i);if(l.metrics.width>e)if(n)return this.maybeExtendTextResultForFit(n,t,o,i);else return r?this.maybeExtendTextResultForFit(l,t,o,i):null;n=l}if(n)return this.maybeExtendTextResultForFit(n,t,o,i)}else{let n,r=new u.GraphemeSegmenter(a);if((0,Y.r)(a,(t,o)=>{let s=r.next(o);if(n&&n.text.length>=s)return 1;let l=this.createTextResultForFit(a,s,i);return l.metrics.width<=e?(n=l,1):-1}),n)return this.maybeExtendTextResultForFit(n,t,o,i)}}if(!r)return null;let a=(0,u.nextGraphemeBreak)(t,0);return this.createTextResultForFit(t,a<o?a:t.length,i)}fitTextWithWrapNormal(e,t,i){return i?.enableOverflowWrap==="allow_overflow"?this.createTextResultForFit(t,t.length,i):this.fitTextSimple(e,t,i)}fitTextSimple(e,t,i){let n=this.findHangingSpaceOffset(t);if(0===n)return this.createTextResultForFit(t,t.length,i);{if(e<0)return null;let o=this.createTextResultForFit(t,n,i);return e<o.metrics.width?null:n===t.length?o:this.createTextResultForFit(t,t.length,i)}}findHangingSpaceOffset(e){let t=this.hangingSpaceChecker;if(!t)return e.length;for(let i=e.length-1;i>=0;--i)if(!t(e.charCodeAt(i)))return i+1;return 0}createTextResultForFit(e,t,i){let n;return t===e.length?n=i?.joiningRule:(e=e.slice(0,t),G.preceding=p(i?.joiningRule).preceding,G.subsequent=!1,n=G),this.createTextResult(e,n)}maybeExtendTextResultForFit(e,t,i,n){return e.text.length===i&&t.length!==i?this.createTextResultForFit(t,t.length,n):e}}var j=i(6291);class q{constructor(e={}){this.tabStops=e.tabStops??[],this.defaultTabStopStep=Math.max(e.defaultTabStopStep??0,0),this.tabStopIndexCache=0}getDefaultTabStopStep(){return this.defaultTabStopStep}findNextTabStop(e){let t=this.tabStops;if(0===t.length)return null;for(this.tabStopIndexCache>0&&e<t[Math.min(this.tabStopIndexCache,t.length)-1].pos&&(this.tabStopIndexCache=0);this.tabStopIndexCache<t.length;++this.tabStopIndexCache){let i=t[this.tabStopIndexCache];if(e<i.pos)return i}return null}computeNextDefaultTabStopDiff(e){let t=this.getDefaultTabStopStep();return t<=0?0:t-(0,j.w)(e,t)}doComputeTabInitialWidth(e,t){return e?"left"===e.type?e.pos-t:0:this.computeNextDefaultTabStopDiff(t)}doComputeTabExtraWidth(e,t,i){if(!e)return 0;{let n=e.type;return"right"===n?Math.max(e.pos-t-i,0):"center"===n?Math.max(e.pos-t-i/2,0):0}}computeTabInitialWidth(e,t){return void 0===t&&(t=this.findNextTabStop(e)),this.doComputeTabInitialWidth(t,e)}computeTabExtraWidth(e,t,i){return void 0===i&&(i=this.findNextTabStop(e)),this.doComputeTabExtraWidth(i,e,t)}computeTabWidth(e,t,i){return void 0===i&&(i=this.findNextTabStop(e)),this.doComputeTabInitialWidth(i,e)+this.doComputeTabExtraWidth(i,e,t)}}function K(e,t){let i=e.text+t.text,{hasPrecedingJoiner:n,prefixedJoiner:o}=e.displayTextResult,{hasSubsequentJoiner:r,suffixedJoiner:a}=t.displayTextResult;return{item:e.item,text:i,displayTextResult:{text:o+i+a,hasPrecedingJoiner:n,hasSubsequentJoiner:r,prefixedJoiner:o,suffixedJoiner:a},displayStyle:e.displayStyle,displayTabStop:e.displayTabStop,metrics:S(e.metrics,t.metrics)}}class X{constructor(e,t){this.lineSpaceGetter=function(e){if("function"==typeof e)return t=>I(e(t));{let t=I(e);return()=>t}}(e),this.defaultLineBoxMetrics=t?.defaultLineBoxMetrics,this.onBeforeWrap=t?.onBeforeWrap,this.onAfterWrap=t?.onAfterWrap,this.lines=[],this.tagMap=new Map;let i=this.getNextLineSpace();this.lineResult={from:0,to:0,reason:"overflow",space:i,metrics:this.createLineBoxMetrics(i),inlines:[]},this.pos=0,this.filledWidth=this.lineResult.metrics.width,this.committedInlineCount=0,this.committedPos=this.pos,this.committedFilledWidth=this.filledWidth,this.firstInlineExtend=null}getNextLineSpace(){return this.lineSpaceGetter.call(null,this.lines.length)}createLineBoxMetrics(e){let t=this.defaultLineBoxMetrics,i=e.filled;return t&&i?S(t,i):t?{...t}:i?{...i}:x()}getMargin(){return this.lineResult.space.margin}getPosition(){return this.pos}getCommittedPosition(){return this.committedPos}getFilledWidth(){return this.filledWidth}getFilledWidthTo(e){let t=this.lineResult.inlines;if(e>=t.length)return this.getFilledWidth();{let i=this.lineResult.metrics.width;for(let n=0;n<e;++n)i+=t[n].metrics.width;return this.firstInlineExtend&&e>=this.committedInlineCount&&(i+=this.firstInlineExtend.metrics.width),i}}getRemainingWidth(){return this.lineResult.space.total-this.filledWidth}getInlineWidth(e){let t=this.lineResult.inlines;if(e<0||e>=t.length)return 0;let i=t[e].metrics.width;return this.firstInlineExtend&&e===this.committedInlineCount-1&&(i+=this.firstInlineExtend.metrics.width),i}getCommittedCount(){return this.committedInlineCount}hasCommittedChanges(){return 0!==this.committedInlineCount}getUncommittedCount(){return this.lineResult.inlines.length-this.committedInlineCount+ +!!this.firstInlineExtend}hasUncommittedChanges(){return this.committedInlineCount!==this.lineResult.inlines.length||!!this.firstInlineExtend}getInlineCount(){return this.lineResult.inlines.length}getInlineResult(e){return this.lineResult.inlines[e]}getLineResults(){return this.lines}addInline(e){this.lineResult.inlines.push(e),this.pos+=e.text.length,this.filledWidth+=e.metrics.width}extendInline(e){if("text"!==e.item.type)return this.addInline(e);let t=this.lineResult.inlines,i=t.length;if(0===i)t.push(e);else if(i!==this.committedInlineCount){let n=i-1;"text"===t[n].item.type?t[n]=K(t[n],e):t.push(e)}else this.firstInlineExtend?this.firstInlineExtend=K(this.firstInlineExtend,e):"text"===t[i-1].item.type?this.firstInlineExtend=e:t.push(e);this.pos+=e.text.length,this.filledWidth+=e.metrics.width}squash(e,t){let i=this.lineResult.inlines;if(e>=i.length)return;let n=i[e];if(void 0!==t.displayTextResult&&(n.displayTextResult=t.displayTextResult),void 0!==t.displayStyle&&(n.displayStyle=t.displayStyle),t.metrics&&void 0!==t.metrics.width){let e=n.metrics.width;n.metrics={...n.metrics,width:t.metrics.width},this.filledWidth+=t.metrics.width-e}}tag(e){let t=this.lineResult.inlines.length;if(0===t)return;let i={id:e,inlineIndex:t-1};return this.tagMap.set(e,i),i}getTag(e){return this.tagMap.get(e)}deleteTag(e){return this.tagMap.delete(e)}commit(){if(this.firstInlineExtend){let e=this.lineResult.inlines;e[this.committedInlineCount-1]=K(e[this.committedInlineCount-1],this.firstInlineExtend),this.firstInlineExtend=null}this.committedInlineCount=this.lineResult.inlines.length,this.committedPos=this.pos,this.committedFilledWidth=this.filledWidth}rollback(){let e={pos:0,width:0,inlines:[],tags:[]},t=-this.committedInlineCount+ +!!this.firstInlineExtend;this.firstInlineExtend&&(e.inlines.push(this.firstInlineExtend),this.firstInlineExtend=null);let i=this.lineResult.inlines;for(let t=this.committedInlineCount,n=i.length;t<n;++t)e.inlines.push(i[t]);i.length=this.committedInlineCount,e.pos=this.pos-this.committedPos,e.width=this.filledWidth-this.committedFilledWidth,this.pos=this.committedPos,this.filledWidth=this.committedFilledWidth;let n=this.tagMap;for(let i of n.values())i.inlineIndex>=this.committedInlineCount&&(i.inlineIndex+=t,e.tags.push(i),n.delete(i.id));return e}fillLineBoxMetrics(e){let t=e.metrics,i=t.width,n=t.lineBoxAscent,o=t.lineBoxDescent;for(let{metrics:{width:t,lineBoxAscent:r,lineBoxDescent:a}}of e.inlines)i+=t,n<r&&(n=r),o<a&&(o=a);t.width=i,t.height=n+o,t.textBoxAscent=n,t.textBoxDescent=o,t.lineBoxAscent=n,t.lineBoxDescent=o}wrap(e){let t=this.rollback();this.onBeforeWrap&&(this.onBeforeWrap.call(null,this),this.commit()),this.lineResult.to=this.committedPos,this.lineResult.reason=e,this.fillLineBoxMetrics(this.lineResult),this.lines.push(this.lineResult);let i=this.getNextLineSpace();for(let e of(this.lineResult={from:this.committedPos,to:this.committedPos,reason:"overflow",space:i,metrics:this.createLineBoxMetrics(i),inlines:t.inlines},this.pos+=t.pos,this.filledWidth=this.lineResult.metrics.width+t.width,this.committedInlineCount=0,this.committedFilledWidth=this.lineResult.metrics.width,t.tags))this.tagMap.set(e.id,e);this.onAfterWrap&&this.onAfterWrap.call(null,this)}commitWrap(e){this.commit(),this.wrap(e)}}class Q{constructor(e,t,i={}){this.textSegmenter=new W(e,t,i),this.textFitter=new Z({...i,defaultStyle:void 0}),this.tabHandler=new q(i),this.text=e,this.splitInlinesByBreakOpportunities=i.splitInlinesByBreakOpportunities??!1,this.defaultLineBoxMetrics=function(e){let{text:t,line:i}=C("",e);return k(_(t,i),e)}(w(i.defaultStyle)),this.suppressEmptyLine=i.suppressEmptyLine??!1}breakLines(e){let t=new X(e,{defaultLineBoxMetrics:this.defaultLineBoxMetrics,onBeforeWrap:this.onContextBeforeWrap.bind(this),onAfterWrap:this.onContextAfterWrap.bind(this)}),i=0;for(let e of this.textSegmenter.iterateTextChunks()){if(t.getRemainingWidth()===1/0&&!e.forceBreak&&e.to!==this.text.length)continue;let n=e.to;for(;t.getPosition()<n;)this.handleLineBreakOpportunity(t,i,n,e.forceBreak);i=n}return(!this.suppressEmptyLine||t.hasCommittedChanges())&&t.commitWrap("end"),t.getLineResults()}handleLineBreakOpportunity(e,t,i,n){let o="normal"!==this.textFitter.getOverflowWrapType(),r=this.computeEnableOverflowWrap(e);for(;;){let a=e.getPosition(),{item:s,from:l,to:c,style:d,metrics:h}=this.textSegmenter.findTextMeta(a),p="tab"===s.type&&h;p&&this.handlePreviousTab(e);let f=0;if(h){let t="allow_overflow"===r;if(t||e.getRemainingWidth()>=0){let i,n;if(p){let t=e.getMargin()[0]+e.getFilledWidth();n=this.tabHandler.findNextTabStop(t),i={...h,width:this.tabHandler.computeTabInitialWidth(t,n)}}else n=null,i=h;if(t||i.width<=e.getRemainingWidth()){let t=this.text.slice(a,c),o={item:s,text:t,displayTextResult:{text:t,hasPrecedingJoiner:!1,hasSubsequentJoiner:!1,prefixedJoiner:"",suffixedJoiner:""},displayStyle:this.textFitter.generateEffectiveTextDrawingStyle(d),displayTabStop:n,metrics:i};e.addInline(o),f=1,p&&e.tag("tab")}}}else{let n=Math.min(c,i),o=this.text.slice(a,n),h=this.textFitter.fitText(e.getRemainingWidth(),o,{joiningRule:{preceding:0!==e.getInlineCount()&&void 0!==(0,u.findTailJoiningTrigger)(this.text,a),subsequent:void 0!==(0,u.findHeadJoiningTrigger)(this.text,n)},style:d,enableOverflowWrap:r});if(h){let{text:i,displayTextResult:n,displayStyle:r,metrics:c}=h,u={item:s,text:i,displayTextResult:n,displayStyle:r,displayTabStop:null,metrics:k(_(c,(0,g.measureLine)(d)),d)};a===l||this.splitInlinesByBreakOpportunities&&a===t?e.addInline(u):e.extendInline(u),f=i.length===o.length?1:2}}if(0===f){void 0===r?e.wrap("overflow"):e.commitWrap("overflow");break}if(2===f){e.commitWrap("overflow");break}if(c>=i){n?e.commitWrap("break"):e.commit();break}o&&(r=this.computeEnableOverflowWrap(e))}}computeEnableOverflowWrap(e){if(!e.hasCommittedChanges()){if("normal"===this.textFitter.getOverflowWrapType())return"allow_overflow";let t=e.getUncommittedCount();if(0===t)return"allow_overflow";if(1!==t)return"prevent_overflow";{let t=e.getTag("tab");return t&&t.inlineIndex===e.getInlineCount()-1?"allow_overflow":"prevent_overflow"}}}onContextBeforeWrap(e){this.handleLastJoiner(e),this.handlePreviousTab(e)}handleLastJoiner(e){let t=e.getInlineCount();if(0===t)return;let{item:i,text:n,displayTextResult:o,displayStyle:r}=e.getInlineResult(t-1);if("text"!==i.type||!o.hasSubsequentJoiner)return;let a=this.textFitter.measureText(n,{joiningRule:{preceding:o.hasPrecedingJoiner,subsequent:!1},style:r});e.squash(t-1,{displayTextResult:a.displayTextResult,displayStyle:a.displayStyle,metrics:{width:a.metrics.width}})}handlePreviousTab(e){let t=e.getTag("tab");if(!t)return;e.deleteTag("tab");let{inlineIndex:i}=t,n=e.getMargin(),o=e.getFilledWidthTo(i),r=e.getInlineWidth(i),a=Math.min(this.tabHandler.computeTabExtraWidth(n[0]+o,e.getFilledWidth()-o-r),e.getRemainingWidth()+Math.max(n[1],0));a<=0||e.squash(i,{metrics:{width:r+a}})}onContextAfterWrap(e){this.handleFirstJoiner(e),this.handleWrappedTab(e)}handleFirstJoiner(e){if(0===e.getInlineCount())return;let{item:t,text:i,displayTextResult:n,displayStyle:o}=e.getInlineResult(0);if("text"!==t.type||!n.hasPrecedingJoiner)return;let r=this.textFitter.measureText(i,{joiningRule:{preceding:!1,subsequent:n.hasSubsequentJoiner},style:o});e.squash(0,{displayTextResult:r.displayTextResult,displayStyle:r.displayStyle,metrics:{width:r.metrics.width}})}handleWrappedTab(e){let t=e.getTag("tab");if(!t)return;let{inlineIndex:i}=t,n=this.tabHandler.computeTabInitialWidth(e.getMargin()[0]+e.getFilledWidthTo(i));e.squash(i,{metrics:{width:n}})}static create(e,t){let{text:i,textMetas:n}=function(e,t){let i=[],n=[],o=0;for(let r of e)switch(r.type){case"text":o=function(e,t,i,n,o){let r=n.text;if(0===r.length)throw Error("Inline text item should not be empty.");let a=A(n,o),s=i+r.length;return e.push(r),t.push({item:n,from:i,to:s,style:a}),s}(i,n,o,r,t);break;case"break":o=function(e,t,i,n,o){let r=A(n,o),a=i+1;return e.push("\n"),t.push({item:n,from:i,to:a,style:r,metrics:E("",r,n)}),a}(i,n,o,r,t);break;case"tab":o=function(e,t,i,n,o){let r=A(n,o),a=i+1;return e.push("	"),t.push({item:n,from:i,to:a,style:r,metrics:E("",r,n)}),a}(i,n,o,r,t);break;case"object":o=function(e,t,i,n,o){let r,{inlineText:a,size:s}=n,l=A(n,o),c=i+1;return r=void 0!==a?E(a,l,n):function(e,t,i){let{text:n,line:o}=C("",t),r=T(i),a=e.width+r.left+r.right,s=e.height+r.top+r.bottom,l=Math.max(n.fontBoundingBoxAscent,s),c=n.fontBoundingBoxDescent;return k({width:a,height:l+c,textBoxAscent:l,textBoxDescent:c,lineBoxAscent:Math.max(o.lineBoundingBoxAscent,s),lineBoxDescent:o.lineBoundingBoxDescent},t)}({width:s?.width??0,height:s?.height??0},l,n),e.push(""),t.push({item:n,from:i,to:c,style:l,metrics:r}),c}(i,n,o,r,t);break;default:throw Error(`Unknown inline item: ${r.type}`)}return{text:i.join(""),textMetas:n}}(e,t=function(e){if(!e)return e;let t=e.defaultStyle,i=v(t);return t===i?e:{...e,defaultStyle:i}}(t));return new this(i,n,t)}}},58162:function(e,t,i){"use strict";i.d(t,{Z:()=>j});class n{constructor(){this.DAYS=[["Sun","Sunday"],["Mon","Monday"],["Tue","Tuesday"],["Wed","Wednesday"],["Thu","Thursday"],["Fri","Friday"],["Sat","Saturday"]],this.MONTHS=[["J","Jan","January"],["F","Feb","February"],["M","Mar","March"],["A","Apr","April"],["M","May","May"],["J","Jun","June"],["J","Jul","July"],["A","Aug","August"],["S","Sep","September"],["O","Oct","October"],["N","Nov","November"],["D","Dec","December"]],this.DEC=".",this.GROUP=",",this.AMPM=["AM","PM"],this.SHORT_AMPM=["A","P"]}toLocaleNumber(e){let t=-1;return"."!==this.DEC&&(t=e.indexOf(".")),","!==this.GROUP&&(e=e.replace(/,/g,this.GROUP)),-1!==t&&(e=e.substr(0,t)+this.DEC+e.substr(t+1)),e}}function o(e){let t=0;switch(e.charCodeAt(0)){case 34:return(t=e.indexOf('"',1))<0?e:e.slice(0,t+1);case 91:return(t=e.indexOf("]",1))<0?e:e.slice(0,t+1);case 95:case 42:case 92:return e.slice(0,2);case 48:case 35:case 63:return/[-0#?.,%E+/ ]+/.exec(e)[0];case 89:case 77:case 68:case 72:case 83:case 121:case 109:case 100:case 104:case 115:return/[YMDHS:/]+/i.exec(e)[0];case 65:return/AM\/PM|A\/P|A/.exec(e)[0];case 46:return/\.0*/.exec(e)[0];default:return e[0]}}let r={0:"General",1:"0",2:"0.00",3:"#,##0",4:"#,##0.00",9:"0%",10:"0.00%",11:"0.00E+00",12:"# ?/?",13:"# ??/??",14:"m/d/yy",15:"d-mmm-yy",16:"d-mmm",17:"mmm-yy",18:"h:mm AM/PM",19:"h:mm:ss AM/PM",20:"h:mm",21:"h:mm:ss",22:"m/d/yy h:mm",37:"#,##0 ;(#,##0)",38:"#,##0 ;[Red](#,##0)",39:"#,##0.00;(#,##0.00)",40:"#,##0.00;[Red](#,##0.00)",45:"mm:ss",46:"[h]:mm:ss",47:"mmss.0",48:"##0.0E+0",49:"@",56:'"上午/下午 "hh"時"mm"分"ss"秒 "',65535:"General"};var a=i(86061),s=i.n(a);function l(e){let t=e.toString();return -1<t.indexOf("e")?new(s())(e).toFixed():t}function c(e,t){let i=new(s())(e);return i.e+=t,parseFloat(i.toFixed())}let d=/\.(\d*[1-9])0+$/,u=/\.0*$/,h=/\.(\d*[1-9])0+/,p=/\.0*[Ee]/,f=/(E[+-])(\d)$/;function g(e){return e.indexOf(".")>-1?e.replace(u,"").replace(d,".$1"):e}function m(e,t){switch(typeof e){case"string":return e;case"boolean":return e?"TRUE":"FALSE";case"number":return(0|e)===e?l(e):function(e,t){let i=Math.floor(Math.log(Math.abs(e))*Math.LOG10E),n;if(i>=-4&&i<=-1)n=e.toPrecision(10+i);else if(9>=Math.abs(i))n=function(e){let t=e<0?12:11,i=g(e.toFixed(12));return i.length<=t||(i=e.toPrecision(10)).length<=t?i:e.toExponential(5)}(e);else if(10===i)n=e.toFixed(10).substr(0,12);else{let t;(t=e.toFixed(11).replace(d,".$1")).length>(e<0?12:11)&&(t=e.toPrecision(6)),n=t}return n=g(function(e){for(let t=0;t!=e.length;++t)if("e"===e[t])return e.replace(h,".$1").replace(p,"E").replace("e","E").replace(f,"$10$2");return e}(n)),"."===t.DEC?n:n.replace(/\./,t.DEC)}(e,t)}throw Error("unsupported value in General format: "+e)}function v(e,t){return e.length>=7+t&&"General"===e.substr(t,7)}function b(e){let t="",i=e.length-1;for(;i>=0;)t+=e.charAt(i--);return t}function y(e,t){let i="";for(;i.length<t;)i+=e;return i}function w(e){if(e.length<=3)return e;let t=e.length%3,i=e.substr(0,t);for(;t!=e.length;t+=3)i+=(i.length>0?",":"")+e.substr(t,3);return i}function _(e,t){let i=l(e);return i.length>=t?i:y("0",t-i.length)+i}function x(e,t){let i=l(e);return i.length>=t?i:y(" ",t-i.length)+i}function S(e,t){if(e>0x100000000||e<-0x100000000){var i=e;let n=l(Math.round(i=i<0?-Math.round(-i):Math.round(i)));return n.length>=t?n:y("0",t-n.length)+n}let n=l(e=e<0?-Math.round(-e):Math.round(e));return n.length>=t?n:y("0",t-n.length)+n}function C(e,t){let i=l(e);return i.length>=t?i:i+y(" ",t-i.length)}function k(e,t,i){let n=e<0?-1:1,o=e*n,r=0,a=1,s=0,l=1,c=0,d=0,u=Math.floor(o);for(;c<t&&(s=(u=Math.floor(o))*a+r,d=u*c+l,!(o-u<5e-10));)o=1/(o-u),r=a,a=s,l=c,c=d;if(d>t&&(d=c,s=a),d>t&&(d=l,s=r),!i)return[0,n*s,d];if(0===d)throw"Unexpected state: "+s+" "+a+" "+r+" "+d+" "+c+" "+l;let h=Math.floor(n*s/d);return[h,n*s-h*d,d]}let I=/%/g,A=/# (\?+)( ?)\/( ?)(\d+)/,T=/^#*0*\.(0+)/,E=/\).*[0#]/,R=/\(###\) ###\\?-####/;function D(e,t){let i="";if(e.match(/^#*0+.0+E[+-]0+$/)){let n=e.indexOf(".");n=n<0?e.indexOf("E"):n;let o=e.indexOf("E")-n-1;o=o<0?0:o;let r=Math.abs(t),a=Math.floor(Math.log(r)*Math.LOG10E),s=a%n<0?a%n+n:a%n;i=(0>(i=(r/Math.pow(10,a)).toPrecision(s+1+o)).indexOf("e")?(i=i.split(".").join("")).substr(0,s+1)+"."+i.substr(s+1):i.replace(/^([+-]?\d*\.?\d*)[eE]([+-]?\d+)$/,function(e,t){return t.substr(0,s+1)+"."+t.substr(s+1)}))+(a-s<0?"E":"E+")+(a-s)}let n=e.match(/E\+(0+)$/);return n&&(i=i.replace(/\d+$/,function(e){return _(+e,n[1].length)})),e.match(/E-/)&&i.match(/[eE]\+/)&&(i=i.replace(/([eE])\+/,"$1")),t<0?"-"+i:i}function O(e){let t="",i;for(let n=0;n!=e.length;++n)switch(i=e.charCodeAt(n)){case 35:break;case 63:t+=" ";break;case 48:t+="0";break;default:t+=String.fromCharCode(i)}return t}function M(e,t){let i=e<0?-e:e,n=Math.pow(10,t),o=Math.round((i-Math.floor(i))*n);return o>=n?o-n:o}function N(e,t){let i=c(Math.round(c(e<0?-e:e,t)),-t);return l(e<0?-i:i)}function P(e,t,i){return(0|i)===i?function e(t,i,n){let o;if(40===t.charCodeAt(0)&&!i.match(E))return"("+e("n",i.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,""),n)+")";if(44===i.charCodeAt(i.length-1)){var r,a=i;let e=a.length-1;for(;44===a.charCodeAt(e-1);)--e;return P(t,a.substr(0,e),n/Math.pow(10,3*(a.length-e)))}if(-1!==i.indexOf("%")){var s=i;let e=s.replace(I,""),o=s.length-e.length;return P(t,e,c(n,2*o))+y("%",o)}if(-1!==i.indexOf("E"))return D(i,n);if(36===i.charCodeAt(0))return"$"+e(t,i.substr(" "==i[1]?2:1),n);let d,u,h,p=Math.abs(n),f=n<0?"-":"";if(i.match(/^0{2,}$/))return f+_(p,i.length);if(i.match(/^[#?]+$/))return o=""+n,0===n&&(o=""),o.length>i.length?o:O(i.substr(0,i.length-o.length))+o;if(null!==(d=i.match(A)))return r=d,f+(0===p?"":l(p))+y(" ",r[1].length+2+r[4].length);if(null!==i.match(/^#+0+$/))return f+_(p,i.length-i.indexOf("0"));if(null!==(d=i.match(T)))return o=l(n).replace(/^([^.]+)$/,"$1."+d[1]).replace(/\.$/,"."+d[1]).replace(/\.(\d*)$/,function(e,t){return"."+t+y("0",d[1].length-t.length)}),-1!==i.indexOf("0.")?o:o.replace(/^0\./,".");if(null!==(d=(i=i.replace(/^#+([0.])/,"$1")).match(/^(0*)\.(#*)$/)))return f+l(p).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,d[1].length?"0.":".");if(null!==(d=i.match(/^#,##0(\.?)$/)))return f+w(l(p))+(i.endsWith(".")?".":"");if(null!==(d=i.match(/^#,##0\.([#0]*0)$/)))return n<0?"-"+e(t,i,-n):w(l(n))+"."+y("0",d[1].length);if(null!==(d=i.match(/^#,##0\.(-+)$/)))return o=y("0",d[1].length),n<0?"-"+e(t,i,-n):w(l(n))+"."+(0===parseInt(o,10)?y("-",d[1].length):o);if(null!==(d=i.match(/^#,#*,#0/)))return e(t,i.replace(/^#,#*,/,""),n);if(null!==(d=i.match(/^([0#]+)(\\?-([0#]+))+$/)))return o=b(e(t,i.replace(/[\\-]/g,""),n)),u=0,b(b(i.replace(/\\/g,"")).replace(/[0#]/g,function(e){return u<o.length?o[u++]:"0"===e?"0":""}));if(null!==i.match(R))return"("+(o=e(t,"##########",n)).substr(0,3)+") "+o.substr(3,3)+"-"+o.substr(6);let g="";if(null!==(d=i.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/)))return h=k(p,Math.pow(10,u=Math.min(d[4].length,7))-1,!1),o=""+f," "==(g=P("n",d[1],h[1]))[g.length-1]&&(g=g.substr(0,g.length-1)+"0"),o+=g+d[2]+"/"+d[3],(g=C(h[2],u)).length<d[4].length&&(g=O(d[4].substr(d[4].length-g.length))+g),o+=g;if(null!==(d=i.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/)))return f+((h=k(p,Math.pow(10,u=Math.min(Math.max(d[1].length,d[4].length),7))-1,!0))[0]||(h[1]?"":"0"))+" "+(h[1]?x(h[1],u)+d[2]+"/"+d[3]+C(h[2],u):y(" ",2*u+1+d[2].length+d[3].length));if(null!==(d=i.match(/^[#0?]+$/)))return(o=""+n,i.length<=o.length)?o:O(i.substr(0,i.length-o.length))+o;if(null!==(d=i.match(/^([#0]+)\.([#0]+)$/))){u=(o=""+n.toFixed(Math.min(d[2].length,10)).replace(/([^0])0+$/,"$1")).indexOf(".");let e=i.indexOf(".")-u,t=i.length-o.length-e;return O(i.substr(0,e)+o+i.substr(i.length-t))}if(null!==(d=i.match(/^00,000\.([#0]*0)$/)))return n<0?"-"+e(t,i,-n):w(l(n)).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,function(e){return"00,"+(e.length<3?_(0,3-e.length):"")+e})+"."+_(0,d[1].length);if("#,###"===i){var m=w(l(p));return"0"!==m?f+m:""}throw Error("unsupported format |"+i+"|")}(e,t,i):function e(t,i,n){let o;if(40===t.charCodeAt(0)&&!i.match(E))return"("+e("n",i.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,""),n)+")";if(44===i.charCodeAt(i.length-1)){var r=i;let e=r.length-1;for(;44===r.charCodeAt(e-1);)--e;return P(t,r.substr(0,e),n/Math.pow(10,3*(r.length-e)))}if(-1!==i.indexOf("%")){var a=i;let e=a.replace(I,""),o=a.length-e.length;return P(t,e,c(n,2*o))+y("%",o)}if(-1!==i.indexOf("E"))return D(i,n);if(36===i.charCodeAt(0))return"$"+e(t,i.substr(" "==i[1]?2:1),n);let d,u,h,p=Math.abs(n),f=n<0?"-":"";if(i.match(/^0{2,}$/))return f+S(p,i.length);if(i.match(/^[#?]+$/))return"0"===(o=S(n,0))&&(o=""),o.length>i.length?o:O(i.substr(0,i.length-o.length))+o;if(null!==(d=i.match(A))){var g=d;let e=parseInt(g[4],10),t=Math.round(p*e),i=Math.floor(t/e),n=t-i*e;return f+(0===i?"":""+i)+" "+(0===n?y(" ",g[1].length+1+g[4].length):x(n,g[1].length)+g[2]+"/"+g[3]+_(e,g[4].length))}if(null!==i.match(/^#+0+$/))return f+S(p,i.length-i.indexOf("0"));if(null!==(d=i.match(T)))return o=N(n,d[1].length).replace(/^([^.]+)$/,"$1."+d[1]).replace(/\.$/,"."+d[1]).replace(/\.(\d*)$/,function(e,t){return"."+t+y("0",d[1].length-t.length)}),-1!==i.indexOf("0.")?o:o.replace(/^0\./,".");if(null!==(d=(i=i.replace(/^#+([0.])/,"$1")).match(/^(0*)\.(#*)$/)))return f+N(p,d[2].length).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,d[1].length?"0.":".");if(null!==(d=i.match(/^#,##0(\.?)$/)))return f+w(S(p,0))+(i.endsWith(".")?".":"");if(null!==(d=i.match(/^#,##0\.([#0]*0)$/)))return f+function(e,t){let i=new(s())(e).toFixed(t).split(".");return i[0]=w(i[0]),i.join(".")}(p,d[1].length);if(null!==(d=i.match(/^#,##0\.(-+)$/)))return u=_(M(n,d[1].length),d[1].length),n<0?"-"+e(t,i,-n):w(l(Math.floor(n)))+"."+(0===parseInt(u,0)?function(e,t,i){let n=l("-");return n.length>=t?n:y("-",t-n.length)+n}(0,d[1].length,0):u);if(null!==(d=i.match(/^#,#*,#0/)))return e(t,i.replace(/^#,#*,/,""),n);if(null!==(d=i.match(/^([0#]+)(\\?-([0#]+))+$/)))return o=b(e(t,i.replace(/[\\-]/g,""),n)),u=0,b(b(i.replace(/\\/g,"")).replace(/[0#]/g,function(e){return u<o.length?o[u++]:"0"===e?"0":""}));if(null!==i.match(R))return"("+(o=e(t,"##########",n)).substr(0,3)+") "+o.substr(3,3)+"-"+o.substr(6);let m="";if(null!==(d=i.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/)))return h=k(p,Math.pow(10,u=Math.min(d[4].length,7))-1,!1),o=""+f," "==(m=P("n",d[1],h[1]))[m.length-1]&&(m=m.substr(0,m.length-1)+"0"),o+=m+d[2]+"/"+d[3],(m=C(h[2],u)).length<d[4].length&&(m=O(d[4].substr(d[4].length-m.length))+m),o+=m;if(null!==(d=i.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/)))return f+((h=k(p,Math.pow(10,u=Math.min(Math.max(d[1].length,d[4].length),7))-1,!0))[0]||(h[1]?"":"0"))+" "+(h[1]?x(h[1],u)+d[2]+"/"+d[3]+C(h[2],u):y(" ",2*u+1+d[2].length+d[3].length));if(null!==(d=i.match(/^[#0?]+$/)))return(o=S(n,0),i.length<=o.length)?o:O(i.substr(0,i.length-o.length))+o;if(null!==(d=i.match(/^([#0?]+)\.([#0]+)$/))){u=(o=""+n.toFixed(Math.min(d[2].length,10)).replace(/([^0])0+$/,"$1")).indexOf(".");let e=i.indexOf(".")-u,t=i.length-o.length-e;return O(i.substr(0,e)+o+i.substr(i.length-t))}if(null!==(d=i.match(/^00,000\.([#0]*0)$/)))return u=M(n,d[1].length),n<0?"-"+e(t,i,-n):w(n<0x7fffffff&&n>-0x80000000?l(n>=0?0|n:n-1|0):l(Math.floor(n))).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,function(e){return"00,"+(e.length<3?_(0,3-e.length):"")+e})+"."+_(u,d[1].length);if("#,###"===i){var v=w(S(p,0));return"0"!==v?f+v:""}throw Error("unsupported format |"+i+"|")}(e,t,i)}let L={TEXT:0,NUMBER:1,DATETIME:2},B=/^[HhMmSs]+$/,F=/-[0-9a-f]{1,8}$/i,V=/^([<>=]=?|!=|<>)\s*(-?\d+(?:\.\d*)?)\s*$/;function z(e){this.isDefault=v(e,0)&&7===e.length,this.cond=null,this.color=null,this.tokens=[],this.hasCondition=!1,this.type=L.TEXT,this.dateInfo=null,this.isDefault||this.init(e)}function H(e){this.sectionCount=0,this.posNumFmt=null,this.negNumFmt=null,this.zeroNumFmt=null,this.textFmt=null,this._parse(e)}z.prototype.init=function(e){let t=function(e){let t,i,n,o,r=[],a="t",s="H",l=!1,c=!1,d=0,u="",h=0,p="";for(;d<e.length;)switch(u=e[d]){case"G":if(!v(e,d))throw Error(`unrecognized string |${e.slice(d)}|${e}`);r.push({t:"G",v:"General"}),d+=7;break;case'"':if((h=e.indexOf('"',d+1))<0)throw Error(`unterminate string |${e.slice(d)}|`);r.push({t:"t",v:e.slice(d+1,h)}),d=h+1;break;case"\\":o="("===(u=e[d+1])||")"===u?u:"t",r.push({t:o,v:u}),d+=2;break;case"_":r.push({t:"t",v:" "}),d+=2;break;case"@":r.push({t:"@"}),++d;break;case"B":case"b":if("1"===e[d+1]||"2"===e[d+1]){l=!0,r.push({t:"X",v:e.substr(d,2)}),a=u,d+=2;break}case"M":case"D":case"Y":case"H":case"S":case"E":u=u.toLowerCase();case"m":case"d":case"y":case"h":case"s":case"e":case"g":for(l=!0,p=u;++d<e.length&&e[d].toLowerCase()===u;)p+=u;o="m"===u&&"h"===a.toLowerCase()?"M":"h"===u?s:u,r.push({t:o,v:p}),a=o;break;case"A":o="A",p=u,"A/P"===e.substr(d,3)?(l=!0,s="h",p="A/P",d+=3):"AM/PM"===e.substr(d,5)?(l=!0,s="h",p="AM/PM",d+=5):(o="t",++d),r.push({t:o,v:p}),a=u;break;case"[":if((h=e.indexOf("]",d+1))<0)throw'unterminated "[" block';p=e.substring(d+1,h),d=h+1,B.test(p)?(r.push({t:"Z",v:"["+p.toLowerCase()+"]"}),l=!0,a=p[0]):(n=function(e){let t;switch(e.toLowerCase()){case"black":t="000";break;case"green":t="0f0";break;case"white":t="fff";break;case"blue":t="00f";break;case"magenta":t="f0f";break;case"yellow":t="ff0";break;case"cyan":t="0ff";break;case"red":t="f00"}return t}(p))?t=n:"$"===p.charAt(0)?(p=p.replace(F,""),r.push({t:"t",v:p.slice(1)})):(n=p.match(V))&&(i={op:n[1],v:parseFloat(n[2])});break;case".":if(l){for(p=u;"0"===e[++d];)p+="0";p.length>1?r.push({t:"s",v:p}):r.push({t:"t",v:p});break}case"0":case"#":for(p=u;"0#?.,E+-%".indexOf(u=e[++d])>-1||"\\"==u&&"-"==e[d+1]&&"0#".indexOf(e[d+2])>-1;)p+=u;r.push({t:"n",v:p,n:!0}),c=!0;break;case"?":for(p=u;e[++d]===u;)p+=u;r.push({t:u,v:p,n:!0}),a=u,c=!0;break;case"*":++d," *".includes(e[d])&&++d;break;case"(":case")":case" ":r.push({t:u,v:u}),++d;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(p=u;"0123456789".includes(e[++d]);)p+=e[d];r.push({t:"D",v:p});break;default:if(!1===",$-+/():!^&'~{}<>=€acfijklopqrtuvwxz".includes(u))throw Error("unrecognized character "+u+" in "+e);r.push({t:"t",v:u}),++d}let f=null;if(l){let e=0,t;for(a="t",d=r.length-1;d>=0;--d)switch(r[d].t){case"h":case"H":r[d].t=s,a="h";break;case"s":(t=r[d].v.match(/\.0+$/))&&(e=Math.max(e,t[0].length-1));case"d":case"y":case"M":case"e":a=r[d].t;break;case"m":"s"===a&&(r[d].t="M")}f={ss0:e}}let g=L.TEXT;return l?g=L.DATETIME:c&&(g=L.NUMBER),{tokens:r,cond:i,color:t,type:g,dateInfo:f}}(e);if(this.cond=t.cond||null,this.color=t.color||null,this.tokens=t.tokens,this.type=t.type,this.hasCondition=null!==this.cond,this.type===L.DATETIME){let e=this.dateInfo=t.dateInfo;e.isDate=!0,e.isTime=!0,e.isDuration=!1;for(let i=0;i<t.tokens.length;i++)switch(t.tokens[i].t){case"Z":e.isDate=!1,e.isDuration=!0;break;case"H":case"h":case"M":case"s":e.isDate=!1;break;case"b":case"y":case"m":case"d":e.isTime=!1}}},z.prototype.isApplicable=function(e){return!this.hasCondition||"number"!=typeof e||this.checkCondition(e)},z.prototype.checkCondition=function(e){switch(this.cond.op){case"=":if(e===this.cond.v)return!0;break;case">":if(e>this.cond.v)return!0;break;case"<":if(e<this.cond.v)return!0;break;case"<>":if(e!==this.cond.v)return!0;break;case">=":if(e>=this.cond.v)return!0;break;case"<=":if(e<=this.cond.v)return!0}return!1},z.prototype.formatValue=function(e,t){if(this.isDefault)return m(e,t);switch(e){case!0:e="TRUE";break;case!1:e="FALSE";break;case"":case null:case void 0:return""}return function(e,t,i,n){let o=null,r=n?.ss0||0;if(e=e.map(e=>{let{t,v:i,n}=e;return{t,v:i,n}}),n&&null===(o=function(e,t,i,n){let o=Math.floor(e),r=Math.floor(86400*(e-o)),a=86400*(e-o)-r,s=0,l=[];n.date1904&&(o+=1462);let c=Math.pow(10,t);(a=Math.round(a*c)/c)>=1&&(a-=1,86400===(r+=1)&&(r=0,o+=1));let d={v:e,D:o,T:r,u:a,y:0,m:0,d:0,H:0,M:0,S:0,q:0,valid:e>=0&&e<=2958465};if(60===o)l=i?[1317,10,29]:[1900,2,29],s=3;else if(0===o)l=i?[1317,8,29]:[1900,1,0],s=6;else{let e=new Date(1900,0,1),t=o>60?o-2:o-1;e.setDate(e.getDate()+t),l=[e.getFullYear(),e.getMonth()+1,e.getDate()],s=e.getDay(),o<60&&(s=(s+6)%7),i&&(s=0)}return d.y=l[0],d.m=l[1],d.d=l[2],d.q=s,d.S=r%60,d.M=(r=Math.floor(r/60))%60,d.H=r=Math.floor(r/60),d}(t,r,!1,i)))return l(t);let a="";for(let n=0;n<e.length;++n)switch(e[n].t){case"t":case"T":case" ":case"D":break;case"X":e[n]=void 0;break;case"d":case"m":case"y":case"h":case"H":case"M":case"s":case"e":case"b":case"Z":if(!o?.valid&&"Z"!==e[n].t)return l(t);e[n].v=function(e,t,i,n,o){let r,a=0,s=i.y;switch(e){case"b":s=i.y+543;case"y":t.length<=2?(r=s%100,a=2):(r=s%1e4,a=4);break;case"m":if(5===t.length)return o.MONTHS[i.m-1][0];if(3===t.length)return o.MONTHS[i.m-1][1];if(t.length>2)return o.MONTHS[i.m-1][2];r=i.m,a=t.length;break;case"d":if(3===t.length)return o.DAYS[i.q][0];if(t.length>3)return o.DAYS[i.q][1];r=i.d,a=t.length;break;case"h":if(1!==t.length&&2!==t.length)throw"bad hour format: "+t;r=1+(i.H+11)%12,a=t.length;break;case"H":if(1!==t.length&&2!==t.length)throw"bad hour format: "+t;r=i.H,a=t.length;break;case"M":if(1!==t.length&&2!==t.length)throw"bad minute format: "+t;r=i.M,a=t.length;break;case"s":if(0===i.u&&("s"===t||"ss"===t))return _(i.S,t.length);if(["s","ss",".0",".00",".000"].includes(t)){let e=0,o=Math.floor((e=n>=2?3===n?1e3:100:1===n?10:1)*(i.S+i.u));if("s"===t)return 0===o?"0":o/e+"";let r=_(o,2+n);return"ss"===t?r.substr(0,2):"."+r.substr(2,t.length-1)}throw"bad second format: "+t;case"Z":switch(t){case"[h]":case"[hh]":r=24*i.D+i.H;break;case"[m]":case"[mm]":r=(24*i.D+i.H)*60+i.M;break;case"[s]":case"[ss]":r=((24*i.D+i.H)*60+i.M)*60+i.S;break;default:throw"bad abstime format: "+t}a=3===t.length?1:2;break;case"e":r=s,a=1}return a>0?_(r,a):""}(e[n].t,e[n].v,o,r,i),e[n].t="t";break;case"n":case"?":for(let t=n,i=n+1;;++i){let o=e[i]&&e[i].t;if(null!=e[i]&&("?"===o||"D"===o||(" "===o||"t"===o)&&null!=e[i+1]&&("?"===e[i+1].t||"D"===e[i+1].t||" "===e[i+1].t||"t"===e[i+1].t&&"/"===e[i+1].v)||"("===e[t].t&&(" "===o||"n"===o||")"===o)))e[t].v+=e[i].v,e[i]=void 0;else{a+=e[t].v,n=i-1;break}}break;case"@":e[n].t="t",e[n].v=t;break;case"G":e[n].t="t",e[n].v=m(t,i);break;case"A":if(!o?.valid)return l(t);"AM/PM"===e[n].v?(e[n].v=i.AMPM[+(o.H>=12)],e[n].t="T"):"A/P"===e[n].v&&(e[n].v=i.SHORT_AMPM[+(o.H>=12)],e[n].t="T")}if(e=e.filter(e=>e),a.length>0){let n=P("("===a?"(":"n",a,t);if(-1===n.indexOf("E")){let t=e.length;for(let i=0;i<e.length;++i)if("n"===e[i].t&&e[i].v.indexOf(".")>-1){t=i;break}let o=e.length;if(t===e.length){let t=n.length-1;for(let i=e.length-1;i>=0;--i)e[i].n&&(e[i].v=e[i].v.replace(/\\(?!\\)/g,""),t===n.length-1&&(e[i].v=e[i].v.replace(/,+$/,"")),t>=e[i].v.length-1?(t-=e[i].v.length,e[i].v=n.substr(t+1,e[i].v.length)):t<0?e[i].v="":(e[i].v=n.substr(0,t+1),t=-1),e[i].t="t",o=i);t>=0&&o<e.length&&(e[o].v=n.substr(0,t+1)+e[o].v),e[o].v=i.toLocaleNumber(e[o].v)}else{let r=n.indexOf(".")-1;for(let i=t;i>=0;--i){if(!e[i].n)continue;e[i].v=e[i].v.replace(/\\(?!\\)/g,"");let a=e[i].v.indexOf(".")>-1&&i===t?e[i].v.indexOf(".")-1:e[i].v.length-1,s=e[i].v.substr(a+1);for(;a>=0;--a)r>=0&&("0"===e[i].v[a]||"#"===e[i].v[a])&&(s=n[r]+s,r--);e[i].v=s,e[i].t="t",o=i}r>=0&&o<e.length&&(e[o].v=n.substr(0,r+1)+e[o].v),r=n.indexOf(".")+1;for(let i=t;i<e.length;++i){if(!e[i].n&&i!==t)continue;let a=e[i].v.indexOf(".")>-1&&i===t?e[i].v.indexOf(".")+1:0,s=e[i].v.substr(0,a);for(;a<e[i].v.length;++a)r<n.length&&(s+=n[r],r++);e[i].v=s,e[i].t="t",o=i}for(let t=0;t<e.length;t++)e[t].n&&(e[t].v=i.toLocaleNumber(e[t].v))}}}let s="";for(let n=0;n<e.length;n++)!0===e[n].n&&"t"!==e[n].t&&(e[n].v=i.toLocaleNumber(P(e[n].t,e[n].v,t)),e[n].t="t"),s+=e[n].v;return s}(this.tokens,e,t,this.dateInfo)},z.prototype.containsAtSymbol=function(){return!this.isDefault&&this.tokens.some(function(e){return"@"===e.t})},z.prototype.isDate=function(){return this.dateInfo&&this.dateInfo.isDate},z.prototype.isTime=function(){return this.dateInfo&&this.dateInfo.isTime},z.prototype.isDuration=function(){return this.dateInfo&&this.dateInfo.isDuration},z.prototype.isNumber=function(){return this.type===L.NUMBER},z.prototype.isDateTime=function(){return this.type===L.DATETIME};let W=new z("General");H.prototype._parse=function(e){let t=(function(e){let t=[],i=!1;for(var n=0,o=0;n<e.length;++n)switch(e[n]){case'"':i=!i;break;case"_":case"*":case"\\":if(!i&&++n>=e.length)throw Error("Format |"+e+"| unterminated");break;case";":i||(t.push(e.slice(o,n)),o=n+1)}if(i)throw Error("Format |"+e+"| unterminated");return t.push(e.slice(o)),t})(e).map(function(e){return new z(e)}),i=t.length;if(i>4||0===i)throw Error("Invalid number of section");let n=W,o=t[i-1].containsAtSymbol();switch(i<4&&o&&(n=t[i-1],i--),i){case 1:this.posNumFmt=t[0],this.textFmt=n;break;case 2:this.posNumFmt=t[0],this.negNumFmt=t[1],this.textFmt=n;break;case 3:this.posNumFmt=t[0],this.negNumFmt=t[1],this.zeroNumFmt=t[2],this.textFmt=n;break;case 4:this.posNumFmt=t[0],this.negNumFmt=t[1],this.zeroNumFmt=t[2],this.textFmt=t[3];break;default:this.posNumFmt=W,this.textFmt=n,i=1}this.sectionCount=i},H.prototype.render=function(e,t){let i,n=!1;if("number"==typeof e){let t=!1;if(e<0){switch(this.sectionCount){case 1:break;case 2:t=!this.posNumFmt.hasCondition&&!this.negNumFmt.hasCondition;break;case 3:case 4:t=!this.negNumFmt.hasCondition}t?(i=this.negNumFmt,e=-e):n=!0}i=!1===t?this.getApplicableFmt(e):this.negNumFmt,n&&!i.isNumber()&&(n=!1)}else i=this.textFmt;return{v:!1===n?i.formatValue(e,t):"-"+i.formatValue(-e,t),d:i.isDate(),c:i.color}},H.prototype.formatValue=function(e,t){return this.render(e,t).v},H.prototype.isDateTime=function(){return this.posNumFmt.isDateTime()},H.prototype.isDate=function(){return this.posNumFmt.isDate()},H.prototype.isTime=function(){return this.posNumFmt.isTime()},H.prototype.isDuration=function(){return this.posNumFmt.isDuration()},H.prototype.getApplicableFmt=function(e){if(1===this.sectionCount)return this.posNumFmt.isApplicable(e)?this.posNumFmt:W;if(2===this.sectionCount)if(!this.posNumFmt.hasCondition&&e>=0||this.posNumFmt.hasCondition&&this.posNumFmt.isApplicable(e))return this.posNumFmt;else if(!this.negNumFmt.hasCondition||this.negNumFmt.hasCondition&&this.negNumFmt.isApplicable(e))return this.negNumFmt;else return W;return!this.posNumFmt.hasCondition&&e>0||this.posNumFmt.hasCondition&&this.posNumFmt.isApplicable(e)?this.posNumFmt:!this.negNumFmt.hasCondition&&e<0||this.negNumFmt.hasCondition&&this.negNumFmt.isApplicable(e)?this.negNumFmt:this.zeroNumFmt};var Y=i(38147);class U{constructor(){this._locale=new n}format(e,t){return Z(e).render(t,this._locale)}formatDateTime(e,t){let i=(0,Y.qC)(t);return this.format(e,i).v}render(e,t){try{return Z(e).formatValue(t,this._locale)}catch{return t}}getLocaleData(){return this._locale}updateLocaleData(e){let t=Object.entries(e).filter(e=>Y.zZ.has(e[0])).map(e=>[Y.zZ.get(e[0]),e[1]]);this._locale=Object.assign(this._locale,Object.fromEntries(t))}static isDate(e){try{return Z(e).isDate()}catch{return!1}}static isTime(e){try{return Z(e).isTime()}catch{return!1}}static isDateTime(e){try{return Z(e).isDateTime()}catch{return!1}}static isDuration(e){try{return Z(e).isDuration()}catch{return!1}}static getBuiltinFormat(e){return r[e]}}let G={};function Z(e){return G[e]||(G[e]=new H(e)),G[e]}U.clearCache=function(){G={}},U.increaseDecimal=function(e){let t=[],i=!1;for(let r;0!==e.length;t.push(r))switch(e=e.substr((r=o(e)).length),r.charCodeAt(0)){case 46:r=i||r.length<2?r:r+"0";break;case 48:case 35:case 63:var n;r=(n=r).indexOf("/")>=0?n:n.indexOf(".")>=0?n.replace(/\.[0#?]+/,e=>e+"0"):n.replace(/[0#?,]*[0#?]/,e=>e+".0");break;case 65:case 89:case 77:case 68:case 72:case 83:case 121:case 109:case 100:case 104:case 115:i=!0}return t.join("")},U.decreaseDecimal=function(e){let t=[],i=!1;for(let n;0!==e.length;t.push(n))switch(e=e.substr((n=o(e)).length),n.charCodeAt(0)){case 46:n=i?n:n.length>2?n.slice(0,-1):"";break;case 48:case 35:case 63:n=n.replace(/\.[0#?]+/,e=>e.length>2?e.slice(0,-1):"");break;case 65:case 89:case 77:case 68:case 72:case 83:case 121:case 109:case 100:case 104:case 115:i=!0}return t.join("")};let j=U},38147:function(e,t,i){"use strict";i.d(t,{GG:()=>a,vB:()=>r,zZ:()=>s,qC:()=>o});let n=Date.UTC(1900,0,0);function o(e){let t=(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())-n)/864e5;return t>=60?t+1:t}function r(e){let t=e>=61?e-1:e,i=Math.floor(t),n=new Date(Date.UTC(1900,0,i)+864e5*(t-i));return new Date(n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate(),n.getUTCHours(),n.getUTCMinutes(),n.getUTCSeconds(),n.getUTCMilliseconds())}function a(e){let t=new Date(e.getTime());return t.getMilliseconds()>=500&&t.setMilliseconds(1e3),t}let s=new Map([["months","MONTHS"],["days","DAYS"],["dec_sym","DEC"],["group_sym","GROUP"],["long_day_period","AMPM"],["short_day_period","SHORT_AMPM"],["currency_sym","CURRENCY_SYM"]])},48233:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BaseTaskQueue",{enumerable:!0,get:function(){return r}});let n=i(5399),o=()=>{};class r{constructor(e={}){let{concurrency:t=1/0,mode:i="auto"}=e;this.concurrency=Math.max(t,0),this.mode=i,this.runningCount=0,this.processingScheduled=!1}createTaskWrapper(e,t){void 0===t&&(t={});let{priority:i=0,signal:r,arg:a}=t,s=new n.TaskWrapper(e,a,i,r);if(r){let e=()=>{this._remove(s),s.abort()};r.addEventListener("abort",e),s.wait().catch(o).finally(()=>r.removeEventListener("abort",e))}return s}enqueue(e,t){let i=this.createTaskWrapper(e,t);return this._add(i),this.consumeAuto(),i.wait()}consume(){"manual-sync"===this.mode&&this.doConsumeSync()}getRunningCount(){return this.runningCount}getTotalCount(){return this.getWaitingCount()+this.getRunningCount()}isEmpty(){return 0===this.getWaitingCount()}isFullLoad(){return this.runningCount>=this.concurrency}isIdle(){return!this.isFullLoad()&&this.isEmpty()}stat(e){return{running:this.getRunningCount(),waiting:this.getWaitingCount(),queue:e?this.statQueue(e):void 0}}consumeAuto(){"auto"===this.mode&&this.doConsumeAsync()}doConsumeAsync(){this.processingScheduled||(this.processingScheduled=!0,setImmediate(()=>{this.processingScheduled=!1,this.doConsumeSync()}))}doConsumeSync(){for(;!this.isFullLoad()&&!this.isEmpty();){let e=this._pop();this.runningCount++,(e?e.execute().catch(o):Promise.resolve()).then(()=>this._onTaskDone())}}_onTaskDone(){this.runningCount--,this.consumeAuto()}}},8626:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={HibernationController:function(){return l},HibernationTaskQueue:function(){return u}};for(var o in n)Object.defineProperty(t,o,{enumerable:!0,get:n[o]});let r=i(48233),a=i(5509),s=AbortController;class l extends s{constructor(){super(),this.signal.sleeping=!0}wake(){let e=this.signal;!e.aborted&&e.sleeping&&(e.sleeping=!1,e.dispatchEvent(new Event("wake")))}sleep(){let e=this.signal;e.aborted||e.sleeping||(e.sleeping=!0,e.dispatchEvent(new Event("sleep")))}}function c(e){return{...e,concurrency:0,mode:"disabled"}}class d extends r.BaseTaskQueue{constructor(e){super(c(e)),this.set=new Set}consume(){}clear(){this.set.clear()}getWaitingCount(){return this.set.size}statQueue(e){return Array.from(this.set).map(t=>e(t.getFn(),t.getArg()))}_add(e){this.set.add(e)}_remove(e){this.set.delete(e)}_pop(){}}class u extends r.BaseTaskQueue{constructor(e=Object.create(null)){super(c(e)),this.activeQueue=new(e.activeConstructor||a.TaskQueue)(e),this.passiveQueue=new d(e)}enqueue(e,t){void 0===t&&(t={});let{signal:i}=t;return i?this.enqueuePassive(e,t):this.activeQueue.enqueue(e,t)}enqueueActive(e,t){let i=t.signal;return i?new Promise((n,o)=>{let r=new AbortController,a=()=>{r.abort(i.reason)},s=()=>{r.abort(i.reason),n(this.enqueuePassive(e,t))};i.addEventListener("abort",a),i.addEventListener("sleep",s),this.activeQueue.enqueue(e,{...t,signal:r.signal}).finally(()=>{i.removeEventListener("abort",a),i.removeEventListener("sleep",s)}).then(n,o)}):Promise.reject(Error("No signal."))}enqueuePassive(e,t){let i=t.signal;return i?new Promise((n,o)=>{let r=new AbortController,a=()=>{r.abort(i.reason)},s=()=>{r.abort(i.reason),n(this.enqueueActive(e,t))};i.addEventListener("abort",a),i.addEventListener("wake",s),this.passiveQueue.enqueue(e,{...t,signal:r.signal}).finally(()=>{i.removeEventListener("abort",a),i.removeEventListener("wake",s)}).then(n,o)}):Promise.reject(Error("No signal."))}consume(){this.activeQueue.consume()}clear(){this.activeQueue.clear(),this.passiveQueue.clear()}getWaitingCount(){return this.activeQueue.getWaitingCount()+this.passiveQueue.getTotalCount()}getRunningCount(){return this.activeQueue.getRunningCount()}isFullLoad(){return this.activeQueue.isFullLoad()}statQueue(e){return[...this.activeQueue.stat(e).queue||[],...this.passiveQueue.stat(e).queue||[]]}_add(e){}_remove(e){}_pop(){}}},56925:function(e,t,i){"use strict";function n(e,t){return Object.keys(e).forEach(function(i){"default"===i||Object.prototype.hasOwnProperty.call(t,i)||Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[i]}})}),e}Object.defineProperty(t,"__esModule",{value:!0}),n(i(48233),t),n(i(5509),t),n(i(57273),t),n(i(53472),t),n(i(8626),t)},53472:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"PriorityTaskQueue",{enumerable:!0,get:function(){return o}});let n=i(5509);class o extends n.TaskQueue{_add(e){let t=function(e,t){let i=0,n=e.length;for(;i<n;){let o=i+n>>1;t(e[o])?i=o+1:n=o}return i}(this.queue,t=>t.getPriority()<e.getPriority());this.queue.splice(t,0,e)}_pop(){return this.queue.pop()}}},5509:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"TaskQueue",{enumerable:!0,get:function(){return o}});let n=i(48233);class o extends n.BaseTaskQueue{constructor(e){super(e),this.queue=[]}clear(){this.queue.length=0}getWaitingCount(){return this.queue.length}statQueue(e){return this.queue.map(t=>e(t.getFn(),t.getArg()))}_add(e){this.queue.push(e)}_remove(e){let t=this.queue.indexOf(e);t>=0&&this.queue.splice(t,1)}_pop(){return this.queue.shift()}}},57273:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"TaskStack",{enumerable:!0,get:function(){return o}});let n=i(5509);class o extends n.TaskQueue{_pop(){return this.queue.pop()}}},5399:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"TaskWrapper",{enumerable:!0,get:function(){return n}});let i=()=>{};class n{constructor(e,t,n,o){this.fn=e,this.arg=t,this.priority=n,this.signal=o,this.executed=!1,this.resolver=i,this.rejecter=i,this.resultPromise=new Promise((e,t)=>{this.resolver=e,this.rejecter=t})}wait(){return this.resultPromise}execute(){if(!this.executed){let e;this.executed=!0;try{e=this.fn(this.arg)}catch(t){e=Promise.reject(t)}e.then(this.resolver,this.rejecter)}return this.wait()}abort(){if(this.signal){let e=Error("aborted",{cause:this.signal.reason});e.name="AbortError",this.rejecter(e)}}getPriority(){return this.priority}getFn(){return this.fn}getArg(){return this.arg}}},51445:function(e,t,i){"use strict";function n(e,t){return Array.prototype.findIndex.call(e,e=>e.identifier===t)}i.d(t,{af:()=>h,TL:()=>s});var o=i(11312);class r{constructor(e){this.identifier=e.identifier,this.pageX=e.pageX,this.pageY=e.pageY,this.clientX=e.clientX,this.clientY=e.clientY,this.screenX=e.screenX,this.screenY=e.screenY,this.timestamp=Date.now()}get x(){return this.pageX}get y(){return this.pageY}createMouseEvent(e,t){return new MouseEvent(e,{clientX:this.clientX,clientY:this.clientY,movementX:0,movementY:0,relatedTarget:null,screenX:this.screenX,screenY:this.screenY,bubbles:!0,cancelable:!0,...t})}}class a extends o.EventEmitter{constructor(e){super(),this.scrollCalc=this.createScrollCalculator(e.view,e.scrollOptions),this.preventDefault=e.preventDefault??!1,this.stopPropagation=e.stopPropagation??!1,this.stopImmediatePropagation=e.stopImmediatePropagation??!1,this.recoverMouseEvents=e.recoverMouseEvents??!1,this.isPassive=e.isPassive??!0,this.eventTarget=null,this.startTouches=[],this.currentTouches=[],this.unmovedTouches=new Set,this.scrollingSpeed={deltaX:0,deltaY:0,timer:null},this.onTouchStart=this.onTouchStart.bind(this),this.onTouchMove=this.onTouchMove.bind(this),this.onTouchEnd=this.onTouchEnd.bind(this),this.onTouchCancel=this.onTouchCancel.bind(this)}start(e){this.end(),this.eventTarget=e;let t={passive:this.isPassive};e.addEventListener("touchstart",this.onTouchStart,t),e.addEventListener("touchmove",this.onTouchMove,t),e.addEventListener("touchend",this.onTouchEnd,t),e.addEventListener("touchcancel",this.onTouchCancel,t)}end(){let e=this.eventTarget;e&&(this.eventTarget=null,e.removeEventListener("touchstart",this.onTouchStart),e.removeEventListener("touchmove",this.onTouchMove),e.removeEventListener("touchend",this.onTouchEnd),e.removeEventListener("touchcancel",this.onTouchCancel))}createScrollCalculator(e,t){return l.create(e,t)}onTouchStart(e){this.pruneTouches(e.touches),this.addTouches(e.changedTouches),this.stopSmoothScroll(),this.startNewGesture(this.currentTouches),this.onEvent(e)}onTouchMove(e){if(!e.defaultPrevented&&this.hasTouches()){let t=this.currentTouches.slice();for(let t of Array.from(e.changedTouches)){let e=n(this.currentTouches,t.identifier);-1!==e&&(this.currentTouches[e]=new r(t),this.unmovedTouches.has(t.identifier)&&!function(e,t){let i=t.x-e.x,n=t.y-e.y;return 5>Math.abs(i)&&5>Math.abs(n)}(this.startTouches[e],this.currentTouches[e])&&this.unmovedTouches.delete(t.identifier))}this.onHandle(t,this.currentTouches)}this.onEvent(e)}onTouchEnd(e){let t=this.removeRecordTouches(e.changedTouches);this.startNewGesture(this.currentTouches);let i=0===this.currentTouches.length,n=1===t.length;if(this.recoverMouseEvents&&n&&t[0].unmoved&&this.doPress(t[0].start,t[0].target),!e.defaultPrevented&&n&&i&&this.scrollingSpeed){let e=this.decayScrollingSpeed(this.scrollingSpeed,Date.now()-t[0].end.timestamp);e.deltaX||e.deltaY?(this.resetScrollingSpeed(e),this.doSmoothScroll()):this.resetScrollingSpeed({deltaX:0,deltaY:0,timer:null})}this.onEvent(e)}onTouchCancel(e){this.removeRecordTouches(e.changedTouches),this.startNewGesture(this.currentTouches),this.onEvent(e)}isEventMatched(e,t){return"boolean"==typeof t?t:t.includes(e.type)}onEvent(e){this.isEventMatched(e,this.preventDefault)&&e.preventDefault(),this.isEventMatched(e,this.stopPropagation)&&e.stopPropagation(),this.isEventMatched(e,this.stopImmediatePropagation)&&e.stopImmediatePropagation()}hasTouches(){return this.currentTouches.length>0}pruneTouches(e){for(let t=this.currentTouches.length-1;t>=0;--t){let i=this.currentTouches[t];n(e,i.identifier)>=0||(this.currentTouches.splice(t,1),this.startTouches.splice(t,1),this.unmovedTouches.delete(i.identifier))}}addTouches(e){for(let t of e){let e=t.identifier,i=n(this.currentTouches,e);if(i<0&&this.currentTouches.length>=2)continue;let o=new r(t);i>=0?(this.startTouches[i]=o,this.currentTouches[i]=o):(this.startTouches.push(o),this.currentTouches.push(o)),this.unmovedTouches.add(e)}}removeRecordTouches(e){let t=[];for(let i of Array.from(e)){let e=n(this.currentTouches,i.identifier);if(-1===e)continue;let[o]=this.currentTouches.splice(e,1),[r]=this.startTouches.splice(e,1),a=this.unmovedTouches.has(i.identifier),s=i.target;this.unmovedTouches.delete(i.identifier),t.push({start:r,end:o,unmoved:a,target:s})}return t}startNewGesture(e){return 1===e.length&&!!this.scrollCalc&&(this.scrollCalc.start(e[0]),!0)}onHandle(e,t){return 1===t.length&&!!this.scrollCalc&&(this.doScroll(e[0],t[0]),!0)}doScroll(e,t){let i=this.scrollCalc?.calc(t);if(!i)return;this.emit("scrollTo",i.scrollLeft,i.scrollTop);let n=t.x-e.x,o=t.y-e.y,r=t.timestamp-e.timestamp;r>0&&this.resetScrollingSpeed({deltaX:n/r,deltaY:o/r,timer:null})}stopSmoothScroll(){let e=this.scrollingSpeed.timer;null!=e&&(clearInterval(e),this.scrollingSpeed.timer=null)}resetScrollingSpeed(e){this.stopSmoothScroll(),this.scrollingSpeed=e}decayScrollingSpeed(e,t){let i=Math.pow(.8,t/10),n=e.deltaX*i,o=e.deltaY*i;return this.scrollCalc?.calcSmoothScroll({x:n,y:o})?{deltaX:n,deltaY:o,timer:null}:{deltaX:0,deltaY:0,timer:null}}doSmoothScroll(){this.scrollingSpeed.timer||(this.scrollingSpeed.timer=setInterval(()=>{let{deltaX:e,deltaY:t}=this.scrollingSpeed,i=this.scrollCalc?.calcSmoothScroll({x:e,y:t});if(!i)return void this.resetScrollingSpeed({deltaX:0,deltaY:0,timer:null});this.scrollingSpeed.deltaX*=.8,this.scrollingSpeed.deltaY*=.8,this.emit("scroll",i.x,i.y)},10))}doPress(e,t){let i=t??this.eventTarget;if(!i)return;let n={button:2*(Date.now()-e.timestamp>300)};i.dispatchEvent(e.createMouseEvent("mousedown",n)),i.dispatchEvent(e.createMouseEvent("mouseup",n))}}class s extends a{constructor(e){super(e),this.touchView=e.view,this.pinchCalc=e.enablePinch??!0?new c(this.touchView):null}startNewGesture(e){return!!super.startNewGesture(e)||2===e.length&&!!this.pinchCalc&&(this.pinchCalc.start(e),!0)}onHandle(e,t){let i=t.length;return!!super.onHandle(e,t)||2===i&&!!this.pinchCalc&&(this.doPinch(e,t),!0)}doPinch(e,t){let i=this.pinchCalc?.calc(t);i&&this.emit("zoomTo",i.zoomLevel,i.left,i.top)}}class l{static create(e,t){return t&&!1===t.enableX&&!1===t.enableY?null:new l(e,t??{})}constructor(e,t){this.view=e,this.isXDirectionEnabled=t.enableX??!0,this.isYDirectionEnabled=t.enableY??!0,this.startState=null}getScales(){return this.view.getScales?.()||{x:1,y:1}}start(e){let t=this.view.getScrollOffset(),{x:i,y:n}=this.getScales();this.startState={touch:e,scrollLeft:t.x,xScale:i,scrollTop:t.y,yScale:n}}calc(e){if(!this.startState)return;let t=this.startState,i=this.isXDirectionEnabled?(e.x-t.touch.x)*t.xScale:0,n=this.isYDirectionEnabled?(e.y-t.touch.y)*t.yScale:0;return{scrollLeft:t.scrollLeft-i,scrollTop:t.scrollTop-n}}calcSmoothScroll(e){let{x:t,y:i}=e;if(.01>Math.abs(t)&&.01>Math.abs(i))return null;let n=this.getScales();return{x:-t*n.x*30,y:-i*n.y*30}}}class c{constructor(e){this.view=e,this.startState=null}isInverted(){let e=this.view.getScales?.();return e?{x:e.x<0,y:e.y<0}:null}start(e){let t=d(e[0],e[1]),i=u(e[0],e[1]),n=this.view.getZoomLevel(),o=this.view.getViewportBound(),r=this.view.pointOnViewport(t),a=this.view.pointOnContent(t);this.startState={pinchCenter:t,pinchDist:i,zoomLevel:n,viewportBound:o,pointOnViewport:r,pointOnContentWithoutZoom:{x:a.x/n,y:a.y/n}}}calc(e){if(!this.startState)return;let t=u(e[0],e[1]),i=d(e[0],e[1]),{pinchDist:n,pinchCenter:o,zoomLevel:r,viewportBound:a,pointOnViewport:s,pointOnContentWithoutZoom:l}=this.startState,c=i.x-o.x,h=i.y-o.y,p=this.view.normalizeZoomLevel(t/n*r),f=l.x*p,g=l.y*p,m=s.x+c,v=s.y+h,b=this.isInverted();return{zoomLevel:p,left:f-(b?.x?a.x+a.width-m:m),top:g-(b?.y?a.y+a.height-v:v)}}}function d(e,t){return{x:(e.x+t.x)/2,y:(e.y+t.y)/2}}function u(e,t){let i=t.x-e.x,n=t.y-e.y;return Math.sqrt(i*i+n*n)}class h extends a{constructor(e){super({...e,scrollOptions:"x"===e.scrollbarDirection?{enableX:!0,enableY:!1}:{enableX:!1,enableY:!0}})}}},88141:function(e,t,i){"use strict";function n(e,t,i){let n=-1,o=0,r=e.length;for(;o<r;){let a=Math.floor((o+r)/2),s=t.call(i,e[a],a);if(s>0)o=a+1;else if(s<0)r=a;else{n=a;break}}let a=n>=0;return{found:a,index:a?n:o-1}}function o(e,t,i,o){return n(e,i.bind(o,t))}i.d(t,{q:()=>o,r:()=>n})},5185:function(e,t,i){"use strict";function n(e,t){try{return e.getData(t)}catch{}return""}function o(e,t){let i=e.types;return i?Array.prototype.includes.call(i,t):!!n(e,t)}function r(e,t){return Array.isArray(t)||(t=[t]),t.find(t=>t&&o(e,t))||""}i.r(t),i.d(t,{isMsOfficeEvent:()=>w,getData:()=>d,listFiles:()=>f,isMsOfficeHtml:()=>_,listImages:()=>g,shouldSkipTransferredFile:()=>C,trimAfter:()=>b,trimBefore:()=>v,hasFiles:()=>u,hasType:()=>c});let a="text/plain",s="text/html",l="text/uri-list";function c(e,t){switch(t){case a:return!!r(e,[a,""]);case s:return!!r(e,s);case l:return!!r(e,[l,""]);default:return o(e,t)}}function d(e,t){switch(t){case a:let i=r(e,[a,""]);return i?e.getData(i):"";case s:let o=r(e,s);return o?e.getData(o):"";case l:let c=r(e,[l,""]);return c?e.getData(c):"";default:return n(e,t)}}function u(e){let t=e.files;if(t&&t.length>0)return!0;let i=e.items;if(i){for(let e of i)if("file"===e.kind)return!0}return!1}var h=i(61367);class p{constructor(e){this.checker=this.ensureChecker(e),this.files=[],this.total=0,this.onSucc=this.onSucc.bind(this),this.onError=this.onError.bind(this)}ensureChecker(e){return"function"==typeof e?e:"string"==typeof e?t=>t.startsWith(e):e instanceof RegExp?e.test.bind(e):()=>!0}increaseCount(){++this.total}decreaseCount(){--this.total}isDone(){return this.total===this.files.length}onSucc(e){if(!this.check(e.type))return void this.onError();this.files.push(e)}onError(){this.decreaseCount()}check(e){return this.checker.call(null,e)}addFile(e){e&&(this.increaseCount(),this.onSucc(e))}addEntry(e){e&&(this.increaseCount(),e.isFile?e.file(this.onSucc,this.onError):e.isDirectory?e.createReader().readEntries(e=>{for(let t of e)this.addEntry(t);this.decreaseCount()},this.onError):this.onError())}addItemList(e){for(let t of e)"file"===t.kind&&(t.getAsFile&&this.check(t.type)?this.addFile(t.getAsFile()):t.getAsEntry?this.addEntry(t.getAsEntry()):t.webkitGetAsEntry&&this.addEntry(t.webkitGetAsEntry()))}addFileList(e){for(let t of e)(!h.isFirefox()||function(e){if(!window.File)return!0;try{let t;(t=e.slice?e.slice(0,1):e.webkitSlice?e.webkitSlice(0,1):e.mozSlice?e.mozSlice(0,1):null)&&window.FileReader&&new FileReader().readAsBinaryString(t)}catch{return!1}return!0}(t))&&this.addFile(t)}load(){return this.isDone()?Promise.resolve(this.files):new Promise(e=>{let t=window.setInterval(()=>{this.isDone()&&(window.clearInterval(t),e(this.files))},200)})}}function f(e,t){let{items:i,files:n}=e;if((!i||!i.length)&&(!n||!n.length))return Promise.resolve([]);let o=new p(t);return i&&i.length?o.addItemList(i):n&&n.length&&o.addFileList(n),o.load()}function g(e){return f(e,"image")}var m=i(95877);function v(e,t,i){void 0===i&&(i=!1);let n=e.indexOf(t);return n>=0?e.slice(n+(i?t.length:0)):e}function b(e,t,i){void 0===i&&(i=!1);let n=e.lastIndexOf(t);return n>=0?e.slice(0,n+(i?0:t.length)):e}let y=new WeakMap;function w(e){return!!y.get(e)}function _(e,t){if(t){let e=y.get(t);if(void 0!==e)return e}let i=/<font face="Times New Roman"|class="?Mso|style=(?:"[^"]*|'[^']*)\bmso-|\{[^}]*\bmso-|w:WordDocument/i.test(e)||/class="OutlineElement|id="?docs-internal-guid-/.test(e);return t&&y.set(t,i),i}function x(e){return"html"!==e&&"head"!==e&&"body"!==e&&!(0,m.getElementCategoryTags)("metadata").includes(e)}function S(e){return Array.from(e.matchAll(/<\/?([a-zA-Z][^>\s/]*)(?:\/| [^>]*)?>/g),e=>e[1]??"").filter(x).map(e=>e.toLowerCase())}function C(e){if(_(e)){var t;let i=e;return!(1===(t=S(i=b(i=v(i,"<![if !vml]>"),"<![endif]>"))).length?"img"===t[0]:3===t.length&&"span"===t[0]&&"img"===t[1]&&"span"===t[2])}var i=S(e);if(0===i.length)return!1;let n=(0,m.getElementCategoryTags)("table");return n.includes(i[0])&&n.includes(i[i.length-1])}},95877:function(e,t,i){"use strict";i.r(t),i.d(t,{isDocumentFragmentNode:()=>c,isNode:()=>r,getElementCategoryList:()=>y,isElementCategory:()=>_,isTextNode:()=>s,firstElementDescendant:()=>S,isSvgElement:()=>d,svgNS:()=>n,cloneWithTag:()=>I,matchesChild:()=>k,xlinkNS:()=>o,isElementNode:()=>a,getElementCategoryTags:()=>w,firstDescendant:()=>x,clearChilds:()=>C,isCommentNode:()=>l});let n="http://www.w3.org/2000/svg",o="http://www.w3.org/1999/xlink";function r(e){return"nodeType"in e}function a(e){return r(e)&&e.nodeType===e.ELEMENT_NODE}function s(e){return r(e)&&e.nodeType===e.TEXT_NODE}function l(e){return r(e)&&e.nodeType===e.COMMENT_NODE}function c(e){return r(e)&&e.nodeType===e.DOCUMENT_FRAGMENT_NODE}function d(e){return a(e)&&"ownerSVGElement"in e}var u=i(56118);let h=["base","link","meta","noscript","script","style","template","title","command"],p=["embed","iframe","object","head"].concat(h),f=["table","caption","col","colgroup","tbody","td","tfoot","th","thead","tr"],g=["address","article","aside","blockquote","dd","details","div","dl","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","li","main","menu","nav","ol","p","pre","section","ul",...f],m={metadata:h,heading:["h1","h2","h3","h4","h5","h6","hgroup"],phrasing:["a","abbr","audio","b","bdi","bdo","br","button","canvas","cite","code","data","datalist","del","dfn","em","embed","i","iframe","img","input","ins","kbd","label","map","mark","math","meter","noscript","object","output","picture","progress","q","ruby","s","samp","script","select","slot","small","span","strong","sub","sup","svg","template","textarea","time","u","var","video","wbr","command","keygen"],embedded:["audio","canvas","embed","iframe","img","math","object","picture","svg","video"],ignored:p,list:["ol","ul"],table:f,textblock:["p","li","h1","h2","h3","h4","h5","h6"],block:g},v=Object.keys(m),b=(0,u.U)(m,e=>e.reduce((e,t)=>(e[t.toLowerCase()]=e[t.toUpperCase()]=!0,e),Object.create(null)));function y(){return v}function w(e){return m[e]}function _(e,t){return!!b[t]["string"==typeof e?e.toLowerCase():e.tagName]}function x(e){let t,i=e.firstChild;if(!i)return null;for(;t=i.firstChild;)i=t;return i}function S(e){let t,i=e.firstElementChild;if(!i)return null;for(;t=i.firstElementChild;)i=t;return i}function C(e){let t;for(;t=e.lastChild;)t.remove()}function k(e,t){for(let i=e.firstElementChild;i;i=i.nextElementSibling)if(i.matches(t))return i;return null}function I(e,t,i){if(e.tagName.toLowerCase()===t.toLowerCase())return e.cloneNode(i);let r=e.ownerDocument,a=d(e)?r.createElementNS(n,t):r.createElement(t);for(let t of e.attributes){let{name:e,value:i}=t;"xlink:href"===e?a.setAttributeNS(o,e,i):a.setAttribute(e,i)}return i&&e.firstChild&&a.append(...e.cloneNode(!0).childNodes),a}},59359:function(e,t,i){"use strict";let n;function o(e,t){"focus"in e&&(t?.force||e.ownerDocument.activeElement!==e)&&e.focus(t)}function r(e,t){if(!(e&&t))return!1;if(e===t)return!0;if(e.nodeType===document.TEXT_NODE)return!1;if(t.nodeType!==document.ELEMENT_NODE){let e=t.parentNode;if(!e)return!1;t=e}return e.nodeType!==document.DOCUMENT_NODE||e.contains||(e=e.body),e.contains(t)}i.r(t),i.d(t,{isDocumentFragmentNode:()=>O.isDocumentFragmentNode,ensureCSSAdded:()=>J,isShown:()=>V,createHTMLImageElement:()=>y,loadFontFaces:()=>_,isTextNode:()=>O.isTextNode,openWindow:()=>C.x,domIndexUnder:()=>et,svgNS:()=>O.svgNS,findIndexAlong:()=>j,insertBackward:()=>H,extractCSSFontFaceRulesText:()=>w.N,isElementNode:()=>O.isElementNode,toggleFullscreen:()=>u,adoptNode:()=>L,isDisplayed:()=>p,setCustomData:()=>A,insertForward:()=>z,getSelectionRange:()=>E,isCommentNode:()=>O.isCommentNode,getElementCategoryList:()=>O.getElementCategoryList,exitFullscreen:()=>d,domChildLength:()=>en,focus:()=>o,waitReadyStateComplete:()=>s.B,domIndex:()=>ei,xlinkNS:()=>O.xlinkNS,appendAllChilds:()=>U,elt:()=>K,domChildCount:()=>en,firstDescendant:()=>O.firstDescendant,isDom:()=>B,createCanvas:()=>v,requestFullscreen:()=>c,isHidden:()=>F,isNode:()=>O.isNode,isElementCategory:()=>O.isElementCategory,contains:()=>r,resetDocument:()=>g.F,getIndex:()=>ei,isSvgElement:()=>O.isSvgElement,createCanvasRenderingContext2D:()=>b,setTranslate:()=>ea,findCorrespondingDescendant:()=>q,getCustomData:()=>T,getHTMLScriptSrc:()=>k,getElementCategoryTags:()=>O.getElementCategoryTags,getRangeClientRect:()=>D,prependAllChilds:()=>G,forEachNode:()=>P,remove:()=>W,domUnder:()=>ee,clearChilds:()=>O.clearChilds,waitReadyStateInteractive:()=>s.z,getReadyState:()=>a.W,child:()=>Z,createHTMLIFrame:()=>S,firstElementDescendant:()=>O.firstElementDescendant,cloneWithTag:()=>O.cloneWithTag,matchesChild:()=>O.matchesChild,setOpacity:()=>er,insertCSS:()=>$,isFullscreen:()=>l,ensureDocumentFragment:()=>Y,setDisplay:()=>eo,generateResourceString:()=>f.Z,applyCssStyleRule:()=>M,applyAllCssStyleRules:()=>N,getFullscreenChangeEventName:()=>h});var a=i(34260),s=i(71963);function l(e,t){let i=e.fullscreenElement||e.webkitFullscreenElement||e.mozFullScreenElement||e.msFullscreenElement;return t?i===t:!!i}function c(e,t){let i=e.ownerDocument;if(!i)return Promise.reject("Given element is not attached to a document.");if(l(i,e))return Promise.resolve();let n=e.requestFullscreen||e.webkitRequestFullscreen||e.webkitRequestFullScreen||e.mozRequestFullScreen||e.msRequestFullscreen;return n?n.call(e,t)||Promise.resolve():Promise.reject("No valid fullscreen requester.")}function d(e){if(!l(e))return Promise.resolve();let t=e.exitFullscreen||e.webkitExitFullscreen||e.webkitExitFullScreen||e.mozCancelFullScreen||e.msExitFullscreen;return t?t.call(e)||Promise.resolve():Promise.reject("No valid fullscreen exitor.")}function u(e){let t=e.ownerDocument;return t?l(t,e)?d(t):c(e):Promise.reject("Given element is not attached to a document.")}let h=()=>n??(n=function(){for(let e of["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"])if(void 0!==document[`on${e}`])return e;return"fullscreenchange"}());function p(e){let t;if(e.nodeType===e.ELEMENT_NODE)t=e;else{let i=e.parentElement;if(!i)return!1;t=i}return 0!==t.getClientRects().length}var f=i(55868),g=i(12808);let m="undefined"!=typeof OffscreenCanvas;function v(e){return e?.preferOffscreen&&m?new OffscreenCanvas(100,100):(e?.document??document).createElement("canvas")}function b(e){return v(e).getContext("2d",e?.contextAttributes)}function y(e,t,i){let n=document.createElement("img");return e&&(n.src=e),n.style.width=t+"px",n.style.height=i+"px",n.setAttribute("width",String(t)),n.setAttribute("height",String(i)),n}var w=i(68091);async function _(e){await Promise.allSettled(Array.from(e,async e=>{try{await e.load()}catch(e){}}))}var x=i(41385);function S(e){void 0===e&&(e={});let t=e.preset,{parentNode:i=document.body,inheritFontFaces:n="metrics"===t}=e,o=document.createElement("iframe");t&&("hidden"===t||"metrics"===t)&&Object.assign(o.style,{position:"absolute",left:"-5566px",top:"-5566px",width:"5566px",height:"5566px",opacity:"0",border:"0",overflow:"hidden","pointer-events":"none","z-index":"0"}),i.appendChild(o);let r=o.contentDocument;if(r&&((0,g.F)(r,{...e,headContent:[e.headContent,n&&i.ownerDocument?`<style>${(0,x.htmlTagEscape)((0,w.N)(i.ownerDocument.styleSheets))}</style>`:void 0]}),"metrics"===t)){let e=r.body.style;e["-moz-text-size-adjust"]="none",e["-webkit-text-size-adjust"]="none",e["text-size-adjust"]="none",r.fonts&&_(r.fonts)}return o}var C=i(88115);function k(e,t){if(t.includes('"'))return"";let i=e.querySelector(`script[src*="${t}"]`);return i&&i.getAttribute("src")||""}let I=Symbol("synoCustomData");function A(e,t,i){(e[I]||(e[I]=Object.create(null)))[t]=i}function T(e,t){return e[I]?.[t]}function E(e){let t=(e??document).getSelection();return t&&t.rangeCount?t.getRangeAt(0):null}var R=i(61367);function D(e,t,i){void 0===i&&(i=t);let n=e.ownerDocument;if(!n)return new DOMRect(0,0,0,0);let o=n.createRange();o.setStart(e,t),o.setEnd(e,i);let r=t===i&&(0,R.isSafari)()?o.getClientRects()[0]:o.getBoundingClientRect();return o.detach(),r}var O=i(95877);function M(e,t){try{let i=Array.from(e.querySelectorAll(t.selectorText));for(let n of((0,O.isElementNode)(e)&&e.matches(t.selectorText)&&i.push(e),i))n.setAttribute("style",`${t.style.cssText}${n.getAttribute("style")}`)}catch{}}function N(e,t){let i;try{i=t.cssRules}catch(e){console.warn(e);return}for(let t=i.length-1;t>=0;--t){let n=i[t];"CSSStyleRule"===n.constructor.name&&M(e,n)}}function P(e,t,i,n){let o=(e instanceof Document?e:e.ownerDocument).createTreeWalker(e,i,{acceptNode:n||(()=>NodeFilter.FILTER_ACCEPT)});for(let e=o.nextNode();null!==e;e=o.nextNode())if(t(e))return}function L(e,t){try{e.adoptNode(t)}catch{}return t}function B(e){return null!=(e&&e.nodeType)}function F(e,t){return e.nodeType===e.TEXT_NODE&&(e=e.parentNode),(0,O.isSvgElement)(e)&&(t=!0),t?0===e.getClientRects().length:!e.offsetParent}function V(e,t){return!F(e,t)}function z(e,t){t!==e.previousSibling&&e.parentNode.insertBefore(t,e)}function H(e,t){t!==e.nextSibling&&e.parentNode.insertBefore(t,e.nextSibling)}function W(e){let t=e.parentNode;t&&t.removeChild(e)}function Y(e){let t;if(e instanceof window.DocumentFragment)return e;let i=e.ownerDocument.createDocumentFragment();for(;t=e.firstChild;)i.appendChild(t);return i}function U(e,t){e.appendChild(Y(t))}function G(e,t){e.insertBefore(Y(t),e.firstChild)}function Z(e,t){for(e=e.firstChild;t>0&&e;--t)e=e.nextSibling;return e}function j(e,t){let i=[];for(;e&&e!==t;e=e.parentNode)i.push(ei(e));return e===t?i:null}function q(e,t,i){let n=j(t,e);if(!n)return null;for(let e=n.length-1;e>=0&&i;--e)i=Z(i,e);return i}function K(e,t){for(var i=arguments.length,n=Array(i>2?i-2:0),o=2;o<i;o++)n[o-2]=arguments[o];let r=document.createElement(e);if(t)for(let e in t)if("style"===e)r.style.cssText=t[e];else if("inline_style"===e&&t[e])for(let i in t[e])r.style[i]=t[e][i];else null!=t[e]&&r.setAttribute(e,t[e]);for(let e=0;e<n.length;e++)!function e(t,i){if("string"==typeof t&&(t=document.createTextNode(t)),Array.isArray(t))for(let n=0;n<t.length;n++)e(t[n],i);else t&&i.appendChild(t)}(n[e],r);return r}let X="",Q=null;function $(e){Q?Q.textContent+=e:X+=e}function J(){Q||((Q=document.createElement("style")).textContent="/* ProseMirror CSS */\n"+X,document.head.insertBefore(Q,document.head.firstChild))}function ee(e,t){for(;e;){let i=e.parentNode;if(i===t)return e;e=i}return null}function et(e,t){return(e=ee(e,t))?ei(e):-1}function ei(e){let t;for(t=-1;e;++t)e=e.previousSibling;return t}function en(e){return e.nodeType===e.TEXT_NODE?e.length:e.childNodes.length}function eo(e,t){t?e.style.display="block":e.style.display="none"}function er(e,t){e.style.opacity=`${t}`}function ea(e,t,i){e.style.transform=`translate(${t}px, ${i}px)`}},68091:function(e,t,i){"use strict";function n(e){let t=[];for(let i of e)try{for(let e of i.cssRules)"CSSFontFaceRule"===e.constructor.name&&t.push(e)}catch(e){console.warn(e)}return t.map(o).join("\n")}function o(e){let t=e.parentStyleSheet?.href??e.parentStyleSheet?.ownerNode?.ownerDocument?.location?.href??window.location.href;return e.cssText.replaceAll(/url\("([^"]+)"\)/g,(e,i)=>{let n=new URL(i,t).href;return`url("${n}")`})}i.d(t,{N:()=>n})},55868:function(e,t,i){"use strict";i.d(t,{Z:()=>o});var n=i(41385);function o(e){if(!e)return"";if("string"==typeof e)return e;if(Array.isArray(e))return e.map(o).join("");{let t="",{metas:i,styles:o,scripts:r}=e;if(i)for(let[e,o]of Object.entries(i))t+=`<meta http-equiv="${(0,n.htmlEscape)(e)}" content="${(0,n.htmlEscape)(o)}">`;if(o)for(let e of o)e&&(t+=`<link rel="stylesheet" type="text/css" href="${(0,n.htmlEscape)(e)}">`);if(r)for(let e of r)e&&(t+=`<script type="text/javascript" src="${(0,n.htmlEscape)(e)}"></script>`);return t}}},34260:function(e,t,i){"use strict";function n(e){let t=e.readyState;return"loaded"===t&&(t="complete"),t}i.d(t,{W:()=>n})},88115:function(e,t,i){"use strict";i.d(t,{x:()=>a});var n=i(12808),o=i(68091),r=i(41385);function a(e,t){void 0===t&&(t={});let i=e.open(t.url||"",t.target||"",t.features);return i&&(0,n.F)(i.document,{...t,headContent:[t.headContent,t.inheritFontFaces?`<style>${(0,r.htmlTagEscape)((0,o.N)(e.document.styleSheets))}</style>`:void 0]}),i}},12808:function(e,t,i){"use strict";i.d(t,{F:()=>r});var n=i(55868),o=i(41385);function r(e,t){void 0===t&&(t={});let{lang:i,headContent:r="",bodyContent:a=""}=t,s=i?` lang="${(0,o.htmlEscape)(i)}"`:"";e.open(),e.write(`<!DOCTYPE html><html${s}><head><meta charset="utf-8">${(0,n.Z)(r)}</head><body>${(0,n.Z)(a)}</body></html>`),e.close()}},71963:function(e,t,i){"use strict";i.d(t,{B:()=>s,z:()=>a});var n=i(34260);let o=["loading","interactive","complete"];function r(e,t){let i=o.indexOf(t);if(i<0)return Promise.reject(`Given state \`${t}\` is invalid.`);let r=()=>o.indexOf((0,n.W)(e))>=i;return r()?Promise.resolve():new Promise(t=>{let i=()=>{r()&&(e.removeEventListener("readystatechange",i),t())};e.addEventListener("readystatechange",i)})}function a(e){return r(e,"interactive")}function s(e){return r(e,"complete")}},46342:function(e,t,i){"use strict";let n,o;i.r(t),i.d(t,{generateEffectiveLineDrawingStyle:()=>y,generateEffectiveTextDrawingStyle:()=>h,generateFontStyle:()=>u,getMinFontSize:()=>c,extractFontStyle:()=>d,measureLine:()=>_,TextMetrics:()=>f,measureText:()=>g});var r=i(61367),a=i(70171),s=i(59359);function l(e,t,i){for(let n of["serif","sans-serif","monospace"]){let o="mmmmmmmmmmlli",r=`${i}px ${n}`;if(e.innerHTML=o,e.style.font=r,t.font=r,.5>Math.abs(e.getBoundingClientRect().width-t.measureText(o).width))return!0}return!1}function c(){return n??(n=function(){if((0,r.isChrome)()||(0,r.isSafari)()){let e=function(){let e=(0,s.createHTMLIFrame)({preset:"metrics",inheritFontFaces:!1}),t=e.contentDocument?function(e){let t=e.createElement("span");Object.assign(t.style,{fontSize:"1px",display:"none"}),e.body.appendChild(t);let i=a.eI.read(window.getComputedStyle(t).fontSize,"px");return(t.remove(),isNaN(i)||.01>Math.abs(i-1))?-1:i}(e.contentDocument):-1;return e.remove(),t}();if(e>=0)return e}else{let e=function(){let e=(0,s.createHTMLIFrame)({preset:"metrics",inheritFontFaces:!1}),t=function(e){let t=e.contentDocument;if(!t)return -1;let i=t.createElement("span");t.body.appendChild(i);let n=(0,s.createCanvasRenderingContext2D)({document:t});if(!n)return -1;for(let e=12;e>=1;--e)if(!l(i,n,e))if(12!==e)return e+1;else{for(let e=13;e<=25;++e)if(l(i,n,e))return e;return 26}return -1}(e);return e.remove(),t}();if(e>=0)return e}return -1}())}function d(e){let t={};for(let i of["fontStyle","fontVariant","fontWeight","fontStretch","fontSize","fontFamily","lineHeight"]){let n=e[i];n&&(t[i]=n)}return t}function u(e){if(!e)return"10px sans-serif";if(e.font)return e.font;let{fontStyle:t="",fontVariant:i="",fontWeight:n="",fontStretch:o="",fontSize:r="10px",fontFamily:a="sans-serif",lineHeight:s=""}=e,l="string"==typeof r?r:`${r}px`,c="string"==typeof s?s:`${s}`,d="string"==typeof a?a:a.map(e=>((e=e.trim()).length>=2&&("'"!==e[0]&&'"'!==e[0]||"'"!==e.at(-1)||'"'!==e.at(-1))&&(e=`"${e}"`),e)).join(","),u=[];return t&&u.push(t),i&&u.push(i),n&&u.push(n),o&&u.push(o),u.push(l),c&&u.push(`/ ${c}`),u.push(d),u.join(" ")}function h(e){return{direction:e?.direction??"ltr",font:u(e),fontStretch:e?.fontStretch??"normal"}}let p=null;class f{constructor(e){this.metrics=e}get actualBoundingBoxAscent(){return this.metrics.actualBoundingBoxAscent}get actualBoundingBoxDescent(){return this.metrics.actualBoundingBoxDescent}get actualBoundingBoxLeft(){return this.metrics.actualBoundingBoxLeft}get actualBoundingBoxRight(){return this.metrics.actualBoundingBoxRight}get fontBoundingBoxAscent(){return this.metrics.fontBoundingBoxAscent??this.metrics.actualBoundingBoxAscent}get fontBoundingBoxDescent(){return this.metrics.fontBoundingBoxDescent??this.metrics.actualBoundingBoxDescent}get width(){return this.metrics.width}get height(){return this.fontBoundingBoxAscent+this.fontBoundingBoxDescent}get actualWidth(){return this.metrics.actualBoundingBoxLeft+this.metrics.actualBoundingBoxRight}get actualHeight(){return this.metrics.actualBoundingBoxAscent+this.metrics.actualBoundingBoxDescent}}function g(e,t){var i;let n=(i=t)&&"measureText"in i?i:p||(p=(0,s.createCanvasRenderingContext2D)())?(Object.assign(p,h(i)),p):null;return new f(n?n.measureText(e):{actualBoundingBoxAscent:0,actualBoundingBoxDescent:0,actualBoundingBoxLeft:0,actualBoundingBoxRight:0,fontBoundingBoxAscent:0,fontBoundingBoxDescent:0,width:0})}function m(e){let t=e.createElement("div");return Object.assign(t.style,{position:"absolute",left:"0",top:"0",margin:"0",padding:"0",wordWrap:"normal",whiteSpace:"nowrap"}),t}function v(e){let t=function(e){let t=e.createElement("span");return Object.assign(t.style,{verticalAlign:"baseline"}),t}(e),i=function(e){let t=e.createElement("img");return t.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII=",t.width=1,t.height=1,Object.assign(t.style,{margin:"0",padding:"0"}),t}(e),n=function(e){let t=e.createElement("span");return t.textContent="​",t}(e);return t.append(i,n),{inline:t,ruler:i,text:n}}function b(e,t){let i=m(e),{inline:n,ruler:o}=v(e),{inline:r,ruler:a}=v(e);return r.style.verticalAlign=t?"super":"sub",i.append(n,r),{line:i,baseRuler:o,scriptRuler:a}}function y(e){return{font:u(e)}}let w=new Map;function _(e){let t=y(e),i=t.font,n=w.get(i);if(n)return n;let r=function(e){let{body:t,baselineLine:i,baselineRuler:n,baselineText:r,superBaseRuler:a,superScriptRuler:l,subBaseRuler:c,subScriptRuler:d}=function(){if(o)return o;let e=(0,s.createHTMLIFrame)({preset:"metrics"}),t=e.contentDocument;if(!t)throw Error("Content document of measurement iframe is not available.");let{line:i,ruler:n,text:r}=function(e){let t=m(e),{inline:i,ruler:n,text:o}=v(e);return t.append(i),{line:t,ruler:n,text:o}}(t),{line:a,baseRuler:l,scriptRuler:c}=b(t,!0),{line:d,baseRuler:u,scriptRuler:h}=b(t,!1);return t.body.append(i,a,d),o={iframe:e,body:t.body,baselineLine:i,baselineRuler:n,baselineText:r,superLine:a,superBaseRuler:l,superScriptRuler:c,subLine:d,subBaseRuler:u,subScriptRuler:h}}();t.style.font=e.font;let u=i.getBoundingClientRect().height,h=n.getBoundingClientRect().bottom,p=r.getBoundingClientRect().height,f=h-r.getBoundingClientRect().top,g=a.getBoundingClientRect().bottom-l.getBoundingClientRect().bottom,y=c.getBoundingClientRect().bottom-d.getBoundingClientRect().bottom;return{height:u,lineBoundingBoxAscent:h,lineBoundingBoxDescent:u-h,textHeight:p,textBoundingBoxAscent:f,textBoundingBoxDescent:p-f,superBaselineAscent:g,superBaselineDescent:-g,subBaselineAscent:y,subBaselineDescent:-y}}(t);return w.set(i,r),r}},6291:function(e,t,i){"use strict";function n(e,t){return e>=0?e%t:(t- -e%t)%t}i.d(t,{w:()=>n})},4494:function(e,t,i){"use strict";function n(e,t){return void 0===t&&(t=0),parseFloat(e.toFixed(t))}i.d(t,{N:()=>n})},81011:function(e,t,i){"use strict";function n(e,t,i){for(let n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t.call(i,e[n],n,e))break}i.d(t,{E:()=>n,U:()=>n})},35557:function(e,t,i){"use strict";i.d(t,{U:()=>o});var n=i(37821);function o(e){return(0,n.u)(e,(e,t,i)=>(e[t]=i,e),Object.create(null))}},56118:function(e,t,i){"use strict";i.d(t,{U:()=>o});var n=i(81011);function o(e,t,i){let o=Object.create(null);return(0,n.E)(e,(e,n,r)=>{o[n]=t.call(i,e,n,r)}),o}},37821:function(e,t,i){"use strict";i.d(t,{u:()=>o});var n=i(81011);function o(e,t,i){return(0,n.E)(e,(e,n,o)=>{i=t(i,e,n,o)}),i}},41385:function(e,t,i){"use strict";function n(e){let t=e.charCodeAt(0);return t>=48&&t<=57}i.r(t),i.d(t,{isUpperAlphabet:()=>r,htmlEscape:()=>b,isDigit:()=>n,getMatcher:()=>h,isLowerAlphabet:()=>a,isAlphabet:()=>o.S,containsOnly:()=>s.r,toCamelCase:()=>p,toPascalCase:()=>f,format:()=>l,xmlStripInvalid:()=>w,htmlTagEscape:()=>y});var o=i(37706);function r(e){let t=e.charCodeAt(0);return t>=65&&t<=90}function a(e){let t=e.charCodeAt(0);return t>=97&&t<=122}var s=i(95055);function l(e){for(var t=arguments.length,i=Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];return e.replace(/\{(\d+)\}/g,(e,t)=>String(i[t]))}let c=/(?:https?:\/\/|www\.(?:[-\w@:%\\+~#=]+\.)+[a-zA-Z]{2,6}\b)/g,d=RegExp(`${c.source}[\\u0021-\\u007E]*`,"g"),u={newLine:/(?:\r\n|\r|\n)/g,linkHttpHost:c,linkHttp:d,linkMailTo:/(?:mailto:)?(?:[^<>()[\]\\,;:\s@"]+|".+")@(?:\[\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\]|(?:[a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,})/g};function h(e){return Object.prototype.hasOwnProperty.call(u,e)?u[e]:void 0}function p(e){return e.replace(/(?!^)_[A-Za-z0-9]/g,e=>e[1].toUpperCase())}function f(e){return e.replace(/(?:^|_)[A-Za-z0-9]/g,(e,t)=>{let i=e.length;return 1===i||0===t?e.toUpperCase():e[i-1].toUpperCase()})}let g={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"},m=/[&<>"]/g,v=/[&<>]/g;function b(e){return e&&m.test(e)?e.replace(m,function(e){return g[e]}):e}function y(e){return e&&v.test(e)?e.replace(v,function(e){return g[e]}):e}function w(e){return e.replace(RegExp(`([\uD800-\uDBFF}][\uDC00-\uDFFF])|[\0-\x08\x0B\x0c\x0E-\x1f\x7F-\x84\x86-\x9f\uD800-\uDFFF\uFFFE\uFFFF]`,"g"),"$1")}},95055:function(e,t,i){"use strict";function n(e,t){if(!e)return!t;t=(t||e)[0];for(let i=0,n=e.length;i<n;++i)if(e[i]!==t)return!1;return!0}i.d(t,{r:()=>n})},37706:function(e,t,i){"use strict";function n(e){let t=e.charCodeAt(0);return t>=65&&t<=90||t>=97&&t<=122}i.d(t,{S:()=>n})},97545:function(e,t,i){"use strict";let n;function o(e){return e>=0&&e<=127}function r(e){return e>=0&&e<=31||127===e}function a(e){return e>=32&&e<=126}function s(e){return e>=65&&e<=90||e>=97&&e<=122}i.r(t),i.d(t,{isLeadSurrogate:()=>g,nextGraphemeBreak:()=>C,isSurrogate:()=>f,replaceNonPrintableText:()=>et,createMatchString:()=>P,unicodeSome:()=>V,isAsciiControl:()=>r,findTailJoiningTarget:()=>X,iterateGraphemes:()=>I,codePointAt:()=>y,findHeadJoiningTrigger:()=>Q,findTailJoiningTrigger:()=>$,isSupplementaryPlane:()=>b,isAsciiPrint:()=>a,mergeContinuousRanges:()=>E,isTrailSurrogate:()=>m,iterateCodePoints:()=>w,isAscii:()=>o,createUnicodeMatchString:()=>H,isAsciiAlphabet:()=>s,isInRanges:()=>D,every:()=>M,iterateGraphemeBreaks:()=>A,unicodeRangesMap:()=>L,getCharType:()=>U,isRTL:()=>ee,some:()=>O,surrogateStart:()=>h,trailSurrogateStart:()=>d,isBasicMultilingualPlane:()=>v,unicodeEvery:()=>z,GraphemeSegmenter:()=>T,leadSurrogateStart:()=>l,isUnicodeCategory:()=>F,findHeadJoiningTarget:()=>K,leadSurrogateEnd:()=>c,buildRangesMap:()=>R,getUnicodeRanges:()=>B,trailSurrogateEnd:()=>u,surrogateEnd:()=>p});let l=55296,c=56319,d=56320,u=57343,h=55296,p=57343;function f(e){return e>=l&&e<=u}function g(e){return e>=l&&e<=c}function m(e){return e>=d&&e<=u}function v(e){return e>=0&&e<65536}function b(e){return e>=65536&&e<=1114111}function y(e,t,i){if(i>0)return e.codePointAt(t);if(t>=1&&t<=e.length){let i=e.charCodeAt(t-1);if(!m(i))return i;{let n=t>=2?e.codePointAt(t-2):void 0;return void 0!==n&&b(n)?n:i}}}function*w(e,t){void 0===t&&(t={});let{from:i=0,to:n=e.length,reversed:o=!1}=t;if(!(i>=0&&i<=e.length&&n>=0&&n<=e.length&&i<n))return;let r=o?-1:1,a=o?i:n,s=o?n:i;for(;;){let t;if(s===a||"number"!=typeof(t=s+r===a?e.charCodeAt(o?s+r:s):y(e,s,r)))break;let i=b(t),n=i?2:1,l=s+n*r;yield{value:t,index:o?l:s,length:n,isSupplementary:i},s=l}}var _=i(70777),x=i.n(_);let S=()=>n??(n=new(x()));function C(e,t){let i=S();return m(e.charCodeAt(t))?t+i.nextBreak(e.slice(t),0):i.nextBreak(e,t)}function*k(e,t){let i=S(),n=0;for(;!(n>=e.length);){let t=i.nextBreak(e,n);yield{index:n,length:t-n},n=t}}function*I(e,t){if(t?.reversed){let i=Array.from(k(e,t));for(let e=i.length-1;e>=0;--e)yield i[e]}else yield*k(e,t)}function*A(e,t){if(t?.reversed){yield e.length;let i=Array.from(k(e,t));for(let e=i.length-2;e>=0;--e){let{index:t,length:n}=i[e];yield t+n}}else for(let{index:i,length:n}of k(e,t))yield i+n}class T{constructor(e){this.text=e,this.breakCache=[]}next(e){if(e<0)return 0;if(e>=this.text.length)return this.text.length;let{text:t,breakCache:i}=this,n=S();for(;e>=i.length;){let e=n.nextBreak(t,i.length);for(let t=i.length;t<e;++t)i.push(e)}return i[e]}}function E(e){return e.map(e=>Array.isArray(e)?e:[e,e]).sort((e,t)=>e[0]-t[0]).reduce((e,t)=>{var i;let n=e.length;if(n&&(i=e[n-1],v(i[0])===v(t[0])&&t[0]<=i[1]+1)){let i=e[n-1];i[1]<t[1]&&(e[n-1]=[i[0],t[1]])}else e.push(t);return e},[])}function R(e){let t=Object.create(null);for(let i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=E(e[i]));return t}function D(e,t){let i="string"==typeof t?t.charCodeAt(0):t;for(let t of e)if(i>=t[0]&&i<=t[1])return!0;else if(i<t[0])break;return!1}function O(e,t){return Array.prototype.some.call(t,t=>D(e,t))}function M(e,t){return Array.prototype.every.call(t,t=>D(e,t))}function N(e){return"\\u"+e.toString(16).padStart(4,"0")}function P(e){let t="",i="";e.forEach(e=>{let[n,o]=e;if(v(n))n===o?t+=`${N(n)}`:t+=`${N(n)}-${N(o)}`;else{let e=String.fromCodePoint(n),t=e.charCodeAt(0),r=e.charCodeAt(1),a=String.fromCodePoint(o),s=a.charCodeAt(0),l=a.charCodeAt(1);i&&(i+="|"),n===o?i+=`${N(t)}${N(r)}`:t===s?i+=`${N(t)}[${N(r)}-${N(l)}]`:(i+=`${N(t)}[${N(r)}-${N(u)}]`,t+1<=s-1&&(i+=`|[${N(t+1)}-${N(s-1)}][${N(d)}-${N(u)}]`),i+=`|${N(s)}[${N(d)}-${N(l)}]`)}});let n="";return t&&(n+=`[${t}]`),i&&(n&&(n+="|"),n+=`${i}`),`(${n})`}let L=R({cjk:[[12544,12591],[12704,12735],[19968,40959],[13312,19903],[131072,173791],[173824,177983],[177984,178207],[178208,183983],[183984,191456],[63744,64255],[194560,195103],[12032,12255],[11904,12031],[12736,12783],[12272,12287]],kana:[[12352,12447],[12448,12543],[12784,12799],[65381,65439],[12688,12703],[110592,110847],[110848,110895],[110896,110959]],hangui:[[4352,4607],[43360,43391],[55216,55295],[12592,12687],[65440,65500],[44032,55215]],symbol:[[8192,11263],[11776,11903],[65024,65039],[65280,65519],[65520,65535]],symbolCjk:[[12288,12351],[94176,94207],[65072,65103],[65104,65135],[65040,65055],[12800,13055],[127488,127743],[13056,13311]],arabic:[[1536,1791],[1872,1919],[2208,2303],[64336,65023],[65136,65279]],thai:[[3584,3711]],space:[[9,13],65279,32,160,[8192,8202],8239,8287],asciiTabNewline:[9,10,13],asciiWhitespace:[9,10,12,13,32],breakingSpace:[9,10,13,32,133,5760,8192,8193,8194,8195,8196,8197,8198,8200,8201,8202,8232,8233,8287,12288,8203],surrogate:[[h,p]],joiningTypeLeft:[[43122,43122],[68301,68301],[68311,68311],[68864,68864]],joiningTypeRight:[[1570,1573],[1575,1575],[1577,1577],[1583,1586],[1608,1608],[1649,1651],[1653,1655],[1672,1689],[1728,1728],[1731,1739],[1741,1741],[1743,1743],[1746,1747],[1749,1749],[1774,1775],[1808,1808],[1813,1817],[1822,1822],[1832,1832],[1834,1834],[1836,1836],[1839,1839],[1869,1869],[1881,1883],[1899,1900],[1905,1905],[1907,1908],[1912,1913],[2112,2112],[2118,2119],[2121,2121],[2132,2132],[2151,2151],[2153,2154],[2218,2220],[2222,2222],[2225,2226],[2233,2233],[68293,68293],[68295,68295],[68297,68298],[68302,68306],[68317,68317],[68321,68321],[68324,68324],[68335,68335],[68481,68481],[68483,68485],[68489,68489],[68492,68492],[68494,68495],[68497,68497],[68521,68524],[68898,68898],[69427,69427],[69460,69460]],joiningTypeDual:[[1568,1568],[1574,1574],[1576,1576],[1578,1582],[1587,1599],[1601,1607],[1609,1610],[1646,1647],[1656,1671],[1690,1727],[1729,1730],[1740,1740],[1742,1742],[1744,1745],[1786,1788],[1791,1791],[1810,1812],[1818,1821],[1823,1831],[1833,1833],[1835,1835],[1837,1838],[1870,1880],[1884,1898],[1901,1904],[1906,1906],[1909,1911],[1914,1919],[1994,2026],[2113,2117],[2120,2120],[2122,2131],[2133,2133],[2144,2144],[2146,2149],[2152,2152],[2208,2217],[2223,2224],[2227,2228],[2230,2232],[2234,2237],[6151,6151],[6176,6264],[6279,6312],[6314,6314],[43072,43121],[68288,68292],[68307,68310],[68312,68316],[68318,68320],[68331,68334],[68480,68480],[68482,68482],[68486,68488],[68490,68491],[68493,68493],[68496,68496],[68525,68526],[68865,68897],[68899,68899],[69424,69426],[69428,69444],[69457,69459],[125184,125251]],joiningTypeTransparent:[[173,173],[768,879],[1155,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1552,1562],[1564,1564],[1611,1631],[1648,1648],[1750,1756],[1759,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2045,2045],[2070,2073],[2075,2083],[2085,2087],[2089,2093],[2137,2139],[2259,2273],[2275,2306],[2362,2362],[2364,2364],[2369,2376],[2381,2381],[2385,2391],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2558,2558],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2641,2641],[2672,2673],[2677,2677],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2810,2815],[2817,2817],[2876,2876],[2879,2879],[2881,2884],[2893,2893],[2902,2902],[2914,2915],[2946,2946],[3008,3008],[3021,3021],[3072,3072],[3076,3076],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3170,3171],[3201,3201],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3328,3329],[3387,3388],[3393,3396],[3405,3405],[3426,3427],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3981,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4151],[4153,4154],[4157,4158],[4184,4185],[4190,4192],[4209,4212],[4226,4226],[4229,4230],[4237,4237],[4253,4253],[4957,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6277,6278],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6683,6683],[6742,6742],[6744,6750],[6752,6752],[6754,6754],[6757,6764],[6771,6780],[6783,6783],[6832,6846],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7040,7041],[7074,7077],[7080,7081],[7083,7085],[7142,7142],[7144,7145],[7149,7149],[7151,7153],[7212,7219],[7222,7223],[7376,7378],[7380,7392],[7394,7400],[7405,7405],[7412,7412],[7416,7417],[7616,7673],[7675,7679],[8203,8203],[8206,8207],[8234,8238],[8288,8292],[8298,8303],[8400,8432],[11503,11505],[11647,11647],[11744,11775],[12330,12333],[12441,12442],[42607,42610],[42612,42621],[42654,42655],[42736,42737],[43010,43010],[43014,43014],[43019,43019],[43045,43046],[43204,43205],[43232,43249],[43263,43263],[43302,43309],[43335,43345],[43392,43394],[43443,43443],[43446,43449],[43452,43453],[43493,43493],[43561,43566],[43569,43570],[43573,43574],[43587,43587],[43596,43596],[43644,43644],[43696,43696],[43698,43700],[43703,43704],[43710,43711],[43713,43713],[43756,43757],[43766,43766],[44005,44005],[44008,44008],[44013,44013],[64286,64286],[65024,65039],[65056,65071],[65279,65279],[65529,65531],[66045,66045],[66272,66272],[66422,66426],[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[68325,68326],[68900,68903],[69446,69456],[69633,69633],[69688,69702],[69759,69761],[69811,69814],[69817,69818],[69888,69890],[69927,69931],[69933,69940],[70003,70003],[70016,70017],[70070,70078],[70089,70092],[70191,70193],[70196,70196],[70198,70199],[70206,70206],[70367,70367],[70371,70378],[70400,70401],[70459,70460],[70464,70464],[70502,70508],[70512,70516],[70712,70719],[70722,70724],[70726,70726],[70750,70750],[70835,70840],[70842,70842],[70847,70848],[70850,70851],[71090,71093],[71100,71101],[71103,71104],[71132,71133],[71219,71226],[71229,71229],[71231,71232],[71339,71339],[71341,71341],[71344,71349],[71351,71351],[71453,71455],[71458,71461],[71463,71467],[71727,71735],[71737,71738],[72148,72151],[72154,72155],[72160,72160],[72193,72202],[72243,72248],[72251,72254],[72263,72263],[72273,72278],[72281,72283],[72330,72342],[72344,72345],[72752,72758],[72760,72765],[72767,72767],[72850,72871],[72874,72880],[72882,72883],[72885,72886],[73009,73014],[73018,73018],[73020,73021],[73023,73029],[73031,73031],[73104,73105],[73109,73109],[73111,73111],[73459,73460],[78896,78904],[92912,92916],[92976,92982],[94031,94031],[94095,94098],[113821,113822],[113824,113827],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[121344,121398],[121403,121452],[121461,121461],[121476,121476],[121499,121503],[121505,121519],[122880,122886],[122888,122904],[122907,122913],[122915,122916],[122918,122922],[123184,123190],[123628,123631],[125136,125142],[125252,125259],[917505,917505],[917536,917631],[917760,917999]],joiningTypeCausing:[[1600,1600],[2042,2042],[6154,6154],[8205,8205]]});function B(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];return 1===t.length?L[t[0]]:E(t.reduce((e,t)=>(e.push(...L[t]),e),[]))}function F(e,t){return D(B(t),e)}function V(e,t){return O(B(t),e)}function z(e,t){return M(B(t),e)}function H(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];return P(B(...t))}let W={space:B("space"),symbol:E([[0,25],[33,38],[40,44],[46,47],[58,64],[91,96],[123,127],171,187,[8220,8223]]),single:B("cjk","kana","symbolCjk"),surrogate:B("surrogate")},Y=Object.keys(W);function U(e){return Y.find(t=>D(W[t],e))||"word"}let G=B("joiningTypeLeft","joiningTypeDual"),Z=B("joiningTypeRight","joiningTypeDual"),j=B("joiningTypeTransparent"),q=B("joiningTypeCausing");function K(e,t,i){for(let{value:n}of w(e,{from:t}))if(D(Z,n))return i?n:void 0;else if(D(q,n))i=!0;else if(!D(j,n))break}function X(e,t,i){for(let{value:n}of w(e,{to:t,reversed:!0}))if(D(G,n))return i?n:void 0;else if(D(q,n))i=!0;else if(!D(j,n))break}function Q(e,t){for(let{value:i}of w(e,{from:t}))if(D(Z,i)||D(q,i))return i;else if(!D(j,i))break}function $(e,t){for(let{value:i}of w(e,{to:t,reversed:!0}))if(D(G,i)||D(q,i))return i;else if(!D(j,i))break}let J=[[1470,1470],[1472,1472],[1475,1475],[1478,1478],[1488,1514],[1519,1524],[1544,1544],[1547,1547],[1549,1549],[1563,1564],[1566,1610],[1645,1647],[1649,1749],[1765,1766],[1774,1775],[1786,1805],[1807,1808],[1810,1839],[1869,1957],[1969,1969],[1984,2026],[2036,2037],[2042,2042],[2046,2069],[2074,2074],[2084,2084],[2088,2088],[2096,2110],[2112,2136],[2142,2142],[2144,2154],[2208,2228],[2230,2237],[8207,8207],[64285,64285],[64287,64296],[64298,64310],[64312,64316],[64318,64318],[64320,64321],[64323,64324],[64326,64449],[64467,64829],[64848,64911],[64914,64967],[65008,65020],[65136,65140],[65142,65276],[67584,67589],[67592,67592],[67594,67637],[67639,67640],[67644,67644],[67647,67669],[67671,67742],[67751,67759],[67808,67826],[67828,67829],[67835,67867],[67872,67897],[67903,67903],[67968,68023],[68028,68047],[68050,68096],[68112,68115],[68117,68119],[68121,68149],[68160,68168],[68176,68184],[68192,68255],[68288,68324],[68331,68342],[68352,68405],[68416,68437],[68440,68466],[68472,68497],[68505,68508],[68521,68527],[68608,68680],[68736,68786],[68800,68850],[68858,68899],[69376,69415],[69424,69445],[69457,69465],[69600,69622],[124928,125124],[125127,125135],[125184,125251],[125259,125259],[125264,125273],[125278,125279],[126065,126132],[126209,126269],[126464,126467],[126469,126495],[126497,126498],[126500,126500],[126503,126503],[126505,126514],[126516,126519],[126521,126521],[126523,126523],[126530,126530],[126535,126535],[126537,126537],[126539,126539],[126541,126543],[126545,126546],[126548,126548],[126551,126551],[126553,126553],[126555,126555],[126557,126557],[126559,126559],[126561,126562],[126564,126564],[126567,126570],[126572,126578],[126580,126583],[126585,126588],[126590,126590],[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651]];function ee(e){return D(J,e)}function et(e,t){void 0===t&&(t="");let i=!0;for(let{value:t}of w(e))if(r(t)||f(t)){i=!1;break}return i?e:Array.from(w(e),e=>{let{value:i}=e;return r(i)||f(i)?t:String.fromCodePoint(i)}).join("")}},24718:function(e,t,i){"use strict";i.d(t,{F:()=>r});var n=i(91229),o=i(82164);class r{constructor({speed:e=.5,deltaLimit:t=20,resetTime:i=3e3,levelDependent:o=!0}={}){this.accumulated=0,this.speed=e,this.deltaLimit=t,this.levelDependent=o,this.setTimerToReset=(0,n.Z)(this.resetAccumulated,i)}resetAccumulated(){this.accumulated=0}accumulate(e){return this.accumulated+=isNaN(e)?0:e,this.accumulated}add(e,t){let i=this.accumulate((0,o.Z)(e,-this.deltaLimit,this.deltaLimit)),n=this.levelDependent&&(t??100)<80?.5:1,r=this.speed*n,a=Math.round(i*r);return 0!==a&&this.accumulate(-a/r),this.setTimerToReset(),a}}},70171:function(e,t,i){"use strict";i.d(t,{Ax:()=>d,$$:()=>a,VA:()=>r,eI:()=>r,Eg:()=>c,DQ:()=>s,Ke:()=>l,c4:()=>n,Dm:()=>a,vj:()=>o});var n={};i.r(n),i.d(n,{ensure:()=>p,read:()=>h,write:()=>u});var o={};i.r(o),i.d(o,{isGlobal:()=>g});var r={};i.r(r),i.d(r,{convert:()=>E,convertCSSLength:()=>O,convertCSSLengthValue:()=>k,convertValue:()=>k,ensure:()=>T,getCSSLengthUnit:()=>_,getUnit:()=>_,isCSSRelativeUnit:()=>x,isUnitAbsolute:()=>S,isUnitRelative:()=>x,read:()=>A,readCSSLengthValue:()=>D,roundCSSLengthValue:()=>R,write:()=>I});var a={};i.r(a),i.d(a,{read:()=>L,transparentColor:()=>P});var s={};i.r(s),i.d(s,{ensureBorder:()=>U,ensureStroke:()=>j,readBorder:()=>Y,readStroke:()=>Z,writeBorder:()=>W,writeStroke:()=>G});var l={};i.r(l),i.d(l,{isSymbol:()=>$,parse:()=>K,parseFirst:()=>X,read:()=>q});var c={};i.r(c),i.d(c,{read:()=>ee});var d={};function u(e,t,i){return e&&t[e]||i}function h(e,t,i){return e?t[e]||i:null}function p(e,t,i){return h(e,t,i)||i}i.r(d),i.d(d,{parseNewLine:()=>et,parseTabSpace:()=>ei});let f=["inherit","initial","unset","revert","revert-layer"];function g(e){return f.includes(e.toLowerCase())}var m=i(81011),v=i(4494);let b=function(){let e=Object.create(null);return e.px=.75,e.cm=72/2.54,e.mm=.1*e.cm,e.q=.025*e.cm,e.in=72,e.pc=12,e.pt=1,e}(),y=function(){let e=Object.create(null),t=1/b.px;return m.U(b,function(i,n){e[n]=i*t}),e.px=1,e}(),w=function(){let e=Object.create(null);return m.U(y,function(t,i){e[i]=1/t}),e.px=1,e}();function _(e){return"string"!=typeof e?"":e.trim().match(/[a-zA-Z%]*$/)[0].toLowerCase()}function x(e){return!e||"%"===e}function S(e){return!x(e)}function C(e,t,i){return"%"!==t||i?t||"%"!==i?e:100*e:.01*e}function k(e,t,i,n){var o,r;if(t&&(t=t.toLowerCase()),i&&(i=i.toLowerCase()),t===i)return e;let a=x(t),s=x(i);if(a&&s)return C(e,t,i);if(a)return null==n?NaN:C(e*n,t,"");if(s)return null==n?NaN:C(e/n,"",i);return o=t,r=i,0===e?0:e*y[o]*w[r]}function I(e,t,i,n){return k(e,t,i,n)+(i||"")}function A(e,t,i){let n=parseFloat(e);return isNaN(n)||(n=k(n,_(e),t,i)),n}function T(e,t,i){return A(e,t,i)||0}function E(e,t,i){let n=A(e,t,i);return isNaN(n)?"":String(n)+(t||"")}function R(e){return v.N(e,2)}function D(e,t,i,n){let o=parseFloat(e);return isNaN(o)||isNaN(o=k(o,_(e),t,i))?null:n?R(o):o}function O(e,t,i,n){let o=D(e,t,i,!n);return null!=o?String(o)+(t||""):null}var M=i(74654),N=i.n(M);let P="transparent";function L(e,t){if(!e)return null;if(e===P)return t?.disableTransparent?null:P;if((3===e.length||6===e.length||8===e.length)&&/^[0-9a-fA-F]+$/.test(e)&&(e="#"+e),t?.simple){var i;return(7===(i=e).length||9===i.length)&&/^#[0-9a-fA-F]+$/.test(i)?"hexa"===(t?.format??"hex")?e.padEnd(9,"f").toLowerCase():"00"===e.slice(7,9)?t?.disableTransparent?null:P:e.slice(0,7).toLowerCase():null}try{let i=new(N())(e),n=t?.format??"hex";if("hexa"===n)return(i.hex()+Math.round(255*i.alpha()).toString(16).padStart(2,"0")).toLowerCase();if(0===i.alpha())return t?.disableTransparent?null:P;return i.hex().toLowerCase()}catch{return null}}var B=i(35557);let F=Object.assign(Object.create(null),{none:"none",solid:"solid",dotted:"dotted",dashed:"dashed"}),V=B.U(F),z=Object.assign(Object.create(null),{none:"none",solid:"none",dotted:"2,2",dashed:"6,6"}),H=Object.assign(B.U(z),{none:"solid"});function W(e){return u(e,F,"solid")}function Y(e){return h(e,V,"solid")}function U(e){return Y(e)||"solid"}function G(e){return u(e,z,"none")}function Z(e){return h(e,H,"solid")}function j(e){return Z(e)||"solid"}function q(e){return(e=e.trim().replaceAll('"',"")).startsWith("'")&&e.endsWith("'")&&(e=e.slice(1,-1)),e}function K(e,t){return e.split(",",t).map(q).filter(e=>e)}function X(e){return K(e,1)[0]??""}let Q=["Apple Symbols","Bookshelf Symbol 7","Marlett","Symbol","Webdings","Wingdings","Wingdings 2","Wingdings 3"].map(e=>e.toLowerCase());function $(e){return e=e.toLowerCase(),!!(Q.includes(e)||/dingbats|symbol/i.test(e))}var J=i(82164);function ee(e){return"number"!=typeof e||isNaN(e)?null:(0,J.Z)(e,0,1)}function et(e,t){switch(void 0===t&&(t=!1),e){case"pre":case"pre-wrap":case"pre-line":case"break-spaces":return!0;case"normal":case"nowrap":case"initial":return!1;default:return t}}function ei(e,t){switch(void 0===t&&(t=!1),e){case"pre":case"pre-wrap":case"break-spaces":return!0;case"normal":case"nowrap":case"pre-line":case"initial":return!1;default:return t}}},14014:function(e,t,i){"use strict";let n;i.d(t,{Z:()=>x});var o=i(56925);let r=new Map;class a{constructor(e,t){this.requester=e,this.onComplete=t?.onComplete,this.requestResults=[]}reset(){this.requestResults=[]}doRequest(e){return(n??(n=new o.TaskQueue({concurrency:6}))).enqueue(this.requester.bind(null,e))}request(e){let t,{files:i}=e;if(1===i.length&&"url"===i[0].type){let n=i[0].source,o=r.get(n);o?t=o:(t=this.doRequest(e),r.set(n,t),t.catch(()=>r.delete(n)))}else t=this.doRequest(e);return this.requestResults.push(t),t}async create(e,t){if("raw"===e){if("string"==typeof t)throw Error(`The source should be a Blob. source: ${t}`);return this.request({files:[{type:e,source:"file"}],raw:{file:t}})}if("string"!=typeof t)throw Error("The source should be a string");return this.request({files:[{type:e,source:t}]})}async stat(){let e=await Promise.allSettled(this.requestResults),t=0,i=0;for(let n of e)if("fulfilled"===n.status){let{files:e,errors:o}=n.value;e&&(t+=e.length),o&&(i+=o.length)}else++i;return{total:t+i,success:t,failed:i}}async complete(){let e=this.stat();this.reset();let t=await e;this.onComplete?.(t)}static isIdle(){return!n||0===n.getTotalCount()}}var s=i(4077),l=i(45407),c=i(71783),d=i(17370),u=i(89087),h=i(32334),p=i(61431);i(32867),i(3713),i(85213);var f=i(30947),g=i.n(f),m=i(74590),v=i(61367);class b{constructor({owner:e}){this.owner=e}show(){let e=this.owner.findAppWindow();this.dlg=(0,u.QX)(SYNO.SDS.Drive.Vue.DialogRename,{title:SYNO.SDS.Office._T("template","create"),mode:"add",selectAllText:!0,label:SYNO.SDS.Office._T("template","name")+_T("common","colon"),placeholder:SYNO.SDS.Office._T("template","empty_name"),initName:SYNO.SDS.Office.Utils.parseDisplayName(SYNO.SDS.Office.Env.title),validator:this.nameValidator.bind(this),cb:t=>{this.dlg.window.setStatusBusy(void 0,_T("common","msg_waiting")),e.getAction().getThumbPromise().then(i=>{let n={title:t,encrypt:SYNO.SDS.Office.Env.isEncrypt,path:SYNO.SDS.Drive.Utils.getPathIdByLink(SYNO.SDS.Office.Env.link_id),file:{source:"raw",name:"thumb."+(i?i.ext:"png")},raw:i?i.blob:new Blob([])};i&&i.size&&(n.size=i.size),e.getWebAPI().saveTemplate({params:n,callback:(e,t)=>{if(this.dlg.window.clearStatus(),e){this.dlg.component.close(),SYNO.SDS.Office.URL.redirectLink(t.link_id);return}this.dlg.component.showMsgBox("alert","",(0,c.v2)(t))}})})}})}nameValidator(e,t,i){let n=t.trim();if(0===n.length)return i(Error(_JSLIBSTR("extlang","fieldblank")));let o="";switch(SYNO.SDS.Session.standaloneAppName){case"SYNO.SDS.Office.Sheet.Application":o=SYNO.SDS.Office.File.SHEET_EXTENSION;break;case"SYNO.SDS.Office.Doc.Application":o=SYNO.SDS.Office.File.DOC_EXTENSION;break;case"SYNO.SDS.Office.Presentation.Application":o=SYNO.SDS.Office.File.SLIDE_EXTENSION}return n.length>0&&unescape(encodeURIComponent(n)).length>=this.dlg.component.maxNameLength-o.length-1?i(Error(SYNO.SDS.Office._T("template","name_too_long"))):SYNO.SDS.Drive.Utils.checkFileName(n)?i():i(Error(SYNO.SDS.Office._T("template","reserved_name")))}}class y{constructor({owner:e,ntype:t,object_id:i,initName:n}){this.owner=e,this.ntype=t,this.object_id=i,this.initName=n}show(){let e="";switch(this.ntype){case"doc":e=SYNO.SDS.Office.File.DOC_EXTENSION;break;case"sheet":e=SYNO.SDS.Office.File.SHEET_EXTENSION;break;case"presentation":e=SYNO.SDS.Office.File.SLIDE_EXTENSION}this.ext=e,this.dlg=(0,u.QX)(SYNO.SDS.Drive.Vue.DialogRename,{selectAllText:!0,initName:this.initName,validator:this.nameValidator.bind(this),cb:e=>{this.dlg.window.setStatusBusy(void 0,_T("common","msg_waiting")),SYNO.SDS.Office.GetWebAPI().renameTemplate({params:{object_id:this.object_id,title:e},scope:this,callback:SYNO.SDS.Office.GetAction().onCreateCallBack("renametemplatedone",(e,t)=>{if(this.dlg.window.clearStatus(),e)return void this.dlg.component.close();this.dlg.component.showMsgBox("alert","",(0,c.v2)(t))},this,!1,this.owner)})}},{ownerWindow:this.owner})}nameValidator(e,t,i){let n=t.trim();return 0===n.length?i(Error(_JSLIBSTR("extlang","fieldblank"))):n.length>0&&unescape(encodeURIComponent(n)).length>=this.dlg.component.maxNameLength-this.ext.length-1?i(Error(SYNO.SDS.Office._T("template","name_too_long"))):SYNO.SDS.Drive.Utils.checkFileName(n)?i():i(Error(SYNO.SDS.Office._T("template","reserved_name")))}}let w=SYNO.SDS.Drive.Action;var _=i.n(w);Ext.ns("SYNO.SDS.Office"),Ext.ns("SYNO.SDS.Drive.Define.Info");let x=Ext.define("SYNO.SDS.Office.Action",{extend:_(),constructor:function(e){e.webapi&&(this.webapi=e.webapi),_().prototype.constructor.call(this,e),this.overrideDriveMgrAction()},overrideDriveMgrAction:function(){if(!SYNO.SDS.Office.Utils.isDrivePage())return;let e=this;SYNO.SDS.Drive.Mgr.Action.prototype.copyNode=function(t,i){if(SYNO.SDS.Drive.Mgr.FileClipboard.isEmpty())return void _().prototype.copyNode.apply(this,arguments);let n=SYNO.SDS.Drive.Mgr.FileClipboard.get();if(e.isContainNonOffice(n.recs))return void _().prototype.copyNode.apply(this,arguments);let o=(function(n,o,r){if(!n)return void this.findAppWindow().getMsgBox().alert("",(0,c.v2)(o));e.showMvcpToastMsg("copy",i,t.to_parent_folder_name,o.file_id,o.link_id,o.title)}).bind(e);e.getWebAPI().copyOfficeNode({params:t,scope:e,callback:e.onCreateBackgroundCallBack("copynodedone",o,e,n.recs)})}},findAppWindow:function(){return SYNO.SDS.Office.GetWindow()},getWebAPI:function(){return this.webapi||(this.findAppWindow().getWebAPI?this.webapi=this.findAppWindow().getWebAPI():this.webapi=new SYNO.SDS.Office.WebAPI({appWindow:this.findAppWindow()})),this.webapi},getTargets:function(){if(SYNO.SDS.Office.Utils.isDrivePage())return SYNO.SDS.Office.Action.superclass.getTargets.call(this);var e=SYNO.SDS.Office.Env;return[new Ext.data.Record({file_id:e.file_id,name:e.title,removed:e.recycle,display_path:e.display_path,parent_id:e.parent_id,encrypted:e.encrypted,permanent_link:e.link_id})]},getSelectionsAndLocation:function(){let e,t=SYNO.SDS.Office.GetAction().getTargets(),i=t[0];if(!i.get("removed")){let t=SYNO.SDS.Office.Utils.getParentDir(i.get("display_path"));if(t){let n=SYNO.SDS.Office.File.getBaseName(SYNO.SDS.Drive.Utils.parseDisplayPath(t));n&&(e={fileId:i.get("parent_id"),displayName:n})}}return{selections:t,locationInfo:e}},initEnv:function(){if(this._initToken(),this.loadOfficeConstants(),!SYNO.SDS.Drive.Utils.isAppAuthorized()){SYNO.SDS.Session.uid=SYNO.SDS.Drive.Define.AnonymousUID;return}var e=this.findAppWindow();if(this.getWebAPI().initial({callback:function(t,i){var n=function(){var n,o;if(t){n=SYNO.API.Response.GetValByAPI(i,"SYNO.Office.Info","get"),Object.assign(SYNO.SDS.Office.Define.Info,n),Ext.copyTo(SYNO.SDS.Session,n,["uid","gids"]),SYNO.SDS.Office.Define.Info.ready=!0;var r=n.version;e.appInstance.jsConfig.version=r.major+"."+r.minor+"."+r.hotfix+"-"+r.build,e.getEventMgr().fireEvent("envready",this)}else o=(0,c.v2)(SYNO.API.Response.GetFirstError(i));if(o)return void SYNO.SDS.Office.Utils.registerInitEvent(()=>{e.getEl().mask(o,"syno-ux-mask-info")})};e.rendered?n.call(e):e.mon(e,"afterlayout",n,this,{single:!0,buffer:80})},scope:e}),SYNO.SDS.Drive.Utils.isAppAuthorized()){var t=this;e.sendWebAPI({compound:{stopwhenerror:!1,params:[SYNO.SDS.Drive.WebAPIDesc.get_setting,SYNO.SDS.Drive.WebAPIDesc.info,SYNO.SDS.Drive.WebAPIDesc.get_user_setting]},callback:function(i,n){if(i&&!n.has_fail){var o,r;r=SYNO.SDS.Drive.WebAPIDesc.info,o=SYNO.API.Response.GetValByAPI(n,r.api,r.method),t.initInfoData(o),r=SYNO.SDS.Drive.WebAPIDesc.get_setting,o=SYNO.API.Response.GetValByAPI(n,r.api,r.method),t.initSettingData(o),r=SYNO.SDS.Drive.WebAPIDesc.get_user_setting,(o=SYNO.API.Response.GetValByAPI(n,r.api,r.method)).displayname_result&&(SYNO.SDS.Drive.Define.Info.displayname_result=o.displayname_result),e.getEventMgr().fireEvent("settingready",this)}},scope:e},this,1),SYNO.SDS.Office.UserSettings.init()}(0,s.$)(),(0,l.z4)(),this.initWebAPI()},initWebAPI:function(){(_F("SYNO_PRODUCT_SOFS")||_F("SYNO_PRODUCT_FSDN"))&&g().hooks.beforeRequest.use(e=>{!(!e||e.api&&e.api.startsWith("SYNO.Office."))&&"GET"===e.requestMethod&&e.params?.path&&(e.url="oo/proxy/webapi/entry.cgi/"+e.api)})},getMyDrivePath:function(){return SYNO.SDS.Drive.Define.Info.is_home?this.prepareParam({file_id:SYNO.SDS.Drive.Define.Info.drive_id}).path:void 0},getParentPath:function(){let e=SYNO.SDS.Office.Env;return e.parent_id&&SYNO.SDS.Drive.Utils.isVisibleInDrive(e.display_path)&&!SYNO.SDS.Drive.Utils.is1stSharedWithMe(e.display_path)?this.prepareParam({file_id:e.parent_id}).path:this.getMyDrivePath()},loadOfficeConstants:function(){return this._loadOfficeConstantsPromise??=g().request({api:"SYNO.Office.Info.Constants",version:1,method:"get"}).catch(e=>(console.error("Failed to get Office constants:",e),{sheet_max_cell_count:2e6,sheet_pivot_table_enabled:!1})).then(e=>{Object.assign(SYNO.SDS.Office.Define.Info,e)}),this._loadOfficeConstantsPromise},getEnvPromise:function(){var e;return this.env_promise?this.env_promise:(e=!SYNO.SDS.Drive.Utils.isAppAuthorized()||SYNO.SDS.Office.Define.Info.ready?Promise.resolve():new Promise(function(e,t){var i=SYNO.SDS.Office.GetWindow();i.mon(i.getEventMgr(),"envready",function(){e()},{single:!0})}),this.env_promise=e)},_initToken:function(){SYNO.SDS.Office.Env.isUseToken()&&SYNO.API.Request({api:"SYNO.API.Auth.Key",version:7,method:"grant",params:{allow_api:"SYNO.Office.Node.Attachment",allow_methods:["get"]},scope:this,callback:function(e,t){e&&SYNO.SDS.Office.Env.setToken(t.tid)}})},getSettingPromise:function(){return!SYNO.SDS.Drive.Utils.isAppAuthorized()||SYNO.SDS.Drive.Define.Info.settingready?Promise.resolve():this.setting_promise?this.setting_promise:this.setting_promise=new Promise(function(e,t){var i=SYNO.SDS.Office.GetWindow();i.mon(i.getEventMgr(),"settingready",function(){e()},{single:!0})})},getPersonSetting:function(){return this.getWebAPI().getPersonSetting({params:{object_id:SYNO.SDS.Office.Env.objectId}})},setPersonSetting:function(e){return this.getWebAPI().setPersonSetting({params:Ext.apply({object_id:SYNO.SDS.Office.Env.objectId},e)})},onCreateCallBack:function(e,t,i,n,o){return o=o||this.findAppWindow(),!1!==n&&o.setStatusBusy(),function(r,a,s,l,c){!1!==n&&o.clearStatusBusy(),Ext.isFunction(t)&&t.call(i||window,r,a||{},s,l,c),(r||!1===n)&&o.getEventMgr().fireEvent(e,r,a,s||{},l,e,c)}},onCreateBackgroundCallBack:function(e,t,i,n,o,r){return r=r||this.findAppWindow(),!1!==o&&r.setStatusBusy(),function(a,s,l,c,d){!1!==o&&r.clearStatusBusy(),Ext.isFunction(t)&&t.call(i||window,a,s||{},l,c,d),(a||!1===o)&&r.getEventMgr().fireEvent(e,a,s,l||{},n)}},createNode:function(e,t,i,n){return"dir"===e.ntype?void _().prototype.createNode.call(this,e,t,i):SYNO.SDS.Office.Utils.isDrivePage()?void(e=Ext.apply({path:SYNO.SDS.Office.Utils.isDrivePage()?SYNO.SDS.Drive.Utils.getPathId(this.findAppWindow().getNavigation().getLastPathId()):"/mydrive"},e||{}),this.createOfficeNode(e,t,i,n)):void this.popupSelDirDlg(function(o,r){this.createOfficeNode(Ext.apply({path:SYNO.SDS.Drive.Utils.getPathId(r)},e||{}),t,i,n),o.component.close()},this,{owner:n||this.findAppWindow(),path:this.getParentPath()})},createOfficeNode:function(e,t,i,n){if(e.password&&SYNO.SDS.Office.LocalStorage.useCookie())return void this.createOfficeNodeFirst(e,t,i);t&&(n&&n.setStatusBusy(),Ext.createSequence(function(){n&&n.clearStatusBusy()},t,i).defer(1e3));var o={fn:"requestCreateNode",params:e,session_data:{ntype:e.ntype}};SYNO.SDS.Office.LocalStorage.WindowLaunch({url:SYNO.SDS.Office.URL.getOfficeURL(),data:o})},createOfficeNodeFirst:function(e,t,i){var n=SYNO.SDS.Office.WindowHelper.WindowOpen({url:SYNO.SDS.Office.URL.getOfficeURL(),hash:{action:"creating",ntype:e.ntype}});this.getWebAPI().createOfficeNode({params:e,scope:this,callback:this.onCreateCallBack("createnodedone",Ext.createSequence(t||Ext.emptyFn,(function(e,o,r){this.handleNewNodeCallBack(e,o,r,function(){this.createOfficeNodeFirst(r,t,i)},this)&&(e?SYNO.SDS.Office.Utils.callOnEditorReady(n,(function(e){n.closed||this.handleOfficeNodeReady(o,void 0,r.password,e)}).bind(this)):(t||SYNO.SDS.Office.GetWindow().getMsgBox().alert("",(0,c.v2)(o)),(0,d.on)(n)))}).bind(this),i||window),i||window)})},requestCreateNode:function(e,t){this.beforeRequestNewNode(),this.getWebAPI().createOfficeNode({params:e,scope:this,callback:function(i,n){this.requestNewNodeCallBack(i,n,e,t,void 0,function(){this.requestCreateNode(e,t)},this)}})},rejectUnload:function(){return!1},beforeRequestNewNode:function(){SYNO.SDS.StatusNotifier.on("beforeunload",this.rejectUnload,window)},afterRequestNewNode:function(){SYNO.SDS.StatusNotifier.un("beforeunload",this.rejectUnload,window)},handleNewNodeCallBack:function(e,t,i,n,o,r){if(e||!n)return this.closeImportPassDlg(),!0;var a=(0,c.zg)(t);if(57392===a){function s(){setTimeout(()=>{t?.component.showMsgBox("alert","",(0,c.v2)(57392),()=>{setTimeout(()=>{t.component.$refs.input?.$refs?.input?.focus()},0)},!1)})}let e=(0,u.Ne)(SYNO.SDS.Drive.Vue.DialogCreate),t=(0,u.QX)(SYNO.SDS.Drive.Vue.DialogCreate,{onShow:e?void 0:s,cb:e=>{i.title=e,n.call(o,i),t?.component.close()}},{ownerWindow:r});return t&&e&&t.window.$on("show",s),!1}return 57373===a&&Ext.isArray(i.files)&&1===i.files.length?(this.requestImportPassDlg?(this.requestImportPassDlg.clearStatusBusy(),this.requestImportPassDlg.setStatusError({text:SYNO.SDS.Office._T("common","err_pass")})):this.requestImportPassDlg=new SYNO.SDS.Office.GenPasswordWindow({closable:!1,owner:r||SYNO.SDS.Office.GetWindow(),listeners:{scope:this,apply:function(e,t){i.files[0].password=t,this.requestImportPassDlg.setStatusBusy({text:SYNO.SDS.Office._T("common","importing")}),n.call(o,i)},close:function(){(0,d.on)()}}}).show(),!1):(this.closeImportPassDlg(),!0)},closeImportPassDlg:function(){this.requestImportPassDlg&&(this.requestImportPassDlg.purgeListeners(),this.requestImportPassDlg.close(),this.requestImportPassDlg=null)},requestNewNodeCallBack:function(e,t,i,n,o,r,a,s){if(this.afterRequestNewNode(),!this.handleNewNodeCallBack(e,t,i,r,a,s))return void SYNO.SDS.Office.Utils.removeLoadingPage();e?(t.file_id&&SYNO.SDS.Office.LocalStorage.fireEvent("createnodedone",t),this.handleOfficeNodeReady(t,o,i.password)):SYNO.SDS.Office.Utils.isOfficePage()&&SYNO.SDS.Office.GetWindow().onInitError?SYNO.SDS.Office.GetWindow().onInitError(t):(s||SYNO.SDS.Office.GetWindow()).getMsgBox({preventDelay:!0}).alert("",(0,c.v2)(t),function(){(0,d.on)()})},handleOfficeNodeReady:function(e,t,i,n){n=n||SYNO.SDS.Office.GetWindow(),e.encrypt&&SYNO.SDS.Office.Utils.setEncryptPassword(e.object_id,i||SYNO.SDS.Office.Env.localPass,n),n.initApp({object_id:e.object_id,encrypt:e.encrypt}),t&&t.session_data&&SYNO.SDS.Office.Env.setSessionItem("session_data",t.session_data)},renameNode:function(){if(SYNO.SDS.Office.Env.is_template)return void this.renameTemplate();_().prototype.renameNode.call(this,{name:this.findAppWindow().getTitle()})},setNodeTitle:function(e,t,i){_().prototype.setNodeTitle.call(this,Ext.apply(e,{permanent_link:SYNO.SDS.Office.Env.link_id,name:e.name}),Ext.createSequence(t||Ext.emptyFn,function(e,t,i){e&&SYNO.SDS.Office.LocalStorage.fireEvent("setnodetitledone",t,i)}),i)},doCreateNodeAttachment:function(e){return e=e.object_id||e.link_id?e:{object_id:SYNO.SDS.Office.Env.objectId,...e},new Promise((t,i)=>{this.findAppWindow().getWebAPI().createNodeAttachment({params:e,callback:function(e,n){return e?t(n):i(n)}})})},createAttachmentCreator:function(){return new a(this.doCreateNodeAttachment.bind(this),{onComplete:e=>{e.failed&&SYNO.SDS.Drive.Utils.showToastMsg(this.findAppWindow(),String.format((0,h.$)("task",1===e.failed?"create_single_attachment_done_toast":"create_attachments_done_toast"),e.failed),5e3,!0)}})},runAttachmentCreator:async function(e){let t=this.createAttachmentCreator(),i=e(t);return t.complete(),i},createAttachment:function(e,t){return this.runAttachmentCreator(i=>i.create(e,t))},isCreatingAttachments:function(){return!a.isIdle()},getOfficeNodeCb:function(e,t){return this.onCreateCallBack("getnodedone",Ext.createSequence(function(e,t){e&&(SYNO.SDS.Office.Env.set(t),SYNO.SDS.Office.GetWindow().getEventMgr().fireEvent("permchange"))},e||Ext.emptyFn),t||window,!1)},getOfficeNodeFirstTime:function(e,t,i){var n={};SYNO.SDS.Office.Env.isOfficeOwned||(n={basic:!0});var o=window.EarlyInit;if(o&&o.getNodePromise()){var r=this.getOfficeNodeCb(t,i);o.getNodePromise().then(function(e){r(!0,e)}).catch(function(e){r(!1,e)})}else this.getOfficeNode(Ext.apply(n,e||{}),t,i)},getOfficeNode:function(e,t,i){this.getWebAPI().getOfficeNode({params:e,scope:i,callback:this.getOfficeNodeCb(t,i)})},updateOfficeNode:function(e,t){SYNO.SDS.Office.Utils.isDrivePage()||this.getOfficeNode({basic:!0,object_id:SYNO.SDS.Office.Env.objectId},e,t)},moveNodeTo:function(){_().prototype.moveNodeTo.call(this,{path:SYNO.SDS.Drive.Utils.getPathIdByLink(SYNO.SDS.Office.Env.link_id)},function(e,t){if(!e)return void this.findAppWindow().getMsgBox().alert("",(0,c.v2)(t))},this)},setDriveAction:function(e){this.drive_action=e},callDriveAction:function(e){this.drive_action?this.drive_action[e]():SYNO.SDS.Drive.GetWindow().getAction()[e]()},isContainNonOffice:function(e){return(e||this.getTargets()).some(function(e){if("dir"===e.get("type"))return!0;var t=SYNO.SDS.Office.File.getExt(e.get("name"));return!SYNO.SDS.Office.File.isOffice(t)})},copyNodeTo:function(){if(SYNO.SDS.Office.Utils.isDrivePage()&&this.isContainNonOffice())return void this.callDriveAction("copyNodeTo");var e=new SYNO.SDS.Office.CopyTo.Dialog({initName:"",blDir:!1,owner:this.findAppWindow(),listeners:{scope:this,apply:function(e,t,i,n){this.copyOfficeNodeTo(e,i,n,function(){e.onApplyCb.apply(e,arguments)})}}});let{selections:t,locationInfo:i}=this.getSelectionsAndLocation();e.setLocationInfo(i?.fileId,i?.displayName),e.setSelections(t),e.show()},copyOfficeNodeTo:function(e,t,i,n){var o,r=(function(o,r,a){if(e.clearStatusBusy(),!o)return void(SYNO.SDS.Office.Utils.isDrivePage()||57373!==(0,c.zg)(r)?e.getMsgBox().alert("",(0,c.v2)(r)):new SYNO.SDS.Office.PasswordWindow({path:a.files[0],owner:e,listeners:{scope:this,success:function(o,r){o.close(),this.copyOfficeNodeTo(e,Ext.apply(t,{password:r}),i,n)}}}).show());this.showMvcpToastMsg("copy",i,e.getLocationName(),r.file_id,r.link_id,r.title),SYNO.SDS.Office.Utils.isDrivePage()||SYNO.SDS.Office.LocalStorage.fireEvent("copynodedone",r,t),n&&n.apply(this,arguments)}).bind(this);if(SYNO.SDS.Office.Utils.isDrivePage()){var a=this.findAppWindow().GetOneSeleted();o=this.onCreateBackgroundCallBack("copynodedone",r,this,[a])}else o=this.onCreateCallBack("copynodedone",r,this);this.getWebAPI().copyOfficeNode({params:t,scope:this,callback:o})},requestCopyNode:function(e,t){if(SYNO.SDS.Office.Utils.isDrivePage())return;let i=this.getWebAPI().getGlobalPassword();i&&(e.password=i);let n={fn:"requestCopyNode",params:e,session_data:{ntype:SYNO.SDS.Office.Env.ntype,...t}};SYNO.SDS.Office.LocalStorage.WindowLaunch({url:SYNO.SDS.Office.URL.getOfficeURL(),data:n})},copyNode:function(e,t,i){this.mvcpNode("copy",e,t,i)},moveNode:function(e,t,i){this.mvcpNode("move",e,t,i)},mvcpNode:function(e,t,i,n){if(t.files=[SYNO.SDS.Drive.Utils.getPathId(SYNO.SDS.Office.Env.file_id)],SYNO.SDS.Office.Utils.isSameParent(SYNO.SDS.Office.Env.parent_id,SYNO.SDS.Office.Utils.getParentDir(SYNO.SDS.Office.Env.display_path),t.to_parent_folder))if("move"===e)return void SYNO.SDS.Office.Utils.showAlertMsg(n||this.findAppWindow(),SYNO.SDS.Drive._T("error","parent_path_conflict"));else t.conflict_action="autorename";n&&n.close(),_().prototype.mvcpNode.call(this,e,t,SYNO.SDS.Office.Env.title)},postMvcpNode:function(e,t,i){var n=this.startBkTask.createDelegate(this,[function(n,o){if(n){var r=o.result.params;SYNO.SDS.Office.LocalStorage.fireEvent(e+"nodedone",o,t),"move"===e?this.updateOfficeNode((function(){this.showMvcpToastMsg(e,i,r.to_parent_folder_name,SYNO.SDS.Office.Env.file_id)}).bind(this)):this.showMvcpToastMsg(e,i,r.to_parent_folder_name,SYNO.SDS.Drive.Utils.getFileIdFromPathId(r.to_parent_folder))}},this],!0);"move"===e?this.findAppWindow().getWebAPI().moveNode({params:t,scope:this,callback:this.onCreateCallBack("movenodedone",n,this)}):this.findAppWindow().getWebAPI().copyNode({params:t,scope:this,callback:this.onCreateCallBack("copynodedone",n,this)})},getMvcpToastText:function(e,t,i,n,o){var r,a=String.format('<span id="{0}" class="action-text" role="button" tabIndex="0">',Ext.util.Format.htmlEncode(t)),s="</span>",l=Ext.isArray(i)?i[0]:i;return SYNO.SDS.Office.Utils.isDrivePage()||"copy"!==e?Ext.isArray(i)&&i.length>1?(r=String.format("task_{0}_multi_success_toast",e),String.format(SYNO.SDS.Drive._T("task",r),i.length,Ext.util.Format.htmlEncode(n),a,s)):(r=String.format("task_{0}_success_toast",e),String.format(SYNO.SDS.Drive._T("task",r),Ext.util.Format.htmlEncode(SYNO.SDS.Drive.Utils.parseDisplayName(l)),Ext.util.Format.htmlEncode(n),a,s)):String.format(SYNO.SDS.Office._T("task","task_copy_success_toast"),Ext.util.Format.htmlEncode(SYNO.SDS.Drive.Utils.parseDisplayName(l)),Ext.util.Format.htmlEncode(SYNO.SDS.Drive.Utils.parseDisplayName(o)),a,s)},showMvcpToastMsg:function(e,t,i,n,o,r){var a=Ext.id();SYNO.SDS.Drive.Utils.showToastMsg(this.findAppWindow(),this.getMvcpToastText(e,a,t,i||SYNO.SDS.Drive._T("category","node"),r),5e3,!0,{textActionId:a,fn:function(){SYNO.SDS.Office.Utils.isDrivePage()?SYNO.SDS.Drive.GetWindow().getAction().onGotoPath(n):"copy"===e&&o?SYNO.SDS.Office.URL.openLink(o):SYNO.SDS.Office.Utils.openDrive({file_id:n})}})},encryptOfficeNode:function(e,t,i){this.getWebAPI().encryptOfficeNode({params:this.prepareParam(e),scope:this,callback:this.onCreateCallBack("encryptnodedone",Ext.createSequence(t||Ext.emptyFn,function(e,t,i){e&&SYNO.SDS.Office.LocalStorage.fireEvent("encryptnodedone",t,i)}),i)})},restoreOfficeNodeTo:function(e,t,i,n,o){let r=this.findAppWindow(),a=(0,u.QX)(SYNO.SDS.Drive.Vue.DialogTree,{title:SYNO.SDS.Drive._T("action","copy_to"),findAppWindow:this.findAppWindow.bind(r),cb:(n,o)=>{a.window.setStatusBusy(void 0,_T("common","msg_waiting"));let r=(e,n,o)=>{if(a.window.clearStatus(),n=n||{},!e)return void a.component.showMsgBox("alert","",(0,c.v2)(n));a.component.close(),t&&t.call(i||window,e,n,o)};SYNO.SDS.Office.Utils.isTemplateObjectId(e.object_id||"")?(Ext.apply(e,{default_title:this.getTemplateTitle(),parent_id:SYNO.SDS.Drive.Utils.getPathId(n)}),this.getWebAPI().makeTemplate({params:e,scope:this,callback:r})):(Ext.apply(e,{to_parent_folder:SYNO.SDS.Drive.Utils.getPathId(n),permanent_link:SYNO.SDS.Office.Env.link_id}),this.restoreVersion(e,a,r,null,a))},params:{path:this.getParentPath()},createFolderCb:(e,t)=>{this.createFolderCB(a.component,e,t)}},{ownerWindow:o})},onTreeDlgGotoPath:function(e){_().prototype.onTreeDlgGotoPath.call(this,e,{permanent_link:SYNO.SDS.Office.Env.link_id})},deleteNode:function(e,t,i){if(SYNO.SDS.Office.Env.is_template)return void this.deleteTemplate();let{force:n=!1}=e||{};e={permanent:!1,permanent_link:[SYNO.SDS.Office.Env.link_id],revisions:SYNO.SDS.Office.Env.revisions,...e,force:void 0};let o=this.startBkTask.createDelegate(this,[function(e){e&&(t?t.call(i):this.findAppWindow().onReload())},this],!0);n?(e=this.prepareParam(e),this.postDeleteNode(e,o)):_().prototype.deleteNode.call(this,e,o)},postDeleteNode:function(e,t,i){_().prototype.postDeleteNode.call(this,e,Ext.createSequence(t||Ext.emptyFn,function(e,t,i){e&&SYNO.SDS.Office.LocalStorage.fireEvent("deletenodedone",t,i)}),i)},startBkTask:function(e,t,i,n,o,r,a){var s=this.findAppWindow();if(s.setStatusBusy(),!e){s.clearStatusBusy(),s.getMsgBox().alert("",(0,c.v2)(t),function(){r&&r.call(a,e,t)});return}this.async_task_id=t.async_task_id;var l=SYNO.SDS.Drive.WebAPIDesc.get_task,d=s.pollReg({webapi:Ext.apply({params:{task_id:this.async_task_id}},l),interval:.5,immediate:!0,status_callback:function(e,t){if(!e||"finished"===t.status){s.clearStatusBusy(),s.pollUnreg(d);var i=t;if(t.result&&Ext.isArray(t.result.errors)&&0<t.result.errors.length?(e=!1,i=t.result.errors[0]):!e&&t.result&&(i=t.result),e){if(!r)return;r.call(a,e,t)}else s.getMsgBox().alert("",(0,c.v2)(i),function(){r&&r.call(a,e,t)})}},scope:this})},parseEnvToFileInfo:function(e){var t=SYNO.SDS.Office.Env;return Ext.apply({capabilities:t.capabilities,name:t.title,shared_with:t.shared_with,adv_shared:t.adv_shared,display_path:t.display_path},e)},shareNode:function(e){if(SYNO.SDS.Office.Env.is_template)return void this.shareTemplate();e=Ext.apply({permanent_link:SYNO.SDS.Office.Env.link_id},e),SYNO.SDS.Office.Utils.isDrivePage()||Ext.apply(e,this.parseEnvToFileInfo({type:SYNO.SDS.Office.Env.ntype})),_().prototype.shareNode.call(this,e)},shareNodeWithParams:function(e){SYNO.SDS.Office.Action.superclass.shareNode.call(this,e)},openGetLinkMenu:function(e){let t=SYNO.SDS.Office.Env,i=this.prepareParam(this.parseEnvToFileInfo({file_id:t.file_id,file_type:t.ntype}));this.findAppWindow().getLeftPanel().getShareVuePanel()._$vueInst.open({findAppWindow:this.findAppWindow,anchor:e.dom,fileInfo:i})},checkNodePassword:function(e,t,i){this.getWebAPI().checkNodePassword({params:this.prepareParam(e),scope:i,callback:t})},setOfficeNode:function(e,t,i){this.getWebAPI().setOfficeNode({params:e,scope:this,callback:this.onCreateCallBack("setnodedone",t,i)})},setOfficeNodeOwner:function(e,t,i){this.getWebAPI().setOfficeNodeOwner({params:this.prepareParam(e),scope:this,callback:this.onCreateCallBack("setnodedone",t,i)})},infoNode:function(){_().prototype.infoNode.call(this,this.prepareParam(this.parseEnvToFileInfo({permanent_link:SYNO.SDS.Office.Env.link_id})))},checkAndOpenFromDrive:function(e,t){return!e.data.removed&&!!SYNO.SDS.Office.File.isImportable.call(SYNO.SDS.Office.File,SYNO.SDS.Office.File.getExt(e.get("name")))&&(this.openFromDrive(e,t),!0)},openFromDrive:function(e,t){e instanceof Ext.data.Record||(e=this.findAppWindow().GetOneSeleted());var i,n=e.get("name"),o=SYNO.SDS.Office.Utils.getNTypeByFileName(n);if(!o)return void this.findAppWindow().getMsgBox().alert("",String.format(SYNO.SDS.Office._T("common","convert_prompt"),"doc"));var r={name:n,files:[{format:"drive",path:SYNO.SDS.Drive.Utils.getPathIdByLink(e.data.permanent_link),viewonly:!0}]},a=SYNO.SDS.Drive.Sharing.GetSharingToken();a&&SYNO.SDS.Drive.Env.permanent_link?(Ext.apply(r,{sharing_token:a}),i=Ext.apply({},r),Ext.apply(i,{link:SYNO.SDS.Drive.Env.permanent_link,sharing_link:SYNO.SDS.Drive.Sharing.GetSharingLink()})):i=Ext.apply({},r);var s=SYNO.SDS.Office.Utils.getCurFolderPriv();s&&s.can_write&&Ext.apply(i,{to_parent_folder:SYNO.SDS.Drive.Utils.getPathId(e.get("parent_id"))}),t&&Ext.apply(i,{force_import:!0}),Ext.apply(i,{ntype:o});var l={fn:"requestImportNode",params:r,session_data:i};SYNO.SDS.Office.LocalStorage.WindowLaunch({url:SYNO.SDS.Office.URL.getOfficeURL(),data:l})},requestImportNode:function(e,t,i,n,o,r){this.beforeRequestNewNode(),this.importNodeByStartPromise(e,t,function(e,a){this.requestNewNodeCallBack(e,a,t,i,n,e?Ext.emptyFn:function(){this.requestImportNode(this.getImportStartPromise(t),t,i,n)},this,this.requestImportPassDlg),e&&o&&o.call(r)},this)},importNode:function(e,t,i){var n=this.findAppWindow();n.setStatusBusy(),this.importNodeByStartPromise(this.getImportStartPromise(e),e,t,i).then(function(){n.clearStatusBusy()})},importNodeByStartPromise:function(e,t,i,n){return e.then((function(e){return this.getPollImportingPromise({task_id:e.task_id},i,n)}).bind(this)).then(function(e){i&&i.call(n,!0,e.file_info[0])}).catch(function(e){i&&i.call(n,!1,e)})},getImportStartPromise:function(e){return new Promise((function(t,i){this.getWebAPI().importNode({params:e,callback:function(e,n){e?t(n):i(SYNO.API.Response.GetFirstError(n))},scope:this})}).bind(this))},getPollImportingPromise:function(e){return new Promise((function(t,i){var n=this.findAppWindow().pollReg({webapi:{api:"SYNO.Office.Import",version:1,method:"status",params:e},interval:3,immediate:!1,status_callback:function(o,r){var a=r.data;r.finish&&(this.findAppWindow().pollUnreg(n),!o||r.error?i(r.error):t(a),this.getWebAPI().importNodeDone({params:e}))},scope:this})}).bind(this))},downloadOffice:function(e,t,i){var n,o;if(SYNO.SDS.Office.Utils.isDrivePage()){var r=e;if(e instanceof Ext.data.Record&&(r=e.data),e={path:n=SYNO.SDS.Drive.Utils.getPathId(r.file_id)},t&&Ext.apply(e,{ver:t}),o=r.name,o=SYNO.SDS.Office.Utils.parseDisplayName(o)+"."+SYNO.SDS.Office.File.EXPORT_EXTENSION[SYNO.SDS.Office.File.getExt(o)],r.encrypted){let t=i||this.findAppWindow(),r=(0,p.z)(t),a=new SYNO.SDS.Office.PasswordWindow({path:n,owner:r?t.$refs.win:t,listeners:{success:(t,n)=>{e.password=n,this.exportNode(o,e,i)}}});r?t.openExtWindow(a):a.show()}else this.exportNode(o,e,i)}else{SYNO.SDS.Office.Env.isOfficeOwned||SYNO.SDS.Office.Env.is_template?e=Ext.apply({object_id:SYNO.SDS.Office.Env.objectId},e):(n=SYNO.SDS.Drive.Utils.getPathIdByLink(SYNO.SDS.Office.Env.link_id),e=Ext.apply({path:n},e));var a,s=this.findAppWindow().getTitle();if(o=SYNO.SDS.Office.Utils.parseDisplayName(s),"ms"!==e.format&&e.format)o+="."+e.format;else if(SYNO.SDS.Office.Env.isOfficeOwned||SYNO.SDS.Office.Env.is_template){switch(_S("standaloneAppName")){case"SYNO.SDS.Office.Doc.Application":a="docx";break;case"SYNO.SDS.Office.Sheet.Application":a="xlsx";break;default:a="pptx"}o+="."+a}else o+="."+SYNO.SDS.Office.File.EXPORT_EXTENSION[SYNO.SDS.Office.File.getExt(s)];this.exportNode(o,e,i)}},exportNode:function(e,t,i){if((0,v.isIOSFamily)())return this.redirectToDownload(e,t);this.getWebAPI().exportNode(e,{params:this.prepareParam(t),onError:function(n){if(57373!==(0,c.zg)(n)||t.password){var o=n?(0,c.v2)(n):SYNO.SDS.Drive._T("error","download");(i||this.findAppWindow()).getMsgBox().alert("",o)}else new SYNO.SDS.Office.PasswordWindow({path:t.path,owner:i||this.findAppWindow(),listeners:{scope:this,success:function(n,o){t.password=o,this.exportNode(e,t,i)}}}).show()},scope:this})},redirectToDownload:function(e,t){t=this.prepareParam(t);var i=this.getWebAPI().getGlobalPassword(),n=Promise.resolve();if(i){var o={password:i};n=(g().env.isSecure()?Promise.resolve(o):g().encrypt(o)).then(function(e){Object.assign(t,e)})}n.then(function(){var i=SYNO.API.GetBaseURL({api:"SYNO.Office.Export",version:1,method:"download"},!0,e),n=document.createElement("form");for(var o in n.setAttribute("name","office_dl_form"),n.setAttribute("action",i),n.setAttribute("method","POST"),t)Object.prototype.hasOwnProperty.call(t,o)&&n.appendChild(SYNO.SDS.Utils.IFrame.createHiddenInput(o,t[o]));document.body.appendChild(n),n.submit()})},restoreVersion:function(e,t,i,n){t=t||this.findAppWindow();let o=(0,p.z)(t);e=this.prepareParam(e);var r,a=SYNO.SDS.Office.Utils.isDrivePage();let s=()=>{let i=new SYNO.SDS.Office.PasswordWindow({path:e.path,owner:o?t.$refs.win:t,listeners:{success:(i,n)=>{i.close(),e.password=n,o?t.setWinStatusBusy():t.setStatusBusy(),r(e)}}});o?(t.clearWinStatus(),t.openExtWindow(i)):(t.clearStatusBusy(),i.show())};var l=this.onCreateCallBack("restorenodedone",i,n,!a);if(r=(function(e){this.getWebAPI().restoreVersion({params:e,scope:this,callback:function(e,t,i){if(a&&57373===(0,c.zg)(t)&&!i.password)return void s();l(e,t,i),e&&SYNO.SDS.Office.LocalStorage.fireEvent("restorenodedone",t,i)}})}).bind(this),a&&e.encrypted)return void s();r(e)},renameVersion:function(e,t){this.getWebAPI().renameVersion({params:e,callback:t,scope:this})},getRenameVersionPromise:function(e,t){return new Promise((t,i)=>{this.renameVersion(e,(e,n)=>{e?t(n):i(n)})}).then(e=>{t.component.close()}).catch(i=>{t.window.clearStatus(),57402===(0,c.zg)(i)?t.component.showMsgBox("confirm","",String.format((0,c.v2)(i),i.errors.ver_name),i=>{if("confirm"===i)return e.overwrite=!0,this.getRenameVersionPromise(e,t);t.component.close()}):t.component.showMsgBox("alert","",(0,c.v2)(i))})},nameCurrentVersion:function(){var e=this;let t={object_id:SYNO.SDS.Office.Env.objectId,overwrite:!1},i=(0,u.QX)(SYNO.SDS.Drive.Vue.DialogRename,{title:SYNO.SDS.Office._T("history","create_version_name"),validator:function(){for(var t=arguments.length,n=Array(t),o=0;o<t;o++)n[o]=arguments[o];return i.component.nameBasicValidator.apply(e,n)},cb:e=>{i.window.setStatusBusy(void 0,_T("common","msg_waiting")),this.getSaveNodePromise().then(n=>(t.ver=n.snapshot_version,t.ver_name=e,this.getRenameVersionPromise(t,i)))}})},listTemplate:function(e,t,i){this.getWebAPI().listTemplate({params:e,callback:t,scope:i})},makeTemplate:function(e,t){e=e||{},t=t||this.getTemplateDlg()||this.findAppWindow(),e.encrypt?new SYNO.SDS.Office.Encrypt.Window({owner:t,ntype:"template",callback:function(i){this.prepareMakeTemplate(Ext.apply(e,{encrypt:!0,password:i}),t)},scope:this}).show():this.prepareMakeTemplate(e,t)},prepareMakeTemplate:function(e,t){if(!e.parent_id&&SYNO.SDS.Office.Utils.isDrivePage()){var i=SYNO.SDS.Office.Utils.getCurFolderPriv();i&&i.can_write&&(e.parent_id=SYNO.SDS.Drive.Utils.getPathId(this.findAppWindow().getNavigation().getLastPathId()))}e.parent_id?this.doMakeTemplate(e,t):this.popupSelDirDlg(function(i,n){this.doMakeTemplate(Ext.apply(e,{parent_id:SYNO.SDS.Drive.Utils.getPathId(n)}),t),i.component.close()},this,{owner:t||this.findAppWindow(),path:this.getMyDrivePath()})},getTemplateTitle:function(){return SYNO.SDS.Office.Define.SystemUID===SYNO.SDS.Office.Utils.getUidByObjectId(SYNO.SDS.Office.Env.objectId)?SYNO.SDS.Office.Utils.parseTemplateTitle(SYNO.SDS.Office.Env.title):SYNO.SDS.Office.Env.title},doMakeTemplate:function(e,t){if(!SYNO.SDS.Office.Utils.isDrivePage()&&(e.object_id||(e.object_id=SYNO.SDS.Office.Env.objectId),e.default_title||(e.default_title=this.getTemplateTitle()),e.link_id||(e.link_id=SYNO.SDS.Office.Env.link_id)),SYNO.SDS.Office.Utils.isDrivePage()||t instanceof SYNO.SDS.Office.Template.Dialog)if(e.password&&SYNO.SDS.Office.LocalStorage.useCookie())this.doMakeTemplateFirst(e,t);else{var i=SYNO.SDS.Office.Utils.getNTypeByObjectId(e.object_id);SYNO.SDS.Office.LocalStorage.WindowLaunch({url:SYNO.SDS.Office.URL.getOfficeURL(),data:{fn:"requestMakeTemplate",params:e,session_data:{ntype:i}}})}else{t.setStatusBusy(),this.getWebAPI().makeTemplate({params:e,scope:this,callback:function(i,n){t.clearStatusBusy(),i?(n.encrypt&&e.password&&SYNO.SDS.Office.Env.setSessionItem("password",e.password,n.object_id),SYNO.SDS.Office.URL.redirectLink(n.link_id)):this.requestNewNodeCallBack(i,n,e,void 0,void 0,function(){this.doMakeTemplate(e,t)},this,t)}});return}(function(){t instanceof SYNO.SDS.Office.Template.Dialog&&t.slideOut()}).defer(1e3)},doMakeTemplateFirst:function(e,t){var i=SYNO.SDS.Office.WindowHelper.WindowOpen({url:SYNO.SDS.Office.URL.getOfficeURL(),hash:{action:"creating",ntype:SYNO.SDS.Office.Utils.getNTypeByObjectId(e.object_id)}});this.getWebAPI().makeTemplate({params:e,scope:this,callback:this.onCreateCallBack("createnodedone",(function(e,n,o){this.handleNewNodeCallBack(e,n,o,function(){this.doMakeTemplateFirst(o,t)},this,t)&&(e?SYNO.SDS.Office.Utils.callOnEditorReady(i,(function(e){i.closed||this.handleOfficeNodeReady(n,void 0,o.password,e)}).bind(this)):(t||SYNO.SDS.Office.GetWindow()).getMsgBox().alert("",(0,c.v2)(n)))}).bind(this),window)})},requestMakeTemplate:function(e,t){this.beforeRequestNewNode(),this.getWebAPI().makeTemplate({params:e,scope:this,callback:function(i,n){this.requestNewNodeCallBack(i,n,e,t,void 0,function(){this.requestMakeTemplate(e,t)},this)}})},encryptNode:function(){var e,t,i=SYNO.SDS.Office.Utils.isDrivePage(),n=!1;if(i){var o=this.findAppWindow().GetOneSeleted();n=o.data.encrypted,t={path:SYNO.SDS.Drive.Utils.getPathId(o.id)}}else n=SYNO.SDS.Office.Env.isEncrypt,t={path:SYNO.SDS.Drive.Utils.getPathIdByLink(SYNO.SDS.Office.Env.link_id)};n?((!this.encryptModifyWin||this.encryptModifyWin.isDestroyed)&&(this.encryptModifyWin=new SYNO.SDS.Office.Encrypt.Modify.Window({owner:this.findAppWindow()}),i||this.encryptModifyWin.mon(this.encryptModifyWin,{scope:this,beforechangepwd:function(e,t,i){SYNO.SDS.Office.Env.setSessionItem("password",t)},changepwddone:function(e,t,i){t||SYNO.SDS.Office.Env.removeSessionItem("password")},changepwdsucc:function(e,t,i,n){var o=SYNO.SDS.Office.GetWindow(),r=o.getSocket();return r&&r.connected||o.onReload({keepPassword:!1}),!1},unencrypt:function(e,t,i){this.onGoToNode(t)}})),e=this.encryptModifyWin):((!this.encryptCopyWin||this.encryptCopyWin.isDestroyed)&&(this.encryptCopyWin=new SYNO.SDS.Office.Encrypt.Copy.Window({owner:this.findAppWindow(),listeners:{scope:this,encrypt:function(e,t,n,o){i||(SYNO.SDS.Office.Env.setSessionItem("password",o,t.object_id),this.onGoToNode(t))}}})),e=this.encryptCopyWin),e.setData(t),e.show()},convertOffice:function(){let e=this.getTargets(),t={},i=e[0].data.parent_id;e.forEach(n=>{let o=SYNO.SDS.Drive.Utils.getPathId(n.id);t[o]={isdir:"dir"===n.data.type,path:o,name:n.data.name},e[0].data.parent_id!==i&&(i=void 0)});let n=e=>Object.values(e).map(e=>e.name),o=Object.values(SYNO.SDS.copy(t)).map(e=>Ext.applyIf({path:e.path},{password:e.password})),r=o.some(e=>t[e.path].isdir),a=(e,i)=>{SYNO.SDS.Office.Action.superclass.convertOffice.call(this,Ext.apply(e,{files:o}),n(t),i)},s=e=>{var i={conflict_action:"autorename"};e&&Ext.apply(i,{to_parent_folder:e});let n=(e,n,o)=>{if(!e)return void a(i,o);let r=[];n?.forEach(e=>{let i=SYNO.SDS.Drive.Utils.getPathId(e);delete t[e],r.push({path:i})}),i.skipped_files=r,e&&(i.additional_passwords=e),a(i)},s=1!==o.length;r?this.checkImportOfficeByDrive(o,s,n):this.checkImportOffice(o,s,n)};var l=SYNO.SDS.Office.Utils.getCurFolderPriv();if(r||l&&l.can_write)return void s();let c=this.findAppWindow(),d=(0,u.QX)(SYNO.SDS.Drive.Vue.DialogTree,{title:SYNO.SDS.Office._T("action","convert_office_to"),findAppWindow:this.findAppWindow.bind(c),cb:(e,t)=>{d.component.close(),s(SYNO.SDS.Drive.Utils.getPathId(e))},params:i?this.prepareParam({file_id:i}):{path:this.getMyDrivePath()},createFolderCb:(e,t)=>{this.createFolderCB(d.component,e,t)}})},checkImportOfficeByDrive:function(e,t,i){this.getWebAPI().checkImportOfficeByDrive({params:{files:e},scope:this,callback:(e,n)=>{if(!e)return void i();if(n?.has_fail){let e=SYNO.API.Response.GetValByIndex(n,0);if(1e3===e.code&&Array.isArray(e.errors)&&Array.isArray(e.errors)&&e.errors[0]?.file_id)return void this.checkImportOfficeDone(e.errors,t,i)}let o=SYNO.API.Response.GetValByIndex(n,1);i(null,null,{pollingOnly:!!o,async_task_id:o?.async_task_id})}})},checkImportOffice:function(e,t,i){this.getWebAPI().checkImportOffice({params:{files:e},scope:this,callback:(e,n)=>{if(e)return void i();let o=n.errors,r=[];o?.forEach(e=>{57373===e.code&&r.push(e)}),this.checkImportOfficeDone(r,t,i)}})},checkImportOfficeDone:function(e,t,i){let n;if(!e||0===e.length)return void i();(n=1!==e.length||t?new SYNO.SDS.Office.GenMultiplePasswordWindow({owner:this.findAppWindow(),files:e,listeners:{scope:this,apply:function(e,t,n,o){o?e.getMsgBox().confirm("",SYNO.SDS.Office._T("convert_office","no_password"),o=>{"yes"===o&&(e.close(),i(t,n))}):(e.close(),i(t,n))}}}):new SYNO.SDS.Office.GenPasswordWindow({owner:this.findAppWindow(),listeners:{scope:this,apply:function(t,o){let r=e[0],a=r.file_id?SYNO.SDS.Drive.Utils.getPathId(r.file_id):r.path;this.getWebAPI().checkImportOffice({params:{path:a,password:o},scope:this,callback:function(e,t){if(e){n.close(),i([{path:a,password:o}]);return}n.setStatusError({text:(0,c.v2)(t)})}})}}})).show()},onGoToNode:function(e){SYNO.SDS.Office.URL.redirectLink(e.link_id)},restoreNode:function(){var e=[{path:SYNO.SDS.Drive.Utils.getPathIdByLink(SYNO.SDS.Office.Env.link_id)}],t=[SYNO.SDS.Office.Env.title];this.restoreFileVersion({files:e,dry_run:!0},t)},postRestoreNode:function(e,t){SYNO.SDS.Office.Action.superclass.restoreNode.call(this,e,this.startBkTask.createDelegate(this,[function(t,i){t?(SYNO.SDS.Office.LocalStorage.fireEvent("restorenodedone",i,e),this.findAppWindow().onReload()):(0,d.on)()},this],!0))},uploadImage:function(e){e=e||{};var t=SYNO.SDS.Office.Utils.isPublicShareOrImportView(),i=Ext.apply({from_upload:!0,from_drive:!t,from_nas:!t,from_url:!0,activeItem:"from_upload",viewMode:"thumbnail",filter:{extensions:SYNO.SDS.Office.Define.ImageExt},onApply:this.uploadImageHandler.createDelegate(this,e,!0)},e);Ext.isGecko&&(i.fromPCParams={accept:"image/*"}),SYNO.SDS.AppLaunch("SYNO.SDS.Drive.Upload.Application",i,!1,function(){var t=SYNO.SDS.AppMgr.getByAppName("SYNO.SDS.Drive.Upload.Application")[0];e.destroy_cb&&t.mon(t,"beforedestroy",e.destroy_cb,e.scope,{single:!0})},this)},uploadVideo:function(e){e=e||{};var t=SYNO.SDS.Office.Utils.isPublicShareOrImportView();SYNO.SDS.AppLaunch("SYNO.SDS.Drive.Upload.Application",Ext.apply({from_upload:!1,from_drive:!t,from_nas:!1,from_url:!1,from_youtube_url:!0,activeItem:"from_youtube_url",viewMode:"thumbnail",filter:{extensions:SYNO.SDS.Office.Define.VideoExt},onApply:this.uploadVideoHandler.createDelegate(this,e,!0)},e),!1,function(){var t=SYNO.SDS.AppMgr.getByAppName("SYNO.SDS.Drive.Upload.Application")[0];e.destroy_cb&&t.mon(t,"beforedestroy",e.destroy_cb,e.scope,{single:!0})},this)},uploadImageHandler:function(e,t,i){var n;let o=this.createAttachmentCreator();if("from_pc"===t[0].source){var r=[],a=!0;if(Ext.each(t,function(t){var i=t.filename;if(Ext.isEmpty(i)||!1===SYNO.SDS.Office.Utils.isSupportImage(i))return SYNO.SDS.Office.Utils.showErrorMsg(e,57377),a=!1,!1;r.push(o.create("raw",t.fileObj))},this),!a)return a;e.setStatusBusy(),n=Promise.all(r)}else{var s=[];t.forEach(function(e){var t,i;switch(e.source){case"from_drive":t="drive",i=SYNO.SDS.Drive.Utils.getPathId(e.file_id);break;case"from_url":t="url",i=e.url;break;case"from_nas":t="ds",i=e.file_id}s.push({type:t,source:i})},this),e.setStatusBusy(),n=o.request({files:s})}return o.complete(),n.then((function(t){var n;e.clearStatusBusy();let{files:o,errors:r}=(n=t,(0,m.Z)([n]).reduce((e,t)=>(e.files=e.files.concat(t.files||[]),e.errors=e.errors.concat(t.errors||[]),e),{files:[],errors:[]}));if(!Ext.isEmpty(o)&&i&&i.cb&&i.cb.call(i.scope,{files:o}),!Ext.isEmpty(r))return void SYNO.SDS.Office.Utils.showErrorMsg(e,{errors:r});e.close()}).bind(this)).catch(function(t){e.clearStatusBusy(),SYNO.SDS.Office.Utils.showErrorMsg(e,t)}),!1},uploadVideoHandler:function(e,t,i){var n=t[0].source;("from_drive"===n||"from_youtube_url"===n)&&i.cb.call(i.scope,t)},leaveNode:function(e){if(SYNO.SDS.Office.Env.is_template)return void this.leaveTemplate();var t=this.findAppWindow();e=this.prepareParam(e),t.setStatusBusy(),t.sendWebAPI({compound:{stopwhenerror:!0,params:[Ext.apply(SYNO.SDS.Drive.WebAPIDesc.share_file,{params:{path:e.path,permissions:[{action:"delete",member:{type:"user",name:e.username}}]}}),Ext.apply(SYNO.SDS.Drive.WebAPIDesc.get_file,{params:{path:e.path}})]},callback:function(e,i){if(t.clearStatusBusy(),!e||i.has_fail)return 1!==SYNO.API.Response.GetFirstErrorIndex(i)?void t.getMsgBox().alert("",(0,c.v2)(i)):void t.getMsgBox({preventDelay:!0}).alert("",SYNO.SDS.Office._T("error","leave_no_permission"),function(){(0,d.on)()},this);SYNO.SDS.Office.Env.set(SYNO.API.Response.GetValByIndex(i,1)),SYNO.SDS.Office.GetWindow().getEventMgr().fireEvent("permchange")},scope:this},this)},getTemplateDlg:function(){return SYNO.SDS.Office.GetTplDlg()},saveTemplate:function(e,t,i){new b({owner:this.findAppWindow()}).show()},openTplDialog:function(e){new SYNO.SDS.Office.Template.Dialog(Ext.apply({owner:this.findAppWindow(),defaultType:"all_tpl"},e||{})).slideIn()},openTemplate:function(e){var t,i=this.getTemplateDlg();if(!i){SYNO.SDS.Office.Env.is_template&&SYNO.SDS.Office.URL.redirectLink(SYNO.SDS.Office.Env.link_id,e);return}var n=i.GetOneSeleted();if(n){var o=n.data,r={default_title:o.title};if(i.encrypt&&(r.encrypt=!0),SYNO.SDS.Office.Utils.isDrivePage()){var a=SYNO.SDS.Office.Utils.getCurFolderPriv();a&&a.can_write&&(r.parent_id=SYNO.SDS.Drive.Utils.getPathId(this.findAppWindow().getNavigation().getLastPathId()))}e&&"edit"===e.mode||(t={session_data:r}),SYNO.SDS.Office.LocalStorage.WindowLaunch({url:SYNO.SDS.Office.URL.getOfficeURL(o.link_id),params:e,data:t})}},editTemplate:function(){this.openTemplate({mode:"edit"})},deleteTemplate:function(e){SYNO.SDS.Office.Utils.isDrivePage()||e&&e===this.getTemplateDlg()?t=(i=this.getTemplateDlg()).GetSeletionIds():(i=this.findAppWindow(),t=[SYNO.SDS.Office.Env.objectId]);var t,i,n,o=SYNO.SDS.Office._T;n=String.format(n=Ext.isArray(t)&&1!==t.length?o("file","delete_confim"):o("file","delete_confim_one"),t.length),i.getMsgBox().confirmDelete("",n,function(e){"yes"===e&&(i.setStatusBusy(),this.getWebAPI().deleteTemplate({params:{object_id:t},scope:this,callback:function(e,n,o){if(i.clearStatusBusy(),!e)return void i.getMsgBox().alert("",(0,c.v2)(n));i===this.getTemplateDlg()?i.getEventMgr().fireEvent("deletetemplatedone",e,n,o):SYNO.SDS.Office.Utils.isDrivePage()||-1===t.indexOf(SYNO.SDS.Office.Env.objectId)||(0,d.on)(window,!1)}}))},this)},renameTemplate:function(e){var t,i,n,o;if(SYNO.SDS.Office.Utils.isDrivePage()||e&&e===this.getTemplateDlg()){var r=(i=this.getTemplateDlg()).GetOneSeleted();if(!r)return;t=r.data.object_id,n=r.data.title,o=r.data.ntype}else i=this.findAppWindow(),t=SYNO.SDS.Office.Env.objectId,n=SYNO.SDS.Office.Env.title,o=SYNO.SDS.Office.Env.ntype;new y({ntype:o,initName:n,owner:i,object_id:t}).show()},shareTemplate:function(e,t){if(t&&t===this.getTemplateDlg()){var i,n,o=this.getTemplateDlg(),r=o.GetOneSeleted();if(!r)return;i=r.data.object_id}else SYNO.SDS.Office.Utils.isDrivePage()?e&&e.content&&e.content.object_id&&(o=this.findAppWindow(),i=e.content.object_id,n=e.sender.name):(o=this.findAppWindow(),i=SYNO.SDS.Office.Env.objectId,e&&e.share_user&&(n=e.share_user));new SYNO.SDS.Office.Template.Share.Window({object_id:i,owner:o,share_user:n,listeners:{scope:this,applydone:function(e,t,i){o===this.getTemplateDlg()&&this.getTemplateDlg().getEventMgr().fireEvent("settemplatepermdone",e,t,i)}}}).show()},leaveTemplate:function(e){var t,i,n=!1,o=SYNO.SDS.Office.Utils.isDrivePage();o||e&&e===this.getTemplateDlg()?(t=this.getTemplateDlg(),i=this.getTemplateDlg().GetSeletionIds()[0],o||i!==SYNO.SDS.Office.Env.objectId||(n=!0)):(n=!0,t=this.findAppWindow(),i=SYNO.SDS.Office.Env.objectId),t.setStatusBusy(),this.getWebAPI().leaveTemplate({params:{object_id:i,perm:{type:"user",op:"delete",name:_S("user")}},scope:this,callback:function(e,i,o){if(t.clearStatusBusy(),n)if(!e||i.has_fail)return 1!==SYNO.API.Response.GetFirstErrorIndex(i)?void t.getMsgBox().alert("",(0,c.v2)(i)):void t.getMsgBox({preventDelay:!0}).alert("",SYNO.SDS.Office._T("error","leave_no_permission"),function(){(0,d.on)()},this);else SYNO.SDS.Office.Env.set(SYNO.API.Response.GetValByIndex(i,1)),SYNO.SDS.Office.GetWindow().getEventMgr().fireEvent("permchange");else!e||i.has_fail?t.getMsgBox().alert("",(0,c.v2)(SYNO.API.Response.GetFirstError(i))):t.getEventMgr().fireEvent("leavetemplatedone",e,i,o)}},n)},listTemplateGroup:function(e,t){this.getWebAPI().listTemplateGroup({scope:this,callback:this.onCreateCallBack("listtplgroupdone",e,t,!1,this.getTemplateDlg())})},publishTemplate:function(){var e=this,t=this.findAppWindow();t.setStatusBusy({text:SYNO.SDS.Office._T("template","publishing")}),Promise.all([this.getThumbPromise(),this.getSaveNodePromise({mode:"publish"})]).then(function(t){return e.getPublishTemplateTaskDonePromise(t)}).catch(function(e){t.getMsgBox().alert("",(0,c.v2)(e))}).then(function(){t.clearStatusBusy()})},getPublishTemplateTaskDonePromise:function(e){var t=e[0],i=e[1],n=this;return new Promise(function(e,o){var r={object_id:SYNO.SDS.Office.Env.objectId,publish_version:i.snapshot_version,file:{source:"raw",name:"thumb."+t.ext},raw:t.blob};t.size&&(r.size=t.size),n.getWebAPI().publishTemplate({params:r,callback:function(t,i){if(t){n.findAppWindow().getEventMgr().fireEvent("publishtpldone"),e();return}o(i)}})})},popupSelDirDlg:function(e,t,i){let n=this.findAppWindow(),o=(0,u.QX)(SYNO.SDS.Drive.Vue.DialogTree,{title:i.title||SYNO.SDS.Office._T("action","create_title"),findAppWindow:this.findAppWindow.bind(n),cb:(i,n)=>{e.call(t,o,i,n)},params:{path:i.path},createFolderCb:(e,t)=>{this.createFolderCB(o.component,e,t)}},{ownerWindow:i.owner})},setNode:function(e,t,i){_().prototype.setNode.call(this,e,Ext.createSequence(t||Ext.emptyFn,function(e,t,i){e&&SYNO.SDS.Office.LocalStorage.fireEvent("setnodedone",t,i)}),i)},setNodePerm:function(e,t,i){_().prototype.setNodePerm.call(this,e,Ext.createSequence(t||Ext.emptyFn,function(e,t,i){e&&SYNO.SDS.Office.LocalStorage.fireEvent("setnodepermdone",t,i)}),i)},deleteNodePerm:function(e,t,i){_().prototype.deleteNodePerm.call(this,e,Ext.createSequence(t||Ext.emptyFn,function(e,t,i){e&&SYNO.SDS.Office.LocalStorage.fireEvent("deletenodepermdone",t,i)}),i)},setShortcut:function(e,t,i){_().prototype.setShortcut.call(this,e,Ext.createSequence(t||Ext.emptyFn,function(e,t,i){e&&SYNO.SDS.Office.LocalStorage.fireEvent("setshortcutdone",t,i)}),i)},deleteShortcut:function(e,t,i){_().prototype.deleteShortcut.call(this,e,Ext.createSequence(t||Ext.emptyFn,function(e,t,i){e&&SYNO.SDS.Office.LocalStorage.fireEvent("deleteshortcutdone",t,i)}),i)},createTag:function(e,t,i){_().prototype.createTag.call(this,e,Ext.createSequence(t||Ext.emptyFn,function(e,t,i){e&&SYNO.SDS.Office.LocalStorage.fireEvent("createtagdone",t,i)}),i)},setNodeTag:function(e,t,i,n){_().prototype.setNodeTag.call(this,e,Ext.createSequence(t||Ext.emptyFn,function(e,t,i){e&&SYNO.SDS.Office.LocalStorage.fireEvent("setnodetagdone",t,i)}),i)},getDriveInfo:function(){return this.drive_info_promise||(this.drive_info_promise=this.getWebAPI().getDriveInfo())}})},4077:function(e,t,i){"use strict";let n;i.d(t,{$:()=>l,L:()=>c});var o=i(85020),r=i(80816);async function a(){if((0,o.YM)())try{return await (0,r.B)().getSettingAsync()}catch(e){console.error(e)}}async function s(e){if((0,o.YM)())try{return await (0,r.B)().setSettingAsync({params:e})}catch(e){console.error(e)}}async function l(){return n??=a()}async function c(e){return l().then(t=>{if(t)for(let[i,n]of Object.entries(e))void 0!==n&&(t[i]=n)}),s(e)}},45407:function(e,t,i){"use strict";let n;i.d(t,{Uv:()=>s,aV:()=>u,z4:()=>d});var o=i(85020),r=i(80816),a=i(5890);function s(){return(0,o.YM)()&&!SYNO.SDS.Office.Utils.isOpenImportFile()&&!SYNO.SDS.Office.Utils.isSystemTemplate()}async function l(){if(s())try{if(function(){let e=window.EarlyInit.getAction()?.getFnName();if(!e)return!1;switch(e){case"requestCreateNode":case"requestCopyNode":case"requestMakeTemplate":case"requestImportNode":return!0}return!1}())return{};return await Promise.race([(0,r.B)().getUISetting({params:{object_id:(0,a.D)().objectId}}),new Promise(e=>{window.setTimeout(()=>e(void 0),6e3)})])??{}}catch(e){e?.code!==1002&&console.error(e)}}async function c(e){if(s())try{return await (0,r.B)().setUISetting({params:{object_id:(0,a.D)().objectId,...e}})??{}}catch(e){console.error(e)}}async function d(){return n??=l()}async function u(e){return d().then(t=>{if(t)for(let[i,n]of Object.entries(e))void 0!==n&&(t[i]=n)}),c(e)}},63104:function(e,t,i){"use strict";i.d(t,{Z:()=>r});var n=i(98966),o=i(17370);class r{constructor(){this.callbackMap=new Map}static isNativeBridgeAvailable(){return!!s()}static getInstance(){let e=globalThis.appBridge;return e||(globalThis.appBridge=e=new r),e}readClipboard(){return this.executeAsync(e=>{s()?.readClipboard(e)})}executeAsync(e){let t=(0,n.D)();return new Promise((i,n)=>{this.callbackMap.set(t,[i,n]),e(t)})}responseCallback(e,t,i){let n=this.callbackMap.get(e);n&&(this.callbackMap.delete(e),n[+!t](i))}onBackPressed(){return!1}canUnload(){return(0,o.AD)()}}class a{readClipboard(e){webkit.messageHandlers.readClipboard.postMessage([e])}static isIOSDriveApp(){return!!globalThis.webkit?.messageHandlers?.readClipboard}}function s(){if(globalThis.nativeBridge)return globalThis.nativeBridge;if(a.isIOSDriveApp()){let e=new a;return globalThis.nativeBridge=e,e}return null}},59014:function(){Ext.define("SYNO.SDS.Office.Env",{singleton:!0,constructor:function(){this.objectId=null,this.isEncrypt=!1,this.capabilities={},this.supported=["objectId","isEncrypt","ntype","recycle","perm","commentId","translation","link_id","title","shared_with","capabilities","labels","display_path","parent_id","revisions","is_template","acl","adv_shared","file_id"]},init:function(e){EarlyInit.getLaunchInfo()&&(e=Ext.apply(e,EarlyInit.getLaunchInfo()));var t,i=this.getHashParam(),n=Ext.urlDecode(location.search.substr(1));if(e.path&&(this.path=e.path),EarlyInit.getObjectId()?this.objectId=EarlyInit.getObjectId():e.object_id?this.objectId=e.object_id:i.id&&(this.objectId=i.id),EarlyInit.getLinkId()&&(this.link_id=EarlyInit.getLinkId()),this.objectId&&!Ext.isDefined(this.is_template)&&(this.is_template=SYNO.SDS.Office.Utils.isTemplateObjectId(this.objectId)),e.mode?this.mode=e.mode:this.is_template&&n.mode&&(this.mode=n.mode),"true"===n.ignore_version&&(this.ignore_version=!0),this.objectId&&(t=this.getSessionItem("password")),t){this.removeSessionItem("password"),this.isEncrypt=!0;var o=SYNO.SDS.Office.GetWindow();SYNO.SDS.Office.Utils.setEncryptPassword(this.objectId,t,o)}else e.encrypt?this.isEncrypt=!0===e.encrypt||"true"===e.encrypt:i.encrypt&&(this.isEncrypt="true"===i.encrypt);i.comment_id&&!this.commentId&&(this.commentId=i.comment_id),i.translation&&!this.translation&&(this.translation=i.translation),i.local_id&&(this.local_id=i.local_id),this.objectId&&(this.isOfficeOwned=SYNO.SDS.Office.Utils.isOfficeOwnerObjectId(this.objectId))},getHashParam:function(){return EarlyInit.getLocation()?Ext.urlDecode(EarlyInit.getLocation().hash.substr(1)):SYNO.SDS.Drive.Utils.getHashParam()},set:function(e,t){Ext.isObject(e)?Ext.copyTo(this,e,this.supported):-1<this.supported.indexOf(e)&&(this[e]=t)},get:function(e,t){return this.hasOwnProperty(e)?this[e]:t},_getStorageKey:function(e,t){return"string"==typeof(t=t??this.objectId)?t+"/"+e:""},_setStorageItem:function(e,t,i,n){var o=e&&this._getStorageKey(t,n);if(o)try{e.setItem(o,JSON.stringify(i))}catch(e){SYNO.Debug.error("storage.setItem() failed",o,e)}},_getStorageItem:function(e,t,i){var n=e&&this._getStorageKey(t,i),o=null;if(n){var r=e.getItem(n);if(null!==r)try{o=JSON.parse(r)}catch{}}return o},_removeStorageItem:function(e,t,i){var n=e&&this._getStorageKey(t,i);n&&e.removeItem(n)},setSessionItem:function(e,t,i){return this._setStorageItem(window.sessionStorage,e,t,i)},getSessionItem:function(e,t){return this._getStorageItem(window.sessionStorage,e,t)},removeSessionItem:function(e,t){return this._removeStorageItem(window.sessionStorage,e,t)},setLocalItem:function(e,t,i){return this._setStorageItem(window.localStorage,e,t,i)},getLocalItem:function(e,t){return this._getStorageItem(window.localStorage,e,t)},removeLocalItem:function(e,t){return this._removeStorageItem(window.localStorage,e,t)},setLocalBool:function(e,t,i,n){t!==i?this.setLocalItem(e,t,n):this.removeLocalItem(e,n)},getLocalBool:function(e,t){return this.getLocalItem(e,t)},isUseToken:function(){return SYNO.SDS.Drive.Utils.isLogined()&&!SYNO.SDS.Office.Utils.isDriveAdvSharing()},getSessionToken:function(){let e={};return this.isUseToken()&&(e.tid=this._tid),e},setToken:function(e){this._tid=e}})},1590:function(e,t,i){"use strict";i.d(t,{e:()=>s,r:()=>r});var n=i(30947),o=i.n(n);function r(){function e(e){s(e.type,a(e.reason))}window.onerror=function(e,t,i,n,o){s("error",a(o))},window.addEventListener("unhandledrejection",e),window.addEventListener("unload",function(){window.onerror=null,window.removeEventListener("unhandledrejection",e)})}function a(e){return e?.stack||""}function s(e,t){if(!SYNO.SDS.Office.Env||!t)return;let{ntype:i,objectId:n}=SYNO.SDS.Office.Env;o().request({api:"SYNO.Office.Log",method:"create",version:1,params:{event:e,ntype:i,object_id:n,msg:t}}).catch(e=>console.error("failed to report error",e))}},12299:function(e,t,i){"use strict";i.d(t,{c:()=>r});var n=i(30947),o=i.n(n);function r(e){Array.isArray(e)||(e=[e]),SYNO.SDS.Office.Define.Info?.is_user_event_enabled&&SYNO.SDS.Drive.Utils.isLogined()&&0!==e.length&&o().request({api:"SYNO.Office.UserStatistics.Event",method:"create",version:1,params:{events:e}}).catch(()=>{})}},83866:function(e,t,i){"use strict";i.d(t,{Z:()=>d});var n=i(30947),o=i.n(n),r=i(17370),a=i(61232),s=i(32334),l=i(32867),c=i(63104);let d=Ext.define("SYNO.SDS.Office.WebSocket",{constructor:function(){this.socketWrapper=null,this.socket=null,this.timeoutTimer=void 0,this.timeoutMsgBox=null,this.connect(),this.registerWindowEvent(),(0,r.u1)(this.isSyncComplete.bind(this))},getSocketConfig:function(){var e=SYNO.SDS.Office.Env.objectId,t={objectId:e,linkId:SYNO.SDS.Office.Env.link_id,password:SYNO.SDS.Office.Utils.getEncryptPassword(e)};return SYNO.SDS.Office.Utils.isDriveAdvSharing()&&(t.sharing_link=SYNO.SDS.Drive.Sharing.GetSharingLink(),t.sharing_token=SYNO.SDS.Drive.Sharing.GetSharingToken()),t},connect:function(){var e=window.EarlyInit.getSocket();e?this.onSocketCreate(e):(_S("SynoToken")&&o().env.setSynoToken(_S("SynoToken")),(e=new OF.SocketWrapper(this.getSocketConfig())).connect().then(this.onSocketCreate.bind(this,e))),this.socketWrapper=e,e.setMessageTooLargeHandler(l.JL)},registerWindowEvent:function(){c.Z.isNativeBridgeAvailable()||(window.onbeforeunload=r.Gq);var e=(function(){var e=this.getWindow();!1===navigator.onLine?e.setOffline(!0):this.socket.connected&&e.setOffline(!1)}).bind(this);window.addEventListener("offline",e),window.addEventListener("online",e)},getWindow:function(){return SYNO.SDS.Office.Window},isSyncComplete:function(){return!0},onSocketCreate:function(e){this.socket=e.getSocket(),e.unsetDefaultEvents(),this.addSocketEvent(e)},addSocketEvent:function(e){e.getSocket().on("connect_error",this.onConnectionError.bind(this))},onConnectionError:function(e){this.getWindow().setOffline(!0,e instanceof Error&&"Permission denied"===e.message),SYNO.Debug.error("connect error")},onSyncTimeout:function(e){if(e){if(this.timeoutMsgBox)return;let e=12e4*!!this.socket?.connected;window.clearTimeout(this.timeoutTimer),this.timeoutTimer=window.setTimeout(()=>{this.timeoutTimer=void 0,this.saveClientChanges(),this.timeoutMsgBox||(0,a.m9)().getMsgBox().alert("",(0,s.$)("error","collab_sync_timeout"),this.onSyncTimeoutReload.bind(this))},e)}else this.clearClientChanges(),window.clearTimeout(this.timeoutTimer),this.timeoutTimer=void 0,this.timeoutMsgBox?.destroy(),this.timeoutMsgBox=null},onSyncTimeoutReload:function(){(0,a.m9)().onReload({keepPassword:!0})},saveClientChanges:function(){},clearClientChanges:function(){}})},30592:function(e,t,i){"use strict";i(73032);var n=i(71783),o=i(90167),r=i.n(o);Ext.define("SYNO.SDS.Office.AddEditWindow",{extend:r(),nameItemId:"title",constructor:function(e){e.mode&&(this.mode=e.mode||"edit");var t=Ext.apply({title:"add"===this.mode?_T("common","create"):_T("common","alt_edit"),items:this.getFormPanel(),buttons:[{itemId:"cancel",text:_T("common","cancel"),scope:this,handler:this.onCancel},{itemId:"ok",text:_T("common","ok"),btnStyle:"default",scope:this,handler:this.onApply}]},e);r().prototype.constructor.call(this,t),this.mon(this,"afterlayout",this.onAfterLayout,this,{single:!0}),this.mon(this,"show",this.onDelayShow,this,{single:!0,buffer:300})},onAfterLayout:function(){this.center()},onDelayShow:function(){var e=this.getForm().findField(this.nameItemId);e&&(e.focus(),e.selectText(0,e.getValue().length))},getForm:function(){return this.getFormPanel().getForm()},getFormPanel:Ext.emptyFn,getParams:function(){return this.getForm().getFieldValues(!0)},onApplyDone:Ext.emptyFn,isValid:function(){return this.getForm().isValid()},onApply:function(){if(this.isValid()){if(!this.isDirty())return void this.close();var e=this.getParams();e&&(this.setStatusBusy({text:_T("common","loading")}),this.onAction(e))}},onAction:Ext.emptyFn,onApplyCb:function(e,t,i,o){if(this.clearStatusBusy(),e){this.onApplyDone(t,i,o),this.close();return}this.setStatusError({text:(0,n.v2)(t)}),this.getMsgBox().alert("",(0,n.v2)(t))},onCancel:function(){if("edit"!==this.mode||!this.isDirty())return void this.close();this.getMsgBox().confirm(this.title,_T("common","confirm_lostchange"),function(e){"yes"===e&&this.close()},this)},isDirty:function(){return!!this.getForm()&&this.getForm().isDirty()},nameValidator:function(e){var t=e.trim();return 0===t.length?this.getForm().findField(this.nameItemId).blankText:t.length>0&&t.length<this.maxNameLength}})},76660:function(e,t,i){"use strict";var n=i(71783),o=i(90167),r=i.n(o);Ext.define("SYNO.SDS.Office.GenPasswordWindow",{extend:r(),constructor:function(e){var t=Ext.apply({title:SYNO.SDS.Office._T("encrypt","enter_password"),items:this.getFormPanel(e),width:440,height:218,buttons:[{text:_T("common","cancel"),scope:this,handler:this.onCancel},{text:_T("common","ok"),btnStyle:"default",scope:this,handler:this.onApply}]},e);r().prototype.constructor.call(this,t),this.mon(this,"show",this.onAfterShow,this,{single:!0})},onAfterShow:function(){this.center(),this.passwordField.focus(!0,300)},getFormPanel:function(e){return this.formPanel||(this.formPanel=new SYNO.ux.FormPanel({border:!1,hideLabels:!0,items:[{xtype:"syno_displayfield",value:e.blChangePwd?SYNO.SDS.Office._T("encrypt","pass_changed"):SYNO.SDS.Office._T("password","prompt")},this.passwordField=new SYNO.ux.TextField({textType:"password",emptyText:_T("common","password"),allowBlank:!1,width:384})]}))},onApply:function(){if(!this.getFormPanel().getForm().isValid())return!1;var e=this.passwordField.getValue();this.fireEvent("apply",this,e)}}),Ext.define("SYNO.SDS.Office.PasswordWindow",{extend:"SYNO.SDS.Office.GenPasswordWindow",constructor:function(e){this.object_id=e.object_id,this.path=e.path,SYNO.SDS.Office.GenPasswordWindow.prototype.constructor.call(this,e)},onApply:function(){if(!this.getFormPanel().getForm().isValid())return!1;var e=this.passwordField.getValue();this.setStatusBusy(),SYNO.SDS.Office.GetAction().checkNodePassword({path:this.path,object_id:this.object_id,password:e},function(t,i){if(!t){this.clearStatusBusy();var o=(0,n.v2)(i);this.setStatusError({text:o}),this.passwordField.focus().selectText(),57373!==(0,n.zg)(i)&&this.getMsgBox().alert("",o);return}this.fireEvent("success",this,e),(function(){this.isDestroyed||(this.clearStatusBusy(),this.close())}).defer(500,this)},this)}})},37655:function(e,t,i){"use strict";i.d(t,{T:()=>o});var n=i(78146);let o=Ext.define("SYNO.SDS.Office.Menu",{extend:"SYNO.ux.Menu",useARIA:!1,constructor:function(e){var t=(e=Ext.apply({ignoreParentClicks:!0},e)).usePs;t&&(e.autoFlexcroll=!1,e.enableScrolling=!1),SYNO.ux.Menu.prototype.constructor.call(this,e),this._layoutDisabled=!1,t&&(this.on("afterlayout",this._usePs,this),this.on("beforedestroy",this._unusePs,this))},batch:function(e,t){this._layoutDisabled=!0;var i=e.call(t||this);this._layoutDisabled=!1,!1!==i&&this.doLayout()},doLayout:function(e,t){this._layoutDisabled||SYNO.ux.Menu.prototype.doLayout.call(this,e,t)},updateMaxHeight:function(){var e,t=this.el.dom;this.maxHeight?e=this.maxHeight:t.style.height||(e=t.parentNode.offsetHeight,t.style.boxSizing="border-box"),e&&(t.style.maxHeight=e+"px")},updateScroller:function(){this.ps.update()},_usePs:function(){var e=this.el.dom;this.updateMaxHeight(),this.ps?this.updateScroller():(e.classList.add("ps-office"),this.ps=new n.Z(e,{suppressScrollX:!0,minScrollbarLength:45}))},_unusePs:function(){this.ps&&(this.ps.destroy(),this.ps=null)}})},53991:function(e,t,i){"use strict";i.d(t,{sc:()=>s,Q3:()=>c,Gz:()=>a,y7:()=>l});var n=i(29453);let o=["formal","casual"];var r=i(32334);let a=["revise","fix_grammar","make_shorter","make_longer","change_tone","summarize","translate"];function s(e){return l(e)>0}function l(e){switch(e){case"change_tone":return o.length;case"translate":return n.s.length;default:return 0}}function c(e){switch(e){case"change_tone":return o.map(t=>({key:`${e}_${t}`,title:(0,r.$)("ai_writer",`tone_${t}`)}));case"translate":return n.s.map(t=>({key:`${e}_${t}`,title:(0,r.$)("ai_writer",`lang_${t}`)}));default:return[]}}},24753:function(e,t,i){"use strict";i.d(t,{y:()=>o});var n=i(63447);let o=(0,i(34877).defineStore)("ai-example",()=>({examples:(0,n.shallowRef)([]),tips:(0,n.ref)("")}))},52023:function(e,t,i){"use strict";i.d(t,{S:()=>o});var n=i(63447);let o=(0,i(34877).defineStore)("ai-quote",()=>{let e=(0,n.ref)(""),t=(0,n.ref)(""),i=(0,n.computed)(()=>""!==e.value);return{text:e,html:t,hasQuote:i,setQuote:function(i){e.value=i.text,t.value=i.html},clear:function(){e.value="",t.value=""}}})},50559:function(e,t,i){"use strict";i.d(t,{l:()=>o});var n=i(63447);let o=(0,i(34877).defineStore)("ai-selection",()=>{let e=(0,n.ref)(null);return{update:function(t){e.value=t},canInsert:(0,n.computed)(()=>null!==e.value)}})},73445:function(e,t,i){"use strict";i.d(t,{H:()=>r,e:()=>a});var n=i(63447);let o=Symbol();function r(e){(0,n.provide)(o,e)}function a(){return(0,n.inject)(o,{})}},63382:function(e,t,i){"use strict";i.r(t),i.d(t,{useAiHelperEventEmitter:()=>a});var n=i(11312),o=i.n(n);let r=null;function a(){return r??=new(o())}},14912:function(e,t,i){"use strict";i.d(t,{Sr:()=>s,_:()=>u,yn:()=>c,yp:()=>l});var n=i(12744),o=i(84433),r=i(32334),a=i(41385);function s(e){return"promptKey"in e}function l(e){return e.sectionKey??"ai_common"}let c="this_document",d=/(\[[^\]]+\])/;function u(e){let t=e.promptVars||[],i=(0,r.$)(l(e),e.promptKey).replaceAll("\\n","\n");return(0,a.format)(i,...t).split(d).map(e=>{if(!d.test(e))return{type:n.KR.TEXT,value:e};let t=e.slice(1,-1);return t===c?(0,o.WH)():{type:n.KR.EDITABLE_TAG,value:t}})}},1673:function(e,t,i){"use strict";i.d(t,{S3:()=>l.S,SJ:()=>d.S,Q9:()=>h.Q,nn:()=>u.n,y7:()=>p.y7,yn:()=>c.yn,qv:()=>r,ln:()=>s.l,y9:()=>a.y,Gz:()=>p.Gz,sc:()=>p.sc});var n=i(63447),o=i(63105);let r=(0,n.defineComponent)({__name:"MaybeAiHelperPanel",setup(e){let t=(0,n.defineAsyncComponent)(()=>i.e("48").then(i.bind(i,45265)));return(e,i)=>(0,n.unref)(o.$R)?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(t),(0,n.normalizeProps)((0,n.mergeProps)({key:0},e.$attrs)),null,16)):(0,n.createCommentVNode)("",!0)}});var a=i(24753),s=i(50559),l=i(52023),c=i(14912);i(19434);var d=i(90639),u=i(73787),h=i(99344),p=i(53991)},19434:function(e,t,i){"use strict";i.d(t,{HC:()=>l,TF:()=>o,WR:()=>r,Yk:()=>c,eR:()=>a,jk:()=>s,lu:()=>u,sv:()=>d});var n=i(63105);async function o(e){if(!e)return;let t=Object.entries(e);return Object.fromEntries(await Promise.all(t.map(async e=>{let[t,i]=e;return[t,await i]})))}async function r(e){let t,{prompt:i,vars:o,toolResults:r}=e;if(!i||r&&r.length>0||["make-shorter","summarize"].includes(i))return null;let a=o?.content;if("string"!=typeof a)return null;try{t=await n.tn.getConfig()}catch{return console.error("Failed to get synoai config"),null}let{providers:[{approximateAvailableCompletionPromptTokens:s}]}=t,l=s[i];if("number"!=typeof l)return null;l/=2;try{if(await n.tn.countTokens(a)<l)return null}catch(e){return console.error("Failed to count tokens:",e),null}return l}function a(e){let t=structuredClone(e);return delete t.prompt,delete t.vars?.content,t}function s(e){let{toolResults:t}=e;return!!t}function l(e){let{finishReason:t}=e;return t&&t!==n.q$.STOP&&t!==n.q$.TOOL_CALLS?n.tn.getFinishReasonMessage(t):null}function c(e){let{rawContent:t,errorCode:i}=e;return!!t||void 0!==i||null!==l(e)}function d(e){e.rawContent=void 0,e.output=void 0,e.errorCode=void 0,e.toolCalls=void 0,e.finishReason=void 0}function u(){return Math.random().toString(36).slice(2)}},90639:function(e,t,i){"use strict";i.d(t,{S:()=>n});let n="aiHelper"},94434:function(e,t,i){"use strict";i.d(t,{Z:()=>r});var n=i(63447);let o=null;function r(){return o||(o=function(){let e=(0,n.ref)(new Map);return{get:function(t){return e.value.get(t)},set:function(t,i){e.value.set(t,i)},remove:function(t){e.value.delete(t)},clear:function(){e.value.clear()}}}()),o}},73787:function(e,t,i){"use strict";i.d(t,{n:()=>g});var n=i(63447),o=i(63105),r=i(49922),a=i(52023),s=i(19434),l=i(99344),c=i(94434),d=i(63382),u=i(32334),h=i(41385),p=i(12299);let f=null;function g(){return f||(f=function(){let e=(0,n.ref)([]),t=(0,n.ref)([]),i=(0,n.ref)(!1),f=(0,n.computed)(()=>e.value.length+t.value.length===0),g=new Set,m=(0,c.Z)(),v=(0,l.Q)(),b="";async function y(t,i){return void 0===i&&(i={}),k(async()=>{let n=function(e){let{vars:t,sourceText:i,withQuote:n,...o}=e;if(n){let e=(0,a.S)();t={...t,content:e.html},i=e.text}return{vars:t,sourceText:i,withQuote:n,...o}}(function(e){let{prompt:t,vars:i,toolResults:n,tokens:o,sourceText:r,withQuote:a}=e;if(t=t?.replaceAll("_","-")??"",i={formatPreferred:"html",...i},n=t?void 0:n,t&&t.startsWith("translate-")){let e=t.replace("translate-","");t="translate",i={...i,language:e}}return{prompt:t,vars:i,toolResults:n,tokens:o,sourceText:r,withQuote:a}}({...i,prompt:t}));n.prompt&&"chat"!==n.prompt&&T();let o=e.value.length,r=I({...n,vars:void 0,key:(0,s.lu)()});(0,d.useAiHelperEventEmitter)().emit("userMadeRequest");try{r.vars=await (0,s.TF)(n.vars);let e=await (0,s.WR)(r);if(e){SYNO.SDS.Office.GetWindow().getMsgBox().alert("",(0,h.format)(n.withQuote?(0,u.$)("ai_common","selected_text_too_long"):(0,u.$)("ai_common","feature_failed_text_too_long"),e)),(0,p.c)("ai_reach_token_limit"),A();return}}catch(e){throw A(),e}i.withQuote&&(0,a.S)().clear();try{await w(r)}catch(t){t instanceof Error&&"AbortError"===t.name?(e.value.slice(o).forEach(e=>e.aborted=!0),e.value.splice(e.value.findLastIndex(e=>(0,s.Yk)(e))+1)):console.error(t)}})}async function w(e){await _(e)===o.HL.THREAD_NOT_EXISTS&&(A(),T(),(0,s.sv)(e),e=I(e),await O(),await D(),await _(e))}async function _(e){let t=(0,s.eR)(e),i=10;try{let{providers:[{type:e}]}=await o.tn.getConfig();"bedrock"===e&&(i=Number.MAX_SAFE_INTEGER)}catch{}for(let n=1;n<=i;n++){n===i&&(e.toolChoice="none");let{toolCalls:o,errorCode:r}=await S(e);if(r)return r;if(!Array.isArray(o)||0===o.length)return;let a=v.executeToolCalls(o);e=I({...t,toolResults:a,key:(0,s.lu)()})}}async function x(){return k(async()=>{let t=e.value.findLastIndex(e=>e.prompt);if(-1===t)return;let i=e.value[t],n=e.value.splice(t),o=structuredClone(i);o.requestId=void 0,o.aborted=void 0,o.key=(0,s.lu)(),(0,s.sv)(o);let r=I(o);(0,d.useAiHelperEventEmitter)().emit("userMadeRequest");try{await w(r)}catch(i){if(i instanceof Error&&"AbortError"===i.name){let i=e.value.slice(t);i.every(e=>!(0,s.Yk)(e))?(e.value.splice(t),e.value.push(...n),n=[]):(i.forEach(e=>e.aborted=!0),e.value.splice(e.value.findLastIndex(e=>(0,s.Yk)(e))+1))}else console.error(i)}finally{!function(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];for(let{requestId:e}of t)e&&m.remove(e)}(...n)}})}async function S(e){let{prompt:t="",vars:i,toolResults:n,parentRequestId:r,toolChoice:a}=e,s=new AbortController;g.add(s);try{let l=await o.tn.streamChat({prompt:t,vars:i,toolResults:n,threadId:await R(),parentRequestId:r,toolChoice:a},s.signal);await C(e,l)}catch(t){if(t instanceof o.C1)e.errorCode??=t.code;else if(t instanceof Error&&"AbortError"===t.name)throw t;else e.errorCode??=o.HL.UNKNOWN,console.error(t)}finally{g.delete(s)}return e}async function C(e,t){for await(let{message:i,requestId:n}of(e.rawContent="",e.output="",t))e.rawContent+=i,e.output=(0,r.renderToHtmlString)(e.rawContent,"ui"),e.requestId??=n;let{requestId:i,toolCalls:n,finishReason:o}=await t.finalChatResponse();e.requestId??=i,e.toolCalls=n,e.finishReason=o}async function k(e){if(!i.value)try{i.value=!0,await e()}finally{i.value=!1}}function I(t){return t.parentRequestId=e.value.findLast(e=>!e.aborted)?.requestId,e.value.push(t),e.value[e.value.length-1]}function A(){let t=e.value.pop();return t?.requestId&&m.remove(t.requestId),t}function T(){t.value.push(...e.value),e.value=[]}let E=null;async function R(){return E||(E=D()),E}async function D(){return E=o.tn.createThread({systemPrompt:b,tools:v.getToolDefinitions()}).then(e=>{let{id:t}=e;return t})}async function O(e){E&&await o.tn.deleteThread({...e,id:await E}),E=null}return window.addEventListener("beforeunload",()=>O({useSendBeacon:!0})),{messages:(0,n.readonly)(e),archived:(0,n.readonly)(t),busy:(0,n.readonly)(i),empty:(0,n.readonly)(f),setSystemPrompt:function(e){b=e},createMessage:y,regenerate:x,stop:function(){g.forEach(e=>e.abort())},clear:function(){e.value=[],t.value=[],m.clear(),O()}}}()),f}},14368:function(e,t,i){"use strict";i.d(t,{H:()=>r});var n=i(34877),o=i(63447);let r=(0,n.defineStore)("threadSectionMenu",()=>{let e=(0,o.ref)(""),t=(0,o.ref)(null);return{data:e,anchor:t,openMenu:function(i){let{anchor:n,data:o}=i;e.value=o??"",t.value=n??null},closeMenu:function(){e.value="",t.value=null}}})},99344:function(e,t,i){"use strict";i.d(t,{Q:()=>o});let n=null;function o(){let e;return n||(e=null,n={setTools:function(t){e=t&&t.length?{definitions:t.map(e=>({type:e.type,function:e.function})),implementations:Object.fromEntries(t.map(e=>[e.function.name,e.implementation]))}:null},getToolDefinitions:function(){return e?.definitions},getToolImplementations:function(){return e?.implementations},executeToolCalls:function(t){let i=[];for(let{id:n,name:o,arguments:r}of t){let t=e?.implementations[o];if(!t)continue;let a=t(r);i.push({id:n,name:o,content:a})}return i}}),n}},23461:function(e,t,i){"use strict";i.d(t,{Q9:()=>n.Q9,S3:()=>n.S3,SJ:()=>n.SJ,cD:()=>o.c,ln:()=>n.ln,nn:()=>n.nn,qv:()=>n.qv,s0:()=>o.s,y9:()=>n.y9,yn:()=>n.yn});var n=i(1673),o=i(29453)},84433:function(e,t,i){"use strict";let n;i.d(t,{tf:()=>ew,YG:()=>e_,ox:()=>ef,Pg:()=>ey,WH:()=>eS});var o=i(63447),r=i(55014),a=i(76293),s=i(46001),l=i(23886),c=i(40915);let d=["width","height"],u=(0,o.defineComponent)({name:"vIconIcSelectionReferClose",props:{width:{type:[Number,String],default:16},height:{type:[Number,String],default:16}}});var h=i(4337);let p=(0,h.default)(u,[["render",function(e,t,i,n,r,a){return(0,o.openBlock)(),(0,o.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 16 16",width:e.width,height:e.height},t[0]||(t[0]=[(0,o.createElementVNode)("path",{"fill-rule":"evenodd",d:"M5.146 10.096a.5.5 0 1 0 .708.707l2.12-2.121 2.122 2.121a.5.5 0 1 0 .707-.707L8.682 7.975l2.121-2.121a.5.5 0 1 0-.707-.708L7.975 7.268 5.854 5.146a.5.5 0 1 0-.708.708l2.122 2.12-2.122 2.122Z","clip-rule":"evenodd"},null,-1)]),8,d)}]]),f=(0,o.defineComponent)({__name:"SelectionInfo",props:{text:{}},emits:["clear"],setup(e,t){let{emit:i}=t;return(e,t)=>((0,o.openBlock)(),(0,o.createElementBlock)("div",{class:(0,o.normalizeClass)(e.$style.root)},[(0,o.createVNode)((0,o.unref)(l.Z),{"svg-icon":(0,o.unref)(c.Z),"svg-icon-set":"set07"},null,8,["svg-icon"]),(0,o.createElementVNode)("span",{class:(0,o.normalizeClass)(e.$style.text)},(0,o.toDisplayString)(e.text),3),(0,o.createVNode)((0,o.unref)(a.Z),{"syno-id":"close-button",display:"icon",type:"styleless",onClick:t[0]||(t[0]=e=>i("clear"))},{default:(0,o.withCtx)(()=>[(0,o.createVNode)((0,o.unref)(l.Z),{"svg-icon":(0,o.unref)(p),"svg-icon-set":"set22"},null,8,["svg-icon"])]),_:1})],2))}});var g=i(13699),m=i.n(g);let v={};v.$style=m();let b=(0,h.default)(f,[["__cssModules",v]]);var y=i(72428),w=i(22053),_=i(1673),x=i(32334),S=i(77574),C=i(58093);let k=(0,o.defineComponent)({__name:"AdjustmentButton",props:{adjustment:{}},emits:["apply"],setup(e,t){let{emit:i}=t,n=(0,o.computed)(()=>(0,_.sc)(e.adjustment)),r=(0,o.computed)(()=>(0,_.y7)(e.adjustment)>10?316:void 0);function s(){n.value||i("apply",e.adjustment)}function c(e){i("apply",e.synoId)}return(e,t)=>((0,o.openBlock)(),(0,o.createBlock)((0,o.unref)(a.Z),{"syno-id":`ai-${e.adjustment}-button`,class:(0,o.normalizeClass)(e.$style.button),alignment:"br->tr",onClick:s},{icon:(0,o.withCtx)(()=>[n.value?((0,o.openBlock)(),(0,o.createBlock)((0,o.unref)(l.Z),{key:0,"svg-icon":(0,o.unref)(S.Z),"svg-icon-set":"set08",class:(0,o.normalizeClass)(e.$style.icon)},null,8,["svg-icon","class"])):(0,o.createCommentVNode)("",!0)]),dropdown:(0,o.withCtx)(()=>[(0,o.createVNode)((0,o.unref)(w.NV),{"syno-id":`ai-${e.adjustment}-menu`,"default-alignment":(0,o.unref)(w.dl),height:r.value,"use-scrollbar":"",onItemSelect:c},{default:(0,o.withCtx)(()=>[(0,o.createVNode)(C.Z,{adjustment:e.adjustment},null,8,["adjustment"])]),_:1},8,["syno-id","default-alignment","height"])]),default:(0,o.withCtx)(()=>[(0,o.createTextVNode)((0,o.toDisplayString)((0,o.unref)(x.$)("ai_writer",e.adjustment))+" ",1)]),_:1},8,["syno-id","class"]))}});var I=i(15959),A=i.n(I);let T={};T.$style=A();let E=(0,h.default)(k,[["__cssModules",T]]);var R=i(50461);let D=["width","height"],O=(0,o.defineComponent)({name:"vIconIcSelectionReferMore",props:{width:{type:[Number,String],default:16},height:{type:[Number,String],default:16}}}),M=(0,h.default)(O,[["render",function(e,t,i,n,r,a){return(0,o.openBlock)(),(0,o.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 16 16",width:e.width,height:e.height},t[0]||(t[0]=[(0,o.createElementVNode)("path",{"fill-rule":"evenodd",d:"M9 5a1 1 0 1 1-2 0 1 1 0 0 1 2 0Zm0 3a1 1 0 1 1-2 0 1 1 0 0 1 2 0Zm-1 4a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z","clip-rule":"evenodd"},null,-1)]),8,D)}]]),N=(0,o.defineComponent)({__name:"AdjustmentOverflowButton",props:{adjustments:{}},emits:["apply"],setup(e,t){let{emit:i}=t;function n(e){i("apply",e)}return(e,t)=>((0,o.openBlock)(),(0,o.createBlock)((0,o.unref)(a.Z),{"syno-id":"ai-overflow-button",type:"round",display:"icon",alignment:"br->tr",class:(0,o.normalizeClass)(e.$style.button)},{icon:(0,o.withCtx)(()=>[(0,o.createVNode)((0,o.unref)(l.Z),{"svg-icon":(0,o.unref)(M),"svg-icon-set":"set07"},null,8,["svg-icon"])]),dropdown:(0,o.withCtx)(()=>[(0,o.createVNode)(R.Z,{adjustments:e.adjustments,"sub-menu-alignment":"bl->br",onApply:n},null,8,["adjustments"])]),_:1},8,["class"]))}});var P=i(97032),L=i.n(P);let B={};B.$style=L();let F=(0,h.default)(N,[["__cssModules",B]]);var V=i(12299);let z=(0,o.defineComponent)({__name:"AdjustmentButtonList",emits:["apply"],setup(e,t){let{emit:i}=t,{createMessage:n}=(0,_.nn)();function r(e){n(e,{withQuote:!0}),(0,V.c)(`ai_apply_${e}_input_area`),i("apply")}return(e,t)=>((0,o.openBlock)(),(0,o.createBlock)((0,o.unref)(y.Z),{items:(0,o.unref)(_.Gz),class:(0,o.normalizeClass)(e.$style.list)},{default:(0,o.withCtx)(e=>{let{item:t}=e;return[(0,o.createVNode)(E,{adjustment:t,onApply:r},null,8,["adjustment"])]}),"overflow-item":(0,o.withCtx)(e=>{let{overflowItems:t}=e;return[(0,o.createVNode)(F,{adjustments:t,onApply:r},null,8,["adjustments"])]}),_:1},8,["items","class"]))}});var H=i(92362),W=i.n(H);let Y={};Y.$style=W();let U=(0,h.default)(z,[["__cssModules",Y]]);var G=i(25260),Z=i(12744),j=i(77415),q=i(52023),K=i(73787),X=i(73445),Q=i(59721),$=i(49708),J=i(90399),ee=i(39787),et=i(41385);let ei=["innerHTML"],en={key:0},eo=(0,o.defineComponent)({__name:"FileExtractFailWindow",props:{docNames:{},failText:{},failWithMoreText:{}},setup(e){let t=(0,o.useTemplateRef)("window"),i=(0,o.computed)(()=>e.docNames.length>5),n=(0,o.computed)(()=>{let t=i.value?e.failWithMoreText:e.failText;return(0,et.format)(t,e.docNames.slice(0,5).join((0,x.$)("common","comma")))}),r=(0,o.computed)(()=>e.docNames.slice(5)),a=(0,o.computed)(()=>r.value.join((0,x.$)("common","comma"))),s=(0,o.computed)(()=>(0,et.format)((0,x.$)("ai_writer","file_extract_failed_and_other"),r.value.length)),l=(0,o.computed)(()=>({cancel:{text:""}}));return(e,r)=>{let c=(0,o.resolveDirective)("tooltip");return(0,o.openBlock)(),(0,o.createBlock)((0,o.unref)(ee.Z),{ref_key:"window",ref:t,"syno-id":"window",buttons:l.value,"do-confirm":()=>((0,o.unref)(t)?.onClose(),!1)},{content:(0,o.withCtx)(()=>[(0,o.createElementVNode)("div",{class:(0,o.normalizeClass)([e.$style.text,"dialog-content"])},[(0,o.createElementVNode)("span",{innerHTML:n.value},null,8,ei),i.value?(0,o.withDirectives)(((0,o.openBlock)(),(0,o.createElementBlock)("span",en,[(0,o.createElementVNode)("b",null,(0,o.toDisplayString)(s.value),1)])),[[c,a.value]]):(0,o.createCommentVNode)("",!0)],2)]),_:1},8,["buttons","do-confirm"])}}});var er=i(5971),ea=i.n(er);let es={};es.$style=ea();let el=(0,h.default)(eo,[["__cssModules",es]]),ec=["rows","placeholder","disabled"],ed=(0,o.defineComponent)({__name:"InputArea",props:{type:{default:"rich-text"},sendButton:{type:Boolean,default:!0},placeholder:{},initialValue:{},maxContent:{},height:{},maxHeight:{},textareaMinRows:{default:2},textareaMaxRows:{default:4},validator:{},customCandidates:{}},emits:["submit"],setup(e,t){let i,{expose:n,emit:l}=t,c=(0,Q.O)(),d=(0,$.e)(),{openFileWindow:u}=(0,j.eG)(e=>{(0,J.hy)(el,{docNames:e.map(e=>e.name),failText:(0,x.$)("ai_writer","file_permission_failed"),failWithMoreText:(0,x.$)("ai_writer","file_permission_failed_with_more")})},N),{busy:h,stop:p}=(0,K.n)(),f=(0,q.S)(),g=(0,X.e)(),m=(0,o.ref)(""),v=(0,o.ref)(""),y=(0,o.ref)([]),w=!1,_=(0,o.computed)(()=>""!==m.value),S=(0,o.computed)(()=>{let t=e.height?`${e.height}px`:void 0,i=[];return e.maxHeight&&i.push(e.maxHeight),e.textareaMaxRows&&i.push(20*e.textareaMaxRows+0),{height:t,maxHeight:i.length>0?`${Math.min(...i)}px`:void 0}}),C=(0,o.computed)(()=>!_.value&&("textarea"===e.type?!!v.value:y.value.some(e=>e.value.trim().length>0))),k=(0,o.useTemplateRef)("container"),I=(0,o.useTemplateRef)("richEditor"),A=(0,o.useTemplateRef)("textarea");async function T(t){m.value=function(t){let i=e.maxContent??5e3;return t.length>i?(0,x.$)("ai_common","exceed_input_limit_message").replace("{0}",String(i)):e.validator?.(t)??""}(t),await (0,o.nextTick)(),W()}async function E(){m.value?k.value?.showPopup():k.value?.hidePopup()}function R(e){y.value=e}function D(e){!e.isComposing&&"process"!==e.key&&229!==e.keyCode&&(e.shiftKey||(e.preventDefault(),O()))}function O(){C.value&&l("submit")}function M(e,t){return"odoc"===e||"oslides"===e?t===c.linkId?location.origin+location.pathname+location.search:SYNO.SDS.Office.URL.getOfficeURL(t):SYNO.SDS.Office.WebAPI.getFileRequestUrl(t)}function N(e){let t=[];for(let i of e)t.push({value:i.name,type:Z.KR.TAG,id:i.linkId,iconKey:i.type,href:M(i.type,i.linkId)});I.value?.insertTagTokens(t)}function P(e){return{type:"item",title:e.name,id:e.linkId,iconKey:e.type,desc:e.path?.slice(0,e.path.lastIndexOf("/")),data:{href:M(e.type,e.linkId)}}}async function L(t){i||(i=(0,j.N0)());let n=await i,o=[],r=c.extension;!w&&r&&"osheet"!==r&&o.push(P({name:(0,x.$)("ai_common","this_document"),linkId:c.linkId,type:r}));let a=e.customCandidates;a&&("function"==typeof a&&(a=a()),o.push(...a));let s=n.filter(e=>e.linkId!==c.linkId).slice(0,t);return s.length>0&&o.push({type:"group",title:(0,x.$)("ai_common","recent_files"),items:s.map(P)}),o}async function B(e){let t=await L(""===e?10:20);return e?(0,Z.XX)(t,e):t}function F(){i=void 0,w=!1}async function V(){w=!0,I.value?.openCandidateMenu("")}function z(){let e=c.extension;e&&"osheet"!==e&&N([{name:(0,x.$)("ai_common","this_document"),linkId:c.linkId,type:e}])}function H(){v.value="",y.value=[],m.value="",I.value?.updateTokens([])}function W(){"rich-text"===e.type?I.value?.updateHeight():"textarea"===e.type&&A.value&&(A.value.style.height="auto",A.value.scrollHeight>0&&(A.value.style.height=`${A.value.scrollHeight}px`))}return(0,o.watch)(()=>y.value,async e=>{T(e.map(e=>e.value).join(""))}),(0,o.watch)(()=>v.value,async e=>{T(e)}),(0,o.watch)(()=>m.value,async()=>{await (0,o.nextTick)(),E()}),(0,o.onMounted)(async()=>{e.initialValue&&("string"==typeof e.initialValue?v.value=e.initialValue:y.value=e.initialValue),await (0,o.nextTick)(),W(),setTimeout(E,0)}),n({get inputTokens(){return y.value},get inputText(){return v.value},get isInvalid(){return _.value},clear:H,focus:function(){"rich-text"===e.type?I.value?.focus():"textarea"===e.type&&A.value?.focus()},updateHeight:W,updateTokens:function(e){I.value?.updateTokens(e)}}),(e,t)=>((0,o.openBlock)(),(0,o.createBlock)((0,o.unref)(r.Z),{ref:"container",type:"error",disable:!_.value,content:m.value,"tip-options":{triggerAction:"custom",align:"br->tr"},class:(0,o.normalizeClass)({"has-error":_.value})},{default:(0,o.withCtx)(()=>["rich-text"===e.type?((0,o.openBlock)(),(0,o.createBlock)((0,o.unref)(Z.E6),{key:0,ref:"richEditor",loading:(0,o.unref)(h),height:e.height,"max-height":e.maxHeight,tokens:y.value,placeholder:e.placeholder,"disable-query":(0,o.unref)(g).disableQuery,"query-placeholder":(0,o.unref)(x.$)("ai_common","search"),"on-query-change":B,"on-query-end":F,"show-candidate-menu-bottom-actions":(0,o.unref)(d).fileBrowsable,"candidate-menu-bottom-actions-text":(0,o.unref)(x.$)("ai_common","search_by_path"),"send-button":"","send-button-disabled":!C.value,"icon-map":(0,o.unref)(j.q0),"candidate-menu-anchor":"bl->tl","candidate-menu-offset":[0,-2],"candidate-menu-width":316,class:(0,o.normalizeClass)(e.$style.editor),onClickCandidateMenuBottomAction:(0,o.unref)(u),onConfirm:O,onStop:(0,o.unref)(p),"onUpdate:tokens":R},{"editor-header":(0,o.withCtx)(()=>[(0,o.unref)(f).hasQuote?((0,o.openBlock)(),(0,o.createElementBlock)("div",{key:0,class:(0,o.normalizeClass)(e.$style["editor-header"])},[(0,o.createVNode)(b,{text:(0,o.unref)(f).text,onClear:(0,o.unref)(f).clear},null,8,["text","onClear"]),(0,o.createVNode)(U,{onApply:H})],2)):(0,o.createCommentVNode)("",!0)]),"footer-left":(0,o.withCtx)(()=>[(0,o.unref)(g).disableQuery?(0,o.createCommentVNode)("",!0):((0,o.openBlock)(),(0,o.createBlock)((0,o.unref)(a.Z),{key:0,"syno-id":"query-button",type:"split",size:"small",class:(0,o.normalizeClass)(e.$style["query-button"]),onClick:z,onClickDropdown:V},{default:(0,o.withCtx)(()=>[(0,o.createTextVNode)((0,o.toDisplayString)((0,o.unref)(x.$)("ai_common","add_this_file")),1)]),_:1},8,["class"]))]),_:1},8,["loading","height","max-height","tokens","placeholder","disable-query","query-placeholder","show-candidate-menu-bottom-actions","candidate-menu-bottom-actions-text","send-button-disabled","icon-map","class","onClickCandidateMenuBottomAction","onStop"])):(0,o.createCommentVNode)("",!0),"textarea"===e.type?((0,o.openBlock)(),(0,o.createElementBlock)("div",{key:1,class:(0,o.normalizeClass)(e.$style.textarea)},[(0,o.createVNode)((0,o.unref)(s.Z),{class:(0,o.normalizeClass)(e.$style["textarea-scrollbar"]),"view-style":S.value,"show-x-rail":!1},{default:(0,o.withCtx)(()=>[(0,o.withDirectives)((0,o.createElementVNode)("textarea",{ref:"textarea","onUpdate:modelValue":t[0]||(t[0]=e=>v.value=e),rows:e.textareaMinRows,placeholder:e.placeholder,disabled:(0,o.unref)(h),class:(0,o.normalizeClass)(e.$style["textarea-input"]),onKeydown:(0,o.withKeys)(D,["enter"])},null,42,ec),[[o.vModelText,v.value]])]),_:1},8,["class","view-style"]),(0,o.createVNode)(G.Z,{type:"submit",disabled:!C.value,class:(0,o.normalizeClass)(e.$style["submit-button"]),onClick:O},null,8,["disabled","class"])],2)):(0,o.createCommentVNode)("",!0)]),_:1},8,["disable","content","class"]))}});var eu=i(60464),eh=i.n(eu);let ep={};ep.$style=eh();let ef=(0,h.default)(ed,[["__cssModules",ep]]);var eg=i(30947),em=i.n(eg),ev=i(56925);async function eb(e,t){let{iconKey:i}=t;if("odoc"===i||"oslides"===i)try{await em().request({api:"SYNO.Office.Snapshot",method:"create",version:2,params:{link_id:e}})}catch{}return(0,j.Mv)(e)}async function ey(e,t){let i=new Map,o=[];for(let t of e)t.type===Z.KR.TAG&&t.id&&i.set(t.id,t);let r=[],a=Array.from(i.entries()).map(async e=>{let[i,a]=e;try{return await (n??(n=new ev.TaskQueue({concurrency:6}))).enqueue(async()=>{let e=await t?.(i,a)??await eb(i,a);e?o.push(`
${a.value}
\`\`\`
${e}
\`\`\`
`):r.push({id:i,name:a.value+(a.iconKey?`.${a.iconKey}`:"")})})}catch(e){console.error("Error preparing reference content:",e,"link_id:",i)}});if(await Promise.all(a),r.length>0)throw(0,J.hy)(el,{docNames:r.map(e=>e.name),failText:(0,x.$)("ai_writer","file_extract_failed"),failWithMoreText:(0,x.$)("ai_writer","file_extract_failed_with_more")}),Error(`Files extract failed: ${r.map(e=>e.id).join(", ")}`);let s=[];for(let t of e){let e=t.value;t.type===Z.KR.TAG&&t.id&&(e=` {${e}} `),s.push(e)}return(s.join("")+o.join("")).trim()}function ew(e){let t=(0,o.computed)(()=>e.value?.isInvalid??!1);return{isInputInvalid:t,isInputEmpty:(0,o.computed)(()=>e.value?.inputTokens.length===0),clear:function(){e.value?.clear()},focus:function(){e.value?.focus()},onResize:function(){(e.value?.$el?.scrollHeight??0)<=0||e.value?.updateHeight()},updateTokens:function(t){e.value?.updateTokens(t)},getTokens:function(){return e.value?.inputTokens??[]}}}function e_(e){return{getText:function(){return e.value?.inputText??""},clear:function(){e.value?.clear()},focus:function(){e.value?.focus()}}}var ex=i(5890);function eS(){let e=(0,ex.D)().link_id,t=(0,ex.D)().ntype;return{value:(0,x.$)("ai_common","this_document"),type:Z.KR.TAG,id:e,iconKey:function(e){switch(e){case"doc":return"odoc";case"presentation":return"oslides";default:return}}(t),cls:function(e){switch(e){case"doc":return"tag-odoc";case"presentation":return"tag-oslides";default:return}}(t),href:location.origin+location.pathname+location.search}}},29453:function(e,t,i){"use strict";i.d(t,{c:()=>r,s:()=>o});var n=i(32334);let o=["english","traditional_chinese","simplified_chinese","german","french","korean","spanish","dutch","italian","russian","polish","portuguese","japanese","indonesian","thai","vietnamese","hindi"],r=(0,n.$)("common",`language_${_S("lang")}`)},77415:function(e,t,i){"use strict";i.d(t,{eG:()=>I,Mv:()=>A,q0:()=>x,N0:()=>T});var n=i(30947),o=i.n(n),r=i(56391),a=i(90977),s=i(63447);let l=["width","height"],c=(0,s.defineComponent)({name:"vIconPdf",props:{width:{type:[Number,String],default:64},height:{type:[Number,String],default:64}}});var d=i(4337);let u=(0,d.default)(c,[["render",function(e,t,i,n,o,r){return(0,s.openBlock)(),(0,s.createElementBlock)("svg",{viewBox:"0 0 64 64",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",fill:"currentColor",width:e.width,height:e.height},t[0]||(t[0]=[(0,s.createStaticVNode)('<title>64/pdf</title><g id="2ad69a7b936135ca653e35dad3aee4c9__2021Q1-7.0-file-station-icon" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"><g id="2ad69a7b936135ca653e35dad3aee4c9__64/pdf"><g id="2ad69a7b936135ca653e35dad3aee4c9__Group" fill="#FFFFFF" stroke="#C6CACF" stroke-width="3"><g id="2ad69a7b936135ca653e35dad3aee4c9__Rectangle"><path d="M41.7573593,5.5 C42.155184,5.5 42.5367149,5.65803526 42.8180195,5.93933983 L42.8180195,5.93933983 L55.0606602,18.1819805 C55.3419647,18.4632851 55.5,18.844816 55.5,19.2426407 L55.5,19.2426407 L55.5,57 C55.5,57.4142136 55.3321068,57.7892136 55.0606602,58.0606602 C54.7892136,58.3321068 54.4142136,58.5 54,58.5 L54,58.5 L10,58.5 C9.58578644,58.5 9.21078644,58.3321068 8.93933983,58.0606602 C8.66789322,57.7892136 8.5,57.4142136 8.5,57 L8.5,57 L8.5,7 C8.5,6.58578644 8.66789322,6.21078644 8.93933983,5.93933983 C9.21078644,5.66789322 9.58578644,5.5 10,5.5 L10,5.5 Z"></path></g></g><path d="M25.5737605,42.5114995 C25.4220776,42.8357512 25.2532452,43.1805838 25.0671515,43.5463745 L25.0671515,43.5463745 L24.6719155,44.3060118 L24.2304498,45.1222079 L23.9923185,45.551725 C22.267342,48.6397189 17.5111199,48.4174001 15.7118002,45.5257952 L15.7118002,45.5257952 L15.6121445,45.3577371 C13.8932543,42.3119196 16.2010515,38.176844 19.5383829,38.2070998 L19.5383829,38.2070998 L20.1825039,38.2014534 C21.0539909,38.1981275 21.9761442,38.2116029 22.9493313,38.2417684 L22.9493313,38.2417684 L24.3905368,38.2863019 L30.4055368,27.9593019 L29.494339,26.6872933 C29.0055542,26.005438 28.4651735,25.188322 27.8698134,24.2324707 L27.6112831,23.814316 C25.7015539,20.7033112 28.4439801,16.7433019 31.9032436,16.7433019 C35.4660233,16.7433019 38.0716015,20.8789029 36.2198052,23.7924689 L36.2198052,23.7924689 L35.891954,24.3303467 C35.4445741,25.0557951 34.9562059,25.8143888 34.4267475,26.6065268 L34.4267475,26.6065268 L33.6325368,27.7943019 L40.1265368,38.3223019 L42.4407171,38.2188982 L43.1475515,38.2006788 L43.9117703,38.1936517 C44.0439473,38.1934085 44.178534,38.1936281 44.31554,38.1943086 L44.31554,38.1943086 L45.1666824,38.2039099 L45.614168,38.2128329 C49.2103417,38.2942086 51.2418433,42.6532494 49.3423699,45.5885214 C47.4376515,48.5318984 42.6017253,48.4760838 41.0687327,45.5020433 L41.0687327,45.5020433 L40.7699921,44.9483775 C40.369824,44.1973657 39.962243,43.3951677 39.546963,42.5415059 L39.546963,42.5415059 L38.7965368,40.9993019 L26.2805368,40.9993019 Z M22.8563861,41.2403283 C21.6832006,41.2039635 20.5910647,41.1927912 19.5799784,41.2068114 C18.5837266,41.1980062 17.548901,42.7997701 18.2589309,43.9408267 C18.9099209,44.9870032 20.8227788,45.0741216 21.3732472,44.0886921 C21.4419084,43.9657771 21.509044,43.8447977 21.5746541,43.7257539 L21.5746541,43.7257539 L21.9500077,43.0347175 L22.2887475,42.3901344 L22.5908737,41.7920047 C22.6854801,41.6003703 22.7739843,41.4164782 22.8563861,41.2403283 Z M44.1192005,41.1936543 L43.9302007,41.1936272 L43.2113805,41.2000262 C42.8668419,41.2058287 42.5446108,41.2155356 42.244687,41.2291471 C42.7437471,42.25503 43.2292573,43.199743 43.7012178,44.0632862 C44.1453817,44.9244287 46.0931848,45.087576 46.8237298,43.9586588 C47.4935291,42.9236124 46.7054969,41.2382959 45.5463002,41.2120652 C45.4017108,41.2087933 45.2596001,41.2059554 45.1199679,41.2035512 L45.1199679,41.2035512 L44.3119182,41.1943322 C44.1822004,41.1936634 44.0549613,41.1934284 43.9302007,41.1936272 Z M32.097,31.017 L28.029,38 L36.403,38 L32.097,31.017 Z M31.9032436,19.7433019 C30.6392788,19.7433019 29.5767499,21.2816941 30.1679936,22.2448473 C30.2417408,22.3649837 30.3145555,22.4828605 30.3864379,22.5984777 L30.3864379,22.5984777 L30.8065425,23.2650657 C30.874695,23.3716446 30.9419151,23.4759638 31.0082028,23.5780234 L31.0082028,23.5780234 L31.3947393,24.1632662 L31.7588972,24.6942788 L31.9325842,24.9394487 C32.5691,23.987139 33.1415091,23.0889386 33.6498115,22.2448473 C34.1707354,21.4247905 33.2818404,19.7433019 31.9032436,19.7433019 Z" id="2ad69a7b936135ca653e35dad3aee4c9__Combined-Shape" fill="#F4511E" fill-rule="nonzero"></path></g></g>',2)]),8,l)}]]),h=["width","height"],p=(0,s.defineComponent)({name:"vIconDoc",props:{width:{type:[Number,String],default:64},height:{type:[Number,String],default:64}}}),f=(0,d.default)(p,[["render",function(e,t,i,n,o,r){return(0,s.openBlock)(),(0,s.createElementBlock)("svg",{viewBox:"0 0 64 64",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",fill:"currentColor",width:e.width,height:e.height},t[0]||(t[0]=[(0,s.createStaticVNode)('<title>64/doc</title><g id="7ac1683b6a9f9c3a11f9637b938fefde__2021Q1-7.0-file-station-icon" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"><g id="7ac1683b6a9f9c3a11f9637b938fefde__64/doc"><g id="7ac1683b6a9f9c3a11f9637b938fefde__Group" fill="#FFFFFF" stroke="#C6CACF" stroke-width="3"><g id="7ac1683b6a9f9c3a11f9637b938fefde__Rectangle"><path d="M41.7573593,5.5 C42.155184,5.5 42.5367149,5.65803526 42.8180195,5.93933983 L42.8180195,5.93933983 L55.0606602,18.1819805 C55.3419647,18.4632851 55.5,18.844816 55.5,19.2426407 L55.5,19.2426407 L55.5,57 C55.5,57.4142136 55.3321068,57.7892136 55.0606602,58.0606602 C54.7892136,58.3321068 54.4142136,58.5 54,58.5 L54,58.5 L10,58.5 C9.58578644,58.5 9.21078644,58.3321068 8.93933983,58.0606602 C8.66789322,57.7892136 8.5,57.4142136 8.5,57 L8.5,57 L8.5,7 C8.5,6.58578644 8.66789322,6.21078644 8.93933983,5.93933983 C9.21078644,5.66789322 9.58578644,5.5 10,5.5 L10,5.5 Z"></path></g></g><polygon id="7ac1683b6a9f9c3a11f9637b938fefde__W" fill="#296EE6" fill-rule="nonzero" points="28.6140431 44 31.9550252 30.3196776 35.3859569 44 40.8471776 44 46 23 40.9756769 23 37.8916934 37.4560107 34.5378614 23 29.6163378 23 26.0954566 37.4560107 23.1528224 23 18 23 23.1528224 44"></polygon></g></g>',2)]),8,h)}]]),g=["width","height"],m=(0,s.defineComponent)({name:"vIconPpt",props:{width:{type:[Number,String],default:64},height:{type:[Number,String],default:64}}}),v=(0,d.default)(m,[["render",function(e,t,i,n,o,r){return(0,s.openBlock)(),(0,s.createElementBlock)("svg",{viewBox:"0 0 64 64",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",fill:"currentColor",width:e.width,height:e.height},t[0]||(t[0]=[(0,s.createStaticVNode)('<title>64/ppt</title><defs><path d="M28.6240846,44 L28.6240846,37.1598388 L32.1244915,37.1598388 C33.7160293,37.1598388 35.0463792,36.9482874 36.1155411,36.5251847 C37.184703,36.1020819 38.1537836,35.4768301 39.0227828,34.6494291 C39.6574451,34.0382807 40.1456469,33.2837475 40.4873881,32.3858294 C40.8291294,31.4879113 41,30.5688381 41,29.6286098 C41,28.4157152 40.7681041,27.3767629 40.3043124,26.5117529 C39.8405207,25.6467428 39.1692433,24.9368704 38.2904801,24.3821357 C37.5581774,23.9214238 36.7160293,23.5758899 35.7640358,23.3455339 C34.8120423,23.115178 33.642799,23 32.2563059,23 L32.2563059,23 L23,23 L23,44 L28.6240846,44 Z M30.2351505,33.2108798 L28.6240846,33.2108798 L28.6240846,26.9207522 L29.5907242,26.9207522 C30.5183076,26.9207522 31.2603743,26.932505 31.8169243,26.9560107 C32.3734744,26.9795165 32.9446705,27.1040967 33.5305126,27.3297515 C33.9698942,27.4989926 34.3555736,27.7975151 34.6875509,28.225319 C35.0195281,28.6531229 35.1855167,29.1631968 35.1855167,29.7555406 C35.1855167,30.3572868 35.1049634,30.8673606 34.9438568,31.2857623 C34.7827502,31.7041639 34.5215622,32.0638012 34.1602929,32.3646743 C33.7404394,32.7031565 33.2205045,32.9288113 32.6004882,33.0416387 C31.9804719,33.1544661 31.192026,33.2108798 30.2351505,33.2108798 L30.2351505,33.2108798 Z" id="d946efa07fc02b10b58274f410f1ff9d__path-1"></path></defs><g id="d946efa07fc02b10b58274f410f1ff9d__2021Q1-7.0-file-station-icon" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"><g id="d946efa07fc02b10b58274f410f1ff9d__64/ppt"><g id="d946efa07fc02b10b58274f410f1ff9d__Group" fill="#FFFFFF" stroke="#C6CACF" stroke-width="3"><g id="d946efa07fc02b10b58274f410f1ff9d__Rectangle"><path d="M41.7573593,5.5 C42.155184,5.5 42.5367149,5.65803526 42.8180195,5.93933983 L42.8180195,5.93933983 L55.0606602,18.1819805 C55.3419647,18.4632851 55.5,18.844816 55.5,19.2426407 L55.5,19.2426407 L55.5,57 C55.5,57.4142136 55.3321068,57.7892136 55.0606602,58.0606602 C54.7892136,58.3321068 54.4142136,58.5 54,58.5 L54,58.5 L10,58.5 C9.58578644,58.5 9.21078644,58.3321068 8.93933983,58.0606602 C8.66789322,57.7892136 8.5,57.4142136 8.5,57 L8.5,57 L8.5,7 C8.5,6.58578644 8.66789322,6.21078644 8.93933983,5.93933983 C9.21078644,5.66789322 9.58578644,5.5 10,5.5 L10,5.5 Z"></path></g></g><g id="d946efa07fc02b10b58274f410f1ff9d__P" fill-rule="nonzero"><use fill="#296EE6" xlink:href="#d946efa07fc02b10b58274f410f1ff9d__path-1"></use><use fill="#E65B05" xlink:href="#d946efa07fc02b10b58274f410f1ff9d__path-1"></use></g></g></g>',3)]),8,g)}]]),b=["width","height"],y=(0,s.defineComponent)({name:"vIconTxt",props:{width:{type:[Number,String],default:64},height:{type:[Number,String],default:64}}}),w=(0,d.default)(y,[["render",function(e,t,i,n,o,r){return(0,s.openBlock)(),(0,s.createElementBlock)("svg",{viewBox:"0 0 64 64",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",fill:"currentColor",width:e.width,height:e.height},t[0]||(t[0]=[(0,s.createStaticVNode)('<title>64/txt</title><g id="ac9bfc887fd34ac98b7e8d74aa8ec453__2021Q1-7.0-file-station-icon" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"><g id="ac9bfc887fd34ac98b7e8d74aa8ec453__64/txt"><g id="ac9bfc887fd34ac98b7e8d74aa8ec453__Group" fill="#FFFFFF" stroke="#C6CACF" stroke-width="3"><g id="ac9bfc887fd34ac98b7e8d74aa8ec453__Rectangle"><path d="M41.7573593,5.5 C42.155184,5.5 42.5367149,5.65803526 42.8180195,5.93933983 L42.8180195,5.93933983 L55.0606602,18.1819805 C55.3419647,18.4632851 55.5,18.844816 55.5,19.2426407 L55.5,19.2426407 L55.5,57 C55.5,57.4142136 55.3321068,57.7892136 55.0606602,58.0606602 C54.7892136,58.3321068 54.4142136,58.5 54,58.5 L54,58.5 L10,58.5 C9.58578644,58.5 9.21078644,58.3321068 8.93933983,58.0606602 C8.66789322,57.7892136 8.5,57.4142136 8.5,57 L8.5,57 L8.5,7 C8.5,6.58578644 8.66789322,6.21078644 8.93933983,5.93933983 C9.21078644,5.66789322 9.58578644,5.5 10,5.5 L10,5.5 Z"></path></g></g><rect id="ac9bfc887fd34ac98b7e8d74aa8ec453__Rectangle" fill="#B0B7BF" x="16" y="41" width="32" height="3"></rect><rect id="ac9bfc887fd34ac98b7e8d74aa8ec453__Rectangle" fill="#B0B7BF" x="16" y="48" width="18" height="3"></rect><rect id="ac9bfc887fd34ac98b7e8d74aa8ec453__Rectangle-Copy" fill="#B0B7BF" x="16" y="34" width="32" height="3"></rect><rect id="ac9bfc887fd34ac98b7e8d74aa8ec453__Rectangle-Copy-2" fill="#B0B7BF" x="16" y="27" width="32" height="3"></rect></g></g>',2)]),8,b)}]]),_=["odoc","oslides","pdf","docx","pptx","txt"],x={odoc:r.Z,oslides:a.Z,pdf:u,docx:f,pptx:v,txt:w};var S=i(49708);function C(e){let t=e.lastIndexOf(".");if(-1===t)return{basename:e,extension:"txt"};let i=e.slice(t+1);return _.includes(i)?{basename:e.slice(0,t),extension:i}:{basename:e,extension:"txt"}}function k(e){return e.capabilities.can_read&&e.capabilities.can_download&&!e.encrypted}function I(e,t){function i(i,n){let o=[],r=[];for(let e of n){if(!k(e)){o.push({name:e.name});continue}let t=C(e.name);r.push({name:t.basename,linkId:e.permanent_link,type:t.extension,path:e.display_path})}let a=[];for(let e of r)a.push(e);a.sort((e,t)=>e.name.localeCompare(t.name)),t(a),o.length>0&&e(o)}return{openFileWindow:function(){SYNO.SDS.AppLaunch("SYNO.SDS.Drive.Upload.Application",{from_upload:!1,from_drive:!0,from_nas:!1,from_url:!1,activeItem:"from_drive",viewMode:"list",allowDblClick:!0,filter:{extensions:_},onApply:i},!1)}}}async function A(e){return(await o().request({api:"SYNO.Office.File",method:"extract",version:1,params:{link_id:e}})).data.trim()}async function T(){return(0,S.e)().fileBrowsable?(await o().request({api:"SYNO.SynologyDrive.Files",method:"recent",version:2,params:{limit:500,filter:{extensions:_}}})).items.filter(e=>k(e)).map(e=>{let t=C(e.name);return{name:t.basename,linkId:e.permanent_link,type:t.extension,path:SYNO.SDS.Drive.Utils.parseDisplayPath(e.display_path)}}):[]}},49922:function(e,t,i){"use strict";i.r(t),i.d(t,{renderToDocumentFragment:()=>l,renderToHtmlString:()=>s});var n=i(153);let o={inputFormat:"markdown",htmlSanitizer:(()=>{let e=(0,n.en)();return e.setConfig({...n.lr,FORBID_ATTR:["style"]}),e.addHook("afterSanitizeAttributes",e=>{"A"===e.tagName&&(e.setAttribute("target","_blank"),e.setAttribute("rel","noopener noreferrer"))}),e})()},r={inputFormat:"markdown",htmlSanitizer:(()=>{let e=(0,n.en)();return e.setConfig(n.lr),e})()};function a(e){return"insert"===e?r:o}function s(e,t){return(0,n.wB)(e,a(t))}function l(e,t){return(0,n.qx)(e,a(t))}},12559:function(e,t,i){"use strict";i.d(t,{W:()=>o});var n=i(68295);let o=Ext.define("SYNO.SDS.Office.BottomPanel",{extend:"SYNO.ux.Panel",constructor(e){this.owner=e.owner;let t={region:"south",cls:"syno-o-bottom-panel",height:300,layout:"fit",hidden:!1,collapsed:!0,items:this.createItems(),...e};SYNO.ux.Panel.prototype.constructor.call(this,t),this.on("expand",this._onExpand,this),this.on("beforecollapse",this._onBeforeCollapse,this),this.mon(this.commentPanel,"close",this.collapse,this)},createItems(){return this.commentPanel=new n.kd({owner:this,main:this.owner}),this.commentPanelContainer=new n.w5({innerPanel:this.commentPanel}),[this.commentPanelContainer]},_onExpand(){this.findAppWindow().mainPanel.setTopBarDisplayed(!1),this.commentPanel.fireEvent("panel-activate"),this._updateActivePanel()},_onBeforeCollapse(){this.findAppWindow().mainPanel.setTopBarDisplayed(!0),this.commentPanel.fireEvent("panel-deactivate")},_updateActivePanel(){this.commentPanel.updatePanel()},showCommentById(e){this.showCommentsByIds([e])},showCommentsByIds(e){}})},55693:function(e,t,i){"use strict";i.d(t,{G:()=>a});var n=i(34877),o=i(63447);let r=(0,n.defineStore)("chart-edit",()=>{let e=(0,o.ref)(null),t=()=>{};return{chartInfo:e,relayMethod:function(e,i){t(e,i)},setChartInfo:t=>{e.value=t?(0,o.markRaw)(t):null},setRelayMethod:function(e){t=e}}}),a=()=>r()},22366:function(e,t,i){"use strict";i.d(t,{z:()=>n});let n="chart"},67929:function(e,t,i){"use strict";i(66991),i(11707),Ext.define("SYNO.SDS.Office.ColorPicker",{extend:"SYNO.SDS.Office.ToolbarItem.SplitButton",resetPreview:!1,constructor:function(e){e.singleAction=!e.selectColorOnClick,SYNO.SDS.Office.ToolbarItem.SplitButton.prototype.constructor.call(this,this.fillConfig(e)),this.color=this._colorMenu.parseColor(e.defaultColor),this.opacity=1,this.relayEvents(this._colorMenu,["paletteshow","paletteclose"])},fillConfig:function(e){var t=e.name||"color_picker",i=e.menuCfg||{},n=i.listeners;n||(n=i.listeners={}),n.colorselect=Ext.createSequence(this._onMenuSelect.bind(this),n.colorselect||Ext.emptyFn,n.scope);var o="syno-o-"+t.replace(/_/g,"-");return Ext.apply({itemId:t+"_sbtn",cls:o+"-sbtn"+(e.colorBtnStyle?" syno-o-color-btn-style":""),iconCls:o+"-btn",tooltip:e&&e.tooltip?e.tooltip:SYNO.SDS.Office._T("handsontable",t),menu:this._colorMenu=new SYNO.SDS.Office.ColorPickerMenu(Ext.apply({owner:this,color:e.defaultColor},i)),listeners:{render:{single:!0,scope:this,fn:function(e){var t=document.createElement("span");t.classList.add("syno-o-color-preview"),e.getEl().child("button").appendChild(t),this.renderPreview()}},click:!0===e.selectColorOnClick?this._selectColorOnClick:this._showMenuOnClick}},e)},_showMenuOnClick:function(){!this.menu||this.menu.isVisible()||this.ignoreNextClick||this.showMenu()},_selectColorOnClick:function(){this._colorMenu.emitColorSelect(this.getColor(),this.getOpacity())},_onMenuSelect:function(e,t,i){(this.resetPreview||null!==t)&&(this.color=t,this.opacity=i,this.renderPreview())},getColor:function(){return this.color},updateColor(e,t){this._colorMenu.updateColor(e,t),this.color=this._colorMenu.getColor(),this.opacity=this._colorMenu.getOpacity(),this.renderPreview()},getOpacity:function(){return this.opacity},renderPreview:function(){var e=this.getEl();if(e){var t=this.color;t&&"transparent"!==t&&(t="#"+t),e.child("span").setStyle({"background-color":t||"transparent",opacity:this.opacity})}}})},11707:function(e,t,i){"use strict";i(37655);var n=i(7474),o=i(61367),r=i(54736),a=i(27107);Ext.define("SYNO.SDS.Office.ColorPickerMenu",{extend:"SYNO.SDS.Office.Menu",colNumber:10,resetBtn:!0,transparentBtn:!1,constructor:function(e){this.owner=e.owner,this.enableAlpha=e.enableAlpha,Ext.isDefined(e.resetBtn)&&(this.resetBtn=e.resetBtn),Ext.isDefined(e.transparentBtn)&&(this.transparentBtn=e.transparentBtn),SYNO.SDS.Office.Menu.prototype.constructor.call(this,this.fillConfig(e)),this.color=this.parseColor(e.color)||null,this.opacity=void 0!==e.opacity?e.opacity:1,this.on("itemclick",this.onItemClick,this),this.on("beforeshow",this.onBeforeShow,this),e.focusAtFinal?(this.on("hide",()=>{let t=document.activeElement;(t===document.body||t.closest(".x-menu"))&&e.focusAtFinal()}),this.on("dropperstop",e.focusAtFinal),this.on("paletteclose",e.focusAtFinal)):this.on("dropperstop",()=>SYNO.SDS.Office.Utils.focusEditor())},fillConfig:function(e){var t,i=[],n=(0,a.GI)(),r={cls:"syno-o-color-item-horizontal-line",htmlEncode:!1,disabled:!0};for(this.resetBtn&&i.push({itemId:"reset_color_item",text:_T("common","reset"),cls:"reset-item",iconCls:"reset-color-icon"}),this.transparentBtn&&i.push({itemId:"set_transparent_item",text:SYNO.SDS.Office._T("common","transparent"),cls:"reset-item",iconCls:"reset-color-icon"}),i.push(r),t=0;t<n.length;t++)this.colNumber===t&&i.push(r),i.push(new SYNO.SDS.Office.ColorItem({color:n[t].value.slice(1),extraCls:n[t].light?"syno-o-color-light":"syno-o-color-deep"}));return(0,o.isMobileLayout)()||(i.push(r),e.enableFillImage&&i.push({itemId:"fill_pic_item",text:SYNO.SDS.Office._T("presentation","fill_image"),cls:"custom-item",iconCls:"fill-image-icon",callback:e.fillImageCb}),i.push({itemId:"screen_color_picker_item",text:SYNO.SDS.Office._T("tool","screen_color_picker"),cls:"custom-item",iconCls:"color-picker-icon"}),i.push({itemId:"custom_color_item",text:SYNO.SDS.Office._T("handsontable","custom_color"),cls:"custom-item",iconCls:"custom-color-icon"})),Ext.apply({cls:"syno-o-toolbar-color-menu "+(e.extraCls||""),items:i},e)},whenMenuHide:function(){return this.isVisible()?Promise.resolve():(this.waitForHidePromise||(this.waitForHidePromise=new Promise((e,t)=>{this.on("hide",()=>{this.waitForHidePromise=null,e()},this,{single:!0})})),this.waitForHidePromise)},onItemClick:function(e,t){var i,n=1;if(e.color){var o=e.color;i=o.substr(0,6),this.enableAlpha&&8===o.length&&(n=(0,r.p)(o.substr(6,2)))}else"reset_color_item"===e.itemId?i=null:"set_transparent_item"===e.itemId?i="transparent":"screen_color_picker_item"===e.itemId?this.whenMenuHide().then(()=>{this.openScreenColorPicker()}):"custom_color_item"===e.itemId?this.openCustomColorPicker():"fill_pic_item"===e.itemId&&e.callback();void 0!==i&&this._onSelectColor(i,n)},emitColorSelect:function(e,t){this.fireEvent("colorselect",this,e,t)},openScreenColorPicker:async function(){let e=await (0,n.P6)();e&&this._onSelectColor(e.color.replace("#",""),e.alpha),this.fireEvent("dropperstop")},openCustomColorPicker:async function(){this.fireEvent("paletteshow");let e=await (0,n.hP)(this.color,this.enableAlpha,this.getOpacity(),this.extraCls);if(e){let{color:t,alpha:i}=e;this._onSelectColor(t.replace("#",""),i)}this.fireEvent("paletteclose")},onBeforeShow:function(){(0,o.isMobileLayout)()||(this.updateCustomColor(),this.updateCustomColorItems(),this._syncColor()),this._renderSelected()},updateCustomColorItems(){let e=(0,a.M5)();e.length>0&&(this.getComponent("custom_color_item").el.dom.style.marginBottom="6px",e.forEach(function(e,t){if(!this.enableAlpha&&e.length>7)return;let i="color-"+(e=e.slice(1)),n=this.getComponent(i);Ext.isDefined(n)||this.addItem(new SYNO.SDS.Office.ColorItem({color:e,extraCls:"syno-o-color-custom"}))},this))},updateCustomColor:Ext.emptyFn,_syncColor(){this.fireEvent("selectmenucolor",this)},parseColor:function(e){var t=null;return e?t="none"===e||"#"!==e.charAt(0)&&6<e.length?"transparent":e.replace("#",""):t},_setColor:function(e){this.color=this.parseColor(e)},getColor:function(){return this.color},updateColor(e,t){this._setColor(e),this.enableAlpha&&void 0!==t&&this._setOpacity(t),this.hidden||this._renderSelected()},_renderSelected(){let e=this.color?this.color.toLowerCase():null,t=this.getOpacity();e&&this.enableAlpha&&Ext.isNumber(t)&&t<1&&(e+=(0,r.C)(t)),this.items.each(function(t){if(!t.color)return;let i=t.getEl().dom,n="syno-o-color-selected";t.color===e?i.classList.add(n):i.classList.remove(n)})},_setOpacity:function(e){(isNaN(e=parseFloat(e,10))||1<e)&&(e=1),this.opacity=e},getOpacity:function(){return this.enableAlpha?this.opacity:1},_onSelectColor:function(e,t){this.color=e,this.opacity=t,this.emitColorSelect(e,t)}}),Ext.define("SYNO.SDS.Office.ColorItem",{extend:"Ext.menu.Item",constructor:function(e){this.color=e.color;var t={itemId:"color-"+this.color,htmlEncode:!1,cls:"syno-o-color-item"+(e.extraCls?" "+e.extraCls:"")};Ext.menu.Item.prototype.constructor.call(this,t)},onRender:function(){Ext.menu.Item.prototype.onRender.apply(this,arguments);var e=this.color,t=this.getEl().dom.firstChild.style,i=e.substr(0,6);6<e.length&&(t.opacity=(0,r.p)(e.substr(6,2))),t.backgroundColor="#"+i}})},13971:function(e,t,i){"use strict";i.d(t,{Z:()=>w});var n=i(63447),o=i(13420),r=i(61367),a=i(32334),s=i(23886);let l={class:"custom-button-wrapper"},c=(0,n.defineComponent)({__name:"DropdownItem",props:{title:{},iconCls:{}},emits:["click"],setup(e,t){let{emit:i}=t;function o(){i("click")}return(t,i)=>((0,n.openBlock)(),(0,n.createElementBlock)("div",l,[(0,n.createVNode)((0,n.unref)(s.Z),{class:(0,n.normalizeClass)([e.iconCls,t.$style.icon]),type:"bkg-img"},null,8,["class"]),(0,n.createElementVNode)("button",{class:"color-picker-button",onClick:o},(0,n.toDisplayString)(e.title),1)]))}});var d=i(2599),u=i.n(d),h=i(4337);let p={};p.$style=u();let f=(0,h.default)(c,[["__cssModules",p]]),g=(0,n.defineComponent)({__name:"EyeDropperItem",setup:e=>(e,t)=>((0,n.openBlock)(),(0,n.createBlock)(f,(0,n.mergeProps)({"icon-cls":e.$style.icon,title:(0,n.unref)(a.$)("tool","screen_color_picker")},e.$attrs),null,16,["icon-cls","title"]))});var m=i(36523),v=i.n(m);let b={};b.$style=v();let y=(0,h.default)(g,[["__cssModules",b]]),w={props:{options:{type:Array,default:()=>(0,o.GI)().slice(10).map(e=>{let{value:t}=e;return t})},commonOptions:{type:Array,default:()=>(0,o.GI)().slice(0,10).map(e=>{let{value:t}=e;return t})},customOptions:{type:Array,default:()=>(0,o.M5)()},filterSameColor:{type:Boolean,default:!0},hasCustom:{type:Boolean,default:()=>!(0,r.isMobileLayout)()}},methods:{maybeCreateEyeDropper(e){this.hasCustom&&!this.$slots["top-custom"]&&(e??=()=>this.$emit("show-eyedropper"),this._.slots["top-custom"]=()=>[(0,n.h)(y,{onClick:e})])}}}},55554:function(e,t,i){"use strict";i.d(t,{h:()=>r});var n=i(43614),o=i(90399);function r(e,t,i,r){return void 0===t&&(t=!1),void 0===i&&(i=1),void 0===r&&(r=""),new Promise(a=>{(0,o.hy)(n.Z,{enableAlpha:t,initColor:e,initAlpha:i,customCls:r,onApply(e,t){a({color:`#${e}`,alpha:t})},onClose(){a(null)}})})}},46569:function(e,t,i){"use strict";async function n(){let e=SYNO.SDS.Office.GetWindow().getMainPanel(),t=e.screenColorPicker;if(!t.functionAvailable())return await e.showExtensionInstallationMsg("colorpicker"),null;try{let e=await t.getColorByClick();if(7!==e.length||!e.startsWith("#"))return null;return{color:e,alpha:1}}catch(e){if(e instanceof Error&&"AbortError"===e.name)return null;return SYNO.Debug.error(e),null}}i.d(t,{P:()=>n})},7474:function(e,t,i){"use strict";i.d(t,{P6:()=>s.P,hP:()=>a.h,uz:()=>o.Z,v3:()=>r.Z,zH:()=>n.Z});var n=i(87708),o=i(59416),r=i(43614),a=i(55554),s=i(46569)},44263:function(e,t,i){"use strict";i(32867);var n=i(18907);i(17176);var o=i(82795);Ext.define("SYNO.SDS.Office.RichToolbar.Combobox",{extend:o.L,listTooltip:!1,beforeCancel:Ext.emptyFn,constructor:function(e){o.L.prototype.constructor.apply(this,arguments),this.on("expand",function(e){-1===this.selectedIndex&&this.selectIfMatchCurrent()}),this.on("collapse",function(e){var t=document.activeElement;(t===document.body||SYNO.SDS.Office.EditorUtils.parentContains(t,"x-combo-list"))&&SYNO.SDS.Office.Utils.focusEditor()}),this.on("select",()=>{this.leave()}),this.on("beforequery",e=>e.forceAll=!0),this.on("afterrender",function(){if(this.findAppWindow().on("resize",()=>{this.isExpanded()&&this.restrictHeight()}),this.mon(this.el,"mousedown",e=>{this.fireEvent("mousedown",e)}),this.keyNav.esc=e=>{e.stopEvent(),this.cancel()},this.keyNav.enter=e=>{e.stopEvent(),this.onViewClick()},this.editable){let e=this.keyNav.up;this.keyNav.up=t=>{e.apply(this,t),this.updateRawValueBySelection()};let t=this.keyNav.down;this.keyNav.down=e=>{t.apply(this,e),this.updateRawValueBySelection()}}},this,{single:!0}),e&&e.tooltip&&this.on("afterrender",function(){var t=SYNO.SDS.Drive.Utils.doubleHtmlEncode(e.tooltip);this.el.dom.setAttribute("ext:qtip",t),this.trigger.dom.setAttribute("ext:qtip",t)})},initList:function(){if(o.L.prototype.initList.apply(this,arguments),!this.listTooltip)return;let e=this.view.getNodes(0,this.store.getCount()-1),t=Ext.fly(e[0]).getWidth(!0);for(let i of e){let{width:e}=Ext.util.TextMetrics.measure(i,i.textContent);e>t&&i.setAttribute("ext:qtip",SYNO.SDS.Drive.Utils.doubleHtmlEncode(i.textContent))}},leave:function(){this.collapse(),Ext.form.TriggerField.superclass.onBlur.call(this),SYNO.SDS.Office.Utils.focusEditor()},cancel:function(){this.beforeCancel(),this.resetRawValue(),this.leave()},beforeBlur:function(){this.resetRawValue()},resetRawValue:function(){this.setValue(this.getValue())},updateRawValueBySelection:function(){let e=this.selectedIndex;if(-1===e)return;let t=this.getStore().getAt(e).get(this.displayField);this.setRawValue(t)},onLoad:function(){this.view.clearSelections(),n.d.apply(this)},onViewClick:function(e){var t=this.view.getSelectedIndexes()[0],i=this.store.getAt(t);i?this.onSelect(i,t):this.onApplyRawValue(this)},onApplyRawValue:function(e){e.collapse()},selectIfMatchCurrent:function(){this.selectByValue(this.value,!0)}})},42326:function(e,t,i){"use strict";i.d(t,{U$:()=>b,rE:()=>c,hs:()=>y.Z});var n=i(63447);let o=(0,n.defineComponent)({name:"DropZone",props:{draggingCls:{type:String,default:""},dropEffect:{type:String,default:"copy"}},emits:["dragging","drop"],data:()=>({dragEnterCount:0}),computed:{allRootCls(){return[this.$style.root,this.dragging?[this.$style.dragging,this.draggingCls]:void 0]},dragging(){return this.dragEnterCount>0}},watch:{dragging(e){this.$emit("dragging",e)}},methods:{handleDrop(e){this.dragEnterCount=0,this.$emit("drop",e)},handleDragOver(e){e.dataTransfer.dropEffect=this.dropEffect},handleDragEnter(){this.dragEnterCount++},handleDragLeave(){this.dragEnterCount--}}});var r=i(62059),a=i.n(r),s=i(4337);let l={};l.$style=a();let c=(0,s.default)(o,[["render",function(e,t,i,o,r,a){return(0,n.openBlock)(),(0,n.createElementBlock)("div",{class:(0,n.normalizeClass)(e.allRootCls),onDrop:t[0]||(t[0]=(0,n.withModifiers)(function(){for(var t=arguments.length,i=Array(t),n=0;n<t;n++)i[n]=arguments[n];return e.handleDrop&&e.handleDrop(...i)},["stop","prevent"])),onDragover:t[1]||(t[1]=(0,n.withModifiers)(function(){for(var t=arguments.length,i=Array(t),n=0;n<t;n++)i[n]=arguments[n];return e.handleDragOver&&e.handleDragOver(...i)},["stop","prevent"])),onDragenter:t[2]||(t[2]=(0,n.withModifiers)(function(){for(var t=arguments.length,i=Array(t),n=0;n<t;n++)i[n]=arguments[n];return e.handleDragEnter&&e.handleDragEnter(...i)},["stop","prevent"])),onDragleave:t[3]||(t[3]=(0,n.withModifiers)(function(){for(var t=arguments.length,i=Array(t),n=0;n<t;n++)i[n]=arguments[n];return e.handleDragLeave&&e.handleDragLeave(...i)},["stop","prevent"]))},[e.dragging?((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:0,class:(0,n.normalizeClass)(e.$style["dragging-container"])},[(0,n.renderSlot)(e.$slots,"dragging-hint")],2)):(0,n.createCommentVNode)("",!0),(0,n.renderSlot)(e.$slots,"default")],34)}],["__cssModules",l]]);var d=i(32334),u=i(49708);let h=["src"],p=["href"],f=(0,n.defineComponent)({__name:"ActionBarMobile",props:{appLink:{},title:{},iconSrc:{},isTemplate:{type:Boolean}},emits:["download","close"],setup(e,t){let{emit:i}=t,o=(0,u.e)(),r=(0,n.toRef)(()=>o.downloadable);function a(){i("download")}function s(){i("close")}return(e,t)=>((0,n.openBlock)(),(0,n.createElementBlock)("div",{class:(0,n.normalizeClass)(e.$style.root)},[(0,n.createElementVNode)("div",{class:(0,n.normalizeClass)(e.$style.head)},[(0,n.createElementVNode)("div",{class:(0,n.normalizeClass)(e.$style.icon)},[(0,n.createElementVNode)("img",{src:e.iconSrc,width:"32",height:"32"},null,8,h)],2),(0,n.createElementVNode)("div",{class:(0,n.normalizeClass)(e.$style.title)},(0,n.toDisplayString)(e.title),3),(0,n.createElementVNode)("div",{class:(0,n.normalizeClass)(e.$style.close),onClick:s},null,2)],2),e.isTemplate?(0,n.createCommentVNode)("",!0):((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:0,class:(0,n.normalizeClass)(e.$style.action)},[(0,n.createElementVNode)("a",{href:e.appLink},(0,n.toDisplayString)((0,n.unref)(d.$)("mobile","open_in_app")),9,p)],2)),r.value?((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:1,class:(0,n.normalizeClass)(e.$style.action),onClick:a},(0,n.toDisplayString)((0,n.unref)(d.$)("handsontable","export")),3)):(0,n.createCommentVNode)("",!0)],2))}});var g=i(33556),m=i.n(g);let v={};v.$style=m();let b=(0,s.default)(f,[["__cssModules",v]]);var y=i(67378)},37237:function(e,t,i){"use strict";i.d(t,{j:()=>r}),i(30592);var n=i(49781),o=i.n(n);let r=Ext.define("SYNO.SDS.Office.CopyLinkDialog",{extend:"SYNO.SDS.Office.AddEditWindow",constructor:function(e){this.copy_url=e.copy_url,this.desc=e.desc,SYNO.SDS.Office.AddEditWindow.prototype.constructor.call(this,Ext.apply({title:SYNO.SDS.Office._T("comment","get_link"),width:456,height:210,mode:"view",buttons:[{itemId:"close",text:_T("common","close"),scope:this,handler:this.close}]},e))},getFormPanel:function(){return this.formPanel=this.formPanel||new SYNO.ux.FormPanel({cls:"syno-o-comment-get-link-panel",autoHeight:!0,border:!1,fieldWidth:400,labelAlign:"top",items:[this.getCopyItem()]}),this.formPanel},getCopyItem:function(){return this.clipboardItem||(this.clipboardItem=new(o())({disableWhenEmpty:!1,hideLabel:!1,disabled:!1,fieldLabel:this.desc,textFieldCfg:{cls:"selectabletext",value:this.copy_url,readOnly:!0,selectOnFocus:!0,width:350},btnCfg:{tooltip:SYNO.SDS.Office._T("info","copy_url"),style:{minWidth:"40px"},width:40,cls:"syno-o-copy-btn",iconCls:"syno-o-copy-btn-icon",btnStyle:"grey",disabled:!1},listeners:{clipsucceed:function(e){this.findWindow().setStatusOK({text:SYNO.SDS.Office._T("share","copy_url_done")})},clipfailed:function(e){this.findWindow().setStatusError({text:SYNO.SDS.Office._T("error","copy_share_link")})},scope:this}}))}})},4721:function(e,t,i){"use strict";i.d(t,{n:()=>w,c:()=>T});var n=i(63447),o=i(71367),r=i(46001),a=i(31755),s=i(54730),l=i(9022),c=i(74999),d=i(23886),u=i(66794);(0,l.z)("edit-menu-more",c.GX);let h=(0,n.defineComponent)({name:"EditMenuItem",components:{vIcon:d.Z},mixins:[l.Z],props:{hasMore:{type:Boolean,default:!1}},emits:["click"],data:()=>({}),computed:{wrapperCls(){return["v-edit-menu-item",{"has-more":this.hasMore}]}},methods:{onClick(e){(0,o.Qy)(this,"click",e)}}}),p={class:"edit-menu-text"},f={key:0,class:"more-btn-wrapper"};var g=(0,u.Z)(h,[["render",function(e,t,i,o,r,a){let s=(0,n.resolveComponent)("v-icon");return(0,n.openBlock)(),(0,n.createElementBlock)("div",{class:(0,n.normalizeClass)(e.wrapperCls),onClick:t[0]||(t[0]=function(){return e.onClick&&e.onClick(...arguments)})},[(0,n.createElementVNode)("span",p,[(0,n.renderSlot)(e.$slots,"default")]),e.hasMore?((0,n.openBlock)(),(0,n.createElementBlock)("div",f,[(0,n.createVNode)(s,{size:"thin-rect",name:"edit-menu-more","svg-icon-set":"set02"})])):(0,n.createCommentVNode)("",!0)],2)}]]);let m=(0,n.defineComponent)({name:"EditMenu",components:{vEditMenuItem:g,vScrollbar:r.Z},mixins:[(0,a.J)("edit-menu")],props:{items:{type:Array,default:()=>[]}},emits:["click-item","switch-items"],data:()=>({reachRight:!1,reachLeft:!1,innerItems:[]}),computed:{wrapperCls:()=>["v-edit-menu"]},watch:{items:{handler(e){this.innerItems=e},immediate:!0}},methods:{useSlot(e){if((0,s.$K)(e.useSlot))return!!e.useSlot},getSlot:e=>e.useSlot,onReachRight(e){this.reachRight=e},onReachLeft(e){this.reachLeft=e},onReachCenter(){this.reachRight=!1,this.reachLeft=!1},onClickItem(e){e.subItems&&(this.innerItems=e.subItems),(0,o.Qy)(this,"click-item",e),(0,o.Qy)(this,"switch-items",e.subItems)}}}),v={key:0,class:"prev-filter gradient-filter"},b={key:1,class:"next-filter gradient-filter"};var y=(0,u.Z)(m,[["render",function(e,t,i,o,r,a){let s=(0,n.resolveComponent)("v-edit-menu-item"),l=(0,n.resolveComponent)("v-scrollbar");return e.innerItems.length>0?((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:0,class:(0,n.normalizeClass)(e.wrapperCls)},[(0,n.createVNode)(l,{"show-x-rail":!1,"inner-class":"edit-menu-scrollbar-inner",onReachRight:t[0]||(t[0]=t=>e.onReachRight(!0)),onReachLeft:t[1]||(t[1]=t=>e.onReachLeft(!0)),onNotReachRight:t[2]||(t[2]=t=>e.onReachRight(!1)),onNotReachLeft:t[3]||(t[3]=t=>e.onReachLeft(!1))},{default:(0,n.withCtx)(()=>[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(e.innerItems,t=>((0,n.openBlock)(),(0,n.createElementBlock)(n.Fragment,null,[e.useSlot(t)?(0,n.renderSlot)(e.$slots,e.getSlot(t),{key:0}):((0,n.openBlock)(),(0,n.createBlock)(s,{key:t.value,"has-more":!!t.subItems,onClick:i=>e.onClickItem(t)},{default:(0,n.withCtx)(()=>[(0,n.createTextVNode)((0,n.toDisplayString)(t.display),1)]),_:2},1032,["has-more","onClick"]))],64))),256))]),_:3}),e.reachLeft?(0,n.createCommentVNode)("",!0):((0,n.openBlock)(),(0,n.createElementBlock)("i",v)),e.reachRight?(0,n.createCommentVNode)("",!0):((0,n.openBlock)(),(0,n.createElementBlock)("i",b))],2)):(0,n.createCommentVNode)("",!0)}]]);let w=(0,n.defineComponent)({name:"EditMenu",extends:y});var _=i(49098);function x(e){e.preventDefault()}let S=(0,n.defineComponent)({name:"EditMenuPortal",components:{vPortal:_.Z,EditMenu:w},directives:{cancelFocusByClicking:{mounted(e){e.addEventListener("mousedown",x)},unmounted(e){e.removeEventListener("mousedown",x)}}},props:{showPortal:{type:Boolean,default:!1},anchor:{type:Object,required:!0},items:{type:Array,default:void 0},closeWhenClickOutside:{type:Boolean,default:!1}},emits:["update:showPortal","click-item"],methods:{handleClickOutside(){this.$emit("update:showPortal",!1)},async handleSwitchItems(){await this.$nextTick(),this.$refs.portal?.doAlign()},handleItemClick(e){e.subItems||this.$emit("click-item",e)}}});var C=i(77330),k=i.n(C),I=i(4337);let A={};A.$style=k();let T=(0,I.default)(S,[["render",function(e,t,i,o,r,a){let s=(0,n.resolveComponent)("EditMenu"),l=(0,n.resolveComponent)("v-portal"),c=(0,n.resolveDirective)("clickoutside"),d=(0,n.resolveDirective)("cancel-focus-by-clicking");return e.showPortal?((0,n.openBlock)(),(0,n.createBlock)(l,{key:0,ref:"portal","mount-to":e.$popupManager.getPopupContainer(),anchor:e.anchor,alignment:{pos:"b->t",offset:[0,-8],opts:{pushXOffset:16,constrainWidth:!0}},"target-class":e.$style.target},{default:(0,n.withCtx)(()=>[(0,n.withDirectives)((0,n.createVNode)(s,{ref:"menu",items:e.items,onSwitchItems:e.handleSwitchItems,onClickItem:e.handleItemClick},null,8,["items","onSwitchItems","onClickItem"]),[[c,e.closeWhenClickOutside&&e.handleClickOutside],[d]])]),_:1},8,["mount-to","anchor","target-class"])):(0,n.createCommentVNode)("",!0)}],["__cssModules",A]])},53469:function(e,t,i){"use strict";i.d(t,{kk:()=>p,U2:()=>r,XV:()=>a});var n=i(32334),o=i(61367);function r(){let e="handsontable",t="hotkey";return[{id:"ai_helper",name:(0,n.$)("ai_common","ai_assistant")},{id:"copy",name:(0,n.$)(e,"copy"),hotkey:(0,o.isMac)()?"Ctrl+C":["Ctrl+C","Ctrl+Insert"]},{id:"cut",name:(0,n.$)(e,"cut"),hotkey:(0,o.isMac)()?"Ctrl+X":["Ctrl+X","Shift+Delete"]},{id:"paste",name:(0,n.$)(e,"paste"),hotkey:(0,o.isMac)()?"Ctrl+V":["Ctrl+V","Shift+Insert"]},{id:"undo",name:(0,n.$)(e,"undo"),hotkey:"Ctrl+Z"},{id:"redo",name:(0,n.$)(e,"redo"),hotkey:["Ctrl+Y","Ctrl+Shift+Z","F4"]},{id:"insert_link",name:(0,n.$)(e,"insert_link"),hotkey:"Ctrl+K"},{id:"link",name:(0,n.$)(e,"link"),hotkey:"Ctrl+K"},{id:"open_link",name:(0,n.$)(t,"open_link"),hotkey:"Alt+Enter"},{id:"see_shortcut",name:(0,n.$)(t,"see_shortcut"),hotkey:"Ctrl+/"},{id:"print",name:(0,n.$)(e,"print"),hotkey:"Ctrl+P"},{id:"save",name:(0,n.$)("action","save"),hotkey:"Ctrl+S"},{id:"find",name:(0,n.$)(e,"find"),hotkey:"Ctrl+F"},{id:"find_replace",name:(0,n.$)(e,"find_replace"),hotkey:["Ctrl+H","Ctrl+Shift+F"]},{id:"find_next",name:(0,n.$)(t,"find_next"),hotkey:"Ctrl+G"},{id:"find_prev",name:(0,n.$)(t,"find_prev"),hotkey:"Ctrl+Shift+G"},{id:"bold",name:(0,n.$)(e,"bold"),hotkey:"Ctrl+B"},{id:"italic",name:(0,n.$)(e,"italic"),hotkey:"Ctrl+I"},{id:"underline",name:(0,n.$)(e,"underline"),hotkey:"Ctrl+U"},{id:"clear_format",name:(0,n.$)(e,"clear_format"),hotkey:"Ctrl+\\"},{id:"increase_font_size",name:(0,n.$)("editor","increase_font_size"),hotkey:"Ctrl+Shift+."},{id:"decrease_font_size",name:(0,n.$)("editor","decrease_font_size"),hotkey:"Ctrl+Shift+,"},{id:"align_left",name:(0,n.$)(e,"align_left"),hotkey:"Ctrl+Shift+L"},{id:"align_center",name:(0,n.$)(e,"align_center"),hotkey:"Ctrl+Shift+E"},{id:"align_right",name:(0,n.$)(e,"align_right"),hotkey:"Ctrl+Shift+R"},{id:"comments_add_edit",name:(0,n.$)(e,"comments_add_edit"),hotkey:"Ctrl+Alt+M"},{id:"comment",name:(0,n.$)(e,"comment"),hotkey:"Ctrl+Alt+M"},{id:"all_comments",name:(0,n.$)(e,"all_comments"),hotkey:"Ctrl+Alt+Shift+A"},{id:"comments",name:(0,n.$)(e,"comments"),hotkey:"Ctrl+Alt+Shift+A"},{id:"submit_comment",name:(0,n.$)(t,"submit_comment"),hotkey:"Ctrl+Enter"},{id:"select_all",name:(0,n.$)(e,"select_all"),hotkey:"Ctrl+A"},{id:"select_char",name:(0,n.$)(t,"select_char"),hotkey:["Shift+←","Shift+→"]},{id:"select_line",name:(0,n.$)(t,"select_line"),hotkey:["Shift+↑","Shift+↓"]},{id:"select_word",name:(0,n.$)(t,"select_word"),hotkey:["Ctrl+Shift+←","Ctrl+Shift+→"]},{id:"select_line_begin",name:(0,n.$)(t,"select_line_begin"),hotkey:"Shift+Home"},{id:"select_line_end",name:(0,n.$)(t,"select_line_end"),hotkey:"Shift+End"},{id:"select_begin",name:(0,n.$)(t,"select_begin"),hotkey:"Ctrl+Shift+Home"},{id:"select_end",name:(0,n.$)(t,"select_end"),hotkey:"Ctrl+Shift+End"}]}function a(){let e="hotkey";return[{id:"common",title:(0,n.$)(e,"common"),features:["copy","cut","paste","undo","redo","insert_link","open_link","see_shortcut","print","save","find","find_replace","find_next","find_prev"]},{id:"text_format",title:(0,n.$)(e,"text_format"),features:["bold","italic","underline","clear_format","increase_font_size","decrease_font_size"]},{id:"paragraph_format",title:(0,n.$)(e,"paragraph_format"),features:["align_left","align_center","align_right"]},{id:"comment",title:(0,n.$)("handsontable","comment"),features:["comments_add_edit","all_comments","submit_comment"]},{id:"selection",title:(0,n.$)(e,"selection"),features:["select_all","select_char","select_line","select_word","select_line_begin","select_line_end","select_begin","select_end"]}]}var s=i(34877),l=i(63447),c=i(44194);let d=(()=>{let e=[["Arrow",[(0,n.$)("hotkey","arrow_key")]],["Space",[(0,n.$)("hotkey","space_key")]],["Drag",[(0,n.$)("hotkey","mouse_drag")]],["Resize",[(0,n.$)("hotkey","mouse_resize")]],["Rotate",[(0,n.$)("hotkey","mouse_rotate")]]];return(0,o.isMac)()&&e.push(["Ctrl",["⌘"]],["Alt",["⌥"]],["Shift",["⇧"]],["Home",["Fn","←"]],["End",["Fn","→"]],["Page Up",["Fn","↑"]],["Page Down",["Fn","↓"]]),new Map(e)})();function u(e){return d.get(e)??[e]}let h=(0,s.defineStore)("feature",()=>{let e=(0,l.ref)(new Map);function t(t){return e.value.get(t)}return{featureSections:(0,l.ref)([]),addFeatures:function(){for(var t=arguments.length,i=Array(t),n=0;n<t;n++)i[n]=arguments[n];for(let{id:t,name:n,hotkey:r,desc:a,tooltip:s}of i){let i=r?Array.isArray(r)?r:[r]:void 0;e.value.set(t,{id:t,name:n,rawHotkey:i,hotkey:i?.map(e=>(function(e){let t=[];for(let i of(0,o.isMac)()?["Shift","Alt","Ctrl"]:["Ctrl","Alt","Shift"]){let n=e.indexOf(i+"+");n<0||(t.push(...u(i)),e=e.slice(0,n)+e.slice(n+i.length+1))}return t.push(...u(e)),t.join((0,o.isMac)()?"":"+")})(e)),desc:a,tooltip:s})}},getName:function(e){return t(e)?.name},getRawHotkey:function(e){return t(e)?.rawHotkey?.[0]},getRawHotkeys:function(e){return t(e)?.rawHotkey},getHotkey:function(e){return t(e)?.hotkey?.[0]},getHotkeys:function(e){return t(e)?.hotkey},getDesc:function(e){let i=t(e);if(i)return i.desc??i.name},getTooltip:function(e){let i=t(e);if(i)return(i.tooltip??i.name)+(i.hotkey?` (${i.hotkey[0]})`:"")}}});function p(){return(0,c.v)(h)}},5319:function(e,t,i){"use strict";var n=i(91229);Ext.define("SYNO.SDS.Office.SyncField",{extend:"SYNO.ux.DisplayField",htmlEncode:!1,constructor:function(e){SYNO.ux.DisplayField.prototype.constructor.call(this,Ext.apply(e||{},{cls:"syno-o-sync-status",value:this.isTemplateEditing()?SYNO.SDS.Office._T("template","editing"):void 0})),this.isTemplateEditing()&&this.mon(this,"beforehide",function(){return this.setValue(SYNO.SDS.Office._T("template","editing")),!1},this),this.setValue=(0,n.Z)(this.setValue,300,{leading:!0,trailing:!0,maxWait:1e3})},setValue:function(e,t){if(t?this.addClass("syno-o-sync-status-error"):this.removeClass("syno-o-sync-status-error"),this.isTemplateEditing()){var i=SYNO.SDS.Office._T("template","editing");e&&e!==i&&(e=i+" - "+e)}this.inited&&e===this.value||(SYNO.ux.DisplayField.prototype.setValue.call(this,e),this.inited=!0,SYNO.SDS.Office.GetWindow().getEventMgr().fireEvent("sync_text_changed"))},isTemplateEditing:function(){return SYNO.SDS.Office.Env.is_template&&!SYNO.SDS.Office.Utils.isTemplateReadOnlyMode()}})},2:function(e,t,i){"use strict";i.d(t,{b:()=>s});var n=i(1172),o=i(61367),r=i(32334),a=i(91229);function s(e,t){return String.format((0,r.$)("document","find_status"),e,t)}Ext.define("SYNO.SDS.Office.FindReplace",{extend:n.o,findDelay:300,mobileHeight:100,constructor:function(e){e.cls="syno-o-find-window "+(e.cls||""),n.o.prototype.constructor.call(this,Ext.apply({sinkable:!0,width:(0,o.isMobileLayout)()?"auto":392,style:(0,o.isMobileLayout)()?{left:"0",right:"0"}:null,autoHeight:!0,title:(0,o.isMobileLayout)()?(0,r.$)("handsontable","find"):(0,r.$)("handsontable","find_replace_win_title"),resizable:!1,draggable:!(0,o.isMobileLayout)(),constrain:!(0,o.isMobileLayout)(),constrainHeader:!(0,o.isMobileLayout)(),buttons:[this.replace_btn=new SYNO.ux.Button({text:(0,r.$)("handsontable","replace"),cls:"syno-o-find-replace-btn",btnStyle:"grey",scope:this,handler:this.onReplace,hidden:!0}),this.replace_all_btn=new SYNO.ux.Button({text:(0,r.$)("handsontable","replace_all"),btnStyle:"grey",scope:this,handler:this.onReplaceAll,hidden:!0})],items:[{xtype:"syno_panel",bodyCssClass:"syno-o-find-body",cls:"syno-o-find",items:[this.getBasicPanel(),this.getMoreOptions(),this.getMoreOptionPanel()]}]},e)),this.rendered?this.onAfterRender():this.mon(this,"afterrender",this.onAfterRender,this,{single:!0}),this.mon(this,"afterlayout",()=>{this.firstActivate=!0},this,{single:!0}),this.mon(this,"activate",()=>{this.firstActivate?this.firstActivate=!1:(this.removeFocusDebounce(),this.doFocusEditorDebounce=(0,a.Z)(SYNO.SDS.Office.Utils.focusEditor,0),this.doFocusEditorDebounce())},this)},removeFocusDebounce:function(){this.doFocusEditorDebounce&&(this.doFocusEditorDebounce.cancel(),this.doFocusEditorDebounce=null)},show:function(){n.o.prototype.show.apply(this,arguments),this.find_field.focus(!0,60)},checkReadOnly:function(){return SYNO.SDS.Office.Utils.isReadOnly()},onAfterRender:function(){this.regEvents(),this.find_status=Ext.DomHelper.insertAfter(this.next_btn.el,{cls:"syno-o-find-term-status"},!0),!0===this.readonly&&this.showMoreOptions(!0)},regEvents:function(){this.mon(this.more_options.el,"click",this.showMoreOptions,this),this.mon(this.el,"focusin",this.removeFocusDebounce,this),this.mon(this.findAppWindow().getEventMgr(),"permchange",function(){this.setReadOnlyMode(this.checkReadOnly())},this),this.mon(this,"show",this.onShow,this),this.mon(this,"beforehide",this.onBeforeHide,this)},onShow:function(){let e=this.findAppWindow().getMainPanel();e.onFindReplaceShow(),(0,o.isMobileLayout)()&&(this.el.setStyle({top:"",height:`${this.mobileHeight}px`,bottom:"0"}),e.on("afterlayout",this.fitToMainFooter,this))},onBeforeHide:function(){let e=this.findAppWindow().getMainPanel();e.onFindReplaceHide(),e.un("afterlayout",this.fitToMainFooter,this)},fitToMainFooter:function(){let e=this.findAppWindow().getMainPanel();this.el.setStyle({top:"",height:"",bottom:"0"}),this.alignTo(e.body,"t-b")},getBasicPanel:function(){return!this.basic_panel&&(this.basic_panel=this.createBasicPanel(),(0,o.isMobileLayout)()&&window.addEventListener("resize",()=>{this.basic_panel.doLayout()})),this.basic_panel},createBasicPanel:function(){return new SYNO.ux.Panel({items:[this.getFindComposite()]})},getFindComposite:function(){return this.find_composite||(this.find_composite=new SYNO.ux.CompositeField({hideLabel:!0,width:"100%",items:[this.find_field_container=new Ext.Container({itemId:"findTermContainer",cls:"syno-o-find-term-container",flex:1,height:30,items:[this.find_field=new SYNO.ux.TextField({cls:"syno-o-find-term-field",itemId:"findTerm",width:"100%",validateOnBlur:!1,validationDelay:this.findDelay,validator:this.handleFind.bind(this),validationEvent:"input",flex:1})]}),this.prev_btn=new SYNO.ux.Button({cls:"syno-o-find-prev-btn",btnStyle:"grey",itemId:"prevBtn",width:40,disabled:!0,margins:{top:0,right:0,left:2,bottom:0},handler:this.handlePrev,scope:this}),this.next_btn=new SYNO.ux.Button({cls:"syno-o-find-next-btn",btnStyle:"grey",itemId:"nextBtn",disabled:!0,width:40,margins:{top:0,right:0,left:8,bottom:0},handler:this.handleNext,scope:this})]})),this.find_composite},getMoreOptions:function(){return this.more_options||(this.more_options=new SYNO.ux.DisplayField({itemId:"moreOptions",cls:"syno-o-find-more-options",value:(0,r.$)("document","find_more_options")||"More Options",hidden:(0,o.isMobileLayout)()})),this.more_options},getMoreOptionPanel:function(){return this.more_panel||(this.more_panel=new SYNO.ux.Panel({hidden:!0,items:[this.replace_desc_field=new SYNO.ux.DisplayField({xtype:"syno_displayfield",value:(0,r.$)("handsontable","replace_with")}),this.replace_field=new SYNO.ux.TextField({cls:"syno-o-find-replace-field",width:336}),this.case_chk=new SYNO.ux.Checkbox({boxLabel:(0,r.$)("handsontable","match_case"),handler:this.maybeHandleFind,scope:this}),this.regexp_chk=new SYNO.ux.Checkbox({boxLabel:(0,r.$)("handsontable","match_regexp"),handler:this.maybeHandleFind,scope:this})]})),this.more_panel},showMoreOptions:function(e){if(!(0,o.isMobileLayout)()){this.more_options.hide(),this.more_panel.show();var t=!0!==e;this.replace_btn.setVisible(t),this.replace_all_btn.setVisible(t),this.replace_desc_field.setVisible(t),this.replace_field.setVisible(t),this.setTitle((0,r.$)("handsontable",t?"find_replace_win_title":"find"))}},setReadOnlyMode:function(e){this.readonly=e,this.showMoreOptions(e)},maybeHandleFind:function(){var e=this.find_field.getValue();Ext.isEmpty(e)||this.handleFind(e)},handleFind:function(){return this.find_status.addClass("checking"),this.handleStatusAndBtn(-1,-1),!0},handleStatusAndBtn:function(e,t){t<=0?(this.prev_btn.disable(),this.next_btn.disable()):(this.prev_btn.enable(),this.next_btn.enable()),this.find_status.removeClass("checking")},handlePrev:function(){this.handleStatusAndBtn(-1,-1)},handleNext:function(){this.handleStatusAndBtn(-1,-1)},getReplaceValue:function(){return this.replace_field.getValue()||""},onReplace:function(){},onReplaceAll:function(){},onEnter:function(e,t){this.shift_key=t.shiftKey,n.o.prototype.onEnter.apply(this,arguments),this.shift_key=!1},onApply:function(){this.shift_key?this.prev_btn.disabled||this.handlePrev():this.next_btn.disabled||this.handleNext()}})},42152:function(e,t,i){"use strict";i.d(t,{Q:()=>o,_:()=>g});var n,o=((n={}).NONE="none",n.HIDE_MENU="hide_menu",n.HIDE_ALL="hide_all",n),r=i(63447),a=i(76293),s=i(23886),l=i(31842),c=i(47501),d=i(32334);let u=["width","height"],h=(0,r.defineComponent)({name:"vIconBtFocusMode",props:{width:{type:[Number,String],default:24},height:{type:[Number,String],default:24}}}),p=(0,i(4337).default)(h,[["render",function(e,t,i,n,o,a){return(0,r.openBlock)(),(0,r.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e.width,height:e.height},t[0]||(t[0]=[(0,r.createStaticVNode)('<g clip-path="url(#043a6ae44f320288882b6aa7267a3768__a)"><path fill-rule="evenodd" d="M17.7 6a.3.3 0 0 1 .3.3v4.988a.3.3 0 0 1-.51.215L15.5 9.56l-3.186 3.186a.749.749 0 1 1-1.06-1.06L14.44 8.5l-1.943-1.99a.3.3 0 0 1 .215-.51H17.7Z" clip-rule="evenodd"></path><path fill-rule="evenodd" d="M13.44 9.5a.749.749 0 1 1 1.06 1.06L9.56 15.5l1.943 1.99a.3.3 0 0 1-.215.51H6.3a.3.3 0 0 1-.3-.3v-4.988a.3.3 0 0 1 .51-.215L8.5 14.44l4.94-4.94Z" clip-rule="evenodd"></path></g><defs><clipPath id="043a6ae44f320288882b6aa7267a3768__a"><path d="M0 0h24v24H0z"></path></clipPath></defs>',2)]),8,u)}]]);var f=i(49708);let g=(0,r.defineComponent)({__name:"FocusModeButton",setup(e){let t=(0,f.e)(),i=SYNO.SDS.Office.GetWindow(),n=(0,r.ref)(i.focusMode);i.getEventMgr().on("focus_mode_change",h),(0,r.onUnmounted)(()=>i.getEventMgr().un("focus_mode_change",h));let u=(0,r.toRef)(()=>t.commentable);function h(e){n.value=e}function g(){o.NONE===n.value?i.setFocusMode(o.HIDE_MENU):o.HIDE_MENU===n.value&&i.setFocusMode(o.NONE)}function m(){i.setFocusMode(o.HIDE_ALL)}return(e,t)=>((0,r.openBlock)(),(0,r.createBlock)((0,r.unref)(a.Z),{type:"dropdown",display:"icon","syno-id":"focus-mode-button","menu-align":"tr->br",tooltip:(0,r.unref)(d.$)("focus_mode","immersive_mode")},{icon:(0,r.withCtx)(()=>[(0,r.createVNode)((0,r.unref)(s.Z),{"svg-icon-set":"set01","svg-icon":(0,r.unref)(p),size:[38,24]},null,8,["svg-icon"])]),dropdown:(0,r.withCtx)(()=>[(0,r.createVNode)((0,r.unref)(l.Z),{"syno-id":"focus-mode-menu",width:"auto"},{default:(0,r.withCtx)(()=>[(0,r.createVNode)((0,r.unref)(c.Z),{id:"toggle-menu","syno-id":"focus-mode-toggle-menu","icon-type":"select",title:(0,r.unref)(d.$)("focus_mode","collapse_menu"),selected:(0,r.unref)(o).HIDE_MENU===n.value,onClick:g},null,8,["title","selected"]),(0,r.createVNode)((0,r.unref)(c.Z),{id:"hide-all","syno-id":"focus-mode-hide-all",title:(0,r.unref)(d.$)("focus_mode","hide_all_toolbars"),disabled:!u.value,onClick:m},null,8,["title","disabled"])]),_:1})]),_:1},8,["tooltip"]))}})},85908:function(e,t,i){"use strict";let n,o;i.d(t,{G:()=>l});let r={};async function a(){try{let e=await fetch("webman/3rdparty/Spreadsheet/font.json",{cache:"no-cache"});return await e.json()}catch(e){return console.warn("Failed to fetch font settings:",e),{}}}async function s(){return o||(o=a())}async function l(){return Object.entries(await s()).filter(e=>{var t,i;let[o,a]=e;return!a.disable&&(r[t=(t=o).toLocaleLowerCase()]??(r[t]=(i=t,(function(){if(!n){let e=document.createElement("canvas").getContext("2d"),t=t=>(e.font=`72px ${t}`,e.measureText("mmmmmmmmmmlli").width),i=["monospace","sans-serif","serif"],o=i.map(t);n=e=>{e=`"${e.replaceAll('"',"")}"`;for(let n=0;n<i.length;n++)if(t(`${e}, ${i[n]}`)!==o[n])return!0;return!1}}return n})()(i))))}).map(e=>{let[t,i]=e;return{...i,value:t}})}},56720:function(e,t,i){"use strict";i.d(t,{JH:()=>r,L9:()=>n});let n=_JSLIBSTR("extlang","invalidText"),o=_JSLIBSTR("extlang","fieldblank");function r(e,t,i){return void 0===t&&(t=[]),void 0===i&&(i=!0),{trigger:t,validator(t,r){if(""===r&&i)return Error(o);let a=e(r);return"string"==typeof a?Error(a||n):!!a||Error(n)}}}},94136:function(e,t,i){"use strict";i.d(t,{$p:()=>k,fj:()=>I,MZ:()=>C});var n=i(85908);Ext.define("SYNO.SDS.Office.FontStore",function(){let e=new Map;return{singleton:!0,extend:"Ext.data.ArrayStore",autoDestroy:!1,constructor:function(){Ext.data.ArrayStore.call(this,{fields:["display","value"],data:[]}),this.loadStore()},async loadStore(){let t=await (0,n.G)();for(let{display:i,value:n}of t)i&&e.set(i.toLocaleLowerCase(),n),e.set(n.toLocaleLowerCase(),n);this.loadData(t.map(e=>{let{display:t,value:i}=e;return[t||i,i]}))},getFontMap:function(){return e}}}),i(37655),i(66991),i(44263);var o=i(35351),r=i(85627),a=i(56721);let s=function(e,t,i){var n=0,s=null==e?n:e.length;if("number"==typeof t&&t==t&&s<=0x7fffffff){for(;n<s;){var l=n+s>>>1,c=e[l];null!==c&&!(0,a.Z)(c)&&(i?c<=t:c<t)?n=l+1:s=l}return s}return(0,o.Z)(e,t,r.Z,i)};var l=i(53469),c=i(32334);let d=Ext.define("SYNO.SDS.Office.RichToolbar.FontSizeField",{extend:"Ext.Container",minValue:8,maxValue:400,stepByStore:!1,fontSizeList:[],constructor(e){void 0===e&&(e={}),Ext.Container.prototype.constructor.call(this,this.fillConfig(e)),this.monEvent()},fillConfig(e){let t=new Ext.data.ArrayStore({autoDestroy:!0,fields:["value","display"],data:e.fontSizeList.map(e=>[e,`${e}`])});return{cls:"syno-o-toolbar-font-size-field",items:[this.decreaseButton=new SYNO.SDS.Office.ToolbarItem.Button({iconCls:"decrease-btn",tooltip:(0,l.kk)().getTooltip("decrease_font_size"),handler:()=>{this.handleDecreaseClick()}}),this.combo=new SYNO.SDS.Office.RichToolbar.Combobox({tooltip:(0,c.$)("handsontable","fontsize"),hideTrigger:!0,width:40,listWidth:88,mode:"local",store:t,valueField:"value",displayField:"display",editable:!0,selectOnFocus:!0,autoSelect:!1,cls:"size-combo",maskRe:/\d/,enableKeyEvents:!0,setValue:function(e){let t;return"number"==typeof e?t=e:"string"==typeof e&&(t=e?parseFloat(e):void 0),SYNO.SDS.Office.RichToolbar.Combobox.superclass.setValue.call(this,void 0===t||isNaN(t)?"":t),this.fireEvent("valuechange",e),this},onApplyRawValue:e=>{e.isValid()?(this.handleSettingValue(parseInt(e.getRawValue(),10)),e.leave()):e.cancel()},...e.comboCfg,listeners:{scope:this.combo,afterrender:function(e){e.el.dom.inputMode="decimal"},...e.comboCfg.listeners}}),this.increaseButton=new SYNO.SDS.Office.ToolbarItem.Button({iconCls:"increase-btn",tooltip:(0,l.kk)().getTooltip("increase_font_size"),handler:()=>{this.handleIncreaseClick()}})],...e}},monEvent(){this.mon(this.combo,"valuechange",()=>{this.updateButtonStatus()}),this.mon(this.combo,"select",(e,t)=>{this.fireEvent("selectvalue",t.get(e.valueField))}),this.mon(this.combo,"focus",e=>{window.setTimeout((function(){e.isExpanded()||e.doQuery("")}).bind(this),0)}),this.mon(this.combo,"expand",e=>{this.fireEvent("expand",e)}),this.mon(this.combo,"collapse",e=>{this.fireEvent("collapse",e)})},handleIncreaseClick(){this.handleIncreaseDecreaseClick(1)},handleDecreaseClick(){this.handleIncreaseDecreaseClick(-1)},handleIncreaseDecreaseClick(e){this.handleSettingValue(this.getCurrentValueByStep(e))},getCurrentValueByStep(e){let t=this.combo.getValue();return"number"==typeof t?this.getValueByStep(t,e):null},getValueByStep(e,t){if(!this.stepByStore)return e+(t>0?1:-1);{let i=t>0?Math.min(this.fontSizeList.length-1,s(this.fontSizeList,e,!0)):Math.max(0,s(this.fontSizeList,e)-1);return this.fontSizeList[i]}},clampValue(e){return isNaN(e)?this.minValue??this.maxValue??8:(e=Math.floor(e),this.minValue&&this.minValue>e&&(e=this.minValue),this.maxValue&&this.maxValue<e&&(e=this.maxValue),e)},updateButtonStatus(){let e=this.combo,t=e.getValue();if("number"==typeof t){let{store:i,valueField:n}=e;this.decreaseButton.setDisabled(t<=i.getAt(0).get(n)),this.increaseButton.setDisabled(t>=i.getAt(i.getTotalCount()-1).get(n))}else this.decreaseButton.setDisabled(!1),this.increaseButton.setDisabled(!1)},handleSettingValue(e){if("number"!=typeof e||!Number.isFinite(e))return void this.combo.cancel();(e=this.clampValue(e))!==this.combo.getValue()?(this.combo.setValue(e),this.fireEvent("selectvalue",e),this.combo.hasFocus=!1):this.combo.cancel()},setValue(e){if(null==e)this.combo.setValue("");else{if("string"==typeof e){let t=e.match("(^[0-9.]+)pt$");if(!t||2!==t.length)return;e=parseFloat(t[1])}e=this.clampValue(e),this.combo.getValue()!==e&&this.combo.setValue(e)}}});var u=i(18907),h=i(61367),p=i(56084),f=i(42152),g=i(63447),m=i(14395),v=i(45407),b=i(49708),y=i(23461),w=i(53253);let _=["width","height"],x=(0,g.defineComponent)({name:"vIconIcAi24SGrey",props:{width:{type:[Number,String],default:24},height:{type:[Number,String],default:24}}}),S=(0,i(4337).default)(x,[["render",function(e,t,i,n,o,r){return(0,g.openBlock)(),(0,g.createElementBlock)("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:e.width,height:e.height},t[0]||(t[0]=[(0,g.createStaticVNode)('<path d="M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z" fill="currentColor"></path><path d="M12 18C12 14.6863 14.6863 12 18 12" stroke="white" stroke-width="1.5"></path><path d="M12 6C12 9.31371 9.31371 12 6 12" stroke="white" stroke-width="1.5"></path><path d="M12 6C12 9.31371 14.6863 12 18 12" stroke="white" stroke-width="1.5"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M11.1057 14.0052C10.0143 12.3461 8.13578 11.25 6 11.25V12.75C7.93844 12.75 9.59899 13.9475 10.2789 15.6452C10.484 15.0598 10.7633 14.5094 11.1057 14.0052Z" fill="white"></path>',5)]),8,_)}]]),C=42,k=43,I=44;Ext.define("SYNO.SDS.Office.Iconbar",{extend:"Ext.Toolbar",addSection(e,t){Array.isArray(t)&&(t={tools:t});let i={tools:[],width:[],hidden:!1,...t},{tools:n,width:o}=i;n.forEach((e,t)=>{if(null==o[t]){let i;if(e instanceof Ext.Toolbar.Separator)i=15;else if(e instanceof SYNO.ux.SplitButton)i=44;else if(e instanceof SYNO.ux.ComboBox)i=44;else if(e instanceof SYNO.ux.Button)i=28;else if(e instanceof d)i=102;else throw Error(`Failed to auto get width of toolbar item \`${e.itemId}\`.`);o[t]=i}}),this.section[e]=i},toolbarSplit:function(e){return new Ext.Toolbar.Separator(Ext.apply({cls:"syno-o-toolbar-split",ctCls:"syno-o-toolbar-split-ct"},e))},filterCtCls:function(e,t){return(e.ctCls?e.ctCls.split(" "):[]).filter(function(e){return -1!==t.indexOf(e)}).join(" ")},constructor:function(e){Ext.Toolbar.prototype.constructor.call(this,Ext.apply({height:(0,h.isMobileLayout)()?I:C,itemId:"edit_toolbar",forceLayout:!0,cls:"syno-o-bottom-toolbar"},e)),(0,h.isMobileLayout)()&&this.on("afterlayout",()=>{this.createGradients()},this,{single:!0}),this.mon(this,"afterrender",()=>{let e=(0,g.watch)(()=>(0,b.e)().mode,e=>{this.onEditorModeChange(e)},{immediate:!0});this.on("destroy",e)},this,{single:!0})},createZoomCombo:function(e){return new SYNO.SDS.Office.RichToolbar.Combobox(Ext.apply({width:60,tooltip:SYNO.SDS.Office._T("presentation","zoom"),itemId:"zoom_combo",mode:"local",listWidth:"auto",editable:!0,selectOnFocus:!0,store:this.zoomStore,valueField:"value",maskRe:/\d/,displayField:"display",value:this.zoomValueDefault||"100",cls:"syno-o-zoom-combo",ctCls:"syno-o-iconbar-editable-combo",listClass:"syno-o-combo-item-zoom syno-ux-combobox-list",triggerClass:"syno-o-iconbar-dropdown",enableKeyEvents:!0,autoSelect:!1,_initBottomStoreData:function(){return(0,h.isMobileLayout)()||!(0,v.Uv)()?[]:[["remember",(0,c.$)("handsontable","remember_zoom_level")]]},_onBottomRecordClick:function(e){"remember"===e.data.value&&(this.toggleRemember(),this.setRememberItemChecked(this.getRemember()),this.list.hide())},getRemember:()=>SYNO.SDS.Office.GetWindow().getMainPanel().getRememberZoomSetting(),toggleRemember(){SYNO.SDS.Office.GetWindow().getMainPanel().toggleRemember()},setRememberItemChecked(e){if(!(0,h.isMobileLayout)()&&(0,v.Uv)())this.bottomView.getNode(this.findRecord("value","remember")).classList[e?"add":"remove"]("syno-o-combo-checked-item-icon")},onApplyRawValue:e=>{var t=e.getRawValue();e.getValue()!==t&&/^\d+%?$/.test(t)?(this.onZoomComboSelect(t),e.leave()):e.cancel()},listeners:{scope:this,select:function(e,t,i){this.onZoomComboSelect(t.get("value"))},expand:function(e){this.onComboExpand(e),e.setRememberItemChecked(e.getRemember())},collapse:this.onComboCollapse,focus:function(e){window.setTimeout((function(){e.isExpanded()||e.doQuery("")}).bind(this),0)}}},e||{}))},createFontFamilyComboBox:function(e){var t=Ext.apply({width:100,tooltip:SYNO.SDS.Office._T("handsontable","fontfamily"),itemId:"font_name",listWidth:226,mode:"local",editable:!1,store:SYNO.SDS.Office.FontStore,value:"Arial",valueField:"value",displayField:"display",cls:"syno-o-fontfamily-combo",ctCls:"syno-o-iconbar-editable-combo",listClass:"syno-o-combo-item-fontfamily syno-ux-combobox-list",listTooltip:!0,triggerClass:"syno-o-iconbar-dropdown",tpl:new Ext.XTemplate('<tpl for="."><div class="x-combo-list-item" style="font-family: {[this.getFontFamily(values.display)]};">{[Ext.util.Format.htmlEncode(values.display)]}</div></tpl>',{getFontFamily:e=>Ext.util.Format.htmlEncode(`"${e}"`)})},e);return new SYNO.SDS.Office.RichToolbar.Combobox(t)},createFontSizeField(e){return new d({...e,ctCls:"syno-o-toolbar-font-size-ct "+(e?.ctCls??""),listeners:{expand:e=>this.onComboExpand(e),collapse:e=>this.onComboCollapse(e),...e.listeners??{}}})},createColorPickerBtn:function(e){return new SYNO.SDS.Office.ColorPicker({...e,ctCls:"syno-o-toolbar-color-sbtn-ct "+(e?.ctCls??"")})},createAiHelperBtn(e,t){return void 0===t&&(t={}),this.createToolbarBtn(e,{vIconCfg:{svgIcon:w.Z,svgIconSet:"set14"},...t,listeners:{afterrender:e=>{let t=this.findAppWindow().getMainPanel().getRightPanelContainer().getRightPanelContainerStore(),i=t=>{t===y.SJ?e.vIcon?.setProps({svgIcon:S}):e.vIcon?.setProps({svgIcon:w.Z})};i(t.activePanelKey),this.stopWatchRightPanelStore=(0,g.watch)(()=>t.activePanelKey,i)},destroy:()=>{this.stopWatchRightPanelStore?.()},...t?.listeners}})},createGradients(){this.gradients={left:this.el.insertFirst({cls:"syno-o-toolbar-gradient left"}),right:this.el.insertFirst({cls:"syno-o-toolbar-gradient right"})},this.gradients.update=()=>{let e=this.el.dom;this.gradients.left.setDisplayed(e.scrollLeft>0);let t=e.scrollWidth-e.clientWidth-e.scrollLeft<1;this.gradients.right.setDisplayed(!t)},this.el.on("scroll",(0,p.Z)(this.gradients.update,100)),this.on("afterlayout",(0,p.Z)(this.gradients.update,100))},setBtnActive:function(e,t){var i=e.getEl().hasClass("x-btn-active");t&&!i?e.addClass("x-btn-active"):!t&&i&&e.removeClass("x-btn-active")},setComboClass:function(e,t,i){var n=e.getEl().dom.className.match(RegExp(i+"\\S*")),o=i+"-"+t;n&&o!==n[0]&&e.removeClass(n[0]),n&&n[0]===o||e.addClass(o)},onComboExpand:function(e){var t,i=e.getValue();t=e.store.findExact("value",i);var n="image"===e.comboType?"x-combo-selected":"syno-o-combo-checked-item-icon";e.view.all.each(function(e,i,o){t===o?e.addClass(n):e.removeClass(n)},this),e.wrap.addClass("syno-o-combo-menu-expanded")},onComboCollapse:function(e){e.wrap.removeClass("syno-o-combo-menu-expanded")},getToolbarBtnCfg:function(e,t){return Object.assign({itemId:e,iconCls:"syno-o-"+e.replace(/_/g,"-")+"-btn",tooltip:this.getTooltipStringAndHotkey("handsontable",t.hotkeyName??e)},t)},createToolbarBtn:function(e,t,i,n,o,r){return this.btns[e]=new SYNO.SDS.Office.ToolbarItem.Button(this.getToolbarBtnCfg(e,Object.assign({handler:i||this.toolbarClickFunc[e]&&this.toolbarClickFunc[e].bind(this),fn_is_shown:n,fn_is_enabled:o,fn_update_status:r},t)))},createToolbarSplitBtn:function(e,t){return this.btns[e]=new SYNO.SDS.Office.ToolbarItem.SplitButton(this.getToolbarBtnCfg(e,Object.assign({minWidth:26},t)))},createToolbarImageCombo:function(e,t){var i=e.replace(/_/g,"-");return this.combos[e]=new SYNO.ux.ComboBox(Ext.apply({width:34,itemId:e+"_combo",comboType:"image",mode:"local",valueField:"value",displayField:"display",cls:"syno-o-"+i+"-combo-wrap syno-o-image-combobox",ctCls:"syno-o-iconbar-combo syno-o-toolbar-sbtn-ct",listClass:"syno-ux-combobox-list syno-o-"+i+"-list syno-o-image-combobox-list",triggerClass:"syno-o-iconbar-dropdown",tpl:'<tpl for="."><div class="x-combo-list-item syno-o-'+i+'-{value}" ext:qtip="{qtip}">{display}</div></tpl>',onViewClick:u.s},t||{})),this.combos[e].assertValue=Ext.emptyFn,this.combos[e]},createMoreActionBtn:function(){return this.splitMoreAction=this.toolbarSplit({hidden:!0}),this.btns.more_action=new SYNO.SDS.Office.ToolbarItem.Button({itemId:"more_action",iconCls:"syno-o-more-action-btn",tooltip:SYNO.SDS.Office._T("common","action"),hidden:!0,listeners:{scope:this,render:{scope:this,single:!0,fn:function(e){this.mon(e.getEl(),"mousedown",function(e){e.preventDefault()})}},click:this.onClickMoreAction}})},createFocusModeBtn:function(){return this.btns.focus_mode=new Ext.Container({itemId:"focus_mode",enable_in_commentonly:!0,enable_in_readonly:!0,fn_is_shown:function(){return!(0,h.isMobileLayout)()&&!SYNO.SDS.Office.Env.is_template},listeners:{render:function(e){let{el:t}=e,i=document.createElement("div");t.dom.appendChild(i),(0,m.aX)(f._,{}).mount(i)}}})},createMoreActionBar:function(){(!this.moreIcontbar||this.moreIcontbar.isDestroyed)&&(this.moreIcontbar=new SYNO.SDS.Office.MoreIconbar({renderTo:this.owner.el.dom}),this.mon(this.moreIcontbar,"show",this.locateMoreActionBar,this))},locateMoreActionBar:function(){var e=this.moreIcontbar.el,t=this.btns.more_action.getBox();e.setStyle({left:t.x+t.width-e.getWidth()-60+"px",top:t.y+t.height+"px"})},onClickMoreAction:function(){this.createMoreActionBar(),this.moreIcontbar.isVisible()?this.hideMoreActionBar():this.showMoreActionBar()},showMoreActionBar:function(){this.btns.more_action.addClass("x-btn-active"),this.moreIcontbar?.show()},hideMoreActionBar:function(){this.btns.more_action.removeClass("x-btn-active"),this.moreIcontbar?.hide()},getToolItem:function(){for(var e=[],t=0;t<this.section.length;t++)t!==this.section.length-1||(0,h.isMobileLayout)()||e.push(this.splitMoreAction,this.btns.more_action,"->"),e=e.concat(this.section[t].tools);return e},moveExceededVisibleSectionIntoMoreSection:function(e){for(var t=e,i=[],n=this.getWidthCache()-30,o=t.reduce(function(e,t){return e+t.width},0),r=this.section[this.section.length-1].width.reduce(function(e,t){return e+t},0),a=0;t.length&&n-o-28*(i.length>0)-r<40;){let e=t.length-1;for(;e>=0&&this.section[t[e].index]?.fixed;)e--;if(e<0)break;let n=t[e];if(t=t.slice(0,e),o-=n.width,(a+=n.width)>o+28)break;i.unshift(n)}return i.map(function(e){return e.index})},doLayoutWithoutRearrange:function(){this.un("afterlayout",this.rearrangeToolBar,this),this.doLayout(),this.on("afterlayout",this.rearrangeToolBar,this)},rearrangeToolBar:function(){if(!this.isVisible())return;if((0,h.isMobileLayout)())return void this.updateItemStatus();this.createMoreActionBar();let e=this.moveExceededVisibleSectionIntoMoreSection(this.getVisibleSection());if(!function(e,t){if(e.length!==t.length)return!1;for(var i=0;i<e.length;i++)if(e[i]!==t[i])return!1;return!0}(this.moreSection,e)){this.moreSection.forEach(function(e){for(var t=0,i=0;i<e;i++)t+=this.section[i].tools.length;this.section[e].tools.forEach(function(e,i){this.insert(t+i,e)},this)},this),e.forEach(function(e){this.section[e].tools.forEach(function(e){this.moreIcontbar.more_menu.add(e)},this)},this),this.moreSection=e,this.doLayoutWithoutRearrange(),this.moreIcontbar.more_menu.doLayout(),this.section.forEach(function(e){e.tools.forEach(function(e){e.container.addClass(this.filterCtCls(e,["syno-o-iconbar-combo","syno-o-iconbar-editable-combo","syno-sh-editor-comp"]))},this)},this);var t=e.length>0;this.splitMoreAction.setVisible(t),this.btns.more_action.setVisible(t)}this.updateItemStatus(),this.moreIcontbar.isVisible()&&(this.moreIcontbar.updateSplitter(),this.locateMoreActionBar())},createBorderMenuItem:function(e){let t=e+"_border",i=this.getTooltipStringAndHotkey("handsontable",t);return new Ext.menu.Item({itemId:t,cls:"syno-o-"+e+"-border-item",hideOnClick:!1,listeners:{render:function(){this.getEl().dom.querySelector("div").qtip=i}}})},createCellBorderBtn:function(e){return this.createToolbarSplitBtn("border",Ext.apply({itemId:"border_sbtn",iconCls:"syno-o-border-btn",tooltip:SYNO.SDS.Office._T("handsontable","border"),menu:new SYNO.SDS.Office.Menu({cls:"border-smenu horizontal-smenu",defaults:{ctCls:"horizontal-item-ct"},items:[this.createBorderMenuItem("all"),this.createBorderMenuItem("inner"),this.createBorderMenuItem("horizontal"),this.createBorderMenuItem("vertical"),this.createBorderMenuItem("outer"),{ctCls:"horizontal-item-ct split-line-top-item-ct",cls:"border-menu-split-line-top",disabled:!0},this.borderColorBtn=new SYNO.SDS.Office.ColorPicker({name:"border_color",defaultColor:this.getDefault("border_color"),menuCfg:{color:this.getDefault("border_color"),listeners:{scope:this.borderColorBtn,colorselect:(e,t)=>{null===t&&this.borderColorBtn.updateColor(this.getDefault("border_color"))}},allowOtherMenus:!0}}),this.createBorderMenuItem("left"),this.createBorderMenuItem("top"),this.createBorderMenuItem("right"),this.createBorderMenuItem("bottom"),this.createBorderMenuItem("clear"),{ctCls:"horizontal-item-ct split-line-bottom-item-ct",cls:"border-menu-split-line-bottom",disabled:!0},this.borderWidthBtn=this.createToolbarSplitBtn("border_width",{itemId:"border_width_sbtn",cls:"syno-o-stroke-width-sbtn",iconCls:"syno-o-stroke-width-btn",tooltip:SYNO.SDS.Office._T("graph","outline_width"),hidden:"SYNO.SDS.Office.Sheet.Application"===_S("standaloneAppName"),menu:new SYNO.SDS.Office.Menu({cls:"syno-o-toolbar-sbtn-dropdown",checkedWidth:"1",allowOtherMenus:!0,items:[this.createSimpleMenuItem("0px",function(e){this.borderWidthBtn.menu.checkedWidth=e.itemId.replace("px","")},{text:"0px"}),this.createSimpleMenuItem("1px",function(e){this.borderWidthBtn.menu.checkedWidth=e.itemId.replace("px","")},{text:"1px"}),this.createSimpleMenuItem("2px",function(e){this.borderWidthBtn.menu.checkedWidth=e.itemId.replace("px","")},{text:"2px"}),this.createSimpleMenuItem("3px",function(e){this.borderWidthBtn.menu.checkedWidth=e.itemId.replace("px","")},{text:"3px"}),this.createSimpleMenuItem("4px",function(e){this.borderWidthBtn.menu.checkedWidth=e.itemId.replace("px","")},{text:"4px"}),this.createSimpleMenuItem("8px",function(e){this.borderWidthBtn.menu.checkedWidth=e.itemId.replace("px","")},{text:"8px"}),this.createSimpleMenuItem("12px",function(e){this.borderWidthBtn.menu.checkedWidth=e.itemId.replace("px","")},{text:"12px"}),this.createSimpleMenuItem("16px",function(e){this.borderWidthBtn.menu.checkedWidth=e.itemId.replace("px","")},{text:"16px"}),this.createSimpleMenuItem("24px",function(e){this.borderWidthBtn.menu.checkedWidth=e.itemId.replace("px","")},{text:"24px"})],listeners:{show:{fn:function(e){var t=e.checkedWidth+"px";e.items.items.forEach(function(e){e.itemId===t?e.el.addClass("syno-o-sbtn-dropdown-selected"):e.el.removeClass("syno-o-sbtn-dropdown-selected")})},scope:this}}}),handler:function(){this.showMenu()}})],listeners:{scope:this,itemclick:this.onBorderMenuSelect}}),listeners:{scope:this,click:function(e,t){e.ignoreNextClick||(e.showMenu(),this.borderColorBtn.renderPreview())}}},e||{}))},onEditorModeChange:function(e){var t=this.modeList[e];"readonly"===e?this.setVisible(!1):this.isVisible()&&"comment"!==e||this.setVisible(!0),Ext.isDefined(t)&&this.items.items.concat(this.moreSection.map(e=>this.section[e].tools).flat()).forEach(function(e){if(!Ext.isEmpty(e.itemId))if(!0===t||-1!==t.indexOf(e.itemId)){if("undo"===e.itemId||"redo"===e.itemId||"comments_add_edit"===e.itemId)return;e.enable()}else e.disable()})},createSimpleMenuItem:function(e,t,i){return Ext.apply({itemId:e,text:i&&i.text?i.text:SYNO.SDS.Office._T("handsontable",e),listeners:{beforehide:function(e){e.lastDom=null}},disabled:!t,handler:t?t.bind(this):void 0},i)},getMenuZoomCombo:function(){return this.menu_zoom_combo||(this.menu_zoom_combo=this.createZoomCombo(),this.menu_zoom_combo.hide()),this.menu_zoom_combo},setWidthCache:function(e,t){this.widthCache=t},getWidthCache:function(){return void 0===this.widthCache&&(this.widthCache=this.getWidth()),this.widthCache},listeners:{hide:function(){this.moreIcontbar?.isVisible()&&this.hideMoreActionBar()}},getTooltipStringAndHotkey:function(e,t){return(0,l.kk)().getTooltip(t)??(0,c.$)(e,t)},getDefault:Ext.emptyFn,classifyTool:Ext.emptyFn,onBorderMenuSelect:Ext.emptyFn,getVisibleSection:Ext.emptyFn,updateItemStatus:Ext.emptyFn,switchToolBar:Ext.emptyFn,onZoomComboSelect:Ext.emptyFn}),Ext.define("SYNO.SDS.Office.MoreIconbar",{extend:"SYNO.ux.Panel",constructor:function(e){SYNO.ux.Panel.prototype.constructor.call(this,this.fillConfig(e))},fillConfig:function(e){return Ext.apply({cls:"syno-o-more-action-menu",floating:!0,height:40,hidden:!0,items:[this.more_menu=new SYNO.ux.Toolbar({cls:"syno-o-bottom-toolbar",height:30,items:[]})],listeners:{beforeshow:function(){this.updateSplitter()},scope:this}},e)},updateSplitter:function(){this.more_menu.items.items.forEach(function(e,t){"syno-o-toolbar-split"===e.initialConfig.cls&&e[0===t?"hide":"show"]()})}})},68784:function(e,t,i){"use strict";i.d(t,{Ew:()=>h,Xn:()=>d,tp:()=>u,zk:()=>l});var n=i(61232),o=i(39142),r=i(85020),a=i(84901),s=i(62013);function l(){let e=(0,n.m9)(),t=(0,o.b)();SYNO.SDS.Office.Utils.registerInitEvent(()=>{SYNO.SDS.Drive.Utils.isLogined()&&e.getAction().getGroupMap({},(e,t)=>{if(e)for(var i=0,n=t.list.length;i<n;++i){var o=t.list[i];(0,s.s)().updateGroup(o.id,o.name)}})}),e.mon(e.getEventMgr(),"chatready",()=>{SYNO.SDS.Drive.Utils.isLogined()&&e.getAction().getChannelMap({},(e,t)=>{if(e)for(var i=0,n=t.channels.length;i<n;++i){var o=t.channels[i];(0,s.s)().updateChannel(o.channel_id,o.name)}})}),(0,r.YM)()?t.getEnvPromise().then(()=>{let t=(0,a.Kr)();void 0!==t&&((0,s.s)().setSelfUid(t),SYNO.SDS.Office.Utils.isViewerMode()&&e.getWebAPI().getUsers({params:{user:[_S("user")]},scope:this,callback:function(e,t){e&&t&&t.users&&(0,s.s)().updateUsers(t.users)}}));let i=(0,a.Bp)();void 0!==i&&(0,s.s)().setSelfGids(i)}):((0,s.s)().setSelfUid((0,s.s)().anonymousUid),(0,s.s)().setSelfGids([])),t.getSettingPromise().then(()=>{(0,s.s)().useNickname=SYNO.SDS.Drive.Define.Info.use_nickname})}function c(e,t,i,n){if(SYNO.SDS.Office.Utils.isViewerMode())return void n();let o=(0,s.s)();var r=e.filter(e=>!o.hasUser(e)||i&&!o.getUserColor(e)),a=SYNO.SDS.Drive.Utils.isLogined()?t.filter(e=>!o.hasGroup(e)):[];if(0===r.length&&0===a.length)return void n();SYNO.SDS.Office.GetWindow().getSocket().emit("fetch_usergroup",r,a,(e,t,i)=>{e&&(o.updateUsers(t),o.updateGroups(i)),n()})}function d(e,t,i){return c(e,t,!1,i)}function u(e,t,i){return c(e,t,!0,i)}function h(e,t,i,n){return SYNO.SDS.Drive.Utils.isLogined()?e.sendWebAPI({api:"SYNO.SynologyDrive.Share.Priv",method:"list",version:1,params:{query:t,additional:["nickname"]},callback:(e,t)=>{if(!e)return void i.call(n,e,t);for(var o=0;o<t.list.length;o++){var r=t.list[o];"user"===r.type?(0,s.s)().updateUser(r.id,r):"group"===r.type&&(0,s.s)().updateGroup(r.id,r.name)}i.call(n,e,t)}}):void i.call(n,!1,{})}},58525:function(e,t,i){"use strict";let n;i.d(t,{kk:()=>p.kk,VF:()=>W,O_:()=>l.O,Ad:()=>f,XV:()=>p.XV,__:()=>B._,eL:()=>c.e,cL:()=>P,E_:()=>D.E,sI:()=>L.s,v0:()=>h,PV:()=>d,U2:()=>p.U2,wC:()=>R,C6:()=>N,ku:()=>v});var o=i(63447),r=i(5890),a=i(39142),s=i(68426),l=i(59721),c=i(49708);function d(){let e=(0,r.D)(),t=(0,l.O)();e.objectId&&"string"==typeof e.objectId&&(t.objectId=e.objectId),e.link_id&&"string"==typeof e.link_id&&(t.linkId=e.link_id),"boolean"==typeof e.recycle&&(t.isRecycled=e.recycle),e.display_path&&"string"==typeof e.display_path&&(t.path=e.display_path),e.title&&"string"==typeof e.title&&(t.title=e.title),e.ntype&&"string"==typeof e.ntype&&(t.ntype=e.ntype)}function u(){let{is_user_event_enabled:e,ai_feedback_url:t,sheet_max_cell_count:i,sheet_pivot_table_enabled:n}=SYNO.SDS.Office.Define.Info,o=(0,s.V)();"boolean"==typeof e&&(o.userEventEnabled=e),"string"==typeof t&&(o.aiFeedbackUrl=t),"number"==typeof i&&(o.sheetMaxCellCount=i),"boolean"==typeof n&&(o.sheetPivotTableEnabled=n)}function h(){let e=(0,l.O)(),t=(0,c.e)();(0,a.b)().getEnvPromise().then(u),(0,a.b)().loadOfficeConstants().then(u),e.isPublicShare=SYNO.SDS.Office.Utils.isDriveAdvSharing(),(0,o.watch)(()=>e.isImport||e.isPublicShare,e=>{t.fileBrowsable=!e},{immediate:!0})}var p=i(53469);class f{constructor(){this.handlerPools=[],this.initHandlerPools(),this.onKeyDownRef=this.onKeyDown.bind(this),document.documentElement.addEventListener("keydown",this.onKeyDownRef,!1)}initHandlerPools(){for(var e=0;e<8;e++)this.handlerPools[e]={}}getHandlerPool(e){var t=+!!e.ctrl;return t=((t=(t<<1)+ +!!e.shift)<<1)+ +!!e.alt,this.handlerPools[t]}stopEventPropagation(e){e.preventDefault(),e.stopImmediatePropagation()}onKeyDown(e){if(!this.skipHandle()){var t={ctrl:e.ctrlKey||e.metaKey,shift:e.shiftKey,alt:e.altKey,target:e.target,event:e},i=this.getHandlerPool(t)[65<=e.keyCode&&e.keyCode<=90?String.fromCharCode(e.keyCode):v(e.key)];Ext.isFunction(i)&&!1!==i.call(this,t)&&this.stopEventPropagation(e)}}getWin(){return SYNO.SDS.Office.Window}skipHandle(){return this.getWin().isHistoryMode()}destroy(){this.onKeyDownRef&&(document.documentElement.removeEventListener("keydown",this.onKeyDownRef),this.onKeyDownRef=null)}register(e,t,i){this.getHandlerPool(t)[e]=i}}let g={Down:"ArrowDown",Up:"ArrowUp",Left:"ArrowLeft",Right:"ArrowRight",Esc:"Escape",Del:"Delete"},m={"!":"1","@":"2","#":"3",$:"4","%":"5","^":"6","&":"7","*":"8","(":"9",")":"0","⁄":"1","€":"2","‹":"3","›":"4",fi:"5",fl:"6","‡":"7","\xb0":"8","\xb7":"9","‚":"0"};function v(e){if(1===e.length){var t=e.charCodeAt(0);return 97<=t&&t<=122?e.toUpperCase():m[e]||e}return g[e]||e}var b=i(59492),y=i(7046),w=i(37167),_=i(21723),x=i(73200),S=i(56280),C=i(32334);let k=(0,o.defineComponent)({__name:"HotkeyWindow",setup(e){let t=(0,l.O)(),i=(0,p.kk)(),n=(0,o.useTemplateRef)("window"),r=(0,o.computed)(()=>{switch(t.ntype){case"sheet":return(0,C.$)("hotkey","sheet_hotkey");case"doc":return(0,C.$)("hotkey","doc_hotkey");case"presentation":return(0,C.$)("hotkey","slide_hotkey");default:return""}}),a=(0,o.toRef)(()=>i.featureSections),s=" "+(0,C.$)("hotkey","or")+" ",c=[{title:(0,C.$)("hotkey","key"),field:"column1"},{title:(0,C.$)("hotkey","fn"),field:"column2"}];function d(){n.value?.onClose()}return(e,t)=>{let n=(0,o.resolveDirective)("clickoutside");return(0,o.withDirectives)(((0,o.openBlock)(),(0,o.createBlock)((0,o.unref)(b.Z),{ref:"window","syno-id":"window",class:(0,o.normalizeClass)(e.$style.window),title:r.value,draggable:!1,"sticky-center":!0,close:d,width:"830",height:"588"},{default:(0,o.withCtx)(()=>[(0,o.createVNode)((0,o.unref)(y.Z),{"syno-id":"panel",class:(0,o.normalizeClass)(e.$style.panel),fbar:!1},{"scroll-body":(0,o.withCtx)(()=>[((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)(a.value,t=>((0,o.openBlock)(),(0,o.createBlock)((0,o.unref)(w.Z),{key:t.id,collapsible:!0,collapsed:!0,class:(0,o.normalizeClass)(e.$style.fieldset),title:t.title},{default:(0,o.withCtx)(()=>[(0,o.createVNode)((0,o.unref)(_.Z),{"syno-id":"form",class:(0,o.normalizeClass)(e.$style.form)},{default:(0,o.withCtx)(()=>[(0,o.createVNode)((0,o.unref)(x.Z),{class:(0,o.normalizeClass)([e.$style["form-hd"]]),"hide-label":!0},{default:(0,o.withCtx)(()=>[(0,o.createVNode)((0,o.unref)(S.Z),{class:(0,o.normalizeClass)(e.$style["form-hd-first"])},{default:(0,o.withCtx)(()=>[(0,o.createTextVNode)((0,o.toDisplayString)(c[0].title),1)]),_:1},8,["class"]),(0,o.createVNode)((0,o.unref)(S.Z),{class:(0,o.normalizeClass)(e.$style["form-hd-last"])},{default:(0,o.withCtx)(()=>[(0,o.createTextVNode)((0,o.toDisplayString)(c[1].title),1)]),_:1},8,["class"])]),_:1},8,["class"]),((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)(t.features,t=>((0,o.openBlock)(),(0,o.createBlock)((0,o.unref)(x.Z),{key:t,"hide-label":!0,class:(0,o.normalizeClass)(e.$style["form-cell"])},{default:(0,o.withCtx)(()=>[(0,o.createVNode)((0,o.unref)(S.Z),{class:(0,o.normalizeClass)(e.$style["form-cell-first"])},{default:(0,o.withCtx)(()=>[(0,o.createTextVNode)((0,o.toDisplayString)(i.getHotkeys(t)?.join(s)??""),1)]),_:2},1032,["class"]),(0,o.createVNode)((0,o.unref)(S.Z),{class:(0,o.normalizeClass)(e.$style["form-cell-last"])},{default:(0,o.withCtx)(()=>[(0,o.createTextVNode)((0,o.toDisplayString)(i.getDesc(t)??""),1)]),_:2},1032,["class"])]),_:2},1032,["class"]))),128))]),_:2},1032,["class"])]),_:2},1032,["class","title"]))),128))]),_:1},8,["class"])]),_:1},8,["class","title"])),[[n,d]])}}});var I=i(46888),A=i.n(I),T=i(4337);let E={};E.$style=A();let R=(0,T.default)(k,[["__cssModules",E]]);var D=i(36828),O=i(22273);let M={letter:[21.6,27.9],tabloid:[27.9,43.2],legal:[21.6,35.6],statement:[14,21.6],executive:[18.4,26.7],folio:[21.6,33],a3:[29.7,42],a4:[21,29.7],a5:[14.8,21],b4:[25,35.3],b5:[17.6,25]};function N(e){let t=M[e];return t||null}let P=Object.entries(M).map(e=>{let[t,i]=e;return{label:`${(0,O.Z)(t)} (${i[0].toFixed(1)} cm x ${i[1].toFixed(1)} cm)`,value:t}});var L=i(62013),B=i(24536),F=i(44194),V=i(34877);let z=new Promise(e=>{n=e}),H=(0,V.defineStore)("setting",()=>{let e=(0,l.O)(),t=(0,o.ref)(!0),i=(0,o.ref)(!1),r=(0,o.ref)(!0),a=(0,o.ref)(!0),s=(0,o.watch)(()=>e.ntype,e=>{""!==e&&(n?.(e),s())},{immediate:!0});return{init:async function(e){if(!e)return;let n=await z,o=e.preference_settings;t.value=o.use_username_label??!0,i.value=o.use_right_to_left_control??!1,r.value=o[n+"_use_ai"]??!0,a.value=o[n+"_show_ai_bubble"]??!0},useUsernameLabel:t,useRightToLeft:i,useAi:r,showAiBubble:a}});function W(){return(0,F.v)(H)}},251:function(e,t,i){"use strict";i.d(t,{r:()=>a,i:()=>s});var n=i(63447);let o={props:{width:{type:[Number,String],default:"auto"}}};var r=i(53495);let a=(0,n.defineComponent)({name:"FontSizeInput",extends:r.Z,mixins:[o],props:{min:{type:[Number,String],default:8},max:{type:[Number,String],default:400},patchNum:{type:Function,default:e=>Math.round(e)}}}),s=(0,n.defineComponent)({name:"AngleInput",extends:r.Z,mixins:[o],props:{controlsType:{type:String,default:"up-down"},min:{type:[Number,String],default:-360},max:{type:[Number,String],default:360},patchNum:{type:Function,default:e=>Math.floor(e)}}})},36828:function(e,t,i){"use strict";i.d(t,{E:()=>r});var n=i(63447);function o(e){return e.right=e.left+e.width,e.bottom=e.top+e.height,e}let r=(0,i(34877).defineStore)("layout",()=>{let e=(0,n.ref)({width:0,height:0}),t=(0,n.ref)(0),i=(0,n.ref)(0),r=(0,n.ref)(0),a=(0,n.ref)(0),s=(0,n.computed)(()=>o({left:0,top:0,width:e.value.width,height:e.value.height})),l=(0,n.computed)(()=>o({left:0,top:0,width:t.value,height:e.value.height})),c=(0,n.computed)(()=>o({left:t.value,top:0,width:e.value.width-t.value,height:i.value})),d=(0,n.computed)(()=>o({left:t.value,top:i.value,width:e.value.width-t.value,height:e.value.height-i.value})),u=(0,n.computed)(()=>o({left:d.value.left+r.value,top:d.value.top,width:d.value.width-r.value-a.value,height:d.value.height})),h=(0,n.computed)(()=>o({left:d.value.left,top:d.value.top,width:r.value,height:d.value.height})),p=(0,n.computed)(()=>o({left:d.value.left+d.value.width-a.value,top:d.value.top,width:a.value,height:d.value.height}));return{appWindowRect:s,mainToolbarRect:l,topToolbarRect:c,bodyPanelRect:d,contentPanelRect:u,leftSidePanelRect:h,rightSidePanelRect:p,setAppWindowSize:function(t){void 0!==t.width&&(e.value.width=t.width),void 0!==t.height&&(e.value.height=t.height)},setMainToolbarWidth:function(e){t.value=e},setTopToolbarHeight:function(e){i.value=e},setLeftSidePanelWidth:function(e){r.value=e},setRightSidePanelWidth:function(e){a.value=e}}})},18095:function(){Ext.define("SYNO.SDS.Office.LinkPanel",{extend:"SYNO.ux.Panel",constructor:function(e){SYNO.ux.Panel.prototype.constructor.call(this,this.fillConfig(e))},fillConfig:function(e){let t=[{tag:"a",cls:"link",target:"_blank",rel:"noreferrer noopener"},{tag:"span",cls:"edit_separator"},{tag:"div",cls:"edit",html:SYNO.SDS.Office._T("common","edit")},{tag:"span",cls:"copy_separator"},{tag:"div",cls:"copy",html:SYNO.SDS.Office._T("common","copy")},{tag:"span",cls:"delete_separator"},{tag:"div",cls:"delete",html:SYNO.SDS.Office._T("common","delete")}];return Ext.apply({hidden:!0,cls:"syno-o-float-item-panel",html:{tag:"div",cls:"syno-o-float-wrapper",children:t},listeners:{afterrender:{fn:function(e){var t=e.el;this.mon(t,"mousedown",Ext.emptyFn,this,{stopEvent:!0}),[[".link",this.onLinkClick],[".edit",this.onEdit],[".copy",this.onCopy],[".delete",this.onDelete]].forEach(function(i){let n=t.child(i[0]),o=i[1];o!==Ext.emptyFn&&e.mon(n,"click",o,e)})},scope:this,single:!0}}},e)},onEdit:Ext.emptyFn,onDelete:Ext.emptyFn,onLinkClick:Ext.emptyFn,onCopy:Ext.emptyFn,setControlVisible:function(e){for(var t=e?"":"none",i=this.el.child(".link").dom.nextSibling;i;)i.style.display=t,i=i.nextSibling},setCopyVisible:function(e){let t=e?"":"none";this.el.child(".copy_separator").dom.style.display=t,this.el.child(".copy").dom.style.display=t},setLinkComponentsVisible:Ext.emptyFn,fillLink:function(e,t){let i=this.el.child(".link");i&&(i.dom.href=e,i.dom.textContent=t)}})},22053:function(e,t,i){"use strict";i.d(t,{X0:()=>N,QZ:()=>n,mx:()=>_,Yz:()=>S,by:()=>E,QL:()=>O,NV:()=>s,tR:()=>D,dl:()=>o,Oh:()=>M});let n={pushXOffset:16,pushYOffset:16},o={opts:n};var r=i(63447),a=i(31842);let s=(0,r.defineComponent)({name:"Menu",extends:a.Z,props:{emitEventOnly:{type:Boolean,default:!0},width:{type:[Number,String],default:void 0}},computed:{menuCls(){return["ps-office","syno-o-menu"].concat(a.Z.computed.menuCls.call(this))}},beforeUnmount(){if(!this.isRoot)return;let e=document.activeElement;(e===document.body||e.closest(".syno-o-menu"))&&SYNO.SDS.Office.Utils.focusEditor()},methods:{async closeMenu(e){return a.Z.methods.closeMenu.call(this,e)}}});var l=i(27755);let c=(0,r.defineComponent)({name:"MenuSubmenu",components:{vMenu:{...a.Z,props:{...a.Z.props,width:{type:[Number,String],default:void 0}}}},extends:l.Z,props:{width:{type:[Number,String],default:void 0}}});var d=i(32334);let u=(0,r.defineComponent)({__name:"ItemSuffix",props:{hotkey:{},isNewFeature:{type:Boolean},disabled:{},minPaddingWidth:{}},setup:e=>(e,t)=>((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,null,[(0,r.createElementVNode)("span",{class:(0,r.normalizeClass)(e.$style.padding),style:(0,r.normalizeStyle)({"min-width":`${e.minPaddingWidth??40}px`})},null,6),e.hotkey?((0,r.openBlock)(),(0,r.createElementBlock)("span",{key:0,class:(0,r.normalizeClass)([e.$style.hotkey,e.disabled?e.$style.disabled:null])},(0,r.toDisplayString)(e.hotkey),3)):((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:1,class:(0,r.normalizeClass)([e.$style["new-feature"],e.isNewFeature?null:e.$style.hidden])},(0,r.toDisplayString)((0,r.unref)(d.$)("common","new_feature")),3))],64))});var h=i(35481),p=i.n(h),f=i(4337);let g={};g.$style=p();let m=(0,f.default)(u,[["__cssModules",g]]),v=(0,r.defineComponent)({__name:"OfficeMenuSubmenu",props:{synoId:{},hotkey:{},isNewFeature:{type:Boolean}},setup(e,t){let{expose:i}=t,n=(0,r.useTemplateRef)("submenu");return i({closeMenu:function(){n.value?.closeMenu()}}),(e,t)=>((0,r.openBlock)(),(0,r.createBlock)(c,(0,r.mergeProps)({ref:"submenu","syno-id":e.synoId},e.$attrs,{class:e.$style.submenu}),{suffix:(0,r.withCtx)(()=>[(0,r.createVNode)(m,{"min-padding-width":28,hotkey:e.hotkey,"is-new-feature":e.isNewFeature,disabled:e.$attrs.disabled},null,8,["hotkey","is-new-feature","disabled"])]),default:(0,r.withCtx)(()=>[(0,r.renderSlot)(e.$slots,"default")]),_:3},16,["syno-id","class"]))}});var b=i(84753),y=i.n(b);let w={};w.$style=y();let _=(0,f.default)(v,[["__cssModules",w]]),x={extends:a.Z,computed:{menuStyle(){return{...a.Z.computed.menuStyle.call(this),border:"none",boxShadow:"none",padding:"0"}}}},S=(0,r.defineComponent)({components:{vMenu:x},extends:l.Z});var C=i(47501);let k=(0,r.defineComponent)({__name:"OfficeMenuItem",props:{synoId:{},hotkey:{},isNewFeature:{type:Boolean}},setup:e=>(e,t)=>((0,r.openBlock)(),(0,r.createBlock)((0,r.unref)(C.Z),(0,r.mergeProps)({"syno-id":e.synoId},e.$attrs,{class:e.$style["menu-item"]}),{suffix:(0,r.withCtx)(()=>[(0,r.createVNode)(m,{hotkey:e.hotkey,"is-new-feature":e.isNewFeature,disabled:e.$attrs.disabled},null,8,["hotkey","is-new-feature","disabled"])]),_:1},16,["syno-id","class"]))});var I=i(5586),A=i.n(I);let T={};T.$style=A();let E=(0,f.default)(k,[["__cssModules",T]]);var R=i(53469);let D=(0,r.defineComponent)({__name:"ContextMenuItems",props:{items:{},defaultStringSection:{}},setup(e){let t=(0,R.kk)();return(e,i)=>((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.items,i=>{var n;return(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createBlock)(E,{key:i.name,"syno-id":`${i.name}-item`,title:i.title??(0,r.unref)(d.$)(e.defaultStringSection??"handsontable",i.name.replaceAll("-","_")),icon:"string"==typeof(n=i.icon)?{type:"bkg-img",class:n}:n,hotkey:i.hotkey??(0,r.unref)(t).getHotkey(i.name.replaceAll("-","_")),disabled:"function"==typeof i.disabled?i.disabled():i.disabled??!1,"is-new-feature":i.isNewFeature,onClick:i.onClick},null,8,["syno-id","title","icon","hotkey","disabled","is-new-feature","onClick"])),[[r.vShow,"function"==typeof i.show?i.show():i.show??!0]])}),128))}}),O={...a.Z,props:{...a.Z.props,width:{type:[Number,String],default:void 0}},methods:{...a.Z.methods,deactiveItem(){}}},M={...C.Z,methods:{...C.Z.methods,activate(){this.$el.scrollIntoView({block:"nearest"}),this.active=!0}}},N={...l.Z,methods:{...l.Z.methods,activate(){this.$el.scrollIntoView({block:"nearest"}),this.active=!0},async openChildMenuWithFocus(){await this.openChildMenu(),this.$refs.childMenu?.activeNextItem()}}}},84098:function(e,t,i){"use strict";i(37655);var n=i(40109);i(94624),Ext.define("SYNO.SDS.Office.FileMenu",{extend:"SYNO.SDS.Office.Menu",constructor:function(e){SYNO.SDS.Office.Menu.prototype.constructor.call(this,this.fillConfig(e))},fillConfig:function(e){return Ext.apply({items:this.getMenuFileItem(),listeners:{scope:this,beforeshow:function(e){(0,n.gR)(e.items)}}},e)},getMenuFileItem:function(){var e=_S("standaloneAppName"),t=SYNO.SDS.Drive.Utils.isAppAuthorized(),i=[];if(t){i.push(this.createSimpleMenuItem("share",function(){this.findAppWindow().getAction().shareNode()})),i.push(this.createSimpleMenuItem("get_file_link",function(){this.findAppWindow().getEventMgr().fireEvent("getlink")})),i.push("-"),i.push({itemId:"new_file",text:SYNO.SDS.Office._T("file","new_file"),menu:new SYNO.SDS.Office.Menu({items:[this.createSimpleMenuItem("doc",function(){this.findAppWindow().getAction().createNode({ntype:"doc"})},{text:SYNO.SDS.Office._T("file","doc"),iconCls:"syno-d-doc-menu-icon"}),this.createSimpleMenuItem("sheet",function(){this.findAppWindow().getAction().createNode({ntype:"sheet"})},{text:SYNO.SDS.Office._T("file","sheet"),iconCls:"syno-d-sheet-menu-icon"}),this.createSimpleMenuItem("presentation",function(){this.findAppWindow().getAction().createNode({ntype:"presentation"})},{text:SYNO.SDS.Office._T("file","presentation"),iconCls:"syno-d-slide-menu-icon"}),this.createSimpleMenuItem("template",function(){this.findAppWindow().getAction().openTplDialog({defaultType:SYNO.SDS.Office.Env.ntype})},{text:SYNO.SDS.Office._T("file","template"),iconCls:"syno-d-template-menu-icon"})]})}),i.push({itemId:"new_encrypted_file",iconCls:"syno-d-encrypt-file-menu-icon",text:SYNO.SDS.Office._T("handsontable","new_encrypted_file"),menu:new SYNO.SDS.Office.Menu({items:[{text:SYNO.SDS.Office._T("file","doc"),iconCls:"syno-d-doc-menu-icon",handler:function(){new SYNO.SDS.Office.Encrypt.Window({owner:this.findAppWindow(),ntype:"doc"}).show()},scope:this},{text:SYNO.SDS.Office._T("file","sheet"),iconCls:"syno-d-sheet-menu-icon",handler:function(){new SYNO.SDS.Office.Encrypt.Window({owner:this.findAppWindow(),ntype:"sheet"}).show()},scope:this},{text:SYNO.SDS.Office._T("file","presentation"),iconCls:"syno-d-slide-menu-icon",handler:function(){new SYNO.SDS.Office.Encrypt.Window({owner:this.findAppWindow(),ntype:"presentation"}).show()},scope:this},{text:SYNO.SDS.Office._T("file","template"),iconCls:"syno-d-template-menu-icon",handler:function(){this.findAppWindow().getAction().openTplDialog({encrypt:!0,defaultType:SYNO.SDS.Office.Env.ntype})},scope:this}]})});var n=this.recent_menu=new SYNO.SDS.Office.Menu({cls:"syno-o-recent-menu",items:[{disabled:!0,text:"("+SYNO.SDS.Office._T("common","loading")+")"},"-",{cls:"syno-o-recent-more",itemId:"more_files",text:SYNO.SDS.Office._T("common","show_more_files"),handler:this.openRecentWindow,scope:this}],listeners:{beforeshow:this.showRecent,show:this.updateRecentMenu,scope:this}});i.push({itemId:"recent_accessed_file",text:SYNO.SDS.Office._T("handsontable","recent_accessed_file"),menu:n}),i.push("-"),i.push(this.createSimpleMenuItem("copy_to",function(){this.findAppWindow().getAction().copyNodeTo()})),i.push(this.createSimpleMenuItem("move_to",function(){this.findAppWindow().getAction().moveNodeTo()})),i.push(this.createSimpleMenuItem("save",function(){this.findAppWindow().getAction().saveNode()},{hotkey:"Ctrl+S"})),i.push(this.createSimpleMenuItem("save_template",function(){this.findAppWindow().getAction().saveTemplate()})),i.push(this.createSimpleMenuItem("publish_template",function(){this.findAppWindow().getAction().publishTemplate()})),i.push(this.createSimpleMenuItem("rename",function(){this.findAppWindow().getAction().renameNode()})),i.push("-")}return i.push(this.createSimpleMenuItem("information",function(){this.findAppWindow().getAction().infoNode()})),t&&i.push({itemId:"version_history",text:SYNO.SDS.Office._T("handsontable","version_history"),menu:new SYNO.SDS.Office.Menu({items:[{text:SYNO.SDS.Office._T("handsontable","name_current_history"),handler:function(){this.findAppWindow().getAction().nameCurrentVersion()},scope:this},{text:SYNO.SDS.Office._T("info","view_history"),handler:function(){this.findAppWindow().openHistoryWindow()},scope:this}]})}),"SYNO.SDS.Office.Doc.Application"===e&&i.push(this.getPageSetupMenu()),i.push({itemId:"export",text:SYNO.SDS.Office._T("action","download_format"),menu:new SYNO.SDS.Office.Menu({items:this.getExportItems(),listeners:{beforeshow:{fn:function(e,t){e.items.items.forEach(function(e){e.setText(this.getExportText(SYNO.SDS.Office.Env.ntype,e.format))},this)},scope:this,single:!0}}})}),i.push(this.createSimpleMenuItem("print",function(){this.findAppWindow().getAction().printNode()},{hotkey:"Ctrl+P"})),t&&(i.push("-"),i.push(this.createSimpleMenuItem("remove",function(){this.findAppWindow().getAction().deleteNode()})),i.push(this.createSimpleMenuItem("leave",function(){this.findAppWindow().getAction().leaveNode({permanent_link:SYNO.SDS.Office.Env.link_id,username:_S("user")})},{text:SYNO.SDS.Office._T("sheet","share_leave")}))),i},getExportItems:function(){return["ms","odf","pdf"].map(e=>this.createExportMenuItem(e))},createExportMenuItem:function(e){return this.createSimpleMenuItem(`export_${e}`,()=>{this.findAppWindow().getAction().downloadOffice({format:e})},{format:e,text:""})},showRecent:function(e){var t=SYNO.SDS.Office.File;SYNO.SDS.Office.GetWindow().getAction().listRecent({filter:{extensions:[t.DOC_EXTENSION,t.SHEET_EXTENSION,t.SLIDE_EXTENSION]},limit:10},function(t,i){if(t){e.removeAll(!0);var n=0;Ext.iterate(i.items,function(t){var i=SYNO.SDS.Office.File.getExt(t.name);if(-1!==SYNO.SDS.Office.File.OFFICE_EXTENSIONS.indexOf(i)){switch(i){case SYNO.SDS.Office.File.DOC_EXTENSION:i="doc";break;case SYNO.SDS.Office.File.SHEET_EXTENSION:i="sheet";break;case SYNO.SDS.Office.File.SLIDE_EXTENSION:i="slide";break;default:return}if(!e.items.get(t.permanent_link)&&(e.add({cls:"syno-o-recent-file syno-o-recent-"+i+"-files",iconCls:"syno-d-"+i+"-menu-icon",itemId:t.permanent_link,text:SYNO.SDS.Drive.Utils.parseDisplayName(t.name),handler:function(){SYNO.SDS.Drive.Utils.openOfficeLink(t.permanent_link)},scope:this}),10==++n))return!1}}),e.add("-",{cls:"syno-o-recent-more",itemId:"more_files",text:SYNO.SDS.Office._T("common","show_more_files"),handler:this.openRecentWindow,scope:this}),this.updateRecentMenu()}},this)},updateRecentMenu:function(){var e=this.recent_menu;if(e.isVisible()){var t=e.items.items;Ext.each(t,function(e){if(e.text&&e.isVisible()){var t=e.textEl&&e.textEl.dom;t&&(Ext.util.TextMetrics.measure(e.textEl,e.text).width<533||t.setAttribute("ext:qtip",Ext.util.Format.htmlEncode(e.text)))}})}},getPageSetupMenu:Ext.emptyFn,getExportCsvMenuItem:Ext.emptyFn,getExportText:function(e,t){if("ms"===t)if("doc"===e)return"Microsoft Word (.docx)";else if("sheet"===e)return"Microsoft Excel (.xlsx)";else if("presentation"===e)return"Microsoft PowerPoint (.pptx)";else return"Microsoft Office";if("odf"===t){var i=SYNO.SDS.Office._T("file","to_odf");return"doc"===e?i+" (.odt)":"sheet"===e?i+" (.ods)":"presentation"===e?i+" (.odp)":i}if("pdf"===t)return SYNO.SDS.Office._T("file","to_pdf")},openRecentWindow:function(){SYNO.SDS.Office.Utils.openDrive({category:"recent"})},createSimpleMenuItem:function(e,t,i){var o,r=e.replace(/_/g,"-"),a=SYNO.SDS.Office._T;if(i&&i.hasOwnProperty("text"))o=i.text;else{var s=SYNO.SDS.Strings["SYNO.SDS.Office.AppInstance"];o=a(s.hasOwnProperty("handsontable")&&s.handsontable.hasOwnProperty(e)?"handsontable":"action",e)}return Ext.apply({itemId:e,iconCls:"syno-o-"+r+"-menu-icon",text:o,disabled:!t,handler:t?t.createDelegate(this):void 0,listeners:{render:function(e){(0,n.YF)(i?.hotkey,e)}}},i)}})},84779:function(e,t,i){"use strict";i.d(t,{Qg:()=>I,$q:()=>m,Ur:()=>k,NT:()=>g});var n=i(63447),o=i(49098),r=i(25063),a=i(76293),s=i(32334);let l=(0,n.defineComponent)({__name:"NewFeatureHintContent",props:{feature:{},title:{},content:{},confirmText:{default:()=>(0,s.$)("new_feature","try_it_now")},cancelText:{default:()=>(0,s.$)("common","close")}},emits:["confirm","cancel"],setup(e,t){let{emit:i}=t,o=(0,n.computed)(()=>`new-feature-hint-${e.feature}`);return(e,t)=>((0,n.openBlock)(),(0,n.createElementBlock)("div",null,[(0,n.createElementVNode)("div",{class:(0,n.normalizeClass)(e.$style.header)},[(0,n.createElementVNode)("span",{class:(0,n.normalizeClass)(e.$style.title)},(0,n.toDisplayString)(e.title),3),t[2]||(t[2]=(0,n.createElementVNode)("span",{style:{width:"6px",display:"inline-block"}},null,-1)),(0,n.createElementVNode)("span",{class:(0,n.normalizeClass)(e.$style.label)},(0,n.toDisplayString)((0,n.unref)(s.$)("common","new_feature")),3)],2),(0,n.createElementVNode)("div",{class:(0,n.normalizeClass)(e.$style.body)},[(0,n.createVNode)((0,n.unref)(r.Z),{text:e.content},null,8,["text"])],2),(0,n.createElementVNode)("div",{class:(0,n.normalizeClass)(e.$style.footer)},[(0,n.createVNode)((0,n.unref)(a.Z),{type:"footbar",suffix:"cancel","syno-id":`${o.value}-cancel`,onClick:t[0]||(t[0]=e=>i("cancel"))},{default:(0,n.withCtx)(()=>[(0,n.createTextVNode)((0,n.toDisplayString)(e.cancelText),1)]),_:1},8,["syno-id"]),(0,n.createVNode)((0,n.unref)(a.Z),{type:"footbar",suffix:"main","syno-id":`${o.value}-confirm`,onClick:t[1]||(t[1]=e=>i("confirm"))},{default:(0,n.withCtx)(()=>[(0,n.createTextVNode)((0,n.toDisplayString)(e.confirmText),1)]),_:1},8,["syno-id"])],2)]))}});var c=i(80824),d=i.n(c),u=i(4337);let h={};h.$style=d();let p=(0,u.default)(l,[["__cssModules",h]]);var f=i(4077);async function g(){let e=function(){switch(SYNO.SDS.Office.Env.ntype){case"doc":case"presentation":return["ai_assistant","ai_translator"];case"sheet":return["ai_assistant"];default:return null}}();if(!e)return null;let t=await v();return e.find(e=>!t.includes(e))??null}async function m(e){let t=await v();t.includes(e)||await (0,f.L)({hide_hint:{[SYNO.SDS.Office.Env.ntype]:[...t,e]}})}async function v(){return(await (0,f.$)())?.hide_hint?.[SYNO.SDS.Office.Env.ntype]??[]}let b=(0,n.defineComponent)({__name:"NewFeatureHint",props:{feature:{},title:{},content:{},confirmText:{},cancelText:{}},emits:["confirm","cancel"],setup(e,t){let{expose:i,emit:r}=t,a=(0,n.computed)(()=>`new-feature-hint-${e.feature}`),s=(0,n.ref)(null);function l(){s.value?._svc_tooltip_e_hide_cb?.()}function c(){l(),m(e.feature),r("cancel")}function d(){l(),m(e.feature),r("confirm")}i({show:function(){setTimeout(()=>s.value?._svc_tooltip_e_show_cb?.(),500)},hide:l});let u=Math.cos(Math.PI/4),h=(0,n.computed)(()=>[-30-14*u+(s.value?.parentElement?.clientWidth??0)/2,0]),f=(0,n.computed)(()=>({content:"",isHtml:!1,usePortal:!0,portalName:a.value,cls:"syno-o-new-feature-hint",type:"info",arrow:!0,attachToElement:!0,align:"tl->bl",offset:h.value,triggerAction:"custom",interactive:!0,modifiers:{}}));return(t,i)=>{let r=(0,n.resolveDirective)("tooltip");return(0,n.withDirectives)(((0,n.openBlock)(),(0,n.createElementBlock)("div",{ref_key:"el",ref:s},[(0,n.createVNode)((0,n.unref)(o.Z),{"has-portal-target":"",name:a.value,to:a.value},{default:(0,n.withCtx)(()=>[(0,n.createVNode)(p,(0,n.mergeProps)(e,{onConfirm:d,onCancel:c}),null,16)]),_:1},8,["name","to"])])),[[r,f.value]])}}});var y=i(2477),w=i.n(y);let _={};_.$style=w();let x=(0,u.default)(b,[["__cssModules",_]]);var S=i(14395);let C=new Map;function k(e,t){let{feature:i}=t,n=C.get(i);if(!n){let o=e.getEl().dom;n=(0,S.aX)(x,t).mount(o.appendChild(document.createElement("div"))),C.set(i,n)}return n}function I(e){return C.get(e)||null}},38353:function(){Ext.define("SYNO.SDS.Office.OptionFloatPanel",{extend:"SYNO.ux.Panel",constructor:function(e){var t,i=[],n="syno-o-float-item-panel";e.children.forEach(function(e){0<i.length&&i.push({tag:"span"}),e.id=Ext.id(),i.push({tag:e.tag||"div",cls:e.cls||"",id:e.id,html:e.html})}),t={tag:"div",cls:(e.htmlCls||"")+" syno-o-float-wrapper",children:i},delete e.htmlCls,e.cls=Ext.isEmpty(e.cls)?n:e.cls+" "+n,SYNO.ux.Panel.prototype.constructor.call(this,Ext.apply({floating:!0,html:t},e)),this.rendered?this.bindHandler():this.mon(this,"afterrender",this.bindHandler,this,{single:!0}),this.mon(this,"beforedestroy",this.removeHandler,this)},bindHandler:function(){var e;this.children.forEach(function(t){(e=this.el.child("#"+t.id)).on("click",t.handler,t.scope||e)},this),this.mon(this.getEl(),"mousedown",function(e){e.preventDefault()})},removeHandler:function(){var e;this.children.forEach(function(t){(e=this.el.child("#"+t.id)).un("click",t.handler,t.scope||e)},this)}})},68906:function(e,t,i){"use strict";i.d(t,{x:()=>l});var n=i(60537),o=i(90167),r=i.n(o);Ext.define("SYNO.SDS.Office.Notification.Window",{extend:r(),constructor:function(e){this.object_id=e.object_id,r().prototype.constructor.call(this,this.fillConfig(e))},fillConfig:function(e){var t={cls:"syno-o-notify-dlg",title:SYNO.SDS.Office._T("comment","notification_setting"),itemId:"notification_window",height:320,buttons:[{text:_T("common","cancel"),scope:this,handler:this.onCancel},{text:_T("common","ok"),btnStyle:"default",scope:this,handler:this.onApply}],items:[this.getFormPanel()]};return Ext.apply(t,e)},getFormPanel:function(){return Ext.isEmpty(this.formPanel)&&(this.formPanel=new SYNO.ux.FormPanel({trackResetOnLoad:!0,border:!1,height:220,items:[{xtype:"syno_compositefield",fieldLabel:SYNO.SDS.Office._T("comment","notify_when"),items:[{xtype:"container",items:[{xtype:"syno_radio",boxLabel:SYNO.SDS.Office._T("comment","all_comments"),name:"notify_when",inputValue:"all"},{xtype:"syno_radio",boxLabel:SYNO.SDS.Office._T("comment","notify_mention_me"),name:"notify_when",inputValue:"mention_me"},{xtype:"syno_radio",boxLabel:SYNO.SDS.Office._T("comment","notify_never"),name:"notify_when",inputValue:"never"}]}]},{xtype:"syno_compositefield",fieldLabel:SYNO.SDS.Office._T("comment","notify_by"),items:[{xtype:"container",items:[{xtype:"syno_checkbox",boxLabel:SYNO.SDS.Office._T("comment","notify_by_overview"),name:"notify_by_overview",checked:!0,disabled:!0},{xtype:"syno_checkbox",boxLabel:SYNO.SDS.Office._T("comment","notify_by_email"),name:"notify_by_email"},{xtype:"syno_checkbox",boxLabel:SYNO.SDS.Office._T("comment","notify_by_chat"),name:"notify_by_chat",hidden:!SYNO.SDS.Office.Env.is_chat}]}]}]})),this.formPanel},onShow:async function(){this.setStatusBusy();let e=this.findAppWindow();try{let t=await e.getAction().getPersonSetting();this.formPanel.form.setValues(t)}catch(t){SYNO.SDS.Office.Utils.showErrorMsg(e,t.code)}this.clearStatusBusy()},onApply:async function(){let e=this.getFormPanel().getForm().getValues(),t=this.findAppWindow();e.notify_by_email="true"===e.notify_by_email,e.notify_by_chat="true"===e.notify_by_chat,this.setStatusBusy({text:_T("common","saving")});try{await t.getAction().setPersonSetting(e),this.close()}catch(e){this.clearStatusBusy(),SYNO.SDS.Office.Utils.showErrorMsg(t,e.code)}},onCancel:function(){this.getFormPanel().getForm().isDirty()?this.getMsgBox().confirm(this.title,_T("common","confirm_lostchange"),function(e){"yes"===e&&this.close()},this):this.close()}}),i(37655),i(37237);var a=i(14395),s=i(61367);let l=Ext.define("SYNO.SDS.Office.CommentPanel",{extend:"Ext.util.Observable",constructor:function(e){Ext.util.Observable.prototype.constructor.call(this,e)},updatePanel:function(){this.getVueComponent().updateAllComment(this.getCommentSource())},setVueComponent:function(e){this.vueComponent=e},getVueComponent:function(){return this.vueComponent},_createVueComponent:function(e){return(0,a.aX)(n.O1,{isSupportSuggestion:this.isSupportSuggestion(),...this._createVueComponentListeners()}).mount(e)},_createVueComponentListeners:function(){let e={onTriggerClose:this.handleClose.bind(this),onActiveChange:this.handleActiveChange.bind(this),onThreadReopen:this.handleReopen.bind(this),onThreadResolve:this.handleResolve.bind(this),onThreadAccept:this.handleAccept.bind(this),onThreadReject:this.handleReject.bind(this),onReplyEdit:this.handleReplyEdit.bind(this),onReplyDelete:this.handleReplyDelete.bind(this),onReplyApply:this.handleReplyApply.bind(this)};return(0,s.isMobileLayout)()&&(e.onThreadClick=this.handleThreadClick.bind(this)),e},getCommentSource:function(){return[]},getDisplayComment:function(){return this.vueComponent?this.vueComponent.getDisplayComment():[]},getThreadCount:function(){return this.getDisplayComment().length},getActiveId:function(){return this.vueComponent?.activeId??null},isSupportSuggestion:function(){return!1},handleClose:function(){this.fireEvent("close")},handleThreadClick:function(e){this.fireEvent("close"),SYNO.SDS.Office.GetWindow().mainPanel.showCommentsInBottomPanel([e])},handleActiveChange:function(e){},handleReopen:function(e){},handleResolve:function(e){},handleAccept:function(e){},handleReject:function(e){},handleReplyEdit:function(e,t,i){},handleReplyDelete:function(e,t){},handleReplyApply:function(e,t){},updateComment:function(e){this.vueComponent&&this.vueComponent.updateComment(e)},updateClickThreadId:function(e){this.vueComponent&&this.vueComponent.updateActiveThread(e)}})},63314:function(e,t,i){"use strict";var n=i(61367),o=i(82795),r=i(90167),a=i.n(r);Ext.define("SYNO.SDS.Office.LinkEditor",{extend:"SYNO.ux.Panel",statics:{DriveLinkPrefix:"#dlink=",isDriveLink:function(e){return e&&e.startsWith(SYNO.SDS.Office.LinkEditor.DriveLinkPrefix)},getLinkByInfo:function(e){var t=e.fileInfo,i=e.advShareInfo,n=e.forceFileShare;return i&&!n?"/d/s/"+t.permanent_link+"/"+i.sharing_link:("office"===SYNO.SDS.Drive.Utils.getFileTypeMapping(t.ntype)?"/oo/r/":"/d/f/")+t.permanent_link},getFullDriveLink:function(e){return SYNO.SDS.Office.WindowHelper.getBaseAppURL()+e.substr(SYNO.SDS.Office.LinkEditor.DriveLinkPrefix.length)}},constructor:function(e){let t=this.getComponentWidths(490,90);e.cls=(e.cls||"")+" syno-o-link-editor-panel",e=Ext.apply({width:t.window,floating:!0,buttons:[{xtype:"syno_button",btnStyle:"grey",style:{"border-radius":"15px","box-sizing":"border-box",height:"30px"},itemId:"cancel_button",text:_T("common","cancel"),scope:this,handler:this.onCancel},{xtype:"syno_button",btnStyle:"default",style:{"border-radius":"15px","box-sizing":"border-box",height:"30px"},itemId:"apply_button",text:_T("common","apply"),scope:this,handler:this.onApply}],items:[{xtype:"syno_formpanel",width:t.panel,labelWidth:t.label,autoHeight:!0,cls:"syno-o-link-editor-form",items:[this.createTextField({width:t.field}),this.createUrlField({width:t.field})]},this.getDriveLinkHintPanel()]},e),SYNO.ux.Panel.prototype.constructor.call(this,e),this.focusAfterShow=!0,this.mon(this,"show",this.onPanelShow,this)},getComponentWidths(e,t){let i=e;(0,n.isMobileLayout)()&&(i=Math.min(document.body.clientWidth-32,i));let o=i-40;return{window:i,panel:o,label:t,field:o-t-10}},createTextField:function(e){return this.text_field=new SYNO.ux.TextField({fieldLabel:SYNO.SDS.Office._T("handsontable","text"),hideLabel:!1,width:e.width,height:30,cls:"syno-o-link-editor-text",validationOnBlur:!1,enableKeyEvents:!0,listeners:{scope:this,keydown:this.onTextFieldKeydown}}),this.text_field},createUrlField:function(e){return this.url_field=new SYNO.SDS.Office.LinkComboBox(this._getLinkComboCfg(e))},_getLinkComboCfg:function(e){return{cls:"syno-o-link-editor-url",height:30,width:e.width,hideLabel:!1,fieldLabel:SYNO.SDS.Office._T("handsontable","link"),mode:"local",autoSelect:!1,validationOnBlur:!1,validationDelay:50,editable:!0,listClass:"syno-o-link-editor-url-list syno-ux-combobox-list",triggerClass:"x-form-arrow-trigger syno-o-link-editor-url-trigger",onTriggerClick:this.onTriggerClick.bind(this),beforeBlur:Ext.emptyFn,enableKeyEvents:!0,displayField:"brief",valueField:"id",lazyInit:!1,store:this.createUrlStore(),listeners:{scope:this,afterrender:function(e){this.mon(e.getEl(),"click",this.onComboClick,this),this.mon(e.getEl(),"input",this.onUrlFieldInput,this,{buffer:100}),e.keyNav.down=function(){this.isExpanded()&&(this.inKeyMode=!0,this.selectNext())}},keydown:this.onUrlFieldKeydown,select:this.onComboSelect,selectfromdrive:this.onComboSelectFromDrive,focus:this.onComboFocus}}},getDriveLinkHintPanel:function(){return this.driveLinkHintPanel||(this.driveLinkHintPanel=new SYNO.SDS.Office.DriveLinkHintPanel({listeners:{scope:this,sharetypechange:this.refreshShareInfo}})),this.driveLinkHintPanel},createUrlStore:function(){return this.url_store=new Ext.data.ArrayStore({autoDestroy:!0,fields:["id","brief"]})},getUrlStore:function(){return this.url_store},loadUrlStore:Ext.emptyFn,onComboClick:function(){var e=this.url_field;e.readOnly||e.doQuery(e.getRawValue())},onComboFocus:function(e){e.readOnly||e.doQuery(e.getRawValue())},onComboSelect:function(e){e.setReadOnly(!0),this.onUrlFieldInput(),this.text_field.getValue()||this.text_field.setValue(this.url_field.getRawValue())},onComboSelectFromDrive:function(e,t){this.onComboSelect(e),this.driveLinkHintPanel.updateInfo(t)},refreshShareInfo:function(e){this.url_field.applyShareInfo(e)},onShow(){SYNO.ux.Panel.prototype.onShow.apply(this,arguments),this.mon(this.findAppWindow(),"focuseditor",this.onAppWindowFocusEditor,this)},onHide(){SYNO.ux.Panel.prototype.onHide.apply(this,arguments),this.mun(this.findAppWindow(),"focuseditor",this.onAppWindowFocusEditor,this)},onPanelShow:function(){this.focusAfterShow&&this.focusInputField()},onAppWindowFocusEditor:function(){this.focusUrlField()},focusInputField:function(){this.text_field.isVisible()&&this.url_field.readOnly?this.delayFocus(this.text_field,!1):this.focusUrlField()},focusUrlField:function(){this.url_field.getValue()&&this.mon(this.url_field,"focus",this.url_field.collapse,this.url_field,{single:!0}),this.delayFocus(this.url_field,!this.url_field.readOnly)},onTriggerClick:function(){let e=this.text_field,t=this.url_field;e.getValue()===t.getRawValue()&&(e.setValue(""),e.clearInvalid()),t.setReadOnly(!1),t.clearValue(),this.onUrlFieldInput(),t.doQuery("",!0),this.delayFocus(t,!1,200),this.driveLinkHintPanel.updateInfo(null)},onFieldKeydown:function(e,t){t.ESC===t.keyCode&&(t.preventDefault(),t.stopPropagation(),this.onCancel())},onTextFieldKeydown:function(e,t){t.ENTER===t.keyCode?(t.preventDefault(),t.stopPropagation(),this.onApply()):this.onFieldKeydown(e,t)},onUrlFieldKeydown:function(e,t){let i=this.url_field;t.ENTER!==t.keyCode||i.isExpanded()&&this.url_field.getStore()?.getCount()?this.onFieldKeydown(e,t):(t.preventDefault(),t.stopPropagation(),this.onApply())},onUrlFieldInput:function(){var e=this.url_field,t=e.trigger,i=e.getRawValue(),n="syno-o-link-editor-url-non-empty",o=this.fbar.getComponent("apply_button");i?t.hasClass(n)||(t.addClass(n),o.enable()):(t.removeClass(n),o.disable())},onApply:function(){var e=this.url_field.getRawValue().trim();return!!e&&0!==e.indexOf("javascript:")||(this.url_field.markInvalid(),!1)},onCancel:Ext.emptyFn,setDefaultValue:function(e,t){this.text_field.setValue(t||""),this.text_field.originalValue=this.text_field.getValue(),"#"===(e=e||"")[0]?this.setSpecialLink(e):this.setLink(e)},setLink:function(e){this.url_field.setReadOnly(!1),this.url_field.setLink(e),this.driveLinkHintPanel.updateInfo(null),this.onUrlFieldInput()},setSpecialLink:function(e){SYNO.SDS.Office.LinkEditor.isDriveLink(e)?this.setDriveLink(e):this.setLocalIdLink(e)},setLocalIdLink:function(e){var t=this.getUrlStore(),i=t.findExact("id",e);if(i>=0){var n=t.getAt(i);this.url_field.setLocalLink(n.get("id")),this.onComboSelect(this.url_field)}this.driveLinkHintPanel.updateInfo(null)},setDriveLink:function(e){if(this.url_field.setDriveLink(e),!SYNO.SDS.Drive.Utils.isAppAuthorized())return void this.onComboSelectFromDrive(this.url_field,null);var t=e.split("/"),i=t[3],n=t[4],o=SYNO.SDS.Drive.Utils.getPathIdByLink(i);SYNO.SDS.Office.GetWindow().getWebAPI().getFileSharingInfoPromise(o).then((function(t){if(this.isVisible()){var o=t&&t.result&&t.result[0].data,r=t&&t.result&&t.result[1].data;o?this.url_field.setDriveLink(e,o):(this.delayFocus(this.url_field,!0,0),o={permanent_link:i,capabilities:{}}),this.onComboSelectFromDrive(this.url_field,{fileInfo:o,advShareInfo:r,forceFileShare:!n})}}).bind(this))},delayFocus:function(e,t,i){this.focusTimer&&clearTimeout(this.focusTimer);var n=(function(){this.focusTimer=null,e.focus(t)}).bind(this);i?this.focusTimer=setTimeout(n,i):n()}}),Ext.define("SYNO.SDS.Office.LinkComboBox",{extend:o.L,maxHeight:150,iconType:"",constructor:function(e){o.L.prototype.constructor.call(this,e),this.tpl??='<tpl for="."><div class="x-combo-list-item {[values.cls || ""]}" role="option" aria-label="{[Ext.util.Format.htmlEncode(Ext.util.Format.stripTags(values.'+this.displayField+'))]}" id="{[Ext.id()]}" ext:qtip="{[Ext.util.Format.htmlEncode(values.qtip)]}">{[Ext.util.Format.htmlEncode(values.'+this.displayField+")]}</div></tpl>"},_createBottomStore:function(e){return new Ext.data.ArrayStore({autoDestroy:!0,fields:["value","brief"],data:e??this._initBottomStoreData()})},_initBottomStoreData:function(){let e=[];return SYNO.SDS.Office.Utils.isPublicShareOrImportView()||(0,n.isMobileLayout)()||e.push(["drive",SYNO.SDS.Office._T("link","insert_from_drive")]),e},_onBottomRecordClick:function(e){"drive"===e.get("value")&&(this.list.hide(),SYNO.SDS.AppLaunch("SYNO.SDS.Drive.Upload.Application",{from_upload:!1,from_drive:!0,from_nas:!1,from_url:!1,singleSelect:!0,enableSelectDir:!0,activeItem:"from_drive",viewMode:"list",allowDblClick:!0,onApply:this.handleResult.bind(this),beforeSelection:function(e){return!Ext.isEmpty(e[0].data.permanent_link)}},!1,()=>{this.overrideRestoreWindowFocus(SYNO.SDS.AppMgr.getByAppName("SYNO.SDS.Drive.Upload.Application")[0].window)}))},validate:function(){return!!this.isDestroyed||!!(this.disabled||this.validateValue(this.processValue(this.getRawValue())))&&(this.clearInvalid(),!0)},setReadOnly:function(e){this.collapse(),e?(this.wrap.addClass("syno-o-link-editor-url-wrap-icon"),this.addClass("syno-ux-triggerfield-readonly")):(this.wrap.removeClass("syno-o-link-editor-url-wrap-icon"),this.removeClass("syno-ux-triggerfield-readonly")),o.L.prototype.setReadOnly.apply(this,arguments)},handleResult:function(e,t){var i=t[0];(i.capabilities.can_share&&i.adv_shared?this.chooseShareLink(i):Promise.resolve({fileInfo:i,advShareInfo:null,forceFileShare:!0})).then((function(e){e&&(this.applyShareInfo(e),this.fireEvent("selectfromdrive",this,e))}).bind(this))},applyShareInfo:function(e){var t=SYNO.SDS.Office.LinkEditor.getLinkByInfo(e);this.setDriveLink(SYNO.SDS.Office.LinkEditor.DriveLinkPrefix+t,e.fileInfo)},setType:function(e){e!==this.type&&(this.type&&(this.getEl().dom.classList.remove(String.format("syno-o-link-icon-{0}","local"===this.type?"local":"drive")),this.getEl().dom.style.backgroundImage=null),e&&(this.getEl().dom.classList.add(String.format("syno-o-link-icon-{0}","local"===e?"local":"drive")),"local"!==e&&(this.getEl().dom.style.backgroundImage=String.format("url({0})",SYNO.SDS.Drive.FileType.getFileTypeIcon(e,16)))),this.type=e)},setLink:function(e){this.setValue(e),this.setType("")},setLocalLink:function(e){this.setValue(e),this.setType("local")},setDriveLink:function(e,t){if(this.setValue(e),t){var i=t.name;this.setRawValue(i),this.setType("dir"===t.type?"dir":SYNO.SDS.Drive.Utils.getExt(i))}else this.setRawValue(SYNO.SDS.Office.LinkEditor.getFullDriveLink(e)),this.setType("")},clearValue:function(){o.L.prototype.clearValue.apply(this,arguments),this.setType("")},onSelect:function(e,t){!1!==this.fireEvent("beforeselect",this,e,t)&&(this.setLocalLink(e.data[this.valueField||this.displayField]),this.collapse(),this.fireEvent("select",this,e,t))},chooseShareLink:function(e){return new Promise(t=>{var i=new SYNO.SDS.Office.ShareLink.Window({fileInfo:e,listeners:{choosesharetype:t}});this.overrideRestoreWindowFocus(i),i.show()})},overrideRestoreWindowFocus(e){let t=this;e.mun(e,"hide",e.restoreWindowFocus,e),e.restoreWindowFocus=function(){!0!==this.focusLeave&&(t.hidden||t.focus(),this.focusLeave=!0)},e.mon(e,"hide",e.restoreWindowFocus,e),e.mon(this,"focus",()=>{e.hidden||(this.collapse(),e.focus())})}}),Ext.define("SYNO.SDS.Office.DriveLinkHintPanel",{extend:"SYNO.ux.Panel",constructor:function(e){this.info=null,SYNO.ux.Panel.prototype.constructor.call(this,this.fillConfig(e))},fillConfig:function(e){return Ext.apply({hidden:!0,items:[this.permissionInfo=new SYNO.ux.DisplayField({cls:"syno-o-link-panel-permission-text"}),this.settingButton=new SYNO.ux.DisplayField({cls:"syno-o-link-panel-permission-btn",value:SYNO.SDS.Drive._T("share","sharing_settings")})]},e)},initEvents:function(){this.mon(this.settingButton,"afterrender",function(){this.settingButton.getEl().dom.addEventListener("click",this.openShareSetting.bind(this))},this,{single:!0})},openShareSetting:function(){var e,t=new SYNO.SDS.Drive.Share.Window({path:SYNO.SDS.Drive.Utils.getPathIdByLink(this.info.fileInfo.permanent_link)}),i=function(){if(!e){t.setStatusBusy();var n=SYNO.SDS.Drive.Utils.getPathIdByLink(this.info.fileInfo.permanent_link);e=SYNO.SDS.Office.GetWindow().getWebAPI().getFileSharingInfoPromise(n).then((function(e){t.mun(t,"beforeclose",i,this),t.clearStatusBusy(),t.close(),this.refresh(e)}).bind(this))}return!1};t.mon(t,"beforeclose",i,this),t.show(),this.info.advShareInfo&&!this.info.forceFileShare&&t.getTabPanel().setActiveTab(1)},refresh:function(e){if(e&&e.result){var t=e.result[0].data,i=e.result[1].data;if(t){var n={fileInfo:t,advShareInfo:i,forceFileShare:this.info.forceFileShare};this.info.advShareInfo&&!i?(this.fireEvent("sharetypechange",n),this.updateInfo(n)):!this.info.advShareInfo&&i?this.changeToPublic().then((function(e){e&&(n.forceFileShare=!1,this.fireEvent("sharetypechange",n),this.updateInfo(n))}).bind(this)):this.updateInfo(n)}}},changeToPublic:function(){return new Promise(function(e){SYNO.SDS.Office.GetWindow().getMsgBox().show({msg:SYNO.SDS.Office._T("link","enable_adv_link_msg"),buttons:{yes:{text:SYNO.SDS.Office._T("link","replace_link"),btnStyle:"default"},no:{text:SYNO.SDS.Office._T("link","keep_original")}},fn:function(t){e("yes"===t)}})})},updateInfo:function(e){if((0,n.isMobileLayout)())return void this.hide();this.info=e;var t=e&&e.fileInfo,i=e&&e.advShareInfo,o=e&&e.forceFileShare;if(!t)return void this.hide();var r=SYNO.SDS.Office._T("link","no_setting_permission_msg");i&&!o?r=SYNO.SDS.Drive.Utils.getAdvPermissionText(i):t.capabilities.can_read&&(r=SYNO.SDS.Drive.Utils.getPermissionText(t.shared_with)),this.permissionInfo.update(r),this.settingButton.setVisible(SYNO.SDS.Drive.Utils.checkSharePrivilge(t,t.capabilities.can_share)),this.show()}}),Ext.define("SYNO.SDS.Office.ShareLink.Window",{extend:a(),constructor:function(e){a().prototype.constructor.call(this,this.fillConfig(e))},fillConfig:function(e){var t=SYNO.SDS.Drive._T,i=t("share","dir"===e.fileInfo.file_type?"directory_link":"file_link"),n={cls:"syno-o-share-link-window",autoHeight:!0,title:SYNO.SDS.Office._T("link","select_type"),width:500,items:[{xtype:"syno_formpanel",itemId:"form",autoHeight:!0,items:[{xtype:"syno_displayfield",cls:"syno-o-share-link-window-msg",value:String.format(SYNO.SDS.Office._T("link","select_link_type"),e.fileInfo.name)},this.internalRadio=new SYNO.SDS.Office.ShareLink.RadioContainer({title:i,radioCfg:{name:"sharetype",checked:!0}}),this.publicRadio=new SYNO.SDS.Office.ShareLink.RadioContainer({title:t("share","public_protection_link"),radioCfg:{name:"sharetype",checked:!1}})]}],buttons:[{text:SYNO.SDS.Office._T("common","cancel"),btnStyle:"grey",scope:this,handler:function(){this.fireEvent("choosesharetype",null),this.destroy()}},{text:SYNO.SDS.Office._T("common","ok"),btnStyle:"default",disabled:!0,scope:this,handler:this.onApply}]};return Ext.apply(n,e)},initEvents:function(){a().prototype.initEvents.apply(this,arguments),this.mon(this,"afterrender",this.onAfterRender,this,{single:!0})},onAfterRender:function(){SYNO.SDS.Office.GetWindow().getWebAPI().getAdvSharingLinkPromise({path:SYNO.SDS.Drive.Utils.getPathIdByLink(this.fileInfo.permanent_link)}).then((function(e){if(!this.isDestroyed){this.advShareInfo=e;var t=SYNO.SDS.Drive.Utils.getPermissionText(this.fileInfo.shared_with),i=SYNO.SDS.Drive.Utils.getAdvPermissionText(e),n=SYNO.SDS.Office.WindowHelper.getBaseAppURL(),o=n+SYNO.SDS.Office.LinkEditor.getLinkByInfo({fileInfo:this.fileInfo}),r=n+SYNO.SDS.Office.LinkEditor.getLinkByInfo({fileInfo:this.fileInfo,advShareInfo:e});this.internalRadio.update(o,t),this.publicRadio.update(r,i),this.buttons.forEach(function(e){e.setDisabled(!1)})}}).bind(this))},onApply:function(){var e={fileInfo:this.fileInfo,advShareInfo:this.advShareInfo,forceFileShare:!0===this.internalRadio.getRadioValue()};this.fireEvent("choosesharetype",e),this.destroy()}}),Ext.define("SYNO.SDS.Office.ShareLink.RadioContainer",{extend:"Ext.Container",constructor:function(e){Ext.Container.prototype.constructor.call(this,this.fillConfig(e)),this.bindEvent()},fillConfig:function(e){var t=Ext.apply({cls:"syno-o-share-link-radio",boxLabel:" "},e.radioCfg||{}),i=e.title||"",n={cls:"syno-o-share-link-radio-container",items:[this.radio=new SYNO.ux.Radio(t),new Ext.Container({cls:"syno-o-share-link-radio-content",items:[new SYNO.ux.DisplayField({cls:"syno-o-share-link-radio-text",value:i}),this.linkField=new SYNO.ux.TextField({width:414,disabled:!t.checked,readOnly:!0}),this.permissionField=new SYNO.ux.DisplayField({value:" "})]})]};return Ext.apply(n,e)},bindEvent:function(){this.mon(this,"afterrender",function(){this.el.dom.addEventListener("click",(function(){this.radio.setValue(!0)}).bind(this))},this,{single:!0}),this.mon(this.radio,"check",function(e,t){this.linkField.setDisabled(!t)},this)},getRadioValue:function(){return this.radio.getValue()},update:function(e,t){this.linkField.setValue(e),this.permissionField.update(t)}})},45630:function(e,t,i){"use strict";i.d(t,{d:()=>z}),i(37655);var n=i(29980),o=i(63447);let r={class:"syno-o-mobile-header"},a={class:"syno-o-title"},s={class:"syno-o-mobile-header-buttons"};var l=i(76293),c=i(31842),d=i(47501),u=i(63104),h=i(59721),p=i(49708);let f=(0,o.defineComponent)({name:"MobileHeader",components:{vButton:l.Z,vMenu:c.Z,vMenuItem:d.Z},props:{title:{type:String,required:!0},btns:{type:Object,required:!0}},emits:["undo","redo","find","more-action"],data(){return{allButtons:["undo","redo","find","more-action"],itemText:{"share-link":this.$ST("comment","get_link"),find:this.$ST("handsontable","find"),download:this.$ST("action","download"),"all-comment":this.$ST("handsontable","all_comments")}}},computed:{visibleButtons(){let{baseEditable:e}=(0,p.e)();return e?this.allButtons:0===this.visibleMenuItems.length?[]:["more-action"]},visibleMenuItems(){let{isTemplate:e,isImport:t,isPublicShare:i}=(0,h.O)(),{baseCommentable:n,downloadable:o}=(0,p.e)(),r={"all-comment":n,"share-link":!e&&!t&&!i,download:o&&!u.Z.isNativeBridgeAvailable()};return Object.keys(r).filter(e=>r[e])}},methods:{buttonClick(e){this.$emit(e)}}});i(13840);let g=(0,i(4337).default)(f,[["render",function(e,t,i,n,l,c){let d=(0,o.resolveComponent)("v-menu-item"),u=(0,o.resolveComponent)("v-menu"),h=(0,o.resolveComponent)("v-button");return(0,o.openBlock)(),(0,o.createElementBlock)("div",r,[(0,o.createElementVNode)("div",a,(0,o.toDisplayString)(e.title),1),(0,o.createElementVNode)("div",s,[(0,o.renderSlot)(e.$slots,"buttons",{},()=>[((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)(e.visibleButtons,t=>((0,o.openBlock)(),(0,o.createBlock)(h,{key:t,"syno-id":t,icon:`syno-o-${t}-btn`,disabled:!!(e.btns[t]&&e.btns[t].disabled),type:"styleless",suffix:"none","menu-align":"tr->br",class:"syno-o-btn",onClick:()=>e.buttonClick(t)},(0,o.createSlots)({_:2},["more-action"===t?{name:"dropdown",fn:(0,o.withCtx)(()=>[(0,o.createVNode)(u,{"syno-id":"menu",class:"syno-o-mobile-header-menu",width:"auto",position:[0,1]},{default:(0,o.withCtx)(()=>[((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)(e.visibleMenuItems,t=>((0,o.openBlock)(),(0,o.createBlock)(d,{key:t,title:e.itemText[t],"syno-id":t,disabled:!!(e.btns[t]&&e.btns[t].disabled),onClick:()=>e.buttonClick(t)},null,8,["title","syno-id","disabled","onClick"]))),128))]),_:1})]),key:"0"}:void 0]),1032,["syno-id","icon","disabled","onClick"]))),128))],!0)])])}],["__scopeId","data-v-3992ee22"]]);var m=i(32867),v=i(98272);let b=Ext.define("SYNO.SDS.Office.MobileHeader",{extend:n.u,vueClass:(0,v.Js)(g,{title:"",btns:{undo:{disabled:!0},redo:{disabled:!0}}}),getVueProps(){return{onUndo:this.clickUndo.bind(this),onRedo:this.clickRedo.bind(this),onAllComment:this.clickAllComment.bind(this),onShareLink:this.clickShareLink.bind(this),onFind:this.clickFind.bind(this),onDownload:this.clickDownload.bind(this)}},setTitle(e){this.getVueInstance().setProp("title",e)},setBtnDisabled(e,t){let i=this.getVueInstance(),n=i.getProp("btns");i.setProp("btns",{...n,[e]:{...n[e],disabled:t}})},initVueInstance(){this.bindIconbarUndoRedoState()},bindIconbarUndoRedoState(){let e=SYNO.SDS.Office.GetWindow().getMainPanel().getIconicontbar();for(let t of["undo","redo"]){let i=e.get(t);i&&(i.on("disable",()=>this.setBtnDisabled(t,!0)),i.on("enable",()=>this.setBtnDisabled(t,!1)))}},clickUndo(){SYNO.SDS.Office.GetWindow().getMainPanel().getIconicontbar().get("undo")?.handler?.()},clickRedo(){SYNO.SDS.Office.GetWindow().getMainPanel().getIconicontbar().get("redo")?.handler?.()},clickAllComment(){SYNO.SDS.Office.GetWindow().getMainPanel().getIconicontbar().get("all_comment")?.handler?.()},clickShareLink(){let e=new URL(SYNO.SDS.Office.URL.getCurURL());e.hash="",e.search="",(0,m.vQ)(e.toString(),{successMsg:SYNO.SDS.Drive._T("share","url_copied"),failedMsg:""})},clickFind(){SYNO.SDS.Office.GetWindow().getMainPanel().getMenuicontbar().get("edit_button")?.menu.get("find_replace")?.handler?.()},clickDownload(){SYNO.SDS.Office.GetAction().downloadOffice({format:"ms"})}});var y=i(91229),w=i(2771);let _="hidden",x="no-preview";class S{constructor(){this.mask=document.createElement("div"),this.mask.classList.add("screen-color-picker-mask",_),this.mask.tabIndex=-1,document.body.append(this.mask),this.preview=document.createElement("div"),this.preview.classList.add("screen-color-picker-preview"),this.mask.append(this.preview),this.mask.addEventListener("mousemove",e=>{let{x:t,y:i}=e;return window.requestAnimationFrame(()=>this.updatePreviewPosition(t,i))}),this.mask.addEventListener("mouseover",e=>{let{x:t,y:i}=e;return this.updatePreviewPosition(t,i)}),this.mask.addEventListener("mousemove",e=>{let{x:t,y:i}=e;return window.requestAnimationFrame(()=>this.updatePreviewColor(t,i))}),this.mask.addEventListener("mouseover",e=>{let{x:t,y:i}=e;return this.updatePreviewColor(t,i)}),this.mask.addEventListener("mousedown",e=>e.stopPropagation()),this.mask.addEventListener("click",this.onClick.bind(this)),this.mask.addEventListener("mouseup",this.onMouseup.bind(this)),this.mask.addEventListener("keydown",this.onKeydown.bind(this))}extensionEnabled(){return"object"==typeof SynoOfficeExtension&&!!SynoOfficeExtension.getInstance().startUpdateScreenshot}eyeDropperAvailable(){return"function"==typeof EyeDropper}functionAvailable(){return this.eyeDropperAvailable()||this.extensionEnabled()}startPreview(){this.showMask(),this.showPreview(),this.extensionEnabled()&&SynoOfficeExtension.getInstance().startUpdateScreenshot()}stopPreview(){if(this.hideMask(),this.preview.style.backgroundColor="",this.extensionEnabled()){let e=SynoOfficeExtension.getInstance();e.stopUpdateScreenshot(),e.deleteCachedScreenshot()}}showMask(){this.mask.classList.remove(_),this.mask.focus()}hideMask(){this.mask.classList.add(_)}showPreview(){this.preview.classList.remove(_),this.mask.classList.remove(x)}hidePreview(){this.preview.classList.add(_),this.mask.classList.add(x)}async getColorByClick(){if(this.eyeDropperAvailable())return this.getColorByEyeDropper();try{this.startPreview();let{x:e,y:t}=await this.getCoordByClick();return this.getColorByExtension(e,t)}finally{this.stopPreview()}}async getColorByEyeDropper(){try{this.showMask(),this.hidePreview();let e=new EyeDropper;return(await e.open()).sRGBHex}finally{this.hideMask(),this.showPreview()}}async getCoordByClick(){return this.rejectClickPromise("InvalidStateError"),new Promise((e,t)=>{this._getCoordByClickPromise={resolve:e,reject:t}})}async getColorByExtension(e,t){if(this.extensionEnabled()){let i=await SynoOfficeExtension.getInstance().getScreenPixelColor(e,t);return"#"+w.rgb.hex([i.r,i.g,i.b])}throw Error("No active Synology Office Extension.")}updatePreviewPosition(e,t){let i=t-19-48,n=e-4+24;i<0&&(i=t-19+24),n+48>document.documentElement.clientWidth&&(n=e-19-48),this.preview.style.top=`${i}px`,this.preview.style.left=`${n}px`}async updatePreviewColor(e,t){try{let i=await this.getColorByExtension(e,t);this.preview.style.backgroundColor=i}catch{}}onClick(e){this.resolveClickPromise({x:e.x,y:e.y})}onMouseup(e){2===e.button&&this.rejectClickPromise("AbortError")}onKeydown(e){e.preventDefault(),e.stopPropagation(),this.rejectClickPromise("AbortError")}resolveClickPromise(e){this._getCoordByClickPromise&&(this._getCoordByClickPromise.resolve(e),this._getCoordByClickPromise=void 0)}rejectClickPromise(e){if(!this._getCoordByClickPromise)return;let t=Error("rejected");t.name=e,this._getCoordByClickPromise.reject(t),this._getCoordByClickPromise=void 0}}var C=i(40109),k=i(13420),I=i(61367),A=i(32334),T=i(61232),E=i(14395),R=i(12559),D=i(94136),O=i(42326);let M=Ext.define("SYNO.SDS.Office.ActionBarMobile",{extend:n.u,vueClass:O.U$,statics:{whenInfoReady:e=>Promise.all([SYNO.SDS.Office.Utils.getInitEventPromise(),SYNO.SDS.Office.GetAction().getSettingPromise()])},constructor(e){n.u.prototype.constructor.call(this,Object.assign(e,{vueProps:{title:Ext.util.Format.htmlEncode(SYNO.SDS.Office.Utils.parseDisplayName(SYNO.SDS.Office.Env.title)),iconSrc:this.getIcon(),appLink:(0,k.mn)(),isTemplate:SYNO.SDS.Office.Env.is_template,onDownload:()=>this.onClickDownload(),onClose:()=>this.onClickClose()}}))},getIcon(){let e,t=window.devicePixelRatio>1.5?64:32;switch(SYNO.SDS.Office.Env.ntype){case"sheet":e="spreadsheet";break;case"doc":e="document";break;case"presentation":e="slide"}return e?"webman/3rdparty/SynologyDrive-Drive/images/_Favicon/"+e+"_"+t+".png":""},onClickDownload(){this.owner.findAppWindow().getAction().downloadOffice({format:"ms"})},onClickClose(){this.destroy()}});var N=i(42152),P=i(9359),L=i(24536),B=i(68784),F=i(58525),V=i(45407);let z=Ext.define("SYNO.SDS.Office.MainPanel",{extend:"SYNO.ux.Panel",constructor:function(e){this.onUpdateTitleWidth=(0,y.Z)(this.onUpdateTitleWidth,500),this.saveZoomSettingByWebAPI=(0,y.Z)(this.saveZoomSettingByWebAPI,3e3),this.owner=e.owner;var t={title:"",border:!1,cls:"syno-o-main-container"+(SYNO.SDS.Office.Env.is_template&&!SYNO.SDS.Office.Utils.isTemplateReadOnlyMode()?" syno-o-tpl-edit-ct":""),layout:"border",tbar:{xtype:"container",cls:"syno-o-main-tbar",layout:{type:"vbox",pack:"start",align:"stretch"},defaults:{flex:1},items:((0,I.isMobileLayout)()?[this.getMobileHeader()]:[]).concat([this.getMenuicontbar(),this.getIconicontbar()])},items:this.getMainItems(),fbar:{xtype:"container",ctCls:"syno-o-main-fbar-container",height:100,items:[]},footerCfg:{style:{display:"none"}}};Ext.apply(t,e),SYNO.ux.Panel.prototype.constructor.call(this,t),this.onRegEvent(),this.screenColorPicker=new S},getMainItems:function(){return[this.getCenterPanel(),this.getRightPanelContainer(),this.getBottomPanelContainer()]},getPinia:Ext.emptyFn,onRegEvent:function(){var e=this.findAppWindow().getEventMgr();this.mon(e,{scope:this,permchange:this.onPermChange,hidemoreicontbar:this.onHideMoreIcontbar,setnodetitledone:this.onRenameDone,setnodedone:this.onRenameDone,renametemplatedone:this.onRenameDone,setshortcutdone:function(e,t,i){e&&this.setShortcut(!0)},deleteshortcutdone:function(e,t,i){e&&this.setShortcut(!1)},comment_update_data_only:this.onCommentUpdateData,online_user_status_change:this.onUpdateTitleWidth,sync_text_changed:this.onUpdateTitleWidth}),this.mon(this,"afterrender",function(){this.needShowActionBarMobile()&&this.createActionBarMobile(),(0,o.watch)(()=>(0,p.e)().mode,e=>{this.onEditorModeChange(e)},{immediate:!0}),(0,o.watch)(()=>(0,p.e)().readable,e=>{var t=this.editMenu.getComponent("select_all");t&&t.setVisible(e),this.editMenu.getComponent("copy").setVisible(e);var i=this.getMenuicontbar().get("file_button");i&&i.setVisible(e||SYNO.SDS.StatusNotifier.isAppEnabled("SYNO.SDS.Drive.Application")),SYNO.SDS.Drive.MenuUtils.onShowHideMenu(this.editMenu.items)},{immediate:!0})},this,{single:!0}),this.mon(this,"beforedestroy",this._onBeforeDestroy,this,{single:!0});let t=(0,F.E_)(this.getPinia());this.mon(this.topToolbar,"resize",(e,i,n)=>{"number"==typeof n&&t.setTopToolbarHeight(n)}),this.mon(this.topToolbar,"show",e=>{t.setTopToolbarHeight(e.getHeight())}),this.mon(this.topToolbar,"hide",e=>{t.setTopToolbarHeight(0)}),(0,I.isMobileLayout)()||this.mon(e,"init:done",()=>{(0,V.z4)().then(e=>{if(!e)return;let t=SYNO.SDS.Office.Env.getSessionItem("zoom_level"),i=!!t,n=t||e.zoom_level,o=!!n;this.setRememberZoomSetting(o),o&&this.initZoomLevel(n),this.canSaveZoomSetting=!0,i&&this.saveZoomSettingByWebAPI()})},this,{single:!0})},_onBeforeDestroy:function(){this.saveZoomSettingByWebAPI&&this.saveZoomSettingByWebAPI.cancel(),this.onUpdateTitleWidth&&this.onUpdateTitleWidth.cancel()},onCommentUpdateData:function(e){var t=this.right_panel.getCommentPanel().getCommentSource(),i=new Set,n=new Set,o=function(e,t,i){if(e.author&&e.author!==SYNO.SDS.Drive.Define.AnonymousUID&&Ext.isNumber(e.author)&&t.add(e.author),e.text){for(var n,o=/@:[^:]+:user:(\d+)/g;n=o.exec(e.text);)t.add(parseInt(n[1],10));for(o=/@:[^:]+:group:(\d+)/g;n=o.exec(e.text);)i.add(parseInt(n[1],10))}};t.forEach(function(e){o(e,i,n),e.replies.forEach(function(e){o(e,i,n)})},this);var r=[],a=[];i.forEach(function(e){r.push(e)}),n.forEach(function(e){a.push(e)}),(0,B.tp)(r,a,(function(){var e=SYNO.SDS.Office.GetWindow();SYNO.SDS.Drive.Utils.isAppAuthorized()&&0!==r.length?e.getAction().getSettingPromise().then((function(){this.onUpdateCommentDataReady()}).bind(this)):this.onUpdateCommentDataReady()}).bind(this))},onUpdateCommentDataReady:function(e){this._user_info_ready=!0,SYNO.SDS.Office.GetWindow().getEventMgr().fireEvent("comment_update_data_ready",e)},onRenameDone:function(e,t,i){if(e){var n=i.title||i.name;Ext.isString(n)&&this.setTitle(n)}},onPermChange:function(){this.onUpdateShortcut(),this.onUpdateTitleWidth()},onFocusModeChange(){this.updateShowHideToolbars()},onEditorModeChange:function(e){this.updateShowHideToolbars(),(0,I.isMobileLayout)()||(this.setEditorMenuiconbarMode(e,this.modeMenuList||[],this.modeMenuHideList||[]),this.setEditorMenuMode(this.editMenu,e,this.modeEditList,this.modeEditHideList),this.editMenu.getComponent("find_replace").setText(SYNO.SDS.Office._T("handsontable","edit"===e?"find_replace":"find")),SYNO.SDS.Drive.MenuUtils.onShowHideMenu(this.editMenu.items))},updateShowHideToolbars:function(){let e="readonly"===SYNO.SDS.Office.Utils.getEditorMode(),t=this.findAppWindow().getFocusMode();if((0,I.isMobileLayout)()){let t=e?44:44+D.fj;this.getTopToolbar().setHeight(t);return}let i=t!==N.Q.NONE,n=e||t===N.Q.HIDE_ALL;this.getTopToolbar()[n&&i?"hide":"show"](),this.getMenuicontbar()[i?"hide":"show"](),this.getIconicontbar()[n?"hide":"show"](),i&&!n?this.getIconicontbar().addClass("focus-mode"):this.getIconicontbar().removeClass("focus-mode");let o=0;i||(SYNO.SDS.Office.Env.is_template&&!SYNO.SDS.Office.Utils.isTemplateReadOnlyMode()?o+=44:e?o+=48:o+=38),n||(o+=i?D.$p:D.MZ),this.getTopToolbar().setHeight(o)},setEditorItemsMode:function(e,t,i,n,o,r){var a=i[t],s=n[t]||!0;Ext.isDefined(a)&&e.items.items.forEach(function(e){(!0===a||-1!==a.indexOf(e.itemId)?!o:o)?e.enable():e.disable(),(!0===s||-1!==s.indexOf(e.itemId)?!r:r)?e.show():e.hide()})},setEditorMenuiconbarMode:function(e,t,i){if((0,I.isMobileLayout)())return;let n=this.getMenuicontbar();this.setEditorItemsMode(n,e,t,i,!1,!0),n.items.get("title").setDisabled(!SYNO.SDS.Office.Env.capabilities.can_rename||SYNO.SDS.Office.Utils.isPublicShareOrImportView())},setEditorMenuMode:function(e,t,i,n){this.setEditorItemsMode(e,t,i,n),SYNO.SDS.Drive.MenuUtils.onShowHideMenu(e.items)},onHideMoreIcontbar:function(){this.getIconicontbar().rearrangeToolBar()},onFindReplaceShow:function(){(0,I.isMobileLayout)()&&(this.addClass("syno-o-main-footerbar-find-replace"),(0,k.G9)(this,!0))},onFindReplaceHide:function(){(0,I.isMobileLayout)()&&(this.removeClass("syno-o-main-footerbar-find-replace"),(0,k.G9)(this,!1))},setFooterHeight:function(e){this.fbar.setHeight(e)},getIconicontbar:Ext.emptyFn,getOnlineUser:Ext.emptyFn,getCenterPanel:Ext.emptyFn,getRightPanelContainer:Ext.emptyFn,getBottomPanelContainer:function(){return this.bottomPanel??=new R.W({owner:this}),this.selectedCommentPanel=this.bottomPanel.commentPanel,this.bottomPanel},getRightSideBtns:function(){return[]},getMenuLeftItem:function(){return[]},getMenuRightItem:function(){return[]},getTplPublishBtn:function(){return this.tpl_publish||(this.tpl_publish=new SYNO.ux.Button({cls:"syno-o-tpl-publish",text:SYNO.SDS.Office._T("action","publish_template_btn"),tooltip:SYNO.SDS.Office._T("action","publish_template"),handler:function(){this.findAppWindow().getAction().publishTemplate()},scope:this})),this.tpl_publish},getMenuicontbar:function(){if(!this.menuTbar){var e=this.getMenuLeftItem(),t={btnStyle:"none",xtype:"syno_button"};e.push(this.getMenuRightItem()),e.push({xtype:"tbfill"},this.getRightSideBtns(),this.getOnlineUser(),this.getTitleField(),this.getShortcutBtn(t));var i=SYNO.SDS.Office.Env.is_template&&!SYNO.SDS.Office.Utils.isTemplateReadOnlyMode();i&&e.push(this.getTplPublishBtn());var n={itemId:"menu_toolbar",defaults:t,height:i?44:38,hidden:(0,I.isMobileLayout)(),hideMode:"offsets",border:!1,cls:"syno-o-upper-toolbar",items:e};this.menuTbar=new Ext.Toolbar(n)}return this.menuTbar},getMobileHeaderConfig:function(){return{itemId:"mobile_header",height:44*!!(0,I.isMobileLayout)(),cls:"syno-o-mobile-header-container"}},createMobileHeader:function(){return new b(this.getMobileHeaderConfig())},getMobileHeader:function(){return this.mobileHeader||(this.mobileHeader=this.createMobileHeader()),this.mobileHeader},getTitleField:function(){if(!this.titleField){var e=this;this.titleField=new SYNO.ux.DisplayField({itemId:"title",ctCls:"syno-o-title-ct",cls:"syno-o-title",flex:1,maxlength:SYNO.SDS.Drive.Define.TITLE_MAX_LENGTH,enableKeyEvents:!0,disabled:!SYNO.SDS.Drive.Utils.isAppAuthorized(),setValue:function(t){e.onUpdateTitleWidth(),this.getEl().dom.qtip=Ext.util.Format.htmlEncode(t),SYNO.ux.DisplayField.prototype.setValue.apply(this,arguments)},listeners:{scope:this,enable:function(e){if(!SYNO.SDS.Drive.Utils.isAppAuthorized())return e.disable(),!1;e.rendered&&(e.container.removeClass("x-item-disabled"),e.removeClass(SYNO.SDS.Utils.SelectableCLS))},disable:function(e){e.rendered&&(e.container.addClass("x-item-disabled"),e.addClass(SYNO.SDS.Utils.SelectableCLS))},afterrender:{single:!0,scope:this,fn:function(e){e.mon(e.getEl(),"click",function(t){e.disabled||this.findAppWindow().getAction().renameNode()},this),this.mon(e.ownerCt,"resize",this.onUpdateTitleWidth,this)}}}})}return this.titleField},onUpdateTitleWidth:function(){var e,t=this.findAppWindow();t.isWinPanel()&&(e=this.getOnlineUser());var i=this.titleField,n=0;if(!i.rendered)return;var o=i.ownerCt.getWidth();let r=(0,L._)(this.getPinia());e&&this.old_toolbar_width!==o&&(r.setShowAvatarOnToolbar(!0),this.old_toolbar_width=o);var a=SYNO.SDS.Office.Env.isOfficeOwned||SYNO.SDS.Office.Utils.isTemplateReadOnlyMode(),s=i.getWidth(),l=i.ownerCt.layout.rightTr.offsetWidth-s;a?(n=(o-t.getBannerBtns().getWidth())/2-18,0<l&&(n-=l)):(n=o-(i.ownerCt.layout.leftTr.offsetWidth+l)-92,e&&n<=0&&(r.setShowAvatarOnToolbar(!1),n=52)),0<n&&(!this.max_title_width||16<Math.abs(this.max_title_width-n))&&(this.max_title_width=n,i.el.setStyle("max-width",n+"px"))},getShortcutBtn:function(e){return this.shortcut||(this.shortcut=new SYNO.ux.Button(Ext.apply({itemId:"add_shortcut",cls:"syno-o-shortcut",tooltip:SYNO.SDS.Office._T("common","add_shortcut"),hidden:!this.isShortcut(),handler:function(e){var t=this.findAppWindow().getAction(),i=e.getEl();i.hasClass("syno-o-shortcut-add")?(i.removeClass("syno-o-shortcut-add"),e.setTooltip(SYNO.SDS.Office._T("common","add_shortcut")),t.deleteShortcut({permanent_link:[this.getLinkId()]})):(i.addClass("syno-o-shortcut-add"),e.setTooltip(SYNO.SDS.Office._T("common","remove_shortcut")),t.setShortcut({permanent_link:[this.getLinkId()]}))},listeners:{scope:this,render:{scope:this,single:!0,fn:function(e){this.mon(e.getEl(),"mousedown",function(e){e.preventDefault()})}},beforeshow:function(){return this.isShortcut()}},scope:this},e))),this.shortcut},isShortcut:function(){return SYNO.SDS.Drive.Utils.isAppAuthorized()&&!SYNO.SDS.Office.Env.recycle&&!SYNO.SDS.Office.Utils.isPublicShareOrImportView()&&!SYNO.SDS.Office.Env.is_template},onUpdateShortcut:function(){this.getShortcutBtn().setVisible(this.isShortcut())},createSimpleMenuItem:function(e,t,i){var n=e.replace(/_/g,"-");return Ext.apply({itemId:e,iconCls:"syno-o-"+n+"-menu-icon",text:i?.text?i.text:SYNO.SDS.Office._T("handsontable",e),handler:t?t.createDelegate(this):void 0},{...i,listeners:{...i?.listeners,render:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];i?.listeners?.render?.call(this,e,...n),(0,C.YF)(i?.hotkey,e)}}})},getLinkId:function(){return SYNO.SDS.Office.Env.link_id},setTitle:function(e){e=SYNO.SDS.Office.Utils.parseDisplayName(e),this.titleField.getValue()!==e&&this.titleField.rendered&&this.titleField.setValue(e),this.mobileHeader&&this.mobileHeader.setTitle(e)},setShortcut:function(e){var t=this.getShortcutBtn();t.rendered&&(e?(t.el.addClass("syno-o-shortcut-add"),t.setTooltip(SYNO.SDS.Office._T("common","remove_shortcut"))):(t.el.removeClass("syno-o-shortcut-add"),t.setTooltip(SYNO.SDS.Office._T("common","add_shortcut"))),this.onUpdateShortcut())},hideRightPanel:function(e,t){void 0===t&&(t=!0),this.right_panel.hidePanel(e,t)},toggleCommentPanel:function(){this.right_panel.isPanelActive(P._)?this.hideCommentPanel():this.showCommentPanel()},setTopBarDisplayed:function(e){this.tbar.setDisplayed(e),this.doLayout()},showCommentPanel:function(){this.right_panel.showCommentPanel()},hideCommentPanel:function(e,t){void 0===t&&(t=!0),this.right_panel.getCommentPanel().updateClickThreadId(null),this.hideRightPanel(e,t)},showCommentsInBottomPanel:function(e){this.bottomPanel.showCommentsByIds(e)},showStoreSelectedCommentsInBottomPanel:function(){this.bottomPanel.showCommentsByStore()},hideBottomPanel:function(){this.getBottomPanelContainer().collapse()},showChartEditorPanel:function(e){(0,I.isMobileLayout)()||this.right_panel.showChartEditorPanel(e)},needShowActionBarMobile:function(){if(u.Z.isNativeBridgeAvailable())return!1;var e=this.findAppWindow(),t=e.getLayout();return!!(0,I.isMobileLayout)()&&void 0!==t&&t.activeItem!==e.getPermPanel()},createActionBarMobile:function(){var e=this.findAppWindow().getEventMgr();M.whenInfoReady(e).then((function(){new M({owner:this,renderTo:this.owner.el.dom})}).bind(this))},showExtensionInstallationMsg:async function(e){let t=(0,SYNO.SDS.Office._T)("common","colorpicker"===e?"extension_prompt_color_picker":"extension_prompt_copy_paste");return new Promise(e=>{SYNO.SDS.Office.Window.getMsgBox().show({width:442,msg:t,closable:!0,buttons:{ok:SYNO.SDS.Office._T("common","install_extentsion"),cancel:_T("common","close")},fn:t=>{"ok"===t&&window.open("https://chrome.google.com/webstore/detail/synology-office-extension/odamfmfcmgcaghpmeppfiaaafahcnfbc","_blank","noreferrer,noopener"),e()}})})},getMenuZoom:function(){return{itemId:"zoom",text:SYNO.SDS.Office._T("presentation","zoom"),checked:!1,fn_is_shown:!0,menu:this.zoomMenu=new SYNO.SDS.Office.Menu({items:this.getMenuZoomItem(),listeners:{scope:this,beforeshow:function(e){let t=this.getZoomLevel()+"";e.items.items.forEach(function(e){e.setChecked?.(t===e.itemId)}),e.get("remember")?.setChecked(this.getRememberZoomSetting())}}})}},getZoomLevel:Ext.emptyFn,setZoomLevel:Ext.emptyFn,initZoomLevel:function(e){this.setZoomLevel(e)},onZoomLevelChanged:function(){this.getRememberZoomSetting()&&this.saveZoomSetting()},getMenuZoomItem:function(){var e=[];return this.getIconicontbar().zoomStore?.each((function(t){var i=t.get("display"),n=t.get("value");e.push({itemId:n,text:i,checked:"fit"===n,handler:(function(e){this.getIconicontbar().onZoomComboSelect(n),e.setChecked(!e.checked)}).bind(this),value:n})}).bind(this)),!(0,I.isMobileLayout)()&&(0,V.Uv)()&&e.push(new Ext.menu.Separator,{itemId:"remember",text:(0,A.$)("handsontable","remember_zoom_level"),checked:!1,handler:()=>{this.toggleRemember()}}),e},getRememberZoomSetting:function(){return this.zoomLevelRemember||!1},setRememberZoomSetting:function(e){this.zoomLevelRemember=!!e},toggleRemember:function(){this.setRememberZoomSetting(!this.getRememberZoomSetting()),this.saveZoomSetting(!0)},saveZoomSetting:function(e){this.canSaveZoomSetting&&(e?(this.saveZoomSettingByWebAPI(),this.saveZoomSettingByWebAPI.flush()):(this.saveZoomSettingByWebAPI(),this.saveZoomSettingBySessionStorage()))},saveZoomSettingByWebAPI:function(){let e=this.getRememberZoomSetting(),t=this.getZoomLevel()+"";(0,V.aV)({zoom_level:e?t:""}).then(e=>{e&&SYNO.SDS.Office.Env.removeSessionItem("zoom_level")})},saveZoomSettingBySessionStorage:function(){if(this.getRememberZoomSetting()){let e=this.getZoomLevel()+"";e&&SYNO.SDS.Office.Env.setSessionItem("zoom_level",e)}else SYNO.SDS.Office.Env.removeSessionItem("zoom_level")},getSyncingIndicator:function(){return this.syncStatusField||(this.syncStatusField=new SYNO.SDS.Office.SyncField({itemId:"sync_status_field"})),this.syncStatusField},getMenuHelp:function(){return{itemId:"help_button",text:_T("common","help"),menu:this.helpMenu=new SYNO.SDS.Office.Menu({items:this.getMenuHelpItem()}),handler:this.showMenu}},getMenuHelpItemHelp:function(){return{itemId:"help",text:_T("common","help"),handler:SYNO.SDS.Office.Utils.showHelp}},getMenuHelpItemShortcut:function(){return this.createSimpleMenuItem("keyboard_shortcut",function(){this.openHotkeyWindow()},{hotkey:"Ctrl+/"})},openHotkeyWindow:function(){(0,T.hy)((0,E.b$)({pinia:this.getPinia()},F.wC))}})},68295:function(e,t,i){"use strict";i.d(t,{bb:()=>a,kd:()=>s,w5:()=>l});var n=i(68906),o=i(60537),r=i(14395);let a=e=>({extend:e,selectedCommentIds:[],updatePanel(){for(var t=arguments.length,i=Array(t),n=0;n<t;n++)i[n]=arguments[n];e.prototype.updatePanel.apply(this,i),this.getVueComponent().updateSelectedCommentIds(this.getSelectedCommentIds());let o=this.getCommentById(this.getSelectedCommentIds()[0]);o&&!this.isCommentRangeSelected(o)&&this.selectCommentRange(o)},_createVueComponent(e){return(0,r.aX)(o.kd,{initSelectedCommentIds:this.getSelectedCommentIds(),isSupportSuggestion:this.isSupportSuggestion(),...this._createVueComponentListeners()}).mount(e)},_createVueComponentListeners(){let t=e.prototype._createVueComponentListeners.call(this);return t.onTriggerViewAll=this.handleViewAll.bind(this),t},getSelectedCommentIds(){return this.selectedCommentIds.slice()},getCommentById:e=>null,handleViewAll(){SYNO.SDS.Office.GetWindow().getMainPanel().getIconicontbar().get("all_comment")?.handler?.()},handleThreadClick(){},isCommentRangeSelected:e=>!1,selectCommentRange(e){},setSelectedCommentIds(e){this.selectedCommentIds=e,this.updatePanel(),this.vueComponent.resetScroll()}}),s=Ext.define("SYNO.SDS.Office.SelectedCommentPanel",{...a(n.x)}),l=Ext.define("SYNO.SDS.Office.SelectedCommentPanelContainer",{extend:"Ext.Container",constructor(e){Ext.Container.prototype.constructor.call(this,e),this.on("afterrender",()=>{this.initVueComponent(e.innerPanel)})},initVueComponent(e){let t=this.el.dom.appendChild(document.createElement("div"));t.style.height="100%",e.setVueComponent(e._createVueComponent(t))}})},15149:function(e,t,i){"use strict";i.d(t,{Z:()=>s}),i(32867);var n=i(61367),o=i(13420);let r=SYNO.SDS.Drive.PermPanel;var a=i.n(r);let s=Ext.define("SYNO.SDS.Office.PermPanel",{extend:a(),hideAccessBtn:function(){this.accessBtn.hide()},getButtons:function(){var e=a().prototype.getButtons.apply(this,arguments);return(0,n.isMobileLayout)()&&!this.driveMobileAppBtn&&this.loginBtn&&(this.driveMobileAppBtn=new SYNO.ux.Button({cls:"syno-d-perm-panel-btn",btnStyle:"grey",disabled:!0,text:SYNO.SDS.Office._T("mobile","menu_open_in_app"),margins:this.loginBtn.margins,scope:this,handler:function(){window.open((0,o.mn)(),"_blank","noreferrer,noopener")}}),this.loginBtn.on("show",()=>{this.driveMobileAppBtn.show()}),this.loginBtn.on("hide",()=>{this.driveMobileAppBtn.hide()}),e.push(this.driveMobileAppBtn),SYNO.SDS.Drive.Define.Info.ds_id||setTimeout(()=>{SYNO.SDS.Office.GetAction().getDriveInfo().then(e=>{SYNO.SDS.Drive.Define.Info.ds_id=e?.drive?.ds_id}).catch(e=>SYNO.Debug.error(e)).finally(()=>{this.driveMobileAppBtn.enable()})},0)),e},onRequestAccess:function(){var e,t=SYNO.SDS.Drive.Utils.getHashParam()||{},i=this.findAppWindow();return(i.setStatusBusy(),t.import_path)?void i.getAction().requestAccess({path:t.import_path},this.onRequestAccessDone,this):(window.getOfficeObjectID?e=window.getOfficeObjectID():SYNO.SDS.Office.Env&&SYNO.SDS.Office.Env.objectId?e=SYNO.SDS.Office.Env.objectId:EarlyInit&&(e=EarlyInit.getObjectId()),SYNO.SDS.Office.Utils.isTemplateObjectId(e||""))?void i.getWebAPI().requestTemplate({params:{object_id:e},scope:this,callback:this.onRequestAccessDone}):EarlyInit.getLinkId()?void i.getAction().requestAccess({permanent_link:EarlyInit.getLinkId()},this.onRequestAccessDone,this):EarlyInit.getParentFolderPath()?void i.getAction().requestAccess({path:EarlyInit.getParentFolderPath()},this.onRequestAccessDone,this):void a().prototype.onRequestAccess.apply(this,arguments)},onRequestAccessDone:function(e,t){var i=this.findAppWindow();if(i.clearStatusBusy(),!e)return void i.getMsgBox().alert("",SYNO.SDS.Drive.Utils.getErrorStr(t));this.onUpdate("SENT")}})},12744:function(e,t,i){"use strict";i.d(t,{ee:()=>x,E6:()=>ef,KR:()=>_,XX:()=>H});var n,o,r=i(63447),a=i(46001),s=i(49098),l=i(25260);function c(e){return e.nodeType===Node.TEXT_NODE}function d(e){return e.nodeType===Node.ELEMENT_NODE&&e.hasAttribute("data-tag")}let u=new Set([...(0,i(95877).getElementCategoryTags)("ignored"),"caption"]);function h(e){return e.nodeType===Node.ELEMENT_NODE&&(e.hasAttribute("data-ignore")||u.has(e.tagName.toLowerCase()))}function p(e){if(h(e))return["",!0];if(d(e))return[e.getAttribute("data-text")??"",!0];if(e.nodeType===Node.ELEMENT_NODE&&"BR"===e.tagName)return["\n",!0];if(c(e)){let t=function(e){let t=e.parentNode?.previousSibling;if(t&&d(t))return e.data.replace(/\u200B/g,"");let i=e.parentNode?.nextSibling;return i&&d(i)?e.data.replace(/\u200B/g,""):e.data}(e);return[t,""!==t]}return["",!1]}var f=((n={})[n.DO_NOTHING=0]="DO_NOTHING",n[n.CONTINUE=1]="CONTINUE",n[n.BREAK=2]="BREAK",n);function g(e,t){let i=[e];for(;i.length>0;){let e=i.pop();if(void 0===e)break;let n=t(e);if(2===n)break;if(1===n)continue;let o=e.childNodes;for(let e=o.length-1;e>=0;e--)i.push(o[e])}}function m(e,t,i){let n=t,o=i;t===e&&void 0!==i&&(n=e.childNodes[i],o=0);let r="";return g(e,e=>{if(h(e))return 1;let[t,i]=p(e);return n&&e===n?(i&&o&&(r+=t.slice(0,o)),2):i?(r+=t,1):0}),r}let v=1/0;function b(e){let t=window.getSelection();if(null===t)return null;let i=t.anchorNode,n=t.anchorOffset;if(null===i)return null;i===e&&(i=e.childNodes[t.anchorOffset],n=0);let o=t.focusNode,r=t.focusOffset;if(null===o)return null;o===e&&(o=e.childNodes[t.focusOffset],r=0);let a=m(e,o,r).length;return o===i&&r===n?{anchorPos:a,focusPos:a}:{anchorPos:m(e,i,n).length,focusPos:a}}function y(e,t){let i=0;for(let n of e.childNodes){if(n===t)break;i++}return i+1}function w(e,t){e.focus();let i=function(e,t){if(t.anchorPos<=0&&t.focusPos<=0)return{anchorNode:e,anchorOffset:0,focusNode:e,focusOffset:0};if(t.anchorPos>=v&&t.focusPos>=v)return{anchorNode:e,anchorOffset:e.childNodes.length,focusNode:e,focusOffset:e.childNodes.length};let i=0,n=null,o=0,r=null,a=0,s=Math.min(t.anchorPos,t.focusPos),l=Math.max(t.anchorPos,t.focusPos);function u(t,n){let o=0,r=t;if(c(t))o=n-i,r=t;else if(d(t)){let a=t.previousSibling,s=t.nextSibling;n-i==0&&a?(r=a,o=1):s?(r=s,o=1):(r=e,o=y(e,t))}else o=y(e,t),r=e;return[r,o]}return(g(e,e=>{if(h(e))return f.CONTINUE;let[t,c]=p(e);return c?i+t.length<s||(null===n&&([n,o]=u(e,s)),i+t.length<l)?(i+=t.length,f.CONTINUE):([r,a]=u(e,l),f.BREAK):f.DO_NOTHING}),null===n||o<0)?null:l===v?{anchorNode:n,anchorOffset:o,focusNode:e,focusOffset:e.childNodes.length}:null===r||a<0?null:t.anchorPos<t.focusPos?{anchorNode:n,anchorOffset:o,focusNode:r,focusOffset:a}:{anchorNode:r,anchorOffset:a,focusNode:n,focusOffset:o}}(e,t);if(null===i)return;let{anchorNode:n,anchorOffset:o,focusNode:r,focusOffset:a}=i,s=window.getSelection();null!==s&&s.setBaseAndExtent(n,o,r,a)}var _=((o={})[o.TEXT=0]="TEXT",o[o.TAG=1]="TAG",o[o.EDITABLE_TAG=2]="EDITABLE_TAG",o[o.PLACEHOLDER=3]="PLACEHOLDER",o[o.NEW_LINE=4]="NEW_LINE",o);function x(e){return{value:e,type:0}}function S(e){return 1===e.type}function C(e,t){let i=[];return e.split("\n").forEach((e,t)=>{t>0&&i.push({value:"\n",type:4}),""!==e&&i.push({value:e,type:0})}),0===i.length||4!==i[i.length-1].type||t||i.pop(),i}function k(e,t,i){if(0===e.length)return[i,i.length-1];if(t.anchorPos===v||t.focusPos===v)return[e.concat(i),e.length-1];let n=Math.min(t.anchorPos,t.focusPos),o=Math.max(t.anchorPos,t.focusPos),r=[],a=0,s=-1;return e.forEach((e,t)=>{let l=e.value.length,c=a,d=a+l;if(d<=n)r.push(e);else if(c>=o)-1===s&&(r.push(...i),s=r.length-i.length),r.push(e);else{if(c<n){let t=e.value.slice(0,n-c);""!==t&&r.push({value:t,type:e.type})}if(-1===s&&(r.push(...i),s=r.length-i.length),d>o){let t=e.value.slice(o-c);""!==t&&r.push({value:t,type:e.type})}}a+=l}),-1===s&&(r.push(...i),s=r.length-i.length),[r,s+i.length-1]}function I(e){if(null===e)return[];let t=[],i="";for(let n of e.childNodes){if(h(n))continue;let e=d(n),o=n.nodeType===Node.ELEMENT_NODE&&n.hasAttribute("data-editable-tag"),r=m(n);if(e||o){""!==i&&(t.push(...C(i,!0)),i=""),e?t.push(function(e,t){let i=e.getAttribute("data-icon")??void 0,n=e.getAttribute("data-id")??void 0;return{value:t,type:1,id:n,iconKey:i,cls:e.getAttribute("data-cls")??void 0,href:e.getAttribute("data-href")??void 0}}(n,r)):o&&t.push({value:r,type:2});continue}i+=r}return""!==i&&t.push(...C(i,!1)),t}function A(e){return e.filter(e=>3!==e.type)}var T=i(23886);let E=(0,r.defineComponent)({__name:"TagNode",props:{text:{},href:{},id:{},iconKey:{},getIcon:{type:Function},cls:{}},setup(e){let t=(0,r.computed)(()=>{if(e.iconKey&&e.getIcon(e.iconKey))return e.getIcon(e.iconKey)});return(e,i)=>((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)(e.href?"a":"span"),{contenteditable:"false","data-tag":"","data-text":e.text,"data-icon":e.iconKey??"","data-href":e.href??"","data-id":e.id??"","data-cls":e.cls??"",class:(0,r.normalizeClass)([e.$style.tag,e.cls,e.href?e.$style["tag-href"]:e.$style["tag-text"]]),href:e.href,target:e.href?"_blank":void 0,rel:e.href?"noreferrer noopener":void 0},{default:(0,r.withCtx)(()=>[t.value?((0,r.openBlock)(),(0,r.createBlock)((0,r.unref)(T.Z),{key:0,"svg-icon":t.value,"svg-icon-set":"set01",size:[16,16]},null,8,["svg-icon"])):(0,r.createCommentVNode)("",!0),(0,r.createTextVNode)(" "+(0,r.toDisplayString)(e.text),1)]),_:1},8,["data-text","data-icon","data-href","data-id","data-cls","class","href","target","rel"]))}});var R=i(56503),D=i.n(R),O=i(4337);let M={};M.$style=D();let N=(0,O.default)(E,[["__cssModules",M]]),P=(0,r.defineComponent)({__name:"EditableTag",props:{text:{},cls:{}},setup:e=>(e,t)=>((0,r.openBlock)(),(0,r.createElementBlock)("span",{"data-editable-tag":"",class:(0,r.normalizeClass)([e.$style.tag,e.cls])},(0,r.toDisplayString)(e.text),3))});var L=i(38615),B=i.n(L);let F={};F.$style=B();let V=(0,O.default)(P,[["__cssModules",F]]);var z=i(61367);function H(e,t){return function e(t,i){let n=[];for(let o of t)if("item"===o.type){let e=o.title.toLocaleLowerCase().indexOf(i);e>=0&&n.push({...o,matchTitleIndex:[e,e+i.length]})}else if("divider"===o.type){let e=n.at(-1);e&&"divider"!==e.type&&n.push(o)}else if("group"===o.type){let t=e(o.items,i);t.length>0&&n.push({...o,items:t})}else if("submenu"===o.type){let t=e(o.items,i);if(t.length>0){let e=o.title.toLocaleLowerCase().indexOf(i);n.push({...o,items:t,matchTitleIndex:e>=0?[e,e+i.length]:void 0})}}return n.at(-1)?.type==="divider"&&n.pop(),n}(e,t.toLocaleLowerCase())}var W=i(98272),Y=i(23599),U=i(24766),G=i(16067),Z=i(22053),j=i(32334);let q=(0,r.defineComponent)({__name:"CandidateListItemText",props:{item:{}},setup(e){let t=(0,r.computed)(()=>{let{title:t="",matchTitleIndex:i}=e.item;return i?[t.slice(0,i[0]),t.slice(i[0],i[1]),t.slice(i[1])]:[t]});return(e,i)=>{let n=(0,r.resolveDirective)("tooltip");return(0,r.openBlock)(),(0,r.createElementBlock)("div",{class:(0,r.normalizeClass)(e.$style.wrapper)},[(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("div",{class:(0,r.normalizeClass)(e.$style.title)},[1===t.value.length?((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:0},[(0,r.createTextVNode)((0,r.toDisplayString)(t.value[0]),1)],64)):((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:1},[(0,r.createTextVNode)((0,r.toDisplayString)(t.value[0]),1),(0,r.createElementVNode)("span",{class:(0,r.normalizeClass)(e.$style["title-match"])},(0,r.toDisplayString)(t.value[1]),3),(0,r.createTextVNode)((0,r.toDisplayString)(t.value[2]),1)],64))],2)),[[n,{content:e.item.title,overflowOnly:!0}]]),e.item.desc?(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:0,class:(0,r.normalizeClass)(e.$style.desc)},[(0,r.createTextVNode)((0,r.toDisplayString)(e.item.desc),1)],2)),[[n,{content:e.item.desc,overflowOnly:!0}]]):(0,r.createCommentVNode)("",!0)],2)}}});var K=i(71048),X=i.n(K);let Q={};Q.$style=X();let $=(0,O.default)(q,[["__cssModules",Q]]),J=(0,r.defineComponent)({__name:"CandidateListItems",props:{items:{},getIcon:{type:Function},menuWidth:{}},emits:["item-click"],setup(e,t){let{emit:i}=t,n={...Z.Oh,props:{...Z.Oh.props,item:{type:Object,required:!0}}};function o(e){i("item-click",e)}return(e,t)=>{let i=(0,r.resolveComponent)("CandidateListItems",!0);return(0,r.openBlock)(),(0,r.createElementBlock)("div",{class:(0,r.normalizeClass)(e.$style["items-wrapper"])},[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.items,(t,a)=>((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:a},["submenu"===t.type?((0,r.openBlock)(),(0,r.createBlock)((0,r.unref)(Z.X0),{key:0,"syno-id":t.title,width:e.menuWidth,height:t.items.length>=10?385:void 0,"use-scrollbar":"",icon:t.iconKey?{svgIcon:e.getIcon(t.iconKey),svgIconSet:"set01",size:[24,24]}:void 0,tooltip:{disabled:!0}},{title:(0,r.withCtx)(()=>[(0,r.createVNode)($,{item:t},null,8,["item"])]),default:(0,r.withCtx)(()=>[(0,r.createVNode)(i,{items:t.items,"get-icon":e.getIcon,onItemClick:o},null,8,["items","get-icon"])]),_:2},1032,["syno-id","width","height","icon"])):"group"===t.type?((0,r.openBlock)(),(0,r.createBlock)((0,r.unref)(U.Z),{key:1,"syno-id":t.title,title:t.title},{default:(0,r.withCtx)(()=>[(0,r.createVNode)(i,{items:t.items,"get-icon":e.getIcon,onItemClick:o},null,8,["items","get-icon"])]),_:2},1032,["syno-id","title"])):"divider"===t.type?((0,r.openBlock)(),(0,r.createBlock)((0,r.unref)(G.Z),{key:2,"syno-id":`divider-${a}`},null,8,["syno-id"])):((0,r.openBlock)(),(0,r.createBlock)(n,{key:3,item:t,"syno-id":t.title,icon:t.iconKey?{svgIcon:e.getIcon(t.iconKey),svgIconSet:"set01",size:[24,24]}:void 0,tooltip:{disabled:!0},onClick:e=>o(t)},{title:(0,r.withCtx)(()=>[(0,r.createVNode)($,{item:t},null,8,["item"])]),_:2},1032,["item","syno-id","icon","onClick"]))],64))),128))],2)}}});var ee=i(74046),et=i.n(ee);let ei={};ei.$style=et();let en=(0,O.default)(J,[["__cssModules",ei]]),eo=(0,r.defineComponent)({__name:"CandidateList",props:{loading:{type:Boolean},items:{},getIcon:{type:Function},width:{},showMenuBottomActions:{type:Boolean},menuBottomActionsText:{}},emits:["item-select","click-menu-bottom-action"],setup(e,t){let{expose:i,emit:n}=t,o=(0,r.useTemplateRef)("menu"),a=(0,r.useTemplateRef)("bottom-item"),s=(0,r.computed)(()=>(function e(t){let i=0;for(let n of t)"item"===n.type||"divider"===n.type||"submenu"===n.type?++i:"group"===n.type&&(i+=e(n.items));return i})(e.items)),l=(0,r.computed)(()=>!e.loading&&s.value>=10?385:void 0),c=(0,r.computed)(()=>0===s.value);function d(e){n("item-select",e)}return(0,r.watch)(o,e=>{e?.tryActiveFirstItem()},{flush:"post"}),i({activatePrevItem:function(){return!e.loading&&!!o.value&&(((0,Y.FL)(o.value)??o.value).activePrevItem(),!0)},activateNextItem:function(){return!e.loading&&!!o.value&&(((0,Y.FL)(o.value)??o.value).activeNextItem(),!0)},openChildMenu:function(){if(e.loading||!o.value)return!1;let t=(0,Y.OV)(o.value);return!!t&&!!t.hasChildMenu&&(t.openChildMenu(),!0)},closeChildMenu:function(){if(e.loading||!o.value)return!1;let t=(0,Y.FL)(o.value);return!!t&&(t.closeMenu(),!0)},select:function(){if(e.loading||!o.value)return!1;let t=(0,Y.OV)(o.value);if(!t)return!1;if(t===a.value)n("click-menu-bottom-action");else{let e=(0,W.iY)(t);if("MenuSubmenu"===e)t.openChildMenu();else if("MenuItem"===e){let e=t.item;e&&n("item-select",e)}}return!0}}),(e,t)=>((0,r.openBlock)(),(0,r.createBlock)((0,r.unref)(Z.QL),{ref:"menu",key:`${e.items.length}:${e.loading}`,class:(0,r.normalizeClass)(e.$style.list),width:e.width,"syno-id":"list","auto-focus":!1,height:l.value,"use-scrollbar":"",onWheel:t[1]||(t[1]=(0,r.withModifiers)(()=>{},["stop"]))},(0,r.createSlots)({default:(0,r.withCtx)(()=>[e.loading?((0,r.openBlock)(),(0,r.createBlock)((0,r.unref)(Z.Oh),{key:0,"syno-id":"ai-candidate-menu-item-loading",disabled:""},{default:(0,r.withCtx)(()=>[(0,r.createTextVNode)((0,r.toDisplayString)((0,r.unref)(j.$)("common","loading")),1)]),_:1})):c.value?((0,r.openBlock)(),(0,r.createBlock)((0,r.unref)(Z.Oh),{key:1,"syno-id":"no-item",title:(0,r.unref)(j.$)("ai_common","no_search_results"),disabled:""},null,8,["title"])):((0,r.openBlock)(),(0,r.createBlock)(en,{key:2,items:e.items,"get-icon":e.getIcon,onItemClick:d},null,8,["items","get-icon"]))]),_:2},[e.showMenuBottomActions&&!e.loading?{name:"bottom-actions",fn:(0,r.withCtx)(()=>[(0,r.createVNode)((0,r.unref)(U.Z),null,{default:(0,r.withCtx)(()=>[(0,r.createVNode)((0,r.unref)(G.Z),{"syno-id":"candidate-list-divider"}),(0,r.createVNode)((0,r.unref)(Z.Oh),{ref:"bottom-item","syno-id":"bottom-button",class:(0,r.normalizeClass)(e.$style["menu-item-bottom-action"]),onClick:t[0]||(t[0]=t=>e.$emit("click-menu-bottom-action"))},{default:(0,r.withCtx)(()=>[(0,r.createTextVNode)((0,r.toDisplayString)(e.menuBottomActionsText),1)]),_:1},8,["class"])]),_:1})]),key:"0"}:void 0]),1032,["class","width","height"]))}});var er=i(87403),ea=i.n(er);let es={};es.$style=ea();let el=(0,O.default)(eo,[["__cssModules",es]]);var ec=i(67870);let ed=(0,r.defineComponent)({__name:"RichEditor",props:{disabled:{type:Boolean},loading:{type:Boolean},editable:{type:Boolean,default:!0},height:{},maxHeight:{},tokens:{},placeholder:{},queryPlaceholder:{},onQueryChange:{},onQueryEnd:{},disableQuery:{type:Boolean},iconMap:{},showCandidateMenuBottomActions:{type:Boolean},candidateMenuBottomActionsText:{},candidateMenuAnchor:{},candidateMenuOffset:{},candidateMenuWidth:{},sendButton:{type:Boolean},sendButtonDisabled:{type:Boolean}},emits:["update:tokens","click-candidate-menu-bottom-action","confirm","cancel","stop"],setup(e,t){var i,n,o;let c,{expose:d,emit:u}=t,h=(0,ec.v0)();(0,r.onMounted)(()=>{ed(!0,e.tokens)});let p=(0,r.ref)(null),f=(0,r.useTemplateRef)("editorContainer"),g=(0,r.useTemplateRef)("candidateMenuPortal"),m=(0,r.useTemplateRef)("candidateMenu"),y=(0,r.useTemplateRef)("scrollbar"),x=(0,r.shallowRef)(e.tokens??[]),C=(0,r.ref)({anchorPos:0,focusPos:0}),T=(0,r.ref)(!1),E=(0,r.shallowRef)([]),R=(0,r.ref)(!1),D=!1,O=[],M=-1,P=[],L=!1,B=(0,r.useCssModule)(),F=(0,r.computed)(()=>(function(e,t){let i=function(e,t){let i=0,n=-1;for(let o=0;o<e.length&&!(i>=t);o++)i+=e[o].value.length,n=o;return n}(e,t);if(-1===i)return{tokenIdx:0,tokenOffset:0,tokenText:""};let n=t-e.slice(0,i).reduce((e,t)=>e+t.value.length,0);return{tokenIdx:i,tokenOffset:n,tokenText:e[i].value}})(x.value,C.value.focusPos)),H=(0,r.computed)(()=>x.value.map(e=>e.value).join("")+e.editable+e.disabled),W=(0,r.computed)(()=>({height:e.height?`${e.height}px`:void 0,maxHeight:e.maxHeight?`${e.maxHeight}px`:void 0}));async function Y(t){e.onQueryChange&&(E.value=await e.onQueryChange(t),R.value=!0)}let{isQuerying:U,isQueryProcessing:G,tryStartQuery:Z,stopQuery:j,tryQueryString:q,getSegmentSelectRange:K}=function(e,t,i,n,o,a){let s=(0,r.ref)(null),l=(0,r.ref)(!1),c=(0,r.computed)(()=>null!=s.value),d=null;function u(){o(),s.value=null,d=null}function h(){var n;if(i())return!1;if(!s.value||!t.value)return u(),!1;n=e.value.focusPos,s.value&&(s.value.endIdx=n);let{tokenText:o,tokenOffset:r}=t.value,c=s.value.endIdx-s.value.beginIdx;if(c<0)return u(),!1;let h=o.slice(r-c,r);if(1===h.length){let e=h.trim();if(0===e.length||"@"===e[0])return u(),!1}return h===d||(d=h,setTimeout(async()=>{l.value=!0,await a(h),l.value=!1},200),!0)}return{isQuerying:c,isQueryProcessing:l,tryStartQuery:function(){var o,r;if(i())return!1;if(!t.value||(o=t.value.tokenText,r=t.value.tokenOffset,0===o.length||r<0||r>o.length||"@"!==o.charAt(r-1)||"@"!==o.slice(Math.max(0,r-2),r).trim()))return u(),!1;n();let{focusPos:a}=e.value;return s.value={beginIdx:a,endIdx:a},h(),!0},stopQuery:u,tryQueryString:h,getSegmentSelectRange:function(){return s.value?{anchorPos:s.value.beginIdx-1,focusPos:s.value.endIdx}:null}}}(C,F,()=>e.disableQuery??!1,function(){e.queryPlaceholder&&F.value&&function(){if(!p.value||!F.value)return!1;let{tokenIdx:e,tokenOffset:t,tokenText:i}=F.value,n=t===i.length,o=e===x.value.length-1,r=!o&&x.value[e+1].type===_.NEW_LINE;return n&&(o||r)}()&&e_("insert",F.value.tokenIdx+1,[{type:_.PLACEHOLDER,value:e.queryPlaceholder}],!1)},function(){E.value=[],R.value=!1,e.onQueryEnd?.()},Y),{showMenu:X,openMenu:Q,closeMenu:$}=function(e){let t=(0,r.ref)("close");return{showMenu:(0,r.computed)(()=>"open"===t.value),openMenu:function(){e.value&&(t.value="open")},closeMenu:function(){e.value&&(t.value="close")}}}(p),{onFocused:J,onBlurred:ee}=(c=!1,{onFocused:function(){!c&&(document.addEventListener("selectionchange",er),p.value&&(w(p.value,{anchorPos:v,focusPos:v}),c=!0))},onBlurred:function(){c&&document.activeElement!==p.value&&(document.removeEventListener("selectionchange",er),c=!1)}}),{handleArrowLeft:et,handleArrowRight:ei}=(i=eh,{handleArrowLeft:function(e,t){if(!F.value)return;let{tokenIdx:n,tokenOffset:o}=F.value;(0!==n||0!==o)&&o===x.value[n].value.length&&S(x.value[n])&&(e.preventDefault(),i(n,t,"left"))},handleArrowRight:function(e,t){if(!F.value)return;let{tokenIdx:n,tokenOffset:o}=F.value,r=o===x.value[n].value.length||0===n&&0===o;if(!r||n===x.value.length-1&&r)return;let a=n+1;0===n&&0===o&&(a=n),e.preventDefault(),S(x.value[a])?i(a,t,"right"):i(a,t,"left",1)}}),{handleDelete:en,handleBackspace:eo}=(n=eh,o=e_,{handleDelete:function(e){if(!F.value)return;let{tokenIdx:t,tokenOffset:i}=F.value;if((0!==i||0!==t)&&i!==x.value[t].value.length)return;let n=0===i?0:t+1;if(x.value[n]&&S(x.value[n])){e.preventDefault(),o("delete",n);return}},handleBackspace:function(e){if(!F.value||function(e){if(!(0,z.isFirefox)())return!1;let t=F.value?.tokenIdx??-1,i=F.value?.tokenOffset??-1;if(-1===t||-1===i)return!1;let n=x.value[t],r=x.value[t+1];return n?.type===_.TEXT&&n?.value.length===1&&1===i&&r?.type===_.TAG&&(e.preventDefault(),o("delete",t),!0)}(e))return;let{tokenIdx:t,tokenOffset:i}=F.value,r=x.value[t];if((0!==t||0!==i)&&i===r.value.length&&x.value[t]&&S(x.value[t])){e.preventDefault(),n(t,!0,"left"),o("delete",t);return}}});function er(){if(!p.value)return;let e=b(p.value);null!==e&&(C.value=e)}async function ea(){var e;if(L||!p.value||(e=p.value,document.activeElement!==e))return;let t=y.value?.getScrollEl()?.scrollTop,i=b(p.value);if(null===i||(await (0,r.nextTick)(),!p.value))return;w(p.value,i);let n=20*!!D;y.value?.setScroll(0,t+n),setTimeout(()=>{D&&(D=!1)},0)}function es(e){O.push(e)}async function ed(e,t){if(T.value||!p.value)return;let i=C.value;if(await new Promise(e=>void 0!==t?e(void 0):setTimeout(e,0)),er(),x.value=[...t??I(p.value)],await (0,r.nextTick)(),await (0,r.nextTick)(),O.forEach(e=>e()),O.splice(0,O.length),await new Promise(e=>setTimeout(e,0)),e){var n,o,a;let e=C.value;n=A(x.value),o=i,a=e,P.splice(M+1),P.length>255&&P.splice(0,10),P.push({tokens:n,undoRange:{anchorPos:-1,focusPos:-1},redoRange:a}),0!=(M=P.length-1)&&(P[M-1].undoRange=o)}}async function eu(){U.value&&e.queryPlaceholder&&0!==x.value.length&&ed(!1,A(x.value))}function eh(e,t,i,n){if(void 0===n&&(n=0),null===p.value)return;let o=x.value.slice(0,e+ +("left"!==i)).reduce((e,t)=>e+t.value.length,0)+n,r=t?o:C.value.anchorPos;w(p.value,{anchorPos:r,focusPos:o})}async function ep(e){if("undo"===e&&M<=0||"redo"===e&&M>=P.length-1)return;L=!0,ed(!1,P[M+="undo"===e?-1:1].tokens);let t="undo"===e?P[M].undoRange:P[M].redoRange;await (0,r.nextTick)(),await (0,r.nextTick)(),p.value&&(L=!1,-1!==t.anchorPos&&-1!==t.focusPos&&w(p.value,t))}async function ef(e){e.preventDefault(),await ep("undo")}async function eg(e){e.preventDefault(),await ep("redo")}function em(e){es(()=>{let t=e.data;if(!(t&&q())){if(U.value)return void Q();t&&Z()&&Q()}}),ed(!0)}function ev(){j(),$()}function eb(){window.requestAnimationFrame(ev)}function ey(){T.value=!0}function ew(e){T.value=!1,em(e)}function e_(e,t,i,n){if(void 0===n&&(n=!0),"delete"===e&&void 0!==t){ed(n,x.value.toSpliced(t,1)),es(()=>{eh(t,!0,"left")});return}return"insert"===e&&void 0!==i&&void 0!==t?void ed(n,x.value.toSpliced(t,0,...i)):"replace"===e&&void 0!==i&&void 0!==t?void ed(n,x.value.toSpliced(t,1,...i)):void("pop_back"===e&&ed(n,x.value.slice(0,-1)))}function ex(e){T.value||em(e)}function eS(e){X.value&&(m.value?.activatePrevItem(),e.stopPropagation(),e.preventDefault())}function eC(e){X.value&&(m.value?.activateNextItem(),e.stopPropagation(),e.preventDefault())}function ek(e,t){if(X.value&&m.value?.closeChildMenu()){e.stopPropagation(),e.preventDefault();return}ev(),et(e,t)}function eI(e,t){if(X.value&&m.value?.openChildMenu()){e.stopPropagation(),e.preventDefault();return}ev(),ei(e,t)}function eA(e){ev()}function eT(e){ev()}function eE(e){if(X.value&&m.value?.select()){e.stopPropagation(),e.preventDefault();return}}function eR(e){let t,i;if(X.value&&m.value?.select()){e.stopPropagation(),e.preventDefault();return}if(!e.shiftKey){e.preventDefault(),eF();return}D=!0,0===x.value.length?(t=[{type:_.NEW_LINE,value:"\n"}],i=0):[t,i]=k(x.value,C.value,[{type:_.NEW_LINE,value:"\n"}]),es(()=>{eh(i,!0,"right")}),ed(!0,t),e.preventDefault(),e.stopPropagation()}function eD(e){if(X.value&&m.value?.closeChildMenu()){e.stopPropagation(),e.preventDefault();return}ev()}function eO(e){C.value.anchorPos===C.value.focusPos&&en(e)}function eM(e){if(C.value.anchorPos===C.value.focusPos&&eo(e),!U.value)return;let t=K();if(!t)return;let{anchorPos:i,focusPos:n}=t;if(n-i==1){e.preventDefault(),e.stopPropagation(),ev();return}es(()=>{q()})}function eN(t){if(t.preventDefault(),e.disabled||!e.editable)return;function i(e){let[t,i]=k(x.value,C.value,e);es(()=>{eh(i,!0,"right")}),ed(!0,t)}let n=t.clipboardData?.getData("text/html")||"";if(!n){let e=t.clipboardData?.getData("text/plain");if(!e)return;i([{type:_.TEXT,value:e}]);return}n=function(e,t,i){void 0===i&&(i=!1);let n=e.lastIndexOf(t);return n>=0?e.slice(0,n+(i?0:t.length)):e}(n=function(e,t,i){void 0===i&&(i=!1);let n=e.indexOf(t);return n>=0?e.slice(n+(i?t.length:0)):e}(n,"\x3c!--StartFragment--\x3e",!0),"\x3c!--EndFragment--\x3e",!0);let o=document.createElement("div");o.innerHTML=n,i(I(o))}(0,r.watch)(U,e=>{e||(ed(!1,A(x.value)),ev())}),(0,r.watch)(E,async()=>{await (0,r.nextTick)(),await (0,r.nextTick)(),g.value?.doAlign()});let eP=(()=>{let e=new Map([["arrow-up",eS],["arrow-down",eC],["arrow-left",ek],["arrow-right",eI],["home",eA],["end",eT],["tab",eE],["enter",eR],["Shift-enter",eR],["escape",eD],["delete",eO],["backspace",eM],["Ctrl-z",ef],["Shift-Ctrl-z",eg],["Ctrl-y",eg],["Ctrl-enter",eF],["Meta-z",ef],["Shift-Meta-z",eg],["Meta-y",eg],["Meta-enter",eF]]);return(0,z.isWindows)()&&e.set("Alt-backspace",ef),e})();function eL(e){let t;if(e.isComposing||"process"===e.key||229===e.keyCode)return;let i=(t="",e.shiftKey&&(t+="Shift-"),e.ctrlKey&&(t+="Ctrl-"),e.altKey&&(t+="Alt-"),e.metaKey&&(t+="Meta-"),t+e.key.split("").map((e,t)=>e===e.toUpperCase()&&0!==t?"-"+e.toLowerCase():e.toLowerCase()).join("")),n=eP.get(i);if(!n)return void eu();n(e,!i.includes("Shift"))}function eB(e){eH([{type:_.TAG,value:e.value??e.title,id:e.id,iconKey:e.iconKey,...e.data}])}async function eF(){if(X.value)return void m.value?.select();e.loading||u("confirm")}function eV(){ev(),u("click-candidate-menu-bottom-action")}function ez(t){if(t)return e.iconMap?.[t]}function eH(e){let t,i;if(!F.value)return;let n=K();n?[t,i]=k(x.value,n,e):[t,i]=k(x.value,C.value,e),es(async()=>{ev(),await new Promise(e=>setTimeout(e,0)),eh(i,!0,"right")}),ed(!0,t)}d({updateTokens:function(e){es(()=>{p.value&&w(p.value,{anchorPos:v,focusPos:v})}),ed(!0,e)},insertTagTokens:eH,updateHeight:function(){let e=p.value;e&&(e.style.height="auto",e.scrollHeight>0&&(e.style.height=`${e.scrollHeight}px`))},openCandidateMenu:function(t){e.onQueryChange&&(Q(),Y(t))},focus:function(){J()}});let eW=()=>(ea(),u("update:tokens",A(x.value)),(0,r.h)("div",{ref:p,key:H.value,class:[B.editor,e.disabled?B["editor-disabled"]:"","allowDefCtxMenu"],contenteditable:e.editable&&!e.disabled,placeholder:e.placeholder??"",onInput:ex,onKeydown:eL,onCompositionstart:ey,onCompositionend:ew,onPaste:eN,onFocus:J,onBlur:ee},function(){let e=x.value,t=[];return e.forEach((i,n)=>{if(i.type===_.TAG)return void t.push((0,r.h)("span",{class:B["empty-buffer"],innerHTML:"​"}),(0,r.h)(N,{text:i.value,id:i.id,iconKey:i.iconKey,cls:i.cls,href:i.href,getIcon:ez}),(0,r.h)("span",{class:B["empty-buffer"],innerHTML:"​"}));if(i.type===_.EDITABLE_TAG){0===n&&t.push((0,r.h)("span",{class:B["empty-buffer"],innerHTML:"​"})),t.push((0,r.h)(V,{text:i.value})),n===e.length-1&&t.push((0,r.h)("span",{class:B["empty-buffer"],innerHTML:"​"}));return}if(i.type===_.NEW_LINE){t.push((0,r.h)("br")),n===e.length-1&&t.push((0,r.h)("br"));return}if(i.type===_.PLACEHOLDER)return void t.push((0,r.h)("span",{class:T.value?B["query-placeholder-hidden"]:B["query-placeholder"],contenteditable:"false","data-ignore":"true",key:String(T.value)},i.value));t.push(i.value)}),t}()));return(t,i)=>{let n=(0,r.resolveDirective)("clickoutside");return(0,r.openBlock)(),(0,r.createElementBlock)("div",{ref:"editorContainer",class:(0,r.normalizeClass)(t.$style["editor-container"])},[(0,r.renderSlot)(t.$slots,"editor-header"),(0,r.createVNode)((0,r.unref)(a.Z),{ref:"scrollbar","syno-id":"scrollbar","view-style":W.value,class:(0,r.normalizeClass)(t.$style.scrollbar),"inner-class":t.$style["scrollbar-inner"],"show-x-rail":!1},{default:(0,r.withCtx)(()=>[(0,r.createVNode)(eW)]),_:1},8,["view-style","class","inner-class"]),(0,r.withDirectives)((0,r.createElementVNode)("div",{class:(0,r.normalizeClass)([t.$style.footer,t.disabled?t.$style["footer-disabled"]:""])},[(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)(t.$style["footer-left"])},[(0,r.renderSlot)(t.$slots,"footer-left")],2),(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)(t.$style["footer-right"])},[t.sendButton&&!e.loading?((0,r.openBlock)(),(0,r.createBlock)(l.Z,{key:0,type:"submit",disabled:e.sendButtonDisabled||e.disabled,onClick:i[0]||(i[0]=e=>u("confirm"))},null,8,["disabled"])):t.sendButton?((0,r.openBlock)(),(0,r.createBlock)(l.Z,{key:1,type:"stop",disabled:e.disabled,onClick:i[1]||(i[1]=e=>u("stop"))},null,8,["disabled"])):(0,r.createCommentVNode)("",!0)],2)],2),[[r.vShow,t.editable]]),(0,r.unref)(X)?((0,r.openBlock)(),(0,r.createBlock)((0,r.unref)(s.Z),{key:0,ref:"candidateMenuPortal","mount-to":(0,r.unref)(h),anchor:(0,r.unref)(f)??void 0,alignment:{pos:e.candidateMenuAnchor,offset:e.candidateMenuOffset}},{default:(0,r.withCtx)(()=>[(0,r.withDirectives)((0,r.createVNode)((0,r.unref)(el),{ref:"candidateMenu",loading:!R.value||(0,r.unref)(G),items:E.value,"show-menu-bottom-actions":t.showCandidateMenuBottomActions,"menu-bottom-actions-text":t.candidateMenuBottomActionsText,width:t.candidateMenuWidth,"get-icon":ez,onItemSelect:eB,onClickMenuBottomAction:eV},null,8,["loading","items","show-menu-bottom-actions","menu-bottom-actions-text","width"]),[[n,eb,void 0,{children:!0}]])]),_:1},8,["mount-to","anchor","alignment"])):(0,r.createCommentVNode)("",!0)],2)}}});var eu=i(90198),eh=i.n(eu);let ep={};ep.$style=eh();let ef=(0,O.default)(ed,[["__cssModules",ep]])},9359:function(e,t,i){"use strict";i.d(t,{$:()=>s,_:()=>a});var n=i(63447),o=i(60537),r=i(46989);let a="comment";function s(e,t,i){let s=new e({editor:i}),l=(0,n.shallowRef)(null),c=(0,r.H)(t),d=(0,n.computed)(()=>c.activePanelKey===a);c.initResizeInfo(a,{width:312,minWidth:0,maxWidth:0,resizable:!1}),s.on("close",()=>{SYNO.SDS.Office.GetWindow().getMainPanel().getRightPanelContainer().hidePanel(!0)}),(0,n.watch)(()=>l.value,e=>{e&&s.setVueComponent(e)},{immediate:!0}),(0,n.watch)(()=>c.activePanelKey,e=>{e===a&&s.updatePanel()},{immediate:!0});let u=(0,n.defineComponent)({setup:()=>()=>(0,n.h)(o.O1,{style:{display:d.value?"block":"none"},ref:l,isSupportSuggestion:s.isSupportSuggestion(),...s._createVueComponentListeners()})});return{commentPanelInstance:s,commentPanelComp:u}}},46989:function(e,t,i){"use strict";i.d(t,{H:()=>c});var n=i(34877),o=i(63447),r=i(82164),a=i(36828),s=i(4077),l=i(59721);let c=(0,n.defineStore)("right-side-panel",()=>{let e=(0,l.O)(),t=new Map,i=(0,o.ref)(""),n=(0,o.ref)(!1),c=(0,o.computed)(()=>{let e=t.get(i.value);return e?e.value.width:0});function d(t){return"aiHelper"===t?e.ntype+"_ai_helper":"pivotTable"===t?e.ntype+"_pivot_table":void 0}function u(e,i,n){let o=t.get(e);o&&(o.value[i]=n)}return(0,o.watch)(()=>c.value,e=>{(0,a.E)().setRightSidePanelWidth(e)},{immediate:!0}),{activePanelWidth:c,activePanelKey:i,expanded:n,getResizeInfoRef:function(e){return t.get(e)},setPanelWidthSetting:function(){let e=c.value;if(0!==e){let t=d(i.value);t&&(0,s.L)({side_panel_width:{[t]:e}})}},initResizeInfo:function(e,i){if(""!==e&&!t.has(e)){let n=(0,o.ref)(i);t.set(e,n),(0,s.$)().then(t=>{if(!t)return;let i=d(e);if(i){let n=(t?.side_panel_width)[i];n&&u(e,"width",n)}})}},updateResizeInfo:u,setExpanded:function(e){n.value=e},setActivePanelKey:function(e){(!e||t.has(e))&&(i.value=e)},getActivePanelResizeInfo:function(){var e;return e=i.value,t.get(e)?.value},updateActivePanelWidth:function(e){let n=t.get(i.value);n&&n.value.resizable&&(n.value.width=(0,r.Z)(e,n.value.minWidth,n.value.maxWidth))},isPanelActive:function(e){return i.value===e}}})},24378:function(e,t,i){"use strict";var n=i(61367),o=i(29980),r=i(63447),a=i(46989),s=i(9359),l=i(22366);let c=(0,r.defineComponent)({__name:"RightSidePanelResizer",props:{getWidth:{type:Function}},emits:["resize-start","resize","resize-end"],setup(e,t){let{emit:i}=t,n=(0,r.ref)(!1),o=(0,r.ref)(0),a=(0,r.ref)(0);function s(t){n.value=!0,o.value=t.clientX,a.value=e.getWidth()||0,window.addEventListener("mousemove",l),window.addEventListener("mouseup",c),i("resize-start")}function l(e){if(!n.value)return;let t=o.value-e.clientX;i("resize",a.value+t)}function c(){n.value=!1,window.removeEventListener("mousemove",l),window.removeEventListener("mouseup",c),i("resize-end")}return(e,t)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{class:(0,r.normalizeClass)(e.$style.resizer),onMousedown:s},null,34))}});var d=i(18146),u=i.n(d),h=i(4337);let p={};p.$style=u();let f=(0,h.default)(c,[["__cssModules",p]]);var g=i(14395);Ext.define("SYNO.SDS.Office.RightPanelContainer",{extend:"SYNO.ux.Panel",constructor:function(e){this.owner=e.owner,this.isCollapsing=!1;let t=Object.assign({region:"east",cls:(0,n.isMobileLayout)()?["panel-full"]:[],layout:"card",hidden:!1,activeItem:0,collapsed:!0,items:this.createItems()},e);SYNO.ux.Panel.prototype.constructor.call(this,t),(0,n.isMobileLayout)()&&(this.on("beforeexpand",function(){this.getEl().setLeft(0),this.el.setSize(window.visualViewport),this.body.setSize(window.visualViewport)},this),this.on("bodyresize",function(){this.body.setSize(window.visualViewport)},this));let i=this.getRightPanelContainerStore();(0,r.watch)(()=>i.activePanelWidth,e=>{this.collapsed||this.updateWidth(e)}),this.on("collapse",function(){this.isCollapsing&&(this.isCollapsing=!1,this.getRightPanelContainerStore().setActivePanelKey(""))}),this.on("expand",function(){this.getRightPanelContainerStore().setExpanded(!0),this.getRightPanelContainerStore().isPanelActive(s._)&&this.getCommentPanel().fireEvent("active")}),this.on("beforecollapse",function(){this.isCollapsing=!0,this.getRightPanelContainerStore().setExpanded(!1)})},createItems:function(){return[new o.u({vueClass:this.getRightPanelContainerVueClass(),itemId:"inner",owner:this,vueOptions:{pinia:this.main.getPinia?.()},vueProps:{onClose:()=>{this.hidePanel(!0,!0)}}})]},getRightPanelContainerVueClass:Ext.emptyFn,getRightPanelContainerStore:function(){return(0,a.H)(this.main.getPinia?.())},getResizer:function(){if(!this.resizer){let e=document.createElement("div");e.style.height="100%",(0,g.b$)({pinia:this.main.getPinia?.()},f,{getWidth:()=>this.getWidth(),onResize:e=>{this.handleResize(e)},onResizeEnd:()=>{this.handleResizeEnd()}}).mount(e),this.el.dom.appendChild(e),this.resizer=e}return this.resizer},showResizer:function(){this.getResizer().style.display="block"},hideResizer:function(){this.getResizer().style.display="none"},handleResize:function(e){let t=this.getRightPanelContainerStore(),i=Math.min(this.owner.getWidth(),e);t.updateActivePanelWidth(i)},handleResizeEnd:function(){this.getRightPanelContainerStore().setPanelWidthSetting()},onContainerResize:function(e){e<this.getWidth()&&this.handleResize(e)},updateWidth:function(e){(0,n.isMobileLayout)()||this.setWidth(e),this.owner.doLayout()},getContainerHeight:function(){return this.owner.body.getHeight()},getOffsetToContainer:function(){},isPanelActive:function(e){let t=this.getRightPanelContainerStore();return!this.collapsed&&!this.el.hasActiveFx()&&t.isPanelActive(e)},_syncB4Expand:function(e){if(this.getEl().setStyle({display:"",visibility:"hidden"}),this.collapsed=!1,(0,n.isMobileLayout)())this.setSize({width:window.visualViewport.width,height:window.visualViewport.height});else{this.setSize({width:e,height:this.getContainerHeight()});let t=this.getOffsetToContainer();t&&this.setPosition(t.x,t.y)}this.doLayout(),this.getEl().setStyle({display:"none",visibility:""}),this.collapsed=!0},getRightSidePanelContainer:function(){return this.getComponent("inner").getVueInstance()},getCommentPanel:function(){return this.getRightSidePanelContainer().getCommentPanel()},showCommentPanel:function(){this._showPanel(s._)},showChartEditorPanel(){this._showPanel(l.z)},_showPanel:async function(e){let t=this.getRightPanelContainerStore();t.setActivePanelKey(e),await (0,r.nextTick)();let i=t.getActivePanelResizeInfo(),o=i.resizable,a=i.width;!(0,n.isMobileLayout)()&&o&&(a=Math.min(a,this.owner.getWidth()),t.updateActivePanelWidth(a)),!!this.el.hasActiveFx()^this.collapsed&&(this.isCollapsing=!1,this.el.stopFx(),(0,n.isMobileLayout)()?this.getEl().setLeft(0):(this.getEl().setLeft("auto"),this.getEl().setRight(0)),this._syncB4Expand(a),this.expand()),!(0,n.isMobileLayout)()&&o?this.showResizer():this.hideResizer()},hidePanel:function(e,t){this.collapse(e),t&&SYNO.SDS.Office.Utils.focusEditor()},togglePanel:function(e,t,i){void 0===t&&(t=!0),void 0===i&&(i=!0),this.isPanelActive(e)?this.hidePanel(t,i):this._showPanel(e)}})},19760:function(e,t,i){"use strict";i.d(t,{u:()=>a});var n=i(63447),o=i(58148);let r=(0,n.defineComponent)({name:"FontFamilyOption",components:{vSelectBaseOption:o.Z},extends:o.Z,computed:{fontFamilyStyle(){return{fontFamily:`"${this.option.value}"`}}}}),a=(0,i(4337).default)(r,[["render",function(e,t,i,o,r,a){let s=(0,n.resolveComponent)("v-select-base-option");return(0,n.openBlock)(),(0,n.createBlock)(s,(0,n.mergeProps)({"syno-id":"option",style:e.fontFamilyStyle},e.$props),(0,n.createSlots)({_:2},[(0,n.renderList)(e.$slots,(t,i)=>({name:i,fn:(0,n.withCtx)(t=>[(0,n.renderSlot)(e.$slots,i,(0,n.normalizeProps)((0,n.guardReactiveProps)(t)))])}))]),1040,["style"])}]])},82795:function(e,t,i){"use strict";i.d(t,{L:()=>n});let n=Ext.define("SYNO.SDS.Office.SplittedComboBox",{extend:"SYNO.ux.ComboBox",matchAny:!0,_initBottomStoreData:function(){return[]},_createBottomStore:function(e){return new Ext.data.ArrayStore({autoDestroy:!0,fields:["value","display"],data:e??this._initBottomStoreData()})},_onBottomRecordClick:Ext.emptyFn,initEvents:function(){SYNO.ux.ComboBox.prototype.initEvents.apply(this,arguments),this.keyNav.enter=function(){this.selectedIndex>=0?this.onViewClick():this.bottomSelectedIndex>=0&&this.onBottomViewClick()},this.mon(this,"expand",function(){let e=this.list.dom,t=this.displayField,i=i=>{i.each(i=>{let n=i.get(t),o=Ext.util.TextMetrics.measure(e,n),r=this.list?.getWidth()??this.listWidth??293;o.width>r&&i.set("qtip",n)})};this.mon(this.store,"load",i),i(this.store),this.bottomStore&&(this.mon(this.bottomStore,"load",i),i(this.bottomStore))},this,{single:!0})},initList:function(){this.tpl="string"==typeof this.tpl?new Ext.XTemplate(this.tpl):this.tpl,SYNO.ux.ComboBox.prototype.initList.apply(this,arguments);let e=this._initBottomStoreData();if(0===e.length)return;let t="x-combo-list";this.separator=new Ext.menu.Separator({renderTo:this.list.dom,parentMenu:this}),this.bottomList=this.list.createChild({cls:t+"-bottom-inner"}),this.mon(this.bottomList,"mouseover",this.onBottomViewOver,this),this.mon(this.bottomList,"mousemove",this.onBottomViewMove,this),this.bottomStore=this._createBottomStore(e),this.bottomSelectedIndex=-1,this.bottomView=new Ext.DataView({applyTo:this.bottomList,tpl:this.tpl,singleSelect:!0,selectedClass:this.selectedClass,itemSelector:this.itemSelector||"."+t+"-item",store:this.bottomStore}),this.mon(this.bottomView,{click:this.onBottomViewClick,scope:this})},onBottomViewOver:function(e,t){if(!this.inKeyMode){var i=this.bottomView.findItemFromChild(t);if(i){var n=this.bottomView.indexOf(i);this.bottomSelect(n)}}},onBottomViewMove:function(){this.inKeyMode=!1},onBottomViewClick:function(){var e=this.bottomStore.getAt(this.bottomSelectedIndex);e&&this._onBottomRecordClick(e)},bottomSelect:function(e){this.bottomView&&(this.bottomSelectedIndex=e,this.bottomView.select(e),e>=0&&this.select(-1))},select:function(e){SYNO.ux.ComboBox.prototype.select.apply(this,arguments),e>=0&&this.bottomSelect(-1)},isBottomSelected:function(){return this.selectedIndex<0&&this.bottomSelectedIndex>=0},selectNext:function(){if(this.selectedIndex>=0)this.selectedIndex===this.store.getCount()-1?this.bottomStore?.getCount()>0&&this.bottomSelect(0):SYNO.ux.ComboBox.prototype.selectNext.apply(this,arguments);else if(this.bottomSelectedIndex>=0){let e=this.bottomStore?.getCount();e>0&&this.bottomSelectedIndex<e-1&&this.bottomSelect(this.bottomSelectedIndex+1)}else this.store.getCount()?this.select(0):this.bottomStore?.getCount()&&this.bottomSelect(0)},selectPrev:function(){if(this.selectedIndex>=0)SYNO.ux.ComboBox.prototype.selectPrev.apply(this,arguments);else if(this.bottomSelectedIndex>=0){if(this.bottomStore?.getCount()>0)if(0===this.bottomSelectedIndex){let e=this.store.getCount();e>0&&this.select(e-1)}else this.bottomSelect(this.bottomSelectedIndex-1)}else this.store.getCount()?this.select(0):this.bottomStore?.getCount()&&this.bottomSelect(0)},restrictHeight:function(){this.innerList.dom.style.height="";var e=this.view.getTemplateTarget().dom,t=this.list.getFrameWidth("tb")+(this.resizable?this.handleHeight:0)+this.assetHeight,i=Math.max(e.clientHeight,e.offsetHeight,e.scrollHeight),n=this.getPosition()[1]-Ext.getBody().getScroll().top,o=Ext.lib.Dom.getViewHeight()-n-this.getSize().height;i=Math.min(i,Math.max(n,o,this.minHeight||0)-this.list.shadowOffset-t-5,this.maxHeight);var r=0;this.bottomView&&(r+=this.bottomView.getHeight(),this.separator.isVisible()&&(r+=13)),this.innerList.setHeight(i),this.list.beginUpdate(),this.list.setHeight(i+t+r),this.list.alignTo.apply(this.list,[this.el].concat(this.listAlign)),this.list.endUpdate(),this.view.updateFleXcroll()},doQuery:function(e,t){let i={query:e=Ext.isEmpty(e)?"":e,forceAll:t,combo:this,cancel:!1};if(!1===this.fireEvent("beforequery",i)||i.cancel)return!1;e=i.query,((t=i.forceAll)||!(e.length<this.minChars))&&(this.lastQuery!==e?(this.lastQuery=e,"local"===this.mode?(this.selectedIndex=-1,this.bottomSelectedIndex=-1,t?(this.store.clearFilter(),this.bottomStore?.clearFilter()):(this.store.filter(this.displayField,e,this.matchAny),this.bottomStore?.filterBy(function(){return!e})),this.view.clearSelections(),this.onLoad()):(this.store.baseParams[this.queryParam]=e,this.store.load({params:this.getParams(e)}),this.bottomStore&&(this.bottomStore.baseParams[this.queryParam]=e,this.bottomStore.load({params:this.getParams(e)})),this.expand())):(this.selectedIndex=-1,this.bottomSelectedIndex=-1,this.view.clearSelections(),this.onLoad()))},onBeforeLoad:function(){this.hasFocus&&(this.bottomSelectedIndex=-1),SYNO.ux.ComboBox.prototype.onBeforeLoad.apply(this,arguments)},onLoad:function(){this.hasFocus&&(this.store.getCount()>0||this.listEmptyText||this.bottomStore?.getCount()>0?(this.separator?.setVisible(this.store.getCount()>0&&this.bottomStore?.getCount()>0),this.expand(),this.restrictHeight(),this.lastQuery===this.allQuery?(this.editable&&this.el.dom.select(),!1===this.autoSelect||this.selectByValue(this.value,!0)||this.select(0,!0)):(!1!==this.autoSelect&&this.selectNext(),this.typeAhead&&this.lastKey!==Ext.EventObject.BACKSPACE&&this.lastKey!==Ext.EventObject.DELETE&&this.taTask.delay(this.typeAheadDelay))):this.collapse())},findRecord:function(e,t){let i=SYNO.ux.ComboBox.prototype.findRecord.call(this,e,t);return!i&&this.bottomStore&&(i=SYNO.ux.ComboBox.prototype.findRecord.call({store:this.bottomStore},e,t)),i}})},92731:function(e,t,i){"use strict";i.d(t,{u:()=>R});var n=i(63447);let o=["disabled"],r=(0,n.defineComponent)({__name:"DefaultButton",props:{cls:{},active:{type:Boolean},disabled:{type:Boolean}},setup:e=>(t,i)=>((0,n.openBlock)(),(0,n.createElementBlock)("button",(0,n.mergeProps)({disabled:t.disabled,class:[e.cls,t.$style.btn,{[t.$style.active]:e.active,[t.$style.disabled]:e.disabled}]},t.$attrs),null,16,o))});var a=i(63460),s=i.n(a),l=i(4337);let c={};c.$style=s();let d=(0,l.default)(r,[["__cssModules",c]]);var u=i(49098),h=i(7474),p=i(90399),f=i(67870);let g=["disabled"],m=["disabled"],v=(0,n.defineComponent)({__name:"ColorPickerButton",props:{cls:{},color:{},clsDropdown:{},disabled:{type:Boolean}},emits:["update-color"],setup(e,t){let{emit:i}=t,o=(0,f.v0)(),r=(0,n.ref)(!1),a=(0,n.ref)(null),s=(0,n.computed)(()=>r.value),l=(0,n.computed)(()=>e.color?`#${e.color}`:"transparent"),c=(0,n.computed)(()=>e.color?{color:`#${e.color}`,alpha:1}:void 0);function d(){r.value=!1}function v(){r.value=!0}function b(){d(),i("update-color")}function y(e,t){let{color:n}=t;d(),i("update-color",n.startsWith("#")?n.slice(1):n)}async function w(){d();let e=await (0,h.P6)();e&&i("update-color",e.color.slice(1))}function _(){d(),(0,p.hy)(h.v3,{initColor:e.color,onApply:e=>i("update-color",e.startsWith("#")?e.slice(1):e)})}return(t,i)=>{let p=(0,n.resolveDirective)("clickoutside");return(0,n.openBlock)(),(0,n.createElementBlock)("div",{class:(0,n.normalizeClass)(t.$style.wrapper)},[(0,n.createElementVNode)("button",(0,n.mergeProps)({ref_key:"mainButton",ref:a,class:[e.cls,t.$style.btn,t.$style["btn-main"],{[t.$style.active]:s.value},{[t.$style.disabled]:e.disabled}]},t.$attrs,{disabled:e.disabled,onClick:v}),[(0,n.createElementVNode)("span",{class:(0,n.normalizeClass)(t.$style["color-preview"]),style:(0,n.normalizeStyle)({backgroundColor:l.value})},null,6)],16,g),(0,n.createElementVNode)("button",(0,n.mergeProps)({class:[t.$style.btn,t.$style["btn-drop-down"],t.clsDropdown,{[t.$style.active]:s.value},{[t.$style.disabled]:e.disabled}],disabled:e.disabled},t.$attrs,{onClick:v}),null,16,m),r.value?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(u.Z),{key:0,alignment:"tl->bl","mount-to":(0,n.unref)(o),anchor:a.value??void 0},{default:(0,n.withCtx)(()=>[(0,n.withDirectives)((0,n.createVNode)((0,n.unref)(h.uz),{"current-color":c.value,onReset:b,onShowCustom:_,onShowEyedropper:w,onSelect:y},null,8,["current-color"]),[[p,d]])]),_:1},8,["mount-to","anchor"])):(0,n.createCommentVNode)("",!0)],2)}}});var b=i(19423),y=i.n(b);let w={};w.$style=y();let _=(0,l.default)(v,[["__cssModules",w]]);var x=i(95695),S=i.n(x);let C={};C.$style=S();let k=(0,l.default)({},[["render",function(e,t){return(0,n.openBlock)(),(0,n.createElementBlock)("div",{class:(0,n.normalizeClass)(e.$style.split)},null,2)}],["__cssModules",C]]),I=(0,n.defineComponent)({__name:"ToolBar",props:{elements:{},clsDropdown:{}},emits:["click","update-color"],setup(e,t){let{emit:i}=t;return(t,o)=>{let r=(0,n.resolveDirective)("tooltip");return(0,n.openBlock)(),(0,n.createElementBlock)("div",{class:(0,n.normalizeClass)(t.$style["tool-bar"])},[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(e.elements,(e,o)=>((0,n.openBlock)(),(0,n.createElementBlock)(n.Fragment,{key:"split"===e.type?String(o):`${o}-${e.name}`},["defaultBtn"===e.type?(0,n.withDirectives)(((0,n.openBlock)(),(0,n.createBlock)(d,{key:0,cls:e.cls,active:e.active,disabled:e.disabled,onClick:t=>i("click",e.name)},null,8,["cls","active","disabled","onClick"])),[[r,e.tooltip??!1]]):"colorPickerBtn"===e.type?(0,n.withDirectives)(((0,n.openBlock)(),(0,n.createBlock)(_,{key:1,cls:e.cls,"cls-dropdown":t.clsDropdown,color:e.color,disabled:e.disabled,onUpdateColor:t=>i("update-color",e.name,t)},null,8,["cls","cls-dropdown","color","disabled","onUpdateColor"])),[[r,e.tooltip??!1]]):"split"===e.type?((0,n.openBlock)(),(0,n.createBlock)(k,{key:2})):(0,n.createCommentVNode)("",!0)],64))),128))],2)}}});var A=i(33915),T=i.n(A);let E={};E.$style=T();let R=(0,l.default)(I,[["__cssModules",E]])},66991:function(e,t,i){"use strict";i.d(t,{h:()=>d});var n=i(63447),o=i(78050);let r=Ext.define("SYNO.SDS.Office.SplitButton",{extend:"SYNO.ux.SplitButton",constructor:function(e){e||(e={}),!1!==e.singleAction&&(e.cls="syno-o-single-action "+(e.cls||""),e.handler=e.handler||this._defaultHandler),SYNO.ux.SplitButton.prototype.constructor.call(this,e)},_defaultHandler:function(e){e.showMenu()}});var a=i(61367),s=i(59087),l=i(14395);function c(e){return{extend:e,onClick(t){e.prototype.onClick.call(this,t),this.disabled||this.ignoreNextClick||this.showVMenu()},async showVMenu(){if(!this.rendered||this.menu||!this.vMenu)return;if(!this.vMenuApp){var e,t;this.vMenuApp=(0,l.b$)({pinia:this.vMenu.pinia},(e=this.vMenu.component,t=this.getEl().dom,(0,n.defineComponent)({emits:["v-menu-show","v-menu-hide"],setup(i,r){let{expose:a,emit:s}=r,l=(0,o.xj)();(0,n.provide)("trigger-action",{closeDropdown:h});let c=(0,n.ref)(!1),d=(0,n.ref)([0,0]),u=(0,n.shallowRef)(null);function h(){c.value=!1,s("v-menu-hide")}return a({show:async function(){c.value=!0,s("v-menu-show"),await (0,n.nextTick)(),u.value&&(d.value=l.getAlignToXY(u.value.$el,t,"tl->bl"))},close:h}),()=>(0,n.h)(e,{ref_key:"menuInstance",ref:u,isOpen:c.value,position:d.value})}})),{onVMenuShow:()=>{this.onVMenuShow()},onVMenuHide:()=>{this.onVMenuHide()}}),this.vMenuInstance=this.vMenuApp.mount(document.body.appendChild(document.createElement("div")))}let i=this.vMenuInstance;i.isOpen?i.close():(this.tooltip&&Ext.QuickTips.getQuickTip().cancelShow(this.btnEl),i.show())},beforeDestroy(){e.prototype.beforeDestroy.call(this),this.vMenuApp&&(this.vMenuApp.unmount(),this.vMenuApp=void 0),this.vMenuInstance=void 0},onVMenuShow(){this.ignoreNextClick=0,this.el.addClass("x-btn-menu-active")},onVMenuHide(){this.el.removeClass("x-btn-menu-active"),this.ignoreNextClick=this.restoreClick.defer(250,this)}}}let d=Ext.define("SYNO.SDS.Office.ToolbarItem.Button",{constructor:function(e){e||(e={});let t="syno-o-toolbar-btn syno-o-small-btn ";e.vIconCfg&&(t+="syno-o-svg-btn ",(0,s.aT)(e)),SYNO.ux.Button.prototype.constructor.call(this,Object.assign({btnStyle:"none"},e,{cls:t+(e.cls||"")}))},handleMouseEvents:!(0,a.isMobileLayout)(),onMouseDown(e){this.disabled||0!==e.button||e.preventDefault(),SYNO.ux.Button.prototype.onMouseDown.apply(this,arguments)},onMouseUp(e){0===this.button&&e.preventDefault(),SYNO.ux.Button.prototype.onMouseUp.apply(this,arguments)},...c(SYNO.ux.Button)});Ext.define("SYNO.SDS.Office.ToolbarItem.SplitButton",{btnMode:"small",constructor:function(e){e||(e={});var t=e.btnMode||"small";r.prototype.constructor.call(this,Object.assign({btnStyle:"none"},e,{btnMode:t,cls:"syno-o-toolbar-btn syno-o-toolbar-sbtn syno-o-"+t.replace(/_/,"-")+"-sbtn "+(e.cls||"")}))},...c(r)})},24536:function(e,t,i){"use strict";i.d(t,{_:()=>a});var n=i(63447),o=i(34877),r=i(73756);let a=(0,o.defineStore)("collab-user",()=>{let e=(0,n.ref)(!0),t=(0,n.reactive)(new Map),i=(0,n.computed)(()=>[...t.values()]),o=(0,n.computed)(()=>10*!!e.value);function a(){t.clear()}function s(e){let i=SYNO.SDS.Office.GetWindow().getSocketId();e.clientId!==i&&t.set(e.clientId,e)}function l(e){return t.get(e)}async function c(e){let t=l(e);if(!t||t.img)return;let i=await (0,r.Z)(t.uid);!1!==i&&(t.img=i)}return{showAvatarOnToolbar:e,users:i,maxUser:o,replaceUsers:function(e){a(),e.forEach(e=>s(e))},clearUser:a,addUser:s,updateUserSelection:function(e,t){let i=l(e);i&&(i.selection=t)},removeUser:function(e){t.delete(e)},getUser:l,setShowAvatarOnToolbar:function(t){e.value=t},fetchAvatar:c}})},59721:function(e,t,i){"use strict";i.d(t,{O:()=>s});var n=i(63447),o=i(34877),r=i(44194);let a=(0,o.defineStore)("file",()=>{let e=(0,n.ref)(""),t=(0,n.ref)(""),i=(0,n.ref)(""),o=(0,n.ref)(""),r=(0,n.computed)(()=>SYNO.SDS.Office.Utils.parseDisplayName(o.value)),a=(0,n.ref)(""),s=(0,n.computed)(()=>{switch(a.value){case"sheet":return"osheet";case"doc":return"odoc";case"presentation":return"oslides";default:return}}),l=(0,n.computed)(()=>!!SYNO.SDS.Office.Utils.isTemplateObjectId(e.value)),c=(0,n.computed)(()=>!!SYNO.SDS.Office.Utils.isOfficeOwnerObjectId(e.value));return{objectId:e,linkId:t,path:i,title:o,displayName:r,ntype:a,extension:s,isTemplate:l,isImport:c,isPublicShare:(0,n.ref)(!1),isRecycled:(0,n.ref)(!1)}});function s(){return(0,r.v)(a)}},62013:function(e,t,i){"use strict";i.d(t,{s:()=>h});var n=i(63447),o=i(34877),r=i(84901),a=i(32334),s=i(44194),l=i(41385),c=i(99067),d=i(27107);let u=(0,o.defineStore)("identity",()=>{let e=(0,n.reactive)(new Map),t=(0,n.reactive)(new Map),i=(0,n.reactive)(new Map),o=(0,n.computed)(()=>[...e.values()]),s=(0,n.computed)(()=>[...i.values()]),u=(0,r.Uu)(),h=(0,n.ref)(),p=(0,n.ref)(),f=(0,n.computed)(()=>{let e=h.value;return void 0===e?void 0:y(e)}),g=(0,n.ref)(!1);function m(t,i){if(t===u)return;void 0!==h.value&&h.value===t&&(i.color=(0,d.jE)()),i.nickname&&(i.nick=i.nickname);let o=e.get(t);o||(o=(0,n.reactive)({uid:t}),e.set(t,o)),Object.assign(o,(0,c.Z)(i,["name","nick","color"]))}function v(e,i){t.set(e,{gid:e,name:i})}function b(e,t){i.set(e,{channelId:e,name:SYNO.SDS.Drive.Utils.getChannelName(e,t)})}function y(t){return e.get(t)?.name??""}function w(t,i){if(0===t)return{name:(0,a.$)("common","system")};if(t===u)return{name:i?.name||(0,l.format)((0,a.$)("common","guest"),"").trim()};let n=e.get(t);return{name:n?.name||i?.name||(0,l.format)((0,a.$)("user","unknown"),t>0?String(t):"").trim(),nick:n?.nick||i?.nickname||i?.nick}}return{users:o,channels:s,anonymousUid:u,selfUid:(0,n.toRef)(()=>h.value),selfGids:(0,n.toRef)(()=>p.value),selfName:f,useNickname:g,setSelfUid:function(e){if(h.value)throw Error("uid already set");h.value=e,m(e,{color:(0,d.jE)()})},setSelfGids:function(e){if(p.value)throw Error("gids already set");p.value=e},updateUsers:function(e){for(let t of e)m(t.uid,t)},updateUser:m,updateGroups:function(e){for(let t of e)v(t.gid,t.name)},updateGroup:v,updateChannels:function(e){for(let t of e)b(t.channelId,t.name)},updateChannel:b,hasUser:function(t){return e.has(t)},hasGroup:function(e){return t.has(e)},hasChannel:function(e){return i.has(e)},getUser:function(t){return e.get(t)},getUserName:y,getUserNick:function(t){return e.get(t)?.nick??""},getUserColor:function(t){return e.get(t)?.color??""},getUserDisplayName:function(e,t){let{name:i,nick:n}=w(e,t);return n&&g.value?n:i},getUserDisplayTip:function(e,t){let{name:i,nick:n}=w(e,t);return i+(n&&g.value?` (${n})`:"")},getUserDisplayFirstName:function(e,t){let i,{name:n,nick:o}=w(e,t);if(o&&g.value)i=o;else{let e=n.split("\\");i=e.length>=2?e[1]:n}return SYNO.SDS.Office.Utils.getAccount1stName(i)},getUserDisplayColor:function(t,i){let n=e.get(t);return n?.color||i?.color||"transparent"},getGroupDisplayName:function(e,i){return t.get(e)?.name||i||(0,l.format)((0,a.$)("group","unknown"),e?String(e):"").trim()},getChannelDisplayName:function(e,t){return i.get(e)?.name||t||(0,l.format)((0,a.$)("chat","channel_unknown"),e?String(e):"").trim()},getUidByName:function(t){for(let[i,n]of e)if(t===n.name)return i},getGidByName:function(e){for(let[i,n]of t)if(e===n.name)return i},getChannelIdByName:function(e){for(let[t,n]of i)if(e===n.name)return t}}});function h(){return(0,s.v)(u)}},68426:function(e,t,i){"use strict";i.d(t,{V:()=>s});var n=i(63447),o=i(34877),r=i(44194);let a=(0,o.defineStore)("info",()=>{let e=(0,n.ref)(!1),t=(0,n.ref)();return{userEventEnabled:e,aiFeedbackUrl:t,sheetMaxCellCount:(0,n.ref)(1/0),sheetPivotTableEnabled:(0,n.ref)(!1)}});function s(){return(0,r.v)(a)}},49708:function(e,t,i){"use strict";i.d(t,{e:()=>l});var n=i(34877),o=i(63447),r=i(44194),a=i(85020);let s=(0,n.defineStore)("permission",()=>{let e=(0,o.ref)("readonly"),t=(0,o.ref)("previewer"),i=(0,o.ref)(!1),n=(0,a.YM)(),r=(0,o.computed)(()=>"edit"===e.value||"view"===e.value?{editable:!0,commentable:!0,readable:!0,previewable:!0}:s.value),s=(0,o.computed)(()=>{let e;switch(t.value){case"editor":e=["editable","commentable","readable","previewable"];break;case"commenter":e=["commentable","readable","previewable"];break;case"reviewer":e=["commentable","previewable"];break;case"viewer":e=["readable","previewable"];break;case"previewer":e=["previewable"];break;default:e=[]}let i={editable:!1,commentable:!1,readable:!1,previewable:!1};for(let t of e)i[t]=!0;return i}),l=(0,o.computed)(()=>i.value&&s.value.readable),c=(0,o.ref)(!1);return{mode:e,role:t,downloadEnabled:i,loggedIn:n,baseEditable:(0,o.toRef)(()=>r.value.editable),baseCommentable:(0,o.toRef)(()=>r.value.commentable),baseReadable:(0,o.toRef)(()=>r.value.readable),basePreviewable:(0,o.toRef)(()=>r.value.previewable),editable:(0,o.toRef)(()=>s.value.editable),commentable:(0,o.toRef)(()=>s.value.commentable),readable:(0,o.toRef)(()=>s.value.readable),previewable:(0,o.toRef)(()=>s.value.previewable),downloadable:l,fileBrowsable:c}});function l(){return(0,r.v)(s)}},59087:function(e,t,i){"use strict";i.d(t,{Gr:()=>l,aT:()=>s});var n=i(23886),o=i(14395),r=i(98272);function a(e,t){if(!e.vIconCfg)return e;let i=e.listeners;return Object.assign(e,{listeners:{...i,afterrender(e){for(var a=arguments.length,s=Array(a>1?a-1:0),l=1;l<a;l++)s[l-1]=arguments[l];i?.afterrender?.call(this,e,...s);let c=t?t(e):e.getEl().dom;!function(e,t,i){if(!i)return;let a=t.appendChild(document.createElement("i"));a.style.pointerEvents="none";let s=(0,o.aX)((0,r.Js)(n.Z,i)),l=s.mount(a);e.vIcon={app:s,inst:l,setProps:e=>{l.setProps(e)}}}(e,c,e.vIconCfg)},destroy(e){for(var t=arguments.length,n=Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];e.vIcon&&(e.vIcon.app.unmount(),e.vIcon=void 0),i?.destroy?.call(this,e,...n)}}})}function s(e){return a(e,e=>e.btnEl.dom)}function l(e){return a(e,e=>{let t=document.createElement("div");return t.className=e.iconEl.dom.className,e.iconEl.replaceWith(t),t})}},29980:function(e,t,i){"use strict";i.d(t,{u:()=>o});var n=i(14395);let o=Ext.define("SYNO.SDS.Office.VuePanel",{extend:"Ext.Container",constructor(e){this.vueOptions=e.vueOptions,this.vueProps=e.vueProps,Ext.Container.prototype.constructor.apply(this,arguments),this.vueClass||this.vueApp||SYNO.Debug.error("SYNO.SDS.Office.VuePanel should be along with vueApp or vueClass"),this.on("afterrender",()=>{this.initVueInstance(this.getVueInstance())})},ensureVueApp:function(){if(this.vueApp)return this.vueApp;let{propsData:e,...t}=this.getVueOptions()??{};return(0,n.b$)({pinia:t.pinia},this.vueClass,this.getVueProps()??e)},onRender:function(e,t){Ext.Container.prototype.onRender.apply(this,arguments),this.mountElDom=document.createElement("div"),this.mountElDom.style.height="100%",this.mountElDom.id=this.mountId,this.el.dom.appendChild(this.mountElDom);let i=this.ensureVueApp(),n=i.mount(this.mountElDom);n._$extPanel=this,this._$vueInst=n,this._app=i,SYNO.SDS.Desktop&&n&&SYNO.SDS.Desktop.appendChild(n)},beforeDestroy(){this.app?.unmount(),Ext.Container.prototype.beforeDestroy.apply(this,arguments)},getVueOptions(){return this.vueOptions},getVueProps(){return this.vueProps},getVueInstance(){return this._$vueInst},initVueInstance:Ext.emptyFn})},1172:function(e,t,i){"use strict";i.d(t,{o:()=>r});var n=i(90167),o=i.n(n);let r=Ext.define("SYNO.SDS.Office.Base.Window.Base",{extend:o(),toFront:function(e){this.manager.bringToFront(this)},anchorToMainBody:function(e,t,i){e&&"?"!==e?e.includes("-")||(e="tl-"+e):e="tl-bl?";let n=this.getAlignMainBodyOffsets(e);t=t?t.map((e,t)=>e+(n[t]||0)):n,this.anchorTo(this.getAlignMainBodyTarget(),e,t,i)},getAlignMainBodyTarget:function(){return this.findAppWindow().mainPanel.body},getAlignMainBodyOffsets:function(e){let t=e.split("-",2),i=["l","t","r","b"].reduce((e,i)=>(e[i]=t.every(e=>e.includes(i)),e),Object.create(null)),n=[0,0];i.r&&(n[0]-=14);let o=this.findAppWindow();return o.manager.windowList.forEach(t=>{let{component:r}=t;if(r===o)return;let a=r.anchorTarget;if(!a)return;let{el:s,alignment:l,offsets:c}=a;if(s!==this.getAlignMainBodyTarget()||l!==e)return;let d=r.getPosition(),u=r.el.getAlignToXY(s,l,c);!(Math.abs(d[0]-u[0])>1||Math.abs(d[1]-u[1])>1)&&(i.t?n[1]=Math.max(n[1],r.el.getOffsetsTo(s)[1]+r.getHeight()):i.b?n[1]=Math.min(n[1],r.el.getOffsetsTo(s)[1]-s.getHeight()):i.l?n[0]=Math.max(n[0],r.el.getOffsetsTo(s)[0]+r.getWidth()):i.r&&(n[0]=Math.min(n[0],r.el.getOffsetsTo(s)[0]-s.getWidth())))}),n}})},55342:function(e,t,i){"use strict";i.d(t,{W:()=>o});var n=i(1172);let o=Ext.define("SYNO.SDS.Office.Base.Window.BaseTool",{extend:n.o,constructor:function(e){n.o.prototype.constructor.call(this,Object.assign({},e,{draggable:!1,header:!1,headerCfg:void 0,cls:"syno-o-tool-window "+(e&&e.cls||"")}))},createElement:function(e){"header"!==e&&n.o.prototype.createElement.apply(this,arguments)},onRender:function(){n.o.prototype.onRender.apply(this,arguments),this.body.setStyle({background:"transparent"}),this.getEl().child(".x-window-tl").setDisplayed(!1)},initEvents:function(){this.initDraggable(),this.getDraggableEl().addClass("x-window-draggable"),n.o.prototype.initEvents.apply(this,arguments)},initDraggable:function(){this.dd=new SYNO.SDS.Office.Base.Window.BaseToolDD(this)},fillWindowPadding:function(e){return Ext.applyIf(e,{padding:"9px 11px"})},getDraggableEl:function(){return this.body}});Ext.define("SYNO.SDS.Office.Base.Window.BaseToolDD",{extend:"Ext.Window.DD",constructor:function(e){this.win=e,Ext.Window.DD.superclass.constructor.call(this,e.el.id,"WindowDD-"+e.id),this.setHandleElId(e.getDraggableEl().id),this.scroll=!1}})},90399:function(e,t,i){"use strict";i.d(t,{sf:()=>l,NR:()=>s,hy:()=>o.hy}),i(1172),i(55342);var n=i(63447),o=i(61232),r=i(61431);function a(e){return(0,r.z)(e)?e.$el.getBoundingClientRect():{left:e.getPosition()[0],top:e.getPosition()[1],width:e.getWidth(),height:e.getHeight()}}async function s(e,t,i,s,l){let d;void 0===i&&(i={}),void 0===s&&(s="tl->tl"),void 0===l&&(l={hide:!0,unmask:!1});let u=a(e),{window:h}=(0,r.z)(e)?e.openModalWindow(t,p(i)):(0,o.hy)(t,p(i));function p(t){return{...t,closeHook:()=>{t.closeHook?.(),d?.(),e.setPosition(...h.$alignManager.getAlignToXY(u,a(h),s))}}}return h.setOwner(e),await (0,n.nextTick)(),h.setPosition(...h.$alignManager.getAlignToXY(a(h),u,s)),l.hide&&(d=function(e,t){if(void 0===t&&(t=!1),!c(e))return()=>{};let i=e;for(;t&&i?.owner&&!i.containerMasked;)i=i.owner;return t&&i&&(0,r.z)(i)&&i.doUnmaskContainer(),(0,r.z)(e)?e.hidden=!0:e.isModalized()&&e.hide(),()=>{var n,o,a;return n=e,o=i,void(void 0===(a=t)&&(a=!1),c(n)&&((0,r.z)(n)?(n.hidden=!1,a&&o&&o.doMaskContainer()):n.isModalized()&&n.show()))}}(e,l.unmask)),h}async function l(e){let t=null,i=e;for(;i&&c(i);)t=i.owner,await i.close(),await (0,n.nextTick)(),i=t}function c(e){return!!SYNO.SDS.Office.GetWindow().manager.get(e.id)}},95754:function(e,t,i){"use strict";let n=SYNO.SDS.Drive.RenameNodeWindow;var o=i.n(n);let r=SYNO.SDS.Drive.PasswordDialog;var a=i.n(r),s=i(96494),l=i.n(s);let c=SYNO.SDS.Drive.WebAPICore;var d=i.n(c),u=i(89087),h=i(71783);Ext.define("SYNO.SDS.Office.CopyTo.Dialog",{extend:o(),nameItemId:"title",mode:"add",constructor:function(e){e={cls:"syno-o-copyto-dlg",width:450,height:248,title:SYNO.SDS.Drive._T("action","copy_to"),...e},this.initHeight=e.height,o().prototype.constructor.call(this,e)},getFormPanel:function(){return this.formPanel=this.formPanel||new SYNO.API.Form.FormPanel({autoHeight:!0,border:!1,labelWidth:93,defaults:{width:296},items:this.createFormItems()}),this.formPanel.addClass("syno-ux-formpanel"),this.formPanel},createFormItems:function(){return[{xtype:"syno_textfield",fieldLabel:SYNO.SDS.Drive._T("file","new_name"),itemId:this.nameItemId,name:this.nameItemId,validator:this.nameValidator.createDelegate(this)},{xtype:"trigger",name:"to_parent_folder",fieldLabel:SYNO.SDS.Office._T("file","location"),cls:"syno-ux-triggerfield syno-o-copyto-file-location",allowBlank:!1,editable:!1,triggerClass:"syno-ux-triggerfield-trigger",overCls:"syno-ux-triggerfield-hover",onTriggerClick:this.onClickLocationBtn.bind(this),listeners:{scope:this,afterrender:function(e){e.el.hover(function(){e.trigger.addClass("x-form-trigger-over")},function(){e.trigger.removeClass("x-form-trigger-over")})}}},{xtype:"syno_checkbox",name:"comment",boxLabel:SYNO.SDS.Office._T("copy","comment"),disabled:SYNO.SDS.Office.Utils.isIgnoreVersion(),width:394,checked:!0}]},onClickLocationBtn:function(){let e=this.findAppWindow(),t=e.getAction(),i=(0,u.QX)(SYNO.SDS.Drive.Vue.DialogTree,Ext.apply({title:SYNO.SDS.Drive._T("action","copy_to"),findAppWindow:this.findAppWindow.bind(e),cb:(e,t)=>{this.setLocationInfo(e,t),i.component.close()},createFolderCb:(e,n)=>{t.createFolderCB(i.component,e,n)}},SYNO.SDS.Office.Utils.isDrivePage()?{selections:t.getTargets()}:{params:{path:t.getParentPath()}}))},setLocationInfo:function(e,t){!e&&SYNO.SDS.Drive.Define.Info.is_home&&(e=SYNO.SDS.Drive.Define.Info.drive_id,t=SYNO.SDS.Office.File.getBaseName(l().parseDisplayPath("/mydrive"))),this.setLocationId(e),this.setLocationFiled(t)},setLocationFiled:function(e){this.getForm().findField("to_parent_folder").setValue(e)},setLocationId:function(e){this.location_fileId=e},getLocationId:function(){return this.location_fileId},getLocationName:function(){return this.getForm().findField("to_parent_folder").getValue()},setSelections:function(e,t){this.selections=e;var i=this.getForm().findField(this.nameItemId);this.isOnlyOneSelection()?(i.setValue(t??l().parseDisplayName(this.getSelections()[0].get("name"))),i.initValue(),i.setVisible(!0),this.setHeight(this.initHeight)):(i.setVisible(!1),this.setHeight(this.initHeight-38))},getSelections:function(){return this.selections},isOnlyOneSelection:function(){return 1===this.selections.length},nameValidator:function(){return!this.isOnlyOneSelection()||o().prototype.nameValidator.apply(this,arguments)},onApply:function(){this.isValid()&&this.onAction()},hasEncrypted:function(){return this.getSelections().some(function(e){return e.get("encrypted")})},onAction:function(){if(SYNO.SDS.Office.Utils.isDrivePage()&&this.hasEncrypted()&&!this.getForm().findField("comment").getValue())return void(this.isOnlyOneSelection()?this.popOnePassDlg():this.popMultiPassDlg());this.copyDryRun(this.getSelections())},popOnePassDlg:function(){var e=l().getPathId(this.getSelections()[0].get("file_id"));new SYNO.SDS.Office.PasswordWindow({path:e,owner:this,listeners:{scope:this,success:function(t,i){t.close();var n={};n[e]=i,this.copyDryRun(this.getSelections(),n)}}}).show()},popMultiPassDlg:function(){var e=this.getSelections().filter(function(e){return e.get("encrypted")}),t=e.map(function(e){return{file_id:e.get("file_id"),name:e.get("name"),display_path:e.get("display_path"),file_type:"file"}});new(a())({files:t,listeners:{scope:this,apply:function(t,i,n,o){if(o){var r=e.filter(function(e){return -1===n.indexOf(e.get("file_id"))});if(Ext.isEmpty(r)||r.length!==e.length)return void t.setStatusError({text:_T("common","err_pass"),clear:!0})}var a=this.getSelections().filter(function(e){return -1===n.indexOf(e.get("file_id"))});if(Ext.isEmpty(a)){t.close(),this.close(),this.showSkipMessage();return}t.close(),this.copyDryRun(a,i)}}}).show()},copyDryRun:function(e,t){var i={to_parent_folder:l().getPathId(this.getLocationId()),to_parent_folder_name:this.getLocationName(),files:e.map(function(e){return l().getPathId(e.get("file_id"))})};if((!this.isOnlyOneSelection()||!this.getForm().findField(this.nameItemId).isDirty())&&!e.some((function(e){return this.getLocationId()!==e.get("parent_id")}).bind(this)))return void this.copyTo(e,t,i);i.dry_run=!0,this.isOnlyOneSelection()&&(i.name=this.getForm().findField(this.nameItemId).getValue()+"."+l().getExt(this.getSelections()[0].get("name"))),this.setStatusBusy({text:_T("common","msg_waiting")}),d().sendPromise("copy_files",i).then((function(n){this.clearStatusBusy(),delete i.dry_run,delete i.name,n.result&&0<n.result.length?SYNO.SDS.Office.GetAction().showConflictDialog("copy",n.result,function(n){var o=e.filter(function(e){var t=l().getPathId(e.get("file_id"));return!Object.prototype.hasOwnProperty.call(n,t)||"skip"!==n[t]});this.copyTo(o,t,i,n)},this):this.copyTo(e,t,i)}).bind(this)).catch((function(e){var t=(0,h.v2)(e);this.setStatusError({text:t}),this.getMsgBox().alert("",t)}).bind(this))},showSkipMessage:function(){var e;if(this.isOnlyOneSelection())e=String.format(SYNO.SDS.Drive._T("task","success_skip"),Ext.util.Format.htmlEncode(l().parseDisplayName(this.getSelections()[0].get("name"))));else{var t=[];t.push(SYNO.SDS.Drive._T("task","task_completed")),t.push(String.format(SYNO.SDS.Drive._T("task","skipped_items"),this.getSelections().length)),e=t.join(", ")}l().showToastMsg(SYNO.SDS.Office.GetWindow(),e,5e3,!0)},copyTo:function(e,t,i,n){if(Ext.isEmpty(e)){this.close(),this.showSkipMessage();return}i.conflict_action||(i.conflict_action=n||"autorename"),SYNO.SDS.Office.Utils.isIgnoreVersion()&&(i.ver="ignore_version"),i.to_parent_folder=l().getPathId(this.getLocationId()),i.files=e.map(function(e){return l().getPathId(e.get("file_id"))}),t&&(i.passwords=t),this.getForm().findField("comment").getValue()||(i.comment=!1),this.isOnlyOneSelection()&&(i.title=this.getForm().findField(this.nameItemId).getValue());var o=e.map(function(e){return e.get("name")});this.setStatusBusy({text:_T("common","msg_waiting")}),this.fireEvent("apply",this,this.getForm(),i,o)}})},17176:function(){Ext.define("SYNO.SDS.Office.EditorUtils",{singleton:!0,parentContains:function(e,t){for(;e;){if(e.classList&&e.classList.contains(t))return!0;e=e.parentNode}return!1}})},40769:function(e,t,i){"use strict";i(32867);var n=i(90167),o=i.n(n);Ext.define("SYNO.SDS.Office.Encrypt.Window",{extend:o(),constructor:function(e){this.ntype=e.ntype,this.cfg_cb=e.callback,this.cfg_scope=e.scope;var t=this.fillConfig(e);o().prototype.constructor.call(this,t),this.mon(this,"beforeshow",this.onBeforeShow,this),this.mon(this,"show",function(){this.encryptFormPanel.getComponent("pwd").focus(!1,200)},this,{single:!0})},fillConfig:function(e){var t={title:SYNO.SDS.Office._T("window","encryption"),width:560,height:274,layout:"fit",cls:"syno-o-encrypt-win",items:this.getEncryptFormPanel(),buttons:[{xtype:"syno_button",text:SYNO.SDS.Office._T("common","cancel"),scope:this,handler:this.onCancel},{xtype:"syno_button",btnStyle:"default",text:SYNO.SDS.Office._T("common","ok"),scope:this,handler:this.onApply}]};return Ext.apply(t,e)},onBeforeShow:function(){},getEncryptFormPanel:function(){return this.encryptFormPanel=new SYNO.ux.FormPanel({items:[{xtype:"syno_displayfield",value:SYNO.SDS.Office._T("sheet","create_encrypt_desc")},{xtype:"syno_textfield",fieldLabel:_T("common","password"),textType:"password",name:"pwd",allowBlank:!1,maxlength:32},{xtype:"syno_textfield",fieldLabel:SYNO.SDS.Office._T("common","confirm_password"),textType:"password_confirm",confirmFor:"pwd",allowBlank:!1,maxlength:32}]}),this.encryptFormPanel},onApply:function(){var e,t=this.encryptFormPanel.getForm();if(t.isValid()){if(e=t.findField("pwd").getValue(),Ext.isFunction(this.cfg_cb)){this.close(),this.cfg_cb.call(this.cfg_scope||this,e);return}SYNO.SDS.Office.GetAction().createNode({ntype:this.ntype,encrypt:!0,password:e},this.close,this,this)}}})},24413:function(e,t,i){"use strict";var n=i(71783);i(73032);var o=i(90167),r=i.n(o);Ext.define("SYNO.SDS.Office.Encrypt.Copy.Window",{extend:r(),constructor:function(e){var t=this.fillConfig(e);r().prototype.constructor.call(this,t),this.mon(this,"show",function(){this.encryptCopyFormPanel.getComponent("pwd").focus(!1,200)},this,{single:!0})},fillConfig:function(e){var t={title:SYNO.SDS.Office._T("window","encryption"),width:560,height:274,layout:"fit",cls:"syno-o-encrypt-win",items:this.getEncryptCopyFormPanel(),buttons:[{xtype:"syno_button",text:SYNO.SDS.Office._T("common","cancel"),scope:this,handler:this.onCancel},{xtype:"syno_button",btnStyle:"default",text:SYNO.SDS.Office._T("common","ok"),scope:this,handler:this.onApply}]};return Ext.apply(t,e)},getEncryptCopyFormPanel:function(){return this.encryptCopyFormPanel=new SYNO.ux.FormPanel({items:[{xtype:"syno_displayfield",value:SYNO.SDS.Office._T("common","encrypt")},{xtype:"syno_textfield",fieldLabel:_T("common","password"),textType:"password",name:"pwd",allowBlank:!1,maxlength:32},{xtype:"syno_textfield",fieldLabel:SYNO.SDS.Office._T("common","confirm_password"),textType:"password_confirm",confirmFor:"pwd",allowBlank:!1,maxlength:32}]}),this.encryptCopyFormPanel},setData:function(e){this.data=e},onApply:function(){if(this.data){var e=this.encryptCopyFormPanel.getForm(),t=e.findField("pwd").getValue();if(!e.isValid())return!1;var i=this.data.path;this.setStatusBusy(),SYNO.SDS.Office.GetAction().encryptOfficeNode({path:i,encrypt:!0,password:t},function(e,o,r){if(this.clearStatusBusy(),!e)return void this.getMsgBox().alert("",(0,n.v2)(o));this.fireEvent("encrypt",this,o,i,t),this.close()},this)}}})},3471:function(e,t,i){"use strict";var n=i(71783);i(73032);var o=i(90167),r=i.n(o);Ext.define("SYNO.SDS.Office.Encrypt.Modify.Window",{extend:r(),constructor:function(e){var t=this.fillConfig(e);r().prototype.constructor.call(this,t),this.mon(this,"show",function(){this.encryptModifyFormPanel.getComponent("old_pwd").focus(!1,200)},this,{single:!0})},fillConfig:function(e){var t=SYNO.SDS.Office._T,i={title:t("window","encryption"),width:560,height:388,layout:"fit",cls:"syno-o-encrypt-win",items:this.getEncryptModifyFormPanel(),buttons:[{xtype:"syno_button",text:t("common","cancel"),scope:this,handler:this.onCancel},{xtype:"syno_button",btnStyle:"default",text:t("common","ok"),handler:this.onApply,scope:this}]};return Ext.apply(i,e)},getEncryptModifyFormPanel:function(){var e=SYNO.SDS.Office._T;return this.encryptModifyFormPanel=new SYNO.ux.FormPanel({defaults:{anchor:"100%"},labelWidth:180,items:[{xtype:"syno_displayfield",value:e("sheet","encrypt_desc")},{xtype:"syno_radio",boxLabel:e("common","change_password"),inputValue:"encrypt_change",name:"encrypt",checked:!0,listeners:{scope:this,check:function(){this.encryptModifyFormPanel.getComponent("old_pwd").focus(!1,80)}}},{ctCls:"syno-o-field-no-bottom-margin",xtype:"syno_textfield",fieldLabel:_T("common","password"),textType:"password",name:"old_pwd",allowBlank:!1,maxlength:32,indent:1},{xtype:"syno_textfield",fieldLabel:e("common","new_password"),textType:"password",name:"new_pwd",allowBlank:!1,maxlength:32,indent:1},{xtype:"syno_textfield",fieldLabel:e("common","confirm_password"),textType:"password_confirm",confirmFor:"new_pwd",name:"confirm_new_pwd",allowBlank:!1,maxlength:32,indent:1},{xtype:"syno_radio",boxLabel:e("common","unencrypt"),inputValue:"unencrypt",name:"encrypt",listeners:{scope:this,check:function(){this.encryptModifyFormPanel.getComponent("pwd").focus(!1,80)}}},{xtype:"syno_textfield",fieldLabel:_T("common","password"),textType:"password",name:"pwd",allowBlank:!1,maxlength:32,indent:1}],listeners:{single:!0,afterlayout:function(e,t){this.dummyEncryptRadioGroup=new SYNO.ux.Utils.EnableRadioGroup(e.getForm(),"encrypt",{encrypt_change:["old_pwd","new_pwd","confirm_new_pwd"],unencrypt:["pwd"]})}}}),this.encryptModifyFormPanel},setData:function(e){this.data=e},onApply:function(){if(this.data){var e=this.encryptModifyFormPanel.getForm();if(!e.isValid())return!1;var t=this.data.path;if(this.setStatusBusy(),"encrypt_change"===e.findField("encrypt").getGroupValue()){var i=e.findField("old_pwd").getValue(),o=e.findField("new_pwd").getValue();this.fireEvent("beforechangepwd",this,o,i),SYNO.SDS.Office.GetAction().setOfficeNode({path:t,password:i,new_password:o},function(e,r,a){if(this.fireEvent("changepwddone",this,e,r),e||"reloading"===SYNO.SDS.Office.GetWindow().state){if(i===o){this.clearStatusBusy(),this.close();return}!1!==this.fireEvent("changepwdsucc",this,r,o,t,i)&&(this.clearStatusBusy(),this.close())}else{this.clearStatusBusy(),this.getMsgBox().alert("",(0,n.v2)(r));return}},this)}else SYNO.SDS.Office.GetAction().encryptOfficeNode({path:t,password:e.findField("pwd").getValue(),encrypt:!1},function(e,i,o){if(this.clearStatusBusy(),!e)return void this.getMsgBox().alert("",(0,n.v2)(i));this.fireEvent("unencrypt",this,i,t),this.close()},this)}}})},6235:function(e,t,i){"use strict";i(85213);var n=i(1590);function o(e){let t=window.localStorage;return e instanceof DOMException&&(22===e.code||1014===e.code||"QuotaExceededError"===e.name||"NS_ERROR_DOM_QUOTA_REACHED"===e.name)&&t&&0!==t.length}Ext.ns("SYNO.SDS.Office"),Ext.define("SYNO.SDS.Office._LocalStorage",{extend:"Ext.util.Observable",data_timeout:18e4,constructor:function(){Ext.util.Observable.prototype.constructor.call(this),this.clean();var e=_S("standaloneAppName");SYNO.SDS.Drive.Utils.isLogined()&&"SYNO.SDS.Drive.Application"===e&&Ext.EventManager.on(window,"storage",this.onStorage,this,{normalized:!1})},isFirefoxPrivateMode:!!Ext.isGecko&&(!navigator.serviceWorker||void navigator.serviceWorker.ready.then(function(){SYNO.SDS.Office.LocalStorage.isFirefoxPrivateMode=!1}).catch(function(){SYNO.SDS.Office.LocalStorage.isFirefoxPrivateMode=!0})),allowLocalStorage:function(){var e="__synoffice_localstorage_test_key";if(!Ext.isDefined(window.localStorage))return!1;try{window.localStorage.removeItem(e),window.localStorage.setItem(e,"test"),window.localStorage.removeItem(e)}catch(e){if(!o(e))return!1}if(Ext.isSafari)try{window.openDatabase(null,null,null,null)}catch{return!1}return!0}(),useCookie:function(){if(void 0===this.cookie){if(void 0===this.isFirefoxPrivateMode)return!0;this.cookie=!this.allowLocalStorage||this.isFirefoxPrivateMode}return this.cookie},genId:function(){return"synoffice_"+new Date().getTime().toString(16)+"#"+Math.floor(1e5*Math.random()).toString(16)},set:function(e,t){var i=!0,r=!1;if(Ext.isObject(e)){var a=e;e=a.id,t=a.data,!1===a.cookie&&(i=!1),a.autodelete&&(r=!0)}if(t.__timestamp=new Date().getTime(),t=JSON.stringify(t),this.allowLocalStorage)try{window.localStorage.setItem(e,t)}catch(i){var s=function(i){let o=`${e}
${t}
${i}`;SYNO.Debug.error(`localStorage.setItem() failed ${o}`),(0,n.e)("set_localstorage",o)};if(s(i),o(i))try{window.localStorage.clear(),window.localStorage.setItem(e,t)}catch(e){s(e)}}i&&this.useCookie()&&Ext.util.Cookies.set(e,t,new Date(new Date().getTime()+this.data_timeout)),r&&this.remove.defer(1e4,this,[e])},fireEvent:function(e,t,i){switch(_S("standaloneAppName")){case"SYNO.SDS.Office.Sheet.Application":case"SYNO.SDS.Office.Doc.Application":case"SYNO.SDS.Office.Presentation.Application":if(SYNO.SDS.Office.Env.is_template||!this.allowLocalStorage||!SYNO.SDS.Drive.Utils.isLogined()||!SYNO.SDS.StatusNotifier.isAppEnabled("SYNO.SDS.Drive.Application"))return;break;default:return}this.set({id:"synoffice_event_"+e,data:{resp:t,params:i},cookie:!1,autodelete:!0})},check:function(e){return!!(this.allowLocalStorage&&window.localStorage.hasOwnProperty(e)||this.useCookie()&&Ext.util.Cookies.get(e))},_get:function(e){var t=null;try{t=JSON.parse(e),delete t.__timestamp}catch{t=!1}return t},get:function(e){if(!this.check(e))return!1;var t=null;return this.allowLocalStorage&&(t=window.localStorage.getItem(e)),null===t&&this.useCookie()&&(t=Ext.util.Cookies.get(e)),null!==t&&this._get(t)},remove:function(e){this.allowLocalStorage&&window.localStorage.removeItem(e),this.useCookie()&&this.removeCookie(e)},removeCookie:function(e){document.cookie=e+"=; expires=Thu, 01 Jan 1970 00:00:01 GMT;path=/"},clean:function(){var e,t=new Date().getTime(),i=this.data_timeout;this.allowLocalStorage&&Ext.iterate(window.localStorage,function(n,o){if(0===n.indexOf("synoffice_")){try{e=JSON.parse(o)}catch{window.localStorage.removeItem(n);return}Math.abs(t-e.__timestamp)>i&&window.localStorage.removeItem(n)}}),(!this.allowLocalStorage||Ext.isGecko)&&document.cookie.split(/; */).forEach(function(n){var o=n.split("="),r=o[0],a=o[1];if(0===r.indexOf("synoffice_")){try{e=JSON.parse(unescape(a))}catch{this.removeCookie(r);return}Math.abs(t-e.__timestamp)>i&&this.removeCookie(r)}})},onStorage:function(e){if(window.localStorage===e.storageArea){var t=e.key;if("__synoffice_localstorage_test_key"!==t&&0===t.indexOf("synoffice_")&&null!==e.newValue&&/^synoffice_event_/.test(t)){this.isFirefoxPrivateMode||(this.cookie=!1);var i=this._get(e.newValue),n=t.replace(/^synoffice_event_/g,"");SYNO.SDS.Office.GetWindow().getEventMgr().fireEvent(n,!0,i.resp,i.params),this.remove(t)}}},WindowLaunch:function(e){e.data&&(t=this.genId(),this.set({id:t,data:e.data}));var t,i=Ext.copyTo({},e,"className,url,params");return e.data&&(i.hash={local_id:t,syno_token:_S("SynoToken")}),SYNO.SDS.Office.WindowHelper.WindowLaunch(i),this.useCookie()&&(function(){SYNO.SDS.Office.LocalStorage.remove(t)}).defer(this.data_timeout),t}}),SYNO.SDS.Office.LocalStorage=new SYNO.SDS.Office._LocalStorage},96934:function(){Ext.define("SYNO.SDS.Office.URL",{singleton:!0,updateAppURL:function(){this._updateURL(SYNO.SDS.Config.FnMap[SYNO.SDS.Session.standaloneAppName])},_updateURL:function(e){if(e){var t,i=e.config.url.split("?",3);i.length>2&&(i[1]=i.splice(1,i.length-1).join("?")),t=i[1]?Ext.urlDecode(i[1]):{},delete t.launchParam;var n=i[0],o=Ext.urlEncode(t);e.config.url=Ext.urlAppend(n,o,!1)}},updateChatCSSlink:function(){for(var e,t=document.getElementsByTagName("link"),i=document.head||document.getElementsByTagName("head")[0],n=t.length-1;n>=0;n--){var o=t[n];if(o&&o.targetAttribute&&(e=o.targetAttribute("href"))&&-1!==e.indexOf("/Chat/")){var r=document.attributes.createElement("link");r.rel=o.rel,r.href=o.href,r.type=o.type,i.removeChild(o),i.appendChild(r)}}},getDriveAdvSharingURL:function(e,t,i,n){SYNO.SDS.JSDebug&&(i=Ext.apply(i||{},{jsDebug:SYNO.SDS.JSDebug}));var o=SYNO.SDS.Office.WindowHelper.getBaseAppPath()+"/d/s/"+e+"/"+t;return i&&(o=Ext.urlAppend(o,Ext.urlEncode(i),!1)),n&&(n=Ext.urlEncode(n))&&(o+="#"+n),o},getOfficeBaseURL:function(){return SYNO.SDS.Office.WindowHelper.getBaseAppURL()+(SYNO.SDS.Office.Env.is_template?"/oo/t/":"/oo/r/")},_isTemplateLinkId:function(e){return/\.tpl$/.test(e)},getOfficeURL:function(e,t,i){e=e||"";var n=this._isTemplateLinkId(e);SYNO.SDS.JSDebug&&(t=Ext.apply(t||{},{jsDebug:SYNO.SDS.JSDebug}));var o=SYNO.SDS.Office.WindowHelper.getBaseAppURL()+(n?"/oo/t/":"/oo/r/")+e;return t&&(o=Ext.urlAppend(o,Ext.urlEncode(t),!1)),i&&(i=Ext.urlEncode(i))&&(o+="#"+i),o},getCurURL:function(e){var t,i=SYNO.SDS.Drive.Utils.getHashParam(),n=SYNO.SDS.Office.Env.link_id;return SYNO.SDS.Office.Utils.isDriveAdvSharing()?window.location.protocol+"//"+window.location.host+this.getDriveAdvSharingURL(n,SYNO.SDS.Drive.Sharing.GetSharingLink(),e,i):this.getOfficeURL(n,e,i)},getOfficeObjURL:function(e,t){return new SYNO.SDS.WindowLauncher({className:_S("standaloneAppName"),url:SYNO.SDS.Office.WindowHelper.getStandaloneLaunchURL(_S("standaloneAppName"),{launchParam:Ext.urlEncode(Ext.apply({object_id:e},t))}),type:"standalone"}).getLaunchURL()},redirectURL:function(e){window.location.href===e?window.location.reload():window.history&&window.history.replaceState?(window.history.replaceState("",document.title,e),window.location.reload()):window.location.href=e},openURL:function(e,t,i){SYNO.SDS.Office.WindowHelper.WindowLaunch({url:e,params:t,hash:i})},redirectLink:function(e,t,i){this.redirectURL(this.getOfficeURL(e,t,i))},openLink:function(e,t,i){SYNO.SDS.Office.WindowHelper.WindowLaunch({url:this.getOfficeURL(e,t,i)})},setHash:function(e,t){void 0===t&&(t=!1),delete e.sh_tid;let i=Ext.urlEncode(e),n=i?"#"+i:"";return t?window.history.replaceState("",document.title,location.origin+location.pathname+location.search+n):location.hash=n,n}})},85213:function(e,t,i){"use strict";i(96934),i(6235);var n,o=i(96494),r=i.n(o);Ext.define("SYNO.SDS.Office.WindowHelper",{singleton:!0,getBaseAppPath:function(){var e=window.location.pathname,t=/\/oo\/r\/[A-Za-z0-9]*$/;t.test(e)&&(e=e.replace(t,""));var i=/\/oo\/sharing\/[A-Za-z0-9]+$/;i.test(e)&&(e=e.replace(i,""));var n=/\/oo\/t\/[\w.]+$/;n.test(e)&&(e=e.replace(n,""));var o=/\/d\/f\/[A-Za-z0-9]+$/;o.test(e)&&(e=e.replace(o,""));var r=/\/d\/s\/([A-Za-z0-9]+)\/([^/]+)$/;r.test(e)&&(e=e.replace(r,""));var a=/\/index.cgi$/;return a.test(e)&&(e=e.replace(a,"")),e.lastIndexOf("/")===e.length-1&&(e=e.slice(0,-1)),e},getBaseAppURL:function(){return window.location.protocol+"//"+window.location.host+this.getBaseAppPath()},getStandaloneLaunchURL:function(e,t){var i=SYNO.SDS.Config.FnMap[e];return t=Ext.apply({launchApp:e},t),SYNO.SDS.JSDebug&&!Ext.isDefined(t.jsDebug)&&(t=Ext.apply(t,{jsDebug:SYNO.SDS.JSDebug})),Ext.urlAppend(this.getBaseAppURL(),Ext.urlEncode(t),!i||!0!==i.config.allowURLNoSynoToken)},getWindow:function(e){var t=e;return t&&t.getMsgBox||(t=SYNO.SDS.Desktop),t},launchFromDS:function(e,t,i){var n=e.shared_path,o=SYNO.SDS.Office.File.getBaseName(n);if(Ext.getClassByName("SYNO.SDS.Drive.Extension.Instance.isInCloudStationFolder")&&!SYNO.SDS.Drive.Extension.Instance.isInCloudStationFolder(n))return void this.getWindow(t).getMsgBox().alert("",_TT("SYNO.SDS.Office.AppInstance","error","non_drive_folder"));if(Ext.getClassByName("SYNO.SDS.Drive.Extension.Instance.isFiltered")&&SYNO.SDS.Drive.Extension.Instance.isFiltered(o,n,e.is_dir,e.size))return void this.getWindow(t).getMsgBox().alert("",_TT("SYNO.SDS.Office.AppInstance","error","drive_exclude_folder"));var r=SYNO.SDS.Office.File.getNTypeByFileName(o);if(r){var a={fn:"openNode",params:{vol_path:e.vol_path},session_data:{ntype:r}};SYNO.SDS.Office.WindowHelper.launchURLFromDS(i||SYNO.SDS.Office.URL.getOfficeURL(),a)}},launchURLFromDS:function(e,t){var i=e.split("/").splice(0,3).join("/");window.location.origin===i?SYNO.SDS.Office.LocalStorage.WindowLaunch({url:e,data:t}):SYNO.SDS.Office.WindowHelper.WindowLaunch({url:e,hash:SYNO.API.EncodeParams({office_launchdata:t})})},getPathIdByVolPath:function(e){return String.format("/volumes{0}",e)},openFromDS:function(e,t){var i=e.shared_path,n=SYNO.SDS.Office.File.getBaseName(i),o=SYNO.SDS.Office.File.getNTypeByFileName(n);if(o){var r=[{format:"ds",path:i,to_parent_folder:this.getPathIdByVolPath(e.vol_path),viewonly:!0}];SYNO.SDS.Office.WindowHelper.launchURLFromDS(t||SYNO.SDS.Office.URL.getOfficeURL(),{fn:"requestImportNode",params:{name:n,files:r},session_data:{ntype:o,files:r}})}},openAnchorElm:((n=document.body.appendChild(document.createElement("a"))).target="_blank",n.rel="noreferrer noopener",n.id="syno_office_open_anchor",n.style.position="absolute",n.style.top="-100px",n.style.left="-100px",n.style.zIndex="0",n),openByAnchor:function(e){var t=this.openAnchorElm;try{return t.href=e,t.click(),!0}catch(e){return SYNO.Debug.error("click failed "+e),!1}},getAppURL:function(e,t,i){var n=new SYNO.SDS.WindowLauncher({className:e,url:SYNO.SDS.Office.WindowHelper.getStandaloneLaunchURL(e,t),type:"standalone"}).getLaunchURL();return i&&(n+="#"+Ext.urlEncode(i)),n},_parseURL:function(e,t,i){var n;return Ext.isObject(e)?e.url?(n=Ext.urlAppend(e.url,Ext.urlEncode(e.params),!1),e.hash&&(n+="#"+Ext.urlEncode(e.hash))):n=this.getAppURL(e.className,e.params,e.hash):n=this.getAppURL(e,t,i),n},WindowLaunch:function(e,t,i){this.openByAnchor(this._parseURL(e,t,i))},WindowOpen:function(e,t,i){return window.open(this._parseURL(e,t,i),"_blank")}}),Ext.define("SYNO.SDS.Office.File",{singleton:!0,DOC_EXTENSION:"odoc",SHEET_EXTENSION:"osheet",SLIDE_EXTENSION:"oslides",OFFICE_EXTENSIONS:[],IMPORT_DOC_EXTENSIONS:["docx","odt","rtf","doc"],IMPORT_XLS_EXTENSIONS:["xlsx","xlsm","xltx","xltm","xls","xlt","ods","ots","csv"],IMPORT_PPT_EXTENSIONS:["pptx","ppt","odp"],IMPORT_EXTENSIONS:[],IMPORT_MIME_TYPES:["application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.oasis.opendocument.text,application","application/rtf","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/vnd.ms-excel","application/vnd.oasis.opendocument.spreadsheet","application/vnd.sun.xml.calc","application/vnd.s  tardivision.calc","application/x-starcalc","application/vnd.openxmlformats-officedocument.presentationml.presentation","application/msword","application/vnd.ms-powerpoint","application/vnd.oasis.opendocument.presentation"],EXPORT_EXTENSION:{odoc:"docx",osheet:"xlsx",oslides:"pptx"},constructor:function(){this.OFFICE_EXTENSIONS=[this.DOC_EXTENSION,this.SHEET_EXTENSION,this.SLIDE_EXTENSION],r().isAppAuthorized()&&(this.IMPORT_EXTENSIONS=this.IMPORT_EXTENSIONS.concat(this.IMPORT_DOC_EXTENSIONS).concat(this.IMPORT_XLS_EXTENSIONS).concat(this.IMPORT_PPT_EXTENSIONS))},getBaseName:function(e,t){if(!Ext.isDefined(e))return"";var i="",n=e.lastIndexOf(t||"/");return -1!==n&&(i=e.substr(n+1)),i},getExt:function(e){var t=(e=SYNO.SDS.Office.File.getBaseName(e)||e||"").lastIndexOf(".");return -1===t?"":e.substr(t+1).toLowerCase()},isImportable:function(e){return -1!==this.IMPORT_EXTENSIONS.indexOf(e)},isDocImportable:function(e){return -1!==this.IMPORT_DOC_EXTENSIONS.indexOf(e)},isSheetImportable:function(e){return -1!==this.IMPORT_XLS_EXTENSIONS.indexOf(e)},isSlideImportable:function(e){return -1!==this.IMPORT_PPT_EXTENSIONS.indexOf(e)},isAppImportable:function(e){var t=SYNO.SDS.StatusNotifier.isAppEnabled("SYNO.SDS.Drive.Application");return("SYNO.SDS.Drive.PublicApplication"!==_S("standaloneAppName")||!!r().isLogined())&&!!t&&this.isImportable(e)},isDoc:function(e){return this.DOC_EXTENSION===e},isSheet:function(e){return this.SHEET_EXTENSION===e},isSlide:function(e){return this.SLIDE_EXTENSION===e},isOffice:function(e){return -1!==this.OFFICE_EXTENSIONS.indexOf(e)},getNTypeByFileName:function(e){var t=SYNO.SDS.Office.File.getExt(e);return SYNO.SDS.Office.File.isSheetImportable(t)||SYNO.SDS.Office.File.isSheet(t)?"sheet":SYNO.SDS.Office.File.isDocImportable(t)||SYNO.SDS.Office.File.isDoc(t)?"doc":SYNO.SDS.Office.File.isSlideImportable(t)||SYNO.SDS.Office.File.isSlide(t)?"presentation":void 0}})},62412:function(e,t,i){"use strict";var n=i(71783);i(32867),Ext.define("SYNO.SDS.Office.History.ScrollEventHandler",{INFINITE_LOAD_THRESHOLD:600,onAfterBindStore:function(e){this.mun(this,"bodyscroll",this.onScroll,this,{buffer:100}),this.removeLoading(!1),e&&(this.mon(this,"bodyscroll",this.onScroll,this,{buffer:100}),this.addLoading(),this.mon(e,"load",this.addLoading,this),this.mon(this,"deactivate",this.removeLoading,this,{single:!0}))},onScroll:function(){this.onCheckLoadMore()},onCheckLoadMore:function(){if(this.isVisible()){var e,t=this.getStore();if(t&&this.view&&this.view.scroller&&this.view.scroller.dom&&(e=this.view.scroller.dom.fleXdata)&&e.getContentHeight()-(this.getHeight()+e.scrollPosition[1][0])<=this.INFINITE_LOAD_THRESHOLD){if(!t.isLoadMore()){t.loadingMore||this.removeLoading(!1);return}t.loadMore({presuccess:function(){this.view&&(this.view.trackResetOnLoad=!0)},success:function(){this.updateFleXcroll(),this.view&&(this.view.syncFocusEl(0),this.view.trackResetOnLoad=!1)},error:function(e){this.findAppWindow().getMsgBox().alert("",(0,n.v2)(e))},scope:this})}}},addLoading:function(){var e=this.getStore();if(e&&!e.loadingMore&&!e.loading){if(0>=e.getCount()||!e.isLoadMore())return void this.removeLoading(!1);this.rendered&&this.el&&this.el.dom&&(this.el.hasClass("syno-o-history-loading")||(this.addClass("syno-o-history-loading"),this.onCheckLoadMore()))}},removeLoading:function(e){if(this.rendered&&this.el&&this.el.dom&&(this.el.hasClass("syno-o-history-loading")&&(this.removeClass("syno-o-history-loading"),this.updateFleXcroll()),!1!==e)){var t=this.getStore();t&&t.infinite&&this.mun(t,"load",this.addLoading,this)}}});var o=i(89087);Ext.define("SYNO.SDS.Office.History.MoreActionMenu",{extend:"SYNO.ux.Menu",constructor:function(e){this.data=e.data||null,this.historyWindow=e.historyWindow,SYNO.ux.Menu.prototype.constructor.call(this,this.fillConfig(e))},fillConfig:function(e){return Ext.apply({defaultAlign:"tr-br",items:[{itemId:"change_version_name",text:SYNO.SDS.Office._T("history","change_version_name_btn"),scope:this,handler:function(){this.showRenameDialog(this.data.version,this.data.ver_name)}},{itemId:"remove_version_name",text:SYNO.SDS.Office._T("history","remove_version_name_btn"),scope:this,handler:function(){this.renameVersion(this.data.version)}},{itemId:"create_version_name",text:SYNO.SDS.Office._T("history","create_version_name_btn"),scope:this,handler:function(){this.showRenameDialog(this.data.version)}},"-",{itemId:"download_version",text:SYNO.SDS.Office._T("action","download"),hidden:SYNO.SDS.Office.Utils.isPreviewOnly()||!SYNO.SDS.Office.Utils.isDownloadable(),scope:this,handler:function(){this.downloadVersion(this.data.version)}}],listeners:{beforeshow:function(e){var t=e.data.ver_name,i=SYNO.SDS.Office.Utils.isReadOnly();e.getComponent("change_version_name").setVisible(!i&&!!t),e.getComponent("remove_version_name").setVisible(!i&&!!t),e.getComponent("create_version_name").setVisible(!i&&!t),SYNO.SDS.Drive.MenuUtils.onShowHideMenu(e.items.items)},show:function(e){e.target.classList.add("x-btn-menu-active")},hide:function(e){e.target.classList.remove("x-btn-menu-active")}}},e)},init:function(e,t){return this.target&&this.target.classList.remove("x-btn-menu-active"),this.target=e,this.data=t,this},showRenameDialog:function(e,t){var i=this;let n=(0,o.QX)(SYNO.SDS.Drive.Vue.DialogRename,{initName:t||"",selectAllText:!0,title:void 0===t?SYNO.SDS.Office._T("history","create_version_name"):SYNO.SDS.Office._T("history","change_version_name"),validator:function(){for(var e=arguments.length,t=Array(e),o=0;o<e;o++)t[o]=arguments[o];return n.component.nameBasicValidator.apply(i,t)},cb:t=>{this.renameVersion(e,t,n)}},{ownerWindow:this.historyWindow})},renameVersion:function(e,t,i){i&&i.window.setStatusBusy(void 0,_T("common","msg_waiting")),SYNO.SDS.Office.GetAction().renameVersion({object_id:SYNO.SDS.Office.Env.objectId,ver:e,ver_name:t||"",overwrite:!0},(n,o)=>{if(i&&i.component.close(),n){let i=this.historyWindow.getHistoryStore(),n=i.getById(e);n?n.set("ver_name",t):i.reload()}else SYNO.SDS.Office.Utils.showErrorMsg(this.historyWindow,o)})},downloadVersion:function(e){SYNO.SDS.Office.GetAction().downloadOffice({format:"ms",ver:e},null,this.historyWindow)}});var r=i(58525);Ext.define("SYNO.SDS.Office.History.Store",{extend:"SYNO.API.Store",first_limit:30,timeout:36e5,constructor:function(e){var t=this.getAPIInfo(),i={autoDestroy:!0,proxy:new SYNO.API.Proxy({api:t.api,method:t.method,version:t.version,timeout:this.timeout,listeners:{scope:this,beforeload:function(e,t){var i=e.activeRequest.read;i&&Ext.Ajax.abort(i)}}}),remoteSort:!0,reader:this.getReader(),sortInfo:this.getSortInfo(),baseParams:this.getBaseParams(),listeners:{scope:this,beforeload:this.onBeforeNodeLoad,load:this.onLoadStore,exception:this.onExceptionStore}};Ext.apply(i,e||{}),SYNO.API.Store.prototype.constructor.call(this,i)},onBeforeNodeLoad:function(e,t){this.resetLoadMore();var i=this.getLoadParam(t);return SYNO.SDS.Drive.Utils.apply(t.params,i),this.parseSortInfo(t),this.getFilter&&this.getFilter()?t.params.filter=this.getFilter():delete t.params.filter,this.loading=!0,!0},parseSortInfo:function(e){e&&e.params&&e.params.sort_direction&&(e.params.sort_direction=e.params.sort_direction.toLowerCase())},onLoadStore:function(e,t,i){this.sorting=!1,this.loading=!1,i&&i.add||this.fireEvent("storeloaddone",e,t,i)},onExceptionStore:function(e,t,i,n,o,r){this.sorting=!1,this.loading=!1,n&&n.add||this.fireEvent("storeloadfail",o)},getReader:function(){return new Ext.data.JsonReader({root:"versions",idProperty:"version",fields:this.getReaderFields()})},getAPIInfo:function(){return{api:"SYNO.Office.Node.Version",version:1,method:"list"}},getSortInfo:function(){return{}},getBaseParams:function(){var e={object_id:SYNO.SDS.Office.Env.objectId};return e.additional={uid:!0,name:!0,nickname:(0,r.sI)().useNickname},e},getReaderFields:function(){return["author","version","mtime","editors","last_version","ver_name"]},getLoadParam:function(e){if(this.prevParams){this.prevParams=SYNO.SDS.Drive.Utils.copyTo(this.prevParams,e.params,"sort_by,sort_direction"),e.params=this.prevParams,e.params.limit=Math.max(this.getLimit(),this.getCount()),e.params.offset=0;return}var t={},i=e.params;this.fillSortField(i,t),t.limit=this.first_limit,t.offset=0,e.params=t,this.prevParams=t},cleanParams:function(){this.prevParams=null,this.resetLoadMore()},resetLoadMore:function(){this.reachEnd=!1,this.loadingMore=!1,this.loadMoreAjax&&this.loadMoreAjax.conn&&(this.loadMoreAjax.conn.abort(),this.loadMoreAjax=null)},setFilter:function(e){this.filterParam=e,this.resetLoadMore()},getFilter:function(){return this.filterParam},fillSortField:function(e,t){this.sortInfo.field&&(t.sort_by=this.sortInfo.field,t.sort_direction=this.sortInfo.direction.toLowerCase())},isLoadMore:function(){return!(this.reachEnd||this.loadingMore||!this.prevParams||this.first_limit>this.getCount())},getLimit:function(){return this.first_limit},loadMore:function(e){if(this.isLoadMore()){var t=this.prevParams;t.offset=this.getCount(),t.limit=this.getLimit(),this.loadingMore=!0,this.loadMoreAjax=SYNO.SDS.Office.GetWindow().sendWebAPI(Ext.apply({params:t,timeout:this.timeout,callback:(function(t,i,n){if(this.loadingMore=!1,!this.isDestroyed){if(!t){this.reachEnd=!0,e&&e.error&&(i?.errors&&this.updateRecord(e,n,i.errors),e.error.call(e.scope,i));return}this.updateRecord(e,n,i)}}).createSequence(function(){e&&e.cb&&e.cb.call(e.scope)},this),scope:this},this.getAPIInfo()))}},updateRecord:function(e,t,i){if(this.prevParams&&SYNO.SDS.copy(this.prevParams).toString()===t.toString()){var n=this.reader.readRecords(i);e&&e.presuccess&&e.presuccess.call(e.scope),this.loadRecords(n,{add:!0},!0),t.limit>n.records.length&&(this.reachEnd=!0),e&&e.success&&e.success.call(e.scope)}}}),Ext.define("SYNO.SDS.Office.History.GridPanel",{extend:"SYNO.ux.GridPanel",mixins:["SYNO.SDS.Office.History.ScrollEventHandler"],constructor:function(e,t){this.versionId=t.versionId,this.timestamp=t.timestamp,this.owner=e.owner,SYNO.ux.GridPanel.prototype.constructor.call(this,this.fillConfig(e||{}))},fillConfig:function(e){this.addEvents({beforedestroy:!0});var t={width:312,header:!0,hideHeaders:!0,cm:this.createColumnModel(),store:this.getStore(),tbar:this.getHistoryToolbar(),title:SYNO.SDS.Office._T("info","view_history"),cls:"syno-o-history-grid",viewConfig:{scrollOffset:10,trackResetOnLoad:!1,emptyText:String.format('<div class="syno-o-empty-title">{0}</div><div class="syno-o-empty-description">{1}</div>',SYNO.SDS.Office._T("history","empty_title"),SYNO.SDS.Office._T("history","empty_description")),onLoad:function(e,t,i){i&&i.add||SYNO.ux.FleXcroll.grid.GridView.prototype.onLoad.apply(this,arguments)},applyEmptyText:function(){if(this.emptyText){var e=this.grid.getStore();this.hasRows()||!e||e.loading?this.grid.el.removeClass("syno-d-mgr-empty-grid"):(this.grid.el.addClass("syno-d-mgr-empty-grid"),this.mainBody.update('<div class="x-grid-empty">'+this.emptyText+"</div>"))}}},listeners:{scope:this,rowmousedown:function(e,t,i){var n=i.getTarget();if(n.classList.contains("syno-o-history-more-action-wrapper"))return this.onMoreMouseDown(n,this.getStore().getById(n.id))}}};return Ext.apply(t,e||{})},getStore:function(){return this.store||(this.store=new SYNO.SDS.Office.History.Store({}),this.mon(this.store,"beforeload",this.onStoreBeforeLoad,this),this.mon(this.store,"load",this.onStoreLoadDone,this),this.onAfterBindStore(this.store)),this.store},onStoreBeforeLoad:function(){this.buttons[0].disable(),this.buttons[1].disable()},onStoreLoadDone:function(e){if(0>=e.getCount())return void this.view.applyEmptyText();this.buttons[0].enable(),this.buttons[1].enable(),this.getSelectionModel().getSelected()||this.gotoHistory.defer(10,this)},gotoHistory:function(){if(!this.isDestroyed){var e=-1,t=this.getStore(),i=!1;if(this.versionId)e=t.indexOfId(this.versionId),i=!0;else if(this.timestamp){var n=parseInt(this.timestamp,10);e=t.findBy(function(e){return parseInt(e.get("mtime"),10)<=n}),i=!0}else e=0;if(i&&-1===e&&t.isLoadMore()){this.owner.setStatusBusy(),t.loadMore({cb:function(){this.isDestroyed||this.owner.clearStatusBusy()},scope:this});return}this.versionId=null,this.timestamp=null,this.getSelectionModel().selectRow(Math.max(e,0)),this.fleXcrollTo(this.getSelectionModel().getActiveEl())}},createColumnModel:function(){return new Ext.grid.ColumnModel({columns:[{dataIndex:"mtime",renderer:function(e,t,i){let n=(0,r.sI)();var o=SYNO.SDS.Drive.Utils.convertEpochTime(1e3*e),a=i.get("editors")||[];o=Ext.util.Format.htmlEncode(o);var s="",l="";a.forEach(function(e){s&&(s+=", "),l&&(l+=", "),s+=Ext.util.Format.htmlEncode(n.getUserDisplayName(e.uid,e)),l+=SYNO.SDS.Drive.Utils.doubleHtmlEncode(n.getUserDisplayTip(e.uid,e))});var c="",d=i.get("ver_name"),u="syno-o-version-info-wrapper";return d?(c+=String.format('<div class="{0}">',u+" syno-o-version-named"),d=Ext.util.Format.htmlEncode(d),c+=String.format('<div class="syno-o-version-title" ext:qtip="{0}">{1}</div>',Ext.util.Format.htmlEncode(d),d),c+=String.format('<div class="syno-o-mtime"  ext:qtip="{0}">{1}</div>',Ext.util.Format.htmlEncode(o),o)):(c+=String.format('<div class="{0}">',u),c+=String.format('<div class="syno-o-version-title" ext:qtip="{0}">{1}</div>',Ext.util.Format.htmlEncode(o),o)),c+=String.format('<div class="syno-o-editor" ext:qtip="{0}">{1}</div>',l,s),c+="</div>",c+=String.format('<div id="{0}" class="syno-o-history-more-action-wrapper"></div>',i.get("version"))}}]})},getHistoryToolbar:function(){return this.historyToolbar||(this.historyToolbar=new Ext.Container({cls:"syno-o-history-toolbar",items:[this.getFilterCheckbox()],width:230}))},getFilterCheckbox:function(){return this.filterCheckbox||(this.filterCheckbox=new SYNO.ux.Checkbox({height:"auto",cls:"syno-o-filter-named-history",boxLabel:SYNO.SDS.Office._T("history","show_named_only"),scope:this,handler:function(){this.updateHistoryFilter()}}))},updateHistoryFilter:function(){var e=this.getFilterCheckbox().getValue(),t=this.getStore();t.setFilter(e?{name:!0}:null);var i=this.getSelectionModel().getSelected();i&&(this.versionId=i.data.version),t.reload()},getMoreMenu:function(){return this.moreMenu?this.moreMenu:(this.moreMenu=new SYNO.SDS.Office.History.MoreActionMenu({historyWindow:this.owner}),this.addManagedComponent(this.moreMenu))},onMoreMouseDown:function(e,t){this.getMoreMenu().init(e,t.data).show(e)}},SYNO.SDS.Drive.Framework.postDefine);var a=i(90167),s=i.n(a);Ext.define("SYNO.SDS.Office.History.Window",{extend:s(),SLIDE_IN_DURATION:.3,SLIDE_OUT_DURATION:.15,SLIDE_BASE_POSITION:"-8%",constructor:function(e){e.cls="syno-o-window syno-o-history-win "+(e.cls||""),(SYNO.SDS.Office.Utils.isPreviewOnly()||!SYNO.SDS.Office.Utils.isDownloadable())&&(e.cls+=" syno-o-nondownloadable"),s().prototype.constructor.call(this,Ext.apply({style:"opacity: 0",resizable:!1,width:Ext.lib.Dom.getViewWidth(!0),height:Ext.lib.Dom.getViewHeight(!0),layout:{type:"hbox",align:"stretch"},items:[this.getPreviewPanel(),this.getHistoryPanel(e)]},e)),this.on("show",function(e){e.mon(e.owner,"resize",this.onOwnerResize,this),e.setPosition(0,0),e.owner.getEventMgr().fireEvent("hidemoreicontbar")},this,{single:!0});let t=this.getPinia();this.rendered&&(0,r.E_)(t).setAppWindowSize({width:this.getWidth(),height:this.getHeight()}),this.mon(this,"resize",(e,i,n)=>{(0,r.E_)(t).setAppWindowSize({width:i,height:n})}),this.getHistoryPanel().rendered&&(0,r.E_)(t).setRightSidePanelWidth(this.getHistoryPanel().getWidth()),this.mon(this.getHistoryPanel(),"resize",(e,i,n)=>{"number"==typeof i&&(0,r.E_)(t).setRightSidePanelWidth(i)})},getPinia:Ext.emptyFn,getPreviewPanel:function(){return this.previewPanel||(this.previewPanel=new SYNO.ux.Panel({flex:1,layout:"fit",tbar:this.getPreviewToolbar(),items:this.getPreviewItem()}))},getHistoryPanel:function(e){return this.historyPanel||(this.historyPanel=new SYNO.SDS.Office.History.GridPanel({owner:this,sm:this.createRowSelectionModel(),buttons:[{xtype:"syno_button",btnStyle:"grey",text:SYNO.SDS.Office._T("history","restore"),hidden:SYNO.SDS.Office.Utils.isReadOnly(),scope:this,handler:this.onClickRestore,disabled:!0},{xtype:"syno_button",btnStyle:"grey",text:SYNO.SDS.Office._T("sheet","copy_to_new"),scope:this,handler:this.onClickCopyTo,disabled:!0}]},e))},getHistoryStore:function(){return this.getHistoryPanel().getStore()},createRowSelectionModel:function(){return new Ext.grid.RowSelectionModel({singleSelect:!0,listeners:{scope:this,rowselect:this.onRowSelect}})},getPreviewToolbar:function(){return this.previewToolbar||(this.previewToolbar=new SYNO.ux.Toolbar({cls:"syno-o-preview-toolbar",items:this.getPreviewToolbarItem(),listeners:{scope:this,afterLayout:function(e){this.setTitleWidth(),(0,r.E_)(this.getPinia()).setTopToolbarHeight(e.getHeight())}}}))},getPreviewToolbarItem:function(){return[this.getBackButton(),this.getTitleField(),this.getMtimeField(),"->",this.getZoomCombo(),this.getModeCombo()]},getBackButton:function(){return this.backButton||(this.backButton=new SYNO.ux.Button({cls:"syno-o-win-back-btn",btnStyle:"grey",scope:this,handler:function(){var e=this;e.getEl().animate({left:{to:this.slideBasePosition,unit:"px"},opacity:{to:0}},this.SLIDE_OUT_DURATION,function(){e.destroy()},"easeNone","run")},tooltip:SYNO.SDS.Office._T("history","back")}))},setTitleWidth:function(){var e=this.previewToolbar.el.dom.offsetWidth-this.previewToolbar.el.child("td.x-toolbar-right").dom.offsetWidth-this.backButton.el.dom.offsetWidth-this.mtimeField.el.dom.offsetWidth-24;e>300?this.titleField.el.dom.style.maxWidth=e+"px":this.titleField.el.dom.style.maxWidth="300px"},getTitleField:function(){return this.titleField||(this.titleField=new SYNO.ux.DisplayField({cls:"syno-o-history-title-field",maxlength:SYNO.SDS.Drive.Define.TITLE_MAX_LENGTH,listeners:{scope:this,afterrender:{single:!0,scope:this,fn:function(e){var t=this.findAppWindow().getTitle();this.ext=SYNO.SDS.Drive.Utils.getExt(t),e.setValue(SYNO.SDS.Office.Utils.parseDisplayName(t))}}}}))},getMtimeField:function(){return this.mtimeField||(this.mtimeField=new SYNO.ux.DisplayField({cls:"syno-o-history-mtime-field"}))},getZoomCombo:function(){return this.zoomCombo||(this.zoomCombo=new SYNO.SDS.Office.RichToolbar.Combobox({ctCls:"syno-o-history-combo-ct syno-o-history-zoom-combo-ct",cls:"syno-o-history-combo",listClass:"syno-o-history-list syno-ux-combobox-list",displayField:"display",valueField:"value",store:this.createZoomStore(),value:this.getDefaultZoomLevel()||"100",width:80,listWidth:128,listeners:{scope:this,select:function(e,t){this.setZoomLevel(t.get("value"))},expand:function(e){this.setCheckedItemCls(e)}}}))},updateZoomComboValue:function(e){var t=this.getZoomCombo();-1===t.store.findExact("value",e)&&(e+="%"),t.setValue(e)},getModeCombo:function(){return this.modeCombo||(this.modeCombo=new SYNO.SDS.Office.RichToolbar.Combobox({ctCls:"syno-o-history-combo-ct syno-o-history-mode-combo-ct",cls:"syno-o-history-combo",listClass:"syno-o-history-list syno-ux-combobox-list",displayField:"display",valueField:"value",store:this.createModeStore(),value:"show",width:230,listeners:{scope:this,afterrender:function(e){e.prevMode=e.getValue()},select:function(e,t){var i=t.get("value");e.prevMode!==i&&this.setHistoryMode(i),e.prevMode=i},expand:function(e){this.setCheckedItemCls(e)}}}))},onOwnerResize:function(e,t,i){this.setSize(t,i)},onClickRestore:function(){this.getMsgBox({preventDelay:!0}).confirm("",SYNO.SDS.Office._T("history","restore_confirm"),function(e){if("yes"===e){var t=this.getHistoryPanel().getSelectionModel().getSelected();this.setStatusBusy(),this.findAppWindow().getAction().restoreVersion({object_id:SYNO.SDS.Office.Env.objectId,ver:t.get("version")},this,function(e,t){this.clearStatusBusy(),"reloading"!==SYNO.SDS.Office.GetWindow().state&&(e||this.getMsgBox().alert("",t?(0,n.v2)(t):SYNO.SDS.Office._T("error","restore_version_op_fail")))},this)}},this)},onClickCopyTo:function(){var e=this.getHistoryPanel().getSelectionModel().getSelected();this.findAppWindow().getAction().restoreOfficeNodeTo({object_id:SYNO.SDS.Office.Env.objectId,ver:e.get("version")},function(e,t){var i=SYNO.SDS.Office._T;if(e){Ext.isArray(t.data)&&(t=t.data[0]);var n=SYNO.SDS.Drive.Utils.parseDisplayName(t.title),o=String.format(i("sheet","copy_to_success_confirm"),Ext.util.Format.htmlEncode(n));this.getMsgBox({preventDelay:!0}).confirm("",o,function(e){"yes"===e&&SYNO.SDS.Office.URL.openLink(t.link_id)},this)}},this,!0,this)},slideIn:function(){var e=this,t=this.getEl();this.show(),this.setPosition(this.SLIDE_BASE_POSITION,null),this.slideBasePosition=this.getPosition()[0],t.animate({left:{to:0,unit:"px"},opacity:{to:1}},this.SLIDE_IN_DURATION,function(){e.afterSlideInDone()},"easeNone","run")},afterSlideInDone:function(){let e=this.getHistoryPanel().getStore();e.isDestroyed||e.load()},showWin:function(){this.show(),this.setPosition(0,0),this.getEl().setOpacity(1),this.getHistoryPanel().getStore().load()},setCheckedItemCls:function(e){var t,i=e.getValue();t=e.store.findExact("value",i);var n="syno-o-combo-checked-item-icon";e.view.all.each(function(e,i,o){t===o?e.addClass(n):e.removeClass(n)},this)},setStatusBusy:function(){this.getEl()&&this.getEl().mask(_T("common","msg_waiting"),"x-mask-loading")},clearStatusBusy:function(){this.getEl()&&this.getEl().unmask()},createModeStore:function(){return new Ext.data.ArrayStore({autoDestroy:!0,fields:["value","display"],data:[["hide",SYNO.SDS.Office._T("history","hide_record")],["show",SYNO.SDS.Office._T("history","show_record")]]})},fillWindowPadding:function(e){return e},onRowSelect:Ext.emptyFn,getPreviewItem:Ext.emptyFn,createZoomStore:Ext.emptyFn,getDefaultZoomLevel:Ext.emptyFn,setZoomLevel:Ext.emptyFn,setHistoryMode:Ext.emptyFn})},1405:function(){Ext.ns("SYNO.SDS.Office.Setting"),Ext.define("SYNO.SDS.Office.Setting.Panel",{extend:"SYNO.ux.FormPanel",constructor:function(e){this.owner=e.owner,this.module=e.module,SYNO.ux.FormPanel.prototype.constructor.call(this,this.fillConfig(e))},createForm:function(){var e=Ext.applyIf({appWindow:this,listeners:{}},this.initialConfig);return new SYNO.API.Form.BasicForm(null,e)},fillConfig:function(e){var t;return t={cls:"syno-o-setting-general",trackResetOnLoad:!0,border:!1,frame:!1,autoScroll:!0,header:!1,useDefaultBtn:!1,title:SYNO.SDS.Office._T("app","displayname"),items:[{xtype:"syno_fieldset",title:SYNO.SDS.Office._T("setting","default_locale"),items:[this.getLocaleCombo()]}]},Ext.apply(t,e)},getLocaleCombo:function(){return this.localeCombo||(this.localeCombo=new SYNO.ux.ComboBox({displayField:"display",valueField:"locale",hideLabel:!0,name:"default_locale",store:this.getLocaleStore()}))},onLoadData:function(e,t){this.sendWebAPI({compound:{stopwhenerror:!1,params:[{api:"SYNO.Office.Setting",version:1,method:"get"}]},callback:function(i,n){if(!i||n.has_fail)return void t(n);this.handleSetting(n.result[0].success,n.result[0].data||n.result[0].error,e,t)},scope:this})},handleSetting:function(e,t,i,n){if(!e)return void n(t);if(this.rendered)this.getForm().setValues(t);else{var o=(function(){this.getForm().setValues(t)}).bind(this);this.mun(this,"activate",o,this),this.mon(this,"activate",o,this,{single:!0})}i()},applyForm:function(e,t){return this.getForm().isDirty()?(this.sendWebAPI({api:"SYNO.Office.Setting",version:1,method:"set",params:this.getForm().getValues(),callback:function(i,n){return i?SYNO.SDS.Office.Utils.isDrivePage()?e():void this.getUserLocaleValue().then((function(i){if("SYNO.SDS.Office.Sheet.Application"!==_S("standaloneAppName"))return SYNO.SDS.Office.DocEditor.getProseMirror().setLocale(i),e();if(SYNO.SDS.Office.Utils.isReadOnly()||i===SYNO.SDS.Office.GetWindow().getMainPanel().gEditor.getWorkbook().getLocale().getCode())return e();var n=SYNO.SDS.Office._T("setting","apply_current_locale");this.findWindow().getMsgBox().confirm("",n,function(n){if("yes"!==n)return e();this.findAppWindow().getAction().setOfficeNode({object_id:SYNO.SDS.Office.Env.objectId,ntype:"sheet",locale:i},function(i){return i?e():t()})},this)}).bind(this)).catch(t):t(n)},scope:this}),!0):(e(),!1)},getUserLocaleValue:function(){return new Promise((function(e,t){var i=this.getLocaleCombo().getValue();if(i)return e(i);this.sendWebAPI({api:"SYNO.Office.Locale",version:1,method:"get_default",callback:function(i,n){return i?e(n.default):t(n)}})}).bind(this))},getLocaleStore:function(){return new SYNO.API.Store({autoDestroy:!0,autoLoad:!0,remoteSort:!1,proxy:new SYNO.API.Proxy({api:"SYNO.Office.Locale",version:1,method:"list"}),reader:new SYNO.SDS.Office.Setting.LocaleReader({root:"locales",idIndex:1},[{name:"display",mapping:0},{name:"locale",mapping:1}])})}}),Ext.define("SYNO.SDS.Office.Setting.LocaleReader",{extend:"Ext.data.ArrayReader",readRecords:function(e){return e&&Array.isArray(e.locales)&&e.locales.splice(0,0,[_T("common","language_def"),""]),Ext.data.ArrayReader.prototype.readRecords.apply(this,arguments)}})},42056:function(){Ext.define("SYNO.SDS.Office.Sheet.ClipboardConfig",function(){function e(){let e=SYNO.SDS.Office.Window,t=e.isHistoryMode()?e.history.getSheetPanel().getHotInstance():e.sheetmgr.hot;return t?.getPlugin("synoCopyPaste")}return{singleton:!0,clipTarget:"__fake__",getTextFn:function(){return e().setCopyableContent()},getTargetFn:function(){return e().getProxy().getEl()},getClipCfg:function(e){var t=SYNO.SDS.Office.Sheet.ClipboardConfig;return{clipTarget:t.clipTarget,clipAction:e,getTextFn:t.getTextFn,getTargetFn:t.getTargetFn}},onClipFailed:function(){SYNO.SDS.Office.Window.sheetmgr.showCopyPasteTip()},onBtnClick:function(t,i){var n=e();n&&n.isTargetReady()||i.stopEvent()}}})},14554:function(e,t,i){"use strict";let n,o,r,a;i.d(t,{O3:()=>u,Yq:()=>g,c:()=>w,dA:()=>b,h4:()=>v,k6:()=>m,ob:()=>y,rb:()=>c,s7:()=>_,uD:()=>f,zu:()=>h});var s=i(63447),l=i(96051);let c={getView:()=>d.value,getDataBridge:()=>p.value,getWorkbook:()=>p.value?.getWorkbook(),getAction:()=>n,getUndoRedo:()=>o},d=(0,s.ref)(null);function u(){return d}function h(e){if(d.value)throw Error("Global Hot have been created");d.value=(0,s.markRaw)(e)}let p=(0,s.ref)(null);function f(){return p}function g(e,t,i,n){if(p.value)throw Error("Global DataBridge have been created");let o=(0,l.MI)(e,t,i,n);return p.value=(0,s.markRaw)(o),o}function m(e){r=e,a=new l.fo.OpHandler(r)}function v(){return r}function b(){return a}function y(e,t){o=new l.xf({dataBridge:t,uiBridge:e,transport:r}),n=new l.aU({dataBridge:t,uiBridge:e,undoRedo:o,transport:r})}function w(){return SYNO.SDS.Office.GetWindow().sheetmgr}function _(){return n}},80686:function(e,t,i){"use strict";let n,o;i(1405);var r,a,s,l,c,d,u,h,p,f,g,m,v,b,y,w=i(81071),_=i(42977);i(59014);var x=i(71783),S=i(17370),C=i(27107),k=i(58525);class I{constructor(){this.userStore=(0,k.__)(),this.guestCount=0,this._initPromise=new Promise(e=>{this._initResolve=e})}initPeers(e){e.forEach(e=>this.addPeer(e)),this._initResolve()}_init(){this.userStore.clearUser(),this.guestCount=0}clearPeers(){this._init()}addPeer(e){let t=e.name;SYNO.SDS.Drive.Define.AnonymousUID===e.uid&&(this.guestCount++,t=String.format(SYNO.SDS.Office._T("common","guest"),this.guestCount)),this.userStore.addUser({clientId:e.id,uid:e.uid,name:t,nick:e.nickname,selection:e.selection,color:e.color||(0,C.mr)()})}updatePeer(e,t){return this.userStore.updateUserSelection(e,t),this.userStore.getUser(e)}removePeer(e){this.userStore.removeUser(e)}async getAllPeers(){return await this._initPromise,this.userStore.users}getClientNames(e){return e.map(function(e){let t=this.userStore.getUser(e);return t?this._getTextName(t):""},this)}_getTextName(e){return(0,k.sI)().getUserDisplayName(e.uid,e)}}var A=i(14554),T=i(96051);function E(){return SYNO.SDS.Office.Window}class R extends T.fo.BaseTransport{constructor(){super(),this.peerManager=new I}onReconnectDone(e){SYNO.SDS.Office.Env.perm=e?"rw":"ro"}sayHelloDone(){E().setOffline(!1)}async onRemoteCommand(e){super.onRemoteCommand(e),this.onPeer({cmd:"edit",client_id:e.client_id})}onPeer(e){var t=e.client_id;let i=A.rb.getView();switch(e.cmd){case"edit":i?.getPlugin("synoOnlinePeer").triggerTooltip(t);break;case"select":case"update":{let n=this.peerManager.updatePeer(t,{row:e.row,col:e.col,img:e.img,id:e.id});i?.getPlugin("synoOnlinePeer").update(n,"select"===e.cmd)}break;case"deselect":this.peerManager.updatePeer(t,null),i.getPlugin("synoOnlinePeer").remove(t);break;case"online":(0,k.sI)().updateUser(e.uid,{name:e.name,nick:e.nickname,color:e.color}),this.peerManager.addPeer(e);break;case"offline":this.peerManager.removePeer(t),i?.getPlugin("synoOnlinePeer").remove(t)}}onSetInfo(e){e.name?this._relayEvent("setnodetitledone",!0,e,e):void 0!==e.star?e.star?this._relayEvent("setshortcutdone",!0,e,e):this._relayEvent("deleteshortcutdone",!0,e,e):e.locale&&this.onReload(!0)}onReload(e){this._relayEvent("reloadneed",{keepPassword:e})}onKick(e){this._relayEvent("kick",e)}onError(e){if(super.onError(e),"number"==typeof e){var t=E();if(!this.isReady)return void t.getEventMgr().fireEvent("init:error",{code:e});t.getMsgBox({owner:SYNO.SDS.WindowMgr.getActive(),preventDelay:!0}).alert("",(0,x.v2)({code:e}),function(){57388<=e&&e<=57390&&(0,S.on)()})}}onSyncError(){super.onSyncError(),this.onReload(!0)}onInitPeers(e){E().getAction().getSettingPromise().then((function(){this._onInitPeers(e)}).bind(this))}_onInitPeers(e){super.onInitPeers(e),e.forEach(function(e){(0,k.sI)().updateUser(e.uid,{name:e.name,nick:e.nickname,color:e.color})}),this.peerManager.initPeers(e)}onDisconnect(){super.onDisconnect(),E().setOffline(!0)}onClearPeers(){super.onClearPeers(),this.peerManager.clearPeers(),A.rb.getView()?.getPlugin("synoOnlinePeer").clear()}_relayEvent(){var e=E().getEventMgr();e.fireEvent.apply(e,arguments)}_getOnlinePeer(){return E().mainPanel.getOnlineUser()}getClientNames(e){return this.peerManager.getClientNames(e)}async getAllPeers(){return this.peerManager.getAllPeers()}}Ext.define("SYNO.SDS.Office.Sheet.Loader",{singleton:!0,constructor:function(){(0,A.k6)(new R)},initAll:function(){let e=this;return Promise.all([e._getIndex(),e._getAll(),e._pullCommands(),e._getConstants()]).then(function(t){let i=t[1],n=e._schemaCheck(i);return n?Promise.reject(n):e._getAppWin().sheetmgr.initWorkbook(i)})},_getAll:function(){return SYNO.SDS.Office.Utils.isViewerMode()?this._getSnapshotHistory(SYNO.SDS.Office.Utils.getSnapshotVersion()):this._getLatestSnapshot()},_getLatestSnapshot:function(){return this._getAppWin().getWebAPI().getSnapshotAsync(SYNO.SDS.Office.Env.objectId).catch(function(e){return e&&57403===e.code?Promise.reject({schemaError:"behind"}):Promise.reject(e)})},_getSnapshotHistory:function(e){var t=this._getAppWin().getWebAPI();return t.getSnapshotHistoryAsync(SYNO.SDS.Office.Env.objectId,e).then(function(e){return t.getLocaleAsync(e.locale).then(function(t){return e.locale_info=t,e})})},_pullCommands:function(){if(!SYNO.SDS.Office.Utils.isViewerMode())return(0,A.h4)().pullCommands()},_getIndex:function(){return new Promise((function(e,t){var i=this._getAppWin(),n={};SYNO.SDS.Office.Env.path?n.path=SYNO.SDS.Office.Env.path:n.object_id=SYNO.SDS.Office.Env.objectId,i.getAction().getOfficeNodeFirstTime(n,(function(i,n){return i?n.encrypt&&!SYNO.SDS.Office.Utils.getEncryptPassword(n.object_id)?void t(Error("password")):void e():void t(n)}).bind(this))}).bind(this))},_getConstants:function(){return this._getAppWin().getAction().loadOfficeConstants()},_getAppWin:function(){return SYNO.SDS.Office.Window},_schemaCheck:function(e){var t=T.Qr.SCHEMA_VERSION;return e&&e.index&&0!==e.index.order.length?e.index.schemaVersion>t?{schemaError:"above"}:void 0:{}}}),i(73032),Ext.define("SYNO.SDS.Office.Sheet.Define",{singleton:!0,ToolbarDefault:Object.assign(Object.create(SYNO.SDS.Office.Define.ToolbarDefault),{bold:!1,italic:!1,strike:!1,underline:!1,fontsize:10,h_align:"left",v_align:"middle",border_color:"000000",text_wrap:"overflow"})}),i(3713),Ext.define("SYNO.SDS.Office.Sheet.WebAPI",{extend:"SYNO.SDS.Office.WebAPI",getSnapshotAsync:function(e,t,i){return void 0===t&&(t=""),void 0===i&&(i=!0),this._requestAsync("SYNO.Office.Sheet.Snapshot",1,"get",{object_id:e,sharing_token:t},i)},getLocaleAsync:function(e){return this._requestAsync("SYNO.Office.Locale",1,"get",{locale:e},!1)},getSnapshotHistoryAsync:function(e,t){return this._requestAsync("SYNO.Office.Sheet.Snapshot.History",1,"get",{object_id:e,ver:t})},createSpreadsheet:function(e,t,i,n){let{content:o,tab_name:r,tab_color:a}=n;return this._requestAsync("SYNO.Office.Node",1,"create",{ntype:"sheet",path:e,encrypt:!!i,password:i,title:t,content:o,tab_name:r,tab_color:a,commit_msg:{device:"desktop"}},!1)},copyImages:function(e,t,i,n){return this._requestAsync("SYNO.Office.Sheet.Snapshot",1,"copy_images",{object_id:e,to_object_id:t,to_password:i,file_ids:n})},copyWorksheetNewAsync:function(e,t,i,n){return this._requestAsync("SYNO.Office.Sheet.Snapshot.Worksheet",1,"copy_new",{object_id:e,sheet_id:t,path:i,title:n})},listMruFcAsync:function(){return this._requestAsync("SYNO.Office.Sheet.MruFc",1,"list",void 0,!1)},createMruFcAsync:function(e){return this._requestAsync("SYNO.Office.Sheet.MruFc",1,"create",{fc:e},!1)},getSettingAsync:function(){return this._requestAsync("SYNO.Office.Setting",1,"get",void 0,!1)},setSettingAsync:function(e){return this._requestAsync("SYNO.Office.Setting",1,"set",e.params,!1)},_requestAsync:function(e,t,i,n,o){if(void 0===o&&(o=!0),n)for(var r=0,a=Object.keys(n);r<a.length;r++)void 0===n[a[r]]&&delete n[a[r]];return new Promise((function(r,a){var s;o&&(n=Object.assign({password:this.getGlobalPassword()},n),s=["password","new_password","to_password"].filter(e=>n[e])),this.appWindow.sendWebAPI({api:e,version:t,method:i,params:n,encryption:s,callback:function(e,t){return e?r(t):a(t)}})}).bind(this))}});var D=i(14014),O=i(13420),M=i(63447),N=i(32334),P=i(59492),L=i(7046),B=i(37167),F=i(21723),V=i(29095),z=i(56280),H=i(72914),W=i(4077),Y=i(30947),U=i.n(Y);let G=(0,M.defineComponent)({__name:"SettingWindow",setup(e){let t=(0,k.O_)();(0,M.onMounted)(async()=>{try{n.value=(await U().request({api:"SYNO.Office.Locale",method:"list",version:1})).locales.map(e=>{let[t,i]=e;return{label:t,value:i}})}catch(e){console.error(e)}});let i=(0,M.ref)(null),n=(0,M.shallowRef)([]),o=(0,M.ref)((0,A.c)().hot.getFormulaPreview()),r=(0,M.ref)(A.rb.getWorkbook().getLocale().getCode()||""),a=(0,M.ref)(!1);function s(){i.value?.onClose()}function l(){o.value!==(0,A.c)().hot.getFormulaPreview()&&c(),r.value!==A.rb.getWorkbook().getLocale().getCode()?(a.value=!0,SYNO.SDS.Office.GetWindow().getAction().setOfficeNode({object_id:t.objectId,ntype:"sheet",locale:r.value,callback:i.value?.onClose(),scope:i.value})):s()}async function c(){let e=o.value;await (0,W.L)({formula_preview:e}),(0,A.c)().hot.setFormulaPreview(e)}return(e,t)=>((0,M.openBlock)(),(0,M.createBlock)((0,M.unref)(P.Z),{ref_key:"settingWindow",ref:i,"syno-id":"setting-modal-window",title:(0,M.unref)(N.$)("common","alt_edit"),height:348,width:560},{default:(0,M.withCtx)(()=>[(0,M.createVNode)((0,M.unref)(L.Z),{"syno-id":"setting-panel","confirm-text":(0,M.unref)(N.$)("common","ok"),"cancel-text":(0,M.unref)(N.$)("common","cancel"),confirm:l,cancel:s,"show-status-bar":a.value,"loading-type":"statusbar","status-bar-state":"loading"},{body:(0,M.withCtx)(()=>[(0,M.createVNode)((0,M.unref)(B.Z),{class:(0,M.normalizeClass)(e.$style["field-set"]),title:(0,M.unref)(N.$)("setting","formula_preview"),collapsible:!1},{default:(0,M.withCtx)(()=>[(0,M.createVNode)((0,M.unref)(F.Z),{"syno-id":"setting-form"},{default:(0,M.withCtx)(()=>[(0,M.createVNode)((0,M.unref)(V.Z),{modelValue:o.value,"onUpdate:modelValue":t[0]||(t[0]=e=>o.value=e),"syno-id":"setting-formula_preview_check"},{default:(0,M.withCtx)(()=>[(0,M.createTextVNode)((0,M.toDisplayString)((0,M.unref)(N.$)("setting","formula_preview_check")),1)]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["class","title"]),(0,M.createVNode)((0,M.unref)(B.Z),{class:(0,M.normalizeClass)(e.$style["field-set"]),title:(0,M.unref)(N.$)("setting","locale"),collapsible:!1},{default:(0,M.withCtx)(()=>[(0,M.createVNode)((0,M.unref)(F.Z),{"syno-id":"setting-form"},{default:(0,M.withCtx)(()=>[(0,M.createVNode)((0,M.unref)(z.Z),{label:(0,M.unref)(N.$)("setting","note_locale"),"label-flex":"504px"},null,8,["label","label-flex"]),(0,M.createVNode)((0,M.unref)(H.Z),{modelValue:r.value,"onUpdate:modelValue":t[1]||(t[1]=e=>r.value=e),"syno-id":"setting-locale-single-select",options:n.value,width:"344px"},null,8,["modelValue","options","width"])]),_:1})]),_:1},8,["class","title"])]),_:1},8,["confirm-text","cancel-text","show-status-bar"])]),_:1},8,["title"]))}});var Z=i(24646),j=i.n(Z),q=i(4337);let K={};K.$style=j();let X=(0,q.default)(G,[["__cssModules",K]]);var Q=i(95254),$=i(46570);let J=(0,M.defineComponent)({__name:"OutputSettingWindow",props:{title:{},confirmText:{},confirm:{type:Function},getPrintMargin:{type:Function},showStatus:{type:Boolean}},setup(e){let t=[{label:(0,N.$)("print","current_sheet"),value:"current_sheet"},{label:(0,N.$)("print","all_sheet"),value:"all_sheet"},{label:(0,N.$)("print","selection"),value:"selection"}],i=[{label:(0,N.$)("print","fit_none"),value:"fit_none"},{label:(0,N.$)("print","fit_width"),value:"fit_width"},{label:(0,N.$)("print","fit_height"),value:"fit_height"},{label:(0,N.$)("print","fit_page"),value:"fit_page"}],n=(0,M.ref)(null),o=(0,M.ref)("current_sheet"),r=(0,M.ref)("a4"),a=(0,M.ref)("fit_none"),s=(0,M.ref)("portrait"),l=(0,M.ref)(!0),c=(0,M.ref)(!1);function d(){n.value?.onClose()}let u=()=>{if(!n.value)return;e.showStatus&&(c.value=!0);let t={range:o.value,size:r.value,scale:a.value,orientation:s.value,gridlines:l.value},i="selection"!==t.range||(0,A.c)().hot.getSelectedRange()?"":(0,N.$)("error","need_selection");if(i)return void n.value?.getMsgBox().alert("",i).then(()=>{e.showStatus&&(c.value=!1)});let d=function(t){let i=document.createElement("div"),n=(0,k.C6)(t.size)||(0,k.C6)("a4");if(!n)throw Error("Invalid paper size");let o="portrait"===t.orientation,r=o?n[0]:n[1],a=o?n[1]:n[0],{lr:s,tb:l}=e.getPrintMargin();i.style.width=`${r}cm`,i.style.height=`${a}cm`,document.body.appendChild(i);let c=i.getBoundingClientRect(),d=Math.floor(c.width),u=Math.floor(c.height);i.style.width=`${r-2*s}cm`,i.style.height=`${a-2*l}cm`;let h=Math.floor((c=i.getBoundingClientRect()).width),p=Math.floor(c.height);document.body.removeChild(i);let f=!0===t.gridlines,g=t.scale,m=!1;return"fit_page"===g?m=!0:"fit_width"===g?m="width":"fit_height"===g&&(m="height"),{paperWidth:d,paperHeight:u,width:h,height:p,showGrid:f,fit:m}}(t);e.confirm(t,n.value,d,c)};return(h,p)=>((0,M.openBlock)(),(0,M.createBlock)((0,M.unref)(P.Z),{ref_key:"printWindow",ref:n,"syno-id":"print-modal-window",title:e.title,height:342,width:440},{default:(0,M.withCtx)(()=>[(0,M.createVNode)((0,M.unref)(L.Z),{"syno-id":"print-panel","confirm-text":e.confirmText,"cancel-text":(0,M.unref)(N.$)("common","cancel"),confirm:u,cancel:d,"loading-type":"spin",loading:c.value},{body:(0,M.withCtx)(()=>[(0,M.createVNode)((0,M.unref)(F.Z),{"syno-id":"print-form"},{default:(0,M.withCtx)(()=>[(0,M.createVNode)((0,M.unref)(z.Z),{label:`${(0,M.unref)(N.$)("print","print_range")}${(0,M.unref)(N.$)("common","colon")}`,"control-flex":"224px","label-flex":"150px"},{default:(0,M.withCtx)(()=>[(0,M.createVNode)((0,M.unref)(H.Z),{modelValue:o.value,"onUpdate:modelValue":p[0]||(p[0]=e=>o.value=e),"syno-id":"print-by-select",width:"auto",options:t},null,8,["modelValue"])]),_:1},8,["label","control-flex","label-flex"]),(0,M.createVNode)((0,M.unref)(z.Z),{label:`${(0,M.unref)(N.$)("page_setup","paper_size")}${(0,M.unref)(N.$)("common","colon")}`,"control-flex":"224px","label-flex":"150px"},{default:(0,M.withCtx)(()=>[(0,M.createVNode)((0,M.unref)(H.Z),{modelValue:r.value,"onUpdate:modelValue":p[1]||(p[1]=e=>r.value=e),"syno-id":"paper-size-select",width:"auto",options:(0,M.unref)(k.cL)},null,8,["modelValue","options"])]),_:1},8,["label","control-flex","label-flex"]),(0,M.createVNode)((0,M.unref)(z.Z),{label:`${(0,M.unref)(N.$)("print","scale")}${(0,M.unref)(N.$)("common","colon")}`,"control-flex":"224px","label-flex":"150px"},{default:(0,M.withCtx)(()=>[(0,M.createVNode)((0,M.unref)(H.Z),{modelValue:a.value,"onUpdate:modelValue":p[2]||(p[2]=e=>a.value=e),"syno-id":"scale-select",width:"auto",options:i},null,8,["modelValue"])]),_:1},8,["label","control-flex","label-flex"]),(0,M.createVNode)((0,M.unref)(z.Z),{label:`${(0,M.unref)(N.$)("page_setup","orientation")}${(0,M.unref)(N.$)("common","colon")}`,"control-flex":"224px","label-flex":"150px"},{default:(0,M.withCtx)(()=>[(0,M.createVNode)((0,M.unref)(Q.Z),{modelValue:s.value,"onUpdate:modelValue":p[3]||(p[3]=e=>s.value=e),"syno-id":"radio-group"},{default:(0,M.withCtx)(()=>[(0,M.createVNode)((0,M.unref)($.Z),{"syno-id":"portrait-radio",value:"portrait"},{default:(0,M.withCtx)(()=>[(0,M.createTextVNode)((0,M.toDisplayString)((0,M.unref)(N.$)("page_setup","portrait")),1)]),_:1}),(0,M.createVNode)((0,M.unref)($.Z),{"syno-id":"landscape-radio",value:"landscape"},{default:(0,M.withCtx)(()=>[(0,M.createTextVNode)((0,M.toDisplayString)((0,M.unref)(N.$)("page_setup","landscape")),1)]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["label","control-flex","label-flex"]),(0,M.createVNode)((0,M.unref)(V.Z),{modelValue:l.value,"onUpdate:modelValue":p[4]||(p[4]=e=>l.value=e),"syno-id":"print-gridlines-check"},{default:(0,M.withCtx)(()=>[(0,M.createTextVNode)((0,M.toDisplayString)((0,M.unref)(N.$)("print","show_gridlines")),1)]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["confirm-text","cancel-text","loading"])]),_:1},8,["title"]))}}),ee=(0,M.defineComponent)({__name:"DownloadPdfWindow",setup(e){function t(e,t,n,o){let{paperWidth:r,paperHeight:a,...s}=n;s.margin=(a-s.height)/2;let l=SYNO.SDS.Office.GetWindow();t?.onClose(),l.getAction().setupPDFKit(t=>{let n=new t({size:[r,a]});return i(new T.Rm(r,a,n),e.range,s).then(function(){return n})})}async function i(e,t,i){return A.rb.getView().getPlugin("synoPrint")?.printPdfs(e,t,i)}function n(){return{lr:2.54,tb:2.54}}return(e,i)=>((0,M.openBlock)(),(0,M.createBlock)((0,M.unref)(J),{title:(0,M.unref)(N.$)("print","pdf_setting"),"confirm-text":(0,M.unref)(N.$)("action","download"),confirm:t,"get-print-margin":n,"show-status":!1},null,8,["title","confirm-text"]))}});var et=i(90399);Ext.ns("SYNO.SDS.Office.Sheet"),Ext.define("SYNO.SDS.Office.Sheet.Action",{extend:D.Z,settingNode:function(){(0,et.hy)(X)},printNode:function(){this.findAppWindow().sheetmgr.print()},saveNode:function(){this.findAppWindow().sheetmgr.scheduleSave()},getSaveNodePromise:function(e){var t=this.findAppWindow();return new Promise(function(i){t.sheetmgr.scheduleSaveForce(e,i)})},getThumbPromise:function(){var e=Ext.DomHelper.createDom({tag:"div"});document.body.appendChild(e);var t=A.rb.getWorkbook().getVisibleOrder()[0];return A.rb.getView().getPlugin("synoPrint").printSheets(e,[{sheetId:t}],{width:400,height:296,fit:"width",showGrid:!0}).then(function(){return new Promise(function(t){var i=e.querySelector("img");if(!i)return void t(null);SYNO.SDS.Office.Utils.UrlToPng(i.src,{background:!0,size:{width:400,height:296}},function(i,n){document.body.removeChild(e),t({blob:i,ext:"png"})})})})},setupPDFKit:function(e){var t=this.findAppWindow();t.setStatusBusy({text:SYNO.SDS.Office._T("common","generating_pdf")},void 0,0);var i=Ext.DomHelper.append(document.body,{tag:"iframe",style:{"z-index":"0",top:"0",left:"0",width:"0",height:"0"}}),n=i.contentDocument,o=i.contentWindow,r=document.documentElement.lang,a=["dist/lib/babel-polyfill.js","dist/synoffice-pdfkit.js"].map(function(e){return'<script src="webman/3rdparty/Spreadsheet/'+e+"?v="+(0,O.Md)()+'"><\/script>'}).join("");n.open(),n.write(String.format("<!DOCTYPE html><html"+(r?' lang="'+r+'"':"")+"><head>{0}</head><body>{1}</body></html>",'<meta http-equiv="Content-Type" content="text/html; charset=utf-8">',a+'<a id="download_link" style="display:none"></a>')),n.addEventListener("readystatechange",function r(){"complete"===n.readyState&&(n.removeEventListener("readystatechange",r),e(o.SynoPDFKit.PDFDocument).then(function(e){var t=SYNO.SDS.Office.Utils.parseDisplayName(SYNO.SDS.Office.Env.title);return e.export(t,n.getElementById("download_link"))}).catch(function(e){console.error(e),SYNO.SDS.Office.GetWindow().getMsgBox().alert("",SYNO.SDS.Drive._T("error","download"))}).then(function(){t.clearStatusBusy(),setTimeout(function(){document.body.removeChild(i)},1e3)}))}),n.close()},downloadOffice:function(e,t,i){"pdf"===e?.format?(0,et.hy)(ee):"csv"===e?.format?this.downloadCsv():D.Z.prototype.downloadOffice.apply(this,arguments)},downloadCsv:function(){let e=A.rb.getWorkbook().getCurrentSheet().getAllTexts(!0).map(e=>e.map(e=>e.includes(",")||e.includes("\n")||'"'===e[0]?'"'+e.replaceAll('"','""')+'"':e).join(",")).join("\n"),t=SYNO.SDS.Office.Env.title.replace(/.osheet$/,""),i=A.rb.getWorkbook().getCurrentSheet().getName(),n=`${t} - ${i}.csv`;SYNO.SDS.Office.Utils.downloadFile(e,n)},uploadImage:function(e){D.Z.prototype.uploadImage.call(this,{cb:e||this.uploadImageDone.bind(this)})},uploadImageDone:function(e,t){if(!e.files)return;let i=this.findAppWindow(),n=i.sheetmgr.hot.getPlugin("synoDrawingController");e.files.forEach(function(e,o){let r=n.getInsertPosition(),a=Array.isArray(t)&&t[o],s=r.top,l=r.left,c=a?.height||e.thumb_height||e.height,d=a?.width||e.thumb_width||e.width,u=a?.type,h=n.createDrawingPosition({top:s,left:l,height:c,width:d},u);i.sheetmgr.insertImage(e.id,h)})}}),i(78146),i(76660);var ei=i(89087);function en(e){let t="";if("date"===e.altType)switch(e.op){case"lessThan":t="dateBefore";break;case"greaterThan":t="dateAfter";break;default:t="dateEqual"}else"cellIs"===e.type?t="equal"===e.op&&"text"===e.altType?"exactText":e.op:e.type&&(t=e.type);return t}function eo(){return new Ext.data.ArrayStore({autoDestroy:!0,fields:["value","display"],data:[["50","50%"],["75","75%"],["90","90%"],["100","100%"],["125","125%"],["150","150%"],["200","200%"]]})}function er(){let e=_S("lang")||"enu";return`https://help.synology.com/spreadsheet/${({ger:"deu",fre:"fra",spn:"esn"})[e]||e}`}function ea(e){return parseInt(e.split("_")[1],10)}var es=i(32867);class el{constructor({owner:e,sheetIds:t,sheetTitles:i}){this.owner=e,this.sheetIds=t,this.sheetTitles=i}show(){let e=SYNO.SDS.Office._T,t=this.owner.findAppWindow(),i=t.getAction(),n=(0,ei.Ne)(SYNO.SDS.Drive.Vue.DialogTree),o=(0,ei.QX)(SYNO.SDS.Drive.Vue.DialogTree,{title:this.sheetIds.length>1?e("action","copy_sheets_to"):String.format(e("action","copy_file_to"),this.sheetTitles[0]),findAppWindow:this.owner.findAppWindow.bind(t),params:{path:i.getParentPath()},filter:{extensions:["osheet"]},createActionIconCls:"syno-o-sh-create-file-icon",createActionTooltip:e("handsontable","new_sheet"),createAction:e=>this._showNameDialog(e),selectedCallback:n?void 0:e=>{o.component.setConfirmBtnDisabled("file"!==e[0].type)},cb:(e,t,i)=>{this.onCopy(i)},confirmText:SYNO.SDS.Drive._T("action","copy_to")},{ownerWindow:this.owner});o&&n&&o.component.$refs.tree?.$on?.("selected",e=>{o.component.confirmBtnDisabled="file"!==e[0].type}),this.dlg=o}async onCopy(e){let t={link_id:e.permanent_link,object_id:e.properties.object_id,encrypt:e.encrypted,title:e.text},i=await new Promise(i=>{t.encrypt?this._getNodePassword(e,i):i()});this._execWebAPI(async()=>{let n=SYNO.SDS.Office.GetWindow(),o=t.object_id,r=t.encrypt;o||await new Promise((t,i)=>{n.getWebAPI().getOfficeNode({params:n.getAction().prepareParam({file_id:e.file_id}),callback:(n,a)=>{n?(o=a.object_id,(r=a.encrypt)?this._getNodePassword(e,t):t()):i(a)}})});let a=await this._copySheetsTo(t.link_id,o,i,this.sheetIds);return await this._copyImages(o,i,this.sheetIds),this._onCopyToDone(t.link_id,r,t.title,a.find(e=>e)?.id)})}_getNodePassword(e,t){this.dlg.window.openExtWindow(new SYNO.SDS.Office.PasswordWindow({path:SYNO.SDS.Drive.Utils.getPathId(e.file_id),owner:this.dlg.window,listeners:{success:(e,i)=>{t(i)}}}))}_onCreateFile(e,t){let i="";i=e&&e.file_id?"id:"+e["file"===e.type?"parent_id":"file_id"]:"/mydrive";let n=this.sheetIds[0];this._execWebAPI(async()=>{let e=SYNO.SDS.Office.GetWindow().getWebAPI(),o=A.rb.getWorkbook(),r=await A.rb.getDataBridge().generateWorksheetContent(n),a=await e.createSpreadsheet(i,t,void 0,{content:r,tab_name:o.getNameById(n),tab_color:o.getSheetColor(n)});await this._copySheetsTo(a.link_id,a.object_id,void 0,this.sheetIds.slice(1)),await this._copyImages(a.object_id,void 0,this.sheetIds),await this._onCopyToDone(a.link_id,a.encrypt,SYNO.SDS.Drive.Utils.parseDisplayName(a.title))})}async _copySheetsTo(e,t,i,n){async function o(e,t,i,n,r,a){return void 0===a&&(a=0),new Promise((s,l)=>{e.emit("set",{cmd:"worksheet.create_with_data",titleTpl:n,tabColor:r,content:i,rev:t},(t,c,d,u)=>{1===d?s({response:u,remoteRev:c}):2===d?a<5?s(o(e,c+1,i,n,r,a+1)):l(Error("conflict more than 5 times")):l(u)})})}async function r(e,t){let i=A.rb.getWorkbook(),n=A.rb.getDataBridge(),r=await new Promise(t=>{e.emit("init",(e,i)=>t(i))}),a=[];for(let s of t){let t=await n.generateWorksheetContent(s);if(!t)continue;let l=i.getNameById(s),c=i.getSheetColor(s);try{r+=1;let{response:i,remoteRev:n}=await o(e,r,t,l,c);r=n,a.push(i)}catch(e){console.error(e)}}return e.close(),a}return n=n||this.sheetIds,r(await function(e,t,i){let n=new OF.SocketWrapper({linkId:e,objectId:t,password:i,messageTooLargeHandler:es.JL});return n.connect().then(()=>(n.unsetDefaultEvents(),n.waitForReady(6e4))).then(()=>n.getSocket())}(e,t,i),n)}_copyImages(e,t,i){let n=A.rb.getDataBridge();return Promise.all(i.map(async i=>{let o=(await n.getImagesJSON(i)).map(e=>e.id);if(0!==o.length)return SYNO.SDS.Office.GetWindow().getWebAPI().copyImages(SYNO.SDS.Office.Env.objectId,e,t,o)}))}_execWebAPI(e){this.dlg.window.setStatusBusy(void 0,_T("common","msg_waiting")),e().catch(e=>{this.dlg.window.clearStatus(),this.dlg.component.showMsgBox("alert","",(0,x.v2)(e))})}_onCopyToDone(e,t,i,n){if(e===SYNO.SDS.Office.Env.link_id)return void this.dlg.component.close();let o=String.format(SYNO.SDS.Office._T("sheet","copy_to_success_confirm"),Ext.util.Format.htmlEncode(i)),r=n?{tid:ea(n)}:null;this.dlg.component.showMsgBox("confirm","",o,t=>{setTimeout(()=>{this.dlg.component.close()},0),"confirm"===t&&SYNO.SDS.Office.URL.openLink(e,{},r)},!1)}_showNameDialog(e){let t=(0,ei.QX)(SYNO.SDS.Drive.Vue.DialogCreate,{cb:i=>{this._onCreateFile(e,i),t.component.close()}},{ownerWindow:this.dlg?.window})}}Ext.define("SYNO.SDS.Office.Sheet.HotDateMenu",{extend:"SYNO.ux.DateTimeMenu",constructor:function(e){let t=SYNO.ux.DateTimeField.prototype;SYNO.ux.DateTimeMenu.prototype.constructor.call(this,Ext.apply({cls:"x-date-menu syno-ux-datefield-menu syno-sh-date-editor syno-sh-editor-comp",pickerCfg:{hideAddTimeCheckbox:!1,isAllDay:!0,minDate:t.defaultMinValue,maxDate:t.defaultMaxValue,hideClearButton:!0}},e)),this.picker.yearBtn.menu.addClass("syno-sh-editor-comp"),this.picker.monthBtn.menu.addClass("syno-sh-editor-comp")},setSelectCallback:function(e,t){this.mon(this,"select",e,t)},showPicker:function(e,t){t=(0,T.O2)(t)?"":t.toString();var i=A.rb.getWorkbook().getLocale().getDateParser().parse(t);this.picker.setValue(i?i.v:new Date),this.showAt(e)}});var ec=i(2),ed=i(32361);let eu=(0,M.defineComponent)({__name:"HotWrapper",props:{hotCreator:{type:Function}},setup(e,t){let{expose:i}=t,n=(0,M.ref)(null),{hot:o}=function(e,t){let i=(0,M.ref)(null),n=(0,M.computed)(()=>i.value?.hot??null),o=(0,M.watch)(e,(e,n)=>{n&&r(),e&&(i.value=(0,M.markRaw)({hot:t(e)}))});function r(){i.value?.hot.destroy(),i.value=null}return(0,M.onScopeDispose)(function(){r(),o()}),{hot:n}}(n,e.hotCreator);return i({hot:o}),(e,t)=>((0,M.openBlock)(),(0,M.createElementBlock)("div",{ref_key:"tableWrapper",ref:n,class:(0,M.normalizeClass)(e.$style.root)},null,2))}});var eh=i(11392),ep=i.n(eh);let ef={};ef.$style=ep();let eg=(0,q.default)(eu,[["__cssModules",ef]]);var em=i(91229);function ev(e,t,i,n){let o=(0,M.watch)(e,(e,i)=>{i&&(i.removeHook(t,r),n()),e&&(e.addHook(t,r),r())},{immediate:!0});function r(){e.value?i(e.value):n()}(0,M.onScopeDispose)(function(){n(),o()})}function eb(e,t){void 0===t&&(t=250);let i=(0,em.Z)(a,t),n=(0,M.ref)([]),o=(0,M.ref)(null),r=(0,M.watch)(e,(e,t)=>{t&&(t.removeHook("afterSelection",i),t.removeHook("afterDeselect",s),s()),e&&(e.addHook("afterSelection",i),e.addHook("afterDeselect",s),a())},{immediate:!0});function a(){if(!e.value)return void s();let t=e.value.getMultiSelectedRange().map(e=>e.toArray());t.length>1&&(t=(0,T.Gy)(t)),n.value=t,o.value=e.value.getSelected()}function s(){n.value=[],o.value=null,i.cancel()}return(0,M.onScopeDispose)(function(){s(),r()}),{selection:n,activeSelection:o}}function ey(e,t){let i=e.getDataBridge()?.getWorkbook()?.getCurrentSheet();i&&(0,T.vl)(e.getMultiSelectedRange(),t,e=>i.isFilteredRow(e))}var ew=i(39002),e_=i(56720),ex=i(20768);function eS(e,t,i){return(0,e_.JH)(e?i:()=>"",t,!1)}function eC(e,t){return void 0===t&&(t=[]),eS(e.workbook,t,t=>(0,T.Sz)(t,e))}function ek(e,t){let i=(0,M.ref)(e.initRangeStr),n=(0,M.toRef)(e,"hot"),o=e.highlightOnly?function(e){let t=(0,M.ref)(null);return ev(e,"highlightchanged",function(e){t.value=(0,M.markRaw)(e.getSelectedRange()?.highlight?.clone()??null)},function(){t.value=null}),t}(n):function(e){let t=(0,M.ref)([]);return ev(e,"afterSelectionEnd",function(e){t.value=(0,M.markRaw)(e.getMultiSelectedRange())},function(){t.value=[]}),t}(n),r=function(e){let t=function(e){let t=(0,M.ref)(null),i=(0,M.watch)(e,(i,o)=>{o&&n(),i&&function(){if(!e.value)throw Error("No hot");t.value=(0,M.markRaw)(e.value.getDataBridge())??null}()},{immediate:!0});function n(){t.value=null}return(0,M.onScopeDispose)(function(){n(),i()}),t}(e),i=(0,M.ref)(null),n=(0,M.watch)(t,(e,t)=>{t&&(t.off("flush:current",o),r()),e&&(e.on("flush:current",o),o())},{immediate:!0});function o(){i.value=t.value?.getWorkbook()?.getCurrentSheet()?.sheetId??null}function r(){i.value=null}return(0,M.onScopeDispose)(function(){r(),n()}),i}(n),a=(0,M.computed)(()=>"range"!==e.textType?{}:eC({workbook:e.hot.getDataBridge()?.getWorkbook(),isMulti:e.allowMultiSelection,rangeScope:e.ignoreSheetName?void 0:t,allowEmptyRange:e.allowEmptyRange})),s=(0,M.computed)(()=>Array.isArray(o.value)?o.value:o.value?[o.value]:[]),l=(0,M.watch)(s,n=>{let o=e.hot.getDataBridge()?.getWorkbook()?.getCurrentSheet();if(o){if(e.allowMultiSelection||(n=n.slice(0,1)),"range"===e.textType){e.autoSort&&n.sort((e,t)=>{let i=e.getTopLeftCorner(),n=t.getTopLeftCorner();return i.row!==n.row?i.row-n.row:i.col-n.col});let r=t?o:null;i.value=n.map(t=>{var i,n,o;let a;return i=t,n=r,o=e.absoluteReference,a=T.pt.toLabel(i,n),o&&(a=ex.P6.absoluteFormula(a)),a}).join(",")}else if("data"===e.textType){let t=[];ey(e.hot,(e,i)=>{let n=o.getCellTextDesc(e,i)?.v??"";return n&&t.push(n),!0}),i.value=(0,ew.Z)(t).join(", ")}}});return(0,M.onScopeDispose)(l),{rangeStr:i,activeSheetId:r,rangeRules:a}}let eI="select-range-modal-window",eA="sheet-select-range-modal-window",eT=(0,M.defineComponent)({__name:"RangeChooser",props:{title:{},hot:{},closeHook:{},initRangeStr:{default:""},allowMultiSelection:{type:Boolean,default:!1},absoluteReference:{type:Boolean,default:!1},rangeScope:{type:Boolean,default:!0},ignoreSheetName:{type:Boolean,default:!1},highlightOnly:{type:Boolean,default:!1},textType:{default:"range"},autoSort:{type:Boolean,default:!1},allowEmptyRange:{type:Boolean,default:!1}},emits:["update-range","close"],setup(e,t){let{emit:i}=t,n=(0,M.useTemplateRef)("window"),o=(0,M.useTemplateRef)("form"),r=(0,M.useTemplateRef)("input"),a=(0,M.computed)(()=>e.rangeScope),s=(0,M.computed)(()=>e.rangeScope),l=(0,M.computed)(()=>"range"!==e.textType?"":s.value?(0,N.$)("condition","empty_range_value"):(0,N.$)("condition","local_empty_range_value")),{rangeStr:c,activeSheetId:d,rangeRules:u}=ek(e,s.value);function h(){n.value?.onClose()}async function p(){await o.value?.validate()&&(i("update-range",c.value),h())}function f(){h()}return(0,M.watch)(d,()=>{a.value||(0,et.sf)(n.value)}),(0,M.watch)(c,()=>r.value?.setFocus()),(e,t)=>((0,M.openBlock)(),(0,M.createBlock)((0,M.unref)(P.Z),{ref:"window","syno-id":(0,M.unref)(eI),height:"auto",width:320,title:e.title,"mask-container":!1,"close-hook":e.closeHook,onClose:t[1]||(t[1]=()=>i("close")),onKeydown:(0,M.withKeys)((0,M.withModifiers)(p,["stop","prevent"]),["enter"])},{default:(0,M.withCtx)(()=>[(0,M.createVNode)((0,M.unref)(L.Z),{"syno-id":"select-range-panel","confirm-text":(0,M.unref)(N.$)("common","ok"),"cancel-text":(0,M.unref)(N.$)("common","cancel"),confirm:p,cancel:f},{body:(0,M.withCtx)(()=>[(0,M.createVNode)((0,M.unref)(F.Z),{ref:"form","syno-id":"select-range-form"},{default:(0,M.withCtx)(()=>[(0,M.createVNode)((0,M.unref)(z.Z),{"hide-label":"",prop:"rangeStr","control-flex":"264px",class:(0,M.normalizeClass)(e.$style["form-item"]),rules:(0,M.unref)(u)},{default:(0,M.withCtx)(()=>[(0,M.createVNode)((0,M.unref)(ed.Z),{ref:"input",modelValue:(0,M.unref)(c),"onUpdate:modelValue":t[0]||(t[0]=e=>(0,M.isRef)(c)?c.value=e:null),"syno-id":"select-range-input",placeholder:l.value},null,8,["modelValue","placeholder"])]),_:1},8,["class","rules"])]),_:1},512)]),_:1},8,["confirm-text","cancel-text"])]),_:1},8,["syno-id","title","close-hook","onKeydown"]))}});var eE=i(82629),eR=i.n(eE);let eD={};eD.$style=eR();let eO=(0,q.default)(eT,[["__cssModules",eD]]);var eM=i(23886);let eN={class:"option-text"},eP=(0,M.defineComponent)({__name:"SheetRangeChooser",props:{title:{},hot:{},closeHook:{},initRangeStr:{default:""},allowMultiSelection:{type:Boolean,default:!1},absoluteReference:{type:Boolean,default:!1},rangeScope:{type:Boolean,default:!0},highlightOnly:{type:Boolean,default:!1},ignoreSheetName:{type:Boolean,default:!1},textType:{default:"range"},autoSort:{type:Boolean,default:!1},allowEmptyRange:{type:Boolean,default:!0}},emits:["update-sheetid-range","update-sheetid","close"],setup(e,t){let{emit:i}=t,n=(0,M.useTemplateRef)("window"),o=(0,M.useTemplateRef)("form"),r=(0,M.useTemplateRef)("input"),a=(0,M.computed)(()=>{let t=e.hot.getDataBridge()?.getWorkbook();return t?t.getOrder().filter(e=>!t.isSheetHidden(e)).map(e=>({value:e,label:t.getNameById(e)})):[]}),{rangeStr:s,activeSheetId:l,rangeRules:c}=ek(e,!1);function d(){n.value?.onClose()}async function u(){await o.value?.validate()&&l.value&&(i("update-sheetid-range",{sheet:l.value,range:s.value}),d())}function h(){d()}function p(e){i("update-sheetid",e)}return(0,M.watch)(s,()=>r.value?.setFocus()),(e,t)=>((0,M.openBlock)(),(0,M.createBlock)((0,M.unref)(P.Z),{ref:"window","syno-id":(0,M.unref)(eA),height:"auto",width:426,title:e.title,"mask-container":!1,"close-hook":e.closeHook,onClose:t[1]||(t[1]=()=>i("close")),onKeydown:(0,M.withKeys)((0,M.withModifiers)(u,["stop","prevent"]),["enter"])},{default:(0,M.withCtx)(()=>[(0,M.createVNode)((0,M.unref)(L.Z),{"syno-id":"sheet-select-range-panel","confirm-text":(0,M.unref)(N.$)("common","ok"),"cancel-text":(0,M.unref)(N.$)("common","cancel"),confirm:u,cancel:h},{body:(0,M.withCtx)(()=>[(0,M.createVNode)((0,M.unref)(F.Z),{ref:"form","syno-id":"sheet-select-range-form"},{default:(0,M.withCtx)(()=>[(0,M.createVNode)((0,M.unref)(z.Z),{label:`${(0,M.unref)(N.$)("protection","worksheet")}${(0,M.unref)(N.$)("common","colon")}`,"control-flex":"auto"},{default:(0,M.withCtx)(()=>[(0,M.createVNode)((0,M.unref)(H.Z),{"syno-id":"sheet-range-chooser-select",width:"auto","model-value":(0,M.unref)(l),options:a.value,"onUpdate:modelValue":p},{icon:(0,M.withCtx)(()=>[(0,M.createVNode)((0,M.unref)(eM.Z),{class:(0,M.normalizeClass)(e.$style["sheet-icon"]),type:"bkg-img"},null,8,["class"])]),"inner-option":(0,M.withCtx)(t=>{let{option:i}=t;return[(0,M.createVNode)((0,M.unref)(eM.Z),{class:(0,M.normalizeClass)([e.$style["sheet-icon"],e.$style["option-inner-icon"]]),type:"bkg-img"},null,8,["class"]),(0,M.createElementVNode)("span",eN,(0,M.toDisplayString)(i.label),1)]}),_:1},8,["model-value","options"])]),_:1},8,["label"]),(0,M.createVNode)((0,M.unref)(z.Z),{prop:"rangeStr",label:`${(0,M.unref)(N.$)("protection","range")} ${(0,M.unref)(N.$)("common","optional")}${(0,M.unref)(N.$)("common","colon")}`,rules:(0,M.unref)(c),"control-flex":"auto"},{default:(0,M.withCtx)(()=>[(0,M.createVNode)((0,M.unref)(ed.Z),{ref:"input",modelValue:(0,M.unref)(s),"onUpdate:modelValue":t[0]||(t[0]=e=>(0,M.isRef)(s)?s.value=e:null),"syno-id":"sheet-range-chooser-input",placeholder:(0,M.unref)(N.$)("condition","local_empty_range_value")},null,8,["modelValue","placeholder"])]),_:1},8,["label","rules"])]),_:1},512)]),_:1},8,["confirm-text","cancel-text"])]),_:1},8,["syno-id","title","close-hook","onKeydown"]))}});var eL=i(61434),eB=i.n(eL);let eF={};eF.$style=eB();let eV=(0,q.default)(eP,[["__cssModules",eF]]);var ez=i(38066);let eH=(0,M.defineComponent)({__name:"RangeInput",props:{modelValue:{},readonly:{type:Boolean,default:!1},iconDisabled:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},placeholder:{default:""},iconCls:{default:""}},emits:["click-icon"],setup(e,t){let{expose:i,emit:n}=t,o=(0,M.ref)(null);function r(){e.iconDisabled||n("click-icon")}return i({setBlur:function(){o.value?.setBlur()},setFocus:function(){o.value?.setFocus()}}),(e,t)=>((0,M.openBlock)(),(0,M.createBlock)((0,M.unref)(ed.Z),(0,M.mergeProps)({ref_key:"rangeInput",ref:o,"syno-id":"range-input","model-value":e.modelValue,readonly:e.readonly||e.disabled,disabled:e.disabled,placeholder:e.placeholder},e.$attrs),{suffix:(0,M.withCtx)(()=>[(0,M.createVNode)(ez.Z,{"syno-id":"trigger-edit-range",class:(0,M.normalizeClass)(e.$style.trigger),"icon-cls":e.iconCls?e.iconCls:e.$style["trigger-icon"],"icon-index":0,disabled:e.disabled,onClick:r},null,8,["class","icon-cls","disabled"])]),_:1},16,["model-value","readonly","disabled","placeholder"]))}});var eW=i(28463),eY=i.n(eW);let eU={};eU.$style=eY();let eG=(0,q.default)(eH,[["__cssModules",eU]]);var eZ=i(61431);function ej(e,t,i,n,o,r){void 0===n&&(n="t->t"),void 0===r&&(r=!1);let a=(0,M.ref)(e);function s(e){a.value=e,o?.(e)}async function l(){let e=i.hot.value;if(!e)return;let o=null,l=e.getDataBridge();if(r&&l){let e=l.getWorkbook(),t=e.getCurrentSheet()?.sheetId;if(!t)throw Error("No current sheet");let i=T.pt.createByWorkbook(a.value,e,t),n=i?.sheetInfo?.sheetId;n&&n!==t&&(await l.setCurrent(n),o=()=>l.setCurrent(t))}t.value&&(0,eZ.z)(t.value)?t.value.$refs.trapFocus?.focusTrapper():null===t.value&&(0,A.c)().reFocus(!0);let c={...i,hot:e,initRangeStr:a.value,onUpdateRange:s,onClose:()=>{o?.(),SYNO.SDS.Office.GetWindow().setupSelectRangeWindow(null)}},d=t.value?await (0,et.NR)(t.value,eO,c,n,{hide:!0,unmask:!0}):await (0,et.hy)(eO,c);SYNO.SDS.Office.GetWindow().setupSelectRangeWindow(d)}return{range:a,handler:l}}let eq=Ext.define("SYNO.SDS.Office.Sheet.RangeField",{extend:"Ext.form.TriggerField",allowMultiSelection:!1,absoluteReference:!1,rangeScope:!0,ignoreSheetName:!1,textType:"range",autoSort:!1,allowFormula:!1,msgTarget:"itip",constructor:function(e){this.rangeScope=e.rangeScope??this.rangeScope,this.dataBridge=e.dataBridge,Ext.form.TriggerField.prototype.constructor.call(this,this.fillConfig(e))},fillConfig:function(e){return Ext.apply({ctCls:"syno-o-sh-range-field syno-ux-textfilter",cls:"syno-o-sh-range-field-text syno-ux-textfilter-text",emptyText:this.rangeScope?SYNO.SDS.Office._T("condition","empty_range_value"):SYNO.SDS.Office._T("condition","local_empty_range_value"),triggerConfig:{tag:"button",type:"button",cls:"syno-o-sh-range-field-trigger x-form-trigger syno-ux-textfilter-trigger"}},e)},onTriggerClick:function(){if(this.isRangeSelecting())return;let e=this.findWindow(),t=this.findAppWindow();this.hasFocus||(this.startValue=this.getValue());let i={title:this.title||e.title,hot:(0,A.O3)().value,initRangeStr:this.getValue(),allowMultiSelection:this.allowMultiSelection,absoluteReference:this.absoluteReference,rangeScope:this.rangeScope,ignoreSheetName:this.ignoreSheetName,textType:this.textType,autoSort:this.autoSort,onUpdateRange:e=>{let t=this.startValue;this.isDestroyed||(this.setValue(e),this.fireEvent("change",this,e,t))},onClose:()=>{this.selRangeWin=null,t.setupSelectRangeWindow(null)}},n=(0,eZ.z)(e)||e.isModalized()?"t->t":"c->c";this.selRangeWin=(0,et.NR)(e,eO,i,n,{hide:!0,unmask:!0}),t.setupSelectRangeWindow(this.selRangeWin)},validator:function(e){return this.allowFormula||(0,T.Sz)(e,{workbook:this.dataBridge.getWorkbook(),isMulti:this.allowMultiSelection,rangeScope:this.ignoreSheetName?void 0:this.rangeScope})},markInvalid:function(e){var t=this.getEl().parent();t&&t.addClass("syno-o-sh-range-field-invalid"),Ext.form.TriggerField.prototype.markInvalid.call(this,e)},clearInvalid:function(){var e=this.getEl().parent();e&&e.removeClass("syno-o-sh-range-field-invalid"),Ext.form.TriggerField.prototype.clearInvalid.call(this)},isRangeSelecting:function(){return!!this.selRangeWin},closeRangeSelecting:function(){this.selRangeWin?.close()},onDestroy:function(){this.closeRangeSelecting(),Ext.form.TriggerField.prototype.onDestroy.apply(this,arguments)}});var eK=i(61367),eX=i(41385);Ext.define("SYNO.SDS.Office.Sheet.SearchWindow",{extend:"SYNO.SDS.Office.FindReplace",mobileHeightWithMsg:136,constructor:function(e){SYNO.SDS.Office.FindReplace.prototype.constructor.call(this,this.fillConfig(e)),this._lastSearchSheet=void 0},fillConfig:function(e){return Ext.apply({cls:"syno-o-sh-find-window",findDelay:500},e)},regEvents:function(){SYNO.SDS.Office.FindReplace.prototype.regEvents.apply(this,arguments),this.mon(this.findAppWindow().getEventMgr(),"activesheetchange",this.onActiveSheetChange,this),(0,eK.isMobileLayout)()||this.mon(this,"show",function(){this.anchorToMainBody("tr-tr?")},this),this.mon(this,"beforedestroy",function(){this._setSearching(!1);let e=(0,A.c)();e.sheet&&(e.hot.renderSheet(e.sheet.sheetId),e.reFocus()),e.hot.setSearchHintSelectionsDisplay(!1)},this),this.mon(this.getRangeField(),"change",this.handleFind,this),this.mon(this.getRangeCombo(),"select",this.handleFind,this)},onBeforeHide:function(){SYNO.SDS.Office.FindReplace.prototype.onBeforeHide.call(this),this.findAppWindow().getMainPanel().setFooterHeight(this.mobileHeight),this._lastSearchSheet=void 0},createBasicPanel:function(){return new SYNO.ux.Panel({layout:"form",hideLabels:!0,items:[this.getFindComposite(),this.getMessageField(),this.getRangeCombo(),this.getRangeField()]})},getMessageField:function(){return this.msgField||(this.msgField=new SYNO.ux.DisplayField({cls:"message-field",itemId:"message_field",hidden:!0}))},getRangeCombo:function(){return this.rangeCombo||(this.rangeCombo=new SYNO.ux.ComboBox({itemId:"find_range_combo",width:336,hidden:(0,eK.isMobileLayout)(),store:new Ext.data.ArrayStore({autoDestroy:!0,fields:["value","display"],data:[["this_sheet",(0,N.$)("handsontable","this_sheet")],["all_sheets",(0,N.$)("handsontable","all_sheets")],["this_range",(0,N.$)("handsontable","this_range")]]}),value:this.isRangeSelected()?"this_range":"this_sheet",mode:"local",valueField:"value",displayField:"display",listeners:{scope:this,select:function(e){this.getRangeField().setVisible("this_range"===e.getValue())}}}))},getRangeField:function(){var e=(0,A.c)().sheet,t=(0,A.c)().hot.getSelectedRange();return this.rangeField||(this.rangeField=new eq({width:336,value:t?T.pt.toLabel(t,e):"",hidden:(0,eK.isMobileLayout)()||!this.isRangeSelected(),dataBridge:A.rb.getDataBridge(),ignoreSheetName:!0,validateOnBlur:!1}))},getMoreOptionPanel:function(){return this.more_panel||(this.content_chk=new SYNO.ux.Checkbox({boxLabel:(0,N.$)("handsontable","match_content"),handler:this.handleFind,scope:this}),this.within_formula_chk=new SYNO.ux.Checkbox({boxLabel:(0,N.$)("handsontable","search_within_formulas"),handler:this.handleFind,scope:this}),this.search_hidden_chk=new SYNO.ux.Checkbox({boxLabel:(0,N.$)("handsontable","search_with_hidden_sheets"),handler:this.handleFind,scope:this}),SYNO.SDS.Office.FindReplace.prototype.getMoreOptionPanel.apply(this,arguments),this.more_panel.add([this.content_chk,this.within_formula_chk,this.search_hidden_chk])),this.more_panel},handleFind:function(){var e=(0,A.c)().hot.selections.multiSelections.getHighlightCoord();return this.prepareSearch("search",e),!0},handleStatusAndBtn:function(){var e=!this.isSearching();this.prev_btn.setDisabled(e),this.next_btn.setDisabled(e),this.find_status.removeClass("checking"),this.find_field.setWidth(this.find_field_container.getWidth()-this.find_status.getWidth()-22)},handlePrev:function(){this.prepareSearch("search","prev",this._lastSearchSheet)},handleNext:function(){this.prepareSearch("search","next",this._lastSearchSheet)},onReplace:function(){this.prepareSearch("replace")},prepareSearch:function(e,t,i){if(this.find_status.dom.textContent="",this.setHiddenMsg(),!this.isQueryValid()){this._setSearching(!1),this.handleStatusAndBtn();let e=(0,A.c)();e.hot.renderSheet(e.sheet.sheetId);return}this._setSearching(!0),this.find_status.addClass("checking"),this[e](this._getSearchSheetIds(),this.getQueryObj(),t,i)},replace:async function(e,t){let i=this._getWorkbook().getCurrentSheet().sheetId,n=await A.rb.getDataBridge().getReplaceChanges(i,t);await A.rb.getAction().setValues(i,n,"edit");let o=n[0]?{row:n[0][0],col:n[0][1]}:"next";this.search(e,t,o)},search:async function(e,t,i,n){await A.rb.getDataBridge().searchAll(e,t);let{sheetId:o,match:r,index:a,total:s}=this._getWorkbook().moveSearchResult(e,i,n);await this._updateUIByResult(o,r,a,s),this._lastSearchSheet=o},_updateUIByResult:async function(e,t,i,n){if(!this.isSearching())return;let o=this._getWorkbook(),r=this._getView(),a=!1;if(t){this.find_status.dom.textContent=(0,ec.b)(i+1,n),await this._updateSelectionByResult(e,t);let r=o.getCurrentSheet();if(r.sheetId===e){let e=r.getDataAtCell(t.row,t.col),i=r.getCellStyle(t.row,t.col);a=this.within_formula_chk.getValue()||!(0,T.jr)(e,i)}}else this.find_status.dom.textContent=(0,N.$)("handsontable","no_matching");this.replace_btn.setDisabled(!a),r.render(),this.handleStatusAndBtn()},_updateSelectionByResult:async function(e,t){let i=this._getWorkbook();if(i.isSheetHidden(e)){if(i.isReadonly()){let n=new T.pt({sheetId:e,shName:i.getNameById(e)},t,t).toLabel();this.setHiddenMsg((0,eX.format)((0,N.$)("handsontable","find_hidden_sheet"),n));return}await A.rb.getAction().setSheetHidden(e,!1)}e!==i.getCurrentSheet().sheetId&&(await (0,A.c)().setActiveSheet(e),this.find_field.focus(!1,100));let n=i.getCurrentSheet().findClosestCell(t.row,t.col);if(this._getView().selectCell(n.row,n.col,n.row,n.col,!0,!0),(0,A.c)().hot.setSearchHintSelectionsDisplay(!0),n.row!==t.row||n.col!==t.col){let e=String.format((0,N.$)("handsontable","find_hidden_cell"),ex.P6.coordToLabel(t));this.setHiddenMsg(e)}else this.setHiddenMsg()},setHiddenMsg:function(e){if(this.getMessageField().setValue(e||""),this.getMessageField().setVisible(!!e),(0,eK.isMobileLayout)()){let t=e?this.mobileHeightWithMsg:this.mobileHeight;this.findAppWindow().getMainPanel().setFooterHeight(t)}},onReplaceAll:function(){if(""!==this.find_field.getValue()){var e=this.getQueryObj("replace_all");this.find_status.addClass("checking"),(0,A.c)().replaceAll(e).then((function(){this.handleStatusAndBtn()}).bind(this))}},getQueryObj:function(){var e=null,t=(0,A.c)().sheet,i=this.getRangeField().getValue();return this.getRangeField().hidden||(e=T.pt.textToRange(i,t)),{range:e,queryStr:this.find_field.getValue(),newValue:this.replace_field.getValue(),caseMatch:this.case_chk.getValue(),contentMatch:this.content_chk.getValue(),regex:this.regexp_chk.getValue(),withinFormulas:this.within_formula_chk.getValue(),searchNextSheet:"all_sheets"===this.basic_panel.getComponent("find_range_combo").getValue()}},onActiveSheetChange:async function(e){var t=this.isSearching();if(t&&!this.find_status.hasClass("checking")){var i=this.getQueryObj();this._getSearchSheetIds().includes(e)&&await A.rb.getDataBridge().searchAll([e],i),this._lastSearchSheet=void 0}else t||this.close()},isSearching:function(){return(0,A.c)().sheet.getWorkbook().isSearching()},_setSearching:async function(e){await A.rb.getDataBridge().setSearching(e)},isRangeSelected:function(){var e=(0,A.c)(),t=e.hot.getSelectedRange();return!!t&&(t.getHeight()>1||t.getWidth()>1)&&!e.isMerged(t)},isQueryValid:function(){return""!==this.find_field.getValue()&&(this.getRangeField().hidden||this.getRangeField().validate())},_getWorkbook:()=>A.rb.getWorkbook(),_getView:()=>A.rb.getView(),_getSearchSheetIds(){let e=this._getWorkbook();switch(this.getRangeCombo().getValue()){case"this_sheet":return[e.getCurrentSheet().sheetId];case"this_range":return[T.pt.create(this.getRangeField().getValue(),e.getCurrentSheet()).sheetInfo.sheetId];case"all_sheets":return this.search_hidden_chk.getValue()?e.getOrder().slice():e.getVisibleOrder();default:return[]}}}),Ext.define("SYNO.SDS.Office.Sheet.ResizeDialog",{extend:"SYNO.SDS.Drive.ModalWindow",constructor:function(e){this.type=e.type,this.owner=e.owner,this.ranges=e.ranges,this.rangeCompact=(0,T.OU)(this.ranges,this.type),this.minSize="row"===this.type?T.Qr.MIN_ROW_HEIGHT:T.Qr.MIN_COL_WIDTH,this.maxSize="row"===this.type?T.Qr.MAX_ROW_HEIGHT:T.Qr.MAX_COL_WIDTH,SYNO.SDS.Drive.ModalWindow.prototype.constructor.call(this,this.fillConfig(e))},fillConfig:function(e){var t="row"===this.type?ex.P6.rowIndexToLabel:ex.P6.columnIndexToLabel,i=this.rangeCompact.map(function(e){var i=t(e.from);return e.from===e.to?i:i+"-"+t(e.to)}).join(","),n={itemId:"resize_dialog",width:330,height:200,resizable:!1,title:String.format(SYNO.SDS.Office._T("handsontable","resize_multi_"+this.type+"_title"),i),items:[this.getFormPanel()],buttons:[{xtype:"syno_button",itemId:"cancel_button",text:_T("common","cancel"),listeners:{scope:this,click:this.onCancel}},{xtype:"syno_button",itemId:"apply_button",btnStyle:"default",text:_T("common","ok"),listeners:{scope:this,click:this.onApply}}],listeners:{scope:this,show:function(){var e=this.getFormPanel().getForm().findField("value_field");e.focus.defer(250,e)}}};return Ext.apply(n,e)},getFormPanel:function(){if(!this.formPanel){var e,t=(0,A.c)().sheet,i=this.rangeCompact[0].from;e="row"===this.type?t.getRowResizePlugin().getManualSize(i)||t.getDefaultRowHeight()||this.minSize:t.getColResizePlugin().getManualSize(i)||t.getDefaultColWidth()||this.minSize,this.formPanel=new SYNO.ux.FormPanel({items:[{xtype:"syno_displayfield",itemId:"msg_field",hideLabel:!0,width:274,value:SYNO.SDS.Office._T("handsontable","resize_"+this.type+"_msg")+_T("common","colon")},{xtype:"syno_numberfield",itemId:"value_field",hideLabel:!0,width:274,value:e,validator:this.pixelValidator.createDelegate(this),invalidText:String.format(SYNO.SDS.Office._T("handsontable","resize_invalid_msg"),this.minSize,this.maxSize)}]})}return this.formPanel},pixelValidator:function(e){return!(!1===/^\d+$/.test(e)||this.minSize>parseInt(e,10)||this.maxSize<parseInt(e,10))},onApply:function(){var e=this.getFormPanel().getForm().findField("value_field");if(!e.isValid())return void this.getMsgBox().alert("",e.invalidText);var t=parseInt(e.getValue(),10);"row"===this.type?(0,A.c)().resizeRows(this.ranges,t):(0,A.c)().resizeCols(this.ranges,t),this.close()}}),Ext.define("SYNO.SDS.Office.Sheet.InsertMultiDialog",{extend:"SYNO.SDS.Drive.ModalWindow",constructor:function(e){this.type=e.type,this.range=e.range,this.owner=e.owner,SYNO.SDS.Drive.ModalWindow.prototype.constructor.call(this,this.fillConfig(e))},fillConfig:function(e){var t={itemId:"insert_dialog",width:360,height:200,resizable:!1,title:SYNO.SDS.Office._T("handsontable","insert_multi_"+this.type),items:[this.getFormPanel()],buttons:[{xtype:"syno_button",itemId:"cancel_button",text:_T("common","cancel"),listeners:{scope:this,click:this.onCancel}},{xtype:"syno_button",itemId:"apply_button",btnStyle:"default",text:_T("common","ok"),listeners:{scope:this,click:this.onApply}}],listeners:{scope:this,show:function(){var e=this.getFormPanel().getForm().findField("value_field");(function(){e.focus(),e.selectText()}).defer(250)}}};return Ext.apply(t,e)},getFormPanel:function(){if(!this.formPanel){var e,t,i,n,o=SYNO.SDS.Office._T,r=(0,A.c)().sheet;"row"===this.type?(e=r.getWorkbook().getAvailableRowCount(r.sheetId),t=[[0,o("handsontable","insert_row_above")],[1,o("handsontable","insert_row_below")]],i=o("handsontable","insert_row_number"),n=this.range.getHeight()):(e=r.getWorkbook().getAvailableColCount(r.sheetId),t=[[0,o("handsontable","insert_column_left")],[1,o("handsontable","insert_column_right")]],i=o("handsontable","insert_column_number"),n=this.range.getWidth()),this.formPanel=new SYNO.ux.FormPanel({items:[{xtype:"syno_combobox",width:144,itemId:"insert_option",fieldLabel:o("handsontable","insert_position"),mode:"local",store:new Ext.data.ArrayStore({autoDestroy:!0,fields:["value","display"],data:t}),valueField:"value",displayField:"display",value:t[1][0]},{xtype:"syno_numberfield",itemId:"value_field",width:144,fieldLabel:i,value:Math.max(2,n),validator:this.amountValidate.bind(this),invalidText:e>0?String.format(o("handsontable","insert_row_col_invalid_msg"),1,e):String.format(o("handsontable","cell_quota_exceeded"),SYNO.SDS.Office.Define.Info?.sheet_max_cell_count)}]})}return this.formPanel},amountValidate:function(e){if(!1===/^\d+$/.test(e))return!1;var t=parseInt(e,10);if(t<1)return!1;var i=(0,A.c)().sheet;let n=i.getWorkbook();return t<=("row"===this.type?n.getAvailableRowCount(i.sheetId):n.getAvailableColCount(i.sheetId))},onApply:function(){var e=this.getFormPanel().getForm(),t=e.findField("value_field");if(!t.isValid())return void this.getMsgBox().alert("",t.invalidText);let i=(0,A.c)(),n="insert_"+this.type,o=+(0===e.findField("insert_option").getValue()!=!i.sheet.isRtl()),r=parseInt(t.getValue(),10);i.insertRowCol(n,o,r),this.close()}});var eQ=i(83866);Ext.define("SYNO.SDS.Office.Sheet.SocketIO",{extend:eQ.Z,sayHello:function(){return(0,A.h4)().sayHello()},pullCommands:function(){return(0,A.h4)().pullCommands()},scheduleSave:function(e,t){return(0,A.h4)().scheduleSave(e,t)},getUndoneCommands:function(){return(0,A.h4)().getUndoneCommands()},addSocketEvent:function(e){eQ.Z.prototype.addSocketEvent.apply(this,arguments);let t=(0,A.h4)();t.registerEvents(e),t.registerSyncTimeout(e=>this.onSyncTimeout(e))},saveClientChanges:function(){let e=this.getUndoneCommands();(e=e.map(function(e){try{return e.toData()}catch{return null}}).filter(e=>!!e)).length>0&&SYNO.SDS.Office.Env.setSessionItem("pending",e)},clearClientChanges:function(){SYNO.SDS.Office.Env.removeSessionItem("pending")},isSyncComplete:function(){return(0,A.h4)().isSyncComplete()}});class e$ extends k.Ad{constructor(e){super(),this.sheetMgr=e,this.registerAll()}registerAll(){function e(e){return function(){this.sheetMgr.getMainPanel().getIconicontbar().clickButton(e)}}function t(){this.sheetMgr.removeActiveDrawing()||this.sheetMgr.removeValue()}var i={};this.registerMap(i,{},{Escape:function(){this.getWin().handleFocusModeEscape()}}),i={},this.registerMap(i,{focusClose:!0},{Delete:t,Backspace:t,F4:function(){this.sheetMgr.redo()}}),i={ctrl:!0},this.registerMap(i,{},{F:function(){this.onSearchKey()},H:function(){this.onSearchKey(!0)},G:function(){this.onSearchNextPrevKey()},P:this.onPrintKey}),this.registerMap(i,{focus:!0},{B:e("bold"),I:e("italic"),U:e("underline")}),this.registerMap(i,{focus:!0,doClose:!0},{S:function(){this.sheetMgr.scheduleSave()},K:function(){this.sheetMgr.insertLink()},"\\":e("clear_format")}),this.registerMap(i,{focusClose:!0},{" ":function(){this.sheetMgr.selectColumns()},D:function(){this.sheetMgr.fillFromTopLeft("down")},R:function(){this.sheetMgr.fillFromTopLeft("right")},Enter:function(){this.sheetMgr.fillFromTopLeft("all")},Y:function(){this.sheetMgr.redo()},Z:function(){this.sheetMgr.undo()},";":function(){this.sheetMgr.fillDatetime(this.getFormat("date"))},Backspace:function(){this.onScrollToCellKey()},"/":function(){this.sheetMgr.owner.getMainPanel().openHotkeyWindow()}}),i={alt:!0},this.registerMap(i,{focusClose:!0},{Enter:this.onOpenLinkKey}),i={shift:!0},this.registerMap(i,{focusClose:!0},{" ":function(){this.sheetMgr.selectRows()},F2:function(){this.sheetMgr.insertNote()},F11:function(){this.getWin().getMainPanel().getHandsonPanel().tabBarCreateNewTab()}}),i={ctrl:!0,alt:!0},this.registerMap(i,{focusClose:!0},{0:function(){this.sheetMgr.hideCols()},9:function(){this.sheetMgr.hideRows()},M:function(){this.sheetMgr.insertComment()}}),i={ctrl:!0,shift:!0},this.registerMap(i,{},{G:function(){this.onSearchNextPrevKey(!0)}}),this.registerMap(i,{focus:!0},{PageUp:function(){this.onNextPrevSheetKey(!0)},PageDown:function(){this.onNextPrevSheetKey()},">":function(){this.onIncreaseFontSize()},"<":function(){this.onDecreaseFontSize()}}),this.registerMap(i,{focus:!0,doClose:!0},{L:function(){this.onHAlignKey(0)},E:function(){this.onHAlignKey(1)},R:function(){this.onHAlignKey(2)}}),this.registerMap(i,{focusClose:!0},{1:function(){this.sheetMgr.setFormat(this.getFormat("number"))},2:function(){this.sheetMgr.setFormat(this.getFormat("time"))},3:function(){this.sheetMgr.setFormat(this.getFormat("date"))},4:function(){this.sheetMgr.setFormat(this.getFormat("currency"))},5:function(){this.sheetMgr.setFormat(this.getFormat("percent"))},7:function(){this.onBorderKey("outer")},0:function(){this.sheetMgr.showCols()},9:function(){this.sheetMgr.showRows()},Z:function(){this.sheetMgr.redo()},":":function(){this.sheetMgr.fillDatetime(this.getFormat("time"))}}),i={alt:!0,shift:!0},this.registerMap(i,{focusClose:!0},{2:function(){this.onBorderKey("right")},3:function(){this.onBorderKey("bottom")},4:function(){this.onBorderKey("left")},6:function(){this.onBorderKey("clear")},7:function(){this.onBorderKey("outer")},K:function(){this.getWin().getMainPanel().getHandsonPanel().tabBarShowSheetMenu()},ArrowRight:function(){this.sheetMgr.groupRowCol()},ArrowLeft:function(){this.sheetMgr.ungroupRowCol()}}),i={ctrl:!0,alt:!0,shift:!0},this.registerMap(i,{focusClose:!0},{A:function(){this.sheetMgr.getMainPanel().showCommentPanel()},":":function(){this.sheetMgr.fillDatetime(this.getFormat("datetime"))}})}hasFocus(){return this.sheetMgr.hot.hasFocus()||document.activeElement.classList.contains("synoInput")}register(e,t,i,n){super.register(e,t,e=>{var t=this.sheetMgr.hot;if((i.focus||i.focusClose)&&!this.hasFocus())return!1;var o=t.getActiveEditor();return!(i.focusClose&&o&&o.isOpened())&&(i.doClose&&o&&o.isOpened()&&o.finishEditing(),n.call(this,e))})}registerMap(e,t,i){for(var n in i)i.hasOwnProperty(n)&&this.register(n,e,t,i[n])}getFormat(e){var t=this.sheetMgr.getMainPanel().getFormatMenu();switch(e){case"number":return t.cellFormat.number;case"percent":return t.cellFormat.percent;case"scientific":return"0.00E+00";case"currency":return t.cellFormat.currency;case"date":return t.cellFormat.date;case"time":return t.cellFormat.time;case"datetime":return A.rb.getWorkbook().getLocale().getData().datetime}}onSearchKey(e){var t=this.sheetMgr.hot.getActiveEditor();t&&t.isOpened()&&t.finishEditing(),this.sheetMgr.showSearchWindow(e)}onSearchNextPrevKey(e){var t=this.sheetMgr.getSearchWindow();t?e?t.handlePrev():t.handleNext():this.onSearchKey()}onPrintKey(e){var t=this.getWin().modalWin;Array.isArray(t)&&t.length>0||this.sheetMgr.print()}onOpenLinkKey(){let e=this.sheetMgr.hot.getSelectedRange();if(!e)return;let t=e.from.row,i=e.from.col,n=this.sheetMgr.sheet,o=n.getCellHyperlinkState(t,i)?.href??n.getCellFormulaItemState(t,i)?.href;o&&(SYNO.SDS.Office.LinkEditor.isDriveLink(o)&&(o=SYNO.SDS.Office.LinkEditor.getFullDriveLink(o)),"#"===o[0]?this.sheetMgr.getMainPanel().gotoHash(o):SYNO.SDS.Office.WindowHelper.openByAnchor(o))}onBorderKey(e){var t=this.sheetMgr.getMainPanel().getIconicontbar(),i=t.borderColorBtn.getColor();null!==i&&(i="#"+(i||t.getDefault("border_color"))),"clear_border"==(e+="_border")?this.sheetMgr.removeBorder():this.sheetMgr.setBorder(e,i)}onHAlignKey(e){var t=this.sheetMgr.getMainPanel().getIconicontbar(),i=t.combos.h_align,n=t.hAlignStore.getAt(e);t.onAlignSelect(i,n)}onIncreaseFontSize(){this.sheetMgr.getMainPanel().getIconicontbar().fontSizeField.handleIncreaseClick()}onDecreaseFontSize(){this.sheetMgr.getMainPanel().getIconicontbar().fontSizeField.handleDecreaseClick()}onNextPrevSheetKey(e){var t=A.rb.getWorkbook(),i=t.getCurrentSheet().sheetId,n=e?t.getPrevSheet(i,!0):t.getNextSheet(i,!0);this.sheetMgr.setActiveSheet(n)}onScrollToCellKey(){let e=this.sheetMgr.hot,t=e.getSelectedRange();if(t){let i=t.from;e.scrollToRange(i.row,i.col)}}}var eJ=i(73200),e0=i(76293);function e1(e){return e.message?e.message:e2(e.type,e.operator,e.displayF1,e.displayF2,e.displayF1)}function e2(e,t,i,n,o){let r="",a=i,s=n;switch(i=e3(i)||"",n=e3(n)||"",o=e3(o)||"",e){case"list":switch(t){case"list":r=(0,N.$)("validation","list_item_default_help_msg");break;case"listRange":r=(0,eX.format)((0,N.$)("validation","list_range_default_help_msg"),i)}break;case"decimal":switch(t){case"greaterThan":r=(0,eX.format)((0,N.$)("validation","number_greater_default_help_msg"),i);break;case"greaterThanOrEqual":r=(0,eX.format)((0,N.$)("validation","number_greater_or_equal_default_help_msg"),i);break;case"lessThan":r=(0,eX.format)((0,N.$)("validation","number_less_default_help_msg"),i);break;case"lessThanOrEqual":r=(0,eX.format)((0,N.$)("validation","number_less_or_equal_default_help_msg"),i);break;case"equal":r=(0,eX.format)((0,N.$)("validation","number_equal_default_help_msg"),i);break;case"notEqual":r=(0,eX.format)((0,N.$)("validation","number_not_equal_default_help_msg"),i);break;case"between":r=(0,eX.format)((0,N.$)("validation","number_between_default_help_msg"),i,n);break;case"notBetween":r=(0,eX.format)((0,N.$)("validation","number_not_between_default_help_msg"),i,n)}break;case"text":switch((0,T.jr)(o)&&(o=o.substring(1)),t){case"containsText":r=(0,eX.format)((0,N.$)("validation","text_contain_default_help_msg"),o);break;case"notContainsText":r=(0,eX.format)((0,N.$)("validation","text_not_contain_default_help_msg"),o);break;case"beginsWith":r=(0,eX.format)((0,N.$)("validation","text_start_with_default_help_msg"),o);break;case"endsWith":r=(0,eX.format)((0,N.$)("validation","text_end_with_default_help_msg"),o);break;case"exactText":r=(0,eX.format)((0,N.$)("validation","text_exactly_default_help_msg"),o)}break;case"date":{let e=(0,A.uD)().value?.getWorkbook().getLocale();if(!e)return"";switch(i=(0,T.gE)(e,a,{date:!0})||"",n=(0,T.gE)(e,s,{date:!0})||"",t){case"greaterThan":r=(0,eX.format)((0,N.$)("validation","date_after_default_help_msg"),i);break;case"greaterThanOrEqual":r=(0,eX.format)((0,N.$)("validation","date_on_or_after_default_help_msg"),i);break;case"lessThan":r=(0,eX.format)((0,N.$)("validation","date_before_default_help_msg"),i);break;case"lessThanOrEqual":r=(0,eX.format)((0,N.$)("validation","date_on_or_before_default_help_msg"),i);break;case"equal":r=(0,eX.format)((0,N.$)("validation","date_equal_default_help_msg"),i);break;case"notEqual":r=(0,eX.format)((0,N.$)("validation","date_not_equal_default_help_msg"),i);break;case"between":r=(0,eX.format)((0,N.$)("validation","date_between_default_help_msg"),i,n);break;case"notBetween":r=(0,eX.format)((0,N.$)("validation","date_not_between_default_help_msg"),i,n)}break}case"custom":r=(0,eX.format)((0,N.$)("validation","custom_default_help_msg"),i)}return r}function e3(e){let t=(0,A.uD)().value?.getWorkbook().getLocale(),i=t?.getLocaleConverter();return t&&i?"string"!=typeof e?i.localize(e):(0,T.jr)((0,T.gE)(t,e))?i.localizeFormula(e):e:""}let e4=(0,M.defineComponent)({__name:"ValidWindow",props:{ranges:{},closeHook:{type:Function}},setup(e){let t=[{label:(0,N.$)("condition","list_range"),value:"listRange"},{label:(0,N.$)("condition","list_item"),value:"list"},{label:(0,N.$)("condition","number"),value:"decimal"},{label:(0,N.$)("condition","text"),value:"text"},{label:(0,N.$)("condition","date"),value:"date"},{label:(0,N.$)("condition","custom"),value:"custom"}],i=(0,e_.JH)(()=>!0),n=(0,e_.JH)(e=>!!e&&("custom"!==u.value||!!(0,T.jr)(e))&&("decimal"!==u.value||!!(0,T.HW)(e)||!!(0,T.jr)(e)),["blur"],!1),o=(0,M.ref)(null),r=(0,M.ref)(null),a=(0,M.ref)(null),s=(0,M.ref)(null),l=(0,M.ref)(null),c=(0,M.ref)(null),d=(0,M.ref)(null),u=(0,M.ref)(""),h=(0,M.ref)(""),p=(0,M.ref)(""),f=(0,M.ref)(""),g=(0,M.ref)(""),m=(0,M.ref)(""),v=(0,M.ref)(!1),b=(0,M.ref)(""),y=(0,M.ref)(""),w=(0,M.ref)(""),{range:_,handler:x}=ej("",o,{title:(0,N.$)("handsontable","data_validation"),hot:(0,A.O3)(),ignoreSheetName:!0,allowMultiSelection:!0},"t->t",er),{range:S,handler:C}=ej("",o,{title:(0,N.$)("handsontable","data_validation"),hot:(0,A.O3)(),absoluteReference:!0,ignoreSheetName:!0},"t->t",er),k=(0,M.computed)(()=>["between","notBetween"].includes(p.value)),I=(0,M.computed)(()=>{switch(u.value){case"listRange":return S.value;case"list":return h.value;case"custom":return f.value}return k.value?g.value:f.value}),E=(0,M.computed)(()=>k.value?m.value:void 0),R=(0,M.computed)(()=>"listRange"===u.value),D=(0,M.computed)(()=>"list"===u.value),O=(0,M.computed)(()=>["decimal","text","date"].includes(u.value)),W=(0,M.computed)(()=>"custom"===u.value||O.value&&!k.value),Y=(0,M.computed)(()=>O.value&&k.value),U=(0,M.computed)(()=>"text"===u.value?[{label:(0,N.$)("condition","contain"),value:"containsText"},{label:(0,N.$)("condition","not_contain"),value:"notContainsText"},{label:(0,N.$)("condition","start_with"),value:"beginsWith"},{label:(0,N.$)("condition","end_with"),value:"endsWith"},{label:(0,N.$)("condition","exactly"),value:"exactText"}]:"decimal"===u.value?[{label:(0,N.$)("condition","greater_than"),value:"greaterThan"},{label:(0,N.$)("condition","greater_than_or_equal"),value:"greaterThanOrEqual"},{label:(0,N.$)("condition","less_than"),value:"lessThan"},{label:(0,N.$)("condition","less_than_or_equal"),value:"lessThanOrEqual"},{label:(0,N.$)("condition","equal"),value:"equal"},{label:(0,N.$)("condition","not_equal"),value:"notEqual"},{label:(0,N.$)("condition","between"),value:"between"},{label:(0,N.$)("condition","not_between"),value:"notBetween"}]:"date"===u.value?[{label:(0,N.$)("condition","equal"),value:"equal"},{label:(0,N.$)("condition","not_equal"),value:"notEqual"},{label:(0,N.$)("condition","before"),value:"lessThan"},{label:(0,N.$)("condition","on_or_before"),value:"lessThanOrEqual"},{label:(0,N.$)("condition","after"),value:"greaterThan"},{label:(0,N.$)("condition","on_or_after"),value:"greaterThanOrEqual"},{label:(0,N.$)("condition","between"),value:"between"},{label:(0,N.$)("condition","not_between"),value:"notBetween"}]:[]),G=(0,M.computed)(()=>({workbook:(0,A.uD)().value?.getWorkbook(),isMulti:!0,rangeScope:void 0,allowMultiScopes:!1,allowEmptyRange:!1})),Z=(0,M.computed)(()=>eC(G.value,["change","blur"]));function j(){let e={title:(0,N.$)("handsontable","data_validation"),hot:(0,A.O3)().value,textType:"data",onUpdateRange:e=>{h.value=e,er()}};(0,et.NR)(o.value,eO,e,"t->t",{hide:!0,unmask:!0})}function q(e){b.value=y.value=e}function K(e){e?o.value?.setStatusBusy(void 0,_T("common","msg_waiting")):o.value?.clearStatus()}async function X(e){K(!0);try{await e()}catch(e){console.error(e)}finally{K(!1)}}function J(){o.value?.onClose()}function ee(){J()}async function ei(){let e=(0,A.uD)().value?.getWorkbook().getCurrentSheet();if(!await es(!0)||!e)return;let t=T.pt.createRanges(_.value,e),i=t[0]?.sheetInfo?.sheetId;if(!i)return;let n=t.map(e=>e.toSynoRange());await eu(i),eh(n),A.rb.getAction().removeValidation(i,n),J()}async function en(){if(!await es())return;let e=!0;switch(u.value){case"listRange":e=await el();break;case"custom":e=await ec()}e&&eo()}async function eo(){let e=(0,A.uD)().value?.getWorkbook().getCurrentSheet();if(!e)return;let t=T.pt.createRanges(_.value,e),i=t[0]?.sheetInfo?.sheetId;if(!i)return;let n=t.map(e=>e.toSynoRange()),o=e.getValidationPlugin().calcRefCell(n),r=ex.P6.coordToLabel(o),a=ea(u.value,p.value,r,I.value,E.value,v.value,v.value?y.value:"","reject"===w.value);a&&(await eu(i),eh(n),A.rb.getAction().createValidation(i,a,n),J())}async function er(){if(await (0,M.nextTick)(),b.value)return;let e=(0,A.uD)().value?.getWorkbook().getCurrentSheet();if(!e)return;let t=T.pt.textToMultiRanges(_.value,e),i=e.getValidationPlugin().calcRefCell(t),n=ex.P6.coordToLabel(i),o=ea(u.value,p.value,n,I.value,E.value,v.value,y.value,"reject"===w.value);o&&(y.value=e2(o.type,o.operator,o.f1,o.f2,o.text))}function ea(e,t,i,n,o,r,a,s){let l=(0,A.uD)().value;if(!l)return null;let c=l.getWorkbook().getLocale(),d={type:e,operator:t,showHelp:r,message:a,reject:s},u=c.getLocaleConverter();function h(e,t){return(0,T.H2)(c,e,t)}switch("listRange"===e||"list"===e?(d.type="list",d.operator=e,","===c.getData().dec_sym?(d.f1=n.replaceAll(";",","),(n.includes(",")||n.includes('"'))&&(d.list=n.split(";").map(T.Rn).join(","))):d.f1=n):"custom"===e&&(d.f1=u.normalize(n).substr(1),d.operator=e),t){case"containsText":case"notContainsText":case"beginsWith":case"endsWith":case"exactText":d.text=u.normalize(n),d.f1=(0,T.KS)(d.operator,i,h(d.text,{text:!0}));break;case"greaterThan":case"greaterThanOrEqual":case"lessThan":case"lessThanOrEqual":case"equal":case"notEqual":case"between":case"notBetween":d.f1=h(u.normalize(n)),("between"===t||"notBetween"===t)&&(d.f2=h(u.normalize(o)))}return d}async function es(e){async function t(e){return await e.value?.validate()===""}if(!await t(r))return!1;if(!0===e)return!0;let i=!0;return"listRange"===u.value?await t(a):"list"===u.value?await t(s):"custom"===u.value?await t(l):k.value?await t(c)&&await t(d):await t(l)}async function el(){let e=(0,A.uD)().value,t=e?.getWorkbook().getCurrentSheet();if(!e||!t)return!1;let i=S.value;return!!await e.parseRange(i,t.sheetId)||await ep(a)}async function ec(){let e=(0,A.uD)().value,t=e?.getWorkbook().getCurrentSheet();if(!e||!t)return!1;let i=I.value;return"="===i[0]&&(i=i.substring(1)),await e.validateFormula(i,t.sheetId)||await ep(l)}async function eu(e){await (0,A.c)().setActiveSheet(e)}function eh(e){(0,A.O3)().value?.selectRanges(e.map(e=>e.toArray()))}async function ep(e){let t=o.value?.getMsgBox(),i="confirm"===await t.confirm("",(0,N.$)("validation","confirm_invalid_formula"));return i||e.value?.setInvalid(e_.L9,"error"),i}return function(){let t=(0,A.uD)().value,i=t?.getWorkbook().getCurrentSheet();if(!t||!i)return;let n=e.ranges[0].getTopLeftCorner(),o=i.getValidationPlugin().calcRefCell(e.ranges),r=t.getWorkbook().getWorksheetStore().getCellProperty(n.row,n.col,"validId"),a=r?t.getWorkbook().getValidationStore().getValidationView(r,o.row,o.col):null;if(_.value=e.ranges.map(e=>T.pt.toLabel(e,i)).join(","),u.value="listRange",v.value=!1,y.value=(0,eX.format)((0,N.$)("validation","list_range_default_help_msg"),""),w.value="show_message",!a)return;let s=t.getWorkbook().getLocale(),l=s.getLocaleConverter();if(u.value="list"===a.type?a.operator:a.type,p.value=a.operator,v.value=a.showHelp,"listRange"===u.value)S.value=l.localize(a.displayF1);else if("list"===u.value){let e=","===s.getData().dec_sym?";":",";h.value=a.displayList.join(e)}else k.value?(g.value=l.localize(a.displayF1),m.value=l.localize(a.displayF2)):f.value=l.localize(a.displayF1);a.showHelp&&a.message?y.value=b.value=a.message:y.value=e1(a),w.value=a.reject?"reject":"show_message"}(),(0,M.watch)(U,e=>{p.value=e[0]?e[0].value:""}),(e,b)=>((0,M.openBlock)(),(0,M.createBlock)((0,M.unref)(P.Z),{ref_key:"validWindow",ref:o,"syno-id":"valid-window",height:"auto",title:(0,M.unref)(N.$)("handsontable","data_validation"),width:520,"close-hook":e.closeHook,onKeydown:(0,M.withKeys)((0,M.withModifiers)(en,["stop","prevent"]),["enter"])},{default:(0,M.withCtx)(()=>[(0,M.createVNode)((0,M.unref)(L.Z),{"syno-id":"valid-window-panel"},{body:(0,M.withCtx)(()=>[(0,M.createVNode)((0,M.unref)(B.Z),{title:(0,M.unref)(N.$)("cf","criteria"),class:(0,M.normalizeClass)(e.$style["field-set"]),collapsible:!1},{default:(0,M.withCtx)(()=>[(0,M.createVNode)((0,M.unref)(F.Z),{"syno-id":"valid-window-form",flex:"row"},{default:(0,M.withCtx)(()=>[(0,M.createVNode)((0,M.unref)(z.Z),{ref_key:"rangeFormItem",ref:r,prop:"range","control-flex":"auto",label:`${(0,M.unref)(N.$)("cf","cell_range")}${(0,M.unref)(N.$)("common","colon")}`,rules:Z.value},{default:(0,M.withCtx)(()=>[(0,M.createVNode)((0,M.unref)(eG),{modelValue:(0,M.unref)(_),"onUpdate:modelValue":b[0]||(b[0]=e=>(0,M.isRef)(_)?_.value=e:null),placeholder:(0,M.unref)(N.$)("condition","empty_range_value"),onClickIcon:(0,M.unref)(x)},null,8,["modelValue","placeholder","onClickIcon"])]),_:1},8,["label","rules"]),(0,M.createVNode)((0,M.unref)(z.Z),{label:`${(0,M.unref)(N.$)("cf","rule")}${(0,M.unref)(N.$)("common","colon")}`,"control-flex":"auto"},{default:(0,M.withCtx)(()=>[(0,M.createVNode)((0,M.unref)(H.Z),{modelValue:u.value,"onUpdate:modelValue":b[1]||(b[1]=e=>u.value=e),"syno-id":"valid-window-rule-single-select",width:"auto","max-height":"510",options:t,onInput:b[2]||(b[2]=()=>{S.value="",h.value="",f.value="",g.value="",m.value="",a.value?.resetInvalid(),s.value?.resetInvalid(),l.value?.resetInvalid(),c.value?.resetInvalid(),d.value?.resetInvalid(),er()})},null,8,["modelValue"])]),_:1},8,["label"]),(0,M.withDirectives)((0,M.createVNode)((0,M.unref)(z.Z),{ref_key:"listRangeFormItem",ref:a,prop:"listRange","control-flex":"auto",rules:(0,M.unref)(i)},{default:(0,M.withCtx)(()=>[(0,M.createVNode)((0,M.unref)(eG),{modelValue:(0,M.unref)(S),"onUpdate:modelValue":b[3]||(b[3]=e=>(0,M.isRef)(S)?S.value=e:null),placeholder:(0,M.unref)(N.$)("condition","empty_range_value"),onClickIcon:(0,M.unref)(C),onBlur:er},null,8,["modelValue","placeholder","onClickIcon"])]),_:1},8,["rules"]),[[M.vShow,R.value]]),(0,M.withDirectives)((0,M.createVNode)((0,M.unref)(eJ.Z),null,{default:(0,M.withCtx)(()=>[(0,M.createVNode)((0,M.unref)(z.Z),{ref_key:"listItemFormItem",ref:s,"wrapper-flex":"auto",prop:"listItem",rules:(0,M.unref)(i)},{default:(0,M.withCtx)(()=>[(0,M.createVNode)((0,M.unref)(ed.Z),{modelValue:h.value,"onUpdate:modelValue":b[4]||(b[4]=e=>h.value=e),"syno-id":"valid-window-list-item-input",type:"textarea",placeholder:(0,M.unref)(N.$)("condition","empty_value"),autosize:{minRows:1,maxRows:7},onBlur:er},null,8,["modelValue","placeholder"])]),_:1},8,["rules"]),(0,M.createVNode)((0,M.unref)(z.Z),{"wrapper-flex":"none"},{default:(0,M.withCtx)(()=>[(0,M.createVNode)(ez.Z,{class:(0,M.normalizeClass)(e.$style["list-item-icon-button"]),"syno-id":"valid-window-list-item-icon-button","icon-cls":e.$style.icon,onClick:j},null,8,["class","icon-cls"])]),_:1})]),_:1},512),[[M.vShow,D.value]]),(0,M.withDirectives)((0,M.createVNode)((0,M.unref)(z.Z),{"control-flex":"auto"},{default:(0,M.withCtx)(()=>[(0,M.createVNode)((0,M.unref)(H.Z),{modelValue:p.value,"onUpdate:modelValue":b[5]||(b[5]=e=>p.value=e),"syno-id":"valid-window-operator-single-select",options:U.value,"max-height":"510",width:"auto",onInput:er},null,8,["modelValue","options"])]),_:1},512),[[M.vShow,O.value]]),(0,M.withDirectives)((0,M.createVNode)((0,M.unref)(z.Z),{ref_key:"singleInputFormItem",ref:l,prop:"singleInput",rules:(0,M.unref)(n),"control-flex":"auto"},{default:(0,M.withCtx)(()=>[(0,M.createVNode)((0,M.unref)(ed.Z),{modelValue:f.value,"onUpdate:modelValue":b[6]||(b[6]=e=>f.value=e),"syno-id":"valid-window-single-input",placeholder:(0,M.unref)(N.$)("condition","empty_value_text"),onBlur:er},null,8,["modelValue","placeholder"])]),_:1},8,["rules"]),[[M.vShow,W.value]]),(0,M.withDirectives)((0,M.createVNode)((0,M.unref)(eJ.Z),null,{default:(0,M.withCtx)(()=>[(0,M.createVNode)((0,M.unref)(z.Z),{ref_key:"doubleInputFormItemFirst",ref:c,prop:"doubleInputFirst","wrapper-flex":"auto",rules:(0,M.unref)(n)},{default:(0,M.withCtx)(()=>[(0,M.createVNode)((0,M.unref)(ed.Z),{modelValue:g.value,"onUpdate:modelValue":b[7]||(b[7]=e=>g.value=e),"syno-id":"valid-window-double-input-first",placeholder:(0,M.unref)(N.$)("condition","empty_value_text"),onBlur:er},null,8,["modelValue","placeholder"])]),_:1},8,["rules"]),(0,M.createVNode)((0,M.unref)(z.Z),{textonly:"","wrapper-flex":"none",class:(0,M.normalizeClass)(e.$style.separator)},{default:(0,M.withCtx)(()=>b[14]||(b[14]=[(0,M.createTextVNode)(" & ")])),_:1},8,["class"]),(0,M.createVNode)((0,M.unref)(z.Z),{ref_key:"doubleInputFormItemSecond",ref:d,prop:"doubleInputSecond","wrapper-flex":"auto",rules:(0,M.unref)(n)},{default:(0,M.withCtx)(()=>[(0,M.createVNode)((0,M.unref)(ed.Z),{modelValue:m.value,"onUpdate:modelValue":b[8]||(b[8]=e=>m.value=e),"syno-id":"valid-window-double-input-second",placeholder:(0,M.unref)(N.$)("condition","empty_value_text"),onBlur:er},null,8,["modelValue","placeholder"])]),_:1},8,["rules"])]),_:1},512),[[M.vShow,Y.value]]),(0,M.createVNode)((0,M.unref)(z.Z),{label:`${(0,M.unref)(N.$)("validation","help_message")}${(0,M.unref)(N.$)("common","colon")}`},{default:(0,M.withCtx)(()=>[(0,M.createVNode)((0,M.unref)(V.Z),{modelValue:v.value,"onUpdate:modelValue":b[9]||(b[9]=e=>v.value=e),"syno-id":"valid-window-show-help-checkbox"},{default:(0,M.withCtx)(()=>[(0,M.createTextVNode)((0,M.toDisplayString)((0,M.unref)(N.$)("validation","enable_help_message")),1)]),_:1},8,["modelValue"])]),_:1},8,["label"]),(0,M.createVNode)((0,M.unref)(z.Z),{"control-flex":"auto"},{default:(0,M.withCtx)(()=>[(0,M.createVNode)((0,M.unref)(ed.Z),{modelValue:y.value,"onUpdate:modelValue":b[10]||(b[10]=e=>y.value=e),"syno-id":"valid-window-help-message-input",disabled:!v.value,onInput:q},null,8,["modelValue","disabled"])]),_:1})]),_:1})]),_:1},8,["title","class"]),(0,M.createVNode)((0,M.unref)(B.Z),{title:(0,M.unref)(N.$)("validation","error_alert_title"),class:(0,M.normalizeClass)(e.$style["field-set"]),collapsible:!1},{default:(0,M.withCtx)(()=>[(0,M.createVNode)((0,M.unref)(Q.Z),{modelValue:w.value,"onUpdate:modelValue":b[11]||(b[11]=e=>w.value=e),"syno-id":"valid-window-invalid-handling-radio-group"},{default:(0,M.withCtx)(()=>[(0,M.createVNode)((0,M.unref)($.Z),{"syno-id":"valid-window-show-message-radio",value:"show_message"},{default:(0,M.withCtx)(()=>[(0,M.createTextVNode)((0,M.toDisplayString)((0,M.unref)(N.$)("validation","show_warning_message")),1)]),_:1}),(0,M.createVNode)((0,M.unref)($.Z),{"syno-id":"valid-window-reject-radio",value:"reject"},{default:(0,M.withCtx)(()=>[(0,M.createTextVNode)((0,M.toDisplayString)((0,M.unref)(N.$)("validation","reject_input")),1)]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["title","class"])]),fbar:(0,M.withCtx)(()=>[(0,M.createElementVNode)("div",{class:(0,M.normalizeClass)(e.$style.fbar)},[(0,M.createVNode)((0,M.unref)(e0.Z),{"syno-id":"valid-window-cancel-button",type:"footbar",suffix:"cancel",onClick:ee},{default:(0,M.withCtx)(()=>[(0,M.createTextVNode)((0,M.toDisplayString)((0,M.unref)(N.$)("common","cancel")),1)]),_:1}),(0,M.createVNode)((0,M.unref)(e0.Z),{"syno-id":"valid-window-remove-button",type:"footbar",suffix:"cancel",onClick:b[12]||(b[12]=()=>X(ei))},{default:(0,M.withCtx)(()=>[(0,M.createTextVNode)((0,M.toDisplayString)((0,M.unref)(N.$)("common","remove")),1)]),_:1}),(0,M.createVNode)((0,M.unref)(e0.Z),{"syno-id":"valid-window-save-button",type:"footbar",suffix:"main",onClick:b[13]||(b[13]=()=>X(en))},{default:(0,M.withCtx)(()=>[(0,M.createTextVNode)((0,M.toDisplayString)((0,M.unref)(N.$)("common","save")),1)]),_:1})],2)]),_:1})]),_:1},8,["title","close-hook","onKeydown"]))}});var e5=i(94285),e6=i.n(e5);let e8={};e8.$style=e6();let e7=(0,q.default)(e4,[["__cssModules",e8]]);var e9=i(37655),te=i(49098),tt=i(47501),ti=i(67870),tn=i(22053),to=i(34877),tr=((r={}).GROUP_ROW="group_row",r.GROUP_COL="group_col",r.UNGROUP_ROW="ungroup_row",r.UNGROUP_COL="ungroup_col",r.EXPAND_ROW="expand_row",r.EXPAND_COL="expand_col",r.COLLAPSE_ROW="collapse_row",r.COLLAPSE_COL="collapse_col",r.REMOVE_GROUP="remove_group",r.EXPAND_ALL_ROW="expand_all_row",r.EXPAND_ALL_COL="expand_all_col",r.COLLAPSE_ALL_ROW="collapse_all_row",r.COLLAPSE_ALL_COL="collapse_all_col",r.REMOVE_ALL_ROW_GROUP="remove_all_row_group",r.REMOVE_ALL_COL_GROUP="remove_all_col_group",r);function ta(e,t){void 0===t&&(t={});let i=new Set,n=(0,A.uD)().value?.getWorkbook().getCurrentSheet()?.getGroupPlugin();if(!n)return i;if(!t.row)for(let o=e.from.row;o<=e.to.row;o++){let e=n.getRowGroupLevel(o);!t.group&&e<7&&i.add(tr.GROUP_ROW),!t.ungroup&&e>0&&i.add(tr.UNGROUP_ROW)}if(!t.col)for(let o=e.from.col;o<=e.to.col;o++){let e=n.getColGroupLevel(o);!t.group&&e<7&&i.add(tr.GROUP_COL),!t.ungroup&&e>0&&i.add(tr.UNGROUP_COL)}return i}function ts(e){return(0,N.$)("outline",e)}let tl=(0,to.defineStore)("group-menu",{state:function(){return{position:null,visibleItems:[],target:null}},actions:{showAt(e){this.position=e},showGroupItem(e,t){let i=ta(t,{ungroup:!0});this.visibleItems=[tr.GROUP_ROW,tr.GROUP_COL].filter(e=>i.has(e)),this.visibleItems.length>0&&this.showAt(e)},showUngroupItem(e,t){let i=ta(t,{group:!0});this.visibleItems=[tr.UNGROUP_ROW,tr.UNGROUP_COL].filter(e=>i.has(e)),this.visibleItems.length>0&&this.showAt(e)},showContext(e,t,i){let n=t.toUpperCase(),o=[];i&&(o.push(tr[`${i.expand?"EXPAND":"COLLAPSE"}_${n}`]),(0,eK.isMobileLayout)()||o.push(tr.REMOVE_GROUP)),o.push(tr[`EXPAND_ALL_${n}`],tr[`COLLAPSE_ALL_${n}`]),i||(0,eK.isMobileLayout)()||o.push(tr[`REMOVE_ALL_${n}_GROUP`]),this.target=i?{index:i.index,level:i.level,type:t}:null,this.visibleItems=o,this.showAt(e)},hide(){this.position=null}}}),tc=(0,M.defineComponent)({__name:"GroupMenu",setup(e){let t=tl(),i=(0,M.useTemplateRef)("menu"),n=(0,M.reactive)({left:-9999,top:-9999}),o=(0,ti.v0)(),r=(0,ti.xj)(),a=(0,M.computed)(()=>t.visibleItems),s=(0,M.computed)(()=>!!t.position);function l(){tl().hide()}return(0,M.watch)(s,async e=>{let o=t.position;n.left=o?.left??-9999,n.top=o?.top??-9999,e&&(await (0,M.nextTick)(),function(){let e=i.value?.$el;if(!s.value||!r||!e)return;let t=r.getAlignToXYv2(e,[n.left,n.top],"tl->");t&&(n.left=t.x,n.top=t.y)}())}),(e,t)=>{let i=(0,M.resolveDirective)("clickoutside");return s.value?((0,M.openBlock)(),(0,M.createBlock)((0,M.unref)(te.Z),{key:0,"mount-to":(0,M.unref)(o),"target-style":{left:`${n.left}px`,top:`${n.top}px`}},{default:(0,M.withCtx)(()=>[(0,M.withDirectives)(((0,M.openBlock)(),(0,M.createBlock)((0,M.unref)(tn.NV),{ref:"menu","syno-id":"group-menu",onCloseMenu:l},{default:(0,M.withCtx)(()=>[((0,M.openBlock)(!0),(0,M.createElementBlock)(M.Fragment,null,(0,M.renderList)(a.value,e=>((0,M.openBlock)(),(0,M.createBlock)((0,M.unref)(tt.Z),{key:e,"syno-id":`group-menu-${e}`,title:(0,M.unref)(ts)(e),onClick:t=>(function(e){let t=(0,A.c)(),i=tl().target;switch(e){case tr.GROUP_ROW:t.groupRowCol("row");break;case tr.GROUP_COL:t.groupRowCol("col");break;case tr.UNGROUP_ROW:t.ungroupRowCol("row");break;case tr.UNGROUP_COL:t.ungroupRowCol("col");break;case tr.EXPAND_ROW:case tr.EXPAND_COL:if(!i)return;t.expandGroup(i.type,i.index,i.level);break;case tr.COLLAPSE_ROW:case tr.COLLAPSE_COL:if(!i)return;t.collapseGroup(i.type,i.index,i.level);break;case tr.REMOVE_GROUP:if(!i)return;t.removeGroup(i.type,i.index,i.level);break;case tr.EXPAND_ALL_ROW:t.expandAllGroup("row");break;case tr.EXPAND_ALL_COL:t.expandAllGroup("col");break;case tr.COLLAPSE_ALL_ROW:t.collapseAllGroup("row");break;case tr.COLLAPSE_ALL_COL:t.collapseAllGroup("col");break;case tr.REMOVE_ALL_ROW_GROUP:t.removeAllGroup("row");break;case tr.REMOVE_ALL_COL_GROUP:t.removeAllGroup("col")}})(e)},null,8,["syno-id","title","onClick"]))),128))]),_:1})),[[i,l]])]),_:1},8,["mount-to","target-style"])):(0,M.createCommentVNode)("",!0)}}});var td=i(82822),tu=i(7456);function th(){return(0,A.uD)().value?.getWorkbook().getCurrentSheet()}let tp=(a="top-editor",(0,to.defineStore)(a,{state:function(){return{inputAttr:{value:"",editable:!1},holderStr:""}},getters:{},actions:{updateValue(e,t){var i,n;let o=SYNO.SDS.Office.GetWindow().mainPanel.lastCoord||{};if(e=(0,td.Z)(e)?e:o.row,t=(0,td.Z)(t)?t:o.col,(0,tu.Z)(e)||(0,tu.Z)(t))return;let r=th();if(!r)return;let a=r?.ensureCellDirection(e,t)??"ltr",s=r?.getCellStyle(e,t)?.getAlignment().readingOrder??0;(0,A.O3)().value?.cellEditorData.setBidi(a,0===s),this.inputAttr={value:(0,T.lk)(r,e,t),editable:(i=e,n=t,!!th()&&((0,A.uD)().value?.getWorkbook().isCellEditable(i,n,t7.getUserInfo())??!1))};let l="";if((0,T.O2)(this.inputAttr.value)){let i=r.getSpillRange(e,t);i&&(l=r.getCellFormulaItemState(i.from.row,i.from.col)?.formula??"")}this.holderStr=l?`=${l}`:""}}}));var tf=((s={}).VALUE="value",s.CONDITION="condition",s.COLOR="color",s),tg=((l={}).NONE="none",l.FILL="fill",l.TEXT="text",l),tm=((c={}).NONE="none",c.ASC="asc",c.DESC="desc",c);let tv=(0,M.markRaw)([{label:(0,N.$)("condition","none"),value:"none"},{label:(0,N.$)("condition","text_contain"),value:"containsText"},{label:(0,N.$)("condition","text_not_contain"),value:"notContainsText"},{label:(0,N.$)("condition","text_start_with"),value:"beginsWith"},{label:(0,N.$)("condition","text_end_with"),value:"endsWith"},{label:(0,N.$)("condition","text_exactly"),value:"exactText"},{label:(0,N.$)("condition","greater_than"),value:"greaterThan"},{label:(0,N.$)("condition","greater_than_or_equal"),value:"greaterThanOrEqual"},{label:(0,N.$)("condition","less_than"),value:"lessThan"},{label:(0,N.$)("condition","less_than_or_equal"),value:"lessThanOrEqual"},{label:(0,N.$)("condition","equal"),value:"equal"},{label:(0,N.$)("condition","not_equal"),value:"notEqual"},{label:(0,N.$)("condition","between"),value:"between"},{label:(0,N.$)("condition","not_between"),value:"notBetween"}]),tb=(0,e_.JH)(()=>!0);function ty(){return(0,A.uD)().value?.getWorkbook().getCurrentSheet()?.getFilterPlugin()}function tw(e){return{value:e?.value??new Set,filtered:e?.filtered??new Set,condition:e?.condition??null,fillColorSet:e?.fillColorSet??new Set,textColorSet:e?.textColorSet??new Set}}function t_(e){return"ffffff"===e.toLowerCase()?"d8dadc":"ffffff"}var tx=i(61232);let tS=(0,M.defineComponent)({__name:"InsertPivotTableWindow",props:{initRange:{}},setup(e){let t=(0,M.ref)(null),i=(0,M.ref)(null),n=(0,M.ref)(0),o=(0,M.computed)(()=>({workbook:(0,A.uD)().value?.getWorkbook(),isMulti:!1,rangeScope:!0,allowEmptyRange:!1})),r=(0,M.computed)(()=>eC(o.value,["change","blur"])),{range:a,handler:s}=ej(e.initRange,t,{title:(0,N.$)("pivot_table","data_range"),hot:(0,A.O3)()}),l=(0,M.computed)(()=>{var e;return e=(0,A.uD)().value?.getWorkbook(),eS(e,["change","blur"],t=>!!e&&(0,T.sU)(t,e))}),{range:c,handler:d}=ej("",t,{title:(0,N.$)("pivot_table","choose_location"),hot:(0,A.O3)(),highlightOnly:!0}),u=(0,tx.NV)(h,t);async function h(){let e;if(!await i.value?.validate())return;let o=(0,A.uD)().value?.getWorkbook();if(!o)return;let r=!1,s=T.pt.createByWorkbook(a.value,o);if(!s||!s.sheetInfo)return;if(s.getHeight()*s.getWidth()>T.Qr.PIVOT_TABLE_MAX_SOURCE_SIZE)return void t.value?.getMsgBox().alert("",(0,N.$)("pivot_table","too_many_record_alert_msg"));if(1===n.value){let t=T.pt.createByWorkbook(c.value,o);if(!t||!t.sheetInfo)return;r=await (0,A.s7)().createPivotTable({sheetId:s.sheetInfo.sheetId,range:{from:s.from,to:s.to}},t.sheetInfo.sheetId,t.from),e=t.from,await (0,A.c)().setActiveSheet(t.sheetInfo.sheetId)}else{let t=await (0,A.s7)().createPivotTableSheet({sheetId:s.sheetInfo.sheetId,range:{from:s.from,to:s.to}},(0,N.$)("pivot_table","table_name_template"));t&&(r=!0,e=T.N6,await (0,A.c)().setActiveSheet(t))}if(!r)return;p();let l=(0,A.O3)().value;l&&e&&l.selectCell(e.row,e.col,e.row,e.col,!0,!0)}function p(){t.value?.onClose()}return(e,o)=>((0,M.openBlock)(),(0,M.createBlock)((0,M.unref)(P.Z),{ref_key:"win",ref:t,"syno-id":"pivot-table-window",title:(0,M.unref)(N.$)("pivot_table","create_window_title"),width:520,height:318,onKeydown:(0,M.withKeys)((0,M.withModifiers)((0,M.unref)(u),["stop","prevent"]),["enter"])},{default:(0,M.withCtx)(()=>[(0,M.createVNode)((0,M.unref)(L.Z),{"syno-id":"pivot-table-window-panel","confirm-text":(0,M.unref)(N.$)("common","create"),confirm:(0,M.unref)(u),cancel:p},{body:(0,M.withCtx)(()=>[(0,M.createVNode)((0,M.unref)(F.Z),{ref_key:"form",ref:i,"syno-id":"pivot-table-window-form"},{default:(0,M.withCtx)(()=>[(0,M.createVNode)((0,M.unref)(z.Z),{prop:"dataRange",label:`${(0,M.unref)(N.$)("pivot_table","data_range")}${(0,M.unref)(N.$)("common","colon")}`,rules:r.value,"control-flex":"auto"},{default:(0,M.withCtx)(()=>[(0,M.createVNode)((0,M.unref)(eG),{modelValue:(0,M.unref)(a),"onUpdate:modelValue":o[0]||(o[0]=e=>(0,M.isRef)(a)?a.value=e:null),onClickIcon:(0,M.unref)(s)},null,8,["modelValue","onClickIcon"])]),_:1},8,["label","rules"]),(0,M.createVNode)((0,M.unref)(z.Z),{label:`${(0,M.unref)(N.$)("pivot_table","insert_to")}${(0,M.unref)(N.$)("common","colon")}`,"control-flex":"auto"},{default:(0,M.withCtx)(()=>[(0,M.createVNode)((0,M.unref)(Q.Z),{modelValue:n.value,"onUpdate:modelValue":o[1]||(o[1]=e=>n.value=e),"syno-id":"pivot-table-window-insert-to-radio-group",class:(0,M.normalizeClass)(e.$style["radio-group"])},{default:(0,M.withCtx)(()=>[(0,M.createVNode)((0,M.unref)($.Z),{"syno-id":"pivot-table-window-insert-new-sheet-radio",value:0},{default:(0,M.withCtx)(()=>[(0,M.createTextVNode)((0,M.toDisplayString)((0,M.unref)(N.$)("pivot_table","insert_new_sheet")),1)]),_:1},8,["value"]),(0,M.createVNode)((0,M.unref)($.Z),{"syno-id":"pivot-table-window-insert-exist-sheet-radio",value:1},{default:(0,M.withCtx)(()=>[(0,M.createTextVNode)((0,M.toDisplayString)((0,M.unref)(N.$)("pivot_table","insert_exist_sheet")),1)]),_:1},8,["value"])]),_:1},8,["modelValue","class"]),(0,M.createVNode)((0,M.unref)(z.Z),{prop:"locationRange","hide-label":"",rules:l.value,"control-flex":"auto"},{default:(0,M.withCtx)(()=>[(0,M.createVNode)((0,M.unref)(eG),{modelValue:(0,M.unref)(c),"onUpdate:modelValue":o[2]||(o[2]=e=>(0,M.isRef)(c)?c.value=e:null),disabled:1!==n.value,placeholder:(0,M.unref)(N.$)("pivot_table","insert_target_placeholder"),onClickIcon:(0,M.unref)(d)},null,8,["modelValue","disabled","placeholder","onClickIcon"])]),_:1},8,["rules"])]),_:1},8,["label"])]),_:1},512)]),_:1},8,["confirm-text","confirm"])]),_:1},8,["title","onKeydown"]))}});var tC=i(21846),tk=i.n(tC);let tI={};tI.$style=tk();let tA=(0,q.default)(tS,[["__cssModules",tI]]);function tT(e,t){let i=e.getData().datetime;return Math.floor(t)===t?i=e.getData().short_date:t<1&&(i=e.getData().duration),e.getSSF().format(i,t).v}function tE(e,t){let i=e.getInputParser().parse(t);return i?.datetime?i.v:void 0}let tR=(0,M.defineComponent)({__name:"DateGroupWindow",props:{tableId:{},fieldId:{},axis:{}},setup(e){let t=(0,A.uD)().value?.getWorkbook(),i=t?.getLocale(),n=t?.getPivotTableStore(),o=n?.pivotTables[e.tableId],r=n?.getBaseField(e.tableId,e.fieldId),a=r?.group?.type==="datetime"?r.group.grouping:null,s=(0,M.ref)(null),l=(0,M.ref)(null),c=(0,M.ref)(a&&!a.autoStart&&i?tT(i,a.start):""),d=(0,M.ref)(a&&!a.autoEnd&&i?tT(i,a.end):""),u=(0,M.reactive)(n?.getDatetimeLevels(e.tableId,e.fieldId)??{[T.FE.years]:!1,[T.FE.quarters]:!1,[T.FE.months]:!1,[T.FE.days]:!1,[T.FE.hours]:!1,[T.FE.minutes]:!1,[T.FE.seconds]:!1}),h=[{key:"start",value:c},{key:"end",value:d}],p=(0,e_.JH)(e=>!e||!!i?.getInputParser().parse(e)?.datetime,[],!1),f=`${(0,N.$)("common","e_g")} ${i?i.getSSF().render(i.getData().short_date,43831):"2020/1/1"}`,g=(0,M.computed)(()=>Object.values(u).some(e=>e)),m=(0,tx.NV)(v,s);async function v(){if(!await l.value?.validate())return;let t=i?tE(i,c.value):void 0,n=i?tE(i,d.value):void 0;if(void 0!==t&&void 0!==n&&t>=n)return void s.value?.getMsgBox().alert("",(0,N.$)("pivot_table","start_not_less_than_end_msg"));if(o&&r){let i=e.axis,a=o.fields[i].findIndex(t=>t.fieldId===e.fieldId);a>=0&&await (0,A.s7)().setPivotFieldDatetimeGroup(e.tableId,r.id,!g.value?null:{autoStart:void 0===t,autoEnd:void 0===n,start:t,end:n,...u},{default:{axis:i,position:a}})}b()}function b(){s.value?.onClose()}return(e,t)=>((0,M.openBlock)(),(0,M.createBlock)((0,M.unref)(P.Z),{ref_key:"win",ref:s,"syno-id":"date-group-window",title:(0,M.unref)(N.$)("pivot_table","date_group_window_title"),height:"auto",width:400,onKeydown:(0,M.withKeys)((0,M.withModifiers)((0,M.unref)(m),["stop","prevent"]),["enter"])},{default:(0,M.withCtx)(()=>[(0,M.createVNode)((0,M.unref)(L.Z),{"syno-id":"date-group-window-panel",confirm:(0,M.unref)(m),cancel:b},{body:(0,M.withCtx)(()=>[(0,M.createVNode)((0,M.unref)(F.Z),{ref_key:"form",ref:l,"syno-id":"date-group-form"},{default:(0,M.withCtx)(()=>[((0,M.openBlock)(),(0,M.createElementBlock)(M.Fragment,null,(0,M.renderList)(h,e=>{let{key:t,value:i}=e;return(0,M.createVNode)((0,M.unref)(z.Z),{key:t,label:`${(0,M.unref)(N.$)("pivot_table",`date_group_${t}`)}${(0,M.unref)(N.$)("common","colon")}`,prop:t,"control-flex":"auto",rules:(0,M.unref)(p)},{default:(0,M.withCtx)(()=>[(0,M.createVNode)((0,M.unref)(ed.Z),{modelValue:i.value,"onUpdate:modelValue":e=>i.value=e,"syno-id":`date-group-${t}-input`,placeholder:f},null,8,["modelValue","onUpdate:modelValue","syno-id"])]),_:2},1032,["label","prop","rules"])}),64)),(0,M.createVNode)((0,M.unref)(z.Z),{label:`${(0,M.unref)(N.$)("pivot_table","date_group_by")}${(0,M.unref)(N.$)("common","colon")}`,"label-flex":"100%","control-flex":"0%"},null,8,["label"]),(0,M.createElementVNode)("div",{class:(0,M.normalizeClass)(e.$style["checkbox-wrapper"])},[((0,M.openBlock)(!0),(0,M.createElementBlock)(M.Fragment,null,(0,M.renderList)(Object.values((0,M.unref)(T.FE)),e=>((0,M.openBlock)(),(0,M.createBlock)((0,M.unref)(V.Z),{key:e,modelValue:u[e],"onUpdate:modelValue":t=>u[e]=t,"syno-id":`date-group-checkbox-${e}`},{default:(0,M.withCtx)(()=>[(0,M.createTextVNode)((0,M.toDisplayString)((0,M.unref)(N.$)("pivot_table",`date_group_${e}`)),1)]),_:2},1032,["modelValue","onUpdate:modelValue","syno-id"]))),128))],2)]),_:1},512)]),_:1},8,["confirm"])]),_:1},8,["title","onKeydown"]))}});var tD=i(95047),tO=i.n(tD);let tM={};tM.$style=tO();let tN=(0,q.default)(tR,[["__cssModules",tM]]);var tP=i(66794),tL=(0,tP.Z)((0,M.defineComponent)({name:"List",props:{},computed:{cls:()=>"v-list"}}),[["render",function(e,t,i,n,o,r){return(0,M.openBlock)(),(0,M.createElementBlock)("ul",{class:(0,M.normalizeClass)(e.cls)},[(0,M.renderSlot)(e.$slots,"default")],2)}]]);let tB=(0,M.defineComponent)({name:"Li"}),tF={class:"v-li"},tV=(0,M.createElementVNode)("i",{class:"bullet-dot"},null,-1);var tz=(0,tP.Z)(tB,[["render",function(e,t,i,n,o,r){return(0,M.openBlock)(),(0,M.createElementBlock)("li",tF,[tV,(0,M.renderSlot)(e.$slots,"default")])}]]),tH=i(25063);let tW=(0,M.defineComponent)({__name:"NumberGroupWindow",props:{tableId:{},fieldId:{}},setup(e){let t=(0,A.uD)().value?.getWorkbook().getPivotTableStore(),i=t?.pivotTables[e.tableId],n=t?.getBaseField(e.tableId,e.fieldId),o=n?.group?.type==="number"?n.group.grouping:null,r=(0,M.ref)(null),a=(0,M.ref)(null),s=(0,M.ref)(o&&!o.autoStart?o.start:""),l=(0,M.ref)(o&&!o.autoEnd?o.end:""),c=(0,M.ref)(o?.interval??""),d=[{key:"min",value:s,placeholder:`${(0,N.$)("common","e_g")} 0`,rules:void 0},{key:"max",value:l,placeholder:`${(0,N.$)("common","e_g")} 100`,rules:void 0},{key:"interval",value:c,placeholder:`${(0,N.$)("common","e_g")} 10`,rules:void 0}],u=(0,tx.NV)(h,r);async function h(){if(!await a.value?.validate())return;let t="number"==typeof s.value||""===s.value?s.value:parseFloat(s.value),o="number"==typeof l.value||""===l.value?l.value:parseFloat(l.value),d="string"==typeof t,u="string"==typeof o;if(!d&&!u&&t>=o)return void r.value?.getMsgBox().alert("",(0,N.$)("pivot_table","min_not_less_than_max_msg"));let h="number"==typeof c.value||""===c.value?c.value:parseFloat(c.value),f=""===t&&""===o&&""===h;if(""!==h&&h<=0)return void r.value?.getMsgBox().alert("",(0,N.$)("pivot_table","interval_not_greater_than_zero_msg"));i&&n&&await (0,A.s7)().setPivotFieldNumberGroup(e.tableId,e.fieldId,f?null:{autoStart:d,autoEnd:u,start:d?void 0:t,end:u?void 0:o,interval:""===h?1:h}),p()}function p(){r.value?.onClose()}function f(e){let t=!1,i=!1;for(let n=0;n<e.length;n++){let o=e[n];if(o.match(/[^-+\d.eE]/))return e.slice(0,n);if("-"===o||"+"===o){if(0!==n&&"e"!==e[n-1]&&"E"!==e[n-1])return e.slice(0,n)}else if("."===o){if(t||i)return e.slice(0,n);t=!0}else if("e"===o||"E"===o){if(0===n||i||Number.isNaN(Number(e.slice(0,n))))return e.slice(0,n);i=!0}}return e}return(e,t)=>((0,M.openBlock)(),(0,M.createBlock)((0,M.unref)(P.Z),{ref_key:"win",ref:r,"syno-id":"number-group-window",title:(0,M.unref)(N.$)("pivot_table","number_group_window_title"),height:"auto",width:450,onKeydown:(0,M.withKeys)((0,M.withModifiers)((0,M.unref)(u),["stop","prevent"]),["enter"])},{default:(0,M.withCtx)(()=>[(0,M.createVNode)((0,M.unref)(L.Z),{"syno-id":"date-group-window-panel",confirm:(0,M.unref)(u),cancel:p},{body:(0,M.withCtx)(()=>[(0,M.createVNode)((0,M.unref)(F.Z),{ref_key:"form",ref:a,"syno-id":"number-group-form"},{default:(0,M.withCtx)(()=>[((0,M.openBlock)(),(0,M.createElementBlock)(M.Fragment,null,(0,M.renderList)(d,e=>{let{key:t,value:i,placeholder:n,rules:o}=e;return(0,M.createVNode)((0,M.unref)(z.Z),{key:t,label:`${(0,M.unref)(N.$)("pivot_table",`number_group_${t}`)}${(0,M.unref)(N.$)("common","colon")}`,prop:t,"control-flex":"auto",rules:o},{default:(0,M.withCtx)(()=>[(0,M.createVNode)((0,M.unref)(ed.Z),{modelValue:i.value,"onUpdate:modelValue":e=>i.value=e,"syno-id":`date-group-${t}-input`,placeholder:n,mask:f},null,8,["modelValue","onUpdate:modelValue","syno-id","placeholder"])]),_:2},1032,["label","prop","rules"])}),64)),(0,M.createElementVNode)("div",{class:(0,M.normalizeClass)(e.$style["tips-block"])},[(0,M.createElementVNode)("span",{class:(0,M.normalizeClass)(e.$style["tips-title"])},(0,M.toDisplayString)((0,M.unref)(N.$)("common","tips")+(0,M.unref)(N.$)("common","colon")),3),(0,M.createVNode)((0,M.unref)(tL),{class:(0,M.normalizeClass)(e.$style["tips-list"])},{default:(0,M.withCtx)(()=>[((0,M.openBlock)(!0),(0,M.createElementBlock)(M.Fragment,null,(0,M.renderList)((0,M.unref)(N.$)("pivot_table","number_group_window_tips").match(/\<li\>.*?\<\/li\>/gi),(t,i)=>((0,M.openBlock)(),(0,M.createBlock)((0,M.unref)(tz),{key:i,class:(0,M.normalizeClass)(e.$style["tips-list-item"])},{default:(0,M.withCtx)(()=>[(0,M.createVNode)((0,M.unref)(tH.Z),{text:t.replace(/\<\/?li\>/gi,"")},null,8,["text"])]),_:2},1032,["class"]))),128))]),_:1},8,["class"])],2)]),_:1},512)]),_:1},8,["confirm"])]),_:1},8,["title","onKeydown"]))}});var tY=i(63710),tU=i.n(tY);let tG={};tG.$style=tU();let tZ=(0,q.default)(tW,[["__cssModules",tG]]),tj=(0,M.computed)(()=>(0,A.uD)().value?.getWorkbook().getPivotTableStore());function tq(e,t,i){return e.map(e=>{let{fieldId:t}=e,n=t===T.Hb?-2:i.findIndex(e=>e.id===t);return{fieldId:t,fieldIndex:n}}).filter(e=>{let{fieldIndex:t}=e;return t>=0}).map(e=>{let{fieldId:n,fieldIndex:o}=e,r=i[o],a=t[o];return{fieldId:n,name:(0,T.Ts)(a,r),showTotal:a?.subtotals!=="none"}})}let tK=(d="pivot-table-editor",(0,to.defineStore)(d,{state:function(){return{tableId:""}},getters:{table(e){let{tableId:t}=e;return tj.value?.pivotTables[t]},cache(){return this.table?tj.value?.pivotCaches[this.table.cacheId]:void 0},locationStr(){let e=this.cache;if(!e)return"";let t=e.source.sheetId;return new T.pt({sheetId:t,shName:(0,A.uD)().value?.getWorkbook().getNameById(t)??""},e.source.range.from,e.source.range.to).toLabel()},valuesFieldAxis(){let e=this.table;return e&&e.fields.col.find(e=>{let{fieldId:t}=e;return t===T.Hb})?"col":"row"},pivotFields(){let e=this.table,t=this.cache;return e&&t?t.fields.map((i,n)=>{let o=e.pivotFields[n],r=(0,T.TS)(i,t);return{fieldId:i.id,name:(0,T.Ts)(o,i),type:(0,T.Ql)(r?.sharedItems??i.sharedItems)}}):[]},rowFields(){let e=this.table,t=this.cache;return e&&t?tq(e.fields.row,e.pivotFields,t.fields):[]},colFields(){let e=this.table,t=this.cache;return e&&t?tq(e.fields.col,e.pivotFields,t.fields):[]},dataFields(){let e=this.table;return e?e.fields.data:[]},pageFields(){let e=this.table,t=this.cache;return e&&t?tq(e.fields.page,e.pivotFields,t.fields):[]}},actions:{update(){this.tableId="";let e=(0,A.O3)().value,t=e?.sheetId,i=e?.getSelectedRange()?.highlight,n=tj.value?.pivotTables;if(!t||!i||!n)return;let{from:{row:o,col:r}}=i,a=e.sheet?.getCellProperty(o,r,"pivot")?.tableId;a&&n[a]&&(this.tableId=a)}}}));function tX(){return(0,A.uD)().value?.getWorkbook().getPivotTableStore()}let tQ=(u="pivot-table-filter-form",(0,to.defineStore)(u,{state:function(){return{info:null,activeFieldId:null}},getters:{table(e){let t=e.info?.tableId;return t?tX()?.pivotTables[t]??null:null},cache(){let e=this.table?.cacheId;return e?tX()?.pivotCaches[e]??null:null},filterFormData(e){let t=e.activeFieldId,i=this.table,n=this.cache?.fields.find(e=>e.id===t),o=i?.pivotFields.find(e=>e.id===t);if(!i||!n||!o)return null;let r=(0,T.qx)(o,n),a=o.filter;if(!a||!(0,T.po)(a)&&!(0,T.s_)(a)){let e=r.filter(e=>!e.hidden);a=e.length===r.length?null:{type:T.kE.VALUE,value:e.map(e=>e.name)}}return tw({value:new Set(r.map(e=>e.name)),condition:a})},fieldSectionOptions(e){let t=e.info;if(!t||"data"===t.axis||!this.table||!this.cache)return[];let i="page"===t.axis?t.fieldId?[t.fieldId]:[]:this.table.fields[t.axis].filter(e=>e.fieldId!==T.Hb).map(e=>e.fieldId),n=this.cache;return i.map(e=>{let t=n.fields.find(t=>t.id===e);return{value:e,label:t?.name??""}})},sortSectionOptions(e){let t=e.info;if(!t||"data"===t.axis||"page"===t.axis||!this.table||!this.cache||!this.activeFieldId)return[];let i=this.table.pivotFields.find(e=>e.id===this.activeFieldId);if(!i)return[];let n=this.cache,o=i.name??n.fields.find(e=>e.id===this.activeFieldId)?.name??"";return[{value:this.activeFieldId,label:o}].concat(this.table.fields.data.map(e=>({value:e.id,label:e.name})))},sorting(e){let t=e.activeFieldId,i=this.table?.pivotFields.find(e=>e.id===t);return i?.sorting??null}},actions:{updateInfo(e){this.info=e,this.setActiveFiledId(this.fieldSectionOptions[0]?.value??null)},setActiveFiledId(e){this.activeFieldId=e}}})),t$=(h="filter-form",(0,to.defineStore)(h,{state:function(){return{dropdownBound:{x:0,y:0,width:0,height:0},show:!1,column:null,tab:tf.VALUE,onlyMe:!1,items:[],filtered:new Set,totalCheckCount:0,searchText:"",searchCheckCount:0,op:"none",value1:"",value2:"",colorType:tg.NONE,color:"",fillColorSet:new Set,textColorSet:new Set}},getters:{isPivotTable:()=>!!tQ().activeFieldId,isPivotTablePage(){return this.isPivotTable&&tQ().info?.axis==="page"},hasFilter(e){let{tab:t,items:i,searchCheckCount:n,op:o,colorType:r}=e;return t===tf.VALUE&&n!==i.length||t===tf.CONDITION&&"none"!==o||t===tf.COLOR&&r!==tg.NONE},calcValueCondition(){return e=>{void 0===e&&(e=!1);let t=new Set((e?this.searchResult.map(e=>this.items[e]):this.items).filter(e=>e.checked).map(e=>e.text));return this.filtered.forEach(e=>t.add(e)),{type:T.kE.VALUE,value:Array.from(t)}}},condition(e){let{tab:t,op:i,value1:n,value2:o,colorType:r,color:a}=e;if(!this.hasFilter)return null;if(t===tf.VALUE)return this.calcValueCondition();if(t===tf.CONDITION){let e,t=[i],r=[n];return("between"===i?t=["greaterThanOrEqual","lessThanOrEqual"]:"notBetween"===i&&(t=["lessThan","greaterThan"]),("between"===i||"notBetween"===i)&&(r=[n,o]),"between"===i&&(e=!0),["containsText","notContainsText","beginsWith","endsWith","exactText"].includes(i))?{type:T.kE.TEXT,operator:t,value:r}:{type:T.kE.CUSTOM,operator:t,value:r.map(e=>(0,T.HW)(e)?parseFloat(e):e),and:e}}return t===tf.COLOR?{type:T.kE.COLOR,color:a,cellColor:r===tg.FILL}:null},searchResult(e){let{items:t,searchText:i}=e,n=i.trim().toLocaleLowerCase(),o=[],r=0;for(let[e,{text:i,checked:a}]of t.entries())i.toLocaleLowerCase().includes(n)&&(o.push(e),a&&(r+=1));return(0,M.nextTick)().then(()=>this.searchCheckCount=r),(0,M.markRaw)(o)}},actions:{async showFilterForm(e,t,i){void 0===i&&(i=null),t&&!(t.col<0)&&(this.$reset(),await (0,M.nextTick)(),this.dropdownBound=(0,M.markRaw)(e),this.show=!0,this.column=t.col,tQ().updateInfo(i),this.setupFilterForm())},hideFilterForm(){this.show=!1},setupFilterForm(){let e=tQ().filterFormData??function(e){if(null===e)return tw();let t=ty();if(!t)return tw();let i=t.getColValues(e);return i?tw({...i,condition:function(e){let t=ty()?.getActiveFilterJSON();return null!==e&&t&&t.range?t.filters[e-t.range[1]]:null}(e),fillColorSet:t.getColColors(e,!0),textColorSet:t.getColColors(e,!1)}):tw()}(this.column);this.setupData(e);let t=e.condition;if(!t||(0,T.v$)(t))this.tab=tf.VALUE;else if((0,T.po)(t)){this.tab=tf.CONDITION;let{operator:e,value:i}=t;this.setupCondition(e,i)}else if((0,T.s_)(t)){this.tab=tf.CONDITION;let{operator:e,value:i,and:n}=t;this.setupCondition(e,i,n)}else if((0,T.zK)(t)){this.tab=tf.COLOR;let{color:e,cellColor:i}=t;this.setupColor(e,i)}},setupData(e){let{value:t,filtered:i,condition:n,fillColorSet:o,textColorSet:r}=e,a=!n||!(0,T.v$)(n);this.items=Array.from(t,e=>{let t=e||(0,N.$)("filter","blank_value"),i=a||n.value.includes(e);return{text:e,display:t,checked:i}}),this.items.sort((e,t)=>e.checked!==t.checked?e.checked?-1:1:e.text.toLocaleLowerCase()<t.text.toLocaleLowerCase()?-1:1),this.items.forEach(e=>{let{text:t}=e;return i.delete(t)}),this.filtered=(0,M.markRaw)(i),this.totalCheckCount=this.items.reduce((e,t)=>{let{checked:i}=t;return i?e+1:e},0),this.fillColorSet=(0,M.markRaw)(o),this.textColorSet=(0,M.markRaw)(r)},setupCondition(e,t,i){"greaterThanOrEqual"===e[0]&&"lessThanOrEqual"===e[1]&&i?this.op="between":"lessThan"!==e[0]||"greaterThan"!==e[1]||i?this.op=e[0]:this.op="notBetween",this.value1=t[0]?.toString()??"",this.value2=t[1]?.toString()??""},setupColor(e,t){this.colorType=t?tg.FILL:tg.TEXT,this.color=e},resetFilter(){this.items.forEach(e=>e.checked=!0),this.totalCheckCount=this.items.length,this.op="none",this.value1="",this.value2="",this.colorType=tg.NONE,this.color="",this.searchCheckCount=this.searchResult.length},changeTab(e){this.tab=e},checkAll(){let e=0===this.searchCheckCount,t=e?this.searchResult.length:-this.searchCheckCount;this.checkCountChanged(t),this.searchResult.forEach(t=>this.items[t].checked=e)},checkCountChanged(e){this.totalCheckCount+=e,this.searchCheckCount+=e}}}));async function tJ(e){return"string"==typeof e&&(e={message:e}),new Promise(t=>{t0(e).alert(e.title??"",e.message??"",()=>{t()})})}function t0(e){void 0===e&&(e={});let t=SYNO.SDS.Office.GetWindow().getMsgBox();return t.getDialog().getKeyMap().addBinding({key:Ext.EventObject.ENTER,fn:(e,i)=>{i.preventDefault(),i.stopPropagation();let n=t.getDialog().fbButtons;for(let e of["ok","yes"]){let t=n[e];if(t.rendered&&!1===t.hidden){t.getEl().dom.click();break}}},scope:t}),t.getDialog().el.dom.classList.add("syno-sh-editor-comp"),e.checkbox&&function(e,t){let i=e.getDialog();i.bodyEl.addClass("syno-ux-panel"),i.on("show",()=>{i.checkboxEl=new SYNO.ux.Checkbox({renderTo:i.wrapperEl,boxLabel:t,onRender:function(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];SYNO.ux.Checkbox.prototype.onRender.apply(this,t);let n=this.wrap.dom;n.style.paddingTop="8px";let o=n.querySelector("label").style;o.fontSize="13px",o.color="#2E3032"}}),i.addManagedComponent(i.checkboxEl)},i)}(t,e.checkbox),t}var t1=i(84901);let t2=(0,to.defineStore)("iconbar",()=>{let e=(0,k.VF)(),t=(0,M.ref)(!1);return{enableRightToLeft:(0,M.computed)(()=>e.useRightToLeft||t.value),setDataWithRtl:function(){t.value=!0}}});function t3(){return SYNO.SDS.Office.Window}function t4(){return t3().sheetmgr}function t5(e,t){let i;if(0===t.length)return"";let n=[];return t.length>5?(i=e===T.Ym.Message.SORT_MERGED?"sort_more_vertical_merge_msg":"sort_more_partial_merge_msg",n=[t.slice(0,5).join(", "),`<span ext:qtip="${Ext.util.Format.htmlEncode(t.slice(5).join(", "))}">`,"</span>"]):t.length>1?(i=e===T.Ym.Message.SORT_MERGED?"sort_multiple_vertical_merge_msg":"sort_multiple_partial_merge_msg",n=[t.join(", ")]):(i=e===T.Ym.Message.SORT_MERGED?"sort_one_vertical_merge_msg":"sort_one_partial_merge_msg",n=[t[0]]),(0,eX.format)(SYNO.SDS.Office._T("handsontable",i),...n)}class t6 extends T.Ym{isCopyable(){return!SYNO.SDS.Office.Utils.isPreviewOnly()}getUserInfo(){return{uid:(0,t1.Kr)()??(0,t1.Uu)(),gids:(0,t1.Bp)()??[],canOrganize:SYNO.SDS.Office.Env.capabilities.can_organize}}getObjectId(){return SYNO.SDS.Office.Env.objectId}getBaseAppURL(){return SYNO.SDS.Office.WindowHelper.getBaseAppURL()}getString(e,t){return SYNO.SDS.Office._T(e,t)}validateFontFamily(e){return SYNO.SDS.Office.FontStore.getFontMap().get(e)}getImageDisplayURL(e,t){return SYNO.SDS.Office.WebAPI.getImageRelativeUrl(SYNO.SDS.Office.Env.link_id,SYNO.SDS.Office.Env.objectId,e,void 0,t,!1)}getImageExternalURLSync(e,t){return SYNO.SDS.Office.WebAPI.getImageAbsoluteUrl(SYNO.SDS.Office.Env.link_id,SYNO.SDS.Office.Env.objectId,e,void 0,t,!0)}onFlushUI(e){console.log(e)}}let t8={filter:{show:function(e,t,i){t$().showFilterForm(e,t,i)}},imageFloat:{show:function(e){t4().getImageFloat().showFloat(e)},hide:function(){var e=t4().getImageFloat();e.hidden||e.hide()}},chartMenu:{show:function(e,t){t4().getChartMenu().showMenu(e,t)},hide:function(){t4().getChartMenu().hide()}},validationList:{show:function(e,t,i,n){t4().getValidationMenu().showValidList(e,t,i,n)},hide:function(){t4().getValidationMenu().hide()}},validationTip:{show:function(e,t,i,n,o,r){var a=Ext.QuickTips.getQuickTip();a.activeTarget={el:n,text:Ext.util.Format.htmlEncode(e1(e,t,i))},a.showAt([o,r])},hide:function(){Ext.QuickTips.getQuickTip().hidden||Ext.QuickTips.getQuickTip().hide()}},datePicker:{show:function(e,t){t4().getDatePicker().showPicker(e,t)},hide:function(){t4().getDatePicker().hide()}},contextMenu:{show:function(e){t4().getContextMenu().showByMouseEvent(e)}},groupMenu:{show:function(e,t,i){tl().showContext({left:e.x,top:e.y},t,i)}},onTextSelectionChange:function(e){t3().getMainPanel().getIconicontbar().updateFontIcons(e)}},t7=new class extends t6{constructor(){super(),this.editor=t8,this.lastSuppressTime=0}onConfirm(e,t){void 0===t&&(t=[]);var i=T.Ym.Message,n="handsontable",o="",r=!1,a=!1,s=null;switch(e){case i.CLEAR_MERGE_DATA:o="merge_cell_notify";break;case i.PROTECTION_DELETE:n="protection",o="delete_confirm",a=!0;break;case i.PROTECTION_WARNING:n="protection",o="edit_warning",r=!0;break;case i.REMOVE_DUP_HIDDEN_ROW:n="remove_duplicates",o="msg_remove_hidden";break;case i.PIVOT_TABLE_OVERWRITE_CELL:n="pivot_table",o="overwrite_cell_confirm_msg";break;case i.PIVOT_TABLE_RENAME_ITEM:n="pivot_table",o="rename_item_confirm_msg";break;case i.PIVOT_TABLE_CONVERT_TOO_MANY_RECORD:n="pivot_table",o="convert_too_many_record_confirm_msg";break;case i.PIVOT_TABLE_CONVERT_TOO_MANY_FIELD:n="pivot_table",o="convert_too_many_field_confirm_msg";break;case i.PIVOT_TABLE_CONVERT_TOO_MANY_ITEM:n="pivot_table",o="convert_too_many_item_confirm_msg";break;case i.PIVOT_TABLE_CONVERT_TOO_MANY_CELL:n="pivot_table",o="convert_too_many_cell_confirm_msg";break;case i.MOVE_OVERWRITE_CELL:n="action",o="confirm_overwrite_cell",s={yes:{text:SYNO.SDS.Office._T("handsontable","replace")},no:{text:SYNO.SDS.Office._T("common","cancel")}}}return t.unshift(SYNO.SDS.Office._T(n,o,o)),new Promise(e=>{if(r&&Date.now()-this.lastSuppressTime<3e5)return void e(!0);let i=t0({checkbox:r?(0,eX.format)(SYNO.SDS.Office._T("protection","suppress_warn"),5):void 0});Ext.menu.MenuMgr.hideAll(),i[a?"confirmDelete":"confirm"]("",(0,eX.format)(...t),t=>{let n="yes"===t;return r&&n&&i.getDialog().checkboxEl.checked&&(this.lastSuppressTime=Date.now()),e(n)},this,s)})}onAlert(e,t){let i;void 0===t&&(t=[]);var n,o,r=T.Ym.Message,a="handsontable",s="";switch(e){case r.MERGE_FREEZED:s="merge_freeze_notify";break;case r.FREEZE_MERGED:s="freeze_merge_notify";break;case r.HIDE_ALL_ROW:s="hide_all_row_notify";break;case r.HIDE_ALL_COL:s="hide_all_col_notify";break;case r.VERT_MERGE_IN_FILTER:s="vertically_merge_in_filter";break;case r.FILTER_VERT_MERGED:s="filter_with_vertical_merge";break;case r.REMOVE_ALL_ROW:s="remove_all_row_notify";break;case r.REMOVE_ALL_COL:s="remove_all_col_notify";break;case r.SORT_MERGED:case r.SORT_PARTIAL_MERGED:let l;n=t[0],o=t[1],l="",n.length>0&&(l+=`<li>${t5(T.Ym.Message.SORT_MERGED,n)}</li>`),o.length>0&&(l+=`<li>${t5(T.Ym.Message.SORT_PARTIAL_MERGED,o)}</li>`),i=(0,eX.format)(SYNO.SDS.Office._T("handsontable","sort_error_placeholder"),`<br>${l}`);break;case r.MOVE_FIRST_FILTER:s="move_first_filter_notify";break;case r.MOVE_MERGE_CELL:s="move_merge_cell_notify";break;case r.MERGE_PARTIAL:s="merge_partial_notify";break;case r.EXCEED_CELL_QUOTA:s="cell_quota_exceeded",t.push(SYNO.SDS.Office.Define.Info?.sheet_max_cell_count);break;case r.FILTER_AT_LEAST_TWO:a="filter",s="at_least_two";break;case r.MERGE_CROSS_FILTER:s="merge_cross_filter";break;case r.PROTECTION_REJECT:a="protection",s="edit_disable";break;case r.REMOVE_DUP_NO_DATA:a="remove_duplicates",s="msg_no_data";break;case r.REMOVE_DUP_NOT_ALIGNED:a="remove_duplicates",s="msg_not_aligned";break;case r.REMOVE_DUP_MULTI_RANGE:a="remove_duplicates",s="msg_multi_range";break;case r.REMOVE_DUP_ONE_ROW:a="remove_duplicates",s="msg_one_row";break;case r.INVALID_CHANGE:a="validation",s="reject_input_message";break;case r.PIVOT_TABLE_NO_SHEET:a="pivot_table",s="no_sheet_alert_msg";break;case r.PIVOT_TABLE_MISSING_ROW_HEADER:a="pivot_table",s="missing_row_header_alert_msg";break;case r.PIVOT_TABLE_ROW_NOT_ENOUGH:a="pivot_table",s="row_not_enough_alert_msg";break;case r.PIVOT_TABLE_CONTAIN_MERGE_CELL:a="pivot_table",s="contain_merge_cell_alert_msg";break;case r.PIVOT_TABLE_BLOCK_BY_OTHER:a="pivot_table",s="block_by_pivot_table_alert_msg";break;case r.PIVOT_TABLE_REMOVE_PARTIAL:a="pivot_table",s="delete_partial_pivot_table_msg";break;case r.PIVOT_TABLE_MOVE_PARTIAL:a="pivot_table",s="move_partial_pivot_table_msg";break;case r.PIVOT_TABLE_MODIFY_PARTIAL:a="pivot_table",s="modify_partial_pivot_table_msg";break;case r.PIVOT_TABLE_INSERT_AMONG:a="pivot_table",s="insert_among_pivot_table_msg";break;case r.PIVOT_TABLE_GROUP_FAIL:a="pivot_table",s="group_fail_msg";break;case r.PIVOT_TABLE_NULL_NAME:a="pivot_table",s="null_name_alert_msg";break;case r.PIVOT_TABLE_FIELD_NAME_EXIST:a="pivot_table",s="field_name_exist_alert_msg";break;case r.PIVOT_TABLE_NOT_AN_ITEM:a="pivot_table",s="not_an_item_alert_msg";break;case r.PIVOT_TABLE_TOO_MANY_FIELD:a="pivot_table",s="too_many_field_alert_msg";break;case r.PIVOT_TABLE_TOO_MANY_ITEM:a="pivot_table",s="too_many_item_alert_msg";break;case r.PIVOT_TABLE_TOO_MANY_CELL:a="pivot_table",s="too_many_cell_alert_msg";break;case r.CANNOT_ACTION_ON_MERGE_CELL:s="cannot_action_on_merge_cell_msg"}return t.unshift(SYNO.SDS.Office._T(a,s,s)),Ext.menu.MenuMgr.hideAll(),t$().hideFilterForm(),i??=(0,eX.format)(...t),t3().manager.getMsgBox().alert("",i,{},{useHtml:!0}).then(()=>{})}onMessage(e,t){let i,n=T.Ym.Message;return t=t??[],e===n.REMOVE_DUP_DONE&&(i=0===t[0]?SYNO.SDS.Office._T("remove_duplicates","found_dup_0"):1===t[0]?SYNO.SDS.Office._T("remove_duplicates","remove_dup_1"):SYNO.SDS.Office._T("remove_duplicates","remove_dup_n"),i=(0,eX.format)(i,t[0])+"<br/>"+(0,eX.format)(SYNO.SDS.Office._T("remove_duplicates",1===t[1]?"remain_1":"remain_n"),t[1])),void 0===i&&(t.unshift(SYNO.SDS.Office._T("handsontable","")),i=(0,eX.format)(...t)),new Promise(e=>{Ext.menu.MenuMgr.hideAll(),t0().alert("",i,function(){e()})})}onCommentChanged(e){this._relayEvent("comment_changed",e)}onFinishEditing(e,t){t&&tp().updateValue(),this._switchActive(e)}onCurrentChanged(e){t3().getEventMgr().fireEvent("activesheetchange",e)}async onAfterUndo(e,t){t&&await this._switchActive(t),this._restoreSels(e.getSelections()),this._relayEvent("afterundo")}async onAfterRedo(e,t){t&&await this._switchActive(t),this._restoreSels(e.getSelections()),this._relayEvent("afterredo")}onAfterDoneQueueChange(){this._relayEvent("donequeuechange",A.rb.getUndoRedo())}onBeforeSync(){this._relayEvent("beforesync")}onAfterSync(){this._relayEvent("aftersync")}onLockUI(){t3().setStatusBusy()}onReleaseUI(){t3().clearStatusBusy()}onFlushUI(e){let t=T.Ym.FLUSH_TYPE;e&t.EDITOR&&this.onEditorRender({rerender:"delay"}),e&t.WORKBOOK&&this._relayEvent("flush:workbook"),e&t.FILTER&&t3().getMainPanel().getIconicontbar().flushFilterIcon(),e&t.DEFINE&&t4().defineWindow?.updateHook(),t.IMAGE,e&t.CHART&&t3().getMainPanel().getRightPanelContainer().getChartPanel().onChartModified()}getPeerTooltip(e){let t=(0,A.h4)().getClientNames(e);return t.length<=7?t.join(", "):(0,eX.format)(SYNO.SDS.Office._T("user","tooltip"),t.slice(0,7).join(", "),t.length-7)}onSelectImage(){this._relayEvent("onselectimage")}openChartEditor(e){t3().mainPanel.showChartEditorPanel(e)}openImageFormatPanel(e){let t=t3().mainPanel.right_panel;t.getImageFormatPanel().setImage(e),t.showImageFormatPanel()}onActiveChartChange(e,t){t3().mainPanel.right_panel.getChartPanel().onActiveChange(e,t)}onActiveImageChange(e,t){t3().mainPanel.right_panel.getImageFormatPanel().onActiveChange(e,t)}onEditorRender(e){var t=void 0===(e=e||{}).rerender||e.rerender;A.rb.getView().render(t)}onActionDone(e){e?.resetCopySelection&&t4().cancelCopy()}onResetCopy(e){if(e){var t=t3().getMainPanel().getIconicontbar(),i=t.btns.paint_format;t.setBtnActive(i,!1)}}uploadImage(e){return this._convertURI(e).then(function(t){let i,n;t.src?(i="url",n=t.src):(i="raw",n=t.file);var o=null;return e.width>0&&e.height>0&&(o=[{width:e.width,height:e.height,type:e.type}]),SYNO.SDS.Office.GetWindow().getAction().createAttachment(i,n).then(e=>({resp:e,sizeInfo:o}))})}insertImage(e){t3().setStatusBusy(),this.uploadImage(e).then(e=>{let{resp:t,sizeInfo:i}=e;SYNO.SDS.Office.GetWindow().getAction().uploadImageDone(t,i)}).catch(SYNO.Debug.error).then(function(){t3().clearStatusBusy()})}onFilterViewUpdated(e){e===A.rb.getWorkbook().getCurrentSheet()?.sheetId&&t3().mainPanel.updateFilterViewState()}onExternalRequest(e){t3().getMainPanel().getRightPanelContainer().getExternalListPanel().handleExternalRequest(e)}onRtlSettingAdded(){t2().setDataWithRtl()}async _switchActive(e){e!==A.rb.getWorkbook().getCurrentSheet()?.sheetId&&await t3().sheetmgr.setActiveSheet(e)}_relayEvent(){var e=t3().getEventMgr();e.fireEvent.apply(e,arguments)}_restoreSels(e){if(!e)return;let t=A.rb.getView();t.selectRanges(e.ranges,"from");let i=t.selections.multiSelections;i.setActive(e.activeIndex),e.highlight&&i.setHighlight(e.highlight),t.fastRender()}_convertURI(e){return new Promise(function(t){e.src&&e.src.startsWith("data:")?t({file:SYNO.SDS.Office.Utils.dataURItoBlob(e.src)}):e.src&&e.src.startsWith("blob:")?SYNO.SDS.Office.Utils.saveObjectURL(e.src,function(e){200===e.status&&t({file:e.response})}):t(e)})}};Ext.define("SYNO.SDS.Office.Sheet.ValidMenu",{extend:"SYNO.SDS.Office.Menu",minShowCount:8,itemHeight:30,constructor:function(e){SYNO.SDS.Office.Menu.prototype.constructor.call(this,this.fillConfig(e)),this.filterItemsRef=(0,em.Z)(this.filterItems.bind(this),250)},fillConfig:function(e){let t={itemId:"validation_menu",cls:"syno-o-sh-valid-menu syno-sh-editor-comp",usePs:!0,listeners:{scope:this,itemclick:this.itemClick,beforehide:this.beforeHide,show(){SYNO.SDS.Office.Window.sheetmgr.reFocus()}}};return Ext.apply(t,e)},focus:function(){},filterItems:function(e){let t=!1;e=e.toLocaleLowerCase(),this.items?.items.forEach(function(i){let n=0>i.text.toLocaleLowerCase().indexOf(e);t=t||!n,n!==i.hidden&&i.setVisible(!n)}),this.getEl()?.setDisplayed(t),t&&this.doLayout(!0)},onRender:function(){SYNO.SDS.Office.Menu.prototype.onRender.apply(this,arguments),this.keyNav&&(this.keyNav.left=!1,this.keyNav.right=!1)},showValidList:function(e,t,i,n){this.sheet=e,this.coords={row:t,col:i};let o=A.rb.getView();o.addHook("inputTextChanged",this.filterItemsRef);let r=o.getCellBound(t,i);if(r.width<=0||r.height<=0||0===n.length)return;this.batch(function(){this.removeAll(),n.forEach(function(e){this.addItem(new SYNO.SDS.Office.Sheet.ValidItem(e))},this)},this);let a=r.x,s=r.y+r.height,l=document.body.offsetHeight,c=l-s-2,d=this.minShowCount*this.itemHeight,u=null;c<d?u=l-(c=r.y-2)-1:s+=2,this.maxHeight=c,this.showAt([0,0]),this.updateMaxHeight(),this.updateScroller();let h=this.el.dom.style;h.left=a+"px",h.bottom=null===u?"":u+"px",h.top=null===u?s+"px":""},itemClick(e){if(!this.sheet||!this.coords||SYNO.SDS.Office.Window.sheetmgr.isReadonly())return;let t=this.coords.row,i=this.coords.col,n=this.sheet;this._setCellValue(n,t,i,e)},async _setCellValue(e,t,i,n){let o=A.rb.getAction(),r=e.sheetId,a=A.rb.getView();if(void 0===n.value)await o.setValues(r,[[t,i,n.text]],"validation");else if(e.getComputedCellStyle(t,i).getNumberFormat().isDefault()){let e=a.getMultiSelectedRange();await o.setDataAndFormat(r,e,[[t,i,n.value]],n.formatCode)}else await o.setValues(r,[[t,i,n.value]],"validation");t7.onEditorRender({resetCopySelection:!1}),await a.getActiveEditor().finishEditing(!0),SYNO.SDS.Office.Window.sheetmgr.reFocus()},beforeHide:function(){A.rb.getView().removeHook("inputTextChanged",this.filterItemsRef),this.sheet=null,this.coords=null},onUp:function(e){let t=this.keyNav.up(new Ext.EventObjectImpl(e),this);return this.scrollIntoView(),t},onDown:function(e){let t=this.keyNav.down(new Ext.EventObjectImpl(e),this);return this.scrollIntoView(),t},scrollIntoView:function(e){if(!this.activeItem)return;let t=this.el.dom.scrollTop,i=this.el.dom.offsetHeight,n=this.activeItem.el.dom.offsetTop,o=n+this.activeItem.el.dom.offsetHeight;n<t?this.el.dom.scrollTop=this.activeItem.el.dom.offsetTop:o>t+i&&(this.el.dom.scrollTop=o-i)},onEnter:function(e){return this.keyNav.enter(new Ext.EventObjectImpl(e),this)}}),Ext.define("SYNO.SDS.Office.Sheet.ValidItem",{extend:"Ext.menu.Item",focus:function(){return this}});let t9=Ext.define("SYNO.SDS.Office.Sheet.FloatPanelMgr",{constructor:function(e){this.targetDom=e,this.panelQueue=[],this.interval=5},getTargetDom:function(){return this.targetDom},addPanel:function(e){this.panelQueue.push(e),e.mon(e,"rearrange",this.showPanels,this)},_showPanels:function(e,t){let i=0,n=0,o,r,a;e.forEach(function(e){i+=e.getHeight(),n=Math.max(n,e.getWidth())}),0<i&&0<n&&(i+=(e.length-1)*this.interval,o=this.findPosition(t,i,n)),o&&(a=o.alignment||"left",e.forEach(function(e){r="right"===a?{top:o.top,left:o.left+n-e.getWidth()}:"center"===a?{top:o.top,left:(window.visualViewport.width-e.getWidth())/2}:{top:o.top,left:o.left},e.showPanel(r),o.top+=e.getHeight()+this.interval},this))},showPanels:function(e,t,i,n){Promise.all(this.panelQueue.map(function(n){return n.prepareShow(e,t,i).then(function(e){return e?n:null})})).then((function(e){this._showPanels(e.filter(e=>null!==e),n)}).bind(this))},updatePanels:function(e,t){let i=new Map;for(let[n,o]of(this.panelQueue.forEach(t=>{let n=t.prepareUpdate(e);if(!n)return;let o=`${n.row},${n.col}`;i.has(o)||i.set(o,[]),i.get(o).push(t)}),i.entries())){let[e,i]=n.split(",").map(e=>parseInt(e,10)),r=(0,A.c)().sheet?.getMergePlugin().getMergedRange(e,i),a=r?.from.row??e,s=r?.from.col??i,l=r?.to.row??e,c=r?.to.col??i,d=t.getRangeBound(a,s,l,c);d.width>0&&d.height>0?this._showPanels(o,d):o.forEach(e=>e.setPagePosition(-9999,-9999))}},hidePanels:function(e){this.panelQueue.forEach(function(t){t.prepareHide(e)&&t.hidePanel()})},destroyPanels:function(){this.panelQueue.forEach(function(e){e.destroy()})},destroy:function(){this.destroyPanels()},findPosition:function(e,t,i){let n=this.targetDom.getBoundingClientRect(),o=2*!!(0,eK.isMobileLayout)(),{putLeft:r,putRight:a}=ie(e,n,i),s,l,c="left",d=!1;return r?(l=e.x-i,c="right"):a?l=e.x+e.width:(d=!0,l=e.x),(s=d?e.y+e.height+o:e.y)+t>n.bottom&&(s=d?e.y-t-o:e.y+e.height-t),{top:Math.max(s,n.top),left:Math.max(Math.min(l,n.right-i),n.left),alignment:d&&(0,eK.isMobileLayout)()?"center":c}}});function ie(e,t,i){let n=(0,A.O3)().value?.view.isRtl()??!1,o=e.x+e.width+i<=t.right,r=e.x-i>=t.left;return{putRight:o&&(!n||!r),putLeft:r&&(n||!o)}}var it=i(10834);let ii=function(e){return(0,it.Z)(e,5)};var io=i(60537);i(38353);var ir=i(68906);let ia=function(e){Object.assign(e,{onCommentUpdateDataReady:function(e){this.updatePanel()},onCommentChanged:function(e){this.batchUpdateCommentById(e.map(e=>{let[t]=e;return t}))},getCommentSource:function(){return A.rb.getWorkbook().getCommentStore().comments.map(this.commentToVueData,this)},getHighlightText:function(e){return e.cellText},commentToVueData:function(e){var t=ii(e);return t.refText=this.getHighlightText(e),t},updateCommentById:function(e){this.batchUpdateCommentById([e])},batchUpdateCommentById:function(e){var t=new Map;for(let n of e){var i=A.rb.getWorkbook().getCommentStore().getCommentById(n);t.set(n,i&&this.commentToVueData(i))}this.updateComment(t)},handleClose:function(){this.fireEvent("close")},async handleActiveChange(e){let t=A.rb.getWorkbook().getCommentStore().getCommentById(e);await is(t),(0,A.c)().hot.getPlugin("synoComment").updateHighlight(t?{sheetId:t.sheetId,row:t.row,col:t.col}:null),(0,eK.isMobileLayout)()&&(0,A.c)()?.contextMenu?.close()},async handleReopen(e){await (0,A.c)().reopenComment(e)},async handleResolve(e){await (0,A.c)().resolveComment(e)},async handleReplyEdit(e,t,i){await (0,A.c)().editComment(e,t,i)},async handleReplyDelete(e,t){await (0,A.c)().editComment(e,t,null)},async handleReplyApply(e,t){await (0,A.c)().replyComment({target:e,text:t})}})};async function is(e){if(!e)return;var t=A.rb.getWorkbook();if(!t.hasSheet(e.sheetId))return;e.sheetId!==t.getCurrentSheet().sheetId&&await SYNO.SDS.Office.GetWindow().sheetmgr.setActiveSheet(e.sheetId);let i=A.rb.getView();var n=i.getSelectedRange();n&&n.from.row===e.row&&n.from.col===e.col?i.scrollToRange(e.row,e.col):i.selectCell(e.row,e.col,e.row,e.col,!0,!0)}function il(e){let t=Ext.urlDecode(e.slice(1)),i=t.tid||t.sh_tid;return{sheetId:i?`sh_${i}`:null,range:t.range||null,fvid:t.fvid||null,commentId:t.comment_id||null}}function ic(e,t){void 0===t&&(t=!1);let i=SYNO.SDS.Drive.Utils.getHashParam();for(let[t,n]of Object.entries({sheetId:{name:"tid",fn:ea},range:{name:"range"},fvid:{name:"fvid"},commentId:{name:"comment_id"}})){let o=n.name??t,r=n.fn??(e=>e);e[t]?i[o]=r(e[t]):delete i[o]}SYNO.SDS.Office.URL.setHash(i,t)}Ext.define("SYNO.SDS.Office.Sheet.CommentPanel",{extend:ir.x,constructor:function(){ir.x.prototype.constructor.apply(this,arguments),ia(this),(0,eK.isMobileLayout)()&&this.on("active",this.onPanelActivate.bind(this))},onSelectionChange:function(){let e=(0,A.c)().hot.getSelectedRange(),t=(0,A.c)().sheet,i=this.vueComponent?A.rb.getWorkbook().getCommentStore().getCommentById(this.vueComponent.activeId):null;if(!e||i&&t.sheetId===i.sheetId&&e.from.row===i.row&&e.from.col===i.col)return;let n=t.getCellProperty(e.from.row,e.from.col,"comment")?.[0];n?this.updateClickThreadId(n):this.updateClickThreadId(null)},onPanelActivate:function(){let e=(0,A.c)().getCommentBySelection();e&&this.updateClickThreadId(e.id)}}),i(63314);var id=i(9359),iu=i(14395),ih=i(85196),ip=i(19667),ig=i(92114),im=i(81850);let iv={...io.jz,methods:{...io.jz.methods,resetThread(){this.showAll=!1,this.showConfirmBar=!1}}};Ext.ns("SYNO.SDS.Office.Sheet.Mixin").Floatable=function(){return{targetCoords:null,initMixinConfig:function(e){return e.cls=Ext.isString(e.cls)?e.cls+" syno-o-sh-floating-panel":"syno-o-sh-floating-panel",Ext.apply({floating:!0,hidden:!0,renderTo:e.targetDom},e)},setupListener:function(){this.mon(this.getEl(),"mouseenter",this.preventClosing,this)},preventClosing:function(){return(0,A.c)().notifyFloatPanelMouseOver.cancel()},showPanel:function(e){this.setPagePosition(e.left,e.top),this.show()},hidePanel:function(){this.hidden||(this.clearRecord(),this.hide())},prepareShow:function(e,t,i){return Promise.resolve(!1)},prepareUpdate:function(e){return this.hidden?null:this.targetCoords},prepareHide:function(e){return!this.hidden},saveCoords:function(e,t){this.targetCoords={row:e,col:t}},clearRecord:function(){this.targetCoords=null},sameCoordsAndShowing:function(e,t){return!this.hidden&&this.targetCoords&&this.targetCoords.row===e&&this.targetCoords.col===t},fireRearrangeEvent:function(e){if(this.targetCoords){var t=(0,A.c)().hot.getCellBound(this.targetCoords.row,this.targetCoords.col);t.width>0&&t.height>0&&(e=e||"rearrange",this.fireEvent("rearrange",e,this.targetCoords.row,this.targetCoords.col,t))}}}},Ext.define("SYNO.SDS.Office.Sheet.FloatPanel",{extend:"SYNO.ux.Panel",constructor:function(e){Ext.applyIf(this,SYNO.SDS.Office.Sheet.Mixin.Floatable()),SYNO.ux.Panel.prototype.constructor.call(this,this.initMixinConfig(e)),this.setupListener()}}),Ext.define("SYNO.SDS.Office.Sheet.LinkEditorPanel",{extend:"SYNO.SDS.Office.LinkEditor",constructor:function(e){Ext.applyIf(this,SYNO.SDS.Office.Sheet.Mixin.Floatable()),SYNO.SDS.Office.LinkEditor.prototype.constructor.call(this,this.initMixinConfig(e)),this.setupListener()},createUrlField:function(e){return this.url_field=new SYNO.SDS.Office.Sheet.LinkComboBox(this._getLinkComboCfg(e))},_getLinkComboCfg:function(){var e=SYNO.SDS.Office.LinkEditor.prototype._getLinkComboCfg.apply(this,arguments);return e.listeners||(e.listeners={scope:this}),Ext.apply(e.listeners,{clicklinklocal:this.onClickLinkLocal}),e},onClickLinkLocal:async function(e){let t=(0,A.c)(),i=A.rb.getWorkbook().getCurrentSheet().sheetId,n=e&&il(e),o={owner:this.findAppWindow(),title:SYNO.SDS.Office._T("link","link_local_range"),hot:(0,A.O3)().value,initRangeStr:n?.range??"",onUpdateSheetidRange:e=>{let t="#tid="+ea(e.sheet);e.range&&(t+="&range="+e.range),this.setLocalIdLink(t)},onUpdateSheetid:async e=>{await t.setActiveSheet(e)},onClose:async()=>{let{row:e,col:n}=this.targetCoords;await t.setActiveSheet(i),this.findAppWindow().setupSelectRangeWindow(null),t.hot.selectCell(e,n,e,n),this.show(),this.fireRearrangeEvent()}},r=await (0,et.hy)(eV,o);this.findAppWindow().setupSelectRangeWindow(r),this.hide(),n&&t.handleHashSelection(n)},onPanelShow:function(){this.url_field.collapse(),SYNO.SDS.Office.LinkEditor.prototype.onPanelShow.apply(this,arguments)},onApply:function(){if(SYNO.SDS.Office.LinkEditor.prototype.onApply.apply(this,arguments)){var e=this.text_field.getValue(),t=this.url_field.readOnly?this.url_field.getLinkValue():this.url_field.getRawValue();if(e=(0,im.mi)(e||t),this.targetCoords){let i,n=this.targetCoords.row,o=this.targetCoords.col,r=!this.text_field.disabled;t.startsWith("#")&&(i=il(t))&&i.range?(0,A.c)().applyInternalLink(n,o,e,i,r):(0,A.c)().applyLink(n,o,e,t,r)}else(0,A.c)().reFocus();this.hidePanel()}},onCancel:function(){this.hidePanel(),(0,A.c)().reFocus()},showPanel:function(e){this.setPagePosition(e.left,e.top),this.isVisible()?this.onPanelShow():this.show()},prepareShow:function(e,t,i){let n=!1,o=(0,A.c)().sheet;switch(e){case"onCellMouseOver":case"rearrange":case"cellSelect":n=this.sameCoordsAndShowing(t,i),this.focusAfterShow=!n;break;case"insertLink":{if((0,A.c)().isReadonly()||o.getCellProperty(t,i,"pivot"))break;this.focusAfterShow=!this.sameCoordsAndShowing(t,i),this.saveCoords(t,i);let e=o.getCellTextDesc(t,i);if(e?.e&&!o.getCellHyperlinkState(t,i)?.href)this._setValues(e.e,e.v),this.text_field.setDisabled(!1);else{let n=e?.l?o.getCellHyperlinkState(t,i)?.href??e?.e:void 0,{text:r,editable:a}=(0,ig.zl)(o,t,i);this._setValues(n,r),this.text_field.setDisabled(!a)}n=!0;break}default:this.hidePanel()}return Promise.resolve(n)},setLocalIdLink:function(e){this.url_field.setLocalLink(e),this.onComboSelect(this.url_field)},_setValues:function(e,t){this.link=e||"",this.text=t||"",this.setDefaultValue(this.link,this.text),this.url_field.lastQuery=null},clearRecord:function(){this.targetCoords=null,this.focusAfterShow=!0}}),Ext.define("SYNO.SDS.Office.Sheet.LinkComboBox",{extend:"SYNO.SDS.Office.LinkComboBox",onRender:function(){SYNO.SDS.Office.LinkComboBox.prototype.onRender.apply(this,arguments),this.el.dom.addEventListener("click",()=>{"local"===this.type&&this.fireEvent("clicklinklocal",this._linkValue)})},_initBottomStoreData:function(){var e=SYNO.SDS.Office.LinkComboBox.prototype._initBottomStoreData.apply(this,arguments);return(0,eK.isMobileLayout)()||e.unshift(["local",SYNO.SDS.Office._T("link","link_local_range")]),e},_onBottomRecordClick:function(e){if("local"!==e.get("value"))return SYNO.SDS.Office.LinkComboBox.prototype._onBottomRecordClick.apply(this,arguments);this.list.hide(),this.fireEvent("clicklinklocal")},setLink:function(){this._linkValue=null,SYNO.SDS.Office.LinkComboBox.prototype.setLink.apply(this,arguments)},setLocalLink:function(e){this._linkValue=e;var t=Ext.urlDecode(e.slice(1));if(!t.tid)return SYNO.SDS.Office.LinkComboBox.prototype.setLocalLink.call(this,"#REF!");var i="sh_"+t.tid,n=A.rb.getWorkbook().getNameById(i),o=t.range;o&&(n+="!"+o),SYNO.SDS.Office.LinkComboBox.prototype.setLocalLink.call(this,n)},setDriveLink:function(){this._linkValue=null,SYNO.SDS.Office.LinkComboBox.prototype.setDriveLink.apply(this,arguments)},getLinkValue:function(){return this._linkValue||this.getValue()}}),Ext.define("SYNO.SDS.Office.Sheet.NotePanel",{extend:"SYNO.SDS.Office.Sheet.FloatPanel",constructor:function(e){SYNO.SDS.Office.Sheet.FloatPanel.prototype.constructor.call(this,this.fillConfig(e)),this.editing=!1,this.focusAfterShow=!1,this.originValue=""},fillConfig:function(e){var t={cls:"note-panel",width:250,shadow:!1,style:{zIndex:302},items:[this.noteArea=new SYNO.ux.TextArea({cls:"note-area",grow:!0,growMin:110,growMax:236,width:250,listeners:{scope:this,autosize:function(){this.fireRearrangeEvent()},focus:function(){var e=(0,A.c)().isReadonly();this.noteArea.setReadOnly(e),this.editing=!e,this.focusAfterShow=!1},blur:function(){this.editing=!1,this.hidePanel()},keydown:function(e,t){27===t.keyCode?this.hidePanel():13===t.keyCode&&t.ctrlKey&&this.hidePanel()}}})],listeners:{scope:this,afterrender:function(e){this.noteArea.textSizeEl.classList.add("syno-o-sh-note-sizer")}}};return Ext.apply(t,e)},showPanel:function(e){this.setPagePosition(e.left,e.top),this.noteArea.autoSize(),this.show(),this.focusAfterShow&&this.noteArea.focus(!1,100),this.noteArea.updateFleXcroll()},prepareShow:function(e,t,i){var n=!1;switch(e){case"onCellMouseOver":if(this.editing||this.focusAfterShow){n=this.sameCoordsAndShowing(t,i);break}(0,A.c)().sheet.getCellNote(t,i)?(this.prepareNote(e,t,i),n=!0):this.hidePanel();break;case"rearrange":case"cellSelect":n=this.sameCoordsAndShowing(t,i);break;case"insertNote":this.prepareNote(e,t,i),this.focusAfterShow=!0,n=!0;break;default:this.hidePanel()}return Promise.resolve(n)},prepareNote:function(e,t,i){this.originValue=(0,A.c)().sheet.getCellNote(t,i)||"",this.noteArea.setValue(this.originValue),this.saveCoords(t,i)},hidePanel:function(){if(!this.hidden){var e,t=this.noteArea.getValue();this.targetCoords&&t!==this.originValue?(e=(0,T.MT)(this.targetCoords.row,this.targetCoords.col,this.targetCoords.row,this.targetCoords.col),(0,A.c)().applyNote(e,t||"")):(0,A.c)().reFocus(!0),this.clearRecord(),this.hide()}},clearRecord:function(){this.originValue="",this.targetCoords=null,this.focusAfterShow=!1,this.editing=!1}}),Ext.define("SYNO.SDS.Office.Sheet.ValidMsgPanel",{extend:"SYNO.SDS.Office.Sheet.FloatPanel",constructor:function(e){SYNO.SDS.Office.Sheet.FloatPanel.prototype.constructor.call(this,this.fillConfig(e))},fillConfig:function(e){var t={cls:"valid-msg-panel",style:{zIndex:302},items:[{xtype:"syno_compositefield",itemId:"title_composite",cls:"validation-warning-title-composite",items:[{xtype:"syno_displayfield",itemId:"warning_icon",cls:"validation-warning-icon"},{xtype:"syno_displayfield",itemId:"title_field",cls:"validation-warning-title",value:(0,N.$)("validation","invalid_value")}]},{xtype:"syno_displayfield",itemId:"message_field",cls:"validation-warning-msg"}]};return Ext.apply(t,e)},prepareShow:function(e,t,i){var n,o,r=!1,a=(0,A.c)().sheet;switch(e){case"onCellMouseOver":{let e=a.getCellProperty(t,i,"validId"),s=a.getCellProperty(t,i,"synoInvalid");if(!Ext.isEmpty(e)&&s){if(!(n=a.getValidationPlugin().getValidationView(e,t,i)))break;o=e1(n),this.getComponent("message_field").setValue(o),this.saveCoords(t,i),r=!0}else this.hidePanel();break}case"rearrange":case"cellSelect":r=this.sameCoordsAndShowing(t,i);break;default:this.hidePanel()}return Promise.resolve(r)}}),Ext.define("SYNO.SDS.Office.Sheet.FloatComment",{extend:"SYNO.SDS.Office.Sheet.FloatPanel",constructor:function(e){this.owner=e.owner,this.activeId=null,this.isNewComment=!1,this.focusAfterShow=!1,SYNO.SDS.Office.Sheet.FloatPanel.prototype.constructor.apply(this,arguments),this.mon(SYNO.SDS.Office.GetWindow().getEventMgr(),{comment_changed:e=>this.onCommentChanged(e)}),this.threadVuePool=[],this.threadCount=0,this.addCommentIdMap=new Map},onKeyDown:function(e){e.ctrlKey&&(67===e.keyCode||86===e.keyCode||88===e.keyCode)&&e.stopPropagation()},setPagePosition:function(e,t){for(let i=0;i<this.threadCount;i++){let n=this.threadVuePool[i];n.top=t,n.left=e,t+=n.threadInstance.getHeight()+5}for(let e=this.threadCount;e<this.threadVuePool.length;e++){let t=this.threadVuePool[e];t.top=-9999,t.left=-9999}},showPanel:function(e){this.setPagePosition(e.left,e.top),this.show(),this.focusAfterShow&&(this.threadVuePool[0].threadInstance.setEditorFocus(),this.focusAfterShow=!1)},hidePanel:function(e){for(let e=0;e<this.threadCount;e++)this.threadVuePool[e].active=!1;this.hide(),this.clearRecord(),e&&(0,A.c)().reFocus()},updatePanel:async function(){if(this.hidden||!this.targetCoords||this.isNewComment)return;let e=this._getComments(this.targetCoords.row,this.targetCoords.col);if(e&&0!==e.length)if(this.activeId){let t=e.find(e=>e.id===this.activeId);t?await this.prepareReplyThread(t,!0,!1):this.hidePanel()}else await this.prepareReplyThreads(e);else this.hidePanel();this.fireRearrangeEvent()},prepareShow:function(e,t,i){let n,o=!1,r=this._getComments(t,i),a=r&&r.length>0;switch(e){case"onCellMouseOver":this.commentPanelIsHidden()&&((0,eK.isMobileLayout)()?o=!1:this.activeId||this.isNewComment?o=this.sameCoordsAndShowing(t,i):a?(this.sameCoordsAndShowing(t,i)||(n=this.prepareReplyThreads(r),this.saveCoords(t,i)),o=!0):this.hidePanel());break;case"cellSelect":this.commentPanelIsHidden()&&((0,eK.isMobileLayout)()?o=!1:(this.activeId||this.isNewComment)&&this.threadVuePool[0].threadInstance.hasCreatingValue()?o=this.sameCoordsAndShowing(t,i):(this.activeId||this.isNewComment)&&this.sameCoordsAndShowing(t,i)?o=!0:a?(n=this.prepareReplyThread(r[0],!0,!1),this.activeId=r[0].id,this.saveCoords(t,i),o=!0):this.hidePanel());break;case"rearrange":o=this.sameCoordsAndShowing(t,i);break;case"insertComment":{if(this.sameCoordsAndShowing(t,i)&&(this.activeId||this.isNewComment))break;let e=!1;if(a||(e=!!(r=this._getAddComment(t,i))),a||e){if(!this.commentPanelIsHidden())break;n=this.prepareReplyThread(r[0],!0,e)}else{let e=(0,T.O1)();n=this.prepareAddDialog(t,i,e),this.handleActiveIdChange(e),this.focusAfterShow=!0}this.isNewComment=!0,this.saveCoords(t,i),o=!0;break}default:this.hidePanel()}return n?n.then(function(){return!0}):Promise.resolve(o)},getHeight:function(){let e=0;for(let t=0;t<this.threadCount;t++)e+=this.threadVuePool[t].threadInstance.getHeight();return e+(this.threadCount-1)*5},getWidth:function(){return this.threadCount>0?this.threadVuePool[0].$el.offsetWidth:0},_getComments:function(e,t){let i=(0,A.c)().sheet;if(!i.isCommentable())return null;let n=i.getCellProperty(e,t,"comment");return n?.map(e=>this.getCommentById(e)).filter(e=>e)??null},_getAddComment:function(e,t){let i=(0,A.c)().sheet;if(!i.isCommentable())return null;let n={sheetId:i.sheetId,row:e,col:t},o=this.getIdByCellPosition(n);if(!o)return null;let r=(0,ip.j)().getAddCommentElement(o);return r?[r]:null},clearRecord:function(){this.targetCoords=null,this.handleActiveIdChange(null),this.isNewComment=!1,this.threadCount=0},prepareReplyThreads:function(e){return this.threadCount=e.length,e.map((e,t)=>this._prepareThreadVue(e,t,!1,!1)),(0,M.nextTick)()},prepareReplyThread:function(e,t,i){return this.threadCount=1,this._prepareThreadVue(e,0,t,i),(0,M.nextTick)()},_prepareThreadVue:function(e,t,i,n){if(this.threadVuePool[t])this.threadVuePool[t].resetThread(e,this.threadVuePool[t].thread.id===e.id);else{let i=this.getEl().dom.appendChild(document.createElement("div")),n=(0,iu.aX)((0,M.defineComponent)({setup(t,i){let{expose:n}=i,o=(0,M.shallowRef)(e),r=(0,M.ref)(-9999),a=(0,M.ref)(-9999),s=(0,M.ref)(!1),l=(0,M.ref)(!1),c=(0,M.shallowRef)(null);return(0,M.watch)([o,s,l],e=>{let[t,i,n]=e,o=!n&&i?{sheetId:t.sheetId,row:t.row,col:t.col}:null;(0,A.c)().hot.getPlugin("synoComment").updateHighlight(o)}),n({threadInstance:c,thread:o,top:r,left:a,active:s,isNewComment:l,resetThread:function(e,t){t||(s.value=!1,c.value?.resetThread()),o.value=e}}),()=>(0,M.h)(iv,{ref_key:"threadInstance",ref:c,thread:o.value,enablePs:!0,floating:!0,transitionEl:SYNO.SDS.Office.Window.getMainPanel().getIconicontbar().btns.all_comment.getEl().dom,top:r.value,left:a.value,active:s.value,isNewComment:l.value})}}),{onThreadclick:this.onThreadClick.bind(this),onResize:this.onHeightChanged.bind(this),onThreadResolve:this.handleResolve.bind(this),onReplyEdit:this.handleReplyEdit.bind(this),onReplyDelete:this.handleReplyDelete.bind(this),onReplyApply:this.handleReplyApply.bind(this),onCommentCreate:this.handleCommentCreate.bind(this),onCommentCancel:this.handleCommentCancel.bind(this)}).mount(i);n.$el.style.zIndex=302,this.threadVuePool[t]=n}this.threadVuePool[t].active=i,this.threadVuePool[t].isNewComment=n},prepareAddDialog:function(e,t,i){var n={id:i,author:(0,t1.Kr)()??(0,t1.Uu)(),replies:[],text:""};let o={sheetId:(0,A.c)().sheet.sheetId,row:e,col:t};return this.addCommentIdMap.set(this.getPosString(o),i),(0,ip.j)().setAddCommentElement(i,n),this.prepareReplyThread(n,!0,!0)},onHeightChanged:function(){this.fireRearrangeEvent()},onThreadClick:function(e){if(this.activeId||this.isNewComment)return;let t=this.getThreadVueAndIndex(e);if(!t)return;let{threadVue:i,index:n}=t;this.handleActiveIdChange(e),i.active=!0,this.threadCount>1&&(this.threadVuePool[n]=this.threadVuePool[0],this.threadVuePool[0]=i,this.threadCount=1,this.fireRearrangeEvent())},handleResolve:function(e){(0,A.c)().resolveComment(e),this.hidePanel()},handleReplyEdit:function(e,t,i){(0,A.c)().editComment(e,t,i)},handleReplyDelete:function(e,t){if((0,A.c)().editComment(e,t,null),e===t)return void this.hidePanel()},handleReplyApply:function(e,t){(0,A.c)().replyComment({target:e,text:t})},handleCommentCreate:function(e,t){var i=this.targetCoords.row,n=this.targetCoords.col,o=(0,A.c)();o.createComment({id:e.id,type:ih.xs.pV,text:t,row:i,col:n,sheetId:o.sheet?.sheetId,cellText:o.sheet?.getCellTextDesc(i,n)?.v??""}),this.removeAddCommentInStoreByPos({sheetId:o.sheet.sheetId,row:i,col:n}),this.hidePanel(!0)},handleCommentCancel:function(){let e={sheetId:(0,A.c)().sheet.sheetId,row:this.targetCoords.row,col:this.targetCoords.col};this.removeAddCommentInStoreByPos(e),this.hidePanel(!0)},onCommentChanged:function(e){this.updatePanel()},commentPanelIsHidden:function(){return!this.findAppWindow().getMainPanel().right_panel.isPanelActive(id._)},getCommentById:function(e){return ii(A.rb.getWorkbook().getCommentStore().getCommentById(e))},getThreadVueAndIndex:function(e){let t=this.threadVuePool.slice(0,this.threadCount).findIndex(t=>t.threadInstance.thread.id===e);return -1===t?null:{threadVue:this.threadVuePool[t],index:t}},handleActiveIdChange:function(e){let t=this.activeId,i=this.getThreadVueAndIndex(t)?.threadVue?.threadInstance;(0,ip.j)().hasAddCommentElement(t)&&!i?.hasCreatingValue()&&this.removeAddCommentInStoreById(t),this.activeId=e},getPosString:function(e){return`${e.sheetId}-${e.row}-${e.col}`},getIdByCellPosition(e){return this.addCommentIdMap.get(this.getPosString(e))},removeAddCommentIdByPos(e){this.addCommentIdMap.delete(this.getPosString(e))},removeAddCommentIdById(e){for(let[t,i]of this.addCommentIdMap.entries())if(i===e)return void this.addCommentIdMap.delete(t)},removeAddCommentInStoreByPos(e){let t=this.getIdByCellPosition(e);(0,ip.j)().removeAddCommentElement(t),this.removeAddCommentIdByPos(e)},removeAddCommentInStoreById(e){(0,ip.j)().removeAddCommentElement(e),this.removeAddCommentIdById(e)}}),Ext.ns("SYNO.SDS.Office.Sheet.Mixin").OptionFloatPanel={showFloat:function(e){var t=e.getActiveDom().getBoundingClientRect();this.drawingView=e,this.setPagePosition(t.left,t.bottom),this.show()}},Ext.define("SYNO.SDS.Office.Sheet.Image.OptionFloatPanel",{extend:"SYNO.SDS.Office.OptionFloatPanel",constructor:function(e){let t={children:[{html:SYNO.SDS.Office._T("common","reset"),handler:this.onReset,scope:this},{html:SYNO.SDS.Office._T("chart","clone"),handler:this.onClone,scope:this},{html:SYNO.SDS.Office._T("common","delete"),handler:this.onDelete,scope:this},{html:SYNO.SDS.Office._T("handsontable","replace"),handler:this.onReplace,scope:this}]};SYNO.SDS.Office.OptionFloatPanel.prototype.constructor.call(this,Ext.apply(t,e))},onReset:function(){let e=this.findDrawing();if(!e)return;let t=this.drawingView.getAbsolutePosition(e.position),i=this.drawingView.getDrawableDom(),n=t.top,o=t.left,r=i.naturalWidth,a=i.naturalHeight,s=(0,A.c)().hot.getPlugin("synoDrawingController").createDrawingPosition({top:n,left:o,height:a,width:r});(0,A.c)().resizeImage(e.id,s)},onClone:function(){let e=this.findDrawing();if(!e)return;let t=this.drawingView.getAbsolutePosition(e.position);t7.insertImage({src:this.drawingView.getExternalURLSync(),type:e.position.type,height:t.height,width:t.width})},onDelete:function(){this.drawingView&&(0,A.c)().removeImage(this.drawingView.id)},onReplace(){let e=this.findDrawing();e&&SYNO.SDS.Office.GetWindow().getAction().uploadImage(async t=>{if(!t.files||0===t.files.length)return;let{height:i,width:n,id:o}=t.files[0],r=i,a=n,s=this.drawingView.getAbsolutePosition(e.position),l=s.top,c=s.left;s.height/s.width<i/n?(a=Math.round(n*(r=s.height)/i),c+=(s.width-a)/2):(r=Math.round(i*(a=s.width)/n),l+=(s.height-r)/2);let d=(0,A.c)().sheet,u=(0,A.c)().hot.getPlugin("synoDrawingController"),h=u.createDrawingPosition({top:l,left:c,height:r,width:a},e.position.type);await A.rb.getAction().replaceImage(d.sheetId,this.drawingView.id,o,h),u.changeActiveById(o,"select")})},findDrawing(){if(this.drawingView)return(0,A.c)().sheet.getDrawingPlugin().getImageJSONById(this.drawingView.id)}}),Ext.override(SYNO.SDS.Office.Sheet.Image.OptionFloatPanel,SYNO.SDS.Office.Sheet.Mixin.OptionFloatPanel),i(18095),Ext.define("SYNO.SDS.Office.Sheet.LinkPanel",{extend:"SYNO.SDS.Office.LinkPanel",constructor:function(e){SYNO.SDS.Office.LinkPanel.prototype.constructor.call(this,Ext.apply({floating:!0},e)),this.mon(this.getEl(),"mouseenter",this.onMouseEnter),this.coords=null},onMouseEnter:Ext.emptyFn,alignToCell:function(e,t,i,n){this._checkLink(t,i,n,t.getCellTextDesc(i,n))?(this.setPosition(...this.getPositions(e)),this.coords=[i,n],this.hidden&&this.show()):!1===this.hidden&&(this.hide(),this.coords=null)},getPositions:function(e){let t,i=this.getEl().translatePoints(e.x,e.y),n=i.left+15,o=this.getEl().dom.parentElement.offsetWidth;return[n+this.getWidth()<=o?n:Math.max(Math.min(o,i.left+e.width)-15-this.getWidth(),0),i.top-this.getHeight()]},_selectCell:function(){this.coords&&this.owner.hot.selectCell(this.coords[0],this.coords[1])},onEdit:function(){this._selectCell(),this.owner.insertLink(),this.hide()},onDelete:function(){this._selectCell(),this.owner.removeLink(),this.hide()},onLinkClick:function(e){var t=e.target.getAttribute("href");t.startsWith("#")&&(e.preventDefault(),t.length>1&&this.panel.gotoHash(t),this.hide())},onCopy:function(){let e=this.el.child(".link");if(e){let t=e.dom.getAttribute("href");t.startsWith("#")&&(t=location.origin+location.pathname+location.search+t),(0,O.vQ)(t),(0,A.c)().reFocus()}this.hide()},_checkLink:function(e,t,i,n){var o,r;if(this.linkEditor&&!this.linkEditor.hidden||!n?.l)return!1;let a=e.getCellHyperlinkState(t,i);return a?(o=a.href,r=a.location):o=n?.e,SYNO.SDS.Office.LinkEditor.isDriveLink(o)&&(o=SYNO.SDS.Office.LinkEditor.getFullDriveLink(o)),this.fillLink(o,r||o),!0},setLinkComponentsVisible:function(){this.setControlVisible((0,k.eL)().editable),this.setCopyVisible(!0)}}),Ext.define("SYNO.SDS.Office.Sheet.Chart.OptionMenu",{extend:"SYNO.SDS.Office.Menu",constructor:function(e){this.drawingView=null;var t=Ext.apply({items:[{text:SYNO.SDS.Office._T("common","edit"),listeners:{scope:this,click:this.onEdit}},{text:SYNO.SDS.Office._T("chart","convert_to_image"),listeners:{scope:this,click:this.onConvert}}],listeners:{show:function(e){e.button.classList.add("x-btn-menu-active")},hide:function(e){e.button.classList.remove("x-btn-menu-active")}}},e);SYNO.SDS.Office.Menu.prototype.constructor.call(this,t)},showMenu:function(e,t){this.drawingView=e,this.button=t;var i=t.getBoundingClientRect();this.showAt([i.left,i.bottom])},onEdit:function(){let e=this.findDrawing();e&&this.getAppWindow().mainPanel.showChartEditorPanel(e)},onConvert:function(){let e=this.findDrawing();if(!e||!e.chartInfo.isDrawable())return;let t=this.getAppWindow();t.setStatusBusy();let i=document.createElement("div");i.innerHTML=this.drawingView.getSerializer(e).output();let n=this.drawingView.getAbsolutePosition(e.position);t7.uploadImage({src:i.firstChild.src,width:n.width+2,height:n.height+2}).then(e=>{let{resp:i}=e;!(!i||!i.files||Array.isArray(i.files[0]))&&i.files[0].id&&t.sheetmgr.convertChartToImage(this.drawingView.id,i.files[0].id)}).catch(()=>{}).then(()=>{t.clearStatusBusy()})},findDrawing:function(){return this.drawingView?(0,A.c)().sheet.getDrawingPlugin().getChartJSONById(this.drawingView.id):null},getAppWindow:function(){return SYNO.SDS.Office.Window}}),Ext.define("SYNO.SDS.Office.Sheet.RemoveDuplicatesWindow",{extend:"SYNO.SDS.Drive.ModalWindow",constructor:function(e){this.sheet=e.sheet,this.hot=e.hot,SYNO.SDS.Drive.ModalWindow.prototype.constructor.call(this,this.fillConfig(e)),this.expandRangeButton.el.on("click",this.onClickExpandRange,this),this.setRange(e.range,e.suggestRange)},fillConfig:function(e){let t={itemId:"remove_duplicates_window",cls:"syno-o-remove-duplicates-window",bodyCfg:{cls:"remove-duplicates-window-body syno-ux-panel"},padding:"8px 28px",width:400,height:"auto",resizable:!1,title:SYNO.SDS.Office._T("remove_duplicates","function_name"),buttons:[{itemId:"cancel_button",text:_T("common","cancel"),scope:this,handler:this.onCancel},{itemId:"apply_button",text:SYNO.SDS.Office._T("remove_duplicates","window_button"),btnStyle:"default",scope:this,handler:this.onApply}],items:[{xtype:"container",items:[this.rangeSizeDisplay=new SYNO.ux.DisplayField({itemId:"selected_range",cls:"remove-duplicates-range-size",value:SYNO.SDS.Office._T("remove_duplicates","range_size_n_row_n_col")}),this.expandRangeButton=new SYNO.ux.DisplayField({itemId:"expand_selection",xtype:"syno_displayfield",cls:"remove-duplicates-expand-range",value:SYNO.SDS.Office._T("remove_duplicates","expand_range")})]},this.headerCheckbox=new SYNO.ux.Checkbox({itemId:"has_header_row",cls:"remove-duplicates-header-checkbox",indent:0,boxLabel:SYNO.SDS.Office._T("remove_duplicates","has_header"),checked:!1,listeners:{scope:this,check:this.onClickHeaderCheckbox}}),this.columnSelectPanel=new SYNO.SDS.Office.Sheet.RemoveDuplicatesColumnPanel({itemId:"column_selection_panel",range:e.range,cls:"remove-duplicates-columns-panel",height:240,listeners:{scope:this,change:this.onSelectedColumnsChanged}}),this.duplicateCountDisplay=new SYNO.ux.DisplayField({itemId:"duplicate_count",xtype:"syno_displayfield",value:SYNO.SDS.Office._T("remove_duplicates","found_dup_n")})]};return Ext.apply(t,e)},onClickExpandRange(){this.setRange(this.suggestRange,null),this.focusEl.focus()},onClickHeaderCheckbox(){this.updateAll()},onSelectedColumnsChanged(){this.updateDuplicateCount(),this.buttons.find(e=>"apply_button"===e.itemId).setDisabled(0===this.columnSelectPanel.getSelectedCount())},setRange(e,t){this.range=e.clone().normalize(),this.suggestRange=t&&t.clone().normalize(),this.updateAll()},updateAll(){this.updateRangeSizeDisplay(),this.updateExpandRangeButton(),this.updateSelectedRange(),this.updateColumnPanel(),this.updateDuplicateCount(),this.doLayout()},updateRangeSizeDisplay(){let e=this.getDataRange(),t=e.getHeight(),i=e.getWidth(),n=SYNO.SDS.Office._T("remove_duplicates",`range_size_${t>=2?"n":"1"}_row_${i>=2?"n":"1"}_col`);n=String.format(n,t,i),this.rangeSizeDisplay.setValue(n)},updateExpandRangeButton(){if(this.suggestRange&&!this.suggestRange.isEqual(this.range)){let e=ex.P6.coordToLabel(this.suggestRange.from),t=ex.P6.coordToLabel(this.suggestRange.to),i=SYNO.SDS.Office._T("remove_duplicates","expand_range");i=String.format(i,`${e}:${t}`),this.expandRangeButton.setValue(i),this.expandRangeButton.show()}else this.expandRangeButton.hide()},updateDuplicateCount(){let e,t=this.columnSelectPanel.getSelectedColumns(),i=this.getHeaderCheckboxValue(),{error:n,deletedCount:o}=A.rb.getAction().getRemoveDuplicatesResult(this.range,t,i);n&&(o=0);let r=o>=2?"n":o;e=String.format(SYNO.SDS.Office._T("remove_duplicates",`found_dup_${r}`),o),this.duplicateCountDisplay.setValue(e)},updateSelectedRange(){let[e,t,i,n]=this.getDataRange().toArray();this.hot.selectCell(e,t,i,n,!1)},updateColumnPanel(){this.columnSelectPanel.setRange(this.range,this.getHeaders());let e=A.rb.getAction()._getAlignedCellSize(this.range)?.[1]||1;this.columnSelectPanel.setCellWidth(e)},getHeaderCheckboxValue(){return this.headerCheckbox.getValue()},getHeaders(){if(!this.getHeaderCheckboxValue())return;let e=this.sheet.getMergePlugin(),t=this.range.clone();t.to.row=t.from.row;let{row:i,col:n}=this.range.from,o=this.sheet.getRangeTexts(t)[0];return o.map((t,r)=>{let a=n+r,s=e.getMergedRange(i,a),l=s?.from?.col;return s&&(t=o[s.from.col-n]),{text:t,col:a,mergedFrom:l}})},getDataRange(){return A.rb.getAction()._getNormalizedDataRange(this.range,this.getHeaderCheckboxValue())},onApply:function(){if(0===this.columnSelectPanel.getSelectedCount())return;this.hide();let e=this.columnSelectPanel.getSelectedColumns(),t=this.getHeaderCheckboxValue();A.rb.getAction().removeDuplicates(this.range,e,t)},onCancel:function(){this.hide()}}),Ext.define("SYNO.SDS.Office.Sheet.RemoveDuplicatesColumnPanel",{extend:"SYNO.ux.Panel",constructor:function(e){this.checkbox=[],this.isInternalCheck=!1,SYNO.ux.Panel.prototype.constructor.call(this,this.fillConfig(e)),this.setRange(e.range,null),this.cellWidth=1},setRange(e,t){this.range=e.clone().normalize(),this.updateCheckboxList(this.range,t)},setCellWidth(e){this.cellWidth=e||1;let t=this.range.getWidth();for(let i=0;i<this.checkbox.length;i++)i<t&&i%e==0?this.checkbox[i].show():this.checkbox[i].hide()},fillConfig:function(e){var t={autoFlexcroll:!0,padding:"8px",items:[this.selectAllCheckbox=new SYNO.ux.TriModeCheckbox({itemId:"select_all",cls:"remove-duplicates-select-all",indent:0,boxLabel:SYNO.SDS.Office._T("filter","select_all"),checked:!0,triValue:!0,hideLabel:!0,getNextStat:function(){return this.values[(this.getCheckIndex()+1)%this.values.length]||!1},listeners:{scope:this,check:this.onClickSelectAll}}),this.columnsContainer=new Ext.Container({itemId:"columns",items:[]})]};return Ext.apply(t,e)},updateCheckboxList:function(e,t){let i=(e=e??this.range).getWidth();for(let n=0;n<i;n++){let i=ex.P6.columnIndexToLabel(e.from.col+n),o=String.format(SYNO.SDS.Office._T("handsontable","column_index"),i),r=t?.[n]?.text;r&&t?.[n]?.mergedFrom!=null&&(r+=` (${o})`),r||(r=o),n>=this.columnsContainer.items.length?this.addCheckbox(n,r):(this.checkbox[n].show(),this.checkbox[n].boxlabelEl.update(r))}for(let e=i;e<this.checkbox.length;e++)this.checkbox[e].hide()},addCheckbox:function(e,t){e=e??this.columnsContainer.items.length-1;let i=new SYNO.ux.Checkbox({indent:1,boxLabel:t,checked:this.selectAllCheckbox.getRealValue(),idx:e,listeners:{scope:this,check:this.onClickCheckbox}});return this.checkbox.push(i),this.columnsContainer.insert(e,i),i},onClickSelectAll(e,t){null===t||this.isInternalCheck||(this.updateCheckboxes(),this.fireEvent("change"))},onClickCheckbox(e,t){this.isInternalCheck||(this.updateSelectAllCheckbox(),this.fireEvent("change"))},updateCheckboxes:function(){this.isInternalCheck=!0;let e=this.selectAllCheckbox.getValue();this.checkbox.forEach(function(t){t.setValue(e)}),this.isInternalCheck=!1},updateSelectAllCheckbox:function(){let e=this.getSelectedCount();this.isInternalCheck=!0,0===e?this.selectAllCheckbox.setValue(!1):e===this.range.getWidth()?this.selectAllCheckbox.setValue(!0):this.selectAllCheckbox.setValue(null),this.isInternalCheck=!1},getSelectedColumns:function(){return this.checkbox.map(e=>!e.hidden&&e.getValue())},getSelectedCount:function(){return this.getSelectedColumns().filter(e=>e).length}}),i(55342),Ext.define("SYNO.SDS.Office.Sheet.SplitTextWindow",{extend:"SYNO.SDS.Office.Base.Window.BaseTool",constructor:function(e){this._internalUpdate=!1,this.hot=e.hot,this.range=this.hot.getSelectedRange(),SYNO.SDS.Office.Base.Window.BaseTool.prototype.constructor.call(this,this.fillConfig(e)),this._appliedSettings={delimiters:[],consecutiveAsOne:!1},this._hasActionDone=!1,this._isAddingItem=!1},initialDelimiters:[",","."," ","\n"],fillConfig:function(e){let t=SYNO.SDS.Office._T;return this.dataStore=new Ext.data.ArrayStore({fields:["index","name","value","display","text","cls"],data:[[0,"comma",",",",",t("split_text","delimiter_comma")],[1,"period",".",".",t("split_text","delimiter_period")],[2,"space"," ","␣",t("split_text","delimiter_space"),"wide-letter-spacing"],[3,"newline","\n","↵",t("split_text","delimiter_newline")]],sortInfo:{field:"index",direction:"ASC"}}),Ext.apply({cls:"syno-o-split-text-window",title:!1,header:!1,draggable:!1,elements:"body",autoFlexcroll:!1,resizable:!1,padding:"19px 19px 0 19px",items:[new SYNO.ux.FormPanel({autoFlexcroll:!1,items:[this.delimiterField=new SYNO.ux.SuperBoxSelect({cls:"delimiter-input",fieldLabel:t("split_text","delimiters"),emptyText:t("split_text","delimiters_placeholder"),grow:!0,resizable:!0,store:this.dataStore,mode:"local",allowAddNewData:!0,addNewDataOnBlur:!0,renderFieldBtns:!1,displayField:"value",valueField:"value",valueDelimiter:"",tpl:`
                <tpl for=".">
                  <div ext:qtip="{text}" class="syno-o-split-text x-combo-list-item" data-name="{name}">
                    <span class="delimiter-symbol delimiter-symbol-{name}"></span>
                    <span class="delimiter-name">({text})</span>
                  </div>
                </tpl>`,displayFieldTpl:`
                <tpl for=".">
                  <div ext:qtip="{text}" class="syno-o-split-text syno-ux-superboxselect-item-display" data-name="{name}">
                    <span class="delimiter-value {cls}" data-value="{value}">{display}</span>
                  </div>
                </tpl>`,validationEvent:"keyup",validationDelay:3e3,validateAll:function(){let e=this.getRawValue();return e&&""!==e&&this.fireNewItemEvent(e),!0},triggerAction:"all",onClick:function(){this.doQuery("",!0),this.clearCurrentFocus(),this.autoSize()},onWrapClick:function(){this.doQuery("",!0),this.el.focus(),this.clearCurrentFocus()},enableKeyEvents:!0,listeners:{scope:this,expand:()=>{this.dataStore.sort("index","ASC"),this.delimiterField.restrictHeight()},newitem:(e,t,i)=>{this._isAddingItem=!0,this.delimiterField.addItem(this._strToRecord(t))},additem:()=>{this._isAddingItem=!0,this.onDelimitersChange()},removeitem:(e,t,i)=>{this.initialDelimiters.includes(t)||this.dataStore.remove(i),this.onDelimitersChange()},keydown:(e,t)=>{t.getKey()===t.ENTER&&(t.altKey?this.delimiterField.addItem({name:"newline",value:"\n",display:"↵",text:"New line character",cls:""}):(t.ctrlKey||!this._isAddingItem)&&this.onApply())}}}),this.consecutiveAsOneCheckbox=new SYNO.ux.Checkbox({boxLabel:t("split_text","consecutive_as_one"),listeners:{scope:this,check:(e,t)=>{this.onChange(e,t,this._appliedSettings.consecutiveAsOne)}}})]})],buttons:[{itemId:"cancel",text:t("common","cancel"),scope:this,handler:this.onCancel},{itemId:"apply",text:t("common","ok"),btnStyle:"default",scope:this,handler:this.onApply,disabled:!0}],listeners:{scope:this,show:()=>{this.findAppWindow().showSheetScrollProxyMask(),this.delimiterField.focus(),this.delimiterField.initList(),this.delimiterField.doQuery("",!0),this.focusEl.on("focus",()=>{this.delimiterField.focus()},{single:!0}),this.delimiterField.wrap.on("mousedown",e=>{e.stopPropagation()})},close:()=>{this.findAppWindow().hideSheetScrollProxyMask()}}},e)},getDraggableEl:function(){return this.bwrap},onDelimitersChange(){if(!this.isVisible()||this._internalUpdate)return;let e=this._appliedSettings.delimiters,t=this.getDelimiterValues();e.join("\n")!==t.join("\n")&&setTimeout(()=>this.onChange(),100)},async onChange(){if(this._internalUpdate)return;let e=this.getValues(),t=this._hasActionDone;if(this._hasActionDone&&(await A.rb.getUndoRedo().undo(!1),tp().updateValue(),this._hasActionDone=!1),0===e.delimiters.length){this.hot.selectRanges([this.range.toArray()]),this._appliedSettings=e,this.enableApplyButton(this._appliedSettings.delimiters.length>0);return}let i=A.rb.getUndoRedo().getDoneActionLength();this.addClass("split-text-non-interactive");let n=await A.rb.getAction().splitTextOfRange(this.range,e);this.findAppWindow().manager.orderWindows(),this.removeClass("split-text-non-interactive"),n?(A.rb.getUndoRedo().getDoneActionLength()>i&&(this._hasActionDone=!0),this._appliedSettings=e):(t?(await A.rb.getUndoRedo().redo(),tp().updateValue(),this._hasActionDone=!0):this.hot.selectRanges([this.range.toArray()]),this.setValues(this._appliedSettings)),this.dataStore.sort("index","ASC"),this.enableApplyButton(this._appliedSettings.delimiters.length>0),this.delimiterField.focus(),this._isAddingItem=!1},onCancel:async function(){this._hasActionDone&&await (0,A.c)().undo(),this.hot.selectRanges([this.range.toArray()]),this.close()},onApply:function(){this.delimiterField.items.length>0&&this.delimiterField.items.items.map(e=>e.value).join("\n")===this._appliedSettings.delimiters.join("\n")&&this.close()},enableApplyButton(e){this.buttons.find(e=>"apply"===e.itemId)[e?"enable":"disable"]()},getValues(){return{delimiters:this.getDelimiterValues(),consecutiveAsOne:this.consecutiveAsOneCheckbox.getValue()}},getDelimiterValues(){return this.delimiterField.getValueEx().map(e=>e.value)},setValues(e){this._internalUpdate=!0,this.delimiterField.setValueEx(e.delimiters.map(this._strToRecord.bind(this))),this.consecutiveAsOneCheckbox.setValue(e.consecutiveAsOne),this._internalUpdate=!1},_strToRecord:function(e){return{index:this.initialDelimiters.indexOf(e),name:"",value:e,display:e.replace(/ /g,"␣"),text:e.replace(/ /g," ␣ "),cls:e.match(/^ +$/)?"wide-letter-spacing":""}}});let ib={key:0},iy={key:0},iw=["href"];var i_=i(53683),ix=i(46001);let iS=["width","height"],iC=(0,M.defineComponent)({name:"vIconIconFieldsetArrowUp",props:{width:{type:[Number,String],default:24},height:{type:[Number,String],default:24}}}),ik=(0,q.default)(iC,[["render",function(e,t,i,n,o,r){return(0,M.openBlock)(),(0,M.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e.width,height:e.height},t[0]||(t[0]=[(0,M.createElementVNode)("path",{"fill-rule":"evenodd",d:"M6.293 15.5a1 1 0 0 0 1.414 0L12 11.207l4.293 4.293a1 1 0 0 0 1.414-1.414l-4.646-4.647a1.5 1.5 0 0 0-2.122 0l-4.646 4.647a1 1 0 0 0 0 1.414Z","clip-rule":"evenodd"},null,-1)]),8,iS)}]]),iI=["width","height"],iA=(0,M.defineComponent)({name:"vIconIconFieldsetArrowDown",props:{width:{type:[Number,String],default:24},height:{type:[Number,String],default:24}}}),iT=(0,q.default)(iA,[["render",function(e,t,i,n,o,r){return(0,M.openBlock)(),(0,M.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e.width,height:e.height},t[0]||(t[0]=[(0,M.createElementVNode)("path",{"fill-rule":"evenodd",d:"M6.293 9.293a1 1 0 0 1 1.414 0L12 13.586l4.293-4.293a1 1 0 1 1 1.414 1.414l-4.646 4.647a1.5 1.5 0 0 1-2.122 0l-4.646-4.647a1 1 0 0 1 0-1.414Z","clip-rule":"evenodd"},null,-1)]),8,iI)}]]),iE=["width","height"],iR=(0,M.defineComponent)({name:"vIconGridActionDelete",props:{width:{type:[Number,String],default:24},height:{type:[Number,String],default:24}}}),iD=(0,q.default)(iR,[["render",function(e,t,i,n,o,r){return(0,M.openBlock)(),(0,M.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e.width,height:e.height},t[0]||(t[0]=[(0,M.createElementVNode)("path",{"fill-rule":"evenodd",d:"M7.293 7.293a1 1 0 0 1 1.414 0l8.485 8.485a1 1 0 0 1-1.414 1.414L7.293 8.707a1 1 0 0 1 0-1.414Z","clip-rule":"evenodd"},null,-1),(0,M.createElementVNode)("path",{"fill-rule":"evenodd",d:"M7.293 17.192a1 1 0 0 1 0-1.414l8.485-8.485a1 1 0 1 1 1.414 1.414l-8.485 8.485a1 1 0 0 1-1.414 0Z","clip-rule":"evenodd"},null,-1)]),8,iE)}]]),iO=["width","height"],iM=(0,M.defineComponent)({name:"vIconIcFormulaHint",props:{width:{type:[Number,String],default:8},height:{type:[Number,String],default:16}}}),iN=(0,q.default)(iM,[["render",function(e,t,i,n,o,r){return(0,M.openBlock)(),(0,M.createElementBlock)("svg",{viewBox:"0 0 8 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:e.width,height:e.height},t[0]||(t[0]=[(0,M.createElementVNode)("path",{d:"M3.4248 10.7085C3.42057 10.5562 3.41846 10.4419 3.41846 10.3657C3.41846 9.91715 3.48193 9.52995 3.60889 9.2041C3.70199 8.95866 3.85221 8.7111 4.05957 8.46143C4.21191 8.27946 4.48486 8.01497 4.87842 7.66797C5.2762 7.31673 5.53434 7.03743 5.65283 6.83008C5.77132 6.62272 5.83057 6.39632 5.83057 6.15088C5.83057 5.70654 5.65706 5.31722 5.31006 4.98291C4.96305 4.64437 4.53776 4.4751 4.03418 4.4751C3.54753 4.4751 3.14128 4.62744 2.81543 4.93213C2.48958 5.23682 2.27588 5.71289 2.17432 6.36035L1 6.2207C1.10579 5.35319 1.41895 4.6888 1.93945 4.22754C2.46419 3.76628 3.15609 3.53564 4.01514 3.53564C4.92497 3.53564 5.65072 3.7832 6.19238 4.27832C6.73405 4.77344 7.00488 5.37223 7.00488 6.07471C7.00488 6.48096 6.90967 6.85547 6.71924 7.19824C6.52881 7.54102 6.15641 7.95785 5.60205 8.44873C5.22965 8.77881 4.98633 9.02214 4.87207 9.17871C4.75781 9.33529 4.67318 9.51514 4.61816 9.71826C4.56315 9.92139 4.53141 10.2515 4.52295 10.7085H3.4248ZM3.35498 13V11.6987H4.65625V13H3.35498Z",fill:"white"},null,-1)]),8,iO)}]]),iP=(0,to.defineStore)("formulaState",()=>({isOpened:(0,M.ref)(!0),isExpanded:(0,M.ref)(!0)})),iL=(0,M.defineComponent)({name:"FormulaSyntax",components:{vSlideUpDownTransition:i_.Z,vIcon:eM.Z,vScrollbar:ix.Z},props:{sep:{type:String,default:","},maxAllowedHeight:{type:Number,default:280},constraintEl:{type:HTMLElement,default:void 0}},data:()=>({funcName:"",argsIndex:0,formulaData:{},lang:_S("lang"),closeIconSize:24,ArrowUpIcon:(0,M.markRaw)(ik),ArrowDownIcon:(0,M.markRaw)(iT),CloseIcon:(0,M.markRaw)(iD),QuestionIcon:(0,M.markRaw)(iN),expandableItemStyle:{},questionButtonStyle:{},targetInfo:null,maxScrollableHeight:280}),computed:{showSyntax(){return!(0,eK.isMobileLayout)()&&!!this.formulaData[this.funcName]},isOpened:()=>iP().isOpened,isExpanded:()=>iP().isExpanded,args(){let{variadic:e,arguments:t}=this.formulaData[this.funcName];return t.map((i,n)=>{let{name:o,required:r}=i,a=e>0&&n>=t.length-e?`${o}, ...`:o;return!1===r?`[${a}]`:a})},activeIndex(){let e=this.argsIndex,t=this.args,i=t?t.length:0;return e>0&&e>=i&&t[i-1].includes("...")&&(e=i-1),e},negativeHalfCloseIconSize(){return`${-this.closeIconSize/2}px`}},mounted(){i(68036)(`./${this.lang}.json`).then(e=>{let{default:t}=e;this.formulaData=(0,M.markRaw)(t)})},methods:{setState(e,t){this.funcName=e,this.argsIndex=t},collapse(){this.funcName=""},align(e,t){this.$nextTick(()=>{this.showSyntax&&(this.targetInfo=(0,M.markRaw)({target:e,targetTop:e.getBoundingClientRect().top,targetBottom:e.getBoundingClientRect().bottom,targetLeft:e.getBoundingClientRect().left,isFixedEditor:t}),this.alignExpandableItem(t),this.alignQuestionButton(t))})},alignExpandableItem(e){let t=this.$refs.expandableItem;if(t){let i=t.offsetWidth,{right:n,bottom:o}=(this.constraintEl??document.body).getBoundingClientRect(),r=+!e;this.maxScrollableHeight=this.maxAllowedHeight,this.$nextTick(()=>{let e=t.offsetHeight-(this.isExpanded?this.maxScrollableHeight:0),a=this.targetInfo.targetBottom+t.offsetHeight+r<o||o-this.targetInfo.targetBottom>this.targetInfo.targetTop;this.maxScrollableHeight=Math.min(a?o-this.targetInfo.targetBottom-e-r:this.targetInfo.targetTop-e-r,this.maxAllowedHeight);let s=e+(this.isExpanded?this.maxScrollableHeight:0);this.expandableItemStyle={top:a?`${this.targetInfo.targetBottom+r}px`:`${this.targetInfo.targetTop-s-r}px`,left:this.targetInfo.targetLeft+i<n?`${this.targetInfo.targetLeft}px`:"",right:this.targetInfo.targetLeft+i>=n?"0px":""}})}},alignQuestionButton(e){let t=this.$refs.questionButton;t&&(e?this.questionButtonStyle={top:`${this.targetInfo.targetTop}px`,left:`${this.targetInfo.targetLeft-1.5*t.offsetWidth}px`}:this.questionButtonStyle={top:`${this.targetInfo.targetTop}px`,left:`${this.targetInfo.targetLeft-t.offsetWidth}px`})},onClose(){iP().isOpened=!1,this.$nextTick(()=>{this.alignQuestionButton(this.targetInfo.isFixedEditor)}),this.updateStateSetting()},onQuestionClick(){iP().isOpened=!0,this.$nextTick(()=>{this.alignExpandableItem(this.targetInfo.isFixedEditor)}),this.updateStateSetting()},onHeaderClick(){let e=iP();e.isExpanded=!e.isExpanded,this.updateStateSetting()},async updateStateSetting(){let e=iP();await (0,W.L)({formula_panel_opened:e.isOpened,formula_panel_expanded:e.isExpanded})},handleKeydown(e){let t=(e.ctrlKey||e.metaKey)&&"z"===e.key,i=(e.ctrlKey||e.metaKey)&&"y"===e.key;(t||i||"Tab"===e.key)&&e.preventDefault()},isFocused(){return document.activeElement===this.$refs.expandableItem}}});var iB=i(7366),iF=i.n(iB);let iV={};iV.$style=iF();let iz=(0,q.default)(iL,[["render",function(e,t,i,n,o,r){let a=(0,M.resolveComponent)("v-icon"),s=(0,M.resolveComponent)("v-scrollbar"),l=(0,M.resolveComponent)("v-slide-up-down-transition");return(0,M.openBlock)(),(0,M.createElementBlock)(M.Fragment,null,[e.showSyntax&&e.isOpened?((0,M.openBlock)(),(0,M.createElementBlock)("div",{key:0,ref:"expandableItem","syno-id":"expandable-item",class:(0,M.normalizeClass)(e.$style["expandable-item"]),style:(0,M.normalizeStyle)(e.expandableItemStyle),tabindex:"0",onMousedown:t[2]||(t[2]=(0,M.withModifiers)(()=>{},["stop"])),onWheel:t[3]||(t[3]=(0,M.withModifiers)(()=>{},["stop"])),onTouchstart:t[4]||(t[4]=(0,M.withModifiers)(()=>{},["stop"])),onTouchmove:t[5]||(t[5]=(0,M.withModifiers)(()=>{},["stop"])),onTouchend:t[6]||(t[6]=(0,M.withModifiers)(()=>{},["stop"])),onTouchcancel:t[7]||(t[7]=(0,M.withModifiers)(()=>{},["stop"])),onKeydown:t[8]||(t[8]=(0,M.withModifiers)(function(){for(var t=arguments.length,i=Array(t),n=0;n<t;n++)i[n]=arguments[n];return e.handleKeydown&&e.handleKeydown(...i)},["stop"])),onContextmenu:t[9]||(t[9]=(0,M.withModifiers)(()=>{},["stop","prevent"]))},[(0,M.createElementVNode)("div",{ref:"header",class:(0,M.normalizeClass)(e.$style.top),onClick:t[1]||(t[1]=(0,M.withModifiers)(function(){for(var t=arguments.length,i=Array(t),n=0;n<t;n++)i[n]=arguments[n];return e.onHeaderClick&&e.onHeaderClick(...i)},["stop"]))},[(0,M.createElementVNode)("div",{class:(0,M.normalizeClass)(e.$style["formula-syntax"])},[(0,M.createElementVNode)("span",null,(0,M.toDisplayString)(e.funcName)+"(",1),((0,M.openBlock)(!0),(0,M.createElementBlock)(M.Fragment,null,(0,M.renderList)(e.args,(t,i)=>((0,M.openBlock)(),(0,M.createElementBlock)("span",{key:i},[i>0?((0,M.openBlock)(),(0,M.createElementBlock)("span",ib,(0,M.toDisplayString)(e.sep+" "),1)):(0,M.createCommentVNode)("",!0),(0,M.createElementVNode)("span",{class:(0,M.normalizeClass)({[e.$style["green-word"]]:i===e.activeIndex})},(0,M.toDisplayString)(t),3)]))),128)),t[12]||(t[12]=(0,M.createElementVNode)("span",null,")",-1))],2),(0,M.createElementVNode)("div",{class:(0,M.normalizeClass)(e.$style["toggle-img"])},[(0,M.createVNode)(a,{size:[24,24],"svg-icon":e.isExpanded?e.ArrowUpIcon:e.ArrowDownIcon,"svg-icon-set":"set14"},null,8,["svg-icon"])],2),(0,M.createElementVNode)("div",{class:(0,M.normalizeClass)(e.$style["close-img"]),onClick:t[0]||(t[0]=(0,M.withModifiers)(function(){for(var t=arguments.length,i=Array(t),n=0;n<t;n++)i[n]=arguments[n];return e.onClose&&e.onClose(...i)},["stop"]))},[(0,M.createVNode)(a,{size:[24,24],"svg-icon":e.CloseIcon,"svg-icon-set":"set22"},null,8,["svg-icon"])],2)],2),e.isExpanded?((0,M.openBlock)(),(0,M.createElementBlock)("hr",{key:0,class:(0,M.normalizeClass)(e.$style.hr)},null,2)):(0,M.createCommentVNode)("",!0),(0,M.createVNode)(l,null,{default:(0,M.withCtx)(()=>[e.isExpanded?((0,M.openBlock)(),(0,M.createElementBlock)("div",iy,[(0,M.createVNode)(s,{active:!0,"show-x-rail":!1,"view-style":{maxHeight:e.maxScrollableHeight+"px",overflow:"auto"}},{default:(0,M.withCtx)(()=>[(0,M.createElementVNode)("div",{class:(0,M.normalizeClass)(e.$style.bottom)},[(0,M.createElementVNode)("div",null,[(0,M.createTextVNode)((0,M.toDisplayString)(e.formulaData[e.funcName].description)+" ",1),(0,M.createElementVNode)("a",{href:`https://help.synology.com/spreadsheet/${e.lang}/functions/${e.formulaData[e.funcName].category}/${e.funcName}`,target:"_blank",class:(0,M.normalizeClass)(e.$style["learn-more"])},(0,M.toDisplayString)(e.$ST("common","learn_more")),11,iw)]),(0,M.createElementVNode)("div",{class:(0,M.normalizeClass)(e.$style["formula-example"])},[(0,M.createElementVNode)("div",{class:(0,M.normalizeClass)(e.$style["section-name"])},(0,M.toDisplayString)(`${e.$ST("handsontable","example")}${e.$ST("common","colon")}`),3),(0,M.createElementVNode)("div",null,(0,M.toDisplayString)(e.formulaData[e.funcName].example[0]?.formula),1)],2),(0,M.createElementVNode)("div",{class:(0,M.normalizeClass)(e.$style["formula-arguments"])},[((0,M.openBlock)(!0),(0,M.createElementBlock)(M.Fragment,null,(0,M.renderList)(e.formulaData[e.funcName].arguments,(t,i)=>((0,M.openBlock)(),(0,M.createElementBlock)("div",{key:i},[(0,M.createElementVNode)("div",{class:(0,M.normalizeClass)(e.$style["section-name"])},[(0,M.createElementVNode)("span",{class:(0,M.normalizeClass)({[e.$style["green-word"]]:i===e.activeIndex})},(0,M.toDisplayString)(t.name),3),!1!==t.required?((0,M.openBlock)(),(0,M.createElementBlock)("span",{key:0,class:(0,M.normalizeClass)(e.$style["red-asterisk"])},"*",2)):(0,M.createCommentVNode)("",!0)],2),(0,M.createElementVNode)("div",null,[(0,M.createElementVNode)("div",{class:(0,M.normalizeClass)([e.$style["rounded-box"],{[e.$style["green-background"]]:i===e.activeIndex}])},(0,M.toDisplayString)(t.description),3)])]))),128))],2)],2)]),_:1},8,["view-style"])])):(0,M.createCommentVNode)("",!0)]),_:1})],38)):(0,M.createCommentVNode)("",!0),(0,M.withDirectives)((0,M.createElementVNode)("div",{ref:"questionButton",class:(0,M.normalizeClass)(e.$style.question),style:(0,M.normalizeStyle)(e.questionButtonStyle),onClick:t[10]||(t[10]=(0,M.withModifiers)(function(){for(var t=arguments.length,i=Array(t),n=0;n<t;n++)i[n]=arguments[n];return e.onQuestionClick&&e.onQuestionClick(...i)},["stop"])),onMousedown:t[11]||(t[11]=(0,M.withModifiers)(()=>{},["stop","prevent"]))},[(0,M.createVNode)(a,{size:[8,16],"svg-icon":e.QuestionIcon},null,8,["svg-icon"])],38),[[M.vShow,e.showSyntax&&!e.isOpened]])],64)}],["__cssModules",iV]]);var iH=i(16067),iW=i(24766),iY=i(81681),iU=i(63105),iG=i(53253);let iZ={...iY.Pe,props:{}},ij={id:"ai-item"},iq=(0,M.defineComponent)({name:"FunctionMenu",components:{vIcon:eM.Z,NonFocusMenu:tn.QL,NonFocusMenuItem:tn.Oh,vMenuDivider:iH.Z,vMenuGroup:iW.Z,BaseDescTip:iY.lR,vScrollbar:ix.Z},mixins:[iZ],props:{functions:{type:Array,default:()=>[]},lang:{type:String,default:"enu"},width:{type:Number,default:220},maxHeight:{type:Number,default:void 0},constraintEl:{type:HTMLElement,default:void 0}},emits:["select","select-ai"],data(){let e=this.lang;return{AiIcon:(0,M.markRaw)(iG.Z),isMobileLayout:(0,eK.isMobileLayout)(),isActive:!1,filter:"",menuPosition:void 0,menuHeight:void 0,descriptionHandler:t=>i(68036)(`./${e}.json`).then(e=>{let{default:i}=e;return t.name?i[t.name].description:""})}},computed:{items(){return this.functions.filter(e=>e.startsWith(this.filter)).map(e=>({id:e,name:e}))},aiEnabled:()=>iU.$R.value},watch:{async items(){await this.$nextTick(),this.updateTip()},async filter(){await this.$nextTick(),this.getMenuRef()?.$watch("activeIndex",()=>{this.updateTip()})}},methods:{getMenuRef(){return this.$refs.menu},getSelectedItem(){let e=this.getMenuRef();if(e)return e.activeIndex===this.items.length?ij:this.items[e.activeIndex]},getSelectedItemEl(){let e=this.getMenuRef();if(!e)return;let t=e.items[e.activeIndex];return t?.$el},selectPrev(){this.getMenuRef()?.activePrevItem()},selectNext(){this.getMenuRef()?.activeNextItem()},select(){this.getSelectedItemEl()?.click()},collapse(){this.isActive=!1},query(e){this.filter=e.toUpperCase(),this.isActive=this.items.length>0},showAiItem(){return!!this.isAIFunctionEnabled&&(this.filter="=",this.isActive=!0,!0)},onItemSelect(e){this.$emit("select",e.synoId),this.collapse()},onAiItemSelect(){this.$emit("select-ai"),this.collapse()},isExpanded(){return this.isActive},hasSelectableFormulas(){return this.items.length>0},align(e){this.$nextTick(()=>{this.isActive&&this._alignMenu(e)})},_alignMenu(e){let t=this.getMenuRef();if(!t)return;let{right:i,bottom:n}=(this.constraintEl??document.body).getBoundingClientRect(),o=e.getBoundingClientRect(),r=this.maxHeight&&o.bottom+this.maxHeight<n||n-o.bottom>o.top,a=Math.min(r?n-o.bottom:o.top,this.maxHeight??Number.MAX_SAFE_INTEGER);this.menuHeight=void 0,this.$nextTick(()=>{let e=t.$el.getBoundingClientRect(),n=e.width,s=e.height;this.menuHeight=s>a?a:s,this.menuPosition=[o.left+n<i?o.left:o.right-n,r?o.bottom:o.top-(this.menuHeight??s)],t.activeIndex=-1,t.activeItemByIndex(0)})}}});var iK=i(23811),iX=i.n(iK);let iQ={};iQ.$style=iX();let i$=(0,q.default)(iq,[["render",function(e,t,i,n,o,r){let a=(0,M.resolveComponent)("NonFocusMenuItem"),s=(0,M.resolveComponent)("v-scrollbar"),l=(0,M.resolveComponent)("v-menu-divider"),c=(0,M.resolveComponent)("v-icon"),d=(0,M.resolveComponent)("v-menu-group"),u=(0,M.resolveComponent)("BaseDescTip"),h=(0,M.resolveComponent)("NonFocusMenu");return(0,M.openBlock)(),(0,M.createBlock)(h,{ref:"menu",key:e.filter,"syno-id":"formula-menu",class:(0,M.normalizeClass)(["syno-o-sh-function-menu",e.$style["function-menu"]]),"is-open":e.isActive,position:e.menuPosition,width:e.width,height:e.menuHeight,onMousedown:t[0]||(t[0]=(0,M.withModifiers)(()=>{},["stop","prevent"])),onWheel:t[1]||(t[1]=(0,M.withModifiers)(()=>{},["stop"])),onTouchstart:t[2]||(t[2]=(0,M.withModifiers)(()=>{},["stop"])),onTouchmove:t[3]||(t[3]=(0,M.withModifiers)(()=>{},["stop"])),onTouchend:t[4]||(t[4]=(0,M.withModifiers)(()=>{},["stop"])),onTouchcancel:t[5]||(t[5]=(0,M.withModifiers)(()=>{},["stop"])),onItemSelect:e.onItemSelect},(0,M.createSlots)({default:(0,M.withCtx)(()=>[(0,M.createVNode)(s,{ref:"scrollbar"},{default:(0,M.withCtx)(()=>[((0,M.openBlock)(!0),(0,M.createElementBlock)(M.Fragment,null,(0,M.renderList)(e.items,e=>((0,M.openBlock)(),(0,M.createBlock)(a,{key:e.name,"syno-id":e.name},{default:(0,M.withCtx)(()=>[(0,M.createTextVNode)((0,M.toDisplayString)(e.name),1)]),_:2},1032,["syno-id"]))),128))]),_:1},512)]),_:2},[e.aiEnabled?{name:"bottom-actions",fn:(0,M.withCtx)(()=>[(0,M.createVNode)(d,null,{default:(0,M.withCtx)(()=>[e.items.length>0?((0,M.openBlock)(),(0,M.createBlock)(l,{key:0,"syno-id":"ai-divider"})):(0,M.createCommentVNode)("",!0),(0,M.createVNode)(a,{id:"ai-item",key:"ai-item","syno-id":"ai-item",class:(0,M.normalizeClass)(e.$style["ai-item"]),onClick:e.onAiItemSelect},{default:(0,M.withCtx)(()=>[(0,M.createVNode)(c,{"svg-icon":e.AiIcon,"svg-icon-set":"set01"},null,8,["svg-icon"]),(0,M.createTextVNode)(" "+(0,M.toDisplayString)(e.$ST("ai_common","ask_ai")),1)]),_:1},8,["class","onClick"])]),_:1})]),key:"0"}:void 0,e.isMobileLayout?void 0:{name:"top-actions",fn:(0,M.withCtx)(()=>[(0,M.withDirectives)((0,M.createVNode)(u,{ref:"tip",text:e.tipText,position:e.tipPosition},(0,M.createSlots)({_:2},[(0,M.renderList)(["prefix","content","suffix"],t=>({name:t,fn:(0,M.withCtx)(i=>[(0,M.renderSlot)(e.$slots,"tip"+t[0].toUpperCase()+t.slice(1),(0,M.normalizeProps)((0,M.guardReactiveProps)(i)))])}))]),1032,["text","position"]),[[M.vShow,!!e.tipPosition]])]),key:"1"}]),1032,["class","is-open","position","width","height","onItemSelect"])}],["__cssModules",iQ]]),iJ=["textContent"];var i0=i(3957),i1=i(42905),i2=i(68784);let i3=(0,to.defineStore)("cell-history",()=>{let e=(0,M.ref)(null),t=(0,M.ref)(0),i=(0,M.ref)([]),n=(0,M.ref)(!1),o=(0,M.ref)(0),r=(0,M.ref)(0),a=(0,M.ref)(!0),s=(0,M.ref)(224),l=(0,M.computed)(()=>i.value.at(-1)?.id??null),c=(0,M.computed)(()=>n.value&&0===i.value.length),d=(0,M.computed)(()=>null!==e.value&&!n.value&&t.value>=i.value.length),u=(0,M.computed)(()=>0===t.value),h=(0,M.computed)(()=>n.value&&i.value.length-1===t.value),p=(0,M.computed)(()=>!e.value||c.value||d.value?null:{...i.value[t.value]}),f=(0,M.computed)(()=>p.value?.source==="RESTORE"),g=(0,M.computed)(()=>!a.value&&!!e.value);function m(t){let{sheetId:i,row:n,col:o}=t;e.value={sheetId:i,row:n,col:o}}function v(){e.value=null}function b(){t.value=0,i.value=[],n.value=!1}function y(e){i.value.push(e)}function w(){n.value=!0}function _(){a.value=!1}function x(){a.value=!0}async function S(){if(!e.value||n.value)return;let t=l.value,{sheetId:i,row:o,col:r}=e.value,a=await (0,A.h4)().queryCellHistory(t??-1,i,o,r);t===l.value&&(a&&(await new Promise(e=>{(0,i2.Xn)([a.editor],[],e)}),y(a)),a&&a.previous||w())}return{target:e,index:t,records:i,noMoreRecords:n,top:o,left:r,hidden:a,maxContentHeight:s,lastLoadedRecordId:l,isEmpty:c,isLoading:d,isLatest:u,isOldest:h,currentRecord:p,isFromRestore:f,needShow:g,setTarget:m,clearTarget:v,resetRecords:b,setIndex:function(e){t.value=Math.min(Math.max(e,0),n.value?i.value.length-1:i.value.length)},addRecord:y,setNoMoreRecords:w,setPosition:function(e){r.value=e.left,o.value=e.top},show:_,hide:x,loadOneMoreRecord:S,openFor:function(e){b(),m(e),_()},close:function(){v(),x()}}});function i4(e){if(!e)return"";let{value:t,numberFormat:i}=e;return A.rb.getWorkbook().getLocale().getSSF().format(i??"General",t??"").v}let i5=(0,M.defineComponent)({name:"CellHistoryPanel",components:{vButton:e0.Z,vSpinIcon:i0.Z,vScrollbar:ix.Z,"v-info":i1.Z},emits:["resize","close"],data:()=>({contentHeight:0}),computed:{...(0,to.mapState)(i3,["target","index","records","noMoreRecords","top","left","hidden","maxContentHeight","lastLoadedRecordId","isEmpty","isLoading","isLatest","isOldest","isFromRestore","currentRecord","needShow"]),currentRecordInfo(){let e=this.currentRecord?.editor;return{author:e,authorName:void 0!==e?(0,k.sI)().getUserDisplayName(e):"Unknown User",timestamp:this.currentRecord?.changedAt}},contentString(){let e,t;if(this.isLoading)return"";if(this.isEmpty)return this.$ST("cell_history","record_empty");let i=this.currentRecord,n=i4(i),o=i4(i?.previous??null);return""===o&&""!==n?(e="add",t=[n]):""!==o&&""===n?(e="delete",t=[o]):(e="replace",t=[o,n]),String.format(this.$ST("cell_history",`record_${e}`).replaceAll("<br>","\n"),...t)},hasNote(){return!!this.noteString},noteString(){return this.isFromRestore?this.$ST("cell_history","from_restore"):""},ctStyle(){return{top:`${this.needShow?this.top:-9999}px`,left:`${this.needShow?this.left:-9999}px`}}},watch:{noMoreRecords(){this.noMoreRecords&&this.index>=this.records.length&&this.records.length>0&&this.setIndex(this.records.length-1)},isLoading(){this.isLoading&&this.loadOneMoreRecord()},hidden(){this.$emit("resize")},target(){this.target||this.$emit("close")}},mounted(){this.checkHeight()},updated(){this.checkHeight()},methods:{...(0,to.mapActions)(i3,["setTarget","clearTarget","resetRecords","setIndex","addRecord","setNoMoreRecords","setPosition","show","hide","loadOneMoreRecord","openFor","close"]),onPrevClick(){this.setIndex(this.index+1)},onNextClick(){this.setIndex(this.index-1)},onEsc(){this.close()},onTab(e){e.shiftKey||(this.$refs.panel?.focus(),e.preventDefault(),e.stopPropagation())},onShiftTab(e){e.target===this.$refs.panel&&(this.$refs.content?.focus(),e.preventDefault(),e.stopPropagation())},onCapturedKey(e){e.preventDefault(),e.stopPropagation()},onButtonBlur(e){e.target&&"disabled"in e.target&&e.target.disabled&&this.focus()},async checkHeight(){await this.$nextTick();let e=this.contentHeight;this.contentHeight=Math.ceil(this.$refs.content?.getBoundingClientRect().height||0),e!==this.contentHeight&&this.$emit("resize")},focus(){this.$refs.panel?.focus()}}});var i6=i(93935),i8=i.n(i6);let i7={};i7.$style=i8();let i9=(0,q.default)(i5,[["render",function(e,t,i,n,o,r){let a=(0,M.resolveComponent)("v-button"),s=(0,M.resolveComponent)("v-info"),l=(0,M.resolveComponent)("v-spin-icon"),c=(0,M.resolveComponent)("v-scrollbar");return(0,M.openBlock)(),(0,M.createElementBlock)("div",{ref:"panel",class:(0,M.normalizeClass)([e.$style.panel,"selectabletext"]),style:(0,M.normalizeStyle)(e.ctStyle),tabindex:"0",onKeyup:[t[1]||(t[1]=(0,M.withKeys)(function(){for(var t=arguments.length,i=Array(t),n=0;n<t;n++)i[n]=arguments[n];return e.onPrevClick&&e.onPrevClick(...i)},["left"])),t[2]||(t[2]=(0,M.withKeys)(function(){for(var t=arguments.length,i=Array(t),n=0;n<t;n++)i[n]=arguments[n];return e.onNextClick&&e.onNextClick(...i)},["right"])),t[3]||(t[3]=(0,M.withKeys)(function(){for(var t=arguments.length,i=Array(t),n=0;n<t;n++)i[n]=arguments[n];return e.onEsc&&e.onEsc(...i)},["esc"]))],onKeydown:[t[4]||(t[4]=(0,M.withKeys)((0,M.withModifiers)(function(){for(var t=arguments.length,i=Array(t),n=0;n<t;n++)i[n]=arguments[n];return e.onCapturedKey&&e.onCapturedKey(...i)},["ctrl"]),["y"])),t[5]||(t[5]=(0,M.withKeys)((0,M.withModifiers)(function(){for(var t=arguments.length,i=Array(t),n=0;n<t;n++)i[n]=arguments[n];return e.onCapturedKey&&e.onCapturedKey(...i)},["ctrl"]),["z"])),t[6]||(t[6]=(0,M.withKeys)((0,M.withModifiers)(function(){for(var t=arguments.length,i=Array(t),n=0;n<t;n++)i[n]=arguments[n];return e.onShiftTab&&e.onShiftTab(...i)},["shift"]),["tab"]))]},[(0,M.createElementVNode)("div",{class:(0,M.normalizeClass)(e.$style.header)},[(0,M.createElementVNode)("span",{class:(0,M.normalizeClass)(e.$style["header-text"])},(0,M.toDisplayString)(e.$ST("cell_history","panel_title")),3),e.isEmpty?(0,M.createCommentVNode)("",!0):((0,M.openBlock)(),(0,M.createBlock)(a,{key:0,ref:"btnPrev","syno-id":"previous-btn",class:(0,M.normalizeClass)([e.$style.btn,e.$style["btn-prev"]]),disabled:e.isOldest||e.isLoading,onClick:e.onPrevClick,onBlur:e.onButtonBlur},null,8,["class","disabled","onClick","onBlur"])),e.isEmpty?(0,M.createCommentVNode)("",!0):((0,M.openBlock)(),(0,M.createBlock)(a,{key:1,ref:"btnNext","syno-id":"next-btn",class:(0,M.normalizeClass)([e.$style.btn,e.$style["btn-next"]]),disabled:e.isLatest,onClick:e.onNextClick,onBlur:e.onButtonBlur},null,8,["class","disabled","onClick","onBlur"]))],2),!e.isLoading&&e.currentRecord?((0,M.openBlock)(),(0,M.createBlock)(s,(0,M.mergeProps)({key:0,class:e.$style["record-info"]},e.currentRecordInfo,{"user-icon-size":"32px","user-icon-font-size":"14px","user-font-size":"13px","time-font-size":"12px"}),null,16,["class"])):(0,M.createCommentVNode)("",!0),(0,M.createElementVNode)("div",{class:(0,M.normalizeClass)(e.$style["content-wrapper"]),style:(0,M.normalizeStyle)({maxHeight:`${e.maxContentHeight}px`})},[(0,M.createVNode)(c,{style:(0,M.normalizeStyle)({maxHeight:`${e.maxContentHeight}px`}),"view-style":{maxHeight:`${e.maxContentHeight}px`}},{default:(0,M.withCtx)(()=>[(0,M.createElementVNode)("div",{ref:"content",class:(0,M.normalizeClass)([e.$style.content,e.$style["content-panel"]]),tabindex:"0",onKeydown:t[0]||(t[0]=(0,M.withKeys)(function(){for(var t=arguments.length,i=Array(t),n=0;n<t;n++)i[n]=arguments[n];return e.onTab&&e.onTab(...i)},["tab"]))},[e.isLoading?((0,M.openBlock)(),(0,M.createElementBlock)("div",{key:0,class:(0,M.normalizeClass)(e.$style["loading-icon-wrapper"])},[(0,M.createVNode)(l)],2)):((0,M.openBlock)(),(0,M.createElementBlock)("div",{key:1,class:(0,M.normalizeClass)(e.$style["content-text"]),textContent:(0,M.toDisplayString)(e.contentString)},null,10,iJ))],34)]),_:1},8,["style","view-style"])],6),e.hasNote?((0,M.openBlock)(),(0,M.createElementBlock)("div",{key:1,class:(0,M.normalizeClass)(e.$style["note-container"])},[(0,M.createElementVNode)("div",{class:(0,M.normalizeClass)(e.$style["note-border"])},null,2),(0,M.createElementVNode)("div",{class:(0,M.normalizeClass)([e.$style.note,e.$style["content-panel"]])},(0,M.toDisplayString)(e.noteString),3)],2)):(0,M.createCommentVNode)("",!0)],38)}],["__cssModules",i7]]);var ne=i(94353);let nt=function(e){if("function"!=typeof e)throw TypeError("Expected a function");return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}};var ni=i(75952),nn=i(63519),no=i(80778);let nr=function(e,t){if(null==e)return{};var i=(0,ni.Z)((0,no.Z)(e),function(e){return[e]});return t=(0,ne.Z)(t),(0,nn.Z)(e,i,function(e,i){return t(e,i[0])})};var na=i(63834);let ns=Ext.define("SYNO.SDS.Office.Sheet.BaseContextMenu",{extend:e9.T,constructor(e){e9.T.prototype.constructor.call(this,e)},getHotInstance(){throw Error("Not implemented")},showByEvent(e,t){void 0===t&&(t=!1),e&&(e.stopPropagation(),e.preventDefault()),!e||t?this.showBySelection():this.showByMouseEvent(e)},showByMouseEvent(e,t){t??=this.getHotInstance().view.getCoordFromEvent(e);let[i,n]=Ext.lib.Event.getXY(e);this.showBy({x:i,y:n},t)},showBySelection(){let e=null,t=null,i=this.getHotInstance(),n=i.selections.multiSelections.getActive();if(n?.cellRange){let o=n.cellRange.highlight,r=i.view.getRangeBound(...o.toArray());e={x:Math.max(r.x+r.width,0),y:Math.max(r.y+r.height,0)},t=o.from}let o=i.getPlugin("synoDrawingController"),r=o?.getActiveImage()??o?.getActiveChart();if(r){let t=r.dom.getBoundingClientRect();e={x:Math.max(t.left,0),y:Math.max(t.top,0)}}e&&this.showBy(e,t)},showBy(e,t){let{x:i,y:n}=e;this.showAt([i,n])}});var nl=i(33158),nc=((p={}).SINGLE_CELL="single_cell",p.MULTIPLE_CELL="multi_cell",p.ROW="row",p.COLUMN="column",p.DRAWING="drawing",p);function nd(e){let t=SYNO.SDS.Office.GetWindow().sheetmgr,i=t.getSynoCore(),n=i.getSelectedRange(),o=i.getMultiSelectedRange(),r=new Set(o.map(e=>e.type)),a=nh(e,n,i.getRowColSelected());return{status:a,multiple:i.selections.multiSelections.length>1,mixedType:r.size>1,overlap:i.selections.multiSelections.hasOverlaps(),...function(e,t){if("row"!==t&&"column"!==t)return{hasHidden:!1};let i="row"===t?"row":"col",n=SYNO.SDS.Office.GetWindow().sheetmgr.sheet,o=!1,r=(0,T.OU)(e,i);for(let e of function*(e){for(let t of e)for(let e=t.from;e<=t.to;e++)yield e}(r))if("row"===i&&n.isHiddenRow(e)&&!n.isFilteredRow(e)||"col"===i&&n.isHiddenCol(e)){o=!0;break}if(!o&&r.length>0){let e=r[0]?.from??-1,t=r[r.length-1]?.to??-1,a="row"===i?n.countRows():n.countCols();o=e>0&&n.getFirstVisibleRowCol(i)===e||t<a-1&&n.getLastVisibleRowCol(i)===t&&("row"!==i||(0,nl.Z)(t+1,a).some(e=>n.isHiddenRowExcludeFilter(e)))}return{hasHidden:o}}(o,a),...function(e){let t=!1,i=!1,n=!1,o=!1,r=!1,a=!!e.getCommentBySelection(),s=e.sheet;e.forEachSelectedCell((e,a)=>{if(s.getCellNote(e,a)&&(i=!0),s.getCellTextDesc(e,a)?.l&&(t=!0),s.getCellProperty(e,a,"validId")&&(o=!0),s.getCellProperty(e,a,"pivot")&&(r=!0),(0,k.eL)().loggedIn&&!n)for(let t of s.getCellProperty(e,a,"comment")??[]){let e=A.rb.getWorkbook().getCommentStore().getCommentById(t);if(e&&e.author===(0,t1.Kr)()){n=!0;break}}return!(i&&t&&o&&r&&n)});let l=function(e){let t=SYNO.SDS.Office.GetWindow().sheetmgr.sheet,i=new Set,n=new Set;for(let{row:o,col:r}of function*(e){for(let t of e)yield*t.iterateCoords()}(e)){let e=t?.getCellProperty(o,r,"pivot"),a=e?.tableId;if(i.add(a??""),n.add(e?.axis??""),i.size>1)break}let o=1===i.size&&!i.has(""),r=o&&1===n.size&&!n.has(""),a=Array.from(i).find(e=>""!==e);return{inPivot:o,inPivotAxis:r,fitPivot:1===e.length&&t?.getWorkbook().getPivotTableManager().equalToTableRanges(e,a??"")}}(e.hot.getMultiSelectedRange());return{hasLink:t,hasNote:i,hasValidation:o,hasPivot:r,hasComment:a,hasOwnComment:n,...l}}(t)}}function nu(){return{commentable:SYNO.SDS.Office.Utils.isCommentable(),copyable:!SYNO.SDS.Office.Utils.isPreviewOnly(),editable:SYNO.SDS.Office.Utils.isEditable()}}function nh(e,t,i){let n="multi_cell";return t?np(t)?n="single_cell":e&&i.row&&i.col?-1===e.row?n="column":-1===e.col&&(n="row"):i.col?n="column":i.row&&(n="row"):n="drawing",n}function np(e){return e.isSingle()||SYNO.SDS.Office.GetWindow().sheetmgr.isMerged(e)}var nf=((f={}).VIEW_COMMENT="view_comment",f.COPY="copy",f.CUT="cut",f.PASTE="paste",f.PASTE_SPECIAL="paste_special",f.CLEAR_CONTENT="clear_content",f.COMMENT="comment",f.INSERT_ROW="table_insert_row",f.INSERT_COL="table_insert_col",f.REMOVE_ROW="remove_row",f.REMOVE_COL="remove_col",f.LINK="link",f),ng=((g={}).VALUE="paste_value",g.FORMAT="paste_format",g.TRANSPOSE="paste_transpose",g),nm=((m={}).GROUP_MANUAL="pivot_table_group_manual",m.GROUP_DATE="pivot_table_group_date",m.GROUP_NUMBER="pivot_table_group_number",m.REGROUP_DATE="pivot_table_regroup_date",m.REGROUP_NUMBER="pivot_table_regroup_number",m.UNGROUP_MANUAL="pivot_table_ungroup_manual",m.UNGROUP_DATE="pivot_table_ungroup_date",m.UNGROUP_NUMBER="pivot_table_ungroup_number",m.DETAIL="pivot_table_detail",m),nv=i(37237),nb=i(42152),ny=i(59087);function nw(){return(0,A.c)().hot.getSelectedRange()}let n_=Ext.define("SYNO.SDS.Office.Sheet.ContextMenu",{extend:ns,constructor:function(e){this.owner=e.owner,this.pivotMeta=null;let t=this.fillConfig(e);ns.prototype.constructor.call(this,t),this.findAppWindow().body.on("wheel",this.onMouseEvent,this),this.initPossibleOptions()},getHotInstance:function(){return(0,A.c)().hot},fillConfig:function(e){let t=this.findAppWindow(),i=t.mainPanel,n=i.createSimpleMenuItem.bind(i),o=(e,t,i)=>n(e,t,{text:ts(e),...i}),r={items:[n("show_toolbars",()=>t.handleFocusModeEscape(),{text:(0,N.$)("focus_mode","show_toolbars")}),"-",i.createCopyCutMenuItem("cut",{hotkey:"Ctrl+X"}),i.createCopyCutMenuItem("copy",{hotkey:"Ctrl+C"}),n("paste",i.onPasteMenuClick,{hotkey:"Ctrl+V"}),{text:(0,N.$)("handsontable","paste_special"),itemId:"paste_special",menu:i.createPasteMenu()},"-",n(nm.GROUP_MANUAL,this.onPivotTableGroupManual.bind(this),{text:(0,N.$)("pivot_table","group_manual")}),n(nm.GROUP_DATE,this.onPivotTableGroupDate.bind(this),{text:(0,N.$)("pivot_table","group_date")}),n(nm.GROUP_NUMBER,this.onPivotTableGroupNumber.bind(this),{text:(0,N.$)("pivot_table","group_number")}),n(nm.REGROUP_DATE,this.onPivotTableGroupDate.bind(this),{text:(0,N.$)("pivot_table","regroup_date")}),n(nm.REGROUP_NUMBER,this.onPivotTableGroupNumber.bind(this),{text:(0,N.$)("pivot_table","regroup_number")}),n(nm.UNGROUP_MANUAL,this.onPivotTableUngroupManual.bind(this),{text:(0,N.$)("pivot_table","ungroup")}),n(nm.UNGROUP_DATE,this.onPivotTableUngroupDate.bind(this),{text:(0,N.$)("pivot_table","ungroup")}),n(nm.UNGROUP_NUMBER,this.onPivotTableUngroupNumber.bind(this),{text:(0,N.$)("pivot_table","ungroup")}),n(nm.DETAIL,this.onPivotTableDetail.bind(this),{text:(0,N.$)("pivot_table","detail")}),"-",n("merge_cells",i.onMergeCellMenuSelect),n("unmerge_cells",i.onUnmergeCellMenuSelect),{itemId:"insert_range",text:(0,N.$)("handsontable","insert_range"),menu:new SYNO.SDS.Office.Menu({items:[n("insert_range_row",i.onRowColRangeOpClick),n("insert_range_col",i.onRowColRangeOpClick),"-",n("insert_cells_shift_right",i.onCellRangeOpClick),n("insert_cells_shift_down",i.onCellRangeOpClick)]})},{itemId:"remove_range",text:(0,N.$)("handsontable","remove_range"),menu:new SYNO.SDS.Office.Menu({items:[n("remove_range_row",i.onRowColRangeOpClick),n("remove_range_col",i.onRowColRangeOpClick),"-",n("remove_cells_shift_left",i.onCellRangeOpClick),n("remove_cells_shift_up",i.onCellRangeOpClick)]})},"-",n("row_above",i.onInsertRowMenuClick),n("row_below",i.onInsertRowMenuClick),n("insert_multi_row",this.onInsertMultiRow.bind(this)),n("hide_row",i.onHideRowsMenuClick,{hotkey:"Ctrl+Alt+9"}),n("unhide_row",i.onUnhideRowsMenuClick,{hotkey:"Ctrl+Shift+9",text:String.format((0,N.$)("hotkey","unhide_row"),"")}),n("remove_row",i.onRemoveRowColClick),o(tr.GROUP_ROW,this.onGroupRowClick.bind(this),{hotkey:"Alt+Shit+→"}),o(tr.UNGROUP_ROW,this.onUngroupRowClick.bind(this),{hotkey:"Alt+Shit+←"}),n("resize_row",this.onResizeRowClick.bind(this),{text:String.format((0,N.$)("handsontable","resize_row"),"")}),n("auto_resize_row",this.onAutoResizeRowClick.bind(this)),n("col_left",i.onInsertColMenuClick),n("col_right",i.onInsertColMenuClick),n("insert_multi_col",this.onInsertMultiCol.bind(this)),n("hide_col",i.onHideColsMenuClick,{hotkey:"Ctrl+Alt+0"}),n("unhide_col",i.onUnhideColsMenuClick,{hotkey:"Ctrl+Shift+0",text:String.format((0,N.$)("hotkey","unhide_col"),"")}),n("remove_col",i.onRemoveRowColClick),o(tr.GROUP_COL,this.onGroupColClick.bind(this),{hotkey:"Alt+Shit+→"}),o(tr.UNGROUP_COL,this.onUngroupColClick.bind(this),{hotkey:"Alt+Shit+←"}),n("resize_col",this.onResizeColClick.bind(this),{text:String.format((0,N.$)("handsontable","resize_col"),"")}),n("auto_resize_col",this.onAutoResizeColClick.bind(this)),"-",n("cell_history",i.onCellHistoryClick,{text:(0,N.$)("cell_history","menu_item")}),n("comments_add_edit",i.onInsertCommentClick,{iconCls:"syno-o-comment-menu-icon",hotkey:"Ctrl+Alt+M"}),n("comments_remove",this.onRemoveCommentClick.bind(this)),n("note_add_edit",i.onInsertNoteMenuClick,{hotkey:"Shift+F2"}),n("note_remove",i.onRemoveNoteMenuClick),n("insert_link",i.onInsertLinkMenuClick,{iconCls:"syno-o-link-menu-icon",hotkey:"Ctrl+K"}),n("remove_link",i.onRemoveLinkMenuClick),n("clear_content",i.onRemoveValueClick),n("get_range_link",this.onGetRangeLink.bind(this)),"-",n("ai_helper",i.showAiFormulaPanel,(0,ny.Gr)({text:(0,N.$)("ai_common","ask_ai"),newFeature:!0,vIconCfg:{svgIcon:iG.Z,svgIconSet:"set01"}})),"-",n("sort_sheet",this.onSortMenuClick.bind(this)),n("sort_sheet_reverse",this.onSortMenuClick.bind(this)),n("sort",i.onSortMenuClick),"-",{itemId:"number_value",text:(0,N.$)("handsontable","number_value"),menu:this.getFormatMenu()},n("data_validation",i.onValidationMenuClick),n("remove_validation",this.onRemoveValidationMenuClick.bind(this)),n("conditional_format",i.onCfClick)]};return Ext.apply(r,e),r},getFormatMenu:function(){return this.formatMenu||(this.formatMenu=new SYNO.SDS.Office.Sheet.FormatMenu({mainPanel:this.findAppWindow().getMainPanel()}))},initPossibleOptions:function(){let e=["show_toolbars"],t=["cut","copy","paste","paste_special"],i=["merge_cells","unmerge_cells"],n=["insert_range","remove_range"],o=[tr.GROUP_ROW,tr.GROUP_COL,tr.UNGROUP_ROW,tr.UNGROUP_COL],r=[nm.GROUP_MANUAL,nm.GROUP_DATE,nm.GROUP_NUMBER,nm.REGROUP_DATE,nm.REGROUP_NUMBER,nm.UNGROUP_MANUAL,nm.UNGROUP_DATE,nm.UNGROUP_NUMBER,nm.DETAIL],a=["number_value","data_validation","remove_validation","conditional_format"],s=[...e,...t,...i,"cell_history","comments_add_edit","comments_remove","note_add_edit","note_remove","insert_link","remove_link","clear_content","get_range_link","sort","sort_sheet","sort_sheet_reverse",...a,"ai_helper"],l=[...e,...i,...n,"comments_remove","note_remove","remove_link","clear_content","ai_helper",...a],c=[...e,"copy","comments_add_edit","comments_remove","ai_helper"],d=[...e,...t,"comments_add_edit","comments_remove","note_add_edit","note_remove","get_range_link",...r];this.options={range:new Set([s,n].flat()),row:new Set([s,["row_above","row_below","insert_multi_row","hide_row","unhide_row","remove_row","auto_resize_row","resize_row"],o].flat()),column:new Set([s,["col_left","col_right","insert_multi_col","hide_col","unhide_col","remove_col","auto_resize_col","resize_col"],o].flat()),multiple:new Set(l),drawing:new Set(["cut","copy","paste"]),readonly:new Set(c),pivotTable:new Set(d)}},showBy:function(e,t){let{x:i,y:n}=e,o=this.getContextInfo(t);!1!==this.checkOptions(o)&&(this.updateOptionTexts(o),this.showAt([i,n]))},getContextInfo(e){let t=(0,A.c)().hot,i=nw()?.clone().normalize(),n=i?.highlight.clone().getTopLeftCorner(),o=nd(e),r=nu();this.pivotMeta=o.inPivot&&n?(0,A.c)().sheet.getCellProperty(n.row,n.col,"pivot"):null;let a=nh(e,i??null,t.getRowColSelected());return{coords:e,selection:o,permission:r,groupOptions:this.getGroupOptions(a,i),pivotOptions:this.pivotMeta?this.getPivotOptions(this.pivotMeta,o):new Set}},updateOptionTexts(e){let t=this.getTextsToUpdate(e);for(let e of this.items.items)e.itemId in t&&e.setText(t[e.itemId]);this.updateInsertRemoveRangeMenu()},getTextsToUpdate(e){let t={},i=(0,A.c)().sheet;if(e.coords){let{row:n,col:o}=e.coords,r=i.getCellTextDesc(n,o)?.e||i.getCellHyperlinkState(n,o);t.insert_link=(0,N.$)("handsontable",r?"edit_link":"insert_link")}if(e.selection.status===nc.ROW||e.selection.status===nc.COLUMN){let i=e.selection.status===nc.ROW,n=nw(),o=i?n?.getHeight():n?.getWidth();for(let e of i?["row_above","row_below"]:["col_left","col_right"]){let i=o>1?String.format((0,N.$)("handsontable",e+"_multi"),o):(0,N.$)("handsontable",e);t[e]=i}for(let e of i?["hide_row","remove_row","resize_row"]:["hide_col","remove_col","resize_col"]){let i=o>1?(0,N.$)("handsontable",e):(0,N.$)("handsontable",e.replace("_","_single_"));t[e]=i}}return t},checkOptions:function(e){let t=e=>-1<e.itemCls.indexOf("x-menu-sep"),i=this.getPossibleOptions(e),n=!1,o=!0;for(let r of this.items.items){if(t(r)){o?r.hide():(r.show(),o=!0);continue}if(i&&!i.has(r.itemId)){r.hide();continue}this.shouldShow(r.itemId,e)?(r.show(),n=!0,o=!1):r.hide()}return n&&SYNO.SDS.Drive.MenuUtils.onShowHideMenu(this.items),n},getPossibleOptions(e){let{selection:t,permission:i}=e;if(!i.editable)return this.options.readonly;if(this.pivotMeta?.tableId)return this.options.pivotTable;if(t.status===nc.DRAWING)return this.options.drawing;if(t.status===nc.ROW&&!t.mixedType)return this.options.row;if(t.status===nc.COLUMN&&!t.mixedType)return this.options.column;else if(t.multiple)return this.options.multiple;return this.options.range},shouldShow(e,t){let{selection:i,permission:n,groupOptions:o,pivotOptions:r}=t;switch(e){case"show_toolbars":return this.isInFocusMode();case"copy":return!i.multiple&&n.copyable;case"cut":case"paste":case"paste_special":return!i.multiple&&(!i.inPivot||i.fitPivot);case"merge_cells":return!i.overlap&&(0,A.c)().hot.getMultiSelectedRange().some(e=>!np(e));case"unmerge_cells":return(0,A.c)().hasMerged();case"insert_range":case"remove_range":return!i.overlap&&!i.mixedType;case"row_above":case"row_below":case"insert_multi_row":case"hide_row":case"remove_row":case"auto_resize_row":case"resize_row":return i.status===nc.ROW;case"unhide_row":return i.status===nc.ROW&&i.hasHidden;case"col_left":case"col_right":case"insert_multi_col":case"hide_col":case"remove_col":case"auto_resize_col":case"resize_col":return i.status===nc.COLUMN;case"unhide_col":return i.status===nc.COLUMN&&i.hasHidden;case tr.GROUP_ROW:case tr.GROUP_COL:case tr.UNGROUP_ROW:case tr.UNGROUP_COL:return!i.multiple&&o.has(e);case nm.GROUP_MANUAL:case nm.GROUP_DATE:case nm.GROUP_NUMBER:case nm.REGROUP_DATE:case nm.REGROUP_NUMBER:case nm.UNGROUP_MANUAL:case nm.UNGROUP_DATE:case nm.UNGROUP_NUMBER:case nm.DETAIL:return r.has(e);case"cell_history":case"note_add_edit":case"insert_link":return!i.multiple&&i.status===nc.SINGLE_CELL;case"comments_add_edit":return!i.multiple&&n.commentable&&i.status===nc.SINGLE_CELL;case"comments_remove":return n.commentable&&i.hasOwnComment;case"note_remove":return i.hasNote;case"remove_link":return i.hasLink;case"clear_content":case"number_value":case"data_validation":case"conditional_format":default:return!0;case"get_range_link":return!i.multiple;case"sort_sheet":case"sort_sheet_reverse":return!i.multiple&&i.status===nc.COLUMN&&nw()?.getWidth()===1;case"sort":return!i.multiple&&nw()?.getHeight()>1;case"ai_helper":return(0,k.eL)().readable&&iU.$R.value;case"remove_validation":return i.hasValidation}},updateInsertRemoveRangeMenu(){let e=(e,t)=>String.format((0,N.$)("handsontable",t>1?e+"_plural":e),t),t=(0,A.c)().sheet,i=nw();if(!t||!i)return;let n=i.getHeight(),o=i.getWidth(),r=this.getComponent("insert_range").menu;r.getComponent("insert_range_row").setText(e("insert_range_row",n)),r.getComponent("insert_range_col").setText(e("insert_range_col",o)),r.getComponent("insert_cells_shift_right").setText((0,N.$)("handsontable",t.isRtl()?"insert_cells_shift_left":"insert_cells_shift_right"));let a=this.getComponent("remove_range").menu;a.getComponent("remove_range_row").setText(e("remove_range_row",n)),a.getComponent("remove_range_col").setText(e("remove_range_col",o)),a.getComponent("remove_cells_shift_left").setText((0,N.$)("handsontable",t.isRtl()?"remove_cells_shift_right":"remove_cells_shift_left"))},isInFocusMode:function(){return this.findAppWindow().getFocusMode()===nb.Q.HIDE_ALL},getGroupOptions:function(e,t){return t&&(e===nc.ROW||e===nc.COLUMN)?ta(t,{[e===nc.ROW?"col":"row"]:!0}):new Set},getPivotOptions:function(e,t){let i=new Set,n=e?.tableId,o=e?.field,r=e?.axis;if(!n||!o||o===T.Hb||!r||!t.inPivot||!t.inPivotAxis)return i;let a=(0,A.uD)().value?.getWorkbook().getPivotTableStore();if(!a||!a.pivotTables[n]||a.isIncompatibleTable(n))return i;if("row"===r||"col"===r){let e=a.getBaseField(n,o);if(e){let t=(0,T.Ql)(e.sharedItems),n=!!e.group;t===T.E5.datetime?n?(i.add(nm.REGROUP_DATE),i.add(nm.UNGROUP_DATE)):i.add(nm.GROUP_DATE):t===T.E5.number?n?(i.add(nm.REGROUP_NUMBER),i.add(nm.UNGROUP_NUMBER)):i.add(nm.GROUP_NUMBER):(i.add(nm.GROUP_MANUAL),n&&i.add(nm.UNGROUP_MANUAL))}}else"data"!==r||t.status!==nc.SINGLE_CELL||t.multiple||i.add(nm.DETAIL);return i},onMouseEvent:function(){this.hide()},onSortMenuClick:function(e,t){let i=(0,A.c)().sheet,n=i.getFreezePlugin(),o=(0,T.MT)(n.fixedRowsTop||0,0,i.countRows()-1,i.countCols()-1),r=-1===e.itemId.indexOf("reverse"),a=nw();if(!a)return;let s=a.getTopLeftCorner().col;(0,A.c)().sort(o,[s],r)},onResizeRowClick:function(){(0,A.c)().showResizeDialog("row")},onResizeColClick:function(){(0,A.c)().showResizeDialog("col")},onInsertMultiRow:function(){(0,A.c)().showInsertDialog("row")},onInsertMultiCol:function(){(0,A.c)().showInsertDialog("col")},onRemoveValidationMenuClick:function(){let e=(0,A.c)().hot.getMultiSelectedRange();for(let t of e)t.normalize();(0,A.c)().removeValidation(e)},onRemoveCommentClick:function(){let e=(0,A.c)(),t=e.sheet,i=this.findAppWindow().mainPanel,n=[];e.forEachSelectedCell(function(i,o){let r=t.getCellProperty(i,o,"comment");if(r)for(let t of(n.push(...r),r))e.editComment(t,t,null)}),i.right_panel.getCommentPanel().batchUpdateCommentById(n)},onAutoResizeRowClick:function(){(0,A.c)().hot.getPlugin("synoManualRowResize").autoResize()},onAutoResizeColClick:function(){(0,A.c)().hot.getPlugin("synoManualColumnResize").autoResize()},onGroupRowClick:function(){(0,A.c)().groupRowCol("row")},onGroupColClick:function(){(0,A.c)().groupRowCol("col")},onUngroupRowClick:function(){(0,A.c)().ungroupRowCol("row")},onUngroupColClick:function(){(0,A.c)().ungroupRowCol("col")},onGetRangeLink:function(){let e=nw();if(!e)return;let t=T.pt.toLabel(e.normalize()),i=A.rb.getWorkbook().getCurrentSheet().id,n=location.origin+location.pathname+location.search+"#tid="+i+"&range="+t;new nv.j({copy_url:n,desc:(0,N.$)("sheet","range_link_label"),owner:this.findAppWindow()}).show()},onPivotTableGroupManual:function(){let e=this.pivotMeta?.tableId;e&&(0,A.c)().groupPivotFieldItems(e)},onPivotTableGroupDate:function(){if(!this.pivotMeta)return;let{tableId:e,field:t,axis:i}=this.pivotMeta;e&&t&&i&&(0,et.hy)(tN,{tableId:e,fieldId:t,axis:i})},onPivotTableGroupNumber:function(){if(!this.pivotMeta)return;let{tableId:e,field:t}=this.pivotMeta;e&&t&&(0,et.hy)(tZ,{tableId:e,fieldId:t})},onPivotTableUngroupManual:function(){let e=this.pivotMeta?.tableId;e&&(0,A.c)().ungroupPivotFieldItems(e,"manual")},onPivotTableUngroupDate:function(){let e=this.pivotMeta?.tableId,t=this.pivotMeta?.field;e&&t&&(0,A.c)().ungroupPivotFieldItems(e,"datetime",t)},onPivotTableUngroupNumber:function(){let e=this.pivotMeta?.tableId,t=this.pivotMeta?.field;e&&t&&(0,A.c)().ungroupPivotFieldItems(e,"number",t)},onPivotTableDetail:async function(){let e=this.pivotMeta?.tableId;e&&(0,A.c)().createPivotTableDetailSheet(e)}});var nx=i(4721);let nS=(0,M.defineComponent)({name:"EditMenu",components:{EditMenuPortal:nx.c},data:()=>({selection:!1,anchorRect:{width:0,height:0,top:0,left:0},selectionInfo:null,permissionInfo:{commentable:!1,copyable:!1,editable:!1}}),computed:{items(){let e=this.selectionInfo;return e?Object.values(nf).filter(t=>(function(e,t,i){let{status:n,hasComment:o,hasPivot:r}=t,{commentable:a,copyable:s,editable:l}=i;if("view_comment"===e)return a&&"single_cell"===n&&o;if("copy"===e)return s;if("comment"===e)return a&&"single_cell"===n&&!o;if("link"===e)return l&&("single_cell"===n||"multi_cell"===n)&&!r;if("table_insert_row"===e||"remove_row"===e)return l&&"row"===n;else if("table_insert_col"===e||"remove_col"===e)return l&&"column"===n;else return l})(t,e,this.permissionInfo)).map(e=>{let t={display:this.$ST("handsontable",e),value:e};return e===nf.PASTE_SPECIAL&&(t.subItems=Object.values(ng).map(e=>({display:this.$ST("handsontable",e),value:e}))),t}):[]}},methods:{showByEvent(e){let t=SYNO.SDS.Office.GetWindow().sheetmgr.getSynoCore(),i=t.getSelectedRange();if(!i||t.getActiveEditor()?.isOpened())return;let n=t.getHighlightRange()?.from??null;this.selectionInfo=nd(n),this.permissionInfo=nu();let{x:o,y:r,height:a,width:s}=t.view.getRangeBound(...i.toArray());this.anchorRect={left:o,top:Math.max(r-8,0),height:a,width:s},this.selection=!0},handleItemClick(e){this.selection=!1,function(e){let t=SYNO.SDS.Office.GetWindow().sheetmgr;switch(e){case"view_comment":t.getMainPanel().showSelectedCommentInBottomPanel();break;case"copy":t.getSynoCore().getPlugin("synoCopyPaste").setCopyableContent(),document.execCommand("copy");break;case"cut":t.getSynoCore().getPlugin("synoCopyPaste").setCopyableContent(),document.execCommand("cut");break;case"paste":t.paste("all");break;case"clear_content":t.removeValue();break;case"comment":t.insertComment();break;case"table_insert_row":{let e=t.getSynoCore().getSelectedRange();e&&t.insertRowCol("insert_row",1,e.getHeight())}break;case"table_insert_col":{let e=t.getSynoCore().getSelectedRange();e&&t.insertRowCol("insert_col",1,e.getWidth())}break;case"remove_row":case"remove_col":t.removeRowCol(e);break;case"link":t.insertLink();break;case"paste_value":t.paste("value");break;case"paste_format":t.paste("format");break;case"paste_transpose":t.paste("transpose")}}(e.value)},close(){this.selection=!1}}}),nC=(0,q.default)(nS,[["render",function(e,t,i,n,o,r){let a=(0,M.resolveComponent)("EditMenuPortal");return e.items.length>0?((0,M.openBlock)(),(0,M.createBlock)(a,{key:0,"show-portal":e.selection,"onUpdate:showPortal":t[0]||(t[0]=t=>e.selection=t),anchor:e.anchorRect,items:e.items,"close-when-click-outside":!0,onClickItem:e.handleItemClick},null,8,["show-portal","anchor","items","onClickItem"])):(0,M.createCommentVNode)("",!0)}]]);i(8416),i(93118),i(82766),i(37151),i(20142),i(89909),i(24578),i(95790),i(39908),i(2850),i(95922),i(53346),i(5556),i(29127);var nk=i(63707),nI=i(71367),nA=i(83717),nT=i(40172),nE=i(27187),nR=i(97013),nD=i(7135),nO=i(71283),nM=i(54730);function nN(e){return(0,nM.jn)(e.disableSort)?e.disableSort:!!e.action}function nP(e,t){let i=e.findIndex(e=>e.pivot);return -1===i&&(i=t),{id:i,column:e[i]}}let nL=/(\d+)%/;function nB(e,t){let i=+e.el.dataset.width,n=i+t,o=e.getMinWidth();return n<=o&&(t=-(i-o)),t}function nF(e,t){return Math.ceil(+e.el.dataset.width+t)}function nV(e,t){e.el.dataset.width=t}function nz(e,t){let i=e.findIndex(e=>e.id===t)+1,n=e[i];for(;n&&!0===n.data.hide;)n=e[++i];return n}function nH(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{visible:!1,noFixed:!1,omitColumns:[]};return e.filter(e=>(!t.visible||!e.data.hide)&&(!t.noFixed||!e.data.width)&&(!t.omitColumns||!t.omitColumns.includes(e.id)))}function nW(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{onlyVisible:!1,noFixedColumns:!1,omitColumns:[]};return(e=nH(e,{visible:t.onlyVisible,noFixed:t.noFixedColumns,omitColumns:t.omitColumns})).reduce((e,t)=>e+=t.getCurrentWidth(),0)}function nY(e,t){let i=nL.exec(e);return i&&i[1]?Math.floor(t*+i[1]/100):+e}var nU=(0,M.defineComponent)({emits:["column-resize"],data:()=>({colsData:{}}),mounted(){this.$_container=this.takeContainer(),this.$_resizeLeftMarker=this.createResizeIndicator(this.$_container),this.$_resizeRightMarker=this.createResizeIndicator(this.$_container),this.$_resizeIndicator=this.createResizeIndicator(this.$_container)},[nk.mT.beforeUnmount](){this.removeResizeIndicator(this.$_container,this.$_resizeLeftMarker),this.removeResizeIndicator(this.$_container,this.$_resizeRightMarker),this.removeResizeIndicator(this.$_container,this.$_resizeIndicator)},methods:{adjustResizeIndicatorStyleByMouseMoveEvent(e,t,i){let n=this.$_cols,o=this.$_container.getBoundingClientRect(),r=nz(n,i.id),a=function(e,t){let i=e.findIndex(e=>e.id===t)-1,n=e[i];for(;n&&!0===n.data.hide;)n=e[--i];return n}(n,i.id),s=a&&a.headerEl?a.headerEl.getBoundingClientRect().right-o.left:0,l=r&&r.headerEl?r.headerEl.getBoundingClientRect().right-o.left:o.width,c=r.getMinWidth(),d=Math.min(Math.max(s+i.getMinWidth(),e.clientX-o.left),l-c);function u(e,t){e.style.left=`${t}px`,(0,nD.IV)(e,"col-resizable-indicator--hidden")}u(this.$_resizeLeftMarker,s),u(this.$_resizeRightMarker,l),u(this.$_resizeIndicator,d)},removeResizeIndicator(e,t){t&&e.removeChild(t)},createResizeIndicator(e){let t=document.createElement("div");return(0,nD.cn)(t,"col-resizable-indicator"),(0,nD.cn)(t,"col-resizable-indicator--hidden"),e.appendChild(t),t},takeCols(){let e=[...this.$refs["header-col-group"].querySelectorAll("col")],t=[...this.$refs.theader.querySelectorAll("th")].reduce((e,t)=>(e[t.getAttribute("name")]=t,e),{}),i=this.currentColumns.reduce((e,t)=>(e[t[this.fieldInfo.columnKey]]=t,e),{}),n=this,o=(e=e.map(e=>({id:e.getAttribute("name"),el:e,headerEl:t[e.getAttribute("name")],data:i[e.getAttribute("name")],getWidth(e){let t=nY(this.data.defaultWidth,e);return nY(this.data.width,e)||t||this.headerEl.clientWidth||100},getCurrentWidth(){return+this.el.dataset.width||100},getMinWidth(){let{action:e,tip:t,title:i,field:o,minWidth:r}=this.data,a=n.groupInfo;if(a.action&&a.actionField===o)return 84;let s=0;return(0,nD.pv)(this.headerEl,"is-draggable")&&(0,nD.pv)(this.headerEl,"cell-first")&&(s+=16),(0,nD.pv)(this.headerEl,"last-th-cell")&&(s+=17),r?s+=r:(i&&(s+=24),e&&(s+=28),t&&(s+=26),nN(this.data)||(s+=12),s+16)},canResize:!1}))).reduce((e,t)=>(e[t.id]=t,e),{});return{cols:e,colsMap:o}},takeContainer(){return this.$refs.container},applyColsWidth(e,t){for(let i of e)if(i.el){let e=this.colsData[i.id],n=(0,nM.$K)(e)?+e:i.getWidth(t);n<i.getMinWidth()&&(n=i.getMinWidth()),i.el.dataset.width=n}return!0},buildCols(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{applyHeadersWidth:!1,containerWidth:void 0,omitColumns:[],forceFit:!1};if(!this.$refs.theader)return;let{cols:t,colsMap:i}=this.takeCols(),n=this.takeContainer(),o=(0,nM.$K)(e.containerWidth)?e.containerWidth:n.clientWidth;e.applyHeadersWidth&&o>0&&this.applyColsWidth(t,o);let r=nW(t,this.currentColumns,{onlyVisible:!0});(e.forceFit||r!==this.tableWidth||e.containerWidth)&&function(e,t,i){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{omitFixedColumns:!1,omitColumns:[]},o=nW(e,{onlyVisible:!0}),r=nW(e,{onlyVisible:!0,noFixedColumns:n.omitFixedColumns,omitColumns:n.omitColumns}),a=o-r,s=(i-o)/r,l=nH(e,{visible:!0,noFixed:n.omitFixedColumns,omitColumns:n.omitColumns});if(0===i||i<a)return;let c=[],d=[];for(let e of l){let t=function(e,t){let i=e.getCurrentWidth(),n=1;t<0&&(n=-1,t=Math.abs(t));let o=Math.floor(i+n*Math.floor(t*i)),r=e.getMinWidth();return nV(e,Math.max(r,o)),r>o?r-o:0}(e,s);t>0?s+=s>0?t/i:-t/i:c.push(e.id)}if(d=(d=n.omitColumns&&n.omitColumns.length>=1?n.omitColumns:[]).concat(c),(o=nW(e,{onlyVisible:!0}))>i){let e=o-i;for(let i of d){let n=t[i];if(n&&e>0){let t=e,i=+n.el.dataset.width-t,o=n.getMinWidth();o>i&&(i=o,t=o-+n.el.dataset.width),e-=t,nV(n,i)}}}else if(o<i){let e=i-o,t=Object.keys(l).length,n=Math.floor(e/t);for(let i of(e%=t,l)){let t=i.getMinWidth();nV(i,Math.max(t,+i.el.dataset.width+n+ +(e>0))),e>0&&e--}}}(t,i,o,{omitFixedColumns:e.applyHeadersWidth,omitColumns:e.omitColumns}),this.renderColumns(t,e),this.tableWidth=nW(t,this.currentColumns,{onlyVisible:!0}),this.$refs.scrollbar&&this.$refs.scrollbar.update(),this.$_cols=t,this.$_colsMap=i},onHeaderCellMouseMove(e,t,i){e._isGroup&&e._subColumns.length>0&&(t=e._subColumns[e._subColumns.length-1][this.fieldInfo.columnKey]);let n=i.target;for(;n&&"TH"!==n.tagName;)n=n.parentNode;let o=this.$_colsMap?.[t];o&&(n.getBoundingClientRect().right-i.pageX<10?((0,nD.iv)(n,"cursor","col-resize"),n._canResize=!0,o.canResize=!0):((0,nD.iv)(n,"cursor",""),n._canResize=!1,o.canResize=!1))},onHeaderCellMouseDown(e,t,i,n){e._isGroup&&e._subColumns.length>0&&(t=e._subColumns[e._subColumns.length-1][this.fieldInfo.columnKey]);let o=this.$_colsMap?.[t];if(!o||!o.canResize||0!==n.button)return;o.headerEl._resizing=!0,n.stopPropagation();let r=document.onselectstart,a=document.ondragstart;document.onselectstart=()=>!1,document.ondragstart=()=>!1;let s={startX:n.clientX,dragging:!0,diff:0},l=e=>{e.stopPropagation(),s.dragging&&(s.diff=Math.ceil(e.clientX-s.startX),this.adjustResizeIndicatorStyleByMouseMoveEvent(e,i,o))};(0,nD.IH)(document,"mouseup",e=>{e.stopPropagation(),s.dragging=!1,(0,nD.S1)(document,"mousemove",l);let i=nz(this.$_cols,t),n=nB(o,s.diff),c=nF(o,n=-nB(i,-n)),d=nF(i,-n);nV(o,c),nV(i,d),this.renderColumn(o),this.renderColumn(i),(0,nD.cn)(this.$_resizeIndicator,"col-resizable-indicator--hidden"),(0,nD.cn)(this.$_resizeLeftMarker,"col-resizable-indicator--hidden"),(0,nD.cn)(this.$_resizeRightMarker,"col-resizable-indicator--hidden"),document.onselectstart=r,document.ondragstart=a,delete o.headerEl._resizing,(0,nI.Qy)(this,"column-resize",this.colsData)}),(0,nD.on)(document,"mousemove",l)},renderColumn(e){e.el.setAttribute("width",e.el.dataset.width),(0,nR.t)(this.colsData,e.id,e.el.dataset.width)},renderColumns(e,t){for(let i of(t.applyHeadersWidth||0!==Object.keys(this.colsData).length||(0,nO.N6)("should apply headers width before render it. or you will get wrong width on col"),e))this.renderColumn(i)}}}),nG=i(87577),nZ=i(82959);let nj=(0,M.defineComponent)({name:"Ghost",components:{vIcon:eM.Z,vRichText:tH.Z},props:{nums:{type:[Number,String,Boolean],default:!1},icon:{type:[Boolean,Object],default:!1},title:{type:String,default:""}},data:()=>({}),computed:{showIcon(){return!!this.icon},iconProps(){return(0,nM.Kn)(this.icon)?this.icon:{}},showNums(){return(0,nM.jn)(this.nums)?this.nums:+this.nums>=2},innerNums(){return+this.nums>99?"99+":this.nums}}}),nq={class:"v-ghost"},nK={class:"ghost-title-wrapper"},nX={class:"ghost-title"},nQ={key:0,class:"ghost-dot-nums"};var n$=(0,tP.Z)(nj,[["render",function(e,t,i,n,o,r){let a=(0,M.resolveComponent)("v-icon"),s=(0,M.resolveComponent)("v-rich-text");return(0,M.openBlock)(),(0,M.createElementBlock)("div",nq,[(0,M.renderSlot)(e.$slots,"default",{},()=>[(0,M.createElementVNode)("div",nK,[e.showIcon?((0,M.openBlock)(),(0,M.createBlock)(a,(0,M.normalizeProps)((0,M.mergeProps)({key:0},e.iconProps)),null,16)):(0,M.createCommentVNode)("",!0),(0,M.createElementVNode)("div",nX,[(0,M.renderSlot)(e.$slots,"title",{},()=>[(0,M.createVNode)(s,{text:e.title},null,8,["text"])])])]),e.showNums?((0,M.openBlock)(),(0,M.createElementBlock)("i",nQ,(0,M.toDisplayString)(e.innerNums),1)):(0,M.createCommentVNode)("",!0)])])}]]),nJ=i(39693),n0=i(43319);let n1={ALWAYS:"always",HOVER:"hover",NEVER:"never"},n2="INSERT_TOP",n3="INSERT_BOTTOM",n4="INSERT_INNER",n5="INSERT_UNKNOWN";function n6(e,t,i){let{width:n,height:o}=e.getBoundingClientRect(),{offsetTop:r,offsetLeft:a}=e;i===n4&&(0,nD.pv)(t,"landed-inner")||i===n2&&(0,nD.pv)(t,"landed-up")||i===n3&&(0,nD.pv)(t,"landed-down")||((0,nD.IV)(t,"landed-down"),(0,nD.IV)(t,"landed-up"),(0,nD.IV)(t,"landed-inner"),i===n3?(0,nD.cn)(t,"landed-down"):i===n2?(0,nD.cn)(t,"landed-up"):i===n4&&(0,nD.cn)(t,"landed-inner")),(0,nD.iv)(t,"left",`${a}px`),(0,nD.iv)(t,"top",`${r}px`),(0,nD.iv)(t,"width",`${n}px`),(0,nD.iv)(t,"height",`${o}px`)}function n8(e,t,i){let n;this.$_draggingIndicator=function(e){let t=document.createElement("div");return(0,nD.cn)(t,"data-table-draggable-indicator"),e.appendChild(t),t._svcContainer=e,t}(this.$refs["table-body"]),this.rowDraggableStates.isDragging=!0;let o=i.payload.index,r=Array.from(this.selectIndexes);r.includes(o)?n=r:(this.selectRow(o,{ensureRowVisible:!0,forceSelect:!1}),n=[o]),this.rowDraggableStates.draggingIndexes=n.sort(),this.rowDraggableStates.triggerIndex=o}function n7(e){var t;t=this.$_draggingIndicator,t?.parentNode?.removeChild(t),delete this.$_draggingIndicator,this.rowDraggableStates.isDragging=!1,this.rowDraggableStates.draggingIndexes=[],this.rowDraggableStates.triggerIndex=-1}function n9(e,t,i,n){let o=t.getBoundingClientRect(),r=[e[0]-o.x,e[1]-o.y];return this.isItemDraggable(i)?this.allowReorder?this.canLandedRowInner(i)?r[1]>o.height-3?n3:r[1]<3?n2:this.rowDraggableStates.draggingIndexes.includes(n)?n5:n4:r[1]>o.height/2?n3:n2:this.canLandedRowInner(i)&&!this.rowDraggableStates.draggingIndexes.includes(n)?n4:n5:n5}function oe(e,t,i,n,o){let r=n9.call(this,e,t,i,n);if(n<0||n>=this.current.legnth)return{insertType:n5,landedIndex:-1};if(o.includes(n)){if(r===n2){if(n-1>=0&&!o.includes(n))return{insertType:n3,landedIndex:n-1}}else if(r===n3&&n+1<this.current.length&&!o.includes(n))return{insertType:n2,landedIndex:n+1};return{insertType:n5,landedIndex:n}}return{insertType:r,landedIndex:n}}function ot(e,t,i){if((0,nM.Kn)(this.isDraggable))return this.isDraggable.onDragEnter?.(e,t,i)}function oi(e,t,i){if((0,nM.Kn)(this.isDraggable))return this.isDraggable.onDrop?.(e,t,i)}function on(e,t,i){var n;let o,r;if((0,nM.Kn)(this.isDraggable)&&!1===this.isDraggable.onDragOver?.(e,t,i))return;(0,nJ.z6)(e)?(o=e.touches[0].clientX,r=e.touches[0].clientY):(o=e.clientX,r=e.clientY);let a=document.elementFromPoint(o,r),s=(0,nD.T5)(a,"tr");if(!s)return;let l=+s.getAttribute("index"),{insertType:c,landedIndex:d}=oe.call(this,[o,r],s,this.getRow(l),l,this.rowDraggableStates.draggingIndexes);this.rowDraggableStates.insertType=c,this.rowDraggableStates.landedIndex=d,n=this.$_draggingIndicator,(0,nD.iv)(n,"display","block"),n6.call(this,s,this.$_draggingIndicator,c)}function oo(){let{draggingIndexes:e,insertType:t}=this.rowDraggableStates;0!==e.length&&t!==n5&&((0,nM.$K)(this.customActionOnValidDrop)?this.current=this.customActionOnValidDrop(this.current,this.rowDraggableStates):t!==n2&&t!==n3||(this.current=function(e){let{draggingIndexes:t,insertType:i,landedIndex:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=t.map(t=>e[t]),r=e[n],a=e.slice();if(0===o.length)return a;for(let e of t.reverse())a.splice(e,1);let s=a.findIndex(e=>e===r);return i===n3?a.splice(s+1,0,...o):a.splice(s,0,...o),a}(this.current,this.rowDraggableStates)),this.clearSelection(),this.$emit("drop",{data:this.current,draggableStates:this.rowDraggableStates}),this.$emit("reorder",{data:this.current}))}function or(e,t,i){var n;(0,nM.Kn)(this.isDraggable)&&!1===this.isDraggable.onDragOut?.(e,t,i)||(n=this.$_draggingIndicator,(0,nD.iv)(n,"display","none"))}var oa=(0,M.defineComponent)({props:{getDraggingGhostProps:{type:Function,default:void 0},isDraggable:{type:[Boolean,Object],default:!1}},[nk.mT.beforeUnmount](){if(this._destroyFns)for(let e of this._destroyFns)e?.()},emits:["reorder","drop"],data:()=>({rowDraggableStates:{isDragging:!1,draggingIndexes:[],triggerIndex:-1,landedIndex:-1,insertType:n5}}),computed:{allowRowDrop(){return!!(0,nM.Kn)(this.isDraggable)&&(this.isDraggable.allowRowDrop??!1)},allowReorder(){return(0,nM.Kn)(this.isDraggable)?this.isDraggable.allowReorder??!0:this.isDraggable},draggingId(){return(0,nM.Kn)(this.isDraggable)?this.isDraggable.draggingId??`dragging-${(0,n0.V)()}`:`dragging-${(0,n0.V)()}`}},methods:{getLandedClass(e){if(!this.rowDraggableStates)return[];let{landedIndex:t,insertType:i,isDragging:n}=this.rowDraggableStates,o=["is-landed"];return!1===n||t!==e?[]:(i===n3?o.push("landed-down"):i===n2?o.push("landed-up"):i===n4?o.push("landed-inner"):o.push("landed-unknown"),o)},getDraggingClass(e){return this.rowDraggableStates&&!1!==this.rowDraggableStates.isDragging&&this.rowDraggableStates.draggingIndexes.includes(e)?["is-dragging"]:[]},renderDraggingGhost(e){let{column:t}=nP(this.columns,0),{draggingIndexes:i,triggerIndex:n}=this.rowDraggableStates,o=this.current[n],r=this.getDraggingGhostProps?.(t.field,o,n)??{},{destroyFn:a,anchorEl:s}=(0,nZ.J)(this.$.appContext.app,n$,{nums:i.length,title:this.getCellValue(t.field,o,n),...r});return e.appendChild(s),a},buildDraggableCols(){let e=this.$refs.content&&[...this.$refs.content.querySelectorAll("table")];if(e){if(this._destroyFns)for(let e of this._destroyFns)e?.();for(let{index:t,item:i}of(this._destroyFns=[],this.dragZone=new nG.sZ(e[0],{draggingId:this.draggingId},{componentName:this.$options.name}),this._destroyFns.push(this.$ddm.registerDragZone(this.dragZone)),this.currentVisible)){let e=this.$refs[`row-${t}`]?.[0];if(e=e?.$el??e){if(e._ddTarget)e._ddTarget.payload={index:t};else if(!this.isItemDisabled(i)&&this.isItemDraggable(i)){let i=new nG._1(e,{renderGhost:e=>this.renderDraggingGhost(e),startDrag:n8.bind(this),endDrag:n7.bind(this),onDragEnter:ot.bind(this),onDragOver:on.bind(this),onDragOut:or.bind(this),onDrop:oi.bind(this),onValidDrop:oo.bind(this),ghostCls:"v-table-dd-ghost",draggingId:this.draggingId},{index:t,componentName:this.$options.name});this._destroyFns.push(i.registerDragZone(this.dragZone),this.$ddm.registerDragTarget(i))}}}}},canLandedRowInner(e){return e?.[this.fieldInfo.rowInfo]?.allowDrop??this.allowRowDrop}}});function os(e,t){if(t.el._resizing||t.el._canResize)return!1}function ol(e,t,i){this.colDraggableStates.isDragging=!0,this.colDraggableStates.draggingIndex=i.payload.index,this.colDraggableStates.draggingKey=i.payload.key,this.$_topMoveableIndicator=og(document.body,"top"),this.$_bottomMoveableIndicator=og(document.body,"bottom")}function oc(e){window.setTimeout(()=>{this.colDraggableStates={isDragging:!1,draggingIndex:-1,landedIndex:-1,draggingKey:null,landedKey:null},function(e){for(let t of e)t&&t.parentNode&&t.parentNode.removeChild(t)}([this.$_topMoveableIndicator,this.$_bottomMoveableIndicator])},0)}function od(e,t){let i=t?nD.IV:nD.cn;for(let t of e)i(t,"col-moveable-indicator--hidden")}function ou(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"top",n=arguments.length>3?arguments[3]:void 0,{top:o,right:r,left:a,bottom:s}=e.getBoundingClientRect(),[l,c]=this.$alignManager.getScroll(document.body),d=0;e.getAttribute("is-group")&&(d=20),a=("before"===n?a:r)+-4+l,o=("top"===i?o:s+t.offsetWidth+d)+-9+c,(0,nD.iv)(t,"left",`${a}px`),(0,nD.iv)(t,"top",`${o}px`)}function oh(e){let t=document.elementFromPoint(e.clientX,e.clientY),i=(0,nD.T5)(t,"th");if(!i||!i._markDraggable)return;let n="before",o=i.cellIndex,r=i,{width:a}=i.getBoundingClientRect();if(function(e,t){let{x:i,y:n}=t.getBoundingClientRect();return[e.pageX-i,e.pageY-n]}(e,i)[0]>a/2){n="after";let e=function(e,t,i){let n=e.findIndex(e=>e[i]===t),o=e[++n];for(;o&&op(o);)o=e[++n];return{col:o,index:n}}(this.columns,i.getAttribute("name"),this.fieldInfo.columnKey);i=e.col?this.$options.headersMap[e.col[this.fieldInfo.columnKey]]:null,o=e.index}if(this.colDraggableStates.landedIndex=o,this.colDraggableStates.position=n,this.colDraggableStates.landedKey=i?i.getAttribute("name"):"n/a",this.colDraggableStates.draggingKey===this.colDraggableStates.landedKey)return od([this.$_topMoveableIndicator,this.$_bottomMoveableIndicator],!1),!1;od([this.$_topMoveableIndicator,this.$_bottomMoveableIndicator],!0),ou.call(this,r,this.$_topMoveableIndicator,"top",n),ou.call(this,r,this.$_bottomMoveableIndicator,"bottom",n)}function op(e){return e.hide||e.groupKey}function of(){let{draggingIndex:e,landedIndex:t,draggingKey:i,landedKey:n}=this.colDraggableStates;if(-1===e||-1===t)return;let o=this.columns.findIndex(e=>e[this.fieldInfo.columnKey]===i),r=-1;r=t===this.columns.length?t:this.columns.findIndex(e=>e[this.fieldInfo.columnKey]===n);let a=this.columns.slice();a=function(e,t,i){let n=e[t],o=e.slice(),r=t;return n&&(o.splice(i,0,n),i<t&&r++,o.splice(r,1)),o}(a,o,r),this.$emit("update:columns",a)}function og(e,t){let i=document.createElement("div");return(0,nD.cn)(i,"col-moveable-indicator"),(0,nD.cn)(i,t),e.appendChild(i),i}var om=(0,M.defineComponent)({emits:["update:columns"],data:()=>({colDraggableStates:{isDragging:!1,draggingIndex:-1,landedIndex:-1}}),methods:{removeMoveableColsDD(){if(this.$options.moveableDD){for(let e of this.$options.moveableDD)e.purge();this.$options.moveableDD=[]}},buildMoveableCols(){this.removeMoveableColsDD(),this.$options.moveableDD=this.$options.moveableDD||[];let e=this.$refs.theader;if(!e)return;let t=this.isGroupHeadMode?this.firstColumnRow:this.currentVisibleColumns,i=t.length,n=new nG.sZ(e);this.$options.headersMap=[...this.$refs.theader.querySelectorAll("th")].reduce((e,t)=>(e[t.getAttribute("name")]=t,e),{});for(let e=0;e<i;e++){let i=t[e],o=this.getHeaderCell(e);if(!o||op(i))continue;let r=new nG._1(o,{onBeforeDrag:os.bind(this),startDrag:ol.bind(this),endDrag:oc.bind(this),onDragOver:oh.bind(this),onValidDrop:of.bind(this),ghostCls:"v-table-dd-ghost col-moveable-ghost",getTargetContent:(function(){return`
                    <div class="col-moveable">
                        <div class="dd-drop-icon"></div>
                        <div class="col-desc">
                            ${o.innerText}
                        </div>
                    </div>`}).bind(this)},{index:e,key:i[this.fieldInfo.columnKey]});r.registerDragZone(n),this.$ddm.registerDragTarget(r),this.$options.moveableDD.push(r)}}}});let ov={toggle:"toggle",select:"select","select-keep":"select-keep",range:"range","range-keep":"range-keep"};function ob(e){let{isCtrlMode:t=(0,nJ.yl)(e),isShiftMode:i=(0,nJ.cY)(e)}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return i?t?ov["range-keep"]:ov.range:t?ov.toggle:ov.select}function oy(){let{toggle:e="toggleItem",selectRange:t,isMultipleSelected:i="isMultipleSelected",select:n="selectItem",getItemValue:o="getItemValue",isItemDisabled:r="isItemDisabled",itemsKey:a="selectedItems"}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{data:()=>({lastSelectIndex:-1,lastSelectRangeIndex:-1,[a]:new Set,forceSelectedItems:new Set}),methods:{clearSelection(){let{force:e=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e?(this[a]=new Set,this.forceSelectedItems=new Set):this[a]=new Set(this.forceSelectedItems),!0},resetSelectIndex(){this.lastSelectIndex=this.lastSelectRangeIndex=-1},addSelectedItem(e){let{forceSelect:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=this[o](e);if(t)this.forceSelectedItems.add(i);else if(this[r](e))return!1;return this[a].add(i),!0},removeSelectedItem(e){let{forceSelect:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=this[o](e);if(t)this.forceSelectedItems.delete(i);else if(this[r](e))return!1;return this[a].delete(i),!0},isItemSelected(e){let t=this[o](e);return this[a].has(t)},selectItems(e){for(let t of e)this.addSelectedItem(t);this[a]=new Set(this[a])},selectItemsRange(e,t,i){let{keepSelection:n=!1}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};n||this.clearSelection();let o=(0,nM.HU)(Math.min(e,t),0,i.length-1),r=(0,nM.HU)(Math.max(e,t),0,i.length-1);return this.selectItems(i.slice(o,r+1)),this.lastSelectRangeIndex=t,!0},onClickItem(o,r,a){var s;let{selectStrategy:l}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},c=arguments.length>4?arguments[4]:void 0,d=this[i]();if(((s=l=l??ob(o))===ov.range||s===ov["range-keep"])&&-1!==this.lastSelectIndex&&d){let e=l===ov["range-keep"];return this[t](e?this.lastSelectRangeIndex:this.lastSelectIndex,r,{keepSelection:e},c)}if(l===ov.toggle&&d)return this[e](a,r,c);{let e=l===ov["select-keep"];return this[n](a,r,{keepSelection:e,...c})}},toggleItem(e,t){let{forceSelect:i=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.isItemSelected(e)?this.removeSelectedItem(e,{forceSelect:i}):(this.addSelectedItem(e,{forceSelect:i}),this.lastSelectIndex=this.lastSelectRangeIndex=t),this[a]=new Set(this[a]),!0},selectItem(e,t){let{forceSelect:i=!1,keepSelection:n=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return!(!i&&this[r](e))&&(n||this.clearSelection(),this.addSelectedItem(e,{forceSelect:i}),this.lastSelectIndex=this.lastSelectRangeIndex=t,!0)}}}}function ow(e,t){return e>=0&&e<t.length}function o_(e){return(0,nM.kJ)(e)?e.map(e=>o_(e)):e?.$el??e}var ox=(0,M.defineComponent)({mixins:[oy({toggle:"toggleRowItem",selectRange:"selectRange",select:"selectRowItem",getItemValue:"getItemValue",isItemDisabled:"isRowUnselectable",itemsKey:"selectIndexes"})],props:{multipleSelected:{type:Boolean,default:!1}},emits:["rowclick","rowclear"],data:()=>({hoverIndex:null}),computed:{innerMultipleSelected(){return"checkbox"===this.innerSelectionMode||"file-list"===this.innerSelectionMode||this.multipleSelected}},watch:{hoverIndex(e,t){(0,nD.Wn)(()=>{let i=o_(this.$refs[`row-${e}`]),n=o_(this.$refs[`row-${t}`]);this.groupTable&&(i=o_(this.$refs.groupNode.$refs[`row-${e}`]),n=o_(this.$refs.groupNode.$refs[`row-${t}`])),this.toggleHoverRow("row-hover",i,n),this.toggleHoverRow("row-hover",this.$refs[`expandable-row-${e}`],this.$refs[`expandable-row-${t}`])})}},methods:{isMultipleSelected(){return this.innerMultipleSelected},toggleHoverRow(e,t,i){t=t&&t[0],(i=i&&i[0])&&(0,nD.IV)(i,e),t&&(0,nD.cn)(t,e)},ensureRowVisible(e){let t=o_(this.$refs[`row-${e}`]);t&&t[0]&&this.$refs.scrollbar.ensureVisible(t[0])},getItemValue:e=>e.index,selectRowItem(e,t,i){let{index:n}=e;return this.selectRow(n,i)},toggleRowItem(e,t,i){let{index:n}=e;return this.toggleRow(n,i)},toggleRow(e){let{ensureRowVisible:t=!0,forceSelect:i}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t&&this.ensureRowVisible(e),this.toggleItem({index:e},e,{ensureRowVisible:t,forceSelect:i})},selectRow(e){let{ensureRowVisible:t=!0,forceSelect:i,keepSelection:n=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t&&this.ensureRowVisible(e),this.selectItem({index:e},e,{ensureRowVisible:t,forceSelect:i,keepSelection:n})},selectPrevRow(){ow(this.lastSelectIndex-1,this.current)&&this.selectRow(this.lastSelectIndex-1)},selectNextRow(){ow(this.lastSelectIndex+1,this.current)&&this.selectRow(this.lastSelectIndex-1)},defaultSelect(){if(this.clearSelection(),!0!==this.defaultSelected)if(this.innerMultipleSelected)for(let e of(0,nM.kJ)(this.defaultSelected)?this.defaultSelected:[this.defaultSelected])this.clickRow(e,null,{selectStrategy:ov["select-keep"],forceSelect:this.isRowUnselectable({index:e})});else this.clickRow(this.defaultSelected,null);else{let e=!1,t=-1;for(let i of this.getAllRange({filter:!1}))this.isRowDefaultSelected(i)&&(this.clickRow(i,null,{selectStrategy:ov["select-keep"],forceSelect:this.isRowUnselectable({index:i})}),e=!0),-1===t&&this.isRowSelectable(i)&&(t=i);e||this.clickRow(t,null)}},clearSelectedRows(){this.clearSelection(),(0,nI.Qy)(this,"rowclear")},clickRow(e,t){let{selectStrategy:i,forceSelect:n=!1,isCtrlMode:o=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r={},a=!1;if(this.innerMultipleSelected){i=i??ob(t,{isCtrlMode:(0,nJ.yl)(t)||"checkbox"===this.innerSelectionMode||o}),a=this.onClickItem(t,e,{index:e},{selectStrategy:i},{forceSelect:n});let s=Array.from(this.selectIndexes);r={indexes:s,rows:this.getRows(s)}}else{let n=(i=i??ob(t))===ov["select-keep"];a=this.selectRow(e,{keepSelection:n});let o=Array.from(this.selectIndexes);r={index:o[0],row:this.getRow(o[0])}}return a&&((0,nI.Qy)(this,"rowclick",r),this.$nextTick(()=>{this.toggleHoverRow("row-hover",o_(this.$refs[`row-${this.hoverIndex}`]),null),this.toggleHoverRow("row-hover",this.$refs[`expandable-row-${this.hoverIndex}`],null)})),{result:a,payload:r}},getRow(e){if((0,nM.hj)(e))return this.current?this.current[e]:null;if((0,nM.HD)(e)){let[t,i]=e.split(":"),n=this.categories.find(e=>e.key===t);return n?n.items[i]:null}return null},getRows(e){return e.map(e=>this.getRow(e))},unselectCategory(e){if(this.innerMultipleSelected){for(let[t]of e.items.entries()){let i=`${e.key}:${t}`;this.selectIndexes.delete(i)}this.selectIndexes=new Set(this.selectIndexes)}},selectCategory(e){if(this.innerMultipleSelected){for(let[t]of e.items.entries()){let i=`${e.key}:${t}`;this.selectIndexes.add(i)}this.selectIndexes=new Set(this.selectIndexes)}},selectAll(){if(this.innerMultipleSelected){let e=this.getAllRange({filter:this.filtered,pagination:!!this.autoPagination&&{pageNum:this.currentPageNum,pageSize:this.currentPageSize}});this.clearSelection(),this.selectRows(e)}},selectRows(e){let{forceSelect:t,ensureRowVisible:i=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.innerMultipleSelected&&e.length>1)throw Error("selectRows with multiple indexes only work in multiple-selected mode");for(let i of e)this.isRowSelectable(i)&&this.addSelectedItem({index:i},{forceSelect:t});i&&e.length>0&&this.ensureRowVisible(e[e.length-1]),this.selectIndexes=new Set(this.selectIndexes)},deselectRows(e){let{forceSelect:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(let i of e)this.isRowSelectable({index:i})&&this.removeSelectedItem({index:i},{forceSelect:t});this.selectIndexes=new Set(this.selectIndexes)},selectRange(e,t){let{keepSelection:i=!1,forceSelect:n=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};i||this.clearSelection();let o="add";this.isSelectionMode&&this.isItemSelected({index:t})&&(o="remove");let r=this.getVisibleRange(e,t);return"add"===o?this.selectRows(r,{forceSelect:n}):this.deselectRows(r,{forceSelect:n}),this.lastSelectRangeIndex=t,!0},getIndex(e){if(this.groupTable){let[t,i]=e.split(":");return[this.categories.findIndex(e=>e.key===t),+i]}return e},getAllRange(){let{filter:e=!1,pagination:t=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=[];if(this.groupTable)for(let t of this.categories){let n=this.getItems(t.items,{filter:e});i=i.concat(n.map(e=>{let{index:i}=e;return`${t.key}:${i}`}))}else i=this.getItems(this.current,{filter:e}).map(e=>{let{index:t}=e;return t});if(t){let{pageNum:e,pageSize:n}=t,o=(e-1)*n;i=i.slice(o,o+this.pageSize)}return i},getVisibleRange(e,t){if(this.groupTable){let i=this.categories,n=[],[o,r]=this.getIndex(e),[a,s]=this.getIndex(t);(o===a?r<s:o<a)||([o,a]=[a,o],[r,s]=[s,r]);for(let e=o;e<=a;e++){let t,l,c=this.getItems(i[e].items,{filter:this.filtered});t=e===o?r:0,l=e===a?s:i[e].items.length-1;let d=c.findIndex(e=>{let{index:i}=e;return i===t}),u=c.findIndex(e=>{let{index:t}=e;return t===l});n=n.concat(c.slice(d,u+1).map(t=>{let{index:n}=t;return`${i[e].key}:${n}`}))}return n}e>t&&([e,t]=[t,e]);let i=this.currentPagingData.findIndex(t=>{let{index:i}=t;return i===e}),n=this.currentPagingData.findIndex(e=>{let{index:i}=e;return i===t});return this.currentPagingData.slice(i,n+1).map(e=>{let{index:t}=e;return t})},hoverRow(e){this.hoverIndex=e},getSelectedRowClass(e){return this.isItemSelected({index:e})?["row-selected"]:[]},getRowClass(e,t){let i={"row-disabled":this.isItemDisabled&&this.isItemDisabled(t)},n=this.customRowClasses||[];if(t[this.fieldInfo.rowInfo]&&t[this.fieldInfo.rowInfo].customClasses){let e=t[this.fieldInfo.rowInfo].customClasses;(Array.isArray(e)||(0,nM.HD)(e))&&(n=n.concat(e))}return["row",i].concat(n).concat(this.getSelectedRowClass(e))},isRowUnselectable(e){let{index:t}=e;return!this.isRowSelectable(t)},isRowDefaultSelected(e){let t=this.getRow(e);return!!t&&!!t?.[this.fieldInfo.rowInfo]?.defaultSelected},isRowForceSelected(e){return this.isRowUnselectable({index:e})&&this.selectIndexes.has(e)},isRowSelectable(e){let t=this.getRow(e);return!t||!t[this.fieldInfo.rowInfo]||!t[this.fieldInfo.rowInfo].unselectable}}}),oS=i(31842),oC=i(18954),ok=i(47696),oI=i(64794),oA=i(9022),oT=i(74999),oE=i(70243);(0,oA.z)("pagination-first",oT.H3),(0,oA.z)("pagination-last",oT.k7),(0,oA.z)("pagination-right",oT.ED),(0,oA.z)("pagination-right-double",oT.k6),(0,oA.z)("pagination-left",oT.aP),(0,oA.z)("pagination-left-double",oT.cG),(0,oA.z)("pagination-refresh",oT.vN);let oR=["start","end","total","filteredCount","selectedCount"];var oD=(0,M.defineComponent)({name:"Pagination",components:{SpinIcon:i0.Z,vIcon:eM.Z,vSingleSelect:H.Z,vRichText:tH.Z},directives:{tooltip:oI.Z,iconify:oA.Z},mixins:[ok.Z],props:{[oC.yz.value()]:{type:Number,default:1},total:{type:[Number,String],default:0},start:{type:[Number,String],default:0},end:{type:[Number,String],default:0},selectedCount:{type:[Number,String],default:0},filteredCount:{type:[Number,String],default:0},switchPage:{type:Boolean,default:!0},pageShiftUnit:{type:Number,default:5},pageSize:{type:Number,default:10},showTotal:{type:Boolean,default:!0},hideRefreshBtn:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},itemsPerPage:{type:(0,oE.C)([Boolean,Array]),default:!1},mode:{type:(0,oE.C)(String),default:"normal",validator:e=>["normal","less"].includes(e)},hasFirstBtn:{type:Boolean,default:!0},hasLastBtn:{type:Boolean,default:!0},hasNext:{type:Boolean,default:void 0},hasPrev:{type:Boolean,default:void 0},endless:{type:Boolean,default:!1},mobileBreakpoint:{type:(0,oE.C)([Object,Boolean]),default:()=>({"hide-per-page":"sm","hide-total-items":"xxs",less:"sm"})},totalTextMode:{type:(0,oE.C)(String),validator:e=>["total","range","filter","select"].includes(e),default:"total"},totalTextFormat:{type:Object,default:()=>({})},beforeSwitchPage:{type:Function,default:void 0}},emits:["update:page-size","update:model-value","change","change-page","refresh"],data(){return{current:(0,oC.eQ)(this),prefixCls:"v-pagination",activeBtn:void 0}},computed:{innerTotalTextFormat(){return(0,nT.Z)({total:"{total} {items}",range:"{start}-{end} {items}",filter:"{filteredCount} {items}",select:`<span class="selected-item">{selectedCount}</span> / {total} {items} ${this._i18n("common","selected")}`},this.totalTextFormat)},currentPageShiftUnit(){return this.lessMode?1:this.pageShiftUnit},prevBtnIconName(){return 1===this.currentPageShiftUnit?"pagination-left":"pagination-left-double"},nextBtnIconName(){return 1===this.currentPageShiftUnit?"pagination-right":"pagination-right-double"},prevBtnClass(){return[this.prefixCls+"-prev",{disabled:!this._hasPrev(),single:1===this.currentPageShiftUnit}]},nextBtnClass(){return[this.prefixCls+"-next",{disabled:!this._hasNext(),single:1===this.currentPageShiftUnit}]},prevLabel(){return this._i18n("uicommon","pre_x_pages").replace("{0}",`${this.currentPageShiftUnit}`)},nextLabel(){return this._i18n("uicommon","next_x_pages").replace("{0}",`${this.currentPageShiftUnit}`)},wrapperCls(){return[this.prefixCls,{less:this.lessMode,"rwd--less":this.isLessByRWD}]},isPerPageHidden(){return this.mobileBreakpoint&&this.$breakpointManager?.lessAndEqThan(this.mobileBreakpoint?.["hide-per-page"]??"sm")},isTotalItemsHidden(){return this.mobileBreakpoint&&this.$breakpointManager?.lessAndEqThan(this.mobileBreakpoint?.["hide-total-items"]??"xxs")},isLessByRWD(){return this.mobileBreakpoint&&this.$breakpointManager?.lessAndEqThan(this.mobileBreakpoint?.less??"sm")},lessMode(){return"less"===this.mode||this.isLessByRWD},currentPageSize:{get(){return this.pageSize},set(e){e!==this.pageSize&&((0,nI.Qy)(this,"update:page-size",e),(0,nI.Qy)(this,(0,oC.ef)(),1))}},allPages(){return Math.ceil(+("filter"===this.totalTextMode?this.filteredCount:this.total)/this.pageSize)},pageList(){if(this.lessMode)return[this.current];let e=[],t=this.pageLeft,i=this.pageRight;for(let n=t;n<=i;n++)e.push(n);return e},pageLeft(){return this.allPages<5?1:this.current-2},pageRight(){return this.allPages<5?this.allPages:this.current+2},totalText(){let e=this.innerTotalTextFormat[this.totalTextMode];for(let t of oR)if((0,nM.$K)(this[t])){let i=(0,nM.mf)(this[t])?this[t](this):this[t];e=e.replace(`{${t}}`,`${i}`)}return e.replace("{items}",this.getItemsText(this.totalTextMode))}},watch:{current(e){(0,nI.Qy)(this,(0,oC.ef)(),e),(0,nI.Qy)(this,"change",e)},[oC.yz.value()](e){this.current=e},allPages(){this._outOfRange((0,oC.eQ)(this))&&(this.current=1)}},methods:{getItemsText(e){let t=!1;return"total"===e?t=1==+this.total:"range"===e?t=+this.start==+this.end:"filter"===e?t=1==+this.filteredCount:"select"===e&&(t=1==+this.selectedCount),t?this._i18n("uicommon","item"):this._i18n("uicommon","items")},getPageButtonClass(e){return[this.prefixCls+"-item",this.prefixCls+"-item-"+e,this.current==e?this.prefixCls+"-item-active":"",this._outOfRange(e)?this.prefixCls+"-item-ghost":""]},async _handleChange(e){!1!==await this.beforeSwitchPage?.({pageNum:e,pageSize:this.currentPageSize})&&(e=Math.max(e,1),this.endless||(e=Math.min(e,this.allPages)),(0,nI.Qy)(this,"change-page",{pageNum:e}),this._isValid(e)&&(this.current=e,await this.$nextTick(),this.$refs.page[e-this.pageLeft]?.focus()))},_handleRefresh(){(0,nI.Qy)(this,"refresh")},_prev(){this._hasPrev()&&this._handleChange(this.current-this.currentPageShiftUnit)},_first(){this._handleChange(1)},_last(){this._handleChange(this.allPages)},_next(){this._hasNext()&&this._handleChange(this.current+this.currentPageShiftUnit)},_hasPrev(){return(0,nM.$K)(this.hasPrev)?this.hasPrev:this.current>1},_hasNext(){return(0,nM.$K)(this.hasNext)?this.hasNext:!!this.endless||this.current<this.allPages},_isValid(e){return(0,nM.hj)(e)&&e!==this.current},_outOfRange(e){return this.endless?e<1:e<1||e>this.allPages},async activateBtnByArrowKeydown(e){["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"].includes(e.key)&&(e.preventDefault(),["ArrowUp","ArrowLeft"].includes(e.key)&&await this.setActiveBtnToLeft(),["ArrowDown","ArrowRight"].includes(e.key)&&await this.setActiveBtnToRight(),this.focusActiveBtn())},async setActiveBtnToLeft(){await this.$nextTick();let e=[this.$refs.firstBtn,this.$refs.prevBtn,...this.$refs.page,this.$refs.nextBtn,this.$refs.lastBtn].filter(e=>0===e.tabIndex),t=e.indexOf(this.activeBtn);-1===t&&(t=e.length);let i=Math.max(0,t-1);this.activeBtn=e[i]},async setActiveBtnToRight(){await this.$nextTick();let e=[this.$refs.firstBtn,this.$refs.prevBtn,...this.$refs.page,this.$refs.nextBtn,this.$refs.lastBtn].filter(e=>0===e.tabIndex),t=Math.min(e.indexOf(this.activeBtn)+1,e.length-1);this.activeBtn=e[t]},focusActiveBtn(){this.activeBtn&&this.activeBtn.focus()}}});let oO=["tabindex","aria-pressed","aria-label","syno-id","onFocus","onClick","onKeydown"],oM={key:0,class:"items-per-page-wrapper"},oN={class:"items-per-page-text"};var oP=(0,tP.Z)(oD,[["render",function(e,t,i,n,o,r){let a=(0,M.resolveComponent)("v-icon"),s=(0,M.resolveComponent)("v-single-select"),l=(0,M.resolveComponent)("v-rich-text"),c=(0,M.resolveComponent)("spin-icon"),d=(0,M.resolveDirective)("tooltip"),u=(0,M.resolveDirective)("syno-id");return(0,M.withDirectives)(((0,M.openBlock)(),(0,M.createElementBlock)("div",{class:(0,M.normalizeClass)(e.wrapperCls)},[(0,M.createElementVNode)("div",{class:(0,M.normalizeClass)(e.prefixCls+"-left")},[e.switchPage?((0,M.openBlock)(),(0,M.createElementBlock)("ul",{key:0,class:"left-paging",onKeydown:t[12]||(t[12]=function(){return e.activateBtnByArrowKeydown&&e.activateBtnByArrowKeydown(...arguments)})},[e.hasFirstBtn?(0,M.withDirectives)(((0,M.openBlock)(),(0,M.createBlock)(a,{key:0,ref:"firstBtn",role:"button",name:"pagination-first","svg-icon-set":"set13",tabindex:e._hasPrev()?0:-1,"aria-label":e._i18n("extlang","firstpage"),class:(0,M.normalizeClass)([e.prefixCls+"-first",e._hasPrev()?"":"disabled"]),"syno-id":`${e.synoId}-pagination-first`,onFocus:t[0]||(t[0]=t=>e.activeBtn=e.$refs.firstBtn),onClick:t[1]||(t[1]=t=>e._first()),onKeyup:t[2]||(t[2]=(0,M.withKeys)((0,M.withModifiers)(t=>e._first(),["prevent"]),["native","enter"]))},null,8,["tabindex","aria-label","class","syno-id"])),[[d,e._i18n("extlang","firstpage")]]):(0,M.createCommentVNode)("",!0),(0,M.withDirectives)((0,M.createVNode)(a,{ref:"prevBtn",role:"button","svg-icon-set":"set13",name:e.prevBtnIconName,tabindex:e._hasPrev()?0:-1,"aria-label":e.prevLabel,class:(0,M.normalizeClass)(e.prevBtnClass),"syno-id":`${e.synoId}-pagination-prev`,onFocus:t[3]||(t[3]=t=>e.activeBtn=e.$refs.prevBtn),onClick:t[4]||(t[4]=t=>e._prev()),onKeyup:t[5]||(t[5]=(0,M.withKeys)((0,M.withModifiers)(t=>e._prev(),["prevent"]),["native","enter"]))},null,8,["name","tabindex","aria-label","class","syno-id"]),[[d,e.prevLabel]]),((0,M.openBlock)(!0),(0,M.createElementBlock)(M.Fragment,null,(0,M.renderList)(e.pageList,(t,i)=>((0,M.openBlock)(),(0,M.createElementBlock)("li",{ref_for:!0,ref:"page",key:`${t}-${i}`,role:"button",class:(0,M.normalizeClass)(e.getPageButtonClass(t)),tabindex:e._outOfRange(t)?-1:0,"aria-pressed":e.current==t,"aria-label":e._i18n("uicommon","goto_page").replace("{0}",`${t}`),"syno-id":`${e.synoId}-pagination-${i}`,onFocus:t=>e.activeBtn=e.$refs.page[i],onClick:i=>e._handleChange(t),onKeydown:(0,M.withKeys)((0,M.withModifiers)(i=>e._handleChange(t),["prevent"]),["enter"])},(0,M.toDisplayString)(e._outOfRange(t)?"":t),43,oO))),128)),(0,M.withDirectives)((0,M.createVNode)(a,{ref:"nextBtn",role:"button","svg-icon-set":"set13",name:e.nextBtnIconName,tabindex:e._hasNext()?0:-1,"aria-label":e.nextLabel,class:(0,M.normalizeClass)(e.nextBtnClass),"syno-id":`${e.synoId}-pagination-next`,onFocus:t[6]||(t[6]=t=>e.activeBtn=e.$refs.nextBtn),onClick:t[7]||(t[7]=t=>e._next()),onKeyup:t[8]||(t[8]=(0,M.withKeys)((0,M.withModifiers)(t=>e._next(),["prevent"]),["native","enter"]))},null,8,["name","tabindex","aria-label","class","syno-id"]),[[d,e.nextLabel]]),e.hasLastBtn&&!e.endless?(0,M.withDirectives)(((0,M.openBlock)(),(0,M.createBlock)(a,{key:1,ref:"lastBtn",role:"button",name:"pagination-last","svg-icon-set":"set13",tabindex:e._hasNext()?0:-1,"aria-label":e._i18n("extlang","lastpage"),class:(0,M.normalizeClass)([e.prefixCls+"-last",e._hasNext()?"":"disabled"]),"syno-id":`${e.synoId}-pagination-last`,onFocus:t[9]||(t[9]=t=>e.activeBtn=e.$refs.lastBtn),onClick:t[10]||(t[10]=t=>e._last()),onKeyup:t[11]||(t[11]=(0,M.withKeys)((0,M.withModifiers)(t=>e._last(),["prevent"]),["native","enter"]))},null,8,["tabindex","aria-label","class","syno-id"])),[[d,e._i18n("extlang","lastpage")]]):(0,M.createCommentVNode)("",!0)],32)):(0,M.createCommentVNode)("",!0)],2),(0,M.renderSlot)(e.$slots,"right-wrapper",{},()=>[(0,M.createElementVNode)("div",{class:(0,M.normalizeClass)(e.prefixCls+"-right")},[e.isPerPageHidden?(0,M.createCommentVNode)("",!0):((0,M.openBlock)(),(0,M.createElementBlock)(M.Fragment,{key:0},[e.itemsPerPage?((0,M.openBlock)(),(0,M.createElementBlock)("div",oM,[(0,M.createElementVNode)("span",oN,(0,M.toDisplayString)(e._i18n("common","items_perpage")),1),(0,M.createVNode)(s,{modelValue:e.currentPageSize,"onUpdate:modelValue":t[13]||(t[13]=t=>e.currentPageSize=t),width:98,"syno-id":`${e.synoId}-per-page-select`,options:e.itemsPerPage},null,8,["modelValue","syno-id","options"])])):(0,M.createCommentVNode)("",!0),(0,M.renderSlot)(e.$slots,"right")],64)),!e.showTotal||e.endless||e.isTotalItemsHidden?(0,M.createCommentVNode)("",!0):(0,M.renderSlot)(e.$slots,"total",{key:1},()=>[(0,M.createElementVNode)("div",{class:(0,M.normalizeClass)(e.prefixCls+"-total")},[(0,M.createVNode)(l,{text:e.totalText},null,8,["text"])],2)]),e.loading?((0,M.openBlock)(),(0,M.createBlock)(c,{key:2})):(0,M.withDirectives)(((0,M.openBlock)(),(0,M.createBlock)(a,{key:3,role:"button",tabindex:"0",name:"pagination-refresh",class:"v-pagination-refresh","svg-icon-set":"set13","aria-label":e._i18n("common","refresh"),"syno-id":`${e.synoId}-pagination-refresh`,onClick:t[14]||(t[14]=t=>e._handleRefresh()),onKeyup:t[15]||(t[15]=(0,M.withKeys)((0,M.withModifiers)(t=>e._handleRefresh(),["prevent"]),["native","enter"]))},null,8,["aria-label","syno-id"])),[[M.vShow,!e.hideRefreshBtn]])],2)])],2)),[[u]])}]]),oL=i(63511),oB=(0,M.defineComponent)({name:"SlideUpDown",props:{expand:{type:Boolean,default:!1},duration:{type:Number,default:240},tag:{type:String,default:"div"}},emits:["update:expand","expand","collapse","before-expand","before-collapse"],data:()=>({prefix:"v-slide-up-down",style:{},inTransition:!1}),watch:{expand(e,t){this.inTransition?this.$emit("update:expand",t):this.doLayout(e,!0)}},mounted(){this.doLayout(this.expand,!1)},methods:{async setHeight(e,t,i){this.style={height:e},i&&await this.$nextTick(),this.forceRelayout=this.$refs.wrapper.scrollHeight,this.style={height:t,overflow:"hidden","transition-property":"height","transition-timing-function":"ease","transition-duration":this.duration+"ms"},e===t&&this.onTransitionEnd()},onTransitionEnd(){this.inTransition&&(this.inTransition=!1),this.expand?(this.style={},this.$emit("expand")):(this.style={height:"0px",overflow:"hidden"},this.$emit("collapse"))},doLayout(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];t&&(this.inTransition=!0),e?(this.$emit("before-expand"),t?this.setHeight("0px",`${this.$refs.wrapper.scrollHeight}px`,!0):this.setHeight("0px","auto",!1)):(this.$emit("before-collapse"),this.setHeight(`${this.$refs.wrapper.scrollHeight}px`,"0px",t))}},render(){return(0,oL.h)(this.tag,{style:this.style,ref:"wrapper",attrs:{"aria-hidden":!this.expand},directives:[{name:"syno-id"}],on:{transitionend:this.onTransitionEnd}},this.$slots.default)}});let oF=(0,M.defineComponent)({name:"TreeNode",components:{vSlideUpDown:oB},props:{node:{type:Object,required:!0},columns:{type:Array,required:!0},index:{type:Number,required:!0},level:{type:Number,required:!0},defaultExpand:{type:Boolean,default:!1}},data(){return{prefix:"v-table-tree-node",currentExpand:this.defaultExpand||this.node.expanded||!1}},computed:{expandable(){return!this.node.leaf&&this.node.children}},methods:{toggle(){this.expandable&&(this.currentExpand=!this.currentExpand)}}}),oV=["syno-id"],oz={class:"cell-content"},oH={class:"cell-text"},oW={class:"tree-child"};var oY=(0,tP.Z)(oF,[["render",function(e,t,i,n,o,r){let a=(0,M.resolveComponent)("tree-node",!0),s=(0,M.resolveComponent)("v-slide-up-down");return(0,M.openBlock)(),(0,M.createElementBlock)("div",{class:(0,M.normalizeClass)(e.prefix+"-ct")},[(0,M.createElementVNode)("table",{class:(0,M.normalizeClass)(e.prefix+"-table")},[(0,M.createElementVNode)("tr",null,[((0,M.openBlock)(!0),(0,M.createElementBlock)(M.Fragment,null,(0,M.renderList)(e.columns,(i,n)=>((0,M.openBlock)(),(0,M.createElementBlock)("td",{key:n,"syno-id":`${e.synoId}-td-${n}`},[(0,M.renderSlot)(e.$slots,"td",{content:e.node[i.field],column:i,index:e.index,cindex:n,node:e.node},()=>[(0,M.createElementVNode)("div",oz,[0===n?((0,M.openBlock)(),(0,M.createElementBlock)("span",{key:0,class:(0,M.normalizeClass)("cell-indent-"+e.level)},null,2)):(0,M.createCommentVNode)("",!0),0===n?((0,M.openBlock)(),(0,M.createElementBlock)("span",{key:1,class:(0,M.normalizeClass)(["cell-expandable",{show:e.expandable,expand:e.currentExpand,collapse:!e.currentExpand}]),onClick:t[0]||(t[0]=t=>e.toggle())},null,2)):(0,M.createCommentVNode)("",!0),(0,M.createElementVNode)("span",oH,[i.fn||i.field?i.fn?((0,M.openBlock)(),(0,M.createElementBlock)(M.Fragment,{key:1},[(0,M.createTextVNode)((0,M.toDisplayString)(i.fn(e.node,this)),1)],64)):((0,M.openBlock)(),(0,M.createElementBlock)(M.Fragment,{key:2},[(0,M.createTextVNode)((0,M.toDisplayString)(e.node[i.field]),1)],64)):((0,M.openBlock)(),(0,M.createElementBlock)(M.Fragment,{key:0},[(0,M.createTextVNode)((0,M.toDisplayString)(e.node[i.field]),1)],64))])])])],8,oV))),128))])],2),(0,M.createVNode)(s,{expand:e.currentExpand,"syno-id":`${e.synoId}-slide-up-down`},{default:(0,M.withCtx)(()=>[(0,M.createElementVNode)("div",oW,[((0,M.openBlock)(!0),(0,M.createElementBlock)(M.Fragment,null,(0,M.renderList)(e.node.children,(t,i)=>((0,M.openBlock)(),(0,M.createElementBlock)(M.Fragment,null,[!e.node.leaf&&e.node.children?((0,M.openBlock)(),(0,M.createBlock)(a,{key:i,node:t,columns:e.columns,index:i,level:e.level+1,"syno-id":`${e.synoId}-${i}`},null,8,["node","columns","index","level","syno-id"])):(0,M.createCommentVNode)("",!0)],64))),256))])]),_:1},8,["expand","syno-id"])],2)}]]),oU=i(45684);(n=(e,t)=>((e,t,i)=>{let n=(0,oU.Ie)(i);return(0,oU.h)(e,"colgroup",n,t.columns.map(i=>{let n=i[t.columnIdField];return(0,oU.h)(e,"col",{attrs:{name:n,width:!!t.followHeadColGroup&&t.colsData[n]},key:i[t.columnIdField]})}))})(void 0,e,t)).props={columns:{type:Array,default:()=>[],required:!0},columnIdField:{type:String,default:void 0,required:!0},followHeadColGroup:{type:Boolean,default:!1},colsData:{type:Object,default:()=>{}}};var oG=(0,M.defineComponent)({name:"Expansion",props:{expand:{type:Boolean,default:!1},active:{type:Boolean,default:!1},duration:{type:Number,default:240}},emits:["expand","collapse"],data:()=>({}),watch:{expand(){this.active&&this.doLayout(!0)}},mounted(){this.$nextTick(()=>{this.doLayout(!1),(0,nD.on)(this.$el,"transitionend",this.onTransitionEnd)})},[nk.mT.beforeUnmount](){},methods:{setHeight(e,t,i){i&&((0,nD.iv)(this.$el,"height",e),(0,nD.iv)(this.$el,"transition",`height ease ${this.duration}ms`),this.forceRelayout=this.$el.scrollHeight),(0,nD.iv)(this.$el,"height",t)},onTransitionEnd(e){this.expand?(0,nI.Qy)(this,"expand"):(0,nI.Qy)(this,"collapse")},doLayout(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=this.$el.scrollHeight;this.$nextTick(()=>{if(e){(0,nD.iv)(this.$el,"height","auto");let e=this.$el.scrollHeight;this.setHeight(`${t}px`,`${e}px`,!0)}else this.setHeight(`${t}px`,"auto",!1)})}},render(){let e=(0,nA.FJ)(this).default();if(e&&e.length)return e.length>1?void(0,nO.N6)("basic expansion component should only handle one child"):e[0]}});function oZ(e,t,i){let n=[];t.showExpandIcon&&n.push((0,oU.h)(e,eM.Z,{class:["expand-icon",t.expandIconCls],props:{name:t.expand?"data-table-expand-up":"data-table-expand-down",svgIconSet:"set32"},nativeOn:{click:e=>{e.stopPropagation();let t=(0,oU.LO)(i,"toggle-expand");t?.()}}}));let o=t.action?(0,oU.h)(e,"div",{class:["cell","action-cell"],directives:[{name:"tooltip",value:t.tooltip}]},["enable"===t.action||"checkbox"===t.action?(0,oU.h)(e,V.Z,{props:{synoId:`${t.synoId??i.attrs?.["syno-id"]??""}-checkbox`,[oC.yz.value()]:t.value,stopPropagation:!0,disabled:t.isActionDisabled},on:{change:(0,oU.LO)(i,"action-change")}}):"radio"===t.action?(0,oU.h)(e,$.Z,{props:{synoId:`${t.synoId??i.attrs?.["syno-id"]??""}-radio`,[oC.yz.value("model")]:t.value,value:!0,stopPropagation:!0,disabled:t.isActionDisabled},on:{click:(0,oU.LO)(i,"action-change")}}):null]):function(e,t,i){let n=[];if(t.expandable&&t.expand){let e=t.hasExpandSlot?t.expandSlot:"basic-expand-default",o=(0,oU.FJ)(i)[e];o&&n.push(o({row:t.item,data:t.value}))}else{let o=(0,oU.FJ)(i)[t.fieldSlot],r=o?o({data:t.value,row:t.item,update:t.updateItem,initialData:t.initialValue}):t.getHtml?(0,oU.h)(e,"div",{class:["html-content"],domProps:{innerHTML:t.getHtml(t.item)}}):t.contentFn?t.contentFn(t.item):t.value;n.push(r)}return(0,oU.h)(e,"div",{class:["cell","content-cell"],directives:[{name:"tooltip",value:t.tooltip}]},n)}(e,t,i);return n.push(o),(0,oU.h)(e,"div",{class:["inner-cell"]},n)}(0,oA.z)("data-table-draggable-s",oT.ph),(0,oA.z)("data-table-expand-up",oT.tj),(0,oA.z)("data-table-expand-down",oT.TD),(o=(e,t)=>(function(e,t,i){let n=[];t.hidden||(n=[t.expandable?(0,oU.h)(e,oG,{props:{active:t.expandable,expand:t.expand},scopedSlots:{default:()=>[oZ(e,t,i)]}}):oZ(e,t,i)],0===t.cindex&&((0,nM.Kn)(t.isDraggable)?(t.isDraggable?.showIcon??n1.ALWAYS)!==n1.NEVER:t.isDraggable)&&n.push((0,oU.h)(e,eM.Z,{class:{"show-icon-only-hover":!!(0,nM.Kn)(t.isDraggable)&&(t.isDraggable?.showIcon??n1.ALWAYS)===n1.HOVER},props:{svgIconSet:"set26",name:"data-table-draggable-s"}})));let o=(0,oU.Ie)(i,[]);return o.attrs={"syno-id":t.synoId,...o.attrs},(0,oU.h)(e,"td",o,n)})(void 0,e,t)).props={column:{type:Object,default:()=>({})},value:{type:[String,Number,Boolean,Object,Array],default:void 0},initialValue:{type:[String,Number,Boolean,Object,Array],default:void 0},item:{type:Object,default:()=>({})},fieldKey:{type:String,default:void 0},index:{type:Number,default:0},cindex:{type:Number,default:0},expandable:{type:Boolean,default:!1},hasExpandSlot:{type:Boolean,default:!1},expandSlot:{type:String,default:void 0},expand:{type:Boolean,default:!1},showExpandIcon:{type:Boolean,default:!1},action:{type:String,default:void 0},isActionDisabled:{type:Boolean,default:!1},tooltip:{type:[String,Boolean,Object],default:void 0},useFieldSlot:{type:Boolean,default:!1},fieldSlot:{type:String,default:void 0},contentFn:{type:Function,default:void 0},getHtml:{type:Function,default:void 0},updateItem:{type:Function,default:void 0},hidden:{type:Boolean,default:!1},isDraggable:{type:[Boolean,Object],default:!1}};var oj=i(31755);(0,oA.z)("data-table-chevron-up",oT.np),(0,oA.z)("data-table-chevron-down",oT.u);let oq=(0,M.defineComponent)({name:"GroupNode",components:{vIcon:eM.Z,vCheckbox:V.Z,vTableCell:o,vSlideUpDownTransition:i_.Z,vColGroup:n},directives:{tooltip:oI.Z},mixins:[(0,oj.f)("data-table"),oA.Z],props:{categories:{type:Array,default:()=>[]},groupInfo:{type:Object,default:()=>{}},fieldInfo:{type:Object,default:()=>({itemKey:"id",rowInfo:"_rowInfo"})}},emits:["category-action"],data:()=>({actionSortDirection:"ASC",prefix:"v-table-group-node",categoryExpandRecord:{},$_categories:[],visibleItems:{}}),computed:{table(){return this["data-table"].instance},rowClass(){return[{"with-border":this.groupInfo.rowBorder}]},containerClass(){return[`${this.prefix}-ct`,{expandable:this.groupInfo.expandable}]},titleClass(){return[`${this.prefix}-group-title`,{"with-border":this.groupInfo.titleBorder,expandable:this.groupInfo.expandable}]},tableClass(){return[{[`${this.prefix}-table`]:!0}]},currentCategories:{set(e){for(let t of e)(0,nM.RI)(this.categoryExpandRecord,t.key)||(0,nR.t)(this.categoryExpandRecord,t.key,this.groupInfo.defaultExpand);for(let t of e)for(let e of this.table.currentVisibleColumns)e.field===this.groupInfo.actionField&&this.setCategoryEnableState(e,t);this.$data.$_categories=e.sort(this.getCategoriesSortFn())},get(e){return this.table.filtered?this.$data.$_categories.filter(e=>this.isCategoryFilter(e)):this.$data.$_categories}}},watch:{categories:{handler(e){this.currentCategories=e.slice()},immediate:!0}},created(){this.activeIndexes={}},mounted(){this.unwatch=this.$watch(()=>[this.table.visibleStart,this.table.visibleEnd],()=>{this.updateCategoryVisibleItems(this.table.visibleStart,this.table.visibleEnd)},{immediate:!0})},[nk.mT.beforeUnmount](){this.unwatch?.()},methods:{getSlots(){return(0,nA.FJ)(this)},getCategoriesSortFn(){return this.table.sortColumn&&this.table.sortColumn.field===this.groupInfo.actionField?(e,t)=>{let i=e.enableIndeterminate?1:2*!!e.enableState,n=t.enableIndeterminate?1:2*!!t.enableState;if(i!==n){if("DESC"===this.table.sortColumn.sort)return i<n?1:-1;if("ASC"===this.table.sortColumn.sort)return i<n?-1:1}return 0}:this.groupInfo.sortCategoryFn},setActiveCell(e,t,i){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:-2,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1,r=null;return!(n<-1)&&(r=-1===n?this.table.getHeaderCell(o):this.getCell(i,n,o),!(o<0||this.table.currentColumns.length<=o)&&(this.activeIndexes.prevCell&&this.activeIndexes.prevCell.setAttribute("tabindex","-1"),r&&r.setAttribute("tabindex","0"),this.activeIndexes={row:n,col:o,categoryIndex:i,category:t,prevCell:r},!0))},focusActiveCell(){let e,{row:t,col:i,categoryIndex:n}=this.activeIndexes;return!(t<-1)&&!(i<0)&&!(this.table.currentColumns.length<=i)&&((e=-1===t?this.table.getHeaderCell(i):this.getCell(n,t,i))&&e.focus(),e===document.activeElement)},setActiveCellWithFocus(e,t,i){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:-2,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1;if(this.setActiveCell(e,t,i,n,o))return t?this.table.clickRow(`${t.key}:${n}`,e):this.table.clearSelectedRows(),this.focusActiveCell(e)},getCell(e,t,i){let n=this.$refs[`cell-${e}-${t}-${i}`];return n&&n[0]},selectCellByKeydown(e){if(!["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"].includes(e.key))return;let{row:t,col:i,categoryIndex:n,category:o}=this.activeIndexes;e.preventDefault();let r=t,a=i;return"ArrowUp"===e.key&&(r=t-1),"ArrowDown"===e.key&&(r=t+1),"ArrowLeft"===e.key&&(a=i-1),"ArrowRight"===e.key&&(a=i+1),o?r<0?(n-=1,r=(o=this.currentCategories[n])?o.items.length-1:-1):r>o.items.length-1&&(n+=1,r=0,o=this.currentCategories[n]):(n=0,o=this.currentCategories[n]),this.setActiveCellWithFocus(e,o,n,r,a)},toggleCategory(e){if(!1===this.groupInfo.expandable)return;let t=this.categoryExpandRecord[e]||!1;t=!t,(0,nR.t)(this.categoryExpandRecord,e,t),this.table.virtualScroll&&(this.table.renderVisibleItems({checkScrollSticky:!1}),this.updateCategoryVisibleItems(this.table.visibleStart,this.table.visibleEnd))},itemAction(e,t,i,n,o,r){return this.groupInfo.actionField===o.field&&this.$nextTick(()=>this.setCategoryEnableState(o,r)),this.table.itemAction(e,t,i,n,o,r)},setCategoriesEnableState(e){for(let t of this.categories)this.setCategoryEnableState(e,t)},setCategoryEnableState(e,t){if(this.groupInfo.actionField!==e.field)return;let i=!1,n=!1,o=Object.entries(t.items);if(o){for(let[r,a]of o)this.table.isActionDisabled(a,e)||this.table.isActionHidden(a,e)||(!0===this.table.getCellValue(e.field,a,r,t.key)?i=!0:n=!0);i&&n?t.enableIndeterminate=!0:(i?t.enableState=!0:t.enableState=!1,t.enableIndeterminate=!1)}},categoryAction(e){let t=!e.enableState,i=this.table.getColumnByField(this.groupInfo.actionField)??this.table.selectionActionColumn;if((0,nR.t)(e,"enableState",t),(0,nR.t)(e,"enableIndeterminate",!1),this.table.isSelectionModeColumn(i)&&(t?this.table.selectCategory(e):this.table.unselectCategory(e)),e&&e.items)for(let n of e.items)this.table.isActionDisabled(n,i)||this.table.isActionHidden(n,i)||(n[this.groupInfo.actionField]=t);this.table.setHeadState(i),(0,nI.Qy)(this,"category-action",{column:i,category:e,enableState:t})},getContentCellClasses(e,t,i,n){let o=this.table.getContentCellClasses(e,t,i,n);return"left"!==(t.align||"left")||t.action||0!==i||o.push("group-indent"),o},getVirtualGroupStyle(e){return!!this.table.virtualScroll&&(this.categoryExpandRecord[e.key]?{height:e.items.length*this.table.virtualRowHeight+"px"}:{height:0})},updateCategoryVisibleItems(e,t){let i=0,n={};for(let o of this.currentCategories){let r=this.categoryExpandRecord[o.key]?o.items.length:0,a=i+r;e<=a&&t>=i&&(n[o.key]={start:e<i?0:e-i,end:t>a?r:t-i}),i+=r+1}this.visibleItems=n},getTableOffsetStyle(e){return!!this.table.virtualScroll&&{transform:`translateY(${(this.visibleItems[e.key]?.start??0)*+this.table.virtualRowHeight}px`}},isCategoryFilter(e){return this.table.getItems(e.items,{filter:this.table.filtered}).length>0},getVisibleItems(e){let t=this.table.getItems(e.items,{filter:this.table.filtered});if(this.table.virtualScroll){let i=this.visibleItems[e.key]?.start??0,n=this.visibleItems[e.key]?.end??0;return t.slice(i,n)}return t},updateItem(e,t,i){return n=>{this.currentCategories[e].items[t][i]=n}}}}),oK=["onClick"],oX={class:"content"},oQ=["syno-id"];var o$=(0,tP.Z)(oq,[["render",function(e,t,i,n,o,r){let a=(0,M.resolveComponent)("v-icon"),s=(0,M.resolveComponent)("v-checkbox"),l=(0,M.resolveComponent)("v-col-group"),c=(0,M.resolveComponent)("v-table-cell"),d=(0,M.resolveComponent)("v-slide-up-down-transition"),u=(0,M.resolveDirective)("tooltip");return(0,M.openBlock)(),(0,M.createElementBlock)("div",{class:(0,M.normalizeClass)(e.containerClass)},[((0,M.openBlock)(!0),(0,M.createElementBlock)(M.Fragment,null,(0,M.renderList)(e.currentCategories,(i,n)=>((0,M.openBlock)(),(0,M.createElementBlock)("div",{key:i.key,class:(0,M.normalizeClass)(e.prefix+"-group")},[(0,M.createElementVNode)("div",{class:(0,M.normalizeClass)(e.titleClass),onClick:t=>e.toggleCategory(i.key)},[e.groupInfo.expandable?((0,M.openBlock)(),(0,M.createBlock)(a,{key:0,"syno-id":`${e.synoId}-group-${i.key}-arrow`,class:"arrow group-expand-icon",name:!0===e.categoryExpandRecord[i.key]?"data-table-chevron-up":"data-table-chevron-down","svg-icon-set":"set31"},null,8,["syno-id","name"])):(0,M.createCommentVNode)("",!0),"enable"===e.groupInfo.action?((0,M.openBlock)(),(0,M.createBlock)(s,{key:1,"syno-id":`${e.synoId}-group-checkbox`,value:i.enableState,"model-value":i.enableState,indeterminate:i.enableIndeterminate,"stop-propagation":"",onChange:t=>e.categoryAction(i)},null,8,["syno-id","value","model-value","indeterminate","onChange"])):(0,M.createCommentVNode)("",!0),(0,M.createElementVNode)("span",oX,[(0,M.renderSlot)(e.$slots,"group-title",{category:i},()=>[(0,M.createTextVNode)((0,M.toDisplayString)(i.key),1)])])],10,oK),(0,M.createVNode)(d,null,{default:(0,M.withCtx)(()=>[!0===e.categoryExpandRecord[i.key]?((0,M.openBlock)(),(0,M.createElementBlock)("div",{key:0,class:(0,M.normalizeClass)(`${e.prefix}-table-wrapper`),"syno-id":`${e.synoId}-group-${i.key}-slideUpDown`,style:(0,M.normalizeStyle)(e.getVirtualGroupStyle(i))},[(0,M.createElementVNode)("table",{class:(0,M.normalizeClass)(e.tableClass),style:(0,M.normalizeStyle)(e.getTableOffsetStyle(i)),onMouseleave:t[0]||(t[0]=function(){return e.table.onMouseLeave&&e.table.onMouseLeave(...arguments)})},[(0,M.createVNode)(l,{ref_for:!0,ref:"body-col-group",columns:e.table.isGroupHeadMode?e.table.flattenColumns:e.table.currentVisibleColumns,"column-id-field":e.table.fieldInfo.columnKey,"cols-data":e.table.colsData,"follow-head-col-group":""},null,8,["columns","column-id-field","cols-data"]),(0,M.createElementVNode)("tbody",null,[((0,M.openBlock)(!0),(0,M.createElementBlock)(M.Fragment,null,(0,M.renderList)(e.getVisibleItems(i),t=>{let{item:o,index:r}=t;return(0,M.withDirectives)(((0,M.openBlock)(),(0,M.createBlock)((0,M.resolveDynamicComponent)(e.table.useBodyRow()),{key:`${i.key}:${r}`,ref_for:!0,ref:`row-${i.key}:${r}`,item:o,index:r,categroy:i,"syno-id":`${e.synoId}-tr-${r}`,class:(0,M.normalizeClass)(e.table.getRowClass(`${i.key}:${r}`,o).concat(e.rowClass)),onClick:t=>e.table.clickRow(`${i.key}:${r}`,t),onDblclick:t=>e.table.rowDblClick(`${i.key}:${r}`,o,t),onMouseover:t=>e.table.hoverRow(`${i.key}:${r}`)},{default:(0,M.withCtx)(()=>[((0,M.openBlock)(!0),(0,M.createElementBlock)(M.Fragment,null,(0,M.renderList)(e.table.isGroupHeadMode?e.table.flattenColumns:e.table.currentVisibleColumns,(t,a)=>((0,M.openBlock)(),(0,M.createBlock)(c,{ref_for:!0,ref:`cell-${n}-${r}-${a}`,key:t[e.table.fieldInfo.columnKey],role:"cell","syno-id":`${e.synoId}-td-${o[e.table.fieldInfo.rowKey]}-${t[e.table.fieldInfo.columnKey]}`,value:e.table.getCellValue(t.field,o,r,i.key),item:o,class:(0,M.normalizeClass)(e.getContentCellClasses(r,t,a,o)),tabindex:"-1","aria-colindex":a+1,"field-key":t.fieldKey,index:r,cindex:a,expandable:e.table.isBasicExpandable,"has-expand-slot":e.table.hasBasicExpandSlot(t),"expand-slot":e.table.getBasicExpandSlot(t),expand:e.table.expandState[o[e.table.fieldInfo.rowKey]],"show-expand-icon":e.table.expandable&&t[e.table.fieldInfo.columnKey]===e.table.firstVisibleColumnId,action:t.action,"is-action-disabled":e.table.isActionDisabled(o,t),tooltip:e.table.getCellTooltip(t,o),"use-field-slot":t.useSlot||!t.fn&&!t.field,"field-slot":e.table.getFieldSlotName(t),"content-fn":t.fn,"get-html":t.getHtml,"hover-action-cls":e.table.rowHoverActionCls(o[e.table.fieldInfo.rowKey]),"hover-action-activate":e.table.activateHoverAction(o),"hover-action-deactivate":e.table.deactivateHoverAction(o),"has-hover-action":e.table.isLastVisibleCell(t),"update-item":e.updateItem(n,r,t.field),column:t,hidden:e.table.getCellHidden(t,o),onFocus:t=>e.setActiveCell(t,i,n,r,a),onClick:i=>e.table.onCellClick(o,t,r,a,i),onContextmenu:n=>e.table.onCellContextMenu(o,t,`${i.key}:${r}`,a,n),onActionChange:(n,a)=>e.itemAction(n,a,r,o,t,i),onToggleExpand:t=>e.table.toggleRowExpand(o)},(0,M.createSlots)({_:2},[(0,M.renderList)(e.getSlots(),(t,i)=>({name:i,fn:(0,M.withCtx)(t=>[(0,M.renderSlot)(e.$slots,i,(0,M.mergeProps)({ref_for:!0},t))])}))]),1032,["syno-id","value","item","class","aria-colindex","field-key","index","cindex","expandable","has-expand-slot","expand-slot","expand","show-expand-icon","action","is-action-disabled","tooltip","use-field-slot","field-slot","content-fn","get-html","hover-action-cls","hover-action-activate","hover-action-deactivate","has-hover-action","update-item","column","hidden","onFocus","onClick","onContextmenu","onActionChange","onToggleExpand"]))),128))]),_:2},1064,["item","index","categroy","syno-id","class","onClick","onDblclick","onMouseover"])),[[u,e.table.getRowTooltip(o)]])}),128))])],38)],14,oQ)):(0,M.createCommentVNode)("",!0)]),_:2},1024)],2))),128))],2)}]]),oJ=i(98671),o0=i(12592),o1=i(77971),o2=(0,M.defineComponent)({props:{virtualScroll:{type:Boolean,default:!1},virtualRowHeight:{type:[Number,String],default:29},virtualMobileCardRowHeight:{type:[Number,String],default:272},updateBufferItemsNum:{type:Number,default:5},bufferItemsNum:{type:Number,default:10},bufferSize:{type:Number,default:200}},data:()=>({sizes:[],bufferStart:0,bufferEnd:0,virtualTotalSize:0,visibleStart:0,visibleEnd:0}),computed:{innerRowHeight(){return this.isMobile?+this.virtualMobileCardRowHeight:+this.virtualRowHeight},size(){return this.groupTable?this.categories.reduce((e,t)=>e+=t.items.length+1,0):this.currentPagingData.length},tableOffsetStyle(){return this.virtualScroll?this.autoRowHeight?{transform:`translateY(${this.sizes[this.visibleStart]?this.sizes[this.visibleStart].acc:0}px)`}:{transform:`translateY(${this.visibleStart*this.innerRowHeight}px`}:{}},virtualBodyStyle(){return{height:this.virtualTotalSize+"px",top:0,left:0,width:"1px",position:"absolute"}}},watch:{isMobile:{handler(){this.$_cachedSizes={},this.renderVisibleItems({checkScrollSticky:!1,autoFocus:!0})}},virtualScroll:{async handler(e){e?(await (0,M.nextTick)(),this.onScrollViewportChanged(),this.intersectionListener=(0,o1.m)(this.$el,this.onVisibleChanged),this.$refs.scrollbar&&(this.resizeListener=(0,o0.k)(this.$refs.scrollbar.$el,this.onScrollViewportChanged)),this.updateSizes(),this.renderVisibleItems({checkScrollSticky:!1,autoFocus:!0})):(this.intersectionListener?.(),this.resizeListener?.())},immediate:!0},isEmpty(e){(0,M.nextTick)(()=>{e?this.resizeListener?.():this.$refs.scrollbar&&this.virtualScroll&&(this.resizeListener=(0,o0.k)(this.$refs.scrollbar.$el,this.onScrollViewportChanged),this.onScrollViewportChanged())})},current:{async handler(){await (0,M.nextTick)(),this.$refs.scrollbar&&this.virtualScroll&&(this.updateSizes(),this.renderVisibleItems({checkScrollSticky:!1,autoFocus:!0}))},immediate:!0}},created(){this.$_scrollTop=void 0,this.$_scrollViewportHeight=0,this.$_cachedSizes={}},mounted(){this.virtualScroll&&this.groupTable&&this.autoRowHeight&&(0,nO.D8)("group table only support virtual scroll with fixed size currently",this)},[nk.mT.beforeUnmount](){this.intersectionListener?.(),this.resizeListener?.()},methods:{onScrollViewportChanged(e){this.$_scrollViewportHeight=e?.contentRect?.height??this.$refs.scrollbar?.$el?.offsetHeight},updateSizes(){let e=0;this.sizes=this.current.reduce((t,i)=>(t.push({item:i,acc:e}),e+=this.$_cachedSizes[i[this.fieldInfo.rowKey]]??this.innerRowHeight,t),[])},onVisibleChanged(e){e.isVisible&&this.renderVisibleItems({checkScrollSticky:!1})},findAnchor(e,t){let i,n=0,o=0,r=0,a=this.size;if(this.autoRowHeight){if(this.sizes.length>0){for(o=n=Math.max(Math.min(function(e,t){let i=0,n=t.length;for(;i<n;){let o=i+~~((n-i)/2);e<=t[o].acc?n=o:i=o+1}return i}(e,this.sizes),this.sizes.length),0),i=this.sizes.length;o<i&&this.sizes[o].acc<t;o++);r=this.sizes[this.sizes.length-1].acc}}else n=Math.max(Math.min(~~(e/this.innerRowHeight),a),0),o=Math.max(Math.min(~~(t/this.innerRowHeight),a),0),r=a*this.innerRowHeight;return{start:n=(0,nM.HU)(n-this.bufferItemsNum,0,a-1),end:o=(0,nM.HU)(o+this.bufferItemsNum,0,a-1),total:r}},getVisibleItems(e,t){return this.bufferStart=e,this.bufferEnd=t,this.findAnchor(this.bufferStart,this.bufferEnd)},isScrollSticky(e,t,i){let n,o,r=this.sizes[(0,nM.HU)(this.visibleStart+this.updateBufferItemsNum,0,this.sizes.length-1)],a=this.sizes[(0,nM.HU)(this.visibleEnd-this.updateBufferItemsNum,0,this.sizes.length-1)];return this.autoRowHeight?(o=r.acc,n=a.acc):(o=(this.visibleStart+this.updateBufferItemsNum)*this.innerRowHeight,n=(this.visibleEnd-this.updateBufferItemsNum)*this.innerRowHeight),e>this.$_scrollTop&&i>=n||e<this.$_scrollTop&&t<=o},getBuffer(e){let t=e;return t<0&&(t=0),{bufferStart:t,bufferEnd:t+this.$_scrollViewportHeight}},renderVisibleItems(){let{checkScrollSticky:e=!0,autoFocus:t=!0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!this.$refs.scrollbar||this.autoRowHeight&&this.sizes.length<=0)return;let i=this.$refs.scrollbar.getScrollTop(),{bufferStart:n,bufferEnd:o}=this.getBuffer(i);if(!e||this.isScrollSticky(i,n,o)){let{start:e,end:i,total:r}=this.getVisibleItems(n,o);this.renderRange(e,i,r,{autoFocus:t})}this.$_scrollTop=i},renderRange(e,t,i){let{autoFocus:n=!0}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};this.visibleStart=(0,nM.HU)(e,0,this.sizes.length-1),this.visibleEnd=(0,nM.HU)(t,0,this.sizes.length-1),this.virtualTotalSize=i,this.autoRowHeight&&(0,nD.Wn)(()=>{(0,M.nextTick)(()=>{for(let e=this.visibleStart;e<=this.visibleEnd;e++){let t=this.current[e],i=this.$refs[`row-${e}`]?.[0];(i=i?.$el??i)&&(this.$_cachedSizes[t[this.fieldInfo.rowKey]]=i.offsetHeight)}this.updateSizes()})}),n&&(0,M.nextTick)(()=>{this.focusActiveCell()})}}}),o3=i(82366),o4=i(88446);(0,oA.z)("data-table-sort-down",oT.Bn),(0,oA.z)("data-table-sort-up",oT.LB);let o5=(0,M.defineComponent)({name:"TableHeaderCell",components:{vCheckbox:V.Z,vWhitetip:o3.Z,vIcon:eM.Z},mixins:[(0,o4.W)("tableHeaderCell","HeaderCell")],props:{columnKey:{type:[String,Number],default:(0,n0.V)()},column:{type:Object,default:()=>{}},synoId:{type:String,default:""},tooltip:{type:[Boolean,String,Object],default:!1},cindex:{type:Number,default:-1},isActionDisabled:{type:Boolean,default:!1},disableSort:{type:Boolean,default:!1},sorting:{type:Boolean,default:!1},sortIcon:{type:Object,default:()=>({})}},emits:["action-change","sort","mousedown","mousemove","focus"],computed:{sortIconName(){let e=this.column.sort;return this.sorting||(e=this.column.defaultSortOrder??"ASC"),"ASC"===e?"data-table-sort-up":"data-table-sort-down"},innerSortIcon(){return this.getHeaderCellConfigValue("sortIcon")}},methods:{isActionCell:e=>(!(0,nM.$K)(e.headerAction)||"none"!==e.headerAction)&&!!e.action,getHeaderTip:e=>!!(0,nM.HD)(e.tip)&&e.tip,getHeaderTipSlotName:e=>`${e.field||e.fieldKey}.tip`,getHeaderSlotName:e=>`${e.field||e.fieldKey}.th`,onClickSort(){(0,nI.Qy)(this,"sort")},onActionChange(){(0,nI.Qy)(this,"action-change")}}}),o6=["name","syno-id","aria-sort","aria-colindex"],o8={class:"inner-cell"},o7={key:0,class:"cell-title"},o9={class:"cell-title"};var re=(0,tP.Z)(o5,[["render",function(e,t,i,n,o,r){let a=(0,M.resolveComponent)("v-checkbox"),s=(0,M.resolveComponent)("v-icon"),l=(0,M.resolveComponent)("v-whitetip"),c=(0,M.resolveDirective)("tooltip");return(0,M.withDirectives)(((0,M.openBlock)(),(0,M.createElementBlock)("th",{name:e.columnKey,"syno-id":e.synoId,role:"columnheader",tabindex:"-1","aria-sort":("ASC"===e.column.sort?"ascending":"DESC"===e.column.sort&&"descending")||"none","aria-colindex":e.cindex+1,onMousedown:t[3]||(t[3]=t=>e.$emit("mousedown",t)),onMousemove:t[4]||(t[4]=t=>e.$emit("mousemove",t)),onFocus:t[5]||(t[5]=t=>e.$emit("focus",t))},[(0,M.createElementVNode)("div",o8,[e.isActionCell(e.column)?((0,M.openBlock)(),(0,M.createElementBlock)("div",{key:0,class:"action-cell cell",onClick:t[1]||(t[1]=function(){return e.onClickSort&&e.onClickSort(...arguments)})},["enable"===e.column.action||"checkbox"===e.column.action?((0,M.openBlock)(),(0,M.createElementBlock)(M.Fragment,{key:0},[(0,M.createVNode)(a,{"syno-id":`${e.synoId}-head-action`,value:e.column.enableState,"model-value":e.column.enableState,indeterminate:e.column.enableIndeterminate,disabled:e.isActionDisabled,"stop-propagation":"",onChange:t[0]||(t[0]=t=>e.onActionChange())},null,8,["syno-id","value","model-value","indeterminate","disabled"]),e.column.title?((0,M.openBlock)(),(0,M.createElementBlock)("span",o7,(0,M.toDisplayString)(e.column.title),1)):(0,M.createCommentVNode)("",!0),e.disableSort?(0,M.createCommentVNode)("",!0):((0,M.openBlock)(),(0,M.createBlock)(s,(0,M.mergeProps)({key:1,class:"v-table-column-sorter",name:"ASC"===e.column.sort?"data-table-sort-up":"data-table-sort-down","svg-icon-set":"set16"},e.innerSortIcon),null,16,["name"]))],64)):(0,M.createCommentVNode)("",!0),e.column.tip?((0,M.openBlock)(),(0,M.createBlock)(l,{key:1,size:"small",content:e.getHeaderTip(e.column)},{default:(0,M.withCtx)(()=>[(0,M.renderSlot)(e.$slots,e.getHeaderTipSlotName(e.column))]),_:3},8,["content"])):(0,M.createCommentVNode)("",!0)])):((0,M.openBlock)(),(0,M.createElementBlock)("div",{key:1,class:"head-cell cell",onClick:t[2]||(t[2]=function(){return e.onClickSort&&e.onClickSort(...arguments)})},[(0,M.renderSlot)(e.$slots,"th",{title:e.column.title,column:e.column,cindex:e.cindex},()=>[(0,M.renderSlot)(e.$slots,e.getHeaderSlotName(e.column),{title:e.column.title,column:e.column,cindex:e.cindex},()=>[(0,M.createElementVNode)("span",o9,(0,M.toDisplayString)(e.column.title),1)])]),e.disableSort?(0,M.createCommentVNode)("",!0):((0,M.openBlock)(),(0,M.createBlock)(s,(0,M.mergeProps)({key:0,class:"v-table-column-sorter",name:e.sortIconName,"svg-icon-set":"set16"},e.innerSortIcon),null,16,["name"])),e.column.tip?((0,M.openBlock)(),(0,M.createBlock)(l,{key:1,size:"small",content:e.getHeaderTip(e.column)},{default:(0,M.withCtx)(()=>[(0,M.renderSlot)(e.$slots,e.getHeaderTipSlotName(e.column))]),_:3},8,["content"])):(0,M.createCommentVNode)("",!0)]))])],40,o6)),[[c,e.tooltip]])}]]);function rt(e,t,i){let n=e.getFieldSlotName(t),o=`mobile-${n}`,r=e.value,a=e.getCellValue(t.field,r,i),s=(0,nA.FJ)(e)[o],l=(0,nA.FJ)(e)[n];return s?s({data:a,row:r,update:e.updateItem(e.index,t.field)}):l?l({data:a,row:r,update:e.updateItem(e.index,t.field)}):t.getHtml?(0,oL.h)("div",{staticClass:"html-content",domProps:{innerHTML:t.getHtml(r)}}):t.fn?t.fn(r):a}(0,oA.z)("data-table-mobile-chevron-up",oT.np),(0,oA.z)("data-table-mobile-chevron-down",oT.u);var ri=(0,M.defineComponent)({mixins:[ok.Z,oA.Z],props:{columns:{type:Array,default:()=>[]},index:{type:Number,default:0},updateItem:{type:Function,default:void 0},value:{type:Object,default:()=>({})},getCellValue:{type:Function,default:void 0},getFieldSlotName:{type:Function,default:void 0},getHeaderTipSlotName:{type:Function,default:void 0},fieldAlignment:{type:[String,Object],default:"adaptive",validator:e=>!!(0,nM.Kn)(e)||["adaptive","horizontal","vertical"].includes(e)},mobileRowCollapsible:{type:[Boolean,Object],default:!0}},emits:["rowclick"],data(){return{expanded:!!(0,nM.Kn)(this.mobileRowCollapsible)&&this.mobileRowCollapsible.defaultExpanded}},computed:{hasSlider(){return!!this.mobileRowCollapsible},isCollapsible(){let{column:e}=nP(this.columns);return this.hasSlider&&((0,nA._Y)(this,"mobile-header")||!!e)},isSlideContainDescription(){return!!(0,nM.Kn)(this.mobileRowCollapsible)&&this.mobileRowCollapsible.containDesc},isFieldAlignmentAdaptive(){return"adaptive"===this.fieldAlignment||!!(0,nM.Kn)(this.fieldAlignment)&&"adaptive"===this.fieldAlignment.strategy},currentFieldAlignment(){if(this.isFieldAlignmentAdaptive){if(!this.$breakpointManager)return void(0,nO.D8)("please import and use BreakpointManagerPlugin when you are in tree-shaking mode or breakpoint will not active.");let e=this.fieldAlignment.breakpoint??"xxs";return this.$breakpointManager.lessAndEqThan(e)?"vertical":"horizontal"}return this.fieldAlignment}},methods:{toggleExpand(e){e.stopPropagation(),this.expanded=!this.expanded}},render(){let e=function(e){var t,i;let{id:n,column:o}=nP(e.columns),r=[],a=(0,nA.FJ)(e)["mobile-header"];return a?r.push(a({row:e.value})):o&&r.push(rt(e,o,n)),r.length>0?(0,oL.h)("div",{class:"header-wrapper",on:{click:e.toggleExpand}},[e.hasSlider?(t=e.expanded,i=e.toggleExpand,(0,oL.h)(eM.Z,{class:["header-expand-arrow"],props:{name:t?"data-table-mobile-chevron-up":"data-table-mobile-chevron-down",svgIconSet:"set31"},nativeOn:{click:i}})):null,(0,oL.h)("div",{class:"header-title"},r),function(e){let t=(0,nA.FJ)(e)["mobile-header-actions"];if(t)return(0,oL.h)("div",{class:"action-wrapper"},t({row:e.value}))}(e)]):null}(this),t=function(e){let t=(0,nA.FJ)(e)["mobile-desc"];return t?(0,oL.h)("div",{class:"desc-wrapper"},t({row:e.value})):null}(this),i=function(e){let t=e.columns.filter(e=>!1!==e.mobile),i=(0,oL.h)("div",{class:["field-wrapper",`field-align-${e.currentFieldAlignment}`]},t.map((t,i)=>(function(e,t,i,n){let o=i.title;(0,nM.HD)(i.patchColon)?o+=i.patchColon:!1!==i.patchColon&&(o+=t._i18n("common","pure_colon"));let r=[o];if(i.tip){let n=(0,nA.FJ)(t)[`${i.field}.tip`];(0,nM.HD)(i.tip)?r.push(e(o3.Z,{props:{size:"small",content:i.tip}})):n&&r.push(e(o3.Z,{props:{size:"small"},scopedSlots:{default:n}}))}return[e("div",{class:"mobile-label"},r),e("div",{class:"mobile-value"},[rt(t,i,n)])]})(oL.h,e,t,i)));return(0,oL.h)("div",{class:"content-wrapper"},[i])}(this),n=[e,t,i];if(this.isCollapsible){n=[e];let o=[];this.isSlideContainDescription?o.push(t):n.push(t),o.push(i);let r=this.expanded||!e?(0,oL.h)("div",{},o):null;n.push((0,oL.h)(i_.Z,{},[r]))}return(0,oL.h)("div",{class:["mobile-row-card-wrapper",{collapsible:this.isCollapsible}],on:{click:()=>(0,nI.Qy)(this,"rowclick",{index:this.index,row:this.value})}},n)}}),rn=i(5317);(0,oA.z)("data-table-header-menu",oT.Di);let ro="local",rr="__actionable_selection_mode__",ra="__file_list_selection_mode__",rs="selection-mode",rl=(0,M.defineComponent)({name:"DataTable",components:{vIcon:eM.Z,vTableCell:o,vTableHeaderCell:re,vPagination:oP,vSpin:oJ.Z,vTreeNode:oY,vGroupNode:o$,vButton:e0.Z,vScrollbar:ix.Z,vMenu:oS.Z,vMenuItem:tt.Z,vColGroup:n,vSlideUpDownTransition:i_.Z,vMobileRowCard:ri,withTransition:(0,rn.Q)(M.Transition)},directives:{tooltip:oI.Z},mixins:[oa,om,nU,ox,ok.Z,(0,oj.J)("data-table"),(0,oj.J)("form-controller"),(0,oj.f)("form"),o2,oA.Z,(0,o4.W)("dataTable","Table")],props:{expandable:{type:[Boolean,Object],default:!1},customRowClasses:{type:Array,default:()=>[]},enableHdMenu:{type:[Boolean,String],default:!0},loadingText:{type:String,default:void 0},data:{type:Function,default:void 0},total:{type:Number,default:void 0},showTotal:{type:Boolean,default:!0},currentData:{type:Array,default:()=>[]},columns:{type:Array,required:!0},pagination:{type:[Boolean,Object],default:!1},showPagingBar:{type:[Boolean,String],default:!0},hideRefreshBtn:{type:Boolean,default:!1},responseParamsName:{type:Object,default:()=>({total:"total",results:"items"})},autoRowHeight:{type:Boolean,default:!1},header:{type:[Boolean,Object],default:()=>({hidden:!1,border:"visible"})},hideHeader:{type:Boolean,default:!1},groupTable:{type:Boolean,default:!1},groupInfo:{type:Object,default:()=>({})},treeOption:{type:Object,default:()=>({})},pageNum:{type:Number,default:1},pageSize:{type:Number,default:10},itemsPerPage:{type:[Boolean,Array],default:!1},emptyText:{type:String,default:void 0},sortInfoKey:{type:Object,default:()=>({by:"sort_by",order:"sort_direction"})},autoScrollVisibleWhenSort:{type:Boolean,default:!0},sortMethod:{type:String,default:ro},isLocalSort:{type:Boolean,default:!0},isCustomSort:{type:Boolean,default:!1},localSortFunc:{type:Function,default:null},minColumns:{type:[Number,String],default:3},fieldInfo:{type:Object,default:()=>({columnKey:"_id",itemKey:"id",rowInfo:"_rowInfo",rowKey:"_key",expandableKey:"_expandableKey"})},columnMoveable:{type:Boolean,default:!1},selectionMode:{type:String,default:"none",validator:e=>("normal"===e&&(0,nO.N6)("selection mode property should used `none` instead of `normal`"),["none","checkbox","radio","file-list"].includes(e))},selectionModeColumn:{type:Object,default:()=>({})},loadingType:{type:[String,Object],default:()=>"spin",validator:e=>!!(0,nM.Kn)(e)||-1!==["spin","refresh"].indexOf(e)},beforeSort:{type:Function,default:nM.ZT},beforeRefresh:{type:Function,default:nM.ZT},beforeSwitchPage:{type:Function,default:nM.ZT},customActionOnValidDrop:{type:Function,default:void 0},defaultSelected:{type:[Boolean,Array,Number,String],default:!1},hasCover:{type:Boolean,default:!1},mobileRowCollapsible:{type:[Boolean,Object],default:!0},mobileFieldAlignment:{type:[String,Object],default:"adaptive",validator:e=>!!(0,nM.Kn)(e)||["adaptive","horizontal","vertical"].includes(e)},mobileBreakpoint:{type:[String,Boolean],default:void 0},paginationBreakpoint:{type:[Object,Boolean],default:void 0},cellTooltipDefaultProps:{type:Object,default:()=>({})},activeAdaptiveScrollbar:{type:Boolean,default:!0},hoverActionKeepActivate:{type:Boolean,default:!1},totalTextFormat:{type:Object,default:()=>({})},totalTextMode:{type:String,validator:e=>["auto","total","range","filter","select"].includes(e),default:"auto"},pageStart:{type:[Number,String],default:void 0},pageEnd:{type:[Number,String],default:void 0},selectedCount:{type:[Number,String],default:void 0},filteredCount:{type:[Number,String],default:void 0},defaultBodyRow:{type:[Object,Function,String],default:"tr"},onFilter:{type:Function,default:void 0}},emits:["update:page-num","pagination-animate-show","local-sorted","sort","on-sort-click","update:current-data","dataloaded","head-action","column-display","action","rowdblclick","selected-change","cell-click","rowclick","on-rowclick","contextmenu","cell-contextmenu","update:page-size","switch-page","refresh","scroll","reach-top","reach-bottom","not-reach-top","not-reach-bottom"],data(){return{currentTotal:this.total,prefix:"v-table",defaultCurrent:1,currentLoading:!1,sortInfo:{},sortColumn:null,currentPageNum:this.pageNum,currentPageSize:null,paramsName:{},categories:[],categoriesMap:{},activeHoverActionRows:new Set,currentColumns:[],selectionActionColumn:null,$_current:[],$_filteredCurrent:null,$_initData:void 0,$_hasData:!1,minVisible:0,maxVisible:0,containerStyle:{width:"100%"},expandState:{},firstColumnRow:[],secondColumnRow:[],flattenColumns:[],filterFields:null,filtered:!1,paginationAnimationShow:!1,$_paginationScroll:0}},computed:{innerHeaderHidden(){return!0===this.hideHeader?((0,nO.Rn)("hideHeader","header",this),this.hideHeader):(0,nM.jn)(this.header)?this.header:this.header?.hidden??!1},headerBorder(){return(0,nM.Kn)(this.header)?(this.hasGroupHeader&&"hover"===this.header.border&&(0,nO.D8)("border hover mode is not supported in group header",this),this.header.border):"visible"},innerSpinBinding(){if((0,nM.Kn)(this.loadingType)){let{type:e,...t}=this.loadingType;return"spin"===e?(0,nT.Z)({spinning:this.currentLoading,tip:this.innerLoadingText},t):{}}return{spinning:"spin"===this.loadingType&&this.currentLoading,tip:this.innerLoadingText}},innerPaginationLoading(){return(0,nM.Kn)(this.loadingType)?"refresh"===this.loadingType.type&&((0,nM.$K)(this.loadingType.spinning)?this.loadingType.spinning:this.currentLoading):"refresh"===this.loadingType&&this.currentLoading},innerLoadingText(){return this.loadingText??this._i18n("common","loading")},innerTotalTextFormat(){return(0,nT.Z)({total:"{total} {items}",range:"{start}-{end} {items}",filter:"{filteredCount} {items}",select:`<span class="selected-item">{selectedCount}</span> / {total} {items} ${this._i18n("common","selected")}`},this.totalTextFormat)},showDraggableIndicator(){return(0,nM.Kn)(this.isDraggable)?this.isDraggable?.showIcon!==n1.NEVER:!!this.isDraggable},innerPaginationBreakpoint(){return this.paginationBreakpoint?this.paginationBreakpoint:(0,nM.jn)(this.mobileBreakpoint)?this.mobileBreakpoint:void 0},canSwitchPage(){return(0,nM.Kn)(this.pagination)?!0===this.pagination.switchPage:this.pagination},autoPagination(){return!!(0,nM.Kn)(this.pagination)&&"pagination"===this.pagination.data},innerSelectionMode(){return this.getTableConfigValue("selectionMode")},innerPageStart(){return(0,nM.$K)(this.pageStart)?this.pageStart:(this.currentPageNum-1)*this.currentPageSize},innerPageEnd(){return(0,nM.$K)(this.pageEnd)?this.pageEnd:this.currentPageNum*this.currentPageSize},innerSelectedCount(){return(0,nM.$K)(this.selectedCount)?this.selectedCount:this.selectIndexes.size},innerFilteredCount(){return(0,nM.$K)(this.filteredCount)?this.filteredCount:this.filtered?this.currentFilteredData.length:this.currentTotal},innerTotalTextMode(){return"auto"===this.totalTextMode?this.filtered?"filter":this.isSelectionMode&&this.innerSelectedCount>0?"select":"total":this.totalTextMode},tableHeaderCls(){return[`${this.prefix}-header`,`border-${this.headerBorder}`,{"group-header":this.hasGroupHeader}]},isBasicExpandable(){return(0,nM.jn)(this.expandable)?this.expandable:(0,nM.Kn)(this.expandable)&&"basic"===this.expandable.type},isAdvanceExpandable(){return(0,nM.Kn)(this.expandable)&&"advance"===this.expandable.type},animateShowPagingBar(){return!this.isStickyPagination||this.paginationAnimationShow},havePagingBar(){return!0===this.showPagingBar||this.isStickyPagination},isGroupHeadMode(){return this.currentVisibleColumns.some(e=>"group"===e.type)},hasGroupHeader(){return!!this.isGroupHeadMode&&this.firstColumnRow.some(e=>e._isGroup)},currentVisibleColumns(){return this.currentColumns.filter(e=>!e.hide)},lastVisibleColumnId(){let e=e=>e.length<=0?null:e[e.length-1];if(this.isGroupHeadMode){let t=[],i=e(this.firstColumnRow);return t.push(i[this.fieldInfo.columnKey]),i._subColumns&&t.push(e(i._subColumns)[this.fieldInfo.columnKey]),t}return[e(this.currentVisibleColumns)[this.fieldInfo.columnKey]]},firstVisibleColumnId(){let e=this.currentVisibleColumns;return e.length<=0?null:e[0][this.fieldInfo.columnKey]},firstNonActionVisibleColumnId(){let e=this.currentVisibleColumns;if(e.length<=0)return null;for(let t=0,i=e.length;t<i;t++){let i=e[t];if(!i.action)return i[this.fieldInfo.columnKey]}return null},showEmptyText(){return!!this.emptyText},contentClass(){return["v-table-content",{"auto-row-height":this.autoRowHeight,expandable:!!this.expandable}]},hdMenuItems(){return this.currentColumns.filter(e=>!e.hideMenuItem&&"group"!==e.type)},tableCls(){return[this.prefix,{mobile:this.isMobile,"hide-header":this.innerHeaderHidden,"show-cover-bottom-border":"border-cover"===this.showPagingBar}]},paginationCls(){return{"sticky-scroll":this.isStickyPagination}},current:{get:function(){return this.filtered&&this.$data.$_filteredCurrent?this.$data.$_filteredCurrent:this.$data.$_current||[]},set:function(e){if(this.$data.$_current=e,e)for(let t of(this.isSelectionMode&&this.clearSelectedRows(),!0===this.groupTable&&this.groupingCategory(e),this.expandable&&this.setDefaultRowExpand(e),(0,M.nextTick)(()=>{this.buildCols({applyHeadersWidth:!0}),this.isDraggable&&this.buildDraggableCols()}),this.activeColumns))t.action&&this.setHeadState(t)}},currentFilteredData(){return this.getItems(this.current,{filter:this.filtered})},currentPagingData(){let e=this.currentFilteredData;if(this.autoPagination){let t=(this.currentPageNum-1)*this.currentPageSize;e=e.slice(t,t+this.currentPageSize)}return e},currentVisible(){let e=this.currentPagingData;return this.virtualScroll&&(e=e.slice(this.visibleStart,this.visibleEnd+1)),e},activeColumns(){return this.isGroupHeadMode?this.flattenColumns:this.currentVisibleColumns},isAllColumnHide(){return 0===this.currentVisibleColumns.length},mergeGroupInfo(){return Object.assign({defaultExpand:!0,rowBorder:!0,titleBorder:!0,expandable:!0,sortCategoryFn:(e,t)=>e<t?-1:+(e>t)},this.groupInfo)},isEmpty(){return this.currentTotal<=0},isEmptyWithFilteredData(){return(0,nM.$K)(this.filteredCount)?this.filteredCount<=0:!!this.filtered&&this.currentFilteredData.length<=0},isHdMenuShowInStickyMode(){return(!0===this.enableHdMenu||"sticky"===this.enableHdMenu)&&this.hdMenuItems.length>0},isHdMenuShowInHoverMode(){return"hover"===this.enableHdMenu},isFilesListSelectionMode(){return"file-list"===this.innerSelectionMode},isActionableSelectionMode(){return"checkbox"===this.innerSelectionMode||"radio"===this.innerSelectionMode},isSelectionMode(){return this.isFilesListSelectionMode||this.isActionableSelectionMode},indentExpandCellCount(){let e=this.currentVisibleColumns,t,i=0;for(i=0,t=e.length;i<t&&e[i].action;i++);return i},isMobile(){return this.$breakpointManager?(0,nM.$K)(this.mobileBreakpoint)?(0,nM.HD)(this.mobileBreakpoint)?this.$breakpointManager.lessAndEqThan(this.mobileBreakpoint):this.mobileBreakpoint:this.$breakpointManager.mobile:((0,nO.D8)("please import and use BreakpointManagerPlugin when you are in tree-shaking mode or breakpoint will not active."),!1)},isStickyPagination(){return"sticky-scroll"===this.showPagingBar}},watch:{defaultSelected(e){(0,M.nextTick)(()=>{this.tryDefaultSelect()})},pageSize:{immediate:!0,handler(e){this.currentPageSize=e}},pageNum(e){this.currentPageNum=e},currentPageNum(e){this.$refs.scrollbar&&(this.$refs.scrollbar?.resetScrollTop(),(0,M.nextTick)(()=>{this.handleStickyPagination()})),(0,nI.Qy)(this,"update:page-num",e),this.form&&this.resetField(),this.data&&this.loadData()},isMobile(e){e||(0,M.nextTick)(()=>{this.buildCols({applyHeadersWidth:!0,forceFit:!0})})},isEmpty(){(0,M.nextTick)(()=>{this.buildCols({applyHeadersWidth:!0,forceFit:!0}),this.isDraggable&&this.buildDraggableCols()})},columns:{immediate:!0,handler(e){this.setCurrentColumns(e)}},selectionMode:{handler(e){this.setCurrentColumns(this.columns)}},selectionModeColumn:{handler(e){this.setCurrentColumns(this.columns)}},currentVisible:{handler(e){this.isDraggable&&(0,M.nextTick)(()=>{this.buildDraggableCols()})}},currentVisibleColumns:{immediate:!0,handler(e){this.columnMoveable&&(0,M.nextTick)(()=>{this.buildMoveableCols()}),this.isGroupHeadMode&&this.convertGroupColumns()}},isGroupHeadMode:{handler(e){this.secondColumnRow=[],this.flattenColumns=[],e&&this.convertGroupColumns()}},total(e){this.setTotal(e)},currentData:{immediate:!0,handler(e){(0,nM.$K)(this.total)||this.setTotal(e.length),this.setData(e),this.sort()}},selectIndexes(e){this.rowSelectionChange(e),this.saveSelections()},lastSelectIndex(e){this.saveSelections()}},created(){this.filter=(0,em.Z)(this._filter,250),this.activeIndexes={row:-1,col:0},this.paramsName=Object.assign({},{total:"total",results:"items"},this.responseParamsName),this.getSortInfo(),this.loadData()},async mounted(){this.disposedFns=[],this.form&&this.disposedFns.push(this.form.instance?.addFormController(this)),await (0,M.nextTick)(),this.isDraggable&&this.buildDraggableCols(),this.columnMoveable&&this.buildMoveableCols(),this.disposedFns.push((0,o0.k)(this.$el,this.updateContainerWidth,this))},[nk.mT.beforeUnmount](){for(let e of this.disposedFns)e()},methods:{getSlots(){return(0,nA.FJ)(this)},useBodyRow(){return(0,nM.mf)(this.defaultBodyRow)?this.defaultBodyRow():this.defaultBodyRow},getPureTableData(e){return e.map(e=>(0,nE.Z)(e,[this.fieldInfo.rowKey,this.fieldInfo.rowInfo]))},onScrollContentTouchEnd(){this.isStickyPagination&&window.setTimeout(()=>{this.scrollContentSwipeFailed=!1},0)},onScrollContentTouchStart(){this.isStickyPagination&&(this.$refs.scrollbar?.isReachBottom()||(this.scrollContentSwipeFailed=!0))},onScrollContentSwipe(e){this.isStickyPagination&&"vertical"===e.axis&&!this.scrollContentSwipeFailed&&(this.paginationAnimationShow=!0,(0,nI.Qy)(this,"pagination-animate-show",!0,{action:"swipe"}))},async _filter(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this._filteringDefer=this._filteringDefer??Promise.resolve(),this._filteringDefer=this._filteringDefer.then(async()=>{let{fields:t,autoLoading:i}=e;if(this.filtered=!0,t&&(this.filterFields=t),(0,nM.mf)(this.onFilter)){i&&this.setLoading(!0);let t=await this.onFilter?.(e);(0,nM.kJ)(t)?this.$data.$_filteredCurrent=t:this.$data.$_filteredCurrent=null,i&&this.setLoading(!1)}await (0,M.nextTick)(),this.virtualScroll&&this.renderVisibleItems({checkScrollSticky:!1,autoFocus:!1}),this.$refs.scrollbar?.update(),this.$refs.scrollbar?.resetScrollTop()})},async clearFilter(){this.filter.cancel(),this.filtered=!1,this.$data.$_filteredCurrent=null,this.filterFields=null,await (0,M.nextTick)(),this.virtualScroll&&this.renderVisibleItems({checkScrollSticky:!1,autoFocus:!1}),this.$refs.scrollbar?.update(),this.$refs.scrollbar?.resetScrollTop(),this.virtualScroll&&this.onScrollViewportChanged()},isColumnDisableSort:e=>nN(e),isColumnSorting(e){return this.sortColumn===e},setCurrentColumns(e){for(let t of(this.currentColumns=e.slice(),this.currentColumns))t[this.fieldInfo.columnKey]=t[this.fieldInfo.columnKey]||(0,n0.V)(),t.sort&&(this.sortColumn=t),t.action&&this.groupTable&&(t.disableSort=!0);if(this.isSelectionMode){let e=this.isFilesListSelectionMode?ra:rr,t=this.isFilesListSelectionMode?"checkbox":this.innerSelectionMode;this.selectionActionColumn=(0,nT.Z)({[this.fieldInfo.columnKey]:e,action:t,field:e,className:rs,fieldClassName:rs,width:44,align:"center",disableSort:!0,hideMenuItem:!0},this.selectionModeColumn),this.currentColumns.splice(0,0,this.selectionActionColumn)}(0,M.nextTick)(()=>{this.buildCols({applyHeadersWidth:!0})})},getFlattenColumns:e=>e.reduce((e,t)=>(t._isGroup?e=e.concat(t._subColumns):e.push(t),e),[]),getSecondColumns:e=>e.reduce((e,t)=>(t._isGroup&&(e=e.concat(t._subColumns)),e),[]),convertGroupColumns(){if(!this.isGroupHeadMode)return;let e=Object.create(null);this.groupColumns=this.groupColumns??this.currentColumns.reduce((e,t)=>(("group"===t.type||t.field)&&(e[t.field]=t),e),{});let t=this.currentVisibleColumns.reduce((t,i)=>{if("group"===i.type){let n=e[i.field]||(e[i.field]={[this.fieldInfo.columnKey]:i.field,_isGroup:!0,_subColumns:[],disableSort:!0,align:"center",_rowSpan:1,_colSpan:0});Object.assign(n,i),t.push(n)}else if(i.groupKey){let t=e[i.groupKey]||(e[i.groupKey]={[this.fieldInfo.columnKey]:i.groupKey,_subColumns:[],disableSort:!0,_isGroup:!0,align:"center",_rowSpan:1,_colSpan:0});t._subColumns.push(i),t._colSpan++}else t.push({_isGroup:!1,...i,_colSpan:1,_rowSpan:2});return t},[]);this.firstColumnRow=t.filter(e=>"group"!==e.type||0!==e._subColumns.length),this.secondColumnRow=this.getSecondColumns(this.firstColumnRow),this.flattenColumns=this.getFlattenColumns(this.firstColumnRow)},isHeadActionDisabled(e){return this.current.every(t=>!(!this.isActionHidden(t,e)&&!this.isActionDisabled(t,e)))},getFieldSlotName:e=>e.field||e.fieldKey,getBasicExpandSlot(e){return`basic-expand-${this.getFieldSlotName(e)}`},hasRowHoverActionSlot(){return(0,nA._Y)(this,"row-hover-action")},hasBasicExpandSlot(e){return(0,nA._Y)(this,this.getBasicExpandSlot(e))},getAdvanceExpandSlot(e){return`${e[this.fieldInfo.expandableKey]}`},hasAdvanceExpandSlot(e){return!!e[this.fieldInfo.expandableKey]&&(0,nA._Y)(this,this.getAdvanceExpandSlot(e))},register(e){(arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{})(this)},unregister(e){(arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{})(this)},isDirty(){let e=this.getPureTableData(this.current);return!(0,nM.Xy)(this.$data.$_initData,e)},async updateContainerWidth(e){if(e.contentRect.width>0){let t=Math.floor(e.contentRect.width);await (0,M.nextTick)(),this.buildCols({applyHeadersWidth:!0,containerWidth:t}),this.handleStickyPagination()}},localSort(){this.$data.$_hasData&&this.sortColumn&&this.sortColumn.sort&&(this.sortData(this.current),this.sortData(this.$data.$_initData),(0,nI.Qy)(this,"local-sorted",{sortColumn:this.sortColumn,sortInfo:this.sortInfo,sortedData:this.current}))},sortData(e){if(!this.sortColumn||!this.sortColumn.sort)return;let t=this.sortColumn,i=(this.localSortFunc?this.localSortFunc(t):null)||((e,i)=>{let n,o,r=this.isActionDisabled(e,t),a=this.isActionDisabled(i,t);if(t.fn)n=t.fn(e),o=t.fn(i);else if(t.getHtml)n=t.getHtml(e),o=t.getHtml(i);else if(this.groupTable){let r=this.categoriesMap[e[this.groupInfo.category]]||[],a=this.categoriesMap[i[this.groupInfo.category]]||[];n=this.getCellValue(t.field,e,r.indexOf(e),e[this.groupInfo.category]),o=this.getCellValue(t.field,i,a.indexOf(i),i[this.groupInfo.category])}else n=this.getCellValue(t.field,e,this.current.indexOf(e)),o=this.getCellValue(t.field,i,this.current.indexOf(i));if(t.action&&(!r||!a)){if(r)return"ASC"===t.sort?-1:1;if(a)return"ASC"===t.sort?1:-1}if(n!==o){if("DESC"===t.sort)return n<o?1:-1;if("ASC"===t.sort)return n<o?-1:1}return 0});e.sort((e,t)=>i(e,t))},saveSelections(){this.storeSelections={lastSelectionItem:this.getRow(this.lastSelectIndex),selectionItems:Array.from(this.selectIndexes).map(e=>this.getRow(e))}},restoreSelections(){if(!this.storeSelections)return;let{selectionItem:e,lastSelectionItem:t,selectionItems:i}=this.storeSelections;this.mappingSelectionByKey(e,t,i,this.autoScrollVisibleWhenSort)},mappingSelectionByKey(e,t,i,n){this.lastSelectIndex=this.restoreSelectionByKey(t),this.selectIndexes=new Set(i.map(e=>this.restoreSelectionByKey(e))),this.selectIndexes.delete(-1),-1!==this.selectIndex&&n&&this.ensureRowVisible(this.selectIndex)},restoreSelectionByKey(e){if(!e)return -1;if(this.groupTable){let t=(this.categoriesMap[e[this.groupInfo.category]]||[]).findIndex(t=>{if(t)return t[this.fieldInfo.rowKey]===e[this.fieldInfo.rowKey]});return`${e[this.groupInfo.category]}:${t}`}return this.current.findIndex(t=>{if(t)return t[this.fieldInfo.rowKey]===e[this.fieldInfo.rowKey]})},deprecatedSort(e){(0,nO.Rn)("isCustomSort and isLocalSort","sortMethod",this),!0===this.isCustomSort?(0,nI.Qy)(this,"sort",{sortColumn:this.sortColumn,sortInfo:this.sortInfo}):this.isLocalSort?this.localSort():this.loadData()},onSort(e){(0,nI.Qy)(this,"on-sort-click",{sortColumn:e,sortInfo:this.sortInfo}),this.sort(e)},sort(e){if(!this.colDraggableStates?.isDragging&&!(e&&this.isColumnDisableSort(e)||(e&&this.isDraggable&&(0,nO.N6)("is-draggable combined with sort may cause error, maybe you dont need sort",this),!1===this.beforeSort({column:e,isDirty:this.isDirty()})))){if(this.setCurrentSort(e),!0===this.isCustomSort||!1===this.isLocalSort)return this.deprecatedSort(e);"custom"===this.sortMethod&&e?(0,nI.Qy)(this,"sort",{sortColumn:this.sortColumn,sortInfo:this.sortInfo}):this.sortMethod===ro?this.localSort():this.loadData(),!0===this.groupTable&&this.groupingCategory(this.current),this.restoreSelections()}},setCurrentSort(e){if(!e)return;let t="ASC";for(let t of this.activeColumns)e!==t&&(0,nR.t)(t,"sort",null);switch(e.sort){case"ASC":t="DESC";break;case"DESC":t="ASC";break;default:t=e.defaultSortOrder??"ASC"}(0,nR.t)(e,"sort",t),this.sortInfo[this.sortInfoKey.by]=e.field,this.sortInfo[this.sortInfoKey.order]=t,this.sortColumn=e},getSortInfo(){for(let e of this.currentColumns)"string"==typeof e.sort&&(this.sortInfo[this.sortInfoKey.by]=e.field,this.sortInfo[this.sortInfoKey.order]=e.sort);return this.sortInfo},getHeaderTooltip:e=>!!e.headerTooltip&&(!0===e.headerTooltip?e.title:e.headerTooltip),setLoading(e){this.currentLoading=e},commit(){let e=ii(this.getPureTableData(this.current));this.$data.$_initData=e},resetField(){(0,nI.Qy)(this,"update:current-data",ii(this.$data.$_initData)),this.form?.instance?.validate()},resetItems(e){(0,nM.kJ)(e)||(e=[e]);let t=e.map(e=>this.$data.$_initData.findIndex(t=>t[this.fieldInfo.itemKey]===e)),i=ii(this.getPureTableData(this.current));for(let e of t)i[e]=ii(this.$data.$_initData[e]);(0,nI.Qy)(this,"update:current-data",i),this.form?.instance?.validate()},getDirtyRows(){let e=this.getPureTableData(this.current),t=[];for(let[i,n]of this.$data.$_initData.entries())(0,nM.Xy)(n,e[i])||t.push(e[i]);return t},loadData(){if(!this.data)return;this.setLoading(!0);let e=Object.assign({},this.sortInfo);e.start=0,e.offset=(this.currentPageNum-1)*this.currentPageSize,e.limit=this.currentPageSize,this.data(e).then(e=>{if(!e)return this.currentLoading=!1,void this.clearSelectedRows();let t={items:[],total:-1};this.paramsName.results&&(t.items=(0,nM.Es)(e,this.paramsName.results)),this.paramsName.total&&(t.total=(0,nM.Es)(e,this.paramsName.total)),t.total=t.total||t.items.length,this.setData(t.items,t.total),this.setTotal(t.total),(0,nI.Qy)(this,"dataloaded",this.current.slice()),this.clearSelectedRows(),this.setLoading(!1)}).catch(e=>{(0,nO.N6)(e),this.setLoading(!1)})},groupingCategory(e){let t=Object.create(null);for(let i of e){let e=i[this.groupInfo.category];t[e]||(t[e]=[]),t[e].push(i)}let i=Object.keys(t);this.categoriesMap=t,this.categories=i.map(e=>({key:e,enableState:!1,enableIndeterminate:!1,items:t[e]}))},isSelectionModeColumn(e){return e[this.fieldInfo.columnKey]===rr||e[this.fieldInfo.columnKey]===ra},headAction(e){let t=!e.enableState;if((0,nR.t)(e,"enableState",t),(0,nR.t)(e,"enableIndeterminate",!1),this.current)if(this.isSelectionModeColumn(e))t?this.selectAll():this.clearSelectedRows();else for(let i of this.getAllRange({filter:this.filtered,pagination:!!this.autoPagination&&{pageNum:this.currentPageNum,pageSize:this.currentPageSize}})){let n=this.getRow(i);this.isActionDisabled(n,e)||this.isActionHidden(n,e)||(n[e.field]=t)}if(this.groupTable)for(let t of this.categories)this.$refs.groupNode&&this.$refs.groupNode.setCategoryEnableState(e,t);(0,nI.Qy)(this,"head-action",{column:e})},setHeadState(e){let t,i=!1,n=!1;if(this.groupTable?t=this.categories.reduce((e,t,i)=>e=e.concat(t.items.map((e,i)=>[`${t.key}:${i}`,e])),[]):this.current&&(t=this.current.entries()),t){for(let[o,r]of t)this.isActionDisabled(r,e)||this.isActionHidden(r,e)||(!0===this.getCellValue(e.field,r,o)?i=!0:n=!0);i&&n?(0,nR.t)(e,"enableIndeterminate",!0):(i?(0,nR.t)(e,"enableState",!0):(0,nR.t)(e,"enableState",!1),(0,nR.t)(e,"enableIndeterminate",!1))}},toggleColumnDisplayState(e,t){let i=this.getColumnByField(e,"all");if((0,nR.t)(i,"hide",!t),(0,nI.Qy)(this,"column-display",{column:i,state:t}),this.isAllColumnHide)return(0,nR.t)(i,"hide",!1),void(0,nI.Qy)(this,"column-display",{column:i,state:!1});(0,M.nextTick)(()=>{this.buildCols({applyHeadersWidth:!0,forceFit:!0,omitColumns:[i[this.fieldInfo.columnKey]]})})},itemAction(e,t,i,n,o,r){i=r?`${r.key}:${i}`:i,this.isSelectionModeColumn(o)?(this.clickRow(i,t,{isCtrlMode:!0}),(0,M.nextTick)(()=>{this.setHeadState(o)})):(n[o.field]=!n[o.field],this.setHeadState(o)),(0,nI.Qy)(this,"action",{index:i,row:n,column:o,category:r})},rowDblClick(e,t,i){this.expandable&&this.toggleRowExpand(t),(0,nI.Qy)(this,"rowdblclick",e,t,i)},rowSelectionChange(e){e=Array.from(e),(0,nI.Qy)(this,"selected-change",{indexes:e,rows:this.getRows(e)}),this.selectionActionColumn&&(0,M.nextTick)(()=>{this.setHeadState(this.selectionActionColumn),this.groupTable&&this.$refs.groupNode&&this.$refs.groupNode.setCategoriesEnableState(this.selectionActionColumn)})},getRowClasses(e,t){let i=[];return this.getRowClass&&(i=i.concat(this.getRowClass(e,t))),this.getDraggingClass&&(i=i.concat(this.getDraggingClass(e))),this.getLandedClass&&(i=i.concat(this.getLandedClass(e))),this.isAdvanceExpandable&&i.push("advance"),this.expandState[t[this.fieldInfo.rowKey]]&&i.push("expanded"),i},getAdvanceExpandedRowClasses(e,t){return[{"row-disabled":this.isItemDisabled&&this.isItemDisabled(t),expanded:this.expandState[t[this.fieldInfo.rowKey]]}].concat(this.getSelectedRowClass(e))},getCellClasses(e,t,i,n){let o=[];return 0===i&&o.push("cell-first"),this.showDraggableIndicator&&(o.push("is-draggable"),n&&n[this.fieldInfo.rowInfo]&&!1===n[this.fieldInfo.rowInfo].draggable&&o.push("disable-drag")),t.align&&o.push(`cell-${t.align||"left"}`),t.textSelectable&&o.push("text-selectable"),o},isLastVisibleCell(e){return this.lastVisibleColumnId.includes(e[this.fieldInfo.columnKey])},isLastVisibleGroupSecondRowCell(e){return this.firstColumnRow.some(t=>!!t._subColumns&&t._subColumns[t._subColumns.length-1].field===e.field)},getHeaderCellClasses(e,t){let i=this.getCellClasses(-1,e,t);return(e.className&&i.push(e.className),this.isLastVisibleCell(e)&&i.push("last-th-cell"),this.isColumnDisableSort(e)&&i.push("disable-sort"),e.sort&&i.push("sorting"),e._isGroup)?i.push("group"):e.groupKey&&this.isLastVisibleGroupSecondRowCell(e)&&i.push("last-th-visible-sec-row-cell"),i},hasExpandIcon(e){return this.expandable&&e[this.fieldInfo.columnKey]===this.firstNonActionVisibleColumnId},getContentCellClasses(e,t,i,n){let o=this.getCellClasses(e,t,i,n),r=this.isLastVisibleCell(t);if(t.fieldClassName&&o.push(t.fieldClassName),r&&o.push("last-td-cell"),this.hasExpandIcon(t)&&o.push("has-expand-icon"),n[this.fieldInfo.rowInfo]&&n[this.fieldInfo.rowInfo].customClasses){let e=n[this.fieldInfo.rowInfo].customClasses;(0,nM.Kn)(e)&&e[t.field||t.fieldKey]&&(o=o.concat(e[t.field||t.fieldKey]))}return o},refresh(){!1!==this.beforeRefresh({isDirty:this.isDirty()})&&(this.$refs.scrollbar&&this.$refs.scrollbar.$el&&(this.$refs.scrollbar.$el.scrollTop=0),(0,nI.Qy)(this,"refresh"),this.form&&this.resetField(),this.data&&this.loadData())},reload(){1===this.currentPageNum?this.loadData():this.currentPageNum=1},onMouseLeave(){this.hoverIndex=null},setTotal(e){this.currentTotal=e},setData(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];for(let t of(this.$data.$_hasData=!0,e=e.slice(),(0,nM.$K)(this.$data.$_initData)||(this.$data.$_initData=ii(this.getPureTableData(e))),e))t[this.fieldInfo.rowKey]=t[this.fieldInfo.itemKey]||(0,n0.V)();this.current=e,this.hoverIndex>=this.current.length&&(this.hoverIndex=null),(0,M.nextTick)(()=>{this.tryDefaultSelect()})},tryDefaultSelect(){!1===this.defaultSelected||this.isEmpty||this.defaultSelect()},handleStickyPagination(){if(!this.isStickyPagination)return;let e=this.$refs.scrollbar?.getScrollTop()??0,t=this.$refs.scrollbar?.isReachTop()??!0,i=Math.abs(e-this.$data.$_paginationScroll);t?(this.paginationAnimationShow=!0,(0,nI.Qy)(this,"pagination-animate-show",!0,{action:"scroll"})):i>20&&(e>this.$data.$_paginationScroll?(this.paginationAnimationShow=!1,(0,nI.Qy)(this,"pagination-animate-show",!1,{action:"scroll"})):(this.paginationAnimationShow=!0,(0,nI.Qy)(this,"pagination-animate-show",!0,{action:"scroll"})),this.$data.$_paginationScroll=e)},onScroll(e){this.$emit("scroll",e),this.virtualScroll?this.renderVisibleItems():this.handleStickyPagination(e)},onCellClick(e,t,i,n,o){(0,nI.Qy)(this,"cell-click",e,t,i,n,o)},onMobileRowClick(e){(0,nI.Qy)(this,"rowclick",e),(0,nI.Qy)(this,"on-rowclick",e)},onRowClick(e,t){let{result:i,payload:n}=this.clickRow(e,t);i&&(0,nI.Qy)(this,"on-rowclick",n)},onCellContextMenu(e,t,i,n,o){this.isItemSelected({index:i})||this.clickRow(i,o);let r=Array.from(this.selectIndexes);(0,nI.Qy)(this,"contextmenu",{indexes:r,rows:this.getRows(r),event:o}),(0,nI.Qy)(this,"cell-contextmenu",e,t,i,n,o)},getHeaderCell(e){return this.$refs[`header-${e}`]?.[0]?.$el},getCell(e,t){let i=this.$refs[`cell-${e}-${t}`];return i&&i[0]},focusActiveCell(){let e,{row:t,col:i}=this.activeIndexes;return!(t<-1)&&!(this.current.length<=t)&&!(i<0)&&!(this.currentColumns.length<=i)&&(e=-1===t?this.getHeaderCell(i):this.getCell(t,i),(0,nD.mh)(e),e===document.activeElement)},setActiveCell(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-2,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,n=null;return!(t<-1||this.current.length<=t)&&(n=-1===t?this.getHeaderCell(i):this.getCell(t,i),!(i<0||this.currentColumns.length<=i)&&(this.activeIndexes.prevCell&&this.activeIndexes.prevCell.setAttribute("tabindex","-1"),n&&n.setAttribute("tabindex","0"),this.activeIndexes={row:t,col:i,prevCell:n},!0))},setActiveCellWithFocus(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-2,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1;if(this.setActiveCell(e,t,i))return this.onRowClick(t,e),this.focusActiveCell(e)},selectCellByKeydown(e){if(this.groupTable)return void(this.$refs.groupNode&&this.$refs.groupNode.selectCellByKeydown(e));if(!(0,nJ.Wl)(e))return;let{row:t,col:i}=this.activeIndexes;return e.preventDefault(),(0,nJ.Tx)(e)?this.setActiveCellWithFocus(e,t-1,i):(0,nJ.BU)(e)?this.setActiveCellWithFocus(e,t+1,i):(0,nJ.F$)(e)?this.setActiveCellWithFocus(e,t,i-1):(0,nJ.oQ)(e)?this.setActiveCellWithFocus(e,t,i+1):void 0},isItemDraggable(e){return!e[this.fieldInfo.rowInfo]||!1!==e[this.fieldInfo.rowInfo].draggable},getRowTooltip(e){return this.isItemDisabled(e)&&e[this.fieldInfo.rowInfo]&&e[this.fieldInfo.rowInfo].disabledTooltip?e[this.fieldInfo.rowInfo].disabledTooltip:!(!e[this.fieldInfo.rowInfo]||!e[this.fieldInfo.rowInfo].tooltip)&&e[this.fieldInfo.rowInfo].tooltip},isItemDisabled(e){return e[this.fieldInfo.rowInfo]&&!0===e[this.fieldInfo.rowInfo].disabled},isActionDisabled(e,t){let i;return this.isSelectionModeColumn(t)?e[this.fieldInfo.rowInfo]&&e[this.fieldInfo.rowInfo].unselectable:(i=(0,nM.Kn)(e.disabled)?e.disabled[t.field]:e.disabled,this.isItemDisabled(e)||i)},isActionHidden:(e,t)=>!!(0,nM.Kn)(e.hidden)&&e.hidden[t.field],updateItem(e,t){return i=>{this.current[e][t]=i}},getInitialValue(e,t){if(this.$data.$_initData)return this.$data.$_initData?.[e]?.[t]},activateHoverAction(e){return()=>{this.activeHoverActionRows.add(e[this.fieldInfo.rowKey]),this.activeHoverActionRows=new Set(this.activeHoverActionRows)}},deactivateHoverAction(e){return()=>{this.activeHoverActionRows.delete(e[this.fieldInfo.rowKey]),this.activeHoverActionRows=new Set(this.activeHoverActionRows)}},rowHoverActionCls(e){return["row-hover-action",{"keep-activate":this.activeHoverActionRows.has(e)||this.hoverActionKeepActivate}]},getHeaderTip:e=>(0,nM.HD)(e.tip)?e.tip:"",getHeaderTipSlotName:e=>`${e.field||e.fieldKey}.tip`,showHeaderTip:e=>!!e.tip,getPaginationPrefixSlot(){return(0,nA.XR)("pagination-",this)},setDefaultRowExpand(e){for(let t of e)t[this.fieldInfo.rowInfo]&&t[this.fieldInfo.rowInfo].defaultExpand&&this.setRowExpand(t,!0)},setRowExpand(e,t){(0,nR.t)(this.expandState,e[this.fieldInfo.rowKey],t)},toggleRowExpand(e){let t=this.expandState[e[this.fieldInfo.rowKey]];this.setRowExpand(e,!t)},getCellHidden(e,t){if((0,nM.Kn)(t.hidden))return t.hidden[e.field]},getCellValue(e,t,i,n){return e===rr||e===ra?(i=n?`${n}:${i}`:i,this.selectIndexes.has(i)):t[e]},getCellTooltip(e,t){let i;return!(!e.tooltip||e.useSlot||this.isItemDisabled(t))&&(i=(0,nM.mf)(e.tooltip)?e.tooltip.apply(this,[t]):e.fn?e.fn(t,this):t[e.field],(0,nM.Kn)(i)?{...this.cellTooltipDefaultProps,...i}:{...this.cellTooltipDefaultProps,content:i})},setPageSize(e){this.currentPageSize=e,(0,nI.Qy)(this,"update:page-size",e)},setCurrentPageNum(e){this.currentPageNum=e,(0,nI.Qy)(this,"switch-page",{pageNumber:e,pageSize:this.currentPageSize})},getColumnByField(e){return("visible"===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"visible")?this.currentVisibleColumns:this.currentColumns).find(t=>t.field===e)},getItems(e){let{filter:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.reduce((e,i,n)=>{let o=!0;if(t&&this.filterFields)for(let t of this.filterFields){for(let[e,n]of(o=!0,Object.entries(t)))o=o&&n.test(i[e]);if(o)return e.push({index:n,item:i}),e}else e.push({index:n,item:i});return e},[])},onScrollEvent(e,t){(0,nI.Qy)(this,e,t)},innerBeforeSwitchPage(){let{pageNum:e,pageSize:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.beforeSwitchPage?.({pageNumber:e,pageSize:t,isDirty:this.isDirty()})},getEmptySlotName(){return this.isEmptyWithFilteredData?"empty-area-in-filtered-data":"empty-area"}}}),rc={key:0,class:"cover-wrapper"},rd=["aria-rowcount","aria-colcount"],ru=["syno-id"],rh={key:0,role:"row",class:"second-column-row"},rp={class:"hd-menu-btn-wrapper"},rf={key:0,class:"empty-wrapper"},rg={key:1,class:"mobile-body"},rm=["onClick","onDblclick","onMouseover"],rv=["colspan"],rb={key:0,class:"expandable-slide-up-down"};var ry=(0,tP.Z)(rl,[["render",function(e,t,i,n,o,r){let a=(0,M.resolveComponent)("v-col-group"),s=(0,M.resolveComponent)("v-table-header-cell"),l=(0,M.resolveComponent)("v-icon"),c=(0,M.resolveComponent)("v-menu-item"),d=(0,M.resolveComponent)("v-menu"),u=(0,M.resolveComponent)("v-button"),h=(0,M.resolveComponent)("v-group-node"),p=(0,M.resolveComponent)("v-mobile-row-card"),f=(0,M.resolveComponent)("v-table-cell"),g=(0,M.resolveComponent)("v-slide-up-down-transition"),m=(0,M.resolveComponent)("v-scrollbar"),v=(0,M.resolveComponent)("v-pagination"),b=(0,M.resolveComponent)("with-transition"),y=(0,M.resolveComponent)("v-spin"),w=(0,M.resolveDirective)("tooltip"),_=(0,M.resolveDirective)("syno-id");return(0,M.openBlock)(),(0,M.createBlock)(y,(0,M.mergeProps)({class:`${e.prefix}-wrapper`},e.innerSpinBinding),{"spin-inner":(0,M.withCtx)(()=>[(0,M.renderSlot)(e.$slots,"spin-inner")]),default:(0,M.withCtx)(()=>[e.hasCover?((0,M.openBlock)(),(0,M.createElementBlock)("div",rc,[(0,M.renderSlot)(e.$slots,"cover")])):(0,M.createCommentVNode)("",!0),(0,M.withDirectives)(((0,M.openBlock)(),(0,M.createElementBlock)("div",{ref:"container",role:"grid",style:(0,M.normalizeStyle)(e.containerStyle),class:(0,M.normalizeClass)(e.tableCls),"aria-rowcount":e.current.length,"aria-colcount":e.currentColumns.length,onKeydown:t[6]||(t[6]=function(){return e.selectCellByKeydown&&e.selectCellByKeydown(...arguments)})},[e.isMobile?(0,M.createCommentVNode)("",!0):((0,M.openBlock)(),(0,M.createElementBlock)("div",{key:0,ref:"table-header",class:(0,M.normalizeClass)(e.tableHeaderCls)},[(0,M.createElementVNode)("table",{ref:"theader","syno-id":`${e.synoId}-header`,role:"none"},[(0,M.createVNode)(a,{ref:"header-col-group",columns:e.activeColumns,"column-id-field":e.fieldInfo.columnKey},null,8,["columns","column-id-field"]),(0,M.createElementVNode)("thead",{class:(0,M.normalizeClass)(e.prefix+"-thead"),role:"none"},[(0,M.createElementVNode)("tr",{role:"row",class:(0,M.normalizeClass)(["row",e.hasGroupHeader?"first-column-row":""])},[((0,M.openBlock)(!0),(0,M.createElementBlock)(M.Fragment,null,(0,M.renderList)(e.isGroupHeadMode?e.firstColumnRow:e.currentVisibleColumns,(t,i)=>((0,M.openBlock)(),(0,M.createElementBlock)(M.Fragment,null,[t.hide?(0,M.createCommentVNode)("",!0):((0,M.openBlock)(),(0,M.createBlock)(s,{key:t[e.fieldInfo.columnKey],ref_for:!0,ref:"header-"+i,"column-key":t[e.fieldInfo.columnKey],column:t,cindex:i,"syno-id":`${e.synoId}-th-${i}`,class:(0,M.normalizeClass)(e.getHeaderCellClasses(t,i)),colspan:e.isGroupHeadMode?t._colSpan:1,rowspan:e.isGroupHeadMode?t._rowSpan:1,tooltip:e.getHeaderTooltip(t),"is-group":t._isGroup,"is-action-disabled":e.isHeadActionDisabled(t),"disable-sort":e.isColumnDisableSort(t),sorting:e.isColumnSorting(t),onActionChange:i=>e.headAction(t),onSort:i=>e.onSort(t),onFocus:t=>e.setActiveCell(t,-1,i),onMousedown:n=>e.onHeaderCellMouseDown(t,`${t[e.fieldInfo.columnKey]}`,i,n),onMousemove:i=>e.onHeaderCellMouseMove(t,`${t[e.fieldInfo.columnKey]}`,i)},(0,M.createSlots)({_:2},[(0,M.renderList)(e.getSlots(),(t,i)=>({name:i,fn:(0,M.withCtx)(t=>[(0,M.renderSlot)(e.$slots,i,(0,M.mergeProps)({ref_for:!0},t))])}))]),1032,["column-key","column","cindex","syno-id","class","colspan","rowspan","tooltip","is-group","is-action-disabled","disable-sort","sorting","onActionChange","onSort","onFocus","onMousedown","onMousemove"]))],64))),256))],2),e.isGroupHeadMode&&e.secondColumnRow.length>0?((0,M.openBlock)(),(0,M.createElementBlock)("tr",rh,[((0,M.openBlock)(!0),(0,M.createElementBlock)(M.Fragment,null,(0,M.renderList)(e.secondColumnRow,(t,i)=>((0,M.openBlock)(),(0,M.createElementBlock)(M.Fragment,null,[t.hide?(0,M.createCommentVNode)("",!0):((0,M.openBlock)(),(0,M.createBlock)(s,{key:t[e.fieldInfo.columnKey],"column-key":t[e.fieldInfo.columnKey],column:t,cindex:i,"syno-id":`${e.synoId}-th-${i}`,class:(0,M.normalizeClass)(e.getHeaderCellClasses(t,i)),colspan:e.isGroupHeadMode?t._colSpan:1,rowspan:e.isGroupHeadMode?t._rowSpan:1,tooltip:e.getHeaderTooltip(t),"is-action-disabled":e.isHeadActionDisabled(t),"disable-sort":e.isColumnDisableSort(t),sorting:e.isColumnSorting(t),onActionChange:i=>e.headAction(t),onSort:i=>e.onSort(t),onFocus:t=>e.setActiveCell(t,-1,i),onMousedown:n=>e.onHeaderCellMouseDown(t,`${t[e.fieldInfo.columnKey]}`,i,n),onMousemove:i=>e.onHeaderCellMouseMove(t,`${t[e.fieldInfo.columnKey]}`,i)},(0,M.createSlots)({_:2},[(0,M.renderList)(e.getSlots(),(t,i)=>({name:i,fn:(0,M.withCtx)(t=>[(0,M.renderSlot)(e.$slots,i,(0,M.mergeProps)({ref_for:!0},t))])}))]),1032,["column-key","column","cindex","syno-id","class","colspan","rowspan","tooltip","is-action-disabled","disable-sort","sorting","onActionChange","onSort","onFocus","onMousedown","onMousemove"]))],64))),256))])):(0,M.createCommentVNode)("",!0)],2)],8,ru),(0,M.createElementVNode)("div",rp,[e.isHdMenuShowInStickyMode?((0,M.openBlock)(),(0,M.createBlock)(u,{key:0,"syno-id":`${e.synoId}-show-menu`,class:(0,M.normalizeClass)(e.prefix+"-header-hd-menu"),"menu-align":"tr->br",type:"styleless","dropdown-offset":[2,0],"menu-constrain-height":""},{icon:(0,M.withCtx)(()=>[(0,M.createVNode)(l,{name:"data-table-header-menu",class:"hd-menu-icon","svg-icon-set":"set16"})]),dropdown:(0,M.withCtx)(t=>[(0,M.createVNode)(d,{class:"v-table__menu","is-open":t.menuShow,width:"auto","syno-id":`${e.synoId}-menu`},{default:(0,M.withCtx)(()=>[((0,M.openBlock)(!0),(0,M.createElementBlock)(M.Fragment,null,(0,M.renderList)(e.hdMenuItems,t=>((0,M.openBlock)(),(0,M.createBlock)(c,{key:t[e.fieldInfo.columnKey],title:t.title?t.title:"",type:"checkbox",selected:!t.hide,"syno-id":`${e.synoId}-menu-item`,onChanged:i=>e.toggleColumnDisplayState(t.field,i)},null,8,["title","selected","syno-id","onChanged"]))),128))]),_:2},1032,["is-open","syno-id"])]),_:1},8,["syno-id","class"])):(0,M.createCommentVNode)("",!0)])],2)),e.isEmpty||e.isEmptyWithFilteredData?((0,M.openBlock)(),(0,M.createElementBlock)("div",{key:1,class:(0,M.normalizeClass)(e.prefix+"-empty-body")},[(0,M.renderSlot)(e.$slots,e.getEmptySlotName(),{},()=>[e.showEmptyText?((0,M.openBlock)(),(0,M.createElementBlock)("div",rf,(0,M.toDisplayString)(e.emptyText),1)):(0,M.createCommentVNode)("",!0)])],2)):((0,M.openBlock)(),(0,M.createBlock)(m,{key:2,ref:"scrollbar","active-adaptive-scrollbar":e.activeAdaptiveScrollbar,onScroll:e.onScroll,onSwipe:e.onScrollContentSwipe,onTouchstart:e.onScrollContentTouchStart,onTouchend:e.onScrollContentTouchEnd,onReachBottom:t[2]||(t[2]=t=>e.onScrollEvent("reach-bottom",t)),onReachTop:t[3]||(t[3]=t=>e.onScrollEvent("reach-bottom",t)),onNotReachBottom:t[4]||(t[4]=t=>e.onScrollEvent("not-reach-bottom",t)),onNotReachTop:t[5]||(t[5]=t=>e.onScrollEvent("not-reach-bottom",t))},{default:(0,M.withCtx)(()=>[(0,M.createElementVNode)("div",{ref:"content",class:(0,M.normalizeClass)(e.contentClass)},[e.groupTable?((0,M.openBlock)(),(0,M.createElementBlock)("div",{key:0,class:(0,M.normalizeClass)(e.prefix+"-body")},[(0,M.createVNode)(h,{ref:"groupNode","syno-id":`${e.synoId}-gn`,"multiple-selected":e.innerMultipleSelected,categories:e.categories,columns:e.currentColumns,"group-info":e.mergeGroupInfo},(0,M.createSlots)({_:2},[(0,M.renderList)(e.getSlots(),(t,i)=>({name:i,fn:(0,M.withCtx)(t=>[(0,M.renderSlot)(e.$slots,i,(0,M.normalizeProps)((0,M.guardReactiveProps)(t)))])}))]),1032,["syno-id","multiple-selected","categories","columns","group-info"])],2)):e.isMobile?((0,M.openBlock)(),(0,M.createElementBlock)("div",rg,[(0,M.createElementVNode)("div",{role:"none",style:(0,M.normalizeStyle)(e.tableOffsetStyle),onMouseleave:t[0]||(t[0]=function(){return e.onMouseLeave&&e.onMouseLeave(...arguments)})},[((0,M.openBlock)(!0),(0,M.createElementBlock)(M.Fragment,null,(0,M.renderList)(e.currentVisible,t=>{let{item:i,index:n}=t;return(0,M.openBlock)(),(0,M.createBlock)(p,{key:i[e.fieldInfo.rowKey],columns:e.activeColumns,value:i,index:n,"get-cell-value":e.getCellValue,"get-header-tip-slot-name":e.getHeaderTipSlotName,"get-field-slot-name":e.getFieldSlotName,"mobile-row-collapsible":e.mobileRowCollapsible,"update-item":e.updateItem,"field-alignment":e.mobileFieldAlignment,onRowclick:e.onMobileRowClick},(0,M.createSlots)({_:2},[(0,M.renderList)(e.getSlots(),(t,i)=>({name:i,fn:(0,M.withCtx)(t=>[(0,M.renderSlot)(e.$slots,i,(0,M.mergeProps)({ref_for:!0},t))])}))]),1032,["columns","value","index","get-cell-value","get-header-tip-slot-name","get-field-slot-name","mobile-row-collapsible","update-item","field-alignment","onRowclick"])}),128))],36),e.virtualScroll?((0,M.openBlock)(),(0,M.createElementBlock)("div",{key:0,style:(0,M.normalizeStyle)(e.virtualBodyStyle)},null,4)):(0,M.createCommentVNode)("",!0)])):((0,M.openBlock)(),(0,M.createElementBlock)("div",{key:2,ref:"table-body",class:(0,M.normalizeClass)(e.prefix+"-body")},[(0,M.createElementVNode)("table",{ref:"tbody",role:"none",style:(0,M.normalizeStyle)(e.tableOffsetStyle),onMouseleave:t[1]||(t[1]=function(){return e.onMouseLeave&&e.onMouseLeave(...arguments)})},[(0,M.createVNode)(a,{ref:"body-col-group",columns:e.activeColumns,"column-id-field":e.fieldInfo.columnKey,"cols-data":e.colsData,"follow-head-col-group":""},null,8,["columns","column-id-field","cols-data"]),(0,M.withDirectives)((0,M.createElementVNode)("tbody",{class:(0,M.normalizeClass)(e.prefix+"-tbody"),role:"none"},[((0,M.openBlock)(!0),(0,M.createElementBlock)(M.Fragment,null,(0,M.renderList)(e.currentVisible,t=>{let{item:i,index:n}=t;return(0,M.openBlock)(),(0,M.createElementBlock)(M.Fragment,{key:i[e.fieldInfo.rowKey]},[(0,M.withDirectives)(((0,M.openBlock)(),(0,M.createBlock)((0,M.resolveDynamicComponent)(e.useBodyRow()),{ref_for:!0,ref:`row-${n}`,"syno-id":`${e.synoId}-tr-${n}`,item:i,index:n,class:(0,M.normalizeClass)(e.getRowClasses(n,i)),role:"row","aria-rowindex":n+1,onMouseover:t=>e.hoverRow(n),onClick:t=>e.onRowClick(n,t),onDblclick:t=>e.rowDblClick(n,i,t)},{default:(0,M.withCtx)(()=>[((0,M.openBlock)(!0),(0,M.createElementBlock)(M.Fragment,null,(0,M.renderList)(e.activeColumns,(t,o)=>((0,M.openBlock)(),(0,M.createBlock)(f,{ref_for:!0,ref:`cell-${n}-${o}`,key:t[e.fieldInfo.columnKey],role:"cell","syno-id":`${e.synoId}-td-${i[e.fieldInfo.rowKey]}-${t[e.fieldInfo.columnKey]}`,value:e.getCellValue(t.field,i,n),item:i,class:(0,M.normalizeClass)(e.getContentCellClasses(n,t,o,i)),tabindex:"-1","aria-colindex":o+1,"field-key":t.fieldKey,index:n,cindex:o,expandable:e.isBasicExpandable,"has-expand-slot":e.hasBasicExpandSlot(t),"expand-slot":e.getBasicExpandSlot(t),expand:e.expandState[i[e.fieldInfo.rowKey]],"show-expand-icon":e.hasExpandIcon(t),action:t.action,"is-action-disabled":e.isActionDisabled(i,t),tooltip:e.getCellTooltip(t,i),"use-field-slot":t.useSlot||!t.fn&&!t.field,"field-slot":e.getFieldSlotName(t),"content-fn":t.fn,"get-html":t.getHtml,"update-item":e.updateItem(n,t.field),"initial-value":e.getInitialValue(n,t.field),column:t,hidden:e.getCellHidden(t,i),"is-draggable":e.isDraggable,onFocus:t=>e.setActiveCell(t,n,o),onClick:r=>e.onCellClick(i,t,n,o,r),onContextmenu:r=>e.onCellContextMenu(i,t,n,o,r),onActionChange:(o,r)=>e.itemAction(o,r,n,i,t),onToggleExpand:t=>e.toggleRowExpand(i)},(0,M.createSlots)({_:2},[(0,M.renderList)(e.getSlots(),(t,i)=>({name:i,fn:(0,M.withCtx)(t=>[(0,M.renderSlot)(e.$slots,i,(0,M.mergeProps)({ref_for:!0},t))])}))]),1032,["syno-id","value","item","class","aria-colindex","field-key","index","cindex","expandable","has-expand-slot","expand-slot","expand","show-expand-icon","action","is-action-disabled","tooltip","use-field-slot","field-slot","content-fn","get-html","update-item","initial-value","column","hidden","is-draggable","onFocus","onClick","onContextmenu","onActionChange","onToggleExpand"]))),128)),e.hasRowHoverActionSlot()?((0,M.openBlock)(),(0,M.createElementBlock)("div",{key:0,class:(0,M.normalizeClass)(e.rowHoverActionCls(i[e.fieldInfo.rowKey]))},[(0,M.renderSlot)(e.$slots,"row-hover-action",{activate:e.activateHoverAction(i),deactivate:e.deactivateHoverAction(i),item:i})],2)):(0,M.createCommentVNode)("",!0)]),_:2},1064,["syno-id","item","index","class","aria-rowindex","onMouseover","onClick","onDblclick"])),[[w,e.getRowTooltip(i)]]),e.isAdvanceExpandable?((0,M.openBlock)(),(0,M.createElementBlock)("tr",{key:`${i[e.fieldInfo.rowKey]}-expandable`,ref_for:!0,ref:`expandable-row-${n}`,class:(0,M.normalizeClass)(["expandable-row",e.getAdvanceExpandedRowClasses(n,i)]),onClick:t=>e.onRowClick(n,t),onDblclick:t=>e.rowDblClick(n,i,t),onMouseover:t=>e.hoverRow(n)},[((0,M.openBlock)(!0),(0,M.createElementBlock)(M.Fragment,null,(0,M.renderList)(e.indentExpandCellCount,e=>((0,M.openBlock)(),(0,M.createElementBlock)("td",{key:e,class:"indent-cell"}))),128)),(0,M.createElementVNode)("td",{class:"expandable-cell",colspan:e.currentVisibleColumns.length-e.indentExpandCellCount},[(0,M.createVNode)(g,{"syno-id":`${e.synoId}-slide-up-down`},{default:(0,M.withCtx)(()=>[e.expandState[i[e.fieldInfo.rowKey]]?((0,M.openBlock)(),(0,M.createElementBlock)("div",rb,[e.hasAdvanceExpandSlot(i)?(0,M.renderSlot)(e.$slots,e.getAdvanceExpandSlot(i),{key:0,item:i}):(0,M.renderSlot)(e.$slots,"advance-expand-default",{key:1,item:i})])):(0,M.createCommentVNode)("",!0)]),_:2},1032,["syno-id"])],8,rv)],42,rm)):(0,M.createCommentVNode)("",!0)],64)}),128))],2),[[M.vShow,!e.isEmpty]])],36),e.virtualScroll?((0,M.openBlock)(),(0,M.createElementBlock)("div",{key:0,style:(0,M.normalizeStyle)(e.virtualBodyStyle)},null,4)):(0,M.createCommentVNode)("",!0)],2))],2)]),_:3},8,["active-adaptive-scrollbar","onScroll","onSwipe","onTouchstart","onTouchend"]))],46,rd)),[[_]]),(0,M.createVNode)(b,{wrap:e.isStickyPagination,name:"slide"},{default:(0,M.withCtx)(()=>[e.havePagingBar?(0,M.withDirectives)(((0,M.openBlock)(),(0,M.createBlock)(v,{key:0,ref:"pagination","mobile-breakpoint":e.innerPaginationBreakpoint,class:(0,M.normalizeClass)(e.paginationCls),value:e.currentPageNum,"model-value":e.currentPageNum,"page-size":e.currentPageSize,start:e.innerPageStart,end:e.innerPageEnd,"selected-count":e.innerSelectedCount,"filtered-count":e.innerFilteredCount,total:e.currentTotal,"show-total":e.showTotal,"total-text-format":e.innerTotalTextFormat,"total-text-mode":e.innerTotalTextMode,"items-per-page":e.itemsPerPage,"switch-page":e.canSwitchPage,"before-switch-page":e.innerBeforeSwitchPage,"hide-refresh-btn":e.hideRefreshBtn,loading:e.innerPaginationLoading,"syno-id":`${e.synoId}-paging`,"onUpdate:modelValue":e.setCurrentPageNum,"onUpdate:pageSize":e.setPageSize,onInput:e.setCurrentPageNum,onRefresh:t[7]||(t[7]=t=>e.refresh())},(0,M.createSlots)({_:2},[(0,M.renderList)(e.getPaginationPrefixSlot(),t=>{let{name:i,exposeName:n}=t;return{name:i,fn:(0,M.withCtx)(t=>[(0,M.renderSlot)(e.$slots,n,(0,M.normalizeProps)((0,M.guardReactiveProps)(t)))])}})]),1032,["mobile-breakpoint","class","value","model-value","page-size","start","end","selected-count","filtered-count","total","show-total","total-text-format","total-text-mode","items-per-page","switch-page","before-switch-page","hide-refresh-btn","loading","syno-id","onUpdate:modelValue","onUpdate:pageSize","onInput"])),[[M.vShow,e.animateShowPagingBar]]):(0,M.createCommentVNode)("",!0)]),_:3},8,["wrap"])]),_:3},16,["class"])}]]);function rw(e){let t=en(e),i=A.rb.getWorkbook().getLocale(),n=e.text??"",o=e.f1??"",r=e.f2??"",a="";switch(t){case"containsBlanks":a=(0,N.$)("cf","cell_is_empty_desc");break;case"notContainsBlanks":a=(0,N.$)("cf","cell_is_not_empty_desc");break;case"containsText":a=(0,eX.format)((0,N.$)("cf","text_contain_desc"),n);break;case"notContainsText":a=(0,eX.format)((0,N.$)("cf","text_not_contain_desc"),n);break;case"beginsWith":a=(0,eX.format)((0,N.$)("cf","text_start_with_desc"),n);break;case"endsWith":a=(0,eX.format)((0,N.$)("cf","text_end_with_desc"),n);break;case"exactText":a=(0,eX.format)((0,N.$)("cf","text_exactly_desc"),n);break;case"greaterThan":a=(0,eX.format)((0,N.$)("cf","greater_than_desc"),o);break;case"greaterThanOrEqual":a=(0,eX.format)((0,N.$)("cf","greater_than_or_equal_desc"),o);break;case"lessThan":a=(0,eX.format)((0,N.$)("cf","less_than_desc"),o);break;case"lessThanOrEqual":a=(0,eX.format)((0,N.$)("cf","less_than_or_equal_desc"),o);break;case"equal":a=(0,eX.format)((0,N.$)("cf","equal_desc"),o);break;case"notEqual":a=(0,eX.format)((0,N.$)("cf","not_equal_desc"),o);break;case"between":a=(0,eX.format)((0,N.$)("cf","between_desc"),o,r);break;case"notBetween":a=(0,eX.format)((0,N.$)("cf","not_between_desc"),o,r);break;case"dateEqual":a=(0,eX.format)((0,N.$)("cf","date_equal_desc"),(0,T.gE)(i,o,{date:!0}));break;case"dateBefore":a=(0,eX.format)((0,N.$)("cf","date_before_desc"),(0,T.gE)(i,o,{date:!0}));break;case"dateAfter":a=(0,eX.format)((0,N.$)("cf","date_after_desc"),(0,T.gE)(i,o,{date:!0}));break;case"expression":a=(0,eX.format)((0,N.$)("cf","expression_desc"),"="+o)}return a}function r_(e){return e.ranges.join(", ")}let rx={bgColor:"ff9000",color:void 0,bold:void 0,italic:void 0,strike:void 0,underline:void 0};function rS(e){let t=en(e),i=e.ranges.join(", "),n={...e.style},o=e.f1,r=e.f2||"",a=A.rb.getWorkbook().getLocale(),s=a.getLocaleConverter();if("date"===e.altType)o=(0,T.gE)(a,o,{date:!0});else if(e.type)switch(e.type){case"containsBlanks":case"notContainsBlanks":o="";break;case"containsText":case"notContainsText":case"beginsWith":case"endsWith":o=e.text;break;default:o=s.localize((0,T.gE)(a,o)),r=s.localize((0,T.gE)(a,r))}return{criteria:t,rangeStr:i,style:n,value1:o??"",value2:r??""}}function rC(e,t,i,n,o){let r=A.rb.getWorkbook().getLocale().getLocaleConverter(),a=r.normalize(n).toString(),s=r.normalize(o).toString(),l={type:e,ranges:t,style:i};switch(e){case"containsBlanks":case"notContainsBlanks":break;case"containsText":case"notContainsText":case"beginsWith":case"endsWith":l.text=a;break;case"exactText":l.type="cellIs",l.altType="text",l.text=a,l.operator="equal";break;case"greaterThan":case"greaterThanOrEqual":case"lessThan":case"lessThanOrEqual":case"equal":case"notEqual":l.type="cellIs",l.f1=a,l.operator=e;break;case"between":case"notBetween":l.type="cellIs",l.f1=a,l.f2=s,l.operator=e;break;case"dateEqual":l.type="cellIs",l.altType="date",l.f1=a,l.operator="equal";break;case"dateBefore":l.type="cellIs",l.altType="date",l.f1=a,l.operator="lessThan";break;case"dateAfter":l.type="cellIs",l.altType="date",l.f1=a,l.operator="greaterThan";break;case"expression":l.type="expression",l.f1=a}return l}var rk=i(92731);let rI=(0,M.defineComponent)({__name:"CfPreview",props:{cfStyle:{}},setup(e){let t=(0,M.computed)(()=>(function(e){let t={},{bgColor:i,color:n,bold:o,italic:r,strike:a,underline:s}=e;return t.backgroundColor="#"+(i??"ffffff"),t.color="#"+(n??T.Qr.DEFAULT_FONT_COLOR),o&&(t.fontWeight="bold"),r&&(t.fontStyle="italic"),a&&(t.textDecoration=`${t.textDecoration?`${t.textDecoration} `:""}line-through`),s&&(t.textDecoration=`${t.textDecoration?`${t.textDecoration} `:""}underline`),t})(e.cfStyle));return(e,i)=>((0,M.openBlock)(),(0,M.createElementBlock)("div",{class:(0,M.normalizeClass)(e.$style["cf-preview"]),style:(0,M.normalizeStyle)(t.value)}," AaBbCc ",6))}});var rA=i(65451),rT=i.n(rA);let rE={};rE.$style=rT();let rR=(0,q.default)(rI,[["__cssModules",rE]]),rD=(0,M.defineComponent)({__name:"CfWindow",props:{cf:{},closeHook:{type:Function}},emits:["close"],setup(e,t){let{emit:i}=t,n=(0,N.$)("cf","rule_window_title"),o=[{label:(0,N.$)("condition","cell_is_empty"),value:"containsBlanks"},{label:(0,N.$)("condition","cell_is_not_empty"),value:"notContainsBlanks"},{label:(0,N.$)("condition","text_contain"),value:"containsText"},{label:(0,N.$)("condition","text_not_contain"),value:"notContainsText"},{label:(0,N.$)("condition","text_start_with"),value:"beginsWith"},{label:(0,N.$)("condition","text_end_with"),value:"endsWith"},{label:(0,N.$)("condition","text_exactly"),value:"exactText"},{label:(0,N.$)("condition","greater_than"),value:"greaterThan"},{label:(0,N.$)("condition","greater_than_or_equal"),value:"greaterThanOrEqual"},{label:(0,N.$)("condition","less_than"),value:"lessThan"},{label:(0,N.$)("condition","less_than_or_equal"),value:"lessThanOrEqual"},{label:(0,N.$)("condition","equal"),value:"equal"},{label:(0,N.$)("condition","not_equal"),value:"notEqual"},{label:(0,N.$)("condition","between"),value:"between"},{label:(0,N.$)("condition","not_between"),value:"notBetween"},{label:(0,N.$)("condition","date_equal"),value:"dateEqual"},{label:(0,N.$)("condition","date_before"),value:"dateBefore"},{label:(0,N.$)("condition","date_after"),value:"dateAfter"},{label:(0,N.$)("condition","custom"),value:"expression"}],r=(0,M.computed)(()=>({workbook:(0,A.uD)().value?.getWorkbook(),isMulti:!0,rangeScope:!1,allowEmptyRange:!1})),a=(0,M.computed)(()=>eC(r.value,["change","blur"])),s=[(0,e_.JH)(e=>(!w.value||!!e)&&("expression"!==h.value||(0,T.jr)(e)),[],!1)],l=[(0,e_.JH)(e=>!_.value||!!e,[],!1)],c=e.cf?rS(e.cf):{rangeStr:(0,A.c)().hot.getMultiSelectedRange().map(function(e){return T.pt.toLabel(e)}).join(", "),criteria:"containsBlanks",value1:"",value2:"",style:rx},d=(0,M.ref)(null),u=(0,M.ref)(null),h=(0,M.ref)(c.criteria),p=(0,M.ref)(c.value1),f=(0,M.ref)(c.value2),g=(0,M.reactive)(c.style),m=(0,A.O3)(),v=(0,M.useCssModule)(),{range:b,handler:y}=ej(c.rangeStr,d,{title:n,allowMultiSelection:!0,rangeScope:!1,hot:m}),w=(0,M.computed)(()=>!["containsBlanks","notContainsBlanks"].includes(h.value)),_=(0,M.computed)(()=>["between","notBetween"].includes(h.value)),x=(0,M.computed)(()=>[{type:"defaultBtn",name:"bold",active:g.bold,cls:v.bold},{type:"defaultBtn",name:"italic",active:g.italic,cls:v.italic},{type:"defaultBtn",name:"underline",active:g.underline,cls:v.underline},{type:"defaultBtn",name:"strike",active:g.strike,cls:v.strike},{type:"colorPickerBtn",name:"color",color:g.color,cls:v.color},{type:"split"},{type:"colorPickerBtn",name:"bgColor",color:g.bgColor,cls:v["bg-color"]}]);function S(e){g[e]=!g[e]}function C(e,t){g[e]=t}function k(){d.value?.onClose()}async function I(){if(!await u.value?.validate())return;let t=rC(h.value,b.value,(0,M.toRaw)(g),p.value,f.value),i=(0,A.c)(),n=e.cf?.cfId;n?await i.updateCf(n,t):await i.addCf(t),k()}return(e,t)=>((0,M.openBlock)(),(0,M.createBlock)((0,M.unref)(P.Z),{ref_key:"cfWindow",ref:d,"syno-id":"cf-modal-window",width:640,height:424,title:(0,M.unref)(n),"close-hook":e.closeHook,onClose:t[4]||(t[4]=()=>i("close")),onKeydown:(0,M.withKeys)((0,M.withModifiers)(I,["stop","prevent"]),["enter"])},{default:(0,M.withCtx)(()=>[(0,M.createVNode)((0,M.unref)(L.Z),{"syno-id":"cf-panel","confirm-text":(0,M.unref)(N.$)("common","ok"),"cancel-text":(0,M.unref)(N.$)("common","cancel"),confirm:I,cancel:k},{body:(0,M.withCtx)(()=>[(0,M.createVNode)((0,M.unref)(B.Z),{class:(0,M.normalizeClass)(e.$style["field-set"]),title:(0,M.unref)(N.$)("cf","criteria"),collapsible:!1},{default:(0,M.withCtx)(()=>[(0,M.createVNode)((0,M.unref)(F.Z),{ref_key:"cfCriteriaForm",ref:u,"syno-id":"cf-criteria-form",flex:"row"},{default:(0,M.withCtx)(()=>[(0,M.createVNode)((0,M.unref)(z.Z),{prop:"rangeStr",label:`${(0,M.unref)(N.$)("cf","cell_range")}${(0,M.unref)(N.$)("common","colon")}`,rules:a.value,"control-flex":"302px","label-flex":"150px"},{default:(0,M.withCtx)(()=>[(0,M.createVNode)((0,M.unref)(eG),{modelValue:(0,M.unref)(b),"onUpdate:modelValue":t[0]||(t[0]=e=>(0,M.isRef)(b)?b.value=e:null),readonly:!1,placeholder:(0,M.unref)(N.$)("condition","local_empty_range_value"),onClickIcon:(0,M.unref)(y)},null,8,["modelValue","placeholder","onClickIcon"])]),_:1},8,["label","rules","control-flex","label-flex"]),(0,M.createVNode)((0,M.unref)(z.Z),{label:`${(0,M.unref)(N.$)("cf","rule")}${(0,M.unref)(N.$)("common","colon")}`,"control-flex":"302px","label-flex":"150px"},{default:(0,M.withCtx)(()=>[(0,M.createVNode)((0,M.unref)(H.Z),{modelValue:h.value,"onUpdate:modelValue":t[1]||(t[1]=e=>h.value=e),"syno-id":"cf-criteria-single-select",width:"auto",options:o,"max-height":316},null,8,["modelValue"])]),_:1},8,["label","control-flex","label-flex"]),(0,M.withDirectives)((0,M.createVNode)((0,M.unref)(eJ.Z),null,{default:(0,M.withCtx)(()=>[(0,M.withDirectives)((0,M.createVNode)((0,M.unref)(z.Z),{prop:"value1","control-flex":`${_.value?140:302}px`,rules:s},{default:(0,M.withCtx)(()=>[(0,M.createVNode)((0,M.unref)(ed.Z),{modelValue:p.value,"onUpdate:modelValue":t[2]||(t[2]=e=>p.value=e),placeholder:(0,M.unref)(N.$)("condition","empty_value_text"),"syno-id":"cf-criteria-value1-input"},null,8,["modelValue","placeholder"])]),_:1},8,["control-flex"]),[[M.vShow,w.value]]),(0,M.withDirectives)((0,M.createVNode)((0,M.unref)(z.Z),{"control-flex":"15px",textonly:"",class:(0,M.normalizeClass)(e.$style.separator)},{default:(0,M.withCtx)(()=>t[5]||(t[5]=[(0,M.createTextVNode)(" & ")])),_:1},8,["control-flex","class"]),[[M.vShow,_.value]]),(0,M.withDirectives)((0,M.createVNode)((0,M.unref)(z.Z),{"control-flex":"140px",rules:l,prop:"value1"},{default:(0,M.withCtx)(()=>[(0,M.createVNode)((0,M.unref)(ed.Z),{modelValue:f.value,"onUpdate:modelValue":t[3]||(t[3]=e=>f.value=e),placeholder:(0,M.unref)(N.$)("condition","empty_value_text"),"syno-id":"cf-criteria-value2-input"},null,8,["modelValue","placeholder"])]),_:1},8,["control-flex"]),[[M.vShow,_.value]])]),_:1},512),[[M.vShow,w.value]])]),_:1},512)]),_:1},8,["class","title"]),(0,M.createVNode)((0,M.unref)(B.Z),{class:(0,M.normalizeClass)(e.$style["field-set"]),title:(0,M.unref)(N.$)("cf","formatting_style"),collapsible:!1},{default:(0,M.withCtx)(()=>[(0,M.createVNode)((0,M.unref)(F.Z),{"syno-id":"cf-format-style-form"},{default:(0,M.withCtx)(()=>[(0,M.createVNode)((0,M.unref)(z.Z),{label:`${(0,M.unref)(N.$)("cf","preview")}${(0,M.unref)(N.$)("common","colon")}`,"label-flex":"150px"},{default:(0,M.withCtx)(()=>[(0,M.createVNode)(rR,{"cf-style":g},null,8,["cf-style"])]),_:1},8,["label","label-flex"]),(0,M.createVNode)((0,M.unref)(z.Z),{label:`${(0,M.unref)(N.$)("cf","formatting_setting")}${(0,M.unref)(N.$)("common","colon")}`,"label-flex":"150px"},{default:(0,M.withCtx)(()=>[(0,M.createVNode)((0,M.unref)(rk.u),{elements:x.value,class:(0,M.normalizeClass)(e.$style.toolbar),"cls-dropdown":e.$style.dropdown,onClick:S,onUpdateColor:C},null,8,["elements","class","cls-dropdown"])]),_:1},8,["label","label-flex"])]),_:1})]),_:1},8,["class","title"])]),_:1},8,["confirm-text","cancel-text"])]),_:1},8,["title","close-hook","onKeydown"]))}});var rO=i(86468),rM=i.n(rO);let rN={};rN.$style=rM();let rP=(0,q.default)(rD,[["__cssModules",rN]]),rL=(0,M.defineComponent)({__name:"CfListWindow",props:{closeHook:{type:Function}},setup(e){let t=(0,N.$)("cf","list_window_title"),i=(0,M.ref)(null),n=(0,A.uD)(),o=(0,M.ref)(void 0),r=(0,A.O3)(),a=(0,M.computed)(()=>n.value?.getWorkbook().getCfStore().cfs??[]),s=[{title:(0,N.$)("cf","rules"),field:"rule",width:304,disableSort:!0},{title:(0,N.$)("cf","format"),field:"format",width:100,disableSort:!0},{title:(0,N.$)("cf","cell_range"),field:"cellRange",width:180,disableSort:!0}];function l(){i.value?.onClose()}function c(e){let{indexes:t}=e,i=t.at(0);o.value=void 0===i?void 0:a.value.at(i)}function d(e,t){let{triggerIndex:i,landedIndex:n,insertType:o}=t,r=e.at(i)?.cfId;if(!r)return a.value;let s=i;return i<n?s="INSERT_TOP"===o?n-1:n:i>n&&(s="INSERT_TOP"===o?n:n+1),(0,A.c)().reorderCf(r,s),a.value}function u(e){(0,et.NR)(i.value,rP,{cf:e})}function h(){u()}function p(){u(o.value)}function f(){o.value&&(0,A.c)().removeCf(o.value.cfId)}let g=(e,t,i)=>({title:rw(t),icon:{name:"data-table-draggable-small",svgIconSet:"set26"}});return(e,n)=>((0,M.openBlock)(),(0,M.createBlock)((0,M.unref)(P.Z),{ref_key:"cfListWindow",ref:i,title:(0,M.unref)(t),"syno-id":"cf-list-modal-window",width:638,height:461,"close-hook":e.closeHook,onKeydown:(0,M.withKeys)((0,M.withModifiers)(l,["stop","prevent"]),["enter"])},{default:(0,M.withCtx)(()=>[(0,M.createVNode)((0,M.unref)(L.Z),{"syno-id":"cf-list-panel",tbar:""},{tbar:(0,M.withCtx)(()=>[(0,M.createVNode)((0,M.unref)(e0.Z),{"syno-id":"create-button",onClick:h},{default:(0,M.withCtx)(()=>[(0,M.createTextVNode)((0,M.toDisplayString)((0,M.unref)(N.$)("common","create")),1)]),_:1}),(0,M.createVNode)((0,M.unref)(e0.Z),{"syno-id":"edit-button",disabled:!o.value,onClick:p},{default:(0,M.withCtx)(()=>[(0,M.createTextVNode)((0,M.toDisplayString)((0,M.unref)(N.$)("common","alt_edit")),1)]),_:1},8,["disabled"]),(0,M.createVNode)((0,M.unref)(e0.Z),{"syno-id":"delete-button",disabled:!o.value,onClick:f},{default:(0,M.withCtx)(()=>[(0,M.createTextVNode)((0,M.toDisplayString)((0,M.unref)(N.$)("common","delete")),1)]),_:1},8,["disabled"])]),body:(0,M.withCtx)(()=>[(0,M.createVNode)((0,M.unref)(ry),{"syno-id":"cf-list-data-table",class:(0,M.normalizeClass)(e.$style.table),columns:s,"current-data":a.value,"is-draggable":!0,"virtual-scroll":!1,"show-paging-bar":!1,"enable-hd-menu":!1,"custom-action-on-valid-drop":d,"get-dragging-ghost-props":g,onSelectedChange:c,onRowdblclick:p},{rule:(0,M.withCtx)(t=>{let{row:i}=t;return[(0,M.createElementVNode)("div",{class:(0,M.normalizeClass)(e.$style["cf-rule"])},(0,M.toDisplayString)((0,M.unref)(rw)(i)),3)]}),format:(0,M.withCtx)(t=>{let{row:i}=t;return[(0,M.createElementVNode)("div",{class:(0,M.normalizeClass)(e.$style["cf-preview-container"])},[(0,M.createVNode)(rR,{"cf-style":i.style},null,8,["cf-style"])],2)]}),cellRange:(0,M.withCtx)(n=>{let{row:o}=n;return[(0,M.createElementVNode)("div",{class:(0,M.normalizeClass)(e.$style["cf-range-input-container"])},[(0,M.createVNode)((0,M.unref)(eG),{"model-value":(0,M.unref)(r_)(o),readonly:!0,class:(0,M.normalizeClass)(e.$style["range-input"]),onClickIcon:e=>(function(e){let n={title:t,initRangeStr:e.ranges.join(", "),allowMultiSelection:!0,rangeScope:!1,hot:r.value,onUpdateRange:t=>{let{criteria:i,value1:n,value2:o,style:r}=rS(e),a=rC(i,t,r,n,o);(0,A.c)().updateCf(e.cfId,a)}};(0,et.NR)(i.value,eO,n,"t->t",{hide:!0,unmask:!0})})(o)},null,8,["model-value","class","onClickIcon"])],2)]}),_:1},8,["class","current-data"])]),fbar:(0,M.withCtx)(()=>[(0,M.createElementVNode)("div",{class:(0,M.normalizeClass)(e.$style.fbar)},[(0,M.createVNode)((0,M.unref)(e0.Z),{"syno-id":"cf-list-panel-fbar-ok",type:"footbar",suffix:"main",onClick:l},{default:(0,M.withCtx)(()=>[(0,M.createTextVNode)((0,M.toDisplayString)((0,M.unref)(N.$)("common","ok")),1)]),_:1})],2)]),_:1})]),_:1},8,["title","close-hook","onKeydown"]))}});var rB=i(6637),rF=i.n(rB);let rV={};rV.$style=rF();let rz=(0,q.default)(rL,[["__cssModules",rV]]);function rH(e,t,i,n){let o={title:i,initRangeStr:e.value,hot:(0,A.O3)().value,onUpdateRange:n};(0,et.NR)(t,eO,o,"t->t",{hide:!0,unmask:!0})}let rW=(0,M.defineComponent)({__name:"DefineWindow",props:{definedName:{}},setup(e){let t=(0,N.$)("define","window_title"),i=(0,M.ref)(null),n=(0,M.ref)(e.definedName.name),o=(0,M.ref)(e.definedName.value),r=(0,M.ref)(null),a=(0,A.uD)(),s=[(0,e_.JH)(t=>{let i,n=a.value?.getWorkbook();if(!n)return!1;let o=n.getNameManagerStore().list.map(e=>e.name);return e.definedName.name!==t&&o.includes(t)?(0,N.$)("define","name_exist"):(e.definedName.scope&&(i=n.getNameById(e.definedName.scope)),(0,T.rv)(t,i))},[],!1)],l=(0,M.computed)(()=>({workbook:a.value?.getWorkbook(),isMulti:!1,rangeScope:!0,allowEmptyRange:!1})),c=(0,M.computed)(()=>eC(l.value));function d(){i.value?.onClose()}async function u(){if(await r.value?.validate()){if(e.definedName.name){let t=e.definedName.scope,i=e.definedName.name;(0,A.c)().modifyDefinedName(i,{name:n.value,value:o.value},t)}else(0,A.c)().createDefinedName(n.value,o.value);d()}}return(a,l)=>((0,M.openBlock)(),(0,M.createBlock)((0,M.unref)(P.Z),{ref_key:"defineWindow",ref:i,"syno-id":"define-modal-window",title:(0,M.unref)(t),height:300,width:560,onKeydown:(0,M.withKeys)((0,M.withModifiers)(u,["stop","prevent"]),["enter"])},{default:(0,M.withCtx)(()=>[(0,M.createVNode)((0,M.unref)(L.Z),{"syno-id":"define-panel","confirm-text":(0,M.unref)(N.$)("common","ok"),"cancel-text":(0,M.unref)(N.$)("common","cancel"),confirm:u,cancel:d},{body:(0,M.withCtx)(()=>[(0,M.createVNode)((0,M.unref)(F.Z),{ref_key:"defineForm",ref:r,"syno-id":"define-form"},{default:(0,M.withCtx)(()=>[(0,M.createVNode)((0,M.unref)(z.Z),{prop:"rangeName",label:`${(0,M.unref)(N.$)("define","name")}${(0,M.unref)(N.$)("common","colon")}`,"label-flex":"150px","control-flex":"344px",rules:s},{default:(0,M.withCtx)(()=>[(0,M.createVNode)((0,M.unref)(ed.Z),{modelValue:n.value,"onUpdate:modelValue":l[0]||(l[0]=e=>n.value=e),"syno-id":"name-input"},null,8,["modelValue"])]),_:1},8,["label","label-flex","control-flex"]),(0,M.createVNode)((0,M.unref)(z.Z),{prop:"rangeStr",label:`${(0,M.unref)(N.$)("define","value")}${(0,M.unref)(N.$)("common","colon")}`,"label-flex":"150px","control-flex":"344px",rules:c.value},{default:(0,M.withCtx)(()=>[(0,M.createVNode)((0,M.unref)(eG),{modelValue:o.value,"onUpdate:modelValue":l[1]||(l[1]=e=>o.value=e),readonly:!1,onClickIcon:l[2]||(l[2]=n=>{rH(e.definedName,i.value,t,e=>{o.value=e})})},null,8,["modelValue"])]),_:1},8,["label","label-flex","control-flex","rules"])]),_:1},512)]),_:1},8,["confirm-text","cancel-text"])]),_:1},8,["title","onKeydown"]))}}),rY=(0,M.defineComponent)({__name:"DefineListWindow",setup(e){let t=(0,N.$)("define","window_title"),i=[{title:(0,N.$)("define","name"),field:"name",width:298,sort:"ASC"},{title:(0,N.$)("define","value"),field:"rangeInput",width:298,disableSort:!0}],n=(0,M.ref)(null),o=(0,M.ref)(void 0),r=(0,A.uD)(),a=(0,M.toRef)(()=>r.value?.getWorkbook().getNameManagerStore().list??[]);function s(){n.value?.onClose()}function l(){(0,et.NR)(n.value,rW,{definedName:{value:T.pt.toLabel(A.rb.getView().getSelectedRange(),A.rb.getWorkbook().getCurrentSheet())}},"c->c")}function c(){(0,et.NR)(n.value,rW,{definedName:o.value},"c->c")}function d(){(0,A.c)().removeDefinedName(o.value?.name,o.value?.scope)}function u(e){let{rows:t}=e;o.value=t?.[0]}return(e,h)=>((0,M.openBlock)(),(0,M.createBlock)((0,M.unref)(P.Z),{ref_key:"defineListWindow",ref:n,"syno-id":"define-list-modal-window",title:(0,M.unref)(t),height:459,width:636,onKeydown:(0,M.withKeys)((0,M.withModifiers)(s,["stop","prevent"]),["enter"])},{default:(0,M.withCtx)(()=>[(0,M.createVNode)((0,M.unref)(L.Z),{"syno-id":"define-list-panel",tbar:""},{tbar:(0,M.withCtx)(()=>[(0,M.createVNode)((0,M.unref)(e0.Z),{"syno-id":"create-button",onClick:l},{default:(0,M.withCtx)(()=>[(0,M.createTextVNode)((0,M.toDisplayString)((0,M.unref)(N.$)("common","create")),1)]),_:1}),(0,M.createVNode)((0,M.unref)(e0.Z),{"syno-id":"edit-button",disabled:!o.value,onClick:c},{default:(0,M.withCtx)(()=>[(0,M.createTextVNode)((0,M.toDisplayString)((0,M.unref)(N.$)("common","alt_edit")),1)]),_:1},8,["disabled"]),(0,M.createVNode)((0,M.unref)(e0.Z),{"syno-id":"delete-button",disabled:!o.value,onClick:d},{default:(0,M.withCtx)(()=>[(0,M.createTextVNode)((0,M.toDisplayString)((0,M.unref)(N.$)("common","delete")),1)]),_:1},8,["disabled"])]),body:(0,M.withCtx)(()=>[(0,M.createVNode)((0,M.unref)(ry),{"syno-id":"define-list-data-table",class:(0,M.normalizeClass)(e.$style.table),columns:i,"current-data":a.value,"show-paging-bar":!1,onSelectedChange:u,onRowdblclick:c},{name:(0,M.withCtx)(e=>{let{row:t}=e;return[(0,M.createTextVNode)((0,M.toDisplayString)(function(e){let{name:t,scope:i}=e,n=r.value?.getWorkbook();if(!n||n.getNameManagerStore().workbookScope===i)return t;let o=n.getNameById(i);return o?`${ex.P6.escapeSheetName(o)}!${t}`:t}(t)),1)]}),rangeInput:(0,M.withCtx)(i=>{let{row:o}=i;return[(0,M.createElementVNode)("div",{class:(0,M.normalizeClass)(e.$style["define-range-input-container"])},[(0,M.createVNode)((0,M.unref)(eG),{"model-value":o.value,readonly:!0,class:(0,M.normalizeClass)(e.$style["range-input"]),onClickIcon:e=>{rH(o,n.value,t,e=>{let t=o.name;(0,A.c)().modifyDefinedName(t,{name:t,value:e},o.scope)})}},null,8,["model-value","class","onClickIcon"])],2)]}),_:1},8,["class","current-data"])]),fbar:(0,M.withCtx)(()=>[(0,M.createElementVNode)("div",{class:(0,M.normalizeClass)(e.$style.fbar)},[(0,M.createVNode)((0,M.unref)(e0.Z),{"syno-id":"define-list-panel-fbar-ok",type:"footbar",suffix:"main",onClick:s},{default:(0,M.withCtx)(()=>[(0,M.createTextVNode)((0,M.toDisplayString)((0,M.unref)(N.$)("common","ok")),1)]),_:1})],2)]),_:1})]),_:1},8,["title","onKeydown"]))}});var rU=i(21261),rG=i.n(rU);let rZ={};rZ.$style=rG();let rj=(0,q.default)(rY,[["__cssModules",rZ]]),rq=(0,M.defineComponent)({__name:"PrintWindow",setup(e){function t(e,t,i,n){let o=A.rb.getView().getPlugin("synoPrint"),r=SYNO.SDS.Office.Utils.parseDisplayName(SYNO.SDS.Office.Env.title);o?.execPrint(r,i,{printRange:e.range,orientation:e.orientation},()=>{n.value=!1,t?.onClose()})}function i(){return{lr:(0,eK.isFirefox)()?1.27:1,tb:(0,eK.isFirefox)()?1.27:(0,eK.isSafari)()?2.25:1}}return(e,n)=>((0,M.openBlock)(),(0,M.createBlock)((0,M.unref)(J),{title:(0,M.unref)(N.$)("print","setup"),"confirm-text":(0,M.unref)(N.$)("handsontable","print"),confirm:t,"get-print-margin":i,"show-status":!0},null,8,["title","confirm-text"]))}}),rK=(0,M.defineComponent)({__name:"SortWindow",props:{range:{}},setup(e){let t=e.range,i=[{label:(0,N.$)("handsontable","sort_normal_order"),value:!0},{label:(0,N.$)("handsontable","sort_reverse_order"),value:!1}],n=(0,M.ref)(null),o=(0,M.ref)(!1),r=(0,M.ref)(!0),a=(0,M.computed)(()=>{let e=o.value?function(){let e=[],i=(0,A.c)().sheet;for(let n=t.from.col;n<=t.to.col;n++){let o=i.getCellTextDesc(t.from.row,n)?.v??"";e.push([n,o])}return e}():function(){let e=[];for(let i=t.from.col;i<=t.to.col;i++)e.push([i,String.format((0,N.$)("handsontable","column_index"),ex.P6.columnIndexToLabel(i))]);return e}(),i=[];for(let t of e)i.push({label:t[1],value:t[0]});return i}),s=(0,M.computed)(()=>[{label:(0,N.$)("handsontable","sort_none"),value:null},...a.value]),l=[(0,M.ref)(a.value[0].value),(0,M.ref)(null),(0,M.ref)(null)];function c(){n.value?.onClose()}function d(){let e=(0,A.c)(),i=l.map(e=>{let{value:t}=e;return t}).filter(e=>null!==e);i=[...new Set(i)];let n=!0===r.value;if(o.value){let i=e.sheet.getMergePlugin();t.from.row+=i.getMergedRange(t.from.row,t.from.col)?.getHeight()??1}t.from.row>=t.to.row||(e.sort(t,i,n),c())}return(e,t)=>((0,M.openBlock)(),(0,M.createBlock)((0,M.unref)(P.Z),{ref_key:"sortWindow",ref:n,"syno-id":"sort-modal-window",title:(0,M.unref)(N.$)("handsontable","sort"),height:308,width:436},{default:(0,M.withCtx)(()=>[(0,M.createVNode)((0,M.unref)(L.Z),{"syno-id":"sort-panel","confirm-text":(0,M.unref)(N.$)("handsontable","sort"),"cancel-text":(0,M.unref)(N.$)("common","cancel"),confirm:d,cancel:c},{body:(0,M.withCtx)(()=>[(0,M.createVNode)((0,M.unref)(F.Z),{"syno-id":"sort-form"},{default:(0,M.withCtx)(()=>[((0,M.openBlock)(),(0,M.createElementBlock)(M.Fragment,null,(0,M.renderList)(l,(e,t)=>(0,M.createVNode)((0,M.unref)(z.Z),{key:t,label:`${(0,M.unref)(N.$)("handsontable",0===t?"sort_by":"sort_then_by")}${(0,M.unref)(N.$)("common","colon")}`,"control-flex":"220px","label-flex":"150px"},{default:(0,M.withCtx)(()=>[(0,M.createVNode)((0,M.unref)(H.Z),{modelValue:e.value,"onUpdate:modelValue":t=>e.value=t,"syno-id":"index === 0 ? 'sort-by-select' : `sort-then-by-select-${['first', 'second'][index - 1]}`",width:"auto",options:0===t?a.value:s.value,"null-value":0===t?null:-1},null,8,["modelValue","onUpdate:modelValue","options","null-value"])]),_:2},1032,["label","control-flex","label-flex"])),64)),(0,M.createVNode)((0,M.unref)(z.Z),{label:`${(0,M.unref)(N.$)("handsontable","sort_order")}${(0,M.unref)(N.$)("common","colon")}`,"control-flex":"220px","label-flex":"150px"},{default:(0,M.withCtx)(()=>[(0,M.createVNode)((0,M.unref)(H.Z),{modelValue:r.value,"onUpdate:modelValue":t[0]||(t[0]=e=>r.value=e),"syno-id":"order-select",width:"auto",options:i},null,8,["modelValue"])]),_:1},8,["label","control-flex","label-flex"]),(0,M.createVNode)((0,M.unref)(V.Z),{modelValue:o.value,"onUpdate:modelValue":t[1]||(t[1]=e=>o.value=e),"syno-id":"sort-with-header-check"},{default:(0,M.withCtx)(()=>[(0,M.createTextVNode)((0,M.toDisplayString)((0,M.unref)(N.$)("handsontable","sort_with_header_row")),1)]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["confirm-text","cancel-text"])]),_:1},8,["title"]))}});var rX=i(30198);let rQ=(0,M.defineComponent)({__name:"PreferenceSettingsWindow",setup(e){let t=(0,k.VF)(),i=(0,M.ref)(t.useUsernameLabel),n=(0,M.ref)(t.useRightToLeft),o=(0,M.ref)(t.useAi);async function r(){let e=o.value!==t.useAi;t.useUsernameLabel=i.value,t.useRightToLeft=n.value,t.useAi=o.value,await (0,W.L)({preference_settings:{use_username_label:t.useUsernameLabel,use_right_to_left_control:t.useRightToLeft,sheet_use_ai:t.useAi}}),(0,A.O3)().value?.getPlugin("synoOnlinePeer")?.setShowTooltipOnMove(t.useUsernameLabel),e&&(0,tx.m9)().getMsgBox().confirm("",(0,N.$)("personal_settings","refresh_confirm"),e=>{"yes"===e&&(0,tx.m9)().onReload({keepPassword:!0})})}return(e,t)=>((0,M.openBlock)(),(0,M.createBlock)(rX.Z,{width:440,height:348,"help-url":"https://kb.synology.com/DSM/help/Spreadsheet/sheet_editing_spreadsheets?version=7#preferences",onConfirm:r},{default:(0,M.withCtx)(()=>[(0,M.createVNode)((0,M.unref)(F.Z),{"syno-id":"form"},{default:(0,M.withCtx)(()=>[(0,M.createVNode)((0,M.unref)(z.Z),{"syno-id":"username-check-item","hide-label":""},{default:(0,M.withCtx)(()=>[(0,M.createVNode)((0,M.unref)(V.Z),{modelValue:i.value,"onUpdate:modelValue":t[0]||(t[0]=e=>i.value=e),"syno-id":"checkbox-show-user-name"},{default:(0,M.withCtx)(()=>[(0,M.createTextVNode)((0,M.toDisplayString)((0,M.unref)(N.$)("preference_setting","username")),1)]),_:1},8,["modelValue"])]),_:1}),(0,M.createVNode)((0,M.unref)(z.Z),{"syno-id":"right-to-left-check-item","hide-label":""},{default:(0,M.withCtx)(()=>[(0,M.createVNode)((0,M.unref)(V.Z),{modelValue:n.value,"onUpdate:modelValue":t[1]||(t[1]=e=>n.value=e),"syno-id":"checkbox-right-to-left"},{default:(0,M.withCtx)(()=>[(0,M.createTextVNode)((0,M.toDisplayString)((0,M.unref)(N.$)("preference_setting","right_to_left")),1)]),_:1},8,["modelValue"])]),_:1}),(0,M.unref)(iU.Gh)?((0,M.openBlock)(),(0,M.createBlock)((0,M.unref)(z.Z),{key:0,"syno-id":"enable-ai-check-item","hide-label":""},{default:(0,M.withCtx)(()=>[(0,M.createVNode)((0,M.unref)(V.Z),{modelValue:o.value,"onUpdate:modelValue":t[2]||(t[2]=e=>o.value=e),"syno-id":"checkbox-enable-ai"},{default:(0,M.withCtx)(()=>[(0,M.createTextVNode)((0,M.toDisplayString)((0,M.unref)(N.$)("preference_setting","enable_ai")),1)]),_:1},8,["modelValue"])]),_:1})):(0,M.createCommentVNode)("",!0)]),_:1})]),_:1}))}});var r$=i(58162),rJ=i(95877),r0=i(84779);function r1(){return(0,k.sI)().selfUid??(0,k.sI)().anonymousUid}function r2(){return(0,k.sI)().selfName||void 0}Ext.define("SYNO.SDS.Office.Sheet.SheetMgr",{constructor:function(e){var t;this.owner=e.owner,this.contextMenu=(t={owner:this.owner},(0,eK.isMobileLayout)()?(0,iu.aX)(nC,{}).mount(document.body.appendChild(document.createElement("div"))):new n_(t)),this.hotKeyPlugin=new e$(this),this.validMenu=new SYNO.SDS.Office.Sheet.ValidMenu,this.chartMenu=new SYNO.SDS.Office.Sheet.Chart.OptionMenu,this.datePicker=this.createDatePicker(),this.scheduleSave=(0,em.Z)(this.scheduleSave,100),this.notifyFloatPanelMouseOver=(0,em.Z)(this.notifyFloatPanelMouseOver,200),this.hot=null,this._openedWithFvid=!!il(window.location.hash)?.fvid,SYNO.SDS.Office.Utils.isViewerMode()||(this.sio=new SYNO.SDS.Office.Sheet.SocketIO),Object.defineProperties(this,{sheet:{get:function(){return A.rb.getDataBridge()?.getWorkbook().getCurrentSheet()}}}),this.regEvents()},getFloatingTargetDom:function(){return this.getMainPanel().getHandsonPanel().$el},createFloatComponents:function(){var e=this.getFloatingTargetDom();this.floatPanelMgr=new t9(e),this.floatPanelMgr.addPanel(new SYNO.SDS.Office.Sheet.FloatComment({owner:this.owner,targetDom:e}));var t=new SYNO.SDS.Office.Sheet.LinkEditorPanel({owner:this.owner,targetDom:e});this.floatPanelMgr.addPanel(t),this.floatPanelMgr.addPanel(new SYNO.SDS.Office.Sheet.NotePanel({targetDom:e})),this.floatPanelMgr.addPanel(new SYNO.SDS.Office.Sheet.ValidMsgPanel({targetDom:e})),this.imageFloat=new SYNO.SDS.Office.Sheet.Image.OptionFloatPanel({owner:this.owner,renderTo:e}),this.linkFloat=new SYNO.SDS.Office.Sheet.LinkPanel({owner:this,panel:this.getMainPanel(),renderTo:e,linkEditor:t,onMouseEnter:t.preventClosing.bind(t)}),this.createCellHistoryPanel()},createDatePicker:function(){var e=new SYNO.SDS.Office.Sheet.HotDateMenu({owner:this.owner});return e.setSelectCallback(async function(e,t){var i=this.hot&&this.hot.getActiveEditor();i&&(i.setValue(t.format("Y/n/j")),await i.finishEditing(!1),this.reFocus())},this),e},_createFooterComponents:function(){var e=this.hot.view.footer,t=document.createElement("span");t.textContent=(0,SYNO.SDS.Office._T)("sheet","bottom_create_rows_desc"),e.appendChild(t),this.addRowsField=new SYNO.ux.NumberField({renderTo:e,value:100,width:56,allowNegative:!1,minValue:1}),this.addRowsBtn=new SYNO.ux.Button({renderTo:e,text:_T("common","add"),btnStyle:"grey",style:{minWidth:"0"},listeners:{scope:this,click:function(){var e=this.addRowsField.getValue();e>0&&this.applyInsertRowCol("insert_row",this.sheet.countRows(),e)}}}),e.addEventListener("contextmenu",function(e){e.stopPropagation(),e.target&&(0,rJ.isElementNode)(e.target)&&"INPUT"===e.target.tagName||e.preventDefault()})},_createEditorComponents(){let e=this.hot,t=e.rootElement,i=e.getActiveEditor().input,n=A.rb.getWorkbook().getLocale().getData().dec_sym;i.setFormulaTip((0,iu.aX)(iz,{sep:","===n?";":",",maxAllowedHeight:280,constraintEl:t}).mount(t.appendChild(document.createElement("div"))));let o=(0,iu.aX)(i$,{functions:ex.z4,lang:_S("lang"),width:220,maxHeight:300,constraintEl:t,onSelect:e=>{let t=this.getActiveInput();t&&t.insertFormulaText(e)},onSelectAi:()=>{let e=this.hot.getActiveEditor();e&&e.close(),this.getMainPanel().showAiFormulaPanel()}}).mount(t.appendChild(document.createElement("div")));e.addHook("afterScroll",()=>{o.collapse()}),i.setFormulaMenu(o)},regEvents:function(){this.owner.getEventMgr().on("init:done",this.onInitDone,this)},getOnlinePeer:function(){return this.owner.mainPanel.onlinePeer},getMainPanel:function(){return this.owner.mainPanel},_selectOnInit:function(){var e;if(!this.getMainPanel()._user_info_ready)return void SYNO.SDS.Office.GetWindow().getEventMgr().on("comment_update_data_ready",this._selectOnInit,this,{single:!0});this.reFocus();let t=SYNO.SDS.Office.Env.commentId,i=this.getMainPanel().resolveHashSelection(t);this.handleHashSelection({range:"A1",...(e=e=>null==e,nr(i,nt((0,ne.Z)(e))))})},handleHashSelection:async function(e){let{sheetId:t,fvid:i,range:n,commentId:o}=e,r=this.sheet.isCommentable()?this.getCommentById(o):null;if(r&&((0,eK.isMobileLayout)()&&this.getMainPanel().showCommentsInBottomPanel([r.id]),t=r.sheetId,n=T.pt.createFromCoords(r.row,r.col).toLabel()),t&&t!==A.rb.getWorkbook().getCurrentSheet().sheetId&&await this.setActiveSheet(t),n){let e=T.pt.textToRange(n,A.rb.getWorkbook().getCurrentSheet());if(e){let t=e.toArray();this.hot.selectRanges([t]),this.hot.scrollToRange(...t)}r&&(0,eK.isMobileLayout)()&&this.contextMenu.close()}i&&await this.setActiveFilterView(i)},initWorkbook:async function(e){let t={MAX_CELL_COUNT:SYNO.SDS.Office.Define.Info?.sheet_max_cell_count,PIVOT_TABLE_ENABLED:SYNO.SDS.Office.Define.Info?.sheet_pivot_table_enabled},i=(0,A.Yq)(e,T.Gr.editor,t,t7);(0,A.ob)(t7,i);let n=i.getWorkbook(),o=await new Promise(e=>{let t=(0,A.O3)();if(t.value)e(t.value);else{let i=(0,M.watch)(t,t=>{t&&(i(),e(t))})}});o.observe({dataBridge:i,action:A.rb.getAction()}),this.hot=o,this.getMainPanel().bindHot(o);let{sheetId:r}=il(location.hash),a=await i.asyncInit(e,{activeId:r,onActiveInit:function(){o.render()}});if(this.createFloatComponents(),this._createFooterComponents(),this._createEditorComponents(),o.getActiveEditor().setValidMenu(this.validMenu),o.addHook("afterOnCellMouseOver",this.afterOnCellMouseOver.bind(this)),o.addHook("afterOnCellMouseUp",(e,t)=>{!t||-1===t.row&&-1===t.col||t.row<-1||t.col<-1||this.notifyFloatPanelMouseOver.flush()}),o.addHook("triggerContextMenu",(e,t)=>{this.contextMenu.showByEvent(e,t)}),o.addHook("afterScroll",this.afterScroll.bind(this)),(0,eK.isMobileLayout)()){let e=this.owner.findAppWindow();o.addHook("openEditor",e.onMobileEditorStatusChange.bind(e)),o.addHook("closeEditor",e.onMobileEditorStatusChange.bind(e))}await this._syncWorkbookPerm(),this.linkFloat?.setLinkComponentsVisible(),this.initUILocale(n.getLocale().getCode(),n.getLocale().getData());let s=await a.processDelayInfo(),l=(0,A.h4)();l.initBridge({dataBridge:i,uiBridge:t7});let c=await l.execInitCommands();(s||c)&&(o.view.viewport.setRecalcRow(),o.view.viewport.setRecalcCol(),o.render()),await i.hasRtlProperties()&&t2().setDataWithRtl(),await i.startObserve(),(0,A.dA)().listen(o),A.rb.getAction().bindHot(o),this._selectOnInit(),r&&r!==n.getCurrentSheet().sheetId&&n.hasSheet(r)&&this.setActiveSheet(r)},_tryShowAIAssistantNewFeatureHint:async function(){if(!(0,k.eL)().editable||(0,eK.isMobileLayout)()||this._openedWithFvid||this.owner.findAppWindow().isInFocusMode()||!await iU.tn.isAIFunctionAvailable())return;let e={feature:"ai_assistant",title:(0,N.$)("ai_common","ai_assistant"),content:(0,N.$)("ai_common","new_feature_content"),onConfirm:()=>{this.owner.findAppWindow().getMainPanel().showAiFormulaPanel()}},t=this.owner.findAppWindow().getMainPanel().icontbar.getComponent("ai_helper");t&&t.rendered&&!t.hidden&&(0,r0.Ur)(t,e).show()},_showNewFeatureHint:async function(){await (0,r0.NT)()==="ai_assistant"&&this._tryShowAIAssistantNewFeatureHint()},onInitDone:function(){t7.onAfterDoneQueueChange(),SYNO.SDS.Drive.Utils.isLogined()&&((0,W.$)().then(e=>{if(!e)return;this.hot.setFormulaPreview(e.formula_preview);let t=iP();t.isOpened=e.formula_panel_opened,t.isExpanded=e.formula_panel_expanded;let i=(0,k.VF)();return this.hot.getPlugin("synoOnlinePeer").setShowTooltipOnMove(i.useUsernameLabel),(0,A.h4)().getAllPeers().then(e=>{this.hot.getPlugin("synoOnlinePeer").updatePeers(e)})}),this.initCustomFormatItems(),this._showNewFeatureHint())},setActiveSheet:async function(e){var t=this.hot;t?.sheet?.sheetId!==e&&(this.floatPanelMgr.hidePanels("changeTab"),await t?.setActiveSheet(e))},insertLink:function(){this._showFloatPanels("insertLink")},insertNote:function(){this._showFloatPanels("insertNote")},insertComment:function(){SYNO.SDS.Office.Utils.isCommentable()&&this._showFloatPanels("insertComment")},createCellHistoryPanel(){let e=document.createElement("div");this.getFloatingTargetDom().appendChild(e);let t=(0,iu.aX)(i9,{onResize:()=>this.rearrangeCellHistoryPanel(),onClose:()=>{t.$el.contains(document.activeElement)&&this.reFocus()}}).mount(e);return t.$el.addEventListener("focusout",e=>{t.$el.contains(e.relatedTarget)||t.$el.contains(document.activeElement)||t.close()}),this.cellHistoryPanel=t,t},beforeShowCellHistory:function(){this.floatPanelMgr.hidePanels("showCellHistory"),this.linkFloat.hide()},showCellHistory:function(){let e=this.hot.getSelectedRange();if(!e)return;this.beforeShowCellHistory();let t=this.sheet.sheetId,i=e.from.row,n=e.from.col;i3().openFor({sheetId:t,row:i,col:n}),this.cellHistoryPanel.focus()},rearrangeCellHistoryPanel:function(){if(!this.cellHistoryPanel.needShow)return;let e=this.hot?.getSelectedRange();if(!e)return;let{row:t,col:i}=e.from,n=this.hot.getCellBound(t,i);if(n.height<=0||n.width<=0)return void this.cellHistoryPanel.hide();this.cellHistoryPanel.show();let o=this.owner.findAppWindow().getSheetEditorClientRect(),r=n.y,a=n.x,s=n.x+n.width,l=n.y+n.height,{width:c,height:d}=this.cellHistoryPanel.$el.getBoundingClientRect(),u=s+c<=o.right,h=a-c>=o.left,p=a+c<=o.right,f=l+d<=o.bottom,g=r-d>=o.top,m=r+d<=o.bottom,{putRight:v,putLeft:b}=ie(n,o,c),y=v?s:b?a-c:p||o.width<c?a:s-c,w=!u&&!h&&(f||g)?f?l:r-d:m||o.height<d?r:l-d;this.cellHistoryPanel.setPosition({top:w,left:y})},_showFloatPanels:function(e){let t=this.hot.getSelectedRange()?.highlight;if(!t)return;let i=t.from.row,n=t.from.col,o=this.hot.getCellBound(i,n);this.floatPanelMgr.showPanels(e,i,n,o)},getCommentById:e=>A.rb.getWorkbook().getCommentStore().getCommentById(e),getCommentByCoord(e,t){let i=this.sheet;if(!i.isCommentable())return null;let n=i.getCellProperty(e,t,"comment")?.[0];return n?ii(this.getCommentById(n)):null},getCommentBySelection(){let e=this.getSynoCore().getSelectedRange();if(!e?.highlight?.from)return null;let{row:t,col:i}=e.highlight.from;return this.getCommentByCoord(t,i)},createComment:function(e){A.rb.getAction().createComment(r1(),{authorName:r2(),...e})},replyComment:function(e){A.rb.getAction().replyComment(r1(),{authorName:r2(),...e})},reopenComment:function(e){A.rb.getAction().reopenComment(r1(),{target:e,authorName:r2()})},resolveComment:function(e){A.rb.getAction().resolveComment(r1(),{target:e,authorName:r2()})},editComment:function(e,t,i){A.rb.getAction().editComment(r1(),e,t,i)},_syncWorkbookPerm:async function(){let e=A.rb.getDataBridge();if(e){var t=!SYNO.SDS.Office.Utils.isEditable(),i=SYNO.SDS.Office.Utils.isCommentable();await e.setReadonly(t),await e.setCommentable(i)}},onPermissionChanged:async function(){await this._syncWorkbookPerm();var e=!SYNO.SDS.Office.Utils.isEditable(),t=this.getSearchWindow();t&&t.setReadOnlyMode(e),this.linkFloat?.setLinkComponentsVisible()},print:function(){!SYNO.SDS.Office.Utils.isPreviewOnly()&&SYNO.SDS.Office.Utils.isDownloadable()&&(0,et.hy)(rq)},undo:async function(){this.isReadonly()||(this.hot.getPlugin("synoCopyPaste").reset(),await A.rb.getUndoRedo().undo(),tp().updateValue(),this.reFocus())},redo:async function(){this.isReadonly()||(this.hot.getPlugin("synoCopyPaste").reset(),await A.rb.getUndoRedo().redo(),this.reFocus())},async paste(e){let t=this.hot.getPlugin("synoCopyPaste");try{let i=await (0,na.Xi)();t.getProxy().handleDataTransfer(i,e)}catch{t.isInternalSelected()?t.triggerPaste(null,e):this.showCopyPasteTip()}},scheduleSave:function(){!this.isReadonly()&&this.sio&&this.sio.scheduleSave()},scheduleSaveForce:function(e,t){!this.isReadonly()&&this.sio&&this.sio.scheduleSave(e,t)},getActiveInput:function(){var e=this.hot.getActiveEditor();if(!e.isOpened())return null;var t=e.input;return t.getSelection().isSelectionInEditor()?t:t.pair.getSelection().isSelectionInEditor()?t.pair:null},setRichTextStyle:function(e,t,i){var n=i?this.hot.getActiveEditor().input:this.getActiveInput();if(n){var o={};o[e]=t,n.setStyle(o,i)}},toggleFontAttr:function(e){var t,i=!1,n=this.hot;return n.getActiveEditor().isOpened()?i=!!this.getActiveInput()?.toggleStyle(e):(t=n.getSelectedRange())&&(i=!this.sheet.getComputedCellStyle(t.from.row,t.from.col).getFont()[e],this.setStyleMeta("Font",e,i)),i},checkCfToast:function(e,t){let i=A.rb.getWorkbook().getCurrentSheet();if(!i)return;let n=Object.entries(t);for(let t of e)for(let e=t.from.row;e<=t.to.row;e++)for(let o=t.from.col;o<=t.to.col;o++){let t=i.getCellProperty(e,o,"cfStyle");for(let[e,i]of n)if(t?.[e]&&t[e]!==i)return void(0,O.o0)((0,N.$)("cf","cf_lock_style_toast"),3e3)}},getCfKey:function(e){return["bold","italic","underline","strike","color"].includes(e)?e:"bg"===e?"bgColor":void 0},setStyleMeta:async function(e,t,i){if(this.isReadonly())return;let n=this.hot.getActiveEditor();if("Font"===e&&n.isOpened())return this.setRichTextStyle(t,i);let o=this.hot.getMultiSelectedRange().map(e=>e.clone().normalize()),r=this.getCfKey(t);r&&this.checkCfToast(o,{[r]:i}),await A.rb.getAction().setStyleMeta(this.sheet.sheetId,o,e,t,i),this.reFocus()},setBorder:async function(e,t){await A.rb.getAction().setBorder(this.sheet.sheetId,this.hot.getMultiSelectedRange(),e,t),this.reFocus()},setAllBorder:async function(e){await A.rb.getAction().setAllBorder(this.sheet.sheetId,this.hot.getMultiSelectedRange(),e),this.reFocus()},removeBorder:async function(){await A.rb.getAction().removeBorder(this.sheet.sheetId,this.hot.getMultiSelectedRange()),this.reFocus()},mergeCells:async function(){await A.rb.getAction().mergeCells(this.sheet.sheetId,this.hot.getMultiSelectedRange()),this.reFocus()},unmergeCells:async function(){await A.rb.getAction().unmergeCells(this.sheet.sheetId,this.hot.getMultiSelectedRange()),this.reFocus()},isMerged:function(e){return e=e||this.hot.getSelectedRange(),this.sheet.getMergePlugin().isMerged(e)},hasMerged:function(e){return(e=e||this.hot.getMultiSelectedRange()).some(e=>this.sheet.getMergePlugin().getOverlap(e).length>0)},hasPivotTable:function(e){e=e||this.hot.getSelectedRange();let t=!1,i=this.sheet;return i&&e&&e.forAll((e,n)=>!(t=!!i.getCellProperty(e,n,"pivot"))),t},rowColOpOnSelectedRange:function(e,t,i){if(void 0===i&&(i=!1),!this.hot.getSelectedRange())return;let n=`${e}_${t}`;if("insert"===e){let e=+!!i;this.insertRowCol(n,e)}else"remove"===e&&this.removeRowCol(n)},insertRowCol:async function(e,t,i){void 0===i&&(i=void 0);let n=this.sheet,o=this.hot,r=o.getMultiSelectedRange();if(!r||0===r.length)return;let a="row"===e.split("_")[1]?"row":"col",s=[],l=[],c=[];for(let e of r){let n=0===t?e.getTopLeftCorner()[a]:e.getBottomRightCorner()[a],o=n+t,r=i??("row"===a?e.getHeight():e.getWidth());s.push(o),l.push(r),c.push(n)}let d=await A.rb.getAction().applyInsertRowCol(n.sheetId,e,s,l,c);if(this.reFocus(),!d)return;let u=A.rb.getAction().getInsertRowColChanges(s,l,c),h=[],p=0;for(let[e,t]of u){let i=e+p,o=i+t-1;p+=t;let r="row"===a?[i,0,o,n.countCols()-1]:[0,i,n.countRows()-1,o];h.push(r)}o.selectRanges(h)},removeRowCol:async function(e){let t=this.hot.getMultiSelectedRange();if(0===t.length)return;let i=await A.rb.getAction().removeRowColByRanges(this.sheet.sheetId,e,t);this.reFocus(),i&&this.hot.selectRanges(t.map(e=>e.toArray()))},groupRowCol:async function(e){let t=this.hot.getSelectedRange()?.clone().normalize();if(!(!t||this.isReadonly())){if(!e){let i=this.hot.getRowColSelected();if(!i.row&&!i.col){let e=this.hot.getHighlightBound();tl().showGroupItem({left:e.x+e.width,top:e.y},t);return}e=i.row?"row":"col"}await A.rb.getAction().group(this.sheet.sheetId,e,t)}},ungroupRowCol:async function(e){let t=this.hot.getSelectedRange()?.clone().normalize();if(!(!t||this.isReadonly())){if(!e){let i=this.hot.getRowColSelected();if(!i.row&&!i.col){let e=this.hot.getHighlightBound();tl().showUngroupItem({left:e.x+e.width,top:e.y},t);return}e=i.row?"row":"col"}await A.rb.getAction().ungroup(this.sheet.sheetId,e,t)}},expandGroup:async function(e,t,i){await this.hot.getPlugin("synoGroup").expandGroup(e,t,i)},collapseGroup:async function(e,t,i){await this.hot.getPlugin("synoGroup").collapseGroup(e,t,i)},removeGroup:async function(e,t,i){await this.hot.getPlugin("synoGroup").removeGroup(e,t,i)},expandAllGroup:async function(e){await this.hot.getPlugin("synoGroup").expandAllGroup(e)},collapseAllGroup:async function(e){await this.hot.getPlugin("synoGroup").collapseAllGroup(e)},removeAllGroup:async function(e){await this.hot.getPlugin("synoGroup").removeAllGroup(e)},setSheetRtl:async function(e){await A.rb.getAction().setSheetRtl(this.sheet.sheetId,e)},_collectSelectedPivotItems(e){let t=(0,A.uD)().value?.getWorkbook();if(!t||!t.getPivotTableStore().pivotTables[e])return[];let i=t.getCurrentSheet();if(!i)return[];let n=this.hot.getMultiSelectedRange(),o=new Set,r=[];for(let t of n)t.forAll((t,n)=>{let a=i.getCellProperty(t,n,"pivot");if(a&&a.tableId===e&&a.field&&a.item){let e=`${a.field},${a.item.type},${a.item.value}`;o.has(e)||(o.add(e),r.push([a.field,{...a.item}]))}});return r},groupPivotFieldItems:async function(e){await A.rb.getAction().groupPivotFieldItems(e,this._collectSelectedPivotItems(e))},ungroupPivotFieldItems:async function(e,t,i){"manual"===t?await A.rb.getAction().ungroupPivotFieldItems(e,this._collectSelectedPivotItems(e)):"datetime"===t?await A.rb.getAction().setPivotFieldDatetimeGroup(e,i,null,{}):"number"===t&&await A.rb.getAction().setPivotFieldNumberGroup(e,i,null)},createPivotTableDetailSheet:async function(e){let t=this.hot.getSelectedRange()?.highlight.getTopLeftCorner();if(!t)return;let i=await A.rb.getAction().createPivotDetailSheet(e,t.row,t.col);i&&this.setActiveSheet(i)},removeValue:async function(){if(this.isReadonly())return;let e=this.hot.getMultiSelectedRange().map(e=>e.clone().normalize());await A.rb.getAction().removeRanges(this.sheet.sheetId,e),this.reFocus()},insertCells:function(e){let t=this.hot.getMultiSelectedRange();A.rb.getAction().insertCells(this.sheet.sheetId,t,e)},removeCells:function(e){let t=this.hot.getMultiSelectedRange();A.rb.getAction().removeCells(this.sheet.sheetId,t,e)},forEachSelectedCell:function(e){ey(this.hot,e)},clearFormat:async function(){this.checkCfToast(this.hot.getMultiSelectedRange().map(e=>e.clone().normalize()),{bgColor:null,color:null,bold:!1,italic:!1,underline:!1,strike:!1});let e=await A.rb.getAction().clearFormat(this.sheet.sheetId,this.hot.getMultiSelectedRange());return this.reFocus(),e},fixedRow:async function(e){await A.rb.getAction().fixRow(this.sheet.sheetId,e),this.reFocus()},fixedCol:async function(e){await A.rb.getAction().fixCol(this.sheet.sheetId,e),this.reFocus()},hideRowsCols:async function(e){let t=this.hot.getMultiSelectedRange(),i=this.sheet,n=this.hot;function o(e,t,i,n){for(var o=e;o!==t;){if(!0===n(o))return o;o+=i}return -1}let r=A.rb.getAction(),a="row"===e,s=a?await r.hideRows(i.sheetId,t):await r.hideCols(i.sheetId,t),l=t[t.length-1];if(!1===s||!l)return;let c=a?function(e){return!i.isHiddenRow(e)}:function(e){return!i.isHiddenCol(e)},d=o(l.getBottomRightCorner()[e]+1,a?i.countRows():i.countCols(),1,c);if(-1===d&&(d=o(l.getTopLeftCorner()[e]-1,0,-1,c)),d>-1){let e=a?[d,0,d,i.countCols()-1]:[0,d,i.countRows()-1,d];await n.forceUpdate(),n.selectRanges([e])}},hideRows:function(){return this.hideRowsCols("row")},hideCols:function(){return this.hideRowsCols("col")},showRows:function(){let e=this.hot.getMultiSelectedRange(),t=this.sheet.countRows(),i=-1;for(let n of e)t=Math.min(t,n.getTopLeftCorner().row),i=Math.max(i,n.getBottomRightCorner().row);t>0&&t===this.sheet.getFirstVisibleRowCol("row")&&e.push((0,T.MT)(0,0,t,0)),i<this.sheet.countRows()-1&&i===this.sheet.getLastVisibleRowCol("row")&&e.push((0,T.MT)(i,0,this.sheet.countRows()-1,0)),A.rb.getAction().showRows(this.sheet.sheetId,e)},showCols:function(){let e=this.hot.getMultiSelectedRange(),t=this.sheet.countCols(),i=-1;for(let n of e)t=Math.min(t,n.getTopLeftCorner().col),i=Math.max(i,n.getBottomRightCorner().col);t>0&&t===this.sheet.getFirstVisibleRowCol("col")&&e.push((0,T.MT)(0,0,0,t)),i<this.sheet.countCols()-1&&i===this.sheet.getLastVisibleRowCol("col")&&e.push((0,T.MT)(0,i,0,this.sheet.countCols()-1)),A.rb.getAction().showCols(this.sheet.sheetId,e)},_execCreateFilter:function(e,t){var i,n=this.hot;function o(e){return e.range}return(t=t||n.getSelectedRange())&&(i=(t=t.clone().normalize()).highlight),e(this.sheet.sheetId,t).then(o).catch(o).then(function(e){e&&!e.isEqual(t)&&(n.selectRanges([e.toArray()]),i&&n.getSelectedRange()&&(n.getSelectedRange().highlight=i,n.fastRender()))})},createFilter:function(){return this._execCreateFilter(function(e,t){return A.rb.getAction().createFilter(e,t)})},disableFilter:function(e){return A.rb.getAction().disableFilter(this.sheet.sheetId,e)},setFilter:function(e,t,i){A.rb.getAction().setFilter(this.sheet.sheetId,e,t,i)},setActiveFilterView:function(e){A.rb.getAction().setActiveFilterView(this.sheet.sheetId,e)},createFilterView:function(e,t){return this._execCreateFilter(function(t,i){var n=(0,T.O1)();return A.rb.getAction().createFilterView(t,n,i,e)},t)},createPrivateFilterView:function(e,t){A.rb.getAction().createPrivateFilterView(this.sheet.sheetId,e,(0,N.$)("filter","only_me"),t)},updateFilterViewName:function(e,t){A.rb.getAction().updateFilterViewName(this.sheet.sheetId,e,t)},updateFilterViewRange:function(e,t){return A.rb.getAction().updateFilterViewRange(this.sheet.sheetId,e,t)},isFilterActive:function(){let e=this.sheet.getFilterPlugin();return!!e?.getFilterJSON()},isFilterViewActive:function(){let e=this.sheet.getFilterPlugin();return!!e?.isInViewState()},setFormat:async function(e){await A.rb.getAction().setFormat(this.sheet.sheetId,this.hot.getMultiSelectedRange(),e),this.reFocus(),tp().updateValue()},fillDatetime:function(e){var t=Math.round(1e5*ex.yA.NOW())/1e5;A.rb.getAction().fillDatetime(this.sheet.sheetId,t,this.hot.getMultiSelectedRange(),e)},applyLink:async function(e,t,i,n,o){void 0===o&&(o=!0),await A.rb.getAction().applyLink(this.sheet.sheetId,e,t,i,n,o),this.reFocus()},applyInternalLink:async function(e,t,i,n,o){void 0===o&&(o=!0),await A.rb.getAction().applyInternalLink(this.sheet.sheetId,e,t,i,n,o),this.reFocus()},removeLink:async function(e){e||(e=this.hot.getMultiSelectedRange()),await A.rb.getAction().removeLink(this.sheet.sheetId,e),this.reFocus()},applyNote:async function(e,t){await A.rb.getAction().applyNote(this.sheet.sheetId,e,t),this.reFocus()},removeNote:async function(){await A.rb.getAction().removeNote(this.sheet.sheetId,this.hot.getMultiSelectedRange()),this.reFocus(),this._showFloatPanels("onCellMouseOver")},sort:async function(e,t,i){await A.rb.getAction().sort(this.sheet.sheetId,e,t,i),this.reFocus()},showSortWindow:function(){var e=this.hot.getSelectedRange();e&&this.onBeforeDialogShow(e)&&(0,et.hy)(rK,{range:e.clone().normalize()})},showValidWindow:function(){let e=this.hot.getMultiSelectedRange();if(!this.onBeforeDialogShow(e))return;let t={ranges:e.map(e=>e.clone().normalize())};(0,et.hy)(e7,t)},createValidation:function(e,t){A.rb.getAction().createValidation(this.sheet.sheetId,e,t)},removeValidation:function(e){A.rb.getAction().removeValidation(this.sheet.sheetId,e)},showCfListWindow:function(){(0,et.hy)(rz)},showPivotWindow:function(){let e=this.hot?.getSelectedRange()?.clone().normalize();if(!e||!this.sheet)return;let t=this.sheet.findSuggestionDataRange(e);t&&this.hot.selectRanges([t.toArray()],void 0);let i=t?T.pt.toLabel(t,this.sheet):"";(0,et.hy)(tA,{initRange:i})},showInsertImageWindow:function(){SYNO.SDS.Office.GetWindow().getAction().uploadImage()},insertImage:function(e,t){A.rb.getAction().insertImage(this.sheet.sheetId,e,t)},resizeImage:function(e,t){A.rb.getAction().resizeImage(this.sheet.sheetId,e,t)},removeImage:function(e){A.rb.getAction().removeImage(this.sheet.sheetId,e)},addCf:function(e){return A.rb.getAction().addCf(this.sheet.sheetId,e)},updateCf:function(e,t){return A.rb.getAction().updateCf(this.sheet.sheetId,e,t)},reorderCf:function(e,t){return A.rb.getAction().reorderCf(this.sheet.sheetId,e,t)},removeCf:function(e){return A.rb.getAction().removeCf(this.sheet.sheetId,e)},showDefineWindow:function(){(0,et.hy)(rj)},createDefinedName:function(e,t){A.rb.getAction().createDefinedName(e,t)},removeDefinedName:function(e,t){A.rb.getAction().removeDefinedName(e,t)},modifyDefinedName:function(e,t,i){A.rb.getAction().modifyDefinedName(e,t,i)},showSplitTextWindow:function(){let e,t=A.rb.getView().getMultiSelectedRange();t.length>1&&(e="error_multi_select");let i=t[0]?.clone().normalize();if((!i||this.sheet.isEmptyRange(i))&&(e="error_empty_select"),i.getWidth()>1&&(e="error_multi_col_select"),e)return tJ((0,N.$)("split_text",e));let n=this.owner.findAppWindow().getSheetEditorClientRect(),o=this.hot.selectionView.getSelectionScreenRects(this.hot.selections.multiSelections.getActive()),r=Math.max(...(o=o.filter(e=>e)).map(e=>e.top)),a=Math.max(...o.map(e=>e.left)),s=Math.min(...o.map(e=>e.right)),l=Math.min(...o.map(e=>e.bottom)),c=a-480>=n.left&&a<=n.right?a-480:s,d=r-158>=n.top&&r<=n.bottom?r-158:l;c=Math.max(n.left,Math.min(c,n.right-480)),d=Math.max(n.top,Math.min(d,n.bottom-158));let u=new SYNO.SDS.Office.Sheet.SplitTextWindow({owner:this.owner,hot:this.hot});u.setPosition(c,d),u.setSize(480,"auto"),u.show()},showPreferenceWindow:function(){(0,et.hy)(rQ)},getSearchWindow:function(){if(this.searchWindow&&!this.searchWindow.isDestroyed)return this.searchWindow},showSearchWindow:function(e){this.getSearchWindow()||(this.searchWindow=new SYNO.SDS.Office.Sheet.SearchWindow({owner:this.owner,readonly:this.isReadonly()})),this.searchWindow.show(),e&&this.searchWindow.showMoreOptions()},showRemoveDuplicatesWindow:function(){let{range:e,suggestRange:t}=A.rb.getAction().getRemoveDuplicatesRanges()||{};e&&new SYNO.SDS.Office.Sheet.RemoveDuplicatesWindow({sheet:this.sheet,hot:this.hot,range:e,suggestRange:t}).show()},createNewChart:function(){var e=this.hot.getMultiSelectedRange();if(0===e.length)e=[(0,T.MT)(0,0,0,0)];else if(1===e.length){if(e[0].isSingle()){let t=this.sheet.getNonEmptyNeighborRange(e[0].toArray());e[0]=(0,T.MT)(...t)}}else e.sort(function(e,t){var i=e.getTopLeftCorner(),n=t.getTopLeftCorner();return i.row!==n.row?i.row-n.row:i.col-n.col});var t={displayRange:e.map((function(e){return T.pt.toLabel(e,this.sheet)}).bind(this)).join(","),plotArea:{switchRowColumn:e[0].getHeight()>e[0].getWidth(),useRowHeader:!0,useColumnHeader:!0}},i=this.hot.view;let n=i.getScrollTop()+24,o=i.getScrollLeft()+40,r=this.hot.getPlugin("synoDrawingController").createDrawingPosition({top:n,left:o,height:410,width:560});this.insertChart((0,T.O1)(),r,t)},insertChart:function(e,t,i){A.rb.getAction().insertChart(this.sheet.sheetId,e,t,i)},adjustChart:function(e,t){A.rb.getAction().adjustChart(this.sheet.sheetId,e,t)},removeChart:function(e){A.rb.getAction().removeChart(this.sheet.sheetId,e)},convertChartToImage:function(e,t){A.rb.getAction().convertChartToImage(this.sheet.sheetId,e,t)},replaceAll:async function(e,t){let i=await A.rb.getAction().replaceAll(e);return this.reFocus(),i},showResizeDialog:function(e){var t=this.hot.getMultiSelectedRange();this.onBeforeDialogShow(t)&&new SYNO.SDS.Office.Sheet.ResizeDialog({owner:this.owner,type:e,ranges:t}).show()},resizeRows:async function(e,t){await A.rb.getAction().resizeRows(this.sheet.sheetId,e,t),this.reFocus()},resizeCols:async function(e,t){await A.rb.getAction().resizeCols(this.sheet.sheetId,e,t),this.reFocus()},showInsertDialog:function(e){var t=this.hot.getSelectedRange();this.onBeforeDialogShow(t)&&new SYNO.SDS.Office.Sheet.InsertMultiDialog({owner:this.owner,type:e,range:t}).show()},applyInsertRowCol:async function(e,t,i){let n=await A.rb.getAction().applyInsertRowCol(this.sheet.sheetId,e,t,i,t-1);return this.reFocus(),n},updateExternal:async function(e,t){await A.rb.getAction().updateExternal(e,t),await A.rb.getAction().clearEmptyExternalLinks()},clearEmptyExternalLinks:async function(){await A.rb.getAction().clearEmptyExternalLinks()},unlinkExternal:async function(e){await A.rb.getAction().unlinkExternal(e),await A.rb.getAction().removeExternalLinks(e)},showLinkFloat:function(e,t){let i=this.hot.getCellBound(e,t);this.linkFloat.alignToCell(i,this.sheet,e,t)},hideLinkFloat:function(){this.linkFloat.hide()},notifyFloatPanelMouseOver:function(e,t,i){let n=this.hot.view.toPageBound({...i});this.floatPanelMgr.showPanels("onCellMouseOver",e,t,n),this.linkFloat.alignToCell(n,this.sheet,e,t)},afterOnCellMouseOver:function(e,t,i,n){if(this.cellHistoryPanel.hidden){var o=i?i.from:t;this.notifyFloatPanelMouseOver(o.row,o.col,n)}},afterScroll:function(){this.floatPanelMgr.updatePanels("afterScroll",this.hot.view),this.rearrangeCellHistoryPanel(),this.datePicker.hidden||(this.datePicker.hide(),this.reFocus())},reFocus:function(e){if(this.hot){let t=this.hot.getActiveEditor();t.isOpened()&&t.input.pair.getSelection().isSelectionInEditor()||this.hot.focusInputField(e)}},selectColumns:function(){var e=this.hot.getSelectedRange();e&&this.hot.selectCell(0,e.from.col,this.sheet.countRows()-1,e.to.col,!1)},selectRows:function(){var e=this.hot.getSelectedRange();e&&this.hot.selectCell(e.from.row,0,e.to.row,this.sheet.countCols()-1,!1)},selectAll:function(){this.hot.selectCell(0,0,this.sheet.countRows()-1,this.sheet.countCols()-1,!1)},fillFromTopLeft:function(e){if(!this.isReadonly()){var t=this.hot.getSelectedRange();if(t&&this.hot.selections.multiSelections.isMultiple()){var i=(t=t.clone().normalize()).getTopLeftCorner(),n=t.getBottomRightCorner();"down"===e?t.to.row=t.from.row:"right"===e?t.to.col=t.from.col:"all"===e&&(t.to.row=t.from.row,t.to.col=t.from.col),A.rb.getAction().autofill(this.sheet.sheetId,i,n,t)}}},showCopyPasteTip:function(){this.hot.getPlugin("synoCopyPaste").reset(),this.getMainPanel().showExtensionInstallationMsg("copypaste")},cancelCopy:function(){this.hot.getPlugin("synoCopyPaste").reset()},removeActiveDrawing:function(){return this.hot.getPlugin("synoDrawingController").removeActiveDrawing()},copyFormat:function(e){let t=this.hot,i=t.getPlugin("synoCopyPaste").getCopyFormatController();!1===e?i.cancelInteractive(t):i.interactive(t,e)},insertFunction:async function(e){let t,i,n=this.hot.getSelectedRange()?.clone().normalize();if(!n)return;let o=async e=>{var t=n.from;return e||(1===n.getHeight()?(n.to.col+1>=this.sheet.getWorkbook().getAvailableMaxCol(this.sheet.sheetId)||n.to.col+1>=this.sheet.countCols()&&(await this.applyInsertRowCol("insert_col",n.to.col+1,1),await this.hot.forceUpdate()),t={row:n.from.row,col:n.to.col+1}):(n.to.row+1>=this.sheet.getWorkbook().getAvailableMaxRow(this.sheet.sheetId)||n.to.row+1>=this.sheet.countRows()&&(await this.applyInsertRowCol("insert_row",n.to.row+1,1),await this.hot.forceUpdate()),t={row:n.to.row+1,col:n.from.col})),t},r=n.isSingle(),a=this.hot.getActiveEditor(),s=await o(r),{content:l,pos:c}=(i="="+e+"(",r?(i+=")",t=i.length-1):(i+=T.pt.toLabel(n)+")",t=i.length),{content:i,pos:t});this.hot.selectCell(s.row,s.col,s.row,s.col,!1),a.beginEditing(s,"",!1,"function"),a.isOpened()&&(a.getActiveInput()?.clearSavedSelection(),a.setValue(l,{syncPair:!0,caretPosition:c}))},initCustomFormatItems:function(){if(!(0,eK.isMobileLayout)()){var e=this.owner.findAppWindow();e.getWebAPI().listMruFcAsync().then((function(t){e.getMainPanel().getFormatMenu().initCustomFormatItems(t),this.contextMenu.getFormatMenu().initCustomFormatItems(t)}).bind(this)).catch(Ext.emptyFn)}},initUILocale:function(e,t){if(!(0,eK.isMobileLayout)()){var i=this.owner.findAppWindow();i.getMainPanel().getFormatMenu().initLocale(t),this.contextMenu.getFormatMenu().initLocale(t),i.getMainPanel().getIconicontbar().initLocale(t)}},updateCustomFormat:function(e,t){if(!(0,eK.isMobileLayout)()){var i=this.owner.findAppWindow();i.getWebAPI().createMruFcAsync(e).catch(Ext.emptyFn),i.getMainPanel().getFormatMenu().updateCustomFormat(e,t),this.contextMenu.getFormatMenu().updateCustomFormat(e,t)}},_adjustDecimal:function(e){var t=this.hot,i=t.sheet,n=function(){var e=t.selections.multiSelections.getHighlightCoord();if(e)return n(e.row,e.col)||(e=null,(0,T.vl)(t.getMultiSelectedRange(),function(t,i){if(n(t,i))return e={row:t,col:i},!1},e=>i.isFilteredRow(e))),e;function n(e,t){return"number"==typeof i.getCellFormulaValue(e,t)}}();if(n){var o=this._inferFormatCode(i,n.row,n.col);o&&this.setFormat(e(o))}},_inferFormatCode:function(e,t,i){var n=(0,T.ff)(e,t,i);if(n)return n;var o=e.getCellTextDesc(t,i)?.v??"",r=/^-?(\d+(?:\.\d+)?|\.\d+)([Ee][+-]?\d+)?$/.exec(o);if(null===r)return"";var a=r[1].split(".")[1];return"0"+(a?"."+"0".repeat(a.length):"")+(r[2]?"E+00":"")},decreaseDecimal:function(){return this._adjustDecimal(r$.Z.decreaseDecimal)},increaseDecimal:function(){return this._adjustDecimal(r$.Z.increaseDecimal)},onBeforeDialogShow:function(e){return!(!e||Array.isArray(e)&&0===e.length)||(this.reFocus(),!1)},isReadonly:function(){return A.rb.getWorkbook().isReadonly()},isPivotTableEnabled:function(){return!!SYNO.SDS.Office.Define.Info?.sheet_pivot_table_enabled},getSynoCore:function(){return A.rb.getView()},getValidationMenu:function(){return this.validMenu},getChartMenu:function(){return this.chartMenu},getImageFloat:function(){return this.imageFloat},getDatePicker:function(){return this.datePicker},getContextMenu:function(){return this.contextMenu}});var r3=i(45630);i(84098),Ext.define("SYNO.SDS.Office.Sheet.FileMenu",{extend:"SYNO.SDS.Office.FileMenu",constructor:function(e){SYNO.SDS.Office.FileMenu.prototype.constructor.apply(this,arguments)},getMenuFileItem:function(){let e=SYNO.SDS.Office.FileMenu.prototype.getMenuFileItem.apply(this,arguments),t=e.findIndex(e=>"export"===e.itemId);return e.splice(t,0,this.createSimpleMenuItem("spreadsheet_settings",function(){this.findAppWindow().getAction().settingNode()})),e},getExportItems:function(){let e=SYNO.SDS.Office.FileMenu.prototype.getExportItems.apply(this,arguments);return e.push(this.createExportMenuItem("csv")),e},getExportText:function(e,t){return"csv"===t?SYNO.SDS.Office._T("file","to_csv"):SYNO.SDS.Office.FileMenu.prototype.getExportText.call(this,e,t)}}),Ext.define("SYNO.SDS.Office.Sheet.FormatWindow",{extend:"SYNO.SDS.Drive.ModalWindow",DEFAULT_NUMBER:1234.5678,DEFAULT_DATETIME:33389.25352,constructor:function(e){SYNO.SDS.Drive.ModalWindow.prototype.constructor.call(this,Ext.apply({cls:"syno-o-sh-format-window",width:448,resizable:!1,buttons:[{xtype:"syno_button",itemId:"cancel_button",text:SYNO.SDS.Office._T("common","cancel"),listeners:{scope:this,click:this.onCancel}},{xtype:"syno_button",itemId:"apply_button",disabled:!0,btnStyle:"default",text:SYNO.SDS.Office._T("common","ok"),listeners:{scope:this,click:this.onApply}}]},e))},_getSSF:function(){return A.rb.getWorkbook().getLocale().getSSF()}}),Ext.define("SYNO.SDS.Office.Sheet.CurrencyFormatWindow",{extend:"SYNO.SDS.Office.Sheet.FormatWindow",constructor:function(e){SYNO.SDS.Office.Sheet.FormatWindow.prototype.constructor.call(this,this.fillConfig(e))},fillConfig:function(e){return Ext.apply({title:SYNO.SDS.Office._T("handsontable","custom_currency"),height:521,layout:"fit",items:this.getGridPanel()},e)},getGridPanel:function(){return this.gridPanel||(this.gridPanel=new SYNO.ux.GridPanel({hideHeaders:!0,store:this.getCurrencyStore(),tbar:[{xtype:"syno_compositefield",cls:"syno-o-sh-format-search",defaultMargins:0,items:[this.getDropdown(),this.getTextFilter()]}],sm:new Ext.grid.RowSelectionModel({singleSelect:!0}),cm:new Ext.grid.ColumnModel({columns:[{dataIndex:"name"},{dataIndex:"symbol",align:"right",renderer:(function(e){return this._getSSF().render("[$"+e+"]#,##0.00",this.DEFAULT_NUMBER)}).bind(this)}]}),listeners:{scope:this,rowclick:function(e,t){var i=e.store.getAt(t),n=i.get("locale"),o=i.get("symbol"),r=this.createDropdownData(n,o);this.getDropdown().getStore().loadData(r),r.length>0&&(this.getDropdown().setValue(r[0][0]),this.getDropdown().setDisabled(!1),this.getFooterToolbar().getComponent("apply_button").setDisabled(!1))}}}))},getDropdown:function(){return this.dropdown||(this.dropdown=new SYNO.ux.ComboBox({width:240,disabled:!0,store:new Ext.data.ArrayStore({autoDestroy:!0,fields:["fc","display"]}),valueField:"fc",displayField:"display",listeners:{scope:this,afterrender:function(e){e.wrap.addClass("syno-o-sh-format-dropdown-ct")}}}))},getTextFilter:function(){return this.textFilter||(this.textFilter=new SYNO.ux.TextFilter({width:160,margins:"0 0 0 8",store:this.getCurrencyStore(),queryDelay:10,localFilter:!0,localFilterField:[{scope:this,fn:function(e){var t=this.getTextFilter().getValue().toLocaleLowerCase(),i=e.get("name").toLocaleLowerCase(),n=e.get("locale").toLocaleLowerCase();return i.indexOf(t)>=0||n.indexOf(t)>=0}}]}))},createDropdownData:function(e,t){var i=this;return["[$"+t+"]#,##0.00","[$"+e+" "+t+"]#,##0.00","[$"+t+"]#,##0","#,##0.00[$"+t+"]","#,##0[$"+t+"]"].map(function(e){return[e,i._getSSF().render(e,i.DEFAULT_NUMBER)]})},getCurrencyStore:function(){return this.currencyStore||(this.currencyStore=new SYNO.API.Store({autoDestroy:!0,autoLoad:!0,proxy:new SYNO.API.Proxy({api:"SYNO.Office.Locale",method:"list_currency",version:1}),reader:new Ext.data.ArrayReader({root:"currencies",fields:["locale","symbol","name"]}),listeners:{load:function(e){var t=this._getSSF().getLocaleData().CURRENCY_SYM,i=e.findExact("symbol",t);if(i>-1){var n=e.getAt(i);e.remove(n),e.insert(0,n)}var o=this.getGridPanel();o.getSelectionModel().selectFirstRow(),o.fireEvent("rowclick",o,0)},scope:this}}))},onApply:function(){var e=this.getGridPanel().getSelectionModel().getSelected();if(e){var t=e.get("name"),i=this.getDropdown().getValue();i+=";[RED]-"+i,(0,A.c)().setFormat(i),(0,A.c)().updateCustomFormat(i,t)}this.close()}}),Ext.define("SYNO.SDS.Office.Sheet.DateTimeFormatWindow",{extend:"SYNO.SDS.Office.Sheet.FormatWindow",constructor:function(e){SYNO.SDS.Office.Sheet.FormatWindow.prototype.constructor.call(this,this.fillConfig(e))},fillConfig:function(e){return Ext.apply({title:SYNO.SDS.Office._T("handsontable","custom_date_time"),height:483,layout:"fit",items:this.getGridPanel()},e)},getGridPanel:function(){return this.gridPanel||(this.gridPanel=new SYNO.ux.GridPanel({hideHeaders:!0,store:this.getDateTimeStore(),sm:new Ext.grid.RowSelectionModel({singleSelect:!0}),cm:new Ext.grid.ColumnModel({columns:[{dataIndex:"fc",renderer:(function(e){return this._getSSF().render(e,this.DEFAULT_DATETIME)}).bind(this)}]}),listeners:{scope:this,rowclick:function(){this.getFooterToolbar().getComponent("apply_button").setDisabled(!1)}}}))},getDateTimeStore:function(){return new SYNO.API.Store({autoDestroy:!0,autoLoad:!0,baseParams:{locale:A.rb.getWorkbook().getLocale().getCode()},proxy:new SYNO.API.Proxy({api:"SYNO.Office.Locale",method:"list_datetime",version:1}),reader:new Ext.data.ArrayReader({root:"datetimes",fields:[{name:"fc",convert:function(e,t){return t}}]})})},onApply:function(){var e=this.getGridPanel().getSelectionModel().getSelected();if(e){var t=e.get("fc");(0,A.c)().setFormat(t),(0,A.c)().updateCustomFormat(t)}this.close()}}),Ext.define("SYNO.SDS.Office.Sheet.NumberFormatWindow",{extend:"SYNO.SDS.Office.Sheet.FormatWindow",constructor:function(e){SYNO.SDS.Office.Sheet.FormatWindow.prototype.constructor.call(this,this.fillConfig(e))},fillConfig:function(e){return Ext.apply({title:SYNO.SDS.Office._T("handsontable","custom_number"),autoHeight:!0,items:[this.getPreviewPanel(),this.getGridPanel()],listeners:{scope:this,afterrender:function(){var e=(0,A.c)().sheet,t=this.findAppWindow().getMainPanel().lastCoord;if(e&&t){var i=e.getComputedCellStyle(t.row,t.col);i&&i.getNumberFormat()&&i.getNumberFormat().fc&&this.getTextField().setValue(i.getNumberFormat().fc)}}}},e)},getPreviewPanel:function(){return this.previewPanel||(this.previewPanel=new SYNO.ux.FormPanel({cls:"syno-o-sh-format-preview-panel",padding:"0 0 16px 0",labelWidth:90,autoHeight:!0,items:[this.getTextField(),this.createDisplayField("example",{itemId:"positive"}),this.createDisplayField("negative",{hidden:!0}),this.createDisplayField("zero",{hidden:!0}),this.createDisplayField("text",{hidden:!0})]}))},getTextField:function(){return this.textField||(this.textField=new SYNO.ux.TextField({ctCls:"syno-o-sh-format-input-field-ct",anchor:"100%",hideLabel:!0,allowBlank:!1,enableKeyEvents:!0,validationDelay:50,validationEvent:"keyup",validator:this.formatCodeValidator.bind(this),listeners:{scope:this,valid:function(){this.getFooterToolbar().getComponent("apply_button").setDisabled(!1)},invalid:function(){this.getFooterToolbar().getComponent("apply_button").setDisabled(!0)}}}))},createDisplayField:function(e,t){return new SYNO.ux.DisplayField(Ext.apply({itemId:e,anchor:"100%",fieldLabel:SYNO.SDS.Office._T("handsontable",e)},t))},getGridPanel:function(){return this.gridPanel||(this.gridPanel=new SYNO.ux.GridPanel({height:370,hideHeaders:!0,store:this.getNumberFormatStore(),viewConfig:{forceFit:!0},sm:new Ext.grid.RowSelectionModel({singleSelect:!0}),cm:new Ext.grid.ColumnModel({columns:[{dataIndex:"fc",width:200},{dataIndex:"fc",align:"right",width:100,renderer:(function(e){return this._getSSF().render(e,this.DEFAULT_NUMBER)}).bind(this)}]}),listeners:{scope:this,viewready:function(e){e.getView().updateScroller()},rowclick:function(e,t){var i=e.store.getAt(t);this.getTextField().setRawValue(i.get("fc")),this.getTextField().validate()}}}))},getNumberFormatStore:function(){return new Ext.data.ArrayStore({autoDestroy:!0,fields:["fc"],data:[["0"],["0.00"],["#,##0"],["#,##0.00"],["#,##0;(#,##0)"],["#,##0;[Red](#,##0)"],["#,##0.00;(#,##0.00)"],["#,##0.00;[Red](#,##0.00)"],["[Blue]#,##0.00;[Red](#,##0.00);0.00;@"],["0%"],["0.00%"],["0.00E+00"],["##0.0E+0"],["# ?/?"],["# ??/??"],["@"]]})},formatCodeValidator:function(e){var t,i,n=SYNO.SDS.Office._T,o=e.split(";").length,r=n("handsontable",o>1?"positive":"example");this.getPreviewPanel().getComponent("positive").label.update(r+_T("common","colon"));var a=[{name:"positive",value:this.DEFAULT_NUMBER},{name:"negative",value:-this.DEFAULT_NUMBER},{name:"zero",value:0},{name:"text",value:n("handsontable","text")}];a.forEach(function(e){e.field=this.getPreviewPanel().getComponent(e.name),e.field.hide()},this);try{var s=this._getSSF();for(t=0;t<o;t++)i=s.format(e,a[t].value),a[t].field.setValue(i.v),a[t].field.getEl().setStyle("color",i.c?"#"+i.c:""),a[t].field.show();return!0}catch{for(t=0;t<Math.min(o,a.length);t++)a[t].field.setValue(n("handsontable","invalid_format")),a[t].field.getEl().setStyle("color",""),a[t].field.show()}return!1},onApply:function(){var e=this.getTextField().getValue();(0,A.c)().setFormat(e),(0,A.c)().updateCustomFormat(e),this.close()}});var r4=i(40109);function r5(){SYNO.SDS.Office.GetWindow().getMainPanel().getHandsonPanel().filterViewFocusName()}function r6(){SYNO.SDS.Office.GetWindow().getMainPanel().getHandsonPanel().filterViewFocusRange()}function r8(){let e=at();if(!e||!e.range)return;let t=(0,eX.format)((0,N.$)("worksheet","title_copy"),e.name);(0,A.c)().createFilterView(t,(0,T.MT)(...e.range))}function r7(){let e=at();e&&(0,A.c)().disableFilter(e.id)}function r9(){let e=at();e&&new SYNO.SDS.Office.CopyLinkDialog({copy_url:location.origin+location.pathname+location.search+`#tid=${ae()?.id}&fvid=${e.id}`,desc:(0,N.$)("sheet","filter_view_link_label"),owner:SYNO.SDS.Office.GetWindow()}).show()}function ae(){return(0,A.uD)().value?.getWorkbook().getCurrentSheet()}function at(){let e=ae()?.getFilterPlugin();return e&&e.isInViewState()?e.getActiveFilterJSON():null}Ext.define("SYNO.SDS.Office.Sheet.FormatMenu",{extend:"SYNO.SDS.Office.Menu",DEFAULT_NUMBER:1234.5678,cellFormat:{general:null,plain_text:"@",number:"#,##0.00",percent:"0.00%",financial:"#,##0.00;[RED](#,##0.00)",currency:'"$"#,##0.00;[RED]-"$"#,##0.00',accounting:'"$"#,##0.00;("$"#,##0.00);"$" "-"',date:"M/d/yyyy",time:"[h]:mm:ss"},constructor:function(e){this.mainPanel=e.mainPanel,SYNO.SDS.Office.Menu.prototype.constructor.call(this,this.fillConfig(e)),this.customItemIndex=this.items.indexOf(this.getComponent("mru_separator")),this.customItemCount=0},fillConfig:function(e){return Ext.apply({cls:"syno-o-check-menu syno-o-sh-format-menu",items:[this.createDefaultFormatMenuItem("general",""),this.createDefaultFormatMenuItem("plain_text",""),"-",this.createDefaultFormatMenuItem("number",2016.8765),this.createDefaultFormatMenuItem("percent",.8765),"-",this.createDefaultFormatMenuItem("accounting",-2016.8765),this.createDefaultFormatMenuItem("financial",-2016.8765),this.createDefaultFormatMenuItem("currency",2016.8765),"-",this.createDefaultFormatMenuItem("date",33389),this.createDefaultFormatMenuItem("time",.25352),{xtype:"menuseparator",itemId:"mru_separator",hidden:!0},"-",this.mainPanel.createSimpleMenuItem("custom_currency",this.onChangeCurrencyFormat),this.mainPanel.createSimpleMenuItem("custom_date_time",this.onChangeDateTimeFormat),this.mainPanel.createSimpleMenuItem("custom_number",this.onChangeNumberFormat)],listeners:{scope:this,beforeshow:function(e){var t=(0,A.c)(),i=this.mainPanel.lastCoord;if(t.sheet&&i){var n=t.sheet.getComputedCellStyle(i.row,i.col).getNumberFormat();e.items.each(function(e){if(e.setChecked){var t=e.formatCode,i=n.isDefault()?this.cellFormat.general:n.fc;if(!(0,T.LN)(t,i))return e.setChecked(!0),!1;e.setChecked(!1)}},e)}}}},e)},initCustomFormatItems:function(e){e.forEach(function(e){this.updateCustomFormat(e.fc)},this)},updateCustomFormat:function(e,t){var i=this.DEFAULT_NUMBER;this.insertFormatMenuItem(this.createFormatMenuItem(e,i,{text:t||e}))},createDefaultFormatMenuItem:function(e,t){return this.createFormatMenuItem(this.cellFormat[e],t,{itemId:e,isDefaultFormatItem:!0,text:SYNO.SDS.Office._T("handsontable",e)})},createFormatMenuItem:function(e,t,i){return Ext.apply({text:e,formatCode:e,checked:!1,group:"cell_format",scope:this,handler:this.onFormatMenuItemClick,listeners:{scope:this,render:function(e){e.isDefaultFormatItem&&(e.formatCode=this.cellFormat[e.getItemId()]);var i=A.rb.getWorkbook().getLocale().getSSF().render(e.formatCode,t)||"";(0,r4.s6)(i,e)}}},i)},insertFormatMenuItem:function(e){this.getComponent("mru_separator").show(),this.insert(this.customItemIndex+1,e),this.customItemCount++;for(var t=this.customItemCount;t>1;t--){var i=this.getComponent(this.customItemIndex+t);i.formatCode===e.formatCode&&(this.remove(i),this.customItemCount--)}for(;this.customItemCount>3;)this.remove(this.customItemIndex+this.customItemCount),this.customItemCount--},initLocale:function(e){var t,i,n,o,r=e.currency_format;this.cellFormat.date=e.short_date,this.cellFormat.time=e.long_time,this.cellFormat.currency=(1===(t=r.split(";")).length?t.push("[RED]-"+t[0]):t[1]="[RED]"+t[1],t.join(";")),this.cellFormat.accounting=(n=(i=r.split(";")[0]).match(/\[.+\]/)[0],o=i.replace(n,"\xa4").replace(/[#,.0]+/,'"-"').replace("\xa4",n),i+";("+i+");"+o)},onFormatMenuItemClick:function(e){this.mainPanel.findAppWindow().sheetmgr.setFormat(e.formatCode)},onChangeCurrencyFormat:function(){new SYNO.SDS.Office.Sheet.CurrencyFormatWindow().show()},onChangeDateTimeFormat:function(){new SYNO.SDS.Office.Sheet.DateTimeFormatWindow().show()},onChangeNumberFormat:function(){new SYNO.SDS.Office.Sheet.NumberFormatWindow().show()}}),i(42056),i(67929);let ai=(0,M.defineComponent)({__name:"FilterViewToolbar",setup(e,t){let{expose:i}=t,n=(0,M.ref)(""),o=(0,M.ref)(""),r=(0,M.ref)(null),a=(0,M.ref)(null),s=(0,M.ref)(""),{editable:l}=(0,to.storeToRefs)((0,k.eL)()),{range:c,handler:d}=ej("",(0,M.ref)(null),{title:(0,N.$)("filter","filter_view"),hot:(0,A.O3)(),rangeScope:!1},"c->c",f),u=(0,M.computed)(()=>{let e=(0,A.uD)();if(!e.value)return null;let t=e.value.getWorkbook().getFilterStore();return t.isInViewState?t.activeFilter:null}),h=(0,M.computed)(()=>u.value?.isPrivate??!1);function p(){let e=ae()?.getFilterPlugin().getActiveFilterJSON()?.id;e&&s.value?(n.value=s.value,(0,A.c)().updateFilterViewName(e,n.value)):s.value=n.value}async function f(){let e=ae();if(!e)return;let t=e.getFilterPlugin().getActiveFilterJSON()?.id,i=T.pt.textToRange(c.value,e);t&&i&&await (0,A.c)().updateFilterViewRange(t,i)||(c.value=o.value)}function g(e){"Enter"===e.key&&(r.value?.setBlur(),a.value?.setBlur(),(0,A.c)().reFocus())}function m(){(0,A.c)().setActiveFilterView(null)}function v(){r.value?.setFocus()}function b(){a.value?.setFocus()}return(0,M.watch)(u,e=>{e&&e.range&&(n.value=s.value=e.name,o.value=c.value=T.pt.toLabel((0,T.MT)(...e.range)))}),i({handleFocusName:v,handleFocusRange:b}),(e,t)=>((0,M.openBlock)(),(0,M.createElementBlock)("div",{class:(0,M.normalizeClass)(e.$style.root)},[(0,M.createElementVNode)("label",{class:(0,M.normalizeClass)([e.$style.label,e.$style["label-name"]])},(0,M.toDisplayString)((0,M.unref)(N.$)("common","name")+(0,M.unref)(N.$)("common","colon")),3),(0,M.createVNode)((0,M.unref)(ed.Z),{ref_key:"nameInput",ref:r,modelValue:s.value,"onUpdate:modelValue":t[0]||(t[0]=e=>s.value=e),"syno-id":"filter-view-input-name",readonly:!(0,M.unref)(l)||h.value,"icon-disabled":!(0,M.unref)(l),class:(0,M.normalizeClass)([e.$style["input-name"]]),onBlur:p,onKeydown:g},null,8,["modelValue","readonly","icon-disabled","class"]),(0,M.createElementVNode)("label",{class:(0,M.normalizeClass)([e.$style.label,e.$style["label-range"]])},(0,M.toDisplayString)((0,M.unref)(N.$)("sheet","sel_range")+(0,M.unref)(N.$)("common","colon")),3),(0,M.createVNode)((0,M.unref)(eG),{ref_key:"rangeInput",ref:a,modelValue:(0,M.unref)(c),"onUpdate:modelValue":t[1]||(t[1]=e=>(0,M.isRef)(c)?c.value=e:null),class:(0,M.normalizeClass)([e.$style["input-range"]]),"icon-cls":e.$style["trigger-icon"],readonly:!(0,M.unref)(l),"icon-disabled":!(0,M.unref)(l),onBlur:f,onKeydown:g,onClickIcon:(0,M.unref)(d)},null,8,["modelValue","class","icon-cls","readonly","icon-disabled","onClickIcon"]),(0,M.createVNode)(ez.Z,{"syno-id":"filter-view-setting-button",class:(0,M.normalizeClass)(e.$style["setting-button"]),"icon-cls":e.$style["setting-icon"],disabled:!(0,M.unref)(l)||h.value},{default:(0,M.withCtx)(()=>[(0,M.createVNode)((0,M.unref)(oS.Z),{"syno-id":"filter-view-menu","focus-trigger-when-closed":!1},{default:(0,M.withCtx)(()=>[(0,M.createVNode)((0,M.unref)(tt.Z),{"syno-id":"filter-view-menu-item-rename",title:(0,M.unref)(N.$)("sheet","rename"),onClick:v},null,8,["title"]),(0,M.createVNode)((0,M.unref)(tt.Z),{"syno-id":"filter-view-menu-item-update-range",title:(0,M.unref)(N.$)("filter","update_range"),onClick:b},null,8,["title"]),(0,M.createVNode)((0,M.unref)(tt.Z),{"syno-id":"filter-view-menu-item-duplicate",title:(0,M.unref)(N.$)("sheet","duplicate"),onClick:(0,M.unref)(r8)},null,8,["title","onClick"]),(0,M.createVNode)((0,M.unref)(tt.Z),{"syno-id":"filter-view-menu-item-delete",title:(0,M.unref)(N.$)("common","delete"),onClick:(0,M.unref)(r7)},null,8,["title","onClick"]),(0,M.createVNode)((0,M.unref)(iH.Z),{"syno-id":"filter-view-menu-divider"}),(0,M.createVNode)((0,M.unref)(tt.Z),{"syno-id":"filter-view-menu-item-get-link",title:(0,M.unref)(N.$)("comment","get_link"),onClick:(0,M.unref)(r9)},null,8,["title","onClick"])]),_:1})]),_:1},8,["class","icon-cls","disabled"]),(0,M.createVNode)(ez.Z,{"syno-id":"filter-view-close-button",class:(0,M.normalizeClass)(e.$style["close-button"]),"icon-cls":e.$style["close-icon"],onClick:m},null,8,["class","icon-cls"])],2))}});var an=i(34845),ao=i.n(an);let ar={};ar.$style=ao();let aa=(0,q.default)(ai,[["__cssModules",ar]]);Ext.define("SYNO.SDS.Office.Sheet.FilterViewSettingMenu",{extend:"SYNO.SDS.Office.Menu",constructor:function(e){SYNO.SDS.Office.Menu.prototype.constructor.call(this,this.fillConfig(e))},fillConfig:function(e){var t={items:[{text:(0,N.$)("sheet","rename"),handler:r5},{text:(0,N.$)("filter","update_range"),handler:r6},{text:(0,N.$)("sheet","duplicate"),handler:r8},{text:(0,N.$)("common","delete"),handler:r7},"-",{text:(0,N.$)("comment","get_link"),handler:r9}]};return Ext.apply(t,e)}}),Ext.define("SYNO.SDS.Office.Sheet.FilterViewMenu",{extend:"SYNO.SDS.Office.Menu",constructor:function(e){SYNO.SDS.Office.Menu.prototype.constructor.call(this,this.fillConfig(e))},fillConfig:function(e){var t={cls:"syno-o-confined-menu syno-o-sh-filter-menu",items:[{text:(0,N.$)("filter","create_filter_view"),itemId:"new",handler:this.onCreateNewFilterView.bind(this)},{text:(0,N.$)("filter","filter_view_option"),itemId:"options",menu:new SYNO.SDS.Office.Sheet.FilterViewSettingMenu({})},this.separator=new Ext.menu.Separator,{text:(0,N.$)("condition","none"),itemId:"none",handler:this.onCloseFilterView.bind(this)}],listeners:{scope:this,beforeshow:this.adjustItem,show:this._addItemTooltip}};return Ext.apply(t,e)},listFilterViewInfo:function(){var e=A.rb.getWorkbook().getCurrentSheet();return e?e.getFilterPlugin().listFilterViewInfo():[]},adjustItem:function(){let e=A.rb.getWorkbook().getCurrentSheet();if(!e)return;let t=e.getFilterPlugin(),i=t.isInViewState(),n=SYNO.SDS.Office.Utils.isEditable(),o=this.listFilterViewInfo(),r=!!t.getActiveFilterJSON()?.isPrivate;if(!n&&0===o.length)return!1;this.getComponent("new").setVisible(n),this.getComponent("options").setVisible(n).setDisabled(!i||r),this.separator.setVisible(n&&o.length>0),this.getComponent("none").setVisible(i);let a=i?t.getActiveFilterJSON().id:null;for(let e=0;e<o.length;e++){let t=this.get(e+4);t?(t.setText(o[e].name),t.filterId=o[e].id,t.setChecked(a===o[e].id)):this.addMenuItem({text:o[e].name,checked:a===o[e].id,filterId:o[e].id,scope:this,handler:this.onFilterViewItemClick})}for(;this.items.length>o.length+4;)this.remove(this.items.length-1)},_addItemTooltip:function(){for(var e=4;e<this.items.length;e++){var t=this.get(e);if(t.text){var i=t.textEl.dom;Ext.util.TextMetrics.measure(t.textEl,t.text).width>240?i.setAttribute("ext:qtip",Ext.util.Format.htmlEncode(t.text)):i.removeAttribute("ext:qtip")}}},onCreateNewFilterView:function(){var e="";let t=A.rb.getWorkbook().getCurrentSheet().getFilterPlugin().listFilterViewInfo();for(var i=!1,n=0;!i;){i=!0,n+=1,e=String.format((0,N.$)("filter","untitled_name"),n);for(var o=0;o<t.length;o++)if(e===t[o].name){i=!1;break}}(0,A.c)().createFilterView(e)},onCloseFilterView:function(){(0,A.c)().setActiveFilterView(null)},onFilterViewItemClick:function(e){(0,A.c)().setActiveFilterView(e.filterId)}}),i(94136);let as=SYNO.SDS.Utils.ClipBoardButton;var al=i.n(as);let ac=["width","height"],ad=(0,M.defineComponent)({name:"vIconSheetRtl",props:{width:{type:[Number,String],default:24},height:{type:[Number,String],default:24}}}),au=(0,q.default)(ad,[["render",function(e,t,i,n,o,r){return(0,M.openBlock)(),(0,M.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e.width,height:e.height},t[0]||(t[0]=[(0,M.createElementVNode)("path",{"fill-rule":"evenodd",d:"M12 6H8v3h4V6Zm0-1h6v9H7V5h5Zm1 8h4v-3h-4v3Zm-1-3v3H8v-3h4Zm1-1h4V6h-4v3Zm-3 8h8v2h-8v2l-4-3 2.301-1.726L10 15v2Z","clip-rule":"evenodd"},null,-1)]),8,ac)}]]),ah=["width","height"],ap=(0,M.defineComponent)({name:"vIconCellRtl",props:{width:{type:[Number,String],default:24},height:{type:[Number,String],default:24}}}),af=(0,q.default)(ap,[["render",function(e,t,i,n,o,r){return(0,M.openBlock)(),(0,M.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e.width,height:e.height},t[0]||(t[0]=[(0,M.createStaticVNode)('<g clip-path="url(#36501094f1237eeb92361c35752068f6__a)"><mask id="36501094f1237eeb92361c35752068f6__b"><path fill-rule="evenodd" d="M9.5 5a3 3 0 0 0 0 6H11v3h1V6h2v8h1V6h2V5H9.5ZM11 6H9.5a2 2 0 1 0 0 4H11V6ZM6 18l4 3v-2h8v-2h-8v-2l-4 3Z" clip-rule="evenodd"></path></mask><path fill-rule="evenodd" d="M9.5 5a3 3 0 0 0 0 6H11v3h1V6h2v8h1V6h2V5H9.5ZM11 6H9.5a2 2 0 1 0 0 4H11V6ZM6 18l4 3v-2h8v-2h-8v-2l-4 3Z" clip-rule="evenodd"></path><path d="M11 11h1v-1h-1v1Zm0 3h-1v1h1v-1Zm1 0v1h1v-1h-1Zm0-8V5h-1v1h1Zm2 0h1V5h-1v1Zm0 8h-1v1h1v-1Zm1 0v1h1v-1h-1Zm0-8V5h-1v1h1Zm2 0v1h1V6h-1Zm0-1h1V4h-1v1Zm-6 1h1V5h-1v1Zm0 4v1h1v-1h-1Zm-1 11-.6.8L11 23v-2h-1Zm-4-3-.6-.8-1.067.8 1.067.8.6-.8Zm4 1v-1H9v1h1Zm8 0v1h1v-1h-1Zm0-2h1v-1h-1v1Zm-8 0H9v1h1v-1Zm0-2h1v-2l-1.6 1.2.6.8ZM7.5 8a2 2 0 0 1 2-2V4a4 4 0 0 0-4 4h2Zm2 2a2 2 0 0 1-2-2h-2a4 4 0 0 0 4 4v-2Zm1.5 0H9.5v2H11v-2Zm1 4v-3h-2v3h2Zm0-1h-1v2h1v-2Zm-1-7v8h2V6h-2Zm3-1h-2v2h2V5Zm1 9V6h-2v8h2Zm0-1h-1v2h1v-2Zm-1-7v8h2V6h-2Zm3-1h-2v2h2V5Zm-1 0v1h2V5h-2ZM9.5 6H17V4H9.5v2Zm0 1H11V5H9.5v2Zm-1 1a1 1 0 0 1 1-1V5a3 3 0 0 0-3 3h2Zm1 1a1 1 0 0 1-1-1h-2a3 3 0 0 0 3 3V9ZM11 9H9.5v2H11V9Zm-1-3v4h2V6h-2Zm.6 14.2-4-3-1.2 1.6 4 3 1.2-1.6ZM9 19v2h2v-2H9Zm9-1h-8v2h8v-2Zm-1-1v2h2v-2h-2Zm-7 1h8v-2h-8v2Zm-1-3v2h2v-2H9Zm-2.4 3.8 4-3-1.2-1.6-4 3 1.2 1.6Z" mask="url(#36501094f1237eeb92361c35752068f6__b)"></path></g><defs><clipPath id="36501094f1237eeb92361c35752068f6__a"><path d="M0 0h24v24H0z"></path></clipPath></defs>',2)]),8,ah)}]]),ag=["width","height"],am=(0,M.defineComponent)({name:"vIconCellLtr",props:{width:{type:[Number,String],default:24},height:{type:[Number,String],default:24}}}),av=(0,q.default)(am,[["render",function(e,t,i,n,o,r){return(0,M.openBlock)(),(0,M.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e.width,height:e.height},t[0]||(t[0]=[(0,M.createElementVNode)("g",{"clip-path":"url(#32e0193dd8c9d39bfaf9969c8e344dc5__a)"},[(0,M.createElementVNode)("path",{"fill-rule":"evenodd",d:"M6.5 8a3 3 0 0 1 3-3H17v1h-2v8h-1V6h-2v8h-1v-3H9.5a3 3 0 0 1-3-3Zm3-2H11v4H9.5a2 2 0 1 1 0-4ZM14 19v2l4-3-4-3v2H6v2h8Z","clip-rule":"evenodd"})],-1),(0,M.createElementVNode)("defs",null,[(0,M.createElementVNode)("clipPath",{id:"32e0193dd8c9d39bfaf9969c8e344dc5__a"},[(0,M.createElementVNode)("path",{d:"M0 0h24v24H0z"})])],-1)]),8,ag)}]]),ab="syno-sh-editor-comp";Ext.define("SYNO.SDS.Office.Sheet.Iconbar",{extend:"SYNO.SDS.Office.Iconbar",sectionTypeEnum:{TEXT:0},sectionEnum:(0,eK.isMobileLayout)()?{FONT_ATTR:0,ROW_COL_ACTION:1,ALIGNMENT:2,FONT_FAMILY:3,FONT_SIZE:4,COLOR:5,MIXED:6,HIDDEN:7}:{BASIC:0,COPY:1,ZOOM:2,FORMAT:3,FONT_FAMILY:4,FONT_SIZE:5,FONT_ATTR:6,BG_COLOR:7,ALIGNMENT:8,MIXED:9,RTL:10,AI:11,MORE:12},modeList:{readonly:[],comment:["zoom_combo","comments_add_edit","all_comment","focus_mode","ai_helper"],view:["zoom_combo","focus_mode","ai_helper"],edit:!0},templateHideList:["focus_mode"],constructor:function(e){this.owner=e.owner,this.zoomStore=eo(),this.hAlignStore=new Ext.data.ArrayStore({autoDestroy:!0,fields:["value","display","qtip"],data:[["left","",this.getTooltipStringAndHotkey("handsontable","align_left")],["center","",this.getTooltipStringAndHotkey("handsontable","align_center")],["right","",this.getTooltipStringAndHotkey("handsontable","align_right")]]}),this.vAlignStore=new Ext.data.ArrayStore({autoDestroy:!0,fields:["value","display","qtip"],data:[["top","",SYNO.SDS.Office._T("handsontable","align_top")],["middle","",SYNO.SDS.Office._T("handsontable","align_middle")],["bottom","",SYNO.SDS.Office._T("handsontable","align_bottom")]]}),this.textWrapStore=new Ext.data.ArrayStore({autoDestroy:!0,fields:["value","display","qtip"],data:[["overflow","",SYNO.SDS.Office._T("handsontable","overflow")],["wrap","",SYNO.SDS.Office._T("handsontable","wrap")],["clip","",SYNO.SDS.Office._T("handsontable","clip")]]}),this.toolbarClickFunc={undo:this.onUndoBtnClick,redo:this.onRedoBtnClick,paint_format:this.onPaintFormatBtnClick,clear_format:this.onClearFormatBtnClick,bold:this.onTextStyleBtnClick,italic:this.onTextStyleBtnClick,underline:this.onTextStyleBtnClick,strike:this.onTextStyleBtnClick,merge_cells:this.onMergeBtnClick,comments_add_edit:this.onCommentBtnClick,link:this.onLinkBtnClick,filter:this.onFilterBtnClick,filter_arrow:this.onFilterArrowBtnClick,chart:this.onChartBtnClick,image_format:this.onImageFormatBtnClick,rtl:this.onRtlBtnClick,cell_rtl:this.onCellRtlClick,cell_ltr:this.onCellLtrClick,all_comment:this.onAllCommentBtnClick,percent:this.onPercentageFormatClick,number:this.onCommaFormatClick,decrease_decimal:this.onDecreaseDecimalClick,increase_decimal:this.onIncreaseDecimalClick,insert_row:this.onRowColOpBtnClick,insert_col:this.onRowColOpBtnClick,delete_row:this.onRowColOpBtnClick,delete_col:this.onRowColOpBtnClick,ai_helper:this.onAskAiBtnClick},this.btns={},this.combos={},this.sectionType=this.sectionTypeEnum.TEXT,this.section=[],(0,eK.isMobileLayout)()?this.addMobileToolButtons():this.classifyTool(),this.moreSection=[],this.filterBtnStatus={hoverFilter:!1,hoverFilterArrow:!1,pressFilter:!1,pressFilterArrow:!1},SYNO.SDS.Office.Iconbar.prototype.constructor.call(this,this.fillConfig(e)),(0,eK.isMobileLayout)()&&(this.hideHiddenSectionItems(),(0,M.watch)(()=>(0,A.uD)().value?.getWorkbook().getCurrentSheet()?.isRtl(),e=>{let t=this.btns.insert_col?.btnEl.dom;t&&(e?t.classList.add("rtl"):t.classList.remove("rtl"))})),(0,M.watch)(()=>t2().enableRightToLeft,()=>{this.rendered&&this.rearrangeToolBar()}),(0,M.watch)(iU.$R,()=>{this.rendered&&this.rearrangeToolBar()})},getDefault:function(e){return SYNO.SDS.Office.Sheet.Define.ToolbarDefault[e]},onEditorModeChange:function(e){SYNO.SDS.Office.Iconbar.prototype.onEditorModeChange.call(this,e),(0,eK.isMobileLayout)()&&(this.items.items.forEach(t=>{"edit"===e||"comment"===e&&"comments_add_edit"===t.itemId?t.show():t.hide()}),this.hideHiddenSectionItems())},hideHiddenSectionItems:function(){this.section[this.sectionEnum.HIDDEN].tools.forEach(function(e){e.hide()})},addMobileToolButtons:function(){let e=this.sectionEnum;[[e.FONT_ATTR,[this.createFontButton("bold"),this.createFontButton("strike")]],[e.ROW_COL_ACTION,[this.toolbarSplit(),this.createToolbarBtn("insert_row"),this.createToolbarBtn("insert_col",(0,A.uD)().value?.getWorkbook().getCurrentSheet()?.isRtl()?{cls:"rtl"}:{}),this.createToolbarBtn("delete_row"),this.createToolbarBtn("delete_col")]],[e.ALIGNMENT,[this.toolbarSplit(),this.createHAlignImageCombo(),this.createVAlignImageCombo(),this.createTextWrapImageCombo()]],[e.FONT_FAMILY,[this.toolbarSplit(),this.combos.font_family=this.createFontFamilyComboBox()]],[e.FONT_SIZE,{tools:[this.toolbarSplit(),this.fontSizeField=this.createFontSizeField()]}],[e.COLOR,[this.toolbarSplit(),this.fontColorBtn=this.createFontColorButton(),this.bgColorBtn=this.createBgColorButton()]],[e.MIXED,[this.toolbarSplit(),this.createToolbarBtn("comments_add_edit")]],[e.HIDDEN,[this.createToolbarBtn("undo"),this.createToolbarBtn("redo"),this.createToolbarCopyCutBtn("cut"),this.createToolbarCopyCutBtn("copy"),this.createToolbarSplitBtn("paste",{itemId:"paste_sbtn"}),this.combos.zoom=this.createZoomCombo(),this.createFontButton("italic"),this.createFontButton("underline"),this.createCellBorderBtn(),this.createToolbarBtn("merge_cells"),this.createToolbarBtn("chart"),this.createToolbarBtn("link"),this.createToolbarBtn("filter"),this.createToolbarBtn("filter_arrow",{menu:{}}),this.createToolbarBtn("image_format"),this.createToolbarBtn("rtl"),this.createToolbarBtn("cell_rtl"),this.createToolbarBtn("cell_ltr"),this.createToolbarBtn("all_comment"),this.createToolbarBtn("ai_helper")]]].forEach(e=>{let[t,i]=e;this.addSection(t,i)})},classifyTool:function(){let e=this.sectionEnum;[[e.BASIC,[this.createToolbarBtn("undo"),this.createToolbarBtn("redo"),this.createToolbarBtn("paint_format"),this.createToolbarBtn("clear_format")]],[e.COPY,[this.toolbarSplit(),this.createToolbarCopyCutBtn("cut"),this.createToolbarCopyCutBtn("copy"),this.createToolbarSplitBtn("paste",{singleAction:!1,itemId:"paste_sbtn",handler:this.onPasteBtnClick.bind(this),menu:new SYNO.SDS.Office.Menu({cls:"paste-smenu",items:[{itemId:"paste_all",text:SYNO.SDS.Office._T("handsontable","paste"),listeners:{render:r4.YF.bind(null,"Ctrl+V")}},{itemId:"paste_value",cls:"syno-o-paste-value-item",text:SYNO.SDS.Office._T("handsontable","paste_value"),listeners:{render:r4.YF.bind(null,(0,r4.c5)())}},{itemId:"paste_format",cls:"syno-o-paste-format-item",text:SYNO.SDS.Office._T("handsontable","paste_format")}],listeners:{scope:this,itemclick:this.onPasteMenuSelect}})})]],[e.ZOOM,{tools:[this.toolbarSplit(),this.combos.zoom=this.createZoomCombo()],width:[void 0,72]}],[e.FORMAT,[this.toolbarSplit(),this.getCurrencySplitButton(),this.createToolbarBtn("percent"),this.createToolbarBtn("number"),this.createToolbarBtn("decrease_decimal"),this.createToolbarBtn("increase_decimal")]],[e.FONT_FAMILY,{tools:[this.toolbarSplit(),this.combos.font_family=this.createFontFamilyComboBox()],width:[void 0,112]}],[e.FONT_SIZE,{tools:[this.toolbarSplit(),this.fontSizeField=this.createFontSizeField()]}],[e.FONT_ATTR,[this.createFontButton("bold"),this.createFontButton("italic"),this.createFontButton("underline"),this.createFontButton("strike"),this.fontColorBtn=this.createFontColorButton()]],[e.BG_COLOR,[this.toolbarSplit(),this.bgColorBtn=this.createBgColorButton(),(()=>{let e=this.createCellBorderBtn();return this.borderColorBtn.addClass(ab),this.borderColorBtn.menu.addClass(ab),e})(),this.createToolbarBtn("merge_cells")]],[e.ALIGNMENT,[this.toolbarSplit(),this.createHAlignImageCombo(),this.createVAlignImageCombo(),this.createTextWrapImageCombo()]],[e.MIXED,{tools:[this.toolbarSplit(),this.createToolbarBtn("chart"),this.createToolbarBtn("link"),this.createToolbarBtn("filter"),this.createToolbarBtn("filter_arrow",{cls:"syno-o-small-btn filter-arrow",menu:new SYNO.SDS.Office.Sheet.FilterViewMenu({}),tooltip:""}),this.createFunctionButton(),this.createToolbarBtn("comments_add_edit"),this.createToolbarBtn("image_format",{tooltip:SYNO.SDS.Office._T("handsontable","floating_format_option")})],width:[void 0,void 0,void 0,24,20]}],[e.RTL,{tools:[this.toolbarSplit(),this.createToolbarBtn("rtl",{vIconCfg:{svgIcon:au,svgIconSet:"set14"},tooltip:(0,N.$)("rtl","sheet_rtl")}),this.createToolbarBtn("cell_rtl",{vIconCfg:{svgIcon:af,svgIconSet:"set14"},tooltip:(0,N.$)("rtl","cell_rtl")}),this.createToolbarBtn("cell_ltr",{vIconCfg:{svgIcon:av,svgIconSet:"set14"},tooltip:(0,N.$)("rtl","cell_ltr")})]}],[e.AI,{tools:[this.toolbarSplit(),this.createAiHelperBtn("ai_helper")],fixed:!0}],[e.MORE,{tools:[this.createToolbarBtn("all_comment",{width:40,btnStyle:"grey",hotkeyName:"comments",style:{"min-width":"38px"}}),this.createFocusModeBtn()],width:[46,52]}]].forEach(e=>{let[t,i]=e;this.addSection(t,i)}),this.createMoreActionBtn().addClass(ab)},fillConfig:function(e){var t={listeners:{scope:this,resize:this.setWidthCache,afterlayout:this.rearrangeToolBar},items:this.getToolItem()};return Ext.apply(t,e),t},regEvents:function(){var e=this.owner.findAppWindow().getEventMgr();this.mon(e,"donequeuechange",this.onDoneQueueChange,this),this.mon(e,"afterundo",this._updateStatusBySelected,this),this.mon(e,"afterredo",this._updateStatusBySelected,this),this.mon(e,"activesheetchange",this.onActiveSheetChange,this),this.mon(e,"onselectimage",this.onSelectImage,this);let t=()=>this.sheetmgr.sheet.getFilterPlugin().isInViewState(),i=()=>{let{hoverFilter:e,hoverFilterArrow:i,pressFilter:n,pressFilterArrow:o}=this.filterBtnStatus,r=e||i,a=t();this.setFilterBtnClass(this.btns.filter,a,r,a?n||o:n),this.setFilterBtnClass(this.btns.filter_arrow,a,r,a&&n||o)};this.mon(this.btns.filter,"mouseover",function(){this.filterBtnStatus.hoverFilter=!0,i()},this),this.mon(this.btns.filter,"mouseout",function(){this.filterBtnStatus.hoverFilter=!1,this.filterBtnStatus.pressFilter=!1,i()},this),this.mon(this.btns.filter_arrow,"mouseover",function(){this.filterBtnStatus.hoverFilterArrow=!0,i()},this),this.mon(this.btns.filter_arrow,"mouseout",function(){this.filterBtnStatus.hoverFilterArrow=!1,this.filterBtnStatus.pressFilterArrow=!1,i()},this),this.mon(this.btns.filter.getEl(),"mousedown",function(){this.filterBtnStatus.pressFilter=!0,i()},this),this.mon(this.btns.filter.getEl(),"mouseup",function(){this.filterBtnStatus.pressFilter=!1,i()},this),this.mon(this.btns.filter_arrow.getEl(),"mousedown",function(){this.filterBtnStatus.pressFilterArrow=!0,i()},this),this.mon(this.btns.filter_arrow.getEl(),"mouseup",function(){this.filterBtnStatus.pressFilterArrow=!1,i()},this),this.mon(this.btns.filter_arrow.menu,"show",function(){t()&&this.setBtnActive(this.btns.filter,!0)},this),this.mon(this.btns.filter_arrow.menu,"hide",function(){t()&&this.setBtnActive(this.btns.filter,!1)},this),this.mon(this.fontColorBtn,{paletteshow:function(){this._saveEditorSelection()},paletteclose:function(){this._restoreEditorSelection()},scope:this})},checkItemVisible:function(e){return!(SYNO.SDS.Office.Utils.isReadOnly()&&SYNO.SDS.Office.Utils.isCommentable()&&!this.modeList.comment.includes(e.itemId)||!t2().enableRightToLeft&&["rtl","cell_ltr","cell_rtl"].includes(e.itemId))&&("ai_helper"!==e.itemId||(0,k.eL)().readable&&iU.$R.value)},getVisibleSection:function(){var e=[],t=!1;return this.section.forEach(function(i,n){if(n!==this.sectionEnum.MORE){var o=!1,r=0;i.tools.forEach((e,t)=>{"tbseparator"!==e.getXType()&&this.checkItemVisible(e)&&(o=!0,r+=i.width[t])}),t&&o&&"tbseparator"===i.tools[0].getXType()&&(r+=i.width[0]),o&&e.push({index:n,width:r}),t=t||o}},this),e},updateItemStatus:function(){if((0,eK.isMobileLayout)())return;let e=this.templateHideList,t=!1;this.section.forEach(function(i,n){let o=!1;i.tools.forEach(t=>{if("tbseparator"!==t.getXType()){if(SYNO.SDS.Office.Env.is_template&&e.includes(t.itemId)||!this.checkItemVisible(t))return void t.hide();t.show(),o=!0}});let r=i.tools[0];r&&"tbseparator"===r.getXType()&&r.setVisible(t&&o),t=t||o},this)},createFontFamilyComboBox:function(){return SYNO.SDS.Office.Iconbar.prototype.createFontFamilyComboBox.call(this,{ctCls:"syno-o-iconbar-editable-combo "+ab,listClass:"syno-ux-combobox-list "+ab,listeners:{scope:this,select:this.onFontFamilyComboSelect,collapse(e){this._restoreEditorSelection(),this.onComboCollapse(e)},expand:this.onComboExpand,mousedown:()=>{Ext.isSafari&&this._saveEditorSelection()}},onTriggerClick:function(){this.readOnly||this.disabled||(this.isExpanded()?this.collapse():(this.onFocus({}),"all"===this.triggerAction?this.doQuery(this.allQuery,!0):this.doQuery(this.getRawValue()),this.el.focus()))}})},createFontSizeField:function(){var e;return(e=SYNO.SDS.Office.Iconbar.prototype.createFontSizeField.call(this,{fontSizeList:[8,9,10,12,14,16,18,24,36],stepByStore:!0,comboCfg:{listClass:"syno-ux-combobox-list "+ab,beforeCancel:()=>{this.sheetmgr.reFocus(!0),this._restoreEditorSelection()},listeners:{mousedown:()=>{Ext.isSafari&&this._saveEditorSelection()}}},listeners:{scope:this,collapse:this._restoreEditorSelection,selectvalue:function(e){this.onFontsizeComboSelect(e)}}})).ctCls=e.ctCls?e.ctCls+" "+ab:ab,e},createFontButton:function(e){return this.createToolbarBtn(e,{ctCls:"syno-sh-editor-comp"})},createFontColorButton:function(){return this.createColorPickerBtn({name:"font_color",ctCls:ab,selectColorOnClick:!(0,eK.isMobileLayout)(),defaultColor:this.getDefault("text_color"),menuCfg:{extraCls:ab,listeners:{scope:this,colorselect:this.onFontColorSelect,selectmenucolor:function(e){var t=this._getSelectedStyle();t&&e.updateColor(t.getFont().color||T.Qr.DEFAULT_FONT_COLOR)}}}})},createBgColorButton:function(){return this.createColorPickerBtn({name:"background_color",selectColorOnClick:!(0,eK.isMobileLayout)(),defaultColor:this.getDefault("bg_color"),menuCfg:{listeners:{scope:this,colorselect:this.onBgColorSelect,selectmenucolor:function(e){var t=this._getSelectedStyle();t&&e.updateColor(t.getFill().bg||"ffffff")}}}})},createToolbarCopyCutBtn:function(e){return this.btns[e]=new(al())({btnStyle:"none",itemId:e+"_btn",cls:"syno-o-toolbar-btn syno-o-small-btn",iconCls:"syno-o-"+e.replace(/_/g,"-")+"-btn",tooltip:this.getTooltipStringAndHotkey("handsontable",e),overCls:"x-btn-over",clipCfg:SYNO.SDS.Office.Sheet.ClipboardConfig.getClipCfg(e),listeners:{clipfailed:SYNO.SDS.Office.Sheet.ClipboardConfig.onClipFailed,click:SYNO.SDS.Office.Sheet.ClipboardConfig.onBtnClick}}),this.btns[e]},createHAlignImageCombo:function(){return this.createToolbarImageCombo("h_align",{listWidth:104,store:this.hAlignStore,listeners:{scope:this,expand:this.onComboExpand,collapse:this.onComboCollapse,select:this.onAlignSelect,render:function(e){e.el.dom.qtip=SYNO.SDS.Office._T("handsontable","horizontal_align")}}})},createVAlignImageCombo:function(){return this.createToolbarImageCombo("v_align",{listWidth:104,store:this.vAlignStore,listeners:{scope:this,expand:this.onComboExpand,collapse:this.onComboCollapse,select:this.onAlignSelect,render:function(e){e.el.dom.qtip=SYNO.SDS.Office._T("handsontable","vertical_align")}}})},createTextWrapImageCombo:function(){return this.createToolbarImageCombo("text_wrap",{listWidth:104,store:this.textWrapStore,listeners:{scope:this,expand:this.onComboExpand,collapse:this.onComboCollapse,select:this.onTextWrapSelect,render:function(e){e.el.dom.qtip=SYNO.SDS.Office._T("handsontable","text_wrap")}}})},createBorderMenuItem:function(e){let t=e+"_border",i=this.getTooltipStringAndHotkey("handsontable",t);return new Ext.menu.Item({itemId:t,cls:"syno-o-"+e+"-border-item",hideOnClick:!1,listeners:{render:function(){this.getEl().dom.querySelector("div").qtip=i}}})},createFunctionButton:function(){let e=new SYNO.SDS.Office.Menu({cls:"syno-sh-editor-comp",items:[{text:"SUM"},{text:"AVERAGE"},{text:"COUNT"},{text:"MAX"},{text:"MIN"},{xtype:"menuseparator",itemId:"ai_formula_sep"},(0,ny.Gr)({itemId:"ai_formula",text:SYNO.SDS.Office._T("ai_common","ask_ai"),handler:this.onAskAiBtnClick.bind(this),iconCls:"syno-o-ai-formula",vIconCfg:{svgIcon:iG.Z,svgIconSet:"set01"}}),"-",{text:SYNO.SDS.Office._T("handsontable","function_list"),href:er(),hrefTarget:"_blank"}],listeners:{scope:this,itemclick:this.onFunctionItemClick,beforeshow:async function(){let t=iU.$R.value&&!(0,eK.isMobileLayout)();e.getComponent("ai_formula").setVisible(t),e.getComponent("ai_formula_sep").setVisible(t),e.doLayout()}}});return this.createToolbarSplitBtn("function",{itemId:"function_sbtn",ctCls:"syno-sh-editor-comp",tooltip:SYNO.SDS.Office._T("handsontable","functions"),menu:e})},getCurrencySplitButton:function(){return this.btns.currency||this.createToolbarSplitBtn("currency",{itemId:"currency_sbtn",tooltip:SYNO.SDS.Office._T("handsontable","currency"),menu:new SYNO.SDS.Office.Menu({items:[this.createCurrencyItem("$","US Dollar"),this.createCurrencyItem("€","Euro"),this.createCurrencyItem("\xa5","Chinese Yuan / Japanese Yen"),this.createCurrencyItem("\xa3","British Pound"),"-",this.createSimpleMenuItem("custom_currency",this.onCustomCurrencyItemClick)],listeners:{scope:this,itemclick:function(e){var t=e.formatCode;t&&(t+=";[RED]-"+t,this.sheetmgr.setFormat(t))}}})})},createCurrencyItem:function(e,t){return{symbol:e,text:e+" "+t}},initLocale:function(e){var t=e.currency_sym,i=e.currency_name,n=this.getCurrencySplitButton().menu,o=n.items.findIndexBy(function(e){return!!e.text&&e.text.indexOf(i)>=0}),r=n.remove(o,!1);n.insert(0,r||this.createCurrencyItem(t,i)),n.items.items.forEach(function(e,t){e.hasOwnProperty("symbol")&&(e.formatCode="[$"+e.symbol+"]#,##0.00")})},onUndoBtnClick:function(){this.sheetmgr.undo()},onRedoBtnClick:function(){this.sheetmgr.redo()},onPaintFormatBtnClick:function(e){var t;t=e.getEl().hasClass("x-btn-active")?Date.now()-e._lastClick<500&&"repeat":"once",e._lastClick=Date.now(),this.setBtnActive(e,!1!==t),this.sheetmgr.copyFormat(t)},onPasteBtnClick:function(){this.sheetmgr.paste("all")},onPasteMenuSelect:function(e,t){this.sheetmgr.paste(e.itemId.split("_")[1]||"all")},onZoomComboSelect:function(e){var t=parseInt(e,10);Ext.isNumber(t)&&this.sheetmgr.hot.setZoomLevel(t/100)},onTextStyleBtnClick:function(e,t){var i=e.itemId.split("_")[0],n=this.sheetmgr.toggleFontAttr(i);this.setBtnActive(e,n)},onFontFamilyComboSelect:function(e,t){let i=t.get("value");this._restoreEditorSelection(),this.sheetmgr.setStyleMeta("Font","name",i)},onFontsizeComboSelect:function(e){this._restoreEditorSelection(),this.sheetmgr.setStyleMeta("Font","size",e)},onAlignSelect:function(e,t){var i=e.itemId.match(/(h|v)_align/);i&&(this.setComboClass(e,t.get("value"),`syno-o-${i[0].replace(/_/g,"-")}`),this.sheetmgr.setStyleMeta("Alignment",i[0].replace(/_/g,""),t.get("value")))},onTextWrapSelect:function(e,t){this.setComboClass(e,t.get("value"),"syno-o-text-wrap");var i=t.get("value");"overflow"===i&&(i=null),this.sheetmgr.setStyleMeta("Alignment","wrap",i)},onFontColorSelect:function(e,t){this._restoreEditorSelection(),this.sheetmgr.setStyleMeta("Font","color",t)},onBgColorSelect:function(e,t){this.sheetmgr.setStyleMeta("Fill","bg",t)},onBorderMenuSelect:function(e,t){let i=this.borderColorBtn.getColor();null!==i&&(i="#"+(i||this.getDefault("border_color")));let n=e.getItemId();"border_color_sbtn"!==n&&("clear_border"===n?this.sheetmgr.removeBorder():"all_border"===n?this.sheetmgr.setAllBorder(i):(this.sheetmgr.sheet.isRtl()&&("left_border"===n?n="right_border":"right_border"===n&&(n="left_border")),this.sheetmgr.setBorder(n,i)))},onMergeBtnClick:function(e,t){this.sheetmgr.isMerged()?this.sheetmgr.unmergeCells():this.sheetmgr.mergeCells(),this.setBtnActive(e,this.sheetmgr.isMerged())},onCommentBtnClick:function(e,t){(0,eK.isMobileLayout)()&&this.sheetmgr.getCommentBySelection()?this.findAppWindow().getMainPanel().showSelectedCommentInBottomPanel():this.sheetmgr.insertComment()},onLinkBtnClick:function(e,t){this.sheetmgr.insertLink()},onFilterBtnClick:function(e,t){var i=this.sheetmgr.sheet.getFilterPlugin();if(i.isInViewState())return void this.onFilterArrowBtnClick(this.btns.filter_arrow,t);(this.sheetmgr.isFilterActive()?this.sheetmgr.disableFilter(i.getFilterJSON().id):this.sheetmgr.createFilter()).then((function(){this.setFilterActive(this.sheetmgr.isFilterActive())}).bind(this))},onFilterArrowBtnClick:function(e,t){e.showMenu()},async onClearFormatBtnClick(){await this.sheetmgr.clearFormat(),this._updateStatusBySelected()},onChartBtnClick:function(){this.sheetmgr.createNewChart()},onImageFormatBtnClick:function(){let e=this.sheetmgr.hot.getPlugin("synoDrawingController"),t=this.findAppWindow().getMainPanel().right_panel,i=e.getActiveImage()?.id??null;t.getImageFormatPanel().setImage(i?this.sheetmgr.sheet.getDrawingPlugin().getImageJSONById(i):i),t.showImageFormatPanel()},onRtlBtnClick:function(){let e=!this.sheetmgr.sheet.isRtl();this.sheetmgr.setSheetRtl(e),this.setBtnActive(this.btns.rtl,e)},_onCellReadingOrderClick:function(e){let t=this._getSelectedStyle();if(!t)return;let i=t.getAlignment().readingOrder===e?0:e;this.sheetmgr.setStyleMeta("Alignment","readingOrder",i),this._updateReadingOrderIcon(i)},onCellRtlClick:function(){this._onCellReadingOrderClick(2)},onCellLtrClick:function(){this._onCellReadingOrderClick(1)},onAllCommentBtnClick:function(){this.findAppWindow().getMainPanel().toggleCommentPanel()},onRowColOpBtnClick:function(e,t){let[i,n]=e.itemId.replace("delete","remove").split("_");this.findAppWindow().sheetmgr.rowColOpOnSelectedRange(i,n,!0)},onAskAiBtnClick:function(){this.findAppWindow().getMainPanel().toggleAiHelperPanel()},updateIconStatus:function(e,t){let i=this.sheetmgr?.sheet;i&&this._updateStatusByStyle(i.getComputedCellStyle(e,t))},_updateStatusByStyle:function(e){var t,i,n=e.getAlignment();this.updateFontIcons(e.getFont()),t=this.combos.h_align,i=["left","center","right"].includes(n.halign)?n.halign:this.getDefault("h_align"),t.setValue(i),this.setComboClass(t,i,"syno-o-h-align"),t=this.combos.v_align,i=["top","middle","bottom"].includes(n.valign)?n.valign:this.getDefault("v_align"),t.setValue(i),this.setComboClass(t,i,"syno-o-v-align"),t=this.combos.text_wrap,i=["overflow","clip","wrap"].includes(n.wrap)?n.wrap:this.getDefault("text_wrap"),t.setValue(i),this.setComboClass(t,i,"syno-o-text-wrap"),this.setBtnActive(this.btns.rtl,this.sheetmgr.sheet.isRtl()),this._updateReadingOrderIcon(n.readingOrder);let o=this.sheetmgr.hot.getPlugin("synoCopyPaste").isTargetReady();this.btns.cut.setDisabled(this.sheetmgr.isReadonly()||!SYNO.SDS.Office.Utils.isEditable()||!o),this.btns.copy.setDisabled(!1),this.btns.paste.setDisabled(this.sheetmgr.isReadonly()||!SYNO.SDS.Office.Utils.isEditable()),this.btns.comments_add_edit.setDisabled(!SYNO.SDS.Office.Utils.isCommentable())},_updateReadingOrderIcon:function(e){this.setBtnActive(this.btns.cell_rtl,2===e),this.setBtnActive(this.btns.cell_ltr,1===e)},updateFontIcons:function(e){this.setBtnActive(this.btns.bold,!0===e.bold),this.setBtnActive(this.btns.italic,!0===e.italic),this.setBtnActive(this.btns.strike,!0===e.strike),this.setBtnActive(this.btns.underline,!0===e.underline);let t=this.fontSizeField;var i=Ext.isNumber(e.size)?e.size:this.getDefault("fontsize");t.setValue(i);let n=this.combos.font_family,o=n.store.find("value",e.name);o<0&&(o=n.store.find("value",n.store.getFontMap().get(e.name))),o<0&&(o=n.store.find("value",this.getDefault("font_family")));let r=n.store.getAt(o);n.setValue(r?r.get("value"):"")},updateIconEnd:function(e){if(!this.sheetmgr)return;let t=this.sheetmgr.hasPivotTable(e);this.setBtnActive(this.btns.merge_cells,this.sheetmgr.isMerged(e)),this.btns.merge_cells.setDisabled(t),this.btns.filter.setDisabled(t),this.btns.filter_arrow.setDisabled(t)},onHighlightChanged:function(e){let t=this.sheetmgr?.sheet,i=e?.from,n=!!(t&&i&&t.getCellProperty(i.row,i.col,"pivot"));this.btns.link.setDisabled(n)},flushFilterIcon:function(){this.sheetmgr&&this.setFilterActive(this.sheetmgr.sheet.getFilterPlugin().getActiveFilterJSON()?.range!=null)},setFilterActive:function(e){var t=this.btns.filter;this.setBtnActive(t,e);var i=t.getEl().child("button");e?i.hasClass("filter-enable")||i.addClass("filter-enable"):i.removeClass("filter-enable")},setFilterBtnClass:function(e,t,i,n){[{status:t,cls:"syno-o-filter-view"},{status:i,cls:"syno-o-filter-btn-over"},{status:n,cls:"syno-o-filter-btn-press"}].forEach((t,i)=>{let{status:n,cls:o}=t,r=e.getEl().hasClass(o);n&&!r?e.addClass(o):!n&&r&&e.removeClass(o)})},afterInitFirstSheet:function(e){this.sheetmgr=e,this.onActiveSheetChange(),this.regEvents()},onActiveSheetChange:function(){this._updateStatusBySelected(),this.setFilterActive(this.sheetmgr.isFilterActive()),this.btns.cut.disable(),this.btns.copy.disable(),this.btns.paste.disable(),this.btns.comments_add_edit.disable()},onDoneQueueChange:function(e){this.getComponent("undo").setDisabled(0===e.doneActions.length),this.getComponent("redo").setDisabled(0===e.undoneActions.length)},onSelectImage:function(){this.getComponent("paste_sbtn").disable()},_getSelectedStyle:function(){var e=this.sheetmgr,t=e&&e.hot.getSelectedRange();return t&&t.from?this.sheetmgr.sheet.getComputedCellStyle(t.from.row,t.from.col):null},_updateStatusBySelected:function(){var e=this._getSelectedStyle();e&&this._updateStatusByStyle(e)},onFunctionItemClick:function(e){var t=e.text;-1!==ex.z4.indexOf(t)&&this.sheetmgr.insertFunction(t)},clickButton:function(e){this.btns[e].getEl().dom.click()},_saveEditorSelection:function(){let e=this.sheetmgr.getActiveInput();e&&e.saveSelection()},_restoreEditorSelection:function(){let e=this.sheetmgr.hot.getActiveEditor().input;e?.selectionSaver.restore()},_clearEditorSelection:function(){let e=this.sheetmgr.hot.getActiveEditor().input;e?.selectionSaver.clear()},onCustomCurrencyItemClick:function(){new SYNO.SDS.Office.Sheet.CurrencyFormatWindow().show()},onDecreaseDecimalClick:function(){this.sheetmgr.decreaseDecimal()},onIncreaseDecimalClick:function(){this.sheetmgr.increaseDecimal()},onPercentageFormatClick:function(){this.sheetmgr.setFormat("0%")},onCommaFormatClick:function(){var e=this.findAppWindow().getMainPanel().getFormatMenu();this.sheetmgr.setFormat(e.cellFormat.number)}}),i(24378);var ay=i(43930),aw=i(65949);let a_=(0,M.defineComponent)({__name:"PositionTypeFieldSet",props:{positionType:{},floatingType:{},floatingId:{}},setup(e){async function t(t){void 0!==e.floatingId&&("image"===e.floatingType?await A.rb.getView().getPlugin("synoDrawingController")?.setImagePositionType(e.floatingId,t):"chart"===e.floatingType&&await A.rb.getView().getPlugin("synoDrawingController")?.setChartPositionType(e.floatingId,t))}return(e,i)=>((0,M.openBlock)(),(0,M.createBlock)((0,M.unref)(B.Z),(0,M.mergeProps)({"syno-id":"position-type",title:(0,M.unref)(N.$)("floating_format","position_type")},e.$attrs),{default:(0,M.withCtx)(()=>[(0,M.createVNode)((0,M.unref)(Q.Z),{"model-value":e.positionType,"syno-id":"radio-group",class:(0,M.normalizeClass)(e.$style["radio-group"]),onChange:t},{default:(0,M.withCtx)(()=>[(0,M.createVNode)((0,M.unref)($.Z),{"syno-id":"absolute-radio",value:(0,M.unref)(T._B).Absolute},{default:(0,M.withCtx)(()=>[(0,M.createTextVNode)((0,M.toDisplayString)((0,M.unref)(N.$)("floating_format","position_type_absolute")),1)]),_:1},8,["value"]),(0,M.createVNode)((0,M.unref)($.Z),{"syno-id":"one_anchor-radio",value:(0,M.unref)(T._B).OneAnchor},{default:(0,M.withCtx)(()=>[(0,M.createTextVNode)((0,M.toDisplayString)((0,M.unref)(N.$)("floating_format","position_type_one_anchor")),1)]),_:1},8,["value"]),(0,M.createVNode)((0,M.unref)($.Z),{"syno-id":"two_anchor-radio",value:(0,M.unref)(T._B).TwoAnchor},{default:(0,M.withCtx)(()=>[(0,M.createTextVNode)((0,M.toDisplayString)((0,M.unref)(N.$)("floating_format","position_type_two_anchor")),1)]),_:1},8,["value"])]),_:1},8,["model-value","class"])]),_:1},16,["title"]))}});var ax=i(61426),aS=i.n(ax);let aC={};aC.$style=aS();let ak=(0,q.default)(a_,[["__cssModules",aC]]),aI="image";var aA=i(46989);let aT={key:0},aE=(0,M.defineComponent)({__name:"ImagePanel",setup(e,t){let{expose:i}=t,n=(0,M.ref)(""),o=(0,M.ref)(null),r=(0,A.uD)(),a=(0,M.computed)(()=>r.value?.getWorkbook().getDrawingStore().getImageById(n.value)??null),s=(0,M.computed)(()=>null!==a.value);function l(e){n.value=e?.id??""}return i({setImage:l,onActiveChange:function(e,t){(0,aA.H)().isPanelActive(aI)&&(null!==e||"scroll"!==t)&&l(e)}}),(e,t)=>((0,M.openBlock)(),(0,M.createBlock)(aw.Z,{ref_key:"rightPanel",ref:o,"panel-key":(0,M.unref)(aI),title:(0,M.unref)(N.$)("floating_format","format_options")},{body:(0,M.withCtx)(()=>[(0,M.createElementVNode)("div",{class:(0,M.normalizeClass)(e.$style.body)},[s.value?((0,M.openBlock)(),(0,M.createElementBlock)("div",aT,[(0,M.createVNode)(ak,{"floating-type":"image","position-type":a.value?.position.type,"floating-id":a.value?.id,collapsible:!1},null,8,["position-type","floating-id"])])):((0,M.openBlock)(),(0,M.createElementBlock)("div",{key:1,class:(0,M.normalizeClass)(e.$style.center)},(0,M.toDisplayString)((0,M.unref)(N.$)("floating_format","image_empty_description")),3))],2)]),_:1},8,["panel-key","title"]))}});var aR=i(3986),aD=i.n(aR);let aO={};aO.$style=aD();let aM=(0,q.default)(aE,[["__cssModules",aO]]);i(60919);var aN=i(76013);let aP=(0,M.defineComponent)({name:"DataView",components:{vScrollbar:ix.Z},mixins:[oy({selectRange:"selectRange"})],props:{items:{type:Array,default:()=>[]},idProperty:{type:String,default:"id"},singleSelect:{type:Boolean,default:!0},scrollbar:{type:Object,default:()=>({})},defaultSelected:{type:[Boolean,Array],default:!1},focusInner:{type:Boolean,default:!0}},emits:["contextmenu","selectionchange","selected-change","rowclear"],data:()=>({prefix:"v-data-view"}),computed:{},watch:{defaultSelected:{handler(e){if((0,nM.kJ)(e)){if(this.singleSelect&&e.length>1)return(0,nO.D8)("The 'defaultSelected' prop can't be an array with length greater than one when 'singleSelect' is true.",this),void this.selectItems([this.items[e[0]]]);this.selectItems(e.map(e=>this.items[e]))}},immediate:!0},selectedItems:{handler(){this.onSelectionChanged()}}},created(){this.items.forEach((e,t)=>{(0,nM.$K)(e[this.idProperty])||(e[this.idProperty]=t)})},methods:{onSelectionChanged(){let e=new Map;for(let[t,i]of this.items.entries())e.set(this.getItemValue(i),t);let t=Array.from(this.selectedItems).map((t,i)=>e.get(t));(0,nI.Qy)(this,"selectionchange",this.singleSelect?t?.[0]:t),(0,nI.Qy)(this,"selected-change",Array.from(this.selectedItems))},isMultipleSelected(){return!this.singleSelect},clearSelectedRows(){this.clearSelection(),(0,nI.Qy)(this,"rowclear")},onContextMenu(e,t,i){(0,nI.Qy)(this,"contextmenu",e,t,i)},getItemValue(e){return e[this.idProperty]},isItemDisabled:e=>e.disabled,onKeyDown(e){(0,nJ.Tx)(e)||(0,nJ.F$)(e)?(e.preventDefault(),e.stopPropagation(),this.selectPrev(e)):((0,nJ.BU)(e)||(0,nJ.oQ)(e))&&(e.preventDefault(),e.stopPropagation(),this.selectNext(e))},selectRange(e,t){let{keepSelection:i=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.selectItemsRange(e,t,this.items,{keepSelection:i})},selectPrev(e){let t=this.lastSelectRangeIndex-1;if(t<0)return;let i=this.items[t];this.clickItem(e,t,i),this.focusItem(i[this.idProperty])},selectNext(e){let t=this.lastSelectRangeIndex+1;if(t>this.items.length-1)return;let i=this.items[t];this.clickItem(e,t,i),this.focusItem(i[this.idProperty])},getItemCls(e){return[`${this.prefix}-item-wrap`,{[`${this.prefix}-item-selected`]:this.isItemSelected(e)}]},ensureItemVisible(e){if(!e)return!1;this.$refs.scrollbar.ensureVisible(this.$refs[`item-${e[this.idProperty]}`]?.[0])},clickItem(e,t,i){this.onClickItem(e,t,i)},focusItem(e){let t=e[this.idProperty];this.$refs[`item-${t}`]?.[0]?.focus()},onFocusItem(e){let t=e[this.idProperty],i=this.$refs[`item-${t}`]?.[0];this.focusInner&&(0,aN.fo)(i)}}}),aL=["syno-id","onClick","onFocus","onContextmenu"];var aB=(0,tP.Z)(aP,[["render",function(e,t,i,n,o,r){let a=(0,M.resolveComponent)("v-scrollbar"),s=(0,M.resolveDirective)("syno-id");return(0,M.withDirectives)(((0,M.openBlock)(),(0,M.createElementBlock)("div",{class:(0,M.normalizeClass)(e.prefix)},[(0,M.renderSlot)(e.$slots,"outer-spin"),(0,M.renderSlot)(e.$slots,"before"),(0,M.createElementVNode)("div",{class:(0,M.normalizeClass)(`${e.prefix}-body`)},[(0,M.createVNode)(a,(0,M.mergeProps)({ref:"scrollbar"},e.scrollbar),{default:(0,M.withCtx)(()=>[(0,M.renderSlot)(e.$slots,"inner-spin"),(0,M.createElementVNode)("div",{ref:"content",tabindex:"0",onKeydown:t[0]||(t[0]=t=>e.onKeyDown(t))},[((0,M.openBlock)(!0),(0,M.createElementBlock)(M.Fragment,null,(0,M.renderList)(e.items,(t,i)=>((0,M.openBlock)(),(0,M.createElementBlock)("div",{key:t[e.idProperty],ref_for:!0,ref:`item-${t[e.idProperty]}`,"syno-id":`${e.synoId}-${i}`,class:(0,M.normalizeClass)(e.getItemCls(t)),tabindex:"-1",onClick:n=>e.onClickItem(n,i,t),onFocus:i=>e.onFocusItem(t),onContextmenu:n=>e.onContextMenu(t,i,n)},[(0,M.renderSlot)(e.$slots,"item",{item:t,index:i,disabled:t.disabled})],42,aL))),128))],544)]),_:3},16)],2),(0,M.renderSlot)(e.$slots,"after")],2)),[[s]])}]]);let aF=(0,M.defineComponent)({__name:"ProtectionRuleData",props:{rule:{},isReadOnly:{type:Boolean},isEditable:{type:Boolean},isActive:{type:Boolean}},emits:["select-row","edit-rule"],setup(e,t){let{emit:i}=t,n=(0,A.uD)(),o=(0,A.O3)();function r(e){let{canOrganize:t}=t7.getUserInfo();return!!t||(n.value?.getWorkbook().getRuleStore().isGrantable(e.ruleId)??!1)}function a(t){return e.isEditable&&r(t)}let s=(0,M.computed)(()=>e.rule.description||u(e.rule)),l=(0,M.computed)(()=>e.rule.description?u(e.rule):""),c=(0,M.computed)(()=>e.isReadOnly||!r(e.rule)?"view":e.rule.acl?"edit":"warn"),d=(0,M.computed)(()=>(0,N.$)("protection","perm_"+c.value));function u(e){let t=e.sheetId,i=n.value?.getWorkbook();if(!i)return"";let o=i.getNameById(t)??"",r=e.range;if("string"==typeof r){let e=T.pt.createByWorkbook(r,i,t);return e?e.toLabel():r}if(null==r)return o;switch(r.length){case 0:return o;case 1:return(0,eX.format)((0,N.$)("protection","exclude"),o,r[0]);default:return(0,eX.format)((0,N.$)("protection","exclude_multi"),o,r.length)}}async function h(){i("select-row");let t=e.rule;await (0,A.c)().setActiveSheet(t.sheetId);let r=n.value?.getWorkbook().getCurrentSheet();if("range"===t.type&&r&&o.value){let e=T.pt.textToRange(t.range,r);e&&(o.value.scrollToRange(e.from.row,e.from.col,e.to.row,e.to.col),b(e))}}function p(){if(a(e.rule))return void i("edit-rule",e.rule)}let f=(0,M.ref)(!1),g=(0,M.computed)(()=>(f.value||e.isActive)&&a(e.rule));function m(){f.value=!0;let t=e.rule,i=n.value?.getWorkbook().getCurrentSheet();if(!i||t.sheetId!==i.sheetId)return void b(null);let o=t.range;if("string"!=typeof o)return void b(null);let r=T.pt.create(o,i);if(null===r)return void b(null);b(r.toSynoRange())}function v(){f.value=!1,b(null)}function b(e){o.value&&o.value.selections.rule.cellRange!==e&&(o.value.selections.rule.cellRange=e,o.value.selectionView.updateSelection(o.value.selections.rule))}function y(){a(e.rule)&&i("edit-rule",e.rule)}function w(){A.rb.getAction().deleteRule(e.rule.ruleId)}let _=(0,M.useCssModule)(),x=(0,M.computed)(()=>"view"===c.value?_["rule-state-view"]:_["rule-state"]);return(e,t)=>{let i=(0,M.resolveDirective)("tooltip");return(0,M.openBlock)(),(0,M.createElementBlock)("div",{class:(0,M.normalizeClass)(e.$style.rule),onMouseover:m,onMouseout:v,onClick:h,onDblclick:p},[(0,M.withDirectives)((0,M.createVNode)(ez.Z,{"syno-id":"rule-more",class:(0,M.normalizeClass)(e.$style["rule-more"]),"icon-cls":e.$style["rule-more-icon"],"icon-height":20,"icon-width":13,"use-adaptive-container":!1,onClick:h},{default:(0,M.withCtx)(()=>[(0,M.createVNode)((0,M.unref)(tn.NV),{"syno-id":"rule-menu"},{default:(0,M.withCtx)(()=>[(0,M.createVNode)((0,M.unref)(tt.Z),{"syno-id":"rule-menu-edit",title:(0,M.unref)(N.$)("common","edit"),onClick:y},null,8,["title"]),(0,M.createVNode)((0,M.unref)(tt.Z),{"syno-id":"rule-menu-delete",title:(0,M.unref)(N.$)("common","delete"),onClick:w},null,8,["title"])]),_:1})]),_:1},8,["class","icon-cls"]),[[M.vShow,g.value]]),(0,M.withDirectives)(((0,M.openBlock)(),(0,M.createElementBlock)("div",{class:(0,M.normalizeClass)(e.$style["rule-title"])},[(0,M.createTextVNode)((0,M.toDisplayString)(s.value),1)],2)),[[i,s.value]]),(0,M.withDirectives)(((0,M.openBlock)(),(0,M.createElementBlock)("div",{class:(0,M.normalizeClass)(e.$style["rule-scope"])},[(0,M.createTextVNode)((0,M.toDisplayString)(l.value),1)],2)),[[M.vShow,""!==l.value],[i,l.value]]),(0,M.withDirectives)(((0,M.openBlock)(),(0,M.createElementBlock)("div",{class:(0,M.normalizeClass)(x.value)},[(0,M.createTextVNode)((0,M.toDisplayString)(d.value),1)],2)),[[i,d.value]])],34)}}});var aV=i(53276),az=i.n(aV);let aH={};aH.$style=az();let aW=(0,q.default)(aF,[["__cssModules",aH]]),aY=["textContent"],aU=(0,M.defineComponent)({__name:"ProtectionRuleDataView",props:{ruleData:{},isReadOnly:{type:Boolean},isEditable:{type:Boolean}},emits:["edit-rule"],setup(e){let t=(0,M.ref)(-1),i=(0,M.ref)(null);return(e,n)=>e.ruleData.length>0?((0,M.openBlock)(),(0,M.createBlock)((0,M.unref)(aB),{key:0,ref_key:"dataView",ref:i,"syno-id":"protection-data-view",items:e.ruleData,"id-property":"ruleId",class:(0,M.normalizeClass)(e.$style["data-view"])},{item:(0,M.withCtx)(i=>{let{item:o,index:r}=i;return[(0,M.createVNode)(aW,{rule:o,"is-read-only":e.isReadOnly,"is-editable":e.isEditable,"is-active":t.value===r,onSelectRow:()=>{t.value=r},onEditRule:n[0]||(n[0]=t=>e.$emit("edit-rule",t))},null,8,["rule","is-read-only","is-editable","is-active","onSelectRow"])]}),_:1},8,["items","class"])):((0,M.openBlock)(),(0,M.createElementBlock)("div",{key:1,class:(0,M.normalizeClass)(e.$style["empty-text"]),textContent:(0,M.toDisplayString)((0,M.unref)(N.$)("protection","desc"))},null,10,aY))}});var aG=i(5221),aZ=i.n(aG);let aj={};aj.$style=aZ();let aq=(0,q.default)(aU,[["__cssModules",aj]]),aK="protection";var aX=i(90167),aQ=i.n(aX);let a$=SYNO.SDS.Drive.Share.QueryStore;var aJ=i.n(a$);Ext.define("SYNO.SDS.Office.Sheet.Protection.PermWindow",{extend:aQ(),constructor:function(e){this.acl=e.acl,this.creator=e.creator,aQ().prototype.constructor.call(this,this.fillConfig(e)),this._fillACL()},fillConfig:function(e){return Ext.apply({cls:"syno-o-protection-perm-window",title:SYNO.SDS.Office._T("protection","range_edit_perm"),width:424,height:379,layout:"fit",items:this.getFormPanel(),buttons:[{xtype:"syno_button",text:_T("common","save"),btnStyle:"default",scope:this,handler:this.onApply}]},e)},getFormPanel:function(){return this.formPanel||(this.formPanel=new SYNO.ux.FormPanel({cls:"syno-d-share-formpanel",labelWidth:30,title:SYNO.SDS.Drive._T("share","permission"),items:[{xtype:"syno_fieldset",cls:"syno-o-protection-radio-fieldset",items:[this.getWarningRadio(),this.getACLRadio()]},{xtype:"syno_fieldset",cls:"syno-o-protection-share-fieldset",labelAlign:"top",items:[this.getPermComposite(),this.getPermGridPanel()]}]}))},createRadio:function(e,t){return new SYNO.ux.Radio({name:"perm",inputValue:e,boxLabel:SYNO.SDS.Office._T("protection",e+"_desc")||e,checked:t,scope:this,handler:this.onRadioCheck})},getWarningRadio:function(){return this.warningRadio||(this.warningRadio=this.createRadio("warning",!this.acl))},getACLRadio:function(){return this.aclRadio||(this.aclRadio=this.createRadio("acl",!!this.acl))},getPermGridPanel:function(){return this.gridPanel||(this.gridPanel=new SYNO.ux.GridPanel({height:121,hideHeaders:!0,store:this.getPermStore(),disabled:!0,viewConfig:{deferEmptyText:!0,emptyText:SYNO.SDS.Office._T("protection","empty_perm")},columns:[{dataIndex:"name",renderer:function(e,t,i){var n="syno-d-share-user";"group"===i.get("type")&&(n="syno-d-share-group");var o=i.get("nickname");return o&&(e+=String.format(" ({0})",o)),String.format('<span class="{0}"></span>{1}',n,Ext.util.Format.htmlEncode(e))}},{canBeDeleted:function(e){return e.get("id")!==(0,t1.Kr)()||"user"!==e.get("type")},renderer:function(e,t,i){return this.canBeDeleted(i)?'<div class="syno-o-protection-delete-icon"></div>':""},width:42,fixed:!0,listeners:{click:function(e,t,i){var n=t.getStore();this.canBeDeleted(n.getAt(i))&&n.removeAt(i)}}}]}))},getPermStore:function(){return this.permStore||(this.permStore=new Ext.data.JsonStore({fields:["id","name","type","nickname"]}))},getPermComposite:function(){return this.permComposite||(this.permComposite=new SYNO.ux.CompositeField({fieldLabel:SYNO.SDS.Drive._T("share","invite"),disabled:!0,defaults:{margins:"0 8 0 0"},items:[this.getUserGroupCombo(),{xtype:"syno_button",cls:"syno-d-share-add",btnStyle:"grey",width:40,scope:this,handler:this.onAddSharePriv}]}))},_loadPermEntries:function(){return new Promise((function(e){var t,i=this.creator,n=[i];this.acl?(n=n.concat(this.acl.uids.filter(function(e){return e!==i})),t=this.acl.gids):t=[];let o=(0,k.sI)();(0,i2.Xn)(n,t,function(){var i=n.map(function(e){var t=o.hasUser(e);return{id:e,type:"user",name:t?o.getUserName(e):"#"+e,nickname:t?o.getUserNick(e):""}}),r=t.map(function(e){var t=o.hasGroup(e);return{id:e,type:"group",name:t?o.getGroupDisplayName(e):"#"+e}});e(i.concat(r))})}).bind(this))},_fillACL:function(){this.setStatusBusy(),this._loadPermEntries().then((function(e){var t=e.map(function(e){return new Ext.data.Record(e)});this.permStore.add(t),this.onRadioCheck(),this.clearStatusBusy()}).bind(this))},onRadioCheck:function(){var e=!this.getACLRadio().getValue();this.getPermGridPanel().setDisabled(e),this.getPermComposite().ownerCt.setDisabled(e),this.getPermComposite().innerCt.items.each(function(t){t.setDisabled(e)}),this.getACLRadio().getValue()&&this.getPermGridPanel().getView().refresh()},getUserGroupStore:function(){return this.queryStore||(this.queryStore=new(aJ())({autoLoad:!1}))},getUserGroupCombo:function(){if(this.share_name)return this.share_name;var e=this.getUserGroupStore();return this.share_name=new SYNO.ux.SuperBoxSelect({supportPlaceHolder:!1,itemMaxWidth:65,ctCls:"syno-d-share-user-group",labelAlign:"top",typeAhead:!1,addNewDataOnBlur:!0,allowAddNewData:!0,allowDeleteData:!0,allowQueryAll:!1,removeValuesFromStore:!1,fieldLabel:SYNO.SDS.Office._T("share","invite"),lazyInit:!1,emptyText:SYNO.SDS.Office._T("share","user_group"),listEmptyText:SYNO.SDS.Office._T("common","no_data"),editable:!0,width:290,store:e,minChars:1,valueField:"id",displayField:"displayname",queryParam:"query",mode:"remote",enableKeyEvents:!0,tmp:new Ext.XTemplate('<tpl for=".">{[this.insertBefore(values, xindex, parent)]}<div class="x-combo-list-item {[values.cls || ""]}" perm="option" aria-label="{[fm.htmlEncode(fm.stripTags(values.displayname))]}" id={[Ext.id()]} ext:qtip="{[Ext.util.Format.htmlEncode(Ext.util.Format.htmlEncode(values.displayname))]}">{[Ext.util.Format.htmlEncode(values.displayname)]}</div></tpl>',{insertBefore:function(e,t,i){return t>1&&i[t-2].type!==e.type?'<div class="syno-d-menu-sep">&nbsp;</div>':""}}),validator:(function(e){var t=e.split("@");return t.shift(),e=t.join("@"),Ext.isEmpty(e)||-1!==this.findIndexUserGroup(e)}).bind(this),initScrollbarEvent:Ext.emptyFn,onBlur:function(){this.onBlurCall=!0,this.beforeBlur(),this.outerWrapEl.removeClass(this.focusClass),this.autoSize(),this.clearCurrentFocus(),SYNO.ux.SuperBoxSelect.superclass.onBlur.call(this)},listeners:{scope:this,beforeselect:function(e,t){var i=t.data.name;e.hasValue(i)&&e.collapse()},beforeadditem:function(e,t,i){return!Ext.isEmpty(t)&&-1!==this.findIndexUserGroup(i.data.name)},additem:function(e){if(window.event){var t=new Ext.EventObjectImpl(window.event);e.itemDelimiterKey===t.getKey()&&(this.blViewAddUser=!0,(function(){this.blViewAddUser=!1}).defer(80,this))}},newitem:function(e,t){var i=this.findUserGroup(t);if(i){e.getStore().clearFilter();var n=i.data;e.addItem(n)}},autosize:function(e,t){""===e.el.dom.value&&e.items.getCount()>0&&e.el.setWidth(5)},keydown:function(e,t,i){e.itemDelimiterKey===t.getKey()&&!this.blViewAddUser&&(""!==e.el.dom.value||e.isExpanded()||this.onAddSharePriv())},beforequery:function(e){if(e){var t=this.getUserGroupCombo().outerWrapEl.dom;t.scrollTop=t.scrollHeight}}}}),e.setCombo(this.share_name),this.share_name},findIndexUserGroup:function(e){return this.getUserGroupStore().clearFilter(),this.getUserGroupStore().findExact("name",e)},findUserGroup:function(e){var t=this.findIndexUserGroup(e);return this.getUserGroupStore().getAt(t)||null},getUserGroupUnAdded:function(){return this.getUserGroupStore().clearFilter(),this.getUserGroupCombo().getSelectedRecords()},onAddSharePriv:function(){var e=this.getPermStore();Ext.each(this.getUserGroupUnAdded(),function(t){var i=t.get("name"),n=t.get("type");0>e.findBy(function(e){return e.get("type")===n&&e.get("name").toLocaleLowerCase()===i.toLocaleLowerCase()})&&e.add(e.reader.extractData([t.json],!0))}),this.share_name.clearValue()},onApply:function(){var e=this.getPermStore(),t=null;if(this.getACLRadio().getValue()){var i=[],n=[];e.each(function(e){("group"===e.data.type?n:i).push(e.data.id)}),t={uids:(i=i.filter(function(e){return e!==this.creator},this)).sort(),gids:n.sort()}}this.fireEvent("aclupdate",t),this.close()}});let a0=Ext.define("SYNO.SDS.Office.Sheet.Protection.RuleWindow",{extend:"SYNO.SDS.Drive.ModalWindow",constructor:function(e){this.ruleJSON=e.ruleJSON||null,this.acl=this.ruleJSON&&this.ruleJSON.acl||null,SYNO.SDS.Drive.ModalWindow.prototype.constructor.call(this,this.fillConfig(e))},isEditMode:function(){return null!==this.ruleJSON},fillConfig:function(e){return Ext.apply({cls:"syno-o-protection-rule-window",title:_T("common","create"),width:336,autoHeight:!0,layout:"fit",items:this.getFormPanel(),buttons:[{xtype:"syno_button",text:_T("common","cancel"),scope:this,handler:this.onCancel},{xtype:"syno_button",text:_T("common","ok"),btnStyle:"default",scope:this,handler:this.onApply}]},e)},getFormPanel:function(){return this.formPanel||(this.formPanel=new SYNO.ux.FormPanel({fieldWidth:280,autoHeight:!0,items:[{xtype:"syno_fieldset",itemId:"type_fieldset",cls:"syno-o-protection-radio-fieldset",title:SYNO.SDS.Office._T("protection","range_or_sheet"),items:[this.getRangeRadio(),this.getSheetRadio()]},{xtype:"syno_fieldset",items:[this.getDescField()]},{xtype:"syno_fieldset",itemId:"range_rule_panel",hidden:!0,items:[this.getRangeField()]},{xtype:"syno_fieldset",itemId:"worksheet_rule_panel",hidden:!0,items:[this.getSheetCombo(),this.getExcludeCheckbox(),this.getRangeGridPanel()]},{xtype:"syno_fieldset",cls:"syno-o-protection-perm-fieldset",title:SYNO.SDS.Office._T("protection","perm"),items:[this.getPermField(),this.getEditPermButton()]}]}))},createRadio:function(e){return new SYNO.ux.Radio(Ext.apply({name:"type",inputValue:e,boxLabel:SYNO.SDS.Office._T("protection",e)||e,scope:this,handler:this.onRadioCheck}))},getRangeRadio:function(){return this.rangeRadio||(this.rangeRadio=this.createRadio("range"))},getSheetRadio:function(){return this.sheetRadio||(this.sheetRadio=this.createRadio("worksheet"))},getDescField:function(){return this.ruleDescField||(this.ruleDescField=new SYNO.ux.TextField({name:"description",hideLabel:!0,emptyText:SYNO.SDS.Office._T("protection","enter_desc")}))},getRangeField:function(){return this.rangeField||(this.rangeField=new eq({name:"include",hideLabel:!0,dataBridge:A.rb.getDataBridge(),ignoreSheetName:!0,listeners:{render:function(e){SYNO.ux.Utils.setFormItemIndent(e),SYNO.ux.Utils.setFormFieldWidth(e)}}}))},getExcludeCheckbox:function(){return this.excludeCheckbox||(this.excludeCheckbox=new SYNO.ux.Checkbox({name:"exclude",boxLabel:SYNO.SDS.Office._T("protection","exclude_cond"),scope:this,handler:this.onExcludeCheck}))},getRangeGridPanel:function(){return this.rangeGridPanel||(this.rangeGridPanel=new SYNO.ux.GridPanel({width:280,height:129,hidden:!0,hideHeaders:!0,store:this.getRangeStore(),disableSelection:!0,columns:[this.createRangeColumn(),this.createActionColumn()],viewConfig:{markDirty:!1},bbar:[{xtype:"syno_button",cls:"syno-o-text-button",text:SYNO.SDS.Office._T("protection","add_range"),scope:this,handler:this.onAddRangeClick}]}))},createRangeColumn:function(){return new Ext.grid.TemplateColumn({dataIndex:"range",tpl:new Ext.XTemplate('<div class="syno-o-sh-range-field syno-ux-textfilter"><div class="x-form-field-wrap x-form-field-trigger-wrap"><input type="text" value="{range}" class="x-form-text x-form-field syno-o-sh-range-field-text syno-ux-textfilter-text" disabled><button class="syno-o-sh-range-field-trigger x-form-trigger syno-ux-textfilter-trigger"></button></div></div>'),listeners:{scope:this,click:this.onRangeColumnClick}})},createActionColumn:function(){return new Ext.grid.TemplateColumn({tpl:new Ext.XTemplate('<div class="syno-o-protection-delete-icon"></div>'),width:46,fixed:!0,listeners:{click:function(e,t,i){t.getStore().removeAt(i)}}})},getPermField:function(){return this.permField||(this.permField=new SYNO.ux.DisplayField({}))},getEditPermButton:function(){return this.editPermBtn||(this.editPermButton=new SYNO.ux.Button({text:SYNO.SDS.Office._T("protection","edit_perm"),btnStyle:"grey",scope:this,handler:this.onEditPermClick}))},getSheetCombo:function(){return this.sheetCombo||(this.sheetCombo=new SYNO.ux.ComboBox({hideLabel:!0,allowBlank:!1,store:this.getSheetStore(),valueField:"sheetId",displayField:"title"}))},getRangeStore:function(){return this.rangeStore||(this.rangeStore=new Ext.data.JsonStore({idProperty:"range",fields:[{name:"range",mapping:Ext.value}]}))},getSheetStore:function(){return this.sheetStore||(this.sheetStore=new Ext.data.JsonStore({idProperty:"sheetId",autoDestroy:!0,fields:["sheetId","title"],data:this.getSheetInfos()}))},getSheetInfos:function(){return A.rb.getWorkbook().getOrder().map(e=>({sheetId:e,title:A.rb.getWorkbook().getNameById(e)}))},getRangeText:function(e,t){return T.pt.createByWorkbook(e,A.rb.getWorkbook(),t)?.toLabel()},fillFormFields:function(e){if(e)return this.fillFromRuleJSON(e);var t=A.rb.getWorkbook().getCurrentSheet(),i=A.rb.getView().getSelectedRange();if(i&&t)return this.fillFromSelection(i,t)},fillFromRuleJSON:async function(e){if(this.getFormPanel().getComponent("type_fieldset").setVisible(!1),this.getDescField().setValue(e.description),"range"===e.type){var t=this.getRangeText(e.range,e.sheetId);this.getRangeRadio().setValue(!0),this.getRangeField().setValue(t)}else this.getSheetRadio().setValue(!0),this.getExcludeCheckbox().setValue(e.range.length>0),this.getRangeStore().loadData(e.range),this.getSheetCombo().setValue(e.sheetId);this.getPermField().setValue(this.getPermText(e.acl))},fillFromSelection:function(e,t){this.getRangeRadio().setValue(!0),this.getRangeField().setValue(T.pt.toLabel(e,t)),this.getSheetCombo().setValue(t.sheetId),this.getRangeStore().loadData([T.pt.toLabel(e)]),this.getPermField().setValue(this.getPermText(null))},getPermText:function(e){return SYNO.SDS.Office._T("protection","editable_"+(e?"acl":"warning"))},showPermWindow:function(e){var t=new SYNO.SDS.Office.Sheet.Protection.PermWindow({owner:this,acl:this.acl,creator:this.ruleJSON?this.ruleJSON.creator:(0,t1.Kr)()??(0,t1.Uu)()});return this.mon(t,"aclupdate",this.onUpdateACL,this,{single:!0}),t.show()},showRangeWindow:function(e){let t=this.getRangeStore(),i={title:e?_T("common","alt_edit"):_T("common","create"),hot:(0,A.O3)().value,initRangeStr:e?.get("range")??"",rangeScope:!1,onUpdateRange:i=>{this.show(),e?e.set("range",i):t.add(t.reader.extractData([i],!0))}};(0,et.NR)(this,eO,i,"t->t",{hide:!0,unmask:!0})},onRadioCheck:function(e,t){var i=e.inputValue+"_rule_panel";this.getFormPanel().getComponent(i).setVisible(t)},onExcludeCheck:function(e,t){this.getRangeGridPanel().setVisible(t)},onAddRangeClick:function(){this.showRangeWindow(null)},onEditPermClick:function(){this.showPermWindow(this.ruleJSON)},onRangeColumnClick:function(e,t,i,n){n.getTarget().classList.contains("syno-o-sh-range-field-trigger")&&this.showRangeWindow(t.getStore().getAt(i))},onApply:function(){var e=this.createRuleJSON();if(null!==e){this.hide();var t=this.close.bind(this);this.isEditMode()?this.onUpdateRule(e).then(t):this.onCreateRule(e).then(t)}},createRuleJSON:function(){var e,t,i,n;return this.getRangeRadio().getValue()&&this.getRangeField().isValid()&&(n=this.getRangeField().getValue(),i=T.pt.create(n,A.rb.getWorkbook().getCurrentSheet()),e=T.pt.toLabel(i.toSynoRange()),t=i.sheetInfo.sheetId),this.getSheetRadio().getValue()&&this.getSheetCombo().isValid()&&(e=this.getExcludeCheckbox().getValue()?this.getRangeStore().collect("range"):[],t=this.getSheetCombo().getValue()),e&&t?{ruleId:this.isEditMode()?this.ruleJSON.ruleId:"",type:this.getRangeRadio().getGroupValue(),range:e,sheetId:t,creator:(0,t1.Kr)()??(0,t1.Uu)(),description:this.getDescField().getValue(),acl:this.acl}:null},onCreateRule:function(e){return A.rb.getAction().createRule(e)},onUpdateRule:function(e){var t,i,n={};return(e.description!==this.ruleJSON.description&&(n.description=e.description),e.sheetId!==this.ruleJSON.sheetId&&(n.sheetId=e.sheetId),t=e.range,i=this.ruleJSON.range,("string"==typeof t&&"string"==typeof i?t!==i:Array.isArray(t)&&Array.isArray(i)&&t.sort().join(",")!==i.sort().join(","))&&(n.range=e.range),0===Object.keys(n).length)?Promise.resolve():A.rb.getAction().updateRule(e.ruleId,n)},onUpdateACL:function(e){this.isEditMode()&&function(e,t){if(!e||!t)return e!==t;function i(e,t){return e.length===t.length&&e.sort().join(",")===t.sort().join(",")}return!i(e.gids,t.gids)||!i(e.uids,t.uids)}(e,this.ruleJSON.acl)&&(this.ruleJSON.acl=e,A.rb.getAction().updateRule(this.ruleJSON.ruleId,{acl:e})),this.getPermField().setValue(this.getPermText(this.acl=e))}}),a1=(0,M.defineComponent)({__name:"ProtectionPanel",setup(e){let t=(0,k.eL)(),i=(0,M.ref)(!0);function n(){c(null)}let o=(0,A.uD)(),r=(0,M.computed)(()=>o.value?.getWorkbook().getWorkbookStore()),a=(0,M.computed)(()=>{if(!i.value)return s.value;let e=r.value?.current??"";return s.value.filter(t=>t.sheetId===e)}),s=(0,M.computed)(()=>o.value?.getWorkbook().getRuleStore().rules.filter(function(e){return r.value?.hasSheet(e.sheetId)??!1})??[]),l=(0,M.computed)(()=>t.loggedIn&&t.editable);function c(e){return new a0({ruleJSON:e,title:e?_T("common","alt_edit"):_T("common","create"),listeners:{afterrender:t=>{t.fillFormFields(e)}}}).show()}function d(e){(0,A.c)().setActiveSheet(e.sheetId),c(e)}return(e,t)=>((0,M.openBlock)(),(0,M.createBlock)(aw.Z,{"panel-key":(0,M.unref)(aK),title:(0,M.unref)(N.$)("handsontable","protection")},{body:(0,M.withCtx)(()=>[(0,M.createElementVNode)("div",{class:(0,M.normalizeClass)(e.$style.body)},[(0,M.createVNode)((0,M.unref)(e0.Z),{"syno-id":"create-rule",disabled:!l.value,onClick:n},{default:(0,M.withCtx)(()=>[(0,M.createTextVNode)((0,M.toDisplayString)((0,M.unref)(N.$)("protection","create_rule")),1)]),_:1},8,["disabled"]),(0,M.createVNode)((0,M.unref)(V.Z),{modelValue:i.value,"onUpdate:modelValue":t[0]||(t[0]=e=>i.value=e),"syno-id":"filter-rule"},{default:(0,M.withCtx)(()=>[(0,M.createTextVNode)((0,M.toDisplayString)((0,M.unref)(N.$)("protection","filter_rule")),1)]),_:1},8,["modelValue"]),(0,M.createVNode)(aq,{"rule-data":a.value,"is-read-only":!l.value,"is-editable":l.value,onEditRule:d},null,8,["rule-data","is-read-only","is-editable"])],2)]),_:1},8,["panel-key","title"]))}});var a2=i(1815),a3=i.n(a2);let a4={};a4.$style=a3();let a5=(0,q.default)(a1,[["__cssModules",a4]]);var a6=i(36852);let a8=(0,M.defineComponent)({__name:"ActionButton",props:{synoId:{},display:{}},setup:e=>(t,i)=>((0,M.openBlock)(),(0,M.createBlock)((0,M.unref)(e0.Z),(0,M.mergeProps)({"syno-id":`${e.synoId}-action-button`,type:"styleless",class:t.$style.action},t.$attrs),{default:(0,M.withCtx)(()=>[(0,M.createTextVNode)((0,M.toDisplayString)(e.display),1)]),_:1},16,["syno-id","class"]))});var a7=i(60005),a9=i.n(a7);let se={};se.$style=a9();let st=(0,q.default)(a8,[["__cssModules",se]]);var si=i(8771);let sn=["width","height"],so=(0,M.defineComponent)({name:"vIconIconPivotTableColumn",props:{width:{type:[Number,String],default:24},height:{type:[Number,String],default:24}}}),sr=(0,q.default)(so,[["render",function(e,t,i,n,o,r){return(0,M.openBlock)(),(0,M.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e.width,height:e.height},t[0]||(t[0]=[(0,M.createElementVNode)("path",{"fill-rule":"evenodd",d:"M6 20a1 1 0 0 1-1-1V5a1 1 0 0 1 2 0v14a1 1 0 0 1-1 1Zm5-1a1 1 0 1 0 2 0V5a1 1 0 1 0-2 0v14Zm7 1a1 1 0 0 1-1-1V5a1 1 0 1 1 2 0v14a1 1 0 0 1-1 1Z","clip-rule":"evenodd"},null,-1)]),8,sn)}]]),sa=["width","height"],ss=(0,M.defineComponent)({name:"vIconIconPivotTableRow",props:{width:{type:[Number,String],default:24},height:{type:[Number,String],default:24}}}),sl=(0,q.default)(ss,[["render",function(e,t,i,n,o,r){return(0,M.openBlock)(),(0,M.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e.width,height:e.height},t[0]||(t[0]=[(0,M.createElementVNode)("path",{"fill-rule":"evenodd",d:"M4 6a1 1 0 0 1 1-1h14a1 1 0 1 1 0 2H5a1 1 0 0 1-1-1Zm1 5a1 1 0 1 0 0 2h14a1 1 0 1 0 0-2H5Zm-1 7a1 1 0 0 1 1-1h14a1 1 0 1 1 0 2H5a1 1 0 0 1-1-1Z","clip-rule":"evenodd"},null,-1)]),8,sa)}]]),sc=["width","height"],sd=(0,M.defineComponent)({name:"vIconIconPivotTableValue",props:{width:{type:[Number,String],default:24},height:{type:[Number,String],default:24}}}),su=(0,q.default)(sd,[["render",function(e,t,i,n,o,r){return(0,M.openBlock)(),(0,M.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e.width,height:e.height},t[0]||(t[0]=[(0,M.createElementVNode)("path",{"fill-rule":"evenodd",d:"M5.069 5.636A1 1 0 0 1 6 5h12a1 1 0 1 1 0 2H8.558l4.62 4.265a1 1 0 0 1 0 1.47L8.558 17H18a1 1 0 1 1 0 2H6a1 1 0 0 1-.678-1.735L11.026 12 5.322 6.735a1 1 0 0 1-.253-1.1Z","clip-rule":"evenodd"},null,-1)]),8,sc)}]]),sh=["width","height"],sp=(0,M.defineComponent)({name:"vIconIconPivotTableFilter",props:{width:{type:[Number,String],default:24},height:{type:[Number,String],default:24}}}),sf=(0,q.default)(sp,[["render",function(e,t,i,n,o,r){return(0,M.openBlock)(),(0,M.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e.width,height:e.height},t[0]||(t[0]=[(0,M.createElementVNode)("path",{"fill-rule":"evenodd",d:"M4 7.308V5h16.154v2.308l-6.923 6.922h-2.308L4 7.308Zm12.115 1.154H8.038l3.462 3.46h1.154l3.461-3.46Zm-5.192 11.537V14.23h2.308v4.617l-1.154 1.152h-1.154Z","clip-rule":"evenodd"},null,-1)]),8,sh)}]]),sg=["width","height"],sm=(0,M.defineComponent)({name:"vIconBtEditGroup",props:{width:{type:[Number,String],default:16},height:{type:[Number,String],default:16}}}),sv=(0,q.default)(sm,[["render",function(e,t,i,n,o,r){return(0,M.openBlock)(),(0,M.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 16 16",width:e.width,height:e.height},t[0]||(t[0]=[(0,M.createElementVNode)("path",{"fill-rule":"evenodd",d:"M5.6 2.6v2.8h4.8V2.6H5.6ZM5 1a1 1 0 0 0-1 1v4a1 1 0 0 0 1 1h2.3v.8H4.199a.899.899 0 0 0-.899.9V10H4 2a1 1 0 0 0-1 1v3a1 1 0 0 0 1 1h4a1 1 0 0 0 1-1v-3a1 1 0 0 0-1-1H4h.7v-.8h6.6v.8h.7-2a1 1 0 0 0-1 1v3a1 1 0 0 0 1 1h4a1 1 0 0 0 1-1v-3a1 1 0 0 0-1-1h-2 .7V8.7c0-.493-.397-.9-.899-.9H8.7V7H11a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1H5ZM2.6 11.6v1.8h2.8v-1.8H2.6Zm8 1.8v-1.8h2.8v1.8h-2.8Z","clip-rule":"evenodd"},null,-1)]),8,sg)}]]);var sb=i(62795),sy=((v={})[v.DONT_MOVE_FIELD=0]="DONT_MOVE_FIELD",v[v.MOVE_FIELD=1]="MOVE_FIELD",v);let sw=Symbol();function s_(){return(0,M.inject)(sw)}function sx(e,t,i){return{fieldId:e,from:t,id:i}}function sS(e,t){return t.x<=e.clientX&&e.clientX<=t.right&&t.y<=e.clientY&&e.clientY<=t.bottom}function sC(e){let{top:t,bottom:i}=e.getBoundingClientRect();return(t+i)/2}let sk=(0,M.defineComponent)({name:"DragTarget",setup(e,t){let{slots:i}=t,n=(0,M.useCssModule)(),o=s_();function r(e,t,i){o&&o.setTarget(i)}function a(){o&&o.setTarget(null)}function s(e){(0,eK.isSafari)()&&e.preventDefault()}return()=>(0,M.h)(sb.Z,{...e,dragProps:{offsetX:-10,offsetY:-10,ghostCls:n["dd-ghost"]},onMousedown:s,onStartDrag:r,onEndDrag:a},{default:i.default})}});var sI=i(92762),sA=i.n(sI);let sT={};sT.$style=sA();let sE=(0,q.default)(sk,[["__cssModules",sT]]),sR=(0,M.defineComponent)({__name:"FieldCard",props:{active:{type:Boolean},disabled:{type:Boolean}},setup:e=>(t,i)=>((0,M.openBlock)(),(0,M.createElementBlock)("div",{class:(0,M.normalizeClass)([t.$style.card,e.active?t.$style.active:"",e.disabled?t.$style.disabled:""])},[(0,M.renderSlot)(t.$slots,"default")],2))});var sD=i(69191),sO=i.n(sD);let sM={};sM.$style=sO();let sN=(0,q.default)(sR,[["__cssModules",sM]]),sP=["width","height"],sL=(0,M.defineComponent)({name:"vIconBtDelete",props:{width:{type:[Number,String],default:16},height:{type:[Number,String],default:16}}}),sB=(0,q.default)(sL,[["render",function(e,t,i,n,o,r){return(0,M.openBlock)(),(0,M.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 16 16",width:e.width,height:e.height},t[0]||(t[0]=[(0,M.createElementVNode)("g",{"clip-path":"url(#f328b21d3501a9e51b47f487461c24ce__a)"},[(0,M.createElementVNode)("path",{"fill-rule":"evenodd",d:"M12.093 13.507c.473.473 1.173.54 1.564.15.39-.39.323-1.091-.15-1.564L9.414 8l4.093-4.093c.473-.473.54-1.173.15-1.564-.39-.39-1.091-.323-1.564.15L8 6.586 3.907 2.493c-.473-.473-1.173-.54-1.564-.15-.39.39-.323 1.091.15 1.564L6.586 8l-4.093 4.093c-.473.473-.54 1.173-.15 1.564.39.39 1.091.323 1.564-.15L8 9.414l4.093 4.093Z","clip-rule":"evenodd"})],-1),(0,M.createElementVNode)("defs",null,[(0,M.createElementVNode)("clipPath",{id:"f328b21d3501a9e51b47f487461c24ce__a"},[(0,M.createElementVNode)("path",{d:"M0 0h16v16H0z"})])],-1)]),8,sP)}]]),sF=(0,M.defineComponent)({__name:"AxisField",props:{name:{}},emits:["remove-field"],setup(e,t){let{emit:i}=t,n=(0,M.useSlots)(),o=(0,M.computed)(()=>!!n.default);function r(){i("remove-field")}return(t,i)=>{let n=(0,M.resolveDirective)("tooltip");return(0,M.openBlock)(),(0,M.createBlock)(sN,(0,M.mergeProps)({class:t.$style.card},t.$attrs),{default:(0,M.withCtx)(()=>[(0,M.createElementVNode)("div",{class:(0,M.normalizeClass)(t.$style.header)},[(0,M.withDirectives)(((0,M.openBlock)(),(0,M.createElementBlock)("div",{class:(0,M.normalizeClass)(t.$style.title)},[(0,M.createTextVNode)((0,M.toDisplayString)(e.name),1)],2)),[[n,{content:e.name,delay:1e3}]]),(0,M.renderSlot)(t.$slots,"custom-button"),(0,M.createVNode)((0,M.unref)(e0.Z),{key:"close-button","syno-id":"pivot-field-close-button",type:"styleless",display:"icon",style:{height:"20px",width:"20px"},onClick:r},{icon:(0,M.withCtx)(()=>[(0,M.createVNode)((0,M.unref)(eM.Z),{size:[16,16],"svg-icon":(0,M.unref)(sB),"svg-icon-set":"set22"},null,8,["svg-icon"])]),_:1})],2),o.value?((0,M.openBlock)(),(0,M.createElementBlock)("div",{key:0,class:(0,M.normalizeClass)(t.$style.content)},[(0,M.renderSlot)(t.$slots,"default")],2)):(0,M.createCommentVNode)("",!0)]),_:3},16,["class"])}}});var sV=i(82447),sz=i.n(sV);let sH={};sH.$style=sz();let sW=(0,q.default)(sF,[["__cssModules",sH]]),sY={ref:"container"},sU="axis-field",sG=(0,M.defineComponent)({__name:"AxisComponent",props:{icon:{},title:{},fields:{},candidateFields:{},axis:{}},emits:["add-field","remove-field"],setup(e,t){let{emit:i}=t,n=(0,M.useSlots)(),o=s_(),r=(0,M.ref)(null),a=(0,M.ref)(null),s=(0,M.ref)(-1),l=(0,M.useTemplateRef)("container"),c=(0,M.computed)(()=>!!n["field-content"]),d=o?o.draggingPayload:(0,M.readonly)((0,M.ref)(null)),u=(0,M.computed)(()=>{let t=d.value;return!!t&&(!e.fields.find(e=>p(e)===t.fieldId)||e.axis===t.from?.axis)}),h=(0,M.computed)(()=>{let t=s.value,i=d.value;if(t<0||!i)return!1;let n=p(i);return!(t>0&&p(e.fields[t-1])===n||t<e.fields.length&&p(e.fields[t])===n)});function p(e){return e.id??e.fieldId}function f(t){if(!u.value)return void g();let i=-1===s.value&&d.value?.from?.axis===e.axis?d.value.from.position:s.value,n=a.value?.querySelectorAll(`.${sU}`)??[];for(i=Math.min(Math.max(0,i),n.length);i<n.length&&!(sC(n[i])>t);)i+=1;for(;i>0&&!(sC(n[i-1])<t);)i-=1;s.value=i}function g(){s.value=-1}function m(e){f(e.clientY)}function v(e){f(e.clientY)}function b(){g()}function y(){if(d.value&&s.value>=0&&h.value){let t=d.value.from,n=s.value;t&&t.axis===e.axis&&t.position<n&&(n-=1),i("add-field",p(d.value),n,t?.axis??null)}g()}function w(){let e=d.value;e&&i("remove-field",p(e))}return(0,M.onMounted)(()=>{r.value&&o&&o.registerDragZone(r.value.getDragZone())}),(t,n)=>((0,M.openBlock)(),(0,M.createElementBlock)("div",sY,[(0,M.createElementVNode)("div",{class:(0,M.normalizeClass)(t.$style.header)},[(0,M.createVNode)((0,M.unref)(eM.Z),{"svg-icon":e.icon,"svg-icon-set":"set01"},null,8,["svg-icon"]),(0,M.createElementVNode)("div",{class:(0,M.normalizeClass)(t.$style.title)},(0,M.toDisplayString)(e.title),3),(0,M.renderSlot)(t.$slots,"custom-button"),(0,M.createVNode)((0,M.unref)(e0.Z),{"syno-id":"axis-field-add-btn",size:"small"},{dropdown:(0,M.withCtx)(()=>[(0,M.createVNode)((0,M.unref)(tn.NV),{"syno-id":"axis-add-menu",class:(0,M.normalizeClass)(t.$style.menu),style:(0,M.normalizeStyle)({maxWidth:(0,M.unref)(l)?`${Math.floor((0,M.unref)(l)?.getBoundingClientRect().width??0)}px`:""})},{default:(0,M.withCtx)(()=>[((0,M.openBlock)(!0),(0,M.createElementBlock)(M.Fragment,null,(0,M.renderList)(e.candidateFields,e=>((0,M.openBlock)(),(0,M.createBlock)((0,M.unref)(tt.Z),{key:e.fieldId,"syno-id":`axis-add-menu-item-${e.fieldId}`,title:e.name,onClick:t=>{i("add-field",e.fieldId,-1,null)}},null,8,["syno-id","title","onClick"]))),128))]),_:1},8,["class","style"])]),default:(0,M.withCtx)(()=>[(0,M.createTextVNode)(" "+(0,M.toDisplayString)((0,M.unref)(N.$)("common","add")),1)]),_:1})],2),(0,M.createVNode)((0,M.unref)(a6.Z),{ref_key:"dragZone",ref:r,"drag-props":{isOver:(0,M.unref)(sS),order:(0,M.unref)(sy).MOVE_FIELD},onEnter:m,onOver:v,onOut:b,onDrop:y},{default:(0,M.withCtx)(()=>[(0,M.createElementVNode)("div",{class:(0,M.normalizeClass)(t.$style.content)},[0===e.fields.length?((0,M.openBlock)(),(0,M.createBlock)(sN,{key:0,class:(0,M.normalizeClass)([t.$style["content-empty"],s.value>=0?t.$style["content-empty-active"]:t.$style["content-empty-normal"]]),active:s.value>=0},{default:(0,M.withCtx)(()=>[(0,M.createElementVNode)("div",null,(0,M.toDisplayString)((0,M.unref)(N.$)("pivot_table","empty_axis_field_message")),1)]),_:1},8,["class","active"])):((0,M.openBlock)(),(0,M.createElementBlock)("div",{key:1,ref_key:"contentListWrapper",ref:a,class:(0,M.normalizeClass)(t.$style["content-list"])},[(0,M.withDirectives)((0,M.createElementVNode)("div",{class:(0,M.normalizeClass)(t.$style["drop-line"])},null,2),[[M.vShow,h.value]]),((0,M.openBlock)(!0),(0,M.createElementBlock)(M.Fragment,null,(0,M.renderList)(e.fields,(n,o)=>((0,M.openBlock)(),(0,M.createBlock)(sE,{key:p(n),payload:(0,M.unref)(sx)(n.fieldId,{axis:e.axis,position:o},"id"in n?n.id:void 0),onInvalidDrop:w},{default:(0,M.withCtx)(()=>[(0,M.createVNode)(sW,{name:n.name,disabled:!!(0,M.unref)(d)&&p((0,M.unref)(d))===p(n)&&(0,M.unref)(d).from?.axis===e.axis,style:(0,M.normalizeStyle)({order:2*(o>=s.value)}),class:(0,M.normalizeClass)(sU),onRemoveField:e=>{i("remove-field",p(n))}},(0,M.createSlots)({"custom-button":(0,M.withCtx)(()=>[(0,M.renderSlot)(t.$slots,"field-button",{field:n})]),_:2},[c.value?{name:"default",fn:(0,M.withCtx)(()=>[(0,M.renderSlot)(t.$slots,"field-content",{field:n})]),key:"0"}:void 0]),1032,["name","disabled","style","onRemoveField"])]),_:2},1032,["payload"]))),128))],2))],2)]),_:3},8,["drag-props"])],512))}});var sZ=i(3783),sj=i.n(sZ);let sq={};sq.$style=sj();let sK=(0,q.default)(sG,[["__cssModules",sq]]),sX=(0,M.defineComponent)({__name:"DataFieldSelectItem",props:{label:{}},setup(e){let t=(0,M.useAttrs)();return(i,n)=>((0,M.openBlock)(),(0,M.createElementBlock)("div",{class:(0,M.normalizeClass)(i.$style.wrapper)},[(0,M.createElementVNode)("div",null,(0,M.toDisplayString)(`${e.label}${(0,M.unref)(N.$)("common","colon")}`),1),(0,M.createVNode)((0,M.unref)(H.Z),(0,M.mergeProps)({class:i.$style.select,"syno-id":"data-field-select",width:"auto"},(0,M.unref)(t)),null,16,["class"])],2))}});var sQ=i(38626),s$=i.n(sQ);let sJ={};sJ.$style=s$();let s0=(0,q.default)(sX,[["__cssModules",sJ]]),s1=(0,M.defineComponent)({__name:"AxisContainer",setup(e){let t=[T.os.sum,T.os.countA,T.os.count,T.os.avg,T.os.max,T.os.min,T.os.product,T.os.stdDev,T.os.stdDevP,T.os.var,T.os.varP].map(e=>({label:(0,N.$)("pivot_table_aggregation_function",(0,si.Z)(e)),value:e})),i=Object.keys(T.sk).map(e=>({label:(0,N.$)("pivot_table_display_function",(0,si.Z)(e)),value:e})),n=tK(),o=(0,M.computed)(()=>n.colFields),r=(0,M.computed)(()=>n.rowFields),a=(0,M.computed)(()=>n.dataFields),s=(0,M.computed)(()=>n.valuesFieldAxis),l=(0,M.computed)(()=>"row"===s.value?sl:sr),c=(0,M.computed)(()=>n.pageFields),d=(0,M.computed)(()=>{let e=new Set;for(let t of[n.colFields,n.rowFields,n.pageFields])for(let{fieldId:i}of t)e.add(i);return n.pivotFields.filter(t=>!e.has(t.fieldId))});function u(e,t,i,o){"data"===o?(0,A.s7)().movePivotDataFieldCommand(n.tableId,t,i,"data"!==e?e:void 0):null===o&&"data"===e?(0,A.s7)().insertPivotDataFieldCommand(n.tableId,t,i,null):(0,A.s7)().movePivotAxisFieldCommand(n.tableId,t,e,i)}function h(e,t){"data"===e?(0,A.s7)().removePivotDataFieldCommand(n.tableId,t):(0,A.s7)().movePivotAxisFieldCommand(n.tableId,t,null,0)}function p(e){s.value!==e&&(0,A.s7)().setPivotTableValuesFieldAxis(n.tableId,e)}function f(e){return n.pivotFields.find(t=>t.fieldId===e)?.type??null}return(e,s)=>{let g=(0,M.resolveDirective)("tooltip");return(0,M.openBlock)(),(0,M.createElementBlock)("div",{class:(0,M.normalizeClass)(e.$style["axis-container"])},[((0,M.openBlock)(),(0,M.createElementBlock)(M.Fragment,null,(0,M.renderList)(["col","row"],t=>(0,M.createVNode)(sK,{key:t,icon:"row"===t?(0,M.unref)(sl):(0,M.unref)(sr),title:(0,M.unref)(N.$)("pivot_table","row"===t?"axis_row":"axis_col"),fields:"row"===t?r.value:o.value,"candidate-fields":d.value,axis:t,onAddField:(e,i,n)=>u(t,e,i,n),onRemoveField:e=>h(t,e)},{"field-content":(0,M.withCtx)(i=>{let{field:o}=i;return[(0,M.createVNode)((0,M.unref)(V.Z),{"syno-id":`${t}-field-${o.fieldId}-checkbox`,"model-value":o.showTotal,class:(0,M.normalizeClass)(e.$style.checkbox),onChange:e=>{var t;return t=o.fieldId,void(0,A.s7)().setPivotFieldAttr(n.tableId,t,[["subtotals",e?"default":"none"]])}},{default:(0,M.withCtx)(()=>[(0,M.createTextVNode)((0,M.toDisplayString)((0,M.unref)(N.$)("pivot_table","field_show_total")),1)]),_:2},1032,["syno-id","model-value","class","onChange"])]}),"field-button":(0,M.withCtx)(e=>{let{field:i}=e;return[!function(e){let t=f(e.fieldId);return t===T.E5.datetime||t===T.E5.number}(i)?(0,M.createCommentVNode)("",!0):(0,M.withDirectives)(((0,M.openBlock)(),(0,M.createBlock)((0,M.unref)(e0.Z),{key:0,"syno-id":`${t}-field-${i.fieldId}-edit-button`,type:"styleless",display:"icon",style:{height:"20px",width:"20px"},onClick:e=>(function(e,t){let i=n.tableId,o=f(t);o===T.E5.datetime?(0,et.hy)(tN,{tableId:i,fieldId:t,axis:e}):o===T.E5.number&&(0,et.hy)(tZ,{tableId:i,fieldId:t})})(t,i.fieldId)},{icon:(0,M.withCtx)(()=>[(0,M.createVNode)((0,M.unref)(eM.Z),{size:[16,16],"svg-icon":(0,M.unref)(sv),"svg-icon-set":"set14"},null,8,["svg-icon"])]),_:2},1032,["syno-id","onClick"])),[[g,function(e){let t=f(e.fieldId);return t===T.E5.datetime?(0,N.$)("pivot_table","regroup_date"):t===T.E5.number?(0,N.$)("pivot_table","regroup_number"):""}(i)]])]}),_:2},1032,["icon","title","fields","candidate-fields","axis","onAddField","onRemoveField"])),64)),(0,M.createVNode)(sK,{icon:(0,M.unref)(su),title:(0,M.unref)(N.$)("pivot_table","axis_data"),fields:a.value,"candidate-fields":(0,M.unref)(n).pivotFields,axis:"data",onAddField:s[2]||(s[2]=(e,t,i)=>u("data",e,t,i)),onRemoveField:s[3]||(s[3]=e=>h("data",e))},(0,M.createSlots)({"field-content":(0,M.withCtx)(e=>{let{field:o}=e;return[(0,M.createVNode)(s0,{label:(0,M.unref)(N.$)("pivot_table","data_field_summarized_by"),options:(0,M.unref)(t),"model-value":o.aggregation,onSelect:e=>{var t,i;return t=o.id,i=e.value,void(0,A.s7)().setPivotDataFieldAttr(n.tableId,t,[["aggregation",i]])}},null,8,["label","options","model-value","onSelect"]),(0,M.createVNode)(s0,{label:(0,M.unref)(N.$)("pivot_table","data_field_show_as"),options:(0,M.unref)(i),"model-value":o.displayType,onSelect:e=>{var t,i;return t=o.id,i=e.value,void(0,A.s7)().setPivotDataFieldAttr(n.tableId,t,[["displayType",i]])}},null,8,["label","options","model-value","onSelect"])]}),_:2},[a.value.length>1?{name:"custom-button",fn:(0,M.withCtx)(()=>[(0,M.createVNode)((0,M.unref)(e0.Z),{"syno-id":"data-axis-button",type:"dropdown",display:"icon",size:"small","popup-container":()=>"body"},{icon:(0,M.withCtx)(()=>[(0,M.createVNode)((0,M.unref)(eM.Z),{"svg-icon":l.value,"svg-icon-set":"set01"},null,8,["svg-icon"])]),dropdown:(0,M.withCtx)(()=>[(0,M.createVNode)((0,M.unref)(tn.NV),{"syno-id":"axis-add-menu","auto-focus":!1},{default:(0,M.withCtx)(()=>[(0,M.createVNode)((0,M.unref)(tt.Z),{"syno-id":"row-item",title:(0,M.unref)(N.$)("pivot_table","data_field_totals_by_row"),icon:{svgIcon:(0,M.unref)(sl),svgIconSet:"set01"},onClick:s[0]||(s[0]=e=>p("row"))},null,8,["title","icon"]),(0,M.createVNode)((0,M.unref)(tt.Z),{"syno-id":"column-item",title:(0,M.unref)(N.$)("pivot_table","data_field_totals_by_col"),icon:{svgIcon:(0,M.unref)(sr),svgIconSet:"set01"},onClick:s[1]||(s[1]=e=>p("col"))},null,8,["title","icon"])]),_:1})]),_:1})]),key:"0"}:void 0]),1032,["icon","title","fields","candidate-fields"]),(0,M.createVNode)(sK,{icon:(0,M.unref)(sf),title:(0,M.unref)(N.$)("pivot_table","axis_page"),fields:c.value,"candidate-fields":d.value,axis:"page",onAddField:s[4]||(s[4]=(e,t,i)=>u("page",e,t,i)),onRemoveField:s[5]||(s[5]=e=>h("page",e))},null,8,["icon","title","fields","candidate-fields"])],2)}}});var s2=i(61958),s3=i.n(s2);let s4={};s4.$style=s3();let s5=(0,q.default)(s1,[["__cssModules",s4]]),s6=["width","height"],s8=(0,M.defineComponent)({name:"vIconIconPivotTableDate",props:{width:{type:[Number,String],default:20},height:{type:[Number,String],default:20}}}),s7=(0,q.default)(s8,[["render",function(e,t,i,n,o,r){return(0,M.openBlock)(),(0,M.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 20 20",width:e.width,height:e.height},t[0]||(t[0]=[(0,M.createElementVNode)("path",{"fill-rule":"evenodd",d:"M5 7v8h10V7H5ZM4 5a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1H4Z","clip-rule":"evenodd"},null,-1),(0,M.createElementVNode)("rect",{width:"2",height:"3",x:"6",y:"3",rx:"1"},null,-1),(0,M.createElementVNode)("rect",{width:"2",height:"3",x:"12",y:"3",rx:"1"},null,-1),(0,M.createElementVNode)("path",{"fill-rule":"evenodd",d:"M17 11H3V9h14v2Z","clip-rule":"evenodd"},null,-1)]),8,s6)}]]),s9=["width","height"],le=(0,M.defineComponent)({name:"vIconIconPivotTableNumber",props:{width:{type:[Number,String],default:20},height:{type:[Number,String],default:20}}}),lt=(0,q.default)(le,[["render",function(e,t,i,n,o,r){return(0,M.openBlock)(),(0,M.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 20 20",width:e.width,height:e.height},t[0]||(t[0]=[(0,M.createStaticVNode)('<mask id="f67a0fd8ea78fea44d53a025e6ad1bd9__a" width="19" height="10" x=".5" y="5" maskUnits="userSpaceOnUse"><path d="M.5 5h19v10H.5z"></path><path fill-rule="evenodd" d="M5.073 14.625a.2.2 0 0 0 .2-.2V6.2a.2.2 0 0 0-.2-.2h-.995a.21.21 0 0 0-.191.131c-.197.47-.525.885-.987 1.246-.45.35-.872.599-1.263.748a.209.209 0 0 0-.137.194V9.39c0 .137.133.233.26.185A5.627 5.627 0 0 0 3.628 8.42v6.005c0 .11.09.2.2.2h1.246Zm6.772-1.53c.11 0 .2.09.2.2v1.13a.2.2 0 0 1-.2.2H6.496a.192.192 0 0 1-.192-.22c.082-.498.26-.971.532-1.42.312-.52.93-1.208 1.851-2.063.743-.692 1.198-1.16 1.366-1.406.226-.34.34-.676.34-1.008 0-.367-.1-.649-.3-.844-.195-.2-.466-.299-.814-.299-.343 0-.617.104-.82.31-.173.177-.283.452-.332.826a.21.21 0 0 1-.226.185l-1.234-.123a.194.194 0 0 1-.175-.22c.12-.803.418-1.386.895-1.751C7.902 6.197 8.547 6 9.32 6c.848 0 1.514.229 1.998.686.485.457.727 1.025.727 1.705 0 .386-.07.755-.211 1.107a4.436 4.436 0 0 1-.656 1.096c-.2.254-.559.619-1.078 1.096-.52.476-.85.792-.99.949a2.934 2.934 0 0 0-.335.457h3.07Zm1.228-.553a.191.191 0 0 1 .169-.22l1.199-.146a.214.214 0 0 1 .23.173c.067.311.193.556.378.735.223.215.492.322.808.322.34 0 .625-.129.856-.386.234-.258.351-.606.351-1.043 0-.415-.11-.743-.334-.985a1.065 1.065 0 0 0-.814-.363c-.175 0-.378.028-.609.084a.103.103 0 0 1-.126-.112L15.33 9.5a.103.103 0 0 1 .102-.088c.401-.003.711-.099.93-.288.234-.207.35-.48.35-.82 0-.29-.085-.52-.257-.692-.172-.172-.4-.257-.685-.257a.992.992 0 0 0-.721.292c-.16.158-.27.374-.33.648a.216.216 0 0 1-.242.173l-1.105-.188a.194.194 0 0 1-.16-.236c.104-.427.248-.773.43-1.041a2.15 2.15 0 0 1 .891-.732c.383-.18.81-.27 1.283-.27.809 0 1.457.258 1.946.773.402.422.603.899.603 1.43 0 .754-.412 1.356-1.236 1.805.492.105.885.342 1.178.709.297.367.445.81.445 1.33 0 .754-.275 1.396-.826 1.928-.551.53-1.236.796-2.057.796-.777 0-1.422-.222-1.934-.668a2.61 2.61 0 0 1-.862-1.56Z" clip-rule="evenodd"></path></mask><path fill-rule="evenodd" d="M5.073 14.625a.2.2 0 0 0 .2-.2V6.2a.2.2 0 0 0-.2-.2h-.995a.21.21 0 0 0-.191.131c-.197.47-.525.885-.987 1.246-.45.35-.872.599-1.263.748a.209.209 0 0 0-.137.194V9.39c0 .137.133.233.26.185A5.627 5.627 0 0 0 3.628 8.42v6.005c0 .11.09.2.2.2h1.246Zm6.772-1.53c.11 0 .2.09.2.2v1.13a.2.2 0 0 1-.2.2H6.496a.192.192 0 0 1-.192-.22c.082-.498.26-.971.532-1.42.312-.52.93-1.208 1.851-2.063.743-.692 1.198-1.16 1.366-1.406.226-.34.34-.676.34-1.008 0-.367-.1-.649-.3-.844-.195-.2-.466-.299-.814-.299-.343 0-.617.104-.82.31-.173.177-.283.452-.332.826a.21.21 0 0 1-.226.185l-1.234-.123a.194.194 0 0 1-.175-.22c.12-.803.418-1.386.895-1.751C7.902 6.197 8.547 6 9.32 6c.848 0 1.514.229 1.998.686.485.457.727 1.025.727 1.705 0 .386-.07.755-.211 1.107a4.436 4.436 0 0 1-.656 1.096c-.2.254-.559.619-1.078 1.096-.52.476-.85.792-.99.949a2.934 2.934 0 0 0-.335.457h3.07Zm1.228-.553a.191.191 0 0 1 .169-.22l1.199-.146a.214.214 0 0 1 .23.173c.067.311.193.556.378.735.223.215.492.322.808.322.34 0 .625-.129.856-.386.234-.258.351-.606.351-1.043 0-.415-.11-.743-.334-.985a1.065 1.065 0 0 0-.814-.363c-.175 0-.378.028-.609.084a.103.103 0 0 1-.126-.112L15.33 9.5a.103.103 0 0 1 .102-.088c.401-.003.711-.099.93-.288.234-.207.35-.48.35-.82 0-.29-.085-.52-.257-.692-.172-.172-.4-.257-.685-.257a.992.992 0 0 0-.721.292c-.16.158-.27.374-.33.648a.216.216 0 0 1-.242.173l-1.105-.188a.194.194 0 0 1-.16-.236c.104-.427.248-.773.43-1.041a2.15 2.15 0 0 1 .891-.732c.383-.18.81-.27 1.283-.27.809 0 1.457.258 1.946.773.402.422.603.899.603 1.43 0 .754-.412 1.356-1.236 1.805.492.105.885.342 1.178.709.297.367.445.81.445 1.33 0 .754-.275 1.396-.826 1.928-.551.53-1.236.796-2.057.796-.777 0-1.422-.222-1.934-.668a2.61 2.61 0 0 1-.862-1.56Z" clip-rule="evenodd"></path><path d="m3.887 6.131-.093-.038.093.038ZM2.9 7.377l.062.079-.062-.08Zm-1.263.748.035.094-.035-.094Zm.124 1.45-.036-.093.036.094ZM3.627 8.42h.1v-.23l-.168.157.068.073Zm2.677 5.984-.099-.016.099.016Zm.532-1.42.085.052-.085-.052Zm1.851-2.062.069.073-.069-.073Zm1.366-1.406.082.056-.082-.056Zm.04-1.852-.07.07v.001l.07-.07Zm-1.634.012.071.07-.071-.07Zm-.332.825.1.013-.1-.013Zm-.226.185.01-.1-.01.1Zm-1.234-.123-.01.1.01-.1Zm-.175-.22.1.015-.1-.015Zm.895-1.751.06.08-.06-.08Zm4.447 2.906-.093-.037.093.037Zm-.656 1.096-.079-.062.079.062Zm-2.069 2.045-.074-.067.074.067Zm-.334.457-.086-.05-.087.15h.173v-.1Zm4.467-.774-.012-.1.012.1Zm-.169.22.099-.017-.099.017Zm1.368-.366.012.1-.012-.1Zm.23.173-.097.02.098-.02Zm.378.735.07-.072-.07.072Zm1.664-.064-.074-.068.074.068Zm-1.406-2.307-.023-.097.023.097Zm-.126-.112-.1-.013.1.013ZM15.33 9.5l-.1-.013.1.013Zm.102-.088-.001-.1v.1Zm.93-.288.065.076v-.001l-.066-.075Zm-1.313-1.477-.07-.07.07.07Zm-.33.648-.097-.021.097.02Zm-.242.173-.016.098.016-.098Zm-1.105-.188.016-.099-.016.099Zm-.16-.236.098.023-.097-.023Zm.43-1.041-.082-.057.083.057Zm.891-.732.042.09-.042-.09Zm3.229.503-.073.07.073-.07Zm-.633 3.235-.048-.088-.237.13.264.056.02-.098Zm1.178.709-.078.062.078-.062Zm-4.371 3.386-.066.076.066-.075Zm-8.763.322a.1.1 0 0 1-.1.1v.2a.3.3 0 0 0 .3-.3h-.2Zm0-8.225v8.225h.2V6.2h-.2Zm-.1-.1a.1.1 0 0 1 .1.1h.2a.3.3 0 0 0-.3-.3v.2Zm-.995 0h.995v-.2h-.995v.2Zm-.1.07a.11.11 0 0 1 .1-.07v-.2a.31.31 0 0 0-.284.193l.185.077ZM2.963 7.456c.473-.37.813-.799 1.017-1.286l-.185-.077c-.188.45-.505.853-.955 1.205l.123.158Zm-1.29.763c.404-.154.833-.41 1.29-.763l-.123-.158c-.446.346-.858.59-1.238.734l.071.187Zm-.072.1c0-.043.028-.083.072-.1l-.071-.187a.309.309 0 0 0-.201.287h.2Zm0 1.072V8.32h-.2v1.07h.2Zm.125.091a.094.094 0 0 1-.125-.09h-.2c0 .202.2.351.396.277l-.07-.187ZM3.56 8.347a5.527 5.527 0 0 1-1.834 1.135l.071.187a5.727 5.727 0 0 0 1.9-1.176l-.137-.146Zm.168 6.078V8.42h-.2v6.005h.2Zm.1.1a.1.1 0 0 1-.1-.1h-.2a.3.3 0 0 0 .3.3v-.2Zm1.246 0H3.827v.2h1.246v-.2Zm7.072-1.23a.3.3 0 0 0-.3-.3v.2a.1.1 0 0 1 .1.1h.2Zm0 1.13v-1.13h-.2v1.13h.2Zm-.3.3a.3.3 0 0 0 .3-.3h-.2a.1.1 0 0 1-.1.1v.2Zm-5.349 0h5.349v-.2h-5.35v.2Zm-.291-.337a.292.292 0 0 0 .291.337v-.2a.092.092 0 0 1-.094-.104l-.197-.033Zm.545-1.456a4.1 4.1 0 0 0-.545 1.456l.197.033c.08-.484.253-.946.52-1.385l-.172-.104Zm1.87-2.083c-.924.856-1.55 1.551-1.87 2.084l.172.103c.304-.507.913-1.186 1.834-2.04l-.137-.147Zm1.35-1.39c-.16.235-.606.696-1.35 1.39l.136.146c.74-.69 1.204-1.166 1.38-1.423l-.166-.113Zm.323-.951c0 .308-.105.625-.323.952l.166.111c.235-.352.357-.707.357-1.063h-.2Zm-.27-.773c.175.172.27.424.27.773h.2c0-.385-.105-.696-.33-.915l-.14.142Zm-.744-.27c.328 0 .571.094.743.27l.143-.14c-.218-.224-.518-.33-.886-.33v.2Zm-.749.28c.181-.184.427-.28.75-.28v-.2c-.366 0-.667.111-.892.34l.142.14Zm-.304.769c.047-.363.153-.614.304-.768l-.142-.14c-.195.198-.31.497-.36.882l.198.026Zm-.335.272a.31.31 0 0 0 .335-.272l-.198-.026a.11.11 0 0 1-.117.099l-.02.199Zm-1.234-.123 1.234.123.02-.2-1.234-.122-.02.199Zm-.264-.335c-.025.17.1.318.264.335l.02-.2a.094.094 0 0 1-.086-.105l-.198-.03Zm.933-1.816c-.504.386-.81.997-.933 1.816l.198.03c.117-.786.407-1.343.856-1.687l-.121-.159ZM9.32 5.9c-.79 0-1.458.202-1.994.612l.121.16c.496-.38 1.118-.572 1.873-.572v-.2Zm2.067.713c-.508-.48-1.2-.713-2.067-.713v.2c.83 0 1.469.223 1.93.658l.137-.145Zm.758 1.778c0-.707-.253-1.302-.758-1.778l-.137.145c.464.438.695.98.695 1.633h.2Zm-.218 1.144c.145-.363.218-.745.218-1.144h-.2c0 .374-.068.73-.204 1.07l.186.074Zm-.67 1.12c.304-.388.529-.761.67-1.12l-.186-.074a4.335 4.335 0 0 1-.642 1.071l.157.123Zm-1.09 1.108c.52-.477.885-.847 1.09-1.107l-.158-.124c-.194.247-.548.608-1.067 1.084l.135.147Zm-.983.943c.137-.152.463-.465.983-.943l-.135-.147c-.519.476-.853.795-.997.956l.149.134Zm-.322.44a2.84 2.84 0 0 1 .323-.442l-.15-.131c-.141.16-.256.317-.346.473l.173.1Zm2.983-.15h-3.07v.2h3.07v-.2Zm1.385-.774a.291.291 0 0 0-.255.337l.197-.034a.091.091 0 0 1 .082-.104l-.024-.198Zm1.199-.145-1.2.146.025.198 1.199-.145-.024-.199Zm.34.251a.314.314 0 0 0-.34-.25l.024.198c.052-.007.107.031.12.094l.196-.042Zm.35.684c-.169-.162-.287-.388-.35-.684l-.195.042c.07.326.203.59.405.786l.14-.144Zm.738.294c-.29 0-.535-.098-.739-.294l-.139.144c.242.233.537.35.878.35v-.2Zm.781-.353c-.212.237-.47.353-.78.353v.2c.368 0 .68-.141.93-.42l-.15-.133Zm.326-.976c0 .419-.111.74-.325.975l.148.135c.255-.28.378-.655.378-1.11h-.2Zm-.307-.917c.201.22.308.52.308.917h.2c0-.433-.117-.787-.36-1.053l-.148.136Zm-.741-.331c.291 0 .537.109.74.33l.148-.134a1.165 1.165 0 0 0-.888-.396v.2Zm-.585.082c.226-.056.42-.082.585-.082v-.2c-.185 0-.396.03-.632.087l.047.194Zm-.25-.223a.203.203 0 0 0 .25.223l-.047-.195h-.004v-.001l-.198-.027Zm.15-1.102-.15 1.102.199.027.149-1.103-.198-.026Zm.2-.175a.203.203 0 0 0-.2.175l.198.026.003-.001-.001-.2Zm.865-.264c-.195.169-.478.261-.865.264l.001.2c.416-.003.752-.102.995-.312l-.131-.152Zm.317-.744c0 .314-.107.559-.318.745l.132.15c.258-.228.386-.53.386-.895h-.2Zm-.229-.621c.15.15.229.353.229.62h.2c0-.31-.093-.567-.287-.761l-.142.141Zm-.614-.228c.263 0 .465.078.614.228l.142-.141c-.194-.194-.45-.287-.756-.287v.2Zm-.651.264a.892.892 0 0 1 .65-.264v-.2a1.09 1.09 0 0 0-.79.321l.14.143Zm-.302.597c.056-.26.158-.456.302-.597l-.14-.143c-.178.174-.295.41-.357.698l.195.042Zm-.356.25a.316.316 0 0 0 .356-.25l-.195-.042c-.015.066-.074.104-.128.095l-.033.197Zm-1.106-.188 1.106.188.033-.197-1.106-.188-.033.197Zm-.24-.358a.294.294 0 0 0 .24.358l.033-.197a.094.094 0 0 1-.078-.114l-.194-.047Zm.445-1.073c-.192.28-.339.639-.444 1.073l.194.047c.102-.418.241-.753.415-1.008l-.165-.112Zm.931-.767a2.25 2.25 0 0 0-.93.766l.164.114a2.05 2.05 0 0 1 .85-.699l-.084-.181Zm1.325-.279c-.485 0-.928.092-1.325.279l.085.181c.368-.173.78-.26 1.24-.26v-.2Zm2.018.805c-.51-.539-1.186-.805-2.018-.805v.2c.786 0 1.406.25 1.873.742l.145-.137Zm.631 1.498c0-.56-.213-1.06-.63-1.499l-.146.138c.387.406.576.858.576 1.361h.2Zm-1.288 1.893c.847-.462 1.288-1.093 1.288-1.893h-.2c0 .708-.383 1.28-1.184 1.717l.096.176Zm1.208.558a2.087 2.087 0 0 0-1.235-.744l-.042.196c.471.1.843.325 1.12.673l.157-.125Zm.467 1.393c0-.54-.155-1.006-.468-1.393l-.155.126c.28.347.423.768.423 1.267h.2Zm-.857 2c.57-.55.857-1.219.857-2h-.2c0 .726-.264 1.343-.796 1.856l.14.144Zm-2.126.824c.844 0 1.555-.274 2.126-.824l-.139-.144c-.53.511-1.19.768-1.987.768v.2Zm-2-.692c.534.463 1.202.692 2 .692v-.2c-.757 0-1.377-.216-1.868-.643l-.131.151Zm-.894-1.62a2.71 2.71 0 0 0 .895 1.62l.132-.15a2.51 2.51 0 0 1-.83-1.504l-.197.034Z" mask="url(#f67a0fd8ea78fea44d53a025e6ad1bd9__a)"></path>',3)]),8,s9)}]]),li=["width","height"],ln=(0,M.defineComponent)({name:"vIconIconPivotTableText",props:{width:{type:[Number,String],default:20},height:{type:[Number,String],default:20}}}),lo=(0,q.default)(ln,[["render",function(e,t,i,n,o,r){return(0,M.openBlock)(),(0,M.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 20 20",width:e.width,height:e.height},t[0]||(t[0]=[(0,M.createElementVNode)("path",{"fill-rule":"evenodd",d:"M5 4a1 1 0 0 0 0 2h4.063v9.032a.968.968 0 0 0 1.937 0V6h4a1 1 0 1 0 0-2H5Z","clip-rule":"evenodd"},null,-1)]),8,li)}]]),lr=(0,M.defineComponent)({__name:"FieldList",props:{search:{}},setup(e){let t=s_(),i=tK(),n=(0,M.computed)(()=>{let t=i.pivotFields,n=e.search?.toLocaleLowerCase();return n?t.filter(e=>e.name.toLocaleLowerCase().includes(n)):t}),o=(0,M.computed)(()=>{let e=new Set;for(let t of[i.colFields,i.rowFields,i.dataFields,i.pageFields])for(let{fieldId:i}of t)e.add(i);return e}),r=t?t.draggingPayload:(0,M.readonly)((0,M.ref)(null));function a(e){return r.value?.fieldId===e&&r.value?.from===null}return(e,t)=>{let r=(0,M.resolveDirective)("tooltip");return(0,M.openBlock)(),(0,M.createElementBlock)("div",{class:(0,M.normalizeClass)(e.$style.container)},[((0,M.openBlock)(!0),(0,M.createElementBlock)(M.Fragment,null,(0,M.renderList)(n.value,t=>((0,M.openBlock)(),(0,M.createBlock)(sE,{key:t.fieldId,payload:(0,M.unref)(sx)(t.fieldId,null)},{default:(0,M.withCtx)(()=>[(0,M.createVNode)(sN,{class:(0,M.normalizeClass)(e.$style.field),active:o.value.has(t.fieldId),disabled:a(t.fieldId)},{default:(0,M.withCtx)(()=>[(0,M.createVNode)((0,M.unref)(V.Z),{"syno-id":`fieldlist-${t.fieldId}-checkbox`,class:(0,M.normalizeClass)(e.$style.checkbox),"model-value":o.value.has(t.fieldId),disabled:a(t.fieldId),onChange:e=>(function(e,t,n){if(!n)return void(0,A.s7)().unusePivotField(i.tableId,e);t===T.E5.number?(0,A.s7)().insertPivotDataFieldCommand(i.tableId,e,i.dataFields.length,null):(0,A.s7)().movePivotAxisFieldCommand(i.tableId,e,"row",i.rowFields.length)})(t.fieldId,t.type,e)},null,8,["syno-id","class","model-value","disabled","onChange"]),t.type===(0,M.unref)(T.E5).datetime?((0,M.openBlock)(),(0,M.createBlock)((0,M.unref)(s7),{key:0})):t.type===(0,M.unref)(T.E5).number?((0,M.openBlock)(),(0,M.createBlock)((0,M.unref)(lt),{key:1})):((0,M.openBlock)(),(0,M.createBlock)((0,M.unref)(lo),{key:2})),(0,M.withDirectives)(((0,M.openBlock)(),(0,M.createElementBlock)("div",{class:(0,M.normalizeClass)(e.$style.name)},[(0,M.createTextVNode)((0,M.toDisplayString)(t.name),1)],2)),[[r,{content:t.name,delay:1e3}]])]),_:2},1032,["class","active","disabled"])]),_:2},1032,["payload"]))),128))],2)}}});var la=i(72116),ls=i.n(la);let ll={};ll.$style=ls();let lc=(0,q.default)(lr,[["__cssModules",ll]]),ld=(0,M.defineComponent)({__name:"ChangeDataSourceWindow",props:{initRange:{}},setup(e){let t=(0,M.ref)(null),i=(0,M.ref)(null),n=tK().tableId,o=(0,M.ref)(""),r=(0,M.computed)(()=>({workbook:(0,A.uD)().value?.getWorkbook(),isMulti:!1,rangeScope:!0,allowEmptyRange:!1})),a=(0,M.computed)(()=>eC(r.value,["change","blur"])),{range:s,handler:l}=ej(e.initRange,t,{title:(0,N.$)("pivot_table","data_range"),hot:(0,A.O3)()},void 0,void 0,!0);function c(){t.value?.onClose()}async function d(e){let i=(0,A.uD)().value?.getWorkbook();if(!i)return;let o=T.pt.createByWorkbook(e,i);if(o&&o.sheetInfo){if(o.getHeight()*o.getWidth()>T.Qr.PIVOT_TABLE_MAX_SOURCE_SIZE)return void t.value?.getMsgBox().alert("",(0,N.$)("pivot_table","too_many_record_alert_msg"));await (0,A.s7)().changePivotTableSource(n,{sheetId:o.sheetInfo.sheetId,range:{from:o.from,to:o.to}})&&c()}}!async function(e){let t=(0,A.uD)().value;if(!t)return;let i=T.pt.createByWorkbook(e,t.getWorkbook());if(!i||!i.sheetInfo)return;let n=await t.getNonEmptyNeighborRange(i.sheetInfo.sheetId,i.toSynoRange().toArray());if(n){let t=new T.pt(i.sheetInfo,{row:n[0],col:n[1]},{row:n[2],col:n[3]}).toLabel();t!==e&&(o.value=t)}}(e.initRange);let u=(0,tx.NV)(h,t);async function h(){await i.value?.validate()&&await d(s.value)}function p(){o.value&&(s.value=o.value)}return(e,n)=>((0,M.openBlock)(),(0,M.createBlock)((0,M.unref)(P.Z),{ref_key:"win",ref:t,"syno-id":"change-data-source-window",title:(0,M.unref)(N.$)("pivot_table","data_source"),class:(0,M.normalizeClass)(e.$style.window),height:"auto",width:360,onKeydown:(0,M.withKeys)((0,M.withModifiers)((0,M.unref)(u),["stop","prevent"]),["enter"])},{default:(0,M.withCtx)(()=>[(0,M.createVNode)((0,M.unref)(L.Z),{"syno-id":"change-data-source-panel",confirm:(0,M.unref)(u),cancel:c},{body:(0,M.withCtx)(()=>[(0,M.createVNode)((0,M.unref)(F.Z),{ref_key:"form",ref:i,"syno-id":"change-data-source-form"},{default:(0,M.withCtx)(()=>[(0,M.createVNode)((0,M.unref)(z.Z),{prop:"range","hide-label":"",rules:a.value,"control-flex":"auto"},{default:(0,M.withCtx)(()=>[(0,M.createVNode)((0,M.unref)(eG),{modelValue:(0,M.unref)(s),"onUpdate:modelValue":n[0]||(n[0]=e=>(0,M.isRef)(s)?s.value=e:null),onClickIcon:(0,M.unref)(l)},null,8,["modelValue","onClickIcon"])]),_:1},8,["rules"])]),_:1},512),o.value?((0,M.openBlock)(),(0,M.createBlock)((0,M.unref)(F.Z),{key:0,"syno-id":"suggesed-range-form",direction:"vertical"},{default:(0,M.withCtx)(()=>[(0,M.createVNode)((0,M.unref)(z.Z),{label:`${(0,M.unref)(N.$)("pivot_table","suggested")}${(0,M.unref)(N.$)("common","colon")}`},{default:(0,M.withCtx)(()=>[(0,M.createElementVNode)("div",{class:(0,M.normalizeClass)(e.$style["suggested-item"])},[(0,M.createVNode)((0,M.unref)(eM.Z),{class:(0,M.normalizeClass)(e.$style["suggested-icon"]),type:"bkg-img"},null,8,["class"]),(0,M.createElementVNode)("div",{class:(0,M.normalizeClass)(e.$style["suggested-range"])},(0,M.toDisplayString)(o.value),3),(0,M.createVNode)(st,{"syno-id":"apply-suggestion-action",display:(0,M.unref)(N.$)("common","commit"),onClick:p},null,8,["display"])],2)]),_:1},8,["label"])]),_:1})):(0,M.createCommentVNode)("",!0)]),_:1},8,["confirm"])]),_:1},8,["title","class","onKeydown"]))}});var lu=i(97959),lh=i.n(lu);let lp={};lp.$style=lh();let lf=(0,q.default)(ld,[["__cssModules",lp]]),lg="pivotTable",lm=(0,M.defineComponent)({__name:"IncompatiblePanel",setup(e){async function t(){let e=tK().tableId;e&&!0===await (0,A.s7)().convertPivotTableToCompatible(e)&&(0,A.c)().getMainPanel().getRightPanelContainer().showPivotTablePanel()}return(e,i)=>((0,M.openBlock)(),(0,M.createElementBlock)("div",{class:(0,M.normalizeClass)(e.$style.root)},[(0,M.createElementVNode)("div",{class:(0,M.normalizeClass)(e.$style.message)},(0,M.toDisplayString)((0,M.unref)(N.$)("pivot_table","incompatible_message")),3),(0,M.createVNode)(st,{class:(0,M.normalizeClass)(e.$style.btn),"syno-id":"convert-btn",display:(0,M.unref)(N.$)("pivot_table","convert_format"),onClick:t},null,8,["class","display"])],2))}});var lv=i(81361),lb=i.n(lv);let ly={};ly.$style=lb();let lw=(0,q.default)(lm,[["__cssModules",ly]]),l_=(0,M.defineComponent)({__name:"PivotTableEditorPanel",setup(e){let t=(0,M.ref)(""),i=(0,M.ref)(null),n=(0,M.ref)(null),{setScrollableEl:o,registerDragZone:r}=function(){let e=(0,M.ref)(null),t=(0,M.ref)(null),i=[],n=(0,M.computed)(()=>e.value?.payload??null);(0,M.watch)(e,e=>{e&&(t.value&&e.setAutoScrollElement(t.value),e.registerDragZones(i))}),(0,M.watch)(t,t=>{t&&e.value&&e.value.setAutoScrollElement(t)});let o={draggingPayload:n,setTarget:function(t){e.value=t??null},setScrollableEl:function(e){t.value=e??null},registerDragZone:function(t){!i.includes(t)&&(i.push(t),e.value&&e.value.registerDragZone(t))}};return(0,M.provide)(sw,o),o}(),a=(0,M.computed)(()=>tK().locationStr),s=(0,M.computed)(()=>tK().table?.incompatible??!1),l=(0,M.computed)(()=>!tK().table?.incompatible);function c(){(0,et.hy)(lf,{initRange:a.value})}function d(){(0,A.s7)().refreshPivotTableData(tK().tableId)}return(0,M.onMounted)(()=>{n.value&&o(n.value.getScrollEl()),i.value&&r(i.value.getDragZone())}),(e,o)=>((0,M.openBlock)(),(0,M.createBlock)(aw.Z,{"panel-key":(0,M.unref)(lg),title:(0,M.unref)(N.$)("pivot_table","editor_panel_title"),resizable:l.value,"init-width":l.value?460:312,"min-width":460},{body:(0,M.withCtx)(()=>[s.value?((0,M.openBlock)(),(0,M.createBlock)(lw,{key:0,class:(0,M.normalizeClass)(e.$style.root)},null,8,["class"])):((0,M.openBlock)(),(0,M.createElementBlock)("div",{key:1,class:(0,M.normalizeClass)([e.$style.root,e.$style["root-panel"]])},[(0,M.createElementVNode)("div",{class:(0,M.normalizeClass)([e.$style["fields-list-panel"],e.$style["flex-panel"]])},[(0,M.createElementVNode)("div",{class:(0,M.normalizeClass)(e.$style["flex-panel-inner"])},[(0,M.createElementVNode)("div",{class:(0,M.normalizeClass)(e.$style.display)},(0,M.toDisplayString)(`${(0,M.unref)(N.$)("pivot_table","fields")}${(0,M.unref)(N.$)("common","colon")}`),3),(0,M.createVNode)((0,M.unref)(ed.Z),{modelValue:t.value,"onUpdate:modelValue":o[0]||(o[0]=e=>t.value=e),"syno-id":"search-field-input",class:(0,M.normalizeClass)(e.$style["search-input"])},{prefix:(0,M.withCtx)(()=>[(0,M.createVNode)((0,M.unref)(eM.Z),{name:e.$style["search-icon"],type:"bkg-img"},null,8,["name"])]),_:1},8,["modelValue","class"])],2),(0,M.createVNode)((0,M.unref)(ix.Z),{class:(0,M.normalizeClass)([e.$style["flex-panel-inner"],e.$style["flex-panel-scroller"]])},{default:(0,M.withCtx)(()=>[(0,M.createVNode)(lc,{class:(0,M.normalizeClass)(e.$style["flex-panel-scroller-bottom-preserve"]),search:t.value},null,8,["class","search"])]),_:1},8,["class"])],2),(0,M.createElementVNode)("div",{class:(0,M.normalizeClass)(e.$style.divider)},null,2),(0,M.createElementVNode)("div",{class:(0,M.normalizeClass)([e.$style["editor-panel"],e.$style["flex-panel"]])},[(0,M.createElementVNode)("div",{class:(0,M.normalizeClass)([e.$style["flex-panel-inner"],e.$style["data-source-wrapper"],e.$style.display])},[(0,M.createElementVNode)("div",{class:(0,M.normalizeClass)(e.$style["data-source-display"])},[(0,M.createElementVNode)("div",{class:(0,M.normalizeClass)(e.$style["data-source-label"])},(0,M.toDisplayString)(`${(0,M.unref)(N.$)("pivot_table","data_source")}${(0,M.unref)(N.$)("common","colon")}`),3),(0,M.createElementVNode)("div",{class:(0,M.normalizeClass)(e.$style["data-source-space"])},null,2),(0,M.createVNode)(st,{"syno-id":"location",class:(0,M.normalizeClass)(e.$style["data-source-location"]),display:a.value,onClick:c},null,8,["class","display"])],2),(0,M.createVNode)(ez.Z,{"syno-id":"refresh-button","icon-cls":e.$style["data-source-refresh"],onClick:d},null,8,["icon-cls"])],2),(0,M.createVNode)((0,M.unref)(a6.Z),{ref_key:"validDropZone",ref:i,"drag-props":{isOver:(0,M.unref)(sS),order:(0,M.unref)(sy).DONT_MOVE_FIELD}},{default:(0,M.withCtx)(()=>[(0,M.createElementVNode)("div",{class:(0,M.normalizeClass)(e.$style["axis-fields-wrapper"])},[(0,M.createElementVNode)("div",{class:(0,M.normalizeClass)([e.$style.display,e.$style["flex-panel-inner"]])},(0,M.toDisplayString)(`${(0,M.unref)(N.$)("pivot_table","pivot_table")}${(0,M.unref)(N.$)("common","colon")}`),3),(0,M.createVNode)((0,M.unref)(ix.Z),{ref_key:"axisPanelScrollbar",ref:n,class:(0,M.normalizeClass)([e.$style["flex-panel-inner"],e.$style["flex-panel-scroller"]])},{default:(0,M.withCtx)(()=>[(0,M.createVNode)(s5,{class:(0,M.normalizeClass)(e.$style["flex-panel-scroller-bottom-preserve"])},null,8,["class"])]),_:1},8,["class"])],2)]),_:1},8,["drag-props"])],2)],2))]),_:1},8,["panel-key","title","resizable","init-width"]))}});var lx=i(42030),lS=i.n(lx);let lC={};lC.$style=lS();let lk=(0,q.default)(l_,[["__cssModules",lC]]);var lI=i(65611),lA=Math.floor,lT=Math.random,lE=i(99302),lR=i(77622),lD=parseFloat,lO=Math.min,lM=Math.random;let lN=function(e,t,i){if(i&&"boolean"!=typeof i&&(0,lE.Z)(e,t,i)&&(t=i=void 0),void 0===i&&("boolean"==typeof t?(i=t,t=void 0):"boolean"==typeof e&&(i=e,e=void 0)),void 0===e&&void 0===t?(e=0,t=1):(e=(0,lR.Z)(e),void 0===t?(t=e,e=0):t=(0,lR.Z)(t)),e>t){var n,o,r=e;e=t,t=r}if(i||e%1||t%1){var a=lM();return lO(e+a*(t-e+lD("1e-"+((a+"").length-1))),t)}return n=e,o=t,n+lA(lT()*(o-n+1))};class lP{constructor(){this.fetchingPromise=null,this.scheduleMap=new Map}enableFetching(){for(let e of(this.getStore().enableFetching(),this.fetchNext(),this.listLinkIds()))this.handleExternalRequest(e)}enableAutoUpdate(){this.getStore().setAutoUpdate(!0),this.getStore().enabled&&this.scheduleAll()}disableAutoUpdate(){for(let e of(this.getStore().setAutoUpdate(!1),this.scheduleMap.keys()))this.clearSchedule(e)}handleExternalRequest(e){!(!this.listLinkIds().includes(e)||this.getStore().errorList.includes(e))&&(this.clearSchedule(e),this.getStore().addLoading(e),this.getStore().enabled&&this.fetchNext())}async fetchNext(){let e=this.getStore().loadingList;if(0===e.length||this.fetchingPromise)return;let t=e[0];this.fetchingPromise=this.updateExternal(t).finally(()=>{this.getStore().removeLoading(t),this.getStore().autoUpdate&&this.scheduleAutoUpdate(t),this.fetchingPromise=null,this.fetchNext()})}scheduleAll(){for(let e of this.listLinkIds())this.scheduleAutoUpdate(e)}scheduleAutoUpdate(e){!(this.getStore().loadingList.includes(e)||this.getStore().errorList.includes(e))&&(this.scheduleMap.get(e)||this.scheduleMap.set(e,window.setTimeout(()=>{this.handleExternalRequest(e)},lN(6e5,9e5,!1))))}clearSchedule(e){let t=this.scheduleMap.get(e);t&&(clearTimeout(t),this.scheduleMap.delete(e))}async updateExternal(e){let t=await this.fetchExternal(e);await SYNO.SDS.Office.GetWindow().sheetmgr.updateExternal(e,t)}async fetchExternal(e){let[t,i]=e.split("/"),n="";if(i&&!(n=await this.fetchSharingToken(i)))return this.getStore().addNoPermissionList(e),null;let o=null;try{o=await this.fetchNode(t,n)}catch(t){1002===t.code||57373===t.code?this.getStore().addNoPermissionList(e):1003===t.code&&this.getStore().addNotFoundList(e)}if(!o)return null;if(o.recycle)return this.getStore().addNoPermissionList(e),null;let{object_id:r,title:a}=o,[s,l]=await Promise.all([this.fetchSnapshot(r,n),this.fetchCommandQueue(t,r,n)]);return s&&l?{title:a,updateTime:new Date().getTime(),snapshot:s,commandQueueInfo:l}:null}async fetchSharingToken(e){try{return(await SYNO.SDS.Office.GetWebAPI().getSharingToken(e)).sharing_token}catch{return""}}async fetchNode(e,t){let i=SYNO.SDS.Office.GetWebAPI();return await i.createPromiseWrapper(n=>{i.getOfficeNode({params:{path:SYNO.SDS.Drive.Utils.getPathIdByLink(e),sharing_token:t},callback:n},!1)})}async fetchSnapshot(e,t){let i=null;try{i=await SYNO.SDS.Office.GetWebAPI().getSnapshotAsync(e,t,!1)}catch{}return i}async fetchCommandQueue(e,t,i){let n=null,o=new OF.SocketWrapper({linkId:e,objectId:t,sharing_token:i,messageTooLargeHandler:es.JL});await o.connect();try{await o.waitForReady(6e4)}catch{return n}let r=o.getSocket();if(r){try{n=await new Promise(e=>{r.emit("init",(t,i,n)=>e({identifier:t,rev:i,commands:n}))})}catch{}r.disconnect()}return n}listLinkIds(){return this.getStore().linkInfo.map(e=>{let{linkId:t}=e;return t})}isEnabled(){return this.getStore().enabled}getStore(){return A.rb.getWorkbook().getExternalManagerStore()}}let lL=["href"],lB=(0,M.defineComponent)({name:"ExternalList",components:{IconButton:ez.Z,vCheckbox:V.Z,vDataView:aB,vIcon:eM.Z,vMenu:oS.Z,vMenuItem:tt.Z,vMenuDivider:iH.Z},emits:["update:autoUpdate","close","refresh","unlink","search"],data:()=>({documentLink:`https://help.synology.com/spreadsheet/${_S("lang")}/functions/lookup_and_reference/importrange`}),computed:{store(){let e=(0,A.uD)();return e.value?.getWorkbook().getExternalManagerStore()},enabled(){return this.store?.enabled??!1},linkList(){return this.store?.linkList??[]},autoUpdate:{get(){return this.store?.autoUpdate??!1},set(e){this.$emit("update:autoUpdate",e)}},linkDisplayState(){return this.linkList.map(e=>this.enabled?e.loading?this.$ST("common","loading"):e.notFound?this.$ST("external_link","not_found"):e.noPermission?this.$ST("external_link","no_permission"):`${this.$ST("external_link","last_refresh")}${this.$ST("common","colon")}${SYNO.SDS.Drive.Utils.convertEpochTime(e.updateTime)}`:this.$ST("external_link","disconnection"))}},methods:{handleCloseClick(){this.$emit("close")},handleRefreshAllClick(){this.$emit("refresh",this.linkList.map(e=>{let{linkId:t}=e;return t}))},handleBreakAllClick(){this.$emit("unlink",this.linkList.map(e=>{let{linkId:t}=e;return t}))},handleSearchCell(e){this.$emit("search",e.ref)},handleRefreshClick(e){this.$emit("refresh",[e])},handleBreakClick(e){this.$emit("unlink",[e])},handleOpen(e){let t=e.includes("/")?`${SYNO.SDS.Office.WindowHelper.getBaseAppPath()}/d/s/${e}`:SYNO.SDS.Drive.Utils.getOfficeLink(e);SYNO.SDS.Drive.Utils.openURL(t)}}});var lF=i(3016),lV=i.n(lF);let lz={};lz.$style=lV();let lH=(0,q.default)(lB,[["render",function(e,t,i,n,o,r){let a=(0,M.resolveComponent)("v-checkbox"),s=(0,M.resolveComponent)("IconButton"),l=(0,M.resolveComponent)("v-icon"),c=(0,M.resolveComponent)("v-menu-item"),d=(0,M.resolveComponent)("v-menu-divider"),u=(0,M.resolveComponent)("v-menu"),h=(0,M.resolveComponent)("v-data-view"),p=(0,M.resolveDirective)("tooltip");return(0,M.openBlock)(),(0,M.createElementBlock)("div",{class:(0,M.normalizeClass)(e.$style.root)},[(0,M.createElementVNode)("div",{class:(0,M.normalizeClass)(e.$style.body)},[(0,M.createElementVNode)("div",{class:(0,M.normalizeClass)(e.$style["all-action-wrapper"])},[(0,M.createVNode)(a,{modelValue:e.autoUpdate,"onUpdate:modelValue":t[0]||(t[0]=t=>e.autoUpdate=t),class:(0,M.normalizeClass)(e.$style["auto-refresh-check"]),disabled:0===e.linkList.length,"syno-id":"auto-refresh-check"},{default:(0,M.withCtx)(()=>[(0,M.createTextVNode)((0,M.toDisplayString)(e.$ST("external_link","auto_refresh")),1)]),_:1},8,["modelValue","class","disabled"]),(0,M.withDirectives)((0,M.createVNode)(s,{"syno-id":"close-button",disabled:0===e.linkList.length,"icon-cls":e.$style["refresh-all"],onClick:e.handleRefreshAllClick},null,8,["disabled","icon-cls","onClick"]),[[p,{content:e.$ST("external_link","refresh_all")}]]),(0,M.withDirectives)((0,M.createVNode)(s,{"syno-id":"break-all-button",disabled:0===e.linkList.length,"icon-cls":e.$style["break-all"],onClick:e.handleBreakAllClick},null,8,["disabled","icon-cls","onClick"]),[[p,{content:e.$ST("external_link","break_all")}]])],2),e.linkList.length>0?((0,M.openBlock)(),(0,M.createBlock)(h,{key:0,"syno-id":"external-list-view",items:e.linkList,class:(0,M.normalizeClass)(e.$style["data-view"]),"id-property":"linkId"},{item:(0,M.withCtx)(t=>{let{item:i,index:n}=t;return[(0,M.createElementVNode)("div",{class:(0,M.normalizeClass)(e.$style.info)},[(0,M.createVNode)(l,{class:(0,M.normalizeClass)(e.$style["info-icon"]),type:"bkg-img"},null,8,["class"]),(0,M.createElementVNode)("div",{class:(0,M.normalizeClass)(e.$style["info-content"])},[(0,M.createElementVNode)("div",{class:(0,M.normalizeClass)(e.$style["info-header"])},[(0,M.withDirectives)(((0,M.openBlock)(),(0,M.createElementBlock)("div",{class:(0,M.normalizeClass)(e.$style["info-file-name"])},[(0,M.createTextVNode)((0,M.toDisplayString)(i.title||"--"),1)],2)),[[p,{content:i.title||"--",overflowOnly:!0}]]),(0,M.createElementVNode)("div",{class:(0,M.normalizeClass)(e.$style["info-button-wrapper"])},[(0,M.withDirectives)((0,M.createVNode)(s,{"syno-id":"search-button",disabled:0===e.linkList.length,"icon-cls":e.$style["info-search"],"icon-width":20,"icon-height":20,onClick:()=>e.handleSearchCell(i)},null,8,["disabled","icon-cls","onClick"]),[[p,{content:e.$ST("external_link","find_link")}]]),(0,M.createVNode)(s,{"syno-id":"more-button","menu-align":"tr->br","icon-cls":e.$style["info-more"],"icon-width":3,"icon-height":20,"use-adaptive-container":!1},{default:(0,M.withCtx)(()=>[(0,M.createVNode)(u,{"syno-id":"more-menu",width:"auto"},{default:(0,M.withCtx)(()=>[(0,M.createVNode)(c,{"syno-id":"refresh-menu-item",disabled:e.enabled&&i.loading,title:e.$ST("external_link","refresh"),onClick:()=>e.handleRefreshClick(i.linkId)},null,8,["disabled","title","onClick"]),(0,M.createVNode)(c,{"syno-id":"break-menu-item",title:e.$ST("external_link","break_link"),onClick:()=>e.handleBreakClick(i.linkId)},null,8,["title","onClick"]),(0,M.createVNode)(d,{"syno-id":"menu-divider"}),(0,M.createVNode)(c,{"syno-id":"open-source-menu-item",disabled:!e.enabled||i.loading||i.notFound||i.noPermission,title:e.$ST("external_link","open_source"),onClick:()=>e.handleOpen(i.linkId)},null,8,["disabled","title","onClick"])]),_:2},1024)]),_:2},1032,["icon-cls"])],2)],2),(0,M.createElementVNode)("div",{class:(0,M.normalizeClass)(e.$style["info-status"])},[e.enabled&&(i.notFound||i.noPermission)?((0,M.openBlock)(),(0,M.createBlock)(l,{key:0,class:(0,M.normalizeClass)(e.$style["info-status-error-icon"]),type:"bkg-img"},null,8,["class"])):(0,M.createCommentVNode)("",!0),(0,M.withDirectives)(((0,M.openBlock)(),(0,M.createElementBlock)("div",{class:(0,M.normalizeClass)(e.$style["info-status-text"])},[(0,M.createTextVNode)((0,M.toDisplayString)(e.linkDisplayState[n]),1)],2)),[[p,{content:e.linkDisplayState[n],overflowOnly:!0}]])],2)],2)],2)]}),_:1},8,["items","class"])):((0,M.openBlock)(),(0,M.createElementBlock)(M.Fragment,{key:1},[(0,M.createElementVNode)("div",{class:(0,M.normalizeClass)(e.$style["empty-desc"])},(0,M.toDisplayString)(e.$ST("external_link","no_external_desc")),3),(0,M.createElementVNode)("a",{class:(0,M.normalizeClass)(e.$style["empty-link"]),href:e.documentLink,target:"_blank",rel:"noreferrer noopener"},(0,M.toDisplayString)(e.$ST("external_link","document_link")),11,lL)],64))],2)],2)}],["__cssModules",lz]]),lW="externalLinks",lY=(0,M.defineComponent)({__name:"ExternalListPanel",setup(e,t){let{expose:i}=t,n=new lP;function o(e){e?(n.enableAutoUpdate(),n.isEnabled()||SYNO.SDS.Office.GetWindow().getMainPanel().showExternalPermissionPanel(!0)):n.disableAutoUpdate()}async function r(e){for(let t of e)n.handleExternalRequest(t);n.isEnabled()||SYNO.SDS.Office.GetWindow().getMainPanel().showExternalPermissionPanel(!0)}async function a(e){await new Promise(t=>{SYNO.SDS.Office.GetWindow().getMsgBox().confirm((0,N.$)("external_link",e.length>1?"break_all_link_title":"break_link_title"),(0,N.$)("external_link",e.length>1?"break_all_link_content":"break_link_content"),e=>t("yes"===e),SYNO.SDS.Office.GetWindow(),{cancel:!0,yes:{text:(0,N.$)("external_link","break")}},{useMessageTitle:!0})})&&SYNO.SDS.Office.GetWindow().sheetmgr.unlinkExternal(e)}async function s(e){let t=function(e){let t=A.rb.getWorkbook(),i=t.getCurrentSheet();if(!i)return null;let n=i.sheetId;if(e[n]){let t=A.rb.getView(),o=t.getSelectedRange()?.highlight.getTopLeftCorner();if(!o)return{sheetId:n,coord:e[n][0]};{let t=e[n],r=i.countCols(),a=(0,lI.Z)(t,o,e=>{let{row:t,col:i}=e;return t*r+i});if(a<t.length){if(t[a].row!==o.row||t[a].col!==o.col)return{sheetId:n,coord:t[a]};else if(a<t.length-1)return{sheetId:n,coord:t[a+1]}}}}let o=t.getNextSheet(n,!0);for(;!e[o]&&o!==n;)o=t.getNextSheet(o,!0);return e[o]?{sheetId:o,coord:e[o][0]}:null}(e),i=SYNO.SDS.Office.GetWindow().sheetmgr;if(!t){i.clearEmptyExternalLinks(),SYNO.SDS.Office.GetWindow().getMsgBox().alert((0,N.$)("error","error"),(0,N.$)("external_link","link_no_longer_exist"));return}let{sheetId:n,coord:o}=t;await i.setActiveSheet(n),A.rb.getView().selectCell(o.row,o.col,o.row,o.col,!0,!0)}return i({enableFetching:function(){n.enableFetching()},handleExternalRequest:function(e){n.handleExternalRequest(e),SYNO.SDS.Office.GetWindow().getMainPanel().showExternalPermissionPanel()},listLinkIds:function(){return n.listLinkIds()}}),(e,t)=>((0,M.openBlock)(),(0,M.createBlock)(aw.Z,{title:(0,M.unref)(N.$)("external_link","list_panel_title"),"panel-key":(0,M.unref)(lW)},{body:(0,M.withCtx)(()=>[(0,M.createVNode)(lH,{"onUpdate:autoUpdate":o,onRefresh:r,onUnlink:a,onSearch:s})]),_:1},8,["title","panel-key"]))}});var lU=i(46804),lG=i(55693);let lZ=(0,M.defineComponent)({__name:"DataEditor",setup(e,t){let{expose:i}=t,n=(0,M.ref)(null),o=(0,M.ref)(""),r=(0,M.computed)(()=>({workbook:(0,A.uD)().value?.getWorkbook(),isMulti:!0,rangeScope:void 0,allowEmptyRange:!1})),a=(0,M.computed)(()=>eC(r.value,["change","blur"])),s=null,l=(0,lG.G)();function c(){if(d())return;let e=SYNO.SDS.Office.GetWindow(),t=SYNO.SDS.Office.GetWindow(),i={title:(0,N.$)("chart","data_range"),hot:(0,A.O3)().value,initRangeStr:o.value,allowMultiSelection:!0,absoluteReference:!1,rangeScope:!0,ignoreSheetName:!0,textType:"range",autoSort:!1,allowEmptyRange:!1,msgTarget:"itip",onUpdateRange:e=>{u(e)},onClose:()=>{s=null,t.setupSelectRangeWindow(null)}},n=(0,eZ.z)(e)||e.isModalized()?"t->t":"c->c";s=(0,et.NR)(e,eO,i,n,{hide:!0,unmask:!0}),t.setupSelectRangeWindow(s)}function d(){return!!s}function u(e){o.value=e;let t=l.chartInfo;t&&t.ensureDisplayRange()!==e&&!0===a.value.validator(void 0,e,()=>{})&&l.relayMethod("applyDisplayRange",[e])}async function h(){s&&(await s).close()}return(0,M.watch)(()=>l.chartInfo,e=>{o.value=e?e.ensureDisplayRange():""},{immediate:!0}),(0,M.onUnmounted)(()=>{h()}),i({closeRangeSelecting:h,isRangeSelecting:d}),(e,t)=>{let i=(0,M.resolveDirective)("tooltip");return(0,M.openBlock)(),(0,M.createBlock)((0,M.unref)(F.Z),{"syno-id":"form",class:(0,M.normalizeClass)(e.$style.form),direction:"vertical"},{default:(0,M.withCtx)(()=>[(0,M.withDirectives)(((0,M.openBlock)(),(0,M.createBlock)((0,M.unref)(z.Z),{"syno-id":"data-editor",prop:"rangeStr",rules:a.value,label:(0,M.unref)(N.$)("chart","data_range")+(0,M.unref)(N.$)("common","colon")},{default:(0,M.withCtx)(()=>[(0,M.createVNode)((0,M.unref)(eG),{ref_key:"input",ref:n,"model-value":o.value,placeholder:(0,M.unref)(N.$)("condition","empty_range_value"),onClickIcon:c,"onUpdate:modelValue":u},null,8,["model-value","placeholder"])]),_:1},8,["rules","label"])),[[i,(0,M.unref)(N.$)("chart","data_range")]])]),_:1},8,["class"])}}});var lj=i(59464),lq=i.n(lj);let lK={};lK.$style=lq();let lX=(0,q.default)(lZ,[["__cssModules",lK]]),lQ=(0,M.defineComponent)({__name:"ChartPanel",setup(e,t){let i,{expose:n}=t,o=(0,lG.G)(),r=Symbol("positionType");async function a(e,t){i&&c.value&&(SYNO.SDS.Office.Window.sheetmgr.setActiveSheet(i),await A.rb.getAction().setChartConfig(i,c.value,e,t))}(0,M.onMounted)(()=>{A.rb.getView().addHook("afterRender",u)}),(0,M.onUnmounted)(()=>{A.rb.getView().removeHook("afterRender",u)}),o.setRelayMethod(a);let s=(0,M.ref)(null),l=!1,c=(0,M.ref)(void 0),d=(0,M.ref)(void 0);function u(){if(c.value){if(l){let e=c.value;h((0,A.uD)().value?.getWorkbook().getCurrentSheet()?.getDrawingPlugin().getChartJSONById(e)||null)}l=!1}}function h(e){if(s.value?.isRangeSelecting())if(!e)return;else s.value?.closeRangeSelecting();let t=e?e.chartInfo:null;o.setChartInfo(t),c.value=e?.id,d.value=e?.position,i=A.rb.getWorkbook().getCurrentSheet()?.sheetId}return n({onChartModified:function(){l=!0},onActiveChange:function(e,t){(null!==e||"scroll"!==t)&&h(e)},setChart:h}),(e,t)=>((0,M.openBlock)(),(0,M.createBlock)(lU.Z,(0,M.normalizeProps)((0,M.guardReactiveProps)(e.$attrs)),{"data-editor":(0,M.withCtx)(()=>[(0,M.createVNode)(lX,{ref_key:"dataEditor",ref:s},null,512)]),"additional-custom-fieldset":(0,M.withCtx)(e=>{let{expandIndex:t,onClickFieldsetHeader:i}=e;return[d.value&&(0,M.unref)(o).chartInfo?.isDrawable()?((0,M.openBlock)(),(0,M.createBlock)(ak,{key:0,"floating-type":"chart","position-type":d.value.type,"floating-id":c.value,collapsed:t!==(0,M.unref)(r),onHeaderClick:e=>i((0,M.unref)(r))},null,8,["position-type","floating-id","collapsed","onHeaderClick"])):(0,M.createCommentVNode)("",!0)]}),_:1},16))}});var l$=i(23461),lJ=i(73445),l0=i(63382),l1=i(14368),l2=i(12299);let l3=["width","height"],l4=(0,M.defineComponent)({name:"vIconBtMenuInsert",props:{width:{type:[Number,String],default:24},height:{type:[Number,String],default:24}}}),l5=(0,q.default)(l4,[["render",function(e,t,i,n,o,r){return(0,M.openBlock)(),(0,M.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e.width,height:e.height},t[0]||(t[0]=[(0,M.createElementVNode)("path",{d:"M10.07 10.5H20v3h-9.93l.001 5.57L3 12l7.071-7.072V10.5Z"},null,-1)]),8,l3)}]]);var l6=i(88432);let l8=(0,l0.useAiHelperEventEmitter)(),l7=(0,l1.H)(),l9=(0,M.defineComponent)({__name:"MaybeAiHelperPanel",setup(e){var t;(0,lJ.H)({hideGetStartedMessage:!0,disableQuery:!0,buttonsConfig:{hideInsert:!0,hideCopy:!0},...(t=(0,M.useCssModule)()["code-piece"],{transformMessage:e=>e.replace(/<((code\b|p\b)([^>]*))>(\s*=)/gi,(e,i,n,o,r)=>o.match(/\bclass\w*=/)?`<${n} ${o.replace(/\bclass\w*=\w*"([^"]*)"/,`class="$1 ${t}"`)}>${r}`:`<${i} ${o} class="${t}">${r}`),onThreadSectionClick(e){if(!e.target||!(0,rJ.isElementNode)(e.target))return;let i=e.target;if(!i.classList.contains(t))return;let n=i.textContent??"";l7.openMenu({data:n,anchor:i})},threadSectionMenuItems:[{key:"copy",title:(0,N.$)("handsontable","copy"),icon:l6.Z,handler:()=>{let e=l7.data;e&&((0,l2.c)("ai_click_copy_icon"),(0,O.vQ)(e))}},{key:"insert",title:(0,N.$)("handsontable","insert"),icon:l5,isDisabled:()=>!(0,l$.ln)().canInsert,handler:()=>{let e=l7.data;e&&((0,l2.c)("ai_click_insert_icon"),l8.emit("insertToDocument",{html:e,text:e}))}}]})});let n=eb((0,A.O3)());return(0,M.onMounted)(async()=>{if(!await iU.tn.isAIFunctionAvailable())return;let[{setupAiExampleStore:e},{setupAiSelectionStore:t},{useAiHelperEventEmitter:o},{getCompleteToolDefinitions:r,getLiteToolDefinitions:a}]=await Promise.all([i.e("754").then(i.bind(i,34637)),i.e("18").then(i.bind(i,6648)),Promise.resolve().then(i.bind(i,63382)),Promise.all([i.e("196"),i.e("577")]).then(i.bind(i,75887))]),s=(0,to.getActivePinia)();e(s),t(n,s),o().addListener("insertToDocument",e=>{let t=(0,A.O3)().value,i=t?.getHighlightRange();if(!t||!i)return;let n=t.getActiveEditor();if(n.isOpened())n.insertText(e.text,!1);else{let{row:n,col:o}=i.from;t.getAction()?.setValues(t?.sheetId,[[n,o,e.text]])}}),(0,l$.nn)().setSystemPrompt("formula-assistant");try{let{providers:[{maxCompletionInputTokens:e}]}=await iU.tn.getConfig();e>=16384?(0,l$.Q9)().setTools(r()):(0,l$.Q9)().setTools(a())}catch{(0,l$.Q9)().setTools(a())}}),(e,t)=>((0,M.openBlock)(),(0,M.createBlock)((0,M.unref)(l$.qv)))}});var ce=i(3407),ct=i.n(ce);let ci={};ci.$style=ct();let cn=(0,q.default)(l9,[["__cssModules",ci]]),co=(0,M.defineComponent)({__name:"RightSidePanelContainer",emits:["close"],setup(e,t){let{expose:i,emit:n}=t,o=(0,M.ref)(null),r=(0,M.ref)(null),a=(0,M.ref)(null),s=(0,M.ref)(null),{commentPanelInstance:l,commentPanelComp:c}=(0,id.$)(SYNO.SDS.Office.Sheet.CommentPanel,(0,to.getActivePinia)(),A.rb);function d(e){(0,aA.H)().isPanelActive(id._)&&l.onCommentUpdateDataReady(e)}function u(e){(0,aA.H)().isPanelActive(id._)&&l.onCommentChanged(e)}return(0,M.onMounted)(async()=>{let e=SYNO.SDS.Office.GetWindow().getEventMgr();e.on("comment_update_data_ready",d),e.on("comment_changed",u)}),(0,M.onUnmounted)(()=>{let e=SYNO.SDS.Office.GetWindow().getEventMgr();e.un("comment_update_data_ready",l.onCommentUpdateDataReady,l),e.un("comment_changed",l.onCommentChanged,l)}),i({getImagePanel:function(){return o.value},getPivotTablePanel:function(){return r.value},getExternalListPanel:function(){return a.value},getCommentPanel:function(){return l},getChartPanel:function(){return s.value}}),(e,t)=>((0,M.openBlock)(),(0,M.createBlock)(ay.Z,{onClose:t[0]||(t[0]=e=>n("close"))},{default:(0,M.withCtx)(()=>[(0,M.createVNode)((0,M.unref)(c)),(0,M.createVNode)(aM,{ref_key:"imagePanel",ref:o},null,512),(0,M.createVNode)(a5),(0,M.createVNode)(lk,{ref_key:"pivotTableEditorPanel",ref:r},null,512),(0,M.createVNode)(lY,{ref_key:"externalListPanel",ref:a},null,512),(0,M.createVNode)(lQ,{ref_key:"chartPanel",ref:s},null,512),(0,M.createVNode)(cn)]),_:1}))}});var cr=i(22366);let ca={Image:aI,Protection:aK,PivotTable:lg,ExternalList:lW,AiFormula:l$.SJ,Chart:cr.z,Comment:id._};Ext.define("SYNO.SDS.Office.Sheet.RightPanelContainer",{extend:"SYNO.SDS.Office.RightPanelContainer",constructor(e){this.main=e.owner,SYNO.SDS.Office.RightPanelContainer.prototype.constructor.call(this,{style:{zIndex:1006},floatingZIndex:1006,defaults:{style:{zIndex:9003}},...e})},getContainerHeight(){return this.owner.getCenterPanel().getHeight()},getOffsetToContainer(){return{y:this.owner.getNorthPanel()?.getHeight()||0}},getRightPanelContainerVueClass:()=>co,getImageFormatPanel(){return this.getRightSidePanelContainer().getImagePanel()},getProtectionPanel(){return this.getRightSidePanelContainer().getProtectionPanel()},getPivotTablePanel(){return this.getRightSidePanelContainer().getPivotTablePanel()},getExternalListPanel(){return this.getRightSidePanelContainer().getExternalListPanel()},getChartPanel(){return this.getRightSidePanelContainer().getChartPanel()},showImageFormatPanel(){this._showPanel(ca.Image)},showProtectionPanel(){this._showPanel(ca.Protection)},showPivotTablePanel(){this._showPanel(ca.PivotTable)},showExternalListPanel(){this._showPanel(ca.ExternalList)},showAiFormulaPanel(){this._showPanel(ca.AiFormula)},toggleAiFormulaPanel(){this.togglePanel(ca.AiFormula)}}),i(5319);let cs=(0,M.defineComponent)({name:"ExternalPermission",components:{IconButton:ez.Z,vButton:e0.Z,vIcon:eM.Z},emits:["connect","manage","close"],methods:{handleConnectClick(){this.$emit("connect")},handleManageClick(){this.$emit("manage")},handleCloseClick(){this.$emit("close")}}});var cl=i(33426),cc=i.n(cl);let cd={};cd.$style=cc();let cu=(0,q.default)(cs,[["render",function(e,t,i,n,o,r){let a=(0,M.resolveComponent)("v-icon"),s=(0,M.resolveComponent)("v-button"),l=(0,M.resolveComponent)("IconButton");return(0,M.openBlock)(),(0,M.createElementBlock)("div",{class:(0,M.normalizeClass)([e.$style.root,e.$style.flex])},[(0,M.createElementVNode)("div",{class:(0,M.normalizeClass)([e.$style.left,e.$style.flex])},[(0,M.createElementVNode)("div",{class:(0,M.normalizeClass)([e.$style["text-wrapper"],e.$style.flex])},[(0,M.createVNode)(a,{class:(0,M.normalizeClass)(e.$style.warning),type:"bkg-img"},null,8,["class"]),(0,M.createElementVNode)("div",{class:(0,M.normalizeClass)(e.$style.bold)},(0,M.toDisplayString)(e.$ST("external_link","permission_info_title")),3),(0,M.createElementVNode)("div",null,(0,M.toDisplayString)(e.$ST("external_link","permission_info_description")),1)],2),(0,M.createElementVNode)("div",{class:(0,M.normalizeClass)([e.$style["button-wrapper"],e.$style.flex])},[(0,M.createVNode)(s,{"syno-id":"connect-button",onClick:e.handleConnectClick},{default:(0,M.withCtx)(()=>[(0,M.createTextVNode)((0,M.toDisplayString)(e.$ST("external_link","connect_content")),1)]),_:1},8,["onClick"]),(0,M.createVNode)(s,{"syno-id":"manage-button",onClick:e.handleManageClick},{default:(0,M.withCtx)(()=>[(0,M.createTextVNode)((0,M.toDisplayString)(e.$ST("external_link","manage_links")),1)]),_:1},8,["onClick"])],2)],2),(0,M.createVNode)(l,{"syno-id":"close-button","icon-cls":e.$style.close,onClick:e.handleCloseClick},null,8,["icon-cls","onClick"])],2)}],["__cssModules",cd]]);var ch=i(29980);let cp=Ext.define("SYNO.SDS.Office.Sheet.External.Permission",{extend:ch.u,constructor(e){ch.u.prototype.constructor.call(this,{hidden:!0,height:"100%",vueClass:cu,...e})}});var cf=i(12559),cg=i(68295);let cm=Ext.define("SYNO.SDS.Office.Sheet.SelectedCommentPanel",{extend:cg.kd,constructor(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];cg.kd.prototype.constructor.apply(this,t),ia(this)},getCommentById:e=>A.rb.getWorkbook().getCommentStore().getCommentById(e)??null,isCommentRangeSelected(e){let t=(0,A.c)(),{row:i,col:n}=e,o=t.sheet.getMergePlugin().getMergedRange(i,n),r=t.hot.getSelectedRange();return r&&(o?r.isEqual(o):r.isSingle()&&r.includes({row:i,col:n}))}}),cv=Ext.define("SYNO.SDS.Office.Sheet.SelectedCommentPanelContainer",{extend:cg.w5,constructor(e){cg.w5.prototype.constructor.call(this,e);let t=SYNO.SDS.Office.GetWindow().getEventMgr();this.mon(t,{scope:e.innerPanel,comment_update_data_ready:e.innerPanel.onCommentUpdateDataReady,comment_changed:e.innerPanel.onCommentChanged})}}),cb=Ext.define("SYNO.SDS.Office.Sheet.BottomPanel",{extend:cf.W,constructor(e){cf.W.prototype.constructor.call(this,e)},createItems(){return this.commentPanel=new cm({owner:this,main:this.owner,editor:this.editor}),this.commentPanelContainer=new cv({innerPanel:this.commentPanel}),[this.commentPanelContainer]},_onExpand(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];cf.W.prototype._onExpand.apply(this,t),this.findAppWindow().mainPanel.setFooterBarsDisplayed(!1)},_onBeforeCollapse(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];cf.W.prototype._onBeforeCollapse.apply(this,t),this.findAppWindow().mainPanel.setFooterBarsDisplayed(!0)},getSheetMgr:()=>SYNO.SDS.Office.GetWindow().sheetmgr,showCommentsByIds(e){if(0===e.length)return void this.collapse();this.commentPanel.setSelectedCommentIds(e),this.expand()}});var cy=i(7474);let cw=(0,M.defineComponent)({__name:"TabMenu",props:{copyable:{type:Boolean},editable:{type:Boolean},isMultipleSelected:{type:Boolean},isAllSelected:{type:Boolean},isFirst:{type:Boolean},isLast:{type:Boolean},color:{}},emits:["delete","rename","move-right","move-left","duplicate","copy","tab-color","show-custom","show-eye-dropper","hide"],setup(e,t){let{emit:i}=t,n=(0,M.ref)(null),o=e.color?{color:`#${e.color}`,alpha:1}:{},r=(0,M.computed)(()=>[{key:"delete",disabled:e.isAllSelected,visible:e.editable},{key:"rename",disabled:e.isMultipleSelected,visible:e.editable},{key:"move-right",disabled:e.isMultipleSelected||e.isLast,visible:e.editable,stringKey:"move_right"},{key:"move-left",disabled:e.isMultipleSelected||e.isFirst,visible:e.editable,stringKey:"move_left"},{key:"duplicate",disabled:!1,visible:e.editable},{key:"copy",section:"action",disabled:!1,visible:e.copyable,stringKey:"copy_to"},{key:"tab-color",disabled:!1,visible:e.editable,stringKey:"tab_color"},{key:"hide",disabled:e.isAllSelected,visible:e.editable}].filter(e=>e.visible));function a(){n.value?.closeMenu()}function s(){a(),i("tab-color",void 0)}function l(e,t){let{color:n}=t;i("tab-color",n.startsWith("#")?n.slice(1):n)}function c(){a(),i("show-eye-dropper")}function d(){a(),i("show-custom")}function u(){a()}return(e,t)=>{let h=(0,M.resolveDirective)("clickoutside");return(0,M.withDirectives)(((0,M.openBlock)(),(0,M.createBlock)((0,M.unref)(tn.NV),(0,M.mergeProps)({ref_key:"menu",ref:n,"syno-id":"tab-menu"},e.$attrs),{default:(0,M.withCtx)(()=>[((0,M.openBlock)(!0),(0,M.createElementBlock)(M.Fragment,null,(0,M.renderList)(r.value,e=>((0,M.openBlock)(),(0,M.createElementBlock)(M.Fragment,{key:e.key},["tab-color"!==e.key?((0,M.openBlock)(),(0,M.createBlock)((0,M.unref)(tt.Z),{key:0,"close-on-select":"","syno-id":`menu-item-${e.key}`,title:(0,M.unref)(N.$)(e.section??"worksheet",e.stringKey??e.key),disabled:e.disabled,onClick:t=>{i(e.key)}},null,8,["syno-id","title","disabled","onClick"])):((0,M.openBlock)(),(0,M.createBlock)((0,M.unref)(tn.Yz),{key:1,"syno-id":"menu-item-color",width:"auto",title:(0,M.unref)(N.$)(e.section??"worksheet",e.stringKey),disabled:e.disabled},{default:(0,M.withCtx)(()=>[(0,M.createVNode)((0,M.unref)(cy.uz),{"current-color":(0,M.unref)(o),onReset:s,onShowCustom:d,onShowEyedropper:c,onSelect:l,onCloseDropdown:u},null,8,["current-color"])]),_:2},1032,["title","disabled"]))],64))),128))]),_:1},16)),[[M.vShow,r.value.length>0],[h,a,void 0,{children:!0}]])}}}),c_=(0,M.defineComponent)({__name:"TabSheetMenu",props:{tabs:{},activeId:{},readonly:{type:Boolean}},emits:["sheet-select"],setup(e,t){let{emit:i}=t,n=(0,M.computed)(()=>e.tabs.some(e=>e.color));return(t,o)=>((0,M.openBlock)(),(0,M.createBlock)((0,M.unref)(tn.NV),{"syno-id":"tab-sheet-menu"},{default:(0,M.withCtx)(()=>[((0,M.openBlock)(!0),(0,M.createElementBlock)(M.Fragment,null,(0,M.renderList)(e.tabs,o=>((0,M.openBlock)(),(0,M.createBlock)((0,M.unref)(tt.Z),{key:o.sheetId,"syno-id":`tab-sheet-menu-${o.sheetId}`,"close-on-select":!0,type:"select",selected:o.sheetId===e.activeId,class:(0,M.normalizeClass)(o.hidden?t.$style.hidden:""),title:o.title,disabled:e.readonly&&o.hidden,onClick:()=>{i("sheet-select",o.sheetId)}},{title:(0,M.withCtx)(()=>[(0,M.createElementVNode)("div",{class:(0,M.normalizeClass)(["title",t.$style["title-wrapper"]])},[n.value?((0,M.openBlock)(),(0,M.createElementBlock)("div",{key:0,class:(0,M.normalizeClass)(t.$style["color-icon"]),style:(0,M.normalizeStyle)({borderColor:o.color?`#${o.color}`:""})},null,6)):(0,M.createCommentVNode)("",!0),(0,M.createElementVNode)("span",null,(0,M.toDisplayString)(o.title),1)],2)]),_:2},1032,["syno-id","selected","class","title","disabled","onClick"]))),128))]),_:1}))}});var cx=i(50068),cS=i.n(cx);let cC={};cC.$style=cS();let ck=(0,q.default)(c_,[["__cssModules",cC]]),cI=["textContent"],cA=(0,M.defineComponent)({__name:"SelectionInfo",props:{items:{},showMenu:{type:Boolean}},emits:["update"],setup(e,t){let{emit:i}=t,n=(0,ti.v0)(),o=(0,M.useTemplateRef)("triggerEl"),r=(0,M.computed)(()=>e.items.find(e=>e.selected)??null);function a(){let e=r.value?.value??"";e&&(0,O.vQ)(e)}function s(){i("update",{showMenu:!0})}function l(){i("update",{showMenu:!1})}return(t,c)=>{let d=(0,M.resolveDirective)("clickoutside");return e.items.length>0?((0,M.openBlock)(),(0,M.createElementBlock)("div",{key:0,class:(0,M.normalizeClass)([t.$style.btn,e.items.length>1?t.$style["btn-with-trigger"]:""])},[(0,M.createElementVNode)("div",{class:(0,M.normalizeClass)(t.$style.text),onClick:a,textContent:(0,M.toDisplayString)(r.value?.text??"")},null,10,cI),e.items.length>1?((0,M.openBlock)(),(0,M.createElementBlock)("div",{key:0,ref:"triggerEl",class:(0,M.normalizeClass)(t.$style.trigger),onClick:s},null,2)):(0,M.createCommentVNode)("",!0),e.showMenu?((0,M.openBlock)(),(0,M.createBlock)((0,M.unref)(te.Z),{key:1,"mount-to":(0,M.unref)(n),anchor:(0,M.unref)(o)??void 0,alignment:"br->tr"},{default:(0,M.withCtx)(()=>[(0,M.withDirectives)(((0,M.openBlock)(),(0,M.createBlock)((0,M.unref)(tn.NV),{"syno-id":"selection-info-menu",onCloseMenu:l},{default:(0,M.withCtx)(()=>[((0,M.openBlock)(!0),(0,M.createElementBlock)(M.Fragment,null,(0,M.renderList)(e.items,e=>((0,M.openBlock)(),(0,M.createBlock)((0,M.unref)(tt.Z),{key:e.fnName,"syno-id":`selection-info-item-${e.fnName}`,"close-on-select":!0,type:"select",title:e.text,selected:e.selected,onClick:t=>{i("update",{fnName:e.fnName})}},null,8,["syno-id","title","selected","onClick"]))),128))]),_:1})),[[d,l,void 0,{children:!0}]])]),_:1},8,["mount-to","anchor"])):(0,M.createCommentVNode)("",!0)],2)):(0,M.createCommentVNode)("",!0)}}});var cT=i(1937),cE=i.n(cT);let cR={};cR.$style=cE();let cD=(0,q.default)(cA,[["__cssModules",cR]]),cO=["textContent"],cM=(0,M.defineComponent)({__name:"TabItem",props:{active:{type:Boolean},selected:{type:Boolean},disabled:{type:Boolean},title:{},color:{},diff:{type:Boolean},highlight:{}},setup(e){let t=(0,M.computed)(()=>e.highlight??"");return(i,n)=>((0,M.openBlock)(),(0,M.createElementBlock)("div",{class:(0,M.normalizeClass)([i.$style["tab-item"],e.active?i.$style["tab-active"]:"",e.selected?i.$style["tab-selected"]:"",e.disabled?i.$style["tab-disabled"]:"",e.diff||e.highlight?i.$style["tab-diff"]:""]),style:(0,M.normalizeStyle)({"--highlight-color":t.value})},[(0,M.createElementVNode)("div",{class:(0,M.normalizeClass)(i.$style["tab-item-text"]),textContent:(0,M.toDisplayString)(i.title)},null,10,cO),i.color?((0,M.openBlock)(),(0,M.createElementBlock)("div",{key:0,class:(0,M.normalizeClass)(i.$style["tab-color-line"]),style:(0,M.normalizeStyle)({borderColor:`#${i.color}`})},null,6)):(0,M.createCommentVNode)("",!0)],6))}});var cN=i(94820),cP=i.n(cN);let cL={};cL.$style=cP();let cB=(0,q.default)(cM,[["__cssModules",cL]]),cF=(0,M.defineComponent)({__name:"SimpleTabBar",props:{visibleTabs:{},activeId:{},readonly:{type:Boolean}},emits:["update-active","context-menu","drag-drop","tab-dblclick"],setup(e,t){let{expose:i,emit:n}=t,o=(0,M.useSlots)(),r=(0,M.ref)(e.activeId?[e.activeId]:[]),a=(0,M.ref)(null),{canScrollLeft:s,canScrollRight:l,update:c}=function(e){let t=(0,M.ref)(!1),i=(0,M.ref)(!1),n=(0,M.ref)(!1),o=(0,M.ref)(!1),r=new ResizeObserver(e=>{a()});function a(){let r=e.value;if(!r){t.value=!1,i.value=!1,n.value=!1,o.value=!1;return}t.value=r.scrollTop>0,i.value=r.scrollHeight-r.clientHeight-r.scrollTop>=1,n.value=r.scrollLeft>0,o.value=r.scrollWidth-r.clientWidth-r.scrollLeft>=1}function s(){a()}let l=null,c=(0,M.watch)(e,e=>{l?.(),e&&(e.addEventListener("scroll",s,{passive:!0}),r.observe(e),l=()=>{e.removeEventListener("scroll",s),r.unobserve(e)}),a()},{immediate:!0});return(0,M.onScopeDispose)(function(){c(),l?.()}),{canScrollUp:t,canScrollDown:i,canScrollLeft:n,canScrollRight:o,update:a}}(a),{match:d}=function(e){let t=window.matchMedia(e),i=(0,M.ref)(t.matches);function n(){i.value=t.matches}return t.addEventListener("change",n),(0,M.onScopeDispose)(function(){t.removeEventListener("change",n)}),{match:i}}("(max-width: 768px)"),{posX:u,dragging:h,setup:p}=function(e,t){let i=0,n=(0,M.ref)(0),o=(0,M.ref)(null),r=null,{setup:a,clean:s}=function(e,t){void 0===t&&(t=100);let i=(0,M.ref)(null),n=(0,M.computed)(()=>!!i.value),o=(0,M.watch)(e,(e,t)=>{t&&r()});function r(){i.value&&window.clearInterval(i.value),i.value=null}return(0,M.onScopeDispose)(function(){o(),r()}),{keepScrolling:n,setup:function(n,o){void 0===n&&(n=0),void 0===o&&(o=0),r();let a=e.value;if(!a)return;let s=()=>{a.scrollBy({top:o,left:n})};i.value=window.setInterval(s,t),s()},clean:r}}(e);function l(){(o.value||r)&&(document.removeEventListener("mousemove",c),document.removeEventListener("mouseup",d),s(),i=0,n.value=0,o.value=null,r=null)}function c(t){if(!o.value){if(!r||10>Math.abs(r.x-t.clientX))return;o.value=r.dragging,r=null}let l=e.value,c=o.value?.box;if(!l||!c)return;let d=l.getBoundingClientRect();n.value=t.clientX-i-d.left,n.value<0?a(n.value):n.value+c.width>d.width?a(n.value+c.width-d.width):s()}function d(){let i=function(){let t=e.value;if(!t||!o.value)return -1;let{box:i,index:r}=o.value,a=n.value+t.getBoundingClientRect().left,s=a+i.width;for(let e=0;e<r;e++){let i=t.children[e].getBoundingClientRect();if(s<i.right+10||a<=i.x+i.width/2)return e}for(let e=t.children.length-1;e>r;e--){let i=t.children[e].getBoundingClientRect();if(a>i.x-10||s>=i.x+i.width/2)return e}return -1}();i>=0&&t(i),l()}return(0,M.onScopeDispose)(function(){l()}),{posX:n,dragging:o,setup:function(t,a){let s=e.value;if(o.value||!s)return l;let u=function(t){let i=e.value;if(!i)return -1;for(let e=0;e<i.children.length;e++)if(i.children[e].contains(t.target))return e;return -1}(t);if(u<0)return l;document.addEventListener("mousemove",c,{passive:!0}),document.addEventListener("mouseup",d,{passive:!0});let h=s.children[u].getBoundingClientRect();return i=t.clientX-h.left,n.value=t.clientX-i-s.getBoundingClientRect().left,r={dragging:{...a,index:u,box:h},x:t.clientX},l}}}(a,function(t){let i=e.visibleTabs[t]?.sheetId;if(!i||!h.value)return;let{sheetId:o}=h.value;n("drag-drop",o,i)}),f=(0,M.computed)(()=>r.value.length===e.visibleTabs.length),g=(0,M.computed)(()=>s.value||l.value),m=(0,M.computed)(()=>!d.value&&!!o.info);function v(){let t=e.visibleTabs.findIndex(t=>t.sheetId===e.activeId),i=a.value?.children[t];i?.scrollIntoView()}function b(e,t){void 0===t&&(t=!1);let i=a.value;i&&i.scroll({left:i.scrollLeft+e,top:0,behavior:t?"smooth":"auto"})}async function y(t,i){r.value.includes(i)?e.activeId&&n("context-menu",t,e.activeId,(0,M.toRaw)(r.value)):n("context-menu",t,i,[i])}function w(e){if(e.shiftKey)return;let t=e.deltaY>0?20:e.deltaY<0?-20:0;0!==t&&b(t)}function _(e){let t=a.value;t&&b(Math.max(t.clientWidth-100,100)*(e?-1:1),!0)}return(0,M.watch)(()=>e.activeId,async e=>{e&&((!r.value.includes(e)||f.value)&&(r.value=[e]),await (0,M.nextTick)(),v())}),(0,M.watch)(()=>e.visibleTabs,async()=>{await (0,M.nextTick)(),c()}),i({scrollToActive:v}),(t,i)=>((0,M.openBlock)(),(0,M.createElementBlock)("div",{class:(0,M.normalizeClass)(t.$style["tab-bar"])},[(0,M.createElementVNode)("div",{class:(0,M.normalizeClass)(t.$style["tab-left"])},[(0,M.renderSlot)(t.$slots,"left",{btnCls:t.$style["tab-btn"]})],2),(0,M.createElementVNode)("div",{class:(0,M.normalizeClass)(t.$style["tab-center"])},[(0,M.createElementVNode)("div",{ref_key:"itemWrapper",ref:a,class:(0,M.normalizeClass)([t.$style["tab-item-wrapper"],"syno-sh-editor-comp"]),onWheel:w},[((0,M.openBlock)(!0),(0,M.createElementBlock)(M.Fragment,null,(0,M.renderList)(e.visibleTabs,t=>{let{sheetId:i,title:o,color:a,disabled:s,diff:l,highlight:c}=t;return(0,M.openBlock)(),(0,M.createBlock)(cB,{key:i,style:(0,M.normalizeStyle)(i===(0,M.unref)(h)?.sheetId?{visibility:"hidden"}:{}),title:o,color:a,active:i===e.activeId,selected:r.value.includes(i),disabled:s??!1,diff:l,highlight:c,onMousedown:t=>(function(t,i){if(!(2===t.button||(0,eK.isMac)()&&t.ctrlKey)){if((0,eK.isMac)()?t.metaKey:t.ctrlKey)i!==e.activeId&&function(e){let t=r.value.indexOf(e);t>=0?r.value.splice(t,1):r.value.push(e)}(i);else if(t.shiftKey){let t=e.visibleTabs.findIndex(e=>e.sheetId===i),n=e.visibleTabs.findIndex(t=>t.sheetId===e.activeId);if(t<0||n<0)return;let o=t<=n?[t,n]:[n,t];r.value=e.visibleTabs.filter((e,t)=>o[0]<=t&&t<=o[1]).map(e=>e.sheetId)}else i!==e.activeId&&n("update-active",i);if(!e.readonly&&e.visibleTabs.length>1){let n=e.visibleTabs.find(e=>e.sheetId===i);if(!n)return;let{title:o,color:r}=n;p(t,{sheetId:i,title:o,color:r})}t.preventDefault()}})(t,i),onContextmenu:e=>y(e,i),onDblclick:t=>{!e.readonly&&n("tab-dblclick",i)}},null,8,["style","title","color","active","selected","disabled","diff","highlight","onMousedown","onContextmenu","onDblclick"])}),128))],34),(0,M.unref)(h)?((0,M.openBlock)(),(0,M.createBlock)(cB,{key:0,class:(0,M.normalizeClass)(t.$style["dragging-tab"]),style:(0,M.normalizeStyle)({left:`${(0,M.unref)(u)}px`}),title:(0,M.unref)(h).title,color:(0,M.unref)(h).color,active:!0,selected:!0,disabled:!1},null,8,["class","style","title","color"])):(0,M.createCommentVNode)("",!0),(0,M.unref)(s)?((0,M.openBlock)(),(0,M.createElementBlock)("div",{key:1,class:(0,M.normalizeClass)([t.$style["gradient-block"],t.$style["gradient-block-left"]])},null,2)):(0,M.createCommentVNode)("",!0),(0,M.unref)(l)?((0,M.openBlock)(),(0,M.createElementBlock)("div",{key:2,class:(0,M.normalizeClass)([t.$style["gradient-block"],t.$style["gradient-block-right"]])},null,2)):(0,M.createCommentVNode)("",!0)],2),(0,M.createElementVNode)("div",{class:(0,M.normalizeClass)(t.$style["tab-right"]),style:(0,M.normalizeStyle)({width:`${m.value?256:52}px`})},[g.value?((0,M.openBlock)(),(0,M.createBlock)(ez.Z,{key:0,"syno-id":"scroll-left-button",class:(0,M.normalizeClass)([t.$style["tab-btn"],"syno-sh-editor-comp"]),"icon-cls":t.$style["tab-icon-scroll-left"],"icon-index":4,disabled:!(0,M.unref)(s),onClick:i[0]||(i[0]=e=>_(!0))},null,8,["class","icon-cls","disabled"])):(0,M.createCommentVNode)("",!0),g.value?((0,M.openBlock)(),(0,M.createBlock)(ez.Z,{key:1,"syno-id":"scroll-right-button",class:(0,M.normalizeClass)([t.$style["tab-btn"],"syno-sh-editor-comp"]),"icon-cls":t.$style["tab-icon-scroll-right"],"icon-index":8,disabled:!(0,M.unref)(l),onClick:i[1]||(i[1]=e=>_(!1))},null,8,["class","icon-cls","disabled"])):(0,M.createCommentVNode)("",!0),(0,M.createElementVNode)("div",{class:(0,M.normalizeClass)(t.$style.space)},null,2),m.value?(0,M.renderSlot)(t.$slots,"info",{key:2}):(0,M.createCommentVNode)("",!0)],6)],2))}});var cV=i(86912),cz=i.n(cV);let cH={};cH.$style=cz();let cW=(0,q.default)(cF,[["__cssModules",cH]]),cY=(0,M.defineComponent)({__name:"TabBar",props:{tabs:{},activeId:{},selectionInfoItem:{},showSelectionInfoMenu:{type:Boolean},showSelectionInfo:{type:Boolean},readonly:{type:Boolean},copyable:{type:Boolean},openSheetMenu:{type:Boolean}},emits:["update-active","delete","rename","move-right","move-left","move","duplicate","copy","tab-color","hide","create","update-selection-info","update:openSheetMenu"],setup(e,t){let{emit:i}=t,n=(0,ti.xj)(),o=(0,ti.v0)(),r=(0,M.shallowRef)(null),a=(0,M.shallowRef)({left:"0",top:"0"}),s=(0,M.ref)(null),l=(0,M.ref)(null),c=(0,M.ref)(null);SYNO.SDS.Office.Utils.registerInitEvent(()=>{c.value?.scrollToActive()});let d=(0,M.computed)(()=>e.tabs.find(t=>t.sheetId===e.activeId)),u=(0,M.computed)(()=>e.tabs.filter(e=>!e.hidden));function h(){r.value=null}function p(t,n){void 0===n&&(n=!1),t!==e.activeId&&i("update-active",t,n)}function f(e){p(e)}async function g(e,t,i){let o=u.value.find(e=>e.sheetId===t)?.color??"";r.value={sheetId:t,sheetIds:i,color:o},a.value={left:`${e.x}px`,top:`${e.y}px`},await (0,M.nextTick)();let l=s.value?.$el;if(!l||!r.value)return;let{x:c,y:d}=n.getAlignToXYv2(l,[e.x,e.y],"tl->");a.value={left:`${c}px`,top:`${d}px`}}function m(t,n){let o=e.tabs.findIndex(e=>e.sheetId===n);o<0||i("move",t,o)}function v(e){i("rename",e)}function b(){r.value&&i("delete",r.value.sheetIds)}function y(){r.value&&i("rename",r.value.sheetId)}function w(){r.value&&i("move-right",r.value.sheetId)}function _(){r.value&&i("move-left",r.value.sheetId)}function x(){r.value&&i("duplicate",r.value.sheetIds)}function S(){r.value&&i("copy",r.value.sheetIds)}function C(e){r.value&&i("tab-color",r.value.sheetIds,e)}async function k(){if(r.value){let e=r.value.sheetIds,t=await (0,cy.hP)(d.value?.color);t&&i("tab-color",e,t.color.slice(1))}}async function I(){if(r.value){let e=r.value.sheetIds,t=await (0,cy.P6)();t&&i("tab-color",e,t.color.slice(1)),SYNO.SDS.Office.Utils.focusEditor()}}function A(){r.value&&i("hide",r.value.sheetIds)}function T(){i("create")}function E(){i("update:openSheetMenu",!0)}function R(){i("update:openSheetMenu",!1)}function D(e){p(e,!0)}function O(e){i("update-selection-info",e)}return(0,M.watch)(()=>e.openSheetMenu,e=>{let t=l.value?.$refs.button;t&&e&&!t.dropdownShown&&(t.dropdownShown=!0)}),(t,i)=>((0,M.openBlock)(),(0,M.createElementBlock)("div",{class:(0,M.normalizeClass)(t.$style.root)},[(0,M.createVNode)((0,M.unref)(cW),{ref_key:"tabBar",ref:c,"visible-tabs":u.value,"active-id":e.activeId,readonly:e.readonly,onUpdateActive:f,onContextMenu:g,onDragDrop:m,onTabDblclick:v},(0,M.createSlots)({left:(0,M.withCtx)(i=>{let{btnCls:n}=i;return[(0,M.unref)(eK.isMobileLayout)()?(0,M.createCommentVNode)("",!0):((0,M.openBlock)(),(0,M.createBlock)(ez.Z,{key:0,"syno-id":"add-button",class:(0,M.normalizeClass)(n),"icon-cls":t.$style["tab-icon-add"],disabled:e.readonly,onClick:T},null,8,["class","icon-cls","disabled"])),(0,M.createVNode)(ez.Z,{ref_key:"sheetMenuButton",ref:l,"syno-id":"more-button",class:(0,M.normalizeClass)([n,"syno-sh-editor-comp"]),"icon-cls":t.$style["tab-icon-more"],"menu-constrain-height":"","menu-align":"bl->br",onDropdownOpen:E,onDropdownClose:R},{default:(0,M.withCtx)(()=>[(0,M.createVNode)(ck,{tabs:e.tabs,"active-id":e.activeId,readonly:e.readonly,class:"syno-sh-editor-comp",onSheetSelect:D},null,8,["tabs","active-id","readonly"])]),_:2},1032,["class","icon-cls"])]}),_:2},[e.showSelectionInfo?{name:"info",fn:(0,M.withCtx)(()=>[(0,M.createVNode)(cD,{class:(0,M.normalizeClass)([t.$style["tab-btn"],t.$style["tab-selection-info"]]),items:e.selectionInfoItem,"show-menu":e.showSelectionInfoMenu,onUpdate:O},null,8,["class","items","show-menu"])]),key:"0"}:void 0]),1032,["visible-tabs","active-id","readonly"]),r.value?((0,M.openBlock)(),(0,M.createBlock)((0,M.unref)(te.Z),{key:0,"mount-to":(0,M.unref)(o),"target-style":a.value},{default:(0,M.withCtx)(()=>[(0,M.createVNode)(cw,{ref_key:"menu",ref:s,copyable:e.copyable??!1,editable:!e.readonly,"is-multiple-selected":r.value.sheetIds.length>1,"is-all-selected":u.value.length===r.value.sheetIds.length,"is-first":r.value.sheetId===u.value[0]?.sheetId,"is-last":r.value.sheetId===u.value[u.value.length-1]?.sheetId,color:r.value.color,onCloseMenu:h,onDelete:b,onRename:y,onMoveRight:w,onMoveLeft:_,onDuplicate:x,onCopy:S,onTabColor:C,onShowCustom:k,onShowEyeDropper:I,onHide:A},null,8,["copyable","editable","is-multiple-selected","is-all-selected","is-first","is-last","color"])]),_:1},8,["mount-to","target-style"])):(0,M.createCommentVNode)("",!0)],2))}});var cU=i(18762),cG=i.n(cU);let cZ={};cZ.$style=cG();let cj=(0,q.default)(cY,[["__cssModules",cZ]]);var cq=i(65430),cK=i(21944);let cX=["sum","avg","min","max","count","countNumber","range"],cQ={sum:4,avg:4,min:4,max:4,count:2,countNumber:4,range:1};class c${constructor({owner:e,initName:t,tabs:i,sheetId:n,renameSheet:o}){this.owner=e,this.initName=t,this.tabs=i,this.sheetId=n,this.renameSheet=o}show(){this.dlg=(0,ei.QX)(SYNO.SDS.Drive.Vue.DialogRename,{selectAllText:!0,initName:this.initName,validator:this.nameValidator.bind(this),cb:e=>{this.dlg.window.setStatusBusy(void 0,_T("common","msg_waiting")),e=this.cleanName(e),this.renameSheet(this.sheetId,e).then(()=>{this.dlg.component.close()}).catch(()=>{this.dlg.window.clearStatus(),this.dlg.component.showMsgBox("alert","",_T("common","proc_conflict"))})}},{ownerWindow:this.owner})}cleanName(e){return(0,eX.xmlStripInvalid)(e.trim())}nameValidator(e,t,i){let n=this.cleanName(t);if(0===n.length)return i(Error(_JSLIBSTR("extlang","fieldblank")));let o=SYNO.SDS.Office._T;return n.length>0&&n.length>=101?i(Error(o("worksheet","name_too_long"))):this.tabs.some(e=>e.sheetId!==this.sheetId&&e.title===n)?i(Error(o("worksheet","duplicate_name"))):i()}}function cJ(e,t){let i=e.sheetsInfo;return t.map(e=>{let t=i.get(e);return{sheetId:e,title:t?.title??"",color:t?.tabColor??"",hidden:t?.hidden??!1}})}let c0=(0,M.defineComponent)({__name:"TabBar",setup(e,t){let{expose:i}=t,{tabs:n,activeId:o,selectionInfoItem:r,showSelectionInfoMenu:a,readonly:s,copyable:l,openSheetMenu:c,handleActiveChange:d,handleTabDelete:u,handleTabRename:h,handleTabMoveRight:p,handleTabMoveLeft:f,handleTabMove:g,handleTabDuplicate:m,handleTabCopy:v,handleTabColorChanged:b,handleTabHide:y,handleCreate:w,handleUpdateSelectionInfo:_}=function(){let e=(0,k.eL)(),t=(0,A.O3)(),i=(0,A.uD)(),{tabs:n,activeId:o}={tabs:(0,M.computed)(()=>{let e=(0,A.uD)().value?.getWorkbook().getWorkbookStore();return e?cJ(e,e.order):[]}),activeId:(0,M.computed)(()=>(0,A.uD)().value?.getWorkbook().getWorkbookStore().current??"sh_1")},r=(0,M.ref)(!1),a=(0,M.ref)(null),s=(0,M.ref)(!1),l=(0,M.ref)("sum"),c=(0,M.ref)(!1),d=(0,M.computed)(()=>e.readable&&SYNO.SDS.Drive.Utils.isAppAuthorized()),u=(0,M.computed)(()=>i.value?.getWorkbook()??null),h=(0,M.computed)(()=>a.value??n.value),p=(0,M.computed)(()=>!e.editable||s.value),{items:f}=function(e,t,i,n){let{selection:o,activeSelection:r}=eb(e),{items:a}=function(e,t,i,n,o,r,a){let s=(0,M.computed)(()=>{if(1===e.value.length){let[t,i,n,o]=e.value[0];return t!==n||i!==o}return e.value.length>1}),l=(0,M.computed)(()=>s.value?o(e.value):null),c=(0,M.computed)(()=>{if(!s.value||!l.value)return 1;let e=1;for(let t of l.value.values)for(let i of t)for(let t of i)if("number"==typeof t)return 6|e;else null!==t&&(e|=2);return e}),d=(0,M.computed)(()=>t.value?cX.filter(e=>(c.value&cQ[e])===cQ[e]):[]),u=(0,M.computed)(()=>d.value.includes(i.value)?i.value:"range"),h=(0,M.computed)(()=>{let e=[];if(l.value)for(let t of l.value.values)for(let i of t)for(let t of i)"number"==typeof t&&e.push(t);return e}),p=(0,M.computed)(()=>{if(!t.value)return"";let[e,i,n,o]=t.value,[s,l]=e<=n?[e,n]:[n,e],[c,d]=i<=o?[i,o]:[o,i],u=0,h=0;for(let e=s;e<=l;e++)r(e)||(u+=1);for(let e=c;e<=d;e++)a(e)||(h+=1);return`${u}R x ${h}C`}),f=(0,M.computed)(()=>ex.yA.COUNTA(l.value?.values??[])),g=(0,M.computed)(()=>h.value.length),m=(0,M.computed)(()=>h.value.reduce((e,t)=>e+t,0)),v=(0,M.computed)(()=>m.value/h.value.length),b=(0,M.computed)(()=>(0,cq.Z)(h.value)??0),y=(0,M.computed)(()=>(0,cK.Z)(h.value)??0),w=(0,M.computed)(()=>{let t={};if(0===e.value.length)return t;let i=e=>`${e}`,o=l.value?.formatter??i;for(let e of n.value?d.value:[u.value])switch(e){case"range":t.range=p.value;break;case"count":t.count=i(f.value);break;case"countNumber":t.countNumber=i(g.value);break;case"sum":t.sum=o(m.value);break;case"avg":t.avg=o(v.value);break;case"max":t.max=o(b.value);break;case"min":t.min=o(y.value)}return t});return{items:(0,M.computed)(()=>d.value.map(e=>{let t=`sel_${"countNumber"===e?"count_number":e}`,i=w.value[e]??"";return{fnName:e,selected:e===u.value,text:`${(0,N.$)("sheet",t)}${_T("common","colon")} ${i}`,value:i}}))}}(o,r,i,n,function(e){let i,n=[],o=t.value?.getCurrentSheet();if(!t.value||!o)return{values:n,formatter:()=>""};for(let t of e){let e=(0,T.MT)(...t),r=o.getVisibleRangeValues(e);n.push(r.values),i??=r.nfId}let r=i?t.value.getStyleManager().getNumberFormat(i)?.fc??"General":"General",a=t.value.getLocale().getSSF();return{values:n,formatter:e=>a.format(r,e).v}},function(e){return t.value?.getCurrentSheet()?.isHiddenRow(e)??!0},function(e){return t.value?.getCurrentSheet()?.isHiddenCol(e)??!0});return{items:a}}(t,u,l,c);async function g(e,t){if(u.value){if(u.value.isSheetHidden(e)){if(!t)return;await A.rb.getAction().setSheetsHidden([e],!1)}await (0,A.c)().setActiveSheet(e)}}async function m(e){"yes"===await new Promise(t=>{let i=(0,N.$)("worksheet",e.length>1?"confirm_delete_multiple":"confirm_delete");SYNO.SDS.Office.GetWindow().getMsgBox().confirmDelete("",i,t)})&&await A.rb.getAction().removeSheets(e)}async function v(e){await A.rb.getAction().checkProtectedWorksheet(e,!1)&&new c$({owner:SYNO.SDS.Office.GetWindow(),initName:n.value.find(t=>t.sheetId===e)?.title??"",sheetId:e,tabs:n.value,renameSheet:async(e,t)=>{a.value=n.value.map(i=>i.sheetId===e?{...i,title:t}:i),await A.rb.getAction().renameSheet(e,t),a.value=null}}).show()}async function b(e){if(!u.value)return;let t=u.value.getNextSheet(e,!1);t&&I(e,u.value.getSheetPos(t))}async function y(e){if(!u.value)return;let t=u.value.getPrevSheet(e,!1);t&&I(e,u.value.getSheetPos(t))}async function w(e,t){I(e,t)}async function _(e){if(u.value)for(let t of e){if(!E(t))continue;let e=(0,eX.format)((0,N.$)("worksheet","title_copy"),u.value.getNameById(t)??(0,N.$)("worksheet","untitled")),i=e;for(let t=1;u.value.getIdByName(i);t++)i=`${e} (${t})`;let n=u.value.getSheetPos(t)+1;await R(i,n,function(){return A.rb.getAction().dupSheet(t,n,i)})}}async function x(e){let t=u.value;t&&e.every(e=>t.hasSheet(e))&&SYNO.SDS.Office.GetWindow().getEventMgr().fireEvent("tabcopyto",e,e.map(e=>t.getNameById(e)))}async function S(e,t){await A.rb.getAction().setSheetsColor(e,t??"")}async function C(e){await A.rb.getAction().setSheetsHidden(e,!0)}async function I(e,t){let i=u.value;if(!i)return;let n=i.getSheetPos(e),o=i.getWorkbookStore(),r=o.order.slice();r.splice(n,1),r.splice(t,0,e),s.value=!0,a.value=cJ(o,r);try{await A.rb.getAction().reorderSheet(r)}catch{}a.value=null,s.value=!1}function E(e){if(!u.value)return!1;let t=u.value.isNewSheetAvailable(e);if(!t){let e=T.Ym.Message;t7.onAlert(e.EXCEED_CELL_QUOTA)}return t}async function R(e,t,i){let o,r=SYNO.SDS.Office.GetWindow();r.setStatusBusy(),s.value=!0;let l=n.value.slice();l.splice(t??l.length,0,{title:e,sheetId:"sh_faketab",hidden:!1,color:"",disabled:!0}),a.value=l;try{o=await i()}catch{}o&&g(o,!1),a.value=null,s.value=!1,r.clearStatusBusy()}return SYNO.SDS.Office.UserSettings.get("fnName").then(e=>{l.value=e||"sum"}),{tabs:h,activeId:o,selectionInfoItem:f,showSelectionInfoMenu:c,readonly:p,copyable:d,openSheetMenu:r,handleActiveChange:g,handleTabDelete:m,handleTabRename:v,handleTabMoveRight:b,handleTabMoveLeft:y,handleTabMove:w,handleTabDuplicate:_,handleTabCopy:x,handleTabColorChanged:S,handleTabHide:C,handleCreate:async function(){E()&&await R((0,N.$)("common","creating"),void 0,function(){return A.rb.getAction().createSheet((0,N.$)("worksheet","untitled"))})},handleUpdateSelectionInfo:function(e){let{fnName:t,showMenu:i}=e;t&&(l.value=t,SYNO.SDS.Office.UserSettings.set("fnName",t)),void 0!==i&&(c.value=i)}}}();return i({createNewTab:w,showSheetMenu:function(){c&&(c.value=!0)}}),(e,t)=>((0,M.openBlock)(),(0,M.createBlock)((0,M.unref)(cj),{"open-sheet-menu":(0,M.unref)(c),"onUpdate:openSheetMenu":t[0]||(t[0]=e=>(0,M.isRef)(c)?c.value=e:null),tabs:(0,M.unref)(n),"active-id":(0,M.unref)(o),"show-selection-info":!0,"selection-info-item":(0,M.unref)(r),"show-selection-info-menu":(0,M.unref)(a),readonly:(0,M.unref)(s),copyable:(0,M.unref)(l),onUpdateActive:(0,M.unref)(d),onDelete:(0,M.unref)(u),onRename:(0,M.unref)(h),onMoveRight:(0,M.unref)(p),onMoveLeft:(0,M.unref)(f),onMove:(0,M.unref)(g),onDuplicate:(0,M.unref)(m),onCopy:(0,M.unref)(v),onTabColor:(0,M.unref)(b),onHide:(0,M.unref)(y),onCreate:(0,M.unref)(w),onUpdateSelectionInfo:(0,M.unref)(_)},null,8,["open-sheet-menu","tabs","active-id","selection-info-item","show-selection-info-menu","readonly","copyable","onUpdateActive","onDelete","onRename","onMoveRight","onMoveLeft","onMove","onDuplicate","onCopy","onTabColor","onHide","onCreate","onUpdateSelectionInfo"]))}});function c1(e,t,i){let n=e,o=["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"].find(e=>(0,nM.mf)(n[e]))??"";if(!o)return!1;do{if(n[o](t))return!0;if(n===i)break;n=n.parentNode}while(n);return!1}function c2(e,t,i){e&&(e.attachEvent?e.attachEvent("on"+t,i):e.addEventListener?e.addEventListener(t,i,!0):e["on"+t]=i)}function c3(e,t,i){e&&(e.detachEvent?e.detachEvent("on"+t,i):e.removeEventListener?e.removeEventListener(t,i,!0):e["on"+t]=null)}function c4(e,t,i){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;return[Math.round(t/n/e[0])*e[0],Math.round(i/n/e[1])*e[1]]}function c5(e,t,i){return null!==t&&e<t?t:null!==i&&i<e?i:e}let c6={start:"touchstart",move:"touchmove",stop:"touchend"},c8={userSelect:"none",MozUserSelect:"none",WebkitUserSelect:"none",MsUserSelect:"none"},c7={userSelect:"auto",MozUserSelect:"auto",WebkitUserSelect:"auto",MsUserSelect:"auto"},c9={move:"mousemove",stop:"mouseup"},de=(0,M.defineComponent)({name:"DraggableResizable",props:{className:{type:String,default:"vdr"},classNameDraggable:{type:String,default:"draggable"},classNameResizable:{type:String,default:"resizable"},classNameDragging:{type:String,default:"dragging"},classNameResizing:{type:String,default:"resizing"},classNameActive:{type:String,default:"active"},classNameHandle:{type:String,default:"v-handle"},disableUserSelect:{type:Boolean,default:!0},enableNativeDrag:{type:Boolean,default:!1},preventDeactivation:{type:Boolean,default:!1},active:{type:Boolean,default:!1},draggable:{type:Boolean,default:!0},resizable:{type:Boolean,default:!0},lockAspectRatio:{type:Boolean,default:!1},w:{type:Number,default:200,validator:e=>e>0},h:{type:Number,default:200,validator:e=>e>0},minWidth:{type:Number,default:0,validator:e=>e>=0},minHeight:{type:Number,default:0,validator:e=>e>=0},maxWidth:{type:Number,default:null,validator:e=>e>=0},maxHeight:{type:Number,default:null,validator:e=>e>=0},x:{type:Number,default:0,validator:e=>"number"==typeof e},y:{type:Number,default:0,validator:e=>"number"==typeof e},z:{type:[String,Number],default:"auto",validator:e=>"string"==typeof e?"auto"===e:e>=0},handles:{type:Array,default:()=>["tl","tm","tr","mr","br","bm","bl","ml"],validator:e=>{let t=new Set(["tl","tm","tr","mr","br","bm","bl","ml"]);return new Set(e.filter(e=>t.has(e))).size===e.length}},dragHandle:{type:String,default:null},dragCancel:{type:String,default:null},axis:{type:String,default:"both",validator:e=>["x","y","both"].includes(e)},grid:{type:Array,default:()=>[1,1]},parent:{type:[Boolean,String],default:!1},onDragStart:{type:Function,default:null},onResizeStart:{type:Function,default:null}},emits:["update:active","dragging","resizing","resizestop","dragstop","activated","deactivated"],data(){return{left:this.x,top:this.y,right:null,bottom:null,width:null,height:null,aspectFactor:null,parentWidth:null,parentHeight:null,minW:this.minWidth,minH:this.minHeight,maxW:this.maxWidth,maxH:this.maxHeight,handle:null,enabled:this.active,resizing:!1,dragging:!1,zIndex:this.z}},computed:{style(){return{transform:`translate(${this.left}px, ${this.top}px)`,width:`${this.width}px`,height:`${this.height}px`,zIndex:this.zIndex,...this.dragging&&this.disableUserSelect?c8:c7}},actualHandles(){return this.resizable?this.handles:[]},resizingOnX(){return!!this.handle&&(this.handle.includes("l")||this.handle.includes("r"))},resizingOnY(){return!!this.handle&&(this.handle.includes("t")||this.handle.includes("b"))},isCornerHandle(){return!!this.handle&&["tl","tr","br","bl"].includes(this.handle)}},watch:{active(e){this.enabled=e,(0,nI.Qy)(this,e?"activated":"deactivated")},z(e){(e>=0||"auto"===e)&&(this.zIndex=e)},x(){if(this.resizing||this.dragging)return;this.parent&&(this.bounds=this.calcDragLimits());let e=this.x-this.left;e%this.grid[0]==0&&(this.left=this.x,this.right=this.right-e)},y(){if(this.resizing||this.dragging)return;this.parent&&(this.bounds=this.calcDragLimits());let e=this.y-this.top;e%this.grid[1]==0&&(this.top=this.y,this.bottom=this.bottom-e)},lockAspectRatio(e){this.aspectFactor=e?this.width/this.height:void 0},minWidth(e){e>0&&e<=this.width&&(this.minW=e)},minHeight(e){e>0&&e<=this.height&&(this.minH=e)},maxWidth(e){this.maxW=e},maxHeight(e){this.maxH=e},w(){if(this.resizing||this.dragging)return;this.parent&&(this.bounds=this.calcResizeLimits());let e=this.width-this.w;e%this.grid[0]==0&&(this.right=this.right+e)},h(){if(this.resizing||this.dragging)return;this.parent&&(this.bounds=this.calcResizeLimits());let e=this.height-this.h;e%this.grid[1]==0&&(this.bottom=this.bottom+e)}},created:function(){this.resetBoundsAndMouseState()},mounted(){this.enableNativeDrag||(this.$el.ondragstart=()=>!1);let[e,t]=this.getParentSize();this.parentWidth=e,this.parentHeight=t;let[i,n]=function(e){let t=window.getComputedStyle(e);return[parseFloat(t.getPropertyValue("width")),parseFloat(t.getPropertyValue("height"))]}(this.$el);this.aspectFactor=("auto"!==this.w?this.w:i)/("auto"!==this.h?this.h:n),this.width="auto"!==this.w?this.w:i,this.height="auto"!==this.h?this.h:n,this.right=this.parentWidth-this.width-this.left,this.bottom=this.parentHeight-this.height-this.top,c2(document.documentElement,"mousedown",this.deselect),c2(document.documentElement,"touchend",this.deselect),c2(document.documentElement,"touchcancel",this.deselect),c2(window,"resize",this.checkParentSize)},[nk.mT.beforeUnmount](){c3(document.documentElement,"mousedown",this.deselect),c3(document.documentElement,"touchstart",this.handleUp),c3(document.documentElement,"mousemove",this.move),c3(document.documentElement,"touchmove",this.move),c3(document.documentElement,"mouseup",this.handleUp),c3(document.documentElement,"tochend",this.deselect),c3(document.documentElement,"touchcancel",this.deselect),c3(window,"resize",this.checkParentSize)},methods:{resetBoundsAndMouseState(){this.mouseClickPosition={mouseX:0,mouseY:0,x:0,y:0,w:0,h:0,top:0,left:0},this.bounds={minLeft:null,maxLeft:null,minRight:null,maxRight:null,minTop:null,maxTop:null,minBottom:null,maxBottom:null}},checkParentSize(){if(this.parent){let[e,t]=this.getParentSize();this.right=e-this.width-this.left,this.bottom=t-this.height-this.top,this.parentWidth=e,this.parentHeight=t}},getParentSize(){if(!0===this.parent){let e=this.$el.parentNode,t=window.getComputedStyle(e,null),i=parseInt(t.getPropertyValue("width"),10),n=parseInt(t.getPropertyValue("height"),10);return[i=isNaN(i)?e.offsetWidth:i,n=isNaN(n)?e.offsetHeight:n]}if("string"==typeof this.parent){let e=document.querySelector(this.parent);if(!(e instanceof HTMLElement))throw Error(`The selector ${this.parent} does not match any element`);return[e.offsetWidth,e.offsetHeight]}return[null,null]},elementTouchDown(e){c9=c6,this.elementDown(e)},elementDown(e){let t=e.target||e.srcElement;if(this.$el.contains(t)){if(this.onDragStart&&!1===this.onDragStart(e))return;if(this.dragHandle&&!c1(t,this.dragHandle,this.$el)||this.dragCancel&&c1(t,this.dragCancel,this.$el))return void(this.dragging=!1);this.enabled||(this.enabled=!0,(0,nI.Qy)(this,"activated"),(0,nI.Qy)(this,"update:active",!0)),this.draggable&&(this.dragging=!0),this.mouseClickPosition.mouseX=e.touches?e.touches[0].pageX:e.pageX,this.mouseClickPosition.mouseY=e.touches?e.touches[0].pageY:e.pageY,this.mouseClickPosition.left=this.left,this.mouseClickPosition.right=this.right,this.mouseClickPosition.top=this.top,this.mouseClickPosition.bottom=this.bottom,this.mouseClickPosition.w=this.width,this.mouseClickPosition.h=this.height,this.parent&&(this.bounds=this.calcDragLimits()),c2(document.documentElement,c9.move,this.move),c2(document.documentElement,c9.stop,this.handleUp)}},calcDragLimits(){return{minLeft:this.left%this.grid[0],maxLeft:Math.floor((this.parentWidth-this.width-this.left)/this.grid[0])*this.grid[0]+this.left,minRight:this.right%this.grid[0],maxRight:Math.floor((this.parentWidth-this.width-this.right)/this.grid[0])*this.grid[0]+this.right,minTop:this.top%this.grid[1],maxTop:Math.floor((this.parentHeight-this.height-this.top)/this.grid[1])*this.grid[1]+this.top,minBottom:this.bottom%this.grid[1],maxBottom:Math.floor((this.parentHeight-this.height-this.bottom)/this.grid[1])*this.grid[1]+this.bottom}},deselect(e){let t=e.target||e.srcElement,i=RegExp(this.className+"-([trmbl]{2})","");this.$el.contains(t)||i.test(t.className)||(this.enabled&&!this.preventDeactivation&&(this.enabled=!1,(0,nI.Qy)(this,"deactivated"),(0,nI.Qy)(this,"update:active",!1)),c3(document.documentElement,c9.move,this.handleResize))},handleTouchDown(e,t){c9=c6,this.handleDown(e,t)},handleDown(e,t){this.onResizeStart&&!1===this.onResizeStart(e,t)||(t.stopPropagation&&t.stopPropagation(),this.handle=e,this.resizing=!0,this.mouseClickPosition.mouseX=t.touches?t.touches[0].pageX:t.pageX,this.mouseClickPosition.mouseY=t.touches?t.touches[0].pageY:t.pageY,this.mouseClickPosition.left=this.left,this.mouseClickPosition.right=this.right,this.mouseClickPosition.top=this.top,this.mouseClickPosition.bottom=this.bottom,this.mouseClickPosition.w=this.width,this.mouseClickPosition.h=this.height,this.bounds=this.calcResizeLimits(),c2(document.documentElement,c9.move,this.handleResize),c2(document.documentElement,c9.stop,this.handleUp))},calcResizeLimits(){let e=this.minW,t=this.minH,i=this.maxW,n=this.maxH,o=this.aspectFactor,[r,a]=this.grid,s=this.width,l=this.height,c=this.left,d=this.top,u=this.right,h=this.bottom;this.lockAspectRatio&&(e/t>o?t=e/o:e=o*t,i&&n?(i=Math.min(i,o*n),n=Math.min(n,i/o)):i?n=i/o:n&&(i=o*n)),i-=i%r,n-=n%a;let p={minLeft:null,maxLeft:null,minTop:null,maxTop:null,minRight:null,maxRight:null,minBottom:null,maxBottom:null},f=this.handle.endsWith("l"),g=this.handle.endsWith("r"),m=this.handle.startsWith("t"),v=this.handle.startsWith("b");return this.parent?(p.minLeft=(this.parentWidth+c)%r,p.maxLeft=c+Math.floor((s-e)/r)*r,p.minTop=(this.parentHeight+d)%a,p.maxTop=d+Math.floor((l-t)/a)*a,p.minRight=(this.parentWidth+u)%r,p.maxRight=u+Math.floor((s-e)/r)*r,p.minBottom=(this.parentHeight+h)%a,p.maxBottom=h+Math.floor((l-t)/a)*a,i&&(p.minLeft=Math.max(p.minLeft,this.parentWidth-u-i),p.minRight=Math.max(p.minRight,this.parentWidth-c-i)),n&&(p.minTop=Math.max(p.minTop,this.parentHeight-h-n),p.minBottom=Math.max(p.minBottom,this.parentHeight-d-n)),this.lockAspectRatio&&(f&&v?(p.minLeft=Math.max(p.minLeft,c-(h-p.minBottom)*o),p.minBottom=0):(p.minLeft=Math.max(p.minLeft,c-d*o),p.minBottom=Math.max(p.minBottom,h-u/o)),m&&g?(p.minRight=Math.max(p.minRight,u-(d-p.minTop)*o),p.minTop=0):(p.minRight=Math.max(p.minRight,u-h*o),p.minTop=Math.max(p.minTop,d-c/o)))):(p.minLeft=null,p.maxLeft=c+Math.floor((s-e)/r)*r,p.minTop=null,p.maxTop=d+Math.floor((l-t)/a)*a,p.minRight=null,p.maxRight=u+Math.floor((s-e)/r)*r,p.minBottom=null,p.maxBottom=h+Math.floor((l-t)/a)*a,i&&(p.minLeft=-(u+i),p.minRight=-(c+i)),n&&(p.minTop=-(h+n),p.minBottom=-(d+n)),this.lockAspectRatio&&i&&n&&(p.minLeft=Math.min(p.minLeft,-(u+i)),p.minTop=Math.min(p.minTop,-(n+h)),p.minRight=Math.min(p.minRight,-c-i),p.minBottom=Math.min(p.minBottom,-d-n))),p},move(e){this.resizing?this.handleResize(e):this.dragging&&this.handleDrag(e)},handleDrag(e){let t=this.axis,i=this.bounds,n=this.mouseClickPosition,o=t&&"y"!==t?n.mouseX-(e.touches?e.touches[0].pageX:e.pageX):0,r=t&&"x"!==t?n.mouseY-(e.touches?e.touches[0].pageY:e.pageY):0,[a,s]=c4(this.grid,o,r);if(!a&&!s)return;let l=c5(n.left-a,i.minLeft,i.maxLeft),c=c5(n.top-s,i.minTop,i.maxTop),d=c5(n.right+a,i.minRight,i.maxRight),u=c5(n.bottom+s,i.minBottom,i.maxBottom);this.left=l,this.top=c,this.right=d,this.bottom=u,(0,nI.Qy)(this,"dragging",this.left,this.top)},handleResize(e){let t=this.left,i=this.top,n=this.right,o=this.bottom,r=this.mouseClickPosition,a=this.aspectFactor,s=r.mouseX-(e.touches?e.touches[0].pageX:e.pageX),l=r.mouseY-(e.touches?e.touches[0].pageY:e.pageY),[c,d]=c4(this.grid,s,l);this.handle.includes("b")?(o=c5(r.bottom+d,this.bounds.minBottom,this.bounds.maxBottom),this.lockAspectRatio&&this.resizingOnY&&this.handle.includes("m")&&(n=this.right-(this.bottom-o)*a)):this.handle.includes("t")&&(i=c5(r.top-d,this.bounds.minTop,this.bounds.maxTop),this.lockAspectRatio&&this.resizingOnY&&this.handle.includes("m")&&(t=this.left-(this.top-i)*a)),this.handle.includes("r")?(n=c5(r.right+c,this.bounds.minRight,this.bounds.maxRight),this.lockAspectRatio&&this.resizingOnX&&(this.handle.includes("t")?i=c5(this.top-(this.right-n)/a,this.bounds.minTop,this.bounds.maxTop):o=this.bottom-(this.right-n)/a)):this.handle.includes("l")&&(t=c5(r.left-c,this.bounds.minLeft,this.bounds.maxLeft),this.lockAspectRatio&&this.resizingOnX&&(this.handle.includes("b")?o=c5(this.bottom-(this.left-t)/a,this.bounds.minBottom,this.bounds.maxBottom):i=this.top-(this.left-t)/a));let u=this.parentWidth-t-n,h=this.parentHeight-i-o;this.left=t,this.top=i,this.right=n,this.bottom=o,this.width=u,this.height=h,this.$emit("resizing",this.left,this.top,this.width,this.height)},handleUp(e){this.handle=null,this.resetBoundsAndMouseState(),this.resizing&&(this.resizing=!1,(0,nI.Qy)(this,"resizestop",this.left,this.top,this.width,this.height)),this.dragging&&(this.dragging=!1,(0,nI.Qy)(this,"dragstop",this.left,this.top)),c3(document.documentElement,c9.move,this.handleResize)}}}),dt=["onMousedown","onTouchstart"];var di=(0,tP.Z)(de,[["render",function(e,t,i,n,o,r){let a=(0,M.resolveDirective)("syno-id");return(0,M.withDirectives)(((0,M.openBlock)(),(0,M.createElementBlock)("div",{style:(0,M.normalizeStyle)(e.style),class:(0,M.normalizeClass)([{[e.classNameActive]:e.enabled,[e.classNameDragging]:e.dragging,[e.classNameResizing]:e.resizing,[e.classNameDraggable]:e.draggable,[e.classNameResizable]:e.resizable},e.className]),onMousedown:t[0]||(t[0]=function(){return e.elementDown&&e.elementDown(...arguments)}),onTouchstart:t[1]||(t[1]=function(){return e.elementTouchDown&&e.elementTouchDown(...arguments)})},[((0,M.openBlock)(!0),(0,M.createElementBlock)(M.Fragment,null,(0,M.renderList)(e.actualHandles,t=>((0,M.openBlock)(),(0,M.createElementBlock)("div",{key:t,class:(0,M.normalizeClass)([e.classNameHandle,e.classNameHandle+"-"+t]),style:(0,M.normalizeStyle)({display:e.enabled?"block":"none"}),onMousedown:(0,M.withModifiers)(i=>e.handleDown(t,i),["stop","prevent"]),onTouchstart:(0,M.withModifiers)(i=>e.handleTouchDown(t,i),["stop","prevent"])},[(0,M.renderSlot)(e.$slots,t)],46,dt))),128)),(0,M.renderSlot)(e.$slots,"default")],38)),[[a]])}]]),dn=i(56325);let dr=(0,M.defineComponent)({__name:"TextToolbar",emits:["resizing","resizestop"],setup(e,t){let{emit:i}=t,n=T.Qr.ROW_HEADER_WIDTH,o=tp(),r=(0,M.shallowRef)(null),a=(0,M.ref)(null),s=(0,M.ref)(null),l=(0,A.O3)(),{readable:c,editable:d}=(0,to.storeToRefs)((0,k.eL)()),{holderStr:u}=(0,to.storeToRefs)(o);function h(){let e=(0,A.O3)().value?.selections.multiSelections.getHighlightCoord();if(!e)return;r.value?.setSpellCheck();let t=(0,A.O3)().value?.getActiveEditor();t&&!t.isOpened()&&t.beginEditing(e,null,!1,"top")}function p(e){let t=null;switch((0,k.ku)(e.key)){case"Enter":t=f()?.onEnterKey(e);break;case"Tab":t=f()?.onTabKey(e);break;case"Escape":t=f()?.onEscKey()}t&&(e.preventDefault(),e.stopPropagation(),t.then(()=>{(0,A.c)().reFocus()}))}function f(){return(0,A.O3)().value?._editorManager}function g(){u.value="";let e=(0,A.O3)().value?.getActiveEditor();return!!e&&e.isOpened()}function m(){g()||r.value?.setValue(""),u.value=""}function v(){g()||o.updateValue()}function b(){r.value?.setValue(""),document.activeElement===r.value?.getEl()&&(r.value?.getEl().blur(),window.getSelection()?.removeAllRanges())}function y(e,t){return 0===t.button&&!(0,dn.lz)(t)}return(0,M.watch)(()=>o.inputAttr,e=>{r.value&&(r.value.setValue(e.value),r.value.getEl().setAttribute("contenteditable",`${e.editable}`),r.value.getEl().style.webkitUserModify=e.editable?"":"read-only")}),(0,M.watch)(d,e=>r.value?.setReadonly(!e)),(0,M.watch)(l,(e,t)=>{t&&(t.removeHook("afterRender",v),t.removeHook("closeEditor",b),t.removeHook("afterDeselect",m)),e&&(function(e){r.value=(0,M.markRaw)(e);let t=r.value.getEl();s.value?.appendChild(t)}(e.getActiveEditor().getInputPair()),e.addHook("afterRender",v),e.addHook("closeEditor",b),e.addHook("afterDeselect",m))},{immediate:!0}),(0,M.watch)([r,c,s],e=>{let[t,i,n]=e,o=t?.getEl();i?(o?.classList.add("selectabletext"),o?.addEventListener("focus",h),n?.addEventListener("keydown",p)):(o?.classList.remove("selectabletext"),o?.removeEventListener("focus",h),n?.removeEventListener("keydown",p))},{immediate:!0}),(e,t)=>((0,M.openBlock)(),(0,M.createBlock)((0,M.unref)(di),{"syno-id":"text-toolbar-draggable-resizable",active:!0,draggable:!1,"prevent-deactivation":!0,h:29,"min-height":29,"max-height":300,handles:["bm"],class:(0,M.normalizeClass)(e.$style.root),"on-resize-start":y,onResizing:t[0]||(t[0]=()=>i("resizing")),onResizestop:t[1]||(t[1]=()=>i("resizestop"))},{default:(0,M.withCtx)(()=>[(0,M.createElementVNode)("div",{style:(0,M.normalizeStyle)({width:`${(0,M.unref)(n)}px`}),class:(0,M.normalizeClass)(e.$style["icon-wrapper"])},[(0,M.createVNode)((0,M.unref)(eM.Z),{type:"bkg-img",class:(0,M.normalizeClass)(e.$style.icon)},null,8,["class"])],6),(0,M.createElementVNode)("div",{ref_key:"field",ref:s,class:"syno-o-sh-formula-field"},[(0,M.createElementVNode)("div",{ref_key:"placeholder",ref:a,class:"syno-o-sh-formula-placeholder"},(0,M.toDisplayString)((0,M.unref)(u)),513)],512)]),_:1},8,["class"]))}});var da=i(54227),ds=i.n(da);let dl={};dl.$style=ds();let dc=(0,q.default)(dr,[["__cssModules",dl]]);var dd=i(74318),du=(0,M.defineComponent)({name:"Toggle",components:{vSpinIcon:i0.Z},mixins:[dd.Z],props:{[oC.yz.value()]:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},onBeforeChange:{type:(0,oE.C)(Function),default:void 0}},emits:["update:model-value"],data:()=>({}),computed:{compCls(){return["v-toggle",{"v-toggle--on":(0,oC.eQ)(this),"v-toggle--disabled":this.disabled,"v-toggle--loading":this.loading}]}},methods:{hasPrefix(){return(0,nA._Y)(this,"prefix")},hasSuffix(){return(0,nA._Y)(this,"suffix")},getValue(){return(0,oC.eQ)(this)},async handleChange(e){this.disabled||this.getValue()===e||this.loading||!1!==await this.onBeforeChange?.()&&(0,nI.Qy)(this,(0,oC.ef)(),e)},onSwitch(){this.handleChange(!this.getValue())}}});let dh=["aria-checked","aria-disabled"],dp={key:0,class:"v-toggle__prefix"},df={key:1,class:"v-toggle__loading"},dg={key:2,class:"v-toggle__track"},dm=[(0,M.createElementVNode)("div",{class:"v-toggle__indicator"},null,-1)],dv={key:3,class:"v-toggle__suffix"};var db=(0,tP.Z)(du,[["render",function(e,t,i,n,o,r){let a=(0,M.resolveComponent)("v-spin-icon");return(0,M.openBlock)(),(0,M.createElementBlock)("div",{role:"switch",tabindex:"-1",class:(0,M.normalizeClass)(e.compCls),"aria-checked":e.getValue(),"aria-disabled":e.disabled,onClick:t[0]||(t[0]=(0,M.withModifiers)(function(){return e.onSwitch&&e.onSwitch(...arguments)},["prevent"])),onKeydown:[t[1]||(t[1]=(0,M.withKeys)((0,M.withModifiers)(function(){return e.onSwitch&&e.onSwitch(...arguments)},["prevent"]),["enter"])),t[2]||(t[2]=(0,M.withKeys)((0,M.withModifiers)(function(){return e.onSwitch&&e.onSwitch(...arguments)},["prevent"]),["space"]))]},[e.hasPrefix()?((0,M.openBlock)(),(0,M.createElementBlock)("div",dp,[(0,M.renderSlot)(e.$slots,"prefix",{disabled:e.disabled,value:e.getValue(),loading:e.loading})])):(0,M.createCommentVNode)("",!0),e.loading?((0,M.openBlock)(),(0,M.createElementBlock)("div",df,[(0,M.createVNode)(a)])):((0,M.openBlock)(),(0,M.createElementBlock)("div",dg,dm)),e.hasSuffix()?((0,M.openBlock)(),(0,M.createElementBlock)("div",dv,[(0,M.renderSlot)(e.$slots,"suffix",{disabled:e.disabled,value:e.getValue(),loading:e.loading})])):(0,M.createCommentVNode)("",!0)],42,dh)}]]);let dy=(0,M.defineComponent)({__name:"BaseSection",props:{title:{}},setup:e=>(e,t)=>((0,M.openBlock)(),(0,M.createElementBlock)("div",{class:(0,M.normalizeClass)(e.$style.root)},[(0,M.createElementVNode)("div",{class:(0,M.normalizeClass)(e.$style.title)},(0,M.toDisplayString)(e.title),3),(0,M.renderSlot)(e.$slots,"default")],2))});var dw=i(32391),d_=i.n(dw);let dx={};dx.$style=d_();let dS=(0,q.default)(dy,[["__cssModules",dx]]),dC=(0,M.defineComponent)({__name:"FieldSection",setup(e){let t=tQ(),i=(0,M.computed)({get:()=>t.activeFieldId,set:e=>t.setActiveFiledId(e)});return(0,M.watch)(i,()=>t$().setupFilterForm()),(e,n)=>((0,M.openBlock)(),(0,M.createBlock)(dS,{title:(0,M.unref)(N.$)("filter","select_field")},{default:(0,M.withCtx)(()=>[(0,M.createVNode)((0,M.unref)(H.Z),{modelValue:i.value,"onUpdate:modelValue":n[0]||(n[0]=e=>i.value=e),"syno-id":"field-select",width:"100%",options:(0,M.unref)(t).fieldSectionOptions},null,8,["modelValue","options"])]),_:1},8,["title"]))}}),dk=(0,M.defineComponent)({name:"ButtonGroup"}),dI={class:"v-btn-group"};var dA=(0,tP.Z)(dk,[["render",function(e,t,i,n,o,r){let a=(0,M.resolveDirective)("syno-id");return(0,M.withDirectives)(((0,M.openBlock)(),(0,M.createElementBlock)("div",dI,[(0,M.renderSlot)(e.$slots,"default")])),[[a]])}]]);let dT=(0,M.defineComponent)({__name:"SortSection",props:{disabled:{type:Boolean},sortOptions:{},pivotSorting:{}},emits:["sort"],setup(e,t){let{emit:i}=t,n=(0,M.ref)(a()),o=(0,M.computed)(()=>{let t=e.pivotSorting;return null===t||"manual"===t.type||null!==t.fieldId&&t.fieldId!==n.value||null===t.fieldId&&n.value!==e.sortOptions[0]?.value?tm.NONE:"asc"===t.type?tm.ASC:tm.DESC});function r(e){i("sort",e===o.value?tm.NONE:e,n.value)}function a(){return e.pivotSorting&&e.sortOptions.find(t=>{let{value:i}=t;return i===e.pivotSorting?.fieldId})?e.pivotSorting.fieldId:e.sortOptions[0]?.value??""}return(0,M.watch)(()=>e.sortOptions,(t,i)=>{i[0]?.value!==t[0]?.value?n.value=a():t.find(e=>{let{value:t}=e;return t===n.value})||(n.value=e.sortOptions[0]?.value??"")}),(e,t)=>((0,M.openBlock)(),(0,M.createBlock)(dS,{title:(0,M.unref)(N.$)("filter","sort_by")},{default:(0,M.withCtx)(()=>[e.sortOptions.length>0?((0,M.openBlock)(),(0,M.createBlock)((0,M.unref)(H.Z),{key:0,modelValue:n.value,"onUpdate:modelValue":t[0]||(t[0]=e=>n.value=e),width:"100%","syno-id":"sort-select",options:e.sortOptions},null,8,["modelValue","options"])):(0,M.createCommentVNode)("",!0),(0,M.createVNode)((0,M.unref)(dA),{"syno-id":"btn-group-sort",class:(0,M.normalizeClass)(e.$style["btn-group"])},{default:(0,M.withCtx)(()=>[(0,M.createVNode)((0,M.unref)(e0.Z),{"syno-id":"btn-sort-inc",class:(0,M.normalizeClass)(e.$style.btn),disabled:e.disabled,active:o.value===(0,M.unref)(tm).ASC,onClick:t[1]||(t[1]=()=>r((0,M.unref)(tm).ASC))},{default:(0,M.withCtx)(()=>[(0,M.createTextVNode)((0,M.toDisplayString)((0,M.unref)(N.$)("filter","inc_order")),1)]),_:1},8,["class","disabled","active"]),(0,M.createVNode)((0,M.unref)(e0.Z),{"syno-id":"btn-sort-desc",class:(0,M.normalizeClass)(e.$style.btn),disabled:e.disabled,active:o.value===(0,M.unref)(tm).DESC,onClick:t[2]||(t[2]=()=>r((0,M.unref)(tm).DESC))},{default:(0,M.withCtx)(()=>[(0,M.createTextVNode)((0,M.toDisplayString)((0,M.unref)(N.$)("filter","desc_order")),1)]),_:1},8,["class","disabled","active"])]),_:1},8,["class"])]),_:1},8,["title"]))}});var dE=i(10937),dR=i.n(dE);let dD={};dD.$style=dR();let dO=(0,q.default)(dT,[["__cssModules",dD]]);var dM=i(3384),dN=i(72681),dP=i(64535);let dL=Symbol("filter"),dB=(0,M.defineComponent)({__name:"ValuesContainer",setup(e){let t=t$(),i=(0,M.inject)(dL),n=(0,M.computed)(()=>t.searchResult),o=(0,M.computed)(()=>t.searchCheckCount);function r(){t.checkAll()}function a(e){t.checkCountChanged(e?1:-1)}function s(){i?.applyCondition(t.calcValueCondition(!0))}return(e,i)=>{let l=(0,M.resolveDirective)("tooltip");return(0,M.openBlock)(),(0,M.createElementBlock)("div",{class:(0,M.normalizeClass)(e.$style.root)},[(0,M.createVNode)((0,M.unref)(ed.Z),{modelValue:(0,M.unref)(t).searchText,"onUpdate:modelValue":i[0]||(i[0]=e=>(0,M.unref)(t).searchText=e),"syno-id":"search-input",class:(0,M.normalizeClass)(e.$style.search),clearable:""},{prefix:(0,M.withCtx)(()=>[(0,M.createVNode)((0,M.unref)(eM.Z),{class:(0,M.normalizeClass)(e.$style["search-icon"]),type:"bkg-img"},null,8,["class"])]),_:1},8,["modelValue","class"]),(0,M.createElementVNode)("div",{class:(0,M.normalizeClass)(e.$style["scrollbar-container"])},[(0,M.createVNode)((0,M.unref)(dP.Z),{total:n.value.length,"item-size":30},{default:(0,M.withCtx)(i=>{let{start:s,end:l}=i;return[(0,M.createVNode)((0,M.unref)(V.Z),{"syno-id":"select-all-checkbox","model-value":(0,M.unref)(t).searchCheckCount===n.value.length,indeterminate:0<o.value&&o.value<n.value.length,class:(0,M.normalizeClass)(e.$style.checkbox),"onUpdate:modelValue":r},{default:(0,M.withCtx)(()=>[(0,M.createElementVNode)("div",{class:(0,M.normalizeClass)(e.$style["checkbox-label-content"])},(0,M.toDisplayString)((0,M.unref)(N.$)("filter","select_all")),3)]),_:1},8,["model-value","indeterminate","class"]),((0,M.openBlock)(!0),(0,M.createElementBlock)(M.Fragment,null,(0,M.renderList)(t.searchResult.slice(s,l+1).map(e=>t.items[e]),t=>((0,M.openBlock)(),(0,M.createBlock)((0,M.unref)(V.Z),{key:t.text,modelValue:t.checked,"onUpdate:modelValue":e=>t.checked=e,"syno-id":"select-item-checkbox",class:(0,M.normalizeClass)([e.$style.checkbox,e.$style["checkbox-indent"]]),onChange:a},{default:(0,M.withCtx)(()=>[(0,M.createElementVNode)("div",{class:(0,M.normalizeClass)(e.$style["checkbox-label-content"])},(0,M.toDisplayString)(t.display),3)]),_:2},1032,["modelValue","onUpdate:modelValue","class"]))),128))]}),_:1},8,["total"])],2),(0,M.unref)(t).searchText&&o.value>0?(0,M.withDirectives)(((0,M.openBlock)(),(0,M.createBlock)((0,M.unref)(e0.Z),{key:0,"syno-id":"button",class:(0,M.normalizeClass)(e.$style["search-only-btn"]),type:"footbar",onClick:s},{default:(0,M.withCtx)(()=>[(0,M.createTextVNode)((0,M.toDisplayString)((0,M.unref)(eX.format)((0,M.unref)(N.$)("filter","search_items_only"),o.value)),1)]),_:1},8,["class"])),[[l,{content:(0,M.unref)(eX.format)((0,M.unref)(N.$)("filter","search_items_only"),o.value),overflowOnly:e=>e.querySelector("span.v-btn-content")}]]):(0,M.createCommentVNode)("",!0)],2)}}});var dF=i(76864),dV=i.n(dF);let dz={};dz.$style=dV();let dH=(0,q.default)(dB,[["__cssModules",dz]]),dW=(0,M.defineComponent)({__name:"FilterSection",setup(e,t){let{expose:i}=t,n=t$(),{tab:o,op:r,value1:a,value2:s,colorType:l,color:c}=(0,to.storeToRefs)(n),d=(0,M.ref)(null),u=(0,M.computed)(()=>"none"!==r.value),h=(0,M.computed)(()=>["between","notBetween"].includes(r.value)),p=(0,M.computed)(()=>n.fillColorSet),f=(0,M.computed)(()=>n.textColorSet),g=(0,M.computed)(()=>p.value.size<=1),m=(0,M.computed)(()=>f.value.size<=1),v=(0,M.computed)(()=>[{label:(0,N.$)("condition","none"),value:tg.NONE},{label:(0,N.$)("filter","fill_color"),value:tg.FILL,disabled:g.value},{label:(0,N.$)("filter","text_color"),value:tg.TEXT,disabled:m.value}]),b=(0,M.computed)(()=>l.value===tg.NONE?[]:Array.from((l.value===tg.FILL?p:f).value,e=>({color:e,html:`
  <div style="height: 20px;
  width: 200px;
  border: 2px solid #${t_(e)};
  border-radius: 2px;
  background: #${e}"/>`})));function y(e){n.changeTab(e)}return(0,M.watch)([u,h],()=>{a.value="",s.value="",(d.value?.fields).forEach(e=>e.resetInvalid())}),(0,M.watch)(b,e=>{e.length&&(c.value=e[0].color)}),i({validate:async function(){return o.value!==tf.CONDITION||(d.value?.validate()??!1)}}),(e,t)=>((0,M.openBlock)(),(0,M.createBlock)(dS,{title:(0,M.unref)(N.$)("filter","filter_by")},{default:(0,M.withCtx)(()=>[(0,M.createElementVNode)("div",{class:(0,M.normalizeClass)(e.$style.root)},[(0,M.createVNode)((0,M.unref)(dM.Z),{modelValue:(0,M.unref)(o),"onUpdate:modelValue":t[5]||(t[5]=e=>(0,M.isRef)(o)?o.value=e:null),"syno-id":"tabs",fbar:!1,class:(0,M.normalizeClass)(e.$style.tabs),onTabClick:y},{default:(0,M.withCtx)(()=>[(0,M.createVNode)((0,M.unref)(dN.Z),{"syno-id":"value-tab",tab:(0,M.unref)(N.$)("filter","value_tab"),"tab-key":(0,M.unref)(tf).VALUE,class:(0,M.normalizeClass)(e.$style.tab)},{default:(0,M.withCtx)(()=>[(0,M.createVNode)(dH)]),_:1},8,["tab","tab-key","class"]),(0,M.createVNode)((0,M.unref)(dN.Z),{"syno-id":"condition-tab",tab:(0,M.unref)(N.$)("filter","condition_tab"),"tab-key":(0,M.unref)(tf).CONDITION,class:(0,M.normalizeClass)([e.$style.tab,e.$style["tab-condition"]])},{default:(0,M.withCtx)(()=>[(0,M.createVNode)((0,M.unref)(H.Z),{modelValue:(0,M.unref)(r),"onUpdate:modelValue":t[0]||(t[0]=e=>(0,M.isRef)(r)?r.value=e:null),"syno-id":"condition-select",width:"100%",options:(0,M.unref)(tv)},null,8,["modelValue","options"]),(0,M.createVNode)((0,M.unref)(F.Z),{ref_key:"form",ref:d,"syno-id":"condition-form",flex:"row",class:(0,M.normalizeClass)(e.$style.form)},{default:(0,M.withCtx)(()=>[(0,M.createVNode)((0,M.unref)(eJ.Z),{"hide-label":""},{default:(0,M.withCtx)(()=>[u.value?((0,M.openBlock)(),(0,M.createBlock)((0,M.unref)(z.Z),{key:0,"wrapper-flex":"auto",prop:"value1",rules:(0,M.unref)(tb)},{default:(0,M.withCtx)(()=>[(0,M.createVNode)((0,M.unref)(ed.Z),{modelValue:(0,M.unref)(a),"onUpdate:modelValue":t[1]||(t[1]=e=>(0,M.isRef)(a)?a.value=e:null),width:"auto","syno-id":"condition-input-1",placeholder:(0,M.unref)(N.$)("condition","empty_value")},null,8,["modelValue","placeholder"])]),_:1},8,["rules"])):(0,M.createCommentVNode)("",!0),h.value?((0,M.openBlock)(),(0,M.createBlock)((0,M.unref)(z.Z),{key:1,"wrapper-flex":"none",textonly:""},{default:(0,M.withCtx)(()=>t[6]||(t[6]=[(0,M.createTextVNode)(" & ")])),_:1})):(0,M.createCommentVNode)("",!0),h.value?((0,M.openBlock)(),(0,M.createBlock)((0,M.unref)(z.Z),{key:2,"wrapper-flex":"auto",prop:"value2",rules:(0,M.unref)(tb)},{default:(0,M.withCtx)(()=>[(0,M.createVNode)((0,M.unref)(ed.Z),{modelValue:(0,M.unref)(s),"onUpdate:modelValue":t[2]||(t[2]=e=>(0,M.isRef)(s)?s.value=e:null),width:"auto","syno-id":"condition-input-2",placeholder:(0,M.unref)(N.$)("condition","empty_value")},null,8,["modelValue","placeholder"])]),_:1},8,["rules"])):(0,M.createCommentVNode)("",!0)]),_:1})]),_:1},8,["class"])]),_:1},8,["tab","tab-key","class"]),(0,M.unref)(n).isPivotTable?(0,M.createCommentVNode)("",!0):((0,M.openBlock)(),(0,M.createBlock)((0,M.unref)(dN.Z),{key:0,"syno-id":"color-tab",tab:(0,M.unref)(N.$)("filter","color_tab"),"tab-key":(0,M.unref)(tf).COLOR,class:(0,M.normalizeClass)([e.$style.tab,e.$style["tab-color"]])},{default:(0,M.withCtx)(()=>[(0,M.createVNode)((0,M.unref)(H.Z),{modelValue:(0,M.unref)(l),"onUpdate:modelValue":t[3]||(t[3]=e=>(0,M.isRef)(l)?l.value=e:null),"syno-id":"color-type-select",width:"100%",options:v.value},null,8,["modelValue","options"]),(0,M.unref)(l)!==(0,M.unref)(tg).NONE?((0,M.openBlock)(),(0,M.createBlock)((0,M.unref)(H.Z),{key:0,modelValue:(0,M.unref)(c),"onUpdate:modelValue":t[4]||(t[4]=e=>(0,M.isRef)(c)?c.value=e:null),"syno-id":"color-select",width:"100%","display-mode":"html","display-field":"html","value-field":"color",options:b.value,class:(0,M.normalizeClass)(e.$style["color-select"])},{"inner-option":(0,M.withCtx)(t=>{let{option:i}=t;return[(0,M.createElementVNode)("div",{class:(0,M.normalizeClass)(e.$style["color-select-option"]),style:(0,M.normalizeStyle)({backgroundColor:`#${i.color}`,borderColor:`#${(0,M.unref)(t_)(i.color)}`})},null,6)]}),_:1},8,["modelValue","options","class"])):(0,M.createCommentVNode)("",!0)]),_:1},8,["tab","tab-key","class"]))]),_:1},8,["modelValue","class"])],2)]),_:1},8,["title"]))}});var dY=i(20242),dU=i.n(dY);let dG={};dG.$style=dU();let dZ=(0,q.default)(dW,[["__cssModules",dG]]),dj=(0,M.defineComponent)({__name:"ValuesSection",setup(e){let t=tQ(),i=(0,M.computed)(()=>(0,eX.format)((0,N.$)("filter","filter_by_field"),t.fieldSectionOptions[0]?.label??""));return(e,t)=>((0,M.openBlock)(),(0,M.createBlock)(dS,{title:i.value},{default:(0,M.withCtx)(()=>[(0,M.createVNode)(dH,{class:(0,M.normalizeClass)(e.$style.values)},null,8,["class"])]),_:1},8,["title"]))}});var dq=i(42493),dK=i.n(dq);let dX={};dX.$style=dK();let dQ=(0,q.default)(dj,[["__cssModules",dX]]),d$=["width","height"],dJ=(0,M.defineComponent)({name:"vIconIconInformation",props:{width:{type:[Number,String],default:24},height:{type:[Number,String],default:24}}}),d0=(0,q.default)(dJ,[["render",function(e,t,i,n,o,r){return(0,M.openBlock)(),(0,M.createElementBlock)("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:e.width,height:e.height},t[0]||(t[0]=[(0,M.createElementVNode)("circle",{cx:"12",cy:"12",r:"8",fill:"#2DB27B","fill-opacity":"0.2"},null,-1),(0,M.createElementVNode)("path",{d:"M10 16V15H11V12.5H10V11.5H13V15H14V16H10ZM13 8V10H11V8H13Z",fill:"#2DB27B"},null,-1)]),8,d$)}]]);var d1=i(12493),d2=i.n(d1);let d3={};d3.$style=d2();let d4=(0,q.default)({},[["render",function(e,t){return(0,M.openBlock)(),(0,M.createElementBlock)("div",{class:(0,M.normalizeClass)(e.$style.root)},[(0,M.renderSlot)(e.$slots,"default")],2)}],["__cssModules",d3]]),d5=(0,M.defineComponent)({__name:"FilterForm",setup(e){let t=t$(),i=tQ(),n=(0,ti.xj)(),o=(0,ti.v0)(),{onlyMe:r}=(0,to.storeToRefs)(t),{editable:a}=(0,to.storeToRefs)((0,k.eL)()),s=(0,M.ref)(null),l=(0,M.useTemplateRef)("dropdown"),c=(0,M.ref)(void 0);(0,M.provide)(dL,{applyCondition:y});let d=(0,M.computed)(()=>(0,A.uD)().value?.getWorkbook().getFilterStore()),u=(0,M.computed)(()=>t.dropdownBound),h=(0,M.computed)(()=>t.show),p=(0,M.computed)(()=>t.hasFilter),f=(0,M.computed)(()=>!!d.value?.isInViewState),g=(0,M.computed)(()=>!!d.value?.activeFilter?.isPrivate),m=(0,M.computed)(()=>!a.value||f.value),v=(0,M.computed)(()=>!a.value);function b(){y(t.condition)}async function y(e){if(t.isPivotTablePage||await s.value?.validate()){if(t.isPivotTable){let t=i.info?.tableId,n=i.activeFieldId;t&&n&&(0,A.s7)().setPivotFieldFilter(t,n,e)}else if(r.value){let i=d.value?.activeFilter?.range,n=d.value?.activeFilter?.filters,o=t.column;if(!i||!n||null===o)return;n[o-i[1]]=e,(0,A.c)().createPrivateFilterView(i,n)}else{let i=d.value?.activeId;if(!i)return;(0,A.c)().setFilter(i,t.column,e)}_()}}function w(e,n){if(t.isPivotTable){let t=i.info?.tableId,o=i.activeFieldId;if(t&&o&&n){let i=e===tm.NONE?"manual":e===tm.ASC?"asc":"desc";(0,A.s7)().setPivotFieldAttr(t,o,[["sorting",{type:i,fieldId:n===o||"manual"===i?null:n}]])}}else{let i=t.column,n=ty()?.getActiveFilterJSON()?.range;if(null===i||!n||e===tm.NONE)return;let o=(0,A.uD)().value?.getWorkbook().getCurrentSheet();if(!o)return;let r=o.getMergePlugin().getMergedRange(n[0],n[1]),a=r?r.to.row-n[0]+1:1;if(n[2]-n[0]+1-a<1)return;(0,A.c)().sort((0,T.MT)(n[0]+a,n[1],n[2],n[3]),[i],e===tm.ASC)}}function _(){t.hideFilterForm(),(0,A.O3)().value?.getPlugin("synoFilter")?.clearMenu(),(0,A.O3)().value?.pivotTableView.clearMenu(),SYNO.SDS.Office.Utils.focusEditor()}function x(){t.resetFilter()}return(0,M.watch)(h,async e=>{if(e){await (0,M.nextTick)();let e=l.value?.$el,{x:t,y:i,width:o,height:r}=u.value,a=(0,A.O3)().value?.view.isRtl()??!1;if(!e||!n){c.value={left:`${t+(a?0:o)}px`,top:`${i}px`};return}let{x:s,y:d}=n.getAlignToXYv2(e,{left:t,top:i,width:o,height:r},a?"tr->tl":"tl->tr");c.value={left:`${s}px`,top:`${d}px`}}}),(0,M.watch)(r,e=>{e&&(0,O.o0)((0,N.$)("filter","only_me_toast"),3e3)}),(e,n)=>{let a=(0,M.resolveDirective)("clickoutside");return h.value?((0,M.openBlock)(),(0,M.createBlock)((0,M.unref)(te.Z),{key:0,"target-style":c.value,"mount-to":(0,M.unref)(o)},{default:(0,M.withCtx)(()=>[(0,M.withDirectives)(((0,M.openBlock)(),(0,M.createBlock)(d4,{ref:"dropdown",class:(0,M.normalizeClass)(e.$style.root)},{default:(0,M.withCtx)(()=>[(0,M.createElementVNode)("div",{class:(0,M.normalizeClass)(e.$style.section)},[(0,M.unref)(t).isPivotTablePage?((0,M.openBlock)(),(0,M.createBlock)(dQ,{key:0})):((0,M.openBlock)(),(0,M.createElementBlock)(M.Fragment,{key:1},[(0,M.unref)(i).fieldSectionOptions.length>1?((0,M.openBlock)(),(0,M.createBlock)(dC,{key:0})):(0,M.createCommentVNode)("",!0),(0,M.createVNode)(dO,{disabled:m.value,"sort-options":(0,M.unref)(i).sortSectionOptions,"pivot-sorting":(0,M.unref)(i).sorting,onSort:w},null,8,["disabled","sort-options","pivot-sorting"]),(0,M.createVNode)(dZ,{ref_key:"filterSection",ref:s},null,512)],64))],2),(0,M.createElementVNode)("div",{class:(0,M.normalizeClass)(e.$style.separator)},null,2),g.value||(0,M.unref)(t).isPivotTable?(0,M.createCommentVNode)("",!0):((0,M.openBlock)(),(0,M.createElementBlock)("div",{key:0,class:(0,M.normalizeClass)([e.$style["flex-container"],e.$style["only-me"]])},[(0,M.createElementVNode)("div",{class:(0,M.normalizeClass)([e.$style["flex-container"],e.$style["only-me-left-part"]])},[(0,M.createElementVNode)("span",{class:(0,M.normalizeClass)(e.$style["only-me-label"])},(0,M.toDisplayString)((0,M.unref)(N.$)("filter","only_me")),3),(0,M.createVNode)((0,M.unref)(o3.Z),{content:(0,M.unref)(N.$)("filter","only_me_info")},{custom:(0,M.withCtx)(()=>[(0,M.createVNode)((0,M.unref)(eM.Z),{"svg-icon":(0,M.unref)(d0)},null,8,["svg-icon"])]),_:1},8,["content"])],2),(0,M.createVNode)((0,M.unref)(db),{modelValue:(0,M.unref)(r),"onUpdate:modelValue":n[0]||(n[0]=e=>(0,M.isRef)(r)?r.value=e:null),class:(0,M.normalizeClass)(e.$style["only-me-toggle"])},null,8,["modelValue","class"])],2)),(0,M.createElementVNode)("div",{class:(0,M.normalizeClass)([e.$style["flex-container"],e.$style.fbar])},[(0,M.createVNode)(st,{"syno-id":"clear-filter",display:(0,M.unref)(N.$)("filter","clear_filter"),disabled:!p.value,class:(0,M.normalizeClass)(e.$style["btn-clear"]),onClick:x},null,8,["display","disabled","class"]),(0,M.createElementVNode)("div",{class:(0,M.normalizeClass)([e.$style["flex-container"],e.$style["fbar-right-btns"]])},[(0,M.createVNode)((0,M.unref)(e0.Z),{"syno-id":"button-cancel",type:"footbar",suffix:"cancel",onClick:_},{default:(0,M.withCtx)(()=>[(0,M.createTextVNode)((0,M.toDisplayString)((0,M.unref)(N.$)("common","cancel")),1)]),_:1}),(0,M.createVNode)((0,M.unref)(e0.Z),{"syno-id":"button-apply",type:"footbar",suffix:"main",class:(0,M.normalizeClass)(e.$style["btn-apply"]),disabled:v.value,onClick:b},{default:(0,M.withCtx)(()=>[(0,M.createTextVNode)((0,M.toDisplayString)((0,M.unref)(N.$)("common","apply")),1)]),_:1},8,["class","disabled"])],2)],2)]),_:1},8,["class"])),[[a,_,void 0,{children:!0}]])]),_:1},8,["target-style","mount-to"])):(0,M.createCommentVNode)("",!0)}}});var d6=i(80439),d8=i.n(d6);let d7={};d7.$style=d8();let d9=(0,q.default)(d5,[["__cssModules",d7]]),ue=(b="handson-panel",(0,to.defineStore)(b,{state:function(){return{showInput:!0,showTabBar:!0,showFilterView:!1}},getters:{},actions:{setShowFilterView(e){this.showFilterView=e},setShowFooter(e,t){void 0===t&&(t=e),this.showTabBar=e,(0,eK.isMobileLayout)()&&(this.showInput=t)}}}));function ut(){let e=(0,A.c)(),t=(0,A.O3)().value,i=(0,A.uD)().value?.getWorkbook().getCurrentSheet();if(e&&t&&i&&(0,eK.isOSKSupported)()&&((0,O.Dc)()||!e.getMainPanel().bottomPanel.collapsed)){let i;if(e.addRowsField.hasFocus)return void t.view.viewport.setScrollTop(Number.MAX_VALUE);let n=t.getActiveEditor();n?.isOpened()&&(i=n.getRange().from);let o=t.getSelectedRange();if(!i&&o&&(i=o.highlight.from),!i)return;let{row:r,col:a}=i;t.scrollToRange(r,a),t.getActiveEditor().deferRefreshDimensions(),e.floatPanelMgr.updatePanels("afterResize",t.view)}}let ui=(0,M.defineComponent)({__name:"HandsonPanel",setup(e,t){let{expose:i}=t,n={"--text-toolbar-order":(0,eK.isMobileLayout)()?3:1,"--filter-view-order":(0,eK.isMobileLayout)()?1:2,"--hot-wrapper-order":(0,eK.isMobileLayout)()?2:3,"--tab-bar-order":4},o={width:"100%",...(0,eK.isMobileLayout)()?{height:"44px"}:{}};function r(e){let t=new T.QY(e,T.Eh.editor,t7);return(0,A.zu)(t),t}let a=(0,M.ref)(null),s=(0,M.ref)(null),{showInput:l,showTabBar:c,showFilterView:d}=(0,to.storeToRefs)(ue());return(0,M.watch)([l,c,d],()=>(0,M.nextTick)(ut)),i({filterViewFocusName:function(){a.value?.handleFocusName()},filterViewFocusRange:function(){a.value?.handleFocusRange()},tabBarShowSheetMenu:function(){s.value?.showSheetMenu()},tabBarCreateNewTab:function(){s.value?.createNewTab()}}),(e,t)=>((0,M.openBlock)(),(0,M.createElementBlock)("div",{class:(0,M.normalizeClass)(e.$style.root),style:n},[(0,M.withDirectives)((0,M.createVNode)(dc,{class:(0,M.normalizeClass)(e.$style["text-toolbar"]),style:o,onResizing:(0,M.unref)(ut),onResizestop:(0,M.unref)(ut)},null,8,["class","onResizing","onResizestop"]),[[M.vShow,(0,M.unref)(l)]]),(0,M.withDirectives)((0,M.createVNode)((0,M.unref)(aa),{ref_key:"filterViewToolbar",ref:a,class:(0,M.normalizeClass)(e.$style["filter-view-toolbar"])},null,8,["class"]),[[M.vShow,(0,M.unref)(d)]]),(0,M.createVNode)((0,M.unref)(eg),{class:(0,M.normalizeClass)(e.$style["hot-wrapper"]),"hot-creator":r},null,8,["class"]),(0,M.withDirectives)((0,M.createVNode)((0,M.unref)(c0),{ref_key:"tabBar",ref:s,class:(0,M.normalizeClass)(e.$style["tab-bar"])},null,8,["class"]),[[M.vShow,(0,M.unref)(c)]]),(0,M.createVNode)((0,M.unref)(tc)),(0,M.createVNode)((0,M.unref)(d9))],2))}});var un=i(67557),uo=i.n(un);let ur={};ur.$style=uo();let ua=(0,q.default)(ui,[["__cssModules",ur]]),us=SYNO.SDS.ClipBoardUtil;var ul=i.n(us),uc=i(14036);let ud=Ext.define("SYNO.SDS.Office.Sheet.MainPanel",{extend:r3.d,modeEditHideList:{readonly:["copy","find_replace"],comment:["copy","find_replace"],view:!0,edit:!0},modeEditList:{readonly:["find_replace"],comment:["find_replace"],view:["find_replace"],edit:!0},modeMenuList:{readonly:["file_button","edit_button","view_button","data_button","help_button","zoom_combo","add_shortcut"],comment:["file_button","edit_button","view_button","data_button","insert_button","help_button","add_shortcut"],view:["file_button","edit_button","view_button","help_button","add_shortcut"],edit:!0},modeMenuHideList:{readonly:["insert_button","format_button","sync_status_field"],comment:["zoom_combo","format_button"],view:["zoom_combo","sync_status_field"],edit:["zoom_combo"]},gEditor:A.rb,constructor:function(e){var t=this.fillConfig(e);r3.d.prototype.constructor.call(this,t),this.regEvents(),this._debounceAfterHighlightChanged=(0,em.Z)(this._afterHighlightChanged,100)},fillConfig:function(e){return e},regEvents:function(){var e=this.findAppWindow().getEventMgr();this.mon(e,"init:done",this.onInitDone,this),this.mon(e,"beforesync",this.onBeforeSync,this),this.mon(e,"aftersync",this.onAfterSync,this),window.onHashChange||window.addEventListener("hashchange",this.onHashChange.bind(this)),this.mon(e,"donequeuechange",this.onDoneQueueChange.bind(this)),this.mon(e,"getnodedone",function(e,t,i){!0===e&&this.setShortcut(t.shortcut)},this),this.mon(e,"onselectimage",this.onSelectImage,this)},getMenuLeftItem:function(){var e=SYNO.SDS.Office._T,t=this.createSimpleMenuItem.bind(this);return[{xtype:"syno_button",itemId:"file_button",text:e("file","file"),menu:new SYNO.SDS.Office.Sheet.FileMenu({owner:this}),handler:function(){this.showMenu()}},{xtype:"syno_button",text:e("handsontable","edit"),itemId:"edit_button",menu:this.editMenu=new SYNO.SDS.Office.Menu({items:[t("undo",this.onUndoMenuClick,{hotkey:"Ctrl+Z"}),t("redo",this.onRedoMenuClick,{hotkey:"Ctrl+Y"}),"-",this.createCopyCutMenuItem("cut",{hotkey:"Ctrl+X"}),this.createCopyCutMenuItem("copy",{hotkey:"Ctrl+C"}),t("paste",this.onPasteMenuClick,{hotkey:"Ctrl+V"}),{text:e("handsontable","paste_special"),itemId:"paste_special",menu:this.createPasteMenu()},"-",t("select_all",this.onSelectAllMenuClick,{hotkey:"Ctrl+A"}),"-",t("find_replace",this.onFindMenuClick,{hotkey:"Ctrl+F"}),"-",t("clear_content",this.onRemoveValueClick),"-",t("remove_row",this.onRemoveRowColClick),t("remove_col",this.onRemoveRowColClick),t("remove_cells_shift_left",this.onCellRangeOpClick),t("remove_cells_shift_up",this.onCellRangeOpClick),"-",t("note_remove",this.onRemoveNoteMenuClick)],listeners:{scope:this,beforeshow:function(t){let i=(0,A.c)().hot,n=i.getSelectedRange(),o=(0,A.c)().hot.getPlugin("synoCopyPaste").isTargetReady();if(t.getComponent("copy").setDisabled(!o),SYNO.SDS.Office.Utils.isEditable()){t.getComponent("cut").setDisabled(!o),t.getComponent("paste").setDisabled(!n),t.getComponent("remove_col").setText(e("handsontable",n&&1===n.getWidth()?"remove_single_col":"remove_col")),t.getComponent("remove_row").setText(e("handsontable",n&&1===n.getHeight()?"remove_single_row":"remove_row"));let r=i.getRowColSelected(),a=r.row||r.col;t.getComponent("remove_col")[r.row?"hide":"show"](),t.getComponent("remove_row")[r.col?"hide":"show"](),t.getComponent("remove_cells_shift_left")[a?"hide":"show"](),t.getComponent("remove_cells_shift_up")[a?"hide":"show"](),t.getComponent("remove_cells_shift_up").nextSibling()[r.row&&r.col?"hide":"show"]()}}}}),handler:function(){this.showMenu()}},{xtype:"syno_button",itemId:"view_button",text:e("handsontable","view"),menu:new SYNO.SDS.Office.Menu({items:[{text:e("handsontable","frozen"),itemId:"frozen",menu:new SYNO.SDS.Office.Menu({items:[t("first_row",this.fixedRowMenuClick),t("second_row",this.fixedRowMenuClick),t("up_to_cur_row",this.fixedRowMenuClick),t("remove_frozen_row",this.fixedRowMenuClick),"-",t("first_col",this.fixedColMenuClick),t("second_col",this.fixedColMenuClick),t("up_to_cur_col",this.fixedColMenuClick),t("remove_frozen_col",this.fixedColMenuClick)],listeners:{scope:this,beforeshow:function(e){var t=(0,A.c)().sheet;if(t){var i=t.getFreezePlugin();e.getComponent("remove_frozen_row").setVisible(i.fixedRowsTop>0),e.getComponent("remove_frozen_col").setVisible(i.fixedColumnsLeft>0)}}}})},"-",t("hide_row",this.onHideRowsMenuClick,{hotkey:"Ctrl+Alt+9"}),t("hide_col",this.onHideColsMenuClick,{hotkey:"Ctrl+Alt+0"}),"-",{text:e("handsontable","highlight_active"),itemId:"highlight_active",menu:new SYNO.SDS.Office.Menu({cls:"syno-o-check-menu",items:[t("highlight_active_row",this.onHighlightActiveMenuClick,{checked:!1}),t("highlight_active_col",this.onHighlightActiveMenuClick,{checked:!1})]})},"-",this.getMenuZoom(),"-",t("hide_all_toolbars",this.onHideAllToolbarsClick,{text:e("focus_mode","hide_all_toolbars")})],listeners:{scope:this,beforeshow:function(t){if(SYNO.SDS.Office.Utils.isReadOnly()){t.items.items.forEach(e=>e.hide()),t.getComponent("zoom").show(),SYNO.SDS.Office.Env.isOfficeOwned||SYNO.SDS.Office.Env.is_template||(t.getComponent("zoom").nextSibling().show(),t.getComponent("hide_all_toolbars").show());return}var i=(0,A.c)().hot.getSelectedRange();t.getComponent("hide_col").setText(e("handsontable",i&&1===i.getWidth()?"hide_single_col":"hide_col")),t.getComponent("hide_row").setText(e("handsontable",i&&1===i.getHeight()?"hide_single_row":"hide_row"))}}}),handler:function(){this.showMenu()}},{xtype:"syno_button",itemId:"insert_button",text:e("handsontable","insert"),menu:new SYNO.SDS.Office.Menu({items:[t("row_above",this.onInsertRowMenuClick),t("row_below",this.onInsertRowMenuClick),t("col_left",this.onInsertColMenuClick),t("col_right",this.onInsertColMenuClick),"-",t("insert_cells_shift_right",this.onCellRangeOpClick),t("insert_cells_shift_down",this.onCellRangeOpClick),"-",t("comment",this.onInsertCommentClick,{hotkey:"Ctrl+Alt+M"}),t("note",this.onInsertNoteMenuClick,{hotkey:"Shift+F2"}),"-",t("chart",this.onInsertChartClick),t("pivot_table",this.onCreatePivotTable,{text:e("pivot_table","pivot_table")}),t("image",this.onInsertImageClick),t("link",this.onInsertLinkMenuClick,{hotkey:"Ctrl+K"})],listeners:{scope:this,beforeshow:function(t){let i=(0,A.c)();if(SYNO.SDS.Office.Utils.isReadOnly()&&SYNO.SDS.Office.Utils.isCommentable())return void t.items.items.forEach(function(e){e.setVisible("comment"===e.itemId)});{let e=i.isPivotTableEnabled();t.items.items.forEach(function(t){t.setVisible("pivot_table"!==t.itemId||e)})}let n=i.hot,o=n.getSelectedRange();if(!o)return;let r=n.getRowColSelected(),a={row:"col",col:"row"};["col_left","col_right","row_above","row_below"].forEach(function(i){let n=t.getComponent(i),s=i.split("_")[0];if(!r[s]&&r[a[s]])return void n.hide();let l="row"===s?o.getHeight():o.getWidth();1===l?n.show().setText(e("handsontable",i)):n.show().setText(String.format(e("handsontable",i+"_multi"),l))}),(r.row||r.col)&&(t.getComponent("insert_cells_shift_right").hide(),t.getComponent("insert_cells_shift_down").hide(),t.getComponent("insert_cells_shift_down").nextSibling().hide()),t.getComponent("link").setDisabled(i.hasPivotTable(o))}}}),handler:function(){this.showMenu()}},{xtype:"syno_button",text:e("handsontable","format"),itemId:"format_button",menu:new SYNO.SDS.Office.Menu({items:[{itemId:"number_value",text:e("handsontable","number_value"),menu:this.getFormatMenu()},"-",{text:e("handsontable","fontsize"),menu:new SYNO.SDS.Office.Menu({cls:"syno-o-check-menu",items:[this.createFontsizeMenuItem("fontsize_xx_small",10),this.createFontsizeMenuItem("fontsize_x_small",12),this.createFontsizeMenuItem("fontsize_small",14),this.createFontsizeMenuItem("fontsize_normal",16),this.createFontsizeMenuItem("fontsize_large",18),this.createFontsizeMenuItem("fontsize_x_large",24),this.createFontsizeMenuItem("fontsize_xx_large",36)],listeners:{scope:this,beforeshow:function(e){var t=this._getSelectedStyle();if(t){var i=t.getFont().size||this._getDefault("fontsize");e.items.each(function(e){if(e.text===i.toString())return e.setChecked(!0),!1;e.setChecked(!1)},this)}}}})},"-",t("bold",this.onTextStyleMenuClick,{hotkey:"Ctrl+B"}),t("italic",this.onTextStyleMenuClick,{hotkey:"Ctrl+I"}),t("underline",this.onTextStyleMenuClick,{hotkey:"Ctrl+U"}),t("strike",this.onTextStyleMenuClick),"-",{text:e("handsontable","merge_cells"),menu:new SYNO.SDS.Office.Menu({items:[t("merge",this.onMergeCellMenuSelect),t("unmerge",this.onUnmergeCellMenuSelect)],listeners:{scope:this,beforeshow:function(e){e.getComponent("merge").setDisabled((0,A.c)().isMerged()),e.getComponent("unmerge").setDisabled(!(0,A.c)().hasMerged())}}})},"-",{text:e("handsontable","align"),menu:new SYNO.SDS.Office.Menu({cls:"syno-o-check-menu",items:[t("align_left",this.onAlignMenuSelect,{hotkey:"Ctrl+Shift+L",checked:!1,group:"hori_align"}),t("align_center",this.onAlignMenuSelect,{hotkey:"Ctrl+Shift+E",checked:!1,group:"hori_align"}),t("align_right",this.onAlignMenuSelect,{hotkey:"Ctrl+Shift+R",checked:!1,group:"hori_align"}),"-",t("align_top",this.onAlignMenuSelect,{checked:!1,group:"vert_align"}),t("align_middle",this.onAlignMenuSelect,{checked:!1,group:"vert_align"}),t("align_bottom",this.onAlignMenuSelect,{checked:!1,group:"vert_align"})],listeners:{scope:this,beforeshow:function(e){var t=this._getSelectedStyle();if(t){var i=t.getAlignment(),n=i.halign||this._getDefault("h_align"),o=i.valign||this._getDefault("v_align");e.items.items.forEach(function(e){if(e.itemId){var t=e.itemId.split("_")[1];(t===n||t===o)&&e.setChecked(!0)}})}}}})},{text:e("handsontable","text_wrap"),menu:new SYNO.SDS.Office.Menu({cls:"syno-o-check-menu",items:[t("overflow",this.onTextWrapMenuClick,{checked:!1,group:"text_wrap"}),t("wrap",this.onTextWrapMenuClick,{checked:!1,group:"text_wrap"}),t("clip",this.onTextWrapMenuClick,{checked:!1,group:"text_wrap"})],listeners:{scope:this,beforeshow:function(e){var t=this._getSelectedStyle();if(t){var i=t.getAlignment().wrap||this._getDefault("text_wrap");e.items.items.forEach(function(e){e.itemId===i&&e.setChecked(!0)})}}}})},"-",t("conditional_format",this.onCfClick),"-",t("clear_format",this.onClearFormatMenuClick,{hotkey:"Ctrl+\\"})]}),handler:function(){this.showMenu()}},{xtype:"syno_button",itemId:"data_button",text:e("handsontable","data"),menu:new SYNO.SDS.Office.Menu({items:[t("sort",this.onSortMenuClick),t("data_validation",this.onValidationMenuClick),t("filter",this.onFilterMenuClick),{itemId:"filter_view",text:SYNO.SDS.Office._T("filter","filter_view"),menu:new SYNO.SDS.Office.Sheet.FilterViewMenu({})},t("define",this.onDefineNameMenuClick,{text:SYNO.SDS.Office._T("define","window_title")}),t("protection",this.onProtectionMenuClick),t("remove_duplicates",this.onRemoveDuplicatesMenuClick,{text:SYNO.SDS.Office._T("remove_duplicates","function_name")}),t("split_text",this.onSplitTextMenuClick,{text:SYNO.SDS.Office._T("split_text","menu_item")}),t("external_links",this.onExternalLinksMenuClick,{text:SYNO.SDS.Office._T("external_link","manage_links")})],listeners:{scope:this,beforeshow:function(e){let t=(0,A.c)(),i=t.hasPivotTable(t.hot.getSelectedRange()),n=SYNO.SDS.Office.Utils.isEditable(),o=e.getComponent("filter_view");e.items.each(function(e){e.setVisible(n||e===o)}),o.setDisabled(i||!n&&0===o.menu.listFilterViewInfo().length),e.getComponent("filter").setDisabled(i)}}}),handler:function(){this.showMenu()}},{xtype:"syno_button",itemId:"tool_button",text:e("handsontable","tools"),menu:new SYNO.SDS.Office.Menu({items:[t("show_usernames",this.onPreferenceMenuClick,{text:e("preference_setting","preference_setting")})],listeners:{scope:this}}),handler:function(){this.showMenu()}},this.getMenuHelp(),this.getSyncingIndicator()]},getMenuHelpItem:function(){var e=[];return e.push(this.getMenuHelpItemHelp()),e.push("-"),e.push(this.createSimpleMenuItem("function_list",function(){window.open(er(),"_blank","noreferrer,noopener")})),e.push(this.getMenuHelpItemShortcut()),e},getMenuRightItem:function(){return[this.getIconicontbar().getMenuZoomCombo()]},createPasteMenu:function(){var e=[["value",{hotkey:(0,r4.c5)()}],["format"],["transpose"]];return new SYNO.SDS.Office.Menu({items:e.map(function(e){return this.createSimpleMenuItem("paste_"+e[0],this.onPasteMenuClick,e[1])},this)})},getFormatMenu:function(){return this.formatMenu||(this.formatMenu=new SYNO.SDS.Office.Sheet.FormatMenu({mainPanel:this})),this.formatMenu},getOnlineUser:function(){return this.onlinePeer||(this.onlinePeer=new ch.u({vueClass:uc.Z,vueProps:{onUserClick:this.onUserClick.bind(this)}})),this.onlinePeer},onUserClick:async function(e,t){if(!t||!t.selection)return;let i=SYNO.SDS.Office.Window.sheetmgr,n=t.selection.id;await i.setActiveSheet(n);let o=i.hot;if(t.selection.img)o.scrollToDrawing(t.selection.img);else{let e=t.selection.row,i=t.selection.col;o.scrollToRange(e,i)}o.getPlugin("synoOnlinePeer").showTooltipOnAvatarClick(e)},getIconicontbar:function(){return this.icontbar||(this.icontbar=new SYNO.SDS.Office.Sheet.Iconbar({owner:this})),this.icontbar},sheetListen:function(){(0,A.c)().reFocus()},createCopyCutMenuItem:function(e,t){return this.sheetListenRef||(this.sheetListenRef=this.sheetListen.bind(this)),ud.createCopyCutMenuItem(e,t,this.sheetListenRef)},createFontsizeMenuItem:function(e,t,i){return Ext.apply({itemId:e,text:""+t,size:t,checked:!1,group:"font_size",handler:this.onFontsizeMenuSelect,scope:this},i)},getMainItems:function(){return[this.getNorthPanel(),...r3.d.prototype.getMainItems.apply(this,arguments)]},getNorthPanel:function(){return this.northPanel||(this.externalPermissionPanel=new cp({owner:this,vueProps:{onConnect:()=>{this.getRightPanelContainer().getExternalListPanel().enableFetching(),this.northPanel.collapse(!1)},onManage:()=>{this.getRightPanelContainer().showExternalListPanel()},onClose:()=>{this.northPanel.collapse(!1)}}}),this.northPanel=new SYNO.ux.Panel({region:"north",cls:"syno-o-sheet-main-north",height:40,items:[this.externalPermissionPanel],collapsed:!0})),this.northPanel},showExternalPermissionPanel:function(e){void 0===e&&(e=!1),_S("isLogined")&&SYNO.SDS.Office.Env.capabilities.can_write&&0!==this.getRightPanelContainer().getExternalListPanel().listLinkIds().length&&(e||this.externalPermissionPanel.hidden)&&(this.northPanel.expand(!1),this.externalPermissionPanel.show())},showAiFormulaPanel:function(){iU.$R.value&&(0,k.eL)().readable&&this.right_panel.showAiFormulaPanel()},toggleAiHelperPanel:function(){iU.$R.value&&(0,k.eL)().readable&&this.right_panel.toggleAiFormulaPanel()},getCenterPanel:function(){return this.handsonPanelVue??=new ch.u({vueClass:ua,listeners:{resize:ut},region:"center",owner:this,itemId:"main"}),this.handsonPanelVue},getHandsonPanel:function(){return this.getCenterPanel().getVueInstance()},getRightPanelContainer:function(){return this.right_panel||(this.right_panel=new SYNO.SDS.Office.Sheet.RightPanelContainer({owner:this})),this.right_panel},getBottomPanelContainer:function(){return this.bottomPanel??=new cb({owner:this}),this.selectedCommentPanel=this.bottomPanel.commentPanel,this.bottomPanel},onEditorModeChange:function(e){r3.d.prototype.onEditorModeChange.apply(this,arguments),this.menuTbar.getComponent("data_button").menu.getComponent("protection").setVisible(!SYNO.SDS.Office.Env.is_template)},onResize:function(e){r3.d.prototype.onResize.apply(this,arguments),this.getRightPanelContainer().onContainerResize(e)},onUndoMenuClick:function(e,t){(0,A.c)().undo()},onRedoMenuClick:function(e,t){(0,A.c)().redo()},onPasteMenuClick:function(e,t){"paste"===e.itemId?(0,A.c)().paste("all"):(0,A.c)().paste(e.itemId.split("_")[1])},onSelectAllMenuClick:function(e,t){(0,A.c)().selectAll()},onTextStyleMenuClick:function(e,t){this.icontbar.btns[e.itemId].getEl().dom.click()},onFontsizeMenuSelect:function(e,t){this.icontbar.fontSizeField.setValue(e.size),this.icontbar.onFontsizeComboSelect(e.size)},onAlignMenuSelect:function(e,t){var i=/left|center|right/.test(e.itemId)?this.icontbar.combos.h_align:this.icontbar.combos.v_align,n=i.getStore().find("value",e.itemId.split("_")[1]);i.fireEvent("select",i,i.getStore().getAt(n))},onMergeCellMenuSelect:function(e,t){(0,A.c)().mergeCells(),this.icontbar.setBtnActive(this.icontbar.btns.merge_cells,!0)},onUnmergeCellMenuSelect:function(e,t){(0,A.c)().unmergeCells(),this.icontbar.setBtnActive(this.icontbar.btns.merge_cells,!1)},onInsertRowMenuClick:function(e,t){let i=+(0!==e.itemId.indexOf("row_above"));(0,A.c)().insertRowCol("insert_row",i)},onInsertColMenuClick:function(e,t){let i=(0,A.c)(),n=+(0===e.itemId.indexOf("col_left")!=!i.sheet.isRtl());i.insertRowCol("insert_col",n)},onRowColRangeOpClick:function(e,t){let[i,,n]=e.itemId.split("_");(0,A.c)().rowColOpOnSelectedRange(i,n)},onCellRangeOpClick:function(e,t){let[i,,,n]=e.itemId.split("_");"insert"===i?(0,A.c)().insertCells(n):"remove"===i&&(0,A.c)().removeCells(n)},onCellHistoryClick:function(e,t){(0,A.c)().showCellHistory()},onInsertCommentClick:function(e,t){(0,A.c)().insertComment()},onInsertNoteMenuClick:function(e,t){(0,A.c)().insertNote()},onInsertLinkMenuClick:function(e,t){(0,A.c)().insertLink()},onInsertChartClick:function(e,t){(0,A.c)().createNewChart()},onCreatePivotTable:function(){(0,A.c)().showPivotWindow()},onInsertImageClick:function(e,t){(0,A.c)().showInsertImageWindow()},onRemoveRowColClick:function(e,t){(0,A.c)().removeRowCol(e.itemId)},onRemoveValueClick:function(e,t){(0,A.c)().removeValue()},onRemoveNoteMenuClick:function(e,t){(0,A.c)().removeNote()},onRemoveLinkMenuClick:function(e,t){(0,A.c)().removeLink()},onTextWrapMenuClick:function(e,t){var i=this.icontbar.combos.text_wrap,n=i.getStore().find("value",e.itemId);i.fireEvent("select",i,i.getStore().getAt(n))},onClearFormatMenuClick:function(e,t){this.icontbar.onClearFormatBtnClick()},fixedRowMenuClick:function(e,t){var i=-1;switch(e.itemId){case"remove_frozen_row":i=0;break;case"first_row":i=1;break;case"second_row":i=2;break;default:var n=(0,A.c)().hot.getSelectedRange();n&&(i=n.getTopLeftCorner().row+1)}i>=0&&(0,A.c)().fixedRow(i)},fixedColMenuClick:function(e,t){var i=-1;switch(e.itemId){case"remove_frozen_col":i=0;break;case"first_col":i=1;break;case"second_col":i=2;break;default:var n=(0,A.c)().hot.getSelectedRange();n&&(i=n.getTopLeftCorner().col+1)}i>=0&&(0,A.c)().fixedCol(i)},onHideAllToolbarsClick:function(e,t){this.findAppWindow().setFocusMode(nb.Q.HIDE_ALL)},onHighlightActiveMenuClick:function(e,t){let i=e.parentMenu,n=i.get("highlight_active_row"),o=i.get("highlight_active_col"),r={row:n.checked^n===e,col:o.checked^o===e};(0,A.c)().hot.setHintSelectionsDisplay(r)},onHideRowsMenuClick:function(e,t){(0,A.c)().hideRows()},onHideColsMenuClick:function(e,t){(0,A.c)().hideCols()},onUnhideRowsMenuClick:function(e,t){(0,A.c)().showRows()},onUnhideColsMenuClick:function(e,t){(0,A.c)().showCols()},onFindMenuClick:function(e,t){(0,A.c)().showSearchWindow()},onSortMenuClick:function(e,t){(0,A.c)().showSortWindow()},onValidationMenuClick:function(e,t){(0,A.c)().showValidWindow()},onFilterMenuClick:function(e,t){this.icontbar.btns[e.itemId].getEl().dom.click()},onDefineNameMenuClick:function(){(0,A.c)().showDefineWindow()},onProtectionMenuClick:function(){this.getRightPanelContainer().showProtectionPanel()},onRemoveDuplicatesMenuClick:function(){(0,A.c)().showRemoveDuplicatesWindow()},onSplitTextMenuClick:function(){(0,A.c)().showSplitTextWindow()},onExternalLinksMenuClick:function(){this.getRightPanelContainer().showExternalListPanel()},onPreferenceMenuClick:function(){(0,A.c)().showPreferenceWindow()},onCfClick:function(e,t){(0,A.c)().showCfListWindow()},showCommentPanel:function(){var e=(0,A.c)();(0,eK.isMobileLayout)()||e.hot.deselectCell(),document.activeElement.blur(),r3.d.prototype.showCommentPanel.apply(this,arguments)},showSelectedCommentInBottomPanel:function(){let e=(0,A.c)().getCommentBySelection();e&&this.getBottomPanelContainer().showCommentsByIds([e.id])},setFooterBarsDisplayed:function(e){ue().setShowFooter(e)},onFindReplaceShow:function(){r3.d.prototype.onFindReplaceShow.apply(this,arguments),(0,eK.isMobileLayout)()&&this.setFooterBarsDisplayed(!1)},onFindReplaceHide:function(){r3.d.prototype.onFindReplaceHide.apply(this,arguments),(0,eK.isMobileLayout)()&&this.setFooterBarsDisplayed(!0)},bindHot:function(e){e.addHook("afterSelectionEnd",this.afterCellSelectionEnd.bind(this)),e.addHook("afterDeselect",this.afterDeselect.bind(this)),e.addHook("openEditor",this.onOpenEditor.bind(this)),e.addHook("afterSetZoomLevel",this.afterSetZoomLevel.bind(this)),e.addHook("highlightchanged",this.onHighlightChanged.bind(this)),(0,eK.isMobileLayout)()&&e.addHook("afterOnCellMouseUp",this.afterOnCellMouseUp.bind(this))},onHighlightChanged:function(e){let t=e.from.row,i=e.from.col,n=(0,A.c)();this.lastCoord&&this.lastCoord.row===t&&this.lastCoord.col===i||n.hot.getActiveEditor().isOpened()||(this.icontbar.onHighlightChanged(e),this.lastCoord={row:t,col:i},this._debounceAfterHighlightChanged(t,i))},_afterHighlightChanged:function(e,t){let i=(0,A.c)();this.icontbar.updateIconStatus(e,t),tp().updateValue(e,t),this.getRightPanelContainer().isPanelActive(ca.Comment)&&this.getRightPanelContainer().getCommentPanel().onSelectionChange();var n=i.hot.getCellBound(e,t);n.width>0&&n.height>0&&!i.hot.getActiveEditor().isOpened()&&(0,A.c)().floatPanelMgr.showPanels("cellSelect",e,t,n),this.updateMenuItemStatus(!0,["undo","redo"])},afterCellSelectionEnd:function(e){var t;if(this.icontbar.updateIconEnd(e),this.findAppWindow().getEventMgr().fireEvent("afterselectionend",(0,A.c)().sheet),(0,A.c)().isPivotTableEnabled()&&!(0,eK.isMobileLayout)()&&(t=SYNO.SDS.WindowMgr,!t.windowList?.some(e=>{let t=e.component.synoId;return t===eI||t===eA}))&&(0,k.eL)().editable){let e=tK();e.update();let t=this.getRightPanelContainer();e.tableId?t.showPivotTablePanel():t.isPanelActive(lg)&&t.collapse()}if(!(0,eK.isMobileLayout)())return;let i=(0,A.c)();if(!e||!i.sheet)return;let n=e.highlight.from.row,o=e.highlight.from.col,r=i.sheet.getMergePlugin().isMultipleCells(e);!r&&i.sheet.getCellProperty(n,o,"comment")?.length>0?i.contextMenu.showByEvent(null):i.contextMenu.close(),r?i.hideLinkFloat():i.showLinkFloat(n,o)},afterDeselect:function(){this.lastCoord=null,(0,A.c)().floatPanelMgr.hidePanels("deselectCell")},afterOnCellMouseUp:function(){this.hideBottomPanel()},_getSelectedStyle:function(){var e=(0,A.c)().sheet;return this.lastCoord&&e?e.getComputedCellStyle(this.lastCoord.row,this.lastCoord.col):null},_getDefault:function(e){return SYNO.SDS.Office.Sheet.Define.ToolbarDefault[e]},onOpenEditor:function(){(0,A.c)().floatPanelMgr.hidePanels("openEditor"),(0,eK.isMobileLayout)()&&(0,A.c)().contextMenu.close()},afterSetZoomLevel:function(e){let t=Math.round(100*e)+"";0>this.icontbar.combos.zoom.getStore().findExact("value",t)&&(t+="%"),this.icontbar.combos.zoom.setValue(t),this.icontbar.menu_zoom_combo.setValue(t),this.onZoomLevelChanged()},updateFilterViewState:function(){var e=A.rb.getWorkbook().getCurrentSheet().getFilterPlugin(),t=!1;e.isInViewState()?ue().setShowFilterView(!0):(ue().setShowFilterView(!1),t=(0,A.c)().isFilterActive()),this.icontbar.setFilterActive(t)},onInitDone:function(){let e=SYNO.SDS.Office.GetWindow().getEventMgr();this.mon(e,"activesheetchange",this.onActiveSheetChange,this),e.fireEvent("comment_update_data_only");var t=(0,A.c)();this.icontbar.afterInitFirstSheet(t),this.showExternalPermissionPanel()},onBeforeSync:function(){this.getSyncingIndicator().setValue(SYNO.SDS.Office._T("status","syncing"))},onAfterSync:function(){this.getSyncingIndicator().setValue.defer(200,this.getSyncingIndicator(),[SYNO.SDS.Office._T("status","sync_done")])},onActiveSheetChange:function(e){this.lastCoord=null,ic({sheetId:e,range:null}),this.updateFilterViewState();let t=this.findAppWindow();t.hasSelectRangeWindow()||t.isFocusOnSearchWindow()||(0,A.c)().reFocus()},resolveHashSelection(e){let t=il(window.location.hash),{sheetId:i,range:n,fvid:o,commentId:r}=t,a=!i;if(i??=A.rb.getWorkbook().getVisibleOrder()[0],r??=e,!i&&!r)return null;let s=A.rb.getWorkbook(),l=null;if(r){let e=(0,A.c)().getCommentById(r);e?i=e.sheetId:l="linked_comment_deleted"}else s.hasSheet(i)?s.isSheetHidden(i)&&(l="linked_sheet_hidden"):l="linked_sheet_deleted";if(l){let e=s.getVisibleOrder();i=e.includes(s.getCurrentSheet().sheetId)?s.getCurrentSheet().sheetId:e[0],r=n=o=null,this.findAppWindow().getMsgBox().alert("",SYNO.SDS.Office._T("handsontable",l))}return ic({...t,sheetId:i,range:null,fvid:null,commentId:null},a),{sheetId:i,range:n,fvid:o,commentId:r}},onHashChange:function(){let e=this.resolveHashSelection();e&&(0,A.c)().handleHashSelection(e)},onDoneQueueChange:function(e){var t=this.menuTbar.getComponent("edit_button").menu,i=t.getComponent("undo"),n=t.getComponent("redo");i.setDisabled(0===e.doneActions.length),n.setDisabled(0===e.undoneActions.length)},updateMenuItemStatus:function(e,t){t=t||[];for(var i=function(i){0>t.indexOf(i.itemId)&&i.setDisabled(!e)},n=["edit","view","insert","format","data"],o=0;o<n.length;o++)this.menuTbar.getComponent(n[o]+"_button").menu.items.items.forEach(i)},onSelectImage:function(){this.updateMenuItemStatus(!1,["undo","redo","copy","find_replace","chart","image","define"])},getZoomLevel:function(){return 100*(0,A.c)().hot.getZoomLevel()},setZoomLevel:function(e){Number.isFinite(e=parseFloat(e))&&(0,A.c)().hot.setZoomLevel(e/100)},gotoHash:function(e){ic(il(e))},statics:{createCopyCutMenuItem:function(e,t,i){return new Ext.menu.Item(Ext.apply({clipCfg:SYNO.SDS.Office.Sheet.ClipboardConfig.getClipCfg(e),itemId:e,cls:e+"-menu-item",iconCls:"syno-o-"+e+"-menu-icon",text:SYNO.SDS.Office._T("handsontable",e)},ud.getClipboardItemConfig(t,i)))},getClipboardItemConfig:function(e,t){var i={noStopEvent:!0,onClick:function(e){e&&this.disabled&&e.stopEvent(),t&&t(),Ext.menu.Item.superclass.onClick.call(this,e)},listeners:{afterrender:function(e){var t=new(ul())(Ext.apply(e.clipCfg,{handlerId:e.getEl().id}));e.relayEvents(t,["clipsucceed","clipfailed"]),e.clipboardUtil=t},destroy:function(e){e.clipboardUtil&&e.clipboardUtil.destroy()},clipfailed:SYNO.SDS.Office.Sheet.ClipboardConfig.onClipFailed}};return i.listeners.render=r4.YF.bind(null,e.hotkey),i}}});function uu(e,t){return(0,to.defineStore)(e,{state:()=>({wrapper:Object.freeze({val:t??null})}),getters:{value(e){let{wrapper:t}=e;return t?.val??null}},actions:{setValue(e){this.wrapper=Object.freeze({val:e})}}})}function uh(e){return uu(`${e}-workbook`)}i(62412);let up=uh("history-source"),uf=uh("history-target"),ug=uu("history-target-snapshot");function um(){let e=uf().value,t=ug().value;return t&&e?{wb:e,snapshot:t}:null}function uv(e,t){let i=e();i.value&&i.value.destroy(),i.setValue(t)}function ub(e,t,i,n){void 0===n&&(n=!1);let o=e.getSheetById(t)?.getDataModel();if(!o)return[];let r=o.getRowCount(),a=o.getColCount(),s=[],l={worksheet:o,workbook:e},c=i?{snapshot:i.snapshot[t],workbook:i.wb}:null,d=new Map;for(let{row:e,col:t,text:i}of c?.snapshot?.notes??[]){let n=d.get(e);n||(n=new Map,d.set(e,n)),n.set(t,i)}for(let e=0;e<r;e++)for(let t=0;t<a;t++)if(!function(e,t,i,n,o){let r=e.worksheet.getCell(n,o);if(!t)return(0,T.O2)(r);let a=t.snapshot?.cells?.[n]?.[o]??null;if(!r||!a)return r===a;if((0,T.LN)(r.getValue(),(0,T.pM)(a.v)?t.workbook.styleManager.createRichText(a.v):a.v)||(0,T.LN)(r.getNote(),i.get(n)?.get(o)??a.n))return!1;let s=e.workbook.getStyleManager().getCellStyle(r.getXfId())??null,l=t.workbook.getStyleManager().getCellStyle(a.s??0)??null;return s&&l?!!s.getFont().equals(l.getFont())&&!!s.getFill().equals(l.getFill())&&!!s.getAlignment().equals(l.getAlignment())&&!!s.getBorder().equals(l.getBorder())&&!!s.getNumberFormat().equals(l.getNumberFormat())&&s.getQuotePrefix()===l.getQuotePrefix():s===l}(l,c,d,e,t)&&(s.push({row:e,col:t}),n))return s;return s}let uy=(y="history",(0,to.defineStore)(y,{state:function(){return{activeId:void 0,diffMode:!0,diffRecords:{}}},getters:{sourceWorkbook:()=>up().value,tabs(){let e=up().value;return e?e.getOrder().map(t=>{let i=e.getSheetInfo(t);return{sheetId:t,title:i?.name??"",color:i?.color??"",hidden:!1,diff:this.diffMode&&ub(e,t,um(),!0).length>0}}):[]}},actions:{updateDiff(e){void 0===e&&(e=!1);let t=up().value,i=e?Object.fromEntries((t?.getOrder()??[]).map(e=>[e,null])):this.diffRecords,n=this.activeId;this.diffMode&&n&&t&&null===i[n]&&(i[n]=ub(t,n,um())),this.diffRecords=i},setActive(e){this.activeId!==e&&(this.activeId=e,up().value?.setCurrent(e),this.updateDiff())},setDiffMode(e){this.diffMode=e,this.updateDiff()},updateVersion(e,t){uv(up,e),this.activeId=e?.current?.sheetId,ug().setValue(t?t.snapshot:null),uv(uf,t?t.wb:null),this.updateDiff(!0)},clean(){this.activeId=void 0,this.updateVersion(null,null),this.diffMode=!0}}}));class uw extends t6{constructor(e){super(),this.hot=e}onFlushUI(e){this.hot.value?.render("delay")}}let u_=(0,M.defineComponent)({__name:"HistoryPanel",setup(e,t){let{expose:i}=t,n=(0,M.ref)(null),o=(0,M.computed)(()=>n.value?.hot??null),{tabs:r,activeId:a}=(0,to.storeToRefs)(uy());function s(e){return new T.QY(e,T.Eh.history,new uw(o))}function l(e){uy().setActive(e)}return i({hot:o}),(e,t)=>((0,M.openBlock)(),(0,M.createElementBlock)("div",{class:(0,M.normalizeClass)(e.$style.root)},[(0,M.createVNode)((0,M.unref)(eg),{ref_key:"hotWrapper",ref:n,class:(0,M.normalizeClass)(e.$style.hot),"hot-creator":s},null,8,["class"]),(0,M.createVNode)((0,M.unref)(cj),{class:(0,M.normalizeClass)(e.$style.tab),tabs:(0,M.unref)(r),"active-id":(0,M.unref)(a)??"sh_1",readonly:!0,"selection-info-item":[],"show-selection-info-menu":!1,onUpdateActive:l},null,8,["class","tabs","active-id"])],2))}});var ux=i(17686),uS=i.n(ux);let uC={};uC.$style=uS();let uk=(0,q.default)(u_,[["__cssModules",uC]]);Ext.define("SYNO.SDS.Office.Sheet.History.HandsonPanel",{extend:"SYNO.ux.Panel",constructor:function(e){SYNO.ux.Panel.prototype.constructor.call(this,this.fillConfig(e)),this.linkPanel=null,this.contextMenu=null,this.cellHighlightHandler=null,this.notifyFloatPanelMouseOver=(0,em.Z)(this.notifyFloatPanelMouseOver,200)},fillConfig:function(e){return Ext.apply({layout:"fit",items:new ch.u({itemId:"table_holder",vueClass:uk}),listeners:{beforedestroy:this._onBeforeDestroy,afterrender:function(){this.linkPanel=new SYNO.SDS.Office.Sheet.LinkPanel({panel:this,renderTo:this.el.dom,onMouseEnter:this.notifyFloatPanelMouseOver.cancel.bind(this.notifyFloatPanelMouseOver)}),this.linkPanel.setControlVisible(!1),this.linkPanel.setCopyVisible(!0),this.addManagedComponent(this.linkPanel)}}},e)},sheetListen:function(){this.hot&&this.hot.focusInputField()},getContextMenu:function(){if(!this.contextMenu){let e=this.getHotInstance(),t=Ext.define("SYNO.SDS.Office.Sheet.History.ContextMenu",{extend:ns,getHotInstance:()=>e});this.contextMenu=new t({owner:this,items:[ud.createCopyCutMenuItem("copy",{hotkey:"Ctrl+C"},this.sheetListen.bind(this))]}),this.addManagedComponent(this.contextMenu)}return this.contextMenu},getHotInstance:function(){return this.hot||(this.hot=this.getComponent("table_holder").getVueInstance().hot,this.hot.addHook("afterRender",this.afterHotRender.bind(this)),this.hot.addHook("afterOnCellMouseOver",this.afterOnCellMouseOver.bind(this)),this.hot.addHook("afterOnCellMouseUp",this.afterOnCellMouseUp.bind(this)),this.hot.addHook("afterSetZoomLevel",this.updateZoomComboValue.bind(this)),this.hot.addHook("triggerContextMenu",this.showContextMenu.bind(this))),this.hot},init:async function(e,t,i){let n=A.rb.getWorkbook().getLocale(),o=this.getHotInstance();this.source=e;let r=o.getUIBridge(),a=(0,T.iL)(n,T.Gr.history,{MAX_CELL_COUNT:0,PIVOT_TABLE_ENABLED:!1},r),s=new T.aU({dataBridge:a,uiBridge:r}),l=a.getWorkbook();l.setReadonly(!0),l.setEditorMode(T.IE.EDITOR_MODE.HISTORY),l.setVersion(e.version),o.observe({dataBridge:a,action:s}),this.target=t;let c=new T.IE(n,T.b1,T.Gr.history);t&&t.style&&T.m7.initStyle(c.getStyleManager(),t.style);let{processDelayInfo:d}=await a.asyncInit(e,{activeId:i,onActiveInit:()=>this.getHotInstance().updateSheet()}),u=await d();uy().updateVersion(l,{snapshot:t,wb:c}),(u=this._markComments(e.comment,l)||u)&&this.getHotInstance().render()},_markComments:function(e,t){if(!Array.isArray(e)||!t)return;let i=t.current.sheetId,n=!1;for(var o=0;o<e.length;o++){var r=e[o],a=t.getSheetById(r.sheetId);a&&a.setCellMeta(r.row,r.col,[["comment",r.id]]),n=n||r.sheetId===i}return n},getActiveSheetId:function(){return uy().activeId},afterHotRender:function(){this.cellHighlightHandler||(this.cellHighlightHandler=new T.yp(this.getHotInstance(),{className:"syno-o-sh-diff"}));let e=uy(),t=e.activeId,i=t&&e.diffRecords[t];e.diffMode&&i?this.cellHighlightHandler.showBlocks(i):this.cellHighlightHandler.hideAllBlock()},notifyFloatPanelMouseOver:function(e,t,i){this.hot&&this.linkPanel.alignToCell(this.hot.view.toPageBound({...i}),this.hot.sheet,e,t)},afterOnCellMouseOver:function(e,t,i,n){var o=i?i.from:t;this.notifyFloatPanelMouseOver(o.row,o.col,n)},afterOnCellMouseUp:function(e,t){2===e.button&&(-1!==t.row||-1!==t.col)&&(e.stopPropagation(),e.preventDefault())},showContextMenu:function(e,t){this.getContextMenu().showByEvent(e,t)},_onBeforeDestroy:function(){this.cellHighlightHandler&&(this.cellHighlightHandler.destroy(),this.cellHighlightHandler=null),uy().clean(),this.notifyFloatPanelMouseOver.cancel()},setZoomLevel:function(e){this.getHotInstance().setZoomLevel(e)},gotoHash:function(e){let t=il(e),i=t.sheetId,n=uy(),o=n.sourceWorkbook;if(o&&i){if(!o.getSheetById(i))return void this.owner.getMsgBox().alert("",SYNO.SDS.Office._T("handsontable","linked_sheet_deleted"));if(n.setActive(i),t.range){let e=T.pt.textToRange(t.range,o.getSheetById(i));e&&this.getHotInstance().selectRanges([e.toArray()],"range",!0)}}},updateZoomComboValue:function(e){this.owner.updateZoomComboValue(String(Math.round(100*e)))}}),Ext.define("SYNO.SDS.Office.Sheet.History.Window",{extend:"SYNO.SDS.Office.History.Window",constructor:function(e){SYNO.SDS.Office.History.Window.prototype.constructor.call(this,this.fillConfig(e)),this.on("focuseditor",function(){this.getSheetPanel().sheetListen()},this)},fillConfig:function(e){return Ext.apply({cls:"syno-app-sheet"},e)},getPreviewItem:function(){return this.getSheetPanel()},getSheetPanel:function(){return this.sheetPanel||(this.sheetPanel=new SYNO.SDS.Office.Sheet.History.HandsonPanel({owner:this,eventMgr:this.getEventMgr()}))},getEventMgr:function(){return this.eventMgr||(this.eventMgr=new Ext.util.Observable)},afterSlideInDone:function(){this.getSheetPanel().getHotInstance().view.adjustCanvasSize(),SYNO.SDS.Office.History.Window.prototype.afterSlideInDone.call(this)},updateHistory:async function(e,t){var i=this.getSheetPanel();let n=uy(),o=n.activeId??A.rb.getWorkbook().getCurrentSheet().sheetId;n.setDiffMode("show"===this.getModeCombo().getValue()),await i.init(e,t,o)},onRowSelect:function(e,t,i){this.setStatusBusy();var n=this.getHistoryStore(),o=[i.get("version")];if(this.getHistoryStore().getFilter()){var r=i.get("last_version")[0];r&&o.push(r)}else if(t<n.getTotalCount()-1){var a=n.getAt(t+1);a&&o.push(a.get("version"))}var s=this,l=this.findAppWindow().getWebAPI();Promise.all(o.map(function(e){return l.getSnapshotHistoryAsync(SYNO.SDS.Office.Env.objectId,e)})).then(function(e){if(!s.isDestroyed){e.forEach(function(e,t){e.version=o[t]});var t=e[0],n=e[1];return s.getMtimeField().setValue(s.getEpochTime(i.get("mtime"))),s.updateHistory(t,n)}}).catch(function(e){SYNO.Debug.error(e)}).then(function(){s.isDestroyed||s.clearStatusBusy()})},getEpochTime:function(e){return SYNO.SDS.Drive.Utils.convertEpochTime(1e3*e)},createZoomStore:function(){return eo()},setZoomLevel:function(e){var t=parseInt(e,10);Ext.isNumber(t)&&(t>200?t=200:t<50&&(t=50),this.getSheetPanel().setZoomLevel(t/100))},setHistoryMode:function(e){uy().setDiffMode("show"===e),this.getSheetPanel().getHotInstance().render()}}),i(40769),i(24413),i(3471),i(95754),i(54799);let uI=(0,k.kk)();uI.addFeatures(...function(){let e="handsontable",t="hotkey";return[...(0,k.U2)(),{id:"paste_value",name:(0,N.$)(e,"paste_value"),hotkey:(0,r4.c5)()},{id:"select_col",name:(0,N.$)(t,"select_col"),hotkey:"Ctrl+Space"},{id:"select_row",name:(0,N.$)(t,"select_row"),hotkey:"Shift+Space"},{id:"fill_range",name:(0,N.$)(t,"fill_range"),hotkey:"Ctrl+Enter"},{id:"fill_down",name:(0,N.$)(t,"fill_down"),hotkey:"Ctrl+D"},{id:"fill_right",name:(0,N.$)(t,"fill_right"),hotkey:"Ctrl+R"},{id:"insert_sheet",name:(0,N.$)(t,"insert_sheet"),hotkey:"Shift+F11"},{id:"right_border",name:(0,N.$)(t,"right_border"),hotkey:"Alt+Shift+2",tooltip:(0,N.$)(e,"right_border")},{id:"bottom_border",name:(0,N.$)(t,"bottom_border"),hotkey:"Alt+Shift+3",tooltip:(0,N.$)(e,"bottom_border")},{id:"left_border",name:(0,N.$)(t,"left_border"),hotkey:"Alt+Shift+4",tooltip:(0,N.$)(e,"left_border")},{id:"clear_border",name:(0,N.$)(e,"clear_border"),hotkey:"Alt+Shift+6"},{id:"outer_border",name:(0,N.$)(t,"outer_border"),hotkey:["Alt+Shift+7","Ctrl+Shift+7"],tooltip:(0,N.$)(e,"outer_border")},{id:"insert_time",name:(0,N.$)(t,"insert_time"),hotkey:"Ctrl+Shift+;"},{id:"insert_date",name:(0,N.$)(t,"insert_date"),hotkey:"Ctrl+;"},{id:"insert_date_time",name:(0,N.$)(t,"insert_date_time"),hotkey:"Ctrl+Alt+Shift+;"},{id:"number_format",name:(0,N.$)(t,"number_format"),hotkey:"Ctrl+Shift+1"},{id:"time_format",name:(0,N.$)(t,"time_format"),hotkey:"Ctrl+Shift+2"},{id:"date_format",name:(0,N.$)(t,"date_format"),hotkey:"Ctrl+Shift+3"},{id:"currency_format",name:(0,N.$)(t,"currency_format"),hotkey:"Ctrl+Shift+4"},{id:"percent_format",name:(0,N.$)(t,"percent_format"),hotkey:"Ctrl+Shift+5"},{id:"move_row_start",name:(0,N.$)(t,"move_row_start"),hotkey:"Home"},{id:"move_col_start",name:(0,N.$)(t,"move_col_start"),hotkey:"Ctrl+Home"},{id:"move_row_end",name:(0,N.$)(t,"move_row_end"),hotkey:"End"},{id:"move_col_end",name:(0,N.$)(t,"move_col_end"),hotkey:"Ctrl+End"},{id:"scroll_active_cell",name:(0,N.$)(t,"scroll_active_cell"),hotkey:"Ctrl+Backspace"},{id:"next_sheet",name:(0,N.$)(t,"next_sheet"),hotkey:"Ctrl+Shift+Page Down"},{id:"prev_sheet",name:(0,N.$)(t,"prev_sheet"),hotkey:"Ctrl+Shift+Page Up"},{id:"sheet_list",name:(0,N.$)(t,"sheet_list"),hotkey:"Alt+Shift+K"},{id:"note_add_edit",name:(0,N.$)(e,"note_add_edit"),hotkey:"Shift+F2"},{id:"hide_row",name:(0,N.$)(e,"hide_row"),hotkey:"Ctrl+Alt+9"},{id:"hide_col",name:(0,N.$)(e,"hide_col"),hotkey:"Ctrl+Alt+0"},{id:"unhide_row",name:(0,N.$)(t,"unhide_row"),hotkey:"Ctrl+Shift+9"},{id:"unhide_col",name:(0,N.$)(t,"unhide_col"),hotkey:"Ctrl+Shift+0"},{id:"group",name:(0,N.$)("outline","group"),hotkey:"Alt+Shit+→"},{id:"ungroup",name:(0,N.$)("outline","ungroup"),hotkey:"Alt+Shit+←"}]}()),uI.featureSections=function(){let e=(0,k.XV)(),t=e.find(e=>{let{id:t}=e;return"common"===t})?.features;t&&(t.splice(t.indexOf("paste")+1,0,"paste_value"),t.push("select_col","select_row","fill_range","fill_down","fill_right","insert_sheet"));let i="handsontable",n="hotkey";return[...e,{id:"cell_format",title:(0,N.$)(n,"cell_format"),features:["right_border","bottom_border","left_border","clear_border","outer_border","insert_time","insert_date","insert_date_time","number_format","time_format","date_format","currency_format","percent_format"]},{id:"navigation",title:(0,N.$)(n,"navigation"),features:["move_row_start","move_col_start","move_row_end","move_col_end","scroll_active_cell","next_sheet","prev_sheet","sheet_list"]},{id:"note",title:(0,N.$)(i,"note"),features:["note_add_edit"]},{id:"view",title:(0,N.$)(i,"view"),features:["hide_row","hide_col","unhide_row","unhide_col","group","ungroup"]}]}(),Ext.ns("SYNO.SDS.Office.Sheet"),Ext.define("SYNO.SDS.Office.Sheet.Application",{extend:w.g,appWindowName:"SYNO.SDS.Office.Sheet.MainWindow",constructor:function(){Ext.getBody().addClass(["syno-o-sheet-theme"]),w.g.prototype.constructor.apply(this,arguments)},initInstance:function(e){this.opts=e,w.g.prototype.initInstance.apply(this,arguments)}}),Ext.define("SYNO.SDS.Office.Sheet.MainWindow",{extend:_.o,constructor:function(e){this.updateFootersVisibility=(0,em.Z)(this.updateFootersVisibility,20),this.beforeconstructor(e),_.o.prototype.constructor.call(this,Ext.apply(e,{cls:"syno-app-sheet"})),this.selectRangeWindow=null,(0,S.u1)(()=>!this.sheetmgr?.hot?.getActiveEditor().isOpened())},getWebAPI:function(){return this.webapimgr||(this.webapimgr=new SYNO.SDS.Office.Sheet.WebAPI({appWindow:this}))},getAction:function(){return this.actionmgr||(this.actionmgr=new SYNO.SDS.Office.Sheet.Action({appWindow:this}))},initApp:function(){SYNO.SDS.Office.Sheet.MainWindow.superclass.initApp.apply(this,arguments)&&(this.sheetmgr=new SYNO.SDS.Office.Sheet.SheetMgr({owner:this}),this.on("focuseditor",function(){this.sheetmgr.reFocus(!0)},this),SYNO.SDS.Office.Sheet.Loader.initAll().then((function(){SYNO.SDS.Office.Define.Info.init=!0,this.getEventMgr().fireEvent("init:done")}).bind(this)).catch((function(e){switch(e&&e.schemaError){case"behind":return;case"above":e={code:57403}}if(this.getEventMgr().fireEvent("init:error",e),e&&e.stack)throw e}).bind(this)))},getMainPanel:function(){return this.mainPanel||(this.mainPanel=new ud({region:"center",owner:this})),this.mainPanel},setupSelectRangeWindow(e){this.selectRangeWindow=e},hasSelectRangeWindow(){return null!==this.selectRangeWindow},isFocusOnSearchWindow(){let e=this.sheetmgr.getSearchWindow();return!!e?.el.dom.contains(document.activeElement)},getSheetEditorClientRect(){return this.sheetmgr.hot.rootElement.getClientRects()[0]},showSheetScrollProxyMask(){if(this.scrollProxyMask)return;let e=this.sheetmgr.hot,{top:t,left:i,right:n,bottom:o}=this.getSheetEditorClientRect();this.scrollProxyMask=Ext.DomHelper.append(this.el.dom,{cls:"syno-o-scroll-proxy-mask"},!0);let r=this.scrollProxyMask.dom;r.style.top=t+"px",r.style.left=i+"px",r.style.right=document.documentElement.offsetWidth-n+"px",r.style.bottom=document.documentElement.offsetHeight-o+"px",r.addEventListener("wheel",function(t){e.rootElement.dispatchEvent(new WheelEvent("wheel",t))}),r.addEventListener("mousedown",function(e){e.preventDefault(),e.stopPropagation()})},hideSheetScrollProxyMask(){this.scrollProxyMask&&(this.scrollProxyMask.remove(),this.scrollProxyMask=null)},onRegEvent:function(){_.o.prototype.onRegEvent.apply(this,arguments);var e=this.getEventMgr();this.mon(e,{scope:this,tabchange:this.onTabChange,tabcopyto:this.onTabCopyTo})},getSocket:function(){return this.sheetmgr?.sio?.socket},getSocketId:function(){var e=this.getSocket();if(e)return e.id},onTabChange:async function(e,t){this.getEventMgr().fireEvent("hidemoreicontbar"),await this.sheetmgr.setActiveSheet(t.sheetId),e.fireEvent("tabchangedone",!0)},onTabCopyTo:function(e,t){new el({owner:this,sheetIds:e,sheetTitles:t}).show()},onKeepClientChanges:function(){try{this.sheetmgr&&this.sheetmgr.sio&&this.sheetmgr.sio.saveClientChanges()}catch(e){SYNO.Debug.error(e)}_.o.prototype.onKeepClientChanges.apply(this,arguments)},onPermChange:function(){_.o.prototype.onPermChange.apply(this,arguments),this.sheetmgr&&this.sheetmgr.onPermissionChanged()},onInitDone:function(){_.o.prototype.onInitDone.apply(this,arguments),this.recoverPendingCommand()},onMobileVisualViewportResize:function(){_.o.prototype.onMobileVisualViewportResize.apply(this,arguments),this.updateFootersVisibility(),this.updateFootersVisibility.flush()},onMobileBeforeFocusChange:function(e){_.o.prototype.onMobileBeforeFocusChange.call(this,e),this.updateFootersVisibility()},onMobileEditorStatusChange:function(){this.updateFootersVisibility()},updateFootersVisibility:function(){(0,eK.isMobileLayout)()&&this.mainPanel.bottomPanel.collapsed&&(this.sheetmgr?.searchWindow?.isVisible?.()||(0,es.Dc)()?ue().setShowFooter(!1,!!A.rb.getView()?.getActiveEditor()?.isOpened()):ue().setShowFooter(!0))},recoverPendingCommand:async function(){var e=SYNO.SDS.Office.Env.getSessionItem("pending");if(SYNO.SDS.Office.Env.removeSessionItem("pending"),e&&Array.isArray(e)){for(let t of e)try{await A.rb.getAction().execCommand(t)}catch(e){console.error(e)}this.sheetmgr.hot.render()}},onQueueInit:function(){this.setStatusBusy(void 0,void 0,1)},onQueueReady:function(){this.clearStatusBusy()},setTitle:function(){_.o.prototype.setTitle.apply(this,arguments),this.mainPanel.setTitle(this.getTitle())},createHistoryWindow:function(e){return new SYNO.SDS.Office.Sheet.History.Window(e)},getHotKeyMgr:function(){return this.sheetmgr?.hotKeyPlugin}})},27661:function(){Ext.define("SYNO.SDS.Office.Template.FileType",{extend:"Ext.Container",constructor:function(e){Ext.Container.prototype.constructor.call(this,this.fillConfig(e))},fillConfig:function(e){var t={cls:"syno-o-tpl-filetype-ct",items:[this.getFileTypeButton("all"),this.getFileTypeButton("doc"),this.getFileTypeButton("sheet"),this.getFileTypeButton("presentation")],listeners:{scope:this,single:!0,buffer:80,afterlayout:function(){this.setFileType(this.filetype||"all")}}};return Ext.apply(t,e)},getFileTypeButton:function(e){return new SYNO.ux.Button({itemId:e,text:SYNO.SDS.Office._T("file",e),cls:"syno-o-tpl-filetype-btn",scope:this,handler:function(e){this.setFileType(e.itemId)}})},setFileType:function(e){e&&this.filetype!==e&&(this.filetype=e,this.items.items.forEach(function(t){t.itemId===e?t.addClass("syno-o-filetype-selected"):t.removeClass("syno-o-filetype-selected")}),SYNO.SDS.Office.GetTplDlg().getEventMgr().fireEvent("viewstoreupdate"))},getFileType:function(){return this.filetype||"all"},getFilter:function(){return{scope:this,fn:function(e){var t=this.getFileType();return"all"===t||e.get("ntype")===t}}}})},81231:function(){Ext.define("SYNO.SDS.Office.Template.SearchField",{extend:"SYNO.ux.TextFilter",constructor:function(e){var t=this.fillConfig(e||{});SYNO.ux.TextFilter.prototype.constructor.call(this,t)},fillConfig:function(e){var t={width:180,height:32,margins:{top:8,right:16},enableKeyEvents:!0,listeners:{keyup:function(e,t){this.searchTimer&&window.clearTimeout(this.searchTimer),this.searchTimer=this.onSearchFieldKeyDown.defer(400,this)}},onTriggerClick:function(){this.disabled||(SYNO.ux.SearchField.superclass.onTriggerClick.apply(this,arguments),this.onTriggerEmpty())}};return Ext.apply(t,e),t},onSearchFieldKeyDown:function(){this.searchTimer&&(window.clearTimeout(this.searchTimer),this.searchTimer=null),this.old_value!==this.getValue()&&(this.old_value=this.getValue(),SYNO.SDS.Office.GetTplDlg().getEventMgr().fireEvent("viewstoreupdate"))},onTriggerEmpty:function(){SYNO.SDS.Office.GetTplDlg().getEventMgr().fireEvent("viewstoreupdate")},getFilter:function(){return{scope:this,fn:function(e){var t=this.getValue();return!t||-1!==e.get("title_lower").indexOf(t.toLocaleLowerCase())}}}})},43034:function(){Ext.define("SYNO.SDS.Office.Template.SelectionModel",{getSelections:function(){return[]},selectRecords:function(){},selectRow:function(){},clearSelections:function(){}})},70425:function(){Ext.define("SYNO.SDS.Office.Template.Store",{extend:"SYNO.API.Store",sort:function(){this.sorting=!0,SYNO.API.Store.prototype.sort.apply(this,arguments)},isSubSet:function(e){var t,i;if(e.length>this.totalLength)return!1;for(t=0,i=e.length;t<i;++t)if(!this.getById(e[t].id))return!1;return!0},loadRecords:function(e,t,i){var n,o,r=this.sorting;if(this.sorting&&(this.sorting=!1),!0!==this.isDestroyed){if(!e||!1===i){!1!==i&&this.fireEvent("load",this,[],t),t.callback&&t.callback.call(t.scope||this,[],t,!1,e);return}var a=e.records,s=!1;if(t.add||r||!this.totalLength||!this.isSubSet(a))s=!0;else{var l,c,d=(this.snapshot||this.data).items,u=[];for(n=0,o=d.length;n<o;++n){c=d[n];var h,p,f=null;for(p=0;p<a.length;++p)if((h=a[p]).id===c.id){f=h;break}if(!f){u.push(c.id);continue}var g,m,v=f.data,b=c.data;for(m in l=!1,v)v.hasOwnProperty(m)&&(g=v[m],SYNO.ux.Utils.checkObjectConsistency(b[m],g)||(l=!0,b[m]=g));l&&c.commit()}for(n=0,o=u.length;n<o;++n)this.remove(this.getById(u[n]));t.callback&&t.callback.call(t.scope||this,a,t,!0)}var y=this.appWindow.getEventMgr();s?(t.add||y.fireEvent("enableviewmask"),SYNO.API.Store.prototype.loadRecords.apply(this,arguments)):(y.fireEvent("disableviewmask"),this.fireEvent("load",this,a,t))}}})},4929:function(){Ext.define("SYNO.SDS.Office.Template.ViewModeMgr",{extend:"Ext.Component",constructor:function(e){this.appWindow=e.appWindow,this.viewMode=e.viewMode||this.getViewMode(),Ext.Component.prototype.constructor.apply(this,arguments)},setViewMode:function(e){this.viewMode=e,this.appWindow.getEventMgr().fireEvent("viewmodechange",e)},getViewMode:function(){return this.viewMode||"thumbnail"}})},94624:function(e,t,i){"use strict";i(25736),i(37655),Ext.ns("SYNO.SDS.Office.Template"),Ext.define("SYNO.SDS.Office.Template.Menu",{extend:"SYNO.SDS.Office.Menu",constructor:function(e){this.appWin=e.appWin;var t=this.fillConfig(e);SYNO.SDS.Office.Menu.prototype.constructor.call(this,t),this.findWindow().addManagedComponent(this)},findWindow:function(){return this.appWin},fillConfig:function(e){var t=SYNO.SDS.Office._T,i=this.findWindow(),n=i.getAction(),o=[{itemId:"open",text:t("cf","preview"),scope:n,handler:function(){n.openTemplate()}},{itemId:"edit",text:t("common","edit"),scope:n,handler:function(){n.editTemplate()}},"-",{itemId:"remove",text:t("action","remove"),scope:n,handler:function(){n.deleteTemplate(i)}},{itemId:"rename",text:t("action","rename"),scope:n,handler:function(){n.renameTemplate(i)}},"-",{itemId:"share",text:t("action","share"),scope:n,handler:function(){n.shareTemplate({},i)}},{itemId:"leave",text:t("action","share_leave"),scope:n,handler:function(){n.leaveTemplate(i)}}];return Ext.apply({items:o,listeners:{scope:this,beforeshow:function(e){return SYNO.SDS.Office.Template.MenuUtils.onUpdateAction(e,e.items)}}},e)}}),Ext.define("SYNO.SDS.Office.Template.MenuUtils",{statics:{onUpdateAction:function(e,t){t instanceof Ext.util.MixedCollection&&(t=t.items),t.forEach(function(e){e.show(),e.enable()});var i,n,o,r=e.findWindow().GetSeletions();Ext.each(r,function(e){var t=e.get("perm");if(o=n=i="rw"===t||"owner"===t,i&&(i=SYNO.SDS.Office.Utils.checkSharePrivilge(!0,e.data,!0)),!i&&!o)return!1}),t.forEach(function(e){switch(e.itemId){case"rename":o||e.hide();break;case"edit":case"remove":n||e.hide();break;case"share":i||e.hide();break;case"leave":r&&r[0]&&!SYNO.SDS.Office.Template.Utils.hasUserAcl(r[0].get("acl"),SYNO.SDS.Drive.Define.Info.uid)&&e.hide()}}),r&&1<r.length&&t.forEach(function(e){switch(e.itemId){case"edit":case"open":case"rename":case"share":case"leave":e.hide()}}),SYNO.SDS.Drive.MenuUtils.onShowHideMenu(t);var a=!1;return Ext.each(t,function(e){if(!e.hidden&&!e.disabled)return a=!0,!1}),a}}}),i(81231),i(84471);let n=SYNO.SDS.Utils.DataView.LazyDataView;var o=i.n(n);let r=SYNO.SDS.Drive.Framework;var a=i.n(r);Ext.define("SYNO.SDS.Office.Template.DataView",{extend:o(),constructor:function(e){var t={autoScroll:!0,trackResetOnLoad:!1,disableTextSelect:!0,multiSelect:!0,enableDragDrop:!1,trackOver:!0,emptyText:"  "};Ext.apply(t,e||{}),o().prototype.constructor.call(this,t)},getTemplateTarget:function(){if(this.el.dom)return this.scrollBar=this.scrollBar||this.el.createChild({tag:"div",class:"syno-o-tpl-dataview-ct",style:"display:inline-block;width:100%;"}),this.scrollBar},afterRender:function(e){o().prototype.afterRender.apply(this,arguments),this.mun(this.getTemplateTarget(),"click",this.onClick,this),this.on("flexcrollInitDone",function(){this.mon(this.el.child(".mcontentwrapper"),"click",this.onClick,this)},this,{single:!0}),this.mon(this.getEl(),"click",function(e){Ext.isGecko?this.getEl().focus():this.getEl().focus.defer(1,this.getEl())},this)},onBeforeLoad:function(){this.selectedRecIds=this.getSelectedRecords().map(function(e){return e.id}),o().prototype.onBeforeLoad.apply(this,arguments)},onStoreLoad:function(e,t,i){if(!i||!i.add){if(!Ext.isEmpty(this.selectedRecIds)&&this.store){for(var n=0,o=this.selectedRecIds.length;n<o;n++){var r=this.store.indexOfId(this.selectedRecIds[n]);-1!==r&&this.select(this.all.elements[r],!0,!0)}this.selectedRecIds=null}this.updateScrollbar(this.trackResetOnLoad),this.trackResetOnLoad=!0,this.fireEvent("afterUpdateScrollbar",this)}},createTemplate:Ext.emptyFn,onLoadItem:function(e){},onUnLoadItem:function(e){},clearAllSelections:function(){this.clearSelections()},onKeyEsc:function(){var e=this.findWindow();e&&e.maskCnt||o().prototype.onKeyEsc.apply(this,arguments)}},a().postDefine),Ext.define("SYNO.SDS.Office.Template.ThumbnailView",{extend:"SYNO.SDS.Office.Template.DataView",constructor:function(e){var t={cls:"syno-o-tpl-center-dataview",store:e.store,itemSelector:"div.syno-o-tpl-ct",tpl:this.createTemplate()};Ext.apply(t,e||{}),SYNO.SDS.Office.Template.DataView.prototype.constructor.call(this,t),this.onRegEvent()},onRegEvent:function(){this.mon(this,"beforedestroy",this.onBeforeDestroy,this),this.mon(this,{resize:this.onViewResize},this,{buffer:80})},createTemplate:function(){return new Ext.XTemplate(...['<tpl for=".">',"{[this.GetCategory(values, parent, xindex)]}",'<div class="syno-o-tpl-ct {[this.getTypeClass(values)]}">','<div class="syno-o-tpl-ct-inner {[this.getInnerClass(values)]}">',"{[this.getFileIconCls(values)]}",'<div class="syno-o-tpl-img-ct">','<div class="syno-o-tpl-img-ct-bg"></div>','<img class="syno-o-tpl-img" id="{[this.getId(values)]}" data-failed="0" draggable="false" data-thumb="{[this.getThumbImg(values)]}" src="{[this.getThumbDefaultSrc(values)]}">',"</div>","</div>",'<span ext:qtip="{[this.getTitleQtip(values)]}" class="syno-o-tpl-title">{[this.getEncTitle(values)]}</span>',"{[this.getShareIcon(values)]}","</div>","{[this.GetCategoryEnd(values, parent, xindex, xcount)]}","</tpl>"],{GetCategory:function(e,t,i){var n,o="",r=i-1,a="";if(0===r)"@recent@"===e.category?(n=SYNO.SDS.Office._T("template","recent"),o="syno-o-tpl-section-recent"):(n=SYNO.SDS.Office._T("file",e.ntype),o=String.format("syno-o-tpl-section-{0}",e.ntype));else if("@recent@"!==e.category){var s=t[r-1];(s.category!==e.category||s.ntype!==e.ntype)&&("@recent@"===s.category&&(a='<div class="syno-o-tpl-section-split"></div>'),n=SYNO.SDS.Office._T("file",e.ntype),o=String.format("syno-o-tpl-section-{0}",e.ntype),a+="</div>")}return n?String.format('{0}<div class="syno-o-tpl-section {1}"><div class="syno-o-tpl-section-title">{2}</div>',a,o,n):""},GetCategoryEnd:function(e,t,i,n){return i===n?"</div>":""},getTypeClass:function(e){switch(e.ntype){case"doc":case"sheet":case"presentation":var t=!1;return e.thumb&&e.thumb.thumb_height<e.thumb.thumb_width&&(t=!0),String.format("syno-o-tpl-ct-{0} {1} {2}",e.ntype,e.system?"syno-o-tpl-ct-system":"",t?"syno-o-tpl-ct-landscape":"");default:return""}},getId:function(e){return String.format("thumbnail_{0}{1}","@recent@"===e.category?"recent_":"",e.object_id)},getInnerClass:(function(e){var t="syno-o-tpl-thumbnail-loading";return"@recent@"===e.category?"syno-o-tpl-recent-inner "+t:t}).bind(this),getThumbImg:this.getThumbImg.bind(this),getThumbDefaultSrc:(function(e){return this.getDefaultIcon()}).bind(this),getTitle:function(e){return e.title},getEncTitle:function(e){return Ext.util.Format.htmlEncode(this.getTitle(e))},getTitleQtip:function(e){return SYNO.SDS.Drive.Utils.doubleHtmlEncode(this.getTitle(e))},getFileIconCls:function(e){var t;if("@recent@"!==e.category)return'<div class="syno-o-tpl-menu-icon"></div>';switch(e.ntype){case"doc":case"sheet":t=e.ntype;break;case"presentation":t="slide";break;default:return""}return String.format('<div class="syno-o-tpl-menu-icon syno-d-{0}-menu-icon"></div>',t)},getShareIcon:function(e){return SYNO.SDS.Office.Template.Utils.isShared(e.acl)?'<span ext:qtip="'+Ext.util.Format.htmlEncode(Ext.util.Format.htmlEncode(e.owner.display_name))+'" class="syno-o-tpl-share"></span>':""}})},getDefaultIcon:function(){return String.format("webman/3rdparty/Spreadsheet/images/transparent.png")},onViewResize:function(){var e=SYNO.SDS.Office.Template.Utils.getTplViewLeft();if(e){this.getTemplateTarget().setStyle("margin-left",e+"px");var t=Ext.lib.Dom.getViewWidth(!0)-2*e,i=SYNO.SDS.Office.Template.Utils.getTplRecentWidth(),n=String.format(".syno-o-tpl-section-split{width:{0}px;}.syno-o-tpl-section{max-width:{1}px;}.syno-o-tpl-dlg .syno-o-tpl-section.syno-o-tpl-section-recent .syno-o-tpl-recent-inner{width:{2}px;}.syno-o-tpl-dlg .syno-o-tpl-section.syno-o-tpl-section-recent .syno-o-tpl-title{max-width:{3}px}",t,t+36,i,i-24);this.updateCss(n)}},updateCss:function(e){var t=document.head||document.getElementsByTagName("head")[0];this.style&&t.removeChild(this.style),this.style=document.createElement("style"),this.style.type="text/css",this.style.styleSheet?this.style.styleSheet.cssText=e:this.style.appendChild(document.createTextNode(e)),t.appendChild(this.style)},onBeforeDestroy:function(){var e=document.head||document.getElementsByTagName("head")[0];this.style&&e.removeChild(this.style)},getThumbImg:function(e){if(e.thumbnail)return e.thumbnail;var t=Ext.apply({params:{retina:SYNO.SDS.UIFeatures.test("isRetina"),object_id:e.object_id,ver:e.system?SYNO.SDS.Config.FnMap["SYNO.SDS.Office.Doc.Application"].config.version:e.publish_version}},{api:"SYNO.Office.Template.Thumb",version:1,method:"get"});return SYNO.API.GetBaseURL(t)},onLoadItem:function(e){var t=e.query("img")[0],i=t.getAttribute("data-thumb"),n=this.getDefaultIcon(),o=i||n,r=!1,a=!1;if(i){var s=this.store.getAt(this.indexOf(e));if(s&&s.data){var l=s.data,c=Ext.urlDecode(t.src)||{};c.object_id&&l.object_id===Ext.decode(c.object_id)&&l.publish_version===Ext.decode(c.ver)||(r=!0,o=this.getThumbImg(l)),l.thumb&&"svg"===l.thumb.ext&&(a=!0)}}(r||-1!==t.src.indexOf(this.getDefaultIcon()))&&this.findWindow().getImageQueue().addImage({id:t.id,url:o,isSvg:a,listeners:{load:this.onImageLoad.createDelegate(this),error:this.onImageError.createDelegate(this)}})},onUnLoadItem:function(e){var t=e.query("img")[0];this.findWindow().getImageQueue().removeImage(t.id)},onImageLoad:function(e,t,i){e.parentNode.parentNode.classList.remove("syno-o-tpl-thumbnail-loading"),t&&i&&(e.src="data:image/svg+xml;base64,"+btoa(window.unescape(encodeURIComponent(i))))},onImageError:function(e){e.parentNode.parentNode.classList.remove("syno-o-tpl-thumbnail-loading"),e.src=this.getDefaultIcon()},onUpdate:function(e,t){var i=this.store.indexOf(t);if(i>-1){var n=this.isSelected(i),o=this.all.elements[i],r=this.bufferRender([t],i)[0],a=Ext.DomQuery.selectNode("img",r);if(o&&a&&a.complete){var s=!1,l=Ext.fly(o).child("img",!0),c=t.data,d=Ext.urlDecode(l.src)||{};if(d.object_id&&c.object_id===Ext.decode(d.object_id)&&c.publish_version===Ext.decode(d.ver)||(s=!0),!s){o.replaceChild(r.children[1],o.children[1]),Ext.removeNode(r);return}}this.all.replaceElement(i,r,!0),n&&(this.selected.replaceElement(o,r),this.all.item(i).addClass(this.selectedClass)),this.updateIndexes(i,i)}}}),i(43034),Ext.define("SYNO.SDS.Office.Template.EmptyPanel",{extend:"Ext.Container",mixins:["SYNO.SDS.Office.Template.SelectionModel"],constructor:function(e){this.owner=e.owner,this.appWin=this.findAppWindow(),Ext.Container.prototype.constructor.call(this,this.fillConfig(e||{}))},fillConfig:function(e){return Ext.apply(e,{cls:"syno-o-tpl-empty",html:'<span class="syno-o-tpl-empty-text"></span>'})},onUpdateText:function(e,t){this.getText().update(t)},getText:function(){return this.emptytext||(this.emptytext=this.el.child("span.syno-o-tpl-empty-text"))},onUpdate:function(){this.onUpdateText("empty",SYNO.SDS.Office._T("empty","template"))}},a().postDefine);var s=i(71783);Ext.define("SYNO.SDS.Office.Template.PanelEventHandler",{publicEventMap:{viewstorechange:"onViewStoreChange",storeloaddone:"onLoadStore",storebeforeload:"onBeforeStoreLoad",storeloadfail:"onExceptionStore",enableviewmask:"onEnableMask",disableviewmask:"onDisableMask",naviupdate:"onNaviUpdate"},onRegEvent:function(){var e=this.findWindow();this.appWin=e;var t=e.getEventMgr();this.blRegEvent||(Ext.iterate(this.publicEventMap,function(e){var i=this.publicEventMap[e];this.mon(t,e,this[i],this)},this),this.blRegEvent=!0,this.mon(this,"beforedestroy",this.unRegEvent,this))},unRegEvent:function(){var e=this.appWin,t=e.getEventMgr(),i=e.getViewModeMgr().getViewMode();this.blRegEvent&&"empty"!==i&&(Ext.iterate(this.publicEventMap,function(e){var i=this.publicEventMap[e];this.mun(t,e,this[i],this)},this),this.blRegEvent=!1)},onEnableMask:function(){this.loadMask.enable(),this.getView().trackResetOnLoad=!0},onDisableMask:function(){this.loadMask.disable(),this.getView().trackResetOnLoad=!1},onLoadStore:function(e,t){var i=this.findWindow().getEventMgr();this.loadMask.hide(),this.unmaskView(),this.onFocusRow.defer(80,this),i.fireEvent("viewpanelload",e,this.itemId)},onBeforeStoreLoad:function(e,t){this.findWindow().getEventMgr().fireEvent("beforeviewpanelload",this.itemId),this.isViewMasked()&&this.unmaskView(),this.loadMask.show(),this.findWindow().getTplPanel().setEmptyText(" ")},onExceptionStore:function(e){this.loadMask.hide(),this.findWindow().getEventMgr().fireEvent("viewpanelfail",e),this.isViewMasked()&&this.unmaskView(),this.maskView((0,s.v2)(e))},getActiveStore:function(){return this.activeStore},switchStore:function(e,t){var i=!1;return this.activeStore!==t&&(i=!0),this.activeStore=t,i},onShowContextMenu:function(e){e.preventDefault(),this.findWindow().getMenu().showAt(e.getXY())},onClick:function(e,t,i,n){var o=n.getTarget();if(!o)return!1;var r=Ext.get(o);if(!r)return!1;if(r.is("div.syno-o-tpl-menu-icon")){var a=this.findWindow().getMenu();a.showAt(n.getXY());var s=Ext.get(r.dom.parentElement);s.addClass("syno-o-tpl-menu-active"),this.mon(a,"hide",function(){s.removeClass("syno-o-tpl-menu-active")},this,{single:!0});return}this.findWindow().makeTemplate()},isViewMasked:function(){return this.el.isMasked()},maskView:function(e,t){this.el.mask(e,t)},unmaskView:function(){this.el.unmask()},setEmptyText:function(e){this.getView().emptyText=e},onNaviUpdate:function(e){!e.isCategoryChanaged()&&e.isPathChanged()&&this.onFocusRow()},onFocusRow:function(){var e,t=this.findWindow().getNavigation();if(e=t.getSelection()){var i=this.getActiveStore();if(i.loading)return;var n=i.indexOfId(e);-1!==n&&this.focusItem(n),t.setSelection(null)}},getView:function(){},onViewStoreChange:function(){}}),i(30643),Ext.define("SYNO.SDS.Office.Template.DataViewPanel",{extend:"SYNO.ux.Panel",mixins:["SYNO.SDS.Office.Template.SelectionModel","SYNO.SDS.Office.Template.PanelEventHandler","SYNO.SDS.Office.Template.KeyEventHandler"],constructor:function(e){this.owner=e.owner,this.appWin=this.findWindow(),this.dataview=this.createDataView(e.Dataview);var t={loadMask:!0,items:this.dataview,layout:"fit",listeners:{scope:this,activate:this.onActivate,deactivate:this.onDeActivate}};Ext.apply(t,e||{}),SYNO.ux.Panel.prototype.constructor.call(this,t),this.initKeyEvent()},initEvents:function(){this.loadMask&&(this.loadMask=new Ext.LoadMask(this.bwrap,Ext.apply({store:this.store},this.loadMask))),SYNO.ux.Panel.prototype.initEvents.apply(this,arguments)},onActivate:function(){this.onRegEvent(),this.activeStore=this.findWindow().getStoreMgr().getActiveStore(),this.bindStore(this.activeStore),this.refreshEmptyText(),this.getView().el.focus(100)},onDeActivate:function(){this.loadMask&&!Ext.isBoolean(this.loadMask)&&this.loadMask.hide(),this.unRegEvent(),this.bindStore(null)},onViewStoreChange:function(e,t){this.switchStore(e,t)&&this.bindStore(this.activeStore)},bindStore:function(e){this.dataview.bindStore(e),this.dataview.blockRefresh=null===e},createDataView:function(e){return new e({owner:this,store:null,enableDragDrop:!1,listeners:{scope:this,contextmenu:this.onShowDataViewMenu,click:this.onClick}})},onShowDataViewMenu:function(e,t,i,n){n.preventDefault(),this.dataview.isSelected(i)||this.dataview.select(i,!1),this.onShowContextMenu(n)},getView:function(){return this.dataview},getSelections:function(){return this.dataview.getSelectedRecords()},selectRecords:function(e,t){this.getSelectionModel().selectRecords(e,t)},getStore:function(){return this.dataview.getStore()},setEmptyText:function(e){var t=this.dataview.getWidth(),i=this.dataview.getHeight()-3;this.emptyText=e,this.dataview.emptyText=String.format('<div class="syno-o-tpl-dataview-empty" style="width: {0}px; height: {1}px"> {2} </div>',t,i,e)},refreshEmptyText:function(){0===this.activeStore.getTotalCount()&&(this.setEmptyText(this.emptyText||""),this.dataview.refresh())},getSelectionModel:function(){return this.selectionModel||(this.selectionModel=new SYNO.SDS.Office.Template.DataViewSelectionModel(this.dataview))},focusItem:function(e){this.getSelectionModel().selectRow(e),this.dataview.focusNode(e)},onUpdateScrollbar:function(e){this.dataview.onUpdateScrollbar(e)}},a().postDefine),SYNO.SDS.Office.Template.DataViewSelectionModel=function(e){var t=function(){return e.getSelectedRecords()};return{dataView:e,getSelected:function(){return t()[0]},getCount:function(){return e.getSelectionCount()},hasSelection:function(){return e.getSelectionCount()>0},getSelections:t,selectAllRow:function(t){e.selectAllRow(t)},clearAllSelections:function(t){e.clearAllSelections(t)},clearSelections:function(t){e.clearSelections(t)},selectRow:function(t,i){e.select(t,i)},selectRecords:function(t,i){var n=0;if(!Ext.isEmpty(t))for(i||this.clearAllSelections(),n=0;n<t.length;n++)this.selectRow(e.store.indexOf(t[n]),!0)}}},Ext.define("SYNO.SDS.Office.Template.MainPanel",{extend:"Ext.Panel",constructor:function(e){this.owner=e.owner,this.ownerCt=e.owner,this.appWin=this.findWindow();var t={border:!1,itemId:"main",region:"center",layout:"card",cls:"syno-o-tpl-center-panel",bodyCssClass:"syno-o-tpl-center-body",activeItem:this.appWin.getViewModeMgr().getViewMode(),defaults:{border:!1},items:this.getPanelItems()};Ext.apply(t,e||{}),Ext.Panel.prototype.constructor.call(this,t),this.onRegEvent()},onRegEvent:function(){var e=this.appWin.getEventMgr();this.mon(e,{scope:this,beforeviewpanelload:this.onBeforePanelLoad,storedatachanged:this.onStoreDataChanged,viewpanelload:this.onPanelLoadDone,viewpanelfail:this.onPanelLoadFail,viewmodechange:this.onViewModeChage})},getPanelItems:function(){return[this.getThumbnailPanel(),this.getEmptyPanel()]},getEmptyPanel:function(){return this.emptypanel?this.emptypanel:this.emptypanel=new SYNO.SDS.Office.Template.EmptyPanel({itemId:"empty",hideMode:"offsets",owner:this})},onBeforePanelLoad:function(e){this.setActivePanel(e),this.removeClass("syno-o-tpl-load")},onPanelLoadDone:function(e,t){this.addClass("syno-o-tpl-load"),this.onUpdateEmpty(0===e.getCount(),t)},onPanelLoadFail:function(e){this.addClass("syno-o-tpl-load"),this.setActivePanel("empty"),this.getEmptyPanel().onUpdateText("error",(0,s.v2)(e))},onStoreDataChanged:function(){var e=this.findWindow().getStoreMgr().getActiveStore();if(!e.loading){var t=this.getActivePanel();t.getView&&t.getView().trackResetOnLoad&&t.onUpdateScrollbar(!0),this.onUpdateEmpty(0===e.getCount())}},onUpdateEmpty:function(e,t){e?(this.setActivePanel("empty"),this.getEmptyPanel().onUpdate()):this.setActivePanel(t)},onViewModeChage:function(e){var t=this.getActivePanel().getSelections();this.layout.setActiveItem(e);var i=this.getActivePanel();i.selectRecords(t),i.onUpdateScrollbar&&i.onUpdateScrollbar(!0)},setActivePanel:function(e){var t=this.findWindow().getViewModeMgr();(e=e||"thumbnail")!==t.getViewMode()&&t.setViewMode(e)},setEmptyText:function(e){this.items.items.forEach(function(t){Ext.isFunction(t.setEmptyText)&&t.setEmptyText(e)})},getActivePanel:function(){return this.layout.activeItem},getThumbnailPanel:function(){return this.thumbnailpanel?this.thumbnailpanel:this.thumbnailpanel=new SYNO.SDS.Office.Template.DataViewPanel({itemId:"thumbnail",Dataview:SYNO.SDS.Office.Template.ThumbnailView,hideMode:"offsets",owner:this})}}),i(70425),Ext.define("SYNO.SDS.Office.Template.ViewStore.Base",{extend:"SYNO.SDS.Office.Template.Store",pageSize:1e3,constructor:function(e){this.appWindow=e.appWindow;var t={autoLoad:!1,proxy:new SYNO.API.Proxy(Ext.apply({timeout:3e5,listeners:{scope:this,beforeload:function(e,t){var i=e.activeRequest.read;i&&Ext.Ajax.abort(i)}}},this.getAPIInfo()||{})),remoteSort:!1,reader:this.getReader(),sortInfo:this.getSortInfo(),baseParams:this.getBaseParams(),listeners:{scope:this,beforeload:this.onBeforeStoreLoad,load:this.onLoadStore,exception:this.onExceptionStore,datachanged:this.onDataChanged}};Ext.apply(t,e||{}),SYNO.SDS.Office.Template.Store.prototype.constructor.call(this,t)},onBeforeStoreLoad:function(e,t){var i=this.getLoadParam(t);if(!1===i)return e.removeAll(),this.appWindow.getEventMgr().fireEvent("storeloaddone",e,[]),!1;SYNO.SDS.Drive.Utils.apply(t.params,i);var n=this.appWindow.getEventMgr().fireEvent("storebeforeload",e,t);return n&&(this.loading=!0),n},onLoadStore:function(e,t,i){this.sorting=!1,this.loading=!1,i&&i.add||this.appWindow.getEventMgr().fireEvent("storeloaddone",e,t,i)},onExceptionStore:function(e,t,i,n,o,r){this.sorting=!1,this.loading=!1,n&&n.add||this.appWindow.getEventMgr().fireEvent("storeloadfail",o)},onDataChanged:function(){this.appWindow.getEventMgr().fireEvent("storedatachanged")},getAPIInfo:Ext.emptyFn,getReader:Ext.emptyFn,getSortInfo:Ext.emptyFn,getBaseParams:function(){return{}},getLoadParam:function(e){return{}}}),Ext.define("SYNO.SDS.Office.Template.ViewStore.Tpl",{extend:"SYNO.SDS.Office.Template.ViewStore.Base",statics:{titleConverter:function(e,t){var i=t.title;return t.system?SYNO.SDS.Office.Utils.parseTemplateTitle(i):i}},getAPIInfo:function(){return{api:"SYNO.Entry.Request",version:1,method:"request"}},getReaderFields:function(){return[{name:"id",convert:(function(e,t){return SYNO.SDS.Office.Template.Define.MODE[this.reader.reading_index]+"_"+t.object_id}).bind(this)},{name:"category",convert:(function(){return 0===this.reader.reading_index?"@recent@":""}).bind(this)},{name:"sort_order_type",type:"int",convert:function(e,t){var i=SYNO.SDS.Office.Template.Utils.isDeprecatedTemplate(t);return String.format("{0}{1}{2}",SYNO.SDS.Office.Template.Define.TYPE_ORDER[t.ntype],+!t.system,+!!i)}},{name:"sort_order",type:"int",convert:function(e,t){return t.system?e:0}},{name:"object_id"},{name:"title",convert:SYNO.SDS.Office.Template.ViewStore.Tpl.titleConverter},{name:"title_lower",convert:function(e,t){return SYNO.SDS.Office.Template.ViewStore.Tpl.titleConverter(e,t).toLocaleLowerCase()}},{name:"atime"},{name:"ntype"},{name:"link_id"},{name:"acl"},{name:"perm"},{name:"owner"},{name:"system"},{name:"publish_version"},{name:"thumb"},{name:"deprecated",convert:function(e,t){return SYNO.SDS.Office.Template.Utils.isDeprecatedTemplate(t)}}]},createSortFunction:function(e,t){var i="DESC"===(t=t||"ASC").toUpperCase()?-1:1;return function(e,t){var n,o,r;if(e.data.category!==t.data.category)return(n=e.data.category)<(o=t.data.category)?1:n>o?-1:0;if("@recent@"===e.data.category)return 0!=(r=(n=e.data.atime)>(o=t.data.atime)?1:n<o?-1:0)?-1*r:(n=e.data.title_lower,o=t.data.title_lower,i*(r=n.localeCompare(o)));if(e.data.sort_order_type!==t.data.sort_order_type){if(0!=(r=(n=e.data.sort_order_type)>(o=t.data.sort_order_type)?1:n<o?-1:0))return i*r}else if(e.data.sort_order!==t.data.sort_order&&0!=(r=(n=e.data.sort_order)>(o=t.data.sort_order)?1:n<o?-1:0))return i*r;return n=e.data.title_lower,o=t.data.title_lower,i*(r=n.localeCompare(o))}},getReader:function(){return new SYNO.SDS.Office.Template.ViewStore.CompoundReader({idProperty:(function(e){return SYNO.SDS.Office.Template.Define.MODE[this.reader.reading_index]+"_"+e.object_id}).bind(this),compound:{params:[{api:"SYNO.Office.Template",method:"list",version:"1",params:{field:{publish_version:!0,atime:!0,owner:!0,acl:!0,thumb:!0,link_id:!0},mode:"recent",limit:50}},{api:"SYNO.Office.Template",method:"list",version:"1",params:{field:{publish_version:!0,owner:!0,acl:!0,thumb:!0,link_id:!0,sort_order:!0}}}]},roots:["items","items"],fields:this.getReaderFields()})},getSortInfo:function(){return{}}}),Ext.define("SYNO.SDS.Office.Template.ViewStore.CompoundReader",{extend:"SYNO.API.CompoundReader",readRecords:function(e){var t,i=[],n=this.meta.roots,o={success:!1,records:[],totalRecords:0};if(this.compoundData=e,!Ext.isObject(e))return o;if(e.result.forEach(function(e,r,a){Ext.isArray(n)&&(this.getRoot=this.createAccessor(n[r])),!0===e.success?(this.reading_index=r,t=SYNO.API.CompoundReader.superclass.readRecords.call(this,e.data,r)):i.push({response:e,index:r,total:a}),Ext.isFunction(this.meta.onCompoundResponse)&&(t=this.meta.onCompoundResponse(e,t)),t&&(o.records=o.records.concat(t.records),o.totalRecords+=t.totalRecords)},this),o.success=!e.has_fail,!1===o.success)throw i;return o}}),Ext.define("SYNO.SDS.Office.Template.StoreMgr",{extend:"Ext.Component",eventMap:{settemplatepermdone:"onSetTplPermDone",leavetemplatedone:"onLeaveTplDone",renametemplatedone:"onRenameTplDone",deletetemplatedone:"onDeleteTplDone",naviupdate:"onNaviUpdate",storeloaddone:"onStoreLoadDone",viewstoreupdate:"onViewStoreUpdate"},constructor:function(e){this.appWindow=e.appWindow,Ext.Component.prototype.constructor.apply(this,arguments),this.createStores(),this.onRegEvent()},onRegEvent:function(){var e=this.appWindow.getEventMgr();this.blRegEvent||Ext.iterate(this.eventMap,function(t){var i=this.eventMap[t];this.mon(e,t,this[i],this)},this)},createStores:function(){this.stores={tpl:new SYNO.SDS.Office.Template.ViewStore.Tpl({appWindow:this.appWindow})},this.activeStore=this.stores.tpl},getStore:function(e){return this.stores[e]},getActiveStore:function(){return this.activeStore},onNaviUpdate:function(e){var t,i=e.getCategory();(t=this.stores.hasOwnProperty(i)?this.stores[i]:this.stores.tpl)!==this.activeStore&&(this.activeStore=t,this.appWindow.getEventMgr().fireEvent("viewstorechange",i,this.activeStore)),e.isChanged()&&this.onStoreReload(!0,{params:e.getParams()},e.isPathChanged())},getObject:function(e){var t,i,n=this.getActiveStore();if(Ext.isArray(e)){for(var o=0;o<e.length;o++)if((i=n.query("object_id",e[o],!1,!0))&&(t=i.get(0)))return t;return!1}return!!(i=n.query("object_id",e,!1,!0))&&i},onSetTplPermDone:function(e,t,i){e&&this.onStoreReloadByObject(i.object_id)},onLeaveTplDone:function(e,t,i){e&&this.onStoreReloadByObject(i.object_id)},onRenameTplDone:function(e,t,i){if(e){var n=this.getObject(i.object_id);n&&n.items.forEach(function(e){e.data.title!==i.title&&(e.data.title=i.title,e.data.title_lower=i.title.toLocaleLowerCase(),e.commit())})}},onDeleteTplDone:function(e,t,i){e&&this.getObject(i.object_id)&&this.onStoreReload()},onStoreReloadByObject:function(e){(!e||this.getObject(e))&&this.onUpdateTplStoreReload()},onUpdateTplStoreReload:function(){this.onStoreReload()},onStoreReload:function(e,t,i,n){this.load_options={blMask:e||!1,options:t||{}};var o=this.appWindow.getEventMgr();this.delayStoreReloadTask||(this.delayStoreReloadTask=new Ext.util.DelayedTask(function(){!0!==this.load_options.blMask?o.fireEvent("disableviewmask"):o.fireEvent("enableviewmask"),this.getActiveStore().reload(Ext.apply({scope:this,callback:function(){o.fireEvent("enableviewmask")}},this.load_options.options))},this),this.mon(this,"beforedestroy",function(){this.delayStoreReloadTask.cancel(),this.delayStoreReloadTask=null},this)),this.delayStoreReloadTask.cancel(),this.delayStoreReloadTask.delay(i?0:n||80)},destroy:function(){Ext.iterate(this.stores,function(e){this.stores[e].destroy()},this),Ext.Component.prototype.destroy.apply(this,arguments)},onStoreLoadDone:function(e){e===this.getActiveStore()&&SYNO.SDS.Office.GetTplDlg().getEventMgr().fireEvent("viewstoreupdate")},onViewStoreUpdate:function(){var e=SYNO.SDS.Office.GetTplDlg(),t=this.getActiveStore();this.recent_count=0,this.max_recent_count=SYNO.SDS.Office.Template.Utils.getTplRecentViewCol(),t.filter([e.getFileType().getFilter(),e.getSourceBtn().getFilter(),e.getSourceBtn().getDeprecatedFilter(),e.getSearchField().getFilter(),this.getRecentFilter()])},getRecentFilter:function(){return"all"!==SYNO.SDS.Office.GetTplDlg().getSourceBtn().getSource()?{scope:this,fn:function(e){return"@recent@"!==e.data.category}}:{scope:this,fn:function(e){return("@recent@"!==e.data.category||(++this.recent_count,!(this.max_recent_count<this.recent_count)))&&!0}}}}),i(32867),Ext.define("SYNO.SDS.Office.Template.Navigation",{extend:"Ext.util.Observable",category:"",defaultCategory:["all_tpl","my_tpl","shared_with_me","sharing_to_others","recent"],paths:{},constructor:function(e){this.paths={all_tpl:[{id:"all_tpl",text:SYNO.SDS.Office._T("template","all")}],my_tpl:[{id:"my_tpl",text:SYNO.SDS.Office._T("template","mime")}],sharing_to_me:[{id:"sharing_to_me",text:SYNO.SDS.Office._T("template","sharing_to_me")}],sharing_to_others:[{id:"sharing_to_others",text:SYNO.SDS.Office._T("template","sharing_to_others")}],recent:[{id:"recent",text:SYNO.SDS.Office._T("template","recent")}]},this.appWindow=e.appWindow,Ext.util.Observable.prototype.constructor.apply(this,arguments),this.pre_paths=SYNO.SDS.copy(this.paths)},initPath:function(e,t){-1!==this.defaultCategory.indexOf(e)&&(t=SYNO.SDS.Office._T("category",e)),this.paths[e]=[{id:e,text:t}]},setDefaultCategory:function(){this.update({})},setCategory:function(e){this.category=e},getCategory:function(){return this.category},getPreCategory:function(){return this.pre_category||this.getCategory()},setPreCategory:function(e){this.pre_category=e},isDefaultCategoryExist:function(e){return -1!==this.defaultCategory.indexOf(e)},isCategoryExist:function(e){return this.paths.hasOwnProperty(e)},removeCategory:function(e){this.isCategoryExist(e)&&(this.paths[e]=null,delete this.paths[e])},eachCategory:function(e){for(var t in this.paths)this.paths.hasOwnProperty(t)&&e(t)},getPath:function(e){return e=e||this.getCategory(),this.paths[e]||[]},getPrePath:function(e){return e=e||this.getCategory(),this.pre_paths[e]||[]},setPrePath:function(e,t){this.pre_paths[e]=SYNO.SDS.copy(t)},getLastPath:function(){var e=this.getPath();return e&&0!==e.length&&e[e.length-1]||{}},getLastPathId:function(){return this.getLastPath().id},appendPath:function(e){this.getPath().push(e),this.setPath(this.getPath(),!0)},isChanged:function(){return this.isCategoryChanaged()||this.isPathChanged()},isCategoryChanaged:function(){var e=this.getPreCategory(),t=this.getCategory();return!t||e!==t},isPathChanged:function(){var e=this.getPrePath(),t=this.getPath();if(!e||!t||e.length!==t.length||!t[0])return!0;for(var i=0;i<t.length;i++)if(e[i].id!==t[i].id)return!0;return!1},setPath:function(e,t){if(Ext.isEmpty(t)){var i=this.getPath(e);i||(this.initPath(e),i=this.getPath(e)),t=[i[0]]}else t[0].id!==e&&t.splice(0,0,this.getPath(e)[0]);Ext.isNumber(t)?this.paths[e]=this.paths[this.getCategory()].slice(0,t+1):this.paths[e]=t},updatePath:function(e,t,i){var n=SYNO.SDS.copy(this.getPath(e));n[t].text=i,this.update({path:n})},update:function(e,t){var i=e.category,n=e.path,o=e.selection_id;this.setPreCategory(this.getCategory()),i?this.setCategory(i):i=this.getCategory(),this.setPrePath(i,this.getPath()),this.setPath(i,n),o&&this.setSelection(o),this.findWindow().getEventMgr().fireEvent("naviupdate",this)},getParams:function(){var e={};switch(this.getCategory()){case"all_tpl":break;case"my_tpl":SYNO.SDS.Drive.Utils.apply(e,{mode:"self"});break;case"shared_with_me":SYNO.SDS.Drive.Utils.apply(e,{mode:"other"});break;case"sharing_to_others":SYNO.SDS.Drive.Utils.apply(e,{mode:"self",filter:{sharing:!0}});break;case"recent":SYNO.SDS.Drive.Utils.apply(e,{mode:"recent",field:{atime:!0},limit:1e3})}return e},setSelection:function(e){this.selection_id=e},getSelection:function(){return this.selection_id},isRootPath:function(){var e=this.getPath();return e&&e.length<=1},findWindow:function(){return this.appWindow}}),i(4929),i(76249),i(30592),i(30682);var l=i(49781),c=i.n(l);Ext.define("SYNO.SDS.Office.Template.Share.FormPanel",{extend:"SYNO.ux.FormPanel",constructor:function(e){this.object_id=e.object_id,this.share_user=e.share_user,this.capabilities=e.capabilities,SYNO.ux.FormPanel.prototype.constructor.call(this,this.fillConfig(e)),this.mon(this,"afterlayout",this.onLoadData,this,{single:!0})},fillConfig:function(e){var t={cls:"syno-d-share-formpanel",layout:"border",items:[this.getLinkFieldSet(),this.getShareToDsmUserCfg()],objectPerm:{}};return Ext.apply(t,e)},getLinkPermBtn:function(){if(this.linkPermBtn)return this.linkPermBtn;var e=this,t=SYNO.SDS.Office._T,i=t("perm","limit_desc");SYNO.SDS.Drive.Define.Info.sharing_permission.invite_sharing||(i=t("perm","limit_you_desc"));var n=[{itemId:"na",text:"<b>"+t("perm","limit")+"</b> - "+i},"-",{itemId:"internal_viewer",text:"<b>"+t("perm","app")+"</b> - "+t("perm","app_ro_desc")},{itemId:"internal_editor",text:"<b>"+t("perm","app")+"</b> - "+t("perm","app_rw_desc")}];return this.linkPermBtn=new SYNO.ux.Button({htmlEncode:!1,height:30,width:504,hideLabel:!0,btnStyle:"grey",cls:"syno-d-combo-btn",text:n[0].text,menu:new SYNO.SDS.Office.Menu({minWidth:504,defaults:{htmlEncode:!1,checked:!1},items:n,listeners:{scope:this,itemclick:function(e){var t=e.itemId,i=this.getLinkPermBtn();i.getValue()!==t&&i.setValue(t)},beforeshow:function(e){var t=this.getLinkPermBtn().getValue(),i=e.items.items;if(i.forEach(function(e){e.setChecked&&e.setChecked(e.itemId===t)}),!SYNO.SDS.Drive.Define.Info.sharing_permission.internal_link_sharing){var n=e.items;n.get("internal_editor").hide(),n.get("internal_viewer").hide(),i[i.length-3].hide()}},show:function(e){var t=e.layout.container,i=t.getEl();t.getLayoutTarget().getWidth()+i.getFrameWidth("lr")<e.minWidth&&t.setWidth(e.minWidth)}}}),setValue:function(t,i){this.menu.items.each(function(e){if(e.itemId===t)return this.value=t,this.setText(e.text),!1},this),i&&(this.ori_value=t,e.getLinkField().focus(!1,2))},getOriValue:function(){return this.ori_value},getValue:function(){return this.value||"na"},isDirty:function(){return this.value!==this.ori_value}})},getShareLinkComposite:function(){return this.shareLinkComposite||(this.shareLinkComposite=new(c())({disableWhenEmpty:!1,hideLabel:!0,textFieldCfg:{cls:"syno-d-share-link-text selectabletext allowDefCtxMenu",readOnly:!0,selectOnFocus:!0,width:456},btnCfg:{tooltip:SYNO.SDS.Office._T("info","copy_url"),width:40,cls:"syno-d-copy-btn",iconCls:"syno-d-copy-btn-icon",btnStyle:"grey"},listeners:{clipsucceed:function(e){this.findWindow().setStatusOK({text:SYNO.SDS.Office._T("share","copy_url_done")})},clipfailed:function(e){this.findWindow().setStatusError({text:SYNO.SDS.Office._T("error","copy_share_link")})},scope:this}}))},getUserGroupCombo:function(){if(this.share_name)return this.share_name;var e={fn:(function(e){var t=e.data;return"user"!==t.type||t.ugid!==this.data.owner.uid}).bind(this)},t=new SYNO.SDS.Office.Template.Share.QueryStore({default_filter:e,autoLoad:!1,listeners:{scope:this,load:function(){this.isDestroyed||this.fireEvent("sharestoreloaddone")}}});this.addManagedComponent(t);var i=new SYNO.SDS.Office.Template.Share.FillStore({default_filter:e,autoLoad:!1,listeners:{scope:this,load:function(){this.isDestroyed||(this.getUserGroupCombo().bindStore(i),i.setCombo(this.share_name),t.query_str&&i.setQuery(t.query_str),this.fireEvent("sharestoreloaddone"))}}});return this.addManagedComponent(i),this.share_name=new SYNO.ux.SuperBoxSelect({supportPlaceHolder:!1,itemMaxWidth:65,ctCls:"syno-d-share-user-group",labelAlign:"top",typeAhead:!1,addNewDataOnBlur:!0,allowAddNewData:!0,allowDeleteData:!0,allowQueryAll:!1,removeValuesFromStore:!1,fieldLabel:SYNO.SDS.Office._T("share","invite"),lazyInit:!1,emptyText:SYNO.SDS.Office._T("share","user_group"),listEmptyText:SYNO.SDS.Office._T("common","no_data"),editable:!0,width:290,store:t,minChars:1,valueField:"id",displayField:"displayname",queryParam:"query",mode:"remote",enableKeyEvents:!0,tpl:new Ext.XTemplate('<tpl for=".">{[this.insertBefore(values, xindex, parent)]}<div class="x-combo-list-item {[values.cls || ""]}" perm="option" aria-label="{[Ext.util.Format.htmlEncode(Ext.util.Format.stripTags(values.displayname))]}" id="{[Ext.id()]}"  ext:qtip="{[Ext.util.Format.htmlEncode(Ext.util.Format.htmlEncode(values.displayname))]}">{[Ext.util.Format.htmlEncode(values.displayname)]}</div></tpl></tpl>',{insertBefore:function(e,t,i){return t>1&&i[t-2].type!==e.type?'<div class="syno-d-menu-sep">&nbsp;</div>':""}}),validator:(function(e){var t=e.split("@");return t.shift(),e=t.join("@"),Ext.isEmpty(e)||-1!==this.findIndexUserGroup(e)}).bind(this),initScrollbarEvent:Ext.emptyFn,onBlur:function(){this.onBlurCall=!0,this.beforeBlur(),this.outerWrapEl.removeClass(this.focusClass),this.autoSize(),this.clearCurrentFocus(),SYNO.ux.SuperBoxSelect.superclass.onBlur.call(this)},onStoreLoad:function(e,t,i){var n=0;Ext.each(t,(function(e){var t=e.get(this.displayField),i=Ext.util.TextMetrics.measure(this.el,t);n=Math.max(n,i.width+100)}).bind(this));var o=n>this.width?n:this.width;o=o>456?456:o,this.doResize(o),SYNO.ux.SuperBoxSelect.prototype.onStoreLoad.bind(this)(e,t,i)},listeners:{scope:this,beforeselect:function(e,t){var i=t.data.name;e.hasValue(i)&&e.collapse()},beforeadditem:function(e,t,i){return!Ext.isEmpty(t)&&-1!==this.findIndexUserGroup(i.data.name)},additem:function(e){if(window.event){var t=new Ext.EventObjectImpl(window.event);e.itemDelimiterKey===t.getKey()&&(this.blViewAddUser=!0,(function(){this.blViewAddUser=!1}).defer(80,this))}},newitem:function(e,t){var i=this.findUserGroup(t);if(i){e.getStore().clearFilter();var n=i.data;e.addItem(n)}},autosize:function(e,t){""===e.el.dom.value&&e.items.getCount()>0&&e.el.setWidth(5)},keydown:function(e,t,i){e.itemDelimiterKey===t.getKey()&&!this.blViewAddUser&&(""!==e.el.dom.value||e.isExpanded()||this.onAddSharePriv())},beforequery:function(e){if(e&&this.getUserGroupCombo().isVisible()){var t=this.getUserGroupCombo().outerWrapEl.dom;t.scrollTop=t.scrollHeight}}}}),t.setCombo(this.share_name),this.share_name},getSharePrivCombo:function(){var e=[{perm:"ro",display:SYNO.SDS.Office._T("perm","ro")},{perm:"rw",display:SYNO.SDS.Office._T("perm","rw")}];return new SYNO.ux.ComboBox({store:this.sharePrivComboStore=new Ext.data.JsonStore({idProperty:"perm",autoDestroy:!0,fields:["perm","display"],data:e}),displayField:"display",valueField:"perm",width:158,value:"ro",cls:"syno-d-share-user-group-combobox",tpl:'<tpl for="."><div ext:qtip="{[SYNO.SDS.Drive.Utils.doubleHtmlEncode(values.display)]}" class="x-combo-list-item" role="option" aria-label="{[Ext.util.Format.htmlEncode(values.display)]}">{[Ext.util.Format.htmlEncode(values.display)]}</div></tpl>',initList:function(){var e=0;this.getStore().each((function(t){var i=t.get(this.displayField),n=Ext.util.TextMetrics.measure(this.el,i);e=Math.max(e,n.width+60)}).bind(this)),this.listWidth=e>this.width?e:this.width,SYNO.ux.ComboBox.prototype.initList.bind(this)()},listeners:{afterrender:function(e){Ext.QuickTips.register({target:e.getEl(),text:e.rawValue})},select:function(e){Ext.QuickTips.register({target:e.getEl(),text:e.rawValue})}}})},getAddBtn:function(){return this.add_btn||(this.add_btn=new SYNO.ux.Button({btnStyle:"grey",cls:"syno-d-share-add",width:40,listeners:{click:function(){this.onAddSharePriv()},scope:this}}))},onAddSharePriv:function(){var e=this.getUserGroupUnAdded();if(e){var t=this.share_priv.getValue(),i=this.getShareStore(),n=0,o=null,r=!1;e.forEach(function(e){if(e){var a=e.data;if("user"===a.type&&a.ugid===this.data.owner.uid){r=!0;return}var s=a.name,l=s.toLocaleLowerCase(),c=a.type,d=e.data.nickname;-1===(n=i.findBy(function(e){return e.data.name.toLocaleLowerCase()===l&&e.data.type===c},this))?i.insert(0,new Ext.data.Record({name:s,type:c,perm:t,nickname:d})):t!==(o=i.getAt(n)).data.perm&&(o.beginEdit(),o.set("name",s),o.set("type",c),o.set("perm",t),o.set("nickname",d),o.endEdit())}},this),this.share_name.clearValue(),r&&this.findWindow().getMsgBox().alert("",String.format(SYNO.SDS.Office._T("error","template_share_owner"),this.data.owner.display_name))}},findIndexUserGroup:function(e){var t=this.share_name.getStore(),i=t.createFilterFn("name",e,!1,!1,!0);return(t.snapshot||t.data).findIndexBy(i)},findUserGroup:function(e){var t=this.share_name.getStore(),i=t.createFilterFn("name",e,!1,!1,!0);return(t.snapshot||t.data).find(i)},isUserGroupVaild:function(){return this.share_name.validate()},isUserGroupUnAdded:function(){var e=this.getUserGroupUnAdded();if(!e)return!1;var t,i=this.share_priv.getValue(),n=!1;return Ext.each(e,function(e){if(e&&(-1===(t=this.getShareStore().findBy(function(t){var i=t.data.name.toLocaleLowerCase()===e.data.name.toLocaleLowerCase(),n=t.data.type===e.data.type;return i&&n},this))||i!==this.getShareStore().getAt(t).data.perm))return n=!0,!1},this),n},getUserGroupUnAdded:function(){return this.share_name.getStore().clearFilter(),this.share_name.getSelectedRecords()},getLinkFieldSet:function(){return this.linkFieldset||(this.linkFieldset=new SYNO.ux.FieldSet({width:460,itemId:"link_fieldset",collapsible:!1,region:"north",title:SYNO.SDS.Office._T("share","link"),margins:{top:0,bottom:8,left:0,right:0},items:[this.getShareLinkComposite()]}))},getLinkField:function(){return this.getShareLinkComposite().textField},getShareToDsmUserCfg:function(){return this.share_priv=this.getSharePrivCombo(),this.shareCompositeField=new SYNO.ux.CompositeField({xtype:"syno_compositefield",region:"north",fieldLabel:SYNO.SDS.Office._T("share","invite"),hidden:!SYNO.SDS.Drive.Define.Info.sharing_permission.invite_sharing,defaults:{margins:"0 8 0 0"},items:[this.getUserGroupCombo(),this.share_priv,this.getAddBtn()]}),this.shareEditorGrid=new SYNO.ux.EditorGridPanel({cls:"syno-d-share-gridpanel",clicksToEdit:1,hideHeaders:!0,region:"center",margins:{top:8,bottom:8,left:0,right:9},viewConfig:{markDirty:!1,autoFill:!0,deferEmptyText:!1,emptyText:SYNO.SDS.Office._T("empty","share"),scrollOffset:0},sm:new Ext.grid.RowSelectionModel({listeners:{beforerowselect:function(){return!1}}}),listeners:{viewready:function(e){e.getView().updateScroller()}},colModel:new Ext.grid.ColumnModel({defaults:{menuDisabled:!0,fixed:!0,align:"left"},columns:[{dataIndex:"name",width:293,renderer:this.displaynameRenderer.createDelegate(this)},{dataIndex:"perm",width:159,renderer:this.permRenderer.createDelegate(this)},{xtype:"actioncolumn",css:"syno-d-actioncolumn",width:50,items:[{iconCls:"syno-d-share-delete-icon",handler:function(e,t,i){e.getStore().removeAt(t)}}]}]}),store:this.getShareStore()}),{xtype:"syno_fieldset",collapsible:!1,itemId:"sharefieldset",cls:"syno-d-share-perm-fieldset syno-ux-formpanel",style:"position:absolute",region:"center",layout:"border",title:SYNO.SDS.Office._T("share","link_perm"),items:[{xtype:"container",region:"north",layout:"form",labelAlign:"top",defaults:{height:30},items:[this.getLinkPermBtn(),this.shareCompositeField]},this.shareEditorGrid]}},onLoadData:function(){this.findWindow().setStatusBusy(),SYNO.SDS.Office.GetWebAPI().getTemplateShardLinkAndInfo({params:{object_id:this.object_id,basic:!0,field:{acl:!0}},callback:this.onLoadDataDone,scope:this}),this.capabilities&&!this.capabilities.can_share&&[this.linkPermBtn,this.share_name,this.share_priv,this.add_btn,this.shareEditorGrid].forEach(function(e){e.setDisabled(!0)}),this.share_user&&_S("user")!==this.share_user&&(this.findWindow().setStatusBusy(),this.share_name.addValue(this.share_user),this.mon(this,"sharestoreloaddone",function(){if(!this.isDestroyed&&(this.findWindow().clearStatusBusy(),!this.share_name.getRawValue())){var e=this.findUserGroup(this.share_user);e&&this.share_name.setValueEx(e.data),this.share_priv.collapse(),this.share_name.collapse(),this.share_name.getRawValue()?this.share_priv.focus():this.share_name.focus()}},this,{buffer:80,single:!0}))},onLoadDataDone:function(e,t,i,n){if(!this.isDestroyed){if(this.findWindow().clearStatusBusy(),!e||t.has_fail){var o=SYNO.API.Response.GetFirstError(t);this.findWindow().getMsgBox().alert("",(0,s.v2)(o),function(){this.findWindow().close()},this);return}var r=SYNO.API.Response.GetValByAPI(t,"SYNO.Office.Template","get"),a=SYNO.API.Response.GetValByAPI(t,"SYNO.SynologyDrive.Sharing","get_base_url","base_url")+"/oo/t/"+r.link_id;this.getLinkField().setValue(a),this.data=r;var l,c=[];if(this.objectPerm={user:{},group:{}},this.uid_map={},this.gid_map={},!Ext.isEmpty(this.data)&&this.data.acl){l=this.getLinkPermBtn(),Ext.iterate(this.data.acl,function(e,t){var i=t.perm;if("dsm_app"===e)switch(i){case"ro":l.setValue("internal_viewer",!0);break;case"rw":l.setValue("internal_editor",!0)}else"dsm_user"===e?Ext.iterate(this.data.acl.dsm_user,function(e,t){t.type="user",this.objectPerm.user[t.name]=t.perm,c.push(t),this.uid_map[t.name]=parseInt(e,10)},this):"dsm_group"===e&&Ext.iterate(this.data.acl.dsm_group,function(e,t){t.type="group",this.objectPerm.group[t.name]=t.perm,c.push(t),this.gid_map[t.name]=parseInt(e,10)},this)},this),Ext.isEmpty(c)||this.getShareStore().loadData(c);var d=SYNO.SDS.Drive.Define.Info.sharing_permission.invite_sharing;d!==this.shareCompositeField.isVisible()&&(this.shareCompositeField.ownerCt.setHeight("auto"),this.shareCompositeField.setVisible(d),this.doLayout())}}},getShareStore:function(){return this.shareStore||(this.shareStore=new Ext.data.JsonStore({autoDestroy:!0,fields:[{name:"id"},{name:"name",sortType:function(e){return e?e.toLocaleLowerCase():""}},"perm","type","nickname",{name:"order",convert:function(e,t){switch(t.type){case"user":return 1;case"group":return 2;default:return 100}}}],hasMultiSort:!0,multiSortInfo:{sorters:[{field:"order",direction:"asc"},{field:"type",direction:"asc"},{field:"name",direction:"asc"},{field:"nickname",direction:"asc"}],direction:"asc"}})),this.shareStore},displaynameRenderer:function(e,t,i){var n,o=e;return n="group"===i.data.type?"syno-d-share-group":"syno-d-share-user",i.data.nickname&&(o+=" ("+i.data.nickname+")"),String.format('<span ext:qtip="{0} class="{1}"></span>{2}',Ext.util.Format.htmlEncode(Ext.util.Format.htmlEncode(o)),n,Ext.util.Format.htmlEncode(o))},permRenderer:function(e,t,i){var n=Ext.id();return Ext.defer(this.createStatusButton,25,this,[e,n,i]),'<div id="'+n+'";</div>'},changePermStatus:function(e,t,i){var n=t.text;e.setText(n),e.setTooltip(n),i.data.perm=t.value},createStatusButton:function(e,t,i){if(!Ext.isEmpty(Ext.get(t))){var n=[{text:SYNO.SDS.Office._T("perm","ro"),value:"ro"},{text:SYNO.SDS.Office._T("perm","rw"),value:"rw"}],o=SYNO.SDS.Office._T("perm",e),r=new SYNO.ux.Button({disabled:!SYNO.SDS.Drive.Define.Info.sharing_permission.invite_sharing,btnStyle:"default",text:o,tooltip:o,renderTo:t,cls:"syno-d-share-status-btn",menu:new SYNO.SDS.Office.Menu({items:n})});r.menu.items.items.forEach(function(e,t,n){e.setHandler(this.changePermStatus.createDelegate(this,[r,e,i]))},this),this.addManagedComponent(r),this.statusBtn=r}},isShareLinkPermDirty:function(){return this.getLinkPermBtn().isDirty()},getPermParam:function(e,t,i){var n=i?this.gid_map[t]:this.uid_map[t];return Ext.apply(e,{type:i?"group":"user"}),n?i?Ext.apply(e,{gid:n}):Ext.apply(e,{uid:n}):Ext.apply(e,{name:t}),e},calculatePerm:function(e,t,i,n){var o=!1,r=Ext.apply({},t);return Ext.iterate(e,function(e,t){if(r.hasOwnProperty(e)&&r[e]===t)return void delete r[e];i.push(this.getPermParam({op:"set",perm:t},e,n)),r[e]!==t&&delete r[e],o=!0},this),Ext.iterate(r,function(e,t){i.push(this.getPermParam({op:"delete"},e,n)),o=!0},this),!0===o&&{}},hasModifiedPerm:function(){if(this.isShareLinkPermDirty())return!0;var e,t,i=function(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0};return e=Ext.apply({},this.objectPerm.user),t=Ext.apply({},this.objectPerm.group),this.getShareStore().each(function(i,n,o){var r=i.data.perm;"group"===i.data.type?t[i.data.name]===r?delete t[i.data.name]:t[i.data.name]=r:"user"===i.data.type&&(e[i.data.name]===r?delete e[i.data.name]:e[i.data.name]=r)},this),!(i(e)&&i(t))},getModifiedPerm:function(){var e=[],t={},i={};if(this.isShareLinkPermDirty()){var n=this.getLinkPermBtn().getOriValue();switch(this.getLinkPermBtn().getValue()){case"internal_viewer":e.push({op:"set",type:"app",perm:"ro"});break;case"internal_editor":e.push({op:"set",type:"app",perm:"rw"});break;default:("internal_editor"===n||"internal_viewer"===n)&&e.push({op:"delete",type:"app"})}}return this.getShareStore().each(function(e,n,o){"group"===e.data.type?i[e.data.name]=e.data.perm:"user"===e.data.type&&(t[e.data.name]=e.data.perm)},this),this.calculatePerm(t,this.objectPerm.user,e,!1),this.calculatePerm(i,this.objectPerm.group,e,!0),!Ext.isEmpty(e)&&{object_id:this.object_id,perm:e}}}),Ext.define("SYNO.SDS.Office.Template.Share.QueryStore",{extend:"SYNO.API.Store",constructor:function(e){e&&e.default_filter&&(this.default_filter=e.default_filter),SYNO.API.Store.prototype.constructor.call(this,this.fillConfig(e))},destroy:function(){this.combo&&this.combo.un("beforequery",this.onBeforeQuery,this),SYNO.API.Store.prototype.destroy.apply(this,arguments)},setCombo:function(e){this.combo=e,this.combo.on("beforequery",this.onBeforeQuery,this)},fillConfig:function(e){var t={appWindow:this,autoDestroy:!0,pruneModifiedRecords:!0,baseParams:{query:"",additional:["nickname"]},proxy:this.getProxy(),reader:this.getJsonReader()};return Ext.apply(t,e)},getProxy:function(){return new SYNO.API.Proxy(Ext.apply({listeners:{scope:this,beforeload:this.onProxyBeforeLoad}},SYNO.SDS.Drive.WebAPIDesc.list_app_priv))},onProxyBeforeLoad:function(e,t){var i=e.activeRequest.read;i&&Ext.Ajax.abort(i)},onBeforeQuery:function(e){if(this.isDestroyed)return!1;var t=e.query.toLocaleLowerCase();if(this.query_str=t,""===t)return!1},add:function(e){this.suspendEvents(!1),SYNO.API.Store.prototype.add.call(this,e),this.resumeEvents()},doUpdate:function(e){this.suspendEvents(!1),SYNO.API.Store.prototype.doUpdate.call(this,e),this.resumeEvents()},load:function(e){SYNO.API.Store.prototype.load.call(this,Ext.apply(e||{},{add:!0,callback:function(e){this.isDestroyed||(this.sort([{field:"type",direction:"ASC"},{field:"name",direction:"ASC"}]),this.filterStore(this.query_str))}}))},getJsonReader:function(){return new Ext.data.JsonReader({root:"list",idProperty:function(e){return e.type+"@"+e.name},fields:[{name:"id",convert:function(e,t){return t.type+"@"+t.name}},{name:"ugid",convert:function(e,t){if("user"===t.type||"group"===t.type)return t.id}},{name:"name",sortType:function(e){return e?e.toLocaleLowerCase():""}},{name:"nickname",sortType:function(e){return e?e.toLocaleLowerCase():""}},{name:"displayname",convert:function(e,t){return t.nickname?t.name+" ("+t.nickname+")":t.name}},{name:"type",sortType:function(e){return+("user"!==e)}},"perm",{name:"cls",convert:function(e,t){var i;return"group"===t.type?"syno-d-combo-share-group":"syno-d-combo-share-user"}}]})},filterStore:function(e){if(this.combo){this.clearFilter();var t=this.combo,i=[];this.default_filter&&i.push(this.default_filter),Ext.isEmpty(e)||i.push({fn:(function(t){return this.createFilterFn("name",e,!0,!1,!1)(t)||this.createFilterFn("nickname",e,!0,!1,!1)(t)}).bind(this)}),i.push({fn:function(e){var i=!1;return Ext.each(t.getSelectedRecords(),function(t){if(t&&t.get("name").toLocaleLowerCase()===e.get("name").toLocaleLowerCase()&&t.get("type")===e.get("type"))return i=!0,!1}),!i}}),this.filter(i),t.selectedIndex=-1,t.onLoad()}}}),Ext.define("SYNO.SDS.Office.Template.Share.FillStore",{extend:"SYNO.SDS.Office.Template.Share.QueryStore",setQuery:function(e){this.query_str=e,this.filterStore(e)},onProxyBeforeLoad:function(e,t){var i=e.activeRequest.read;i&&Ext.Ajax.abort(i)},onBeforeQuery:function(e){return!this.isDestroyed&&(this.blQueryFillStore?(this.filterStore(e.query),!1):void delete e.query)},load:function(e){SYNO.API.Store.prototype.load.call(this,Ext.apply(e||{},{callback:function(e){this.isDestroyed||(this.blQueryFillStore||(this.blQueryFillStore=!0),this.filterStore(this.query_str))}}))}}),Ext.define("SYNO.SDS.Office.Template.Share.Window",{extend:"SYNO.SDS.Office.AddEditWindow",constructor:function(e){var t=this.fillConfig(e);SYNO.SDS.Office.AddEditWindow.prototype.constructor.call(this,t)},fillConfig:function(e){this.owner=e.owner,this.object_id=e.object_id;var t={cls:"syno-o-template-share-dlg",title:SYNO.SDS.Office._T("template","share"),width:560,height:561,layout:"fit",resizeHandles:"n s",items:this.getFormPanel(e)};return Ext.apply(t,e)},getFormPanel:function(e){return this.shareFormPanel||(this.shareFormPanel=new SYNO.SDS.Office.Template.Share.FormPanel(e))},isValid:function(){return!0},isDirty:function(){var e=this.getFormPanel();return e.hasModifiedPerm()||e.isUserGroupUnAdded()},getParams:function(){var e,t={object_id:this.object_id};return e=this.getFormPanel().getModifiedPerm(),Ext.isObject(e)&&Ext.apply(t,e),t},onAction:function(e){var t=this.getFormPanel(),i=t.isUserGroupUnAdded();if(!t.hasModifiedPerm()&&!i)return void this.close();if(i){var n,o=t.getUserGroupUnAdded(),r=!0,a=[];o&&o.forEach(function(e){e&&("group"!==e.data.type&&(r=!1),a.push(e.data.name))},this),this.clearStatusBusy(),n=a.join(", ");var s=String.format((0,SYNO.SDS.Office._T)("share",r?"prompt_addedit_group":"prompt_addedit_user"),n);this.getMsgBox().confirm("",s,function(i){if("yes"===i){if(t.onAddSharePriv(),!t.hasModifiedPerm())return void this.close();e=this.getParams()}else if(!t.hasModifiedPerm())return void this.close();this.onSetPerm(e)},this)}else this.onSetPerm(e)},onSetPerm:function(e){SYNO.SDS.Office.GetWebAPI().shareTemplate({params:e,scope:this,callback:this.onApplyCb})},onApplyDone:function(e,t,i){this.fireEvent("applydone",!0,e,t,i),this.close()},onCancel:function(){var e=this.getFormPanel();if(!e.hasModifiedPerm()&&!e.isUserGroupUnAdded())return void this.close();this.getMsgBox().confirm(this.title,_T("common","confirm_lostchange"),function(e){"yes"===e&&this.close()},this)}}),Ext.define("SYNO.SDS.Office.Template.Button.Source",{extend:"SYNO.ux.Button",constructor:function(e){SYNO.ux.Button.prototype.constructor.call(this,this.fillConfig(e)),SYNO.SDS.Office.GetTplDlg().getAction().listTemplateGroup(),this.onRegEvent()},onRegEvent:function(){var e=SYNO.SDS.Office.GetTplDlg().getEventMgr();this.mon(e,{scope:this,listtplgroupdone:this.onListGroupDone})},fillConfig:function(e){var t={cls:"syno-o-tpl-source-btn syno-d-split-btn",text:SYNO.SDS.Office._T("template","all"),btnStyle:"none",menu:this.source_menu=new SYNO.SDS.Office.Menu({defaults:{checked:!1},items:[{itemId:"all",text:SYNO.SDS.Office._T("template","all")},{itemId:"system",text:SYNO.SDS.Office._T("template","system")},{itemId:"mime",text:SYNO.SDS.Office._T("template","mime")},{itemId:"shared",text:SYNO.SDS.Office._T("template","shared"),menu:this.sharing_menu=new SYNO.SDS.Office.Menu({defaults:{checked:!1},items:[{itemId:"sharing_to_me",text:SYNO.SDS.Office._T("template","sharing_to_me")},{itemId:"sharing_to_internal",text:SYNO.SDS.Office._T("template","sharing_to_internal")},{itemId:"sharing_to_others",text:SYNO.SDS.Office._T("template","sharing_to_others")}],listeners:{scope:this,itemclick:this.onItemClick,beforeshow:this.onBeforeShow}})},"-",{itemId:"deprecated",text:SYNO.SDS.Office._T("template","deprecated")}],listeners:{scope:this,itemclick:this.onItemClick,beforeshow:this.onBeforeShow}})};return Ext.apply(t,e)},onItemClick:function(e){if("Ext.menu.CheckItem"===e.ctype&&"shared"!==e.itemId){if("deprecated"===e.itemId)return void this.setDeprecated(!this.getDeprecated());this.setSource(e.itemId)}},onBeforeShow:function(e){var t=this.getSource(),i=!1;e.items.items.forEach(function(e){if("Ext.menu.CheckItem"===e.ctype){if("deprecated"===e.itemId)return void e.setChecked(this.getDeprecated());i||e.itemId!==t||(i=!0),e.setChecked(e.itemId===t)}},this),i||e!==this.source_menu||this.source_menu.get("shared").setChecked(!0)},getSource:function(){return this.source||"all"},setSource:function(e){if(e&&this.source!==e){this.source=e;var t=this.source_menu.get(e)||this.sharing_menu.get(e);t&&this.setText(t.text),SYNO.SDS.Office.GetTplDlg().getEventMgr().fireEvent("viewstoreupdate")}},getDeprecated:function(){return this.deprecated||!1},setDeprecated:function(e){this.deprecated!==e&&(this.deprecated=e,SYNO.SDS.Office.GetTplDlg().getEventMgr().fireEvent("viewstoreupdate"))},onListGroupDone:function(e,t){if(e&&t.group){var i=this.sharing_menu;this.group&&SYNO.ux.Utils.checkObjectConsistency(this.group,t.group)||(this.group=t.group,i.removeAll(!0),i.add([{itemId:"sharing_to_me",text:SYNO.SDS.Office._T("template","sharing_to_me")}]),Ext.iterate(t.group,function(e){i.add({itemId:e.gid,text:String.format(SYNO.SDS.Office._T("template","sharing_to_group"),e.name)})}),i.add([{itemId:"sharing_to_internal",text:SYNO.SDS.Office._T("template","sharing_to_internal")},{itemId:"sharing_to_others",text:SYNO.SDS.Office._T("template","sharing_to_others")}]))}},getFilter:function(){return{scope:this,fn:function(e){if("@recent@"===e.get("category"))return!0;var t=this.getSource();switch(t){case"all":return!0;case"system":return e.get("system");case"mime":return e.get("owner").uid===SYNO.SDS.Drive.Define.Info.uid;case"shared":return SYNO.SDS.Office.Template.Utils.isShared(e.get("acl"));case"sharing_to_me":return SYNO.SDS.Office.Template.Utils.hasUserAcl(e.get("acl"),SYNO.SDS.Drive.Define.Info.uid);case"sharing_to_internal":return SYNO.SDS.Office.Template.Utils.hasAppAcl(e.get("acl"));case"sharing_to_others":return e.get("owner").uid===SYNO.SDS.Drive.Define.Info.uid&&SYNO.SDS.Office.Template.Utils.isShared(e.get("acl"));default:return SYNO.SDS.Office.Template.Utils.hasGroupAcl(e.get("acl"),t)}}}},getDeprecatedFilter:function(){return{scope:this,fn:function(e){return!!("@recent@"===e.get("category")||this.getDeprecated())||!e.get("deprecated")}}}}),i(27661),Ext.ns("SYNO.SDS.Office.Template"),Ext.define("SYNO.SDS.Office.Template.Dialog",{extend:"SYNO.SDS.ModalWindow",SLIDE_IN_DURATION:.3,SLIDE_OUT_DURATION:.15,SLIDE_BASE_POSITION:"-8%",constructor:function(e){this.currentType=e.defaultType,this.encrypt=e.encrypt||!1,SYNO.SDS.Office.TplDlg=this,this.eventmgr=new SYNO.SDS.Office.Template.EventMgr({appWindow:this}),this.storemgr=new SYNO.SDS.Office.Template.StoreMgr({appWindow:this}),this.addManagedComponent(this.storemgr),this.viewmodemgr=new SYNO.SDS.Office.Template.ViewModeMgr({appWindow:this}),this.addManagedComponent(this.viewmodemgr),this.imagequeue=new SYNO.SDS.Office.ImageLoaderQueue({id:"office_template_task_load_image",appWindow:this}),this.addManagedComponent(this.imagequeue),this.addEvents({beforedestroy:!0}),e.cls="syno-o-tpl-dlg "+(e.cls||""),SYNO.SDS.ModalWindow.prototype.constructor.call(this,this.fillConfig(e)),this.getNavigation().setDefaultCategory()},getEventMgr:function(){return this.eventmgr},getStoreMgr:function(){return this.storemgr},getViewModeMgr:function(){return this.viewmodemgr},getImageQueue:function(){return this.imagequeue},fillConfig:function(e){var t=[this.getTplPanel()],i={xtype:"container",layout:"border",border:!1,resizable:!1,bodyCssClass:"syno-o-tpl-main-body",width:Ext.lib.Dom.getViewWidth(!0),height:Ext.lib.Dom.getViewHeight(!0),tbar:this.getToolbar(),items:t,listeners:{scope:this,single:!0,afterrender:function(e){e.mon(e.owner,"resize",e.onOwnerResize,e),e.setPosition(0,0)}}};return Ext.apply(i,e),i},setTplRecentNum:function(e){this.tpl_num=e},setTplNum:function(e){this.tpl_recent_num=e},onOwnerResize:function(e,t,i){var n=this.tpl_num,o=this.tpl_recent_num;if(this.setSize(t,i),n!==SYNO.SDS.Office.Template.Utils.getTplViewCol()||o!==SYNO.SDS.Office.Template.Utils.getTplRecentViewCol()){var r=this.getPanel();if(r.getView){var a=r.getView();a.trackResetOnLoad=!1,SYNO.SDS.Office.GetTplDlg().getEventMgr().fireEvent("viewstoreupdate"),a.trackResetOnLoad=!0}}},getTplPanel:function(){return this.mainPanel||(this.mainPanel=new SYNO.SDS.Office.Template.MainPanel({region:"center",owner:this})),this.mainPanel},getToolbar:function(){return this.toolbar||(this.toolbar=new Ext.Container({height:80,layout:"border",items:[{region:"center",height:48,xtype:"container",cls:"syno-o-tpl-tbar",layout:"border",items:[this.getBackButton(),this.getFileType(),this.getSearchField()]},{region:"south",cls:"syno-o-tpl-tbar-bottom",height:32,xtype:"container",items:[this.getSourceBtn()]}]}))},getFileType:function(){return this.filetypeCt||(this.filetypeCt=new SYNO.SDS.Office.Template.FileType({region:"center",margins:"0 0 0 140"}))},getBackButton:function(){return this.backButton||(this.backButton=new SYNO.ux.Button({cls:"syno-o-win-back-btn",region:"west",width:56,btnStyle:"grey",scope:this,handler:this.slideOut,tooltip:SYNO.SDS.Office._T("history","back")}))},getSearchField:function(){return this.searchField||(this.searchField=new SYNO.SDS.Office.Template.SearchField({region:"east",owner:this})),this.searchField},getSourceBtn:function(){return this.sourceButton||(this.sourceButton=new SYNO.SDS.Office.Template.Button.Source)},getPanel:function(){return this.getTplPanel().getActivePanel()},getAction:function(){return SYNO.SDS.Office.GetAction()},getNavigation:function(){return this.navigation?this.navigation:this.navigation=new SYNO.SDS.Office.Template.Navigation({appWindow:this})},GetOneSeleted:function(){return this.getPanel().getSelections()[0]},GetSeletions:function(){return this.getPanel().getSelections()},GetSeletionIds:function(){var e=this.getPanel().getSelections(),t=[];return e.forEach(function(e){t.push(e.get("object_id"))}),t},getMenu:function(){return this.action_menu||(this.action_menu=new SYNO.SDS.Office.Template.Menu({appWin:this.findWindow()}),this.addManagedComponent(this.action_menu)),this.action_menu},slideIn:function(){var e=this,t=e.getEl();this.show(),this.setPosition(this.SLIDE_BASE_POSITION,null),this.slideBasePosition=this.getPosition()[0],t.animate({left:{to:0,unit:"px"},opacity:{to:1}},this.SLIDE_IN_DURATION,function(){e.getFileType().setFileType(e.currentType)},"easeNone","run")},slideOut:function(){if(!this.isDestroyed){var e=this;e.getEl().animate({left:{to:this.slideBasePosition,unit:"px"},opacity:{to:0}},this.SLIDE_OUT_DURATION,function(){e.destroy()},"easeNone","run")}},getParams:function(){var e=this.GetOneSeleted();if(e){var t={link_id:e.data.link_id,object_id:e.data.object_id,default_title:e.data.title};return this.encrypt&&Ext.apply(t,{encrypt:this.encrypt}),t}},makeTemplate:function(){SYNO.SDS.Office.GetAction().makeTemplate(this.getParams(),this)}})},76249:function(){Ext.define("SYNO.SDS.Office.Template.EventMgr",{extend:"Ext.util.Observable",constructor:function(e){this.appWindow=e.appWindow,this.listeners=e.listeners,Ext.util.Observable.prototype.constructor.call(this,e)}})},30643:function(){Ext.define("SYNO.SDS.Office.Template.KeyEventHandler",{delayKeyTime:100,initKeyEvent:function(e){this.search_key="",this.mon(this,"afterlayout",function(){this.mon(this.el,"keyup",this.onDetectKeyUp,this),this.mon(this.el,"keydown",this.onDetectKeyDown,this),this.mon(this.el,"keypress",this.onDetectKeyPress,this)},this,{single:!0}),this.mon(this,"beforedestroy",this.unRegKeyEvent,this)},runKeySearchTask:function(){this.runTask("searchKeyTask",this.searchKey,Ext.isNumber(this.delayKeyTime)?this.delayKeyTime:100)},clearKeyword:function(){this.search_key=""},searchKey:function(){var e=this.search_key;this.clearKeyword(),this.searchKeyAndFocus(e,!1)},searchKeyAndFocus:function(e,t){var i="name",n=this.getStore(),o=this.getSelectionModel().getSelected(),r=0,a=-1;return(r=t?n.indexOf(o):n.indexOf(o)+1)>n.getCount()-1&&(r=0),(!((a=n.find(i,e,r,!1,!1))<0)||(0!==r&&(a=n.find(i,e,0,!1,!1)),!(a<0)))&&(this.focusItem(a),!0)},hasKeyModifiers:function(e){for(var t=["shift","ctrl","alt"],i=0,n=t.length;i<n;++i)if(e[t[i]+"Key"])return!0;return!1},onDetectKeyUp:function(e){this.blPressEnter&&(this.blPressEnter=!1)},onDetectKeyDown:function(e){if(e.getKey()===Ext.EventObject.ENTER&&!this.blPressEnter){this.blPressEnter=!0,this.clearKeyword(),this.findWindow().makeTemplate();return}},onDetectKeyPress:function(e){if(!this.isVisible()||this.hasKeyModifiers(e))return void this.clearKeyword();this.search_key=Ext.isString(this.search_key)?this.search_key:"",this.search_key+=String.fromCharCode(e.getCharCode()),this.runKeySearchTask()},unRegKeyEvent:function(){["searchKeyTask","clearKeyTask"].forEach(function(e,t,i){this.removeDelayedTask(e)},this)}})},84471:function(){Ext.define("SYNO.SDS.Office.Template.Define",{statics:{TYPE_ORDER:{doc:1,sheet:2,presentation:3},MODE:{0:"r",1:"n"}}})},30682:function(){Ext.define("SYNO.SDS.Office.Template.Utils",{statics:{isShared:function(e){if(!Ext.isObject(e)||!1===e.enabled)return!1;if("dsm_app"in e&&e.dsm_app&&Ext.isString(e.dsm_app.perm))return!0;if("dsm_user"in e&&Ext.isObject(e.dsm_user)){var t=e.dsm_user;for(var i in t)if(t.hasOwnProperty(i)){var n=t[i];if(Ext.isObject(n)&&Ext.isString(n.perm))return!0}}if("dsm_group"in e&&Ext.isObject(e.dsm_group)){var o=e.dsm_group;for(var r in o)if(o.hasOwnProperty(r)){var a=o[r];if(Ext.isObject(a)&&Ext.isString(a.perm))return!0}}return!1},hasUserAcl:function(e,t){if(!Ext.isObject(e)||!1===e.enabled)return!1;if("dsm_user"in e&&Ext.isObject(e.dsm_user)){var i=e.dsm_user;for(var n in i)if(i.hasOwnProperty(n)){var o=i[n];if(Ext.isObject(o)&&Ext.isString(o.perm)&&o.uid===t)return!0}}return!1},hasGroupAcl:function(e,t){if(!Ext.isObject(e)||!1===e.enabled)return!1;if("dsm_group"in e&&Ext.isObject(e.dsm_group)){var i=e.dsm_group;for(var n in i)if(i.hasOwnProperty(n)){var o=i[n];if(Ext.isObject(o)&&Ext.isString(o.perm)&&o.gid===t)return!0}}return!1},hasAppAcl:function(e){return!!Ext.isObject(e)&&!1!==e.enabled&&!!("dsm_app"in e&&e.dsm_app&&Ext.isString(e.dsm_app.perm))},getCtWidth:function(){return Ext.lib.Dom.getViewWidth(!0)},getTplViewLeft:function(){return Math.floor(this.getCtWidth()-80+36-316*this.getTplViewCol())/2+40},getTplViewCol:function(){var e=Math.floor((this.getCtWidth()-80+36)/316),t=e>5?5:e;return SYNO.SDS.Office.GetTplDlg().setTplNum(t),t},getTplRecentWidth:function(){return Math.floor((this.getCtWidth()-2*this.getTplViewLeft()+22)/this.getTplRecentViewCol())-22},getTplRecentViewCol:function(){var e=Math.floor((this.getCtWidth()-2*this.getTplViewLeft()+22)/250),t=e>6?6:e;return SYNO.SDS.Office.GetTplDlg().setTplRecentNum(t),t},isDeprecatedTemplate:function(e){return e&&e.system&&"presentation"===e.ntype&&-1!==["focus_square","humble_blue","note_paper","simple_life","tangram_collage","triangle_festival","water_party"].indexOf(e.title.split(":")[1])}}})},73756:function(e,t,i){"use strict";i.d(t,{Z:()=>l});var n=i(30947),o=i.n(n),r=i(84901);async function a(e){if(e===(0,r.Uu)())return`webman/3rdparty/Spreadsheet/images/_Asset/${SYNO.SDS.UIFeatures.test("isRetina")?2:1}x/_Common/image_guest_s.png`;let{status:t,data:i,headers:n}=await o().requestWebAPI({api:"SYNO.Personal.Profile.Photo",version:2,method:"get",params:{size:"S",user_id:e},requestMethod:"GET",responseFormat:"blob"});return 200!==t&&304!==t?Promise.reject():!(n["content-type"]||"").includes("application/json")&&URL.createObjectURL(i)}let s=new Map;async function l(e){try{let t=s.get(e);return t||(t=a(e),s.set(e,t)),await t}catch(t){console.warn(t),s.delete(e)}return!1}},63834:function(e,t,i){"use strict";i.d(t,{Xi:()=>l,qt:()=>s});var n=i(63104),o=i(77284),r=i(32867),a=i(61367);function s(e,t){let{successMsg:i=SYNO.SDS.Drive._T("share","copy_url_done"),failedMsg:n=SYNO.SDS.Drive._T("error","copy_share_link"),toastDuration:o=3e3}=void 0===t?{}:t,s=function(e){if(!e.isConnected)return!1;let t=e.ownerDocument.createRange();t.selectNodeContents(e);let i=e.ownerDocument.defaultView?.getSelection();return!!i&&(i.removeAllRanges(),i.addRange(t),e.ownerDocument.execCommand("copy"))}(e);(0,r.o0)(s?i:n,o,!1,null,(0,a.isMobileLayout)()?{offsetY:80}:{})}async function l(){return n.Z.isNativeBridgeAvailable()?d():u()?new Promise((e,t)=>{if(!u())return void t(Error("extension is not installed"));SynoOfficeExtension.getInstance().paste((i,n)=>{i?e(n):t(Error("fail to run paste"))})}):c()}async function c(){let e=!!navigator.clipboard;if(navigator.permissions&&e)try{let t=await navigator.permissions.query({name:"clipboard-read"});e=["granted","prompt"].includes(t.state)}catch{}if(e){let e=await navigator.clipboard.read();return await h.fromNative(e)}return Promise.reject(Error("async clipboard not available"))}async function d(){let e=await n.Z.getInstance().readClipboard();return h.fromJSON(e)}function u(){return"object"==typeof SynoOfficeExtension}class h{constructor(){this.innerFiles=[],this.innerData=Object.create(null),this.innerTypes=void 0}get files(){return this.innerFiles}get types(){return this.innerTypes??=Object.keys(this.innerData)}getData(e){return this.innerData[e]||""}static async fromNative(e){let t=new h;return await t.readNativeItems(e),t}static fromJSON(e){let t=new h;return t.readJSONItems(e),t}async readNativeItems(e){for(let t of e)for(let e of t.types)if(e.startsWith("text/")||e.startsWith("application/")){let i=await t.getType(e);this.innerData[e]=await i.text()}else if(e.startsWith("image/")){let i=await t.getType(e);this.innerFiles.push(new File([i],"pasted",{type:e}))}}readJSONItems(e){for(let t of e)for(let[e,i]of Object.entries(t))if(e.startsWith("text/"))this.innerData[e]=i;else if(e.startsWith("image/"))for(let t of Array.isArray(i)?i:[i]){let i=(0,o.P)(atob(t),e);this.innerFiles.push(new File([i],"pasted",{type:e}))}}}},54736:function(e,t,i){"use strict";function n(e){return Math.round(255*e).toString(16).padStart(2,"0")}function o(e){return parseInt(e,16)/255}i.d(t,{C:()=>n,p:()=>o})},18907:function(e,t,i){"use strict";function n(){this.hasFocus&&(this.store.getCount()>0||this.listEmptyText?(this.expand(),this.restrictHeight(),this.lastQuery===this.allQuery?!1===this.autoSelect||this.selectByValue(this.value,!0)||this.select(0,!0):(!1!==this.autoSelect&&this.selectNext(),this.typeAhead&&this.lastKey!==Ext.EventObject.BACKSPACE&&this.lastKey!==Ext.EventObject.DELETE&&this.taTask.delay(this.typeAheadDelay))):this.collapse())}function o(){Ext.form.ComboBox.prototype.onViewClick.call(this,!1)}i.d(t,{d:()=>n,s:()=>o})},73032:function(){Ext.define("SYNO.SDS.Office.Define",{singleton:!0,SystemUID:1,ToolbarDefault:{text_color:"ff0000",bg_color:"fff001",font_family:"Arial"},ImageExt:["jpg","jpeg","jpe","gif","bmp","png","tif","tiff","svg","wmf","emf"],VideoExt:["3gp","mpg","mpeg","mp4","m4v","ogv","mov","webm"]}),SYNO.SDS.Office.Define.Info={}},77284:function(e,t,i){"use strict";function n(e,t){let i=new ArrayBuffer(e.length),n=new Uint8Array(i);for(let t=0;t<e.length;t++)n[t]=e.charCodeAt(t);return new Blob([i],{type:t})}i.d(t,{P:()=>n})},25736:function(){Ext.define("SYNO.SDS.Office.ImageLoaderQueue",{extend:"Ext.Component",maxImageRequest:12,constructor:function(e){this.count=0,this.id=e.id||"office_task_load_image",this.queue=[],this.appWindow=e.appWindow,Ext.Component.prototype.constructor.apply(this,arguments),this.imageloader=SYNO.SDS.Office.GetWindow().getImageLoader()},getTask:function(){return this.actionTask=this.actionTask||this.addTask({id:this.id,single:!0,run:this.loadImage,scope:this}),this.actionTask},findIndexOf:function(e){var t=0;for(t=0;t<this.queue.length;t++)if(this.queue[t].id===e)return t;return -1},addImage:function(e){var t=this.getTask();e.id&&-1!==this.findIndexOf(e.id)||(this.queue.push(e),!1===t.running&&t.restart(!0))},removeImage:function(e){if(0!==this.queue.length){var t=this.findIndexOf(e.id);-1!==t&&(this.queue.splice(t,1),0===this.queue.length&&this.getTask().stop())}},removeAll:function(){this.count=0,this.queue=[],this.getTask().stop()},loadImage:function(){if(this.queue&&0!==this.queue.length&&!(this.count>=this.maxImageRequest)){var e,t=0,i=Math.min(this.maxImageRequest-this.count,this.queue.length),n=this.nextQueue.bind(this),o=this.queue.splice(0,i);for(this.count+=i,t=0;t<i;t++)try{if((e=o[t]).getDom)r=e.getDom();else{if(!e.id)continue;var r,a=Ext.fly(e.id);if(!a||!a.dom)continue;r=a.dom}var s=e.url;if(e.isSvg)this.onSvgLoad(s,e,r);else{e.setDom?e.setDom(r,s):r.src=s;var l=n,c=n,d=e.listeners;d&&(d.load&&(l=Ext.createSequence(n,d.load)),d.error&&(c=Ext.createSequence(n,d.error))),this.imageloader.loadImg(r,Ext.apply(e.listeners||{},{load:l,error:c}))}}catch(e){SYNO.Debug.error(e)}0===this.queue.length&&this.getTask().stop()}},nextQueue:function(){0!==this.count&&(--this.count,this.loadImage())},onSvgLoad:function(e,t,i){fetch(e).then(e=>{if(!e.ok)throw e;return e.text().then(e=>{t.listeners.load(i,!0,e)})}).catch(e=>{t.listeners.error(i)}).finally(()=>{this.nextQueue()})},stop:function(){this.getTask().stop()},destroy:function(){this.queue=null,this.actionTask&&(this.actionTask=null),Ext.Component.prototype.destroy.apply(this,arguments)}})},13420:function(e,t,i){"use strict";i.d(t,{Dc:()=>o.Dc,G9:()=>o.G9,GI:()=>n.GI,M5:()=>n.M5,Md:()=>o.Md,mn:()=>o.mn,o0:()=>o.o0,vQ:()=>o.vQ});var n=i(27107),o=i(32867)},40109:function(e,t,i){"use strict";i.d(t,{YF:()=>s,c5:()=>l,gR:()=>o,s6:()=>a});var n=i(32334);function o(e,t){e instanceof Ext.util.MixedCollection&&(e=e.items);var i=new Set,n=new Set,o=SYNO.SDS.Office.Env;SYNO.SDS.Drive.Utils.isAppAuthorized()||e.forEach(function(e){switch(e.itemId){case"export":case"print":case"page_setup":break;default:i.add(e.itemId)}}),SYNO.SDS.Office.Utils.isOffline()&&e.forEach(function(e){n.add(e.itemId)}),o.recycle&&e.forEach(function(e){switch(e.itemId){case"new_file":case"new_encrypted_file":case"recent_accessed_file":break;default:n.add(e.itemId)}});var r,a,s,l,c,d,u=o.capabilities;SYNO.SDS.Office.Utils.isOpenImportFile()||SYNO.SDS.Office.Utils.isTemplateReadOnlyMode()||!u||(r=u.can_read,a=u.can_write,s=u.can_share,l=u.can_delete,c=u.can_encrypt,d=u.can_rename),o.is_template?(SYNO.SDS.Office.Utils.isTemplateReadOnlyMode()&&!SYNO.SDS.Office.Utils.isPermReadOnly()&&(s=!0),s&&(s=SYNO.SDS.Office.Utils.checkSharePrivilge(!0,o,!0,t))):s&&(s=SYNO.SDS.Office.Utils.checkSharePrivilge(!1,o,!0,t)),e.forEach(function(e){switch(e.itemId){case"rename":d||i.add(e.itemId);break;case"move_to":case"remove":l||i.add(e.itemId);break;case"encrypt":c||i.add(e.itemId);break;case"share":s||i.add(e.itemId);break;case"view_history":case"version_history":case"spreadsheet_settings":a||(t?n.add(e.itemId):i.add(e.itemId));break;case"leave":o.is_template?SYNO.SDS.Office.Template.Utils.hasUserAcl(o.acl,SYNO.SDS.Office.Define.Info.uid)||i.add(e.itemId):SYNO.SDS.Drive.Utils.hasUserShared(o.shared_with,_S("user"))||i.add(e.itemId);break;case"page_setup":case"save":a||i.add(e.itemId);break;case"publish_template":o.is_template&&a||i.add(e.itemId);break;case"copy_to":r||i.add(e.itemId);break;case"save_template":r&&SYNO.SDS.Office.Utils.isDownloadable()||i.add(e.itemId);break;case"export":case"print":(SYNO.SDS.Office.Utils.isPreviewOnly()||!SYNO.SDS.Office.Utils.isDownloadable())&&i.add(e.itemId)}}),"view"===SYNO.SDS.Office.GetWindow().getEditorMode()&&e.forEach(function(e){switch(e.itemId){case"save":case"save_template":case"publish_template":case"spreadsheet_settings":case"page_setup":case"information":case"view_history":case"version_history":n.add(e.itemId)}}),SYNO.SDS.Office.Utils.is1stSharedWithMe(o.display_path)&&e.forEach(function(e){switch(e.itemId){case"encrypt":case"move_to":case"remove":i.add(e.itemId)}}),o.isOfficeOwned&&e.forEach(function(e){switch(e.itemId){case"recent_accessed_file":case"rename":case"save":case"save_template":case"publish_template":case"move_to":case"copy_to":case"remove":case"leave":case"tag":case"share":case"get_file_link":case"view_history":case"version_history":case"encrypt":case"spreadsheet_settings":case"information":case"page_setup":i.add(e.itemId)}}),o.is_template&&e.forEach(function(e){switch(e.itemId){case"rename":case"save_template":case"move_to":case"copy_to":case"tag":case"encrypt":case"information":case"get_file_link":i.add(e.itemId)}}),SYNO.SDS.Office.Utils.isDriveAdvSharing()&&e.forEach(function(e){switch(e.itemId){case"new_file":case"new_encrypted_file":case"recent_accessed_file":case"copy_to":case"move_to":case"remove":case"tag":i.add(e.itemId)}}),SYNO.SDS.Office.Utils.isIgnoreVersion()&&e.forEach(function(e){switch(e.itemId){case"save":case"save_template":case"publish_template":case"view_history":case"version_history":case"export":case"encrypt":case"page_setup":n.add(e.itemId)}}),SYNO.SDS.Drive.Define.Info.settingready||e.forEach(function(e){switch(e.itemId){case"share":case"get_file_link":n.add(e.itemId)}}),e.forEach(function(e){var t=e.itemId;i.has(t)?e.hidden||e.hide():e.hidden&&e.show(),n.has(t)?e.disabled||e.disable():e.disabled&&e.enable()}),SYNO.SDS.Drive.MenuUtils.onShowHideMenu(e)}function r(e){var t="hotkey",i={Arrow:(0,n.$)(t,"arrow_key"),Space:(0,n.$)(t,"space_key"),Drag:(0,n.$)(t,"mouse_drag"),Resize:(0,n.$)(t,"mouse_resize"),Rotate:(0,n.$)(t,"mouse_rotate")};Ext.isMac&&Ext.apply(i,{Ctrl:"⌘",Alt:"⌥",Shift:"⇧",Home:["Fn","←"],End:["Fn","→"],"Page Up":["Fn","↑"],"Page Down":["Fn","↓"]});var o=i[e]||e;return Array.isArray(o)?o:[o]}function a(e,t){(t=t.getEl().child(".x-menu-item").addClass("syno-o-menutip-item")).child(".x-menu-item-text").addClass("syno-o-menutip-text"),t.createChild({tag:"span",cls:"syno-o-menutip-pad"}),t.createChild({tag:"span",...e})}function s(e,t){var i,o,s,l;e?a({html:(i=Array.isArray(i=e)?i:[i],o=Ext.isMac?"":"+",s=" "+(0,n.$)("hotkey","or")+" ",i.map(function(e){var t=[];function i(i){-1!==e.indexOf(i+"+")&&(t.push.apply(t,r(i)),e=e.replace(i+"+",""))}return Ext.isMac?["Shift","Alt","Ctrl"].forEach(i):["Ctrl","Alt","Shift"].forEach(i),t.push.apply(t,r(e)),t.join(o)}).join(s)),cls:"syno-o-menutip-tip"},t):(l=!t.newFeature||t.menu,a({tag:"div",html:(0,n.$)("common","new_feature"),cls:l?"syno-o-menutip-padding":"syno-o-menutip-new-feature"},t))}function l(){return Ext.isSafari?"Ctrl+Alt+Shift+V":"Ctrl+Shift+V"}},98966:function(e,t,i){"use strict";function n(){return[,,,,].fill(0).map(()=>Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16)).join("-")}i.d(t,{D:()=>n})},27107:function(e,t,i){"use strict";i.d(t,{GI:()=>l,M5:()=>u,jE:()=>s,mr:()=>c,o1:()=>d,oR:()=>h});let n=[{value:"#000000",light:0},{value:"#980000",light:0},{value:"#ff0000",light:0},{value:"#ff9000",light:0},{value:"#fff001",light:1},{value:"#1ee20f",light:0},{value:"#0078ff",light:0},{value:"#4a86e8",light:0},{value:"#643ddb",light:0},{value:"#d30e91",light:0},{value:"#2e3133",light:0},{value:"#5b0f00",light:0},{value:"#a62929",light:0},{value:"#b35900",light:0},{value:"#7f6000",light:0},{value:"#00802b",light:0},{value:"#115ba6",light:0},{value:"#1c4587",light:0},{value:"#543d99",light:0},{value:"#8c2a6c",light:0},{value:"#64696e",light:0},{value:"#85200c",light:0},{value:"#e04343",light:0},{value:"#e67300",light:0},{value:"#bf9000",light:0},{value:"#009933",light:0},{value:"#1470cc",light:0},{value:"#1155cc",light:0},{value:"#7052cc",light:0},{value:"#cc3d9c",light:0},{value:"#7b8187",light:0},{value:"#a61c00",light:0},{value:"#ed4747",light:0},{value:"#fa7d00",light:0},{value:"#f1c232",light:0},{value:"#00b23b",light:0},{value:"#177ee5",light:0},{value:"#4176cc",light:0},{value:"#7e5ce5",light:0},{value:"#e545b0",light:0},{value:"#d0d4d9",light:1},{value:"#cc4125",light:0},{value:"#fa8282",light:0},{value:"#fa9c3e",light:0},{value:"#ffd966",light:1},{value:"#4dbf73",light:0},{value:"#499df2",light:0},{value:"#6399f7",light:0},{value:"#a18ae6",light:0},{value:"#e67ec3",light:0},{value:"#e6ebf0",light:1},{value:"#dd7e6b",light:0},{value:"#ffb2b2",light:0},{value:"#ffb973",light:0},{value:"#ffe599",light:1},{value:"#70e096",light:0},{value:"#99ceff",light:0},{value:"#94b9f7",light:0},{value:"#cebfff",light:0},{value:"#ffa6e0",light:0},{value:"#ffffff",light:1},{value:"#e6b8af",light:1},{value:"#ffcccc",light:1},{value:"#ffd9b2",light:1},{value:"#fff2cc",light:1},{value:"#c4f5d4",light:1},{value:"#cce6ff",light:1},{value:"#c9daf8",light:1},{value:"#e2d9ff",light:1},{value:"#ffd9f2",light:1}],o=["#94BF13","#4CBF73","#1DBFBF","#24BFF2","#3D82D1","#FA9C3E","#A18AE5","#FA8282"],r=new Set,a=[];function s(){return SYNO.SDS.Drive.Define.ColorSelf}function l(){return n}function c(){return o[Math.floor(Math.random()*o.length)]}function d(e){let t;return o[(e.length>0?e.charCodeAt(0):0)%o.length]}function u(){return a}function h(e){for(let t of"string"==typeof e?[e]:e){let e=function(e){if("transparent"===e)return null;let t=e.startsWith("#")?e.slice(1):e;return(6===t.length||8===t.length)&&/^[0-9a-fA-F]+$/.test(t)?"#"+t.slice(0,6).toLowerCase():null}(t);!e||r.has(e)||(r.add(e),a.push(e))}}},32867:function(e,t,i){"use strict";i.d(t,{Dc:()=>l,G9:()=>c,JL:()=>g,Md:()=>h,ZQ:()=>p,mn:()=>f,o0:()=>u,vQ:()=>d}),i(59014),i(73032);var n=i(32334),o=i(71783),r=i(61431),a=i(77284),s=i(61367);function l(){if(!function(){let e=document.activeElement;for(;e&&"IFRAME"===e.tagName;)e=e.contentDocument?.activeElement??null;return!!e&&(e.isContentEditable||["INPUT","TEXTAREA"].includes(e.tagName))&&"none"!==e.inputMode}())return!1;let e=window.visualViewport.height*window.visualViewport.scale;return Ext.isSafari?e<.85*document.documentElement.clientHeight:e<window.screen.height-200}function c(e,t){if(!e?.footer)return;let i=e.getWidth(),n=e.getHeight();e.footer.setDisplayed(t),e.onResize(i,n,i,n)}function d(e,t){let{successMsg:i=SYNO.SDS.Drive._T("share","copy_url_done"),failedMsg:n=SYNO.SDS.Drive._T("error","copy_share_link"),toastDuration:o=3e3}=void 0===t?{}:t;if(""===e)return;let r=document.body,a=document.createElement("textarea");a.inputMode="none",r.appendChild(a),a.value=e,a.select();let l=document.execCommand("copy");r.removeChild(a);let c="";""!==(c=l?i??"":n??"")&&u(c,o,!1,null,(0,s.isMobileLayout)()?{offsetY:80}:{})}function u(e,t,i,n,o){o=Object.assign({offsetX:0,offsetY:10,delay:t||1500},o);let r=SYNO.SDS.Office.GetWindow(),a=SYNO.SDS.Drive.Utils.getToastBox(e,i||!1,n,o,r);return a.show(),a}function h(){return SYNO.SDS.Config.FnMap[_S("standaloneAppName")].config.version??String(Date.now())}function p(e){let t=document.querySelector(String.format('script[src*="{0}"]',e));return t?t.getAttribute("src"):""}function f(){var e=SYNO.SDS.Office.Env.link_id,t=SYNO.SDS.Drive.Define.Info.ds_id,i="https:"===location.protocol,n=_S("user"),o=location.hash.substr(1)||null,r="#";SYNO.SDS.Drive.Utils.isLogined()||(n=void 0);var a=location.host;function l(e,t){var i=[];return Object.keys(e).forEach(function(t){var n=e[t];null!=n&&i.push(t+"="+encodeURIComponent(n))}),i.join(t||"&")}var c,d=SYNO.SDS.Drive.Sharing.GetSharingToken();return(0,s.isIOSFamily)()?(c={scheme:"synodrive",permanent_link:e,ds_id:t,host:a,https:i,account:n,origin_uri:location.href,hash:o},d&&(c.sharing_token=d),r="https://driveupdate.synology.com?"+l(c)):(0,s.isAndroid)()&&(c={"S.permanent_link":e,"S.ds_id":t,"S.host":a,"B.https":i,"S.account":n,"S.origin_uri":location.href,"S.hash":o},d&&(c["S.sharing_token"]=d),r="intent://open/#Intent;scheme=synodrive;package=com.synology.dsdrive;"+l(c,";")+";end"),r}function g(){SYNO.SDS.Office.GetWindow().getMsgBox().alert("",(0,n.$)("error","packet_too_large"),()=>{window.onbeforeunload=null,location.reload()})}Ext.ns("SYNO.SDS.Office"),SYNO.SDS.Office._T=n.$,Ext.define("SYNO.SDS.Office.Utils",{statics:{isSupportImage:function(e){var t,i=SYNO.SDS.Office.Define.ImageExt;return!!Ext.isString(e)&&(t=e.split(".").pop(),!Ext.isEmpty(t)&&-1!==i.indexOf(t.toLowerCase()))},getErrorCode:function(e){(0,o.zg)(e)},initErrorStr:function(){(0,o.yj)()},getErrorStr:function(e){return(0,o.v2)(e)},showErrorMsg:function(e,t,i){this.showAlertMsg(e,(0,o.v2)(t),i)},showAlertMsg:function(e,t,i){if((0,r.z)(e))return e.showMsgBox("alert","",t,i,!1);var n=e.getMsgBox();if(!Ext.isEmpty(n))return n.alert("",t,i)},isDriveAdvSharing:function(){return!!(SYNO.SDS.Drive.Sharing&&SYNO.SDS.Drive.Sharing.GetSharingLink())},isViewerMode:function(){return this.isOpenImportFile()||this.isTemplateReadOnlyMode()||this.isIgnoreVersion()},isPublicShareOrImportView:function(){return this.isDriveAdvSharing()||this.isOpenImportFile()},isOffline:function(){return SYNO.SDS.Office.GetWindow().isOffline()},getEditorMode:function(){return this.isEditable(!0)?SYNO.SDS.Office.GetWindow().getEditorMode():this.isCommentable(!0)?"comment":"readonly"},getPermissionRole:function(e){switch(void 0===e&&(e=this.getEditorMode()),e){case"edit":default:return"editor";case"comment":return this.isReadable()?"commenter":"reviewer";case"readonly":case"view":return this.isReadable()?"viewer":"previewer"}},isPermReadOnly:function(){if(this.isOffline())return!0;var e=SYNO.SDS.Office.Env.perm;return SYNO.SDS.Office.Env.is_template?!!this.isSystemTemplate()||"rw"!==e&&"owner"!==e:SYNO.SDS.Office.Env.recycle||"rw"!==e},isReadOnly:function(){return!!this.isViewerMode()||this.isPermReadOnly()},isPreviewOnly:function(){var e=SYNO.SDS.Office.Env.capabilities;return e.can_preview&&!e.can_read},isEditable:function(e){return!this.isReadOnly()&&(e||"edit"===SYNO.SDS.Office.GetWindow().getEditorMode())},isCommentable:function(e){return!(this.isViewerMode()||SYNO.SDS.Office.Env.recycle||this.isOffline())&&SYNO.SDS.Office.Env.capabilities.can_comment&&(e||"edit"===SYNO.SDS.Office.GetWindow().getEditorMode())},isReadable:function(){return SYNO.SDS.Office.Env.capabilities.can_read},isDownloadable:function(){return!!SYNO.SDS.Office.Env.is_template||SYNO.SDS.Office.Env.capabilities.can_download},isTranslatable:function(){return SYNO.SDS.Drive.Utils.isAppAuthorized()&&!SYNO.SDS.Office.Utils.isViewerMode()&&!SYNO.SDS.Office.Utils.isDriveAdvSharing()&&!SYNO.SDS.Office.Env.is_template},isTemplateReadOnlyMode:function(){return!!SYNO.SDS.Office.Env.is_template&&"edit"!==SYNO.SDS.Office.Env.mode},isSystemTemplate:function(){return SYNO.SDS.Office.Env.is_template&&SYNO.SDS.Office.Define.SystemUID===this.getUidByObjectId(SYNO.SDS.Office.Env.objectId)},isOpenImportFile:function(){if(this.isDrivePage())return!1;if(SYNO.SDS.Office.Env.isOfficeOwned)return!0;var e=EarlyInit.getAction();return e&&"requestImportNode"===e.getFnName()},isIgnoreVersion:function(){return!this.isDrivePage()&&!0===SYNO.SDS.Office.Env.ignore_version},isWindow:function(e){return"object"==typeof e&&e.self===e},setEncryptPassword:function(e,t,i){t&&((i=i||SYNO.SDS.Office.GetWindow()).enc_pwd||(i.enc_pwd={}),i.enc_pwd[e]={password:t})},getEncryptPassword:function(e){var t=SYNO.SDS.Office.GetWindow();return(t.enc_pwd||(t.enc_pwd={}),Ext.isEmpty(t.enc_pwd[e]))?null:t.enc_pwd[e].password},canvasToDataURI:function(e,t){Ext.isObject(t)&&t.background&&this._canvasFillBackground(e);try{return e.toDataURL("image/png")}catch{}},canvasToPng:function(e,t){Ext.isObject(t)&&t.background&&this._canvasFillBackground(e);var i=this;return new Promise(function(t,n){e.toBlob?e.toBlob(t,"image/png"):t(e.msToBlob?e.msToBlob():i.dataURItoBlob(e.toDataURL("image/png")))}).catch(function(){return null})},dataURItoBlob:function(e){var t,i,n,o,r;return(t=e.match(/^data:((.*?)(;charset=.*?)?)(;base64)?,/))?(i=t[2]?t[1]:"text/plain"+(t[3]||";charset=utf-8"),n=!!t[4],o=e.slice(t[0].length),r=n?atob(o):decodeURIComponent(o),(0,a.P)(r,i)):void SYNO.Debug.error("invalid data URI",e)},saveObjectURL:function(e,t,i){var n=new XMLHttpRequest;n.onload=function(e){t.call(i,this,e)},n.open("GET",e,!0),n.responseType="blob",n.send()},UrlToPng:function(e,t,i,n){Ext.isObject(t)&&(o=t.size);var o,r=document.createElement("canvas"),a=new Image;a.src=e,a.setAttribute("crossOrigin","anonymous"),a.onload=(function(){var e=o&&o.width,s=o&&o.height;e||s?e?s||(s=e/a.width*a.height):e=s/a.height*a.width:(e=a.width,s=a.height),r.width=e,r.height=s,r.getContext("2d").drawImage(a,0,0,e,s),this.canvasToPng(r,t).then(function(e){r=null,i.call(n,e,!0)})}).bind(this),a.onerror=function(){r=null,i.call(n,null,!1)}},_canvasFillBackground:function(e){var t=e.getContext("2d");t.globalCompositeOperation="destination-over",t.fillStyle="#FFF",t.fillRect(0,0,e.width,e.height)},isQuickconnect:function(){if(Ext.isDefined(this.blQuickconnect))return this.blQuickconnect;var e=location.hostname.toLowerCase();return this.blQuickconnect=e.endsWith(".quickconnect.to")||e.endsWith(".quickconnect.cn")},isQuickconnectDirect:function(){var e=location.hostname.toLowerCase();return e.endsWith(".direct.quickconnect.to")||e.endsWith(".direct.quickconnect.cn")},getClassNameFromNType:function(e){switch(e){case"sheet":return"SYNO.SDS.Office.Sheet.Application";case"doc":return"SYNO.SDS.Office.Doc.Application";case"presentation":return"SYNO.SDS.Office.Presentation.Application"}},getClassNameFromObjectId:function(e){return this.getClassNameFromNType(this.getNTypeByObjectId(e))},is1stSharedWithMe:function(e){if(!e)return!1;var t=e.split("/",4);return 3===t.length&&"shared-with-me"===t[1]},registerInitEvent:function(e,t,i){SYNO.SDS.Office.Define.Info.init?e.defer(i||80,t):SYNO.SDS.Office.GetWindow().getEventMgr().on("init:done",e,t,{buffer:i||80,single:!0})},getInitEventPromise:function(){return new Promise(function(e,t){SYNO.SDS.Office.Utils.registerInitEvent(e)})},getCurFolderPriv:function(){var e=SYNO.SDS.Drive.GetWindow().getNavigation();return"node"!==e.getCategory()&&e.isRootPath()?{}:e.getLastPath().perm},getAccount1stName:function(e){e=e||"";try{if(window.Intl)return SYNO.SDS.Office.Utils.Segmenter||(SYNO.SDS.Office.Utils.Segmenter=new window.Intl.Segmenter),Array.from(SYNO.SDS.Office.Utils.Segmenter.segment(e))[0].segment.toUpperCase()}catch{}return e.charAt(0).toUpperCase()},isTemplateObjectId:function(e){return e&&0<e.indexOf(".tpl.")},isOfficeOwnerObjectId:function(e){return e&&0<e.indexOf(".synoffice.")},getNTypeByObjectId:function(e){var t=e.match(/\.[a-z]*$/g);if(t){var i=t[0].substring(1);switch(i){case"sh":return"sheet";case"slide":return"presentation";case"doc":return"doc";default:return i}}},getNTypeByFileName:function(e){return SYNO.SDS.Office.File.getNTypeByFileName(e)},getUidByObjectId:function(e){return parseInt(e.split("_",1)[0],10)},parseDisplayName:function(e){return!this.isDrivePage()&&SYNO.SDS.Office.Env.is_template&&SYNO.SDS.Office.Env.objectId?this.isSystemTemplate()?this.parseTemplateTitle(e):e:SYNO.SDS.Drive.Utils.parseDisplayName(e)},isDrivePage:function(){var e=_S("standaloneAppName");return"SYNO.SDS.Drive.Application"===e||"SYNO.SDS.Drive.PublicApplication"===e},isOfficePage:function(){var e=_S("standaloneAppName");return e&&"Office"===e.split(".")[2]},callOnEditorReady:function(e,t){this._pollWindowStatus(e,t)},checkSharePrivilge:function(e,t,i,n){if(!i)return!1;var o=SYNO.SDS.Drive.Define.Info||{};if(e){if(!n&&SYNO.SDS.Office.Template.Utils.isShared(t.acl))return!0;if(!o.sharing_permission||!o.sharing_permission.internal_link_sharing&&!o.sharing_permission.invite_sharing)return!1}else{if(!n&&SYNO.SDS.Drive.Utils.checkSharePrivilge(t,i))return!0;if(o.disabled_all_sharing)return!1}return!0},_pollWindowStatus:function(e,t){var i={run:function(){try{if(e.closed)return void Ext.TaskMgr.stop(i)}catch{Ext.TaskMgr.stop(i);return}e.SYNO&&e.SYNO.SDS&&e.SYNO.SDS.Office&&e.SYNO.SDS.Office.Window&&e.SYNO.SDS.Office.Window.rendered&&(Ext.TaskMgr.stop(i),t(e.SYNO.SDS.Office.Window))},interval:200};Ext.TaskMgr.start(i)},getParentDir:function(e){if(e){var t,i=e.split("/");if(e!==i[0]){switch("/"===e.charAt(0)&&i.splice(0,1),i[0]){case"recycle-bin":return;case"mydrive":t=1;break;case"shared-with-me":t=3;break;default:t=2}if(!(i.length<t))return i.splice(-1,1),"/"+i.join("/")}}},isSameParent:function(e,t,i){return"/"===i.charAt(0)?t===i:e===SYNO.SDS.Drive.Utils.getFileIdFromPathId(i)},openDrive:function(e,t){var i,n,o=e.category,r=e.file_id,a=new SYNO.SDS.WindowLauncher({className:"SYNO.SDS.Drive.Application",url:SYNO.SDS.Office.WindowHelper.getStandaloneLaunchURL("SYNO.SDS.Drive.Application"),type:"standalone"});i=a.getLaunchURL(),o?n={category:o}:r&&(n={file_id:r}),n&&(i+="#"+Ext.urlEncode(n)),!Ext.isBoolean(t)||t?a.openNewWindow(void 0,i):window.location=i},removeLoadingPage:function(){var e=document.getElementById("o-loading-page");e&&e.remove()},hasLoadingPage:function(){return!!document.getElementById("o-loading-page")},parseTemplateTitle:function(e){var t=e.split(":");return e=SYNO.SDS.UIString.GetLocalizedString(t.slice(0,2).join(":"),"SYNO.SDS.Office.AppInstance"),t.length>2&&(e=String.format.apply(String,[e].concat(t.slice(2)))),e},getAppURL:function(){let e=SYNO.SDS.Office.WindowHelper.getBaseAppPath()+"/",t={launchApp:SYNO.SDS.Session.standaloneAppName},i={};SYNO.SDS.Office.Env.link_id?i.link=SYNO.SDS.Office.Env.link_id:window.getDriveLink&&(i.link=window.getDriveLink());let n=SYNO.SDS.Drive.Sharing.GetSharingLink();return n&&(i.sharing_link=n),Object.keys(i).length&&(t=Ext.apply(t,{launchParam:Ext.urlEncode(i)})),SYNO.SDS.JSDebug&&(t=Ext.apply(t,{jsDebug:SYNO.SDS.JSDebug})),Ext.urlAppend(e,Ext.urlEncode(t),!1)+window.location.hash||""},getSnapshotVersion:function(){if(SYNO.SDS.Office.Utils.isViewerMode()){if(SYNO.SDS.Office.Utils.isIgnoreVersion())return"ignore_version";else if(SYNO.SDS.Office.Env.is_template)return"publish_version"}},isWithPureCtrlKey:function(e){let t=e instanceof Ext.EventObjectImpl?e.browserEvent:e;return(Ext.isMac?t.metaKey:t.ctrlKey)&&!e.shiftKey&&!e.altKey},downloadFile:function(e,t,i){let n=new Blob([e],{type:i||"application/octet-stream"}),o=window.URL.createObjectURL(n),r=document.createElement("a");r.style.display="none",r.href=o,r.download=t,document.body.appendChild(r),r.click(),document.body.removeChild(r),setTimeout(()=>{window.URL.revokeObjectURL(o)},100)},closeDSMSocketIO:function(){var e=SYNO.SDS.SocketInst&&SYNO.SDS.SocketInst._socket;e&&(e.on("connect",e.disconnect.bind(e)),e.disconnect())},focusEditor:function(){let e=SYNO.SDS.WindowMgr.getActive();if(!e||e instanceof SYNO.SDS.Office.FindReplace)return void SYNO.SDS.Office.GetWindow().fireEvent("focuseditor");(e instanceof SYNO.SDS.Office.BaseWindow||e instanceof SYNO.SDS.Office.History.Window)&&e.fireEvent("focuseditor")},showHelp:function(){var e,t="SYNO.SDS.Office.AppInstance",i=SYNO.SDS.Office.GetWindow().getHelpParam();Ext.isString(i)&&i.length>0&&(t+=":"+i),SYNO.SDS.Drive.Utils.openURL((e=t,SYNO.SDS.Office.WindowHelper.getStandaloneLaunchURL("SYNO.SDS.HelpBrowser.Application",e?{launchParam:"topic="+e}:null)),null,!0)}}}),SYNO.SDS.Office.GetWindow=function(){return SYNO.SDS.Office.Window||(SYNO.SDS.Office.Window=SYNO.SDS.AppMgr.getByAppName(_S("standaloneAppName"))[0].window),SYNO.SDS.Office.Window||SYNO.SDS.Drive.GetWindow()},SYNO.SDS.Office.GetAction=function(){return SYNO.SDS.Office.Drive&&SYNO.SDS.Office.Drive.getAction?SYNO.SDS.Office.Drive.getAction():SYNO.SDS.Office.GetWindow().getAction()},SYNO.SDS.Office.GetWebAPI=function(){return SYNO.SDS.Office.GetAction().webapi},SYNO.SDS.Office.GetTplDlg=function(){return(!SYNO.SDS.Office.TplDlg||SYNO.SDS.Office.TplDlg.isDestroyed)&&(SYNO.SDS.Office.TplDlg=SYNO.SDS.Office.GetWindow().modalWin[0]),SYNO.SDS.Office.TplDlg},Ext.define("SYNO.SDS.Office.UserSettings",{statics:{init:function(){return this.initPromise?this.initPromise:SYNO.SDS.initUserSettings?this.initPromise=Promise.resolve():this.initPromise=new Promise(function(e){SYNO.API.Request({api:"SYNO.Core.UserSettings",method:"get",version:1,callback:function(t,i){t&&(SYNO.SDS.UserSettings.data=i,e())}})})},get:function(e){return _S("isLogined")?this.init().then(function(){return SYNO.SDS.UserSettings.getProperty(_S("standaloneAppName"),e)}):Promise.resolve()},set:function(e,t){if(_S("isLogined"))return SYNO.SDS.UserSettings.setProperty(_S("standaloneAppName"),e,t)}}})},81681:function(e,t,i){"use strict";i.d(t,{WV:()=>C,Od:()=>x,j7:()=>c,Pe:()=>u,lR:()=>w});var n=i(63447),o=i(31842);i(13420);let r={methods:{mon(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];return this.$mon(...t)},mun(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];return this.$mun(...t)}}};var a=i(98272);let s={methods:{findAncestor(e){return(0,a.Pc)(this,e)}}},l={...o.Z.props,isOpen:{type:Boolean,default:!1},emitEventOnly:{type:Boolean,default:!0}},c={mixins:[r,s],props:l,methods:{menuProps(){return Object.assign(Object.keys(l).reduce((e,t)=>(e[t]=this[t],e),Object.create(null)),this.$attrs)},getMenuInstance(){return this.$refs.menu.getMenuInstance()},getSelectedIndex(){return this.getMenuInstance().activeIndex},getItem(e){return this.getMenuInstance().items[e]},getSelectedItem(){return this.getItem(this.getSelectedIndex())},getSelectedItemEl(){return this.getSelectedItem().$el},close(){this.getMenuInstance().closeMenu()}}};var d=i(28579);let u={props:{descriptionHandler:{type:Function,default:()=>""}},data:()=>({tipText:"",tipPosition:void 0}),methods:{setTip(e,t){let{tipText:i,tipPosition:n}=this;e===i&&(0,d.Z)(n,t)||(this.tipText=e,this.tipPosition=t)},clearTip(){this.setTip("",void 0)},computeTipPosition(e){let{top:t}=e.getBoundingClientRect(),{left:i,right:n}=e.parentNode.getBoundingClientRect(),o=window.innerWidth,r=o-n<250;return{top:t,left:r?void 0:n+14,right:r?o-i+14:void 0}},updateTip(){let e=this.getSelectedItem();if(!e)return void this.clearTip();Promise.resolve(this.descriptionHandler(e)).then(t=>{e===this.getSelectedItem()&&(t?this.setTip(t,this.computeTipPosition(this.getSelectedItemEl())):this.clearTip())})}}};var h=i(47501);let p=h.Z.props,f=(0,n.defineComponent)({name:"BaseMenu",components:{vMenu:o.Z},mixins:[c],methods:{getMenuInstance(){return this.$refs.menu},onSelectItemSelect(e,t){void 0===e.closeOnSelect&&void 0===this.closeOnSelect&&"select"===e.type&&this.getMenuInstance().closeMenu()},onMenuClose(){if(this.findAncestor("Menu"))return;let e=document.activeElement;(e===document.body||SYNO.SDS.Office.EditorUtils.parentContains(e,"syno-o-menu"))&&SYNO.SDS.Office.Utils.focusEditor()}}});var g=i(4337);let m=(0,g.default)(f,[["render",function(e,t,i,o,r,a){let s=(0,n.resolveComponent)("v-menu"),l=(0,n.resolveDirective)("clickoutside");return(0,n.withDirectives)(((0,n.openBlock)(),(0,n.createBlock)(s,(0,n.mergeProps)({ref:"menu",class:"ps-office syno-o-menu"},e.menuProps(),{"syno-id":"menu",onItemSelect:e.onSelectItemSelect,onMenuClosed:e.onMenuClose}),(0,n.createSlots)({default:(0,n.withCtx)(()=>[(0,n.renderSlot)(e.$slots,"default")]),_:2},[(0,n.renderList)(e.$slots,(t,i)=>({name:i,fn:(0,n.withCtx)(t=>[(0,n.renderSlot)(e.$slots,i,(0,n.normalizeProps)((0,n.guardReactiveProps)(t)))])}))]),1040,["onItemSelect","onMenuClosed"])),[[l,e.isRoot&&e.isOpen&&e.close,void 0,{children:!0}]])}]]),v={class:"syno-o-desc-tip-content"};var b=i(82822);let y=(0,n.defineComponent)({name:"BaseDescTip",props:{text:{type:String,default:""},position:{type:Object,default:()=>({top:0,left:0,right:void 0})},maxWidth:{type:Number,default:400}},computed:{isReversed(){return(0,b.Z)(this.position.right)},descStyle(){let{position:{top:e,left:t,right:i},maxWidth:n,isReversed:o}=this;return{top:`${e}px`,left:o?"":`${t}px`,right:o?`${i}px`:"",maxWidth:`${n}px`}}}}),w=(0,g.default)(y,[["render",function(e,t,i,o,r,a){return(0,n.openBlock)(),(0,n.createElementBlock)("div",{class:(0,n.normalizeClass)(["syno-o-desc-tip",[e.isReversed?"syno-o-desc-tip-reversed":null]]),style:(0,n.normalizeStyle)(e.descStyle)},[(0,n.renderSlot)(e.$slots,"prefix"),(0,n.createElementVNode)("div",v,[(0,n.renderSlot)(e.$slots,"content",{text:e.text},()=>[(0,n.createTextVNode)((0,n.toDisplayString)(e.text),1)])]),(0,n.renderSlot)(e.$slots,"suffix")],6)}]]),_=(0,n.defineComponent)({name:"BaseDescMenu",components:{BaseMenu:m,BaseDescTip:w},mixins:[c,u],mounted(){this.getMenuInstance().$watch("activeIndex",this.updateTip.bind(this))}}),x=(0,g.default)(_,[["render",function(e,t,i,o,r,a){let s=(0,n.resolveComponent)("BaseDescTip"),l=(0,n.resolveComponent)("BaseMenu");return(0,n.openBlock)(),(0,n.createBlock)(l,(0,n.mergeProps)({ref:"menu",class:"syno-o-desc-menu"},e.menuProps()),(0,n.createSlots)({"top-actions":(0,n.withCtx)(()=>[(0,n.withDirectives)((0,n.createVNode)(s,{ref:"tip",text:e.tipText,position:e.tipPosition},(0,n.createSlots)({_:2},[(0,n.renderList)(["prefix","content","suffix"],t=>({name:t,fn:(0,n.withCtx)(i=>[(0,n.renderSlot)(e.$slots,"tip"+t[0].toUpperCase()+t.slice(1),(0,n.normalizeProps)((0,n.guardReactiveProps)(i)))])}))]),1032,["text","position"]),[[n.vShow,!!e.tipPosition]])]),default:(0,n.withCtx)(()=>[(0,n.renderSlot)(e.$slots,"default")]),_:2},[(0,n.renderList)(e.$slots,(t,i)=>({name:i,fn:(0,n.withCtx)(t=>[(0,n.renderSlot)(e.$slots,i,(0,n.normalizeProps)((0,n.guardReactiveProps)(t)))])}))]),1040)}]]),S=(0,n.defineComponent)({name:"BaseMenuItem",components:{vMenuItem:h.Z},mixins:[{mixins:[r,s],props:p,methods:{menuItemProps(){return Object.assign(Object.keys(p).reduce((e,t)=>(e[t]=this[t],e),Object.create(null)),this.$attrs)},getMenuItemInstance(){return this.$refs.menuItem.getMenuItemInstance()}}}],methods:{getMenuItemInstance(){return this.$refs.menuItem},onMouseEnter(){let e=this.findAncestor("Menu");e&&(e.activeItemByIndex||e.focusItemByIndex)?.call(e,e.items.indexOf(this.getMenuItemInstance()))}}}),C=(0,g.default)(S,[["render",function(e,t,i,o,r,a){let s=(0,n.resolveComponent)("v-menu-item");return(0,n.openBlock)(),(0,n.createBlock)(s,(0,n.mergeProps)({ref:"menuItem",class:"syno-o-menu-item"},e.menuItemProps(),{"syno-id":"menu-item",onMouseenter:e.onMouseEnter}),(0,n.createSlots)({default:(0,n.withCtx)(()=>[(0,n.renderSlot)(e.$slots,"default")]),_:2},[(0,n.renderList)(e.$slots,(t,i)=>({name:i,fn:(0,n.withCtx)(t=>[(0,n.renderSlot)(e.$slots,i,(0,n.normalizeProps)((0,n.guardReactiveProps)(t)))])}))]),1040,["onMouseenter"])}]])},60537:function(e,t,i){"use strict";i.d(t,{Xl:()=>X,eP:()=>e_,kd:()=>eb,jz:()=>el,O1:()=>eh});var n=i(63447);let o={class:"syno-o-comment-panel"},r={class:"syno-o-comment-panel-toolbar"},a={class:"syno-o-comment-panel-filter-header"},s={key:1,class:"syno-o-comment-panel-toolbar-split"},l={ref:"body",class:"syno-o-comment-panel-body"},c={class:"syno-o-comment-thread-container",style:{height:"100%"}};var d=i(76293),u=i(23886),h=i(31842),p=i(24766),f=i(16067),g=i(47501),m=i(46001);let v={ref:"content"},b={key:0,class:"syno-o-comment-thread-show-all-btn"};var y=i(52091);let w={class:"syno-o-comment-reply"},_={key:0,class:"syno-o-comment-reply-mark-resolved"},x={key:1},S=["href"],C={key:3,class:"syno-o-comment-reply-ref-text"};var k=i(42905);let I=(0,n.defineComponent)({components:{vButton:d.Z,vMenu:h.Z,vMenuItem:g.Z,vMenuDivider:f.Z},props:{showResolveBtn:{type:Boolean,default:!1},isResolved:{type:Boolean,default:!1},showRejectBtn:{type:Boolean,default:!1},editable:{type:Boolean,default:!0},deletable:{type:Boolean,default:!0},enableLink:{type:Boolean,default:!1}},emits:["resolve","reject","triggerEdit","triggerDelete","triggerLink"],computed:{resolveCls(){return this.isResolved?this.$style.resolved:""}},methods:{onResolve(){this.$emit("resolve")},onReject(){this.$emit("reject")},triggerEdit(){this.$emit("triggerEdit")},triggerDelete(){this.$emit("triggerDelete")},getLink(){this.$emit("triggerLink")}}});var A=i(2652),T=i.n(A),E=i(4337);let R={};R.$style=T();let D=(0,E.default)(I,[["render",function(e,t,i,o,r,a){let s=(0,n.resolveComponent)("v-button"),l=(0,n.resolveComponent)("v-menu-item"),c=(0,n.resolveComponent)("v-menu-divider"),d=(0,n.resolveComponent)("v-menu");return(0,n.openBlock)(),(0,n.createElementBlock)("div",null,[e.showResolveBtn?((0,n.openBlock)(),(0,n.createBlock)(s,{key:0,"syno-id":"resolve-btn",type:"styleless",suffix:"none",class:(0,n.normalizeClass)([e.$style.btn,e.$style["btn-resolve"],e.resolveCls]),onClick:e.onResolve},null,8,["class","onClick"])):(0,n.createCommentVNode)("",!0),e.showRejectBtn?((0,n.openBlock)(),(0,n.createBlock)(s,{key:1,"syno-id":"reject-btn",type:"styleless",suffix:"none",class:(0,n.normalizeClass)([e.$style.btn,e.$style["btn-reject"]]),onClick:e.onReject},null,8,["class","onClick"])):(0,n.createCommentVNode)("",!0),e.editable||e.deletable||e.enableLink?((0,n.openBlock)(),(0,n.createBlock)(s,{key:2,"syno-id":"more-action-btn",type:"styleless",suffix:"none",class:(0,n.normalizeClass)([e.$style.btn,"syno-o-comment-more-action-btn"]),"use-adaptive-container":!1},{dropdown:(0,n.withCtx)(()=>[(0,n.createVNode)(d,{"syno-id":"action-menu",width:"auto"},{default:(0,n.withCtx)(()=>[e.editable?((0,n.openBlock)(),(0,n.createBlock)(l,{key:0,"syno-id":"edit-action",title:e.$ST("common","edit"),onClick:(0,n.withModifiers)(e.triggerEdit,["stop"])},null,8,["title","onClick"])):(0,n.createCommentVNode)("",!0),e.deletable?((0,n.openBlock)(),(0,n.createBlock)(l,{key:1,"syno-id":"delete-action",title:e.$ST("common","delete"),onClick:(0,n.withModifiers)(e.triggerDelete,["stop"])},null,8,["title","onClick"])):(0,n.createCommentVNode)("",!0),(e.editable||e.deletable)&&e.enableLink?((0,n.openBlock)(),(0,n.createBlock)(c,{key:2,"syno-id":"divider"})):(0,n.createCommentVNode)("",!0),e.enableLink?((0,n.openBlock)(),(0,n.createBlock)(l,{key:3,"syno-id":"get-link-action",title:e.$ST("comment","menu_get_link"),onClick:(0,n.withModifiers)(e.getLink,["stop"])},null,8,["title","onClick"])):(0,n.createCommentVNode)("",!0)]),_:1})]),_:1},8,["class"])):(0,n.createCommentVNode)("",!0)])}],["__cssModules",R]]),O={class:"syno-o-comment-editor"},M={key:0,class:"footer"};var N=i(91229),P=i(32361),L=i(49098),B=i(96868),F=i(98671),V=i(22053),z=i(32334);let H={key:2},W=(0,n.defineComponent)({__name:"CandidateList",props:{loading:{type:Boolean},items:{}},emits:["item-select"],setup(e,t){let{expose:i,emit:o}=t,r=(0,n.useTemplateRef)("menu"),a=(0,n.computed)(()=>!e.loading&&e.items.length>=10?300:void 0);function s(){let t=r.value?.activeIndex,i=void 0===t?void 0:e.items[t];i&&o("item-select",i)}return(0,n.watch)(r,e=>{e?.tryActiveFirstItem()},{flush:"post"}),i({movePrev:function(){r.value?.activePrevItem()},moveNext:function(){r.value?.activeNextItem()},select:s}),(e,t)=>((0,n.openBlock)(),(0,n.createElementBlock)("div",null,[((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(V.QL),{ref:"menu",key:`${e.items.length}:${e.loading}`,class:(0,n.normalizeClass)(e.$style.list),"syno-id":"list","auto-focus":!1,width:256,height:a.value,"use-scrollbar":"",onItemSelect:s,onWheel:t[0]||(t[0]=(0,n.withModifiers)(()=>{},["stop"]))},{default:(0,n.withCtx)(()=>[e.loading?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(F.Z),{key:0,"syno-id":"v-office-list-loading",class:(0,n.normalizeClass)(e.$style["loading-wrapper"]),spinning:"",tip:(0,n.unref)(z.$)("common","loading")},null,8,["class","tip"])):0===e.items.length?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(V.Oh),{key:1,"syno-id":"no-candidate-item",desc:(0,n.unref)(z.$)("handsontable","no_matching"),disabled:""},null,8,["desc"])):((0,n.openBlock)(),(0,n.createElementBlock)("div",H,[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(e.items,t=>((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(V.Oh),{key:t.id,"syno-id":`candidate-item-${t.id}`,icon:{type:"bkg-img",class:[e.$style.icon,e.$style[t.type]]},title:t.name,desc:t.nickname?`(${t.nickname})`:""},null,8,["syno-id","icon","title","desc"]))),128))]))]),_:1},8,["class","height"]))]))}});var Y=i(27727),U=i.n(Y);let G={};G.$style=U();let Z=(0,E.default)(W,[["__cssModules",G]]);var j=i(58525),q=i(98966);let K="syno-comment-input-";function X(e){return"TEXTAREA"===e.tagName&&e.id.startsWith(K)}let Q=(0,n.defineComponent)({name:"CommentEditor",components:{vButton:d.Z,vInput:P.Z,vPortal:L.Z,CandidateList:Z},mixins:[B.ZP],props:{originValue:{type:String,default:""},emptyText:{type:String,default:""},showConfirmBar:{type:Boolean,default:!0},inputValue:{type:String,default:void 0}},emits:["confirm","cancel","focus","blur"],data(){let e=(0,y.VR)(this.originValue).map(e=>{let{text:t}=e;return t}).join(""),t=this.inputValue??e;return{inputId:`${K}${(0,q.D)()}`,innerInputValue:t,candidateMenuState:null,atSegment:null,lastText:e,emptyTrie:{}}},computed:{confirmDisabled(){return!this.innerInputValue||!this.innerInputValue.trim()}},watch:{originValue(){let e=(0,y.VR)(this.originValue).map(e=>{let{text:t}=e;return t}).join("");this.innerInputValue=this.inputValue??e,this.lastText=e},candidateMenuState(e){e&&this.updateMenuPosition()},inputValue(e){e!==this.innerInputValue&&(this.innerInputValue=e)}},async mounted(){await this.$nextTick();let e=this.$refs.input.$refs.textarea,t=(0,N.Z)(()=>{this.queryCandidates(e.value)},300);e.addEventListener("input",i=>{if(!(0,j.eL)().loggedIn)return;let n=e.selectionEnd,o=e.value;if(null===this.atSegment){if(i.inputType.startsWith("insert")&&"@"===o.charAt(n-1)){let e=["~","#"].includes(o.charAt(n-2)),t=n-(e?2:1);this.atSegment={before:o.slice(0,n),beginIndex:t,endIndex:n}}}else i.inputType.startsWith("insert")&&" "===o.charAt(n-1)&&this.isQueryWillEmpty(o.slice(this.atSegment.before.length,n))&&this.stopQuery();this.atSegment&&t()})},methods:{async queryCandidates(e){if(!this.$refs.input)return;if(null===this.atSegment||!e.startsWith(this.atSegment.before))return void this.stopQuery();let t=this.$refs.input.$refs.textarea.selectionEnd,i=[""," ","\r","\n"],n=t;for(;n<e.length&&!i.includes(e.charAt(n));)n+=1;let o=e.slice(this.atSegment.before.length,n);if(o===this.lastQuery)return;if(!o||this.isQueryWillEmpty(o))return void this.clearCandidate();this.atSegment.endIndex=n,this.candidateMenuState={loading:!0,items:[]},this.lastQuery=o;let r=await (0,y.vk)(o);0===r.length&&this.addEmptyQuery(o),this.candidateMenuState={loading:!1,items:r}},hasInputValue(){return!!this.innerInputValue},async onConfirm(){if(await this.setBlur(),this.confirmDisabled)this.$emit("cancel");else{let e=(0,y.nr)(this.innerInputValue.trim()).map(e=>{let{text:t}=e;return t}).join("");e!==this.originValue?this.$emit("confirm",e):this.$emit("cancel")}this.clearValue()},async onCancel(){await this.setBlur(),this.$emit("cancel"),this.clearValue()},onFocus(){this.$emit("focus")},onBlur(){this.$emit("blur",this.innerInputValue)},onKeyDown(e){if(e.isComposing||229===e.keyCode)return;if(!this.candidateMenuState){"Enter"===e.key&&(e.ctrlKey||e.metaKey)&&!e.altKey&&this.onConfirm();return}let t=this.$refs.candidateMenu;switch(e.key){case"ArrowUp":t.movePrev(),e.stopPropagation(),e.preventDefault();break;case"ArrowDown":t.moveNext(),e.stopPropagation(),e.preventDefault();break;case"Enter":case"Tab":0===this.candidateMenuState.items.length?this.stopQuery():(t.select(),e.stopPropagation(),e.preventDefault());break;case"Escape":this.stopQuery(),e.stopPropagation(),e.preventDefault()}},async onCandidateSelect(e){if(!this.atSegment)return void this.stopQuery();let{type:t,nickname:i}=e,{name:n}=e,o="group"===t?"~@":"channel"===t?"#@":"@";"user"===t&&i&&(0,j.sI)().useNickname&&(n=i);let r=/\s/.test(n)?`${o}"${n}"`:`${o}${n}`,{beginIndex:a}=this.atSegment,{endIndex:s}=this.atSegment,l=this.innerInputValue;n===l.slice(a+1,a+n.length+1)&&(s=a+n.length+1);let c=`${l.slice(0,a)}${r} ${l.slice(s)}`;this.lastText=c,this.innerInputValue=c,this.stopQuery(),await this.$nextTick();let d=a+r.length+1;this.$refs.input.setFocus(),this.$refs.input.$refs.textarea.setSelectionRange(d,d),this.updateInputSize()},async updateMenuPosition(){await this.$nextTick(),this.$refs.portal?.doAlign()},stopQuery(){this.candidateMenuState=null,this.atSegment=null,this.lastQuery=null},clearCandidate(){this.candidateMenuState&&(this.candidateMenuState.items=[]),this.lastQuery=null},setFocus(){this.$refs.input.setFocus({preventScroll:!0})},isFocused(){return this.$refs.input?.isFocused},async setBlur(){this.$refs.input.setBlur(),await (0,y.gw)(0)},async clearValue(){this.innerInputValue="",this.lastText="",await this.$nextTick(),this.updateInputSize()},updateInputSize(){let e=this.$refs.input?.$refs.textarea;e&&e.dispatchEvent(new Event("autosize:update"))},addEmptyQuery(e){if(!e)return;let t=this.emptyTrie;for(let i of e)if(t[i]||(t[i]={}),(t=t[i]).leaf)return;t.leaf=!0},isQueryWillEmpty(e){if(!e)return!1;let t=this.emptyTrie;for(let i of e)if(t=t[i]){if(t.leaf)return!0}else break;return!1}}}),$=(0,E.default)(Q,[["render",function(e,t,i,o,r,a){let s=(0,n.resolveComponent)("v-input"),l=(0,n.resolveComponent)("CandidateList"),c=(0,n.resolveComponent)("v-portal"),d=(0,n.resolveComponent)("v-button"),u=(0,n.resolveDirective)("clickoutside");return(0,n.openBlock)(),(0,n.createElementBlock)("div",O,[(0,n.createElementVNode)("div",null,[(0,n.createVNode)(s,{id:e.inputId,ref:"input",modelValue:e.innerInputValue,"onUpdate:modelValue":t[0]||(t[0]=t=>e.innerInputValue=t),"syno-id":"comment-input",type:"textarea",placeholder:e.emptyText,autosize:{minRows:1,maxRows:10},"fit-container":!0,onKeydown:e.onKeyDown,onFocus:e.onFocus,onBlur:e.onBlur},null,8,["id","modelValue","placeholder","onKeydown","onFocus","onBlur"]),e.candidateMenuState?((0,n.openBlock)(),(0,n.createBlock)(c,{key:0,ref:"portal","mount-to":e.$popupManager.getPopupContainer(),anchor:e.$refs.input.$el,alignment:"tl->bl"},{default:(0,n.withCtx)(()=>[(0,n.withDirectives)((0,n.createVNode)(l,{ref:"candidateMenu",loading:e.candidateMenuState.loading,items:e.candidateMenuState.items,onItemSelect:e.onCandidateSelect},null,8,["loading","items","onItemSelect"]),[[u,e.stopQuery]])]),_:1},8,["mount-to","anchor"])):(0,n.createCommentVNode)("",!0)]),e.showConfirmBar?((0,n.openBlock)(),(0,n.createElementBlock)("div",M,[(0,n.createVNode)(d,{"syno-id":"cancel-btn",type:"footbar",suffix:"cancel",onClick:e.onCancel},{default:(0,n.withCtx)(()=>[(0,n.createTextVNode)((0,n.toDisplayString)(e.$ST("common","cancel")),1)]),_:1},8,["onClick"]),(0,n.createVNode)(d,{"syno-id":"confirm-btn",type:"footbar",suffix:"main",disabled:e.confirmDisabled,onClick:e.onConfirm},{default:(0,n.withCtx)(()=>[(0,n.createTextVNode)((0,n.toDisplayString)(e.$ST("common","ok")),1)]),_:1},8,["disabled","onClick"])])):(0,n.createCommentVNode)("",!0)])}]]);var J=i(32867),ee=i(84901),et=i(61367),ei=i(85196),en=i(19667),eo=i(41385);let er=(0,n.defineComponent)({name:"CommentBody",components:{vButton:d.Z,"v-info":k.Z,"v-editor":$,"v-comment-buttons":D},props:{comment:{type:Object,default:()=>({})},isLeadingThread:{type:Boolean,default:!1},isThreadResolved:{type:Boolean,default:!1},isNewComment:{type:Boolean,default:!1},editable:{type:Boolean,default:!0}},emits:["replyEdit","replyDelete","resolve","reject"],data:()=>({isEditing:!1,showMoreEnabled:!1,contentOversized:!1}),computed:{infoCfg(){let e=(0,y.H7)()&&!this.isNewComment,t=(0,ee.Kr)()===this.comment.author;return{author:this.comment.author,authorName:this.comment.authorName,timestamp:this.comment.timestamp,showResolveBtn:e&&(this.isSuggestion?!this.isThreadResolved:this.isLeadingThread),isResolved:this.isThreadResolved,showRejectBtn:e&&this.isSuggestion&&!this.isThreadResolved,editable:this.editable&&!this.isSuggestion&&!this.isThreadResolved&&!!this.comment.text&&e&&t&&(0,j.eL)().loggedIn,deletable:!this.isSuggestion&&!this.resolveString&&e&&t&&(0,j.eL)().loggedIn,enableLink:this.isLeadingThread&&!this.isNewComment}},isSuggestion(){return this.isLeadingThread&&this.comment.type===ei.xs.BM},resolveString(){if(this.comment.text&&this.comment.status!==ei.xs.pR)return"";switch(this.comment.status){case ei.xs.Wd:return this.$ST("comment","resolved");case ei.xs.pR:return this.$ST("comment","unresolved");default:return""}},contentSegments(){let e=this.comment.text;return this.isSuggestion?this.getSuggestionSegments(e):this.getReplySegments(e)},showMoreContentText(){return this.contentOversized?this.$ST("comment",this.showMoreEnabled?"show_less":"show_more"):""},editingValue(){if(!this.isThreadResolved)return(0,en.j)(this.$pinia).getEditingValue(this.comment.id)},hasEditingValue(){return!this.isThreadResolved&&(0,en.j)(this.$pinia).hasEditingValue(this.comment.id)}},watch:{infoCfg(e,t){e.editable===t.editable||e.editable||(this.isEditing=!1)},async comment(){this.reset(),await this.$nextTick(),this.checkOversized()},hasEditingValue:{handler(e,t){e&&!t&&(this.isEditing=!0)},immediate:!0},isThreadResolved:{handler(e){e&&(this.isEditing=!1,(0,en.j)(this.$pinia).removeEditingValue(this.comment.id))},immediate:!0}},async mounted(){await this.$nextTick(),this.checkOversized()},methods:{reset(){this.contentOversized=!1,this.isEditing=this.hasEditingValue},checkOversized(){let e=this.$refs.contentEl;if(!e)return;let t=parseInt(window.getComputedStyle(e).lineHeight,10)||18;e.offsetHeight>4*t&&(this.contentOversized=!0)},onEditApply(e){this.isEditing=!1,(0,en.j)(this.$pinia).removeEditingValue(this.comment.id),this.$emit("replyEdit",this.comment.id,e)},onEditCancel(){this.isEditing=!1,(0,en.j)(this.$pinia).removeEditingValue(this.comment.id)},onEditBlur(e){(0,en.j)(this.$pinia).setEditingValue(this.comment.id,e)},onResolve(){this.$emit("resolve")},onReject(){this.$emit("reject")},async triggerEdit(){this.isEditing=!0,await this.$nextTick(),await this.$nextTick(),this.$refs.editor?.setFocus()},async triggerDelete(){await (0,y.j3)()&&((0,en.j)(this.$pinia).removeEditingValue(this.comment.id),this.$emit("replyDelete",this.comment.id))},getLink(){let e=(0,y.Wx)(this.comment.id);(0,et.isMobileLayout)()?(0,J.vQ)(e,{successMsg:SYNO.SDS.Drive._T("share","url_copied"),failedMsg:""}):(0,y.xi)(e)},onShowMoreContent(){this.showMoreEnabled=!this.showMoreEnabled},getReplySegments(e){let t=[];return(0,y.VR)(e).forEach(e=>{let{type:i,text:n,displayName:o,displayText:r}=e;i?t.push({text:r,cls:["syno-o-mentioned-name"],tipOpt:{content:`<div class="syno-o-comment-mentioned-tip syno-${(0,eo.htmlEscape)(i)}">${(0,eo.htmlEscape)(o)}</div>`,isHtml:!0,bgOpacity:1}}):n.split(/(\(?https?:\/\/[\u0021-\u007E]*)/).forEach((e,i)=>{let n=i%2==1,o={text:e,link:n,cls:[]};if(n){if("("===e[0]&&")"===e[e.length-1]){o.text=e.slice(1,e.length-1),t.push({text:"(",link:!1,cls:[]},o,{text:")",link:!1,cls:[]});return}else if("("===e[0]){o.text=e.slice(1),t.push({text:"(",link:!1,cls:[]},o);return}}t.push(o)})}),t},getSuggestionSegments(e){let t="";try{t=JSON.parse(e)}catch{}let i="";switch(t.step){case"removeTableRow":i=this.$ST("handsontable","remove_single_row");break;case"removeTableCol":i=this.$ST("handsontable","remove_single_col");break;case"insertTableRow":i=this.$ST("handsontable","table_insert_row");break;case"insertTableCol":i=this.$ST("handsontable","table_insert_col");break;default:switch(t.op){case"deletion":i=this.$ST("suggestion","delete");break;case"insertion":i=this.$ST("suggestion","add")}}let n=[{text:`${i}
`,cls:["syno-o-comment-suggestion-op",t.op]}];if(this.comment.suggestionContent){let{text:e,decorate:t}=this.comment.suggestionContent;n.push({text:e,cls:[t?"syno-o-comment-suggestion-content":""]})}return n}}}),ea=(0,E.default)(er,[["render",function(e,t,i,o,r,a){let s=(0,n.resolveComponent)("v-comment-buttons"),l=(0,n.resolveComponent)("v-info"),c=(0,n.resolveComponent)("v-button"),d=(0,n.resolveComponent)("v-editor"),u=(0,n.resolveDirective)("tooltip");return(0,n.openBlock)(),(0,n.createElementBlock)("div",w,[(0,n.createVNode)(l,(0,n.normalizeProps)((0,n.guardReactiveProps)(e.infoCfg)),{buttons:(0,n.withCtx)(()=>[(0,n.createVNode)(s,(0,n.mergeProps)(e.infoCfg,{onResolve:e.onResolve,onReject:e.onReject,onTriggerEdit:e.triggerEdit,onTriggerDelete:e.triggerDelete,onTriggerLink:e.getLink}),null,16,["onResolve","onReject","onTriggerEdit","onTriggerDelete","onTriggerLink"])]),_:1},16),e.resolveString?((0,n.openBlock)(),(0,n.createElementBlock)("div",_,(0,n.toDisplayString)(e.resolveString),1)):(0,n.createCommentVNode)("",!0),e.isEditing?((0,n.openBlock)(),(0,n.createBlock)(d,{key:2,ref:"editor","origin-value":e.comment.text,"input-value":e.editingValue,onConfirm:e.onEditApply,onCancel:e.onEditCancel,onBlur:e.onEditBlur},null,8,["origin-value","input-value","onConfirm","onCancel","onBlur"])):((0,n.openBlock)(),(0,n.createElementBlock)("div",x,[(0,n.createElementVNode)("div",{ref:"contentEl",class:(0,n.normalizeClass)(["syno-o-comment-reply-content",{"height-limit":!e.showMoreEnabled&&e.contentOversized}])},[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(e.contentSegments,(e,i)=>((0,n.openBlock)(),(0,n.createElementBlock)(n.Fragment,{key:i},[e.link?((0,n.openBlock)(),(0,n.createElementBlock)("a",{key:0,href:e.text,target:"_blank",rel:"noreferrer noopener",onClick:t[0]||(t[0]=(0,n.withModifiers)(()=>{},["stop"]))},(0,n.toDisplayString)(e.text),9,S)):(0,n.withDirectives)(((0,n.openBlock)(),(0,n.createElementBlock)("span",{key:1,class:(0,n.normalizeClass)(e.cls)},[(0,n.createTextVNode)((0,n.toDisplayString)(e.text),1)],2)),[[u,e.tipOpt||!1]])],64))),128))],2),e.contentOversized?((0,n.openBlock)(),(0,n.createBlock)(c,{key:0,"syno-id":"show-more-btn",class:"syno-o-comment-reply-content-show-more",type:"styleless",suffix:"none",onClick:e.onShowMoreContent},{default:(0,n.withCtx)(()=>[(0,n.createTextVNode)((0,n.toDisplayString)(e.showMoreContentText),1)]),_:1},8,["onClick"])):(0,n.createCommentVNode)("",!0)])),!e.isSuggestion&&e.comment.refText?((0,n.openBlock)(),(0,n.createElementBlock)("div",C,(0,n.toDisplayString)(e.comment.refText),1)):(0,n.createCommentVNode)("",!0)])}]]),es=(0,n.defineComponent)({name:"CommentThread",components:{vButton:d.Z,"v-comment":ea,"v-editor":$,"v-scrollbar":m.Z},props:{thread:{type:Object,default:()=>({})},showLimit:{type:Number,default:3},editorEnabled:{type:Boolean,default:!0},active:{type:Boolean,default:!1},floating:{type:Boolean,default:!1},transitionEl:{type:HTMLElement,default:null},top:{type:Number,default:0},left:{type:Number,default:0},isNewComment:{type:Boolean,default:!1}},emits:["created","threadClick","threadReject","replyEdit","replyDelete","commentCreate","replyApply","commentCancel","threadAccept","threadResolve","threadReopen","resize"],data:()=>({showAll:!1,showConfirmBar:!1,height:0,isInputEmpty:!0}),computed:{threadCls(){return["syno-o-comment-thread",{"syno-o-add-comment":this.isNewComment,active:this.innerActive,floating:this.floating}]},editorPlaceHolder(){return this.isNewComment?"":`${this.$ST("comment","reply_input")}...`},threadStyle(){return this.floating?{top:`${this.top}px`,left:null!==this.left?`${this.left}px`:null,maxHeight:"480px"}:""},needCompress(){return this.thread.replies.length>this.showLimit},replies(){let e=this.thread.replies;return this.showAll||!this.needCompress?e:e.slice(e.length-this.showLimit)},showAllText(){return this.showAll?this.$ST("comment","show_latest"):String.format(this.$ST("comment","show_all"),this.thread.replies.length)},isThreadResolved(){return this.thread.status===ei.xs.Wd},replying(){return this.innerActive&&(0,y.H7)()},innerActive(){return this.active||!this.isInputEmpty},creatingValue(){return(0,en.j)(this.$pinia).getCreatingValue(this.thread.id)??""}},watch:{innerActive(e){e||(this.showConfirmBar=!1)},creatingValue:{handler(e){this.isInputEmpty=!e},immediate:!0}},created(){this.$emit("created",this.thread.id,this)},mounted(){this.resizeObserver=new ResizeObserver(()=>{this.checkHeight()}),this.resizeObserver.observe(this.$el),this.checkHeight()},beforeUnmount(){this.resizeObserver?.disconnect(),this.resizeObserver=void 0},methods:{getHeight(){return this.height},setEditorFocus(){this.editorEnabled&&this.innerActive&&this.$refs.editor&&!this.showConfirmBar&&this.$refs.editor.setFocus()},hasCreatingValue(){return this.innerActive&&this.$refs.editor&&this.$refs.editor.hasInputValue()},onShowAllClick(){this.showAll=!this.showAll},onEscKey(e){!(229===e.keyCode||this.hasCreatingValue())&&this.$refs.editor?.isFocused()&&this.$emit("commentCancel",this.thread.id)},async onThreadClick(e){this.$emit("threadClick",this.thread.id),X(e.target)||(await this.$nextTick(),this.setEditorFocus())},async onResolve(){this.floating&&await (0,y.uL)(this.$el,this.transitionEl),this.fireResolveEvent()},onReject(){this.$emit("threadReject",this.thread.id)},onReplyEdit(e,t){this.$emit("replyEdit",this.thread.id,e,t)},onReplyDelete(e){this.$emit("replyDelete",this.thread.id,e)},onReplyConfirm(e){(0,en.j)(this.$pinia).removeCreatingValue(this.thread.id),this.isNewComment?(this.showConfirmBar=!1,this.$emit("commentCreate",this.thread,e)):(this.$emit("replyApply",this.thread.id,e),this.$refs.editor.setFocus())},onReplyCancel(){this.showConfirmBar=!1,(0,en.j)(this.$pinia).removeCreatingValue(this.thread.id),this.isNewComment&&this.$emit("commentCancel",this.thread.id)},onReplyFocus(){this.showConfirmBar=!0},onBlur(e){""===e?(0,en.j)(this.$pinia).removeCreatingValue(this.thread.id):(0,en.j)(this.$pinia).setCreatingValue(this.thread.id,e)},fireResolveEvent(){this.thread.type===ei.xs.BM?this.$emit("threadAccept",this.thread.id):this.$emit(this.isThreadResolved?"threadReopen":"threadResolve",this.thread.id)},checkHeight(){let e=Math.ceil(this.$el.getBoundingClientRect().height||0);e!==this.height&&(this.height=e,this.$emit("resize",e))}}}),el=(0,E.default)(es,[["render",function(e,t,i,o,r,a){let s=(0,n.resolveComponent)("v-comment"),l=(0,n.resolveComponent)("v-button"),c=(0,n.resolveComponent)("v-editor"),d=(0,n.resolveComponent)("v-scrollbar");return(0,n.openBlock)(),(0,n.createElementBlock)("div",{ref:"container",class:(0,n.normalizeClass)(e.threadCls),style:(0,n.normalizeStyle)(e.threadStyle),onClick:t[0]||(t[0]=function(){for(var t=arguments.length,i=Array(t),n=0;n<t;n++)i[n]=arguments[n];return e.onThreadClick&&e.onThreadClick(...i)}),onKeydown:t[1]||(t[1]=(0,n.withKeys)(function(){for(var t=arguments.length,i=Array(t),n=0;n<t;n++)i[n]=arguments[n];return e.onEscKey&&e.onEscKey(...i)},["escape"]))},[(0,n.createVNode)(d,{active:!0,style:{maxHeight:"inherit",margin:"0 calc(-1 * var(--syno-o-comment-thread-padding-lr))"},"view-style":{maxHeight:"inherit",padding:"0 var(--syno-o-comment-thread-padding-lr)"}},{default:(0,n.withCtx)(()=>[(0,n.createElementVNode)("div",v,[(0,n.createVNode)(s,{comment:e.thread,editable:e.editorEnabled,"is-leading-thread":!0,"is-thread-resolved":e.isThreadResolved,"is-new-comment":e.isNewComment,onResolve:e.onResolve,onReject:e.onReject,onReplyEdit:e.onReplyEdit,onReplyDelete:e.onReplyDelete},null,8,["comment","editable","is-thread-resolved","is-new-comment","onResolve","onReject","onReplyEdit","onReplyDelete"]),e.needCompress?((0,n.openBlock)(),(0,n.createElementBlock)("div",b,[(0,n.createVNode)(l,{"syno-id":"show-all-btn",type:"styleless",suffix:"none",onClick:e.onShowAllClick},{default:(0,n.withCtx)(()=>[(0,n.createTextVNode)((0,n.toDisplayString)(e.showAllText),1)]),_:1},8,["onClick"])])):(0,n.createCommentVNode)("",!0),((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(e.replies,t=>((0,n.openBlock)(),(0,n.createBlock)(s,{key:t.id,comment:t,editable:e.editorEnabled,"is-thread-resolved":e.isThreadResolved,onReplyEdit:e.onReplyEdit,onReplyDelete:e.onReplyDelete},null,8,["comment","editable","is-thread-resolved","onReplyEdit","onReplyDelete"]))),128)),(0,n.withDirectives)((0,n.createVNode)(c,{ref:"editor","empty-text":e.editorPlaceHolder,"input-value":e.creatingValue,"show-confirm-bar":e.editorEnabled&&(e.showConfirmBar||e.isNewComment),onConfirm:e.onReplyConfirm,onCancel:e.onReplyCancel,onFocus:e.onReplyFocus,onBlur:e.onBlur},null,8,["empty-text","input-value","show-confirm-bar","onConfirm","onCancel","onFocus","onBlur"]),[[n.vShow,e.replying]])],512)]),_:1})],38)}]]),ec={data:()=>({comments:[],activeId:null}),emits:["activeChange","threadClick","threadReopen","threadResolve","threadAccept","threadReject","replyEdit","replyDelete","replyApply"],computed:{displayed(){return this.renewDisplay()}},watch:{displayed(){this.updateActiveWhenDisplayChange()}},methods:{renewDisplay(){return this.comments},getDisplayComment(){return this.displayed.slice()},updateAllComment(e){this.comments=e},updateComment(e){for(let[t,i]of e){let e=this.comments.findIndex(e=>e.id===t);e<0?i&&this.comments.push(i):i?this.comments[e]=i:this.comments.splice(e,1)}},updateActiveWhenDisplayChange(){let e=this.activeId;e&&0>this.displayed.findIndex(t=>t.id===e)&&this.updateActiveThread(null)},updateActiveThread(e,t){let i;if(void 0===t&&(t=!0),e?(i=this.displayed.findIndex(t=>t.id===e))<0&&(e=null):(i=-1,e=null),e===this.activeId)return;let n=this.activeId;this.activeId=e,t&&(this.$emit("activeChange",e,n),i>=0&&this.setThreadVisible(i))},setThreadVisible(e){},onThreadClick(e){this.$emit("threadClick",e),this.updateActiveThread(e)},isThreadActive(e){return this.activeId===e},onThreadReopen(e){this.$emit("threadReopen",e)},onThreadResolve(e){this.$emit("threadResolve",e)},onThreadAccept(e){this.$emit("threadAccept",e)},onThreadReject(e){this.$emit("threadReject",e)},onReplyEdit(e,t,i){this.$emit("replyEdit",e,t,i)},onReplyDelete(e,t){this.$emit("replyDelete",e,t)},onReplyApply(e,t){this.$emit("replyApply",e,t)}}};var ed=i(61232);let eu=(0,n.defineComponent)({name:"CommentPanel",components:{vButton:d.Z,vIcon:u.Z,vMenu:h.Z,vMenuGroup:p.Z,vMenuDivider:f.Z,vMenuItem:g.Z,"v-comment-thread":el,vScrollbar:m.Z},mixins:[ec],props:{isSupportSuggestion:{type:Boolean,default:!1}},emits:["triggerClose"],data(){let e={TYPE:["ALL_TYPES","COMMENT","SUGGESTION"],STATUS:["ALL_STATUS","UNRESOLVED","RESOLVED"]};return this.isSupportSuggestion||(e.STATUS[0]="ALL"),{FILTER_ITEM:e,FILTER:{ALL:"all_comments",ALL_STATUS:"all_status",ALL_TYPES:"all_types",UNRESOLVED:"unresolved_plural",RESOLVED:"resolved_plural",SUGGESTION:"suggestion",COMMENT:"comment",MENTION:"mention_me"},filter:{status:this.isSupportSuggestion?"all_status":"all_comments",type:"all_types",mentionMe:!1},showNotifyButton:(0,j.eL)().loggedIn&&!(0,et.isMobileLayout)()&&!(0,y.JY)(),isMobileLayout:(0,et.isMobileLayout)()}},computed:{headerTitle(){if(this.isSupportSuggestion){if(this.filter.type===this.FILTER.ALL_TYPES&&this.filter.status===this.FILTER.ALL_STATUS)return this.$ST("comment",this.filter.type+"_"+this.filter.status);let e=this.$ST("comment",this.filter.status),t=this.$ST("comment",this.filter.type);return`${t} (${e})`}return this.$ST("comment",this.filter.status)},sorted(){return this.comments.slice().sort((e,t)=>{let i=e.replies.length>0?e.replies[e.replies.length-1].timestamp:e.timestamp;return(t.replies.length>0?t.replies[t.replies.length-1].timestamp:t.timestamp)-i})}},watch:{async displayed(e){let t=this.activeId;if(await this.$nextTick(),!t||this.displayed!==e||this.activeId!==t)return;let i=e.findIndex(e=>e.id===t);i>=0&&this.setThreadVisible(i)}},methods:{setThreadVisible(e){let t=this.$refs.body.getElementsByClassName("syno-o-comment-thread")[e];t&&(this.$refs.scrollbar.ensureVisible(t),(0,ed.m9)().el.dom.scrollLeft=0)},renewDisplay(){let e=this.sorted;switch(this.filter.type){case this.FILTER.COMMENT:e=e.filter(e=>e.type===ei.xs.pV);break;case this.FILTER.SUGGESTION:e=e.filter(e=>e.type===ei.xs.BM)}switch(this.filter.status){case this.FILTER.UNRESOLVED:e=e.filter(e=>e.status!==ei.xs.Wd);break;case this.FILTER.RESOLVED:e=e.filter(e=>e.status===ei.xs.Wd)}if(this.filter.mentionMe&&(0,ee.Kr)()){let t=RegExp(`@:[^:]+:user:${(0,ee.Kr)()}(?!.*[\\d])`),i=e=>e.text&&t.test(e.text);e=e.filter(e=>i(e)||e.replies.some(i))}return e},onItemSelect(e,t){e.id&&(this.filter[e.$attrs.group]=e.id)},triggerNotify(){(0,y.RE)()},triggerClose(){this.updateActiveThread(null),this.$emit("triggerClose")}}}),eh=(0,E.default)(eu,[["render",function(e,t,i,d,u,h){let p=(0,n.resolveComponent)("v-icon"),f=(0,n.resolveComponent)("v-menu-item"),g=(0,n.resolveComponent)("v-menu-group"),m=(0,n.resolveComponent)("v-menu-divider"),v=(0,n.resolveComponent)("v-menu"),b=(0,n.resolveComponent)("v-button"),y=(0,n.resolveComponent)("v-comment-thread"),w=(0,n.resolveComponent)("v-scrollbar"),_=(0,n.resolveDirective)("tooltip");return(0,n.openBlock)(),(0,n.createElementBlock)("div",o,[(0,n.createElementVNode)("div",r,[(0,n.createVNode)(b,{"syno-id":"filter-btn",class:"syno-o-comment-panel-filter",type:"styleless",suffix:"none"},{dropdown:(0,n.withCtx)(()=>[(0,n.createVNode)(v,{ref:"filterMenu","syno-id":"filter-menu",width:"auto",onItemSelect:e.onItemSelect},{default:(0,n.withCtx)(()=>[e.isSupportSuggestion?((0,n.openBlock)(),(0,n.createBlock)(g,{key:0,"syno-id":"type-group","single-select":!0},{default:(0,n.withCtx)(()=>[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(e.FILTER_ITEM.TYPE,t=>((0,n.openBlock)(),(0,n.createBlock)(f,{id:e.FILTER[t],key:e.FILTER[t],group:"type","syno-id":e.FILTER[t],title:e.$ST("comment",e.FILTER[t]),type:"select",selected:e.filter.type===e.FILTER[t]},null,8,["id","syno-id","title","selected"]))),128))]),_:1})):(0,n.createCommentVNode)("",!0),e.isSupportSuggestion?((0,n.openBlock)(),(0,n.createBlock)(m,{key:1,"syno-id":"divider1"})):(0,n.createCommentVNode)("",!0),(0,n.createVNode)(g,{"syno-id":"status-group","single-select":!0},{default:(0,n.withCtx)(()=>[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(e.FILTER_ITEM.STATUS,t=>((0,n.openBlock)(),(0,n.createBlock)(f,{id:e.FILTER[t],key:e.FILTER[t],group:"status","syno-id":e.FILTER[t],title:e.$ST("comment",e.FILTER[t]),type:"select",selected:e.filter.status===e.FILTER[t]},null,8,["id","syno-id","title","selected"]))),128))]),_:1}),(0,n.createVNode)(m,{"syno-id":"divider2"}),(0,n.createVNode)(f,{selected:e.filter.mentionMe,"onUpdate:selected":t[0]||(t[0]=t=>e.filter.mentionMe=t),"syno-id":"mention-me",title:e.$ST("comment","mention_me"),type:"select"},null,8,["selected","title"])]),_:1},8,["onItemSelect"])]),default:(0,n.withCtx)(()=>[(0,n.createElementVNode)("div",a,[(0,n.withDirectives)(((0,n.openBlock)(),(0,n.createElementBlock)("div",null,[(0,n.createTextVNode)((0,n.toDisplayString)(e.headerTitle),1)])),[[_,{content:e.headerTitle}]]),(0,n.createVNode)(p,{name:"trigger",type:"bkg-img"})])]),_:1}),t[1]||(t[1]=(0,n.createElementVNode)("div",{class:"toolbar-space"},null,-1)),e.showNotifyButton?((0,n.openBlock)(),(0,n.createBlock)(b,{key:0,"syno-id":"notify-btn",class:"syno-o-comment-panel-toolbar-btn notification",type:"styleless",suffix:"none",onClick:e.triggerNotify},null,8,["onClick"])):(0,n.createCommentVNode)("",!0),e.showNotifyButton?((0,n.openBlock)(),(0,n.createElementBlock)("div",s)):(0,n.createCommentVNode)("",!0),(0,n.createVNode)(b,{"syno-id":"close-btn",class:"syno-o-comment-panel-toolbar-btn close",type:"styleless",suffix:"none",onClick:e.triggerClose},null,8,["onClick"])]),(0,n.createElementVNode)("div",l,[(0,n.createElementVNode)("div",c,[(0,n.createVNode)(w,{ref:"scrollbar",style:{marginLeft:"calc(-1 * var(--syno-o-comment-panel-body-padding-left))",marginRight:"calc(-1 * var(--syno-o-comment-panel-body-padding-right))"},"view-style":{paddingLeft:"var(--syno-o-comment-panel-body-padding-left)",paddingRight:"var(--syno-o-comment-panel-body-padding-right)"}},{default:(0,n.withCtx)(()=>[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(e.displayed,t=>((0,n.openBlock)(),(0,n.createBlock)(y,{key:t.id,thread:t,active:e.isThreadActive(t.id),"editor-enabled":!e.isMobileLayout,onThreadClick:e.onThreadClick,onReplyEdit:e.onReplyEdit,onReplyDelete:e.onReplyDelete,onReplyApply:e.onReplyApply,onThreadReopen:e.onThreadReopen,onThreadResolve:e.onThreadResolve,onThreadAccept:e.onThreadAccept,onThreadReject:e.onThreadReject},null,8,["thread","active","editor-enabled","onThreadClick","onReplyEdit","onReplyDelete","onReplyApply","onThreadReopen","onThreadResolve","onThreadAccept","onThreadReject"]))),128))]),_:1},512)])],512)])}]]),ep={class:"syno-o-comment-panel"},ef={class:"syno-o-comment-panel-toolbar"},eg={ref:"body",class:"syno-o-comment-panel-body"},em={class:"syno-o-comment-thread-container"},ev=(0,n.defineComponent)({name:"SelectedCommentPanel",components:{vButton:d.Z,vScrollbar:m.Z,"v-comment-thread":el},mixins:[ec],props:{initSelectedCommentIds:{type:Array,default:()=>[]},isSupportSuggestion:{type:Boolean,default:!1},getSelectedCommentIdsFromStore:{type:Function}},emits:["triggerClose","triggerViewAll"],data(){return{selectedCommentIds:this.initSelectedCommentIds}},computed:{_selectedCommentIds(){return this.selectedCommentIds?.length>0?this.selectedCommentIds:this.getSelectedCommentIdsFromStore?.()??[]},sorted(){return this.comments.slice().sort((e,t)=>{let i=e.replies.length>0?e.replies[e.replies.length-1].timestamp:e.timestamp;return(t.replies.length>0?t.replies[t.replies.length-1].timestamp:t.timestamp)-i})}},methods:{updateSelectedCommentIds(e){this.selectedCommentIds=e},renewDisplay(){return this.sorted.filter(e=>this._selectedCommentIds.includes(e.id))},updateActiveWhenDisplayChange(){this.displayed.length>0&&!this.displayed.map(e=>e.id).includes(this.activeId)&&this.updateActiveThread(this.displayed[0].id,!1)},setThreadVisible(e){let t=this.$refs.body.getElementsByClassName("syno-o-comment-thread")[e];t&&this.$refs.scrollbar.ensureVisible(t)},resetScroll(){this.$refs.scrollbar.$refs.view.scrollTop=0},triggerClose(){this.updateActiveThread(null),this.$emit("triggerClose")},triggerViewAll(){this.$emit("triggerViewAll")}}});i(45326);let eb=(0,E.default)(ev,[["render",function(e,t,i,o,r,a){let s=(0,n.resolveComponent)("v-button"),l=(0,n.resolveComponent)("v-comment-thread"),c=(0,n.resolveComponent)("v-scrollbar");return(0,n.openBlock)(),(0,n.createElementBlock)("div",ep,[(0,n.createElementVNode)("div",ef,[(0,n.createVNode)(s,{"syno-id":"view-all-btn",class:"syno-o-comment-panel-view-all-btn",type:"styleless",suffix:"none",onClick:e.triggerViewAll},{default:(0,n.withCtx)(()=>t[0]||(t[0]=[(0,n.createTextVNode)(" View all ")])),_:1},8,["onClick"]),t[1]||(t[1]=(0,n.createElementVNode)("div",{class:"toolbar-space"},null,-1)),(0,n.createVNode)(s,{"syno-id":"close-btn",class:"syno-o-comment-panel-toolbar-btn close",type:"styleless",suffix:"none",onClick:e.triggerClose},null,8,["onClick"])]),(0,n.createElementVNode)("div",eg,[(0,n.createVNode)(c,{ref:"scrollbar"},{default:(0,n.withCtx)(()=>[(0,n.createElementVNode)("div",em,[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(e.displayed,t=>((0,n.openBlock)(),(0,n.createBlock)(l,{key:t.id,thread:t,active:e.isThreadActive(t.id),onThreadClick:e.onThreadClick,onReplyEdit:e.onReplyEdit,onReplyDelete:e.onReplyDelete,onReplyApply:e.onReplyApply,onThreadReopen:e.onThreadReopen,onThreadResolve:e.onThreadResolve,onThreadAccept:e.onThreadAccept,onThreadReject:e.onThreadReject},null,8,["thread","active","onThreadClick","onReplyEdit","onReplyDelete","onReplyApply","onThreadReopen","onThreadResolve","onThreadAccept","onThreadReject"]))),128))])]),_:1},512)],512)])}],["__scopeId","data-v-b0ac858a"]]),ey={ref:"container",class:"syno-o-comment-thread-container"},ew=(0,n.defineComponent)({components:{"v-comment-thread":el},mixins:[ec],props:{interval:{type:Number,default:8},transitionEl:{type:HTMLElement,default:null},commentTopCalculator:{type:Function,required:!0}},emits:["commentCreate","commentCancel","positionUpdate","dataUpdate"],data:()=>({lastActiveId:null,calculatedTop:new Map,childrenMap:new Map,addComment:new Map}),watch:{activeId(e,t){if(this.lastActiveId=t,(0,en.j)(this.$pinia).hasAddCommentElement(t)){let e=this.childrenMap.get(t);if(!e||!e.hasCreatingValue())return void this.onCommentCancel(t)}this.updatePosition()},displayed(){this.$emit("dataUpdate"),this.updatePosition()}},methods:{setAddCommentElement(e,t){this.addComment.set(e,t),(0,en.j)(this.$pinia).setAddCommentElement(e,t)},removeAddCommentElement(e){this.addComment.delete(e),(0,en.j)(this.$pinia).removeAddCommentElement(e)},initAddComment(e){this.addComment.clear(),this.updateAddComment(e)},updateAddComment(e){for(let[t,i]of e)i?this.setAddCommentElement(t,i):this.removeAddCommentElement(t)},async updateSingleAddComment(e,t){if(t?this.setAddCommentElement(e,t):this.removeAddCommentElement(e),this.updateActiveThread(t?e:null),null===t)return;await this.$nextTick();let i=this.childrenMap.get(e);i&&i.setEditorFocus()},onChildCreate(e,t){this.childrenMap.set(e,t)},onCommentCreate(e,t){(0,en.j)(this.$pinia).removeAddCommentElement(e.id),this.$emit("commentCreate",e,t)},onCommentCancel(e){(0,en.j)(this.$pinia).removeAddCommentElement(e),this.$emit("commentCancel",e)},updateAllCommentTop(){let e=e=>{e.top=this.commentTopCalculator(e)};for(let t of(this.comments.forEach(e),this.addComment.values()))e(t)},updatePosition:(0,N.Z)(function(){if(0===this.displayed.length)return;let e=this.activeId||this.lastActiveId,t=null===e?0:this.findDisplayIndex(e);for(let e of((t<0||t>=this.displayed.length)&&(t=0),this.displayed))this.calculatedTop.set(e.id,e.top);let i=this.displayed[t].id,n=this.displayed[t].top,o=n+this.childrenMap.get(i).getHeight()+this.interval;this.calculatedTop.set(i,n);for(let e=t-1;e>=0;e--){let t=this.displayed[e],i=this.childrenMap.get(t.id).getHeight(),o=t.top;o+i+this.interval>n?n-=this.interval+i:n=o,this.calculatedTop.set(t.id,n)}for(let e=t+1;e<this.displayed.length;e++){let t=this.displayed[e],i=this.childrenMap.get(t.id).getHeight(),n=t.top;n>o?(this.calculatedTop.set(t.id,n),o=n+i+this.interval):(this.calculatedTop.set(t.id,o),o+=i+this.interval)}this.$forceUpdate(),this.$emit("positionUpdate")},100),findDisplayIndex(e){return this.displayed.findIndex(t=>t.id===e)},renewDisplay(){return this.comments.concat(Array.from(this.addComment.values())).filter(e=>e.status===ei.xs.x4&&!isNaN(e.top)).sort((e,t)=>e.top-t.top||e.ranges&&t.ranges&&e.ranges[0]-t.ranges[0]||t.timestamp-e.timestamp)}}}),e_=(0,E.default)(ew,[["render",function(e,t,i,o,r,a){let s=(0,n.resolveComponent)("v-comment-thread");return(0,n.openBlock)(),(0,n.createElementBlock)("div",ey,[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(e.displayed,t=>((0,n.openBlock)(),(0,n.createBlock)(s,{key:t.id,thread:t,floating:!0,active:e.isThreadActive(t.id)||e.addComment.has(t.id),"transition-el":e.transitionEl,top:e.calculatedTop.has(t.id)?e.calculatedTop.get(t.id):t.top||0,left:e.isThreadActive(t.id)?-40:0,"is-new-comment":e.addComment.has(t.id),onCreated:e.onChildCreate,onResize:e.updatePosition,onThreadClick:e.onThreadClick,onReplyEdit:e.onReplyEdit,onReplyDelete:e.onReplyDelete,onReplyApply:e.onReplyApply,onThreadReopen:e.onThreadReopen,onThreadResolve:e.onThreadResolve,onThreadAccept:e.onThreadAccept,onThreadReject:e.onThreadReject,onCommentCreate:e.onCommentCreate,onCommentCancel:e.onCommentCancel},null,8,["thread","active","transition-el","top","left","is-new-comment","onCreated","onResize","onThreadClick","onReplyEdit","onReplyDelete","onReplyApply","onThreadReopen","onThreadResolve","onThreadAccept","onThreadReject","onCommentCreate","onCommentCancel"]))),128))],512)}]])},19667:function(e,t,i){"use strict";i.d(t,{j:()=>o});var n=i(63447);let o=(0,i(34877).defineStore)("comment",()=>{let e=(0,n.ref)(new Map),t=(0,n.ref)(new Map),i=(0,n.ref)(new Map);function o(t){return e.value.get(t)}function r(e){return t.value.get(e)}function a(e){return i.value.get(e)}return{setCreatingValue:function(t,i){e.value.set(t,i)},getCreatingValue:o,hasCreatingValue:function(e){return!!o(e)},removeCreatingValue:function(t){e.value.delete(t)},setEditingValue:function(e,i){t.value.set(e,i)},getEditingValue:r,hasEditingValue:function(e){return void 0!==r(e)},removeEditingValue:function(e){t.value.delete(e)},setAddCommentElement:function(e,t){i.value.set(e,t)},getAddCommentElement:a,hasAddCommentElement:function(e){return!!a(e)},removeAddCommentElement:function(e){i.value.delete(e)},iterateAddComments:function*(){yield*i.value}}})},52091:function(e,t,i){"use strict";i.d(t,{H7:()=>v,JA:()=>c,JY:()=>m,RE:()=>b,VR:()=>u,Wx:()=>w,gw:()=>S,j3:()=>y,nr:()=>p,o1:()=>d,rJ:()=>s,tz:()=>l,uL:()=>x,vk:()=>g,xi:()=>_});var n=i(85020),o=i(68784),r=i(62013),a=i(27107);function s(e){return SYNO.SDS.Drive.Utils.convertEpochTime(e)}function l(e,t){return(0,r.s)().getUserDisplayName(e,(0,n.YM)()?t:void 0)}function c(e,t){return(0,r.s)().getUserDisplayFirstName(e,(0,n.YM)()?t:void 0)}function d(e,t){return(0,r.s)().getUserColor(e)||(0,a.o1)(t)}function u(e){if(!e)return[];let t=/[~#]?@:.+?:(?:user|group|channel):\d+/g,i=e.split(t),o=e.match(t)||[],a=[];a.push({text:i[0]});for(let e=0;e<o.length;e++){let[,t,s,c]=o[e].split(":"),d=parseInt(c,10),u=t,h="";switch(s){case"user":u=l(d,{name:t}),h="@";break;case"group":u=(0,r.s)().getGroupDisplayName(d,(0,n.YM)()?t:void 0),h="~@";break;case"channel":u=(0,r.s)().getChannelDisplayName(d,(0,n.YM)()?t:void 0),h="#@"}let p=/\s/.test(u)?`${h}"${u}"`:`${h}${u}`,f="@"+u;a.push({text:p,type:s,id:d,displayName:u,displayText:f}),a.push({text:i[e+1]})}return a}function h(e){return e.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}function p(e){if(-1===e.indexOf("@"))return[{text:e}];let t=(0,r.s)();if(t.useNickname)for(let{name:i,nick:n}of t.users.filter(e=>!!e.nick).sort((e,t)=>t.nick.length-e.nick.length)){let t,o=RegExp(/\s/.test(n)?'@"'+h(n)+'"(\\s|$)':"@"+h(n)+"(\\s|$)","g");e=e.replace(o,"@"+i+" ")}let i=/[~#]?@(?:[^\s"]+|"[^"]*")/g,n=e.split(i),o=e.match(i)||[],a=[];a.push({text:n[0]});for(let e=0;e<o.length;e++){let i=o[e].indexOf("@"),r=o[e].slice(0,i+1),s=o[e].slice(i+1);'"'===s.charAt(0)&&'"'===s.charAt(s.length-1)&&(s=s.slice(1,s.length-1));let l=o[e],c=null,d="";switch(r){case"@":c=t.getUidByName(s),d="user";break;case"~@":c=t.getGidByName(s),d="group";break;case"#@":c=t.getChannelIdByName(s),d="channel"}c&&(l=`${r}:${s}:${d}:${c}`),a.push({text:l,type:d,id:c}),a.push({text:n[e+1]})}return a}let f=null;function g(e){return f&&(Ext.Ajax.abort(f),f=null),new Promise(t=>{f=(0,o.Ew)(SYNO.SDS.Office.GetWindow(),e,(e,i)=>{if(f=null,!e||!i.list)return void t([]);let n=i.list;for(let{channelId:e,name:t}of(0,r.s)().channels)n.push({id:e,name:t,type:"channel"});t(n)})})}function m(){return SYNO.SDS.Office.Env.is_template}function v(){return SYNO.SDS.Office.Utils.isCommentable()}function b(){new SYNO.SDS.Office.Notification.Window({object_id:SYNO.SDS.Office.Env.objectId}).show()}function y(){return new Promise(e=>{SYNO.SDS.Office.GetWindow().getMsgBox().confirm("",SYNO.SDS.Office._T("comment","confirm_delete"),function(t){e("yes"===t)})})}function w(e){return location.origin+location.pathname+location.search+"#"+Ext.urlEncode({comment_id:e})}function _(e){new SYNO.SDS.Office.CopyLinkDialog({copy_url:e,desc:SYNO.SDS.Office._T("comment","link_label"),owner:SYNO.SDS.Office.GetWindow()}).show()}async function x(e,t){let{left:i,top:n}=e.getBoundingClientRect();e.style.transition="none",e.style.position="fixed",e.style.top=`${n}px`,e.style.left=`${i}px`,await new Promise(e=>{setTimeout(e,0)}),e.style.removeProperty("transition"),e.classList.add("syno-o-comment-transition"),await new Promise(i=>{let{top:n,left:o}=t.getBoundingClientRect();e.addEventListener("transitionend",()=>{e.classList.remove("syno-o-comment-transition"),e.style.top="-9999px",e.style.left="-9999px",e.style.opacity=null,e.style.transform=null,i()}),e.style.top=`${n-.4*e.offsetHeight}px`,e.style.left=`${o+40-280+.4*e.offsetWidth}px`,e.style.opacity="0",e.style.transform="scale(0.2, 0.2)"})}async function S(e){return new Promise(t=>{setTimeout(()=>{t()},e)})}},3713:function(e,t,i){"use strict";i.d(t,{Z:()=>s});var n=i(30947),o=i.n(n);let r=SYNO.SDS.Drive.WebAPI;var a=i.n(r);let s=Ext.define("SYNO.SDS.Office.WebAPI",{extend:a(),findAppWindow:function(){return SYNO.SDS.Office.GetWindow()},getGlobalPassword:function(){return SYNO.SDS.Office.Env&&SYNO.SDS.Office.Utils.getEncryptPassword(SYNO.SDS.Office.Env.objectId)||""},getEncryptionOpts:function(e){var t=[];if(e.password&&t.push("password"),e.new_password&&t.push("new_password"),e.passwords&&t.push("passwords"),Ext.isArray(e.files)&&e.files){let i=!1;e.files.forEach(e=>{e.password&&(i=!0)}),i&&t.push("files")}if(!Ext.isEmpty(t))return t},createPromiseWrapper:function(e){return new Promise((t,i)=>{e((e,n)=>{e?t(n):i(n)})})},initial:function(e){this.findAppWindow().sendWebAPI({api:"SYNO.Office.Info",version:1,method:"get",callback:e.callback,scope:e.scope||window})},createOfficeNode:function(e){this.findAppWindow().sendWebAPI({api:"SYNO.Office.Node",version:1,method:"create",timeout:18e5,params:this.copyTo({commit_msg:Ext.apply({device:"desktop"},e.commit_msg)},e.params,"path,title,ctime,mtime,password,encrypt,ntype,content"),encryption:this.getEncryptionOpts(e.params),callback:e.callback,scope:e.scope||window})},encryptPasswordPromise:function(e){var t={password:JSON.stringify(e)};return o().env.isSecure()?Promise.resolve(t):o().encrypt(t)},createNodeAttachment:function(e){var t=e.params.password||this.getGlobalPassword();if(e.params.raw||e.params.files.some(e=>"raw"===e.type))return(t?this.encryptPasswordPromise(t):Promise.resolve()).then(this._createNodeAttachment.bind(this,{params:SYNO.SDS.copy(e.params),callback:e.callback,scope:e.scope}));var i=this.copyTo({password:t},e.params,["object_id","files"]);this.findAppWindow().sendWebAPI({api:"SYNO.Office.Node.Attachment",version:1,method:"create",timeout:18e5,params:i,encryption:this.getEncryptionOpts(i),callback:e.callback,scope:e.scope||window})},_createNodeAttachment:function(e,t){var i={api:"SYNO.Office.Node.Attachment",version:1,method:"create",timeout:18e5},n=new window.FormData,o=[];n.append("object_id",JSON.stringify(e.params.object_id)),SYNO.SDS.Office.Utils.isDriveAdvSharing()&&n.append("sharing_token",JSON.stringify(SYNO.SDS.Drive.Sharing.GetSharingToken())),Ext.iterate(e.params.files,function(t){if("raw"===t.type){o.push({type:"raw",source:t.source});var i=e.params.raw[t.source];n.append(t.source,i,i.name||"image")}else o.push(t)}),n.append("files",JSON.stringify(o)),Ext.iterate(t||{},function(e,t){n.append(e,t)}),i.html5upload=!0,i.isUpload=!0,i.uploadData=n,i.callback=function(t,i){e.callback.call(e.scope||window,t,i)},i.scope=this,this.findAppWindow().sendWebAPI(i)},listNodeAttachment:function(e){this.findAppWindow().sendWebAPI({api:"SYNO.Office.Node.Attachment",version:1,method:"list",params:this.copyTo({},e.params,["object_id"]),callback:e.callback,scope:e.scope||window})},getOfficeNode:function(e,t){void 0===t&&(t=!0);var i=this.copyTo({password:t?this.getGlobalPassword():""},e.params||{},["vol_path","object_id","ver","password","field","basic","filter","path","snapshot","sharing_token"]);this.findAppWindow().sendWebAPI({api:"SYNO.Office.Node",version:1,method:"get",params:i,encryption:this.getEncryptionOpts(i),callback:e.callback,scope:e.scope||window})},setOfficeNode:function(e){var t=e.params||{};this.findAppWindow().sendWebAPI({api:"SYNO.Office.Node",version:1,method:"set",params:this.copyTo({commit_msg:Ext.apply({device:"desktop"},t.commit_msg)},t,["path","object_id","ver","title","ctime","mtime","password","new_password","locale"]),encryption:this.getEncryptionOpts(e.params),callback:e.callback,scope:e.scope||window})},setOfficeNodeOwner:function(e){var t=e.params||{};this.findAppWindow().sendWebAPI({api:"SYNO.Office.Node.Owner",version:1,method:"set",params:this.copyTo({commit_msg:Ext.apply({device:"desktop"},t.commit_msg)},t,["to_parent_folder","object_id","title"]),callback:e.callback,scope:e.scope||window})},encryptOfficeNode:function(e){this.findAppWindow().sendWebAPI({api:"SYNO.Office.Node",version:1,method:"copy",params:this.copyTo({commit_msg:{device:"desktop"}},e.params||{},"path,title,ver,password,encrypt"),encryption:this.getEncryptionOpts(e.params),timeout:18e5,callback:e.callback,scope:e.scope||window})},copyOfficeNode:function(e){this.getGlobalPassword()&&(e.params.password=this.getGlobalPassword()),this.findAppWindow().sendWebAPI({api:"SYNO.Office.Node",version:2,method:"copy",params:this.copyTo({commit_msg:{device:"desktop"}},e.params||{},"files,path,to_parent_folder,title,ver,comment,password,passwords,conflict_action,content"),encryption:this.getEncryptionOpts(e.params),callback:e.callback,scope:e.scope||window})},checkNodePassword:function(e){this.findAppWindow().sendWebAPI({api:"SYNO.Office.Node.Encrypt",version:1,method:"check",params:this.copyTo({},e.params||{},"object_id,path,password"),encryption:this.getEncryptionOpts(e.params),callback:e.callback,scope:e.scope||window})},restoreVersion:function(e){this.findAppWindow().sendWebAPI({api:"SYNO.Office.Node.Version",version:1,method:"restore",params:this.copyTo({password:this.getGlobalPassword()},e.params||{},"object_id,ver,password,path,to_parent_folder"),encryption:this.getEncryptionOpts(e.params),callback:e.callback,scope:e.scope||window})},renameVersion:function(e){this.findAppWindow().sendWebAPI({api:"SYNO.Office.Node.Version",version:1,method:"rename",params:this.copyTo({},e.params||{},"object_id,ver,ver_name,overwrite"),callback:e.callback,scope:e.scope||window})},importNode:function(e){var t=this.copyTo({},e.params||{},"files");this.findAppWindow().sendWebAPI({api:"SYNO.Office.Import",version:1,method:"start",params:t,encryption:this.getEncryptionOpts(t),callback:e.callback,scope:e.scope||window})},importNodeDone:function(e){this.findAppWindow().sendWebAPI({api:"SYNO.Office.Import",version:1,method:"stop",params:this.copyTo({},e.params||{},"task_id"),callback:e.callback,scope:e.scope})},checkImportOfficeByDrive:function(e){let t=this.copyTo({},e.params,"files,conflict_action,to_parent_folder"),i=[Ext.apply({params:Ext.apply({dry_run:!0},t)},SYNO.SDS.Drive.WebAPIDesc.convert_office),Ext.apply({params:t},SYNO.SDS.Drive.WebAPIDesc.convert_office)];this.findAppWindow().sendWebAPI({timeout:36e5,compound:{params:i,stopwhenerror:!0},callback:e.callback,scope:e.scope})},checkImportOffice:function(e){var t=this.copyTo({},e.params||{},"path,password,files");this.findAppWindow().sendWebAPI({api:"SYNO.Office.Import",version:1,method:"check",params:t,encryption:this.getEncryptionOpts(t),callback:e.callback,scope:e.scope})},convertOffice:function(e){var t=this.copyTo({},e.params||{},"files,conflict_action,to_parent_folder");this.findAppWindow().sendWebAPI({api:"SYNO.Office.Import",version:1,method:"convert",params:t,encryption:this.getEncryptionOpts(t),callback:e.callback,scope:e.scope||window})},exportNode:function(e,t){var i=this.copyTo({password:this.getGlobalPassword()},t.params||{},"path,object_id,password,format,ver");o().download({api:"SYNO.Office.Export",version:1,method:"download",params:i,encryption:this.getEncryptionOpts(i),filename:e,timeout:18e5,onError:t.onError.bind(t.scope)})},setUISetting:function(e){return o().request({api:"SYNO.Office.Setting.UI",method:"set",version:1,params:this.copyTo({},e.params,"object_id,zoom_level,pagination,outline,spell_check,collapsed_sections")})},getUISetting:function(e){return o().request({api:"SYNO.Office.Setting.UI",method:"get",version:1,params:this.copyTo({},e.params,"object_id")})},setPersonSetting:function(e){return o().request({api:"SYNO.Office.Setting.Person",method:"set",version:1,params:this.copyTo({},e.params,"notify_when,notify_by_overview,notify_by_email,notify_by_chat,object_id")})},getPersonSetting:function(e){return o().request({api:"SYNO.Office.Setting.Person",method:"get",version:1,params:this.copyTo({},e.params,"object_id")})},setSettingAsync:function(e){return o().request({api:"SYNO.Office.Setting",method:"set",version:1,params:this.copyTo({},e.params,"default_locale,formula_preview,ruler,formatting_marks,preference_settings,focus_mode,hide_hint,formula_panel_opened,formula_panel_expanded,ai_translator_language,ai_helper_languages,side_panel_width")})},getSettingAsync:function(){return o().request({api:"SYNO.Office.Setting",method:"get",version:1,params:{}})},listTemplate:function(e){this.findAppWindow().sendWebAPI({api:"SYNO.Office.Template",version:1,method:"list",params:this.copyTo({},e.params,"ntype"),callback:e.callback,scope:e.scope||window})},makeTemplate:function(e){this.findAppWindow().sendWebAPI({api:"SYNO.Office.Template",version:1,method:"make",params:this.copyTo({},e.params,"object_id,title,default_title,password,encrypt,parent_id,ver"),encryption:this.getEncryptionOpts(e.params),callback:e.callback,scope:e.scope||window})},listTheme:function(e){this.findAppWindow().sendWebAPI({api:"SYNO.Office.Theme",version:1,method:"list",params:this.copyTo({},e.params,"ntype"),callback:e.callback,scope:e.scope||window})},applyTheme:function(e){this.findAppWindow().sendWebAPI({api:"SYNO.Office.Theme",version:1,method:"apply",params:this.copyTo({},e.params,"ntype,object_id,password,theme_id,source_object_id,source_password,source_file_ids"),encryption:this.getEncryptionOpts(e.params),callback:e.callback,scope:e.scope||window})},renameTemplate:function(e){this.findAppWindow().sendWebAPI({api:"SYNO.Office.Template",version:1,method:"set",params:this.copyTo({},e.params,"object_id,title"),callback:e.callback,scope:e.scope||window})},deleteTemplate:function(e){this.findAppWindow().sendWebAPI({api:"SYNO.Office.Template",version:1,method:"delete",params:this.copyTo({},e.params,"object_id"),callback:e.callback,scope:e.scope||window})},saveTemplate:function(e){var t=this.copyTo({},e.params||{},"title,path,encrypt,file,size");Ext.iterate(t,function(e,i){t[e]=JSON.stringify(i)});var i=Promise.resolve(t);return e.params.encrypt&&(i=this.encryptPasswordPromise(e.params.password||this.getGlobalPassword()).then(function(e){return Object.assign(t,e)})),i.then(this._requestSaveTemplate.bind(this,e))},_requestSaveTemplate:function(e,t){var i=new window.FormData;Ext.iterate(t,function(e,t){i.append(e,t)}),SYNO.SDS.Office.Utils.isDriveAdvSharing()&&i.append("sharing_token",JSON.stringify(SYNO.SDS.Drive.Sharing.GetSharingToken()));var n=e.params.file,o=e.params.raw;i.append("raw",o,n.name||"image"),this.findAppWindow().sendWebAPI({api:"SYNO.Office.Template",version:1,method:"save",isUpload:!0,timeout:18e5,params:{},html5upload:!0,uploadData:i,callback:e.callback.bind(e.scope||window),scope:this})},shareTemplate:function(e){this.findAppWindow().sendWebAPI({api:"SYNO.Office.Template.Permission",version:1,method:"set",params:this.copyTo({},e.params||{},"object_id,perm"),callback:e.callback,scope:e.scope||window})},getTemplateShardLinkAndInfo:function(e){var t=[{api:"SYNO.SynologyDrive.Sharing",version:2,method:"get_base_url"},{api:"SYNO.Office.Template",version:1,method:"get",params:this.copyTo({},e.params||{},"object_id,field")}];this.findAppWindow().sendWebAPI({compound:{params:t,stopwhenerror:!1},callback:e.callback,scope:e.scope})},leaveTemplate:function(e,t){var i=[{api:"SYNO.Office.Template.Permission",version:1,method:"set",params:this.copyTo({},e.params||{},"object_id,perm")}];t&&i.push({api:"SYNO.Office.Node",version:1,method:"get",params:this.copyTo({},e.params||{},"object_id,ver,field,basic")}),this.findAppWindow().sendWebAPI({compound:{params:i,stopwhenerror:!0},callback:e.callback,scope:e.scope})},requestTemplate:function(e){this.appWindow.sendWebAPI({api:"SYNO.Office.Template",version:1,method:"request",params:this.copyTo({},e.params||{},"object_id"),callback:e.callback,scope:e.scope||window})},listTemplateGroup:function(e){this.findAppWindow().sendWebAPI({api:"SYNO.Office.Template.Sharing.Group",version:1,method:"list",callback:e.callback,scope:e.scope||window})},publishTemplate:function(e){var t={api:"SYNO.Office.Template",version:1,method:"publish",isUpload:!0,timeout:18e5,params:{}},i=new window.FormData,n=this.copyTo({},e.params,"object_id,publish_version,file,size");Ext.iterate(n,function(e,t){i.append(e,JSON.stringify(t))});var o=e.params.file,r=e.params.raw;i.append("raw",r,o.name||"image"),t.html5upload=!0,t.uploadData=i,t.callback=function(t,i){e.callback.call(e.scope||window,t,i)},t.scope=this,this.findAppWindow().sendWebAPI(t)},getDocOutline:function(e){this.findAppWindow().sendWebAPI({api:"SYNO.Office.Doc.Outline",method:"get",version:1,params:e.params,callback:e.callback,scope:e.scope||window})},setDocOutline:function(e){this.findAppWindow().sendWebAPI({api:"SYNO.Office.Doc.Outline",method:"set",version:1,params:this.copyTo({},e.params||{},"object_id,outline"),callback:e.callback,scope:e.scope||window})},getFileSharingInfoPromise:function(e){return SYNO.SDS.Office.GetWindow().sendWebAPIPromise({compound:{stopwhenerror:!1,params:[Object.assign({},SYNO.SDS.Drive.WebAPIDesc.get_file,{params:{path:e}}),Object.assign({},SYNO.SDS.Drive.WebAPIDesc.get_adv_sharing,{params:{path:e}})]}})},getSharingToken:async function(e){return await o().request({api:"SYNO.SynologyDrive.AdvanceSharing.Public",method:"auth",version:1,params:{sharing_link:e}})},getMetaInfo:function(e){this.appWindow.sendWebAPI({api:"SYNO.Office.Shard.Info",version:1,method:"get",params:{additional:["Content-Security-Policy"]},callback:e.callback,scope:e.scope||window})},getDriveInfo:function(){return o().request({api:"SYNO.Office.Shard.Info",version:1,method:"get",params:{additional:["drive"]}})},statics:{getImageRelativeUrl:function(e,t,i,n,o,r,a){void 0===a&&(a=!0);var s="oo/file/"+encodeURIComponent(t)+"/"+encodeURIComponent(i);SYNO.SDS.Office.Utils.isIgnoreVersion()?s+="/ver/ignore_version":o&&(s+="/ver/"+encodeURIComponent(o)),s+="/"+encodeURIComponent(n||"img");var l={};r||(l.raw=!1),a||Ext.apply(l,SYNO.SDS.Office.Env.getSessionToken());let c=!1;return(SYNO.SDS.Office.Utils.isDriveAdvSharing()?l.sharing_token=SYNO.SDS.Drive.Sharing.GetSharingToken():c=!l.tid,s=Ext.urlAppend(s,Ext.urlEncode(SYNO.API.EncodeParams(l)),c),e)?Ext.urlAppend(s,Ext.urlEncode(SYNO.API.EncodeParams({linkId:e})),!1):s},getImageAbsoluteUrl:function(e,t,i,n,o,r){var a=SYNO.SDS.Office.WindowHelper.getBaseAppPath();return!0!==SYNO.SDS.Office.Utils.isQuickconnect()||a.startsWith("/direct/")||SYNO.SDS.Office.Utils.isQuickconnectDirect()||(a="/direct"+a),"/"!==a[a.length-1]&&(a+="/"),location.protocol+"//"+location.host+a+this.getImageRelativeUrl(e,t,i,n,o,r,!1)},getImageUrl(e,t,i,n,o,r,a){return a?this.getImageAbsoluteUrl(e,t,i,n,o,r):this.getImageRelativeUrl(e,t,i,n,o,r)},getFileRequestUrl:function(e){return SYNO.SDS.Office.WindowHelper.getBaseAppURL()+"/d/f/"+e}}})},25374:function(e,t,i){"use strict";i.d(t,{o:()=>h}),i(17176);let n=SYNO.SDS.Drive.Sharing;var o,r,a=i.n(n);_S("standaloneAppName")&&(SYNO.SDS.Utils.Logout.doRefresh=function(){var e=SYNO.SDS.Office.Utils.getAppURL();window.location.href===window.location.origin+e?window.location.reload():window.location.href=e},SYNO.SDS.Strings["SYNO.SDS.SheetStation.Sheet.Application"]=SYNO.SDS.Strings["SYNO.SDS.Office.Doc.Application"]=SYNO.SDS.Strings["SYNO.SDS.Office.Doc.MainWindow"]=SYNO.SDS.Strings["SYNO.SDS.Office.Presentation.Application"]=SYNO.SDS.Strings["SYNO.SDS.Office.Presentation.MainWindow"]=SYNO.SDS.Strings["SYNO.SDS.Office.Sheet.Application"]=SYNO.SDS.Strings["SYNO.SDS.Office.Sheet.MainWindow"]=SYNO.SDS.Strings["SYNO.SDS.Office.BasicInstance"]=SYNO.SDS.Strings["SYNO.SDS.Office.BasicApp"]=SYNO.SDS.Strings["SYNO.SDS.Office.AppInstance"],SYNO.SDS.Strings["SYNO.SDS.CSTN.Instance"]||(SYNO.SDS.Strings["SYNO.SDS.CSTN.Instance"]=SYNO.SDS.Strings["SYNO.SDS.Drive.Application"]),a().GetSharingLink()&&a().Override(),SYNO.ux.Menu.prototype.useARIA=!1,Ext.menu.Menu.prototype.initComponent=(o=Ext.menu.Menu.prototype.initComponent,function(){o.apply(this,arguments),this.floating&&Ext.EventManager.removeResizeListener(this.hide,this)}),Ext.menu.Menu.prototype.onHide=(r=Ext.menu.Menu.prototype.onHide,function(){if(r.apply(this,arguments),!this.parentMenu&&!this.allowOtherMenus){var e=document.activeElement;(e===document.body||SYNO.SDS.Office.EditorUtils.parentContains(e,"x-menu"))&&SYNO.SDS.Office.Utils.focusEditor()}}));let s=SYNO.SDS.Drive.Layout;var l=i.n(s);_S("standaloneAppName")&&l()();var c=i(46728),d=i(61367),u=i(17370);let h=Ext.define("SYNO.SDS.Office.AppInstance",{extend:"SYNO.SDS.AppInstance",skipRecord:!0,constructor:function(){SYNO.SDS.AppInstance.prototype.constructor.apply(this,arguments);var e=["syno-o-theme","syno-d-theme"];if((0,d.isMobileLayout)()){Ext.QuickTips.disable();let t=SYNO.SDS.MessageBoxV5.prototype,i=document.body.clientWidth;i<t.minWidth+70&&(t.minWidth=t.maxWidth=i-70),e.push("syno-o-mobile")}SYNO.SDS.Office.Utils.isPublicShareOrImportView()&&e.push("syno-o-public"),SYNO.SDS.Drive.Utils.isSmallScreenSize()&&e.push("syno-d-small-theme"),Ext.getBody().addClass(e)},getUserSettings:function(){if(SYNO.SDS.Drive.Utils.isAppAuthorized())return SYNO.SDS.AppInstance.prototype.getUserSettings.apply(this,arguments)},setUserSettings:function(){SYNO.SDS.Drive.Utils.isAppAuthorized()&&SYNO.SDS.AppInstance.prototype.setUserSettings.apply(this,arguments)},beforeOpen:function(){if((0,c.rp)()){var e={modal:!0,draggable:!1,renderTo:document.body};return new SYNO.SDS.MessageBoxV5(e).getWrapper({preventDelay:!0}).alert("",String.format(SYNO.SDS.Office._T("error","not_support_browser"),(0,c.qE)()),function(){(0,u.on)()}),SYNO.SDS.Office.Utils.removeLoadingPage(),!1}return!this.onCheckRedirect()},onCheckRedirect:function(){var e,t=Ext.urlDecode(window.location.search.substr(1));if(t.launchParam){var i=Ext.urlDecode(t.launchParam);if(i.link){var n=i.link,o=i.sharing_link;return delete t.launchParam,delete t.launchApp,e=o?SYNO.SDS.Office.URL.getDriveAdvSharingURL(n,o):SYNO.SDS.Office.URL.getOfficeURL(n),e=Ext.urlAppend(e,Ext.urlEncode(t),!1),window.location.hash&&(e+=window.location.hash),window.location.href=e,!0}if(i.object_id){var r=i.object_id;if(-1===r.lastIndexOf(".")){switch(SYNO.SDS.Session.standaloneAppName){case"SYNO.SDS.Office.Sheet.Application":r+=".sh";break;case"SYNO.SDS.Office.Doc.Application":r+=".doc";break;case"SYNO.SDS.Office.Presentation.Application":r+=".slide"}i.object_id=r,t.launchParam=Ext.urlEncode(i);var a=window.location.pathname;return a=a.substr(1,a.lastIndexOf("/")),e=Ext.urlAppend(window.location.protocol+"//"+window.location.host+"/"+a,Ext.urlEncode(t),!1),window.location.hash&&(e+=window.location.hash),window.location.href=e,!0}}}return!1}})},42977:function(e,t,i){"use strict";i.d(t,{o:()=>H});var n=i(68784),o=i(3713),r=i(14014),a=i(15149);i(76660);var s=i(40109),l=i(61367),c=i(89087);let d=SYNO.SDS.Drive.RoundButton;var u=i.n(d);let h=SYNO.SDS.Drive.Toolbar;var p=i.n(h);Ext.define("SYNO.SDS.Office.Toolbar",{extend:p(),constructor:function(e){this.owner=e.owner,p().prototype.constructor.call(this,Ext.apply({},e))},onRegEvent:function(){var e=this.findAppWindow().getEventMgr();this.mon(e,{scope:this,getlink:this.onGetLink}),SYNO.SDS.Office.Utils.registerInitEvent(function(){this.onPermChange(),this.mon(e,{scope:this,settingready:this.onPermChange,permchange:this.onPermChange}),SYNO.SDS.Drive.Utils.isAppAuthorized()&&this.reloadLabelStores()},this)},onBeforeShow:function(){this.onPermChange()},onPermChange:function(){(0,s.gR)(this.items.get("top").items.items.slice(2),!0)},onAddTopItems:function(e){var t=SYNO.SDS.Office._T;e.push([{disabled:!0,cls:"syno-d-tag-btn",itemId:"tag",tooltip:t("category","tag"),scope:this,menuAlign:"tl-tr",menu:new SYNO.SDS.Drive.SearchTagMenu({defaultOffsets:[8,0],GetSeletions:(function(){return[{labels:Ext.isEmpty(this.labels)?SYNO.SDS.Office.Env.labels:this.labels}]}).createDelegate(this),store:this.getLabelStore(),sharedLabelStore:this.getSharedLabelStore(),listeners:{scope:this,apply:this.onChangeTag,beforeshow:function(){this.findAppWindow().getAction().getOfficeNode({basic:!0,object_id:SYNO.SDS.Office.Env.objectId}),this.reloadLabelStores()}}}),listeners:{scope:this,single:!0,render:function(e){this.mon(e.getEl(),"mousedown",function(e){e.preventDefault()})}}},{disabled:!0,cls:"syno-d-share-btn",itemId:"share",tooltip:t("common","share"),scope:this,handler:function(){this.findAppWindow().getAction().shareNode()}},this.linkBtn=new(u())({disabled:!0,cls:"syno-d-link-btn",itemId:"get_file_link",tooltip:t("action","get_file_link"),scope:this,handler:this.onGetLink}),{disabled:!0,itemId:"view_history",cls:"syno-d-history-icon",tooltip:t("info","view_history"),hidden:!SYNO.SDS.StatusNotifier.isAppEnabled("SYNO.SDS.Drive.Application"),scope:this,handler:this.onNodeHistory},{disabled:!0,itemId:"encrypt",cls:"syno-d-encrypt-icon",tooltip:t("sheet","encrypt"),hidden:!SYNO.SDS.StatusNotifier.isAppEnabled("SYNO.SDS.Drive.Application"),scope:this,handler:this.onNodeEncrypt},{disabled:!0,itemId:"information",cls:"syno-o-info-icon",tooltip:t("action","info"),scope:this,handler:function(){this.findAppWindow().getAction().infoNode()}}])},onGetLink:function(){this.findAppWindow().getAction().openGetLinkMenu(this.linkBtn.getEl())},isShowChat:function(){return!(!1===_S("isLogined")||!SYNO.SDS.StatusNotifier.isAppEnabled("SYNO.SDS.Chat.Application")||11906>parseInt(SYNO.SDS.Config.FnMap["SYNO.SDS.Chat.Application"].config.version.split("-")[1],10)||(0,l.isMobileLayout)())},onAddBottomItems:function(e){if(this.isShowChat()){var t=this.onCreateAccountBtn();t.on("render",function(e){this.mon(e.getEl(),"mousedown",function(e){e.preventDefault()})},this,{single:!0}),e.unshift({xtype:"box",id:this.chatBtnId=Ext.id()}),e.push(t)}else p().prototype.onAddBottomItems.apply(this,arguments);this.findAppWindow().getAction().getSettingPromise().then(()=>{this.onUpdateUserIcon()})},onBottomAfterLayout:function(){this.isShowChat()&&SYNO.SDS.Office.Utils.registerInitEvent(this.onAddChatBtn,this,500)},getLabelStore:function(){return this.tagStore||(this.tagStore=new SYNO.API.Store({autoLoad:!1,remoteSort:!1,proxy:new SYNO.API.Proxy({api:"SYNO.SynologyDrive.Labels",version:1,method:"list",listeners:{scope:this,beforeload:function(e,t){var i=e.activeRequest.read;i&&Ext.Ajax.abort(i)}}}),reader:new Ext.data.JsonReader({root:"items",id:"label_id"},[{name:"label_id"},{name:"name"},{name:"color",convert:function(e,t){return e.substr(1)}},{name:"position"},{name:"category",defaultValue:"label"}])}),this.findAppWindow().addManagedComponent(this.tagStore)),this.tagStore},getSharedLabelStore:function(){return this.sharedLabelStore||(this.sharedLabelStore=new SYNO.API.Store({autoLoad:!1,remoteSort:!1,proxy:new SYNO.API.Proxy({api:"SYNO.SynologyDrive.Labels",version:1,method:"list",listeners:{scope:this,beforeload:function(e,t){var i=e.activeRequest.read;i&&Ext.Ajax.abort(i)}}}),baseParams:{type:"shared_label"},reader:new Ext.data.JsonReader({root:"items",id:"label_id"},[{name:"label_id"},{name:"name"},{name:"color",convert:function(e,t){return e.substr(1)}},{name:"position"},{name:"category",defaultValue:"shared_label"},{name:"permission"},{name:"display"},{name:"apply_permission"}])}),this.findAppWindow().addManagedComponent(this.tagStore)),this.sharedLabelStore},onAddChatBtn:function(){EarlyInit.isCustomPage()?(SYNO.SDS.reloadJSConfig.defer(300,SYNO.SDS),this.mon(SYNO.SDS.StatusNotifier,"jsconfigLoaded",function(){this._onAddChatBtn()},this,{single:!0})):this._onAddChatBtn()},_onAddChatBtn:function(){if(SYNO.SDS.StatusNotifier.isAppEnabled("SYNO.SDS.Chat.Application")){var e=this;SYNO.SDS.Config.FnMap[SYNO.SDS.Session.standaloneAppName].config.preventDesktopMask=!0,SYNO.SDS.AppLaunch("SYNO.SDS.Chat.Integration.Application",{style:{right:"15px",bottom:"4px"},integration:{app:SYNO.SDS.Office._T("app","displayname"),key:SYNO.SDS.Office.Env.objectId,displayName:SYNO.SDS.Office.Utils.parseDisplayName(SYNO.SDS.Office.Env.title)}},null,function(){var t=this.findAppWindow(),i=SYNO.SDS.Chat.AppUtils.Controller.App;t.mon(i,"loginfail",function(){SYNO.SDS.Office.Env.is_chat=!1},this,{single:!0}),t.mon(i,"appready",function(){SYNO.SDS.Office.Env.is_chat=!0,this.findAppWindow().getEventMgr().fireEvent("chatready",this),e.onPatchFileChooser()},this,{single:!0}),new SYNO.SDS.Chat.Integration.Main.PluginButton({style:{"min-width":"initial"},renderTo:this.ownerCt.chatBtnId}),this.doLayout(),this.mon(this.findAppWindow(),"titlechange",function(e,t){SYNO.SDS.Chat.Integration.Export.setHiddenChannelName(SYNO.SDS.Office.Utils.parseDisplayName(SYNO.SDS.Office.Env.title))},this)},this.items.get("bottom"))}},onPatchFileChooser:function(){if(SYNO.SDS.Utils.FileChooserV6){var e=SYNO.SDS.Utils.FileChooserV6.Chooser.prototype;e.ori_initBottomPanelConfig=e.initBottomPanelConfig,e.initBottomPanelConfig=function(){var t=e.ori_initBottomPanelConfig.apply(this,arguments),i=t.items[1].items[1].items,n=+("blue"!==i[0].btnStyle);return i[n].btnStyle="default",i[+(0===n)].btnStyle="grey",t}}},onChangeTag:function(e,t,i){var n=[];e.forEach(function(e,t,i){n.push({action:"add",label_id:e.label_id})}),t.forEach(function(e,t,i){n.push({action:"delete",label_id:e.label_id})}),this.labels=i,this.findAppWindow().getAction().setNodeTag({permanent_link:[SYNO.SDS.Office.Env.link_id],labels:n},function(e,t){e?(this.findAppWindow().getAction().getOfficeNode({basic:!0,object_id:SYNO.SDS.Office.Env.objectId},function(){this.labels=null},this),this.reloadLabelStores()):(this.labels=null,this.findAppWindow().getMsgBox().alert("",SYNO.SDS.Drive.Utils.getErrorStr(t)))},this)},reloadLabelStores:function(){this.getLabelStore().reload(),parseInt(SYNO.SDS.Drive.Define.Info.version?.build,10)>27405&&this.getSharedLabelStore().reload()},onNodeHistory:function(){this.findAppWindow().openHistoryWindow()},onNodeEncrypt:function(){this.findAppWindow().getAction().encryptNode()},onClickHelp:function(){SYNO.SDS.Office.Utils.showHelp()},onLogin:function(){window.location=SYNO.SDS.Office.Utils.getAppURL()},getVuePanel:function(){return this.getShareVuePanel()},getShareVuePanel:function(){return this.shareGetLinkPanel?this.shareGetLinkPanel:this.shareGetLinkPanel=(0,c.Xm)({vueClass:SYNO.SDS.Drive.Vue.ShareGetLinkMenu,mountId:"shareGetLinkMenu",layout:"fit",cls:"ShareGetLinkMenu",owner:this.findAppWindow(),vueOptions:{propsData:{getAlignment:function(){return{pos:"tl->tr",offset:[18,-12]}},getArrowPosition:function(){return{offsetX:-6,offsetY:21}}}}})}});var f=i(58525);i(6235),i(85213),i(59014);var g=i(32867),m=i(12299),v=i(71783);let b=SYNO.SDS.Drive.PasswordPanel;var y=i.n(b);Ext.define("SYNO.SDS.Office.PasswordPanel",{extend:y(),constructor:function(e){var t=SYNO.SDS.Office._T;y().prototype.constructor.call(this,Object.assign({title:t("file","encrypted_file"),prompt:t("password","prompt")},e))},validateAsync:function(){return new Promise((function(e,t){this.findAppWindow().getWebAPI().checkNodePassword({params:{object_id:SYNO.SDS.Office.Env.objectId,password:this.passField.getValue()},callback:function(i,n){(i?e:t)(n)}})}).bind(this))},onValidateError:function(e){this.setFormDisabled(!1),this.setError((0,v.v2)(e))},onValidateSuccess:function(e){this.fireEvent("success",this,this.passField.getValue())}});var w=i(1590),_=i(30947),x=i.n(_);let S=Date.now(),C=new BroadcastChannel("office_desktop_timeout"),k=null;async function I(){S=Date.now(),C.postMessage(S),await x().request({api:"SYNO.Core.Desktop.Timeout",version:1,method:"reset"})}function A(){T(),k=setTimeout(async()=>{await I(),A()},Math.max(60*Math.min(_S("dsm_timeout"),10)*800-(Date.now()-S),0))}function T(){k&&(clearTimeout(k),k=null)}var E=i(63104),R=i(46728),D=i(17370),O=i(32334),M=i(42152),N=i(90399),P=i(4077),L=i(98751),B=i(51633),F=i(60537),V=i(63105);async function z(e){void 0===e&&(e="Spreadsheet");let t={api:"SYNO.Entry.Request",method:"request",version:1,compound:{stopwhenerror:!1,mode:"parallel",params:[{api:"SYNO.Core.Package.Server",method:"list",version:2,params:{filter_ids:[e]}},{api:"SYNO.Core.Package.Info",method:"get",version:1}]}};try{let{result:[{data:{packages:e,beta_packages:i}},{data:{config:n}}]}=await x().request(t);return{newVersion:e?.[0]?.version??null,betaVersion:n.blBetaChannel?i?.[0]?.version??null:null}}catch(e){return SYNO.Debug.error("Unable to get package infos: %o",e),{newVersion:null,betaVersion:null}}}Ext.ns("SYNO.SDS.Office");let H=Ext.define("SYNO.SDS.Office.BaseWindow",{extend:"SYNO.SDS.AppWindow",isBeta:!1,aboutTitleColor:"#1EB9C7",focusMode:M.Q.NONE,constructor:function(e){SYNO.SDS.Drive.Utils.isAppAuthorized()&&(SYNO.SDS.JSLoad("SYNO.SDS.Drive.Upload.Application"),SYNO.SDS.Drive.Utils.jsLoad()),this.addEvents({beforedestroy:!0}),this.getAction().initEnv(),(0,f.v0)(),SYNO.SDS.AppWindow.prototype.constructor.call(this,this.fillConfig(e)),SYNO.SDS.Drive.Utils.isAppAuthorized()&&!SYNO.SDS.System&&(SYNO.SDS.System=new SYNO.SDS._System),this.onRegEvent(),SYNO.SDS.Office.URL.updateAppURL(),SYNO.SDS.Office.URL.updateChatCSSlink(),(0,w.r)(),SYNO.SDS.Drive.Utils.isAppAuthorized()&&SYNO.SDS.Office.Utils.registerInitEvent(function(){this.recordAppOpened()},this),(0,D.u1)(()=>!this.getAction().isCreatingAttachments()&&!(document.activeElement&&(0,F.Xl)(document.activeElement)&&document.activeElement.value.length>0))},toFront(){this.manager.bringToFront(this)},onActivate:function(){SYNO.SDS.AppWindow.prototype.onActivate.apply(this,arguments),SYNO.SDS.Office.Utils.focusEditor()},isAlwaysOnBottom:function(){return!0},blinkModalChild:function(e){SYNO.SDS.AppWindow.prototype.blinkModalChild.apply(this,arguments),e.preventDefault()},beforeconstructor:function(e){SYNO.SDS.Office.Window=this,SYNO.SDS.Office.Env.init(e.appInstance.opts),(0,f.PV)(),this.state="loading",this.eventmgr=new SYNO.SDS.Office.EventMgr({appWindow:this,listeners:{scope:this,"init:done":this.onInitDone,"init:error":this.onInitError,publishtpldone:this.showPublishTplToastBox,setnodepermdone:function(){this.findAppWindow().getAction().getOfficeNode({basic:!0,object_id:SYNO.SDS.Office.Env.objectId})}}})},onOpen:function(e){return SYNO.SDS.AppWindow.prototype.onOpen.apply(this,arguments),this.onRequest(e)},onRequest:function(e){return this.initApp(e),SYNO.SDS.AppWindow.prototype.onRequest.apply(this,arguments)},getWebAPI:function(){return this.webapimgr||(this.webapimgr=new o.Z({appWindow:this}))},getAction:function(){return this.actionmgr||(this.actionmgr=new r.Z({}))},getEventMgr:function(){return this.eventmgr},fillConfig:function(e){(0,l.isMobileLayout)()&&this.insertMobileViewPort();var t,i=[];let n=this.hasNodeError();!SYNO.SDS.Office.Env.link_id&&n?.errors?.link_id&&57373===n?.code?(SYNO.SDS.Office.Env.link_id=n.errors.link_id,this.onReload({keepPassword:!1})):n?(t=this.getPermPanel(),i.push(t)):(t=this.getWinPanel(),SYNO.SDS.Office.Env.isEncrypt&&(SYNO.SDS.Office.Utils.removeLoadingPage(),t=this.getPasswordPanel(),i.push(this.getPasswordPanel())),i.push([this.getWinPanel(),this.getPermPanel()]));var o={renderTo:Ext.getBody(),height:Ext.lib.Dom.getViewHeight(!0),layout:"card",deferredRender:!0,activeItem:t,items:i,listeners:{buffer:100,single:!0,scope:this,show:function(){(0,l.isMobileLayout)()&&this.fitContainer()}}};return o.useDefualtKey=!1,Ext.apply(o,e),o},hasHeaderMeta:function(e){let t=document.getElementsByTagName("meta");for(let i=0;i<t.length;++i)if(t[i].getAttribute("name")===e)return!0;return!1},insertMobileViewPort:function(){if(!this.hasHeaderMeta("viewport")){var e=document.createElement("meta");e.setAttribute("name","viewport"),e.setAttribute("content","width=device-width,initial-scale=1.0,minimum-scale=1,maximum-scale=1"),document.head.appendChild(e)}},init:function(){this.hasNodeError()||SYNO.SDS.AppWindow.prototype.init.apply(this,arguments)},hasNodeError:function(){return window.getDriveErrCode&&window.getDriveErrCode()},getWinPanel:function(e){return this.winpanel||(this.winpanel=new Ext.Container({anchor:"100%, 100%",layout:"border",hideMode:"offsets",items:[this.getLeftPanel(),this.getMainPanel()]}))},getLeftPanel:function(){return this.toolbar||(this.toolbar=new SYNO.SDS.Office.Toolbar({region:"west",owner:this}))},isInFocusMode:function(){return this.focusMode!==M.Q.NONE},getFocusMode:function(){return this.focusMode},setFocusMode:function(e,t){if(void 0===t&&(t=!0),(0,l.isMobileLayout)()||SYNO.SDS.Office.Env.isOfficeOwned||SYNO.SDS.Office.Env.is_template||e===M.Q.HIDE_MENU&&"readonly"===SYNO.SDS.Office.Utils.getEditorMode())return;this.focusMode=e;let i=e!==M.Q.NONE;if(this.getLeftPanel()[i?"hide":"show"](),this.getMainPanel().onFocusModeChange(),this.doLayout(),M.Q.HIDE_ALL===e&&(0,g.o0)((0,O.$)("focus_mode","hide_all_toolbars_message"),3e3),this.getEventMgr().fireEvent("focus_mode_change",e),t&&SYNO.SDS.Drive.Utils.isAppAuthorized()){let t=SYNO.SDS.Office.Env.ntype;(0,P.L)({focus_mode:{[t]:e}})}},handleFocusModeEscape:function(){return M.Q.HIDE_ALL===this.focusMode&&(this.setFocusMode(M.Q.NONE),!0)},fillWindowPadding:function(){},getPasswordPanel:function(){return this.passwdPanel||(this.passwdPanel=new SYNO.SDS.Office.PasswordPanel({owner:this,listeners:{scope:this,success:function(e,t){SYNO.SDS.Office.Utils.setEncryptPassword(SYNO.SDS.Office.Env.objectId,t),this.layout.setActiveItem(this.getWinPanel())}}}))},getPermPanel:function(){return this.permPanel||(this.permPanel=new a.Z({})),this.permPanel},getImageQueue:function(){return this.imagequeue||(this.imagequeue=new SYNO.SDS.Office.ImageLoaderQueue({appWindow:this}),this.addManagedComponent(this.imagequeue)),this.imagequeue},getImageLoader:function(){return SYNO.SDS.Drive.Utils.getImageLoader()},onBeforeDestroy:function(){this.getImageLoader().stop(),SYNO.SDS.AppWindow.prototype.onBeforeDestroy.apply(this,arguments)},showAboutWindow:function(e){this.isModernAboutWindowSupported()?this.showAboutWindowModern(e):this.showAboutWindowLegacy(e)},isModernAboutWindowSupported:function(){return!!SYNO.SDS.AppWindow.prototype.showAboutWindowV2&&parseInt(SYNO.SDS.Drive.Define.Info.version?.build,10)>=26043},getAboutWindowMeta:function(e){let t=this.getJsConfig();return{synoId:"about-window",name:SYNO.SDS.UIString.GetLocalizedString(t.title,t.jsID),icon:SYNO.SDS.UIFeatures.IconSizeManager.getIconPath(t.jsBaseURL+"/images/_Favicon/Office_{0}.png",e.iconType),copyrightYear:t.buildTime?t.buildTime.split("-")[0]:_S&&_S("builddate")?_S("builddate").split("/")[0]:"",isBeta:void 0!==e.isBeta?e.isBeta:this.isBeta||!1,theme:e.theme||{},customCls:e.customCls||""}},showAboutWindowLegacy:function(e){void 0===e&&(e={});let t=this.getAboutWindowMeta({...e,iconType:"desktop"}),i={synoId:t.synoId,name:t.name,desc:e.desc||"",icon:t.icon,copyrightYear:t.copyrightYear,isBeta:t.isBeta,swapNameAndDesc:e.swapNameAndDesc||!1,theme:t.theme,customCls:t.customCls};(0,N.hy)(L.Z,i)},showAboutWindowModern:function(e){void 0===e&&(e={});let t=this.getAboutWindowMeta({...e,iconType:"About"}),i=this.getJsConfig(),n={synoId:t.synoId,title:t.name,icon:t.icon,copyrightYear:t.copyrightYear,beta:t.isBeta,version:i.version,fetchVersion:z,tagline:(0,O.$)("app","tagline"),releaseNotesUrl:"https://www.synology.com/releaseNote/Spreadsheet",theme:t.theme,customCls:t.customCls};(0,N.hy)(B.Z,n)},initApp:function(e){var t,i=EarlyInit.getAction();if(i){if(i.isActing()){this.getAction().beforeRequestNewNode(),this.setStatusBusy(),i.getPromise().then(function(){var t=SYNO.SDS.Office.GetWindow();t.getAction().afterRequestNewNode(),t.clearStatusBusy(),t.initApp(e)});return}var o=i.getResp();switch(i.getFnName()){case"requestCreateNode":case"requestMakeTemplate":if(!o.success)return void this.onInitError(o);SYNO.SDS.Office.LocalStorage.fireEvent("createnodedone",o.data);break;case"requestImportNode":SYNO.SDS.Office.Env.isOfficeOwned=!0;var r=i.getSessionData();r&&r.link&&(SYNO.SDS.Drive.WindowHelper.SHAREMODE="public",SYNO.SDS.Drive.Sharing.Override(),SYNO.SDS.Office.Env.link_id=r.link,window.history.replaceState("",document.title,SYNO.SDS.Office.URL.getDriveAdvSharingURL(r.link,r.sharing_link))),this.getAction().requestImportNode(new Promise(function(e,t){o.success?e(o.data):t(o),EarlyInit.deleteAction()}),r,SYNO.SDS.Office.Env.local_id,r?{session_data:r}:null,r.force_import&&r.to_parent_folder?this.importToOffice:Ext.emptyFn,this);return;case"requestCopyNode":if(!this.initActionForRequestCopyNode(i))return!1;break;default:if(!o.success)return void this.onInitError(o)}}(e=e||{}).object_id=e.object_id||EarlyInit.getObjectId(),SYNO.SDS.Office.Env.init(e),(0,f.PV)();var a=SYNO.SDS.Office.Env.objectId,s=SYNO.SDS.Office.Env.isEncrypt,l=s?SYNO.SDS.Office.Utils.getEncryptPassword(a):void 0;if(SYNO.SDS.Office.Env.local_id){var c=SYNO.SDS.Office.Env.local_id,d=SYNO.SDS.Office.LocalStorage.get(c);d&&d.session_data&&(SYNO.SDS.Office.Env.setSessionItem("session_data",d.session_data),SYNO.SDS.Office.LocalStorage.remove(c))}if(!a||this.hasNodeError()){var u=SYNO.SDS.Office.Env.getHashParam();if(u&&"creating"===u.action){"pending"!==this.state&&(this.setStatusBusy(void 0,void 0,1),this.state="pending");return}this.onInitError(window.getDriveErrCode?window.getDriveErrCode():null);return}if(this.layout.activeItem!==this.getWinPanel())return this.mon(this.getWinPanel(),"activate",function(){this.initApp(e)},this,{single:!0}),l&&this.layout.setActiveItem(this.getWinPanel()),!1;if(s&&!l)return this.layout.activeItem!==this.getPasswordPanel()&&(t=SYNO.SDS.Office.Env.link_id?SYNO.SDS.Office.URL.getOfficeURL(SYNO.SDS.Office.Env.link_id):SYNO.SDS.Office.URL.getOfficeObjURL(SYNO.SDS.Office.Env.objectId,{encrypt:!0}),SYNO.SDS.Office.URL.redirectURL(t)),!1;"pending"===this.state&&(this.clearStatusBusy(),this.state="loading"),this.maskCnt||this.setStatusBusy(void 0,void 0,1);let h=(0,f.VF)(),p=(0,f.O_)(),g=(0,f.eL)();return(0,P.$)().then(async e=>{await h.init(e),V.tn.init(!p.isPublicShare&&!p.isImport&&!p.isRecycled&&g.readable&&h.useAi)}),V.tn.isAIFunctionAvailable(),(0,n.zk)(this),!0},initActionForRequestCopyNode:function(e){let t=e.getResp();if(!t.success)return this.onInitError(t),!1;let{translation:i}=e.getSessionData(),n={};if(i&&(n.translation=i),window.history.replaceState("",document.title,SYNO.SDS.Office.URL.getOfficeURL(t.data.link_id,void 0,n)),i&&EarlyInit.getLocation()?.hash.length){let e=EarlyInit.getLocation();e.hash="#"+Ext.urlEncode({...Ext.urlDecode(e.hash.slice(1)),translation:i})}return SYNO.SDS.Office.LocalStorage.fireEvent("copynodedone",t.data),!0},isInitLoadingPage:function(){return!SYNO.SDS.Office.Define.Info.init&&(!SYNO.SDS.Office.Env.isEncrypt||!!SYNO.SDS.Office.Utils.hasLoadingPage()&&SYNO.SDS.Office.Utils.getEncryptPassword(SYNO.SDS.Office.Env.objectId))},setStatusBusy:function(){this.isInitLoadingPage()||SYNO.SDS.AppWindow.prototype.setStatusBusy.apply(this,arguments)},appendHash:function(e){var t=SYNO.SDS.Drive.Utils.getHashParam();t=Ext.apply(t,e),SYNO.SDS.Office.URL.setHash(t)},onRegEvent:function(){var e=this.getEventMgr();this.mon(e,{scope:this,getnodedone:this.onGetNodeDone,reloadneed:this.onReload,kick:this.onKick,setnodetitledone:this.onRenameDone,setnodedone:this.onRenameDone,renametemplatedone:this.onRenameDone,permchange:this.onPermChange}),this.mon(e,"getnodedone",function(e){if(e){var t=SYNO.SDS.Drive.Utils.getHashParam()||{};SYNO.SDS.Office.Utils.registerInitEvent(function(){this.doActionByHash(t)},this),this.beautifyURL()}},this,{single:!0}),(0,l.isOSKSupported)()&&(window.visualViewport.addEventListener("resize",this.onMobileVisualViewportResize.bind(this)),window.addEventListener("focusin",this.onMobileBeforeFocusChange.bind(this)),window.addEventListener("focusout",this.onMobileBeforeFocusChange.bind(this)));let t=this.getMainPanel().getPinia();this.rendered&&(0,f.E_)(t).setAppWindowSize({width:this.getWidth(),height:this.getHeight()}),this.mon(this,"resize",(e,i,n)=>{(0,f.E_)(t).setAppWindowSize({width:i,height:n})}),this.getLeftPanel().rendered&&(0,f.E_)(t).setMainToolbarWidth(this.getLeftPanel().getWidth()),this.mon(this.getLeftPanel(),"resize",(e,i,n)=>{"number"==typeof i&&(0,f.E_)(t).setMainToolbarWidth(i)}),this.mon(this.getLeftPanel(),"show",e=>{(0,f.E_)(t).setMainToolbarWidth(e.getWidth())}),this.mon(this.getLeftPanel(),"hide",e=>{(0,f.E_)(t).setMainToolbarWidth(0)})},onPermChange:function(){SYNO.SDS.Office.Utils.isPreviewOnly()||!SYNO.SDS.Office.Utils.isDownloadable()?this.addClass("syno-o-nondownloadable"):this.removeClass("syno-o-nondownloadable");let e=(0,f.eL)();e.mode=SYNO.SDS.Office.Utils.getEditorMode(),e.role=SYNO.SDS.Office.Utils.getPermissionRole(),e.downloadEnabled=SYNO.SDS.Office.Utils.isDownloadable()},onRenameDone:function(e,t,i){if(e){var n=i.title||i.name;Ext.isString(n)&&this.setTitle(n)}},doActionByHash:function(e){var t;"request_office_template"===(e=e||{}).action?(t=e.user,SYNO.SDS.Drive.Define.Info.settingready?this.findAppWindow().getAction().shareTemplate({share_user:t}):this.mon(this.getEventMgr(),"settingready",function(){this.findAppWindow().getAction().shareTemplate({share_user:t})},this,{single:!0}),this.replaceHash()):"sharing"===e.action?(t=e.user,SYNO.SDS.Drive.Define.Info.settingready?this.findAppWindow().getAction().shareNode({share_user:t}):this.mon(this.getEventMgr(),"settingready",function(){this.findAppWindow().getAction().shareNode({share_user:t})},this,{single:!0}),this.replaceHash()):Ext.isEmpty(e.ver)&&Ext.isEmpty(e.version_time)||(this.openHistoryWindow({versionId:e.ver,timestamp:e.version_time},!0),window.location.hash="")},onInitDone:function(){SYNO.SDS.Office.Utils.removeLoadingPage(),this.state="done",this.clearStatusBusy(),SYNO.SDS.Drive.Utils.isAppAuthorized()&&(A(),window.addEventListener("visibilitychange",()=>{document.hidden?T():A()}),C.onmessage=e=>{S=Math.max(S,e.data)}),SYNO.SDS.Office.Env.getSessionItem("open_event_reported","user_event")||setTimeout(()=>{(0,m.c)((0,l.isMobileLayout)()?E.Z.isNativeBridgeAvailable()?"open_app":"open_mobile":"open_pc"),SYNO.SDS.Office.Env.setSessionItem("open_event_reported",1,"user_event")},Math.floor(6e4*Math.random())),this.registerUnloadEvent(),(0,l.isMobileLayout)()&&(this.fitContainer(),E.Z.getInstance()),SYNO.SDS.Office.Utils.isIgnoreVersion()&&this.showBrokenText(),(0,P.$)().then(e=>{if(!e)return;let t=e.focus_mode?.[SYNO.SDS.Office.Env.ntype]??M.Q.NONE;this.setFocusMode(t,!1)})},getBrokenToastText:function(e){var t=String.format('<span id={0} class="action-text" role="button" tabIndex="0">',e);return String.format(SYNO.SDS.Office._T("error","open_git_failed"),t,"</span>")},showBrokenText:function(){var e=Ext.id();SYNO.SDS.Drive.Utils.showToastMsg(this.findAppWindow(),this.getBrokenToastText(e),-1,!0,{textActionId:e,fn:function(){SYNO.SDS.Drive.GetWindow().getAction().copyNodeTo()}})},onMobileVisualViewportResize:function(){((0,l.isOSKSupported)()||(0,l.isAndroid)()&&!(0,l.isAndroidWebview)()&&(0,l.isChrome)()&&(0,R.Vk)()>=108)&&(this.setSize(void 0,window.visualViewport.height),Ext.getBody().setSize(void 0,window.visualViewport.height),window.scrollTo(0,0))},onMobileBeforeFocusChange:function(e){},registerUnloadEvent:function(){SYNO.SDS.Drive.Utils.isAppAuthorized()&&SYNO.SDS.Office.Env.isOfficeOwned&&(Ext.EventManager.on(window,"unload",this.unloadEvent),SYNO.SDS.Office.Env.getSessionItem("msoffice_rm_task_id")&&(SYNO.API.Request({api:"SYNO.Office.Node.Delete",method:"stop",params:{task_id_postfix:SYNO.SDS.Office.Env.getSessionItem("msoffice_rm_task_id")},version:1}),SYNO.SDS.Office.Env.removeSessionItem("msoffice_rm_task_id")))},unregisterUnloadEvent:function(){Ext.EventManager.un(window,"unload",this.unloadEvent)},unloadEvent:function(){var e={api:"SYNO.Office.Node.Delete",method:"start",version:1},t=new Date().getTime().toString(16)+Math.floor(1e3*Math.random()).toString(16),i={task_id_postfix:t,object_id:SYNO.SDS.Office.Env.objectId,delay:60};return SYNO.SDS.Office.Env.setSessionItem("msoffice_rm_task_id",t),navigator.sendBeacon?navigator.sendBeacon(SYNO.API.GetBaseURL(e),Ext.urlEncode(Ext.apply(i))):SYNO.API.Request(Ext.apply(e,{params:i,async:!1,timeout:1e4})),!0},replaceHash:function(e){e?(Ext.isObject(e)&&(e=Ext.urlEncode(e)),window.history&&window.history.pushState?window.history.pushState("",document.title,window.location.pathname+window.location.search+"#"+e):window.location.hash=e):window.history&&window.history.pushState?window.history.pushState("",document.title,window.location.pathname+window.location.search):window.location.hash=""},getHotKeyMgr:Ext.emptyFn,onInitError:function(e){switch(this.getHotKeyMgr()?.destroy(),SYNO.SDS.Office.Utils.removeLoadingPage(),this.clearStatusBusy(),this.bannerBtns&&this.getBannerBtns().hide(),SYNO.SDS.Office.Env.link_id&&this.beautifyURL(),e&&(Ext.isNumber(e)?n=e:e.error&&e.error.code?n=e.error.code:e.code&&(n=e.code)),!n&&(n=SYNO.SDS.Office.Env.objectId?57344:57378),n){case 57355:case 57383:this.layout.setActiveItem(this.getPermPanel()),this.getPermPanel().onUpdate("NO_PERM"),SYNO.SDS.Office.Env.isOfficeOwned&&!SYNO.SDS.Office.Env.getHashParam()?.import_path&&this.getPermPanel().hideAccessBtn(),SYNO.SDS.Office.Utils.closeDSMSocketIO();break;case 57373:case 57374:case 57375:this.layout.activeItem!==this.getPasswordPanel()&&(SYNO.SDS.Office.Env.link_id||(e&&e.error&&e.error.errors&&e.error.errors.link_id?SYNO.SDS.Office.Env.link_id=e.error.errors.link_id:SYNO.SDS.Office.Env.objectId&&!SYNO.SDS.Office.Env.isEncrypt&&this.appendHash({encrypt:!0})),this.onReload({keepPassword:!1}));return;case 57351:case 57363:case 57378:if(57351===n){var t=SYNO.SDS.Office.Env.getHashParam(),i=t.import_path;if(t.id&&i)return void this.getAction().importNode({files:[{format:"/"===i.charAt(0)?"ds":"drive",path:t.import_path,viewonly:!0}]},function(e,t){e?(this.replaceHash({id:t.object_id,import_path:i}),window.location.reload()):this.onInitError(t)},this)}this.layout.setActiveItem(this.getPermPanel()),this.getPermPanel().onUpdate("NON_EXIST");break;case 57409:this.layout.setActiveItem(this.getPermPanel()),this.getPermPanel().onUpdate("SERVICE_UNAVAILABLE","",SYNO.SDS.Office._T("error","cluster_lock"));break;case -1e3:this.layout.setActiveItem(this.getPermPanel()),this.getPermPanel().onUpdate("SERVICE_UNAVAILABLE","",SYNO.SDS.Office._T("error","compatibility"));break;default:if(0<n&&57344>n){var n,o,r=(function(){this.layout.setActiveItem(this.getPermPanel()),this.getPermPanel().onUpdateByErrCode(n,SYNO.SDS.Drive.Define.Info)}).bind(this);switch(n){case 1002:SYNO.SDS.Drive.Utils.isLogined()&&!_S("user")?SYNO.SDS.Utils.Logout.redirect(!1):this.findAppWindow().getAction().getSettingPromise().then(r);break;case 1015:case 1016:case 1017:this.layout.setActiveItem(this.getPermPanel()),this.getPermPanel().onUpdate("SERVICE_UNAVAILABLE","",(0,v.v2)(n));break;default:r()}}else 57404!==n||SYNO.SDS.Office.Utils.isIgnoreVersion()?(this.layout.setActiveItem(this.getPermPanel()),0<n&&(o=(0,v.v2)(n)),this.getPermPanel().onUpdate("SERVICE_UNAVAILABLE","",o)):(this.onKeepPasswordInSession(),window.location.href=SYNO.SDS.Office.URL.getCurURL({ignore_version:!0}))}},onGetNodeDone:function(e,t){e&&(this.setTitle(t.title),this.getSocket()&&this.getSocket().connected&&this.hideToastBox(),this.getBannerBtns().hide(),SYNO.SDS.Office.Env.recycle&&this.showRecycleToastBox(),(SYNO.SDS.Office.Env.isOfficeOwned||SYNO.SDS.Office.Env.is_template)&&(this.getBannerBtns().show(),this.getMainPanel().onUpdateTitleWidth()),(0,f.PV)())},setTitle:function(e){var t=SYNO.SDS.Office.Utils.parseDisplayName(e);this.ori_title=e,SYNO.SDS.Office.Env.title=e,SYNO.SDS.Office.Env.ntype&&(t+=" - "+SYNO.SDS.Office._T("app",SYNO.SDS.Office.Env.ntype)),SYNO.SDS.AppWindow.prototype.setTitle.call(this,t),(0,f.PV)()},getTitle:function(){return this.ori_title},onKeepClientChanges:Ext.emptyFn,onKeepPasswordInSession:function(){if(SYNO.SDS.Office.Env.isEncrypt)try{SYNO.SDS.Office.Env.setSessionItem("password",SYNO.SDS.Office.Utils.getEncryptPassword(SYNO.SDS.Office.Env.objectId))}catch{}},onReload:function(e){void 0===e&&(e={});let{keepPassword:t=!1,keepClientChanges:i=!0}=e;t&&this.onKeepPasswordInSession(),i&&this.onKeepClientChanges(),this.setStatusBusy(void 0,void 0,1),this.state="reloading",SYNO.SDS.Office.Env.link_id&&this.beautifyURL(),window.onbeforeunload=null,window.location.reload()},onKick:function(e){var t=SYNO.SDS.Drive.Utils.isAppAuthorized()&&"delete"===e;t?(SYNO.SDS.Office.Env.recycle=!0,(0,f.PV)()):"cluster_member_disjoin"===e&&this.hideToastBox(),this.setOffline(!0,!1,e),t&&this.showRecycleToastBox()},getEditorMode:function(){return this.editor_mode||"edit"},setEditorMode:function(e){this.editor_mode=e,this.findAppWindow().getEventMgr().fireEvent("permchange")},isOffline:function(){return this.offline},setOffline:function(e,t,i){!e&&this.getSocket()&&!this.getSocket().connected&&(e=!0);var n=Ext.isBoolean(this.offline)&&e!==this.offline;e?(this.showOfflineToastBox(i),this.offline=!0):(this.offline=!1,SYNO.SDS.Office.Env.recycle?this.showRecycleToastBox():this.hideToastBox()),(n||t)&&("cluster_unlock"!==i&&"cluster_member_disjoin"!==i&&this.findAppWindow().getAction().getOfficeNode({object_id:SYNO.SDS.Office.Env.objectId}),this.offline&&this.getEventMgr().fireEvent("permchange"))},updateZIndex:function(e){var t=SYNO.SDS.Drive.GetWindow();Ext.isEmpty(t.modalWin)||(t=t.modalWin[0]),e.setStyle("z-index",t.el.getZIndex()+5)},getMsgField:function(){return this.msgElm||(this.msgElm=Ext.DomHelper.append(document.body,{tag:"div",cls:"syno-o-status-msg-field",children:[{tag:"div",cls:"syno-o-status-msg-ct",children:[{tag:"div",cls:"syno-o-status-img"},{tag:"div",cls:"syno-o-status-text-ct",children:[{tag:"span",cls:"syno-o-status-text"},{tag:"span",cls:"syno-o-status-action"}]}]}]},!0),this.msgElm.textField=this.msgElm.child(".syno-o-status-text"),this.msgElm.actionField=this.msgElm.child(".syno-o-status-action")),this.msgElm},getBannerBtns:function(){return this.bannerBtns||(this.bannerBtns=Ext.create({xtype:"container",renderTo:this.el,cls:"syno-o-status-msg-field",hideMode:"offsets",hidden:!0,defaults:{xtype:"syno_button",btnStyle:"grey",cls:"syno-o-banner-btn"},items:[{itemId:"import",text:SYNO.SDS.Office._T("action","import_to_office"),handler:this.importToOffice,scope:this},{itemId:"template_create",text:SYNO.SDS.Office._T("template","mode_create"),handler:function(e){var t=SYNO.SDS.Office.Env.getSessionItem("session_data"),i=this.findAppWindow();i.getAction().makeTemplate(t,i)},scope:this},{itemId:"template_edit",text:SYNO.SDS.Office._T("template","mode_edit"),handler:function(e){this.findAppWindow().getAction().editTemplate()},scope:this}],listeners:{scope:this,beforeshow:function(e){var t=e.items;t.items.forEach(function(e){e.hide()}),SYNO.SDS.Office.Env.isOfficeOwned?SYNO.SDS.Office.Utils.isPreviewOnly()||SYNO.SDS.Office.Utils.isDriveAdvSharing()||t.get("import").show():SYNO.SDS.Office.Env.is_template&&SYNO.SDS.Office.Utils.isTemplateReadOnlyMode()&&(t.get("template_create").show(),SYNO.SDS.Office.Utils.isPermReadOnly()||t.get("template_edit").show())}}})),this.bannerBtns},importToOffice:function(){var e={object_id:SYNO.SDS.Office.Env.objectId,title:SYNO.SDS.Office.Env.title},t=SYNO.SDS.Office.Env.getSessionItem("session_data");if(t&&t.to_parent_folder){e=Ext.apply(e,{to_parent_folder:t.to_parent_folder}),this.setOfficeNodeOwner(e);return}this.popupImportSelDirDlg(e)},popupImportSelDirDlg:function(e){this.findAppWindow().getAction().popupSelDirDlg(function(t,i){this.setOfficeNodeOwner(Ext.apply(e,{to_parent_folder:SYNO.SDS.Drive.Utils.getPathId(i)})),t.component.close()},this,{title:SYNO.SDS.Office._T("action","import_to_office_to"),path:this.findAppWindow().getAction().getParentPath()})},setOfficeNodeOwner:function(e){this.findAppWindow().getAction().setOfficeNodeOwner(e,function(e,t,i,n){if(!e){var o,r=(0,v.zg)(t),a=!1;1002===r||57383===r?o=this.popupImportSelDirDlg.createDelegate(this,[i]):(a=!0,o=function(){(0,D.on)(window,!1)}),this.getMsgBox({preventDelay:a}).alert("",(0,v.v2)(t),o,this);return}this.unregisterUnloadEvent(),SYNO.SDS.Office.LocalStorage.fireEvent("createnodedone",t),SYNO.SDS.Office.URL.redirectLink(t.link_id)},this)},handleStatusMsg:function(e){var t=this.getMsgField();if(t){var i=this.findAppWindow();if(i.layout.activeItem===i.getPermPanel())return void t.hide();"recycle"===e?(this.showStatusMsg(SYNO.SDS.Office._T("file","in_recycle"),SYNO.SDS.Office._T("history","restore")),this.mun(t.actionField,"click",this.onRecycleClick,this),this.mon(t.actionField,"click",this.onRecycleClick,this)):"offline"===e?this.showStatusMsg(SYNO.SDS.Office._T("file","offline")):"upgrade"===e?this.showStatusMsg(SYNO.SDS.Office._T("file","older_pkg_ver")):"cluster_unlock"===e?this.showStatusMsg(SYNO.SDS.Drive.Utils.isLogined()?SYNO.SDS.Office._T("cluster","unlock"):SYNO.SDS.Office._T("error","cluster_lock")):t.hide()}},showStatusMsg:function(e,t){var i=this.getMsgField();i.textField.dom.innerHTML=e,i.actionField.dom.innerHTML=t||"",this.updateZIndex(i),i.show()},onRecycleClick:function(){this.findAppWindow().getAction().restoreNode()},showOfflineToastBox:function(e){this.getBannerBtns().hide(),this.delayOfflineToast||(this.delayOfflineToast=new Ext.util.DelayedTask(function(){"cluster_unlock"===e?(this.handleStatusMsg("cluster_unlock"),SYNO.SDS.Drive.Utils.isLogined()&&this.clusterStatusPollingTask()):SYNO.SDS.Office.Env.recycle?this.showRecycleToastBox():this.handleStatusMsg("offline")},this),this.mon(this,"beforedestroy",function(){this.delayOfflineToast.cancel(),this.delayOfflineToast=null},this)),this.beginOffline||(this.delayOfflineToast.cancel(),this.delayOfflineToast.delay(e?1e3:1e4),this.beginOffline=!0)},clusterStatusPollingTask:function(){this.clusterStatusTaskId||(this.clusterStatusTaskId=this.pollReg({interval:_F("SYNO_PRODUCT_FSDN")?5:10,webapi:{api:"SYNO.Office.Cluster.Status",version:1,method:"check",params:{link_id:SYNO.SDS.Office.Env.link_id,object_id:SYNO.SDS.Office.Env.objectId}},scope:this,status_callback:function(e,t,i){e&&(this.removeClusterStatusPollingTask(),this.onReload({keepPassword:!0}))}}),this.delayRemoveClusterStatusPollingTask=setTimeout(()=>{this.removeClusterStatusPollingTask(),this.onReload({keepPassword:!0})},6e5))},removeClusterStatusPollingTask:function(){this.clusterStatusTaskId&&(this.pollUnreg(this.clusterStatusTaskId),this.clusterStatusTaskId=null),this.delayRemoveClusterStatusPollingTask&&(clearTimeout(this.delayRemoveClusterStatusPollingTask),this.delayRemoveClusterStatusPollingTask=null)},showRecycleToastBox:function(){this.beginOffline=!1,this.delayOfflineToast&&this.delayOfflineToast.cancel(),this.handleStatusMsg("recycle"),this.getBannerBtns().hide()},showPublishTplToastBox:function(){SYNO.SDS.Drive.Utils.showToastMsg(this,SYNO.SDS.Office._T("template","published"),3e3)},showUpgradeOfficeToastBox:function(){this.handleStatusMsg("upgrade")},hideToastBox:function(){this.beginOffline=!1,this.delayOfflineToast&&this.delayOfflineToast.cancel(),this.getMsgField().actionField.removeAllListeners(),this.getMsgField().hide(),this.removeClusterStatusPollingTask()},beautifyURL:function(){if(window.history&&window.history.replaceState){if(SYNO.SDS.Office.Utils.isDriveAdvSharing()){var e,t,i,n,o=SYNO.SDS.Office.Env.link_id;e=SYNO.SDS.Office.URL.getDriveAdvSharingURL(o,SYNO.SDS.Drive.Sharing.GetSharingLink()),window.location.hash&&(e+=window.location.hash),window.history.replaceState("",document.title,e);return}if(!SYNO.SDS.Office.Utils.isDriveAdvSharing()){e=t=SYNO.SDS.Office.WindowHelper.getBaseAppPath()+"/";var r=EarlyInit.getLocation()||window.location;if(i=Ext.urlDecode(r.search.substr(1)),n=Ext.urlDecode(r.hash.substr(1)),EarlyInit.getLocation()&&Ext.apply(n,Ext.urlDecode(window.location.hash.substr(1))),SYNO.SDS.Office.Env.link_id&&(SYNO.SDS.Office.Env.is_template?e+="oo/t/":e+="oo/r/",e+=SYNO.SDS.Office.Env.link_id,i&&i.launchParam&&Ext.copyTo(i,Ext.urlDecode(i.launchParam),"mode"),delete i.launchApp,delete i.launchParam),SYNO.SDS.Office.Utils.isIgnoreVersion()&&delete i.ignore_version,delete n.comment_id,delete n.translation,delete n.local_id,delete n.syno_token,delete n.paginated,delete n.action,delete n.office_launchdata,SYNO.SDS.Office.Env.isOfficeOwned){if(n.id=SYNO.SDS.Office.Env.objectId,!n.import_path){var a=SYNO.SDS.Office.Env.getSessionItem("session_data");a&&a.files&&a.files[0].path&&(n.import_path=a.files[0].path)}i.launchApp=SYNO.SDS.Office.Utils.getClassNameFromObjectId(SYNO.SDS.Office.Env.objectId)}else delete n.id;i=Ext.urlEncode(i),Ext.isEmpty(i)||(e+="?"+i),n=Ext.urlEncode(n),Ext.isEmpty(n)||(e+="#"+n),window.history.replaceState("",document.title,e)}}},createHistoryWindow:Ext.emptyFn,openHistoryWindow:function(e,t){var i=this.createHistoryWindow(Ext.apply({owner:this},e));i&&(this.history=i,this.mon(this.history,"destroy",function(){this.history=null},this),t?this.history.showWin():this.history.slideIn())},isHistoryMode:function(){return this.history&&!this.history.isDestroyed},isWinPanel:function(){return this.layout.activeItem===this.getWinPanel()}});Ext.define("SYNO.SDS.Office.EventMgr",{extend:"Ext.util.Observable",constructor:function(e){this.appWindow=e.appWindow,this.addEvents({"init:done":!0,"init:error":!0}),this.listeners=e.listeners,Ext.util.Observable.prototype.constructor.call(this,e)}})},81071:function(e,t,i){"use strict";i.d(t,{g:()=>eA});var n=i(25374),o=i(22508),r=i(63707),a=i(5275),s=i(71283),l=i(6901);function c(e,t,i){let n=(0,l.s)(t)??{};if(!n?.$synoIdActive)return;if(!1===t.value||!1===n.useSynoId)return void e.removeAttribute("syno-id");if(!n.synoId&&(0,s.L1)()){let e="";n.$options.name&&(e+=`${n.$options.name}`),(0,s.D8)(`syno-id required [${e}]`,n)}let o=t.value||n.synoId;e.setAttribute("syno-id",o)}var d={[r.D2.mounted](e,t,i){c(e,t)},[r.D2.updated](e,t,i){c(e,t)}},u={props:{synoId:{type:String,default:""},useSynoId:{type:Boolean,default:!0}}};let h=(0,a.e)({},function(e){let{active:t=!0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=(0,r.a0)(e);i&&(i.$synoIdActive=t),e.directive("syno-id",d),t?e.mixin(u):e.mixin({data:()=>({synoId:""})})});var p=i(39787),f=i(59492),g=i(98671),m=i(74778),v=i(40172),b=i(31755),y=i(28618),w=i(92680),_=i(70608),x=i(63447),S=i(66794),C=i(86658);let k=(0,x.defineComponent)({name:"WizardWindow",components:{vDraggable:w.Z,vTrapFocus:_.Z,vSpin:g.Z,vWindowHeader:y.Z},extends:f.Z,mixins:[(0,b.J)("wizard-window")],props:{width:{type:[String,Number],default:480},minWidth:{type:[String,Number],default:420},height:{type:[String,Number],default:"auto"},showClose:{type:Boolean,default:!0},minimizable:{type:Boolean,default:!1},maximizable:{type:Boolean,default:!1}},emits:["wizard.currentStep","wizard.stepScroll"],data:()=>({subTitle:void 0,subTitleOpacity:0,headerTitleWidth:0,reachYStart:!0,reachYEnd:!0}),computed:{windowCls(){return[this.prefixCls,"v-wizard-window",{"active-win":this.active,"deactive-win":!this.active,blink:this.blink,"mobile-fit":this.inFitBreakpoint}]},innerSubTitle(){return this.inFitBreakpoint?this.subTitle:` - ${this.subTitle}`},subTitleStyle(){return{opacity:this.subTitleOpacity}},headlineStyle(){return{width:`${this.headerTitleWidth}px`}}},methods:{setCurrentStep(e){this.subTitle=e.headline,this.focus()},setReachStartEnd(e,t){this.reachYStart=e,this.reachYEnd=t},onHeadlineIntersection(e){this.headerTitleWidth=this.$refs.header.getTitleEl()?.offsetWidth},onStepScrolled(e){this.subTitleOpacity=e?Math.min(e,24)/24:0},clearStatusBusy(){this.clearStatus()},getToastBox(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=this.getWindowEl(),o=this.getWindowConfigValue("toastAlignConfig",{});return t=(0,v.Z)({text:e},t),(0,m.e)(this.$.appContext.app,n,t,(0,v.Z)({constrainMode:!1,absoluteMode:!0,anchorEl:n,containerEl:n,offset:C.pQ,align:"t->t"},i,o))},tryConstrainHeight(){let{isFullsize:e=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return!0}}}),I=["id"],A=["aria-label","aria-describedby"],T={class:"focus-last-alert",tabindex:"0",role:"alert"};var E=(0,S.Z)(k,[["render",function(e,t,i,n,o,r){let a=(0,x.resolveComponent)("v-window-header"),s=(0,x.resolveComponent)("v-trap-focus"),l=(0,x.resolveComponent)("v-draggable"),c=(0,x.resolveComponent)("v-spin"),d=(0,x.resolveDirective)("syno-id");return(0,x.withDirectives)(((0,x.openBlock)(),(0,x.createElementBlock)("div",{ref:"_window",class:(0,x.normalizeClass)(e.windowCls),style:(0,x.normalizeStyle)(e.windowStyle),onMousedown:t[1]||(t[1]=t=>e.toFront()),onKeydown:t[2]||(t[2]=(0,x.withKeys)(function(){return e.onEsc&&e.onEsc(...arguments)},["esc"]))},[(0,x.createVNode)(a,(0,x.mergeProps)({ref:"header"},e.headerProps,{"is-modalized":"","is-wizard":"","show-app-icon":!1,class:[e.headerCls,{"reach-y-start":e.reachYStart,"reach-y-end":e.reachYEnd}],"dark-theme":"",onClose:e.onClose}),{"sub-title":(0,x.withCtx)(()=>[e.inFitBreakpoint?(0,x.createCommentVNode)("",!0):((0,x.openBlock)(),(0,x.createElementBlock)("div",{key:0,id:`${e.id}-subtitle`,class:"sub-wrapper",style:(0,x.normalizeStyle)(e.subTitleStyle)},(0,x.toDisplayString)(e.innerSubTitle),13,I))]),_:1},16,["class","onClose"]),e.inFitBreakpoint?((0,x.openBlock)(),(0,x.createElementBlock)("div",{key:0,class:"headline-transform",style:(0,x.normalizeStyle)(e.subTitleStyle)},[(0,x.createElementVNode)("div",{class:"headline-text",style:(0,x.normalizeStyle)(e.headlineStyle)},(0,x.toDisplayString)(e.innerSubTitle),5)],4)):(0,x.createCommentVNode)("",!0),(0,x.createVNode)(s,{ref:"trapFocus",class:(0,x.normalizeClass)(e.extendedBodyCls)},{"alert-last":(0,x.withCtx)(()=>[(0,x.createElementVNode)("div",T,(0,x.toDisplayString)(e._i18n("desktop","window_last_hint")),1)]),default:(0,x.withCtx)(()=>[(0,x.createElementVNode)("div",{class:"v-trap-focus-indicator",tabindex:"0",role:"dialog","aria-label":e.currentTitle,"aria-describedby":`${e.id}-subtitle`},null,8,A),(0,x.renderSlot)(e.$slots,"default")]),_:3},8,["class"]),e.innerDraggable?((0,x.openBlock)(),(0,x.createBlock)(l,{key:1,"prefix-cls":"v-wizard-window","window-property":e.windowProperty,onDragging:e.setDragging,onDragEnd:e.onDragEnd},null,8,["window-property","onDragging","onDragEnd"])):(0,x.createCommentVNode)("",!0),e.isMasking?((0,x.openBlock)(),(0,x.createElementBlock)("div",{key:2,class:(0,x.normalizeClass)(e.maskCls),onMousedown:t[0]||(t[0]=(0,x.withModifiers)(function(){return e.onMaskMouseDown&&e.onMaskMouseDown(...arguments)},["stop"]))},[(0,x.createVNode)(c,{"only-mask":!e.lastMaskLayer.text,tip:e.lastMaskLayer.text,spinning:e.isMasking,"mask-style":e.maskStyle},null,8,["only-mask","tip","spinning","mask-style"])],34)):(0,x.createCommentVNode)("",!0)],38)),[[x.vShow,e.showWindow],[d]])}]]),R=i(98751),D=i(51633),O=i(27082),M=i(31214);let N=(0,a.e)({components:[p.Z]},e=>{let t=(0,r.a0)(e);t&&(t.$messageWindow=p.Z)});(0,a.e)({components:[R.Z,D.Z]},e=>{let t=(0,r.a0)(e);t&&(t.$aboutWindow=R.Z,t.$aboutWindowV2=D.Z)}),(0,a.e)({components:[p.Z,f.Z,E,R.Z,D.Z,y.Z,O.Z,M.Z]});var P=i(25063);let L=(0,a.e)({components:[P.Z]});var B=i(97342),F=i(61245),V=i(78050),z=i(32079),H=i(63964),W=i(86847),Y=i(87577),U=i(65698);let G=(0,a.e)({},e=>{e.directive("clickoutside",U.ZP)});var Z=i(64794);let j=(0,a.e)({},e=>{e.directive("tooltip",Z.Z)});var q=i(96868),K={[r.D2.mounted](e,t,i){let n=i.component?.proxy;n&&q.WI.call(n,"FormItem","form.register",n)},[r.D2.unmounted](e,t,i){let n=i.component.proxy;n&&q.WI.call(n,"FormItem","form.unregister",n)}};let X=(0,a.e)({},e=>{e.directive("form-component",K)});var Q=i(31469),$=i(54730);let J="__svc_long_press__";var ee={[r.D2.mounted](e,t){let i=(0,$.mf)(t.value)?t.value:$.ZT;e[J]=(0,Q.p)(e,i)},[r.D2.unmounted](e){e[J]?.()}};let et=(0,a.e)({},e=>{e.directive("long-press",ee)});var ei=i(76013),en=i(60129);let eo={[r.D2.mounted](e){(0,ei.EB)(e)&&!en.s&&window.setTimeout(()=>{e?.focus()},0)}},er=(0,a.e)({},e=>{e.directive("auto-focus",eo)});i(59963),i(43278);let ea=e=>(void 0===e&&(e=class{}),class extends e{constructor(...e){super(...e),this._mons=[]}addTargetListener(e,t,i,n){let o;"addEventListener"in e?o=e.addEventListener:"on"in e&&(o=e.on),o&&o.call(e,t,i,n)}removeTargetListener(e,t,i,n){let o;"removeEventListener"in e?o=e.removeEventListener:"off"in e&&(o=e.off),o&&o.call(e,t,i,n)}monitorEvent(e){return this._mons.push(e),e}unmonitorEvent(e){let{target:t,name:i,listener:n,scope:o}=e,r=this._mons;for(let e=r.length-1;e>=0;--e){let a=r[e];if(a.target===t&&a.name===i&&a.listener===n&&a.scope===o)return r.splice(e,1)[0]}return null}removeAllMonitors(){let e=this._mons;for(let t=e.length-1;t>=0;--t){let{target:i,name:n,eventListener:o,eventOptions:r}=e[t];this.removeTargetListener(i,n,o,r)}}mon(e,t,i,n,o){let r,a=!o||!1!==o.monitor,s=!!(o&&o.once);r=a&&s?(function(){for(var o=arguments.length,r=Array(o),a=0;a<o;a++)r[a]=arguments[a];return this.unmonitorEvent({target:e,name:t,listener:i,scope:n}),i.apply(n,r)}).bind(this):i.bind(n),a&&this.monitorEvent({target:e,name:t,listener:i,scope:n,eventListener:r,eventOptions:o}),this.addTargetListener(e,t,r,o)}mun(e,t,i,n,o){let r=this.unmonitorEvent({target:e,name:t,listener:i,scope:n});return!!r&&(this.removeTargetListener(e,t,r.eventListener,r.eventOptions),!0)}});class es extends ea(){}var el=i(32334),ec=i(89087),ed=(0,x.defineComponent)({name:"vIconvIconTableDraggableS",props:{width:{type:[Number,String],default:8},height:{type:[Number,String],default:24}}}),eu=(e,t)=>{let i=e.__vccOpts||e;for(let[e,n]of t)i[e]=n;return i};let eh=["width","height"],ep=[(0,x.createElementVNode)("g",{"fill-rule":"evenodd"},[(0,x.createElementVNode)("rect",{width:"8",height:"1",y:"15"}),(0,x.createElementVNode)("rect",{width:"8",height:"1",y:"12"}),(0,x.createElementVNode)("rect",{width:"8",height:"1",y:"9"})],-1)];var ef=eu(ed,[["render",function(e,t,i,n,o,r){return(0,x.openBlock)(),(0,x.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 8 24",fill:"currentColor",width:e.width,height:e.height},[...ep],8,eh)}],["__file","/builds/synology/SynoVueComponents/packages/svc-icons/src/vIconTableDraggableS.vue"]]),eg=(0,x.defineComponent)({name:"vIconvIconAboutTickBlue",props:{width:{type:[Number,String],default:20},height:{type:[Number,String],default:20}}});let em=["width","height"],ev=[(0,x.createElementVNode)("circle",{cx:"10",cy:"10",r:"7",fill:"#057FEB"},null,-1),(0,x.createElementVNode)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M13.404 7.90402C13.1697 7.66971 12.7898 7.66971 12.5555 7.90403L9.2321 11.2274L7.67661 9.67192C7.44229 9.43761 7.06239 9.43761 6.82808 9.67192C6.59376 9.90624 6.59376 10.2861 6.82808 10.5204L8.80508 12.4975C8.806 12.4984 8.80691 12.4993 8.80783 12.5002C8.81702 12.5094 8.82644 12.5182 8.83606 12.5267C9.07172 12.7343 9.43134 12.7255 9.65651 12.5003C9.66016 12.4967 9.66376 12.493 9.6673 12.4893L13.404 8.75255C13.6383 8.51824 13.6383 8.13834 13.404 7.90402Z",fill:"white"},null,-1)];var eb=eu(eg,[["render",function(e,t,i,n,o,r){return(0,x.openBlock)(),(0,x.createElementBlock)("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:e.width,height:e.height},[...ev],8,em)}],["__file","/builds/synology/SynoVueComponents/packages/svc-icons/src/vIconAboutTickBlue.vue"]]),ey=(0,x.defineComponent)({name:"vIconvIconBetaLabelBlue",props:{width:{type:[Number,String],default:32},height:{type:[Number,String],default:16}}});let ew=["width","height"],e_=[(0,x.createElementVNode)("rect",{width:"32",height:"16",rx:"3",fill:"#057FEB"},null,-1),(0,x.createElementVNode)("path",{d:"M7.21582 12C8.01335 12 8.62614 11.821 9.0542 11.4629C9.48226 11.1048 9.69629 10.5921 9.69629 9.9248C9.69629 9.52116 9.59131 9.17529 9.38135 8.88721C9.17139 8.59912 8.87435 8.40299 8.49023 8.29883C8.82878 8.1556 9.08594 7.95378 9.26172 7.69336C9.4375 7.43294 9.52539 7.13997 9.52539 6.81445C9.52539 6.17643 9.31543 5.69629 8.89551 5.37402C8.47559 5.05176 7.86361 4.89062 7.05957 4.89062H4.62305V12H7.21582ZM7.06934 7.88379H5.8584V5.88672H7.05957C7.48275 5.88672 7.79443 5.96484 7.99463 6.12109C8.19482 6.27734 8.29492 6.53125 8.29492 6.88281C8.29492 7.20182 8.18669 7.44841 7.97021 7.62256C7.75374 7.79671 7.45345 7.88379 7.06934 7.88379ZM7.23047 11.0137H5.8584V8.79199H7.33301C8.08822 8.80827 8.46582 9.18587 8.46582 9.9248C8.46582 10.2666 8.35677 10.5335 8.13867 10.7256C7.92057 10.9176 7.61784 11.0137 7.23047 11.0137ZM15.5801 12V11.0137H12.167V8.82617H15.0869V7.84961H12.167V5.88672H15.5459V4.89062H10.9316V12H15.5801ZM19.6035 12V5.88672H21.8203V4.89062H16.1807V5.88672H18.3779V12H19.6035ZM22.8164 12L23.3926 10.3447H26.1465L26.7275 12H28.0166L25.3262 4.89062H24.2178L21.5322 12H22.8164ZM25.7998 9.34863H23.7393L24.7695 6.39941L25.7998 9.34863Z",fill:"white"},null,-1)];var ex=eu(ey,[["render",function(e,t,i,n,o,r){return(0,x.openBlock)(),(0,x.createElementBlock)("svg",{viewBox:"0 0 32 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:e.width,height:e.height},[...e_],8,ew)}],["__file","/builds/synology/SynoVueComponents/packages/svc-icons/src/vIconBetaLabelBlue.vue"]]);i(58386);let eS={"tree.navigation":[{filter:/^tree\.navigation/,styles:{"layout-padding":"8px 0 6px 12px"}}],"tree.selector":[{filter:/^tree\.selector/,styles:{"layout-padding":"7px"}}],"module-list.panel":[{filter:/^module-list\.panel/,styles:{"layout-padding":"16px 12px 6px 12px"},props:{"pass-through":!0}}],"module-list.toolbar":[{filter:/^module-list\.toolbar/,styles:{"layout-padding-top":"16px","layout-padding-right":"12px","layout-padding-bottom":"6px","layout-padding-left":"12px"},props:{"pass-through":!0}}],fieldset:[{filter:/^fieldset/,styles:{"layout-padding":"8px 0 0 0"}},{filter:/^fieldset\[0\]/,styles:{"layout-padding":"0 0 0 0"}}],"fieldset-body":[{filter:/^fieldset => fieldset-body/,styles:{"layout-padding":"8px 0 0 0"}},{filter:/^form => fieldset => fieldset-body/,styles:{"layout-padding":"8px 8px 8px 8px"}}],form:[{filter:/^fieldset => fieldset-body => form/,styles:{"layout-padding":"0px 8px 8px 8px"}},{filter:/^tab-body => content => form/,styles:{"layout-padding":"0 8px 0 8px"}},{filter:/^tab-body => form/,styles:{"layout-padding":"8px 8px 0 8px"}},{filter:/^tab-body => content => form\[\d+\]:has\(fieldset\)/,styles:{"layout-padding":"0"}},{filter:/^tab-body => form\[\d+\]:has\(fieldset\)/,styles:{"layout-padding":"8px 0px 0 0px"}},{filter:/^tab-body => panel.content => panel-body => => form\[\d+\]:has\(\)/,styles:{"layout-padding":"0 8px 0 8px"}},{filter:/^tab-body => panel.content => panel-body => content => form\[\d+\]:has\(\)/,styles:{"layout-padding":"0 8px 0 8px"}}],"alert-bar":[{filter:/^tab-body => content => alert-bar/,styles:{"layout-padding":"0 0 8px 0"}},{filter:/^panel.content => panel-body => content => alert-bar/,styles:{"layout-padding":"0 0 8px 0"}},{filter:/^panel.content => panel-body => toolbar-content => alert-bar/,styles:{"layout-padding":"0 0 8px 0"}}],content:[{filter:/^tab-body => content/,styles:{"layout-padding":"8px 0 0 0","layout-height":"100%"}},{filter:/^tab-body => panel.content => panel-body => content/,styles:{"layout-padding":"8px 0 0 0","layout-height":"100%"}},{filter:/^panel.content => panel-body => content/,styles:{"layout-height":"100%"}}],"panel-body":[{filter:/^window\.(modal|app) => tabs\.(content|overview) => tab-body => panel.content => panel-body/,styles:{"layout-padding":"var(--panel-in-tabs-padding-top) 20px 6px 20px","layout-height":"100%"}},{filter:/^window\.page-list-app => tabs\.overview => tab-body => panel.content => panel-body/,styles:{"layout-padding":"var(--panel-in-tabs-padding-top) 20px 6px 20px","layout-height":"100%"}},{filter:/^window\.page-list-app => tabs\.content => tab-body => panel.content => panel-body/,styles:{"layout-padding":"var(--panel-in-tabs-padding-top) 16px 6px 16px","layout-height":"100%"}},{filter:/^tabs\.(content|overview) => tab-body => panel.content => panel-body/,styles:{"layout-padding":"var(--panel-in-tabs-padding-top) 0 0 0"}},{filter:/^window\.page-list-app => panel.overview => panel-body/,styles:{"layout-padding":"16px 20px 16px 20px","layout-margin":"0 0 0 0"}},{filter:/^window\.page-list-app => panel.content => panel-body/,styles:{"layout-padding":"16px 16px 6px 16px","layout-margin":"0 0 0 0"}},{filter:/^window\.(modal|app) => panel.content => panel-body/,styles:{"layout-padding":"16px 20px 6px 20px","layout-margin":"0 0 0 0"}}],"panel-fbar":[{filter:/^window\.page-list-app => tabs\.(content|overview) => tab-body => panel.content => panel-fbar/,breakpoint:{greaterAndEqThan:"xs"},styles:{"layout-margin":"0 16px"}},{filter:/^window\.page-list-app => panel.content => panel-fbar/,breakpoint:{greaterAndEqThan:"xs"},styles:{"layout-margin":"0 16px"}}],"wizard-step-container":[{filter:/^wizard\.basic => wizard-step-container/,breakpoint:{greaterAndEqThan:"xs"},styles:{"layout-padding":"24px 40px 0 40px","layout-height":"100%"}},{filter:/^wizard\.basic => wizard-step-container/,breakpoint:{lessAndEqThan:"xxs"},styles:{"layout-padding":"16px 20px 0 20px","layout-height":"100%"}}],"tab-tbar":[{filter:/^window\.(page-list-app|modal|app) => tabs.overview => tab-tbar/,styles:{"layout-padding":"16px 20px 0 20px","layout-margin":"0 0 0 0"}},{filter:/^window\.page-list-app => tabs.content => tab-tbar/,styles:{"layout-padding":"16px 16px 0 16px","layout-margin":"0 0 0 0"}},{filter:/^window\.(modal|app) => tabs.content => tab-tbar/,styles:{"layout-padding":"16px 20px 0 20px","layout-margin":"0 0 0 0"}}],"tab-body":[{filter:/^window\.(page-list-app|modal|app) => tabs.overview => tab-body/,styles:{"layout-padding":"4px 20px 6px 20px","layout-margin":"0 0 0 0"}},{filter:/^window\.page-list-app => tabs.content => tab-body/,styles:{"layout-padding":"4px 16px 6px 16px","layout-margin":"0 0 0 0"}},{filter:/^window\.(modal|app) => tabs.content => tab-body/,styles:{"layout-padding":"4px 20px 6px 20px","layout-margin":"0 0 0 0"}},{filter:/^tabs.content => tab-body\[\d+\]:has\(panel\.content\)/,styles:{"layout-padding":"4px 0 0 0","layout-margin":"0 0 0 0"},priority:2}],"tab-fbar":[{filter:/^window\.page-list-app => tabs\.overview => tab-fbar/,breakpoint:{greaterAndEqThan:"xs"},styles:{"layout-margin":"0 20px"}},{filter:/^window\.page-list-app => tabs\.content => tab-fbar/,breakpoint:{greaterAndEqThan:"xs"},styles:{"layout-margin":"0 16px"}}],commons:[{filter:/^window\.(page-list-app|modal|app) => panel\.(overview|content)\[\d+\]:has(.*)$/,styles:{"layout-height":"100%"}},{filter:/^tab-body => panel\.(overview|content)\[\d+\]:has(.*)$/,styles:{"layout-height":"100%"}}]};var eC=i(44194),ek=i(14395),eI=ek.lh;for(let e of[[o.Zl,{active:!1}],h,N,L,[B.D_,{types:{panel:{side:{}}},graph:(0,v.Z)(eS,{"panel-body":[void 0,void 0,void 0,void 0,void 0,void 0,{styles:{"layout-padding":"12px 20px 0px 20px"}}],form:[...Array.from(eS.form,()=>void 0),{filter:/^panel-body => form/,styles:{"layout-padding":"0px 8px"}}],"toolbar-content":[{filter:/^panel.side => panel-body => toolbar-content\[\d+\]/,styles:{"layout-padding":"0px 16px"}}],"wizard-step-container":[void 0,void 0,{filter:/^window\.modal => wizard\.basic => wizard-step-container/,styles:{"layout-padding":"12px 20px 0px 20px","layout-height":"100%"}}]}),keepOriginalGraph:!1}],F.Ct,V.lX,z.FH,[H.WS,{popupContainer:"#sds-desktop"}],[W.ck,{iconType:"svg",icons:[{name:"data-table-draggable-small",component:ef},{name:"about-tick-blue",component:eb},{name:"about-beta-label-blue",component:ex}]}],Y.SD,G,j,X,et,er,[{install(e,t){void 0===t&&(t=Object.create(null)),e.config.globalProperties.$ST=t.translate||((e,t,i)=>i||"")}},{translate:el.$}],{install(e,t){e.mixin({created(){this.$eventMonitor=null},beforeUnmount(){this._getEventMonitor()?.removeAllMonitors()},methods:{_getEventMonitor(e){return(void 0===e&&(e=!1),this.$eventMonitor)?this.$eventMonitor:e?(this.$eventMonitor=new es,this.$eventMonitor):null},$mon(e,t,i,n,o){return this._getEventMonitor(!0).mon(e,t,i,n,o)},$mun(e,t,i,n,o){return this._getEventMonitor(!0).mun(e,t,i,n,o)}}})}},...(0,ec.L9)()])Array.isArray(e)?eI.use(e[0],e[1]):eI.use(e);ek.lh.use(eC.n);let eA=Ext.define("SYNO.SDS.Office.EditorAppInstance",{extend:n.o,getWindowMgr:()=>ek.lh.config.globalProperties.$windowManager})},85020:function(e,t,i){"use strict";function n(){return _S("majorversion")}function o(){return!!_S("isLogined")}i.d(t,{$E:()=>n,YM:()=>o})},71783:function(e,t,i){"use strict";i.d(t,{v2:()=>s,yj:()=>a,zg:()=>o});var n=i(32334);function o(e){let t;return e&&Ext.isArray(e.errors)?t=e.errors[0].code:Ext.isObject(e)?"transaction aborted"===e.statusText?e.isTimeout&&(t=106):t=e.code:t=e,t}let r=!1;function a(){if(!r){SYNO.SDS.Office.ErrorString={};let e=[(0,n.$)("error","error_error_system"),(0,n.$)("error","database"),(0,n.$)("error","database"),(0,n.$)("error","database"),(0,n.$)("error","database"),(0,n.$)("error","database"),(0,n.$)("error","error_invalid"),(0,n.$)("error","object_not_exist"),(0,n.$)("error","default_create_fail"),(0,n.$)("error","error_error_system"),(0,n.$)("error","error_error_system"),(0,n.$)("error","object_no_permission"),(0,n.$)("error","error_error_system"),(0,n.$)("error","error_synodrive"),(0,n.$)("error","error_synodrive"),(0,n.$)("error","drive_get_failed"),(0,n.$)("error","error_synodrive"),(0,n.$)("error","error_error_system"),(0,n.$)("error","default_create_fail_directory"),(0,n.$)("error","dir_not_exist"),(0,n.$)("error","no_enough_space"),(0,n.$)("error","export_op_fail"),(0,n.$)("error","import_op_fail"),(0,n.$)("error","error_error_system"),(0,n.$)("error","import_export_running"),(0,n.$)("error","import_export_not_running"),(0,n.$)("error","error_error_system"),(0,n.$)("error","error_error_system"),(0,n.$)("error","error_error_system"),(0,n.$)("common","err_pass"),(0,n.$)("common","err_pass"),(0,n.$)("common","err_pass"),(0,n.$)("error","encrypt_already"),(0,n.$)("error","invalid_image"),(0,n.$)("error","file_not_exist"),(0,n.$)("error","error_error_system"),(0,n.$)("error","error_error_system"),(0,n.$)("error","move_to_child"),(0,n.$)("error","copy_to_child"),(0,n.$)("error","permission_not_enough"),(0,n.$)("error","not_support"),(0,n.$)("error","error_error_system"),(0,n.$)("error","moving_data"),(0,n.$)("error","space_not_enough"),_S("is_admin")?(0,n.$)("error","volume_moving"):(0,n.$)("error","maintenance"),_S("is_admin")?(0,n.$)("error","backuping"):(0,n.$)("error","maintenance"),_S("is_admin")?(0,n.$)("error","backuping"):(0,n.$)("error","maintenance"),(0,n.$)("error","file_not_exist"),(0,n.$)("error","required_name"),(0,n.$)("error","url_invalid"),(0,n.$)("error","url_resolve_failed"),(0,n.$)("error","url_download_failed"),(0,n.$)("error","url_download_failed"),(0,n.$)("error","convert_format_failed"),(0,n.$)("error","encrypted_file_import_fail"),(0,n.$)("error","error_error_system"),(0,n.$)("error","error_error_system"),(0,n.$)("error","tpl_publishing"),(0,n.$)("error","version_name_existed"),(0,n.$)("error","ofile_shcema"),(0,n.$)("error","history_broken"),(0,n.$)("error","import_too_large_file"),(0,n.$)("error","invaild_character"),(0,n.$)("error","error_error_system"),(0,n.$)("error","cluster_lock"),(0,n.$)("error","cluster_lock"),(0,n.$)("error","volume_snapshotting"),(0,n.$)("error","invalid_file_format")];for(let t=0;t<e.length;++t)SYNO.SDS.Office.ErrorString[57344+t]=e[t];Object.defineProperty(SYNO.SDS.Office.ErrorString,57405,{configurable:!0,enumerable:!0,get(){let e=(0,n.$)("error","import_too_large_file"),t=SYNO.SDS.Office.Define.Info?.sheet_max_cell_count;return void 0!==t?String.format(e,t):e}}),r=!0}}function s(e){a();let t=o(e);return Ext.isNumber(t)?t<400?102===t?SYNO.SDS.Drive._T("error","office_install"):SYNO.API.Errors.common[t]||_T("error","error_error"):t in SYNO.SDS.Office.ErrorString?SYNO.SDS.Office.ErrorString[t]:t in SYNO.SDS.Drive.ErrorString?SYNO.SDS.Drive.ErrorString[t]:_T("error","error_error"):_T("error","error_unknown")}},32334:function(e,t,i){"use strict";function n(e,t,i){try{let n=_TT("SYNO.SDS.Office.AppInstance",e,t)||_TT("SYNO.SDS.Office.AdminSetting",e,t)||_TT("SYNO.SDS.Drive.Application",e,t);if(n)return n;if(void 0!==i)return i}catch{}return _T(e,t)}i.d(t,{$:()=>n})},61431:function(e,t,i){"use strict";function n(e){return e._isVue||"$"in e}i.d(t,{z:()=>n})},39142:function(e,t,i){"use strict";i.d(t,{b:()=>o});var n=i(61232);function o(){return(0,n.m9)().getAction()}},89087:function(e,t,i){"use strict";i.d(t,{L9:()=>h,Ne:()=>s,QX:()=>c,Xm:()=>d});var n=i(85020),o=i(61431),r=i(61232);function a(){return window.synofficeEnableVueCompatibility||"7"===(0,n.$E)()&&!_F("SYNO_PRODUCT_FSDN")}function s(e){return"function"==typeof e&&"component"in e&&"options"in e}function l(e){return e&&"object"==typeof e&&e._isVue&&!("$"in e)}function c(e,t,i){void 0===i&&(i={});let{ownerWindow:n=SYNO.SDS.Office.GetWindow()}=i;if(a()&&s(e)&&(!(0,o.z)(n)||l(n)))if((0,o.z)(n))return n.openModalWindow(e,t);else return n.openVueWindow(e,t);return s(e)||l(n)?null:(0,r.hy)(e,t,{createWindow:(e,t,i)=>{let n=SYNO.SDS.Drive._Vue;return n.config.globalProperties.$windowManager.createWindow(e,t,{...i,parentApp:n})},...i})}function d(e){return a()&&s(e.vueClass)?new SYNO.SDS.VuePanel(e):new SYNO.SDS.Office.VuePanel({vueApp:SYNO.SDS.Drive.Vue.Utils.createVueApp(e.vueClass,e.vueOptions.propsData),...e})}let u=[{install(e){e.config.globalProperties.$T=(e,t)=>{try{return _TT("SYNO.SDS.Drive.Application",e,t)||_T(e,t)||`${e}:${t}`}catch{return _T(e,t)||`${e}:${t}`}}}}];function h(){return u}},5890:function(e,t,i){"use strict";function n(){return SYNO.SDS.Office.Env}i.d(t,{D:()=>n})},17370:function(e,t,i){"use strict";function n(e,t){void 0===e&&(e=window),void 0===t&&(t=!0),r=!0;try{e.close()}catch{}try{t&&e.location.assign(SYNO.SDS.Office.WindowHelper.getBaseAppPath()||"/")}finally{r=!1}}i.d(t,{AD:()=>s,Gq:()=>l,on:()=>n,u1:()=>a});let o=[],r=!1;function a(e){o.push(e)}function s(){return!!r||o.every(e=>!!e())}function l(e){return s()?SYNO.SDS.onBeforeUnload?.():(e.preventDefault(),"unsave")}},84901:function(e,t,i){"use strict";function n(){return _S("uid")}function o(){return _S("gids")}function r(){return SYNO.SDS.Drive.Define.AnonymousUID}i.d(t,{Bp:()=>o,Kr:()=>n,Uu:()=>r})},80816:function(e,t,i){"use strict";i.d(t,{B:()=>o});var n=i(61232);function o(){return(0,n.m9)().getWebAPI()}},61232:function(e,t,i){"use strict";i.d(t,{NV:()=>s,hy:()=>a,m9:()=>r});var n=i(61431),o=i(32334);function r(){return SYNO.SDS.Office.GetWindow()}function a(e,t,i){let o;void 0===i&&(i={});let{ownerWindow:a,createWindow:s,onDestroy:l,align:c}=i,d={createWindow:s,onDestroy:l,align:c};return a?(0,n.z)(a)?o=a.openModalWindow(e,t,d):(o=r().manager.openModalWindow(e,t,d)).window.setOwner(a):o=r().manager.openModalWindow(e,t,d),o}function s(e,t){return async function(){for(var i=arguments.length,n=Array(i),r=0;r<i;r++)n[r]=arguments[r];try{return t.value?.setStatusBusy(void 0,(0,o.$)("common","msg_waiting")),await e(...n)}finally{t.value?.clearStatus()}}}},46728:function(e,t,i){"use strict";i.d(t,{Vk:()=>h,qE:()=>d,rp:()=>u});var n=navigator.userAgent.toLowerCase();function o(e){var t=n.match(e);return t?parseFloat(t[1]):void 0}function r(){return/msie|edge|edg/.test(n)}function a(){return/\bchrome\b/.test(n)}function s(){return/\bcrios\b/.test(n)}function l(){return/firefox/.test(n)}function c(){return navigator.vendor.includes("Apple")&&/safari/.test(n)}function d(){return r()?!/edg/.test(n)||110>(o(/edg\/([0-9.]+)/)||999999)?"Microsoft Edge 110":"":a()?110>(o(/chrome\/([0-9.]+)/)||999999)?"Google Chrome 110":"":s()?110>(o(/crios\/([0-9.]+)/)||999999)?"Google Chrome 110":"":l()?115>(o(/firefox\/([0-9.]+)/)||999999)?"Mozilla Firefox 115":"":c()&&16>(o(/version\/([0-9.]+)/)||999999)?/iPad|iPhone|iPod/.test(navigator.platform)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1?"iOS 16":"Safari 16":""}function u(){return!!d()}function h(){return r()?o(/edg\/([0-9.]+)/):a()?o(/chrome\/([0-9.]+)/):s()?o(/crios\/([0-9.]+)/):l()?o(/firefox\/([0-9.]+)/):c()?o(/version\/([0-9.]+)/):void 0}},63105:function(e,t,i){"use strict";let n,o;i.d(t,{C1:()=>r,Gh:()=>U,q$:()=>c,$R:()=>G,tn:()=>Y,HL:()=>l}),(a=l||(l={})).NO_PERMISSION="no_permission",a.WEBAPI_ERROR="webapi_error",a.INVALID_API_KEY="invalid_api_key",a.INVALID_MODEL="invalid_model",a.INSUFFICIENT_QUOTA="insufficient_quota",a.RATE_LIMIT_EXCEEDED="rate_limit_exceeded",a.CONTEXT_LENGTH_EXCEEDED="context_length_exceeded",a.TOKENS_PER_DAY_LIMIT_EXCEEDED="tokens_per_day_limit_exceeded",a.TOKENS_PER_MINUTE_LIMIT_EXCEEDED="tokens_per_minute_limit_exceeded",a.THREAD_NOT_EXISTS="thread_not_exists",a.INVALID_REQUEST="invalid_request",a.SERVER_ERROR="server_error",a.LOOKUP_ERROR="lookup_error",a.UNKNOWN="unknown";class r extends Error{code;webapiCode;constructor(e,{code:t=l.UNKNOWN,webapiCode:i,...n}={}){super(e,n),this.name="SynoAIError",this.code=t,this.webapiCode=t===l.WEBAPI_ERROR?i:void 0}}(s=c||(c={})).STOP="stop",s.LENGTH="length",s.TOOL_CALLS="tool_calls",s.CONTENT_FILTER="content_filter",s.UNKNOWN="unknown",i(153);var a,s,l,c,d=i(30947);function u(e){return e.params?{...e,params:Object.fromEntries(Object.entries(e.params).filter(([e,t])=>void 0!==t))}:e}function h(e){return e&&"object"==typeof e&&"message"in e&&null!=e.message?String(e):"request failed"}function p(e){if(e&&"object"==typeof e&&"response"in e&&e.response&&"object"==typeof e.response)return e.response}function f(e){return!!e&&"object"==typeof e&&"success"in e&&!e.success}let g=new Map([[101,l.INVALID_REQUEST],[105,l.NO_PERMISSION],[114,l.INVALID_REQUEST],[122,l.NO_PERMISSION],[123,l.NO_PERMISSION],[124,l.NO_PERMISSION],[126,l.NO_PERMISSION],[127,l.NO_PERMISSION],[160,l.NO_PERMISSION]]);function m(e){let t=h(e),i=e?.code;if("number"==typeof i){let n=g.get(i);if(void 0!==n)return new r(t,{cause:e,code:n})}return new r(t,{cause:e,code:l.WEBAPI_ERROR,webapiCode:i})}function v(){let e=d.create({useFetch:!0,synotoken:_S("SynoToken")}),t=globalThis.synowebapi?.env.getCredential();t&&e.env.setCredential(t);let{request:i,requestWebAPI:n}=e;return e.request=async function(e){try{return await i.call(this,u(e))}catch(e){throw function(e){if(e&&"object"==typeof e&&"code"in e&&"number"==typeof e.code)return m(e)}(e)??e}},e.requestWebAPI=async function(e){try{return await n.call(this,u(e))}catch(e){throw function(e){let t=p(e);if(t&&f(t.data))return m(t.data.error)}(e)??e}},e}async function b(e,t){try{if(!globalThis._S("isLogined")||!("SYNO.SDS.App.AI.Instance"in SYNO.SDS.Config.FnMap))return!1;let{has_permission:i}=await v().request({api:"SYNO.AI.Permission",version:1,method:"check",params:{namespace:e},signal:t});return i}catch(e){return console.warn(e),!1}}async function y(e,t){return{...await v().request({api:"SYNO.AI.Config",version:1,method:"get",params:{namespace:e},signal:t}),namespace:e}}async function w(e){return i.e("916").then(i.bind(i,68912))}async function _(e,t){return(await w(e)).countTokens(e.chatCompletionModel,t)}async function x(e,t,i){return(await w(e)).splitTextByTokens(e.chatCompletionModel,t,i)}async function S(e,t){let i={namespace:e};return t.systemPrompt&&(i.system_prompt=t.systemPrompt),t.tools&&(i.tools=t.tools),v().request({api:"SYNO.AI.Thread",version:1,method:"create",params:i})}async function C(e,t){let{id:i,useSendBeacon:n}=t,o={api:"SYNO.AI.Thread",version:1,method:"delete"},r={namespace:e,id:i};if(!n)return v().request({...o,params:r});let a=v().getURL(o),s=new URLSearchParams(Object.fromEntries(Object.entries(r).map(([e,t])=>[e,JSON.stringify(t)])));return{deleted:navigator.sendBeacon(a,s)}}var k=i(83484);async function I(e,t,i,n){let{data:o,requestId:r,deidentified:a}=await D(e,t,{...i,stream:!1},n);if(T(o))throw E(o);return{message:(0,k.R)(o.message??""),finishReason:o.finishReason??c.UNKNOWN,requestId:r,deidentified:a}}async function A(e,t,i,n){let{data:o,requestId:r,deidentified:a}=await D(e,t,{...i,stream:!0},n);return new L(o,r,a)}function T(e){return f(e)||!!e&&"object"==typeof e&&"type"in e&&"error"===e.type&&"message"in e}function E(e){return"success"in e?m(e.error):new r(e.message,{cause:e,code:e.code})}async function R(e){if(e instanceof ReadableStream)try{return JSON.parse(await N(e))}catch{}return e}async function D(e,t,i,n){try{let{prompt:t,vars:o,toolResults:r,threadId:a,parentRequestId:s,stream:l=!0}=i,c=await v().requestWebAPI({api:"SYNO.AI.Completion",version:1,method:"create",params:{namespace:e,prompt:t||void 0,vars:o,tool_results:r?.length?r:void 0,tool_choice:i.toolChoice,thread_id:a,parent_request_id:s,stream:l},responseFormat:l?"readablestream":"json",signal:n}),d=c.headers["content-type"];if(d&&("application/json"===d||d.startsWith("application/json;"))){let e=await R(c.data);if(T(e))throw E(e)}return{data:c.data,requestId:c.headers["x-request-id"]||"",deidentified:"1"===c.headers["x-deidentified"]}}catch(i){var o;if(i instanceof r)throw i;let e=p(i);if(!e)throw i;let t=await R(e.data);if(T(t))throw E(t);throw new r(h(i),{cause:i,code:(o=e.status)>=400&&o<500?l.INVALID_REQUEST:o>=500&&o<600?l.SERVER_ERROR:l.UNKNOWN})}}async function*O(e){let t=e.getReader();try{for(;;){let{done:e,value:i}=await t.read();if(e)return;yield i}}finally{t.releaseLock()}}async function*M(e){let t=new TextDecoder("utf-8"),i="";for await(let n of O(e)){if(!n)continue;let e=t.decode(n,{stream:!0}),o=-1;for(;(o=e.indexOf("\n"))>-1;){let t=i+e.slice(0,o);e=e.slice(o+1),i="",yield t}i+=e}let n=i.trim();n.length>0&&(yield n)}async function N(e){let t=new TextDecoder("utf-8"),i=[];for await(let n of O(e)){if(!n)continue;let e=t.decode(n,{stream:!0});i.push(e)}return i.join("")}async function*P(e){for await(let t of M(e))try{let e=JSON.parse(t);yield e}catch(e){console.error(e,t)}}class L{messageBuff=[];messageBuffIndex=0;doneState={done:!1,resolve:()=>{}};readList=[];readListIndex=0;messageCleaner=new k.l;finishReason=c.UNKNOWN;requestId="";deidentified=!1;toolCalls=new Map;constructor(e,t,i){this.requestId=t,this.deidentified=i,this.doneState.promise=new Promise((e,t)=>{this.doneState.resolve=e}).finally(()=>{this.doneState.done=!0}),this.createMessage(e)}readMessageBuff(){let e=this.messageBuff[this.messageBuffIndex];return e&&this.messageBuffIndex++,e}readReadList(){let e=this.readList[this.readListIndex];return e&&this.readListIndex++,e}handleResponse(e){this.messageBuff.push(e);let t=this.readReadList();t&&t.resolve(this.readMessageBuff())}async createMessage(e){try{for await(let t of P(e)){if(!t)continue;if(T(t))throw E(t);if(t.finishReason&&(this.finishReason=t.finishReason),t.toolCalls)for(let e of t.toolCalls)e.id?this.toolCalls.set(e.id,e):this.toolCalls.set(`synoai-gen-${this.toolCalls.size}`,e);let e={message:this.messageCleaner.onMessage(t.message),finishReason:t.finishReason,requestId:this.requestId};t.toolCalls?.length&&(e.toolCalls=t.toolCalls),this.handleResponse(e)}for(let e of this.readList)e.resolve(void 0);this.doneState.resolve(void 0)}catch(e){for(let t of(this.doneState.resolve(e),this.readList))t.reject(e)}}async *[Symbol.asyncIterator](){for(;;){let e=this.readMessageBuff();if(e){yield e;continue}if(this.doneState.done)return await this.finalChatResponse();let t=await new Promise((e,t)=>{this.readList.push({resolve:e,reject:t})});if(!t)return await this.finalChatResponse();yield t}}async finalChatResponse(){let e=await this.doneState.promise;if(void 0!==e)throw e;return{message:this.messageBuff.map(e=>e.message).join(""),toolCalls:Array.from(this.toolCalls.values()),finishReason:this.finishReason,requestId:this.requestId,deidentified:this.deidentified}}}let B="SYNO.SDS.AI.Strings";async function F(){let e=SYNO.SDS.Config.FnMap[B];if(!e)throw Error(`Failed to find app: ${B}`);await SYNO.SDS.JSLoader.StringLoad(e.config,B)}function V(e,t){return SYNO.SDS.Strings[B]?.[e]?.[t]??""}class z{namespace;configPromise=void 0;enabledPromise=void 0;constructor(e){this.namespace=e}async isAIFunctionAvailable(){if(!await this.isAIFunctionEnabled())return!1;try{await F()}catch{}return!0}async isAIFunctionEnabled(){return this.enabledPromise??=b(this.namespace)}async getConfig(){return this.configPromise??=(async()=>{if(!await this.isAIFunctionEnabled())throw new r("AI function is not enabled.",{code:l.NO_PERMISSION});return y(this.namespace)})()}async getProviderConfig(){return(await this.getConfig()).providers[0]}async countTokens(e){return _(await this.getProviderConfig(),e)}async splitTextByTokens(e,t={chunkSize:4096,chunkOverlap:0}){return x(await this.getProviderConfig(),e,t)}async createThread(e={}){return S(this.namespace,e)}deleteThread(e){return C(this.namespace,e)}async createChat(e,t){return I(this.namespace,await this.getProviderConfig(),e,t)}async streamChat(e,t){return A(this.namespace,await this.getProviderConfig(),e,t)}async loadStrings(){await F()}getErrorCodeMessage(e){return V("error_code",e)||V("error_code","unknown")||e}getFinishReasonMessage(e){return e===c.STOP?"":V("finish_reason",e)||e}}var H=i(63447);let W=new Promise(e=>{o=e}),Y=new class extends z{init(e){o?.(e)}async isAIFunctionAvailable(){return n??=Promise.resolve().then(async()=>{let e=await W;return U.value=await super.isAIFunctionAvailable(),G.value=e&&U.value,G.value})}}("Spreadsheet"),U=(0,H.ref)(!1),G=(0,H.ref)(!1)},67870:function(e,t,i){"use strict";i.d(t,{SV:()=>f,v0:()=>g,xj:()=>h});var n=i(78050),o=i(22508),r=i(32079),a=i(87577),s=i(86847),l=i(97342),c=i(63964),d=i(61245);function u(e,t){return()=>{let i=t();if(!i)throw Error(`Failed to get ${e} manager`);return i}}let h=u("align",n.xj);u("breakpoint",o.G6),u("config",r.UR),u("dragdrop",a.Nx),u("icon",s.il),u("layout",l.R);let p=u("popup",c.U5),f=u("window",d.SV);function g(){return p().getPopupContainer()}},23599:function(e,t,i){"use strict";i.d(t,{bz:()=>r,FL:()=>s,OV:()=>a});var n=i(98272),o=i(63447);function r(){var e;let t=(e="menu",(0,o.inject)(e));return{onSelect(){if(!t)return;let e=t.instance;for(;!e.isRoot&&e.menu;)e=e.menu;(void 0===e.closeOnSelect||e.closeOnSelect)&&e.closeMenu()}}}function a(e){let t=e.activeIndex;if(void 0===t)return;let i=e.items[t];if(i)if("MenuSubmenu"!==(0,n.iY)(i))return i;else{let e=i.$refs.childMenu;return e?a(e)??i:i}}function s(e){let t=a(e);if(t)if("MenuSubmenu"===(0,n.iY)(t)&&t.$refs.childMenu)return t.$refs.childMenu;else{let i=(0,n.Pc)(t,"Menu");if(!i||i===e)return;return i}}},14395:function(e,t,i){"use strict";i.d(t,{aX:()=>a,b$:()=>s,lh:()=>o});var n=i(63447);let o=(0,n.createApp)({});function r(e){e.config.globalProperties={...o.config.globalProperties,...e.config.globalProperties},Object.assign(e._context,{directives:{...o._context.directives},provides:{...o._context.provides,...e._context.provides},components:{...o._context.components},mixins:[...o._context.mixins]})}function a(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];let o=(0,n.createApp)(...t);return r(o),o}function s(e){for(var t=arguments.length,i=Array(t>1?t-1:0),o=1;o<t;o++)i[o-1]=arguments[o];let a=(0,n.createApp)(...i);return e.pinia&&a.use(e.pinia),r(a),a}},98272:function(e,t,i){"use strict";i.d(t,{Js:()=>a,Pc:()=>r,iY:()=>o});var n=i(63447);function o(e){return e.$options.name??e.$options.__name}function r(e,t){let i=e.$parent||e.$root;for(;i;){if(o(i)===t)return i;i=i.$parent}return null}function a(e,t){return void 0===t&&(t={}),(0,n.defineComponent)({setup(i,o){let{attrs:r,expose:a}=o,s=(0,n.shallowRef)(t);function l(e){Object.assign(s.value,e),(0,n.triggerRef)(s)}return a({getProp:function(e){return s.value[e]},setProp:function(e,t){l({[e]:t})},setProps:l}),()=>(0,n.h)(e,{...s.value,...r})}})}},44194:function(e,t,i){"use strict";i.d(t,{n:()=>o,v:()=>r});var n=i(34877);let o=(0,n.createPinia)();function r(e){let t=(0,n.getActivePinia)(),i=e(o);return(0,n.setActivePinia)(t),i}},96051:function(e,t,i){"use strict";let n,o,r;i.d(t,{zK:()=>sC,IE:()=>cW,O2:()=>eI.O2,fo:()=>dj,pt:()=>eR,vl:()=>tE,HW:()=>mm,MT:()=>eI.MT,MI:()=>uJ,iL:()=>u0,Ts:()=>aG,Ql:()=>ay,ff:()=>eI.ff,LN:()=>eI.LN,aU:()=>dz,lk:()=>tq.lk,xf:()=>dU,OU:()=>tA,Gr:()=>mw,KS:()=>sA,b1:()=>iS,sk:()=>no,po:()=>sx,sU:()=>ee,Qr:()=>tu.Z,Rm:()=>my,_B:()=>rL,E5:()=>ne,yp:()=>mp,Sz:()=>et,N6:()=>sN,Ym:()=>dW,O1:()=>t_.O1,Hb:()=>a4,Eh:()=>m_,jr:()=>t_.jr,m7:()=>A,rv:()=>ei,TS:()=>aZ,QY:()=>pP,os:()=>nn,kE:()=>sw,s_:()=>sS,FE:()=>nt,pM:()=>ts.pM,v$:()=>s_,gE:()=>tq.gE,Gy:()=>tN,Rn:()=>tq.Rn,H2:()=>tq.H2,qx:()=>aj});var a,s,l,c,d,u,h,p,f,g,m,v,b,y,w,_,x,S,C,k,I,A={};i.r(A),i.d(A,{INIT_STATE:()=>iB,asyncGeneratorInit:()=>iF,asyncInit:()=>iz,handleInitGenerator:()=>iV,initStyle:()=>iH,remapStylesheet:()=>iU,syncInit:()=>iY});var T={};i.r(T),i.d(T,{createAddHyperlinkCommand:()=>ow,createAddValidationRangeCommand:()=>n5,createAdjustChartCommand:()=>oc,createAutofillDataCommand:()=>nU,createAutofillNumberFormatCommand:()=>nZ,createCellValueCommand:()=>nD,createClearCommentCommand:()=>oF,createClearRangeDataCommand:()=>om,createClearRangeRelatedCommand:()=>ov,createCommentStatusCommand:()=>oR,createCompoundCommand:()=>nE,createCreateCfCommand:()=>n9,createCreateCommentCommand:()=>oT,createCreateDefineCommand:()=>oH,createCreateFilterCommand:()=>nQ,createCreateFilterViewCommand:()=>n1,createCreateJsonCommentCommand:()=>oO,createCreateRuleCommand:()=>oj,createCreateValidationCommand:()=>n6,createCreateWorksheetCommand:()=>ra,createDeleteWorksheetCommand:()=>rd,createDimensionStyleCommand:()=>nW,createDupWorksheetCommand:()=>rl,createEditCommentCommand:()=>oD,createEditJsonCommentCommand:()=>oL,createEnableFilterCommand:()=>n$,createExpandFilterRangeCommand:()=>n3,createFixColumnCommand:()=>nq,createFixCommand:()=>nK,createFixRowCommand:()=>nj,createFormatCommand:()=>nz,createGlobalStyleCommand:()=>nY,createGroupCommand:()=>oS,createHiddenCommand:()=>nX,createInsertChartCommand:()=>oa,createInsertImageCommand:()=>on,createInsertRowColCommand:()=>nL,createMergeCommand:()=>nF,createModifyDefineCommand:()=>oY,createModifyDrawingsByInsertCommand:()=>ou,createModifyDrawingsByMoveCommand:()=>op,createModifyDrawingsByRemoveCommand:()=>oh,createMoveCommand:()=>of,createMoveFormulaRangeCommand:()=>ob,createMoveRangeCommand:()=>og,createNoteCommand:()=>nO,createOpenJsonCommentCommand:()=>oN,createPasteAutofillDataCommand:()=>nG,createPasteCommentCommand:()=>oB,createPivotCompoundCommand:()=>oX,createPivotTableCommand:()=>oQ,createRemoveAllValidationCommand:()=>n7,createRemoveCfCommand:()=>oe,createRemoveChartCommand:()=>os,createRemoveDefineCommand:()=>oW,createRemoveExternalLinksCommand:()=>oz,createRemoveFormulaRangeCommand:()=>oy,createRemoveImageCommand:()=>or,createRemoveInternalLinkCommand:()=>ox,createRemoveRowColCommand:()=>nB,createRemoveRuleCommand:()=>oK,createRemoveValidationCommand:()=>n8,createRenameWorksheetCommand:()=>ru,createReorderWorksheetCommand:()=>rh,createReplyCommentCommand:()=>oE,createReplyJsonCommentCommand:()=>oM,createResizeChartCommand:()=>ol,createResizeColumnCommand:()=>nN,createResizeCommand:()=>nP,createResizeImageCommand:()=>oo,createResizeRowCommand:()=>nM,createResolveJsonCommentCommand:()=>oP,createServerCreatePivotWorksheetCommand:()=>ro,createServerCreateWithData:()=>rr,createServerCreateWorksheetCommand:()=>rn,createServerDupWorksheetCommand:()=>rs,createSetActiveFilterViewCommand:()=>n4,createSetChartConfigCommand:()=>od,createSetCollapseCommand:()=>oI,createSetFilterCommand:()=>nJ,createSetWorksheetColorCommand:()=>rf,createSetWorksheetHiddenCommand:()=>rp,createSetWorksheetRtlCommand:()=>oA,createSortCommand:()=>oi,createStyleCommand:()=>nH,createUndeleteWorksheetCommand:()=>rc,createUngroupCommand:()=>oC,createUnmergeOverlapsCommand:()=>nV,createUpdateCfRangesCommand:()=>ot,createUpdateExternalLinksCommand:()=>oV,createUpdateFilterRangeCommand:()=>n0,createUpdateFilterViewNameCommand:()=>n2,createUpdateGroupCommand:()=>ok,createUpdateHyperlinkCommand:()=>o_,createUpdateRuleCommand:()=>oq,createValueCommand:()=>nR,deletePivotTableCommand:()=>o$,groupPivotFieldItemsCommand:()=>o9,insertPivotDataFieldCommand:()=>o3,isCreateRuleCommand:()=>oU,isRemoveRuleCommand:()=>oZ,isUpdateRuleCommand:()=>oG,movePivotAxisFieldCommand:()=>o2,movePivotDataFieldCommand:()=>o4,movePivotTableCommand:()=>o0,removePivotDataFieldCommand:()=>o5,setPivotDataFieldAttrCommand:()=>o8,setPivotFieldAttrCommand:()=>o6,setPivotFieldDatetimeGroupCommand:()=>ri,setPivotFieldItemAttrCommand:()=>o7,setPivotFieldNumberGroupCommand:()=>rt,setPivotTableCaptionCommand:()=>o1,ungroupPivotFieldItemsCommand:()=>re,updatePivotTableCommand:()=>oJ});var E=i(11312),R=i.n(E);class D extends E.EventEmitter{fireAddEvent(){this.emit("add")}}class O extends D{constructor(e){super(),this.workbook=e}hasTask(){return null!==this.findCalculateSheet()}*runTask(){let e=this.findCalculateSheet();e&&(yield*e.renderCache.calcNeedRenderCell())}findCalculateSheet(){for(let e of this.iterateSheet())if(e&&e.renderCache.getNeedRenderSize()>0)return e;return null}*iterateSheet(){let e=this.workbook.current?.sheetId;for(let t of(e&&(yield this.workbook.current),this.workbook.getOrder()))t!==e&&(yield this.workbook.getSheetById(t))}}var M=i(35599);class N extends D{constructor(e){super(),this.workbook=e,this.needDimensionItemMap=new Map,this.calculatedItem=new Set}hasTask(){return this.calculatedItem.size>0||!!this.findCalculateTarget()}*runTask(){let e=this.workbook.current?this.needDimensionItemMap.get(this.workbook.current.sheetId):null;for(let t of(e&&0!==e.size||(e=this.findCalculateTarget()),e?Array.from(e):[]))this.checkArrayDimension(t),yield}findCalculateTarget(){for(let e of this.needDimensionItemMap.values())if(e.size>0)return e;return null}updateCalculated(){for(let e of this.calculatedItem){if(e.needUpdate)continue;let t=e.getValue(),i=0,n=0;Array.isArray(t)&&(i=t.length,Array.isArray(t[0])&&(n=t[0].length)),this.updateItemDimension(e,i,n)}this.calculatedItem.clear()}addCalculatedItem(e){this.calculatedItem.add(e),this.fireAddEvent()}updateItemSpillRange(e,t){e.setSpillRange(t)}updateItemDimension(e,t,i){if(!e.needDimension)return;let n=[],o=e.sheet,r=e.getSpillRange()?.getRange()??null;if(t<1||i<1)this.updateItemSpillRange(e,null);else{let a=new M.lu({row:e.row,col:e.col},{row:e.row+t-1,col:e.col+i-1}),s=o.getFormulaDepManager().getSpillContainer().getOrCreateFormulaRange(a);if(this.updateItemSpillRange(e,s),!r||r.to.row-r.from.row+1!==t||r.to.col-r.from.col+1!==i){let e=r?r.to.row:-1,t=r?r.to.col:-1;for(let i=a.from.row;i<=a.to.row;i++)for(let o=a.from.col;o<=a.to.col;o++)(i>e||o>t)&&n.push({row:i,col:o})}}n.length>0&&o.formula.fireUpdateEvent(n),o.notifySheetChanges(["formulaDimensions"])}setNeedDimension(e){e.needDimension=!0;let t=e.sheet.sheetId;this.needDimensionItemMap.has(t)||this.needDimensionItemMap.set(t,new Set),this.needDimensionItemMap.get(t).add(e),this.fireAddEvent()}removeNeedDimension(e){e.needDimension=!1;let t=e.sheet.sheetId,i=this.needDimensionItemMap.get(t);i?.delete(e),this.calculatedItem.delete(e)}checkArrayDimension(e){if(!e.needDimension)return;let{height:t,width:i}=this.workbook.getFormulaParser().execArrayDimension(e.formula,{sheetId:e.sheet.sheetId});this.updateItemDimension(e,t,i),this.removeNeedDimension(e)}}function P(e){switch(typeof e){case"string":case"number":return e+"";case"object":if(null===e)return"";return e.toString();case"undefined":return"";default:return e.toString()}}function L(){return new Promise(e=>{setTimeout(e,0)})}class B extends D{constructor(){super(),this.recalculateSet=new Set}hasTask(){return this.recalculateSet.size>0}*runTask(){for(let e of Array.from(this.recalculateSet)){let t=e.sheet.formula;t.generateChangeDep([[e.row,e.col]],"reset"),t.updateItem(e),this.removeTask(e),yield}}addTask(e){this.recalculateSet.add(e)}removeTask(e){this.recalculateSet.delete(e)}}class F{constructor(e,t=!1){for(let i of(this.taskHandlers=[this.formulaRecalculator=new B],t&&this.taskHandlers.push(new O(e)),this.taskHandlers.push(this.formulaDimensioner=new N(e)),this.taskHandlers))i.on("add",()=>this.runTask());this.taskPromise=null,this.run=!1}start(){return this.run=!0,this.runTask()}stop(){this.run=!1}async runTask(){return this.taskPromise?this.taskPromise:this.run&&this.needCalculate()?this.taskPromise=L().then(()=>(this.calculate(),this.taskPromise=null,this.runTask())):void 0}needCalculate(){return this.taskHandlers.some(e=>e.hasTask())}calculate(){this.formulaDimensioner.updateCalculated();let e=this.taskHandlers.find(e=>e.hasTask());if(!e)return;let t=Date.now(),i=e.runTask();for(;!i.next().done&&!(Date.now()-t>4););}getFormulaDimensioner(){return this.formulaDimensioner}getFormulaRecalculator(){return this.formulaRecalculator}}class V{constructor(e,t,i,n){this.sheet=e,this.name=t,this.color=i||"",this.hidden=!!n}}let z=class{constructor(){this.sheetsInfo=new Map,this.sheetsOrder=[],this.nameMap=new Map,this.maxIndex=0,this.maxPivotTableIndex=0}destroy(){this.sheetsInfo.forEach(e=>{e.sheet.destroy()})}hasSheet(e){return this.sheetsInfo.has(e)}addSheet(e,t,i,n,o,r){return!this.hasSheet(e)&&(t.id=e.slice(3),this.sheetsInfo.set(e,new V(t,i,o,r)),n>=this.sheetsOrder.length?this.sheetsOrder.push(e):this.sheetsOrder.splice(n,0,e),this.nameMap.set(i,e),!0)}removeSheet(e){let t=this.sheetsInfo.get(e);return t&&(this.sheetsInfo.delete(e),this.nameMap.delete(t.name)),this.sheetsOrder=this.sheetsOrder.filter(t=>t!==e),t&&t.sheet}hasSheetName(e){return this.nameMap.has(e)}getSheetByName(e){let t=this.nameMap.get(e);return"string"==typeof t?this.getSheetById(t):void 0}getSheetById(e){let t=this.sheetsInfo.get(e);return t&&t.sheet}getNameById(e){let t=this.sheetsInfo.get(e);return t&&t.name}getIdByName(e){return this.nameMap.get(e)}rename(e,t){let i=this.sheetsInfo.get(e);return i&&(this.nameMap.delete(i.name),i.name=t,this.nameMap.set(t,e)),!!i}setSheetHidden(e,t){let i=this.sheetsInfo.get(e);return i&&(i.hidden=!!t),!!i}isSheetHidden(e){let t=this.sheetsInfo.get(e);return!!t&&t.hidden}setSheetColor(e,t){let i=this.sheetsInfo.get(e);return i&&(i.color=t),!!i}getSheetColor(e){let t=this.sheetsInfo.get(e);return t&&t.color}setOrder(e){let t=new Set(e);return!(this.sheetsOrder.length!==e.length||this.sheetsOrder.some(e=>!t.has(e)))&&(this.sheetsOrder=e.slice(),!0)}getOrder(){return this.sheetsOrder.slice()}getSheetCount(){return this.sheetsOrder.length}getSheetPos(e){return this.sheetsOrder.indexOf(e)}getSheetInfo(e){return this.sheetsInfo.get(e)}getMaxIndex(){return this.maxIndex}setMaxIndex(e){this.maxIndex=e}getMaxPivotTableIndex(){return this.maxPivotTableIndex}setMaxPivotTableIndex(e){this.maxPivotTableIndex=e}};var H=i(20768),W=i(26129);class Y extends E.EventEmitter{constructor(e,t=!1){super(),this.value=(0,H.gn)(e.value),this.fc=e.fc,this.loading=t,this.formulaItems=new Set}isLoading(){return this.loading}isEqual(e){let{value:t,fc:i}=e;return function e(t,i){let n=Array.isArray(t),o=Array.isArray(i);return n&&o?t.length===i.length&&t.every((t,n)=>e(t,i[n])):!n&&(0,W.Z)(t)&&!o&&(0,W.Z)(i)?t.message===i.error:t===i}(this.value,t)&&this.fc===i}updateValue(e,t){let{value:i,fc:n}=e;for(let e of(void 0===t&&(t=!1),this.value=(0,H.gn)(i),this.fc=n,this.loading=t,Array.from(this.formulaItems)))e.sheet.formula.generateChangeDep([[e.row,e.col]],"renew")}getValue(){return this.value}getFc(){return this.fc}addFormulaItem(e){this.formulaItems.add(e),this.emit("external_changed")}deleteFormulaItem(e){this.formulaItems.delete(e),this.emit("external_changed")}getReferenceCount(){return this.formulaItems.size}*iterateReference(){for(let e of this.formulaItems)yield e}toJSON(){let e={value:(0,H.yx)(this.value)};return this.fc&&(e.fc=this.fc),e}}var U=i(73230);let{fromA1ToR1C1:G,fromR1C1ToA1:Z,isFormulaAbsolute:j,transposeR1C1:q}=H.P6;function K(e){let t,i,n;switch(e.symbol){case U.QT.CELL:return[t,i]=H.P6.rangeToCoords(e.getValue()),new M.lu(t,i,e.getSheetName());case U.QT.ROWRANGECELL:return[t,i]=H.P6.rangeToCoords(e.getValue()),new M.lq(t.row,i.row,e.getSheetName());case U.QT.COLRANGECELL:return[t,i]=H.P6.rangeToCoords(e.getValue()),new M.l0(t.col,i.col,e.getSheetName());case U.QT.VARIABLE:return n=e.getValue().toLowerCase(),new M.ZJ(n,e.getSheetName())}return null}function X(e){let t=[],i=(0,U.wS)(e);for(let e=0,n=i.size();e<n;e++){let n=K(i.get(e));n&&t.push(n)}return t}function Q(e){let t=(0,U.wS)(e);if(1!==t.size())return null;let i=t.get(0);return i.isRange()?K(i):null}let $=/^[^!,]+!|^'(?:[^']|'')+'!/;function J(e){let t=[];for(e=e.trim();e.length>0;e=e.trim()){let i=$.exec(e),n=e.indexOf(",",i?i[0].length:0),o=n<0?e:e.slice(0,n);t.push(o.trim()),e=e.slice(o.length+1)}return t}function ee(e,t){let i=(0,U.wS)(e);if(1!==i.size())return!1;let n=i.get(0);if(!n.isCell())return!1;let o=n.getSheetName();if(!o)return!1;let r=t.getIdByName(o);if(!r||!t.hasSheet(r))return!1;let[a]=H.P6.rangeToCoords(n.getValue()),{rowCount:s,colCount:l}=t.getSheetDimension(r);return void 0!==a.row&&void 0!==a.col&&a.row<s&&a.col<l}function et(e,t){let{isMulti:i,rangeScope:n,allowMultiScopes:o,allowEmptyRange:r,workbook:a}=t;if(!e)return r;let s=i?J(e):[e],l=new Set;return s.every(e=>{let t=Q(e);if(null===t)return!1;let i=t.shName;if(l.add(i),!1===o&&l.size>1||n===(void 0===i))return!1;if(a){i=i||a.getCurrentSheet()?.getName()||"";let e=a.getIdByName(i);if(!e||!a.hasSheet(e))return!1;let{rowCount:n,colCount:o}=a.getSheetDimension(e);if(!t.isWithinRow(0,n-1)||!t.isWithinCol(0,o-1))return!1}return!0})}function ei(e,t){let i=(0,U.wS)(e);if(1!==i.size())return!1;let n=i.get(0);return n.symbol===U.QT.VARIABLE&&t===n.getSheetName()}function en(e,t){let i=H.P6.getFormulaBound([e,t],!0);return{row:i.row||0,col:i.col||0}}function eo(e){let t=(0,U.wS)(e,"R1C1");for(let e=0;e<t.size();e++){let i=t.get(e);if(!i.isRange())continue;let n=i.getText();if("R[0]C[0]"!==n&&"R[0]C[0]:R[0]C[0]"!==n)return!1}return!0}var er=i(7456);function ea(e,t){let i=-1,n=e.length;for(;++i<n&&!1!==t(e[i],i,e););return e}function es(e){let t=[],i=new Set;for(let n=0,o=e.length;n<o;n++)i.has(e[n])||(i.add(e[n]),t.push(e[n]));return t}function el(e,t,i,n){let o=e.slice(t,t+i+n);for(let r=0;r<i+n;r++){let a=r<i?t+r+n:t+r-i;(void 0!==e[a]||void 0!==o[r])&&(e[a]=o[r])}return e}function ec(e,t){for(let i=0,n=t.length;i<n;i++)e.push(t[i]);return e}function ed(e,t){let i=0,n=e.length;for(;i<n;){let o=i+n>>1;t(e[o])?i=o+1:n=o}return i}function eu(e,t){return ed(e,e=>e<t)}function eh(e,t){let i=0,n=e.length;for(;i<n;){let o=i+n>>1;e[o]<=t?i=o+1:n=o}return i}function ep(e,t){let i=eu(e,t);return i<e.length&&e[i]===t?i:-1}function ef(e,t,i){let n=e.splice(t);e.length+=i;for(let t=0;t<n.length;t++)e.push(n[t]);return e}function eg(e,t){for(let i=0;i<e.length;i++)for(let n=0;n<e[i].length;n++)t(e[i][n],i,n,e)}function em(e,t){for(let i=0;i<e.length;i++)e[i].length<t&&(e[i].length=t)}function ev(e){if(!Array.isArray(e)||0===e.length)return e;let t=Array(e[0].length);for(let i=0;i<t.length;i++)t[i]=Array(e.length);return eg(e,(e,i,n)=>{t[n][i]=e}),t}function eb(e){return Array.isArray(e)?e:[e]}function ey(e,t,i,n){let o=e.length,r=e.indexOf(t),a=n?r-o:0;for(let t=r-1;t>=a;t--){let n=e[(t+o)%o];if(!i(n))return n}}function ew(e,t,i,n){let o=e.length,r=e.indexOf(t),a=n?r+1+o:o;for(let t=r+1;t<a;t++){let n=e[t%o];if(!i(n))return n}}function e_(e,t,i){return Array.from({length:e},(e,n)=>Array.from({length:t},(e,t)=>i(n,t)))}function ex(e,t){void 0===t&&(t=er.Z);let i=0,n=0;for(let o=e.length-1;o>=0;o--)for(let r=e[o].length-1;r>=i;r--)t(e[o][r])||(n=Math.max(n,o+1),i=Math.max(i,r+1));e.length=n,e.forEach(e=>e.length=i)}function eS(e,t,i){for(var n=arguments.length,o=Array(n>3?n-3:0),r=3;r<n;r++)o[r-3]=arguments[r];let a=e.slice();return o.length>0?a.splice(t,i??0,...o):a.splice(t,i),a}function eC(e,t){let i=ed(e,e=>ek(e,t));i>=e.length?e.push(t):(e[i].row!==t.row||e[i].col!==t.col)&&e.splice(i,0,t)}function ek(e,t){return e.row<t.row||e.row===t.row&&e.col<t.col}var eI=i(81850),eA=i(74115);function eT(e){return null!=e}class eE{constructor(e,t,i,n){this.sheetInfo=e??void 0,this.from=t,this.to=i,this.type=n}toRange(){let e=this.sheetInfo?.shName;switch(this.type){case eA.Y3.all:case eA.Y3.row:return new M.lq(this.from.row,this.to.row,e);case eA.Y3.col:return new M.l0(this.from.col,this.to.col,e);default:return new M.lu(this.from,this.to,e)}}toSynoRange(){return(0,eI.MT)(this.from.row,this.from.col,this.to.row,this.to.col,this.type)}toLabel(){return this.toRange().toLabel()}getWidth(){return this.to.col-this.from.col+1}getHeight(){return this.to.row-this.from.row+1}eachCell(e){for(let t=this.from.row;t<=this.to.row;t++)for(let i=this.from.col;i<=this.to.col&&!1!==e(t,i);i++);}static create(e,t){return eE.createByWorkbook(e,t.getWorkbook(),t.sheetId)}static createRanges(e,t){let i=t.getWorkbook();return J(e).map(e=>eE.createByWorkbook(e,i,t.sheetId)).filter(eT)}static createByWorkbook(e,t,i){let n=Q(t.getNameManager().getVariable(e)?.value??e);return n?eE.createFromRangeByWorkbook(n,t,i):null}static toLabel(e,t){return new eE(t?{sheetId:t.sheetId,shName:t.getName()}:null,e.from,e.to,e.type).toLabel()}static createFromRange(e,t){let i=t.getWorkbook(),n=i.getIdByName(e.shName??"")??t.sheetId;return eE.createFromRangeByWorkbook(e,i,n)}static createFromRangeByWorkbook(e,t,i){let n,o;if(e.shName){let n=t.getIdByName(e.shName);if(!n)return null;i=n}if(!i||!t.hasSheet(i))return null;let r=e.shName??t.getNameById(i),{rowCount:a,colCount:s}=t.getSheetDimension(i),l=eA.Y3.cell;if((0,M.kA)(e))n={...e.from},o={...e.to};else if((0,M.LJ)(e))n={row:e.from,col:0},o={row:e.to,col:s-1},l=eA.Y3.row;else{if(!(0,M.eS)(e))return null;n={row:0,col:e.from},o={row:a-1,col:e.to},l=eA.Y3.col}if(n.row>=a||n.col>=s)return null;if(o.row>=a&&(o.row=a-1),o.col>=s&&(o.col=s-1),l===eA.Y3.cell){let e=0===n.col&&o.col===s-1,t=0===n.row&&o.row===a-1;l=(e?eA.Y3.row:eA.Y3.cell)|(t?eA.Y3.col:eA.Y3.cell)}return new eE({sheetId:i,shName:r},n,o,l)}static createFromCoords(e,t,i){return eE.createFromSynoRange((0,eI.MT)(e,t,e,t),i)}static eachCell(e,t,i){let n=eE.create(e,t);null!==n&&n.eachCell(i)}static textToRange(e,t){let i=Q(e);if(!i||!t)return;let n=eE.createFromRange(i,t);if(n)return n.toSynoRange()}static textToRangeByWorkbook(e,t,i){let n=Q(e);if(n)return eE.createFromRangeByWorkbook(n,t,i)?.toSynoRange()}static textToMultiRanges(e,t){var i,n;return i=e,n=t,J(i).map(e=>eE.textToRange(e,n)).filter(eT)}static createFromSynoRange(e,t){return new eE(t?{sheetId:t.sheetId,shName:t.getName()}:null,e.from,e.to,e.type)}}let eR=eE;function eD(e){return e.map(e=>eE.toLabel(e))}class eO{constructor(e){this.href=void 0,this.circularRef=!1,this.isSubtotal=void 0,this.needUpdate=!!e,this.nfId=void 0}markSubtotal(){this.isSubtotal=!0}setNfIdHint(e,t){void 0===t&&(t=!1),(!this.nfId||t)&&(this.nfId=e||0)}resetNfIdHint(){this.nfId&&(this.nfId=void 0)}reset(){this.href=void 0,this.resetNfIdHint(),this.circularRef=!1}isLink(){return void 0!==this.href}markCircularReference(){this.circularRef=!0}setUnknownName(e){}setSelfImplicit(){}}class eM extends eO{setLinkId(e){this.linkId=e}getLinkId(){return this.linkId}}class eN{register(e){this.unregister();for(let t=0;t<e.length;t++){let i=e[t];this.deps.push(i),this.registerRange(i)}}unregister(){if(0!==this.deps.length){for(let e=0;e<this.deps.length;e++)this.unregisterRange(this.deps[e]);this.deps.length=0}}}class eP extends eO{constructor(e){super(e),this.deps=[],this.implicitDeps=void 0}registerImplicit(e){this.isRegistered(e)||(this.implicitDeps?this.implicitDeps.push(e):this.implicitDeps=[e],this.registerRange(e))}unregisterImplicit(){if(this.hasImplicitDeps()&&this.implicitDeps){for(let e of this.implicitDeps)this.unregisterRange(e);this.implicitDeps.length=0}}hasImplicitDeps(){return void 0!==this.implicitDeps&&this.implicitDeps.length>0}isRegistered(e){return this.deps.indexOf(e)>=0||void 0!==this.implicitDeps&&this.implicitDeps.indexOf(e)>=0}register(e){eN.prototype.register.call(this,e)}unregister(){eN.prototype.unregister.call(this)}registerRange(e){e.register(this)}unregisterRange(e){e.unregister(this)}unregisterAll(){this.unregister(),this.unregisterImplicit()}}class eL extends eP{constructor(e){super(),this.value=[],this.formulaItems=new Set,this.register([e])}getFormulaItems(){return this.formulaItems}addFormulaItem(e){this.formulaItems.add(e)}getValueAt(e,t,i){return this.value[e]||(this.value[e]=[]),void 0===this.value[e][t]&&(this.value[e][t]=i()),this.value[e][t]}clear(){this.value=[],this.formulaItems.clear(),this.unregisterAll()}}function eB(e){return e.constructor===eL}class eF extends eP{constructor(e,t,i,n,o){super(o),this.sheet=e,this.row=t,this.col=i,this.formula=n,this.value=null,this.needDimension=!0,this.spillRange=null,this.externalRef=null,this.needCheckSpill=!1,this.spillError=null,this.selfImplicit=!1}notifySpillRange(){if(!this.spillRange)return;let e=eR.createFromRange(this.spillRange.getRange(),this.sheet);e&&this.sheet.notifyRangeChanges(e)}setSpillRange(e){this.spillRange&&e&&this.spillRange.rangeEqual(e.getRange())||this.spillRange===e||(this.spillRange&&(this.spillRange.unregisterSpillItem(),this.notifySpillRange()),this.spillRange=e,e&&(e.registerSpillItem(this),this.notifySpillRange()),this.sheet.notifySheetChanges(["formulaDimensions"]),this.needCheckSpill=!0)}getSpillRange(){return this.spillRange}setSpillError(e){this.spillError=e}setSpillResult(e){!this.spillError!=!e&&this.notifySpillRange(),this.setSpillError(e),this.needCheckSpill=!1}getSpillErrorValue(){if(!this.spillError)throw Error("need check spill error first");return this.spillError.err}addExternalRef(e){this.externalRef||(this.externalRef=new Set),this.externalRef.add(e),e.addFormulaItem(this)}clearExternalRef(){if(this.externalRef){for(let e of this.externalRef)e.deleteFormulaItem(this);this.externalRef.clear()}}unregisterAll(){super.unregisterAll(),this.setSpillRange(null),this.clearExternalRef()}isDependSelfOnly(){return 0===this.deps.length}getValue(){return void 0===this.error?this.value:this.error.err}getValueSize(){let e=this.getValue(),t=1,i=1;return Array.isArray(e)&&(t=e.length,Array.isArray(e[0])&&(i=e[0].length)),{height:t,width:i}}getPosition(){return{row:this.row,col:this.col}}reset(){super.reset(),this.needUpdate=!0,this.error&&(this.error=void 0),this.clearExternalRef(),this.unregisterImplicit()}setUnknownName(e){this.sheet.getWorkbook().getUnknownRefManager().addItem(e,this)}setSelfImplicit(){this.selfImplicit=!0}getStateJSON(){return{previewValue:Array.isArray(this.value)?null:this.value,href:this.href,nfId:this.nfId,formula:this.formula,hasSpillError:!!this.spillError}}static createId(e,t){return`${e},${t}`}}function eV(e){return e instanceof eF}class ez{registerRange(e){e.registerCond(this)}unregisterRange(e){e.unregisterCond(this)}}class eH extends eF{constructor(e,t,i,n){super(e,t,i,"",!0),this.cond=n}notifyUpdate(){this.cond.onDepUpdate(this.row,this.col)}registerRange(e){ez.prototype.registerRange.call(this,e)}unregisterRange(e){ez.prototype.unregisterRange.call(this,e)}}class eW extends eH{constructor(e,t,i,n){super(e,t,i,n),this.resultDep=null}registerResult(e){this.unregisterResult(),this.resultDep=e,this.registerRange(e)}unregisterResult(){this.resultDep&&(this.unregisterRange(this.resultDep),this.resultDep=null)}unregisterAll(){super.unregisterAll(),this.unregisterResult()}}class eY extends eN{constructor(e){super(),this.cond=e,this.deps=[]}notifyUpdate(){this.cond.onDepUpdate()}registerRange(e){ez.prototype.registerRange.call(this,e)}unregisterRange(e){ez.prototype.unregisterRange.call(this,e)}}class eU extends eN{constructor(e){super(),this.unit=e,this.deps=[]}notifyAlterGrid(e,t,i,n,o,r){this.unit.notifyAlterGrid(e,t,i,n,o,r)}notifyMove(e,t,i,n){this.unit.notifyMove(e,t,i,n)}notifyRename(e,t,i){this.unit.notifyRename(e,t,i)}notifyMoveFormulaRange(e,t,i,n){this.unit.notifyMoveFormulaRange(e,t,i,n)}notifyRemoveFormulaRange(e,t){this.unit.notifyRemoveFormulaRange(e,t)}notifyRecalcUnknown(){this.unit.notifyRecalcUnknown()}notifyDeleteSheet(){this.unit.notifyDeleteSheet()}getSheet(){return this.unit.getSheet()}registerRange(e){e.registerUnit(this)}unregisterRange(e){e.unregisterUnit(this)}}var eG=i(90437),eZ=((a={})[a.NONE=0]="NONE",a[a.TOP=1]="TOP",a[a.RIGHT=2]="RIGHT",a[a.BOTTOM=4]="BOTTOM",a[a.LEFT=8]="LEFT",a[a.OUTER=15]="OUTER",a[a.HORIZONTAL=16]="HORIZONTAL",a[a.VERTICAL=32]="VERTICAL",a[a.INNER=48]="INNER",a[a.ALL=63]="ALL",a);let ej=["top","right","bottom","left"];function eq(e){return e&&"string"!=typeof e?Array.isArray(e)?{top:e[0],right:e[1],bottom:e[2],left:e[3]}:e:{top:e,right:e,bottom:e,left:e}}function eK(e){return!e||null===e.top&&null===e.right&&null===e.bottom&&null===e.left}function eX(e,t,i){t=eq(t);let n=e?{...e}:eq(e);for(let e=0;e<ej.length;e++){let o=ej[e];i&eZ[ej[e].toUpperCase()]&&(n[o]=t[o])}return n}function eQ(e,t,i,n,o,r){return eJ(e$(e,t,i,n,o),r)}function e$(e,t,i,n,o){let r=eZ[n.toUpperCase()]||0;if(16===r&&1===i.getHeight()||32===r&&1===i.getWidth()||48===r&&1===i.getHeight()&&1===i.getWidth())return[];let a=[],s=eq(o);return i.normalize().forAll((e,t)=>{let n,o=(n=0,e===i.from.row&&(n|=1&r),t===i.to.col&&(n|=2&r),e===i.to.row&&(n|=4&r),t===i.from.col&&(n|=8&r),16&r&&(e>i.from.row&&(n|=1),e<i.to.row&&(n|=4)),32&r&&(t>i.from.col&&(n|=8),t<i.to.col&&(n|=2)),n);if(0===o)return!0;15&o&&a.push({row:e,col:t,pattern:15&o,colors:s})}),[...a,...function(e,t,i,n){let o=[],r=i.getTopLeftCorner(),a=i.getBottomRightCorner();if(1&n&&r.row>0){let e=r.row-1;for(let t=r.col;t<=a.col;t++)o.push({row:e,col:t,pattern:4,colors:null})}if(2&n&&a.col+1<t){let e=a.col+1;for(let t=r.row;t<=a.row;t++)o.push({row:t,col:e,pattern:8,colors:null})}if(4&n&&a.row+1<e){let e=a.row+1;for(let t=r.col;t<=a.col;t++)o.push({row:e,col:t,pattern:1,colors:null})}if(8&n&&r.col>0){let e=r.col-1;for(let t=r.row;t<=a.row;t++)o.push({row:t,col:e,pattern:2,colors:null})}return o}(e,t,i,r)]}function eJ(e,t){let i=new Map;for(let{row:t,col:n,pattern:o,colors:r}of e){let e=`${t}-${n}`,a=i.get(e);a?(a.pattern|=o,a.colors=eX(a.colors,r,o)):i.set(e,{row:t,col:n,pattern:o,colors:r})}let n=[];for(let{row:e,col:o,pattern:r,colors:a}of i.values()){let i=eq(t(e,o)),s=eX(i,a,r);!function(e,t){let i=eK(e),n=eK(t);return i||n?i===n:e.top===t.top&&e.right===t.right&&e.bottom===t.bottom&&e.left===t.left}(s,i)&&(eK(s)&&(15&r)==15?n.push([e,o,null]):n.push([e,o,eX(void 0,s,r)]))}return n}function e0(e,t,i,n){let o=[],r=eZ[i.toUpperCase()]||0,a=t.getTopLeftCorner(),s=t.getBottomRightCorner();return 1&r&&a.row>0&&o.push([a.row-1,eX(void 0,n,4)]),4&r&&s.row+1<e&&o.push([s.row+1,eX(void 0,n,1)]),o}function e1(e,t,i,n){let o=[],r=eZ[i.toUpperCase()]||0,a=t.getTopLeftCorner(),s=t.getBottomRightCorner();return 8&r&&a.col>0&&o.push([a.col-1,eX(void 0,n,2)]),2&r&&s.col+1<e&&o.push([s.col+1,eX(void 0,n,8)]),o}class e2{constructor(){this.fRanges=new Map}add(e){let t=e._range.key();this.fRanges.has(t)||this.fRanges.set(t,e)}getFormulaRange(e){return this.fRanges.get(e.key())}matchFormulaRanges(e,t){let i=[];return this.fRanges.forEach(n=>{n.hasCoord(e,t)&&i.push(n)}),i}getCoverFormulaRanges(e,t){let i=[];return this.fRanges.forEach(n=>{n.isWithinRow(e.row,t.row)&&n.isWithinCol(e.col,t.col)&&i.push(n)}),i}getAllFormulaRanges(){let e=Array(this.fRanges.size),t=0;return this.fRanges.forEach(i=>{e[t++]=i}),e}getFormulaRangeBetweenRow(e,t){let i=[];return this.fRanges.forEach(n=>{n.isBetweenRow(e,t)&&i.push(n)}),i}getFormulaRangeBetweenCol(e,t){let i=[];return this.fRanges.forEach(n=>{n.isBetweenCol(e,t)&&i.push(n)}),i}}class e3{constructor(e){this._range=e,this.formulaItems=[],this.condItems=[],this.unitItems=[],this.spillItem=null}getRange(){return this._range}register(e){this.formulaItems.push(e)}unregister(e){e4(this.formulaItems,e)}getRegisteredItems(){return this.formulaItems}registerCond(e){this.condItems.push(e)}unregisterCond(e){e4(this.condItems,e)}getRegisteredConds(){return this.condItems}registerUnit(e){this.unitItems.push(e)}unregisterUnit(e){e4(this.unitItems,e)}getRegisteredUnits(){return this.unitItems}registerSpillItem(e){if(this.spillItem)throw Error("need unregister spill item first");this.spillItem=e}unregisterSpillItem(){this.spillItem=null}getSpillItem(){return this.spillItem}rangeEqual(e){return this._range.equals(e)}hasCoord(e,t){return this._range.includes(e,t)}isBetweenRow(e,t){return this._range.isBetweenRow(e,t)}isBetweenCol(e,t){return this._range.isBetweenCol(e,t)}isWithinRow(e,t){return this._range.isWithinRow(e,t)}isWithinCol(e,t){return this._range.isWithinCol(e,t)}}function e4(e,t){let i=e.indexOf(t);if(i<0)return;let n=e.pop();n&&i<e.length&&(e[i]=n)}class e5{constructor(){this.blocks=[]}getFormulaRange(e){let t=this._getFirstBlock(e);return t&&t.getFormulaRange(e)}getOrCreateFormulaRange(e){let t=this.getFormulaRange(e);if(t)return t;let i=new e3(e);return this.addFormulaRange(i),i}addFormulaRange(){}_getFirstBlock(e){return this._getBlock(e.from)}_getBlock(){}_getBlockByIndex(){}matchFormulaRanges(e,t){let i=this._getBlock(e,t);return i?.matchFormulaRanges(e,t)??[]}getCoverFormulaRanges(e,t){let i=this._getBlock(e.row,e.col);return i?.getCoverFormulaRanges(e,t)??[]}getRefItemsToRow(){}getRefItemsToColumn(){}_each(e){for(let t=0;t<this.blocks.length&&(!this.blocks[t]||!1!==e(this.blocks[t],t));t++);}getAllFormulaRanges(){let e=new Set,t=[];return this._each(i=>{let n=i.getAllFormulaRanges();for(let i=0;i<n.length;i++){let o=n[i];e.has(o)||(e.add(o),t.push(o))}}),t}}class e6 extends e5{addFormulaRange(e){let{from:t,to:i}=e._range,n=e9(t.row),o=e9(i.row),r=t.col>>4,a=i.col>>4;for(let t=n;t<=o;t++)for(let i=r;i<=a;i++)this._getBlockByIndex(t,i,!0).add(e);return e}_getFirstBlock(e){return this._getBlock(e.from.row,e.from.col)}_getBlock(e,t){let i=e9(e),n=t>>4;return this._getBlockByIndex(i,n,!1)}_getBlockByIndex(e,t,i){if(i&&(this.blocks[e]||(this.blocks[e]=[]),this.blocks[e][t]||(this.blocks[e][t]=new e2)),this.blocks[e])return this.blocks[e][t]}getRefItemsToRow(e,t){let i=e9(e),n=e9(t),o=[];if(this.blocks[i])for(let n=0;n<this.blocks[i].length;n++)this.blocks[i][n]&&ec(o,this.blocks[i][n].getFormulaRangeBetweenRow(e,t));for(let e=i+1;e<n;e++)if(this.blocks[e])for(let t=0;t<this.blocks[e].length;t++)this.blocks[e][t]&&ec(o,this.blocks[e][t].getAllFormulaRanges());if(n!==i&&this.blocks[n])for(let i=0;i<this.blocks[n].length;i++)this.blocks[n][i]&&ec(o,this.blocks[n][i].getFormulaRangeBetweenRow(e,t));return o}getRefItemsToColumn(e,t){let i=[],n=e>>4,o=t>>4;for(let r=0;r<this.blocks.length;r++)if(this.blocks[r]){this.blocks[r][n]&&ec(i,this.blocks[r][n].getFormulaRangeBetweenCol(e,t));for(let e=n+1;e<o;e++)this.blocks[r][e]&&ec(i,this.blocks[r][e].getAllFormulaRanges());o!==n&&this.blocks[r][o]&&ec(i,this.blocks[r][o].getFormulaRangeBetweenCol(e,t))}return i}_each(e){for(let t=0;t<this.blocks.length;t++){let i=this.blocks[t];if(i){for(let t=0;t<i.length;t++)if(i[t]&&!1===e(i[t]))return}}}}class e8 extends e5{addFormulaRange(e){let t=e9(e._range.from),i=e9(e._range.to);for(let n=t;n<=i;n++)this._getBlockByIndex(n,!0).add(e);return e}_getBlock(e){return this._getBlockByIndex(e9(e),!1)}_getBlockByIndex(e,t){return t&&!this.blocks[e]&&(this.blocks[e]=new e2),this.blocks[e]}getRefItemsToRow(e,t){let i=[],n=e9(e),o=e9(t);this.blocks[n]&&ec(i,this.blocks[n].getFormulaRangeBetweenRow(e,t));for(let e=n+1;e<o;e++)this.blocks[e]&&ec(i,this.blocks[e].getAllFormulaRanges());return o!==n&&this.blocks[o]&&ec(i,this.blocks[o].getFormulaRangeBetweenRow(e,t)),i}getRefItemsToColumn(){let e=[];for(let t=0;t<this.blocks.length;t++)this.blocks[t]&&ec(e,this.blocks[t].getAllFormulaRanges());return e}}class e7 extends e5{addFormulaRange(e){let t=e._range.from>>4,i=e._range.to>>4;for(let n=t;n<=i;n++)this._getBlockByIndex(n,!0).add(e);return e}_getFirstBlock(e){return this._getBlock(0,e.from)}_getBlock(e,t){return this._getBlockByIndex(t>>4,!1)}_getBlockByIndex(e,t){return t&&!this.blocks[e]&&(this.blocks[e]=new e2),this.blocks[e]}getRefItemsToRow(){let e=[];for(let t=0;t<this.blocks.length;t++)this.blocks[t]&&ec(e,this.blocks[t].getAllFormulaRanges());return e}getRefItemsToColumn(e,t){let i=[],n=e>>4,o=t>>4;this.blocks[n]&&ec(i,this.blocks[n].getFormulaRangeBetweenCol(e,t));for(let e=n+1;e<o;e++)this.blocks[e]&&ec(i,this.blocks[e].getAllFormulaRanges());return o!==n&&this.blocks[o]&&ec(i,this.blocks[o].getFormulaRangeBetweenCol(e,t)),i}}function e9(e){if(e<32768)return e>>7;let t=Math.floor(Math.log(e)/Math.log(2))-14;return(e-(1<<14+t)>>7+t)+256+(t-1)*128}class te{constructor(e){this.container=new e6,this.rowContainer=new e8,this.colContainer=new e7,this.nameContainer=e.getNameManager().getContainer(),this.spillContainer=new e6}getContainer(){return this.container}getRowContainer(){return this.rowContainer}getColContainer(){return this.colContainer}getNameContainer(){return this.nameContainer}getSpillContainer(){return this.spillContainer}matchFormulaRanges(e,t,i){let n,o=[];return(n=this.container.matchFormulaRanges(e,t))&&ec(o,n),(n=this.rowContainer.matchFormulaRanges(e,0))&&ec(o,n),(n=this.colContainer.matchFormulaRanges(0,t))&&ec(o,n),(n=this.nameContainer.matchFormulaRanges(e,t,i))&&ec(o,n),(n=this.spillContainer.matchFormulaRanges(e,t))&&ec(o,n),o}getDependencies(e,t,i){let n=[],o=new Set,r=new Set,a=[],s=new Set,l=[],c=new Set,d=new Set,u=[];function h(e){for(let t=0;t<e.length;t++)r.has(e[t])||(r.add(e[t]),u.push(e[t]))}let p=e.getNameById(t.sheetId);for(let e=0;e<i.length;e++)h(this.matchFormulaRanges(i[e].row,i[e].col,p));for(let e of u){let t=e.getSpillItem();if(t&&!t.needCheckSpill){let i=t.sheet,n=eR.createFromRange(e.getRange(),i);n?.eachCell((e,t)=>{h(i.getFormulaDepManager().matchFormulaRanges(e,t,i.getName()))}),l.push(t)}}for(;u.length>0;){let t=u.pop();!function t(i){for(let r of i){if(eB(r)){d.has(r)||(d.add(r),t(r.getFormulaItems()));return}if(!o.has(r)&&!r.needUpdate){o.add(r),n.push(r);let t=r.sheet,i=t.getFormulaDepManager(),a=e.getNameById(t.sheetId);h(i.matchFormulaRanges(r.row,r.col,a))}c.has(r)||r.needDimension||c.add(r)}}(t.getRegisteredItems());let i=t.getRegisteredConds();for(let e=0;e<i.length;e++)s.has(i[e])||a.push(i[e])}return{deps:n,conds:a,vectorSet:d,spills:l,dimMayChange:c}}getCoverItems(e){let t=this.container.getCoverFormulaRanges(e.from,e.to)??[];return this._getUniqItems(t)}getItemsByCoords(e){let t=new Set;for(let i of e)for(let e of this.container.matchFormulaRanges(i.row,i.col))t.has(e)||t.add(e);return this._getUniqItems(Array.from(t))}getRefItemsToRowCol(e,t,i){return"row"===e?this.getRefItemsToRow(t,i):"col"===e?this.getRefItemsToColumn(t,i):void 0}getRefItemsToRow(e,t){let i=this.container.getRefItemsToRow(e,t).concat(this.rowContainer.getRefItemsToRow(e,t),this.colContainer.getRefItemsToRow(e,t),this.nameContainer.getRefItemsToRow(e,t),this.spillContainer.getRefItemsToRow(e,t));return i=es(i),this._getUniqItems(i)}getRefItemsToColumn(e,t){let i=this.container.getRefItemsToColumn(e,t).concat(this.rowContainer.getRefItemsToColumn(e,t),this.colContainer.getRefItemsToColumn(e,t),this.nameContainer.getRefItemsToColumn(e,t),this.spillContainer.getRefItemsToColumn(e,t));return i=es(i),this._getUniqItems(i)}_getUniqItems(e){let t=[],i=[],n=[],o=new Set;for(let r=0;r<e.length;r++){ec(t,e[r].getRegisteredItems()),ec(i,e[r].getRegisteredConds()),ec(n,e[r].getRegisteredUnits());let a=e[r].getSpillItem();a&&o.add(a)}return{deps:es(t),conds:es(i),units:es(n),spills:o}}getNotMyOwnItems(e){let t=this.container.getAllFormulaRanges().concat(this.rowContainer.getAllFormulaRanges(),this.colContainer.getAllFormulaRanges(),this.nameContainer.getAllFormulaRanges()),{deps:i,conds:n,units:o}=this._getUniqItems(t),r=t=>t.sheet!==e;return{items:i.filter(e=>!eB(e)&&r(e)),conds:n.filter(r),units:o.filter(t=>t.getSheet()!==e)}}getRenameRelatedItems(){let e=this.container.getAllFormulaRanges().concat(this.rowContainer.getAllFormulaRanges(),this.colContainer.getAllFormulaRanges()),t=[],i=[];for(let n=0;n<e.length;n++)ec(t,e[n].getRegisteredItems().filter(e=>!eB(e))),ec(i,e[n].getRegisteredUnits());return{deps:es(t),units:es(i)}}}var tt=i(65430);class ti{constructor(){this.cells=[]}addCell(e,t){this.cells[e]=t}getCell(e){return this.cells[e]||null}_getCells(){return this.cells}getColLength(){return this.cells.length}forEach(e,t){this.cells.forEach(e,t)}}var tn=i(82164),to=i(27187);function tr(e,t){return["w","s","outlineLevel"].every(i=>e[i]===t[i])&&["hidden","collapse"].every(i=>(e[i]??!1)===(t[i]??!1))}class ta{constructor(){this.list=[{start:1,data:null}]}set(e,t,i){e>t&&([e,t]=[t,e]),e=(0,tn.Z)(e,1,16384),t=(0,tn.Z)(t,1,16384);let n=this.cutAt(e),o=this.cutAt(t+1);-1!==n&&(o>n+1&&this.list.splice(n+1,o-n-1),this.list[n].data=i)}cutAt(e){let t=this.find(e);if(t<=-1)return -1;let i=this.list[t];return i.start===e?t:(this.list.splice(t+1,0,{start:e,data:i.data}),t+1)}find(e){if(e<1)return 0;if(e>16384)return -1;for(let t=this.list.length-1;t>=0;t--){let i=this.list[t],n=this.list[t+1];if(i.start<=e&&(!n||e<n.start))return t}return -1}generateCols(e){let t=[],i=this.getGlobalStyle();for(let n=0;n<this.list.length;n++){let o=this.list[n],r=o.start,a=this.list[n+1]?.start??16385;for(let n=r;n<a&&n<=e;n++)if(o.data){let e={...o.data},r=e.s??0;r===i?delete e.s:e.s=r,Object.keys(e).length>0&&(t[n-1]=e)}else i>0&&(t[n-1]={s:0})}return t}getGlobalStyle(){return this.list.at(-1)?.data?.s??0}}var ts=i(69845),tl=i(39897);function tc(e,t){for(let i in e)if(Object.prototype.hasOwnProperty.call(e,i)&&!1===t(e[i],parseInt(i,10)))break}var td=i(49798),tu=i(90132);class th{constructor(e,t){this.cellCollections=[],this.rowInfos=[],this.colInfos=[],this.globalInfo={},this.rowCount=t.rowCount||0,this.colCount=t.colCount||0,this.rtl=t.rightToLeft??!1,this.workbook=e,this.initRowCol(t),this.initData(t),this.initNote(t),["rowCount","colCount","rows","cols","global","cells"].forEach(e=>{delete t[e]})}initRowCol(e){if(tc(e.rows,(e,t)=>{(0,er.Z)(t)||(e.h&&this.updateRowAttr(t,"h",e.h),e.hidden&&this.updateRowAttr(t,"hidden",!0),"number"==typeof e.s&&this.updateRowAttr(t,"s",e.s),"number"==typeof e.outlineLevel&&this.updateRowAttr(t,"outlineLevel",e.outlineLevel))}),e.colSpans){let{cols:t,global:i}=function(e,t){let i=new ta;for(let t of e)i.set(t.start,t.end,(0,to.Z)(t,["start","end"]));return{cols:i.generateCols(t),global:{s:i.getGlobalStyle()}}}(e.colSpans,e.colCount);e.cols=t,e.global={...i,h:e.global?.h,w:e.global?.w}}if(tc(e.cols,(e,t)=>{(0,er.Z)(t)||(e.w&&this.updateColAttr(t,"w",e.w),e.hidden&&this.updateColAttr(t,"hidden",!0),"number"==typeof e.s&&this.updateColAttr(t,"s",e.s),"number"==typeof e.outlineLevel&&this.updateColAttr(t,"outlineLevel",e.outlineLevel))}),e.global){let t=this.getGlobalInfo();e.global.s&&(t.s=e.global.s),e.global.h&&(t.h=e.global.h),e.global.w&&(t.w=e.global.w)}}initData(e){let t=e.cells;for(let e in t)if((0,tl.Fs)(t,e)){let i=parseInt(e,10);for(let n in t[e])if((0,tl.Fs)(t[e],n)){let o=t[e][n];if(null===o)continue;let r=parseInt(n,10),a=this.getOrCreateCell(i,r,o.s||0);if("v"in o){let e=(0,ts.pM)(o.v)?td.Z.fromJSON(o.v):o.v;a.setValue(e??null)}o.n&&a.setNote(o.n)}}}initNote(e){for(let t of e.notes||[])this.getOrCreateCell(t.row,t.col).setNote(t.text)}forEachCellModel(e){let t=0,i=this.getRowLength(),n=(i,n)=>{i&&e(i,t,n)};for(;t<i;t++){let e=this.getRow(t);e&&e.forEach(n)}}getRow(e){return this.cellCollections[e]||null}updateRow(e,t){let{data:i,info:n}=t;this.rowInfos[e]=n,this.cellCollections[e]=i}getRowLength(){return this.cellCollections.length}getCell(e,t){let i=this.getRow(e);return i?i.getCell(t):null}createRowModel(e){let t=new ti;return this.cellCollections[e]=t,t}getOrCreateCell(e,t,i){let n=this.cellCollections[e];n||(n=this.createRowModel(e));let o=n.getCell(t);return o||(o=this.workbook.getStyleManager().createRefCell(null,i??this.getEmptyXf(e,t)),n.addCell(t,o)),o}getComputedCellStyle(e,t){let i=this.getCell(e,t);return i?i.getCellStyle():this.getEmptyStyle(e,t)}getEmptyStyle(e,t){return this.workbook.getStyleManager().getCellStyle(this.getEmptyXf(e,t))}getEmptyXf(e,t){return this.rowInfos[e]?.s??this.colInfos[t]?.s??this.globalInfo.s??0}getGlobalXf(){return this.getGlobalInfo().s||0}createRow(e,t,i){t>0&&(ef(this.cellCollections,e,t),ef(this.rowInfos,e,t),i>=0&&this._populateAfterRowCreate(e,t,i),this.rowCount+=t)}createCol(e,t,i){if(t>0){for(let i=0;i<this.rowCount;i++){let n=this.getRow(i);n&&ef(n._getCells(),e,t)}ef(this.colInfos,e,t),i>=0&&this._populateAfterColCreate(e,t,i),this.colCount+=t}}collectRangeNote(e,t){let{from:i,to:n}=e;void 0===t&&(t=()=>!1);let{row:o,col:r}=i,{row:a,col:s}=n,l=[];for(let e=o;e<=a;e++){if(t&&t(e))continue;let i=[];for(let t=r;t<=s;t++)i.push(this.getCell(e,t)?.getNote()??"");l.push(i)}return l}removeRow(e,t){t>0&&(this.cellCollections.splice(e,t),this.rowInfos.splice(e,t),this.rowCount-=t)}removeCol(e,t){if(t>0){for(let i=0;i<this.rowCount;i++){let n=this.getRow(i);n&&n._getCells().splice(e,t)}this.colInfos.splice(e,t),this.colCount-=t}}_populateAfterRowCreate(e,t,i){let n;i>=e&&(i+=t);let o=e+t,r=this.getRowInfo(i);if(r){let t=[];if((r.s??0)>0&&t.push(["s",r.s]),r.h&&t.push(["h",r.h]),(r.outlineLevel??0)>0&&t.push(["outlineLevel",r.outlineLevel]),t.length>0)for(n=e;n<o;n++)for(let[e,i]of t)this.updateRowAttr(n,e,i)}let a=this.getRow(i);a&&a.forEach((t,i)=>{let r=t?t.getXfId():-1;if(!(r<0))for(n=e;n<o;n++)r!==this.getEmptyXf(n,i)&&this.getOrCreateCell(n,i,r)})}_populateAfterColCreate(e,t,i){let n,o;i>=e&&(i+=t);let r=e+t,a=this.getColInfo(i);if(a){let t=[];for((a.s??0)>0&&t.push(["s",a.s]),a.w&&t.push(["w",a.w]),(a.outlineLevel??0)>0&&t.push(["outlineLevel",a.outlineLevel]),n=e;n<r;n++)for(let[e,i]of t)this.updateColAttr(n,e,i)}let s=[];this.cellCollections.forEach((e,t)=>{e&&(o=e.getCell(i))&&o.getXfId()>=0&&s.push([t,o.getXfId()])}),s.forEach(t=>{let[i,o]=t;for(n=e;n<r;n++)o!==this.getEmptyXf(i,n)&&this.getOrCreateCell(i,n,o)})}moveRow(e,t,i){el(this.cellCollections,e,t,i),el(this.rowInfos,e,t,i)}moveCol(e,t,i){for(let n=0;n<this.cellCollections.length;n++){let o=this.cellCollections[n];o&&el(o._getCells(),e,t,i)}el(this.colInfos,e,t,i)}getRowCount(){return this.rowCount}getColCount(){return this.colCount}getValue(e,t){let i=this.getCell(e,t);return i?i.getValue():null}setValue(e,t,i){this.getOrCreateCell(e,t).setValue(i)}getRowInfo(e){return this.rowInfos[e]??void 0}getColInfo(e){return this.colInfos[e]??void 0}getDefaultRowHeight(){return this.globalInfo.h??tu.Z.ROW_HEIGHT}getDefaultColWidth(){return this.globalInfo.w??tu.Z.COL_WIDTH}getGlobalInfo(){return this.globalInfo}getNormalizedGlobalInfo(){let e={};return this.getGlobalXf()>0&&(e.s=this.getGlobalXf()),this.getDefaultRowHeight()!==tu.Z.ROW_HEIGHT&&(e.h=this.getDefaultRowHeight()),this.getDefaultColWidth()!==tu.Z.COL_WIDTH&&(e.w=this.getDefaultColWidth()),Object.keys(e).length>0?e:null}updateDimAttr(e,t,i,n){"row"===e?this.updateRowAttr(t,i,n):this.updateColAttr(t,i,n)}updateRowAttr(e,t,i){let n=this.rowInfos[e];n||(n=this.rowInfos[e]={}),n[t]=i}updateColAttr(e,t,i){let n=this.colInfos[e];if(!n){n=this.colInfos[e]={};let t=this.getGlobalXf();t>0&&(n.s=t)}n[t]=i}updateGlobalStyle(e){this.globalInfo.s=e}getMaxRowGroupLevel(){return(0,tt.Z)(this.rowInfos.map(e=>e?.outlineLevel??0))??0}getMaxColGroupLevel(){return(0,tt.Z)(this.colInfos.map(e=>e?.outlineLevel??0))??0}getWorkbook(){return this.workbook}getWorksheetRtl(){return this.rtl}setWorksheetRtl(e){this.rtl=e}}function tp(e){switch(e){case"Font":return tf;case"Fill":return tg;case"Alignment":return tm;case"Format":return tv;case"Border":return tb;case"QuotePrefix":return ty;default:throw Error(`Unknown style type: ${e}`)}}function tf(e,t,i,n){let o,r=e.getCellStyle(t).getFont();if(null===i&&r.isDefault())return;let a=r.isDefault()?null:r.toJSON();o=null===i?e.getFont(0).clone():n?e.createFont(i):r.clone().assign(i);let s=e.addFont(o),l=tw(e,t,"fontId",s);return[t,l,a,i]}function tg(e,t,i,n){let o,r=e.getCellStyle(t).getFill();if(null===i&&r.isDefault())return;let a=r.isDefault()?null:r.toJSON();o=null===i?e.getFill(0).clone():n?e.createFill(i):r.clone().assign(i);let s=e.addFill(o),l=tw(e,t,"fillId",s);return[t,l,a,i]}function tm(e,t,i,n){let o,r=e.getCellStyle(t).getAlignment();if(null===i&&r.isDefault())return;let a=r.isDefault()?null:r.toJSON();o=null===i?e.getAlignment(0).clone():n?e.createAlignment(i):r.clone().assign(i);let s=e.addAlignment(o),l=tw(e,t,"alignmentId",s);return[t,l,a,i]}function tv(e,t,i){let n,o=e.getCellStyle(t).getNumberFormat().fc;if(i===o)return;n=null===i?e.getNumberFormat(0).clone():e.createNumberFormat({fc:i});let r=e.addNumberFormat(n),a=tw(e,t,"nfId",r);return[t,a,o,i]}function tb(e,t,i){let n,o=e.getCellStyle(t).getBorder(),r=o.isDefault()?null:o.b,a=i?i&&"string"!=typeof i?Array.isArray(i)?i:[i.top,i.right,i.bottom,i.left]:[i,i,i,i]:null;if(function(e,t){let i=Array.isArray(e),n=Array.isArray(t);if(!i||!n)return i===n;for(let i=0;i<e.length;i++)if(e[i]!==t[i])return!1;return!0}(r,a))return;if(null!==a){let t=function(e,t){let i=[null,null,null,null],n=!0;for(let o=0;o<i.length;o++)i[o]=(void 0!==t[o]?t[o]:e[o])??null,i[o]&&(n=!1);return n?null:i}(r??[null,null,null,null],a);n=e.createBorder({b:t})}else n=e.getBorder(0).clone();let s=e.addBorder(n),l=tw(e,t,"borderId",s);return null===a||a.every(e=>void 0!==e)?[t,l,eq(r),eq(a)]:[t,l,eq(a.map((e,t)=>void 0===e?void 0:r?.[t]??null)),eq(a.map((e,t)=>void 0===e?void 0:e))]}function ty(e,t,i){let n=e.getCellStyle(t).getQuotePrefix();if(i===n)return;let o=tw(e,t,"quotePrefix",i>0);return[t,o,n,i]}function tw(e,t,i,n){let o=e.getCellStyle(t);if(n===o[i])return t;let r=o.clone();return r[i]=n,e.addCellStyle(r)}var t_=i(55991),tx=i(5875);function tS(e){return(0,t_.P6)(e)?null:e}function tC(e,t,i,n,o){let r=e.worksheet,a=e.getStyleManager(),s=tp(i),l="row"===t?r.getRowInfo:r.getColInfo,c=[],d=r.getGlobalXf();for(let i=0,u=n.length;i<u;i++){let u=n[i][0],h=n[i][1];if(void 0===h)continue;let p=l.call(r,u),f=p&&void 0!==p.s?p.s:d,g=s(a,f,h,o);if(!g){c.push([u,null,h]);continue}let m=g[1];f!==m&&e.setDimensionStyle(t,u,m),c.push([u,g[2],g[3]])}return c}let tk=class{constructor(e){this.sheet=e}setStyleByType(e,t,i,n,o){"Format"===e?this.styleSetter("Format",tS,t,i,n,o):this.styleSetter(e,null,t,i,n,o)}setFont(e,t,i,n){this.styleSetter("Font",null,e,t,i,n)}setFill(e,t,i,n){this.styleSetter("Fill",null,e,t,i,n)}setAlignment(e,t,i,n){this.styleSetter("Alignment",null,e,t,i,n)}setBorder(e,t,i,n){this.styleSetter("Border",null,e,t,i,n)}setFormat(e,t,i,n){this.styleSetter("Format",tS,e,t,i,n)}setQuotePrefix(e,t,i,n){this.styleSetter("QuotePrefix",null,e,t,i,n)}styleSetter(e,t,i,n,o,r){let a=tp(e),s=[],l=[],c=this.sheet.getStyleManager();n=!!n,o=o||"";for(let e=0,o=i.length;e<o;e++){let o=i[e],r=o[0],d=o[1],u=o[2];t&&(u=t(u));let h=this.sheet.getCellModel(r,d),p=h?h.getXfId():this.sheet.worksheet.getEmptyXf(r,d);if(0===p&&null===u){l.push([r,d,u]);continue}let f=a(c,p,u,n);if(!f||f[0]===f[1]){l.push([r,d,f?f[2]:u]);continue}s.push([r,d,f[2],f[3]]),this.sheet.setCellXf(r,d,f[1])}if(r)return void r(s,l);s.length>0&&this.sheet.runHooks("after"+e+"Change",s,n,o),"Alignment"===e&&this.onAlignmentChanged({cellChanges:i})}setRowStyle(e,t,i,n,o){let r,a,s;if(i=!!i,o=o||"",!Array.isArray(t))return;let l=this.sheet.worksheet,c=new Set(n?.map(e=>{let[t,i]=e;return t+","+i}));n??=[];let d=function(e,t){e&&void 0!==e.s&&void 0!==s&&n.push([r,t,s])};for(let e=0,i=t.length;e<i;e++){r=t[e][0],s=t[e][1];let i=l.getRow(r);if(i){let e=Math.min(Math.max(i.getColLength(),l.colInfos.length),this.sheet.countCols());for(a=0;a<e;a++)c.has(r+","+a)||(i.getCell(a)?n.push([r,a,s]):d(l.getColInfo(a),a))}else l.colInfos.forEach((e,t)=>{if(!c.has(r+","+t))return d(e,t)})}let u=[];n&&n.length>0&&this.setStyleByType(e,n,i,o,(e,t)=>{for(let[i,n,o]of(u=e.slice(),t))u.push([i,n,o,o]),this.sheet.getOrCreateCell(i,n),this.sheet.notifyCellChanges(i,n)});let h=tC(this.sheet,"row",e,t,i);this.sheet.runHooks("afterRowStyleChange",e,h,i,{cellChanges:u},o),"Alignment"===e&&this.onAlignmentChanged({rowChanges:t})}setColStyle(e,t,i,n,o){let r,a,s;if(i=!!i,o=o||"",!Array.isArray(t))return;let l=this.sheet.worksheet,c=new Set(n?.map(e=>{let[t,i]=e;return t+","+i}));n??=[];let d=Math.min(Math.max(l.getRowLength(),l.rowInfos.length),this.sheet.countRows());for(r=0;r<d;r++){let e=l.getRowInfo(r),i=l.getRow(r);for(let o=0,l=t.length;o<l;o++)if(a=t[o][0],s=t[o][1],!c.has(r+","+a))if(i&&i.getCell(a))n.push([r,a,s]);else e&&void 0!==e.s&&void 0!==s&&n.push([r,a,s])}let u=[];n&&n.length>0&&this.setStyleByType(e,n,i,o,(e,t)=>{for(let[i,n,o]of(u=e.slice(),t))u.push([i,n,o,o]),this.sheet.getOrCreateCell(i,n),this.sheet.notifyCellChanges(i,n)});let h=tC(this.sheet,"col",e,t,i);this.sheet.runHooks("afterColStyleChange",e,h,i,{cellChanges:u},o),"Alignment"===e&&this.onAlignmentChanged({colChanges:t})}setGlobalStyle(e,t,i,n,o,r,a){i=!!i,a=a||"";let s=this.sheet.worksheet,l=this.sheet.getStyleManager(),c=s.getGlobalInfo();if(void 0===t)return;let d=[],u=[],h=[],p=new Map(n),f=new Map(o),g=new Set(r?.map(e=>{let[t,i]=e;return t+","+i}));r??=[];for(let e=0;e<s.getRowLength();e++){let i=s.getRow(e);if(i)for(let n=0;n<i.getColLength();n++)!g.has(e+","+n)&&i.getCell(n)&&r.push([e,n,p.get(e)??f.get(n)??t])}r&&r.length>0&&this.setStyleByType(e,r,i,a,function(e,t){h=e.concat(t.map(e=>{let[t,i,n]=e;return[t,i,n,n]}))}),n??=[],s.rowInfos.forEach(function(e,i){!p.has(i)&&e&&void 0!==e.s&&n.push([i,t])}),o??=[],s.colInfos.forEach(function(e,i){!f.has(i)&&e&&o.push([i,t])},this),d=tC(this.sheet,"row",e,n||[],i),u=tC(this.sheet,"col",e,o||[],i);let m=[null,t],v=c.s||0,b=tp(e)(l,v,t,i);b&&(this.sheet.setGlobalStyle(b[1]),m[0]=b[2]),this.sheet.runHooks("afterGlobalStyleChange",e,m,i,{rowChanges:d,colChanges:u,cellChanges:h},a),"Alignment"===e&&this.onAlignmentChanged({globalVal:t})}onAlignmentChanged(e){(function(e){let{cellChanges:t,rowChanges:i,colChanges:n,globalVal:o}=e;return!!(o&&(0,tx.op)(o)||i?.some(e=>{let[,t]=e;return t&&(0,tx.op)(t)})||n?.some(e=>{let[,t]=e;return t&&(0,tx.op)(t)})||t?.some(e=>{let[,,t]=e;return t&&(0,tx.op)(t)}))})(e)&&this.sheet.getWorkbook().getNotifier()?.onRtlDataAdded()}},tI=class{constructor(e){this.values=e,this.ranges=this.createTree(this.values.length),this.counts=Array(this.ranges.length).fill(0)}createTree(e){let t=0,i=e-1;for(let e=1;e<i;e*=2)t=2*t+1;let n=2*t+1,o=[[0,i]];for(let e=1;e<n;e++){let[t,i]=o[e%2?(e-1)/2:e/2-1],n=(i-t)%2?(i+t-1)/2:(i+t)/2;o[e]=e%2?[t,n]:[n,i]}return o}update(e,t){let[i,n]=e;return this.updateFromIndex(i,n,t,0)}updateFromIndex(e,t,i,n){let[o,r]=this.ranges[n],a=this.values[o],s=this.values[r],l=this.values[(r-o)%2?(r+o-1)/2:(r+o)/2];this.splitNode(n),a===e&&s===t?this.counts[n]+=i:t<=l?this.updateFromIndex(e,t,i,2*n+1):e>=l?this.updateFromIndex(e,t,i,2*n+2):(this.updateFromIndex(e,l,i,2*n+1),this.updateFromIndex(l,t,i,2*n+2)),this.mergeNode(n)}splitNode(e){let t=2*e+2;t<this.counts.length&&(this.counts[2*e+1]+=this.counts[e],this.counts[t]+=this.counts[e],this.counts[e]=0)}mergeNode(e){let t=2*e+1,i=2*e+2;if(i<this.counts.length){let n=this.counts[t],o=this.counts[i],r=n<o?n:o;this.counts[t]-=r,this.counts[i]-=r,this.counts[e]+=r}}query(){return this.queryFromIndex(0).map(e=>[this.values[e[0]],this.values[e[1]]])}queryFromIndex(e){if(0!==this.counts[e])return this.counts[e]?[this.ranges[e]]:[];let t=this.queryFromIndex(2*e+1),i=this.queryFromIndex(2*e+2);return this.mergeRangeList(t,i)}mergeRangeList(e,t){if(e.length>0&&t.length>0){let i=e.length-1;e[i][1]===t[0][0]&&(t[0]=[e.pop()[0],t[0][1]])}return e.concat(t)}};function tA(e,t){let i=[],n={from:-2,to:-2};return e.map(e=>{let i=e.getTopLeftCorner(),n=e.getBottomRightCorner();return{from:i[t],to:n[t]}}).sort((e,t)=>e.from-t.from).forEach(e=>{1<e.from-n.to?(n={from:e.from,to:e.to},i.push(n)):n.to=Math.max(n.to,e.to)}),i}function tT(e,t,i){let n=new tP;return tA(e,t).forEach(e=>{for(let t=e.from;t<=e.to;t++)!0===i(t)&&n.push(t)}),n.getResult()}function tE(e,t,i){for(let n=0;n<e.length;n++){let o=e[n].getTopLeftCorner(),r=e[n].getBottomRightCorner();for(let e=o.row;e<=r.row;e++)if(!i?.(e)){for(let i=o.col;i<=r.col;i++)if(!1===t(e,i))return}}}async function tR(e,t,i,n){for(let o of e){let e=o.getTopLeftCorner(),r=o.getBottomRightCorner(),a=await t(e,r),s=await n(e.row,r.row);for(let t=e.row;t<=r.row;t++)if(!s[t-e.row])for(let n=e.col;n<=r.col;n++)i(t,n,a[t-e.row][n-e.col])}}function tD(e){e=e.map(e=>e.clone().normalize());let t=[],i=[],n=[];for(let o of e)o.type===eA.Y3.row?t.push(o):o.type===eA.Y3.col?i.push(o):n.push(o);let o=tO(t,"row",n),r=tO(i,"col",o.cellRanges),a=function(e){if(0===e.length)return[];e=e.sort((e,t)=>e.from.row-t.from.row||e.from.col-t.from.col);let t=(e,t)=>{let i=[],n=[];for(let o of e)o.from.row<t?o.to.row>t-1?(i.push(new eA.GJ(o.from.row,o.from.col,t-1,o.to.col)),n.push(new eA.GJ(t,o.from.col,o.to.row,o.to.col))):o.to.row===t-1&&i.push(o):n.push(o);return{result:i,remain:n}},i=e=>{if(0===e.length)return[];let t=[];e.sort((e,t)=>e.from.col-t.from.col);let i=e[0];t.push(i);for(let n=1;n<e.length;n++)i.isHoriMergeable(e[n])?i.expandCol(e[n].from.col,e[n].to.col):t.push(i=e[n]);return t},n=[];for(let o of e.reduce((e,t)=>(e.push(t.from.row,t.to.row+1),e),[]).sort((e,t)=>e-t)){let{result:r,remain:a}=t(e,o);e=a,n=n.concat(i(r))}return(e=>{let t=[];for(let i=0;i<e.length;i++){let n=e[i];if(n){t.push(n);for(let t=i+1;t<e.length;t++){let i=e[t];if(i){if(i.from.row>n.to.row+1)break;n.isVertMergeable(i)&&(n.expandRow(i.from.row,i.to.row),e[t]=null)}}}}return t})(n)}(r.cellRanges);return[...o.dimRanges,...r.dimRanges,...a]}function tO(e,t,i){if(0===e.length)return{dimRanges:[],cellRanges:i};e.sort((e,i)=>e.from[t]-i.from[t]);let n=[],o=e[0];for(let i=1;i<e.length;i++){let r=e[i];o.to[t]+1>=r.from[t]?o.to[t]=Math.max(o.to[t],r.to[t]):(n.push(o),o=r)}n.push(o);let r=[];for(let e of i){let i=e,o=ed(n,i=>i.to[t]<e.from[t]);for(;i&&o<n.length;){let e=n[o];if(e.to[t]<i.to[t]){if(e.from[t]>i.from[t]){let n=i.clone();n.to[t]=e.from[t]-1,r.push(n)}i.from[t]=e.to[t]+1}else{if(e.from[t]>i.from[t]){let n=i.clone();n.to[t]=Math.min(n.to[t],e.from[t]-1),r.push(n)}i=null}o+=1}i&&r.push(i)}return{dimRanges:n,cellRanges:r}}function tM(e,t){let i=[],n=[];for(let o of e.map(e=>e.clone()))o.overlaps(t)?(o.from.row<t.from.row&&(i.push(new eA.GJ(o.from.row,o.from.col,t.from.row-1,o.to.col)),o.from.row=t.from.row),o.to.row>t.to.row&&(i.push(new eA.GJ(t.to.row+1,o.from.col,o.to.row,o.to.col)),o.to.row=t.to.row),o.from.col<t.from.col&&(i.push(new eA.GJ(o.from.row,o.from.col,o.to.row,t.from.col-1)),o.from.col=t.from.col),o.to.col>t.to.col&&(i.push(new eA.GJ(o.from.row,t.to.col+1,o.to.row,o.to.col)),o.to.col=t.to.col),n.push(o)):i.push(o);return{newRanges:i,removeRanges:n}}function tN(e){let t=e.reduce((e,t)=>(e.push({coord:t[1]+0,start:!0,range:[t[0],t[2]+1]}),e.push({coord:t[3]+1,start:!1,range:[t[0],t[2]+1]}),e),[]).sort((e,t)=>e.coord-t.coord),i=Object.keys(e.reduce((e,t)=>(e[t[0]]=e[t[2]+1]=!0,e),{})).map(e=>+e).sort((e,t)=>e-t),n=[],o=new tI(i);for(let e=0,i=0;e<t.length;e++){let r=t[i].coord,a=t[e].coord;if(r!==a){i=e;let t=o.query();for(let e=0;e<t.length;e++){let i=t[e];n.push([i[0],r,i[1]-1,a-1])}}let{start:s,range:l}=t[e];o.update(l,s?1:-1)}let r=[],a=new Set;return n.forEach(e=>{let t=r.length,i=null;a.forEach(t=>t[3]<e[1]-1?r.push(t):i||t[0]!==e[0]||t[2]!==e[2]||t[3]+1!==e[1]?void 0:i=t);for(let e=t;e<r.length;e++)a.delete(r[e]);i&&(e[1]=i[1],a.delete(i)),a.add(e)}),a.forEach(e=>r.push(e)),r}class tP{constructor(e){this._result=[],this._frag={from:-2,to:-2},this._init(e)}_init(e){if(Array.isArray(e))for(let t=0;t<e.length;t++)this.push(e[t])}push(e){e===this._frag.to+1?this._frag.to=e:(this._frag={from:e,to:e},this._result.push(this._frag))}getResult(){return this._result}}var tL=((s={}).Alter="alter",s.ApplyLink="applyLink",s.Autofill="autofill",s.ClearFormat="clearFormat",s.Cut="cut",s.Edit="edit",s.Format="format",s.Formula="formula",s.InsertedData="inserted_data",s.MergeCell="merge_cell",s.Paste="paste",s.PopulateData="populateData",s.Redo="redo",s.Remote="remote",s.RemoveLink="removeLink",s.RemoveValue="removeValue",s.Undo="undo",s.Validation="validation",s.PivotTable="pivotTable",s);let tB=new Set([tL.Edit,tL.Format,tL.ApplyLink,tL.RemoveLink,tL.Validation,tL.RemoveValue]),tF=new Set([tL.Edit,tL.ApplyLink,tL.RemoveLink]),tV=function(e,t,i){if(!tB.has(i))return;let n=e.getWorkbook().getLocale(),o=n.getLocaleConverter(),r=n.getInputParser(),a=[];for(let n=0,s=t.length;n<s;n++){let[s,l,,c]=t[n],d=e.worksheet.getComputedCellStyle(s,l),u=(0,ts.is)(c),h="string"==typeof c||u,p=u?c.getText():c,f=h&&(0,t_.Wz)(p);t[n].push(d.getQuotePrefix(),f);let g=d.getNumberFormat();if(f)t[n][3]=u?c.removeFirstChar():c.substr(1),a.push(g.isDefault()?null:[s,l,null]);else if(h&&(0,t_.jr)(p)){let e=o.normalizeFormula(p);t[n][3]=function(e){let t="IMPORTRANGE";if(!e.toUpperCase().includes(t+"("))return e;let i=!1,n=(0,U.wS)(e);for(let e=0;e<n.size();e++){let o=n.get(e);if(o.isFunction()&&o.getText().toUpperCase()===t&&n.get(e+1)?.isLeftParenthesis()){let[t,o]=function(e,t){let i=[],n=[i],o=0;for(let r of function*(e,t){for(let i=t;i<e.size();i++){let t=e.get(i);t.isWhitespace()||(yield t)}}(e,t))if(r.isComma()&&0===o?(i=[],n.push(i)):r.isLeftParenthesis()?o+=1:r.isRightParenthesis()?o-=1:i.push(r),o<0||n.length>2)break;return n.slice(0,2).map(e=>1===e.length?e[0]:null)}(n,e+2);if(t?.isString()){let e=t.getText().match(/\/oo\/r\/(\w+)|d\/s\/(\w+\/[-\w]+)/);e&&(t.setValue(`"${e[1]??e[2]}"`),i=!0)}if(o?.isString()){let e=o.getText().slice(1,-1),t=e.lastIndexOf("!");if(t>0&&("'"!==e.charAt(0)||"'"!==e.charAt(t-1))){let n=`'${e.slice(0,t).replace("'","''")}'!${e.slice(t+1)}`,r=(0,U.wS)(n);1===r.size()&&r.get(0).isRange()&&(o.setValue(`"${n}"`),i=!0)}}}}return i?n.getText():e}(e),a.push(null)}else if(h&&!g.isText()){let e=r.parse(p)??{v:p};e.v!==p&&(t[n][3]=e.v,tF.has(i)&&e.numeric&&(0,t_.GA)(g.fc)&&(t[n][3]=e.v/100)),(i!==tL.Validation||(0,t_.P6)(g.fc))&&a.push(function(e,t,i,n,o){let r=[e,t,i.fc];if(o===tL.Validation)return r;if(n.isDefault())return(0,t_.P6)(i.fc)?null:r;if(n.isDate())return i.d?null:r;if(n.isTime())return i.t?null:r;if(n.isDateTime())return i.datetime?null:r;return i.numeric||(0,t_.P6)(i.fc)?null:r}(s,l,e,g,i))}else a.push(null)}e.runHooks("beforeChangeForValid",t,i);let s=[],l=[],c=-1,d=-1;for(let e=0,i=t.length;e<i;e++){if(null===t[e])continue;let[i,n]=t[e].splice(-2);i!==n&&s.push([t[e][0],t[e][1],n]),null!==a[e]&&++d!==e&&(a[d]=a[e]);let o=t[e][3];if((0,ts.is)(o)&&1===o.v.length){let i=o.v[0].s;t[e][3]=o.getText();let n=(0,ts.TS)(i);l.push([t[e][0],t[e][1],n])}(0,eI.RE)(t[e])&&++c!==e&&(t[c]=t[e])}return t.splice(c+1),a.splice(d+1),[a,s,l]};function tz(e){return(e.range?[e.range]:[]).concat(e.pageRanges)}function tH(e){return tz(e).map(eA.GJ.fromRange)}function tW(e,t){let i=tH(e),n=!1;for(let e of t){let t=tM(i,e);i=t.newRanges,n||=t.removeRanges.length>0}return 0===i.length?eA.DM.full:n?eA.DM.partial:eA.DM.none}function tY(e,t){let i=[],n=[];for(let o of t){let t=tW(o.location,e);t===eA.DM.partial?n.push(o):t===eA.DM.full&&i.push(o)}return{full:i,partial:n}}let tU=class extends tk{setDataAtCell(e,t){if(0===e.length)return;if(t!==tL.PivotTable){let t=this.sheet.getWorkbook().getPivotTableManager().listPivotTableLocations(this.sheet.sheetId).map(e=>{let{location:t}=e;return tz(t)}).flat();e=e.filter(e=>{let[i,n]=e;return t.every(e=>!(0,eA.MI)(e,{row:i,col:n}))})}let i=[];for(let t=0,n=e.length;t<n;t++)i.push([e[t][0],e[t][1],this.sheet.getDataAtCell(e[t][0],e[t][1]),e[t][2]]);this._applyChanges(i,t),this.sheet.formula.generateChangeDep(i)}_applyChanges(e,t){let i=tV(this.sheet,e,t);this._applyCompoundChanges(i,t);for(let t=0,i=e.length;t<i;t++){let i=this.sheet.countRows();e[t][0]>i-1&&this._createRow(i,e[t][0]-(i-1),i-1,!0);let n=this.sheet.countCols();e[t][1]>n-1&&this._createCol(n,e[t][1]-(n-1),n-1,!0),this.sheet.setDataAtCell(e[t][0],e[t][1],e[t][3])}this.sheet.runHooks("afterChange",e,t||tL.Edit)}_applyCompoundChanges(e,t){if(void 0===e)return;let[i,n,o]=e,r=t!==tL.Format&&i.length>0,a=n.length>0,s=o.length>0;(r||a||s)&&(r&&this.setFormat(i,!0,t),a&&this.setQuotePrefix(n,!0,t),s&&this.setFont(o,!0,t))}addInternalLink(e){this.sheet.getHyperlinkModel().addInternalLink(e)}updateInternalLink(e){this.sheet.getHyperlinkModel().updateInternalLink(e)}removeInternalLink(e){this.sheet.getHyperlinkModel().removeInternalLink(e)}removeRangeInternalLink(e){e.forAll((e,t)=>{let i=this.sheet.getCellMeta(e,t)?.link?.getId();i&&this.removeInternalLink(i)})}groupRows(e,t){this.sheet.getPlugin("synoGroup").groupRows(e,t)}groupCols(e,t){this.sheet.getPlugin("synoGroup").groupCols(e,t)}ungroupRows(e,t){this.sheet.getPlugin("synoGroup").ungroupRows(e,t)}ungroupCols(e,t){this.sheet.getPlugin("synoGroup").ungroupCols(e,t)}updateGroup(e,t,i){this.sheet.getPlugin("synoGroup").updateGroup(e,t,i)}setCollapse(e,t,i){this.sheet.getPlugin("synoGroup").setCollapse(e,t,i)}setNote(e,t){let i=[];t=t||"",e.forEach(e=>{let t=e[0],n=e[1],o=e[2]||"",r=this.sheet.getCellNote(t,n)??"";r!==o&&(this.sheet.setCellNote(t,n,""===o?void 0:o),i.push([t,n,r,o]))}),i.length>0&&this.sheet.runHooks("afterNoteChange",i,t)}removeRangeNotes(e,t){let i=[];e.forAll((e,t)=>{i.push([e,t,null])}),this.setNote(i,t)}mergeCells(e,t){this.sheet.getWorkbook().getPivotTableManager().listPivotTableLocations(this.sheet.sheetId).some(t=>{let{location:i}=t;return tW(i,[e])!==eA.DM.none})||(e.normalize(),this.sheet.getPlugin("synoMergeCell").mergeRange(e,t))}unmergeCells(e,t){e.normalize(),this.sheet.getPlugin("synoMergeCell").unmergeRange(e,t)}resizeRow(e,t,i){this.sheet.getPlugin("synoManualRowResize").applyResizeChange(e,t,i)}resizeColumn(e,t,i){this.sheet.getPlugin("synoManualColumnResize").applyResizeChange(e,t,i)}alterGrid(e,t,i,n,o){let r=e.startsWith("insert");if(!r||t>0){let n=this.sheet.getWorkbook().getPivotTableManager().listPivotTableLocations(this.sheet.sheetId),o=new eA.GJ(0,0,this.sheet.countRows()-1,this.sheet.countCols()-1),a=e.endsWith("row")?"row":"col";if(r?o.to[a]=t-1:(o.from[a]=t,o.to[a]=t+i-1),tY([o],n).partial.length>0)return}let a=(0,tl.I8)(o);switch(e){case"insert_row":this._createRow(t,i,n,!1,a);break;case"insert_col":this._createCol(t,i,n,!1,a);break;case"remove_row":this._removeRow(t,i);break;case"remove_col":this._removeCol(t,i);break;default:return}if(a){let n,o,r="inserted_data";if(a.format.font.length>0&&this.setFont(a.format.font,!0,r),a.format.fill.length>0&&this.setFill(a.format.fill,!0,r),a.format.alignment.length>0&&this.setAlignment(a.format.alignment,!0,r),a.format.border.length>0&&this.setBorder(a.format.border,!0,r),a.format.numberFormat.length>0&&this.setFormat(a.format.numberFormat,!0,r),a.format.quotePrefix.length>0&&this.setQuotePrefix(a.format.quotePrefix,!0,r),a.changes&&this.setDataAtCell((0,ts.jS)(a.changes),r),a.notes&&this.setNote(a.notes,r),a.hyperlinks)for(let e of a.hyperlinks)this.addInternalLink(e);let s=a.info;if("insert_row"===e)for(n=0;n<s.length;n++)"function"==typeof(o=this.sheet.getPlugin(s[n].pluginName)).repairRow&&o.repairRow(s[n].rowInfo,t,i);else if("insert_col"===e)for(n=0;n<s.length;n++)"function"==typeof(o=this.sheet.getPlugin(s[n].pluginName)).repairCol&&o.repairCol(s[n].colInfo,t,i);this.repairCrossData(a)}}_createRow(e,t,i,n,o){let r=this.sheet.countRows();return((e<0||e>r)&&(e=r),(t=t||1)<0)?0:(this.sheet.runHooks("beforeCreateRow",e,t,i,n,o),this.sheet.createRow(e,t,i),this.sheet.getHyperlinkModel().createRowCol("row",e,t),this.sheet.getWorkbook().getPivotTableManager().onAlterGrid(this.sheet.sheetId,"row",e,t),this.sheet.runHooks("afterCreateRow",e,t,i,n,o),t)}_createCol(e,t,i,n,o){let r=this.sheet.countCols();return((e<0||e>r)&&(e=r),(t=t||1)<0)?0:(this.sheet.runHooks("beforeCreateCol",e,t,i,n,o),this.sheet.createCol(e,t,i),this.sheet.getHyperlinkModel().createRowCol("col",e,t),this.sheet.getWorkbook().getPivotTableManager().onAlterGrid(this.sheet.sheetId,"col",e,t),this.sheet.runHooks("afterCreateCol",e,t,i,n,o),t)}_removeRow(e,t){let i=this.sheet.countRows();return(t=t||1,(e<0||e>=i)&&(e=-t),e=(i+e)%i,i-t<=0&&(t=i-1),t<=0)?0:(this.sheet.runHooks("beforeRemoveRow",e,t),this.sheet.removeRow(e,t),this.sheet.getHyperlinkModel().removeRowCol("row",e,t),this.sheet.getWorkbook().getPivotTableManager().onAlterGrid(this.sheet.sheetId,"row",e,-t),this.sheet.runHooks("afterRemoveRow",e,t),t)}_removeCol(e,t){let i=this.sheet.countCols();return(t=t||1,(e<0||e>=i)&&(e=-t),e=(i+e)%i,i-t<=0&&(t=i-1),t<=0)?0:(this.sheet.runHooks("beforeRemoveCol",e,t),this.sheet.removeCol(e,t),this.sheet.getHyperlinkModel().removeRowCol("col",e,t),this.sheet.getWorkbook().getPivotTableManager().onAlterGrid(this.sheet.sheetId,"col",e,-t),this.sheet.runHooks("afterRemoveCol",e,t),t)}repairCrossData(e){let{crossInfo:t,define:i,pivotTable:n}=e;if(t){let e=this.sheet.getWorkbook();(0,tl._l)(t,(t,i)=>{let n=e.getSheetById(i);n&&(n.runHooks("repairCross",t),n.getHyperlinkModel().repairCross(t.hyperlink))})}i&&this.sheet.getWorkbook().getController().nameController.repair(i),n&&this.sheet.getWorkbook().getPivotTableManager().repairSourceRange(n.sources)}_unmergeOverlaps(e,t){let i=this.sheet.getPlugin("synoMergeCell"),n=i.getOverlap(e);for(let e=0;e<n.length;e++)i.unmergeRange(n[e],t)}fixedRow(e){this.sheet.getPlugin("synoFreezeBar").fixedRow(e)}fixedCol(e){this.sheet.getPlugin("synoFreezeBar").fixedCol(e)}hideRows(e,t){this.sheet.getPlugin("synoHideRowCol").hideRows(e,t)}showRows(e,t){this.sheet.getPlugin("synoHideRowCol").showRows(e,t)}hideCols(e,t){this.sheet.getPlugin("synoHideRowCol").hideCols(e,t)}showCols(e,t){this.sheet.getPlugin("synoHideRowCol").showCols(e,t)}applyRowOrder(e,t,i){this.sheet.getPlugin("synoSort").applyRowOrder(e,t,i)}_getFilterPlugin(){return this.sheet.getPlugin("synoFilter")}createFilter(e,t){this._getFilterPlugin().createFilter(e,t)}enableFilter(e,t){return this._getFilterPlugin().enableFilter(e,t)}disableFilter(e,t){return this._getFilterPlugin().disableFilter(e,t)}updateFilterRange(e,t,i){this._getFilterPlugin().updateFilterRange(e,t,i)}setFilter(e,t,i,n){this._getFilterPlugin().setFilter(e,t,i,n)}createFilterView(e,t,i,n){this._getFilterPlugin().createFilterView(e,t,i,n)}enableFilterView(e){this._getFilterPlugin().enableFilterView(e)}disableFilterView(e){this._getFilterPlugin().disableFilterView(e)}setFilterViewCondition(e,t,i){this._getFilterPlugin().setFilterViewCondition(e,t,i)}updateFilterViewRange(e,t,i){this._getFilterPlugin().updateFilterViewRange(e,t,i)}updateFilterViewName(e,t){this._getFilterPlugin().updateFilterViewName(e,t)}setActiveFilterView(e){this._getFilterPlugin().setActiveFilterView(e)}expandFilterRange(e){this._getFilterPlugin().expandRangeByData(e)}addValidRange(e,t){this.sheet.getPlugin("synoValidation").addValidRange(e,t)}createValidation(e,t){this.sheet.getPlugin("synoValidation").createValidation(e,t)}removeValidation(e,t){this.sheet.getPlugin("synoValidation").removeValidation(e,t)}removeAllValidation(e){let t=this.sheet.getPlugin("synoValidation");for(let i=e.from.row;i<=e.to.row;i++)for(let n=e.from.col;n<=e.to.col;n++){let o=this.sheet.getCellMeta(i,n),r=o?t.getValidation(o.validId):null;if(!r)continue;let a=[];for(let t=0;t<r.ranges.length;t++)a.push(r.ranges[t].getOverlap(e));for(let e=0;e<a.length;e++){let t=a[e];t&&this.removeValidation(r.validId,t)}}}addCf(e,t){this.sheet.getPlugin("synoConditionalFormat").addCf(e,t)}removeCf(e){this.sheet.getPlugin("synoConditionalFormat").removeCf(e)}updateCfRanges(e,t){this.sheet.getPlugin("synoConditionalFormat").updateCfRanges(e,t)}removeRangeCf(e){let t=new Set;for(let i of(e.forAll((e,i)=>{let n=this.sheet.getCellMeta(e,i);if(n&&n.refCf)for(let e of n.refCf)t.has(e)||t.add(e)}),t)){let{newRanges:t}=tM(i.ranges,e);0===t.length?this.removeCf(i.id):this.updateCfRanges(i.id,tD(t))}}insertImage(e,t){this.sheet.getPlugin("synoDrawingController").insertImage(e,t)}removeImage(e){this.sheet.getPlugin("synoDrawingController").removeImage(e)}resizeImage(e,t){this.sheet.getPlugin("synoDrawingController").resizeImage(e,t)}insertChart(e,t,i){this.sheet.getPlugin("synoDrawingController").insertChart(e,t,i)}removeChart(e){this.sheet.getPlugin("synoDrawingController").removeChart(e)}resizeChart(e,t){this.sheet.getPlugin("synoDrawingController").resizeChart(e,t)}adjustChart(e,t){this.sheet.getPlugin("synoDrawingController").adjustChart(e,t)}setChartConfig(e,t,i){this.sheet.getPlugin("synoDrawingController").setChartConfig(e,t,i)}modifyDrawingsByInsertRowCol(e,t,i){this.sheet.getPlugin("synoDrawingController").modifyDrawingsByInsertRowCol(e,t,i)}modifyDrawingByRemoveRowCol(e,t,i){this.sheet.getPlugin("synoDrawingController").modifyDrawingsByRemoveRowCol(e,t,i)}modifyDrawingsByMoveRowCol(e,t,i,n,o){this.sheet.getPlugin("synoDrawingController").modifyDrawingsByMoveRowCol(e,t,i,n,o)}moveRow(e,t,i,n,o){this.sheet.getPlugin("synoManualMove").moveRow(e,t,i,n,o)}moveCol(e,t,i,n,o){this.sheet.getPlugin("synoManualMove").moveCol(e,t,i,n,o)}moveRange(e,t,i){void 0===i&&(i=!0);let n=this.sheet.getWorkbook().getPivotTableManager().listPivotTableLocations(this.sheet.sheetId);if(tY([e],n).partial.length>0||tY(tM([t],e).newRanges,n).partial.length>0)return;let o=this.sheet,r=o.getPlugin("synoAutofill").getAutofillData(e,()=>!1,tL.Cut),{mergedBorders:a,mergeRangeChanges:s}=o.getMergedCellFormatChanges(t,r);r.mergedBorders=a,r.mergeRanges=s,o.controller.clearRangeRelated(e,i,void 0);let{newRanges:l}=tM([e],t);for(let e of l)o.controller.clearRangeData(e,void 0);o.controller.pasteAutofillData(t,r,!1),o.controller.moveFormulaRange(e,o.sheetId,t,!1,null)}moveFormulaRange(e,t,i,n,o){let r={};o?this.repairCrossData(o):this.sheet.formula.moveFormulaRange(e,t,i,n,r),this.sheet.sheetId===t&&this.sheet.getPlugin("synoFilter").notifyMoveRange(e,i,n,o?.filter,r),this.sheet.runHooks("afterMoveFormulaRange",e,t,i,n,o,o?void 0:r)}removeFormulaRange(e,t){let i={};t?this.repairCrossData(t):this.sheet.formula.removeFormulaRange(e,i),this.sheet.getPlugin("synoFilter").notifyRemoveRange(e,t?.filter,i),this.sheet.runHooks("afterRemoveFormulaRange",e,t,t?void 0:i)}pasteAutofillData(e,t,i,n){void 0===i&&(i=!0),this.ensureRowColExisted(e.to),i&&t.data&&this.sheet.getPlugin("synoFilter").expandRangeByData(e),this.sheet.getPlugin("synoAutofill").populateAutofillData(e.from,e.to,t,void 0,n)}populateAutofillData(e,t,i,n){this.sheet.getPlugin("synoAutofill").populateAutofillData(e.from,e.to,t,i,n)}autofillNumberFormat(e,t,i,n){this.sheet.getPlugin("synoAutofill").fillNumberFormat(e.from,e.to,t,i,n)}ensureRowColExisted(e){let{row:t,col:i}=e,n=this.sheet.countRows(),o=this.sheet.countCols();t>=n&&this.alterGrid("insert_row",n,t-n+1,n-1,null),i>=o&&this.alterGrid("insert_col",o,i-o+1,o-1,null)}setRangeData(e,t,i){let n=[],o=e.getTopLeftCorner();e.forAll((e,i)=>{let r=e-o.row,a=i-o.col;n.push([e,i,t[r]?.[a]??null])}),this.setDataAtCell(n,i)}setRangeFormat(e,t,i){let n=[],o=[],r=[],a=[],s=[],l=[],c=e.getTopLeftCorner(),d=e.getBottomRightCorner();e.forAll((e,i)=>{let d=e-c.row,u=i-c.col;n.push([e,i,(0,tl.I8)(t.font?.[d][u])??null]),o.push([e,i,(0,tl.I8)(t.fill?.[d][u])??null]),r.push([e,i,(0,tl.I8)(t.alignment?.[d][u])??null]),a.push([e,i,t.border?.[d][u]?.b?.slice(0)??null]),s.push([e,i,t.numberFormat?.[d][u]?.fc??null]),l.push([e,i,t.quotePrefix?.[d][u]??!1])}),n.length>0&&(this.setFont(n,!0,i),this.setFill(o,!0,i),this.setAlignment(r,!0,i),this.setBorder(a,!0,i),this.setFormat(s,!0,i),this.setQuotePrefix(l,!0,i)),t.rowHeight&&this.resizeRow(c.row,d.row,t.rowHeight),t.colWidth&&this.resizeColumn(c.col,d.col,t.colWidth)}clearRangeData(e,t){let i=[],n=[],o=[],r=[],a=[],s=[];e.forAll((e,t)=>{i.push([e,t,null]),n.push([e,t,null]),o.push([e,t,null]),r.push([e,t,null]),a.push([e,t,null]),s.push([e,t,null])}),this.setFont(n,!0,t),this.setFill(o,!0,t),this.setAlignment(r,!0,t),this.setBorder(s,!0,t),this.setFormat(a,!0,t),this.setDataAtCell(i,t)}clearRangeRelated(e,t,i){this.removeRangeNotes(e,i),this.removeAllValidation(e),this.removeRangeCf(e),this.removeRangeInternalLink(e),this.sheet.getWorkbook().getController().commentController.clearRangeComment(this.sheet.sheetId,e),!1!==t&&this._unmergeOverlaps(e,i)}setWorksheetRtl(e){this.sheet.setWorksheetRtl(e),this.sheet.runHooks("afterSetWorksheetRtl",e)}};class tG{constructor(e,t){this.sheet=t,this.id=e.id,this.row=e.row,this.col=e.col,this.display=e.display,this.location=e.location}isInternal(){return!1}toJSON(){return{id:this.id,row:this.row,col:this.col,display:this.display,location:this.location}}getStateJSON(){return Object.assign(this.toJSON(),{href:this.location})}getId(){return this.id}getDisplay(){return this.display}setDisplay(e){this.display=e}getLocation(){return this.location}setLocation(e){this.location=e}getCoords(){return{row:this.row,col:this.col}}updateCoords(e){let{row:t,col:i}=e;this.row=t,this.col=i}repair(e){let{location:t}=e;this.setLocation(t)}}class tZ extends tG{constructor(e,t){super(e,t),this.item=new eU(this),this.hash="#",this.registerItem()}registerItem(){this.item.unregister();let e=Q(this.location),t=e?.shName&&this.sheet.getWorkbook().getSheetByName(e.shName);if(!t){this.hash="#";return}let i=e.getContainer(t.getFormulaDepManager()),n=i.getFormulaRange(e);n||(n=new e3(e),i.addFormulaRange(n)),this.hash=`#tid=${t.sheetId.slice(3)}&range=${this.location.slice(this.location.lastIndexOf("!")+1)}`,this.item.register([n])}changeLocationBy(e,t){let i=e(this.location);i!==this.location&&((0,eI.PY)(t,this.sheet.sheetId,"hyperlink",{id:this.id,location:this.location}),this.location=i,this.getSheet().notifyCellChanges(this.row,this.col),this.registerItem())}isInternal(){return!0}setLocation(e){super.setLocation(e),this.registerItem()}getHash(){return this.hash}getStateJSON(){return Object.assign(this.toJSON(),{href:this.getHash()})}notifyAlterGrid(e,t,i,n,o,r){this.changeLocationBy(o=>H.P6.changeFormula(o,{delta:n,start:{[e]:i}},t.getName()),r)}notifyMove(e,t,i,n){this.changeLocationBy(n=>H.P6.moveFormula(e,n,i,t.getName(),this.sheet.getName()),n)}notifyRename(e,t,i){this.changeLocationBy(i=>(0,U.ZW)(i,e,t),i)}notifyMoveFormulaRange(e,t,i,n){this.changeLocationBy(n=>H.P6.changeFormulaRange(n,e,t,this.sheet.getName(),void 0,i),n)}notifyRemoveFormulaRange(e,t){this.changeLocationBy(t=>H.P6.removeFormulaRange(t,e,this.sheet.getName()),t)}notifyRecalcUnknown(){}notifyDeleteSheet(){}getSheet(){return this.sheet}recalcUnknownRefs(){"#"===this.hash&&this.registerItem()}repair(e){super.repair(e),this.getSheet().notifyCellChanges(this.row,this.col)}}class tj{constructor(e){this.sheet=e,this.hyperlinks=new Map}init(e){for(let t of e)this.addHyperlink(t)}addInternalLink(e){this.addHyperlink(e),this.sheet.runHooks("afterAddInternalLink",e)}updateInternalLink(e){let t=this.hyperlinks.get(e.id);if(!t)return;let i={id:e.id,display:t.getDisplay(),location:t.getLocation()};!!Q(e.location)===t.isInternal()?(t.setDisplay(e.display),t.setLocation(e.location)):this.addHyperlink(Object.assign(t.toJSON(),e)),this.sheet.runHooks("afterUpdateInternalLink",e,i);let{row:n,col:o}=t.getCoords();this.sheet.notifyCellChanges(n,o)}removeInternalLink(e){let t=this.removeHyperlink(e);t&&this.sheet.runHooks("afterRemoveInternalLink",t.toJSON())}toJSON(){return Array.from(this.hyperlinks.values()).map(e=>e.toJSON())}addHyperlink(e){let t=Q(e.location)?new tZ(e,this.sheet):new tG(e,this.sheet);this.hyperlinks.set(e.id,t),this.sheet.setCellMeta(e.row,e.col,[["link",t]])}removeHyperlink(e){let t=this.hyperlinks.get(e);if(!t)return null;this.hyperlinks.delete(e);let{row:i,col:n}=t.getCoords(),o=this.sheet.getCellMeta(i,n);return o&&o.link&&this.sheet.setCellMeta(i,n,[["link",null]]),t}createRowCol(e,t,i){for(let[,n]of this.hyperlinks){let o=n.getCoords();o[e]>=t&&(o[e]+=i,n.updateCoords(o))}}removeRowCol(e,t,i){for(let[n,o]of this.hyperlinks){let r=o.getCoords();r[e]<t||(r[e]<t+i?this.hyperlinks.delete(n):(r[e]-=i,o.updateCoords(r)))}}moveRowCol(e,t){for(let i of this.hyperlinks.values()){let n=i.getCoords(),o=n[e];t.sec[0].start<=o&&o<=t.sec[0].end?n[e]+=t.sec[1].amount:t.sec[1].start<=o&&o<=t.sec[1].end&&(n[e]-=t.sec[0].amount),i.updateCoords(n)}}sort(e,t){for(let i of this.hyperlinks.values()){let n=i.getCoords();t.includes(n)&&(n.row=e[n.row-t.from.row]+t.from.row,i.updateCoords(n),this.sheet.setCellMeta(n.row,n.col,[["link",i]]))}}getHyperlinksByDim(e,t,i){return Array.from(this.hyperlinks.values()).filter(n=>{let o=n.getCoords();return t<=o[e]&&o[e]<=i}).map(e=>e.toJSON())}collectRangeInfo(e,t){void 0===t&&(t=()=>!1);let i=[];for(let n=e.from.row;n<=e.to.row;n++){if(t(n))continue;let o=Array(e.getWidth());for(let t=e.from.col;t<=e.to.col;t++)o[t-e.from.col]=this.sheet.getCellMeta(n,t)?.link?.toJSON();i.push(o)}return i}repairCross(e){if(e)for(let{id:t,location:i}of e)this.hyperlinks.get(t)?.repair({location:i})}recalcUnknownRefs(){for(let e of this.hyperlinks.values())e.isInternal()&&e.recalcUnknownRefs()}}var tq=i(92114),tK=i(2489),tX=i.n(tK),tQ=i(2771),t$=i.n(tQ);function tJ(e){let t=e.substr(5,e.length-6).split(","),i=parseInt(t[0],10).toString(16),n=parseInt(t[1],10).toString(16);return{color:"#"+i+n+parseInt(t[2],10).toString(16),opacity:parseFloat(t[3])}}function t0(e){if(!e||["initial","transparent"].includes(e))return null;if(["windowtext"].includes(e))return"000000";try{let t=tX().get(e);if(null===t||0===t.value[t.value.length-1])return null;let i="rgb"===t.model?t.value:t$()[t.model].rgb(t.value);return t$().rgb.hex(i)}catch{return null}}function t1(e,t){let i,n={font:null,fill:null,alignment:null,border:null,numberFormat:null,quotePrefix:"true"===e.getAttribute("data-syno-quote")},o=e.getAttribute("data-syno-numberformat");o&&(n.numberFormat={fc:o});let r=e.style;if(!r||!r.length)return n;let a=t3(e,t),s={},l={},c=null,d=t4(e);if(null!==(i=t0(r.backgroundColor))&&(s.bg=i),r.textAlign)switch(r.textAlign){case"center":l.halign="center";break;case"left":case"start":l.halign="left";break;case"right":case"end":l.halign="right"}r.verticalAlign&&["top","middle","bottom"].includes(r.verticalAlign)&&(l.valign=r.verticalAlign);let u=e.getAttribute("style")?.match(/white-space:\s*([^;\s]+)\s*;/);if(r.whiteSpace||u){let e=r.whiteSpace||u&&u[1];"clip"===e?l.wrap="clip":("normal"===e||"pre-wrap"===e)&&(l.wrap="wrap")}return a&&0!==Object.keys(a).length||(a=null),0===Object.keys(s).length&&(s=null),0===Object.keys(l).length&&(l=null),d&&(c={b:d}),n.font=a,n.fill=s,n.alignment=l,n.border=c,n}function t2(e){let t={B:"bold",I:"italic",S:"strike",U:"underline"}[e.tagName];return t?{[t]:!0}:null}function t3(e,t){let i;if(!e.hasAttribute("style"))return null;let n=e.style,o={};if("TH"===e.tagName||["bold","bolder","700","800","900"].includes(n.fontWeight)?o.bold=!0:n.fontWeight&&(o.bold=!1),n.fontStyle&&(o.italic=n.fontStyle.includes("italic")),(n.textDecoration||n.textDecorationLine)&&(o.strike=(i=n.textDecoration||n.textDecorationLine).includes("line-through"),o.underline=i.includes("underline")),null!==(i=function(e){let t;if(!e)return null;if(t=e.match(/^((?:\d*\.)?\d+)(px|pt|%)$/)){let e=parseFloat(t[1]);switch(t[2]){case"pt":return Math.round(e);case"px":return Math.round(.75*e);case"%":return Math.round(e/100*tu.Z.DEFAULT_FONT_SIZE)}}return null}(n.fontSize))&&(o.size=i),n.fontFamily){i=n.fontFamily.split(/,\s*/);for(let e=0;e<i.length;e++){i[e]=(function(e){let t=e.length-1;return'"'===e.charAt(0)&&'"'===e.charAt(t)||"'"===e.charAt(0)||"'"===e.charAt(t)?e.slice(1,t):e})(i[e]).toLocaleLowerCase();let n=t(i[e]);if(n){o.name=n;break}}}return null!==(i=t0(n.color))&&(o.color=i),o}function t4(e){let t,i=e.style,n=[null,null,null,null];return(null!==(t=t0(i.borderTopColor))&&(n[0]="#"+t),null!==(t=t0(i.borderRightColor))&&(n[1]="#"+t),null!==(t=t0(i.borderBottomColor))&&(n[2]="#"+t),null!==(t=t0(i.borderLeftColor))&&(n[3]="#"+t),null===n[0]&&null===n[1]&&null===n[2]&&null===n[3])?null:n}class t5{constructor(e){this.dom=e,this.maxRowCount=0,this.maxColCount=0}run(){if(!this.dom)return;let e=this.dom.rows,t=[];for(let i=0;i<e.length;i++){let n=e[i],o=n.rowIndex,r=0;if(!1===this.onRow(n))break;for(let e=0;e<n.cells.length;e++){let i=n.cells[e];if("none"!==i.style.display){for(;t[r]&&o<t[r].row;)r=t[r].col;if(!1===this.onCell(i,o,r))break;(i.rowSpan>1||i.colSpan>1)&&(t[r]={row:o+i.rowSpan,col:r+i.colSpan}),r+=i.colSpan}}}}onCell(e,t,i){this.maxRowCount=Math.max(this.maxRowCount,t+e.rowSpan),this.maxColCount=Math.max(this.maxColCount,i+e.colSpan)}}class t6 extends t5{constructor(e,t){super(e),this.data=[],this.maxColCount=0,this.getCellData="syno-formula"===t?il:"syno-value"===t?ia:ic}run(){return super.run(),{data:this.data,colCount:this.maxColCount}}onRow(e){this.data.push([])}onCell(e,t,i){super.onCell(e,t,i),this.data[t][i]=this.getCellData(e)}}class t8 extends t5{constructor(e){super(e),this.notes=[]}run(){return super.run(),this.notes}onRow(e){this.notes.push([])}onCell(e,t,i){super.onCell(e,t,i),this.notes[t][i]=e.getAttribute("data-sheets-note")||null}}class t7 extends t5{constructor(e){super(e),this.hyperlinks=[]}run(){return super.run(),this.hyperlinks}onRow(e){this.hyperlinks.push([])}onCell(e,t,i){super.onCell(e,t,i);let n=e.getElementsByTagName("a")[0];this.hyperlinks[t][i]=n&&(0,tq.PX)(n.href)?n.href:null}}let t9=["border","numberFormat","quotePrefix"],ie=["font","fill","alignment",...t9];class it extends t5{constructor(e,t){super(e),this.format={font:[],fill:[],alignment:[],border:[],numberFormat:[],quotePrefix:[],mergeCells:[]},this.rowFormat=null,this.validateFont=t}run(){return super.run(),this.normalizeMergeCells(),this.format}onRow(e){(0,tl._l)(this.format,e=>e.push([])),this.rowFormat=t1(e,this.validateFont)}onCell(e,t,i){super.onCell(e,t,i);let n=id(this.rowFormat,this.parseTDStyle(e));for(let e=0;e<ie.length;e++){let o=ie[e];this.format[o][t][i]=n[o]}(e.rowSpan>1||e.colSpan>1)&&(this.format.mergeCells[t][i]=[e.rowSpan,e.colSpan,t4(e)])}parseTDStyle(e){var t;let i=t1(e,this.validateFont);if(!e.firstChild)return i;let n={},o=e.firstChild;for(;o;)if(1===o.nodeType){let e=t1(o,this.validateFont),t=t2(o);t&&(e.font=Object.assign(t,e.font)),n=id(n,e),o=o.firstChild}else if(o.nodeType===Node.TEXT_NODE&&o.nodeValue?.match(/^\s*$/))o=o.nextSibling;else break;for(let e=0;e<t9.length;e++){let t=t9[e];i[t]&&(n[t]=i[t])}let r=id(i,n);r.alignment=r.alignment||{},r.alignment.valign=r.alignment.valign||"middle";let a=e.getAttribute("valign");a&&["top","middle","bottom"].includes(a)&&(r.alignment.valign=a);let s=e.getAttribute("align");return s&&["left","center","right"].includes(s)&&(r.alignment.halign=s),(!((t=r.border)&&Array.isArray(t.b))||t.b.every(e=>"#CCCCCC"===e||null===e))&&(r.border=null),r}normalizeMergeCells(){let e=this.format.mergeCells;for(let t=0;t<this.maxRowCount;t++)e[t]?e[t].length=this.maxColCount:e[t]=Array(this.maxColCount)}}class ii extends it{constructor(e){super(null,()=>null),(0,tl._l)(this.format,(t,i)=>{let n=e[i];t.push(void 0!==n?[n]:[])})}run(){return this.format}}var io=((l={})[l.Normal=0]="Normal",l[l.RichText=1]="RichText",l[l.R1C1=2]="R1C1",l[l.SheetValue=3]="SheetValue",l);function ir(e){let t;if(t=e.getAttribute("data-sheets-formula"))return{value:t,type:2};if(t=e.getAttribute("data-syno-value"))try{let e=JSON.parse(t);return{value:e,type:(0,ts.pM)(e)?1:3}}catch{}return null}function ia(e){let t={value:null,type:0},i=e.getAttribute("data-syno-value");if(i)try{let e=JSON.parse(i);(0,ts.pM)(e)&&(e=td.Z.fromJSON(e).getText()),t.value=e,t.type=3}catch{}else t.value=is(e);return t}function is(e){let t=e.textContent||"";return(t.includes("\n")||e.querySelector("p, br"))&&(e.innerHTML=e.innerHTML.replace(/<br[^>]*>/gi,"<br>").replace(/<br\s*\/?>([^\n]*)\n +/gi,"<br>$1").replace(/\n /g,"").replace(/<br>/g,"\n").replace(/<\/p\s*>/g,"</p>\n"),t=e.textContent||""),t.trim()}function il(e){return ir(e)||{value:null,type:0}}function ic(e){let t,i=ir(e);if(i){if(e.hasAttribute("data-sheets-value")||(t=is(e))===e.getAttribute("data-syno-repr"))return i}else t=is(e);return{value:t,type:0}}function id(e,t){return[["font",tx.Zx],["fill",tx.de],["alignment",tx.v2]].forEach(i=>{let[n,o]=i,r=t[n],a=e[n];!r&&a?t[n]=a:a&&r&&(t[n]=new o().assign(a).assign(r).toJSON())}),t}function iu(e){let t=e?.mergeCells;if(!t)return!1;let i=t[0][0];return 1===t.length&&1===t[0].length||!!i&&i[0]===t.length&&i[1]===t[0].length}let ih=new WeakMap,ip=class{constructor(e){this.formulaDepManager=new te(e),this.hyperlinkCollection=new tj(this),this.controller=new tU(this),this.workbook=e,this.renderCache=null}init(e){this._snapshot=function(e){let t=function(e){let t=0;for(let i in e)if(e[i]){let e=parseInt(i,10);e>t&&(t=e)}return t+1}(e.cells),i=t>(e.rowCount||100)?t:e.rowCount,n={...e,rowCount:i};return n.rowCount??=100,n.colCount??=30,n.rows??=[],n.cols??=[],n.cells??={},n.global??={},n.mergeCells??=[],n.fixedRowTop??=0,n.fixedColumnLeft??=0,n.cfs??=[],n.filter??=null,n.validation??={},n.drawing??=[],n.hyperlinks??=[],n.notes??=[],n}(e.snapshot),this._loadPlugins(e.plugins),this.runHooks("beforeInit"),this.sheetId=e.sheetId,this.worksheet=new th(this.workbook,this._snapshot),this.hyperlinkCollection.init(this._snapshot.hyperlinks),this.renderCache=this.getPlugin("synoRenderCache"),!0!==e.deferInit&&(this.notifyDataReady(),this.notifyPluginsReady())}notifyDataReady(){this.runHooks("init")}notifyPluginsReady(){this.runHooks("afterInit",this._snapshot),this._snapshot=void 0}destroy(){this.runHooks("beforeDestroy"),this._destroyPlugins(),this.runHooks("afterDestroy"),this.workbook.hooks.removeContext(this)}notifyCellChanges(e,t){this.getWorkbook().getNotifier()?.onCoordsChanges(this.sheetId,[{row:e,col:t}])}notifyRangeChanges(e){let t=[];(0,eA.Dk)(e.from,e.to,(e,i)=>{t.push({row:e,col:i})}),this.getWorkbook().getNotifier()?.onCoordsChanges(this.sheetId,t)}notifyAlterGrid(){this.getWorkbook().getNotifier()?.onAlterGrid(this.sheetId,this.countRows(),this.countCols())}notifySheetChanges(e){this.getWorkbook().getNotifier()?.onSheetChanges(this.sheetId,e)}notifyPluginChanges(e){this.getWorkbook().getNotifier()?.onSheetPluginChanges(this.sheetId,e)}getFormulaDepManager(){return this.formulaDepManager}isActive(){return this.workbook.current===this}addHook(e,t){this.workbook.hooks.add(e,t,this)}addHookOnce(e,t){this.workbook.hooks.once(e,t,this)}removeHook(e,t){this.workbook.hooks.remove(e,t,this)}runHooks(e){for(var t=arguments.length,i=Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];return this.workbook.hooks.runWithArgs(this,e,i)}getDataAtCell(e,t){return this.worksheet.getValue(e,t)}setDataAtCell(e,t,i){this.worksheet.setValue(e,t,i),this.notifyCellChanges(e,t)}isEmptyCell(e,t){return(0,eI.O2)(this.getDataAtCell(e,t))}isEmptyRange(e){return!1!==e.forAll((e,t)=>{if(!this.isEmptyCell(e,t))return!1})}getCellModel(e,t){return this.worksheet.getCell(e,t)}getOrCreateCell(e,t){return this.worksheet.getOrCreateCell(e,t)}setCellXf(e,t,i){this.getOrCreateCell(e,t).setXfId(i),this.notifyCellChanges(e,t)}getCellStyle(e,t){let i=this.getCellModel(e,t);return i?i.getCellStyle():null}getComputedCellStyle(e,t){return this.worksheet.getComputedCellStyle(e,t)}setCellMeta(e,t,i){if(0===i.length)return;let n=this.getOrCreateCell(e,t);for(let e of i){let[t,i]=e;n.setProperty(t,i)}this.notifyCellChanges(e,t)}getCellMeta(e,t){let i=this.getCellModel(e,t);return i?i.getProperties():null}getCellProperty(e,t,i){return this.getCellMeta(e,t)?.[i]||null}getCellNote(e,t){return this.getCellModel(e,t)?.note}setCellNote(e,t,i){this.getOrCreateCell(e,t).setNote(i),this.notifyCellChanges(e,t)}getCellHyperlinkState(e,t){return this.getCellMeta(e,t)?.link?.getStateJSON()}getCellFormulaItemState(e,t){return this.getFormulaItem(e,t)?.getStateJSON()}ensureCellDirection(e,t){return this.getCellMeta(e,t)?.dir||"ltr"}getDataModel(){return this.worksheet}getStyleManager(){return this.workbook.getStyleManager()}getWorkbook(){return this.workbook}getFormulaItem(e,t){let i=this.getCellModel(e,t);return i?i.getFormulaItem():void 0}setFormulaItem(e,t,i){this.setCellMeta(e,t,[["formulaItem",i]])}createRow(e,t,i){this.worksheet.createRow(e,t,i),this.notifyAlterGrid()}createCol(e,t,i){this.worksheet.createCol(e,t,i),this.notifyAlterGrid()}removeRow(e,t){this.worksheet.removeRow(e,t),this.notifyAlterGrid()}removeCol(e,t){this.worksheet.removeCol(e,t),this.notifyAlterGrid()}setDimensionStyle(e,t,i){"row"===e?(this.worksheet.updateRowAttr(t,"s",i),this.notifySheetChanges(["rows"])):(this.worksheet.updateColAttr(t,"s",i),this.notifySheetChanges(["cols"]))}setGlobalStyle(e){this.worksheet.updateGlobalStyle(e),this.notifySheetChanges(["global"])}countRows(){return this.worksheet.getRowCount()}countCols(){return this.worksheet.getColCount()}getPlugin(e){return ih.get(this)[e]}_loadPlugins(e){let t={};ea(e||[],e=>{let i=new e(this);t[i.pluginName]=i}),ih.set(this,t)}_destroyPlugins(){let e=ih.get(this);(0,tl._l)(e,e=>e.destroy()),ih.delete(this)}isReadonly(){return this.workbook.readonly}isCommentable(){return this.workbook.commentable}getName(){return this.workbook.getNameById(this.sheetId)}isRtl(){return this.worksheet.getWorksheetRtl()}setWorksheetRtl(e){this.worksheet.setWorksheetRtl(e),this.notifySheetChanges(["rtl"]),e&&this.workbook.getNotifier()?.onRtlDataAdded()}getHyperlinkModel(){return this.hyperlinkCollection}getRangeBound(e,t){return(0,eA.As)(e,t,this.countRows()-1,this.countCols()-1)}getOverlapCellRanges(e){let t=this.getPlugin("synoMergeCell"),i={};return e.forAll((e,n)=>{let o=t.getMergedRange(e,n)||new eA.GJ(e,n,e,n),r=`${o.from.row},${o.from.col}`;i[r]||(i[r]=o)}),Object.values(i)}getMergedCellFormatChanges(e,t){let i=t?.format?.mergeCells;return Array.isArray(i)&&0!==i.length?!iu(t.format)||e.isSingle()||this.getPlugin("synoMergeCell").isMultipleCells(e)?{mergeRangeChanges:this.getPlugin("synoAutofill").getMappingMergeRanges(e.from,e.to,i,"down")}:{mergedBorders:this.modifyByMerged(e,t.format)}:{}}modifyByMerged(e,t){let i=t.border;if(!i||0===i.length)return;let n=i[0][0],o=(0,eG.Z)((0,eG.Z)(i)),r=eq([n?.b[0]??null,o?.b[1]??null,o?.b[2]??null,n?.b[3]??null]);return eg(i,(e,t,i,n)=>{n[t][i]=null}),eQ(this.countRows(),this.countCols(),e,"OUTER",r,(e,t)=>this.getDataModel().getComputedCellStyle(e,t).getBorder().b)}};function ig(e,t,i){let n=t,o=i,r=1;for(;e.isHiddenRow(n);)if(n+=r,e.countRows()===n&&(r=-1,n=t-1),-1===n){n=t;break}for(r=1;e.isHiddenCol(o);)if(o+=r,e.countCols()===o&&(r=-1,o=i-1),-1===o){o=i;break}return{row:n,col:o}}function im(e,t){let i=e.getMergePlugin(),n=e.countRows(),o=e.countCols(),[r,a,s,l]=t,c=[];function d(e,t,i){let n=[];return i?(e<i.from&&n.push({from:e,to:i.from-1}),t>i.to&&n.push({from:i.to+1,to:t})):n.push({from:e,to:t}),n}function u(e,t,i,o){if(!(e<0)&&!(e>=n))for(let{from:n,to:r}of d(t,i,o))for(let t=n;t<=r;t++)c.push({row:e,col:t})}function h(e,t,i,n){if(!(e<0)&&!(e>=o))for(let{from:o,to:r}of d(t,i,n))for(let t=o;t<=r;t++)c.push({row:t,col:e})}for(u(r-1,a,l),u(s+1,a,l),h(a-1,r,s),h(l+1,r,s);c.length>0;){let t=c.shift(),{row:n,col:o}=i.getMergedRange(t.row,t.col)?.from??t;if(r<=n&&n<=s&&a<=o&&o<=l||e.isEmptyCell(n,o))continue;let d=eA.GJ.fromArray([Math.min(r,n),Math.min(a,o),Math.max(s,n),Math.max(l,o)]);i.expandSelection(d);let{from:p,to:f}=d;u(p.row-1,p.col,f.col,p.row===r?{from:a,to:l}:void 0),u(f.row+1,p.col,f.col,f.row===s?{from:a,to:l}:void 0),h(p.col-1,p.row,f.row,p.col===a?{from:r,to:s}:void 0),h(f.col+1,p.row,f.row,f.col===l?{from:r,to:s}:void 0),[r,a,s,l]=d.toArray()}return[r,a,s,l]}function iv(e,t,i,n){for(let o=i;o<=n;o++)if(!e.isEmptyCell(t,o))return!0;return!1}function ib(e,t){t.isSingle()&&(t=eA.GJ.fromArray(im(e,t.toArray())));let i=t.from.row,n=t.from.col,o=t.to.col;for(;i<=t.to.row&&!(!e.isHiddenRow(i)&&iv(e,i,n,o));)i+=1;if(i>t.to.row)return null;for(;n<=o&&(e.isEmptyCell(i,n)||e.isHiddenCol(n));)n+=1;for(;o>=n&&(e.isEmptyCell(i,o)||e.isHiddenCol(o));)o-=1;if(n>o)return null;let r=t.to.row;for(;r>=i&&!(!e.isHiddenRow(r)&&iv(e,r,n,o));)r-=1;return i>r?null:new eA.GJ(i,n,r,o)}var iy=((c={})[c.TEXT=1]="TEXT",c[c.NUM=2]="NUM",c[c.BOOL=3]="BOOL",c[c.LINK=4]="LINK",c[c.RICH_TEXT=5]="RICH_TEXT",c);class iw{static #e=this.Type=iy;constructor(){this.v="",this.t=1,this.c=void 0,this.e=void 0,this.l=!1}getState(){return{v:this.v,t:this.t,c:this.c,e:this.e,l:this.l}}isLink(){return this.l}isNumber(){return 2===this.t}isRichText(){return 5===this.t}getExtra(){return this.e}getText(){return this.v}getColor(){return this.c}generalRenderer(e,t,i){let n;i=i||"General";try{n=e.format(i,t)}catch{}n?(this.v=n.v,n.c&&(this.c=n.c)):this.v=P(t)}htmlRenderer(e,t){this.v=e.render("General",t)}textRenderer(e,t){2===this.t?this.v=e.render("General",t):this.v=P(t)}richTextRenderer(e){this.t=5,this.v=e.getText()}}function i_(e,t,i){let n=e.getCellModel(t,i),o=n?.getValue()??"",r=e.getDataModel().getComputedCellStyle(t,i),a=!!n?.getProperties()?.link,s=r.getNumberFormat(),l=new iw,c=e.getWorkbook(),d=s.fc;function u(e){e.nfId&&s.isDefault()&&(d=(0,eI.fJ)(c,e.nfId))}if(a&&(l.l=!0),!n||(0,eI.O2)(o)){let n=e.formula.getSpillItem(t,i);if(n){u(n);let r=e.formula.getCellValue(t,i)??"";o=H.dt.error.isError(r)?r.message:r}}else if((0,t_.jr)(o,r)){let t,i=n.getFormulaItem();t=e.formula.getCellValue(i.row,i.col)??"",i.isLink()&&(l.l=!0,l.e=i.href),i.error?t=i.error.getValue():i.getSpillRange()&&i.spillError&&(t=i.spillError.getValue()),o=null===t?"":H.dt.error.isError(t)?t.message:t,u(i)}let h=c.getLocale().getSSF();return(0,ts.is)(o)?l.richTextRenderer(o):s.isText()?(l.t=1,l.textRenderer(h,o)):("number"==typeof o?l.t=2:"boolean"==typeof o&&(l.t=3),l.generalRenderer(h,o,d)),l}function ix(e,t,i){let n=e[Symbol.iterator](),o=n.next();for(let e=0;e<i;e++){for(;!o.done&&o.value.to<e;)o=n.next();if(!t(e)&&(o.done||o.value.from>e))return!1}return!0}let iS=class extends ip{getColWidth(e){let t=this.getDefaultColWidth(),i=this.worksheet.getColInfo(e);return i&&(!0===i.hidden?t=0:i.w&&(t=i.w)),t}getRowHeight(e){if(this.isHiddenRow(e))return 0;let t=this.worksheet.getRowInfo(e);return Math.max(t?.h??this.renderCache.modifyRowHeight(e,this.getDefaultRowHeight()),tu.Z.MIN_ROW_HEIGHT)}getDefaultRowHeight(){return this.worksheet.getDefaultRowHeight()}getDefaultColWidth(){return this.worksheet.getDefaultColWidth()}isHiddenRowExcludeFilter(e){let t=this.getPlugin("synoFilter");return this.hidden.isHiddenRow(e)&&!t.isFilteredRow(e,!1)}isFilteredRow(e){let t=this.getPlugin("synoFilter");return t.isInViewState()?t.isViewHidden(e)&&t.isFilteredRow(e,!0):this.hidden.isHiddenRow(e)&&t.isFilteredRow(e,!1)}isHiddenRow(e){return this.isHiddenRowExcludeFilter(e)||this.isFilteredRow(e)}isHiddenCol(e){return this.hidden.isHiddenCol(e)}isHiddenCell(e,t){return this.isHiddenRow(e)||this.isHiddenCol(t)}isRowHidable(e,t){for(let t=0;t<e;t++)if(!this.isHiddenRow(t))return!0;for(let e=this.countRows()-1;e>t;e--)if(!this.isHiddenRow(e))return!0;return!1}isColHidable(e,t){for(let t=0;t<e;t++)if(!this.isHiddenCol(t))return!0;for(let e=this.countCols()-1;e>t;e--)if(!this.isHiddenCol(e))return!0;return!1}getHiddenPlugin(){return this.hidden}getFilterPlugin(){return this.getPlugin("synoFilter")}getMergePlugin(){return this.getPlugin("synoMergeCell")}getValidationPlugin(){return this.getPlugin("synoValidation")}getCfPlugin(){return this.getPlugin("synoConditionalFormat")}getFreezePlugin(){return this.getPlugin("synoFreezeBar")}getRowResizePlugin(){return this.getPlugin("synoManualRowResize")}getColResizePlugin(){return this.getPlugin("synoManualColumnResize")}getDrawingPlugin(){return this.getPlugin("synoDrawingController")}getGroupPlugin(){return this.getPlugin("synoGroup")}containsAllVisibleRanges(e,t){return ix(e,("row"===t?this.isHiddenRow:this.isHiddenCol).bind(this),"row"===t?this.countRows():this.countCols())}findClosestCell(e,t){return ig(this,e,t)}getNonEmptyNeighborRange(e){return im(this,e)}findSuggestionDataRange(e){return ib(this,e)}setRenderHeights(e){this.getPlugin("synoRenderCache").setRenderHeights(e)}calcRenderRanges(e){for(let t of e)t.forAll((e,t)=>{let i=this.getCellModel(e,t);if(i)if(this.isEmptyCell(e,t)){let n=i.getProperties();this.getPlugin("synoConditionalFormat").afterDataRenderer(e,t,i,n),this.getPlugin("synoValidation").afterDataRenderer(e,t,i,n),this.getPlugin("synoCellDirection").afterDataRenderer(e,t,i,n)}else{let n=this.getFormulaItem(e,t);n&&this.formula.updateItem(n),this.renderCache.renderData(e,t,i)}});this.getFilterPlugin().calcRenderRanges(e),this.getDrawingPlugin().updateAllChartData()}getComputedBackgroundColor(e,t){let i=this.getCellModel(e,t),n=i&&this.getPlugin("synoConditionalFormat").getCfStyle(e,t,i,i.getProperties());if(n?.bgColor)return n.bgColor;let o=this.worksheet.getComputedCellStyle(e,t)?.getFill();return o?.bg||tu.Z.DEFAULT_FILL_COLOR}getComputedTextColors(e,t){let i=this.getCellModel(e,t);if(!i||!i.value)return[];let n=this.getPlugin("synoConditionalFormat").getCfStyle(e,t,i,i.getProperties());if(n?.color)return[n.color];let o=this.renderCache.getCellTextDesc(e,t),r=o?.getColor();if(r){let e=t0(`#${r}`);if(e)return[e.toLowerCase()]}let a=this.worksheet.getComputedCellStyle(e,t)?.getFont(),s=a?.color||tu.Z.DEFAULT_FONT_COLOR;return(0,ts.is)(i.value)?(0,ts.F4)(i.value,s):o?.l?[a?.color||tu.Z.HYPER_LINK_COLOR]:[s]}getVisibleRangeValues(e){let t=this.getWorkbook(),i=t.createBaseFormulaItem(),n=new H.e().assign({keepNull:!0,keepNfId:!0,keepLink:!1,skipHiddenRow:!0,skipHiddenCol:!0,skipFiltered:!0});return{values:t.getFormulaParser().getRangeValues(e,{sheetId:this.sheetId,item:i},n),nfId:i.nfId}}getRangeTexts(e,t){let i,{rowStep:n=1,colStep:o=1}=void 0===t?{}:t,r=[],[a,s,l,c]=e.toArray();for(let e=a;e<=l;e+=n){r.push(i=[]);for(let t=s;t<=c;t+=o){let n=this.renderCache.getCellText(e,t);i.push(n)}}return r}getAllTexts(e){void 0===e&&(e=!1);let t=new eA.GJ(0,0,this.countRows()-1,this.countCols()-1),i=this.getRangeTexts(t);return e&&ex(i,e=>!e),i}getCellTextDesc(e,t){return this.renderCache.getCellTextDesc(e,t)}getSpillRange(e,t){let i=this.formula.getSpillItem(e,t);return i?eR.createFromRange(i.getSpillRange()?.getRange(),this)?.toSynoRange()??null:null}getCellFormulaValue(e,t){return this.formula.getCellValue(e,t)}getPartialStateJSON(e){let t={};for(let i of e)switch(i){case"cells":t[i]=this.getCellsStateJSON();break;case"rows":t[i]=this.getRowsStateJSON();break;case"cols":t[i]=this.getColsStateJSON();break;case"rowCount":t[i]=this.countRows();break;case"colCount":t[i]=this.countCols();break;case"global":t[i]=this.worksheet.getGlobalInfo();break;case"formulaDimensions":t[i]=this.getFormulaDimensions();break;case"rtl":t[i]=this.isRtl()}return t}getPluginStateJSON(e){let t={};for(let i of e)switch(i){case"filter":t[i]=this.getFilterPlugin().getStateJSON();break;case"merge":t[i]=this.getPlugin("synoMergeCell").getStateJSON();break;case"validation":t[i]=this.getValidationPlugin().getStateJSON();break;case"cf":t[i]=this.getCfPlugin().getStateJSON();break;case"freeze":t[i]=this.getFreezePlugin().getStateJSON();break;case"drawing":t[i]=this.getDrawingPlugin().getStateJSON()}return t}getStateJSON(){return{worksheet:this.getPartialStateJSON(["rowCount","colCount","rows","cols","global","cells","formulaDimensions","rtl"]),plugins:this.getPluginStateJSON(["freeze","merge","cf","filter","validation","drawing"])}}getDimensionStateJSON(){return{rowCount:this.countRows(),colCount:this.countCols()}}getRowsStateJSON(){return Array.from({length:this.countRows()},(e,t)=>{let i=this.worksheet.getRowInfo(t),n={hidden:this.hidden.isHiddenRow(t),...this.getDimStateJSON(i)};return i?.h&&(n.h=i.h),n})}getColsStateJSON(){return Array.from({length:this.countCols()},(e,t)=>({hidden:this.hidden.isHiddenCol(t),w:this.getColWidth(t),...this.getDimStateJSON(this.worksheet.getColInfo(t))}))}getDimStateJSON(e){let t={};return e?.s!==void 0&&(t.s=e?.s),e?.outlineLevel!==void 0&&(t.outlineLevel=e?.outlineLevel),e?.collapse!==void 0&&(t.collapse=e?.collapse),t}getCellsStateJSON(){let e={},t=[];this.worksheet.forEachCellModel((i,n,o)=>{let r=this.getModelCellStateJSON(i);r&&(e[n]??={},e[n][o]=r);let a=i.getFormulaItem();a?.getSpillRange()&&t.push(a)});let i=new WeakSet;for(let n of t){let t=n.getSpillRange()?.getRange();if(t&&!n.needUpdate&&!n.needCheckSpill&&!n.spillError)for(let o=t.from.row;o<=t.to.row;o++)for(let r=t.from.col;r<=t.to.col;r++){let t=e[o]?.[r];if(!t||!i.has(t)&&null==t.cellFormulaValue){let a=this.getSpillCellStateJSON(n,o,r);a&&(t={...t,...a},e[o]??={},e[o][r]=t,i.add(t))}}}return e}getScatterCellsStateJSON(e){return e.map(e=>{let{row:t,col:i}=e;return this.getCellStateJSON(t,i)})}getCellStateJSON(e,t){let i=this.getCellModel(e,t),n=null;if(i&&(n=this.getModelCellStateJSON(i)),!i||(0,eI.O2)(i.getValue())){let i=this.formula.getSpillItem(e,t);i&&(n={...n,...this.getSpillCellStateJSON(i,e,t)})}return n}getModelCellStateJSON(e){let t=e.getValue(),i=e.getProperties(),n=e.getFormulaItem()?.getValue()??null;for(;Array.isArray(n);)n=n[0];return{v:(0,ts.is)(t)?t.toJSON():t,n:e?.note,s:e?.xfId,link:i?.link?.getStateJSON()??null,comment:i?.comment,cfStyle:i?.cfStyle,validId:i?.validId,synoInvalid:i?.synoInvalid,pivot:i?.pivot,dir:i?.dir,formulaItem:e.getFormulaItem()?.getStateJSON(),cellFormulaValue:(0,H.yx)(n),renderDesc:this.renderCache.getModelCellDesc(e)}}getSpillCellStateJSON(e,t,i){if(e.needUpdate||e.needCheckSpill||e.spillError)return null;let n=this.formula.getSpillValue(e.getValue(),t-e.row,i-e.col);for(;Array.isArray(n);)n=n[0];return{cellFormulaValue:(0,H.yx)(n),renderDesc:i_(this,t,i)}}getFormulaDimensions(){return this.getFormulaDepManager().getSpillContainer().getAllFormulaRanges().map(e=>{if(!e.getSpillItem())return null;let t=e.getRange();return[t.from.row,t.from.col,t.to.row,t.to.col]}).filter(eT)}},iC=["data","format","notes","validation","cf","hyperlink","comment"],ik=["format","validation","cf"];function iI(e){if(!e.data)return e;let t=e.data.map(e=>e.map(e=>(0,ts.pM)(e)?td.Z.fromJSON(e):e));return{...e,data:t}}function iA(e){if(!e.data)return e;let t=e.data.map(e=>e.map(e=>(0,ts.is)(e)?e.toJSON():e));return{...e,data:t}}class iT{}class iE extends iT{constructor(e){super(),this.workbook=e}process(e){if("compound"===e.cmd)for(let t=0;t<e.actions.length;t++)this.process(e.actions[t]);else this._processCommand(e)}_processCommand(e){let t=tL.Remote;if(this._processComment(e)||this._processWorksheet(e)||this._processDefinedName(e)||this._processProtection(e)||this._processExternalLinks(e)||this._processPivotTable(e))return;let{id:i}=e,n=this.workbook.getSheetById(i);if(!n)return;let o=n.controller;switch(e.cmd){case"value":{let{changes:i,source:n}=e;o.setDataAtCell((0,ts.jS)(i),n??t);break}case"note":{let{changes:i}=e;o.setNote(i,t);break}case"resize_row":{let{from:t,to:i,height:n}=e;o.resizeRow(t,i,n);break}case"resize_col":{let{from:t,to:i,width:n}=e;o.resizeColumn(t,i,n);break}case"insert_row":case"remove_row":case"insert_col":case"remove_col":{let{index:t,amount:i,refIndex:n,data:r}=e;o.alterGrid(e.cmd,t,i,n,r);break}case"merge":{let{range:t}=e;o.mergeCells(iR(t));break}case"unmerge":{let{range:t}=e;o.unmergeCells(iR(t));break}case"unmerge_overlaps":{let{range:t}=e;o._unmergeOverlaps(iR(t));break}case"format":{let{changes:i,overwrite:n,source:r}=e;o.setFormat(i,n??!0,r??t);break}case"quoteprefix":case"font":case"fill":case"alignment":case"border":{let{changes:i,overwrite:n,source:r}=e,a="quoteprefix"===e.cmd?"QuotePrefix":(0,t_.ct)(e.cmd);o.setStyleByType(a,i,n,r??t);break}case"row_style":{let{type:i,changes:n,revert:r,cellChanges:a,source:s}=e;o.setRowStyle((0,t_.ct)(i),n,r,a,s??t);break}case"col_style":{let{type:i,changes:n,revert:r,cellChanges:a,source:s}=e;o.setColStyle((0,t_.ct)(i),n,r,a,s??t);break}case"global_style":{let{type:i,value:n,revert:r,rowChanges:a,colChanges:s,cellChanges:l,source:c}=e;o.setGlobalStyle((0,t_.ct)(i),n,r,a,s,l,c??t);break}case"paste_autofill_data":{let{range:t,data:i,expandFilter:n,source:r}=e;o.pasteAutofillData(iR(t),iI(i),n,r);break}case"populate_autofill_data":{let{range:t,data:i,direction:n,source:r}=e;o.populateAutofillData(iR(t),iI(i),n,r);break}case"autofill_number_format":{let{range:t,fc:i,direction:n,source:r}=e;o.autofillNumberFormat(iR(t),i,n,r);break}case"fix_row":{let{row:t}=e;o.fixedRow(t);break}case"fix_col":{let{col:t}=e;o.fixedCol(t);break}case"hide_rows":{let{from:t,to:i}=e;o.hideRows(t,i);break}case"show_rows":{let{from:t,to:i}=e;o.showRows(t,i);break}case"hide_cols":{let{from:t,to:i}=e;o.hideCols(t,i);break}case"show_cols":{let{from:t,to:i}=e;o.showCols(t,i);break}case"create_filter":{let{range:t,filterId:i}=e;o.createFilter(iR(t),i);break}case"enable_filter":{let{filterId:t,hiddenInfo:i}=e;o.enableFilter(t,i);break}case"disable_filter":{let{filterId:t,hiddenInfo:i}=e;o.disableFilter(t,i);break}case"set_filter":{let{filterId:t,col:i,condition:n,hiddenInfo:r}=e;o.setFilter(t,i,n,r);break}case"update_filter_range":{let{filterId:t,range:i,conditions:n}=e;o.updateFilterRange(t,i?iR(i):null,n);break}case"create_filter_view":{let{filterId:t,range:i,name:n,isPrivate:r}=e;o.createFilterView(t,iR(i),n,r);break}case"enable_filter_view":{let{filterId:t}=e;o.enableFilterView(t);break}case"disable_filter_view":{let{filterId:t}=e;o.disableFilterView(t);break}case"set_filter_view_condition":{let{filterId:t,col:i,condition:n}=e;o.setFilterViewCondition(t,i,n);break}case"update_filter_view_name":{let{filterId:t,name:i}=e;o.updateFilterViewName(t,i);break}case"update_filter_view_range":{let{filterId:t,range:i,conditions:n}=e;o.updateFilterViewRange(t,i?iR(i):null,n);break}case"expand_filter_range":{let{range:t}=e;o.expandFilterRange(iR(t));break}case"set_active_filter_view":{let{filterId:t}=e;o.setActiveFilterView(t);break}case"add_validation_range":{let{validId:t,range:i}=e;o.addValidRange(t,iR(i));break}case"create_validation":{let{validation:t,range:i}=e,r=eR.textToRange(i,n);r&&o.createValidation(t,r);break}case"remove_validation":{let{validId:t,range:i}=e,r=eR.textToRange(i,n);r&&o.removeValidation(t,r);break}case"remove_all_validation":{let{range:t}=e;o.removeAllValidation(iR(t));break}case"create_cf":{let{cf:t,index:i}=e;o.addCf(t,i);break}case"remove_cf":{let{cfId:t}=e;o.removeCf(t);break}case"update_cf_ranges":{let{ranges:t,cfId:i}=e;o.updateCfRanges(i,t.map(e=>eR.textToRange(e,n)).filter(eT));break}case"sort":{let{rowOrder:t,range:i,applyData:n}=e;o.applyRowOrder(t,iR(i),n);break}case"insert_image":{let{imageId:t,position:i}=e;o.insertImage(t,i);break}case"remove_image":{let{imageId:t}=e;o.removeImage(t);break}case"resize_image":{let{imageId:t,position:i}=e;o.resizeImage(t,i);break}case"insert_chart":{let{chartId:t,position:i,chartObj:n}=e;o.insertChart(t,i,n);break}case"remove_chart":{let{chartId:t}=e;o.removeChart(t);break}case"resize_chart":{let{chartId:t,position:i}=e;o.resizeChart(t,i);break}case"adjust_chart":{let{chartId:t,chartObj:i}=e;o.adjustChart(t,i);break}case"set_chart_config":{let{chartId:t,name:i,args:n}=e;o.setChartConfig(t,i,n);break}case"modify_drawings_by_insert":{let{type:t,index:i,amount:n}=e;o.modifyDrawingsByInsertRowCol(t,i,n);break}case"modify_drawings_by_remove":{let{type:t,index:i,amount:n}=e;o.modifyDrawingByRemoveRowCol(t,i,n);break}case"modify_drawings_by_move":{let{type:t,start:i,amount1:n,amount2:r,isBackward:a}=e;o.modifyDrawingsByMoveRowCol(t,i,n,r,a);break}case"move_row":{let{start:t,amount1:i,amount2:n,isBackward:r,data:a}=e;o.moveRow(t,i,n,r,a);break}case"move_col":{let{start:t,amount1:i,amount2:n,isBackward:r,data:a}=e;o.moveCol(t,i,n,r,a);break}case"move_range":{let{srcRange:t,targetRange:i,clearMerge:n}=e;o.moveRange(iR(t),iR(i),n);break}case"clear_range_data":{let{range:t,source:i}=e;o.clearRangeData(iR(t),i);break}case"clear_range_related":{let{range:t,source:i,clearMerge:n}=e;o.clearRangeRelated(iR(t),n,i);break}case"move_formula_range":{let{srcRange:t,targetSheetId:i,targetRange:n,keepMovingPart:r,applyData:a}=e;o.moveFormulaRange(iR(t),i,iR(n),r,a);break}case"remove_formula_range":{let{srcRange:t,applyData:i}=e;o.removeFormulaRange(iR(t),i);break}case"add_internal_link":{let{json:t}=e;o.addInternalLink(t);break}case"update_internal_link":{let{json:t}=e;o.updateInternalLink(t);break}case"remove_internal_link":{let{linkId:t}=e;o.removeInternalLink(t);break}case"group":"col"===e.type?o.groupCols(e.from,e.to):o.groupRows(e.from,e.to);break;case"ungroup":"col"===e.type?o.ungroupCols(e.from,e.to):o.ungroupRows(e.from,e.to);break;case"update_group":o.updateGroup(e.type,e.from,e.levels);break;case"set_collapse":o.setCollapse(e.type,e.index,e.collapse);break;case"set_worksheet_rtl":o.setWorksheetRtl(e.rtl)}}_processComment(e){let t=this.workbook.getController().commentController,i=!0;switch(e.cmd){case"create_comment":t.createCommentFromJSON(e.json);break;case"create_comment_local":{let{author:i,config:n}=e;t.createComment(i,n);break}case"reply_comment":t.replyCommentFromJSON(e.json);break;case"reply_comment_local":{let{author:i,config:n}=e;t.replyComment(i,n);break}case"reopen_comment":t.reopenCommentFromJSON(e.json);break;case"reopen_comment_local":{let{author:i,threadId:n,authorName:o}=e;t.reopenComment(i,n,o);break}case"resolve_comment":t.resolveCommentFromJSON(e.json);break;case"resolve_comment_local":{let{author:i,threadId:n,authorName:o}=e;t.resolveComment(i,n,o);break}case"edit_comment":t.changeCommentFromJSON(e.json);break;case"edit_comment_local":{let{author:i,threadId:n,replyId:o,text:r}=e;t.editComment(i,n,o,r);break}case"paste_comment":t.pasteCommentFromJson(e.jsonArray);break;case"clear_comment":t.clearCommentFromJson(e.jsonArray);break;default:i=!1}return i}_processDefinedName(e){let t=!0,i=this.workbook.getController().nameController;switch(e.cmd){case"create_define":{let{name:t,value:n,scope:o}=e;i.create(t,n,o);break}case"remove_define":{let{name:t,scope:n}=e;i.remove(t,n);break}case"modify_define":{let{name:t,change:n,scope:o}=e;i.modify(t,n,o);break}default:t=!1}return t}_processProtection(e){let t=!0,i=this.workbook.getController().ruleController;switch(e.cmd){case"create_rule":{let{rule:t}=e;i.create(t);break}case"update_rule":{let{ruleId:t,props:n}=e;i.update(t,n);break}case"remove_rule":{let{ruleId:t}=e;i.delete(t);break}default:t=!1}return t}_processExternalLinks(e){switch(e.cmd){case"update_external_links":return this.workbook.getController().updateExternalLinks(e.entry),!0;case"remove_external_links":return this.workbook.getController().removeExternalLinks(e.linkIds),!0}return!1}_processPivotTable(e){let t=this.workbook.getPivotTableManager();switch(e.cmd){case"pivot_compound":case"create_pivot_table":case"delete_pivot_table":case"update_pivot_table":case"move_pivot_table":case"set_pivot_table_caption":case"move_pivot_axis_field":case"insert_pivot_data_field":case"move_pivot_data_field":case"remove_pivot_data_field":case"set_pivot_field_attr":case"set_pivot_data_field_attr":case"set_pivot_field_item_order":case"set_pivot_field_item_folded":case"set_pivot_field_item_hidden":case"set_pivot_field_item_caption":case"group_pivot_field_item":case"ungroup_pivot_field_item":case"set_pivot_field_number_group":case"set_pivot_field_datetime_group":return t.execCommand(e),!0}return!1}_processWorksheet(e){let t=e.cmd;if(!t||!t.startsWith("worksheet."))return!1;let i=this.workbook.getController();switch(t){case"worksheet.create":{let{id:t,pos:n,title:o,tabColor:r,content:a}=e;i.createWorksheet(t,n,{title:o,tabColor:r},a);break}case"worksheet.create_pivot_table":{let{id:t,pos:n,title:o,tableJson:r,cacheJson:a}=e;i.createWorksheet(t,n,{title:o})&&(this.workbook.setMaxPivotTableIndex(this.workbook.getMaxPivotTableIndex()+1),this.workbook.getPivotTableManager().createPivotTable(r,a));break}case"worksheet.dup":{let{id:t,pos:n,title:o,newId:r,pivotTableIdMapping:a}=e;i.dupWorksheet(t,n,o,r,a);break}case"worksheet.undelete":{let{id:t,pos:n,info:o,content:r}=e;i.undeleteWorksheet(t,n,o,r);break}case"worksheet.delete":{let{id:t,includeSnapshotData:n}=e;i.deleteWorksheet(t,n);break}case"worksheet.rename":{let{id:t,title:n}=e;i.renameWorksheet(t,n);break}case"worksheet.set_order":{let{order:t}=e;i.reorderWorksheet(t);break}case"worksheet.set_hidden":{let{id:t,hidden:n}=e;i.setWorksheetHidden(t,n);break}case"worksheet.set_color":{let{id:t,color:n}=e;i.setWorksheetColor(t,n)}}return!0}}function iR(e){return(0,eI.MT)(e[0],e[1],e[2],e[3])}var iD=i(55272),iO=i(85196);class iM extends iO.sv{constructor(e){super(e),this.row=e.row,this.col=e.col,this.sheetId=e.sheetId,this.cellText=e.cellText}toJSON(){return Object.assign(super.toJSON(),this._getProperties())}toObject(){return Object.assign(super.toObject(),this._getProperties())}_getProperties(){return{row:this.row,col:this.col,sheetId:this.sheetId,cellText:this.cellText}}static createReply(e){return iN.fromJSON(e)}getReplyIndex(e){for(let t=0;t<this.replies.length;t++)if(this.replies[t].id===e)return t;return -1}}class iN extends iO.jB{static fromJSON(e){return new iN(e)}}class iP extends iO.T5{static createComment(e){return iM.fromJSON(e)}filterBySheet(e,t){return void 0===t&&(t=!1),this.getAllCommentValues().filter(i=>i.sheetId===e&&(!t||i.status===iO.xs.x4))}createRowCol(e,t,i,n){let o=[];for(let r in this.comments){let a=this.comments[r];a.sheetId===e&&a[t]>=i&&(a[t]+=n,o.push([a.id,a.toJSON()]))}o.length>0&&this.emit("commentChanged",o)}removeRowCol(e,t,i,n){let o=[];for(let r in this.comments){let a=this.comments[r];a.sheetId!==e||a[t]<i||(a[t]<=i+n-1?(delete this.comments[a.id],o.push([a.id,null])):(a[t]-=n,o.push([a.id,a.toJSON()])))}o.length>0&&this.emit("commentChanged",o)}sort(e,t,i){let n=this.getAllCommentValues().filter(t=>t.sheetId===e&&i.includes(t));if(0===n.length)return[];let o=[],r=i.getTopLeftCorner().row,a=[];for(let e=0;e<n.length;e++){let i=n[e],s=t[i.row-r]+r;i.status===iO.xs.x4&&a.push([i,i.row]),i.row=s,o.push([i.id,i.toJSON()])}return o.length>0&&this.emit("commentChanged",o),a}moveRow(e,t){this._moveRowCol("row",e,t)}moveCol(e,t){this._moveRowCol("col",e,t)}_moveRowCol(e,t,i){let n=[];this.getAllCommentValues().forEach(o=>{o.sheetId!==t||o[e]<i.sec[0].start||o[e]>i.sec[1].end||(o[e]<i.sec[1].start?o[e]+=i.sec[1].amount:o[e]-=i.sec[0].amount,n.push([o.id,o.toJSON()]))}),n.length>0&&this.emit("commentChanged",n)}copy(){return this}getStateJSON(){return{comments:this.toJSON()}}}var iL=i(99067),iB=((d={})[d.FIRST_READY=0]="FIRST_READY",d[d.PROCESSING_OTHER_SHEET=1]="PROCESSING_OTHER_SHEET",d[d.ALL_SHEET_READY=2]="ALL_SHEET_READY",d);async function*iF(e,t,i){function n(i){let n=t.index.order.indexOf(i),o=t.index.sheets[i];return e.createSheet({sheetId:i,snapshot:t[i],deferInit:!0},n,o)}iW(e,t);let o=t.index.order.slice(0),r=function(e,t){let i=t.order,n="string"==typeof e?i.indexOf(e):-1;function o(e){return e&&!e.hidden}n=n<0?0:n;for(let e=n;e>=0;e--)if(o(t.sheets[i[e]]))return e;for(let e=n+1;e<i.length;e++)if(o(t.sheets[i[e]]))return e;return -1}(i,t.index);i=o[r];let a=null;if(i){o.splice(r,1);let s=t[i],l=(0,iL.Z)(s,["filter","drawing","validation","cfs"]);s.cfs=null,s.validation=null,s.drawing=null,s.filter=null;let c=n(i);c.notifyDataReady(),c.notifyPluginsReady(),e.setCurrent(i),a={sheet:c,settings:l},yield{state:0}}let s=[];for(let e of o)await L(),s.push(n(e)),yield{state:1};for(let e of s)await L(),e.notifyDataReady(),yield{state:1};for(let e of s)await L(),e.notifyPluginsReady(),yield{state:1};yield{state:2};let l=!1;return a&&(l=e.getController().recalcUnknownRefs(a.sheet)||l,e.forAll(e=>{e.sheet.getHyperlinkModel().recalcUnknownRefs()}),function(e){let t=!1,i=["synoValidation","synoDrawingController","synoFilter","synoConditionalFormat"],{sheet:n,settings:o}=e;for(let e=0;e<i.length;e++)t=n.getPlugin(i[e]).initData(o)||t;return t}(a)&&(l=!0,e.current.getPlugin("synoRenderCache").clearAllHeightCache())),l}function iV(e,t){let i=!1,n=(async()=>{let n=await e.next();for(;!n.done&&2!==n.value.state;){if(i)return;0===n.value.state&&t?.(),n=await e.next()}})();return{processDelayInfo:()=>n.then(async()=>{let t=await e.next();for(;!t.done;)t=await e.next();return t.value}),abort:function(){i=!0}}}function iz(e,t,i){let{activeId:n,onActiveInit:o,runCalculator:r=!0}=i,{abort:a,processDelayInfo:s}=iV(iF(e,t,n),o);return{abort:a,processDelayInfo:async()=>{let t=await s();return r&&e.getAsyncCalculator().start(),t}}}function iH(e,t){t.fonts=t.fonts.map(e=>(0,iD.recoverFontObject)(e)),t.alignments=t.alignments.map(e=>(0,iD.recoverAlignmentObject)(e)),e.init(t)}function iW(e,t){iH(e.getStyleManager(),t.style),e.getNameManager().init(t.define),e.getPivotTableManager().init({caches:t.pivotCaches,tables:t.pivotTables});let i=iP.fromJSON(t.comment||[]);e.setCommentStore(i),e.getRuleStore().init(t.protection||[]),e.getExternalManager().init(t.externals),e.setMaxIndex(t.index.maxIndex||0),e.setMaxPivotTableIndex(t.index.maxPivotIndex??0),t.index.order=es(t.index.order)}function iY(e,t,i){let{runCalculator:n=!0}=i;iW(e,t);let o=t.index.order;for(let i=0;i<o.length;i++){let n=o[i],r=t.index.sheets[n];t[n]&&e.createSheet({sheetId:n,snapshot:t[n],deferInit:!0},i,r)}e.forAll(e=>{e.sheet.notifyDataReady()}),e.forAll(e=>{e.sheet.notifyPluginsReady()}),n&&e.getAsyncCalculator().start()}function iU(e,t,i){let n=e.createStyleManager();iH(n,i);let o=e.getStyleManager().transform(n);if(o){for(let e in t.cells)for(let i in t.cells[e]){let n=t.cells[e][i];n&&n.s&&(n.s=o[n.s])}for(let e in t.rows){let i=t.rows[e];i.s&&(i.s=o[i.s])}for(let e in t.cols){let i=t.cols[e];i.s&&(i.s=o[i.s])}}}var iG=i(58162),iZ=i(38147),ij=i(46904);class iq{constructor(e,t){this.sep="/",this.prebuilt=t,this.fields={},this.order=[],this.regex=this._parse(e)}static preBuild(e){let t=[];e.months.forEach(function(e){let i=e[2].toLowerCase();t.push(i);let n=e[1];"."===n.charAt(n.length-1)&&n.replace(/\.$/,"\\.?"),n!==i&&t.push(n.toLowerCase())}),t.sort(function(e,t){return t.length-e.length});let i={_rawMonthRegex:"(\\d\\d?|"+t.join("|")+")",monthsMap:{},abbrMonthsMap:{}};return e.months.forEach(function(e,t){i.abbrMonthsMap[e[1].replace(/\.$/,"").toLowerCase()]=t,i.monthsMap[e[2].toLowerCase()]=t}),i}_parse(e){let t=e.length;for(let i=0;i<t&&this.order.length<3;i++)switch(e.charCodeAt(i)){case 68:this.order.push("d"),this.fields.d=this.order.length;break;case 77:this.order.push("m"),this.fields.m=this.order.length;break;case 89:this.order.push("y"),this.fields.y=this.order.length}return -1!==e.indexOf("-")?this.sep="-":-1!==e.indexOf(".")&&(this.sep='"."'),e=(0,ij.h)(e).replace(/\s+/g,"\\s+"),this.fields.d&&(e=e.replace("D","(\\d\\d?)")),this.fields.y&&(e=e.replace("Y","(\\d{4}|\\d\\d)")),this.fields.m&&(e=e.replace("M",this.prebuilt._rawMonthRegex)),RegExp("^"+e+"$","i")}match(e,t){let i,n,o,r,a=e.match(this.regex);if(!a)return null;let s=new Date,l=0,c=0,d=0;if(this.fields.y){if(isNaN(i=parseInt(r=a[this.fields.y],10))||i<=0)return null;l=4,2===r.length&&(i+=2e3,l=2)}else i=s.getFullYear();if(this.fields.d){if(isNaN(o=parseInt(r=a[this.fields.d],10))||o<0||o>31||1900!==i&&0===o)return null;d=2===r.length&&o<10?2:1}else o=s.getDate();if(this.fields.m)if(r=a[this.fields.m],/^\d+$/.test(r))n=parseInt(r,10)-1,c=2===r.length&&n<9?2:1;else{let{monthsMap:e,abbrMonthsMap:t}=this.prebuilt;(r=r.replace(/\.$/,"").toLowerCase())in e?(n=e[r],c=4):r in t&&(n=t[r],c=3)}if(void 0===n||isNaN(n)||!(n>=0&&n<12))return null;let u={v:new Date(i,n,o,0),d:!0};return t&&(u.fc=this._getFc(l,c,d)),u}_getFc(e,t,i){return this.order.reduce((n,o)=>("y"===o?n.push("y".repeat(e)):"m"===o?n.push("m".repeat(t)):"d"===o&&n.push("d".repeat(i)),n),[]).join(this.sep)}}class iK{constructor(e,t){this.prebuilt=t,this.format=e,this.regex=this.parse(e,t)}static preBuild(e){let{long_day_period:t,short_day_period:i}=e;return{tokens:/"[^"]*"|AM\\\/PM|hh|mm|ss|h|m|s|\s+/g,rawPeriodRegex:["(",t.concat(i).sort(function(e,t){return t.length-e.length}).map(function(e){return(0,ij.h)(e)}).join("|"),")"].join(""),rawNumberRegex:"(\\d+(?:\\.\\d+)?)",periodMap:{[i[0].toLowerCase()]:"A",[i[1].toLowerCase()]:"P",[t[0].toLowerCase()]:"AM",[t[1].toLowerCase()]:"PM"}}}parse(e,t){return RegExp("^"+(0,ij.h)(e).replace(t.tokens,e=>0===e.trim().length?"\\s+":"AM\\/PM"===e?t.rawPeriodRegex:34===e.charCodeAt(0)&&34===e.charCodeAt(e.length-1)?e.slice(1,-1).replace(/\s+/g,"\\s+"):"ss"===e||"s"===e?t.rawNumberRegex:"(\\d+)")+"$","i")}match(e,t){let i,n,o,r,a=e.match(this.regex);if(!a)return null;let s=this.prebuilt.periodMap,l=a.length;if(void 0!==(r=s[a[1].toLowerCase()])?(i=parseInt(a[2],10),n=parseInt(a[3],10),o=a[4]?parseInt(a[4],10):0):void 0!==(r=s[a[l-1].toLowerCase()])?(i=parseInt(a[1],10),n=parseInt(a[2],10),o=a[4]?parseInt(a[3],10):0):(i=parseInt(a[1],10),n=parseInt(a[2],10),o=a[3]?parseInt(a[3],10):0),isNaN(i)||isNaN(n)||isNaN(o)||r&&i>12)return null;("P"===r||"PM"===r)&&i<12?i+=12:("A"===r||"AM"===r)&&12===i&&(i-=12);let c={v:new Date(1900,0,0,i,n,o),t:!0};return t&&(c.fc=this.getFc(this.format,i,n,o)),c}getFc(e,t,i,n){return 3600*t+60*i+n<86400?this.format:this.format.replace(/hh|h/,function(e){return"["+e+"]"})}}let iX=class{constructor(e,t,i){this.d1900Jan0=new Date(1900,0,0);let n=iq.preBuild(e);this.dateRules=t.map(e=>new iq(e,n));let o=iK.preBuild(e);this.timeRules=i.map(e=>new iK(e,o))}parse(e,t){let i,n,o=null,r=null,a=e.split(/\s+/);for(let e=0;e<a.length;e++)if(i=a.slice(0,e).join(" "),n=a.slice(e).join(" "),o=i?this.parseDate(i,t):null,r=n?this.parseTime(n,t):null,(o||!i)&&(r||!n)||(r=i?this.parseTime(i,t):null,o=n?this.parseDate(n,t):null,(r||!i)&&(o||!n)))return this.mergeDateTime(o,r,t);return null}parseDate(e,t){let i=null;for(let n=0;n<this.dateRules.length&&null===(i=this.dateRules[n].match(e,t));n++);return i}parseTime(e,t){let i=null;for(let n=0;n<this.timeRules.length&&null===(i=this.timeRules[n].match(e,t));n++);return i}mergeDateTime(e,t,i){if(!e||!t)return e||t;let n={v:new Date(e.v.getTime()+(t.v.getTime()-this.d1900Jan0.getTime()))};return i&&(n.fc=[e.fc,t.fc].join(" ")),n}};function iQ(e){return null==e||""===e}let i$=[{token:U.nk.pl,symbol:U.QT.SHEETNAME},{token:U.nk.rH,symbol:U.QT.ROWRANGECELL}].map(e=>{let{token:t,symbol:i}=e,n=t.PATTERN;return{regex:RegExp(`^${n.source}`,n.flags),symbol:i}});class iJ{constructor({dec_sym:e,group_sym:t}){this.decSymbol=e,this.groupSymbol=t;let i=(0,ij.h)(this.decSymbol),n=(0,ij.h)(this.groupSymbol),o="^([+-]?)(\\d+(?:\\.\\d*)?|\\.\\d+)([eE][+-]?\\d+)?$",r="^([+-]?)(\\d{1,3})(,\\d{3})*(\\.\\d+)?$";if(this.normalNumberSymbol=/[.,]/g,this.normalRegularNum=new RegExp(o),this.normalGroupedNum=new RegExp(r),"."===this.decSymbol){this.localizeToken=this.normalizeToken=e=>e.getText();let e=e=>e;this.localizeFormula=this.normalizeFormula=e,this.localizeNumeric=this.normalizeNumeric=e,this.localeNumberSymbol=this.normalNumberSymbol,this.localeRegularNum=this.normalRegularNum,this.localeGroupedNum=this.normalGroupedNum,this.localeFormulaNum=new RegExp(o.slice(0,-1)),this.localeTokenize=U.wS}else{let e=o.replace(/\\\./g,i),t=r.replace(/\(,|\\\./g,e=>"(,"===e?`(${n}`:i);this.localeNumberSymbol=RegExp("["+i+n+"]","g"),this.localeRegularNum=new RegExp(e),this.localeGroupedNum=new RegExp(t),this.localeFormulaNum=new RegExp(e.slice(0,-1))}}localeLex(e,t){t=t&&t.symbol;let i=e._input.charAt(0);if("\\"===i)return t!==U.QT["{"]?e.parseError(`Unrecognized text: ${e._input}`):(e.yytext=i,e._input=e._input.substr(1),e.matched=e.matched+e.yytext,U.QT.COMMA);if(";"===i)return(e.yytext=i,e._input=e._input.substr(1),e.matched=e.matched+e.yytext,t===U.QT["("])?U.QT.COMMA:U.QT.SEMICOLON;let n=this.localeFormulaNum.exec(e._input);if(null!==n){let t=n[0],i=U.QT.NUMBER;for(let{regex:n,symbol:o}of i$){let r=n.exec(e._input);if(null!==r){t=r[0],i=o;break}}return e.yytext=t,e._input=e._input.substr(t.length),e.matched=e.matched+e.yytext,i}return","===i||"."===i?e.parseError(`Unrecognized text: ${e._input}`):e.next()}localeTokenize(e){let t=new U.no;for(U.cV.setInput(e);!U.cV.done;){let e=this.localeLex(U.cV,t.getTopScope());U.cV.yytext&&t.append(e,U.cV.yytext)}return t}normalizeToken(e){let t=e.getText();switch(e.symbol){case U.QT.COMMA:return",";case U.QT.NUMBER:return this.normalizeNumeric(t)}return t}normalizeFormula(e){let t="",i=this.localeTokenize(e);for(let e=0,n=i.size();e<n;e++){let n=i.get(e);t+=this.normalizeToken(n)}return t}localizeToken(e,t){let i=e.getText(),n=t[t.length-1];switch(e.symbol){case U.QT["("]:case U.QT["{"]:t.push(e);break;case U.QT[")"]:case U.QT["}"]:e.isMatch(n)&&t.pop();break;case U.QT.COMMA:if((n=n&&n.symbol)===U.QT["("])return";";if(n===U.QT["{"])return"\\";break;case U.QT.NUMBER:return this.localizeNumeric(i);case U.QT.SEMICOLON:if((n=n&&n.symbol)===U.QT["("])return","}return i}localizeFormula(e){let t=[],i="",n=(0,U.wS)(e);for(let e=0,o=n.size();e<o;e++){let o=n.get(e);i+=this.localizeToken(o,t)}return i}normalizeNumeric(e){let t=this.decSymbol;return e.replace(this.localeNumberSymbol,e=>e===t?".":",")}localizeNumeric(e){return e.replace(this.normalNumberSymbol,e=>"."===e?this.decSymbol:this.groupSymbol)}normalize(e){return iQ(e)?e:"number"==typeof e?e.toString():(0,t_.jr)(e)?this.normalizeFormula(e):this.localeRegularNum.test(e)||this.localeGroupedNum.test(e)?this.normalizeNumeric(e):e.toString()}localize(e){return iQ(e)?e:"number"==typeof e?this.localizeNumeric(e.toString()):!0===e||!1===e?e?"TRUE":"FALSE":(0,t_.jr)(e)?this.localizeFormula(e):this.normalRegularNum.test(e)||this.normalGroupedNum.test(e)?this.localizeNumeric(e):e.toString()}}var i0=i(86061),i1=i.n(i0);let i2=class{constructor(e){this.nbsp=RegExp(String.fromCharCode(160),"g"),this.localeHelper=e,this.generalCurrencySym=["$","€"];let t=e.getCode();("en_US"===t||["zh","ja","ko"].includes(t.slice(0,t.indexOf("_"))))&&this.generalCurrencySym.push("US$")}getValidNumber(e){let t=parseFloat(e);if(Number.isNaN(t))return t;t=H.dt.number.toEffective(t);try{e="+"===e.charAt(0)?e.slice(1):e;let i=new(i1())(e);return i.eq(t)?t:parseFloat(i.toPrecision(15))}catch{}return NaN}normalizeNumericString(e){let t=this._getLocaleData(),i=this.localeHelper.getLocaleConverter().localeNumberSymbol;return i?e.replace(i,function(e){return e===t.dec_sym?".":""}):e}parseNumericString(e){let t,i;e=e.trim();let n=this.localeHelper.getLocaleConverter();return null!==(t=n.localeRegularNum.exec(e))?isNaN(i=this.getValidNumber(this.normalizeNumericString(e)))?null:t[3]?0>t[3].indexOf("+")&&0>t[3].indexOf("-")?{v:i,fc:"0.00E-00"}:{v:i,fc:"0.00E+00"}:{v:i}:null!==(t=n.localeGroupedNum.exec(e))?isNaN(i=this.getValidNumber(this.normalizeNumericString(e)))?null:t.pop()?{v:i,fc:"#,##0.00"}:{v:i,fc:"#,##0"}:null}parsePercentageString(e){let t,i=this._getLocaleData().dec_sym;if(e.length<=1||"%"!==e.charAt(e.length-1))return null;if(t=this.parseNumericString(e.slice(0,-1))){if(t.fc=t.fc||(0>e.indexOf(i)?"0":"0.00"),t.v=+(t.v/100).toPrecision(15),t.fc.indexOf("E")>=0)return t;t.fc+="%"}return t||null}_parseCurrencyString(e,t,i,n){let o=e.indexOf(t);if(-1===o)return null;let r=!1,a,s=null,l=o+t.length;if(0===o?a=e.slice(l):1===o&&("+"===e[0]||"-"===e[0])?a=e[0]+e.slice(l).trim():n&&l===e.length&&(a=e.slice(0,o),r=!0),a&&(s=this.parseNumericString(a)),s){let n=`[$${t}]`,o=s.fc||(e.includes(i)?"#,##0.00":"#,##0");s.fc=r?o+n:n+o}return s}parseCurrencyString(e){let{currency_sym:t,dec_sym:i}=this._getLocaleData(),n=this._parseCurrencyString(e,t,i,!0);for(let t of this.generalCurrencySym)n??=this._parseCurrencyString(e,t,i,!1);return n||null}parseFinancialString(e){let t;if(e.length<=2||"()"!==e.charAt(0)+e.charAt(e.length-1)||!(t=this.parseNumericString(e.slice(1,-1)))||t.v<0)return null;let i=this._getLocaleData().dec_sym;return t.v=-t.v,t.fc=t.fc||(0>e.indexOf(i)?"#,##0":"#,##0.00"),t.fc=t.fc+";("+t.fc+")",t}parseDateTimeString(e){let t=this.localeHelper.getDateParser().parse(e,!0);return t?{...t,v:H.dt.date.serialize(t.v)}:t}parseBooleanString(e){let t=e.toUpperCase();return"TRUE"===t||"FALSE"===t?{v:"TRUE"===t}:null}parse(e){let t;if("string"!=typeof e)return null;let i=e.trim().replace(this.nbsp," ");return(t=this.parseBooleanString(i))||(t=this.parsePercentageString(i))||(t=this.parseCurrencyString(i))||(t=this.parseFinancialString(i))?t:(t=this.parseNumericString(i))?(t.numeric=!0,t):(t=this.parseDateTimeString(i))?(t.datetime=!0,t):null}_getLocaleData(){return this.localeHelper.getData()}};var i3=i(8771),i4=i(41385);function i5(e){let t=e.type,i=e.value;if("number"==typeof i&&"number"!==t&&"datetime"!==t||"string"==typeof i&&"string"!==t&&"error"!==t||"boolean"==typeof i&&"boolean"!==t||null===i&&"missing"!==t)throw Error("Invalid value item");return{type:t,value:i}}function i6(e){return{type:"string",value:e,contains:[]}}let i8={n:"number",d:"datetime",b:"boolean",s:"string",e:"error",m:"missing"};function i7(e){return e.type[0]+":"+e.value}function i9(e){let t=e[0],i=e.slice(2);return{type:i8[t],value:"n"===t||"d"===t?Number(i)||0:"b"===t?"true"===i:"m"===t?null:i}}var ne=((u={})[u.number=0]="number",u[u.datetime=1]="datetime",u[u.text=2]="text",u),nt=((h={}).seconds="seconds",h.minutes="minutes",h.hours="hours",h.days="days",h.months="months",h.quarters="quarters",h.years="years",h);let ni=Object.freeze(Object.values(nt));var nn=((p={}).avg="avg",p.count="count",p.countA="countA",p.max="max",p.min="min",p.product="product",p.stdDev="stdDev",p.stdDevP="stdDevP",p.sum="sum",p.var="var",p.varP="varP",p),no=((f={}).normal="normal",f.percentOfTotal="percentOfTotal",f.percentOfRow="percentOfRow",f.percentOfCol="percentOfCol",f.percentOfParentRow="percentOfParentRow",f.percentOfParentCol="percentOfParentCol",f.index="index",f);let nr={default_column_labels_caption:"Column Labels",default_row_labels_caption:"Row Labels",default_values_field_caption:"Values",default_data_field_name_template:"{1} of {0}",grand_total:"Grand Total",grand_total_with_data:"Total {0}",subtotal_template:"{0} Total",page_filter_all:"(No selected item)",page_filter_multi_item:"(Selected {0} items)",default_missing_item_label:"(Blank)",default_group_name:"Group",unnamed_group_name:"Unnamed group",datetime_group_item_label_quarter:"Qtr{0}",or:"or",date_group_seconds:"Seconds",date_group_minutes:"Minutes",date_group_hours:"Hours",date_group_days:"Days",date_group_months:"Months",date_group_quarters:"Quarters",date_group_years:"Years",sum:"Sum",avg:"Average",count:"Count Numbers",count_a:"Count",max:"Max",min:"Min",product:"Product",std_dev:"StdDev",std_dev_p:"StdDevP",var:"Var",var_p:"VarP"};class na{constructor(e){this.locale=e,this.texts={...nr,...e?.getData().pivot_table},this.datePattern=this.getDatePattern(e)}getText(e){return this.texts[e]}getNameOfDatetimeGroupLevel(e){var t,i;return t=e,void 0===(i=this.texts)&&(i=nr),i[`date_group_${t}`]}getNameOfAggregationFunction(e){var t,i;return t=e,void 0===(i=this.texts)&&(i=nr),i[(0,i3.Z)(t)]}getDatetimeLevelItem(e,t){if(!this.locale)return this.getDefaultDatetimeLevelItem(e,t);let i=this.locale.getSSF(),n=this.locale.getData();switch(e){case nt.seconds:return i.render(":ss",t/86400);case nt.minutes:return i.render("hh :mm",t/1440).split(" ")[1];case nt.hours:return i.render("hh AM/PM",t/24);case nt.days:return i.render(this.datePattern,t+1461);case nt.months:return n.months[t-1][2];case nt.quarters:return(0,i4.format)(this.texts.datetime_group_item_label_quarter,t);case nt.years:return`${t}`}}getDefaultDatetimeLevelItem(e,t){switch(e){case nt.seconds:return`Second ${t}`;case nt.minutes:return`Minute ${t}`;case nt.hours:return`Hour ${t}`;case nt.days:{let e=new Date(new Date("1904/01/01").setDate(t));return`${e.getMonth()+1}/${e.getDate()}`}case nt.months:return`Month ${t}`;case nt.quarters:return`Quarter ${t}`;case nt.years:return`${t}`}}getDatePattern(e){return(e?.getCode()==="ja_JP"||e?.getCode()==="zh_CN"?"M月D日":e?.getData().date_patterns.find(e=>!e.match(/[yY]/))??"mm/dd").replace(/([^mMdD]+)/g,'"$1"')}}let ns=class{constructor(e="en_US",t={}){this.code=e,this.collator=new Intl.Collator(e.replace("_","-"),{sensitivity:"accent"}),this.ssf=new iG.Z,this.localeData=this.initLocale(t),this.dateParser=this.createDateParser(this.localeData),this.localeConverter=new iJ(this.localeData),this.inputParser=new i2(this),this.pivotLocale=new na(this)}getCode(){return this.code}getCollator(){return this.collator}getSSF(){return this.ssf}getDateParser(){return this.dateParser}getLocaleConverter(){return this.localeConverter}getInputParser(){return this.inputParser}getPivotLocale(){return this.pivotLocale}getData(){return this.localeData}initLocale(e){let t=Object.entries(e).filter(e=>iZ.zZ.has(e[0])).map(e=>[iZ.zZ.get(e[0]),e[1]]),i=Object.assign(this.ssf.getLocaleData(),Object.fromEntries(t)),n={months:i.MONTHS,days:i.DAYS,dec_sym:i.DEC,group_sym:i.GROUP,currency_sym:i.CURRENCY_SYM,date_patterns:["M/D/Y","M/D"],long_time:"hh:mm:ss AM/PM",long_day_period:i.AMPM,short_time:"hh:mm AM/PM",short_date:"M/d/YYYY",short_day_period:i.SHORT_AMPM,pivot_table:e.pivot_table,...e};return Object.assign(this.createLocaleExt(n),n)}createLocaleExt(e){let t=e.short_time,i=t.charAt(t.lastIndexOf("h")+1)||":",n=e.short_date,o=["hh","mm","ss"].join(i);return{time_sym:i,datetime:n+" "+o,duration:["[hh]","mm","ss"].join(i)}}createDateParser(e){let t=e.date_patterns||[];["Y-M-D","Y/M/D"].forEach(e=>{t.includes(e)||t.push(e)});let i=[e.long_time,e.short_time],n=e.time_sym;return[["hh","mm","ss"].join(n),["hh","mm"].join(n)].forEach(e=>{i.includes(e)||i.push(e)}),new iX(e,t,i)}};async function nl(e,t,i){let n=new cW(new ns(e.locale,e.locale_info),iS,i.getEnabledPlugins(),i.getConstants());if(await iz(n,e,{}).processDelayInfo(),t.length>0){let e=new iE(n);for(let i of t)e.process((0,iD.extract)(i)),await L()}return n}class nc extends E.EventEmitter{constructor(e){super();let t=e?.entry??[];this.externalItemMap=new Map(t.map(e=>{let[t,i]=e;return[t,this.createExternalItem(i)]})),this.identifier=e?.identifier??"",this.rev=e?.rev??-1,this.title=e?.title??"",this.updateTime=e?.updateTime??0}createExternalItem(e,t){let i=new Y(e,t);return i.on("external_changed",()=>this.emit("external_changed")),i}setupWorkbookNotFound(){for(let[,e]of this.externalItemMap)e.isLoading()&&e.updateValue({value:(0,H.yx)(H.Pp.REF)})}async calculateChanges(e,t){if(!e)return this.setupWorkbookNotFound(),null;let{title:i,updateTime:n,snapshot:o,commandQueueInfo:r}=e,a=r.identifier,s=r.rev;if(a===this.identifier&&s===this.rev&&Array.from(this.externalItemMap.values()).every(e=>!e.isLoading()))return n===this.updateTime&&i===this.title?null:{identifier:a,rev:s,title:i,updateTime:n,changes:[]};let l=await nl(o,r.commands,t);await l.getAsyncCalculator().start();let c=[];for(let[e,t]of this.externalItemMap){let i=this.getWorkbookValue(l,e);t.isEqual(i)||c.push([e,i]),await L()}return{identifier:a,rev:s,title:i,updateTime:n,changes:c}}calculateEmptyRefChanges(){let e=[];for(let[t,i]of this.externalItemMap)0===i.getReferenceCount()&&e.push([t,null]);return e.length>0?{identifier:this.identifier,rev:this.rev,title:this.title,updateTime:this.updateTime,changes:e}:null}getWorkbookValue(e,t){let i=Q(t);if(!i||!i.shName)return{value:(0,H.yx)(H.Pp.REF)};let n=e.getSheetByName(i.shName);if(!n)return{value:(0,H.yx)(H.Pp.REF)};let o=new eO,r=e.getFormulaParser().exec(t,{item:o,sheetId:n.sheetId}),a={value:(0,H.yx)(r.error||r.result)};return o.nfId&&(a.fc=(0,eI.fJ)(e,o.nfId)),a}updateEntries(e){let{identifier:t,rev:i,title:n,updateTime:o,changes:r}=e;for(let[e,t]of r)if(t){let i=this.externalItemMap.get(e);i?i.updateValue(t):this.externalItemMap.set(e,this.createExternalItem(t))}else this.externalItemMap.delete(e);this.identifier=t,this.rev=i,this.title=n,this.updateTime=o,this.emit("external_changed")}hasValue(e){return!!this.externalItemMap.get(e)}getValue(e){let t=this.externalItemMap.get(e);return t||(t=this.createExternalItem({value:(0,H.yx)(H.Pp.LOADING)},!0),this.externalItemMap.set(e,t)),t}toJSON(){return{entry:Array.from(this.externalItemMap).filter(e=>{let[,t]=e;return!t.isLoading()}).map(e=>{let[t,i]=e;return[t,i.toJSON()]}),identifier:this.identifier,rev:this.rev,title:this.title,updateTime:this.updateTime}}getExternalCount(){return this.externalItemMap.size}getLinkInfo(){let e={};for(let t of this.externalItemMap.values())for(let i of t.iterateReference())e[i.sheet.sheetId]||(e[i.sheet.sheetId]=[]),eC(e[i.sheet.sheetId],{row:i.row,col:i.col});return{title:this.title,updateTime:this.updateTime,ref:e}}}class nd extends E.EventEmitter{constructor(){super(),this.externalMap=new Map}init(e){e&&(this.externalMap=new Map(e.entry.map(e=>{let[t,i]=e;return[t,this.createExternalLink(t,i)]})))}createExternalLink(e,t){let i=new nc(t);return i.on("external_changed",()=>this.emitExternalChanged(e)),i}getOrCreateExternalModel(e){let t=this.externalMap.get(e);return t||(t=this.createExternalLink(e),this.externalMap.set(e,t),this.emitExternalChanged(e)),t}emitExternalChanged(e){this.emit("external_changed",e,this.getLinkInfo(e))}async calculateChanges(e,t,i){return this.externalMap.get(e)?.calculateChanges(t,i)??null}calculateEmptyRefChanges(){let e=[];for(let[t,i]of this.externalMap){let n=i.calculateEmptyRefChanges();n&&e.push([t,n])}return e}updateExternal(e,t){this.getOrCreateExternalModel(e).updateEntries(t)}removeExternal(e){for(let t of e)this.externalMap.delete(t),this.emit("external_changed",t,null)}hasExternalValue(e,t){return this.externalMap.get(e)?.hasValue(t)??!1}getExternalValue(e,t){return this.getOrCreateExternalModel(e).getValue(t)}listLinkIds(){return Array.from(this.externalMap.keys())}listLinkInfo(){return Array.from(this.externalMap.entries()).map(e=>{let[t,i]=e;return{linkId:t,...i.getLinkInfo()}})}getLinkInfo(e){let t=this.externalMap.get(e);return t&&0!==t.getExternalCount()?{...t.getLinkInfo(),linkId:e}:null}toJSON(){return{entry:Array.from(this.externalMap).map(e=>{let[t,i]=e;return[t,i.toJSON()]}).filter(e=>{let[t,i]=e;return i.entry.length>0})}}}class nu{constructor(e,t){this.value=e,this.xfId=t,this.properties={}}getValue(){return this.value}setValue(e){this.value=e}setXfId(e){this.xfId=e}getXfId(){return this.xfId}getCellStyle(){return this._sm.getCellStyle(this.xfId)}isDefaultCellStyle(){return 0===this.xfId}setNote(e){this.note=e}getNote(){return this.note}setProperty(e,t){this.properties[e]=t}getProperties(){return this.properties}getFormulaItem(){return this.getProperties().formulaItem}getLink(){let e=this.getFormulaItem();return e&&e.href||""}}class nh{constructor(){this.fontId=0,this.fillId=0,this.alignmentId=0,this.borderId=0,this.nfId=0,this.quotePrefix=!1,this._refCount=0,this.index=0}equals(e){return e.fontId===this.fontId&&e.fillId===this.fillId&&e.alignmentId===this.alignmentId&&e.borderId===this.borderId&&e.nfId===this.nfId&&e.quotePrefix===this.quotePrefix}clone(){let e=new this.constructor;return e.fontId=this.fontId,e.fillId=this.fillId,e.alignmentId=this.alignmentId,e.borderId=this.borderId,e.nfId=this.nfId,e.quotePrefix=this.quotePrefix,e}isDefault(){return this===this._sm.getDefaultStyle()}getFont(){return this._sm.getFont(this.fontId)}getFill(){return this._sm.getFill(this.fillId)}getAlignment(){return this._sm.getAlignment(this.alignmentId)}getBorder(){return this._sm.getBorder(this.borderId)}getNumberFormat(){return this._sm.getNumberFormat(this.nfId)}getQuotePrefix(){return this.quotePrefix}setIndex(e){this.index=e}getIndex(){return this.index}toJSON(){return[this._refCount,this.fontId,this.fillId,this.alignmentId,this.borderId,this.nfId,+!!this.quotePrefix]}toStyleJSON(){return{font:this.getFont().toJSON(),fill:this.getFill().toJSON(),alignment:this.getAlignment().toJSON(),border:this.getBorder().toJSON(),nf:this.getNumberFormat().toJSON(),quoteprefix:!!this.quotePrefix}}}class np extends R(){static #e=this.attrs=["fonts","fills","alignments","borders","numberFormats"];constructor(){super(),this._cellStyleCls=this._createRefCellStyleClass(),this._cellCls=this._createRefCellClass(),this.fonts=[this.createFont()],this.fills=[this.createFill()],this.alignments=[this.createAlignment()],this.borders=[this.createBorder()],this.numberFormats=[this.createNumberFormat()],this.styles=[new this._cellStyleCls],this.fonts[0].setIndex(0),this.fills[0].setIndex(0),this.alignments[0].setIndex(0),this.borders[0].setIndex(0),this.numberFormats[0].setIndex(0)}getStyle(e){return this[e]}_createRefCellStyleClass(){class e extends nh{}return e.prototype._sm=this,e}_createRefCellClass(){class e extends nu{}return e.prototype._sm=this,e}createRefCell(e,t){return new this._cellCls(e,t)}getCellStyle(e){return this.styles[e]}addCellStyle(e){let t=this._getXfId(e);return -1===t&&(t=this.styles.push(e)-1,e.setIndex(t),this.emit("style_added")),t}getDefaultStyle(){return this.getCellStyle(0)}getFont(e){return this.fonts[e]}getFill(e){return this.fills[e]}getAlignment(e){return this.alignments[e]}getBorder(e){return this.borders[e]}getNumberFormat(e){return this.numberFormats[e]}createFont(e){return new tx.Zx().assign(e)}createFill(e){return new tx.de().assign(e)}createAlignment(e){return new tx.v2().assign(e)}createBorder(e){return new tx.OC().assign(e)}createNumberFormat(e){return new tx.y4().assign(e)}createRichText(e){return td.Z.fromJSON(e)}addFont(e){let t=this._getFontId(e);return -1===t&&(t=this.fonts.push(e)-1,e.setIndex(t),this.emit("color_added")),t}addFill(e){let t=this._getFillId(e);return -1===t&&(t=this.fills.push(e)-1,e.setIndex(t),this.emit("color_added")),t}addAlignment(e){let t=this._getAlignmentId(e);return -1===t&&(t=this.alignments.push(e)-1,e.setIndex(t)),t}addBorder(e){let t=this._getBorderId(e);return -1===t&&(t=this.borders.push(e)-1,e.setIndex(t),this.emit("color_added")),t}addNumberFormat(e){let t=this._getNumberFormatId(e);return -1===t&&(t=this.numberFormats.push(e)-1,e.setIndex(t)),t}_getFontId(e){return this._findIndexOf("fonts",e)}_getFillId(e){return this._findIndexOf("fills",e)}_getAlignmentId(e){return this._findIndexOf("alignments",e)}_getBorderId(e){return this._findIndexOf("borders",e)}_getNumberFormatId(e){return this._findIndexOf("numberFormats",e)}_getXfId(e){return this._findIndexOf("styles",e)}_findIndexOf(e,t){let i=this[e];for(let e=0,n=i.length;e<n;e++)if(i[e].equals(t))return e;return -1}createStyle(e){let t=new this._cellStyleCls;return t._refCount=0,t.fontId=e[1],t.fillId=e[2],t.alignmentId=e[3],t.borderId=e[4],t.nfId=e[5],t.quotePrefix=e[6]>0,t}init(e){e.fonts.forEach((e,t)=>{let i=this.createFont(e);i.setIndex(t+1),this.fonts.push(i)}),e.fills.forEach((e,t)=>{let i=this.createFill(e);i.setIndex(t+1),this.fills.push(i)}),e.alignments.forEach((e,t)=>{let i=this.createAlignment(e);i.setIndex(t+1),this.alignments.push(i)}),e.borders.forEach((e,t)=>{let i=this.createBorder(e);i.setIndex(t+1),this.borders.push(i)}),e.numberFormats.forEach((e,t)=>{let i=this.createNumberFormat(e);i.setIndex(t+1),this.numberFormats.push(i)}),e.styles.forEach(e=>{let t=this.createStyle(e),i=this.styles.push(t)-1;t.setIndex(i)})}getParts(e){let t={styles:[],fonts:[],fills:[],alignments:[],borders:[],numberFormats:[]};function i(e){return Array(e.length).fill(!1)}let n=i(this.fonts),o=i(this.fills),r=i(this.alignments),a=i(this.borders),s=i(this.numberFormats);e.forEach(e=>{let i=this.getCellStyle(e);t.styles.push([e,i.toJSON()]),n[i.fontId]=!0,o[i.fillId]=!0,r[i.alignmentId]=!0,a[i.borderId]=!0,s[i.nfId]=!0});let l=this;function c(e,t){return e[0]=!1,e.reduce((e,i,n)=>(i&&e.push([n,t.call(l,n)]),e),[])}return t.fonts=c(n,this.getFont),t.fills=c(o,this.getFill),t.alignments=c(r,this.getAlignment),t.borders=c(a,this.getBorder),t.numberFormats=c(s,this.getNumberFormat),t}addParts(e){let t=new Map;e.fonts.forEach(e=>{let[i,n]=e;t.set(i,this.addFont(this.createFont(n)))});let i=new Map;e.fills.forEach(e=>{let[t,n]=e;i.set(t,this.addFill(this.createFill(n)))});let n=new Map;e.alignments.forEach(e=>{let[t,i]=e;n.set(t,this.addAlignment(this.createAlignment(i)))});let o=new Map;e.borders.forEach(e=>{let[t,i]=e;o.set(t,this.addBorder(this.createBorder(i)))});let r=new Map;e.numberFormats.forEach(e=>{let[t,i]=e;r.set(t,this.addNumberFormat(this.createNumberFormat(i)))});let a=new Map;return e.styles.forEach(e=>{let[s,l]=e,c=this.createStyle(l);c.fontId>0&&(c.fontId=t.get(c.fontId)||0),c.fillId>0&&(c.fillId=i.get(c.fillId)||0),c.alignmentId>0&&(c.alignmentId=n.get(c.alignmentId)||0),c.borderId>0&&(c.borderId=o.get(c.borderId)||0),c.nfId>0&&(c.nfId=r.get(c.nfId)||0),a.set(s,this.addCellStyle(c))}),a}transform(e){let t=this._checkExtendable(e);return t.every(e=>e)?(this._extend(e),null):this._remap(e,t)}_checkExtendable(e){let t=np.attrs,i=[this.styles.every((t,i)=>t.equals(e.styles[i]))];for(let n of t){let t=this.getStyle(n),o=e.getStyle(n);i.push(t.every((e,t)=>e.equals(o[t])))}return i}_extend(e){for(let t of np.attrs){let i=this.getStyle(t),n=e.getStyle(t);i.push(...n.slice(i.length))}e.styles.slice(this.styles.length).forEach(e=>{let t=this.createStyle(e.toJSON()),i=this.styles.push(t)-1;t.setIndex(i),this.emit("style_added")})}_remap(e,t){let i=np.attrs,n=t.slice(1),o={fonts:"fontId",fills:"fillId",alignments:"alignmentId",borders:"borderId",numberFormats:"nfId"},r=e.styles;return i.forEach((t,i)=>{let a=this.getStyle(t),s=e.getStyle(t);if(n[i])return void a.push(...s.slice(a.length));let l=o[t],c=this._remapStyle(t,s);for(let e of r)e[l]=c[e[l]]||0}),r.map(e=>this.addCellStyle(this.createStyle(e.toJSON())))}_remapStyle(e,t){switch(e){case"fonts":return t.map(e=>this.addFont(e));case"fills":return t.map(e=>this.addFill(e));case"alignments":return t.map(e=>this.addAlignment(e));case"borders":return t.map(e=>this.addBorder(e));case"numberFormats":return t.map(e=>this.addNumberFormat(e))}throw Error("unexpected style key")}collectColor(e){return this.fonts.forEach(t=>{t.color&&e.add(t.color.toLowerCase())}),this.fills.forEach(t=>{t.bg&&e.add(t.bg.toLowerCase())}),this.borders.forEach(t=>{let i=t.b;if(i)for(let t of i)t&&e.add(t.replace("#","").toLowerCase())}),e}getStateJSON(e){let t={styles:[],fonts:[],fills:[],alignments:[],borders:[],numberFormats:[]};for(let[i,n]of Object.entries(e)){let e="styles"===i?this.styles:this.getStyle(i);for(let o=n;o<e.length;o++)t[i].push(e[o].toJSON())}return t}toJSON(){function e(e){let t=Array(e.length-1);for(let i=1;i<e.length;i++)t[i-1]=e[i].toJSON();return t}return{styles:e(this.styles),fonts:e(this.fonts).map(e=>(0,iD.compactFontObject)(e)),fills:e(this.fills),borders:e(this.borders),alignments:e(this.alignments).map(e=>(0,iD.compactAlignmentObject)(e)),numberFormats:e(this.numberFormats)}}}var nf=((g={})[g.NONE=0]="NONE",g[g.EDITOR=1]="EDITOR",g[g.WORKBOOK=2]="WORKBOOK",g[g.FILTER=4]="FILTER",g[g.DEFINE=16]="DEFINE",g[g.IMAGE=32]="IMAGE",g[g.CHART=64]="CHART",g[g.RULE=128]="RULE",g[g.VIEWPORT=256]="VIEWPORT",g[g.SEARCH=512]="SEARCH",g[g.COMMENT=1024]="COMMENT",g[g.ALL=2047]="ALL",g);class ng{constructor(e,t){this.name=e,this.shId=t,this.deps=[]}static createId(e,t){return`${t},${e}`}}class nm{constructor(e){this.blocks={},this.itemCollection={},this.workbook=e}getFormulaRange(e){let t=e.name,i=this.getIdByRange(e);return this._getFormulaRange(t,i)}getIdByRange(e){let{name:t,shName:i}=e,n=i&&this.workbook.getIdByName(i);if(void 0===n)return this.workbook.getNameManager().getWorkbookScope();let o=ng.createId(t,n);return void 0===this.itemCollection[o]?this.workbook.getNameManager().getWorkbookScope():n}_getFormulaRange(e,t){return this.blocks[t]&&this.blocks[t][e]}addFormulaRange(e){let t=e._range.name,i=this.getIdByRange(e._range);void 0===this.blocks[i]&&(this.blocks[i]={}),this.blocks[i][t]=e}matchFormulaRanges(e,t,i){let n=this._getCoordDeps(e,t,i);this._addIndirectDeps(n);let o=[];for(let e=0;e<n.length;e++){let{name:t,shId:i}=n[e],r=this._getFormulaRange(t,i);void 0!==r&&o.push(r)}return o}_getCoordDeps(e,t,i){let n=[];return this.forAllRange((o,r)=>{if(o.includes(e,t)&&o.shName===i)return n.push(r),!1}),n}_getNameDeps(e,t){let i=[];return this.forAllRange((n,o)=>{if(n.name===e&&this.getIdByRange(n)===t)return i.push(o),!1}),i}_addIndirectDeps(e){let t=new Set;for(let i=0;i<e.length;i++){let{name:n,shId:o}=e[i];t.add(e[i]);let r=this._getNameDeps(n,o);for(let i=0;i<r.length;i++)t.has(r[i])||e.push(r[i])}}getNameDependencies(e,t){e=e.toLowerCase();let i=this._getNameDeps(e,t);this._addIndirectDeps(i);let n=[],o=[],r=this._getFormulaRange(e,t);void 0!==r&&(ec(n,r.getRegisteredItems()),ec(o,r.getRegisteredConds()));for(let e=0;e<i.length;e++){let{name:t,shId:r}=i[e],a=this._getFormulaRange(t,r);void 0!==a&&(ec(n,a.getRegisteredItems()),ec(o,a.getRegisteredConds()))}return{deps:es(n),conds:es(o)}}getRefItemsToRow(e,t){return this._getRefItemsToRowCol("row",e,t)}getRefItemsToColumn(e,t){return this._getRefItemsToRowCol("col",e,t)}_getRefItemsToRowCol(e,t,i){let n=[],o=`isBetween${(0,t_.ct)(e)}`;this.forAllRange((e,r)=>{if(e[o](t,i))return n.push(r),!1});let r=[];this._addIndirectDeps(n);for(let e=0;e<n.length;e++){let{name:t,shId:i}=n[e],o=this._getFormulaRange(t,i);void 0!==o&&r.push(o)}return es(r)}getAllFormulaRanges(){let e=[];for(let t in this.blocks)for(let i in this.blocks[t]){let n=this.blocks[t][i];void 0!==n&&e.push(n)}return es(e)}update(e,t,i){e=e.toLowerCase();let n=ng.createId(e,i),o=X(t);void 0===this.itemCollection[n]&&(this.itemCollection[n]=new ng(e,i)),this.itemCollection[n].deps=o}remove(e,t){e=e.toLowerCase();let i=ng.createId(e,t);void 0!==this.itemCollection[i]&&delete this.itemCollection[i]}forAllRange(e){for(let t in this.itemCollection)if(this.itemCollection[t]){let i=this.itemCollection[t];for(let t=0,n=i.deps.length;t<n&&!1!==e(i.deps[t],i);t++);}}resolveRange(e){let t=e.name,i=this.getIdByRange(e),n=this._getNameDeps(t,i);this._addIndirectDeps(n);let o=[],r=this.itemCollection[ng.createId(t,i)];void 0!==r&&ec(o,r.deps);for(let e=0;e<n.length;e++)ec(o,n[e].deps);return o}}class nv{constructor(e){this.variables={},this.container=new nm(e)}init(e){(0,tl._l)(e,(e,t)=>{for(let i in e)e[i]&&this.set(i,e[i],t)})}getContainer(){return this.container}getWorkbookScope(){return"global"}getVariable(e,t){let i=this.variables[t];return i?.[e.toLowerCase()]}setVariable(e,t,i){if(void 0===this.variables[i]){if(void 0===t)return;this.variables[i]={}}let n=e.toLowerCase(),o=this.variables[i][n];return void 0===t?delete this.variables[i][n]:this.variables[i][n]={name:e,value:t},o}get(e,t){t=t||this.getWorkbookScope();let i=this.getVariable(e,t);return i?.value}set(e,t,i){i=i||this.getWorkbookScope(),this.container.update(e,t,i);let n=this.setVariable(e,t,i);return n&&n.value}remove(e,t){t=t||this.getWorkbookScope(),this.container.remove(e,t);let i=this.setVariable(e,void 0,t);return i&&i.value}list(){let e=[];return this.each((t,i)=>{let{name:n,value:o}=t;e.push({name:n,value:o,scope:i})}),e}each(e){for(let t in this.variables)if((0,tl.Fs)(this.variables,t)){let i=this.variables[t];for(let n in i)if(void 0!==i[n]&&!1===e(i[n],t))return}}toJSON(){let e={};return(0,tl._l)(this.variables,(t,i)=>{for(let n in e[i]={},t)if((0,tl.Fs)(t,n)){let o=t[n];e[i][o.name]=o.value}}),e}getStateJSON(){return{workbookScope:this.getWorkbookScope(),list:this.list()}}}let nb=class{constructor(){this.buckets={},this.reverseMap=new WeakMap}getByName(e){return this.buckets[e]||[]}addItem(e,t){Array.isArray(this.buckets[e])||(this.buckets[e]=[]),this.buckets[e].push(t),this.reverseMap.set(t,e)}removeItem(e){let t=this.reverseMap.get(e),i=this.index(t,e);-1!==i&&this.buckets[t].splice(i,1)}index(e,t){let i=this.buckets[e];return i?i.indexOf(t):-1}removeBucket(e){this.buckets[e]&&delete this.buckets[e]}};class ny{constructor(){this.contextPool=new WeakMap}getBucket(e){return this.contextPool.get(e)}getOrCreateBucket(e){let t=this.getBucket(e);return t||(t=Object.create(null),this.contextPool.set(e,t)),t}add(e,t,i){let n=this.getOrCreateBucket(i);if(!n)return;let o=n[e];void 0===o&&(o=n[e]=[]),o.includes(t)||o.push(t)}once(e,t,i){t.once=!0,this.add(e,t,i)}remove(e,t,i){let n=this.getBucket(i);if(!n||!n[e])return;let o=n[e].indexOf(t);o>-1&&n[e].splice(o,1)}has(e,t){let i=this.getBucket(t);return!!i&&!!i[e]&&i[e].length>0}runWithArgs(e,t,i){if(!e)return;let n=this.getBucket(e);n&&nw(n,e,t,i)}run(e,t){for(var i=arguments.length,n=Array(i>2?i-2:0),o=2;o<i;o++)n[o-2]=arguments[o];this.runWithArgs(e,t,n)}removeContext(e){let t=this.getBucket(e);t&&(0,tl._l)(t,(e,t,i)=>i[t].length=0)}destroy(){}}function nw(e,t,i,n){let o=e[i];if(!o)return;let r=!1;for(let e=0,i=o.length;e<i;e++){let i=o[e];i.apply(t,n),i.once&&(r=!0)}r&&(e[i]=o.filter(e=>!e.once))}class n_ extends ny{constructor(){super(),this.globalBucket=Object.create(null)}getBucket(e){return e?super.getBucket(e):this.globalBucket}getOrCreateBucket(e){return e?super.getOrCreateBucket(e):this.globalBucket}runWithArgs(e,t,i){e&&(super.runWithArgs(e,t,i),nw(this.globalBucket,e,t,i))}destroy(){super.destroy(),this.removeContext(null)}}let nx=class{constructor(e){this.wbController=e}getWorkbook(){return this.wbController.workbook}getNameManager(){return this.getWorkbook().getNameManager()}init(){this.registerHookListener()}registerHookListener(){let e=this,t=this.getWorkbook();t.hooks.add("afterCreateRow",function(t,i){e.afterAlterGrid(this,"row",t,i)}),t.hooks.add("afterCreateCol",function(t,i){e.afterAlterGrid(this,"col",t,i)}),t.hooks.add("afterRemoveRow",function(t,i){e.afterAlterGrid(this,"row",t,-i)}),t.hooks.add("afterRemoveCol",function(t,i){e.afterAlterGrid(this,"col",t,-i)}),t.hooks.add("beforeMoveRow",function(t,i,n){e.beforeMove(this,"row",t,i,n)}),t.hooks.add("beforeMoveCol",function(t,i,n){e.beforeMove(this,"col",t,i,n)})}create(e,t,i){i=i||this.getNameManager().getWorkbookScope(),void 0===this.getNameManager().get(e,i)&&(this.getNameManager().set(e,t,i),this.wbController.emit("afterCreateDefinedName",e,t,i),this._notifyUpdate([[e,i]]))}remove(e,t){t=t||this.getNameManager().getWorkbookScope();let i=this.getNameManager().remove(e,t);return void 0!==i&&(this.wbController.emit("afterRemoveDefinedName",e,i,t),this._notifyUpdate([[e,t]])),i}modify(e,t,i){i=i||this.getNameManager().getWorkbookScope();let n=this.getNameManager().get(e,i);if(void 0===n||!t)return;let o=[],{name:r,value:a}=t;if(e!==r){if(this.getNameManager().get(r,i))return;this.getNameManager().remove(e,i),o.push([e,i])}(o.length>0||n!==a)&&(o.push([r,i]),this.getNameManager().set(r,a,i),this.wbController.emit("afterModifyDefinedName",{name:[e,r],value:[n,a],scope:i}),this._notifyUpdate(o))}afterAlterGrid(e,t,i,n){let o=[],r={delta:n,start:{[t]:i}};this.getNameManager().list().forEach(t=>{let{name:i,value:n,scope:a}=t,s=H.P6.changeFormula(n,r,e.getName());n!==s&&(o.push([i,a]),this.getNameManager().set(i,s,a))}),this._notifyUpdate(o)}collectRemovedInfo(e,t,i){let n=[],o="row"===e?"isBetweenRow":"isBetweenCol";return this.getNameManager().list().forEach(e=>{let r=X(e.value);for(let a=0;a<r.length;a++)if(r[a][o](t,t+i-1)){n.push(e);break}}),n}repair(e){let t=[];for(let i=0;i<e.length;i++){let{name:n,value:o,scope:r}=e[i],a=this.getNameManager().get(n,r);void 0!==a&&a!==o&&(this.getNameManager().set(n,o,r),t.push([n,r]))}this._notifyUpdate(t)}beforeMove(e,t,i,n,o){let r=n&&n.synoDefinedName||{},a=[],s={},l=!1;this.getNameManager().list().forEach(n=>{let{name:o,value:c,scope:d}=n,u=r[d]&&r[d][o],h=void 0===u;h&&(u=H.P6.moveFormula(t,c,i,e.getName())),c!==u&&(a.push([o,d]),this.getNameManager().set(o,u,d),h&&(l=!0,s[d]=s[d]||{},s[d][o]=c))}),l&&(o.synoDefinedName=s),this._notifyUpdate(a)}moveFormulaRange(e,t,i,n){let o=[],r=[];this.getNameManager().list().forEach(n=>{let{name:a,value:s,scope:l}=n,c=H.P6.changeFormulaRange(s,e,t,"",void 0,i);s!==c&&(r.push({name:a,value:s,scope:l}),o.push([a,l]),this.getNameManager().set(a,c,l))}),n.define=r,this._notifyUpdate(o)}removeFormulaRange(e,t){let i=[],n=[];this.getNameManager().list().forEach(t=>{let{name:o,value:r,scope:a}=t,s=H.P6.removeFormulaRange(r,e,"");r!==s&&(n.push({name:o,value:r,scope:a}),i.push([o,a]),this.getNameManager().set(o,s,a))}),t.define=n,this._notifyUpdate(i)}_updateDependencies(e){let t=[],i=[],n=this.getNameManager().getContainer();for(let o=0;o<e.length;o++){let[r,a]=e[o],{deps:s,conds:l}=n.getNameDependencies(r,a);ec(t,s),ec(i,l)}for(let e of(t=es(t),i=es(i),t))this.getWorkbook().getAsyncCalculator().getFormulaDimensioner().setNeedDimension(e);this.wbController.recalcCrossReferences(t,"reset");for(let e=0;e<i.length;e++)i[e].notifyUpdate()}_notifyUpdate(e){e.length>0&&(this._updateDependencies(e),this.wbController.emit("afterUpdateDefinedName"),this.getWorkbook().notifyDataChange(nf.DEFINE))}onRenameSheet(e,t){let i=[],n=this.getNameManager();n.each((o,r)=>{let{value:a,name:s}=o,l=(0,U.ZW)(a,e,t);a!==l&&(n.set(s,l,r),i.push([s,r]))}),this._notifyUpdate(i)}},nS=class{constructor(e){this.wbController=e}getWorkbook(){return this.wbController.workbook}getCommentStore(){return this.getWorkbook().getCommentStore()}_notify(e,t){for(var i=arguments.length,n=Array(i>2?i-2:0),o=2;o<i;o++)n[o-2]=arguments[o];if(e&&e.sheetId){let i=this.getWorkbook().getSheetById(e.sheetId);i&&i.runHooks(t,...n)}}getReplyIndex(e,t){let i=this.getCommentStore().getCommentById(e);return i?i.getReplyIndex(t):-1}fillJSON(e,t){let i=Date.now();return{status:iO.xs.x4,author:e,timestamp:i,id:(0,t_.O1)(),lastModified:i,...t}}clearRangeComment(e,t){let i=[];for(let n of this.getCommentStore().getAllCommentValues())n.sheetId===e&&t.includes(n)&&i.push(n.toJSON());this.clearCommentFromJson(i)}populateComment(e){for(let t of e)t.id=(0,t_.O1)();this.pasteCommentFromJson(e)}createComment(e,t){let i=this.fillJSON(e,t);this.getCommentStore().getCommentById(i.id)||(this.createCommentFromJSON(i),this.wbController.emit("afterCreateComment",i))}createCommentFromJSON(e){this.getCommentStore().createComment(e.author,e);let t=this.getCommentStore().getCommentById(e.id);t&&this._notify(t,"afterCreateComment",e)}replyComment(e,t){let i=this.fillJSON(e,t),n=this.getCommentStore().getCommentById(i.target);n&&(this.replyCommentFromJSON(i),this.wbController.emit("afterReplyComment",{...i,original_author:this.filterCommentAuthors(n)}),this._notify(n,"afterReplyComment",n))}filterCommentAuthors(e){if(!e)return;let t=new Set,i=e.author;return"number"==typeof i&&i>0&&t.add(i),e.replies?.forEach(e=>{"number"==typeof e.author&&e.author>0&&t.add(e.author)}),Array.from(t)}replyCommentFromJSON(e){this.getCommentStore().reply(e.author,e)}reopenComment(e,t,i){let n=this.fillJSON(e,{target:t,authorName:i});this.reopenCommentFromJSON(n),this.wbController.emit("afterReopenComment",n)}reopenCommentFromJSON(e){let t=this.getCommentStore().getCommentById(e.target);t&&(this.getCommentStore().reopen(e.author,e),this._notify(t,"afterReopenComment",t))}resolveComment(e,t,i){let n=this.fillJSON(e,{target:t,authorName:i});this.resolveCommentFromJSON(n),this.wbController.emit("afterResolveComment",n)}resolveCommentFromJSON(e){let t=this.getCommentStore().getCommentById(e.target);t&&(this.getCommentStore().resolve(e.author,e),this._notify(t,"afterResolveComment",t))}editComment(e,t,i,n){let o={author:e,replyId:i,text:n,lastModified:Date.now(),threadId:t};this.changeCommentFromJSON(o),this.wbController.emit("afterEditComment",o)}changeCommentFromJSON(e){let{author:t,replyId:i,text:n,lastModified:o,threadId:r}=e,a=this.getReplyIndex(r,i),s=n?"edit":"remove",l=r===i?"Comment":"Reply",c=`${s}${l}FromJSON`;switch(c){case"editCommentFromJSON":return this[c]({author:t,target:r,text:n,lastModified:o});case"editReplyFromJSON":return this[c]({author:t,target:r,text:n,replyIndex:a,lastModified:o});case"removeCommentFromJSON":return this[c]({author:t,target:r});case"removeReplyFromJSON":return this[c]({author:t,target:r,replyIndex:a})}}editCommentFromJSON(e){this.getCommentStore().getCommentById(e.target)&&this.getCommentStore().editCommentText(e.author,e)}editReplyFromJSON(e){this.getCommentStore().getCommentById(e.target)&&e.replyIndex>=0&&this.getCommentStore().editReplyText(e.author,e)}removeCommentFromJSON(e){let t=this.getCommentStore().getCommentById(e.target);t&&(this.getCommentStore().removeComment(e.author,e),this._notify(t,"afterRemoveComment",t))}removeReplyFromJSON(e){this.getCommentStore().getCommentById(e.target)&&e.replyIndex>=0&&this.getCommentStore().removeReply(e.author,e)}clearCommentFromJson(e){if(0!==e.length){for(let t of e)this.removeCommentFromJSON({author:t.author,target:t.id});this.wbController.emit("afterClearComment",e)}}pasteCommentFromJson(e){if(0!==e.length){for(let t of e)this.createCommentFromJSON(t);this.wbController.emit("afterPasteComment",e)}}};var nC=i(721);function nk(e){let t=e.split(":");if(t.length>2)return null;let i=nA(t[0]);if(null===i)return null;let[n,o,r]=i,a=n,s=o,l=r;if(2===t.length){let e=nA(t[1]);if(null===e||([a,s,l]=e,a!==n))return null}switch(o>s&&([o,s]=[s,o]),r>l&&([r,l]=[l,r]),n){case 0:return new M.lu({row:o,col:r},{row:s,col:l});case 2:return new M.l0(r,l);case 1:return new M.lq(o,s);default:return null}}let nI=/^\$?([A-Z]+)?\$?(\d+)?$/i;function nA(e){let t=nI.exec(e);if(!t)return null;let i=void 0!==t[1]?(0,nC.columnLabelToIndex)(t[1]):-1,n=void 0!==t[2]?(0,nC.rowLabelToIndex)(t[2]):-1,o=0;return -1===n&&-1===i?null:(-1===n?o=2:-1===i&&(o=1),[o,n,i])}function nT(e){return Array.isArray(e)?e:e.toArray()}function nE(e){return{cmd:"compound",actions:e}}function nR(e,t,i){return{cmd:"value",id:e,changes:(0,ts.NP)(t),source:i}}function nD(e,t,i,n){return{cmd:"value",id:e,changes:t,nfRefs:i,nfs:n}}function nO(e,t){return{cmd:"note",id:e,changes:t}}function nM(e,t,i,n){return{cmd:"resize_row",id:e,from:t,to:i,height:n}}function nN(e,t,i,n){return{cmd:"resize_col",id:e,from:t,to:i,width:n}}function nP(e,t,i,n,o){return"row"===t?nM(e,i,n,o):nN(e,i,n,o)}function nL(e,t,i,n,o,r){return{cmd:`insert_${t}`,id:e,index:i,amount:n,refIndex:o,data:r}}function nB(e,t,i,n,o,r){return{cmd:`remove_${t}`,id:e,index:i,amount:n,refIndex:o,data:r}}function nF(e,t,i){return{cmd:t?"merge":"unmerge",id:e,range:Array.isArray(i)?i:i.toArray()}}function nV(e,t){return{cmd:"unmerge_overlaps",id:e,range:t.toArray()}}function nz(e,t,i,n){return{cmd:"format",id:e,changes:t,overwrite:i,source:n}}function nH(e,t,i,n,o){return{cmd:t.toLowerCase(),id:e,changes:i,overwrite:n,source:o}}function nW(e,t,i,n,o,r,a){return{cmd:`${t}_style`,id:e,type:i.toLowerCase(),changes:n,revert:o,cellChanges:r,source:a}}function nY(e,t,i,n,o,r,a,s){return{cmd:"global_style",id:e,type:t.toLowerCase(),value:i,revert:n,rowChanges:r,colChanges:a,cellChanges:o}}function nU(e,t,i,n,o){return{cmd:"populate_autofill_data",id:e,range:t.toArray(),data:iA(i),direction:n,source:o}}function nG(e,t,i,n,o){return{cmd:"paste_autofill_data",id:e,range:t.toArray(),data:iA(i),expandFilter:n,source:o}}function nZ(e,t,i,n,o){return{cmd:"autofill_number_format",id:e,range:t.toArray(),fc:i,direction:n,source:o}}function nj(e,t){return{cmd:"fix_row",id:e,row:t}}function nq(e,t){return{cmd:"fix_col",id:e,col:t}}function nK(e,t,i){return"row"===t?nj(e,i):nq(e,i)}function nX(e,t,i,n,o){return{cmd:`${t?"hide":"show"}_${i}s`,id:e,from:n,to:o}}function nQ(e,t,i){return{cmd:"create_filter",id:e,filterId:t,range:nT(i)}}function n$(e,t,i,n,o){return{cmd:`${i?"enable":"disable"}_filter${n?"_view":""}`,id:e,filterId:t,hiddenInfo:o}}function nJ(e,t,i,n,o,r){return{cmd:`set_filter${i?"_view_condition":""}`,id:e,filterId:t,col:n,condition:o,hiddenInfo:r}}function n0(e,t,i,n,o){return{cmd:`update_filter${i?"_view":""}_range`,id:e,filterId:t,range:n?nT(n):null,conditions:o}}function n1(e,t,i,n,o){return{cmd:"create_filter_view",id:e,filterId:t,range:nT(i),name:n,isPrivate:o}}function n2(e,t,i){return{cmd:"update_filter_view_name",id:e,filterId:t,name:i}}function n3(e,t,i){return{cmd:"expand_filter_range",id:e,range:[t,i,t,i]}}function n4(e,t){return{cmd:"set_active_filter_view",id:e,filterId:t}}function n5(e,t,i){return{cmd:"add_validation_range",id:e,validId:t,range:i.toArray()}}function n6(e,t,i){return{cmd:"create_validation",id:e,validation:t,range:i}}function n8(e,t,i){return{cmd:"remove_validation",id:e,validId:t,range:i}}function n7(e,t){return{cmd:"remove_all_validation",id:e,range:t.toArray()}}function n9(e,t,i){return{cmd:"create_cf",id:e,cf:t,index:i}}function oe(e,t){return{cmd:"remove_cf",id:e,cfId:t}}function ot(e,t,i){return{cmd:"update_cf_ranges",id:e,cfId:t,ranges:i}}function oi(e,t,i,n){return{cmd:"sort",id:e,rowOrder:t,range:nT(i),applyData:n}}function on(e,t,i){return{cmd:"insert_image",id:e,imageId:t,position:i}}function oo(e,t,i){return{cmd:"resize_image",id:e,imageId:t,position:i}}function or(e,t){return{cmd:"remove_image",id:e,imageId:t}}function oa(e,t,i,n){return{cmd:"insert_chart",id:e,chartId:t,position:i,chartObj:n}}function os(e,t){return{cmd:"remove_chart",id:e,chartId:t}}function ol(e,t,i){return{cmd:"resize_chart",id:e,chartId:t,position:i}}function oc(e,t,i){return{cmd:"adjust_chart",id:e,chartId:t,chartObj:i}}function od(e,t,i,n){return{cmd:"set_chart_config",id:e,chartId:t,name:i,args:n}}function ou(e,t,i,n){return{cmd:"modify_drawings_by_insert",id:e,type:t,index:i,amount:n}}function oh(e,t,i,n){return{cmd:"modify_drawings_by_remove",id:e,type:t,index:i,amount:n}}function op(e,t,i,n,o,r){return{cmd:"modify_drawings_by_move",id:e,type:t,start:i,amount1:n,amount2:o,isBackward:r}}function of(e,t,i,n,o,r,a){return{cmd:`move_${t}`,id:e,start:i,amount1:n,amount2:o,isBackward:r,data:a}}function og(e,t,i,n){return{cmd:"move_range",id:e,srcRange:t.toArray(),targetRange:i.toArray(),clearMerge:n}}function om(e,t,i){return{cmd:"clear_range_data",id:e,range:t.toArray(),source:i}}function ov(e,t,i,n){return{cmd:"clear_range_related",id:e,range:t.toArray(),source:n,clearMerge:i}}function ob(e,t,i,n,o,r){return{cmd:"move_formula_range",id:e,srcRange:nT(t),targetSheetId:i,targetRange:nT(n),keepMovingPart:o,applyData:r}}function oy(e,t,i){return{cmd:"remove_formula_range",id:e,srcRange:nT(t),applyData:i}}function ow(e,t){return{cmd:"add_internal_link",id:e,json:t}}function o_(e,t){return{cmd:"update_internal_link",id:e,json:t}}function ox(e,t){return{cmd:"remove_internal_link",id:e,linkId:t}}function oS(e,t,i,n){return{cmd:"group",id:e,type:t,from:i,to:n}}function oC(e,t,i,n){return{cmd:"ungroup",id:e,type:t,from:i,to:n}}function ok(e,t,i,n){return{cmd:"update_group",id:e,type:t,from:i,levels:n}}function oI(e,t,i,n){return{cmd:"set_collapse",id:e,type:t,index:i,collapse:n}}function oA(e,t){return{cmd:"set_worksheet_rtl",id:e,rtl:t}}function oT(e,t){return{cmd:"create_comment_local",author:e,config:t}}function oE(e,t){return{cmd:"reply_comment_local",author:e,config:t}}function oR(e,t,i,n){return{cmd:n?"reopen_comment_local":"resolve_comment_local",author:e,threadId:t,authorName:i}}function oD(e,t,i,n){return{cmd:"edit_comment_local",author:e,threadId:t,replyId:i,text:n}}function oO(e){return{cmd:"create_comment",json:e}}function oM(e){return{cmd:"reply_comment",json:e}}function oN(e){return{cmd:"reopen_comment",json:e}}function oP(e){return{cmd:"resolve_comment",json:e}}function oL(e){return{cmd:"edit_comment",json:e}}function oB(e){return{cmd:"paste_comment",jsonArray:e}}function oF(e){return{cmd:"clear_comment",jsonArray:e}}function oV(e){return{cmd:"update_external_links",entry:e}}function oz(e){return{cmd:"remove_external_links",linkIds:e}}function oH(e,t,i){return{cmd:"create_define",name:e,value:t,scope:i}}function oW(e,t){return{cmd:"remove_define",name:e,scope:t}}function oY(e,t,i){return{cmd:"modify_define",name:e,scope:i,change:t}}function oU(e){return"create_rule"===e.cmd}function oG(e){return"update_rule"===e.cmd}function oZ(e){return"remove_rule"===e.cmd}function oj(e){return{cmd:"create_rule",rule:e}}function oq(e,t){return{cmd:"update_rule",ruleId:e,props:t}}function oK(e){return{cmd:"remove_rule",ruleId:e}}function oX(e){return{cmd:"pivot_compound",actions:e}}function oQ(e,t){return{cmd:"create_pivot_table",table:e,cache:t}}function o$(e){return{cmd:"delete_pivot_table",tableId:e}}function oJ(e,t){return{cmd:"update_pivot_table",table:e,cache:t}}function o0(e,t,i){return{cmd:"move_pivot_table",tableId:e,sheetId:t,coord:i}}function o1(e,t,i){return{cmd:"set_pivot_table_caption",tableId:e,key:t,value:i}}function o2(e,t,i,n,o,r){return{cmd:"move_pivot_axis_field",tableId:e,fieldId:t,axis:i,position:n,coordShift:o,filterUpdate:r}}function o3(e,t,i,n){return{cmd:"insert_pivot_data_field",tableId:e,fieldId:t,position:i,json:n}}function o4(e,t,i){return{cmd:"move_pivot_data_field",tableId:e,dataFieldId:t,position:i}}function o5(e,t){return{cmd:"remove_pivot_data_field",tableId:e,dataFieldId:t}}function o6(e,t,i){return{cmd:"set_pivot_field_attr",tableId:e,fieldId:t,changes:i}}function o8(e,t,i){return{cmd:"set_pivot_data_field_attr",tableId:e,dataFieldId:t,changes:i}}function o7(e,t,i,n){return{cmd:`set_pivot_field_item_${i}`,tableId:e,fieldId:t,changes:n}}function o9(e,t){return{cmd:"group_pivot_field_item",tableId:e,changes:t}}function re(e,t){return{cmd:"ungroup_pivot_field_item",tableId:e,changes:t}}function rt(e,t,i,n){return{cmd:"set_pivot_field_number_group",tableId:e,fieldId:t,changes:i,itemsInfo:n}}function ri(e,t,i,n,o,r){return void 0===o&&(o=!1),{cmd:"set_pivot_field_datetime_group",tableId:e,fieldId:t,changes:i,positions:n,autoFold:o,itemsInfo:r}}function rn(e,t){return{cmd:"worksheet.create",pos:e,titleTpl:t}}function ro(e,t,i,n){return{cmd:"worksheet.create_pivot_table",pos:e,titleTpl:t,cacheJson:i,tableJson:n}}function rr(e,t,i,n){return{cmd:"worksheet.create_with_data",titleTpl:e,content:t,pos:i,tabColor:n}}function ra(e,t,i,n,o){return{cmd:"worksheet.create",id:e,pos:t,title:i,tabColor:n,content:o}}function rs(e,t,i,n){return{cmd:"worksheet.dup",id:e,pos:t,title:i,pivotTableIdMapping:n}}function rl(e,t,i,n,o){return{cmd:"worksheet.dup",id:e,pos:t,title:i,newId:n,pivotTableIdMapping:o}}function rc(e,t,i,n){return{cmd:"worksheet.undelete",id:e,pos:t,info:i,content:n}}function rd(e,t){return{cmd:"worksheet.delete",id:e,includeSnapshotData:t}}function ru(e,t){return{cmd:"worksheet.rename",id:e,title:t}}function rh(e){return{cmd:"worksheet.set_order",order:e}}function rp(e,t){return{cmd:"worksheet.set_hidden",id:e,hidden:t}}function rf(e,t){return{cmd:"worksheet.set_color",id:e,color:t}}var rg=((m={})[m.NOTHING=0]="NOTHING",m[m.WARNING=1]="WARNING",m[m.REJECT=2]="REJECT",m);function rm(e,t){return e.isRangeAllowed(t)}function rv(e,t,i){return rm(e,new M.lq(t,i))}function rb(e,t,i){return rm(e,new M.l0(t,i))}function ry(e,t){let i=nk(t);return i&&rm(e,i)}function rw(e,t,i){return e.isInsertable(t,i)}let r_=class{isGrantable(e,t,i){let n=this.getStore().find(e);return!!n&&n.isGrantable(t,i)}create(e){this.getStore().create(e)&&this.emit("createRule",e)}delete(e){let t=this.getStore().delete(e);t&&this.emit("removeRule",t)}update(e,t){let i=this.getStore().find(e);if(!i)return;let n=i.getProps();this.getStore().update(e,t)&&this.emit("updateRule",i.id,n,t)}isEmpty(){return 0===this.getStore().list().length}getNonPermittedRules(e,t,i){return this.getStore().list().filter(n=>n.isACLMode()&&n.getSheetId()===e&&!n.validateACL(t,i))}getWarningRules(e){return this.getStore().list().filter(t=>!t.isACLMode()&&t.getSheetId()===e)}validateCommand(e,t,i,n){if("compound"===e.cmd)return e.actions&&e.actions.every(e=>this.validateCommand(e,t,i,n));let o=e.id;return!(o&&this.getNonPermittedRules(o,t,i).some(t=>!function(e,t){switch(t.cmd){case"value":case"font":case"fill":case"alignment":case"border":case"format":case"quotePrefix":case"note":var i,n;return i=e,!!Array.isArray(n=t.changes)&&n.every(e=>{let[t,n]=e;return i.isCoordsAllowed(t,n)});case"create_row":return rv(e,t.index,t.index);case"create_col":return rb(e,t.index,t.index);case"remove_row":return rv(e,t.index,t.index+t.amount-1);case"remove_col":return rb(e,t.index,t.index+t.amount-1);case"resize_row":case"hide_rows":case"show_rows":return rv(e,t.from,t.to);case"resize_col":case"hide_cols":case"show_cols":return rb(e,t.from,t.to);case"merge":case"unmerge":case"sort":case"create_filter":return function(e,t){let[i,n,o,r]=t;return rm(e,new M.lu({row:i,col:n},{row:o,col:r}))}(e,t.range);case"enable_filter":case"disable_filter":case"set_filter":var o=e,r=t.hiddenInfo;if(!r)return!1;function a(e){return rv(o,e.from,e.to)}return!(Array.isArray(r.show)&&!r.show.every(a)||Array.isArray(r.hide)&&!r.hide.every(a));case"create_validation":case"remove_validation":return ry(e,t.range);case"create_cf":return t.cf&&Array.isArray(t.cf.ranges)&&t.cf.ranges.every(t=>ry(e,t));case"row_style":return Array.isArray(t.changes)&&t.changes.every(t=>rv(e,t[0],t[0]));case"col_style":return Array.isArray(t.changes)&&t.changes.every(t=>rb(e,t[0],t[0]));case"global_style":case"worksheet.delete":return!1;case"move_row":return rv(e,t.start,t.start+t.amount1-1)&&rw(e,"row",t.start+t.amount1+t.amount2);case"move_col":return rb(e,t.start,t.start+t.amount1-1)&&rw(e,"col",t.start+t.amount1+t.amount2);case"worksheet.rename":case"worksheet.set_hidden":case"worksheet.set_color":return"worksheet"!==e.getType()}return!0}(t,e)))&&(!["update_rule","remove_rule","create_rule"].includes(e.cmd)||2>this.validateRuleCommand(e,{uid:t,gids:i,canOrganize:n}))}validateRuleCommand(e,t){let{uid:i,gids:n,canOrganize:o}=t;if(0xffffffff===i)return 2;if(oU(e))return this.validateRuleAction(e.rule,t);if(!o&&!this.isGrantable(e.ruleId,i,n))return 2;if(oG(e)){let i=this.getStore().find(e.ruleId);return i?this.validateRuleAction({...i.toJSON(),...e.props},t):2}return 0}validateRuleAction(e,t,i){return"worksheet"===e.type?this.checkProtectedWorksheet(e.sheetId,!0,t,i):this.checkProtectRefRange(eb(e.range||"").map(nk),e.sheetId,t,i)}checkProtectRefRange(e,t,i,n){let o=eb(e);return this.checkProtection(e=>{var t;return t=e,o.every(e=>rm(t,e))},t,i,{ruleId:n})}checkProtectedWorksheet(e,t,i,n){return this.checkProtection(e=>!t&&"worksheet"!==e.getType(),e,i,{ruleId:n})}checkProtectedWorksheets(e,t,i,n){return Math.max(...e.map(e=>this.checkProtectedWorksheet(e,t,i,n)))}checkProtectedCoords(e,t,i,n){return this.checkProtection(e=>{var i;return i=e,t.every(e=>{let{row:t,col:n}=e;return i.isCoordsAllowed(t,n)})},e,i,n)}checkProtectedInsertable(e,t,i,n,o){return this.checkProtection(e=>rw(e,t,i),e,n,o)}checkProtection(e,t,i,n){if(void 0===n&&(n={}),this.isEmpty())return 0;let o=n.ruleId?t=>n.ruleId===t.id||e(t):e,{uid:r,gids:a,canOrganize:s}=i;return s||this.getNonPermittedRules(t,r,a).every(o)?+!(n.warning||this.getWarningRules(t).every(o)):2}},rx=class extends r_{constructor(e){super(),this.wbController=e}init(){this.registerHookListeners()}registerHookListeners(){let e=this.wbController.workbook.hooks,t=this;e.add("afterCreateRow",function(e,i,n){t.onInsertRowCol(this.sheetId,"row",e,i,n)}),e.add("afterCreateCol",function(e,i,n){t.onInsertRowCol(this.sheetId,"col",e,i,n)}),e.add("afterRemoveRow",function(e,i){t.onRemoveRowCol(this.sheetId,"row",e,i)}),e.add("afterRemoveCol",function(e,i){t.onRemoveRowCol(this.sheetId,"col",e,i)}),e.add("afterMoveRow",function(e){t.onMoveRowCol(this.sheetId,"row",e)}),e.add("afterMoveCol",function(e){t.onMoveRowCol(this.sheetId,"col",e)})}getStore(){return this.wbController.workbook.getRuleStore()}list(){return this.getStore().toJSON()}emit(e){for(var t=arguments.length,i=Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];this.wbController.emit(e,...i),this.refreshRules()}refreshRules(){this.wbController.workbook.notifyDataChange(nf.RULE)}onInsertRowCol(e,t,i,n,o){this.getStore().onInsertRowCol(e,t,i,n,o),this.refreshRules()}onRemoveRowCol(e,t,i,n){this.getStore().onRemoveRowCol(e,t,i,n),this.refreshRules()}onMoveRowCol(e,t,i){this.getStore().onMoveRowCol(e,t,i),this.refreshRules()}};class rS extends E.EventEmitter{constructor(e){super(),this.workbook=e,this.nameController=new nx(this),this.commentController=new nS(this),this.ruleController=new rx(this)}init(){this.nameController.init(),this.ruleController.init()}createWorksheet(e,t,i,n){let o=this.insertWorksheet(e,t,i,n);return o&&this.workbook.setMaxIndex(this.workbook.getMaxIndex()+1),o}deleteWorksheet(e,t){let i,n,o,r=this.workbook;if(!r.hasSheet(e)||1===r.getSheetCount())return!1;if(!t){i=r.getSheetPos(e);let t=r.getSheetInfo(e);n={title:t.name,tabColor:t.color},o=this.workbook.generateWorksheetContent(e)||void 0}let a=r.removeSheet(e);if(a){let{items:t,conds:r,units:s}=a.getFormulaDepManager().getNotMyOwnItems(a);for(let e of(a.destroy(),this.recalcCrossReferences(t,"renew"),r))e.notifyUpdate();for(let e of s)e.notifyDeleteSheet();this.emit("deleteWorksheet",e,i,n,o),this.workbook.notifyDataChange(nf.WORKBOOK)}return!!a}dupWorksheet(e,t,i,n,o){void 0===o&&(o={});let r=this.workbook.getSheetById(e);if(!r)return null;let a={tabColor:this.workbook.getSheetColor(e),title:i},s={ws:rC(this.workbook.getWorksheetSnapshotSync(r),r.getName()||"",i)};if(!this.createWorksheet(n,t,a,s))return null;let l=this.workbook.getPivotTableManager();for(let[t,{tableId:i,cacheId:r}]of Object.entries(o)){let o=l.getTableById(t);if(!o)continue;let a=o.toJSON(),s=o.getCache().toJSON();a.id=i,a.cacheId=r,a.location.sheetId=n,s.id=r,s.source.sheetId===e&&(s.source.sheetId=n),l.createPivotTable(a,s)}return n}undeleteWorksheet(e,t,i,n){let o=i.title;if(!o)return!1;for(;this.workbook.hasSheetName(o);)o=`${o}_conflict_${Math.floor(Date.now()/1e3)}`;o!==i.title&&(n.ws=rC(n.ws,i.title,o));let r=this.insertWorksheet(e,t,{title:o,tabColor:i.tabColor},n);return r&&(this.emit("undeleteWorksheet",e,t,i,n),this.workbook.notifyDataChange(nf.WORKBOOK)),r}reorderWorksheet(e){if(!Array.isArray(e))return!1;let t=this.workbook.getOrder(),i=this.workbook.setOrder(e);return i&&(this.emit("reorderWorksheet",t,e),this.workbook.notifyDataChange(nf.WORKBOOK)),i}renameWorksheet(e,t){let i=this.workbook.getSheetById(e);if(!(t=(0,i4.xmlStripInvalid)(t))||this.workbook.hasSheetName(t)||!i)return!1;let n=i.getName()||"",o=this.workbook.rename(e,t);return o&&(this.nameController.onRenameSheet(n,t),i.formula.renameFormulaItems(n,t),this.recalcWhenSheetAdded(i),this.emit("renameWorksheet",e,n,t),this.workbook.notifyDataChange(nf.WORKBOOK|nf.RULE)),o}setWorksheetHidden(e,t){let i=this.workbook.setSheetHidden(e,t);return i&&(this.emit("setWorksheetHidden",e,t),this.workbook.notifyDataChange(nf.WORKBOOK)),i}setWorksheetColor(e,t){let i=this.workbook.getSheetColor(e),n=this.workbook.setSheetColor(e,t);return n&&(this.emit("setWorksheetColor",e,i,t),this.workbook.notifyDataChange(nf.WORKBOOK)),n}insertWorksheet(e,t,i,n){let o={},r=null;if(n)try{o=JSON.parse(n.ws),n.rewriteTitle&&rk(o,n.rewriteTitle,i.title),n.style&&(r=JSON.parse(n.style))}catch{return!1}r&&(o=function(e,t){function i(e){e&&e.s&&(e.s=t.get(e.s))}for(let t in e.cells){let n=e.cells[t];if(n)for(let e in n)i(n[e])}return tc(e.rows,i),tc(e.cols,i),e.colSpans&&e.colSpans.forEach(i),i(e.global),e}(o,this.workbook.getStyleManager().addParts(r)));let a={sheetId:e,snapshot:o},s=this.workbook.createSheet(a,t,i);return!!s&&(this.workbook.getPivotTableManager().fillSheetMeta(e),this.recalcWhenSheetAdded(s),this.workbook.notifyDataChange(nf.WORKBOOK),!0)}recalcWhenSheetAdded(e){let t=this.workbook.getNameById(e.sheetId),i=this.workbook.getUnknownRefManager(),n=i.getByName(t);n.length>0&&(i.removeBucket(t),this.recalcCrossReferences(n,"renew"));let o=this.workbook.getUnitUnknownRefManager(),r=o.getByName(t);for(let e of(o.removeBucket(t),r))e.notifyRecalcUnknown()}recalcUnknownRefs(e){let t=[],i=e.getWorkbook(),n=i.getUnknownRefManager();i.forAll((o,r)=>{let a=i.getNameById(r),s=n.getByName(a);for(let i=0;i<s.length;i++){let n=s[i];n.sheet===e&&t.push([n.row,n.col])}});let o=t.length>0;return o&&e.formula.generateChangeDep(t,"renew"),o}recalcCrossReferences(e,t){let i=function(e,t,i,n){let o=-1,r=e.length;for(;++o<r;)i=t(i,e[o],o,e);return i}(e,(e,t)=>{let i=t.sheet.sheetId;return(e[i]||(e[i]=[])).push([t.row,t.col]),e},{});(0,tl._l)(i,(e,i)=>{this.workbook.getSheetById(i).formula.generateChangeDep(e,t)})}updateExternalLinks(e){for(let[t,i]of e)this.workbook.getExternalManager().updateExternal(t,i);this.emit("afterUpdateExternalLinks",e)}removeExternalLinks(e){this.workbook.getExternalManager().removeExternal(e),this.emit("afterRemoveExternalLinks",e)}}function rC(e,t,i){let n=null;try{n=JSON.parse(e),rk(n,t,i)}catch{}return n?JSON.stringify(n):""}function rk(e,t,i){t!==i&&function(e,t){function i(e,i){if(Object.prototype.hasOwnProperty.call(e,i)){let n=e[i];"string"==typeof n&&(e[i]=t(n))}}for(let i in e.cells){let n=e.cells[i];if(!n)return;for(let e in n){let i=n[e];i&&"string"==typeof i.v&&"="===i.v[0]&&(i.v="="+t(i.v.slice(1)))}}for(let t in e.validation)i(e.validation[t],"f1"),i(e.validation[t],"f2");for(let t of(e.cfs.forEach(e=>{i(e,"f1"),i(e,"f2")}),e.drawing))if("chart"===t.type)for(let e of(i(t.chartObj,"displayRange"),t.chartObj.plotArea?.series??[]))i(e,"tx"),i(e,"cat"),i(e,"val")}(e,e=>(0,U.ZW)(e,t,i))}class rI{constructor({ruleId:e,sheetId:t,creator:i,range:n,description:o,acl:r}){this.id=e,this.sheetId=t,this.creator=i,this.description=o,this.acl=r||null,this.initRange(n)}isGrantable(e,t){return!this.isACLMode()||this.validateACL(e,t)}validateACL(e,t){return this.creator===e||null!==this.acl&&(this.acl.uids.includes(e)||this.acl.gids.some(e=>t.includes(e)))}update(e){void 0!==e.acl&&(this.acl=e.acl),void 0!==e.description&&(this.description=e.description),void 0!==e.range&&this.initRange(e.range),void 0!==e.sheetId&&(this.sheetId=e.sheetId)}getSheetId(){return this.sheetId}isACLMode(){return null!==this.acl}_toJSON(e){return{ruleId:this.id,type:this.getType(),sheetId:this.sheetId,creator:this.creator,range:e,acl:this.acl,description:this.description}}getProps(){let e=this.toJSON();return{acl:e.acl,description:e.description||"",range:e.range,sheetId:e.sheetId}}}class rA extends rI{getType(){return"range"}isCoordsAllowed(e,t){return!this.cellRange||!this.cellRange.includes(e,t)}isRangeAllowed(e){if(!this.cellRange)return!0;let[t,i,n,o]=rE(this.cellRange);return!(e.isBetweenRow(t,n)&&e.isBetweenCol(i,o))}isInsertable(e,t){return!(this.cellRange&&this.cellRange.willBeExpanded(e,t))}toJSON(){return this._toJSON(this.cellRange&&this.cellRange.toLabel())}initRange(e){this.cellRange=nk(e)}onInsertRowCol(e,t,i,n){this.cellRange&&(this.cellRange=this.cellRange.insert(e,t,i,n))}onRemoveRowCol(e,t,i){if(!this.cellRange)return!0;let n=this.cellRange.remove(e,t,i);return null!==n&&(this.cellRange=n,!0)}onMoveRowCol(e,t){this.cellRange&&(this.cellRange=this.cellRange.move(e,t))}}class rT extends rI{getType(){return"worksheet"}isCoordsAllowed(e,t){return!!this.excludes?.length&&this.excludes.some(i=>i.includes(e,t))}isRangeAllowed(e){if(!this.excludes?.length)return!1;let[t,i,n,o]=rE(e);return this.excludes.some(e=>e.includes(t,i)&&e.includes(n,o))}isInsertable(e,t){return!!this.excludes?.length&&this.excludes.some(i=>i.isInsertionWithin(e,t))}initRange(e){this.excludes=e.map(e=>nk(e)).filter(e=>e)}toJSON(){return this._toJSON(this.excludes?.map(e=>e.toLabel()))}onInsertRowCol(e,t,i,n){this.excludes=this.excludes?.map(o=>o.insert(e,t,i,n))}onRemoveRowCol(e,t,i){return this.excludes=this.excludes?.reduce((n,o)=>{let r=o.remove(e,t,i);return r&&n.push(r),n},[]),!0}onMoveRowCol(e,t){this.excludes=this.excludes?.map(i=>i.move(e,t))}}function rE(e){let t=-1,i=-1,n=-1,o=-1;return e.constructor===M.lu?(t=e.from.row,i=e.from.col,n=e.to.row,o=e.to.col):e.constructor===M.lq?(t=e.from,i=0,t=e.to,o=Number.MAX_VALUE):e.constructor===M.l0&&(t=0,i=e.from,n=Number.MAX_VALUE,o=e.to),[t,i,n,o]}class rR{constructor(){this.rules=[]}init(e){this.rules=e.map(e=>rR.createRule(e)).filter(e=>!!e)}list(){return this.rules}create(e){if(!e||this.find(e.ruleId))return null;let t=rR.createRule(e);return t&&this.rules.push(t),t}update(e,t){let i=this.find(e);return i?(i.update(t),i):null}find(e){return this.rules.find(t=>t.id===e)}delete(e){let t=this.rules.findIndex(t=>t.id===e);if(-1!==t){let e=this.rules[t];return this.rules.splice(t,1),e}return null}toJSON(){return this.rules.map(e=>e.toJSON())}onInsertRowCol(e,t,i,n,o){for(let r of this.rules)r.getSheetId()===e&&r.onInsertRowCol(t,i,n,o)}onRemoveRowCol(e,t,i,n){this.rules=this.rules.filter(o=>o.getSheetId()!==e||o.onRemoveRowCol(t,i,n))}onMoveRowCol(e,t,i){this.rules.forEach(n=>{n.getSheetId()===e&&n.onMoveRowCol(t,i)})}getStateJSON(e,t){return{rules:this.rules.map(i=>({...i.toJSON(),isGrantable:i.isGrantable(e,t)}))}}static createRule(e){switch(e.type){case"range":return new rA(e);case"worksheet":return new rT(e);default:return null}}}let rD=new WeakMap;class rO{constructor(e,t){this.sheet=e,(0,tl.jW)(this,"sheet",e,{writable:!1}),rD.set(this,{}),this.pluginName=t,this.workbookHooks=new Map,this.addHook("beforeInit",()=>this.init())}init(){this.enablePlugin()}enablePlugin(){}addHook(e,t){let i=rD.get(this)[e]||[];this.sheet.addHook(e,t),i.push(t),rD.get(this)[e]=i}removeHooks(e){ea(rD.get(this)[e]||[],t=>{this.sheet.removeHook(e,t)})}registerWorkbookHook(e,t){this.sheet.getWorkbook().hooks.add(e,t),this.workbookHooks.set(e,t)}_clearHooks(){let e=rD.get(this);for(let[t,i]of(Object.keys(e).forEach(e=>this.removeHooks(e)),e.length=0,this.workbookHooks))this.sheet.getWorkbook().hooks.remove(t,i)}destroy(){this._clearHooks(),Object.keys(this).forEach(e=>{"sheet"!==e&&(this[e]=null)}),delete this.sheet}}class rM extends rO{}let rN=rO,rP=class{constructor(e,t){this.chart=e,this.chartInfo=t,this.unitItem=new eU(this),this.rangeItem=new eY(this),this.bindDeps(this.chartInfo.ensureDisplayRange()),this.dataExpired=!1}destroy(){this.unbindDeps()}fireDataChanged(){this.chart.sheet.notifyPluginChanges(["drawing"]),this.dataExpired=!1}getChartObj(){return this.chartInfo.getChartCfg()}adjust(e){this.chartInfo.ensureDisplayRange()!==e.ensureDisplayRange()&&this.rebindDeps(e.ensureDisplayRange()),this.chartInfo=e,this.fireDataChanged()}setChartConfig(e,t){let i=this.chartInfo.invert(e,t);return this.chartInfo.apply(e,t),"applyDisplayRange"===e&&this.rebindDeps(this.chartInfo.ensureDisplayRange()),this.fireDataChanged(),i}updateDisplayRange(e){this.chartInfo.applyDisplayRange(e),this.rebindDeps(e)}rebindDeps(e){this.unbindDeps(),this.bindDeps(e)}bindDeps(e){let t=this.chartInfo.sheet,i=X(e),n=t.formula.checkCrossRefError(i);if(n)this.chartInfo.sheet.getWorkbook().getUnitUnknownRefManager().addItem(n,this.unitItem);else{let e=t.formula.mapFormulaRange(i);this.unitItem.register(e),this.rangeItem.register(e)}}unbindDeps(){this.chartInfo.sheet.getWorkbook().getUnitUnknownRefManager().removeItem(this.unitItem),this.unitItem.unregister(),this.rangeItem.unregister()}notifyAlterGrid(e,t,i,n,o,r){let a=this.chartInfo.ensureDisplayRange(),s=this.chartInfo.sheet,l=H.P6.changeFormula(a,{delta:n,start:{[e]:i}},t.getName(),s.getName());if(l===a)return!1;if(n<0){this._addToCrossRepairData(r);let e=/#REF!$/;l=J(l).filter(t=>!e.test(t)).join(",")}return this.updateDisplayRange(l),this.setDataExpired(),!0}onDepUpdate(){this.setDataExpired()}afterHiddenChange(e,t,i,n){let o=J(this.chartInfo.ensureDisplayRange()).map(e=>eR.create(e,this.chartInfo.sheet)).filter(eT),r=!1;ea(o,o=>{if(o.sheetInfo?.sheetId===t.sheetId&&o.from[e]<=n&&o.to[e]>=i)return r=!0,!1}),r&&this.setDataExpired()}notifyMove(e,t,i){let n=this.chartInfo.ensureDisplayRange(),o=this.chartInfo.sheet,r=H.P6.moveFormula(e,n,i,t.getName(),o.getName());r!==n&&this.updateDisplayRange(r),this.setDataExpired()}notifyRename(e,t,i){let n=this.chartInfo.ensureDisplayRange(),o=(0,U.ZW)(n,e,t);n!==o&&((0,eI.PY)(i,this.chartInfo.sheet.sheetId,"synoDrawingController",{chartId:this.chart.id,displayRange:o}),this.updateDisplayRange(o),this.setDataExpired())}notifyMoveFormulaRange(e,t,i,n){let o=this.chartInfo.ensureDisplayRange(),r=this.chartInfo.sheet.getName(),a=H.P6.changeFormulaRange(o,e,t,r,void 0,i);o!==a&&(this._addToCrossRepairData(n),this.updateDisplayRange(a),this.setDataExpired())}notifyRemoveFormulaRange(e,t){let i=this.chartInfo.ensureDisplayRange(),n=this.chartInfo.sheet.getName(),o=H.P6.removeFormulaRange(i,e,n);i!==o&&(this._addToCrossRepairData(t),this.updateDisplayRange(o),this.setDataExpired())}notifyRecalcUnknown(){this.rebindDeps(this.chartInfo.ensureDisplayRange()),this.setDataExpired()}notifyDeleteSheet(){this.rebindDeps(this.chartInfo.ensureDisplayRange()),this.setDataExpired()}getSheet(){return this.chartInfo.sheet}_addToCrossRepairData(e){(0,eI.PY)(e,this.chartInfo.sheet.sheetId,"synoDrawingController",{chartId:this.chart.id,displayRange:this.chartInfo.ensureDisplayRange()})}isDrawable(){return!this.dataExpired&&this.chartInfo.isDrawable()}getEchartParameters(e,t){return this.chartInfo.getEchartParameters(e,t)}setDataExpired(){this.dataExpired=!0}updateData(){return!!this.dataExpired&&(this.chartInfo.fillDataByRanges(),this.fireDataChanged(),!0)}getInfo(){return this.chartInfo}};var rL=((v={})[v.Absolute=0]="Absolute",v[v.OneAnchor=1]="OneAnchor",v[v.TwoAnchor=2]="TwoAnchor",v);function rB(e){return"type"in e&&null!=e.type}function rF(e){return 0===e.type}function rV(e){return 1===e.type}function rz(e){return 2===e.type}function rH(e,t){return e.row===t.row&&e.col===t.col&&e.rowOffset===t.rowOffset&&e.colOffset===t.colOffset}function rW(e,t){return e.type===t.type&&(rF(e)&&rF(t)?e.top===t.top&&e.left===t.left&&e.width===t.width&&e.height===t.height:rV(e)&&rV(t)?!!e.from==!!t.from&&rH(e.from,t.from)&&e.width===t.width&&e.height===t.height:!!(rz(e)&&rz(t))&&!!e.from==!!t.from&&rH(e.from,t.from)&&!!e.to==!!t.to&&rH(e.to,t.to))}function rY(e,t){return e.top===t.top&&e.left===t.left&&e.width===t.width&&e.height===t.height}function rU(e,t){return e.top<=t.top&&e.bottom>=t.bottom&&e.left<=t.left&&e.right>=t.right}function rG(e,t){return e.top<t.bottom&&t.top<e.bottom&&e.left<t.right&&t.left<e.right}function rZ(e){let{height:t,width:i}=e;return{height:Math.round(t)||0,width:Math.round(i)||0}}function rj(e){return{row:Math.round(e?.row)||0,col:Math.round(e?.col)||0,rowOffset:Math.round(e?.rowOffset)||0,colOffset:Math.round(e?.colOffset)||0}}function rq(e){return rF(e)?{type:rL.Absolute,top:Math.round(e.top)||0,left:Math.round(e.left)||0,...rZ(e)}:rV(e)?{type:rL.OneAnchor,from:rj(e.from),...rZ(e)}:{type:rL.TwoAnchor,from:rj(e.from),to:rj(e.to)}}class rK{constructor(e,t){this.id=e,null==t.type&&(t.type=rL.Absolute),this.position=rq(t)}destroy(){}getPosition(){return(0,tl.I8)(this.position)}setPosition(e){this.position=rq(e)}}class rX extends rK{constructor(e,t,i){super(e,t),this.path=i.path}getJSON(){return{id:this.id,position:this.getPosition(),path:this.path}}}class rQ extends rK{constructor(e,t,i){super(e,t),this.infoHandler=new rP(this,i.chartInfo),this.sheet=i.sheet}getJSON(){return{id:this.id,position:this.getPosition(),chartInfo:this.infoHandler.getInfo()}}destroy(){this.infoHandler.destroy(),super.destroy()}}var r$=i(92325);let rJ=r$.kL.configList.concat(["displayRange"]);class r0 extends r$.kL{static get configList(){return rJ}getDisplayRange(){return this.getConfig("displayRange")}setDisplayRange(e){return this.setConfig("displayRange",e)}}let r1=Object.assign(Object.create(null),r$.KV.prototype.getConfigMap(),{[r0.configName]:r0});class r2 extends r$.KV{getConfigMap(){return r1}}let{DIRECTION:r3,DEFAULT:r4,CHART_TYPE:r5}=r$.xs,{isDefined:r6}=r$.cQ;function r8(e,t){let i=J(e),n=[];for(let e=0;e<i.length;e++){let o=eR.create(i[e],t);o&&n.push(o)}return n}function r7(e){let t=[];for(let i=0;i<e.length;i++)t.push(e[i].toLabel());return t.join(",")}let r9=class extends r2{constructor(e,t){(function(e,t){let i=t.sheet,n=e.plotArea,o=n&&n.series;if(!o||!Array.isArray(o)||!o.length)return;let r=!1;o.forEach(e=>{e&&(e.cat||e.tx||e.val)&&(e.cat=e.cat?r8(e.cat,i):[],e.tx=e.tx?r8(e.tx,i):[],e.val=e.val?r8(e.val,i):[],r=!0)}),r&&(r6(n.switchRowColumn)||function(e){let t=e.plotArea.series,i,n=[];for(let e=0,o=t.length;e<o;e++){let o=t[e];if(o.val.length>0){if(null!==(i=function(e){if(0===e.length)return null;let t=null,i=e[0];if(i.getWidth()>1)t=r3.ROW;else if(i.getHeight()>1)t=r3.COL;else if(e.length>1){let n=e[1];i.to.row<n.to.row?t=r3.ROW:i.to.col<n.to.col&&(t=r3.COL)}return t}(o.val)))break;n=n.concat(o.val)}}!i&&1<n.length&&(n[0].to.row<n[1].to.row?i=r3.COL:n[0].to.col<n[1].to.col&&(i=r3.ROW)),e.plotArea.switchRowColumn=i!==r4.DATA_DIR}(e),r6(n.useRowHeader)&&r6(n.useColumnHeader)||function(e){let t=e.plotArea.series,i=!1,n=!1;for(let e=0,o=t.length;e<o;e++){let o=t[e];if(0!==o.val.length&&(o.cat.length>0&&(i=!0),o.tx.length>0&&(n=!0),i&&n))break}let o=e.plotArea.switchRowColumn;e.plotArea.useRowHeader=o?n:i,e.plotArea.useColumnHeader=o?i:n}(e),e.displayRange||function(e){let t,i,n,o=[],r=e.plotArea.series,a=e.plotArea.switchRowColumn,s=a?"row":"col",l=a?"col":"row",c=!1,d=!1;if(r.forEach(e=>{if(0===e.val.length)return;let i=e.val;if(e.tx.length>0){let t=e.tx[0];t.sheetInfo?.sheetId===i[0].sheetInfo?.sheetId&&t.to[s]+1===i[0].from[s]?i[0].from[s]-=1:i.unshift(t),c=!0}o.push(i),!t&&e.cat.length>0&&(t=e.cat,o.unshift(t),d=!0)}),0===o.length){e.displayRange="";return}if(d&&c){let e=o[1];if(1===e.length||1<e[0]["col"===s?"getWidth":"getHeight"]())t[0].from[s]-=1;else{let{row:i,col:n}=t[0].from,r=new eR(t[0].sheetInfo,{row:i,col:n},{row:i,col:n});r.from[s]=e[0].from[s],r.to[s]=e[0].from[s],o[0].unshift(r)}}let u="col"===s?"isVertMergeable":"isHoriMergeable",h=1;for(i=1;i<o.length;i++){var p,f;if(p=o[i][0],f=o[h-1][0],!(p.sheet===f.sheet&&p.toSynoRange()[u](f.toSynoRange(),!0))){o[h]=o[i],h+=1;continue}for(n=0;n<o[h-1].length;n++)o[h-1][n].to[l]=o[i][n].to[l]}o.length=h,e.displayRange=o.map(e=>r7(e)).join(",")}(e))})(e,t),super(e,t),this.data=[],this.drawableData=[],this.init()}readOptionCfg(e){this.sheet=e&&e.sheet}init(){this.rectRange=this.checkRectRange(),this.fillDataByRanges()}getDrawableData(){return this.drawableData.map((e,t)=>e.map((e,i)=>this._getDataFromCoord(e,t,i)))}getRawData(e){return e?this.data:this.drawableData}getData(e,t,i){let n=this.getDataCoord(e,t,i);return this._getDataFromCoord(n,e,t)}_getDataFromCoord(e,t,i){let n=this.dataHasCat()&&0===t&&this.ensureChart().getType()!==r5.SCATTER,o=this.dataHasTx()&&0===i;return(0,tl.Kn)(e)?this.getSheetData(e.id,e.row,e.col,n||o):e}getDataCoord(e,t,i){return this._getData(this.getRawData(i),e,t)}getDataRowNumber(e){return this._getDataRowNumber(this.getRawData(e))}getDataColNumber(e){return this._getDataColNumber(this.getRawData(e))}setData(e,t,i){let n=this.getRawData(!0);n[e]||(n[e]=[]),n[e][t]=i}setDataByRange(e,t,i,n){let o,r,a=n.from.row,s=n.from.col,l=this.getSwitchRowColumn();n.forAll((function(n,c){o=l?c-s:n-a,r=l?n-a:c-s,this.setData(t+o,i+r,{row:n,col:c,id:e})}).bind(this))}_completeData(e){let t=0,i;for(e.forEach(function(e){e&&(t=Math.max(t,e.length))}),e[0]||(e[0]=[]),i=0;i<t;i++)(0,tl.Fs)(e[0],i)||(e[0][i]=void 0)}completeData(){this._completeData(this.data)}fillDrawableData(){this.drawableData=this.data}getSheetData(e,t,i,n){let o=this._getSheet(e);if(!o)return"";if(n)return o.renderCache.getCellText(t,i);{let e=o.formula.getCellValue(t,i);return H.dt.error.isError(e)?e.message:e}}ensureDisplayRange(){return this.ensureChart().getDisplayRange()}compute(e){let t=this.getSwitchRowColumn()?"col":"row",i=[],n=this.rectRange?this.sheet.getWorkbook().getSheetById(this.rectRange.id):this.sheet,o={sheetId:n.sheetId,shName:n.getName()};function r(e){Array.isArray(e)||(e=[e]);let n=e[0].from[t],r=e[0].to[t],a=Array(r-n+1).fill(null).map(()=>[]);e.forEach(e=>{for(let i=n;i<=r;i++){let r={from:{row:e.from.row,col:e.from.col},to:{row:e.to.row,col:e.to.col}};r.from[t]=r.to[t]=i,a[i-n].push(new eR(e.sheetInfo||o,r.from,r.to))}}),Array.prototype.push.apply(i,a)}let a=this.rectRange?this.rectRange.blocks:r8(this.ensureDisplayRange(),this.sheet);if(this.rectRange&&this.getSwitchRowColumn())for(let e=0,t=a[0].length;e<t;e++){let t=[];for(let i=0,n=a.length;i<n;i++)t.push(a[i][e]);r(t)}else a.forEach(e=>r(e));let s=this.dataHasTx(),l="row"===t?"col":"row";function c(e){let t="",i="";if(s){let i=e[0];i.from[l]===i.to[l]?(t=i.toLabel(),e.shift()):(t=new eR(i.sheetInfo,i.from,i.from).toLabel(),i.from[l]+=1)}return{tx:t,val:r7(e)}}let d={cat:"",tx:[],val:[]},u=0;this.dataHasCat()&&(d.cat=c(i[0]).val,u+=1);for(let e=i.length;u<e;u++){let{tx:e,val:t}=c(i[u]);d.tx.push(e),d.val.push(t)}this._seriesData=d;let h=super.compute(e);return delete this._seriesData,h}apply(e,t){let i=super.apply(e,t);return this._clearFormatCodeCache(),i}applyDisplayRange(e){this.ensureChart().setDisplayRange(e),this.rectRange=this.checkRectRange(),this.fillDataByRanges()}applySwitchRowColumn(e){super.applySwitchRowColumn(e),this.fillDataByRanges()}invertDisplayRange(){return{args:[this.ensureDisplayRange()]}}fillDataByRanges(){if(this.rectRange)return void this.fillDataByRectRange();let e=0,t,i=this.getSwitchRowColumn();this.data=[];let n=r8(this.ensureDisplayRange(),this.sheet);for(t=0;t<n.length;t++){let o=n[t].toSynoRange();this.setDataByRange(n[t].sheetInfo.sheetId,e,0,o),e+=i?o.getWidth():o.getHeight()}this.completeData(),this.fillDrawableData(),this._clearFormatCodeCache()}fillDataByRectRange(){let e=0,t=0,i,n,o=this.getSwitchRowColumn(),r=this.rectRange.blocks;for(i=0,this.data=[];i<r.length;i++){for(n=0,t=0;n<r[i].length;n++)o?this.setDataByRange(this.rectRange.id,t,e,r[i][n]):this.setDataByRange(this.rectRange.id,e,t,r[i][n]),t+=r[i][n].getWidth();e+=r[i][0].getHeight()}this.fillDrawableData(),this._clearFormatCodeCache()}checkRectRange(){let e,t;if(!this.ensureDisplayRange())return;let i=r8(this.ensureDisplayRange(),this.sheet);if(0===i.length)return!1;let n=i[0].sheetInfo?.sheetId;for(e=1;e<i.length;e++)if(i[e].sheetInfo?.sheetId!==n)return!1;let o=[i[0]],r=[o];for(e=1;e<i.length;e++)i[e].from.row!==i[e-1].from.row||i[e].to.row!==i[e-1].to.row?(o=[i[e]],r.push(o)):o.push(i[e]);let a=r[0].length;if(0!=i.length%a)return!1;for(e=1;e<r.length;e++){if(r[e].length!==a)return!1;for(t=0;t<a;t++)if(r[e][t].from.col!==r[0][t].from.col||r[e][t].to.col!==r[0][t].to.col)return!1}for(e=0;e<r.length;e++)for(t=0;t<r[e].length;t++)r[e][t]=r[e][t].toSynoRange();return{id:n,blocks:r}}_clearFormatCodeCache(){this._fc={}}_retrieveFormatCode(e){if(void 0!==this._fc[e])return this._fc[e];let t=e=>{if(!e)return null;let t=this._getSheet(e.id);if(!t)return null;let i=t.worksheet.getComputedCellStyle(e.row,e.col).getNumberFormat();return i.isDefault()?null:i.fc},i="General";if("x"===e)this._fc.x=this.dataHasCat()?t(this.getDataCoord(0,+!!this.dataHasTx())):i;else if(e.startsWith("y")){let n=this.forEachSeries(function(t,i){let n=t.getAxis2();return n&&"y2"===e||!n&&"y2"!==e?i:null});this._fc[e]=r6(n)?t(this.getDataCoord(n+ +!!this.dataHasCat(),+!!this.dataHasTx())):i}return this._fc[e]||i}getAxisFc(){return{x:this._retrieveFormatCode("x"),y1:this._retrieveFormatCode("y1"),y2:this._retrieveFormatCode("y2")}}dataFormatter(e,t){let i=this.sheet.getWorkbook().getLocale().getSSF(),n=this._retrieveFormatCode(t);return i.render(n,e)}getSourceSeriesCat(){return this._seriesData.cat}getSourceSeriesTx(e){return this._seriesData.tx[e]}getSourceSeriesVal(e){return this._seriesData.val[e]}_getSheet(e){return this.sheet.getWorkbook().getSheetById(e)}getOptionCfg(){return{sheet:this.sheet}}};function ae(e,t,i,n){return{sec:[{start:e,end:e+t-1,amount:t},{start:e+t,end:e+t+i-1,amount:i}],isBackward:n,delta:n?-t:i}}let at=class extends rN{constructor(e){super(e,"synoManualMove")}moveRow(e,t,i,n,o){let r=this.sheet.countRows();if(e+t+i>r&&(i=r-e-t),i<=0)return;let a=ae(e,t,i,n);if(this.checkPivotTableOverlap("row",a))return;o=o||{};let s={};this.sheet.runHooks("beforeMoveRow",a,o,s),this.sheet.getDataModel().moveRow(e,t,i),this.sheet.getHyperlinkModel().moveRowCol("row",a),this.sheet.getWorkbook().getPivotTableManager().onMoveRowCol(this.sheet.sheetId,"row",a),this.sheet.runHooks("afterMoveRow",a,o,s),o.cross&&this.sheet.controller.repairCrossData({crossInfo:o.cross}),this.sheet.notifyAlterGrid()}moveCol(e,t,i,n,o){let r=this.sheet.countCols();if(e+t+i>r&&(i=r-e-t),i<=0)return;let a=ae(e,t,i,n);if(this.checkPivotTableOverlap("col",a))return;o=o||{};let s={};this.sheet.runHooks("beforeMoveCol",a,o,s),this.sheet.getDataModel().moveCol(e,t,i),this.sheet.getHyperlinkModel().moveRowCol("col",a),this.sheet.getWorkbook().getPivotTableManager().onMoveRowCol(this.sheet.sheetId,"col",a),this.sheet.runHooks("afterMoveCol",a,o,s),o.cross&&this.sheet.controller.repairCrossData({crossInfo:o.cross}),this.sheet.notifyAlterGrid()}checkPivotTableOverlap(e,t){let i=this.sheet.getWorkbook().getPivotTableManager().listPivotTableLocations(this.sheet.sheetId),n=this.sheet.countRows(),o=this.sheet.countCols(),r=new eA.GJ(0,0,n-1,o-1);r.from[e]=t.sec[0].start,r.to[e]=t.sec[0].end;let a=new eA.GJ(0,0,n-1,o-1);return a.from[e]=t.sec[1].start,a.to[e]=t.sec[1].end,tY([r],i).partial.length>0||tY([a],i).partial.length>0}};var ai=((b={}).IMAGE="img",b.CHART="chart",b);function an(e){return e instanceof rQ||!!e.infoHandler}function ao(e,t){let i,n,o,r;return rF(e)?{left:n,top:i}=e:{x:n,y:i}=ar(e.from,t),rz(e)?{x:o,y:r}=ar(e.to,t):(o=n+e.width,r=i+e.height),{top:i,left:n,bottom:r,right:o}}function ar(e,t){let{col:i,row:n,colOffset:o,rowOffset:r}=e;return{x:Math.min(as(i,t?.colOffset)+o,as(i+1,t?.colOffset)),y:Math.min(al(n,t?.rowOffset)+r,al(n+1,t?.rowOffset))}}function aa(e,t,i){if(e<0)return 0;let n=t?.[e];return null!=n?n:e*i}function as(e,t){return void 0===t&&(t=[]),aa(e,t,tu.Z.COL_WIDTH)}function al(e,t){return void 0===t&&(t=[]),aa(e,t,tu.Z.ROW_HEIGHT)}let ac=class extends rM{constructor(e){super(e,"synoDrawingController"),this.images=[],this.charts=[]}drawings(){return this.images.concat(this.charts)}getImages(){return this.images}getCharts(){return this.charts}enablePlugin(){this.addHook("afterInit",e=>this.initData(e)),this.addHook("repairCross",e=>this.repairCross(e)),super.enablePlugin()}destroy(){for(let e=0;e<this.images.length;e++)this.images[e].destroy();for(let e=0;e<this.charts.length;e++)this.charts[e].destroy();super.destroy()}initData(e){let t=e.drawing,i=Array.isArray(t)&&t.length>0;return i&&ea(t,e=>{null==e.pos.type&&(e.pos.type=rL.Absolute,e.pos.top-=tu.Z.COL_HEADER_HEIGHT,e.pos.left-=tu.Z.ROW_HEADER_WIDTH),"img"===e.type?this.images.push(this._createImage(e.id,e.pos,e.path||e.id)):"chart"===e.type&&this.charts.push(this._createChart(e.id,e.pos,e.chartObj))}),i}collectColor(e){for(let t of this.charts)t.infoHandler.getInfo().getAllColors().forEach(t=>{e.add(t)});return e}_createImage(e,t,i){return new rX(e,t,{path:i})}insertImage(e,t,i){void 0===i&&(i=!0);let n=this.getImageById(e);n||(n=this._createImage(e,t,e),this.images.push(n),i&&this.sheet.runHooks("afterInsertImage",e,t),this.sheet.notifyPluginChanges(["drawing"]))}removeImage(e,t){void 0===t&&(t=!0);let i=this.images.findIndex(t=>t.id===e);if(i<0)return;let n=this.images[i],o=n.getPosition();n.destroy(),this.images.splice(i,1),t&&this.sheet.runHooks("afterRemoveImage",e,o),this.sheet.notifyPluginChanges(["drawing"])}resizeImage(e,t){let i=this.getImageById(e);if(!i)return;let n=i.getPosition();i.setPosition(t),this.sheet.runHooks("afterResizeImage",e,n,i.getPosition()),this.sheet.notifyPluginChanges(["drawing"])}_createChart(e,t,i){return new rQ(e,t,{chartInfo:this.convertChartInfo(i),sheet:this.sheet})}insertChart(e,t,i,n){void 0===n&&(n=!0);let o=this.getChartById(e);o||(o=this._createChart(e,t,i),this.charts.push(o),n&&(this.sheet.runHooks("afterInsertChart",e,t,o.infoHandler.getChartObj()),this.sheet.getWorkbook().getNotifier()?.onColorAdded()),this.sheet.notifyPluginChanges(["drawing"]))}removeChart(e,t){void 0===t&&(t=!0);let i=this.charts.findIndex(t=>t.id===e);if(i<0)return;let n=this.charts[i],o=n.getPosition(),r=n.infoHandler.getChartObj();n.destroy(),this.charts.splice(i,1),t&&this.sheet.runHooks("afterRemoveChart",e,o,r),this.sheet.notifyPluginChanges(["drawing"])}resizeChart(e,t){let i=this.getChartById(e);if(!i)return;let n=i.getPosition();i.setPosition(t),this.sheet.runHooks("afterResizeChart",e,n,i.getPosition()),this.sheet.notifyPluginChanges(["drawing"])}adjustChart(e,t){let i=this.getChartById(e);if(!i)return;let n=this.convertChartInfo(t),o=i.infoHandler.getChartObj();i.infoHandler.adjust(n),this.sheet.runHooks("afterAdjustChart",e,o,t),this.sheet.notifyPluginChanges(["drawing"])}setChartConfig(e,t,i){let n=this.getChartById(e);if(!n)return;let o=n.infoHandler.setChartConfig(t,i);this.sheet.runHooks("afterSetChartConfig",e,t,i,o),this.sheet.notifyPluginChanges(["drawing"]),this.sheet.getWorkbook().getNotifier()?.onColorAdded()}getImageById(e){return this._getDrawingById(this.images,e)}getChartById(e){return this._getDrawingById(this.charts,e)}_getDrawingById(e,t){let i=null;return ea(e,function(e){if(e.id===t)return i=e,!1}),i}repairCross(e){let t=e[this.pluginName];t&&ea(t,e=>{let t=this.getChartById(e.chartId);t&&e.displayRange&&t.infoHandler.updateDisplayRange(e.displayRange)})}convertChartInfo(e){return new r9(e,{sheet:this.sheet})}modifyDrawingsByInsertRowCol(e,t,i){this.drawings().forEach((n,o)=>{if(!rF(n.position)){let o=n.getPosition();this._changePositionByInsertRowCol(o,e,t,i),an(n)?this.resizeChart(n.id,o):this.resizeImage(n.id,o)}})}modifyDrawingsByRemoveRowCol(e,t,i){let n={start:t,end:t+i-1},o=[];this.drawings().forEach((r,a)=>{if(!rF(r.position))if(rz(r.position)&&this.sectionContainImage(e,n,r.position))o.push([an(r),r.id]);else{let n=r.getPosition();this._changePositionByRemoveRowCol(n,e,t,i),an(r)?this.resizeChart(r.id,n):this.resizeImage(r.id,n)}}),o.forEach(e=>{let[t,i]=e;return t?this.removeChart(i):this.removeImage(i)})}modifyDrawingsByMoveRowCol(e,t,i,n,o){let r="row"===e?this.sheet.countRows():this.sheet.countCols();if(t+i+n>r&&(n=r-t-i),n<0)return;let a=ae(t,i,n,o),s={start:a.sec[0].start,end:a.sec[1].end};this.drawings().forEach((t,i)=>{if(rF(t.position)||!this.sectionIntersectImage(e,s,t.position))return;let n=t.getPosition();if(this.sectionContainImage(e,a.sec[0],n))this._changePositionByInsertRowCol(n,e,a.sec[0].start,a.sec[1].amount);else if(this.sectionContainImage(e,a.sec[1],n))this._changePositionByRemoveRowCol(n,e,a.sec[0].start,a.sec[0].amount);else{let t=a.sec[+!!a.isBackward].amount,i=a.sec[+!!a.isBackward].start,o=a.isBackward?a.sec[0].start:a.sec[0].start+a.sec[1].amount;this._changePositionByRemoveRowCol(n,e,i,t),this._changePositionByInsertRowCol(n,e,o,t)}an(t)?this.resizeChart(t.id,n):this.resizeImage(t.id,n)})}_changePositionByInsertRowCol(e,t,i,n){!rF(e)&&e.from[t]>=i&&(e.from[t]+=n),rz(e)&&(e.to[t]>i||e.to[t]===i&&e.to[`${t}Offset`]>0)&&(e.to[t]+=n)}_changePositionByRemoveRowCol(e,t,i,n){let o=e=>{e[t]>=i+n?e[t]-=n:e[t]>=i&&(e[t]=i,e[`${t}Offset`]=0)};rF(e)||o(e.from),rz(e)&&o(e.to)}sectionContainImage(e,t,i){return rU(this.sectionToBBox(e,t.start,t.end),ao(i))}sectionIntersectImage(e,t,i){return rG(this.sectionToBBox(e,t.start,t.end),ao(i))}sectionToBBox(e,t,i){return"row"===e?{top:t*this.sheet.worksheet.getDefaultRowHeight(),left:Number.NEGATIVE_INFINITY,bottom:(i+1)*this.sheet.worksheet.getDefaultRowHeight(),right:Number.POSITIVE_INFINITY}:{top:Number.NEGATIVE_INFINITY,left:t*this.sheet.worksheet.getDefaultColWidth(),bottom:Number.POSITIVE_INFINITY,right:(i+1)*this.sheet.worksheet.getDefaultColWidth()}}};class ad{constructor(e){this.workbook=e}getIndex(e){let t={gcVer:e.gcVer,maxIndex:this.workbook.getMaxIndex(),order:this.workbook.getOrder(),schemaVersion:tu.Z.SCHEMA_VERSION,sheets:{},ver:e.ver};return this.workbook.getMaxPivotTableIndex()&&(t.maxPivotIndex=this.workbook.getMaxPivotTableIndex()),this.workbook.forAll((e,i)=>{let n=t.sheets[i]={deleted:!1,title:e.name};e.color&&(n.tabColor=e.color),e.hidden&&(n.hidden=e.hidden)}),t}*getWorksheetGenerator(e){let t=[],i=JSON.stringify(this.getWorksheet(e));yield i.slice(0,-1),yield',"cells":',yield*this.getCellGenerator(e.worksheet,t),yield',"notes":',yield JSON.stringify(t),yield"}"}getStyle(){return this.workbook.getStyleManager().toJSON()}getDefine(){return this.workbook.getNameManager().toJSON()}getComment(){return this.workbook.getCommentStore().toJSON()}getProtection(){return this.workbook.getRuleStore().toJSON()}getExternalLinks(){return this.workbook.getExternalManager().listLinkIds().length>0?this.workbook.getExternalManager().toJSON():null}getPivotCaches(){return this.workbook.getPivotTableManager().serializeCaches()}getPivotTables(){return this.workbook.getPivotTableManager().serializeTables()}getFileList(){let e=new Set;this.workbook.forAll(t=>{let i=this.getDrawings(t.sheet);for(let t=0;t<i.length;t++)e.add(i[t].id)});let t=[];return e.forEach(e=>t.push(e)),t}getWorksheet(e){let t=e.getDataModel(),i=e.getPlugin("synoFreezeBar"),n={cfs:this.getCfs(e),colCount:e.countCols(),rowCount:e.countRows(),rows:{},cols:{},colSpans:function(e,t,i){0===(i??={}).s&&(i=(0,to.Z)(i,"s"));let n=[],o=null;for(let r=0;r<t;r++){let t=e[r]?{...e[r]}:{};void 0===t.s?t.s=i.s:0===t.s&&delete t.s,t=function(e){let t={};return e.hidden&&(t.hidden=e.hidden),"number"==typeof e.s&&e.s>=0&&(t.s=e.s),"number"==typeof e.w&&e.w>0&&(t.w=e.w),"number"==typeof e.outlineLevel&&e.outlineLevel>0&&(t.outlineLevel=e.outlineLevel),!0===e.collapse&&(t.collapse=e.collapse),t}(t),o&&tr(t,o)?o.end=r+1:(o={start:r+1,end:r+1,...t},n.push(o))}return o&&tr(o,i)?o.end=16384:t<16384&&i.s&&n.push({start:t+1,end:16384,...i}),n=n.filter(e=>!tr(e,{}))}(t.colInfos,t.getColCount(),t.getGlobalInfo()),global:t.getNormalizedGlobalInfo(),drawing:this.getDrawings(e).concat(this.getCharts(e)),filter:this.getFilter(e),fixedColumnLeft:i.fixedColumnsLeft,fixedRowTop:i.fixedRowsTop,mergeCells:this.getMergeCells(e),validation:this.getValidations(e),hyperlinks:this.getHyperlinks(e)};function o(e,t,i,n){let o=e[t];void 0===o&&(o=e[t]={}),o[i]=n}let r=n.rows;return t.rowInfos.forEach((e,t)=>{e&&(e.hidden&&o(r,t,"hidden",e.hidden),"number"==typeof e.s&&e.s>=0&&o(r,t,"s",e.s),"number"==typeof e.h&&e.h>0&&o(r,t,"h",e.h),"number"==typeof e.outlineLevel&&e.outlineLevel>0&&o(r,t,"outlineLevel",e.outlineLevel),!0===e.collapse&&o(r,t,"collapse",!0))}),e.isRtl()&&(n.rightToLeft=!0),n}*getCellGenerator(e,t){yield"{";let i=0;for(let n=0,o=e.getRowLength();n<o;n++){let o=e.getRow(n);if(!o)continue;let r="",a=0;for(let e=0,s=o.getColLength();e<s;e++){let s=o.getCell(e);if(!s)continue;0===a&&(i>0&&(r+=","),r+=`"${n}":{`);let l={};s.getXfId()>0&&(l.s=s.getXfId()),(0,eI.O2)(s.getValue())||(l.v=s.getValue());let c=s.getNote();c&&t.push({row:n,col:e,text:c}),a>0&&(r+=","),r+=`"${e}":${JSON.stringify(l)}`,a++}a>0&&(r+="}",i++,yield r)}yield"}"}getMergeCells(e){return e.getPlugin("synoMergeCell").serialize()}getCfs(e){return e.getPlugin("synoConditionalFormat").cfs.map(e=>e.serialize())}getDrawings(e){return e.getPlugin("synoDrawingController").getImages().map(e=>({id:e.id,pos:e.getPosition(),type:ai.IMAGE}))}getCharts(e){return e.getPlugin("synoDrawingController").getCharts().map(e=>({id:e.id,pos:e.getPosition(),chartObj:e.infoHandler.getChartObj(),type:ai.CHART}))}getFilter(e){let t=e.getPlugin("synoFilter"),i=t.filter,n=t.filterView,o={};return i&&(o=i.toJSON()),n.length>0&&(o.filterView=n.map(e=>e.toJSON())),o}getValidations(e){let t=e.getPlugin("synoValidation"),i={},n=t.validationMap;return Object.keys(n).forEach(e=>{let t=n[e];i[e]=Object.assign(t.cloneConfig(),{ranges:t.ranges.map(e=>eR.toLabel(e))})}),i}getHyperlinks(e){return e.getHyperlinkModel().toJSON()}}var au=i(33158),ah=i(19175),ap=i(39002),af=i(31076);let ag={number:0,datetime:1,boolean:2,string:3,error:4,missing:5};function am(e,t,i){let n=i5(e),o=i5(t),r=ag[n.type]-ag[o.type];return 0!==r?r:["number","datetime"," boolean"].includes(n.type)?n.value-o.value:null==n.value||null==o.value?0:i?i.getCollator().compare(n.value+"",o.value+""):(n.value+"").localeCompare(o.value+"")}function av(e,t,i){return i?0===am(e,t,i):e.type===t.type&&e.value===t.value}class ab{constructor(e){if(this.maps={number:new Map,datetime:new Map,boolean:new Map,string:new Map,error:new Map,missing:new Map},!e)return;for(let[t,i]of e)this.set(t,i)}clear(){this.maps.number.clear(),this.maps.datetime.clear(),this.maps.boolean.clear(),this.maps.string.clear(),this.maps.error.clear(),this.maps.missing.clear()}delete(e){return this.maps[e.type].delete("string"===e.type?e.value.toLocaleLowerCase():e.value)}get(e){return this.maps[e.type].get("string"===e.type?e.value.toLocaleLowerCase():e.value)}has(e){return this.maps[e.type].has("string"===e.type?e.value.toLocaleLowerCase():e.value)}set(e,t){return this.maps[e.type].set("string"===e.type?e.value.toLocaleLowerCase():e.value,t),this}get size(){return Object.values(this.maps).reduce((e,t)=>e+t.size,0)}get[Symbol.toStringTag](){return"ValueItemMap"}}function ay(e){if(!e.containsString&&!e.containsMixedTypes){if(e.containsNumber)return ne.number;else if(e.containsDate)return ne.datetime}return ne.text}class aw{constructor(e){if(this.id=e.id,this.name=e.name,this.suffix=e.suffix,this.fromData=e.fromData,this.sharedItems=e.sharedItems,this.types=new Set(this.sharedItems.items.map(e=>e.type)),this.sharedItemsIndexMap=new ab(this.sharedItems.items.map((e,t)=>[e,t])),this.groupItemsIndexMap=null,e.formula&&(this.formula=e.formula),e.numFmt&&(this.numFmt=e.numFmt),e.group){let t=[];if(e.group.map)for(let i in e.group.map){let n=e.group.map[i],o=e.group.items.findIndex(e=>av(e,n));if(o<0)continue;let r=i9(i);t[o]??=[],t[o].push(r)}let i=e.group.items.map((e,i)=>({...e,contains:t[i]??[]})),n={...(0,to.Z)(e.group,"items"),items:i};this.group=n}else this.group=null}getId(){return this.id}getName(){return this.name}getSuffix(){return this.suffix}setSuffix(e){this.suffix=e}isFromData(){return this.fromData}isFormulaField(){return!!this.formula}getSharedItem(e){return this.sharedItems.items[e]??null}getSharedItems(){return this.sharedItems.items}getSharedItemFlags(){return(0,to.Z)(this.sharedItems,"items")}getTypes(){return this.types}getType(){return ay(this.sharedItems)}getGroupType(){return this.getGroupSetting()?.type??null}getNumFmt(){return this.numFmt}setNumFmt(e){this.numFmt=e}getGroupSetting(){return this.group}hasGroupSetting(){return!!this.getGroupSetting()}setGroupSetting(e){null===e?this.group=null:this.group=Object.assign({base:null,parent:null,type:"manual",grouping:null,items:[],map:null},this.group,e)}getDatetimeGroupLevel(){let e=this.getGroupSetting();if(!e||"datetime"!==e.type)return null;let t=e.grouping.interval;return"number"==typeof t?nt.days:t}setGroupItems(e){this.group&&(this.group.items=e)}usingGroupItems(){return null!==this.getGroupItems()}getItemSharedIndex(e){return this.sharedItemsIndexMap.get(e)??-1}getGroupItemIndex(e){if(!this.groupItemsIndexMap){let e=this.getGroupItems();if(!e)return -1;this.groupItemsIndexMap=new ab(e.map((e,t)=>[e,t]))}return this.groupItemsIndexMap.get(e)??-1}onGroupItemsChanged(){this.groupItemsIndexMap=null}getItemIndex(e){return this.usingGroupItems()?this.getGroupItemIndex(e):this.getItemSharedIndex(e)}createSharedItem(e){let t=this.sharedItemsIndexMap.get(e)??-1;if(t<0){t=this.sharedItems.items.length,this.sharedItemsIndexMap.set(e,t);let i=this.types.has("number");this.sharedItems.items.push(e),this.types.add(e.type),this.sharedItems.containsInteger??=!1,"number"===e.type&&(this.sharedItems.containsInteger=(!i||this.sharedItems.containsInteger)&&Number.isInteger(e.value)),this.sharedItems.containsInteger&&="datetime"!==e.type&&!this.sharedItems.containsDate,this.sharedItems.containsDate||="datetime"===e.type,this.sharedItems.containsNumber=(this.sharedItems.containsNumber||"number"===e.type)&&!this.sharedItems.containsDate,this.sharedItems.containsNonDate||="datetime"!==e.type&&"missing"!==e.type,this.sharedItems.containsBlank||="missing"===e.type,this.sharedItems.containsString||="string"===e.type||"boolean"===e.type||"error"===e.type,this.sharedItems.containsSemiMixedTypes||="number"!==e.type&&"datetime"!==e.type,this.sharedItems.containsMixedTypes=new Set(Array.from(this.types).filter(e=>"missing"!==e).map(e=>"boolean"===e||"error"===e?"string":e)).size>1,this.sharedItems.longText||="string"===e.type&&e.value.length>=256,this.sharedItems.containsDate&&("datetime"===e.type||"number"===e.type)&&(this.sharedItems.minDate=Math.min(e.value,this.sharedItems.minDate??Number.POSITIVE_INFINITY),this.sharedItems.maxDate=Math.max(e.value,this.sharedItems.maxDate??Number.NEGATIVE_INFINITY)),this.sharedItems.containsDate||"number"!==e.type||(this.sharedItems.minValue=Math.min(e.value,this.sharedItems.minValue??Number.POSITIVE_INFINITY),this.sharedItems.maxValue=Math.max(e.value,this.sharedItems.maxValue??Number.NEGATIVE_INFINITY))}return{type:"shared",value:t}}getGroupItems(){return this.group&&("manual"!==this.group.type||null!==this.group.base)?this.group.items:null}getItemsForPivotField(){return this.getGroupItems()??this.getSharedItems()}toJSON(){let e=this.numFmt,t=this.group&&Object.assign((0,to.Z)(this.group,["items"]),{items:this.group.items.map(e=>i5(e))}),i=this.formula;return{id:this.id,name:this.name,suffix:this.suffix,fromData:this.fromData,sharedItems:this.sharedItems,...e&&{numFmt:e},...t&&{group:t},...i&&{formula:i}}}}var a_=i(21944);function ax(){return{autoStart:!0,autoEnd:!0,start:0,end:0,interval:null,seconds:!1,minutes:!1,hours:!1,days:!1,months:!1,quarters:!1,years:!1}}function aS(e){let t={[nt.years]:!1,[nt.quarters]:!1,[nt.months]:!1,[nt.days]:!1,[nt.hours]:!1,[nt.minutes]:!1,[nt.seconds]:!1};for(let i of e)t[i]=!0;return t}function aC(e){let t=new Set;for(let i of e){let e=i.interval;"string"==typeof e&&t.add(e)}return aS(Array.from(t))}function ak(e,t,i,n,o,r,a){let s=t?.getCache();if(!s)return null;let l=null;try{l=s.getBaseField(i)}catch{}if(!l&&n)try{l=s.getBaseField(n)}catch{}if(!l||l.getType()!==ne.text)return null;let c=s.getField(i),d=(0,tl.I8)(c?.getGroupSetting()?.grouping),u=[l];if("ungroup"===e){if(!c||!d)return null;a=t.getFieldAxisInfo(i),u=s.getChildrenFields(i)}let h=t.getPivotFieldById(l.getId())?.getName()??"",p=n?t.getPivotFieldById(n):t.getPivotFieldById(s.getChildField(i)?.getId()??"")??t.getPivotFieldById(l.getId());if(!s.setManualGroup(i,n??void 0,o,h))return null;let f=t.getPivotFieldById(i),g=(0,tl.I8)(f?.items)??null,m=r?.map(e=>i7(e))??function(e,t,i,n){let o=(e??t)?.getItemValues();if(!o)return[];let r=t?.getGroupSetting()?.grouping,a=t?t.getItemValues().map(i7):[],s=(e,t)=>a.indexOf(e)-a.indexOf(t),l={};for(let[e,t]of n){let n=i7(e),o=i?.[n]??r?.[n]??null,a=t??r?.[n]??null,s=o?i7(o):n,c=a?i7(a):n;(l[s]??=[]).push(c)}let c=new Set;for(let e=0;e<o.length;e++){let t=i7(o[e]);if(t in l)for(let e of l[t].sort(s))c.add(e);else c.add(t)}return Array.from(c.values())}(f,p,d??null,o);t.updatePivotFieldsByCache();let v=t.getPivotFieldById(i);m.length>0&&v?.reorderItems(m),r&&v&&v.updateItemAttrs(r);let b=(0,tl.I8)(v?.items)??null,y=s.getField(i)?.getGroupSetting()?.grouping;if("group"===e){if(!y)throw Error("Field group should exist after grouping");if(u=s.getChildrenFields(i),!c){if(a&&null!==a.axis)t.addAxisField(a.axis,i,a.position);else for(let e of u.map(e=>e.getId()).reverse())if((a=t.getFieldAxisInfo(e))&&null!==a.axis){t.addAxisField(a.axis,i,a.position);break}}}let w=o.map(e=>{let[t]=e,i=i7(t);return[t,d?.[i]??null,y?.[i]??null]});return{childFieldIds:u.reverse().map(e=>e.getId()),changes:w,insertPosition:a,itemsInfo:[g,b]}}function aI(e){return Object.fromEntries(e.map(e=>[i7(e),e]))}function aA(e){let t=new Map;for(let[i,n]of Object.entries(e)){let e=i7(n),o=i9(i),r=t.get(e);r?r.contains.push(o):t.set(e,{...n,contains:[o]})}return Array.from(t.values())}function aT(e,t){return Object.keys(e).every(i=>av(e[i],t[i]))}function aE(e,t){let i=[],n=[],o=e=>{let t=null!==e?(0,iZ.GG)((0,iZ.vB)(e)):null;return i=>{if(null===e||null===t)return"start"in i&&"end"in i&&null===i.start;if("second"in i)return t.getSeconds()===i.second;if("minute"in i)return t.getMinutes()===i.minute;if("hour"in i)return t.getHours()===i.hour;if("day"in i)return t.getMonth()+1===i.month&&t.getDate()===i.day;if("month"in i)return t.getMonth()+1===i.month;else if("quarter"in i)return Math.floor(t.getMonth()/3)+1===i.quarter;else if("year"in i)return t.getFullYear()===i.year;if("start"in i&&"end"in i)if(null===i.start)return i.includeEnd?e<=i.end:e<i.end;else if(null===i.end)return i.includeStart?e>=i.start:e>i.start;else return(i.includeStart?e>=i.start:e>i.start)&&(i.includeEnd?e<=i.end:e<i.end);return!1}},r=t[t.length-1];for(let a=0;a<e.length;a++){let s=o(e[a]),l=s(r)?t.length-1:t.findIndex(s);n[a]=l,(i[l]??=[]).push(a)}return{map:n,contains:i}}function aR(e,t,i,n){void 0===n&&(n=e=>e+"");let o=e.getSharedItemFlags();if(o.containsString||o.containsMixedTypes)return null;let r=e.getSharedItems(),a=o.minValue??(0,a_.Z)(r.map(e=>e.value)),s=o.maxValue??(0,tt.Z)(r.map(e=>e.value)),l=t.autoStart?a:t.start??a,c=t.autoEnd?s:t.end??s,d=t.interval,u=!!o.containsDate||!!o.containsInteger&&!o.containsMixedTypes&&Number.isInteger(l)&&Number.isInteger(c)&&Number.isInteger(d);if(l>=c||d<=0)return null;let h=function(e,t,i,n){let o=[{start:null,end:e}],r=e;for(;r<t;){let e=(0,af.ij)(r+i+(n&&r+i!==t?-1:0));o.push({start:r,end:e,includeStart:!0,includeEnd:n||e===t}),r=(0,af.ij)(r+i)}return o.push({start:r,end:null,includeStart:r>t}),o}(l,c,d,u),p=h.map(e=>i6(null===e.start?`<${n(e.end)}`:null===e.end?`>${n(e.start)}`:`${n(e.start)}-${n(e.end)}`)),{map:f,contains:g}=aE(r.map(e=>e.value),h);return p.forEach((e,t)=>{e.contains=g[t]?.map(e=>r[e])??[]}),aH(p,i),{items:p,map:Object.fromEntries(f.map((e,t)=>{let i=r[t],n=p[e];return[i7(i),i5(n)]}))}}function aD(e,t,i,n){void 0===n&&(n=null);let o=e?.getCache(),r=o?.getField(t);if(!e||!o||!r||r.getType()!==ne.number||r.hasGroupSetting()&&"number"!==r.getGroupType())return null;let a=(0,tl.I8)(r.getGroupSetting()?.grouping??null),s=null===i,l=!1;try{l=s?o.removeGrouping(t):o.setNumberGrouping(t,i)}catch{}if(!l)return null;let c=(0,tl.I8)(e.getPivotFieldById(t)?.items);e.updatePivotFieldsByCache(new Set([t])),s&&e.getPivotFieldById(t)?.sortItems();let d=e.getPivotFieldById(t);d&&n&&(d.updateItemAttrs(n),d.reorderItems(n.map(e=>i7(e))));let u=(0,tl.I8)(e.getPivotFieldById(t)?.items),h=(0,tl.I8)(r.getGroupSetting()?.grouping??null);if(null!==a&&null!==h)for(let e of["autoStart","autoEnd","start","end","interval"])a[e]===h[e]&&(delete a[e],delete h[e]);return{tableId:e.getId(),fieldId:t,oldGrouping:a,newGrouping:h,oldItems:c,newItems:u}}function aO(e,t){return`${e}-group-${t}`}function aM(e,t,i){for(let n of["row","col","page"])for(let o of e[n])if(o.fieldId===t)return o.fieldId=i,!0;return!1}function aN(e,t,i,n){return e[i].splice(n,0,{fieldId:t}),!0}function aP(e,t,i){for(let n of["row","col","page"])for(let o=0;o<e[n].length;o++)if(e[n][o].fieldId===t)return e[n].splice(o,1),i&&i.axis===n&&i.position>o&&i.position--,!0;return!1}function aL(e,t){let i=e.getCache().getGroupFields(t);if(0===i.length)return;let n=aB();for(let t of ni){let o=i.find(e=>e.getDatetimeGroupLevel()===t);if(o){let i=e.getFieldAxisInfo(o.getId());n[t]=i}}return n}function aB(){return Object.fromEntries(ni.map(e=>[e,{axis:null,position:-1}]))}function aF(e,t){let i=e.getCache().getGroupFields(t);if(0===i.length)return;let n=Object.fromEntries(ni.map(e=>[e,null]));for(let t of ni){let o=i.find(e=>e.getDatetimeGroupLevel()===t);if(o){let i=e.getPivotFieldById(o.getId());n[t]=(0,tl.I8)(i?.items)??null}}let o=e.getPivotFieldById(t);return n.raw=o&&!o.usingGroupItems()?(0,tl.I8)(o.items):null,n}function aV(e,t,i,n,o,r){let a;void 0===o&&(o=!1);let s=e?.getCache();try{a=s?.getBaseField(t)}catch{return null}if(!e||!s||!a||a.getType()!==ne.datetime||a.hasGroupSetting()&&"datetime"!==a.getGroupType())return null;let l=a.getId(),c=s.getDatetimeFullGrouping(l),d=aF(e,l),u=e.getPivotFieldById(l)?.getName(!1),h=aL(e,l)??aB(),p=null===i,f=!1;try{f=p?s.removeGrouping(l):s.setDatetimeGrouping(l,i,u)}catch{}if(!f)return null;let g=i?Object.assign(ax(),c,i):null,m=function(e,t,i,n,o){e=(0,tl.I8)(e);let r=ni.find(e=>i?.[e]===!0),a=ni.find(e=>n?.[e]===!0);for(let s of(r?a&&aM(e,t,aO(t,r)):a&&aP(e,t),ni.filter(e=>n?!0==!!i?.[e]&&!1==!!n?.[e]:e!==r)))aP(e,aO(t,s),o.default);let s=ni.filter(e=>!1==!!i?.[e]&&!0==!!n?.[e]);if(o.default){let{axis:i,position:n}=o.default;if(null!==i)for(let o of s)aN(e,aO(t,o),i,n)}else{for(let i of ni.filter(e=>n?.[e]===!0))aP(e,aO(t,i));for(let[i,n]of function(e){let t=Object.entries(e),i={off:0,row:1,col:2,page:3};return t.sort((e,t)=>{let[,n]=e,[,o]=t;return n.axis!==o.axis?i[n.axis??"off"]-i[o.axis??"off"]:n.position-o.position})}((0,to.Z)(o,"default"))){let{axis:o,position:r}=n;null!==o&&aN(e,aO(t,i),o,r)}}return a&&aM(e,aO(t,a),t),e}({row:e.getAxisFields("row"),col:e.getAxisFields("col"),page:e.getAxisFields("page")},l,c,g,n),v=s.getGroupFields(l),b=v.map(e=>e.getId());if(e.updatePivotFieldsByCache(new Set(b)),o)for(let t of b)e.getPivotFieldById(t)?.foldItems();if(p&&e.getPivotFieldById(l)?.sortItems(),e.applyAllAxis(m),r)for(let t of v){if(!t)continue;let i=t.usingGroupItems()?t.getDatetimeGroupLevel():"raw",n=e.getPivotFieldById(t.getId());if(!n||!i)continue;let o=r[i];o&&(n.updateItemAttrs(o),n.reorderItems(o.map(e=>i7(e))))}let y=aL(e,l)??aB(),w=aF(e,l);return{tableId:e.getId(),fieldId:l,oldGrouping:c,newGrouping:g,oldPositions:h,newPositions:y,oldItems:d,newItems:w}}function az(e,t,i){let n=e.getSharedItemFlags();if(n.containsString||n.containsMixedTypes)return null;let o=e=>{let t=(0,iZ.GG)((0,iZ.vB)(e));return`${t.getFullYear()}/${t.getMonth()+1}/${t.getDate()}`},r=t.interval;if("number"==typeof r)return aR(e,{...t,interval:r},i,o);let a=e.getSharedItems(),s=n.minValue??(0,a_.Z)(a.map(e=>e.value)),l=n.maxValue??(0,tt.Z)(a.map(e=>e.value)),c=t.autoStart?s:t.start??s,d=t.autoEnd?l:t.end??l,u=(0,iZ.GG)((0,iZ.vB)(c)),h=(0,iZ.GG)((0,iZ.vB)(d));if(u.getTime()>=h.getTime())return null;let p=[];if("seconds"===r)p=(0,au.Z)(60).map(e=>({second:e}));else if("minutes"===r)p=(0,au.Z)(60).map(e=>({minute:e}));else if("hours"===r)p=(0,au.Z)(24).map(e=>({hour:e}));else if("days"===r)p=(0,au.Z)(366).map(e=>new Date(new Date("1972/1/1").setDate(1+e))).map(e=>({month:e.getMonth()+1,day:e.getDate()}));else if("months"===r)p=(0,au.Z)(12).map(e=>({month:e+1}));else if("quarters"===r)p=(0,au.Z)(4).map(e=>({quarter:e+1}));else if("years"===r){let e=u.getFullYear(),t=h.getFullYear();p=(0,au.Z)(e,t+1).map(e=>({year:e}))}else throw Error(`Unsupported datetime group level: ${r}`);p.unshift({start:null,end:c}),p.push({start:d,end:null});let f=p.map(e=>{if("end"in e&&null===e.start)return i6(`<${o(e.end)}`);if("start"in e&&null===e.end)return i6(`>${o(e.start)}`);if("second"in e)return i6(i.getDatetimeLevelItem(nt.seconds,e.second));if("minute"in e)return i6(i.getDatetimeLevelItem(nt.minutes,e.minute));if("hour"in e)return i6(i.getDatetimeLevelItem(nt.hours,e.hour));else if("day"in e){let t=(new Date(`1904/${e.month}/${e.day}`).getTime()-new Date("1903/12/31").getTime())/864e5;return i6(i.getDatetimeLevelItem(nt.days,t))}else if("month"in e)return i6(i.getDatetimeLevelItem(nt.months,e.month));else if("quarter"in e)return i6(i.getDatetimeLevelItem(nt.quarters,e.quarter));else if("year"in e)return i6(i.getDatetimeLevelItem(nt.years,e.year));throw Error("Invalid group condition")}),{map:g,contains:m}=aE(a.map(e=>e.value),p);return f.forEach((e,t)=>{e.contains=m[t]?.map(e=>a[e])??[]}),aH(f,i),{items:f,map:Object.fromEntries(g.map((e,t)=>{let i=a[t],n=f[e];return[i7(i),i5(n)]}))}}function aH(e,t){let i=e[0];"string"===i.type&&i.value.startsWith("<")&&i.contains.some(e=>{let{type:t}=e;return"missing"===t})&&(i.value=i.contains.length>1?`${i.value} ${t.getText("or")} ${t.getText("default_missing_item_label")}`:t.getText("default_missing_item_label"))}let aW=new iG.Z;function aY(e,t){switch(void 0===t&&(t=""),e.type){case"missing":return t;case"number":return e.value.toString();case"datetime":return aW.render(aU(e),e.value);case"boolean":return e.value.toString().toUpperCase();case"string":case"error":return e.value}}function aU(e){return"datetime"===e.type?Number.isInteger(e.value)?"yyyy/mm/dd":"yyyy/mm/dd hh:mm:ss":"General"}function aG(e,t){return(e?.name??t?.name??"")+(e?.useSuffix?t?.suffix??"":"")}function aZ(e,t){let i=e.group;return i?.base?t.fields.find(e=>e.id===i.base)??null:e}function aj(e,t){let i=t.group?.grouping?t.group.items:t.sharedItems.items;return e.items.map(e=>{let t=i[e.sharedIndex];return{name:e.caption??aY(t,""),valueItem:t,hidden:e.hidden}})}function aq(e,t){let i=new Set(e.map(e=>e.toLocaleLowerCase()));for(let e=0;e<Number.MAX_SAFE_INTEGER;e++){let n=t(e);if(!i.has(n.toLocaleLowerCase()))return n}return null}var aK=((y=aK||{})[y.MERGE_FREEZED=2]="MERGE_FREEZED",y[y.CLEAR_MERGE_DATA=3]="CLEAR_MERGE_DATA",y[y.FREEZE_MERGED=4]="FREEZE_MERGED",y[y.HIDE_ALL_ROW=5]="HIDE_ALL_ROW",y[y.HIDE_ALL_COL=6]="HIDE_ALL_COL",y[y.VERT_MERGE_IN_FILTER=7]="VERT_MERGE_IN_FILTER",y[y.FILTER_VERT_MERGED=8]="FILTER_VERT_MERGED",y[y.REMOVE_ALL_ROW=9]="REMOVE_ALL_ROW",y[y.REMOVE_ALL_COL=10]="REMOVE_ALL_COL",y[y.SORT_MERGED=11]="SORT_MERGED",y[y.MOVE_FIRST_FILTER=12]="MOVE_FIRST_FILTER",y[y.MOVE_MERGE_CELL=13]="MOVE_MERGE_CELL",y[y.MERGE_PARTIAL=14]="MERGE_PARTIAL",y[y.EXCEED_CELL_QUOTA=15]="EXCEED_CELL_QUOTA",y[y.FILTER_AT_LEAST_TWO=16]="FILTER_AT_LEAST_TWO",y[y.MERGE_CROSS_FILTER=17]="MERGE_CROSS_FILTER",y[y.PROTECTION_WARNING=18]="PROTECTION_WARNING",y[y.PROTECTION_REJECT=19]="PROTECTION_REJECT",y[y.PROTECTION_DELETE=20]="PROTECTION_DELETE",y[y.REMOVE_DUP_NO_DATA=21]="REMOVE_DUP_NO_DATA",y[y.REMOVE_DUP_NOT_ALIGNED=22]="REMOVE_DUP_NOT_ALIGNED",y[y.REMOVE_DUP_MULTI_RANGE=23]="REMOVE_DUP_MULTI_RANGE",y[y.REMOVE_DUP_ONE_ROW=24]="REMOVE_DUP_ONE_ROW",y[y.REMOVE_DUP_DONE=25]="REMOVE_DUP_DONE",y[y.REMOVE_DUP_HIDDEN_ROW=26]="REMOVE_DUP_HIDDEN_ROW",y[y.INVALID_CHANGE=27]="INVALID_CHANGE",y[y.PIVOT_TABLE_NO_SHEET=28]="PIVOT_TABLE_NO_SHEET",y[y.PIVOT_TABLE_MISSING_ROW_HEADER=29]="PIVOT_TABLE_MISSING_ROW_HEADER",y[y.PIVOT_TABLE_ROW_NOT_ENOUGH=30]="PIVOT_TABLE_ROW_NOT_ENOUGH",y[y.PIVOT_TABLE_CONTAIN_MERGE_CELL=31]="PIVOT_TABLE_CONTAIN_MERGE_CELL",y[y.PIVOT_TABLE_OVERWRITE_CELL=32]="PIVOT_TABLE_OVERWRITE_CELL",y[y.PIVOT_TABLE_BLOCK_BY_OTHER=33]="PIVOT_TABLE_BLOCK_BY_OTHER",y[y.PIVOT_TABLE_REMOVE_PARTIAL=34]="PIVOT_TABLE_REMOVE_PARTIAL",y[y.PIVOT_TABLE_MOVE_PARTIAL=35]="PIVOT_TABLE_MOVE_PARTIAL",y[y.PIVOT_TABLE_MODIFY_PARTIAL=36]="PIVOT_TABLE_MODIFY_PARTIAL",y[y.PIVOT_TABLE_INSERT_AMONG=37]="PIVOT_TABLE_INSERT_AMONG",y[y.PIVOT_TABLE_GROUP_FAIL=38]="PIVOT_TABLE_GROUP_FAIL",y[y.PIVOT_TABLE_NULL_NAME=39]="PIVOT_TABLE_NULL_NAME",y[y.PIVOT_TABLE_FIELD_NAME_EXIST=40]="PIVOT_TABLE_FIELD_NAME_EXIST",y[y.PIVOT_TABLE_NOT_AN_ITEM=41]="PIVOT_TABLE_NOT_AN_ITEM",y[y.PIVOT_TABLE_RENAME_ITEM=42]="PIVOT_TABLE_RENAME_ITEM",y[y.PIVOT_TABLE_TOO_MANY_FIELD=43]="PIVOT_TABLE_TOO_MANY_FIELD",y[y.PIVOT_TABLE_TOO_MANY_ITEM=44]="PIVOT_TABLE_TOO_MANY_ITEM",y[y.PIVOT_TABLE_TOO_MANY_CELL=45]="PIVOT_TABLE_TOO_MANY_CELL",y[y.PIVOT_TABLE_CONVERT_TOO_MANY_RECORD=46]="PIVOT_TABLE_CONVERT_TOO_MANY_RECORD",y[y.PIVOT_TABLE_CONVERT_TOO_MANY_FIELD=47]="PIVOT_TABLE_CONVERT_TOO_MANY_FIELD",y[y.PIVOT_TABLE_CONVERT_TOO_MANY_ITEM=48]="PIVOT_TABLE_CONVERT_TOO_MANY_ITEM",y[y.PIVOT_TABLE_CONVERT_TOO_MANY_CELL=49]="PIVOT_TABLE_CONVERT_TOO_MANY_CELL",y[y.MOVE_OVERWRITE_CELL=50]="MOVE_OVERWRITE_CELL",y[y.SORT_PARTIAL_MERGED=51]="SORT_PARTIAL_MERGED",y[y.CANNOT_ACTION_ON_MERGE_CELL=52]="CANNOT_ACTION_ON_MERGE_CELL",y);function aX(e,t){if(void 0===t&&(t=[]),e.length<2)throw Error("Not enough rows in data");let i=new Map;for(let e of t){if(!e.isFromData())continue;let t=e.getName().toLocaleLowerCase(),n=i.get(t);n?n.push(e):i.set(t,[e])}let n=[],o=(0,tt.Z)(e.map(e=>e.length))??0,r=e.shift()??[],a=[];for(let e=0;e<o;e++){let t=(r[e]?.value??"").toString();if(""===t)throw Error("Some column names are missing");let o=i.get(t.toLocaleLowerCase())?.shift();o&&(n[e]=o),a[e]=new aw({id:o?.getId()??(0,t_.O1)(),name:t,suffix:"",fromData:!0,sharedItems:{items:[]}})}let s=[];for(let t=0;t<e.length;t++){s[t]=[];for(let i=0;i<o;i++)s[t][i]=a[i].createSharedItem(e[t][i])}for(let e=0;e<o;e++){let t=a[e],i=a[e].getType(),o=n[e];if(o&&o.getType()===i)t.setNumFmt(o.getNumFmt()),t.setGroupSetting(o.getGroupSetting()),t.setSuffix(o.getSuffix());else if(i===ne.datetime){let e=t.getSharedItems().map(e=>e.value).filter(eT),i=e.some(e=>e>=1);e.some(e=>!Number.isInteger(e))?i?t.setNumFmt("yyyy/mm/dd hh:mm:ss"):t.setNumFmt("hh:mm:ss"):t.setNumFmt("yyyy/mm/dd")}}return{fields:a,records:s}}function aQ(e,t,i){let n=e.getSheetById(t);if(!n)return aK.PIVOT_TABLE_NO_SHEET;let[o,r,a,s]=n.getRangeBound(i.from,{row:i.to.row<0?n.countRows():i.to.row,col:i.to.col<0?n.countCols():i.to.col}),l=s-r+1;if(a-o+1<=1||l<=0)return aK.PIVOT_TABLE_ROW_NOT_ENOUGH;if(n.getPlugin("synoMergeCell").getOverlap(new eA.GJ(o,r,a,s)).length>0)return aK.PIVOT_TABLE_CONTAIN_MERGE_CELL;let c=[];for(let e=o;e<=a;e++){let t=[];for(let i=r;i<=s;i++){var d,u;let r=n.formula.getCellValue(e,i);if(e===o&&(0,eI.O2)(r))return aK.PIVOT_TABLE_MISSING_ROW_HEADER;let a=n.getComputedCellStyle(e,i).getNumberFormat().isDateTime();if(Array.isArray(r))throw Error("Should not use base formula plugin");t.push((d=r,(void 0===(u=a)&&(u=!1),(0,af.VZ)(d))?{type:"error",value:d.name}:"number"==typeof d?u?{type:"datetime",value:d}:{type:"number",value:d}:"boolean"==typeof d?{type:"boolean",value:d}:"string"==typeof d?{type:"string",value:d}:{type:"missing",value:null}))}c.push(t)}return c}function a$(e){return`${e.getId()}-group-${(0,t_.O1)()}`}class aJ{constructor(e,t=new na){this.locale=t,this.id=e.id,this.source={},this.fields=[],this.records=[],this.fromJSON(e)}getId(){return this.id}getSource(){return{...this.source}}getFields(){return this.fields}getField(e){return this.fields.find(t=>t.getId()===e)}getRecords(){return this.records}update(e){let t=aQ(e,this.source.sheetId,this.source.range);if(!Array.isArray(t))return;let{fields:i,records:n}=aX(t,this.fields);this.fields=i,this.records=n}updateSource(e){this.source=e}toJSON(){return{id:this.id,source:{...this.source},fields:this.fields.map(e=>e.toJSON()),records:this.records}}fromJSON(e){this.source=e.source,this.fields=e.fields.map(e=>new aw(e)),this.generateMissingGroupMaps(this.fields),this.records=e.records,this.forceRecordsShareItems(this.records,this.fields)}generateMissingGroupMaps(e){let t=t=>{let i=t.getGroupSetting();return i?.base?e.find(e=>e.getId()===i.base)??null:t};for(let i of e){let e=i.getGroupSetting();if(!e||!e.grouping||null!==e.map)continue;let n=t(i);if(n)if("datetime"===e.type){let t=az(n,e.grouping,this.locale);if(!t)continue;e.items=t.items,e.map=t.map}else if("number"===e.type){let t=aR(n,e.grouping,this.locale);if(!t)continue;e.items=t.items,e.map=t.map}else"manual"===e.type&&(e.map=e.grouping)}}forceRecordsShareItems(e,t){t=t.filter(e=>e.isFromData());for(let i=0;i<e.length;i++)for(let n=0;n<t.length;n++){let o=e[i][n]??{type:"missing",value:null};"shared"!==o.type&&(e[i][n]=t[n].createSharedItem(o))}}getBaseField(e){let t=this.getField(e);if(!t)throw Error("Non-exist field");let i=t.getGroupSetting(),n=i?.base?this.getField(i.base):t;if(!n)throw Error("Non-exist base field");return n}getParentField(e){let t=this.getField(e);if(!t)throw Error("Non-exist field");let i=t.getGroupSetting();return i?.parent&&this.getField(i.parent)||null}getChildField(e){let t=this.getGroupFields(e),i=t.findIndex(t=>t.getId()===e);if(i<0)throw Error("Non-exist field");return 0===i?null:t[i-1]}getGroupFields(e){let t=this.getBaseField(e);if(!t)return[];let i=[t],n=this.getField(t.getGroupSetting()?.parent??"");for(;n;)i.push(n),n=this.getField(n.getGroupSetting()?.parent??"");return i}getFieldGroupLevel(e){return this.getGroupFields(e).findIndex(t=>t.getId()===e)}getChildrenFields(e){let t=this.getField(e);if(!t)throw Error("Invalid field id");let i=this.getGroupFields(e);return i.slice(0,i.indexOf(t))}insertParentGroupField(e,t,i,n,o){let r=this.getBaseField(e.getId()),a=this.getParentField(e.getId());t=t??a$(r);let s=o||r.getName(),l=this.getNewFieldName(`${s} - ${this.locale.getText("default_group_name")}`,"manual"===i?1:void 0),c=new aw({id:t,name:l,suffix:"",fromData:!1,sharedItems:{items:[]},group:{base:r.getId(),parent:a?.getId()??null,type:i,grouping:n,items:[],map:null}});return e.setGroupSetting({parent:t,type:i}),this.fields.push(c),c}removeGroupField(e){let t=this.getParentField(e.getId()),i=this.getChildField(e.getId());if(!i)throw Error("Cannot remove base field");i.setGroupSetting({parent:t?.getId()??null});let n=this.fields.indexOf(e);n>=0&&this.fields.splice(n,1)}getNewFieldName(e,t){let i=/\d$/.test(e),n=aq(this.fields.map(e=>e.getName()),n=>{if(void 0===t&&0===n)return e;let o=n+(t??0);return i?`${e}_${o}`:`${e}${o}`});if(!n)throw Error("Cannot find proper field name");return n}getNewGroupName(e,t){void 0===t&&(t=[]);let i=this.getGroupMappings(e),n=aq((0,ap.Z)(i.levelMaps.flat().map(e=>e.value+"").concat(t)),e=>`${this.locale.getText("default_group_name")}${e+1}`);if(!n)throw Error("Cannot find proper group name");return n}getUnnamedGroupName(){return this.locale.getText("unnamed_group_name")}getGroupMappings(e){let t=this.getGroupFields(e);if(0===t.length)throw Error("Invalid field id");let i=t[0];if(null===i.getGroupSetting())return{fields:[i.getId()],levelMaps:[i.getItemsForPivotField()]};let n=i.getSharedItems(),o=n.map(i7),r=[];for(let e=0;e<t.length;e++){let i=t[e],a=i.getGroupSetting()?.map??{},s=[];for(let t=0;t<n.length;t++)s[t]=a[o[t]]??r[e-1]?.[t]??n[t];r.push(s)}return{fields:t.map(e=>e.getId()),levelMaps:r}}getGroupBaseItems(e,t){let i=this.getField(e),n=this.getFieldGroupLevel(e);if(!i||n<0)throw Error("Invalid field id");if(!i.hasGroupSetting())return[t];let o=this.getGroupMappings(e),r=o?.levelMaps[0],a=o?.levelMaps[n],s=[];for(let e=0;e<r.length;e++)av(a[e],t)&&s.push(r[e]);return s}setManualGroup(e,t,i,n){let o,r,a;if(o=this.getField(e))r=this.getChildField(o.getId()),a=this.getBaseField(o.getId());else{if(t&&(r=this.getField(t)),!r||!t)return!1;a=this.getBaseField(t)}if(!r||!a)return!1;let s=r.getGroupSetting()?.grouping??aI(a.getSharedItems());o||(o=this.insertParentGroupField(r,e,"manual",{...s},n));let l=function(e,t,i){let n=(e&&{...e})??{...t};for(let[e,o]of i){let i=i7(e);i in n&&(n[i]=o??t[i])}return n}(o.getGroupSetting()?.grouping,s,i),c=aA(l);return aT(l,s)?(this.removeGroupField(o),a.getGroupSetting()?.parent===null&&a.setGroupSetting(null)):o.setGroupSetting({grouping:l,items:c,map:l}),!0}setNumberGrouping(e,t){let i=this.getField(e);if(!i)return!1;let n=i.getGroupSetting();if(n?"number"!==n.type:i.getType()!==ne.number)return!1;let o=Object.assign({autoStart:!0,autoEnd:!0,start:0,end:0,interval:10},n?.grouping,t),r=aR(i,o,this.locale);return!!r&&(i.setGroupSetting({base:i.getId(),parent:null,type:"number",grouping:o,items:r.items,map:r.map}),i.setSuffix(" - "+this.locale.getText("default_group_name")),!0)}getDatetimeGroupFieldSuffix(e){return` - ${this.locale.getNameOfDatetimeGroupLevel(e)}`}createDatetimeGroupField(e,t,i){let n="number"==typeof t.interval?nt.days:t.interval,o=`${i??e.getName()} - ${this.locale.getNameOfDatetimeGroupLevel(n)}`;return new aw({id:aO(e.getId(),n),name:o,suffix:"",fromData:!1,sharedItems:{items:[]},group:{base:e.getId(),parent:null,type:"datetime",grouping:t,items:[],map:null}})}getDatetimeFullGrouping(e){let t=this.getBaseField(e);if(!t)return null;let i=t.getGroupSetting();if(!i||"datetime"!==i.type)return null;let n=this.getGroupFields(e);if(n.length<=0)return null;let o=i.grouping,r="number"==typeof o.interval?o.interval:null;return{...o,interval:r,...aC(n.map(e=>e.getGroupSetting()?.grouping).filter(eT))}}setDatetimeGrouping(e,t,i){let n=this.getField(e);if(!n)return!1;let o=n.getGroupSetting();if(o?"datetime"!==o.type:n.getType()!==ne.datetime)return!1;let r=this.getDatetimeFullGrouping(e),a=Object.assign(ax(),r,t),s=(0,iL.Z)(a,["autoStart","autoEnd","start","end"]),l=Object.values(nt).filter(e=>a[e]);for(let e of this.getGroupFields(n.getId()).slice(1))this.removeGroupField(e);let c=l.map(e=>this.createDatetimeGroupField(n,{...s,interval:e},i)),d=c.shift();c.unshift(n),n.setGroupSetting(d?.getGroupSetting()??null),n.setSuffix(this.getDatetimeGroupFieldSuffix(l[0]));for(let e=0;e<c.length;e++){let t=c[e].getGroupSetting();if(!t||!t.grouping)return!1;let i=az(n,t.grouping,this.locale);if(!i)return!1;t.base=0===e?null:n.getId(),t.parent=c[e+1]?.getId()??null,t.items=i.items,t.map=i.map,0!==e&&this.fields.push(c[e])}return!0}removeGrouping(e){let t=this.getBaseField(e);if(!t||!t.isFromData())return!1;for(let e of this.getGroupFields(t.getId()).slice(1))this.fields.splice(this.fields.indexOf(e),1);return t.setGroupSetting(null),t.setSuffix(""),!0}}function a0(e){let t=0n;for(let i of e)t|=1n<<BigInt(i);return t}function a1(e,t){let i=[],n=Array(e.length).fill(!1);if(t&&t.length>0){let o=Object.create(null);for(let t=0;t<e.length;t++)o[i7(e[t]).toLowerCase()]=t;for(let r=0;r<t.length;r++){let a=t[r],s=o[i7(a).toLowerCase()]??-1;if(s<0)continue;let l=e[s],c={...a,value:l.value,sharedIndex:s};i.push(c),n[s]=!0}}for(let t=0;t<e.length;t++)n[t]||i.push(a3.makeItem(e[t],t));return i}function a2(e,t,i,n){void 0===i&&(i="asc");let o=[];for(let t of e)null!==t.caption&&(o[t.sharedIndex]=i5({type:"string",value:t.caption}));let r="asc"===i?1:-1;return e.sort((e,i)=>am(o[e.sharedIndex]??t[e.sharedIndex],o[i.sharedIndex]??t[i.sharedIndex],n)*r),e}class a3{constructor(e,t,i){if(this.table=e,this.cacheField=t??null,i?.items){let e=this.cacheField?.getItemsForPivotField()??[];this.items=function(e,t){let i=[],n=Array(t.length).fill(!1);for(let o of e){let e=o.sharedIndex;if(e<0||e>=t.length)continue;let r=t[e],a={type:r.type,value:r.value,...o,sharedIndex:e};i.push(a),n[e]=!0}if(i.length===t.length)return i;for(let e=0;e<t.length;e++)n[e]||i.push(a3.makeItem(t[e],e));return i}(i?.items,e)}else this.items=a1(this.cacheField?.getItemsForPivotField()??[]);this.baseItemSetMap=null,this._valueItemStrings=null,this.id=t?.getId()??null,this.name=i?.name??null,this.useSuffix=i?.useSuffix??!0,this.axis=i?.axis??null,this.dataField=i?.dataField??!1,this.numFmt=i?.numFmt??null,this.sorting=i?.sorting??{type:"manual",fieldId:null},this.filter=i?.filter??null,this.subtotals=(0,tl.I8)(i?.subtotals)??"default",this.axisCapacity=(0,tl.I8)(i?.axisCapacity)??{row:!0,col:!0,page:!0,data:!0,off:!0},this.subtotalCaption=i?.subtotalCaption,this.outline=i?.outline??!0,this.compact=i?.compact??!0,this.subtotalTop=i?.subtotalTop??!0,this.repeatLabel=i?.repeatLabel??!1,this.blankRow=i?.blankRow??!1,this.pageBreak=i?.pageBreak??!1,this.showAll=i?.showAll??!1}getId(){if(!this.cacheField)throw Error(`Pivot field '${this.getName()}' has no cache field`);return this.cacheField.getId()}getIndex(){return this.table.getPivotFields().indexOf(this)}isFiltered(){return null!==this.filter||this.items.some(e=>e.hidden)}isFromData(){return!!this.cacheField?.isFromData()}hasGroupSetting(){return!!this.getGroupSetting()}usingGroupItems(){return!!this.cacheField?.usingGroupItems()}isMultipleSubtotals(){return Array.isArray(this.subtotals)&&this.subtotals.length>1}getName(e){return void 0===e&&(e=!0),(this.name??this.cacheField?.getName()??"")+(e&&this.useSuffix?this.getSuffix():"")}getSuffix(){return this.cacheField?.getSuffix()??""}getSubtotalCaption(){return this.subtotalCaption}setSubtotalCaption(e){this.subtotalCaption=e}getNumFmt(){return this.numFmt??this.cacheField?.getNumFmt()??"General"}getItemNumFmt(e){let t=this.getNumFmt();return"General"===t?aU(e):t}getType(){return this.cacheField?.getType()??ne.text}getItemCount(){return this.items.length}getRawItemCount(){return this.isFromData()?this.cacheField?.getSharedItems().length??0:0}getGroupSetting(){return this.cacheField?.getGroupSetting()??null}getGroupBaseField(){let e=this.getGroupSetting();return e&&this.table.getPivotFieldById(e.base??"")}getBaseToGroupIndexMap(){let e=this.cacheField?.getGroupItems();if(!e)return null;let t=this.getGroupBaseField()??this,i=Array(t?.cacheField?.getSharedItems().length??0);for(let n=0;n<e.length;n++)for(let o of e[n].contains){let e=t?.cacheField?.getItemSharedIndex(o)??-1;e>=0&&(i[e]=n)}return i}generateBaseItemSetMap(){let e=this.cacheField;if(!e)throw Error(`Pivot field '${this.getName()}' has no cache field`);let t=new Map,i=this.getGroupSetting();if(!i)return t;let n=this.getGroupBaseField()?.cacheField??e,o=e=>n.getItemSharedIndex(e);for(let n of i.items){let i=e.getGroupItemIndex(n),r=a0(n.contains.map(o));t.set(i,r)}return t}getBaseItemSetMap(){return this.usingGroupItems()&&this.getGroupSetting()?this.baseItemSetMap??=this.generateBaseItemSetMap():null}getBaseItemSetFromGroupItemIndex(e){let t=this.getBaseItemSetMap();return t?t.get(e)??null:1n<<BigInt(e)}getItemRawIndex(e){return this.cacheField?.getItemIndex(e)??-1}getBaseItemsFromGroupItem(e){if(!this.usingGroupItems())return[i5(e)];let t=this.getGroupSetting();if(!t)return null;let i=t.items.find(t=>av(t,e));return i?i.contains:null}getGroupItemByBaseItem(e){if(!this.usingGroupItems())return this.getItemByValue(e)??null;let t=this.getGroupSetting();if(!t)return null;let i=t.map?.[i7(e)];return i?this.getItemByValue(i5(i))??null:null}getItemValues(e,t){let i;return void 0===e&&(e=!1),void 0===t&&(t=!1),e?i=this.isFromData()?this.cacheField?.getSharedItems()??[]:[]:(i=this.items,t&&(i=i.slice().sort((e,t)=>e.sharedIndex-t.sharedIndex))),i.map(i5)}_clearValueItemStringsCache(){this._valueItemStrings=null}_getRawValueItemStrings(){return(this.isFromData()?this.cacheField?.getSharedItems()??[]:[]).map(i7)}getRawValueItemStrings(){return this._valueItemStrings??=this._getRawValueItemStrings()}getItemByValue(e){return this.items.find(t=>av(t,e))}getItemBySharedIndex(e){return this.items.find(t=>t.sharedIndex===e)}getItemByOrder(e){return this.items[e]}getItemOrderBySharedIndex(e){let t=this.items.findIndex(t=>t.sharedIndex===e);return t>=0?t:void 0}getItemLabelBySharedIndex(e){let t=this.getItemOrderBySharedIndex(e);if(void 0!==t)return this.getItemLabelByOrder(t)}getItemLabelByOrder(e){let t=this.items[e]?.caption;if(null!==t)return t;let i=this.getItemByOrder(e);return i?.value}getItemLabel(e){let t=this.items.findIndex(t=>av(t,e));if(!(t<0))return this.getItemLabelByOrder(t)}getNonHiddenItems(){return this.items.filter(e=>!e.hidden).map(e=>i5(e))}foldItems(){for(let e of this.items)e.folded=!0}sortItems(e,t){void 0===e&&(e="asc"),this.cacheField&&a2(this.items,this.cacheField.getItemsForPivotField(),e,t)}reorderItems(e){if(e.length!==this.items.length)return!1;let t=new Map(e.map((e,t)=>[e.toLowerCase(),t])),i=[];for(let e of this.items){let n=i7(e).toLowerCase(),o=t.get(n)??null;if(null===o)return!1;i[o]=e}return this.items=i,!0}updateItemAttrs(e){let t=new Map(e.map(e=>[i7(e).toLowerCase(),e]));for(let e of this.items){let i=i7(e).toLowerCase(),n=t.get(i);n&&(e.caption=n.caption??e.caption,e.folded=n.folded??e.folded,e.hidden=n.hidden??e.hidden)}}updateItems(){this.cacheField&&(this.items=a1(this.cacheField.getItemsForPivotField(),this.items),this._clearValueItemStringsCache())}toJSON(){return{id:this.id,name:this.name,useSuffix:this.useSuffix,axis:this.axis,dataField:this.dataField,numFmt:this.numFmt,sorting:this.sorting,filter:this.filter,axisCapacity:(0,tl.I8)(this.axisCapacity),subtotals:(0,tl.I8)(this.subtotals),items:this.items.map(e=>{let{caption:t,sharedIndex:i,folded:n,hidden:o}=e;return{caption:t,sharedIndex:i,folded:n,hidden:o}}),subtotalCaption:this.subtotalCaption,outline:this.outline,compact:this.compact,subtotalTop:this.subtotalTop,repeatLabel:this.repeatLabel,blankRow:this.blankRow,pageBreak:this.pageBreak,showAll:this.showAll}}static makeItem(e,t){return{type:e.type,value:e.value,caption:null,sharedIndex:t,hidden:!1,folded:!1}}}let a4="values_field";class a5 extends a3{static #e=this.id=a4;static #t=this.index=-2;constructor(e,t,i=e.getLocale().getText("default_values_field_caption")){super(e),this.name=i,this.axisCapacity={page:!1,row:!0,col:!0,data:!1,off:!0},this.axis=t,this.defaultAxis=t??"col",this.defaultPosition=void 0}getId(){return a5.id}getIndex(){return -2}}var a6=i(69774);class a8{constructor(e){this.table=e,this.slices=new Map}get(e,t){void 0===t&&(t=!1);let i=this.slices.get(e);return!i&&t&&(i=new a7(this.table,e),this.slices.set(e,i)),i}hasKey(e){return this.slices.has(e)}values(){return this.slices.values()}}class a7{constructor(e,t){this.key=t,this.table=e,this.records=null,this.children=null,this.stats=null}getKey(){return this.key}isJustCreated(){return null===this.records&&null===this.children}addRecord(e){(this.records??=[]).push(e),this._resetIsEmpty()}setChildren(e,t){this._resetIsEmpty(),this.children??={row:null,col:null};let i=this.children[e];if(i){for(let e of(i.clear(),t))i.add(e);return i}return this.children[e]=new Set(t)}addChildren(e,t){this._resetIsEmpty();let i=this.children?.[e];if(!i)return this.setChildren(e,t);for(let e of t)i.add(e);return i}isEmpty(){return this._empty??=this._isEmpty()}_isEmpty(){if(this.records)return 0===this.records.length;let e=this.getChildren();if(!e)return!0;for(let t of e)if(!t.isEmpty())return!1;return!0}_resetIsEmpty(){this._empty=void 0}getChildren(e){return this.children?void 0!==e?this.children[e]??null:this.children.row??this.children.col??null:null}getAllRecords(){if(this.records)return this.records;let e=[];for(let t of this.getChildren()??[])e=e.concat(t.getAllRecords());return e}getAggregateValue(e,t){let i=this.stats?.get(e);if(!i){let t=this.getBaseFieldId(e);t===e?i=this.computeStat(t):(i=this.stats?.get(t)??this.computeStat(t),this.stats?.set(e,i))}try{return new a9(i).calc(t)}catch(e){if((0,af.VZ)(e))return e.message;throw e}}getBaseFieldId(e){try{return this.table.getCache().getBaseField(e)?.getId()??e}catch{return e}}createEmptyStat(){return{count:0,numberCount:0,sum:0,sqSum:0,product:1,max:Number.NEGATIVE_INFINITY,min:Number.POSITIVE_INFINITY}}computeStat(e){let t=this.createEmptyStat();if(this.children)for(let i of this.getChildren()??[]){let n=i.stats?.get(e);n||(n=i.computeStat(e)),t.count+=n.count,0!==n.numberCount&&(t.numberCount+=n.numberCount,t.sum+=n.sum,t.sqSum+=n.sqSum,t.product*=n.product,t.max=Math.max(t.max,n.max),t.min=Math.min(t.min,n.min))}else if(this.records){let i=this.table.getCache().getFields(),n=i.findIndex(t=>t.getId()===e);if(n<0)throw Error("Invalid pivot field id");let o=i[n];if(o.isFormulaField())return t;let r=o.getSharedItems();for(let e of this.records){let i=e[n];if(i&&("shared"===i.type&&(i=r[i.value]),"missing"!==i.type&&t.count++,"number"===i.type||"datetime"===i.type)){let e=i.value;t.numberCount++,t.max=Math.max(t.max,e),t.min=Math.min(t.min,e),t.product=t.product*e,t.sum=t.sum+e,t.sqSum=t.sqSum+e*e}}}return this.stats??=new Map,this.stats.set(e,t),t}}class a9{constructor(e){this.stat=e}calc(e){return 0===this.stat.count?0:this[e]()}sum(){return this.stat.sum}avg(){if(0===this.stat.numberCount)throw a6.Z.DIV0;return this.stat.sum/this.stat.numberCount}count(){return this.stat.numberCount}countA(){return this.stat.count}max(){return 0===this.stat.numberCount?0:this.stat.max}min(){return 0===this.stat.numberCount?0:this.stat.min}product(){return 0===this.stat.numberCount?0:this.stat.product}stdDev(){return Math.sqrt(this.var())}stdDevP(){return Math.sqrt(this.varP())}var(){if(this.stat.numberCount<2)throw a6.Z.DIV0;let e=this.avg();return this.stat.sqSum/(this.stat.numberCount-1)-e*e*this.stat.numberCount/(this.stat.numberCount-1)}varP(){if(this.stat.numberCount<1)throw a6.Z.DIV0;let e=this.avg();return this.stat.sqSum/this.stat.numberCount-e*e}}function se(e,t,i){let n={type:e,items:t};return void 0!==i&&(n.dataField=i),n}class st{constructor(e,t,i){this.itemKey=i,this.table=e,this.axis=t,this.slice=null;let n=this.table.getAxisFields(t),o=this.table.getPivotFieldById(n[i.length-1]?.fieldId),r=o?.getItemBySharedIndex(i[i.length-1]),a=this.table.getPivotFieldById(n[i.length]?.fieldId);this.field=o,this.fieldItem=r??null,this.childField=a;let{axis:s,level:l}=this.table.getValuesVirtualFieldInfo();this.dataFieldIndex=t===s?this.itemKey[l]??null:null,this.childrenMap=new Map}getSlice(){if(this.slice)return this.slice;let e="row"===this.axis?this.itemKey:[],t="col"===this.axis?this.itemKey:[];return this.slice=this.table.getSliceByRowColItemKeys(e,t),this.slice}getChildrenOf(e){if(!this.childField||!this.field?.showAll&&this.getSlice().isEmpty())return this;let t=this.itemKey.slice();t[this.itemKey.length]=e;let i=this.childrenMap.get(e);return i||(i=new st(this.table,this.axis,t),this.childrenMap.set(e,i)),i}buildAllChildren(){if(!this.childField)return;let e=this.itemKey.length;for(let t of this.childField.items){let i=t.sharedIndex,n=this.childrenMap.get(i),o=this.itemKey.slice();o[e]=i,n||(n=new st(this.table,this.axis,o),this.childrenMap.set(i,n))}}getSortedChildren(){if(!this.childField||this.childrenMap.size<=1)return Array.from(this.childrenMap.values());let e=Array.from(this.childrenMap.values()),t=new Map,i=this.childField.sorting.type,n="manual"!==i&&null!==this.childField.sorting.fieldId&&this.childField.sorting.fieldId!==this.childField.id,o=null!==this.childField.sorting.fieldId?this.table.getDataField(this.childField.sorting.fieldId):null,r=1;if(n&&o){for(let i of e)t.set(i,i.getSlice().getAggregateValue(o.fieldId,o.aggregation)??0);"desc"===i&&(r=-1)}else{"manual"===i||n||this.childField.sortItems(i);let o=this.childField.items;for(let i of e)t.set(i,o.indexOf(i.fieldItem))}return e.sort((e,i)=>{let n=t.get(e)??0,o=t.get(i)??0;return"string"==typeof n?+("string"!=typeof o):"string"==typeof o?-1:(n-o)*r}),e}getSubtreeByItemKey(e){if(this.itemKey.every((t,i)=>this.itemKey[i]===e[i])){if(this.itemKey.length===e.length)return this;let t=this.itemKey.length,i=this.childrenMap.get(e[t]);return i?.getSubtreeByItemKey(e)??null}return null}getField(){return this.field}getFieldItem(){return this.fieldItem}getLevel(){return this.itemKey.length}isRoot(){return 0===this.itemKey.length}isLeaf(){let e=this.table.getAxisFields(this.axis);return this.itemKey.length===e.length}isEmpty(){return this.getSlice().isEmpty()}isValuesFieldInAxis(){let{axis:e}=this.table.getValuesVirtualFieldInfo();return this.axis===e}isAboveValuesField(){let{axis:e,level:t}=this.table.getValuesVirtualFieldInfo();return this.axis===e&&this.itemKey.length-1<t}isOutlineMode(){return"col"!==this.axis&&null!==this.field&&this.field.outline}shouldShowSubtotalBeforeChild(){return!(this.isAboveValuesField()||this.isLeaf())&&(!!this.fieldItem?.folded||!(this.childField?.subtotals==="none"||this.childField?.isMultipleSubtotals())&&!!this.isOutlineMode()&&!!this.childField?.subtotalTop)}shouldShowSubtotalAfterChild(){let e=this.table.getAxisFields(this.axis),t=this.itemKey.length===e.length-1&&this.isAboveValuesField();return!(this.childField?.subtotals==="none"||this.isLeaf()||this.fieldItem?.folded)&&!t&&(!!(this.childField?.isMultipleSubtotals()||this.isAboveValuesField())||!(this.isOutlineMode()&&this.childField?.subtotalTop))}getItemsBeforeChildren(){return this.isRoot()&&this.isLeaf()?this.table.getAxisFields("data").length>=1?[se("data",this.itemKey)]:[]:this.isOutlineMode()||!this.childField||this.isLeaf()||this.fieldItem?.folded&&!this.isAboveValuesField()?null!==this.dataFieldIndex?[se("data",this.itemKey,this.dataFieldIndex)]:[se("data",this.itemKey)]:[]}getItemsFromChildren(e,t){if(!this.fieldItem?.folded){let i=this.isEmpty()&&(t||!!this.field?.showAll);for(let n of((i||t||this.childField?.showAll)&&this.buildAllChildren(),this.getSortedChildren()))for(let t of n.getItems(i))e.push(t);return e}if(!this.isAboveValuesField())return e;let{level:i}=this.table.getValuesVirtualFieldInfo(),n=this.table.getAxisFields("data");for(let t=0;t<n.length;t++){let n=this.itemKey.slice();n[i]=t,e.push(se("data",n,t))}return e}getItemsAfterChildren(e){if(this.isRoot()||!this.field||!this.fieldItem){if(this.isLeaf()||this.childField?.subtotals==="none")return e;if(this.isValuesFieldInAxis()){if(this.table.getAxisFields(this.axis).length>1||this.isRoot()&&this.isEmpty()){let t=this.table.getAxisFields("data");for(let i=0;i<t.length;i++)e.push(se("grand",[],i))}}else e.push(se("grand",[]));return e}if(this.shouldShowSubtotalAfterChild())for(let t of this.childField?.subtotals==="default"?["default"]:this.childField?.subtotals)if(this.isAboveValuesField()){let i=this.table.getAxisFields("data");for(let n=0;n<i.length;n++)e.push(se(t,this.itemKey,n))}else e.push(se(t,this.itemKey));return"col"!==this.axis&&this.field.blankRow&&e.at(-1)?.type!=="blank"&&e.push(se("blank",this.itemKey)),e}getItems(e){if(void 0===e&&(e=!1),this.fieldItem?.hidden||!e&&!this.field?.showAll&&this.isEmpty()&&!this.isRoot())return[];let t=this.getItemsBeforeChildren();return t=this.getItemsFromChildren(t,e),t=this.getItemsAfterChildren(t)}}class si{constructor(e){this.value=e}}class sn{get length(){return this._length}push(e){let t=new si(e);this.head||(this.head=t),this.tail&&(this.tail.next=t),this.tail=t,this._length++}shift(){if(!this.head)return;let e=this.head.value;return this.head=this.head.next,this.head||(this.tail=void 0),this._length--,e}clear(){this.head=void 0,this.tail=void 0,this._length=0}constructor(){this._length=0}}var so=((w={}).None="None",w.Normal="Normal",w.Filtered="Filtered",w),sr=((_={}).None="None",_.Fold="Fold",_.Unfold="Unfold",_),sa=((x={}).ItemName="ItemName",x.FieldName="FieldName",x.DataFieldName="DataFieldName",x.FilterItem="FilterItem",x.SubtotalCaption="SubtotalCaption",x.GrandTotalCaption="GrandTotalCaption",x.ColumnHeaderCaption="ColumnHeaderCaption",x.RowHeaderCaption="RowHeaderCaption",x.ValuesCaption="ValuesCaption",x);function ss(e){return void 0===e&&(e={}),{indent:0,field:null,tooltip:"",filterBtn:"None",foldBtn:"None",rowSelect:!1,colSelect:!1,...e}}function sl(e,t,i,n){t.forAll((o,r)=>{let a=n?.[o-t.from.row]?.[r-t.from.col]??ss();e.setCellMeta(o,r,[["pivot",i?{...a,tableId:i}:void 0]])})}var sc=((S={})[S.WholeTable=0]="WholeTable",S[S.HeaderRow=1]="HeaderRow",S[S.TotalRow=2]="TotalRow",S[S.FirstColumn=3]="FirstColumn",S[S.LastColumn=4]="LastColumn",S[S.FirstRowStripe=5]="FirstRowStripe",S[S.SecondRowStripe=6]="SecondRowStripe",S[S.FirstColumnStripe=7]="FirstColumnStripe",S[S.SecondColumnStripe=8]="SecondColumnStripe",S[S.FirstHeaderCell=9]="FirstHeaderCell",S[S.LastHeaderCell=10]="LastHeaderCell",S[S.FirstTotalCell=11]="FirstTotalCell",S[S.LastTotalCell=12]="LastTotalCell",S[S.FirstSubtotalColumn=13]="FirstSubtotalColumn",S[S.SecondSubtotalColumn=14]="SecondSubtotalColumn",S[S.ThirdSubtotalColumn=15]="ThirdSubtotalColumn",S[S.FirstSubtotalRow=16]="FirstSubtotalRow",S[S.SecondSubtotalRow=17]="SecondSubtotalRow",S[S.ThirdSubtotalRow=18]="ThirdSubtotalRow",S[S.BlankRow=19]="BlankRow",S[S.FirstColumnSubheading=20]="FirstColumnSubheading",S[S.SecondColumnSubheading=21]="SecondColumnSubheading",S[S.ThirdColumnSubheading=22]="ThirdColumnSubheading",S[S.FirstRowSubheading=23]="FirstRowSubheading",S[S.SecondRowSubheading=24]="SecondRowSubheading",S[S.ThirdRowSubheading=25]="ThirdRowSubheading",S[S.PageFieldLabels=26]="PageFieldLabels",S[S.PageFieldValues=27]="PageFieldValues",S);class sd{constructor(e,t,i,n,o,r=sp){this.rowHeaderWidth=e,this.colHeaderHeight=n,this.height=t+n,this.grandRowCount=o,this.rowSubtotal=[],this.tableStyle=r}addRowSubtotal(e,t,i){this.rowSubtotal[e-this.colHeaderHeight]={col:t,level:i}}createStyle(e,t,i){let n;void 0===i&&(i=0),t<this.rowHeaderWidth&&(n=this.mergeStyleJSON(n??{},this.tableStyle[sc.FirstColumn])),e<this.colHeaderHeight&&(n=this.mergeStyleJSON(n??{},this.tableStyle[sc.HeaderRow])),e<this.colHeaderHeight&&t<this.rowHeaderWidth&&(n=this.mergeStyleJSON(n??{},this.tableStyle[sc.FirstHeaderCell]));let o=this.rowSubtotal[e-this.colHeaderHeight],r=o&&o.col<=t?o.level:0;if(r>0&&(n=1===r?this.mergeStyleJSON(n??{},this.tableStyle[sc.FirstSubtotalRow]):r%2==0?this.mergeStyleJSON(n??{},this.tableStyle[sc.SecondSubtotalRow]):this.mergeStyleJSON(n??{},this.tableStyle[sc.ThirdSubtotalRow])),i>0&&(n=1===i?this.mergeStyleJSON(n??{},this.tableStyle[sc.FirstColumnSubheading]):i%2==0?this.mergeStyleJSON(n??{},this.tableStyle[sc.SecondColumnSubheading]):this.mergeStyleJSON(n??{},this.tableStyle[sc.ThirdColumnSubheading])),e>=this.height-this.grandRowCount){let t={firstRow:e===this.height-this.grandRowCount};n=this.mergeStyleJSON(n??{},this.tableStyle[sc.TotalRow],t)}return n}mergeStyleJSON(e,t,i){if(void 0===i&&(i={}),t?.font&&(e.font={...e.font,...t.font}),t?.fill&&(e.fill={...e.fill,...t.fill}),t?.border?.b){let n=t.border.b.slice();i.firstRow||(n[0]=null),e.border=e.border?.b?{b:(0,tx.WE)(e.border.b,n)}:{b:n}}return e}}let su={bg:"DDDDDD"},sh={font:{color:"FFFFFF"},fill:{bg:"82B0BE"}},sp={[sc.PageFieldLabels]:{fill:{bg:"E3F3F6"}},[sc.PageFieldValues]:{fill:{bg:"F2F2F2"}},[sc.FirstColumn]:{fill:{bg:"F2F2F2"}},[sc.HeaderRow]:{fill:{bg:"E3F3F6"}},[sc.FirstHeaderCell]:{fill:{bg:"E3F3F6"}},[sc.FirstSubtotalRow]:{fill:su},[sc.SecondSubtotalRow]:{fill:su},[sc.ThirdSubtotalRow]:{fill:su},[sc.FirstColumnSubheading]:sh,[sc.SecondColumnSubheading]:sh,[sc.ThirdColumnSubheading]:sh,[sc.TotalRow]:{font:{bold:!0},fill:su,border:{b:["#000000",null,null,null]}}};function sf(e){return["row","col","data","page"].some(t=>e[t].length>0)}function sg(e,t,i,n){let o=[e.range].concat(e.pageRanges).filter(eT);return e.sheetId===t&&o.some(e=>e.from.row<=i&&i<=e.to.row&&e.from.col<=n&&n<=e.to.col)}function sm(e){return"toJSON"in e?e.getPartRanges():tz(e.location)}let sv=Object.freeze({bg:"666666",color:"FFFFFF"}),sb=Object.freeze({bg:"F2F2F2"});class sy{constructor(){this.sm=new np,this.headerStyleIndex=void 0,this.secondRowStyleIndex=void 0}createStyle(e){let{bg:t,color:i,fc:n}=e,o=t?this.sm.addFill(this.sm.createFill({bg:t})):0,r=i?this.sm.addFont(this.sm.createFont({color:i})):0,a=n?this.sm.addNumberFormat(this.sm.createNumberFormat({fc:n})):0,s=this.sm.getDefaultStyle().clone();return s.fillId=o,s.fontId=r,s.nfId=a,this.sm.addCellStyle(s)}ensureHeaderStyle(){return this.headerStyleIndex??=this.createStyle(sv)}ensureFirstRowStyle(e){return e?this.createStyle({fc:e}):0}ensureSecondRowStyle(e){return e?this.createStyle({...sb,fc:e}):this.secondRowStyleIndex??=this.createStyle(sb)}getXfId(e,t){return 0===e?this.ensureHeaderStyle():e%2==1?this.ensureFirstRowStyle(t):this.ensureSecondRowStyle(t)}getStyles(){return this.sm.getParts(Array.from(this.sm.styles,(e,t)=>t))}}var sw=((C={}).VALUE="value",C.TEXT="text",C.CUSTOM="custom",C.COLOR="color",C);function s_(e){return"value"===e.type}function sx(e){return"text"===e.type}function sS(e){return"custom"===e.type}function sC(e){return"color"===e.type}function sk(e){if(null===e)throw Error("Range is null")}class sI extends E.EventEmitter{constructor(e,t,i,n,o,r){super(),this.id=e,this.range=t||null,this.conditions=i||[],this.enabled=!!n,this.name=o||"",this.isPrivate=r}toJSON(){return{id:this.id,range:this.range?.toArray()||null,enabled:this.enabled,filters:(0,tl.I8)(this.conditions),name:this.name,isPrivate:this.isPrivate}}afterCreateRow(e,t){if(this.range&&!(e>this.range.to.row)&&!(t<=0)){if(e<=this.range.from.row){this.range.shift("row",t),this.emit("rangeChange");return}this._insertRowRange(e-this.range.from.row,t),this.range.to.row+=t,this.emit("rangeChange")}}afterCreateCol(e,t){if(this.range&&!(e>this.range.to.col)&&!(t<=0)){if(e<=this.range.from.col){this.range.shift("col",t),this.emit("rangeChange");return}this._insertColRange(e-this.range.from.col,t),this.range.to.col+=t,this.emit("rangeChange")}}afterRemoveRow(e,t){if(!this.range||e>this.range.to.row||t<=0)return;if(e+t-1<this.range.from.row){this.range.shift("row",-t),this.emit("rangeChange");return}let i=Math.max(e,this.range.from.row),n=Math.min(e+t-1,this.range.to.row)-i+1;this.range.getHeight()<=n?this.setRange(null):(this._removeRowRange(i-this.range.from.row,n),this.range.to.row-=n+i-e,this.range.from.row-=i-e,this.emit("rangeChange"))}afterRemoveCol(e,t){if(!this.range||e>this.range.to.col||t<=0)return;if(e+t-1<this.range.from.col){this.range.shift("col",-t),this.emit("rangeChange");return}let i=Math.max(e,this.range.from.col),n=Math.min(e+t-1,this.range.to.col)-i+1;this.range.getWidth()<=n?this.setRange(null):(this._removeColRange(i-this.range.from.col,n),this.range.to.col-=n+i-e,this.range.from.col-=i-e,this.emit("rangeChange"))}collectRemovedColInfo(e,t){if(!this.range)return null;let i=(0,eI.MT)(this.range.from.row,e,this.range.to.row,e+t-1).getOverlap(this.range);return i?(i.shift("col",-e),{filterId:this.id,filters:this.conditions.slice(i.from.col+e-this.range.from.col,e-this.range.from.col+i.getWidth()),range:i.toArray(),index:e,amount:t,dim:"col"}):null}collectRemovedRowInfo(e,t){if(!this.range)return null;let i=(0,eI.MT)(e,this.range.from.col,e+t-1,this.range.to.col).getOverlap(this.range);if(!i)return null;i.from.row-=e,i.to.row-=e;let n={filterId:this.id,range:i.toArray(),index:e,amount:t,dim:"row"};return i.getHeight()===this.range.getHeight()&&(n.filters=this.conditions.slice(0)),n}repairCol(e,t){if(!e.range)return;let i=(0,eI.MT)(e.range[0],e.range[1],e.range[2],e.range[3]);if(this.range){if(i.to.col+t+1===this.range.from.col)this._insertColRange(0,i.getWidth()),this.range.from.col=i.from.col+t,this.emit("rangeChange");else if(i.from.col+t===this.range.to.col+1)this._insertColRange(this.range.getWidth(),i.getWidth()),this.range.to.col=i.to.col+t,this.emit("rangeChange");else if(!(i.from.col+t>=this.range.from.col&&i.to.col+t<=this.range.to.col))return}else i.shift("col",t),this.setRange(i);e.filters&&ea(e.filters,(e,n)=>{this.setCondition(n+i.from.col+t,e)})}repairRow(e,t){if(!e.range)return;let i=(0,eI.MT)(e.range[0],e.range[1],e.range[2],e.range[3]);this.range?i.to.row+t+1===this.range.from.row?(this._insertRowRange(0,i.getHeight()),this.range.from.row=i.from.row+t,this.emit("rangeChange")):i.from.row+t===this.range.to.row+1&&(this._insertRowRange(this.range.getHeight(),i.getHeight()),this.range.to.row=i.to.row+t,this.emit("rangeChange")):(i.shift("row",t),this.setRange(i),e.filters&&ea(e.filters,(e,t)=>{this.setCondition(t+i.from.col,e)}))}checkMoveEnable(e,t,i,n){if(!this.isFilterEnabled())return!0;sk(this.range);let o=this.range.from.row;return(n?e+t:e)>o||o>(n?e+t+i-1:e+t-1)}beforeMove(e,t,i){return this.isFilterEnabled()?i?(this._applyMoveData(e,i),null):this._beforeMove(e,t):null}_applyMoveData(e,t){if("range"in t&&t.range)return void this._applyRangeData(t);if(sk(this.range),"shift"in t&&t.shift&&this.range.shift(e,t.shift),"amount"in t&&t.amount&&(this.range.to[e]+=t.amount,this.emit("rangeChange"),this._insertRange(e,t.index,t.amount),t.filters))for(let e=0;e<t.amount;e++)t.filters[e]&&this.setCondition(t.index+e+this.range.from.col,t.filters[e])}_applyRangeData(e){if(this.range){let[t,i,n,o]=e.range,r="row"===e.dim?this.range.getHeight():this.range.getWidth(),a=("row"===e.dim?n-t+1:o-i+1)-r,s=a-e.amount;"row"===e.dim?(this.range.from.row=t,this.range.to.row=n):(this.range.from.col=i,this.range.to.col=o),a>0?(this._insertRange(e.dim,e.index,e.amount),this._insertRange(e.dim,r+e.amount,s)):this._removeRange(e.dim,s+a,-a)}else this.range=(0,eI.MT)(...e.range),this.conditions=[],this._insertRowRange(0,this.range.getHeight()),this._insertColRange(0,this.range.getWidth());if(e.filters){let t="col"===e.dim?e.amount:this.range.getWidth(),i="col"===e.dim?e.index:0;for(let n=0;n<t;n++)if(e.filters[n]){let t=i+n;this.setCondition(this.range.from.col+t,e.filters[n])}}this.emit("rangeChange")}_beforeMove(e,t){sk(this.range);let i=this.range.from[e],n=this.range.to[e],o=null,r=this.range.move(e,t);return r?r.from[e]>=i&&r.to[e]<=n?(o={filterId:this.id,index:r.from[e]-i,amount:r.to[e]-r.from[e]+1,shift:i-this.range.from[e]},"col"===e&&(o.filters=this.conditions.slice(o.index,o.index+o.amount)),this._removeRange(e,r.from[e]-i,r.to[e]-r.from[e]+1)):r.from[e]<i?this._insertRange(e,t.sec[1].end-i+1,r.to[e]-r.from[e]+1):r.from[e]>n&&this._insertRange(e,t.sec[0].start-i,r.to[e]-r.from[e]+1):i<t.sec[0].start&&t.sec[1].end<n&&this._moveRange(e,t.sec[0].start-i,t.sec[0].amount,t.sec[1].amount),o}notifyMoveRange(e,t,i,n){if(n&&"range"in n)return this._applyRangeData(n),this.range?this.collectRemovedColInfo(0,this.range.getWidth()):null;if(!this.isFilterEnabled())return null;sk(this.range);let o=null,r=this.range.getTopLeftCorner(),a=this.range.getTopRightCorner(),s=this.range.getBottomLeftCorner(),l=this.range.getBottomRightCorner(),c=e.includesRange(this.range),d=e.from.col===t.from.col&&e.to.col===t.to.col,u=e.from.row===t.from.row&&e.to.row===t.to.row,h=d?"row":"col";if(n)this._applyMoveData(h,n);else if(c)this.range.shift("row",t.from.row-e.from.row),this.range.shift("col",t.from.col-e.from.col),this.emit("rangeChange");else if(i)(d&&t.from.row<=l.row&&t.from.col<=s.col&&t.to.col>=l.col||u&&t.from.col<=l.col&&t.from.row<=a.row&&t.to.row>=l.row)&&(o=this._removeRangeWithShift(h,t.from[h],e.from[h]-1));else if(d){if(e.includes(s)&&e.includes(l)){let i=Math.min(e.from.row,t.from.row),n=Math.max(e.from.row,t.from.row),r=e.from.row===n,a=r?n-i:e.getHeight(),s=r?e.getHeight():n-i;o=this._beforeMove("row",ae(i,a,s,r))}}else if(u&&(e.includes(r)&&e.includes(s)||e.includes(a)&&e.includes(l))){let i=Math.min(e.from.col,t.from.col),n=Math.max(e.from.col,t.from.col),r=e.from.col===n,a=r?n-i:e.getWidth(),s=r?e.getWidth():n-i;o=this._beforeMove("col",ae(i,a,s,r))}return o}_removeRangeWithShift(e,t,i){sk(this.range);let n=i+1-t,o=Math.max(this.range.from[e],t),r=o-this.range.from[e],a=i+1-o,s={filterId:this.id,range:this.range.toArray(),index:r,amount:a,dim:e};return"row"===e?this._removeRowRange(r,a):(s.filters=this.conditions.slice(r,r+a),this._removeColRange(r,a)),t<this.range.from[e]?i<this.range.from[e]?(this.range.from[e]-=n,this.range.to[e]-=n):i<this.range.to[e]?(this.range.from[e]=t,this.range.to[e]-=n):this.range=null:t<=this.range.to[e]&&(i<this.range.to[e]?this.range.to[e]-=n:t===this.range.from[e]?this.range=null:this.range.to[e]=t-1),null===this.range&&"row"===e&&(s.filters=this.conditions.slice()),s}afterRemoveRange(e){sk(this.range);let t=e.includes(this.range.getTopLeftCorner()),i=e.includes(this.range.getTopRightCorner()),n=e.includes(this.range.getBottomLeftCorner()),o=e.includes(this.range.getBottomRightCorner()),r=t&&i||n&&o?"row":t&&n||i&&o?"col":null;if(null===r)return null;let a=null,s=e.from[r],l="row"===r?e.getHeight():e.getWidth(),c=Math.max(s,this.range.from[r]),d=Math.min(s+l-1,this.range.to[r])-c+1;return a="row"===r?this.collectRemovedRowInfo(s,l):this.collectRemovedColInfo(s,l),d>=("row"===r?this.range.getHeight():this.range.getWidth())?this.setRange(null):(this._removeRange(r,c-this.range.from[r],d),t?this.range.from[r]=e.to[r]+1:this.range.to[r]=e.from[r]-1,this.emit("rangeChange")),a}notifyRemoveRange(e,t){if(!this.isFilterEnabled())return null;sk(this.range);let i=null;return t?e.from.col<=this.range.getTopLeftCorner().col&&this.range.getBottomRightCorner().col<=e.to.col?this.repairRow(t,e.from.row):this.repairCol(t,e.from.col):i=this.afterRemoveRange(e),i}_insertRange(e,t,i){return"row"===e?this._insertRowRange(t,i):this._insertColRange(t,i)}_insertRowRange(e,t){t<=0||this.emit("insertRowRange",e,t)}_insertColRange(e,t){t<=0||(e<this.conditions.length&&ef(this.conditions,e,t),this.emit("insertColRange",e,t))}_removeRange(e,t,i){return"row"===e?this._removeRowRange(t,i):this._removeColRange(t,i)}_removeRowRange(e,t){this.emit("removeRowRange",e,t)}_removeColRange(e,t){e+t>=this.conditions.length?this.conditions.length=e:this.conditions.splice(e,t),this.emit("removeColRange",e,t)}_moveRange(e,t,i,n){return"row"===e?this._moveRowRange(t,i,n):this._moveColRange(t,i,n)}_moveRowRange(e,t,i){this.emit("moveRowRange",e,t,i)}_moveColRange(e,t,i){el(this.conditions,e,t,i),this.emit("moveColRange",e,t,i)}isFilterEnabled(){return this.enabled&&null!==this.range}isFilterPrivate(){return!!this.isPrivate}getId(){return this.id}getName(){return this.name}getCondition(e){return this.isFilterEnabled()?(sk(this.range),this.conditions[e-this.range.from.col]):null}getAllConditions(){return this.isFilterEnabled()?this.conditions.slice(0):[]}setCondition(e,t,i){if(void 0===i&&(i=!1),!this.isFilterEnabled()||(sk(this.range),e<this.range.from.col||e>this.range.to.col))return!1;let n=e-this.range.from.col;return this.conditions[n]=t,i||this.emit("setCondition",n),!0}setRange(e){if(null===this.range&&null===e)return;if(null===this.range){sk(e),this._insertRowRange(0,e.getHeight()),this._insertColRange(0,e.getWidth()),this.range=e.clone(),this.emit("rangeChange");return}if(null===e){this._removeColRange(0,this.range.getWidth()),this._removeRowRange(0,this.range.getHeight()),this.range=null,this.emit("rangeChange");return}if(this.range.isEqual(e))return;let t=this.range.clone();e.from.row<t.from.row&&(this._insertRowRange(0,t.from.row-e.from.row),t.from.row=e.from.row),e.to.row>t.to.row&&(this._insertRowRange(t.getHeight(),e.to.row-t.to.row),t.to.row=e.to.row),e.from.row>t.from.row&&(this._removeRowRange(0,e.from.row-t.from.row),t.from.row=e.from.row),e.to.row<t.to.row&&(this._removeRowRange(e.getHeight(),t.to.row-e.to.row),t.to.row=e.to.row),e.from.col<t.from.col&&(this._insertColRange(0,t.from.col-e.from.col),t.from.col=e.from.col),e.to.col>t.to.col&&(this._insertColRange(t.getWidth(),e.to.col-t.to.col),t.to.col=e.to.col),e.from.col>t.from.col&&(this._removeColRange(0,e.from.col-t.from.col),t.from.col=e.from.col),e.to.col<t.to.col&&(this._removeColRange(e.getWidth(),t.to.col-e.to.col),t.to.col=e.to.col),this.range.from.row=t.from.row,this.range.from.col=t.from.col,this.range.to.row=t.to.row,this.range.to.col=t.to.col,this.emit("rangeChange")}setName(e){this.name=e}setEnabled(e){this.enabled=e}isFirstRow(e,t){return!!this.isFilterEnabled()&&(sk(this.range),t>=this.range.from.col&&t<=this.range.to.col&&e===this.range.from.row)}hasRange(){return null!==this.range}getRange(){return this.range}cloneRange(){return this.range?.clone()??null}hasCondition(e){return this.isFilterEnabled()&&!!this.getCondition(e)}getDataView(){let e={};if(!this.isFilterEnabled())return e;let t=this.range&&eR.toLabel(this.range);return t&&(e.range=t),e.conditions=this.conditions.map(e=>!!e),e}}function sA(e,t,i){let n="";switch("number"==typeof i&&(i='"'+i+'"'),e){case"containsBlanks":n=`LEN(TRIM(${t}))=0`;break;case"notContainsBlanks":n=`LEN(TRIM(${t}))>0`;break;case"containsText":n=`NOT(ISERROR(SEARCH((${i}),(${t}))))`;break;case"notContainsText":n=`ISERROR(SEARCH((${i}),(${t})))`;break;case"beginsWith":n=`LEFT((${t}),LEN(${i}))=(${i})`;break;case"endsWith":n=`RIGHT((${t}),LEN(${i}))=(${i})`;break;case"exactText":n=`EXACT((${t}), (${i}))`;break;case"cellIs":n=i}return n}function sT(e,t,i,n){let o;switch(e){case"greaterThan":o=`(${t})>(${i})`;break;case"greaterThanOrEqual":o=`(${t})>=(${i})`;break;case"lessThan":o=`(${t})<(${i})`;break;case"lessThanOrEqual":o=`(${t})<=(${i})`;break;case"equal":o=`(${t})=(${i})`;break;case"notEqual":o=`(${t})<>(${i})`;break;case"between":o=`AND((${t})>=(${i}),(${t})<=(${n}))`;break;case"notBetween":o=`OR((${t})<(${i}),(${t})>(${n}))`;break;default:o=`${i}`}return o}function sE(e,t){return e.constructor===t.constructor&&e.equals(t)&&(!e.shName||e.shName===t.shName)}function sR(e,t){let i=[];for(let n=0;n<e.length;n++){let o=e[n];sE(o,t)||i.push(o)}return i}function sD(e,t,i,n){n&&(n.unregisterImplicit(),n.unregisterResult());let o=H.P6.changeFormula(t,{delta:i}),r=e.getWorkbook(),a=r.getFormulaParser().parseRange(o,{sheetId:e.sheetId,item:n});if(n){let t={row:n.row,col:n.col},i=r.getNameById(e.sheetId),s=new M.lu(t,t,i);if(n.needUpdate){let t=X(o),i=e.formula.mapFormulaRange(sR(t,s));n.register(i)}if(a&&!sE(a,s)){let t=e.formula.mapFormulaRange([a])[0];n.registerResult(t)}}return a}function sO(e,t,i,n,o){return n.isFormula?function(e,t,i,n,o){n&&n.unregisterImplicit();let r=H.P6.changeFormula(t,{delta:i}),a=e.getWorkbook(),s=a.getFormulaParser().exec(r,{sheetId:e.sheetId,item:n,preValidateCell:o});if(n&&n.needUpdate){let t={row:n.row,col:n.col},i=a.getNameById(e.sheetId),o=new M.lu(t,t,i),s=sR(X(r),o);if(!e.formula.checkCrossRefError(s)){let t=e.formula.mapFormulaRange(s);n.register(t)}}return!!s.result}(e,n.formula1,n.delta,n.item,n.preValidateCell):sM(o=void 0===o?e.formula.getCellValue(t,i):o,n)}function sM(e,t){let i=!1,n=H.P6.Comparator,o=t.formula1,r=t.formula2;if(t.strictType&&(typeof o!=typeof e||r&&typeof r!=typeof e))return"notEqual"===t.operator;switch(t.operator){case"greaterThan":i=n.greaterThan(e,o);break;case"greaterThanOrEqual":i=n.greaterThanOrEqual(e,o);break;case"lessThan":i=n.lessThan(e,o);break;case"lessThanOrEqual":i=n.lessThanOrEqual(e,o);break;case"equal":i=n.equal(e,o);break;case"notEqual":i=n.not(e,o);break;case"between":i=n.greaterThanOrEqual(e,o)&&n.lessThanOrEqual(e,r);break;case"notBetween":i=n.lessThan(e,o)||n.greaterThan(e,r)}return i}let sN={row:2,col:0};function sP(e,t){return(e.name??t.getName()??"")+(e.useSuffix?t.getSuffix()??"":"")}function sL(e,t,i,n){let o=[],r={row:(0,tl.I8)(i?.getAxisFields("row"))??[],col:(0,tl.I8)(i?.getAxisFields("col"))??[],page:(0,tl.I8)(i?.getAxisFields("page"))??[],data:(0,tl.I8)(i?.getAxisFields("data"))??[]},a=i?.getPivotFields()??[],s=new Map;for(let t=0;t<e.length;t++){let i=e[t],r={id:null,name:null,useSuffix:!0,axis:null,dataField:!1,numFmt:null,sorting:{type:"manual",fieldId:null},filter:null,subtotals:"default",axisCapacity:{row:!0,col:!0,page:!0,data:!0,off:!0},items:[],outline:!0,compact:!0,subtotalTop:!0,repeatLabel:!1,blankRow:!1,pageBreak:!1,showAll:!1};r.numFmt=i.getNumFmt()??null,o.push(r);let l=a.findIndex(e=>e.getId()===i.getId());if(l<0){let e=a1(i.getItemsForPivotField()),t=i.getGroupSetting();(i.isFromData()&&!i.usingGroupItems()||t&&"manual"===t.type&&null!==t.base)&&e.sort(am),r.items=e}else{let[e]=a.splice(l,1),t=n?.has(e.getId());r.items=a1(i.getItemsForPivotField(),t?void 0:e.items),r.name=e.name,r.useSuffix=e.useSuffix,r.axis=e.axis,r.dataField=e.dataField,r.showAll=e.showAll,r.sorting.type=e.sorting.type,r.sorting.fieldId=e.sorting.fieldId,r.filter=(0,tl.I8)(e.filter),r.axisCapacity={...e.axisCapacity},r.subtotals=Array.isArray(e.subtotals)?Array.from(e.subtotals):e.subtotals}let c=sP(r,i).toLocaleLowerCase();s.set(c,(s.get(c)??0)+1)}for(let i=0;i<e.length;i++){let n=sP(o[i],e[i]);(s.get(n.toLocaleLowerCase())??0)<=1||(o[i].name=`${n} (${(0,nC.coordToLabel)({row:t.row,col:t.col+i})})`)}let l=new Set(a.map(e=>e.getId())),c=e=>e.filter(e=>!l.has(e.fieldId));for(let e of(r.data=c(r.data),r.data.length<=1&&l.add(a4),r.row=c(r.row),r.col=c(r.col),r.page=c(r.page),o))e.sorting.fieldId&&!r.data.some(t=>t.id===e.sorting.fieldId)&&(e.sorting.fieldId=null,e.sorting.type="manual");return{pivotFields:o,fields:r}}function sB(e){let t={row:0,col:0};for(let i of e)i.from.row<0&&(t.row=Math.max(t.row,-i.from.row));return t}class sF{constructor(e,t,i=new na){this._valuesFieldInfo=null,this._axisFieldsInfo=null,this._rowFields=null,this._colFields=null,this._unitKeySize=null,this.locale=i,this.id=t.id,this.cache=e,this.location=(0,tl.I8)(t.location);let n=e.getFields();this.pivotFields=t.pivotFields?.map((e,t)=>new a3(this,n[t],e))??[],this.fields={row:t.fields?.row??[],col:t.fields?.col??[],page:t.fields?.page??[],data:t.fields?.data??[]},this.rowItems=t.rowItems??[],this.colItems=t.colItems??[],this.styles=t.styles??{name:null,showRowHeaders:!0,showColHeaders:!0,showRowStripes:!1,showColStripes:!1,showLastColumn:!0,formats:[]},this.captions=t.captions??{},this.compact=!0,this.outline=!0,this.incompatible=t.incompatible??!1,this.slices=null,this.rowItemTree=null,this.colItemTree=null;let o=t.fields?.row.find(e=>e.fieldId===a5.id)?"row":t.fields?.col.find(e=>e.fieldId===a5.id)?"col":null;this.valuesVirtualField=new a5(this,o,this.captions.values),this.valuesVirtualField.defaultAxis=t.styles?.valuesAxis??"col",this.result=null,this.pageArea=null}getLocale(){return this.locale}getId(){return this.id}getCache(){return this.cache}getPivotFields(){return[...this.pivotFields]}getAxisFields(e){return this.fields[e]}getAxisFieldCount(){return{row:this.fields.row.length,col:this.fields.col.length,page:this.fields.page.length,data:this.fields.data.length}}hasAxisFields(){return sf(this.fields)}getCaptions(){return{...this.captions}}setCaption(e,t){if("values"===e){if(null==t)return!1;this.valuesVirtualField.name=t}return this.captions??={},this.captions[e]=t??void 0,!0}isIncompatible(){return this.incompatible}getLocation(){return(0,tl.I8)(this.location)}setLocation(e){if(e.sheetId&&(this.location.sheetId=e.sheetId),e.coord){let t=this.location.coord,i={row:e.coord.row-t.row,col:e.coord.col-t.col};for(let e of[this.location.range].concat(this.location.pageRanges))e&&Object.assign(e,(0,eA.$u)(e,i));this.location.coord={row:t.row+i.row,col:t.col+i.col}}}shiftLocation(e){let t=this.location.coord;return this.location.coord={row:t.row+e.row,col:t.col+e.col},(0,tl.I8)(this.location.coord)}moveTable(e,t){this.setLocation({sheetId:e,coord:t});let i=sB([this.getBoundRange()].filter(eT));return this.shiftLocation(i),!0}onSheetAlterGrid(e,t,i,n){let o=this.location,r="row"===t?this.getBoundRange():null;return!(o.sheetId!==e||(r?.from[t]??o.coord[t])<i)&&(this.setLocation({coord:(0,eA.Jr)(o.coord,{[t]:n})}),!0)}onSheetMoveRowCol(e,t,i){let n=this.location;if(n.sheetId!==e||n.coord[t]<i.sec[0].start||n.coord[t]>i.sec[1].end)return!1;let o=n.coord[t]<=i.sec[0].end?i.sec[1].amount:-i.sec[0].amount;return this.setLocation({coord:(0,eA.Jr)(n.coord,{[t]:o})}),!0}updateLocationByResult(){let e=this.location.coord,t=this.hasAxisFields()?this.getTableSize():{height:10,width:5};this.location.range=0===t.height||0===t.width?null:{from:{row:e.row,col:e.col},to:{row:e.row+t.height-1,col:e.col+t.width-1}};let i=this.getPageAreaSize();return this.location.pageRanges=0!==i.height&&0!==i.width?this.calcPageRanges(i.height):[],this.getLocation()}calcPageRanges(e){if(void 0===e&&(e=this.fields.page.length),0===e)return[];let t=[],i=this.location.coord,n=this.location.pageRowCount||e,o={row:i.row-1-Math.min(n,e),col:i.col},r=e;for(;r>0;){let e=Math.min(n,r);t.push({from:(0,tl.I8)(o),to:{row:o.row+e-1,col:o.col+1}}),r-=e,o.col+=3}return t}getParts(){let e=[];this.location.range&&e.push([this.location.range,this.result]);let t=0;for(let i of this.location.pageRanges){let n=i.to.row-i.from.row+1;e.push([i,this.pageArea?this.pageArea.slice(t,t+n):null]),t+=n}return e}getPartRanges(){return tz(this.location)}getBoundRange(){let e=this.getPartRanges();return 0===e.length?null:e.reduce((e,t)=>({from:{row:Math.min(e.from.row,t.from.row),col:Math.min(e.from.col,t.from.col)},to:{row:Math.max(e.to.row,t.to.row),col:Math.max(e.to.col,t.to.col)}}),e[0])}getPageAreaSize(){var e;return(e=this.pageArea)&&0!==e.length&&e[0]?.length!==0?{height:e.length,width:e[0].length}:{height:0,width:0}}toJSON(){let e={id:this.id,cacheId:this.cache.getId(),location:{...this.location,firstDataRow:0,firstDataCol:0,firstHeaderRow:0,pageColCount:0},pivotFields:this.pivotFields.map(e=>e.toJSON()),fields:(0,tl.I8)(this.fields),rowItems:this.rowItems,colItems:this.colItems,styles:{...this.styles,valuesAxis:this.valuesVirtualField.defaultAxis},captions:this.captions};return this.incompatible&&(e.incompatible=!0),e}static fromJSON(e,t,i){if(e.getId()===t.cacheId)return new sF(e,t,i)}calc(e){this.buildSlices(),e?.rowColItems!==!1&&this.generateRowColItems(),e?.fillResult!==!1&&this.fillTableResult(),this.fillPageArea(),e?.updateLocation!==!1&&this.updateLocationByResult()}updatePivotFieldsByCache(e){let t=this.cache.getFields(),{pivotFields:i,fields:n}=sL([...t],this.cache.getSource().range.from,this,e);this.pivotFields=i.map((e,i)=>new a3(this,t[i],e)),this.fields=n,this._valuesFieldInfo=null,this._axisFieldsInfo=null,this._rowFields=null,this._colFields=null,this._unitKeySize=null}getUpdatedValuesVirtualField(){return this.valuesVirtualField.items=this.fields.data.map((e,t)=>({caption:null,type:"string",value:e.name,sharedIndex:t,hidden:!1,folded:!1})),this.valuesVirtualField}getValuesVirtualFieldInfo(){let e=this.valuesVirtualField.axis;return this._valuesFieldInfo??=e?{axis:e,level:this.fields[e].findIndex(e=>e.fieldId===a5.id)}:{axis:null,level:-1},this._valuesFieldInfo}getFieldAxisInfo(e){let t=this.getPivotFieldById(e);if(!t||"data"===t.axis||null===t.axis)return{axis:null,position:-1};let i=t.axis,n=this.fields[i].findIndex(t=>t.fieldId===e);return{axis:i,position:n}}getDataFieldIndex(e){return this.fields.data.findIndex(t=>t.id===e)}enableValuesField(e){e?null===this.valuesVirtualField.axis&&this.addAxisField(this.valuesVirtualField.defaultAxis,a5.id,this.valuesVirtualField.defaultPosition):(this.removeAxisField("row",a5.id),this.removeAxisField("col",a5.id))}getPivotFieldByIndex(e){if(e===a5.index)return this.getUpdatedValuesVirtualField(),this.valuesVirtualField;if(e<0||e>=this.pivotFields.length)throw Error(`Invalid pivot field index: ${e}`);return this.pivotFields[e]}getPivotFieldById(e){return e===a5.id?(this.getUpdatedValuesVirtualField(),this.valuesVirtualField):this.pivotFields.find(t=>t.getId()===e)??null}getAxisPivotFields(e,t){if(void 0===t&&(t=!1),!t){if("row"===e&&this._rowFields)return this._rowFields;if("col"===e&&this._colFields)return this._colFields}let i=this.fields[e].map(e=>this.getPivotFieldById(e.fieldId));if(t||(i=i.filter(e=>e?.getId()!==a5.id)),i.some(e=>null===e))throw Error(`Invalid fields in axis '${e}'`);return t||("row"===e&&(this._rowFields=i),"col"===e&&(this._colFields=i)),i}getAxisPivotField(e,t){return this.isPivotFieldInAxis(e,t)?this.getPivotFieldById(t):null}getDataPivotField(e){let t=this.getDataField(e);return t?this.getPivotFieldById(t?.fieldId):null}getDataField(e){return this.fields.data.find(t=>t.id===e)??null}isPivotFieldInAxis(e,t){return void 0!==this.fields[e].find(e=>e.fieldId===t)}addAxisField(e,t,i){let n,o=this.getPivotFieldById(t);if(!o)throw Error("Invalid pivot field id");if(!o.axisCapacity[e])throw Error(`This field cannot be placed in the axis '${e}'`);null!==o.axis&&"data"!==o.axis&&("page"===o.axis&&"page"===e&&(n=this.fields.page.find(e=>e.fieldId===t)),this.removeAxisField(o.axis,t)),"row"===e||"col"===e?this.fields[e].splice(i??this.fields[e].length,0,{fieldId:t}):"page"===e&&(this.fields.page.splice(i??this.fields.page.length,0,{fieldId:t,selected:n?.selected??null,allowMultiple:n?.allowMultiple??!0}),o.filter=null),o.axis=e,o===this.valuesVirtualField&&("row"===e||"col"===e)&&(this.valuesVirtualField.defaultAxis=e),this._valuesFieldInfo=null,this._axisFieldsInfo=null,this._rowFields=null,this._colFields=null,this._unitKeySize=null}getAllFieldNames(){return this.pivotFields.map(e=>e.getName()).concat(this.fields.data.map(e=>e.name))}generateDataFieldId(){return"data-"+(0,t_.O1)()}generateDataFieldName(e,t){let i=(0,i4.format)(this.locale.getText("default_data_field_name_template"),e.getName(),this.locale.getNameOfAggregationFunction(t));return aq(this.getAllFieldNames(),e=>0===e?i:`${i}${e+1}`)??i}addDataField(e,t,i){let n=this.getPivotFieldById(e);if(!n||!n.axisCapacity.data||i?.id&&this.getDataField(i.id))return null;let o=i?.aggregation??(n.getType()===ne.number?nn.sum:nn.countA),r={id:i?.id??this.generateDataFieldId(),name:i?.name??this.generateDataFieldName(n,o),fieldId:e,numFmt:i?.numFmt??n.getNumFmt(),aggregation:o,displayType:i?.displayType??"normal",baseField:i?.baseField??null,baseItem:i?.baseItem??null};return this.fields.data.splice(t??this.fields.data.length,0,r),n.dataField=!0,null===n.axis&&(n.axis="data"),2===this.fields.data.length&&this.enableValuesField(!0),r}removeAxisField(e,t){let i=this.fields[e],n=i.findIndex(e=>e.fieldId===t);if(n<0)return;let o=this.getPivotFieldById(t);if(o&&!o.axisCapacity.off)throw Error("This field cannot be removed");i.splice(n,1),this._valuesFieldInfo=null,this._axisFieldsInfo=null,this._rowFields=null,this._colFields=null,this._unitKeySize=null,o&&(o.axis=o.dataField?"data":null)}removeDataField(e){let t=this.fields.data.findIndex(t=>t.id===e);if(t<0)return!1;let i=this.fields.data[t];this.fields.data.splice(t,1),this.fields.data.length<=1&&this.enableValuesField(!1);let n=this.getPivotFieldById(i.fieldId);return!n||(n.dataField=this.isPivotFieldInAxis("data",i.fieldId),"data"!==n.axis||n.dataField||(n.axis=null),!0)}moveAxisField(e,t,i,n){if(!this.getPivotFieldById(e))return!1;if(e===a5.id){if("page"===t||null===t||this.getAxisFields("data").length<=1)return!1;i=-1}let o=this.getFieldAxisInfo(e);if(null===t){if(null===o.axis)return!1;this.removeAxisField(o.axis,e)}else{let n=this.getAxisFields(t);if(i=-1===i?n.length:Math.min(n.length,i),n[i-1]?.fieldId===a5.id&&(i-=o.axis===t&&o.position<i?2:1),t===o.axis&&(i===o.position||e===a5.id))return!1;this.addAxisField(t,e,i)}let r=sB(this.calcPageRanges());return(n??={row:0,col:0}).row=0!==r.row&&r.row>n.row?r.row:n.row,n.col=0!==r.col&&r.col>n.col?r.col:n.col,this.shiftLocation(n),!0}moveDataField(e,t){let i=this.fields.data.findIndex(t=>t.id===e);if(i<0)return!1;let n=this.fields.data[i];return this.fields.data.splice(i,1),this.fields.data.splice(t,0,n),!0}resetAllAxis(){this.getAxisFields("data").slice().forEach(e=>{let{id:t}=e;return this.removeDataField(t)}),this.getAxisFields("page").slice().forEach(e=>{let{fieldId:t}=e;return this.removeAxisField("page",t)}),this.getAxisFields("row").slice().forEach(e=>{let{fieldId:t}=e;return this.removeAxisField("row",t)}),this.getAxisFields("col").slice().forEach(e=>{let{fieldId:t}=e;return this.removeAxisField("col",t)})}applyAllAxis(e){for(let t of Object.keys(e)){let i=e[t];if(i)for(let e=0;e<i.length;e++)if("data"===t){let t=this.getDataField(i[e].id);t?this.moveDataField(t.id,e):this.addDataField(i[e].fieldId,void 0,i[e])}else this.addAxisField(t,i[e].fieldId,e)}}resetFields(){for(let e of this.pivotFields)for(let t of e.items)t.hidden=!1,t.folded=!1}setFieldAttr(e,t){let i=this.getPivotFieldById(e);if(!i)return[];let n=[];for(let[e,o]of t)"filter"===e?(n.push(["filter",i.filter,o]),i.filter=o):"sorting"===e?(n.push(["sorting",i.sorting,o]),i.sorting=o):"subtotals"===e?(n.push(["subtotals",i.subtotals,o]),i.subtotals=o):"name"===e?(n.push(["name",i.name,o]),i.name=o):"useSuffix"===e?(n.push(["useSuffix",i.useSuffix,o]),i.useSuffix=o):"subtotalCaption"===e&&(n.push(["subtotalCaption",i.subtotalCaption,o]),i.subtotalCaption=o);return n}setDataFieldAttr(e,t){let i=this.getDataField(e);if(!i)return[];let n=[];for(let[e,o]of t)if("aggregation"===e){n.push(["aggregation",i.aggregation,o]),i.aggregation=o;let e=this.getPivotFieldById(i.fieldId);(i.autoName??!0)&&e&&(i.name=this.generateDataFieldName(e,i.aggregation))}else"displayType"===e?(n.push(["displayType",i.displayType,o]),i.displayType=o):"name"===e?(n.push(["name",i.name,o]),i.name=o):"autoName"===e&&(n.push(["autoName",i.autoName,o]),i.autoName=o);return n}setFieldItemAttr(e,t,i){let n=this.getPivotFieldById(e);if(!n)return[];let o=[];if("order"===t){let e=new Map,t=new Set;for(let[r,a]of i){let i=n.items.findIndex(e=>av(e,r));-1!==i&&(o.push([r,i,a]),e.set(i,a),t.add(a))}let r=[],a=0;for(let i=0;i<n.items.length;i++){let o=e.get(i);if(void 0!==o)r[o]=n.items[i];else{for(;t.has(a);)a++;r[a]=n.items[i],a++}}n.items=r}else if("folded"===t||"hidden"===t||"caption"===t)for(let[e,r]of i){let i=n.items.find(t=>av(t,e));i&&(o.push([e,i[t],r]),i[t]=r)}return o}getBasePivotFields(){return this.pivotFields.filter(e=>e.isFromData())}getSlicePivotFields(){let e=new Set(this.fields.page.concat(this.fields.row,this.fields.col).map(e=>e.fieldId));return this.pivotFields.filter(t=>e.has(t.getId()))}getSliceBasePivotFields(){let e=this.getSlicePivotFields();return this.getBasePivotFields().filter(t=>e.includes(t)||e.some(e=>e.getGroupSetting()?.base===t.getId()))}getAxisFieldsInfo(e){return(this._axisFieldsInfo??={})[e]??=this.getAxisPivotFields(e,!0).map(e=>{let t=e.usingGroupItems(),i=e.getGroupBaseField()??e,n=e.getBaseToGroupIndexMap(),o=i.getIndex();return{field:e,usingGroupItems:t,baseField:i,baseToGroupIndex:n,baseIndex:o}})}getItemsFilteredByPageFieldSelect(e){let t=e.getId(),i=this.fields.page.find(e=>e.fieldId===t);return i&&!0!==i.allowMultiple?null!==i.selected?[e.items[i.selected]]:e.items:null}getItemsFilteredByConditionFilter(e){let t=e.filter;return t?e.items.filter(e=>{if(!t)return!e.hidden;if(sx(t))return function(e,t){let i=!1;if(t.strictType&&"string"!=typeof t.formula1)return!1;let n=`${t.formula1}`;switch(t.operator){case"containsBlanks":i=(0,eI.O2)(e);break;case"notContainsBlanks":i=!(0,eI.O2)(e);break;case"containsText":i=!(0,eI.O2)(e)&&e.indexOf(n)>=0;break;case"notContainsText":i=(0,eI.O2)(e)||0>e.indexOf(n);break;case"beginsWith":i=e.startsWith(n);break;case"endsWith":i=e.endsWith(n);break;case"exactText":i=e===n}return i}(aY(i5(e),"").toLocaleLowerCase(),{isFormula:!1,operator:t.operator[0],formula1:t.value[0].toLocaleLowerCase()});if(sS(t)){let i=e.value,n=t.and||!1;for(let e=0;e<t.value.length;e++){let o=typeof i==typeof t.value[e]&&sM(i,{isFormula:!1,operator:t.operator[e]||"equal",formula1:t.value[e]});n=t.and?n&&o:n||o}return n}return!0}):null}getFilterInfos(){let e=new Map;for(let t of["row","col","page"])for(let{field:i,baseField:n,baseIndex:o,baseToGroupIndex:r,usingGroupItems:a}of this.getAxisFieldsInfo(t)){if(!i||i===this.valuesVirtualField)continue;let t=this.getItemsFilteredByPageFieldSelect(i)||this.getItemsFilteredByConditionFilter(i)||i.items.filter(e=>!e.hidden);if(i.items.length===t.length)continue;let s=new Set(t.map(e=>e.sharedIndex)),l=[],c=n.getRawItemCount();for(let e=0;e<c;e++){let t=a?r?.[e]:e;void 0!==t&&s.has(t)&&l.push(e)}let d=e.get(o),u=a0(l);void 0!==d?e.set(o,d&u):e.set(o,u)}return Array.from(e.entries())}getRowColItemKeyByRecord(e,t){let i=[];for(let n of this.getAxisFieldsInfo(e)){let{usingGroupItems:e,baseToGroupIndex:o,baseIndex:r}=n;if(r===a5.index)continue;let a=t[r];if("shared"!==a.type)throw Error("Some record items are not shared");let s=a.value;e&&(s=o?.[a.value]??a.value),i.push(s)}return i}buildSlices(){this.slices=new a8(this);let e=this.cache.getRecords(),t=this.getFilterInfos(),i=e=>{for(let[i,n]of t){let t=e[i];if("shared"!==t.type)throw Error("Some record items are not shared");if(!(n&1n<<BigInt(t.value)))return!1}return!0},n=new sn;for(let t=0;t<e.length;t++){let o=e[t];if(!i(o))continue;let r=this.getRowColItemKeyByRecord("row",o),a=this.getRowColItemKeyByRecord("col",o),s=this.getSliceByRowColItemKeys(r,a);s.isJustCreated()&&n.push([r,a,s]),s.addRecord(o)}for(;n.length;){let e=n.shift();if(!e)break;let[t,i,o]=e;if(t.length>0){let e=t.slice(0,-1),r=this.getSliceByRowColItemKeys(e,i);r.isJustCreated()&&n.push([e,i,r]),r!==o&&r.addChildren("row",[o])}if(i.length>0){let e=i.slice(0,-1),r=this.getSliceByRowColItemKeys(t,e);r.isJustCreated()&&n.push([t,e,r]),r!==o&&r.addChildren("col",[o])}}}isUnitItemKeySize(e,t){let i=this.getUnitItemKeySize();return i.row===e&&i.col===t}getUnitItemKeySize(){return this._unitKeySize??={row:this.getAxisFields("row").reduce((e,t)=>t.fieldId!==a5.id?e+1:e,0),col:this.getAxisFields("col").reduce((e,t)=>t.fieldId!==a5.id?e+1:e,0)}}getSliceByRowColItemKeys(e,t){var i,n;let o,r,{axis:a,level:s}=this.getValuesVirtualFieldInfo();"row"===a?e=eS(e,s,1):"col"===a&&(t=eS(t,s,1));let l=(i=e,n=t,o=i.join(),r=n.join(),o.endsWith(",")&&(o=o.replace(/,+$/g,"")),r.endsWith(",")&&(r=r.replace(/,+$/g,"")),`${o};${r}`);return this.slices??=new a8(this),this.slices.get(l,!0)}generateRowColItems(){let e={row:this.getAxisFieldsInfo("row"),col:this.getAxisFieldsInfo("col")};this.rowItemTree=new st(this,"row",[]),this.colItemTree=new st(this,"col",[]);let t={row:this.rowItemTree,col:this.colItemTree},i=(e,t,n)=>{let o=e.getLevel();if(o>=n.length)return;let{usingGroupItems:r,baseToGroupIndex:a,baseIndex:s}=n[o];if(-2===s){for(let o=0;o<this.fields.data.length;o++){let r=e.getChildrenOf(o);r!==e&&i(r,t,n)}return}let l=t[s];if("shared"!==l.type)throw Error("Some record items are not shared");let c=l.value;r&&(c=a?.[l.value]??l.value);let d=e.getChildrenOf(c);d!==e&&i(d,t,n)},n=this.cache.getRecords();for(let o=0;o<n.length;o++){let r=n[o];i(t.row,r,e.row),i(t.col,r,e.col)}this.rowItems=this.rowItemTree.getItems(),this.colItems=this.colItemTree.getItems()}getRowHeaderWidth(){return this.getAxisPivotFields("row",!0).reduce((e,t)=>t.compact?e||1:e+1,0)||+(1===this.fields.data.length&&this.fields.col.length>0)}getRowHeaderHeight(){return this.fields.row.length>0?this.rowItems.length:+(this.fields.data.length>=1)}getColHeaderWidth(){let e=this.fields.col.some(e=>!!this.getPivotFieldById(e.fieldId)?.compact);return Math.max(this.colItems.length,e&&this.fields.col.length>0?1:this.fields.col.length)||+(this.fields.data.length>=1||this.fields.col.length>=1)}getColHeaderHeight(){return this.styles.showValuesRow||1!==this.fields.col.length||this.fields.col[0].fieldId!==a4?this.fields.col.length+1:1}getTableHeight(){return this.getRowHeaderHeight()+this.getColHeaderHeight()}getTableWidth(){return this.getRowHeaderWidth()+this.getColHeaderWidth()}getTableSize(){return{height:this.getTableHeight(),width:this.getTableWidth()}}getRowColItemLabels(e,t){let i=this.getAxisPivotFields(e,!0);return t.items.map((e,t)=>{let n=i[t].getItemLabelBySharedIndex(e),o=null===n?this.locale.getText("default_missing_item_label"):void 0===n?"":n;return`${o}`})}getItemDisplay(e,t){let i=i5((t=t??null)??{type:"missing",value:null}),n=t&&(t.caption||aY(i,this.locale.getText("default_missing_item_label"))),o=e.getItemNumFmt(i),r=t&&("datetime"===t.type||"number"===t.type||"boolean"===t.type)&&!t.caption?t.value:n;return{label:n,value:r,numFmt:o}}hasResult(){return null!==this.result}getResults(){return(0,tl.I8)(this.result)}fillTableResult(){let e=this.getAxisPivotFields("col",!0),t=this.getAxisPivotFields("row",!0),{axis:i,level:n}=this.getValuesVirtualFieldInfo(),o=this.getRowHeaderWidth(),r=this.getRowHeaderHeight(),a=this.getColHeaderWidth(),s=this.getColHeaderHeight(),l=r+s,c=o+a,d=0;for(;d<r&&this.rowItems.at(-1-d)?.type==="grand";)++d;let u=new sd(o,r,a,s,d),h=[];for(let e=0;e<l;e++){h[e]=[];for(let t=0;t<c;t++)h[e][t]={value:null,numFmt:null,meta:ss({style:u.createStyle(e,t)})}}if(1===this.fields.data.length){let e=this.fields.data[0],t=this.fields.row.length>0,i=this.fields.col.length>0,n=0,o=0;t&&!i?o=c-1:!t&&i&&(n=l-1),h[n][o]={value:e.name,numFmt:null,meta:ss({field:e.id,rowSelect:0===o,colSelect:!0,style:u.createStyle(n,o),edit:sa.DataFieldName})}}let p=1===this.fields.col.length&&this.fields.col[0].fieldId===a4&&!this.styles.showValuesRow,f=this.locale.getText("subtotal_template"),g=n=>{let r="row"===n,a=r?t:e;if(0===a.length||"col"===n&&p)return;let l=this.outline&&this.compact||r&&t.some(e=>e.compact),d=i===n&&1===a.length,f=[];f=l?[{caption:d?this.valuesVirtualField.getName():r?this.captions.rowHeader??this.locale.getText("default_row_labels_caption"):this.captions.colHeader??this.locale.getText("default_column_labels_caption"),filtered:a.some(e=>e.isFiltered()),fieldId:d?a4:null}]:(r?t.filter((e,i)=>!e.compact||i===t.length-1):e).map(e=>({caption:e.getName(),filtered:e.isFiltered(),fieldId:e.getId()}));let g=r?0:o,m=r?o:c,v=r?s-1:0;for(let e=g;e<m;e++){let t=e-o,i=f.at(t)??null,a=null!==i&&i.fieldId!==a5.id,s=null===i?null:i?.fieldId==null?r?sa.RowHeaderCaption:sa.ColumnHeaderCaption:i.fieldId===a4?sa.ValuesCaption:sa.FieldName;h[v][e]={value:i?.caption,numFmt:null,meta:ss({field:i?.fieldId??null,filterBtn:a?i.filtered?so.Filtered:so.Normal:so.None,colSelect:l?null===i:null!==i,style:u.createStyle(v,e),axis:n,edit:s})}}};g("col"),g("row");let m=n=>{let r=this.fields[n];if(0===r.length)return;let a=this.getAxisPivotFields(n,!0),d="row"===n,g=(e,t)=>d?h[e][t]:h[t][e],m=(e,t,i)=>{Object.assign(g(e,t),i)},v=(e,t,i)=>(void 0===i&&(i=0),d?u.createStyle(e,t):u.createStyle(t,e,i)),b="row"===n?this.rowItems:this.colItems,y=d?t.reduce((e,i,n)=>e.concat([(e[n-1]??-1)+ +!t[n-1]?.compact]),[]):p?[0]:e.map((e,t)=>t+1),w=r.map((e,t)=>e.fieldId!==a5.id&&t!==r.length-1&&(t!==r.length-2||r[t+1].fieldId!==a5.id)),_=n===i,x=d?s:o,S=d?l:c,C=d||p?0:1,k=d?o:s;for(let e=x;e<S;e++){let t=e-x,i=b[t]??void 0,o=b[t-1]??void 0,r=i&&void 0!==i.dataField?this.fields.data[i.dataField].name:"";if(!i||"grand"===i.type){let t=i?_?(0,i4.format)(this.locale.getText("grand_total_with_data"),r):this.captions.grandTotal??this.locale.getText("grand_total"):null;for(let n=C;n<k;n++)m(e,n,{value:n===C?t:null,numFmt:null,meta:ss({rowSelect:!!d&&n===C,colSelect:!!d||n===C,style:v(e,n),edit:i&&n===C&&!_?sa.GrandTotalCaption:null})});continue}for(let t=C;t<k;t++){let s=y.indexOf(t),l=y.lastIndexOf(t),c=Math.min(i.items.length-1,l),h=a[c];if(!h)continue;if(s>c&&t>C){let i=g(e,t-1);m(e,t,{value:null,numFmt:null,meta:ss({field:i.meta.field,style:v(e,t,c+1),axis:n})});continue}let p=i.items[c],b=h.getItemBySharedIndex(p),x=this.getItemDisplay(h,b),S=x.label,k=x.numFmt,I="data"!==i.type&&"blank"!==i.type&&c===i.items.length-1,A=w[c],T=!I&&o&&i.items[c]===o.items[c];d&&I&&u.addRowSubtotal(e,t,c+1);let E=h.getSubtotalCaption()??f,R=I?_?`${S} ${r}`:(0,i4.format)(E,S+""):x.value;m(e,t,{value:!T||h.repeatLabel?R:null,numFmt:k,meta:ss({indent:c>s?c-s:0,field:h.getId(),foldBtn:!T&&A&&"data"===i.type?b?.folded?sr.Unfold:sr.Fold:sr.None,rowSelect:d,colSelect:!!d||null!==R,style:v(e,t,c+1),item:b?i5(b):void 0,axis:n,edit:h===this.valuesVirtualField?sa.DataFieldName:I?_?null:sa.SubtotalCaption:!T||h.repeatLabel?sa.ItemName:null})})}}};if(m("col"),m("row"),0===this.fields.data.length){this.result=h;return}this.slices||(this.slices=new a8(this));for(let e=0;e<this.rowItems.length;e++){let t=s+e,r=this.rowItems[e],a=null,l=r.items.length===this.fields.row.length;for(let e=0;e<this.colItems.length;e++){let s=o+e,c=this.colItems[e];if(this.fields.data.length>1&&(r.dataField??c.dataField)==null)continue;let d=this.fields.data[r.dataField??c.dataField??0],p=null,f=null;if(d.displayType in no)if("data"!==r.type||l||(null===a?a=new st(this,"row",r.items).shouldShowSubtotalBeforeChild():a)){let e=this.getSliceByRowColItemKeys(r.items,c.items),t=e.getAggregateValue(d.fieldId,d.aggregation),o="#DIV/0!";if("number"!=typeof t)p=t;else if("normal"===d.displayType)e.isEmpty()||(p=t);else if("index"===d.displayType){let e=this.getSliceByRowColItemKeys([],[]),i=this.getSliceByRowColItemKeys(r.items,[]),n=this.getSliceByRowColItemKeys([],c.items),a=e.getAggregateValue(d.fieldId,d.aggregation),s=i.getAggregateValue(d.fieldId,d.aggregation),l=n.getAggregateValue(d.fieldId,d.aggregation);p=0===s||null===s||0===l||null===l?o:"string"==typeof a?a:"string"==typeof s?s:"string"==typeof l?l:t*(a??0)/(s*l)}else{let e,a=(e,t)=>{let o=t.length-1;for(;o>=0&&(null==t[o]||i===e&&n===o);)o--;return o--,i===e&&n===o&&o--,t.slice(0,o+1)};if("percentOfTotal"===d.displayType)e=this.getSliceByRowColItemKeys([],[]);else if("percentOfRow"===d.displayType)e=this.getSliceByRowColItemKeys(r.items,[]);else if("percentOfCol"===d.displayType)e=this.getSliceByRowColItemKeys([],c.items);else if("percentOfParentRow"===d.displayType)e=this.getSliceByRowColItemKeys(a("row",r.items),c.items);else if("percentOfParentCol"===d.displayType)e=this.getSliceByRowColItemKeys(r.items,a("col",c.items));else throw Error("Unexpected display type");if(!e.isEmpty()){let i=e.getAggregateValue(d.fieldId,d.aggregation);0===i||null===i?p=o:"string"==typeof i?p=i:(p=t/i,f="0.00%")}}}else p=null;else p=null;let g=h[t][s];g.value=p,g.numFmt=f,g.meta.field=d.fieldId,g.meta.style=u.createStyle(t,s),g.meta.axis="data"}}this.result=h}hasPageArea(){return null!==this.pageArea}getPageArea(){return(0,tl.I8)(this.pageArea)}fillPageArea(){let e=this.getAxisPivotFields("page",!0);if(0===e.length){this.pageArea=null;return}let t=e.map(e=>{let t={value:e.getName(),numFmt:null,meta:ss({field:e.getId(),style:sp[sc.PageFieldLabels],axis:"page",edit:sa.FieldName})},i=e.getItemValues(),n=e.getNonHiddenItems(),o=i.length===n.length?this.locale.getText("page_filter_all"):n.length>1?(0,i4.format)(this.locale.getText("page_filter_multi_item"),n.length):0===n.length?"":e.getItemLabel(n[0]),r=i.length!==n.length&&1===n.length?n[0]:null;return[t,{value:o,numFmt:r?e.getItemNumFmt(r):e.getNumFmt(),meta:ss({field:e.getId(),filterBtn:e.isFiltered()?so.Filtered:so.Normal,style:sp[sc.PageFieldValues],item:1===n.length?n[0]:void 0,axis:"page",edit:sa.FilterItem})}]});this.pageArea=t}getDetailContent(e,t){if(!this.location.range)return null;this.hasResult()||this.calc({rowColItems:!1,updateLocation:!1});let i=this.getRowHeaderWidth(),n=this.getColHeaderHeight(),o=e-this.location.range.from.row-n,r=t-this.location.range.from.col-i;if(o<0||r<0)return null;let a=this.rowItems[o].items,s=this.colItems[r].items,l=[];for(let e of["row","col"]){let t=this.fields[e],i="row"===e?a:s,n=Math.max(0,i.length-2),o=Math.min(n+Math.min(i.length,2),t.length);for(let e=n;e<o;e++){let n=this.getPivotFieldById(t[e].fieldId);if(!n)continue;let o=n.getItemBySharedIndex(i[e]);o&&l.push({fc:n.getItemNumFmt(i5(o)),value:o.value})}}let c=this.getSliceByRowColItemKeys(a,s).getAllRecords(),d=this.cache.getFields().filter(e=>e.isFromData()),u=c.map(e=>d.map((t,i)=>{let n=e[i],o=t.getNumFmt();return{value:"shared"!==n.type?n.value:t.getSharedItem(n.value)?.value??null,fc:o}}));return u.unshift(d.map(e=>({value:e.getName()}))),{titleItems:l,content:function(e){let t=new sy,i={};for(let n=0;n<e.length;n++){i[n]={};for(let o=0;o<e[n].length;o++){let r=e[n][o];i[n][o]={v:r.value,s:t.getXfId(n,r.fc)}}}return{ws:JSON.stringify({cells:i,filter:0===e.length?null:{id:(0,t_.O1)(),range:[0,0,e.length-1,e[0].length-1],enabled:!0,filters:[]},rowCount:e.length||100,colCount:e[0]?.length||30,rows:{},cols:{},global:{},fixedRowTop:0,fixedColumnLeft:0,mergeCells:[],cfs:[],validation:{},drawing:[],hyperlinks:[],notes:[]}),style:JSON.stringify(t.getStyles())}}(u)}}}let sV=new Set(["pivot_compound","create_pivot_table","delete_pivot_table","update_pivot_table","move_pivot_table","move_pivot_axis_field","insert_pivot_data_field","move_pivot_data_field","remove_pivot_data_field","set_pivot_field_attr","set_pivot_data_field_attr","set_pivot_field_item_order","set_pivot_field_item_folded","set_pivot_field_item_hidden","group_pivot_field_item","ungroup_pivot_field_item","set_pivot_field_number_group","set_pivot_field_datetime_group"]);function sz(e){return sV.has(e.cmd)}function sH(e,t,i,n){let o=e.setFieldItemAttr(t,i,n);return o.length>0?o:null}function sW(e){return(e.source.range.to.row-e.source.range.from.row+1)*(e.source.range.to.col-e.source.range.from.col+1)>tu.Z.PIVOT_TABLE_MAX_SOURCE_SIZE}function sY(e,t){return!(t.source.range.to.row-t.source.range.from.row<=tu.Z.PIVOT_TABLE_SIZE_WITH_ROW_COL_FIELD_COUNT_LIMIT)&&e.fields.row.length+e.fields.col.length-+(e.fields.data.length>1)>tu.Z.PIVOT_TABLE_MAX_ROW_COL_FIELD_COUNT}function sU(e){let t=tu.Z.PIVOT_TABLE_MAX_ROW_COL_ITEM_COUNT;return e.rowItems.length>t||e.colItems.length>t}function sG(e){return!!e.location.range&&(e.location.range.to.row-e.location.range.from.row+1)*(e.location.range.to.col-e.location.range.from.col+1)>tu.Z.PIVOT_TABLE_MAX_CELL_COUNT}function sZ(e,t){let i=t.getSheetById(e.sheetId);return i?new eR({sheetId:i.sheetId,shName:i.getName()||""},e.range.from,e.range.to).toLabel():""}function sj(e,t){let i=eR.create(e,t);return i?{sheetId:i.sheetInfo?.sheetId||t.sheetId,range:{from:i.from,to:i.to}}:null}class sq{static getName(){return"Action"}constructor(){this.userSels=void 0}pushToQueue(){return!0}_toData(){return this.getRedoCommand()}toData(){return this._toData()}needInstance(){return!1}needSync(){return!0}needLockUI(){return!1}setSelections(e){this.userSels=e}getSelections(){return this.userSels}serialize(){return{name:this.constructor.getName(),args:this.dumpArgs()}}}class sK extends sq{static getName(){return"CompoundedAction"}constructor(e){super(),this.actions=e}needInstance(){return this.actions.some(e=>e.needInstance())}needLockUI(){return this.actions.some(e=>e.needLockUI())}getUndoCommand(){return nE(this.actions.map(e=>e.getUndoCommand()).reverse())}getRedoCommand(){return nE(this.actions.map(e=>e.getRedoCommand()))}_toData(){return nE(this.actions.filter(e=>e.needSync()).map(e=>e.toData()))}*iterateActions(){for(let e of this.actions)yield e}dumpArgs(){return[this.actions.map(e=>e.serialize())]}}class sX{static getOld(e){let t=[];for(let i=0,n=e.length;i<n;i++){let n=e[i];t.push([n[0],n[1],n[2]])}return t}static getNew(e){let t=[];for(let i=0,n=e.length;i<n;i++){let n=e[i];t.push([n[0],n[1],n[3]])}return t}}class sQ extends sq{constructor(e){super(),this.sheetId=e}needInstance(){return!0}}class s$ extends sQ{static getName(){return"ChangeAction"}constructor(e,t,i,n){super(e),this.changes=t,this.nfRefs=i??[],this.nfs=n??[]}getUndoCommand(){return nR(this.sheetId,sX.getOld(this.changes),tL.Undo)}getRedoCommand(){return nR(this.sheetId,sX.getNew(this.changes),tL.Redo)}_toData(){return nD(this.sheetId,sX.getNew(this.changes),this.nfRefs,this.nfs)}fillNumberFormats(e){e(this.changes,this.nfRefs,this.nfs)}dumpArgs(){return[this.sheetId,this.changes,this.nfRefs,this.nfs]}}class sJ extends sQ{constructor(e,t,i,n,o,r,a){super(e),this.isInsert=t,this.type=i,this.index=n,this.amount=o,this.refIndex=r,this.data=a?(0,tl.I8)(a):void 0}getUndoCommand(){let e=!this.data||this.isInsert?void 0:(0,tl.I8)(this.data);return this.isInsert?nB(this.sheetId,this.type,this.index,this.amount,-1,e):nL(this.sheetId,this.type,this.index,this.amount,-1,e)}getRedoCommand(){let e=this.data&&this.isInsert?(0,tl.I8)(this.data):void 0;return this.isInsert?nL(this.sheetId,this.type,this.index,this.amount,this.refIndex,e):nB(this.sheetId,this.type,this.index,this.amount,this.refIndex,e)}dumpArgs(){let e=this.data;return[this.sheetId,this.index,this.amount,this.isInsert?this.refIndex:e,this.isInsert?e:void 0]}}class s0 extends sJ{static getName(){return"CreateRowAction"}constructor(e,t,i,n,o){super(e,!0,"row",t,i,n,o)}fillNumberFormats(e){this.data&&this.data.nfRefs&&this.data.nfs&&e(this.data.changes,this.data.nfRefs,this.data.nfs)}}class s1 extends sJ{static getName(){return"CreateColumnAction"}constructor(e,t,i,n,o){super(e,!0,"col",t,i,n,o)}fillNumberFormats(e){this.data&&this.data.nfRefs&&this.data.nfs&&e(this.data.changes,this.data.nfRefs,this.data.nfs)}}class s2 extends sJ{static getName(){return"RemoveRowAction"}constructor(e,t,i,n){super(e,!1,"row",t,i,-1,n)}}class s3 extends sJ{static getName(){return"RemoveColumnAction"}constructor(e,t,i,n){super(e,!1,"col",t,i,-1,n)}}class s4 extends sQ{constructor(e,t,i,n,o,r){super(e),this.type=t,this.from=i,this.to=n,this.oldSize=o||null,this.newSize=r||null}getUndoCommand(){return nP(this.sheetId,this.type,this.from,this.to,this.oldSize)}getRedoCommand(){return nP(this.sheetId,this.type,this.from,this.to,this.newSize)}dumpArgs(){return[this.sheetId,this.from,this.to,this.oldSize,this.newSize]}}class s5 extends s4{static getName(){return"ResizeRowAction"}constructor(e,t,i,n,o){super(e,"row",t,i,n,o)}}class s6 extends s4{static getName(){return"ResizeColumnAction"}constructor(e,t,i,n,o){super(e,"col",t,i,n,o)}}class s8 extends sQ{static getName(){return"StyleChangeAction"}constructor(e,t,i,n){super(e),this.type=t,this.changes=i,this.overwrite=n}getUndoCommand(){return nH(this.sheetId,this.type,sX.getOld(this.changes),!0,tL.Undo)}getRedoCommand(){return nH(this.sheetId,this.type,sX.getNew(this.changes),this.overwrite,tL.Redo)}_toData(){return nH(this.sheetId,this.type,sX.getNew(this.changes),this.overwrite)}dumpArgs(){return[this.sheetId,this.type,this.changes,this.overwrite]}}class s7 extends sQ{static getName(){return"MergeCellAction"}constructor(e,t){super(e),this.range=t}getUndoCommand(){return nF(this.sheetId,!1,this.range)}getRedoCommand(){return nF(this.sheetId,!0,this.range)}dumpArgs(){return[this.sheetId,this.range]}}class s9 extends s7{static getName(){return"UnmergeCellAction"}getUndoCommand(){return super.getRedoCommand()}getRedoCommand(){return super.getUndoCommand()}}class le extends sQ{constructor(e,t,i,n){super(e),this.type=t,this.newValue=i,this.oldValue=n}getUndoCommand(){return nK(this.sheetId,this.type,this.oldValue)}getRedoCommand(){return nK(this.sheetId,this.type,this.newValue)}dumpArgs(){return[this.sheetId,this.newValue,this.oldValue]}}class lt extends le{static getName(){return"FixedRowAction"}constructor(e,t,i){super(e,"row",t,i)}}class li extends le{static getName(){return"FixedColAction"}constructor(e,t,i){super(e,"col",t,i)}}class ln extends sQ{constructor(e,t,i,n,o){super(e),this.hidden=t,this.type=i,this.from=n,this.to=o}getUndoCommand(){return nX(this.sheetId,!this.hidden,this.type,this.from,this.to)}getRedoCommand(){return nX(this.sheetId,this.hidden,this.type,this.from,this.to)}dumpArgs(){return[this.sheetId,this.from,this.to]}}class lo extends ln{static getName(){return"HideRowsAction"}constructor(e,t,i){super(e,!0,"row",t,i)}}class lr extends ln{static getName(){return"ShowRowsAction"}constructor(e,t,i){super(e,!1,"row",t,i)}}class la extends ln{static getName(){return"HideColsAction"}constructor(e,t,i){super(e,!0,"col",t,i)}}class ls extends ln{static getName(){return"ShowColsAction"}constructor(e,t,i){super(e,!1,"col",t,i)}}class ll extends sQ{static getName(){return"SortAction"}constructor(e,t,i,n,o){super(e),this.range=i,this.rowOrder=t,this.collectedData=n,this.applyData=o}getUndoCommand(){let e=Array(this.rowOrder.length);for(let t=0,i=this.rowOrder.length;t<i;t++)e[this.rowOrder[t]]=t;return oi(this.sheetId,e,this.range,this.collectedData)}getRedoCommand(){return oi(this.sheetId,this.rowOrder,this.range)}_toData(){return oi(this.sheetId,this.rowOrder,this.range,this.applyData)}dumpArgs(){return[this.sheetId,this.rowOrder,this.range,this.collectedData,this.applyData]}}class lc extends sQ{static getName(){return"NoteChangeAction"}constructor(e,t){super(e),this.changes=t}getUndoCommand(){return nO(this.sheetId,sX.getOld(this.changes))}getRedoCommand(){return nO(this.sheetId,sX.getNew(this.changes))}dumpArgs(){return[this.sheetId,this.changes]}}class ld extends sQ{static getName(){return"CreateFilterAction"}constructor(e,t,i){super(e),this.range=t,this.filterId=i}getUndoCommand(){return n$(this.sheetId,this.filterId,!1,!1)}getRedoCommand(){return n$(this.sheetId,this.filterId,!0,!1,{})}_toData(){return nQ(this.sheetId,this.filterId,this.range)}dumpArgs(){return[this.sheetId,this.range,this.filterId]}}class lu extends sQ{static getName(){return"EnableFilterAction"}constructor(e,t,i){super(e),this.filterId=t,this.hide=i.hide||[]}getUndoCommand(){return n$(this.sheetId,this.filterId,!1,!1)}getRedoCommand(){return n$(this.sheetId,this.filterId,!0,!1,{hide:this.hide})}dumpArgs(){return[this.sheetId,this.filterId,{hide:this.hide}]}}class lh extends sQ{static getName(){return"DisableFilterAction"}constructor(e,t,i){super(e),this.filterId=t,this.show=i.show||[]}getUndoCommand(){return n$(this.sheetId,this.filterId,!0,!1,{hide:this.show})}getRedoCommand(){return n$(this.sheetId,this.filterId,!1,!1)}_toData(){return n$(this.sheetId,this.filterId,!1,!1,{show:this.show})}dumpArgs(){return[this.sheetId,this.filterId,{show:this.show}]}}class lp extends sQ{static getName(){return"SetFilterAction"}constructor(e,t,i,n,o,r){super(e),this.filterId=t,this.col=i,this.newCondition=n,this.oldCondition=o,this.show=r.show||[],this.hide=r.hide||[]}getUndoCommand(){return nJ(this.sheetId,this.filterId,!1,this.col,this.oldCondition,{show:this.hide,hide:this.show})}getRedoCommand(){return nJ(this.sheetId,this.filterId,!1,this.col,this.newCondition,{show:this.show,hide:this.hide})}dumpArgs(){return[this.sheetId,this.filterId,this.col,this.newCondition,this.oldCondition,{show:this.show,hide:this.hide}]}}class lf extends sQ{static getName(){return"UpdateFilterRangeAction"}constructor(e,t,i,n,o,r){super(e),this.filterId=t,this.oldRange=i??null,this.newRange=n??null,this.oldConditions=o,this.newConditions=r}getUndoCommand(){return n0(this.sheetId,this.filterId,!1,this.oldRange,this.oldConditions)}getRedoCommand(){return n0(this.sheetId,this.filterId,!1,this.newRange)}_toData(){return n0(this.sheetId,this.filterId,!1,this.newRange,this.newConditions)}dumpArgs(){return[this.sheetId,this.filterId,this.oldRange,this.newRange,this.oldConditions,this.newConditions]}}class lg extends sQ{constructor(e,t,i){super(e),this.filterId=t,this.isPrivate=i}needSync(){return!this.isPrivate}dumpArgs(){return[this.sheetId,this.filterId,this.isPrivate]}}class lm extends lg{getUndoCommand(){return n$(this.sheetId,this.filterId,!1,!0)}getRedoCommand(){return n$(this.sheetId,this.filterId,!0,!0)}}class lv extends lm{static getName(){return"CreateFilterViewAction"}constructor(e,t,i,n,o){super(e,t,o),this.range=i,this.name=n}_toData(){return n1(this.sheetId,this.filterId,this.range,this.name,this.isPrivate)}dumpArgs(){return[this.sheetId,this.filterId,this.range,this.name,this.isPrivate]}}class lb extends lm{static getName(){return"EnableFilterViewAction"}_toData(){return this.getRedoCommand()}}class ly extends lb{static getName(){return"DisableFilterViewAction"}getUndoCommand(){return super.getRedoCommand()}getRedoCommand(){return super.getUndoCommand()}}class lw extends lg{static getName(){return"SetFilterViewConditionAction"}constructor(e,t,i,n,o,r){super(e,t,r),this.col=i,this.oldCondition=n,this.newCondition=o}getUndoCommand(){return nJ(this.sheetId,this.filterId,!0,this.col,this.oldCondition)}getRedoCommand(){return nJ(this.sheetId,this.filterId,!0,this.col,this.newCondition)}dumpArgs(){return[this.sheetId,this.filterId,this.col,this.oldCondition,this.newCondition,this.isPrivate]}}class l_ extends lg{static getName(){return"UpdateFilterViewNameAction"}constructor(e,t,i,n,o){super(e,t,o),this.oldName=i,this.newName=n}getUndoCommand(){return n2(this.sheetId,this.filterId,this.oldName)}getRedoCommand(){return n2(this.sheetId,this.filterId,this.newName)}dumpArgs(){return[this.sheetId,this.filterId,this.oldName,this.newName,this.isPrivate]}}class lx extends lg{static getName(){return"UpdateFilterViewRangeAction"}constructor(e,t,i,n,o,r,a){super(e,t,a),this.oldRange=i??null,this.newRange=n??null,this.oldConditions=o,this.newConditions=r}getUndoCommand(){return n0(this.sheetId,this.filterId,!0,this.oldRange,this.oldConditions)}getRedoCommand(){return n0(this.sheetId,this.filterId,!0,this.newRange)}_toData(){return n0(this.sheetId,this.filterId,!0,this.newRange,this.newConditions)}dumpArgs(){return[this.sheetId,this.filterId,this.oldRange,this.newRange,this.oldConditions,this.newConditions,this.isPrivate]}}class lS extends sQ{static getName(){return"SetActiveFilterViewAction"}constructor(e,t,i){super(e),this.oldId=t,this.newId=i}needSync(){return!1}getUndoCommand(){return n4(this.sheetId,this.oldId)}getRedoCommand(){return n4(this.sheetId,this.newId)}dumpArgs(){return[this.sheetId,this.oldId,this.newId]}}class lC extends sQ{constructor(e,t,i){super(e),this.validation=t,this.rangeText=i}createRemoveValidationCommand(){return n8(this.sheetId,this.validation.validId,this.rangeText)}createCreateValidationCommand(){return n6(this.sheetId,this.validation,this.rangeText)}dumpArgs(){return[this.sheetId,this.validation,this.rangeText]}}class lk extends lC{static getName(){return"CreateValidAction"}getUndoCommand(){return this.createRemoveValidationCommand()}getRedoCommand(){return this.createCreateValidationCommand()}}class lI extends lC{static getName(){return"RemoveValidAction"}constructor(e,t,i){super(e,{validId:t},i)}getUndoCommand(){return this.createCreateValidationCommand()}getRedoCommand(){return this.createRemoveValidationCommand()}dumpArgs(){return[this.sheetId,this.validation.validId,this.rangeText]}}class lA extends sQ{constructor(e,t,i){super(e),this.cf=t,this.index=i}createRemoveCfCommand(){return oe(this.sheetId,this.cf.cfId)}createCreateCfCommand(){return n9(this.sheetId,this.cf,this.index)}dumpArgs(){return[this.sheetId,this.cf,this.index]}}class lT extends lA{static getName(){return"CreateCfAction"}getUndoCommand(){return this.createRemoveCfCommand()}getRedoCommand(){return this.createCreateCfCommand()}}class lE extends lA{static getName(){return"RemoveCfAction"}getUndoCommand(){return this.createCreateCfCommand()}getRedoCommand(){return this.createRemoveCfCommand()}}class lR extends sQ{static getName(){return"UpdateCfRangesAction"}constructor(e,t,i,n){super(e),this.cfId=t,this.ranges=i,this.oldRanges=n}getUndoCommand(){return ot(this.sheetId,this.cfId,this.oldRanges)}getRedoCommand(){return ot(this.sheetId,this.cfId,this.ranges)}dumpArgs(){return[this.sheetId,this.cfId,this.ranges,this.oldRanges]}}class lD extends sQ{constructor(e,t,i){super(e),this.imageId=t,this.position=i}createRemoveImageCommand(){return or(this.sheetId,this.imageId)}createImageCommand(){return on(this.sheetId,this.imageId,this.position)}dumpArgs(){return[this.sheetId,this.imageId,this.position]}}class lO extends lD{static getName(){return"InsertImageAction"}getUndoCommand(){return this.createRemoveImageCommand()}getRedoCommand(){return this.createImageCommand()}}class lM extends lD{static getName(){return"RemoveImageAction"}getUndoCommand(){return this.createImageCommand()}getRedoCommand(){return this.createRemoveImageCommand()}}class lN extends sQ{static getName(){return"ResizeImageAction"}constructor(e,t,i,n){super(e),this.imageId=t,this.oldPosition=i,this.newPosition=n}getUndoCommand(){return oo(this.sheetId,this.imageId,this.oldPosition)}getRedoCommand(){return oo(this.sheetId,this.imageId,this.newPosition)}dumpArgs(){return[this.sheetId,this.imageId,this.oldPosition,this.newPosition]}}class lP extends sQ{constructor(e,t,i,n){super(e),this.chartId=t,this.position=i,this.chartObj=n}createRemoveChartCommand(){return os(this.sheetId,this.chartId)}createInsertChartCommand(){return oa(this.sheetId,this.chartId,this.position,this.chartObj)}dumpArgs(){return[this.sheetId,this.chartId,this.position,this.chartObj]}}class lL extends lP{static getName(){return"InsertChartAction"}getUndoCommand(){return this.createRemoveChartCommand()}getRedoCommand(){return this.createInsertChartCommand()}}class lB extends lP{static getName(){return"RemoveChartAction"}getUndoCommand(){return this.createInsertChartCommand()}getRedoCommand(){return this.createRemoveChartCommand()}}class lF extends sQ{static getName(){return"ResizeChartAction"}constructor(e,t,i,n){super(e),this.chartId=t,this.oldPosition=i,this.newPosition=n}getUndoCommand(){return ol(this.sheetId,this.chartId,this.oldPosition)}getRedoCommand(){return ol(this.sheetId,this.chartId,this.newPosition)}dumpArgs(){return[this.sheetId,this.chartId,this.oldPosition,this.newPosition]}}class lV extends sQ{static getName(){return"AdjustChartAction"}constructor(e,t,i,n){super(e),this.chartId=t,this.oldChartObj=i,this.newChartObj=n}getUndoCommand(){return oc(this.sheetId,this.chartId,this.oldChartObj)}getRedoCommand(){return oc(this.sheetId,this.chartId,this.newChartObj)}dumpArgs(){return[this.sheetId,this.chartId,this.oldChartObj,this.newChartObj]}}class lz extends sQ{static getName(){return"SetChartConfigAction"}constructor(e,t,i,n,o){super(e),this.chartId=t,this.name=i,this.args=n,this.invertCmd=o}getUndoCommand(){let e=this.invertCmd.map(e=>{let{name:t,args:i}=e;return od(this.sheetId,this.chartId,t,i)});return 1===e.length?e[0]:nE(e.reverse())}getRedoCommand(){return od(this.sheetId,this.chartId,this.name,this.args)}dumpArgs(){return[this.sheetId,this.chartId,this.name,this.args,this.invertCmd]}}class lH extends sq{needInstance(){return!1}}class lW extends lH{constructor(e){super(),this.json=e}pushToQueue(){return!1}dumpArgs(){return[this.json]}}class lY extends lW{static getName(){return"CreateCommentAction"}getUndoCommand(){return oD(this.json.author,this.json.id,this.json.id,null)}getRedoCommand(){return oO(this.json)}}class lU extends lW{static getName(){return"ReplyCommentAction"}getUndoCommand(){return oD(this.json.author,this.json.target,this.json.id,null)}getRedoCommand(){return oM(this.json)}}class lG extends lW{static getName(){return"ReopenCommentAction"}getUndoCommand(){throw Error("cant undo")}getRedoCommand(){return oN(this.json)}}class lZ extends lW{static getName(){return"ResolveCommentAction"}getUndoCommand(){throw Error("cant undo")}getRedoCommand(){return oP(this.json)}}class lj extends lW{static getName(){return"EditCommentAction"}getUndoCommand(){throw Error("cant undo")}getRedoCommand(){return oL(this.json)}}class lq extends lH{constructor(e){super(),this.jsonArray=e}getClearCommand(){return oF(this.jsonArray)}getPasteCommand(){return oB(this.jsonArray)}dumpArgs(){return[this.jsonArray]}}class lK extends lq{static getName(){return"PasteCommentAction"}getUndoCommand(){return this.getClearCommand()}getRedoCommand(){return this.getPasteCommand()}}class lX extends lq{static getName(){return"ClearCommentAction"}getUndoCommand(){return this.getPasteCommand()}getRedoCommand(){return this.getClearCommand()}}function lQ(e,t){return e.map(e=>[e[0],e[t]])}class l$ extends sQ{static getName(){return"DimensionStyleChangeAction"}constructor(e,t,i,n,o,r){super(e),this.type=i,this.dim=t,this.changes=n,this.revert=o,this.cellChanges=r}getUndoCommand(){return nW(this.sheetId,this.dim,this.type,lQ(this.changes,1),!0,sX.getOld(this.cellChanges),tL.Undo)}getRedoCommand(){return nW(this.sheetId,this.dim,this.type,lQ(this.changes,2),!1,void 0,tL.Redo)}_toData(){return nW(this.sheetId,this.dim,this.type,lQ(this.changes,2),this.revert,this.revert?sX.getNew(this.cellChanges):void 0)}dumpArgs(){return[this.sheetId,this.dim,this.type,this.changes,this.revert,this.cellChanges]}}class lJ extends sQ{static getName(){return"GlobalStyleChangeAction"}constructor(e,t,i,n,o,r,a){super(e),this.type=t,this.change=i,this.revert=n,this.rowChanges=o,this.colChanges=r,this.cellChanges=a}getUndoCommand(){return nY(this.sheetId,this.type,this.change[0],!0,sX.getOld(this.cellChanges),lQ(this.rowChanges,1),lQ(this.colChanges,1),tL.Undo)}getRedoCommand(){return nY(this.sheetId,this.type,this.change[1],!1,void 0,void 0,void 0,tL.Redo)}_toData(){return nY(this.sheetId,this.type,this.change[1],this.revert,this.revert?sX.getNew(this.cellChanges):void 0,this.revert?lQ(this.rowChanges,2):void 0,this.revert?lQ(this.colChanges,2):void 0)}dumpArgs(){return[this.sheetId,this.type,this.change,this.revert,this.rowChanges,this.colChanges,this.cellChanges]}}class l0 extends sq{needInstance(){return!1}}class l1 extends l0{constructor(e,t,i){super(),this.name=e,this.value=t,this.scope=i}createRemoveDefineCommand(){return oW(this.name,this.scope)}createCreateDefineCommand(){return oH(this.name,this.value,this.scope)}dumpArgs(){return[this.name,this.value,this.scope]}}class l2 extends l1{static getName(){return"CreateDefinedNameAction"}getUndoCommand(){return this.createRemoveDefineCommand()}getRedoCommand(){return this.createCreateDefineCommand()}}class l3 extends l1{static getName(){return"RemoveDefinedNameAction"}getUndoCommand(){return this.createCreateDefineCommand()}getRedoCommand(){return this.createRemoveDefineCommand()}}class l4 extends l0{static getName(){return"ModifyDefinedNameAction"}constructor(e){super(),[this.oldName,this.newName]=e.name,[this.oldValue,this.newValue]=e.value,this.scope=e.scope}getUndoCommand(){return oY(this.newName,{name:this.oldName,value:this.oldValue},this.scope)}getRedoCommand(){return oY(this.oldName,{name:this.newName,value:this.newValue},this.scope)}dumpArgs(){return[{name:[this.oldName,this.newName],value:[this.oldValue,this.newValue]},this.scope]}}class l5 extends sQ{constructor(e,t,i,n,o){super(e),this.dim=t,this.start=i.sec[0].start,this.amount1=i.sec[0].amount,this.amount2=i.sec[1].amount,this.isBackward=i.isBackward,this.data=n,this.collectedData=o}getUndoCommand(){return of(this.sheetId,this.dim,this.start,this.amount2,this.amount1,!this.isBackward,this.collectedData)}getRedoCommand(){return of(this.sheetId,this.dim,this.start,this.amount1,this.amount2,this.isBackward)}_toData(){return of(this.sheetId,this.dim,this.start,this.amount1,this.amount2,this.isBackward,this.data)}dumpArgs(){return[this.sheetId,ae(this.start,this.amount1,this.amount2,this.isBackward),this.data,this.collectedData]}}class l6 extends l5{static getName(){return"MoveRowAction"}constructor(e,t,i,n){super(e,"row",t,i,n)}}class l8 extends l5{static getName(){return"MoveColAction"}constructor(e,t,i,n){super(e,"col",t,i,n)}}class l7 extends sQ{static getName(){return"MoveFormulaRangeAction"}constructor(e,t,i,n,o,r,a){super(e),this.srcSheetId=e,this.srcRange=t,this.targetSheetId=i,this.targetRange=n,this.keepMovingPart=o,this.applyData=r,this.collectedData=a}getUndoCommand(){return ob(this.targetSheetId,this.targetRange,this.srcSheetId,this.srcRange,this.keepMovingPart,this.collectedData)}getRedoCommand(){return ob(this.srcSheetId,this.srcRange,this.targetSheetId,this.targetRange,this.keepMovingPart)}_toData(){return ob(this.srcSheetId,this.srcRange,this.targetSheetId,this.targetRange,this.keepMovingPart,this.applyData)}dumpArgs(){return[this.sheetId,this.srcRange,this.targetSheetId,this.targetRange,this.keepMovingPart,this.applyData,this.collectedData]}}class l9 extends sQ{static getName(){return"RemoveFormulaRangeAction"}constructor(e,t,i,n){super(e),this.srcSheetId=e,this.srcRange=t,this.applyData=i,this.collectedData=n}getUndoCommand(){return oy(this.srcSheetId,this.srcRange,this.collectedData)}getRedoCommand(){return oy(this.srcSheetId,this.srcRange)}_toData(){return oy(this.srcSheetId,this.srcRange,this.applyData)}dumpArgs(){return[this.sheetId,this.srcRange,this.applyData,this.collectedData]}}class ce extends sQ{constructor(e,t){super(e),this.json=t}createRemoveInternalLinkCommand(){return ox(this.sheetId,this.json.id)}createHyperlinkCommand(){return ow(this.sheetId,this.json)}dumpArgs(){return[this.sheetId,this.json]}}class ct extends ce{static getName(){return"AddInternalLinkAction"}getUndoCommand(){return this.createRemoveInternalLinkCommand()}getRedoCommand(){return this.createHyperlinkCommand()}}class ci extends sQ{static getName(){return"UpdateInternalLinkAction"}constructor(e,t,i){super(e),this.json=t,this.oldJson=i}getUndoCommand(){return o_(this.sheetId,this.oldJson)}getRedoCommand(){return o_(this.sheetId,this.json)}dumpArgs(){return[this.sheetId,this.json,this.oldJson]}}class cn extends ce{static getName(){return"RemoveInternalLinkAction"}getUndoCommand(){return this.createHyperlinkCommand()}getRedoCommand(){return this.createRemoveInternalLinkCommand()}}class co extends sQ{constructor(e,t,i,n){super(e),this.type=t,this.from=i,this.to=n}createGroupCommand(){return oS(this.sheetId,this.type,this.from,this.to)}createUngroupCommand(){return oC(this.sheetId,this.type,this.from,this.to)}dumpArgs(){return[this.sheetId,this.type,this.from,this.to]}}class cr extends co{static getName(){return"GroupAction"}getUndoCommand(){return super.createUngroupCommand()}getRedoCommand(){return super.createGroupCommand()}}class ca extends co{static getName(){return"UngroupAction"}getUndoCommand(){return super.createGroupCommand()}getRedoCommand(){return super.createUngroupCommand()}}class cs extends sQ{static getName(){return"UpdateGroupAction"}constructor(e,t,i,n,o){super(e),this.type=t,this.from=i,this.newLevels=n,this.oldLevels=o}getUndoCommand(){return ok(this.sheetId,this.type,this.from,this.oldLevels)}getRedoCommand(){return ok(this.sheetId,this.type,this.from,this.newLevels)}dumpArgs(){return[this.sheetId,this.type,this.from,this.newLevels,this.oldLevels]}}class cl extends sQ{static getName(){return"SetCollapseAction"}constructor(e,t,i,n,o){super(e),this.type=t,this.index=i,this.newCollapse=n,this.oldCollapse=o}getUndoCommand(){return oI(this.sheetId,this.type,this.index,this.oldCollapse)}getRedoCommand(){return oI(this.sheetId,this.type,this.index,this.newCollapse)}dumpArgs(){return[this.sheetId,this.type,this.index,this.newCollapse,this.oldCollapse]}}class cc extends sQ{static getName(){return"SetWorksheetRtlAction"}constructor(e,t){super(e),this.rtl=t}getUndoCommand(){return oA(this.sheetId,!this.rtl)}getRedoCommand(){return oA(this.sheetId,this.rtl)}dumpArgs(){return[this.sheetId,this.rtl]}}class cd extends sq{needInstance(){return!1}}class cu extends cd{constructor(e){super(),this.rule=e}createRemoveRuleCommand(){return oK(this.rule.ruleId)}createCreateRuleCommand(){return oj(this.rule)}dumpArgs(){return[this.rule]}}class ch extends cu{static getName(){return"CreateRuleAction"}getUndoCommand(){return this.createRemoveRuleCommand()}getRedoCommand(){return this.createCreateRuleCommand()}}class cp extends cd{static getName(){return"UpdateRuleAction"}constructor(e,t,i){super(),this.ruleId=e,this.originalProps=t,this.props=i}getUndoCommand(){return oq(this.ruleId,this.originalProps)}getRedoCommand(){return oq(this.ruleId,this.props)}dumpArgs(){return[this.ruleId,this.originalProps,this.props]}}class cf extends cu{static getName(){return"RemoveRuleAction"}getUndoCommand(){return this.createCreateRuleCommand()}getRedoCommand(){return this.createRemoveRuleCommand()}}class cg extends sq{pushToQueue(){return!1}getUndoCommand(){throw Error("cant undo")}getRedoCommand(){throw Error("cant redo")}needInstance(){return!1}}class cm extends cg{static getName(){return"UpdateExternalLinks"}constructor(e){super(),this.entry=e}_toData(){return oV(this.entry)}dumpArgs(){return[this.entry]}}class cv extends cg{static getName(){return"RemoveExternalLinks"}constructor(e){super(),this.linkIds=e}_toData(){return oz(this.linkIds)}dumpArgs(){return[this.linkIds]}}class cb extends sq{needInstance(){return!1}_toData(){return this.getRedoCommand()}toData(){return this._toData()}needLockUI(){return!0}}class cy extends cb{constructor(e){super(),this.actions=e}static getName(){return"PivotCompoundAction"}needInstance(){return this.actions.some(e=>e.needInstance())}getUndoCommand(){return oX(this.actions.map(e=>e.getUndoCommand()).reverse())}getRedoCommand(){return oX(this.actions.map(e=>e.getRedoCommand()))}_toData(){return oX(this.actions.filter(e=>e.needSync()).map(e=>e.toData()))}*iterateActions(){for(let e of this.actions)yield e}dumpArgs(){return[this.actions.map(e=>e.serialize())]}}class cw extends cb{constructor(e,t){super(),this.table=e,this.cache=t}dumpArgs(){return[this.table,this.cache]}}class c_ extends cw{static getName(){return"CreatePivotTableAction"}getUndoCommand(){return o$(this.table.id)}getRedoCommand(){return oQ(this.table,this.cache)}}class cx extends cw{static getName(){return"DeletePivotTableAction"}getUndoCommand(){return oQ(this.table,this.cache)}getRedoCommand(){return o$(this.table.id)}}class cS extends cb{static getName(){return"UpdatePivotTableAction"}constructor(e,t,i,n){super(),this.oldTable=e,this.newTable=t,this.oldCache=i,this.newCache=n}getUndoCommand(){return oJ(this.oldTable,this.oldCache)}getRedoCommand(){return oJ(this.newTable,this.newCache)}dumpArgs(){return[this.oldTable,this.newTable,this.oldCache,this.newCache]}}class cC extends cb{static getName(){return"MovePivotTableAction"}constructor(e,t,i,n,o){super(),this.tableId=e,this.oldSheetId=t,this.oldCoord=i,this.sheetId=n,this.coord=o}getUndoCommand(){return o0(this.tableId,this.oldSheetId,this.oldCoord)}getRedoCommand(){return o0(this.tableId,this.sheetId,this.coord)}dumpArgs(){return[this.tableId,this.oldSheetId,this.oldCoord,this.sheetId,this.coord]}}class ck extends cb{static getName(){return"SetPivotTableCaptionAction"}constructor(e,t,i,n){super(),this.tableId=e,this.key=t,this.oldValue=i,this.newValue=n}getUndoCommand(){return o1(this.tableId,this.key,this.oldValue)}getRedoCommand(){return o1(this.tableId,this.key,this.newValue)}dumpArgs(){return[this.tableId,this.key,this.oldValue,this.newValue]}}class cI extends cb{static getName(){return"MovePivotAxisFieldAction"}constructor(e,t,i,n,o,r,a){super(),this.tableId=e,this.fieldId=t,this.oldPosition=i,this.newPosition=n,this.coordShift=o,this.oldFilter=r,this.newFilter=a}getReversedShift(){return this.coordShift&&{row:-this.coordShift.row,col:-this.coordShift.col}}getUndoCommand(){return o2(this.tableId,this.fieldId,this.oldPosition.axis,this.oldPosition.position,this.getReversedShift(),this.oldFilter)}getRedoCommand(){return o2(this.tableId,this.fieldId,this.newPosition.axis,this.newPosition.position,this.coordShift,this.newFilter)}dumpArgs(){return[this.tableId,this.fieldId,this.oldPosition,this.newPosition,this.coordShift,this.oldFilter,this.newFilter]}}class cA extends cb{static getName(){return"InsertPivotDataFieldAction"}constructor(e,t,i){super(),this.tableId=e,this.dataField=t,this.position=i}getUndoCommand(){return o5(this.tableId,this.dataField.id)}getRedoCommand(){return o3(this.tableId,this.dataField.fieldId,this.position,this.dataField)}dumpArgs(){return[this.tableId,this.dataField,this.position]}}class cT extends cb{static getName(){return"MovePivotDataFieldAction"}constructor(e,t,i,n){super(),this.tableId=e,this.dataFieldId=t,this.oldPosition=i,this.newPosition=n}getUndoCommand(){return o4(this.tableId,this.dataFieldId,this.oldPosition)}getRedoCommand(){return o4(this.tableId,this.dataFieldId,this.newPosition)}dumpArgs(){return[this.tableId,this.dataFieldId,this.oldPosition,this.newPosition]}}class cE extends cb{static getName(){return"RemovePivotDataFieldAction"}constructor(e,t,i){super(),this.tableId=e,this.dataField=t,this.position=i}getUndoCommand(){return o3(this.tableId,this.dataField.fieldId,this.position,this.dataField)}getRedoCommand(){return o5(this.tableId,this.dataField.id)}dumpArgs(){return[this.tableId,this.dataField,this.position]}}class cR extends cb{static getName(){return"SetPivotFieldAttrAction"}constructor(e,t,i){super(),this.tableId=e,this.fieldId=t,this.changes=i}getUndoCommand(){return o6(this.tableId,this.fieldId,this.changes.map(e=>{let[t,i,n]=e;return[t,i]}))}getRedoCommand(){return o6(this.tableId,this.fieldId,this.changes.map(e=>{let[t,i,n]=e;return[t,n]}))}dumpArgs(){return[this.tableId,this.fieldId,this.changes]}}class cD extends cb{static getName(){return"SetPivotDataFieldAttrAction"}constructor(e,t,i){super(),this.tableId=e,this.fieldId=t,this.changes=i}getUndoCommand(){return o8(this.tableId,this.fieldId,this.changes.map(e=>{let[t,i,n]=e;return[t,i]}))}getRedoCommand(){return o8(this.tableId,this.fieldId,this.changes.map(e=>{let[t,i,n]=e;return[t,n]}))}dumpArgs(){return[this.tableId,this.fieldId,this.changes]}}class cO extends cb{static getName(){return"SetPivotFieldItemAttrAction"}constructor(e,t,i,n){super(),this.tableId=e,this.fieldId=t,this.changes=n,this.attr=i}getUndoCommand(){let e=this.changes.map(e=>{let[t,i,n]=e;return[t,i]});return o7(this.tableId,this.fieldId,this.attr,e)}getRedoCommand(){let e=this.changes.map(e=>{let[t,i,n]=e;return[t,n]});return o7(this.tableId,this.fieldId,this.attr,e)}dumpArgs(){return[this.tableId,this.fieldId,this.attr,this.changes]}}class cM extends cb{constructor(e,t){super(),this.tableId=e,this.changes=t}dumpArgs(){return[this.tableId,this.changes]}getChangesOld(){return this.changes.map(e=>({...e,changes:e.changes.map(e=>[e[0],e[1]]),itemsInfo:e.itemsInfo?.[0]??null})).reverse()}getChangesNew(){return this.changes.map(e=>({...e,changes:e.changes.map(e=>[e[0],e[2]]),itemsInfo:e.itemsInfo?.[1]??null}))}getGroupCommand(e){let t=e.map(e=>{let{fieldId:t,childFieldIds:i,changes:n,insertPosition:o,itemsInfo:r}=e;return{fieldId:t,childFieldIds:i,changes:n,insertPosition:o,itemsInfo:r}});return o9(this.tableId,t)}getUngroupCommand(e){let t=e.map(e=>{let{fieldId:t,changes:i,itemsInfo:n}=e;return{fieldId:t,changes:i,itemsInfo:n}});return re(this.tableId,t)}}class cN extends cM{static getName(){return"GroupPivotFieldItemAction"}getUndoCommand(){return this.getUngroupCommand(this.getChangesOld())}getRedoCommand(){return this.getGroupCommand(this.getChangesNew())}}class cP extends cM{static getName(){return"UngroupPivotFieldItemAction"}getUndoCommand(){return this.getGroupCommand(this.getChangesOld())}getRedoCommand(){return this.getUngroupCommand(this.getChangesNew())}}class cL extends cb{static getName(){return"SetPivotFieldNumberGroupAction"}constructor(e){super(),this.changesInfo=e}getUndoCommand(){let{tableId:e,fieldId:t,oldGrouping:i,oldItems:n}=this.changesInfo;return rt(e,t,i,n)}getRedoCommand(){let{tableId:e,fieldId:t,newGrouping:i,newItems:n}=this.changesInfo;return rt(e,t,i,n)}dumpArgs(){return[this.changesInfo]}}class cB extends cb{static getName(){return"SetPivotFieldDatetimeGroupAction"}constructor(e){super(),this.changesInfo=e}getUndoCommand(){let{tableId:e,fieldId:t,oldGrouping:i,oldPositions:n,oldItems:o}=this.changesInfo;return ri(e,t,i,n,void 0,o)}getRedoCommand(){let{tableId:e,fieldId:t,newGrouping:i,newPositions:n,newItems:o}=this.changesInfo;return ri(e,t,i,n,void 0,o)}dumpArgs(){return[this.changesInfo]}}let cF=[s$,s0,s2,s1,s3,s5,s6,s8,s7,s9,lt,li,lo,lr,la,ls,ll,lc,ld,lu,lh,lp,lf,lv,lb,ly,lw,l_,lx,lS,lk,lI,lT,lE,lR,lO,lM,lN,lL,lB,lF,lV,lz,lY,lU,lG,lZ,lK,lX,lj,l$,lJ,l6,l8,l7,l9,ct,ci,cn,cr,ca,cs,cl,cc,sK,l2,l3,l4,ch,cp,cf,cm,cv,cy,c_,cx,cS,cC,ck,cI,cA,cT,cE,cR,cD,cO,cN,cP,cL,cB].reduce((e,t)=>(e[t.getName()]=t,e),{});class cV extends E.EventEmitter{constructor(e){super(),this.createPivotTable=this.flushWhenSuccess(this._createPivotTable),this.deletePivotTable=this.flushWhenSuccess(this._deletePivotTable),this.updatePivotTable=this.flushWhenSuccess(this._updatePivotTable),this.movePivotTable=this.flushWhenSuccess(this._movePivotTable),this.setPivotTableCaption=this.flushWhenSuccess(this._setPivotTableCaption),this.movePivotAxisField=this.flushWhenSuccess(this._movePivotAxisField),this.insertPivotDataField=this.flushWhenSuccess(this._insertPivotDataField),this.movePivotDataField=this.flushWhenSuccess(this._movePivotDataField),this.removePivotDataField=this.flushWhenSuccess(this._removePivotDataField),this.setPivotFieldAttr=this.flushWhenSuccess(this._setPivotFieldAttr),this.setPivotDataFieldAttr=this.flushWhenSuccess(this._setPivotDataFieldAttr),this.setPivotFieldItemAttr=this.flushWhenSuccess(this._setPivotFieldItemAttr),this.groupPivotFieldItem=this.flushWhenSuccess(this._groupPivotFieldItem),this.ungroupPivotFieldItem=this.flushWhenSuccess(this._ungroupPivotFieldItem),this.setPivotFieldNumberGroup=this.flushWhenSuccess(this._setPivotFieldNumberGroup),this.setPivotFieldDatetimeGroup=this.flushWhenSuccess(this._setPivotFieldDatetimeGroup),this.workbook=e,this.caches=new Map,this.tables=new Map,this.modifiedTables=new Map}init(e){let{caches:t,tables:i}=e;if(t)for(let e of t)this._createCache(e);if(i)for(let e of i)this._createTable(e);this.registerHooks()}registerHooks(){let e=this.getWorkbook(),t=(t,i)=>e.hooks.add(t,function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return i(this,...t)});t("afterCreateRow",(e,t,i)=>{this.afterAlterGrid(e,"row",t,i)}),t("afterCreateCol",(e,t,i)=>{this.afterAlterGrid(e,"col",t,i)}),t("afterRemoveRow",(e,t,i)=>{this.afterAlterGrid(e,"row",t,-i)}),t("afterRemoveCol",(e,t,i)=>{this.afterAlterGrid(e,"col",t,-i)}),t("beforeMoveRow",(e,t,i,n)=>{this.beforeMove(e,"row",t,i,n)}),t("beforeMoveCol",(e,t,i,n)=>{this.beforeMove(e,"col",t,i,n)})}getPivotLocale(){return this.workbook.getLocale().getPivotLocale()}_createCache(e){this.getCacheById(e.id)||(this._setCache(e.id,new aJ(e,this.getPivotLocale())),this.workbook.getNotifier()?.onPivotCacheChange([e.id]))}_createTable(e){if(this.getTableById(e.id))return;let t=this.getCacheById(e.cacheId);t&&(this._setTable(e.id,new sF(t,e,this.getPivotLocale())),this.getWorkbook().getNotifier()?.onPivotTableChange([e.id]))}serialize(){return{caches:this.serializeCaches(),tables:this.serializeTables()}}serializeCaches(){return Array.from(this.caches.values()).map(e=>e.toJSON())}serializeTables(){return Array.from(this.tables.values()).map(e=>e.toJSON())}pickCacheJSON(e){return e.reduce((e,t)=>(e[t]=this.caches.get(t)?.toJSON(),e),{})}pickTableJSON(e){return e.reduce((e,t)=>(e[t]=this.tables.get(t)?.toJSON(),e),{})}getWorkbook(){return this.workbook}getCacheById(e){return this.caches.get(e)??null}getTableById(e){return this.tables.get(e)??null}_setCache(e,t){this.caches.set(e,t)}_setTable(e,t){this.tables.set(e,t)}_deleteCache(e){return this.caches.delete(e)}_deleteTable(e){return this.tables.delete(e)}getCacheCount(){return this.caches.size}listEmptyPivotRanges(e){return Array.from(this.tables.values()).filter(t=>t.getLocation().sheetId===e&&!t.hasAxisFields()).map(e=>e.getLocation().range)}hasPivotTable(e,t,i){for(let n of this.tables.values())if(sg(n.getLocation(),e,t,i))return!0;return!1}getPivotFieldItemNames(e,t,i){let n=this.getTableById(e);if(!n)return[];let o=n.getCache().getField(t),r=n.getPivotFieldById(t);if(!r||!o)return[];let a=this.getPivotLocale().getText("default_missing_item_label");return(i?a2(r.items.slice(),o.getItemsForPivotField()):r.items).map((e,t)=>{let i=i5(e);return Object.assign(i,{name:e.caption||aY(i,a)})})}getPivotFieldNames(e){let t=this.getTableById(e);if(!t)return{pivotFields:[],dataFields:[]};let i=t.getPivotFields(),n=t.getAxisFields("data");return{pivotFields:i.map(e=>({id:e.getId(),name:e.getName(),suffix:e.getSuffix()})),dataFields:n.map(e=>({id:e.id,name:e.name}))}}getPivotFieldRemainCount(e){let t=this.getTableById(e);if(!t)return 0;if(!(t.getCache().getRecords().length>tu.Z.PIVOT_TABLE_SIZE_WITH_ROW_COL_FIELD_COUNT_LIMIT))return Number.POSITIVE_INFINITY;let i=t.getAxisFields("row").length+t.getAxisFields("col").length-+(t.getAxisFields("data").length>1);return Math.max(tu.Z.PIVOT_TABLE_MAX_ROW_COL_FIELD_COUNT-i,0)}getTableDetailContent(e,t,i){return this.tables.get(e)?.getDetailContent(t,i)??null}isIncompatibleTable(e){let t=this.getTableById(e);return t?.isIncompatible()??!1}checkConvertMessages(e){let t=this.getTableById(e);if(!t||!t.isIncompatible())return[];let i=t.getCache(),n=t.toJSON(),o=i.toJSON(),r=[];return sW(o)&&r.push(aK.PIVOT_TABLE_CONVERT_TOO_MANY_RECORD),sY(n,o)&&r.push(aK.PIVOT_TABLE_CONVERT_TOO_MANY_FIELD),sU(n)&&r.push(aK.PIVOT_TABLE_CONVERT_TOO_MANY_ITEM),sG(n)&&r.push(aK.PIVOT_TABLE_CONVERT_TOO_MANY_CELL),r}convertIncompatibleTable(e){let t=this.getTableById(e);if(!t||!t.isIncompatible())return null;let i=t.getCache();return function(e,t){e=(0,tl.I8)(e),t=(0,tl.I8)(t);var i,n,o,r,a=e;for(let e of(a.styles.compact=!0,a.styles.outline=!0,a.styles.compactData=!0,a.styles.outlineData=!0,a.pivotFields))e.compact=!0,e.outline=!0;e.styles.mergeItem=!1;var s=e,l=t;for(let e=0;e<l.fields.length;e++){let t=l.fields[e];t.group?.type==="datetime"&&"number"==typeof t.group.grouping?.interval&&(t.group=void 0,s.pivotFields[e].items=a1(t.sharedItems.items))}for(let t of e.fields.data)t.displayType in no||(t.displayType="normal",t.baseField=null,t.baseItem=null);for(let t of e.pivotFields)Array.isArray(t.subtotals)&&(t.subtotals="default"),t.subtotalTop=!0;!function(e,t){let i=[],n=[];for(let o=0;o<t.fields.length;o++){let r=t.fields[o];r.formula||(i.push(r),n.push(e.pivotFields[o]))}let o=new Set(i.map(e=>e.id)),r=e.fields.data.filter(e=>o.has(e.fieldId));t.fields=i,e.pivotFields=n,e.fields.data=r}(e,t);var c=e,d=t;for(let e=0;e<c.fields.data.length;){let t=c.fields.data[e],i=d.fields.find(e=>e.id===t.fieldId)??null;if(i&&!1===i.fromData)if(i.group?.base)t.fieldId=i.group?.base;else{c.fields.data.splice(e,1);continue}e++}var u=e;for(let e of["row","col"]){let t=u.fields[e],i=t.findIndex(e=>e.fieldId===a4);if(i<t.length-1){let[e]=t.splice(i,1);t.push(e)}}for(let t of(i=e,delete i.styles.pageWrap,delete i.styles.pageDirection,delete i.location.pageColCount,delete i.location.pageRowCount,e.pivotFields))t.repeatLabel=!1,t.blankRow=!1,t.pageBreak=!1,t.showAll=!1;for(let t of e.pivotFields)"object"!=typeof t.filter&&(t.filter=null);return!function(e){if(!sW(e))return;let t=e.source.range.to.col-e.source.range.from.col+1,i=Math.floor(tu.Z.PIVOT_TABLE_MAX_SOURCE_SIZE/t)-1;e.source.range.to.row=e.source.range.from.row+i,e.records.splice(i)}(t),sY(n=e,t)&&(n.fields.row=n.fields.row.filter(e=>e.fieldId===a4),n.fields.col=n.fields.col.filter(e=>e.fieldId===a4)),sU(o=e)&&(o.fields.row=o.fields.row.filter(e=>e.fieldId===a4),o.fields.col=o.fields.col.filter(e=>e.fieldId===a4)),sG(r=e)&&(r.fields.row=r.fields.row.filter(e=>e.fieldId===a4),r.fields.col=r.fields.col.filter(e=>e.fieldId===a4)),delete e.incompatible,{table:e,cache:t}}(t.toJSON(),i.toJSON())}listPivotTableLocations(e){return Array.from(this.tables.values()).filter(t=>t.getLocation().sheetId===e).map(e=>({id:e.getId(),location:e.getLocation(),cacheId:e.getCache().getId()}))}moveSourceRange(e,t,i,n){let o=[];for(let n of this.caches.values()){let r=n.getSource(),a=function(e,t,i,n,o){let r=t.getSheetById(e.sheetId);if(!r)return null;let a=sZ(e,t);if(""===a)return null;let s=H.P6.changeFormulaRange(a,i,n,void 0,void 0,o);return"#REF!"===s?"#REF!":s===a?null:sj(s,r)}(r,this.workbook,e,t,i);a&&(o.push([n.getId(),{...r}]),"#REF!"!==a&&n.updateSource(a))}o.length>0&&(n.pivotTable={sources:o},this.getWorkbook().getNotifier()?.onPivotCacheChange(o.map(e=>{let[t]=e;return t})))}removeSourceRange(e,t){let i=[];for(let t of this.caches.values()){let n=t.getSource(),o=function(e,t,i){let n=t.getSheetById(e.sheetId);if(!n)return null;let o=sZ(e,t);if(""===o)return null;let r=H.P6.removeFormulaRange(o,i);return"#REF!"===r?"#REF!":r===o?null:sj(r,n)}(n,this.workbook,e);o&&(i.push([t.getId(),{...n}]),"#REF!"!==o&&t.updateSource(o))}i.length>0&&(t.pivotTable={sources:i},this.getWorkbook().getNotifier()?.onPivotCacheChange(i.map(e=>{let[t]=e;return t})))}repairSourceRange(e){if(0!==e.length){for(let[t,i]of e){let e=this.getCacheById(t);e&&e.updateSource(i)}this.getWorkbook().getNotifier()?.onPivotCacheChange(e.map(e=>{let[t]=e;return t}))}}collectSourceInfo(e,t,i){let n=[];for(let o of this.caches.values()){let r=o.getSource();if(r.sheetId!==e.sheetId)continue;let a=eA.GJ.fromRange({from:t,to:i});eA.GJ.fromRange(r.range).overlaps(a)&&n.push([o.getId(),{...r}])}return n}afterAlterGrid(e,t,i,n){let o=[];for(let r of this.caches.values()){if(r.getSource().sheetId!==e.sheetId)continue;let a=function(e,t,i,n,o){let r=sZ(e,t.getWorkbook());if(""===r)return null;let a=H.P6.changeFormula(r,{delta:o,start:{[i]:n}},t.getName());return a===r?null:sj(a,t)}(r.getSource(),e,t,i,n);a&&(o.push([r.getId(),{...r.getSource()}]),r.updateSource(a))}this.getWorkbook().getNotifier()?.onPivotCacheChange(o.map(e=>{let[t]=e;return t}))}beforeMove(e,t,i,n,o){let r=[],a=new Map(n.pivotTable?.sources??[]);for(let n of this.caches.values()){if(n.getSource().sheetId!==e.sheetId)continue;let o=a.get(n.getId())??function(e,t,i,n){let o=sZ(e,t.getWorkbook());if(""===o)return null;let r=H.P6.moveFormula(i,o,n,t.getName());return r===o?null:sj(r,t)}(n.getSource(),e,t,i);o&&(r.push([n.getId(),{...n.getSource()}]),n.updateSource(o))}r.length>0&&(o.pivotTable={sources:r}),this.getWorkbook().getNotifier()?.onPivotCacheChange(r.map(e=>{let[t]=e;return t}))}collectRangeStyle(e,t,i){for(let{id:t}of this.listPivotTableLocations(e)){let e=this.getTableById(t);e&&!e.hasResult()&&e.calc({rowColItems:!1,updateLocation:!1})}let n=this.getWorkbook().getSheetById(e),o=t.getTopLeftCorner(),r=t.getBottomRightCorner(),a=[];for(let e=o.row;e<=r.row;e++){if(i(e))continue;let t=[];for(let i=o.col;i<=r.col;i++){let o=n?.getCellProperty(e,i,"pivot");t.push(o?.style??null)}a.push(t)}return a}fillSheetMeta(e){let t=this.workbook.getSheetById(e);if(t){for(let i of this.tables.values())if(i.getLocation().sheetId===e&&i.hasResult())for(let[e,n]of i.getParts())n&&sl(t,eA.GJ.fromRange(e),i.getId(),n.map(e=>e.map(e=>e.meta)))}}calcRenderRanges(e,t){let i=this.workbook.getSheetById(e);if(i)for(let n of this.tables.values()){if(n.hasResult()||n.getLocation().sheetId!==e)continue;let o=n.getPartRanges().map(e=>eA.GJ.fromRange(e));if(!t.every(e=>o.every(t=>!e.overlaps(t))))for(let[e,t]of(n.calc({rowColItems:!1,updateLocation:!1}),n.getParts()))t&&sl(i,eA.GJ.fromRange(e),n.getId(),t.map(e=>e.map(e=>e.meta)))}}getTableRanges(e){let t=this.getTableById(e);if(!t)return null;let i=t.getLocation().sheetId,n=this.workbook.getSheetById(i);return n?{sheet:n,ranges:t.getPartRanges().map(eA.GJ.fromRange)}:null}clearTableRanges(e){let t=this.getTableRanges(e);t&&this.clearRanges(t.sheet,t.ranges)}clearRanges(e,t){for(let i of t)e.controller.clearRangeData(i,tL.PivotTable),e.controller._unmergeOverlaps(i,tL.PivotTable),sl(e,i,null)}writeTableRanges(e){let t=this.tables.get(e);if(!t)return;let i=t.getLocation().sheetId,n=this.workbook.getSheetById(i);if(n)for(let[i,o]of t.getParts()){let t=eA.GJ.fromRange(i),r=function(e){let t=e?.map(e=>e.map(e=>null))??[],i=e?.map(e=>e.map(e=>!1))??[];return null==e||0===e.length||0===e[0].length?{}:{data:e.map(e=>e.map(e=>e.value??null)),format:{numberFormat:e.map(e=>e.map(e=>({fc:e.numFmt}))),font:t,fill:t,alignment:t,border:t,mergeCells:t,quotePrefix:i}}}(o);r.data&&(n.controller._unmergeOverlaps(t,tL.PivotTable),n.controller.setRangeData(t,r.data??[],tL.PivotTable),n.controller.setRangeFormat(t,r.format??{},tL.PivotTable)),sl(n,t,e,o?.map(e=>e.map(e=>e.meta)))}}cloneTable(e){return new sF(new aJ(e.getCache().toJSON(),this.getPivotLocale()),e.toJSON(),this.getPivotLocale())}calcPivotTableNewResult(e,t){let i=null;if(null!==e){let t=this.getTableById(e);if(!t)return null;i=this.cloneTable(t)}let n=function e(t,i){var n,o,r,a,s,l,c,d,u,h,p,f,g,m,v,b,y,w,_,x,S,C,k,I,A,T,E,R;let D;if(Array.isArray(i)||"pivot_compound"===i.cmd){for(let n of Array.isArray(i)?i:i.actions){let i=e(t,n);if(!i)return null;void 0!==i.table&&(t=i.table)}return{success:!0,table:t}}let O=!1;if(null===t)if("create_pivot_table"!==i.cmd)return null;else{return(n=i.table,o=i.cache,D=n.id&&o.id&&n.cacheId===o.id?new sF(new aJ(o),n):null)?{success:!0,table:D}:null}switch(i.cmd){case"delete_pivot_table":O=!0,D=null;break;case"update_pivot_table":O=!!(D=function(e,t,i){let n=e.getCache();if(e.getId()!==t.id||n.getId()!==i.id||t.cacheId!==i.id)return null;let o=n.toJSON(),r=e.toJSON();JSON.stringify(o)!==JSON.stringify(i)&&n.fromJSON(i);let a=e;return JSON.stringify(r)!==JSON.stringify(t)&&(a=new sF(n,t)),a}(t,i.table,i.cache));break;case"move_pivot_table":O=(r=t,a=i.sheetId,s=i.coord,!!r.moveTable(a,s));break;case"move_pivot_axis_field":O=(l=t,c=i.fieldId,d=i.axis,u=i.position,h=i.coordShift,!!l.moveAxisField(c,d,u,h));break;case"insert_pivot_data_field":O=(p=t,f=i.fieldId,g=i.position,m=i.json,!!p.addDataField(f,g,m));break;case"move_pivot_data_field":O=(v=t,b=i.dataFieldId,y=i.position,!!v.moveDataField(b,y));break;case"remove_pivot_data_field":O=(w=t,_=i.dataFieldId,!!w.removeDataField(_));break;case"set_pivot_field_attr":O=!!function(e,t,i){let n=e.setFieldAttr(t,i);return n.length>0?n:null}(t,i.fieldId,i.changes);break;case"set_pivot_data_field_attr":O=!!function(e,t,i){let n=e.setDataFieldAttr(t,i);return n.length>0?n:null}(t,i.dataFieldId,i.changes);break;case"set_pivot_field_item_order":O=!!sH(t,i.fieldId,"order",i.changes);break;case"set_pivot_field_item_folded":O=!!sH(t,i.fieldId,"folded",i.changes);break;case"set_pivot_field_item_hidden":O=!!sH(t,i.fieldId,"hidden",i.changes);break;case"set_pivot_field_item_caption":O=!!sH(t,i.fieldId,"caption",i.changes);break;case"group_pivot_field_item":O=!!function(e,t){let i=e?.getCache(),n=[];for(let o of t){let t=o.childFieldIds.find(e=>i.getField(e))??null,r=ak("group",e,o.fieldId,t,o.changes,o.itemsInfo??null,o.insertPosition);n.push(!!r)}return n.length>0&&n.every(e=>e)}(t,i.changes);break;case"ungroup_pivot_field_item":O=!!function(e,t){let i=[];for(let n of t){let t=ak("ungroup",e,n.fieldId,null,n.changes,n.itemsInfo??null,null);i.push(!!t)}return i.length>0&&i.every(e=>e)}(t,i.changes);break;case"set_pivot_field_number_group":O=(x=t,S=i.fieldId,C=i.changes,!!aD(x,S,C,i.itemsInfo));break;case"set_pivot_field_datetime_group":O=(k=t,I=i.fieldId,A=i.changes,T=i.positions,E=i.autoFold,R=i.itemsInfo,void 0===E&&(E=!1),!!aV(k,I,A,T,E,R))}return O?{success:!0,table:D}:null}(i,t);if(!n)return null;if(void 0!==n.table&&(i=n.table),!i)return{ranges:[]};if(!i.isIncompatible()&&i.getCache().getRecords().length>tu.Z.PIVOT_TABLE_SIZE_WITH_ROW_COL_FIELD_COUNT_LIMIT){let e=i.getAxisFieldCount();if(e.row+e.col-+(e.data>1)>tu.Z.PIVOT_TABLE_MAX_ROW_COL_FIELD_COUNT)return{message:aK.PIVOT_TABLE_TOO_MANY_FIELD,ranges:[]}}if(i.calc({fillResult:!1}),!i.isIncompatible()&&(i.getRowHeaderHeight()>tu.Z.PIVOT_TABLE_MAX_ROW_COL_ITEM_COUNT||i.getColHeaderWidth()>tu.Z.PIVOT_TABLE_MAX_ROW_COL_ITEM_COUNT))return{message:aK.PIVOT_TABLE_TOO_MANY_ITEM,ranges:[]};if(!i.isIncompatible()){let{height:e,width:t}=i.getTableSize();if(e*t>tu.Z.PIVOT_TABLE_MAX_CELL_COUNT)return{message:aK.PIVOT_TABLE_TOO_MANY_CELL,ranges:[]}}return{ranges:i.getPartRanges()}}checkPivotTableNewRanges(e,t,i){let n=[];if(!this.workbook.getSheetById(t))throw Error("Sheet not found");let o=(0,tt.Z)(i.map(e=>e.to.row))??0,r=(0,tt.Z)(i.map(e=>e.to.col))??0;this.workbook.isDimensionAvailable(t,o+1,r+1)||n.push(aK.EXCEED_CELL_QUOTA),this.isRangesOverlapTables(t,i,[e])&&n.push(aK.PIVOT_TABLE_BLOCK_BY_OTHER);let a=(this.getTableById(e)?.getPartRanges()??[]).map(eA.GJ.fromRange),s=i.map(eA.GJ.fromRange);for(let e of a)s=tM(s,e).newRanges;return this.isRangesContainValues(t,s)&&n.push(aK.PIVOT_TABLE_OVERWRITE_CELL),n}isRangesContainValues(e,t){let i=this.workbook.getSheetById(e);if(!i)return!1;for(let e of t){let{row:t,col:n}=e.from,{row:o,col:r}=e.to;for(let e=t;e<=o;e++)for(let t=n;t<=r;t++)if(!(0,eI.O2)(i.getDataAtCell(e,t)))return!0}return!1}isRangesOverlapTables(e,t,i){let n=new Set(i);for(let i of this.tables.values()){if(n.has(i.getId())||i.getLocation().sheetId!==e)continue;let o=i.getPartRanges();for(let e of t)for(let t of o)if((0,eA.A9)(e,t))return!0}return!1}modifyTable(e,t){let i=this.getTableById(e),n=t(i&&this.cloneTable(i));if(null===n)return null;let o=n.table;if(o.calc(),this.isRangesOverlapTables(o.getLocation().sheetId,o.getPartRanges(),[e]))return null;this.addModifiedTables(e);let r=o.getCache();return this._setCache(r.getId(),r),this._setTable(o.getId(),o),n}clearModifiedTables(){this.modifiedTables.clear()}addModifiedTables(e){if(this.modifiedTables.has(e))return;let t=this.getTableRanges(e);this.modifiedTables.set(e,t)}flushModifiedTables(){for(let[e,t]of this.modifiedTables.entries())t&&this.clearRanges(t.sheet,t.ranges),this.writeTableRanges(e);this.modifiedTables.clear()}execCommand(e){let t;this.flushModifiedTables();try{t=this._execCommand(e)}catch(e){throw this.clearModifiedTables(),e}this.flushModifiedTables(),t&&this.emit("afterPivotCommand",t)}_execCommand(e){if("pivot_compound"===e.cmd){let t=[];try{for(let i=0;i<e.actions.length;i++){let n=this._execCommand(e.actions[i]);n&&t.push(n)}}catch(e){try{for(let e of t.reverse())this._execCommand(e.getUndoCommand())}catch{}throw e}return new cy(t)}switch(e.cmd){case"create_pivot_table":return this._createPivotTable(e.table,e.cache);case"delete_pivot_table":return this._deletePivotTable(e.tableId);case"update_pivot_table":return this._updatePivotTable(e.table,e.cache);case"move_pivot_table":return this._movePivotTable(e.tableId,e.sheetId,e.coord);case"set_pivot_table_caption":return this._setPivotTableCaption(e.tableId,e.key,e.value);case"move_pivot_axis_field":return this._movePivotAxisField(e.tableId,e.fieldId,e.axis,e.position,e.coordShift,e.filterUpdate);case"insert_pivot_data_field":return this._insertPivotDataField(e.tableId,e.fieldId,e.position,e.json);case"move_pivot_data_field":return this._movePivotDataField(e.tableId,e.dataFieldId,e.position);case"remove_pivot_data_field":return this._removePivotDataField(e.tableId,e.dataFieldId);case"set_pivot_field_attr":return this._setPivotFieldAttr(e.tableId,e.fieldId,e.changes);case"set_pivot_data_field_attr":return this._setPivotDataFieldAttr(e.tableId,e.dataFieldId,e.changes);case"set_pivot_field_item_order":return this._setPivotFieldItemAttr(e.tableId,e.fieldId,"order",e.changes);case"set_pivot_field_item_folded":return this._setPivotFieldItemAttr(e.tableId,e.fieldId,"folded",e.changes);case"set_pivot_field_item_hidden":return this._setPivotFieldItemAttr(e.tableId,e.fieldId,"hidden",e.changes);case"set_pivot_field_item_caption":return this._setPivotFieldItemAttr(e.tableId,e.fieldId,"caption",e.changes);case"group_pivot_field_item":return this._groupPivotFieldItem(e.tableId,e.changes);case"ungroup_pivot_field_item":return this._ungroupPivotFieldItem(e.tableId,e.changes);case"set_pivot_field_number_group":return this._setPivotFieldNumberGroup(e.tableId,e.fieldId,e.changes,e.itemsInfo);case"set_pivot_field_datetime_group":return this._setPivotFieldDatetimeGroup(e.tableId,e.fieldId,e.changes,e.positions,e.autoFold,e.itemsInfo)}return null}_createPivotTable(e,t){let i=e.id;return this.getTableById(e.id)||this.getCacheById(t.id)||e.cacheId!==t.id||!this.modifyTable(i,()=>({table:new sF(new aJ(t,this.getPivotLocale()),e,this.getPivotLocale())}))?null:(this.getWorkbook().getNotifier()?.onPivotCacheChange([t.id]),this.getWorkbook().getNotifier()?.onPivotTableChange([e.id]),new c_(e,t))}_deletePivotTable(e){let t=this.getTableById(e);if(!t)return null;this.clearTableRanges(e);let i=t.getCache(),n=i.getId();return this._deleteTable(e),this._deleteCache(n),this.getWorkbook().getNotifier()?.onPivotTableChange([e]),this.getWorkbook().getNotifier()?.onPivotCacheChange([n]),new cx(t.toJSON(),i.toJSON())}_updatePivotTable(e,t){let i=this.getTableById(e.id),n=i?.getCache();if(!i||!n||e.cacheId!==t.id)return null;let o=n.getId(),r=i.getId(),a=this.modifyTable(r,()=>({table:new sF(new aJ(t,this.getPivotLocale()),e,this.getPivotLocale())}));if(!a)return null;let s=a.table,l=s.getCache();return this.getWorkbook().getNotifier()?.onPivotCacheChange([o]),this.getWorkbook().getNotifier()?.onPivotTableChange([r]),new cS(i.toJSON(),s.toJSON(),n.toJSON(),l.toJSON())}_movePivotTable(e,t,i){let n=this.workbook.getSheetById(t),o=n?.getRangeBound(i,i)??[];if(!n||o[0]!==i.row||o[1]!==i.col)return null;let r=this.getTableById(e);if(!r)return null;let a=r.getLocation(),s=this.modifyTable(e,e=>e?.moveTable(t,i)&&e?{table:e}:null);if(!s)return null;let l=s.table.getLocation();return this.getWorkbook().getNotifier()?.onPivotTableChange([r.getId()]),new cC(e,a.sheetId,a.coord,l.sheetId,l.coord)}_setPivotTableCaption(e,t,i){let n=this.getTableById(e);if(!n)return null;let o=n.getCaptions()[t];return(o??null)!==(i??null)&&n.setCaption(t,i)?(n.calc({rowColItems:!1,updateLocation:!1}),this.writeTableRanges(e),this.getWorkbook().getNotifier()?.onPivotTableChange([n.getId()]),new ck(e,t,o??null,i??null)):null}_movePivotAxisField(e,t,i,n,o,r){let a=this.getTableById(e);if(!a)return null;let s=a.getFieldAxisInfo(t),l=a.getLocation().coord,c=a.getPivotFieldById(t)?.filter,d=this.modifyTable(e,e=>{let a=e?.moveAxisField(t,i,n,o);return void 0!==r&&a&&e&&e.setFieldAttr(t,[["filter",r]]),a&&e?{table:e}:null});if(!d)return null;let u=d.table,h=u.getFieldAxisInfo(t),p=u.getLocation().coord,f=u.getPivotFieldById(t)?.filter;return o={row:p.row-l.row,col:p.col-l.col},this.getWorkbook().getNotifier()?.onPivotTableChange([e]),new cI(e,t,s,h,o,c,f)}_insertPivotDataField(e,t,i,n){let o=this.getTableById(e);if(!o||!o.getPivotFieldById(t)||n&&o.getDataField(n.id))return null;let r=this.modifyTable(e,e=>{let o=e?.addDataField(t,i,n);return o&&e?{table:e,dataField:o}:null});return r?(this.getWorkbook().getNotifier()?.onPivotTableChange([e]),new cA(e,r.dataField,i)):null}_movePivotDataField(e,t,i){let n=this.getTableById(e);if(!n||!n.getDataField(t))return null;let o=n.getDataFieldIndex(t);return this.modifyTable(e,e=>e?.moveDataField(t,i)&&e?{table:e}:null)?(this.getWorkbook().getNotifier()?.onPivotTableChange([e]),new cT(e,t,o,i)):null}_removePivotDataField(e,t){let i=this.getTableById(e),n=i?.getDataField(t);if(!i||!n)return null;let o=i.getDataFieldIndex(t);return this.modifyTable(e,e=>e?.removeDataField(t)&&e?{table:e}:null)?(this.getWorkbook().getNotifier()?.onPivotTableChange([e]),new cE(e,n,o)):null}_setPivotFieldAttr(e,t,i){if(!this.getTableById(e))return null;let n=this.modifyTable(e,e=>{let n=e?.setFieldAttr(t,i);return e&&n&&n.length>0?{table:e,changesOldNew:n}:null});return n?(this.getWorkbook().getNotifier()?.onPivotTableChange([e]),new cR(e,t,n.changesOldNew)):null}_setPivotDataFieldAttr(e,t,i){if(!this.getTableById(e))return null;let n=this.modifyTable(e,e=>{let n=e?.setDataFieldAttr(t,i);return e&&n&&n.length>0?{table:e,changesOldNew:n}:null});return n?(this.getWorkbook().getNotifier()?.onPivotTableChange([e]),new cD(e,t,n.changesOldNew)):null}_setPivotFieldItemAttr(e,t,i,n){if(!this.getTableById(e))return null;let o=this.modifyTable(e,e=>{let o=e&&e.setFieldItemAttr(t,i,n);return e&&o&&o.length>0?{table:e,changesOldNew:o}:null});return o?(this.getWorkbook().getNotifier()?.onPivotTableChange([e]),new cO(e,t,i,o.changesOldNew)):null}_groupPivotFieldItem(e,t){return this.setPivotFieldManualGroup("group",e,t)}_ungroupPivotFieldItem(e,t){return this.setPivotFieldManualGroup("ungroup",e,t)}setPivotFieldManualGroup(e,t,i){let n=this.getTableById(t);if(!n)return null;let o=this.modifyTable(t,t=>{let n=t&&function(e,t,i){let n=[],o=t.getCache();for(let r of i){let i="childFieldIds"in r?r.childFieldIds.find(e=>o.getField(e))??null:null,a="insertPosition"in r?r.insertPosition:null,s=r.itemsInfo??null,l=ak(e,t,r.fieldId,i,r.changes,s,a);l&&n.push({fieldId:r.fieldId,...l})}return n}(e,t,i);return t&&n&&n.length>0?{table:t,changeInfo:n}:null});return o?(this.getWorkbook().getNotifier()?.onPivotCacheChange([n.getCache().getId()]),this.getWorkbook().getNotifier()?.onPivotTableChange([t]),"group"===e)?new cN(t,o.changeInfo):new cP(t,o.changeInfo):null}_setPivotFieldNumberGroup(e,t,i,n){let o=this.getTableById(e);if(!o)return null;let r=this.modifyTable(e,e=>{let o=e&&aD(e,t,i,n);return e&&o?{table:e,changeInfo:o}:null});return r?(this.getWorkbook().getNotifier()?.onPivotCacheChange([o.getCache().getId()]),this.getWorkbook().getNotifier()?.onPivotTableChange([e]),new cL(r.changeInfo)):null}_setPivotFieldDatetimeGroup(e,t,i,n,o,r){void 0===o&&(o=!1);let a=this.getTableById(e);if(!a)return null;let s=this.modifyTable(e,e=>{let a=e&&aV(e,t,i,n,o,r);return e&&a?{table:e,changeInfo:a}:null});return s?(this.getWorkbook().getNotifier()?.onPivotCacheChange([a.getCache().getId()]),this.getWorkbook().getNotifier()?.onPivotTableChange([e]),new cB(s.changeInfo)):null}onAlterGrid(e,t,i,n){let o=[];for(let r of this.tables.values())r.onSheetAlterGrid(e,t,i,n)&&o.push(r.getId());this.getWorkbook().getNotifier()?.onPivotTableChange(o)}onMoveRowCol(e,t,i){let n=[];for(let o of this.tables.values())o.onSheetMoveRowCol(e,t,i)&&n.push(o.getId());this.getWorkbook().getNotifier()?.onPivotTableChange(n)}flushWhenSuccess(e){var t=this;return function(){for(var i=arguments.length,n=Array(i),o=0;o<i;o++)n[o]=arguments[o];let r=e.call(t,...n);return r&&t.flushModifiedTables(),!!r}}}var cz=((k=cz||{})[k.NORMAL=0]="NORMAL",k[k.HISTORY=1]="HISTORY",k);class cH extends z{static #e=this.EDITOR_MODE=cz;constructor(e,t,i,n,o=!1){super(),this.nameManager=new nv(this),this.styleManager=this.createStyleManager(),this.parser=new H._b(this),this.calculator=new F(this,o),this.current=null,this.commentStore=null,this.readonly=!1,this.editorMode=0,this.unknownRefManager=new nb,this.unitUnknownRefManager=new nb,this.hooks=new n_,this.wbController=new rS(this),this.ruleStore=new rR,this.pivotTableManager=new cV(this),this.externalManager=new nd,this.commentable=!1,this.localeHelper=e,this.notifier=null,this.SheetConstructor=t,this.enabledPlugins=i,this.constants=n,this.wbController.init(),this.styleManager.on("style_added",()=>this.notifier?.onStyleAdded()),this.styleManager.on("color_added",()=>this.notifier?.onColorAdded()),this.externalManager.on("external_changed",(e,t)=>this.notifier?.onExternalChanged(e,t))}destroy(){super.destroy(),this.current=null,this.hooks.destroy()}setCurrent(e){e!==this.current?.sheetId&&(this.current=this.getSheetById(e)||null,this.current&&this.getNotifier()?.onCurrentSheetChange(e))}getCurrentSheet(){return this.current}setCommentStore(e){this.commentStore=e,e.on("commentChanged",e=>this.notifier?.onCommentChanged(e))}getCommentStore(){return this.commentStore}getController(){return this.wbController}removeSheet(e){let t=this.current?.sheetId,i=t===e?this.getSiblingSheet(t):void 0,n=super.removeSheet(e);return t!==e||this.hasSheet(e)||this.setCurrent(i??this.getVisibleOrder()[0]),n}setSheetHidden(e,t){let i=super.setSheetHidden(e,t);if(this.current?.sheetId===e&&this.isSheetHidden(e)){let t=this.getSiblingSheet(e);t&&this.setCurrent(t)}return i}setSheetColor(e,t){let i=super.setSheetColor(e,t);return i&&this.notifier?.onColorAdded(),i}getVisibleOrder(){let e=[];for(let t=0;t<this.sheetsOrder.length;t++){let i=this.sheetsOrder[t],n=this.sheetsInfo.get(i);n&&!n.hidden&&e.push(i)}return e}getPrevSheet(e,t){return ey(this.sheetsOrder,e,e=>this.isSheetHidden(e),t)}getNextSheet(e,t){return ew(this.sheetsOrder,e,e=>this.isSheetHidden(e),t)}getSiblingSheet(e){return this.getPrevSheet(e)||this.getNextSheet(e)}forAll(e){for(let t=0;t<this.sheetsOrder.length;t++){let i=this.sheetsOrder[t],n=this.sheetsInfo.get(i);n&&e(n,i,t)}}getMaxCellCount(){return this.constants.MAX_CELL_COUNT}isPivotTableEnabled(){return this.constants.PIVOT_TABLE_ENABLED}getRemainingCellCount(){let e=0;return this.forAll(t=>{e+=t.sheet.countRows()*t.sheet.countCols()}),Math.max(this.getMaxCellCount()-e,0)}getSheetDimension(e){let t=this.getSheetById(e);return{rowCount:t?.countRows()??0,colCount:t?.countCols()??0}}getAvailableRowCount(e){let t=this.getSheetById(e);return t?Math.floor(this.getRemainingCellCount()/t.countCols()):0}getAvailableColCount(e){let t=this.getSheetById(e);return t?Math.floor(this.getRemainingCellCount()/t.countRows()):0}getAvailableMaxRow(e){let t=this.getSheetById(e);return t?t.countRows()+this.getAvailableRowCount(e):0}getAvailableMaxCol(e){let t=this.getSheetById(e);return t?t.countCols()+this.getAvailableColCount(e):0}isDimensionAvailable(e,t,i){let n=this.getSheetById(e);if(!n)return!1;let o=n.countRows(),r=n.countCols(),a=(t=Math.max(t,o))*(i=Math.max(i,r))-o*r;return 0===a||this.getRemainingCellCount()>=a}isNewSheetAvailable(e){let t=e?this.getSheetById(e):null,i=t?t.countRows()*t.countCols():tu.Z.DEFAULT_ROW_COUNT*tu.Z.DEFAULT_COL_COUNT;return this.getRemainingCellCount()>=i}getFormulaParser(){return this.parser}getAsyncCalculator(){return this.calculator}createStyleManager(){return new np}getStyleManager(){return this.styleManager}createBaseFormulaItem(){return new eO}setReadonly(e){this.readonly=e,this.notifyDataChange(nf.WORKBOOK)}isReadonly(){return this.readonly}setCommentable(e){this.commentable=e,this.notifyDataChange(nf.WORKBOOK)}isCommentable(){return this.commentable}setEditorMode(e){this.editorMode=e}isHistoryMode(){return 1===this.editorMode}isCellEditable(e,t,i){if(!this.current)return!1;let n=this.current.getCellProperty(e,t,"pivot");return!this.isReadonly()&&this.getController().ruleController.checkProtectedCoords(this.current.sheetId,[{row:e,col:t}],i,{warning:!0})!==rg.REJECT&&(!n?.tableId||this.isPivotTableEnabled()&&!this.getPivotTableManager().isIncompatibleTable(n?.tableId??"")&&n?.edit!=null)}setVersion(e){this.version=e}getVersion(){return this.version}getNameManager(){return this.nameManager}getPivotTableManager(){return this.pivotTableManager}getUnknownRefManager(){return this.unknownRefManager}getUnitUnknownRefManager(){return this.unitUnknownRefManager}getRuleStore(){return this.ruleStore}getExternalManager(){return this.externalManager}getLocale(){return this.localeHelper}setNotifier(e){this.notifier=e}getNotifier(){return this.notifier}notifyDataChange(e){this.notifier?.notifyDataChange(e)}createSheet(e,t,i){let n=e.sheetId;if(this.hasSheet(n))return null;let o=new this.SheetConstructor(this);return this.addSheet(e.sheetId,o,i.title,t,i.tabColor,i.hidden),o.init({plugins:this.getEnabledPlugins(),...e}),o}getEnabledPlugins(){return this.enabledPlugins}getConstants(){return this.constants}getWorksheetSnapshotSync(e){let t=new ad(this).getWorksheetGenerator(e),i="",n=t.next();for(;!n.done;)i+=n.value,n=t.next();return i}generateWorksheetContent(e){let t=this.getSheetById(e);if(!t)return null;let i=new Set,n=t.getDataModel();for(let e=0,t=n.getRowLength();e<t;e++){let t=n.getRow(e);if(t)for(let e=0,n=t.getColLength();e<n;e++){let n=t.getCell(e);n&&n.getXfId()>0&&i.add(n.getXfId())}}function o(e){e&&e.s>0&&i.add(e.s)}return n.rowInfos.forEach(o),n.colInfos.forEach(o),o(n.getGlobalInfo()),{ws:this.getWorksheetSnapshotSync(t),style:JSON.stringify(this.getStyleManager().getParts(i))}}moveSearchResult(e,t,i){let n=e.length,o=(i??=this.current?.sheetId)?e.indexOf(i):0;o<0&&(o=0);let r=e[o],a=this.getSheetById(r)?.getPlugin("synoSearch").moveSearchResult(t);if(!a){let i=o;do"prev"===t?(o=(o-1+n)%n,a=this.getSheetById(e[o])?.getPlugin("synoSearch").getLastResult()):(o=(o+1)%n,a=this.getSheetById(e[o])?.getPlugin("synoSearch").getFirstResult());while(!a&&o!==i)}let s=0,l=0;if(a)for(let t=0;t<n;t++){let i=this.getSheetById(e[t]).getPlugin("synoSearch").getSearchCount();l+=i.total,t<o?s+=i.total:t===o&&(s+=i.index)}return{sheetId:e[o],match:a,index:s,total:l}}isSearching(){return this.current?.getPlugin("synoSearch").isSearching()??!1}getSearchingResults(e){return this.getSheetById(e)?.getPlugin("synoSearch").getSearchingResult()??[]}collectColor(){let e=new Set;return this.styleManager.collectColor(e),this.forAll(t=>{t.color&&e.add(t.color.toLowerCase());let i=t.sheet;i.getPlugin("synoDrawingController").collectColor(e),i.getPlugin("synoConditionalFormat").collectColor(e)}),e}hasRtlProperties(){for(let{sheet:e}of this.sheetsInfo.values())if(e.isRtl())return!0;if(!this.getStyleManager().alignments.some(e=>(0,tx.op)(e)))return!1;for(let{sheet:e}of this.sheetsInfo.values()){let t=e.getDataModel(),i=t.getRowLength();for(let e=0;e<i;e++){let i=t.getRow(e);if(!i)continue;let n=i.getColLength();for(let e=0;e<n;e++){let t=i.getCell(e);if(t&&(0,tx.op)(t.getCellStyle().getAlignment()))return!0}}}return!1}getStateJSON(){let e={};for(let[t,i]of this.sheetsInfo.entries())e[t]={title:i.name,hidden:i.hidden,tabColor:i.color,rowCount:i.sheet.countRows(),colCount:i.sheet.countCols()};return{current:this.current?.sheetId,version:this.getVersion(),order:this.getOrder(),sheets:e,readonly:this.readonly,commentable:this.commentable,colors:Array.from(this.collectColor()),constants:this.constants}}}let cW=cH;class cY extends sq{constructor(e){super(),this.sheetId=e}needInstance(){return!0}needLockUI(){return!0}}class cU extends sq{constructor(e){super(),this.payload=e}needInstance(){return!1}getUndoCommand(){throw Error("cant undo")}getRedoCommand(){throw Error("cant redo")}_toData(){return this.payload}dumpArgs(){throw Error("RPCAction should not dump")}}class cG extends cY{constructor(e,t,i,n){super(e),this.pos=t,this.info=i,this.content=n}createUndeleteWorksheetCommand(){return rc(this.sheetId,this.pos,this.info,this.content)}createDeleteWorksheetCommand(){return rd(this.sheetId,!1)}needInstance(){return!1}dumpArgs(){return[this.sheetId,this.pos,this.info,this.content]}}class cZ extends cG{static getName(){return"DeleteWorksheetAction"}getUndoCommand(){return this.createUndeleteWorksheetCommand()}getRedoCommand(){return this.createDeleteWorksheetCommand()}}class cj extends cG{static getName(){return"UndeleteWorksheetAction"}getUndoCommand(){return this.createDeleteWorksheetCommand()}getRedoCommand(){return this.createUndeleteWorksheetCommand()}}class cq extends sq{static getName(){return"SetWorksheetOrderAction"}constructor(e,t){super(),this.oldOrder=e,this.newOrder=t}getUndoCommand(){return rh(this.oldOrder)}getRedoCommand(){return rh(this.newOrder)}needInstance(){return!1}dumpArgs(){return[this.oldOrder,this.newOrder]}}class cK extends cY{static getName(){return"RenameWorksheetAction"}constructor(e,t,i){super(e),this.oldTitle=t,this.newTitle=i}getUndoCommand(){return ru(this.sheetId,this.oldTitle)}getRedoCommand(){return ru(this.sheetId,this.newTitle)}dumpArgs(){return[this.sheetId,this.oldTitle,this.newTitle]}}class cX extends cY{static getName(){return"SetWorksheetHiddenAction"}constructor(e,t){super(e),this.hidden=t}getUndoCommand(){return rp(this.sheetId,!this.hidden)}getRedoCommand(){return rp(this.sheetId,this.hidden)}dumpArgs(){return[this.sheetId,this.hidden]}}class cQ extends cY{static getName(){return"SetWorksheetColorAction"}constructor(e,t,i){super(e),this.oldColor=t,this.newColor=i}getUndoCommand(){return rf(this.sheetId,this.oldColor)}getRedoCommand(){return rf(this.sheetId,this.newColor)}dumpArgs(){return[this.sheetId,this.oldColor,this.newColor]}}let c$=[cZ,cj,cq,cK,cX,cQ].reduce((e,t)=>(e[t.getName()]=t,e),{});function cJ(e,t,i){let{ranges:n,text:o,altType:r}=e,{type:a,operator:s,f1:l,f2:c}=e;if("cellIs"===a)switch(s){case"beginsWith":case"containsText":case"endsWith":a=s;break;case"notContains":s=a="notContainsText"}let d=J(n).map(e=>eE.textToRangeByWorkbook(e,t,i)).filter(eT),u=t.getLocale();return l?(l=(0,tq.H2)(u,l),c=(0,tq.H2)(u,c)):l=sA(a,(0,nC.coordToLabel)(d[0].from),(0,tq.H2)(u,o,{text:!0})),{cfId:e.id,type:a,op:s,ranges:eD(d),style:e.style,f1:l,f2:c,text:o,altType:r}}let c0=e=>class extends e{getGroupRange(e,t){let i="row"===e?this.getRowGroupLevel(t):this.getColGroupLevel(t);return{...this.getGroupRangeWithLevel(e,t,i),level:i}}getGroupRangeWithLevel(e,t,i){let n=t,o=t,r="row"===e?e=>this.getRowGroupLevel(e):e=>this.getColGroupLevel(e),a="row"===e?this.sheet.countRows():this.sheet.countCols();if(i>0&&r(t)>=i){for(;n>0&&r(n-1)>=i;)n-=1;for(;o<a-1&&r(o+1)>=i;)o+=1}return{start:n,end:o}}};class c1{constructor(e){this.sheet=e}getMaxRowGroupLevel(){return this.sheet.getWorksheetStore().maxRowGroupLevel}getMaxColGroupLevel(){return this.sheet.getWorksheetStore().maxColGroupLevel}getRowGroupLevel(e){return this.sheet.getWorksheetStore().rows[e]?.outlineLevel??0}getColGroupLevel(e){return this.sheet.getWorksheetStore().cols[e]?.outlineLevel??0}}class c2 extends c0(c1){}class c3 extends rN{constructor(e){super(e,"synoGroup")}groupRows(e,t){let i=this.sheet.getDataModel();for(let n=e;n<=t;n++){let e=(i.getRowInfo(n)?.outlineLevel??0)+1;i.updateRowAttr(n,"outlineLevel",Math.min(e,8))}this.sheet.notifySheetChanges(["rows"]),this.sheet.runHooks("afterGroup","row",e,t)}groupCols(e,t){let i=this.sheet.getDataModel();for(let n=e;n<=t;n++){let e=(i.getColInfo(n)?.outlineLevel??0)+1;i.updateColAttr(n,"outlineLevel",Math.min(e,8))}this.sheet.notifySheetChanges(["cols"]),this.sheet.runHooks("afterGroup","col",e,t)}ungroupRows(e,t){let i=this.sheet.getDataModel();for(let n=e;n<=t;n++){let e=(i.getRowInfo(n)?.outlineLevel??0)-1;i.updateRowAttr(n,"outlineLevel",e<1?void 0:e)}this.sheet.notifySheetChanges(["rows"]),this.sheet.runHooks("afterUngroup","row",e,t)}ungroupCols(e,t){let i=this.sheet.getDataModel();for(let n=e;n<=t;n++){let e=(i.getColInfo(n)?.outlineLevel??0)-1;i.updateColAttr(n,"outlineLevel",e<1?void 0:e)}this.sheet.notifySheetChanges(["cols"]),this.sheet.runHooks("afterUngroup","col",e,t)}getMaxRowGroupLevel(){return this.sheet.getDataModel().getMaxRowGroupLevel()}getMaxColGroupLevel(){return this.sheet.getDataModel().getMaxColGroupLevel()}getRowGroupLevel(e){return this.sheet.getDataModel().getRowInfo(e)?.outlineLevel??0}getColGroupLevel(e){return this.sheet.getDataModel().getColInfo(e)?.outlineLevel??0}updateGroup(e,t,i){let n=[];for(let o=0;o<i.length;o++){let r=t+o;n.push("row"===e?this.getRowGroupLevel(r):this.getColGroupLevel(r)),this.sheet.getDataModel().updateDimAttr(e,r,"outlineLevel",i[o]>0?i[o]:void 0)}this.sheet.notifySheetChanges([`${e}s`]),this.sheet.runHooks("afterUpdateGroup",e,t,i,n)}setCollapse(e,t,i){let n=Array.isArray(i)?i:Array(t.length).fill(i),o=this.sheet.getDataModel(),r=[];for(let i=0;i<t.length;i++)r.push(o["row"===e?"getRowInfo":"getColInfo"](t[i])?.collapse??!1),o.updateDimAttr(e,t[i],"collapse",n[i]||void 0);this.sheet.runHooks("afterSetCollapse",e,t,i,r)}repairRow(e,t){this.updateGroup("row",t,e)}repairCol(e,t){this.updateGroup("col",t,e)}}class c4 extends c3{enablePlugin(){this.addHook("collectRemovedRowInfo",(e,t,i)=>this.collectRemovedInfo("row",e,t,i)),this.addHook("collectRemovedColInfo",(e,t,i)=>this.collectRemovedInfo("col",e,t,i)),super.enablePlugin()}collectRemovedInfo(e,t,i,n){let o="row"===e?e=>this.getRowGroupLevel(e):e=>this.getColGroupLevel(e),r=Array.from({length:n},(e,t)=>o(i+t));r.some(e=>e>0)&&("row"===e?t.push({pluginName:this.pluginName,rowInfo:r}):t.push({pluginName:this.pluginName,colInfo:r}))}}class c5 extends c0(c4){}class c6{static #e=this.pluginName="";constructor(e,t){this.hot=e}init(){this.initHook()}initHook(){}destroy(){}getHot(){return this.hot}getView(){return this.getHot().view}getSheet(){return this.getHot().sheet}getDataBridge(){return this.getHot().getDataBridge()}getWorkbook(){return this.getDataBridge().getWorkbook()}getAction(){return this.getHot().getAction()}}let c8=Math.ceil(7.5);function c7(e){return e>0?23*e+8:0}var c9=i(61367),de=i(91229);let dt=15*!(0,c9.isMobileLayout)();class di extends E.EventEmitter{constructor(){super(),this.viewWidth=0,this.viewHeight=0,this.frozenWidth=0,this.frozenHeight=0,this.totalWidth=0,this.totalHeight=0,this.scrollTop=0,this.scrollLeft=0,this.rafTimer=null,this.debounceFireScrollEvent=(0,de.Z)(()=>this.emit("scroll"),0)}updateViewSize(e){this.viewWidth=Math.ceil(e.offsetWidth)-dt,this.viewHeight=Math.ceil(e.offsetHeight)-dt}getViewWidth(){return this.viewWidth}getViewHeight(){return this.viewHeight}getClientWidth(){return this.viewWidth-this.frozenWidth}getClientHeight(){return this.viewHeight-this.frozenHeight}getScrollWidth(){return this.totalWidth-this.frozenWidth}getScrollHeight(){return this.totalHeight-this.frozenHeight}setScrollTop(e){e=Math.ceil(Math.max(0,Math.min(this.totalHeight-this.viewHeight,e))),this.scrollTop!==e&&(this.scrollTop=e,this.scheduleUpdate(),this.debounceFireScrollEvent())}setScrollLeft(e){e=Math.ceil(Math.max(0,Math.min(this.totalWidth-this.viewWidth,e))),this.scrollLeft!==e&&(this.scrollLeft=e,this.scheduleUpdate(),this.debounceFireScrollEvent())}getScrollTop(){return this.scrollTop}getScrollLeft(){return this.scrollLeft}setFrozenHeight(e){this.frozenHeight=e,this.scheduleUpdate()}setFrozenWidth(e){this.frozenWidth=e,this.scheduleUpdate()}getFrozenHeight(){return this.frozenHeight}getFrozenWidth(){return this.frozenWidth}setTotalWidth(e){this.totalWidth!==e&&(this.totalWidth=e,this.setScrollLeft(this.scrollLeft),this.scheduleUpdate())}setTotalHeight(e){this.totalHeight!==e&&(this.totalHeight=e,this.setScrollTop(this.scrollTop),this.scheduleUpdate())}scheduleUpdate(){null===this.rafTimer&&(this.rafTimer=window.requestAnimationFrame(()=>{this.emit("update"),this.rafTimer=null}))}}function dn(e,t){let i=eh(e,t)-1;return i>e.length-2?e.length-2:i<0?0:i}class dr{constructor(e){this.offsetter=e}drawingPositionToBBox(e){let t,i,n,o;return rF(e)?{left:i,top:t}=e:{x:i,y:t}=this.relativeOffsetToAbsolute(e.from),rz(e)?{x:n,y:o}=this.relativeOffsetToAbsolute(e.to):(n=i+e.width,o=t+e.height),{top:t,left:i,bottom:o,right:n}}toAbsolutePosition(e){let{top:t,left:i,bottom:n,right:o}=this.drawingPositionToBBox(e);return{type:rL.Absolute,top:t,left:i,height:n-t,width:o-i}}toPositionOfType(e,t){let i,n,o,r,a;if(rB(e)||(e={type:rL.Absolute,...e}),!rB(e))throw Error("not a DrawingPosition");if(e.type===t)return e;if(rF(e)?({left:n,top:i}=e,a=this.absoluteOffsetToRelative(n,i)):(a=e.from,{x:n,y:i}=this.relativeOffsetToAbsolute(a)),rz(e)){let{x:t,y:a}=this.relativeOffsetToAbsolute(e.to);r=t-n,o=a-i}else({width:r,height:o}=e);if(t===rL.Absolute)return{type:t,top:i,left:n,height:o,width:r};{if(t===rL.OneAnchor)return{type:t,from:a,height:o,width:r};let e=n+r,s=i+o;return{type:t,from:a,to:this.absoluteOffsetToRelative(e,s)}}}relativeOffsetToAbsolute(e){let{col:t,row:i,colOffset:n,rowOffset:o}=e;return{x:Math.min(this.offsetter.getColOffset(t)+n,this.offsetter.getColOffset(t+1)),y:Math.min(this.offsetter.getRowOffset(i)+o,this.offsetter.getRowOffset(i+1))}}absoluteOffsetToRelative(e,t){let i=this.offsetter.getColByOffset(e),n=this.offsetter.getRowByOffset(t),o=e-this.offsetter.getColOffset(i),r=t-this.offsetter.getRowOffset(n);return{col:i,row:n,colOffset:o,rowOffset:r}}}class da{constructor(e){this.viewport=e}getColOffset(e){return this.viewport.getColOffset(e)/this.viewport.getZoomLevel()-tu.Z.ROW_HEADER_WIDTH}getRowOffset(e){return this.viewport.getRowOffset(e)/this.viewport.getZoomLevel()-tu.Z.COL_HEADER_HEIGHT}getColByOffset(e){return this.viewport.getColByOffset((e+tu.Z.ROW_HEADER_WIDTH)*this.viewport.getZoomLevel())}getRowByOffset(e){return this.viewport.getRowByOffset((e+tu.Z.COL_HEADER_HEIGHT)*this.viewport.getZoomLevel())}}let ds=class{constructor(e,t){this._sheetId=null,this._rowOffset=null,this._colOffset=null,this._recalcRowFlag=!1,this._recalcColFlag=!1,this._minPadding=t,this._paddingTop=0,this._paddingLeft=0,this.zoomLevel=1,this.scroller=new di(e)}clearSheetId(){this._sheetId=null}destroy(){this.clearSheetId()}updateViewSize(e){this.scroller.updateViewSize(e)}updateSheet(e){this._sheetId!==e.sheetId&&(this._sheetId=e.sheetId,this._recalcRowFlag=!0,this._recalcColFlag=!0),this.updateRowOffset(e),this.updateColOffset(e)}updateRowOffset(e){if(!this._recalcRowFlag)return;let t=e.countRows();this._paddingTop=c7(e.getGroupPlugin().getMaxColGroupLevel())*this.zoomLevel;let i=tu.Z.COL_HEADER_HEIGHT*this.zoomLevel+this._paddingTop;this._rowOffset=[i];for(let n=0;n<t;n++)i+=e.getRowHeight(n)*this.zoomLevel,this._rowOffset.push(i);this.scroller.setTotalHeight(i+this._minPadding),this._recalcRowFlag=!1}updateColOffset(e){if(!this._recalcColFlag)return;let t=e.countCols();this._paddingLeft=c7(e.getGroupPlugin().getMaxRowGroupLevel())*this.zoomLevel;let i=tu.Z.ROW_HEADER_WIDTH*this.zoomLevel+this._paddingLeft;this._colOffset=[i];for(let n=0;n<t;n++)i+=e.getColWidth(n)*this.zoomLevel,this._colOffset.push(i);this.scroller.setTotalWidth(i+this._minPadding),this._recalcColFlag=!1}setRecalcRow(){this._recalcRowFlag=!0}setRecalcCol(){this._recalcColFlag=!0}setZoomLevel(e){this.zoomLevel=e,this._recalcRowFlag=!0,this._recalcColFlag=!0}getZoomLevel(){return this.zoomLevel}getRowByOffset(e){return e<this._paddingTop?-2:e<this._rowOffset[0]?-1:dn(this._rowOffset,e)}getColByOffset(e){return e<this._paddingLeft?-2:e<this._colOffset[0]?-1:dn(this._colOffset,e)}getRowOffset(e){return e<=-2?0:-1===e?this._paddingTop:this._rowOffset[e]}getColOffset(e){return e<=-2?0:-1===e?this._paddingLeft:this._colOffset[e]}getScroller(){return this.scroller}setScrollTop(e){this.scroller.setScrollTop(e)}getScrollTop(){return this.scroller.getScrollTop()}setScrollLeft(e){this.scroller.setScrollLeft(e)}getScrollLeft(){return this.scroller.getScrollLeft()}getViewWidth(){return this.scroller.getViewWidth()}getViewHeight(){return this.scroller.getViewHeight()}getTopOffset(){return this._rowOffset[0]}getLeftOffset(){return this._colOffset[0]}getBottomOffset(){return this._rowOffset[this._rowOffset.length-1]}getRightOffset(){return this._colOffset[this._colOffset.length-1]}getDrawingPositionConverter(){if(!this._drawingPosConverter){let e=new da(this);this._drawingPosConverter=new dr(e)}return this._drawingPosConverter}sectionToBBox(e,t,i){let n=this.getZoomLevel();return"row"===e?{top:this.getRowOffset(t)/n-tu.Z.COL_HEADER_HEIGHT,left:Number.NEGATIVE_INFINITY,bottom:this.getRowOffset(i+1)/n-tu.Z.COL_HEADER_HEIGHT,right:Number.POSITIVE_INFINITY}:{top:Number.NEGATIVE_INFINITY,left:this.getColOffset(t)/n-tu.Z.ROW_HEADER_WIDTH,bottom:Number.POSITIVE_INFINITY,right:this.getColOffset(i+1)/n-tu.Z.ROW_HEADER_WIDTH}}};var dl=i(56325);class dc extends c6{static #e=this.pluginName="synoGroup";initHook(){super.initHook(),this.getHot().addHook("afterOnGroupMouseUp",(e,t)=>this.handleGroupMouseUp(e,t)),this.getHot().addHook("afterOnGroupContextMenu",(e,t)=>this.handleGroupContextMenu(e,t))}handleGroupMouseUp(e,t){if(t.col<-1&&t.row<-1||(this.getHot().getDataBridge()?.getWorkbook().isReadonly()??!0)||(0,dl.lz)(e))return;let i=t.col>=-1?"col":"row",n={x:e.clientX,y:e.clientY},o=this.getView().getViewPoint(n),r=this.getGroupAction(i,o,t);r&&(r.expand?this.expandGroup(i,r.index,r.level):this.collapseGroup(i,r.index,r.level))}handleGroupContextMenu(e,t){if(t.col<-1&&t.row<-1||(this.getHot().getDataBridge()?.getWorkbook().isReadonly()??!0))return;let i=t.col>=-1?"col":"row",n={x:e.clientX,y:e.clientY},o=this.getView().getViewPoint(n),r=this.getGroupAction(i,o,t);this.getHot().getUIBridge().editor.groupMenu.show(n,i,r)}async expandGroup(e,t,i){let n=this.getSheet(),{start:o,end:r}=n.getGroupPlugin().getGroupRangeWithLevel(e,t,i);if(!await this.getAction().expandGroup(n.sheetId,e,t,i))return;let a=[0,0,n.countRows()-1,n.countCols()-1];"row"===e?(a[0]=o,a[2]=r):(a[1]=o,a[3]=r),this.getHot().selectRanges([a],"from",!1)}async collapseGroup(e,t,i){let n=this.getSheet(),o=this.getHot().getSelectedRange()?.clone().normalize(),{start:r,end:a}=n.getGroupPlugin().getGroupRangeWithLevel(e,t,i),s="row"===e?n.countRows():n.countCols();if(!await this.getAction().collapseGroup(n.sheetId,e,t,i)||!o)return;let l=a===s-1?r-1:a+1;r<=o.from[e]&&o.from[e]<=a&&(o.from[e]=l),r<=o.to[e]&&o.to[e]<=a&&(o.to[e]=l),this.getHot().selectRanges([o.toArray()])}async removeGroup(e,t,i){await this.getAction().removeGroup(this.getSheet().sheetId,e,t,i)}async expandAllGroup(e){await this.getAction().expandAllGroup(this.getSheet().sheetId,e)}async collapseAllGroup(e){let t=this.getSheet(),i=this.getHot().getSelectedRange()?.clone().normalize(),n="row"===e?t.countRows():t.countCols(),o=t.getGroupPlugin(),{start:r,end:a}=o.getGroupRangeWithLevel(e,i.from[e],1),{start:s,end:l}=i.to[e]<a?{start:r,end:a}:o.getGroupRangeWithLevel(e,i.to[e],1);await this.getAction().collapseAllGroup(this.getSheet().sheetId,e)&&(i.from[e]=a===n-1?r-1:a+1,i.to[e]=l===n-1?s-1:l+1,this.getHot().selectRanges([i.toArray()]))}async removeAllGroup(e){await this.getAction().removeAllGroup(this.getSheet().sheetId,e)}getGroupAction(e,t,i){var n;let o=this.getHot().getZoomLevel(),r=(n=("row"===e?t.x:t.y)/o)%23<8?0:Math.floor(n/23)+1;if(0===r)return null;let a=this.getView(),s=a.getGroupRenderInfo(e,i[e])?.[r-1];if(!s)return null;let l=a.getHeaderBound(e,i[e]);return l&&this.isActionOnIcon(e,t,s,l)?{level:r,index:i[e]+ +!!s.icon,expand:s.icon?.isCollapse??!1}:null}isActionOnIcon(e,t,i,n){let o=this.getHot().getZoomLevel(),r="row"===e?t.y:t.x,a=("row"===e?n.y:n.x)*o,s=("row"===e?n.y+n.height:n.x+n.width)*o,l=Math.floor((a+s)/2);return i.icon&&(a=l-c8*o,i.icon.isCollapse&&(s=a+15*o)),i.isLast&&(s=l),a<=r&&r<=s}}async function dd(e,t){let{uiBridge:i}=e;return(t=eb(t)).includes(rg.REJECT)?(await i.onAlert(aK.PROTECTION_REJECT),!1):!t.includes(rg.WARNING)||i.onConfirm(aK.PROTECTION_WARNING).catch(()=>!1)}async function du(e,t){let{uiBridge:i}=e;return await t(i.getUserInfo())}async function dh(e,t){let i=await du(e,t);return dd(e,i)}async function dp(e,t,i){return await dh(e,n=>e.dataBridge.checkProtectedWorksheets(t,i,n))}async function df(e,t,i){return dd(e,await dv(e,t,i))}async function dg(e,t,i){return dd(e,await db(e,t,i))}async function dm(e,t,i,n){return dd(e,await dy(e,t,i,n))}async function dv(e,t,i){let n=eb(t).map(function(e){return e instanceof eA.GJ&&(e=new eR(null,e.from,e.to,e.type)),e.toRange()});return await du(e,t=>e.dataBridge.checkProtectRefRange(n,i,t))}async function db(e,t,i){let n=t.map(e=>{let[t,i]=e;return{row:t,col:i}});return await du(e,t=>e.dataBridge.checkProtectedCoords(i,n,t,{warning:!1}))}async function dy(e,t,i,n){return await du(e,o=>e.dataBridge.checkProtectedInsertable(t,i,n,o,{warning:!1}))}async function dw(e,t){return await dh(e,i=>e.dataBridge.validateRuleCommand(t,i))}async function d_(e,t,i,n){if(!e.dataBridge.getWorkbook().hasSheet(t)||!await dg(e,i,t))return;let o=await e.dataBridge.listPivotTableLocations(t);if(tY(i.map(e=>{let[t,i]=e;return new eA.GJ(t,i,t,i)}),o).partial.length>0)return aK.PIVOT_TABLE_MODIFY_PARTIAL;let r=[];if(1===i.length&&!(0,eI.O2)(i[0][2])){let[e,n]=i[0];r.push(n3(t,e,n))}return r.push(nR(t,i,n)),r.push(...await dx(e,t,i)),r}async function dx(e,t,i){let{dataBridge:n}=e;return(await Promise.all(i.map(async e=>{let[i,o,r]=e;if(!(0,eI.O2)(r))return;let a=(await n.getRangeHyperlink(t,{row:i,col:o},{row:i,col:o}))?.[0][0];if(a)return ox(t,a.id)}))).filter(eT)}async function dS(e,t){let{cls:i,value:n,sheetId:o,rowCount:r,colCount:a,multiRange:s,overwrite:l,skip:c}=e;if(l=!!l,c=c||{},!s||0===s.length)return[];let d=function(e,t,i){let n={rows:[],cols:[],all:[],normals:[]};for(let o=0;o<e.length;o++){let r=e[o].normalize(),a=r.getWidth()===i,s=r.getHeight()===t;a&&s?n.all.push(r):a?n.rows.push(r):s?n.cols.push(r):n.normals.push(r)}return n}(s,r,a),u=[];if(d.all.length>0&&!c.global)u.push(nY(o,i,n,!1));else{let e,t,r,a=[],s=[],h=[];if(!c.row)for(e=0;e<d.rows.length;e++)for(t=(r=d.rows[e]).from.row;t<=r.to.row;t++)c.filtered?.[t]!==!0&&a.push([t,n]);if(!c.col)for(e=0;e<d.cols.length;e++)for(t=(r=d.cols[e]).from.col;t<=r.to.col;t++)s.push([t,n]);if(!c.cell&&d.normals.length>0)for(e=0;e<d.normals.length;e++){r=d.normals[e];for(let e=r.from.row;e<=r.to.row;e++)if(c.filtered?.[e]!==!0)for(let t=r.from.col;t<=r.to.col;t++)h.push([e,t,n])}a.length>0&&u.push(nW(o,"row",i,a,!1)),s.length>0&&u.push(nW(o,"col",i,s,!1)),h.length>0&&u.push(nH(o,i,h,l))}return t&&u.push(...await t(d)),u}async function dC(e,t,i,n){let{dataBridge:o}=e,r=(await Promise.all(tN(i.map(e=>e.toArray())).map(async e=>{let[i,r,a,s]=e,l=await o.getRangeData(t,{row:i,col:r},{row:a,col:s}),c=await o.getFilteredRows(t,i,a),d=[];for(let e=i;e<=a;e++)if(!c[e-i])for(let t=r;t<=s;t++){let o=l[e-i][t-r];if((0,ts.pM)(o)){let i=td.Z.fromJSON(o).setCellStyle(n);d.push([e,t,(0,ts.i1)(i)])}}return d}))).flat();return r.length>0?[nR(t,r,tL.Format)]:[]}async function dk(e,t,i,n,o,r){let{dataBridge:a}=e;if(!a.getWorkbook().hasSheet(t)||!await df(e,i,t))return;i=i.map(e=>e.clone().normalize());let{rowCount:s,colCount:l}=await a.getSheetDimension(t),c=s-1,d=0;for(let e of i)c=Math.min(c,e.from.row),d=Math.max(d,e.to.row);let u=Array(c).fill(!1).concat(...await a.getFilteredRows(t,c,d)),h={[o]:r},p=await dS({cls:n,value:h,sheetId:t,rowCount:s,colCount:l,multiRange:i,skip:{filtered:u}});return"Font"===n&&p.push(...await dC(e,t,i,h)),p}async function dI(e,t,i,n,o){let{dataBridge:r}=e;if(!r.getWorkbook().hasSheet(t)||!await df(e,i,t))return;let{rowCount:a,colCount:s}=await r.getSheetDimension(t),l=await dS({cls:"Format",value:o,sheetId:t,rowCount:a,colCount:s,multiRange:i});return 0<n.length&&l.push(nR(t,n,tL.Format)),l}async function dA(e,t,i){let{dataBridge:n}=e;if(!n.getWorkbook().hasSheet(t)||!await df(e,i,t))return;let o=[];await tR(i,async(e,i)=>await n.getRangeData(t,e,i),(e,t,i)=>{(0,ts.pM)(i)&&o.push([e,t,(0,td.g)(i)])},async(e,i)=>await n.getFilteredRows(t,e,i));let{rowCount:r,colCount:a}=await n.getSheetDimension(t),s={value:null,sheetId:t,rowCount:r,colCount:a,multiRange:i,overwrite:!0},l=await dS((0,tl.l7)(s,{cls:"Font"}));return l.push(...await dS((0,tl.l7)(s,{cls:"Fill"}))),l.push(...await dS((0,tl.l7)(s,{cls:"Alignment"}))),l.push(...await dS((0,tl.l7)(s,{cls:"Border"}))),o.length>0&&l.push(nR(t,o,tL.ClearFormat)),l}async function dT(e,t,i,n,o){let{dataBridge:r}=e;if(!r.getWorkbook().hasSheet(t)||0===i.length||!await df(e,i,t))return;let a=n.split("_")[0];if(0>["top","right","bottom","left","outer","horizontal","vertical","inner"].indexOf(a))return;let{rowCount:s,colCount:l}=await r.getSheetDimension(t),c=(await Promise.all(i.map(async e=>{let i=e.getTopLeftCorner(),n=e.getBottomRightCorner(),c={row:Math.max(i.row-1,0),col:Math.max(i.col-1,0)},d=await r.getRangeComputedStyle(t,c,{row:n.row+1,col:n.col+1});return eQ(s,l,e,a,o,(e,t)=>d[e-c.row][t-c.col].border.b)}))).reduce((e,t)=>(e.push(...t),e),[]);return[nH(t,"Border",c)]}async function dE(e,t,i){let{dataBridge:n}=e,o=i.getTopLeftCorner(),r=i.getBottomRightCorner(),a={row:Math.max(0,o.row-1),col:Math.max(0,o.col-1)},s={row:r.row+1,col:r.col+1},l=await n.getRangeComputedStyle(t,a,s);return(e,t)=>l[e-a.row][t-a.col].border.b}async function dR(e,t,i,n){let{dataBridge:o}=e;if(!o.getWorkbook().hasSheet(t)||0===i.length||!await df(e,i,t))return;let r=[],a=[],{rowCount:s,colCount:l}=await o.getSheetDimension(t),c=await Promise.all(i.map(async e=>{let i=e.getTopLeftCorner(),n=await o.getMergedRange(t,i.row,i.col);return n?.isEqual(e)??!1}));for(let e=0;e<i.length;e++){let t=i[e];c[e]?r.push(t):a.push(t)}let d=[],u=await Promise.all(r.map(i=>dE(e,t,i)));for(let e=0;e<r.length;e++)d.push(...eQ(s,l,r[e],"outer",n,u[e]));let h=[];return d.length>0&&h.push(nH(t,"Border",d)),h.push(...await dS({cls:"Border",value:eq(n),sheetId:t,rowCount:s,colCount:l,multiRange:a,overwrite:!0,skip:{cell:!0}},async i=>{if(i.all.length>0)return[];let{rows:o,cols:r,normals:a}=i,c=[];for(let e=0;e<o.length;e++)c.push(nW(t,"row","Border",e0(s,o[e],"all",null)));for(let e=0;e<r.length;e++)c.push(nW(t,"col","Border",e1(l,r[e],"all",null)));let d=await Promise.all(a.map(i=>dE(e,t,i)));for(let e=0;e<a.length;e++)c.push(nH(t,"Border",eQ(s,l,a[e],"ALL",n,d[e])));return c})),h}async function dD(e,t,i){let{dataBridge:n}=e;if(!n.getWorkbook().hasSheet(t)||!await df(e,i,t))return;let{rowCount:o,colCount:r}=await n.getSheetDimension(t);return await dS({cls:"Border",value:null,sheetId:t,rowCount:o,colCount:r,multiRange:i,overwrite:!0,skip:{cell:!0}},async i=>{if(i.all.length>0)return[];let n=[],{rows:a,cols:s,normals:l}=i;for(let e=0;e<a.length;e++)n.push(nW(t,"row","Border",e0(o,a[e],"all",null)));for(let e=0;e<s.length;e++)n.push(nW(t,"col","Border",e1(r,s[e],"all",null)));let c=await Promise.all(l.map(i=>dE(e,t,i)));for(let e=0;e<l.length;e++)n.push(nH(t,"Border",eQ(o,r,l[e],"ALL",null,c[e])));return n})}async function dO(e,t,i){return(await e.getMergedOverlap(t,i)).every(e=>i.some(t=>t.includesRange(e)))?null:aK.MERGE_PARTIAL}async function dM(e,t,i){if(i)return await e.checkMergeRangesError(t,i)}async function dN(e,t,i,n){let{from:o,to:r}=i,a=[],s={font:[],fill:[],alignment:[]},l=[],c=null,d=await e.getRangeData(t,o,r);for(let e=o.row;e<=r.row;e++)for(let t=o.col;t<=r.col;t++)(0,eI.O2)(d[e-o.row][t-o.col])||(c?a.push([e,t,null]):c={row:e,col:t});let u=!!c&&a.length>0;if(c||(c={row:o.row,col:o.col}),c.row!==o.row||c.col!==o.col){let e=d[c.row-o.row][c.col-o.col];a.push([c.row,c.col,null],[o.row,o.col,(0,ts.pM)(e)?td.Z.fromJSON(e):e])}let h=(await e.getRangeValidId(t,c,c))[0][0],p=(await e.getRangeComputedStyle(t,c,c))[0][0],f=0===Object.keys(p.font).length?null:p.font,g=0===Object.keys(p.fill).length?null:p.fill,m=0===Object.keys(p.font).length?null:p.alignment;i.forAll((e,t)=>{l.push({row:e,col:t,pattern:eZ.OUTER,colors:null}),(c.row!==e||c.col!==t)&&(s.font.push([e,t,f]),s.fill.push([e,t,g]),s.alignment.push([e,t,m]))});let{rowCount:v,colCount:b}=n||await e.getSheetDimension(t),y=eq(p.border.b);return eK(y)||l.push(...e$(v,b,i,"outer",y)),{range:i,data:a,...s,needConfirm:u,refValidId:h,borderOp:l}}async function dP(e,t,i){let n=1/0,o=1/0,r=-1,a=-1;for(let{row:e,col:t}of i)n=Math.min(n,e),o=Math.min(o,t),r=Math.max(r,e),a=Math.max(a,t);let s=await e.getRangeComputedStyle(t,{row:n,col:o},{row:r,col:a});return eJ(i,(e,t)=>s[e-n][t-o].border.b)}async function dL(e,t,i){if(!(i=i&&eb(i))||0===i.length||(i=i.map(e=>e.clone().normalize())).every(e=>1===e.getWidth()&&1===e.getHeight())||(0,eA.B7)(i))return;let{dataBridge:n,uiBridge:o}=e;if(!n.getWorkbook().hasSheet(t)||!await df(e,i,t))return;let r=await dM(n,t,i)??await dO(n,t,i);if(r)return r;if((await n.listPivotTableLocations(t)).some(e=>{let{location:t}=e;return tW(t,i)!==eA.DM.none}))return aK.PIVOT_TABLE_MODIFY_PARTIAL;let a=await n.getSheetDimension(t),s=await Promise.all(i.map(e=>dN(n,t,e,a)));if(s.some(e=>e.needConfirm)&&!await o.onConfirm(aK.CLEAR_MERGE_DATA))return;let l={data:s.map(e=>e.data).flat(),font:s.map(e=>e.font).flat(),fill:s.map(e=>e.fill).flat(),alignment:s.map(e=>e.alignment).flat(),border:await dP(n,t,s.map(e=>e.borderOp).flat())},c=[];for(let e of i)c.push(nV(t,e));let d=tL.MergeCell;for(let{range:e,refValidId:i}of(l.data&&0<l.data.length&&c.push(nR(t,l.data,d)),l.font&&0<l.font.length&&c.push(nH(t,"Font",l.font,!0,d)),l.fill&&0<l.fill.length&&c.push(nH(t,"Fill",l.fill,!0,d)),l.alignment&&0<l.alignment.length&&c.push(nH(t,"Alignment",l.alignment,!0,d)),l.border&&0<l.border.length&&c.push(nH(t,"Border",l.border,!0,d)),s))c.push(n7(t,e)),i&&c.push(n5(t,i,e));for(let e of i)c.push(nF(t,!0,e));return c}async function dB(e,t,i){i=i&&eb(i);let{dataBridge:n}=e,o=n.getWorkbook();if(i&&0!==i.length&&o.hasSheet(t)&&await df(e,i,t))return i.map(e=>nV(t,e))}class dF{constructor({dataBridge:e,uiBridge:t,undoRedo:i,transport:n}){this.createPivotTable=dV(this._createPivotTable),this.deletePivotTable=dV(this._deletePivotTable),this.refreshPivotTableData=dV(this._refreshPivotTableData),this.changePivotTableSource=dV(this._changePivotTableSource),this.clonePivotTable=dV(this._clonePivotTable),this.movePivotTable=dV(this._movePivotTable),this.convertPivotTableToCompatible=dV(this._convertPivotTableToCompatible),this.setPivotTableCaption=dV(this._setPivotTableCaption),this.movePivotAxisFieldCommand=dV(this._movePivotAxisFieldCommand),this.unusePivotField=dV(this._unusePivotField),this.setPivotTableValuesFieldAxis=dV(this._setPivotTableValuesFieldAxis),this.insertPivotDataFieldCommand=dV(this._insertPivotDataFieldCommand),this.movePivotDataFieldCommand=dV(this._movePivotDataFieldCommand),this.removePivotDataFieldCommand=dV(this._removePivotDataFieldCommand),this.setPivotFieldFilter=dV(this._setPivotFieldFilter),this.setPivotFieldAttr=dV(this._setPivotFieldAttr),this.setPivotDataFieldAttr=dV(this._setPivotDataFieldAttr),this.setPivotFieldItemAttr=dV(this._setPivotFieldItemAttr),this.groupPivotFieldItems=dV(this._groupPivotFieldItems),this.ungroupPivotFieldItems=dV(this._ungroupPivotFieldItems),this.setPivotFieldNumberGroup=dV(this._setPivotFieldNumberGroup),this.setPivotFieldDatetimeGroup=dV(this._setPivotFieldDatetimeGroup),this.setPivotCellAsItemName=dV(this._setPivotCellAsItemName),this.setPivotCellAsFieldName=dV(this._setPivotCellAsFieldName),this.setPivotCellAsDataFieldName=dV(this._setPivotCellAsDataFieldName),this.setPivotCellAsFilterItem=dV(this._setPivotCellAsFilterItem),this.setPivotCellAsSubtotalCaption=dV(this._setPivotCellAsSubtotalCaption),this.setPivotCellAsGrandTotalCaption=dV(this._setPivotCellAsGrandTotalCaption),this.setPivotCellAsColumnHeaderCaption=dV(this._setPivotCellAsColumnHeaderCaption),this.setPivotCellAsRowHeaderCaption=dV(this._setPivotCellAsRowHeaderCaption),this.createPivotDetailSheet=dV(this._createPivotDetailSheet),this.createPivotTableSheet=dV(this._createPivotTableSheet),this.dataBridge=e,this.uiBridge=t,this.hot=null,this.undoRedo=i??null,this.transport=n??null}bindHot(e){return this.hot=e,this}async execCompound(e,t){await this._recordSels(async()=>{let t=await e();t.length>0&&await this.execCommand(1===t.length?t[0]:nE(t))},t)}async execCommand(e){return this.reserveLocalCommand(async()=>{let t=await this._getDataBridge().execCommand(e);return t&&this.undoRedo?.done(t),t?{action:t}:void 0})}async reserveLocalCommand(e){return this.transport?this.transport.reserveLocalCommand(e):(await e())?.action}async _recordSels(e,t){let i=(0,eG.Z)(this.undoRedo?.doneActions??[]);t=t||this._getUserSelections(),await e();let n=(0,eG.Z)(this.undoRedo?.doneActions??[]);i!==n&&n.setSelections(t)}_getUserSelections(){return this.hot?.serializeSelections()}fail(e){return Promise.reject({message:e})}async done(e){return this.getUIBridge().onActionDone(e),await this._getDataBridge().forceUpdate(),!0}_getUserInfo(){return this.getUIBridge().getUserInfo()}_getBridges(){return{dataBridge:this._getDataBridge(),uiBridge:this.getUIBridge()}}async checkProtectedWorksheet(e,t){return dp(this._getBridges(),[e],t)}async _handleCommandResult(e,t){return Array.isArray(e)?(await this.execCompound(()=>e,t),this.done()):this.fail(e)}async setValues(e,t,i){let n=this._getUserSelections();return this._handleCommandResult(await d_(this._getBridges(),e,t,i),n)}async setStyleMeta(e,t,i,n,o){return this._handleCommandResult(await dk(this._getBridges(),e,t,i,n,o))}async setDataAndFormat(e,t,i,n){return this._handleCommandResult(await dI(this._getBridges(),e,t,i,n))}async setFormat(e,t,i){if(!this._getWorkbook().hasSheet(e))return this.fail();let n=[];return await tR(t,async(t,i)=>await this.dataBridge.getRangeCellByKey(e,t,i,["v","renderDesc"]),(e,t,o)=>{let{v:r,renderDesc:a}=o;if(null==r||(0,t_.jr)(r))return;let s="string"==typeof r;(0,ts.pM)(r)&&(r=new td.Z(r.v).getText(),s=!0),"@"!==i||s?"@"!==i&&s&&n.push([e,t,r]):n.push([e,t,a.v])},async(t,i)=>await this.dataBridge.getFilteredRows(e,t,i)),this.setDataAndFormat(e,t,n,i)}async fillDatetime(e,t,i,n){if(!this._getWorkbook().hasSheet(e))return this.fail();let o=[];return await tR(i,(e,t)=>Array(t.row-e.row+1).fill([]),(e,i)=>{o.push([e,i,t])},async(t,i)=>await this.dataBridge.getFilteredRows(e,t,i)),this.setDataAndFormat(e,i,o,n)}async clearFormat(e,t){return this._handleCommandResult(await dA(this._getBridges(),e,t))}async setBorder(e,t,i,n){return this._handleCommandResult(await dT(this._getBridges(),e,t,i,n))}async setAllBorder(e,t,i){return this._handleCommandResult(await dR(this._getBridges(),e,t,i))}async removeBorder(e,t){return this._handleCommandResult(await dD(this._getBridges(),e,t))}async hasCrossingMergeCells(e,t){let i=this._getDataBridge();return(await Promise.all(t.map(t=>i.checkIncompleteMergedCells(e,t)))).some(e=>e)}async mergeCells(e,t){return this._handleCommandResult(await dL(this._getBridges(),e,t))}async unmergeCells(e,t){return this._handleCommandResult(await dB(this._getBridges(),e,t))}async isMerged(e,t){if(!t||!this._getWorkbook().hasSheet(e))return!0;Array.isArray(t)&&(t=(0,eI.MT)(...t));let i=t.getTopLeftCorner(),n=await this.dataBridge.getMergedRange(e,i.row,i.col);return n?.isEqual(t)??!1}async fixRow(e,t){if("number"!=typeof t||t<0||!this._getWorkbook().hasSheet(e)||!await dp(this._getBridges(),[e]))return this.fail();let i=this.dataBridge,{colCount:n}=await i.getSheetDimension(e);if(t>0){let o=new eA.GJ(t,0,t,n-1);if((await i.getMergedOverlap(e,[o])).some(e=>e.from.row<t&&e.to.row>=t))return this.fail(aK.FREEZE_MERGED)}return await this._recordSels(async()=>{await this.execCommand(nK(e,"row",t))}),this.done()}async fixCol(e,t){if("number"!=typeof t||t<0||!this._getWorkbook().hasSheet(e)||!await dp(this._getBridges(),[e]))return this.fail();let i=this.dataBridge,{rowCount:n}=await i.getSheetDimension(e);if(t>0){let o=new eA.GJ(0,t,n-1,t);if((await i.getMergedOverlap(e,[o])).some(e=>e.from.col<t&&e.to.col>=t))return this.fail(aK.FREEZE_MERGED)}return await this._recordSels(async()=>{await this.execCommand(nK(e,"col",t))}),this.done()}async hideRows(e,t){if(!this._getWorkbook().hasSheet(e)||0===t.length||!await df(this._getBridges(),t,e))return this.fail();let i=await this.dataBridge.getRowInfo(e),{rowCount:n}=await this.dataBridge.getSheetDimension(e),o=tT(t,"row",e=>!i[e]?.hidden);return ix(o,e=>i[e]?.hidden??!1,n)?this.fail(aK.HIDE_ALL_ROW):(await this.execCompound(()=>o.map(t=>nX(e,!0,"row",t.from,t.to))),this.done())}async hideCols(e,t){if(!this._getWorkbook().hasSheet(e)||0===t.length||!await df(this._getBridges(),t,e))return this.fail();let i=await this.dataBridge.getColInfo(e),{colCount:n}=await this.dataBridge.getSheetDimension(e),o=tA(t,"col");return ix(o,e=>i[e]?.hidden??!1,n)?this.fail(aK.HIDE_ALL_COL):(await this.execCompound(()=>o.map(t=>nX(e,!0,"col",t.from,t.to))),this.done())}async showRows(e,t){if(!this._getWorkbook().hasSheet(e)||0===t.length||!await df(this._getBridges(),t,e))return this.fail();let i=t[0].from.row,n=0;for(let e of t)i=Math.min(e.getTopLeftCorner().row,i),n=Math.max(e.getBottomRightCorner().row,n);let o=await this.dataBridge.getFilteredRows(e,i,n),r=await this.dataBridge.getRowInfo(e),a=tT(t,"row",e=>!!r[e]?.hidden&&!o[e-i]);return await this.execCompound(()=>a.map(t=>nX(e,!1,"row",t.from,t.to))),this.done()}async showCols(e,t){if(!this._getWorkbook().hasSheet(e)||0===t.length||!await df(this._getBridges(),t,e))return this.fail();let i=await this.dataBridge.getColInfo(e),n=tT(t,"col",e=>i[e]?.hidden??!1);return await this.execCompound(()=>n.map(t=>nX(e,!1,"col",t.from,t.to))),this.done()}async _getAutoFilterRange(e,t){return t&&(t=await this.dataBridge.getAutoFilterRange(e,t)),t}async createFilter(e,t){if(!this._getWorkbook().hasSheet(e))return this.fail();let i=await this._getAutoFilterRange(e,t),n=this._checkFilterRange(i);function o(){return{range:i}}return n?this.fail(n).then(o,o):await df(this._getBridges(),i,e)?(await this._recordSels(async()=>{let t=(0,t_.O1)();await this.execCommand(nQ(e,t,i))}),this.done().then(o)):this.fail()}async _checkProtectedFilter(e,t){let i=await this.dataBridge.getActiveFilterData(t);return!i||e!==i.id||df(this._getBridges(),i.range,t)}async disableFilter(e,t){if(!this._getWorkbook().hasSheet(e)||!await this._checkProtectedFilter(t,e))return this.fail();let i=await this.dataBridge.getActiveFilterData(e);return await this.execCompound(()=>{let n=[];return t===i?.id?n.push(n$(e,t,!1,!1)):(t===i?.activeId&&n.push(n4(e,null)),n.push(n$(e,t,!1,!0))),n}),this.done()}async setFilter(e,t,i,n){if(!this._getWorkbook().hasSheet(e)||!await this._checkProtectedFilter(t,e))return this.fail();let o=await this.dataBridge.getActiveFilterData(e);return await this._recordSels(async()=>{t===o?.id?await this.execCommand(nJ(e,t,!1,i,n)):await this.execCommand(nJ(e,t,!0,i,n))}),this.done()}async createFilterView(e,t,i,n){if(!this._getWorkbook().hasSheet(e))return this.fail();let o=await this._getAutoFilterRange(e,i),r=this._checkFilterRange(o);function a(){return{range:o}}return r?this.fail(r).then(a,a):(await this.execCompound(()=>[n1(e,t,o,n),n4(e,t)]),this.done().then(a))}async createPrivateFilterView(e,t,i,n){return this._getWorkbook().hasSheet(e)?(await this.execCompound(()=>{let o=(0,t_.O1)(),r=[n1(e,o,t,i,!0),n4(e,o)];return n.forEach((i,n)=>r.push(nJ(e,o,!0,t[1]+n,i))),r}),this.done()):this.fail()}async updateFilterViewName(e,t,i){return this._getWorkbook().hasSheet(e)&&i?(await this._recordSels(async()=>{await this.execCommand(n2(e,t,i))}),this.done()):this.fail()}async updateFilterViewRange(e,t,i){if(!this._getWorkbook().hasSheet(e))return this.fail();let n=this._checkFilterRange(i);return n?this.fail(n):(await this._recordSels(async()=>{await this.execCommand(n0(e,t,!0,i))}),this.done())}async setActiveFilterView(e,t){return this._getWorkbook().hasSheet(e)?(await this._recordSels(async()=>{await this.execCommand(n4(e,t))}),this.done()):this.fail()}async applyLink(e,t,i,n,o,r){return void 0===r&&(r=!0),n||(n=o),o=(0,t_.yc)(o),this._applyInternalLink(e,t,i,n,o,r)}async applyInternalLink(e,t,i,n,o,r){let{sheetId:a,range:s}=o;if(void 0===r&&(r=!0),!this._getWorkbook().hasSheet(a))return this.fail();let l=this._getWorkbook(),c=`${(0,nC.escapeSheetName)(l.getNameById(a))}!${s}`;return this._applyInternalLink(e,t,i,n,c,r)}async _applyInternalLink(e,t,i,n,o,r){return(void 0===r&&(r=!0),this._getWorkbook().hasSheet(e)&&t>=0&&i>=0&&await dg(this._getBridges(),[[t,i]],e))?(await this.execCompound(async()=>{let a=[];if(r){let o=(await this.dataBridge.getRangeStyle(e,{row:t,col:i},{row:t,col:i}))[0][0];o?.nf.fc&&a.push(nz(e,[[t,i,null]],!0,tL.ApplyLink)),a.push(nR(e,[[t,i,n]],tL.ApplyLink))}let s=(await this.dataBridge.getRangeHyperlink(e,{row:t,col:i},{row:t,col:i}))?.[0][0];if(s)s.location!==o&&a.push(o_(e,{id:s.id,display:n,location:o}));else{let r=(0,t_.O1)();a.push(ow(e,{id:r,row:t,col:i,display:n,location:o}))}return a}),this.done()):this.fail()}async removeLink(e,t){return this._getWorkbook().hasSheet(e)&&0!==t.length&&await df(this._getBridges(),t,e)?(await this.execCompound(async()=>{let i=[],n=[];return await tR(t,async(t,i)=>await this.dataBridge.getRangeCellByKey(e,t,i,["v","link","renderDesc"]),(t,o,r)=>{let{v:a,link:s,renderDesc:l}=r;if(l.l){if((0,ts.pM)(a)){let e=td.Z.fromJSON(a).removeStyle({underline:!0,color:tu.Z.HYPER_LINK_COLOR});n.push([t,o,(0,ts.i1)(e)])}else l?.e&&n.push([t,o,l.v]);s&&i.push(ox(e,s.id))}},async(t,i)=>await this.dataBridge.getFilteredRows(e,t,i)),0<n.length&&i.push(nR(e,n,tL.RemoveLink)),i}),this.done()):this.fail()}async group(e,t,i){let n=i.getTopLeftCorner()[t],o=i.getBottomRightCorner()[t];if(i=new eA.GJ(n,n,o,o,eA.Y3[t]),!this._getWorkbook().hasSheet(e)||!await df(this._getBridges(),[i],e))return this.fail();let r=this._getDataBridge(),a=await ("row"===t?r.getRowInfo(e):r.getColInfo(e)),s=new tP;for(let e=i.from[t];e<=i.to[t];e++)(a[e]?.outlineLevel??0)<8&&s.push(e);return await this.execCompound(async()=>s.getResult().map(i=>oS(e,t,i.from,i.to))),this.done()}async ungroup(e,t,i){let n=i.getTopLeftCorner()[t],o=i.getBottomRightCorner()[t];if(i=new eA.GJ(n,n,o,o,eA.Y3[t]),!this._getWorkbook().hasSheet(e)||!await df(this._getBridges(),[i],e))return this.fail();let r=this._getDataBridge(),a=await ("row"===t?r.getRowInfo(e):r.getColInfo(e)),s=new tP;for(let e=n;e<=o;e++)(a[e]?.outlineLevel??0)>0&&s.push(e);return await this.execCompound(async()=>s.getResult().map(i=>oC(e,t,i.from,i.to))),this.done()}_findGroupRange(e,t,i){let n=t,o=t,r=e[t]?.outlineLevel??i;for(;n>0;){let t=e[n-1]?.outlineLevel??0;if(t<i)break;r=Math.min(t,r),n-=1}for(;o<e.length-1;){let t=e[o+1]?.outlineLevel??0;if(t<i)break;r=Math.min(t,r),o+=1}return{start:n,end:o,minLevel:r}}_getSingleGroupSections(e,t,i,n){let{start:o,end:r,minLevel:a}=this._findGroupRange(e,t,i),s=new tP,l=e[o-1]?.outlineLevel??0,c=!1;n&&(i=a);for(let t=o;t<=r;t++){let{hidden:o=!1,outlineLevel:r=0}=e[t]??{};n&&(r===i?c=!1:r>l&&e[t]?.collapse&&(c=!0)),o!==n||c||s.push(t),l=r}return{sections:s.getResult(),collapse:n?[]:[o]}}_getAllGroupSections(e,t,i){let n=new tP,o=[],r=0;for(let a=0;a<t;a++){let{hidden:t=!1,outlineLevel:s=0}=e[a]??{};t===i&&s>0&&n.push(a),!i&&s>r&&o.push(a),r=s}return{sections:n.getResult(),collapse:o}}async _getGroupRanges(e,t,i,n,o){let r=this._getDataBridge(),a=await ("row"===t?r.getRowInfo(e):r.getColInfo(e)),{rowCount:s,colCount:l}=await r.getSheetDimension(e),c="row"===t?s:l;if((a[i]?.outlineLevel??0)<n)return{ranges:[],collapse:[],error:{}};let{sections:d,collapse:u}=0===n?this._getAllGroupSections(a,c,o):this._getSingleGroupSections(a,i,n,o);if(!o&&ix(d,e=>a[e]?.hidden??!1,c))return{ranges:[],collapse:u,error:{message:"row"===t?aK.HIDE_ALL_ROW:aK.HIDE_ALL_COL}};let h=d.map(e=>{let{from:i,to:n}=e;return new eA.GJ(i,i,n,n,eA.Y3[t])});return await df(this._getBridges(),h,e)?{ranges:h,collapse:u}:{ranges:[],collapse:u,error:{}}}async collapseGroup(e,t,i,n){if(!this._getWorkbook().hasSheet(e))return this.fail();let{ranges:o,collapse:r,error:a}=await this._getGroupRanges(e,t,i,n,!1);if(a||0===o.length)return this.fail(a?.message);let s=o.map(i=>nX(e,!0,t,i.from[t],i.to[t]));return s.push(oI(e,t,r,!0)),await this.execCompound(async()=>s),this.done()}async expandGroup(e,t,i,n){if(!this._getWorkbook().hasSheet(e))return this.fail();let{ranges:o,error:r}=await this._getGroupRanges(e,t,i,n,!0);return r||0===o.length?this.fail(r?.message):(await this.execCompound(async()=>o.map(i=>nX(e,!1,t,i.from[t],i.to[t]))),this.done())}async expandAllGroup(e,t){if(!this._getWorkbook().hasSheet(e))return this.fail();let{ranges:i,error:n}=await this._getGroupRanges(e,t,0,0,!0);return n||0===i.length?this.fail(n?.message):(await this.execCompound(async()=>i.map(i=>nX(e,!1,t,i.from[t],i.to[t]))),this.done())}async collapseAllGroup(e,t){if(!this._getWorkbook().hasSheet(e))return this.fail();let{ranges:i,collapse:n,error:o}=await this._getGroupRanges(e,t,0,0,!1);if(o||0===i.length)return this.fail(o?.message);let r=i.map(i=>nX(e,!0,t,i.from[t],i.to[t]));return r.push(oI(e,t,n,!0)),await this.execCompound(async()=>r),this.done()}async removeGroup(e,t,i,n){if(!this._getWorkbook().hasSheet(e)||n<=0)return this.fail();let o=this._getDataBridge(),r=await ("row"===t?o.getRowInfo(e):o.getColInfo(e));if((r[i]?.outlineLevel??0)<n)return this.fail();let a=[],{start:s,end:l}=this._findGroupRange(r,i,n),c=new eA.GJ(s,s,l,l,eA.Y3[t]);if(!await df(this._getBridges(),[c],e))return this.fail();r.slice(s,l+1).every(e=>e?.hidden)&&a.push(nX(e,!1,t,s,l)),a.push(oC(e,t,s,l)),await this.execCompound(async()=>a),await this.done()}async removeAllGroup(e,t){if(!this._getWorkbook().hasSheet(e))return this.fail();let i=this._getDataBridge(),n=await ("row"===t?i.getRowInfo(e):i.getColInfo(e)),o=[],r=[],a=[],s=[],l=0,c=0;for(let i=0;i<=n.length;i++){let d=n[i]?.outlineLevel??0,u=n[i]?.hidden??!1;if(d>l)for(;a.length<d;)a.push({start:i,collapsed:!0});else if(d<l){for(;a.length>d;){let{start:n,collapsed:l}=a.pop();l&&function(e,t){for(;r.length>0&&(0,eG.Z)(r).end>=e;)r.pop();r.push({start:e,end:t})}(n,i-1),o.push(oC(e,t,n,i-1)),0===a.length&&s.push(new eA.GJ(n,n,i-1,i-1,eA.Y3[t]))}c=Math.min(c,a.length)}if(!u){for(let e=c;e<a.length;e++)a[e].collapsed=!1;c=a.length}l=d}if(!await df(this._getBridges(),s,e))return this.fail();for(let{start:i,end:n}of r)o.push(nX(e,!1,t,i,n));return this.execCompound(async()=>o),this.done()}async applyNote(e,t,i){if(!this._getWorkbook().hasSheet(e)||!t||!await df(this._getBridges(),t,e))return this.fail();let n=[];return t.forAll((e,t)=>{n.push([e,t,i])}),await this._recordSels(async()=>{await this.execCommand(nO(e,n))}),this.done()}async removeNote(e,t){if(!this._getWorkbook().hasSheet(e)||0===t.length||!await df(this._getBridges(),t,e))return this.fail();let i=[];return await tR(t,(e,t)=>Array(t.row-e.row+1).fill([]),(e,t)=>{i.push([e,t,""])},async(t,i)=>await this.dataBridge.getFilteredRows(e,t,i)),await this._recordSels(async()=>{await this.execCommand(nO(e,i))}),this.done()}async sort(e,t,i,n){if(!this._getWorkbook().hasSheet(e)||!t||!await df(this._getBridges(),t,e))return this.fail();let o=await this.dataBridge.getMergedOverlap(e,[t]),r=o.filter(e=>e.getHeight()>1),a=o.filter(e=>1===e.getHeight()&&(e.from.col<t.from.col||e.to.col>t.to.col));if(r.length>0||a.length>0)return await this.getUIBridge().onAlert(aK.SORT_MERGED,[r.map(e=>eR.toLabel(e)),a.map(e=>eR.toLabel(e))]),this.fail();let s=await this.dataBridge.getRowOrder(e,t,i,n);return s?(await this._getDataBridge().listPivotTableLocations(e)).some(e=>{let{location:i}=e;return tW(i,[t])!==eA.DM.none})?this.fail(aK.PIVOT_TABLE_MODIFY_PARTIAL):(await this._recordSels(async()=>{let{rowOrder:t,range:i}=s;t.length>0&&await this.execCommand(oi(e,t,i))}),this.done()):this.fail()}_getNormalizedDataRange(e,t){let i=this._getWorkbook().getCurrentSheet().getMergePlugin(),n=e.clone().normalize();if(t){let e=n.clone();if(e.to.row=e.from.row,i.expandSelection(e),n.from.row=e.normalize().to.row+1,n.from.row>n.to.row)return null}return n}_getAlignedCellSize(e){let t=this._getWorkbook().getCurrentSheet().getMergePlugin(),[i,n,o,r]=e.toArray(),a=1,s=1,l=t.getOverlap(e);if(l.length>0){a=l[0].getWidth(),s=l[0].getHeight();for(let e=i;e<=o;e+=s)for(let i=n;i<=r;i+=a){let n=new eA.GJ(e,i,e,i),o=t.expandSelection(n);if(o.getHeight()!==s||o.getWidth()!==a)return null}}return[s,a]}getRemoveDuplicatesRanges(){let e=this.hot?.selections.multiSelections.getMultiRange()??[];if(e.length>1)return void this.fail(aK.REMOVE_DUP_MULTI_RANGE);if(e.length<1)return void this.fail(aK.REMOVE_DUP_NO_DATA);let t=e[0].clone().normalize(),[i,n]=this._getAlignedCellSize(t)||[];if(void 0===i)return void this.fail(aK.REMOVE_DUP_NOT_ALIGNED);let o=this._getWorkbook().getCurrentSheet(),r=t.getHeight()/i==1,a=t.getWidth()/n==1,s=o.isEmptyRange(t);if(r||s){let e=eA.GJ.fromArray(o.getNonEmptyNeighborRange(t.toArray()));return e.isEqual(t)?void this.fail(s?aK.REMOVE_DUP_NO_DATA:aK.REMOVE_DUP_ONE_ROW):(this.hot?.selectCell(...e.toArray(),!1),this.getRemoveDuplicatesRanges())}if(a&&!s){let e=eA.GJ.fromArray(o.getNonEmptyNeighborRange(t.toArray()));if(!e.isEqual(t))return{range:t,suggestRange:e}}return{range:t}}getRemoveDuplicatesResult(e,t,i){void 0===i&&(i=!1);let n=this._getNormalizedDataRange(e,i),[o,r]=this._getAlignedCellSize(n)||[];if(void 0===o)return{error:{message:aK.REMOVE_DUP_NOT_ALIGNED}};let a=this._getWorkbook().getCurrentSheet().getRangeTexts(n,{rowStep:o,colStep:r});r>1&&(t=t.filter((e,t)=>t%r==0));let s=function(e,t){let i=e.map(e=>e.filter((e,i)=>t[i])),n=H.P6.findUnique(i),o=[];for(let e=0;e<i.length;e++)n[e]&&o.push(e);return o}(a,t),l=s.length,c=a.length-l,d=a.map(e=>e.some(e=>e)).lastIndexOf(!0),u=-1===d?a.length:d+1,h=s.filter(e=>e<u).length;return{dataRange:n,remainRows:s,remainCount:l,deletedCount:c,dataCount:u,remainDataCount:h,cellHeight:o,cellWidth:r}}async removeDuplicates(e,t,i){void 0===i&&(i=!1);let{error:n,dataRange:o,remainRows:r,remainCount:a,deletedCount:s,dataCount:l,remainDataCount:c,cellHeight:d}=this.getRemoveDuplicatesResult(e,t,i),u=this._getWorkbook().getCurrentSheet(),h=u.sheetId;if(n||!await df(this._getBridges(),o,h))return this.fail(n?.message);if((await this._getDataBridge().listPivotTableLocations(h)).some(e=>{let{location:t}=e;return tW(t,[o])!==eA.DM.none}))return this.fail(aK.PIVOT_TABLE_MODIFY_PARTIAL);let[p,f,g,m]=o.toArray(),v=s>0?eA.GJ.fromArray([p+a*d,f,g,m]):null,b=[],y=new Set(o.listRows());return(r.forEach((e,t)=>{let i=p+e*d,n=p+t*d,o=eA.GJ.fromArray([i,f,i+d-1,m]),r=eA.GJ.fromArray([n,f,n+d-1,m]);o.listRows().forEach(e=>y.delete(e)),e!==t&&b.push([o,r])}),Array.from(y).some(e=>u.isHiddenRow(e))&&!await this.getUIBridge().onConfirm(aK.REMOVE_DUP_HIDDEN_ROW).catch(()=>!1))?this.fail():(await this.execCompound(()=>{let e=[],t=u.sheetId;for(let[i,n]of b)e.push(og(t,i,n,!1));return v&&e.push(ov(t,v,!1,void 0),om(t,v,void 0)),e}),this.getUIBridge().onMessage(aK.REMOVE_DUP_DONE,[(l-c)*d,c*d]),this.done())}async createValidation(e,t,i){if(Array.isArray(i)||(i=[i]),0===(i=tN(i.map(e=>e.toArray())).map(eA.GJ.fromArray)).length||!this._getWorkbook().hasSheet(e)||!await df(this._getBridges(),i,e))return this.fail();let n=this._getWorkbook().getNameById(e),o=await this._getDataBridge().checkExistValidation(e,t,i),r=[],a=[];for(let s of i){let l=s.getTopLeftCorner(),c=s.getBottomRightCorner();if(o&&(await this._getDataBridge().getRangeValidId(e,l,c)).every(e=>e.every(e=>e===o)))continue;let d=new eR({sheetId:e,shName:n},l,c,i.type).toLabel();r.push(n7(e,s)),a.push(n6(e,t,d))}let s=r.concat(a);return 0===s.length?this.fail():(await this.execCompound(()=>s),this.done())}async removeValidation(e,t){return this._getWorkbook().hasSheet(e)&&await df(this._getBridges(),t,e)?(await this.execCompound(()=>t.map(t=>t?n7(e,t):null).filter(eT)),this.done()):this.fail()}async insertImage(e,t,i){return this._getWorkbook().hasSheet(e)&&await dp(this._getBridges(),[e])?(await this.execCommand(on(e,t,i)),this.done()):this.fail()}async resizeImage(e,t,i){return this._getWorkbook().hasSheet(e)&&await dp(this._getBridges(),[e])?(await this.execCommand(oo(e,t,i)),this.done()):this.fail()}async removeImage(e,t){return this._getWorkbook().hasSheet(e)&&await dp(this._getBridges(),[e])?(await this.execCommand(or(e,t)),this.done()):this.fail()}async replaceImage(e,t,i,n){return this._getWorkbook().hasSheet(e)&&await dp(this._getBridges(),[e])?(await this.execCompound(()=>[or(e,t),on(e,i,n)]),this.done()):this.fail()}async addCf(e,t){t.id||(t.id=(0,t_.O1)());let i=this._getWorkbook();if(!i.hasSheet(e))return this.fail();let n=cJ(t,i,e),o=n.ranges.map(t=>eR.createByWorkbook(t,i,e));return await df(this._getBridges(),o,e)?(await this._recordSels(async()=>{await this.execCommand(n9(e,n))}),this.done()):this.fail()}async updateCf(e,t,i){let n=this._getWorkbook();if(!n.hasSheet(e))return this.fail();let o=cJ(i,n,e),r=o.ranges.map(t=>eR.createByWorkbook(t,n,e));if(!await df(this._getBridges(),r,e))return this.fail();let a=await this.dataBridge.getCfIndexById(e,t);return await this.execCompound(()=>{let i=[];return a>-1?(i.push(oe(e,t)),o.cfId=t):(o.cfId=(0,t_.O1)(),a=void 0),i.push(n9(e,o,a)),i}),this.done()}async updateCfRanges(e,t,i){let n=this._getWorkbook(),o=await this.dataBridge.getCfJSONById(e,t);return o&&await df(this._getBridges(),[...o.ranges.map(t=>eR.createByWorkbook(t,n,e)),...i.map(t=>eR.createByWorkbook(t,n,e))],e)?(await this.execCommand(ot(e,t,i)),this.done()):this.fail()}async reorderCf(e,t,i){let n=this._getWorkbook(),o=await this.dataBridge.getCfJSONById(e,t);return o&&await df(this._getBridges(),o.ranges.map(t=>eR.createByWorkbook(t,n,e)),e)?(await this.execCompound(()=>o?[oe(e,t),n9(e,o,i)]:[]),this.done()):this.fail()}async removeCf(e,t){let i=this._getWorkbook(),n=await this.dataBridge.getCfJSONById(e,t);return n&&await df(this._getBridges(),n.ranges.map(t=>eR.createByWorkbook(t,i,e)),e)?(await this._recordSels(async()=>{await this.execCommand(oe(e,t))}),this.done()):this.fail()}async insertChart(e,t,i,n){return this._getWorkbook().hasSheet(e)&&await dp(this._getBridges(),[e])?(await this.execCommand(oa(e,t,i,n)),this.done()):this.fail()}async resizeChart(e,t,i){return this._getWorkbook().hasSheet(e)&&await dp(this._getBridges(),[e])?(await this.execCommand(ol(e,t,i)),this.done()):this.fail()}async adjustChart(e,t,i){return this._getWorkbook().hasSheet(e)&&await dp(this._getBridges(),[e])?(await this.execCommand(oc(e,t,i)),this.done()):this.fail()}async setChartConfig(e,t,i,n){return this._getWorkbook().hasSheet(e)&&await dp(this._getBridges(),[e])?(await this.execCommand(od(e,t,i,n)),this.done()):this.fail()}async removeChart(e,t){return this._getWorkbook().hasSheet(e)&&await dp(this._getBridges(),[e])?(await this.execCommand(os(e,t)),this.done()):this.fail()}async convertChartToImage(e,t,i){let n=await this.dataBridge.getChartPosition(e,t);return n&&await dp(this._getBridges(),[e])?(await this.execCompound(()=>[os(e,t),on(e,i,n)]),this.done()):this.fail()}async replaceAll(e){let t=e.searchNextSheet?this._getWorkbook().getVisibleOrder():[this._getWorkbook().getCurrentSheet().sheetId];try{let i=await this.dataBridge.getReplaceAllChanges(t,e),n=await Promise.all(i.map(e=>{let[t,i]=e;return db(this._getBridges(),i,t)}));if(!await dd(this._getBridges(),n))return this.fail();return await this.execCompound(()=>i.map(e=>{let[t,i]=e;return nR(t,i,tL.Edit)})),this.done()}catch{return this.fail()}}async resizeRows(e,t,i){if(!this._getWorkbook().hasSheet(e)||!await df(this._getBridges(),t,e))return this.fail();let n=await this.dataBridge.getRowInfo(e),o=tA(t,"row"),r=this._createResizeChanges(e=>n[e]?.h??null,o,i);return await this.execCompound(()=>r.map(t=>{let{from:i,to:n,size:o}=t;return nP(e,"row",i,n,o)})),this.done()}async resizeCols(e,t,i){if(!this._getWorkbook().hasSheet(e)||!await df(this._getBridges(),t,e))return this.fail();let n=await this.dataBridge.getColInfo(e),o=tA(t,"col"),r=this._createResizeChanges(e=>n[e]?.w??null,o,i);return await this.execCompound(()=>r.map(t=>{let{from:i,to:n,size:o}=t;return nP(e,"col",i,n,o)})),this.done()}_createResizeChanges(e,t,i){let n=[];return t.forEach((t,o)=>{let r,a=Array.isArray(i)?i[o]:Array(t.to-t.from+1).fill(i);for(let i=t.from;i<=t.to;i++){let o=a[i-t.from];e(i)!==o&&(r&&i===r.to+1?(r.to++,r.size.push(o)):(r={from:i,to:i,size:[o]},n.push(r)))}}),n}async applyInsertRowCol(e,t,i,n,o){let r="insert_row"===t?"row":"col",a=this._getWorkbook();if(!this._getWorkbook().hasSheet(e))return this.fail();let s=this.getInsertRowColChanges(i,n,o);if(0===s.length)return this.fail();if(s.reduce((e,t)=>{let[,i]=t;return e+i},0)>("row"===r?a.getAvailableRowCount(e):a.getAvailableColCount(e)))return this.fail(aK.EXCEED_CELL_QUOTA);let l=await Promise.all(s.map(t=>{let[i]=t;return this._checkInsertable(e,r,i)}));return l.every(e=>{let{result:t}=e;return t})?(await this.execCompound(()=>s.reverse().map(t=>{let[i,n,o]=t;return[ou(e,r,i,n),nL(e,r,i,n,o)]}).flat()),this.done({resetCopySelection:!1})):this.fail(l.find(e=>{let{reason:t}=e;return t}).reason)}getInsertRowColChanges(e,t,i){e=eb(e),t=eb(t),i=eb(i);let n=Math.max(e.length,t.length,i.length);if(n>1&&(1===e.length&&(e=Array(n).fill(e[0])),1===t.length&&(t=Array(n).fill(t[0])),1===i.length&&(i=Array(n).fill(i[0])),e.length!==n||t.length!==n||i.length!==n))return[];let o=new Map;for(let r=0;r<n;r++){let n=e[r];o.has(n)?o.get(n).amount+=t[r]:o.set(n,{amount:t[r],refIndex:i[r]})}return Array.from(o.keys()).sort((e,t)=>e-t).map(e=>{let t=o.get(e);return[e,t.amount,t.refIndex]})}async _checkInsertable(e,t,i){if(!await dm(this._getBridges(),e,t,i))return{result:!1};if(i>0){let{rowCount:n,colCount:o}=await this._getDataBridge().getSheetDimension(e),r=await this._getDataBridge().listPivotTableLocations(e),a=new eA.GJ(0,0,n-1,o-1);if(a.to[t]=i-1,tY([a],r).partial.length>0)return{result:!1,reason:aK.PIVOT_TABLE_INSERT_AMONG}}return{result:!0}}async removeRowColByRanges(e,t,i){let n;if(0===i.length||!this._getWorkbook().hasSheet(e)||!await df(this._getBridges(),i,e))return this.fail();let o=this._getDataBridge(),{rowCount:r,colCount:a}=await o.getSheetDimension(e),s=[],l="remove_row"===t;if(l){let t=await o.getRowInfo(e),l=await o.getFilteredRows(e,0,r-1);if(ix(n=tT(i,"row",e=>!l[e]),e=>t[e]?.hidden??!1,r))return this.fail(aK.REMOVE_ALL_ROW);s=n.map(e=>new eA.GJ(e.from,0,e.to,a-1))}else{let t=await o.getColInfo(e);if(ix(n=tA(i,"col"),e=>t[e]?.hidden??!1,a))return this.fail(aK.REMOVE_ALL_COL);s=n.map(e=>new eA.GJ(0,e.from,r-1,e.to))}let{full:c,partial:d}=tY(s,await o.listPivotTableLocations(e));if(d.length>0)return this.fail(aK.PIVOT_TABLE_REMOVE_PARTIAL);let u=l?"row":"col";return await this.execCompound(()=>{let t=c.map(e=>{let{id:t}=e;return o$(t)});for(let i=n.length-1;i>=0;i--){let{from:o,to:r}=n[i],a=r-o+1;t.push(oh(e,u,o,a),nB(e,u,o,a))}return t}),this.done({resetCopySelection:!1})}async createDefinedName(e,t,i){return await this._recordSels(async()=>{await this.execCommand(oH(e,t,i))}),this.done()}async removeDefinedName(e,t){return await this._recordSels(async()=>{await this.execCommand(oW(e,t))}),this.done()}async modifyDefinedName(e,t,i){return await this._recordSels(async()=>{await this.execCommand(oY(e,t,i))}),this.done()}async createRule(e){e.ruleId=(0,t_.O1)();let t=oj(e);return await dw(this._getBridges(),t)?(await this._recordSels(async()=>{await this.execCommand(t)}),this.done()):this.fail()}async updateRule(e,t){let i=oq(e,t);return await dw(this._getBridges(),i)?(await this._recordSels(async()=>{await this.execCommand(oq(e,t))}),this.done()):this.fail()}async deleteRule(e){let t=oK(e);return await this._getDataBridge().validateRuleCommand(t,this._getUserInfo())===rg.NOTHING&&await this.getUIBridge().onConfirm(aK.PROTECTION_DELETE)?(await this._recordSels(async()=>{await this.execCommand(t)}),this.done()):this.fail()}async moveRow(e,t,i,n,o){if(!this._getWorkbook().hasSheet(e))return this.fail();let r=this._getDataBridge(),a=await r.checkMoveEnable(e,"row",t,i,n,o);if(a)return this.fail(a);let s=new eA.GJ(t,-1,t+i-1,-1,eA.Y3.row),l=t+i+n;if(!await dd(this._getBridges(),[await dv(this._getBridges(),s,e),await dy(this._getBridges(),e,"row",l)]))return this.fail();let c=await r.listPivotTableLocations(e),{colCount:d}=await r.getSheetDimension(e);return tY([new eA.GJ(t,0,t+i-1,d-1)],c).partial.length>0||tY([new eA.GJ(t+i,0,l-1,d-1)],c).partial.length>0?this.fail(aK.PIVOT_TABLE_MOVE_PARTIAL):(await this.execCompound(()=>[op(e,"row",t,i,n,o),of(e,"row",t,i,n,o)]),this.done())}async moveCol(e,t,i,n,o){if(!this._getWorkbook().hasSheet(e))return this.fail();let r=this._getDataBridge(),a=await r.checkMoveEnable(e,"col",t,i,n,o);if(a)return this.fail(a);let s=new eA.GJ(-1,t,-1,t+i-1,eA.Y3.col),l=t+i+n;if(!await dd(this._getBridges(),[await dv(this._getBridges(),s,e),await dy(this._getBridges(),e,"col",l)]))return this.fail();let c=await r.listPivotTableLocations(e),{rowCount:d}=await r.getSheetDimension(e);return tY([new eA.GJ(0,t,d-1,t+i-1)],c).partial.length>0||tY([new eA.GJ(0,t+i,d-1,l-1)],c).partial.length>0?this.fail(aK.PIVOT_TABLE_MOVE_PARTIAL):(await this.execCompound(()=>[op(e,"col",t,i,n,o),of(e,"col",t,i,n,o)]),this.done())}async removeRanges(e,t){if(!this._getWorkbook().hasSheet(e)||!await dd(this._getBridges(),await dv(this._getBridges(),t,e)))return this.fail();let i=this._getDataBridge(),n=await i.listPivotTableLocations(e),{full:o,partial:r}=tY(t,n);if(r.length>0)return this.fail(aK.PIVOT_TABLE_REMOVE_PARTIAL);for(let{location:e}of o)t=function(e,t){for(let i of tH(t))e=tM(e,i).newRanges;return e}(t,e);let a=await i.getMergedOverlap(e,t),s=Math.min(...a.map(e=>e.from.row)),l=Math.max(...a.map(e=>e.to.row)),c=await i.getFilteredRows(e,s,l);if(a.some(e=>c[e.from.row-s]))return this.fail(aK.CANNOT_ACTION_ON_MERGE_CELL);let d=[],u=[];await tR(t,(t,n)=>i.getRangeHyperlink(e,t,n),(t,i,n)=>{n&&u.push(ox(e,n.id)),d.push([t,i,null])},(t,n)=>i.getFilteredRows(e,t,n));let h=o.map(e=>{let{id:t}=e;return o$(t)}).concat([nD(e,d)]).concat(u);return await this.execCompound(()=>h),this.done()}async _getMoveAutofillData(e,t,i,n){let o=this._getDataBridge(),r=await o.getAutofillObject(e,t.getTopLeftCorner(),t.getBottomRightCorner(),iC,"down",!1,tL.Cut),{mergedBorders:a,mergeRangeChanges:s}=await o.getMergedCellFormatChanges(i,n,r);return r.mergedBorders=a,r.mergeRanges=s,e===i&&r&&r.format&&(delete r.format.defaultColWidth,delete r.format.defaultRowHeight),r}_createMoveActionCommands(e,t,i,n,o,r,a,s){void 0===r&&(r=[]),void 0===s&&(s=!1);let l=this._createMoveActionCommandsBySteps(e,t,i,n,o,a,s);return[...l.clear,...r,...l.fillData,...l.moveFormula]}_createMoveActionCommandsBySteps(e,t,i,n,o,r,a){return void 0===a&&(a=!1),r??=e===i?tM([t],n).newRanges:[],{clear:[ov(e,t),...r.map(t=>om(e,t))],fillData:[nG(i,n,o,!1,tL.Cut)],moveFormula:[ob(e,t,i,n,a)]}}async moveRange(e,t,i,n,o){void 0===o&&(o=!1);let r=this._getDataBridge(),a=r.getWorkbook();if(!a.hasSheet(e)||!a.hasSheet(i))return this.fail();let s=[await dv(this._getBridges(),t,e),await dv(this._getBridges(),n,i)];if(!await dd(this._getBridges(),s))return this.fail();if(!a.isDimensionAvailable(i,n.to.row+1,n.to.col+1))return this.fail(aK.EXCEED_CELL_QUOTA);let l=await this._getMoveAutofillData(e,t,i,n),c=await dM(r,i,l.mergeRanges?.map(e=>{let[t]=e;return(0,eI.MT)(...t)}));if(c)return this.fail(c);let d=await r.listPivotTableLocations(e),{full:u,partial:h}=tY([t],d);if(h.length>0)return this.fail(aK.PIVOT_TABLE_MOVE_PARTIAL);if(o){let i=await this.dataBridge.getRangeData(e,n.from,n.to),o=!1;for(let{row:e,col:r}of n.iterateCoords())if(!t.includes({row:e,col:r})&&i[e-n.from.row][r-n.from.col]){o=!0;break}if(o&&!await this.getUIBridge().onConfirm(aK.MOVE_OVERWRITE_CELL))return this.fail()}let p={row:n.from.row-t.from.row,col:n.from.col-t.from.col},f=u.map(e=>{let{location:t}=e;return tH(t)}).flat(),g=[t];for(let e of f)g=tM(g,e).newRanges;let m=[n];e===i&&({newRanges:g}=tM(g,n),m=tM(m,t).newRanges);let{full:v,partial:b}=tY(m,e===i?d:await r.listPivotTableLocations(i));if(b.length>0)return this.fail(aK.PIVOT_TABLE_REMOVE_PARTIAL);let y=this._createMovePivotTableCommands(u,i,p),w=v.map(e=>{let{id:t}=e;return o$(t)}).concat(this._createMoveActionCommands(e,t,i,n,l,y,g));return await this.execCompound(()=>w,{ranges:[n.toArray()],activeIndex:0}),this.done()}async pasteRange(e,t,i,n){void 0===n&&(n=[]);let o=this._getDataBridge(),r=this._getWorkbook();if(!this._getWorkbook().hasSheet(e)||!await df(this._getBridges(),t,e))return this.fail();if(!r.isDimensionAvailable(e,t.to.row+1,t.to.col+1))return this.fail(aK.EXCEED_CELL_QUOTA);let{mergedBorders:a,mergeRangeChanges:s}=await this.dataBridge.getMergedCellFormatChanges(e,t,i),l=await dM(o,e,s?.map(e=>{let[t]=e;return(0,eI.MT)(...t)}));if(l)return this.fail(l);i.mergedBorders=a,i.mergeRanges=s;let{full:c,partial:d}=tY([t],await o.listPivotTableLocations(e));return d.length>0?this.fail(aK.PIVOT_TABLE_REMOVE_PARTIAL):(await this.execCompound(()=>[...c.map(e=>{let{id:t}=e;return o$(t)}),...n.map(e=>{let{tableJson:t,cacheJson:i}=e;return oQ(t,i)}),nG(e,t,i)],{ranges:[t.toArray()],activeIndex:0}),this.done({resetCopySelection:!1}))}async _insertCellsOneRange(e,t,i){let n=this._getWorkbook();if(!this._getWorkbook().hasSheet(e)||!t)return this.fail();let{rowCount:o,colCount:r}=await this.dataBridge.getSheetDimension(e);t=t.clone().normalize();let a="right"===i?"col":"row",s="col"===a?r:o,l="col"===a?t.getWidth():t.getHeight(),c=t.clone();c.to[a]=s-1;let d=c.clone().shift(a,l),u=c.clone();if(u.to[a]=u.from[a],!await df(this._getBridges(),c,e))return this.fail();let h=this.dataBridge;if(await h.checkIncompleteMergedCells(e,c))return this.fail(aK.MOVE_MERGE_CELL);if(!n.isDimensionAvailable(e,d.to.row+1,d.to.col+1))return this.fail(aK.EXCEED_CELL_QUOTA);let{full:p,partial:f}=tY([c],await h.listPivotTableLocations(e));if(f.length>0)return this.fail(aK.PIVOT_TABLE_MOVE_PARTIAL);let g=await this._getMoveAutofillData(e,c,e,d),m=this._createMovePivotTableCommands(p,e,{[a]:l}),v=this._createMoveActionCommands(e,c,e,d,g,m);return await this.execCompound(()=>v),this.done()}async insertCells(e,t,i){if(Array.isArray(t)||(t=[t]),1===t.length)return this._insertCellsOneRange(e,t[0],i);let n=this._getWorkbook();if(!n.hasSheet(e)||(0,eA.B7)(t))return this.fail();let o=this._getDataBridge(),{rowCount:r,colCount:a}=await o.getSheetDimension(e),s="right"===i?"col":"row",l="col"===s?a:r,c=(t=t.map(e=>e.clone().normalize())).map(e=>{let t=e.getSize(s),i=e.clone();i.to[s]=l-1;let n=i.clone().shift(s,t);return{selectRange:e,srcRange:i,dstRange:n}}).map(e=>{let{srcRange:t}=e;return t});if(!await df(this._getBridges(),c,e))return this.fail();if(await this.hasCrossingMergeCells(e,c))return this.fail(aK.MOVE_MERGE_CELL);let d=this.getRangeMovementsOnInsertion(s,t,l),u=d.reduce((e,t)=>{let{dstRange:i}=t;return e.rowCount=Math.max(e.rowCount,i.to.row+1),e.colCount=Math.max(e.colCount,i.to.col+1),e},{rowCount:r,colCount:a});if(!n.isDimensionAvailable(e,u.rowCount,u.colCount))return this.fail(aK.EXCEED_CELL_QUOTA);let h=[],p=[];for(let{srcRange:t,dstRange:i}of d){let n=await this._getMoveAutofillData(e,t,e,i),o=this._createMoveActionCommandsBySteps(e,t,e,i,n);h.push(o.clear),p.push(o.fillData)}let f=await o.listPivotTableLocations(e),g=new Map;for(let e=0;e<t.length;e++){let{full:i,partial:n}=tY([c[e]],f);if(n.length>0)return this.fail(aK.PIVOT_TABLE_MOVE_PARTIAL);let o=t[e].getSize(s);for(let e of i){let{id:t}=e,i=g.get(t);i?i.amount+=o:g.set(t,{table:e,amount:o})}}let m=[],v=[];for(let{table:e,amount:t}of g.values())m.push(e),v.push({[s]:t});let b=this._createMovePivotTableCommands(m,e,v),y=[];for(let i of t.slice().sort((e,t)=>t.from[s]-e.from[s])){let t=i.getSize(s),n=i.clone().normalize();n.to[s]=l-1;let o=n.clone().shift(s,t);y.push(ob(e,n,e,o,!1))}return await this.execCompound(()=>[...h.flat(),...b.flat(),...p.flat(),...y]),this.done()}getRangeMovementsOnInsertion(e,t,i){if(0===t.length)return[];let n="row"===e?"col":"row",o=t.map(t=>({from:t.from[n],to:t.to[n],index:t.from[e],amount:t.getSize(e)})),r={ADD:1,DEL:0},a=o.map(e=>[{type:r.ADD,cutAt:e.from,index:e.index,insertion:e},{type:r.DEL,cutAt:e.to+1,index:e.index,insertion:e}]).flat().sort((e,t)=>e.cutAt-t.cutAt||e.type-t.type),s=[],l={},c=0;for(let e of a){let{type:t,cutAt:i,index:n,insertion:o}=e;i!==c&&(s.push({from:c,to:i-1,insertions:Array.from(Object.values(l))}),c=i),t===r.ADD?l[n]=o:delete l[n]}let d=[];for(let t of s){let o=0,r=t.from,a=t.to;for(let s=0;s<t.insertions.length;s++){let l=t.insertions[s];o+=l.amount;let c=s===t.insertions.length-1?i-1:t.insertions[s+1].index-1,u=eA.GJ.fromRange({from:{[e]:l.index,[n]:r},to:{[e]:c,[n]:a}}),h=u.clone().shift(e,o);d.push({srcRange:u,dstRange:h})}}return d}async removeCellsOneRange(e,t,i){if(!this._getWorkbook().hasSheet(e)||!t)return this.fail();let n=this._getDataBridge(),{rowCount:o,colCount:r}=await n.getSheetDimension(e),a="left"===i?"col":"row",s="col"===a?r:o,l="col"===a?t.getWidth():t.getHeight(),c=t.clone().normalize(),d=c.clone(),u=c.clone(),h=null,p=c.to[a]<s-1;if(p&&(d.from[a]=c.to[a]+1,d.to[a]=s-1,u.to[a]=s-1-l,u.to[a]+1<=d.from[a]-1&&((h=c.clone()).from[a]=u.to[a]+1,h.to[a]=d.from[a]-1)),!await df(this._getBridges(),p?[c,d]:c,e))return this.fail();if(await n.checkIncompleteMergedCells(e,c)||p&&await n.checkIncompleteMergedCells(e,d))return this.fail(aK.MOVE_MERGE_CELL);let f=await n.listPivotTableLocations(e),{full:g,partial:m}=tY([c],f);if(m.length>0)return this.fail(aK.PIVOT_TABLE_REMOVE_PARTIAL);let v=[];if(p){let{full:e,partial:t}=tY([d],f);if(t.length>0)return this.fail(aK.PIVOT_TABLE_MOVE_PARTIAL);v=e}let b=g.map(e=>{let{id:t}=e;return o$(t)});if(p){let t=await this._getMoveAutofillData(e,d,e,u),i=[...h?[ov(e,h,!0,void 0),om(e,h,void 0)]:[],...this._createMovePivotTableCommands(v,e,{[a]:-l})];b.push(...this._createMoveActionCommands(e,d,e,u,t,i,void 0,!0))}else b.push(ov(e,c,!0,void 0),om(e,c,void 0),oy(e,c,void 0));return await this.execCompound(()=>b),this.done()}async removeCells(e,t,i){if(Array.isArray(t)||(t=[t]),1===t.length)return this.removeCellsOneRange(e,t[0],i);if(!this._getWorkbook().hasSheet(e)||(0,eA.B7)(t))return this.fail();let n=this._getDataBridge(),{rowCount:o,colCount:r}=await n.getSheetDimension(e),a="left"===i?"col":"row",s="col"===a?r:o,l=(t=t.map(e=>e.clone().normalize())).map(e=>{let t=e.getSize(a),i=e.to[a]<s-1,n=i?e.clone():null;n&&(n.from[a]=e.to[a]+1,n.to[a]=s-1);let o=i?n.clone().shift(a,-t):null,r=i&&o.to[a]+1<=n.from[a]-1?n.clone():null;return r&&(r.from[a]=o.to[a]+1,r.to[a]=n.from[a]-1),{selectRange:e,srcRange:n,dstRange:o,betweenRange:r}}),c=l.map(e=>{let{srcRange:t}=e;return t}).filter(eT),d=t.concat(c);if(!await df(this._getBridges(),d,e))return this.fail();if(await this.hasCrossingMergeCells(e,d))return this.fail(aK.MOVE_MERGE_CELL);let u=await n.listPivotTableLocations(e),h=new Map;for(let{selectRange:e,srcRange:t}of l){let i=tY([e],u);if(i.partial.length>0)return this.fail(aK.PIVOT_TABLE_REMOVE_PARTIAL);for(let e of i.full){let{id:t}=e,i=h.get(t);i?i.remove=!0:h.set(t,{table:e,shift:0,remove:!0})}if(!t)continue;let n=tY([t],u);if(n.partial.length>0)return this.fail(aK.PIVOT_TABLE_MOVE_PARTIAL);let o=e.getSize(a);for(let e of n.full){let{id:t}=e,i=h.get(t);i?i.shift+=o:h.set(t,{table:e,shift:o,remove:!1})}}let p=[],f=[],g=[];for(let{table:e,shift:t,remove:i}of h.values())i?p.push(e):(f.push(e),g.push({[a]:-t}));let m=p.map(e=>{let{id:t}=e;return o$(t)}),v=this._createMovePivotTableCommands(f,e,g),b=this.getRangeMovementsOnRemoval(a,t,s),y=[],w=[];for(let{srcRange:t,dstRange:i}of b)if(i){let n=await this._getMoveAutofillData(e,t,e,i),o=this._createMoveActionCommandsBySteps(e,t,e,i,n);y.push(o.clear),w.push(o.fillData)}else y.push(ov(e,t,!0,void 0),om(e,t,void 0));let _=[];for(let{selectRange:t,srcRange:i,dstRange:n}of l.slice().sort((e,t)=>t.selectRange.to[a]-e.selectRange.to[a]))i?_.push(ob(e,i,e,n,!0)):_.push(oy(e,t,void 0));return await this.execCompound(()=>[...m.flat(),...y.flat(),...v.flat(),...w.flat(),..._]),this.done()}getRangeMovementsOnRemoval(e,t,i){if(0===t.length)return[];let n="row"===e?"col":"row",o=t.map(t=>({from:t.from[n],to:t.to[n],index:t.from[e],amount:t.getSize(e)})),r={ADD:1,DEL:0},a=o.map(e=>[{type:r.ADD,cutAt:e.from,index:e.index,removal:e},{type:r.DEL,cutAt:e.to+1,index:e.index,removal:e}]).flat().sort((e,t)=>e.cutAt-t.cutAt||e.type-t.type),s=[],l={},c=0;for(let e of a){let{type:t,cutAt:i,index:n,removal:o}=e;i!==c&&(s.push({from:c,to:i-1,removals:Array.from(Object.values(l))}),c=i),t===r.ADD?l[n]=o:delete l[n]}let d=[];for(let t of s){let o=0,r=0,a=t.from,s=t.to;for(let l=0;l<t.removals.length;l++){let c=t.removals[l];o+=c.amount;let u=c.index+c.amount,h=l===t.removals.length-1?i-1:t.removals[l+1].index-1;if(u>h)continue;let p=eA.GJ.fromRange({from:{[e]:u,[n]:a},to:{[e]:h,[n]:s}}),f=p.clone().shift(e,-o);r=f.to[e],d.push({srcRange:p,dstRange:f})}for(let i=0;i<t.removals.length;i++){let o=t.removals[i],l=Math.max(o.index,r+1),c=o.index+o.amount-1;if(l>c)continue;let u=eA.GJ.fromRange({from:{[e]:l,[n]:a},to:{[e]:c,[n]:s}});d.push({srcRange:u})}}return d}_checkFilterRange(e){if(!e||e.isSingle())return aK.FILTER_AT_LEAST_TWO}async autofill(e,t,i,n,o){let r=new eA.GJ(t.row,t.col,i.row,i.col);if(!this._getWorkbook().hasSheet(e)||!await df(this._getBridges(),r,e)||!(t&&t.row>-1&&t.col>-1))return this.fail();let{full:a,partial:s}=tY([r],await this._getDataBridge().listPivotTableLocations(e));if(s.length>0)return this.fail(aK.PIVOT_TABLE_REMOVE_PARTIAL);let l=await this.dataBridge.getAutofillObject(e,n.getTopLeftCorner(),n.getBottomRightCorner(),["data","format","validation","cf","hyperlink"],o,!0);if(l.mergeRanges=(await this.dataBridge.getMergedCellFormatChanges(e,r,l))?.mergeRangeChanges,l.mergeRanges)for(let[t]of l.mergeRanges){let i=(0,eI.MT)(...t),n=await dM(this.dataBridge,e,[i])??await dO(this.dataBridge,e,[i]);if(n)return this.fail(n)}return await this.execCompound(()=>[...a.map(e=>{let{id:t}=e;return o$(t)}),nU(e,new eA.GJ(t.row,t.col,i.row,i.col),l,o,tL.Autofill)]),this.done()}async splitTextOfRange(e,t){if(e?.getWidth()!==1)return this.fail();e=e.clone().normalize();let i=this._getWorkbook().getCurrentSheet();if(!i)return this.fail();let n=i.sheetId,o=(await this.dataBridge.getRangeRenderedTexts(n,e.from,e.to)).map(e=>e[0]);if(0===o.length)return this.fail();let r=o.map(e=>(function(e,t){let i=t.delimiters||[","],n=t.trimWhitespaces??!0,o=t.consecutiveAsOne??!1,r=(0,ij.h)('"'),a="("+i.map(e=>(0,ij.h)(e)).join("|")+")",s=`(?!${a})`,l=`(${s}.)`,c=`${s}${r}([^${r}]|(${r}${r}))*(${r}|$)`,d=o?"+":"",u=n?`(${s}\\s)*`:"",h=RegExp(`^$|(${a}${d})|((${u}${c}${l}*)|${l}+)`,"gs"),p=e.match(h)||[],f=e=>!!e.match(RegExp(`^${a}${d}$`,"s")),g=[];for(let e=0;e<p.length;e++){let t=p[e],i=p[e-1];if(f(t))(void 0===i||f(i))&&g.push("");else{let e=function(e,t){if('"'!==e[0])return e;let i=[],n=!0,o=!1;for(let r of e.slice(1))n?'"'===r?o?(i.push(t),o=!1):o=!0:(o&&(n=!1),i.push(r)):i.push(r);return i.join("")}(n?t.trim():t,'"');g.push(e)}}return f(p[p.length-1])&&g.push(""),g})(e,t)),a=(0,tt.Z)(r.map(e=>e.length));r.forEach(e=>{e.length=a});let s=new eA.GJ(e.from.row,e.from.col,e.to.row,e.from.col+a-1),l=this.hot?.getMultiSelectedRange().map(e=>e.toArray())??[];if(this.hot?.selectRanges([s.toArray()]),!await df(this._getBridges(),s,n))return this.hot?.selectRanges(l),this.fail();if((await this._getDataBridge().listPivotTableLocations(n)).some(e=>{let{location:t}=e;return tW(t,[s])!==eA.DM.none}))return this.fail(aK.PIVOT_TABLE_MODIFY_PARTIAL);if((await this._getDataBridge().getRangeData(n,{row:s.from.row,col:s.from.col+1},s.to)).some(e=>e.some(e=>e))&&!await this.getUIBridge().onConfirm(aK.MOVE_OVERWRITE_CELL))return this.fail();let c=i.getWorkbook().getLocale().getInputParser(),d=[],u=[];for(let e of r){let t=Array(e.length),i=Array(e.length);d.push(t),u.push(i);for(let n=0;n<e.length;n++){let o=c.parse(e[n]);o?(t[n]=o.fc??"General",i[n]=o.v):(t[n]="General",i[n]=e[n])}}let h=(await this.dataBridge.getAutofillObject(i.sheetId,e.from,e.to,["format"],"down",!0))?.format;return h?(delete h.colWidth,await this.execCompound(()=>{let e=i.sheetId;return[nV(e,s),nU(e,s,{format:h,data:u}),nZ(e,s,d)]}),this.done()):this.fail()}async setSheetRtl(e,t){return await dp(this._getBridges(),[e])?(await this.execCommand(oA(e,t)),this.done()):this.fail()}async createComment(e,t){return await this._recordSels(async()=>{await this.execCommand(oT(e,t,!0))}),this.done()}async replyComment(e,t){return await this._recordSels(async()=>{await this.execCommand(oE(e,t,!1))}),this.done()}async reopenComment(e,t){return await this._recordSels(async()=>{await this.execCommand(oR(e,t.target,t.authorName,!0))}),this.done()}async resolveComment(e,t){return await this._recordSels(async()=>{await this.execCommand(oR(e,t.target,t.authorName,!1))}),this.done()}async editComment(e,t,i,n){return await this._recordSels(async()=>{await this.execCommand(oD(e,t,i,n))}),this.done()}async updateExternal(e,t){let i=await this._getDataBridge().calculateExternalChanges(e,t);i&&await this.execCommand(oV([[e,i]]))}async unlinkExternal(e){let t=await this._getDataBridge().getUnlinkChanges(e);await this.execCompound(()=>t.map(e=>{let[t,i]=e;return nR(t,i)}))}async removeExternalLinks(e){await this.execCommand(oz(e))}async clearEmptyExternalLinks(){let e=await this._getDataBridge().calculateEmptyRefExternalChanges();await this.execCommand(oV(e))}async _createPivotTableJson(e,t,i){let n=this._getDataBridge(),{cacheContent:o,message:r}=await n.calcPivotCacheContent(e.sheetId,e.range);if(r)return{cacheJson:null,tableJson:null,message:r};let a=await n.calcPivotTableContent(o.fields,e.range.from),s={id:(0,t_.O1)(),source:e,...o};return{tableJson:{id:(0,t_.O1)(),cacheId:s.id,location:{sheetId:t,coord:i,range:null,pageRanges:[]},styles:{},...a},cacheJson:s,message:null}}_getPivotTableRanges(e){let t=this._getWorkbook().getPivotTableManager().getTableById(e);return(t?sm(t):[]).map(eA.GJ.fromRange)}async checkPivotTableCommands(e,t,i){let n=await this._getDataBridge().calcPivotTableNewResult(e,i);if(!n)return null;if(n.message)return await this.pivotTableAlerts(n.message),null;let o=n.ranges.map(eA.GJ.fromRange),r=this._getPivotTableRanges(e),a=await this._getDataBridge().checkPivotTableRanges(e,t,r,o,this._getUserInfo());return await this.pivotTableAlerts(a)?{oldRanges:r,newRanges:o}:null}async pivotTableAlerts(e){e=eb(e);let t=[aK.PIVOT_TABLE_TOO_MANY_FIELD,aK.PIVOT_TABLE_TOO_MANY_ITEM,aK.PIVOT_TABLE_TOO_MANY_CELL,aK.PROTECTION_REJECT,aK.PIVOT_TABLE_BLOCK_BY_OTHER,aK.EXCEED_CELL_QUOTA],i=[aK.PROTECTION_WARNING,aK.PIVOT_TABLE_OVERWRITE_CELL,aK.PIVOT_TABLE_CONVERT_TOO_MANY_RECORD,aK.PIVOT_TABLE_CONVERT_TOO_MANY_FIELD,aK.PIVOT_TABLE_CONVERT_TOO_MANY_ITEM,aK.PIVOT_TABLE_CONVERT_TOO_MANY_CELL];for(let i of t)if(e.includes(i))return await this.getUIBridge().onAlert(i).catch(()=>{}),!1;for(let t of i)if(e.includes(t)&&!await this.getUIBridge().onConfirm(t).catch(()=>!1))return!1;return!0}getActionsToEnsureRangeExist(e,t){let i=0,n=0;for(let e of t)i=Math.max(i,e.from.row,e.to.row),n=Math.max(n,e.from.col,e.to.col);let{rowCount:o,colCount:r}=this._getWorkbook().getSheetDimension(e),a=i+1-o,s=n+1-r,l=[];return a>0&&l.push(nL(e,"row",o,a,o-1)),s>0&&l.push(nL(e,"col",r,s,r-1)),l}async execPivotCommand(e,t,i){let n=await this.checkPivotTableCommands(t,e,i);if(!n)return!1;let{oldRanges:o,newRanges:r}=n,a=r;for(let e of o)a=tM(a,e).newRanges;let s=this.getActionsToEnsureRangeExist(e,r),l=a.map(t=>[ov(e,t,!0,void 0),om(e,t,tL.RemoveValue)]).flat();return await this.execCompound(()=>[...s,...l,...i]),!0}async _createPivotTable(e,t,i){let{tableJson:n,cacheJson:o,message:r}=await this._createPivotTableJson(e,t,i);if(r)return this.fail(r);let a=[oQ(n,o)];return await this.execPivotCommand(t,null,a)?this.done():this.fail()}async _deletePivotTable(e){let t=this._getWorkbook().getPivotTableManager().getTableById(e);if(!t)return this.fail();let i=t.location.sheetId,n=this._getPivotTableRanges(e),o=await this._getDataBridge().checkPivotTableRanges(e,i,n,[],this._getUserInfo());return await this.pivotTableAlerts(o)?(await this.execCompound(()=>[o$(e)]),this.done()):this.fail()}async _refreshPivotTableData(e){let t=this._getDataBridge(),i=await t.getPivotTable(e);if(!i)return this.fail();let n=await t.getPivotCache(i.cacheId);if(!n)return this.fail();let{cacheContent:o,message:r}=await t.calcPivotCacheContent(n.source.sheetId,n.source.range,n.id);if(r)return this.fail(r);let a=n.source,s=await t.calcPivotTableContent(o.fields,a.range.from,e),l={id:i.cacheId,source:a,...o},c={...i,rowItems:[],colItems:[],...s},d=c.location.sheetId,u=[oJ(c,l)];return await this.execPivotCommand(d,e,u)?this.done():this.fail()}async _changePivotTableSource(e,t){let i=this._getDataBridge(),n=await i.getPivotTable(e);if(!n)return this.fail();let o=await i.getPivotCache(n.cacheId);if(!o)return this.fail();let{cacheContent:r,message:a}=await i.calcPivotCacheContent(t.sheetId,t.range,o.id);if(a)return this.fail(a);let s=await i.calcPivotTableContent(r.fields,t.range.from,e),l={id:n.cacheId,source:t,...r},c={...n,rowItems:[],colItems:[],...s},d=c.location.sheetId,u=[oJ(c,l)];return await this.execPivotCommand(d,e,u)?this.done():this.fail()}createCopiedPivotTableJsons(e,t,i){let{tableJson:n,cacheJson:o}=e,r={...o,id:(0,t_.O1)()};return{tableJson:{...n,id:(0,t_.O1)(),cacheId:r.id,rowItems:[],colItems:[],location:{sheetId:t,coord:(0,eA.Jr)(n.location.coord,i),range:n.location.range&&(0,eA.$u)(n.location.range,i),pageRanges:n.location.pageRanges.map(e=>(0,eA.$u)(e,i))}},cacheJson:r}}async _clonePivotTable(e,t,i){let n=this._getDataBridge(),o=await n.getPivotTable(e);if(!o)return this.fail();let r=await n.getPivotCache(o.cacheId);if(!r)return this.fail();let a={row:i.row-o.location.coord.row,col:i.col-o.location.coord.col},{tableJson:s,cacheJson:l}=this.createCopiedPivotTableJsons({tableJson:o,cacheJson:r},t,a),c=[oQ(s,l)];return await this.execPivotCommand(t,null,c)?this.done():this.fail()}_createMovePivotTableCommands(e,t,i){if(0===e.length)return[];if(Array.isArray(i)){if(i.length!==e.length)throw Error("The length of shiftOffset should be equal to the length of tables")}else i=Array(e.length).fill(i);let n=t===e[0].location.sheetId,o=e.map((e,n)=>{let{id:o,location:r}=e;return o0(o,t,(0,eA.Jr)(r.coord,i[n]))}),r=e.map(e=>{let{location:t}=e;return tH(t)}),a=r.flat(),s=r.map((e,t)=>e.map(e=>e.clone().shiftOffset(i[t]))).flat();if(n)for(let e of a)s=tM(s,e).newRanges;return s.map(e=>om(t,e)).concat(o)}async _movePivotTable(e,t,i){let n=this._getDataBridge();if(!await n.getPivotTable(e))return this.fail();let o=[o0(e,t,i)];return await this.execPivotCommand(t,e,o)?this.done():this.fail()}async _convertPivotTableToCompatible(e){let t=this._getDataBridge(),i=await t.checkPivotTableConvertMessages(e);if(!await this.pivotTableAlerts(i))return this.fail();let n=await t.convertIncompatiblePivotTable(e);if(!n)return this.fail();let{table:o,cache:r}=n,a=o.location.sheetId,s=[oJ(o,r)];return await this.execPivotCommand(a,e,s)?this.done():this.fail()}async _setPivotTableCaption(e,t,i){let n=this._getDataBridge(),o=await n.getPivotTable(e);if(!o)return this.fail();let r=sm(o).map(eA.GJ.fromRange);return await df(this._getBridges(),r,o.location.sheetId)?(await this._recordSels(async()=>{await this.execCommand(o1(e,t,i))}),this.done()):this.fail()}async _movePivotAxisFieldCommand(e,t,i,n){let o=this._getDataBridge(),r=await o.getPivotTable(e);if(!r)return this.fail();let a=r.pivotFields.find(e=>e.id===t),s=Number.POSITIVE_INFINITY;if(("row"===i||"col"===i)&&a&&"row"!==a.axis&&"col"!==a.axis&&(s=await o.getPivotFieldRemainCount(e))<=0)return this.fail(aK.PIVOT_TABLE_TOO_MANY_FIELD);let l=[];if("data"===i)l=[o2(e,t,null,-1),o3(e,t,n)];else{l=[o2(e,t,i,null===i?-1:n)];let c=await o.getPivotCache(r.cacheId),d=c?.fields.find(e=>e.id===t);if(d?.fromData&&!d.group&&ay(d.sharedItems)===ne.datetime&&a?.axis===null&&("row"===i||"col"===i)){let o=function(e){if(e.length<2)return[];function t(e){let t=(0,iZ.GG)((0,iZ.vB)(e));return{[nt.years]:t.getFullYear(),[nt.quarters]:t.getFullYear(),[nt.months]:t.getMonth(),[nt.days]:t.getDate(),[nt.hours]:t.getHours(),[nt.minutes]:t.getMinutes(),[nt.seconds]:t.getSeconds()}}let i=new Set,n=t(e[0]);for(let o=1;o<e.length;o++){let r=t(e[o]);for(let e of ni)n[e]!==r[e]&&i.add(e);if(i.size===ni.length)break}let o=[];for(let e of ni.slice().reverse()){if(o.length>2)break;if(i.has(e))o.push(e);else if(o.length>0)break}return o}(d.sharedItems.items.map(e=>e.value).filter(eT));if(Number.isFinite(s)&&o.splice(s),o.length>0){let a=n===r.fields[i].length;l.push(ri(e,t,aS(o),{default:{axis:i,position:n}},a))}}}let c=r.location.sheetId;return(l=l.length>1?[oX(l)]:l,await this.execPivotCommand(c,e,l))?this.done():this.fail()}async _unusePivotField(e,t){let i=this._getDataBridge(),n=await i.getPivotTable(e),o=n.pivotFields.find(e=>e.id===t);if(!n||!o)return this.fail();let r=[...["row","col","page"].includes(o.axis)?[o2(e,t,null,-1)]:[],...n.fields.data.filter(e=>e.fieldId===t).map(t=>o5(e,t.id))],a=n.location.sheetId;return(r=r.length>1?[oX(r)]:r,await this.execPivotCommand(a,e,r))?this.done():this.fail()}async _setPivotTableValuesFieldAxis(e,t){let i=this._getDataBridge(),n=await i.getPivotTable(e);if(!n||n.fields.data.length<=1)return this.fail();let o=[o2(e,a4,t,-1)],r=n.location.sheetId;return await this.execPivotCommand(r,e,o)?this.done():this.fail()}async _insertPivotDataFieldCommand(e,t,i,n){let o=this._getDataBridge(),r=await o.getPivotTable(e);if(!r)return this.fail();let a=[o3(e,t,i,n)],s=r.location.sheetId;return await this.execPivotCommand(s,e,a)?this.done():this.fail()}async _movePivotDataFieldCommand(e,t,i,n){let o=this._getDataBridge(),r=await o.getPivotTable(e),a=r?.fields.data.find(e=>e.id===t);if(!r||!a)return this.fail();let s=[];s=void 0!==n?[o5(e,t),o2(e,a.fieldId,n,i)]:[o4(e,t,i)];let l=r.location.sheetId;return(s=s.length>1?[oX(s)]:s,await this.execPivotCommand(l,e,s))?this.done():this.fail()}async _removePivotDataFieldCommand(e,t){let i=this._getDataBridge(),n=await i.getPivotTable(e);if(!n)return this.fail();let o=[o5(e,t)],r=n.location.sheetId;return await this.execPivotCommand(r,e,o)?this.done():this.fail()}async _setPivotFieldFilter(e,t,i){let n=this._getDataBridge(),o=await n.getPivotTable(e);if(!o)return this.fail();let r=await n.getPivotCache(o.cacheId);if(!r)return this.fail();let a=o.pivotFields.find(e=>e.id===t),s=r.fields.find(e=>e.id===t);if(!a||!s)return this.fail();let l=[],c=i&&s_(i)?new Set(i.value):null,d=[];for(let e of aj(a,s)){let t=null!==c&&!c.has(e.name);e.hidden!==t&&d.push([e.valueItem,t])}d.length>0&&l.push(o7(e,t,"hidden",d));let u=i&&(sx(i)||sS(i));(null!==a.filter||u)&&l.push(o6(e,t,[["filter",u?i:null]]));let h=o.location.sheetId;return(l=l.length>1?[oX(l)]:l,await this.execPivotCommand(h,e,l))?this.done():this.fail()}async _setPivotFieldAttr(e,t,i){let n=this._getDataBridge(),o=await n.getPivotTable(e);if(!o)return this.fail();let r=[o6(e,t,i)],a=i.find(e=>"sorting"===e[0]);if(a){let i=a[1].type,o=(await n.getPivotFieldItemNames(e,t,i)).map((e,t)=>[i5(e),t]);r.unshift(o7(e,t,"order",o))}r=r.length>1?[oX(r)]:r;let s=o.location.sheetId;return await this.execPivotCommand(s,e,r)?this.done():this.fail()}async _setPivotDataFieldAttr(e,t,i){let n=this._getDataBridge(),o=await n.getPivotTable(e);if(!o)return this.fail();let r=[o8(e,t,i)],a=o.location.sheetId;return await this.execPivotCommand(a,e,r)?this.done():this.fail()}async _setPivotFieldItemAttr(e,t,i,n){let o=this._getDataBridge(),r=await o.getPivotTable(e);if(!r)return this.fail();let a=[o7(e,t,i,n)];("order"===i||"caption"===i)&&a.unshift(o6(e,t,[["sorting",{type:"manual",fieldId:null}]]));let s=r.location.sheetId;return(a=a.length>1?[oX(a)]:a,await this.execPivotCommand(s,e,a))?this.done():this.fail()}async _groupPivotFieldItems(e,t){let i=await this._getDataBridge().getManualGroupChanges(e,t);if(!i)return this.fail(aK.PIVOT_TABLE_GROUP_FAIL);let{fieldId:n,childFieldId:o,changes:r}=i,a=this._getDataBridge(),s=await a.getPivotTable(e);if(!s)return this.fail();if(!s.pivotFields.find(e=>e.id===n)&&await a.getPivotFieldRemainCount(e)<=0)return this.fail(aK.PIVOT_TABLE_TOO_MANY_FIELD);let l=[o9(e,[{fieldId:n,childFieldIds:[o],changes:r,insertPosition:null}])],c=s.location.sheetId;return await this.execPivotCommand(c,e,l)?this.done():this.fail()}async _ungroupPivotFieldItems(e,t){let i=await this._getDataBridge().getManualUngroupChanges(e,t);if(!i||0===i.length)return this.fail();let n=this._getDataBridge(),o=await n.getPivotTable(e);if(!o)return this.fail();let r=[re(e,i)],a=o.location.sheetId;return await this.execPivotCommand(a,e,r)?this.done():this.fail()}async _setPivotFieldNumberGroup(e,t,i){let n=this._getDataBridge(),o=await n.getPivotTable(e);if(!o)return this.fail();let r=[rt(e,t,i)],a=o.location.sheetId;return await this.execPivotCommand(a,e,r)?this.done():this.fail()}async _setPivotFieldDatetimeGroup(e,t,i,n){let o=this._getDataBridge(),r=await o.getPivotTable(e);if(!r||!await o.getPivotCache(r.cacheId))return this.fail();let a=[ri(e,t,i,n)],s=r.location.sheetId;return await this.execPivotCommand(s,e,a)?this.done():this.fail()}async _setPivotCellAsItemName(e,t,i,n){if(!t||!i)return this.fail();if(""===n)return this.fail(aK.PIVOT_TABLE_NULL_NAME);let o=this._getDataBridge(),r=await o.getPivotFieldItemNames(e,t),a=r.find(e=>e.name.toLocaleLowerCase()===n.toLocaleLowerCase());if(!a||av(a,i))return this._setPivotFieldItemAttr(e,t,"caption",[[i,n]]);{let n=r.findIndex(e=>av(e,i));return n<0?this.fail():this._setPivotFieldItemAttr(e,t,"order",[[{type:a.type,value:a.value},n]])}}async _setPivotCellAsFieldName(e,t,i,n,o){if(void 0===o&&(o=!1),!t)return this.fail();if(""===n)return this.fail(aK.PIVOT_TABLE_NULL_NAME);let r=this._getDataBridge(),a=await r.getPivotFieldNames(e);if(a.dataFields.find(e=>e.name.toLocaleLowerCase()===n.toLocaleLowerCase()))return this.fail(aK.PIVOT_TABLE_FIELD_NAME_EXIST);let s=a.pivotFields.find(e=>e.name.toLocaleLowerCase()===n.toLocaleLowerCase());if(s&&s.id!==t){let n=await r.getPivotTable(e);if(!n||!i)return this.fail();let a=o?0:n.fields[i].findIndex(e=>e.fieldId===t);return a<0?this.fail():this._movePivotAxisFieldCommand(e,s.id,i,a)}{if(o)return this._setPivotTableCaption(e,"values",n);let i=a.pivotFields.find(e=>e.id===t),r=n.toLocaleLowerCase().endsWith(i.suffix.toLocaleLowerCase())&&n.length>i.suffix.length,s=r&&i.suffix.length>0?n.slice(0,-i.suffix.length):n;return this._setPivotFieldAttr(e,t,[["name",s],["useSuffix",r]])}}async _setPivotCellAsDataFieldName(e,t,i,n){if(!t||t===a4&&!i)return this.fail();if(""===n)return this.fail(aK.PIVOT_TABLE_NULL_NAME);let o=this._getDataBridge(),r=await o.getPivotFieldNames(e);if(r.pivotFields.find(e=>e.name.toLocaleLowerCase()===n.toLocaleLowerCase()))return this.fail(aK.PIVOT_TABLE_FIELD_NAME_EXIST);let a=t!==a4?t:r.dataFields.find(e=>e.name===i.value)?.id;if(!a)return this.fail();let s=r.dataFields.find(e=>e.name.toLocaleLowerCase()===n.toLocaleLowerCase());if(!s||s.id===a)return this._setPivotDataFieldAttr(e,a,[["name",n],["autoName",!1]]);{let t=await o.getPivotTable(e);if(!t)return this.fail();let i=t.fields.data.findIndex(e=>e.id===a);return i<0?this.fail():this._movePivotDataFieldCommand(e,s.id,i)}}async _setPivotCellAsFilterItem(e,t,i,n){if(!t)return this.fail();if(""===n)return this.fail(aK.PIVOT_TABLE_NULL_NAME);let o=this._getDataBridge(),r=await o.getPivotFieldItemNames(e,t),a=r.find(e=>e.name.toLocaleLowerCase()===n.toLocaleLowerCase());if(a&&!(i&&av(a,i)))return this._setPivotFieldFilter(e,t,{type:sw.VALUE,value:[a.name]});let s=i&&r.find(e=>av(e,i));return s?await this.getUIBridge().onConfirm(aK.PIVOT_TABLE_RENAME_ITEM,[s.name,n])?this._setPivotFieldItemAttr(e,t,"caption",[[i,n]]):this.fail():(await this.getUIBridge().onAlert(aK.PIVOT_TABLE_NOT_AN_ITEM,[n]),this.fail())}async _setPivotCellAsSubtotalCaption(e,t,i,n){if(!t||!i)return this.fail();if(""===n)return this.fail(aK.PIVOT_TABLE_NULL_NAME);let o=this._getDataBridge(),r=await o.getPivotFieldItemNames(e,t),a=r.find(e=>av(e,i))?.name??"";if(!a)return this.fail();let s=(a[0].match(/\w/)?"\\b":"")+a+(a.at(-1).match(/\w/)?"\\b":"");return n=n.replaceAll(RegExp(s,"g"),"{0}"),this._setPivotFieldAttr(e,t,[["subtotalCaption",n]])}async _setPivotCellAsGrandTotalCaption(e,t){return""===t?this.fail(aK.PIVOT_TABLE_NULL_NAME):this._setPivotTableCaption(e,"grandTotal",t)}async _setPivotCellAsColumnHeaderCaption(e,t){return this._setPivotTableCaption(e,"colHeader",t)}async _setPivotCellAsRowHeaderCaption(e,t){return this._setPivotTableCaption(e,"rowHeader",t)}async _createPivotDetailSheet(e,t,i){let n=this._getDataBridge(),o=await n.getPivotTable(e);if(!o)return void await this.fail();let r=n.getWorkbook(),a=r.getSheetPos(o.location.sheetId)+1,s=await n.getTableDetailContent(e,t,i);if(!s)return void await this.fail();let l=r.getLocale().getSSF(),c=s.titleItems.map(e=>{let{fc:t,value:i}=e;return l.render(t,i)}).join("-"),{id:d,pos:u,title:h}=await this._rpc(rr(`${this.getUIBridge().getString("pivot_table","show_detail_title_prefix")}-${c}`,s.content,a));return await this.execCommand(ra(d,u,h,void 0,s.content)),this.undoRedo?.done(new cj(d)),await this.done(),d}_rpc(e){return new Promise((t,i)=>{this.reserveLocalCommand(()=>({action:new cU(e),callback:(e,n,o)=>{n&&o?t(o):i()}}))})}async _createPivotTableSheet(e,t){let{tableJson:i,cacheJson:n,message:o}=await this._createPivotTableJson(e,e.sheetId,sN);if(o)return this.fail(o);let r=this._getWorkbook(),{id:a,pos:s,title:l}=await this._rpc(ro(r.getSheetPos(e.sheetId)+1,t,n,i));return i.location.sheetId=a,await this._getDataBridge().execCommand(nE([ra(a,s,l),oQ(i,n)])),this.undoRedo?.done(new cj(a)),await this.done(),a}async createSheet(e){let t=this._getWorkbook(),{id:i,pos:n,title:o}=await this._rpc(rn(t.getSheetCount(),e));return await this.execCommand(ra(i,n,o)),this.undoRedo?.done(new cj(i)),await this.done({resetCopySelection:!1}),i}async dupSheet(e,t,i){let n=(await this._getDataBridge().listPivotTableLocations(e)).reduce((e,t)=>(e[t.id]={tableId:(0,t_.O1)(),cacheId:(0,t_.O1)()},e),{}),{id:o,pos:r}=await this._rpc(rs(e,t,i,n));return await this._getDataBridge().execCommand(rl(e,r,i,o,n)),this.undoRedo?.done(new cj(o)),await this.done(),e}async renameSheet(e,t){return await dp(this._getBridges(),[e])?(await this.execCommand(ru(e,t)),this.done({resetCopySelection:!1})):this.fail()}async removeSheets(e){let t=this._getDataBridge().getWorkbook().getCurrentSheet()?.sheetId,i=e.includes(t);if(!await dp(this._getBridges(),e,!0))return this.fail();for(let t of e)await this.execCommand(rd(t));return this.done({resetCopySelection:i})}async removeSheet(e){let t=this._getDataBridge().getWorkbook().getCurrentSheet()?.sheetId===e;return await dp(this._getBridges(),[e],!0)?(await this.execCommand(rd(e)),this.done({resetCopySelection:t})):this.fail()}async setSheetsHidden(e,t){if(!await dp(this._getBridges(),e,!0))return this.fail();for(let i of e)await this.execCommand(rp(i,t));return this.done({resetCopySelection:!1})}async setSheetHidden(e,t){return await dp(this._getBridges(),[e])?(await this.execCommand(rp(e,t)),this.done({resetCopySelection:!1})):this.fail()}async setSheetsColor(e,t){if(!await dp(this._getBridges(),e,!0))return this.fail();for(let i of e)await this.execCommand(rf(i,t));return this.done({resetCopySelection:!1})}async setSheetColor(e,t){return await dp(this._getBridges(),[e])?(await this.execCommand(rf(e,t)),this.done({resetCopySelection:!1})):this.fail()}async reorderSheet(e){return await this.execCommand(rh(e)),this.done({resetCopySelection:!1})}getCommandFactory(){return T}_getDataBridge(){return this.dataBridge}_getWorkbook(){return this.dataBridge.getWorkbook()}getUIBridge(){return this.uiBridge}}function dV(e){return async function(){for(var t=arguments.length,i=Array(t),n=0;n<t;n++)i[n]=arguments[n];try{return this.getUIBridge().onLockUI(),await e.call(this,...i)}finally{this.getUIBridge().onReleaseUI()}}}let dz=class extends dF{fail(e){return super.fail(e).catch(async e=>{let{message:t}=e;return t&&await this.getUIBridge().onAlert(t),!1})}async done(e){return await super.done(e??{resetCopySelection:!0}),!0}};function dH(){}class dW{static #e=this.Message=aK;static #t=this.FLUSH_TYPE=nf;constructor(){this.editor=this.createEditorHandler()}createEditorHandler(){return{filter:{show:dH},imageFloat:{show:dH,hide:dH},chartMenu:{show:dH,hide:dH},validationList:{show:dH,hide:dH},validationTip:{show:dH,hide:dH},datePicker:{show:dH,hide:dH},contextMenu:{show:dH},groupMenu:{show:dH},onTextSelectionChange:dH}}async onAlert(e,t){void 0===t&&(t=[])}async onConfirm(e,t){return void 0===t&&(t=[]),!1}onCommentChanged(e){}async onAfterUndo(e,t){}async onAfterRedo(e,t){}onAfterDoneQueueChange(){}onBeforeSync(){}onAfterSync(){}onLockUI(){}onReleaseUI(){}onFlushUI(e){}onSelectImage(){}onTextSelectionChanged(e){}onFilterViewUpdated(e){}onEditorRender(e){}onActionDone(e){}onResetCopy(e){}onFinishEditing(e,t){}onCurrentChanged(e){}getString(e,t){return""}insertImage(e){}getPeerTooltip(e){return""}onActiveChartChange(e,t){}onActiveImageChange(e,t){}openChartEditor(e){}openImageFormatPanel(e){}onExternalRequest(e){}onRtlSettingAdded(){}}function dY(e){let{name:t,args:i}=e;if(!Array.isArray(i))return null;let n=cF[t]||c$[t];return n===sK||n===cy?new n(i[0].map(dY).filter(eT)):new n(...i)}let dU=class{constructor({dataBridge:e,uiBridge:t,transport:i}){this.dataBridge=e,this.uiBridge=t,this.transport=i??null,this.doneActions=[],this.undoneActions=[]}async execCommand(e){return this.transport?this.transport.reserveLocalCommand(async()=>{let t=await this.dataBridge.execCommand(e);return t?{action:t}:void 0}):this.dataBridge.execCommand(e)}async undo(e){let t;if(void 0===e&&(e=!0),!this.isUndoAvailable())return;let i=this.doneActions.pop();if(!i||i.needInstance()&&!(t=this.getInstanceSheetId(i)))return;if(i.needLockUI()&&this.uiBridge.onLockUI(),!i.needSync()||await this.validateUndo(i)){let t=await this.execCommand(i.getUndoCommand());t&&(t.setSelections(i.getSelections()),this.undoneActions.push(t)),e&&await this.dataBridge.forceUpdate()}let n=this.dataBridge.getWorkbook();await this.uiBridge.onAfterUndo(i,t&&n.hasSheet(t)&&!n.isSheetHidden(t)?t:void 0),this.uiBridge.onAfterDoneQueueChange(),this.uiBridge.onActionDone({resetCopySelection:!0}),i.needLockUI()&&this.uiBridge.onReleaseUI()}async redo(e){let t;if(void 0===e&&(e=!0),!this.isRedoAvailable())return;let i=this.undoneActions.pop();if(!i||i.needInstance()&&!(t=this.getInstanceSheetId(i)))return;if(i.needLockUI()&&this.uiBridge.onLockUI(),!i.needSync()||await this.validateUndo(i)){let t=await this.execCommand(i.getUndoCommand());t&&(t.setSelections(i.getSelections()),this.doneActions.push(t)),e&&await this.dataBridge.forceUpdate()}let n=this.dataBridge.getWorkbook();await this.uiBridge.onAfterRedo(i,t&&n.hasSheet(t)&&!n.isSheetHidden(t)?t:void 0),this.uiBridge.onAfterDoneQueueChange(),this.uiBridge.onActionDone({resetCopySelection:!0}),i.needLockUI()&&this.uiBridge.onReleaseUI()}done(e){e.pushToQueue()&&(this.doneActions.push(e),this.checkUndoLmit(),this.undoneActions.length=0,this.uiBridge.onAfterDoneQueueChange())}isUndoAvailable(){return this.doneActions.length>0}isRedoAvailable(){return this.undoneActions.length>0}checkUndoLmit(){this.doneActions.length>100&&this.doneActions.shift()}getDoneActionLength(){return this.doneActions.length}clear(){this.doneActions.length=0,this.undoneActions.length=0,this.uiBridge.onAfterDoneQueueChange()}getInstanceSheetId(e){let t=this.dataBridge.getWorkbook();if(e instanceof sK){for(let i of e.iterateActions())if(i.needInstance()){let e=i.sheetId;if(t.hasSheet(e))return e}return t.getCurrentSheet()?.sheetId}{let i=e.sheetId;return t.hasSheet(i)?i:void 0}}async recoverCommands(e){this.undoneActions=e.map(dY).filter(eT).reverse();try{for(;this.isRedoAvailable();)await this.redo(!1)}catch{}}async validateUndo(e){let t=await Promise.all([this.validateUndoProtection(e),this.validatePivotTableUndo(e)]),i=this.findFatalError(t.flat());return null===i||(this.uiBridge.onAlert(i),!1)}async validateUndoProtection(e){let{uid:t,gids:i,canOrganize:n}=this.uiBridge.getUserInfo();return n||await this.dataBridge.checkCommand(e.getUndoCommand(),t,i,n)?[]:[aK.PROTECTION_REJECT]}async validatePivotTableUndo(e){let t=e instanceof cb,i=e instanceof sK;if(!t&&!i)return[];let n=(i?e.getUndoCommand().actions:[e.getUndoCommand()]).filter(sz);if(n.length<=0)return[];let o=this.uiBridge.getUserInfo();return this.dataBridge.checkPivotTableCommands(n,o)}findFatalError(e){for(let t of[aK.PIVOT_TABLE_TOO_MANY_FIELD,aK.PIVOT_TABLE_TOO_MANY_ITEM,aK.PIVOT_TABLE_TOO_MANY_CELL,aK.PROTECTION_REJECT,aK.PIVOT_TABLE_BLOCK_BY_OTHER,aK.EXCEED_CELL_QUOTA])if(e.includes(t))return t;return null}},dG=class{constructor(e){this.transport=e}listen(e){this._bindHotHook(e)}_bindHotHook(e){if(!e)return;let t=this;e.addHook("afterSelectionEnd",function(e){t._sendPeerSelection("select",this.sheet,{range:e.highlight})}),e.addHook("updatePeerSelection",function(e){t._sendPeerSelection("update",this.sheet,{range:e})}),e.addHook("afterDeselect",function(){t.afterDeselect(this.sheet)}),e.addHook("afterActiveDrawingChange",function(e){t._sendPeerSelection("select",this.sheet,{drawing:e?.id})})}_sendPeerSelection(e,t,i){let{range:n,drawing:o}=i;!t.isReadonly()&&(n||o)&&this.transport.notifyPeer({cmd:e,row:n?.from.row,col:n?.from.col,img:o,id:t.sheetId})}afterDeselect(e){e.isReadonly()||this.transport.notifyPeer({cmd:"deselect",id:e.sheetId})}};class dZ{constructor(){this.dataBridge=null,this.uiBridge=null,this.commandQueue=[],this.initQueue=[],this.initQueueDone=!1,this.remoteQueue=[],this.pendingCommand=null,this.syncTimeout=!1,this.syncTimer=null,this.syncTimoutCallback=null,this.localTaskQueue=[],this.execLocalPromise=null,this.resolveConflictPromise=null,this.rev=-1,this.identifier=null,this.callbackMap=new WeakMap}isSyncComplete(){return!this.pendingCommand&&0===this.commandQueue.length}async execCommand(e){if(!this.dataBridge)throw Error("DataBridge is not ready");return await this.dataBridge.execCommand(e)}async execRemoteCommand(e){if(!this.dataBridge)throw Error("DataBridge is not ready");await this.dataBridge.execRemoteCommand((0,iD.extract)(e))}reserveLocalCommand(e){return new Promise(t=>{this.localTaskQueue.push({task:e,resolve:t}),this._execLoaclQueue()})}_execLoaclQueue(){if(0===this.localTaskQueue.length||this.execLocalPromise)return;if(this.resolveConflictPromise){this.execLocalPromise=this.resolveConflictPromise.then(()=>{this.execLocalPromise=null,this._execLoaclQueue()});return}let{task:e,resolve:t}=this.localTaskQueue.shift();this.execLocalPromise=Promise.resolve().then(()=>e()).catch(e=>{console.error(e)}).then(e=>{let i=e?.action;t(i),i?.needSync()&&this.sendCommand(i,e?.callback),this.execLocalPromise=null,this._execLoaclQueue()})}sendCommand(e,t){this.commandQueue.push(e),t&&this._registerCallback(e,t),this.pendingCommand||this._sendNextCommand()}_sendNextCommand(){if(0===this.commandQueue.length)return void this.uiBridge?.onAfterSync();this.uiBridge?.onBeforeSync(),this.rev++;let e=this.commandQueue.shift(),t=(0,iD.compact)(e.toData());t.rev=this.rev,this.setupPendingCommand(e),this._emit("set",t,this._onAck.bind(this))}setupPendingCommand(e){this.pendingCommand=e,this.syncTimer||(this.syncTimer=setTimeout(()=>{this.updateSyncTimeout(!0)},6e4))}cleanPendingCommand(){this.pendingCommand=null,clearTimeout(this.syncTimer),this.syncTimer=null,this.updateSyncTimeout(!1)}registerSyncTimeout(e){this.syncTimoutCallback=e}updateSyncTimeout(e){e!==this.syncTimeout&&(this.syncTimeout=e,this.syncTimoutCallback?.(e))}_adjustRev(e){this.rev=e}_checkSyncingState(e,t,i){let n=this.rev-+!!this.pendingCommand;this.identifier===e&&n===t?(this.onReconnectDone(i),this.pendingCommand&&(this.commandQueue.unshift(this.pendingCommand),this.cleanPendingCommand()),this._sendNextCommand(),this.onReadyDone()):this.onSyncError()}getUndoneCommands(){let e=[];return this.pendingCommand&&e.push(this.pendingCommand),e.concat(this.commandQueue)}async _resolveConflict(e){let t=this.getUndoneCommands();for(let e=t.length-1;e>=0;e--)t[e]instanceof cU||await this.execCommand(t[e].getUndoCommand());this.remoteQueue.sort((e,t)=>e.rev-t.rev);for(let e=0;e<this.remoteQueue.length;e++)await this.execRemoteCommand(this.remoteQueue[e]);e&&t.shift(),this.logCommands(this.remoteQueue.concat(t)),this.remoteQueue.length=0;let i=[];for(let e=0;e<t.length;e++){let n=t[e];if(n instanceof cU){i.push(n);continue}let o=await this.execCommand(n.getRedoCommand());o&&i.push(o);let r=this.callbackMap.get(n);if(r){if(o)this.callbackMap.set(o,r);else if(0===i.length)this._runCallback(n,!1,null);else{let e=i.at(-1);for(let t of r)this._registerCallback(e,()=>t(n,!1,null))}this.removeAllCallbacks(n)}}this.commandQueue=i}async _onAck(e,t,i,n){let o=this.pendingCommand;o&&this.rev===e||this.onSyncError();let r=1===i,a=e===t;if(r&&a)this.logCommands([o]);else if(r&&e+this.remoteQueue.length!==t){this.cleanPendingCommand(),this.onSyncError();return}r&&a||(this.resolveConflictPromise=this._resolveConflict(0===i),await this.resolveConflictPromise,this.resolveConflictPromise=null,this._adjustRev(t)),2===i?this.pendingCommand=null:this.cleanPendingCommand(),this._runCallback(o,r,n),this._sendNextCommand()}initBridge(e){let{dataBridge:t,uiBridge:i}=e;this.dataBridge=t,this.uiBridge=i}async execInitCommands(){let e=this.initQueue.length>0;for(;this.initQueue.length>0;){let e=this.initQueue.shift();await this.execRemoteCommand(e)}return this.initQueueDone=!0,e}async onRemoteCommand(e){if(!this.initQueueDone)return void this.initQueue.push(e);if(this.pendingCommand||this.execLocalPromise)this.remoteQueue.push(e);else{try{await this.execRemoteCommand(e)}catch(e){console.error(e)}this.rev=e.rev,this.logCommands([e])}}onReconnect(){this.socketWrapper.waitForReady().then(()=>{this._emit("peek",this._checkSyncingState.bind(this))}).catch(e=>console.error(e))}onReconnectDone(){}sayHello(){this._emit("say_hello",this.sayHelloDone.bind(this))}sayHelloDone(){}onInit(e,t,i){this.rev=e,this.identifier=t,this.initQueue=i}onSyncError(){}logCommands(){}_emit(){}getLastCommand(){return 0===this.commandQueue.length?this.pendingCommand:this.commandQueue[this.commandQueue.length-1]}scheduleSave(e,t){let i=this._emit.bind(this,"save",e,t||function(){});if(!this.pendingCommand)return i();this._registerCallback(this.getLastCommand(),i)}_registerCallback(e,t){let i=this.callbackMap.get(e);Array.isArray(i)||(i=[],this.callbackMap.set(e,i)),i.push(t)}_runCallback(e,t,i){let n=this.callbackMap.get(e);if(n){for(let o=0;o<n.length;o++)n[o](e,t,i);this.removeAllCallbacks(e)}}removeAllCallbacks(e){this.callbackMap.delete(e)}}let dj={BaseTransport:class extends dZ{constructor(){super(),this.socket=null,this.socketWrapper=null,this.isReadyForPeers=!1,this._ensureSocketWrpperPromise=null,this._ensureSocketWrpperPromiseResolve=null}async ensureSocketWrapper(){return this.socketWrapper?this.socketWrapper:(this._ensureSocketWrpperPromise||(this._ensureSocketWrpperPromise=new Promise(e=>{this._ensureSocketWrpperPromiseResolve=e})),this._ensureSocketWrpperPromise)}registerEvents(e){this.socketWrapper=e,this._ensureSocketWrpperPromiseResolve?.(e),e.waitForReady().then(()=>this.onReadyDone()).catch(e=>this.onError(e));let t=e.getSocket();t.io.on("reconnect",()=>this.onReconnect()),t.on("disconnect",()=>this.onDisconnect()),t.on("set",e=>this.onRemoteCommand(e)),t.on("peer",e=>{this.isReadyForPeers&&this.onPeer(e)}),t.on("set_info",e=>this.onSetInfo(e)),t.on("reload",e=>this.onReload(e)),t.on("kick",e=>this.onKick(e)),t.on("error",e=>this.onError(e))}onReadyDone(){this.sayHello(),this.askPeers()}async pullCommands(e){let t=await this.ensureSocketWrapper();return await t.waitForReady(e),new Promise(e=>{this._emit("init",(t,i,n)=>{this.onInit(i,t,n),n.length&&this.logCommands(n),e()})})}async _resolveConflict(e){await super._resolveConflict(e),this.uiBridge?.onEditorRender()}askPeers(){this._emit("ask_peers",e=>this.onInitPeers(e))}_emit(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];this.socketWrapper.getSocket().emit(...t)}notifyPeer(e){this._emit("peer",e)}queryCellHistory(e,t,i,n){return new Promise(o=>{this._emit("query_cell_history",e,t,i,n,e=>{o((0,ts.pI)(e))})})}onDisconnect(){this.onClearPeers()}onPeer(){}onSetInfo(){}onReload(){}onKick(){}logCommands(){}onError(e){}onSyncError(){this.socketWrapper.isConnected()&&this.socketWrapper.getSocket().disconnect()}onInitPeers(){this.isReadyForPeers=!0}onClearPeers(){this.isReadyForPeers=!1}},translator:iD,OpHandler:dG},dq=Symbol("Comlink.proxy"),dK=Symbol("Comlink.endpoint"),dX=Symbol("Comlink.releaseProxy"),dQ=Symbol("Comlink.finalizer"),d$=Symbol("Comlink.thrown"),dJ=e=>"object"==typeof e&&null!==e||"function"==typeof e,d0=new Map([["proxy",{canHandle:e=>dJ(e)&&e[dq],serialize(e){let{port1:t,port2:i}=new MessageChannel;return function e(t,i=globalThis,n=["*"]){i.addEventListener("message",function o(r){let a;if(!r||!r.data)return;if(!function(e,t){for(let i of e)if(t===i||"*"===i||i instanceof RegExp&&i.test(t))return!0;return!1}(n,r.origin))return void console.warn(`Invalid origin '${r.origin}' for comlink proxy`);let{id:s,type:l,path:c}=Object.assign({path:[]},r.data),d=(r.data.argumentList||[]).map(ue);try{var u,h,p;let i=c.slice(0,-1).reduce((e,t)=>e[t],t),n=c.reduce((e,t)=>e[t],t);switch(l){case"GET":a=n;break;case"SET":i[c.slice(-1)[0]]=ue(r.data.value),a=!0;break;case"APPLY":a=n.apply(i,d);break;case"CONSTRUCT":u=new n(...d),a=Object.assign(u,{[dq]:!0});break;case"ENDPOINT":{let{port1:i,port2:n}=new MessageChannel;e(t,n),h=i,p=[i],d7.set(h,p),a=h}break;case"RELEASE":a=void 0;break;default:return}}catch(e){a={value:e,[d$]:0}}Promise.resolve(a).catch(e=>({value:e,[d$]:0})).then(e=>{let[n,r]=d9(e);i.postMessage(Object.assign(Object.assign({},n),{id:s}),r),"RELEASE"===l&&(i.removeEventListener("message",o),d1(i),dQ in t&&"function"==typeof t[dQ]&&t[dQ]())}).catch(e=>{let[t,n]=d9({value:TypeError("Unserializable return value"),[d$]:0});i.postMessage(Object.assign(Object.assign({},t),{id:s}),n)})}),i.start&&i.start()}(e,t),[i,[i]]},deserialize:e=>(e.start(),d2(e))}],["throw",{canHandle:e=>dJ(e)&&d$ in e,serialize({value:e}){let t;return[e instanceof Error?{isError:!0,value:{message:e.message,name:e.name,stack:e.stack}}:{isError:!1,value:e},[]]},deserialize(e){if(e.isError)throw Object.assign(Error(e.value.message),e.value);throw e.value}}]]);function d1(e){"MessagePort"===e.constructor.name&&e.close()}function d2(e,t){let i=new Map;return e.addEventListener("message",function(e){let{data:t}=e;if(!t||!t.id)return;let n=i.get(t.id);if(n)try{n(t)}finally{i.delete(t.id)}}),function e(t,i,n=[],o=function(){}){let r=!1,a=new Map,s=new Proxy(o,{get(o,l){if(d3(r),l===dX)return()=>{for(let e of a.values())e[dX]();a.clear(),d6&&d6.unregister(s),d4(t),i.clear(),r=!0};if("then"===l){if(0===n.length)return{then:()=>s};let e=ut(t,i,{type:"GET",path:n.map(e=>e.toString())}).then(ue);return e.then.bind(e)}let c=a.get(l);if(c)return c;let d=e(t,i,[...n,l]);return a.set(l,d),d},set(e,o,a){d3(r);let[s,l]=d9(a);return ut(t,i,{type:"SET",path:[...n,o].map(e=>e.toString()),value:s},l).then(ue)},apply(o,a,s){d3(r);let l=n[n.length-1];if(l===dK)return ut(t,i,{type:"ENDPOINT"}).then(ue);if("bind"===l)return e(t,i,n.slice(0,-1));let[c,d]=d8(s);return ut(t,i,{type:"APPLY",path:n.map(e=>e.toString()),argumentList:c},d).then(ue)},construct(e,o){d3(r);let[a,s]=d8(o);return ut(t,i,{type:"CONSTRUCT",path:n.map(e=>e.toString()),argumentList:a},s).then(ue)}}),l=(d5.get(t)||0)+1;return d5.set(t,l),d6&&d6.register(s,t,s),s}(e,i,[],t)}function d3(e){if(e)throw Error("Proxy has been released and is not useable")}function d4(e){return ut(e,new Map,{type:"RELEASE"}).then(()=>{d1(e)})}let d5=new WeakMap,d6="FinalizationRegistry"in globalThis&&new FinalizationRegistry(e=>{let t=(d5.get(e)||0)-1;d5.set(e,t),0===t&&d4(e)});function d8(e){var t;let i=e.map(d9);return[i.map(e=>e[0]),(t=i.map(e=>e[1]),Array.prototype.concat.apply([],t))]}let d7=new WeakMap;function d9(e){for(let[t,i]of d0)if(i.canHandle(e)){let[n,o]=i.serialize(e);return[{type:"HANDLER",name:t,value:n},o]}return[{type:"RAW",value:e},d7.get(e)||[]]}function ue(e){switch(e.type){case"HANDLER":return d0.get(e.name).deserialize(e.value);case"RAW":return e.value}}function ut(e,t,i,n){return new Promise(o=>{let r=Math.trunc(Math.random()*Number.MAX_SAFE_INTEGER).toString();t.set(r,o),e.start&&e.start(),e.postMessage(Object.assign({id:r},i),n)})}class ui extends R(){notify(e){this.emit(e)}async forceUpdate(){}async execCommand(e){let t=await this._execCommand(e);return t&&this.emit("afterCommand",t.toData(),!0),t}async execRemoteCommand(e){await this._execRemoteCommand(e),this.emit("afterCommand",e,!1)}async flushDirty(){}}class un{onFlushUI(e){}notifyDataChange(e){}onCurrentSheetChange(e){}onCommentChanged(e){}onFilterViewUpdated(e){}onAlert(e){}onStyleAdded(){}onColorAdded(){}onRtlDataAdded(){}onExternalChanged(e,t){}onCoordsChanges(e,t){}onAlterGrid(e,t,i){}onSheetChanges(e,t){}onSheetPluginChanges(e,t){}onRenderHeightChange(e){}onRenderHeightAlterGrid(e,t,i,n){}onRenderHeightMove(e,t,i){}onSearchResultChange(e){}onPivotTableChange(e){}onPivotCacheChange(e){}onExternalRequest(e){}}class uo extends un{constructor(e,t){super(),this.dataBridge=e,this.uiBridge=t}onFlushUI(e){e&nf.VIEWPORT?this.dataBridge.notify("flush:viewport"):e&nf.SEARCH&&this.dataBridge.notify("flush:search"),this.uiBridge.onFlushUI(e)}notifyDataChange(e){this.onFlushUI(e)}onCurrentSheetChange(e){this._onCurrentSheetChange(e)}_onCurrentSheetChange(e){this.dataBridge.notify("flush:current"),this.uiBridge.onCurrentChanged(e)}onCommentChanged(e){this.uiBridge.onCommentChanged(e)}onFilterViewUpdated(e){this._onFilterViewUpdated(e)}_onFilterViewUpdated(e){this.uiBridge.onFilterViewUpdated(e)}onExternalRequest(e){this.uiBridge.onExternalRequest(e)}onAlterGrid(e,t,i){this.dataBridge.getWorkbook().getCurrentSheet()?.sheetId===e&&this.onFlushUI(nf.VIEWPORT)}onSheetChanges(e,t){this.dataBridge.getWorkbook().getCurrentSheet()?.sheetId===e&&this._onSheetChanges(e,t)}_onSheetChanges(e,t){t.some(e=>["rows","cols","rowCount","colCount","global"].includes(e))&&this.onFlushUI(nf.VIEWPORT)}onSheetPluginChanges(e,t){this.dataBridge.getWorkbook().getCurrentSheet()?.sheetId===e&&this._onSheetPluginChanges(e,t)}_onSheetPluginChanges(e,t){let i=0;t.includes("filter")&&(this._onFilterViewUpdated(e),i|=nf.VIEWPORT),t.includes("drawing")&&(i|=nf.IMAGE|nf.CHART),i>0&&this.onFlushUI(i)}onRtlDataAdded(){this.uiBridge.onRtlSettingAdded()}onRenderHeightChange(e){this.dataBridge.getWorkbook().getCurrentSheet()?.sheetId===e&&this._onSheetChanges(e,["rows"])}onAlert(e){return this.uiBridge.onAlert(e)}}var ur=i(34877),ua=i(63447);function us(e,t){for(let i of Object.keys(e))t?.has(i)||Object.freeze(e[i]);return e}function ul(e){for(let t of e)Object.freeze(t);return e}let uc=new Set(["cells"]);var ud=i(88514);function uu(){return{pivotTables:{},pivotCaches:{}}}let uh={listEmptyPivotRanges:e=>t=>Object.values(e.pivotTables).filter(e=>e?.location.sheetId===t&&!sf(e.fields)).map(e=>e.location.range),getTableRanges:e=>t=>{let i=e.pivotTables[t];return i?tz(i.location):[]},equalToTableRanges(){return(e,t)=>{let i=this.getTableRanges(t);return i.length===e.length&&i.every(t=>e.some(e=>e.isEqual(eA.GJ.fromRange(t))))}},hasPivotTable:e=>(t,i,n)=>Object.values(e.pivotTables).some(e=>e&&sg(e.location,t,i,n)),getTableById:e=>t=>e.pivotTables[t]??null,isIncompatibleTable:e=>t=>e.pivotTables[t]?.incompatible??!1,getField:e=>(t,i)=>{let n=e.pivotTables[t];if(!n)return null;let o=e.pivotCaches[n.cacheId];return o?.fields.find(e=>e.id===i)??null},getBaseField(){return(e,t)=>{let i=this.getField(e,t);return i?.group?.base?this.getField(e,i.group.base):i}},getDatetimeLevels(){return(e,t)=>{let i=[],n=this.getBaseField(e,t);if(n?.group?.type!=="datetime")return aC([]);for(;n?.group?.grouping;)i.push(n.group.grouping),n=this.getField(e,n.group.parent??"");return aC(i)}}},up={init(e,t){this.initPivotTable(e),this.initPivotCache(t)},initPivotCache(e){this.pivotCaches=e.reduce((e,t)=>(e[t.id]=Object.freeze(t),e),{})},initPivotTable(e){this.pivotTables=e.reduce((e,t)=>(e[t.id]=Object.freeze(t),e),{})},updatePivotCache(e){for(let[t,i]of Object.entries(e))this.pivotCaches[t]=Object.freeze(i)},updatePivotTable(e){for(let[t,i]of Object.entries(e))this.pivotTables[t]=Object.freeze(i)}};class uf{constructor(e,t,i){this.validId=e.validId||(0,t_.O1)(),this.type=e.type,this.operator=e.operator,this.f1=e.f1,this.f2=e.f2,this.list=e.list,this.text=e.text,this.showHelp=e.showHelp||""!==e.message,this.message=e.message,this.reject=e.reject,this.sheet=i,this.ranges=t||[],this._nextRanges=null}init(){}destroy(){this.ranges=[],this._nextRanges=null}cloneConfigBasic(){return{validId:this.validId,type:this.type,operator:this.operator,text:this.text,f1:this.f1,f2:this.f2,list:this.list,showHelp:this.showHelp,message:this.message,reject:this.reject}}cloneConfig(){return this.cloneConfigBasic()}cloneRelative(){return this.cloneConfigBasic()}isActive(){return this.ranges.length>0}isEqual(e){return this.constructor===e.constructor&&this.type===e.type&&this.showHelp===e.showHelp&&(!this.showHelp||this.message===e.message)&&this.reject===e.reject&&this.operator===e.operator}isReject(){return this.reject}isShowHelp(){return this.showHelp}hasDropdown(){return!1}updateRanges(e){this.ranges=e}_createOnRange(e,t,i,n,o,r){if(r=r||(()=>{}),-1!==n&&o.from[e]<=n&&o.to[e]>=n||-1===n&&o.from[e]<t&&o.to[e]>=t){o.to[e]+=i;let n=o.clone();n.from[e]=t,n.to[e]=t+i-1,r.call(this,n)}else o.from[e]>=t&&(o.from[e]+=i,o.to[e]+=i)}onCreateRowCol(e,t,i,n){this.isActive()&&ea(this.ranges,o=>{this._createOnRange(e,t,i,n,o,this.addToMeta)})}_removeOnRange(e,t,i,n,o){if(o=o||(()=>{}),t+i-1<n.from[e])n.from[e]-=i,n.to[e]-=i;else if(t<=n.to[e]){let r=Math.max(t,n.from[e]),a=Math.min(t+i-1,n.to[e])-r+1;n["row"===e?"getHeight":"getWidth"]()<=a?o(!0):(n.from[e]-=r-t,n.to[e]-=a+r-t,o(!1,r,a))}}onRemoveRowCol(e,t,i){this.updateRanges(this.ranges.filter(n=>{let o=!0;return this._removeOnRange(e,t,i,n,e=>{o=!e}),o}))}collectRemovedInfo(e,t,i){}repair(e){ea(e,e=>{this.addValidRange(e)})}repairCross(e){}_moveRange(e,t,i){let n=this.ranges.length,o=[],r=[],a=!1;for(let s=0;s<n;s++){let{remain:n,bottom:l,splited:c}=this.ranges[s].moveAndSplit(e,t);if(n&&o.push(n),n&&this.ranges[s].isEqual(n)||(a=!0),l&&o.push(l),c)if(i){for(;o.length>0&&o[o.length-1].isMergeable(e,c);){let t=o.pop();c.expandRowCol(e,t.from.row,t.to.row)}o.push(c)}else r.push(c)}return{nextRanges:o,newRanges:r,rangesChanged:a}}_move(e,t){let{nextRanges:i,rangesChanged:n}=this._moveRange(e,t,!0);return n&&(this._nextRanges=i),{changed:n}}beforeMove(e,t,i,n){if(this.isActive())if(i)this.setNeedValidAll(),this._nextRanges=i.ranges.map(e=>eR.textToRange(e,this.sheet)).filter(e=>!!e);else{let i={ranges:eD(this.ranges)},{changed:o}=this._move(e,t);o&&(n[this.validId]=i)}}afterMove(e){this._nextRanges&&this.updateRanges(this._nextRanges),this._nextRanges=null,this.handleMetaAfterMove(e)}handleMetaAfterMove(e){}afterSort(e,t){}addValidRange(e){this.updateRanges(function(e,t){let i=!1;for(let n of e=e.map(e=>e.clone())){if(n.isVertMergeable(t,!1)){n.expandRow(t.from.row,t.to.row),i=!0;break}if(n.isHoriMergeable(t,!1)){n.expandCol(t.from.col,t.to.col),i=!0;break}}return i||e.push(t),e}(this.ranges,e)),this.addToMeta(e)}removeValidRange(e){let{newRanges:t,removeRanges:i}=tM(this.ranges,e);for(let e of i)this.removeMeta(e);this.updateRanges(t)}forAllCell(e){for(let t=0;t<this.ranges.length;t++)this.ranges[t].forAll(e)}setNeedValid(e,t){}setNeedValidAll(){}addToMeta(e){}removeMeta(e){}createListRangeItems(e,t){return[]}getDisplayView(){return{displayF1:this.getDisplayF1(0,0),displayF2:this.getDisplayF2(0,0),displayList:this.getDisplayList()}}getDisplayF1(e,t){return this.f1?this.f1.toString():""}getDisplayF2(e,t){return this.f2?this.f2.toString():""}getDisplayList(){return[]}validate(e,t,i){return!0}_validate(e,t,i){return!0}preValidate(e,t,i){return!0}}var ug=((I={}).LIST="list",I.DATE="date",I.DECIMAL="decimal",I.TEXT="text",I.CUSTOM="custom",I);function um(e,t,i){return(0,t_.jr)(e)?Z(e,t,i):e}class uv{constructor(e="default-id"){let t=(0,ur.defineStore)(`workbook-${e}`,{state:()=>({order:[],current:void 0,sheets:{},readonly:!1,commentable:!1,colors:[],constants:{MAX_CELL_COUNT:0,PIVOT_TABLE_ENABLED:!1}}),getters:{colorSet(e){let{colors:t}=e;return new Set(t)},sheetsInfo(e){let{sheets:t}=e;return new Map(Object.entries(t))},nameMap(e){let{sheets:t}=e,i=new Map;for(let[e,{title:n}]of Object.entries(t))i.set(n,e);return i},hasSheet(){return e=>this.sheetsInfo.has(e)},isHiddenSheet(){return e=>this.sheetsInfo.get(e)?.hidden??!1},visibleOrder(e){let{order:t}=e;return t.filter(e=>!this.isHiddenSheet(e))},getSheetInfo(){return e=>this.sheetsInfo.get(e)},getPrevSheet(e){let{order:t}=e;return(e,i)=>ey(t,e,e=>this.isHiddenSheet(e),i)},getNextSheet(e){let{order:t}=e;return(e,i)=>ew(t,e,e=>this.isHiddenSheet(e),i)},getSiblingSheet(){return e=>this.getPrevSheet(e)||this.getNextSheet(e)},getSheetPos(e){let{order:t}=e;return e=>t.indexOf(e)},remainingCellCount(e){let{sheets:t,constants:i}=e,n=0;for(let{rowCount:e,colCount:i}of Object.values(t))n+=e*i;return Math.max(i.MAX_CELL_COUNT-n,0)},getAvailableRowCount(){return e=>{let t=this.sheetsInfo.get(e)?.colCount;return t?Math.floor(this.remainingCellCount/t):0}},getAvailableColCount(){return e=>{let t=this.sheetsInfo.get(e)?.rowCount;return t?Math.floor(this.remainingCellCount/t):0}},getAvailableMaxRow(){return e=>{let t=this.sheetsInfo.get(e);return t?t.rowCount+this.getAvailableRowCount(e):0}},getAvailableMaxCol(){return e=>{let t=this.sheetsInfo.get(e);return t?t.colCount+this.getAvailableColCount(e):0}},getSheetDimension(){return e=>{let t=this.sheetsInfo.get(e);return{rowCount:t?.rowCount??0,colCount:t?.colCount??0}}},isDimensionAvailable(){return(e,t,i)=>{let n=this.sheetsInfo.get(e);if(!n)return!1;let{rowCount:o,colCount:r}=n,a=(t=Math.max(t,o))*(i=Math.max(i,r))-o*r;return 0===a||this.remainingCellCount>=a}},isNewSheetAvailable(){return e=>{let t=e?this.sheetsInfo.get(e):null,i=t?t.rowCount*t.colCount:tu.Z.DEFAULT_ROW_COUNT*tu.Z.DEFAULT_COL_COUNT;return this.remainingCellCount>=i}}},actions:{flushData(e){Object.assign(this.$state,e)},updateSheetDimension(e){let{sheetId:t,rowCount:i,colCount:n}=e;this.sheets[t]&&(this.sheets[t].rowCount=i,this.sheets[t].colCount=n)}}}),i=(0,ur.defineStore)(`render-height-${e}`,()=>{let e=(0,ua.reactive)({});function t(e,t,i){let n=i.getWorksheetStore().cells[e]?.[t],o=(0,ts.pM)(n?.v)?JSON.stringify(n.v):n?.renderDesc?.v??"";return{cfStyle:n?.cfStyle??null,s:n?.s??0,pivot:n?.pivot,validId:n?.validId,value:o,merged:!!i.getMergeStore().getMergedRange(e,t),colWidth:i.getWorksheetStore().cols[t]?.w??0,filterDropdown:i.getFilterStore().hasDropdown(e,t)}}function i(t,i){if(i.length<0)return;let n=e[t]?.slice()??[];for(let[e,t]of i)n[e]=t;Object.freeze(n),e[t]=n}return{renderedHeightRecords:e,checkRenderHeightCache:function(n,o){let r=e[n]??[],a=[];for(let e=0;e<r.length;e++){let i=r[e];if(i){var s,l;s=i.dep,l=t(e,i.col,o),(s.cfStyle!==l.cfStyle||s.s!==l.s||s.pivot!==l.pivot||s.validId!==l.validId||s.value!==l.value||s.merged!==l.merged||s.colWidth!==l.colWidth||s.filterDropdown!==l.filterDropdown)&&a.push([e,void 0])}}return i(n,a),a.length>0},modifyRenderHeightByAlterGrid:function(t,n,o,r){"row"===n?function(t,i,n){if(!e[t])return;let o=e[t].slice();n<0?o.splice(i,-n):ef(o,i,n),e[t]=Object.freeze(o)}(t,o,r):function(t,n,o){let r=e[t];if(!r)return;let a=new Map;for(let e=0;e<r.length;e++){let t=r[e];t&&n<=t.col&&a.set(e,o<0&&t.col<=n-o-1?void 0:{col:t.col+o,height:t.height,dep:t.dep})}i(t,Array.from(a))}(t,o,r)},modifyRenderHeightByMove:function(t,n,o){"row"===n?function(t,i){if(!e[t])return;let n=e[t].slice();el(n,i.sec[0].start,i.sec[0].amount,i.sec[1].amount),e[t]=Object.freeze(n)}(t,o):function(t,n){let o=e[t];if(!o)return;let r=new Map;for(let e=0;e<o.length;e++){let t=o[e];t&&n.sec[0].start<=t.col&&t.col<=n.sec[1].end&&r.set(e,{height:t.height,col:t.col+(t.col<=n.sec[0].end?n.sec[1].amount:-n.sec[0].amount),dep:t.dep})}i(t,Array.from(r))}(t,o)},updateRenderedHeights:function(n,o,r){let a=e[n]??[],s=new Map;for(let{row:e,col:i,height:n}of o)(a[e]?.height??0)<n&&(s.get(e)?.height??0)<n&&s.set(e,{col:i,height:n,dep:t(e,i,r)});return i(n,Array.from(s))}}}),n=(0,ur.defineStore)(`worksheet-${e}`,{state:()=>({sheetId:"sh_0",rowCount:0,colCount:0,rows:[],cols:[],global:null,cells:[],formulaDimensions:[],rtl:!1}),getters:{rowHeight(e){let{sheetId:t,rows:n,global:o}=e,r=[],a=t?i().renderedHeightRecords[t]??[]:[],s=this.defaultRowHeight,l=Math.max(n.length,a.length);for(let e=0;e<l;e++){let t=a[e]?.height,i=void 0!==t&&t>s?t:s,o=n[e]?.h??i;r.push(Math.max(o,tu.Z.MIN_ROW_HEIGHT))}return r},defaultRowHeight(e){let{global:t}=e;return t?.h??tu.Z.ROW_HEIGHT},defaultColWidth(e){let{global:t}=e;return t?.w??tu.Z.COL_WIDTH},maxRowGroupLevel(e){let{rows:t}=e;return(0,tt.Z)(t.map(e=>e?.outlineLevel??0))??0},maxColGroupLevel(e){let{cols:t}=e;return(0,tt.Z)(t.map(e=>e?.outlineLevel??0))??0},getDataAtCell(e){let{cells:t}=e;return(e,i)=>{let n=t[e]?.[i]?.v;return(0,ts.pM)(n)?td.Z.fromJSON(n):n}},getCellProperty(e){let{cells:t}=e;return(e,i,n)=>t[e]?.[i]?.[n]},getComputedXf(e){let{cells:t,rows:i,cols:n,global:o}=e;return(e,r)=>t[e]?.[r]?.s??i[e]?.s??n[r]?.s??o?.s??0},isEmptyCell(e){let{cells:t}=e;return(e,i)=>(0,eI.O2)(t[e]?.[i]?.v)},isEmptyRange(){return e=>{let t=!0;return e.forAll((e,i)=>t&&=this.isEmptyCell(e,i)),t}},getSpillRange(e){let{cells:t,rowCount:i,colCount:n,formulaDimensions:o}=e;return(e,r)=>{let a=null;for(let[i,n,s,l]of o){if(e<i||e>s||r<n||r>l)continue;let o=t[i]?.[n]?.formulaItem;if(i===e&&n===r){a=o?new eA.GJ(i,n,s,l):null;break}o&&!o.hasSpillError&&(!a||a.from.row>i||a.from.row===i&&a.from.col>n)&&(a=new eA.GJ(i,n,s,l))}return a&&(a.to.row=Math.min(i-1,a.to.row),a.to.col=Math.min(n-1,a.to.col)),a}},getCellFormulaValue(e){let{cells:t}=e;return(e,i,n)=>{void 0===n&&(n=!1);let o=t[e]?.[i]?.cellFormulaValue??null;if(null!==o)return(0,H.gn)(o);let r=t[e]?.[i]?.v??null;return(0,ts.pM)(r)?r.v.map(e=>e.tx).join(""):n&&(0,eI.O2)(r)?null:r}},getRangeTexts(e){let{cells:t}=e;return(e,i)=>{let{rowStep:n=1,colStep:o=1}=void 0===i?{}:i,[r,a,s,l]=e.toArray();return e_(Math.ceil((s-r+1)/n),Math.ceil((l-a+1)/o),(e,i)=>t[r+e*n]?.[a+i*o]?.renderDesc?.v??"")}},getAllTexts(e){let{rowCount:t,colCount:i}=e;return e=>{void 0===e&&(e=!1);let n=this.getRangeTexts(new eA.GJ(0,0,t-1,i-1));return e&&ex(n,e=>!e),n}}},actions:{flush(e){if(us(e,uc),e.cells)for(let t of Object.values(e.cells))us(t);Object.assign(this.$state,e)},updateScatterCells(e){let{coords:t,cells:i}=e;for(let e=0;e<t.length;e++){let{row:n,col:o}=t[e];this.cells[n]||(this.cells[n]={}),this.cells[n][o]=Object.freeze(i[e])}}}}),o=(0,ur.defineStore)(`rule-${e}`,{state:()=>(void 0)??{rules:[]},getters:{find:e=>{let{rules:t}=e;return e=>t.find(t=>t.ruleId===e)},isGrantable(){return e=>this.find(e)?.isGrantable??!1},isCellEditable:e=>(t,i,n,o)=>{if(o.canOrganize)return!0;for(let o of e.rules)if(!o.isGrantable&&o.sheetId===t&&("worksheet"===o.type&&(!o.range||o.range.map(Q).every(e=>!e?.includes(i,n)))||"range"===o.type&&Q(o.range)?.includes(i,n)))return!1;return!0}},actions:{flush(e){Object.assign(this.$state,us(e))}}}),r=(0,ur.defineStore)(`name-manager-${e}`,{state:()=>({workbookScope:"global",list:[]}),getters:{getVariable(e){let{workbookScope:t,list:i}=e;return(e,n)=>{void 0===n&&(n=t);let o=i.find(t=>t.name===e&&t.scope===n);if(o)return{name:o.name,value:o.value}}}},actions:{flush(e){Object.assign(this.$state,us(e))}}}),a=(0,ur.defineStore)(`search-${e}`,{state:()=>({isSearching:!1,resultRecords:{}}),getters:{searchCount(e){let{resultRecords:t}=e;return e=>t[e]?.results.length??0},searchIndex(e){let{resultRecords:t}=e;return e=>{let i=t[e];return i?Math.min(ed(i.results,e=>ek(e,i.coords)),i.results.length-1):-1}},getSearchingResults(e){let{isSearching:t,resultRecords:i}=e;return e=>t?i[e]?.results??[]:[]},getResultBy(e){let{resultRecords:t}=e;return(e,i)=>{let n=t[e];if(n)if((0,ud.Z)(i)){let e=ed(n.results,e=>ek(e,n.coords));if("prev"===i)return n.results[e-1];{let t=n.results[e];return t&&t.row===n.coords.row&&t.col===n.coords.col?n.results[e+1]:t}}else{let e=ed(n.results,e=>ek(e,i));return n.results[e]}}},getFirstResult(e){let{resultRecords:t}=e;return e=>t[e]?.results[0]},getLastResult(e){let{resultRecords:t}=e;return e=>{let i=t[e]?.results;return i?i[i.length-1]:void 0}}},actions:{setSearching(e){this.isSearching=e},updateSearchResult(e){let{sheetId:t,coords:i,results:n}=e;this.resultRecords[t]||(this.resultRecords[t]={results:[],coords:{row:0,col:0}}),this.resultRecords[t].results=n,i&&(this.resultRecords[t].coords=i)},moveSearchResult(e){let{sheetId:t,moveTo:i}=e,n=this.resultRecords[t];if(!n||0===n.results.length)return;let o=Math.min(ed(n.results,e=>ek(e,i)),n.results.length-1);n.coords={row:n.results[o].row,col:n.results[o].col}}}}),s=function(e,t){function i(e,t,i){let n=e.length-i;n>t.length||n<0||e.push(...ul(t.slice(n)))}return(0,ur.defineStore)(`styleManager-${e}`,{state:()=>(void 0)??{styles:[[0,0,0,0,0,0,0]],fonts:[{}],fills:[{}],alignments:[{}],borders:[{b:[null,null,null,null]}],numberFormats:[{fc:""}]},getters:{},actions:{appendStyles(e){let{appendData:t,indexes:n}=e,{styles:o,fonts:r,fills:a,alignments:s,borders:l,numberFormats:c}=t;i(this.styles,o,n.styles),i(this.fonts,r,n.fonts),i(this.fills,a,n.fills),i(this.alignments,s,n.alignments),i(this.borders,l,n.borders),i(this.numberFormats,c,n.numberFormats)}}})}(e),l=function(e){let t=(0,iO.hn)(e);return(0,ur.defineStore)(`comment-${e}`,{getters:{comments:()=>t().comments,getCommentById:()=>t().getCommentById},actions:{flush(e){t().flush(e)},updateByDelta(e){t().updateByDelta(e)}}})}(e),c=(0,ur.defineStore)(`external-manager-store-${e}`,{state:()=>({enabled:!1,autoUpdate:!1,linkInfo:[],loadingList:[],notFoundList:[],noPermissionList:[],...void 0}),getters:{linkList(e){let{linkInfo:t,loadingList:i,notFoundList:n,noPermissionList:o}=e,r=new Set(i),a=new Set(n),s=new Set(o);return t.map(e=>{let{linkId:t,title:i,updateTime:n,ref:o}=e;return{linkId:t,title:i,updateTime:n,ref:o,loading:r.has(t),notFound:a.has(t),noPermission:s.has(t)}})},errorList(e){let{notFoundList:t,noPermissionList:i}=e;return t.concat(i)}},actions:{enableFetching(){this.enabled=!0},setAutoUpdate(e){this.autoUpdate=e},flushLinkInfo(e){this.linkInfo=ul(e)},updateLinkInfo(e){let t=this.linkInfo.findIndex(t=>{let{linkId:i}=t;return i===e.linkId});t<0?this.linkInfo.push(e):this.linkInfo.splice(t,1,e)},removeLinkInfo(e){let t=this.linkInfo.findIndex(t=>e===t.linkId);t>=0&&this.linkInfo.splice(t,1)},addLoading(e){0>this.loadingList.indexOf(e)&&this.loadingList.push(e)},removeLoading(e){let t=this.loadingList.indexOf(e);t>=0&&this.loadingList.splice(t,1)},addNotFoundList(e){0>this.notFoundList.indexOf(e)&&this.notFoundList.push(e)},addNoPermissionList(e){0>this.noPermissionList.indexOf(e)&&this.noPermissionList.push(e)}}}),d=(0,ur.defineStore)(`pivot-table-${e}`,{state:uu,getters:uh,actions:up}),u=(0,ur.defineStore)(`filter-${e}`,{state:()=>({filter:null,filterView:[],activeId:null,hiddenRows:[],hiddenCells:[],viewHiddenCells:[],viewHiddenResult:[]}),getters:{activeFilter(e){let{filter:t,filterView:i,activeId:n}=e;return n?t?.id===n?t:i.find(e=>e.id===n):null},viewHiddenRows(e){let{viewHiddenCells:t}=e;return t.map(e=>e.some(e=>e))},isInViewState(e){let{filter:t}=e;return!!this.activeFilter&&t!==this.activeFilter},isFilteredRow(e){let{filter:t,hiddenRows:i,viewHiddenResult:n}=e;return(e,o)=>{let r=o?this.activeFilter:t;return!!r&&!!r.range&&!(r.range[0]>e)&&!(r.range[2]<e)&&(o?n[e]&&this.viewHiddenRows[e-r.range[0]]:i[e-r.range[0]])}},hasDropdown(){return(e,t)=>{let i=this.activeFilter?.range;return!!i&&i[0]===e&&i[1]<=t&&t<=i[3]}},hasCondition(){return e=>{let t=this.activeFilter?.range;return!!t&&!!this.activeFilter?.filters[e-t[1]]}}},actions:{flush(e){Object.assign(this.$state,us(e))}}}),h=(0,ur.defineStore)(`merge-${e}`,{state:()=>({mergeRanges:[]}),getters:{ranges(e){let{mergeRanges:t}=e;return t.map(eA.GJ.fromArray)},mergeGrid(){let e=[];for(let t of this.ranges)for(let i=t.from.row;i<=t.to.row;i++){e[i]||(e[i]=[]);for(let n=t.from.col;n<=t.to.col;n++)e[i][n]=t}return e},getMergedRange(){return(e,t)=>this.mergeGrid[e]?.[t]},searchMerge(){return e=>{let t=this.mergeGrid[e.from.row]?.[e.from.col];return t?.isEqual(e)??!1}},getOverlap(){return e=>{let t=this.ranges;if(e.getWidth()*e.getHeight()>t.length)return t.filter(t=>t.overlaps(e));{let t=new Set;return e.forAll((e,i)=>{let n=this.mergeGrid[e]?.[i];n&&t.add(n)}),Array.from(t)}}}},actions:{flush(e){Object.assign(this.$state,us(e))}}}),p=(0,ur.defineStore)(`validation-${e}`,{state:()=>({validations:{}}),getters:{getValidationView(e){let{validations:t}=e;return(e,i,n)=>{let o=t[e];if(!o)return;let r=o.type===ug.LIST&&"listRange"===o.operator?Z(o.displayF1,i,n):um(o.displayF1,i,n),a=um(o.displayF2,i,n);return{...o,displayF1:r,displayF2:a}}},isDropdownValidation(e){let{validations:t}=e;return e=>t[e]?.type===ug.LIST}},actions:{flush(e){Object.assign(this.$state,us(e))}}}),f=(0,ur.defineStore)(`cf-${e}`,{state:()=>({cfs:[]}),getters:{findCfJSON(e){let{cfs:t}=e;return e=>t.find(t=>t.cfId===e)}},actions:{flush(e){Object.assign(this.$state,us(e))}}}),g=(0,ur.defineStore)(`freeze-${e}`,{state:()=>({fixedRowsTop:0,fixedColumnsLeft:0}),getters:{},actions:{flush(e){Object.assign(this.$state,us(e))}}}),m=(0,ur.defineStore)(`drawing-${e}`,{state:()=>({images:[],charts:[]}),getters:{getImageById(e){let{images:t}=e;return e=>t.find(t=>t.id===e)??null},getChartById(e){let{charts:t}=e;return e=>t.find(t=>t.id===e)??null}},actions:{flush(e){Object.assign(this.$state,us(e))}}});this.workbookStore=t(),this.renderHeightStore=i(),this.worksheetStore=n(),this.ruleStore=o(),this.nameManagerStore=r(),this.searchStore=a(),this.styleManagerStore=s(),this.commentStore=l(),this.externalManagerStore=c(),this.pivotTableStore=d(),this.filterStore=u(),this.mergeStore=h(),this.validationStore=p(),this.cfStore=f(),this.freezeStore=g(),this.drawingStore=m()}getWorkbookStore(){return this.workbookStore}getRenderHeightStore(){return this.renderHeightStore}getWorksheetStore(){return this.worksheetStore}getRuleStore(){return this.ruleStore}getNameManagerStore(){return this.nameManagerStore}getSearchStore(){return this.searchStore}getStyleManagerStore(){return this.styleManagerStore}getCommentStore(){return this.commentStore}getExternalManagerStore(){return this.externalManagerStore}getPivotTableStore(){return this.pivotTableStore}getFilterStore(){return this.filterStore}getMergeStore(){return this.mergeStore}getValidationStore(){return this.validationStore}getCfStore(){return this.cfStore}getFreezeStore(){return this.freezeStore}getDrawingStore(){return this.drawingStore}updateWorksheetPlugin(e){for(let[t,i]of Object.entries(e))switch(t){case"filter":this.filterStore.flush(i);break;case"merge":this.mergeStore.flush(i);break;case"validation":this.validationStore.flush(i);break;case"cf":this.cfStore.flush(i);break;case"freeze":this.freezeStore.flush(i);break;case"drawing":this.drawingStore.flush(i)}}}class ub{constructor(){this.coords=[],this.wholeWorksheet=!1,this.dirty={},this.pluginsDirty={},this.workbookDirty={}}reset(){this.clearWorkbookDirty(),this.clearWorksheet(),this.sheetId=void 0}setWorkbookDirty(e){this.workbookDirty[e]=!0}addPivotTableDirty(e){for(let t of(this.workbookDirty.pivotTableIds??=new Set,e))this.workbookDirty.pivotTableIds.add(t)}addPivotCacheDirty(e){for(let t of(this.workbookDirty.pivotCacheIds??=new Set,e))this.workbookDirty.pivotCacheIds.add(t)}getWorkbookDirty(){return this.workbookDirty}clearWorkbookDirty(){this.workbookDirty={}}getSheetId(){return this.sheetId}isWholeWorksheetDirty(){return this.wholeWorksheet}getCoords(){return this.coords}getAllDirtyAttribute(){return Object.entries(this.dirty).map(e=>{let[t,i]=e;return i?t:null}).filter(eT)}getAllDirtyPlugins(){return Object.entries(this.pluginsDirty).map(e=>{let[t,i]=e;return i?t:null}).filter(eT)}clearWorksheet(){this.wholeWorksheet=!1,this.coords=[],this.dirty={},this.pluginsDirty={}}renewSheet(e){this.sheetId=e,this.clearWorksheet()}setWorksheetDirty(){this.wholeWorksheet=!0}addCoords(e){if(!this.dirty.cells)for(let t of e)eC(this.coords,t)}setDirtyAttributes(e){for(let t of e)this.dirty[t]=!0,"cells"===t&&(this.coords=[])}setDirtyPlugins(e){for(let t of e)this.pluginsDirty[t]=!0}}class uy extends uo{constructor(e,t){super(e,t),this.doingFlushPromise=null,this.waitingFlushPromise=null,this.dirty=new ub,this.throttleUpdate=function(e,t){let i=null;function n(){i||(i=setTimeout(function(){i=null,e()},16))}function o(){i&&(clearTimeout(i),i=null)}return n.cancel=o,n.flush=function(){o(),e()},n}(async()=>{await this.flushDirty()},0),this.storeCollection=new uv("store-updater")}getStoreCollection(){return this.storeCollection}async initData(){this.dirty.reset(),await this.updateData(nf.ALL),await this.updateStyleManager(),await this.updateExternalManager(),await this.updatePivotTable(),await this.updateCurrentSheetStore(),this.onFlushUI(nf.ALL)}async updateData(e){e&nf.WORKBOOK&&await this.updateWorkbookData(),e&nf.DEFINE&&await this.updateNameManager(),e&nf.RULE&&await this.updateRuleStore(),e&nf.COMMENT&&await this.updateCommentStore()}async updateWorkbookData(){this.storeCollection.getWorkbookStore().flushData(await this.dataBridge.getWorkbookDataView())}async updateNameManager(){this.storeCollection.getNameManagerStore().flush(await this.dataBridge.getNameManagerDataView())}async updateRuleStore(){let{uid:e,gids:t}=this.uiBridge.getUserInfo();this.storeCollection.getRuleStore().flush(await this.dataBridge.getRuleStoreDataView(e,t))}async updateCommentStore(){this.storeCollection.getCommentStore().flush(await this.dataBridge.getCommentStoreDataView())}async updateStyleManager(){let e=this.storeCollection.getStyleManagerStore(),t={styles:e.styles.length,fonts:e.fonts.length,fills:e.fills.length,alignments:e.alignments.length,borders:e.borders.length,numberFormats:e.numberFormats.length},i=await this.dataBridge.getStyleManagerDataView(t);e.appendStyles({appendData:i,indexes:t})}async updateColors(){let e=await this.dataBridge.collectColors();this.storeCollection.getWorkbookStore().flushData({colors:e})}async updateExternalManager(){let e=await this.dataBridge.listExternalLinkInfo();this.storeCollection.getExternalManagerStore().flushLinkInfo(e)}async updatePivotTable(){let{tables:e,caches:t}=await this.dataBridge.listAllPivot();this.storeCollection.getPivotTableStore().init(e,t)}async updateCurrentSheetStore(){let e=this.storeCollection.getWorkbookStore().current;if(!e)return;this.dirty.renewSheet(e);let t=await this.dataBridge.getSheetDataView(e);t&&e===this.storeCollection.getWorkbookStore().current&&(this.storeCollection.getWorksheetStore().flush({sheetId:e,...t.worksheet}),this.storeCollection.updateWorksheetPlugin(t.plugins),this.storeCollection.getRenderHeightStore().checkRenderHeightCache(e,this.storeCollection),this._onCurrentSheetChange(e))}isDirty(){let{style:e,colors:t,pivotCacheIds:i,pivotTableIds:n}=this.dirty.getWorkbookDirty();if(e||t||i||n)return!0;if(!this.storeCollection.getWorkbookStore().current)return!1;if(this.dirty.isWholeWorksheetDirty())return!0;let o=this.dirty.getCoords(),r=this.dirty.getAllDirtyAttribute(),a=this.dirty.getAllDirtyPlugins();return!!(o.length>0)||!!(r.length>0)||!!(a.length>0)}popDirty(){let{style:e,colors:t,pivotCacheIds:i,pivotTableIds:n}=this.dirty.getWorkbookDirty(),o=this.dirty.isWholeWorksheetDirty(),r=this.dirty.getCoords(),a=this.dirty.getAllDirtyAttribute(),s=this.dirty.getAllDirtyPlugins();return this.dirty.clearWorkbookDirty(),this.dirty.clearWorksheet(),{style:e,colors:t,pivotCacheIds:i,pivotTableIds:n,wholeWorksheet:o,coords:r,dirtyAttributes:a,dirtyPlugins:s}}async flushDirty(){if(!this.isDirty())return this.doingFlushPromise??Promise.resolve();let e=()=>{let e=this.popDirty();return this._flushDirty(e).then(()=>{this.doingFlushPromise=null})};return this.doingFlushPromise?(this.waitingFlushPromise||(this.waitingFlushPromise=this.doingFlushPromise.then(()=>(this.doingFlushPromise=this.waitingFlushPromise??null,this.waitingFlushPromise=null,e()))),this.waitingFlushPromise):(this.doingFlushPromise=e(),this.doingFlushPromise)}async _flushDirty(e){let{style:t,colors:i,pivotCacheIds:n,pivotTableIds:o,wholeWorksheet:r,coords:a,dirtyAttributes:s,dirtyPlugins:l}=e;if(t&&await this.updateStyleManager(),i&&await this.updateColors(),n||o){let{caches:e,tables:t}=await this.dataBridge.pickPivot({tableIds:o?Array.from(o):[],cacheIds:n?Array.from(n):[]});this.storeCollection.getPivotTableStore().updatePivotCache(e),this.storeCollection.getPivotTableStore().updatePivotTable(t)}let c=this.storeCollection.getWorkbookStore().current;if(!c)return;if(r)return void await this.updateCurrentSheetStore();let[d,u,h]=await Promise.all([a.length>0?this.dataBridge.getSheetScatterCellsDataView(c,a):null,s.length>0?this.dataBridge.getSheetPartialDataView(c,s):null,l.length>0?this.dataBridge.getSheetPluginDataView(c,l):null]);if(this.storeCollection.getWorksheetStore().sheetId!==c)return;let p=nf.NONE;if(d){let e=this.storeCollection.getRenderHeightStore().renderedHeightRecords[c]??[],t=a.some(t=>{let{row:i,col:n}=t;return e[i]?.col===n});this.storeCollection.getWorksheetStore().updateScatterCells({coords:a,cells:d}),t&&(p|=nf.VIEWPORT),p|=nf.EDITOR}u&&(this.storeCollection.getWorksheetStore().flush(u),s.some(e=>["rows","cols","rowCount","colCount","global"].includes(e))&&(p|=nf.VIEWPORT),this._onSheetChanges(c,s),p|=nf.EDITOR),h&&(this.storeCollection.updateWorksheetPlugin(h),this._onSheetPluginChanges(c,l),p|=nf.EDITOR),this.storeCollection.getRenderHeightStore().checkRenderHeightCache(c,this.storeCollection)&&(p|=nf.VIEWPORT),p>0&&this.onFlushUI(p)}setRenderHeights(e,t){e===this.storeCollection.getWorkbookStore().current&&t.some(e=>e.height>this.storeCollection.getWorksheetStore().rowHeight[e.row])&&(this.storeCollection.getRenderHeightStore().updateRenderedHeights(e,t,this.storeCollection),this.onFlushUI(nf.VIEWPORT))}async notifyDataChange(e){await this.updateData(e),super.notifyDataChange(e)}async onStyleAdded(){this.dirty.setWorkbookDirty("style"),this.throttleUpdate()}onColorAdded(){this.dirty.setWorkbookDirty("colors"),this.throttleUpdate()}onCurrentSheetChange(e){this.storeCollection.getWorkbookStore().flushData({current:e}),this.dirty.setWorksheetDirty(),this.throttleUpdate()}onCommentChanged(e){this.storeCollection.getCommentStore().updateByDelta(e),super.onCommentChanged(e)}onFilterViewUpdated(e){this.onSheetPluginChanges(e,["filter"])}onExternalChanged(e,t){t?this.storeCollection.getExternalManagerStore().updateLinkInfo(t):this.storeCollection.getExternalManagerStore().removeLinkInfo(e)}async onCoordsChanges(e,t){e===this.dirty.getSheetId()&&(this.dirty.addCoords(t),this.throttleUpdate())}onAlterGrid(e,t,i){this.storeCollection.getWorkbookStore().updateSheetDimension({sheetId:e,rowCount:t,colCount:i}),e===this.dirty.getSheetId()&&(this.dirty.setDirtyAttributes(["cells","rows","cols","rowCount","colCount"]),this.throttleUpdate())}async onSheetChanges(e,t){e===this.dirty.getSheetId()&&(this.dirty.setDirtyAttributes(t),this.throttleUpdate())}onSheetPluginChanges(e,t){e===this.dirty.getSheetId()&&(this.dirty.setDirtyPlugins(t),this.throttleUpdate())}onSearchResultChange(e){switch(e.name){case"setSearching":this.storeCollection.getSearchStore().setSearching(...e.params);break;case"moveSearchResult":this.storeCollection.getSearchStore().moveSearchResult(...e.params);break;case"updateSearchResult":this.storeCollection.getSearchStore().updateSearchResult(...e.params)}this.onFlushUI(nf.EDITOR)}onRenderHeightAlterGrid(e,t,i,n){this.storeCollection.getRenderHeightStore().modifyRenderHeightByAlterGrid(e,t,i,n),e===this.storeCollection.getWorkbookStore().current&&this.onFlushUI(nf.VIEWPORT)}onRenderHeightMove(e,t,i){this.storeCollection.getRenderHeightStore().modifyRenderHeightByMove(e,t,i),e===this.storeCollection.getWorkbookStore().current&&this.onFlushUI(nf.VIEWPORT)}onPivotTableChange(e){this.dirty.addPivotTableDirty(e),this.throttleUpdate()}onPivotCacheChange(e){this.dirty.addPivotCacheDirty(e),this.throttleUpdate()}}let uw=e=>class extends e{getGridData(){let e=this.getCfsJSON();return{total:e.length,cfs:e.map(e=>this._localizeSerializedCf(e))}}_localizeSerializedCf(e){let t=e.f1,i=e.f2,n=this.sheet.getWorkbook().getLocale(),o=n.getLocaleConverter();return"date"===e.altType?(0,t_.jr)((0,tq.gE)(n,t,{date:!0}))&&(e.f1=o.localizeFormula(t)):(e.f1=this._localizeValue(t),e.f2=this._localizeValue(i),(0,t_.jr)(e.text)&&(e.text=o.localizeFormula(e.text))),e}_localizeValue(e){let t=this.sheet.getWorkbook().getLocale(),i=t.getLocaleConverter();return"string"!=typeof e?i.localize(e):(0,t_.jr)((0,tq.gE)(t,e))?i.localizeFormula(e):e}};class u_{constructor(e){this.sheet=e}getComputedCfStyle(e,t){return this.sheet.getCellProperty(e,t,"cfStyle")}getCfsJSON(){return this.sheet.getWorkbook().getCfStore().cfs}findCfJSON(e){return this.sheet.getWorkbook().getCfStore().findCfJSON(e)}}class ux extends uw(u_){}let uS=e=>class extends e{hasUpArrow(e){let t=this.sheet.countRows();for(e=uC(e,!1,t,e=>this.sheet.getGroupPlugin().getRowGroupLevel(e),e=>this.isHiddenRow(e));e<t;){if(this.sheet.isFilteredRow(e)){e+=1;continue}return this.sheet.isHiddenRowExcludeFilter(e)}return!1}hasDownArrow(e){for(e=uC(e,!0,this.sheet.countRows(),e=>this.sheet.getGroupPlugin().getRowGroupLevel(e),e=>this.isHiddenRow(e));e>=0;){if(this.sheet.isFilteredRow(e)){e-=1;continue}return this.sheet.isHiddenRowExcludeFilter(e)}return!1}hasLeftArrow(e){return e=uC(e,!1,this.sheet.countCols(),e=>this.sheet.getGroupPlugin().getColGroupLevel(e),e=>this.isHiddenCol(e)),this.isHiddenCol(e)}hasRightArrow(e){return e=uC(e,!0,this.sheet.countCols(),e=>this.sheet.getGroupPlugin().getColGroupLevel(e),e=>this.isHiddenCol(e)),this.isHiddenCol(e)}getVisibleRowIndexes(e){let{from:{row:t},to:{row:i}}=e,n=[];for(let e=t;e<=i;e++)this.isHiddenRow(e)||n.push(e);return n}getVisibleColIndexes(e){let{from:{col:t},to:{col:i}}=e,n=[];for(let e=t;e<=i;e++)this.isHiddenCol(e)||n.push(e);return n}};function uC(e,t,i,n,o){let r=e+(t?-1:1),a=r+1,s=r-1,l=n(r);for(;l>0;){for(;a>0&&n(a-1)>=l;){if(!o(a-1))return r;a-=1}for(;s<i-1&&n(s+1)>=l;){if(!o(s+1))return r;s+=1}r=t?a-1:s+1,l-=1}return r}class uk{constructor(e){this.sheet=e}isHiddenRow(e){return this.sheet.getWorksheetStore().rows[e]?.hidden??!1}isHiddenCol(e){return this.sheet.getWorksheetStore().cols[e]?.hidden??!1}}class uI extends uS(uk){}let uA=e=>class extends e{getColValues(e){let t=this.getActiveFilterJSON();if(!t?.enabled)return null;let i=t.range;if(!i)return null;let[n,,o]=i,r=this.isInViewState(),a=new Set,s=new Set;for(let t=n+1;t<=o;t++){let i=this.sheet.getCellTextDesc(t,e)?.v.trim()??"";this.isFilteredRow(t,r)&&!this.ensureHiddenCellValue(t,e,r)?s.add(i):a.add(i)}return{value:a,filtered:s}}getColColors(e,t){let i=new Set,n=this.getActiveFilterJSON(),o=n?.range;if(!o||!n?.enabled)return i;let[r,,a]=o;for(let n=r+1;n<=a;n++)for(let o of t?[this.sheet.getComputedBackgroundColor(n,e)]:this.sheet.getComputedTextColors(n,e))i.add(o.toLowerCase());return i}};class uT{constructor(e){this.sheet=e}isInViewState(){return this.sheet.getWorkbook().getFilterStore().isInViewState}isFilteredRow(e,t){return this.sheet.getWorkbook().getFilterStore().isFilteredRow(e,t)}ensureHiddenCellValue(e,t,i){let n=i?this.getActiveFilterJSON()?.range:this.getFilterJSON()?.range;if(!n)return!1;let o=this.sheet.getWorkbook().getFilterStore()[i?"viewHiddenCells":"hiddenCells"];return o[e-n[0]]?.[t-n[1]]??!1}hasDropdown(e,t){return this.sheet.getWorkbook().getFilterStore().hasDropdown(e,t)}hasCondition(e){return this.sheet.getWorkbook().getFilterStore().hasCondition(e)}getFilterJSON(){return this.sheet.getWorkbook().getFilterStore().filter}getActiveFilterJSON(){return this.sheet.getWorkbook().getFilterStore().activeFilter}listFilterViewInfo(){return this.sheet.getWorkbook().getFilterStore().filterView.filter(e=>!e.isPrivate)}}class uE extends uA(uT){}class uR{constructor(e){this.sheet=e}get fixedRowsTop(){return this.sheet.getWorkbook().getFreezeStore().fixedRowsTop}get fixedColumnsLeft(){return this.sheet.getWorkbook().getFreezeStore().fixedColumnsLeft}}class uD extends r2{constructor(e,t,i,n,o){super(e,t),this.data=i,this.fc=n,this.ssf=o}getRawData(){return this.data}ensureDisplayRange(){return this.ensureChart().getConfig("displayRange")}dataFormatter(e,t){return this.ssf.render(this.fc[t]??"General",e)}}class uO{constructor(e){this.sheet=e}getImagesJSON(){return this.sheet.getWorkbook().getDrawingStore().images}getChartsJSON(){return this.sheet.getWorkbook().getDrawingStore().charts.map(e=>this.convertChartStateToJSON(e))}getImageJSONById(e){return this.sheet.getWorkbook().getDrawingStore().getImageById(e)}getChartJSONById(e){let t=this.sheet.getWorkbook().getDrawingStore().getChartById(e);return t?this.convertChartStateToJSON(t):null}convertChartStateToJSON(e){return{id:e.id,position:e.position,chartInfo:new uD(e.config,{},e.data,e.fc,this.sheet.getWorkbook().getLocale().getSSF())}}}let uM=e=>class extends e{beforeGetCell(e){let t=this.getMergedRange(e.row,e.col);return t&&(e.row=t.from.row,e.col=t.from.col),e}isMultipleCells(e){return!e.isSingle()&&!this.searchMerge(e)}expandSelection(e){let t=!0;for(;t;){t=!1;let i=this.getOverlap(e);for(let n=0;n<i.length;n++)e.overlaps(i[n])&&e.expandByRange(i[n])&&(t=!0)}return e}nextHighlight(e,t){let{from:{row:i,col:n}}=e.highlight,o=e.getTopLeftCorner(),r=e.getBottomRightCorner();do{switch(t){case"up":if(i>o.row)i-=1;else if(i=r.row,--n<o.col)return null;break;case"down":if(i<r.row)i+=1;else if(i=o.row,++n>r.col)return null;break;case"right":if(n<r.col)n+=1;else if(n=o.col,++i>r.row)return null;break;case"left":if(n>o.col)n-=1;else if(n=r.col,--i<o.row)return null}let e=this.getMergedRange(i,n);if((!e||i===e.from.row&&n===e.from.col)&&!(this.sheet.isHiddenRow(i)||this.sheet.isHiddenCol(n)))return{row:i,col:n}}while(i>0&&n>0&&i<this.sheet.countRows()-1&&n<this.sheet.countCols()-1);return null}isMerged(e){let t=this.getMergedRange(e.from.row,e.from.col);return t?.isEqual(e)??!1}};class uN{constructor(e){this.sheet=e}getMergedRange(e,t){return this.sheet.getWorkbook().getMergeStore().getMergedRange(e,t)}searchMerge(e){return this.sheet.getWorkbook().getMergeStore().searchMerge(e)}getOverlap(e){return this.sheet.getWorkbook().getMergeStore().getOverlap(e)}*traverseMergedRange(){for(let e of this.sheet.getWorkbook().getMergeStore().mergeRanges)yield new eA.GJ(...e)}}class uP extends uM(uN){}class uL{constructor(e){this.sheet=e}getManualSize(e){return this.sheet.getWorksheetStore().cols[e]?.w??null}}class uB{constructor(e){this.sheet=e}getManualSize(e){return this.sheet.getWorksheetStore().rows[e]?.h??null}}function uF(e,t,i){return e.reduce((e,t)=>(e.row=Math.min(t.from.row,e.row),e.col=Math.min(t.from.col,e.col),e),{row:t,col:i})}class uV{constructor(e){this.sheet=e}getValidationView(e,t,i){return this.sheet.getWorkbook().getValidationStore().getValidationView(e,t,i)}isDropdownValidation(e){return this.sheet.getWorkbook().getValidationStore().isDropdownValidation(e)}calcRefCell(e){return uF(e,this.sheet.countRows(),this.sheet.countCols())}}class uz{constructor(e){this.workbook=e,this.hidden=new uI(this),this.filter=new uE(this),this.merge=new uP(this),this.validation=new uV(this),this.cf=new ux(this),this.freeze=new uR(this),this.rowResize=new uB(this),this.colResize=new uL(this),this.drawing=new uO(this),this.group=new c2(this)}get sheetId(){return this.getWorksheetStore().sheetId}get id(){return this.sheetId.slice(3)}getWorksheetStore(){return this.workbook.getWorksheetStore()}isEmptyCell(e,t){return this.workbook.getWorksheetStore().isEmptyCell(e,t)}isEmptyRange(e){return this.workbook.getWorksheetStore().isEmptyRange(e)}getDataAtCell(e,t){return this.workbook.getWorksheetStore().getDataAtCell(e,t)}getCellStyle(e,t){let i=this.getCellProperty(e,t,"s");return null==i?null:this.workbook.getStyleManager().getCellStyle(i)??null}getComputedCellStyle(e,t){let i=this.workbook.getWorksheetStore().getComputedXf(e,t),n=this.workbook.getStyleManager();return n.getCellStyle(i)??n.getDefaultStyle()}getCellProperty(e,t,i){return this.workbook.getWorksheetStore().getCellProperty(e,t,i)??null}getCellNote(e,t){return this.getCellProperty(e,t,"n")}getCellHyperlinkState(e,t){return this.getCellProperty(e,t,"link")}getSpillRange(e,t){return this.getWorkbook().getWorksheetStore().getSpillRange(e,t)}getCellFormulaValue(e,t,i){return this.getWorkbook().getWorksheetStore().getCellFormulaValue(e,t,i)}getCellTextDesc(e,t){return this.getCellProperty(e,t,"renderDesc")}getWorkbook(){return this.workbook}getCellFormulaItemState(e,t){return this.getCellProperty(e,t,"formulaItem")}ensureCellDirection(e,t){return this.getCellProperty(e,t,"dir")??"ltr"}countRows(){return this.getWorksheetStore().rowCount}countCols(){return this.getWorksheetStore().colCount}isReadonly(){return this.workbook.isReadonly()}isCommentable(){return this.workbook.isCommentable()}getName(){return this.workbook.getNameById(this.sheetId)}isRtl(){return this.getWorksheetStore().rtl}getColWidth(e){return this.getWorksheetStore().cols[e]?.w??0}getRowHeight(e){return this.isHiddenRow(e)?0:this.getWorkbook().getWorksheetStore().rowHeight[e]??0}getDefaultRowHeight(){return this.getWorksheetStore().defaultRowHeight}getDefaultColWidth(){return this.getWorksheetStore().defaultColWidth}isHiddenRowExcludeFilter(e){return this.hidden.isHiddenRow(e)&&!this.getFilterPlugin().isFilteredRow(e,!1)}isFilteredRow(e){let t=this.getFilterPlugin();return t.isInViewState()?t.isFilteredRow(e,!0):this.getHiddenPlugin().isHiddenRow(e)&&t.isFilteredRow(e,!1)}isHiddenRow(e){return this.isHiddenRowExcludeFilter(e)||this.isFilteredRow(e)}isHiddenCol(e){return this.getWorksheetStore().cols[e]?.hidden??!1}getFirstVisibleRowCol(e){let t="row"===e,i=t?this.countRows():this.countCols();for(let e=0;e<i;e++)if(!(t?this.isHiddenRow(e):this.isHiddenCol(e)))return e;return -1}getLastVisibleRowCol(e){let t="row"===e,i=t?this.countRows():this.countCols();for(let e=i-1;e>=0;e--)if(!(t?this.isHiddenRow(e):this.isHiddenCol(e)))return e;return -1}getHiddenPlugin(){return this.hidden}getFilterPlugin(){return this.filter}getMergePlugin(){return this.merge}getValidationPlugin(){return this.validation}getCfPlugin(){return this.cf}getFreezePlugin(){return this.freeze}getDrawingPlugin(){return this.drawing}getGroupPlugin(){return this.group}getRowResizePlugin(){return this.rowResize}getColResizePlugin(){return this.colResize}getComputedBackgroundColor(e,t){let i=this.getCellProperty(e,t,"cfStyle");if(i?.bgColor)return i.bgColor;let n=this.getComputedCellStyle(e,t)?.getFill();return n?.bg||tu.Z.DEFAULT_FILL_COLOR}getComputedTextColors(e,t){let i=this.getCellProperty(e,t,"cfStyle");if(i?.color)return[i.color];let n=this.getCellProperty(e,t,"renderDesc"),o=n?.c;if(o){let e=t0(`#${o}`);if(e)return[e.toLowerCase()]}let r=this.getComputedCellStyle(e,t)?.getFont();if(n?.l)return[r?.color||tu.Z.HYPER_LINK_COLOR];let a=r?.color||tu.Z.DEFAULT_FONT_COLOR,s=this.getWorkbook().getWorksheetStore().getDataAtCell(e,t);return(0,ts.is)(s)?(0,ts.F4)(s,a):[a]}getVisibleRangeValues(e){let t,i=[];for(let n=e.from.row;n<=e.to.row;n++){if(this.isHiddenRow(n))continue;let o=[];for(let i=e.from.col;i<=e.to.col;i++)this.isHiddenCol(i)||(o.push(this.getCellFormulaValue(n,i,!0)),t||=this.getWorkbook().getWorksheetStore().getCellProperty(n,i,"formulaItem")?.nfId||this.getCellStyle(n,i)?.nfId);i.push(o)}return{values:i,nfId:t}}getRangeTexts(e,t){return this.workbook.getWorksheetStore().getRangeTexts(e,t)}getAllTexts(e){return this.workbook.getWorksheetStore().getAllTexts(e)}findClosestCell(e,t){return ig(this,e,t)}getNonEmptyNeighborRange(e){return im(this,e)}findSuggestionDataRange(e){return ib(this,e)}setRenderHeights(e){let t=this.getWorkbook().getStoreCollection();t.getRenderHeightStore().updateRenderedHeights(this.sheetId,e,t)}}class uH{constructor(e){this.workbook=e}getVariable(e,t){return this.workbook.getNameManagerStore().getVariable(e,t)}}class uW{constructor(e){this.workbook=e,this._styles=[],this.fonts=[],this.fills=[],this.alignments=[],this.borders=[],this.numberFormats=[]}get styles(){let e=this.workbook.getStyleManagerStore().styles;for(let t=this._styles.length;t<e.length;t++){let i=e[t],n=new nh;n.fontId=i[1],n.fillId=i[2],n.alignmentId=i[3],n.borderId=i[4],n.nfId=i[5],n.quotePrefix=i[6]>0,n._sm=this,n.setIndex(t),this._styles.push(n)}return this._styles}getStyle(e,t,i,n){if(!t[e]){let o=this.workbook.getStyleManagerStore()[n][e];if(!o)return;t[e]=new i().assign(o),t[e].setIndex(e)}return t[e]}getDefaultStyle(){return this.styles[0]}getFont(e){return this.getStyle(e,this.fonts,tx.Zx,"fonts")}getFill(e){return this.getStyle(e,this.fills,tx.de,"fills")}getAlignment(e){return this.getStyle(e,this.alignments,tx.v2,"alignments")}getBorder(e){return this.getStyle(e,this.borders,tx.OC,"borders")}getNumberFormat(e){return this.getStyle(e,this.numberFormats,tx.y4,"numberFormats")}getCellStyle(e){return this.styles[e]}}class uY{constructor(e,t){this.locale=t,this.current=new uz(this),this.styleManager=new uW(this),this.nameManager=new uH(this),this.storeCollection=e}getCurrentSheet(){return this.current.sheetId?this.current:void 0}hasSheet(e){return this.storeCollection.getWorkbookStore().hasSheet(e)}getNameById(e){return this.storeCollection.getWorkbookStore().sheetsInfo.get(e)?.title}getIdByName(e){return this.storeCollection.getWorkbookStore().nameMap.get(e)}getSheetColor(e){return this.storeCollection.getWorkbookStore().sheetsInfo.get(e)?.tabColor}getRemainingCellCount(){return this.storeCollection.getWorkbookStore().remainingCellCount}getSheetDimension(e){return this.storeCollection.getWorkbookStore().getSheetDimension(e)}getAvailableRowCount(e){return this.storeCollection.getWorkbookStore().getAvailableRowCount(e)}getAvailableColCount(e){return this.storeCollection.getWorkbookStore().getAvailableColCount(e)}getAvailableMaxRow(e){return this.storeCollection.getWorkbookStore().getAvailableMaxRow(e)}getAvailableMaxCol(e){return this.storeCollection.getWorkbookStore().getAvailableMaxCol(e)}isDimensionAvailable(e,t,i){return this.storeCollection.getWorkbookStore().isDimensionAvailable(e,t,i)}isNewSheetAvailable(e){return this.storeCollection.getWorkbookStore().isNewSheetAvailable(e)}getOrder(){return this.storeCollection.getWorkbookStore().order}getPrevSheet(e,t){return this.storeCollection.getWorkbookStore().getPrevSheet(e,t)??void 0}getNextSheet(e,t){return this.storeCollection.getWorkbookStore().getNextSheet(e,t)??void 0}getSiblingSheet(e){return this.storeCollection.getWorkbookStore().getSiblingSheet(e)}getSheetCount(){return this.getOrder().length}getSheetPos(e){return this.storeCollection.getWorkbookStore().getSheetPos(e)}isSheetHidden(e){return this.storeCollection.getWorkbookStore().isHiddenSheet(e)}getNameManager(){return this.nameManager}getStyleManager(){return this.styleManager}getPivotTableManager(){return this.getPivotTableStore()}createBaseFormulaItem(){return new eO}getVisibleOrder(){return this.storeCollection.getWorkbookStore().visibleOrder}isReadonly(){return this.storeCollection.getWorkbookStore().readonly}isCommentable(){return this.storeCollection.getWorkbookStore().commentable}isHistoryMode(){return!1}isCellEditable(e,t,i){let n=this.getCurrentSheet();if(!n)return!1;let o=n.getCellProperty(e,t,"pivot");return!this.isReadonly()&&this.getRuleStore().isCellEditable(n.sheetId,e,t,i)&&(!o?.tableId||this.isPivotTableEnabled()&&!this.getPivotTableManager().isIncompatibleTable(o?.tableId??"")&&o?.edit!=null)}isPivotTableEnabled(){return this.storeCollection.getWorkbookStore().constants.PIVOT_TABLE_ENABLED}getVersion(){return this.storeCollection.getWorkbookStore().version}getStoreCollection(){return this.storeCollection}getWorkbookStore(){return this.storeCollection.getWorkbookStore()}getWorksheetStore(){return this.storeCollection.getWorksheetStore()}getNameManagerStore(){return this.storeCollection.getNameManagerStore()}getRuleStore(){return this.storeCollection.getRuleStore()}getCommentStore(){return this.storeCollection.getCommentStore()}getExternalManagerStore(){return this.storeCollection.getExternalManagerStore()}getPivotTableStore(){return this.storeCollection.getPivotTableStore()}getStyleManagerStore(){return this.storeCollection.getStyleManagerStore()}getFilterStore(){return this.storeCollection.getFilterStore()}getMergeStore(){return this.storeCollection.getMergeStore()}getValidationStore(){return this.storeCollection.getValidationStore()}getCfStore(){return this.storeCollection.getCfStore()}getFreezeStore(){return this.storeCollection.getFreezeStore()}getDrawingStore(){return this.storeCollection.getDrawingStore()}getLocale(){return this.locale}moveSearchResult(e,t,i){let n=e.length,o=(i??=this.storeCollection.getWorkbookStore().current)?e.indexOf(i):0;o<0&&(o=0);let r=e[o],a=this.storeCollection.getSearchStore().getResultBy(r,t);if(!a){let i=o;do"prev"===t?(o=(o-1+n)%n,a=this.storeCollection.getSearchStore().getLastResult(e[o])):(o=(o+1)%n,a=this.storeCollection.getSearchStore().getFirstResult(e[o]));while(!a&&o!==i)}let s=0,l=0;if(a){this.storeCollection.getSearchStore().moveSearchResult({sheetId:e[o],moveTo:{row:a.row,col:a.col}});for(let t=0;t<n;t++){let i=this.storeCollection.getSearchStore().searchCount(e[t]);l+=i,t<o?s+=i:t===o&&(s+=this.storeCollection.getSearchStore().searchIndex(e[t]))}}return{sheetId:e[o],match:a,index:s,total:l}}isSearching(){return this.storeCollection.getSearchStore().isSearching}getSearchingResults(e){return this.storeCollection.getSearchStore().getSearchingResults(e)}collectColor(){return this.storeCollection.getWorkbookStore().colorSet}}let uU={fromData:eA.GJ.fromArray,toData:e=>e.toArray()},uG={action:{fromData:dY,toData:e=>e.serialize()},range:uU,refRange:{fromData:e=>Q(e),toData:e=>e.toLabel()},autofillData:{fromData:e=>iI(e),toData:e=>iA(e)},cellData:{fromData:e=>e.formulaValue?{...e,formulaValue:(0,H.gn)(e.formulaValue)}:e,toData:e=>e.formulaValue?{...e,formulaValue:(0,H.yx)(e.formulaValue)}:e},objRange:{fromData:function(e){return{...e,range:e.range?uU.fromData(e.range):null}},toData:function(e){return{...e,range:e.range?uU.toData(e.range):null}}}};class uZ extends ui{constructor(e,t,i,n){super();let o=new Worker("webman/3rdparty/Spreadsheet//dist/lib/sheet.worker.js?v=1776410618694");this.storeUpdater=new uy(this,n),this.worker=d2(o),this.worker.initWorkbook(e.getCode(),e.getData(),i),this.workbook=new uY(this.storeUpdater.getStoreCollection(),e),o.addEventListener("message",e=>this.handleWorkerEvent(e))}handleWorkerEvent(e){if(e.data?.category!=="notifier")return;let t=e.data;switch(t.cmd){case"notifyDataChange":this.storeUpdater.notifyDataChange(...t.args);break;case"onAlert":this.storeUpdater.onAlert(...t.args);break;case"onAlterGrid":this.storeUpdater.onAlterGrid(...t.args);break;case"onColorAdded":this.storeUpdater.onColorAdded(...t.args);break;case"onRtlDataAdded":this.storeUpdater.onRtlDataAdded(...t.args);break;case"onCoordsChanges":this.storeUpdater.onCoordsChanges(...t.args);break;case"onFilterViewUpdated":this.storeUpdater.onFilterViewUpdated(...t.args);break;case"onCurrentSheetChange":this.storeUpdater.onCurrentSheetChange(...t.args);break;case"onCommentChanged":this.storeUpdater.onCommentChanged(...t.args);break;case"onExternalRequest":this.storeUpdater.onExternalRequest(...t.args);break;case"onSearchResultChange":this.storeUpdater.onSearchResultChange(...t.args);break;case"onSheetChanges":this.storeUpdater.onSheetChanges(...t.args);break;case"onSheetPluginChanges":this.storeUpdater.onSheetPluginChanges(...t.args);break;case"onStyleAdded":this.storeUpdater.onStyleAdded(...t.args);break;case"onExternalChanged":this.storeUpdater.onExternalChanged(...t.args);break;case"onRenderHeightAlterGrid":this.storeUpdater.onRenderHeightAlterGrid(...t.args);break;case"onRenderHeightMove":this.storeUpdater.onRenderHeightMove(...t.args);break;case"onPivotTableChange":this.storeUpdater.onPivotTableChange(...t.args);break;case"onPivotCacheChange":this.storeUpdater.onPivotCacheChange(...t.args)}}async asyncInit(e,t){return iV(await this.worker.asyncInit(e,t.activeId),async()=>{t.onActiveInit&&(await this.storeUpdater.initData(),t.onActiveInit())})}async forceUpdate(){await this.worker.flushThrottle(),await this.storeUpdater.flushDirty()}async startObserve(){return Promise.all([this.worker.startObserve(),this.storeUpdater.initData()])}getWorkbook(){return this.workbook}async setCurrent(e){await this.worker.setCurrent(e),await this.forceUpdate()}async setReadonly(e){await this.worker.setReadonly(e)}async setCommentable(e){await this.worker.setCommentable(e)}async _execCommand(e){let t=await this.worker.execCommand(e);return t?uG.action.fromData(t)??void 0:void 0}async _execRemoteCommand(e){await this.worker.execRemoteCommand(e)}async *iteratePrintSheet(e){let t=new uY(new uv("print-sheet-id"),this.getWorkbook().getLocale()),i={styles:1,fonts:1,fills:1,alignments:1,borders:1,numberFormats:1},n=await this.getStyleManagerDataView(i);t.getStyleManagerStore().appendStyles({appendData:n,indexes:i});let{tables:o,caches:r}=await this.listAllPivot();for(let i of(t.getPivotTableStore().init(o,r),e)){let e=await this.getSheetDataView(i.sheetId);e&&(t.getWorkbookStore().flushData({current:i.sheetId}),t.getWorksheetStore().flush(e.worksheet),t.getStoreCollection().updateWorksheetPlugin(e.plugins),yield[t.getCurrentSheet(),i])}}async generateWorksheetContent(e){return await this.worker.generateWorksheetContent(e)}async validateRuleCommand(e,t){return await this.worker.validateRuleCommand(e,t)}async checkProtectRefRange(e,t,i,n){let o=Array.isArray(e)?e.map(uG.refRange.toData):uG.refRange.toData(e);return this.worker.checkProtectRefRange(o,t,i,n)}async checkProtectedWorksheets(e,t,i,n){return await this.worker.checkProtectedWorksheets(e,t,i,n)}async checkProtectedCoords(e,t,i,n){return await this.worker.checkProtectedCoords(e,t,i,n)}async checkProtectedInsertable(e,t,i,n,o){return await this.worker.checkProtectedInsertable(e,t,i,n,o)}async checkCommand(e,t,i,n){return await this.worker.checkCommand(e,t,i,n)}async checkMergeRangesError(e,t){return await this.worker.checkMergeRangesError(e,t.map(e=>uG.range.toData(e)))}async checkMergeRangeError(e,t){return await this.worker.checkMergeRangeError(e,uG.range.toData(t))}async checkIncompleteMergedCells(e,t){return await this.worker.checkIncompleteMergedCells(e,uG.range.toData(t))}async checkMoveEnable(e,t,i,n,o,r){return await this.worker.checkMoveEnable(e,t,i,n,o,r)}async checkExistValidation(e,t,i){return this.worker.checkExistValidation(e,t,i.map(uG.range.toData))}async previewFormula(e,t){return await this.worker.previewFormula(e,t)}async parseRange(e,t){let i=await this.worker.parseRange(e,t);return i?uG.refRange.fromData(i):null}async validateFormula(e,t){return await this.worker.validateFormula(e,t)}async getWorkbookDataView(){return this.worker.getWorkbookDataView()}async getNameManagerDataView(){return await this.worker.getNameManagerDataView()}async getRuleStoreDataView(e,t){return await this.worker.getRuleStoreDataView(e,t)}async getCommentStoreDataView(){return Object.freeze(await this.worker.getCommentStoreDataView())}async getStyleManagerDataView(e){return await this.worker.getStyleManagerDataView(e)}async collectColors(){return this.worker.collectColors()}async hasRtlProperties(){return this.worker.hasRtlProperties()}async listExternalLinkInfo(){return await this.worker.listExternalLinkInfo()}async getSheetDataView(e){return await this.worker.getSheetDataView(e)}async getSheetScatterCellsDataView(e,t){return await this.worker.getSheetScatterCellsDataView(e,t)}async getSheetPartialDataView(e,t){return await this.worker.getSheetPartialDataView(e,t)}async getSheetPluginDataView(e,t){return await this.worker.getSheetPluginDataView(e,t)}async flushDirty(){await this.storeUpdater.flushDirty()}async setRenderHeights(e,t){this.storeUpdater.setRenderHeights(e,t)}async calcRenderRanges(e,t){await this.worker.calcRenderRanges(e,t.map(uG.range.toData))}async getSheetDimension(e){return await this.worker.getSheetDimension(e)}async getRangeStyle(e,t,i){return await this.worker.getRangeStyle(e,t,i)}async getRangeComputedStyle(e,t,i){return await this.worker.getRangeComputedStyle(e,t,i)}async getRangeCellByKey(e,t,i,n){return(await this.worker.getRangeCellByKey(e,t,i,n)).map(e=>e.map(uG.cellData.fromData))}async getRangeData(e,t,i){return await this.worker.getRangeData(e,t,i)}async getRangeRenderedTexts(e,t,i){return await this.worker.getRangeRenderedTexts(e,t,i)}async getRangeHyperlink(e,t,i){return await this.worker.getRangeHyperlink(e,t,i)}async getRangeValidId(e,t,i){return await this.worker.getRangeValidId(e,t,i)}async getRowInfo(e){return await this.worker.getRowInfo(e)}async getColInfo(e){return await this.worker.getColInfo(e)}async getActiveFilterData(e){let t=await this.worker.getActiveFilterData(e);return t?{...t,range:uG.range.fromData(t.range)}:t}async getFilteredRows(e,t,i){return await this.worker.getFilteredRows(e,t,i)}async getAutoFilterRange(e,t){let i=await this.worker.getAutoFilterRange(e,uG.range.toData(t));return uG.range.fromData(i)}async getMergedRange(e,t,i){let n=await this.worker.getMergedRange(e,t,i);return n?uG.range.fromData(n):void 0}async getMergedOverlap(e,t){return(await this.worker.getMergedOverlap(e,t.map(e=>uG.range.toData(e)))).map(uG.range.fromData)}async createListRangeItems(e,t,i,n){return await this.worker.createListRangeItems(e,t,i,n)}async calculateExternalChanges(e,t){return await this.worker.calculateExternalChanges(e,t)}async calculateEmptyRefExternalChanges(){return await this.worker.calculateEmptyRefExternalChanges()}async getUnlinkChanges(e){return await this.worker.getUnlinkChanges(e)}async listExternalLinkIds(){return await this.worker.listExternalLinkIds()}async getAutofillObject(e,t,i,n,o,r,a){let s=await this.worker.getAutofillObject(e,t,i,n,o,r,a);return s?uG.autofillData.fromData(s):null}async getCfJSONById(e,t){return await this.worker.getCfJSONById(e,t)}async getCfIndexById(e,t){return await this.worker.getCfIndexById(e,t)}async setSearching(e){return await this.worker.setSearching(e)}async searchAll(e,t){return await this.worker.searchAll(e,uG.objRange.toData(t))}async getReplaceChanges(e,t){return await this.worker.getReplaceChanges(e,uG.objRange.toData(t))}async getReplaceAllChanges(e,t){return await this.worker.getReplaceAllChanges(e,uG.objRange.toData(t))}async getRowOrder(e,t,i,n){let o=await this.worker.getRowOrder(e,uG.range.toData(t),i,n);return o?{...o,range:uG.range.fromData(o.range)}:null}async getChartPosition(e,t){return await this.worker.getChartPosition(e,t)}async getImagesJSON(e){return await this.worker.getImagesJSON(e)}async getMergedCellFormatChanges(e,t,i){return await this.worker.getMergedCellFormatChanges(e,uG.range.toData(t),uG.autofillData.toData(i))}async getMergedRangesArray(e){return await this.worker.getMergedRangesArray(e)}async getFrozenRowColumn(e){return await this.worker.getFrozenRowColumn(e)}async getPivotCache(e){return await this.worker.getPivotCache(e)}async getPivotCacheSource(e){let t=await this.worker.getPivotCacheSource(e);return t&&{sheetId:t.sheetId,range:t.range}}async calcPivotCacheContent(e,t,i){return await this.worker.calcPivotCacheContent(e,t,i)}async getPivotTable(e){return await this.worker.getPivotTable(e)}async calcPivotTableContent(e,t,i){return await this.worker.calcPivotTableContent(e,t,i)}async calcPivotTableNewResult(e,t){return await this.worker.calcPivotTableNewResult(e,t)}async checkPivotTableRanges(e,t,i,n,o){return await this.worker.checkPivotTableRanges(e,t,i,n,o)}async checkPivotTableCommands(e,t){return await this.worker.checkPivotTableCommands(e,t)}async listAllPivot(){return await this.worker.listAllPivot()}async pickPivot(e){return await this.worker.pickPivot(e)}async getTableDetailContent(e,t,i){return await this.worker.getTableDetailContent(e,t,i)}async checkPivotTableConvertMessages(e){return await this.worker.checkPivotTableConvertMessages(e)}async convertIncompatiblePivotTable(e){return await this.worker.convertIncompatiblePivotTable(e)}async listPivotTableLocations(e){return await this.worker.listPivotTableLocations(e)}async getPivotFieldItemNames(e,t,i){return await this.worker.getPivotFieldItemNames(e,t,i)}async getPivotFieldNames(e){return await this.worker.getPivotFieldNames(e)}async getPivotFieldRemainCount(e){return await this.worker.getPivotFieldRemainCount(e)}async getManualGroupChanges(e,t){return await this.worker.getManualGroupChanges(e,t)}async getManualUngroupChanges(e,t){return await this.worker.getManualUngroupChanges(e,t)}async getNonEmptyNeighborRange(e,t){return await this.worker.getNonEmptyNeighborRange(e,t)}}class uj{constructor(){this.actions=[],this.skip=!0}accumulate(e){return this.actions=[],this.skip=!1,e(),this.skip=!0,this.finishAccumulate(this.actions)}getUndoneActions(){return this.actions}clear(){this.actions=[],this.skip=!0}addEventHook(e,t,i){var n=this;e.on(t,function(){for(var e=arguments.length,t=Array(e),o=0;o<e;o++)t[o]=arguments[o];if(n.skip)return;let r=i.call(n,...t);r&&n.actions.push(r)})}}class uq extends uj{constructor(e){super(),this.workbook=e,this.listen(e)}finishAccumulate(e){return e.map(e=>this.addHistoryTrackingInfo(e)),e.length>1?new sK(e):e[0]}listen(e){this.listenWorkbook(e),this.listenWorkbookController(e.getController()),this.addEventHook(e.getPivotTableManager(),"afterPivotCommand",this.afterPivotCommand)}listenWorkbook(e){this.addHook(e,"afterChange",this.afterChange),this.addHook(e,"afterRowResize",this.afterRowResize),this.addHook(e,"afterColumnResize",this.afterColumnResize),this.addHook(e,"afterCreateRow",this.afterCreateRow),this.addHook(e,"beforeRemoveRow",this.beforeRemoveRow),this.addHook(e,"afterCreateCol",this.afterCreateCol),this.addHook(e,"beforeRemoveCol",this.beforeRemoveCol),this.addHook(e,"afterMergeCells",this.afterMergeCells),this.addHook(e,"afterUnmergeCells",this.afterUnmergeCells),this.addHook(e,"afterFormatChange",this.afterFormatChange),this.addHook(e,"afterFontChange",this.afterFontChange),this.addHook(e,"afterFillChange",this.afterFillChange),this.addHook(e,"afterAlignmentChange",this.afterAlignmentChange),this.addHook(e,"afterBorderChange",this.afterBorderChange),this.addHook(e,"afterFixedRow",this.afterFixedRow),this.addHook(e,"afterFixedCol",this.afterFixedCol),this.addHook(e,"afterHideRows",this.afterHideRows),this.addHook(e,"afterShowRows",this.afterShowRows),this.addHook(e,"afterHideCols",this.afterHideCols),this.addHook(e,"afterShowCols",this.afterShowCols),this.addHook(e,"afterSort",this.afterSort),this.addHook(e,"afterNoteChange",this.afterNoteChange),this.addHook(e,"afterCreateFilter",this.afterCreateFilter),this.addHook(e,"afterEnableFilter",this.afterEnableFilter),this.addHook(e,"afterDisableFilter",this.afterDisableFilter),this.addHook(e,"afterSetFilter",this.afterSetFilter),this.addHook(e,"afterUpdateFilterRange",this.afterUpdateFilterRange),this.addHook(e,"afterCreateFilterView",this.afterCreateFilterView),this.addHook(e,"afterEnableFilterView",this.afterEnableFilterView),this.addHook(e,"afterDisableFilterView",this.afterDisableFilterView),this.addHook(e,"afterUpdateFilterViewRange",this.afterUpdateFilterViewRange),this.addHook(e,"afterUpdateFilterViewName",this.afterUpdateFilterViewName),this.addHook(e,"afterSetFilterViewCondition",this.afterSetFilterViewCondition),this.addHook(e,"afterActiveFilterChange",this.afterActiveFilterChange),this.addHook(e,"afterCreateValidation",this.afterCreateValidation),this.addHook(e,"afterRemoveValidation",this.afterRemoveValidation),this.addHook(e,"afterCreateConditionalFormat",this.afterCreateConditionalFormat),this.addHook(e,"afterRemoveConditionalFormat",this.afterRemoveConditionalFormat),this.addHook(e,"afterUpdateCfRanges",this.afterUpdateCfRanges),this.addHook(e,"afterInsertImage",this.afterInsertImage),this.addHook(e,"afterRemoveImage",this.afterRemoveImage),this.addHook(e,"afterResizeImage",this.afterResizeImage),this.addHook(e,"afterInsertChart",this.afterInsertChart),this.addHook(e,"afterRemoveChart",this.afterRemoveChart),this.addHook(e,"afterResizeChart",this.afterResizeChart),this.addHook(e,"afterAdjustChart",this.afterAdjustChart),this.addHook(e,"afterSetChartConfig",this.afterSetChartConfig),this.addHook(e,"afterRowStyleChange",this.afterRowStyleChange),this.addHook(e,"afterColStyleChange",this.afterColStyleChange),this.addHook(e,"afterGlobalStyleChange",this.afterGlobalStyleChange),this.addHook(e,"afterQuotePrefixChange",this.afterQuotePrefixChange),this.addHook(e,"afterMoveRow",this.afterMoveRow),this.addHook(e,"afterMoveCol",this.afterMoveCol),this.addHook(e,"afterMoveFormulaRange",this.afterMoveFormulaRange),this.addHook(e,"afterRemoveFormulaRange",this.afterRemoveFormulaRange),this.addHook(e,"afterAddInternalLink",this.afterAddInternalLink),this.addHook(e,"afterUpdateInternalLink",this.afterUpdateInternalLink),this.addHook(e,"afterRemoveInternalLink",this.afterRemoveInternalLink),this.addHook(e,"afterGroup",this.afterGroup),this.addHook(e,"afterUngroup",this.afterUngroup),this.addHook(e,"afterUpdateGroup",this.afterUpdateGroup),this.addHook(e,"afterSetCollapse",this.afterSetCollapse),this.addHook(e,"afterSetWorksheetRtl",this.afterSetWorksheetRtl)}listenWorkbookController(e){this.addWorkbookHook(e,"afterCreateDefinedName",this.afterCreateDefinedName),this.addWorkbookHook(e,"afterRemoveDefinedName",this.afterRemoveDefinedName),this.addWorkbookHook(e,"afterModifyDefinedName",this.afterModifyDefinedName),this.addWorkbookHook(e,"createRule",this.createRule),this.addWorkbookHook(e,"updateRule",this.updateRule),this.addWorkbookHook(e,"removeRule",this.removeRule),this.addWorkbookHook(e,"deleteWorksheet",this.deleteWorksheet),this.addWorkbookHook(e,"undeleteWorksheet",this.undeleteWorksheet),this.addWorkbookHook(e,"reorderWorksheet",this.reorderWorksheet),this.addWorkbookHook(e,"renameWorksheet",this.renameWorksheet),this.addWorkbookHook(e,"setWorksheetHidden",this.setWorksheetHidden),this.addWorkbookHook(e,"setWorksheetColor",this.setWorksheetColor),this.addWorkbookHook(e,"afterCreateComment",this.afterCreateComment),this.addWorkbookHook(e,"afterReplyComment",this.afterReplyComment),this.addWorkbookHook(e,"afterResolveComment",this.afterResolveComment),this.addWorkbookHook(e,"afterReopenComment",this.afterReopenComment),this.addWorkbookHook(e,"afterEditComment",this.afterEditComment),this.addWorkbookHook(e,"afterPasteComment",this.afterPasteComment),this.addWorkbookHook(e,"afterClearComment",this.afterClearComment),this.addWorkbookHook(e,"afterUpdateExternalLinks",this.afterUpdateExternalLinks),this.addWorkbookHook(e,"afterRemoveExternalLinks",this.afterRemoveExternalLinks)}addHook(e,t,i){let n=this;e.hooks.add(t,function(){for(var e=arguments.length,t=Array(e),o=0;o<e;o++)t[o]=arguments[o];if(n.skip)return;let r=i.call(n,this,...t);r&&n.actions.push(r)})}addWorkbookHook(e,t,i){this.addEventHook(e,t,i)}afterChange(e,t,i){if([tL.InsertedData,tL.Formula,tL.PivotTable].includes(i))return null;let n=t.filter(eI.RE).map(e=>[e[0],e[1],(0,ts.is)(e[2])?e[2].toJSON():e[2],(0,ts.is)(e[3])?e[3].toJSON():e[3]]);return 0===n.length?null:new s$(e.sheetId,n,[],[])}afterRowResize(e,t,i,n,o,r){return[tL.InsertedData,tL.PivotTable].includes(r)||e.isReadonly()?null:new s5(e.sheetId,t,i,n,o)}afterColumnResize(e,t,i,n,o,r){return[tL.InsertedData,tL.PivotTable].includes(r)||e.isReadonly()?null:new s6(e.sheetId,t,i,n,o)}afterCreateRow(e,t,i,n,o,r){return o?null:new s0(e.sheetId,t,i,n,r)}afterCreateCol(e,t,i,n,o,r){return o?null:new s1(e.sheetId,t,i,n,r)}beforeRemoveRow(e,t,i){let n={row:t,col:0},o={row:t+i-1,col:e.countCols()-1},r=e.getPlugin("synoAutofill").getFormat(n,o,()=>!1),a=[];e.runHooks("collectRemovedRowInfo",a,t,i);let s=e.getPlugin("synoFormula"),l=s.getCrossInfo();return s.removeCrossInfo(),new s2(e.sheetId,t,i,{format:uK(r,t,0),changes:uQ(e,n,o),nfRefs:[],nfs:[],notes:uX(e,n,o),info:a,crossInfo:l,hyperlinks:e.getHyperlinkModel().getHyperlinksByDim("row",n.row,o.row),define:e.getWorkbook().getController().nameController.collectRemovedInfo("row",t,i),pivotTable:{sources:e.getWorkbook().getPivotTableManager().collectSourceInfo(e,n,o)}})}beforeRemoveCol(e,t,i){let n={row:0,col:t},o={row:e.countRows()-1,col:t+i-1},r=e.getPlugin("synoAutofill").getFormat(n,o,()=>!1),a=[];e.runHooks("collectRemovedColInfo",a,t,i);let s=e.getPlugin("synoFormula"),l=s.getCrossInfo();return s.removeCrossInfo(),new s3(e.sheetId,t,i,{format:uK(r,0,t),changes:uQ(e,n,o),nfRefs:[],nfs:[],notes:uX(e,n,o),info:a,crossInfo:l,hyperlinks:e.getHyperlinkModel().getHyperlinksByDim("col",n.col,o.col),define:e.getWorkbook().getController().nameController.collectRemovedInfo("col",t,i),pivotTable:{sources:e.getWorkbook().getPivotTableManager().collectSourceInfo(e,n,o)}})}afterMergeCells(e,t,i){return[tL.InsertedData,tL.PivotTable].includes(i)?null:new s7(e.sheetId,t.toArray())}afterUnmergeCells(e,t,i){return[tL.InsertedData,tL.PivotTable].includes(i)?null:new s9(e.sheetId,t.toArray())}afterFormatChange(e,t,i,n){return[tL.InsertedData,tL.PivotTable].includes(n)?null:new s8(e.sheetId,"Format",t,i)}afterFontChange(e,t,i,n){return[tL.InsertedData,tL.PivotTable].includes(n)?null:new s8(e.sheetId,"Font",t,i)}afterFillChange(e,t,i,n){return[tL.InsertedData,tL.PivotTable].includes(n)?null:new s8(e.sheetId,"Fill",t,i)}afterAlignmentChange(e,t,i,n){return[tL.InsertedData,tL.PivotTable].includes(n)?null:new s8(e.sheetId,"Alignment",t,i)}afterBorderChange(e,t,i,n){return[tL.Alter,tL.InsertedData,tL.PivotTable].includes(n)?null:new s8(e.sheetId,"Border",t,i)}afterQuotePrefixChange(e,t,i,n){return[tL.PivotTable].includes(n)?null:new s8(e.sheetId,"QuotePrefix",t,i)}afterFixedRow(e,t,i){return new lt(e.sheetId,t,i)}afterFixedCol(e,t,i){return new li(e.sheetId,t,i)}afterHideRows(e,t,i,n){return n===tL.InsertedData?null:new lo(e.sheetId,t,i)}afterShowRows(e,t,i){return new lr(e.sheetId,t,i)}afterHideCols(e,t,i,n){return n===tL.InsertedData?null:new la(e.sheetId,t,i)}afterShowCols(e,t,i){return new ls(e.sheetId,t,i)}afterSort(e,t,i,n,o){return new ll(e.sheetId,t,i.toArray(),n,o)}afterNoteChange(e,t,i){return -1<[tL.InsertedData].indexOf(i)?null:new lc(e.sheetId,t)}afterCreateFilter(e,t,i){return new ld(e.sheetId,t.toArray(),i)}afterEnableFilter(e,t,i){return new lu(e.sheetId,t,i)}afterDisableFilter(e,t,i){return new lh(e.sheetId,t,i)}afterSetFilter(e,t,i,n,o,r){return new lp(e.sheetId,t,i,n,o,r)}afterUpdateFilterRange(e,t,i,n,o,r){return new lf(e.sheetId,t,i?.toArray(),n?.toArray(),o,r)}afterCreateFilterView(e,t,i,n,o){return new lv(e.sheetId,t,i.toArray(),n,o)}afterEnableFilterView(e,t){return new lb(e.sheetId,t)}afterDisableFilterView(e,t){return new ly(e.sheetId,t)}afterSetFilterViewCondition(e,t,i,n,o,r){return new lw(e.sheetId,t,i,n,o,r)}afterActiveFilterChange(e,t,i){return new lS(e.sheetId,t,i)}afterUpdateFilterViewRange(e,t,i,n,o,r,a){return new lx(e.sheetId,t,i.toArray(),n.toArray(),o,r,a)}afterUpdateFilterViewName(e,t,i,n,o){return new l_(e.sheetId,t,i,n,o)}afterCreateValidation(e,t,i){return new lk(e.sheetId,t,eR.toLabel(i))}afterRemoveValidation(e,t,i){return new lI(e.sheetId,t,eR.toLabel(i))}afterCreateConditionalFormat(e,t,i){return new lT(e.sheetId,t,i)}afterRemoveConditionalFormat(e,t,i,n){return void 0===i||-1===n?null:new lE(e.sheetId,i,n)}afterUpdateCfRanges(e,t,i,n){return new lR(e.sheetId,t,i,n)}afterInsertImage(e,t,i){return new lO(e.sheetId,t,i)}afterRemoveImage(e,t,i){return new lM(e.sheetId,t,i)}afterResizeImage(e,t,i,n){return rW(i,n)?null:new lN(e.sheetId,t,i,n)}afterInsertChart(e,t,i,n){return new lL(e.sheetId,t,i,n)}afterRemoveChart(e,t,i,n){return new lB(e.sheetId,t,i,n)}afterResizeChart(e,t,i,n){return rW(i,n)?null:new lF(e.sheetId,t,i,n)}afterAdjustChart(e,t,i,n){return new lV(e.sheetId,t,i,n)}afterSetChartConfig(e,t,i,n,o){return new lz(e.sheetId,t,i,n,o)}afterRowStyleChange(e,t,i,n,o,r){return new l$(e.sheetId,"row",t,i,n,o.cellChanges)}afterColStyleChange(e,t,i,n,o,r){return new l$(e.sheetId,"col",t,i,n,o.cellChanges)}afterGlobalStyleChange(e,t,i,n,o,r){return new lJ(e.sheetId,t,i,n,o.rowChanges,o.colChanges,o.cellChanges)}afterCreateDefinedName(e,t,i){return new l2(e,t,i)}afterRemoveDefinedName(e,t,i){return new l3(e,t,i)}afterModifyDefinedName(e){return new l4(e)}afterCreateComment(e){return new lY(e)}afterReplyComment(e){return new lU(e)}afterResolveComment(e){return new lZ(e)}afterReopenComment(e){return new lG(e)}afterEditComment(e){return new lj(e)}afterPasteComment(e){return new lK(e)}afterClearComment(e){return new lX(e)}afterUpdateExternalLinks(e){return new cm(e)}afterRemoveExternalLinks(e){return new cv(e)}afterMoveRow(e,t,i,n){return new l6(e.sheetId,t,i,n)}afterMoveCol(e,t,i,n){return new l8(e.sheetId,t,i,n)}afterMoveFormulaRange(e,t,i,n,o,r,a){return new l7(e.sheetId,t.toArray(),i,n.toArray(),o,r,a)}afterRemoveFormulaRange(e,t,i,n){return new l9(e.sheetId,t.toArray(),i,n)}afterAddInternalLink(e,t){return new ct(e.sheetId,t)}afterUpdateInternalLink(e,t,i){return new ci(e.sheetId,t,i)}afterRemoveInternalLink(e,t){return new cn(e.sheetId,t)}afterGroup(e,t,i,n){return new cr(e.sheetId,t,i,n)}afterUngroup(e,t,i,n){return new ca(e.sheetId,t,i,n)}afterUpdateGroup(e,t,i,n,o){return new cs(e.sheetId,t,i,n,o)}afterSetCollapse(e,t,i,n,o){return new cl(e.sheetId,t,i,n,o)}afterSetWorksheetRtl(e,t){return new cc(e.sheetId,t)}createRule(e){return new ch(e)}updateRule(e,t,i){return new cp(e,t,i)}removeRule(e){return new cf(e.toJSON())}deleteWorksheet(e,t,i,n){return new cZ(e,t,i,n)}undeleteWorksheet(e,t,i,n){return new cj(e,t,i,n)}reorderWorksheet(e,t){return new cq(e,t)}renameWorksheet(e,t,i){return new cK(e,t,i)}setWorksheetHidden(e,t){return new cX(e,t)}setWorksheetColor(e,t,i){return new cQ(e,t,i)}addHistoryTrackingInfo(e){(e instanceof s$||e instanceof s0||e instanceof s1)&&this.addNumberFormatToChanges(e)}addNumberFormatToChanges(e){let t=this.workbook.getSheetById(e.sheetId);t&&e.fillNumberFormats((e,i,n)=>{let o=new Map;for(let r of(i.length=0,n.length=0,e)){let[e,a]=r,s=t.getComputedCellStyle(e,a).getNumberFormat();if(!s||s.isDefault()){i.push(0);continue}let l=s.getIndex(),c=o.get(l);void 0===c&&(c=n.push(s.fc||""),o.set(l,c)),i.push(c)}})}afterPivotCommand(e){return e}}function uK(e,t,i){let n=["font","fill","alignment"],o={font:[],fill:[],alignment:[],border:[],numberFormat:[],quotePrefix:[]};for(let r=0;r<e.font.length;r++)for(let a=0;a<e.font[r].length;a++){let s=r+t,l=a+i;for(let t=0;t<n.length;t++){let i=n[t];e[i][r][a]&&o[i].push([s,l,e[i][r][a]])}e.border[r][a]&&o.border.push([s,l,e.border[r][a].b]),e.numberFormat[r][a]&&o.numberFormat.push([s,l,e.numberFormat[r][a].fc]),e.quotePrefix[r][a]&&o.quotePrefix.push([s,l,e.quotePrefix[r][a]])}return o}function uX(e,t,i){let n=e.getDataModel().collectRangeNote({from:t,to:i},()=>!1),o=[];for(let e=t.row;e<=i.row;e++)for(let r=t.col;r<=i.col;r++){let i=n[e-t.row][r-t.col];i&&o.push([e,r,i])}return o}function uQ(e,t,i){let n=[];for(let o=t.row;o<=i.row;o++)for(let r=t.col;r<=i.col;r++){let t=e.getDataAtCell(o,r);(0,eI.O2)(t)||n.push([o,r,(0,ts.is)(t)?t.toJSON():t])}return n}class u$ extends ui{constructor(e){super(),this.workbook=e,this.commandExecutor=new iE(this.workbook),this.actionAccumulator=new uq(this.workbook)}async asyncInit(e,t){return iz(this.workbook,e,t)}syncInit(e,t){return void 0===t&&(t={}),iY(this.workbook,e,t)}getWorkbook(){return this.workbook}async setCurrent(e){this.workbook.setCurrent(e)}async setReadonly(e){this.workbook.setReadonly(e)}async setCommentable(e){this.workbook.setCommentable(e)}async _execCommand(e){let t;try{t=this.actionAccumulator.accumulate(()=>this.commandExecutor.process(e))}catch(t){let e=this.actionAccumulator.getUndoneActions();this.actionAccumulator.clear();try{for(let t of e.reverse())this.commandExecutor.process(t.getUndoCommand())}catch{}throw t}return t}async _execRemoteCommand(e){this.commandExecutor.process(e)}async *iteratePrintSheet(e){for(let t of e){let e=this.workbook.getSheetById(t.sheetId);e&&(yield[e,t])}}async generateWorksheetContent(e){return this.workbook.generateWorksheetContent(e)}async validateRuleCommand(e,t){return this.workbook.getController().ruleController.validateRuleCommand(e,t)}async checkProtectRefRange(e,t,i,n){return this.workbook.getController().ruleController.checkProtectRefRange(e,t,i,n)}async checkProtectedWorksheets(e,t,i,n){return this.workbook.getController().ruleController.checkProtectedWorksheets(e,t,i,n)}async checkProtectedCoords(e,t,i,n){return this.workbook.getController().ruleController.checkProtectedCoords(e,t,i,n)}async checkProtectedInsertable(e,t,i,n,o){return this.workbook.getController().ruleController.checkProtectedInsertable(e,t,i,n,o)}async checkCommand(e,t,i,n){return this.workbook.getController().ruleController.validateCommand(e,t,i,n)}async checkMergeRangesError(e,t){for(let i of t){let t=await this.checkMergeRangeError(e,i);if(t)return t}return null}async checkMergeRangeError(e,t){let i=this.workbook.getSheetById(e);if(!i)return null;let{from:n,to:o}=t,r=i.getPlugin("synoFreezeBar");return r.fixedRowsTop>n.row&&r.fixedRowsTop<=o.row||r.fixedColumnsLeft>n.col&&r.fixedColumnsLeft<=o.col?aK.MERGE_FREEZED:null}async checkIncompleteMergedCells(e,t){let i=this.workbook.getSheetById(e);return i?.getMergePlugin().containsIncompleteMergedCells(t)??!1}async checkMoveEnable(e,t,i,n,o,r){let a=this.workbook.getSheetById(e);if(a){if("row"===t&&!a.getFilterPlugin().checkMoveEnable(i,n,o,r))return aK.MOVE_FIRST_FILTER;if(!a.getPlugin("synoMergeCell").checkMoveEnable(t,i,n,o))return aK.MOVE_MERGE_CELL}}async checkExistValidation(e,t,i){let n=this.workbook.getSheetById(e);if(!n)return null;let o=n.getValidationPlugin(),r=o.getValidationFromJson(t,i);return r?o.checkExistValid(r):null}async previewFormula(e,t){let i=new eO,n=this.workbook.getFormulaParser().exec(e,{sheetId:t,item:i}).result;return{result:Array.isArray(n)?null:n,nfId:i.nfId,isLink:i.isLink()}}async parseRange(e,t){return this.workbook.getFormulaParser().parseRange(e,{sheetId:t})}async validateFormula(e,t){return this.workbook.getFormulaParser().exec(e,{sheetId:t}).error!==H.Pp.ERROR}async setRenderHeights(e,t){let i=this.workbook.getSheetById(e);i&&i.getPlugin("synoRenderCache").setRenderHeights(t)}async calcRenderRanges(e,t){this.workbook.getPivotTableManager().calcRenderRanges(e,t);let i=this.workbook.getSheetById(e);i&&i.calcRenderRanges(t)}async getSheetDimension(e){let t=this.workbook.getSheetById(e);return t?t.getDimensionStateJSON():{rowCount:0,colCount:0}}async getRangeStyle(e,t,i){let n=this.workbook.getSheetById(e);return n?e_(i.row-t.row+1,i.col-t.col+1,(e,i)=>n.getCellStyle(e+t.row,i+t.col)?.toStyleJSON()??null):[]}async getRangeComputedStyle(e,t,i){let n=this.workbook.getSheetById(e);return e_(i.row-t.row+1,i.col-t.col+1,(e,i)=>(n?n.getDataModel().getComputedCellStyle(e+t.row,i+t.col):this.workbook.getStyleManager().getDefaultStyle()).toStyleJSON())}async getRangeCellByKey(e,t,i,n){let o=this.workbook.getSheetById(e);return o?e_(i.row-t.row+1,i.col-t.col+1,(e,i)=>{let r={},a=e+t.row,s=i+t.col;for(let e of n)switch(e){case"v":{let e=o.getDataAtCell(a,s);r.v=(0,ts.is)(e)?e.toJSON():e;break}case"renderDesc":r.renderDesc=o.getCellTextDesc(a,s).getState();break;case"link":r.link=o.getCellMeta(a,s)?.link?.toJSON();break;case"xf":r.xf=o.getCellModel(a,s)?.getXfId()??null;break;case"formulaValue":r.formulaValue=o.getCellFormulaValue(a,s)}return r}):[]}async getRangeData(e,t,i){let n=this.workbook.getSheetById(e);return n?e_(i.row-t.row+1,i.col-t.col+1,(e,i)=>{let o=n.getDataAtCell(e+t.row,i+t.col);return(0,ts.is)(o)?o.toJSON():o}):[]}async getRangeRenderedTexts(e,t,i){let n=this.workbook.getSheetById(e);return n?e_(i.row-t.row+1,i.col-t.col+1,(e,i)=>n.renderCache.getCellText(e+t.row,i+t.col)):[]}async getRangeHyperlink(e,t,i){let n=this.workbook.getSheetById(e);return e_(i.row-t.row+1,i.col-t.col+1,(e,i)=>n?.getCellMeta(e+t.row,i+t.col)?.link?.toJSON()??null)}async getRangeValidId(e,t,i){let n=this.workbook.getSheetById(e);return e_(i.row-t.row+1,i.col-t.col+1,(e,i)=>n?.getCellMeta(e+t.row,i+t.col)?.validId??null)}async getRowInfo(e){let t=this.workbook.getSheetById(e);return t?.getRowsStateJSON()??[]}async getColInfo(e){let t=this.workbook.getSheetById(e);return t?.getColsStateJSON()??[]}async getActiveFilterData(e){let t=this.workbook.getSheetById(e);if(!t)return null;let i=t.getFilterPlugin(),n=i.filter?.getId(),o=i.filter?.getRange();return n&&o?{id:n,range:o,activeId:i.getActiveId()}:null}async getFilteredRows(e,t,i){let n=this.workbook.getSheetById(e);return n?Array.from({length:i-t+1},(e,i)=>n.isFilteredRow(i+t)):[]}async getAutoFilterRange(e,t){let i=this.workbook.getSheetById(e);if(!i)return t;let n=new eA.GJ(...i.getFilterPlugin().getAutoFilterRange(t.toArray()));return i.getMergePlugin().expandSelection(n),n}async getMergedRange(e,t,i){let n=this.workbook.getSheetById(e);return n?.getMergePlugin().getMergedRange(t,i)}async getMergedOverlap(e,t){let i=this.workbook.getSheetById(e);return t.map(e=>i?.getMergePlugin().getOverlap(e)??[]).flat()}async createListRangeItems(e,t,i,n){let o=this.workbook.getSheetById(e)?.getValidationPlugin().getValidation(t);return o?.createListRangeItems(i,n)??[]}async calculateExternalChanges(e,t){let i=this.getWorkbook();return await i.getExternalManager().calculateChanges(e,t,i)}async calculateEmptyRefExternalChanges(){let e=this.getWorkbook();return e.forAll(e=>{e.sheet.formula.calculateAllImportItem()}),e.getExternalManager().calculateEmptyRefChanges()}async getUnlinkChanges(e){let t=[];return this.getWorkbook().forAll((i,n)=>{let o=i.sheet.formula.getUnlinkChanges(e);o.length>0&&t.push([n,o])}),t}async listExternalLinkIds(){return this.getWorkbook().getExternalManager().listLinkIds()}async getAutofillObject(e,t,i,n,o,r,a){let s=this.workbook.getSheetById(e);if(!s)return null;let l=s.getPlugin("synoAutofill"),c=r?e=>s.isFilteredRow(e):()=>!1;return l.getAutofillObject(t,i,n,c,o,a)}async getCfJSONById(e,t){let i=this.workbook.getSheetById(e);return i?.getPlugin("synoConditionalFormat").findCfJSON(t)}async getCfIndexById(e,t){let i=this.workbook.getSheetById(e);return i?.getPlugin("synoConditionalFormat").findIndexById(t)??-1}async setSearching(e){this.workbook.getCurrentSheet()?.getPlugin("synoSearch").setSearching(e)}async searchAll(e,t){await Promise.all(e.map(async e=>{let i=this.workbook.getSheetById(e);await i?.getPlugin("synoSearch").searchAll(t)}))}async getReplaceChanges(e,t){return this.workbook.getSheetById(e)?.getPlugin("synoSearch").getReplaceChanges(t)??[]}async getRowOrder(e,t,i,n){let o=this.workbook.getSheetById(e);return o?.getPlugin("synoSort").getRowOrder(t,i,n)??null}async getReplaceAllChanges(e,t){return Promise.all(e.map(e=>{let i=this.workbook.getSheetById(e);return i?i.getPlugin("synoSearch").getReplaceAllChanges(t):[e,[]]}))}async getChartPosition(e,t){let i=this.workbook.getSheetById(e);return i?.getDrawingPlugin().getChartById(t)?.position??null}async getImagesJSON(e){let t=this.workbook.getSheetById(e);return t?.getDrawingPlugin().getImagesJSON()??[]}async getMergedCellFormatChanges(e,t,i){let n=this.workbook.getSheetById(e);return n?.getMergedCellFormatChanges(t,i)??{}}async getMergedRangesArray(e){let t=this.workbook.getSheetById(e);return t?t.getMergePlugin().serialize():[]}async getFrozenRowColumn(e){let t=this.workbook.getSheetById(e);if(!t)return{row:0,col:0};let i=t.getPlugin("synoFreezeBar");return{row:i.fixedRowsTop,col:i.fixedColumnsLeft}}async getPivotCache(e){let t=this.workbook.getPivotTableManager().getCacheById(e);return t?t.toJSON():null}async getPivotCacheSource(e){let t=this.workbook.getPivotTableManager().getCacheById(e);if(!t)return null;let{sheetId:i,range:n}=t.getSource();return{sheetId:i,range:n}}async calcPivotCacheContent(e,t,i){await this.workbook.getAsyncCalculator().start();let n=i?this.workbook.getPivotTableManager().getCacheById(i)?.getFields():[];var o=this.workbook,r=n;void 0===r&&(r=[]);let a=aQ(o,e,t);if(!Array.isArray(a))return{cacheContent:null,message:a};let{fields:s,records:l}=aX(a,r);return{cacheContent:{fields:(function(e,t,i){let n=new Map,o=new Map,r=new Map;for(let t of e){let e=t.getName().toLocaleLowerCase(),i=n.get(e)??[];i.push(t),n.set(e,i),r.set(t.getId(),t);let a=t.getGroupSetting(),s=a?.base;if(s&&["datetime","manual"].includes(a?.type)){let e=r.get(s)?.getGroupSetting();if(e?.type!==a?.type)continue;let i=o.get(s)??[];i.push(t),o.set(s,i)}}let a=[];for(let e of t){let t=e.getName().toLocaleLowerCase(),r=n.get(t),s=r?.shift();if(!s)continue;if(e.isFromData()!==s.isFromData()||e.getType()!==s.getType()){e.setGroupSetting(null);continue}let l=e.getGroupSetting();if(!l)continue;if("number"===l.type){let t=aR(e,l.grouping,i);t?(l.items=t.items,l.map=t.map):e.setGroupSetting(null);continue}let c=function(e,t){let i=[],n=new Map(t.map(e=>[e.getId(),e])),o=e;for(;o;)i.push(o),o=n.get(o.getGroupSetting()?.parent??"");return i}(e,o.get(s.getId())??[]);if("datetime"===l.type)for(let t=0;t<c.length;t++){let n=c[t],o=n.getGroupSetting(),r=o?az(e,o.grouping,i):null;if(!o||!r){if(t>0){let e=c[t-1].getGroupSetting();e&&(e.parent=c[t+1]?.getId()??null)}continue}o.map=r.map,o.items=r.items,n!==e&&a.push(n)}else if("manual"===l.type){let t=e.getSharedItems(),i=new Map(t.map(e=>i7(e)).map(e=>[e.toLocaleLowerCase(),e])),n=aI(t),o=[e];for(let e=1;e<c.length;e++){let t=o[o.length-1],r=t.getGroupSetting()?.grouping??n,a=c[e],s=a.getGroupSetting(),l=s?.grouping,d={...r};for(let e in l){let t=i.get(e.toLocaleLowerCase());void 0!==t&&(d[t]=l[e])}let u=aA(d);if(!s||aT(d,r)){let i=e>0?t.getGroupSetting():null;i&&(i.parent=c[e+1]?.getId()??null);continue}let h={...a.getGroupSetting()};h.grouping=d,h.map=d,h.items=u;let p=a.toJSON();p.group=h;let f=new aw(p);o.push(f)}o.length>1?a.push(...o.slice(1)):e.setGroupSetting(null)}}return t.concat(a)})(r,s,o.getLocale().getPivotLocale()).map(e=>e.toJSON()),records:l}}}async getPivotTable(e){let t=this.workbook.getPivotTableManager().getTableById(e);return t?t.toJSON():null}async calcPivotTableContent(e,t,i){return sL(e.map(e=>new aw(e)),t,i&&this.workbook.getPivotTableManager().getTableById(i)||void 0)}async calcPivotTableNewResult(e,t){return this.workbook.getPivotTableManager().calcPivotTableNewResult(e,t)}async checkPivotTableRanges(e,t,i,n,o){let r=this.workbook.getPivotTableManager().checkPivotTableNewRanges(e,t,n),a=await this.checkProtectedRanges(t,i.concat(n),o);return r.concat(a)}async checkProtectedRanges(e,t,i){let n=t.map(t=>new eR({sheetId:e,shName:""},t.from,t.to,eA.Y3.cell).toRange()),o=this.workbook.getController().ruleController.checkProtectRefRange(n,e,i);return o===rg.REJECT?[aK.PROTECTION_REJECT]:o===rg.WARNING?[aK.PROTECTION_WARNING]:[]}async checkPivotTableCommands(e,t){let i,n,o=e=>e.map(e=>"pivot_compound"===e.cmd?o(e.actions):"create_pivot_table"===e.cmd||"update_pivot_table"===e.cmd?e.table.id:e.tableId).flat().filter(eT),r=new Set(o(e));if(1!==r.size)return console.warn("Compound action on multiple pivot tables is not checked."),[];let a=Array.from(r)[0],s=this.workbook.getPivotTableManager().calcPivotTableNewResult(a,e);if(!s)return[];if(s.message)return[s.message];let l=this.workbook.getPivotTableManager().getTableById(a);if(l)i=l.getPartRanges(),n=l.getLocation().sheetId;else{let t=e.find(e=>"create_pivot_table"===e.cmd);if(!t)return[];i=tz(t.table.location),n=t.table.location.sheetId}return this.checkPivotTableRanges(a,n,i,s.ranges,t)}async listAllPivot(){return this.workbook.getPivotTableManager().serialize()}async pickPivot(e){let{tableIds:t,cacheIds:i}=e;return{tables:this.workbook.getPivotTableManager().pickTableJSON(t),caches:this.workbook.getPivotTableManager().pickCacheJSON(i)}}async getTableDetailContent(e,t,i){return this.workbook.getPivotTableManager().getTableDetailContent(e,t,i)}async checkPivotTableConvertMessages(e){return this.workbook.getPivotTableManager().checkConvertMessages(e)}async convertIncompatiblePivotTable(e){return this.workbook.getPivotTableManager().convertIncompatibleTable(e)}async listPivotTableLocations(e){return this.workbook.getPivotTableManager().listPivotTableLocations(e)}async getPivotFieldItemNames(e,t,i){return this.workbook.getPivotTableManager().getPivotFieldItemNames(e,t,i)}async getPivotFieldNames(e){return this.workbook.getPivotTableManager().getPivotFieldNames(e)}async getPivotFieldRemainCount(e){return this.workbook.getPivotTableManager().getPivotFieldRemainCount(e)}async getManualGroupChanges(e,t){let i=this.workbook.getPivotTableManager().getTableById(e);return i?function(e,t){var i,n;if(0===t.length||!e.getField(t[0][0]))return null;let o=e.getBaseField(t[0][0]),{fields:r,levelMaps:a}=e.getGroupMappings(o.getId()),s=a[0],l=new Set,c=0;for(let[i,n]of t){if(!e.getField(i))return null;let t=r.indexOf(i);if(t<0)return null;t>c&&(c=t);let o=a[t],s=!1;for(let e=0;e<o.length;e++)av(o[e],n)&&(s=!0,l.add(e));if(!s)return null}let d=(i=a[c].filter((e,t)=>l.has(t)),n="function"==typeof(n=av)?n:void 0,i&&i.length?(0,ah.Z)(i,void 0,n):[]),u=c+1>=r.length,h=new Set((0,au.Z)(s.length).filter(e=>l.has(e)||d.some(t=>av(t,a[c][e])))),p=e.getNewGroupName(o.getId()),f=e.getUnnamedGroupName();return{fieldId:u?a$(o):r[c+1],childFieldId:r[c],changes:u?(0,au.Z)(s.length).map(e=>[s[e],i5({type:"string",value:h.has(e)?p:f})]):Array.from(h).map(e=>[s[e],i5({type:"string",value:p})])}}(i.getCache(),t):null}async getManualUngroupChanges(e,t){let i=this.workbook.getPivotTableManager().getTableById(e);return i?function(e,t){if(0===t.length)return null;let i=e.getBaseField(t[0][0]),{fields:n,levelMaps:o}=e.getGroupMappings(i.getId()),r=o[0],a=new Set,s=0;for(let[i,r]of t){if(!e.getField(i))continue;let t=n.indexOf(i);if(t<0||(t>s&&(a.clear(),s=t),t<s))continue;let l=o[t],c=!1;for(let e=0;e<l.length;e++)av(l[e],r)&&(c=!0,a.add(e));if(!c)continue}if(0===s){let e=r.map(e=>[e,null]);return n.slice(1).reverse().map(t=>({fieldId:t,changes:e}))}let l=Array.from(a),c=o[s];return l.every(e=>av(r[e],c[e]))?null:[{fieldId:n[s],changes:l.map(e=>[r[e],null])}]}(i.getCache(),t):null}async getNonEmptyNeighborRange(e,t){return this.workbook.getSheetById(e)?.getNonEmptyNeighborRange(t)??null}}function uJ(e,t,i,n){let{locale:o,locale_info:r}=e;return new uZ(new ns(o,r),t,i,n)}function u0(e,t,i,n){let{locale:o,locale_info:r}=e,a=new cW(new ns(o,r),iS,t,i),s=new u$(a);return a.setNotifier(new uo(s,n)),s}function u1(e){let t=0,i=[];if(!e||!e.length)return i;for(;e[t];)i.push(e[t]),t++;return i}if(document.documentElement.classList){let e=function(){let e=document.createElement("div");return e.classList.add("test","test2"),e.classList.contains("test2")}();n=function(e,t){return""!==t&&e.classList.contains(t)},o=function(t,i){let n=0;if("string"==typeof i&&(i=i.split(" ")),i=u1(i),e)t.classList.add(...i);else for(;i&&i[n];)t.classList.add(i[n]),n++},r=function(t,i){let n=0;if("string"==typeof i&&(i=i.split(" ")),i=u1(i),e)t.classList.remove(...i);else for(;i&&i[n];)t.classList.remove(i[n]),n++}}else{let e=function(e){return RegExp("(\\s|^)"+e+"(\\s|$)")};n=function(t,i){return!!t.className.match(e(i))},o=function(t,i){let n=0,o=t.className;if("string"==typeof i&&(i=i.split(" ")),""===o)o=i.join(" ");else for(;i&&i[n];)e(i[n]).test(o)||(o+=" "+i[n]),n++;t.className=o},r=function(t,i){let n=0,o=t.className;for("string"==typeof i&&(i=i.split(" "));i&&i[n];)o=o.replace(e(i[n])," ").trim(),n++;t.className!==o&&(t.className=o)}}function u2(e){let t;for(;t=e.lastChild;)e.removeChild(t)}let u3=!!document.createTextNode("test").textContent;function u4(e){let t=e;for(;t!==document.documentElement;){if(null===t)return!1;if(t.nodeType===Node.DOCUMENT_FRAGMENT_NODE)if(!t.host)return!1;else if(t.host.impl)return u4(t.host.impl);else if(t.host)return u4(t.host);else throw Error("Lost in Web Components world");if("none"===t.style.display)return!1;t=t.parentNode}return!0}let u5={BACKSPACE:8,INSERT:45,DELETE:46,END:35,ENTER:13,ESCAPE:27,HOME:36,PAGE_DOWN:34,PAGE_UP:33,TAB:9,ARROW_RIGHT:39,ARROW_LEFT:37,ARROW_UP:38,ARROW_DOWN:40,F2:113,F4:115,A:65,C:67,S:83,V:86,X:88,Y:89,Z:90};function u6(e){e.isViewEventEnabled=!1}function u8(e){return!1===e.isViewEventEnabled}function u7(e,t,i){void 0===i&&(i="left top");let n=e.style;1===t?(n.transform="",n.transformOrigin=""):(n.transform="scale("+t+")",n.transformOrigin=i)}function u9(e,t){let i=document.createElement("div");return i.className=t,e.appendChild(i),i}function he(e,t){return 3===t.nodeType&&(t=t.parentNode),e.contains(t)}let ht=class{constructor(e){this.editor=e,this.lastRange=null}save(){return this.lastRange=this.getRange(),this.lastRange}restore(){this.lastRange&&this.setRange(this.lastRange)}getSavedRange(){return this.lastRange}getRange(){let e=this._getCurrentRange();if(!e||!this.isSelectionInEditor())return null;let t=this._offsetToPos(e.startContainer,e.startOffset),i=t;return!(e.collapsed||e.startContainer===e.endContainer&&e.startOffset===e.endOffset)&&(i=this._offsetToPos(e.endContainer,e.endOffset))<t&&([t,i]=[i,t]),{start:t,end:i}}setRange(e){let t=document.createRange(),i=this.editor.getEl().lastChild;if(null===i)return;"BR"!==i.tagName&&(i=null);let n=!1,o=!1,{start:r,end:a}=e,s=r===a;function l(e,i){i>=0&&t[n?"setEnd":"setStart"](e,i)}function c(e,t,n,r){let a=(0===t||r<t)&&t<=r+n;if(!(o||a))return!1;if(a&&t===r+n&&!s)return o=!0,!1;if(3===e.nodeType)return l(e,o?0:t-r),!0;if("BR"===e.tagName)if(e===i||o)return l(e.parentNode,Array.prototype.indexOf.call(e.parentNode.childNodes,e)),!0;else o=!0}this.editor.iterateNodes((e,t,i)=>{let s=t.length;if(!n&&c(e,r,s,i)&&(o=!1,n=!0),n&&c(e,a,s,i))return o=!1,!1});let d=window.getSelection();d.removeAllRanges(),d.addRange(t)}_offsetToPos(e,t){let i=0,n=3===e.nodeType,o=e,r=this.editor.getEl();if(!n&&e.childNodes.length>0)if(t<e.childNodes.length)o=e.childNodes[t];else if(e===r)o=null;else{let t=e;for(;t.parentNode!==r&&null===t.nextSibling;)t=t.parentNode;o=t.nextSibling}return o?this.editor.iterateNodes((e,r,a)=>{if(e===o)return i=a+(n?t:0),!1},!0):i=this.editor.getText().length,i}setCaretToLast(){let e=document.createRange(),t=this.editor.getEl(),i=t.lastChild;i?"BR"===i.tagName?e.setStartBefore(i):e.setStartAfter(i):e.setStart(t,0);let n=window.getSelection();n.removeAllRanges(),n.addRange(e)}_getCurrentRange(){let e=window.getSelection();if(0!==e.rangeCount)return e.getRangeAt(0)}getStartContainer(){let e=this._getCurrentRange();return e&&e.startContainer}deleteContents(){let e=this._getCurrentRange();e&&e.deleteContents()}shift(e){this.lastRange&&(this.lastRange.start+=e,this.lastRange.end+=e)}isSelectionInEditor(){let e=this._getCurrentRange();return e&&he(this.editor.getEl(),e.startContainer)&&(e.collapsed||he(this.editor.getEl(),e.endContainer))}toString(){let e=this._getCurrentRange();return e&&e.toString()}};class hi{constructor(){this.range=null,this.input=null}save(e,t){this.range={...e},this.input=t}restore(){this.range&&(this.input?.setSelection(this.range),this.clear())}clear(){this.range=null,this.input=null}hasRange(){return!!this.range&&!!this.input}}class hn{constructor(e,t,i){this.text=e,this.style=t,this.startOffset=i}insert(e,t){this.text=this.text.substr(0,t)+e+this.text.substr(t)}length(){return this.text.length}toNode(e,t,i){let n=document.createElement("span");if(n.innerHTML=(0,i4.htmlEscape)(this.text).replace(/\n/g,"<br>"),!e){let e=this.style||t;e&&hn.renderStyle(n,e,i)}return n}applyStyle(e,t){if(null===e){this.style=null;return}this.style=ha(this.style||t,e)}split(e){let t=this.style?this.style.clone():null,i=new hn(this.text.substr(e),t,this.startOffset+e);return this.text=this.text.substring(0,e),i}static renderStyle(e,t,i){var n,o;let r,a,s;i&&(t=t.clone().assign(i));let l=(r="",(o=n=t).size&&(r+=`font-size:${o.size}pt;`),o.name&&(r+=`font-family:"${o.name}";`),a=r+=`font-weight:${o.bold?"bold":"normal"};font-style:${o.italic?"italic":"normal"};`,n.color&&(a+=`color:#${n.color};`),s="",n.underline||n.strike?(n.underline&&(s+="underline"),n.strike&&(s+=" line-through")):s="none",a+=`text-decoration:${s}`);l&&e.setAttribute("style",l),e._s=t}toJSON(){return{tx:this.text,s:this.style&&this.style.clone()}}}class ho{constructor(e,t){this.texts=[],this.defaultStyle=e,this.overrideStyle=t}syncTo(e){e.texts=this.texts}append(e){this.texts.push(e)}assignRichText(e){let t=0;for(let i=0;i<e.v.length;i++){let n=e.v[i],o=n.s&&n.s.clone();this.append(new hn(n.tx,o,t)),t+=n.tx.length}}_merge(){(0,ts.$4)(this.texts,"text","style")}insert(e,t){if(0===this.texts.length)return void this.append(new hn(e,null,0));let[i]=this._slice(t,t,!0);if(i){i.insert(e,t-i.startOffset);for(let t=this.texts.indexOf(i)+1;t<this.texts.length;t++)this.texts[t].startOffset+=e.length;this._merge()}}getPlainText(){let e="";for(let t=0;t<this.texts.length;t++)e+=this.texts[t].text;return e}getValue(){return this.texts.some(e=>e.style)?new td.Z(this.texts.map(e=>e.toJSON())):this.getPlainText()}toFragment(e){let t=document.createDocumentFragment();for(let i=0;i<this.texts.length;i++)t.appendChild(this.texts[i].toNode(e,this.defaultStyle,this.overrideStyle));return t}parseFontStyle(e,t){let i=t3(e,t);if(!i)return null;let n=new tx.Zx().assign(i);return this.overrideStyle&&(hr(n,this.overrideStyle),n.equals(new tx.Zx))?null:n}setStyle(e,t,i){let n=this._slice(e,t);if(0===n.length)return;let o=n[0],r=this.texts.indexOf(o),a=r+n.length-1;o.startOffset<e&&(n[0]=o.split(e-o.startOffset),this.texts.splice(r+1,0,n[0]),a+=1);let s=n[n.length-1];if(s&&t<s.startOffset+s.length()){let e=s.split(t-s.startOffset);this.texts.splice(a+1,0,e)}for(let e=0;e<n.length;e++)n[e].applyStyle(i,this.defaultStyle);this._merge()}isStyleActive(e,t,i){let n=this._slice(t,i),o=this.defaultStyle||{};return n.length>0&&n.every(t=>!0===(t.style||o)[e])}_slice(e,t,i){let n=[],o=i?0:-1;for(let i=0;i<this.texts.length;i++){let r=this.texts[i];if(r.startOffset>t)break;r.startOffset+r.length()-e+o>=0&&t-r.startOffset+o>=0&&n.push(r)}return n}_last(){return this.texts[this.texts.length-1]}trimTail(){let e=this._last();e&&"\n"===e.text&&(this.texts.length=this.texts.length-1)}getFinalValue(){this._merge();let e=this.getValue();if(!(0,ts.is)(e))return(0,t_.z4)((0,t_.le)(e));let t=(0,ts.kG)(this.defaultStyle.clone()),i=e.v;for(let e=0;e<i.length;e++){let n=i[e];n.tx&&(n.tx=(0,t_.z4)((0,t_.le)(n.tx))),n.s&&this.overrideStyle&&hr(n.s,this.overrideStyle),n.s=ha(t,n.s)}return((0,ts.$4)(i,"tx","s"),1===i.length&&(null===i[0].s||i[0].s.equals(t)))?i[0].tx:e}}function hr(e,t){let i=["bold","italic","underline","strike","color"];for(let n=0;n<i.length;n++){let o=i[n];null!==e[o]&&e[o]===t[o]&&(e[o]=null)}}function ha(e,t){let i=e?e.clone():new tx.Zx;return i.assign(t),(0,ts.kG)(i)}class hs{constructor(e=null){this.context=e||this,this.context.eventListeners||(this.context.eventListeners=[])}addEventListener(e,t,i){if(window.addEventListener&&(this.context.eventListeners.push({element:e,event:t,callback:i}),!this._eventSuspended))return e.addEventListener(t,i,!1),()=>{this.removeEventListener(e,t,i)}}removeEventListener(e,t,i){let n,o=this.context.eventListeners.length;for(;o--;)if((n=this.context.eventListeners[o]).event===t&&n.element===e){if(i&&i!==n.callback)continue;this.context.eventListeners.splice(o,1),n.element.removeEventListener&&n.element.removeEventListener(n.event,n.callback,!1)}}clearEvents(){this._clear(),this.context&&(this.context.eventListeners.length=0)}_clear(){if(this.context)for(let e=0;e<this.context.eventListeners.length;e++){let t=this.context.eventListeners[e];t.element.removeEventListener&&t.element.removeEventListener(t.event,t.callback,!1)}}destroy(){this.clearEvents(),this.context=null}}let hl=class{constructor(e,t){this.textList=null,this.el=this._initEl(),this.eventManager=new hs,this._registerEventListeners(),this.defaultStyle=null,this.overrideStyle=null,this.instance=e,this.selectionSaver=t||new hi}_initEl(){let e=document.createElement("div");return e.spellcheck=!0,e.contentEditable=!0,e}_registerEventListeners(){this.eventManager.addEventListener(this.el,"keydown",e=>this.onKeyDown(e)),this.eventManager.addEventListener(this.el,"paste",e=>this.onPaste(e))}_parse(){this.textList=new ho(this.defaultStyle,this.overrideStyle),this.el.normalize();let e=this._shouldParseStyle();this.iterateNodes((t,i,n)=>{let o=null;e&&t.parentNode!==this.el&&(o=this.textList.parseFontStyle(t.parentNode,e=>this.instance.getUIBridge().validateFontFamily(e))),this.textList.append(new hn(i,o,n))}),this.textList.trimTail()}_shouldParseStyle(){return!0}getValue(){let e=this.getText();return"\n"===e[e.length-1]&&(e=e.substring(0,e.length-1)),e}getText(){let e="";return this.iterateNodes((t,i)=>{e+=i}),e}getSelection(){return new ht(this)}setSelection(e){this.getSelection().setRange(e)}saveSelection(){this.selectionSaver.save(this.getSelection().getRange(),this)}clearSavedSelection(){this.selectionSaver.clear()}restoreSavedSelection(){this.selectionSaver.restore()}iterateNodes(e,t){let i,n=[this.el],o=0;for(;i=n.pop();)if(3===i.nodeType||"BR"===i.tagName){let t=3===i.nodeType?i.nodeValue:"\n";if(!1===e(i,t,o))break;o+=t.length}else{if(t&&!1===e(i,"",o))break;for(let e=i.childNodes.length-1;e>=0;e--)n.push(i.childNodes[e])}}_setContents(e){this.el.innerHTML="",this.el.appendChild(e),this.el.appendChild(document.createElement("br"))}blur(){this.el.blur()}focus(e){this.el.focus(),e||this.getSelection().setCaretToLast()}isFocused(){return document.activeElement===this.el}insertText(e,t){this.isFocused()||this.focus(!0);let i=this.getSelection();i.deleteContents();let n=i.getRange()?.start;if(void 0===n)return;this._parse(),this.textList.insert(e,n);let o=t?n:n+e.length;this.onAfterInsertText(i,o)}onAfterInsertText(){this._renderTextList()}_renderTextList(){this._setContents(this.textList.toFragment())}getEl(){return this.el}onKeyDown(e){13===e.keyCode&&(this.insertText("\n"),e.preventDefault())}onPaste(e){let t=(e.clipboardData||window.clipboardData).getData("Text").replace(/\r\n/g,"\n");e.stopPropagation(),e.preventDefault(),t&&this.insertText(t)}setStyle(e,t){if(t||(t=this.getSelection().getRange()),!t)return!1;let{start:i,end:n}=t;if(i===n)return!1;this.textList.setStyle(i,n,e),this.onAfterSetStyle(t)}onAfterSetStyle(e){this._renderTextList(),this.getSelection().setRange(e)}setDefaultStyle(e){this.defaultStyle=e}setOverrideStyle(e){this.overrideStyle=e}empty(){u2(this.el)}};class hc extends hn{constructor(e,t,i){super(e,null,t),this.cls=i}toNode(){let e=super.toNode();return this.cls&&(e.className=this.cls),e}split(e){let t=new hc(this.text.substr(e),this.startOffset+e);return this.text=this.text.substring(0,e),t}}class hd extends ho{constructor(e,t){super(null,null);let i=e.getWorkbook().getLocale().getLocaleConverter(),n=(0,U.wS)(i.normalize(t));this.setTokenList(n,e,t)}setTokenList(e,t,i){this.tokenList=e,this.fillTexts(t,i)}getTokenList(){return this.tokenList}fillTexts(e,t){this.texts.length=0;let i=0,n=0,o=e.getWorkbook().getLocale().getLocaleConverter(),r=[];this.tokenList.forAllTokens(a=>{let s=t?t.slice(i,i+a.getText().length):o.localizeToken(a,r),l=new hc(s,i,"formula-text");i+=s.length,(a.isRange()||a.isVariable()&&eR.create(a.getValue(),e))&&(n=n%8+1,l.cls+=` formula-range-${n}`),this.texts.push(l)})}}let hu=class{constructor(e){this.limit=e,this.stack=[],this.index=-1}undo(e){let t=this.index-1,i=this.stack[t];i&&(this.index=t,e(i))}redo(e){let t=this.index+1,i=this.stack[t];i&&(this.index=t,e(i))}add(e){this.stack.length>this.index+1&&(this.stack.length=this.index+1),this.stack.length>=this.limit&&this.stack.shift(),this.index++,this.stack.push(e)}clear(){this.stack.length=0,this.index=-1}};var hh=i(56084);let hp=new hu(100);class hf extends hl{constructor(e,t,i){super(e,i),this.pair=t||null,this.isActive=!1,this.keydownStatus=null,this.isFullEditMode=!1,this.formulaMenu=null,this.validMenu=null,this._saveStateAfterInput=(0,hh.Z)(this._saveState.bind(this),400),this.formulaTip=null,this._initInputMode(),(0,ua.watch)(this.instance.cellEditorData.direction,e=>{this._setDirection(e)}),(0,ua.watch)(this.instance.cellEditorData.isFormulaMode,()=>{this.setSpellCheck()})}get isFormulaMode(){return this.instance.cellEditorData.isFormulaMode.value}set isFormulaMode(e){this.instance.cellEditorData.setFormulaMode(e)}updateKeydownStatus(){this.keydownStatus={textSelection:null};let e=null;this.isFormulaMode&&(e=this.getSelection().getRange())&&(this.keydownStatus.textSelection={...e})}clearKeydownStatus(){this.keydownStatus=null}_initEl(){let e=super._initEl();return o(e,["selectabletext","synoInput","syno-sh-editor-comp"]),e}_renderTextList(){this._render(),this._syncPair()}focus(e){super.focus(e),e||(this.onPositionChange(),this.onUserChangeSelection())}_initInputMode(){this._setInputMode("none")}_syncPair(){this.pair&&(this.pair.textList?this.textList.syncTo(this.pair.textList):this.pair.textList=this.textList,this.pair._render())}_render(){this._setContents(this.textList.toFragment())}_parse(){super._parse(),this.textList=this._transformIfFormula(this.textList),this._updateDirection()}_transformIfFormula(e){let t=e.texts[0];if(this.isFormulaMode=!!(t&&(0,t_.jr)(t.text)),this.isFormulaMode)return new hd(this.instance.sheet,e.getPlainText());if(e instanceof hd){let t=e.getPlainText();(e=new ho(this.defaultStyle,this.overrideStyle)).append(new hn(t,null,0))}return e}_updateDirection(){this.instance.cellEditorData.triggerAutoUpdateDir(this.textList.getPlainText())}_shouldParseStyle(){let e=!1;return this.iterateNodes((t,i)=>(e=(0,t_.jr)(i),!1)),!e}_registerEventListeners(){super._registerEventListeners();let{eventManager:e,el:t}=this;e.addEventListener(t,"compositionstart",e=>{this.isIMEComposition=!0,this._notifyInputStart()}),e.addEventListener(t,"compositionend",()=>{this.isIMEComposition=!1,this.isActive&&((0,c9.isFirefox)()&&this.onInput(),this._onTextChanged(this.getSelection(),this.isFormulaMode,{forceRender:!0}))}),e.addEventListener(t,"cut",e=>this.onCut(e)),e.addEventListener(t,"copy",e=>this.onCopy(e)),e.addEventListener(t,"keyup",e=>this.onKeyUp(e)),e.addEventListener(t,"input",e=>{e.inputType.startsWith("insert")&&this._notifyInputStart(),this.onInput()}),e.addEventListener(t,"mouseup",()=>this.onMouseUp()),e.addEventListener(t,"click",e=>this.onClick(e)),e.addEventListener(t,"wheel",e=>e.stopPropagation()),e.addEventListener(t,"focusout",e=>this.onFocusOut(e)),e.addEventListener(t,"focusin",()=>this.onFocusIn()),e.addEventListener(document,"selectionchange",()=>this.onPositionChange()),e.addEventListener(t,"contextmenu",e=>{this.isActive&&e.stopPropagation()})}_notifyInputStart(){this.isActive||this.instance.runHooks("inputStart")}_handleNumpadDecimalKeyDown(e){if(110===e.keyCode&&!e.shiftKey&&!e.altKey&&!e.ctrlKey&&!e.metaKey){let t=this.instance.sheet.getWorkbook().getLocale().getData().dec_sym;if("."!==t)return this._notifyInputStart(),this.insertText(t),e.preventDefault(),!0}return!1}onKeyDown(e){if(this._handleNumpadDecimalKeyDown(e)||!this.isActive)return;null===this.keydownStatus&&this.updateKeydownStatus(),this.instance.runHooks("onInputKeyDown",this,e);let t=e.shiftKey,i=e.altKey,n=(e.ctrlKey||e.metaKey)&&!i,o=this._getFormulaMenu();switch(e.keyCode){case 17:case 224:case 91:case 93:e.stopPropagation();return;case u5.BACKSPACE:case u5.DELETE:case u5.HOME:case u5.END:e.stopPropagation();break;case u5.ARROW_UP:if(o.isExpanded()&&o.hasSelectableFormulas())o.selectPrev(),e.preventDefault();else if(this.validMenu&&this.validMenu.isVisible())this.validMenu.onUp(e),e.preventDefault();else{if(!this.isFullEditMode&&!this.isFormulaMode)return;o.isExpanded()&&o.collapse(),this.onMoveKey({row:-1,col:0},e)}e.stopPropagation();break;case u5.ARROW_DOWN:if(o.isExpanded()&&o.hasSelectableFormulas())o.selectNext(),e.preventDefault();else if(this.validMenu&&this.validMenu.isVisible())this.validMenu.onDown(e),e.preventDefault();else{if(!this.isFullEditMode&&!this.isFormulaMode)return;o.isExpanded()&&o.collapse(),this.onMoveKey({row:1,col:0},e)}e.stopPropagation();break;case u5.ARROW_LEFT:if(!this.isFullEditMode&&!this.isFormulaMode)return;o.isExpanded()?o.hasSelectableFormulas()||(o.collapse(),this.onMoveKey({row:0,col:-1},e)):this.onMoveKey({row:0,col:-1},e),e.stopPropagation();break;case u5.ARROW_RIGHT:if(!this.isFullEditMode&&!this.isFormulaMode)return;o.isExpanded()?o.hasSelectableFormulas()||(o.collapse(),this.onMoveKey({row:0,col:1},e)):this.onMoveKey({row:0,col:1},e),e.stopPropagation();break;case u5.ENTER:n||i?(this.insertText("\n"),e.stopPropagation()):o.isExpanded()?(o.select(),e.stopPropagation()):this.validMenu&&this.validMenu.isVisible()&&this.validMenu.activeItem?(this.validMenu.onEnter(e),e.stopPropagation()):this.onInput(),this.clearKeydownStatus(),e.preventDefault();break;case u5.TAB:!n&&!i&&o.isExpanded()&&(o.select(),e.stopPropagation(),e.preventDefault()),this.clearKeydownStatus();break;case u5.ESCAPE:o.isExpanded()&&(o.collapse(),e.stopPropagation()),this.clearKeydownStatus();break;case u5.A:case u5.X:case u5.C:case u5.V:n&&e.stopPropagation(),n&&e.keyCode===u5.A||this.clearKeydownStatus();break;case u5.S:n&&e.preventDefault();break;case u5.Y:case u5.Z:n&&(hp[e.keyCode!==u5.Z||t?"redo":"undo"](e=>this._restoreState(e)),this.clearKeydownStatus(),e.stopPropagation(),e.preventDefault());break;case u5.F4:this.isFormulaMode&&(this._changeRefMode(),e.stopPropagation())}}onInput(){if(!this.isActive)return;let e=this.textList,t=this.isFormulaMode,i=this._getPlainText();this._parse(),e&&this.textList.getPlainText()===i||(this._onTextChanged(this.getSelection(),t),this.clearKeydownStatus())}onKeyUp(){if(!this.isActive||!this.keydownStatus)return;let{textSelection:e}=this.keydownStatus,t=this.getSelection().getRange();t&&(t.start!==e?.start||t.end!==e?.end)&&this.onUserChangeSelection(),this.clearKeydownStatus()}onAfterInsertText(e,t){this.textList=this._transformIfFormula(this.textList),this._updateDirection(),this._onTextChanged(e,this.isFormulaMode,{forceRender:!0,ignoreCaret:!0,selectionRange:{start:t,end:t}})}_onTextChanged(e,t,i){if(this.isIMEComposition)return void this._syncPair();let{forceRender:n,ignoreCaret:o,skipUndoStack:r,selectionRange:a}=i||{},s=this.isFormulaMode,l=t!==s;(s||l||n)&&(o||e.save(),this._renderTextList(),o||e.restore()),a&&e.setRange(a);let c=this.getTokenList();if(s){let{start:t}=e.getSavedRange()||e.getRange();this._updateFormulaTips(c,t,!0),this.instance.runHooks("afterFormatFormula",c,t)}else this._syncPair(),this._getFormulaMenu().collapse();this._notifyFormulaPreview(c),l&&(this.setSpellCheck(),this.instance.runHooks("formulaModeChange",s)),(s||l)&&this.instance.fastRender(),r||this._saveStateAfterInput(e.getSavedRange()||e.getRange()),this.instance.runHooks("inputTextChanged",this.textList.getPlainText())}renderByTokenList(e){void 0===e&&(e=null);let t=this.getTokenList();t&&(this.textList.fillTexts(this.instance.sheet),this._renderTextList(),this.clearKeydownStatus(),this._notifyFormulaPreview(t),null!==e&&this.getSelection().setRange("number"==typeof e?{start:e,end:e}:e))}onClick(e){this.onUserChangeSelection(),this.instance.runHooks("onInputClicked",this,e),e.stopPropagation()}onMouseUp(){this.onUserChangeSelection()}onMoveKey(e,t){this.instance.runHooks("onInputMoveKey",this,e,t),this.instance.fastRender()}onFocusOut(e){this.instance.cellEditorData.setFocusState(!1),(!(0,c9.isSafari)()||this.getSelection().isSelectionInEditor())&&(e.relatedTarget?.classList.contains("synoInput")?this.clearSavedSelection():this.saveSelection())}onFocusIn(){this.instance.cellEditorData.setFocusState(!0),this.isActive&&this.restoreSavedSelection()}onPositionChange(){let e=this.getSelection();if(this.isActive&&e.isSelectionInEditor())if(this.isFormulaMode){let{start:t}=e.getSavedRange()||e.getRange(),i=this.getTokenList();this._setParentheses(i,t)}else this._updateToolbarStatus(e)}onUserChangeSelection(){let e=this.getSelection();if(!this.isActive||!e.isSelectionInEditor()||!this.isFormulaMode)return;let{start:t}=e.getSavedRange()||e.getRange(),i=this.getTokenList();this._updateFormulaTips(i,t,!1),this.instance.runHooks("afterUserChangedInputPosition",i,t)}_updateToolbarStatus(e){let t=e.getStartContainer(),i=t&&3===t.nodeType?t.parentNode:t,n=i&&i._s||this.defaultStyle;n&&this.instance.getUIBridge().editor.onTextSelectionChange(n)}_setParentheses(e,t){var i,n,a;let s="syno-o-sh-formula-match-paren",l=this.el.getElementsByClassName(s);for(let e=l.length-1;e>=0;e--)i=l[e],r(i,s);if(!e)return;let c=e.getTokenByPos(t),d=c&&c.token;if(!d||!d.isParenthesis()||!d.getPair())return;let u=d.getPair();n=this._getSpanAtPosition(c.pos+d.getText().length),o(n,s),a=this._getSpanAtPosition(e.getPosByToken(u)+u.getText().length),o(a,s)}_getSpanAtPosition(e){let t=null;return this.iterateNodes((i,n,o)=>{if(o<e&&e<=o+n.length)return t=i,!1}),t&&3===t.nodeType?t.parentNode:t}_isFixedEditor(){return!1}_updateFormulaTips(e,t,i){void 0===i&&(i=!1);let n=0,o=[],r=null;if(!e)return;e.forAllTokens((e,i,a)=>{if(e.isLeftParenthesis()){n++;let e=(0,eG.Z)(o);e&&e.depth+1===n&&e.argsCount++}else if(e.isRightParenthesis())n--,(0,eG.Z)(o)&&(0,eG.Z)(o).depth===n&&o.pop();else if(e.isFunction())o.push({token:e,depth:n,argsCount:-1});else if(e.isComma()){let e=(0,eG.Z)(o);e&&e.depth+1===n&&e.argsCount++}if(i<t&&t<=i+e.getText().length)return r={token:e,depth:n},!1});let a=(0,eG.Z)(o),s=r&&r.token,l=this._getFormulaMenu();s?.getText()==="="&&1===t&&1===e.size()?l.showAiItem()?l.align(this.getEl()):l.collapse():(s?.isFunction()||s?.isVariable())&&i?(l.query(s.getText()),l.align(this.getEl())):l.collapse();let c=this.getFormulaTip();if(a&&r&&!l.isExpanded()){let e=a.token.getText();c.setState(e,a.argsCount),c.align(this.getEl(),this._isFixedEditor())}else c.collapse()}_changeRefMode(){let e,t,i,n,{start:o,end:r}=this.getSelection().getRange(),a=this.getTokenList(),s=this._getPlainText().length,l=0;for(let s of a.flatten()){let a=l,c=l+s.getText().length;if(l=c,a<=o&&o<=c&&(e={token:s,offset:o-a}),a<=r&&r<=c&&(t={token:s,offset:r-a}),a<=r&&c>=o&&s.isRange()){let o=H.P6.changeRefMode(s.getValue());s.setValue(o),i??=s,n=s,s===e?.token&&(e.offset=Math.min(e.offset,e.token.getText().length)),s===t?.token&&(t.offset=Math.min(t.offset,t.token.getText().length))}if(l>r)break}if(!i||!n||!e||!t)return;let c={start:Math.min(a.getPosByToken(i),a.getPosByToken(e.token)+e.offset),end:Math.max(a.getPosByToken(n)+n.getText().length,a.getPosByToken(t.token)+t.offset)};o===r&&r===s&&(c.start=c.end),this.renderByTokenList(c)}_notifyFormulaPreview(e){this.instance.runHooks("afterRefreshTokens",e,this)}_saveState(e){hp.add({range:e,value:this.textList?this.textList.getValue():""})}_restoreState(e){let{range:t,value:i}=e,n=this.getSelection();this._setValue(i),this._onTextChanged(n,this.isFormulaMode,{skipUndoStack:!0,ignoreCaret:!0,forceRender:!0,selectionRange:t}),t||n.setCaretToLast()}insertFormulaText(e){let t=this.getSelection(),i=this.getTokenList();if(!i)return;t.save();let n=i.insertFormulaText(e,t.getSavedRange().start);this.textList.setTokenList(i,this.instance.sheet),t.shift(n),this._onTextChanged(t,this.isFormulaMode,{ignoreCaret:!0}),t.restore()}_getFormulaMenu(){return this.formulaMenu}setFormulaMenu(e){this.formulaMenu=e}closeFormulaMenu(){this._getFormulaMenu().collapse()}setValidMenu(e){this.validMenu=e}_setActive(e){this.isActive=e}setFullEditMode(e){this.isFullEditMode=e}setReadonly(e){var t,i;this.el.contentEditable=!e;let n="readonly";e?(t=this.el,o(t,n)):(i=this.el,r(i,n))}createPair(){return this.pair||(this.pair=new hg(this.instance,this,this.selectionSaver))}setFormulaTip(e){this.formulaTip=e}getFormulaTip(){return this.formulaTip}setSpellCheck(){this.el.spellcheck=!this.isFormulaMode}_setInputMode(e){this.el.inputMode=e}_setDirection(e){this.el.dir=e}onOpen(e){"input"!==e&&this._setInputMode(""),this.clearSavedSelection(),this._setActive(!0),this.instance.cellEditorData.setOpenState(!0),this.updateKeydownStatus(),this.setSpellCheck(),this._saveState(null)}onClose(){this._setInputMode("none"),this.clearSavedSelection(),this._setActive(!1),this.instance.cellEditorData.setOpenState(!1),this.textList=null,this.isFormulaMode=!1,this.setFullEditMode(!1),this.setDefaultStyle(null),this.setOverrideStyle(null),this.getFormulaTip().collapse(),this._getFormulaMenu().collapse(),hp.clear(),this.empty()}onAfterSetStyle(e){super.onAfterSetStyle(e),this._saveState(e)}_setValue(e){let t=new ho(this.defaultStyle,this.overrideStyle);(0,ts.is)(e)?t.assignRichText(e):t.append(new hn(P(e),null,0)),this.textList=this._transformIfFormula(t),this._updateDirection()}setValue(e,t){void 0===t&&(t=!1),this._setValue(e),t&&this._syncPair(),this._render()}getValue(){return this.textList?this.textList.getFinalValue():super.getValue()}_getPlainText(){return this.textList?this.textList.getPlainText():super.getValue()}getTokenList(){return this.textList&&this.textList.tokenList}setStyle(e,t){this.isFormulaMode||super.setStyle(e,t)}toggleStyle(e,t){if(!(t=t||this.getSelection().getRange())||!this.textList)return!1;let i=!this.textList.isStyleActive(e,t.start,t.end);return this.setStyle({[e]:i},t),i}destroy(){this.eventManager.destroy()}onCopy(e){this.instance.getPlugin("synoCopyPaste").reset(),e.stopPropagation()}onCut(e){this.instance.getPlugin("synoCopyPaste").reset(),e.stopPropagation()}}class hg extends hf{constructor(e,t,i){super(e,t,i),this._setActive(!0),this.setFullEditMode(!0)}_initInputMode(){this._setInputMode("")}_render(){this._setContents(this.textList.toFragment(!0))}_shouldParseStyle(){return!1}getFormulaTip(){return this.pair.getFormulaTip()}_getFormulaMenu(){return this.pair._getFormulaMenu()}setStyle(e,t){(t=t||this.getSelection().getRange())&&this.pair.setStyle(e,t)}_isFixedEditor(){return!0}onCopy(e){super.onCopy(e),e.preventDefault(),(e.clipboardData||window.clipboardData).setData("Text",this.getSelection().toString())}onCut(e){this.onCopy(e),this.getSelection().deleteContents(),setTimeout(()=>this.onInput(),0)}}class hm{constructor(e){this.instance=e,this.createElements(),this.enabled=!0}createElements(){var e;this.panel=document.createElement("div"),this.instance.rootElement.appendChild(this.panel),e=this.panel,o(e,"editor-tooltip"),this.hide()}show(){this.enabled&&(this.panel.style.display="block")}hide(){this.panel.style.display="none"}setValue(e){this.panel.textContent=e}showAboveEditor(e,t){let i=this.instance.view.getCanvasBound(),n=i.y+2-30,o=i.x;this.panel.style.top=`${e+n}px`,this.panel.style.left=`${t+o}px`,this.show()}isVisible(){return"block"===this.panel.style.display}}class hv extends hm{createElements(){var e;super.createElements(),e=this.panel,o(e,"formula-preview")}showAboveInput(){this.panel.style.top="55px",this.panel.style.left="110px",this.show()}setEnable(e){this.enabled=e,this.enabled||this.hide()}isEnabled(){return this.enabled}setArrow(e){var t,i;e?(t=this.panel,o(t,"tooltip-arrow")):(i=this.panel,r(i,"tooltip-arrow"))}}class hb extends hm{createElements(){var e;super.createElements(),e=this.panel,o(e,"editor-location")}getWidth(){let e=this.panel.offsetWidth;return e>0?e+4:e}}class hy{constructor(e){this.instance=e,this.range=new eA.GJ(0,0,0,0),this.sheetId=null,this._opened=!1,this._refreshDeferred=!1,this.input=new hf(this.instance),this.inputHolder=this._createElements(),this._bindEvents(),this.locator=new hb(this.instance),this.preview=new hv(this.instance),this.originalValue=null,this.originalEditorValue="",this.nf=null,this.isLink=null,this.pivotMeta=null,this.sizeCssText="",this.cellCssText="",this.waitingRenderFn=null,this.hide()}_createElements(){let e=document.createElement("div");o(e,"syno-o-sh-editor-holder");let t=e.style;return t.top="0",t.left="0",e.appendChild(this.input.getEl()),this.instance.rootElement.appendChild(e),e}getValue(){return this.input.getValue()}setValue(e,t){let{syncPair:i,caretPosition:n}=void 0===t?{}:t;this.input.setValue(e,i),void 0!==n&&this.input===this.getActiveInput()&&this.input.onAfterInsertText(this.input.getSelection(),n)}insertText(e,t){this.input.insertText(e,t)}getInputPair(){return this.input.createPair()}getCellStyleCssText(e,t){let i=this.instance.sheet;if(!i)return"";let n=i.getCellProperty(e,t,"cfStyle")??{},o=this._getCellStyle(),r=o.getFont();return`background-color:#${n.bgColor||o.getFill().bg||"fff"};font-size:${r.size||10}pt;;font-family:"${r.name||"Arial"}";;color:#${n.color||r.color||"000000"};font-weight:${n.bold||r.bold?"bold":"normal"};font-style:${n.italic||r.italic?"italic":"normal"};`}_open(e,t){this._opened=!0;let{row:i,col:n}=this.range.from;this.cellCssText=this.getCellStyleCssText(i,n),this.deferRefreshDimensions(),this.input.onOpen(t),this.instance.runHooks("openEditor",i,n,e,t),!1!==e&&this.focus("tail"!==e)}close(){this.hide(),this.input.onClose(),this.preview.hide(),this.locator.hide();let e=this.input.getEl().style;e.minWidth="",e.maxWidth="",this._hideDatePicker(),this.originalValue=null,this.originalEditorValue="",this.pivotMeta=null,this.isLink=null,this.nf=null,this.instance.runHooks("closeEditor"),this.instance.fastRender()}focus(e){this.input.focus(e)}_refreshDimensions(){if(!this.isOpened())return;let e=this.instance.view,{from:{row:t,col:i}}=this.range,n=e.getCellEditBound(t,i);if(!n)return;let{x:o,y:r,width:a,height:s}=n;e.isRtl()?o=e.getViewWidth()-o-a+dt:o-=1,r-=1,a+=1,s+=1;let l=e.getViewHeight(),c=e.getViewWidth();this.inputHolder.style.top=r+"px",this.inputHolder.style.left=`${o}px`;let d=e.viewport.getZoomLevel();s/=d,a=a/d-10;let u=Math.max(l-r-2,23)/d,h=(c-o-9)/d;this.inputHolder.style.display="block",this.sizeCssText=["min-height:"+Math.min(s,u)+"px","max-height:"+u+"px","min-width:"+Math.min(a,h)+"px","max-width:"+h+"px"].join(";"),this.updateEditorStyle(this.instance.cellEditorData.isFormulaMode.value)}setZoomLevel(e){u7(this.inputHolder,e)}updateEditorStyle(e){let t=this.input.getEl(),i=this.cellCssText||"",n=this.sizeCssText||"";e?t.style.cssText=n:t.style.cssText=[n,i].join(";")}async updateFormulaPreview(e,t){if(!e||!this.preview.enabled||!this.sheetId)return void this.preview.hide();let i=(0,eI.mi)(e.getText()).substr(1),{result:n,nfId:o,isLink:r}=await this.instance.getDataBridge().previewFormula(i,this.sheetId);(0,eI.O2)(n)||r?this.preview.hide():this.showFormulaPreview(n,o,t)}deferRefreshDimensions(){this._refreshDeferred=!0}showFormulaPreview(e,t,i){let n="General",o=this.instance.getDataBridge().getWorkbook();this.nf&&!(0,t_.P6)(this.nf.fc)?n=this.nf.fc:t&&(n=(0,eI.fJ)(o,t));let r=o.getLocale().getSSF();this.preview.setValue(r.render(n,e)),this.refreshPreview(i)}getActiveInput(){return this.input.pair&&document.activeElement===this.input.pair.getEl()?this.input.pair:this.input}showEditorLocation(){this.refreshLocator(),this.preview.isVisible()&&this.refreshPreview(this.getActiveInput())}refreshLocator(){let e=this.instance.getDataBridge().getWorkbook(),t=new eR(this.sheetId&&this.isCrossSheet()?{sheetId:this.sheetId,shName:e.getNameById(this.sheetId)??""}:null,this.range.from,this.range.to,this.range.type).toLabel();this.locator.setValue(t);let{offsetTop:i,offsetLeft:n}=this.inputHolder;this.locator.showAboveEditor(i,n)}refreshPreview(e){let{offsetTop:t,offsetLeft:i}=this.inputHolder;e===this.input?(this.preview.setArrow(!this.locator.isVisible()),this.preview.showAboveEditor(t,i+this.locator.getWidth())):(this.preview.setArrow(!0),this.preview.showAboveInput())}_bindEvents(){if(this.instance.addHook("afterScroll",()=>{this.isOpened()&&this.showEditorLocation()}),this.instance.addHook("afterRender",()=>{this._refreshDeferred&&(this._refreshDeferred=!1,this._refreshDimensions()),this.waitingRenderFn&&this.waitingRenderFn()}),this.instance.addHook("formulaModeChange",e=>{this.updateEditorStyle(e),e||this.preview.hide()}),this.instance.addHook("afterRefreshTokens",(e,t)=>{this.updateFormulaPreview(e,t)}),this.instance.addHook("afterShowSheet",()=>{this.isOpened()&&this.showEditorLocation()}),this.instance.addHook("onInputClicked",e=>{this.preview.isVisible()&&this.refreshPreview(e)}),this.instance.addHook("onInputKeyDown",()=>{this._hideDatePicker()}),this.instance.addHook("onTargetMouseDown",e=>{this.inputHolder.contains(e.target)&&u6(e)}),(0,c9.isTouchSupported)()){let e=e=>e.stopPropagation();this.inputHolder.addEventListener("touchstart",e),this.inputHolder.addEventListener("touchmove",e),this.inputHolder.addEventListener("touchend",e),this.inputHolder.addEventListener("touchcancel",e)}}_getCellStyle(){let e=this.instance.sheet;return e?e.getComputedCellStyle(this.range.from.row,this.range.from.col):this.instance.getDataBridge().getWorkbook().getStyleManager().getDefaultStyle()}_getCfFont(){let e=this.instance.sheet;if(!e)return null;let{row:t,col:i}=this.range.from,n=e.getCellProperty(t,i,"cfStyle");return n?new tx.Zx().assign(n).toJSON():null}updateEditorCell(e){this.range=this.instance.getPlugin("synoMergeCell")?.expandCoords(e)??new eA.GJ(e.row,e.col,e.row,e.col)}isOpened(){return this._opened}beginEditing(e,t,i,n){let o=this.instance.sheet;if(!o)return;let r=this.instance.getUIBridge().getUserInfo();o.getWorkbook().isCellEditable(e.row,e.col,r)?this._beginEditing(e,t,i,n):setTimeout(()=>this.input.empty(),0)}_beginEditing(e,t,i,n){if(this.isOpened())return;let o=this.instance.sheet;this.sheetId=o.sheetId,this.updateEditorCell(e);let{row:r,col:a}=this.range.from;this.originalValue=o.getDataAtCell(r,a)??null;let s=o.getCellProperty(r,a,"pivot");this.pivotMeta=s?.edit!=null?s:null;let l=(0,tq.lk)(o,r,a,null===t?this.originalValue:t);this.originalEditorValue=l,this.nf=this._getCellStyle().getNumberFormat();let c=this._getCellStyle().getFont().clone();this.isLink=!!o.getCellTextDesc(r,a)?.l,this.isLink&&c.assign({underline:!0,color:c.color?void 0:tu.Z.HYPER_LINK_COLOR}),this.input.setDefaultStyle(c),this.input.setOverrideStyle(this._getCfFont()),(""!==l||"top"===n)&&this.setValue(l),this.instance.scrollToRange(r,a,r,a,!1),this._open(i,n),this.instance.render(),"mouse"===n&&this.nf.isDate()&&!this.pivotMeta&&(this._showDatePicker(l),setTimeout(()=>this.input.focus(),100));let d=o.getCellFormulaItemState(r,a);!d||(0,eI.O2)(d.previewValue)||d.href||this.showFormulaPreview(d.previewValue,d.nfId,"top"===n?this.input.pair:this.input)}getChanges(e){if(!e&&this.sheetId){let e=this.getValue(),{row:t,col:i}=this.range.from;if((0,eI.LN)(e,this.originalEditorValue)){let n=(0,ts.is)(e)?e.getText():e,o=(0,eI.mi)(n);return o!==n&&(e=o),[[t,i,e]]}}return[]}async finishEditing(e){if(void 0===e&&(e=!1),!this.isOpened())return;let t=this.sheetId,{row:i,col:n}=this.range.from,o=this.getChanges(e);if(o.length>0&&t){if(this.pivotMeta){let e=(0,ts.is)(o[0][2])?o[0][2].getText():`${o[0][2]}`;await this.instance.pivotTableView.setPivotCellValue(i,n,e)}else{let e=(0,tq.If)(o[0][2]);if(e)await this.instance.getAction().applyLink(t,i,n,e.display,e.location);else{if(this.isLink&&(0,ts.is)(o[0][2])&&1===o[0][2].v.length){let e=o[0][2].v[0];e.s&&(e.s.underline=null,e.s.color===tu.Z.HYPER_LINK_COLOR&&(e.s.color=null))}await this.instance.getAction().setValues(t,o,tL.Edit)}}await this.waitForRenderReady(t,i,n,this.originalValue)}this.close(),this._opened=!1,t&&this.instance.getUIBridge().onFinishEditing(t,e)}async waitForRenderReady(e,t,i,n){if(this.waitingRenderFn)return;let o=this.instance,r=new Promise(r=>{this.waitingRenderFn=()=>{o.sheetId===e&&(0,eI.LN)(o.sheet?.getDataAtCell(t,i),n)&&(this.waitingRenderFn=null,r())}});await Promise.race([r,new Promise(e=>{window.setTimeout(e,50)})]),this.waitingRenderFn=null}isCrossSheet(){return this.instance.sheetId!==this.sheetId}hide(){this.inputHolder.style.top="-9999px",this.inputHolder.style.left="-9999px"}_showDatePicker(e){let t=this.instance.view,{from:{row:i,col:n},to:{row:o,col:r}}=this.range,{x:a,y:s,height:l}=t.getRangeBound(i,n,o,r);this.instance.getUIBridge().editor.datePicker.show([a,s+l],e)}_hideDatePicker(){this.instance.getUIBridge().editor.datePicker.hide()}enableFullEditMode(){this.input.setFullEditMode(!0)}setValidMenu(e){this.input.setValidMenu(e)}destroy(){this.input.destroy()}getRange(){return this.range}}class hw{constructor(e){this.instance=e,this.activeEditor=new hy(e),this.delayPageChange=null,this._onKeyDownRef=this._onKeyDown.bind(this),this._bindEvents()}_bindEvents(){let e=this.instance;e.rootElement.addEventListener("keydown",this._onKeyDownRef),e.rootElement.addEventListener("contextmenu",this._onContextMenuRef=t=>{t.preventDefault(),t.stopPropagation();let i=t.pageX<=0&&t.pageY<=0,n=e.view.getCoordFromEvent(t);!i&&(n.row<-1||n.col<-1)?e.runHooks("afterOnGroupContextMenu",t,n):e.runHooks("triggerContextMenu",t,i)}),e.addHook("afterOnCellDblClick",(e,t)=>{t.row>=0&&t.col>=0&&(this._openEditor(t,null,"tail","mouse"),this.activeEditor.enableFullEditMode())}),e.addHook("afterScroll",()=>{let e=this.delayPageChange;if(e){let t=this.instance.view,i=t.getFirstVisibleRow(),n=t.getLastVisibleRow(),o=Math.min(i+e.rowOffset,n);this._rangeModifier(o,e.col,e.shiftKey),this.delayPageChange=null}}),this.instance.addHook("inputStart",()=>{this.isEditorOpened()||this._openEditor(null,"",!1,"input")})}destroy(){this.instance.rootElement.removeEventListener("keydown",this._onKeyDownRef),this.instance.rootElement.removeEventListener("contextmenu",this._onContextMenuRef),this.activeEditor.destroy()}_getSelections(){return this.instance.selections.multiSelections}_isMultipleSelection(){let e=this._getSelections();return e.getLength()>1||e.isMultiple()}_onNav(e){let t=this._getSelections();this._isMultipleSelection()?(t.nextHighlight(e),this.instance.fastRender()):this._moveSelection("down"===e?1:"up"===e?-1:0,"right"===e?1:"left"===e?-1:0,!1)}_moveSelection(e,t,i){let n=this._getSelections();i?n.transformEnd(e,t):(n.removeRedundantSel(),n.transformStart(e,t)),n.finishSelect(),this.instance.fastRender()}_rangeModifier(e,t,i){let n={row:e,col:t},o=this._getSelections();i?o.setRangeEnd(n,!0):o.setRange(n,n,!0),o.finishSelect(),this.instance.fastRender()}_pageChange(e,t){this.closeEditor(!1);let i=this._getSelections().getActive();if(!i||!i.cellRange)return;let n=t?i.cellRange.to:i.cellRange.highlight.from,o=this.instance.view,r=o.getViewHeight()-o.getFreezeSize().freezeHeight,a=o.viewport.getScrollTop(),s=o.getFirstVisibleRow(),l=o.getLastVisibleRow();o.viewport.setScrollTop(a+r*e),o.viewport.getScrollTop()!==a?this.delayPageChange={rowOffset:Math.max(0,n.row-s),col:n.col,shiftKey:t}:t&&this._rangeModifier(e>0?l:s,n.col,t)}_jumpCoord(e,t,i,n,o){let r=this.instance.sheet,a=r.countRows(),s=r.countCols(),l=(0,eI.O2)(r.getDataAtCell(e,t))||(0,eI.O2)(r.getDataAtCell(e+i,t+n));do{var c,d;if(c=e,d=t,c<=0&&i<0||c>=a-1&&i>0||d<=0&&n<0||d>=s-1&&n>0)break;e+=i,t+=n}while(l&&(0,eI.O2)(r.getDataAtCell(e,t))||!l&&!(0,eI.O2)(r.getDataAtCell(e+i,t+n)));this._rangeModifier(e,t,o)}_onKeyDown(e){var t;let i=this.instance;if(i.runHooks("beforeKeyDown",e),u8(e))return;let n=this._getSelections();if(!n.isSelected()&&!this.isEditorOpened())return;let o=this.activeEditor,r=((t=e).ctrlKey||t.metaKey)&&!t.altKey,a=e.shiftKey,s=e.altKey,l=!1;switch(e.keyCode){case u5.A:this.isEditorOpened()||!r||a||(i.selectCell(0,0,i.sheet.countRows()-1,i.sheet.countCols()-1,!1),l=!0);break;case u5.ARROW_UP:case u5.ARROW_DOWN:case u5.ARROW_LEFT:case u5.ARROW_RIGHT:{if(s)break;this.closeEditor(!1);let t=e.keyCode===u5.ARROW_UP?-1:+(e.keyCode===u5.ARROW_DOWN),i=this.instance.view.reverseIfRtl(e.keyCode===u5.ARROW_LEFT?-1:+(e.keyCode===u5.ARROW_RIGHT));if(r){let e=n.getActive(),o=a?e.cellRange.to:e.cellRange.highlight.from;this._jumpCoord(o.row,o.col,t,i,a)}else this._moveSelection(t,i,a);l=!0;break}case u5.TAB:this.onTabKey(e),l=!0;break;case u5.F2:a||(this._openEditor(null,null,"tail","f2"),o.enableFullEditMode(),l=!0);break;case u5.ENTER:if(r||s)break;this.onEnterKey(e),l=!0;break;case u5.ESCAPE:this.isEditorOpened()&&(this.onEscKey(),l=!0);break;case u5.HOME:case u5.END:{let t=n.getActive();if(t&&t.cellRange){let n,o,s=a?t.cellRange.to:t.cellRange.highlight.from;r?(n=e.keyCode===u5.HOME?0:i.sheet.countRows()-1,o=s.col):(n=s.row,o=e.keyCode===u5.HOME?0:i.sheet.countCols()-1),this._rangeModifier(n,o,a),l=!0}break}case u5.PAGE_UP:r&&a||(this._pageChange(-1,a),l=!0);break;case u5.PAGE_DOWN:r&&a||(this._pageChange(1,a),l=!0)}l&&(e.preventDefault(),e.stopPropagation())}onEnterKey(e){let t=this.isEditorOpened(),i=this._isMultipleSelection();return this.closeEditor(!1).then(()=>{if(t&&!i){let e=this._getSelections(),t=e.getTabCoords();t&&e.setRange(t,t)}t||i?this._onNav(e.shiftKey?"up":"down"):(this._openEditor(null,null,"tail","enter"),this.activeEditor.enableFullEditMode())})}onTabKey(e){let t=e.shiftKey;return this.closeEditor(!1).then(()=>{t||this._isMultipleSelection()||this._getSelections().saveTabCoords(),this._onNav(t?"left":"right")})}onEscKey(){return this.closeEditor(!0)}getActiveEditor(){return this.activeEditor}isEditorOpened(){return this.activeEditor.isOpened()}_openEditor(e,t,i,n){let o=this.instance.getDataBridge().getWorkbook().isReadonly(),r=this.activeEditor;e=e||this._getSelections().getHighlightCoord(),r&&!o&&e&&r.beginEditing(e,t,i,n)}closeEditor(e){return this.activeEditor.finishEditing(e)}onSelectionUpdated(){if(!this.isEditorOpened())return;let e=this._getSelections().getHighlightRange();e?e.isEqual(this.activeEditor.range)||(this.activeEditor.range=e.clone(),this.activeEditor.deferRefreshDimensions()):this.closeEditor(!0)}onMoveRowCol(e,t){if(!this.isEditorOpened())return;let i=this.activeEditor.range,n=i.clone();i.move(e,t),i.isEqual(n)||this.activeEditor.deferRefreshDimensions()}onResizeRowCol(){this.activeEditor.deferRefreshDimensions()}onMergedCellsUpdated(e){if(!this.isEditorOpened())return;let t=this.activeEditor,i=t.range;if(i.overlaps(e)){let e=i.clone();t.updateEditorCell(i.from),e.isEqual(t.range)||t.deferRefreshDimensions()}}}class h_{constructor(e,t,i,n,o,r,a){this.cellRange=e||null,this.color=t||null,this.borderStyle=i||null,this.className=n||null,this.hasHighlight=o||!1,this.hasCorner=r||!1,this.outerOffset=a||0,this.hasBackground=!0}isEmpty(){return null===this.cellRange}clear(){this.cellRange=null}setRange(e){this.cellRange=e}setHasHighlight(e){this.hasHighlight=e}setHasCorner(e){this.hasCorner=e}setHasBackground(e){this.hasBackground=e}getClassName(){return this.className}preventPointer(){return this.hasHighlight}}class hx extends h_{constructor(){super(null,null,"2px dashed #009959","copy-selection",!1,!1,1),this._draggingData=null}getClassName(){return this.isDragging()?"copy-selection-dragging":super.getClassName()}preventPointer(){return!this.isDragging()&&super.preventPointer()}startDragging(e,t){e=e.clone().normalize(),this._draggingData={range:e.clone(),coord:{row:Math.min(e.to.row,Math.max(e.from.row,t.row)),col:Math.min(e.to.col,Math.max(e.from.col,t.col))}},this.setRange(e)}updateDragging(e,t){if(!this.isDragging())return;let i=this.cellRange,{range:n,coord:{row:o,col:r}}=this._draggingData,a=Math.min(t.row-n.to.row,Math.max(-n.from.row,e.row-o)),s=Math.min(t.col-n.to.col,Math.max(-n.from.col,e.col-r));i.from.row=n.from.row+a,i.from.col=n.from.col+s,i.to.row=n.to.row+a,i.to.col=n.to.col+s}endDragging(){if(!this.isDragging())return;let e=this._draggingData.range,t=this.cellRange;return this._draggingData=null,this.clear(),{srcRange:e,targetRange:t}}isDragging(){return null!==this._draggingData}}class hS{constructor(e){this.instance=e,this.multiSelections=[],this.inProgress=!1,this.lastActive=-1,this.selectedHeader={row:!1,col:!1},this.length=0}push(e){this._push(e)}_push(e,t,i,n){this.length<this.multiSelections.length?this.multiSelections[this.length].cellRange=e:this.multiSelections.push(new h_(e,t||null,i||null,n||null)),this.length++}getLength(){return this.length}isInProgress(){return this.inProgress}get(e){return this.multiSelections[e]}resetActive(){this.lastActive=-1}setActive(e){this.lastActive!==e&&this.get(e)&&(this.lastActive=e)}getActive(){return this.get(this.lastActive)}setSelectedHeaders(e,t){void 0!==e&&(this.selectedHeader.row=e),void 0!==t&&(this.selectedHeader.col=t)}beginSelect(e,t){this.inProgress=!0,this.setSelectedHeaders(t.col<0,t.row<0),t.row=Math.max(t.row,0),t.col=Math.max(t.col,0);let i=this.getActive();e.shiftKey&&i&&i.cellRange?this.moveSelect(t):this._handleSelect(e,t)}_handleSelect(e,t){this.setRangeStart(t),this.moveSelect(t)}moveSelect(e){let t=this.getActive();if(!t||!t.cellRange)return;let i=this.instance.sheet;if(!i)return;let n=t.cellRange;n.type=(this.selectedHeader.row?eA.Y3.row:eA.Y3.cell)|(this.selectedHeader.col?eA.Y3.col:eA.Y3.cell),this.selectedHeader.col&&(n.from.row=0,n.to.row=i.countRows()-1,n.to.col=Math.max(e.col,0)),this.selectedHeader.row&&(n.from.col=0,n.to.col=i.countCols()-1,n.to.row=this.selectedHeader.col?n.to.row:Math.max(e.row,0)),this.selectedHeader.row||this.selectedHeader.col?this._rangeSelected():this.setRangeEnd(e)}_rangeSelected(){}finishSelect(){this.inProgress=!1}transformStart(e,t){let i=this.getActive(),n=i?.cellRange,o=this.instance.sheet;if(!n||!o)return;let r={row:e,col:t};this.instance.runHooks("modifyTransformStart",r,n);let a=o.countRows(),s=o.countCols(),l={row:n.highlight.from.row+r.row,col:n.highlight.from.col+r.col};l.row<0?l.row=0:l.row>=a&&(l.row=a-1),l.col<0?l.col=0:l.col>=s&&(l.col=s-1),this.setRange(l,l,!0)}transformEnd(e,t){let i=this.getActive(),n=this.instance.sheet;if(!i||!i.cellRange||!n)return;let o={row:e,col:t};this.instance.runHooks("modifyTransformEnd",o,i.cellRange);let r=n.countRows(),a=n.countCols(),s={row:i.cellRange.to.row+o.row,col:i.cellRange.to.col+o.col};s.row<0?s.row=0:s.row>=r&&(s.row=r-1),s.col<0?s.col=0:s.col>=a&&(s.col=a-1),this.setRangeEnd(s,!0)}addRange(e){this.resetActive(),this.setRange({row:e[0],col:e[1]},{row:e[2],col:e[3]},!1)}setRange(e,t,i){this.setSelectedHeaders(!1,!1),this.setRangeStart(e),this.setRangeEnd(t,i);let n=this.getActive()?.cellRange,o=this.instance.sheet;if(!n||!o)return;let r=n.getWidth()===o.countCols(),a=n.getHeight()===o.countRows();n.type=(r?eA.Y3.row:eA.Y3.cell)|(a?eA.Y3.col:eA.Y3.cell)}setRangeStart(e){this.instance.runHooks("beforeSetRangeStart",e);let{row:t,col:i}=this.selectedHeader,n=new eA.xm(e.row,e.col,e.row,e.col,(0,eA.kB)(t,i)),o=this.getActive();o?o.cellRange=n:(this.push(n),o=this.getActive()),this.instance.runHooks("afterSetRangeStart",o&&o.cellRange)}setRangeEnd(e,t){void 0===t&&(t=!1);let i=this.getActive();if(!i||!i.cellRange)return;let n=this.instance;if(i.cellRange.from={...i.cellRange.highlight.from},i.cellRange.to={row:e.row<0?n.getFirstVisibleRow():e.row,col:e.col<0?n.getFirstVisibleCol():e.col},n.runHooks("beforeSetRangeEnd",i.cellRange,this.selectedHeader),t){let e=i.cellRange,t=e.from&&!this._isMultiple(e)?e.from:e.to;n.scrollToRange(t.row,t.col,t.row,t.col,!1)}this._rangeSelected()}isMultiple(){let e=this.getActive();return!!e&&!!e.cellRange&&this._isMultiple(e.cellRange)}_isMultiple(e){return this.instance.sheet?.getMergePlugin().isMultipleCells(e)??!1}getMultiRange(){let e=[];return this.forAll(t=>(t.cellRange&&e.push(t.cellRange.clone()),!0),!1),e}clear(){this.resetActive(),this.length=0,this.forAll(e=>(e.cellRange=null,!0),!0)}getAll(){return this.multiSelections.slice(0,this.length)}forAll(e,t){let i=!0===t?this.multiSelections.length:this.length;for(let t=0;t<i&&!1!==e(this.multiSelections[t]);t++);}destroy(){}}class hC extends hS{constructor(e){super(e),this.tabCoords=null,e.addHook("openEditor",()=>this.openEditor()),e.addHook("closeEditor",()=>this.closeEditor())}push(e){this._push(e,"rgba(38,152,110,0.1)","2px solid #26986E","multi-area"),this.setActive(this.length-1)}resetActive(){let e=this.get(this.lastActive);e&&(e.setHasHighlight(!1),e.setHasCorner(!1)),super.resetActive()}setActive(e){if(this.lastActive===e)return;this.resetActive();let t=this.get(e);t&&(t.setHasHighlight(!0),t.setHasCorner(!0),this.lastActive=e)}clampSelections(){let e=this.instance.sheet;if(!e)return;let t=e.countRows(),i=e.countCols();this.forAll(e=>{let n=e.cellRange;return n&&(n.from.row=Math.min(n.from.row,t-1),n.from.col=Math.min(n.from.col,i-1),n.to.row=Math.min(n.to.row,t-1),n.to.col=Math.min(n.to.col,i-1)),!0});let n=this.getActive()?.cellRange?.highlight;n&&(n.from.row>=t||n.from.col>=i)&&this.setHighlight({row:Math.min(n.from.row,t-1),col:Math.min(n.from.col,i-1)})}openEditor(){let e=this.getActive();e&&e.setHasCorner(!1)}closeEditor(){let e=this.getActive();e&&e.setHasCorner(!0)}_isCoordSelected(e){return!!this.instance.sheet&&this.getAll().some(t=>t.cellRange?.includes(e,!1)??!1)}beginSelect(e,t){let i=this.instance.getActiveEditor();i.isOpened()&&i.finishEditing();let n=((0,c9.isMac)()?e.metaKey:e.ctrlKey)&&!e.altKey;(0,dl.lz)(e)&&!n&&this._isCoordSelected(t)||super.beginSelect(e,t)}_handleSelect(e,t){((0,c9.isMac)()?e.metaKey:e.ctrlKey)&&!e.altKey?this.resetActive():this.clear(),super._handleSelect(e,t)}_rangeSelected(){let e=this.getActive(),t=e&&e.cellRange;this.instance.runHooks("afterSelection",t)}saveTabCoords(){if(this.tabCoords)this.tabCoords.skipNextClear=!0;else{let e=this.getHighlightCoord();e&&(this.tabCoords={...e,skipNextClear:!0})}}getTabCoords(){return this.tabCoords}finishSelect(){let e=this.getActive();this.instance.runHooks("afterSelectionEnd",e&&e.cellRange),this.tabCoords&&this.tabCoords.skipNextClear?this.tabCoords.skipNextClear=!1:this.tabCoords=null,super.finishSelect()}deselect(){this.length>0&&(this.clear(),this.instance.runHooks("afterDeselect"))}setRangeStart(e){super.setRangeStart(e);let t=this.getActive();this.instance.runHooks("highlightchanged",t?.cellRange?.highlight)}getHighlightRange(){let e=this.getActive();return e&&e.cellRange?e.cellRange.highlight:null}getHighlightCoord(){let e=this.getHighlightRange();return e?e.from:null}removeRedundantSel(){if(this.length<2)return;let e=this.getActive();for(this.multiSelections[0].cellRange=e?e.cellRange:null;this.length>1;)this.length-=1,this.multiSelections[this.length].cellRange=null;this.setActive(0)}isSelected(){return this.length>0&&null!==this.multiSelections[0].cellRange}onCreateRowCol(e,t,i){this.forAll(n=>{let o=n.cellRange;return o&&o.createRowCol(e,t,i),!0})}onRemoveRowCol(e,t,i){let n=0;for(let o=0;o<this.length;o++){let r=this.multiSelections[o].cellRange;r&&!0===r.removeRowCol(e,t,i)&&(this.multiSelections[n++].cellRange=r)}for(let e=n;e<this.length;e++)this.multiSelections[e].cellRange=null;this.length=n,this.setActive(this.length-1)}nextHighlight(e){let t=this.getActive(),i=t?.cellRange;if(!i)return;let n=this.instance.getPlugin("synoMergeCell").nextHighlight(i,e);if(!n){let t=this.getLength(),o=["down","right"].includes(e);t>1&&(this.setActive((this.lastActive+(o?1:-1)+t)%t),i=this.getActive().cellRange),n=o?i.getTopLeftCorner():i.getBottomRightCorner()}this.setHighlight(n)}setHighlight(e){let t=this.getActive()?.cellRange;if(!t)return;let i=t.highlight;i.from.row=i.to.row=e.row,i.from.col=i.to.col=e.col,this.instance.getPlugin("synoMergeCell")?.modifyHighlight(i),this.instance.runHooks("highlightchanged",i)}toJSON(){let e=this.getHighlightCoord();return{ranges:this.getMultiRange().map(e=>[e.from.row,e.from.col,e.to.row,e.to.col]),activeIndex:this.lastActive,highlight:e?{...e}:null}}hasOverlaps(){let e=this.getMultiRange();return(0,eA.B7)(e)}}let hk=["0, 172, 229","242, 182, 0","51, 128, 204","250, 145, 25","163, 108, 217","18, 178, 178","242, 121, 141","98, 179, 18"];class hI extends hS{constructor(e){super(e),this.selectingInput=null,this.selectingPos=null,this.prepareSelecting=!1,e.addHook("afterFormatFormula",(e,t)=>this.afterFormatFormula(e,t)),e.addHook("formulaModeChange",e=>this.onFormulaModeChange(e)),e.addHook("afterUserChangedInputPosition",(e,t)=>this.afterUserChangedInputPosition(e,t)),e.addHook("onInputMoveKey",(e,t,i)=>this.onInputMoveKey(e,t,i)),e.addHook("openEditor",()=>this.openEditor()),e.addHook("closeEditor",()=>this.closeEditor()),e.addHook("afterShowSheet",()=>this.afterShowSheet()),this._onMouseMoveRef=e=>{this.isInProgress()&&e.preventDefault()},document.documentElement.addEventListener("mousemove",this._onMouseMoveRef)}push(e){if(this.length<this.multiSelections.length)this._push(e);else{let t=hk[this.length%hk.length],i=`rgba(${t}, 0.05)`,n=`2px dashed rgb(${t})`;this._push(e,i,n,"formula-selection")}this.multiSelections[this.length-1].setHasBackground(!1)}redrawCellSelection(e,t,i){var a,s,l;let c=this.instance.getCell(e,t,!0);c&&(a=i.settings.className,n(c,a))&&(i.active?(s=i.settings.activeCls,o(c,s)):(l=i.settings.activeCls,r(c,l)))}resetActive(){let e=this.get(this.lastActive);e&&(e.setHasBackground(!1),this.instance.selectionView.hideSelectionBackground(e)),super.resetActive()}setActive(e){if(this.lastActive===e)return;this.resetActive();let t=this.get(e);t&&(t.setHasBackground(!0),this.instance.selectionView.updateSelection(t),this.lastActive=e)}redrawSelection(e){let t=e.cellRange;if(!t)return;let i=t.getTopLeftCorner(),n=t.getBottomRightCorner(),o=this.instance.view.wt.wtViewport.rowsRenderCalculator,r=this.instance.view.wt.wtViewport.columnsRenderCalculator,a=Math.max(o.startRow,i.row),s=Math.min(o.endRow,n.row),l=Math.max(r.startColumn,i.col),c=Math.min(r.endColumn,n.col);for(let t=a;t<=s;t++)for(let i=l;i<=c;i++)this.redrawCellSelection(t,i,e);let d=this.instance.sheet.getFreezePlugin(),u=d.fixedRowsTop,h=d.fixedColumnsLeft,p=Math.min(u-1,n.row),f=Math.min(h-1,n.col);for(let t=i.row;t<=p;t++)for(let i=l;i<=c;i++)this.redrawCellSelection(t,i,e);for(let t=a;t<=s;t++)for(let n=i.col;n<=f;n++)this.redrawCellSelection(t,n,e);for(let t=i.row;t<p;t++)for(let n=i.col;n<f;n++)this.redrawCellSelection(t,n,e)}_handleSelect(e,t){let i,n=this.instance.getActiveEditor(),o=n.getActiveInput(),r=(0,nC.coordToLabel)(t),a=o.getSelection().getRange();if(!a)return;let s=a.end??0;if(0===s)return;let l=o.getTokenList(),c=(e.ctrlKey||e.metaKey)&&!e.altKey;n.isCrossSheet()&&(i=this.instance.sheet.getName());let d=null,u=l.getTokenByPos(s)?.token;(d=u?.isRange()?c?l.insertRange(r,"cell",s,!0,i):l.updateRange(u,r,"cell",i):l.insertRange(r,"cell",s,!1,i))&&(s=d.newRange[1]),this.updateSelection(l,s),this.saveSelecting(o,s),this.selectingInput.closeFormulaMenu(),this.moveSelect(t),this.prepareSelecting="all"}_rangeSelected(){let e,t=this.getActive();if(!t||!t.cellRange)return;let i=this.selectingInput.getTokenList(),n=i.getTokenByPos(this.selectingPos);if(!n)return;this.instance.getActiveEditor().isCrossSheet()&&(e=this.instance.sheet.getName());let o=t.cellRange,r=this.isMultiple()?eR.toLabel(o):(0,nC.coordToLabel)(o.from),a=o.type&eA.Y3.row?"row":o.type&eA.Y3.col?"col":"cell";n.token.isRange()?(this.selectingPos=i.updateRange(n.token,r,a,e)?.newRange[1]??this.selectingPos,this.selectingInput.renderByTokenList(this.selectingPos)):(this.selectingPos=i.insertRange(r,a,this.selectingPos,!1,e)?.newRange[1]??this.selectingPos,this.selectingInput.renderByTokenList(this.selectingPos),this.updateSelection(i,this.selectingPos)),this.prepareSelecting="all"}finishSelect(){this.selectingInput&&(this.selectingInput.getEl().focus(),this.selectingInput.updateKeydownStatus()),super.finishSelect()}onFormulaModeChange(e){e||(this.clearSelecting(),this.clear())}afterShowSheet(){let e=this.instance.getActiveEditor().input;this.instance.getActiveEditor().isOpened()&&this.updateSelection(e.getTokenList(),this.selectingPos)}afterFormatFormula(e,t){this.updateSelection(e,t),this.clearSelecting(),this.prepareFormulaSelect(e,t,!1)}afterUserChangedInputPosition(e,t){if(e){let i=0;e.forAllTokens((e,n)=>{let o=e.getText().length;if(n<t&&t<=n+o)return e.isRange()?this.setActive(i):this.getActive()&&this.resetActive(),!1;e.isRange()&&(i+=1)})}this.clearSelecting(),this.prepareFormulaSelect(e,t,!0)}checkFormulaSelecting(){let e=this.instance.getActiveEditor().getActiveInput();return!!e.isActive&&!!e.getSelection().isSelectionInEditor()&&this.prepareSelecting}prepareFormulaSelect(e,t,i){this.prepareSelecting=!1,e&&e.get(0).isEqualSymbol()&&!(t<=0)&&e.forAllTokens((n,o,r)=>{let a,s,l=n.getText().length;if(!(o>=t)&&!(t>o+l))return!1===n.symbol?(a=e.get(r-1),s=e.get(r+1)):(a=n,(s=e.get(r+1))&&!1===s.symbol&&(s=e.get(r+2))),a&&a.isLeftDelimiter()&&(!s||s.isRightDelimiter())&&(this.prepareSelecting=i?"mouse":"all"),!1})}onInputMoveKey(e,t,i){if(e!==this.instance.getActiveEditor().input||"all"!==this.prepareSelecting)return;let n=this.getActive();if(!n||!n.cellRange){let t=this.instance.getActiveEditor().range,i=new eA.xm(t.from.row,t.from.col,t.to.row,t.to.col);this.push(i),this.setActive(this.length-1),this.saveSelecting(e,e.getSelection().getRange().start)}i.shiftKey?this.transformEnd(t.row,t.col):this.transformStart(t.row,t.col),this.finishSelect(),i.preventDefault()}openEditor(){let e=this.instance.getActiveEditor().input.getTokenList();e&&this.updateSelection(e)}closeEditor(){this.clear(),this.clearSelecting()}updateSelection(e,t){if(this.clear(),!e)return;let i=this.instance.getDataBridge().getWorkbook(),n=this.instance.sheetId,o=this.instance.getActiveEditor().sheetId;e.forAllTokens((e,r)=>{if(!e.isRange()&&!e.isVariable())return;let a=eR.createByWorkbook(e.getText(),i,o);if(!a&&e.isVariable())return;let s=null;a&&a.sheetInfo.sheetId===n&&(s=new eA.xm(a.from.row,a.from.col,a.to.row,a.to.col)),this.push(s);let l=e.getText().length;s&&r<t&&t<=r+l&&this.setActive(this.length-1)})}saveSelecting(e,t){this.selectingInput=e,this.selectingPos=t}clearSelecting(){this.selectingInput=null,this.selectingPos=null,this.prepareSelecting=!1}destroy(){document.documentElement.removeEventListener("mousemove",this._onMouseMoveRef)}}class hA{constructor(e){this.instance=e,this.displayRow=!1,this.displayCol=!1,this.searchDisplay=!1,this.hasActive=!1,this.rowHint=this.createSelection(eA.Y3.row),this.colHint=this.createSelection(eA.Y3.col),this.instance.addHook("highlightchanged",this.onHighlightChanged.bind(this))}createSelection(e){return new h_(new eA.GJ(0,0,0,0,e),"#FF7C001A",null,"hint-selection",!1,!1)}getAll(){if(!this.hasActive)return[];let e=[];return(this.displayRow||this.searchDisplay)&&e.push(this.rowHint),(this.displayCol||this.searchDisplay)&&e.push(this.colHint),e}setDisplay(e){let{row:t,col:i}=e;this.displayRow=t,this.displayCol=i}setSearchDisplay(e){this.searchDisplay=e}setRange(e){if(!e){this.hasActive=!1;return}this.hasActive=!0;let t=this.rowHint.cellRange;t&&(t.from.row=e.from.row,t.to.row=e.to.row);let i=this.colHint.cellRange;i&&(i.from.col=e.from.col,i.to.col=e.to.col)}onHighlightChanged(e){this.setRange(e)}}i(59458);let hT={FILL_COLOR:`#${tu.Z.DEFAULT_FILL_COLOR}`,BORDER_COLOR:"rgba(0, 0, 0, 0.1)",COMMENT_COLOR:"#FFBF00",NOTE_COLOR:"#56585A",VALIDATION_COLOR:"#F2616D",FONT_SIZE:tu.Z.DEFAULT_FONT_SIZE,FONT_NAME:tu.Z.DEFAULT_FONT_NAME,FONT_COLOR:tu.Z.DEFAULT_FONT_COLOR,H_ALIGN:"left",V_ALIGN:"middle",HYPER_LINK_COLOR:tu.Z.HYPER_LINK_COLOR},hE="#F6F8FA",hR="rgba(0, 0, 0, 0.1)",hD={font:"#63A68C",normal:{fill:hT.FILL_COLOR,select:hE},filter:{fill:"#EAF7F2",select:"#D2F0E4"}},hO={font:"#FFFFFF",normal:{fill:"#66686A",select:"#383A3C"},filter:{fill:"#7D7D7D",select:"#212121"}};class hM{constructor(){this.fill=hT.FILL_COLOR,this.borderTopColor=null,this.borderLeftColor=null,this.borderRightColor=null,this.borderBottomColor=null}setFill(e){this.fill=e}setTopBorder(e){this.borderTopColor=e}setLeftBorder(e){this.borderLeftColor=e}setRightBorder(e){this.borderRightColor=e}setBottomBorder(e){this.borderBottomColor=e}setBorder(e){let t=e.b;this.setTopBorder(t&&t[0]),this.setRightBorder(t&&t[1]),this.setBottomBorder(t&&t[2]),this.setLeftBorder(t&&t[3])}mergeBorder(e){let t=e.b;t&&(t[0]&&this.setTopBorder(t[0]),t[1]&&this.setRightBorder(t[1]),t[2]&&this.setBottomBorder(t[2]),t[3]&&this.setLeftBorder(t[3]))}setStyle(e,t){if(void 0===t&&(t=!0),!e.isDefault()){let i=e.getFill();i.bg&&this.setFill("#"+i.bg);let n=e.getBorder();n&&(t?this.setBorder(n):this.mergeBorder(n))}return this}}class hN{constructor(e){this.text=e,this.font=null,this.cfStyle=null,this.tableFont=null,this.fontColor=null,this.underline=!1,this.bold=!1,this._halign=e?.getDirection()==="rtl"?"right":"left",this.valign=hT.V_ALIGN,this.notify=null,this.dropdown=null,this._dropdownPadding=0,this.fold=null,this.indent=0}setFontColor(e){this.fontColor=e}setBold(e){this.bold=e}setUnderline(e){this.underline=e}setHalign(e){this._halign=e}get halign(){return this.fold?"left":this._halign}setValign(e){this.valign=e}setNotify(e){this.notify=e}setDropdown(e){this.dropdown=e}setDropdownPadding(e){this._dropdownPadding=e}get dropdownPadding(){return this.dropdown?.getPadding()??this._dropdownPadding}setFold(e){this.fold=e}setIndent(e){this.indent=e}setAlignmentStyle(e){e&&(e.halign&&this.setHalign(e.halign),e.valign&&this.setValign(e.valign))}setFont(e){this.font=e}setCfStyle(e){this.cfStyle=e}setTableFont(e){this.tableFont=e}setTextDesc(e){switch(e.t){case iw.Type.TEXT:break;case iw.Type.NUM:this.setHalign("right");break;case iw.Type.BOOL:this.setHalign("center")}e.l&&e.t!==iw.Type.RICH_TEXT&&(this.setUnderline(!0),this.font&&this.font.color||this.setFontColor(hT.HYPER_LINK_COLOR)),e.c&&this.setFontColor(e.c)}setNotifyByMeta(e){let{comment:t,note:i,synoInvalid:n}=e;t?this.setNotify(hT.COMMENT_COLOR):i?this.setNotify(hT.NOTE_COLOR):n&&this.setNotify(hT.VALIDATION_COLOR)}}class hP{constructor(e){this._hover=e}setHover(e){this._hover=e}getColor(){}getPadding(){}}function hL(e,t){return void 0===t&&(t=1),{x:e.x+e.width-(1+hB.getPadding())*t,y:e.y+4*t,width:hB.getWidth()*t,height:hB.getHeight()*t}}class hB extends hP{constructor(e,t,i=!1){super(e),this._active=t,this.disabled=i}isActive(){return this._active}getColor(){return"#56585A"}getBgColor(){return this._hover?"#F6F8FA":"rgba(255, 255, 255, 0.85)"}getPadding(){return hB.getPadding()}static getPadding(){return 16}static getHeight(){return 13}static getWidth(){return 13}}class hF extends hP{constructor(e,t){super(e),this._isDarkBg=t}getColor(){if(this._isDarkBg){let e=this._hover?"0.7":"0.4";return`rgba(255,255,255,${e})`}return this._hover?"#888A8B":"#BBBCBD"}getPadding(){return hF.getPadding()}static getPadding(){return 13}static getHeight(){return 12}}class hV{constructor(e,t,i,n){this.text=e,this.width=Math.ceil(t),this.font=i||null,this.rtl=n}getText(){return this.text}getWidth(){return this.width}getFont(){return this.font}getRtl(){return this.rtl}}class hz{constructor(e){this.frags=[],this.lineHeight=Math.ceil(e.height),this.width=0,this.baselineOffset=e.lineBoxAscent}addTextFragment(e){this.width+=e.getWidth(),this.frags.push(e)}getLineHeight(){return this.lineHeight}getBaselineOffset(){return this.baselineOffset}getWidth(){return this.width}[Symbol.iterator](){return this.frags[Symbol.iterator]()}}class hH{constructor(e){this.lines=[],this.height=0,this.width=0,this.direction=e||"ltr"}addTextLine(e){this.height+=e.getLineHeight(),this.width=Math.max(this.width,e.getWidth()),this.lines.push(e)}getHeight(){return this.height}getWidth(){return this.width}getDirection(){return this.direction}[Symbol.iterator](){return this.lines[Symbol.iterator]()}}let hW=new WeakMap;function hY(e,t,i){if((!t||e.bold)&&(!i||e.italic))return e;let n=hW.get(e);n||(n=[null,null,null],hW.set(e,n));let o=+!!t+2*!!i,r=n[o];return r||(r=new tx.Zx().assign(e),t&&(r.bold=!0),i&&(r.italic=!0),n[o]=r),r}function hU(e){let t="";return e.italic&&(t+="italic "),e.bold&&(t+="bold "),t+=(e.size||hT.FONT_SIZE)+"pt ",t+=e.name?`"${e.name}"`:hT.FONT_NAME}var hG=i(44175);let hZ="֑-߿יִ-﷽ﹰ-ﻼ",hj="A-Za-z\xc0-\xd6\xd8-\xf6\xf8-ʸ̀-֐ࠀ-῿‎Ⰰ-﬜︀-﹯﻽-￿",hq=RegExp("^[^"+hj+"]*["+hZ+"]"),hK=RegExp("^[^"+hZ+"]*["+hj+"]"),hX=function(e){var t,i,n,o,r={R:"13k,1a,2,3,3,2+1j,ch+16,a+1,5+2,2+n,5,a,4,6+16,4+3,h+1b,4mo,179q,2+9,2+11,2i9+7y,2+68,4,3+4,5+13,4+3,2+4k,3+29,8+cf,1t+7z,w+17,3+3m,1t+3z,16o1+5r,8+30,8+mc,29+1r,29+4v,75+73",EN:"1c+9,3d+1,6,187+9,513,4+5,7+9,sf+j,175h+9,qw+q,161f+1d,4xt+a,25i+9",ES:"17,2,6dp+1,f+1,av,16vr,mx+1,4o,2",ET:"z+2,3h+3,b+1,ym,3e+1,2o,p4+1,8,6u,7c,g6,1wc,1n9+4,30+1b,2n,6d,qhx+1,h0m,a+1,49+2,63+1,4+1,6bb+3,12jj",AN:"16o+5,2j+9,2+1,35,ed,1ff2+9,87+u",CS:"18,2+1,b,2u,12k,55v,l,17v0,2,3,53,2+1,b",B:"a,3,f+2,2v,690",S:"9,2,k",WS:"c,k,4f4,1vk+a,u,1j,335",ON:"x+1,4+4,h+5,r+5,r+3,z,5+3,2+1,2+1,5,2+2,3+4,o,w,ci+1,8+d,3+d,6+8,2+g,39+1,9,6+1,2,33,b8,3+1,3c+1,7+1,5r,b,7h+3,sa+5,2,3i+6,jg+3,ur+9,2v,ij+1,9g+9,7+a,8m,4+1,49+x,14u,2+2,c+2,e+2,e+2,e+1,i+n,e+e,2+p,u+2,e+2,36+1,2+3,2+1,b,2+2,6+5,2,2,2,h+1,5+4,6+3,3+f,16+2,5+3l,3+81,1y+p,2+40,q+a,m+13,2r+ch,2+9e,75+hf,3+v,2+2w,6e+5,f+6,75+2a,1a+p,2+2g,d+5x,r+b,6+3,4+o,g,6+1,6+2,2k+1,4,2j,5h+z,1m+1,1e+f,t+2,1f+e,d+3,4o+3,2s+1,w,535+1r,h3l+1i,93+2,2s,b+1,3l+x,2v,4g+3,21+3,kz+1,g5v+1,5a,j+9,n+v,2,3,2+8,2+1,3+2,2,3,46+1,4+4,h+5,r+5,r+a,3h+2,4+6,b+4,78,1r+24,4+c,4,1hb,ey+6,103+j,16j+c,1ux+7,5+g,fsh,jdq+1t,4,57+2e,p1,1m,1m,1m,1m,4kt+1,7j+17,5+2r,d+e,3+e,2+e,2+10,m+4,w,1n+5,1q,4z+5,4b+rb,9+c,4+c,4+37,d+2g,8+b,l+b,5+1j,9+9,7+13,9+t,3+1,27+3c,2+29,2+3q,d+d,3+4,4+2,6+6,a+o,8+6,a+2,e+6,16+42,2+1i",BN:"0+8,6+d,2s+5,2+p,e,4m9,1kt+2,2b+5,5+5,17q9+v,7k,6p+8,6+1,119d+3,440+7,96s+1,1ekf+1,1ekf+1,1ekf+1,1ekf+1,1ekf+1,1ekf+1,1ekf+1,1ekf+1,1ekf+1,1ekf+1,1ekf+1,1ekf+75,6p+2rz,1ben+1,1ekf+1,1ekf+1",NSM:"lc+33,7o+6,7c+18,2,2+1,2+1,2,21+a,1d+k,h,2u+6,3+5,3+1,2+3,10,v+q,2k+a,1n+8,a,p+3,2+8,2+2,2+4,18+2,3c+e,2+v,1k,2,5+7,5,4+6,b+1,u,1n,5+3,9,l+1,r,3+1,1m,5+1,5+1,3+2,4,v+1,4,c+1,1m,5+4,2+1,5,l+1,n+5,2,1n,3,2+3,9,8+1,c+1,v,1q,d,1f,4,1m+2,6+2,2+3,8+1,c+1,u,1n,g+1,l+1,t+1,1m+1,5+3,9,l+1,u,21,8+2,2,2j,3+6,d+7,2r,3+8,c+5,23+1,s,2,2,1k+d,2+4,2+1,6+a,2+z,a,2v+3,2+5,2+1,3+1,q+1,5+2,h+3,e,3+1,7,g,jk+2,qb+2,u+2,u+1,v+1,1t+1,2+6,9,3+a,a,1a+2,3c+1,z,3b+2,5+1,a,7+2,64+1,3,1n,2+6,2,2,3+7,7+9,3,1d+g,1s+3,1d,2+4,2,6,15+8,d+1,x+3,3+1,2+2,1l,2+1,4,2+2,1n+7,3+1,49+2,2+c,2+6,5,7,4+1,5j+1l,2+4,k1+w,2db+2,3y,2p+v,ff+3,30+1,n9x+3,2+9,x+1,29+1,7l,4,5,q+1,6,48+1,r+h,e,13+7,q+a,1b+2,1d,3+3,3+1,14,1w+5,3+1,3+1,d,9,1c,1g,2+2,3+1,6+1,2,17+1,9,6n,3,5,fn5,ki+f,h+f,r2,6b,46+4,1af+2,2+1,6+3,15+2,5,4m+1,fy+3,as+1,4a+a,4x,1j+e,1l+2,1e+3,3+1,1y+2,11+4,2+7,1r,d+1,1h+8,b+3,3,2o+2,3,2+1,7,4h,4+7,m+1,1m+1,4,12+6,4+4,5g+7,3+2,2,o,2d+5,2,5+1,2+1,6n+3,7+1,2+1,s+1,2e+7,3,2+1,2z,2,3+5,2,2u+2,3+3,2+4,78+8,2+1,75+1,2,5,41+3,3+1,5,x+5,3+1,15+5,3+3,9,a+5,3+2,1b+c,2+1,bb+6,2+5,2d+l,3+6,2+1,2+1,3f+5,4,2+1,2+6,2,21+1,4,2,9o+1,f0c+4,1o+6,t5,1s+3,2a,f5l+1,43t+2,i+7,3+6,v+3,45+2,1j0+1i,5+1d,9,f,n+4,2+e,11t+6,2+g,3+6,2+1,2+4,7a+6,c6+3,15t+6,32+6,gzhy+6n",AL:"16w,3,2,e+1b,z+2,2+2s,g+1,8+1,b+m,2+t,s+2i,c+e,4h+f,1d+1e,1bwe+dp,3+3z,x+c,2+1,35+3y,2rm+z,5+7,b+5,dt+l,c+u,17nl+27,1t+27,4x+6n,3+d",LRO:"6ct",RLO:"6cu",LRE:"6cq",RLE:"6cr",PDF:"6cs",LRI:"6ee",RLI:"6ef",FSI:"6eg",PDI:"6eh"},a={},s={};a.L=1,s[1]="L",Object.keys(r).forEach(function(e,t){a[e]=1<<t+1,s[a[e]]=e}),Object.freeze(a);var l=a.LRI|a.RLI|a.FSI,c=a.L|a.R|a.AL,d=a.B|a.S|a.WS|a.ON|a.FSI|a.LRI|a.RLI|a.PDI,u=a.BN|a.RLE|a.LRE|a.RLO|a.LRO|a.PDF,h=a.S|a.WS|a.B|l|a.PDI|u,p=null;function f(e){if(!p){p=new Map;var t=function(e){if(r.hasOwnProperty(e)){var t=0;r[e].split(",").forEach(function(i){var n=i.split("+"),o=n[0],r=n[1];o=parseInt(o,36),r=r?parseInt(r,36):0,p.set(t+=o,a[e]);for(var s=0;s<r;s++)p.set(++t,a[e])})}};for(var i in r)t(i)}return p.get(e.codePointAt(0))||a.L}var g={pairs:"14>1,1e>2,u>2,2wt>1,1>1,1ge>1,1wp>1,1j>1,f>1,hm>1,1>1,u>1,u6>1,1>1,+5,28>1,w>1,1>1,+3,b8>1,1>1,+3,1>3,-1>-1,3>1,1>1,+2,1s>1,1>1,x>1,th>1,1>1,+2,db>1,1>1,+3,3>1,1>1,+2,14qm>1,1>1,+1,4q>1,1e>2,u>2,2>1,+1",canonical:"6f1>-6dx,6dy>-6dx,6ec>-6ed,6ee>-6ed,6ww>2jj,-2ji>2jj,14r4>-1e7l,1e7m>-1e7l,1e7m>-1e5c,1e5d>-1e5b,1e5c>-14qx,14qy>-14qx,14vn>-1ecg,1ech>-1ecg,1edu>-1ecg,1eci>-1ecg,1eda>-1ecg,1eci>-1ecg,1eci>-168q,168r>-168q,168s>-14ye,14yf>-14ye"};function m(e,t){var i,n=0,o=new Map,r=t&&new Map;return e.split(",").forEach(function e(a){if(-1!==a.indexOf("+"))for(var s=+a;s--;)e(i);else{i=a;var l=a.split(">"),c=l[0],d=l[1];c=String.fromCodePoint(n+=parseInt(c,36)),d=String.fromCodePoint(n+=parseInt(d,36)),o.set(c,d),t&&r.set(d,c)}}),{map:o,reverseMap:r}}function v(){if(!t){var e=m(g.pairs,!0),o=e.map,r=e.reverseMap;t=o,i=r,n=m(g.canonical,!1).map}}function b(e){return v(),t.get(e)||null}function y(e){return v(),i.get(e)||null}function w(e){return v(),n.get(e)||null}var _=a.L,x=a.R,S=a.EN,C=a.ES,k=a.ET,I=a.AN,A=a.CS,T=a.B,E=a.S,R=a.ON,D=a.BN,O=a.NSM,M=a.AL,N=a.LRO,P=a.RLO,L=a.LRE,B=a.RLE,F=a.PDF,V=a.LRI,z=a.RLI,H=a.FSI,W=a.PDI;function Y(e){if(!o){var t=m("14>1,j>2,t>2,u>2,1a>g,2v3>1,1>1,1ge>1,1wd>1,b>1,1j>1,f>1,ai>3,-2>3,+1,8>1k0,-1jq>1y7,-1y6>1hf,-1he>1h6,-1h5>1ha,-1h8>1qi,-1pu>1,6>3u,-3s>7,6>1,1>1,f>1,1>1,+2,3>1,1>1,+13,4>1,1>1,6>1eo,-1ee>1,3>1mg,-1me>1mk,-1mj>1mi,-1mg>1mi,-1md>1,1>1,+2,1>10k,-103>1,1>1,4>1,5>1,1>1,+10,3>1,1>8,-7>8,+1,-6>7,+1,a>1,1>1,u>1,u6>1,1>1,+5,26>1,1>1,2>1,2>2,8>1,7>1,4>1,1>1,+5,b8>1,1>1,+3,1>3,-2>1,2>1,1>1,+2,c>1,3>1,1>1,+2,h>1,3>1,a>1,1>1,2>1,3>1,1>1,d>1,f>1,3>1,1a>1,1>1,6>1,7>1,13>1,k>1,1>1,+19,4>1,1>1,+2,2>1,1>1,+18,m>1,a>1,1>1,lk>1,1>1,4>1,2>1,f>1,3>1,1>1,+3,db>1,1>1,+3,3>1,1>1,+2,14qm>1,1>1,+1,6>1,4j>1,j>2,t>2,u>2,2>1,+1",!0),i=t.map;t.reverseMap.forEach(function(e,t){i.set(t,e)}),o=i}return o.get(e)||null}function U(e,t,i,n){var o=e.length;i=Math.max(0,null==i?0:+i),n=Math.min(o-1,null==n?o-1:+n);var r=[];return t.paragraphs.forEach(function(o){var a=Math.max(i,o.start),s=Math.min(n,o.end);if(a<s){for(var l=t.levels.slice(a,s+1),c=s;c>=a&&f(e[c])&h;c--)l[c]=o.level;for(var d=o.level,u=1/0,p=0;p<l.length;p++){var g=l[p];g>d&&(d=g),g<u&&(u=1|g)}for(var m=d;m>=u;m--)for(var v=0;v<l.length;v++)if(l[v]>=m){for(var b=v;v+1<l.length&&l[v+1]>=m;)v++;v>b&&r.push([b+a,v+a])}}}),r}function G(e,t,i,n){for(var o=U(e,t,i,n),r=[],a=0;a<e.length;a++)r[a]=a;return o.forEach(function(e){for(var t=e[0],i=e[1],n=r.slice(t,i+1),o=n.length;o--;)r[i-o]=n[o]}),r}return e.closingToOpeningBracket=y,e.getBidiCharType=f,e.getBidiCharTypeName=function(e){return s[f(e)]},e.getCanonicalBracket=w,e.getEmbeddingLevels=function(e,t){for(var i=new Uint32Array(e.length),n=0;n<e.length;n++)i[n]=f(e[n]);var o=new Map;function r(e,t){var n=i[e];i[e]=t,o.set(n,o.get(n)-1),n&d&&o.set(d,o.get(d)-1),o.set(t,(o.get(t)||0)+1),t&d&&o.set(d,(o.get(d)||0)+1)}for(var a=new Uint8Array(e.length),s=new Map,p=[],g=null,m=0;m<e.length;m++)g||p.push(g={start:m,end:e.length-1,level:"rtl"===t?1:"ltr"===t?0:tR(m,!1)}),i[m]&T&&(g.end=m,g=null);for(var v=B|L|P|N|l|W|F|T,Y=function(e){return e+(1&e?1:2)},U=function(e){return e+(1&e?2:1)},G=0;G<p.length;G++){var Z=[{_level:(g=p[G]).level,_override:0,_isolate:0}],j=void 0,q=0,K=0,X=0;o.clear();for(var Q=g.start;Q<=g.end;Q++){var $=i[Q];if(j=Z[Z.length-1],o.set($,(o.get($)||0)+1),$&d&&o.set(d,(o.get(d)||0)+1),$&v)if($&(B|L)){a[Q]=j._level;var J=($===B?U:Y)(j._level);!(J<=125)||q||K?!q&&K++:Z.push({_level:J,_override:0,_isolate:0})}else if($&(P|N)){a[Q]=j._level;var ee=($===P?U:Y)(j._level);!(ee<=125)||q||K?!q&&K++:Z.push({_level:ee,_override:$&P?x:_,_isolate:0})}else if($&l){$&H&&($=1===tR(Q+1,!0)?z:V),a[Q]=j._level,j._override&&r(Q,j._override);var et=($===z?U:Y)(j._level);et<=125&&0===q&&0===K?(X++,Z.push({_level:et,_override:0,_isolate:1,_isolInitIndex:Q})):q++}else if($&W){if(q>0)q--;else if(X>0){for(K=0;!Z[Z.length-1]._isolate;)Z.pop();var ei=Z[Z.length-1]._isolInitIndex;null!=ei&&(s.set(ei,Q),s.set(Q,ei)),Z.pop(),X--}j=Z[Z.length-1],a[Q]=j._level,j._override&&r(Q,j._override)}else $&F?(0===q&&(K>0?K--:!j._isolate&&Z.length>1&&(Z.pop(),j=Z[Z.length-1])),a[Q]=j._level):$&T&&(a[Q]=g.level);else a[Q]=j._level,j._override&&$!==D&&r(Q,j._override)}for(var en=[],eo=null,er=g.start;er<=g.end;er++){var ea=i[er];if(!(ea&u)){var es=a[er],el=ea&l,ec=ea===W;eo&&es===eo._level?(eo._end=er,eo._endsWithIsolInit=el):en.push(eo={_start:er,_end:er,_level:es,_startsWithPDI:ec,_endsWithIsolInit:el})}}for(var ed=[],eu=0;eu<en.length;eu++){var eh=en[eu];if(!eh._startsWithPDI||eh._startsWithPDI&&!s.has(eh._start)){for(var ep=[eo=eh],ef=void 0;eo&&eo._endsWithIsolInit&&null!=(ef=s.get(eo._end));)for(var eg=eu+1;eg<en.length;eg++)if(en[eg]._start===ef){ep.push(eo=en[eg]);break}for(var em=[],ev=0;ev<ep.length;ev++)for(var eb=ep[ev],ey=eb._start;ey<=eb._end;ey++)em.push(ey);for(var ew=a[em[0]],e_=g.level,ex=em[0]-1;ex>=0;ex--)if(!(i[ex]&u)){e_=a[ex];break}var eS=em[em.length-1],eC=a[eS],ek=g.level;if(!(i[eS]&l)){for(var eI=eS+1;eI<=g.end;eI++)if(!(i[eI]&u)){ek=a[eI];break}}ed.push({_seqIndices:em,_sosType:Math.max(e_,ew)%2?x:_,_eosType:Math.max(ek,eC)%2?x:_})}}for(var eA=0;eA<ed.length;eA++){var eT=ed[eA],eE=eT._seqIndices,eR=eT._sosType,eD=eT._eosType,eO=1&a[eE[0]]?x:_;if(o.get(O))for(var eM=0;eM<eE.length;eM++){var eN=eE[eM];if(i[eN]&O){for(var eP=eR,eL=eM-1;eL>=0;eL--)if(!(i[eE[eL]]&u)){eP=i[eE[eL]];break}r(eN,eP&(l|W)?R:eP)}}if(o.get(S))for(var eB=0;eB<eE.length;eB++){var eF=eE[eB];if(i[eF]&S)for(var eV=eB-1;eV>=-1;eV--){var ez=-1===eV?eR:i[eE[eV]];if(ez&c){ez===M&&r(eF,I);break}}}if(o.get(M))for(var eH=0;eH<eE.length;eH++){var eW=eE[eH];i[eW]&M&&r(eW,x)}if(o.get(C)||o.get(A))for(var eY=1;eY<eE.length-1;eY++){var eU=eE[eY];if(i[eU]&(C|A)){for(var eG=0,eZ=0,ej=eY-1;ej>=0&&(eG=i[eE[ej]])&u;ej--);for(var eq=eY+1;eq<eE.length&&(eZ=i[eE[eq]])&u;eq++);eG===eZ&&(i[eU]===C?eG===S:eG&(S|I))&&r(eU,eG)}}if(o.get(S)){for(var eK=0;eK<eE.length;eK++)if(i[eE[eK]]&S){for(var eX=eK-1;eX>=0&&i[eE[eX]]&(k|u);eX--)r(eE[eX],S);for(eK++;eK<eE.length&&i[eE[eK]]&(k|u|S);eK++)i[eE[eK]]!==S&&r(eE[eK],S)}}if(o.get(k)||o.get(C)||o.get(A))for(var eQ=0;eQ<eE.length;eQ++){var e$=eE[eQ];if(i[e$]&(k|C|A)){r(e$,R);for(var eJ=eQ-1;eJ>=0&&i[eE[eJ]]&u;eJ--)r(eE[eJ],R);for(var e0=eQ+1;e0<eE.length&&i[eE[e0]]&u;e0++)r(eE[e0],R)}}if(o.get(S))for(var e1=0,e2=eR;e1<eE.length;e1++){var e3=eE[e1],e4=i[e3];e4&S?e2===_&&r(e3,_):e4&c&&(e2=e4)}if(o.get(d)){for(var e5=x|S|I,e6=e5|_,e8=[],e7=[],e9=0;e9<eE.length;e9++)if(i[eE[e9]]&d){var te=e[eE[e9]],tt=void 0;if(null!==b(te))if(e7.length<63)e7.push({char:te,seqIndex:e9});else break;else if(null!==(tt=y(te)))for(var ti=e7.length-1;ti>=0;ti--){var tn=e7[ti].char;if(tn===tt||tn===y(w(te))||b(w(tn))===te){e8.push([e7[ti].seqIndex,e9]),e7.length=ti;break}}}e8.sort(function(e,t){return e[0]-t[0]});for(var to=0;to<e8.length;to++){for(var tr=e8[to],ta=tr[0],ts=tr[1],tl=!1,tc=0,td=ta+1;td<ts;td++){var tu=eE[td];if(i[tu]&e6){tl=!0;var th=i[tu]&e5?x:_;if(th===eO){tc=th;break}}}if(tl&&!tc){tc=eR;for(var tp=ta-1;tp>=0;tp--){var tf=eE[tp];if(i[tf]&e6){var tg=i[tf]&e5?x:_;tc=tg!==eO?tg:eO;break}}}if(tc){if(i[eE[ta]]=i[eE[ts]]=tc,tc!==eO){for(var tm=ta+1;tm<eE.length;tm++)if(!(i[eE[tm]]&u)){f(e[eE[tm]])&O&&(i[eE[tm]]=tc);break}}if(tc!==eO){for(var tv=ts+1;tv<eE.length;tv++)if(!(i[eE[tv]]&u)){f(e[eE[tv]])&O&&(i[eE[tv]]=tc);break}}}}for(var tb=0;tb<eE.length;tb++)if(i[eE[tb]]&d){for(var ty=tb,tw=tb,t_=eR,tx=tb-1;tx>=0;tx--)if(i[eE[tx]]&u)ty=tx;else{t_=i[eE[tx]]&e5?x:_;break}for(var tS=eD,tC=tb+1;tC<eE.length;tC++)if(i[eE[tC]]&(d|u))tw=tC;else{tS=i[eE[tC]]&e5?x:_;break}for(var tk=ty;tk<=tw;tk++)i[eE[tk]]=t_===tS?t_:eO;tb=tw}}}for(var tI=g.start;tI<=g.end;tI++){var tA=a[tI],tT=i[tI];if(1&tA?tT&(_|S|I)&&a[tI]++:tT&x?a[tI]++:tT&(I|S)&&(a[tI]+=2),tT&u&&(a[tI]=0===tI?g.level:a[tI-1]),tI===g.end||f(e[tI])&(E|T))for(var tE=tI;tE>=0&&f(e[tE])&h;tE--)a[tE]=g.level}}return{levels:a,paragraphs:p};function tR(t,n){for(var o=t;o<e.length;o++){var r=i[o];if(r&(x|M))return 1;if(r&(T|_)||n&&r===W)break;if(r&l){var a=function(t){for(var n=1,o=t+1;o<e.length;o++){var r=i[o];if(r&T)break;if(r&W){if(0==--n)return o}else r&l&&n++}return -1}(o);o=-1===a?e.length:a}}return 0}},e.getMirroredCharacter=Y,e.getMirroredCharactersMap=function(e,t,i,n){var o=e.length;i=Math.max(0,null==i?0:+i),n=Math.min(o-1,null==n?o-1:+n);for(var r=new Map,a=i;a<=n;a++)if(1&t[a]){var s=Y(e[a]);null!==s&&r.set(a,s)}return r},e.getReorderSegments=U,e.getReorderedIndices=G,e.getReorderedString=function(e,t,i,n){var o=G(e,t,i,n),r=[].concat(e);return o.forEach(function(i,n){r[n]=(1&t.levels[i]?Y(e[i]):null)||e[i]}),r.join("")},e.openingToClosingBracket=b,Object.defineProperty(e,"__esModule",{value:!0}),e}({}),hQ=new Map;function h$(e,t){let i=hQ.get(e);return i||(i={ltr:void 0,rtl:void 0},hQ.set(e,i)),i[t]??=hX.getEmbeddingLevels(e,t),i[t]}function hJ(e,t){if(2===t)return"rtl";if(1===t)return"ltr";let i=function(e){let t=String(e||"");return hq.test(t)?"rtl":hK.test(t)?"ltr":"neutral"}(e);return"neutral"===i?"ltr":i}let h0=new WeakMap,h1=new WeakMap,h2={fontFamily:hT.FONT_NAME,fontSize:hT.FONT_SIZE+"pt"};function h3(e,t,i,n){void 0===n&&(n=1/0);let{runs:o}=function(e,t){let i,n;"string"==typeof e?(n=e,i=[{tx:e,s:null}]):(n=e.getText(),i=e.v);let o=[],{levels:r}=h$(n,t),a=0;for(let e of i){let t=0;for(;t<e.tx.length;){let i=r[a+t]%2==1,n=t+1;for(;n<e.tx.length&&r[a+n]%2==1===i;)n++;let s=e.tx.slice(t,n);o.push({text:s,font:e.s,isRtl:i}),t=n}a+=e.tx.length}return{runs:o}}(e,i);var r=h5(h4(o,t),n),a=i;let s=new hH(a);for(let{inlines:e,metrics:t}of r){let i=new hz(t);for(let t of e)i.addTextFragment(h6(t));s.addTextLine(i)}return s}function h4(e,t){let{font:i,forceBold:n=!1,forceItalic:o=!1}=t,r=[],a=hY(i,n,o);for(let{text:t,isRtl:i,font:s}of e){let e=s?hY(s,n,o):a,l={font:hU(e)},c=t.split("\n");for(let t=0;t<c.length;t++){let n=c[t];if(t>0&&r.push({type:"break"}),n.length>0){let t={type:"text",text:n,style:l};h0.set(t,i),h1.set(t,e),r.push(t)}}}return r}function h5(e,t){return hG.bk.create(e,{overflowWrapType:"break-word",whiteSpaceRule:{textWrapping:t===1/0?"nowrap":"wrap",endOfLineSpace:"hang",endOfLineOtherSpace:"hang"},defaultStyle:h2}).breakLines(t)}function h6(e){let{metrics:t,displayTextResult:{text:i},item:n}=e;return new hV(i,t.width,h1.get(n)||null,h0.get(n)||!1)}function h8(e,t){return h9(t,t=>e.getGroupPlugin().getRowGroupLevel(t),t=>e.isHiddenRow(t),e.countRows())}function h7(e,t){return h9(t,t=>e.getGroupPlugin().getColGroupLevel(t),t=>e.isHiddenCol(t),e.countCols())}function h9(e,t,i,n){return e.map((o,r)=>{let a=[],s=t(o),l=t(o-1),c=t(o+1),d=Math.max(s,c);for(let e=1;e<=d;e++){let t={isFirst:!1,isLast:!1,icon:null};l<e&&e<=s&&(t.isFirst=!0),s<e&&e<=c?t.icon={isCollapse:!1}:c<e&&e<=s&&(t.isLast=!0),a.push(t)}if(c>s){let s=r===e.length-1?n:e[r+1],l=c+1;for(let e=o+1;e<s&&i(e);e++)l=Math.min(l,t(e+1)+1);for(let e=l;e<=c;e++){let t=a[e-1].icon;t&&(t.isCollapse=!0)}}return a})}function pe(e,t){return`${e}-${t}`}class pt{constructor(e){this.range=e,this.cellWithPadding=new Set}addCellWithPadding(e,t){this.cellWithPadding.add(pe(e,t))}removeCellWithPadding(e,t){this.cellWithPadding.delete(pe(e,t))}hasPadding(e,t){return this.cellWithPadding.has(pe(e,t))}}var pi=i(46342);let pn=Math.floor(6.5);function po(e){if(!e)return 0;let t=e.indent;return("foldBtn"in e?e.foldBtn!==sr.None:!!e.fold)||t>0?(t+1)*17:0}function pr(e,t,i,n,o){return void 0===o&&(o=1),{x:e.x+(4+17*t+pn)*o,y:function(e,t,i,n){if(void 0===n&&(n=1),"middle"===t)return e.y+e.height/2;let o=Math.max(Math.floor(i/2),pn);return"bottom"===t?e.y+e.height-(3+o)*n:e.y+(2+o)*n}(e,i,n,o)}}function pa(e,t){void 0===t&&(t={});let i=new tx.Zx().assign({size:9,name:"Arial",...t}),n={font:hU(i)},{lineBoundingBoxAscent:o}=(0,pi.measureLine)(n),r=new hz({height:18,lineBoxAscent:o}),{width:a}=(0,pi.measureText)(e,n);return r.addTextFragment(new hV(e,a,i,!1)),r}function ps(e,t){void 0===t&&(t={});let i=new hH;i.addTextLine(pa(e,t));let n=new hN(i);return n.setValign("top"),n}class pl{constructor(e){this.hot=e,this._filterInfo=null,this._foldInfo=null,this._filterMenuCoord=null,this.initHook()}initHook(){this.hot.addHook("afterOnCellDblClick",(e,t)=>this.onCellDblClick(t)),this.hot.addHook("beforeOnCellMouseDown",(e,t)=>this.checkMouseDown(e,t)),this.hot.addHook("afterOnCellMouseOver",(e,t,i,n)=>this.afterOnCellMouseOver(e,t,i,n))}isPivotTableEnabled(){return this.hot.getDataBridge().getWorkbook().isPivotTableEnabled()}async onCellDblClick(e){let t=this.hot.sheet;if(!t||t.getWorkbook().isReadonly())return;let i=t.getCellProperty(e.row,e.col,"pivot");if(!this.isPivotTableEnabled()||t.getWorkbook().getPivotTableManager().isIncompatibleTable(i?.tableId??"")||i?.axis!=="data")return;let n=await this.hot.getAction().createPivotDetailSheet(i.tableId,e.row,e.col);n&&this.hot.getDataBridge().setCurrent(n)}checkMouseDown(e,t){let i=this.hot.sheet;if(u8(e)||!i||i.getWorkbook().isReadonly()||(0,dl.lz)(e))return;let n=i.getMergePlugin().getMergedRange(t.row,t.col),o=n?n.from:t,r=n?n.to:t,a=this.hot.view.getRangeViewBound(o.row,o.col,r.row,r.col,!1),{row:s,col:l}=o,c=i.getCellProperty(s,l,"pivot"),d=this.hot.view.getViewPoint({x:e.pageX,y:e.pageY});this.checkHoverFilter(d,s,l,a,c),this.checkHoverFold(d,s,l,a,c),this.checkFilterMouseDown(e)||this.checkFoldMouseDown(e)}checkFilterMouseDown(e){if(!this._filterInfo)return!1;u6(e),e.stopPropagation();let{row:t,col:i,dropdownBound:n,tableId:o,fieldId:r,axis:a}=this._filterInfo;return this.clearMenu(),this.setMenu(t,i),this.hot.getUIBridge().editor.filter.show(n,{row:t,col:i},{tableId:o,fieldId:r,axis:a}),!0}async checkFoldMouseDown(e){if(!this._foldInfo)return!1;u6(e),e.stopPropagation();let t=this._foldInfo,{tableId:i,fieldId:n,item:o,folded:r}=t;return await this.hot.getAction().setPivotFieldItemAttr(i,n,"folded",[[o,r]])&&t===this._foldInfo&&this._setFoldInfo({...this._foldInfo,folded:!r}),!0}afterOnCellMouseOver(e,t,i,n){let o=this.hot.sheet;if(!o||o.getWorkbook().isReadonly())return;let{row:r,col:a}=i?.from??t,s=o.getCellProperty(r,a,"pivot"),l=this.hot.view.getViewPoint({x:e.pageX,y:e.pageY});this.checkHoverFilter(l,r,a,n,s),this.checkHoverFold(l,r,a,n,s)}checkHoverFilter(e,t,i,n,o){if(!o||!o.axis||o.filterBtn===so.None||!this.isPivotTableEnabled()||this.isIncompatibleTable(o.tableId))return void this._clearFilterInfo();let r=hL(n,this.hot.view.viewport.getZoomLevel());if(e.x<r.x||e.x>r.x+r.width||e.y<r.y||e.y>r.y+r.height)return void this._clearFilterInfo();this._clearFilterInfo();let a=this.hot.view.toPageBound(r);this._setFilterInfo({row:t,col:i,dropdownBound:a,tableId:o.tableId,axis:o.axis,fieldId:o.field})}checkHoverFold(e,t,i,n,o){let{x:r,y:a}=e;if(!o||o.foldBtn===sr.None||!o.field||!o.item||!this.isPivotTableEnabled()||this.isIncompatibleTable(o.tableId))return void this._clearFoldInfo();let s=this.hot.view.getRenderInfo(t,i),l=s?.foreInfo.valign??"top",c=s?.foreInfo.text?.getHeight()??13,d=this.hot.view.viewport.getZoomLevel(),u=pr(n,o.indent,l,c,d),h=pn*d;if(r<u.x-h||r>u.x+h||a<u.y-h||a>u.y+h)return void this._clearFoldInfo();this._clearFoldInfo(),this._setFoldInfo({row:t,col:i,tableId:o.tableId,fieldId:o.field,item:o.item,folded:o.foldBtn!==sr.Unfold})}isIncompatibleTable(e){let t=this.hot.sheet?.getWorkbook().getPivotTableManager();return!!t&&t.isIncompatibleTable(e)}setMenu(e,t){this._filterMenuCoord={row:e,col:t},this.hot.view.rerenderFilterDropdown(e,t,!0)}clearMenu(){if(!this._filterMenuCoord)return;let{row:e,col:t}=this._filterMenuCoord;this.hot.view.rerenderFilterDropdown(e,t,!1),this._filterMenuCoord=null}_setFilterInfo(e){this._filterInfo=e;let{row:t,col:i}=this._filterInfo;this.hot.view.rerenderFilterDropdown(t,i,!0)}_clearFilterInfo(){if(!this._filterInfo)return;let{row:e,col:t}=this._filterInfo;this._filterInfo=null,this._filterMenuCoord&&this._filterMenuCoord.row===e&&this._filterMenuCoord.col===t||this.hot.view.rerenderFilterDropdown(e,t,!1)}_setFoldInfo(e){this._foldInfo=e;let{row:t,col:i}=this._foldInfo;this.hot.view.rerenderPivotFold(t,i,!0)}_clearFoldInfo(){if(!this._foldInfo)return;let{row:e,col:t}=this._foldInfo;this._foldInfo=null,this.hot.view.rerenderPivotFold(e,t,!1)}async setPivotCellValue(e,t,i){let n=this.hot.sheet;if(!n||n.getWorkbook().isReadonly())return!1;let o=n.getCellProperty(e,t,"pivot");if(!o||null==o.edit)return!1;let{edit:r,tableId:a,field:s,item:l,axis:c}=o,d=this.hot.getAction();if(r===sa.ItemName)return d.setPivotCellAsItemName(a,s,l,i);if(r===sa.FieldName||r===sa.ValuesCaption)return d.setPivotCellAsFieldName(a,s,c,i,r===sa.ValuesCaption);if(r===sa.DataFieldName)return d.setPivotCellAsDataFieldName(a,s,l,i);if(r===sa.FilterItem)return d.setPivotCellAsFilterItem(a,s,l,i);if(r===sa.SubtotalCaption)return d.setPivotCellAsSubtotalCaption(a,s,l,i);else if(r===sa.GrandTotalCaption)return d.setPivotCellAsGrandTotalCaption(a,i);else if(r===sa.ColumnHeaderCaption)return d.setPivotCellAsColumnHeaderCaption(a,i);else if(r===sa.RowHeaderCaption)return d.setPivotCellAsRowHeaderCaption(a,i);return!1}}function pc(e){return e.getHeight()+4}function pd(e,t,i,n){let o=e.getComputedCellStyle(t,i).getBorder().b;return o&&o[n]}class pu{constructor({drawer:e,topDrawer:t},i,n,o,r,a){this.sheet=i,this.rowIndices=n,this.colIndices=o,this._initFromOptions(r||{}),this._uiBridge=a,this._plugins={condition:this.sheet.getCfPlugin(),filter:this.sheet.getFilterPlugin(),merge:this.sheet.getMergePlugin(),hidden:this.sheet.getHiddenPlugin(),validation:this.sheet.getValidationPlugin()},this._drawer=e,this._topDrawer=t,this._mergedInfos=this._cacheMergedInfos(),this._textViewCache=[],this._renderInfo=null,this._firstRowGroupInfo=[],this._rowGroupInfo=[],this._firstColGroupInfo=[],this._colGroupInfo=[],this._rowSelected=[],this._colSelected=[],this._filterInfo=this.isHistory()||this.isPrint()?null:function(e){let t=e.getFilterPlugin().getActiveFilterJSON()?.range;if(!t)return null;let i=new pt(t),n=t[0];for(let e=t[1];e<=t[3];e++)i.addCellWithPadding(n,e);for(let o of e.getMergePlugin().getOverlap(new eA.GJ(t[0],t[1],t[0],t[3]))){let e=Math.max(o.from.col,t[1]),r=Math.min(o.to.col,t[3]);for(let t=e;t<=r;t++)i.removeCellWithPadding(n,t);i.addCellWithPadding(o.from.row,o.from.col)}return i}(this.sheet),this._rowHeaderBound=[],this._colHeaderBound=[],this._fixedWidth=null,this._fixedHeight=null,this._outsideOverflowLimit=Math.max(2*o.reduce((e,t)=>e+i.getColWidth(t),0),5e3)}_initFromOptions(e){this.includeHeader=!!e.includeHeader,this.scaleRatio=e.scaleRatio||1,this._gridColor=void 0===e.gridColor?hT.BORDER_COLOR:e.gridColor,this._headerColor=e.isFilterView?hO:hD,this._mode=e.mode||"normal",this._fixedRowIndex=void 0!==e.fixedRowIndex&&e.fixedRowIndex,this._fixedRowAmount=!1===this._fixedRowIndex?0:this._fixedRowIndex+1,this._fixedColIndex=void 0!==e.fixedColIndex&&e.fixedColIndex,this._fixedColAmount=!1===this._fixedColIndex?0:this._fixedColIndex+1,this._startGridX=this.isPrint()?0:c7(this.sheet.getGroupPlugin().getMaxRowGroupLevel()),this._startGridY=this.isPrint()?0:c7(this.sheet.getGroupPlugin().getMaxColGroupLevel()),this._startX=e.startX??(this.includeHeader?tu.Z.ROW_HEADER_WIDTH+this._startGridX:1),this._startY=e.startY??(this.includeHeader?tu.Z.COL_HEADER_HEIGHT+this._startGridY:1),this._bottomRightOffsetY=e.bottomRightOffsetY??0,this._bottomRightOffsetX=e.bottomRightOffsetX??0}isHistory(){return"history"===this._mode}isPrint(){return"print"===this._mode}trimRow(e){this.rowIndices.length=e,this._textViewCache.length=e,this._mergedInfos.length=e}_calcWidth(e,t){let i=0;for(let n=e;n<=t;n++)i+=this.sheet.getColWidth(n);return i}_calcHeight(e,t){let i=0;for(let n=e;n<=t;n++)i+=this.sheet.getRowHeight(n);return i}_createBound(e,t,i,n){return{x:e,y:t,width:i,height:n}}_generateRowHeaderBound(){let e=this._startY;this._rowHeaderBound=[];for(let t=0;t<this.rowIndices.length;t++){let i=t===this._fixedRowAmount?this._bottomRightOffsetY:0,n=this.rowIndices[t],o=this.sheet.getRowHeight(n),r=this._createBound(this._startGridX,e+i,tu.Z.ROW_HEADER_WIDTH,o);this._rowHeaderBound.push({cellBound:r,clipBound:0===i?r:this._createBound(this._startGridX,e,tu.Z.ROW_HEADER_WIDTH,o+i)}),e+=o+i}}_generateColHeaderBound(){let e=this._startX;this._colHeaderBound=[];for(let t=0;t<this.colIndices.length;t++){let i=t===this._fixedColAmount?this._bottomRightOffsetX:0,n=this.colIndices[t],o=this.sheet.getColWidth(n),r=this._createBound(e+i,this._startGridY,o,tu.Z.COL_HEADER_HEIGHT);this._colHeaderBound.push({cellBound:r,clipBound:0===i?r:this._createBound(e,this._startGridY,o+i,tu.Z.COL_HEADER_HEIGHT)}),e+=o+i}}getFixedWidth(){return this._fixedWidth??=this._fixedColAmount>0?this._calcWidth(0,this._fixedColAmount-1):0}getFixedHeight(){return this._fixedHeight??=this._fixedRowAmount>0?this._calcHeight(0,this._fixedRowAmount-1):0}getAreaBound(){let e=this.getFixedWidth(),t=this.getFixedHeight(),i=this.getRightOffset()-e,n=this.getBottomOffset()-t;return{topLeft:this._createBound(this._startX,this._startY,e,t),topRight:this._createBound(this._startX+e,this._startY,i,t),bottomLeft:this._createBound(this._startX,this._startY+t,e,n),bottomRight:this._createBound(this._startX+e,this._startY+t,i,n)}}_overrideForeInfo(e,t,i){e&&t&&pc(t)>i.height&&e.setValign("top")}generateRenderInfo(){this._renderInfo=this._createEmptyCache(),this._generateRowHeaderBound(),this._generateColHeaderBound();for(let e=0,t=this.rowIndices.length;e<t;e++){let t=this.rowIndices[e];for(let i=0,n=this.colIndices.length;i<n;i++){let n=this.colIndices[i],o=null,r=null,a=this.getMergedInfo(e,i),s=this._getTextView(e,i);if(this._isVisibleCell(e,i)){let{startRow:e=t,startCol:i=n}=a||{},l=this.sheet.getComputedCellStyle(e,i);o=this._createBackInfo(e,i,l),r=this._createForeInfo(e,i,l,s,o)}if(this._isMergedEdge(e,i)&&(o=this._adjustMergedBackInfo(e,i,a,o)),null!==o||null!==r){let l,{y:c,height:d}=this._rowHeaderBound[e].cellBound,{x:u,width:h}=this._colHeaderBound[i].cellBound,{cellBound:p,textBound:f,borderBound:g}=this._generateBound(t,n,u,c,h,d,a);if(e===this._fixedRowAmount||i===this._fixedColAmount){let t=Math.max(p.x,this._colHeaderBound[i].clipBound.x),n=Math.max(p.y,this._rowHeaderBound[e].clipBound.y);l=this._createBound(t,n,p.x+p.width-t,p.y+p.height-n)}this._overrideForeInfo(r,s,p),this._renderInfo[e][i]={foreInfo:r,backInfo:o,cellBound:p,textBound:f,borderBound:g,clipBound:l}}}}this._calcTextOverflow()}isEmpty(){return null===this._renderInfo||0===this._renderInfo.length}drawAll(e){0!==this.rowIndices.length&&0!==this.colIndices.length&&(this._drawer.drawCanvasBackground(this.isPrint()?"#FFFFFF":"#ECEEF0"),this.isPrint()||this.drawGroup(),this.drawEach(this._backgroundDrawer,this._isNormal),this.drawGridLine(),this.drawEach(this._backgroundDrawer,this._isMerged),this.drawEach(this._borderDrawer,this._hasBorderCell),this.drawEach(this._foregroundDrawer),this._drawAllFilterDropdown(),this.includeHeader&&(this.drawHeader(e),this.drawTopLayer()),this.drawEmptyPivotTable())}drawHeader(e){this._translateSelections(e);let t=new hM;t.setFill(this._headerColor.normal.fill);let i=this._createBound(this._startGridX,this._startGridY,tu.Z.ROW_HEADER_WIDTH,tu.Z.COL_HEADER_HEIGHT);this._drawer.drawCellBackground(t,i);for(let e=0,t=this.rowIndices.length;e<t;e++)this._drawRowHeader(e);for(let e=0,t=this.colIndices.length;e<t;e++)this._drawColHeader(e)}drawTopLayer(){this._topDrawer.clear();let e=this._startGridX+tu.Z.ROW_HEADER_WIDTH,t=this._startGridY+tu.Z.COL_HEADER_HEIGHT;null!==this._gridColor&&(this._topDrawer.drawAxisLine(this._startGridX,t,this.getRightOffset(),t,this._gridColor),this._topDrawer.drawAxisLine(e,this._startGridY,e,this.getBottomOffset(),this._gridColor)),this._drawHorizontalFreezeBar(),this._drawVerticalFreezeBar()}_drawHorizontalFreezeBar(){if(!1===this._fixedRowIndex)return;let e=-1!==this._fixedRowIndex,t=this._rowHeaderBound[e?this._fixedRowIndex:0].cellBound;if(t){let i=e?t.y+t.height:t.y;this._topDrawer.drawHorizontalLine(i-.5,0,this.getRightOffset(),hR,3)}}_drawVerticalFreezeBar(){if(!1===this._fixedColIndex)return;let e=-1!==this._fixedColIndex,t=this._colHeaderBound[e?this._fixedColIndex:0].cellBound;if(t){let i=e?t.x+t.width:t.x;this._topDrawer.drawVerticalLine(i-.5,0,this.getBottomOffset(),hR,3)}}_translateSelections(e){if(this._rowSelected=[],this._colSelected=[],e&&0!==e.length)for(let t=0;t<e.length;t++){let i=e[t].cellRange;if(!i)continue;let n=i.getTopLeftCorner(),o=i.getBottomRightCorner(),r=eu(this.rowIndices,n.row);for(;r<this.rowIndices.length&&this.rowIndices[r]<=o.row;r++)this._rowSelected[r]=!0;let a=eu(this.colIndices,n.col);for(;a<this.colIndices.length&&this.colIndices[a]<=o.col;a++)this._colSelected[a]=!0}}_drawRowHeader(e){let t=this.rowIndices[e],{cellBound:i,clipBound:n}=this._rowHeaderBound[e],o=new hM;o.setBottomBorder(this._gridColor);let r=this._filterInfo?.range,a=r&&r[0]<=t&&r[2]>=t,s=this._headerColor[a?"filter":"normal"];o.setFill(this._rowSelected[e]?s.select:s.fill),this._drawer.drawCellBackground(o,n),this._drawer.drawCellBorder(o,i,n),this._drawer.drawHeaderText(""+(t+1),i,n,this._headerColor.font),this._plugins.hidden.hasDownArrow(t)&&this._drawer.drawDownArrowSpreader(i,n,!1),this._plugins.hidden.hasUpArrow(t)&&this._drawer.drawUpArrowSpreader(i,n,!1)}_drawColHeader(e){let t=this.colIndices[e],{cellBound:i,clipBound:n}=this._colHeaderBound[e],o=new hM;o.setRightBorder(this._gridColor);let r=this._filterInfo?.range,a=r&&r[1]<=t&&r[3]>=t,s=this._headerColor[a?"filter":"normal"];o.setFill(this._colSelected[e]?s.select:s.fill),this._drawer.drawCellBackground(o,n),this._drawer.drawCellBorder(o,i,n),this._drawer.drawHeaderText(function(e){let t,i=e+1,n="";for(;i>0;)n=String.fromCharCode(65+(t=(i-1)%26))+n,i=parseInt((i-t)/26,10);return n}(t),i,n,this._headerColor.font),this._plugins.hidden.hasRightArrow(t)&&this._drawer.drawRightArrowSpreader(i,n,!1),this._plugins.hidden.hasLeftArrow(t)&&this._drawer.drawLeftArrowSpreader(i,n,!1)}_isNormal(e,t){return null===this.getMergedInfo(e,t)}_isMerged(e,t){let i=this.getMergedInfo(e,t);if(null===i)return!1;let{startRowIndex:n,startColIndex:o}=i;return e===n&&t===o}_isMergedEdge(e,t){let i=this.getMergedInfo(e,t);if(null===i)return!1;let{startRowIndex:n,startColIndex:o,endRowIndex:r,endColIndex:a}=i;return e===n||e===r||t===o||t===a}_isVisibleCell(e,t){return this._isNormal(e,t)||this._isMerged(e,t)}_hasBorderCell(e,t){return this._isNormal(e,t)||this._isMergedEdge(e,t)}_borderDrawer(e){let{backInfo:t,borderBound:i,clipBound:n}=e;this._drawer.drawCellBorder(t,i,n)}_backgroundDrawer(e){let{backInfo:t,cellBound:i,clipBound:n}=e;this._drawer.drawCellBackground(t,n||i)}_foregroundDrawer(e){let{foreInfo:t,backInfo:i,cellBound:n,clipBound:o,textBound:r,textClipBound:a}=e;this._drawer.drawCellForeground(t,n,r,i.fill,a??o)}drawEach(e,t){void 0===t&&(t=this._isVisibleCell);for(let i=0,n=this.rowIndices.length;i<n;i++)for(let n=0,o=this.colIndices.length;n<o;n++)if(t.call(this,i,n)){let t=this._renderInfo[i][n];t&&e.call(this,t)}}drawGridLine(){if(null===this._gridColor)return;let e=this.getRightOffset();this._drawer.drawAxisLine(this._startGridX,this._startY,e,this._startY,this._gridColor);for(let t=0;t<this._rowHeaderBound.length;t++){let i=this._rowHeaderBound[t].clipBound,n=i.y+i.height;this._drawer.drawAxisLine(this._startGridX,n,e,n,this._gridColor)}let t=this.getBottomOffset();this._drawer.drawAxisLine(this._startX,this._startGridY,this._startX,t,this._gridColor);for(let e=0;e<this._colHeaderBound.length;e++){let i=this._colHeaderBound[e].clipBound,n=i.x+i.width;this._drawer.drawAxisLine(n,this._startGridY,n,t,this._gridColor)}}drawGroup(){this._firstRowGroupInfo=h8(this.sheet,[-1])[0],this._drawer.drawGroupInfoArray("row",this._firstRowGroupInfo,this._colHeaderBound[0].cellBound),this._rowGroupInfo=h8(this.sheet,this.rowIndices);for(let e=0;e<this._rowGroupInfo.length;e++){let t=this._rowGroupInfo[e],i=this._rowHeaderBound[e],n=e===this._fixedRowAmount?{x:0,y:i.clipBound.y,width:this._startGridX,height:i.clipBound.height}:void 0;this._drawer.drawGroupInfoArray("row",t,i.cellBound,n)}this._firstColGroupInfo=h7(this.sheet,[-1])[0],this._drawer.drawGroupInfoArray("col",this._firstColGroupInfo,this._rowHeaderBound[0].cellBound),this._colGroupInfo=h7(this.sheet,this.colIndices);for(let e=0;e<this._colGroupInfo.length;e++){let t=this._colGroupInfo[e],i=this._colHeaderBound[e],n=e===this._fixedColAmount?{x:i.clipBound.x,y:0,width:i.clipBound.width,height:this._startGridY}:void 0;this._drawer.drawGroupInfoArray("col",t,i.cellBound,n)}}_drawFilterDropdown(e,t,i){let n=this.getMergedInfo(e,t),{backInfo:o,clipBound:r}=n?this._renderInfo[n.startRowIndex][n.startColIndex]:this._renderInfo[e][t],a=this._createBound(this._colHeaderBound[t].cellBound.x,this._rowHeaderBound[e].cellBound.y,this._colHeaderBound[t].cellBound.width,this._rowHeaderBound[e].cellBound.height),s=new hB(i,this._plugins.filter.hasCondition(this.colIndices[t]),!1);this._drawer.drawFilterDropdown(a,a,s,o.fill,r)}_drawAllFilterDropdown(){if(!this._filterInfo)return;let e=this._filterInfo.range,t=e[0],i=this.rowIndices.indexOf(t);if(-1===i)return;let n=eu(this.colIndices,e[1]);for(;n<this.colIndices.length&&this.colIndices[n]<=e[3];)this._drawFilterDropdown(i,n,!1),n+=1}redrawFilterDropdown(e,t,i){if(this._filterInfo?.range[0]===e&&this._filterInfo.range[1]<=t&&this._filterInfo.range[3]>=t){let n=ep(this.rowIndices,e),o=ep(this.colIndices,t);-1!==n&&-1!==o&&this._drawFilterDropdown(n,o,i)}else this._redrawDropdown(e,t,e=>{let{cellBound:t,textBound:n,clipBound:o,foreInfo:r,backInfo:a}=e,{dropdown:s}=r,{fill:l}=a;s.constructor===hB&&(s.setHover(i),this._drawer.drawFilterDropdown(t,n,s,l,o))})}redrawValidationDropdown(e,t,i){this._redrawDropdown(e,t,e=>{let{cellBound:t,textBound:n,clipBound:o,foreInfo:r,backInfo:a}=e,{dropdown:s}=r,{fill:l}=a;s.constructor===hF&&(s.setHover(i),this._drawer.drawValidationDropdown(t,n,s,l,o))})}_redrawDropdown(e,t,i){let n=ep(this.rowIndices,e),o=ep(this.colIndices,t);if(-1===n||-1===o)return;let r=this.getMergedInfo(n,o);r&&(e=r.startRow,t=r.startCol,n=r.startRowIndex,o=r.startColIndex);let a=this._renderInfo[n][o];a?.foreInfo.dropdown&&i(a)}redrawRowSpreader(e,t,i){let n=ep(this.rowIndices,e);if(-1===n)return;let o=t?n:n-1,r=t?n+1:n;this._redrawRowSpreader(o,!0,i),this._redrawRowSpreader(r,!1,i)}_redrawRowSpreader(e,t,i){if(e<0||e>=this._rowHeaderBound.length)return;if(!i)return void this._drawRowHeader(e);let{cellBound:n,clipBound:o}=this._rowHeaderBound[e];t?this._drawer.drawUpArrowSpreader(n,o,i):this._drawer.drawDownArrowSpreader(n,o,i)}redrawColSpreader(e,t,i){let n=ep(this.colIndices,e);if(-1===n)return;let o=t?n:n-1,r=t?n+1:n;this._redrawColSpreader(o,!0,i),this._redrawColSpreader(r,!1,i)}_redrawColSpreader(e,t,i){if(e<0||e>=this._colHeaderBound.length)return;if(!i)return void this._drawColHeader(e);let{cellBound:n,clipBound:o}=this._colHeaderBound[e];t?this._drawer.drawLeftArrowSpreader(n,o,i):this._drawer.drawRightArrowSpreader(n,o,i)}reDrawPivotFold(e,t,i){this._redrawPivotFold(e,t,e=>{let{foreInfo:t,textBound:n,clipBound:o,backInfo:r}=e;t.fold&&(t.fold.hover=i,this._drawer.drawPivotFold(t,n,r.fill,o))})}_redrawPivotFold(e,t,i){let n=ep(this.rowIndices,e),o=ep(this.colIndices,t);if(-1===n||-1===o)return;let r=this.getMergedInfo(n,o);r&&(e=r.startRow,t=r.startCol,n=r.startRowIndex,o=r.startColIndex),i(this._renderInfo[n][o])}_createPivotForeInfo(){let e=this._uiBridge.getString("pivot_table","axis_row"),t=this._uiBridge.getString("pivot_table","axis_col"),i=this._uiBridge.getString("pivot_table","axis_data"),n=this._uiBridge.getString("pivot_table","empty_pivot_table_message").split("<br/>");if(e&&t&&i&&n[0])return function(e){let t=ps(e.row),i=ps(e.col,{color:"FFFFFF"}),n=ps(e.value),o=new hN(new hH);for(let t of e.message)o.text.addTextLine(pa(t));return o.setValign("middle"),o.setHalign("center"),{row:t,col:i,value:n,message:o}}({row:e,col:t,value:i,message:n})}drawEmptyPivotTable(){let e=this.getAreaBound(),t=this._createPivotForeInfo();for(let{from:i,to:n}of this.sheet.getWorkbook().getPivotTableManager().listEmptyPivotRanges(this.sheet.sheetId)){let o=eu(this.rowIndices,i.row),r=eh(this.rowIndices,n.row)-1,a=eu(this.colIndices,i.col),s=eh(this.colIndices,n.col)-1;if(o===this.rowIndices.length||a===this.colIndices.length||o>r||a>s)continue;let l={x:this._colHeaderBound[s].cellBound.x-this._calcWidth(i.col,this.colIndices[s]-1),y:this._rowHeaderBound[r].cellBound.y-this._calcHeight(i.row,this.rowIndices[r]-1)},c={x:this._colHeaderBound[a].cellBound.x,y:this._rowHeaderBound[o].cellBound.y},d={width:this._calcWidth(i.col,i.col),height:this._calcHeight(i.row,i.row)},u={width:this._calcWidth(i.col+1,n.col),height:this._calcHeight(i.row+1,n.row)},h={x:0,y:this._calcHeight(i.row+1,i.row+2)},p={width:this._calcWidth(i.col+1,Math.min(i.col+3,n.col)),height:this._calcHeight(i.row+3,n.row-4)};if(this._fixedRowAmount>o&&this._fixedColAmount>a){let i={...c};this._drawer.drawPivotTable(i,d,u,h,p,e.topLeft,t)}if(this._fixedRowAmount>o&&this._fixedColAmount<=s){let i={x:l.x,y:c.y};this._drawer.drawPivotTable(i,d,u,h,p,e.topRight,t)}if(this._fixedRowAmount<=r&&this._fixedColAmount>a){let i={x:c.x,y:l.y};this._drawer.drawPivotTable(i,d,u,h,p,e.bottomLeft,t)}if(this._fixedRowAmount<=r&&this._fixedColAmount<=s){let i={...l};this._drawer.drawPivotTable(i,d,u,h,p,e.bottomRight,t)}}}_createEmptyCache(){let e=this.rowIndices.length,t=this.colIndices.length;if(0===e||0===t)return[];let i=[];for(let e=0;e<t;e++)i.push(null);let n=[i];for(let t=1;t<e;t++)n.push(i.slice());return n}_createMergedInfo(e){let{from:{row:t,col:i},to:{row:n,col:o}}=e,r=eu(this.rowIndices,t);if(r>=this.rowIndices.length||this.rowIndices[r]>n)return null;let a=eh(this.rowIndices,n)-1;if(-1===a)return null;let s=eu(this.colIndices,i);if(s>=this.colIndices.length||this.colIndices[s]>o)return null;let l=eh(this.colIndices,o)-1;return -1===l?null:{startRow:t,startCol:i,endRow:n,endCol:o,startRowIndex:r,startColIndex:s,endRowIndex:a,endColIndex:l}}_cacheMergedInfos(){let e=this._createEmptyCache();for(let t of this._plugins.merge.traverseMergedRange()){let i=this._createMergedInfo(t);if(null===i)continue;let{startRowIndex:n,startColIndex:o,endRowIndex:r,endColIndex:a}=i;for(let t=n;t<=r;t++)for(let n=o;n<=a;n++)e[t][n]=i}return e}getMergedInfo(e,t){return this._mergedInfos[e][t]}measureGrid(){let e=this._createEmptyCache(),t=new Map;for(let i=0,n=this.rowIndices.length;i<n;i++){let n=this.rowIndices[i];for(let o=0,r=this.colIndices.length;o<r;o++){let r,a=this.colIndices[o],{startRow:s=n,startCol:l=a,endCol:c=a,startRowIndex:d=i,startColIndex:u=o,endRowIndex:h=i}=this.getMergedInfo(i,o)||{};if(i!==d||o!==u)continue;let p=this.sheet.getCellTextDesc(s,l)?.v;if(!p)continue;let f=this.sheet.getComputedCellStyle(s,l),g=this.sheet.getCellProperty(s,l,"pivot"),m=this._plugins?.condition?.getComputedCfStyle(s,l),v=g?g.filterBtn!==so.None:this._filterInfo?.hasPadding(s,l)??!1,b=g?void 0:this.sheet.getCellProperty(s,l,"validId"),y=m?.bold||v,w=m?.italic;if("wrap"===f.getAlignment().wrap){r=this._calcWidth(l,c);let e=1;v?e+=hB.getPadding()+4:b&&this._plugins?.validation?.isDropdownValidation(b)?e+=hF.getPadding()+4:e+=8,g&&(e+=po(g)),r-=e}let _=this.sheet.getDataAtCell(s,l),x=this._createTextCellView((0,ts.is)(_)?_:p,{font:f.getFont(),forceBold:y,forceItalic:w},this.sheet.ensureCellDirection(s,l),r);if(e[i][o]=x,d===h){let e=pc(x);e>(t.get(n)?.height??0)&&t.set(n,{col:a,height:e})}}}return this._textViewCache=e,Array.from(t).map(e=>{let[t,{col:i,height:n}]=e;return{row:t,col:i,height:n}})}_createTextCellView(e,t,i,n){return h3(e,t,i,n)}_getTextView(e,t){return this._textViewCache[e][t]}_adjustMergedBackInfo(e,t,i,n){n=n||new hM;let{startRowIndex:o,startColIndex:r,endRowIndex:a,endColIndex:s,startRow:l,startCol:c,endRow:d,endCol:u}=i,h=this.rowIndices[e],p=this.colIndices[t];return n.setTopBorder(e===o?pd(this.sheet,l,p,0):null),n.setLeftBorder(t===r?pd(this.sheet,h,c,3):null),n.setRightBorder(t===s?pd(this.sheet,h,u,1)||this._gridColor:null),n.setBottomBorder(e===a?pd(this.sheet,d,p,2)||this._gridColor:null),n}_createBackInfo(e,t,i){let n=new hM,o=this.sheet.getCellProperty(e,t,"pivot");if(o?.style){let e=o.style;e.fill?.bg&&n.setFill(`#${e.fill.bg}`),e.border&&n.setBorder(e.border)}n.setStyle(i,!1);let r=this._plugins.condition.getComputedCfStyle(e,t);return r&&r.bgColor&&n.setFill("#"+r.bgColor),n}_createForeInfo(e,t,i,n,o){let r=new hN(n);r.setFont(i.getFont());let a=!this.isPrint(),s=this.sheet.getCellTextDesc(e,t);s&&r.setTextDesc(s),a&&r.setNotifyByMeta({comment:this.sheet.getCellProperty(e,t,"comment")?.[0],note:this.sheet.getCellNote(e,t),synoInvalid:this.sheet.getCellProperty(e,t,"synoInvalid")});let l=this._plugins.condition.getComputedCfStyle(e,t);return r.setCfStyle(l),r.setAlignmentStyle(i.getAlignment()),a&&this._generateDropdown(r,e,t,o),this._fillByPivotMeta(r,e,t),r}_generateDropdown(e,t,i,n){let o=this.sheet.getCellProperty(t,i,"pivot");if(o){if(!this.isHistory()&&o.filterBtn!==so.None){let t=this.sheet.getWorkbook().isReadonly()||!this.sheet.getWorkbook().isPivotTableEnabled()||this.sheet.getWorkbook().getPivotTableManager().isIncompatibleTable(o.tableId);e.setDropdown(new hB(!1,o.filterBtn===so.Filtered,t))}return}if(this._filterInfo?.hasPadding(t,i))e.setBold(!0),e.setDropdownPadding(hB.getPadding());else if(this._plugins.validation.isDropdownValidation(this.sheet.getCellProperty(t,i,"validId"))){let t=!!n.fill&&function(e){let t=parseInt(e,16);return 299*(t>>16&255)+587*(t>>8&255)+114*(255&t)<128e3}(n.fill.substr(1));e.setDropdown(new hF(!1,t))}}_fillByPivotMeta(e,t,i){let n=this.sheet.getCellProperty(t,i,"pivot");if(n){if(n.indent>0&&e.setIndent(n.indent),n.foldBtn!==sr.None){let t=this.sheet.getWorkbook().isReadonly()||!this.sheet.getWorkbook().isPivotTableEnabled()||this.sheet.getWorkbook().getPivotTableManager().isIncompatibleTable(n.tableId);e.setFold({collapsed:n.foldBtn===sr.Unfold,disabled:t})}n.style&&e.setTableFont(n.style.font??null)}}_generateBound(e,t,i,n,o,r,a){let s=this._createBound(i,n,o,r),l=s,c=s;if(null!==a){let s=o+this._calcWidth(t+1,a.endCol),d=r+this._calcHeight(e+1,a.endRow);l=this._createBound(i,n,s,d);let u=s+this._calcWidth(a.startCol,t-1),h=d+this._calcHeight(a.startRow,e-1),p=l.x-(u-l.width),f=l.y-(h-l.height);c=this._createBound(p,f,u,h)}return{cellBound:l,textBound:c,borderBound:s}}_calcTextOverflow(){for(let e=0,t=this.rowIndices.length;e<t;e++){let t=this.rowIndices[e];for(let i=0,n=this.colIndices.length;i<n;i++){if(this.getMergedInfo(e,i))continue;let o=this._renderInfo[e][i];if(!o||o.foreInfo.dropdownPadding>0)continue;let r=this.colIndices[i];if(!o.foreInfo.text){(0,eI.O2)(this.sheet.getDataAtCell(t,r))&&(i===this._fixedColAmount&&this._findOutsideOverflow(e,i,o,!0),(i===n-1||i===this._fixedColAmount-1)&&this._findOutsideOverflow(e,i,o,!1));continue}let a=this.sheet.getCellTextDesc(t,r)?.t,s=po(o.foreInfo);if((a===iy.NUM||a===iy.BOOL||s>0)&&o.cellBound.width<s+8+1+o.foreInfo.text.getWidth()&&o.foreInfo.setHalign("left"),this.sheet.getComputedCellStyle(t,r).getAlignment().wrap)continue;let l=pu.getOverflowWidth(o.cellBound.width,o.foreInfo.text,o.foreInfo.halign,s);l.left<=0&&l.right<=0||(o.textClipBound=(0,tl.d9)(o.clipBound||o.cellBound),this._calcTextClipBound(o.textClipBound,e,i,l.left,l.right))}}}_calcTextClipBound(e,t,i,n,o){let r=(e,t)=>{if(this.getMergedInfo(e,t))return!1;let i=this.rowIndices[e],n=this.colIndices[t];if(!(0,eI.O2)(this.sheet.getDataAtCell(i,n))||this.sheet.getSpillRange(i,n))return!1;let o=this._renderInfo[e][t];return!o||!(o.foreInfo.dropdownPadding>0)&&!o.foreInfo.fold},a=i-1,s=i>=this._fixedColAmount?this._fixedColAmount:0,l=this.sheet.isRtl(),c=l?o:n,d=l?n:o;for(;c>0&&a>=s&&r(t,a);){let i=this._colHeaderBound[a].clipBound.width,n=this._renderInfo[t][a+1];n.backInfo.setLeftBorder(null),(n=this._renderInfo[t][a]).backInfo.setRightBorder(n.backInfo.fill),e.x-=i,e.width+=i,c-=i,a-=1}let u=i+1,h=i<this._fixedColAmount?this._fixedColAmount-1:this.colIndices.length-1;for(;d>0&&u<=h&&r(t,u);){let i=this._colHeaderBound[u].clipBound.width,n=this._renderInfo[t][u];n.backInfo.setLeftBorder(null),(n=this._renderInfo[t][u-1]).backInfo.setRightBorder(n.backInfo.fill),e.width+=i,d-=i,u+=1}}_findOutsideOverflow(e,t,i,n){let o=this.rowIndices[e],r=this.colIndices[t],a=n?-1:1,s=n?-1:this.sheet.countCols(),l=0,c=r+a,d=!this.sheet.isRtl()===n,u=d?"left":"right";for(;c!==s&&l<this._outsideOverflowLimit;){if(this.sheet.isHiddenCol(c)){c+=a;continue}if(!this.isHistory()&&this._plugins.filter.hasDropdown(o,c)||this._plugins.validation.isDropdownValidation(this.sheet.getCellProperty(o,c,"validId"))||this._plugins.merge.getMergedRange(o,c))return;let r=this.sheet.getDataAtCell(o,c),s=this.sheet.getColWidth(c);if((0,eI.O2)(r)){l+=s,c+=a;continue}let h=this.sheet.getCellTextDesc(o,c),p=h?.v;if(!p)return;let f=this.sheet.getComputedCellStyle(o,c),g=f.getAlignment(),m=this.sheet.ensureCellDirection(o,c),v=g.halign||("rtl"===m?"right":"left");if(v!==u&&"center"!==v||g.wrap)return;let b=this._plugins.condition.getComputedCfStyle(o,c),y=h3((0,ts.is)(r)?r:p,{font:f.getFont(),forceBold:b?.bold,forceItalic:b?.italic},m),w=po(this.sheet.getCellProperty(o,c,"pivot")),_=pu.getOverflowWidth(s,y,v,w)[d?"right":"left"];if((_-=l)<0)return;let x=new hN(y);x.setFont(f.getFont()),x.setTextDesc(h),x.setNotify(i.foreInfo&&i.foreInfo.notify),x.setCfStyle(b),x.setAlignmentStyle(g),this._overrideForeInfo(x,y,i.cellBound),this._fillByPivotMeta(x,o,c),i.foreInfo=x;let S=(0,tl.d9)(i.textBound);S.x=n?S.x-l-s:S.x+l+S.width,S.width=s,i.textBound=S,i.textClipBound=(0,tl.d9)(i.clipBound||i.cellBound),d?this._calcTextClipBound(i.textClipBound,e,t,0,_-i.cellBound.width):this._calcTextClipBound(i.textClipBound,e,t,_-i.cellBound.width,0);return}}getBottomOffset(){if(0===this._rowHeaderBound.length)return this._startY;let e=this._rowHeaderBound[this._rowHeaderBound.length-1].cellBound;return e.y+e.height}getRightOffset(){if(0===this._colHeaderBound.length)return this._startX;let e=this._colHeaderBound[this._colHeaderBound.length-1].cellBound;return e.x+e.width}getRenderInfo(e,t){let i=eu(this.rowIndices,e);if(i>=this.rowIndices.length)return null;let n=eu(this.colIndices,t);return n>=this.colIndices.length?null:this._renderInfo[i][n]}_getRenderIndex(e,t){let i="row"===e?this.rowIndices:this.colIndices,n=eu(i,t);return n>=i.length||i[n]!==t?-1:n}getGroupInfo(e,t){if(-1===t)return"row"===e?this._firstRowGroupInfo:this._firstColGroupInfo;let i=this._getRenderIndex(e,t);return -1===i?null:("row"===e?this._rowGroupInfo[i]:this._colGroupInfo[i])??null}getHeaderBound(e,t){if(-1===t){let e=this._rowHeaderBound[0].cellBound,t=this._colHeaderBound[0].cellBound;return{x:e.x,y:t.y,width:e.width,height:t.height}}let i=this._getRenderIndex(e,t);return -1===i?null:("row"===e?this._rowHeaderBound[i]:this._colHeaderBound[i])?.clipBound??null}getClipBound(e,t){let i=this.getRenderInfo(e,t);return i?i.clipBound||i.cellBound:null}static getOverflowWidth(e,t,i,n){let o=Math.max(0,t.getWidth()+n-e+8),r=0,a=0;switch(i){case"right":r=o;break;case"center":r=a=o/2;break;default:a=o}return{left:r,right:a}}}let ph=pu;class pp{constructor(e){this.view=e;let t=document.createDocumentFragment(),i=u9(t,"scroller scroller-y"),n=u9(t,"scroller scroller-x"),o=u9(i,"scroller-track scroller-track-y"),r=u9(n,"scroller-track scroller-track-x"),a=u9(n,"scroller-corner"),s=u9(o,"scroller-thumb scroller-thumb-y"),l=u9(r,"scroller-thumb scroller-thumb-x");if((0,c9.isMobileLayout)()){let e="invisible";n.classList.add(e),i.classList.add(e)}e.rootElement.appendChild(t),this.containerY=i,this.containerX=n,this.corner=a,this.trackX=r,this.trackY=o,this.thumbX=l,this.thumbY=s,this.minLength=45,this.setupEventListeners(),this.borderSize=+!(0,c9.isMobileLayout)()}setupEventListeners(){this.trackX.addEventListener("mousedown",e=>this.onTrackPointerDown(e,"x")),this.trackY.addEventListener("mousedown",e=>this.onTrackPointerDown(e,"y")),this.trackX.addEventListener("touchstart",e=>this.onTrackPointerDown(e,"x")),this.trackY.addEventListener("touchstart",e=>this.onTrackPointerDown(e,"y")),this.thumbX.addEventListener("mousedown",e=>this.onThumbPointerDown(e,"x")),this.thumbY.addEventListener("mousedown",e=>this.onThumbPointerDown(e,"y")),this.thumbX.addEventListener("touchstart",e=>this.onThumbPointerDown(e,"x")),this.thumbY.addEventListener("touchstart",e=>this.onThumbPointerDown(e,"y")),this.containerY.addEventListener("mousedown",e=>this.onContainerPointerDown(e)),this.containerX.addEventListener("mousedown",e=>this.onContainerPointerDown(e)),this.containerY.addEventListener("touchstart",e=>this.onContainerPointerDown(e)),this.containerX.addEventListener("touchstart",e=>this.onContainerPointerDown(e)),this.containerY.addEventListener("contextmenu",e=>this.onContextMenu(e)),this.containerX.addEventListener("contextmenu",e=>this.onContextMenu(e)),this.getScroller().on("update",()=>this.updateScroller())}updateRtl(e){for(let t of[this.corner,this.trackX,this.containerY])t.classList.toggle("rtl",e);this.updateScroller()}getScroller(){return this.view.viewport.getScroller()}getTrackWidth(){return this.getScroller().getClientWidth()}getTrackHeight(){return this.getScroller().getClientHeight()}updateScroller(){let e=this.getScroller(),t=e.getScrollTop(),i=e.getScrollLeft(),n=e.getFrozenWidth(),o=e.getFrozenHeight(),r=e.getClientHeight(),a=e.getClientWidth(),s=e.getScrollHeight(),l=e.getScrollWidth(),c=this.thumbY.style,d=s>r;if(d){let e=this.trackY.style,i=this.getTrackHeight();e.top=pm(o-this.borderSize),e.height=pm(i);let n=Math.max(i*r/s,this.minLength),a=(i-n)*t/(s-r);c.height=pm(n),c.top=pm(a)}c.display=d?"":"none";let u=this.thumbX.style,h=l>a;if(h){let e=this.trackX.style,t=this.getTrackWidth();this.view.setViewPosition(this.trackX,0,n-this.borderSize),e.width=pm(t);let o=Math.max(t*a/l,this.minLength),r=(t-o)*i/(l-a);u.width=pm(o),this.view.setViewPosition(this.thumbX,0,r)}u.display=h?"":"none",(0,c9.isMobileLayout)()&&this.fadeOut()}fadeOut(){let e="fade";this.thumbX.classList.remove(e),this.thumbY.classList.remove(e),setTimeout(()=>{this.thumbX.classList.add(e),this.thumbY.classList.add(e)},1e3)}onThumbPointerDown(e,t){if(e instanceof MouseEvent&&(0,dl.lz)(e)){e.stopPropagation(),e.preventDefault();return}e.stopPropagation();let i=pf(e),n=pg(e),o=this.getScroller(),r=o.getScrollTop(),a=o.getScrollLeft(),s=o.getScrollHeight(),l=o.getScrollWidth(),c=o.getClientHeight(),d=o.getClientWidth(),u=this.getTrackHeight(),h=this.getTrackWidth(),p=e=>{e.preventDefault(),window.requestAnimationFrame(()=>{if("y"===t){let t=this.thumbY.offsetHeight,i=pg(e)-n;o.setScrollTop(r+(s-c)/(u-t)*i)}else if("x"===t){let t=this.thumbX.offsetWidth,n=pf(e)-i;o.setScrollLeft(this.view.reverseIfRtl(a+(l-d)/(h-t)*n))}})},f="y"===t?this.thumbY:this.thumbX,g=e=>{document.removeEventListener("mousemove",p),document.removeEventListener("mouseup",g),f.removeEventListener("touchmove",p),f.removeEventListener("touchend",g),f.removeEventListener("touchcancel",g)};document.addEventListener("mousemove",p),document.addEventListener("mouseup",g,{once:!0}),f.addEventListener("touchmove",p,{passive:!1}),f.addEventListener("touchend",g,{once:!0}),f.addEventListener("touchcancel",g,{once:!0})}onTrackPointerDown(e,t){if(e instanceof MouseEvent&&(0,dl.lz)(e)){e.stopPropagation(),e.preventDefault();return}let i=e.target?.getBoundingClientRect();if(!i||(0,c9.isMobileLayout)())return;e.stopPropagation();let n=this.getScroller();if("y"===t){let t=this.thumbY.offsetHeight,o=pg(e)-i.top-t/2;n.setScrollTop(o*n.getScrollHeight()/n.getClientHeight())}else if("x"===t){let t=this.thumbX.offsetWidth,o=(this.view.isRtl()?i.right-pf(e):pf(e)-i.left)-t/2;n.setScrollLeft(o*n.getScrollWidth()/n.getClientWidth())}}onContainerPointerDown(e){e.preventDefault(),e.stopPropagation()}onContextMenu(e){e.preventDefault(),e.stopPropagation()}}function pf(e){return e instanceof MouseEvent?e.pageX:e.targetTouches?.[0]?.pageX}function pg(e){return e instanceof MouseEvent?e.pageY:e.targetTouches?.[0]?.pageY}function pm(e){return Math.ceil(e)+"px"}function pv(e,t){let i=e.cfStyle,n=e.tableFont,o=t.getFont()??e.font;return{bold:o.bold||i?.bold||e.bold||n?.bold||!1,italic:o.italic||i?.italic||!1,size:o.size||hT.FONT_SIZE,name:o.name?o.name:hT.FONT_NAME,color:`#${i?.color||e.fontColor||o.color||n?.color||hT.FONT_COLOR}`,strike:o.strike||i?.strike||!1,underline:o.underline||i?.underline||e.underline||!1}}class pb{constructor(e,t={}){this.canvas=e,this.ctx=e.getContext("2d"),this.scale=t?.scale??1,this.rtl=t?.rtl??!1,this.rtl?this.ctx.transform(-1*this.scale,0,0,this.scale,this.canvas.width,0):1!==this.scale&&this.ctx.scale(this.scale,this.scale)}withRtlRectTransform(e,t,i){if(!this.rtl)return void i();this.ctx.save(),this.ctx.transform(-1,0,0,1,e+t+e,0),i(),this.ctx.restore()}drawCanvasBackground(e){this.ctx.save(),this.ctx.fillStyle=e,1!==this.scale&&this.ctx.scale(1/this.scale,1/this.scale),this.ctx.fillRect(0,0,this.canvas.width,this.canvas.height),this.ctx.restore()}clear(){this.ctx.save(),1!==this.scale&&this.ctx.scale(1/this.scale,1/this.scale),this.ctx.clearRect(0,0,this.canvas.width,this.canvas.height),this.ctx.restore()}_clipBound(e){let{x:t,y:i,width:n,height:o}=e;this.ctx.beginPath(),this.ctx.rect(t,i,n,o),this.ctx.clip()}drawCellBackground(e,t){this.ctx.save();let{x:i,y:n,width:o,height:r}=t;this.ctx.fillStyle=e.fill,this.ctx.fillRect(i,n,o,r),this.ctx.restore()}drawCellBorder(e,t,i){this.ctx.save();let{x:n,y:o,width:r,height:a}=t;i&&this._clipBound({x:i.x-1,y:i.y-1,width:i.width+1,height:i.height+1}),e.borderTopColor&&this.drawAxisLine(n,o,n+r,o,e.borderTopColor),e.borderLeftColor&&this.drawAxisLine(n,o,n,o+a,e.borderLeftColor),e.borderRightColor&&this.drawAxisLine(n+r,o,n+r,o+a,e.borderRightColor),e.borderBottomColor&&this.drawAxisLine(n,o+a,n+r,o+a,e.borderBottomColor),this.ctx.restore()}drawCellForeground(e,t,i,n,o){this.drawCellText(e,o||t,i),e.notify&&this.drawCellNotify(t.x+t.width,t.y,e.notify,o||t),e.dropdown&&this.drawDropdown(t,i,e.dropdown,n,o),e.fold&&this.drawPivotFold(e,i,n,o||t)}drawCellText(e,t,i){if(!e.text)return;this.ctx.save();let n=e.dropdownPadding,o=po(e);this.ctx.beginPath(),this._clipBound({...t,width:t.width-n});let{x:r,y:a,width:s,height:l}=i;r+=o,s-=n+o,this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",this.withRtlRectTransform(r,s,()=>{let t;switch(e.valign){case"top":t=a+2;break;case"bottom":t=a+l-1-2-e.text.getHeight();break;default:t=a+Math.round((l-e.text.getHeight())/2)}for(let i of e.text){let n;switch(e.halign){case"right":n=r+s-1-4-i.getWidth();break;case"center":n=r+Math.round((s-i.getWidth())/2);break;default:n=r+4}this._drawTextLine(n,t,i,e),t+=i.getLineHeight()}}),this.ctx.restore()}_getTextFragmentsWithDir(e,t){let i=[],n=[],o="rtl"===t;for(let t of e)t.getRtl()!==o?n.push(t):(n.length&&(i.push(...n.reverse()),n.length=0),i.push(t));return i.push(...n.reverse()),o?i.reverse():i}_drawTextLine(e,t,i,n){let o=t+i.getBaselineOffset(),r=n.text.getDirection();for(let t of this._getTextFragmentsWithDir(i,r)){let r=t.getWidth(),a=pv(n,t);if(this.ctx.fillStyle=a.color,this.ctx.font=hU(a),this.ctx.direction=t.getRtl()?"rtl":"ltr",this.ctx.fillText(t.getText(),e,o),a.strike){let t=o-Math.round(.2*i.getLineHeight());this.drawDecoration(t,e,e+r,a.color,a.size)}if(a.underline){let t=o+Math.max(1,Math.round(.1*i.getLineHeight()));this.drawDecoration(t,e,e+r,a.color,a.size)}e+=r}}drawDecoration(e,t,i,n,o){let r=Math.max(1,Math.round(4*o/45));this.drawHorizontalLine(e-r/2,t,i,n,r)}drawHeaderText(e,t,i,n){this.withRtlRectTransform(t.x,t.width,()=>{this.ctx.save(),this._clipBound(i),this.ctx.textAlign="center",this.ctx.textBaseline="middle",this.ctx.fillStyle=n,this.ctx.font="12px Roboto",this.ctx.fillText(e,t.x+t.width/2,t.y+t.height/2),this.ctx.restore()})}drawCellNotify(e,t,i,n){this.ctx.save(),n&&this._clipBound(n),this.ctx.fillStyle=i,this.ctx.beginPath(),this.ctx.moveTo(e-6,t),this.ctx.lineTo(e,t),this.ctx.lineTo(e,t+6),this.ctx.closePath(),this.ctx.fill(),this.ctx.restore()}drawDropdown(e,t,i,n,o){i&&(i.constructor===hB?this.drawFilterDropdown(e,t,i,n,o):i.constructor===hF&&this.drawValidationDropdown(e,t,i,n,o))}drawFilterDropdown(e,t,i,n,o){this.ctx.save(),o&&this._clipBound(o);let{x:r,y:a,width:s,height:l}=hL(e);this._drawRoundRect(r-.5,a-.5,s+1,l+1,2),this.ctx.fillStyle=n,this.ctx.fill(),i.disabled&&(this.ctx.globalAlpha=.4),this.ctx.fillStyle=i.getBgColor(),this.ctx.fill(),i.isActive()?(this.ctx.beginPath(),this.ctx.moveTo(r+2,a+2),this.ctx.lineTo(r+11,a+2),this.ctx.lineTo(r+11,a+3.68),this.ctx.lineTo(r+7.14,a+7.54),this.ctx.lineTo(r+7.14,a+10.36),this.ctx.lineTo(r+6.5,a+11),this.ctx.lineTo(r+5.86,a+11),this.ctx.lineTo(r+5.86,a+7.54),this.ctx.lineTo(r+2,a+3.68),this.ctx.lineTo(r+2,a+2),this.ctx.closePath(),this.ctx.fillStyle=i.getColor(),this.ctx.fill()):(this.drawHorizontalLine(a+3.5,r+2,r+11,i.getColor()),this.drawHorizontalLine(a+6.5,r+3,r+10,i.getColor()),this.drawHorizontalLine(a+9.5,r+4,r+9,i.getColor())),this.ctx.restore()}drawValidationDropdown(e,t,i,n,o){this.ctx.save(),o&&this._clipBound(o);let r=e.x+e.width-1-i.getPadding()+4,a=t.y+t.height/2;a>e.y&&(this.ctx.beginPath(),this.ctx.moveTo(r,a),this.ctx.lineTo(r+6,a),this.ctx.lineTo(r+3,a+3),this.ctx.lineTo(r,a),this.ctx.closePath(),this.ctx.fillStyle=n,this.ctx.fill(),this.ctx.fillStyle=i.getColor(),this.ctx.fill()),this.ctx.restore()}drawUpArrowSpreader(e,t,i){let n=e.x+3,o=e.y+e.height-4;this._drawArrowSpreader(e.x,e.y+e.height-10,[{x:n,y:o},{x:n+3,y:o-3},{x:n+6,y:o}],t,i)}drawDownArrowSpreader(e,t,i){let n=e.x+3,o=e.y+4;this._drawArrowSpreader(e.x,e.y,[{x:n,y:o},{x:n+3,y:o+3},{x:n+6,y:o}],t,i)}drawLeftArrowSpreader(e,t,i){let n=e.x+e.width-4,o=e.y+3;this._drawArrowSpreader(e.x+e.width-10,e.y,[{x:n,y:o},{x:n-3,y:o+3},{x:n,y:o+6}],t,i)}drawRightArrowSpreader(e,t,i){let n=e.x+4,o=e.y+3;this._drawArrowSpreader(e.x,e.y,[{x:n,y:o},{x:n+3,y:o+3},{x:n,y:o+6}],t,i)}_drawArrowSpreader(e,t,i,n,o){this.ctx.save(),n&&this._clipBound(n),o&&(this.ctx.fillStyle="#F6F8FA",this.ctx.fillRect(e,t,10,10),this.ctx.strokeStyle="#D8DADC",this.ctx.strokeRect(e,t,10,10)),this.ctx.beginPath(),this.ctx.moveTo(i[0].x,i[0].y),this.ctx.lineTo(i[1].x,i[1].y),this.ctx.lineTo(i[2].x,i[2].y),this.ctx.closePath(),this.ctx.fillStyle=o?"#2DB37B":"#56585A",this.ctx.fill(),this.ctx.restore()}drawGroupInfoArray(e,t,i,n){this.ctx.save(),n&&this._clipBound(n);let o="#BABCBE",r="row"===e?i.y:i.x,a="row"===e?i.y+i.height:i.x+i.width,s=Math.floor((r+a)/2);for(let i=1;i<=t.length;i++){let{isFirst:n,isLast:l,icon:c}=t[i-1],d=23*i-8,u=r,h=a;if(c){if(this._drawGroupIcon("row"===e?d:s,"row"===e?s:d,c.isCollapse),c.isCollapse)continue;u=s+c8}else(n||l)&&("row"===e?this.drawHorizontalLine(s,d,d+c8,o):this.drawVerticalLine(s,d,d+c8,o),l&&(h=s));"row"===e?this.drawVerticalLine(d,u,h,o):this.drawHorizontalLine(d,u,h,o)}this.ctx.restore()}drawPivotFold(e,t,i,n){var o,r;if(!e.fold)return;this.ctx.save();let{x:a,y:s}=pr(t,e.indent,e.valign,e.text?.getHeight()??13);n&&this._clipBound(n);let l=(o=e.fold.collapsed,r=e.fold.hover,o?r?"rgba(86, 88, 90)":"rgba(86, 88, 90, 0.85)":r?hE:"rgba(255, 255, 255, 0.85)");this._drawGroupIcon(a,s,e.fold.collapsed,e.fold.disabled,13,l,i),this.ctx.restore()}_drawGroupIcon(e,t,i,n,o,r,a){void 0===n&&(n=!1),void 0===o&&(o=15),void 0===r&&(r=i?"#56585A":"#FFFFFF");let s=Math.floor(o/2);this.ctx.save(),this._drawRoundRect(e-s,t-s,o,o,2),a&&(this.ctx.fillStyle=a,this.ctx.fill()),n&&(this.ctx.globalAlpha=.4),this.ctx.fillStyle=r,this.ctx.fill(),this.ctx.lineCap="round",this.drawHorizontalLine(t+.5,e-3,e+4,`#${i?"FFFFFF":"56585A"}`),i&&this.drawVerticalLine(e+.5,t-3,t+4,"#FFFFFF"),this.ctx.restore()}drawPivotTable(e,t,i,n,o,r,a){let s={x:e.x+t.width,y:e.y+t.height};if(this.ctx.save(),r&&this._clipBound(r),this.ctx.fillStyle=`#${sp[sc.HeaderRow]?.fill?.bg??"FFFFFF"}`,this.ctx.fillRect(e.x,e.y,t.width,t.height),this.ctx.fillStyle=`#${sp[sc.FirstColumn]?.fill?.bg??"FFFFFF"}`,this.ctx.fillRect(e.x,s.y,t.width,i.height-1),this.ctx.fillStyle=`#${sp[sc.FirstColumnSubheading]?.fill?.bg??"FFFFFF"}`,this.ctx.fillRect(s.x,e.y,i.width-1,t.height-1),this.ctx.fillStyle="#FFFFFF",this.ctx.fillRect(s.x,s.y,i.width-1,i.height-1),a){this.drawCellText(a.row,r,{x:e.x,y:s.y,width:t.width,height:i.height}),this.drawCellText(a.col,r,{x:s.x,y:e.y,width:i.width,height:t.height}),this.drawCellText(a.value,r,{x:s.x,y:s.y,width:i.width,height:i.height});let l={x:s.x+n.x,y:s.y+n.y,...o};this._drawBoxShadow(l,0,4,16,"rgba(0, 0, 0, 0.25)"),this.drawCellText(a.message,function(e,t){let i=Math.max(e.x,t.x),n=Math.max(e.y,t.y);return{x:i,y:n,width:Math.max(0,Math.min(e.x+e.width,t.x+t.width)-i),height:Math.max(0,Math.min(e.y+e.height,t.y+t.height)-n)}}(r,l),l)}this.ctx.restore()}_drawRoundRect(e,t,i,n,o){void 0===o&&(o=0),this.ctx.beginPath(),this.ctx.moveTo(e+o,t),this.ctx.lineTo(e+i-o,t),this.ctx.quadraticCurveTo(e+i,t,e+i,t+o),this.ctx.lineTo(e+i,t+n-o),this.ctx.quadraticCurveTo(e+i,t+n,e+i-o,t+n),this.ctx.lineTo(e+o,t+n),this.ctx.quadraticCurveTo(e,t+n,e,t+n-o),this.ctx.lineTo(e,t+o),this.ctx.quadraticCurveTo(e,t,e+o,t),this.ctx.closePath()}drawAxisLine(e,t,i,n,o){e===i&&(e-=.5,i-=.5),t===n&&(t-=.5,n-=.5),this.ctx.save(),this._drawLine(e,t,i,n,o),this.ctx.restore()}drawHorizontalLine(e,t,i,n,o){void 0===o&&(o=1),this.ctx.save(),this.ctx.lineWidth=o,this._drawLine(t,e,i,e,n),this.ctx.restore()}drawVerticalLine(e,t,i,n,o){void 0===o&&(o=1),this.ctx.save(),this.ctx.lineWidth=o,this._drawLine(e,t,e,i,n),this.ctx.restore()}_drawLine(e,t,i,n,o){this.ctx.strokeStyle=o,this.ctx.beginPath(),this.ctx.moveTo(e,t),this.ctx.lineTo(i,n),this.ctx.stroke()}_drawBoxShadow(e,t,i,n,o){this.ctx.save(),this.ctx.shadowOffsetX=t,this.ctx.shadowOffsetY=i,this.ctx.shadowBlur=n,this.ctx.shadowColor=o,this.ctx.fillRect(e.x,e.y,e.width,e.height),this.ctx.restore()}}let py="syno-o-sh-view-corner-container",pw="syno-o-sh-view-corner-scrollable",p_=class{constructor(e,t){var i,n;let r=document.createDocumentFragment();this.canvas=document.createElement("canvas"),i=this.canvas,o(i,"syno-o-sh-view-canvas"),r.appendChild(this.canvas),this.topLayer=document.createElement("canvas"),n=this.topLayer,o(n,"syno-o-sh-view-canvas"),r.appendChild(this.topLayer),this._blockTopLeft=u9(r,py+" top left"),this._blockTopRight=u9(r,py+" top right"),this._blockBottomLeft=u9(r,py+" bottom left"),this._blockBottomRight=u9(r,py+" bottom right"),this.scrollableTopLeft=u9(this._blockTopLeft,pw),this.scrollableTopRight=u9(this._blockTopRight,pw),this.scrollableBottomLeft=u9(this._blockBottomLeft,pw),this.scrollableBottomRight=u9(this._blockBottomRight,pw),this.footer=u9(r,"syno-o-sh-view-footer"),e.appendChild(r),this.viewport=new ds(e,60),this.pluginElements={},this.rootElement=e,this._hot=t,this._renderer=null,this._canvasBound=null,this._freezeSize={freezeWidth:0,freezeHeight:0},this._scaleRatio=1,this._rtl=!1,this._bottomOversizeRow=-1,this.scrollerView=new pp(this),this.adjustCanvasSize()}destroy(){this.viewport.destroy(),(0,tl._l)(this.pluginElements,e=>{e._destructor&&e._destructor()})}fullRender(e,t,i){let{ranges:n,rowIndices:o,colIndices:r,fixedRowIndex:a,fixedColIndex:s,bottomRightOffsetX:l,bottomRightOffsetY:c}=this.prepareRenderRanges(e),d=e.getWorkbook().getCurrentSheet(),u=d.isRtl();this.updateRtl(u);let h=this.viewport.getScrollTop(),p=this.getViewHeight(),f={scaleRatio:this._scaleRatio*this.viewport.getZoomLevel(),includeHeader:!0,mode:d.getWorkbook().isHistoryMode()?"history":"normal",fixedRowIndex:a,fixedColIndex:s,isFilterView:d.getFilterPlugin().isInViewState(),bottomRightOffsetX:l,bottomRightOffsetY:c};e.calcRenderRanges(d.sheetId,n),this.canvas.getContext("2d").resetTransform(),this.topLayer.getContext("2d").resetTransform();let g={scale:f.scaleRatio,rtl:u};this._renderer=new ph({drawer:new pb(this.canvas,g),topDrawer:new pb(this.topLayer,g)},d,o,r,f,i);let m=this._renderer.measureGrid();e.setRenderHeights(d.sheetId,m),this.viewport.updateRowOffset(d);let v=this.viewport.getRowByOffset(h+p);for(;o.length>0;){if(o[o.length-1]<=v){this._renderer.trimRow(o.length);break}o.length-=1}this._renderer.generateRenderInfo(),this._renderer.drawAll(t),this.adjustCornerContainerSize(d),this._adjustFooter(e.getWorkbook().isReadonly()),this._markBottomOverSize(d),this._hot.runHooks("afterRender")}prepareRenderRanges(e){let t=e.getWorkbook().getCurrentSheet(),i=this.viewport.getScrollTop(),n=this.viewport.getScrollLeft(),o=this.getViewWidth(),r=this.getViewHeight();this.viewport.updateSheet(t);let[a,s,l]=this._calcRowInfos(t,i,r),[c,d,u]=this._calcColInfos(t,n,o),h=new eA.GJ(a[(!1===s?-1:s)+1],c[(!1===d?-1:d)+1],(0,eG.Z)(a),(0,eG.Z)(c)),p=[h];return!1!==s&&!1!==d&&p.push(new eA.GJ(0,0,a[s],c[d])),!1!==s&&p.push(new eA.GJ(0,h.from.col,a[s],h.to.col)),!1!==d&&p.push(new eA.GJ(h.from.row,0,h.to.row,c[d])),{ranges:p,rowIndices:a,colIndices:c,fixedRowIndex:s,fixedColIndex:d,bottomRightOffsetX:u,bottomRightOffsetY:l}}updateRtl(e){if(e!==this._rtl){for(let t of(this._rtl=e,[this.canvas,this.topLayer,this._blockTopLeft,this._blockTopRight,this._blockBottomLeft,this._blockBottomRight]))t.classList.toggle("rtl",e);this.updateCanvasBound(),this.scrollerView.updateRtl(e),this._hot.runHooks("afterUpdateRtl")}}isRtl(){return this._rtl}reverseIfRtl(e){return this._rtl?-e:e}setViewPosition(e,t,i){e.style.top=`${t}px`,e.style.left=this._rtl?"":`${i}px`,e.style.right=this._rtl?`${i}px`:""}rerenderHeader(e){this._renderer&&this._renderer.drawHeader(e)}rerenderFilterDropdown(e,t,i){this._renderer&&this._renderer.redrawFilterDropdown(e,t,i)}rerenderValidationDropdown(e,t,i){this._renderer&&this._renderer.redrawValidationDropdown(e,t,i)}rerenderRowSpreader(e,t,i){this._renderer&&this._renderer.redrawRowSpreader(e,t,i)}rerenderColSpreader(e,t,i){this._renderer&&this._renderer.redrawColSpreader(e,t,i)}rerenderPivotFold(e,t,i){this._renderer&&this._renderer.reDrawPivotFold(e,t,i)}_calcRowInfos(e,t,i){let n=[],o=e.getFreezePlugin().fixedRowsTop,r=Math.min(this.viewport.getRowByOffset(i),o-1);for(let t=0;t<=r;t++)e.isHiddenRow(t)||n.push(t);let a=o>0&&n.length-1;if(o>=e.countRows())return[n,a,0];let s=this.viewport.getRowOffset(r+1);if(s>=i)return[n,!1,0];let l=this.viewport.getRowByOffset(t+s),c=this.viewport.getRowByOffset(t+i);for(let t=l;t<=c;t++)e.isHiddenRow(t)||n.push(t);return[n,a,(this.viewport.getRowOffset(l)-t-s)/this.viewport.getZoomLevel()]}_calcColInfos(e,t,i){let n=[],o=e.getFreezePlugin().fixedColumnsLeft,r=Math.min(this.viewport.getColByOffset(i),o-1);for(let t=0;t<=r;t++)e.isHiddenCol(t)||n.push(t);let a=o>0&&n.length-1;if(o>=e.countCols())return[n,a,0];let s=this.viewport.getColOffset(r+1);if(s>=i)return[n,!1,0];let l=this.viewport.getColByOffset(t+s),c=this.viewport.getColByOffset(t+i);for(let t=l;t<=c;t++)e.isHiddenCol(t)||n.push(t);return[n,a,(this.viewport.getColOffset(l)-t-s)/this.viewport.getZoomLevel()]}updateCanvasBound(){let e=this.canvas.getBoundingClientRect();this._canvasBound={x:e.left,y:e.top,width:e.width,height:e.height}}adjustCanvasSize(){this._updateScaleRatio(),this.viewport.updateViewSize(this.rootElement);let e=this.viewport.getViewWidth(),t=this.viewport.getViewHeight();[this.canvas,this.topLayer].forEach(i=>{var n=this._scaleRatio;let o=Math.ceil(e*n),r=Math.ceil(t*n);i.width=o,i.height=r,1===n?(i.style.width="",i.style.height=""):(i.style.width=o/n+"px",i.style.height=r/n+"px")}),this.updateCanvasBound();let i=this.getCanvasBound();if(i.width<this._freezeSize.freezeWidth)this._freezeSize.freezeWidth=i.width,this._blockTopLeft.style.width=i.width+"px",this._blockTopRight.style.width="0px",this._blockBottomLeft.style.width=i.width+"px",this._blockBottomRight.style.width="0px";else{let e=i.width-this._freezeSize.freezeWidth;this._blockTopRight.style.width=e+"px",this._blockBottomRight.style.width=e+"px"}if(i.height<this._freezeSize.freezeHeight)this._freezeSize.freezeHeight=i.height,this._blockTopLeft.style.height=i.height+"px",this._blockTopRight.style.height=i.height+"px",this._blockBottomLeft.style.height="0px",this._blockBottomRight.style.height="0px";else{let e=i.height-this._freezeSize.freezeHeight;this._blockBottomLeft.style.height=e+"px",this._blockBottomRight.style.height=e+"px"}this.viewport.setRecalcRow(),this.viewport.setRecalcCol()}adjustCornerContainerSize(e){let t=e.getFreezePlugin(),i=this.viewport.getScroller(),n=this.viewport.getRowOffset(t.fixedRowsTop),o=this.viewport.getColOffset(t.fixedColumnsLeft),r=this.getViewHeight(),a=this.getViewWidth(),s=Math.min(n,r),l=Math.min(o,a);if(s!==this._freezeSize.freezeHeight){let e=r-s;this._blockTopLeft.style.height=s+"px",this._blockTopRight.style.height=s+"px",this._blockBottomLeft.style.height=e+"px",this._blockBottomRight.style.height=e+"px",this._freezeSize.freezeHeight=s,i.setFrozenHeight(s)}if(l!==this._freezeSize.freezeWidth){let e=a-l;this._blockTopLeft.style.width=l+"px",this._blockTopRight.style.width=e+"px",this._blockBottomLeft.style.width=l+"px",this._blockBottomRight.style.width=e+"px",this._freezeSize.freezeWidth=l,i.setFrozenWidth(l)}let c=t.fixedRowsTop>=e.countRows()?n:n+i.getScrollTop(),d=t.fixedColumnsLeft>=e.countCols()?o:o+i.getScrollLeft();this.setViewPosition(this.scrollableTopLeft,0,0),this.setViewPosition(this.scrollableTopRight,0,-d),this.setViewPosition(this.scrollableBottomLeft,-c,0),this.setViewPosition(this.scrollableBottomRight,-c,-d)}_adjustFooter(e){if(this._renderer.isEmpty())return;let t=this._renderer.getBottomOffset()*this.viewport.getZoomLevel(),i=t>this.getViewHeight();e||i?this.footer.style.display="none":(this.footer.style.display="block",this.footer.style.top=t+8+"px")}_markBottomOverSize(e){let t=this.getViewHeight()-this._freezeSize.freezeHeight,i=this.getLastVisibleRow(),n=this.viewport.getZoomLevel(),o=e.getRowHeight(i)*n>t;this._bottomOversizeRow=o?i:-1}hasRenderer(){return null!==this._renderer}isEventInView(e){return this.rootElement.contains(e.target)}getCanvasBound(){return this._canvasBound}pageToOffset(e,t,i){void 0===i&&(i=!0);let{x:n,y:o}=this.getViewPoint({x:e,y:t});return(!i||n>=this._freezeSize.freezeWidth)&&(n+=this.viewport.getScrollLeft()),(!i||o>=this._freezeSize.freezeHeight)&&(o+=this.viewport.getScrollTop()),[n,o]}getCoordFromEvent(e,t){void 0===t&&(t=!0);let[i,n]=this.pageToOffset(e.pageX,e.pageY,t),o=this.viewport.getColByOffset(Math.min(i,this.viewport.getRightOffset()-1));return{row:this.viewport.getRowByOffset(Math.min(n,this.viewport.getBottomOffset()-1)),col:o}}toPageBound(e){return this.isRtl()&&(e.x=this.viewport.getViewWidth()-(e.x+e.width)),e.x+=this._canvasBound.x,e.y+=this._canvasBound.y,e}getRangeBound(e,t,i,n){return this.toPageBound(this.getRangeViewBound(e,t,i,n,!0))}getRangeViewBound(e,t,i,n,o){let r=this.getRangeViewOffset(e,t,i,n),a=this._freezeSize.freezeWidth,s=this._freezeSize.freezeHeight,l=this.getViewWidth(),c=this.getViewHeight();return r.x>=a&&(r.x-=this.getScrollLeft(),o&&r.x<a&&(r.width-=a-r.x,r.x=a)),o&&r.x+r.width>=l&&(r.width=Math.max(l-r.x,0),r.x=Math.min(r.x,l)),r.y>=s&&(r.y-=this.getScrollTop(),o&&r.y<s&&(r.height-=s-r.y,r.y=s)),o&&r.y+r.height>=c&&(r.height=Math.max(c-r.y,0),r.y=Math.min(r.y,c)),r}getRangeViewOffset(e,t,i,n,o,r){let a,s,l,c;return o?(a=this.viewport.getLeftOffset(),l=this.viewport.getRightOffset()-a):(a=this.viewport.getColOffset(t),l=this.viewport.getColOffset(n+1)-a),r?(s=this.viewport.getTopOffset(),c=this.viewport.getBottomOffset()-s):(s=this.viewport.getRowOffset(e),c=this.viewport.getRowOffset(i+1)-s),{x:a,y:s,width:l,height:c}}getViewPoint(e){let t=this.getCanvasBound(),i=e.x-t.x;return this._rtl&&(i=t.width-i),{x:i,y:e.y-t.y}}getViewHeight(){return this._canvasBound.height}getViewWidth(){return this._canvasBound.width}getFreezeSize(){return this._freezeSize}getScrollTop(){return this.viewport.getScrollTop()}getScrollLeft(){return this.viewport.getScrollLeft()}getFirstVisibleRow(){return this.viewport.getRowByOffset(this._freezeSize.freezeHeight+this.viewport.getScrollTop())}getLastVisibleRow(){return this.viewport.getRowByOffset(this.getViewHeight()+this.viewport.getScrollTop())}getFirstVisibleCol(){return this.viewport.getColByOffset(this._freezeSize.freezeWidth+this.viewport.getScrollLeft())}getLastVisibleCol(){return this.viewport.getColByOffset(this.getViewWidth()+this.viewport.getScrollLeft())}getRectVisibleBound(e){let{y:t,x:i,width:n,height:o}=e,{freezeHeight:r,freezeWidth:a}=this.getFreezeSize(),s=this.getScrollTop(),l=this.getScrollLeft(),c=this.getViewHeight(),d=this.getViewWidth();function u(e,t,i,n){return e<i?Math.min(Math.max(e,0),n):Math.min(Math.max(e-t,i),n)}let h=u(t,s,r,c),p=u(i,l,a,d),f=u(t+o,s,r,c);return{y:h,x:p,width:u(i+n,l,a,d)-p,height:f-h}}isRangeVisible(e){let[t,i,n,o]=e.toArray(),r=this.viewport.getRowOffset(n+1),a=this.viewport.getColOffset(o+1),s=this._freezeSize.freezeHeight+this.viewport.getScrollTop(),l=this.getViewHeight()+this.viewport.getScrollTop(),c=this._freezeSize.freezeWidth+this.viewport.getScrollLeft(),d=this.getViewWidth()+this.viewport.getScrollLeft(),u=r<=this._freezeSize.freezeHeight||s<=this.viewport.getRowOffset(t)&&r<=l,h=a<=this._freezeSize.freezeWidth||c<=this.viewport.getColOffset(i)&&a<=d;return u&&h}scrollToRange(e,t){void 0===t&&(t=!1),e=e.normalize(),this.isRangeVisible(e)||(this.scrollToRow(e,t),this.scrollToCol(e,t))}scrollToRow(e,t){void 0===t&&(t=!1);let i=e.from.row,n=e.to.row,o=this.viewport.getRowOffset(i),r=this.viewport.getRowOffset(n+1);void 0!==o&&this.scrollToOffset("row",o,r,t)}scrollToCol(e,t){void 0===t&&(t=!1);let i=e.from.col,n=e.to.col,o=this.viewport.getColOffset(i),r=this.viewport.getColOffset(n+1);void 0!==o&&this.scrollToOffset("col",o,r,t)}scrollToOffset(e,t,i,n){void 0===n&&(n=!1);let o="col"===e?e=>this.viewport.setScrollLeft(e):e=>this.viewport.setScrollTop(e),r="col"===e?this.viewport.getScrollLeft():this.viewport.getScrollTop(),a="col"===e?this._freezeSize.freezeWidth:this._freezeSize.freezeHeight,s="col"===e?this.viewport.getScroller().getClientWidth():this.viewport.getScroller().getClientHeight(),l=i-t;n&&l<s?o(t+l/2-s/2-a):t<a+r||l>=s?o(t-a):i>a+r+s&&o(i-s-a)}scrollToRect(e,t){void 0===t&&(t=!1);let{left:i,top:n,width:o,height:r}=e;this.scrollToOffset("col",i,i+o,t),this.scrollToOffset("row",n,n+r,t)}scrollOffset(e,t){let i=this.viewport;if(0!==t){let e=i.getScrollTop();i.setScrollTop(e+t)}if(0!==e){let t=i.getScrollLeft();i.setScrollLeft(t+e)}}getScaleRatio(){return this._scaleRatio}_updateScaleRatio(){let e=window.devicePixelRatio||1;(0,c9.isSafari)()&&(e*=2);let t=this.canvas.getContext("2d"),i=t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1;this._scaleRatio=e/i}getRenderInfo(e,t){return this._renderer.getRenderInfo(e,t)}getGroupRenderInfo(e,t){return this._renderer.getGroupInfo(e,t)}getHeaderBound(e,t){return this._renderer.getHeaderBound(e,t)}getCellEditBound(e,t){let i=this._renderer.getClipBound(e,t);if(!i)return null;let{x:n,y:o,width:r,height:a}=i,s=this.viewport.getZoomLevel();return n*=s,o*=s,{x:n,y:o,width:r*=s,height:a*=s}}},px="syno-o-sh-view-selection"+((0,c9.isMobileLayout)()?" mobile-selection":""),pS="selection-border-movable",pC=["top-border","right-border","bottom-border","left-border"],pk="syno-o-sh-view-selection-corner",pI=["bottom-right","top-left"],pA=class{constructor(e){this._hot=e,this._view=e.view,this._divCollection=[],this._divMapping=new Map}destroy(){this._view=null}refreshSelections(e){this._divMapping.clear();for(let t=0;t<e.length;t++){let i=e[t],n=this._renewDiv(t);this._divMapping.set(i,n),this._drawSelection(i,n)}for(let t=e.length;t<this._divCollection.length;t++)this._hideSelection(this._divCollection[t])}updateSelection(e){let t=this._divMapping.get(e);t||(t=this._renewDiv(this._divMapping.size),this._divMapping.set(e,t)),this._drawSelection(e,t)}getSelectionScreenRects(e){let t=this._divMapping.get(e);if(t)return t.map(e=>e.container.getClientRects()[0])}hideSelectionBorder(e){let t=this._divMapping.get(e);if(t)for(let e=0;e<4;e++){for(let i=0;i<4;i++)t[e].divBorders[i].style.display="none";t[e].divCorner.forEach(e=>e.style.display="none")}}hideSelectionBackground(e){let t=this._divMapping.get(e);if(t)for(let e=0;e<4;e++)t[e].divBackground.style.display="none"}isEventOnSelectionCorner(e){var t;return e.target.nodeType===document.ELEMENT_NODE&&(t=e.target,n(t,pk))}isEventOnSelectionMovableBorder(e){var t;return e.target.nodeType===document.ELEMENT_NODE&&(t=e.target,n(t,pS))}isBottomRightCorner(e){var t;return t=pI[0],n(e,t)}_drawSelection(e,t){if(e.isEmpty())return void this._hideSelection(t);let i=e.cellRange,n=i.getTopLeftCorner(),r=i.getBottomRightCorner(),{x:a,y:s,width:l,height:c}=this._view.getRangeViewOffset(n.row,n.col,r.row,r.col,i.isRowType(),i.isColType());if(l<=0||c<=0)return void this._hideSelection(t);let{freezeWidth:d,freezeHeight:u}=this._view.getFreezeSize(),h=u>s,p=d>a;a-=1,s-=1,l+=1,c+=1;let f=e.outerOffset;f&&(a-=f,s-=f,l+=2*f,c+=2*f);let g=e.preventPointer()?"none":"",m=e.getClassName();for(let e=0;e<4;e++){let i=t[e].container;m&&o(i,m);let n=i.style;this._view.setViewPosition(i,s,a),n.width=l+"px",n.height=c+"px",n.pointerEvents=g}this._drawSelectionBackground(t,e,a,s,l,c),this._drawSelectionBorder(t,e,l,c),this._drawSelectionCorner(t,e,l,c),this._showSelection(t,h,p)}_renewDiv(e){if(this._divCollection[e])for(let t=0;t<4;t++)this._divCollection[e][t].container.className=px;else{let t=[this._createDiv(this._view.scrollableTopLeft),this._createDiv(this._view.scrollableTopRight),this._createDiv(this._view.scrollableBottomLeft),this._createDiv(this._view.scrollableBottomRight)];this._divCollection[e]=t}return this._divCollection[e]}_createDiv(e){let t=u9(e,px),i=[];for(let e=0;e<4;e++)i[e]=u9(t,pC[e]);let n=u9(t,""),o=[],r=(0,c9.isMobileLayout)()?2:1;for(let e=0;e<r;e++)o[e]=u9(t,`${pk} ${pI[e]}`);return{container:t,divBorders:i,divBackground:n,divCorner:o}}_showSelection(e,t,i){let n=[t&&i,t,i,!0].map(e=>e?"block":"none");for(let t=0;t<4;t++)e[t].container.style.display=n[t]}_hideSelection(e){for(let t=0;t<4;t++)e[t].container.style.display="none"}_drawSelectionBackground(e,t,i,n,o,r){if(!t.color||!t.hasBackground){for(let t=0;t<4;t++)e[t].divBackground.style.display="none";return}if(t.hasHighlight){let a=t.cellRange.highlight,s=this._view.getRangeViewOffset(a.from.row,a.from.col,a.to.row,a.to.col);if(s.width>0&&s.height>0){s.x<i&&(s.width-=i-s.x,s.x=i),s.width=Math.min(s.width,i+o-s.x),s.y<n&&(s.height-=n-s.y,s.y=n),s.height=Math.min(s.height,n+r-s.y);let a=s.x-i,l=s.y-n,c=o-s.width-a,d=r-s.height-l,u="px solid "+t.color;for(let t=0;t<4;t++){let i=e[t].divBackground.style;i.width=s.width+"px",i.height=s.height+"px",i.borderTop=l+u,i.borderRight=`${this._view.isRtl()?a:c}${u}`,i.borderBottom=d+u,i.borderLeft=`${this._view.isRtl()?c:a}${u}`,i.backgroundColor="transparent",i.display="block"}return}}for(let i=0;i<4;i++){let n=e[i].divBackground.style;n.width=o+"px",n.height=r+"px",n.backgroundColor=t.color,n.border="0",n.display="block"}}_drawSelectionBorder(e,t,i,n){let o=["width","height","width","height"],r=[i,n,i,n],a=["borderTop","borderRight","borderBottom","borderLeft"];for(let i=0;i<4;i++)for(let n=0;n<4;n++){let s=e[i].divBorders[n];s.style[o[n]]=r[n]+"px",s.style[a[n]]=t.borderStyle,s.style.display="block",!this._hot.isReadonly()&&t.hasHighlight?(s.classList.add(pS),s.style.pointerEvents="auto"):(s.classList.remove(pS),s.style.pointerEvents="")}}_drawSelectionCorner(e,t){let i=this._view.isRtl();for(let n=0;n<4;n++)this._hot.isReadonly()||!t.hasCorner?e[n].divCorner.forEach(e=>e.style.display="none"):e[n].divCorner.forEach(e=>{e.style.display="block",e.classList.toggle("rtl",i)})}};class pT{constructor(e){this.view=e}getScales(){return{x:this.view.isRtl()?-1:1,y:1}}getViewportBound(){let{x:e,y:t,width:i,height:n}=this.view.getCanvasBound()||{x:0,y:0,width:0,height:0};return{x:e,y:t,width:i,height:n}}getScrollOffset(){let e=this.view.viewport,t=e.getScrollTop();return{x:e.getScrollLeft(),y:t}}getZoomLevel(){return this.view.viewport.getZoomLevel()}pointOnContent(e){let[t,i]=this.view.pageToOffset(e.x,e.y,!1);return{x:t,y:i}}pointOnViewport(e){let t=this.getViewportBound();return{x:e.x-t.x,y:e.y-t.y}}normalizeZoomLevel(e){return e=Math.round(100*(e=Math.min(Math.max(e,.25),2)))/100}}var pE=i(51445);class pR extends pE.TL{constructor(e){super({preventDefault:!0,stopPropagation:!0,recoverMouseEvents:!0,isPassive:!1,...e}),this.hot=e.hot,this.selectionAdjustState=null}onTouchEvent(e,t){let i=new Set(e.changedTouches);for(let n of e.changedTouches)this.isSelectionAdjustTouch(n,t)&&(this[`selectionAdjust${t}`](n),i.delete(n));i.size>0&&super[`onTouch${t}`](function(e,t){let i=new Set(Array.from(t).map(e=>e.identifier)),n=[...e.touches],o=Array.from(e.targetTouches).filter(e=>i.has(e.identifier)),r=Array.from(e.changedTouches).filter(e=>i.has(e.identifier));return new TouchEvent(e.type,{...e,touches:n,targetTouches:o,changedTouches:r})}(e,i)),e.stopPropagation(),this.hot.view.footer.contains(e.target)||e.preventDefault()}onTouchStart(e){this.onTouchEvent(e,"Start")}onTouchMove(e){this.onTouchEvent(e,"Move")}onTouchEnd(e){this.onTouchEvent(e,"End")}onTouchCancel(e){this.onTouchEvent(e,"Cancel")}isAdjustingSelection(){return!!this.selectionAdjustState}isSelectionAdjustTouch(e,t){if("Start"===t){let t=this.hot.selections.multiSelections.getActive();return!!(!this.selectionAdjustState&&t?.cellRange&&this.hot.selectionView.isEventOnSelectionCorner(e))}return this.selectionAdjustState?.touchId===e.identifier}selectionAdjustStart(e){if(this.selectionAdjustState)return;let t=this.hot.selections.multiSelections.getActive();if(!t?.cellRange)return;let i=this.hot.selectionView.isBottomRightCorner(e.target)?t.cellRange.getTopLeftCorner():t.cellRange.getBottomRightCorner();this.selectionAdjustState={touchId:e.identifier,selection:t,from:i,to:i}}selectionAdjustMove(e){if(!this.selectionAdjustState)return;let t=this.selectionAdjustState,i=this.hot.view.getCoordFromEvent(e,!1);(i.row!==t.to.row||i.col!==t.to.col)&&(this.hot.selectCell(t.from.row,t.from.col,i.row,i.col,!0,!1),t.to=i)}selectionAdjustEnd(e){this.selectionAdjustState=null}selectionAdjustCancel(e){this.selectionAdjustEnd(e)}}var pD=i(24718);function pO(){return"ontouchstart"in window}class pM{constructor(){this._isMouseDown=!1,this._isDblClick=!1,this._mouseDownTarget=null,this._mouseUpTarget=null,this._mouseDownTimer=null,this._mouseUpTimer=null,this._dblClickTimeout=null}mouseDown(e,t){this._isMouseDown=!0,!t||(0,dl.lz)(e)||(this._mouseDownTarget=t,clearTimeout(this._mouseDownTimer),this._mouseDownTimer=setTimeout(()=>{this._mouseDownTarget=null},1e3))}mouseUp(e,t){this._isMouseDown=!1,!(!t||(0,dl.lz)(e))&&(this.targetEqual(this._mouseDownTarget,t)&&this.targetEqual(this._mouseUpTarget,t)?(this._mouseDownTarget=null,this._mouseUpTarget=null,this._isDblClick=!0,this._dblClickTimeout=setTimeout(()=>{this._isDblClick=!1},0)):this.targetEqual(this._mouseDownTarget,t)&&(this._mouseUpTarget=t,clearTimeout(this._mouseUpTimer),this._mouseUpTimer=setTimeout(()=>{this._mouseUpTarget=null},500)))}isMouseDown(){return this._isMouseDown}isDblClick(){return this._isDblClick}targetEqual(e,t){return!!e&&!!t&&(e===t||(0,tl.Fs)(e,"row")&&e.row===t.row&&(0,tl.Fs)(e,"col")&&e.col===t.col)}destroy(){clearTimeout(this._mouseDownTimer),clearTimeout(this._mouseUpTimer),clearTimeout(this._dblClickTimeout)}}let pN=class{constructor(e){this.hot=e,this._touchHandler=null,this._touchCtrl=null,this._eventManager=this._createEventManager(),this._mouseStatus=new pM,this._wheelZoomCalculator=new pD.F,this._mouseDownInSelection=!1}destroy(){this.hot=null,this._eventManager.destroy(),this._mouseStatus.destroy()}isDestroyed(){return null===this.hot}_createEventManager(){let e=new hs(this),t=this.hot.rootElement;if(this.hot.view.viewport.getScroller().on("scroll",()=>this._handleScroll()),e.addEventListener(t,"wheel",e=>this._handleWheel(e)),e.addEventListener(document.documentElement,"mousemove",(0,hh.Z)(e=>this._handleMouseMove(e),16)),e.addEventListener(document.documentElement,"mousedown",e=>this._handleMouseDown(e)),e.addEventListener(window,"mouseup",e=>this._handleMouseUp(e)),e.addEventListener(t,"dragover",e=>this._handleDragOver(e)),e.addEventListener(t,"drop",e=>this._handleDrop(e)),e.addEventListener(document.documentElement,"keydown",()=>this._handleKeydown()),pO()){let e=new pR({hot:this.hot,view:new pT(this.hot.view),enableScroll:!0,enablePinch:!0});e.on("scroll",(e,t)=>this._scroll(e,t)),e.on("scrollTo",this._scrollTo.bind(this)),e.on("zoomTo",this._zoomTo.bind(this)),e.on("click",e=>{this.hot.rootElement.dispatchEvent(new MouseEvent("mousedown",e)),this.hot.rootElement.dispatchEvent(new MouseEvent("mouseup",e))}),e.start(this.hot.rootElement),this._touchHandler=e}let i=this.hot.view.footer;function n(e){e.stopPropagation()}return e.addEventListener(i,"mousedown",n),e.addEventListener(i,"keydown",n),(0,c9.isOSKSupported)()&&e.addEventListener(i,"mouseup",n),this._listenPixelRatioChange(e),e}_listenPixelRatioChange(e){let t=window.matchMedia(`(resolution: ${window.devicePixelRatio}dppx)`),i=e.addEventListener(t,"change",()=>{i(),this.hot.runHooks("afterPixelRatioChange"),this._listenPixelRatioChange(e),this.hot.render("delay")})}_handleScroll(){this.hot.render(),this.hot.runHooks("afterScroll")}_handleWheel(e){let t=e.deltaX,i=e.deltaY;if(1===e.deltaMode&&(t*=10,i*=10),e.shiftKey&&!(0,c9.isMac)()){let e=t;t=i,i=e,this.hot.view.isRtl()&&(t=-t)}if(e.ctrlKey){let t=this.hot.getZoomLevel(),i=this._wheelZoomCalculator.add(e.deltaY,100*t);0!==i&&this._zoom(t+-(.01*i),e.pageX,e.pageY)}else this._scroll(t,i);e.stopPropagation(),e.preventDefault()}_handleMouseMove(e){if(this.isDestroyed())return;let t=this.hot.view;if(!t.hasRenderer()||(this.hot.runHooks("onTargetMouseOver",e,this._mouseStatus.isMouseDown()),u8(e)))return;let i=t.getCoordFromEvent(e),n=this.hot.selections;if(n.copy.isDragging()){n.copy.updateDragging(i,{row:this.hot.sheet.countRows()-1,col:this.hot.sheet.countCols()-1}),this.hot.selectionView.updateSelection(n.copy);return}if(n.formulaSelections.isInProgress()){if(this._mouseStatus.isMouseDown()){n.formulaSelections.moveSelect(i);let e=n.formulaSelections.getActive();e&&this.hot.selectionView.updateSelection(e)}return}if(n.multiSelections.isInProgress()){if(this._mouseStatus.isMouseDown()){n.multiSelections.moveSelect(i);let e=n.multiSelections.getActive();e&&this.hot.selectionView.updateSelection(e),this.hot.view.rerenderHeader(n.multiSelections.getAll())}return}if(t.isEventInView(e)){let t=this.hot.sheet.getMergePlugin().getMergedRange(i.row,i.col),n=t?t.from:i,o=t?t.to:i,r=this.hot.view.getRangeViewBound(n.row,n.col,o.row,o.col,!1);this.hot.runHooks("afterOnCellMouseOver",e,i,t,r)}}_handleMouseDown(e){this._mouseDownInSelection=!1,this.hot.setSearchHintSelectionsDisplay(!1);let t=this.hot.view;if(!t.hasRenderer()||(this.hot.view.footer.contains(document.activeElement)&&this.hot.focusInputField(!0),pO()&&this._touchHandler.isAdjustingSelection()))return;if(!this.hot.isReadonly()&&this.hot.selectionView.isEventOnSelectionCorner(e)){this._mouseStatus.mouseDown(e,e.target),this.hot.runHooks("afterOnCellCornerMouseDown",e);return}if(this.hot.runHooks("onTargetMouseDown",e),u8(e))return void this._mouseStatus.mouseDown(e,e.customTarget||e.target);if(!t.isEventInView(e)){let t=e.target;for(;t!==document.documentElement;){if(null===t||t===this.hot.rootElement||n(t,"syno-sh-editor-comp"))return;t=t.parentNode}this.hot.destroyEditor();return}e.preventDefault();let i=t.getCoordFromEvent(e);if(i.row<-1||i.col<-1){t.isEventInView(e)&&this.hot.runHooks("afterOnGroupMouseDown",e,i);return}if(!this.hot.isReadonly()&&this.hot.selectionView.isEventOnSelectionMovableBorder(e)){if(this._mouseStatus.mouseDown(e,e.target),this.hot.runHooks("afterOnSelectionBorderMouseDown",e),(0,dl.lz)(e))return;let t=this.hot.selections.multiSelections.getActive();this.hot.selections.copy.startDragging(t.cellRange,i),this.hot.selectionView.updateSelection(t),this.hot.selectionView.updateSelection(this.hot.selections.copy);return}if(this.hot.runHooks("beforeOnCellMouseDown",e,i),u8(e))return void this._mouseStatus.mouseDown(e,e.target);this._mouseStatus.mouseDown(e,{row:i.row,col:i.col});let o=this.hot.selections;o.formulaSelections.checkFormulaSelecting()&&!(0,dl.lz)(e)?(o.formulaSelections.beginSelect(e,i),this.hot.runHooks("afterFormulaSelect")):((!this.hot.hasFocus()||this._isFormulaSyntaxFocused())&&this.hot.focusInputField(!0),pO()&&i.row>=0&&i.row<this.hot.sheet.countRows()&&i.col>=0&&i.col<this.hot.sheet.countCols()&&o.multiSelections.getAll().some(e=>e.cellRange.includes(i))?this._mouseDownInSelection=!0:o.multiSelections.beginSelect(e,i),this.hot.runHooks("afterOnCellMouseDown",e,i)),this.hot.fastRender()}_handleMouseUp(e){let t=this.hot.view;if(!t.hasRenderer()||pO()&&this._touchHandler.isAdjustingSelection())return;if(this.hot.runHooks("onTargetMouseUp",e),u8(e)){this._mouseStatus.mouseUp(e,e.customTarget||e.target),this._mouseStatus.isDblClick()&&this.hot.runHooks("onTargetDblClick",e);return}let i=this.hot.selections;if(i.copy.isDragging()){let{srcRange:e,targetRange:t}=i.copy.endDragging();e.isEqual(t)||this.hot.runHooks("onMoveSelection",e,t),this.hot.selectionView.updateSelection(i.copy)}else i.multiSelections.isInProgress()?i.multiSelections.finishSelect():i.formulaSelections.isInProgress()&&i.formulaSelections.finishSelect();if(this.hot.selectionView.isEventOnSelectionCorner(e)){this._mouseStatus.mouseUp(e,e.target),this._mouseStatus.isDblClick()&&this.hot.runHooks("afterOnCellCornerDblClick",e);return}let n=t.getCoordFromEvent(e);if(n.row<-1||n.col<-1){t.isEventInView(e)&&this.hot.runHooks("afterOnGroupMouseUp",e,n);return}this._mouseStatus.mouseUp(e,{row:n.row,col:n.col}),this._mouseStatus.isDblClick()&&this.hot.runHooks("afterOnCellDblClick",e,n),t.isEventInView(e)&&(this.hot.runHooks("afterOnCellMouseUp",e,n),this._mouseDownInSelection&&this.hot.runHooks("triggerContextMenu",e))}_handleDragOver(e){this.hot.runHooks("onRootDragOver",e)}_handleDrop(e){this.hot.runHooks("onRootDrop",e)}_handleKeydown(){this.hot.setSearchHintSelectionsDisplay(!1)}_scroll(e,t){this.hot.view.scrollOffset(Math.round(e),Math.round(t))}_zoom(e,t,i,n,o){void 0===n&&(n=0),void 0===o&&(o=0),this.hot.setZoomLevelWithCenter(e,this.hot.view.getViewPoint({x:t,y:i})),this._scroll(n,o)}_scrollTo(e,t){this.hot.view.viewport.setScrollLeft(e),this.hot.view.viewport.setScrollTop(t)}_zoomTo(e,t,i){this.hot.setZoomLevel(e,{left:t,top:i})}_isFormulaSyntaxFocused(){let e=this.hot.getActiveEditor().getActiveInput().getFormulaTip();return!!e&&e.isFocused()}},pP=class{constructor(e,t=[],i,n){for(let o of(this.rootElement=e,this._handleCommandRef=(e,t)=>this._handleCommand(e,t),this._flushViewportRef=()=>{this.view.viewport.setRecalcRow(),this.view.viewport.setRecalcCol(),this.selections.multiSelections.clampSelections()},this._flushSearchRef=()=>{this.getPlugin("synoSearch").update()},this._flushCurrentRef=()=>this.updateSheet(),this.guid="ht_"+(0,t_.O1)(),e.id&&"ht_"!==e.id.substring(0,3)||(this.rootElement.id=this.guid),e.classList.add("table-wrapper"),(0,c9.isMobileLayout)()&&e.classList.add("mobile"),this.vHooks=new ny,this.renderTimer=null,this.forceFullRender=!1,this.view=new p_(this.rootElement,this),this.viewEvent=new pN(this),this.selectionView=new pA(this),this.selections={multiSelections:new hC(this),hintSelections:new hA(this),formulaSelections:new hI(this),onlinePeerSelections:[],fill:new h_(null,null,"1px dashed #009959","fill-selection",!1,!1),filter:new h_(null,null,"1px solid #21CC76","filter-selection",!1,!1),copy:new hx,rule:new h_(null,null,"2px solid #9CDCBE","rule-selection",!1,!1),arrayFormula:new h_(null,null,"2px solid #9CDCBE","array-formula-selection",!1,!1)},this.cellEditorData=function(){let e=(0,ua.ref)("ltr"),t=(0,ua.ref)(!0),i=(0,ua.ref)(!1),n=(0,ua.ref)(!1),o=(0,ua.ref)(!1);return{direction:(0,ua.computed)(()=>i.value?"ltr":e.value),autoUpdateDir:t,isFormulaMode:i,isOpened:n,isFocused:o,setBidi:function(i,n){e.value=i,t.value=n},triggerAutoUpdateDir:function(i){t.value&&(e.value=hJ(i))},setFormulaMode:function(e){i.value=e},setFocusState:function(e){o.value=e},setOpenState:function(e){n.value=e}}}(),this._editorManager=new hw(this),this.plugins={},this.sheetId=void 0,this.selectionRecord={},this.pivotTableView=new pl(this),this._uiBridge=i,this._dataBridge=null,this._action=null,this.zoomLimit={min:n?.zoom?.min??.1,max:n?.zoom?.max??5},t)){let e=new o(this,n);e.init(),this.plugins[o.pluginName]=e}this.ro=new ResizeObserver(()=>{e.scrollTop=0,this.view.adjustCanvasSize(),this.render()}),this.ro.observe(e)}getPlugin(e){return this.plugins[e]}getDataBridge(){return this._dataBridge}getUIBridge(){return this._uiBridge}getAction(){return this._action}get sheet(){return this.getDataBridge().getWorkbook().getCurrentSheet()}destroyEditor(e){return this._editorManager.closeEditor(e)}getSelected(){let e=this.selections.multiSelections.getActive();if(!e||!e.cellRange)return null;let t=e.cellRange;return[t.from.row,t.from.col,t.to.row,t.to.col]}getSelectedRange(){let e=this.selections.multiSelections.getActive();if(e&&e.cellRange)return e.cellRange}getHighlightRange(){return this.selections.multiSelections.getHighlightRange()}getMultiSelectedRange(){return this.selections.multiSelections.getMultiRange()}clearMultiSelections(){this.selections.multiSelections.clear()}serializeSelections(){return this.selections.multiSelections.toJSON()}isRangeSelecting(){return this.selections.multiSelections.isInProgress()||this.selections.formulaSelections.isInProgress()||(this.plugins.synoAutofill?.isInProgress()??!1)}renderSheet(e,t){e===this.sheetId&&this.render(t)}isReadonly(){return this.sheet?.isReadonly()??!0}async forceUpdate(){let e=this.getDataBridge();if(!e)return;await e.forceUpdate();let t=e.getWorkbook().getCurrentSheet();t&&this.view.viewport.updateSheet(t)}render(e){this.forceFullRender=!0,this.fastRender(e)}fastRender(e){if(!this.sheetId||!1===e)return;let t=()=>{this.renderTimer&&(clearTimeout(this.renderTimer),this.renderTimer=null),this._render()};if("delay"===e){null===this.renderTimer&&(this.renderTimer=setTimeout(t,1));return}t()}_render(){this.cancelScheduledRender();let e=this.sheet;if(this.view&&this.sheetId&&e&&this.sheetId===e.sheetId){this.forceFullRender?(this.forceFullRender=!1,this.view.fullRender(this.getDataBridge(),this.selections.multiSelections.getAll(),this._uiBridge)):this.view.rerenderHeader(this.selections.multiSelections.getAll()),this.runHooks("afterRenderComplete");let e=this.getActiveEditor(),t=e.isOpened()&&e.isCrossSheet()?[]:this.selections.multiSelections.getAll();this.runHooks("beforeRefreshSelections");let i=this.selections.multiSelections.getHighlightRange();this.updateArrayFormulaSelection(i?.from);let n=[].concat(t,this.selections.hintSelections.getAll(),this.selections.formulaSelections.getAll(),this.selections.fill,this.selections.copy,this.selections.filter,this.selections.onlinePeerSelections,this.selections.rule,this.selections.arrayFormula);this.selectionView.refreshSelections(n)}}cancelScheduledRender(){this.renderTimer&&(clearTimeout(this.renderTimer),this.renderTimer=null)}async setActiveSheet(e){let t=this.getDataBridge();t&&e!==t.getWorkbook().getCurrentSheet()?.sheetId&&(this.cellEditorData.isFormulaMode.value||await this.destroyEditor(),await t.setCurrent(e))}updateSheet(){let e=this.getDataBridge().getWorkbook().getCurrentSheet();if(!e||e.sheetId===this.sheetId)return;let t=this.view.viewport,i=!!this.sheetId;if(this.sheetId&&(this.selectionRecord[this.sheetId]={top:t.getScrollTop(),left:t.getScrollLeft(),sel:this.getSelected()},this.cancelScheduledRender(),this.runHooks("beforeHideSheet",this.sheetId)),this.sheetId=e.sheetId,this.runHooks("afterShowSheet",this.sheetId),i){t.updateSheet(e);let{top:i=0,left:n=0,sel:o}=this.selectionRecord[this.sheetId]||{};o??=[0,0,0,0],this.getPlugin("synoCopyPaste").isInteractiveMode()||this.selectCell(...o,!1),t.setScrollTop(i),t.setScrollLeft(n)}this.render()}constraintZoomLevel(e){return Math.min(Math.max(Math.round(100*e)/100,this.zoomLimit.min),this.zoomLimit.max)}setZoomLevelWithCenter(e,t){let{x:i,y:n}=t,o=this.constraintZoomLevel(e),r=this.getZoomLevel();if(o===r)return;let a=(i+this.view.getScrollLeft())*o/r-i,s=(n+this.view.getScrollTop())*o/r-n;this.setZoomLevel(o,{left:a,top:s})}setZoomLevel(e,t){void 0===t&&(t=null);let i=this.getZoomLevel(),n=this.constraintZoomLevel(e),o=n&&n!==i,r=this.view.viewport,a=this.getActiveEditor();if(o){a.setZoomLevel(n),r.setZoomLevel(n);let e=this.sheet;r.updateRowOffset(e),r.updateColOffset(e),this.view.adjustCornerContainerSize(e)}if(t)r.setScrollLeft(t.left),r.setScrollTop(t.top);else if(o){let e=r.getScrollTop(),t=r.getScrollLeft();r.setScrollTop(e*n/i),r.setScrollLeft(t*n/i)}o&&(this.runHooks("afterSetZoomLevel",n),this.render())}getZoomLevel(){return this.view.viewport.getZoomLevel()}getFormulaPreview(){return this.getActiveEditor().preview.isEnabled()}setFormulaPreview(e){this.getActiveEditor().preview.setEnable(e)}setHintSelectionsDisplay(e){this.selections.hintSelections.setDisplay(e),this.fastRender()}setSearchHintSelectionsDisplay(e){this.selections.hintSelections.setSearchDisplay(e),this.fastRender()}hasFocus(){return this.rootElement.contains(document.activeElement)}focusInputField(e){let t=()=>this.getActiveEditor().input.focus(!0);!0===e?t():setTimeout(t,e="number"==typeof e?e:100)}getHighlightBound(){let e=this.selections.multiSelections.getHighlightRange();if(!e)return null;let t=e.getTopLeftCorner(),i=e.getBottomRightCorner();return this.view.getRangeBound(t.row,t.col,i.row,i.col)}getCellBound(e,t){let i,n,o,r,a=this.sheet.getMergePlugin().getMergedRange(e,t);return a?(i=a.from.row,n=a.from.col,o=a.to.row,r=a.to.col):(i=o=e,n=r=t),this.view.getRangeBound(i,n,o,r)}getFirstVisibleRow(){let{fixedRowsTop:e}=this.sheet.getFreezePlugin();for(let t=0;t<e;t++)if(!this.sheet.isHiddenRow(t))return t;return this.view.getFirstVisibleRow()}getFirstVisibleCol(){let{fixedColumnsLeft:e}=this.sheet.getFreezePlugin();for(let t=0;t<e;t++)if(!this.sheet.isHiddenCol(t))return t;return this.view.getFirstVisibleCol()}selectCell(e,t,i,n,o,r){void 0===o&&(o=!0),void 0===r&&(r=!1),this.selectRanges([void 0===i?[e,t,e,t]:[e,t,i,n]],!1===o?void 0:"to",r)}selectRanges(e,t,i){void 0===i&&(i=!1);let n=this.sheet.countCols(),o=this.sheet.countRows(),r=this.selections.multiSelections;r.clear(),e.forEach(e=>{e[0]=Math.min(Math.max(e[0],0),o-1),e[1]=Math.min(Math.max(e[1],0),n-1),e[2]=Math.min(Math.max(e[2],0),o-1),e[3]=Math.min(Math.max(e[3],0),n-1),r.addRange(e)});let a=this.getSelectedRange();if(a){if(r.setSelectedHeaders(a.getWidth()===this.sheet.countCols(),a.getHeight()===this.sheet.countRows()),this.getActiveEditor().isOpened()&&r.getActive().setHasCorner(!1),this.runHooks("afterSelectionEnd",a),this.fastRender(),"range"===t)this.scrollToRange(a.from.row,a.from.col,a.to.row,a.to.col,i);else if(void 0!==t){let e="from"===t?a.from:a.to;this.scrollToRange(e.row,e.col,e.row,e.col,i)}}}async scrollToRange(e,t,i,n,o){void 0===o&&(o=!0);let r=new eA.GJ(e,t,i??e,n??t);return this._asyncScrollTask(()=>this.view.scrollToRange(r,o))}async scrollToDrawing(e,t){void 0===t&&(t=!0);let i=this.getPlugin("synoDrawingController");return this._asyncScrollTask(()=>i.scrollToDrawing(e,t))}async _asyncScrollTask(e){e();let t=this._scrollViewportPromise=(async()=>{let i=this.getDataBridge(),{ranges:n}=this.view.prepareRenderRanges(i);await i.calcRenderRanges(this.sheetId,n),await i.forceUpdate(),this._scrollViewportPromise===t&&(this.render(),e())})();return t}deselectCell(e){this.selections.multiSelections.isSelected()&&(this.selections.multiSelections.deselect(),this.destroyEditor().then(()=>this.fastRender(e)))}getRowColSelected(){let e=this.getSelectedRange(),t=!!e;return{row:t&&e.getWidth()===this.sheet.countCols(),col:t&&e.getHeight()===this.sheet.countRows()}}destroy(){this.sheetId&&this.runHooks("beforeHideSheet",this.sheetId),this.vHooks.run(this,"beforeHotDestroy"),this.view&&(this.view.destroy(),this.selectionView.destroy(),this.viewEvent.destroy());let e=this.selections;e.formulaSelections.destroy(),e.multiSelections.destroy(),u2(this.rootElement),this.ro.disconnect(),this._editorManager.destroy(),this.vHooks.destroy()}updateArrayFormulaSelection(e){let t=e&&this.sheet?.getSpillRange(e.row,e.col);t?this.selections.arrayFormula.setRange(t.clone()):this.selections.arrayFormula.clear()}getActiveEditor(){return this._editorManager.getActiveEditor()}addHook(e,t){this.vHooks.add(e,t,this)}addHookOnce(e,t){this.vHooks.once(e,t,this)}removeHook(e,t){this.vHooks.remove(e,t,this)}runHooks(e){for(var t=arguments.length,i=Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];this.vHooks.runWithArgs(this,e,i)}observe(e){let{dataBridge:t,action:i}=e;this._dataBridge&&(this.sheetId=void 0,this.view.viewport.clearSheetId(),this._dataBridge.off("afterCommand",this._handleCommandRef),this._dataBridge.off("flush:viewport",this._flushViewportRef),this._dataBridge.off("flush:search",this._flushSearchRef),this._dataBridge.off("flush:current",this._flushCurrentRef)),this._dataBridge=t,t.on("afterCommand",this._handleCommandRef),t.on("flush:viewport",this._flushViewportRef),t.on("flush:search",this._flushSearchRef),t.on("flush:current",this._flushCurrentRef),this._action=i}_markRowSizeDirty(e){this.sheetId===e&&this.view.viewport.setRecalcRow()}_markColSizeDirty(e){this.sheetId===e&&(this.view.viewport.setRecalcRow(),this.view.viewport.setRecalcCol())}_setRecalcRowCol(e){"col"===e&&this.view.viewport.setRecalcCol(),this.view.viewport.setRecalcRow()}_onAlterGridCommand(e,t,i,n,o,r){var a,s;if(this.runHooks(`after${(0,t_.ct)(t)}${(0,t_.ct)(i)}`,e,n,o),this.sheetId!==e||(this._setRecalcRowCol(i),r))return;let l=this.selections.multiSelections,c=l.getHighlightRange();if(!c)return;let d=c.clone();l["create"===t?"onCreateRowCol":"onRemoveRowCol"](i,n,o),this._editorManager.onSelectionUpdated();let u=l.getHighlightRange();a=d,s=u,(a&&s?a.isEqual(s):a===s)||(u?this.runHooks("updatePeerSelection",u):this.runHooks("afterDeselect"))}_onResizeCommand(e,t){this.sheetId===e&&(this.view.viewport.setRecalcRow(),"col"===t&&(this.view.viewport.setRecalcCol(),this._editorManager.onResizeRowCol()))}_onHiddenCommand(e,t){"row"===t?this._markRowSizeDirty(e):"col"===t&&this._markColSizeDirty(e)}_onMoveRowColCommand(e,t,i){this.sheetId===e&&(this._setRecalcRowCol(t),this._editorManager.onMoveRowCol(t,i))}_onUnmergeCellCommand(e,t){if(this.sheetId!==e)return;let i=this.selections.multiSelections.getHighlightRange();i&&i.overlaps(t)&&(i.to.row=i.from.row,i.to.col=i.from.col,this._editorManager.onSelectionUpdated())}_handleCommand(e,t){switch(e.cmd){case"compound":for(let i of e.actions)this._handleCommand(i,t);break;case"insert_row":this._onAlterGridCommand(e.id,"create","row",e.index,e.amount,t);break;case"insert_col":this._onAlterGridCommand(e.id,"create","col",e.index,e.amount,t);break;case"remove_row":this._onAlterGridCommand(e.id,"remove","row",e.index,e.amount,t);break;case"remove_col":this._onAlterGridCommand(e.id,"remove","col",e.index,e.amount,t);break;case"resize_row":this._onResizeCommand(e.id,"row");break;case"resize_col":this._onResizeCommand(e.id,"col");break;case"hidden_row":this._onHiddenCommand(e.id,"row");break;case"hidden_col":this._onHiddenCommand(e.id,"col");break;case"move_row":this._onMoveRowColCommand(e.id,"row",ae(e.start,e.amount1,e.amount2,e.isBackward));break;case"move_col":this._onMoveRowColCommand(e.id,"col",ae(e.start,e.amount1,e.amount2,e.isBackward));break;case"unmerge":this._onUnmergeCellCommand(e.id,new eA.GJ(...e.range))}}};function pL(e){let[t,i]=e[0];if(1===e.length)return+(void 0!==t);let n=e.length-1,[,o]=e[1],[r,a]=e[n];if(void 0!==a&&r===t&&void 0!==i&&void 0!==o&&(2===e.length||1e-15>=Math.abs(a-i-(o-i)*n)))return a-i+(o-i)}let pB=()=>!1;function pF(e,t){let{start:i,end:n,direction:o,data:r,perRowCallback:a}=e,s=r.length,l=r[0].length,c="up"===o,d="left"===o,{row:u,col:h}=i,{row:p,col:f}=n,g=1,m=1;c&&([u,p]=[p,u],g=-1),d&&([h,f]=[f,h],m=-1);let v=pV.getInstance(s,c,o);for(let e=u;e!==p+g;e+=g){let i=v.get();if(a&&!1===a(e,i))continue;let n=pV.getInstance(l,d,o);for(let o=h;o!==f+m;o+=m)t(e,o,i,n.get(),v.getCycle(),n.getCycle()),n.next();v.next()}}class pV{constructor(e,t){this.limit=e-1,this.cycle=t,this.n=0}getCycle(){return this.cycle}get(){return this.n}static getInstance(e,t,i){let n=+!!i;return t?new pH(e,n):new pz(e,n)}}class pz extends pV{constructor(e,t){super(e,t),this.n=0}next(){let e=this.n;return e<this.limit?this.n=e+1:(this.n=0,this.cycle++),this.n}}class pH extends pV{constructor(e,t){super(e,t),this.n=this.limit}next(){let e=this.n;return e>0?this.n=e-1:(this.n=this.limit,this.cycle++),this.n}}let pW=class extends rN{constructor(e){super(e,"synoAutofill")}getAutofillObject(e,t,i,n,o,r){void 0===n&&(n=pB);let a=new eA.GJ(e.row,e.col,t.row,t.col),s={};return i.includes("data")&&(s.data=this.getData(e,t,n,r)),i.includes("format")&&(s.format=this.getFormat(e,t,n)),i.includes("notes")&&(s.notes=this.sheet.getDataModel().collectRangeNote(a,n)),i.includes("validation")&&(s.validation=this.sheet.getPlugin("synoValidation").collectRangeInfo(a,n)),i.includes("cf")&&(s.cf=this.sheet.getPlugin("synoConditionalFormat").collectRangeInfo(a,n)),i.includes("hyperlink")&&(s.hyperlink=this.sheet.getHyperlinkModel().collectRangeInfo(a,n)),i.includes("comment")&&(s.comment=this.sheet.getPlugin("synoComment").collectRangeInfo(a,n)),i.includes("tableStyle")&&(s.tableStyle=this.sheet.getWorkbook().getPivotTableManager().collectRangeStyle(this.sheet.sheetId,a,n)),s}getAutofillData(e,t,i){return void 0===t&&(t=pB),this.getAutofillObject(e.from,e.to,iC,t,"down",i)}getAutofillFormat(e,t,i){return void 0===t&&(t=pB),this.getAutofillObject(e.from,e.to,ik,t,"down",i)}populateAutofillData(e,t,i,n,o){let{format:r,mergedBorders:a,mergeRanges:s,data:l,notes:c,validation:d,cf:u,comment:h,hyperlink:p}=i;r&&(this.populateFormat(e,t,r,n,o),a&&this.sheet.controller.setBorder(a,!0,o),s&&this.applyMergeRanges(new eA.GJ(e.row,e.col,t.row,t.col),s,o)),l&&this.populateData(e,t,l,n,o),c&&this.populateNotes(e,t,c,n,o),d&&this.populateValidation(e,t,d,n,o),u&&this.populateCfs(e,t,u,n,o),h&&this.populateComment(e,t,h,n,o),p&&this.populateHyperlink(e,t,p,n,o)}populateFormat(e,t,i,n,o){if(null===i.font||null===i.border)return;let r=this.sheet.controller,a=[],s=[],l=[],c=[],d=[],u=[];pF({start:e,end:t,direction:n,data:i.font,perRowCallback:this._getRowCallbackFn(o)},(e,t,n,o)=>{a.push([e,t,(0,tl.I8)(i.font[n][o])]),s.push([e,t,(0,tl.I8)(i.fill[n][o])]),l.push([e,t,(0,tl.I8)(i.alignment[n][o])]),c.push([e,t,i.border[n][o]?.b?.slice(0)??null]),d.push([e,t,i.numberFormat[n][o]?.fc??null]),u.push([e,t,i.quotePrefix[n][o]])}),a.length>0&&r.setFont(a,!0,o),s.length>0&&r.setFill(s,!0,o),l.length>0&&r.setAlignment(l,!0,o),c.length>0&&r.setBorder(c,!0,o),d.length>0&&r.setFormat(d,!0,o),u.length>0&&r.setQuotePrefix(u,!0,o),i.rowHeight?r.resizeRow(e.row,t.row,i.rowHeight.map(e=>e??i.defaultRowHeight??null)):i.defaultRowHeight&&r.resizeRow(e.row,t.row,i.defaultRowHeight),i.colWidth?r.resizeColumn(e.col,t.col,i.colWidth.map(e=>e??i.defaultColWidth??null)):i.defaultColWidth&&r.resizeColumn(e.col,t.col,i.defaultColWidth),i.rowGroup&&r.updateGroup("row",e.row,i.rowGroup),i.colGroup&&r.updateGroup("col",e.col,i.colGroup)}fillNumberFormat(e,t,i,n,o){let r=[];pF({start:e,end:t,direction:n,data:i,perRowCallback:this._getRowCallbackFn(o)},(e,t,n,o)=>{i[n][o]&&r.push([e,t,i[n][o]])}),r.length>0&&this.sheet.controller.setFormat(r,!0,o)}populateNotes(e,t,i,n,o){let r=[];pF({start:e,end:t,direction:n,data:i,perRowCallback:this._getRowCallbackFn(o)},(e,t,n,o)=>{r.push([e,t,i[n][o]])}),r.length>0&&this.sheet.controller.setNote(r,o)}populateComment(e,t,i,n,o){let r=[];pF({start:e,end:t,direction:n,data:i,perRowCallback:this._getRowCallbackFn(o)},(e,t,n,o)=>{let a=i[n][o];if(a)for(let i of a)r.push({...i,sheetId:this.sheet.sheetId,row:e,col:t})});let a=this.sheet.getWorkbook().getController().commentController;a.clearRangeComment(this.sheet.sheetId,new eA.GJ(e.row,e.col,t.row,t.col)),a.populateComment(r)}getMappingMergeRanges(e,t,i,n,o){let r=[];return pF({start:e,end:t,direction:n,data:i,perRowCallback:this._getRowCallbackFn(o)},(e,n,o,a)=>{if(!Array.isArray(i[o][a])||i[o][a].length<2)return;let[s,l,c]=i[o][a];n+l-1>t.col||e+s-1>t.row||r.push([[e,n,e+s-1,n+l-1],c??null])}),r}populateData(e,t,i,n,o){if(0===i.length)return!1;let r=this._getMergePlugin(),a=o===tL.Paste,s=o===tL.Autofill,l=i.length,c=i[0].length,d=[],u=s?function(e,t){let i=e?e.length:0,n=e&&e[0]?e[0].length:0;if(!t)return[];let o=[];if(["up","down"].indexOf(t)>=0)for(let t=0;t<n;t++){let n=[];for(let r=0;r<i;r++){n.push((0,eI.wV)(e[r][t]));let i=pL(n);if(void 0===i){o[t]=1;break}o[t]=i}}if(["left","right"].indexOf(t)>=0)for(let t=0;t<i;t++){let i=[];for(let r=0;r<n;r++){i.push((0,eI.wV)(e[t][r]));let n=pL(i);if(void 0===n){o[t]=1;break}o[t]=n}}return o}(i,n):null;pF({start:e,end:t,direction:n,data:i,perRowCallback:this._getRowCallbackFn(o)},(t,o,h,p,f,g)=>{if(r.isMergeHidden(t,o))return;let m=i[h][p],v=t-e.row,b=o-e.col;if(m?.type===io.R1C1)m=Z(m.formula,t,o);else if(s||a&&v>=l||b>=c){let e=function(e,t,i,n,o){let{row:r,col:a}=e,s=n[r][a],l=0;if(s&&"object"==typeof s&&(0,t_.jr)(s.formula))return s;if(i&&(-1!==["down","up"].indexOf(i)?l=o[a]*t.row:-1!==["right","left"].indexOf(i)&&(l=o[r]*t.col),-1!==["up","left"].indexOf(i)&&(l*=-1)),l){if("number"==typeof s)s+=l;else if("string"==typeof s){let[e,t]=(0,eI.wV)(s);void 0!==t&&l&&void 0!==e&&(s=e+(t=Math.abs(Math.round(t+l))).toString().padStart(s.length-e.length,"0"))}}return s}({row:h,col:p},{row:f,col:g},n,i,u);void 0!==e&&(m=e)}d.push([t,o,m])}),this.sheet.controller.setDataAtCell(d,o||tL.PopulateData)}populateValidation(e,t,i,n,o){let r,a,s,l,c,d=this.sheet.controller;if(d.removeAllValidation((0,eI.MT)(e.row,e.col,t.row,t.col)),0===i.validations.length)return;let u=i.validIds,h={};i.validations.forEach(function(e){h[e.validId]=[]});let p=this._getRowCallbackFn(o);pF({start:e,end:t,data:u,direction:n,perRowCallback:e=>(r=null,p(e))},(e,t,i,n)=>{let o=u[i][n];o?r&&a===o?r.to.col=t:(r=(0,eI.MT)(e,t,e,t),a=o,h[o].push(r)):r=null}),i.validations.forEach(function(e){let t=h[e.validId];if(0!==t.length){for(s=1,c=1;s<t.length;s++){for(l=0;l<c;l++)if(t[l].isVertMergeable(t[s])){t[l].expandRow(t[s].from.row,t[s].to.row);break}l===c&&(t[c]=t[s],c+=1)}for(e.isFormula&&((0,t_.U3)(e.f1)&&(e.f1=Z(e.f1,t[0].from.row,t[0].from.col)),(0,t_.U3)(e.f2)&&(e.f2=Z(e.f2,t[0].from.row,t[0].from.col)),"text"===e.type&&(0,t_.jr)(e.text)&&(e.text=Z(e.text,t[0].from.row,t[0].from.col))),s=0;s<c;s++)d.createValidation(e,t[s])}})}populateCfs(e,t,i,n,o){let r=new Map,a=new Map,s=new Map,l=new Map,c=new Map,{cfIds:d,cfs:u,order:h,sheetId:p}=i;for(let[i,h]of(pF({start:e,end:t,direction:n,data:d,perRowCallback:this._getRowCallbackFn(o)},(e,t,i,n)=>{for(let o of d[i][n]||[]){let i=null;if(r.has(o)?i=r.get(o):(i=p===this.sheet.sheetId?this.sheet.getPlugin("synoConditionalFormat").findCfById(o):this.sheet.getPlugin("synoConditionalFormat").findCfByJSON(u[o]),r.set(o,i)),i&&(o=i.id),!l.has(o))if(i)l.set(o,i.getRangeBound());else{let e=u[o].f1,t=u[o].f2,i=(0,t_.U3)(e)?e:null,n=(0,t_.U3)(t)?t:null;l.set(o,en(i,n))}let n=a.get(o);n||(i?(n=i.ranges.slice(),a.set(o,n)):s.has(o)?n=s.get(o):(n=[],s.set(o,n)));let d=l.get(o);e<d.row||t<d.col?(c.has(o)||c.set(o,[]),c.get(o).push(new eA.GJ(e,t,e,t))):n.push(new eA.GJ(e,t,e,t))}}),a.entries()))this.sheet.controller.updateCfRanges(i,tD(h));let f=(e,t,i)=>{let n=t[0].from,o=(0,t_.U3)(e.f1)?Z(e.f1,n.row,n.col):e.f1,r=(0,t_.U3)(e.f2)?Z(e.f2,n.row,n.col):e.f2,a=(0,t_.jr)(e.text)?Z(e.text,n.row,n.col):e.text,s={...e,cfId:(0,t_.O1)(),ranges:tD(t).map(e=>eR.toLabel(e,this.sheet)),f1:o,f2:r,text:a};this.sheet.controller.addCf(s,p===this.sheet.sheetId?i:void 0)},g=0;h.forEach((e,t)=>{s.has(e)&&f(u[e],s.get(e),t+g),c.has(e)&&(f(u[e],c.get(e),t+g+1),g+=1)})}populateHyperlink(e,t,i,n,o){pF({start:e,end:t,direction:n,data:i,perRowCallback:this._getRowCallbackFn(o)},(e,t,n,o)=>{let r=i[n][o];this.sheet.controller.removeRangeInternalLink(new eA.GJ(e,t,e,t)),r&&this.sheet.controller.addInternalLink({...r,id:(0,t_.O1)(),row:e,col:t})})}applyMergeRanges(e,t,i){let n=this.sheet.controller,o=this._getMergePlugin(),r=i===tL.Paste,a=[],s=[];n._unmergeOverlaps(e,i);let l=(e,t)=>this.sheet.getDataModel().getComputedCellStyle(e,t).getBorder().b;for(let e=0;e<t.length;e++){let[n,c]=t[e],[d,u,h,p]=n;for(let e=d;e<=h;e++)for(let t=u;t<=p;t++)(e!==d||t!==u)&&a.push([e,t,null]);let f=new eA.GJ(...n);r&&c&&(s=s.concat(eQ(this.sheet.countRows(),this.sheet.countCols(),f,"OUTER",eq(c),l))),o.mergeRange(f,i)}a.length>0&&n.setDataAtCell(a,tL.MergeCell),s.length>0&&n.setBorder(s,!0,i)}getData(e,t,i,n){void 0===i&&(i=pB);let[o,r,a,s]=this.sheet.getRangeBound(e,t),l=this.sheet.getDataModel(),c=[];for(let e=o;e<=a;e++){if(i(e))continue;let t=[];for(let i=r;i<=s;i++){let o=l.getValue(e,i);if(n!==tL.Cut&&(0,t_.jr)(o)){let n=G(o,e,i);t.push({formula:n,type:io.R1C1})}else t.push(o)}c.push(t)}return c}getFormat(e,t,i){void 0===i&&(i=pB);let[n,o,r,a]=this.sheet.getRangeBound(e,t),s={font:[],fill:[],alignment:[],border:[],numberFormat:[],mergeCells:[],quotePrefix:[]},l=[];for(let e=n,t=0;e<=r;e++){if(i(e))continue;l[e-n]=t++;let r=[],c=[],d=[],u=[],h=[],p=[];for(let t=o;t<=a;t++){let i=this.sheet.getCellModel(e,t),n=i?i.getCellStyle():this.sheet.getDataModel().getEmptyStyle(e,t),o=null,a=null,s=null,l=null,f=null;!n.isDefault()&&(n.getFont().isDefault()||(o=n.getFont().toJSON()),n.getFill().isDefault()||(a=n.getFill().toJSON()),n.getAlignment().isDefault()||(s=n.getAlignment().toJSON()),n.getBorder().isDefault()||(l=n.getBorder().toJSON()),n.getNumberFormat().isDefault()||(f=n.getNumberFormat().toJSON())),r.push(o),c.push(a),d.push(s),u.push(l),h.push(f),p.push(n.getQuotePrefix())}s.font.push(r),s.fill.push(c),s.alignment.push(d),s.border.push(u),s.numberFormat.push(h),s.quotePrefix.push(p),s.mergeCells.push(Array(r.length))}if(this._getMergePlugin().getOverlap((0,eI.MT)(n,o,r,a)).forEach(e=>{if(e.from.row>=n&&e.from.row<=r&&e.from.col>=o&&e.from.col<=a){let t=e.from.row-n;void 0!==l[t]&&(s.mergeCells[l[t]][e.from.col-o]=[e.getHeight(),e.getWidth()])}}),0===n&&r===this.sheet.countRows()-1){let e=this.sheet.getPlugin("synoManualColumnResize"),t=this.sheet.getPlugin("synoGroup"),i=a-o+1;s.defaultColWidth=this.sheet.worksheet.getDefaultColWidth(),s.colWidth=Array(i).fill(null).map((t,i)=>e.getManualSize(o+i)),s.colGroup=Array.from({length:i},(e,i)=>t.getColGroupLevel(o+i))}if(0===o&&a===this.sheet.countCols()-1){let e=this.sheet.getPlugin("synoManualRowResize"),t=this.sheet.getPlugin("synoGroup"),i=r-n+1;s.defaultRowHeight=this.sheet.worksheet.getDefaultRowHeight(),s.rowHeight=Array(i).fill(null).map((t,i)=>e.getManualSize(n+i)),s.rowGroup=Array.from({length:i},(e,i)=>t.getRowGroupLevel(n+i))}return s}_getFilterPlugin(){return this.sheet.getPlugin("synoFilter")}_getMergePlugin(){return this.sheet.getPlugin("synoMergeCell")}_getRowCallbackFn(e){if(e===tL.Cut)return function(){return!0};let t=this._getFilterPlugin();return function(e){return!t.isHiddenRow(e)}}},pY=class extends rN{constructor(e){super(e,"synoComment")}enablePlugin(){this.addHook("afterCreateRow",(e,t)=>this.afterCreateRow(e,t)),this.addHook("afterCreateCol",(e,t)=>this.afterCreateCol(e,t)),this.addHook("afterRemoveRow",(e,t)=>this.afterRemoveRow(e,t)),this.addHook("afterRemoveCol",(e,t)=>this.afterRemoveCol(e,t)),this.addHook("afterSort",(e,t)=>this.afterSort(e,t)),this.addHook("beforeMoveRow",e=>this.beforeMoveRow(e)),this.addHook("beforeMoveCol",e=>this.beforeMoveCol(e)),super.enablePlugin()}afterCreateRow(e,t){this.getCommentStore().createRowCol(this.sheet.sheetId,"row",e,t)}afterCreateCol(e,t){this.getCommentStore().createRowCol(this.sheet.sheetId,"col",e,t)}afterRemoveRow(e,t){this.getCommentStore().removeRowCol(this.sheet.sheetId,"row",e,t)}afterRemoveCol(e,t){this.getCommentStore().removeRowCol(this.sheet.sheetId,"col",e,t)}afterSort(e,t){this._sortComments(e,t)}_sortComments(e,t){return this.getCommentStore().sort(this.sheet.sheetId,e,t)}beforeMoveRow(e){this.getCommentStore().moveRow(this.sheet.sheetId,e)}beforeMoveCol(e){this.getCommentStore().moveCol(this.sheet.sheetId,e)}getCommentStore(){return this.sheet.getWorkbook().getCommentStore()}},pU=class extends pY{enablePlugin(){this.addHook("afterInit",()=>this.afterInit()),this.addHook("afterCreateComment",e=>this._addCommentMeta(e)),this.addHook("afterReplyComment",e=>this._addCommentMeta(e)),this.addHook("afterReopenComment",e=>this._addCommentMeta(e)),this.addHook("afterResolveComment",e=>this._removeCommentMeta(e)),this.addHook("afterRemoveComment",e=>this._removeCommentMeta(e)),super.enablePlugin()}afterInit(){ea(this.getCommentStore().filterBySheet(this.sheet.sheetId,!0),e=>{this._addCommentMeta(e)})}_addCommentMeta(e){let t=this.sheet.getCellProperty(e.row,e.col,"comment");if(t){let i=this.sheet.getWorkbook().getCommentStore(),n=ed(t,t=>{let n=i.getCommentById(t);return!!n&&n.timestamp<e.timestamp});n===t.length?t.push(e.id):t[n]!==e.id&&t.splice(n,0,e.id),this._setCommentMeta(e.row,e.col,t)}else this._setCommentMeta(e.row,e.col,[e.id])}_removeCommentMeta(e){let t=this.sheet.getCellProperty(e.row,e.col,"comment");if(!t||0===t.length)return;let i=t.indexOf(e.id);-1!==i&&(t.splice(i,1),this._setCommentMeta(e.row,e.col,0===t.length?void 0:t))}_setCommentMeta(e,t,i){void 0!==e&&void 0!==t&&this.sheet.setCellMeta(e,t,[["comment",i]])}_sortComments(e,t){let i=super._sortComments(e,t);return i.forEach(e=>{let[t,i]=e;return this._setCommentMeta(i,t.col,void 0)}),i.forEach(e=>{let[t]=e;return this._addCommentMeta(t)}),i}collectRangeInfo(e,t){void 0===t&&(t=()=>!1);let i=[];for(let n=e.from.row;n<=e.to.row;n++){if(t(n))continue;let o=Array(e.getWidth());for(let t=e.from.col;t<=e.to.col;t++){let i=this.sheet.getCellMeta(n,t);o[t-e.from.col]=i?.comment?.map(e=>this.getCommentStore().getCommentById(e)?.toJSON()).filter(eT)}i.push(o)}return i}};class pG{constructor(e){this.matrix=new Map,this.removeHandler=e||(e=>e.unregisterAll())}getCount(){return this.matrix.size}_add(e){let t=eF.createId(e.row,e.col);return this.matrix.set(t,e),e}remove(e){let t=this.matrix.get(e);return t&&this.matrix.delete(e)&&this.removeHandler(t),t}each(e){this.matrix.forEach(e)}filter(e){let t=this.matrix;this.matrix=new Map,t.forEach(t=>{e(t)?this._add(t):this.removeHandler(t)})}shift(e,t,i){this.filter(n=>{if(n[e]>=t){if(n[e]+i<t)return!1;n[e]+=i}return!0})}move(e,t){this.filter(i=>(i[e]>=t.sec[0].start&&i[e]<=t.sec[1].end&&(i[e]<=t.sec[0].end?i[e]+=t.sec[1].amount:i[e]-=t.sec[0].amount),!0))}sort(e,t,i){let[n,o,r,a]=e;this.filter(e=>{let{row:s,col:l}=e;if(!(n<=s&&s<=r&&o<=l&&l<=a))return!0;let c=s-n,d=c===t[c];return!d&&i&&i(e),d})}clear(){this.matrix.forEach(this.removeHandler),this.matrix.clear()}}class pZ extends pG{createItem(e,t,i,n,o){return this._add(new eF(e,t,i,n,o))}}class pj extends pG{createItem(e,t,i,n){return this.matrix.get(eF.createId(t,i))||this._add(this._createItem(e,t,i,n))}_createItem(e,t,i,n){return new eH(e,t,i,n)}filterSafeAndShift(e,t,i,n){this.filter(o=>{let r;if(o[e]>=t&&o[e]+i<t)return!1;let a=o.isDependSelfOnly(),s=o.deps;if(o.hasImplicitDeps()&&(s=s.concat(o.implicitDeps)),a)r=!0;else{r=o[e]<t;let i="isBetween"+(0,t_.ct)(e);for(let e=0;e<s.length&&r;e++)r=!s[e][i](t,o.sheet.getWorkbook().getMaxCellCount())}return o[e]>=t&&(o[e]+=i),r||n(o),r})}onAlterGrid(e,t,i,n){this.filter(o=>o[e]<t||!(o[e]+i<t)&&(o[e]+=i,o.unregisterAll(),n(o),!0))}}class pq extends pj{_createItem(e,t,i,n){return new eW(e,t,i,n)}}var pK=i(82822);function pX(e,t,i){let n=t.ranges.length,o=[],r=[],a=!1,s=!t.isReferenceSelfOnly();for(let l=0;l<n;l++){let{remain:n,bottom:c,splited:d}=t.ranges[l].moveAndSplit(e,i);if(n&&r.push(n),n&&t.ranges[l].isEqual(n)||(a=!0),c&&r.push(c),d)if(s)o.push(d);else{for(;r.length>0&&r[r.length-1].isMergeable(e,d);){let t=r.pop();d.expandRowCol(e,t.from[e],t.to[e])}r.push(d)}}return{newRanges:o,nextRanges:r,rangesChanged:a}}class pQ{constructor(e,t,i,n,o,r,a,s,l,c){this.sheet=e,this.id=t,this.type=i,this.op=n,this.ranges=o,this.style=r,this.f1=a,this.f2=s,this.text=l,this.altType=c,this.priority=0,this._isFormulaInput=void 0,this.conditionFormula=void 0,this.relativeCondition={},this.unitItem=new eU(this)}init(){this.priority=0,this.initRelativeCondition(),this.resetCache()}getRefCell(){return this.ranges[0].from}refCellEqualsTo(e){let t=this.getRefCell();return t.row===e.row&&t.col===e.col}initRelativeCondition(){let{row:e,col:t}=this.getRefCell(),i={};this.f1&&(0,t_.U3)(this.f1)&&(i.f1=G(this.f1,e,t)),this.f2&&(0,t_.U3)(this.f2)&&(i.f2=G(this.f2,e,t)),this.text&&(0,t_.jr)(this.text)&&(i.text=G(this.text,e,t)),this.relativeCondition=i}registerUnitItem(){if(!this.isFormula())return;let e=this.sheet.getWorkbook().getUnitUnknownRefManager();e.removeItem(this.unitItem),this.unitItem.unregister();let t=X(this.conditionFormula??""),i=this.sheet.formula.checkCrossRefError(t);if(i)e.addItem(i,this.unitItem);else{let e=this.sheet.formula.mapFormulaRange(t);this.unitItem.register(e)}}serializeBasic(){return{cfId:this.id,type:this.type,op:this.op,style:{...this.style},f1:this.f1,f2:this.f2,text:this.text,altType:this.altType,ranges:eD(this.ranges)}}serialize(){let e=this.serializeBasic();if(this.isFormula()){let{row:t,col:i}=this.getRefCell(),{f1:n,f2:o,text:r}=this.relativeCondition;n&&(e.f1=Z(n,t,i)),o&&(e.f2=Z(o,t,i)),r&&(e.text=Z(r,t,i))}return e}serializeRelative(){return this.isFormula()?Object.assign(this.serializeBasic(),this.relativeCondition):this.serialize()}isRelativeEqual(e){let t=(e,t,i)=>i.every(i=>e[i]===t[i]),i=this.serializeRelative();return t(i,e,["type","op","altType","f1","f2","text"])&&Object.keys(i.style).length===Object.keys(e.style).length&&t(i.style,e.style,Object.keys(i.style))}isReferenceSelfOnly(){if(!this.isFormula()||!this.isFormulaInput())return!0;let{f1:e,f2:t}=this.relativeCondition;return(!e||eo(e))&&(!t||eo(t))}isFormulaInput(){if(void 0===this._isFormulaInput){let e=!0;switch(this.type){case"cellIs":e=(0,t_.U3)(this.f1)||!!(this.f2&&(0,t_.U3)(this.f2));break;case"containsBlanks":case"notContainsBlanks":e=!1;break;case"containsText":case"beginsWith":case"endsWith":case"notContainsText":e=(0,t_.jr)(this.text)}this._isFormulaInput=e}return this._isFormulaInput}isFormula(){return!!(this.relativeCondition.f1||this.relativeCondition.f2)}updateConditionFormula(){if(!this.isFormula())return;let e=this.conditionFormula,t=this.getRefCell(),i=this.relativeCondition.f1?Z(this.relativeCondition.f1,t.row,t.col):this.f1,n=this.relativeCondition.f2?Z(this.relativeCondition.f2,t.row,t.col):this.f2;this.conditionFormula="cellIs"===this.type?sT(this.op,(0,nC.coordToLabel)(t),i,n):i,e!==this.conditionFormula&&this.registerUnitItem()}destroy(){this.sheet.getWorkbook().getUnitUnknownRefManager().removeItem(this.unitItem),this.unitItem.unregister()}resetCache(){this.updateConditionFormula()}getRangeBound(){let{f1:e="",f2:t=""}=this.relativeCondition;return en(e,t)}updateRanges(e){this.ranges=e,this.updateConditionFormula(),this.sheet.notifyPluginChanges(["cf"])}notifyAlterGrid(e,t,i,n,o,r){let a=this.getRefCell();if(t===this.sheet&&n<0&&(a=function(e,t,i,n){for(let o=0,r=e.length;o<r;o++){let r=e[o],a=r.from[n],s={row:r.from.row,col:r.from.col};if(a<t||a>=t+i||(s[n]=t+i,r.includes(s)))return s}}(this.ranges,i,-n,e)),!a)return;let s={...a};t===this.sheet&&i<=s[e]&&(s[e]+=n);let l={[e]:i},c=this.changeFormulaBy(e=>H.P6.changeFormula(e,{delta:n,start:l},t.getName(),this.sheet.getName()),a,s);(c.f1||c.f2)&&(0,eI.PY)(r,this.sheet.sheetId,"synoConditionalFormat",c)}notifyMove(e,t,i,n){let o=this.getRefCell();if(t===this.sheet){let{newRanges:t,nextRanges:n}=pX(e,this,i);o=0===n.length?t[0].from:n[0].from}let r={...o};t===this.sheet&&r[e]>=i.sec[0].start&&r[e]<=i.sec[1].end&&(r[e]<i.sec[0].start+i.sec[1].amount?r[e]+=i.sec[0].amount:r[e]-=i.sec[1].amount);let a=t.getName(),s=this.sheet.getName(),l=this.changeFormulaBy(t=>H.P6.moveFormula(e,t,i,a,s),r,o);(l.f1||l.f2)&&(0,eI.PY)(n,this.sheet.sheetId,"synoConditionalFormat",l)}notifyRename(e,t,i){let n=this.defaultChangeFormulaBy(i=>(0,U.ZW)(i,e,t));(n.f1||n.f2)&&(0,eI.PY)(i,this.sheet.sheetId,"synoConditionalFormat",n)}notifyMoveFormulaRange(e,t,i,n){let o=this.getRefCell();if(this.sheet.getName()===t.shName&&t.includes(o.row,o.col))return;let r=this.sheet.getName(),a=this.defaultChangeFormulaBy(n=>H.P6.changeFormulaRange(n,e,t,r,void 0,i));(a.f1||a.f2)&&(0,eI.PY)(n,this.sheet.sheetId,"synoConditionalFormat",a)}notifyRemoveFormulaRange(e,t){let i=this.sheet.getName(),n=this.defaultChangeFormulaBy(t=>H.P6.removeFormulaRange(t,e,i));(n.f1||n.f2)&&(0,eI.PY)(t,this.sheet.sheetId,"synoConditionalFormat",n)}notifyRecalcUnknown(){this.registerUnitItem(),this.resetCache()}notifyDeleteSheet(){this.registerUnitItem(),this.resetCache()}getSheet(){return this.sheet}defaultChangeFormulaBy(e){let t=this.getRefCell();return this.changeFormulaBy(e,t,t)}changeFormulaBy(e,t,i){let n={cfId:this.id},o={},{f1:r,f2:a,text:s}=this.relativeCondition;function l(n){return G(n=e(n=Z(n,t.row,t.col)),i.row,i.col)}if(r){let e=l(r);e!==r&&(n.f1=r,o.f1=e)}if(a){let e=l(a);e!==a&&(n.f2=a,o.f2=e)}if(s){let e=l(s);e!==s&&(n.text=s,o.text=e)}return this.updateByRelativeFormula(o),n}updateByRelativeFormula(e){let{f1:t,f2:i,text:n}=e;if(!t&&!i&&!n)return;let o=this.relativeCondition;t&&(o.f1=t),i&&(o.f2=i),n&&(o.text=n),this.sheet.notifyPluginChanges(["cf"]),this.resetCache()}repairCross(e){this.updateByRelativeFormula(e)}}class p$ extends pQ{constructor(e,t,i,n,o,r,a,s,l,c){super(e,t,i,n,o,r,a,s,l,c),this.matrix=null}resetCache(){this.matrix?(this.matrix.clear(),this.resetAllCell()):this.matrix=new pj,super.resetCache()}getConditionObject(e,t){let i={isFormula:this.isFormula(),operator:this.op,formula1:this.isFormula()?this.conditionFormula:this.f1,formula2:this.f2};if(this.isFormula()){let n=this.getRefCell();i.delta={row:e-n.row,col:t-n.col}}else{let{f1:e,f2:t}=this;(0,pK.Z)(this.f1)&&(0,pK.Z)(this.f2)&&this.f1>this.f2&&(e=this.f2,t=this.f1),"string"==typeof e&&(0,t_.u3)(e)&&(e=(0,tq.jF)(e)),"string"==typeof t&&(0,t_.u3)(t)&&(t=(0,tq.jF)(t)),i.formula1=e,i.formula2=t}return i}resetAllCell(){this.forAllCell((e,t)=>this.resetCellCf(e,t))}forAllCell(e){for(let t=0,i=this.ranges.length;t<i;t++)this.ranges[t].forAll(e)}resetCellCf(e,t){pJ(this.sheet,e,t)}onDepUpdate(e,t){this.resetCellCf(e,t)}destroy(){super.destroy(),this.matrix&&this.matrix.clear()}}function pJ(e,t,i){let n=e.getCellMeta(t,i);if(n&&n.refCf&&!1===n.needRecalcCf){let o=[["needRecalcCf",!0]];n.cfStyle&&o.push(["cfStyle",null]),e.setCellMeta(t,i,o)}}let p0=class extends rM{constructor(e){super(e,"synoConditionalFormat"),this.cfs=[],this.cfNextRanges=null,this._nextRanges=new Map,this._additionCfs=[]}enablePlugin(){super.enablePlugin(),this.addHook("afterInit",e=>this.initData(e)),this._registerHookListener()}_registerHookListener(){this.addHook("afterCreateRow",(e,t,i)=>this._afterCreate("row",e,t,i)),this.addHook("afterCreateCol",(e,t,i)=>this._afterCreate("col",e,t,i)),this.addHook("beforeRemoveRow",(e,t)=>this._beforeRemove("row",e,t)),this.addHook("beforeRemoveCol",(e,t)=>this._beforeRemove("col",e,t)),this.addHook("afterRemoveRow",(e,t)=>this._afterRemove("row",e,t)),this.addHook("afterRemoveCol",(e,t)=>this._afterRemove("col",e,t)),this.addHook("beforeMoveRow",(e,t,i)=>this.beforeMove("row",e,t,i)),this.addHook("afterMoveRow",(e,t)=>this.afterMove("row",e,t)),this.addHook("beforeMoveCol",(e,t,i)=>this.beforeMove("col",e,t,i)),this.addHook("afterMoveCol",(e,t)=>this.afterMove("col",e,t)),this.addHook("repairCross",e=>this.repairCross(e))}destroy(){ea(this.cfs,e=>e.destroy()),super.destroy()}cfFactory(){return pQ}initData(e){let t=e.cfs;return!!Array.isArray(t)&&(ea(t,e=>{this.addCf(e,void 0,!0)}),!0)}collectColor(e){for(let t of this.cfs)t.style.color&&e.add(t.style.color),t.style.bgColor&&e.add(t.style.bgColor)}_getCfFromJSON(e){let t=e.ranges.map(e=>eR.textToRange(e,this.sheet)).filter(e=>!!e);return new(this.cfFactory())(this.sheet,e.cfId,e.type,e.op,t,e.style,e.f1,e.f2,e.text,e.altType)}addCf(e,t,i){let n=this._getCfFromJSON(e);n.init(),"number"==typeof t&&t<this.cfs.length||(t=this.cfs.length),this.cfs.splice(t,0,n),ea(this.cfs,(e,t)=>{e.priority=t+1}),this._onAfterAddCf(n,e,t,i),this.sheet.notifyPluginChanges(["cf"]),this.sheet.getWorkbook().getNotifier()?.onColorAdded()}removeCf(e,t){let i=this.findIndexById(e);if(i<=-1)return;let n=this.cfs[i];n.destroy(),this.cfs.splice(i,1),this._onAfterRemoveCf(n,i,t),this.sheet.notifyPluginChanges(["cf"])}updateCfRanges(e,t){let i=this.findIndexById(e);i<0||this.cfs[i].updateRanges(t)}findIndexById(e){for(let t=0,i=this.cfs.length;t<i;t++)if(this.cfs[t].id===e)return t;return -1}_afterCreate(e,t,i,n){ea(this.cfs,o=>{let r=t+i-1,a=o.ranges;if(n>=0)for(let s=0;s<a.length;s++){let l=a[s];if(l.from[e]<=n&&n<=l.to[e]){l.to[e]+=i;let n=l.clone();n.from[e]=t,n.to[e]=r,this._expandToNewRange(o,n),this.sheet.notifyPluginChanges(["cf"])}else l.from[e]>=t&&(l.from[e]+=i,l.to[e]+=i,0===s&&o.isFormula()&&o.resetCache(),this.sheet.notifyPluginChanges(["cf"]))}this._onAfterCfExpand(o,e,t,i)})}_beforeRemove(e,t,i){let n="row"===e?eA.GJ.prototype.diffRow:eA.GJ.prototype.diffCol;this.cfNextRanges=Array(this.cfs.length),ea(this.cfs,(e,o)=>{let r=[],a=!1;for(let o=0;o<e.ranges.length;o++){let s=n.call(e.ranges[o],t,i);null!==s&&e.ranges[o].isEqual(s)||(a=!0),s&&r.push(s)}this.cfNextRanges[o]=a?r:null})}_afterRemove(e,t,i){let n=this.cfs;ea(n,(o,r)=>{let a=this.cfNextRanges?.[r];if(a&&0===a.length){n[r]=null;return}null!=a&&o.updateRanges(a),this._onAfterCfShrink(o,e,t,i)}),this.cfs=n.filter(e=>null!==e),this.cfNextRanges=null,this.sheet.notifyPluginChanges(["cf"])}_onAfterAddCf(e,t,i,n){}_onAfterRemoveCf(e,t,i){}_onAfterCfExpand(e,t,i,n){}_onAfterCfShrink(e,t,i,n){}_onMoveToNewRanges(e,t,i,n){}_removeCfMeta(e){}_resetCf(e){}_expandToNewRange(e,t){}_moveCf(e,t,i){if(t.isReferenceSelfOnly()){let{nextRanges:n,rangesChanged:o}=pX(e,t,i);return{changed:o,nextRanges:n}}let n=i.isBackward?i.sec[1]:i.sec[0],o=null,r=t.getRefCell();n.start<=r[e]&&n.end>=r[e]&&(o=t.serializeRelative());let{newRanges:a,nextRanges:s,rangesChanged:l}=pX(e,t,i);if(a.length>0&&!o&&(o=t.serializeRelative()),this._resetCf(t),l){if(0===s.length)o=null;else if(a.length>0){if(this._onMoveToNewRanges(e,i,t,a),t.isFormula()){let t={...a[0].from};t[e]-=i.delta,o.f1&&(o.f1=H.P6.moveFormula(e,Z(o.f1,t.row,t.col),i)),o.f2&&(o.f2=H.P6.moveFormula(e,Z(o.f2,t.row,t.col),i)),o.text&&(o.text=H.P6.moveFormula(e,Z(o.text,t.row,t.col),i))}o.ranges=eD(a)}}return{changed:l,additionCf:o,nextRanges:0===s.length?a:s}}beforeMove(e,t,i,n){let o=i&&i[this.pluginName]||{},r={},a=new Set;for(let i=this.cfs.length-1;i>=0;i--){let n=this.cfs[i];if(a.add(n.id),n.id in o)o[n.id]?(this._removeCfMeta(n),this._nextRanges.set(n,o[n.id].ranges.map(e=>eR.textToRange(e,this.sheet)).filter(e=>!!e))):this.removeCf(n.id,!0);else{let{ranges:i}=n.serialize(),{additionCf:o,changed:a,nextRanges:s}=this._moveCf(e,n,t);a&&(r[n.id]={ranges:i},this._nextRanges.set(n,s)),o&&this._additionCfs.push(o)}}for(let e=this._additionCfs.length-1;e>=0;e--){let t=this._additionCfs[e];for(;a.has(t.cfId);)t.cfId=(0,t_.Ui)(t.cfId);a.add(t.cfId),r[t.cfId]=null}n[this.pluginName]=r}afterMove(e,t,i){for(let e=0;e<this._additionCfs.length;e++)this.addCf(this._additionCfs[e],0,!0);for(let[e,t]of(this._additionCfs=[],this._nextRanges.entries()))e.updateRanges(t);this._nextRanges.clear()}_repair(e,t,i){ea(e,e=>{let t=e.cf;this.removeCf(t.cfId,!0),this.addCf(t,e.index,!0)})}repairRow(e,t,i){this._repair(e,t,i)}repairCol(e,t,i){this._repair(e,t,i)}repairCross(e){let t=e[this.pluginName];if(t)for(let e=0;e<t.length;e++){let i=this.findIndexById(t[e].cfId);i>=0&&this.cfs[i].repairCross(t[e])}}};class p1 extends p0{_registerHookListener(){super._registerHookListener(),this.addHook("afterChangeResolve",e=>this.afterChangeResolve(e)),this.addHook("afterSort",(e,t)=>this.afterSort(e,t)),this.addHook("collectRemovedRowInfo",e=>this._collectRemovedInfo("row",e)),this.addHook("collectRemovedColInfo",e=>this._collectRemovedInfo("col",e))}cfFactory(){return p$}_onAfterAddCf(e,t,i,n){this._addCfMeta(e),!0!==n&&this.sheet.runHooks("afterCreateConditionalFormat",t,i)}_onAfterRemoveCf(e,t,i){this._removeCfMeta(e),!0!==i&&this.sheet.runHooks("afterRemoveConditionalFormat",e.id,e.serialize(),t)}updateCfRanges(e,t){let i=this.findCfById(e);if(!i)return;let n=i.ranges;for(let e of t)n=tM(n,e).newRanges;let o=t;for(let e of i.ranges)o=tM(o,e).newRanges;let r=eD(i.ranges);for(let e of n)this.removeRangeCfMeta(i,e);for(let n of(super.updateCfRanges(e,t),o))this.addRangeCfMeta(i,n);this.sheet.runHooks("afterUpdateCfRanges",e,eD(i.ranges),r)}_onAfterCfExpand(e,t,i,n){this._resetItemWithDeps(e,t,i,n)}_onAfterCfShrink(e,t,i,n){this._resetItemWithDeps(e,t,i,-n)}_resetCf(e){e.resetAllCell()}_onMoveToNewRanges(e,t,i,n){let o="row"===e?t.delta:0,r="col"===e?t.delta:0;for(let e=0;e<n.length;e++)for(let t=n[e].from.row;t<=n[e].to.row;t++)for(let a=n[e].from.col;a<=n[e].to.col;a++){let e=this.sheet.getCellMeta(t-o,a-r);e&&p2(e)&&(e.refCf=e.refCf.filter(e=>i!==e))}}afterMove(e,t,i){super.afterMove(e,t,i);let n=i&&i[this.pluginName]||{};for(let e=0;e<this.cfs.length;e++){let t=this.cfs[e];n[t.id]&&this._addCfMeta(t)}}_addCfMeta(e){e.forAllCell((t,i)=>this.addCellCfMeta(e,t,i))}addRangeCfMeta(e,t){t.forAll((t,i)=>this.addCellCfMeta(e,t,i))}addCellCfMeta(e,t,i){let n=this.sheet.getOrCreateCell(t,i).getProperties();if(n.needRecalcCf=!0,p2(n)){for(let t=n.refCf.length;t>=0;t--)if(0===t||n.refCf[t-1].priority<e.priority){n.refCf.splice(t,0,e);break}}else n.refCf=[e]}_removeCfMeta(e){e.forAllCell((t,i)=>this.removeCellCfMeta(e,t,i))}removeRangeCfMeta(e,t){t.forAll((t,i)=>this.removeCellCfMeta(e,t,i))}removeCellCfMeta(e,t,i){let n=this.sheet.getCellMeta(t,i);if(!n)return;let o=[];if(p2(n)){let t=n.refCf.filter(t=>e!==t);0===t.length?o.push(["refCf",null],["needRecalcCf",!1]):o.push(["refCf",t],["needRecalcCf",!0])}n.cfStyle&&o.push(["cfStyle",null]),this.sheet.setCellMeta(t,i,o)}findCfById(e){let t=this.findIndexById(e);return -1!==t?this.cfs[t]:null}findCfJSON(e){return this.findCfById(e)?.serialize()}findCfByJSON(e){for(let t of this.cfs)if(t.isRelativeEqual(e))return t;return null}_recalcCellCf(e,t,i){let n={},o=!1;for(let r=i.refCf.length-1;r>=0;r--){let a=i.refCf[r],s=a.getConditionObject(e,t);s.isFormula&&(s.item=a.matrix.createItem(this.sheet,e,t,a)),sO(this.sheet,e,t,s)&&(o=!0,(0,tl.l7)(n,a.style)),s.item&&(s.item.needUpdate=!1)}let r=[];o&&r.push(["cfStyle",n]),r.push(["needRecalcCf",!1]),this.sheet.setCellMeta(e,t,r)}afterChangeResolve(e){if(0!==this.cfs.length)for(let t=0,i=e.length;t<i;t++){let{row:i,col:n}=e[t];pJ(this.sheet,i,n)}}afterSort(e,t){ea(this.cfs,i=>{let n=!1;for(let o=0;o<i.ranges.length;o++){let r=i.ranges[o].getOverlap(t);if(!r)continue;n=!0;let{from:{row:a,col:s},to:{row:l,col:c}}=r;for(let n=a;n<=l;n++){let o=n-t.from.row;if(o!==e[o])for(let e=s;e<=c;e++){let t=this.sheet.getOrCreateCell(n,e).getProperties();t.needRecalcCf=!0,(p2(t)?t.refCf:t.refCf=[]).push(i)}}}n&&i.matrix&&i.matrix.sort(t.toArray(),e)})}_expandToNewRange(e,t){t.forAll((t,i)=>{let n=this.sheet.getOrCreateCell(t,i).getProperties();n.needRecalcCf=!0,(p2(n)?n.refCf:n.refCf=[]).push(e)})}_afterCreate(e,t,i,n){super._afterCreate(e,t,i,n)}_afterRemove(e,t,i){super._afterRemove(e,t,i)}_getRemovedInfo(){let e=[];return ea(this.cfs,(t,i)=>{null!==this.cfNextRanges[i]&&e.push({cf:t.serialize(),index:i})}),e}_collectRemovedInfo(e,t){let i=this._getRemovedInfo();i.length>0&&t.push({pluginName:this.pluginName,[e+"Info"]:i})}collectRangeInfo(e,t){void 0===t&&(t=()=>!1);let i=[],n={};for(let o=e.from.row;o<=e.to.row;o++){if(t(o))continue;let r=Array(e.getWidth());for(let t=e.from.col;t<=e.to.col;t++){let i=this.sheet.getCellMeta(o,t)?.refCf;if(!i){r[t-e.from.col]=null;continue}for(let o of(r[t-e.from.col]=i.map(e=>e.id),i))n[o.id]||(n[o.id]=o.serializeRelative())}i.push(r)}return{cfIds:i,cfs:n,sheetId:this.sheet.sheetId,order:this.cfs.map(e=>e.id)}}_repair(e,t,i){super._repair(e,t,i)}_resetItemWithDeps(e,t,i,n){e.matrix.filterSafeAndShift(t,i,n,t=>{e.resetCellCf(t.row,t.col)})}getCfsJSON(){return this.cfs.map(e=>e.serialize())}getStateJSON(){return{cfs:this.getCfsJSON()}}getComputedCfStyle(e,t){let i=this.sheet.getCellModel(e,t);return this.getCfStyle(e,t,i,i?.getProperties())}getCfStyle(e,t,i,n){return this.afterDataRenderer(e,t,i,n),n?.cfStyle}afterDataRenderer(e,t,i,n){return!!(n&&n.refCf)&&(!0===n.needRecalcCf&&this._recalcCellCf(e,t,n),!0)}}function p2(e){return Array.isArray(e.refCf)}class p3 extends uw(p1){}let p4=class extends rM{constructor(e){super(e,"synoFilter"),this.filter=null,this.filterView=[]}enablePlugin(){this.addHook("afterInit",e=>this.afterInit(e)),this.addHook("afterCreateRow",(e,t)=>this.afterCreateRow(e,t)),this.addHook("afterCreateCol",(e,t)=>this.afterCreateCol(e,t)),this.addHook("afterRemoveRow",(e,t)=>this.afterRemoveRow(e,t)),this.addHook("afterRemoveCol",(e,t)=>this.afterRemoveCol(e,t)),this.addHook("beforeMoveRow",(e,t,i)=>this.beforeMove("row",e,t,i)),this.addHook("beforeMoveCol",(e,t,i)=>this.beforeMove("col",e,t,i)),super.enablePlugin()}initData(e){let t=e.filter;if(!t)return!1;if(t.id){let e=t.range?eA.GJ.fromArray(t.range):null;this._fixFilterOperator(t.filters||[]),this.filter=this._createFilter(t.id,e,t.filters||[],t.enabled||!1)}return t.filterView&&(this.filterView=t.filterView.map(e=>{let t=e.range?eA.GJ.fromArray(e.range):null;return this._fixFilterOperator(e.filters),this._createFilter(e.id,t,e.filters,e.enabled,e.name)})),!1}_fixFilterOperator(e){let t={containsTexts:"containsText",notContainsTexts:"notContainsText",exactTexts:"exactText"};for(let i of e)if(i&&sx(i))for(let e=0;e<i.operator.length;e++)t[i.operator[e]]&&(i.operator[e]=t[i.operator[e]])}_createFilter(e,t,i,n,o,r){return new sI(e,t,i,n,o,r)}afterInit(e){this.initData(e)}afterCreateRow(e,t){this.filter&&this.filter.afterCreateRow(e,t),ea(this.filterView,i=>{i.afterCreateRow(e,t)})}afterCreateCol(e,t){this.filter&&this.filter.afterCreateCol(e,t),ea(this.filterView,i=>{i.afterCreateCol(e,t)})}afterRemoveRow(e,t){this.filter&&this.filter.afterRemoveRow(e,t),ea(this.filterView,i=>{i.afterRemoveRow(e,t)})}afterRemoveCol(e,t){this.filter&&this.filter.afterRemoveCol(e,t),ea(this.filterView,i=>{i.afterRemoveCol(e,t)})}repairCol(e,t){let i=this.filter;if(e.filter&&i&&e.filter.filterId===i.getId()&&i.repairCol(e.filter,t),e.view)for(let i=0;i<e.view.length;i++){let n=e.view[i],o=this.getFilterView(n.filterId);o&&o.repairCol(n,t)}}repairRow(e,t){let i=this.filter;if(e.filter&&i&&e.filter.filterId===i.getId()&&i.repairRow(e.filter,t),e.view)for(let i=0;i<e.view.length;i++){let n=e.view[i],o=this.getFilterView(n.filterId);o&&o.repairRow(n,t)}}beforeMove(e,t,i,n){let o=i&&i[this.pluginName],r=this._beforeMove(e,t,o);r&&(n[this.pluginName]=r)}_beforeMove(e,t,i){return this.collectMoveData(n=>n.beforeMove(e,t,i?.filter?.filterId===n.getId()?i.filter:i?.view?.[n.getId()]??null))}notifyMoveRange(e,t,i,n,o){let r=this.collectMoveData(o=>o.notifyMoveRange(e,t,i,n?.filter?.filterId===o.getId()?n.filter:n?.view?.[o.getId()]));r&&(o.filter=r)}collectMoveData(e){let t={};if(this.filter){let i=e(this.filter);i&&(t.filter=i)}let i={};for(let n of this.filterView){let o=e(n);o&&(i[n.getId()]=o,t.view=i)}return t.filter||t.view?t:null}notifyRemoveRange(e,t,i){let n=this.collectRemoveRangeData(i=>{let n=t?.filter?.filterId===i.getId()?t.filter:t?.view?.[i.getId()];return(!t||n)&&(!n||"dim"in n)?i.notifyRemoveRange(e,n):null});n&&(i.filter=n)}collectRemoveRangeData(e){let t={};if(this.filter){let i=e(this.filter);i&&(t.filter=i)}let i={};for(let n of this.filterView){let o=e(n);o&&(i[n.getId()]=o,t.view=i)}return t.filter||t.view?t:null}createFilter(e,t){return!(this.filter&&this.filter.isFilterEnabled())&&(this.filter=this._createFilter(t,e,[],!0,""),!0)}enableFilter(e,t){return!!this.filter&&e===this.filter.getId()&&!!this.filter.hasRange()&&(this.filter.setEnabled(!0),t&&this.setHiddenInfo(t),!0)}disableFilter(e,t){return!!this.filter&&e===this.filter.getId()&&!!this.filter.isFilterEnabled()&&(this.filter.setEnabled(!1),t&&this.setHiddenInfo(t),!0)}updateFilterRange(e,t,i){return!!this.filter&&e===this.filter.getId()&&!!this.filter.isFilterEnabled()&&(this._updateFilterRange(this.filter,t,i),!0)}_updateFilterRange(e,t,i){if(e.setRange(t),t&&i)for(let n=0;n<i.length;n++)e.setCondition(n+t.from.col,i[n])}createFilterView(e,t,i,n){if(this.getFilterView(e))return!1;let o=this._createFilter(e,t,[],!0,i,n);return this.filterView.push(o),!0}enableFilterView(e){let t=this.getFilterView(e);return!!t&&(t.setEnabled(!0),!0)}disableFilterView(e){let t=this.getFilterView(e);return!!t&&(t.setEnabled(!1),!0)}updateFilterViewRange(e,t,i){let n=this.getFilterView(e);return!!n&&(this._updateFilterRange(n,t,i),!0)}updateFilterViewName(e,t){let i=this.getFilterView(e);return!!i&&(i.setName(t),!0)}setActiveFilterView(e){}getFilterView(e){for(let t=0;t<this.filterView.length;t++)if(this.filterView[t].getId()===e)return this.filterView[t]}isFilterEnabled(){return!!this.filter&&this.filter.isFilterEnabled()}setFilter(e,t,i,n){return!!this.filter&&e===this.filter.getId()&&!!this.filter.setCondition(t,i,!0)&&(n&&this.setHiddenInfo(n),!0)}setHiddenInfo(e){let t=this.sheet.getPlugin("synoHideRowCol");e.show&&t.setHiddenInfo(e.show,!1),e.hide&&t.setHiddenInfo(e.hide,!0)}setFilterViewCondition(e,t,i){let n=this.getFilterView(e);return!!n&&!!n.setCondition(t,i)}expandRangeByData(e){let t=(t,i)=>{if(!t.isFilterEnabled())return;let n=t.cloneRange();n&&this._checkNeedExpand(n,e)&&(n.to.row=e.to.row,i?this.updateFilterViewRange(t.getId(),n):this.updateFilterRange(t.getId(),n))};this.filter&&t(this.filter,!1),this.filterView.forEach(e=>{t(e,!0)})}_checkNeedExpand(e,t){if(t.from.row<e.from.row)return!1;let i=e.to.row+1,n=e.clone();if(n.from.row=n.to.row=i,!n.overlaps(t))return!1;for(let n=i;n<=t.to.row;n++)for(let t=e.from.col;t<=e.to.col;t++)if(!(0,eI.O2)(this.sheet.getDataAtCell(n,t)))return!1;return!0}};class p5 extends p4{constructor(e){super(e),this.activeFilter=null,this.origHiddenCells=[],this.origHiddenRows=[],this.viewHiddenCells=[],this.viewHiddenRows=[],this.viewHiddenResult=[]}enablePlugin(){this.addHook("collectRemovedColInfo",(e,t,i)=>this.collectRemovedColInfo(e,t,i)),this.addHook("collectRemovedRowInfo",(e,t,i)=>this.collectRemovedRowInfo(e,t,i)),this.addHook("afterShowRows",(e,t)=>this.setHiddenResult(e,t,!1)),this.addHook("afterHideRows",(e,t)=>this.setHiddenResult(e,t,!0)),super.enablePlugin()}initData(e){return super.initData(e),this.filter&&(this.filter.isFilterEnabled()&&this.updateActiveFilter(this.filter),this.resetHiddenResult(!1)),!!this.activeFilter}_createFilter(e,t,i,n,o,r){let a=super._createFilter(e,t,i,n,o,r);return a.on("insertRowRange",(e,t)=>this._insertRowRange(a,e,t)),a.on("insertColRange",(e,t)=>this._insertColRange(a,e,t)),a.on("removeRowRange",(e,t)=>this._removeRowRange(a,e,t)),a.on("removeColRange",(e,t)=>this._removeColRange(a,e,t)),a.on("moveRowRange",(e,t,i)=>this._moveRowRange(a,e,t,i)),a.on("moveColRange",(e,t,i)=>this._moveColRange(a,e,t,i)),a.on("setCondition",e=>this._afterSetCondition(a,e)),a.on("rangeChange",()=>this._afterRangeChanged(a)),a}isInViewState(){return!!this.activeFilter&&this.activeFilter!==this.filter}getFilterJSON(){return this.filter?.toJSON()}getActiveFilterJSON(){return this.activeFilter?.toJSON()}listFilterViewInfo(){return this.filterView.filter(e=>e.isFilterEnabled()&&!e.isFilterPrivate()).map(e=>({id:e.getId(),name:e.getName()}))}getActiveId(){return this.activeFilter?.getId()}getActiveRange(){return this.activeFilter?.getRange()??null}updateActiveFilter(e){this.activeFilter=e,this.sheet.notifyPluginChanges(["filter"])}isFilteredRow(e,t){let i=t?this.activeFilter:this.filter,n=i?.getRange();if(!n||!i?.isFilterEnabled()||e<n.from.row||e>n.to.row)return!1;let o=e-n.from.row,r=t?this.viewHiddenRows:this.origHiddenRows;return void 0===r[o]&&this._calcHiddenRow(e,t),!!r[o]}isHiddenRow(e){return this.sheet.isFilteredRow(e)}isViewHidden(e){return this.viewHiddenResult[e]}afterCreateRow(e,t){var i,n;this.viewHiddenResult=(i=this.viewHiddenResult,n=Array(t).fill(!1),i.slice(0,e).concat(n,i.slice(e))),super.afterCreateRow(e,t),this.sheet.notifyPluginChanges(["filter"])}afterRemoveRow(e,t){this.viewHiddenResult.splice(e,t),super.afterRemoveRow(e,t),this.isInViewState()&&!this.activeFilter?.hasRange()&&this.leaveViewState(),this.sheet.notifyPluginChanges(["filter"])}afterRemoveCol(e,t){super.afterRemoveCol(e,t),this.isInViewState()&&!this.activeFilter?.hasRange()&&this.leaveViewState()}collectRemovedColInfo(e,t,i){let n={},o=this.filter?.collectRemovedColInfo(t,i);o&&(n.filter=o);let r=[];ea(this.filterView,e=>{let n=e.collectRemovedColInfo(t,i);n&&r.push(n)}),r.length>0&&(n.view=r),(n.filter||n.view)&&e.push({pluginName:this.pluginName,colInfo:n})}collectRemovedRowInfo(e,t,i){let n={},o=this.filter?.collectRemovedRowInfo(t,i);o&&(n.filter=o);let r=[];ea(this.filterView,e=>{let n=e.collectRemovedRowInfo(t,i);n&&r.push(n)}),r.length>0&&(n.view=r),this.isInViewState()&&this.activeFilter&&(n.calc={id:this.activeFilter.getId(),result:this.viewHiddenResult.slice(t,t+i)}),(n.filter||n.view||n.calc)&&e.push({pluginName:this.pluginName,rowInfo:n})}repairRow(e,t){let{calc:i,...n}=e;if(super.repairRow(n,t),!i||!this.activeFilter||i.id!==this.activeFilter.getId())return;let{result:o}=i;for(let e=0;e<o.length;e++)this.viewHiddenResult[e+t]=o[e];this.sheet.notifyPluginChanges(["filter"])}checkMoveEnable(e,t,i,n){if(this.filter&&!this.filter.checkMoveEnable(e,t,i,n))return!1;for(let o=0;o<this.filterView.length;o++)if(this.filterView[o]&&!this.filterView[o].checkMoveEnable(e,t,i,n))return!1;return!0}_beforeMove(e,t,i){return el(this.viewHiddenResult,t.sec[0].start,t.sec[0].amount,t.sec[1].amount),this.sheet.notifyPluginChanges(["filter"]),super._beforeMove(e,t,i)}_insertRowRange(e,t,i){if(e!==this.filter&&e!==this.activeFilter)return;let n=e===this.filter?this.origHiddenCells:this.viewHiddenCells,o=e===this.filter?this.origHiddenRows:this.viewHiddenRows;t<n.length&&(ef(o,t,i),ef(n,t,i));for(let e=0;e<i;e++)n[t+e]=[];this.sheet.notifyPluginChanges(["filter"])}_insertColRange(e,t,i){(e===this.filter||e===this.activeFilter)&&(ea(e===this.filter?this.origHiddenCells:this.viewHiddenCells,e=>{ef(e,t,i)}),this.sheet.notifyPluginChanges(["filter"]))}_removeRowRange(e,t,i){if(e!==this.filter&&e!==this.activeFilter)return;let n=e===this.filter?this.origHiddenCells:this.viewHiddenCells,o=e===this.filter?this.origHiddenRows:this.viewHiddenRows;t+i>=n.length?(o.length=t,n.length=t):(o.splice(t,i),n.splice(t,i)),this.sheet.notifyPluginChanges(["filter"])}_removeColRange(e,t,i){if(e!==this.filter&&e!==this.activeFilter)return;let n=e===this.filter?this.origHiddenCells:this.viewHiddenCells,o=e===this.filter?this.origHiddenRows:this.viewHiddenRows;for(let e=0;e<o.length;e++)if(o[e]){for(let r=t;r<t+i;r++)if(n[e][r]){o[e]=void 0;break}}ea(n,e=>{e.splice(t,i)}),this.sheet.notifyPluginChanges(["filter"]),e===this.activeFilter&&this.onHiddenChanged()}_moveRowRange(e,t,i,n){if(e!==this.filter&&e!==this.activeFilter)return;let o=e===this.filter?this.origHiddenCells:this.viewHiddenCells;el(e===this.filter?this.origHiddenRows:this.viewHiddenRows,t,i,n),el(o,t,i,n),this.sheet.notifyPluginChanges(["filter"])}_moveColRange(e,t,i,n){(e===this.filter||e===this.activeFilter)&&(ea(e===this.filter?this.origHiddenCells:this.viewHiddenCells,e=>{el(e,t,i,n)}),this.sheet.notifyPluginChanges(["filter"]))}_afterSetCondition(e,t){if(e!==this.filter&&e!==this.activeFilter)return;let i=e===this.filter?this.origHiddenCells:this.viewHiddenCells,n=e===this.filter?this.origHiddenRows:this.viewHiddenRows;e===this.activeFilter&&0!==n.length&&this.onHiddenChanged(),n.length=0,ea(i,e=>{e.length>t&&(e[t]=void 0)}),this.sheet.notifyPluginChanges(["filter"])}_afterRangeChanged(e){if(e===this.filter){let t=e.getRange();t||e!==this.activeFilter?t&&!this.activeFilter&&this.updateActiveFilter(e):this.updateActiveFilter(null)}this.sheet.notifyPluginChanges(["filter"])}createFilter(e,t){return!!super.createFilter(e,t)&&(this.activeFilter||this.updateActiveFilter(this.filter),this.resetHiddenResult(!1),this.sheet.runHooks("afterCreateFilter",e,t),!0)}resetHiddenResult(e){let t=e?this.viewHiddenCells:this.origHiddenCells,i=e?this.viewHiddenRows:this.origHiddenRows;t.length=0,i.length=0;let n=e?this.activeFilter:this.filter,o=n?.getRange()?.getHeight()||0;for(let e=0;e<o;e++)t[e]=[];this.sheet.notifyPluginChanges(["filter"])}enableFilter(e,t){return!!super.enableFilter(e,t)&&(this.activeFilter||(this.updateActiveFilter(this.filter),this.onHiddenChanged()),this.sheet.runHooks("afterEnableFilter",e,t),this.sheet.getWorkbook().notifyDataChange(nf.FILTER),!0)}disableFilter(e,t){let i=this.filter?.getRange();if(!i)return!1;if(!t){let e=new tP;for(let t=i.from.row+1;t<=i.to.row;t++)this.isFilteredRow(t,!1)&&e.push(t);t={show:e.getResult()}}return!!super.disableFilter(e,t)&&(this.activeFilter===this.filter&&(this.onHiddenChanged(),this.updateActiveFilter(null)),this.sheet.runHooks("afterDisableFilter",e,t),this.sheet.getWorkbook().notifyDataChange(nf.FILTER),!0)}updateFilterRange(e,t,i){if(!this.filter||e!==this.filter.getId()||!this.filter.isFilterEnabled())return!1;let n=this.filter.cloneRange(),o=this.filter.getAllConditions();return!!super.updateFilterRange(e,t,i)&&(this.activeFilter===this.filter&&this.onHiddenChanged(),this.sheet.notifyPluginChanges(["filter"]),this.sheet.runHooks("afterUpdateFilterRange",e,n,t,o,i),!0)}createFilterView(e,t,i,n){return!!super.createFilterView(e,t,i,n)&&(this.sheet.notifyPluginChanges(["filter"]),this.sheet.runHooks("afterCreateFilterView",e,t,i,n),!0)}enableFilterView(e){return!super.enableFilterView(e)||(this.sheet.notifyPluginChanges(["filter"]),this.sheet.runHooks("afterEnableFilterView",e),!1)}disableFilterView(e){return!!super.disableFilterView(e)&&(this.getFilterView(e)===this.activeFilter&&this.leaveViewState(),this.sheet.notifyPluginChanges(["filter"]),this.sheet.runHooks("afterDisableFilterView",e),!0)}updateFilterViewRange(e,t,i){let n=this.getFilterView(e);if(!n)return!1;let o=n.cloneRange(),r=n.getAllConditions(),a=n.isFilterPrivate();return!!super.updateFilterViewRange(e,t,i)&&(n===this.activeFilter&&(this.sheet.getWorkbook().getNotifier()?.onFilterViewUpdated(this.sheet.sheetId),this.onHiddenChanged()),this.sheet.notifyPluginChanges(["filter"]),this.sheet.runHooks("afterUpdateFilterViewRange",e,o,t,r,i,a),!0)}updateFilterViewName(e,t){let i=this.getFilterView(e);if(!i)return!1;let n=i.getName(),o=i.isFilterPrivate();return!!super.updateFilterViewName(e,t)&&(i===this.activeFilter&&this.sheet.getWorkbook().getNotifier()?.onFilterViewUpdated(this.sheet.sheetId),this.sheet.notifyPluginChanges(["filter"]),this.sheet.runHooks("afterUpdateFilterViewName",e,n,t,o),!0)}setActiveFilterView(e){let t=this.activeFilter?.getId()??null;e!==t&&(this.switchViewState(e),this.sheet.getWorkbook().getNotifier()?.onFilterViewUpdated(this.sheet.sheetId),this.sheet.notifyPluginChanges(["filter"]),this.sheet.runHooks("afterActiveFilterChange",t,e))}setFilter(e,t,i,n){if(!this.filter||e!==this.filter.getId())return!1;let o=this.filter.getRange();if(!o)return!1;for(let e=o.from.row+1;e<=o.to.row;e++)void 0===this.origHiddenRows[e-o.from.row]&&this._calcHiddenRow(e,!1);let r=this.filter.getCondition(t);if(!super.setFilter(e,t,i))return!1;let a=this._calcHiddenCol(t,!1);return n??=a,this.setHiddenInfo(n),this.sheet.notifyPluginChanges(["filter"]),this.sheet.runHooks("afterSetFilter",e,t,i,r,n),this.filter&&this.activeFilter&&this.filter===this.activeFilter&&this.onHiddenChanged(),!0}setFilterViewCondition(e,t,i){let n=this.getFilterView(e);if(!n)return!1;let o=n.getCondition(t),r=n.isFilterPrivate();if(!super.setFilterViewCondition(e,t,i))return!1;if(this.activeFilter===n){let{show:e,hide:i}=this._calcHiddenCol(t,!0);if(e)for(let{from:t,to:i}of e)this.setHiddenResult(t,i,!1);if(i)for(let{from:e,to:t}of i)this.setHiddenResult(e,t,!0)}return this.sheet.notifyPluginChanges(["filter"]),this.sheet.runHooks("afterSetFilterViewCondition",e,t,o,i,r),!0}expandRangeByData(e){function t(e,t){let i=e?.getRange();if(!i||!e?.isFilterEnabled())return;let n=i.getHeight();for(let e=t.length;e<n;e++)t[e]=!1}super.expandRangeByData(e),t(this.filter,this.origHiddenRows),this.activeFilter!==this.filter&&t(this.activeFilter,this.viewHiddenRows),this.sheet.notifyPluginChanges(["filter"])}setHiddenResult(e,t,i){if(this.isInViewState()){for(let n=e;n<=t;n++)this.viewHiddenResult[n]=i;this.sheet.notifyPluginChanges(["filter"])}}switchViewState(e){let t=this.activeFilter,i=t?.getRange(),n=e&&this.getFilterView(e),o=this.sheet.countRows();if(n){this.updateActiveFilter(n),this.resetHiddenResult(!0),this.viewHiddenResult=Array(o).fill(!1);let e=n.getRange();if(e)for(let t=e.from.row;t<=e.to.row;t++)this.viewHiddenResult[t]=this.isFilteredRow(t,!0);this.sheet.notifyPluginChanges(["filter"])}else this.leaveViewState();let r=this.activeFilter?.getRange();if(t!==this.activeFilter&&(i||r)){let e=Math.min(i?.from.row??o,r?.from.row??o),t=Math.max(i?.to.row??0,r?.to.row??0);this.sheet.runHooks("filterHiddenChange",e,t)}}leaveViewState(){this.filter&&this.filter.isFilterEnabled()?this.updateActiveFilter(this.filter):this.updateActiveFilter(null),this.viewHiddenResult=[],this.sheet.notifyPluginChanges(["filter"]),this.sheet.getWorkbook().getNotifier()?.onFilterViewUpdated(this.sheet.sheetId)}onHiddenChanged(){let e=this.activeFilter?.getRange();if(!e)return;let t=e.from.row+1,i=e.to.row;this.sheet.runHooks("filterHiddenChange",t,i),this.sheet.isActive()&&this.sheet.getWorkbook().notifyDataChange(nf.VIEWPORT)}setHiddenInfo(e){super.setHiddenInfo(e);let t=this.filter?.getRange();if(!t)return;let{show:i,hide:n}=e;i&&ea(i,e=>{for(let i=e.from;i<=e.to;i++)this.origHiddenRows[i-t.from.row]=!1}),n&&ea(n,e=>{for(let i=e.from;i<=e.to;i++)this.origHiddenRows[i-t.from.row]=!0}),this.sheet.notifyPluginChanges(["filter"])}_calcHiddenCol(e,t){let i=t?this.activeFilter:this.filter,n=i?.getRange();if(!n)return{show:[],hide:[]};let o=new tP,r=new tP,a=t?this.viewHiddenRows:this.origHiddenRows,s=t?this.viewHiddenCells:this.origHiddenCells,l=e-n.from.col;for(let i=n.from.row+1;i<=n.to.row;i++){let c=i-n.from.row,d=a[c];this._calcHiddenCell(i,e,t)?(s[c][l]=!0,a[c]=!0,r.push(i)):(s[c][l]=!1,d&&(a[c]=void 0,this.isFilteredRow(i,t)||o.push(i)))}return this.sheet.notifyPluginChanges(["filter"]),{show:o.getResult(),hide:r.getResult()}}_calcHiddenRow(e,t){let i=t?this.activeFilter?.getRange():this.filter?.getRange();if(!i)return;let n=t?this.viewHiddenRows:this.origHiddenRows,o=e-i.from.row;if(n[o]=!1,o<=0)return void this.sheet.notifyPluginChanges(["filter"]);for(let r=i.from.col;r<=i.to.col;r++)this.ensureHiddenCellValue(e,r,t)&&(n[o]=!0);this.sheet.notifyPluginChanges(["filter"])}ensureHiddenCellValue(e,t,i){let n=i?this.activeFilter?.getRange():this.filter?.getRange();if(!n)return!1;let o=i?this.viewHiddenCells:this.origHiddenCells,r=e-n.from.row,a=t-n.from.col;return void 0===o[r][a]&&(o[r][a]=this._calcHiddenCell(e,t,i),this.sheet.notifyPluginChanges(["filter"])),o[r][a]}_calcHiddenCell(e,t,i){let n=i?this.activeFilter:this.filter,o=n?.getRange();if(!n||!o||e-o.from.row<=0)return!1;let r=n.getCondition(t);if(!r)return!1;if(s_(r))return 0>r.value.indexOf(this.sheet.renderCache.getCellText(e,t).trim());if(sx(r)){let i=(0,nC.coordToLabel)({row:e,col:t}),n=sA(r.operator[0],i,(0,tq.Rn)(r.value[0]));return!sO(this.sheet,e,t,{isFormula:!0,delta:{row:0,col:0},operator:r.operator[0],formula1:n})}if(sS(r)){let i=r.and||!1;for(let n=0;n<r.value.length;n++){let o=this.sheet.formula.getCellValue(e,t),a=sO(this.sheet,e,t,{isFormula:!1,operator:r.operator[n]||"equal",formula1:r.value[n],strictType:!0},o);i=r.and?i&&a:i||a}return!i}if(sC(r)){let{color:i,cellColor:n}=r;return n?i!==this.sheet.getComputedBackgroundColor(e,t).toLowerCase():!this.sheet.getComputedTextColors(e,t).map(e=>e.toLowerCase()).includes(i)}return!1}hasDropdown(e,t){return!!this.activeFilter&&this.activeFilter.isFirstRow(e,t)}hasCondition(e){return!!this.activeFilter&&this.activeFilter.hasCondition(e)}getAutoFilterRange(e){let[t,i,n,o]=e;if(t===n&&i===o)[t,i,n,o]=this.sheet.getNonEmptyNeighborRange(e);else if(t===n&&i!==o){let e=this.sheet.countRows();for(let t=n+1;t<e;t++){let e=!0;for(let n=i;n<=o;n++)if(!this.sheet.isEmptyCell(t,n)){e=!1;break}if(e)break;n=t}}return[t,i,n,o]}getDataView(){if(!this.filter||!this.filter.isFilterEnabled())return{};let e=this.filter.getDataView();return e.hidden=function(e){let t={};for(let i=0;i<e.length;i++)null!=e[i]&&(t[i]=e[i]);return t}(this.origHiddenRows),e}getStateJSON(){return{activeId:this.activeFilter?.getId(),filter:this.filter?.isFilterEnabled()?this.filter.toJSON():null,filterView:this.filterView.filter(e=>e.isFilterEnabled()).map(e=>e.toJSON()),hiddenRows:this.origHiddenRows.map(e=>e??!1),hiddenCells:this.origHiddenCells.map(e=>e.map(e=>e??!1)),viewHiddenCells:this.viewHiddenCells.map(e=>e.map(e=>e??!1)),viewHiddenResult:this.viewHiddenResult}}calcRenderRanges(e){for(let t of e)for(let e=t.from.row;e<=t.to.row;e++)this.isFilteredRow(e,!1),this.isInViewState()&&this.isFilteredRow(e,!0)}}class p6 extends uA(p5){}let p8="object"==typeof performance&&performance&&"function"==typeof performance.now?performance:Date,p7="function"==typeof AbortController?AbortController:class{constructor(){this.signal=new ft}abort(e=Error("This operation was aborted")){this.signal.reason=this.signal.reason||e,this.signal.aborted=!0,this.signal.dispatchEvent({type:"abort",target:this.signal})}},p9="function"==typeof AbortSignal,fe="function"==typeof p7.AbortSignal,ft=p9?AbortSignal:fe?p7.AbortController:class{constructor(){this.reason=void 0,this.aborted=!1,this._listeners=[]}dispatchEvent(e){"abort"===e.type&&(this.aborted=!0,this.onabort(e),this._listeners.forEach(t=>t(e),this))}onabort(){}addEventListener(e,t){"abort"===e&&this._listeners.push(t)}removeEventListener(e,t){"abort"===e&&(this._listeners=this._listeners.filter(e=>e!==t))}},fi=new Set,fn=(e,t)=>{let i=`LRU_CACHE_OPTION_${e}`;fs(i)&&fl(i,`${e} option`,`options.${t}`,fp)},fo=(e,t)=>{let i=`LRU_CACHE_METHOD_${e}`;if(fs(i)){let{prototype:n}=fp,{get:o}=Object.getOwnPropertyDescriptor(n,e);fl(i,`${e} method`,`cache.${t}()`,o)}},fr=(e,t)=>{let i=`LRU_CACHE_PROPERTY_${e}`;if(fs(i)){let{prototype:n}=fp,{get:o}=Object.getOwnPropertyDescriptor(n,e);fl(i,`${e} property`,`cache.${t}`,o)}},fa=(...e)=>{"object"==typeof process&&process&&"function"==typeof process.emitWarning?process.emitWarning(...e):console.error(...e)},fs=e=>!fi.has(e),fl=(e,t,i,n)=>{fi.add(e),fa(`The ${t} is deprecated. Please use ${i} instead.`,"DeprecationWarning",e,n)},fc=e=>e&&e===Math.floor(e)&&e>0&&isFinite(e),fd=e=>fc(e)?e<=256?Uint8Array:e<=65536?Uint16Array:e<=0x100000000?Uint32Array:e<=Number.MAX_SAFE_INTEGER?fu:null:null;class fu extends Array{constructor(e){super(e),this.fill(0)}}class fh{constructor(e){if(0===e)return[];let t=fd(e);this.heap=new t(e),this.length=0}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}}class fp{constructor(e={}){let{max:t=0,ttl:i,ttlResolution:n=1,ttlAutopurge:o,updateAgeOnGet:r,updateAgeOnHas:a,allowStale:s,dispose:l,disposeAfter:c,noDisposeOnSet:d,noUpdateTTL:u,maxSize:h=0,maxEntrySize:p=0,sizeCalculation:f,fetchMethod:g,fetchContext:m,noDeleteOnFetchRejection:v,noDeleteOnStaleGet:b,allowStaleOnFetchRejection:y,allowStaleOnFetchAbort:w,ignoreFetchAbort:_}=e,{length:x,maxAge:S,stale:C}=e instanceof fp?{}:e;if(0!==t&&!fc(t))throw TypeError("max option must be a nonnegative integer");let k=t?fd(t):Array;if(!k)throw Error("invalid max value: "+t);if(this.max=t,this.maxSize=h,this.maxEntrySize=p||this.maxSize,this.sizeCalculation=f||x,this.sizeCalculation){if(!this.maxSize&&!this.maxEntrySize)throw TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if("function"!=typeof this.sizeCalculation)throw TypeError("sizeCalculation set to non-function")}if(this.fetchMethod=g||null,this.fetchMethod&&"function"!=typeof this.fetchMethod)throw TypeError("fetchMethod must be a function if specified");if(this.fetchContext=m,!this.fetchMethod&&void 0!==m)throw TypeError("cannot set fetchContext without fetchMethod");if(this.keyMap=new Map,this.keyList=Array(t).fill(null),this.valList=Array(t).fill(null),this.next=new k(t),this.prev=new k(t),this.head=0,this.tail=0,this.free=new fh(t),this.initialFill=1,this.size=0,"function"==typeof l&&(this.dispose=l),"function"==typeof c?(this.disposeAfter=c,this.disposed=[]):(this.disposeAfter=null,this.disposed=null),this.noDisposeOnSet=!!d,this.noUpdateTTL=!!u,this.noDeleteOnFetchRejection=!!v,this.allowStaleOnFetchRejection=!!y,this.allowStaleOnFetchAbort=!!w,this.ignoreFetchAbort=!!_,0!==this.maxEntrySize){if(0!==this.maxSize&&!fc(this.maxSize))throw TypeError("maxSize must be a positive integer if specified");if(!fc(this.maxEntrySize))throw TypeError("maxEntrySize must be a positive integer if specified");this.initializeSizeTracking()}if(this.allowStale=!!s||!!C,this.noDeleteOnStaleGet=!!b,this.updateAgeOnGet=!!r,this.updateAgeOnHas=!!a,this.ttlResolution=fc(n)||0===n?n:1,this.ttlAutopurge=!!o,this.ttl=i||S||0,this.ttl){if(!fc(this.ttl))throw TypeError("ttl must be a positive integer if specified");this.initializeTTLTracking()}if(0===this.max&&0===this.ttl&&0===this.maxSize)throw TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.max&&!this.maxSize){let e="LRU_CACHE_UNBOUNDED";fs(e)&&(fi.add(e),fa("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",e,fp))}C&&fn("stale","allowStale"),S&&fn("maxAge","ttl"),x&&fn("length","sizeCalculation")}getRemainingTTL(e){return this.has(e,{updateAgeOnHas:!1})?1/0:0}initializeTTLTracking(){this.ttls=new fu(this.max),this.starts=new fu(this.max),this.setItemTTL=(e,t,i=p8.now())=>{if(this.starts[e]=0!==t?i:0,this.ttls[e]=t,0!==t&&this.ttlAutopurge){let i=setTimeout(()=>{this.isStale(e)&&this.delete(this.keyList[e])},t+1);i.unref&&i.unref()}},this.updateItemAge=e=>{this.starts[e]=0!==this.ttls[e]?p8.now():0},this.statusTTL=(i,n)=>{i&&(i.ttl=this.ttls[n],i.start=this.starts[n],i.now=e||t(),i.remainingTTL=i.now+i.ttl-i.start)};let e=0,t=()=>{let t=p8.now();if(this.ttlResolution>0){e=t;let i=setTimeout(()=>e=0,this.ttlResolution);i.unref&&i.unref()}return t};this.getRemainingTTL=i=>{let n=this.keyMap.get(i);return void 0===n?0:0===this.ttls[n]||0===this.starts[n]?1/0:this.starts[n]+this.ttls[n]-(e||t())},this.isStale=i=>0!==this.ttls[i]&&0!==this.starts[i]&&(e||t())-this.starts[i]>this.ttls[i]}updateItemAge(e){}statusTTL(e,t){}setItemTTL(e,t,i){}isStale(e){return!1}initializeSizeTracking(){this.calculatedSize=0,this.sizes=new fu(this.max),this.removeItemSize=e=>{this.calculatedSize-=this.sizes[e],this.sizes[e]=0},this.requireSize=(e,t,i,n)=>{if(this.isBackgroundFetch(t))return 0;if(!fc(i))if(n){if("function"!=typeof n)throw TypeError("sizeCalculation must be a function");if(!fc(i=n(t,e)))throw TypeError("sizeCalculation return invalid (expect positive integer)")}else throw TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return i},this.addItemSize=(e,t,i)=>{if(this.sizes[e]=t,this.maxSize){let t=this.maxSize-this.sizes[e];for(;this.calculatedSize>t;)this.evict(!0)}this.calculatedSize+=this.sizes[e],i&&(i.entrySize=t,i.totalCalculatedSize=this.calculatedSize)}}removeItemSize(e){}addItemSize(e,t){}requireSize(e,t,i,n){if(i||n)throw TypeError("cannot set size without setting maxSize or maxEntrySize on cache")}*indexes({allowStale:e=this.allowStale}={}){if(this.size)for(let t=this.tail;this.isValidIndex(t)&&((e||!this.isStale(t))&&(yield t),t!==this.head);)t=this.prev[t]}*rindexes({allowStale:e=this.allowStale}={}){if(this.size)for(let t=this.head;this.isValidIndex(t)&&((e||!this.isStale(t))&&(yield t),t!==this.tail);)t=this.next[t]}isValidIndex(e){return void 0!==e&&this.keyMap.get(this.keyList[e])===e}*entries(){for(let e of this.indexes())void 0===this.valList[e]||void 0===this.keyList[e]||this.isBackgroundFetch(this.valList[e])||(yield[this.keyList[e],this.valList[e]])}*rentries(){for(let e of this.rindexes())void 0===this.valList[e]||void 0===this.keyList[e]||this.isBackgroundFetch(this.valList[e])||(yield[this.keyList[e],this.valList[e]])}*keys(){for(let e of this.indexes())void 0===this.keyList[e]||this.isBackgroundFetch(this.valList[e])||(yield this.keyList[e])}*rkeys(){for(let e of this.rindexes())void 0===this.keyList[e]||this.isBackgroundFetch(this.valList[e])||(yield this.keyList[e])}*values(){for(let e of this.indexes())void 0===this.valList[e]||this.isBackgroundFetch(this.valList[e])||(yield this.valList[e])}*rvalues(){for(let e of this.rindexes())void 0===this.valList[e]||this.isBackgroundFetch(this.valList[e])||(yield this.valList[e])}[Symbol.iterator](){return this.entries()}find(e,t){for(let i of this.indexes()){let n=this.valList[i],o=this.isBackgroundFetch(n)?n.__staleWhileFetching:n;if(void 0!==o&&e(o,this.keyList[i],this))return this.get(this.keyList[i],t)}}forEach(e,t=this){for(let i of this.indexes()){let n=this.valList[i],o=this.isBackgroundFetch(n)?n.__staleWhileFetching:n;void 0!==o&&e.call(t,o,this.keyList[i],this)}}rforEach(e,t=this){for(let i of this.rindexes()){let n=this.valList[i],o=this.isBackgroundFetch(n)?n.__staleWhileFetching:n;void 0!==o&&e.call(t,o,this.keyList[i],this)}}get prune(){return fo("prune","purgeStale"),this.purgeStale}purgeStale(){let e=!1;for(let t of this.rindexes({allowStale:!0}))this.isStale(t)&&(this.delete(this.keyList[t]),e=!0);return e}dump(){let e=[];for(let t of this.indexes({allowStale:!0})){let i=this.keyList[t],n=this.valList[t],o=this.isBackgroundFetch(n)?n.__staleWhileFetching:n;if(void 0===o)continue;let r={value:o};if(this.ttls){r.ttl=this.ttls[t];let e=p8.now()-this.starts[t];r.start=Math.floor(Date.now()-e)}this.sizes&&(r.size=this.sizes[t]),e.unshift([i,r])}return e}load(e){for(let[t,i]of(this.clear(),e)){if(i.start){let e=Date.now()-i.start;i.start=p8.now()-e}this.set(t,i.value,i)}}dispose(e,t,i){}set(e,t,{ttl:i=this.ttl,start:n,noDisposeOnSet:o=this.noDisposeOnSet,size:r=0,sizeCalculation:a=this.sizeCalculation,noUpdateTTL:s=this.noUpdateTTL,status:l}={}){if(r=this.requireSize(e,t,r,a),this.maxEntrySize&&r>this.maxEntrySize)return l&&(l.set="miss",l.maxEntrySizeExceeded=!0),this.delete(e),this;let c=0===this.size?void 0:this.keyMap.get(e);if(void 0===c)c=this.newIndex(),this.keyList[c]=e,this.valList[c]=t,this.keyMap.set(e,c),this.next[this.tail]=c,this.prev[c]=this.tail,this.tail=c,this.size++,this.addItemSize(c,r,l),l&&(l.set="add"),s=!1;else{this.moveToTail(c);let i=this.valList[c];if(t!==i){if(this.isBackgroundFetch(i)?i.__abortController.abort(Error("replaced")):!o&&(this.dispose(i,e,"set"),this.disposeAfter&&this.disposed.push([i,e,"set"])),this.removeItemSize(c),this.valList[c]=t,this.addItemSize(c,r,l),l){l.set="replace";let e=i&&this.isBackgroundFetch(i)?i.__staleWhileFetching:i;void 0!==e&&(l.oldValue=e)}}else l&&(l.set="update")}if(0===i||0!==this.ttl||this.ttls||this.initializeTTLTracking(),s||this.setItemTTL(c,i,n),this.statusTTL(l,c),this.disposeAfter)for(;this.disposed.length;)this.disposeAfter(...this.disposed.shift());return this}newIndex(){return 0===this.size?this.tail:this.size===this.max&&0!==this.max?this.evict(!1):0!==this.free.length?this.free.pop():this.initialFill++}pop(){if(this.size){let e=this.valList[this.head];return this.evict(!0),e}}evict(e){let t=this.head,i=this.keyList[t],n=this.valList[t];return this.isBackgroundFetch(n)?n.__abortController.abort(Error("evicted")):(this.dispose(n,i,"evict"),this.disposeAfter&&this.disposed.push([n,i,"evict"])),this.removeItemSize(t),e&&(this.keyList[t]=null,this.valList[t]=null,this.free.push(t)),this.head=this.next[t],this.keyMap.delete(i),this.size--,t}has(e,{updateAgeOnHas:t=this.updateAgeOnHas,status:i}={}){let n=this.keyMap.get(e);if(void 0!==n)if(!this.isStale(n))return t&&this.updateItemAge(n),i&&(i.has="hit"),this.statusTTL(i,n),!0;else i&&(i.has="stale",this.statusTTL(i,n));else i&&(i.has="miss");return!1}peek(e,{allowStale:t=this.allowStale}={}){let i=this.keyMap.get(e);if(void 0!==i&&(t||!this.isStale(i))){let e=this.valList[i];return this.isBackgroundFetch(e)?e.__staleWhileFetching:e}}backgroundFetch(e,t,i,n){let o=void 0===t?void 0:this.valList[t];if(this.isBackgroundFetch(o))return o;let r=new p7;i.signal&&i.signal.addEventListener("abort",()=>r.abort(i.signal.reason));let a={signal:r.signal,options:i,context:n},s=(n,o=!1)=>{let{aborted:s}=r.signal,d=i.ignoreFetchAbort&&void 0!==n;return(i.status&&(s&&!o?(i.status.fetchAborted=!0,i.status.fetchError=r.signal.reason,d&&(i.status.fetchAbortIgnored=!0)):i.status.fetchResolved=!0),!s||d||o)?(this.valList[t]===c&&(void 0===n?c.__staleWhileFetching?this.valList[t]=c.__staleWhileFetching:this.delete(e):(i.status&&(i.status.fetchUpdated=!0),this.set(e,n,a.options))),n):l(r.signal.reason)},l=n=>{let{aborted:o}=r.signal,a=o&&i.allowStaleOnFetchAbort,s=a||i.allowStaleOnFetchRejection,l=s||i.noDeleteOnFetchRejection;if(this.valList[t]===c&&(l&&void 0!==c.__staleWhileFetching?a||(this.valList[t]=c.__staleWhileFetching):this.delete(e)),s)return i.status&&void 0!==c.__staleWhileFetching&&(i.status.returnedStale=!0),c.__staleWhileFetching;if(c.__returned===c)throw n};i.status&&(i.status.fetchDispatched=!0);let c=new Promise((t,n)=>{this.fetchMethod(e,o,a).then(e=>t(e),n),r.signal.addEventListener("abort",()=>{(!i.ignoreFetchAbort||i.allowStaleOnFetchAbort)&&(t(),i.allowStaleOnFetchAbort&&(t=e=>s(e,!0)))})}).then(s,e=>(i.status&&(i.status.fetchRejected=!0,i.status.fetchError=e),l(e)));return c.__abortController=r,c.__staleWhileFetching=o,c.__returned=null,void 0===t?(this.set(e,c,{...a.options,status:void 0}),t=this.keyMap.get(e)):this.valList[t]=c,c}isBackgroundFetch(e){return e&&"object"==typeof e&&"function"==typeof e.then&&Object.prototype.hasOwnProperty.call(e,"__staleWhileFetching")&&Object.prototype.hasOwnProperty.call(e,"__returned")&&(e.__returned===e||null===e.__returned)}async fetch(e,{allowStale:t=this.allowStale,updateAgeOnGet:i=this.updateAgeOnGet,noDeleteOnStaleGet:n=this.noDeleteOnStaleGet,ttl:o=this.ttl,noDisposeOnSet:r=this.noDisposeOnSet,size:a=0,sizeCalculation:s=this.sizeCalculation,noUpdateTTL:l=this.noUpdateTTL,noDeleteOnFetchRejection:c=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:d=this.allowStaleOnFetchRejection,ignoreFetchAbort:u=this.ignoreFetchAbort,allowStaleOnFetchAbort:h=this.allowStaleOnFetchAbort,fetchContext:p=this.fetchContext,forceRefresh:f=!1,status:g,signal:m}={}){if(!this.fetchMethod)return g&&(g.fetch="get"),this.get(e,{allowStale:t,updateAgeOnGet:i,noDeleteOnStaleGet:n,status:g});let v={allowStale:t,updateAgeOnGet:i,noDeleteOnStaleGet:n,ttl:o,noDisposeOnSet:r,size:a,sizeCalculation:s,noUpdateTTL:l,noDeleteOnFetchRejection:c,allowStaleOnFetchRejection:d,allowStaleOnFetchAbort:h,ignoreFetchAbort:u,status:g,signal:m},b=this.keyMap.get(e);if(void 0===b){g&&(g.fetch="miss");let t=this.backgroundFetch(e,b,v,p);return t.__returned=t}{let n=this.valList[b];if(this.isBackgroundFetch(n)){let e=t&&void 0!==n.__staleWhileFetching;return g&&(g.fetch="inflight",e&&(g.returnedStale=!0)),e?n.__staleWhileFetching:n.__returned=n}let o=this.isStale(b);if(!f&&!o)return g&&(g.fetch="hit"),this.moveToTail(b),i&&this.updateItemAge(b),this.statusTTL(g,b),n;let r=this.backgroundFetch(e,b,v,p),a=void 0!==r.__staleWhileFetching,s=a&&t;return g&&(g.fetch=a&&o?"stale":"refresh",s&&o&&(g.returnedStale=!0)),s?r.__staleWhileFetching:r.__returned=r}}get(e,{allowStale:t=this.allowStale,updateAgeOnGet:i=this.updateAgeOnGet,noDeleteOnStaleGet:n=this.noDeleteOnStaleGet,status:o}={}){let r=this.keyMap.get(e);if(void 0!==r){let a=this.valList[r],s=this.isBackgroundFetch(a);return(this.statusTTL(o,r),this.isStale(r))?(o&&(o.get="stale"),s)?(o&&(o.returnedStale=t&&void 0!==a.__staleWhileFetching),t?a.__staleWhileFetching:void 0):(n||this.delete(e),o&&(o.returnedStale=t),t?a:void 0):(o&&(o.get="hit"),s)?a.__staleWhileFetching:(this.moveToTail(r),i&&this.updateItemAge(r),a)}o&&(o.get="miss")}connect(e,t){this.prev[t]=e,this.next[e]=t}moveToTail(e){e!==this.tail&&(e===this.head?this.head=this.next[e]:this.connect(this.prev[e],this.next[e]),this.connect(this.tail,e),this.tail=e)}get del(){return fo("del","delete"),this.delete}delete(e){let t=!1;if(0!==this.size){let i=this.keyMap.get(e);if(void 0!==i)if(t=!0,1===this.size)this.clear();else{this.removeItemSize(i);let t=this.valList[i];this.isBackgroundFetch(t)?t.__abortController.abort(Error("deleted")):(this.dispose(t,e,"delete"),this.disposeAfter&&this.disposed.push([t,e,"delete"])),this.keyMap.delete(e),this.keyList[i]=null,this.valList[i]=null,i===this.tail?this.tail=this.prev[i]:i===this.head?this.head=this.next[i]:(this.next[this.prev[i]]=this.next[i],this.prev[this.next[i]]=this.prev[i]),this.size--,this.free.push(i)}}if(this.disposed)for(;this.disposed.length;)this.disposeAfter(...this.disposed.shift());return t}clear(){for(let e of this.rindexes({allowStale:!0})){let t=this.valList[e];if(this.isBackgroundFetch(t))t.__abortController.abort(Error("deleted"));else{let i=this.keyList[e];this.dispose(t,i,"delete"),this.disposeAfter&&this.disposed.push([t,i,"delete"])}}if(this.keyMap.clear(),this.valList.fill(null),this.keyList.fill(null),this.ttls&&(this.ttls.fill(0),this.starts.fill(0)),this.sizes&&this.sizes.fill(0),this.head=0,this.tail=0,this.initialFill=1,this.free.length=0,this.calculatedSize=0,this.size=0,this.disposed)for(;this.disposed.length;)this.disposeAfter(...this.disposed.shift())}get reset(){return fo("reset","clear"),this.clear}get length(){return fr("length","size"),this.size}static get AbortController(){return p7}static get AbortSignal(){return ft}}class ff{constructor(e){this.err=e}getValue(){return this.err.message}}let fg=class extends rN{constructor(e){super(e,"synoFormula"),this.matrix=new pZ(e=>this.handleItemRemove(e))}enablePlugin(){this.sheet.formula=this,this.addHook("init",()=>this.onInit()),this.addHook("beforeCreateRow",(e,t,i)=>this.onAlterGrid("row",e,t,i)),this.addHook("beforeCreateCol",(e,t,i)=>this.onAlterGrid("col",e,t,i)),this.addHook("beforeRemoveRow",(e,t)=>this.onAlterGrid("row",e,-t,-1)),this.addHook("beforeRemoveCol",(e,t)=>this.onAlterGrid("col",e,-t,-1)),this.addHook("repairCross",e=>this.repairCross(e)),this.addHook("beforeMoveRow",(e,t,i)=>this.beforeMove("row",e,t,i)),this.addHook("beforeMoveCol",(e,t,i)=>this.beforeMove("col",e,t,i)),this.addHook("afterQuotePrefixChange",e=>this.generateChangeDep(e)),super.enablePlugin()}onInit(){let e=this.sheet.getDataModel(),t=e.getRowLength();for(let i=0;i<t;i++){let t=e.getRow(i);if(!t)continue;let n=t.getColLength();for(let e=0;e<n;e++){let n=t.getCell(e);if(!n)continue;let o=n.getValue();!o||!(0,t_.jr)(o,n.getCellStyle())||n.getFormulaItem()||this.initItem(i,e,o)}}}initItem(e,t,i){let n=X(i);return this.createItem(e,t,i,n)}createItem(e,t,i,n){let o=this.matrix.createItem(this.sheet,e,t,i.slice(1),!0);this.sheet.setFormulaItem(o.row,o.col,o),this.sheet.getWorkbook().getAsyncCalculator().getFormulaDimensioner().setNeedDimension(o);let r=this.checkCrossRefError(n);return void 0===r?o.register(this.mapFormulaRange(n)):(o.needUpdate=!1,o.error=new ff(H.Pp.REF),o.setUnknownName(r)),o}checkCrossRefError(e){let t=this.sheet.getWorkbook(),i=t.getNameById(this.sheet.sheetId),n=t.getNameManager().getContainer();for(let o=0;o<e.length;o++){let r=e[o].shName;if(r&&r!==i&&!t.hasSheetName(r))return r;if(e[o].isNameRange()){let r=n.resolveRange(e[o]);for(let e=0;e<r.length;e++){let n=r[e].shName;if(n&&n!==i&&!t.hasSheetName(n))return n}}}}mapFormulaRange(e){let t=[],i=this.sheet.getWorkbook(),n=i.getNameById(this.sheet.sheetId),o=this.sheet.getFormulaDepManager(),r=new Set;for(let a=0;a<e.length;a++){let s=e[a],l=s.shName,c=o;void 0!==l&&l!==n&&(c=i.getSheetByName(l).getFormulaDepManager());let d=s.getContainer(c),u=d.getFormulaRange(s);if(u){if(r.has(u))continue}else u=new e3(s),d.addFormulaRange(u);r.add(u),t.push(u)}return t}removeItem(e,t){let i=eF.createId(e,t);return this.matrix.remove(i)}handleItemRemove(e){e.unregisterAll(),e.error?.err===H.Pp.REF&&this.sheet.getWorkbook().getUnknownRefManager().removeItem(e),this.sheet.getWorkbook().getAsyncCalculator().getFormulaDimensioner().removeNeedDimension(e),this.sheet.setFormulaItem(e.row,e.col,null)}onAlterGrid(e,t,i,n){let o=this.getFormulaChanges(e,t,i,n),r=this.sheet.getWorkbook(),a=+("row"!==e);for(let e in o)if((0,tl.Fs)(o,e)){let n=r.getSheetById(e);if(!n)continue;let s=o[e][this.pluginName];if(!s)continue;let l=[];for(let n=0;n<s.length;n++){let o=s[n];this.sheet.sheetId===e&&t<=o[a]&&t>o[a]+i||l.push([o[0],o[1],o[3]])}this.updateFormula(n,l)}this.matrix.shift(e,t,i),i<0&&(this.collectedInfo=o)}getFormulaChanges(e,t,i,n){let o=("row"===e?this.sheet.countRows():this.sheet.countCols())-1,{deps:r,conds:a,units:s,spills:l}=this.sheet.getFormulaDepManager().getRefItemsToRowCol(e,t,o),c={},d={},u={[e]:t},h=this.sheet.getName();for(let t=0;t<r.length;t++){let n=r[t];if(eB(n)){this.clearVectorItem(n);continue}let o=n.sheet,a=o.sheetId,s=H.P6.changeFormula(n.formula,{delta:i,start:u},h,o.getName());if(s!==n.formula)(0,eI.PY)(c,a,this.pluginName,[n.row,n.col,"="+n.formula,"="+s]);else{(0,tl.Fs)(d,a)||(d[a]=[]),d[a].push([n.row,n.col]);let t=n.getSpillRange(),i=("row"===e?n.sheet.countRows():n.sheet.countCols())-1;t&&t.getRange().to[e]>=i&&this.sheet.getWorkbook().getAsyncCalculator().getFormulaDimensioner().setNeedDimension(n)}}this.resetItemByChanges(d);for(let e=0;e<a.length;e++)a[e].notifyUpdate();for(let o=0;o<s.length;o++)s[o].notifyAlterGrid(e,this.sheet,t,i,n,c);let p=this.sheet.getWorkbook().getAsyncCalculator().getFormulaDimensioner();for(let n of l)i<0&&t<=n[e]&&n[e]<=t-i-1?p.updateItemSpillRange(n,null):p.setNeedDimension(n);return c}updateFormula(e,t){e.controller.setDataAtCell(t,tL.Formula)}beforeMove(e,t,i,n){let o=this.sheet.getWorkbook(),r={},a={},s={},{deps:l,conds:c,units:d,spills:u}=this.sheet.getFormulaDepManager().getRefItemsToRowCol(e,t.sec[0].start,t.sec[1].end),h=this.sheet.getName();for(let i=0;i<l.length;i++){let n=l[i];if(eB(n)){this.clearVectorItem(n);continue}let o=n.sheet,c=o.sheetId,d=H.P6.moveFormula(e,n.formula,t,h,o.getName());d!==n.formula?((0,eI.vm)(r,c,[n.row,n.col,"="+d]),(0,eI.PY)(s,c,this.pluginName,[n.row,n.col,"="+n.formula])):(0,eI.vm)(a,c,[n.row,n.col])}for(let i of u)t.sec[0].start<=i[e]&&i[e]<=t.sec[1].end?this.sheet.getWorkbook().getAsyncCalculator().getFormulaDimensioner().setNeedDimension(i):(i.needCheckSpill=!0,(0,eI.vm)(a,i.sheet.sheetId,[i.row,i.col]));for(let e in this.resetItemByChanges(a),r)if((0,tl.Fs)(r,e)){let t=o.getSheetById(e);t&&this.updateFormula(t,r[e])}this.matrix.move(e,t);for(let e=0;e<c.length;e++)c[e].notifyUpdate();for(let i=0;i<d.length;i++)d[i].notifyMove(e,this.sheet,t,s);n.cross=s}moveFormulaRange(e,t,i,n,o){let r=this.sheet.getWorkbook(),a=r.getSheetById(t);if(!a)return;let s=this.sheet,l=new M.lu(e.from,e.to,s.getName()),c=new M.lu(i.from,i.to,a.getName()),d={},u=new Set,h=new Set,p=e=>{let{deps:t,units:i}=e;for(let e of t)eB(e)?this.clearVectorItem(e):u.add(e);for(let e of i)h.add(e)},f=Array.from(i.iterateCoords()),g=Array.from(e.iterateCoords());for(let{row:e,col:t}of(p(a.getFormulaDepManager().getItemsByCoords(f)),p(s.getFormulaDepManager().getItemsByCoords(g)),i.iterateCoords())){let i=a.getFormulaItem(e,t);p({deps:i?[i]:[],units:[]})}let m={};for(let e of u){let t=e.formula,i=s!==a&&e.sheet===a&&c.includes(e.row,e.col),o=i?s.getName():e.sheet.getName();t=H.P6.changeFormulaRange(t,l,c,o,i,n),e.formula!==t&&((0,eI.PY)(m,e.sheet.sheetId,this.pluginName,[e.row,e.col,"="+e.formula]),(0,eI.vm)(d,e.sheet.sheetId,[e.row,e.col,"="+t]))}for(let e in d)if((0,tl.Fs)(d,e)){let t=r.getSheetById(e);t&&this.updateFormula(t,d[e])}for(let e of h)e.notifyMoveFormulaRange(l,c,n,m);o.crossInfo=m,r.getController().nameController.moveFormulaRange(l,c,n,o),r.getPivotTableManager().moveSourceRange(l,c,n,o)}removeFormulaRange(e,t){let i=this.sheet.getWorkbook(),n=this.sheet,o=new M.lu(e.from,e.to,n.getName()),r={},a=new Set,s=new Set,l=Array.from(e.iterateCoords());(e=>{let{deps:t,units:i}=e;for(let e of t)eB(e)?this.clearVectorItem(e):a.add(e);for(let e of i)s.add(e)})(n.getFormulaDepManager().getItemsByCoords(l));let c=n.getName(),d={};for(let e of a){let t=H.P6.removeFormulaRange(e.formula,o,c);e.formula!==t&&((0,eI.PY)(d,e.sheet.sheetId,this.pluginName,[e.row,e.col,"="+e.formula]),(0,eI.vm)(r,e.sheet.sheetId,[e.row,e.col,"="+t]))}for(let e in r)if((0,tl.Fs)(r,e)){let t=i.getSheetById(e);t&&this.updateFormula(t,r[e])}for(let e of s)e.notifyRemoveFormulaRange(o,d);t.crossInfo=d,i.getController().nameController.removeFormulaRange(o,t),i.getPivotTableManager().removeSourceRange(o,t)}resetItemByChanges(e){let t=this.sheet.getWorkbook();for(let i in e)if((0,tl.Fs)(e,i)){let n=t.getSheetById(i);n&&n.formula.generateChangeDep(e[i],"reset")}}generateChangeDep(e,t){let i=[],n=null;"reset"===t?n=this.resetFormulaItem:"renew"===t&&(n=this.renewFormulaItem);for(let t=0,o=e.length;t<o;t++){let[o,r]=e[t];if(null!==n)n.call(this,o,r);else{if(!(0,eI.RE)(e[t]))continue;this.renewFormulaItem(o,r)}i.push({row:o,col:r})}this.fireUpdateEvent(i)}onDataSorted(e,t,i){let n=this.sheet.getWorkbook().getUnknownRefManager();this.matrix.sort(e,t,e=>{e.error?.err===H.Pp.REF&&n.removeItem(e)});for(let e=0;e<i.length;e++){let{row:t,col:n}=i[e],o=this.sheet.getCellModel(t,n),r=o?.getValue();o&&(0,t_.jr)(r,o.getCellStyle())&&this.initItem(t,n,r)}this.fireUpdateEvent(i)}fireUpdateEvent(e){let t=this.sheet.getWorkbook(),{deps:i,conds:n,vectorSet:o,spills:r,dimMayChange:a}=this.sheet.getFormulaDepManager().getDependencies(t,this.sheet,e),s={};function l(e){let t=e.sheet.sheetId;s[t]||(s[t]=[]),s[t].push({row:e.row,col:e.col})}s[this.sheet.sheetId]=e;for(let e=0,t=i.length;e<t;e++){let t=i[e];t.reset(),l(t)}for(let e of o)this.clearVectorItem(e);for(let e of r)e.needCheckSpill=!0,l(e);for(let e in s)if((0,tl.Fs)(s,e)){let i=t.getSheetById(e);i&&i.runHooks("afterChangeResolve",s[e])}for(let e=0;e<n.length;e++)n[e].notifyUpdate();for(let e of a)this.sheet.getWorkbook().getAsyncCalculator().getFormulaDimensioner().setNeedDimension(e)}clearVectorItem(e){e.clear()}resetFormulaItem(e,t){let i=this.sheet.getFormulaItem(e,t);i&&i.reset()}renewFormulaItem(e,t){let i=this.sheet.getCellModel(e,t),n=i.getCellStyle(),o=i.getValue();i.getFormulaItem()&&this.removeItem(e,t),(0,t_.jr)(o,n)&&this.initItem(e,t,o)}getCrossInfo(){return this.collectedInfo}removeCrossInfo(){this.collectedInfo=null}repairCross(e){if(!(0,tl.Fs)(e,this.pluginName))return;let t=e[this.pluginName],i=[];for(let e=0;e<t.length;e++)i.push([t[e][0],t[e][1],t[e][2]]);this.updateFormula(this.sheet,i)}renameFormulaItems(e,t){let i={},{deps:n,units:o}=this.sheet.getFormulaDepManager().getRenameRelatedItems();for(let o=0;o<n.length;o++){let r=n[o],a=(0,U.ZW)(r.formula,e,t);r.formula!==a&&(r.formula=a,r.sheet.setDataAtCell(r.row,r.col,"="+a),(0,eI.PY)(i,r.sheet.sheetId,"cells",[r.row,r.col,"="+a]))}for(let n=0;n<o.length;n++)o[n].notifyRename(e,t,i);return i}getCellValue(e,t){throw Error("Should not call")}destroy(){let e=this.sheet.getWorkbook().getUnknownRefManager();this.matrix.each(t=>{t.error?.err===H.Pp.REF&&e.removeItem(t)}),this.matrix.clear(),super.destroy()}};class fm{constructor(e,t,i,n,o){this._rowOffset=e.from.row,this._colOffset=e.from.col,this._length=t,this._source=i,this._context=n,this._options=o,this._item=null}getCellValue(e,t){return this._item?this._item.getValueAt(e-this._rowOffset,t-this._colOffset,()=>this._source.cellValue(e,t,{item:this._item},this._options)):this._source.cellValue(e,t,this._context,this._options)}getLength(){return this._length}getSize(){return this.getLength()}setVectorItem(e){this._item=e}}class fv extends fm{constructor(e,t,i,n){super(e,e.to.col-e.from.col+1,t,i,n)}getValue(e){return this.getCellValue(this._rowOffset,this._colOffset+e)}getStartOffset(){return this._colOffset}}class fb extends fm{constructor(e,t,i,n){super(e,e.to.row-e.from.row+1,t,i,n)}getValue(e){return this.getCellValue(this._rowOffset+e,this._colOffset)}getStartOffset(){return this._rowOffset}}class fy extends fm{constructor(e,t,i,n){super(e,e.to.row-e.from.row+1,t,i,n),this._width=e.to.col-e.from.col+1}getCellValue(e,t){let i=super.getCellValue(e,t);for(;Array.isArray(i);)i=i[0];return i}getWidth(){return this._width}getHeight(){return this.getLength()}getSize(){return this.getWidth()*this.getHeight()}getRowOffset(){return this._rowOffset}getColOffset(){return this._colOffset}}class fw{constructor(){this.cache=new fp({max:10,dispose:e=>e.clear()}),this.keyMap=new WeakMap}getVectorItem(e){let t=e.getRange().key(),i=this.cache.get(t);return i||(i=new eL(e),this.cache.set(t,i),this.keyMap.set(i,t)),i}removeVectorItem(e){let t=this.keyMap.get(e);if(!t)return void e.clear();this.cache.delete(t)}}let f_=class extends fg{constructor(e){super(e),this.itemCache=new fw,this.importRangeItem=new Set,this.hiddenPlugin=null,this.filterPlugin=null}enablePlugin(){super.enablePlugin(),this.addHook("afterShowRows",(e,t)=>this.afterHiddenChange(e,t)),this.addHook("afterHideRows",(e,t)=>this.afterHiddenChange(e,t)),this.addHook("filterHiddenChange",(e,t)=>this.afterHiddenChange(e,t));let e=e=>this.generateChangeDep(e,"reset"),t=(t,i,n,o)=>{let r=o.cellChanges;"Format"===t&&r&&r.length>0&&e(r)};this.addHook("afterFormatChange",e),this.addHook("afterRowStyleChange",t),this.addHook("afterColStyleChange",t),this.addHook("afterGlobalStyleChange",t),this.hiddenPlugin=this.sheet.getPlugin("synoHideRowCol"),this.filterPlugin=this.sheet.getPlugin("synoFilter")}initItem(e,t,i){let n=(0,U.wS)(i),o=[],r=!1;for(let e of n)if(e.isRange()||e.isVariable()){let t=K(e);t&&o.push(t)}else e.isFunction()&&"IMPORTRANGE"===e.getText().toUpperCase()&&(r=!0);let a=this.createItem(e,t,i,o);return r&&this.importRangeItem.add(a),a}handleItemRemove(e){super.handleItemRemove(e),this.importRangeItem.delete(e),this.sheet.getWorkbook().getAsyncCalculator().getFormulaRecalculator().removeTask(e)}scheduleRecalculateItem(e){this.sheet.getWorkbook().getAsyncCalculator().getFormulaRecalculator().addTask(e)}exec(e){let t=this.sheet.getWorkbook().getFormulaParser().exec(e.formula,{sheetId:this.sheet.sheetId,item:e}),{row:i,col:n}=e;e.value=t.result,t.error&&(e.error=new ff(t.error),t.delayCalc&&Promise.resolve().then(()=>{this.scheduleRecalculateItem(e)})),e.needUpdate=!1,e.selfImplicit&&this.addImplicitDep(e,new M.lu({row:i,col:n},{row:i,col:n}));let{height:o,width:r}=e.getValueSize();return this.sheet.notifyRangeChanges({from:{row:i,col:n},to:{row:i+o-1,col:n+r-1}}),t}checkSpill(e){let t=e.getSpillRange();if(!t||!e.needCheckSpill)return;let i=null,n=eR.createFromRange(t.getRange(),this.sheet);if(!n){e.needCheckSpill=!1;return}n.eachCell((e,t)=>e===n.from.row&&t===n.from.col||!!(0,eI.O2)(this.sheet.getDataAtCell(e,t))||(i=new ff(H.Pp.SPILL),!1)),e.setSpillResult(i),this.sheet.notifyRangeChanges(n)}updateItem(e){e.needUpdate&&(this.exec(e),e.needDimension&&this.sheet.getWorkbook().getAsyncCalculator().getFormulaDimensioner().addCalculatedItem(e)),e.needCheckSpill&&this.checkSpill(e)}getSpillItem(e,t){let i;for(let n of this.sheet.getFormulaDepManager().getSpillContainer().matchFormulaRanges(e,t)){let o=n.getSpillItem();if(o){if(o.row===e&&o.col===t)return o;!o.spillError&&(!i||o.row<i.row||o.row===i.row&&o.col<i.col)&&(i=o)}}return i}clearVectorItem(e){this.itemCache.removeVectorItem(e)}getSpillValue(e,t,i){if(!Array.isArray(e))return 0===t&&0===i?e:null;let n=e[t];return Array.isArray(n)?n[i]:0===i?n:null}getItemValueSafe(e){return this.updateItem(e),e.getValue()}getCellValue(e,t){let i=this.sheet.getDataAtCell(e,t),n=null;if((0,eI.O2)(i)){n=null;let i=this.getSpillItem(e,t);i&&(this.updateItem(i),i.spillError||(n=this.getSpillValue(i.getValue(),e-i.row,t-i.col)))}else if((0,t_.jr)(i,this.sheet.getCellStyle(e,t))){let o=this.sheet.getFormulaItem(e,t)||this.initItem(e,t,i);n=this.getItemValueSafe(o),o.getSpillRange()&&(n=o.spillError?o.getSpillErrorValue():this.getSpillValue(n,0,0))}else n=(0,ts.is)(i)?i.getText():i;for(;Array.isArray(n);)n=n[0];return n}afterHiddenChange(e,t){let i={},{deps:n,conds:o}=this.sheet.getFormulaDepManager().getRefItemsToRowCol("row",e,t);for(let e of n)!eB(e)&&e.isSubtotal&&(0,eI.vm)(i,e.sheet.sheetId,[e.row,e.col]);this.resetItemByChanges(i),ea(o,e=>{e.isSubtotal&&e.notifyUpdate()})}calculateAllImportItem(){for(let e of this.importRangeItem)this.updateItem(e)}getExternalValue(e,t,i){let n=i.item,o=this.sheet.getWorkbook();if((!n||!eV(n))&&!o.getExternalManager().hasExternalValue(e,t))return H.Pp.LOADING;let r=o.getExternalManager().getExternalValue(e,t);return n&&(n.constructor===eM?n.setLinkId(e):eV(n)&&(n.addExternalRef(r),r.isLoading()&&o.getNotifier()?.onExternalRequest(e))),r.getValue()}getUnlinkChanges(e){let t=[];for(let i of this.importRangeItem){let n=(0,U.wS)(i.formula),o={text:[],parenthesisCount:0},r=[o];for(let t of n){let i=t.getText();if(t.isFunction()&&"IMPORTRANGE"===t.getText().toUpperCase())o={text:[],parenthesisCount:0},r.push(o);else if(t.isLeftParenthesis())o.parenthesisCount+=1;else if(t.isRightParenthesis()&&(o.parenthesisCount-=1,r.length>1&&0===o.parenthesisCount)){let t=new eM;i=o.text.join("")+i;let n=this.sheet.getWorkbook().getFormulaParser().exec(i,{sheetId:this.sheet.sheetId,item:t}),a=t.getLinkId();a&&e.includes(a)&&(i=n.error===H.Pp.LOADING?(0,H.or)(H.Pp.REF):(0,H.or)(n.error||n.result)),r.pop(),o=(0,eG.Z)(r)}o.text.push(i)}let a=o.text.join("");i.formula!==a&&t.push([i.row,i.col,`=${a}`])}return t}cellValue(e,t,i,n){if(i.preValidateCell?.sheetId===this.sheet.sheetId&&i.preValidateCell.row===e&&i.preValidateCell.col===t)return i.preValidateCell.value;let o="",r="",{keepNull:a,keepNfId:s}=n,l=this.sheet.getCellModel(e,t),c=null;l?(r=l.getValue(),c=l.getCellStyle()):s&&(c=this.sheet.worksheet.getEmptyStyle(e,t));let d=i.item;d&&s&&d.setNfIdHint(c?.nfId??0);let u=c&&c.getQuotePrefix();if((0,eI.O2)(r)){let i=this.getSpillItem(e,t);if(i&&(this.updateItem(i),i.spillError||(o=this.getSpillValue(i.getValue(),e-i.row,t-i.col)),d)){let{row:e,col:t,sheet:n}=i;this.addImplicitDep(d,new M.lu({row:e,col:t},{row:e,col:t},n.getName()))}""===o&&a&&(o=null)}else if(!u&&(0,t_.jr)(r)){let i=l?.getFormulaItem()||this.initItem(e,t,r);this.updateItem(i),o=i.getValue(),i.getSpillRange()&&(o=i.spillError?i.getSpillErrorValue():this.getSpillValue(o,0,0)),d&&(s&&d.setNfIdHint(i.nfId??0),n.keepLink&&void 0!==i.href&&void 0===d.href&&(d.href=i.href))}else o=(0,ts.is)(r)?r.getText():r;return null===o&&(!a||u)&&(o=""),o}rangeValue(e,t,i,n){let o=Math.max(e.row,0),r=Math.max(e.col,0),a=Math.min(t.row,this.sheet.countRows()-1),s=Math.min(t.col,this.sheet.countCols()-1),l=Array(a-o+1);for(let e=o;e<=a;e++){let t=Array(s-r+1);for(let o=r;o<=s;o++)t[o-r]=this.cellValue(e,o,i,n);l[e-o]=t}return l}visibleCellValue(e,t,i,n){let o=n.keepNull?null:"";if(n.skipHiddenRow&&this.sheet.isHiddenRow(e)||n.skipHiddenCol&&this.hiddenPlugin.isHiddenCol(e)||n.skipFiltered&&this.filterPlugin.isHiddenRow(e))return o;let r=this.cellValue(e,t,i,n);return n.skipSubtotal&&this.sheet.getFormulaItem(e,t)?.isSubtotal?o:r}visibleRangeValue(e,t,i,n){let o=Math.max(e.row,0),r=Math.max(e.col,0),a=Math.min(t.row,this.sheet.countRows()-1),s=Math.min(t.col,this.sheet.countCols()-1),{skipHiddenRow:l,skipHiddenCol:c,skipFiltered:d,skipSubtotal:u}=n,h=[];for(let e=o;e<=a;e++){if(l&&this.sheet.isHiddenRow(e)||d&&this.filterPlugin.isHiddenRow(e))continue;let t=[];for(let o=r;o<=s;o++){if(c&&this.hiddenPlugin.isHiddenCol(o))continue;let r=this.cellValue(e,o,i,n);u&&this.sheet.getCellModel(e,o)?.getFormulaItem()?.isSubtotal||t.push(r)}h.push(t)}return h}_createVector(e,t,i,n){let o=eR.createFromRange(e,this.sheet);if(!o)throw Error("Range is not allowed");let r=new n(o,this,t,i);if(r.getSize()>=1e3&&!t.preValidateCell){let e=new M.lu(o.from,o.to,this.sheet.getName()),i=this.itemCache.getVectorItem(this.sheet.getFormulaDepManager().getContainer().getOrCreateFormulaRange(e)),n=t.item;n&&eV(n)&&i.addFormulaItem(n),r.setVectorItem(i)}return r}createRowVector(e,t,i){return this._createVector(e,t,i,fv)}createColumnVector(e,t,i){return this._createVector(e,t,i,fb)}createRangeVector(e,t,i){return this._createVector(e,t,i,fy)}addImplicitDep(e,t){if(!e.registerImplicit)return;let i=t.getContainer(this.sheet.getFormulaDepManager()),n=i.getFormulaRange(t);n||(n=new e3(t),i.addFormulaRange(n)),e.registerImplicit(n)}getNumberFormatHint(e,t){let i=this.sheet.getFormulaItem(e,t);return i?.nfId}},fx=class extends rN{constructor(e){super(e,"synoFreezeBar"),this.fixedRowsTop=0,this.fixedColumnsLeft=0}enablePlugin(){this.addHook("afterInit",e=>this.afterInit(e)),this.addHook("afterCreateRow",(e,t)=>this.afterCreateRow(e,t)),this.addHook("afterCreateCol",(e,t)=>this.afterCreateCol(e,t)),this.addHook("afterRemoveRow",(e,t)=>this.afterRemoveRow(e,t)),this.addHook("afterRemoveCol",(e,t)=>this.afterRemoveCol(e,t)),this.addHook("beforeMoveRow",(e,t,i)=>this.beforeMove("row",e,t,i)),this.addHook("beforeMoveCol",(e,t,i)=>this.beforeMove("col",e,t,i)),super.enablePlugin()}afterInit(e){this.fixedRowsTop=e.fixedRowTop||0,this.fixedColumnsLeft=e.fixedColumnLeft||0}fixedRow(e){if(e===this.fixedRowsTop)return;let t=this.fixedRowsTop;this._fixedRow(e),this.sheet.runHooks("afterFixedRow",e,t)}_fixedRow(e){this.fixedRowsTop=e,this.sheet.notifyPluginChanges(["freeze"])}fixedCol(e){if(e===this.fixedColumnsLeft)return;let t=this.fixedColumnsLeft;this._fixedCol(e),this.sheet.runHooks("afterFixedCol",e,t)}_fixedCol(e){this.fixedColumnsLeft=e,this.sheet.notifyPluginChanges(["freeze"])}afterCreateRow(e,t){this.fixedRowsTop&&e<this.fixedRowsTop&&this._fixedRow(this.fixedRowsTop+t)}afterRemoveRow(e,t){this.fixedRowsTop&&e<this.fixedRowsTop&&this._fixedRow(this.fixedRowsTop-Math.min(this.fixedRowsTop-e,t))}afterCreateCol(e,t){this.fixedColumnsLeft&&e<this.fixedColumnsLeft&&this._fixedCol(this.fixedColumnsLeft+t)}afterRemoveCol(e,t){this.fixedColumnsLeft&&e<this.fixedColumnsLeft&&this._fixedCol(this.fixedColumnsLeft-Math.min(this.fixedColumnsLeft-e,t))}beforeMove(e,t,i,n){let o,r=i&&i[this.pluginName],a="row"===e?"_fixedRow":"_fixedCol";if(void 0!==r)return void this[a](r);let s="row"===e?this.fixedRowsTop:this.fixedColumnsLeft;0===s||t.sec[0].start>=s||t.sec[1].end<s||(o=t.isBackward?s+Math.min(t.sec[1].amount,t.sec[1].end-s+1):s-Math.min(t.sec[0].amount,s-t.sec[0].start),n[this.pluginName]=s,this[a](o))}},fS=class extends fx{getDataView(){return{fixedRowsTop:this.fixedRowsTop,fixedColumnsLeft:this.fixedColumnsLeft}}getStateJSON(){return this.getDataView()}},fC=class extends rN{constructor(e){super(e,"synoHideRowCol")}enablePlugin(){this.sheet.hidden=this,super.enablePlugin()}hideRows(e,t,i){for(let i=e;i<=t;i++)this.sheet.worksheet.updateRowAttr(i,"hidden",!0);this.sheet.runHooks("afterHideRows",e,t,i),this.sheet.notifySheetChanges(["rows"])}hideCols(e,t,i){for(let i=e;i<=t;i++)this.sheet.worksheet.updateColAttr(i,"hidden",!0);this.sheet.runHooks("afterHideCols",e,t,i),this.sheet.notifySheetChanges(["cols"])}showRows(e,t,i){for(let i=e;i<=t;i++)this.sheet.worksheet.updateRowAttr(i,"hidden",void 0),this.sheet.worksheet.updateRowAttr(i,"collapse",void 0);this.sheet.runHooks("afterShowRows",e,t,i),this.sheet.notifySheetChanges(["rows"])}showCols(e,t,i){for(let i=e;i<=t;i++)this.sheet.worksheet.updateColAttr(i,"hidden",void 0),this.sheet.worksheet.updateColAttr(i,"collapse",void 0);this.sheet.runHooks("afterShowCols",e,t,i),this.sheet.notifySheetChanges(["cols"])}isHiddenRow(e){let t=this.sheet.worksheet.getRowInfo(e);return t?.hidden===!0}isHiddenCol(e){let t=this.sheet.worksheet.getColInfo(e);return t?.hidden===!0}_repair(e,t,i){if(t)for(let n=0;n<t.length;n++)!0===t[n]&&e.call(this,i+n,i+n,tL.InsertedData)}repairRow(e,t){this._repair(this.hideRows,e,t)}repairCol(e,t){this._repair(this.hideCols,e,t)}setHiddenInfo(e,t){let i=this.sheet.countRows()-1;for(let{from:n,to:o}of e){n=Math.max(n,0),o=Math.min(o,i);for(let e=n;e<=o;e++)this.sheet.worksheet.updateRowAttr(e,"hidden",!!t||void 0)}this.sheet.notifySheetChanges(["rows"])}};class fk extends fC{}class fI extends uS(fk){constructor(e){super(e),this.minHideRow=-1,this.minHideCol=-1,this.maxHideRow=-1,this.maxHideCol=-1}enablePlugin(){this.addHook("afterInit",()=>this.afterInit()),this.addHook("afterCreateRow",(e,t)=>this.afterCreateRow(e,t)),this.addHook("afterRemoveRow",(e,t)=>this.afterRemoveRow(e,t)),this.addHook("afterCreateCol",(e,t)=>this.afterCreateCol(e,t)),this.addHook("afterRemoveCol",(e,t)=>this.afterRemoveCol(e,t)),this.addHook("afterMoveRow",e=>this.afterMoveRow(e)),this.addHook("afterMoveCol",e=>this.afterMoveCol(e)),this.addHook("collectRemovedRowInfo",(e,t,i)=>this._collectRemovedInfo("row",e,t,i)),this.addHook("collectRemovedColInfo",(e,t,i)=>this._collectRemovedInfo("col",e,t,i)),super.enablePlugin()}afterInit(){this.updateMinMaxRow(),this.updateMinMaxCol()}updateMinMaxRow(){let e=this.sheet.worksheet.rowInfos;this.minHideRow=this.sheet.countRows();for(let t=0;t<e.length;t++)if(this.isHiddenRow(t)){this.minHideRow=t;break}this.maxHideRow=-1;for(let t=e.length-1;t>=0;t--)if(this.isHiddenRow(t)){this.maxHideRow=t;break}}updateMinMaxCol(){let e=this.sheet.worksheet.colInfos;this.minHideCol=this.sheet.countCols();for(let t=0;t<e.length;t++)if(this.isHiddenCol(t)){this.minHideCol=t;break}this.maxHideCol=-1;for(let t=e.length-1;t>=0;t--)if(this.isHiddenCol(t)){this.maxHideCol=t;break}}hideRows(e,t,i){t>this.maxHideRow&&(this.maxHideRow=t),e<this.minHideRow&&(this.minHideRow=e),super.hideRows(e,t,i)}hideCols(e,t,i){t>this.maxHideCol&&(this.maxHideCol=t),e<this.minHideCol&&(this.minHideCol=e),super.hideCols(e,t,i)}showRows(e,t,i){(e<=this.minHideRow&&this.minHideRow<=t||e<=this.maxHideRow&&this.maxHideRow<=t)&&this.updateMinMaxRow(),super.showRows(e,t,i)}showCols(e,t,i){(e<=this.minHideCol&&this.minHideCol<=t||e<=this.maxHideCol&&this.maxHideCol<=t)&&this.updateMinMaxCol(),super.showCols(e,t,i)}afterCreateRow(e,t){e<=this.minHideRow&&(this.minHideRow+=t),e<=this.maxHideRow&&(this.maxHideRow+=t)}afterRemoveRow(e,t){let i=e+t-1;e<=this.minHideRow&&this.minHideRow<=i||e<=this.maxHideRow&&this.maxHideRow<=i?this.updateMinMaxCol():(i<=this.minHideRow&&(this.minHideRow-=t),i<=this.maxHideRow&&(this.maxHideRow-=t))}afterCreateCol(e,t){e<=this.minHideCol&&(this.minHideCol+=t),e<=this.maxHideCol&&(this.maxHideCol+=t)}afterRemoveCol(e,t){let i=e+t-1;e<=this.minHideCol&&this.minHideCol<=i||e<=this.maxHideCol&&this.maxHideCol<=i?this.updateMinMaxCol():(i<=this.minHideCol&&(this.minHideCol-=t),i<=this.maxHideRow&&(this.maxHideCol-=t))}_afterMove(e,t,i,n){let o=e.sec[0].start,r=e.sec[1].end;if(t>=o&&t<=r){for(let e=r;e>=o;e--)if(this[n](e)){t=e;break}}if(i>=o&&i<=r){for(let e=o;e<=r;e++)if(this[n](e)){i=e;break}}return[t,i]}afterMoveRow(e){[this.maxHideRow,this.minHideRow]=this._afterMove(e,this.maxHideRow,this.minHideRow,"isHiddenRow")}afterMoveCol(e){[this.maxHideCol,this.minHideCol]=this._afterMove(e,this.maxHideCol,this.minHideCol,"isHiddenCol")}_collectRemovedInfo(e,t,i,n){let o="row"===e?this.isHiddenRow:this.isHiddenCol,r=Array(n);for(let e=0;e<n;e++)r[e]=o.call(this,i+e);r.some(e=>e)&&("row"===e?t.push({pluginName:this.pluginName,rowInfo:r}):t.push({pluginName:this.pluginName,colInfo:r}))}}let fA=class extends r9{fillDrawableData(){let e,t,i,n,o=this.getDataRowNumber(!0),r=this.getDataColNumber(!0),a=+!!this.dataHasCat(),s=+!!this.dataHasTx(),l=this.sheet.getWorkbook();for(e=0,this.drawableData=[];e<o;e++){for(t=0,i=[];t<r;t++)n=this.getDataCoord(e,t,!0),(t<s||n&&function(e){let t=l.getSheetById(e.id);return t&&!t.isHiddenCell(e.row,e.col)}(n))&&i.push(n);(s<i.length||e<a)&&this.drawableData.push(i)}this._completeData(this.drawableData)}},fT=class extends ac{enablePlugin(){super.enablePlugin();let e=this;this.registerWorkbookHook("afterShowRows",function(t,i){e.afterHiddenChange("row",this,t,i)}),this.registerWorkbookHook("afterShowCols",function(t,i){e.afterHiddenChange("col",this,t,i)}),this.registerWorkbookHook("afterHideRows",function(t,i){e.afterHiddenChange("row",this,t,i)}),this.registerWorkbookHook("afterHideCols",function(t,i){e.afterHiddenChange("col",this,t,i)}),this.registerWorkbookHook("filterHiddenChange",function(t,i){e.afterHiddenChange("row",this,t,i)})}updateAllChartData(){ea(this.charts,e=>{e.infoHandler.updateData()})}afterHiddenChange(e,t,i,n){ea(this.charts,o=>{o.infoHandler.afterHiddenChange(e,t,i,n)})}getImageJSONById(e){let t=this.getImageById(e);return t?.getJSON()??null}getChartJSONById(e){let t=this.getChartById(e);return t?.getJSON()??null}getImagesJSON(){return this.images.map(e=>e.getJSON())}getChartsJSON(){return this.charts.map(e=>e.getJSON())}getStateJSON(){return{images:this.getImagesJSON(),charts:this.charts.map(e=>{let t=e.infoHandler.getChartObj(),i=e.infoHandler.getInfo().getDrawableData(),n=e.infoHandler.getInfo().getAxisFc();return{id:e.id,position:e.getPosition(),config:t,data:i,fc:n}})}}getDataView(){function e(e){return{id:e.id,position:e.getPosition()}}return{images:this.images.map(e),charts:this.charts.map(e)}}convertChartInfo(e){return new fA(e,{sheet:this.sheet})}},fE=class extends rN{constructor(e){super(e,"synoManualColumnResize")}getManualSize(e){let t=this.sheet.worksheet.getColInfo(e);return t&&t.w?t.w:null}setManualSize(e,t){return"number"==typeof t&&(t=Math.max(t=Math.min(t=Math.round(t),tu.Z.MAX_COL_WIDTH),tu.Z.MIN_COL_WIDTH)),this.sheet.worksheet.updateColAttr(e,"w",t??void 0),this.sheet.notifySheetChanges(["cols"]),t}applyResizeChange(e,t,i,n){let o=Array.isArray(i)?i:[i];for(let i=e;i<=t;i++)this.setManualSize(i,o[(i-e)%o.length])}repairCol(e,t){e&&this.applyResizeChange(t,t+e.length-1,e,tL.InsertedData)}},fR=class extends fE{enablePlugin(){this.addHook("collectRemovedColInfo",(e,t,i)=>this._collectRemovedInfo(e,t,i)),super.enablePlugin()}applyResizeChange(e,t,i,n){let o=[];for(let i=e;i<=t;i++)o.push(this.getManualSize(i));super.applyResizeChange(e,t,i,n),this.sheet.runHooks("afterColumnResize",e,t,o,i,n)}_collectRemovedInfo(e,t,i){let n=Array(i);for(let e=0;e<i;e++)n[e]=this.getManualSize(t+e);n.some(e=>null!==e)&&e.push({pluginName:this.pluginName,colInfo:n})}},fD=class extends rN{constructor(e){super(e,"synoManualRowResize")}getManualSize(e){let t=this.sheet.worksheet.getRowInfo(e);return t&&t.h?t.h:null}setManualSize(e,t){return"number"==typeof t&&(t=Math.min(t=Math.max(t=Math.round(t),tu.Z.MIN_ROW_HEIGHT),tu.Z.MAX_ROW_HEIGHT)),this.sheet.worksheet.updateRowAttr(e,"h",t??void 0),this.sheet.notifySheetChanges(["rows"]),t}applyResizeChange(e,t,i,n){let o=Array.isArray(i)?i:[i];for(let i=e;i<=t;i++)this.setManualSize(i,o[(i-e)%o.length])}repairRow(e,t){e&&this.applyResizeChange(t,t+e.length-1,e,tL.InsertedData)}},fO=class extends fD{enablePlugin(){this.addHook("collectRemovedRowInfo",(e,t,i)=>this._collectRemovedInfo(e,t,i)),super.enablePlugin()}applyResizeChange(e,t,i,n){let o=[];for(let i=e;i<=t;i++)o.push(this.getManualSize(i));super.applyResizeChange(e,t,i,n),this.sheet.runHooks("afterRowResize",e,t,o,i,n)}_collectRemovedInfo(e,t,i){let n=Array(i);for(let e=0;e<i;e++)n[e]=this.getManualSize(t+e);n.some(e=>null!==e)&&e.push({pluginName:this.pluginName,rowInfo:n})}};var fM=i(22881);let fN=class extends rN{constructor(e){super(e,"synoMergeCell"),this.rangeCollection=new fM.Z}enablePlugin(){this.addHook("afterInit",e=>this.afterInit(e)),this.addHook("afterCreateCol",(e,t)=>this._afterCreateRowCol("col",e,t)),this.addHook("afterRemoveCol",(e,t)=>this._afterRemoveRowCol("col",e,t)),this.addHook("afterCreateRow",(e,t)=>this._afterCreateRowCol("row",e,t)),this.addHook("afterRemoveRow",(e,t)=>this._afterRemoveRowCol("row",e,t)),this.addHook("afterSort",(e,t)=>this._afterSort(e,t)),this.addHook("beforeMoveRow",e=>this._beforeMove("row",e)),this.addHook("beforeMoveCol",e=>this._beforeMove("col",e)),super.enablePlugin()}afterInit(e){let t=e.mergeCells;Array.isArray(t)&&this.rangeCollection.init(t.map(e=>eA.GJ.fromArray(e)))}getMergedInfoCollection(){return this.rangeCollection}_afterCreateRowCol(e,t,i){this.rangeCollection.onCreateRowCol(e,t,i),this.sheet.notifyPluginChanges(["merge"])}_afterRemoveRowCol(e,t,i){this.rangeCollection.onRemoveRowCol(e,t,i),this.sheet.notifyPluginChanges(["merge"])}_afterSort(e,t){let i=this.rangeCollection.getOverlap(t),n=[];i.forEach(i=>{this.rangeCollection.delete(i),i.from.row===i.to.row&&t.from.col<=i.from.col&&i.to.col<=t.to.col&&(i.from.row=i.to.row=e[i.from.row-t.from.row]+t.from.row,n.push(i))}),n.forEach(e=>this.rangeCollection.insert(e)),this.sheet.notifyPluginChanges(["merge"])}_beforeMove(e,t){this.rangeCollection.onMoveRowCol(e,t),this.sheet.notifyPluginChanges(["merge"])}canMergeRange(e){return!e.isSingle()}mergeRange(e,t){this.canMergeRange(e)&&(this.sheet.getOrCreateCell(e.from.row,e.to.col),this._removeOverlapInfo(e),this.rangeCollection.insert(e),this.sheet.runHooks("afterMergeCells",e,t),this.sheet.notifyPluginChanges(["merge"]))}unmergeRange(e,t){this.rangeCollection.delete(e)&&(this.sheet.runHooks("afterUnmergeCells",e,t),this.sheet.notifyPluginChanges(["merge"]))}_repairFn(e){e.forEach(e=>this.mergeRange(eA.GJ.fromArray(e),tL.InsertedData))}repairRow(e){this._repairFn(e)}repairCol(e){this._repairFn(e)}isMergeHidden(e,t){let i=this.getMergedRange(e,t);return!!i&&(i.from.row!==e||i.from.col!==t)}_removeOverlapInfo(e){this.rangeCollection.getOverlap(e).forEach(e=>this.rangeCollection.delete(e)),this.sheet.notifyPluginChanges(["merge"])}getOverlap(e){return this.rangeCollection.getOverlap(e)}getMergedRange(e,t){return this.rangeCollection.getOverlap((0,eI.MT)(e,t,e,t))[0]}getCoverRange(){return this.rangeCollection.getCoverRange()}serialize(){return Array.from(this.rangeCollection.traverse(),e=>e.toArray())}};class fP extends fN{enablePlugin(){super.enablePlugin(),this.addHook("collectRemovedRowInfo",(e,t,i)=>this.collectRemovedRowInfo(e,t,i)),this.addHook("collectRemovedColInfo",(e,t,i)=>this.collectRemovedColInfo(e,t,i))}_getRemovedInfo(e,t,i){let n=this.getCoverRange();return n?(n.from[e]=t,n.to[e]=t+i-1,this.rangeCollection.getOverlap(n).map(e=>e.toArray())):[]}collectRemovedRowInfo(e,t,i){let n=this._getRemovedInfo("row",t,i);n.length>0&&e.push({pluginName:this.pluginName,rowInfo:n})}collectRemovedColInfo(e,t,i){let n=this._getRemovedInfo("col",t,i);n.length>0&&e.push({pluginName:this.pluginName,colInfo:n})}checkMoveEnable(e,t,i,n){let o=this.getCoverRange();return!o||(o.from[e]=t,o.to[e]=t+i-1,!this.rangeCollection.getOverlap(o).some(e=>!o.includesRange(e))&&(o.from[e]=t+i,o.to[e]=t+i+n-1,!this.rangeCollection.getOverlap(o).some(e=>!o.includesRange(e))))}searchMerge(e){return this.rangeCollection.search(e)}traverseMergedRange(){return this.rangeCollection.traverse()}containsIncompleteMergedCells(e){return this.getOverlap(e).some(t=>!e.includesRange(t))}getDataView(){return this.serialize()}getStateJSON(){return{mergeRanges:this.serialize()}}}class fL extends uM(fP){}let fB="_text",fF=new iw,fV=class extends rN{constructor(e){super(e,"synoRenderCache"),this.needRenderMap=new Map}enablePlugin(){super.enablePlugin(),this.addHook("init",()=>this.onInit()),this.addHook("afterChangeResolve",e=>this.onAfterChangeResolve(e)),this.addHook("afterAddInternalLink",e=>this.clearCellCache(e.row,e.col)),this.addHook("afterRemoveInternalLink",e=>this.clearCellCache(e.row,e.col)),this.addHook("afterCreateRow",(e,t)=>this.adjustNeedRenderMapByAlterGrid("row",e,t)),this.addHook("afterRemoveRow",(e,t)=>this.adjustNeedRenderMapByAlterGrid("row",e,-t)),this.addHook("afterCreateCol",(e,t)=>this.adjustNeedRenderMapByAlterGrid("col",e,t)),this.addHook("afterRemoveCol",(e,t)=>this.adjustNeedRenderMapByAlterGrid("col",e,-t)),this.addHook("beforeMoveRow",e=>this.adjustNeedRenderMapByMove("row",e)),this.addHook("beforeMoveCol",e=>this.adjustNeedRenderMapByMove("col",e))}onInit(){let e=this.sheet.getDataModel(),t=e.getRowLength();for(let i=0;i<t;i++){let t=e.getRow(i);if(!t)continue;let n=t.getColLength();for(let e=0;e<n;e++){let n=t.getCell(e);n&&!this.isCellBlank(n)&&this.needRenderMap.set(n,{row:i,col:e})}}}clearAllHeightCache(){}modifyRowHeight(e,t){return t}clearCellCache(e,t){this._clearCellCache(e,t)}_clearCellCache(e,t){let i=this.sheet.getCellModel(e,t);i&&!this.isCellBlank(i)?(this.needRenderMap.set(i,{row:e,col:t}),this.sheet.getWorkbook().getAsyncCalculator().runTask()):this.sheet.setCellMeta(e,t,[[fB,null]])}onAfterChangeResolve(e){for(let t=0;t<e.length;t++)this._clearCellCache(e[t].row,e[t].col)}adjustNeedRenderMapByAlterGrid(e,t,i){let n=[];for(let[o,r]of this.needRenderMap)r[e]>=t&&(r[e]+=i,r[e]<t&&n.push(o));for(let e of n)this.needRenderMap.delete(e)}adjustNeedRenderMapByMove(e,t){for(let i of this.needRenderMap.values())i[e]>=t.sec[0].start&&i[e]<=t.sec[1].end&&(i[e]<=t.sec[0].end?i[e]+=t.sec[1].amount:i[e]-=t.sec[0].amount)}*calcNeedRenderCell(){for(let[,{row:e,col:t}]of function(e,t){let i=e[Symbol.iterator](),n=[];for(let e=0;e<40;e++){let{value:e,done:t}=i.next();if(t)break;n.push(e)}return n}(this.needRenderMap,0))this.getCellTextDesc(e,t),yield}getNeedRenderSize(){return this.needRenderMap.size}getCellText(e,t){return this.getCellTextDesc(e,t).v}getModelCellDesc(e){return e.getProperties()[fB]||fF}getCellDescState(e,t){let i=this.sheet.getCellModel(e,t);if(!i||this.isCellBlank(i)){let i=this.sheet.formula.getSpillItem(e,t);return!i||i.needCheckSpill||i.spillError?fF:i_(this.sheet,e,t)}return this.getModelCellDesc(i)}getCellTextDesc(e,t){let i=this.sheet.getCellModel(e,t),n=!!i&&this.needRenderMap.delete(i);return!i||this.isCellBlank(i)?this.sheet.formula.getSpillItem(e,t)?i_(this.sheet,e,t):fF:n?this._updateCellText(i,e,t):this.getModelCellDesc(i)}isCellBlank(e){return(0,eI.O2)(e.getValue())&&!1===e.getCellStyle().getQuotePrefix()}_updateCellText(e,t,i){if(this.isCellBlank(e))return fF;let n=i_(this.sheet,t,i);return this.sheet.setCellMeta(t,i,[[fB,n]]),n}renderData(e,t,i){let n=this.getCellTextDesc(e,t);return this.sheet.getPlugin("synoConditionalFormat").afterDataRenderer(e,t,i,i.getProperties()),this.sheet.getPlugin("synoValidation").afterDataRenderer(e,t,i,i.getProperties()),this.sheet.getPlugin("synoCellDirection").afterDataRenderer(e,t,i,i.getProperties()),n}},fz=class extends fV{constructor(e){super(e),this.heights=[]}enablePlugin(){let e=e=>this.onAfterStyleChange(e);this.addHook("afterFontChange",e),this.addHook("afterAlignmentChange",e);let t=(e,t,i,n)=>this.onDimensionStyleChange(e,n.cellChanges);this.addHook("afterRowStyleChange",t),this.addHook("afterColStyleChange",t),this.addHook("afterGlobalStyleChange",t),this.addHook("afterCreateValidation",(e,t)=>this.afterCreateValidation(e,t)),this.addHook("afterRemoveValidation",(e,t)=>this.afterRemoveValidation(e,t)),this.addHook("afterCreateFilter",(e,t)=>this.afterCreateFilter(e)),this.addHook("afterEnableFilter",e=>this.afterFilterChange()),this.addHook("afterDisableFilter",e=>this.afterFilterChange()),this.addHook("afterMergeCells",e=>this.onAfterMergeCellsUpdate(e)),this.addHook("afterUnmergeCells",e=>this.onAfterMergeCellsUpdate(e)),this.addHook("afterRowResize",(e,t,i,n)=>this.onAfterRowResize(e,t)),this.addHook("afterColumnResize",(e,t,i,n)=>this.onAfterColumnResize(e,t)),this.addHook("afterCreateRow",(e,t)=>this.onAfterCreateRow(e,t)),this.addHook("afterRemoveRow",(e,t)=>this.onAfterRemoveRow(e,t)),this.addHook("afterCreateCol",(e,t)=>this.onAfterCreateCol(e,t)),this.addHook("afterRemoveCol",(e,t)=>this.onAfterRemoveCol(e,t)),this.addHook("beforeMoveRow",e=>this.beforeMoveRow(e)),this.addHook("beforeMoveCol",e=>this.beforeMoveCol(e)),super.enablePlugin()}notifyRecalcRow(){this.sheet.getWorkbook().getNotifier()?.onRenderHeightChange(this.sheet.sheetId)}clearAllHeightCache(){let e=this.sheet.getDataModel();for(let t=0;t<this.heights.length;t++)void 0!==this.heights[t]&&(this.heights[t]=void 0,e.getRow(t)?.forEach((e,i)=>{e&&this._clearCellCache(t,i)}));this.notifyRecalcRow()}clearRowHeightsCache(e){void 0!==this.heights[e]&&(this.heights[e]=void 0,this.notifyRecalcRow())}_clearCellCache(e,t){super._clearCellCache(e,t),this.clearRowHeightsCacheByCol(e,t)}clearCellHeightCache(e,t){this.clearRowHeightsCacheByCol(e,t)}clearRowHeightsCacheByCol(e,t){let i=this.heights[e];(null===i||i&&i.col===t)&&(this.heights[e]=void 0)}_clearHeightCacheByChanges(e){let t=[];ea(e,e=>{this.clearCellHeightCache(e[0],e[1]),t.push({row:e[0],col:e[1]})})}onAfterChangeResolve(e){super.onAfterChangeResolve(e)}onAfterStyleChange(e){this._clearHeightCacheByChanges(e)}onDimensionStyleChange(e,t){("Font"===e||"Alignment"===e)&&this.onAfterStyleChange(t)}onAfterMergeCellsUpdate(e){this.clearCellHeightCache(e.from.row,e.from.col)}onAfterRowResize(e,t){let i=[];for(let n=e;n<=t;n++)this.clearRowHeightsCache(n),i.push(n)}onAfterColumnResize(e,t){for(let i=0,n=this.heights.length;i<n;i++){let n=this.heights[i];n&&e<=n.col&&n.col<=t&&(this.heights[i]=void 0,this.notifyRecalcRow())}}onAfterCreateRow(e,t){ef(this.heights,e,t),this.sheet.getWorkbook().getNotifier()?.onRenderHeightAlterGrid(this.sheet.sheetId,"row",e,t)}onAfterRemoveRow(e,t){this.heights.splice(e,t),this.sheet.getWorkbook().getNotifier()?.onRenderHeightAlterGrid(this.sheet.sheetId,"row",e,-t)}onAfterCreateCol(e,t){for(let i=0,n=this.heights.length;i<n;i++){let n=this.heights[i];n&&e<=n.col&&(n.col+=t)}this.sheet.getWorkbook().getNotifier()?.onRenderHeightAlterGrid(this.sheet.sheetId,"col",e,t)}onAfterRemoveCol(e,t){let i=e+t-1;for(let n=0,o=this.heights.length;n<o;n++){let o=this.heights[n];o&&e<=o.col&&(o.col<=i?this.heights[n]=void 0:o.col-=t)}this.sheet.getWorkbook().getNotifier()?.onRenderHeightAlterGrid(this.sheet.sheetId,"col",e,-t)}beforeMoveRow(e){el(this.heights,e.sec[0].start,e.sec[0].amount,e.sec[1].amount),this.sheet.getWorkbook().getNotifier()?.onRenderHeightMove(this.sheet.sheetId,"row",e)}beforeMoveCol(e){for(let t=0,i=this.heights.length;t<i;t++){let i=this.heights[t];i&&e.sec[0].start<=i.col&&i.col<=e.sec[1].end&&(i.col<=e.sec[0].end?i.col+=e.sec[1].amount:i.col-=e.sec[0].amount)}this.sheet.getWorkbook().getNotifier()?.onRenderHeightMove(this.sheet.sheetId,"col",e)}setRenderHeights(e){for(let{row:t,col:i,height:n}of e)this.setHeightCache(t,i,n)}setHeightCache(e,t,i){let n=this.heights[e];n?i>n.h&&(this.heights[e]={h:i,col:t},this.notifyRecalcRow()):i>this.sheet.getDefaultRowHeight()-1?(this.heights[e]={h:i,col:t},this.notifyRecalcRow()):this.heights[e]=null}modifyRowHeight(e,t){let i=this.heights[e];if(i){let e=i.h;if((e+=1)>t)return e}return t}_removeRangeHeightCache(e){let t=[];e.forAll((e,i)=>{this.clearCellHeightCache(e,i),t.push({row:e,col:i})})}afterCreateValidation(e,t){this._removeRangeHeightCache(t)}afterRemoveValidation(e,t){this._removeRangeHeightCache(t)}afterCreateFilter(e){(e=e.clone()).to.row=e.from.row,this._removeRangeHeightCache(e)}afterFilterChange(){let e=this.sheet.getPlugin("synoFilter").filter?.cloneRange();e&&(e.to.row=e.from.row,this._removeRangeHeightCache(e))}},fH=new WeakMap;function fW(e){let{queryStr:t,caseMatch:i,regex:n}=e;try{return new RegExp(n?t:(0,ij.h)(t),i?"g":"gi")}catch{return null}}class fY{constructor(){this.results=[],this.index=-1}add(e,t,i){let n=this.findClosestIndex(e,t),o=this.results[n];o&&o.row===e&&o.col===t?this.results[n].cellText=i:(this.results.splice(n,0,{row:e,col:t,cellText:i}),this.index>=n&&(this.index+=1))}remove(e,t){let i=this.findIndex(e,t);!(i<0)&&(this.results.splice(i,1),this.index>=i&&(this.index-=1))}getFirstResult(){return this.setIndex(0),this.results[this.index]}getNextResult(){if(this.index!==this.results.length-1)return this.index+=1,this.results[this.index]}getCurrResult(){return this.results[this.index]}getPrevResult(){if(0!==this.index)return this.index-=1,this.results[this.index]}getLastResult(){return this.index=this.results.length-1,this.results[this.index]}getAllResult(){return this.results.slice()}findIndex(e,t){let i=this.findClosestIndex(e,t);return this.results[i]&&this.results[i].row===e&&this.results[i].col===t?i:-1}findClosestIndex(e,t){let i;if(0===this.results.length)return -1;let n=0,o=this.results.length-1,r={row:e,col:t};for(;n<=o;)if(i=Math.floor((n+o)/2),0>fU(this.results[i],r))n=i+1;else{if(0===i||0>fU(this.results[i-1],r))return i;o=i-1}return 0===n?-1:this.results.length}setIndexByCoord(e){let t=e?this.findClosestIndex(e.row,e.col):0;this.setIndex(t)}setIndex(e){this.index=Math.min(Math.max(e,0),this.results.length-1)}forAllResult(e){ea(this.results,e)}getIndex(){return this.index}getResultCount(){return this.results.length}indexOf(e){return this.results.indexOf(e)}sort(){this.results.sort(fU)}isEmpty(){return 0===this.results.length}}function fU(e,t){return e.row!==t.row?e.row-t.row:e.col-t.col}let fG=class extends rN{constructor(e){super(e,"synoSearch"),this.lastQuery=null,this.lastResult=null}enablePlugin(){let e=()=>this._requery();this.addHook("afterChangeResolve",e),this.addHook("afterCreateRow",e),this.addHook("afterRemoveRow",e),this.addHook("afterCreateCol",e),this.addHook("afterRemoveCol",e),this.addHook("afterSort",e),this.addHook("beforeMoveRow",e),this.addHook("beforeMoveCol",e),super.enablePlugin()}notifyRender(){this.sheet.getWorkbook().notifyDataChange(nf.SEARCH)}notifySearchClear(e){this.notifySearchChange({name:"updateSearchResult",params:[{sheetId:this.sheet.sheetId,results:[],coords:e?{row:0,col:0}:void 0}]})}notifySearchChange(e){this.sheet.getWorkbook().getNotifier()?.onSearchResultChange(e)}isSearching(){return!0===fH.get(this.sheet.getWorkbook())}setSearching(e){fH.set(this.sheet.getWorkbook(),!!e),this.notifySearchChange({name:"setSearching",params:[e]})}async _requery(){if(this.lastQuery){if(this.isSearching()){let e={...this.lastQuery},t=this.lastResult&&this.lastResult.getCurrResult();this.clear(),await Promise.resolve(),this.notifySearchClear(!1);let i=await this._query(e);t&&i&&i.setIndexByCoord(t)}else this.clear();this.sheet.isActive()&&this.notifyRender()}}getSearchingResult(){return this.isSearching()&&this.lastResult?this.lastResult.getAllResult():[]}moveSearchResult(e){if(this.lastResult)if("prev"===e)return this.lastResult.getPrevResult();else return"next"===e?this.lastResult.getNextResult():(this.lastResult.setIndexByCoord(e),this.lastResult.getCurrResult())}getLastResult(){return this.lastResult?.getLastResult()}getFirstResult(){return this.lastResult?.getFirstResult()}getSearchCount(){return{index:this.lastResult?.getIndex()??0,total:this.lastResult?.getResultCount()??0}}clear(){this.lastQuery=null,this.lastResult=null,this.notifySearchClear(!1)}_search(e){return this.lastResult&&this.queryEqual(e,this.lastQuery)?Promise.resolve(this.lastResult):(this.notifySearchClear(!0),this._query(e))}getReplaceChanges(e){let t=[];if(!this.queryEqual(e,this.lastQuery))return t;let i=this.lastResult.getCurrResult(),n=fW(e);return i&&n&&this.canReplace(i,e)&&t.push([i.row,i.col,i.cellText.replace(n,e.newValue)]),t}searchAll(e){return this._search(e)}getReplaceAllChanges(e){return this.searchAll(e).then(t=>{let i=[],n=fW(e);return t&&n&&t.forAllResult(t=>{this.canReplace(t,e)&&i.push([t.row,t.col,t.cellText.replace(n,e.newValue)])}),[this.sheet.sheetId,i]})}queryEqual(e,t){if(!e||!t)return e===t;let i=e.range===t.range;return e.range&&t.range&&(i=e.range.isEqual(t.range)),i&&e.queryStr===t.queryStr&&e.caseMatch===t.caseMatch&&e.contentMatch===t.contentMatch&&e.regex===t.regex&&e.withinFormulas===t.withinFormulas}_query(e){this.lastQuery=e,this.lastResult=new fY;let t=!(0,eI.O2)(e.queryStr)&&fW(e);if(!t)return Promise.resolve(this.lastResult);let i=e.range?e.range.from.row:0,n=e.range?e.range.to.row:this.sheet.countRows()-1,o=Math.min(n,i+100-1);return new Promise(r=>{let a=(i,o)=>{if(this.lastQuery!==e)return void r(null);this._queryPartial(t,e,i,o),o<n?setTimeout(()=>{a(o+1,Math.min(o+100,n))},10):r(this.lastResult)};a(i,o)})}_queryPartial(e,t,i,n){let o=t.range?t.range.from.col:0,r=t.range?t.range.to.col:this.sheet.countCols()-1,a=!1;for(let s=i;s<=n;s++)for(let i=o;i<=r;i++){let n=this.sheet.getCellModel(s,i),o=t.withinFormulas&&n&&(0,t_.jr)(n.getValue(),n.getCellStyle())?n.getValue():this.sheet.renderCache.getCellText(s,i);this._match(e,o,t)&&(this.lastResult.add(s,i,o),a=!0)}a&&this.notifySearchChange({name:"updateSearchResult",params:[{sheetId:this.sheet.sheetId,results:this.lastResult?.getAllResult()??[]}]})}_match(e,t,i){let{contentMatch:n}=i;if((0,eI.O2)(t))return!1;let o=t.match(e);return!!o&&(!n||o[0].length===t.length)}canReplace(e,t){let{row:i,col:n}=e,{withinFormulas:o}=t;if(o)return!0;let r=this.sheet.getCellModel(i,n);return!(r&&(0,t_.jr)(r.getValue(),r.getCellStyle()))}};class fZ extends uf{isEqual(e){return super.isEqual(e)&&this.conditionEqual(e)}getDisplayF1(e,t){return this._getDisplayValue(this.f1,e,t)}getDisplayF2(e,t){return this._getDisplayValue(this.f2,e,t)}_getDisplayValue(e,t,i){return(0,tq.gE)(this.sheet.getWorkbook().getLocale(),e,{date:this.type===ug.DATE})||""}}class fj extends fZ{constructor(e,t,i){super(e,t,i),this.refCell=this.isActive()?this.calcRefCell():e.refCell,this.formula=null,this.matrix=null,this.rangeBound={row:0,col:0},this.relativeCondition={},this.unitItem=new eU(this),this.operator||(0,er.Z)(this.f1)||(0,er.Z)(this.f2)||(this.operator="between"),this.initRelativeCondition()}init(){super.init(),this.fillFormula(),this.calcRangeBound(),this.matrix=this._createMatrix()}_createMatrix(){return new pj}destroy(){this.sheet.getWorkbook().getUnitUnknownRefManager().removeItem(this.unitItem),this.unitItem.unregister(),this.matrix.clear(),super.destroy()}cloneConfig(){let e=Object.assign(super.cloneConfig(),{refCell:this.refCell}),{row:t,col:i}=this.refCell,{f1:n,f2:o,text:r}=this.relativeCondition;return n&&(e.f1=Z(n,t,i)),o&&(e.f2=Z(o,t,i)),r&&(e.text=`=${Z(r,t,i)}`),e}conditionEqual(e){return this.relativeCondition.f1===e.relativeCondition.f1&&this.relativeCondition.f2===e.relativeCondition.f2&&this.relativeCondition.text===e.relativeCondition.text}isAbsRefOnly(){return(0,t_.U3)(this.f1)&&j(this.f1)&&(!this.f2||(0,t_.U3)(this.f2)&&j(this.f2))}updateRanges(e){super.updateRanges(e),this.updateRefCell(),this.updateByRelativeFormula(this.relativeCondition)}initRelativeCondition(){let{row:e,col:t}=this.refCell;this.relativeCondition={},(0,t_.U3)(this.f1)&&(this.relativeCondition.f1=G(this.f1,e,t)),(0,t_.U3)(this.f2)&&(this.relativeCondition.f2=G(this.f2,e,t)),(0,t_.jr)(this.text)&&(this.relativeCondition.text=G(this.text.slice(1),e,t))}updateByRelativeFormula(e){let{f1:t,f2:i,text:n}=e;if(!t&&!i&&!n)return;let o=this.relativeCondition;t&&(o.f1=t),i&&(o.f2=i),n&&(o.text=n),this.fillFormula(),this.onFormulaChange(),this.calcRangeBound()}fillFormula(){let e=this.formula,t=(0,nC.coordToLabel)(this.refCell),{row:i,col:n}=this.refCell;if(this.type===ug.CUSTOM)this.formula=Z(this.relativeCondition.f1,i,n);else if(this.type===ug.TEXT)this.formula=sA(this.operator,t,Z(this.relativeCondition.text,this.refCell.row,this.refCell.col));else{let e=this.relativeCondition.f1?Z(this.relativeCondition.f1,i,n):this.f1,o=this.relativeCondition.f2?Z(this.relativeCondition.f2,i,n):this.f2;this.formula=sT(this.operator,t,e,o)}e!==this.formula&&this.registerUnitItem()}registerUnitItem(){let e=this.sheet.getWorkbook().getUnitUnknownRefManager();e.removeItem(this.unitItem),this.unitItem.unregister();let t=X(this.formula),i=this.sheet.formula.checkCrossRefError(t);if(i)e.addItem(i,this.unitItem),this.formula="#REF!";else{let e=this.sheet.formula.mapFormulaRange(t);this.unitItem.register(e)}}onCreateRowCol(e,t,i,n){if(!this.isActive())return;super.onCreateRowCol(e,t,i,n);let o={...this.refCell};n<o[e]&&t<=o[e]&&(o[e]+=i,this.updateRefCell(o)),this.matrix.onAlterGrid(e,t,i,e=>this.setNeedValid(e.row,e.col))}onRemoveRowCol(e,t,i){super.onRemoveRowCol(e,t,i),this.isActive()&&(this.updateRefCell(),this.matrix.onAlterGrid(e,t,-i,e=>this.setNeedValid(e.row,e.col)))}_genAdditionValid(e,t,i){let n=uF(i,this.sheet.countRows(),this.sheet.countCols()),o=this.cloneConfig();n[e]-=t.delta;let{row:r,col:a}=n;return this.relativeCondition.f1&&(o.f1=H.P6.moveFormula(e,Z(this.relativeCondition.f1,r,a),t)),this.relativeCondition.f2&&(o.f2=H.P6.moveFormula(e,Z(this.relativeCondition.f2,r,a),t)),this.relativeCondition.text&&(o.text=`=${H.P6.moveFormula(e,Z(this.relativeCondition.text,r,a),t)}`),[o,i]}_move(e,t){let{newRanges:i,nextRanges:n,rangesChanged:o}=this._moveRange(e,t,this.isAbsRefOnly()),r={changed:o,addition:null};return this.setNeedValidAll(),n.length>0&&i.length>0&&(r.addition=this._genAdditionValid(e,t,i)),o&&(this.ranges=n.length>0?n:i,this.updateRefCell(),this.matrix.clear()),r}beforeMove(e,t,i,n){if(!this.isActive())return;if(i){super.beforeMove(e,t,i,n),this.updateRefCell(),this.matrix.clear();return}let o={ranges:eD(this.ranges)},{addition:r,changed:a}=this._move(e,t);return a&&(n[this.validId]=o),r?f0(r[0],r[1],this.sheet):void 0}addValidRange(e){let t,i=[];return this.rangeBound.row>e.to.row||this.rangeBound.col>e.to.col?i.push(e.clone()):(this.rangeBound.row>e.from.row&&(i.push((0,eI.MT)(e.from.row,e.from.col,this.rangeBound.row-1,e.to.col)),e.from.row=this.rangeBound.row),this.rangeBound.col>e.from.col&&(i.push((0,eI.MT)(e.from.row,e.from.col,e.to.row,this.rangeBound.col-1)),e.from.col=this.rangeBound.col),t=this.isActive()?{row:Math.min(e.from.row,this.refCell.row),col:Math.min(e.from.col,this.refCell.col)}:{row:e.from.row,col:e.from.col},super.addValidRange(e),this.updateRefCell(t)),i}removeValidRange(e){super.removeValidRange(e),this.isActive()&&this.updateRefCell()}calcRangeBound(){this.rangeBound=en(this.relativeCondition.f1,this.relativeCondition.f2)}calcRefCell(){return this.isActive()?uF(this.ranges,this.sheet.countRows(),this.sheet.countCols()):this.refCell}updateRefCell(e){e=e||this.calcRefCell(),(this.refCell.row!==e.row||this.refCell.col!==e.col)&&(this.refCell=e,this.fillFormula(),this.onFormulaChange(),this.calcRangeBound())}getDisplayView(){return{displayF1:this.type===ug.TEXT?`=${this.relativeCondition.text}`:`=${this.relativeCondition.f1}`,displayF2:this.relativeCondition.f2?`=${this.relativeCondition.f2}`:super.getDisplayF2(0,0),displayList:[]}}getDisplayF1(e,t){let i=this.type===ug.TEXT?this.relativeCondition.text:this.relativeCondition.f1;return i?`=${Z(i,e,t)}`:super.getDisplayF1(e,t)}getDisplayF2(e,t){return this.relativeCondition.f2?`=${Z(this.relativeCondition.f2,e,t)}`:super.getDisplayF2(e,t)}onFormulaChange(){this.matrix.clear(),this.setNeedValidAll(),this.sheet.notifyPluginChanges(["validation"])}onDepUpdate(e,t){this.setNeedValid(e,t)}notifyAlterGrid(e,t,i,n,o,r){if(!this.isActive())return;let a={...this.refCell};if(t===this.sheet&&n<0){let t=this.ranges.map(t=>t.clone().diff(e,i,-n)).filter(e=>!!e);if(0===t.length)return;i<=(a=uF(t,this.sheet.countRows(),this.sheet.countCols()))[e]&&(a[e]-=n)}let s={...a};t===this.sheet&&i<=s[e]&&(s[e]+=n);let l={[e]:i},c=this.sheet.getName(),d=this.changeFormulaBy(e=>H.P6.changeFormula(e,{delta:n,start:l},t.getName(),c),a,s);(d.f1||d.f2)&&(0,eI.PY)(r,this.sheet.sheetId,"synoValidation",d)}repairCross(e){this.updateByRelativeFormula(e)}notifyMove(e,t,i,n){if(!this.isActive())return;let o={...this.refCell};t===this.sheet&&this._nextRanges&&(o=uF(this._nextRanges,this.sheet.countRows(),this.sheet.countCols()));let r={...o};t===this.sheet&&r[e]>=i.sec[0].start&&r[e]<=i.sec[1].end&&(r[e]<i.sec[0].start+i.sec[1].amount?r[e]+=i.sec[0].amount:r[e]-=i.sec[1].amount);let a=this.sheet.getName(),s=this.changeFormulaBy(n=>H.P6.moveFormula(e,n,i,t.getName(),a),r,o);(s.f1||s.f2)&&(0,eI.PY)(n,this.sheet.sheetId,"synoValidation",s)}notifyRename(e,t,i){let n=this.refCell,o=this.changeFormulaBy(i=>(0,U.ZW)(i,e,t),n,n);(o.f1||o.f2)&&(0,eI.PY)(i,this.sheet.sheetId,"synoValidation",o)}notifyMoveFormulaRange(e,t,i,n){if(!this.isActive()||t.includes(this.refCell.row,this.refCell.col))return;let o=this.refCell,r=this.changeFormulaBy(n=>H.P6.changeFormulaRange(n,e,t,this.sheet.getName(),void 0,i),o,o);(r.f1||r.f2)&&(0,eI.PY)(n,this.sheet.sheetId,"synoValidation",r)}notifyRemoveFormulaRange(e,t){if(!this.isActive())return;let i=this.refCell,n=this.changeFormulaBy(t=>H.P6.removeFormulaRange(t,e,this.sheet.getName()),i,i);(n.f1||n.f2)&&(0,eI.PY)(t,this.sheet.sheetId,"synoValidation",n)}notifyRecalcUnknown(){this.isActive()&&(this.fillFormula(),this.onFormulaChange(),this.calcRangeBound())}notifyDeleteSheet(){this.isActive()&&(this.registerUnitItem(),this.onFormulaChange())}getSheet(){return this.sheet}changeFormulaBy(e,t,i){let n={validId:this.validId},o={},{f1:r,f2:a,text:s}=this.relativeCondition;function l(n){return G(n=e(n=Z(n,t.row,t.col)),i.row,i.col)}if(r){let e=l(r);e!==r&&(n.f1=r,o.f1=e)}if(a){let e=l(a);e!==a&&(n.f2=a,o.f2=e)}if(s){let e=l(s);e!==s&&(n.text=s,o.text=e)}return this.updateByRelativeFormula(o),n}}let fq=class extends fj{hasDropdown(){return!0}_createMatrix(){return new pq}fillFormula(){let{row:e,col:t}=this.refCell;this.formula=Z(this.relativeCondition.f1,e,t),this.unitItem.unregister();let i=X(this.formula);if(this.sheet.formula.checkCrossRefError(i))this.formula="#REF!";else{let e=this.sheet.formula.mapFormulaRange(i);this.unitItem.register(e)}}getDisplayView(){return{displayF1:this.relativeCondition.f1,displayF2:"",displayList:[]}}getDisplayF1(e,t){return Z(this.relativeCondition.f1,e,t)}};function fK(e){let t=e.indexOf('"');for(;-1!==t&&'"'===e.charAt(t+1);)t=e.indexOf('"',t+2);return -1===t?{content:e.replace(/""/g,'"'),isEnd:!1}:{content:`${e.slice(0,t).replace(/""/g,'"')}${e.slice(t+1)}`,isEnd:!0}}class fX extends uf{constructor(e,t,i){super(e,t,i),this.refData=null,this.refText=null,this.displayList=e.list?function(e){let t=[],i=!1;for(let n of e.split(","))if(i){let{content:e,isEnd:o}=fK(n);t[t.length-1]+=`,${e}`,i=!o}else if('"'===n.charAt(0)){let{content:e,isEnd:o}=fK(n.slice(1));t.push(e),i=!o}else t.push(n);return t}(e.list):e.f1.split(",")}getDisplayList(){return this.displayList}destroy(){this.refData=null,this.refText=null,super.destroy()}isEqual(e){return super.isEqual(e)&&this.list===e.list&&this.f1===e.f1}hasDropdown(){return!0}}class fQ extends fZ{constructor(e,t,i){super(e,t,i),this.formula=sA(this.operator,"A1",(0,tq.Rn)(this.text))}conditionEqual(e){return this.text===e.text}getDisplayF1(){return(0,t_.jr)(this.text)?this.text.substr(1):this.text}getDisplayF2(){return""}cloneConfig(){let e=super.cloneConfig(),t=uF(this.ranges,this.sheet.countRows(),this.sheet.countCols());return e.f1=sA(this.operator,(0,nC.coordToLabel)(t),(0,tq.Rn)(this.text)),e}}class f$ extends fZ{conditionEqual(e){return this.f1===e.f1&&this.f2===e.f2}}function fJ(e,t){return t.length>0||!!e.refCell}function f0(e,t,i){return e.type===ug.LIST?"listRange"===e.operator?fJ(e,t)?new fq(e,t,i):null:new fX(e,t,i):e.type!==ug.TEXT||(0,t_.jr)(e.text)?e.type===ug.TEXT||e.type===ug.CUSTOM||(0,t_.U3)(e.f1)||(0,t_.U3)(e.f2)?fJ(e,t)?new fj(e,t,i):null:new f$(e,t,i):new fQ(e,t,i)}let f1=class extends rM{constructor(e){super(e,"synoValidation"),this.validationMap={},this._additionValidations=[]}enablePlugin(){this.addHook("afterInit",e=>this.afterInit(e)),this.addHook("afterCreateRow",(e,t,i)=>this._afterCreate("row",e,t,i)),this.addHook("afterCreateCol",(e,t,i)=>this._afterCreate("col",e,t,i)),this.addHook("afterRemoveRow",(e,t)=>this._afterRemove("row",e,t)),this.addHook("afterRemoveCol",(e,t)=>this._afterRemove("col",e,t)),this.addHook("beforeMoveRow",(e,t,i)=>this.beforeMove("row",e,t,i)),this.addHook("afterMoveRow",(e,t)=>this.afterMove(t)),this.addHook("beforeMoveCol",(e,t,i)=>this.beforeMove("col",e,t,i)),this.addHook("afterMoveCol",(e,t)=>this.afterMove(t)),this.addHook("repairCross",e=>this.repairCross(e)),super.enablePlugin()}destroy(){for(let e in this.validationMap)this.validationMap[e]&&this.validationMap[e].destroy();super.destroy()}initData(e){let t=e.validation;if(!(0,tl.Kn)(t))return!1;let i=Object.keys(t);for(let e=0;e<i.length;e++){let n=i[e];if(t[n]){let e=t[n],i=[],o=e.ranges;for(let e=0;e<o.length;e++){let t=eR.textToRange(o[e],this.sheet);t&&i.push(t)}let r=this.getValidationFromJson(e,i);if(!r)continue;r.init(),this.validationMap[n]=r}}return i.length>0}updateValidationMap(e,t){t?this.validationMap[e]=t:delete this.validationMap[e],this.sheet.notifyPluginChanges(["validation"])}getValidationFromJson(e,t){return f0(e,t,this.sheet)}afterInit(e){this.initData(e)}_afterCreate(e,t,i,n){for(let o in this.validationMap)this.validationMap[o]&&this.validationMap[o].onCreateRowCol(e,t,i,n)}_afterRemove(e,t,i){for(let n in this.validationMap)this.validationMap[n]&&this.validationMap[n].onRemoveRowCol(e,t,i)}_checkRangeEmpty(e){let t=!0;return(0,tl._l)(this.validationMap,i=>{let n=i.ranges;if(n){for(let i=0;i<n.length;i++)if(n[i].overlaps(e))return t=!1,!1}}),t}_repairFn(e,t,i,n){ea(t,t=>{let o=this.validationMap[t.validId],r=t.ranges;if(!o||!r)return;let a=[];for(let t=0;t<r.length;t++){let o=eR.textToRange(r[t],this.sheet);o&&(o.from[e]=Math.max(o.from[e],i),o.to[e]=Math.min(o.to[e],i+n-1),this._checkRangeEmpty(o)&&a.push(o))}a.length>0&&o.repair(a)})}repairRow(e,t,i){this._repairFn("row",e,t,i)}repairCol(e,t,i){this._repairFn("col",e,t,i)}repairCross(e){let t=e[this.pluginName];if(t)for(let e=0;e<t.length;e++){let i=this.getValidation(t[e].validId);i&&i.repairCross(t[e])}}beforeMove(e,t,i,n){let o=i&&i[this.pluginName]||{},r={};for(let i in this.validationMap)if(this.validationMap[i])if(null===o[i])this.validationMap[i].destroy(),this.updateValidationMap(i,null);else{let n=this.validationMap[i].beforeMove(e,t,o[i],r);n&&this._additionValidations.push(n)}this._additionValidations.sort((e,t)=>e.validId>t.validId?1:e.validId<t.validId?-1:0);for(let e=0;e<this._additionValidations.length;e++){let t=this._additionValidations[e];for(;t.validId in this.validationMap;)t.validId=(0,t_.Ui)(t.validId);this.updateValidationMap(t.validId,t),r[t.validId]=null}n[this.pluginName]=r}afterMove(e){let t=e&&e[this.pluginName];for(let e in this.validationMap)this.validationMap[e]&&this.validationMap[e].afterMove(t&&t[e]);for(let e=0;e<this._additionValidations.length;e++)this._additionValidations[e].init();this._additionValidations=[]}getValidation(e){return this.validationMap[e]}addValidRange(e,t){if(e&&this.validationMap[e]){let i=this.validationMap[e],n=i.addValidRange(t);n&&n.length>0&&(this.createErrorValidation(i,n),n[0].includesRange(t))||this.sheet.runHooks("afterCreateValidation",i.cloneConfig(),t)}}createValidation(e,t){this.removeBeforeCreate(t);let i=this.getValidationFromJson(e,[t]),n=e.validId||this.checkExistValid(i);if(n&&this.validationMap[n])return this.addValidRange(n,t);i.init(),this.updateValidationMap(i.validId,i),this.sheet.runHooks("afterCreateValidation",i.cloneConfig(),t)}checkExistValid(e){for(let t in this.validationMap)if(this.validationMap[t]&&this.validationMap[t].isEqual(e))return t;return null}createErrorValidation(e,t){let i=e.cloneConfig(),n="#REF!";i.f1=n,i.f2&&(i.f2=n),i.validId=null,ea(t,e=>{this.createValidation(i,e)})}removeBeforeCreate(e){}removeValidation(e,t){let i=this.validationMap[e];i&&(i.removeValidRange(t),this.sheet.runHooks("afterRemoveValidation",i.validId,t))}},f2=uf.prototype.destroy;function f3(e,t){return Object.assign(e,t),t}function f4(e){e&&e.validId&&(e.needValid=!0)}f3(uf.prototype,{init(){ea(this.ranges,e=>{this.addToMeta(e)})},destroy(){this.setNeedValidAll(),f2.call(this)},collectRemovedInfo(e,t,i){let n;return n="row"===e?(0,eI.MT)(t,0,t+i-1,this.sheet.countCols()-1):(0,eI.MT)(0,t,this.sheet.countRows()-1,t+i-1),this._collectRemovedInfo(e,t,i,n)},_collectRemovedInfo(e,t,i,n){let o=this._collectOverlap(n).map(e=>eR.toLabel(e));if(o.length>0)return{validId:this.validId,ranges:o}},_collectOverlap(e){let t=[];return ea(this.ranges,i=>{let n=i.getOverlap(e);n&&t.push(n)}),t},setNeedValid(e,t){f4(this.sheet.getCellMeta(e,t))},setNeedValidAll(){this.forAllCell((e,t)=>{this.setNeedValid(e,t)})},addToMeta(e){let t=[["validId",this.validId],["needValid",!0]];e.forAll((e,i)=>{this.sheet.setCellMeta(e,i,t)})},removeMeta(e){e.forAll((e,t)=>{let i=this.sheet.getCellMeta(e,t);i&&i.validId&&this.sheet.setCellMeta(e,t,[["validId",null],["needValid",!1],["synoInvalid",!1]])})},handleMetaAfterMove(e){if(e)for(let e=0;e<this.ranges.length;e++)this.addToMeta(this.ranges[e])},afterSort(e,t){for(let e=0;e<this.ranges.length;e++){let i=this.ranges[e].getOverlap(t);i&&this.addToMeta(i)}},validate(e,t,i){return void 0===i&&(i=this.sheet.formula.getCellValue(e,t)),!!(0,eI.O2)(i)||this._validate(e,t,i)},_validate:(e,t,i)=>!0,preValidate(e,t,i){return(0,eI.O2)(i)||this._validate(e,t,i)}}),f3(fX.prototype,{init:function(){uf.prototype.init.call(this),this.collectRefData()},_validate(e,t,i){return this.refData.has(i)},collectRefData(){this.refData=new Set;let e=[],t=this.displayList,i=this.sheet.getWorkbook().getLocale(),n=i.getSSF(),o=i.getData();for(let r=0,a=t.length;r<a;r++){let a=t[r].trim(),s=i.getInputParser().parse(a),l=s?.v??a,c="";c=s?s.d?n.render(o.short_date,l):s.t&&s.fc&&iG.Z.isDuration(s.fc)?n.render(o.duration,l):s.t&&s.v<1?n.render(o.long_time,l):s.datetime?n.render(o.datetime,l):"boolean"==typeof l?l?"TRUE":"FALSE":s.fc&&"%"===s.fc.charAt(s.fc.length-1)?t[r].trim():i.getLocaleConverter().localize(l).toString():i.getLocaleConverter().localize(l).toString(),(0,eI.O2)(c)||(this.refData.add(l),e.push(c))}this.refText=es(e)},createListRangeItems(){return this.refText.map(e=>({text:e}))}}),f3(f$.prototype,{_getConditionTemplate(){let e=(0,pK.Z)(this.f2)&&this.f1>this.f2;return{isFormula:!1,operator:this.operator||"between",formula1:e?this.f2:this.f1,formula2:e?this.f1:this.f2}},_validate(e,t,i){return(this.type!==ug.DECIMAL||"string"!=typeof i)&&sO(this.sheet,e,t,this._getConditionTemplate(),i)}}),f3(fQ.prototype,{_validate(e,t,i){let n={isFormula:!0,formula1:this.formula,delta:{row:e,col:t}};return sO(this.sheet,e,t,n)},preValidate(e,t,i){if((0,eI.O2)(i))return!0;i='"'+i+'"';let n=sA(this.operator,i,(0,tq.Rn)(this.text));return sO(this.sheet,e,t,{isFormula:!0,formula1:n})},cloneRelative(){let e=Object.getPrototypeOf(fQ).prototype.cloneRelative.call(this);return e.isFormula=!0,e.f1=G(this.formula,0,0),e}}),f3(fj.prototype,{cloneRelative(){let e=Object.getPrototypeOf(fj).prototype.cloneRelative.call(this);return e.isFormula=!0,this.relativeCondition.f1&&(e.f1=this.relativeCondition.f1),this.relativeCondition.f2&&(e.f2=this.relativeCondition.f2),this.relativeCondition.text&&(e.text=this.relativeCondition.text),e},_getConditionTemplate(){return{isFormula:!0,formula1:this.formula}},_validate(e,t,i){if(this.type===ug.DECIMAL&&"string"==typeof i)return!1;let n=this._getConditionTemplate();n.delta={row:e-this.refCell.row,col:t-this.refCell.col},n.item=this.matrix.createItem(this.sheet,e,t,this);let o=sO(this.sheet,e,t,n,i);return n.item.needUpdate=!1,o},preValidate(e,t,i){if((0,eI.O2)(i))return!0;if("string"==typeof i&&this.type===ug.DECIMAL)return!1;let n={...this._getConditionTemplate(),isFormula:!0,delta:{row:e-this.refCell.row,col:t-this.refCell.col},preValidateCell:{sheetId:this.sheet.sheetId,row:e,col:t,value:i}};return sO(this.sheet,e,t,n,i)},afterSort(e,t){Object.getPrototypeOf(fj).prototype.afterSort.call(this,e,t),this.ranges.some(e=>e.overlaps(t))&&this.matrix.sort(t.toArray(),e)}}),f3(fq.prototype,{_validate(e,t,i,n){let o={row:e-this.refCell.row,col:t-this.refCell.col},r=n?null:this.matrix.createItem(this.sheet,e,t,this),a=sD(this.sheet,this.formula,o,r);r&&(r.needUpdate=!1);let s=!1,l=a&&eR.createFromRange(a,this.sheet);if(l){let e=this.sheet.getWorkbook().getSheetById(l.sheetInfo?.sheetId);l.eachCell((t,n)=>{let o=e.formula.getCellValue(t,n);return o instanceof Error&&(o=o.message||""),i!==o||(s=!0,!1)})}return s},preValidate(e,t,i){return!!(0,eI.O2)(i)||this._validate(e,t,i,!0)},createListRangeItems(e,t){let i={row:e-this.refCell.row,col:t-this.refCell.col},n=sD(this.sheet,this.formula,i),o=[],r=n&&eR.createFromRange(n,this.sheet);if(r){let e=this.sheet.getWorkbook().getSheetById(r.sheetInfo?.sheetId),t=new Set;r.eachCell((i,n)=>{let r,a=e.formula.getCellValue(i,n);if(a instanceof Error)r=a.message||"";else{let t=(0,tq.lk)(e,i,n,a);r=(0,ts.is)(t)?t.getText():t}if(!(0,eI.O2)(r)&&!t.has(r)){t.add(r);let s={text:r};a instanceof Error||(s.value=a,s.formatCode=e.getCellStyle(i,n)?.getNumberFormat().fc),o.push(s)}return!0})}return o}});let f5=class extends f1{enablePlugin(){this.addHook("beforeChangeForValid",(e,t)=>this.beforeChangeForValid(e,t)),this.addHook("afterChangeResolve",e=>this.afterChangeResolve(e)),this.addHook("collectRemovedColInfo",(e,t,i)=>this.collectRemovedColInfo(e,t,i)),this.addHook("collectRemovedRowInfo",(e,t,i)=>this.collectRemovedRowInfo(e,t,i)),this.addHook("afterSort",(e,t)=>this.afterSort(e,t)),super.enablePlugin()}beforeChangeForValid(e,t){if(!e||t===tL.Remote)return;let i=!1;for(let t=e.length-1;t>=0;t--){let n=e[t];if(!n)continue;let o=n[0],r=n[1],a=this.sheet.getCellMeta(o,r),s=a?.validId?this.validationMap[a.validId]:null;if(s&&s.isReject()){if(!(0,eI.RE)(n)){!a.needValid&&a.synoInvalid&&(i=!0);continue}let l=n[3];if((0,ts.is)(l)&&(l=l.getText()),(0,t_.jr)(l)&&!n[5]){let{result:e,error:t}=this.sheet.getWorkbook().getFormulaParser().exec(l.substr(1),{sheetId:this.sheet.sheetId});for(l=t||e;Array.isArray(l);)l=l[0]}s.preValidate(o,r,l)?this.sheet.setCellMeta(o,r,[["synoInvalid",!1],["needValid",!1]]):(e[t]=null,i=!0)}}i&&this.sheet.getWorkbook().getNotifier()?.onAlert(aK.INVALID_CHANGE)}afterChangeResolve(e){for(let t=0;t<e.length;t++){let{row:i,col:n}=e[t];f4(this.sheet.getCellMeta(i,n))}}_collectRemovedInfo(e,t,i){let n=[];for(let o in this.validationMap)if(this.validationMap[o]){let r=this.validationMap[o].collectRemovedInfo(e,t,i);r&&n.push(r)}return n}collectRemovedRowInfo(e,t,i){let n=this._collectRemovedInfo("row",t,i);0<n.length&&e.push({pluginName:this.pluginName,rowInfo:n})}collectRemovedColInfo(e,t,i){let n=this._collectRemovedInfo("col",t,i);0<n.length&&e.push({pluginName:this.pluginName,colInfo:n})}collectRangeInfo(e,t){void 0===t&&(t=()=>!1);let i=[],n=[];for(let o=e.from.row;o<=e.to.row;o++){if(t(o))continue;let r=Array(e.getWidth());for(let t=e.from.col;t<=e.to.col;t++){let i=this.sheet.getCellMeta(o,t);i&&i.validId&&(r[t-e.from.col]=i.validId,n.push(i.validId))}i.push(r)}return{validIds:i,validations:n=es(n).map(e=>this.validationMap[e].cloneRelative())}}collectRangeValidation(e,t){let i=[];for(let n=0;n<e.length;n++)for(let o=0;o<t.length;o++){let r=this.sheet.getCellMeta(e[n],t[o]);r&&r.validId&&i.push(r.validId)}return es(i).map(e=>this.validationMap[e].cloneRelative())}removeBeforeCreate(e){e.forAll((t,i)=>{let n=this.sheet.getCellMeta(t,i),o=n?n.validId:null,r=o?this.validationMap[o]:null;r&&r.removeValidRange(e)})}getValidationView(e,t,i){let n=this.getValidation(e);if(n)return Object.assign(n.cloneRelative(),{displayF1:n.getDisplayF1(t,i),displayF2:n.getDisplayF2(t,i),displayList:n.getDisplayList()})}isDropdownValidation(e){let t=this.validationMap[e];return!!t&&t.hasDropdown()}getCellInvalid(e,t){let i=this.sheet.getCellModel(e,t),n=i?.getProperties();return this.afterDataRenderer(e,t,i,n),n?.synoInvalid??!1}afterDataRenderer(e,t,i,n){if(!n||!n.validId)return!1;let o=this.validationMap[n.validId];return!!o&&(n.needValid&&this.sheet.setCellMeta(e,t,[["synoInvalid",!o.validate(e,t)],["needValid",!1]]),!0)}afterSort(e,t){for(let i in this.validationMap)this.validationMap[i]&&this.validationMap[i].afterSort(e,t)}getStateJSON(){return{validations:Object.fromEntries(Object.entries(this.validationMap).map(e=>{let[t,i]=e;return[t,Object.assign(i.cloneRelative(),i.getDisplayView())]}))}}calcRefCell(e){return uF(e,this.sheet.countRows(),this.sheet.countCols())}},f6=class extends rN{constructor(e){super(e,"synoSort")}applyRowOrder(e,t,i){if(this.sheet.getWorkbook().getPivotTableManager().listPivotTableLocations(this.sheet.sheetId).some(e=>{let{location:i}=e;return tW(i,[t])!==eA.DM.none}))return;let n=this.sheet,o=n.getRangeBound(t.from,t.to),[r,a,s,l]=o,c={},d=0===a&&l===n.countCols()-1?this.reorderSheet(e,r,s,c,i):this.reorderRange(e,o,c,i);n.formula.onDataSorted(o,e,d);let u=eA.GJ.fromArray(o);n.getHyperlinkModel().sort(e,u),n.runHooks("afterSort",e,u,c,i)}changeCellModelFormula(e,t){if(!e)return!1;let i=e.getValue();if(!(0,t_.jr)(i,e.getCellStyle()))return!1;let n=H.P6.changeFormulaKeepSheet(i,{row:t});return n!==i&&(e.setValue(n),!0)}applyOrCollectData(e,t,i,n,o,r){if(!e)return;let a=e.getValue();r&&(0,tl.Fs)(r,t)&&(0,tl.Fs)(r[t],i)?e.setValue(r[t][i]):(0,ud.Z)(a)&&this.changeCellModelFormula(e,n-t)&&((0,tl.Fs)(o,n)||(o[n]={}),o[n][i]=a)}reorderRange(e,t,i,n){let o=this.sheet,[r,a,s,l]=t,c=[],d=o.getWorkbook().getStyleManager();for(let t=r;t<=s;t++){let s=t-r;if(s===e[s])continue;let u=[];for(let r=a;r<=l;r++){let l=o.getCellModel(t,r);if(!l)continue;let c=r-a,h=d.createRefCell(l.getValue(),l.getXfId());l.getNote()&&h.setNote(l.getNote()),this.applyOrCollectData(h,s,c,e[s],i,n),u[c]=h}c[e[s]]=u}let u=[],h=o.getDataModel();for(let e=r;e<=s;e++){let t=c[e-r];if(!t)continue;let i=h.getRow(e);if(0!==t.length||i&&0!==i.getColLength()){i||(i=h.createRowModel(e));for(let n=a;n<=l;n++){let o=t[n-a];(o||i.getCell(n))&&(i.addCell(n,o),u.push({row:e,col:n}))}}}return u}reorderSheet(e,t,i,n,o){let r=this.sheet.getDataModel(),a=this.sheet.countCols(),s=[],l=[];for(let c=t;c<=i;c++){let i=c-t,d=e[i]+t;if(c===d){s.push(null);continue}let u=r.getRow(c);for(let t=0;t<a;t++){let a=u?.getCell(t);this.applyOrCollectData(a,i,t,e[i],n,o),(a||r.getCell(d,t))&&l.push({row:d,col:t})}s.push({data:u,info:r.getRowInfo(c)??null})}for(let i=0;i<s.length;i++){let n=e[i]+t,o=s[i];o&&r.updateRow(n,o)}return l}},f8=class extends f6{getRowOrder(e,t,i){e=e.clone();let n=this._calcRowOrder(t,e.from.row,e.to.row,i);for(let e=n.length-1;e>=0&&n[e]===e;e--)n.pop();return 0===n.length||e.getHeight()>n.length&&(e.to.row=e.from.row+n.length-1),{rowOrder:n,range:e}}sort(e,t,i){let{range:n,rowOrder:o}=this.getRowOrder(e,t,i);this.applyRowOrder(o,n)}_calcRowOrder(e,t,i,n){let o=[],r=[];for(let n=t;n<=i;n++){if(this.sheet.isHiddenRow(n)){o.push(n-t);continue}let i=[];for(let t=0;t<e.length;t++){let o=this.sheet.formula.getCellValue(n,e[t]);i.push((0,eI.O2)(o)?null:o)}r.push(i)}let a=H.P6.getSortOrder((e,t)=>r[e][t],r.length,e.length,this.sheet.getWorkbook().getLocale().getCollator(),n);for(let e of o){for(let t=0;t<a.length;t++)a[t]>=e&&(a[t]+=1);a.splice(e,0,e)}return a}};class f7 extends rN{constructor(e){super(e,"synoCellDirection")}enablePlugin(){super.enablePlugin(),this.addHook("afterChangeResolve",e=>this.onAfterChangeResolve(e)),this.addHook("afterAlignmentChange",e=>this.onAfterAlignmentChange(e))}afterDataRenderer(e,t,i,n){if(void 0!==n.dir)return;let o=i.getValue(),r=hJ((0,ts.is)(o)?o.getText():this.sheet.getCellTextDesc(e,t).getText(),i.getCellStyle().getAlignment().readingOrder);this.sheet.setCellMeta(e,t,[["dir",r]])}onAfterChangeResolve(e){for(let{row:t,col:i}of e)this.clearDirection(t,i)}onAfterAlignmentChange(e){for(let[t,i]of e)this.clearDirection(t,i)}clearDirection(e,t){this.sheet.setCellMeta(e,t,[["dir",void 0]])}}class f9 extends c6{static #e=this.pluginName="synoAutofill";constructor(e){super(e),this.mouseDownOnCellCorner=!1,this.isDragged=0}initHook(){let e=this.getHot();e.addHook("onTargetMouseUp",e=>this.onMouseUp()),e.addHook("afterOnCellCornerMouseDown",e=>this.afterOnCellCornerMouseDown(e)),e.addHook("afterOnCellCornerDblClick",e=>this.afterOnCellCornerDblClick()),e.addHook("afterOnCellMouseOver",(e,t)=>this.afterOnCellMouseDrag(e,t))}onMouseUp(){this.isDragged&&(this.isDragged>1&&this.apply(),this.isDragged=0,this.mouseDownOnCellCorner=!1)}isInProgress(){return this.mouseDownOnCellCorner&&this.isDragged>0}afterOnCellCornerMouseDown(e){(0,dl.lz)(e)||this.getSheet().isReadonly()||(this.isDragged=1,this.mouseDownOnCellCorner=!0)}afterOnCellMouseDrag(e,t){this.mouseDownOnCellCorner&&this.isDragged>0&&(this.isDragged+=1,this.showBorder(t))}afterOnCellCornerDblClick(){this.selectAdjacent()}selectAdjacent(){let e=this.getHot(),t=e.getSelectedRange();if(!t)return;let[i,n,o,r]=t.toArray(),a=this.getSheet(),s=a.countRows(),l=(0,eI.O2)(a.getDataAtCell(o+1,n))?function(){let e=0,t=(0,eI.O2)(a.getDataAtCell(i,n-1))?r+1:n-1;for(let i=o+1;i<s&&!(0,eI.O2)(a.getDataAtCell(i,t));i++){for(let t=n;t<=r;t++)if(!(0,eI.O2)(a.getDataAtCell(i,t)))return e;e+=1}return e}():function(){let e=0;for(let t=o+1;t<s&&!(0,eI.O2)(a.getDataAtCell(t,n));t++)e+=1;return e}();l&&(e.selections.fill.cellRange=(0,eI.MT)(i,n,o+l,r),this.apply())}apply(){let e,t,i,n=this.getHot();if(this.isDragged=0,!n.selections.fill.cellRange)return;let o=n.selections.fill.cellRange.clone().normalize();n.selections.fill.clear();let r=n.getSelectedRange();if(!r)return;let a=r.clone().normalize();o.from.row===a.from.row&&o.from.col<a.from.col?(i="left",e={row:o.from.row,col:o.from.col},t={row:o.to.row,col:a.from.col-1}):o.from.row===a.from.row&&o.to.col>a.to.col?(i="right",e={row:o.from.row,col:a.to.col+1},t={row:o.to.row,col:o.to.col}):o.from.row<a.from.row&&o.from.col===a.from.col?(i="up",e={row:o.from.row,col:o.from.col},t={row:a.from.row-1,col:o.to.col}):o.to.row>a.to.row&&o.from.col===a.from.col&&(i="down",e={row:a.to.row+1,col:o.from.col},t={row:o.to.row,col:o.to.col}),e&&t&&n.getAction().autofill(this.getSheet().sheetId,e,t,a,i).then(e=>{e?n.selectRanges([o.toArray()]):n.selectRanges([a.toArray()]),n.focusInputField()})}showBorder(e){let t=this.getHot(),i=t.getSelectedRange();if(!i)return;let n=i.clone().normalize(),o=Math.max(e.row,0),r=Math.max(e.col,0);o<n.from.row?n.from.row=o:o>n.to.row?n.to.row=o:r<n.from.col?n.from.col=r:r>n.to.col&&(n.to.col=r),t.selections.fill.setRange(n),t.selectionView.updateSelection(t.selections.fill)}}let ge="syno-o-sh-comment-highlight";class gt extends c6{static #e=this.pluginName="synoComment";constructor(e){super(e),this._highlight=null;let t=this.getView();this.commentDivs=[u9(t.scrollableTopLeft,ge),u9(t.scrollableTopRight,ge),u9(t.scrollableBottomLeft,ge),u9(t.scrollableBottomRight,ge)]}initHook(){this.getHot().addHook("afterRender",()=>this.afterRender())}afterRender(){this.updateCommentDiv()}getHighlightRange(e){let{row:t,col:i}=e,n=this.getSheet().getMergePlugin().getMergedRange(t,i);return n?n.clone():(0,eI.MT)(t,i,t,i)}updateHighlight(e){this.getSheet().isReadonly()||(this._highlight=e,this.updateCommentDiv())}updateCommentDiv(){this._highlight&&this._highlight.sheetId===this.getSheet().sheetId?this.showCommentDiv(this._highlight):this.hideCommentDiv()}showCommentDiv(e){let t=this.getView(),i=this.getHighlightRange(e),{x:n,y:o,height:r,width:a}=t.getRangeViewOffset(i.from.row,i.from.col,i.to.row,i.to.col);for(let e=0;e<4;e++)t.setViewPosition(this.commentDivs[e],o,n),this.commentDivs[e].style.width=a+"px",this.commentDivs[e].style.height=r+"px",this.commentDivs[e].style.display="block"}hideCommentDiv(){for(let e=0;e<4;e++)this.commentDivs[e].style.display="none"}}var gi=i(5185);function gn(e){if(!e)return{dom:null,text:null,file:null,mark:null};var t=function(e){let t=null,i=null,n=null,o=[];try{t=e.getData("text/html")}catch{}try{i=e.getData("application/x-vnd.synology.office.spreadsheet")}catch{}try{n=e.getData("text/plain")}catch{}if(e.items){for(let t of e.items)if("file"===t.kind&&0===t.type.indexOf("image/")){let e=t.getAsFile();e&&o.push(e)}}else if(e.files)for(let t of e.files)t.type.startsWith("image/")&&o.push(t);return{html:t,mark:i,text:n,images:o}}(e);let i=null,n=null;if(t.mark)try{n=JSON.parse(t.mark)}catch{}if(t.html){let e=t.html;n||(e=e.replace(/<table\b[^>]*>[\s\S]*?<\/table>|(?:<(tbody|thead|tfoot|tr|td|th)\b[^>]*>[\s\S]*?<\/\1>\s*)+/gi,e=>e.startsWith("<table")?e:`<table>${e}</table>`)),e=e.replace(/(<colgroup [^>]*>|<col [^>]*>)[^<]+/gi,"$1"),(i=document.createElement("div")).innerHTML=e}return{dom:i,mark:n,text:t.text,file:t.images.length>0?t.images[0]:null}}function go(e){return!e.isTable}function gr(e){return e.isTable}let ga=null,gs=["ADDRESS","ARTICLE","ASIDE","BLOCKQUOTE","DETAILS","DIALOG","DD","DIV","DL","DT","FIELDSET","FIGCAPTION","FIGURE","FOOTER","FORM","H1","H2","H3","H4","H5","H6","HEADER","HGROUP","HR","LI","MAIN","NAV","OL","P","PRE","SECTION","TABLE","UL"];class gl extends E.EventEmitter{constructor(e,t){super(),this.onCopyRef=this.onCopy.bind(this),this.onCutRef=this.onCut.bind(this),this.onPasteRef=this.onPaste.bind(this),this.el=this.createDom(e),this.uiBridge=t,this.resetInnerHTML(),this.registerEventListener(),this.data={}}createDom(e){let t=document.createElement("div");t.setAttribute("contentEditable","true"),t.inputMode="none",o(t,["syno-sh-copy-paste","selectabletext"]);let i=t.style;i.position="fixed",i.top="-10000px",i.left="-10000px",e.appendChild(t);try{document.execCommand("AutoUrlDetect",!1,"false")}catch{}return t}getEl(){return this.el}resetInnerHTML(){this.el.innerHTML="."}setData(e,t){this.data[e]=t}clearData(){this.data={}}registerEventListener(){this.el.addEventListener("cut",this.onCutRef),this.el.addEventListener("copy",this.onCopyRef),this.el.addEventListener("paste",this.onPasteRef)}destroy(){this.el.removeEventListener("cut",this.onCutRef),this.el.removeEventListener("copy",this.onCopyRef),this.el.removeEventListener("paste",this.onPasteRef)}onCopy(e){this.setClipboardData(e),this.emit("copy")}onCut(e){this.setClipboardData(e),this.emit("cut")}onPaste(e){let t=gc(gn(e.clipboardData));(0,c9.isSafari)()?setTimeout(()=>{t.imageDom=this.el.cloneNode(!0),this._handleData(t),this.resetInnerHTML()},0):(this._handleData(t),e.preventDefault())}onDrop(e){let t=gc(gn(e.dataTransfer));t.htmlDom=null,t.text=null,this._handleData(t,"all")}handleDataTransfer(e,t){this._handleData(gc(gn(e)),t)}_handleData(e,t){let i,{imageDom:n,htmlDom:o,text:r,file:a,mark:s}=e,l={};if(n&&(i=function(e){if(0===e.childNodes.length)return null;let t=e.querySelector("img");if(t&&""===(e.textContent||"").trim()){let e=parseInt(t.style.width,10)||void 0,i=parseInt(t.style.height,10)||void 0,n=parseInt(t.getAttribute("data-syno-pos-type")||""),o=n in rL?n:void 0;return{src:t.getAttribute("src"),width:e,height:i,type:o,chart:JSON.parse(t.getAttribute("data-syno-chart-info")||"null")}}return null}(n))?l.src=i:o&&(i=function(e,t,i){let n,o=e.innerHTML;do o=(n=o).replace(/<!--\s*\[if[^\]]*\]\s*-->(?:.(?!=<!--\s*\[))*<!--\s*\[endif\]\s*-->/,"");while(o!==n);if(e.innerHTML=o,0===e.childNodes.length)return null;let r=Array.prototype.filter.call(e.childNodes,e=>3===e.nodeType);if(e.childNodes.length!==r.length)for(let e of r)e.remove();let a={data:[],format:[],hyperlinks:[],notes:[],width:0,height:0};for(let n of function(e){let t,i=[],n=!1;for(let o of e)(!t||n||o.breakStart)&&i.push(t=[]),t.push(o),n=o.breakEnd;return i}(function e(t,i,n,o){var r;if(o=o||{},t instanceof Text)return[{data:{value:t.nodeValue,type:io.Normal},format:o,notes:"",breakStart:!1,breakEnd:!1}];if(!(t instanceof HTMLElement))return[];if(t instanceof HTMLTableElement){let{data:e,colCount:o}=new t6(t,i).run();return[{data:e,colCount:o,format:new it(t,n),hyperlinks:new t7(t).run(),notes:new t8(t).run(),breakStart:!0,breakEnd:!0,isTable:!0}]}if("B"===t.tagName&&t.id.includes("docs-internal-guid")&&t.firstChild instanceof Text&&t.firstChild.nodeValue?.match(/^\s*$/)&&t.firstElementChild?.tagName==="TABLE"&&t.firstChild.remove(),"GOOGLE-SHEETS-HTML-ORIGIN"===t.tagName&&t.parentElement&&t.querySelectorAll("style").forEach(e=>{e.remove()}),"mso-element:comment-list"===t.getAttribute("style")||void 0!==t.dataset.sessionid&&void 0!==t.dataset.shapeids)return[];if(t instanceof HTMLStyleElement){let e=(ga||((ga=document.createElement("iframe")).id="pasted",ga.style.position="absolute",ga.style.left="-9999px",document.head.append(ga)),ga).contentDocument;e.head.innerHTML=t.outerHTML;let i=e.styleSheets[0];try{for(let e of i.cssRules)!function(e,t){var i;if(!(!t||(i=e,"CSSStyleRule"!==i.constructor.name)||e.selectorText.startsWith("@"))&&"br"!==e.selectorText)for(let i of("td"===e.selectorText&&(e.style.border="none"),t.querySelectorAll(e.selectorText)))i instanceof HTMLElement&&(void 0===i.dataset.elemStyles&&(i.dataset.elemStyles=i.style.cssText,i.dataset.classStyles="",i.dataset.tagStyles=""),"."===e.selectorText[0]?i.dataset.classStyles+=e.style.cssText:i.dataset.tagStyles+=e.style.cssText,i.style.cssText=`${i.dataset.tagStyles}${i.dataset.classStyles}${i.dataset.elemStyles}`)}(e,t.parentElement)}catch(e){console.warn(e)}return e.documentElement.innerHTML="",[]}if(["STYLE","SCRIPT","LINK","META","TEMPLATE","BASE","NOSCRIPT","TITLE"].includes(t.tagName))return[];let a=[],s=t1(t,n);s.font=Object.assign(t2(t)||{},s.font||{});let l=id(o,s);for(let o=0;o<t.childNodes.length;o++){let r=e(t.childNodes[o],i,n,l);a.push(...r)}let c=" \r\n	\f";for(;a.length>0;){let e=a[0];if(gr(e)||(e.data.value=e.data.value.replace(RegExp(`^[${c}]+`),"")))break;a.shift()}for(;a.length>0;){let e=a[a.length-1];if(gr(e)||(e.data.value=e.data.value.replace(RegExp(`[${c}]+$`),"")))break;a.pop()}if(t instanceof HTMLAnchorElement&&(0,tq.PX)(t.href)){let e=a.find(go);e?e.href=t.href:a.push({data:{value:t.href,type:io.Normal},format:l,notes:"",breakStart:!1,breakEnd:!1,href:t.href})}return a.length>0&&(r=t,gs.includes(r.tagName))&&(a[0].breakStart=!0,a[a.length-1].breakEnd=!0),a}(e,t,i))){if(0===n.length)continue;let e=0===n.length||gr(n[0])?n[0]:function(e){var t,i;let n={value:(t=e).map(e=>e.data.value).join(""),type:t[0]?.data.type||io.Normal},o=new ii(e[0].format);return{data:[[n]],format:o,hyperlinks:[[(i=e,(i.find(e=>(0,tq.PX)(e.href))?.href??null)||null)]],notes:[[e.map(e=>e.notes).filter(e=>e.length>0).join("\n")||null]],breakStart:!0,breakEnd:!0,isTable:!0,colCount:1}}(n);a.data.push(...e.data),a.format.push(e.format),a.notes.push(...e.notes),a.hyperlinks.push(...e.hyperlinks),a.width=Math.max(a.width,e.colCount)}return(a.height=a.data.length,0===a.data.length)?null:a}(o,s?"value"===t?"syno-value":"syno-formula":"text",e=>this.uiBridge.validateFontFamily(e)))&&(l.dom=i),!a||o&&(0,gi.shouldSkipTransferredFile)(o.innerHTML)||(l.file={file:a}),r){let e=e=>({value:e,type:io.Normal}),t=(function(e){let t=0,i=!1,n=[],o=e.split(/\r?\n/);for(let e of(o.length>1&&""===o[o.length-1]&&o.pop(),o)){let o=e.split("	");for(let e=0;e<o.length;e++){let r=o[e];if(n[t]||(n[t]=[]),i){let o=n[t].length-1,{content:a,isEnd:s}=fK(r);n[t][o]+=(0===e?"\n":"")+a,i=!s}else if('"'===r.charAt(0)){let{content:e,isEnd:o}=fK(r.slice(1));n[t].push(e),i=!o}else n[t].push(r)}i||(t+=1)}return n})(r).map(t=>t.map(e));l.text={data:t,width:t.reduce((e,t)=>Math.max(t.length,e),0),height:t.length}}s&&(l.mark=s),this.emit("paste",l,t)}select(){let e=this.el;e.focus();let t=document.createRange();t.selectNodeContents(e);let i=window.getSelection();i&&(i.removeAllRanges(),i.addRange(t))}setClipboardData(e){if(e.clipboardData){let t=e.clipboardData;if(this.data.html)try{t.setData("text/html",this.data.html)}catch{}if(this.data.vnd)try{t.setData("application/x-vnd.synology.office.spreadsheet",this.data.vnd)}catch{}t.setData("Text",this.data.text),e.preventDefault()}e.stopPropagation(),this.clearData()}}function gc(e){let{dom:t,file:i,text:n,mark:o}=e;return{imageDom:t,htmlDom:t,text:n,file:i,mark:o}}class gd{constructor(e){this.hot=e,this.sheetId=null,this.range=null,this.isCut=!1,this.interactiveMode=!1,this.pasted=!1}getHot(){return this.hot}getSheetId(){return this.sheetId}getRange(){return this.range}isCutMode(){return this.isCut}getInteractiveMode(){return this.interactiveMode}isPasted(){return this.pasted}set(e,t){this.sheetId=e,this.range=t}setCutMode(e){this.isCut=e}setInteractiveMode(e){this.interactiveMode=e}setPasted(e){this.pasted=e}clear(){this.sheetId=null,this.range=null,this.isCut=!1,this.interactiveMode=!1,this.pasted=!1}isEmpty(){return!this.sheetId||!this.getRange()}}var gu=i(65969),gh=i.n(gu);class gp{constructor(e,t=window.devicePixelRatio){this.echartInstance=gh().init(e,void 0,{devicePixelRatio:t})}destroy(){this.echartInstance.dispose()}getCanvas(){return this.echartInstance.getDom().querySelector("canvas")}getDataURL(e){return this.echartInstance.getDataURL(e)}resize(e){this.echartInstance.resize(e)}draw(e){this.echartInstance.setOption(e.getEchartParameters(this.echartInstance.getWidth(),this.echartInstance.getHeight()),!0)}}class gf{constructor(e,t,i,n){this.sheet=e,this.table=[],this.cssCollection=[],this.baseAppUrl=n,this.newlineFormat=i,this.rowIndexes=Array.from({length:t.to.row-t.from.row+1},(e,i)=>i+t.from.row).filter(t=>!e.isHiddenRow(t)),this.colIndexes=Array.from({length:t.to.col-t.from.col+1},(e,i)=>i+t.from.col).filter(t=>!e.isHiddenCol(t))}getCell(e,t){let i=this.table[e][t];if(!i){let i=this.sheet.getMergePlugin().beforeGetCell({row:this.rowIndexes[e],col:this.colIndexes[t]});if(i){let e=ep(this.rowIndexes,i.row),t=ep(this.colIndexes,i.col);if(e>-1&&t>-1)return this.table[e][t]}}return i}output(){this._setup();let e={html:this._html(),text:this._text()};return this._clean(),e}_text(){let e="",t=this.table.length;for(let i=0;i<t;i++){let n="";for(let t=0;t<this.table[i].length;t++){t>0&&(e+="	");let o=this.table[i][t],r=o?o.textDesc:null;-1===(n=r?r.v:"").indexOf("\n")?e+=n:e+=`"${n.replace(/"/g,'""')}"`}i===t-1&&(n.length>0||e.length>0)||(e+=this.newlineFormat)}return e}_html(){return`<style type="text/css"><!--td {border: 1px solid #ccc;}br {mso-data-placement:same-cell;}--></style><table border="1" ${this._style()}>${this._colgroup()}${this._tbody()}</table>`}_style(){let e=gb({"border-collapse":"collapse",border:"none","table-layout":"fixed",color:"#000000","font-size":"10pt"});return`style="${e}"`}_colgroup(){let e="<colgroup>";for(let t=0;t<this.colIndexes.length;t++)e+=`<col style="width: ${this.sheet.getColWidth(this.colIndexes[t])}px">`;return e+"</colgroup>"}_tbody(){this._buildCssCollection();for(let e=0;e<this.rowIndexes.length;e++){let t=this.rowIndexes[e];for(let i=0;i<this.colIndexes.length;i++){let n=this.colIndexes[i],o=this.table[e][i];o&&this._renderBorder(t,n,e,i,o)}}let e="<tbody>";for(let t=0;t<this.rowIndexes.length;t++)e+=this._tr(this.rowIndexes[t],this.table[t]);return e+"</tbody>"}_setup(){let e=this.sheet.getMergePlugin(),t=new Map,i=new Set;for(let n=0;n<this.rowIndexes.length;n++){let o=this.rowIndexes[n];this.table[n]=Array(this.colIndexes.length);for(let r=0;r<this.colIndexes.length;r++){let a=this.colIndexes[r],s=e.getMergedRange(o,a),l=s?`${s.from.row},${s.from.col}`:null;if(l){let e=t.get(l);if(e){e.row===o&&e.vCell.increaseColSpan(),e.col===a&&e.vCell.increaseRowSpan();continue}}let c=s?s.from.row:o,d=s?s.from.col:a,u=this.sheet.getSpillRange(c,d);u&&c===u.from.row&&d===u.from.col&&i.add(`${c},${d}`);let h=this.sheet.getDataAtCell(c,d);if((0,eI.O2)(h)&&u&&!i.has(`${u.from.row},${u.from.col}`)){let e=this.sheet.getCellFormulaValue(c,d);h=H.dt.error.isError(e)?e.message:e}let p=this.sheet.getComputedCellStyle(c,d),f=this.sheet.getCellTextDesc(c,d),g=this.sheet.getCellProperty(c,d,"pivot"),m=new gm({cfStyle:this.sheet.getCfPlugin().getComputedCfStyle(c,d),note:this.sheet.getCellNote(c,d),href:f?.l===!0?this.sheet.getCellHyperlinkState(c,d)?.href??f.e:null,pivotStyle:g?.style},h,p,f,1,1,this.baseAppUrl);s&&t.set(l,{row:o,col:a,vCell:m}),this.table[n][r]=m}}}_clean(){this.cssCollection.length=0,this.table.length=0}_buildCssCollection(){this.cssCollection.push({});let e=this.sheet.getWorkbook().getStyleManager();for(let t=1;t<e.styles.length;t++){let i=e.styles[t],n=i.getFont(),o=i.getAlignment(),r=i.getFill(),a={};n.isDefault()||(n.name&&(a["font-family"]=`"${n.name}"`),n.size&&(a["font-size"]=`${n.size}pt`),gv(a,n)),o.isDefault()||(o.halign&&(a["text-align"]=o.halign),o.valign&&o.valign!==hT.V_ALIGN&&(a["vertical-align"]=o.valign),"wrap"===o.wrap?(a["word-wrap"]="break-word",a["white-space"]="pre-wrap"):"clip"===o.wrap&&(a["word-wrap"]="normal",a["white-space"]="clip")),!r.isDefault()&&r.bg&&(a["background-color"]=`#${r.bg}`),this.cssCollection.push(a)}}_tr(e,t){let i=[`style="height: ${this.sheet.getRowHeight(e)}px"`],n=`<tr ${i.join(" ")}>`;for(let i=0;i<t.length;i++){let o=t[i];o&&(n+=o.toHTML(this,e,this.colIndexes[i]))}return n+"</tr>"}_renderBorder(e,t,i,n,o){let r=o.rowSpan,a=o.colSpan,s=(0,tx.WE)(o.model.pivotStyle?.border?.b??null,o.style?.getBorder().b??null);if((r>1||a>1)&&(s=this._resolveMergedBorder(e,t,r,a,s)),!Array.isArray(s))return;let l="1px solid ",c=o.css;if(s[1]&&(c["border-right"]=l+s[1]),s[2]&&(c["border-bottom"]=l+s[2]),s[3])if(0===n)c["border-left"]=l+s[3];else for(let e=0;e<r;e++){let t=this.getCell(i+e,n-1);t&&!t.css["border-right"]&&(t.css["border-right"]=l+s[3])}if(s[0])if(0===i)c["border-top"]=l+s[0];else for(let e=0;e<a;e++){let t=this.getCell(i-1,n+e);t&&(t.css["border-bottom"]=l+s[0])}}_resolveMergedBorder(e,t,i,n,o){let r=null,a=null,s;if(n>1){let i=this.sheet.getComputedCellStyle(e,t+n-1).getBorder();!i.isDefault()&&i.b&&(r=i.b[1])}return i>1&&!(s=this.sheet.getComputedCellStyle(e+i-1,t).getBorder()).isDefault()&&s.b&&(a=s.b[2]),(r||a)&&(o=o?[o[0],o[1],o[2],o[3]]:[null,null,null,null],r&&(o[1]=r),a&&(o[2]=a)),o}}let gg={padding:"2px 4px","vertical-align":hT.V_ALIGN};class gm{constructor(e,t,i,n,o,r,a){this.model=e,this.value=t,this.style=i,this.textDesc=n,this.rowSpan=o,this.colSpan=r,this.baseAppUrl=a,this.css=Object.create(gg)}increaseRowSpan(){this.rowSpan++}increaseColSpan(){this.colSpan++}_mergeStyle(e){let t=this.css;if(this.model.pivotStyle){let e=this.model.pivotStyle;e.font&&gv(t,e.font),e.fill?.bg&&(t["background-color"]=`#${e.fill.bg}`)}(0,tl.l7)(t,e.cssCollection[this.style.getIndex()]);let i=this.model.cfStyle;i&&(gv(t,i),i.bgColor&&(t["background-color"]=`#${i.bgColor}`));let n=this.textDesc?.c;return n&&(t.color=n),!this.textDesc||this.textDesc.t!==iy.NUM||"text-align"in t||(t["text-align"]="right"),t}_style(e){let t=gb(this._mergeStyle(e));return t?` style="${(0,i4.htmlEscape)(t)}"`:""}_attr(e,t,i){let n=this._style(e);this.rowSpan>1&&(n+=` rowspan="${this.rowSpan}"`),this.colSpan>1&&(n+=` colspan="${this.colSpan}"`);let o=this.value;!(0,eI.O2)(o)&&((0,t_.jr)(o,this.style)?n+=` data-sheets-formula="${(0,i4.htmlEscape)(G(o,t,i))}"`:n+=` data-syno-value="${(0,i4.htmlEscape)(JSON.stringify(o))}"`,this.textDesc&&(n+=` data-syno-repr="${(0,i4.htmlEscape)(this.textDesc.v)}"`));let r=this.style.getNumberFormat();r.fc&&!r.isDefault()&&(n+=` data-syno-numberformat="${(0,i4.htmlEscape)(r.fc)}"`),this.style.getQuotePrefix()&&(n+=' data-syno-quote="true"');let a=this.model.note;return a&&(n+=` data-sheets-note="${(0,i4.htmlEscape)(a)}"`),n}toHTML(e,t,i){let n=this.textDesc,o="";return n&&(o=n.t===iy.RICH_TEXT?this._getRichTextHTML():g_(n.v),n.l&&(o=this._addLinkHTML(o))),`<td${this._attr(e,t,i)}>${o}</td>`}_addLinkHTML(e){let t="#dlink=",i=this.model.href;if(i?.startsWith(t))i=`${this.baseAppUrl}${i.slice(t.length)}`;else if(i?.startsWith("#")){let e=new URL(location.href);e.hash=i,i=e.href}return`<a href="${i}">${e}</a>`}_getRichTextHTML(){return this.value.v.reduce((e,t)=>{let i=t.s,n=this.model.cfStyle,o="";if(i||n){let e={};i&&gv(e,i),n&&gv(e,n),o=` style="${gb(e)}"`}return e+`<span${o}>${g_(t.tx)}</span>`},"")}}function gv(e,t){t.color&&(e.color=`#${t.color}`),t.bold&&(e["font-weight"]="bold"),t.italic&&(e["font-style"]="italic"),t.strike&&(e["text-decoration"]="line-through"),t.underline&&(e["text-decoration"]?e["text-decoration"]+=" underline":e["text-decoration"]="underline")}function gb(e){let t="";for(let i in e)t+=`${i}:${e[i]};`;return t}class gy{constructor(e,t){this.drawingView=e,this.drawing=t}output(){let e=document.createElement("img");e.setAttribute("src",this.drawingView.getExternalURLSync());let t=this.drawing.position,i=this.drawingView.getAbsolutePosition(t);return i&&(e.style.width=i.width+"px",e.style.height=i.height+"px",e.setAttribute("data-syno-pos-type",`${t.type??rL.Absolute}`)),e.outerHTML}}class gw{constructor(e,t,i,n){this.chartView=e,this.chart=t,this.sheetId=i,this.objectId=n}output(){let e=this.chartView.getAbsolutePosition(this.chart.position),t=e.width+2,i=e.height+2,n=document.createElement("div");n.style.width=`${t}px`,n.style.height=`${i}px`,document.body.appendChild(n);let o=new gp(n);o.draw(this.chart.chartInfo);let r=o.getCanvas(),a=r.getContext("2d");a.strokeStyle="#929496",a.strokeRect(0,0,r.width,r.height),a.imageSmoothingEnabled=!1;let s=document.createElement("img");return s.setAttribute("src",r.toDataURL("image/png")),s.style.width=e.width+2+"px",s.style.height=e.height+2+"px",o.destroy(),document.body.removeChild(n),s.setAttribute("data-syno-pos-type",`${this.chart.position.type??rL.Absolute}`),s.setAttribute("data-syno-chart-info",JSON.stringify({objectId:this.objectId,sheetId:this.sheetId,chartId:this.chart.id,chartObj:this.chart.chartInfo.getChartCfg()})),s.outerHTML}}function g_(e){return(0,i4.htmlEscape)(e).replaceAll("\n","<br>")}class gx extends c6{static #e=this.pluginName="synoCopyPaste";constructor(e){super(e),this.pasteValueOnly=!1,this.proxy=new gl(this.getHot().rootElement,this.getHot().getUIBridge()),this.copiedInfo=new gd(this.getHot())}getProxy(){return this.proxy}initHook(){let e=this.getHot();e.addHook("afterCreateRow",(e,t,i)=>this.afterCreateRowCol(e,"row",t,i)),e.addHook("afterCreateCol",(e,t,i)=>this.afterCreateRowCol(e,"col",t,i)),e.addHook("afterRemoveRow",(e,t,i)=>this.afterRemoveRowCol(e,"row",t,i)),e.addHook("afterRemoveCol",(e,t,i)=>this.afterRemoveRowCol(e,"col",t,i)),e.addHook("beforeKeyDown",e=>this.onBeforeKeyDown(e)),e.addHook("afterShowSheet",()=>this.afterShowSheet()),e.addHook("onMoveSelection",async(t,i)=>{let n=this.getSheet(),o=n.sheetId,r=n.getMergePlugin().getMergedRange(i.from.row,i.from.col);r&&r.includesRange(i)&&(t.isSingle()||n.getMergePlugin().getMergedRange(t.from.row,t.to.row)?.isEqual(t))&&(i=r),await this.getAction().moveRange(o,t,o,i,!0)&&(e.selectRanges([i.toArray()]),e.fastRender())}),e.addHook("onRootDragOver",e=>this.onRootDragOver(e)),e.addHook("onRootDrop",e=>this.onRootDrop(e)),this.registerEventListener()}registerEventListener(){this.proxy.on("copy",this.onCopy,this).on("cut",this.onCut,this).on("paste",this.onPaste,this)}destroy(){this.proxy.off("copy",this.onCopy,this).off("cut",this.onCut,this).off("paste",this.onPaste,this),this.proxy.destroy(),super.destroy()}afterCreateRowCol(e,t,i,n){let o=this._getCopiedInfo();if(o.isEmpty()||o.getSheetId()!==e)return;let r=o.getRange();i<=r.from[t]?(r.from[t]+=n,r.to[t]+=n):i<=r.to[t]&&this.reset(!1)}afterRemoveRowCol(e,t,i,n){let o=this._getCopiedInfo();if(o.isEmpty()||o.getSheetId()!==e)return;let r=o.getRange();i>r.to[t]||(i+n-1<r.from[t]?(r.from[t]-=n,r.to[t]-=n):this.reset(!1))}onBeforeKeyDown(e){if(!this.isTargetReady()||this.isEditorEnabled()||u8(e))return;let t=!(0,c9.isMac)(),i=e.metaKey||e.ctrlKey&&t,n=e.shiftKey,o=e.keyCode,r=i&&(o===u5.C||t&&o===u5.INSERT),a=i&&o===u5.X||t&&n&&o===u5.DELETE,s=i&&o===u5.V||t&&n&&o===u5.INSERT;if(r||a){if(!this.getHot().getUIBridge().isCopyable())return void e.preventDefault();this.setCopyableContent(),u6(e)}else if(s){if(this.pasteValueOnly=n&&o===u5.V,!this.canTriggerPaste(e))return;this.proxy.select(),u6(e)}else o!==u5.ESCAPE||this._getCopiedInfo().isEmpty()||(this.reset(),e.preventDefault(),e.stopPropagation(),u6(e))}canTriggerPaste(e){return!(e.altKey&&!((0,c9.isMac)()&&this.pasteValueOnly)||(0,c9.isSafari)()&&this.pasteValueOnly&&!e.altKey)}isTargetReady(){let e=this.getHot();return!!(e?.getSelectedRange()||this.getCopyableDrawingView())}getCopyableDrawingView(){let e=this.getHot().getPlugin("synoDrawingController"),t=e.getActiveImage();if(t&&t.isCopyable())return this.getSheet().getDrawingPlugin().getImageJSONById(t.id)?t:null;let i=e.getActiveChart();return i&&i.isCopyable()&&this.getSheet().getDrawingPlugin().getChartJSONById(i.id)?i:null}setCopyableContent(){let e=this.getCopyableRange(),t=this.getCopyableDrawingView(),i=this.getSheet();this.clearLastCopied(),e&&this._getCopiedInfo().set(i.sheetId,e);let n=this.proxy,o={id:this.getHot().getUIBridge().getObjectId(),tid:i.id};if(t){let e=i.getDrawingPlugin(),r=e.getChartJSONById(t.id)||e.getImageJSONById(t.id);if(r){let e=t.getSerializer(r);n.setData("html",e.output()),n.setData("text",(0,c9.isAndroid)()?" ":""),n.setData("vnd",JSON.stringify(o))}}else if(e){let t=new gf(i,e,(0,c9.isWindows)()?"\r\n":"\n",this.getHot().getUIBridge().getBaseAppURL()).output();n.setData("html",t.html),n.setData("text",t.text),n.setData("vnd",JSON.stringify({range:e?.toArray(),...o}))}n.select()}clearLastCopied(){let e=this._getCopiedInfo(),t=e.getSheetId();this.getSheet().sheetId!==t&&gx._clearLastCopiedSelection(e),e.clear()}onCopy(){if(this.getWorkbook().isHistoryMode())return;let e=this.getHot(),t=this._getCopiedInfo();t.setCutMode(!1),gx.setCopiedSelection(e,t.getRange(),!0),e.focusInputField(0)}onCut(){if(this.getWorkbook().isHistoryMode())return;let e=this.getHot();if(this.getWorkbook().isReadonly())return this.onCopy();let t=this._getCopiedInfo();t.setCutMode(!0);let i=t.getRange(),n=this.getCopyableDrawingView();gx.setCopiedSelection(e,i,!0),!i&&n&&this.getHot().getPlugin("synoDrawingController").removeActiveDrawing(),e.focusInputField(0)}async onPaste(e,t){let i;if(this.getWorkbook().isHistoryMode())return;let n=this.getHot();if(this.getWorkbook().isReadonly())return;t||(t=this.pasteValueOnly?"value":"all");let o=this._selectContent(e,t);o&&(o?.chart?o.chart?.objectId===this.getHot().getUIBridge().getObjectId()?i=this.triggerPasteChart(o):this.triggerPasteImage(o):o?.src||o?.file?this.triggerPasteImage(o):i=this.triggerPaste(o,t,e.mark));this.pasteValueOnly=!1,Promise.resolve(i).finally(()=>n.focusInputField(0))}onRootDragOver(e){!this.getWorkbook().isHistoryMode()&&(e.preventDefault(),e.stopPropagation(),e.dataTransfer&&(e.dataTransfer.dropEffect="copy"))}onRootDrop(e){this.getWorkbook().isHistoryMode()||(e.preventDefault(),e.stopPropagation(),this.proxy.onDrop(e))}_selectContent(e,t){switch(t){case"all":case"transpose":return e.file||e.src||e.dom||e.text;case"value":return(e.mark?e.dom:null)||e.text;case"format":return e.dom}}_getPastedArea(e,t,i){let n=this.getHot().getSelectedRange(),o=n.getTopLeftCorner(),r=n.getBottomRightCorner(),a=this.getSheet();if(iu(i)&&!n.isSingle()&&!(a.getMergePlugin().isMultipleCells(n)??!0))return{start:o,end:r};let s="format"===e?i.font:t,l=s.length,c=s.reduce((e,t)=>Math.max(t.length,e),0),d=0,u=r.col-o.col+1;for(let e=o.row;e<=r.row;e++)!a.isFilteredRow(e)&&d++;if(l>0&&c>0&&("format"!==e||n.isSingle()||a.getMergePlugin().isMerged(n))){let e=Math.floor(u/c);d=Math.max(Math.floor(d/l),1)*l,u=Math.max(e,1)*c}let h=o.col+u-1,p=o.row;for(let e=d-1;e>0;)p++,!a.isFilteredRow(p)&&e--;return{start:o,end:{row:p,col:h}}}async _getRangeFormat(e){let t=this.getSheet();return(await this.getDataBridge().getAutofillObject(t.sheetId,e.from,e.to,["format"],"down",!0))?.format}async triggerPasteChart(e){let t=this.getHot().getPlugin("synoDrawingController"),{top:i,left:n}=t.getInsertPosition(),{height:o,width:r,type:a}=e;if(void 0===o||void 0===r||void 0===a)return;let s=t.createDrawingPosition({top:i,left:n,height:o,width:r},a),l=e.chart?.chartObj;l&&await this.getAction().insertChart(this.getSheet().sheetId,(0,t_.O1)(),s,l)}triggerPasteImage(e){setTimeout(()=>this.getHot().getUIBridge().insertImage(e),0)}async triggerPaste(e,t,i){let n=this.getHot();if(!n.selections.multiSelections.isSelected()||this.getWorkbook().isReadonly())return;t=t||"all";let o=await this._getCopiedInfoByMark(i),r=o.isCutMode()&&"all"===t?await this.handleCutPaste(o):await this.handleCopyPaste(e,t,o);r&&(o.setCutMode(!1),"repeat"!==o.getInteractiveMode()&&gx._clearLastCopiedSelection(o),o.setPasted(!0),n.selectRanges([r.toArray()]),n.render())}async handleCutPaste(e){let t=this.getHot().getSelectedRange();if(!t)return null;let i=e.getSheetId(),n=e.getRange(),o=this.getSheet().sheetId,r=t.clone().normalize();return await this.getAction().isMerged(i,n)&&await this.getAction().isMerged(o,t)||(r.to.row=r.from.row+n.getHeight()-1,r.to.col=r.from.col+n.getWidth()-1),await this.getAction().moveRange(i,n,o,r)?r:null}async handleCopyPaste(e,t,i){let n="format"!==t,o="value"!==t,r=["all","transpose"].includes(t),a=!1,s=e&&e.data,l=null,c=r&&e?.notes?e.notes:null,d=null,u=null,h=r&&e?.hyperlinks?e.hyperlinks.map(e=>e.map(e=>e?{display:e,location:e}:null)):null,p=[];if(s&&(eg(s,e=>{e&&(e.type===io.RichText?(e.value=td.Z.fromJSON(e.value),e.type=io.SheetValue):e.type===io.Normal&&(0,t_.jr)(e.value)&&(e.value=this.getWorkbook().getLocale().getLocaleConverter().normalizeFormula(e.value)))}),em(s,e.width)),c&&em(c,e.width),o&&!i.isEmpty()&&this.getWorkbook().hasSheet(i.getSheetId())){let t=this.getDataBridge(),f=i.getSheetId(),g=i.getRange(),{from:{row:m,col:v},to:{row:b}}=g,y=await t.getRowInfo(f),w=await t.getColInfo(f),_=Array.from({length:g.getHeight()},(e,t)=>t).filter(e=>!y[e+g.from.row]?.hidden),x=Array.from({length:g.getWidth()},(e,t)=>t).filter(e=>!w[e+g.from.col]?.hidden),S=await t.getMergedOverlap(f,[g]);S.forEach(e=>{e.shift("row",-m),e.shift("col",-v)});let C=await this._getInternalData(i,!1);a=null===e||(0,eI.pg)(gk(gC(function(e,t,i,n){if(!e)return e;let o=Array(t.length);for(let n=0;n<t.length;n++){o[n]=Array(i.length);for(let r=0;r<i.length;r++)o[n][r]=e[t[n]][i[r]]}return n.forEach(n=>{let r=eu(t,n.from.row),a=eu(i,n.from.col);(t[r]!==n.from.row||i[a]!==n.from.col)&&(r>t.length||t[r]>n.to.row||a>i.length||i[a]>n.to.col||(o[r][a]=e[r][a]))}),o}(C,_,x,S),g,_,x)),gk(s));let k=await t.getFilteredRows(f,m,b);if(a){let e=await t.getAutofillObject(f,g.from,g.to,[...iC,"tableStyle"],"down",!0);if(e){let{full:a}=tY([g],r?await t.listPivotTableLocations(f):[]);if(o&&(l=this.mergeTableStyles(e.format,g,e.tableStyle??[],r?a:[]),i.getSheetId()===this.getSheet().sheetId&&(delete l.defaultColWidth,delete l.defaultRowHeight)),r){c=e.notes,d=e.validation,u=e.cf,h=e.hyperlink;let t=this.getHot().getSelectedRange().getTopLeftCorner(),i={row:t.row-g.from.row,col:t.col-g.from.col};p=await this.createCopiedPivotTables(a,i)}if(n&&C){let e=[];for(let t=m;t<=b;t++)k[t-m]||e.push(t-m);s=gC(e.map(e=>C[e]),g,e,void 0)}}}}else s||(s=await this._getInternalData(i,"value"===t));if(o&&!l&&e?.format){let t=(l=e.format.reduce((e,t)=>((0,tl._l)(t.run(),(t,i)=>{e[i]=(e[i]||[]).concat(t)}),e),{})).font.reduce((e,t)=>e<t.length?t.length:e,0);[...ie,"mergeCells"].forEach(e=>em(l[e],t))}if("transpose"===t){if(s&&eg(s=ev(s),e=>{e&&e.type===io.R1C1&&(e.value=q(e.value))}),l&&(ie.forEach(e=>{l[e]=ev(l[e])}),l.mergeCells)){let e=ev(l.mergeCells);eg(e,(e,t,i,n)=>{e&&(n[t][i]=[e[1],e[0]])}),l.mergeCells=e}c&&(c=ev(c)),d&&(d.validIds=ev(d.validIds)),h&&(h=ev(h))}let{start:f,end:g}=this._getPastedArea(t,s,l),m=(0,eI.MT)(f.row,f.col,g.row,g.col),v=await this._getRangeFormat(m),b=this.handleDataFormat(s,l,v,t),y=this.parseHyperlinks(s,h,t);return await this.getAction().pasteRange(this.getSheet().sheetId,m,{data:b.data??void 0,format:b.format,notes:c??void 0,validation:d??void 0,cf:u??void 0,hyperlink:y??void 0},p)?m:null}mergeTableStyles(e,t,i,n){void 0===n&&(n=[]);let o=t.getTopLeftCorner(),r=[t];for(let{location:e}of n)for(let t of tH(e))r=tM(r,t).newRanges;for(let t of r)t.forAll((t,n)=>{let r=t-o.row,a=n-o.col,s=i[r]?.[a];s&&(s.font&&(e.font[r][a]={...s.font,...e.font[r][a]}),s.fill&&(e.fill[r][a]={...s.fill,...e.fill[r][a]}),s.border&&(e.border[r][a]={b:(0,tx.WE)(s.border.b,e.border[r][a]?.b)}))});return e}async createCopiedPivotTables(e,t){let i=[];if(0===e.length)return i;let n=this.getDataBridge(),o=e.reduce((e,t)=>{let{id:i,cacheId:n}=t;return e.tableIds.push(i),e.cacheIds.push(n),e},{tableIds:[],cacheIds:[]}),{tables:r,caches:a}=await n.pickPivot(o),s=this.getSheet().sheetId;for(let{id:n,cacheId:o}of e){let e=r[n],l=a[o];e&&l&&i.push(this.getAction().createCopiedPivotTableJsons({tableJson:e,cacheJson:l},s,t))}return i}_getCopiedInfo(){return this.copiedInfo}async _getCopiedInfoByMark(e){let t=this._getCopiedInfo(),i=t;if(t.isEmpty()&&e&&e.id===this.getHot().getUIBridge().getObjectId()){let t=new gd(this.getHot());t.set(`sh_${e.tid}`,eA.GJ.fromArray(e.range));let n=t.getSheetId();if(this.getWorkbook().hasSheet(n)&&!t.isEmpty()){let{rowCount:e,colCount:o}=await this.getDataBridge().getSheetDimension(n),r=t.getRange(),a=e-1,s=o-1;r.from.row<=a&&r.from.col<=s&&r.to.row<=a&&r.to.col<=s&&(i=t)}}return i}getCopyableRange(){let e=this.getHot().getMultiSelectedRange().map(e=>e.toArray());if(0===e.length)return null;let t=tN(e),i=1===t.length?t[0]:e[e.length-1];return eA.xm.fromArray(i).clone().normalize()}handleDataFormat(e,t,i,n){if(!e||"format"===n)return{data:null,format:t};let o=Array(e.length),r=[],a=this.getWorkbook().getLocale().getInputParser();for(let n=0;n<e.length;n++){o[n]=Array(e[n].length);for(let s=0;s<e[n].length;s++){let l,c=e[n][s];if(!c){o[n][s]=null;continue}let{value:d,type:u}=c,h=i?.numberFormat?.[n]?.[s]?.fc,p=t?.numberFormat?.[n]?.[s]?.fc;if((0,ud.Z)(d)?d=(0,t_.z4)((0,t_.le)(d)):(0,ts.is)(d)&&d.v.forEach(e=>{e.tx&&(e.tx=(0,t_.z4)((0,t_.le)(e.tx)))}),u===io.R1C1)d={formula:d,type:u};else if(u===io.Normal&&(0,ud.Z)(d)&&(d=d.trim(),t||"@"!==h)){let e=a.parse(d);e&&({v:d,fc:l}=e)}o[n][s]=d,(0,t_.P6)(t?p:h)&&r.push([n,s,l??null])}}if(r.length>0)for(let[e,n,o]of(t??=i,t.numberFormat??=[],r))t.numberFormat[e]??=[],t.numberFormat[e][n]={fc:o};return{data:o,format:t}}parseHyperlinks(e,t,i){if("format"!==i){if(t??=[[]],!e||"value"===i)return t;for(let i=0;i<e.length;i++){t[i]??=[];for(let n=0;n<e[i].length;n++){if(t[i][n])continue;t[i][n]=null;let o=e[i][n];o&&o.type===io.Normal&&(0,ud.Z)(o.value)&&(t[i][n]=(0,tq.If)((0,t_.z4)((0,t_.le)(o.value)).trim())||null)}}return t}}static setCopiedSelection(e,t,i){return gI(e)?._setCopiedSelection(t,i)}static _clearLastCopiedSelection(e,t){return gx.setCopiedSelection(e.getHot(),null,t)}_setCopiedSelection(e,t){let i=this.getHot();i.selections.copy.cellRange=e,!0===t&&i.selectionView.updateSelection(i.selections.copy)}afterShowSheet(){let e=this.getHot().selections.copy,t=null,i=this._getCopiedInfo();i.getSheetId()!==this.getSheet().sheetId||i.isPasted()||(t=i.getRange()),e.cellRange=t}async _getInternalData(e,t){let i=e.getSheetId();if(!e.getHot().getDataBridge().getWorkbook().hasSheet(i))return[];let{from:n,to:o}=e.getRange(),{rowCount:r,colCount:a}=await e.getHot().getDataBridge().getSheetDimension(i),[s,l,c,d]=(0,eA.As)(n,o,r,a),u={row:s,col:l},h={row:c,col:d},p=this.getDataBridge(),f=await p.getRangeData(i,u,h),g=await p.getRangeStyle(i,u,h),m=t?await p.getRangeCellByKey(i,u,h,["renderDesc"]):[];return e_(c-s+1,d-l+1,(e,i)=>{let n=(0,ts.pM)(f[e][i])?td.Z.fromJSON(f[e][i]):f[e][i],o=g[e][i],r=o?.quoteprefix!==!0&&(0,t_.jr)(n);return t?r?{value:m[e][i].renderDesc?.v??"",type:io.Normal}:{value:n,type:io.SheetValue}:{value:n,type:r?io.R1C1:io.SheetValue}})}reset(e){void 0===e&&(e=!0);let t=this.isInteractiveMode();if(t)gS.cancelInteractive(this.getHot());else{let t=this._getCopiedInfo();gx._clearLastCopiedSelection(t,e),t.clear()}this.getHot().getUIBridge().onResetCopy(t)}getCopyFormatController(){return gS}isInteractiveMode(){return!!this._getCopiedInfo().getInteractiveMode()}isInternalSelected(){let e;return this._getCopiedInfo().isEmpty()||(e=this.getHot().selections.copy),!!e&&!e.isEmpty()}isEditorEnabled(){let e=this.getHot().getActiveEditor();if(e&&e.isOpened())return!0;if(this.getWorkbook().isReadonly()){let t=e.getInputPair(),i=window.getSelection(),n=i&&i.rangeCount&&i.getRangeAt(0).commonAncestorContainer;return!!(n&&t&&t.getEl()===n)}return!1}}let gS=new class{constructor(){this.lastPastedCoords=null,this.selectionHookHandler=null}interactive(e,t){let i=e.getSelectedRange();if(!i)return;let n=gI(e);if(!n)return;let o=n._getCopiedInfo(),r=o.getInteractiveMode();o.setInteractiveMode(t),!1===r&&(i=i.clone().normalize(),o.set(e.sheetId,i),gx.setCopiedSelection(e,i,!0),this.addSelectionHook(e))}removeSelectionHook(e){this.selectionHookHandler&&e.removeHook("afterSelectionEnd",this.selectionHookHandler)}addSelectionHook(e){this.removeSelectionHook(e),this.selectionHookHandler=t=>{this._selectCopyFormat(e,t)},e.addHook("afterSelectionEnd",this.selectionHookHandler)}cancelInteractive(e){this.removeSelectionHook(e),this.lastPastedCoords=null;let t=gI(e);if(t){let e=t._getCopiedInfo();gx._clearLastCopiedSelection(e,!0),e.clear()}}_selectCopyFormat(e,t){if(!t)return;let i=t.getTopLeftCorner(),n=this.lastPastedCoords;if(n&&n.row===i.row&&n.col===i.col)return;this.lastPastedCoords=i;let o=gI(e);o?.triggerPaste(null,"format").then(function(){"repeat"!==o._getCopiedInfo().getInteractiveMode()&&o.reset()})}};function gC(e,t,i,n){if(!e)return null;let{from:{row:o,col:r}}=t,a=[];for(let t=0;t<e.length;t++){let s=o+(i?i[t]:t),l=[];for(let i=0;i<e[t].length;i++){let o=e[t][i];if(!o){l.push(void 0);continue}let a=r+(n?n[i]:i),{value:c,type:d}=o;d===io.R1C1&&(c=G(c,s,a)),l.push({value:c,type:d})}a.push(l)}return a}function gk(e){if(!Array.isArray(e))return null;let t=e=>e?e.value:null;return e.map(e=>e.map(t))}function gI(e){return e.getPlugin("synoCopyPaste")}class gA extends c6{static #e=this.pluginName="synoDragToScroll";constructor(e){super(e),this.dragToScrollListening=!1,this.timer=null,this.ctx=null,this.loopScrollRef=this.loopScroll.bind(this)}initHook(){let e=this.getHot();e.addHook("afterOnCellMouseDown",e=>{if((0,dl.lz)(e))return;let t=this.getHot().selections.multiSelections.getActive()?.cellRange?.type;this.setupListening({disableScrollVertical:!!t&&(t&eA.Y3.col)>0,disableScrollHorizontal:!!t&&(t&eA.Y3.row)>0})}),e.addHook("afterFormulaSelect",()=>{let e=this.getHot().selections.formulaSelections.getActive()?.cellRange?.type;this.setupListening({disableScrollVertical:!!e&&(e&eA.Y3.col)>0,disableScrollHorizontal:!!e&&(e&eA.Y3.row)>0})}),e.addHook("afterOnCellCornerMouseDown",e=>{(0,dl.lz)(e)||this.setupListening()}),e.addHook("afterOnSelectionBorderMouseDown",e=>{(0,dl.lz)(e)||this.setupListening({blScrollOnly:!0})}),e.addHook("afterManualMoveSetup",e=>this.setupListening({blScrollOnly:!0,disableScrollHorizontal:"row"===e,disableScrollVertical:"col"===e})),e.addHook("onTargetMouseOver",e=>this.onMouseMove(e)),e.addHook("onTargetMouseUp",()=>this.onMouseUp())}onMouseUp(){this.dragToScrollListening&&(this.dragToScrollListening=!1,this.ctx=null)}onMouseMove(e){this.dragToScrollListening&&this.check(e.clientX,e.clientY)}setupListening(e){let{blScrollOnly:t=!1,disableScrollVertical:i=!1,disableScrollHorizontal:n=!1}=void 0===e?{}:e,o=this.getView(),r=o.rootElement.getBoundingClientRect(),a=o.getRangeBound(-1,-1,-1,-1);this.dragToScrollListening=!0,this.ctx={clientX:0,clientY:0,scrollDiffX:0,scrollDiffY:0,boundaries:{top:a.y+a.height,left:o.isRtl()?r.left+dt:a.x+a.width,right:o.isRtl()?a.x:r.right-dt,bottom:r.bottom-dt},blScrollOnly:t,disableScrollVertical:i,disableScrollHorizontal:n,lastTimestamp:null}}check(e,t){let i=0,n=0,o=this.ctx;o&&(!o.disableScrollVertical&&(t<o.boundaries.top?n=t-o.boundaries.top:t>o.boundaries.bottom&&(n=t-o.boundaries.bottom)),!o.disableScrollHorizontal&&(e<o.boundaries.left?i=e-o.boundaries.left:e>o.boundaries.right&&(i=e-o.boundaries.right)),o.clientX=e,o.clientY=t,o.scrollDiffX=i,o.scrollDiffY=n,0===n&&0===i||this.timer||(this.timer=window.requestAnimationFrame(this.loopScrollRef)))}loopScroll(e){if(!this.dragToScrollListening||!this.ctx){this.timer&&(window.cancelAnimationFrame(this.timer),this.timer=null);return}this._scrollHolder(e),this.ctx.blScrollOnly||this._changeSelection(),setTimeout(()=>this.timer=window.requestAnimationFrame(this.loopScrollRef),0)}_changeSelection(){let e=this.getHot(),t=e.getPlugin("synoAutofill"),i=!!t&&t.isInProgress(),n=e.selections.formulaSelections.isInProgress(),o=null;if(!(o=i?e.selections.fill.cellRange?.clone():n?e.selections.formulaSelections.getActive()?.cellRange:e.getSelectedRange())||!this.ctx)return;let{scrollDiffX:r,scrollDiffY:a}=this.ctx,s={row:-1,col:-1},l=this.getView(),c=this.getSheet(),d=l.isRtl()?r>0:r<0,u=l.isRtl()?r<0:r>0;d?(s.col=Math.max(e.getFirstVisibleCol()-1,0),e.selections.multiSelections.selectedHeader.col&&(s.row=c.countRows()-1)):u&&(s.col=Math.min(l.getLastVisibleCol()+1,c.countCols()-1)),a<0?s.row=Math.max(e.getFirstVisibleRow()-1,0):a>0&&(s.row=Math.min(l.getLastVisibleRow()+1,c.countRows()-1));let h=o.to,p={row:-1===s.row?h.row:s.row,col:-1===s.col?h.col:s.col};(h.row!==p.row||h.col!==p.col)&&(i?t?.showBorder(p):n?e.selections.formulaSelections.moveSelect(p):e.selections.multiSelections.moveSelect(p))}_scrollHolder(e){if(!this.ctx)return;let{scrollDiffX:t,scrollDiffY:i}=this.ctx,n=0,o=0;0!==t&&(n=1e3*(t>0?1:-1)),0!==i&&(o=1e3*(i>0?1:-1));let r=(this.ctx.lastTimestamp?e-this.ctx.lastTimestamp:16.667)*.001,a=this.getView();a.scrollOffset(a.reverseIfRtl(n*r),o*r),this.ctx.lastTimestamp=e}}class gT extends c6{static #e=this.pluginName="synoFilter";constructor(e){super(e),this._hoverCoord=null,this._menuCoord=null}getFilterPlugin(){return this.getSheet().getFilterPlugin()}initHook(){let e=this.getHot();e.addHook("afterOnCellMouseOver",(e,t,i,n)=>this.afterOnCellMouseOver(e,t,i,n)),e.addHook("beforeOnCellMouseDown",e=>{(0,dl.lz)(e)||this.showFilterMenu(e)}),e.addHook("beforeRefreshSelections",()=>this.beforeRefreshSelections())}afterOnCellMouseOver(e,t,i,n){if(!this.getFilterPlugin().hasDropdown(t.row,t.col))return void this._clearHover();let o=this.getView(),r=o.getViewPoint({x:e.pageX,y:e.pageY});n=i?o.getRangeViewBound(t.row,t.col,t.row,t.col):n;let a=this._getDropdownViewBound(t,n);if(!a||r.x<a.x||r.x>a.x+a.width||r.y<a.y||r.y>a.y+a.height)return void this._clearHover();this.isHovering(t.row,t.col)||(this._clearHover(),this._setHover(t.row,t.col))}showFilterMenu(e){if(this.clearMenu(),this.getWorkbook().isReadonly()||!this._hoverCoord)return;let t=this.getView(),i=this._hoverCoord,n=t.getRangeViewBound(i.row,i.col,i.row,i.col,!1),o=this._getDropdownViewBound(i,n);o&&(this._setMenu(i.row,i.col),this.getHot().getUIBridge().editor.filter.show(t.toPageBound(o),i),u6(e),e.stopPropagation())}beforeRefreshSelections(){let e=this.getFilterPlugin().getActiveFilterJSON()?.range;this.getHot().selections.filter.setRange(e?eA.GJ.fromArray(e):null)}_setHover(e,t){this._hoverCoord={row:e,col:t},this.getView().rerenderFilterDropdown(e,t,!0)}_clearHover(){if(!this._hoverCoord)return;let{row:e,col:t}=this._hoverCoord;this._hoverCoord=null,this._menuCoord&&this._menuCoord.row===e&&this._menuCoord.col===t||this.getView().rerenderFilterDropdown(e,t,!1)}_setMenu(e,t){this._menuCoord={row:e,col:t},this.getView().rerenderFilterDropdown(e,t,!0)}clearMenu(){if(!this._menuCoord)return;let{row:e,col:t}=this._menuCoord;this._menuCoord=null,this.getView().rerenderFilterDropdown(e,t,!1)}isHovering(e,t){return!!this._hoverCoord&&this._hoverCoord.row===e&&this._hoverCoord.col===t}_getDropdownViewBound(e,t){let i=this.getView(),{x:n,y:o,width:r,height:a}=t;if(r<=0||a<=0)return null;let s=this.getSheet().getFreezePlugin(),{freezeWidth:l,freezeHeight:c}=i.getFreezeSize();return s.fixedColumnsLeft<=e.col&&n<l||s.fixedRowsTop<=e.row&&o<c||n>=i.getViewWidth()||o>=i.getViewHeight()?null:hL(t,i.viewport.getZoomLevel())}}function gE(e,t,i,n,o){return e.x>=t&&e.x<=n&&e.y>=i&&e.y<=o}class gR extends c6{static #e=this.pluginName="synoHideRowCol";constructor(e){super(e),this._hoverRecord=null}initHook(){let e=this.getHot();e.addHook("modifyTransformStart",(e,t)=>this.modifyTransformStart(e,t)),e.addHook("modifyTransformEnd",(e,t)=>this.modifyTransformEnd(e,t)),e.addHook("afterOnCellMouseOver",(e,t,i,n)=>this.afterOnCellMouseOver(e,t,i,n)),e.addHook("beforeOnCellMouseDown",e=>this.beforeOnCellMouseDown(e))}modifyTransformStart(e,t){let i=t.from.row,n=t.from.col;this.updateDelta(e,i,n)}modifyTransformEnd(e,t){let i=t.to.row,n=t.to.col;this.updateDelta(e,i,n)}updateDelta(e,t,i){let n=this.getSheet();if(e.row>0){for(;n.isHiddenRow(t+e.row);)if(e.row++,t+e.row>=n.countRows()){e.row=0;break}}else if(e.row<0){for(;n.isHiddenRow(t+e.row);)if(e.row--,t+e.row<0){e.row=0;break}}else if(e.col>0){for(;n.isHiddenCol(i+e.col);)if(e.col++,i+e.col>=n.countCols()){e.col=0;break}}else if(e.col<0){for(;n.isHiddenCol(i+e.col);)if(e.col--,i+e.col<0){e.col=0;break}}}afterOnCellMouseOver(e,t,i,n){if(t.row<0==t.col<0)return void this._clearHover();let o=this.getView(),r=10*o.viewport.getZoomLevel(),a=this.getSheet().getHiddenPlugin(),{x:s,y:l,height:c,width:d}=n,u=o.getViewPoint({x:e.pageX,y:e.pageY});-1===t.row?a.hasLeftArrow(t.col)&&gE(u,s+d-r,l,s+d,l+r)?this._updateHover("col",t.col,1):a.hasRightArrow(t.col)&&gE(u,s,l,s+r,l+r)?this._updateHover("col",t.col,-1):this._clearHover():-1===t.col&&(a.hasUpArrow(t.row)&&gE(u,s,l+c-r,s+r,l+c)?this._updateHover("row",t.row,1):a.hasDownArrow(t.row)&&gE(u,s,l,s+r,l+r)?this._updateHover("row",t.row,-1):this._clearHover())}beforeOnCellMouseDown(e){!this.getWorkbook().isReadonly()&&this._hoverRecord&&(("row"===this._hoverRecord.type?this._showRowsByClick:this._showColsByClick).call(this,this._hoverRecord.index+this._hoverRecord.delta,this._hoverRecord.delta),this._hoverRecord=null,u6(e))}async _showRowsByClick(e,t){let i=e,n=[],o=this.getSheet(),r=o.getHiddenPlugin();for(;r.isHiddenRow(i);)o.isFilteredRow(i)||n.push(i),i+=t;t<0&&n.reverse();let a=new tP(n).getResult().map(e=>new M.lq(e.from,e.to)).map(e=>eR.createFromRange(e,o)?.toSynoRange()).filter(eT);if(0!==a.length)return this.getAction().showRows(o.sheetId,a)}async _showColsByClick(e,t){let i=e,n=this.getSheet(),o=n.getHiddenPlugin();for(;o.isHiddenCol(i);)i+=t;let r=Math.min(e,i-t),a=Math.max(e,i-t),s=eR.createFromRange(new M.l0(r,a),n)?.toSynoRange();if(s)return this.getAction().showCols(this.getSheet().sheetId,[s])}_updateHover(e,t,i){if(this._hoverRecord){if(this._hoverRecord.type===e&&this._hoverRecord.index===t&&this._hoverRecord.delta===i)return;this._clearHover()}this._hoverRecord={type:e,index:t,delta:i};let n=this.getView();"row"===e?n.rerenderRowSpreader(t,1===i,!0):n.rerenderColSpreader(t,1===i,!0)}_clearHover(){if(!this._hoverRecord)return;let e=this.getView();"row"===this._hoverRecord.type?e.rerenderRowSpreader(this._hoverRecord.index,1===this._hoverRecord.delta,!1):e.rerenderColSpreader(this._hoverRecord.index,1===this._hoverRecord.delta,!1),this._hoverRecord=null}}var gD=i(10834);let gO=function(e){return(0,gD.Z)(e,4)},gM="syno-o-sh-drawing-active",gN="syno-o-sh-drawing-moving",gP={RIGHT:5,BOTTOM:5};function gL(e,t){let i=Math.round(e.left*t),n=Math.round(e.top*t);return{left:i,top:n,width:Math.round(e.width*t),height:Math.round(e.height*t)}}function gB(e){return{top:e.offsetTop,left:e.offsetLeft,height:e.clientHeight,width:e.clientWidth}}function gF(e,t){let i=gL(t,e.viewport.getZoomLevel());return i.left+=e.viewport.getLeftOffset(),i.top+=e.viewport.getTopOffset(),i}function gV(e,t){void 0===t&&(t="transparent"),e.style.display="block",e.style.borderColor=t}function gz(e){e.style.display="none"}function gH(e,t){return t=gO(t),t.left-=e.viewport.getLeftOffset(),t.top-=e.viewport.getTopOffset(),gL(t,1/e.viewport.getZoomLevel())}class gW{constructor(e,t,i){var n,r;this.id=e,this.sheetId=t,this.controls={},this.border={},this.state=null,this.hot=i,this.dom=document.createElement("div"),n=this.dom,o(n,"syno-o-sh-drawing-overlay"),this.wrapper=document.createElement("div"),r=this.wrapper,o(r,"syno-o-sh-drawing-wrapper"),this.dom.appendChild(this.wrapper),this.dom.appendChild(this.createBorder()),this.dom.appendChild(this.createControl()),this.selectionDom=null,this.selectionColor=null}destroy(){u4(this.dom)&&this.dom.remove()}hasOverlay(e){return e===this.dom}createControl(){let e=document.createElement("div");o(e,"syno-o-sh-drawing-control");let t=document.createElement("div");return o(t,"handle"),ea(["nw","ne","se","sw","n","e","s","w"],i=>{let n=t.cloneNode();o(n,i+"-handle"),n.style.cursor=i+"-resize",this.controls[i]=n,e.appendChild(n)}),e}createBorder(){let e=document.createElement("div");o(e,"syno-o-sh-drawing-border");let t=document.createElement("div");return o(t,"border"),ea(["n","e","s","w"],i=>{let n=t.cloneNode();o(n,i+"-draggable"),this.border[i]=n,e.appendChild(n)}),e}appendSelectionDom(){let e=function(){let e=document.createElement("div");return o(e,"syno-o-sh-drawing-selection"),gz(e),e}();return this.dom.appendChild(e),e}ensureSelectionDom(){return this.selectionDom??=this.appendSelectionDom()}removeSelectionDom(){this.selectionDom&&(this.selectionDom.remove(),this.selectionDom=null)}isActive(){var e;return e=this.getActiveDom(),n(e,gM)}setActive(e){(e?function(e,t){return o(e,t)}:function(e,t){return r(e,t)})(this.getActiveDom(),[gM,"grabbable"]),this.updateSelectionDom()}setMoving(e){var t,i;e?(t=this.getActiveDom(),o(t,gN)):(i=this.getActiveDom(),r(i,gN))}updateSelection(e){this.selectionColor=e,this.updateSelectionDom()}updateSelectionDom(){let e=this.isActive();!e&&this.selectionColor?this._showSelection(this.selectionColor):e?this._hideSelection():this.removeSelectionDom()}_showSelection(e){gV(this.ensureSelectionDom(),e)}_hideSelection(){this.selectionDom&&gz(this.selectionDom)}getActiveDom(){return this.dom}afterDrag(){let e=this.getHiderPositionOfActiveDom();this.resize(e)}toActivePosition(e){return e}toHiderPosition(e){return e}getAbsolutePosition(e){return this.hot.view.viewport.getDrawingPositionConverter().toAbsolutePosition(e)}getAbsolutePositionInView(e){let t=this.getAbsolutePosition(e);return gF(this.hot.view,t)}getRenderPositionInView(e){return this.limitationCheck(this.getAbsolutePositionInView(e))}saveStatus(e,t){void 0===t&&(t="w"),this.state={mouseX:e.clientX,mouseY:e.clientY,controlDirection:t,viewPosition:this.getViewPosition(this.dom)}}clearStatus(){this.state=null}getAbsolutePositionOfDom(e){let t=this.getViewPosition(e);return e===this.getActiveDom()&&(t=this.toHiderPosition(t)),gH(this.hot.view,t)}getHiderPositionOfActiveDom(){let e=this.getActiveDom(),t=this.getViewPosition(e);return this.toHiderPosition(t)}getDelta(e){return this.state?{x:e.clientX-this.state.mouseX,y:e.clientY-this.state.mouseY}:{x:0,y:0}}limitationCheck(e){let t=this.hot.view.viewport.getBottomOffset(),i=this.hot.view.viewport.getRightOffset(),n=this.hot.view.viewport.getTopOffset(),o=this.hot.view.viewport.getLeftOffset();return e.top+e.height>t&&(e.top=t-e.height),e.left+e.width>i&&(e.left=i-e.width),n>e.top&&(e.top=n),o>e.left&&(e.left=o),e}onMouseMove(e){if(!this.state)return;let t=this.getDelta(e),i=gO(this.state.viewPosition);i.left+=this.hot.view.reverseIfRtl(t.x),i.top+=t.y,this.resize(i)}moveByKeyCode(e){let t={x:0,y:0};switch(e){case u5.ARROW_UP:t.y-=10;break;case u5.ARROW_RIGHT:t.x+=this.hot.view.reverseIfRtl(10);break;case u5.ARROW_DOWN:t.y+=10;break;case u5.ARROW_LEFT:t.x-=this.hot.view.reverseIfRtl(10)}return this.moveByDelta(t)}moveByDelta(e){if(0===e.x&&0===e.y)return!1;let t=this.getHiderPositionOfActiveDom();return t.left+=e.x,t.top+=e.y,t=this.limitationCheck(t),!rY(this.getHiderPositionOfActiveDom(),t)&&(this.resize(t),!0)}onResizing(e){if(!this.state)return;let t=this.getDelta(e),i=this.hot.view.viewport.getBottomOffset(),n=this.hot.view.viewport.getRightOffset(),o=this.hot.view.viewport.getTopOffset(),r=this.hot.view.viewport.getLeftOffset(),{width:a,height:s,left:l,top:c}=this.state.viewPosition,{width:d,height:u,left:h,top:p}=this.state.viewPosition,f=n-l-gP.RIGHT,g=i-c-gP.BOTTOM;if(this.state.controlDirection.indexOf("e")>=0&&(f=n-l-gP.RIGHT,a=Math.max(Math.min(d+t.x,f),20)),this.state.controlDirection.indexOf("w")>=0&&(f=l+a-r,a=Math.max(Math.min(d-t.x,f),20)),this.state.controlDirection.indexOf("s")>=0&&(g=i-c-gP.BOTTOM,s=Math.max(Math.min(u+t.y,g),20)),this.state.controlDirection.indexOf("n")>=0&&(g=c+s-o,s=Math.max(Math.min(u-t.y,g),20)),2===this.state.controlDirection.length){let e=Math.max(a/d,s/u);["n","s"].indexOf(this.state.controlDirection)>=0&&(e=s/u),["e","w"].indexOf(this.state.controlDirection)>=0&&(e=a/d),e=Math.max(e=Math.min(e,f/d,g/u),20/d,20/u),a=d*e,s=u*e}this.state.controlDirection.indexOf(this.hot.view.isRtl()?"e":"w")>=0&&(l=h+(d-a)),this.state.controlDirection.indexOf("n")>=0&&(c=p+(u-s));let m={width:a,height:s,left:l,top:c};this.resize(m)}updateViewPosition(e){let t=this.getAbsolutePositionInView(e);this.resize(t)}resize(e){e=this.limitationCheck(e),this._resize(this.dom,e)}_resize(e,t){u4(e)&&(e.style.width=t.width+"px",e.style.height=t.height+"px",this.hot.view.setViewPosition(e,t.top,t.left))}isCopyable(){return!1}getViewPosition(e){let t=gB(e);return this.hot.view.isRtl()&&(t.left=-(t.left+t.width)),t}}class gY extends gW{constructor(e,t,i,n){super(e,t,i),this.path=n.path,this.doms=[this.dom],this.selectionDoms=[];let r=document.createElement("img");o(r,"syno-sh-image-container"),this.wrapper.appendChild(r);for(let e=1;e<4;e++)this.doms.push(this.dom.cloneNode(!0));this.activeDom=this.dom.cloneNode(!0),this.activeDom.style.visibility="hidden",this.url=null}destroy(){ea(this.doms,e=>{u4(e)&&e.remove()}),this.doms=[],u4(this.activeDom)&&this.activeDom.remove()}appendSelectionDom(){let e=super.appendSelectionDom();for(let t of this.doms.slice(1)){let i=e.cloneNode(!0);t.appendChild(i),this.selectionDoms.push(i)}return e}removeSelectionDom(){for(let e of(super.removeSelectionDom(),this.selectionDoms))e.remove();this.selectionDoms=[]}_showSelection(e){for(let t of(super._showSelection(e),this.selectionDoms))gV(t,e)}_hideSelection(){for(let e of(super._hideSelection(),this.selectionDoms))gz(e)}async fillURL(e){if(this.url)return;this.url=await this._getImageDisplayURL(e);let t=[this.activeDom].concat(this.doms);for(let e=0;e<t.length;e++)t[e].querySelector("img").src=this.url}getExternalURLSync(e){return this.hot.getUIBridge().getImageExternalURLSync(this.path,e)}_getImageDisplayURL(e){return this.hot.getUIBridge().getImageDisplayURL(this.path,e)}hasOverlay(e){return -1<this.doms.indexOf(e)||e===this.activeDom}setActive(e){let t;if(super.setActive(e),e){let e=this.toActivePosition(this.getViewPosition(this.dom));this._resize(this.activeDom,e),this.activeDom.style.visibility="visible",t="hidden"}else this.activeDom.style.visibility="hidden",t="visible";ea(this.doms,e=>{e.style.visibility=t})}getActiveDom(){return this.activeDom}toActivePosition(e){return e.top-=this.hot.view.getScrollTop(),e.left-=this.hot.view.getScrollLeft(),e}toHiderPosition(e){return e.top+=this.hot.view.getScrollTop(),e.left+=this.hot.view.getScrollLeft(),e}resize(e){e=this.limitationCheck(e),this.isActive()&&this._resize(this.activeDom,this.toActivePosition(gO(e))),ea(this.doms,t=>{this._resize(t,e)})}isCopyable(){return!0}getSerializer(e){return new gy(this,e)}getDrawableDom(){return this.dom.querySelector("img")}getViewPosition(e){if(this.hot.view.isRtl()&&e===this.getActiveDom()){let t=gB(e);return t.left=this.hot.view.viewport.getViewWidth()-(t.left+t.width)+dt,t}return super.getViewPosition(e)}}class gU extends gW{constructor(e,t,i){var n;super(e,t,i),n=this.dom,o(n,"syno-o-sh-chart-overlay"),this.painter=null,this.emptyMsgDom=null}destroy(){this._destroyEchart()}_destroyEchart(){this.painter&&(this.painter.destroy(),this.painter=null)}limitationCheck(e){let{freezeHeight:t,freezeWidth:i}=this.hot.view.getFreezeSize();return t>(e=super.limitationCheck(e)).top&&(e.top=t),i>e.left&&(e.left=i),e}resize(e){e=this.limitationCheck(e);let t=this.dom.clientHeight,i=this.dom.clientWidth,n=e.height,o=e.width;this._resize(this.dom,e),this.painter&&this.dom===this.getActiveDom()&&(t!==n||i!==o)&&this.painter.resize({width:o,height:n})}_createPlaceHolder(){if(!this.emptyMsgDom){var e;this.emptyMsgDom=document.createElement("div"),e=this.emptyMsgDom,o(e,"syno-o-sh-chart-empty-msg"),this.dom.appendChild(this.emptyMsgDom)}return this.emptyMsgDom}draw(e){u4(this.dom)&&(this.painter||(this.painter=new gp(this.wrapper,this.hot.view.getScaleRatio())),e.isDrawable()?(this.wrapper.style.display="",this._createPlaceHolder().style.display="none",this.painter.draw(e)):(this.wrapper.style.display="none",this._createPlaceHolder().style.display=""))}getDrawableDom(){return this.painter?.getCanvas()??null}getViewPosition(e){let t=super.getViewPosition(e);return this.hot.view.isRtl()&&(t.left-=2),t}isCopyable(){return!0}getSerializer(e){return new gw(this,e,this.sheetId,this.hot.getUIBridge().getObjectId())}}class gG extends c6{static #e=this.pluginName="synoDrawingController";constructor(e){var t;super(e),this.imageViews=new Map,this.chartViews=new Map,this.activeDrawing=null,this.activeDraggable=null,this.onMoveAction=null,this.delayResizeTimer=null,this.posConverter=this.getView().viewport.getDrawingPositionConverter(),this.chartMenuButton=document.createElement("span"),t=this.chartMenuButton,o(t,"syno-o-chart-option-btn")}initHook(){let e=this.getHot();e.addHook("beforeKeyDown",e=>this.onKeyDown(e)),e.addHook("afterOnCellMouseDown",()=>this.inactive("select")),e.addHook("afterSelectionEnd",()=>this.inactive("select")),e.addHook("onTargetMouseDown",e=>this.onMouseDown(e)),e.addHook("onTargetMouseOver",e=>this.onMouseMove(e)),e.addHook("onTargetMouseUp",e=>this.onMouseUp(e)),e.addHook("onTargetDblClick",e=>this.onMouseDblClick(e)),e.addHook("afterScroll",()=>this.inactive("scroll")),e.addHook("beforeHideSheet",()=>this.beforeHideSheet()),e.addHook("afterRender",()=>this.afterRender()),e.addHook("afterPixelRatioChange",()=>this.afterPixelRatioChange())}afterPixelRatioChange(){for(let e of this.chartViews.values())e.destroy()}_createImageView(e,t,i){let n=new gY(e,t,this.getHot(),{path:i});return this._appendImage(n),n}_appendImage(e){e.fillURL(this.getWorkbook().getVersion()),this.getHot().rootElement.appendChild(e.activeDom);let t=this.getView();t.scrollableBottomRight.appendChild(e.doms[0]),t.scrollableTopRight.appendChild(e.doms[1]),t.scrollableBottomLeft.appendChild(e.doms[2]),t.scrollableTopLeft.appendChild(e.doms[3])}_removeImageDom(e){this.getHot().rootElement.removeChild(e.activeDom);let t=this.getView();t.scrollableBottomRight.removeChild(e.doms[0]),t.scrollableTopRight.removeChild(e.doms[1]),t.scrollableBottomLeft.removeChild(e.doms[2]),t.scrollableTopLeft.removeChild(e.doms[3])}getActiveImage(){return this.activeDrawing&&this.imageViews.has(this.activeDrawing.id)?this.activeDrawing:null}getDrawingViewPosition(e){let t=this.imageViews.get(e)??this.chartViews.get(e)??null;return t?.getRenderPositionInView(this.getDrawingPosition(t))??null}getDrawingViewBound(e){let t=this.getDrawingViewPosition(e);if(!t)return null;let{y:i,x:n,height:o,width:r}=this.getView().getRectVisibleBound({y:t.top,x:t.left,height:t.height,width:t.width});return o<=0||r<=0?null:{top:i,left:n,height:o,width:r}}getDrawingByEvent(e){return this._getDrawing(e)}async setImagePositionType(e,t){let i=this.getSheet().getDrawingPlugin().getImageJSONById(e);if(!i)return!1;let n=this.posConverter.toPositionOfType(i.position,t);return this.getAction().resizeImage(this.getSheet().sheetId,e,n)}_createChartView(e,t){let i=new gU(e,t,this.getHot());return this._appendChart(i),i}_appendChart(e){this.getView().scrollableBottomRight.appendChild(e.dom)}_removeChartDom(e){this.getView().scrollableBottomRight.removeChild(e.dom)}getActiveChart(){return this.activeDrawing&&this.chartViews.has(this.activeDrawing.id)?this.activeDrawing:null}async setChartPositionType(e,t){let i=this.getSheet().getDrawingPlugin().getChartJSONById(e);if(!i)return!1;let n=this.posConverter.toPositionOfType(i.position,t);return this.getAction().resizeChart(this.getSheet().sheetId,e,n)}async resizeDrawing(e,t){if(e instanceof gY)return this.getAction().resizeImage(e.sheetId,e.id,t);if(e instanceof gU)return this.getAction().resizeChart(e.sheetId,e.id,t);throw Error("Unexpected Drawing Type")}getDrawingPosition(e){let t=this.getSheet().getDrawingPlugin(),i=e.id,n=t.getImageJSONById(i)||t.getChartJSONById(i);if(n)return n.position;throw Error("Drawing not found")}inactive(e){this.changeActive(null,e)}changeActiveById(e,t){let i=this.imageViews.get(e)??this.chartViews.get(e);i&&this.changeActive(i,t)}changeActive(e,t){this.activeDrawing&&(this.activeDrawing.setActive(!1),this.activeDrawing=null),this.activeDrawing=e;let i=this.getSheet().getDrawingPlugin(),n=e?i.getImageJSONById(e.id):null,o=e&&!n?i.getChartJSONById(e.id):null;this.getHot().getUIBridge().onActiveChartChange(o,t),this.getHot().getUIBridge().onActiveImageChange(n,t),this.activeDrawing&&this.activeDrawing.setActive(!0),this.updateFloat(),this.getHot().runHooks("afterActiveDrawingChange",this.activeDrawing)}removeActiveDrawing(){return!!this.activeDrawing&&(this.activeDraggable&&this.endDragging(!0),this.activeDrawing instanceof gY?this.getAction().removeImage(this.activeDrawing.sheetId,this.activeDrawing.id):this.activeDrawing instanceof gU&&this.getAction().removeChart(this.activeDrawing.sheetId,this.activeDrawing.id),!0)}onMouseDown(e){if((0,c9.isMobileLayout)()||null!==this.onMoveAction||this.getWorkbook().isReadonly())return;if(e.target===this.chartMenuButton){this.getHot().getUIBridge().editor.chartMenu.show(this.activeDrawing,this.chartMenuButton),u6(e);return}let t=this._getDrawing(e);if(!t)return;if(e.customTarget=t,0!==e.button&&2!==e.button)return void u6(e);let i=this.getHot();if(i.focusInputField(),t.isActive()&&0===e.button&&!gZ(e))this.activeDraggable=t,this.setupDragging(e);else{if(t instanceof gY){let e=t.getViewPosition(t.dom),i=this.getView(),{freezeWidth:n,freezeHeight:o}=i.getFreezeSize();o>e.top&&i.viewport.setScrollTop(0),n>e.left&&i.viewport.setScrollLeft(0)}i.deselectCell(),this.changeActive(t,"select"),i.getUIBridge().onSelectImage()}u6(e),e.preventDefault()}onMouseUp(e){if((0,c9.isMobileLayout)()||0!==e.button||gZ(e))return;let t=this._getDrawing(e);t&&this.activeDrawing&&t===this.activeDrawing&&(e.customTarget=t,u6(e)),this.activeDraggable&&this.endDragging()}onMouseDblClick(e){if((0,c9.isMobileLayout)()||e.target===this.chartMenuButton||!this.activeDrawing||this._getDrawing(e)!==this.activeDrawing)return;let t=this.getSheet().getDrawingPlugin();this.activeDrawing instanceof gU?this.getHot().getUIBridge().openChartEditor(t.getChartJSONById(this.activeDrawing.id)):this.activeDrawing instanceof gY&&this.getHot().getUIBridge().openImageFormatPanel(t.getImageJSONById(this.activeDrawing.id))}_getDrawing(e){let t=this._getDrawingContainer(e);if(!t)return null;for(let e of[...this.imageViews.values(),...this.chartViews.values()])if(e.hasOverlay(t))return e;return null}_getDrawingContainer(e){let t=4,i=e.target;if(i?.nodeType!==document.ELEMENT_NODE)return null;for(;i&&t;){if(n(i,"syno-o-sh-drawing-overlay"))return i;i=i.parentElement,t-=1}return null}setupDragging(e){let t,i=e.target;if(n(i,"handle")){let e=i.className.match("([a-z]+)-handle");if(!e||!e[1])return;t=e[1],this.onMoveAction="resize"}else this.onMoveAction="move",this.activeDraggable.setMoving(!0);this.updateFloat(),this.activeDraggable.saveStatus(e,t)}endDragging(e){void 0===e&&(e=!1);let t=this.getView(),i=this.activeDraggable,n=this.getDrawingPosition(i);i.afterDrag();let o=i.getAbsolutePositionOfDom(i.getActiveDom()),r=rq(this.createDrawingPosition(o,n.type)),a=gF(t,this.posConverter.toAbsolutePosition(n)),s=gF(t,this.posConverter.toAbsolutePosition(r));!0===e||rY(a,s)||this.resizeDrawing(i,r).then(e=>{e||(i.updateViewPosition(n),this.updateFloat())}),i.setMoving(!1),i.clearStatus(),this.activeDraggable=null,this.onMoveAction=null,this.updateFloat()}onMouseMove(e){this.activeDraggable&&("resize"===this.onMoveAction?(this.activeDraggable.onResizing(e),this.redrawChart(this.activeDraggable.id)):"move"===this.onMoveAction&&this.activeDraggable.onMouseMove(e))}onKeyDown(e){if(this.activeDrawing)switch(e.keyCode){case u5.ARROW_UP:case u5.ARROW_RIGHT:case u5.ARROW_LEFT:case u5.ARROW_DOWN:if(!this.activeDraggable){let t=this.getDrawingPosition(this.activeDrawing);if(this.activeDrawing.moveByKeyCode(e.keyCode)){this.onMoveAction="keyboard_move",this.updateFloat();let i=this.activeDrawing instanceof gY?"afterResizeImage":"afterResizeChart";this.delayResizeHooks(i,this.activeDrawing,t),u6(e),e.stopPropagation(),e.preventDefault()}}}}delayResizeHooks(e,t,i){null!==this.delayResizeTimer&&clearTimeout(this.delayResizeTimer),this.delayResizeTimer=window.setTimeout(()=>{this.delayResizeTimer=null,this.onMoveAction=null,t.afterDrag();let e=t.getAbsolutePositionOfDom(t.getActiveDom()),n=rq(this.createDrawingPosition(e,i.type));this.resizeDrawing(t,n).then(e=>{e||(t.updateViewPosition(i),this.updateFloat())}),this.updateFloat()},200)}beforeHideSheet(){for(let e of(this.activeDrawing&&this.inactive("invisible"),this.imageViews.values()))this._removeImageDom(e);for(let e of(this.imageViews.clear(),this.chartViews.values()))this._removeChartDom(e);this.chartViews.clear()}afterRender(){let e=this.getSheet().getDrawingPlugin(),t=this.getSheet().sheetId,i=new Set(this.imageViews.keys());for(let n of e.getImagesJSON()){let e=n.id,o=this.imageViews.get(e);o?i.delete(e):(o=this._createImageView(e,t,n.path),this.imageViews.set(e,o)),o.updateViewPosition(n.position)}for(let e of i)this._removeImageDom(this.imageViews.get(e)),this.imageViews.delete(e);let n=new Set(this.chartViews.keys());for(let i of e.getChartsJSON()){let e=i.id,o=this.chartViews.get(e);o?n.delete(e):(o=this._createChartView(e,t),this.chartViews.set(e,o)),o.updateViewPosition(i.position),o.draw(i.chartInfo)}for(let e of n)this._removeChartDom(this.chartViews.get(e)),this.chartViews.delete(e);this.updateFloat()}redrawChart(e){let t=this.chartViews.get(e),i=this.getSheet().getDrawingPlugin().getChartJSONById(e);t&&i&&t.draw(i.chartInfo)}updateImageFloat(){this.activeDrawing&&this.activeDrawing instanceof gY&&null===this.onMoveAction?this.getHot().getUIBridge().editor.imageFloat.show(this.activeDrawing):this.getHot().getUIBridge().editor.imageFloat.hide()}updateChartButton(){this.activeDrawing&&this.activeDrawing instanceof gU&&null===this.onMoveAction?this.activeDrawing.getActiveDom().appendChild(this.chartMenuButton):this.chartMenuButton.parentNode&&this.chartMenuButton.parentNode.removeChild(this.chartMenuButton),this.getHot().getUIBridge().editor.chartMenu.hide()}updateFloat(){this.updateImageFloat(),this.updateChartButton()}getInsertPosition(){let e,t,i=this.getHot().getSelectedRange(),n=null,o=this.getView(),r=o.viewport,a=this.getSheet().getDrawingPlugin(),s=[...a.getImagesJSON(),...a.getChartsJSON()],l=[];for(let e of s){let t=this.posConverter.toAbsolutePosition(e.position);l.push(t),this.activeDrawing&&e.id===this.activeDrawing.id&&(n=t)}return i?(e=r.getRowOffset(i.from.row),t=r.getColOffset(i.from.col),{top:e,left:t}=gH(o,{top:e,left:t,width:0,height:0})):n?(e=n.top,t=n.left):(e=r.getRowOffset(o.getFirstVisibleRow()),t=r.getColOffset(o.getFirstVisibleCol()),{top:e,left:t}=gH(o,{top:e,left:t,width:0,height:0})),function e(t,i){for(let n of l)if(t===n.top&&i===n.left)return e(t+15,i+15);return{top:t,left:i}}(e,t)}sectionContainImage(e,t,i){return rU(this.getView().viewport.sectionToBBox(e,t.start,t.end),this.posConverter.drawingPositionToBBox(i))}sectionIntersectImage(e,t,i){return rG(this.getView().viewport.sectionToBBox(e,t.start,t.end),this.posConverter.drawingPositionToBBox(i))}createDrawingPosition(e,t){let{top:i,left:n,height:o,width:r}=e;return void 0===t&&(t=rL.OneAnchor),this.posConverter.toPositionOfType({type:rL.Absolute,top:i,left:n,height:o,width:r},t)}scrollToDrawing(e,t){void 0===t&&(t=!0);let i=this.imageViews.get(e)??this.chartViews.get(e)??null,n=i?.getAbsolutePositionInView(this.getDrawingPosition(i));n&&this.getView().scrollToRect(n,t)}}function gZ(e){return(0,c9.isMac)()&&e.ctrlKey}let gj=tu.Z.COL_HEADER_HEIGHT;class gq extends c6{static #e=this.pluginName="synoManualColumnResize";constructor(e){super(e),this.currentCol=0,this.currentWidth=0,this.startX=0,this.startWidth=0,this.startOffset=0,this.startTop=0,this.pressed=!1,this.dblclick=0,this.autoresizeTimeout=null,this.handleWidth=3;let t=this.getHot().rootElement;this.handle=u9(t,"manualColumnResizer"),this.guide=u9(t,"manualColumnResizerGuide")}initHook(){let e=this.getHot();e.addHook("afterSetZoomLevel",e=>this.afterSetZoomLevel(e)),e.addHook("afterOnCellMouseOver",(e,t,i,n)=>this.afterOnCellMouseOver(e,t,i,n)),e.addHook("onTargetMouseDown",e=>this.onMouseDown(e)),e.addHook("onTargetMouseOver",e=>this.onMouseMove(e)),e.addHook("onTargetMouseUp",e=>this.onMouseUp())}setupHandlePosition(e,t){if(e>=0){let{x:i,y:n,width:o}=t;this.currentCol=e,this.startOffset=i,this.startTop=n,this.startWidth=o,this.getView().setViewPosition(this.handle,n,this.startOffset+this.startWidth-this.handleWidth)}}refreshHandlePosition(){this.getView().setViewPosition(this.handle,this.startTop,this.startOffset+this.currentWidth-this.handleWidth)}setupGuidePosition(){var e,t;e=this.handle,o(e,"active"),t=this.guide,o(t,"active"),this.getView().setViewPosition(this.guide,this.startTop,this.startOffset+this.startWidth)}refreshGuidePosition(){this.getView().setViewPosition(this.guide,this.startTop,this.startOffset+this.currentWidth)}hideHandleAndGuide(){var e,t;e=this.handle,r(e,"active"),t=this.guide,r(t,"active")}afterOnCellMouseOver(e,t,i,n){t.col<0||-1!==t.row||this.pressed||this.setupHandlePosition(t.col,n)}afterMouseDownTimeout(e){this.dblclick>=2&&(this.autoResize(e),this.handle.style.left="-999px"),this.dblclick=0,this.autoresizeTimeout=null}autoResize(e){e=e??this._getMultiRanges();let t=this._getMultiRangeAutoSize(e);this.getAction().resizeCols(this.getSheet().sheetId,e,t)}onMouseDown(e){if(!(0,dl.lz)(e)){var t;if(t=e.target,n(t,"manualColumnResizer")&&this.getView().isEventInView(e)){if(this.setupHandlePosition(this.currentCol,this.getView().getRangeViewBound(-1,this.currentCol,-1,this.currentCol,!1)),this.setupGuidePosition(),this.pressed=!0,null===this.autoresizeTimeout){let e=this._getMultiRanges();this.autoresizeTimeout=window.setTimeout(()=>{this.afterMouseDownTimeout(e)},500)}this.dblclick++,this.startX=e.pageX,this.currentWidth=this.startWidth,u6(e)}}}onMouseMove(e){if(this.pressed){let t=this.getView(),i=t.reverseIfRtl(e.pageX-this.startX);this.currentWidth=this.startWidth+i;let n=t.viewport.getZoomLevel();this.currentWidth=Math.min(this.currentWidth,tu.Z.MAX_COL_WIDTH*n),this.currentWidth=Math.max(this.currentWidth,tu.Z.MIN_COL_WIDTH*n),this.refreshHandlePosition(),this.refreshGuidePosition()}}async onMouseUp(){if(this.pressed){this.hideHandleAndGuide(),this.pressed=!1;let e=Math.floor(this.currentWidth/this.getView().viewport.getZoomLevel());if(e!==(this.getSheet().getColResizePlugin().getManualSize(this.currentCol)||this.getSheet().getDefaultColWidth())){let t=this.getSheet().sheetId,i=this._getMultiRanges();await this.getAction().resizeCols(t,i,e)}this.getHot().focusInputField()}}afterSetZoomLevel(e){let t=this.handle.style;this.handleWidth=Math.floor(3*e),t.width=this.handleWidth+"px",t.height=Math.floor(gj*e)+"px",this.guide.style.marginLeft=t.width}_getMultiRanges(){let e=this.currentCol,t=this.getSheet().countRows(),i=!1,n=[];return(ea(this.getHot().getMultiSelectedRange(),o=>{o.getHeight()===t&&(n.push(o),i=i||o.includes({row:0,col:e}))}),0!==n.length&&i)?n:[new eA.GJ(0,e,t-1,e,eA.Y3.col)]}_getMultiRangeAutoSize(e){let t=tA(e,"col"),i=t.reduce((e,t)=>{for(let i=t.from;i<=t.to;i++)e.push(i);return e},[]),n=this.getColumnsAutoWidth(i);return t.map(e=>{let t=[];for(let i=e.from;i<=e.to;i++){let e=this.getSheet().getColResizePlugin().getManualSize(i);n[i]&&n[i]!==e?t.push(n[i]):t.push(e)}return t})}getColumnsAutoWidth(e){let t={},i=this.getSheet(),n=i.countRows();if(0===n||0===e.length)return t;let o=i.getMergePlugin(),r=i.getCfPlugin();for(let a=0;a<n;a++)for(let n of e){let e=o.getMergedRange(a,n);if(e&&(e.getWidth()>1||e.from.row!==a||e.from.col!==n))continue;let s=i.getCellTextDesc(a,n)?.v;if(!s)continue;let l=i.getComputedCellStyle(a,n),c=r.getComputedCfStyle(a,n),d=c?.bold??!1,u=c?.italic??!1;i.getFilterPlugin().hasDropdown(a,n)&&(d=!0);let h=i.getDataAtCell(a,n),p=h3((0,ts.is)(h)?h:s,{font:l.getFont(),forceBold:d,forceItalic:u},i.ensureCellDirection(a,n)),f=i.getCellProperty(a,n,"validId"),g=i.getCellProperty(a,n,"pivot"),m=p.getWidth();i.getFilterPlugin().hasDropdown(a,n)?m+=5+hB.getPadding():f&&i.getValidationPlugin().isDropdownValidation(f)?m+=5+hF.getPadding():g?(m+=9+po(g),g.filterBtn!==so.None&&(m+=hB.getPadding())):m+=9,(m&&!t[n]||m>t[n])&&(t[n]=m)}return t}}let gK=tu.Z.ROW_HEADER_WIDTH;class gX extends c6{static #e=this.pluginName="synoManualRowResize";constructor(e){super(e),this.currentRow=0,this.currentHeight=0,this.startY=0,this.startHeight=0,this.startOffset=0,this.startLeft=0,this.pressed=!1,this.dblclick=0,this.autoresizeTimeout=null,this.handleHeight=3;let t=this.getHot().rootElement;this.handle=u9(t,"manualRowResizer"),this.guide=u9(t,"manualRowResizerGuide")}initHook(){let e=this.getHot();e.addHook("afterSetZoomLevel",e=>this.afterSetZoomLevel(e)),e.addHook("afterOnCellMouseOver",(e,t,i,n)=>this.afterOnCellMouseOver(e,t,i,n)),e.addHook("onTargetMouseDown",e=>this.onMouseDown(e)),e.addHook("onTargetMouseOver",e=>this.onMouseMove(e)),e.addHook("onTargetMouseUp",e=>this.onMouseUp())}setupHandlePosition(e,t){if(e>=0){let{x:i,y:n,height:o}=t;this.currentRow=e,this.startOffset=n,this.startLeft=i,this.startHeight=o,this.getView().setViewPosition(this.handle,this.startOffset+this.startHeight-this.handleHeight,i)}}refreshHandlePosition(){this.handle.style.top=this.startOffset+this.currentHeight-this.handleHeight+"px"}setupGuidePosition(){var e,t;e=this.handle,o(e,"active"),t=this.guide,o(t,"active"),this.getView().setViewPosition(this.guide,this.startOffset+this.startHeight-this.handleHeight,this.startLeft)}refreshGuidePosition(){this.guide.style.top=this.handle.style.top}hideHandleAndGuide(){var e,t;e=this.handle,r(e,"active"),t=this.guide,r(t,"active")}afterOnCellMouseOver(e,t,i,n){t.row<0||-1!==t.col||this.pressed||this.setupHandlePosition(t.row,n)}afterMouseDownTimeout(e){this.dblclick>=2&&(this.autoResize(e),this.handle.style.top="-999px"),this.dblclick=0,this.autoresizeTimeout=null}autoResize(e){e=e??this._getMultiRanges();let t=this._getMultiRangeAutoSize(e);this.getAction().resizeRows(this.getSheet().sheetId,e,t)}onMouseDown(e){if(!(0,dl.lz)(e)){var t;if(t=e.target,n(t,"manualRowResizer")&&this.getView().isEventInView(e)){if(this.setupHandlePosition(this.currentRow,this.getView().getRangeViewBound(this.currentRow,-1,this.currentRow,-1,!1)),this.setupGuidePosition(),this.pressed=!0,null===this.autoresizeTimeout){let e=this._getMultiRanges();this.autoresizeTimeout=window.setTimeout(()=>{this.afterMouseDownTimeout(e)},500)}this.dblclick++,this.startY=e.pageY,this.currentHeight=this.startHeight,u6(e)}}}onMouseMove(e){if(this.pressed){let t=e.pageY-this.startY;this.currentHeight=this.startHeight+t;let i=this.getView().viewport.getZoomLevel();this.currentHeight=Math.min(this.currentHeight,tu.Z.MAX_ROW_HEIGHT*i),this.currentHeight=Math.max(this.currentHeight,tu.Z.MIN_ROW_HEIGHT*i),this.refreshHandlePosition(),this.refreshGuidePosition()}}async onMouseUp(){if(this.pressed){this.hideHandleAndGuide(),this.pressed=!1;let e=Math.floor(this.currentHeight/this.getView().viewport.getZoomLevel());if(e!==this.getSheet().getRowResizePlugin().getManualSize(this.currentRow)){let t=this.getSheet().sheetId,i=this._getMultiRanges();await this.getAction().resizeRows(t,i,e)}this.getHot().focusInputField()}}afterSetZoomLevel(e){let t=this.handle.style;this.handleHeight=Math.floor(3*e),t.height=this.handleHeight+"px",t.width=Math.floor(gK*e)+"px",this.guide.style.marginTop=t.height}_getMultiRanges(){let e=this.currentRow,t=this.getSheet().countCols(),i=!1,n=[];return(ea(this.getHot().getMultiSelectedRange(),o=>{o.getWidth()===t&&(n.push(o),i=i||o.includes({row:e,col:0}))}),0!==n.length&&i)?n:[new eA.GJ(e,0,e,t-1,eA.Y3.row)]}_getMultiRangeAutoSize(e){return tA(e,"row").map(e=>{let t=[];for(let i=e.from;i<=e.to;i++)t.push(null);return t})}}let gQ={row:"height",col:"width"},g$="manual-move-row-grab",gJ="manual-move-col-grab",g0="manual-move-active";function g1(e,t,i){return"row"===e?t.viewport.getRowOffset(i):t.viewport.getColOffset(i)}class g2 extends c6{static #e=this.pluginName="synoManualMove";constructor(e){super(e),this._offsetCache={},this.activeType=null,this.from=null,this.to=null,this.delta=0;let t=this.getView();this.grab={row:u9(t.scrollableBottomLeft,g$),col:u9(t.scrollableTopRight,gJ)},this.cornerGrab={row:u9(t.scrollableTopLeft,g$),col:u9(t.scrollableTopLeft,gJ)};let i=this.getHot().rootElement;this.block={row:u9(i,"manual-move-row-block"),col:u9(i,"manual-move-col-block")},this.guide={row:u9(i,"manual-move-row-guide"),col:u9(i,"manual-move-col-guide")},this.mouseDownRef=e=>this.onMouseDown(e),this.mouseMoveRef=e=>this.onMouseMove(e),this.mouseUpRef=()=>this.onMouseUp(),this.selectionChangeRef=()=>this.reset()}initHook(){let e=this.getHot();e.addHook("afterSelectionEnd",()=>this.afterSelectionEnd()),e.addHook("beforeHideSheet",()=>this.beforeHideSheet()),e.addHook("afterCreateRow",(e,t)=>this.afterAlterGrid(e,"row",t)),e.addHook("afterCreateCol",(e,t)=>this.afterAlterGrid(e,"col",t)),e.addHook("afterRemoveRow",(e,t)=>this.afterAlterGrid(e,"row",t)),e.addHook("afterRemoveCol",(e,t)=>this.afterAlterGrid(e,"col",t)),e.addHook("onTargetMouseDown",this.mouseDownRef),e.addHook("afterSelection",this.selectionChangeRef),e.addHook("afterDeselect",this.selectionChangeRef)}reset(){var e,t,i,n;if(!this.activeType)return;let o=this.getHot(),a=o.selections.multiSelections.get(0);o.selectionView.updateSelection(a),e=this.grab[this.activeType],r(e,g0),t=this.cornerGrab[this.activeType],r(t,g0),i=this.block[this.activeType],r(i,g0),n=this.guide[this.activeType],r(n,g0),o.removeHook("onTargetMouseOver",this.mouseMoveRef),o.removeHook("onTargetMouseUp",this.mouseUpRef),this.activeType=null,this._offsetCache={},this.from=null,this.to=null,this.delta=0}afterSelectionEnd(){if(this.getWorkbook().isReadonly())return;let e=this.getHot().getMultiSelectedRange();if(e&&1===e.length){let t=this.getHot().selections.multiSelections.selectedHeader;if(t.row!==t.col){let i=this.getSheet(),n=e[0].clone().normalize();if(n.getHeight()===i.countRows()!=(n.getWidth()===i.countCols())){let e;if(t.row?e="row":t.col&&(e="col"),e)return void this._setupPosition(e,n)}}}this.activeType&&this.reset()}_setupPosition(e,t){var i,n;this.activeType=e;let r=this.getView();"row"===e?(t.from.col=-1,t.to.col=-1):(t.from.row=-1,t.to.row=-1);let{x:a,y:s,width:l,height:c}=r.getRangeViewOffset(t.from.row,t.from.col,t.to.row,t.to.col),d="row"===e?s:a,u="row"===e?c:l;r.setViewPosition(this.cornerGrab[e],s,a),this.cornerGrab[e].style[gQ[e]]=u+"px",i=this.cornerGrab[e],o(i,g0),r.setViewPosition(this.grab[e],s,a),this.grab[e].style[gQ[e]]=u+"px",n=this.grab[e],o(n,g0),this._offsetCache.offset=d,this._offsetCache.size=u,this.from=t.from[e],this.to=t.to[e]}onMouseDown(e){let t=this.activeType;if(t&&(e.target===this.grab[t]||e.target===this.cornerGrab[t])&&0===e.button&&!(0,dl.lz)(e)){let{size:i,offset:n}=this._offsetCache;"row"===t?this.setupRowBlock(e,n,i):this.setupColBlock(e,n,i);let o=this.getHot();o.runHooks("afterManualMoveSetup",t);let r=o.selections.multiSelections.get(0);o.selectionView.hideSelectionBorder(r),o.addHook("onTargetMouseOver",this.mouseMoveRef),o.addHook("onTargetMouseUp",this.mouseUpRef),u6(e)}}setupRowBlock(e,t,i){let n=this.getView();t>n.getFreezeSize().freezeHeight&&(t-=n.getScrollTop());let o=n.viewport.getLeftOffset()-tu.Z.ROW_HEADER_WIDTH,r=n.viewport.getRightOffset()-n.getScrollLeft(),a=Math.min(n.getViewWidth(),r)-o;this.setupBlockStyle("row",{x:o,y:t,width:a,height:i}),this._offsetCache.blockOffset=t,this._offsetCache.pagePosition=e.pageY}setupColBlock(e,t,i){let n=this.getView();t>n.getFreezeSize().freezeWidth&&(t-=n.getScrollLeft());let o=n.viewport.getTopOffset()-tu.Z.COL_HEADER_HEIGHT,r=n.viewport.getBottomOffset()-n.getScrollTop(),a=Math.min(n.getViewHeight(),r)-o;this.setupBlockStyle("col",{x:t,y:o,width:i,height:a}),this._offsetCache.blockOffset=t,this._offsetCache.pagePosition=e.pageX}setupBlockStyle(e,t){var i,n;let{x:a,y:s,width:l,height:c}=t;i=this.grab[e],r(i,g0),n=this.cornerGrab[e],r(n,g0);let d=this.getView(),u=this.block[e];d.setViewPosition(u,s,a),u.style.width=`${l}px`,u.style.height=`${c}px`;let h=this.guide[e];d.setViewPosition(h,s,a),"row"===e?h.style.width=`${l}px`:h.style.height=`${c}px`,o(u,g0),o(h,g0)}onMouseMove(e){let t,i=this.activeType;if(!i)return;let n=this.getView(),o=n.isRtl(),{pagePosition:r,blockOffset:a}=this._offsetCache,s=("row"===i?e.pageY:e.pageX)-r;"col"===i&&o&&(s*=-1);let l="row"===i?"top":o?"right":"left";this.block[i].style[l]=Math.max(a+s,g1(i,n,0))+"px";let c=n.getCoordFromEvent(e);c[i]<0&&(c[i]=0);let d=this.from,u=this.to;c[i]<d?(t=g1(i,n,c[i]),this.delta=c[i]-d):c[i]>u?(t=g1(i,n,c[i]+1),this.delta=c[i]-u):(t=g1(i,n,d),this.delta=0),t>n.getFreezeSize()["row"===i?"freezeHeight":"freezeWidth"]&&(t-="row"===i?n.getScrollTop():n.getScrollLeft()),this.guide[i].style[l]=t+"px"}onMouseUp(){var e;if(!this.activeType||(e=this.block[this.activeType],!n(e,g0)))return;let{activeType:t,delta:i}=this,o=this.from,r=this.to,a="row"===t?"moveRow":"moveCol",s=null,l=this.getSheet().sheetId;s=i<0?this.getAction()[a](l,o+i,-i,r-o+1,!0):i>0?this.getAction()[a](l,o,r-o+1,i,!1):Promise.resolve(!1),this.reset(),s.then(e=>{e?this._updateSelection(t,o,r,i):this.afterSelectionEnd(),this.getHot().focusInputField()}).catch(()=>{})}_updateSelection(e,t,i,n){let o=this.getSheet(),r={row:0,col:0},a={row:o.countRows()-1,col:o.countCols()-1};r[e]=t+n,a[e]=i+n,this.getHot().selectCell(r.row,r.col,a.row,a.col,!1)}beforeHideSheet(){this.activeType&&this.reset()}afterAlterGrid(e,t,i){e!==this.getSheet().sheetId||this.activeType!==t||this.to<i||this.reset()}}class g3 extends c6{static #e=this.pluginName="synoMergeCell";constructor(e){super(e),this.lastDesiredCoords=null}initHook(){let e=this.getHot();e.addHook("modifyTransformStart",(e,t)=>this.modifyTransformStart(e,t)),e.addHook("modifyTransformEnd",(e,t)=>this.modifyTransformEnd(e,t)),e.addHook("afterSetRangeStart",e=>this.afterSetRangeStart(e)),e.addHook("beforeSetRangeEnd",(e,t)=>this.beforeSetRangeEnd(e,t)),e.addHook("beforeRefreshSelections",()=>this.beforeRefreshSelections())}modifyTransformStart(e,t){let i,n={row:e.row,col:e.col},o=this.getSheet().getMergePlugin(),r={row:t.highlight.from.row,col:t.highlight.from.col},a=o.getMergedRange(r.row,r.col);a&&(i=a.clone(),this.lastDesiredCoords&&!i.includes(this.lastDesiredCoords)&&(this.lastDesiredCoords=null),n.row=this.lastDesiredCoords?this.lastDesiredCoords.row-r.row:n.row,n.col=this.lastDesiredCoords?this.lastDesiredCoords.col-r.col:n.col,e.row>0?n.row=a.to.row-r.row+e.row:e.row<0&&(n.row=r.row-a.from.row+e.row),e.col>0?n.col=a.to.col-r.col+e.col:e.col<0&&(n.col=r.col-a.from.col+e.col));let s={row:t.highlight.from.row+n.row,col:t.highlight.from.col+n.col},l=o.getMergedRange(s.row,s.col);l&&(this.lastDesiredCoords=s,n={row:l.from.row-r.row,col:l.from.col-r.col}),0!==n.row&&(e.row=n.row),0!==n.col&&(e.col=n.col)}modifyTransformEnd(e,t){let i,n,o={row:e.row,col:e.col};for(let e of this.getSheet().getMergePlugin().traverseMergedRange()){if(n=t.getBordersSharedWith(e),e.isEqual(t))t.setDirection("NW-SE");else if(n.length>0){let i=t.highlight,o=i.from.row===e.from.row&&i.from.col===e.from.col;n.indexOf("top")>-1?t.to.row>=e.from.row&&t.to.col>=e.from.col&&o?t.setDirection("NW-SE"):t.to.row>=e.from.row&&t.to.col<=e.from.col&&o&&t.setDirection("NE-SW"):n.indexOf("bottom")>-1&&(t.to.row<=e.from.row&&t.to.col>=e.from.col&&o?t.setDirection("SW-NE"):t.to.row<=e.from.row&&t.to.col<=e.from.col&&o&&t.setDirection("SE-NW"))}let r=!!((i={row:t.to.row+o.row,col:t.to.col+o.col}).row>=e.from.row)&&!!(i.row<=e.to.row),a=!!(i.col>=e.from.col)&&!!(i.col<=e.to.col);t.includesRange(e)&&(e.includes(i)||r||a)&&(r&&(o.row<0?o.row-=e.to.row-e.from.row:o.row>0&&(o.row+=e.to.row-e.from.row)),a&&(o.col<0?o.col-=e.to.col-e.from.col:o.col>0&&(o.col+=e.to.col-e.from.col)))}0!==o.row&&(e.row=o.row),0!==o.col&&(e.col=o.col);let r=this.getSheet(),a=r.countRows(),s=r.countCols();t.from.row<0?t.from.row=0:t.from.row>0&&t.from.row>=a&&(t.from.row=a-1),t.from.col<0?t.from.col=0:t.from.col>0&&t.from.col>=s&&(t.from.col=s-1)}afterSetRangeStart(e){this.modifyHighlight(e&&e.highlight)}modifyHighlight(e){if(!e)return;let t=this.getSheet().getMergePlugin().getMergedRange(e.from.row,e.from.col);t&&(e.from.row=t.from.row,e.from.col=t.from.col,e.to.row=t.to.row,e.to.col=t.to.col)}beforeRefreshSelections(){let e=this.getHot().selections.multiSelections,t=e.getActive();e.forAll(e=>(e.cellRange&&e.cellRange.type===eA.Y3.cell&&(this.expandSelection(e.cellRange),e===t&&(this.modifyHighlight(e.cellRange.highlight),this.getHot().runHooks("highlightchanged",e.cellRange.highlight))),!0))}beforeSetRangeEnd(e,t){t.row||t.col||this.expandSelection(e)}expandSelection(e){this.getSheet().getMergePlugin().expandSelection(e)}expandCoords(e){let{row:t,col:i}=e;return this.getSheet().getMergePlugin().getMergedRange(t,i)??new eA.GJ(t,i,t,i)}nextHighlight(e,t){return this.getSheet().getMergePlugin().nextHighlight(e,t)}}function g4(e){let{sheetId:t,row:i,col:n,img:o}=e;return`${t},${i??""},${n??""},${o??""}`}function g5(e){let[t]=e.split(",",1);return t}class g6 extends c6{static #e=this.pluginName="synoOnlinePeer";constructor(e){super(e),this.peers=new Map,this.targetViewMap=new g8,this.hoveredTargets=new Set,this.showTooltipOnMove=!0,this.previousSheetId=void 0}initHook(){let e=this.getHot();e.addHook("afterOnCellMouseOver",(e,t,i,n)=>this.afterOnCellMouseOver(e,t,i,n)),e.addHook("afterSetZoomLevel",e=>this.afterSetZoomLevel(e)),e.addHook("afterUpdateRtl",e=>this.afterUpdateRtl(e)),e.addHook("beforeRefreshSelections",()=>this.beforeRefreshSelections()),e.addHook("afterRenderComplete",()=>this.afterRenderComplete())}setShowTooltipOnMove(e){this.showTooltipOnMove=e}clear(){this.peers.clear(),this.getHot().fastRender()}updatePeers(e){for(let t of e){if(!t.selection)return;this.update(t,!0)}}update(e,t){if(!e||!e.selection)return;let i=e.clientId,n=this.peers.get(i),o=null;n?(o={...n.selection},n.selection.row=e.selection.row,n.selection.col=e.selection.col,n.selection.img=e.selection.img,n.selection.sheetId=e.selection.id):(n=this.createNewPeer(e),this.peers.set(i,n)),o&&this.leaveTarget(n.clientID,o);let r=this.enterTarget(n,{...n.selection});this.showTooltipOnMove&&t&&this.setTooltipTimeout(r,i);let a=this.getCurrentSheetId();(a===o?.sheetId||a===n.selection.sheetId)&&this.getHot().fastRender("delay")}remove(e){let t=this.peers.get(e);if(!t)return;let i=t.selection;this.leaveTarget(t.clientID,i),this.peers.delete(e),this.getCurrentSheetId()===t.selection.sheetId&&this.getHot().fastRender("delay")}triggerTooltip(e){let t=this.peers.get(e);if(!t)return;let i=this.enterTarget(t,{...t.selection});this.showTooltipOnMove&&this.setTooltipTimeout(i,e),this.getCurrentSheetId()===t.selection.sheetId&&this.getHot().fastRender("delay")}showTooltipOnAvatarClick(e){let t=this.peers.get(e);t&&this.addHoveredTarget(t.selection)}beforeRefreshSelections(){let e=this.getCurrentSheetId();this.getHot().selections.onlinePeerSelections=Array.from(this.peers.values()).filter(t=>{let{selection:{sheetId:i,img:n}}=t;return i===e&&!n}).map((e,t)=>{let{selectionView:i,selection:{row:n,col:o}}=e;return void 0!==n&&void 0!==o&&(i.cellRange=this.getHot().getPlugin("synoMergeCell")?.expandCoords({row:n,col:o})??new eA.GJ(n,o,n,o),e.weight=t),i})}afterRenderComplete(){let e=this.getCurrentSheetId();for(let t of[...e?this.targetViewMap.getAllOfSheet(e):[],...this.previousSheetId!==e&&this.previousSheetId?this.targetViewMap.getAllOfSheet(this.previousSheetId):[]])this.updateTargetTooltip(t.selection);this.previousSheetId=this.getCurrentSheetId()}afterOnCellMouseOver(e,t,i,n){if(this.getHot().isRangeSelecting())return;let o=this.getCurrentSheetId();if(!o)return;this.clearHoveredTargets();let r=this.getHot().getPlugin("synoDrawingController"),a=r?.getDrawingByEvent(e);if(a)this.addHoveredTarget({sheetId:o,img:a.id});else{let e=i?i.from.row:t.row,n=i?i.from.col:t.col;this.addHoveredTarget({sheetId:o,row:e,col:n})}}afterSetZoomLevel(e){this.updateAllTooltipTransform({level:e})}afterUpdateRtl(e){this.updateAllTooltipTransform({isRtl:e})}createNewPeer(e){var t,i;let n=e.clientId,o=e.color;return{clientID:n,selectionView:new h_(null,null,(t=0,i=o,`2px solid ${i}`),"online-peer"),color:o,weight:0,selection:{row:e.selection.row,col:e.selection.col,img:e.selection.img,sheetId:e.selection.id}}}enterTarget(e,t){let i=g4(t),n=this.targetViewMap.get(i);return n||(n=this.createTargetView(t),this.targetViewMap.set(i,n)),n.peers.set(e.clientID,e),n}leaveTarget(e,t){let i=g4(t),n=this.targetViewMap.get(i);n&&(n.peers.delete(e),this.deleteTooltipTimeout(n,e),0===n.peers.size&&(n.tooltipEl.remove(),this.targetViewMap.delete(i)))}setTooltipTimeout(e,t){e.timeouts.has(t)&&this.deleteTooltipTimeout(e,t);let i=setTimeout(()=>{this.deleteTooltipTimeout(e,t),this.updateTargetTooltip(e.selection)},3e3);e.timeouts.set(t,i)}deleteTooltipTimeout(e,t){let i=e.timeouts.get(t);i&&(clearTimeout(i),e.timeouts.delete(t))}addHoveredTarget(e){let t=g4(e),i=this.targetViewMap.get(t);i&&(i.isHovered=!0,this.hoveredTargets.add(t),this.updateTargetTooltip(e))}clearHoveredTargets(){for(let e of this.hoveredTargets){let t=this.targetViewMap.get(e);t&&(t.isHovered=!1,this.updateTargetTooltip(function(e){let[t,i,n,o]=e.split(",");return{sheetId:t,row:""===i?void 0:Number(i),col:""===n?void 0:Number(n),img:o||void 0}}(e)))}this.hoveredTargets.clear()}createTargetView(e){let t=this.getView(),i=u9(this.getHot().rootElement,"peerTips");return function(e){let t=e.style;t.display="none",t.position="fixed",t.boxSizing="border-box",t.padding="3px",t.color="white",t.zIndex="112",t.maxWidth="400px",t.overflowWrap="break-word"}(i),g7(i,t.viewport.getZoomLevel(),t.isRtl()),{tooltipEl:i,selection:e,peers:new Map,timeouts:new Map,isHovered:!1}}updateTargetTooltip(e){let t=this.targetViewMap.get(g4(e));if(!t)return;let i=t.tooltipEl.style;(t.timeouts.size>0||t.isHovered)&&this.getCurrentSheetId()===e.sheetId?(i.display="block",this.updateTooltipContent(t),i.display=this.updateTooltipPosition(t)?"block":"none"):i.display="none"}updateTooltipPosition(e){let t=this.getView();if(!this.getHot().sheet)return!1;let{row:i,col:n,img:o}=e.selection;if(void 0!==i&&void 0!==n){let{x:o,y:r,width:a,height:s}=t.getRangeViewBound(i,n,i,n,!0);return!(a<=0)&&!(s<=0)&&(this.setTooltipPosition(e,r,o-1),!0)}let r=this.getHot().getPlugin("synoDrawingController"),a=o&&r?r.getDrawingViewBound(o):null;return!!a&&(this.setTooltipPosition(e,a.top,a.left),!0)}setTooltipPosition(e,t,i){let n=this.getView(),o=this.getHot().rootElement.getBoundingClientRect(),r=e.tooltipEl.style;r.left=n.isRtl()?"":`${i+o.left}px`,r.right=n.isRtl()?`${i+(window.innerWidth-o.right)}px`:"",r.top=`${o.top+t-e.tooltipEl.offsetHeight*n.viewport.getZoomLevel()}px`}updateTooltipContent(e){let t=(0,ap.Z)([...e.peers.keys()]);!function(e,t){let i=e.firstChild;i&&3===i.nodeType&&null===i.nextSibling?u3?i.textContent=t:i.data=t:(u2(e),e.appendChild(document.createTextNode(t)))}(e.tooltipEl,this.getHot().getUIBridge().getPeerTooltip(t)),e.tooltipEl.style.background=this.getColor(t)}updateAllTooltipTransform(e){let{level:t,isRtl:i}=void 0===e?{}:e;for(let e of(t??=this.getView().viewport.getZoomLevel(),i??=this.getView().isRtl(),this.targetViewMap.values()))g7(e.tooltipEl,t,i)}getColor(e){let t;for(let i of e){let e=this.peers.get(i);(!t||e&&e.weight>t.weight)&&(t=e)}return t?t.color:""}getCurrentSheetId(){return this.getSheet()?.sheetId}}class g8{constructor(){this.maps=new Map}get(e){let t=g5(e),i=this.maps.get(t);return i?.get(e)}set(e,t){let i=g5(e),n=this.maps.get(i);n||(n=new Map,this.maps.set(i,n)),n.set(e,t)}delete(e){let t=g5(e),i=this.maps.get(t);return i?.delete(e)??!1}*values(){for(let e of this.maps.values())yield*e.values()}getAllOfSheet(e){let t=this.maps.get(e);return t?Array.from(t.values()):[]}}function g7(e,t,i){u7(e,t,i?"right top":"left top")}function g9(e,t){return e<0?0:e>=t.length?t[t.length-1]:t[e]}function me(e,t){return t<e[0]?-1:dn(e,t)}class mt{constructor(e,t){this.rowOffset=e,this.colOffset=t}getColOffset(e){return g9(e,this.colOffset)}getRowOffset(e){return g9(e,this.rowOffset)}getColByOffset(e){return me(this.colOffset,e)}getRowByOffset(e){return me(this.rowOffset,e)}}var mi=i(97545);let mn=[["cjk","symbol","symbolCjk"],["kana"],["hangui"],["arabic"],["thai"]].reduce((e,t)=>(e&&(e+="|"),e+(0,mi.createUnicodeMatchString)(...t)),"");var mo=i(88136);let mr=class extends ph{constructor(e,t,i,n,o,r){super({drawer:new pb(e,{scale:o.scaleRatio,rtl:t.isRtl()})},t,i,n,o,r),this._pdf=e,this._ctx=this._pdf.getContext()}createRtlBidiRuns(e,t){return(0,mo.WordShaper)(e).split("").map(e=>({text:hX.getMirroredCharacter(e)??e,font:t,isRtl:!1}))}createRtlTextCellView(e,t,i){void 0===i&&(i=1/0);let n=h5(h4("string"==typeof e?this.createRtlBidiRuns(e,null):e.v.map(e=>{let{tx:t,s:i}=e;return this.createRtlBidiRuns(t,i)}).flat(),t),i),o=new hH("rtl");for(let{inlines:e,metrics:i}of n){let n=new hz(i),r=function(e,t){let i=h$(e,"rtl");return hX.getReorderedIndices(e,i)}(e.map(e=>{let{text:t}=e;return t}).join(""),0);for(let i=0;i<e.length;i++){let o=h6(e[r[i]]);for(let e of this.translateTextViewFragment(o,t.font))n.addTextFragment(e)}o.addTextLine(n)}return o}translateTextViewFragment(e,t){let i=function(e){let t,i=[],n=[],o="",r="",a=RegExp(mn,"g"),s=-1;for(;t=a.exec(e);){if(r=o,s!==t.index-1&&(0<n.length&&(i.push({fontFamily:o,text:n.join("")}),n=[]),i.push({fontFamily:"",text:e.substring(s+1,t.index)})),o="",!function(e){let t=e.codePointAt(0);return t>=8358&&t<=8364||[8355,8356,8369,8377,8378,8380,8381].includes(t)}(t[0])){for(let e=1;e<=5;e++)if(void 0!==t[e]){if(1===e){o="c";break}else if(2===e){o="j";break}else if(3===e){o="k";break}else if(4===e){o="arabic";break}else if(5===e){o="thai";break}}}0!==t.index&&o!==r&&(i.push({fontFamily:r,text:n.join("")}),n=[]),n.push(t[0]),s=t.index}return 0<n.length&&i.push({fontFamily:o,text:n.join("")}),s+1<e.length&&i.push({fontFamily:"",text:e.substr(s+1)}),i}(e.getText()),n=e.getFont()||t;return i.map(t=>{let i=n.clone().assign({name:t.fontFamily||"roboto"});this._ctx.font=hU(i);let o=this._ctx.measureText(t.text).width;return new hV(t.text,o,i,e.getRtl())})}_createTextCellView(e,t,i,n){if("rtl"===i)return this.createRtlTextCellView(e,t,n);let o=super._createTextCellView(e,t,i,n),r=new hH(o.getDirection());for(let e of o){let i=new hz({height:e.getLineHeight(),lineBoxAscent:e.getBaselineOffset()});for(let n of e)for(let e of this.translateTextViewFragment(n,t.font))i.addTextFragment(e);r.addTextLine(i)}return r}};class ma extends pb{constructor(e,t,i){var n,o,r;super(t,i),this.currentCell=null,this.pageDom=e,this.cellTransformFn=(n=i.scale??1,o=i.rtl??!1,r=t.width,o?e=>`translate(${r}px) scale(${n}) translate(${-e.x-e.width}px, ${e.y}px)`:e=>`scale(${n}) translate(${e.x}px, ${e.y}px)`),this.pageDom.style.position="relative",this.pageDom.style.overflow="hidden",this.pageDom.style.printColorAdjust="exact",this.pageDom.style.textSizeAdjust="none"}drawCellText(e,t,i){if(!e.text)return;let n=this.pageDom.appendChild(document.createElement("div"));n.style.position="absolute",n.style.left="0px",n.style.top="0px",n.style.width=`${t.width}px`,n.style.height=`${t.height}px`,n.style.overflow="hidden",n.style.transform=this.cellTransformFn(t),n.style.transformOrigin="0 0",this.currentCell={x:t.x,y:t.y,div:n},super.drawCellText(e,t,i),this.currentCell=null}_drawTextLine(e,t,i,n){if(!this.currentCell)return;let o=this.currentCell.div.appendChild(document.createElement("div"));for(let r of(o.style.position="absolute",o.style.top=`${t-this.currentCell.y}px`,o.style.left=`${e-this.currentCell.x}px`,o.style.textWrap="nowrap",o.dir=n.text.getDirection(),i)){let e=o.appendChild(document.createElement("span"));e.textContent=r.getText();let t=pv(n,r);e.style.color=t.color,e.style.font=hU(t);let i="";t.strike&&(i+="line-through "),t.underline&&(i+="underline "),i&&(e.style.textDecoration=`${i}${t.color}`)}}}class ms{constructor(e,t,i,n){this.dataBridge=e,this.sheet=t,this.printOption=i,this.uiBridge=n,this.fitRatio=1,this.rowOffset=[],this.colOffset=[],this.setup()}setup(){this.setupRowOffset(),this.setupColOffset()}setupRowOffset(){let e=tu.Z.COL_HEADER_HEIGHT;this.rowOffset=[e];let t=this.sheet.countRows();for(let i=0;i<t;i++)e+=this.sheet.getRowHeight(i),this.rowOffset.push(e)}setupColOffset(){let e=tu.Z.ROW_HEADER_WIDTH;this.colOffset=[e];let t=this.sheet.countCols();for(let i=0;i<t;i++)e+=this.sheet.getColWidth(i),this.colOffset.push(e)}getUIBridge(){return this.uiBridge}async print(e,t){void 0===t&&(t=3);let{coordImages:i,coordCharts:n}=await this.getDrawings(e??new eA.GJ(0,0,this.sheet.countRows()-1,this.sheet.countCols()-1),t);e||(e=await this.findRange(i,n)),this.fitRatio=await this.calcFitRatio(e),await Promise.all(i.concat(n).map(e=>e.promise)),await this.printRange(e,i,n)}async calcFitRatio(e){let t=[];for(let i=e.from.row;i<=e.to.row;i++)this.sheet.isHiddenRow(i)||t.push(i);let i=[];for(let t=e.from.col;t<=e.to.col;t++)this.sheet.isHiddenCol(t)||i.push(t);let n=new ph({drawer:new pb(document.createElement("canvas"),{scale:1,rtl:this.sheet.isRtl()})},this.sheet,t,i,{},this.getUIBridge()).measureGrid();this.sheet.setRenderHeights(n),this.setupRowOffset();let{height:o,width:r,fit:a}=this.printOption,s=o/(this.rowOffset[e.to.row+1]-this.rowOffset[e.from.row]+1),l=r/(this.colOffset[e.to.col+1]-this.colOffset[e.from.col]+1);return!0===a?Math.min(1,s,l):"width"===a?Math.min(1,l):"height"===a?Math.min(1,s):1}async findRange(e,t){let i=this.sheet,n=i.getCfPlugin(),o=i.countCols(),r=i.countRows(),a=0;for(let e=0;e<r;e++)if(!i.isHiddenRow(e)){a=e;break}let s=0;for(let e=0;e<o;e++)if(!i.isHiddenCol(e)){s=e;break}let l=a,c=s;for(let e=0;e<r;e++)if(!i.isHiddenRow(e))for(let t=o-1;t>=0;t--){if(i.isHiddenCol(t))continue;let o=this.sheet.getComputedCellStyle(e,t),r=this.sheet.getDataAtCell(e,t),a=i.getCellTextDesc(e,t)?.v;if(a){let s=t,d=o.getAlignment(),u=i.ensureCellDirection(e,t),h=d.halign||("rtl"===u?"right":"left");if(a&&("left"===h||"center"===h)&&!d.wrap){let i=n.getComputedCfStyle(e,t)??void 0,l=h3((0,ts.is)(r)?r:a,{font:o.getFont(),forceBold:i?.bold,forceItalic:i?.italic},u),c=po(this.sheet.getCellProperty(e,t,"pivot")),d=ph.getOverflowWidth(this.colOffset[t+1]-this.colOffset[t],l,h,c).right;s=this.findColIndex(this.colOffset[t+1]+d)}l=e,c=Math.max(c,s);break}!(t>c)||o.getFill().isDefault()&&o.getBorder().isDefault()||(l=e,c=t)}for(let e of i.getMergePlugin().traverseMergedRange())l=Math.max(l,e.to.row),c=Math.max(c,e.to.col);for(let t=0;t<e.length;t++)l=Math.max(l,e[t].endRow),c=Math.max(c,e[t].endCol);for(let e=0;e<t.length;e++)l=Math.max(l,t[e].endRow),c=Math.max(c,t[e].endCol);for(let e of this.dataBridge.getWorkbook().getPivotTableManager().listEmptyPivotRanges(i.sheetId))l=Math.max(l,e.to.row),c=Math.max(c,e.to.col);return l=Math.min(l,r-1),c=Math.min(c,o-1),new eA.GJ(a,s,l,c)}async getDrawings(e,t){let i=this.dataBridge.getWorkbook(),n=new dr(new mt(this.rowOffset,this.colOffset)),o=this.filterDrawing(this.sheet.getDrawingPlugin().getImagesJSON(),e,n),r=this.filterDrawing(this.sheet.getDrawingPlugin().getChartsJSON(),e,n);function a(e){return new Promise(t=>{if(e.src&&e.complete)return void t();e.onload=t,e.onerror=t})}let s=i.getVersion(),l=await Promise.all(o.map(async e=>{let t=e.json,i=document.createElement("img");return i.src=await this.uiBridge.getImageDisplayURL(t.path,s),{...e,drawable:i,promise:a(i)}})),c=document.createElement("div");document.body.appendChild(c);let d=new gp(c),u=r.filter(e=>e.json.chartInfo.isDrawable()).map(e=>{let i=e.json.chartInfo,n=e.domPosition,o=document.createElement("img");return c.style.width=n.width+"px",c.style.height=n.height+"px",d.resize(),d.draw(i),o.src=d.getDataURL({pixelRatio:t}),{...e,drawable:o,promise:a(o)}});return d.destroy(),document.body.removeChild(c),{coordImages:l,coordCharts:u}}filterDrawing(e,t,i){return e.map(e=>{let n=i.toAbsolutePosition(e.position),o=this.findRowIndex(n.top),r=this.findRowIndex(n.top+n.height),a=this.findColIndex(n.left),s=this.findColIndex(n.left+n.width);return o>t.to.row||r<t.from.row||a>t.to.col||a<t.from.col?null:{startRow:o,startCol:a,endRow:r,endCol:s,domPosition:n,json:e}}).filter(eT)}findRowIndex(e){return Math.max(eu(this.rowOffset,e)-1,0)}findColIndex(e){return Math.max(eu(this.colOffset,e)-1,0)}genRenderOptions(e){return{scaleRatio:e,includeHeader:!1,mode:"print",gridColor:this.printOption.showGrid?hT.BORDER_COLOR:null}}cutPage(e,t,i,n){function o(t,i,n,o){let r=[],a=e.from[t],s=n[a]+i,l=[];for(r.push({preOffset:-1,indices:l}),o(a)||l.push(a),a+=1;a<=e.to[t];)s<n[a+1]&&(s=n[a]+i,r.push({preOffset:-1,indices:l=[]})),o(a)||l.push(a),a+=1;return r}return{rowsCut:o("row",i/n,this.rowOffset,e=>this.sheet.isHiddenRow(e)),colsCut:o("col",t/n,this.colOffset,e=>this.sheet.isHiddenCol(e))}}printPage(e,t,i,n,o,r,a){e.generateRenderInfo(),e.drawAll();let{startX:s,startY:l}=o,c=i[0],d=i[i.length-1],u=n[0],h=n[n.length-1],p=this.rowOffset[c],f=this.colOffset[u],g=t.getContext("2d");this.drawDrawings(g,r,a,{row:c,col:u,rowOffset:p-l,colOffset:f-s},{row:d,col:h})}drawDrawings(e,t,i,n,o){e.save();for(let i=0;i<t.length;i++){if(t[i].startRow>o.row||t[i].endRow<n.row||t[i].startCol>o.col||t[i].endCol<n.col)continue;let{drawable:r,domPosition:a}=t[i];e.drawImage(r,a.left-n.colOffset+1,a.top-n.rowOffset+1,a.width,a.height)}for(let t=0;t<i.length;t++){if(i[t].startRow>o.row||i[t].endRow<n.row||i[t].startCol>o.col||i[t].endCol<n.col)continue;let r=i[t].domPosition,a=r.left-n.colOffset+1,s=r.top-n.rowOffset+1;e.fillStyle="#FFFFFF",e.fillRect(a,s,r.width,r.height),i[t].drawable&&e.drawImage(i[t].drawable,a,s,r.width,r.height),e.strokeStyle="#000000",e.strokeRect(a-.5,s-.5,r.width,r.height)}e.restore()}}class ml extends ms{constructor(e,t,i,n,o,r=!1){super(e,t,n,o),this.wrapper=i,this.textOnDiv=r}createDrawer(e,t,i){return this.textOnDiv?new ma(e,t,i):new pb(t,i)}async printRange(e,t,i){let n=this.genRenderOptions(this.fitRatio),{width:o,height:r}=this.printOption,{rowsCut:a,colsCut:s}=this.cutPage(e,o,r,this.fitRatio),l=[];for(let e=0;e<a.length;e++)for(let c=0;c<s.length;c++){let d=document.createElement("canvas");d.width=o,d.height=r;let u=document.createElement("div");u.style.pageBreakAfter="always";let h=new ph({drawer:this.createDrawer(u,d,{scale:n.scaleRatio,rtl:this.sheet.isRtl()})},this.sheet,a[e].indices,s[c].indices,n,this.getUIBridge());h.measureGrid(),this.printPage(h,d,a[e].indices,s[c].indices,{startX:-s[c].preOffset,startY:-a[e].preOffset,...n},t,i);let p=document.createElement("img");p.style.width=o+"px",p.style.height=r+"px",l.push(new Promise((e,t)=>{p.onload=function(){e()},p.onerror=t,d.toBlob(e=>{e?p.src=URL.createObjectURL(e):t()})})),u.appendChild(p),this.wrapper.appendChild(u)}await Promise.all(l)}}class mc extends ms{constructor(e,t,i,n,o){super(e,t,n,o),this.pdf=i}async printRange(e,t,i){let n=this.genRenderOptions(this.fitRatio),{width:o,height:r}=this.printOption,a=this.printOption.margin??0,{rowsCut:s,colsCut:l}=this.cutPage(e,o,r,this.fitRatio);for(let e=0;e<s.length;e++)for(let o=0;o<l.length;o++)this.printPdfPage(a,s[e].indices,l[o].indices,{startX:-l[o].preOffset+a/this.fitRatio,startY:-s[e].preOffset+a/this.fitRatio,...n},t,i)}printPdfPage(e,t,i,n,o,r){let a=this.pdf,s=t[0],l=t[t.length-1],c=i[0],d=i[i.length-1],u=this.rowOffset[s],h=this.colOffset[c],p=this.rowOffset[l+1],f=this.colOffset[d+1],g=Math.min(a.width-2*e,f-h+1),m=Math.min(a.height-2*e,p-u+1);a.addPage();let v=a.getContext();v.save(),this.sheet.isRtl()?v.rect(a.width-e-g,e,g,m):v.rect(e,e,g,m),v.clip();let b=new mr(a,this.sheet,t,i,n,this.getUIBridge());b.measureGrid(),this.printPage(b,a,t,i,n,o,r),v.restore()}}var md=i(59359);class mu extends c6{static #e=this.pluginName="synoPrint";async printSheets(e,t,i,n){void 0===n&&(n=!1);let o=this.getHot().getDataBridge();for await(let[r,{range:a}]of o.iteratePrintSheet(t))await new ml(o,r,e,i,this.getHot().getUIBridge(),n).print(a)}analyzePrintRange(e){switch(e){case"all_sheet":return this.getWorkbook().getOrder().map(e=>({sheetId:e}));case"selection":return[{sheetId:this.getSheet().sheetId,range:this.getHot().getSelectedRange()?.clone().normalize()}];default:return[{sheetId:this.getSheet().sheetId}]}}async renderToIframe(e,t,i,n){let{printRange:o,orientation:r}=n,a=document.createElement("div"),s=e.contentDocument;s.body.appendChild(a);let l=this.analyzePrintRange(o);await this.printSheets(a,l,i,!0);let c=s.createElement("style");c.type="text/css",c.textContent=`@page { size: ${r}; }`,s.head.appendChild(c);let d=s.createElement("title");d.textContent=t,s.head.appendChild(d);let u=a.lastChild;u&&(u.style.pageBreakAfter="avoid")}async execPrint(e,t,i,n){let o=document.createElement("iframe");try{await new Promise((e,t)=>{o.onload=e,o.onerror=t,document.body.appendChild(o)});let n=o.contentDocument,r=n.createElement("style");r.textContent=(0,md.extractCSSFontFaceRulesText)(document.styleSheets),n.head.appendChild(r),n.body.style.margin="0",await (0,md.loadFontFaces)(n.fonts),await this.renderToIframe(o,e,t,i);let a=document.title;document.title=e,await new Promise(e=>{let t,i=o.contentWindow;i.onafterprint=function(){e(!0)};try{t=o.contentDocument.execCommand("print",!1,void 0)}catch{}t||i.print()}),document.title=a}catch{}o.contentDocument.querySelectorAll('img[src^="blob:"]').forEach(e=>{URL.revokeObjectURL(e.src)}),o.remove(),n&&n()}async printPdfs(e,t,i){let n=this.getHot().getDataBridge();for await(let[o,{range:r}]of n.iteratePrintSheet(this.analyzePrintRange(t)))await new mc(n,o,e,i,this.getHot().getUIBridge()).print(r,2)}}class mh{constructor(e,t){this._hot=e,this._className=t.className,this._backgroundColor=t.color,this._topMost=t.topMost??!1,this._divs=[]}destroy(){for(let e=0;e<this._divs.length;e++){let t=this._divs[e];t.parentNode?.removeChild(t)}this._divs=[]}showDivBlocks(e){let t=0;for(let{x:i,y:n,width:o,height:r}of e){if(r<=1||o<=1)continue;let e=this._getDivBlock(t);this._showBlock(e,i,n,o,r),t+=1}for(let e=t;e<this._divs.length;e++)this._hideBlock(this._divs[e])}_getDivBlock(e){if(!this._divs[e]){let t=this._divs[e]=u9(this._hot.rootElement,"syno-o-sh-cell-highlight");t.classList.add(this._topMost?"cover-highlight":"content-highlight"),this._className?t.classList.add(this._className):this._backgroundColor&&(t.style.backgroundColor=this._backgroundColor)}return this._divs[e]}_showBlock(e,t,i,n,o){this._hot.view.setViewPosition(e,i,t),e.style.width=n+"px",e.style.height=o+"px",e.style.display="block"}_hideBlock(e){e.style.display="none"}hideAllBlock(){for(let e=0;e<this._divs.length;e++)this._hideBlock(this._divs[e])}}class mp extends mh{showBlocks(e){let t=this._hot.view,i=this._hot.sheet;if(!i)return;let n=i.getMergePlugin();this.showDivBlocks(e.map(e=>{let i=n.getMergedRange(e.row,e.col);if(i&&(i.from.row!==e.row||i.from.col!==e.col))return null;let o=i?i.to.row:e.row,r=i?i.to.col:e.col;return t.getRangeViewBound(e.row,e.col,o,r,!0)}).filter(eT))}}class mf extends c6{static #e=this.pluginName="synoSearch";constructor(e){super(e),this._cellHighlightHandler=new mp(this.getHot(),{className:"syno-o-sh-search-result"})}initHook(){this.getHot().addHook("afterRender",()=>this.update())}update(){if(!this._cellHighlightHandler)return;let e=this.getSheet(),t=e.getWorkbook().getSearchingResults(e.sheetId);if(0===t.length)return void this._cellHighlightHandler.hideAllBlock();let i=t.map(e=>({row:e.row,col:e.col}));this._cellHighlightHandler.showBlocks(i)}destroy(){this._cellHighlightHandler.destroy(),super.destroy()}}class mg extends c6{static #e=this.pluginName="synoValidation";constructor(e){super(e),this._hoverCoord=null,this._lastValidation=null}initHook(){let e=this.getHot();e.addHook("afterOnCellMouseOver",(e,t,i,n)=>this.afterOnCellMouseOver(e,t,i,n)),e.addHook("beforeOnCellMouseDown",e=>this.beforeOnCellMouseDown(e)),e.addHook("openEditor",(e,t,i,n)=>this.showValidList(e,t,i,n)),e.addHook("closeEditor",()=>this.closeEditor())}afterOnCellMouseOver(e,t,i,n){let o=i?i.from.row:t.row,r=i?i.from.col:t.col,a=this.getSheet().getCellProperty(o,r,"validId"),s=this.getSheet().getCellProperty(o,r,"synoInvalid"),l=a?this.getSheet().getValidationPlugin().getValidationView(a,o,r):null;this._handleMouseOverDropdown(a,e,t,i,n),this._handleTip(!1===s?l:null,t,n)}_handleMouseOverDropdown(e,t,i,n,o){if(!e||!this.getSheet().getValidationPlugin().isDropdownValidation(e))return void this._clearHover();let r=n?n.from.row:i.row,a=n?n.from.col:i.col,s=this.getView(),l=s.viewport.getZoomLevel(),{x:c,y:d,width:u,height:h}=o,p=s.getViewPoint({x:t.pageX,y:t.pageY}),f=this.getSheet();if(r>=f.getFreezePlugin().fixedRowsTop&&d+h/2<=s.getFreezeSize().freezeHeight||f.getFilterPlugin().hasDropdown(r,a)||p.x<c+u-hF.getPadding()*l||p.y<d+h/2-hF.getHeight()*l/2||p.y>d+h/2+hF.getHeight()*l/2)return void this._clearHover();this.isHovering(r,a)||(this._clearHover(),this._hoverCoord={row:r,col:a,renderedRow:i.row,renderedCol:i.col},s.rerenderValidationDropdown(i.row,i.col,!0))}_handleTip(e,t,i){if(e?.showHelp){if(this._lastValidation?.validId!==e.validId){let n=this.getView(),o=n.getCanvasBound(),r=i.x+i.width+o.x,a=i.y+i.height+o.y;this.getHot().getUIBridge().editor.validationTip.show(e,t.row,t.col,n.canvas,r,a),this._lastValidation=e}}else this.getHot().getUIBridge().editor.validationTip.hide(),this._lastValidation=null}beforeOnCellMouseDown(e){if(this.getWorkbook().isReadonly()||!this._hoverCoord||(0,dl.lz)(e))return;let t=this.getHot(),i=t.getActiveEditor(),n=this._hoverCoord;i.finishEditing().then(()=>(t.selectCell(n.row,n.col,n.row,n.col,!1),i.beginEditing(n,null,"tail","validation"))).then(()=>{i.enableFullEditMode()}),u6(e),e.stopPropagation()}async showValidList(e,t,i,n){if(this.getWorkbook().isReadonly()||"top"===n||"function"===n)return;let o=this.getSheet(),r=o.getCellProperty(e,t,"validId");if(!r)return;let a=await this.getHot().getDataBridge().createListRangeItems(o.sheetId,r,e,t);this.getHot().getUIBridge().editor.validationList.show(o,e,t,a)}closeEditor(){this.getHot().getUIBridge().editor.validationList.hide()}isHovering(e,t){return!!this._hoverCoord&&this._hoverCoord.row===e&&this._hoverCoord.col===t}_clearHover(){if(!this._hoverCoord)return;let{renderedRow:e,renderedCol:t}=this._hoverCoord;this._hoverCoord=null,this.getView().rerenderValidationDropdown(e,t,!1)}}function mm(e){let t=typeof e;return"number"===t?!isNaN(e)&&isFinite(e):"string"===t?!!e.length&&(1===e.length?/\d/.test(e):/^\s*(?:[+-]\s*)?(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0x[a-f\d]+)\s*$/i.test(e)):"object"===t&&!!e&&"number"==typeof e.valueOf()&&!(e instanceof Date)}function mv(e){return e.toDataURL("image/png")}class mb{constructor(e){this._printer=e,this._stack=[],this._align="left",this._baseline="top"}set fillStyle(e){if(e.startsWith("rgba(")){let t=tJ(e);this._printer.fillColor(t.color,t.opacity)}else this._printer.fillColor(e)}set strokeStyle(e){if(e.startsWith("rgba(")){let t=tJ(e);this._printer.strokeColor(t.color,t.opacity)}else this._printer.strokeColor(e)}set textAlign(e){this._align=e}set textBaseline(e){this._baseline=e}set font(e){let t=!1,i=!1,n=13.333333,o="roboto";ea(e.split(" "),e=>{'"'===(e=e.toLowerCase())[0]&&'"'===e[e.length-1]&&(e=e.substr(1,e.length-2)),"bold"===e?t=!0:"italic"===e?i=!0:"c"===e||"j"===e||"k"===e||"arabic"===e||"thai"===e||"roboto"===e?o=e:e.endsWith("pt")?n=4*parseInt(e,10)/3:e.endsWith("px")&&(n=parseInt(e,10))}),this._printer.useFont(o,t,i,n)}set lineWidth(e){this._printer.lineWidth(e)}set lineCap(e){this._printer.lineCap(e)}set globalAlpha(e){}set shadowOffsetX(e){}set shadowOffsetY(e){}set shadowBlur(e){}set shadowColor(e){}set direction(e){}save(){this._stack.push({align:this._align,baseline:this._baseline}),this._printer.save()}restore(){this._printer.restore();let e=this._stack.pop();e&&(this._align=e.align,this._baseline=e.baseline)}scale(e,t){this._printer.scale(e,t)}stroke(){this._printer.stroke()}fill(){this._printer.fill()}rect(e,t,i,n){this._printer.rect(e,t,i,n)}strokeRect(e,t,i,n){this._printer.rect(e,t,i,n).stroke()}fillRect(e,t,i,n){this._printer.rect(e,t,i,n).fill()}clearRect(e,t,i,n){this._printer.save(),this._printer.rect(e,t,i,n).fill("white"),this._printer.restore()}beginPath(){}closePath(){this._printer.closePath()}moveTo(e,t){this._printer.moveTo(e,t)}lineTo(e,t){this._printer.lineTo(e,t)}fillText(e,t,i){this._printer.text(e,t,i,{align:this._align,baseline:this._baseline,lineBreak:!1})}clip(){this._printer.clip()}measureText(e){return{width:this._printer.widthOfString(e)}}drawImage(e,t,i,n,o){let r=null;switch(e.tagName){case"IMG":r=function(e){if(e.src.startsWith("data"))return e.src;let t=document.createElement("canvas");return t.width=Math.max(e.naturalWidth,e.width),t.height=Math.max(e.naturalHeight,e.height),t.getContext("2d").drawImage(e,0,0,t.width,t.height),mv(t)}(e);break;case"CANVAS":r=mv(e)}r&&this._printer.image(r,t,i,{width:n,height:o})}quadraticCurveTo(e,t,i,n){this._printer.quadraticCurveTo(e,t,i,n)}transform(e,t,i,n,o,r){this._printer.transform(e,t,i,n,o,r)}}let my=class{constructor(e,t,i){this.width=e,this.height=t,this._printer=i,this._pdfAdapter=new mb(this._printer)}addPage(){this._printer.addPage()}getContext(){return this._pdfAdapter}},mw={editor:[pW,pU,p3,p6,f_,fS,fI,fT,fR,fO,at,fL,fz,fG,f5,f8,c5,f7],history:[p3,p6,f_,fS,fI,fT,fR,fO,fL,fz,f5,c5,f7]},m_={editor:[f9,gt,gx,gA,gT,gR,gG,gq,gX,g2,g3,g6,mu,mf,mg,dc],history:[gx,gA,gR,gG,gq,gX,g3,mg,dc]}},90132:function(e,t,i){"use strict";i.d(t,{Z:()=>n});let n={DEFAULT_ROW_COUNT:100,DEFAULT_COL_COUNT:30,ROW_HEIGHT:21,COL_WIDTH:101,MIN_COL_WIDTH:20,MAX_COL_WIDTH:2e3,MIN_ROW_HEIGHT:21,MAX_ROW_HEIGHT:2e3,ROW_HEADER_WIDTH:50,COL_HEADER_HEIGHT:25,SCHEMA_VERSION:5,DEFAULT_FONT_SIZE:10,DEFAULT_FONT_NAME:"Arial",DEFAULT_FONT_COLOR:"000000",DEFAULT_FILL_COLOR:"FFFFFF",HYPER_LINK_COLOR:"0086E5",PIVOT_TABLE_SIZE_WITH_ROW_COL_FIELD_COUNT_LIMIT:1e4,PIVOT_TABLE_MAX_ROW_COL_FIELD_COUNT:4,PIVOT_TABLE_MAX_SOURCE_SIZE:1e6,PIVOT_TABLE_MAX_ROW_COL_ITEM_COUNT:2e5,PIVOT_TABLE_MAX_CELL_COUNT:1e6}},56325:function(e,t,i){"use strict";i.d(t,{lz:()=>o});var n=i(61367);function o(e){return 2===e.button||(0,n.isMac)()&&e.ctrlKey}},92114:function(e,t,i){"use strict";i.d(t,{lk:()=>f,If:()=>x,zl:()=>p,jF:()=>b,gE:()=>v,Rn:()=>m,H2:()=>g,PX:()=>_});var n=i(55991),o=i(81850),r=i(69845),a=i(82822),s=i(88514),l=i(21452),c=i(32398);let d=function(e){return!0===e||!1===e||(0,c.Z)(e)&&"[object Boolean]"==(0,l.Z)(e)};var u=i(7456),h=i(31076);function p(e,t,i){let o=e.getDataAtCell(t,i),s=e.getCellStyle(t,i),l=null==o||!d(o)&&!(0,a.Z)(o)&&!(0,r.is)(o)&&!(0,n.jr)(o,s),c=f(e,t,i);return(0,r.is)(c)&&(c=c.getText()),{text:c,editable:l}}function f(e,t,i,s){let l=e.getDataAtCell(t,i),c=e.getCellStyle(t,i);return(0,o.O2)(l)&&!c?(0,o.O2)(s)?"":s.toString():(arguments.length<4&&(s=l),function(e,t,i,s){(0,o.O2)(e)&&(e="");let l=s.getSSF(),c=s.getData();if((0,r.is)(e))return e=e.clone(),i?e.insertFirst("'"):e;if(i)return"'"+e;if(t?.isDate())return l.render(c.short_date,e);if(t?.isDuration())return l.render(c.duration,e);if(t?.isTime()&&!(0,u.Z)(e)&&e<1)return l.render(c.long_time,e);else if(t?.isDateTime())return l.render(c.datetime,e);else if(d(e))return e?"TRUE":"FALSE";else if(t?.fc&&(0,n.GA)(t.fc))return l.render(t.fc,e);return(0,a.Z)(e)&&(e=(0,h.ij)(e)),s.getLocaleConverter().localize(e).toString()}(s,c?.getNumberFormat(),c?.getQuotePrefix()??!1,e.getWorkbook().getLocale()))}function g(e,t,i){if((0,n.jr)(t))return t.substr(1);let o=i&&i.text?null:e.getInputParser().parse(t)?.v;return(0,a.Z)(o)||d(o)?o:t?m(t):""}function m(e){return`"${e.replaceAll('"','""')}"`}function v(e,t,i){if((0,a.Z)(t)){if(i&&i.date){let i=e.getData().short_date;try{let n=e.getSSF().format(i,t);if(n.d)return n.v}catch{}}return t.toString()}return d(t)?t?"TRUE":"FALSE":(0,n.u3)(t)?b(t):t?"="+t:""}function b(e){return e.slice(1,e.length-1).replaceAll('""','"')}let y=/(https?:\/\/)?(?:www\.)?[-\w@:%.+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b[-\w()@:%+.~#?&/=*]*/,w=RegExp("^"+y.source+"$");function _(e){return(0,s.Z)(e)&&w.test(e)}function x(e){if(!(0,s.Z)(e)||"="===e[0])return;let t=e.match(y);if(!t||(t.index??0)!==0)return;let i=t[0];if(!y.test(e.slice((t.index||0)+i.length))){if(!t[1])if(!function(e){let t=e.indexOf("/"),i=e;return t>-1&&(i=e.substring(0,t)),["com","ru","net","org","de","jp","uk","br","pl","in","it","fr","info","au","nl","cn","ir","es","cz","biz","kr","ca","eu","za","ua","co","gr","ro","se","tw","mx","vn","ch","at","be","tr","dk","tv","hu","me","ar","us","no","sk","fi","cl","id","nz","pt","by","ie","kz","il","my","cc","hk","sg","lt","edu","io","su","pk","xyz","bg","th","рф","hr","lv","pe","az","ae","rs","tk","ph","si","ee","mobi","pro","ws","ve","asia","ng","pw","gov","sa","nu","club","ma","cat","lk","ge","xxx","fm","uz","is","am","name","gl","moe"].includes(i=i.substr(i.lastIndexOf(".")+1).toLowerCase())}(i))return;else i="http://"+i;return{display:e,location:i}}}},39897:function(e,t,i){"use strict";function n(e,t){return c(t,function(t,i){e[i]=t}),e}function o(e){return null!==e&&"object"==typeof e?JSON.parse(JSON.stringify(e)):e}function r(e){let t={};return c(e,(e,i)=>{t[i]=e}),t}function a(e){return"[object Object]"===Object.prototype.toString.call(e)}function s(e,t,i,n){n.value=i,n.writable=!1!==n.writable,n.enumerable=!1!==n.enumerable,n.configurable=!1!==n.configurable,Object.defineProperty(e,t,n)}function l(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function c(e,t){for(let i in e)if(l(e,i)&&!1===t(e[i],i,e))break;return e}i.d(t,{Fs:()=>l,I8:()=>o,Kn:()=>a,_l:()=>c,d9:()=>r,jW:()=>s,l7:()=>n})},46904:function(e,t,i){"use strict";i.d(t,{J:()=>o,h:()=>r});let n=/^[\w!#$%&'*+\-/=?^`{|}~."\\,()<>]+@[\w&%!#+\-.]+$/;function o(e){return n.test(e)}function r(e){return e.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}},69845:function(e,t,i){"use strict";i.d(t,{$4:()=>d,F4:()=>f,NP:()=>l,TS:()=>p,i1:()=>h,is:()=>a,jS:()=>c,kG:()=>u,pI:()=>g,pM:()=>s});var n=i(39897),o=i(49798),r=i(90132);function a(e){return e&&e.constructor===o.Z}function s(e){return e&&(0,n.Kn)(e)&&"r"===e.t}function l(e){return e.map(e=>[e[0],e[1],a(e[2])?e[2].toJSON():e[2]])}function c(e){for(let t=0;t<e.length;t++){let i=e[t][2];s(i)&&(e[t][2]=o.Z.fromJSON(i))}return e}function d(e,t,i){if(e.length<=1)return;let n=e.length-1,o=/^\s+$/;for(;n>0;){let r=e[n],a=e[n-1],s=r[t],l=r[i],c=a[i];(0===s.length||(null===l||null===c?l===c:l.equals(c))||null===l&&o.test(s))&&(a[t]+=r[t],e.splice(n,1)),n--}}function u(e){for(let t of(e.size||(e.size=10),e.name||(e.name="Arial"),e.color||(e.color="000000"),["bold","italic","underline","strike"]))e[t]||(e[t]=void 0);return e}function h(e){let t=e.v;for(let e=0;e<t.length;e++){let i=t[e].s;i&&u(i)}return d(e.v,"tx","s"),e}function p(e){if(!e)return null;let t=e.clone();t.name===r.Z.DEFAULT_FONT_NAME&&(t.name=null),t.size===r.Z.DEFAULT_FONT_SIZE&&(t.size=null),t.color===r.Z.DEFAULT_FONT_COLOR&&(t.color=null);let i=t.toJSON();return Object.keys(i).length>0?i:null}function f(e,t){let i=new Set;for(let n of e.v)i.add(n.s?.color||t);return Array.from(i)}function g(e){if(null===e)return e;function t(e){try{let t=JSON.parse(e);return s(t)?o.Z.fromJSON(t).getText():t}catch{return null}}return e.value=t(e.value),e.previous&&(e.previous.value=t(e.previous.value)),e}},55991:function(e,t,i){"use strict";i.d(t,{GA:()=>u,O1:()=>r,P6:()=>d,U3:()=>c,Ui:()=>a,Wz:()=>h,ct:()=>o,jr:()=>s,le:()=>p,u3:()=>l,yc:()=>g,z4:()=>f});var n=i(46904);function o(e){return e[0].toUpperCase()+e.substr(1)}function r(){function e(){return Math.floor((1+Math.random())*65536).toString(16).substring(1)}return e()+e()+e()+e()}function a(e){let t=e.length-1;for(;t>=0&&(e[t]<"0"||"9"<e[t]&&e[t]<"a"||"e"<e[t]);)t--;return -1===t?Array(e.length+1).join("0"):e.substr(0,t)+(parseInt(e[t],16)+1).toString(16)+Array(e.length-t).join("0")}function s(e,t){return!(!e||t&&t.getQuotePrefix())&&"="===e[0]}function l(e){return/^"(?:""|[^"])*"$/.test(e)}function c(e){return!!e&&"string"==typeof e&&!l(e)}function d(e){return!e||0===e||"general"===e.toLowerCase()}function u(e){return/^[#0]+(?:\.[#0]+)?%$/.test(e)}function h(e){return!!e&&"'"===e[0]}function p(e){return e.replace(/[\x00-\x09\x0B\x0C\x0E-\x1F\x7F-\x9F]/g,"")}function f(e){return e.replace(/\xA0/g," ")}function g(e){return(0,n.J)(e)?e="mailto:"+e:!e.startsWith("mailto:")&&0>e.indexOf("://")&&0!==e.indexOf("#tid=")&&0!==e.indexOf("#dlink=")&&(e="http://"+e),e}},81850:function(e,t,i){"use strict";i.d(t,{LN:()=>c,MT:()=>s,O2:()=>l,PY:()=>g,RE:()=>d,fJ:()=>f,ff:()=>b,mi:()=>h,pg:()=>u,vm:()=>m,wV:()=>v});var n=i(55991),o=i(69845),r=i(74115),a=i(39897);function s(e,t,i,n,o){return new r.GJ(e,t,i,n,o)}function l(e){return null==e||""===e}function c(e,t){return e!==t&&!(l(e)&&l(t))&&!((0,o.is)(e)&&(0,o.is)(t)&&e.equals(t))}function d(e){return c(e[2],e[3])}function u(e,t){return function(e,t,i){if(!e||!t)return e===t;if(e.length!==t.length)return!1;let n=e.length;for(let i=0;i<n;i++)if(e[i].length!==t[i].length)return!1;for(let o=0;o<n;o++)for(let n=0,r=e[o].length;n<r;n++)if(!i(e[o][n],t[o][n]))return!1;return!0}(e,t,(e,t)=>!c(e,t))}function h(e){if(!(0,n.jr)(e))return e;let t=0,i=!1;for(let n=0;n<e.length;n++)switch(e.charAt(n)){case"(":!i&&t++;break;case")":if(!i&&--t<0)return e;break;case'"':i=!i}return i?e:e+Array(t+1).join(")")}let p=new Map([[-1,"datetime"],[-2,"short_date"],[-3,"long_time"],[-4,"current_format"]]);function f(e,t){if(-5===t)return"0.00%";if(t>0)return e.getStyleManager().getNumberFormat(t).fc;let i=p.get(t);return e.getLocale().getData()[i]||""}function g(e,t,i,n){(0,a.Fs)(e,t)||(e[t]={}),(0,a.Fs)(e[t],i)||(e[t][i]=[]),e[t][i].push(n)}function m(e,t,i){(0,a.Fs)(e,t)||(e[t]=[]),e[t].push(i)}function v(e){switch(typeof e){case"number":return[void 0,e];case"string":if(!(0,n.jr)(e)){let t=/\d+$/.exec(e);if(null!==t)return[e.substr(0,e.length-t[0].length),parseInt(t[0],10)]}}return[]}function b(e,t,i){let n=e.getComputedCellStyle(t,i);if(!n.getNumberFormat().isDefault())return n.getNumberFormat().fc;let o=e.getCellFormulaItemState(t,i)?.nfId;return o?f(e.getWorkbook(),o):""}},74115:function(e,t,i){"use strict";i.d(t,{$u:()=>c,A9:()=>u,As:()=>v,B7:()=>b,DM:()=>a,Dk:()=>h,GJ:()=>f,Jr:()=>l,MI:()=>d,Y3:()=>s,kB:()=>p,xm:()=>g});var n,o,r=i(22881),a=((n={})[n.none=0]="none",n[n.partial=1]="partial",n[n.full=2]="full",n),s=((o={})[o.cell=0]="cell",o[o.row=1]="row",o[o.col=2]="col",o[o.all=3]="all",o);function l(e,t){return{row:e.row+(t.row??0),col:e.col+(t.col??0)}}function c(e,t){return{from:l(e.from,t),to:l(e.to,t)}}function d(e,t){return e.from.row<=t.row&&e.to.row>=t.row&&e.from.col<=t.col&&e.to.col>=t.col}function u(e,t){let i=e.from.row<=t.to.row&&e.to.row>=t.from.row,n=e.from.col<=t.to.col&&e.to.col>=t.from.col;return i&&n}function h(e,t,i){for(let n=e.row;n<=t.row;n++)for(let o=e.col;o<=t.col;o++)if(!1===i(n,o))return!1}function p(e,t){let i=0;return e&&(i+=1),t&&(i+=2),i}class f{constructor(e,t,i,n,o){this.from={row:e,col:t},this.to={row:i,col:n},this.type=o||0}isSingle(){return this.from.row===this.to.row&&this.from.col===this.to.col}isRowType(){return!!(1&this.type)}isColType(){return!!(2&this.type)}getHeight(){return Math.max(this.from.row,this.to.row)-Math.min(this.from.row,this.to.row)+1}getWidth(){return Math.max(this.from.col,this.to.col)-Math.min(this.from.col,this.to.col)+1}getSize(e){return"row"===e?this.getHeight():this.getWidth()}clone(){return new f(this.from.row,this.from.col,this.to.row,this.to.col,this.type)}isEqual(e){if(e.type!==this.type)return!1;let t=this.getTopLeftCorner(),i=this.getBottomRightCorner(),n=e.getTopLeftCorner(),o=e.getBottomRightCorner();return 3===this.type||(1&this.type?n.row===t.row&&o.row===i.row:2&this.type?n.col===t.col&&o.col===i.col:t.row===n.row&&t.col===n.col&&i.row===o.row&&i.col===o.col)}includes(e,t){void 0===t&&(t=!0);let i=this.getTopLeftCorner(),n=this.getBottomRightCorner(),o=t&&e.row<0?0:e.row,r=t&&e.col<0?0:e.col;return 3===this.type||(1&this.type?i.row<=o&&o<=n.row:2&this.type?i.col<=r&&r<=n.col:d({from:i,to:n},{row:o,col:r}))}includesRange(e){return!(e.type&~this.type)&&this.includes(e.getTopLeftCorner())&&this.includes(e.getBottomRightCorner())}overlaps(e){let t=this.getTopLeftCorner(),i=this.getBottomRightCorner(),n=e.getTopLeftCorner(),o=e.getBottomRightCorner(),r=!!((e.type|this.type)&2)||t.row<=o.row&&i.row>=n.row,a=!!((e.type|this.type)&1)||t.col<=o.col&&i.col>=n.col;return r&&a}expand(e){let t=this.getTopLeftCorner(),i=this.getBottomRightCorner();return(e.row<t.row||e.col<t.col||e.row>i.row||e.col>i.col)&&(this.from={row:Math.min(t.row,e.row),col:Math.min(t.col,e.col)},this.to={row:Math.max(i.row,e.row),col:Math.max(i.col,e.col)},!0)}expandByRange(e){if(this.includesRange(e))return!1;let t=this.getDirection(),i=this.getTopLeftCorner(),n=this.getBottomRightCorner(),o=e.getTopLeftCorner(),r=e.getBottomRightCorner();return this.from.row=Math.min(i.row,o.row),this.from.col=Math.min(i.col,o.col),this.to.row=Math.max(n.row,r.row),this.to.col=Math.max(n.col,r.col),this.setDirection(t),!0}getDirection(){return this.from.row<=this.to.row&&this.from.col<=this.to.col?"NW-SE":this.from.row<=this.to.row&&this.from.col>=this.to.col?"NE-SW":this.from.row>=this.to.row&&this.from.col>=this.to.col?"SE-NW":this.from.row>=this.to.row&&this.from.col<=this.to.col?"SW-NE":"NW-SE"}setDirection(e){let t,i;switch(e){case"NW-SE":t=this.getTopLeftCorner(),i=this.getBottomRightCorner(),this.from=t,this.to=i;break;case"NE-SW":t=this.getTopRightCorner(),i=this.getBottomLeftCorner(),this.from=t,this.to=i;break;case"SE-NW":t=this.getBottomRightCorner(),i=this.getTopLeftCorner(),this.from=t,this.to=i;break;case"SW-NE":t=this.getBottomLeftCorner(),i=this.getTopRightCorner(),this.from=t,this.to=i}}getTopLeftCorner(){return{row:Math.min(this.from.row,this.to.row),col:Math.min(this.from.col,this.to.col)}}getBottomRightCorner(){return{row:Math.max(this.from.row,this.to.row),col:Math.max(this.from.col,this.to.col)}}getTopRightCorner(){return{row:Math.min(this.from.row,this.to.row),col:Math.max(this.from.col,this.to.col)}}getBottomLeftCorner(){return{row:Math.max(this.from.row,this.to.row),col:Math.min(this.from.col,this.to.col)}}getBordersSharedWith(e){if(!this.includesRange(e))return[];let t={top:Math.min(this.from.row,this.to.row),bottom:Math.max(this.from.row,this.to.row),left:Math.min(this.from.col,this.to.col),right:Math.max(this.from.col,this.to.col)},i={top:Math.min(e.from.row,e.to.row),bottom:Math.max(e.from.row,e.to.row),left:Math.min(e.from.col,e.to.col),right:Math.max(e.from.col,e.to.col)},n=[];return t.top===i.top&&n.push("top"),t.right===i.right&&n.push("right"),t.bottom===i.bottom&&n.push("bottom"),t.left===i.left&&n.push("left"),n}forAll(e){return h(this.getTopLeftCorner(),this.getBottomRightCorner(),e)}*iterateCoords(){let e=this.getTopLeftCorner(),t=this.getBottomRightCorner();for(let i=e.row;i<=t.row;i++)for(let n=e.col;n<=t.col;n++)yield{row:i,col:n}}normalize(){let e=this.getTopLeftCorner(),t=this.getBottomRightCorner();return this.from=e,this.to=t,this}expandRowCol(e,t,i){this.from[e]=Math.min(t,this.from[e]),this.to[e]=Math.max(i,this.to[e])}expandRow(e,t){this.expandRowCol("row",e,t)}expandCol(e,t){this.expandRowCol("col",e,t)}isMergeable(e,t,i){return"row"===e?this.isVertMergeable(t,i):this.isHoriMergeable(t,i)}isHoriMergeable(e,t){let i=this.getTopLeftCorner(),n=this.getBottomRightCorner(),o=e.getTopLeftCorner(),r=e.getBottomRightCorner();if(i.row===o.row&&n.row===r.row){if(!t&&i.col<=r.col+1&&o.col<=n.col+1)return!0;else if(t&&(i.col===r.col+1||o.col===n.col+1))return!0}return!1}isVertMergeable(e,t){let i=this.getTopLeftCorner(),n=this.getBottomRightCorner(),o=e.getTopLeftCorner(),r=e.getBottomRightCorner();if(i.col===o.col&&n.col===r.col){if(!t&&i.row<=r.row+1&&o.row<=n.row+1)return!0;else if(t&&(i.row===r.row+1||o.row===n.row+1))return!0}return!1}insertAndSplit(e,t,i){let n=this.getDirection(),o=null;return this.normalize(),this.from[e]>=t?(this.from[e]+=i,this.to[e]+=i):this.to[e]>=t&&((o=this.clone()).from[e]=t+i,o.to[e]+=i,this.to[e]=t-1),this.setDirection(n),o}getOverlap(e){if(!this.overlaps(e))return null;let t=this.getTopLeftCorner(),i=this.getBottomRightCorner(),n=e.getTopLeftCorner(),o=e.getBottomRightCorner(),r=Math.max(t.row,n.row),a=Math.min(i.row,o.row);return new f(r,Math.max(t.col,n.col),a,Math.min(i.col,o.col))}toArray(){let e=this.getTopLeftCorner(),t=this.getBottomRightCorner();return[e.row,e.col,t.row,t.col]}diff(e,t,i){let n=this.clone().normalize();if(t>this.to[e]||i<=0)return n;let o=t+i-1,r=Math.max(t,n.from[e]),a=Math.min(o,n.to[e])-r+1;return("row"===e?n.getHeight():n.getWidth())<=a?null:(o<this.from[e]?(n.from[e]-=i,n.to[e]-=i):(n.from[e]-=r-t,n.to[e]-=a+r-t),n)}diffRow(e,t){return this.diff("row",e,t)}diffCol(e,t){return this.diff("col",e,t)}shiftOffset(e){return this.shift("row",e.row??0).shift("col",e.col??0)}shift(e,t){return this.from[e]+=t,this.to[e]+=t,this}listRows(){let e=[],t=this.getTopLeftCorner(),i=this.getBottomRightCorner();for(let n=t.row;n<=i.row;n++)e.push(n);return e}listCols(){let e=[],t=this.getTopLeftCorner(),i=this.getBottomRightCorner();for(let n=t.col;n<=i.col;n++)e.push(n);return e}sliceRow(){let e=[],t=this.getTopLeftCorner(),i=this.getBottomRightCorner();for(let n=t.row;n<=i.row;n++)e.push(new f(n,t.col,n,i.col));return e}sliceCol(){let e=[],t=this.getTopLeftCorner(),i=this.getBottomRightCorner();for(let n=t.col;n<=i.col;n++)e.push(new f(t.row,n,i.row,n));return e}move(e,t){let i=this.getDirection();this.normalize();let n=this.from[e],o=this.to[e];n>=t.sec[0].start&&n<=t.sec[0].end?!t.isBackward&&o>=t.sec[1].start&&o<=t.sec[1].end?n=t.sec[0].start:n+=t.sec[1].amount:n>=t.sec[1].start&&n<=t.sec[1].end&&(n-=t.sec[0].amount),o>=t.sec[0].start&&o<=t.sec[0].end?o+=t.sec[1].amount:o>=t.sec[1].start&&o<=t.sec[1].end&&(t.isBackward&&this.from[e]>=t.sec[0].start&&this.from[e]<=t.sec[0].end?o=t.sec[1].end:o-=t.sec[0].amount);let r="row"===e?this.getHeight():this.getWidth(),a=null;if(o-n+1!==r){let i;a=this.clone(),i=n<this.from[e]||o<this.to[e]?t.sec[0]:t.sec[1],a.from[e]=i.start,a.to[e]=i.end,n<this.from[e]&&o<this.to[e]?a.from[e]=this.from[e]:n>this.from[e]&&o>this.to[e]&&(a.to[e]=this.to[e])}return this.from[e]=n,this.to[e]=o,this.setDirection(i),a}moveAndSplit(e,t){let i=this.getDirection();this.normalize();let n=null,o=null,r=null,a=t.isBackward?t.sec[1]:t.sec[0],s="row"===e&&2&this.type||"col"===e&&1&this.type;if(this.from[e]>t.sec[1].end||this.to[e]<t.sec[0].start||s)n=this;else{if((r=this.clone()).from[e]=a.start,r.to[e]=a.end,r=this.getOverlap(r),n=this.diff(e,a.start,a.amount)){let i=t.isBackward?t.sec[0].start:t.sec[0].start+t.sec[1].amount,r=t.isBackward?t.sec[1].amount:t.sec[0].amount;o=n.insertAndSplit(e,i,r)}r&&r.shift(e,t.delta)}return this.setDirection(i),{remain:n,bottom:o,splited:r}}createRowCol(e,t,i){if("row"===e&&2&this.type||"col"===e&&1&this.type){this.to[e]+=i;return}this.from[e]>=t&&(this.from[e]+=i),this.to[e]>=t&&(this.to[e]+=i)}removeRowCol(e,t,i){return m(this.from,e,t,i),m(this.to,e,t,i),(!(this.from[e]<0)||!(this.to[e]<0))&&(this.from[e]<0&&(this.from[e]=this.to[e]>=t?t:t-1),this.to[e]<0&&(this.to[e]=this.from[e]>=t?t:t-1),!0)}static fromArray(e){return new f(e[0],e[1],e[2],e[3])}static fromRange(e){return new f(...[e.from.row,e.from.col,e.to.row,e.to.col])}}class g extends f{constructor(e,t,i,n,o,r){super(e,t,i,n,o),this.highlight=r||new f(this.from.row,this.from.col,this.from.row,this.from.col)}clone(){return new g(this.from.row,this.from.col,this.to.row,this.to.col,this.type,this.highlight.clone())}createRowCol(e,t,i){super.createRowCol(e,t,i),this.highlight.createRowCol(e,t,i)}removeRowCol(e,t,i){let n=super.removeRowCol(e,t,i),o=this.highlight.removeRowCol(e,t,i);if(!1===n)return!1;if(!1===o){let e=this.highlight;e.from.row=e.to.row=this.from.row,e.from.col=e.to.col=this.from.col}return!0}}function m(e,t,i,n){e[t]>i+n-1?e[t]-=n:e[t]>=i&&(e[t]=-1)}function v(e,t,i,n){let o=Math.max(Math.min(e.row,t.row),0),r=Math.max(Math.min(e.col,t.col),0);return[o,r,Math.min(Math.max(e.row,t.row),i),Math.min(Math.max(e.col,t.col),n)]}function b(e){let t=new r.Z;for(let i of e){if(t.hasOverlap(i))return!0;t.insert(i)}return!1}},49798:function(e,t,i){"use strict";i.d(t,{Z:()=>a,g:()=>r});var n=i(55272),o=i(5875);function r(e){return e.v.map(e=>e.tx).join("")}class a{constructor(e){this.v=e||[]}getText(){return r(this)}removeFirstChar(){let e=this.v[0];return e&&(e.tx=e.tx.substr(1),""===e.tx&&this.v.shift()),this}insertFirst(e){return this.v.unshift({tx:e,s:null}),this}equals(e){if(this.v.length!==e.v.length)return!1;for(let n=0;n<this.v.length;n++){var t,i;let o=this.v[n],r=e.v[n];if(o.tx!==r.tx||(t=o.s,i=r.s,null===t||null===i?t!==i:!t.equals(i)))return!1}return!0}clone(){let e=new a;for(let t=0;t<this.v.length;t++){let i=this.v[t];e.v.push({tx:i.tx,s:i.s?i.s.clone():null})}return e}setCellStyle(e){for(let t=0;t<this.v.length;t++){let i=this.v[t].s;i&&i.assign(e)}return this}removeStyle(e){for(let t=0;t<this.v.length;t++){let i=this.v[t].s;i&&i.remove(e)}return this}toJSON(){let e={t:"r",v:Array(this.v.length)};for(let t=0;t<this.v.length;t++){let i=this.v[t];e.v[t]={tx:i.tx,s:i.s?(0,n.compactFontObject)(i.s.toJSON()):void 0}}return e}toString(){return this.getText()}static fromJSON(e){let t=Array(e.v.length);for(let i=0;i<e.v.length;i++){let r=e.v[i];t[i]={tx:r.tx,s:r.s?new o.Zx().assign((0,n.recoverFontObject)(r.s)):null}}return new a(t)}}},22881:function(e,t,i){"use strict";i.d(t,{Z:()=>g});var n=i(74115);let o=class{constructor(e){this.range=e}assertRange(){if(!this.range)throw Error("range is missing.")}getRange(){return this.assertRange(),this.range.clone()}search(e){return this.assertRange(),this.range.isEqual(e)}hasOverlap(e){return this.assertRange(),this.range.overlaps(e)}onCreateRowCol(e,t,i){this.assertRange(),this.range.createRowCol(e,t,i)}onRemoveRowCol(e,t,i){this.assertRange(),this.range.removeRowCol(e,t,i)}},r=class extends o{constructor(e,t,i){super(n.GJ.fromArray(e.toArray())),this.prev=t||null,this.next=i||null}};function a(e){return(e.to.row-e.from.row+1)*(e.to.col-e.from.col+1)}function s(e,t){let i=e&&e.getLastRangeNode?e.getLastRangeNode():e,n=t&&t.getFirstRangeNode?t.getFirstRangeNode():t;i&&(i.next=n),n&&(n.prev=i)}let l=class extends o{constructor(e){super(null),this.children=e||[],this._updateInfo()}insert(e){return this._insertRangeNode(e),this._isOverflow()?this._splitNodeOnOverflow():null}delete(e){if(!this.range||!this.range.includesRange(e))return!1;let t=-1;for(let i=0;i<this.children.length;i++)if(this._checkChildDeletion(i,e)){t=i;break}return -1!==t&&(this._adjustOnDeletion(t),this._updateRange(),!0)}search(e){return this.assertRange(),!!this.range.includesRange(e)&&this.children.some(t=>t.search(e))}hasOverlap(e){return this.assertRange(),!!this.range.overlaps(e)&&this.children.some(t=>t.hasOverlap(e))}onCreateRowCol(e,t,i){if(this.range&&!(t>this.range.to[e])){super.onCreateRowCol(e,t,i);for(let n=0,o=this.children.length;n<o;n++)this.children[n].onCreateRowCol(e,t,i)}}onRemoveRowCol(e,t,i){if(this.range&&!(t>this.range.to[e])){super.onRemoveRowCol(e,t,i);for(let n=0,o=this.children.length;n<o;n++)this.children[n].onRemoveRowCol(e,t,i)}}getChildren(){return this.children.slice()}mergeNextSibling(e){let t=e.getChildren();for(let e=0,i=t.length;e<i;e++)this.children.push(t[e]),this.assertRange(),this.range.expandByRange(t[e].getRange());if(!this._isOverflow())return null;let i=this._splitNodeOnOverflow(),n=this.getLastRangeNode(),o=n.next;return s(n,i.getFirstRangeNode()),s(i.getLastRangeNode(),o),i}_isOverflow(){return this.children.length>3}_updateInfo(){this._updateRange();let e=this.children.length,t=null;for(let i=0;i<e;i++)s(t,this.children[i]),t=this.children[i];s(t,null)}_updateRange(){let e=this.children.length;if(0===e){this.range=null;return}this.range=this.children[0].getRange();for(let t=1;t<e;t++)this.range.expandByRange(this.children[t].getRange())}_splitNodeOnOverflow(){let e=this.getFirstRangeNode().prev,t=this.getLastRangeNode().next,[i,n]=function(e){let t=e.length;if(0===t)return[[],[]];if(1===t)return[[e[0]],[]];let i=0,n=0,o=1;for(let r=0;r<t-1;r++)for(let s=r+1;s<t;s++){let t=e[r].getRange();t.expandByRange(e[s].getRange());let l=a(t);l>i&&(i=l,n=r,o=s)}let r=[[e[n]],[e[o]]],s=[e[n].getRange(),e[o].getRange()];e[o]=e[--t],e[n]=e[--t];let l=0;for(;t>0;){let i=Number.MAX_VALUE,n=0,o=a(s[l]);for(let r=0;r<t;r++){let t=e[r].getRange();t.expandByRange(s[l]);let c=a(t)-o;c<i&&(i=c,n=r)}r[l].push(e[n]),s[l].expandByRange(e[n].getRange()),e[n]=e[--t],l=(l+1)%2}return r}(this.children);return this.children=i,this._updateInfo(),s(e,this),s(this,t),this._createSibling(n)}_appendNode(e){if(this.children.length>0){let t=this.getLastRangeNode(),i=t.next;s(t,e),s(e,i)}this.children.push(e),this.range?this.range.expandByRange(e.getRange()):this.range=e.getRange()}};class c extends l{_insertRangeNode(e){this._appendNode(e)}_checkChildDeletion(e,t){return this.children[e].search(t)}_adjustOnDeletion(e){let t=this.children[e],i=t.prev,n=t.next;i&&(i.next=n),n&&(n.prev=i),this.children.splice(e,1)}getOverlap(e){return this.children.map(e=>e.getRange()).filter(t=>t.overlaps(e))}getFirstRangeNode(){return this.children.length?this.children[0]:null}getLastRangeNode(){return this.children.length?this.children[this.children.length-1]:null}_createSibling(e){return new c(e)}}class d extends l{_insertRangeNode(e){let t=e.getRange(),i=(function(e,t){let i=Number.MAX_VALUE,n=null;for(let o=0,r=e.length;o<r&&i>0;o++){let r=e[o].getRange(),s=a(r);r.expandByRange(t);let l=a(r);l-s<i&&(i=l-s,n=e[o])}if(!n)throw Error("No expanded node is found.");return n})(this.children,t).insert(e);i?this._appendNode(i):(this.assertRange(),this.range.expandByRange(t))}_checkChildDeletion(e,t){return this.children[e].delete(t)}_adjustOnDeletion(e){let t=this.children[e];if(t.getChildren().length>=1.5)return;let i=this.children[e-1],n=this.children[e+1],o=i?t:n,r=i||t,a=i?e:e+1,s=r.mergeNextSibling(o);s?this.children[a]=s:this.children.splice(a,1)}getOverlap(e){return this.assertRange(),this.range.overlaps(e)?this.children.reduce((t,i)=>t.concat(i.getOverlap(e)),[]):[]}getFirstRangeNode(){return this.children.length?this.children[0].getFirstRangeNode():null}getLastRangeNode(){return this.children.length?this.children[this.children.length-1].getLastRangeNode():null}_createSibling(e){return new d(e)}}function u(e,t){return e.from.row-t.from.row||e.to.row-t.to.row}function h(e,t){return e.from.col-t.from.col||e.to.col-t.to.col}function p(e,t){let i=[],n=0;for(let o=0,r=t.length;o<r;o++){let r=n+t[o];i.push(e.slice(n,r)),n=r}return i}function f(e){let t=0;for(let i=0;i<e.length;i++){let n=e[i][0].clone();for(let t=1;t<e[i].length;t++)n.expandByRange(e[i][t]);t+=a(n)}return t}let g=class{constructor(){this.root=null,this.count=0}init(e){this.root=this._createTreeByRanges(e),this.count=e.length}insert(e){let t=new r(e);if(this.root){let e=this.root.insert(t);e&&(this.root=new d([this.root,e]))}else this.root=new c([t]);this.count+=1}delete(e){if(!this.root)return!1;if(this.root.delete(e)){let e=this.root.getChildren();return 1===e.length&&e[0]instanceof l?this.root=e[0]:0===e.length&&(this.root=null),this.count-=1,!0}return!1}search(e){return!!this.root&&this.root.search(e)}hasOverlap(e){return!!this.root&&this.root.hasOverlap(e)}getOverlap(e){return this.root?this.root.getOverlap(e):[]}getCount(){return this.count}getCoverRange(){return this.root?this.root.getRange():null}*traverse(){if(!this.root)return;let e=this.root.getFirstRangeNode();for(;e;)yield e.getRange(),e=e.next}onCreateRowCol(e,t,i){this.root&&this.root.onCreateRowCol(e,t,i)}onRemoveRowCol(e,t,i){if(!this.root)return;let n=this.root.getRange();n.from[e]=t,n.to[e]=t+i-1,this.getOverlap(n).forEach(n=>{let o=n.clone();(!o.removeRowCol(e,t,i)||o.isSingle())&&this.delete(n)}),this.root&&this.root.onRemoveRowCol(e,t,i)}onMoveRowCol(e,t){if(!this.root)return;let i=this.root.getRange();i.from[e]=t.sec[0].start,i.to[e]=t.sec[0].end;let n=this.getOverlap(i);n.forEach(e=>this.delete(e)),i.from[e]=t.sec[1].start,i.to[e]=t.sec[1].end;let o=this.getOverlap(i);o.forEach(e=>this.delete(e)),n.forEach(i=>{t.sec[0].start<=i.from[e]&&i.to[e]<=t.sec[0].end&&(i.from[e]+=t.sec[1].amount,i.to[e]+=t.sec[1].amount,this.insert(i))}),o.forEach(i=>{t.sec[1].start<=i.from[e]&&i.to[e]<=t.sec[1].end&&(i.from[e]-=t.sec[0].amount,i.to[e]-=t.sec[0].amount,this.insert(i))})}_createTreeByRanges(e){let t=e.length;if(0===t)return null;let i=Math.pow(3,Math.ceil(Math.log(t)/Math.log(3))-1);return function e(t,i,n){if(t.length<=3)return new c(t.map(e=>new r(e)));let o=Array(Math.floor(t.length/n)).fill(n),a=t.length%n;if(a>0){let e=Math.floor((a+n)/2);o[o.length-1]=a+n-e,o.push(e)}let s="row"===i?t:t.slice().sort(u),l="col"===i?t:t.slice().sort(h),g=p(s,o),m=p(l,o);return new d(f(g)<=f(m)?g.map(t=>e(t,"row",n/3)):m.map(t=>e(t,"col",n/3)))}(e.sort(u),"row",i)}}},5875:function(e,t,i){"use strict";i.d(t,{OC:()=>c,WE:()=>d,Zx:()=>r,de:()=>a,op:()=>l,v2:()=>s,y4:()=>u});var n=i(58162);class o{constructor(){this.index=void 0}getIndex(){return this.index}setIndex(e){this.index=e}isDefault(){return 0===this.index}clone(){let e=new this.constructor;return e.assign(this),e}assign(e){if(e){let t=this.constructor.attrs;for(let i=0;i<t.length;i++){let n=t[i];void 0!==e[n]&&(this[n]=e[n])}}return this}remove(e){if(e){let t=this.constructor.attrs;for(let i=0;i<t.length;i++){let n=t[i];n in e&&(void 0===e[n]||e[n]===this[n])&&(this[n]=null)}}return this}toJSON(){let e={},t=this.constructor.attrs;for(let i=0,n=t.length;i<n;i++){let n=t[i];null!==this[n]&&(e[n]=this[n])}return e}}class r extends o{static #e=this.attrs=["name","size","bold","italic","strike","underline","color"];constructor(){super(),this.name=null,this.size=null,this.bold=null,this.italic=null,this.strike=null,this.underline=null,this.color=null}equals(e){return e.name===this.name&&e.size===this.size&&e.bold===this.bold&&e.italic===this.italic&&e.strike===this.strike&&e.underline===this.underline&&e.color===this.color}}class a extends o{static #e=this.attrs=["bg"];constructor(){super(),this.bg=null}equals(e){return e.bg===this.bg}}class s extends o{static #e=this.attrs=["halign","valign","wrap","readingOrder"];constructor(){super(),this.halign=null,this.valign=null,this.wrap=null,this.readingOrder=null}equals(e){return e.halign===this.halign&&e.valign===this.valign&&e.wrap===this.wrap&&e.readingOrder===this.readingOrder}}function l(e){return!!e.readingOrder}class c extends o{static #e=this.attrs=["b"];constructor(){super(),this.b=null}equals(e){if(null===e.b||null===this.b)return e.b===this.b;for(let t=0;t<4;t++)if(e.b[t]!==this.b[t])return!1;return!0}}function d(e,t){return e?t?[t[0]??e[0],t[1]??e[1],t[2]??e[2],t[3]??e[3]]:e:t}class u extends o{static #e=this.attrs=["fc"];constructor(){super(),this.fc=null}equals(e){return e.fc===this.fc}isText(){return"@"===this.fc}isDateTime(){return!!this.fc&&n.Z.isDateTime(this.fc)}isDate(){return!!this.fc&&n.Z.isDate(this.fc)}isTime(){return!!this.fc&&n.Z.isTime(this.fc)}isDuration(){return!!this.fc&&n.Z.isDuration(this.fc)}}},55272:function(e,t,i){"use strict";i.r(t),i.d(t,{compact:()=>function e(t){switch(t.cmd){case"font":h(t.changes);break;case"alignment":m(t.changes);break;case"compound":for(let i=0;i<t.actions.length;i++)e(t.actions[i]);break;case"insert_row":case"insert_col":if(t.data){let e=t.data.format;e.font&&h(e.font),e.alignment&&m(e.alignment)}break;case"row_style":case"col_style":S(t);break;case"global_style":k(t)}return t},compactAlignmentObject:()=>y,compactFontObject:()=>g,compatibilizeBorder:()=>w,compressAlignment:()=>m,compressDimensionStyle:()=>S,compressFont:()=>h,compressGlobalStyle:()=>k,extract:()=>function e(t){switch(t.cmd){case"font":p(t.changes);break;case"alignment":v(t.changes);break;case"border":w(t.changes);break;case"compound":for(let i=0;i<t.actions.length;i++)e(t.actions[i]);break;case"insert_row":case"insert_col":if(t.data){let e=t.data.format;e.font&&p(e.font),e.alignment&&v(e.alignment),e.border&&w(e.border)}break;case"row_style":case"col_style":C(t);break;case"global_style":I(t);break;case"create_comment":case"reply_comment":case"reopen_comment":case"resolve_comment":case"edit_comment":t.json.author=t.uid}return t},recoverAlignmentObject:()=>b,recoverFontObject:()=>f,uncompressAlignment:()=>v,uncompressDimensionStyle:()=>C,uncompressFont:()=>p,uncompressGlobalStyle:()=>I});var n=i(39897);let o={name:"n",size:"sz",bold:"b",italic:"i",strike:"s",underline:"u",color:"c"},r={halign:"h",valign:"v",wrap:"w",readingOrder:"r"},a={0:"top",1:"right",2:"bottom",3:"left",top:"top",right:"right",bottom:"bottom",left:"left"};function s(e){let t={};return(0,n._l)(e,(e,i)=>{t[e]=i}),t}let l=s(o),c=s(r);function d(e,t){if(null===t)return t;let i={};for(let o in t)(0,n.Fs)(t,o)&&(0,n.Fs)(e,o)&&(i[e[o]]=t[o]);return i}function u(e,t,i){i=i||2;for(let n=0,o=t.length;n<o;n++){let o=t[n][i];null!==o&&(t[n][i]=d(e,o))}return t}function h(e){return u(o,e)}function p(e){return u(l,e)}function f(e){return d(l,e)}function g(e){return d(o,e)}function m(e){return u(r,e)}function v(e){return u(c,e)}function b(e){return d(c,e)}function y(e){return d(r,e)}function w(e){return u(a,e)}function _(e,t){t.value=d(e,t.value),t.rowChanges&&(t.rowChanges=u(e,t.rowChanges,1)),t.colChanges&&(t.colChanges=u(e,t.colChanges,1)),t.cellChanges&&(t.cellChanges=u(e,t.cellChanges,2))}function x(e,t){t.changes=u(e,t.changes,1),t.cellChanges&&(t.cellChanges=u(e,t.cellChanges,2))}function S(e){let t=e.type;"font"===t?x(o,e):"alignment"===t&&x(r,e)}function C(e){let t=e.type;"font"===t?x(l,e):"alignment"===t?x(c,e):"border"===t&&x(a,e)}function k(e){let t=e.type;"font"===t?_(o,e):"alignment"===t&&_(r,e)}function I(e){let t=e.type;"font"===t?_(l,e):"alignment"===t?_(c,e):"border"===t&&_(a,e)}},20768:function(e,t,i){"use strict";i.d(t,{or:()=>od,yx:()=>ol,yA:()=>cf,Pp:()=>x.Z,dt:()=>cZ,_b:()=>cU,e:()=>J,P6:()=>cG,z4:()=>cB,gn:()=>oc});var n,o,r={};i.r(r),i.d(r,{absoluteFormula:()=>Y,changeFormula:()=>V,changeFormulaKeepSheet:()=>z,changeFormulaRange:()=>K,changeRefMode:()=>P,deabsoluteToken:()=>H,fromA1ToR1C1:()=>G,fromR1C1ToA1:()=>j,getFormulaBound:()=>Q,isFormulaAbsolute:()=>U,labelToCoord:()=>D,moveFormula:()=>L,rangeToBound:()=>O,rangeToCoords:()=>M,removeFormulaRange:()=>X,transposeR1C1:()=>q});var a={};i.r(a),i.d(a,{CHAR:()=>t8,CLEAN:()=>t7,CODE:()=>t9,CONCAT:()=>ie,CONCATENATE:()=>it,DOLLAR:()=>ii,EXACT:()=>io,FIND:()=>ir,FIXED:()=>ia,HTML2TEXT:()=>is,LEFT:()=>il,LEN:()=>ic,LOWER:()=>id,MID:()=>iu,PROPER:()=>ih,REGEXEXTRACT:()=>ip,REGEXMATCH:()=>ig,REGEXREPLACE:()=>im,REPLACE:()=>iv,REPT:()=>ib,RIGHT:()=>iy,SEARCH:()=>iw,SPLIT:()=>i_,SUBSTITUTE:()=>ix,T:()=>iS,TEXT:()=>iC,TRIM:()=>ik,UNICHAR:()=>iI,UNICODE:()=>iA,UPPER:()=>iT,VALUE:()=>iE});var s={};i.r(s),i.d(s,{BESSELI:()=>iM,BESSELJ:()=>iN,BESSELK:()=>iP,BESSELY:()=>iL,BIN2DEC:()=>iB,BIN2HEX:()=>iF,BIN2OCT:()=>iV,BITAND:()=>iz,BITLSHIFT:()=>iH,BITOR:()=>iW,BITRSHIFT:()=>iY,BITXOR:()=>iU,COMPLEX:()=>iG,CONVERT:()=>iZ,DEC2BIN:()=>ij,DEC2HEX:()=>iq,DEC2OCT:()=>iK,DELTA:()=>iX,ERF:()=>iQ,ERFC:()=>i$,GESTEP:()=>iJ,HEX2BIN:()=>i0,HEX2DEC:()=>i1,HEX2OCT:()=>i2,IMABS:()=>i3,IMAGINARY:()=>i4,IMARGUMENT:()=>i5,IMCONJUGATE:()=>i6,IMCOS:()=>i8,IMCOSH:()=>i7,IMCOT:()=>i9,IMCSC:()=>np,IMCSCH:()=>nf,IMDIV:()=>ne,IMEXP:()=>nt,IMLN:()=>ni,IMLOG10:()=>nn,IMLOG2:()=>no,IMPOWER:()=>nr,IMPRODUCT:()=>na,IMREAL:()=>ns,IMSEC:()=>nl,IMSECH:()=>nc,IMSIN:()=>nd,IMSINH:()=>nu,IMSQRT:()=>nh,IMSUB:()=>ng,IMSUM:()=>nm,IMTAN:()=>nv,OCT2BIN:()=>nb,OCT2DEC:()=>ny,OCT2HEX:()=>nw});var l={};i.r(l),i.d(l,{ERROR:()=>nx,ISBINARY:()=>nC,ISBLANK:()=>nS,ISERR:()=>nI,ISERROR:()=>nA,ISEVEN:()=>nT,ISLOGICAL:()=>nE,ISNA:()=>nR,ISNONTEXT:()=>nD,ISNUMBER:()=>nO,ISODD:()=>nM,ISTEXT:()=>nN,N:()=>nP,NA:()=>nL,TYPE:()=>nB});var c={};i.r(c),i.d(c,{AND:()=>nF,CHOOSE:()=>nV,FALSE:()=>nz,IF:()=>nH,IFERROR:()=>nY,IFNA:()=>nU,IFS:()=>nW,NOT:()=>nG,OR:()=>nZ,SWITCH:()=>nK,TRUE:()=>nj,XOR:()=>nq});var d={};i.r(d),i.d(d,{getSortOrder:()=>oh});var u={};i.r(u),i.d(u,{findUnique:()=>op});var h={};i.r(h),i.d(h,{FILTER:()=>oM,FLATTEN:()=>oL,HLOOKUP:()=>oA,IMPORTRANGE:()=>oF,MATCH:()=>ok,SORT:()=>oR,SORTBY:()=>oD,TRANSPOSE:()=>oP,UNIQUE:()=>oB,VLOOKUP:()=>oT,XLOOKUP:()=>oE});var p={};i.r(p),i.d(p,{AVEDEV:()=>oG,AVERAGE:()=>oZ,AVERAGEA:()=>oj,BETA:()=>oq,BETADIST:()=>oK,BETAINV:()=>oX,BINOM:()=>oQ,BINOMDIST:()=>o$,CHIDIST:()=>o1,CHIINV:()=>o2,CHISQ:()=>o0,CHITEST:()=>o3,COLUMN:()=>o4,COLUMNS:()=>o5,CONFIDENCE:()=>o6,CORREL:()=>o8,COUNT:()=>o7,COUNTA:()=>o9,COUNTBLANK:()=>rt,COUNTIN:()=>re,COUNTUNIQUE:()=>ri,COVAR:()=>ra,COVARIANCE:()=>rr,CRITBINOM:()=>oJ,DEVSQ:()=>rs,EXPON:()=>rl,EXPONDIST:()=>rc,F:()=>rd,FDIST:()=>ru,FINV:()=>rh,FISHER:()=>rf,FISHERINV:()=>rg,FORECAST:()=>rm,FREQUENCY:()=>rv,FTEST:()=>rp,GAMMA:()=>rb,GAMMADIST:()=>ry,GAMMAINV:()=>rw,GAMMALN:()=>r_,GAUSS:()=>rx,GEOMEAN:()=>rS,GROWTH:()=>rC,HARMEAN:()=>rk,HYPGEOM:()=>rI,HYPGEOMDIST:()=>rA,INTERCEPT:()=>rT,KURT:()=>rE,LARGE:()=>rR,LINEST:()=>rD,LOGEST:()=>rO,LOGINV:()=>rP,LOGNORM:()=>rM,LOGNORMDIST:()=>rN,MAX:()=>rL,MAXA:()=>rB,MEDIAN:()=>rF,MIN:()=>rV,MINA:()=>rz,MODE:()=>rH,NEGBINOM:()=>rW,NEGBINOMDIST:()=>rY,NORM:()=>rK,NORMDIST:()=>rU,NORMINV:()=>rG,NORMSDIST:()=>rj,NORMSINV:()=>rq,PEARSON:()=>rX,PERCENTILE:()=>r$,PERCENTRANK:()=>r0,PERMUT:()=>r1,PERMUTATIONA:()=>r2,PHI:()=>r3,POISSON:()=>r4,PROB:()=>r5,QUARTILE:()=>r8,RANK:()=>r7,ROW:()=>r9,ROWS:()=>ae,RSQ:()=>at,SKEW:()=>ai,SLOPE:()=>an,SMALL:()=>ao,STANDARDIZE:()=>ar,STDEV:()=>al,STDEVA:()=>ac,STDEVP:()=>as,STDEVPA:()=>ad,STDEVS:()=>aa,STEYX:()=>au,T:()=>ah,TDIST:()=>ap,TINV:()=>af,TREND:()=>am,TRIMMEAN:()=>av,TTEST:()=>ag,VAR:()=>a_,VARA:()=>aw,VARP:()=>ab,VARPA:()=>ax,VARS:()=>ay,WEIBULL:()=>aS,Z:()=>ak,ZTEST:()=>aC});var f={};i.r(f),i.d(f,{ABS:()=>aE,ACOS:()=>aR,ACOSH:()=>aD,ACOT:()=>aO,ACOTH:()=>aM,ADD:()=>sE,AGGREGATE:()=>aN,ARABIC:()=>aP,ASIN:()=>aL,ASINH:()=>aB,ATAN:()=>aF,ATAN2:()=>aV,ATANH:()=>az,BASE:()=>aH,CEILING:()=>aY,COMBIN:()=>aU,COMBINA:()=>aG,COS:()=>aZ,COSH:()=>aj,COT:()=>aq,COTH:()=>aK,CSC:()=>aX,CSCH:()=>aQ,DECIMAL:()=>a$,DEGREES:()=>aJ,DIVIDE:()=>sD,EQ:()=>sL,EVEN:()=>a0,EXP:()=>a1,FACT:()=>a3,FACTDOUBLE:()=>function e(t){if((t=e5(t))instanceof Error)return t;let i=Math.floor(t);return i<0?eX.num:0===i||1===i?1:i*e(i-2)},FLOOR:()=>a5,GCD:()=>a6,GTE:()=>sM,INT:()=>a8,ISO:()=>a7,LCM:()=>a9,LN:()=>se,LOG:()=>st,LOG10:()=>si,LT:()=>sN,LTE:()=>sP,MINUS:()=>sR,MOD:()=>sn,MROUND:()=>so,MULTINOMIAL:()=>sr,MULTIPLY:()=>sO,NE:()=>sB,ODD:()=>sa,PI:()=>ss,POW:()=>sF,POWER:()=>sl,PRODUCT:()=>sc,QUOTIENT:()=>sd,RADIANS:()=>su,RAND:()=>sp,RANDARRAY:()=>sf,RANDBETWEEN:()=>sg,ROMAN:()=>sm,ROUND:()=>sv,ROUNDDOWN:()=>sb,ROUNDUP:()=>sy,SEC:()=>sw,SECH:()=>s_,SEQUENCE:()=>sq,SERIESSUM:()=>sx,SIGN:()=>sS,SIN:()=>sC,SINH:()=>sk,SQRT:()=>sI,SQRTPI:()=>sA,SUBTOTAL:()=>sT,SUM:()=>sV,SUMPRODUCT:()=>sz,SUMSQ:()=>sH,SUMX2MY2:()=>sW,SUMX2PY2:()=>sY,SUMXMY2:()=>sU,TAN:()=>sG,TANH:()=>sZ,TRUNC:()=>sj});var g={};i.r(g),i.d(g,{DATE:()=>s$,DATEDIF:()=>lb,DATEVALUE:()=>sJ,DAY:()=>s0,DAYS:()=>s1,DAYS360:()=>s3,EDATE:()=>s4,EOMONTH:()=>s5,HOUR:()=>s6,INTERVAL:()=>s8,ISOWEEKNUM:()=>s7,MINUTE:()=>s9,MONTH:()=>le,NETWORKDAYS:()=>lt,NOW:()=>li,SECOND:()=>ln,TIME:()=>lo,TIMEVALUE:()=>lr,TODAY:()=>la,WEEKDAY:()=>ls,WEEKNUM:()=>ll,WORKDAY:()=>lc,YEAR:()=>lp,YEARFRAC:()=>lm,_DAYS:()=>s2,_YEARFRAC:()=>lv});var m={};i.r(m),i.d(m,{ACCRINT:()=>ly,CUMIPMT:()=>lw,CUMPRINC:()=>l_,DB:()=>lx,DDB:()=>lS,DOLLARDE:()=>lC,DOLLARFR:()=>lk,EFFECT:()=>lI,FV:()=>lA,FVSCHEDULE:()=>lT,IPMT:()=>lE,IRR:()=>lR,ISPMT:()=>lD,MIRR:()=>lO,NOMINAL:()=>lM,NPER:()=>lN,NPV:()=>lP,PDURATION:()=>lL,PMT:()=>lB,PPMT:()=>lF,PV:()=>lV,RATE:()=>lz,RRI:()=>lH,SLN:()=>lW,SYD:()=>lY,TBILLEQ:()=>lU,TBILLPRICE:()=>lG,TBILLYIELD:()=>lZ,XIRR:()=>lj,XNPV:()=>lq});var v={};i.r(v),i.d(v,{ADDRESS:()=>l1,HYPERLINK:()=>lX,INDEX:()=>l0,INDIRECT:()=>l$,ISDATE:()=>lJ,OFFSET:()=>lQ});var b={};i.r(b),i.d(b,{JOIN:()=>l4,NUMBERS:()=>l5,REFERENCE:()=>l3});var y={};i.r(y),i.d(y,{AVERAGEIF:()=>cn,AVERAGEIFS:()=>co,COUNTIF:()=>l8,COUNTIFS:()=>l7,MAXIFS:()=>ca,MINIFS:()=>cs,SUMIF:()=>ci,SUMIFS:()=>ct});var w={};i.r(w),i.d(w,{equal:()=>cx,greaterThan:()=>c_,greaterThanOrEqual:()=>cC,lessThan:()=>cw,lessThanOrEqual:()=>cS,not:()=>ck});var _=i(61367),x=i(69774),S=i(31076),C=i(721),k=i(35599),I=i(73230),A=i(82822);let T={CELL:/^(\$?)([A-Z]+)(\$?)(\d+)$/i,COLRANGECELL:/^(\$?)([A-Z]+):(\$?)([A-Z]+)$/i,ROWRANGECELL:/^(\$?)(\d+):(\$?)(\d+)$/},E={CELL:/^(?:R\[(-?\d+)\]|R(\d*))(?:C\[(-?\d+)\]|C(\d*))/,COLRANGECELL:/^(?:C\[(-?\d+)\]|C(\d+)):(?:C\[(-?\d+)\]|C(\d+))/,ROWRANGECELL:/^(?:R\[(-?\d+)\]|R(\d+)):(?:R\[(-?\d+)\]|R(\d+))/},R=/^(?:(\$?)([A-Z]+))?(?:(\$?)(\d+))?$/i;function D(e){let t=R.exec(e);if(null===t)return{};let i=t[4]?{isRowAbs:!!t[3],row:(0,C.rowLabelToIndex)(t[4])}:null,n=t[2]?{isColAbs:!!t[1],col:(0,C.columnLabelToIndex)(t[2])}:null;return null===i||null===n?i||n||{}:{...i,...n}}function O(e){let t=e.split(":").map(D),i={},n={};for(let e=0;e<t.length;e++){let{row:o,col:r,isRowAbs:a,isColAbs:s}=t[e];(0===e||void 0===o||i.row>o)&&(i.row=o,i.isRowAbs=a),(0===e||void 0===r||i.col>r)&&(i.col=r,i.isColAbs=s),(0===e||void 0===o||n.row<o)&&(n.row=o,n.isRowAbs=a),(0===e||void 0===r||n.col<r)&&(n.col=r,n.isColAbs=s)}return{top:i.row,left:i.col,right:n.col,bottom:n.row,isTopAbs:i.isRowAbs,isLeftAbs:i.isColAbs,isRightAbs:n.isColAbs,isBottomAbs:n.isRowAbs}}function M(e){let t=[],i=e.split(":");for(let e=0;e<i.length;e++)t.push(D(i[e]));return N(t)}function N(e){let t={},i={};for(let n=0;n<e.length;n++){let{row:o,col:r}=e[n];(void 0===t.row||t.row>o)&&(t.row=o),(void 0===t.col||t.col>r)&&(t.col=r),(void 0===o||i.row<o||0===n)&&(i.row=o),(void 0===r||i.col<r||0===n)&&(i.col=r)}return[t,i]}function P(e){let t=e.split(":");for(let e=0;e<t.length;e++){let i=R.exec(t[e]);null!==i&&(i[4]&&!i[1]&&(i[3]=i[3]?"":"$"),i[2]&&(i[1]=i[1]?"":"$"),t[e]=i.slice(1).join(""))}return t.join(":")}function L(e,t,i,n,o){let r="",a=(0,I.wS)(t);for(let t=0;t<a.size();t++)r+=function(e,t,i,n,o){if(!t.isRange()||(t.getSheetName()||o)!==n||t.isRowRange()&&"row"!==e||t.isColRange()&&"col"!==e)return t.getText();let r=function(e,t,i){let n=t.split(":").map(D),[o,r]=N(n),a=o[e],s=r[e],l=i.isBackward&&a>=i.sec[0].start&&a<=i.sec[0].end,c=!i.isBackward&&s>=i.sec[1].start&&s<=i.sec[1].end;for(let t=0;t<n.length;t++){var d;let o=n[t];void 0!==o[e]&&(o[e]=(d=o[e],d>=i.sec[0].start&&d<=i.sec[0].end?c?i.sec[0].start:d+i.sec[1].amount:d>=i.sec[1].start&&d<=i.sec[1].end?l?i.sec[1].end:d-i.sec[0].amount:d))}return n.map(C.coordToLabel).join(":")}(e,t.getValue(),i);return r?t.getFullSheetName()+r:"#REF!"}(e,a.get(t),i,n,o);return r}function B(e,t,i){return e<i?e:t<0&&e+t<i?-1:e+t}function F(e,t,i,n){if(!e.isRange())return e.getText();let{delta:o,start:r}=t,a=e.getSheetName()||n,s=void 0!==i;if(s&&i!==a)return e.getText();let l=function(e,t,i,n){let o=[],r=e.split(":"),a=!0,s={row:!0,col:!0};for(let e=0;e<r.length;e++){let l=D(r[e]),{row:c,col:d}=l;void 0!==l.row&&t.row&&(!l.isRowAbs||n)&&(l.row=B(l.row,t.row,i.row)),void 0!==l.col&&t.col&&(!l.isColAbs||n)&&(l.col=B(l.col,t.col,i.col));let u=l.row<0||l.col<0;if(s.row=s.row&&l.row!==c,s.col=s.col&&l.col!==d,a=a&&u,!n&&u)break;o.push(l)}if(a||o.length!==r.length)return"";let l=i.row-+!s.row,c=i.col-+!s.col;for(let e=0;e<o.length;e++){let t=o[e];t.row=t.row<0?l:t.row,t.col=t.col<0?c:t.col,r[e]=(0,C.coordToLabel)(t)}return r.join(":")}(e.getValue(),o,r,s);return l?e.getFullSheetName()+l:"#REF!"}function V(e,t,i,n){if(t.start||(t.start={row:0,col:0}),(0,A.Z)(t.delta)){let e=t.delta||0;t.delta={},void 0!==t.start.row&&(t.delta.row=e),void 0!==t.start.col&&(t.delta.col=e)}let o="",r=(0,I.wS)(e);for(let e=0;e<r.size();e++)o+=F(r.get(e),t,i,n);return o}function z(e,t){let i={row:0,col:0},n="",o=(0,I.wS)(e);for(let e=0;e<o.size();e++){let r=o.get(e);!r.isRange()||r.getSheetName()?n+=r.getText():n+=F(r,{delta:t,start:i})}return n}function H(e){if(!e.isRange())return e.getText();let t=e.getValue();return t=e.isCellRange()?t.split(":").map(e=>{let t=R.exec(e);return`${t[2]}${t[4]}`}).join(":"):t.split(":").map(e=>e.replace("$","")).join(":"),`${e.getFullSheetName()}${t}`}function W(e){let t=D(e);return(!Object.prototype.hasOwnProperty.call(t,"isRowAbs")||t.isRowAbs)&&(!Object.prototype.hasOwnProperty.call(t,"isColAbs")||t.isColAbs)}function Y(e){let t="",i=(0,I.wS)(e);for(let e=0;e<i.size();e++)t+=function(e){if(!e.isRange())return e.getText();let t=e.getValue();return t=e.isCellRange()?t.split(":").map(e=>{let t=R.exec(e);return"$"+t[2]+"$"+t[4]}).join(":"):t.split(":").map(e=>(0>e.indexOf("$")?"$":"")+e).join(":"),e.getFullSheetName()+t}(i.get(e));return t}function U(e){let t=(0,I.wS)(e);for(let e=0;e<t.size();e++)if(!function e(t){return!t.isRange()||(t.isGroup()?t.getTokens().every(e):t.isRowRange()||t.isColRange()?t.getValue().split(":").every(W):W(t.getValue()))}(t.get(e)))return!1;return!0}function G(e,t,i){let n,o,r,a,s,l,c,d=[];for(I.cV.setInput(e);!I.cV.done;)switch(I.cV.next()){case I.QT.CELL:o=parseInt((n=T.CELL.exec(I.cV.yytext))[4],10)-1,r=(0,C.columnLabelToIndex)(n[2]),o=n[3]?`R${o+1}`:`R[${o-t}]`,d.push(o+(r=n[1]?`C${r+1}`:`C[${r-i}]`));break;case I.QT.COLRANGECELL:n=T.COLRANGECELL.exec(I.cV.yytext),l=(0,C.columnLabelToIndex)(n[2]),c=(0,C.columnLabelToIndex)(n[4]),l=n[1]?`C${l+1}`:`C[${l-i}]`,d.push(l+":"+(c=n[3]?`C${c+1}`:`C[${c-i}]`));break;case I.QT.ROWRANGECELL:a=parseInt((n=T.ROWRANGECELL.exec(I.cV.yytext))[2],10)-1,s=parseInt(n[4],10)-1,a=n[1]?`R${a+1}`:`R[${a-t}]`,d.push(a+":"+(s=n[3]?`R${s+1}`:`R[${s-t}]`));break;default:d.push(I.cV.yytext)}return d.join("")}function Z(e,t,i){let n=e[1]||e[2],o=e[3]||e[4];return[n?parseInt(n,10):t,o?parseInt(o,10):i]}function j(e,t,i){let n,o,r,a,s,l,c,d=[],u=-2;for(I.cV.setInput(e),I.cV.pushState("R1C1");!I.cV.done;)switch(I.cV.next()){case I.QT.CELL:if(d.length===u+1)continue;n=E.CELL.exec(I.cV.yytext),[o,r]=Z(n,t+1,i+1),o+=n[1]?t:-1,r+=n[3]?i:-1,o<0||r<0?(u=d.length,d.push("#REF!")):(r=(n[4]?"$":"")+(0,C.columnIndexToLabel)(r),d.push(r+(o=(n[2]?"$":"")+(o+1))));break;case I.QT.COLRANGECELL:n=E.COLRANGECELL.exec(I.cV.yytext),[l,c]=Z(n,i+1,i+1),l+=n[1]?i:-1,c+=n[3]?i:-1,l<0||c<0?d.push("#REF!"):(l=(n[2]?"$":"")+(0,C.columnIndexToLabel)(l),d.push(l+":"+(c=(n[4]?"$":"")+(0,C.columnIndexToLabel)(c))));break;case I.QT.ROWRANGECELL:n=E.ROWRANGECELL.exec(I.cV.yytext),[a,s]=Z(n,t+1,t+1),a+=n[1]?t:-1,s+=n[3]?t:-1,a<0||s<0?d.push("#REF!"):(a=(n[2]?"$":"")+(a+1),d.push(a+":"+(s=(n[4]?"$":"")+(s+1))));break;case I.QT[":"]:d.length!==u+1&&d.push(I.cV.yytext);break;default:d.push(I.cV.yytext)}return I.cV.popState(),d.join("")}function q(e){let t,i="";for(I.cV.setInput(e),I.cV.pushState("R1C1");!I.cV.done;)switch(I.cV.next()){case I.QT.CELL:i+="R"+((t=E.CELL.exec(I.cV.yytext))[3]?`[${t[3]}]`:t[4]),i+="C"+(t[1]?`[${t[1]}]`:t[2]);break;case I.QT.COLRANGECELL:i+=I.cV.yytext.replace(/C/g,()=>"R");break;case I.QT.ROWRANGECELL:i+=I.cV.yytext.replace(/R/g,()=>"C");break;default:i+=I.cV.yytext}return I.cV.popState(),i}function K(e,t,i,n,o,r){void 0===r&&(r=!1);let a={row:i.from.row-t.from.row,col:i.from.col-t.from.col},s=e=>{if(!e.isCellRange())return e.getText();let s=e.getSheetName()||n,l=e.getValue(),c=l.split(":").map(D),d=O(l),u=t.includes(d.top,d.left),h=t.includes(d.bottom,d.right),p=t.includes(d.top,d.right),f=t.includes(d.bottom,d.left),g=i.includes(d.top,d.left),m=i.includes(d.bottom,d.right),v=i.includes(d.top,d.right),b=i.includes(d.bottom,d.left),y=0!==a.row&&0===a.col,w=0!==a.col&&0===a.row;if(t.shName===s&&c.every(e=>t.includes(e.row,e.col))){let t=c.map(e=>(0,C.coordToLabel)({row:e.row+a.row,col:e.col+a.col,isRowAbs:e.isRowAbs,isColAbs:e.isColAbs})).join(":"),r=i.shName;return(o||!e.getSheetName()&&r===n?"":`${(0,C.escapeSheetName)(r)}!`)+t}if(o&&!e.getSheetName())return`${(0,C.escapeSheetName)(t.shName)}!`+l;if(t.shName===s&&i.shName===s&&((u&&p||f&&h)&&y||(u&&f||p&&h)&&w)){let n=function(e,t,i,n,o,r){let a,s,l,c,d,u;void 0===o&&(o=-1),void 0===r&&(r=!1),1===o?(a=e.from[n],s=e.to[n],l=t.from[n],c=t.to[n],d=i.from[n],u=i.to[n]):(a=-e.to[n],s=-e.from[n],l=-t.to[n],c=-t.from[n],d=-i.to[n],u=-i.from[n]),r?(a=a+d-l,s=Math.max(s,u)):d<l?a=a+d-l:d>s?a=c+1:(a=l===a?Math.min(d,c+1):u>=s?c+1:a+d-l,s=Math.max(u,s));let h=new k.lu({row:e.from.row,col:e.from.col},{row:e.to.row,col:e.to.col},e.shName);return 1===o?(h.from[n]=a,h.to[n]=s):(h.to[n]=-a,h.from[n]=-s),h}(new k.lu({row:d.top,col:d.left},{row:d.bottom,col:d.right},s),t,i,y?"row":"col",u?1:-1,r),o=[(0,C.coordToLabel)({row:n.from.row,col:n.from.col,isRowAbs:d.isTopAbs,isColAbs:d.isLeftAbs}),(0,C.coordToLabel)({row:n.to.row,col:n.to.col,isRowAbs:d.isBottomAbs,isColAbs:d.isRightAbs})].join(":");return`${e.getFullSheetName()}${o}`}if(i.shName===(e.getSheetName()||n)){let[n,o]=N(c);if(!g&&!m)return e.getText();if(g&&m)return"#REF!";if(r&&(y||w)){let e=y?new k.lu(i.from,{row:t.from.row-1,col:i.to.col},i.shName):new k.lu(i.from,{row:i.to.row,col:t.from.col-1},i.shName),r=e.includes(n.row,n.col),a=e.includes(n.row,o.col),s=e.includes(o.row,o.col),l=e.includes(o.row,n.col);r&&a&&(n.row=i.to.row+1),l&&s&&(o.row=i.from.row-1),r&&l&&(n.col=i.to.col+1),a&&s&&(o.col=i.from.col-1)}else i.from.row<n.row&&g&&v&&!u&&!p&&(n.row=i.to.row+1),i.to.row>o.row&&b&&m&&!f&&!h&&(o.row=i.from.row-1),i.from.col<n.col&&g&&b&&!u&&!f&&(n.col=i.to.col+1),i.to.col>o.col&&v&&m&&!p&&!h&&(o.col=i.from.col-1);let a=c.map(e=>(0,C.coordToLabel)({row:Math.min(Math.max(e.row,n.row),o.row),col:Math.min(Math.max(e.col,n.col),o.col),isRowAbs:e.isRowAbs,isColAbs:e.isColAbs})).join(":");return`${e.getFullSheetName()}${a}`}return`${e.getFullSheetName()}${e.getValue()}`},l="",c=(0,I.wS)(e);for(let e=0,t=c.size();e<t;e++)l+=s(c.get(e));return l}function X(e,t,i){let n=e=>{if(!e.isCellRange()||(e.getSheetName()||i)!==t.shName)return e.getText();let n=e.getValue(),o=n.split(":").map(D),r=O(n),a=t.includes(r.top,r.left),s=t.includes(r.bottom,r.right),l=t.includes(r.top,r.right),c=t.includes(r.bottom,r.left),[d,u]=N(o);if(!a&&!s)return e.getText();if(a&&s)return"#REF!";a&&l&&(d.row=t.to.row+1),c&&s&&(u.row=t.from.row-1),a&&c&&(d.col=t.to.col+1),l&&s&&(u.col=t.from.col-1);let h=o.map(e=>(0,C.coordToLabel)({row:Math.min(Math.max(e.row,d.row),u.row),col:Math.min(Math.max(e.col,d.col),u.col),isRowAbs:e.isRowAbs,isColAbs:e.isColAbs})).join(":");return`${e.getFullSheetName()}${h}`},o="",r=(0,I.wS)(e);for(let e=0,t=r.size();e<t;e++)o+=n(r.get(e));return o}function Q(e,t){let i,n;void 0===t&&(t=!1);let o={};function r(e,i){return e?t?e[0]&&"-"===e[0].charAt(0)?parseInt(e[0].slice(1),10):null:e[0]||!e[1]?null:i(e[1]):null}function a(e){let t=r(e,C.rowLabelToIndex);null!==t&&(!Object.prototype.hasOwnProperty.call(o,"row")||o.row>t)&&(o.row=t)}function s(e){let t=r(e,C.columnLabelToIndex);null!==t&&(!Object.prototype.hasOwnProperty.call(o,"col")||o.col>t)&&(o.col=t)}let l=I.QT,c=t?E:T;for(let r of e)if("string"==typeof r){for(I.cV.setInput(r),t&&I.cV.pushState("R1C1");!I.cV.done;)switch(i=I.cV.next(),n=I.cV.yytext,i){case l.CELL:{let e=n.match(c.CELL);t?(a([e[1],e[2]]),s([e[3],e[4]])):(a([e[3],e[4]]),s([e[1],e[2]]));break}case l.COLRANGECELL:{let e=n.match(c.COLRANGECELL);s([e[1],e[2]]),s([e[3],e[4]]);break}case l.ROWRANGECELL:{let e=n.match(c.ROWRANGECELL);a([e[1],e[2]]),a([e[3],e[4]]);break}case l.error:o={}}t&&I.cV.popState()}return o}class ${constructor(){this.keepNull=!1,this.keepNfId=!1,this.keepLink=!1}assign(e){return Object.assign(this,e),this}}class J extends ${constructor(){super(),this.skipHiddenRow=!1,this.skipHiddenCol=!1,this.skipFiltered=!1,this.skipSubtotal=!1}}function ee(e){let t={row:0,col:0},i={row:Number.MAX_VALUE,col:Number.MAX_VALUE};for(let n=0,o=e.length;n<o;n++){let{row:o,col:r}=e[n];o<i.row&&(i.row=o),r<i.col&&(i.col=r),o>t.row&&(t.row=o),r>t.col&&(t.col=r)}return{from:i,to:t}}var et=((n=et||{})[n.ERROR=0]="ERROR",n[n.VALUE=1]="VALUE",n[n.ARRAY=2]="ARRAY",n[n.CELL_REF=3]="CELL_REF",n[n.ROW_REF=4]="ROW_REF",n[n.COL_REF=5]="COL_REF",n);class ei{constructor(e,t){this.v=e,this.t=t}static fromValue(e){let t=1;return Array.isArray(e)?t=2:(0,S.VZ)(e)&&(t=0),new ei(e,t)}isError(){return 0===this.t}isValue(){return 1===this.t}isArray(){return 2===this.t}isCellRef(){return 3===this.t}isRowRef(){return 4===this.t}isColRef(){return 5===this.t}isRef(){return this.isCellRef()||this.isRowRef()||this.isColRef()}set(e,t){this.t=et[e],this.v=t}resolve(e,t){return this.isArray()?this.v.map(i=>i.map(i=>i instanceof ei?i.resolve(e,t):i)):this.v}finalize(e){return function e(t){return Array.isArray(t)?t.map(e):"number"==typeof t?(0,S.ij)(t):t}(this._finalize(e))}_finalize(e,t){return this.resolve(e,t)}addCellRef(e){this.t=0,this.v=x.Z.ERROR}}class en extends ei{constructor(e,t,i){super(e,t),this.shName=i,this.isImplicit=!1}resolve(e,t){switch(t=t||new $,this.t){case 3:return this.v.length>1?e.rangeValue(this,t):e.cellValue(this,t);case 4:return e.rowRangeValue(this,t);case 5:return e.colRangeValue(this,t);default:return this.v}}resolveDimension(e){switch(this.t){case 3:return this.v.length>1?e.rangeDimension(this):{height:0,width:0};case 4:return e.rowRangeDimension(this);case 5:return e.colRangeDimension(this);default:return{height:0,width:0}}}finalize(e){let t=new $().assign({keepNfId:!0});return this.isCellRef()&&1===this.v.length&&(t.keepLink=!0),this._finalize(e,t)}setImplicit(){this.isImplicit=!0}addCellRef(e){3===this.t&&this.v&&3===e.t&&e.v?(this.v.push(e.v[0]),e.isImplicit&&this.setImplicit()):ei.prototype.addCellRef.call(this,e)}static fromCell(e,t,i){let n=new en([e],3,t);return i&&n.setImplicit(),n}static fromRange(e,t,i){let n=en.fromCell(e.from,t,i);return n.v.push(e.to),n}static createRangeRef(e,t){return new en(e.split(":").map(D),3,t)}static createCellRef(e,t){return new en([D(e)],3,t)}static createRowRef(e,t){let[{row:i},{row:n}]=M(e);return new en([i,n],4,t)}static createColRef(e,t){let[{col:i},{col:n}]=M(e);return new en([i,n],5,t)}toRange(){let e=this.v;switch(this.t){case 3:if(!(e.length>1))return new k.lu(e[0],{row:e[0].row,col:e[0].col},this.shName);{let{from:t,to:i}=ee(e);return new k.lu(t,i,this.shName)}case 4:return new k.lq(Math.min(e[0],e[1]),Math.max(e[0],e[1]),this.shName);case 5:return new k.l0(Math.min(e[0],e[1]),Math.max(e[0],e[1]),this.shName);default:throw Error("unexpected expr type")}}toCellRef(e){let t,i=e.getInstance(this);if(!i)return null;switch(this.t){case 3:t=[(t=ee(this.v)).from,t.to];break;case 4:t=[{row:Math.min(this.v[0],this.v[1]),col:0},{row:Math.max(this.v[0],this.v[1]),col:i.countCols()-1}];break;case 5:t=[{row:0,col:Math.min(this.v[0],this.v[1])},{row:i.countRows()-1,col:Math.max(this.v[0],this.v[1])}]}if(!t)return null;let n=new en(t,3,this.shName);return this.isImplicit&&n.setImplicit(),n}toVisibleRefExpr(){let e=new eo(this.v,this.t,this.shName);return this.isImplicit&&e.setImplicit(),e}}class eo extends en{resolve(e,t){switch(t=t||new $,this.t){case 3:return this.v.length>1?e.visibleRangeValue(this,t):e.visibleCellValue(this,t);case 4:return e.visibleRowRangeValue(this,t);case 5:return e.visibleColRangeValue(this,t);default:return this.v}}}class er extends ei{constructor(e,t){super(e,1),this.href=t}finalize(e){let t=e.item;return t&&(t.href=this.href),this._finalize(e)}}function ea(e,t){return Array(e).fill(null).map(e=>Array(t))}function es(e,t){return void 0===t&&(t=0),Array.from({length:e},(e,i)=>i+t)}function el(e,t){return e instanceof en?e.resolveDimension(t):(e instanceof ei&&(e=e.v),Array.isArray(e))?{height:e.length,width:Array.isArray(e[0])?e[0].length:1}:{height:0,width:0}}function ec(e){let t=function e(t){return Array.isArray(t)?1+e(t[0]):0}(e),i=e,n=1,o=1;switch(t){case 0:i=[[e]];break;case 1:n=1,o=e.length,i=[e];break;case 2:n=e.length,o=e[0].length}return{value:i,dimension:t,height:n,width:o,isCell:1===n&&1===o,isRow:1===n&&o>1,isCol:n>1&&1===o,isRange:n>1&&o>1}}function ed(e,t){let i=es(e);for(let n=e;n<t.length;n+=2)i.push(n);return i}let eu={};function eh(e,t){let i=e.map(ec);if(i.some(e=>e.dimension>2))return x.Z.VALUE;if(i.every(e=>e.isCell))return t(i.map(e=>e.value[0][0]));let n=i.reduce((e,t)=>{let{height:i}=t;return Math.max(e,i)},Number.NEGATIVE_INFINITY),o=i.reduce((e,t)=>{let{width:i}=t;return Math.max(e,i)},Number.NEGATIVE_INFINITY),r=i.map(e=>(function(e,t,i){let{value:n,height:o,width:r,dimension:a,isRow:s,isCol:l,isCell:c}=e;if(!s&&!l&&!c)return n;s&&(i=r),l&&(t=o);let d=ea(t,i);for(let e=0;e<t;e++){let t=c||s?0:e;for(let o=0;o<i;o++){let i=c||l?0:o;d[e][o]=n[t][i]}}return d})(e,n,o)),a=ea(n,o),s=r.reduce((e,t)=>Math.min(e,t.length),Number.POSITIVE_INFINITY),l=r.reduce((e,t)=>Math.min(e,t[0].length),Number.POSITIVE_INFINITY);for(let e=0;e<n;e++)for(let i=0;i<o;i++)a[e][i]=e>=s||i>=l?x.Z.NA:t(r.map(t=>t[e][i]));return a}function ep(e,t,i){if(void 0===i&&(i=0),0===i)return t(e);let n=e.slice(0,i);return e=e.slice(i),eh(n,i=>t([...i,...e]))}function ef(e,t,i){i=i.slice();let n=e.slice();for(;i.length>0&&i[i.length-1]>=e.length;)i.pop();for(let e of i)n[e]=[[0]];return eh(n,n=>{for(let t of i)n[t]=e[t];return t(n)})}function eg(e){return function(t,i){return ef(t,i,e)}}let em={};function ev(e,t){let i=1,n=1;for(let o of e){let e=el(o,t);i=Math.max(i,e.height),n=Math.max(n,e.width)}return 1===i&&1===n?{height:0,width:0}:{height:i,width:n}}function eb(e,t,i){return ev(e.filter((e,t)=>!i.includes(t)),t)}function ey(e){return function(t,i){return eb(t,i,e)}}[["IMPRODUCT","IMSUM","AND","OR","XOR","ROWS","COLUMNS","GCD","LCM","MULTINOMIAL","PRODUCT","SUM","SUMPRODUCT","SUMSQ","SUMX2MY2","SUMX2PY2","SUMXMY2","AVEDEV","AVERAGE","AVERAGEA","CHISQ.TEST","CHITEST","CONCAT","CORREL","COUNT","COUNTA","COUNTBLANK","COVAR","COVARIANCE.P","COVARIANCE.S","DEVSQ","F.TEST","FTEST","GEOMEAN","HARMEAN","INTERCEPT","KURT","MAX","MAXA","MEDIAN","MIN","MINA","MODE.SNGL","MODE","PEARSON","RSQ","SKEW.P","SKEW","SLOPE","STDEV.P","STDEV.S","STDEV","STDEVA","STDEVP","STDEVPA","STEYX","VAR.P","VAR.S","VAR","VARA","VARP","VARPA"],["NPV","SUBTOTAL","FORECAST"]].forEach((e,t)=>{if(0===e.length)return;let i=function(e,i){return ep(e,i,t)},n=function(e,i){return ev(e.slice(0,t),i)};for(let t of e)eu[t]=i,em[t]=n}),["OFFSET","INDIRECT","INDEX","SEQUENCE","SORT","SORTBY","FILTER","RANDARRAY","TRANSPOSE","FLATTEN","UNIQUE"].forEach(e=>{eu[e]=ep}),[["IRR","MIRR","TYPE","LARGE","PERCENTILE.EXC","PERCENTILE.INC","PERCENTILE","PERCENTRANK.EXC","PERCENTRANK.INC","PERCENTRANK","QUARTILE.EXC","QUARTILE.INC","QUARTILE","SMALL","TRIMMEAN"],["FVSCHEDULE","MATCH","RANK.AVG","RANK.EQ","RANK"],["NETWORKDAYS","WORKDAY"],["NETWORKDAYS.INTL","WORKDAY.INTL","SERIESSUM"]].forEach((e,t)=>{if(0===e.length)return;let i=eg([t]),n=ey([t]);for(let t of e)eu[t]=i,em[t]=n}),[[],["XIRR","PROB","T.TEST","TTEST","Z.TEST","ZTEST"]].forEach((e,t)=>{if(0===e.length)return;let i=eg(es(t+1)),n=ey(es(t+1));for(let t of e)eu[t]=i,em[t]=n}),[["SUMIF","AVERAGEIF","COUNTIF","COUNTIFS"],["SUMIFS","AVERAGEIFS","MAXIFS","MINIFS"]].forEach((e,t)=>{if(0===e.length)return;let i=function(e,i){return ef(e,i,ed(t,e))},n=function(e,i){return eb(e,i,ed(t,e))};for(let t of e)eu[t]=i,em[t]=n}),eu.XNPV=eg([1,2]),em.XNPV=ey([1,2]),eu.ROW=ep,em.ROW=function(e,t){let i=e[0];if(!i||!i.isRef())return{height:0,width:0};let{height:n}=i.resolveDimension(t);return{height:n,width:1}},eu.COLUMN=ep,em.COLUMN=function(e,t){let i=e[0];if(!i||!i.isRef())return{height:0,width:0};let{width:n}=i.resolveDimension(t);return{height:1,width:n}},eu.HLOOKUP=eg([1,3]),em.HLOOKUP=ey([1,3]),eu.VLOOKUP=eg([1,3]),em.VLOOKUP=ey([1,3]),eu.IF=function(e,t){let{height:i,width:n}=ec(e[0]);return i>1||n>1?eh(e,t):t(e)},em.IF=function(e,t){let i=e[0];if(!i)return{height:0,width:0};let{height:n,width:o}=el(i,t);return n>1||o>1?ev(e,t):el(i.resolve(t,new $)?e[1]:e[2],t)},eu.XLOOKUP=eg([1,2]),em.XLOOKUP=ey([1,2]),eu.IFS=function(e,t){for(let i=0;i<e.length;i+=2){let{height:n,width:o}=ec(e[i]);if(n>1||o>1)return eh(e,t)}return t(e)},em.IFS=function(e,t){for(let i=0;i<e.length;i+=2){let{height:n,width:o}=el(e[i],t);if(n>1||o>1)return ev(e,t)}for(let i=0;i<e.length;i+=2)if(e[i].resolve(t,new $))return el(e[i+1],t);return{height:0,width:0}};let ew=class{constructor(){this.visitedSet=new Set,this.stack=[]}push(e){return!this.visitedSet.has(e)&&(this.visitedSet.add(e),this.stack.push(e),!0)}pop(){if(0===this.stack.length)return;let e=this.stack.pop();return this.visitedSet.delete(e),e}top(){let e=this.stack.length;return e>0?this.stack[e-1]:null}markCircularReferences(e){let t=this.stack.indexOf(e);if(!(t<0))for(let e=t;e<this.stack.length;e++)this.stack[e].markCircularReference()}clear(){this.visitedSet.clear(),this.stack.length=0}},e_=new Set(["OFFSET","CHOOSE","INDIRECT","INDEX","SEQUENCE","SORT","SORTBY","FILTER","RANDARRAY","TRANSPOSE","FLATTEN","UNIQUE","XLOOKUP","IMPORTRANGE"]),ex=new Set([...e_,"IFS"]);class eS{constructor(){this.funcState=[]}pushFuncName(e){this.funcState.push({name:e,argCount:0})}popFuncName(){this.funcState.pop()}pushArgs(e){0!==this.funcState.length&&(this.funcState[this.funcState.length-1].argCount+=e)}needRealValue(){for(let{name:e,argCount:t}of this.funcState)if(ex.has(e)||"IF"===e&&0===t)return!0;return!1}isReturnRefFunction(e){return e_.has(e)}}class eC{constructor(e,t){this.range=e,this.shName=e.shName,this.isImplicit=t}toRange(){return this.range}}let ek=class{constructor(e){this.workbook=e,this.footprint=new ew,this.instStack=[],this.dimHelpers=[],this._preValidateCell=null}preExec(e){let t=(e=e||{}).item;if(t&&!this.footprint.push(t))return this.footprint.markCircularReferences(t),!1;let i=this.workbook.getSheetById(e.sheetId);return!!i&&(this.instStack.push(i),this.dimHelpers.push(new eS),e.preValidateCell&&(this._preValidateCell=e.preValidateCell),!0)}postExec(e){let t=!0,i=e.item;return i&&(this.footprint.pop(),i.circularRef&&(t=!1)),this.instStack.pop(),this.dimHelpers.pop(),e.preValidateCell&&this._preValidateCell===e.preValidateCell&&(this._preValidateCell=null),t}get item(){return this.footprint.top()}get preValidateCell(){return this._preValidateCell}cellValue(e,t){return this._getSourceData(e,function(i,n){let o=e.v[0];return i.cellValue(o.row,o.col,n,t)})}rangeValue(e,t){return this._getSourceData(e,function(i,n){let o=ee(e.v);return i.rangeValue(o.from,o.to,n,t)})}rowRangeValue(e,t){return this._getSourceData(e,function(i,n){let[o,r]=e.v;if(o>r){let e=o;o=r,r=e}return i.rangeValue({row:o,col:0},{row:r,col:Number.MAX_VALUE},n,t)})}colRangeValue(e,t){return this._getSourceData(e,function(i,n){let[o,r]=e.v;if(o>r){let e=o;o=r,r=e}return i.rangeValue({row:0,col:o},{row:Number.MAX_VALUE,col:r},n,t)})}visibleCellValue(e,t){return this._getSourceData(e,function(i,n){let o=e.v[0];return i.visibleCellValue(o.row,o.col,n,t)})}visibleRangeValue(e,t){return this._getSourceData(e,function(i,n){let o=ee(e.v);return i.visibleRangeValue(o.from,o.to,n,t)})}visibleRowRangeValue(e,t){return this._getSourceData(e,function(i,n){let[o,r]=e.v;if(o>r){let e=o;o=r,r=e}return i.visibleRangeValue({row:o,col:0},{row:r,col:Number.MAX_VALUE},n,t)})}visibleColRangeValue(e,t){return this._getSourceData(e,function(i,n){let[o,r]=e.v;if(o>r){let e=o;o=r,r=e}return i.visibleRangeValue({row:0,col:o},{row:Number.MAX_VALUE,col:r},n,t)})}createRowVector(e,t,i,n){return this._getSourceData(new eC(e,i),function(i,o){return n(i.createRowVector(e,o,t))})}createColumnVector(e,t,i,n){return this._getSourceData(new eC(e,i),function(i,o){return n(i.createColumnVector(e,o,t))})}createRangeVector(e,t,i,n){return this._getSourceData(new eC(e,i),function(i,o){return n(i.createRangeVector(e,o,t))})}getExternalRange(e,t){return this.getCurrentInstance().formula.getExternalValue(e,t,this)}rangeDimension(e){return this._getRefDimension(e,t=>{let i=ee(e.v);return{height:i.to.row-i.from.row+1,width:i.to.col-i.from.col+1}})}rowRangeDimension(e){return this._getRefDimension(e,t=>{let[i,n]=e.v;if(i>n){let e=i;i=n,n=e}return{height:n-i+1,width:t.countCols()}})}colRangeDimension(e){return this._getRefDimension(e,t=>{let[i,n]=e.v;if(i>n){let e=i;i=n,n=e}return{height:t.countRows(),width:n-i+1}})}_getRefDimension(e,t){let i=e.shName?this.workbook.getSheetByName(e.shName):this.getCurrentInstance();return i?t(i):{height:1,width:1}}addItemSelfImplicit(){this.item?.setSelfImplicit()}_getSourceData(e,t){let i=this.getCurrentInstance(),n=e.shName?this.workbook.getSheetByName(e.shName):i,o=!!e.isImplicit;if(!n)return o&&this.item&&this.item.setUnknownName(e.shName),x.Z.REF;let r=n!==i;r&&this.instStack.push(n),o&&this.item&&n.formula.addImplicitDep(this.item,e.toRange());let a=t(n.formula,this);return r&&this.instStack.pop(),a}getCurrentInstance(){return this.instStack[this.instStack.length-1]}getVariable(e,t){let i=this.getCurrentInstance().sheetId;if(t&&("'"===t.charAt(0)&&(t=t.slice(1,-1).replace(/''/,"'")),i=this.workbook.getIdByName(t)),!i)return;let n=this.workbook.getNameManager();return n.get(e,i)||n.get(e)}getInstance(e){return e.shName?this.workbook.getSheetByName(e.shName):this.getCurrentInstance()}getLocale(){return this.workbook.getLocale()}getDimHelper(){return this.dimHelpers[this.dimHelpers.length-1]}};var eI=i(88514);let eA=new $,eT=new $().assign({keepNull:!0}),eE=new $().assign({keepNfId:!0});function eR(e,t,i){void 0===i&&(i=eA);let n=[];for(let o of e)if(o.isError())n.push(o.v);else{let e=o.resolve(t,i);n.push(e)}return n}function eD(e,t){return eR(e,t,eT)}function eO(e,t,i){return eR(function(e){for(let t=0,i=e.length;t<i;t++){let i=e[t];i.isValue()&&((0,S.jn)(i.v)?i.v=+!!i.v:(0,eI.Z)(i.v)&&""!==i.v&&!isNaN(i.v)&&(i.v=parseFloat(i.v)))}return e}(e),t,i)}function eM(e){return e}function eN(e,t){if(e.length>0){e[0]=e[0].resolve(t,eT);let{height:i,width:n}=el(e[0],t);if(i>1||n>1)for(let i=1;i<e.length;i++)e[i]=e[i]?.resolve(t,eA)}return e}function eP(e,t){return e.length>=2&&(e[1]=e[1].resolve(t,eA)),e}function eL(e,t){return e.length<2?e:[e[0].resolve(t,eT),e[1]].concat(eR(e.slice(2),t))}function eB(e,t){return eR(e,t,eT)}function eF(e,t){return eO(e,t,eE)}function eV(e,t){return eR(e,t,eE)}function ez(e,t,i){for(let n=e;n<t.length;n+=2)t[n]=t[n].resolve(i,eT);return t}function eH(e,t){return ez(1,e,t)}function eW(e,t){return ez(2,e,t)}function eY(e,t){return eR(e,t,eT)}function eU(e,t){return 0===e.length&&t.addItemSelfImplicit(),e}let eG={resolverTable:{ROW:eU,COLUMN:eU,ROWS:eM,COLUMNS:eM,OFFSET:function(e,t){return 0===e.length?e:[e[0],...eR(e.slice(1),t)]},SUM:eF,AVERAGE:eF,AVEDEV:eO,CHOOSE:eN,SUBTOTAL:function(e,t){let i=e[0].resolve(t,eA),n=new J;n.skipHiddenRow=i>100,n.skipFiltered=!0,n.skipSubtotal=!0;let o=e.slice(1);for(let e=0;e<o.length;e++)o[e].isRef()&&(o[e]=o[e].toVisibleRefExpr());switch(i%100){case 1:case 9:n.keepNfId=!0,o=eO(o,t,n);break;case 2:o=eO(o,t,n);break;case 3:n.keepNull=!0,o=eR(o,t,n);break;case 4:case 5:n.keepNfId=!0,o=eR(o,t,n);break;default:o=eR(o,t,n)}return[i].concat(o)},SUMIF:eP,AVERAGEIF:eP,SUMIFS:eW,AVERAGEIFS:eW,MAXIFS:eW,MINIFS:eW,IF:eN,IFS:function(e,t){e=ez(0,e,t);for(let i=0;i<e.length;i+=2){let{height:n,width:o}=el(e[i],t);if(n>1||o>1){for(let i=1;i<e.length;i+=2)e[i]=e[i].resolve(t,eA);break}}return e},COUNT:eO,COUNTA:eB,COUNTIF:eH,COUNTIFS:eH,ISBLANK:eB,ISTEXT:eB,ISNONTEXT:eB,ISEVEN:eB,ISODD:eB,ISLOGICAL:eB,ISNUMBER:eB,TYPE:eB,MATCH:eL,VLOOKUP:eL,HLOOKUP:eL,XLOOKUP:function(e,t){return e.length<3?e:[e[0].resolve(t,eA),e[1],e[2]].concat(eR(e.slice(3),t))},MAX:eV,MIN:eV,INDIRECT:function(e,t){let i=eR(e,t),n=i.length;return!Array.isArray(i)||n>2||n<1||(i[0]=i[0].toString(),i[1]=1===n||!1!==i[1]),i},ISDATE:eM,INDEX:function(e,t){let i=eO(e.slice(1),t);return i[0]=i[0]||0,i[1]=i[1]||0,[e[0]].concat(i)},SORT:eY,SORTBY:eY,"=":eD,">":eD,"<":eD,">=":eD,"<=":eD,"<>":eD,NOT:eD,"+":eV,"-":eV},defaultResolver:eR},eZ='{"DATE":{"description":"Converts a specified year, month, and day into date format.","arguments":[{"name":"year","description":"An integer representing the year. If between 0 and 1899 (inclusive), 1900 will be added to that value. If less than 0, equal to 10000, or greater than 10000, SpreadSheet returns the invalid #NUM!."},{"name":"month","description":"An integer representing the month. If negative, the returned date extends back into the previous year. If greater than 12, the returned date extends forward into the following year."},{"name":"day","description":"An integer representing the day. If less than 1, the returned date extends back into the previous month. If greater than the number of days in the month specified in the month argument, the returned date extends forward into the following month."}],"variadic":0,"category":"date_and_time","example":[{"formula":"DATE(A2, B2, C2)","description":"Converts the year, month, and day represented, respectively, in cells A2, B2, and C2 into date format."},{"formula":"DATE(A3, B3, C3)","description":"Converts the year, month, and day represented, respectively, in cells A3, B3, and C3 into date format."},{"formula":"DATE(A4, B4, C4)","description":"Converts the year, month, and day represented, respectively, in cells A4, B4, and C4 into date format."},{"formula":"DATE(YEAR(TODAY()),1,1)","description":"Returns the first date of the current year. If the current year is 2016, the returned date will be 2016/1/1."},{"formula":"DATE(2011,1,1) + 100","description":"Returns the date 100 days after January 1, 2011."}]},"DATEDIF":{"description":"Calculates the difference between two given dates in days, months, or years.","arguments":[{"name":"start_date","description":"The starting date."},{"name":"end_date","description":"The ending date."},{"name":"unit","description":"The abbreviation for the time unit. Acceptable units include \\"Y\\", \\"M\\", \\"D\\", \\"MD\\", \\"YM\\", and \\"YD\\".\\n\\"Y\\": Difference in years.\\n\\"M\\": Difference in months.\\n\\"D\\": Difference in days.\\n\\"MD\\": Difference in days, ignoring months and years.\\n\\"YM\\": Difference in months, ignoring years.\\n\\"YD\\": Difference in days, ignoring years.\\n"}],"variadic":0,"notes":["If the start_date value is greater than the end_date value, the result will be #NUM!."],"category":"date_and_time","example":[{"formula":"DATEDIF(DATE(2019,1,1),DATE(2020,3,1), \\"Y\\")","description":"Calculates the difference between the two given dates in years."},{"formula":"DATEDIF(\\"2018/8/1\\", \\"2020/3/1\\", \\"D\\")","description":"Calculates the difference between the two given dates in days."},{"formula":"DATEDIF(\\"2018/3/1\\", \\"2020/4/1\\", \\"YD\\")","description":"Calculates the difference between the two given dates in days, ignoring years."}]},"DATEVALUE":{"description":"Converts a date string into a value which can be recognized as a date.","arguments":[{"name":"date_text","description":"The date you want to convert into a value. The valid date_text string format depends on your locale settings, and should be enclosed in quotation marks."}],"variadic":0,"category":"date_and_time","example":[{"formula":"DATEVALUE(\\"1987/5/6\\")","description":"Converts the date 1987/5/6 into a value, which represents the number of days since January 1, 1900."},{"formula":"DATEVALUE(\\"19/12/25\\")","description":"Converts the date 2019/12/25 into a value, which represents the number of days since January 1, 1900."}]},"DAY":{"description":"Returns the day of a given date.","arguments":[{"name":"serial_number","description":"The date that you want the day of."}],"variadic":0,"category":"date_and_time","example":[{"formula":"DAY(\\"1987/3/28\\")","description":"Returns the day of the given date."}]},"DAYS360":{"description":"Calculates the number of days between two given dates, based on a 360-day year (30 days per month, 12 months per year).","arguments":[{"name":"end_date","description":"The starting date."},{"name":"start_date","description":"The ending date."},{"name":"method","description":"Enter FALSE or omit this argument if you want to use the U.S. (NASD) method. Enter TRUE if you want to use the European method.","required":false}],"variadic":0,"category":"date_and_time","example":[{"formula":"DAYS360(\\"2015/2/27\\", \\"2015/3/1\\")","description":"Number of days between 2015/2/27 and 2015/3/1, using the U.S. method. Since every month has 30 days in a 360-day year, February also has 30 days, and therefore there are 4 days between 2/27 and 3/1."},{"formula":"DAYS360(\\"2015/2/27\\", \\"2015/3/1\\", TRUE)","description":"Number of days between 2015/2/27 and 2015/3/1, using the European method. Since every month has 30 days in a 360-day year, February also has 30 days, and therefore there are 4 days between 2/27 and 3/1."},{"formula":"DAYS360(\\"2015/2/28\\", \\"2015/3/1\\")","description":"Number of days between 2015/2/28 and 2015/3/1, using the U.S. method. Since the U.S. method converts the last day of a month into the 30th day of the same month, 2015/2/28 is equal to 2015/2/30."},{"formula":"DAYS360(\\"2015/2/28\\", \\"2015/3/1\\", TRUE)","description":"Number of days between 2015/2/28 and 2015/3/1, using the European method. Since every month has 30 days in a 360-day year, February also has 30 days, and therefore there are 3 days between 2/28 and 3/1."},{"formula":"DAYS360(\\"2015/3/1\\", \\"2015/3/31\\")","description":"Number of days between 2015/3/1 and 2015/3/31, using the U.S. method. If the ending date is the last day of a month and the starting day is before the 30th day of a month, the U.S. method converts the ending date into the first day of the next month. In this example, 2015/3/31 is equal to 2015/4/1, with March having 30 days."},{"formula":"DAYS360(\\"2015/3/1\\", \\"2015/3/31\\", TRUE)","description":"Number of days between 2015/3/1 and 2015/3/31, using the European method. If the staring date or the ending date occurs on the 31st day of a month, the European method converts it into the 30th day of the same month. In this example, 2015/3/31 is equal to 2015/3/30."}]},"EDATE":{"description":"Returns the date that is a specified number of months before or after a date.","arguments":[{"name":"start_date","description":"A date."},{"name":"months","description":"The number of months. Must be an integer."}],"variadic":0,"category":"date_and_time","example":[{"formula":"EDATE(\\"2015/5/23\\", 2)","description":"Returns the date two months after the given date."},{"formula":"EDATE(\\"2015/5/23\\", -3)","description":"Returns the date three months before the given date."}]},"EOMONTH":{"description":"Returns the last day of the month, that is a specified number of months before or after a given date.","arguments":[{"name":"start_date","description":"A date."},{"name":"months","description":"The number of months. Must be an integer."}],"variadic":0,"category":"date_and_time","example":[{"formula":"EOMONTH(\\"2016/2/16\\", 2)","description":"Returns the last day of the month, two months after the given date."},{"formula":"EOMONTH(\\"2017/3/29\\", -3)","description":"Returns the last day of the month, three months before the given date."}]},"HOUR":{"description":"Returns the hour of a given time value, in the form of an integer.","arguments":[{"name":"serial_number","description":"The time which contains the hour value that you wish to obtain."}],"variadic":0,"category":"date_and_time","example":[{"formula":"HOUR(\\"17:18\\")","description":"Returns the hour of a given time value 17:18."},{"formula":"HOUR(A2)","description":"Returns 60% of a day since 00:00 AM."},{"formula":"HOUR(A3)","description":"Returns the hour of a given time value 16:15 on a specific day 2019/12/8."}]},"MINUTE":{"description":"Returns the minute of the given time value, in the form of an integer ranging between 0 and 59.","arguments":[{"name":"serial_number","description":"The time which contains the minute value that you wish to obtain."}],"variadic":0,"category":"date_and_time","example":[{"formula":"MINUTE(\\"10:05\\")","description":"Returns the minute of a given time value (10:05)."}]},"MONTH":{"description":"Returns the month of a given date, in the form of an integer.","arguments":[{"name":"serial_number","description":"The date that you want the month of."}],"variadic":0,"category":"date_and_time","example":[{"formula":"MONTH(\\"2004/8/30\\")","description":"Returns the month portion of the given date."}]},"NETWORKDAYS.INTL":{"description":"Calculates the number of workdays between two given dates. Weekends and holidays would not be considered as workdays.","arguments":[{"name":"start_date","description":"The starting date."},{"name":"end_date","description":"The ending date."},{"name":"weekend","description":"One or two consecutive days that would be considered as weekend. Each combination of weekend days is represented by a code.\\n1 or default: Saturday and Sunday\\n2: Sunday and Monday\\n3: Monday and Tuesday           \\n4: Tuesday and Wednesday\\n5: Wednesday, Thursday\\n6: Thursday and Friday\\n7: Friday and Saturday\\n11: Sunday only\\n12: Monday only\\n13: Tuesday only\\n14: Wednesday only\\n15: Thursday only\\n16: Friday only\\n17: Saturday only\\n","required":false},{"name":"holidays","description":"The date(s) other than weekend that should not be considered as workdays.","required":false}],"variadic":0,"category":"date_and_time","example":[{"formula":"NETWORKDAYS.INTL(DATE(1996, 2, 12), DATE(1996, 9, 7))","description":"Calculates the number of workdays between 1996/2/12 and 1996/9/7 (inclusive)."},{"formula":"NETWORKDAYS.INTL(DATE(2019, 12, 12), DATE(2020, 1, 1), 6, {\\"2019/12/13\\"})","description":"Calculates the number of workdays between 2019/12/12 and 2020/1/1 (inclusive) but exclude every Thursday and Friday, and 2019/12/13."}]},"NETWORKDAYS":{"description":"Calculates the number of workways between two given dates. All Saturdays, Sundays, and holidays will not be considered as workdays.","arguments":[{"name":"start_date","description":"The starting date."},{"name":"end_date","description":"The ending date."},{"name":"holidays","description":"The date(s) other than Saturday and Sunday that should not be considered as workdays.","required":false}],"variadic":0,"category":"date_and_time","example":[{"formula":"NETWORKDAYS(DATE(1956, 2, 3), DATE(1978, 3, 6), DATE(1966, 7, 15))","description":"Calculates the number of workways between 1956/2/3 and 1978/3/6 (inclusive) but exclude every Saturday and Sunday, and 1966/7/15."}]},"NOW":{"description":"Returns the date and time that is a specified number of days before or after the current date and time.","arguments":[],"variadic":0,"category":"date_and_time","example":[{"formula":"NOW()","description":"Returns the current date and time. For example, if the current date and time is 12/17/2019 10:21:55, the returned result is 12/17/2019 10:21:55."},{"formula":"NOW()-A2","description":"Returns the date and time four days before the current date and time. For example, if the current date and time is 12/17/2019 10:21:55, the returned result is 12/13/2019 10:21:55."},{"formula":"NOW()+0.25","description":"Returns the date and time 0.25 days after the current date and time. For example, if the current date and time is 12/17/2019 10:21:55, the returned result is 12/17/2019 16:21:55."}]},"SECOND":{"description":"Returns the second of the given time value, in the form of an integer ranging between 0 and 59.","arguments":[{"name":"serial_number","description":"The time which contains the second value that you wish to obtain."}],"variadic":0,"category":"date_and_time","example":[{"formula":"SECOND(\\"11:18:20\\")","description":"Returns the second of a given time value 11:18:20."}]},"TIME":{"description":"Converts hour, minute, and second values into a time in time format.","arguments":[{"name":"hour","description":"An integer between 0 and 23. If greater than 24, the returned hour will be the remainder after it has been divided by 24."},{"name":"minute","description":"An integer between 0 and 59. If greater than 60, the returned minute extends forward into the following hour."},{"name":"second","description":"An integer between 0 and 59. If greater than 60, the returned second extends forward into the following minute."}],"variadic":0,"category":"date_and_time","example":[{"formula":"TIME(A2,B2,C2)","description":"Converts the hour, minute, and second value represented, respectively, into a time in time format."},{"formula":"TIME(25,26,42)","description":"Converts the hour, minute, and second value represented, respectively, into a time in time format."}]},"TIMEVALUE":{"description":"Converts a time string into a value which can be recognized as a time.","arguments":[{"name":"time_text","description":"The time you want to convert into a value."}],"variadic":0,"category":"date_and_time","example":[{"formula":"TIMEVALUE(\\"13:40\\")","description":"Converts the time 13:40 into a value, which represents the proportion of a day and shown by a decimal number."},{"formula":"TIMEVALUE(\\"7:35 PM\\")","description":"Converts the time 7:35 PM into a value, which represents the proportion of a day and shown by a decimal number."}]},"TODAY":{"description":"Returns the current date.","arguments":[],"variadic":0,"category":"date_and_time","example":[{"formula":"TODAY()","description":"Returns the current date. For example, if today is 2016/3/20, the returned result is 2016/3/20."},{"formula":"TODAY()+60","description":"Returns the date 60 days after the current date. For example, if today is 2016/3/20, the returned result is 2016/5/19."},{"formula":"YEAR(TODAY())-1945","description":"Calculates how many years it has been since 1945. For example, if the current year is 2016, the returned result is 71."}]},"WEEKDAY":{"description":"Returns a number which represents the day of the week of a given date, in the form of an integer.","arguments":[{"name":"serial_number","description":"The date that you want to know the day of the week."},{"name":"return_type","description":"A code that determines the sequence of the day of the week.\\n1 or default: 1 (Sunday) to 7 (Saturday)\\n2: 1 (Monday) to 7 (Sunday)\\n3: 0 (Monday) to 6 (Sunday)\\n11: 1 (Monday) to 7 (Sunday)\\n12: 1 (Tuesday) to 7 (Monday)\\n13: 1 (Wednesday) to 7 (Tuesday)\\n14: 1 (Thursday) to 7 (Wednesday)\\n15: 1 (Friday) to 7 (Thursday)\\n16: 1 (Saturday) to 7 (Friday)\\n17: 1 (Sunday) to 7 (Saturday)\\n","required":false}],"variadic":0,"category":"date_and_time","example":[{"formula":"WEEKDAY(\\"2019/12/14\\", 2)","description":"If the code you choose is 2, the returned number is 6. This means that 2019/12/14 is Saturday."},{"formula":"WEEKDAY(\\"2019/12/14\\", 3)","description":"If the code you choose is 3, the returned number is 5. This means that 2019/12/14 is Saturday."}]},"WEEKNUM":{"description":"Returns the week number of a given date.","arguments":[{"name":"serial_number","description":"The date that you want to get the week number of."},{"name":"return_type","description":"A code that determines which day of the week should be the first day of the week.\\n1 or default: Sunday\\n2: Monday\\n11: Monday\\n12: Tuesday\\n13: Wednesday\\n14: Thursday\\n15: Friday\\n16: Saturday\\n17: Sunday\\n21: Monday\\n","required":false}],"variadic":0,"category":"date_and_time","example":[{"formula":"WEEKNUM(\\"2019/11/5\\", 2)","description":"Week number of the given date, with Monday being the first day of a week. This date occurs on the 45th week of 2019."}]},"WORKDAY.INTL":{"description":"Returns the work date that is a specified number of workdays after a date. Weekends and holidays would not be considered as workdays.","arguments":[{"name":"start_date","description":"The starting date."},{"name":"days","description":"The number of days. Must be an integer."},{"name":"weekend","description":"One or two consecutive days that would be considered as weekend. Each combination of weekend days is represented by a code.\\n1 or default: Saturday and Sunday\\n2: Sunday and Monday\\n3: Monday and Tuesday           \\n4: Tuesday and Wednesday\\n5: Wednesday, Thursday\\n6: Thursday and Friday\\n7: Friday and Saturday\\n11: Sunday only\\n12: Monday only\\n13: Tuesday only\\n14: Wednesday only\\n15: Thursday only\\n16: Friday only\\n17: Saturday only\\n","required":false},{"name":"holidays","description":"The date(s) other than weekend that should not be considered as workdays.","required":false}],"variadic":0,"category":"date_and_time","example":[{"formula":"WORKDAY.INTL(DATE(2019, 11, 30), 60, 11, DATE(2020, 1, 1))","description":"Returns the work date that is 60 workdays after 2019/11/30 but exclude every Sunday and 2020/1/1."}]},"WORKDAY":{"description":"Returns the work date that is a specified number of workdays after a date. Weekends and holidays would not be considered as workdays.","arguments":[{"name":"start_date","description":"The starting date."},{"name":"days","description":"The number of days. Must be an integer."},{"name":"holidays","description":"The date(s) other than weekend that should not be considered as workdays.","required":false}],"variadic":0,"category":"date_and_time","example":[{"formula":"WORKDAY(DATE(2019, 10, 18), 150, DATE(2019, 12, 27))","description":"Returns the date that is 150 workdays after 2019/10/18 but exclude every Saturday and Sunday, and 2019/12/27."}]},"YEAR":{"description":"Returns the year of a given time value, in the form of an integer ranging between 1900 and 9999.","arguments":[{"name":"serial_number","description":"The time which contains the year value that you wish to obtain."}],"variadic":0,"category":"date_and_time","example":[{"formula":"YEAR(\\"2019/12/12\\")","description":"Returns the year of a given time value 2019/12/12, in the form of an integer."}]},"YEARFRAC":{"description":"Calculates the fraction of a year between two given dates.","arguments":[{"name":"start_date","description":"The starting date."},{"name":"end_date","description":"The ending date."},{"name":"basis","description":"A code that determines the day count basis.\\n0 or default: 30/360 (US)\\n1: actual/actual\\n2: actual/360\\n3: actual/365\\n4: 30/360 (European)\\n","required":false}],"variadic":0,"category":"date_and_time","example":[{"formula":"YEARFRAC(A2, A3, 3)","description":"Calculates the fraction of a year between 2018/9/20 and 2020/6/1. The day count basis is actual/365."},{"formula":"YEARFRAC(DATE(2017, 3, 4), DATE(2017, 8, 30))","description":"Calculates the fraction of a year between 2017/3/4 and 2017/8/30. The day count basis is the default 30/360."}]},"BESSELI":{"description":"Calculates the result of the modified Bessel function.","arguments":[{"name":"x","description":"The number used to evaluate the modified Bessel function."},{"name":"n","description":"The number that decides the order of the Bessel function."}],"variadic":0,"category":"engineering","example":[{"formula":"BESSELI(8, 2)","description":"Calculates the modified Bessel function at 8 and an order of 2."}]},"BESSELJ":{"description":"Calculates the result of the Bessel function.","arguments":[{"name":"x","description":"The number used to evaluate the Bessel function."},{"name":"n","description":"The number that decides the order of the Bessel function."}],"variadic":0,"category":"engineering","example":[{"formula":"BESSELJ(7, 5)","description":"Calculates the Bessel function at 7 and an order of 5."}]},"BESSELK":{"description":"Calculates the result of the modified Bessel function.","arguments":[{"name":"x","description":"The number used to evaluate the modified Bessel function."},{"name":"n","description":"The number that decides the order of the Bessel function."}],"variadic":0,"category":"engineering","example":[{"formula":"BESSELK(1, 7)","description":"Calculates the modified Bessel function at 1 and an order of 7."}]},"BESSELY":{"description":"Calculates the result of the Bessel function.","arguments":[{"name":"x","description":"The number used to evaluate the Bessel function."},{"name":"n","description":"The number that decides the order of the Bessel function."}],"variadic":0,"category":"engineering","example":[{"formula":"BESSELY(11, 2)","description":"Calculates the Bessel function at 11 and an order of 2."}]},"BIN2DEC":{"description":"Converts a binary number into a decimal number.","arguments":[{"name":"number","description":"The binary number that you want to convert. Must contain no more than 10 characters. Negative numbers should be represented using two\'s complement notation."}],"variadic":0,"category":"engineering","example":[{"formula":"BIN2DEC(101)","description":"Converts the binary number 101 to decimal."}]},"BIN2HEX":{"description":"Converts a binary number into a hexadecimal number.","arguments":[{"name":"number","description":"The binary number that you want to convert. Must contain no more than 10 characters. Negative numbers should be represented using two\'s complement notation."},{"name":"places","description":"The number of characters of the returned number. Must be a positive integer equal to or larger than the number of characters that the returned number needs. If left blank, the minimum number of necessary characters is used.","required":false}],"variadic":0,"category":"engineering","example":[{"formula":"BIN2HEX(1010)","description":"Converts the binary number 1010 to hexadecimal."},{"formula":"BIN2HEX(1010, 2)","description":"Converts the binary number 1010 to hexadecimal with 2 characters."},{"formula":"BIN2HEX(1111111100)","description":"Converts the binary number 1111111100 to hexadecimal."}]},"BIN2OCT":{"description":"Converts a number from binary format into the octal format.","arguments":[{"name":"number","description":"The binary number that you want to convert, which should not be more than 10 characters."},{"name":"places","description":"The number of characters.","required":false}],"variadic":0,"category":"engineering","example":[{"formula":"BIN2OCT(101110111, 4)","description":"Converts 101110111 into an octal number with 4 characters."}]},"BITAND":{"description":"Returns the result of AND function by inputting two base 10 numbers.","arguments":[{"name":"number1","description":"The first base 10 number."},{"name":"number2","description":"The second base 10 number."}],"variadic":0,"category":"engineering","example":[{"formula":"BITAND(165, 48)","description":"10100101 is the base 2 number of 165. 00110000 is the base 2 number of 48. Put 10100101 and 00110000 in AND function, then the result is 00100000, which represents 32 as a base 10 number."}]},"BITLSHIFT":{"description":"Returns a base 10 number by converting a base 10 number into a base 2 number, adding a specified number of bits to it, and converting it back to a 10 base number.","arguments":[{"name":"number","description":"The base 10 number that you want to convert."},{"name":"shift","description":"The number of bits that you want to add."}],"variadic":0,"category":"engineering","example":[{"formula":"BITLSHIFT(86, 2)","description":"Converts 86 into base 2 number: 1010110. Adds 2 bits to 1010110 to get 101011000, which translates to 344 as a base 10 number."}]},"BITOR":{"description":"Returns the result of OR function by inputting two base 10 numbers.","arguments":[{"name":"number1","description":"The first base 10 number."},{"name":"number2","description":"The second base 10 number."}],"variadic":0,"category":"engineering","example":[{"formula":"BITOR(165, 48)","description":"10100101 is the base 2 number of 165. 00110000 is the base 2 number of 48. Put 10100101 and 00110000 in OR function, then the result is 10110101, which represents 181 as a base 10 number."}]},"BITRSHIFT":{"description":"Returns a base 10 number by converting a base 10 number into a base 2 number, eliminating a specified number of bits from it, and converting it back to a base 10 number.","arguments":[{"name":"number","description":"The base 10 number that you want to convert."},{"name":"shift","description":"The number of bits that you want to eliminate."}],"variadic":0,"category":"engineering","example":[{"formula":"BITRSHIFT(498, 3)","description":"Converts 498 into base 2 number: 111110010. Eliminates 3 bits from 111110010 to get 111110, which translates to 62 as a base 10 number."}]},"BITXOR":{"description":"Returns the result of XOR function by inputting two base 10 numbers.","arguments":[{"name":"number1","description":"The first base 10 number."},{"name":"number2","description":"The second base 10 number."}],"variadic":0,"category":"engineering","example":[{"formula":"BITXOR(165, 48)","description":"10100101 is the base 2 number of 165. 00110000 is the base 2 number of 48. Put 10100101 and 00110000 in XOR function, then the result is 10010101, which represents 149 as a base 10 number."}]},"COMPLEX":{"description":"Converts a real coefficient and an imaginary coefficient into a complex number.","arguments":[{"name":"real","description":"The real coefficient."},{"name":"imaginary","description":"The imaginary coefficient."},{"name":"suffix","description":"The imaginary coefficient part of the complex number, which could be \\"i\\" or \\"j\\".","required":false}],"variadic":0,"category":"engineering","example":[{"formula":"COMPLEX(95, 27)","description":"Converts a real coefficient 95 and an imaginary coefficient 27 into a complex number."}]},"DEC2BIN":{"description":"Converts a base 10 number into a base 2 number.","arguments":[{"name":"number","description":"The base 10 number that you want to convert. The number must be less than 511 and larger than -512."},{"name":"places","description":"The number of characters.","required":false}],"variadic":0,"category":"engineering","example":[{"formula":"DEC2BIN(52, 8)","description":"Converts 52 into a base 2 number with 8 characters."}]},"DEC2HEX":{"description":"Converts a base 10 number into a base 16 number.","arguments":[{"name":"number","description":"The base 10 number that you want to convert."},{"name":"places","description":"The number of characters.","required":false}],"variadic":0,"category":"engineering","example":[{"formula":"DEC2HEX(90)","description":"Converts 90 into a base 16 number."}]},"DEC2OCT":{"description":"Converts a base 10 number into a base 8 number.","arguments":[{"name":"number","description":"The base 10 number that you want to convert."},{"name":"places","description":"The number of characters.","required":false}],"variadic":0,"category":"engineering","example":[{"formula":"DEC2OCT(45, 4)","description":"Converts 45 into a base 8 number with 4 characters."}]},"DELTA":{"description":"Returns 1 if the first value and the second value are equal. Returns 0 if the first value and the second value are not equal.","arguments":[{"name":"number1","description":"The first value."},{"name":"number2","description":"The second value. Default means the second value is 0.","required":false}],"variadic":0,"category":"engineering","example":[{"formula":"DELTA(3, 3)","description":"Returns 1 if the two values are equal."},{"formula":"DELTA(5)","description":"Returns 1 if the two values are equal. Returns 0 if they are not."}]},"ERF.PRECISE":{"description":"Returns the result of the error function.","arguments":[{"name":"x","description":"The lower boundary value."}],"variadic":0,"category":"engineering","example":[{"formula":"ERF.PRECISE(0.258)","description":"Returns the result of the error function when the lower boundary value is 0.258."}]},"ERF":{"description":"Returns the result of the error function.","arguments":[{"name":"lower_limit","description":"The lower boundary value."},{"name":"upper_limit","description":"The upper boundary value.","required":false}],"variadic":0,"category":"engineering","example":[{"formula":"ERF(0.2, 1)","description":"Returns the result of the error function when the lower boundary value is 0.2 and the upper boundary value is 1."}]},"ERFC.PRECISE":{"description":"Returns the result of a complementary error function between the lower boundary value and infinity.","arguments":[{"name":"x","description":"The lower boundary value."}],"variadic":0,"category":"engineering","example":[{"formula":"ERFC.PRECISE(3.1)","description":"Returns the result of the complementary error function when the lower boundary value is 3.1."}]},"ERFC":{"description":"Returns the result of a complementary error function between the lower boundary value and infinity.","arguments":[{"name":"x","description":"The lower boundary value."}],"variadic":0,"category":"engineering","example":[{"formula":"ERFC(0.5)","description":"Returns the result of the complementary error function when the lower boundary value is 0.5."}]},"GESTEP":{"description":"Returns 1 if the number is greater than or equal to the step. Returns 0 if the number is less than the step.","arguments":[{"name":"number","description":"The value to be tested against the step value."},{"name":"step","description":"The threshold. The default is set to 0.","required":false}],"variadic":0,"category":"engineering","example":[{"formula":"GESTEP(-0.2,-0.2)","description":"Returns 1 if the number -0.2 is greater than or equal to the step -0.2."}]},"HEX2BIN":{"description":"Converts a base 16 number into a base 2 number.","arguments":[{"name":"number","description":"The base 16 number that you want to convert."},{"name":"places","description":"The number of characters.","required":false}],"variadic":0,"category":"engineering","example":[{"formula":"HEX2BIN(\\"D3\\", 9)","description":"Converts D3 into a base 2 number with 9 characters."}]},"HEX2DEC":{"description":"Converts a base 16 number into a base 10 number.","arguments":[{"name":"number","description":"The base 16 number that you want to convert."}],"variadic":0,"category":"engineering","example":[{"formula":"HEX2DEC(\\"E77\\")","description":"Converts E77 into a base 10 number."}]},"HEX2OCT":{"description":"Converts a base 16 number into a base 8 number.","arguments":[{"name":"number","description":"The base 16 number that you want to convert."},{"name":"places","description":"The number of characters.","required":false}],"variadic":0,"category":"engineering","example":[{"formula":"HEX2OCT(\\"BF7\\", 5)","description":"Converts BF7 into a base 8 number with 5 characters."}]},"IMABS":{"description":"Returns the absolute value of a complex number.","arguments":[{"name":"inumber","description":"The complex number that you want the absolute value for. Must be in the x+yi or x+yj text format."}],"variadic":0,"category":"engineering","example":[{"formula":"IMABS(\\"3+4i\\")","description":"Returns the absolute value of the complex number 3+4i."},{"formula":"IMABS(COMPLEX(3, 4))","description":"Returns the absolute value of the complex number 3+4i using the COMPLEX function."}]},"IMAGINARY":{"description":"Returns the imaginary coefficient of a complex number.","arguments":[{"name":"inumber","description":"The complex number that you want the imaginary coefficient for. Must be in the x+yi or x+yj text format."}],"variadic":0,"category":"engineering","example":[{"formula":"IMAGINARY(\\"2+3i\\")","description":"Returns the imaginary coefficient of the complex number 2+3i."},{"formula":"IMAGINARY(COMPLEX(2, 3))","description":"Returns the imaginary coefficient of the complex number 2+3i using the COMPLEX function."},{"formula":"IMAGINARY(2)","description":"Returns the imaginary coefficient of the complex number 2. Since 2 is a real number, the imaginary coefficient is 0."}]},"IMARGUMENT":{"description":"Calculates the result of the Theta argument.","arguments":[{"name":"inumber","description":"The complex number that you want to calculate using the Theta argument."}],"variadic":0,"category":"engineering","example":[{"formula":"IMARGUMENT(\\"5-3i\\")","description":"Calculates the result of the Theta argument with 5-3i."}]},"IMCONJUGATE":{"description":"Returns the complex conjugate of a complex number.","arguments":[{"name":"inumber","description":"The complex number that you want the conjugate for. Must be in the x+yi or x+yj text format."}],"variadic":0,"category":"engineering","example":[{"formula":"IMCONJUGATE(\\"2+3i\\")","description":"Returns the complex conjugate of the complex number 2+3i."},{"formula":"IMCONJUGATE(COMPLEX(2, 3))","description":"Returns the complex conjugate of the complex number 2+3i using the COMPLEX function."}]},"IMCOS":{"description":"Calculates the cosine of a complex number.","arguments":[{"name":"inumber","description":"The complex number for which you want to know the cosine."}],"variadic":0,"category":"engineering","example":[{"formula":"IMCOS(\\"0.3+2i\\")","description":"Calculates the cosine of 0.3+2i."}]},"IMCOSH":{"description":"Calculates the hyperbolic cosine of a complex number.","arguments":[{"name":"inumber","description":"The complex number for which you want to know the hyperbolic cosine."}],"variadic":0,"category":"engineering","example":[{"formula":"IMCOSH(\\"0.3+2i\\")","description":"Calculates the hyperbolic cosine of 0.3+2i."}]},"IMCOT":{"description":"Calculates the cotangent of a complex number.","arguments":[{"name":"inumber","description":"The complex number for which you want to know the cotangent."}],"variadic":0,"category":"engineering","example":[{"formula":"IMCOT(\\"0.3+2i\\")","description":"Calculates the cotangent of 0.3+2i."}]},"IMCSC":{"description":"Returns the cosecant of a complex number.","arguments":[{"name":"inumber","description":"The complex number that you want to calculate the cosecant of. Must be in the x+yi or x+yj text format."}],"variadic":0,"category":"engineering","example":[{"formula":"IMCSC(\\"2+3i\\")","description":"Returns the cosecant of the complex number 2+3i."},{"formula":"IMCSC(COMPLEX(2, 3))","description":"Returns the cosecant of the complex number 2+3i using the COMPLEX function."}]},"IMCSCH":{"description":"Calculates the hyperbolic cosecant of a complex number.","arguments":[{"name":"inumber","description":"The complex number for which you want to know the hyperbolic cosecant."}],"variadic":0,"category":"engineering","example":[{"formula":"IMCSCH(\\"0.3+2i\\")","description":"Calculates the hyperbolic cosecant of 0.3+2i."}]},"IMDIV":{"description":"Divides one complex number by another and returns the quotient.","arguments":[{"name":"inumber1","description":"The numerator (i.e., the dividend). The complex number must be in the x+yi or x+yj text format."},{"name":"inumber2","description":"The denominator (i.e., the divisor). The complex number must be in the x+yi or x+yj text format."}],"variadic":0,"category":"engineering","example":[{"formula":"IMDIV(\\"2+3i\\", \\"-4+5i\\")","description":"Returns the quotient of the two complex numbers."},{"formula":"IMDIV(COMPLEX(2, 3), COMPLEX(-4, 5))","description":"Returns the quotient of the two complex numbers using the COMPLEX function."}]},"IMEXP":{"description":"Calculates the exponential of a complex number.","arguments":[{"name":"inumber","description":"The complex number for which you want to know the exponential."}],"variadic":0,"category":"engineering","example":[{"formula":"IMEXP(\\"0.3+2i\\")","description":"Calculates the exponential of 0.3+2i."}]},"IMLN":{"description":"Calculates the natural logarithm of a complex number.","arguments":[{"name":"inumber","description":"The complex number for which you want to know the natural logarithm."}],"variadic":0,"category":"engineering","example":[{"formula":"IMLN(\\"0.3+2i\\")","description":"Calculates the natural logarithm of 0.3+2i."}]},"IMLOG10":{"description":"Calculates the base 10 logarithm of a complex number.","arguments":[{"name":"inumber","description":"The complex number for which you want to know the base 10 logarithm."}],"variadic":0,"category":"engineering","example":[{"formula":"IMLOG10(\\"0.3+2i\\")","description":"Calculates the base 10 logarithm of 0.3+2i."}]},"IMLOG2":{"description":"Calculates the base 2 logarithm of a complex number.","arguments":[{"name":"inumber","description":"The complex number for which you want to know the base 2 logarithm."}],"variadic":0,"category":"engineering","example":[{"formula":"IMLOG2(\\"0.3+2i\\")","description":"Calculates the base 2 logarithm of 0.3+2i."}]},"IMPOWER":{"description":"Calculates a complex number raised to a power.","arguments":[{"name":"inumber","description":"The complex number that you want to raise to a given power."},{"name":"number","description":"The power to which the complex number is to be raised."}],"variadic":0,"category":"engineering","example":[{"formula":"IMPOWER(\\"0.3+2i\\", 2)","description":"Calculates 0.3+2i raised to the power of 2."}]},"IMPRODUCT":{"description":"Multiplies all given complex numbers and returns the product.","arguments":[{"name":"inumber1","description":"The first complex number to be multiplied. The complex number must be in the x+yi or x+yj text format."},{"name":"inumber2","description":"Additional complex numbers be multiplied. The complex number must be in the x+yi or x+yj text format.","required":false}],"variadic":1,"category":"engineering","example":[{"formula":"IMPRODUCT(\\"2+3i\\", \\"-4+5i\\")","description":"Returns the product of the two complex numbers."},{"formula":"IMPRODUCT(COMPLEX(2, 3), COMPLEX(-4, 5))","description":"Returns the product of the two complex numbers using the COMPLEX function."}]},"IMREAL":{"description":"Returns the real coefficient of a complex number.","arguments":[{"name":"inumber","description":"The complex number that you want the real coefficient for. The complex number must be in the x+yi or x+yj text format."}],"variadic":0,"category":"engineering","example":[{"formula":"IMREAL(\\"2+3i\\")","description":"Returns the real coefficient of the complex number 2+3i."},{"formula":"IMREAL(COMPLEX(2, 3))","description":"Returns the real coefficient of the complex number 2+3i using the COMPLEX function."},{"formula":"IMREAL(\\"3i\\")","description":"Returns the real coefficient of the complex number 3i. Since 3i is an imaginary number, the real coefficient is 0."}]},"IMSEC":{"description":"Calculates the secant of a complex number.","arguments":[{"name":"inumber","description":"The complex number for which you want to know the secant."}],"variadic":0,"category":"engineering","example":[{"formula":"IMSEC(\\"0.3+2i\\")","description":"Calculates the secant of 0.3+2i."}]},"IMSECH":{"description":"Calculates the hyperbolic secant of a complex number.","arguments":[{"name":"inumber","description":"The complex number for which you want to know the hyperbolic secant."}],"variadic":0,"category":"engineering","example":[{"formula":"IMSECH(\\"0.3+2i\\")","description":"Calculates the hyperbolic secant of 0.3+2i."}]},"IMSIN":{"description":"Calculates the sine of a complex number.","arguments":[{"name":"inumber","description":"The complex number for which you want to know the sine."}],"variadic":0,"category":"engineering","example":[{"formula":"IMSIN(\\"0.3+2i\\")","description":"Calculates the sine of 0.3+2i."}]},"IMSINH":{"description":"Calculates the hyperbolic sine of a complex number.","arguments":[{"name":"inumber","description":"The complex number for which you want to know the hyperbolic sine."}],"variadic":0,"category":"engineering","example":[{"formula":"IMSINH(\\"0.3+2i\\")","description":"Calculates the hyperbolic sine of 0.3+2i."}]},"IMSQRT":{"description":"Calculates the square root of a complex number.","arguments":[{"name":"inumber","description":"The complex number that you want to know the square root."}],"variadic":0,"category":"engineering","example":[{"formula":"IMSQRT(\\"2+5i\\")","description":"Calculates the square root of 2+5i."}]},"IMSUB":{"description":"Calculates the difference between two complex numbers.","arguments":[{"name":"inumber1","description":"The first complex number."},{"name":"inumber2","description":"The second complex number."}],"variadic":0,"category":"engineering","example":[{"formula":"IMSUB(\\"1+i\\",\\" 2+2i\\")","description":"Calculates the difference between 1+i and 2+2i."}]},"IMSUM":{"description":"Calculates the sum of supplied complex numbers.","arguments":[{"name":"inumber1","description":"The first complex number."},{"name":"inumber2","description":"Subsequent complex numbers.","required":false}],"variadic":1,"category":"engineering","example":[{"formula":"IMSUM(\\"1+i\\",\\" 2+2i\\")","description":"Calculates the sum of 1+i and 2+2i."}]},"IMTAN":{"description":"Calculates the tangent of a complex number.","arguments":[{"name":"inumber","description":"The complex number for which you want to know the tangent."}],"variadic":0,"category":"engineering","example":[{"formula":"IMTAN(\\"3+3i\\")","description":"Calculates the tangent of 3+3i."}]},"OCT2BIN":{"description":"Converts a base 8 number into a base 2 number.","arguments":[{"name":"number","description":"The base 8 number that you want to convert. The number must be no more than 10 characters."},{"name":"places","description":"The number of characters.","required":false}],"variadic":0,"category":"engineering","example":[{"formula":"OCT2BIN(117, 12)","description":"Converts 117 into a base 2 number with 12 characters."}]},"OCT2DEC":{"description":"Converts a base 8 number into a base 10 number.","arguments":[{"name":"number","description":"The base 8 number that you want to convert."}],"variadic":0,"category":"engineering","example":[{"formula":"OCT2DEC(415)","description":"Converts 415 into a base 10 number."}]},"OCT2HEX":{"description":"Converts a base 8 number into a base 16 number.","arguments":[{"name":"number","description":"The base 8 number that you want to convert."},{"name":"places","description":"The number of characters.","required":false}],"variadic":0,"category":"engineering","example":[{"formula":"OCT2HEX(2354, 5)","description":"Converts 2354 into a base 16 number with 5 characters."}]},"ACCRINT":{"description":"Calculates the accrued interest for a security which distributes periodic interest payments.","arguments":[{"name":"issue","description":"Date the security was issued."},{"name":"first","description":"Date of first interest paid."},{"name":"settlement","description":"Date of settlement."},{"name":"rate","description":"Interest rate of security."},{"name":"par","description":"Base value of security."},{"name":"frequency","description":"Frequency the interest payment is distributed."},{"name":"basis","description":"Day count basis.","required":false}],"variadic":0,"category":"financial","example":[{"formula":"ACCRINT(B2, B3, B4, B5, B6, B7, B8)","description":"Calculates the accrued interest."}]},"CUMIPMT":{"description":"Calculates the cumulative interest paid between the start period and end period.","arguments":[{"name":"rate","description":"The interest rate."},{"name":"nper","description":"The number of periods of the loan."},{"name":"pv","description":"The present value of the loan."},{"name":"start_period","description":"The first period."},{"name":"end_period","description":"The last period."},{"name":"type","description":"When the payment will be made.\\n0: Pay at the end of each period.\\n1: Pay at the beginning of each period.\\n"}],"variadic":0,"category":"financial","example":[{"formula":"CUMIPMT(A2/12, A3*12, A4, 2, 15, 1)","description":"Calculates the cumulative interest paid between the start period (the second period) and the end period (the 15th period). The present value is 23,000,000."}]},"CUMPRINC":{"description":"Calculates the cumulative payment between the start period and end period.","arguments":[{"name":"rate","description":"The interest rate."},{"name":"nper","description":"The number of periods of the loan."},{"name":"pv","description":"The present value of the loan."},{"name":"start_period","description":"The first period."},{"name":"end_period","description":"The last period."},{"name":"type","description":"When the payment will be made.\\n0: Pay at the end of each period.\\n1: Pay at the beginning of each period.\\n"}],"variadic":0,"category":"financial","example":[{"formula":"CUMPRINC(A2/12, A3*12, A4, 2, 15, 1)","description":"Calculates the cumulative payment between the start period (the second period) and the end period (the 15th period). The present value is 23,000,000."}]},"DB":{"description":"Calculates the depreciation amount of an asset using the fixed declining balance method for a specified period.","arguments":[{"name":"cost","description":"The original cost of the asset."},{"name":"salvage","description":"The residual value of the asset."},{"name":"life","description":"The useful life of the asset."},{"name":"period","description":"The depreciation period."},{"name":"month","description":"The number of months in the first year. Default value is 12 months.","required":false}],"variadic":0,"category":"financial","example":[{"formula":"DB(A2, A3, A4, 3)","description":"Calculates the depreciation amount of an asset in the third year."}]},"DDB":{"description":"Calculates the depreciation amount of an asset using the double-declining balance method or another method for a specified period.","arguments":[{"name":"cost","description":"The original cost of the asset."},{"name":"salvage","description":"The residual value of the asset."},{"name":"life","description":"The useful life of the asset."},{"name":"period","description":"The depreciation period."},{"name":"factor","description":"The declining rate. Defaults to 2.","required":false}],"variadic":0,"category":"financial","example":[{"formula":"DDB(A2, A3, A4, 3, 1.78)","description":"Calculates the depreciation amount of an asset in the third year. The declining rate is 1.78."}]},"DOLLARDE":{"description":"Converts a dollar value expressed as a fraction into a dollar value expressed as a decimal number.","arguments":[{"name":"dollar","description":"The dollar value you want to convert, expressed as a fraction."},{"name":"fraction","description":"The denominator in integer form."}],"variadic":0,"category":"financial","example":[{"formula":"DOLLARDE(2.07, 24)","description":"Converts the dollar value into 2 and 7/24 (the denominator used is 24) into a decimal number 2.291667."}]},"DOLLARFR":{"description":"Converts a dollar value expressed as a decimal number into a dollar value expressed as a fraction.","arguments":[{"name":"dollar","description":"The dollar value you want to convert, expressed as a decimal number."},{"name":"fraction","description":"The denominator in integer form."}],"variadic":0,"category":"financial","example":[{"formula":"DOLLARFR(1.78, 5)","description":"Converts the decimal number 1.78 into a fraction. The denominator used is 5."}]},"EFFECT":{"description":"Calculates the effective annual rate based on the given nominal annual rate and the number of compounding periods per year.","arguments":[{"name":"nominal_rate","description":"The nominal annual rate."},{"name":"npery","description":"The number of compounding periods."}],"variadic":0,"category":"financial","example":[{"formula":"EFFECT(0.787788, 2)","description":"Calculates the effective annual rate based on the given nominal annual rate (0.787788) and the number of compounding periods per year (2)."}]},"FV":{"description":"Calculates the future value of an investment.","arguments":[{"name":"rate","description":"The interest rate of each period."},{"name":"periods","description":"The total number of payment periods."},{"name":"payment","description":"The payment amount for each period."},{"name":"value","description":"The present value of the investment. The default value is 0.","required":false},{"name":"type","description":"When the payment will be made.\\n0: The default value. Pay at the end of each period.\\n1: Pay at the beginning of each period.\\n","required":false}],"variadic":0,"category":"financial","example":[{"formula":"FV(A2/12, A3, A4, A5)","description":"Calculates the future value of an investment. The annual interest rate is 0.03, the total number of payment periods is 10, the amount of payment of each period is 50,000, the present value is 1,000,000."}]},"FVSCHEDULE":{"description":"Calculates the future value of a principal based on a variable compound interest rate.","arguments":[{"name":"principal","description":"The present value."},{"name":"schedule","description":"A set of variable compound interest rates."}],"variadic":0,"category":"financial","example":[{"formula":"FVSCHEDULE(100, {0.01, 0.02, 0.03})","description":"Calculates the future value of a principal 100 based on a series of compound interest rate 0.01, 0.02, 0.03."}]},"IPMT":{"description":"Calculates the amount of interest payment on a loan during a specific period, based on a constant interest rate.","arguments":[{"name":"rate","description":"The interest rate of each period."},{"name":"period","description":"The period that you want to calculate the amount of interest."},{"name":"periods","description":"The total number of payment periods."},{"name":"present","description":"The present value of the loan."},{"name":"future","description":"The future value after the final payment.","required":false},{"name":"type","description":"When the payment will be made. \\n0: Pay at the end of each period.\\n1: Pay at the beginning of each period.\\n","required":false}],"variadic":0,"category":"financial","example":[{"formula":"IPMT(A2/12, A3, A4*12, A5)","description":"Calculates the amount of interest for the second period. The annual interest rate is 0.03. The total number of payment period is 10. The present value is 1,000,000."}]},"IRR":{"description":"Calculates the internal rate of return with an initial investment amount and other values in regular time intervals, such as monthly or annually. The returned value is the interest rate received for an investment and income amounts at regular time intervals.","arguments":[{"name":"values","description":"The array of cells must include both positive and negative values. Enter the payment and income values in the correct chronological order as the formula uses the order to determine the order of cash flows."},{"name":"guess","description":"An estimate of the IRR.","required":false}],"variadic":0,"category":"financial","example":[{"formula":"IRR(A2:A7)","description":"Calculates the internal rate of return after five years."}]},"ISPMT":{"description":"Calculates the amount of interest payment with even principal payment during a specific period.","arguments":[{"name":"rate","description":"The interest rate of each period."},{"name":"period","description":"The period that you want to calculate the amount of interest."},{"name":"periods","description":"The total number of payment periods."},{"name":"value","description":"The present value of the investment."}],"variadic":0,"category":"financial","example":[{"formula":"ISPMT(A2/12, A3, A4, A5)","description":"Calculates the amount of interest for the second period. The annual interest rate is 0.03. The total number of payment period is 10. The present value is 1,000,000."}]},"MIRR":{"description":"Calculates the modified internal rate of return with the cost of investment amount and the interest of an investment converted from cash.","arguments":[{"name":"values","description":"The array of cells must include both positive and negative values. Enter the payment and income values in the correct chronological order as the formula uses the order to determine the order of cash flows."},{"name":"finance_rate","description":"The finance rate."},{"name":"reinvest_rate","description":"The reinvestment rate."}],"variadic":0,"category":"financial","example":[{"formula":"MIRR(A2:A5, A6, A7)","description":"Calculates the modified internal rate of return after three years."}]},"NOMINAL":{"description":"Calculates nominal interest rate with an effective interest rate and the number of compounding periods per year.","arguments":[{"name":"effect_rate","description":"The effective interest rate."},{"name":"periods","description":"The number of compounding periods per year."}],"variadic":0,"category":"financial","example":[{"formula":"NOMINAL(0.7, 2)","description":"Calculates nominal interest rate when the effective interest rate is 0.7 and the number of compounding periods per year is 2."}]},"NPER":{"description":"Calculates the number of payment periods for a loan or investment, given the fixed interest rate, fixed charge, and the periodic payment amount.","arguments":[{"name":"rate","description":"The interest rate of each period."},{"name":"payment","description":"The amount of payment of each period."},{"name":"present","description":"The present value of the loan or investment."},{"name":"future","description":"The future value or cash balance of the loan or investment after the last payment.","required":false},{"name":"type","description":"When the payment will be made.\\n0: Pay at the end of each period.\\n1: Pay at the beginning of each period.\\n","required":false}],"variadic":0,"category":"financial","example":[{"formula":"NPER(A2/12, A3, A4, A5, 1)","description":"Calculates the number of payment periods with the above conditions. The payment is made at the beginning of each period."}]},"NPV":{"description":"Calculates the net present value of an investment with future expenses and income and discount rate.","arguments":[{"name":"rate","description":"The discount rate."},{"name":"value1","description":"The original cost of the investment."},{"name":"value2","description":"The return of the first year. Enter value1 and value2 in the correct chronological order as the formula uses the order to determine the order of cash flows.","required":false}],"variadic":1,"category":"financial","example":[{"formula":"NPV(A2, A3, A4, A5, A6)","description":"Calculates the net present value of an investment with the above conditions."}]},"PDURATION":{"description":"Calculates the number of periods which are required to reach a specified value.","arguments":[{"name":"rate","description":"The interest rate of each period."},{"name":"present","description":"The present value of the investment."},{"name":"future","description":"The future value of the investment."}],"variadic":0,"category":"financial","example":[{"formula":"PDURATION(A2, A3, A4)","description":"Calculates the number of periods with the above conditions."}]},"PMT":{"description":"Calculates the monthly payment of a loan.","arguments":[{"name":"rate","description":"The interest rate of the loan."},{"name":"periods","description":"The total number of payment periods."},{"name":"present","description":"The present value of the loan."},{"name":"future","description":"The future value or cash balance of the loan after the last payment. Default means 0 (zero).","required":false},{"name":"type","description":"When the payment will be made. \\n0: Pay at the end of each period.\\n1: Pay at the beginning of each period.\\n","required":false}],"variadic":0,"category":"financial","example":[{"formula":"PMT(A2/12, A3, A4)","description":"Calculates the monthly payment of a loan. The monthly interest rate is 0.3/12. The total number of monthly payments is 24. The present value of the loan is 1,000,000."}]},"PPMT":{"description":"Calculates the amount of payment on a principal during a specific period, based on a constant interest rate.","arguments":[{"name":"rate","description":"The interest rate per period."},{"name":"periods","description":"The specified period. Must be between 1 and nperiods."},{"name":"nperiods","description":"The total number of payment periods."},{"name":"future","description":"The future value or cash balance of the investment after the last payment. Default means 0 (zero).","required":false},{"name":"type","description":"When the payment will be made. \\n0: Pay at the end of each period.\\n1: Pay at the beginning of each period\\n","required":false}],"variadic":0,"category":"financial","example":[{"formula":"PPMT(A2/12, 1, A3*12, A4)","description":"Calculates the amount of payment on a principal during a specific period. The monthly interest rate is 0.2/12. The total number of monthly payments is 5*12. The present value of the loan is 100,000."}]},"PV":{"description":"Calculates the present value of a loan or investment based on a fixed interest rate.","arguments":[{"name":"rate","description":"The interest rate of each period."},{"name":"periods","description":"The total number of payment periods."},{"name":"payment","description":"The amount of payment for each period."},{"name":"future","description":"The future value or cash balance of the investment after the last payment. Default means 0 (zero).","required":false},{"name":"type","description":"When the payment will be made. \\n0: Pay at the end of each period.\\n1: Pay at the beginning of each period.\\n","required":false}],"variadic":0,"category":"financial","example":[{"formula":"PV(A2/12, A3*12, A4, 1)","description":"Calculates the present value of an investment. The amount of monthly payments is 20,000. The monthly interest rate is 0.3/12. The total number of monthly payment periods is 3*12."}]},"RATE":{"description":"Calculates the interest rate per period of an annuity.","arguments":[{"name":"periods","description":"The total number of payment periods."},{"name":"payment","description":"The amount of payment per period."},{"name":"present","description":"The present value of the loan, or the total of all payments."},{"name":"future","description":"The future value or cash balance of the investment after the last payment. Default means 0 (zero).","required":false},{"name":"type","description":"When the payment will be made.\\n0: Pay at the end of each period.\\n1: Pay at the beginning of each period.\\n","required":false},{"name":"guess","description":"An estimate for the interest rate.","required":false}],"variadic":0,"category":"financial","example":[{"formula":"RATE(A2*12, A3, A4)","description":"Calculates the interest rate per month."}]},"RRI":{"description":"Returns the interest rate equivalent to the growth of an investment.","arguments":[{"name":"periods","description":"The number of investment periods."},{"name":"present","description":"The present value of the investment."},{"name":"future","description":"The future value of the investment."}],"variadic":0,"category":"financial","example":[{"formula":"RRI(75, 200, 2000)","description":"Returns the interest rate equivalent to the growth of an investment."}]},"SLN":{"description":"Calculates the depreciation of an asset for a period based on the straight-line depreciation method.","arguments":[{"name":"cost","description":"The initial cost of the asset."},{"name":"salvage","description":"The value of the asset at the end of the depreciation."},{"name":"life","description":"The useful life of the asset."}],"variadic":0,"category":"financial","example":[{"formula":"SLN(10000, 20, 6)","description":"Calculates the depreciation amount an asset for a period based on the straight-line depreciation method. The initial cost of the asset is 10,000. The value of the asset at the end of the depreciation is 20. The useful life of the asset is 6."}]},"SYD":{"description":"Calculates the depreciation of an asset within a specified period, based on the sum of the years\' digits.","arguments":[{"name":"cost","description":"The initial cost of the asset."},{"name":"salvage","description":"The residual value of the asset."},{"name":"life","description":"The useful life of the asset."},{"name":"per","description":"The period. The unit of the period must be the same as the unit of life."}],"variadic":0,"category":"financial","example":[{"formula":"SYD(A2, A3, A4, 6)","description":"Calculates the depreciation of an asset of the sixth year. The initial cost is 580,000. The residual value is 2,000."}]},"TBILLEQ":{"description":"Calculates bond equivalent yield of a treasury bill.","arguments":[{"name":"settlement","description":"The settlement date of the treasury bill."},{"name":"maturity","description":"The maturity date of the treasury bill."},{"name":"discount","description":"The discount rate of the treasury bill."}],"variadic":0,"category":"financial","example":[{"formula":"TBILLEQ(A2, A3, A4)","description":"Calculates bond equivalent yield of a treasury bill."}]},"TBILLPRICE":{"description":"Calculates the price of a treasury bill per US$100 face value.","arguments":[{"name":"settlement","description":"The settlement date of the treasury bill."},{"name":"maturity","description":"The maturity date of the treasury bill."},{"name":"discount","description":"The discount rate of the treasury bill."}],"variadic":0,"category":"financial","example":[{"formula":"TBILLPRICE(A2, A3, A4)","description":"Calculates the price of a treasury bill per US$100 face value."}]},"TBILLYIELD":{"description":"Calculates the yield of a treasury bill.","arguments":[{"name":"settlement","description":"The settlement date of the treasury bill."},{"name":"maturity","description":"The maturity date of the treasury bill."},{"name":"pr","description":"The price of a treasury bill per US$100 face value."}],"variadic":0,"category":"financial","example":[{"formula":"TBILLYIELD(A2, A3, A4)","description":"Calculates the yield of a treasury bill."}]},"XIRR":{"description":"Calculates the internal rate of return for a series of cash flows that occur on irregular dates.","arguments":[{"name":"values","description":"A series of cash flows that have corresponding payment dates. The array of cells must include both positive and negative values. The first payment is optional. If the first value is a payment, it must be a negative value."},{"name":"dates","description":"A series of payment dates that correspond to the cash flows."},{"name":"guess","description":"An estimate of the XIRR.","required":false}],"variadic":0,"category":"financial","example":[{"formula":"XIRR(A2:A4, C2:C4, 0.1)","description":"Calculates the internal rate of return."}]},"XNPV":{"description":"Calculates the net present value for a series of cash flows that occur on irregular dates.","arguments":[{"name":"rate","description":"The discount rate."},{"name":"values","description":"A series of cash flows that have corresponding payment dates. The array of cells must include both positive and negative values. The first payment is optional. If the first value is a payment, it must be a negative value."},{"name":"dates","description":"A series of payment dates that correspond to the cash flows."}],"variadic":0,"category":"financial","example":[{"formula":"XNPV(0.2, A2:A4, B2:B4)","description":"Calculates the net present value for a series of cash flows."}]},"ERROR.TYPE":{"description":"Receives an error value and returns a corresponding number to this error value.","arguments":[{"name":"error_val","description":"An error value. It can be an actual error value, or a reference to a cell that contains a formula."}],"variadic":0,"category":"information","example":[{"formula":"ERROR.TYPE(A2)","description":"Returns the corresponding number to the #NULL! error value in cell A2."},{"formula":"ERROR.TYPE(A3)","description":"Returns the corresponding number to the #DIV/0! error value in cell A3."},{"formula":"ERROR.TYPE(39)","description":"39 is not an error value."}]},"ISBLANK":{"description":"Returns TRUE if the value is blank. Returns FALSE if the value is not blank.","arguments":[{"name":"value","description":"The cell which you want to know if it is blank."}],"variadic":0,"category":"information","example":[{"formula":"ISBLANK(C2)","description":"Returns \\"TRUE\\" if cell C2 is blank."},{"formula":"IF(ISBLANK(B2),\\"BLANK\\",\\"NOT BLANK\\")","description":"Returns \\"BLANK\\" if cell B2 is blank. Returns \\"NOT BLANK\\" if cell B2 is not blank."}]},"ISDATE":{"description":"Returns TRUE if the value is a valid expression of a date. Returns FALSE if the value is not a valid expression of a date.","arguments":[{"name":"value","description":"The value which you want to know if it is a valid expression of a date. The valid expression of the date depends on your locale settings."}],"variadic":0,"category":"information","example":[{"formula":"ISDATE(A2)","description":"Returns TRUE if the value in cell A2 is a valid expression of a date."},{"formula":"ISDATE(A3)","description":"Returns TRUE if the value in cell A3 is a valid expression of a date."}]},"ISERR":{"description":"Returns TRUE if the value is an error value, except the #N/A error.","arguments":[{"name":"value","description":"The value which you want to know if it is an error value, except the #N/A error."}],"variadic":0,"category":"information","example":[{"formula":"ISERR(A2)","description":"Returns TRUE if the value is an error value, except the #N/A error."},{"formula":"ISERR(A3)","description":"Returns TRUE if the value is an error value, except the #N/A error."}]},"ISERROR":{"description":"Returns TRUE if the value is an error value. Returns FALSE if otherwise.","arguments":[{"name":"value","description":"The value which you want to know if it is an error value."}],"variadic":0,"category":"information","example":[{"formula":"ISERROR(A2)","description":"Returns TRUE if the value in cell A2 is an error value."},{"formula":"ISERROR(A3)","description":"Returns TRUE if the value cell A3 is an error value."},{"formula":"ISERROR(A4)","description":"Returns TRUE if the value cell A4 is an error value."}]},"ISEVEN":{"description":"Returns TRUE if the value is an even number. Returns FALSE if the value is an odd number.","arguments":[{"name":"number","description":"The value which you want to know if it is an even number."}],"variadic":0,"category":"information","example":[{"formula":"ISEVEN(A2)","description":"Returns TRUE if the value in cell A2 is an even number."},{"formula":"ISEVEN(A3)","description":"Returns TRUE if the value in cell A3 is an even number."}]},"ISLOGICAL":{"description":"Returns TRUE if the cell contains the logical values. Returns FALSE if the cell does not contain the logical values.","arguments":[{"name":"value","description":"The value which you want to know if it is a logical value."}],"variadic":0,"category":"information","example":[{"formula":"ISLOGICAL(A2)","description":"Returns TRUE if the value in cell A2 is a logical value."},{"formula":"ISLOGICAL(A3)","description":"Returns TRUE if the value in cell A3 is a logical value."},{"formula":"ISLOGICAL(A4)","description":"Returns TRUE if the value in cell A4 is a logical value."}]},"ISNA":{"description":"Returns TRUE if the value is #N/A.","arguments":[{"name":"value","description":"The value which you want to know if it is #N/A."}],"variadic":0,"category":"information","example":[{"formula":"ISNA(A2)","description":"Returns TRUE if the value in cell A2 is #N/A."},{"formula":"ISNA(A3)","description":"Returns TRUE if the value in cell A3 is #N/A."},{"formula":"ISNA(A4)","description":"Returns TRUE if the value in cell A4 is #N/A."}]},"ISNONTEXT":{"description":"Returns TRUE if the value is a non-text value. Returns FALSE if the value is a text value.","arguments":[{"name":"value","description":"The value which you want to know if it is a non-text value."}],"variadic":0,"category":"information","example":[{"formula":"ISNONTEXT(A2)","description":"Returns TRUE if the value in cell A2 is a non-text value."},{"formula":"ISNONTEXT(A3)","description":"Returns TRUE if the value in cell A3 is a non-text value."},{"formula":"ISNONTEXT(A4)","description":"Returns TRUE if the value in cell A4 is a non-text value."}]},"ISNUMBER":{"description":"Returns TRUE if the value is a number.","arguments":[{"name":"value","description":"The value which you want to know if it is a number."}],"variadic":0,"category":"information","example":[{"formula":"ISNUMBER(A2)","description":"Returns TRUE if the value in cell A2 is a number."},{"formula":"ISNUMBER(A3)","description":"Returns TRUE if the value in cell A3 is a number."},{"formula":"ISNUMBER(A4)","description":"Returns TRUE if the value in cell A4 is a number."},{"formula":"ISNUMBER(A5)","description":"Returns TRUE if the value in cell A5 is a number."}]},"ISODD":{"description":"Returns TRUE if the value is an odd number. Returns FALSE if the value is an even number.","arguments":[{"name":"number","description":"The value which you want to know if it is an odd number."}],"variadic":0,"category":"information","example":[{"formula":"ISODD(A2)","description":"Returns TRUE if the value in cell A2 is an odd number."},{"formula":"ISODD(A3)","description":"Returns TRUE if the value in cell A3 is an odd number."}]},"ISTEXT":{"description":"Returns TRUE if the value is a text value. Returns FALSE if the value is a non-text value.","arguments":[{"name":"value","description":"The value which you want to know if it is a text value."}],"variadic":0,"category":"information","example":[{"formula":"ISTEXT(A2)","description":"Returns TRUE if the value in cell A2 is a text value."},{"formula":"ISTEXT(A3)","description":"Returns TRUE if the value in cell A3 is a text value."}]},"N":{"description":"Converts a value into a number.","arguments":[{"name":"value","description":"The value you want to convert into a number."}],"variadic":0,"category":"information","example":[{"formula":"N(A2)","description":"Converts the date (2019/12/5) into a number, which represents the number of days since January 1, 1900."},{"formula":"N(A3)","description":"Converts the logical value \\"TRUE\\" into a number."},{"formula":"N(A4)","description":"Converts the text \\"5648\\" into a number."},{"formula":"N(A5)","description":"Converts the number 5648 into a number."}]},"NA":{"description":"Returns the #N/A error.","arguments":[],"variadic":0,"category":"information","example":[{"formula":"NA()","description":"Returns #N/A."}]},"TYPE":{"description":"Converts a value into a code.","arguments":[{"name":"value","description":"The value you want to convert into a code."}],"variadic":0,"notes":["The table below lists the returned result for different types of input value.",[["If the value is","TYPE returns"],["Number",1],["Text",2],["Logical value",4],["Error value",16],["Array",64]]],"category":"information","example":[{"formula":"TYPE(A2)","description":"Converts the text in cell A2 into a code."},{"formula":"TYPE(A3)","description":"Converts the logical value in cell A3 into a code."}]},"AND":{"description":"Evaluates if all the conditions in the arguments are met.","arguments":[{"name":"logical1","description":"The first condition or value to evaluate in the argument."},{"name":"logical2","description":"The second condition or value to evaluate in the argument.","required":false}],"variadic":1,"category":"logical","example":[{"formula":"AND(A2<A3, A3=6)","description":"Returns TRUE if all the conditions in the argument are met."},{"formula":"AND(A2<A3, A3=6, A4=A2+A3)","description":"Returns TRUE if all the conditions in the argument are met."},{"formula":"AND(A2>A3, A3=A4, A4=0)","description":"Returns FALSE if any of the conditions in the argument are not met."}]},"FALSE":{"description":"Returns a value of FALSE in the cell.","arguments":[],"variadic":0,"category":"logical","example":[{"formula":"FALSE()","description":"Use this function to return a value of FALSE in the cell."}]},"IF":{"description":"Returns one value if a condition is true and another if it is false.","arguments":[{"name":"logical_test","description":"A condition that is either true or false."},{"name":"value_if_true","description":"The value that the IF function returns when the result of logical_test is true."},{"name":"value_if_false","description":"The value that the IF function returns when the result of logical_test is false. If no value_if_false is provided, the IF function returns FALSE when the result of logical_test is false.","required":false}],"variadic":0,"category":"logical","example":[{"formula":"IF(B2>A2, B2-A2, \\"NA\\")","description":"Returns the difference between the actual growth and the expected growth if the actual growth is greater than the expected growth. Otherwise, the function returns text \\"NA\\". Because the actual growth of 4.1 (B2) is greater than the expected growth of 3.5 (A2), the function calculates the difference between the two values."},{"formula":"IF(B3>A3, B3-A3, \\"NA\\")","description":"Because the actual growth of 3.7 (B3) is less than the expected growth of 4.2 (A3), the function returns text \\"NA\\"."},{"formula":"IF(B4>A4, B4-A4, \\"NA\\")","description":"Because the actual growth of 3.2 (B4) equals to the expected growth of 3.2 (A4), the function returns text \\"NA\\"."},{"formula":"IF(B2>=A2, IF(B2>A2, \\"better than expected\\", \\"same as expected\\"), \\"worse than expected\\")","description":"Because the actual growth of 4.1 (B2) is greater than the expected growth of 3.5 (A2), the second IF statement is calculated and because it is also true, the function returns \\"better than expected\\"."},{"formula":"IF(B3>=A3, IF(B3>A3, \\"better than expected\\", \\"same as expected\\"), \\"worse than expected\\")","description":"Because the actual growth of 3.7 (B3) is less than the expected growth of 4.2 (A3), the function returns \\"worse than expected\\"."},{"formula":"IF(B4>=A4, IF(B4>A4, \\"better than expected\\", \\"same as expected\\"), \\"worse than expected\\")","description":"Because the actual growth of 3.2 (A4) is the same as the expected growth of 3.2 (B4), the the second IF statement is calculated and because it is false, the function returns \\"same as expected\\"."},{"formula":"IF(1=2, 1)","description":"The result of logical_test is FALSE. Because value_if_false is not provided, the function returns FALSE."},{"formula":"IF(1=2, 1,)","description":"The result of logical_test is FALSE. Because value_if_false is entered as a blank value, the function returns the third argument, which is a blank."}]},"IFERROR":{"description":"Returns the first value if there is no error in the formula or the second value if there is any error in the formula.","arguments":[{"name":"value","description":"An array of cells must be included to be checked."},{"name":"value_if_error","description":"The value that will be returned if there is an error in the result. The coming error types are evaluated as: #N/A, #VALUE!, #REF!, #DIV/0!, #NUM!, #NAME?, or #NULL!."}],"variadic":0,"category":"logical","example":[{"formula":"IFERROR(A2/B2, 0)","description":"Check the first argument (divide 50 by 5) and finds no errors. Returns the result of the first argument."},{"formula":"IFERROR(A3/B3, 90)","description":"Check the first argument (divide 25 by 0) and finds an error in a formula of division by 0. Returns the second value."},{"formula":"IFERROR(A4/B4, 0)","description":"Check the first argument (divide 0 by 18) and finds no errors. Returns the result of the first argument."}]},"IFNA":{"description":"Evaluates a value and returns the value if no #N/A error found or returns another specified value if the reference value is an #N/A error.","arguments":[{"name":"value","description":"The value or the reference to evaluate."},{"name":"value_if_na","description":"The value to return when #N/A is found. Could be described as a different description."}],"variadic":0,"category":"logical","example":[{"formula":"IFNA(A2,\\"NA Error\\")","description":"Returns the value of the first argument."},{"formula":"IFNA(A3,\\"NA Error\\")","description":"Finds the #N/A error and returns the value of the second argument."}]},"IFS":{"description":"Returns the first value that correspond to the condition in logical_test.","arguments":[{"name":"logical_test1","description":"First logical test."},{"name":"value_if_true1","description":"Returns as the result when the first logical test is true."},{"name":"logical_test2","description":"Second logical test.","required":false},{"name":"value_if_true2","description":"Returns as the result when the second logical test is true.","required":false}],"variadic":2,"category":"logical","example":[{"formula":"IFS(B2=90,\\"A\\",B2>=80,\\"B\\",B2>=70,\\"C\\",B2>=60,\\"D\\")","description":"Evaluates each condition in order and returns the value for the first condition that is true."},{"formula":"IFS(B5=90,\\"A\\",B5>=80,\\"B\\",B5>=70,\\"C\\",B5>=60,\\"D\\")","description":"Evaluates each condition in order and returns the value for the first condition that is true."}]},"NOT":{"description":"Returns the reverse value of the argument as either TRUE or FALSE.","arguments":[{"name":"logical","description":"Values to evaluate."}],"variadic":0,"category":"logical","example":[{"formula":"NOT(TRUE)","description":"Returns the reverse value of the argument."},{"formula":"NOT(A2>100)","description":"Returns FALSE since condition \\"A2>100\\" is true."},{"formula":"NOT(A4=350)","description":"Returns TRUE since the condition \\"A4=350\\" is not true."}]},"OR":{"description":"Examines multiple conditions and returns TRUE if any of the conditions is true, or FALSE if none of the conditions is true.","arguments":[{"name":"logical1","description":"The first condition or value to evaluate."},{"name":"logical2","description":"The second condition or value to evaluate.","required":false}],"variadic":1,"category":"logical","example":[{"formula":"OR(A2>1, A3<300)","description":"Since the first condition A2>1 is true and the second condition A3<300 is true, the function returns TRUE."},{"formula":"OR(A2<0, A3=200)","description":"Since the first condition A2<0 is false and the second condition A3=200 is true, the function returns TRUE."},{"formula":"OR(A2+A3<100, A4>400)","description":"Since the first condition A2+A3<100 is false and the second condition A4>400 is false, the function returns FALSE."}]},"TRUE":{"description":"Returns a logical value of TRUE as a result.","arguments":[],"variadic":0,"category":"logical","example":[{"formula":"TRUE()","description":"Use TRUE function to return a value of TRUE."}]},"XOR":{"description":"Returns TRUE when the number of valid conditions is odd and returns FALSE when the number of valid conditions is even.","arguments":[{"name":"logical1","description":"The first value or condition to evaluate."},{"name":"logical2","description":"The second value or condition to evaluate.","required":false}],"variadic":1,"category":"logical","example":[{"formula":"XOR(A2<1, A3=100)","description":"Returns TRUE since one of the arguments is true."},{"formula":"XOR(A2>0, A3=100)","description":"Returns FALSE since both arguments are true."},{"formula":"XOR(A2+A3<100, A3<0)","description":"Returns FALSE since neither of the arguments is true."}]},"ADDRESS":{"description":"Returns the address for a cell by the indicated row and column number.","arguments":[{"name":"row_num","description":"The row number to use in the cell address."},{"name":"column_num","description":"The column number to use in the cell address."},{"name":"abs_num","description":"The type of address, which can be either absolute or relative. The default is absolute.\\n1 or left blank: absolute\\n2: absolute row and relative column\\n3: relative row and absolute column\\n4: relative\\n","required":false},{"name":"a1","description":"The style of reference, either A1 or R1C1. If TRUE or left blank, the style used is A1 style; if FALSE, the style used is R1C1.","required":false},{"name":"sheet_text","description":"The worksheet to reference. The default is the current worksheet.","required":false}],"variadic":0,"category":"lookup_and_reference","example":[{"formula":"ADDRESS(1, 1)","description":"The address for column 1 and row 1."},{"formula":"ADDRESS(3, 2, 2)","description":"The address for column 3, row 2, and using absolute row and relative column."}]},"CHOOSE":{"description":"Chooses a value from a list of values according to index.","arguments":[{"name":"index_num","description":"An index number that specifies which value is chosen. This number must not be greater than the number of values."},{"name":"value1","description":"The first value in a list of value."},{"name":"value2","description":"Additional values in the list.","required":false}],"variadic":1,"category":"lookup_and_reference","example":[{"formula":"CHOOSE(2, A2, A3, A4, A5, A6)","description":"Returns the second value from cells A2, A3, A4, A5, and A6."},{"formula":"CHOOSE(3.6, B2, B3, B4, B5, B6)","description":"Since the value in index_num is a fraction (3.6), the CHOOSE function truncates this value to the first lowest integer, which is 3, and then returns the third value from cells B2, B3, B4, B5, and B6."}]},"COLUMN":{"description":"Returns the column number of a cell.","arguments":[{"name":"reference","description":"The cell which you want to find the column number.","required":false}],"variadic":0,"category":"lookup_and_reference","example":[{"formula":"COLUMN(A2)","description":"Returns the column number of cell A2."},{"formula":"COLUMN(D2)","description":"Returns the column number of cell D2."}]},"COLUMNS":{"description":"Counts the number of columns of the selected cells.","arguments":[{"name":"array","description":"A series of cells that you want to find the number of columns."}],"variadic":0,"category":"lookup_and_reference","example":[{"formula":"COLUMNS(A3:D3)","description":"Counts the number of columns from cell A3 to cell D3."},{"formula":"COLUMNS(B1:C3)","description":"Counts the number of columns from cell B1 to cell C3."}]},"FILTER":{"description":"Filters a range of data based on the criteria defined by you.","arguments":[{"name":"array","description":"The array or range to filter."},{"name":"include","description":"An array with the same height or width as the array, along with your desired filtering criteria."},{"name":"if_empty","description":"The value to return if all values in the included array are empty.","required":false}],"variadic":0,"min_version":"3.4","category":"lookup_and_reference","example":[{"formula":"FILTER(A1:C4, A1:A4>1)","description":"Returns rows whose column A values are greater than 1."},{"formula":"FILTER(A1:C4, (A1:A4>1) * (C1:C4=2))","description":"Returns rows whose column A values are greater than 1 and column C values are 2."},{"formula":"FILTER(A1:C4, (B1:B4>1) + (C1:C4=2))","description":"Returns rows whose column B values are greater than 1 or column C values are 2."}]},"FLATTEN":{"description":"Combines all the values from an array or range into a single column.","arguments":[{"name":"range1","description":"The first range or array."},{"name":"range2","description":"Subsequent ranges or arrays.","required":false}],"variadic":1,"min_version":"3.6","category":"lookup_and_reference","example":[{"formula":"FLATTEN(A1:B2)","description":"Combines data into a single column."},{"formula":"FLATTEN(C1:C3,\\"b\\",\\"c\\")","description":"Combines data into a single column."}]},"HLOOKUP":{"description":"Horizontally look up the values in the first row of specific range of cells, and returns the desired value in the desired row.","arguments":[{"name":"lookup_value","description":"The reference value you want to look up."},{"name":"table_array","description":"The range of cells to look up the referenced value and locate the desired value."},{"name":"row_index_num","description":"The row in the range which contains the desired value. The first row of the range of table_array means 1."},{"name":"is_sorted","description":"Indicates if the first row of the range is sorted. If sorted, enter TRUE or leave blank for an exact match. If not sorted, use FALSE for an exact match. If not sorted and the argument is left blank, the returned result will be an approximate match if no exact match is found.","required":false}],"variadic":0,"category":"lookup_and_reference","example":[{"formula":"HLOOKUP(I1,A1:H2,2,FALSE)","description":"Looks for the value of I1 in the designated range and returns the value in the second row of I1."}]},"HYPERLINK":{"description":"Creates a hyperlink.","arguments":[{"name":"link_location","description":"A path you want to link to, such as an URL."},{"name":"friendly_name","description":"A text which represents the link_location.","required":false}],"variadic":0,"category":"lookup_and_reference","example":[{"formula":"HYPERLINK(\\"https://www.synology.com/\\", \\"Synology\\")","description":"Creates a hyperlink named Synology which will link to https://www.synology.com/."}]},"IMPORTRANGE":{"description":"Imports a range of cells from a linked spreadsheet, keeping the data in sync.","arguments":[{"name":"spreadsheet_url","description":"The Synology Spreadsheet from which data will be imported.\\nBelow are examples of spreadsheet_url formats:\\n\\n- Synology Spreadsheet URL: https://example.com/oo/r/abc123abc123\\n\\n- Synology Spreadsheet ID: abc123abc123\\n\\n- URL with private IP: https://10.11.21.131:5001/oo/r/abc123abc123\\n\\n- URL with QuickConnect ID: https://example.quickconnect.to/d/s/abc123abc123/oqbDx28_gs9XuYfyp\\n"},{"name":"range_string","description":"A string in the format \\"[SheetName]![CellRange]\\", e.g., \\"Sheet1!A1:C3\\", which specifies the worksheet and range in the reference spreadsheet to import.\\n\\nPlease note that if the name of the worksheet contains any spaces, the name must be wrapped by single quotation marks in the formula.\\n"}],"variadic":0,"min_version":"3.5","category":"lookup_and_reference","example":[{"formula":"IMPORTRANGE(\\"abc123abc123\\",\\"Sheet1!A1:C3\\")","description":"Import cell range A1:C3 data in worksheet Sheet1 from Synology Spreadsheet whose ID is abc123abc123."},{"formula":"IMPORTRANGE(\\"abc123abc123\\",\\"\'Sheet 1\'!A1:B3\\")","description":"Import cell range A1:B3 data in worksheet Sheet 1 from Synology Spreadsheet whose ID is abc123abc123. The name of the worksheet contains a space and is wrapped by single quotation marks."},{"formula":"IMPORTRANGE(\\"abc123abc123\\",\\"Sheet 1!A1:B3\\")","description":"Import cell range A1:B3 data in worksheet Sheet 1 from Synology Spreadsheet whose ID is abc123abc123. The name of the worksheet contains a space and is not wrapped by single quotation marks."}]},"INDEX":{"description":"Returns the value in the specific cell.","arguments":[{"name":"reference","description":"A reference to one or more cell ranges."},{"name":"row_num","description":"The number of row to return the reference."},{"name":"column_num","description":"The number of column to return the reference.","required":false}],"variadic":0,"category":"lookup_and_reference","example":[{"formula":"INDEX(A1:D2,2,3)","description":"Returns the value in the second row and third column."}]},"INDIRECT":{"description":"Returns the value that is indirectly referenced.","arguments":[{"name":"ref_text","description":"The reference value to look up."},{"name":"a1","description":"The type of reference, in either A1- or R1C1-style. The default is A1-style.","required":false}],"variadic":0,"category":"lookup_and_reference","example":[{"formula":"INDIRECT(A4)","description":"Returns the value in the cell A2."}]},"MATCH":{"description":"Returns the relative position of a specified value in a range of cells.","arguments":[{"name":"lookup_value","description":"The value that you want to search for. It can be a number, text or logical value, or a cell reference to a number, text or logical value."},{"name":"lookup_array","description":"The range of cells within which you search for lookup_value."},{"name":"match_type","description":"How you want the function to match lookup_value with values in lookup_array. The number 1 is the default, which causes the function to return the largest value less than or equal to lookup_value. The number 0 indicates exact match. The number -1 causes the function to return the smallest value greater than or equal to lookup_value.","required":false}],"variadic":0,"category":"lookup_and_reference","example":[{"formula":"MATCH(\\"skirts\\", A2:A5, 0)","description":"Returns the position of the text \\"skirts\\" in the range A2:A5."},{"formula":"MATCH(100, B2:B5, 0)","description":"Returns the position of the exact value 100 in the range B2:B5."},{"formula":"MATCH(60, B2:B5, 0)","description":"Returns the position of the exact value 60 in the range B2:B5."},{"formula":"MATCH(60, B2:B5, 1)","description":"Returns the position of the exact value 60 or the largest value less than 60 in the range B2 B5. The largest value less than 60 in the range B2:B5 is 50."},{"formula":"MATCH(60, B2:B5, -1)","description":"Returns the position of the exact value 60 or the smallest value larger than 60 in the range B2 B5. The smallest value larger than 60 in the range B2:B5 is 100."}]},"OFFSET":{"description":"Returns a cell or range of cells from a referenced starting point.","arguments":[{"name":"reference","description":"The referenced starting point to base the offset."},{"name":"rows","description":"Number of rows from the reference point."},{"name":"cols","description":"Number of columns from the reference point."},{"name":"height","description":"Number of rows you want the returned reference to be.","required":false},{"name":"width","description":"Number of columns you want the returned reference to be.","required":false}],"variadic":0,"category":"lookup_and_reference","example":[{"formula":"OFFSET(A3,3,2,1,1)","description":"Returns the value 3 rows down from and 2 columns to the right of A3."}]},"ROW":{"description":"Returns the row number of a cell.","arguments":[{"name":"reference","description":"The cell that you want to find the row number. If the argument is left blank, the returned result is the row number of the current cell.","required":false}],"variadic":0,"category":"lookup_and_reference","example":[{"formula":"ROW(A2)","description":"Returns the row number of cell A2."},{"formula":"ROW(D4)","description":"Returns the row number of cell D4."}]},"ROWS":{"description":"Counts the number of rows of the selected cells.","arguments":[{"name":"array","description":"A series of cells that you want to find the number of rows of."}],"variadic":0,"category":"lookup_and_reference","example":[{"formula":"ROWS(A3:D3)","description":"Counts the number of rows from cell A3 to cell D3."},{"formula":"ROWS(B1:C3)","description":"Counts the number of rows from cell B1 to cell C3."}]},"SORT":{"description":"Sorts the contents of a range or array.","arguments":[{"name":"array","description":"The range or array to sort."},{"name":"sort_index","description":"A number indicating the row or column to sort by. Default is 1 if left blank.","required":false},{"name":"sort_order","description":"The order to use for sorting, where 1 means ascending and -1 means descending. Default is ascending.","required":false},{"name":"by_col","description":"A logical value indicating the desired sort direction. Use FALSE to sort by row and TRUE to sort by column. Default is by row.","required":false}],"variadic":0,"min_version":"3.4","category":"lookup_and_reference","example":[{"formula":"SORT(A1:C4, 2)","description":"Sorts a range of values by column B."}]},"SORTBY":{"description":"Sorts the contents of a range or array based on the values in a corresponding range or array.","arguments":[{"name":"array","description":"The range or array to sort."},{"name":"by_array1","description":"The first range or array to sort on."},{"name":"sort_order1","description":"The order to use for sorting, where 1 means ascending and -1 means descending. Default is ascending.","required":false},{"name":"by_array2","description":"Subsequent range or array to sort on.","required":false},{"name":"sort_order2","description":"The order to use for sorting, where 1 means ascending and -1 means descending. Default is ascending.","required":false}],"variadic":2,"min_version":"3.4","category":"lookup_and_reference","example":[{"formula":"SORTBY(A1:C4, B1:B4, 1, C1:C4, 1)","description":"Sorts a range of values first by column B and then by column C."}]},"TRANSPOSE":{"description":"Transposes a range.","arguments":[{"name":"array","description":"The range or array to transpose."}],"variadic":0,"min_version":"3.4","category":"lookup_and_reference","example":[{"formula":"TRANSPOSE(A1:C4)","description":"Transposes A1:C4."}]},"UNIQUE":{"description":"Returns a list of values in a range or array that is unique.","arguments":[{"name":"array","description":"The range or array from which to return unique rows or columns."},{"name":"by_col","description":"A logical value that indicates the comparison method, with TRUE being compare columns against each other and return unique columns and FALSE (or blank) being compare rows against each other and return unique rows.","required":false},{"name":"exactly_once","description":"A logical value that returns rows or columns that occur exactly once in the range or array, where TRUE returns all distinct rows or columns that occur exactly once from the range or array and FALSE (or blank) returns all distinct rows or columns from the range or array.","required":false}],"variadic":0,"min_version":"3.4","category":"lookup_and_reference","example":[{"formula":"UNIQUE(A1:D4, TRUE, TRUE)","description":"Returns columns that are not repeated."}]},"VLOOKUP":{"description":"Vertically look up the values in the first column of specific range of cells, and returns the desired value in the desired column.","arguments":[{"name":"lookup_value","description":"The reference value you want to look up."},{"name":"table_array","description":"The range of cells to look up the referenced value and locate the desired value."},{"name":"col_index_num","description":"The column in the range which contains the desired value. The first column of the range of table_array means 1."},{"name":"is_sorted","description":"Indicates if the first column of the range is sorted. If sorted, enter TRUE or leave blank for an exact match. If not sorted, use FALSE for an exact match. If not sorted and the argument is left blank, the returned result will be an approximate match if no exact match is found.","required":false}],"variadic":0,"category":"lookup_and_reference","example":[{"formula":"VLOOKUP(A9,A1:B8,2,FALSE)","description":"Looks for the value of A9 in the designated range and returns the value in the second column of A9."}]},"XLOOKUP":{"description":"Looks up a value in the first specified range vertically (or horizontally), and returns the corresponding data in the second range.","arguments":[{"name":"lookup_value","description":"The key value that you are looking for."},{"name":"lookup_array","description":"The range or array that may contain the key value."},{"name":"return_array","description":"The range or array that may contain the data you are looking for. The returned data records should be in the same order as the keys in lookup_array."},{"name":"if_not_found","description":"The value to return if the key value is not found.","required":false},{"name":"match_mode","description":"Indicates how to match the key value against the values in lookup_array.\\n\\n0 - Exact match. If none is found, return the text specified by [if_not_found] or #N/A. This is the default.\\n1 - Exact match. If none is found, return the next larger item.\\n-1 - Exact match. If none is found, return the next smaller item.\\n2 - A wildcard matching where *, ?, and ~ have special meaning. (See Note)\\n","required":false},{"name":"search_mode","description":"Indicates how to search in lookup_array.\\n\\n1 - Perform a search from the beginning to the end. This is the default.\\n-1 - Perform a search from the end to the beginning.\\n2 - Perform a binary search by assuming lookup_array is sorted in ASCENDING order. If lookup_array is not sorted as expected, the function returns unexpected results.\\n-2 - Perform a binary search by assuming lookup_array is sorted in DESCENDING order. If lookup_array is not sorted as expected, the function returns unexpected results.\\n","required":false}],"variadic":0,"notes":["Special characters in wildcard matching:",["A ? matches any single character.","A * matches any number of characters.","A ~ followed by a ?, *, or ~ makes the following character match its original character."]],"min_version":"3.5","category":"lookup_and_reference","example":[{"formula":"XLOOKUP(\\"Taipei\\",A1:A8,B1:B8,\\"Not found\\")","description":"Looks for \\"Taipei\\" in range A1:A8 and returns the corresponding value in range B1:B8."},{"formula":"XLOOKUP(\\"New York\\",A1:A8,B1:B8,\\"Not found\\")","description":"Looks for \\"New York\\" in range A1:A8 and returns \\"Not found\\" since there is no \\"New York\\" in range A1:A8."},{"formula":"XLOOKUP(\\"Anna\\",C:C,A:B,\\"Not found\\",0,1)","description":"Looks for the FIRST \\"Anna\\" in Column C and returns the corresponding row of Column A and B."},{"formula":"XLOOKUP(\\"Anna\\",C:C,A:B,\\"Not found\\",0,-1)","description":"Looks for the LAST \\"Anna\\" in Column C and returns the corresponding row of Column A and B."},{"formula":"XLOOKUP(25,D1:D8,B1:B8,\\"Not found\\",1,1)","description":"Looks for 25 or the next larger number in range D1:D8. Since there is no 25 and searching from beginning to end, the closest larger number in the range is 27. Therefore, the first corresponding value in B1:B8 is returned."},{"formula":"XLOOKUP(25,D1:D8,B1:B8,\\"Not found\\",-1,-1)","description":"Looks for 25 or the next smaller number in range D1:D8. Since there is no 25 and searching from end to beginning, the closest smaller number in the range is 22. Therefore, the corresponding value in B1:B8 is returned."},{"formula":"XLOOKUP(\\"J*\\",C1:C8,B1:B8,\\"Not found\\",2,1)","description":"Looks for the FIRST value that starts with \\"J\\" in range C1:C8 and returns the corresponding value in the range B1:B8."}]},"ABS":{"description":"Converts a number into an absolute value.","arguments":[{"name":"number","description":"The number which you want to convert into an absolute value."}],"variadic":0,"category":"math_and_trigonometry","example":[{"formula":"ABS(A2)","description":"Converts the number in cell A2 into an absolute value."},{"formula":"ABS(A3)","description":"Converts the number in cell A3 into an absolute value."}]},"ACOS":{"description":"Calculates the arccosine, or the inverse cosine, of a given number.","arguments":[{"name":"number","description":"The number which you want to calculate the arccosine of, ranging between -1 and 1."}],"variadic":0,"category":"math_and_trigonometry","example":[{"formula":"ACOS(-0.7)","description":"Calculates the arccosine of -0.7."},{"formula":"ACOS(1)","description":"Calculates the arccosine of 1."}]},"ACOSH":{"description":"Calculates the inverse hyperbolic cosine of a given number.","arguments":[{"name":"number","description":"The number which you want to calculate the inverse hyperbolic cosine of. The number must be greater than or equal to 1."}],"variadic":0,"category":"math_and_trigonometry","example":[{"formula":"ACOSH(16)","description":"Calculates the inverse hyperbolic cosine of 16."}]},"ACOT":{"description":"Calculates the arccotangent of a given number.","arguments":[{"name":"number","description":"The number which you want to calculate the arccotangent of. The number must be a real number."}],"variadic":0,"category":"math_and_trigonometry","example":[{"formula":"ACOT(89)","description":"Calculates the arccotangent of 89."}]},"ACOTH":{"description":"Calculates the inverse hyperbolic cotangent of a given number.","arguments":[{"name":"number","description":"The number for which you want to know the inverse hyperbolic cotangent. The absolute value of the number must be more than 1."}],"variadic":0,"category":"math_and_trigonometry","example":[{"formula":"ACOTH(7)","description":"Calculates the inverse hyperbolic cotangent of 7."}]},"ASIN":{"description":"Calculates the arcsine of a given number.","arguments":[{"name":"number","description":"The number which you want to know the arcsine of, ranging between -1 and 1."}],"variadic":0,"category":"math_and_trigonometry","example":[{"formula":"ASIN(-0.4)","description":"Calculates the arcsine of -0.4."}]},"ASINH":{"description":"Calculates the inverse hyperbolic sine of a given number.","arguments":[{"name":"number","description":"The number which you want to know the inverse hyperbolic sine of. The number must be a real number."}],"variadic":0,"category":"math_and_trigonometry","example":[{"formula":"ASINH(-1.25)","description":"Calculates the inverse hyperbolic sine of -1.25."}]},"ATAN":{"description":"Calculates the arctangent of a given number.","arguments":[{"name":"number","description":"The number which you want to know the arctangent of."}],"variadic":0,"category":"math_and_trigonometry","example":[{"formula":"ATAN(46)","description":"Calculates the arctangent of 46."},{"formula":"ATAN(-6.35)","description":"Calculates the arctangent of -6.35."}]},"ATAN2":{"description":"Calculates the arctangent of the specified coordinates.","arguments":[{"name":"number_x","description":"The x-coordinate of the point."},{"name":"number_y","description":"The y-coordinate of the point."}],"variadic":0,"category":"math_and_trigonometry","example":[{"formula":"ATAN2(-8, 3)","description":"Calculates the arctangent of the coordinates (-8, 3)."}]},"ATANH":{"description":"Calculates the inverse hyperbolic tangent of a given number.","arguments":[{"name":"number","description":"A real number between 1 and -1 (excluding -1 and 1)."}],"variadic":0,"category":"math_and_trigonometry","example":[{"formula":"ATANH(0.5)","description":"Inverse hyperbolic tangent of 0.5."},{"formula":"ATANH(-0.25)","description":"Inverse hyperbolic tangent of -0.25."}]},"BASE":{"description":"Converts a number into a text representation with the given base.","arguments":[{"name":"number","description":"The number which you want to convert. The number must be an integer greater than or equal to 0 and less than 2^53."},{"name":"radix","description":"The base that you want to convert the number into. The base must be an integer greater than or equal to 2 and less than or equal to 36."},{"name":"min_length","description":"The minimum length of the result.","required":false}],"variadic":0,"category":"math_and_trigonometry","example":[{"formula":"BASE(100, 36, 1)","description":"Converts the number 100 to base 36. The minimum length is 1 word count."},{"formula":"BASE(21, 2)","description":"Converts the number 21 to base 2."}]},"CEILING.MATH":{"description":"Rounds a real number up to an integer or a specified multiple of a number.","arguments":[{"name":"number","description":"The value to be rounded up."},{"name":"significance","description":"The value whose multiple is used for rounding up the number.","required":false},{"name":"mode","description":"The direction (toward or away from 0) to round negative numbers. If left blank or 0, negative numbers will be rounded toward zero. If any other number is entered, negative numbers will be rounded away from zero.","required":false}],"variadic":0,"category":"math_and_trigonometry","example":[{"formula":"CEILING.MATH(5, 1)","description":"The ceiling.math rounds 5 to the nearest multiple of 1."},{"formula":"CEILING.MATH(-5, 2)","description":"The ceiling.math rounds -5 to the nearest multiple of 2."},{"formula":"CEILING.MATH(2.5, 0.5)","description":"The ceiling.math rounds 2.5 to the nearest multiple of 0.5."}]},"CEILING.PRECISE":{"description":"Rounds a real number up to the nearest integer or the nearest multiple of an integer. If the value is negative, it is rounded up toward zero.","arguments":[{"name":"number","description":"The real number that you want to round up to the nearest integer."},{"name":"significance","description":"The multiple of an integer which would be rounded up to.","required":false}],"variadic":0,"category":"math_and_trigonometry","example":[{"formula":"CEILING.PRECISE(0.7)","description":"Rounds 0.7 up to the nearest integer."},{"formula":"CEILING.PRECISE(-2.7, 2)","description":"Rounds -2.7 up to the nearest multiple of 2."}]},"CEILING":{"description":"Rounds a real number up to the nearest integer or the nearest multiple of an integer.","arguments":[{"name":"number","description":"The real number that you want to round up to the nearest integer."},{"name":"significance","description":"The multiple of an integer which would be rounded up to."}],"variadic":0,"category":"math_and_trigonometry","example":[{"formula":"CEILING(-9.2, 4)","description":"Rounds -9.2 up to the nearest multiple of 4."}]},"COMBIN":{"description":"Calculates the number of all possible combinations for a given number of items.","arguments":[{"name":"number","description":"The number of items."},{"name":"number_chosen","description":"The number of items selected in each combination."}],"variadic":0,"category":"math_and_trigonometry","example":[{"formula":"COMBIN(10, 7)","description":"Calculates the number of all possible combinations from 10 items, with 7 items selected in each combination."}]},"COMBINA":{"description":"Calculates the number of all possible combinations, with repetition, for a given number of items.","arguments":[{"name":"number","description":"The number of items."},{"name":"number_chosen","description":"The number of items in each combination."}],"variadic":0,"category":"math_and_trigonometry","example":[{"formula":"COMBINA(10, 7)","description":"Calculates the number of all possible combinations, with repetition, from 10 items, with 7 items in each combination."}]},"COS":{"description":"Calculates the cosine of a given angle.","arguments":[{"name":"number","description":"The angle, in radians, for which you want to calculate the cosine."}],"variadic":0,"category":"math_and_trigonometry","example":[{"formula":"COS(0.1)","description":"Calculates the cosine of 0.1."}]},"COSH":{"description":"Calculates the hyperbolic cosine of a given angle.","arguments":[{"name":"number","description":"The angle, in radians, for which you want to calculate the hyperbolic cosine."}],"variadic":0,"category":"math_and_trigonometry","example":[{"formula":"COSH(1)","description":"Calculates the hyperbolic cosine of 1."}]},"COT":{"description":"Calculates the cotangent of a given angle.","arguments":[{"name":"number","description":"The angle, in radians, for which you want to calculate the cotangent."}],"variadic":0,"category":"math_and_trigonometry","example":[{"formula":"COT(0.8)","description":"Calculates the cotangent of 0.8."}]},"COTH":{"description":"Calculates the hyperbolic cotangent of a given angle.","arguments":[{"name":"number","description":"The angle, in radians, for which you want to calculate the hyperbolic cotangent."}],"variadic":0,"category":"math_and_trigonometry","example":[{"formula":"COTH(-0.6)","description":"Calculates the hyperbolic cotangent of -0.6."}]},"CSC":{"description":"Calculates the cosecant of a given angle.","arguments":[{"name":"number","description":"The angle, in radians, for which you want to calculate the cosecant."}],"variadic":0,"category":"math_and_trigonometry","example":[{"formula":"CSC(72)","description":"Calculates the cosecant of 72."}]},"CSCH":{"description":"Calculates the hyperbolic cosecant of a given angle.","arguments":[{"name":"number","description":"The angle, in radians, for which you want to calculate the hyperbolic cosecant."}],"variadic":0,"category":"math_and_trigonometry","example":[{"formula":"CSCH(2)","description":"Calculates the hyperbolic cosecant of 2."}]},"DECIMAL":{"description":"Converts a text representation of a number in a given base into a decimal number.","arguments":[{"name":"number","description":"The number which you want to convert."},{"name":"radix","description":"The base of the number."}],"variadic":0,"category":"math_and_trigonometry","example":[{"formula":"DECIMAL(20, 36)","description":"Converts the number 20 (with base 36) into a decimal number."}]},"DEGREES":{"description":"Converts radians into degrees.","arguments":[{"name":"angle","description":"The angle, in radians, that you want to convert to degrees."}],"variadic":0,"category":"math_and_trigonometry","example":[{"formula":"DEGREES(1)","description":"Degrees of 1 radian."},{"formula":"DEGREES(PI)","description":"Degrees of 1 pi radian."},{"formula":"DEGREES(2*PI)","description":"Degrees of 2 pi radians."},{"formula":"DEGREES(-8)","description":"Degrees of -8 radians."}]},"EVEN":{"description":"Rounds a real number up to the nearest even integer.","arguments":[{"name":"number","description":"The real number that you want to round up to the nearest even integer. It can be a number like 3 or a cell reference like B4."}],"variadic":0,"category":"math_and_trigonometry","example":[{"formula":"EVEN(1.2)","description":"Rounds 1.2 up to the nearest even integer."},{"formula":"EVEN(3)","description":"Rounds 3 up to the nearest even integer."}]},"EXP":{"description":"Returns the value of the mathematical constant e (Euler\'s number) raised to a specified power.","arguments":[{"name":"number","description":"The exponent number applied to Euler\'s number."}],"variadic":0,"category":"math_and_trigonometry","example":[{"formula":"EXP(5)","description":"Euler\'s number raised to the power of 5."}]},"FACT":{"description":"Calculates the factorial of a number.","arguments":[{"name":"number","description":"A nonnegative integer. If this number is not an integer, it will be truncated to an integer."}],"variadic":0,"category":"math_and_trigonometry","example":[{"formula":"FACT(6)","description":"Factorial of 6 (1*2*3*4*5*6)."},{"formula":"FACT(6.8)","description":"Truncates 6.8 to 6 and then returns the factorial of 6."},{"formula":"FACT(1)","description":"Factorial of 1."},{"formula":"FACT(0)","description":"Factorial of 0."}]},"FACTDOUBLE":{"description":"Calculates the double factorial of a given number.","arguments":[{"name":"number","description":"The number that you want to calculate the double factorial of."}],"variadic":0,"category":"math_and_trigonometry","example":[{"formula":"FACTDOUBLE(7.5)","description":"Calculates the double factorial of 7.5, or 7*5*3*1."}]},"FLOOR.MATH":{"description":"Rounds a real number down to the nearest integer or the nearest multiple of an integer.","arguments":[{"name":"number","description":"The real number that you want to round down to the nearest integer."},{"name":"significance","description":"The multiple of an integer which would be rounded down to.","required":false},{"name":"mode","description":"The direction (toward or away from 0) to round negative numbers. If left blank or 0, negative numbers will be rounded away from zero. If any other number is entered, negative numbers will be rounded toward zero.","required":false}],"variadic":0,"category":"math_and_trigonometry","example":[{"formula":"FLOOR.MATH(-8.6, 9)","description":"Rounds -8.6 down to the nearest multiple of 9."}]},"FLOOR.PRECISE":{"description":"Rounds a real number down to the nearest integer or the nearest multiple of an integer. Positive numbers are rounded toward 0; negative numbers are always rounded away from 0.","arguments":[{"name":"number","description":"The real number that you want to round down to the nearest integer."},{"name":"significance","description":"The multiple of an integer which would be rounded down to.","required":false}],"variadic":0,"category":"math_and_trigonometry","example":[{"formula":"FLOOR.PRECISE(-7.6)","description":"Rounds -7.6 down to the nearest integer."}]},"FLOOR":{"description":"Rounds a real number down to the nearest multiple of a number.","arguments":[{"name":"number","description":"The real number that you want to round down."},{"name":"significance","description":"The multiple of a number which would be rounded down to."}],"variadic":0,"category":"math_and_trigonometry","example":[{"formula":"FLOOR(-0.1, 5)","description":"Rounds -0.1 down to the nearest multiple of 5."},{"formula":"FLOOR(2.3, 1)","description":"Rounds 2.3 down to the nearest multiple of 1."}]},"GAMMALN.PRECISE":{"description":"Calculates the natural logarithm of gamma function at a specified value.","arguments":[{"name":"x","description":"The value that you want to calculate the natural logarithm of gamma function."}],"variadic":0,"category":"math_and_trigonometry","example":[{"formula":"GAMMALN.PRECISE(4.8)","description":"Calculates the natural logarithm of gamma function at 4.8."}]},"GCD":{"description":"Returns the greatest common divisor of two or more numbers.","arguments":[{"name":"number1","description":"The first number to calculate the greatest common divisor."},{"name":"number2","description":"Subsequent numbers to calculate the greatest common divisor.","required":false}],"variadic":1,"category":"math_and_trigonometry","example":[{"formula":"GCD(3, 5, 7)","description":"Returns the greatest common divisor of 3, 5, and 7."}]},"INT":{"description":"Rounds a real number down to the nearest integer.","arguments":[{"name":"number","description":"The real number that you want to round down to the nearest integer. It can be a number like 3 or a cell reference like B4."}],"variadic":0,"category":"math_and_trigonometry","example":[{"formula":"INT(1.6)","description":"Rounds 1.6 down to the nearest integer."},{"formula":"INT(A1)","description":"Rounds the number in cell A1 down to the nearest integer."},{"formula":"INT(A2)","description":"Rounds the number in cell A2 down to the nearest integer. Rounding a negative number down results in a number smaller than the original number, i.e., a number further away from 0."}]},"ISO.CEILING":{"description":"Rounds a real number up to the nearest integer or the nearest multiple of an integer.","arguments":[{"name":"number","description":"The real number that you want to round up to the nearest integer."},{"name":"significance","description":"The multiple of an integer which would be rounded up to.","required":false}],"variadic":0,"category":"math_and_trigonometry","example":[{"formula":"ISO.CEILING(9.8, 8)","description":"Rounds 9.8 up to the nearest multiple of 8."},{"formula":"ISO.CEILING(-2.3, 3)","description":"Rounds -2.3 up to the nearest multiple of 3."}]},"LCM":{"description":"Returns the lowest common multiple of two or more numbers.","arguments":[{"name":"number1","description":"The first number to calculate the lowest common multiple."},{"name":"number2","description":"The second number to calculate the lowest common multiple.","required":false}],"variadic":1,"category":"math_and_trigonometry","example":[{"formula":"LCM(107, 943)","description":"Returns the lowest common multiple of 107 and 943."}]},"LN":{"description":"Calculates the natural logarithm of a number.","arguments":[{"name":"number","description":"The number that you want to calculate the natural logarithm of."}],"variadic":0,"category":"math_and_trigonometry","example":[{"formula":"LN(3.97)","description":"Calculates the natural logarithm of 3.97."}]},"LOG":{"description":"Calculates the logarithm of a number to a specified base.","arguments":[{"name":"number","description":"The positive number you want to find the logarithm of."},{"name":"base","description":"The base of the logarithm. If not specified, the default base value will be 10.","required":false}],"variadic":0,"category":"math_and_trigonometry","example":[{"formula":"LOG(10)","description":"Logarithm of 10 with an omitted base (default 10). The result is 1 because 10 is 10 raised to the power of 1 (10 = 10^1)."},{"formula":"LOG(64, 2)","description":"Logarithm of 64 with base 2. The result is 6 because 64 is 2 raised to the power of 6 (64 = 2^6 = 22222*2)."}]},"LOG10":{"description":"Calculates the base 10 logarithm of a number.","arguments":[{"name":"number","description":"The positive number you want to find the base 10 logarithm of."}],"variadic":0,"category":"math_and_trigonometry","example":[{"formula":"LOG10(10)","description":"The base 10 logarithm of 10."},{"formula":"LOG10(1000)","description":"The base 10 logarithm of 1000."},{"formula":"LOG10(50)","description":"The base 10 logarithm of 50. The result is 1.698970004 because 50 is 10 raised approximately to the power of 1.698970004."}]},"MOD":{"description":"Returns the remainder after dividing a number by the divisor.","arguments":[{"name":"number","description":"The number that you want to find the remainder."},{"name":"divisor","description":"The divisor used to divide the number."}],"variadic":0,"category":"math_and_trigonometry","example":[{"formula":"MOD(9, 3)","description":"Returns the remainder after dividing 9 by 3."},{"formula":"MOD(5, -2)","description":"Returns the remainder after dividing 5 by -2."}]},"MROUND":{"description":"Rounds a number off to the nearest multiple of an integer.","arguments":[{"name":"number","description":"The number that you want to round off to the nearest multiple of an integer."},{"name":"multiple","description":"The multiple of an integer which would be rounded off to. Must be the same sign as the number argument."}],"variadic":0,"category":"math_and_trigonometry","example":[{"formula":"MROUND(8.2, 2)","description":"Rounds 8.2 off to the nearest multiple of 2."},{"formula":"MROUND(7.1, -6)","description":"Rounds 7.1 off to the nearest multiple of -6. The returned result is #NUM! because the sign of the number differs from its multiple value."}]},"MULTINOMIAL":{"description":"Calculates the factorial of the sum of all given numbers divided by the product of the factorials of each number.","arguments":[{"name":"number1","description":"The number that you want to put into the formula."},{"name":"number2","description":"The number that you want to put into the formula.","required":false}],"variadic":1,"category":"math_and_trigonometry","example":[{"formula":"MULTINOMIAL(1, 2, 3)","description":"Calculates the factorial of the sum of 1, 2, and 3, divided by the product of the factorials of 1, 2, and 3."}]},"ODD":{"description":"Rounds a real number up to the nearest odd integer.","arguments":[{"name":"number","description":"The real number that you want to round up to the nearest odd integer. It can be a number like 3 or a cell reference like B4."}],"variadic":0,"category":"math_and_trigonometry","example":[{"formula":"ODD(-1.7)","description":"Rounds -1.7 up to the nearest odd integer."},{"formula":"ODD(2.3)","description":"Rounds 2.3 up to the nearest odd integer."}]},"PI":{"description":"Returns the value of the mathematical constant pi, accurate to 10 digits.","arguments":[],"variadic":0,"category":"math_and_trigonometry","example":[{"formula":"PI()","description":"Returns the value of pi."},{"formula":"PI()*3","description":"Multiplies pi by 3."},{"formula":"PI()/3","description":"Divides pi by 3."}]},"POWER":{"description":"Calculates a number raised to a specified power.","arguments":[{"name":"number","description":"The base number."},{"name":"power","description":"The power number."}],"variadic":0,"category":"math_and_trigonometry","example":[{"formula":"POWER(2, 10)","description":"Calculates 2 raised to the power of 10."}]},"PRODUCT":{"description":"Multiplies all given numbers and returns the product.","arguments":[{"name":"number1","description":"The first number to be multiplied. It can be a number like 3, a cell reference like B4, or a cell range like A5:G5."},{"name":"number2","description":"Additional numbers or ranges to be multiplied.","required":false}],"variadic":1,"category":"math_and_trigonometry","example":[{"formula":"PRODUCT(5, 3)","description":"Multiplies 5 by 3."},{"formula":"PRODUCT(A1:A5)","description":"Multiplies the numbers in cells A1 through A5."},{"formula":"PRODUCT(B1:B5, 7)","description":"Multiplies the numbers in cells B1 through B5, and then multiplies that value by 7."},{"formula":"A2*B2","description":"Multiplies the numbers in cells A2 and B2 using the * operator instead of the PRODUCT function."}]},"QUOTIENT":{"description":"Returns the integer part of the quotient after dividing the numerator by the denominator.","arguments":[{"name":"numerator","description":"The number to be divided."},{"name":"denominator","description":"The divisor."}],"variadic":0,"category":"math_and_trigonometry","example":[{"formula":"QUOTIENT(-100, 3)","description":"Returns the integer part of the quotient after dividing -100 by 3."}]},"RADIANS":{"description":"Converts degrees into radians.","arguments":[{"name":"angle","description":"The angle, in degrees, that you want to convert into radians."}],"variadic":0,"category":"math_and_trigonometry","example":[{"formula":"RADIANS(180)","description":"Converts 180 degrees into radians."}]},"RAND":{"description":"Returns a random number between 0 (inclusive) and 1 (exclusive).","arguments":[],"variadic":0,"category":"math_and_trigonometry","example":[{"formula":"RAND()","description":"Generates a random number between 0 (inclusive) and 1 (exclusive)."},{"formula":"RAND()*10","description":"Generates a random number between 0 (inclusive) and 10 (exclusive)."},{"formula":"RAND()*(100-90)+90","description":"Generates a random number between 90 (inclusive) and 100 (exclusive)."}]},"RANDARRAY":{"description":"Returns an array of random numbers.","arguments":[{"name":"rows","description":"The number of rows to be returned. Default is 1 if left blank.","required":false},{"name":"columns","description":"The number of columns to be returned. Default is 1 if left blank.","required":false},{"name":"min","description":"The minimum number you would like returned. Default is 0 if left blank.","required":false},{"name":"max","description":"The maximum number you would like returned. Default is 1 if left blank.","required":false},{"name":"whole_number","description":"Returns a whole number or a decimal value. Use TRUE to return a whole number and FALSE to return a decimal number. Default is FALSE.","required":false}],"variadic":0,"min_version":"3.4","category":"math_and_trigonometry","example":[{"formula":"RANDARRAY(2, 3, -2, 5, TRUE)","description":"Creates an integer array between -2 and 5 that\'s 2 rows tall by 3 columns."}]},"RANDBETWEEN":{"description":"Returns a random integer number between specified numbers every time the spreadsheet is opened.","arguments":[{"name":"bottom","description":"The smallest number this function will return."},{"name":"top","description":"The largest number this function will return."}],"variadic":0,"category":"math_and_trigonometry","example":[{"formula":"RANDBETWEEN(1, 1000)","description":"A random integer between 1 and 1000."},{"formula":"RANDBETWEEN(-5, 5)","description":"A random integer between -5 and 5."}]},"ROMAN":{"description":"Converts Arabic numerals into Roman numerals.","arguments":[{"name":"number","description":"Arabic numerals you wish to convert. The number must be lower than 3999."},{"name":"form","description":"The form of Roman numerals. Each form is represented by a code.\\n0 or default: Classic\\n1: Shorter\\n2: Shorter\\n3: Shorter\\n4: Simplified\\nTRUE: Classic\\nFALSE: Simplified\\n","required":false}],"variadic":0,"category":"math_and_trigonometry","example":[{"formula":"ROMAN(3999, 4)","description":"Converts 3999 into Roman numerals, in a simplified form."},{"formula":"ROMAN(36)","description":"Converts 36 into Roman numerals, in a classic form."}]},"ROUND":{"description":"Rounds a number to a specified number of digits.","arguments":[{"name":"number","description":"The number to be rounded."},{"name":"num_digits","description":"The number of digits to which the number argument will be rounded. See examples below for its usage."}],"variadic":0,"category":"math_and_trigonometry","example":[{"formula":"ROUND(155.562, 2)","description":"Rounds the number to two decimal places."},{"formula":"ROUND(A1, 1)","description":"Rounds the number in cell A1 to one decimal place."},{"formula":"ROUND(A1, 0)","description":"Rounds the number in cell A1 to the nearest integer."},{"formula":"ROUND(A1, -1)","description":"Rounds the number in cell A1 to the nearest multiple of 10."},{"formula":"ROUND(A1, -2)","description":"Rounds the number in cell A1 to the nearest multiple of 100."},{"formula":"ROUND(A2, -1)","description":"Rounds the number in cell A2 to the nearest multiple of 10."},{"formula":"ROUND(A3, -2)","description":"Rounds the number in cell A3 to the nearest multiple of 100."}]},"ROUNDDOWN":{"description":"Rounds a number down to a specified number of digits, moving toward zero.","arguments":[{"name":"number","description":"The number to be rounded down."},{"name":"num_digits","description":"The number of digits to which the number will be rounded down."}],"variadic":0,"category":"math_and_trigonometry","example":[{"formula":"ROUNDDOWN(282.47910, 2)","description":"Rounds 282.47910 down to two decimal places."},{"formula":"ROUNDDOWN(282.47910, -2)","description":"Rounds 282.47910 down to the nearest multiple of 100."}]},"ROUNDUP":{"description":"Rounds a number up to a specified number of digits, moving away from zero.","arguments":[{"name":"number","description":"The number to be rounded up."},{"name":"num_digits","description":"The number of digits to which the number will be rounded up."}],"variadic":0,"category":"math_and_trigonometry","example":[{"formula":"ROUNDUP(113.47, 0)","description":"Rounds 113.47 up to the nearest integer."},{"formula":"ROUND(5.4689, 3)","description":"Rounds 5.4689 up to three decimal places."}]},"SEC":{"description":"Calculates the secant of a given angle.","arguments":[{"name":"number","description":"The angle, in radians, for which you want to calculate the secant."}],"variadic":0,"category":"math_and_trigonometry","example":[{"formula":"SEC(-15)","description":"Calculates the secant of -15."}]},"SECH":{"description":"Calculates the hyperbolic secant of a given angle.","arguments":[{"name":"number","description":"The angle, in radians, for which you want to calculate the hyperbolic secant."}],"variadic":0,"category":"math_and_trigonometry","example":[{"formula":"SECH(0.6)","description":"Calculates the hyperbolic secant of 0.6."}]},"SEQUENCE":{"description":"Generates a list of sequential numbers in an array, such as 1, 2, 3, 4.","arguments":[{"name":"rows","description":"The number of rows to return."},{"name":"columns","description":"The number of columns to return. Default is 1 if left blank.","required":false},{"name":"start","description":"The first number in the sequence. Default is 1 if left blank.","required":false},{"name":"step","description":"The amount to increment each subsequent value in the array. Default is 1 if left blank.","required":false}],"variadic":0,"min_version":"3.4","category":"math_and_trigonometry","example":[{"formula":"SEQUENCE(2, 3, 3, 2)","description":"Creates an array that\'s 2 rows tall by 3 columns, and starts at 3 and increases by 2."}]},"SERIESSUM":{"description":"Returns the sum of a power series.","arguments":[{"name":"x","description":"The input value to the power series."},{"name":"n","description":"The initial power that you want to raise x."},{"name":"m","description":"The space between n."},{"name":"coefficients","description":"A set of coefficients that multiply each successive power of x. The number of coefficients in this set determines how many terms the power series will be. If there are two numbers in this set, then there will be two terms in the power series."}],"variadic":0,"category":"math_and_trigonometry","example":[{"formula":"SERIESSUM(7, 4, 5, 1)","description":"Returns 7 to the 4th power."}]},"SIGN":{"description":"Returns the sign of a given number.","arguments":[{"name":"number","description":"Any real number. The SIGN function will return 1 if the number is positive, 0 if the number is 0, and -1 if the number is negative."}],"variadic":0,"category":"math_and_trigonometry","example":[{"formula":"SIGN(15)","description":"A positive number."},{"formula":"SIGN(10-10)","description":"Result of 10-10 is 0."},{"formula":"SIGN(-5)","description":"A negative number."}]},"SIN":{"description":"Calculates the sine of a given angle.","arguments":[{"name":"number","description":"The angle, in radians, for which you want to calculate the sine."}],"variadic":0,"category":"math_and_trigonometry","example":[{"formula":"SIN(-0.57)","description":"Calculates the sine of -0.57."}]},"SINH":{"description":"Calculates the hyperbolic sine of a given angle.","arguments":[{"name":"number","description":"The angle, in radians, for which you want to calculate the hyperbolic sine."}],"variadic":0,"category":"math_and_trigonometry","example":[{"formula":"SINH(8)","description":"Calculates the hyperbolic sine of 8."}]},"SQRT":{"description":"Calculates the square root of a given number.","arguments":[{"name":"number","description":"The number which you want to calculate the square root of. The number must be a positive number."}],"variadic":0,"category":"math_and_trigonometry","example":[{"formula":"SQRT(64)","description":"Calculates the square root of 64."}]},"SQRTPI":{"description":"Calculates the square root of the product of a given number and pi.","arguments":[{"name":"number","description":"The number which you want to multiply by pi and calculate the square root of. The number must be a positive number."}],"variadic":0,"category":"math_and_trigonometry","example":[{"formula":"SQRTPI(20)","description":"Calculates the square root of the product of 20 and pi."}]},"SUBTOTAL":{"description":"Calculates the subtotal in the specified cells or ranges by different functions.","arguments":[{"name":"function_num","description":"The types of function. Each function is represented by a code.\\n1: Average\\n2: Count\\n3: Counta\\n4: Max\\n5: Min\\n6: Product\\n7: Standard Deviation\\n8: Population Standard Deviation\\n9: Sum\\n10: Variance\\n11: Population Variance\\n"},{"name":"ref1","description":"The first cell or reference."},{"name":"ref2","description":"The last cell or reference.","required":false}],"variadic":1,"category":"math_and_trigonometry","example":[{"formula":"SUBTOTAL(2, A2:A4)","description":"Counts how many numbers are in the range between cells A2 to A4."},{"formula":"SUBTOTAL(4, A2:A4)","description":"Returns the maximum value in the range between cells A2 to A4."}]},"SUM":{"description":"Adds all given numbers and returns the sum.","arguments":[{"name":"number1","description":"The first number you want to add. It can be a number like 3, a cell reference like B4, or a cell range like A5:G5"},{"name":"number2","description":"Additional numbers, cell references or ranges to add.","required":false}],"variadic":1,"category":"math_and_trigonometry","example":[{"formula":"SUM(3, 4)","description":"Returns the sum of 3 and 4."},{"formula":"SUM(A3, A4, 10)","description":"Adds the value in cells A3 and A4 first, and then adds 10."},{"formula":"SUM(B1:B5)","description":"Adds the values in cells B1 through B5."}]},"SUMIF":{"description":"Adds the values in a range according to a specified criteria.","arguments":[{"name":"range","description":"The range of cells to check against criteria. It can be cells including numbers or names, arrays, or references that contain numbers."},{"name":"criteria","description":"The criteria that determines which cells will be added. It can be stated in the form of a number, expression, cell reference, or text string."},{"name":"sum_range","description":"The actual cells to be added. If left blank, cells specified in range will be added.","required":false}],"variadic":0,"category":"math_and_trigonometry","example":[{"formula":"SUMIF(A2:A6, \\"Drinks\\", C2:C6)","description":"Sum of the sales of all items in the \\"Drinks\\" category."},{"formula":"SUMIF(A2:A6, \\"Snacks\\", C2:C6)","description":"Sum of the sales of all items in the \\"Snacks\\" category."}]},"SUMIFS":{"description":"Calculates the sum in specific cells that meet multiple criteria.","arguments":[{"name":"sum_range","description":"The range of cells that contain the numbers you want to calculate."},{"name":"criteria_range1","description":"The first range."},{"name":"criteria1","description":"The first criterion."},{"name":"criteria_range2","description":"Subsequent ranges.","required":false},{"name":"criteria2","description":"Subsequent criterion.","required":false}],"variadic":2,"category":"math_and_trigonometry","example":[{"formula":"SUMIFS(A2:A6, B2:B6, \\"=A*\\", C2:C6, \\"Jay\\")","description":"Within the range between cell A2 and A6, calculate the sum of the products that are sold to the regions which start with the letter \\"A\\" between cell B2 and B6, and which are sold by the salesperson Jay."}]},"SUMPRODUCT":{"description":"Calculates the sum of the product of several arrays of cells.","arguments":[{"name":"array1","description":"The first array containing the numbers that you want to calculate."},{"name":"array2","description":"Subsequent arrays containing the numbers that you want to calculate.","required":false}],"variadic":1,"category":"math_and_trigonometry","example":[{"formula":"SUMPRODUCT((A2:A4)*(B2:B4))","description":"Calculates (5*200) + (8*450) + (13*60)."}]},"SUMSQ":{"description":"Calculates the sum of the squares of given numbers.","arguments":[{"name":"number1","description":"The first number which you want the square of."},{"name":"number2","description":"Subsequent numbers which you want the square of.","required":false}],"variadic":1,"category":"math_and_trigonometry","example":[{"formula":"SUMSQ(7, 8)","description":"Calculates the sum of the squares of 7 and 8."}]},"SUMX2MY2":{"description":"Calculates the sum of the differences of squares of corresponding numbers in two arrays.","arguments":[{"name":"array_x","description":"The first array containing the numbers that you want to calculate."},{"name":"array_y","description":"The second array containing the numbers that you want to calculate."}],"variadic":0,"category":"math_and_trigonometry","example":[{"formula":"SUMX2MY2(A2:A4, B2:B4)","description":"Calculates the sum of (1\xb2-10\xb2), (2\xb2-9\xb2), and (3\xb2-8\xb2)."}]},"SUMX2PY2":{"description":"Calculates the sum of the sum of the squares of corresponding numbers in two arrays.","arguments":[{"name":"array_x","description":"The first array containing the numbers that you want to calculate."},{"name":"array_y","description":"The second array containing the numbers that you want to calculate."}],"variadic":0,"category":"math_and_trigonometry","example":[{"formula":"SUMX2PY2(A2:A4, B2:B4)","description":"Calculates the sum of (21\xb2+11\xb2), (22\xb2+12\xb2), and (23\xb2+13\xb2)."}]},"SUMXMY2":{"description":"Calculates the sum of the square of the difference of corresponding numbers in two arrays.","arguments":[{"name":"array_x","description":"The first array containing the numbers that you want to calculate."},{"name":"array_y","description":"The second array containing the numbers that you want to calculate."}],"variadic":0,"category":"math_and_trigonometry","example":[{"formula":"SUMXMY2(A2:A4, B2:B4)","description":"Calculates the sum of (21-11)\xb2, (22-12)\xb2, and (23-13)\xb2."}]},"TAN":{"description":"Calculates the tangent of a given number.","arguments":[{"name":"number","description":"The number, in radians, for which you want to calculate the tangent."}],"variadic":0,"category":"math_and_trigonometry","example":[{"formula":"TAN(0.78)","description":"Calculates the tangent of 0.78."}]},"TANH":{"description":"Calculates the hyperbolic tangent of a given number.","arguments":[{"name":"number","description":"The number, in radians, for which you want to calculate the hyperbolic tangent."}],"variadic":0,"category":"math_and_trigonometry","example":[{"formula":"TANH(27)","description":"Calculates the hyperbolic tangent of 27."}]},"TRUNC":{"description":"Truncates a number to a specified decimal place.","arguments":[{"name":"number","description":"The number that to truncate."},{"name":"num_digits","description":"The number of digits to which the number will be truncated. Default means the function will return the integer part of the number.","required":false}],"variadic":0,"category":"math_and_trigonometry","example":[{"formula":"TRUNC(8.7456, 2)","description":"Truncates 8.7456 to 2 demical places."},{"formula":"TRUNC(0.36)","description":"Returns the integer part of 0.36."}]},"AVEDEV":{"description":"Calculates the average deviation of a supplied array of values.","arguments":[{"name":"number1","description":"The first number in the array."},{"name":"number2","description":"Subsequent numbers of the mean.","required":false}],"variadic":1,"category":"statistical","example":[{"formula":"AVEDEV(A2:A7)","description":"Calculates the average deviation of a supplied array of values."}]},"AVERAGE":{"description":"Returns the average value (arithmetic mean) of its arguments, ignoring text and blank cells.","arguments":[{"name":"number1","description":"The first number to include when calculating the average. It can be a number like 3, a cell reference like B4, or a cell range like A5:G5."},{"name":"number2","description":"Additional numbers, cell references or ranges to include when calculating the average.","required":false}],"variadic":1,"category":"statistical","example":[{"formula":"AVERAGE(A1:A5)","description":"Calculates the average of the numbers in cells A1 through A5."},{"formula":"AVERAGE(B1:B5, A5)","description":"Calculates the average of the numbers in cells B1 through B5 and the number in cell A5."},{"formula":"AVERAGE(A3, B3, 12)","description":"Calculates the average of the numbers in cells A3 and B3 and the number 12."}]},"AVERAGEA":{"description":"Calculates the average of the supplied array of numbers.","arguments":[{"name":"number1","description":"The first number in the array."},{"name":"number2","description":"Subsequent numbers in the array.","required":false}],"variadic":1,"category":"statistical","example":[{"formula":"AVERAGEA(A2:A5)","description":"Calculates the average of the supplied array of numbers."}]},"AVERAGEIF":{"description":"Returns the average value (arithmetic mean) of a range according to a specified criteria.","arguments":[{"name":"range","description":"The range of cells to check against criteria. It can be cells including numbers or names, arrays, or references that contain numbers."},{"name":"criteria","description":"The criteria that determines which cells will be averaged. It can be stated in the form of a number, expression, cell reference, or text string."},{"name":"average_range","description":"The actual cells to be averaged. If left blank, cells specified in range will be averaged.","required":false}],"variadic":0,"category":"statistical","example":[{"formula":"AVERAGEIF(A2:A8, \\"=Monday\\", B2:B8)","description":"Average daily number of customers visiting on Mondays."},{"formula":"AVERAGEIF(A2:A8, \\"<>Friday\\", B2:B8)","description":"Average daily number of customers visiting on days other than Friday."}]},"AVERAGEIFS":{"description":"Calculates the average of the supplied array of numbers which meet certain criteria.","arguments":[{"name":"average_range","description":"An array of values to be tested against the criteria."},{"name":"criteria_range1","description":"The first range of criteria to test."},{"name":"criteria1","description":"The first criteria to test."},{"name":"criteria_range2","description":"Subsequent range of criteria to test.","required":false},{"name":"criteria2","description":"Subsequent criteria to test.","required":false}],"variadic":2,"category":"statistical","example":[{"formula":"AVERAGEIFS(D2:D6, B2:B6, \\">2\\", C2:C6, \\">50\\")","description":"Calculates the average of the supplied array of numbers which meet certain criteria."}]},"BETA.DIST":{"description":"Calculates the cumulative beta distribution function or the probability density function.","arguments":[{"name":"x","description":"The value to evaluate."},{"name":"alpha","description":"The parameter of the distribution."},{"name":"beta","description":"The parameter of the distribution."},{"name":"cumulative","description":"A logical argument which specifies the distribution type, with TRUE being the cumulative distribution function and FALSE being the beta probability density function."},{"name":"A","description":"The lower bound of the interval of x.","required":false},{"name":"B","description":"The upper bound of the interval of x.","required":false}],"variadic":0,"category":"statistical","example":[{"formula":"BETA.DIST(A2, A3, A4, TRUE)","description":"Calculates the cumulative beta distribution function or the probability density function."}]},"BETA.INV":{"description":"Calculates the inverse of the beta cumulative probability density function for a given probability.","arguments":[{"name":"probability","description":"The probability for which to calculate the value of x."},{"name":"alpha","description":"The parameter of the distribution."},{"name":"beta","description":"The parameter of the distribution."},{"name":"A","description":"The lower bound of the interval of x.","required":false},{"name":"B","description":"The upper bound of the interval of x.","required":false}],"variadic":0,"category":"statistical","example":[{"formula":"BETA.INV(A1, A2, A3, A4, A5)","description":"Calculates the inverse of the beta cumulative probability density function."}]},"BETADIST":{"description":"Calculates the cumulative beta distribution function or the probability density function.","arguments":[{"name":"x","description":"The value to evaluate."},{"name":"alpha","description":"The parameter of the distribution."},{"name":"beta","description":"The parameter of the distribution."},{"name":"A","description":"The lower bound of the interval of x.","required":false},{"name":"B","description":"The upper bound of the interval of x.","required":false}],"variadic":0,"category":"statistical","example":[{"formula":"BETADIST(A2, A3, A4)","description":"Calculates the cumulative beta distribution function or the probability density function."}]},"BETAINV":{"description":"Calculates the inverse of the beta cumulative probability density function for a given probability.","arguments":[{"name":"probability","description":"The probability for which to calculate the value of x."},{"name":"alpha","description":"The parameter of the distribution."},{"name":"beta","description":"The parameter of the distribution."},{"name":"A","description":"The lower bound of the interval of x.","required":false},{"name":"B","description":"The upper bound of the interval of x.","required":false}],"variadic":0,"category":"statistical","example":[{"formula":"BETAINV(A1, A2, A3, A4, A5)","description":"Calculates the inverse of the beta cumulative probability density function."}]},"BINOM.DIST":{"description":"Returns the binomial distribution probability of a given number of successes for a specified number of test trials.","arguments":[{"name":"successes","description":"The number of successes to calculate the probability for."},{"name":"trials","description":"The number of independent trials."},{"name":"probability","description":"The probability of success in one trial."},{"name":"cumulative","description":"A logical number that specifies the form of the function, with TRUE being the cumulative distribution function and FALSE being the probability mass function."}],"variadic":0,"category":"statistical","example":[{"formula":"BINOMDIST(A2, A3, A4, TRUE)","description":"Returns the probability of successes."}]},"BINOM.INV":{"description":"Returns the inverse of the cumulative binomial distribution.","arguments":[{"name":"trials","description":"The number of independent trials to be carried out.\xa0"},{"name":"probability","description":"The probability of success in each trial."},{"name":"alpha","description":"The criterion value."}],"variadic":0,"category":"statistical","example":[{"formula":"BINOM.INV(A2, A3, A4)","description":"Returns the inverse of the cumulative binomial distribution."}]},"BINOMDIST":{"description":"Returns the binomial distribution probability of a given number of successes for a specified number of test trials.","arguments":[{"name":"successes","description":"The number of successes to calculate the probability for."},{"name":"trials","description":"The number of independent trials."},{"name":"probability","description":"The probability of success in one trial."},{"name":"cumulative","description":"A logical number that specifies the form of the function, with TRUE being the cumulative distribution function and FALSE being the probability mass function."}],"variadic":0,"category":"statistical","example":[{"formula":"BINOMDIST(A2, A3, A4, TRUE)","description":"Returns the probability of successes."}]},"CHIDIST":{"description":"Calculates the right-tail probability of the Chi-square distribution.","arguments":[{"name":"x","description":"The value used to evaluate the distribution."},{"name":"k","description":"The degree of freedom."}],"variadic":0,"category":"statistical","example":[{"formula":"CHIDIST(0.1, 2)","description":"Calculates the right-tail probability of the Chi-square distribution at 0.1 and 2 degrees of freedom."}]},"CHIINV":{"description":"Calculates the inverse function of the right-tail probability of Chi-square distribution.","arguments":[{"name":"p","description":"The value used to evaluate the distribution."},{"name":"k","description":"The degree of freedom."}],"variadic":0,"category":"statistical","example":[{"formula":"CHIINV(0.2, 2)","description":"Calculates the inverse function of the right-tail probability of Chi-square distribution at 0.2 and 2 degrees of freedom."}]},"CHISQ.DIST.RT":{"description":"Calculates the right-tail probability of the Chi-square distribution.","arguments":[{"name":"x","description":"The value used to evaluate the distribution."},{"name":"k","description":"The degree of freedom."}],"variadic":0,"category":"statistical","example":[{"formula":"CHISQ.DIST.RT(1, 2)","description":"Calculates the right-tail probability of the Chi-square distribution at 1 and 2 degrees of freedom."}]},"CHISQ.DIST":{"description":"Calculates the Chi-square distribution.","arguments":[{"name":"x","description":"The value used to evaluate the distribution."},{"name":"k","description":"The degree of freedom."},{"name":"cumulative","description":"The logical value which determines the format of the function. If TRUE, it returns the cumulative distribution function. If FALSE, it returns the probability density function.","required":false}],"variadic":0,"category":"statistical","example":[{"formula":"CHISQ.DIST(1, 2, FALSE)","description":"Calculates the Chi-square distribution at 1 and 2 degrees of freedom. The format of the function is the probability density function."}]},"CHISQ.INV.RT":{"description":"Calculates the inverse of the right-tail probability of the Chi-square distribution.","arguments":[{"name":"p","description":"The probability that is related to the Chi-square distribution."},{"name":"k","description":"The degree of freedom."}],"variadic":0,"category":"statistical","example":[{"formula":"CHISQ.INV.RT(0.1, 2)","description":"Calculates the inverse of the right-tail probability of the Chi-square distribution at 0.1 and 2 degrees of freedom."}]},"CHISQ.INV":{"description":"Calculates the inverse of the left-tail probability of the Chi-square distribution.","arguments":[{"name":"probability","description":"The probability that is related to the Chi-square distribution."},{"name":"k","description":"The degree of freedom."}],"variadic":0,"category":"statistical","example":[{"formula":"CHISQ.INV(0.1, 2)","description":"Calculates the inverse of the left-tail probability of the Chi-square distribution at 0.1 and 2 degrees of freedom."}]},"CHISQ.TEST":{"description":"Calculates the Chi-Square test of independence.","arguments":[{"name":"observed","description":"The range of observations that are used to examine expected value."},{"name":"expected","description":"The range of expected values. Expected values are the ratio of the product of row total and column total to the grand total."}],"variadic":0,"category":"statistical","example":[{"formula":"CHISQ.TEST(B2:C3, B5:C6)","description":"Calculates the Chi-Square test of independence with the given sets of data."}]},"CHITEST":{"description":"Calculates the probability of significant difference between two sets of data.","arguments":[{"name":"observed","description":"The range of observed values, which is used to test against the expected values."},{"name":"expected","description":"The range of all data."}],"variadic":0,"category":"statistical","example":[{"formula":"CHITEST(B2:C3, B5:C6)","description":"Calculates the probability of significant difference between two sets of data."}]},"CONFIDENCE.NORM":{"description":"Calculates the confidence interval with a normal distribution.","arguments":[{"name":"alpha","description":"The significance level, which is used to calculate the confidence level."},{"name":"standard_dev","description":"The standard deviation of a set of known data."},{"name":"size","description":"The sample size."}],"variadic":0,"category":"statistical","example":[{"formula":"CONFIDENCE.NORM(A2, A3, A4)","description":"Calculates the confidence interval with a normal distribution."}]},"CONFIDENCE.T":{"description":"Calculates the confidence interval with a Student\'s T distribution.","arguments":[{"name":"alpha","description":"The significance level, which is used to calculate the confidence level."},{"name":"standard_dev","description":"The standard deviation of a set of known data."},{"name":"size","description":"The sample size."}],"variadic":0,"category":"statistical","example":[{"formula":"CONFIDENCE.T(A2, A3, A4)","description":"Calculates the confidence interval with a Student\'s T distribution."}]},"CONFIDENCE":{"description":"Calculates the confidence interval with a normal distribution.","arguments":[{"name":"alpha","description":"The significance level, which is used to calculate the confidence level."},{"name":"standard_dev","description":"The standard deviation of a set of known data."},{"name":"size","description":"The sample size."}],"variadic":0,"category":"statistical","example":[{"formula":"CONFIDENCE(A2, A3, A4)","description":"Calculates the confidence interval with a normal distribution."}]},"CORREL":{"description":"Calculates the correlation coefficient of two sets of data.","arguments":[{"name":"array1","description":"The first array of data."},{"name":"array2","description":"The second array of data."}],"variadic":0,"category":"statistical","example":[{"formula":"CORREL(A2:A4, B2:B4)","description":"Calculates the correlation coefficient of two sets of data."}]},"COUNT":{"description":"Counts the number of numeric values in a range.","arguments":[{"name":"value1","description":"The first value in a range within which you want to count numbers. It can be a number like 3, a cell reference like B4, or a cell range like A5:G5. Logical values \\"TRUE\\" and \\"FALSE\\" will be converted into 1 and 0, respectively, and will be counted."},{"name":"value2","description":"Additional values to be counted.","required":false}],"variadic":1,"category":"statistical","example":[{"formula":"COUNT(A2:A7)","description":"Counts the number of numeric values in cells A2 through A6."},{"formula":"COUNT(A2:A7, 8, FALSE)","description":"Counts the number of numeric values in this dataset. \\"FALSE\\" is counted as a number."}]},"COUNTA":{"description":"Counts the number of non-blank values in a range.","arguments":[{"name":"value1","description":"The first value to be counted. It can be any value, a cell reference like B4, or a cell range like A5:G5."},{"name":"value2","description":"Additional values to be counted.","required":false}],"variadic":1,"category":"statistical","example":[{"formula":"COUNTA(A2:A7)","description":"Counts the number of non-blank values in cells A2 through A7."}]},"COUNTBLANK":{"description":"Counts the number of empty cells in a range.","arguments":[{"name":"range","description":"The first cell or range of cells to be counted."}],"variadic":0,"category":"statistical","example":[{"formula":"COUNTBLANK(A2:B4)","description":"Counts the number of empty cells in a range."}]},"COUNTIF":{"description":"Counts the number of cells within a range according to a specified criteria.","arguments":[{"name":"range","description":"The range of cells to check against criteria. It can be cells including numbers or names, arrays, or references that contain numbers."},{"name":"criteria","description":"The criteria that determines which cells will be counted. It can be stated in the form of a number, expression, cell reference, or text string."}],"variadic":0,"category":"statistical","example":[{"formula":"COUNTIF(A2:A6, \\"shirts\\")","description":"Counts the number of cells with \\"shirts\\"\\" in cells A2 through A6."},{"formula":"COUNTIF(A2:A6, A3)","description":"Counts the number of cells with \\"hats\\" (the value in cell A3) in cells A2 through A6."},{"formula":"COUNTIF(B2:B6,\\"<5000\\")","description":"Counts the number of cells with a value less than 5000 in cells B2 through B6."},{"formula":"COUNTIF(B2:B6, \\">\\"&B5)","description":"Counts the number of cells with a value greater than 4000 (the value in cell B5) in cells B2 through B6."},{"formula":"COUNTIF(A2:A6, A3) + COUNTIF(A2:A6, A4)","description":"Counts the number of cells with \\"hats\\" and the number of cells with \\"skirts\\" in cells A2 through A6."}]},"COUNTIFS":{"description":"Calculates the number of cells in a range which satisfy a specified criteria.","arguments":[{"name":"criteria_range1","description":"The first range to be examined against the criteria."},{"name":"criteria1","description":"The first criterion."},{"name":"criteria_range2","description":"The second range to be examined against the criteria.","required":false},{"name":"criteria2","description":"The second criterion.","required":false}],"variadic":2,"category":"statistical","example":[{"formula":"COUNTIFS(B2:B5, \\">10\\", C2:C5, \\">5\\")","description":"Calculates the number of cells in the range which satisfy the specified criteria."}]},"COVAR":{"description":"Calculates the covariance between two sets of numbers.","arguments":[{"name":"array1","description":"The first set of numbers. If this set of data contains text, logical values, or empty cells, the COVAR function will ignore the non-numerical values. If the two sets of numbers have different number of data points, the function returns the #N/A error value."},{"name":"array2","description":"The second set of numbers. If this set of data contains text, logical values, or empty cells, the COVAR function will ignore the non-numerical values. If the two sets of numbers have different number of data points, the function returns the #N/A error value."}],"variadic":0,"category":"statistical","example":[{"formula":"COVAR({1,7,5,8,2}, {3,8,9,10,6})","description":"Returns the covariance."},{"formula":"COVAR(A1:A5, B1:B5)","description":"Returns the covariance."}]},"COVARIANCE.P":{"description":"Calculates the population covariance of two sets of data.","arguments":[{"name":"array1","description":"The first array of data."},{"name":"array2","description":"The second array of data."}],"variadic":0,"category":"statistical","example":[{"formula":"COVARIANCE.P(A2:A4, B2:B4)","description":"Calculates the population covariance of two sets of data."}]},"COVARIANCE.S":{"description":"Calculates the sample covariance of two sets of data.","arguments":[{"name":"array1","description":"The first array of data."},{"name":"array2","description":"The second array of data."}],"variadic":0,"category":"statistical","example":[{"formula":"COVARIANCE.S(A2:A4, B2:B4)","description":"Calculates the sample covariance of two sets of data."}]},"CRITBINOM":{"description":"Calculates the smallest value for which the cumulative binomial distribution is greater than or equal to the specified criterion value.","arguments":[{"name":"trials","description":"The number of Binomial test."},{"name":"probability","description":"The probability of success in each test."},{"name":"alpha","description":"The criterion value."}],"variadic":0,"category":"statistical","example":[{"formula":"CRITBINOM(10, 0.7, 0.01)","description":"Calculates the minimum value for which the cumulative binomial distribution is greatre than or equal to the specified criterion value."}]},"DEVSQ":{"description":"Calculates the sum of the squared deviations from a sample mean on a given set of values.","arguments":[{"name":"number1","description":"The first number used to calculate the function."},{"name":"number2","description":"The second number used to calculate the function.","required":false}],"variadic":1,"category":"statistical","example":[{"formula":"DEVSQ(A2:A7)","description":"Calculates the sum of the squared deviations from a sample mean on the given set of values."}]},"EXPON.DIST":{"description":"Calculates the exponential distribution.","arguments":[{"name":"x","description":"The number at which to calculate the exponential distribution."},{"name":"lambda","description":"The parameter value."},{"name":"cumulative","description":"The logical value that decides the form of the function. If cumulative is TRUE, the function calculates with cumulative distribution function. If cumulative is FALSE, the function calculates with probability density function."}],"variadic":0,"category":"statistical","example":[{"formula":"EXPON.DIST(0.5, 7, TRUE)","description":"Calculates the exponential distribution and presented in the form of cumulative distribution function."}]},"EXPONDIST":{"description":"Calculates the exponential distribution.","arguments":[{"name":"x","description":"The number at which to calculate the exponential distribution."},{"name":"lambda","description":"The parameter value."},{"name":"cumulative","description":"The logical value that decides the form of the function. If cumulative is TRUE, the function calculates with cumulative distribution function. If cumulative is FALSE, the function calculates with probability density function."}],"variadic":0,"category":"statistical","example":[{"formula":"EXPONDIST(0.5, 7, TRUE)","description":"Calculates the exponential distribution and presented in the form of cumulative distribution function."}]},"F.DIST.RT":{"description":"Calculates the right-tailed F probability distribution.","arguments":[{"name":"x","description":"The value at which to evaluate the function."},{"name":"deg_freedom1","description":"The degree of freedom of the numerator."},{"name":"deg_freedom2","description":"The degree of freedom of denominator."}],"variadic":0,"category":"statistical","example":[{"formula":"F.DIST.RT(B2, B3, B4)","description":"Calculates the right-tailed F probability distribution."}]},"F.DIST":{"description":"Calculates the F probability distribution.","arguments":[{"name":"x","description":"The value at which to evaluate the function."},{"name":"deg_freedom1","description":"The degree of freedom for numerator."},{"name":"deg_freedom2","description":"The degree of freedom for denominator."},{"name":"cumulative","description":"The logical value that decides the form of the function. If cumulative is TRUE, the function calculates with cumulative distribution function. If cumulative is FALSE, the function calculates with probability density function."}],"variadic":0,"category":"statistical","example":[{"formula":"F.DIST(B2, B3, B4, TRUE)","description":"Calculates the F probability distribution and presented in the form of cumulative distribution function."}]},"F.INV.RT":{"description":"Calculates the inverse of the right-tailed F distribution.","arguments":[{"name":"probability","description":"The probability at which to evaluate the F cumulative distribution."},{"name":"deg_freedom1","description":"The degree of freedom for numerator."},{"name":"deg_freedom2","description":"The degree of freedom for denominator."}],"variadic":0,"category":"statistical","example":[{"formula":"F.INV.RT(B2, B3, B4)","description":"Calculates the inverse of the right-tailed F distribution with the above conditions."}]},"F.INV":{"description":"Calculates the inverse of the F distribution.","arguments":[{"name":"probability","description":"The probability at which to evaluate the F cumulative distribution."},{"name":"deg_freedom1","description":"The degree of freedom for numerator."},{"name":"deg_freedom2","description":"The degree of freedom for denominator."}],"variadic":0,"category":"statistical","example":[{"formula":"F.INV(B2, B3, B4)","description":"Calculates the inverse of F distribution with the above conditions."}]},"F.TEST":{"description":"Returns the result of an F-test.","arguments":[{"name":"array1","description":"The first array of data."},{"name":"array2","description":"The second array of data."}],"variadic":0,"category":"statistical","example":[{"formula":"F.TEST(A2:A5, B2:B5)","description":"Returns the result of an F-test."}]},"FDIST":{"description":"Calculates the F probability distribution.","arguments":[{"name":"x","description":"The value at which to evaluate the function."},{"name":"deg_freedom1","description":"The degree of freedom for numerator."},{"name":"deg_freedom2","description":"The degree of freedom for denominator."}],"variadic":0,"category":"statistical","example":[{"formula":"FDIST(B2, B3, B4)","description":"Calculates the F probability distribution and presented in the form of cumulative distribution function."}]},"FINV":{"description":"Calculates the inverse of the F distribution.","arguments":[{"name":"probability","description":"The probability at which to calculate the F cumulative distribution."},{"name":"deg_freedom1","description":"The degree of freedom for numerator."},{"name":"deg_freedom2","description":"The degree of freedom for denominator."}],"variadic":0,"category":"statistical","example":[{"formula":"FINV(B2, B3, B4)","description":"Calculates the inverse of the F distribution."}]},"FISHER":{"description":"Calculates the Fisher transformation for a given value.","arguments":[{"name":"x","description":"The value at which to calculate."}],"variadic":0,"category":"statistical","example":[{"formula":"FISHER(0.9)","description":"Calculates the Fisher transfermation for 0.9."}]},"FISHERINV":{"description":"Calculates the inverse of the Fisher transformation for a given value.","arguments":[{"name":"y","description":"The value at which to calculate."}],"variadic":0,"category":"statistical","example":[{"formula":"FISHERINV(0.47)","description":"Calculates the inverse of the Fisher transformation for 0.47."}]},"FORECAST":{"description":"Calculates or forecasts the future value of a value.","arguments":[{"name":"x","description":"The value for which you want to calculate the future value."},{"name":"data_y","description":"The firt array of known data."},{"name":"data_x","description":"The second array of known data."}],"variadic":0,"category":"statistical","example":[{"formula":"FORECAST(12, A2:A5, B2:B5)","description":"Forecasts the future value of 12 with the above known data."}]},"FTEST":{"description":"Returns the result of an F-test.","arguments":[{"name":"array1","description":"The first array of data."},{"name":"array2","description":"The second array of data."}],"variadic":0,"category":"statistical","example":[{"formula":"FTEST(A2:A5, B2:B5)","description":"Returns the result of an F-test."}]},"GAMMA.DIST":{"description":"Returns the gamma distribution.","arguments":[{"name":"x","description":"The value at which to evaluate the function."},{"name":"alpha","description":"The parameter value to be used as an input to the gamma distribution."},{"name":"beta","description":"The parameter value to be used as an input to the gamma distribution. The function returns standard gamma distribution if beta is 1."},{"name":"cumulative","description":"The logical value that decides the form of the function. If cumulative is TRUE, the function calculates with cumulative distribution function. If cumulative is FALSE, the function calculates with probability density function."}],"variadic":0,"category":"statistical","example":[{"formula":"GAMMA.DIST(B2, B3, B4, FALSE)","description":"Returns the gamma distribution and presented in the form of probability density function."}]},"GAMMA.INV":{"description":"Returns the inverse of the gamma distribution.","arguments":[{"name":"probability","description":"The probability related to the gamma distribution."},{"name":"alpha","description":"The parameter value to be used as an input to the gamma distribution."},{"name":"beta","description":"The parameter value to be used as an input to the gamma distribution. The function returns standard gamma distribution if beta is 1."}],"variadic":0,"category":"statistical","example":[{"formula":"GAMMA.INV(B2, B3, B4)","description":"Returns the inverse of the gamma distribution."}]},"GAMMA":{"description":"Returns the value of the gamma function.","arguments":[{"name":"x","description":"The number that you want to calculate."}],"variadic":0,"category":"statistical","example":[{"formula":"GAMMA(0.1)","description":"Returns the value of the gamma function."}]},"GAMMADIST":{"description":"Returns the gamma distribution.","arguments":[{"name":"x","description":"The value at which to evaluate the function."},{"name":"alpha","description":"The parameter value to be used as an input to the gamma distribution."},{"name":"beta","description":"The parameter value to be used as an input to the gamma distribution. The function returns standard gamma distribution if beta is 1."},{"name":"cumulative","description":"The logical value that decides the form of the function. If cumulative is TRUE, the function calculates with cumulative distribution function. If cumulative is FALSE, the function calculates with probability density function."}],"variadic":0,"category":"statistical","example":[{"formula":"GAMMADIST(B2, B3, B4, FALSE)","description":"Returns the gamma distribution and presented in the form of probability density function."}]},"GAMMAINV":{"description":"Returns the inverse of the gamma distribution.","arguments":[{"name":"probability","description":"The probability related to the gamma distribution."},{"name":"alpha","description":"The parameter value to be used as an input to the gamma distribution."},{"name":"beta","description":"The parameter value to be used as an input to the gamma distribution. The function returns standard gamma distribution if beta is 1."}],"variadic":0,"category":"statistical","example":[{"formula":"GAMMAINV(B2, B3, B4)","description":"Returns the inverse of the gamma distribution."}]},"GAMMALN":{"description":"Calculates the natural logarithm of the gamma function.","arguments":[{"name":"x","description":"The number that you want to calculate."}],"variadic":0,"category":"statistical","example":[{"formula":"GAMMALN(12)","description":"Calculates the natural logarithm of the gamma function."}]},"GAUSS":{"description":"Calculates the probability that a member in a normal population will fall between the mean value and the specified number of standard deviations.","arguments":[{"name":"x","description":"The number of standard deviations."}],"variadic":0,"category":"statistical","example":[{"formula":"GAUSS(1)","description":"Calculates the probability of a member in a normal population that falls between the mean value and 1 standard deviation."}]},"GEOMEAN":{"description":"Calculates the geometric mean of a set of data.","arguments":[{"name":"number1","description":"The number used to calculate the function."},{"name":"number2","description":"The number used to calculate the function.","required":false}],"variadic":1,"category":"statistical","example":[{"formula":"GEOMEAN(A2:A4)","description":"Calculates the geometric mean of a set of data."}]},"HARMEAN":{"description":"Calculates the harmonic mean of a set of data.","arguments":[{"name":"number1","description":"The number used to calculate the function."},{"name":"number2","description":"The number used to calculate the function.","required":false}],"variadic":1,"category":"statistical","example":[{"formula":"HARMEAN(A2:A4)","description":"Calculates the harmonic mean of a set of data."}]},"HYPGEOM.DIST":{"description":"Calculates the hypergeometric distribution for a given number of successes from a population.","arguments":[{"name":"sample_s","description":"The number of successes in the sample."},{"name":"number_sample","description":"The sample size."},{"name":"population_s","description":"The number of successes in the population."},{"name":"number_pop","description":"The population size."},{"name":"cumulative","description":"A logical value that specifies the type of distribution to use, with TRUE being cumulative distribution function and FALSE being the probability mass function."}],"variadic":0,"category":"statistical","example":[{"formula":"HYPGEOM.DIST(A2, A3, A4, A5, TRUE)","description":"Calculates the hypergeometric distribution for a given number of successes from a population."}]},"HYPGEOMDIST":{"description":"Calculates the hypergeometric distribution for a given number of successes from a population.","arguments":[{"name":"sample_s","description":"The number of successes in the sample."},{"name":"number_sample","description":"The sample size."},{"name":"population_s","description":"The number of successes in the population."},{"name":"number_pop","description":"The population size."}],"variadic":0,"category":"statistical","example":[{"formula":"HYPGEOMDIST(A2, A3, A4, A5)","description":"Calculates the hypergeometric distribution for a given number of successes from a population."}]},"INTERCEPT":{"description":"Calculates the point at which a regression line will intercept the y-axis using existing x-values and y-values.","arguments":[{"name":"known_y","description":"The array of y values."},{"name":"known_x","description":"The array of x values."}],"variadic":0,"category":"statistical","example":[{"formula":"INTERCEPT(A2:A5,B2:B5)","description":"Calculates the interception point on the y-axis."}]},"KURT":{"description":"Calculates the kurtosis of a given dataset.","arguments":[{"name":"number1","description":"The first value in the dataset."},{"name":"number2","description":"Subsequent values in the dataset.","required":false}],"variadic":1,"category":"statistical","example":[{"formula":"KURT(A2:A7)","description":"Calculates the kurtosis of a given dataset."}]},"LARGE":{"description":"Calculates the k-th largest value from a given dataset.","arguments":[{"name":"array","description":"The range of values to calculate the k-th largest value."},{"name":"k","description":"The k value."}],"variadic":0,"category":"statistical","example":[{"formula":"LARGE(A2:A8, 4)","description":"Calculates the k-th largest value from the given dataset."}]},"LOGINV":{"description":"Calculates the inverse of the lognormal cumulative distribution.","arguments":[{"name":"probability","description":"The value at which to calculate the distribution."},{"name":"mean","description":"The arithmetic mean of ln(x)."},{"name":"standard_dev","description":"The standard deviation of ln(x)."}],"variadic":0,"category":"statistical","example":[{"formula":"LOGINV(A2, A3, A4)","description":"Calculates the inverse of the lognormal cumulative distribution."}]},"LOGNORM.DIST":{"description":"Calculates the lognormal distribution of a supplied value x.","arguments":[{"name":"x","description":"The value at which to calculate the distribution."},{"name":"mean","description":"The arithmetic mean of ln(x)."},{"name":"standard_dev","description":"The standard deviation of ln(x)."},{"name":"cumulative","description":"A logical value that specifies the type of distribution to use, with TRUE being cumulative distribution function and FALSE being the probability mass function."}],"variadic":0,"category":"statistical","example":[{"formula":"LOGNORM.DIST(A2, A3, A4, FALSE)","description":"Calculates the lognormal distribution of a supplied value x."}]},"LOGNORM.INV":{"description":"Calculates the inverse of the lognormal cumulative distribution of a suppplied value x.","arguments":[{"name":"probability","description":"The value at which to calculate the distribution."},{"name":"mean","description":"The arithmetic mean of ln(x)."},{"name":"standard_dev","description":"The standard deviation of ln(x)."}],"variadic":0,"category":"statistical","example":[{"formula":"LOGINV(A2, A3, A4)","description":"Calculates the inverse of the lognormal distribution of a suppplied value x."}]},"LOGNORMDIST":{"description":"Calculates the lognormal distribution of a supplied value x.","arguments":[{"name":"x","description":"The value at which to calculate the distribution."},{"name":"mean","description":"The arithmetic mean of ln(x)."},{"name":"standard_dev","description":"The standard deviation of ln(x)."}],"variadic":0,"category":"statistical","example":[{"formula":"LOGNORMDIST(A2, A3, A4)","description":"Calculates the lognormal distribution of a supplied value x."}]},"MAX":{"description":"Returns the maximum value in a set of numeric data.","arguments":[{"name":"number1","description":"First number in a series of numbers for which you want to identify the largest value. It can be a number like 3, a cell reference like B4, or a cell range like A5:G5."},{"name":"number2","description":"Second and subsequent numbers, cell references or ranges.","required":false}],"variadic":1,"category":"statistical","example":[{"formula":"MAX(A1:A5)","description":"Largest value in the range A1 through A5."},{"formula":"MAX(B1:B5, 86)","description":"Largest value in the range B1 through B5 and the value 86."}]},"MAXA":{"description":"Returns the largest value in a dataset.","arguments":[{"name":"value1","description":"The first value in the dataset."},{"name":"value2","description":"Subsequent values in the dataset.","required":false}],"variadic":1,"category":"statistical","example":[{"formula":"MAX(A2:A7)","description":"Returns the largest value in a dataset."}]},"MAXIFS":{"description":"Returns the largest value in a dataset based on certain criteria.","arguments":[{"name":"max_range","description":"An array of values from which to find the largest value."},{"name":"criteria_range1","description":"An array of values to be tested against the first criteria."},{"name":"criteria1","description":"The criteria to be tested."},{"name":"criteria_range2","description":"Additional array of values to be tested.","required":false},{"name":"criteria2","description":"Additional criteria to be tested.","required":false}],"variadic":2,"category":"statistical","example":[{"formula":"MAXIFS(A1:A6, B1:B6, 58)","description":"Returns the largest value in a dataset based on certain criteria."}]},"MEDIAN":{"description":"Returns the median value in a dataset.","arguments":[{"name":"number1","description":"The first value in the dataset."},{"name":"number2","description":"Subsequent values in the dataset.","required":false}],"variadic":1,"category":"statistical","example":[{"formula":"MEDIAN(A2:A7)","description":"Returns the median value in a dataset."}]},"MIN":{"description":"Returns the minimum value in a set of numeric data.","arguments":[{"name":"number1","description":"First number in a series of numbers for which you want to identify the smallest value. It can be a number like 3, a cell reference like B4, or a cell range like A5:G5."},{"name":"number2","description":"Second and subsequent numbers, cell references or ranges.","required":false}],"variadic":1,"category":"statistical","example":[{"formula":"MIN(A1:A5)","description":"Smallest value in the range A1 through A5."},{"formula":"MIN(B1:B5, 57)","description":"Smallest value in the range B1 through B5 and the value 57."}]},"MINA":{"description":"Returns the smallest value in a dataset.","arguments":[{"name":"value1","description":"The first value in the dataset."},{"name":"value2","description":"Subsequent values in the dataset.","required":false}],"variadic":1,"category":"statistical","example":[{"formula":"MINA(A2:A7)","description":"Returns the smallest value in a dataset."}]},"MINIFS":{"description":"Returns the smallest value in a dataset based on certain criteria.","arguments":[{"name":"min_range","description":"An array of values from which to find the smallest value."},{"name":"criteria_range1","description":"An array of values to be tested against the first criteria."},{"name":"criteria1","description":"The criteria to be tested."},{"name":"criteria_range2","description":"Additional array of values to be tested.","required":false},{"name":"criteria2","description":"Additional criteria to be tested.","required":false}],"variadic":2,"category":"statistical","example":[{"formula":"MINIFS(A2:A6, B2:B6, \\"<85\\")","description":"Returns the smallest value in a dataset based on certain criteria."}]},"MODE.SNGL":{"description":"Returns the most frequently occurring value of a list of given numbers.","arguments":[{"name":"number1","description":"The first number of the given dataset to calculate the mode."},{"name":"number2","description":"Subsequent values to calculate the mode.","required":false}],"variadic":1,"category":"statistical","example":[{"formula":"MODE.SNGL(A2:A8)","description":"Returns the most frequently occurring value of a list of given numbers."}]},"MODE":{"description":"Returns the most frequently occurring value of a list of given numbers.","arguments":[{"name":"number1","description":"The first number of the given dataset to calculate the mode."},{"name":"number2","description":"Subsequent values to calculate the mode.","required":false}],"variadic":1,"category":"statistical","example":[{"formula":"MODE(A2:A8)","description":"Returns the most frequently occurring value of a list of given numbers."}]},"NEGBINOM.DIST":{"description":"Returns the negative binomial distribution.","arguments":[{"name":"number_f","description":"The number of failures."},{"name":"number_s","description":"The required number of successes."},{"name":"probability_s","description":"The probability of a success in one trial."},{"name":"cumulative","description":"A logical value that specifies the type of distribution to use, with TRUE being cumulative distribution function and FALSE being the probability mass function."}],"variadic":0,"category":"statistical","example":[{"formula":"NEGBINOM.DIST(A2, A3, A4, TRUE)","description":"Returns the negative binomial distribution."}]},"NEGBINOMDIST":{"description":"Returns the negative binomial distribution.","arguments":[{"name":"number_f","description":"The number of failures."},{"name":"number_s","description":"The required number of successes."},{"name":"probability_s","description":"The probability of a success in one trial."}],"variadic":0,"category":"statistical","example":[{"formula":"NEGBINOMDIST(A2, A3, A4)","description":"Returns the negative binomial distribution."}]},"NORM.DIST":{"description":"Calculates the normal distribution for the supplied mean and standard deviation.","arguments":[{"name":"x","description":"The value at which to calculate the distribution."},{"name":"mean","description":"The arithmetic mean of the distribution."},{"name":"standard_dev","description":"The standard deviation of the distribution."},{"name":"cumulative","description":"A logical value that specifies the type of distribution to use, with TRUE being cumulative distribution function and FALSE being the probability mass function."}],"variadic":0,"category":"statistical","example":[{"formula":"NORM.DIST(A2, A3, A4, TRUE)","description":"Calculates the normal distribution for the supplied mean and standard deviation."}]},"NORM.INV":{"description":"Calculates the inverse of the normal cumulative distribution for the supplied mean and standard deviation.","arguments":[{"name":"probability","description":"The value at which to calculate the distribution."},{"name":"mean","description":"The arithmetic mean of the distribution."},{"name":"standard_dev","description":"The standard deviation of the distribution."}],"variadic":0,"category":"statistical","example":[{"formula":"NORM.INV(A2, A3, A4)","description":"Calculates the inverse of the normal cumulative distribution for the supplied mean and standard deviation."}]},"NORM.S.DIST":{"description":"Calculates the standard normal cumulative distribution function.","arguments":[{"name":"z","description":"The probability at which to calculate the distribution."},{"name":"cumulative","description":"A logical value that specifies the type of distribution to use, with TRUE being cumulative distribution function and FALSE being the probability mass function. The default value is FALSE.","required":false}],"variadic":0,"category":"statistical","example":[{"formula":"NORM.S.DIST(-1.26)","description":"Calculates the standard normal cumulative distribution function."},{"formula":"NORM.S.DIST(-1.26, TRUE)","description":"Calculates the standard normal cumulative distribution function."}]},"NORM.S.INV":{"description":"Calculates the inverse of the standard normal cumulative distribution function.","arguments":[{"name":"probability","description":"The probability at which to calculate the distribution."}],"variadic":0,"category":"statistical","example":[{"formula":"NORM.S.INV(0.31444)","description":"Calculates the inverse of the standard normal cumulative distribution function."}]},"NORMDIST":{"description":"Calculates the normal distribution for the supplied mean and standard deviation.","arguments":[{"name":"x","description":"The value at which to calculate the distribution."},{"name":"mean","description":"The arithmetic mean of the distribution."},{"name":"standard_dev","description":"The standard deviation of the distribution."},{"name":"cumulative","description":"A logical value that specifies the type of distribution to use, with TRUE being cumulative distribution function and FALSE being the probability mass function."}],"variadic":0,"category":"statistical","example":[{"formula":"NORMDIST(A2, A3, A4, TRUE)","description":"Calculates the normal distribution for the supplied mean and standard deviation."}]},"NORMINV":{"description":"Calculates the inverse of the normal cumulative distribution for the supplied mean and standard deviation.","arguments":[{"name":"x","description":"The value at which to calculate the distribution."},{"name":"mean","description":"The arithmetic mean of the distribution."},{"name":"standard_dev","description":"The standard deviation of the distribution."}],"variadic":0,"category":"statistical","example":[{"formula":"NORMINV(A2, A3, A4)","description":"Calculates the inverse of the normal cumulative distribution for the supplied mean and standard deviation."}]},"NORMSDIST":{"description":"Calculates the standard normal cumulative distribution function.","arguments":[{"name":"x","description":"The probability at which to calculate the distribution."}],"variadic":0,"category":"statistical","example":[{"formula":"NORMSDIST(-1.26)","description":"Calculates the standard normal cumulative distribution function."}]},"NORMSINV":{"description":"Calculates the inverse of the standard normal cumulative distribution function.","arguments":[{"name":"x","description":"The probability at which to calculate the distribution."}],"variadic":0,"category":"statistical","example":[{"formula":"NORMSINV(0.31444)","description":"Calculates the inverse of the standard normal cumulative distribution function."}]},"PEARSON":{"description":"Calculates the PEARSON product-moment correlation coefficient for two given sets of data.","arguments":[{"name":"array1","description":"A set of independent data."},{"name":"array2","description":"A set of dependent data."}],"variadic":0,"category":"statistical","example":[{"formula":"PEARSON(A2:A6, B2:B6)","description":"Returns the PEARSON product-moment correlation as result."}]},"PERCENTILE.EXC":{"description":"Returns the k-th percentile for a specified range of values and a specified k value.","arguments":[{"name":"array","description":"The range of values to calculate the k-th percentile."},{"name":"k","description":"The k value, which should be between 0 and 1 (exclusive)."}],"variadic":0,"category":"statistical","example":[{"formula":"PERCENTILE.EXC(A1:A5, 0.2)","description":"Returns the k-th percentile for the given data."}]},"PERCENTILE.INC":{"description":"Returns the k-th percentile for a specified range of values and a specified k value.","arguments":[{"name":"array","description":"The range of values to calculate the k-th percentile.\xa0"},{"name":"k","description":"The k value, which should be between 0 and 1 (inclusive)."}],"variadic":0,"category":"statistical","example":[{"formula":"PERCENTILE.INC(A2:A6, 1)","description":"Returns the k-th percentile for the given data."}]},"PERCENTILE":{"description":"Returns the k-th percentile for a specified range of values and a specified k value.","arguments":[{"name":"array","description":"The range of values to calculate the k-th percentile."},{"name":"k","description":"The k value, which should be between 0 and 1."}],"variadic":0,"category":"statistical","example":[{"formula":"PERCENTILE(A2:A6, 0.5)","description":"Returns the k-th percentile for the given data."}]},"PERCENTRANK.EXC":{"description":"Calculates the relative position of a value within a set of values, in the form of a percentage.","arguments":[{"name":"array","description":"The array of values to evaluate."},{"name":"x","description":"The value that you want to find the position of."},{"name":"significance","description":"The significant figures to be calculate.","required":false}],"variadic":0,"category":"statistical","example":[{"formula":"PERCENTRANK.EXC(A2:A9, 20, 4)","description":"Calculates the relative position of a value."}]},"PERCENTRANK.INC":{"description":"Calculates the relative position of a value within a set of values, in the form of a percentage.","arguments":[{"name":"array","description":"The array of values to evaluate."},{"name":"x","description":"The value that you want to find the position of."},{"name":"significance","description":"The significant figures to be calculate.","required":false}],"variadic":0,"category":"statistical","example":[{"formula":"PERCENTRANK.INC(A2:A9, 20, 4)","description":"Calculates the relative position of a value."}]},"PERCENTRANK":{"description":"Calculates the relative position of a value within a set of values, in the form of a percentage.","arguments":[{"name":"array","description":"The array of values to evaluate."},{"name":"x","description":"The value that you want to find the position of."},{"name":"significance","description":"The number that specifies the number of decimal points to round the percentage value to.","required":false}],"variadic":0,"category":"statistical","example":[{"formula":"PERCENTRANK(A2:A9, 20, 4)","description":"Calculates the relative position of a value."}]},"PERMUT":{"description":"Calculates the number of permutations from a specified number of objects from a given set of objects.","arguments":[{"name":"number","description":"The total number of objects."},{"name":"number_chosen","description":"The number of objects selected from the set."}],"variadic":0,"category":"statistical","example":[{"formula":"PERMUT(30, 5)","description":"Calculates the number of permutations from a specified number of objects from a given set of objects."}]},"PERMUTATIONA":{"description":"Calculates the number of permutations from a specified number of objects from a given set of objects.","arguments":[{"name":"number","description":"The total number of objects."},{"name":"number_chosen","description":"The number of objects selected from the set."}],"variadic":0,"category":"statistical","example":[{"formula":"ERMUTATIONA(30, 5)","description":"Calculates the number of permutations from a specified number of objects from a given set of objects."}]},"PHI":{"description":"Calculates the value of the density function for a standard normal distribution for a given value.","arguments":[{"name":"x","description":"The number for which to calculate the density of the standard normal distribution."}],"variadic":0,"category":"statistical","example":[{"formula":"PHI(12)","description":"Calculates the value of the density function for a standard normal distribution for a given value."}]},"POISSON.DIST":{"description":"Calculates the Poisson distribution.","arguments":[{"name":"x","description":"The number of events."},{"name":"mean","description":"The expected numeric value."},{"name":"cumulative","description":"A logical value that specifies the type of distribution to use, with TRUE being cumulative distribution function and FALSE being the probability mass function.","required":false}],"variadic":0,"category":"statistical","example":[{"formula":"POISSON.DIST(5, 10, TRUE)","description":"Calculates the Poisson distribution."}]},"POISSON":{"description":"Calculates the Poisson distribution.","arguments":[{"name":"x","description":"The number of events."},{"name":"mean","description":"The expected numeric value."},{"name":"cumulative","description":"A logical value that specifies the type of distribution to use, with TRUE being cumulative distribution function and FALSE being the probability mass function.","required":false}],"variadic":0,"category":"statistical","example":[{"formula":"POISSON(2, 3, TRUE)","description":"Calculates the Poisson distribution."},{"formula":"POISSON(2, 3, FALSE)","description":"Calculates the Poisson distribution."}]},"PROB":{"description":"Calculate the probability that the given set of values falls between two limits.","arguments":[{"name":"x_range","description":"An array of values that have associated probabilities."},{"name":"prob_range","description":"The array of probabilities corresponding to the values in x_range."},{"name":"lower_limit","description":"The lower bound of the array of values for which to calculate the probability."},{"name":"upper_limit","description":"The upper bound of the array of values for which to calculate the probability.","required":false}],"variadic":0,"category":"statistical","example":[{"formula":"PROB(A2:A5, B2:B5, 2, 8)","description":"Calculate the probability that the given set of values falls between two limits."}]},"QUARTILE.EXC":{"description":"Calculates the quartile of the given dataset, based on a percentile range of 0 to 1, exclusive.","arguments":[{"name":"array","description":"The set of data to calculate the quartile."},{"name":"quart","description":"The quartile value to return."}],"variadic":0,"category":"statistical","example":[{"formula":"QUARTILE.EXC(A2:A7, 1)","description":"Calculates the quartile of the given dataset."}]},"QUARTILE.INC":{"description":"Calculates the quartile of the given dataset, based on a percentile range of 0 to 1, inclusive.","arguments":[{"name":"array","description":"The set of data to calculate the quartile."},{"name":"quart","description":"The quartile value to return."}],"variadic":0,"category":"statistical","example":[{"formula":"QUARTILE.INC(A2:A10, 3)","description":"Calculates the quartile of the given dataset."}]},"QUARTILE":{"description":"Calculates the quartile of the given dataset.","arguments":[{"name":"array","description":"The set of data to calculate the quartile."},{"name":"quart","description":"The quartile value to return."}],"variadic":0,"category":"statistical","example":[{"formula":"QUARTILE(A2:A7, 2)","description":"Calculates the quartile of the given dataset."}]},"RANK.AVG":{"description":"Returns the statistical rank of a given value within a supplied set of values. If there are duplicate values in the set, the average rank is returned.","arguments":[{"name":"number","description":"The value whose rank you want to find."},{"name":"ref","description":"A set of values."},{"name":"order","description":"The value defines whether the order should be ascending or descending, where 0 is descending and 1 is ascending.","required":false}],"variadic":0,"category":"statistical","example":[{"formula":"RANK.AVG(A2,A2:A6,1)","description":"Returns the statistical rank of the given value within the supplied set of values."}]},"RANK.EQ":{"description":"Returns the statistical rank of a given value within a supplied set of values.","arguments":[{"name":"number","description":"The value whose rank you want to find."},{"name":"ref","description":"A set of values."},{"name":"order","description":"The value defines whether the order should be ascending or descending, where 0 is descending and 1 is ascending.","required":false}],"variadic":0,"category":"statistical","example":[{"formula":"RANK.EQ(A2,A2:A6,1)","description":"Returns the statistical rank of the given value within the supplied set of values."},{"formula":"RANK.EQ(A2,A2:A6)","description":"Returns the statistical rank of the given value within the supplied set of values."}]},"RANK":{"description":"Returns the statistical rank of a given value within a supplied set of values.","arguments":[{"name":"number","description":"The value whose rank you want to find."},{"name":"ref","description":"A set of values."},{"name":"order","description":"The value defines whether the order should be ascending or descending, where 0 is descending and 1 is ascending.","required":false}],"variadic":0,"category":"statistical","example":[{"formula":"RANK(A2,A2:A6,1)","description":"Returns the statistical rank of the given value within the supplied set of values."},{"formula":"RANK(A2,A2:A6,0)","description":"Returns the statistical rank of the given value within the supplied set of values."}]},"RSQ":{"description":"Calculates the square of the Pearson product moment correlation coefficient with given sets of data.","arguments":[{"name":"data_y","description":"The bounds or array of dependent dataset."},{"name":"data_x","description":"The bounds or array of independent dataset."}],"variadic":0,"category":"statistical","example":[{"formula":"RSQ(A2:A6,B2:B6)","description":"Calculates the square of the Pearson product moment correlation coefficient with the given sets of data."}]},"SKEW.P":{"description":"Calculates the skewness of a distrubtion of a specified set of values, based on a population.","arguments":[{"name":"number1","description":"The first number or range of data."},{"name":"number2","description":"Subsequent numbers or ranges of data.","required":false}],"variadic":1,"category":"statistical","example":[{"formula":"SKEW.P(A2:A10)","description":"Calculates the skewness of a distrubtion of the specified set of values, based on a population."}]},"SKEW":{"description":"Calculates the skewness of a distrubtion of a specified set of values.","arguments":[{"name":"number1","description":"The first number or range of data."},{"name":"number2","description":"Subsequent numbers or ranges of data.","required":false}],"variadic":1,"category":"statistical","example":[{"formula":"SKEW(A2:A10)","description":"Calculates the skewness of a distribution of the specified set of values."}]},"SLOPE":{"description":"Returns the slope of the linear regression line from data points in data_x and data_y.","arguments":[{"name":"data_y","description":"An array or range of dependent data points."},{"name":"data_x","description":"The set of independent data points."}],"variadic":0,"category":"statistical","example":[{"formula":"SLOPE(A2:A7,B2:B7)","description":"Returns the slope of the linear regression line."}]},"SMALL":{"description":"Returns the k-th smallest value within a set of numeric values.","arguments":[{"name":"array","description":"A range or array of numeric values."},{"name":"k","description":"The position in the array or range of data to return."}],"variadic":0,"category":"statistical","example":[{"formula":"SMALL(A2:A7,3)","description":"Returns the 3rd smallest value within the given set of numeric values."},{"formula":"SMALL(A2:A7,4)","description":"Returns the 4th smallest value within the given set of numeric values."}]},"STANDARDIZE":{"description":"Returns a normalized value of a distribution which is characterized by a specified mean value and standard deviation.","arguments":[{"name":"x","description":"The value to be normalized."},{"name":"mean","description":"The mean of the distribution."},{"name":"standard_dev","description":"The standard deviation of the distribution."}],"variadic":0,"category":"statistical","example":[{"formula":"STDEV(A2, A3, A4)","description":"Returns a normalized value with the given value of 56, a mean value of 55, and the standard deviation of 1.8."}]},"STDEV.P":{"description":"Calculates the standard deviation of a population based on the entire population.","arguments":[{"name":"number1","description":"The first number in the population."},{"name":"number2","description":"Subsequent number in the population.","required":false}],"variadic":1,"category":"statistical","example":[{"formula":"STDEV.P(A2:A11)","description":"Calculates the standard deviation of a population based on the entire population."}]},"STDEV.S":{"description":"Calculates the standard deviation of a given sample while ignoring logical values and text.","arguments":[{"name":"number1","description":"The first number in the population."},{"name":"number2","description":"Subsequent number in the population.","required":false}],"variadic":1,"category":"statistical","example":[{"formula":"STDEV.S(A2:A12)","description":"Calculates the standard deviation of a given sample while ignoring logical values and text."}]},"STDEV":{"description":"Calculates the standard deviation of a given sample.","arguments":[{"name":"number1","description":"The first number in the population."},{"name":"number2","description":"Subsequent number in the population.","required":false}],"variadic":1,"category":"statistical","example":[{"formula":"STDEV(A2:A11)","description":"Calculates the standard deviation of the given sample."}]},"STDEVA":{"description":"Calculates the standard deviation of a given sample.","arguments":[{"name":"value1","description":"The first number in the population."},{"name":"value2","description":"Subsequent number in the population.","required":false}],"variadic":1,"category":"statistical","example":[{"formula":"STDEVA(A2:A11)","description":"Calculates the standard deviation of a given sample."}]},"STDEVP":{"description":"Calculates the standard deviation of a population based on the entire population.","arguments":[{"name":"number1","description":"The first number in the population."},{"name":"number2","description":"Subsequent number in the population.","required":false}],"variadic":1,"category":"statistical","example":[{"formula":"STDEVP(A2:A11)","description":"Calculates the standard deviation of a population based on the entire population."}]},"STDEVPA":{"description":"Calculates the standard deviation of an entire population, including logical values and text.","arguments":[{"name":"value1","description":"The first number in the population."},{"name":"value2","description":"Subsequent number in the population.","required":false}],"variadic":1,"notes":[["Arguments can be the following: numbers; names, arrays, or references that contain numbers; text representations of numbers; or logical values, such as TRUE and FALSE, in a reference.","Text representations of numbers that you type directly into the list of arguments are counted.","Arguments that contain TRUE evaluate as 1; arguments that contain text or FALSE evaluate as 0 (zero)."]],"category":"statistical","example":[{"formula":"STDEVPA(A2:A11)","description":"Calculates the standard deviation of an entire population, including logical values and text."},{"formula":"STDEVPA(B2:B11)","description":"Calculates the standard deviation of an entire population, including logical values and text."}]},"STEYX":{"description":"Calculates the standard error of the regression.","arguments":[{"name":"data_y","description":"An array of the dependent values."},{"name":"data_x","description":"An array of the independent values."}],"variadic":0,"category":"statistical","example":[{"formula":"STEYX(A2:A7,B2:B7)","description":"Calculates the standard error of the regression."}]},"T.DIST.2T":{"description":"Calculates the two-tailed student\'s T distribution.","arguments":[{"name":"x","description":"The value at which to evaluate the distribution."},{"name":"deg_freedom","description":"The number of degrees of freedom."}],"variadic":0,"category":"statistical","example":[{"formula":"T.DIST.2T(A2,A3)","description":"Calculates the two-tailed student\'s T distribution."}]},"T.DIST.RT":{"description":"Calculates the right-tailed student\'s T distribution.","arguments":[{"name":"x","description":"The value at which to evaluate the distribution."},{"name":"deg_freedom","description":"The number of degrees of freedom."}],"variadic":0,"category":"statistical","example":[{"formula":"T.DIST.RT(A2, A3)","description":"Calculates the right-tailed student\'s T distribution."}]},"T.DIST":{"description":"Calculates the one-tailed Student\'s T distribution.","arguments":[{"name":"x","description":"The value at which to evaluate the distribution."},{"name":"deg_freedom","description":"The number of degrees of freedom."},{"name":"cumulative","description":"A logical value that the type of distribution, where TRUE equals cumulative function and FALSE equals probability density function."}],"variadic":0,"category":"statistical","example":[{"formula":"T.DIST(48, 2, TRUE)","description":"Calculates the one-tailed Student\'s T distribution."},{"formula":"T.DIST(50, 1, FALSE)","description":"Calculates the one-tailed Student\'s T distribution."}]},"T.INV.2T":{"description":"Calculates the inverse of the two-tailed Student\'s T distribution.","arguments":[{"name":"probability","description":"The probability for which to evaluate the inverse of the left-tailed Student\'s T distribution."},{"name":"deg_freedom","description":"The number of degrees of freedom."}],"variadic":0,"category":"statistical","example":[{"formula":"T.INV.2T(A2, A3)","description":"Calculates the inverse of the two-tailed Student\'s T distribution."}]},"T.INV":{"description":"Calculates the left-tail inverse of the Student\'s T distribution.","arguments":[{"name":"probability","description":"The probability for which to evaluate the inverse of the left-tailed Student\'s T distribution."},{"name":"deg_freedom","description":"The number of degrees of freedom."}],"variadic":0,"category":"statistical","example":[{"formula":"T.INV(A2, A3)","description":"Calculates the left-tail inverse of the Student\'s T distribution."}]},"T.TEST":{"description":"Calculates the probability associated with the Student\'s T TEST, which is commonly used to test if two groups of data are likely to come from the same underlying populations with the same mean.","arguments":[{"name":"array1","description":"The first set of data."},{"name":"array2","description":"The second set of data."},{"name":"tails","description":"The number of tails for the distribution."},{"name":"type","description":"The type of T test. 1 is the paired test. 2 is the two-sample equal variance test. 3 is the two-sample unequal variance test."}],"variadic":0,"category":"statistical","example":[{"formula":"T.TEST(A2:A9, B2:B9, 2, 1)","description":"Calculates the probability associated with the Student\'s T TEST."},{"formula":"T.TEST(A2:A9, B2:B9, 2, 2)","description":"Calculates the probability associated with the Student\'s T TEST."}]},"TDIST":{"description":"Calculates the Student\'s T distribution.","arguments":[{"name":"x","description":"The value at which to evaluate the distribution."},{"name":"deg_freedom","description":"The number of degrees of freedom."},{"name":"tails","description":"The number of tails to return."}],"variadic":0,"category":"statistical","example":[{"formula":"TDIST(A2, A3, 1)","description":"Calculates the Student\'s T distribution and returns the one-tailed distribution."},{"formula":"TDIST(A2, A3,2)","description":"Calculates the Student\'s T distribution and returns the two-tailed distribution."}]},"TINV":{"description":"Calculates the inverse of the two-tailed Student\'s T distribution.","arguments":[{"name":"probability","description":"The probability for which to evaluate the two-tailed Student\'s T distribution."},{"name":"deg_freedom","description":"The number of degrees of freedom."}],"variadic":0,"category":"statistical","example":[{"formula":"TINV(A2, A3)","description":"Calculates the inverse of the two-tailed Student\'s T distribution."}]},"TRIMMEAN":{"description":"Returns the trimmed mean of a specified set of data.","arguments":[{"name":"array","description":"A set of values to trim."},{"name":"percent","description":"The percentage of data points to exclude from the data."}],"variadic":0,"category":"statistical","example":[{"formula":"TRIMMEAN(A2:A11, 0.5)","description":"Returns the trimmed mean of the specified set of data and excluding 50% of data points."}]},"TTEST":{"description":"Calculates the probability associated with the Student\'s T TEST, which is commonly used to test if two groups of data are likely to come from the same underlying populations with the same mean.","arguments":[{"name":"array1","description":"The first set of data."},{"name":"array2","description":"The second set of data."},{"name":"tails","description":"The number of tails for the distribution."},{"name":"type","description":"The type of T test. 1 is the paired test. 2 is the two-sample equal variance test. 3 is the two-sample unequal variance test."}],"variadic":0,"category":"statistical","example":[{"formula":"TTEST(A2:A9, B2:B9, 2, 1)","description":"Calculates the probability associated with the Student\'s T TEST."},{"formula":"TTEST(A2:A9, B2:B9, 2, 2)","description":"Calculates the probability associated with the Student\'s T TEST."}]},"VAR.P":{"description":"Calculates the variance based on the entire population.","arguments":[{"name":"number1","description":"The first value or reference."},{"name":"number2","description":"Subsequent values.","required":false}],"variadic":1,"category":"statistical","example":[{"formula":"VAR.P(A2:A9)","description":"Calculates the variance based on the entire population."}]},"VAR.S":{"description":"Calculates the variance based on a sample of data.","arguments":[{"name":"number1","description":"The first value or reference."},{"name":"number2","description":"Subsequent values.","required":false}],"variadic":1,"category":"statistical","example":[{"formula":"VAR.S(A1:A10)","description":"Calculates the variance based on a sample of data."}]},"VAR":{"description":"Calculates the variance based on a sample of data. Logical values and texts are not counted.","arguments":[{"name":"number1","description":"The first value or reference."},{"name":"number2","description":"Subsequent values.","required":false}],"variadic":1,"category":"statistical","example":[{"formula":"VAR(A2:A11)","description":"Calculates the variance based on a sample of data."}]},"VARA":{"description":"Calculates the variance based on a sample of data. Logical values and texts are counted.","arguments":[{"name":"value1","description":"The first value or reference."},{"name":"value2","description":"Subsequent values.","required":false}],"variadic":1,"category":"statistical","example":[{"formula":"VARA(A2:A9)","description":"Calculates the variance based on a sample."}]},"VARP":{"description":"Calculates the variance based on the entire population. Logical values  and texts are not counted.","arguments":[{"name":"number1","description":"The first value or reference."},{"name":"number2","description":"Subsequent values or references.","required":false}],"variadic":1,"category":"statistical","example":[{"formula":"VARP(A2:A6)","description":"Calculates the variance based on the entire population."}]},"VARPA":{"description":"Calculates the variance based on the entire population. Logical values  and texts are counted.","arguments":[{"name":"value1","description":"The first value or reference."},{"name":"value2","description":"Subsequent values or references.","required":false}],"variadic":1,"category":"statistical","example":[{"formula":"VARPA(A2:A10)","description":"Calculates the variance based on the entire population."}]},"WEIBULL.DIST":{"description":"Calculates the Weibull Probability Density function or the Weibull Cumulative Distribution function for a supplied set of parameters.","arguments":[{"name":"x","description":"The value to calculate, which must be greater than or equal to 0."},{"name":"alpha","description":"A parameter to the distribution."},{"name":"beta","description":"A parameter to the distribution."},{"name":"cumulative","description":"A logical argument that decides the form of distribution. A logical value that specifies the type of distribution to use, with TRUE being cumulative distribution function and FALSE being the probability mass function."}],"variadic":0,"category":"statistical","example":[{"formula":"WEIBULL.DIST(A2, A3, A4, TRUE)","description":"Calculates the Weibull Probability Density function or the Weibull Cumulative Distribution function for the supplied set of parameters."},{"formula":"WEIBULL.DIST(A2, A3, A4, FALSE)","description":"Calculates the Weibull Probability Density function or the Weibull Cumulative Distribution function for the supplied set of parameters."}]},"WEIBULL":{"description":"Calculates the Weibull Probability Density function or the Weibull Cumulative Distribution function for a supplied set of parameters.","arguments":[{"name":"x","description":"The value to calculate, which must be greater than or equal to 0."},{"name":"alpha","description":"A parameter to the distribution."},{"name":"beta","description":"A parameter to the distribution."},{"name":"cumulative","description":"A logical argument that decides the form of distribution. A logical value that specifies the type of distribution to use, with TRUE being cumulative distribution function and FALSE being the probability mass function."}],"variadic":0,"category":"statistical","example":[{"formula":"WEIBULL(A2, A3, A4, TRUE)","description":"Calculates the Weibull Probability Density function or the Weibull Cumulative Distribution function for the supplied set of parameters."},{"formula":"WEIBULL(A2, A3, A4, FALSE)","description":"Calculates the Weibull Probability Density function or the Weibull Cumulative Distribution function for the supplied set of parameters."}]},"Z.TEST":{"description":"Returns the one-tailed probability value of a z-test for a supplied set of values.","arguments":[{"name":"array","description":"The set of values to test against the hypothesized sample mean."},{"name":"x","description":"The assumed sample mean."},{"name":"sigma","description":"The population standard deviation.","required":false}],"variadic":0,"category":"statistical","example":[{"formula":"Z.TEST(A2:A8,30)","description":"Returns the one-tailed probability value of a z-test."}]},"ZTEST":{"description":"Returns the one-tailed probability value of a z-test for a supplied set of values.","arguments":[{"name":"array","description":"The set of values to test against the hypothesized sample mean."},{"name":"x","description":"The assumed sample mean."},{"name":"sigma","description":"The population standard deviation.","required":false}],"variadic":0,"category":"statistical","example":[{"formula":"ZTEST(A2:A7,6)","description":"Returns the one-tailed probability value of a z-test."}]},"ARABIC":{"description":"Converts Roman numerals into Arabic numerals.","arguments":[{"name":"text","description":"Roman numerals you wish to convert."}],"variadic":0,"category":"text_and_data","example":[{"formula":"ARABIC(A3)","description":"Converts \\"I\\" into Arabic numeral."},{"formula":"ARABIC(A4)","description":"Converts \\"II\\" into Arabic numeral."},{"formula":"ARABIC(A5)","description":"Converts \\"IV\\" into Arabic numeral."},{"formula":"ARABIC(A6)","description":"Converts \\"C\\" into Arabic numeral."},{"formula":"ARABIC(A7)","description":"Converts \\"M\\" into Arabic numeral."}]},"CHAR":{"description":"Converts the number to code according to ASCII encoding.","arguments":[{"name":"number","description":"Number to convert."}],"variadic":0,"category":"text_and_data","example":[{"formula":"CHAR(64)","description":"Converts the number into ASCII encoding."},{"formula":"CHAR(9)","description":"Converts the number into ASCII encoding."}]},"CLEAN":{"description":"Removes the non-printable characters from the given text.","arguments":[{"name":"text","description":"The text string that you want to remove non-printable characters from."}],"variadic":0,"category":"text_and_data","example":[{"formula":"CLEAN(A2)","description":"Removes the non-printable characters from the given text."}]},"CODE":{"description":"Converts the first letter of the text into an ASCII value.","arguments":[{"name":"text","description":"Text to convert."}],"variadic":0,"category":"text_and_data","example":[{"formula":"CODE(A1)","description":"Converts \\"A\\" into an ASCII value."},{"formula":"CODE(A2)","description":"Converts \\"M\\" into an ASCII value."}]},"CONCAT":{"description":"Joins the given values and texts into one string.","arguments":[{"name":"text1","description":"Text item to concatenate. Each item can be a string or an array of strings, such as a range of cells."},{"name":"text2","description":"Additional text item to concatenate. Each item can be a string or an array of strings.","required":false}],"variadic":1,"notes":["If an argument includes a range of cells, the cells will be joined together first. Then, the results of the different arguments will be joined together."],"min_version":"3.5","category":"text_and_data","example":[{"formula":"CONCAT(A1:D1)","description":"Joins the texts in A1:D1."},{"formula":"CONCAT(A2:B3, C2:C3)","description":"Joins the texts in A2:B3 and C2:C3."},{"formula":"CONCAT(A4,\\": \\",TEXT(B4,\\"ddmmyyyy\\"))","description":"Joins the texts in A4, colon, space, and B4."}]},"CONCATENATE":{"description":"Returns the result by linking different texts into one.","arguments":[{"name":"text1","description":"Text to concatenate."},{"name":"text2","description":"Text to concatenate.","required":false}],"variadic":1,"category":"text_and_data","example":[{"formula":"CONCATENATE(A2,B2)","description":"Returns the result of linking the texts in A2 and B2."},{"formula":"CONCATENATE(A3,\\" \\",B3)","description":"Returns the result of linking the texts in A3, space, and B3."},{"formula":"CONCATENATE(A4,\\": \\",TEXT(B4,\\"ddmmyyyy\\"))","description":"Returns the result of linking the texts in A4, colon, space, and B4."}]},"DAYS":{"description":"Calculates the number of days between two given dates.","arguments":[{"name":"end_date","description":"The last date to include in the calculation."},{"name":"start_date","description":"The first date to include in the calculation."}],"variadic":0,"category":"text_and_data","example":[{"formula":"DAYS(\\"2016/2/4\\", \\"2015/5/23\\")","description":"Returns the number of days between the two given dates (inclusive)."}]},"DOLLAR":{"description":"Converts a number to text in currency and decimal format.","arguments":[{"name":"number","description":"Number to convert."},{"name":"decimals","description":"The number of decimal points to display. The default is 2.","required":false}],"variadic":0,"category":"text_and_data","example":[{"formula":"DOLLAR(A2,1)","description":"Converts the number to text in currency and decimal format."},{"formula":"DOLLAR(A3)","description":"Converts the number to text in currency and decimal format."}]},"EXACT":{"description":"Compares two different groups of text or string to check if two of them are exactly the same and return TRUE if they are and FALSE if they are not.","arguments":[{"name":"text1","description":"First group of text or string to compare."},{"name":"text2","description":"Second group of text or string to compare."}],"variadic":0,"category":"text_and_data","example":[{"formula":"EXACT(A2,B2)","description":"Compares the text in A2 and B2."},{"formula":"EXACT(A3,\\"router\\")","description":"Compares the text in A3 and \\"router\\"."},{"formula":"EXACT(A4,B4)","description":"Compares the text in A4 and B4."}]},"FIND":{"description":"Returns the first position of a text string within another text string, case sensitive.","arguments":[{"name":"find_text","description":"The text that you want to find."},{"name":"within_text","description":"The text that contains find_text. It can be a cell reference."},{"name":"start_num","description":"The position in within_text at which the search should start. The first character in within_text is 1. If start_num is left blank, the FIND function will search from the first character in within_text.","required":false}],"variadic":0,"category":"text_and_data","example":[{"formula":"FIND(\\"N\\", A1)","description":"Position of the first \\"N\\" in the text string in cell A1."},{"formula":"FIND(\\"n\\", A1)","description":"Position of the first \\"n\\" in the text string in cell A1."},{"formula":"FIND(\\"o\\", A1, 1)","description":"Position of the first \\"o\\" in cell A1, starting with the first character (\\"S\\")."},{"formula":"FIND(\\"o\\", A1, 5)","description":"Position of the first \\"o\\" in cell A1, starting with the fifth character (\\"l\\")."},{"formula":"FIND(\\"logy\\", A1)","description":"Position at which the first character in \\"logy\\" occurs in cell A1."},{"formula":"MID(B1, 1, FIND(\\"M\\", B1, 1) -1)","description":"Extracts text between the first character (inclusive) and the first position of \\"M\\" (exclusive) in cell B1."},{"formula":"MID(B1, FIND(\\"D\\", B1, 1), FIND(\\"r\\", B1, 1) -1)","description":"Extracts text from the first position of \\"D\\" (inclusive) to the first position of \\"r\\" (inclusive) in cell B1."}]},"FIXED":{"description":"Rounds a number to a specified decimal point.","arguments":[{"name":"number","description":"The number to round."},{"name":"decimals","description":"The number of demical points to apply.","required":false},{"name":"no_commas","description":"TRUE if no commas and FALSE if yes.","required":false}],"variadic":0,"category":"text_and_data","example":[{"formula":"FIXED(A1,1,TRUE)","description":"Returns the value with specified decimal point."},{"formula":"FIXED(A2,2,FALSE)","description":"Returns the value with specified decimal point and a comma."}]},"ISOWEEKNUM":{"description":"Returns the ISO week number of a given date.","arguments":[{"name":"date","description":"The date that you want the ISO week number of."}],"variadic":0,"category":"text_and_data","example":[{"formula":"ISOWEEKNUM(\\"2016/3/14\\")","description":"ISO week number of the given date, with Monday being the first day of a week. This date occurs in the 11th week of 2016."}]},"LEFT":{"description":"Returns the number of characters from the left of the given text or string.","arguments":[{"name":"text","description":"The text or string to extract from."},{"name":"num_chars","description":"The number of characters to extract.","required":false}],"variadic":0,"category":"text_and_data","example":[{"formula":"LEFT(A1,3)","description":"Returns the three numbers from the left."},{"formula":"LEFT(A2,6)","description":"Returns the six characters from the left."}]},"LEN":{"description":"Returns the number of characters in a text string, spaces included.","arguments":[{"name":"text","description":"The text whose length will be returned. It can be in the form of a text string or a cell reference."}],"variadic":0,"category":"text_and_data","example":[{"formula":"LEN(\\"DS716+\\")","description":"Returns the number of characters in the text string \\"DS716+\\"."},{"formula":"LEN(B1)","description":"Returns the number of characters in the text string in cell B1."}]},"LOWER":{"description":"Converts the text into lowercase.","arguments":[{"name":"text","description":"The text to convert."}],"variadic":0,"category":"text_and_data","example":[{"formula":"LOWER(A1)","description":"Converts the text into lowercase."},{"formula":"LOWER(A2)","description":"Converts the text into lowercase."},{"formula":"LOWER(A3)","description":"Converts the text into lowercase."}]},"MID":{"description":"Returns a specific substring from a string.","arguments":[{"name":"text","description":"The string to extract from."},{"name":"start_num","description":"The position to start extracting from."},{"name":"num_chars","description":"The number of text to extract."}],"variadic":0,"category":"text_and_data","example":[{"formula":"MID(A1,\\"3\\",\\"5\\")","description":"Returns a specific substring from a string."},{"formula":"MID(A2,\\"2\\",\\"3\\")","description":"Returns a specific substring from a string."}]},"PROPER":{"description":"Converts the first letter of the text to uppercase and the rest to lowercase.","arguments":[{"name":"text","description":"The text to capitalize."}],"variadic":0,"category":"text_and_data","example":[{"formula":"PROPER(A1)","description":"Converts the first letter of \\"office\\" to uppercase and the rest to lowercase."},{"formula":"PROPER(A2)","description":"Converts the first letter of \\"back-Up\\" to uppercase and the rest to lowercase."},{"formula":"PROPER(A3)","description":"Converts the first letter of \\"synchronization\\" to uppercase and the rest to lowercase."}]},"REPLACE":{"description":"Replaces old text in a text string with new text.","arguments":[{"name":"old_text","description":"The string or text to replace."},{"name":"start_num","description":"The character to start with."},{"name":"num_chars","description":"The length of the string or text to replace."},{"name":"new_text","description":"The new string or text to replace the old one."}],"variadic":0,"category":"text_and_data","example":[{"formula":"REPLACE(A1,2,3,\\"abc\\")","description":"Replaces \\"234\\" with \\"abc\\"."},{"formula":"REPLACE(A2,5,1,\\"123\\")","description":"Replaces \\"E\\" with \\"123\\"."}]},"REPT":{"description":"Repeats the specific content for the specified number of times.","arguments":[{"name":"text","description":"Text to repeat."},{"name":"number_times","description":"Number of times to repeat the text."}],"variadic":0,"category":"text_and_data","example":[{"formula":"REPT(A1,3)","description":"Repeats \\"*\\" for three times."},{"formula":"REPT(A2,5)","description":"Repeats \\"AA\\" for five times."},{"formula":"REPT(A3,4)","description":"Repeats \\"123\\" for four times."}]},"RIGHT":{"description":"Returns the number of characters from the right of the given text or string.","arguments":[{"name":"text","description":"The text or string to extract from."},{"name":"num_chars","description":"The number of characters to extract.","required":false}],"variadic":0,"category":"text_and_data","example":[{"formula":"RIGHT(A1,4)","description":"Returns the four numbers from the right."},{"formula":"RIGHT(A2,6)","description":"Returns the six characters from the right."}]},"SEARCH":{"description":"Searches for the specific character or text and returns its position.","arguments":[{"name":"find_text","description":"The string or text to search."},{"name":"within_text","description":"The text to search for in find_text."},{"name":"start_num","description":"Optional. The number of characters to start searching for find_text in within_text.","required":false}],"variadic":0,"category":"text_and_data","example":[{"formula":"SEARCH(\\"n\\",\\"prince\\")","description":"Returns 4 since \\"n\\" is the fourth character in the word \\"prince\\"."}]},"SUBSTITUTE":{"description":"Substitutes new text for old text in a text string.","arguments":[{"name":"text","description":"The original text string or the cell that contains the text to be replaced."},{"name":"old_text","description":"The old text to be replaced."},{"name":"new_text","description":"The new text that you want to use."},{"name":"instance_num","description":"Specifies which occurrence of the old text will be replaced. If left blank, all occurrences of the old text within the text argument will be replaced by the new text.","required":false}],"variadic":0,"category":"text_and_data","example":[{"formula":"SUBSTITUTE(A1, \\"1\\", \\"3\\", 2)","description":"Changes the second instance of \\"1\\" in cell A1 into \\"3\\"."},{"formula":"SUBSTITUTE(B1, \\"Synology Router Manager\\", \\"SRM\\")","description":"Changes \\"Synology Router Manager\\" in cell B1 into \\"SRM\\"."}]},"T":{"description":"Returns the supplied text if the supplied test value is text. Otherwise, the function returns an empty text string.","arguments":[{"name":"value","description":"The value you want to test."}],"variadic":0,"category":"text_and_data","example":[{"formula":"T(A2)","description":"Returns the supplied text if the supplied value is text."},{"formula":"T(A3)","description":"Returns the supplied text if the supplied value is text."}]},"TEXT":{"description":"Converts value to text in a specified format.","arguments":[{"name":"value","description":"The value to convert."},{"name":"format_text","description":"The format to apply."}],"variadic":0,"category":"text_and_data","example":[{"formula":"TEXT(A2,\\"0.00\\")","description":"Returns the result in the specified format."},{"formula":"TEXT(1234.5678,\\"$#,##0.00\\")","description":"Returns the result in the specified format."},{"formula":"TEXT(TODAY(),\\"mm-dd-yyyy\\")","description":"Returns the date in the specified format."}]},"TRIM":{"description":"Removes extra spaces from text and keeps one space between words.","arguments":[{"name":"text","description":"Text from which to remove spaces."}],"variadic":0,"category":"text_and_data","example":[{"formula":"TRIM(\\"Synology   NAS \\")","description":"Removes extra spaces from text."},{"formula":"TRIM(\\"Brook  lyn,   NY\\")","description":"Removes extra spaces from text."}]},"UNICHAR":{"description":"Converts a number into a character based on ASCII encoding.","arguments":[{"name":"number","description":"The number to you want to convert into a character."}],"variadic":0,"category":"text_and_data","example":[{"formula":"UNICHAR(73)","description":"Converts the number \\"73\\" based on ASCII encoding."},{"formula":"UNICHAR(64)","description":"Converts the number \\"64\\" based on ASCII encoding."}]},"UNICODE":{"description":"Converts the first letter of the text in the cell, based on ASCII encoding.","arguments":[{"name":"text","description":"The text to convert."}],"variadic":0,"category":"text_and_data","example":[{"formula":"UNICODE(A1)","description":"Converts \\"W\\", the first letter of the word \\"Water\\", into a value based on ASCII encoding."},{"formula":"UNICODE(A2)","description":"Converts \\"M\\", the first letter of the word \\"Monday\\", into a value based on ASCII encoding."}]},"UPPER":{"description":"Converts the text into UPPERCASE.","arguments":[{"name":"text","description":"The text to convert."}],"variadic":0,"category":"text_and_data","example":[{"formula":"UPPER(A1)","description":"Converts the text into uppercase."},{"formula":"UPPER(A2)","description":"Converts the text into uppercase."},{"formula":"UPPER(A3)","description":"Converts the text into uppercase."}]},"VALUE":{"description":"Converts text that contains currency, date, or other formats into a numeric value. Usually the spreadsheet converts text into numeric values automatically.","arguments":[{"name":"text","description":"The text to convert into a numeric value."}],"variadic":0,"category":"text_and_data","example":[{"formula":"VALUE(\\"5,000\\")","description":"Converts the text into a value."}]}}',ej="string"==typeof eZ?JSON.parse(eZ):eZ;ej.IFERROR.arguments[1].required=!1;let eq={};function eK(e,t){let i=ej[e];if(!i)return!0;let n=eq[e]??=function(e,t,i){let n=t.length-i,o=t.filter(e=>!1!==e.required).length,r=i>0?1/0:t.length;return"ACCRINT"===e?r=8:("INDEX"===e||"FDIST"===e)&&(r=4),{least:o,most:r,repeatableCount:i,nonRepeatableCount:n}}(e,i.arguments,i.variadic);return t.length>=n.least&&t.length<=n.most&&(0===n.repeatableCount||t.slice(n.nonRepeatableCount).length%n.repeatableCount==0)}var eX=i(44431),eQ=i(27796),e$=1/0,eJ=i(38147);function e0(){var e;return e=e1(arguments),(null==e?0:e.length)?(0,eQ.Z)(e,e$):[]}function e1(e){let t;return null!=e&&(t=Array.prototype.slice.call(e,0)),(void 0===t||0===t.length)&&(t=[e]),t}function e2(e){return+e.toPrecision(15)}function e3(e){if(!0===(e=e??!1)||!1===e||e instanceof Error)return e;if("number"==typeof e)return 0!==e;if("string"==typeof e){let t=e.toUpperCase();if("TRUE"===t)return!0;if("FALSE"===t)return!1}return eX.value}function e4(e){if(isNaN(e))return eX.value;let t=parseFloat(e,10);return Number.isNaN(t)?eX.value:t}function e5(e){return"number"==typeof e?e:e&&"string"==typeof e?"%"===e[e.length-1]?(e=e4(e.slice(0,e.length-1)))!==eX.value?.01*e:eX.value:e4(e):eX.value}function e6(e){let t;if(!e||0===(t=e.length))return eX.value;for(let i=0;i<t;i++){let t=e5(e[i]);if(ti(t))return t;e[i]=t}return e}function e8(e){let t=e0(e).map(e5);return t.some(e=>"number"!=typeof e)?eX.value:t.some(e=>e<0)?eX.num:(t.forEach((e,i)=>{t[i]=Math.floor(t[i])}),t)}function e7(e){if(""===e||!1===e||void 0==e)return 0;if(!0===e)return 1;if("string"==typeof e){let t=te(this,e);if(!ti(t))return(0,eJ.qC)(t)}return e5(e)}function e9(e){let t=e7.call(this,e);return ti(t)?t:Math.floor(t)}function te(e,t){if("number"==typeof t)return(0,eJ.vB)(t);if("string"==typeof t){let i=e.getLocale().getDateParser().parse(t);return i?i.v:eX.value}return eX.value}function tt(e,t){for(let i=0,n=t.length;i<n;i++){let n=te(e,t[i]);if(ti(n))return n;t[i]=n}return t}function ti(e){return e===eX.value}function tn(){return Array.prototype.some.call(arguments,ti)}function to(e){let t=[];for(let i=0,n=e.length;i<n;i++){let n=e[i],o=0;if("number"==typeof n)o=n;else if(!0===n)o=1;else if(!1===n)o=0;else if("string"==typeof n){let e=e5(n);o=ti(e)?0:e}t[i]=o}return t}function tr(e){return"string"==typeof e?e:(0,S.jn)(e)?e?"TRUE":"FALSE":"number"==typeof e&&isFinite(e)?e2(e).toString():""}function ta(e){return(0,S.jn)(e)?eX.value:tr(e)}function ts(e){return Array.isArray(e)?Array.isArray(e[0])?e:[e]:[[e]]}function tl(e){return!!e?.repeat}function tc(e){let t=e7.call(this,e);return t===eX.value?e:t}function td(e){return function t(i){return null==i?i:Array.isArray(i)?i.map(e=>t.call(this,e)):e.call(this,i)}}function tu(e){return{repeat:!0,converter:e}}let th=[],tp=[null,tu(null)],tf=[null,tu(null)],tg=[null,null,tu(null),tu(null)],tm=[td(ta),tu(td(ta))],tv=[null,tu(null)];function tb(e,t){return Array.from({length:t+1},(t,i)=>Array(i).fill(e))}let ty=tb(e7,6),tw=tb(e9,4),t_=tb(tr,2),tx=tb(ta,2),tS=tb(null,2),tC=[e7,e9],tk=[e7,e7,e9],tI=[e7,e9,e9],tA=[e7,e9,e9,e3],tT=[e9,null],tE=[e9,e9,e7],tR=[e9,e7,e7],tD=[e7,e7,e3],tO=[e7,e7,e7,e3],tM=[e7,null,e7],tN=[e7,null,null],tP=[null,e7],tL=[null,null,e7],tB=[null,e7,e9],tF=[null,e9],tV=[null,null,e9,e9],tz=[tr,e9],tH=[tr,tr,e9],tW=ty[1],tY=tS[2],tU=[null,e9],tG=[td(tc),td(tc)],tZ=[e9,e9,e7,e3],tj=[e9,e9,null],tq=[e9,e9,null,null],tK={ABS:ty[1],ADDRESS:[e7,e7,e7,e3,tr],ACCRINT:[e9,e9,e9,e7,e7,e7,e7,null],ACOS:tW,ACOSH:tW,ACOT:tW,ACOTH:tW,AND:tv,ARABIC:t_[1],ASIN:tW,ASINH:tW,ATAN:tW,ATAN2:ty[2],ATANH:tW,AVEDEV:tp,AVERAGE:tp,AVERAGEA:tp,AVERAGEIF:[null,null,null],AVERAGEIFS:[null,...tg],BASE:tw[3],BESSELI:tC,BESSELJ:tC,BESSELK:tC,BESSELY:tC,"BETA.DIST":[e7,e7,e7,e3,e7,e7],"BETA.INV":ty[5],BETADIST:ty[5],BETAINV:ty[5],BIN2DEC:tS[1],BIN2HEX:tU,BIN2OCT:tU,"BINOM.DIST":tZ,"BINOM.INV":tR,BINOMDIST:tZ,BITAND:ty[2],BITLSHIFT:tC,BITOR:ty[2],BITRSHIFT:tC,BITXOR:ty[2],CEILING:ty[2],"CEILING.MATH":ty[3],"CEILING.PRECISE":ty[2],CHAR:tw[1],CHIDIST:tC,CHIINV:tC,"CHISQ.DIST":[e7,e9,e3],"CHISQ.DIST.RT":tC,"CHISQ.INV":tC,"CHISQ.INV.RT":tC,"CHISQ.TEST":tG,CHITEST:tG,CHOOSE:[e9,null,tu(null)],CLEAN:t_[1],CODE:t_[1],COLUMN:tS[1],COLUMNS:tS[1],COMBIN:tw[2],COMBINA:tw[2],COMPLEX:[e7,e7,null],CONCAT:[td(tr),tu(td(tr))],CONCATENATE:[tr,tu(tr)],CONFIDENCE:tk,"CONFIDENCE.NORM":tk,"CONFIDENCE.T":tk,CORREL:tY,COS:tW,COSH:tW,COT:tW,COTH:tW,COUNT:tf,COUNTA:tf,COUNTBLANK:tS[1],COUNTIF:tS[2],COUNTIFS:tg,COVAR:tY,"COVARIANCE.P":tY,"COVARIANCE.S":tY,CRITBINOM:tR,CSC:tW,CSCH:tW,CUMIPMT:ty[6],CUMPRINC:ty[6],DATE:tw[3],DATEDIF:[e9,e9,tr],DATEVALUE:tS[1],DAY:tw[1],DAYS:tw[2],DAYS360:[e9,e9,e3],DB:[e7,e7,e7,e7,e9],DDB:ty[5],DEC2BIN:tU,DEC2HEX:tU,DEC2OCT:tU,DECIMAL:tz,DEGREES:ty[1],DELTA:ty[2],DEVSQ:tp,DOLLAR:tC,DOLLARDE:tC,DOLLARFR:tC,EDATE:tC,EFFECT:tC,EOMONTH:tC,ERF:ty[2],"ERF.PRECISE":ty[1],ERFC:ty[1],"ERFC.PRECISE":ty[1],"ERROR.TYPE":tS[1],EVEN:ty[1],EXACT:t_[2],EXP:ty[1],"EXPON.DIST":tD,EXPONDIST:tD,FALSE:th,"F.DIST":tA,"F.DIST.RT":tI,"F.INV":tI,"F.INV.RT":tI,"F.TEST":tY,FACT:tw[1],FACTDOUBLE:tw[1],FDIST:tA,FILTER:[null,null,null],FIND:tH,FINV:tI,FISHER:ty[1],FISHERINV:ty[1],FIXED:tD,FLOOR:ty[2],"FLOOR.MATH":ty[3],"FLOOR.PRECISE":ty[2],FORECAST:tN,FTEST:tY,FV:ty[5],FVSCHEDULE:[e7,null],GAMMA:ty[1],"GAMMA.DIST":tO,"GAMMA.INV":ty[3],GAMMADIST:tO,GAMMAINV:ty[3],GAMMALN:ty[1],"GAMMALN.PRECISE":ty[1],GAUSS:ty[1],GCD:tp,GEOMEAN:tp,GESTEP:ty[2],HARMEAN:tp,HEX2BIN:tU,HEX2DEC:tS[1],HEX2OCT:tU,HLOOKUP:[null,null,e9,e3],HOUR:ty[1],"HYPGEOM.DIST":[e9,e9,e9,e9,e3],HYPGEOMDIST:tw[4],IF:[e3,null,null],IFERROR:tS[2],IFNA:tS[2],IFS:[e3,null,tu(e3),tu(null)],IMABS:tx[1],IMAGINARY:tx[1],IMARGUMENT:tx[1],IMCONJUGATE:tx[1],IMCOS:tx[1],IMCOSH:tx[1],IMCOT:tx[1],IMCSC:tx[1],IMCSCH:tx[1],IMDIV:tx[2],IMEXP:tx[1],IMLN:tx[1],IMLOG10:tx[1],IMLOG2:tx[1],IMPOWER:[ta,e7],IMPRODUCT:tm,IMREAL:tx[1],IMSEC:tx[1],IMSECH:tx[1],IMSIN:tx[1],IMSINH:tx[1],IMSQRT:tx[1],IMSUB:tx[2],IMSUM:tm,IMTAN:tx[1],INDEX:[null,e9,e9,e9],INDIRECT:[tr,e3],INT:ty[1],INTERCEPT:tY,IPMT:ty[6],IRR:tP,ISBLANK:tS[1],ISDATE:tS[1],ISERR:tS[1],ISERROR:tS[1],ISEVEN:tS[1],ISLOGICAL:tS[1],ISNA:tS[1],ISODD:tS[1],ISNONTEXT:tS[1],ISNUMBER:tS[1],"ISO.CEILING":ty[2],ISOWEEKNUM:tw[1],ISPMT:ty[4],ISTEXT:tS[1],KURT:tp,LARGE:tF,LCM:tp,LEFT:tz,LEN:t_[1],LN:ty[1],LOG:ty[2],LOG10:ty[1],LOGINV:ty[3],"LOGNORM.DIST":tO,"LOGNORM.INV":ty[3],LOGNORMDIST:ty[3],LOWER:t_[1],MATCH:[null,null,e7],MAX:tp,MAXA:tp,MAXIFS:[null,...tg],MEDIAN:tp,MID:[tr,e9,e9],MIN:tp,MINA:tp,MINIFS:[null,...tg],MINUTE:ty[1],MIRR:tL,MOD:ty[2],MODE:tp,"MODE.SNGL":tp,MONTH:ty[1],MROUND:ty[2],MULTINOMIAL:tf,N:tS[1],NA:th,"NEGBINOM.DIST":[e9,e9,e7,e3],NEGBINOMDIST:tE,NETWORKDAYS:tj,"NETWORKDAYS.INTL":tq,NOMINAL:tC,"NORM.DIST":tO,"NORM.INV":ty[3],"NORM.S.DIST":[e7,e3],"NORM.S.INV":ty[1],NORMDIST:tO,NORMINV:ty[3],NORMSDIST:ty[1],NORMSINV:ty[1],NOT:[e3],NOW:th,NPER:ty[5],NPV:[e7,null,tu(null)],OCT2BIN:tU,OCT2DEC:tS[1],OCT2HEX:tU,ODD:ty[1],OFFSET:[null,e9,e9,e9,e9],OR:tv,PDURATION:ty[3],PEARSON:tY,PERCENTILE:tP,"PERCENTILE.EXC":tP,"PERCENTILE.INC":tP,PERCENTRANK:tB,"PERCENTRANK.EXC":tB,"PERCENTRANK.INC":tB,PERMUT:tw[2],PERMUTATIONA:tw[2],PHI:ty[1],PI:th,PMT:ty[5],POISSON:tD,"POISSON.DIST":tD,POWER:ty[2],PPMT:ty[5],PROB:[null,null,e7,e7],PRODUCT:tf,PROPER:t_[1],PV:ty[5],QUARTILE:tF,"QUARTILE.EXC":tF,"QUARTILE.INC":tF,QUOTIENT:ty[2],RADIANS:ty[1],RAND:th,RANDARRAY:[e9,e9,e7,e7,e3],RANDBETWEEN:ty[2],RANK:tM,"RANK.AVG":tM,"RANK.EQ":tM,RATE:[e9,e7,e7,e7,e7,e7],REPLACE:[tr,e9,e9,tr],REPT:tz,RIGHT:tz,ROMAN:[e7,null],ROUND:tC,ROUNDDOWN:tC,ROUNDUP:tC,ROW:tS[1],ROWS:tS[1],RRI:ty[3],RSQ:tY,SEARCH:tH,SEC:tW,SECH:tW,SECOND:ty[1],SERIESSUM:[e7,e7,e7,td(e7)],SEQUENCE:[e9,e9,e7,e7],SIGN:ty[1],SIN:tW,SINH:tW,SKEW:tp,"SKEW.P":tp,SLN:ty[3],SLOPE:tY,SMALL:tF,SORT:[null,e9,e9,e3],SORTBY:[null,null,e9,tu(null),tu(e9)],SQRT:ty[1],SQRTPI:ty[1],STANDARDIZE:ty[3],STDEV:tp,"STDEV.P":tp,"STDEV.S":tp,STDEVA:tp,STDEVP:tp,STDEVPA:tp,STEYX:tY,SUBSTITUTE:[tr,tr,tr,e9],SUBTOTAL:[null,null,tu(null)],SUM:tf,SUMIF:[null,tr,null],SUMIFS:[null,...tg],SUMPRODUCT:tf,SUMSQ:tf,SUMX2MY2:tY,SUMX2PY2:tY,SUMXMY2:tY,SYD:ty[4],T:tS[1],"T.DIST":[e7,e9,e3],"T.DIST.2T":tC,"T.DIST.RT":tC,"T.INV":tC,"T.INV.2T":tC,"T.TEST":tV,TAN:tW,TANH:tW,TBILLEQ:tE,TBILLPRICE:tE,TBILLYIELD:tE,TDIST:tI,TEXT:[null,tr],TIME:tw[3],TIMEVALUE:tS[1],TINV:tC,TODAY:th,TRANSPOSE:tS[1],TRIM:t_[1],TRIMMEAN:[td(tc),e7],TRUE:th,TRUNC:tC,TTEST:tV,TYPE:tS[1],UNICHAR:tw[1],UNICODE:t_[1],UNIQUE:[null,e3,e3],UPPER:t_[1],VALUE:t_[1],VAR:tp,"VAR.P":tp,"VAR.S":tp,VARA:tp,VARP:tp,VARPA:tp,VLOOKUP:[null,null,e9,e3],WEEKDAY:tT,WEEKNUM:tT,WEIBULL:tO,"WEIBULL.DIST":tO,WORKDAY:tj,"WORKDAY.INTL":tq,XIRR:[null,null,e7],XLOOKUP:[null,null,null,null,e9,e9],XNPV:tN,XOR:tv,YEAR:ty[1],YEARFRAC:tw[3],"Z.TEST":tL,ZTEST:tL,HYPERLINK:t_[2],IMPORTRANGE:t_[2],FLATTEN:[null,tu(null)]};function tX(e,t){let i=tK[e];if(null==i)return t;let n=i.filter(tl).map(e=>e.converter),o=i.length-n.length;return t.forEach((e,r)=>{let a=null;null!==(a=r>=o?n[(r-o)%n.length]:i[r])&&void 0!==t[r]&&(t[r]=a.call(this,t[r]))}),t}function tQ(e){if(!Array.isArray(e))return(0,S.VZ)(e)?e:void 0;for(let t=0,i=e.length;t<i;t++){let i=tQ(e[t]);if(i)return i}}let t$=e=>{for(let t of e){let e=tQ(t);if(e)return e}},tJ=()=>{},t0=e=>{if((0,S.VZ)(e[0]))return e[0]},t1=[t$];function t2(e){return t1[e]??=t=>t$(t.slice(e))}let t3={ROWS:tJ,COLUMNS:tJ,OFFSET:e=>{if(0===e.length)return;let t=e[0]?.isError()?e[0].v:tQ(e.slice(1));if(t)return t},CHOOSE:t0,SUBTOTAL:e=>{let t;if((0,S.VZ)(e[0]))return e[0];switch(e[0]%100){case 2:case 3:t=tJ(e.slice(1));break;default:t=t$(e.slice(1))}return t},SUMIF:tJ,AVERAGEIF:tJ,SUMIFS:tJ,AVERAGEIFS:tJ,MAXIFS:tJ,MINIFS:tJ,IF:t0,IFS:tJ,COUNT:tJ,COUNTA:tJ,COUNTIF:tJ,COUNTIFS:tJ,ISBLANK:tJ,ISNA:tJ,ISERR:tJ,ISERROR:tJ,ISLOGICAL:tJ,ISNONTEXT:tJ,ISNUMBER:tJ,ISTEXT:tJ,IFERROR:tJ,IFNA:tJ,TYPE:tJ,MATCH:tJ,VLOOKUP:tJ,HLOOKUP:tJ,XLOOKUP:t2(4),ISDATE:tJ,INDEX:t2(1),"ERROR.TYPE":tJ,FILTER:e=>tQ(e[1]),SORT:t2(1),SORTBY:e=>{for(let t=2;t<e.length;t+=2){let i=tQ(e[t]);if(i)return i}},TRANSPOSE:tJ,UNIQUE:t2(1),FLATTEN:tJ};var t4=i(74617),t5=i.n(t4);t5().gammafn=function(e){let t,i,n,o,r=[-1.716185138865495,24.76565080557592,-379.80425647094563,629.3311553128184,866.9662027904133,-31451.272968848367,-36144.413418691176,66456.14382024054],a=[-30.8402300119739,315.35062697960416,-1015.1563674902192,-3107.771671572311,22538.11842098015,4755.846277527881,-134659.9598649693,-115132.2596755535],s=!1,l=0,c=1,d=0,u=e;if(u<=0){if(!(o=u%1+36e-17))return 1/0;s=(1&u?-1:1)*Math.PI/Math.sin(Math.PI*o),u=1-u}for(t=0,n=u,i=u<1?u++:(u-=l=(0|u)-1)-1;t<8;++t)d=(d+r[t])*i,c=c*i+a[t];if(o=d/c+1,n<u)o/=n;else if(n>u)for(t=0;t<l;++t)o*=u,u++;return s&&(o=s/o),o},t5().lowRegGamma=function(e,t){let i,n=t5().gammaln(e),o=e,r=1/e,a=r,s=t+1-e,l=1/1e-30,c=1/s,d=c,u=1,h=-~(8.5*Math.log(e>=1?e:1/e)+.4*e+18);if(t<0||e<=0)return NaN;if(t<e+1){for(;u<=h;u++)r+=a*=t/++o;return r*Math.exp(-t+e*Math.log(t)-n)}for(;u<=h;u++)s+=2,d*=(c=1/(c=(i=-u*(u-e))*c+s))*(l=s+i/l);return 1-d*Math.exp(-t+e*Math.log(t)-n)},t5().betacf=function(e,t,i){let n,o,r,a,s=1,l=t+i,c=t+1,d=t-1,u=1,h=1-l*e/c;for(1e-30>Math.abs(h)&&(h=1e-30),a=h=1/h;s<=100&&(n=2*s,1e-30>Math.abs(h=1+(o=s*(i-s)*e/((d+n)*(t+n)))*h)&&(h=1e-30),1e-30>Math.abs(u=1+o/u)&&(u=1e-30),a*=(h=1/h)*u,1e-30>Math.abs(h=1+(o=-(t+s)*(l+s)*e/((t+n)*(c+n)))*h)&&(h=1e-30),1e-30>Math.abs(u=1+o/u)&&(u=1e-30),a*=r=(h=1/h)*u,!(1e-10>Math.abs(r-1)));s++);return a},t5().poisson.pdf=function(e,t){return t<0||e%1!=0||e<0?0:Math.exp(Math.log(t)*e-t-t5().factorialln(e))};let t6=t5();function t8(e){return(e=e5(e))instanceof Error?e:e<=0?eX.value:String.fromCharCode(e)}function t7(e){return(e=e||"").replace(/[\0-\x1F]/g,"")}function t9(e){return(e=e||"").charCodeAt(0)}function ie(){return it(...arguments)}function it(){let e=e0(arguments),t=0;for(;(t=e.indexOf(!0))>-1;)e[t]="TRUE";let i=0;for(;(i=e.indexOf(!1))>-1;)e[i]="FALSE";return e.join("")}function ii(e,t){if(tn(e=e5(e),t=void 0===t?2:e5(t)))return eX.value;let i=this.getLocale(),n=e<0?-1:1,o="[$"+(i.getData().CURRENCY_SYM||"$")+"]0";return t<=0?e=Math.round(e/n*Math.pow(10,t))/Math.pow(10,t):o=o+"."+Array(t+1).join("0"),i.getSSF().render(o+";("+o+")",e)}function io(e,t){return(e=tr(e))===(t=tr(t))}function ir(e,t,i){if(arguments.length<2||arguments.length>3)return eX.na;if(e=tr(e),t=tr(t),(i=void 0===i?0:i-1)<0||t.length<i)return eX.value;let n=t.indexOf(e,i);return n<0?eX.value:n+1}function ia(e,t,i){if(e=e5(e),t=void 0===t?2:e5(t),i=void 0!==i&&i,tn(e,t))return eX.value;let n=e<0?-1:1,o=i?"0":"#,##0";return t<=0?e=Math.round(e/n*Math.pow(10,t))/Math.pow(10,t):o=o+"."+Array(t+1).join("0"),this.getLocale().getSSF().render(o,e)}function is(e){let t="";return e&&(e instanceof Array?e.forEach(function(e){""!==t&&(t+="\n"),t+=e.replace(/<(?:.|\n)*?>/gm,"")}):t=e.replace(/<(?:.|\n)*?>/gm,"")),t}function il(e,t){return(t=e5(t=void 0===t?1:t))instanceof Error||(e=tr(e),t<0)?eX.value:e?e.substring(0,t):null}function ic(e){return 0==arguments.length?eX.na:tr(e).length}function id(e){return 1!=arguments.length?eX.na:tr(e).toLowerCase()}function iu(e,t,i){return tn(t=e5(t),i=e5(i))?eX.num:t<1||i<0?eX.value:(e=tr(e)).substr(t-1,i)}function ih(e){return void 0===e||0===e.length||(!0===e&&(e="TRUE"),!1===e&&(e="FALSE"),isNaN(e)&&"number"==typeof e)?eX.value:("number"==typeof e&&(e=""+e),e.replace(/[a-zA-Z]\S*/g,function(e){return e.charAt(0).toUpperCase()+e.substr(1).toLowerCase()}))}function ip(e,t){let i=e.match(new RegExp(t));return i?i[i.length>1?i.length-1:0]:null}function ig(e,t,i){let n=e.match(new RegExp(t));return i?n:!!n}function im(e,t,i){return e.replace(new RegExp(t),i)}function iv(e,t,i,n){return(t=e5(t),i=e5(i),e=tr(e),tn(t,i)||"string"!=typeof e||"string"!=typeof n)?eX.value:e.substr(0,t-1)+n+e.substr(t-1+i)}function ib(e,t){return(t=e5(t))instanceof Error?t:(t=Math.floor(t))<0?eX.value:Array(t+1).join(e)}function iy(e,t){return(t=e5(t=void 0===t?1:t))instanceof Error?t:(e=tr(e))?e.substring(e.length-t):null}function iw(e,t,i){let n;return e=tr(e),t=tr(t),i=void 0===i?0:i,0===(n=t.toLowerCase().indexOf(e.toLowerCase(),i-1)+1)?eX.value:n}function i_(e,t){return e.split(t)}function ix(e,t,i,n){if(arguments.length<3)return eX.na;if(n<=0)return eX.value;if(e=tr(e),t=tr(t),i=tr(i),!e||!t)return e;if(void 0===n){let n=t.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&");return e.replace(RegExp(n,"g"),i)}{0===n&&(n=1);let o=0,r=0;for(;(o=e.indexOf(t,o))>-1;){if(++r===n)return e.substring(0,o)+i+e.substring(o+t.length);o+=t.length}return e}}function iS(e){return"string"==typeof e?e:""}function iC(e,t){if("string"==typeof e){let t=e5(e);if(ti(t)){let t=te(this,e);ti(t)||(e=(0,eJ.qC)(t))}else e=t}return t=tr(t),this.getLocale().getSSF().format(t,e).v}function ik(e){return(e=tr(e)).replace(/ +/g," ").trim()}let iI=t8,iA=t9;function iT(e){return 1!=arguments.length?eX.na:tr(e).toUpperCase()}function iE(e){let t,i=this.getLocale().getInputParser();try{t=i.parse(e)?.v??e}catch{t=eX.value}return"number"!=typeof t?eX.value:t}var iR=i(59759),iD=i.n(iR);function iO(e){return/^[01]{1,10}$/.test(e)}function iM(e,t){return(e=e5(e),t=e5(t),(0,A.Z)(e)&&(0,A.Z)(t))?0>t?eX.num:e2(iD().besseli(e,t)):eX.value}function iN(e,t){return(e=e5(e),t=e5(t),(0,A.Z)(e)&&(0,A.Z)(t))?0>t?eX.num:e2(iD().besselj(e,t)):eX.value}function iP(e,t){return(e=e5(e),t=e5(t),(0,A.Z)(e)&&(0,A.Z)(t))?0>t?eX.num:e2(iD().besselk(e,t)):eX.value}function iL(e,t){return(e=e5(e),t=e5(t),(0,A.Z)(e)&&(0,A.Z)(t))?0>t?eX.num:e2(iD().bessely(e,t)):eX.value}function iB(e){if(!iO(e))return eX.num;let t=parseInt(e,2),i=e.toString();return 10===i.length&&"1"===i.substring(0,1)?parseInt(i.substring(1),2)-512:t}function iF(e,t){if(!iO(e))return eX.num;(0,A.Z)(e)&&(e=e.toString());let i=e.toString();if(10===i.length&&"1"===i.substring(0,1))return(0xfffffffe00+parseInt(i.substring(1),2)).toString(16).toUpperCase();let n=parseInt(e,2).toString(16).toUpperCase();return void 0===t?n:isNaN(t)?eX.value:t<0?eX.num:(t=Math.floor(t))>=n.length?ib("0",t-n.length)+n:eX.num}function iV(e,t){if(!iO(e))return eX.num;(0,A.Z)(e)&&(e=e.toString());let i=e.toString();if(10===i.length&&"1"===i.substring(0,1))return(0x3ffffe00+parseInt(i.substring(1),2)).toString(8);let n=parseInt(e,2).toString(8);return void 0===t?n:isNaN(t)?eX.value:t<0?eX.num:(t=Math.floor(t))>=n.length?ib("0",t-n.length)+n:eX.num}function iz(e,t){return tn(e=e5(e),t=e5(t))?eX.value:e<0||t<0||Math.floor(e)!==e||Math.floor(t)!==t||e>0xffffffffffff||t>0xffffffffffff?eX.num:e&t}function iH(e,t){return tn(e=e5(e),t=e5(t))?eX.value:e<0||Math.floor(e)!==e||e>0xffffffffffff||Math.abs(t)>53?eX.num:t>=0?e<<t:e>>-t}function iW(e,t){return tn(e=e5(e),t=e5(t))?eX.value:e<0||t<0||Math.floor(e)!==e||Math.floor(t)!==t||e>0xffffffffffff||t>0xffffffffffff?eX.num:e|t}function iY(e,t){return tn(e=e5(e),t=e5(t))?eX.value:e<0||Math.floor(e)!==e||e>0xffffffffffff||Math.abs(t)>53?eX.num:t>=0?e>>t:e<<-t}function iU(e,t){return tn(e=e5(e),t=e5(t))?eX.value:e<0||t<0||Math.floor(e)!==e||Math.floor(t)!==t||e>0xffffffffffff||t>0xffffffffffff?eX.num:e^t}function iG(e,t,i){if(tn(e=e5(e),t=e5(t)))return e;if("i"!==(i=void 0===i?"i":i)&&"j"!==i)return eX.value;function n(e){return e2(e).toString()}if(0===e&&0===t)return 0;{if(0===e)return 1===t?i:n(t)+i;if(0===t)return n(e);let o=t>0?"+":"";return n(e)+o+(1===t?i:n(t)+i)}}function iZ(e,t,i){let n;if((e=e5(e))instanceof Error)return e;let o=[["a.u. of action","?",null,"action",!1,!1,105457168181818e-48],["a.u. of charge","e",null,"electric_charge",!1,!1,160217653141414e-33],["a.u. of energy","Eh",null,"energy",!1,!1,435974417757576e-32],["a.u. of length","a?",null,"length",!1,!1,529177210818182e-25],["a.u. of mass","m?",null,"mass",!1,!1,910938261616162e-45],["a.u. of time","?/Eh",null,"time",!1,!1,241888432650516e-31],["admiralty knot","admkn",null,"speed",!1,!0,.514773333],["ampere","A",null,"electric_current",!0,!1,1],["ampere per meter","A/m",null,"magnetic_field_intensity",!0,!1,1],["\xe5ngstr\xf6m","\xc5",["ang"],"length",!1,!0,1e-10],["are","ar",null,"area",!1,!0,100],["astronomical unit","ua",null,"length",!1,!1,149597870691667e-25],["bar","bar",null,"pressure",!1,!1,1e5],["barn","b",null,"area",!1,!1,1e-28],["becquerel","Bq",null,"radioactivity",!0,!1,1],["bit","bit",["b"],"information",!1,!0,1],["btu","BTU",["btu"],"energy",!1,!0,1055.05585262],["byte","byte",null,"information",!1,!0,8],["candela","cd",null,"luminous_intensity",!0,!1,1],["candela per square metre","cd/m?",null,"luminance",!0,!1,1],["coulomb","C",null,"electric_charge",!0,!1,1],["cubic \xe5ngstr\xf6m","ang3",["ang^3"],"volume",!1,!0,1e-30],["cubic foot","ft3",["ft^3"],"volume",!1,!0,.028316846592],["cubic inch","in3",["in^3"],"volume",!1,!0,16387064e-12],["cubic light-year","ly3",["ly^3"],"volume",!1,!0,846786664623715e-61],["cubic metre","m?",null,"volume",!0,!0,1],["cubic mile","mi3",["mi^3"],"volume",!1,!0,4168181825.44058],["cubic nautical mile","Nmi3",["Nmi^3"],"volume",!1,!0,0x17a9e9bc0],["cubic Pica","Pica3",["Picapt3","Pica^3","Picapt^3"],"volume",!1,!0,758660370370369e-22],["cubic yard","yd3",["yd^3"],"volume",!1,!0,.764554857984],["cup","cup",null,"volume",!1,!0,2365882365e-13],["dalton","Da",["u"],"mass",!1,!1,166053886282828e-41],["day","d",["day"],"time",!1,!0,86400],["degree","\xb0",null,"angle",!1,!1,.0174532925199433],["degrees Rankine","Rank",null,"temperature",!1,!0,.555555555555556],["dyne","dyn",["dy"],"force",!1,!0,1e-5],["electronvolt","eV",["ev"],"energy",!1,!0,1.60217656514141],["ell","ell",null,"length",!1,!0,1.143],["erg","erg",["e"],"energy",!1,!0,1e-7],["farad","F",null,"electric_capacitance",!0,!1,1],["fluid ounce","oz",null,"volume",!1,!0,295735295625e-16],["foot","ft",null,"length",!1,!0,.3048],["foot-pound","flb",null,"energy",!1,!0,1.3558179483314],["gal","Gal",null,"acceleration",!1,!1,.01],["gallon","gal",null,"volume",!1,!0,.003785411784],["gauss","G",["ga"],"magnetic_flux_density",!1,!0,1],["grain","grain",null,"mass",!1,!0,647989e-10],["gram","g",null,"mass",!1,!0,.001],["gray","Gy",null,"absorbed_dose",!0,!1,1],["gross registered ton","GRT",["regton"],"volume",!1,!0,2.8316846592],["hectare","ha",null,"area",!1,!0,1e4],["henry","H",null,"inductance",!0,!1,1],["hertz","Hz",null,"frequency",!0,!1,1],["horsepower","HP",["h"],"power",!1,!0,745.69987158227],["horsepower-hour","HPh",["hh","hph"],"energy",!1,!0,2684519.538],["hour","h",["hr"],"time",!1,!0,3600],["imperial gallon (U.K.)","uk_gal",null,"volume",!1,!0,.00454609],["imperial hundredweight","lcwt",["uk_cwt","hweight"],"mass",!1,!0,50.802345],["imperial quart (U.K)","uk_qt",null,"volume",!1,!0,.0011365225],["imperial ton","brton",["uk_ton","LTON"],"mass",!1,!0,1016.046909],["inch","in",null,"length",!1,!0,.0254],["international acre","uk_acre",null,"area",!1,!0,4046.8564224],["IT calorie","cal",null,"energy",!1,!0,4.1868],["joule","J",null,"energy",!0,!0,1],["katal","kat",null,"catalytic_activity",!0,!1,1],["kelvin","K",["kel"],"temperature",!0,!0,1],["kilogram","kg",null,"mass",!0,!0,1],["knot","kn",null,"speed",!1,!0,.514444444444444],["light-year","ly",null,"length",!1,!0,0x219c7bf72246c0],["litre","L",["l","lt"],"volume",!1,!0,.001],["lumen","lm",null,"luminous_flux",!0,!1,1],["lux","lx",null,"illuminance",!0,!1,1],["maxwell","Mx",null,"magnetic_flux",!1,!1,1e-18],["measurement ton","MTON",null,"volume",!1,!0,1.13267386368],["meter per hour","m/h",["m/hr"],"speed",!1,!0,27777777777778e-17],["meter per second","m/s",["m/sec"],"speed",!0,!0,1],["meter per second squared","m?s??",null,"acceleration",!0,!1,1],["parsec","pc",["parsec"],"length",!1,!0,0x6da012f958ee1c],["meter squared per second","m?/s",null,"kinematic_viscosity",!0,!1,1],["metre","m",null,"length",!0,!0,1],["miles per hour","mph",null,"speed",!1,!0,.44704],["millimetre of mercury","mmHg",null,"pressure",!1,!1,133.322],["minute","?",null,"angle",!1,!1,290888208665722e-18],["minute","min",["mn"],"time",!1,!0,60],["modern teaspoon","tspm",null,"volume",!1,!0,5e-6],["mole","mol",null,"amount_of_substance",!0,!1,1],["morgen","Morgen",null,"area",!1,!0,2500],["n.u. of action","?",null,"action",!1,!1,105457168181818e-48],["n.u. of mass","m?",null,"mass",!1,!1,910938261616162e-45],["n.u. of speed","c?",null,"speed",!1,!1,0x11de784a],["n.u. of time","?/(me?c??)",null,"time",!1,!1,128808866778687e-35],["nautical mile","M",["Nmi"],"length",!1,!0,1852],["newton","N",null,"force",!0,!0,1],["œrsted","Oe ",null,"magnetic_field_intensity",!1,!1,79.5774715459477],["ohm","Ω",null,"electric_resistance",!0,!1,1],["ounce mass","ozm",null,"mass",!1,!0,.028349523125],["pascal","Pa",null,"pressure",!0,!1,1],["pascal second","Pa?s",null,"dynamic_viscosity",!0,!1,1],["pferdest\xe4rke","PS",null,"power",!1,!0,735.49875],["phot","ph",null,"illuminance",!1,!1,1e-4],["pica (1/6 inch)","pica",null,"length",!1,!0,35277777777778e-17],["pica (1/72 inch)","Pica",["Picapt"],"length",!1,!0,.00423333333333333],["poise","P",null,"dynamic_viscosity",!1,!1,.1],["pond","pond",null,"force",!1,!0,.00980665],["pound force","lbf",null,"force",!1,!0,4.4482216152605],["pound mass","lbm",null,"mass",!1,!0,.45359237],["quart","qt",null,"volume",!1,!0,946352946e-12],["radian","rad",null,"angle",!0,!1,1],["second","?",null,"angle",!1,!1,484813681109536e-20],["second","s",["sec"],"time",!0,!0,1],["short hundredweight","cwt",["shweight"],"mass",!1,!0,45.359237],["siemens","S",null,"electrical_conductance",!0,!1,1],["sievert","Sv",null,"equivalent_dose",!0,!1,1],["slug","sg",null,"mass",!1,!0,14.59390294],["square \xe5ngstr\xf6m","ang2",["ang^2"],"area",!1,!0,1e-20],["square foot","ft2",["ft^2"],"area",!1,!0,.09290304],["square inch","in2",["in^2"],"area",!1,!0,64516e-8],["square light-year","ly2",["ly^2"],"area",!1,!0,895054210748189e17],["square meter","m?",null,"area",!0,!0,1],["square mile","mi2",["mi^2"],"area",!1,!0,2589988.110336],["square nautical mile","Nmi2",["Nmi^2"],"area",!1,!0,3429904],["square Pica","Pica2",["Picapt2","Pica^2","Picapt^2"],"area",!1,!0,1792111111111e-17],["square yard","yd2",["yd^2"],"area",!1,!0,.83612736],["statute mile","mi",null,"length",!1,!0,1609.344],["steradian","sr",null,"solid_angle",!0,!1,1],["stilb","sb",null,"luminance",!1,!1,1e-4],["stokes","St",null,"kinematic_viscosity",!1,!1,1e-4],["stone","stone",null,"mass",!1,!0,6.35029318],["tablespoon","tbs",null,"volume",!1,!0,147868e-10],["teaspoon","tsp",null,"volume",!1,!0,492892e-11],["tesla","T",null,"magnetic_flux_density",!0,!0,1],["thermodynamic calorie","c",null,"energy",!1,!0,4.184],["ton","ton",null,"mass",!1,!0,907.18474],["tonne","t",null,"mass",!1,!1,1e3],["U.K. pint","uk_pt",null,"volume",!1,!0,56826125e-11],["U.S. bushel","bushel",null,"volume",!1,!0,.03523907],["U.S. oil barrel","barrel",null,"volume",!1,!0,.158987295],["U.S. pint","pt",["us_pt"],"volume",!1,!0,473176473e-12],["U.S. survey mile","survey_mi",null,"length",!1,!0,1609.347219],["U.S. survey/statute acre","us_acre",null,"area",!1,!0,4046.87261],["volt","V",null,"voltage",!0,!1,1],["watt","W",null,"power",!0,!0,1],["watt-hour","Wh",["wh"],"energy",!1,!0,3600],["weber","Wb",null,"magnetic_flux",!0,!1,1],["yard","yd",null,"length",!1,!0,.9144],["year","yr",null,"time",!1,!0,0x1e187e0]],r={Yi:["yobi",80,12089258196146292e8,"Yi","yotta"],Zi:["zebi",70,11805916207174113e5,"Zi","zetta"],Ei:["exbi",60,0x1000000000000000,"Ei","exa"],Pi:["pebi",50,0x4000000000000,"Pi","peta"],Ti:["tebi",40,0x10000000000,"Ti","tera"],Gi:["gibi",30,0x40000000,"Gi","giga"],Mi:["mebi",20,1048576,"Mi","mega"],ki:["kibi",10,1024,"ki","kilo"]},a={Y:["yotta",1e24,"Y"],Z:["zetta",1e21,"Z"],E:["exa",1e18,"E"],P:["peta",1e15,"P"],T:["tera",1e12,"T"],G:["giga",1e9,"G"],M:["mega",1e6,"M"],k:["kilo",1e3,"k"],h:["hecto",100,"h"],e:["dekao",10,"e"],d:["deci",.1,"d"],c:["centi",.01,"c"],m:["milli",.001,"m"],u:["micro",1e-6,"u"],n:["nano",1e-9,"n"],p:["pico",1e-12,"p"],f:["femto",1e-15,"f"],a:["atto",1e-18,"a"],z:["zepto",1e-21,"z"],y:["yocto",1e-24,"y"]},s=null,l=null,c=t,d=i,u=1,h=1;for(let e=0;e<o.length;e++)n=null===o[e][2]?[]:o[e][2],(o[e][1]===c||n.indexOf(c)>=0)&&(s=o[e]),(o[e][1]===d||n.indexOf(d)>=0)&&(l=o[e]);if(null===s){let e=r[t.substring(0,2)],i=a[t.substring(0,1)];"da"===t.substring(0,2)&&(i=["dekao",10,"da"]),e?(u=e[2],c=t.substring(2)):i&&(u=i[1],c=t.substring(i[2].length));for(let e=0;e<o.length;e++)n=null===o[e][2]?[]:o[e][2],(o[e][1]===c||n.indexOf(c)>=0)&&(s=o[e])}if(null===l){let e=r[i.substring(0,2)],t=a[i.substring(0,1)];"da"===i.substring(0,2)&&(t=["dekao",10,"da"]),e?(h=e[2],d=i.substring(2)):t&&(h=t[1],d=i.substring(t[2].length));for(let e=0;e<o.length;e++)n=null===o[e][2]?[]:o[e][2],(o[e][1]===d||n.indexOf(d)>=0)&&(l=o[e])}return null===s||null===l||s[3]!==l[3]?eX.na:e*s[6]*u/(l[6]*h)}function ij(e,t){if((e=e5(e))instanceof Error)return e;if(!/^-?[0-9]{1,3}$/.test(e)||e<-512||e>511)return eX.num;if(e<0)return"1"+ib("0",9-(512+e).toString(2).length)+(512+e).toString(2);let i=parseInt(e,10).toString(2);return void 0===t?i:isNaN(t)?eX.value:t<0?eX.num:(t=Math.floor(t))>=i.length?ib("0",t-i.length)+i:eX.num}function iq(e,t){if((e=e5(e))instanceof Error)return e;if(!/^-?[0-9]{1,12}$/.test(e)||e<-0x8000000000||e>0x7fffffffff)return eX.num;if(e<0)return(0x10000000000+e).toString(16).toUpperCase();let i=parseInt(e,10).toString(16).toUpperCase();return void 0===t?i:isNaN(t)?eX.value:t<0?eX.num:(t=Math.floor(t))>=i.length?ib("0",t-i.length)+i:eX.num}function iK(e,t){if((e=e5(e))instanceof Error)return e;if(!/^-?[0-9]{1,9}$/.test(e)||e<-0x20000000||e>0x1fffffff)return eX.num;if(e<0)return(0x40000000+e).toString(8);let i=parseInt(e,10).toString(8);return void 0===t?i:isNaN(t)?eX.value:t<0?eX.num:(t=Math.floor(t))>=i.length?ib("0",t-i.length)+i:eX.num}function iX(e,t){return tn(e=e5(e),t=void 0===t?0:e5(t))?eX.value:+(e===t)}function iQ(e,t){return tn(e=e5(e),t=void 0===t?0:e5(t))?eX.value:(e=0===e?0:t6.erf(e),0!==t)?t6.erf(t)-e:e}function i$(e){return isNaN(e)?eX.value:0===e?1:t6.erfc(e)}function iJ(e,t){return(e=e5(e),tn(t=void 0===t?0:e5(t),e))?eX.value:+(e>=t)}function i0(e,t){if(!/^[0-9A-Fa-f]{1,10}$/.test(e))return eX.num;let i=10===e.length&&"f"===e.substring(0,1).toLowerCase(),n=i?parseInt(e,16)-0x10000000000:parseInt(e,16);if(n<-512||n>511)return eX.num;if(i)return"1"+ib("0",9-(512+n).toString(2).length)+(512+n).toString(2);let o=n.toString(2);return void 0===t?o:isNaN(t)?eX.value:t<0?eX.num:(t=Math.floor(t))>=o.length?ib("0",t-o.length)+o:eX.num}function i1(e){if(!/^[0-9A-Fa-f]{1,10}$/.test(e))return eX.num;let t=parseInt(e,16);return t>=0x8000000000?t-0x10000000000:t}function i2(e,t){if(!/^[0-9A-Fa-f]{1,10}$/.test(e))return eX.num;let i=parseInt(e,16);if(i>0x1fffffff&&i<0xffe0000000)return eX.num;if(i>=0xffe0000000)return(i-0xffc0000000).toString(8);let n=i.toString(8);return void 0===t?n:isNaN(t)?eX.value:t<0?eX.num:(t=Math.floor(t))>=n.length?ib("0",t-n.length)+n:eX.num}function i3(e){let t=ns(e),i=i4(e);return n_(t,i)?eX.num:Math.sqrt(Math.pow(t,2)+Math.pow(i,2))}function i4(e){if(void 0===e||!0===e||!1===e)return eX.value;if((0,A.Z)(e)&&(e=e.toString()),0===e||"0"===e)return 0;if(["i","j"].indexOf(e)>=0)return 1;let t=(e=e.replace("+i","+1i").replace("-i","-1i").replace("+j","+1j").replace("-j","-1j")).indexOf("+"),i=e.indexOf("-");0===t&&(t=e.indexOf("+",1)),0===i&&(i=e.indexOf("-",1));let n=e.substring(e.length-1,e.length),o="i"===n||"j"===n;return t>=0||i>=0?o?t>=0?isNaN(e.substring(0,t))||isNaN(e.substring(t+1,e.length-1))?eX.num:Number(e.substring(t+1,e.length-1)):isNaN(e.substring(0,i))||isNaN(e.substring(i+1,e.length-1))?eX.num:-Number(e.substring(i+1,e.length-1)):eX.num:o?isNaN(e.substring(0,e.length-1))?eX.num:e.substring(0,e.length-1):isNaN(e)?eX.num:0}function i5(e){let t=ns(e),i=i4(e);return n_(t,i)?eX.num:0===t&&0===i?eX.div0:0===t&&i>0?Math.PI/2:0===t&&i<0?-Math.PI/2:0===i&&t>0?0:0===i&&t<0?-Math.PI:t>0?Math.atan(i/t):t<0&&i>=0?Math.atan(i/t)+Math.PI:Math.atan(i/t)-Math.PI}function i6(e){(0,A.Z)(e)&&(e=e.toString());let t=ns(e),i=i4(e);if(n_(t,i))return eX.num;let n=e.substring(e.length-1);return n="i"===n||"j"===n?n:"i",0!==i?iG(t,-i,n):e}function i8(e){(0,A.Z)(e)&&(e=e.toString());let t=ns(e),i=i4(e);if(n_(t,i))return eX.num;let n=e.substring(e.length-1);return iG(Math.cos(t)*(Math.exp(i)+Math.exp(-i))/2,-Math.sin(t)*(Math.exp(i)-Math.exp(-i))/2,n="i"===n||"j"===n?n:"i")}function i7(e){(0,A.Z)(e)&&(e=e.toString());let t=ns(e),i=i4(e);if(n_(t,i))return eX.num;let n=e.substring(e.length-1);return iG(Math.cos(i)*(Math.exp(t)+Math.exp(-t))/2,Math.sin(i)*(Math.exp(t)-Math.exp(-t))/2,n="i"===n||"j"===n?n:"i")}function i9(e){let t=ns(e),i=i4(e);if(n_(t,i))return eX.num;let n="i";"j"===e.substring(e.length-1)&&(n="j");let o=Math.sin(t),r=(Math.exp(i)-Math.exp(-i))/2,a=Math.cos(t),s=(Math.exp(i)+Math.exp(-i))/2,l=s*s-a*a;return iG(o*a/l,-(r*s)/l,n)}function ne(e,t){(0,A.Z)(e)&&(e=e.toString()),(0,A.Z)(t)&&(t=t.toString());let i=ns(e),n=i4(e),o=ns(t),r=i4(t);if(n_(i,n,o,r))return eX.num;let a=e.substring(e.length-1),s=t.substring(t.length-1),l="i";if("j"===a?l="j":"j"===s&&(l="j"),0===o&&0===r)return eX.num;let c=o*o+r*r;return iG((i*o+n*r)/c,(n*o-i*r)/c,l)}function nt(e){(0,A.Z)(e)&&(e=e.toString());let t=ns(e),i=i4(e);if(n_(t,i))return eX.num;let n=e.substring(e.length-1),o=Math.exp(t);return iG(o*Math.cos(i),o*Math.sin(i),n="i"===n||"j"===n?n:"i")}function ni(e){(0,A.Z)(e)&&(e=e.toString());let t=ns(e),i=i4(e);if(n_(t,i))return eX.num;let n=e.substring(e.length-1);return iG(Math.log(Math.sqrt(t*t+i*i)),Math.atan(i/t),n="i"===n||"j"===n?n:"i")}function nn(e){(0,A.Z)(e)&&(e=e.toString());let t=ns(e),i=i4(e);if(n_(t,i))return eX.num;let n=e.substring(e.length-1);return iG(Math.log(Math.sqrt(t*t+i*i))/Math.log(10),Math.atan(i/t)/Math.log(10),n="i"===n||"j"===n?n:"i")}function no(e){(0,A.Z)(e)&&(e=e.toString());let t=ns(e),i=i4(e);if(n_(t,i))return eX.num;let n=e.substring(e.length-1);return iG(Math.log(Math.sqrt(t*t+i*i))/Math.log(2),Math.atan(i/t)/Math.log(2),n="i"===n||"j"===n?n:"i")}function nr(e,t){if((0,A.Z)(e)&&(e=e.toString()),n_(t=e5(t),ns(e),i4(e)))return eX.num;let i=e.substring(e.length-1);i="i"===i||"j"===i?i:"i";let n=Math.pow(i3(e),t),o=i5(e);return iG(n*Math.cos(t*o),n*Math.sin(t*o),i)}function na(){if(arguments.length<1)return eX.na;let e=e0(Array.from(arguments).filter(e=>null!=e)).map(e=>""===e?0:e);if(0===e.length)return eX.na;let t=e[0];for(let i=1;i<e.length;i++){let n=ns(t),o=i4(t),r=ns(e[i]),a=i4(e[i]);if(n_(n,o,r,a))return eX.num;t=iG(n*r-o*a,n*a+o*r)}return t.toString()}function ns(e){if(void 0===e||!0===e||!1===e)return eX.value;if(0===e||"0"===e||((0,A.Z)(e)&&(e=e.toString()),["i","+i","1i","+1i","-i","-1i","j","+j","1j","+1j","-j","-1j"].indexOf(e)>=0))return 0;let t=e.indexOf("+"),i=e.indexOf("-");0===t&&(t=e.indexOf("+",1)),0===i&&(i=e.indexOf("-",1));let n=e.substring(e.length-1,e.length),o="i"===n||"j"===n;return t>=0||i>=0?o?t>=0?isNaN(e.substring(0,t))||isNaN(e.substring(t+1,e.length-1))?eX.num:Number(e.substring(0,t)):isNaN(e.substring(0,i))||isNaN(e.substring(i+1,e.length-1))?eX.num:Number(e.substring(0,i)):eX.num:o?isNaN(e.substring(0,e.length-1))?eX.num:0:isNaN(e)?eX.num:e}function nl(e){return!0===e||!1===e?eX.value:n_(ns(e),i4(e))?eX.num:ne("1",i8(e))}function nc(e){let t=ns(e),i=i4(e);if(n_(t,i))return eX.num;let n="i";"j"===e.substring(e.length-1)&&(n="j");let o=Math.sin(i),r=(Math.exp(t)-Math.exp(-t))/2,a=Math.cos(i),s=a*a+r*r;return iG((Math.exp(t)+Math.exp(-t))/2*a/s,-(o*r)/s,n)}function nd(e){(0,A.Z)(e)&&(e=e.toString());let t=ns(e),i=i4(e);if(n_(t,i))return eX.num;let n=e.substring(e.length-1);return iG(Math.sin(t)*(Math.exp(i)+Math.exp(-i))/2,Math.cos(t)*(Math.exp(i)-Math.exp(-i))/2,n="i"===n||"j"===n?n:"i")}function nu(e){(0,A.Z)(e)&&(e=e.toString());let t=ns(e),i=i4(e);if(n_(t,i))return eX.num;let n=e.substring(e.length-1);return iG(Math.cos(i)*(Math.exp(t)-Math.exp(-t))/2,Math.sin(i)*(Math.exp(t)+Math.exp(-t))/2,n="i"===n||"j"===n?n:"i")}function nh(e){if((0,A.Z)(e)&&(e=e.toString()),n_(ns(e),i4(e)))return eX.num;let t=e.substring(e.length-1);t="i"===t||"j"===t?t:"i";let i=Math.sqrt(i3(e)),n=i5(e);return iG(i*Math.cos(n/2),i*Math.sin(n/2),t)}function np(e){return!0===e||!1===e?eX.value:n_(ns(e),i4(e))?eX.num:ne("1",nd(e))}function nf(e){if(!0===e||!1===e)return eX.value;let t=ns(e),i=i4(e);if(n_(t,i))return eX.num;let n="i";"j"===e.substring(e.length-1)&&(n="j");let o=Math.sin(i),r=(Math.exp(t)-Math.exp(-t))/2,a=o*o+r*r;return iG(Math.cos(i)*r/a,-((Math.exp(t)+Math.exp(-t))/2*o)/a,n)}function ng(e,t){(0,A.Z)(e)&&(e=e.toString()),(0,A.Z)(t)&&(t=t.toString());let i=ns(e),n=i4(e),o=ns(t),r=i4(t);if(n_(i,n,o,r))return eX.num;let a=e.substring(e.length-1),s=t.substring(t.length-1),l="i";return"j"===a?l="j":"j"===s&&(l="j"),iG(i-o,n-r,l)}function nm(){if(arguments.length<1)return eX.na;let e=e0(Array.from(arguments).filter(e=>null!=e)).map(e=>""===e?0:e);if(0===e.length)return eX.na;let t=e[0];for(let i=1;i<e.length;i++){let n=ns(t),o=i4(t),r=ns(e[i]),a=i4(e[i]);if(n_(n,o,r,a))return eX.num;t=iG(n+r,o+a)}return t.toString()}function nv(e){if(!0===e||!1===e)return eX.value;let t=ns(e),i=i4(e);if(n_(t,i))return eX.num;let n="i";"j"===e.substring(e.length-1)&&(n="j");let o=Math.sin(t),r=(Math.exp(i)-Math.exp(-i))/2,a=Math.cos(t),s=a*a+r*r;return iG(o*a/s,(Math.exp(i)+Math.exp(-i))/2*r/s,n)}function nb(e,t){if(!/^[0-7]{1,10}$/.test(e))return eX.num;(0,A.Z)(e)&&(e=e.toString());let i=10===e.length&&"7"===e.substring(0,1),n=i?parseInt(e,8)-0x40000000:parseInt(e,8);if(n<-512||n>511)return eX.num;if(i)return"1"+ib("0",9-(512+n).toString(2).length)+(512+n).toString(2);let o=n.toString(2);return void 0===t?o:isNaN(t)?eX.value:t<0?eX.num:(t=Math.floor(t))>=o.length?ib("0",t-o.length)+o:eX.num}function ny(e){if(!/^[0-7]{1,10}$/.test(e))return eX.num;let t=parseInt(e,8);return t>=0x20000000?t-0x40000000:t}function nw(e,t){if(!/^[0-7]{1,10}$/.test(e))return eX.num;let i=parseInt(e,8);if(i>=0x20000000)return"FF"+(i+0xc0000000).toString(16).toUpperCase();let n=i.toString(16).toUpperCase();return void 0===t?n:isNaN(t)?eX.value:t<0?eX.num:(t=Math.floor(t))>=n.length?ib("0",t-n.length)+n:eX.num}function n_(){return Array.prototype.some.call(arguments,S.VZ)}iQ.PRECISE=function(e,t){return iQ(e,t)},i$.PRECISE=function(e){let t=iQ.PRECISE(e);return(0,S.VZ)(t)?t:1-t};let nx={};function nS(){return arguments.length<1?eX.na:1==arguments.length&&null===arguments[0]}function nC(e){return/^[01]{1,10}$/.test(e)}function nk(e){for(let t in eX)if(eX[t].message===e)return!0;return!!("number"==typeof e&&(isNaN(e)||!isFinite(e)))}function nI(e){return"[object Error]"===Object.prototype.toString.apply(e)&&(e=e.message),e!==eX.na.message&&nk(e)}function nA(e){return"[object Error]"===Object.prototype.toString.apply(e)&&(e=e.message),nk(e)}function nT(e){return!(1&Math.floor(Math.abs(e)))}function nE(e){return!0===e||!1===e}function nR(e){return"[object Error]"===Object.prototype.toString.apply(e)&&(e=e.message),e===eX.na.message}function nD(e){return"string"!=typeof e}function nO(e){return"number"==typeof e&&!isNaN(e)&&isFinite(e)}function nM(e){return!!(1&Math.floor(Math.abs(e)))}function nN(e){return"string"==typeof e}function nP(e){return nO(e)?e:!0===e?1:!1===e?0:nA(e)?e:0}function nL(){return eX.na}function nB(e){return null===e||nO(e)?1:nN(e)?2:nE(e)?4:nA(e)?16:Array.isArray(e)?64:void 0}function nF(){if(arguments.length<1)return eX.na;let e=e0(arguments),t=!0;for(let i=0;i<e.length;i++)e[i]||(t=!1);return t}function nV(){if(arguments.length<2)return eX.na;let e=Math.floor(arguments[0]);return e<1||e>254||arguments.length<e+1?eX.value:arguments[e]}function nz(){return!1}function nH(e,t,i){return arguments.length<2||arguments.length>3?eX.na:(2==arguments.length&&(i=!1),e?t:i)}function nW(){let e=arguments.length;if(e%2==1)return eX.na;for(let t=0;t<e;t+=2){let e=arguments[t];if(e)return nA(e)?e:arguments[t+1]}return eX.na}function nY(e,t){return nA(e)?t:e}function nU(e,t){return"[object Error]"===Object.prototype.toString.apply(e)&&(e=e.message),e===eX.na.message?t:e}function nG(e){return!e}function nZ(){if(arguments.length<1)return eX.na;let e=e0(arguments),t=!1;for(let i=0;i<e.length;i++)e[i]&&(t=!0);return t}function nj(){return!0}function nq(){if(arguments.length<1)return eX.na;let e=e0(arguments),t=0;for(let i=0;i<e.length;i++)e[i]&&t++;return!!(1&Math.floor(Math.abs(t)))}function nK(){let e;if(arguments.length>0){let t=arguments[0],i=arguments.length-1,n=Math.floor(i/2),o=!1,r=i%2==0?null:arguments[arguments.length-1];if(n){for(let i=0;i<n;i++)if(t===arguments[2*i+1]){e=arguments[2*i+2],o=!0;break}}!o&&r&&(e=r)}return e}nx.TYPE=function(e){switch("[object Error]"===Object.prototype.toString.apply(e)&&(e=e.message),e){case eX.nil.message:return 1;case eX.div0.message:return 2;case eX.value.message:return 3;case eX.ref.message:return 4;case eX.name.message:return 5;case eX.num.message:return 6;case eX.na.message:return 7;case eX.data.message:return 8}return eX.na};let nX=/~[?*]|[-/\\^$*+?.()|[\]{}]/g;function nQ(e){switch(e){case"~?":case"~*":return"\\"+e.charAt(1);case"*":return"[\\s\\S]*";case"?":return".";default:return"\\"+e.charAt(0)}}function n$(e){return e.indexOf("*")>-1||e.indexOf("?")>-1}function nJ(e){return RegExp(["^",e.replace(nX,nQ),"$"].join(""),"i")}function n0(e){return e!==this.cond}function n1(e){return null!==e&&e>this.cond}function n2(e){return null!==e&&e<this.cond}function n3(e){return null!==e&&e>=this.cond}function n4(e){return null!==e&&e<=this.cond}function n5(e){return this.cond===e}function n6(e){if((0,eI.Z)(e)){let t=e5(e);ti(t)||(e=t)}return n8.call(this,e)}function n8(e){return!(0,S.VZ)(e)&&this.cond===tr(e)}function n7(e){return"string"==typeof e&&this.cond.test(e)}function n9(e){return!n7.call(this,e)}function oe(e){return function(t){return"string"==typeof t&&e.call(this,t.toLowerCase())}}let ot=oe(n5);function oi(e){return!ot.call(this,e)}function on(e,t){switch(e){case"<>":return n0;case">":return n1;case"<":return n2;case">=":return n3;case"<=":return n4;default:return null===t?n5:n6}}function oo(){return!1}function or(e,t){let i=t,n=n8;if((0,A.Z)(t))n=n6;else if(""===t);else if((0,S.jn)(t)||(0,S.VZ)(t))n=n5;else if(null===t)n=oo;else{var o;let r=function(e){switch(e[0]){case"<":return">"===e[1]||"="===e[1]?e.substr(0,2):e[0];case">":return"="===e[1]?e.substr(0,2):e[0];case"=":return e[0];default:return}}(i=t.toString());r&&""===(i=i.substr(r.length))&&(i=null);let a=!0;if(null!==i){let t=e5(i);if(ti(t)){let n=e.getLocale().getDateParser().parse(i);n?t=(0,eJ.qC)(n.v):a=!1}i=a?t:(!r||"="===r||"<>"===r)&&n$(i)?nJ(i):i.toLowerCase()}n=a?on(r,i):(0,eI.Z)(i)?(o=i,"<>"===r?oi:oe(on(r,o))):"<>"===r?n9:n7}(n===n8||n===n6)&&(i=tr(i)),this.cond=i,this.test=n}var oa=i(26129),os=((o={})[o.OTHER=0]="OTHER",o[o.NUMBER=1]="NUMBER",o[o.STRING=2]="STRING",o[o.BOOLEAN=3]="BOOLEAN",o);function ol(e){return Array.isArray(e)?e.map(ol):(0,oa.Z)(e)?{error:e.message}:e}function oc(e){return Array.isArray(e)?e.map(oc):(0,oa.Z)(e)?(0,x.R)(e.error):e}function od(e){let t=e=>Array.isArray(e)?t(e[0]):(0,S.VZ)(e)?e.message:"boolean"==typeof e?e?"True":"False":"number"==typeof e?`${e}`:`"${e??""}"`;if(!Array.isArray(e))return t(e);let i=e.map(e=>Array.isArray(e)?e.map(t).join(", "):t(e)).join("; ");return`{${i}}`}let ou=Math.max(...Object.values(os).filter(A.Z))+1;function oh(e,t,i,n,o){let r=es(t).sort((t,r)=>(function e(t,i,n,o,r,a,s){if(r>=o)return a>s?1:-1;let l=t(a,r),c=t(s,r),[d,u]=[l,c].map(e=>(0,A.Z)(e)?os.NUMBER:(0,eI.Z)(e)?os.STRING:(0,S.jn)(e)?os.BOOLEAN:(0,S.VZ)(e)?ou:os.OTHER);if(l===c||d===os.OTHER&&u===os.OTHER)return e(t,i,n,o,r+1,a,s);if(d===os.OTHER||u===os.OTHER)return d===os.OTHER?1:-1;let h=(Array.isArray(n)?n[r]:n)?1:-1,p=1;return d!==u?p=d>u?1:-1:d===os.BOOLEAN?p=l?1:-1:d===os.NUMBER?p=l>c?1:-1:d===os.STRING?p=i.compare(l,c):d===ou&&(p=0),h*p})(e,n,o,i,0,t,r)),a=Array(r.length);for(let e=0;e<r.length;e++)a[r[e]]=e;return a}function op(e,t,i){void 0===t&&(t=!1),void 0===i&&(i=!1);let n=new Map,o=t?e[0].map((t,i)=>JSON.stringify(e.map(e=>e[i]))):e.map(e=>JSON.stringify(e)),r=Array(o.length).fill(!0);for(let e=0;e<o.length;e++){let t=o[e];if(!n.has(t)){n.set(t,e);continue}r[e]=!1,i&&(r[n.get(t)]=!1)}return r}let of={Exact:0,NextGreater:1,NextLittler:-1,Regex:2},og={Linear:1,ReversedLinear:-1,Binary:2,ReversedBinary:-2},om={number:1,string:2,boolean:3},ov=new $,ob=new $().assign({keepNull:!0});function oy(e,t){let i=om[typeof e],n=om[typeof t];return void 0===i||void 0===n?-1:i!==n?i<n?-1:1:(n===om.string&&(e=e.toLowerCase(),t=t.toLowerCase()),e===t?0:e<t?-1:1)}function ow(e,t){return-oy(e,t)}function o_(e,t){return"string"!=typeof e?-1:+(e.toLowerCase()!==t)}function ox(e,t){return"string"!=typeof e?-1:+!t.test(e)}function oS(e,t,i,n,o){let r;void 0===n&&(n=!1),void 0===o&&(o=!0);let a=-1;for(let s=0,l=t.getLength();s<l;s++){let c=n?l-s-1:s,d=t.getValue(c),u=i(d,e);if(0===u)return c;!o&&u>0&&(-1===a||0>i(d,r))&&(r=d,a=c)}return a}function oC(e,t,i,n,o){void 0===n&&(n=!0),void 0===o&&(o=null);let r=oy,a=!0;return(o?a=o>0:(o=t===of.Exact?og.Linear:t===of.NextLittler?og.Binary:og.ReversedBinary,a=t!==of.NextLittler),o===og.Binary||o===og.ReversedBinary)?(o===og.ReversedBinary&&(r=ow),function(e,t,i,n,o,r){void 0===n&&(n=!0),void 0===o&&(o=!0),void 0===r&&(r=!0);let a=0,s=t.getLength()-1;for(;a<=s;){let n=Math.floor((a+s)/2),o=i(t.getValue(n),e);if(0===o)if(a===s)return n;else r?s=n:a=n+1;else o>0?s=n-1:o<0&&(a=n+1)}return a<t.getLength()&&0===i(t.getValue(a),e)?a:s>=0&&0===i(t.getValue(s),e)?s:n?-1:o?s>=0?s:-1:a<t.getLength()?a:-1}(e,i,r,t===of.Exact,o*t<=0,a)):(t!==of.Exact?t<0&&(r=ow):"string"==typeof e&&(n&&n$(e)?(e=nJ(e),r=ox):(e=e.toLowerCase(),r=o_)),oS(e,i,r,o===og.ReversedLinear,t===of.Exact))}function ok(e,t,i){let n=arguments.length;if(n<2||n>3||null===e)return eX.na;let o={0:of.Exact,1:of.NextLittler,[-1]:of.NextGreater};if(n<3)i=of.NextLittler;else{if("number"!=typeof i)return eX.value;if(!(i in o))return eX.na;i=o[i]}let r=-1;if(t.isRef()){let[n,o,a]=oV(t),[s,l,c]=oz(t);o===a?r=this.createRowVector(n,ob,t.isImplicit,oC.bind(null,e,i)):l===c&&(r=this.createColumnVector(s,ob,t.isImplicit,oC.bind(null,e,i)))}else if(t.isArray()){let n=t.resolve();(1===n.length||n.every(e=>1===e.length))&&(r=oC(e,i,new oW(e0(n))))}return r<0?eX.na:r+1}function oI(e,t,i,n,o){let r=oC(e,t,i,n,o);return r<0?-1:r+i.getStartOffset()}function oA(e,t,i,n){let o=arguments.length;if(o<3||o>4||null===e)return eX.na;if("number"!=typeof i||null!=n&&"boolean"!=typeof n)return eX.value;let r=o<4||n?of.NextLittler:of.Exact,a=0,s=-1,l=eX.na;if(t.isRef()){let[n,o,c]=oV(t);if((a=o+i-1)>c)return eX.ref;l=(s=this.createRowVector(n,ob,t.isImplicit,oI.bind(null,e,r)))>-1?this.cellValue(en.fromCell({row:a,col:s},n.shName,t.isImplicit),ob):eX.na}else if(t.isArray()){let n=ts(t.resolve());if((a=i-1)>=n.length)return eX.ref;l=(s=oI(e,r,new oW(n[0])))>-1?n[a][s]:eX.na}return l}function oT(e,t,i,n){let o=arguments.length;if(o<3||o>4||null===e)return eX.na;if("number"!=typeof i||null!=n&&"boolean"!=typeof n)return eX.value;let r=o<4||n?of.NextLittler:of.Exact,a=-1,s=0,l=eX.na;if(t.isRef()){let[n,o,c]=oz(t);if((s=o+i-1)>c)return eX.ref;l=(a=this.createColumnVector(n,ob,t.isImplicit,oI.bind(null,e,r)))>-1?this.cellValue(en.fromCell({row:a,col:s},n.shName,t.isImplicit),ob):eX.na}else if(t.isArray()){let n=ts(t.resolve());if((s=i-1)>=n[0].length)return eX.ref;l=(a=oI(e,r,new oW(oH(n,0))))>-1?n[a][s]:eX.na}return l}function oE(e,t,i,n,o,r){let a,s=arguments.length;if(s<3||s>6)return eX.na;if(e=e??"",o=e5(o??0),r=e5(r??1),(0,S.VZ)(o)||(0,S.VZ)(r)||(o=Math.floor(o),r=Math.floor(r),!Object.values(of).includes(o)||!Object.values(og).includes(r)||o===of.Regex&&(r===og.Binary||r===og.ReversedBinary)))return eX.value;let l=o===of.Regex?of.Exact:o,c=o===of.Regex,d=eX.na,u=e=>{let{height:t,width:i}=el(e,this);return{height:t||1,width:i||1}},h=u(t),p=u(i);if(h.width>1&&h.height>1)return eX.value;let f=h.height>1;if(f?h.height!==p.height:h.width!==p.width)return eX.value;if(t.isRef()){let[e]=f?oz(t):oV(t);a=(f?this.createColumnVector.bind(this):this.createRowVector.bind(this))(e,ov,t.isImplicit,e=>e)}else if(t.isArray()){let e=ts(t.resolve());a=new oW(f?oH(e,0):e[0])}else{if(!t.isValue())return eX.value;a=new oW([t.v])}let g=oI(e,l,a,c,r)-a.getStartOffset();if(g<0)d=n??eX.na;else if(i.isRef()){let e,n,o=i.toCellRef(this)?.toRange(),r=!1;if(f){let t=o.from.row+g;e={row:t,col:o.from.col},n={row:t,col:o.to.col},r=p.width>1}else{let t=o.from.col+g;e={row:o.from.row,col:t},n={row:o.to.row,col:t},r=p.height>1}d=r?en.fromRange({from:e,to:n},o.shName,t.isImplicit):en.fromCell(e,o.shName,t.isImplicit)}else if(i.isArray()){let e=ts(i.resolve());d=f?p.width>1?[e[g]]:e[g][0]:p.height>1?oH(e,g).map(e=>[e]):e[0][g]}else{if(!i.isValue())return eX.value;d=i.v}return d}function oR(e,t,i,n){if(e=ts(e),t=e5(t??1),i=e5(i??1),n=e3(n??!1),tn(t,i,n))return eX.value;let o=n?e[0].length:e.length,r=n?e.length:e[0].length;if(t<1||t>r||1!==i&&-1!==i)return eX.value;let a=oh(i=>n?e[t-1][i]:e[i][t-1],o,1,this.getLocale().getCollator(),1===i);return oO(e,n,a)}function oD(e,t,i){if(arguments.length>3&&arguments.length%2!=1)return eX.value;e=ts(e),t=ts(t),i=e5(i??1);let n=t.length,o=t[0].length,r=n===e.length&&1===o,a=o===e[0].length&&1===n;if(!r&&!a||1!==i&&-1!==i)return eX.value;let s=[1===i];for(let e=3;e<arguments.length;e+=2){let t=ts(arguments[e]),i=e5(arguments[e+1]);if(t.length!==n||t[0].length!==o||1!==i&&-1!==i)return eX.value;s.push(1===i)}let l=oh((e,t)=>{let i=arguments[2*t+1];return i?a?i[0][e]:i[e][0]:null},a?o:n,s.length,this.getLocale().getCollator(),s);return oO(e,a,l)}function oO(e,t,i){let n=ea(e.length,e[0].length);for(let o=0;o<e.length;o++)for(let r=0;r<e[0].length;r++)t?n[o][i[r]]=e[o][r]:n[i[o]][r]=e[o][r];return n}function oM(e,t,i){e=ts(e);let n=(t=ts(t)).length===e.length&&1===t[0].length,o=t[0].length===e[0].length&&1===t.length;if(!n&&!o)return eX.value;let r=o?t[0].map(e3):t.map(e=>{let[t]=e;return e3(t)});return tn(...r)?eX.value:oN(e,r,o,i)}function oN(e,t,i,n){if(!t.some(e=>e))return n??eX.calc;let o=(e,i)=>t[i];return i?e.map(e=>e.filter(o)):e.filter(o)}function oP(e){return void 0===e?eX.na:(e=ts(e))[0].map((t,i)=>e.map(e=>e[i]))}function oL(){return 0==arguments.length?eX.na:Array.from(e0(arguments),e=>[e])}function oB(e,t,i){if(e=ts(e),tn(t=e3(t??!1),i=e3(i??!1)))return eX.value;let n=op(e,t,i);return oN(e,n,t)}function oF(e,t){if(!e||!t)return eX.na;let i=(0,I.wS)(t);return 1===i.size()&&i.get(0).isRange()?this.getExternalRange(e,H(i.get(0))):eX.ref}function oV(e){let t,i,n=e.toRange();return e.isCellRef()?(t=n.from.row,i=n.to.row,n.to.row=n.from.row):e.isRowRef()?(t=n.from,i=n.to,n.to=n.from):e.isColRef()&&(t=0,i=Number.MAX_VALUE,n=new k.lu({row:0,col:n.from},{row:0,col:n.to},n.shName)),[n,t,i]}function oz(e){let t,i,n=e.toRange();return e.isCellRef()?(t=n.from.col,i=n.to.col,n.to.col=n.from.col):e.isRowRef()?(t=0,i=Number.MAX_VALUE,n=new k.lu({row:n.from,col:0},{row:n.to,col:0},n.shName)):e.isColRef()&&(t=n.from,i=n.to,n.to=n.from),[n,t,i]}function oH(e,t){let i=[];for(let n=0;n<e.length;n++)i.push(e[n][t]);return i}class oW{constructor(e){this._array=e}getLength(){return this._array.length}getValue(e){return this._array[e]}getStartOffset(){return 0}}var oY=i(65430),oU=i(21944);function oG(){if(arguments.length<1)return eX.na;let e=[],t=e0(arguments),i=t.length;for(let n=0;n<i;n++)(0,A.Z)(t[n])&&e.push(t[n]);return t6.sum(t6(e).subtract(t6.mean(e)).abs()[0])/e.length}function oZ(){if(arguments.length<1)return eX.na;let e=e0(arguments),t=e.length,i=0,n=0;for(let o=0;o<t;o++)"number"==typeof e[o]&&(i+=e[o],++n);return 0===n?eX.div0:i/n}function oj(){let e=e0(arguments),t=e.length,i=0,n=0;for(let o=0;o<t;o++){let t=e[o];"number"==typeof t?i+=t:"string"!=typeof t||""===t||isNaN(t)?!0===t&&i++:i+=parseFloat(t),null!==t&&""!==t&&n++}return 0===n?eX.div0:i/n}let oq={};function oK(e,t,i,n,o){return oq.DIST(e,t,i,!0,n,o)}function oX(e,t,i,n,o){return(e=e5(e),t=e5(t),i=e5(i),tn(e,t,i,n=void 0===n?0:e5(n),o=void 0===o?1:e5(o)))?eX.value:t<=0||i<=0||e<=0||e>1||n===o?eX.num:t6.beta.inv(e,t,i)*(o-n)+n}oq.DIST=function(e,t,i,n,o,r){return arguments.length<4||(e=e5(e),t=e5(t),i=e5(i),tn(e,t,i,o=void 0===o?0:e5(o),r=void 0===r?1:e5(r)))?eX.value:t<=0||i<=0||e<o||e>r||o===r?eX.num:(e=(e-o)/(r-o),n?t6.beta.cdf(e,t,i):t6.beta.pdf(e,t,i)/(r-o))},oq.INV=oX;let oQ={};function o$(e,t,i,n){return void 0===n?eX.na:(e=e5(e),t=e5(t),i=e5(i),n=!!n,tn(e,t,i))?eX.value:(e=Math.floor(e),t=Math.floor(t),e<0||e>t||i<0||i>1)?eX.num:n?t6.binomial.cdf(e,t,i):t6.binomial.pdf(e,t,i)}oQ.DIST=o$,oQ.DIST.RANGE=function(e,t,i,n){if(n=void 0===n?i:n,e=e5(e),t=e5(t),tn(e,t,i=e5(i),n=e5(n)))return eX.value;let o=0;for(let r=i;r<=n;r++)o+=aU(e,r)*Math.pow(t,r)*Math.pow(1-t,e-r);return o},oQ.INV=function(e,t,i){if(e=e5(e),tn(e,t=e5(t),i=e5(i)))return eX.value;if(e<0||t<=0||t>=1||i<=0||i>=1)return eX.num;let n=0;for(;n<=e;){if(t6.binomial.cdf(n,e,t)>=i)return n;n++}};let oJ=oQ.INV,o0={};o0.DIST=function(e,t,i){return tn(e=e5(e),t=e5(t))?eX.value:e<0||t<1||t>1e10?eX.num:i?t6.chisquare.cdf(e,t):t6.chisquare.pdf(e,t)},o0.DIST.RT=function(e,t){return void 0===e||void 0===t?eX.na:tn(e=e5(e),t=e5(t))?eX.value:(t=Math.floor(t),e<0||t<1||t>1e10)?eX.num:1-t6.chisquare.cdf(e,t)},o0.INV=function(e,t){return tn(e=e5(e),t=e5(t))?eX.value:(t=Math.floor(t),e<0||e>1||t<1||t>1e10)?eX.num:t6.chisquare.inv(e,t)},o0.INV.RT=function(e,t){return void 0===e||void 0===t?eX.na:e<0||e>1||t<1||t>1e10?eX.num:"number"!=typeof e||"number"!=typeof t?eX.value:(t=Math.floor(t),t6.chisquare.inv(1-e,t))},o0.TEST=function(e,t){let i,n;if(2!=arguments.length)return eX.na;if(!Array.isArray(e)||!Array.isArray(t))return eX.value;if(e=ts(e),t=ts(t),e.length!==t.length)return eX.na;let o=e.length,r=e[0].length;if(1===o&&1===r)return eX.na;for(i=0;i<o;i++)if(e[i].length!==r||t[i].length!==r)return eX.na;let a=0,s=Math.PI;for(i=0;i<o;i++)for(n=0;n<r;n++){if((0,A.Z)(e[i][n])||(e[i][n]=0),!(0,A.Z)(t[i][n]))return eX.div0;a+=Math.pow(e[i][n]-t[i][n],2)/t[i][n]}return Math.round(1e9*function(e,t){let i=Math.exp(-.5*e);t%2==1&&(i*=Math.sqrt(2*e/s));let n=t;for(;n>=2;)i=i*e/n,n-=2;let o=i,r=t;for(;o>1e-10*i;)r+=2,i+=o=o*e/r;return 1-i}(a,1===r?o-1:1===o?r-1:(o-1)*(r-1)))/1e9};let o1=o0.DIST.RT,o2=o0.INV.RT,o3=o0.TEST;function o4(e){let t=Number.MAX_VALUE;if(e){let t=0,i=this.getInstance(e).countCols()-1;if(e.isCellRef())e.v.forEach(function(e){i=Math.min(i,e.col),t=Math.max(t,e.col)});else if(e.isRowRef())i=0,t=this.getInstance(e).countCols()-1;else if(e.isColRef())i=Math.min(e.v[0],e.v[1]),t=Math.max(e.v[0],e.v[1]);else if(e.isError())return e.v;else return eX.num;return i===t?i+1:[Array(t-i+1).fill(null).map((e,t)=>t+i+1)]}return this.item&&(t=this.item.getPosition().col),t!==Number.MAX_VALUE?t+1:eX.num}function o5(e){if(!e)return eX.num;let t=this.getInstance(e);if(e.isCellRef()){let t=ee(e.v);return t.to.col-t.from.col+1}if(e.isRowRef())return t.countCols();if(e.isColRef())return Math.min(Math.abs(e.v[1]-e.v[0])+1,t.countCols());if(e.isArray())return Array.isArray(e.v[0])?e.v[0].length:e.v.length;if(e.isError())return e.v;else return 1}function o6(e,t,i){return(e=e5(e),tn(e,t=e5(t),i=e5(i)))?eX.value:(i=Math.floor(i),e<=0||e>=1||t<=0||i<1)?eX.num:t6.normalci(1,e,t,i)[1]-1}function o8(e,t){return rX(e,t)}function o7(){let e=e0(arguments),t=e.length,i=0;for(;t--;)"number"==typeof e[t]&&++i;return i}function o9(){let e=e0(arguments),t=0;for(let i=0;i<e.length;i++)null!==e[i]&&t++;return t}function re(e,t){let i=0;for(let n=0;n<e.length;n++)e[n]===t&&i++;return i}function rt(e){let t=e0(e),i=0;for(let e=0;e<t.length;e++){let n=t[e];(null===n||""===n)&&i++}return i}function ri(){return oB(e0(arguments),!0)[0].length}function rn(e){if(!Array.isArray(e))return 0;let t=0;for(let i=0;i<e.length;i++)t+=Array.isArray(e[i])?rn(e[i]):1;return t}function ro(e,t){if(rn(e)!==rn(t))return eX.na;[e,t]=aI(e,t);let i=Math.min(e.length,t.length);if(0===i)return eX.div0;let n=t6.mean(e),o=t6.mean(t),r=0;for(let a=0;a<i;a++)r+=(e[a]-n)*(t[a]-o);return r/i}o6.NORM=o6,o6.T=function(e,t,i){return(e=e5(e),tn(e,t=e5(t),i=e5(i)))?eX.value:(i=Math.floor(i),e<=0||e>=1||t<=0||i<1)?eX.num:1===i?eX.div0:t6.tci(1,e,t,i)[1]-1};let rr={P:ro,S:function(e,t){return rn(e)!==rn(t)?eX.na:([e,t]=aI(e,t),e.length<=1||t.length<=1)?eX.div0:t6.covariance(e,t)}},ra=ro;function rs(){let e=aA(arguments),t=t6.mean(e),i=0;for(let n=0;n<e.length;n++)i+=Math.pow(e[n]-t,2);return i}let rl={};rl.DIST=function(e,t,i){return tn(e=e5(e),t=e5(t))?eX.value:e<0||t<=0?eX.num:i?t6.exponential.cdf(e,t):t6.exponential.pdf(e,t)};let rc=rl.DIST,rd={};function ru(e,t,i){let n=rd.DIST(e,t,i,!0);return(0,S.VZ)(n)?n:1-n}rd.DIST=function(e,t,i,n){return(e=e5(e),tn(e,t=e5(t),i=e5(i)))?eX.value:(t=Math.floor(t),i=Math.floor(i),e<0||t<1||t>=1e10||i<1||i>=1e10)?eX.num:n?t6.centralF.cdf(e,t,i):t6.centralF.pdf(e,t,i)},rd.DIST.RT=function(e,t,i){return"number"!=typeof e||"number"!=typeof t||"number"!=typeof i?eX.value:(t=Math.floor(t),i=Math.floor(i),e<0||t<1||i<1)?eX.num:1-t6.centralF.cdf(e,t,i)},rd.INV=function(e,t,i){return(e=e5(e),tn(e,t=e5(t),i=e5(i)))?eX.value:(t=Math.floor(t),i=Math.floor(i),e<0||e>=1||t<1||i<1)?eX.num:t6.centralF.inv(e,t,i)},rd.INV.RT=function(e,t,i){return 3!=arguments.length?eX.na:(e=e5(e),tn(e,t=e5(t),i=e5(i)))?eX.value:(t=Math.floor(t),i=Math.floor(i),e<=0||e>1||t<1||t>=1e10||i<1||i>=1e10)?eX.num:t6.centralF.inv(1-e,t,i)};let rh=rd.INV.RT;rd.TEST=function(e,t){let i,n,o;if(void 0===e||void 0===t||(e=aA(e),t=aA(t),!Array.isArray(e)||!Array.isArray(t)))return eX.na;if(e.length<2||t.length<2)return eX.div0;let r=function(e){let t=0;for(let i=0;i<e.length;i++)t+=e[i]*e[i];return t},a=sV(e),s=sV(t),l=(r(e)-a*a/e.length)/(e.length-1),c=(r(t)-s*s/t.length)/(t.length-1);return l<1e-15||c<1e-15?eX.div0:(l>c?(i=l/c,n=e.length-1,o=t.length-1):(i=c/l,n=t.length-1,o=e.length-1),2*rd.DIST.RT(i,n,o))};let rp=rd.TEST;function rf(e){return ti(e=e5(e))?e:e<=-1||e>=1?eX.num:Math.log((1+e)/(1-e))/2}function rg(e){if(ti(e=e5(e)))return e;let t=Math.exp(2*e);return(t-1)/(t+1)}function rm(e,t,i){if(e=e5(e),tn(e,t=e6(e0(t)),i=e6(e0(i))))return eX.value;if(t.length!==i.length)return eX.na;if(0===t6.variance(i))return eX.div0;let n=t6.mean(i),o=t6.mean(t),r=i.length,a=0,s=0;for(let e=0;e<r;e++)a+=(i[e]-n)*(t[e]-o),s+=Math.pow(i[e]-n,2);let l=a/s;return o-l*n+l*e}function rv(e,t){if(tn(e=e6(e0(e)),t=e6(e0(t))))return eX.value;let i=e.length,n=t.length,o=[];for(let r=0;r<=n;r++){o[r]=0;for(let a=0;a<i;a++)0===r?e[a]<=t[0]&&(o[0]+=1):r<n?e[a]>t[r-1]&&e[a]<=t[r]&&(o[r]+=1):r===n&&e[a]>t[n-1]&&(o[n]+=1)}return o}function rb(e){return ti(e=e5(e))?e:0===e||parseInt(e,10)===e&&e<0?eX.num:t6.gammafn(e)}rb.DIST=function(e,t,i,n){return 4!=arguments.length?eX.na:e<0||t<=0||i<=0?eX.num:"number"!=typeof e||"number"!=typeof t||"number"!=typeof i?eX.value:n?t6.gamma.cdf(e,t,i,!0):t6.gamma.pdf(e,t,i,!1)},rb.INV=function(e,t,i){return 3!=arguments.length?eX.na:e<0||e>=1||t<=0||i<=0?eX.num:"number"!=typeof e||"number"!=typeof t||"number"!=typeof i?eX.value:t6.gamma.inv(e,t,i)};let ry=rb.DIST,rw=rb.INV;function r_(e){return ti(e=e5(e))?e:e<=0?eX.num:t6.gammaln(e)}function rx(e){return ti(e=e5(e))?e:t6.normal.cdf(e,0,1)-.5}function rS(){if(arguments.length<1)return eX.na;let e=aA(arguments);for(let t=0;t<e.length;t++)if(e[t]<=0)return eX.num;return t6.geomean(e)}function rC(e,t,i,n){let o,r,a;if(ti(e=e6(e=e0(e))))return e;if(void 0===t)for(o=1,t=[];o<=e.length;o++)t.push(o);else t=e0(t);if(void 0===i)for(o=1,i=[];o<=e.length;o++)i.push(o);else i=e0(i);if(tn(t=e6(t),i=e6(i)))return eX.value;void 0===n&&(n=!0);let s=e.length,l=0,c=0,d=0,u=0;for(o=0;o<s;o++){let i=t[o],n=Math.log(e[o]);l+=i,c+=n,d+=i*n,u+=i*i}l/=s,c/=s,d/=s,u/=s,n?(r=(d-l*c)/(u-l*l),a=c-r*l):(r=d/u,a=0);let h=[];for(o=0;o<i.length;o++)h.push(Math.exp(a+r*i[o]));return h}function rk(){if(arguments.length<1)return eX.na;let e=aA(arguments),t=e.length,i=0;for(let n=0;n<t;n++){if(e[n]<=0)return eX.num;i+=1/e[n]}return t/i}r_.PRECISE=function(e){return 1!=arguments.length?eX.na:e<=0?eX.num:"number"!=typeof e?eX.value:t6.gammaln(e)};let rI={};function rA(e,t,i,n){return rI.DIST(e,t,i,n,!1)}function rT(e,t){return tn(e=e6(e0(e)),t=e6(e0(t)))?eX.value:e.length!==t.length?eX.na:rm(0,e,t)}function rE(){let e=aA(arguments),t=t6.mean(e),i=e.length,n=0;for(let o=0;o<i;o++)n+=Math.pow(e[o]-t,4);let o=t6.stdev(e,!0);return o<1e-15||i<4?eX.div0:i*(i+1)/((i-1)*(i-2)*(i-3))*(n/=Math.pow(o,4))-3*(i-1)*(i-1)/((i-2)*(i-3))}function rR(e,t){return(e=aA(e),t=Math.ceil(t=e5(t)),0===e.length||t<=0||t>e.length)?eX.num:tn(e,t)?e:e.sort(function(e,t){return t-e})[t-1]}function rD(e,t){let i;if(e=e6(e0(e)),void 0===t)for(i=0,t=[];i<e.length;i++)t[i]=i+1;else t=e6(e0(t));if(tn(e,t=e6(e0(t))))return eX.value;let n=t6.mean(e),o=t6.mean(t),r=t.length,a=0,s=0;for(i=0;i<r;i++)a+=(t[i]-o)*(e[i]-n),s+=Math.pow(t[i]-o,2);let l=a/s;return[l,n-l*o]}function rO(e,t){let i;if(e=e6(e0(e)),void 0===t)for(i=0,t=[];i<e.length;i++)t[i]=i+1;else t=e6(e0(t));if(tn(e,t))return eX.value;for(i=0;i<e.length;i++)e[i]=Math.log(e[i]);let n=rD(e,t);return n[0]=Math.round(1e6*Math.exp(n[0]))/1e6,n[1]=Math.round(1e6*Math.exp(n[1]))/1e6,n}rI.DIST=function(e,t,i,n,o){if(e=e5(e),t=e5(t),tn(e,t,i=e5(i),n=e5(n)))return eX.value;if(e=Math.floor(e),t=Math.floor(t),i=Math.floor(i),n=Math.floor(n),e<0||e>Math.min(t,i)||e<t-n+i||t<=0||t>n||i<0||i>n||n<=0)return eX.num;function r(e,t,i,n){return i<e||n-i<t-e||n<t?0:aU(i,e)*aU(n-i,t-e)/aU(n,t)}return o?function(e,t,i,n){let o=0;for(let a=0;a<=e;a++)o+=r(a,t,i,n);return o}(e,t,i,n):r(e,t,i,n)};let rM={};function rN(e,t,i){return rM.DIST(e,t,i,!0)}rM.DIST=function(e,t,i,n){return(e=e5(e),tn(e,t=e5(t),i=e5(i)))?eX.value:e<=0||i<=0?eX.num:n?t6.lognormal.cdf(e,t,i):t6.lognormal.pdf(e,t,i)},rM.INV=function(e,t,i){return(e=e5(e),tn(e,t=e5(t),i=e5(i)))?eX.value:e<=0||e>=1||i<=0?eX.num:t6.lognormal.inv(e,t,i)};let rP=rM.INV;function rL(){if(arguments.length<1)return eX.na;let e=aA(arguments);return 0===e.length?0:(0,oY.Z)(e)}function rB(){if(arguments.length<1)return eX.na;let e=to(e0(arguments));return 0===e.length?0:(0,oY.Z)(e)}function rF(){if(arguments.length<1)return eX.na;let e=to(e0(arguments));return t6.median(e)}function rV(){if(arguments.length<1)return eX.na;let e=aA(arguments);return 0===e.length?0:(0,oU.Z)(e)}function rz(){if(arguments.length<1)return eX.na;let e=to(e0(arguments));return 0===e.length?0:(0,oU.Z)(e)}function rH(){let e=e0(arguments),t=rH.MULT(e);return t instanceof Error?t:t.sort(function(e,t){return e-t})[0]}rH.MULT=function(){let e,t=aA(arguments);if(t instanceof Error)return t;let i=t.length,n={},o=[],r=0;for(let a=0;a<i;a++)n[e=t[a]]=n[e]?n[e]+1:1,n[e]>r&&(r=n[e],o=[]),n[e]===r&&(o[o.length]=e);return r<=1?eX.na:o},rH.SNGL=rH;let rW={};function rY(e,t,i){return rW.DIST(e,t,i,!1)}function rU(e,t,i,n){return(e=e5(e),tn(e,t=e5(t),i=e5(i)))?eX.value:i<=0?eX.num:n?t6.normal.cdf(e,t,i):t6.normal.pdf(e,t,i)}function rG(e,t,i){return(e=e5(e),tn(e,t=e5(t),i=e5(i)))?eX.value:e<=0||e>=1||i<=0?eX.num:t6.normal.inv(e,t,i)}rW.DIST=function(e,t,i,n){return(e=e5(e),tn(e,t=e5(t),i=e5(i)))?eX.value:(e=Math.floor(e),t=Math.floor(t),i<0||i>1||e<0||t<1)?eX.num:n?t6.negbin.cdf(e,t,i):t6.negbin.pdf(e,t,i)};let rZ={};function rj(e){return rZ.DIST(e,!0)}function rq(e){return ti(e=e5(e))?eX.value:e<=0||e>=1?eX.num:t6.normal.inv(e,0,1)}rZ.DIST=function(e,t){return ti(e=e5(e))?eX.value:t?t6.normal.cdf(e,0,1):t6.normal.pdf(e,0,1)},rZ.INV=rq;let rK={DIST:rU,INV:rG,S:rZ};function rX(e,t){if(t=e0(t),e=e0(e),0===t.length||0===e.length||t.length!==e.length)return eX.na;let i=0,n=0,o=0,r=0,a=0,s=0;for(let l=0;l<e.length;l++){let c=e5(t[l]),d=e5(e[l]);tn(c,d)||(i++,n+=c*c,o+=d*d,r+=c*d,a+=c,s+=d)}let l=r-a*s/i,c=n-Math.pow(a/i,2)*i,d=o-Math.pow(s/i,2)*i;return 0===i||c<1e-15||d<1e-15?eX.div0:l/Math.sqrt(c*d)}function rQ(e,t){if(tn(t=e5(t)))return eX.value;if(0===(e=aA(e)).length||t<0||t>1)return eX.num;let i=(e=e.sort(function(e,t){return e-t})).length;if(1===i)return e[0];let n=t*(i-1),o=Math.floor(n);return e2(n===o?e[n]:e[o]+(n-o)*(e[o+1]-e[o]))}let r$=rQ;function rJ(e,t,i){if(i=void 0===i?3:i,e=(e=e0(e||[])).filter(function(e){return!tn(e5(e))}),tn(e,t=e5(t),i=e5(i)))return eX.value;if((i=Math.floor(i))<1||0===e.length)return eX.num;if(t<(e=e.sort(function(e,t){return e-t}))[0]||t>e[e.length-1])return eX.na;let n=oB(e,!0)[0],o=e.length,r=n.length,a=Math.pow(10,i),s=0,l=!1,c=0;if(1===o)return 1;for(;!l&&c<r;)t===n[c]?(s=e.indexOf(n[c])/(o-1),l=!0):t>=n[c]&&(t<n[c+1]||c===r-1)&&(s=(e.indexOf(n[c])+(t-n[c])/(n[c+1]-n[c]))/(o-1),l=!0),c++;return Math.floor(s*a)/a}r$.EXC=function(e,t){if(tn(e=aA(e),t=e5(t)))return eX.value;let i=(e=e.sort(function(e,t){return e-t})).length;if(1===i)return e[0];if(t<1/(i+1)||t>1-1/(i+1))return eX.num;let n=t*(i+1)-1,o=Math.floor(n);return e2(n===o?e[n]:e[o]+(n-o)*(e[o+1]-e[o]))},r$.INC=rQ;let r0=rJ;function r1(e,t){return tn(e=e5(e),t=e5(t))?eX.value:(e=Math.floor(e),t=Math.floor(t),e<=0||t<0||e<t)?eX.num:a3(e)/a3(e-t)}function r2(e,t){return tn(e=e5(e),t=e5(t))?eX.value:e<0||t<0?eX.num:Math.pow(e,t)}function r3(e){return ti(e=e5(e))?eX.value:Math.exp(-.5*e*e)/2.5066282746310002}function r4(e,t,i){return tn(e=e5(e),t=e5(t))?eX.value:(e=Math.floor(e))<0||t<0?eX.num:i?t6.poisson.cdf(e,t):t6.poisson.pdf(e,t)}function r5(e,t,i,n){if(n=void 0===n?i:n,e=e0(e||[]),t=e0(t||[]),tn(i=e5(i),n=e5(n)))return eX.value;if(0===e.length||0===t.length||e.length!==t.length)return eX.na;let o=0,r=0;for(let a=0;a<e.length;a++){let s=e5(e[a]),l=e5(t[a]);if(!tn(s,l)){if(l<=0||l>1)return eX.num;o+=l,s<=n&&s>=i&&(r+=l)}}return 0===o?eX.div0:Math.abs(o-1)>1e-15?eX.num:r}function r6(e,t){return tn(e=aA(e),t=e5(t))?eX.value:0===e.length||(t=Math.floor(t))<0||t>4?eX.num:r$.INC(e,.25*t)}r0.EXC=function(e,t,i){if(i=void 0===i?3:i,e=(e=e0(e||[])).filter(function(e){return!tn(e5(e))}),tn(e,t=e5(t),i=e5(i)))return eX.value;if((i=Math.floor(i))<1||0===e.length)return eX.num;if(t<(e=e.sort(function(e,t){return e-t}))[0]||t>e[e.length-1])return eX.na;let n=oB(e,!0)[0],o=e.length,r=n.length,a=Math.pow(10,i),s=0,l=!1,c=0;if(1===o)return 1;for(;!l&&c<r;)t===n[c]?(s=(e.indexOf(n[c])+1)/(o+1),l=!0):t>=n[c]&&(t<n[c+1]||c===r-1)&&(s=(e.indexOf(n[c])+1+(t-n[c])/(n[c+1]-n[c]))/(o+1),l=!0),c++;return Math.floor(s*a)/a},r0.INC=rJ,r4.DIST=r4;let r8=r6;function r7(e,t,i){if(tn(e=e5(e),t=aA(t)))return eX.value;let n=(i=i||!1)?function(e,t){return e-t}:function(e,t){return t-e},o=(t=t.sort(n)).indexOf(e);return -1===o?eX.na:o+1}function r9(e){let t=Number.MAX_VALUE;if(e){let t=0,i=this.getInstance(e).countRows()-1;if(e.isCellRef())e.v.forEach(function(e){i=Math.min(i,e.row),t=Math.max(t,e.row)});else if(e.isRowRef())i=Math.min(e.v[0],e.v[1]),t=Math.max(e.v[0],e.v[1]);else if(e.isColRef())i=0,t=this.getInstance(e).countRows()-1;else if(e.isError())return e.v;else return eX.num;return i===t?i+1:Array(t-i+1).fill(null).map((e,t)=>[t+i+1])}return this.item&&(t=this.item.getPosition().row),t!==Number.MAX_VALUE?t+1:eX.num}function ae(e){if(!e)return eX.num;let t=this.getInstance(e);if(e.isCellRef()){let t=ee(e.v);return t.to.row-t.from.row+1}if(e.isRowRef())return Math.min(Math.abs(e.v[1]-e.v[0])+1,t.countRows());if(e.isColRef())return t.countRows();if(e.isArray())return e.v.length;if(e.isError())return e.v;else return 1}function at(e,t){let i=rX(e,t);return(0,S.VZ)(i)?i:i*i}function ai(){let e=aA(arguments);if(e.length<3)return eX.div0;let t=t6.mean(e),i=e.length,n=0;for(let o=0;o<i;o++)n+=Math.pow(e[o]-t,3);let o=t6.stdev(e,!0);return o<1e-15?eX.div0:i*n/((i-1)*(i-2)*Math.pow(o,3))}function an(e,t){if(e=e0(e),t=e0(t),0===e.length||0===t.length||e.length!==t.length)return eX.na;let i=0,n=0,o=0,r=0,a=0;for(let s=0;s<t.length;s++){let l=e5(e[s]),c=e5(t[s]);tn(l,c)||(i++,n+=c*c,o+=l*c,r+=l,a+=c)}let s=o-r*a/i,l=n-a*a/i;return 0===i||l<1e-15?eX.div0:s/l}function ao(e,t){return(e=aA(e),t=Math.floor(t=e5(t)),0===e.length||t<=0||t>e.length)?eX.num:e.sort(function(e,t){return e-t})[t-1]}function ar(e,t,i){return(e=e5(e),tn(e,t=e5(t),i=e5(i)))?eX.value:i<=1e-15?eX.num:(e-t)/i}function aa(){if(arguments.length<1)return eX.na;let e=ay.apply(this,arguments);return e instanceof Error?e:Math.sqrt(e)}function as(){if(arguments.length<1)return eX.na;let e=ab.apply(this,arguments);return e instanceof Error?e:Math.sqrt(e)}r8.INC=r6,r8.EXC=function(e,t){return tn(e=aA(e),t=e5(t))?eX.value:0===e.length||(t=Math.floor(t))<=0||t>=4?eX.num:r$.EXC(e,.25*t)},r7.EQ=r7,r7.AVG=function(e,t,i){if(tn(e=e5(e),t=aA(t)))return eX.value;t=e0(t);let n=(i=i||!1)?function(e,t){return e-t}:function(e,t){return t-e},o=(t=t.sort(n)).length,r=0;for(let i=0;i<o;i++)t[i]===e&&r++;return 0===r?eX.na:r>1?(2*t.indexOf(e)+r+1)/2:t.indexOf(e)+1},ai.P=function(){let e=aA(arguments);if(e.length<3)return eX.div0;let t=t6.mean(e),i=e.length,n=0,o=0;for(let r=0;r<i;r++)o+=Math.pow(e[r]-t,3),n+=Math.pow(e[r]-t,2);return(o/=i,(n/=i)<1e-15)?eX.div0:o/Math.pow(n,1.5)};let al=aa;function ac(){if(arguments.length<1)return eX.na;let e=aw.apply(this,arguments);return e instanceof Error?e:Math.sqrt(e)}function ad(){if(arguments.length<1)return eX.na;let e=ax.apply(this,arguments);return e instanceof Error?e:Math.sqrt(e)}function au(e,t){if(e=e0(e),t=e0(t),0===e.length||0===t.length||e.length!==t.length)return eX.na;let i=0,n=0,o=0,r=0,a=0,s=0;for(let l=0;l<t.length;l++){let c=e5(e[l]),d=e5(t[l]);tn(c,d)||(i++,n+=c*c,o+=d*d,r+=c*d,a+=c,s+=d)}let l=n-Math.pow(a,2)/i,c=o-Math.pow(s,2)/i,d=r-a*s/i;return i<3||c<1e-15?eX.div0:Math.sqrt((l-Math.pow(d,2)/c)/(i-2))}al.S=aa,al.P=as;let ah=iS;function ap(e,t,i){return tn(e=e5(e),t=e5(t))?eX.value:1!==i&&2!==i?eX.num:1===i?ah.DIST.RT(e,t):ah.DIST["2T"](e,t)}function af(e,t){return ah.INV["2T"](e,t)}function ag(e,t,i,n){let o,r,a;if(i=e5(i),n=e5(n),tn(e=e6(e0(e)),t=e6(e0(t)),i,n))return eX.value;if(e.length<=1||t.length<=1)return eX.div0;if(i=Math.floor(i),n=Math.floor(n),i<1||i>2||n<1||n>3)return eX.num;if(1===n&&e.length!==t.length)return eX.na;let s=0,l=0,c=0,d=0;if(2===n){for(o=0;o<e.length;o++)l+=e[o],s+=Math.pow(e[o],2);for(o=0;o<t.length;o++)d+=t[o],c+=Math.pow(t[o],2);s=(s-l*l/e.length)/(e.length-1),c=(c-d*d/t.length)/(t.length-1),r=Math.abs(l/e.length-d/t.length)/Math.sqrt((e.length-1)*s+(t.length-1)*c)*Math.sqrt(e.length*t.length*(e.length+t.length-2)/(e.length+t.length)),a=e.length+t.length-2}else if(3===n){for(o=0;o<e.length;o++)l+=e[o],s+=Math.pow(e[o],2);for(o=0;o<t.length;o++)d+=t[o],c+=Math.pow(t[o],2);s=(s-l*l/e.length)/(e.length-1)/e.length,c=(c-d*d/t.length)/(t.length-1)/t.length,r=Math.abs(l/e.length-d/t.length)/Math.sqrt(s+c);let i=s/(s+c);a=1/(i*i/(e.length-1)+(1-i)*(1-i)/(t.length-1))}else{for(o=0;o<e.length;o++)l+=e[o],d+=t[o],s+=Math.pow(e[o]-t[o],2);r=Math.sqrt(e.length-1)*Math.abs(l-d)/Math.sqrt(e.length*s-Math.pow(l-d,2)),a=e.length-1}return 1===i?ah.DIST.RT(r,a):ah.DIST["2T"](r,a)}function am(e,t,i){let n;if(e=e6(e0(e)),void 0===t)for(n=0,t=[];n<e.length;n++)t[n]=n+1;else t=e6(e0(t));if(void 0===i)for(n=0,i=[];n<e.length;n++)i[n]=n+1;else i=e6(e0(i));if(tn(e,t,i))return eX.value;let o=rD(e,t),r=o[0],a=o[1],s=[];return i.forEach(function(e){s.push(r*e+a)}),s}function av(e,t){if(tn(e=aA(e),t=e5(t)))return eX.value;if(t<0||t>=1)return eX.num;if(0===e.length)return eX.div0;let i=a5(e.length*t,2)/2,n=e.sort((e,t)=>e-t);return t6.mean(n.slice(i,n.length-i))}function ab(){if(arguments.length<1)return eX.na;let e=aA(arguments),t=e.length;if(t<=0)return eX.div0;let i=0,n=oZ(e);for(let o=0;o<t;o++)i+=Math.pow(e[o]-n,2);return i/t}function ay(){if(arguments.length<1)return eX.na;let e=aA(arguments),t=e.length;if(t<=1)return eX.div0;let i=0,n=oZ(e);for(let o=0;o<t;o++)i+=Math.pow(e[o]-n,2);return i/(t-1)}function aw(){if(arguments.length<1)return eX.na;let e=e0(arguments),t=e.length,i=0,n=0,o=oj(e);for(let r=0;r<t;r++){let t=e[r];"number"==typeof t?i+=Math.pow(t-o,2):!0===t?i+=Math.pow(1-o,2):i+=Math.pow(0-o,2),null!==t&&n++}return n<=1?eX.div0:i/(n-1)}ah.DIST=function(e,t,i){return tn(e=e5(e),t=e5(t))?eX.value:t<1?eX.num:i?t6.studentt.cdf(e,t):t6.studentt.pdf(e,t)},ah.DIST["2T"]=function(e,t){return 2!=arguments.length?eX.na:e<0||t<1?eX.num:"number"!=typeof e||"number"!=typeof t?eX.value:(1-t6.studentt.cdf(e,t))*2},ah.DIST.RT=function(e,t){return 2!=arguments.length?eX.na:e<0||t<1?eX.num:"number"!=typeof e||"number"!=typeof t?eX.value:1-t6.studentt.cdf(e,t)},ah.INV=function(e,t){return tn(e=e5(e),t=e5(t))?eX.value:(t=Math.floor(t),e<=0||e>=1||t<1)?eX.num:t6.studentt.inv(e,t)},ah.INV["2T"]=function(e,t){return tn(e=e5(e),t=e5(t))?eX.value:(t=Math.floor(t),e<=0||e>=1||t<1)?eX.num:Math.abs(t6.studentt.inv(e/2,t))},ah.TEST=ag;let a_=ay;function ax(){if(arguments.length<1)return eX.na;let e=e0(arguments),t=e.length,i=0,n=0,o=oj(e);for(let r=0;r<t;r++){let t=e[r];"number"==typeof t?i+=Math.pow(t-o,2):!0===t?i+=Math.pow(1-o,2):i+=Math.pow(0-o,2),null!==t&&n++}return n<=0?eX.div0:i/n}function aS(e,t,i,n){return(e=e5(e),tn(e,t=e5(t),i=e5(i)))?eX.value:e<0||t<=0||i<=0?eX.num:n?1-Math.exp(-Math.pow(e/i,t)):Math.pow(e,t-1)*Math.exp(-Math.pow(e/i,t))*t/Math.pow(i,t)}function aC(e,t,i){if(tn(e=aA(e),t=e5(t)))return eX.value;if(e.length<=0)return eX.div0;if(i<=0)return eX.num;if(i=i??al.S(e),(0,S.VZ)(i))return i;if(i<=0)return eX.div0;let n=e.length;return 1-rK.S.DIST((oZ(e)-t)/(i/Math.sqrt(n)),!0)}a_.S=ay,a_.P=ab,aS.DIST=aS;let ak={TEST:aC};function aI(e,t){let i=[],n=[];e=e0(e),t=e0(t);for(let o=0;o<e.length;o++){let r=e5(e[o]),a=e5(t[o]);ti(r)||ti(a)||(i.push(r),n.push(a))}return[i,n]}function aA(e){e=e0(e);let t=[];if(!e)return t;for(let i=0,n=e.length;i<n;i++){let n=e[i];if("number"==typeof n)t.push(n);else if("string"==typeof n){let e=e5(n);ti(e)||t.push(e)}}return t}var aT=i(3073);function aE(e){return ti(e=e5(e))?e:Math.abs(e5(e))}function aR(e){return ti(e=e5(e))?e:e<-1||e>1?eX.num:Math.acos(e)}function aD(e){return ti(e=e5(e))?e:e<1?eX.num:Math.log(e+Math.sqrt(e*e-1))}function aO(e){return ti(e=e5(e))?e:Math.atan(1/e)}function aM(e){return ti(e=e5(e))?e:e<-1||e>1?.5*Math.log((e+1)/(e-1)):eX.num}function aN(e,t,i,n){if(e=e5(e),t=e5(e),tn(e,t))return eX.value;switch(e){case 1:return oZ(i);case 2:return o7(i);case 3:return o9(i);case 4:return rL(i);case 5:return rV(i);case 6:return sc(i);case 7:return al.S(i);case 8:return al.P(i);case 9:return sV(i);case 10:return a_.S(i);case 11:return a_.P(i);case 12:return rF(i);case 13:return rH.SNGL(i);case 14:return rR(i,n);case 15:return ao(i,n);case 16:return r$.INC(i,n);case 17:return r8.INC(i,n);case 18:return r$.EXC(i,n);case 19:return r8.EXC(i,n)}}function aP(e){if(e=e.toUpperCase(),!/^M*(?:D?C{0,3}|C[MD])(?:L?X{0,3}|X[CL])(?:V?I{0,3}|I[XV])$/.test(e))return eX.value;let t=0;return e.replace(/[MDLV]|C[MD]?|X[CL]?|I[XV]?/g,function(e){t+=({M:1e3,CM:900,D:500,CD:400,C:100,XC:90,L:50,XL:40,X:10,IX:9,V:5,IV:4,I:1})[e]}),t}function aL(e){return(e=e5(e))instanceof Error?e:e>1||e<-1?eX.num:Math.asin(e)}function aB(e){return(e=e5(e))instanceof Error?e:Math.log(e+Math.sqrt(e*e+1))}function aF(e){return(e=e5(e))instanceof Error?e:Math.atan(e)}function aV(e,t){return tn(e=e5(e),t=e5(t))?eX.value:0===e&&0===t?eX.div0:Math.atan2(t,e)}function az(e){return(e=e5(e))instanceof Error?e:e>=1||e<=-1?eX.num:Math.log((1+e)/(1-e))/2}function aH(e,t,i){if(i=i||0,e=e5(e),tn(e,t=e5(t),i=e5(i)))return eX.value;if(i=void 0===i?0:i,e<0||t<2||t>36||i<0)return eX.num;let n=e.toString(t);return Array(Math.max(i+1-n.length,0)).join("0")+n}function aW(e,t){let i=Math.sign(e),n=(e=Math.abs(e))/t,o=Math.floor(n),r=5*Math.pow(10,Math.floor(Math.log10(Math.abs(n)))-15);return n-o>r&&(o+=1),i*o*t}function aY(e,t){return tn(e=e5(e),t=e5(t))?eX.value:aY.MATH(e,t,+(t<0))}function aU(e,t){return tn(e=e5(e),t=e5(t))?eX.value:e<0||t<0||t>e?eX.num:a3(e)/(a3(t)*a3(e-t))}function aG(e,t){return tn(e=e5(e),t=e5(t))?eX.value:0===e&&0===t?1:aU(e+t-1,e-1)}function aZ(e){return(e=e5(e))instanceof Error?e:Math.cos(e)}function aj(e){return(e=e5(e))instanceof Error?e:(Math.exp(e)+Math.exp(-e))/2}function aq(e){return(e=e5(e))instanceof Error?e:1/Math.tan(e)}function aK(e){if((e=e5(e))instanceof Error)return e;if(e>15)return 1;let t=Math.exp(2*e);return(t+1)/(t-1)}function aX(e){return(e=e5(e))instanceof Error?e:1/Math.sin(e)}function aQ(e){return(e=e5(e))instanceof Error?e:2/(Math.exp(e)-Math.exp(-e))}function a$(e,t){if(arguments.length<1)return eX.value;(void 0===e||""===e)&&(e="0");let i=parseInt(e,t);return Number.isNaN(i)?eX.num:i}function aJ(e){return(e=e5(e))instanceof Error?e:180*e/Math.PI}function a0(e){return(e=e5(e))instanceof Error?e:aY(e,-2)}aY.MATH=function(e,t,i){return(e=e5(e),tn(e,i=void 0===i?0:e5(i),t=void 0===t?1:e5(Math.abs(t))))?eX.value:0===t||0===e?0:e<0&&0===i?a4(e,t):aW(e,t)},aY.PRECISE=function(e,t){return aY.MATH(e,t,0)};let a1=Math.exp,a2=[1,1];function a3(e){let t;if((e=e5(e))instanceof Error)return e;let i=Math.floor(e);if(i<0)return eX.num;for(let e=a2.length;e<=i;e++){if(!isFinite(t=a2[e-1]*e))return eX.na;a2[e]=t}return a2[i]}function a4(e,t){let i=Math.sign(e),n=(e=Math.abs(e))/t,o=5*Math.pow(10,Math.floor(Math.log10(Math.abs(n)))-15);return i*Math.floor(n+o)*t}function a5(e,t){return tn(e=e5(e),t=e5(t))?eX.value:0>t&&0<e?eX.num:a5.MATH(e,t,+(t<0))}function a6(){if(arguments.length<1)return eX.na;let e=e8(arguments);if(e instanceof Error)return e;if(0===e.length||e.every(e=>0===e))return 0;let t=e.length,i=e[0],n=i<0?-i:i;for(let i=1;i<t;i++){let t=e[i],o=t<0?-t:t;for(;n&&o;)n>o?n%=o:o%=n;n+=o}return n}function a8(e){return(e=e5(e))instanceof Error?e:Math.floor(e)}a5.MATH=function(e,t,i){return(e=e5(e),tn(e,t=void 0===t?1:e5(Math.abs(t)),i=void 0===i?0:e5(i)))?eX.value:0===t||0===e?0:e<0&&0===i?aW(e,t):a4(e,t)},a5.PRECISE=function(e,t){return a5.MATH(e,t,0)};let a7={CEILING:function(e,t){return aY.MATH(e,t)}};function a9(){if(arguments.length<1)return eX.na;let e=e8(arguments);if(e instanceof Error)return e;if(0===e.length||e.includes(0))return 0;for(var t,i,n,o,r=1;void 0!==(n=e.pop());)for(;n>1;){if(n%2){for(t=3,i=Math.floor(Math.sqrt(n));t<=i&&n%t;t+=2);o=t<=i?t:n}else o=2;for(n/=o,r*=o,t=e.length;t;e[--t]%o==0&&1==(e[t]/=o)&&e.splice(t,1));}return r}function se(e){return(e=e5(e))instanceof Error?e:e<=0?eX.num:Math.log(e)}function st(e,t){return tn(e=e5(e),t=void 0===t?10:e5(t))?eX.value:e<=0||t<=0?eX.num:Math.log(e)/Math.log(t)}function si(e){return(e=e5(e))instanceof Error?e:e<=0?eX.num:Math.log(e)/Math.log(10)}function sn(e,t){return tn(e=e5(e),t=e5(t))?eX.value:0===t?eX.div0:e-t*Math.floor(e/t)}function so(e,t){if(tn(e=e5(e),t=e5(t)))return eX.value;if(e*t<0)return eX.num;let i=e+t/2,n=Math.sign(i),o=Math.pow(10,Math.floor(Math.log10(Math.abs(i)))-15+1),r=.5*n*o,a=(i+r)/o,s=(a=a/Math.abs(a)*Math.floor(Math.abs(a)))*o/t;return r=s/Math.abs(s)*5*Math.pow(10,Math.floor(Math.log10(Math.abs(s)))-15),s+=r,(s|=s)*t}function sr(){if(arguments.length<1)return eX.na;let e=e8(arguments);if(e instanceof Error)return e;if(0===e.length||e.every(e=>0===e))return 1;let t=0,i=1;for(let n=0;n<e.length;n++)t+=e[n],i*=a3(e[n]);return a3(t)/i}function sa(e){if((e=e5(e))instanceof Error)return e;let t=Math.ceil(Math.abs(e));return t=1&t?t:t+1,e>=0?t:-t}function ss(){return 0!=arguments.length?eX.na:Math.PI}function sl(e,t){if(2!=arguments.length)return eX.na;if(t??=0,"number"!=typeof(e??=0)||"number"!=typeof t)return eX.value;if(0===e&&0===t)return eX.num;if(0===e&&t<0)return eX.div0;let i=Math.pow(e,t);return isNaN(i)?eX.num:i}function sc(){let e=e0(arguments),t=!1,i=1;for(let n=0;n<e.length;n++)"number"==typeof e[n]&&(t=!0,i*=e[n]);return t?i:0}function sd(e,t){return tn(e=e5(e),t=e5(t))?eX.value:0===t?eX.div0:parseInt(e/t,10)}function su(e){return(e=e5(e))instanceof Error?e:e*Math.PI/180}function sh(){return globalThis.crypto.getRandomValues(new Uint32Array(1))[0]/0x100000000}function sp(){return arguments.length>0?eX.na:sh()}function sf(e,t,i,n,o){if(e=e5(e??1),t=e5(t??1),i=e5(i??0),n=e5(n??1),o=e3(o??!1),tn(e,t,i,n,o)||i>n||e<1||t<1||o&&(!Number.isInteger(i)||!Number.isInteger(n)))return eX.value;let r=o?()=>Math.floor(sh()*(n-i+1)+i):()=>sh()*(n-i)+i;return Array.from({length:e},()=>Array.from({length:t},r))}function sg(e,t){return tn(e=e5(e),t=e5(t))?eX.value:e+Math.ceil((t-e+1)*Math.random())-1}function sm(e,t){if(tn(e=e5(e),t=void 0===t||!0===t?0:!1===t?4:e5(t))||t<0||t>4||0>e||3999<e)return eX.value;let i=String(e).split(""),n=["","C","CC","CCC","CD","D","DC","DCC","DCCC","CM","","X","XX","XXX","XL","L","LX","LXX","LXXX","XC","","I","II","III","IV","V","VI","VII","VIII","IX"],o="",r=3;for(;r--;)o=(n[+i.pop()+10*r]||"")+o;let a=Array(+i.join("")+1).join("M")+o;return t>0&&(a=(a=(a=(a=(a=a.replace(/XLV/g,"VL")).replace(/XCV/g,"VC")).replace(/CDL/g,"LD")).replace(/CML/g,"LM")).replace(/CMVC/g,"LMVL")),1===t&&(a=(a=(a=(a=(a=a.replace(/CDXC/g,"LDXL")).replace(/CDVC/g,"LDVL")).replace(/CMXC/g,"LMXL")).replace(/XCIX/g,"VCIV")).replace(/XLIX/g,"VLIV")),t>1&&(a=(a=(a=(a=(a=(a=(a=(a=a.replace(/XLIX/g,"IL")).replace(/XCIX/g,"IC")).replace(/CDXC/g,"XD")).replace(/CDVC/g,"XDV")).replace(/CDIC/g,"XDIX")).replace(/LMVL/g,"XMV")).replace(/CMIC/g,"XMIX")).replace(/CMXC/g,"XM")),t>2&&(a=(a=(a=(a=a.replace(/XDV/g,"VD")).replace(/XDIX/g,"VDIV")).replace(/XMV/g,"VM")).replace(/XMIX/g,"VMIV")),4===t&&(a=(a=a.replace(/VDIV/g,"ID")).replace(/VMIV/g,"IM")),a}function sv(e,t){if(tn(e=e5(e),t=e5(t)))return eX.value;let i=Math.pow(10,-t),n=Math.sign(e);return a4(e+=n*i/2,i)}function sb(e,t){return tn(e=e5(e),t=e5(t))?eX.value:a4(e,Math.pow(10,-t))}function sy(e,t){return tn(e=e5(e),t=e5(t))?eX.value:aW(e,Math.pow(10,-t))}function sw(e){return(e=e5(e))instanceof Error?e:1/Math.cos(e)}function s_(e){return(e=e5(e))instanceof Error?e:2/(Math.exp(e)+Math.exp(-e))}function sx(e,t,i,n){if(e=e5(e),t=e5(t),i=e5(i),n=e0(n),!(0,aT.Z)(n))return n*Math.pow(e,t);let o=n[0]*Math.pow(e,t);for(let r=1;r<n.length;r++)o+=n[r]*Math.pow(e,t+r*i);return o}function sS(e){return(e=e5(e))instanceof Error?e:e<0?-1:+(0!==e)}function sC(e){return(e=e5(e))instanceof Error?e:Math.sin(e)}function sk(e){return(e=e5(e))instanceof Error?e:(Math.exp(e)-Math.exp(-e))/2}function sI(e){return(e=e5(e))instanceof Error?e:e<0?eX.num:Math.sqrt(e)}function sA(e){return(e=e5(e))instanceof Error?e:e<0?eX.num:Math.sqrt(e*Math.PI)}function sT(e){if((e=e5(e))instanceof Error)return e;let t=Array.prototype.slice.call(arguments,1);switch(e){case 1:case 101:return oZ(t);case 2:case 102:return o7(t);case 3:case 103:return o9(t);case 4:case 104:return rL(t);case 5:case 105:return rV(t);case 6:case 106:return sc(t);case 7:case 107:return al.S(t);case 8:case 108:return al.P(t);case 9:case 109:return sV(t);case 10:case 110:return a_.S(t);case 11:case 111:return a_.P(t)}return eX.value}function sE(e,t){return 2!=arguments.length?eX.na:tn(e=e5(e),t=e5(t))?eX.value:e+t}function sR(e,t){return 2!=arguments.length?eX.na:tn(e=e5(e),t=e5(t))?eX.value:e-t}function sD(e,t){return 2!=arguments.length?eX.na:tn(e=e5(e),t=e5(t))?eX.value:0===t?eX.div0:e/t}function sO(e,t){return 2!=arguments.length?eX.na:tn(e=e5(e),t=e5(t))?eX.value:e*t}function sM(e,t){return 2!=arguments.length?eX.na:tn(e=e5(e),t=e5(t))?eX.value:e>=t}function sN(e,t){return 2!=arguments.length?eX.na:tn(e=e5(e),t=e5(t))?eX.value:e<t}function sP(e,t){return 2!=arguments.length?eX.na:tn(e=e5(e),t=e5(t))?eX.value:e<=t}function sL(e,t){return 2!=arguments.length?eX.na:e===t}function sB(e,t){return 2!=arguments.length?eX.na:e!==t}function sF(e,t){return 2!=arguments.length?eX.na:tn(e=e5(e),t=e5(t))?eX.value:sl(e,t)}function sV(){let e=0,t=e0(arguments);for(let i=0;i<t.length;++i)"number"==typeof t[i]&&(e+=t[i]);return e}function sz(){let e,t,i,n,o,r=0,a=!1,s=arguments.length;if(s<1)return eX.value;let l=[];for(n=0;n<s;n++)l[n]=ts(arguments[n]);let c=l[0].length,d=l[0][0].length;for(n=0;n<s;n++){if(l[n].length!==c)return eX.value;for(t=0;t<c;t++)if(l[n][t].length!==d)return eX.value}for(t=0;t<c;t++)for(i=0;i<d;i++){for(n=0,e=1,a=!0;n<s;n++){if(o=l[n][t][i],!(0,A.Z)(o)){a=!1;break}e*=o}a&&(r+=e)}return r}function sH(){let e=e0(arguments),t=0,i=e.length;for(let n=0;n<i;n++)t+=nO(e[n])?e[n]*e[n]:0;return t}function sW(e,t){if(e=e0(e),t=e0(t),e.length!==t.length)return eX.na;let i=0;for(let n=0;n<e.length;n++)(0,A.Z)(e[n])&&(0,A.Z)(t[n])&&(i+=e[n]*e[n]-t[n]*t[n]);return i}function sY(e,t){let i=0;if(e=e0(e),t=e0(t),e.length!==t.length)return eX.na;for(let n=0;n<e.length;n++)(0,A.Z)(e[n])&&(0,A.Z)(t[n])&&(i+=e[n]*e[n]+t[n]*t[n]);return i}function sU(e,t){let i=0;if(e=e0(e),t=e0(t),e.length!==t.length)return eX.na;for(let n=0;n<e.length;n++)(0,A.Z)(e[n])&&(0,A.Z)(t[n])&&(i+=Math.pow(e[n]-t[n],2));return i}function sG(e){return(e=e5(e))instanceof Error?e:Math.tan(e)}function sZ(e){if((e=e5(e))instanceof Error)return e;let t=Math.exp(2*e);return(t-1)/(t+1)}function sj(e,t){return tn(e=e5(e),t=void 0===t?0:e5(t))?eX.value:(e>0?1:-1)*Math.floor(Math.abs(e)*Math.pow(10,t))/Math.pow(10,t)}function sq(e,t,i,n){return([e,t,i,n]=[e,t,i,n].map(e=>void 0===e?1:e5(e)),tn(e,t,i,n))?eX.value:e<1||t<1?eX.num:Array.from({length:e},(e,o)=>Array.from({length:t},(e,r)=>(o*t+r)*n+i))}let sK=[void 0,0,1,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,1,2,3,4,5,6,0],sX=[[],[1,2,3,4,5,6,7],[7,1,2,3,4,5,6],[6,0,1,2,3,4,5],[],[],[],[],[],[],[],[7,1,2,3,4,5,6],[6,7,1,2,3,4,5],[5,6,7,1,2,3,4],[4,5,6,7,1,2,3],[3,4,5,6,7,1,2],[2,3,4,5,6,7,1],[1,2,3,4,5,6,7]],sQ=[void 0,[1,0,0,0,0,0,1],[1,1,0,0,0,0,0],[0,1,1,0,0,0,0],[0,0,1,1,0,0,0],[0,0,0,1,1,0,0],[0,0,0,0,1,1,0],[0,0,0,0,0,1,1],void 0,void 0,void 0,[1,0,0,0,0,0,0],[0,1,0,0,0,0,0],[0,0,1,0,0,0,0],[0,0,0,1,0,0,0],[0,0,0,0,1,0,0],[0,0,0,0,0,1,0],[0,0,0,0,0,0,1]];function s$(e,t,i){if(e=e5(e),tn(e,t=e5(t),i=e5(i)))return eX.value;if(e<=1899&&(e+=1900),1900===e&&2===t&&29===i)return 60;let n=new Date(e,t-1,i),o=Math.floor((0,eJ.qC)(n));return o<0||n.getFullYear()>=1e4?eX.num:o}function sJ(e){if("string"!=typeof e)return eX.value;let t=this.getLocale().getDateParser().parse(e);return null===t?eX.value:Math.floor((0,eJ.qC)(t.v))}function s0(e){let t=te(this,e);return ti(t)?eX.value:t.getDate()}function s1(e,t){return 2!=arguments.length?eX.na:(e=te(this,e),t=te(this,t),ti(e)||ti(t))?eX.value:s2(e,t)}function s2(e,t){return Math.floor((0,eJ.qC)(e))-Math.floor((0,eJ.qC)(t))}function s3(e,t,i){let n,o;if(i=void 0!==i&&e3(i),tn(e=te(this,e),t=te(this,t),i))return eX.value;let r=e.getMonth(),a=t.getMonth();if(i)n=31===e.getDate()?30:e.getDate(),o=31===t.getDate()?30:t.getDate();else{let i=e=>e.getDate()===new Date(e.getFullYear(),e.getMonth()+1,0).getDate();n=i(e)?30:e.getDate(),o=1===r&&i(e)&&1===a&&i(t)?t.getDate():30===n&&31===t.getDate()?30:t.getDate()}return 360*(t.getFullYear()-e.getFullYear())+30*(a-r)+(o-n)}function s4(e,t){if(ti(e=te(this,e))||isNaN(t))return eX.value;t=parseInt(t,10);let i=new Date(e);return i.setMonth(i.getMonth()+t),i.getDate()!==e.getDate()&&i.setDate(0),(0,eJ.qC)(i)}function s5(e,t){return ti(e=te(this,e))||isNaN(t)?eX.value:(t=parseInt(t,10),(0,eJ.qC)(new Date(e.getFullYear(),e.getMonth()+t+1,0)))}function s6(e){return ti(e=te(this,e))?eX.value:e.getHours()}function s8(e){if("number"!=typeof e&&"string"!=typeof e)return eX.value;let t=Math.floor((e=parseInt(e,10))/94608e4),i=Math.floor((e%=94608e4)/2592e3),n=Math.floor((e%=2592e3)/86400),o=Math.floor((e%=86400)/3600),r=Math.floor((e%=3600)/60),a=e%=60;return"P"+(t=t>0?t+"Y":"")+(i=i>0?i+"M":"")+(n=n>0?n+"D":"")+"T"+(o=o>0?o+"H":"")+(r=r>0?r+"M":"")+(a=a>0?a+"S":"")}function s7(e){if(ti(e=te(this,e)))return eX.value;e.setHours(0,0,0),e.setDate(e.getDate()+4-(e.getDay()||7));let t=new Date(e.getFullYear(),0,1);return Math.ceil(((0,eJ.qC)(e)-(0,eJ.qC)(t)+1)/7)}function s9(e){return ti(e=te(this,e))?eX.value:e.getMinutes()}function le(e){return ti(e=te(this,e))?eX.value:e.getMonth()+1}function lt(e,t,i){return lt.INTL.call(this,e,t,1,i)}function li(){return(0,eJ.qC)(new Date)}function ln(e){return ti(e=te(this,e))?eX.value:e.getSeconds()}function lo(e,t,i){return(e=e5(e),tn(e,t=e5(t),i=e5(i)))?eX.value:e<0||t<0||i<0?eX.num:(3600*e+60*t+i)/86400}function lr(e){let t=te(this,e);return ti(t)?eX.value:(3600*t.getHours()+60*t.getMinutes()+t.getSeconds())/86400}function la(){return Math.floor((0,eJ.qC)(new Date))}function ls(e,t){if(ti(e=te(this,e)))return eX.value;void 0===t&&(t=1);let i=e.getDay();return sX[t][i]}function ll(e,t){let i=te(this,e);if(ti(i))return eX.value;if(e=(0,eJ.qC)(i),void 0===t&&(t=1),21===t)return s7(e);let n=sK[t],o=new Date(i.getFullYear(),0,1),r=+(o.getDay()<n);return Math.floor((e-((0,eJ.qC)(o)-Math.abs(o.getDay()-n)))/7+1)+r}function lc(e,t,i){return lc.INTL.call(this,e,t,1,i)}function ld(e){if(void 0===e)return sQ[1];if((0,A.Z)(e))return sQ[e]||eX.num;if(!(0,eI.Z)(e)||7!==e.length)return eX.value;let t=e;e=[];for(let i=0;i<7;i++){if("0"!==t[i]&&"1"!==t[i])return eX.value;e[(i+1)%7]=+t[i]}return e}function lu(e,t){return tt(e,(void 0===t?[]:e0([t])).filter(e=>""!==e))}function lh(e,t,i){if(1===t[e.getDay()])return!1;for(let t=0;t<i.length;t++){let n=i[t];if(n.getDate()===e.getDate()&&n.getMonth()===e.getMonth()&&n.getFullYear()===e.getFullYear())return!1}return!0}function lp(e){if(ti(e=te(this,e)))return eX.value;let t=e.getFullYear();return t<1900||t>9999?eX.num:t}function lf(e){return 1===new Date(e,1,29).getMonth()}function lg(e,t){return Math.ceil((0,eJ.qC)(t)-(0,eJ.qC)(e))}function lm(e,t,i){return(e=te(this,e),t=te(this,t),ti(e)||ti(t))?eX.value:lv(e,t,i)}function lv(e,t,i){i=i||0;let n=e.getDate(),o=e.getMonth()+1,r=e.getFullYear(),a=t.getDate(),s=t.getMonth()+1,l=t.getFullYear();switch(i){case 0:return 31===n&&31===a?(n=30,a=30):31===n?n=30:30===n&&31===a&&(a=30),(a+30*s+360*l-(n+30*o+360*r))/360;case 1:var c=365;if(r===l||r+1===l&&(o>s||o===s&&n>=a))return(r===l&&lf(r)||function(e,t){let i=e.getFullYear(),n=new Date(i,2,1);if(lf(i)&&e<n&&t>=n)return!0;let o=t.getFullYear(),r=new Date(o,2,1);return lf(o)&&t>=r&&e<r}(e,t)||1===s&&29===a)&&(c=366),lg(e,t)/c;var d=l-r+1,u=(new Date(l+1,0,1)-new Date(r,0,1))/1e3/60/60/24;return lg(e,t)/(u/d);case 2:return lg(e,t)/360;case 3:return lg(e,t)/365;case 4:return(a+30*s+360*l-(n+30*o+360*r))/360}}function lb(e,t,i){if(tn(e=te(this,e),t=te(this,t))||e>t||!(0,eI.Z)(i))return eX.num;switch(i.toUpperCase()){case"Y":{let i=t.getMonth()-e.getMonth();return t.getFullYear()-e.getFullYear()-+!!(i<0||0===i&&t.getDate()<e.getDate())}case"M":return(t.getFullYear()-e.getFullYear())*12+t.getMonth()-e.getMonth()-+(t.getDate()<e.getDate());case"D":return Math.floor((0,eJ.qC)(t)-(0,eJ.qC)(e));case"MD":if(t.getDate()>=e.getDate())return t.getDate()-e.getDate();return Math.floor(Math.abs(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate())-Date.UTC(e.getFullYear(),e.getMonth()+1,t.getDate()))/864e5);case"YM":{let i=t.getMonth()-e.getMonth(),n=t.getDate()<e.getDate(),o=i;return n&&(o-=1),(i<0||0===i&&n)&&(o+=12),o}case"YD":return Math.abs(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate())-Date.UTC(e.getFullYear()+(t.getMonth()>=e.getMonth()?0:1),t.getMonth(),t.getDate()))/864e5;default:return eX.num}}function ly(e,t,i,n,o,r,a){return(e=te(this,e),t=te(this,t),i=te(this,i),void 0===a&&(a=0),tn(e,t,i))?eX.value:n<=0||o<=0||-1===[1,2,4].indexOf(r)||-1===[0,1,2,3,4].indexOf(a)||i<=e?eX.num:(o=o||0)*n*lv(e,i,a=a||0)}function lw(e,t,i,n,o,r){if(e=e5(e),tn(e,t=e5(t),i=e5(i)))return eX.value;if(e<=0||t<=0||i<=0||n<1||o<1||n>o||0!==r&&1!==r)return eX.num;let a=lB(e,t,i,0,r),s=0;1===n&&(r<=0&&(s=-i),n++);for(let t=n;t<=o;t++)r>0?s+=lA(e,t-2,a,i,1)-a:s+=lA(e,t-1,a,i,0);return s*e}function l_(e,t,i,n,o,r){if(e=e5(e),tn(e,t=e5(t),i=e5(i)))return eX.value;if(e<=0||t<=0||i<=0||n<1||o<1||n>o||0!==r&&1!==r)return eX.num;let a=lB(e,t,i,0,r),s=0;1===n&&(s=0===r?a+i*e:a,n++);for(let t=n;t<=o;t++)r>0?s+=a-(lA(e,t-2,a,i,1)-a)*e:s+=a-lA(e,t-1,a,i,0)*e;return s}function lx(e,t,i,n,o){let r;if(e=e5(e),t=e5(t),i=e5(i),tn(e,t,i,n=e5(n),o=void 0===o?12:e5(o)))return eX.value;if(e<0||t<0||i<0||n<0||-1===[1,2,3,4,5,6,7,8,9,10,11,12].indexOf(o))return eX.num;let a=+(12!==o);if(n>i+a)return eX.num;let s=(1-Math.pow(t/e,1/i)).toFixed(3),l=e*s*o/12,c=l,d=0,u=n===i+a?n-1:n;for(let t=2;t<=u;t++)d=(e-c)*s,c+=d;return 1===n?r=l:n===i+a?(d=(e-c)*s,r=1===a?d*(12-o)/12:d):r=d,r}function lS(e,t,i,n,o){if(e=e5(e),t=e5(t),i=e5(i),tn(e,t,i,n=e5(n),o=void 0===o?2:e5(o)))return eX.value;if(e<0||t<0||i<0||n<0||o<=0||n>i)return eX.num;if(t>=e)return 0;let r=0,a=0;for(let s=1;s<=n;s++)a=Math.min(o/i*(e-r),e-t-r),r+=a;return a}function lC(e,t){if(tn(e=e5(e),t=e5(t)))return eX.value;if(t<0)return eX.num;if(t>=0&&t<1)return eX.div0;t=parseInt(t,10);let i=parseInt(e,10);i+=e%1*Math.pow(10,Math.ceil(Math.log(t)/Math.LN10))/t;let n=Math.pow(10,Math.ceil(Math.log(t)/Math.LN2)+1);return Math.round(i*n)/n}function lk(e,t){if(tn(e=e5(e),t=e5(t)))return eX.value;if(t<0)return eX.num;if(t>=0&&t<1)return eX.div0;t=parseInt(t,10);let i=parseInt(e,10);return i+e%1*Math.pow(10,-Math.ceil(Math.log(t)/Math.LN10))*t}function lI(e,t){return tn(e=e5(e),t=e5(t))?eX.value:e<=0||t<1?eX.num:Math.pow(1+e/(t=parseInt(t,10)),t)-1}function lA(e,t,i,n,o){let r;if(e=e5(e),t=e5(t),i=e5(i),tn(e,t,i,n=void 0===n?0:e5(n),o=void 0===o?0:e5(o)))return eX.value;if(0===e)r=n+i*t;else{let a=Math.pow(1+e,t);r=1===o?n*a+i*(1+e)*(a-1)/e:n*a+i*(a-1)/e}return-r}function lT(e,t){if(e=e5(e),(0,aT.Z)(t)||(t=[t]),tn(e,t=e6(e0(t))))return eX.value;let i=t.length,n=e;for(let e=0;e<i;e++)n*=1+t[e];return n}function lE(e,t,i,n,o,r){let a;if(e=e5(e),t=e5(t),i=e5(i),n=e5(n),tn(e,t,i,n,o=void 0===o?0:e5(o),r=void 0===r?0:e5(r)))return eX.value;let s=lB(e,i,n,o,r);return(1===t?1===r?0:-n:1===r?lA(e,t-2,s,n,1)-s:lA(e,t-1,s,n,0))*e}function lR(e,t){let i,n,o;if(tn(e=e6(e0(e)),t=void 0===t?0:e5(t)))return eX.value;let r=[],a=!1,s=!1;for(let t=0;t<e.length;t++)r[t]=0===t?0:r[t-1]+365,e[t]>0&&(a=!0),e[t]<0&&(s=!0);if(!a||!s)return eX.num;let l=t=void 0===t?.1:t,c=!0;do o=function(e,t,i){let n=i+1,o=e[0];for(let i=1;i<e.length;i++)o+=e[i]/Math.pow(n,(t[i]-t[0])/365);return o}(e,r,l),n=Math.abs((i=l-o/function(e,t,i){let n=i+1,o=0;for(let i=1;i<e.length;i++){let r=(t[i]-t[0])/365;o-=r*e[i]/Math.pow(n,r+1)}return o}(e,r,l))-l),l=i,c=n>1e-10&&Math.abs(o)>1e-10;while(c);return l}function lD(e,t,i,n){return(e=e5(e),t=e5(t),tn(e,t,i=e5(i),n=e5(n)))?eX.value:n*e*(t/i-1)}function lO(e,t,i){if(e=e6(e0(e)),tn(e,t=e5(t),i=e5(i)))return eX.value;let n=e.length;t++,i++;let o=0,r=1,a=0,s=1,l=!1,c=!1;for(let d=0;d<n;d++)e[d]>0?(c=!0,o+=e[d]*r):e[d]<0&&(l=!0,a+=e[d]*s),r/=i,s/=t;if(!(l&&c))return eX.div0;let d=-o/a;return Math.pow(d*=Math.pow(i,n-1),1/(n-1))-1}function lM(e,t){return tn(e=e5(e),t=e5(t))?eX.value:e<=0||t<1?eX.num:(Math.pow(e+1,1/(t=parseInt(t,10)))-1)*t}function lN(e,t,i,n,o){return(e=e5(e),t=e5(t),i=e5(i),tn(e,t,i,n=void 0===n?0:e5(n),o=void 0===o?0:e5(o)))?eX.value:0===e?-(i+n)/t:Math.log((t*(1+e*o)-n*e)/(i*e+t*(1+e*o)))/Math.log(1+e)}function lP(){if(arguments.length<2)return eX.na;let e=e6(e0(arguments).map(e=>""===e||null==e?0:e));if(e instanceof Error)return e;let t=e[0],i=0;for(let n=1;n<e.length;n++)i+=e[n]/Math.pow(1+t,n);return i}function lL(e,t,i){return(e=e5(e),tn(e,t=e5(t),i=e5(i)))?eX.value:e<=0?eX.num:(Math.log(i)-Math.log(t))/Math.log(1+e)}function lB(e,t,i,n,o){let r;if(e=e5(e),t=e5(t),i=e5(i),tn(e,t,i,n=void 0===n?0:e5(n),o=void 0===o?0:e5(o)))return eX.value;if(0===e)r=(i+n)/t;else{let a=Math.pow(1+e,t);r=1===o?(n*e/(a-1)+i*e/(1-1/a))/(1+e):n*e/(a-1)+i*e/(1-1/a)}return-r}function lF(e,t,i,n,o,r){return(e=e5(e),i=e5(i),n=e5(n),tn(e,i,n,o=void 0===o?0:e5(o),r=void 0===r?0:e5(r)))?eX.value:lB(e,i,n,o,r)-lE(e,t,i,n,o,r)}function lV(e,t,i,n,o){let r;return(e=e5(e),t=e5(t),i=e5(i),tn(e,t,i,n=void 0===n?0:e5(n),o=void 0===o?0:e5(o)))?eX.value:0===e?-i*t-n:((1-Math.pow(1+e,t))/e*i*(1+e*o)-n)/Math.pow(1+e,t)}function lz(e,t,i,n,o,r){if(e=e5(e),t=e5(t),i=e5(i),n=void 0===n?0:e5(n),tn(e,t,i,n,o=void 0===o?0:e5(o),r=void 0===r?.01:e5(r)))return eX.value;let a=0,s=!1,l=r;for(;a<100&&!s;){let r=Math.pow(l+1,e),c=Math.pow(l+1,e-1),d=n+r*i+t*(r-1)*(l*o+1)/l,u=e*c*i-t*(r-1)*(l*o+1)/Math.pow(l,2),h=e*t*c*(l*o+1)/l+t*(r-1)*o/l,p=l-d/(u+h);1e-7>Math.abs(p-l)&&(s=!0),a++,l=p}return s?l:eX.num}function lH(e,t,i){return(e=e5(e),tn(e,t=e5(t),i=e5(i)))?eX.value:0===e||0===t?eX.num:Math.pow(i/t,1/e)-1}function lW(e,t,i){return(e=e5(e),tn(e,t=e5(t),i=e5(i)))?eX.value:0===i?eX.num:(e-t)/i}function lY(e,t,i,n){return(e=e5(e),t=e5(t),tn(e,t,i=e5(i),n=e5(n)))?eX.value:0===i||n<1||n>i?eX.num:(e-t)*(i-(n=parseInt(n,10))+1)*2/(i*(i+1))}function lU(e,t,i){if(e=te(this,e),tn(e,t=te(this,t),i=e5(i)))return eX.value;if(i<=0||e>t||t-e>31536e6)return eX.num;let n=s2(t,e);if(!(t-e>157248e5))return 365*i/(360-i*n);{let e=(n/365-.5)/2,t=n/365;return(Math.sqrt(t*t-4*e*(-i*n/(360-i*n)))-t)/(2*e)}}function lG(e,t,i){if(e=te(this,e),tn(e,t=te(this,t),i=e5(i)))return eX.value;if(i<=0||e>t||t-e>31536e6)return eX.num;let n=100*(1-i*s2(t,e)/360);return n>=0?n:eX.num}function lZ(e,t,i){return(e=te(this,e),tn(e,t=te(this,t),i=e5(i)))?eX.value:i<=0||e>t||t-e>31536e6?eX.num:(100-i)*360/(i*s2(t,e))}function lj(e,t,i){let n,o,r;if(e=e6(e0(e)),tn(e,t=tt(this,e0(t)),i=void 0===i?.1:e5(i)))return eX.value;let a=!1,s=!1;for(let t=0;t<e.length;t++)e[t]>0&&(a=!0),e[t]<0&&(s=!0);if(!a||!s||e.length!==t.length)return eX.num;let l=i=i||.1,c=!0;do r=function(e,t,i){let n=i+1,o=e[0];for(let i=1;i<e.length;i++)o+=e[i]/Math.pow(n,s2(t[i],t[0])/365);return o}(e,t,l),o=Math.abs((n=l-r/function(e,t,i){let n=i+1,o=0;for(let i=1;i<e.length;i++){let r=s2(t[i],t[0])/365;o-=r*e[i]/Math.pow(n,r+1)}return o}(e,t,l))-l),l=n,c=o>1e-10&&Math.abs(r)>1e-10;while(c);return l}function lq(e,t,i){if(e=e5(e),tn(e,t=e6(e0(t)),i=tt(this,e0(i))))return eX.value;let n=0;for(let o=0;o<t.length;o++)n+=t[o]/Math.pow(1+e,s2(i[o],i[0])/365);return n}lt.INTL=function(e,t,i,n){let o=!0;if(e=te(this,e),t=te(this,t),ti(e)||ti(t))return eX.value;if(!Array.isArray(i=ld(i)))return i;if(ti(n=lu(this,n)))return eX.value;e>t&&([e,t]=[t,e],o=!1);let r=Math.floor((0,eJ.qC)(t))-Math.floor((0,eJ.qC)(e))+1,a=r,s=e;for(let e=0;e<r;e++)!lh(s,i,n)&&a--,s.setDate(s.getDate()+1);return o?a:-a},lc.INTL=function(e,t,i,n){let o=te(this,e);if(t=t?e5(t):0,ti(o)||ti(t))return eX.value;if(!Array.isArray(i=ld(i)))return i;if(ti(n=lu(this,n)))return eX.value;for(let e=0,r=Math.abs(t);e<r;)o.setDate(o.getDate()+(t>0?1:-1)),lh(o,i,n)&&e++;return Math.floor((0,eJ.qC)(o))};let lK={DATETIME:-1,DATE:-2,TIME:-3,CURRENCY:-4,PERCENTAGE:-5,isDate:function(e){return e===this.DATE}};function lX(e,t){return"HYPERLINK"!==e||t?(t||(t=e),0>e.indexOf("://")&&0!==e.indexOf("mailto:")&&0!==e.indexOf("#tid=")&&0!==e.indexOf("#dlink=")&&(e="http://"+e),{text:t,href:e}):eX.name}function lQ(e,t,i,n,o){if(arguments.length<3||arguments.length>5)return eX.na;if(Number.isNaN(t=(0,S.pS)(t))||Number.isNaN(i=(0,S.pS)(i))||void 0!==n&&(Number.isNaN(n=(0,S.pS)(n))||n<1)||void 0!==o&&(Number.isNaN(o=(0,S.pS)(o))||o<1))return eX.value;if(!e.isRef())return eX.na;if(!(e=e.toCellRef(this)))return eX.ref;let r=this.getInstance(e),a=r.countRows(),s=r.countCols();return(e.v[0].row+=t,e.v[0].col+=i,e.v[1].row=n?e.v[0].row+n-1:e.v[1].row+t,e.v[1].col=o?e.v[0].col+o-1:e.v[1].col+i,e.v[0].row<0||e.v[0].col<0||e.v[1].row>=a||e.v[1].col>=s)?eX.ref:l2(e)}function l$(e,t){let i=(0,I.wS)(e,t?void 0:"R1C1");if(1!==i.size())return eX.ref;let n=i.get(0),o=n.getValue();if(n.isRange()){let e=this.item;o=t?o:j(n.getValue(),e.row,e.col)}else{if(!n.isVariable())return eX.ref;let e=this.getVariable(n.getValue(),n.getSheetName());if(!e||(n=(i=(0,I.wS)(e)).get(0),1!==i.size()||!n.isRange()))return eX.ref;o=n.getValue()}return n.isRowRange()?en.createRowRef(o,n.getSheetName()):n.isColRange()?en.createColRef(o,n.getSheetName()):en.createRangeRef(o,n.getSheetName())}function lJ(e){if(1!=arguments.length)return eX.na;if(e.isRowRef()||e.isColRef())return!1;let t=e.resolve(this);if((0,S.VZ)(t))return t;if(Array.isArray(t))return!1;if("string"==typeof t)return null!==this.getLocale().getDateParser().parse(t);if("number"==typeof t){if(!e.isCellRef())return lK.isDate(this.item.nfId);let{v:[{row:t,col:i}]}=e,n=this.getInstance(e),o=n.worksheet.getComputedCellStyle(t,i).getNumberFormat();if(o.isDate())return!0;if(o.isDefault())return lK.isDate(n.formula.getNumberFormatHint(t,i))}return!1}function l0(e,t,i){if(arguments.length>4||arguments.length<1||void 0===e)return eX.na;if("number"!=typeof t||t<0||"number"!=typeof i||i<0)return eX.value;if(e.isArray()){let n=e.resolve(this);if(n.length<t)return eX.ref;n=t>0?[n[t-1]]:n;let o=[];for(let e=0;e<n.length;e++){if(n[e].length<i)return eX.ref;o.push(i>0?[n[e][i-1]]:n[e])}return o}if(e.isRef()){let n=e.toCellRef(this);return!n||n.v[1].row-n.v[0].row+1<t||n.v[1].col-n.v[0].col+1<i?eX.ref:(t>0&&(n.v[1].row=n.v[0].row+=t-1),i>0&&(n.v[1].col=n.v[0].col+=i-1),l2(n))}return eX.ref}function l1(e,t,i,n,o){if(void 0===i&&(i=1),void 0===n&&(n=!0),arguments.length<2||arguments.length>5||!(0,A.Z)(e)||e<1||!(0,A.Z)(t)||t<1)return eX.value;let r={row:e-1,col:t-1,isRowAbs:3!==i&&4!==i,isColAbs:2!==i&&4!==i},a=n?(0,C.coordToLabel)(r):(0,C.coordToR1C1)(r);return o?`${(0,C.escapeSheetName)(o)}!${a}`:a}function l2(e){if(e.v.length<2)return e;let[t,i]=e.v;return t.row===i.row&&t.col===i.col?en.fromCell(t,e.shName,e.isImplicit):e}function l3(e,t){try{let i=t.split("."),n=e;for(let e=0;e<i.length;++e){let t=i[e];if("]"===t[t.length-1]){let e=t.indexOf("["),i=t.substring(e+1,t.length-1);n=n[t.substring(0,e)][i]}else n=n[t]}return n}catch{}}function l4(e,t){return e.join(t)}function l5(){let e=e0(arguments);return e.filter(function(e){return"number"==typeof e})}let l6=new $().assign({keepNull:!0});function l8(e,t){if(void 0===e||void 0===t)return eX.na;let i=new or(this,t),n=0;function o(e,t,o){let r=o.getCellValue(e,t);i.test(r)&&n++}return cd(this,e,function(e){cu(e,o)}),n}function l7(){let e=e1(arguments);if(e.length<2||e.length%2!=0)return eX.na;let t=cl(this,e);return t!==eX.value?t.length:eX.value}function l9(e,t,i,n,o){return t.length<3||t.length%2==0?eX.na:cd(e,t[0],function(r){let a=i?[r.getHeight(),r.getWidth()]:null,s=cl(e,t.slice(1),a);if(s===eX.value)return eX.value;let l=n,c=r.getRowOffset(),d=r.getColOffset();for(let e=0;e<s.length;e++){let t=s[e],i=r.getCellValue(t[0]+c,t[1]+d);"number"==typeof i&&(l=o(l,i))}return l})}function ce(e,t){return e+t}function ct(){return l9(this,e1(arguments),!0,0,ce)}function ci(e,t,i){return l9(this,[i||e,e,t],!1,0,ce)}function cn(e,t,i){return cr(this,[i||e,e,t],!1)}function co(){return cr(this,e1(arguments),!0)}function cr(e,t,i){let n=0,o=l9(e,t,i,0,function(e,t){return n++,e+t});return o===eX.na||o===eX.value?o:n>0?o/n:eX.div0}function ca(){let e=l9(this,e1(arguments),!0,Number.MIN_VALUE,Math.max);return e!==Number.MIN_VALUE?e:0}function cs(){let e=l9(this,e1(arguments),!0,Number.MAX_VALUE,Math.min);return e!==Number.MAX_VALUE?e:0}function cl(e,t,i){let n,o=t[0],r=new or(e,t[1]),a=0,s=0,l=[];if((n=cd(e,o,function(e){if(a=e.getHeight(),s=e.getWidth(),i&&(i[0]!==a||i[1]!==s))return eX.value;cu(e,function(e,t,i){let n=i.getCellValue(e,t);r.test(n)&&l.push([e-i.getRowOffset(),t-i.getColOffset()])})}))===eX.value)return n;function c(e){if(e.getHeight()!==a||e.getWidth()!==s)return eX.value;let t=[],i=e.getRowOffset(),n=e.getColOffset();for(let o=0;o<l.length;o++){let a=l[o];r.test(e.getCellValue(a[0]+i,a[1]+n))&&t.push(a)}l=t}for(let i=1,o=t.length/2;i<o;i++)if(r=new or(e,t[2*i+1]),(n=cd(e,t[2*i],c))===eX.value)return n;return l}class cc{constructor(e){this._array=Array.isArray(e)?e:[[e]]}getRowOffset(){return 0}getColOffset(){return 0}getCellValue(e,t){return this._array[e]&&this._array[e][t]}getHeight(){return this._array.length}getWidth(){return this._array[0]?this._array[0].length:0}}function cd(e,t,i){return t.isRef()?e.createRangeVector(t.toRange(),l6,t.isImplicit,i):i(new cc(t.resolve(e,l6)))}function cu(e,t){let i=e.getRowOffset(),n=e.getColOffset(),o=i+e.getHeight(),r=n+e.getWidth();for(let a=i;a<o;a++)for(let i=n;i<r;i++)t(a,i,e)}let ch=[s,c,f,a,g,m,l,h,v,p,b,y],cp={};for(let e in ch){let t=ch[e];for(let e in t)cp[e]=t[e]}let cf=cp;function cg(e){if(0===e)return{sign:0,exp:-15,base:0};let t=e>0?1:-1,i=Math.floor(Math.log10(e=Math.abs(e)))-15+1,n=Math.round(e/Math.pow(10,i));return n>=1e15&&(i+=1,n/=10),{sign:t,exp:i,base:n}}function cm(e,t){let i=cg(e),n=cg(t),o=0;return i.sign===n.sign?(o=i.exp===n.exp?i.base===n.base?0:i.base>n.base?1:-1:i.exp>n.exp?1:-1,-1===i.sign&&(o=-o)):o=i.sign>n.sign?1:-1,o}function cv(e){for(;Array.isArray(e)&&e.length>0;)e=e[0];return e}function cb(e,t){let i=function(e,t){if(null!==e||null===t)return cv(e);switch(typeof t){case"string":return"";case"number":return 0;case"boolean":return!1;default:return cv(e)}}(e,t);return{val:i,type:function(e){switch(typeof e){case"number":return os.NUMBER;case"string":return os.STRING;case"boolean":return os.BOOLEAN;default:return os.OTHER}}(i)}}function cy(e,t){e.type===os.STRING&&t.type===os.STRING&&(e.val=e.val.toLowerCase(),t.val=t.val.toLowerCase())}function cw(e,t){let i=cb(e,t),n=cb(t,e);return i.type!==n.type?i.type<n.type:i.type===os.NUMBER?-1===cm(i.val,n.val):(cy(i,n),i.val<n.val)}function c_(e,t){let i=cb(e,t),n=cb(t,e);return i.type!==n.type?i.type>n.type:i.type===os.NUMBER?1===cm(i.val,n.val):(cy(i,n),i.val>n.val)}function cx(e,t){let i=cb(e,t),n=cb(t,e);return i.type===n.type&&(i.type===os.NUMBER?0===cm(i.val,n.val):(cy(i,n),i.val===n.val))}function cS(e,t){return cx(e,t)||cw(e,t)}function cC(e,t){return cx(e,t)||c_(e,t)}function ck(e,t){return!cx(e,t)}function cI(e){return function(t,i){var n=t,o=i;if(n=(0,S.pS)(n),o=(0,S.pS)(o),isNaN(n)||isNaN(o))return x.Z.VALUE;let r=e(n,o);return isFinite(r)||(0,S.VZ)(r)?r:x.Z.NUM}}let cA={"&":function(e,t){return"number"==typeof e&&(e=(0,S.ij)(e)),"number"==typeof t&&(t=(0,S.ij)(t)),e+""+t},"=":cx,">":c_,"<":cw,">=":cC,"<=":cS,"<>":ck,"%":function(e){return .01*(0,S.pS)(e)},"+":cI(function(e,t){return e+t}),"-":cI(function(e,t){return e-t}),"*":cI(function(e,t){return e*t}),"/":cI(function(e,t){if(0===t)return x.Z.DIV0;let i=e/t;return i===1/0?x.Z.DIV0:isNaN(i)?x.Z.VALUE:i}),"^":cI(function(e,t){return Math.pow(e,t)}),invert:function(e){let t=-1*(0,S.pS)(e);return isNaN(t)?x.Z.VALUE:t},plus:function(e){return e}};function cT(e){return ei.fromValue(e??null)}function cE(e){return e instanceof ei?((e.isCellRef()||e.isRowRef()||e.isColRef())&&e.setImplicit(),e.isValue()&&void 0===e.v&&(e.v=null),e):cT(e)}function cR(e,t,i){return t.item&&t.item.setNfIdHint(i,!0),cT(e)}function cD(e,t){return cR(e,t,lK.DATE)}function cO(e,t){return cR(e,t,lK.CURRENCY)}function cM(e,t){return cR(e,t,lK.PERCENTAGE)}function cN(e,t){return t.item&&t.item.resetNfIdHint(),cT(e)}let cP={IF:cE,CHOOSE:cE,OFFSET:cE,INDIRECT:cE,INDEX:cE,IFS:cE,SUBTOTAL:function(e,t){return t.item&&t.item.markSubtotal(),cT(e)},HYPERLINK:function(e,t,i){return(0,S.VZ)(e)?cT(e):new er(e.text,e.href)},NOW:function(e,t){return cR(e,t,lK.DATETIME)},TIME:function(e,t){return cR(e,t,lK.TIME)},TODAY:cD,WORKDAY:cD,DATE:cD,EDATE:cD,EOMONTH:cD,DB:cO,DDB:cO,FV:cO,FVSCHEDULE:cO,IPMT:cO,IRR:cM,MIRR:cM,NPV:cO,PMT:cO,PPMT:cO,PV:cO,RATE:cM,SLN:cO,XLOOKUP:function(e,t){if(e instanceof ei)return cE(e);if(e instanceof Array)for(let i in e)for(let n in e[i]){let o=e[i][n];if(o instanceof ei)(o.isCellRef()||o.isRowRef()||o.isColRef())&&(o.v=o.toCellRef(t)?.v.slice(0,1)??o.v);else for(;o instanceof Array;)o=o[0];e[i][n]=o}return cT(e)}};["COUNT","COUNTA","COUNTBLANK","COUNTIF","COUNTIFS","SUMIF","SUMIFS","AVERAGEIF","AVERAGEIFS","MAXIFS","MINIFS","DAY","DAYS","DATEDIF","MONTH","YEAR","WEEKDAY","HOUR","MINUTE","SECOND","WEEKNUM","YEARFRAC","ISOWEEKNUM","NETWORKDAYS.INTL","NETWORKDAYS","TIMEVALUE",">","<","=","<>",">=","<=","OR","AND","NOT","XOR"].forEach(function(e){cP[e]=cN});let cL={table:cP,defaultHandler:cT},cB=["ABS","ADDRESS","ACCRINT","ACOS","ACOSH","ACOT","ACOTH","AND","ARABIC","ASIN","ASINH","ATAN","ATAN2","ATANH","AVEDEV","AVERAGE","AVERAGEA","AVERAGEIF","AVERAGEIFS","BASE","BESSELI","BESSELJ","BESSELK","BESSELY","BETA.DIST","BETA.INV","BETADIST","BETAINV","BIN2DEC","BIN2HEX","BIN2OCT","BINOM.DIST","BINOM.INV","BINOMDIST","BITAND","BITLSHIFT","BITOR","BITRSHIFT","BITXOR","CEILING","CEILING.MATH","CEILING.PRECISE","CHAR","CHIDIST","CHIINV","CHISQ.DIST","CHISQ.DIST.RT","CHISQ.INV","CHISQ.INV.RT","CHISQ.TEST","CHITEST","CHOOSE","CLEAN","CODE","COLUMN","COLUMNS","COMBIN","COMBINA","COMPLEX","CONCAT","CONCATENATE","CONFIDENCE","CONFIDENCE.NORM","CONFIDENCE.T","CORREL","COS","COSH","COT","COTH","COUNT","COUNTA","COUNTBLANK","COUNTIF","COUNTIFS","COVAR","COVARIANCE.P","COVARIANCE.S","CRITBINOM","CSC","CSCH","CUMIPMT","CUMPRINC","DATE","DATEDIF","DATEVALUE","DAY","DAYS","DAYS360","DB","DDB","DEC2BIN","DEC2HEX","DEC2OCT","DECIMAL","DEGREES","DELTA","DEVSQ","DOLLAR","DOLLARDE","DOLLARFR","EDATE","EFFECT","EOMONTH","ERF","ERF.PRECISE","ERFC","ERFC.PRECISE","ERROR.TYPE","EVEN","EXACT","EXP","EXPON.DIST","EXPONDIST","FALSE","F.DIST","F.DIST.RT","F.INV","F.INV.RT","F.TEST","FACT","FACTDOUBLE","FDIST","FIND","FINV","FISHER","FISHERINV","FIXED","FLOOR","FLOOR.MATH","FLOOR.PRECISE","FORECAST","FTEST","FV","FVSCHEDULE","GAMMA","GAMMA.DIST","GAMMA.INV","GAMMADIST","GAMMAINV","GAMMALN","GAMMALN.PRECISE","GAUSS","GCD","GEOMEAN","GESTEP","HARMEAN","HEX2BIN","HEX2DEC","HEX2OCT","HLOOKUP","HOUR","HYPGEOM.DIST","HYPGEOMDIST","IF","IFERROR","IFNA","IMABS","IMAGINARY","IMARGUMENT","IMCONJUGATE","IMCOS","IMCOSH","IMCOT","IMCSC","IMCSCH","IMDIV","IMEXP","IMLN","IMLOG10","IMLOG2","IMPOWER","IMPRODUCT","IMREAL","IMSEC","IMSECH","IMSIN","IMSINH","IMSQRT","IMSUB","IMSUM","IMTAN","INDIRECT","INT","INTERCEPT","IPMT","IRR","ISBLANK","ISERR","ISERROR","ISEVEN","ISLOGICAL","ISNA","ISODD","ISNONTEXT","ISNUMBER","ISO.CEILING","ISOWEEKNUM","ISPMT","ISTEXT","TEXT","KURT","LARGE","LCM","LEFT","LEN","LN","LOG","LOG10","LOGINV","LOGNORM.DIST","LOGNORM.INV","LOGNORMDIST","LOWER","MATCH","MAX","MAXA","MAXIFS","MEDIAN","MID","MIN","MINA","MINIFS","MINUTE","MIRR","MOD","MODE","MODE.SNGL","MONTH","MROUND","MULTINOMIAL","N","NA","NEGBINOM.DIST","NEGBINOMDIST","NETWORKDAYS","NETWORKDAYS.INTL","NOMINAL","NORM.DIST","NORM.INV","NORM.S.DIST","NORM.S.INV","NORMDIST","NORMINV","NORMSDIST","NORMSINV","NOT","NOW","NPER","NPV","OCT2BIN","OCT2DEC","OCT2HEX","ODD","OFFSET","OR","PDURATION","PEARSON","PERCENTILE","PERCENTILE.EXC","PERCENTILE.INC","PERCENTRANK","PERCENTRANK.EXC","PERCENTRANK.INC","PERMUT","PERMUTATIONA","PHI","PI","PMT","POISSON","POISSON.DIST","POWER","PPMT","PROB","PRODUCT","PROPER","PV","QUARTILE","QUARTILE.EXC","QUARTILE.INC","QUOTIENT","RADIANS","RAND","RANDBETWEEN","RANK","RANK.AVG","RANK.EQ","RATE","REPLACE","REPT","RIGHT","ROMAN","ROUND","ROUNDDOWN","ROUNDUP","ROW","ROWS","RRI","RSQ","SEARCH","SEC","SECH","SECOND","SERIESSUM","SIGN","SIN","SINH","SKEW","SKEW.P","SLN","SLOPE","SMALL","SQRT","SQRTPI","STANDARDIZE","STDEV","STDEV.P","STDEV.S","STDEVA","STDEVP","STDEVPA","STEYX","SUBSTITUTE","SUBTOTAL","SUM","SUMIF","SUMIFS","SUMPRODUCT","SUMSQ","SUMX2MY2","SUMX2PY2","SUMXMY2","SYD","T","T.DIST","T.DIST.2T","T.DIST.RT","T.INV","T.INV.2T","T.TEST","TAN","TANH","TBILLEQ","TBILLPRICE","TBILLYIELD","TDIST","TIME","TIMEVALUE","TINV","TODAY","TRIM","TRIMMEAN","TRUE","TRUNC","TTEST","TYPE","UNICHAR","UNICODE","UPPER","VALUE","VAR","VAR.P","VAR.S","VARA","VARP","VARPA","VLOOKUP","WEEKDAY","WEEKNUM","WEIBULL","WEIBULL.DIST","WORKDAY","WORKDAY.INTL","XIRR","XLOOKUP","XNPV","XOR","YEAR","YEARFRAC","Z.TEST","ZTEST","HYPERLINK","ISDATE","INDEX","IFS","SEQUENCE","SORT","SORTBY","FILTER","RANDARRAY","TRANSPOSE","UNIQUE","IMPORTRANGE","FLATTEN"],cF=cB.reduce((e,t)=>{let i=cf,n=t.split(".");for(let e=0;e<n.length&&i;e++)i=i[n[e]];return i&&(e[t]=i),e},{});function cV(e){let t=new I.d1;return t.parseError=()=>{throw x.Z.ERROR},t.yy={handler:e},t}class cz{constructor(e){this.ctx=e}getErrorFromText(e){return(0,x.R)(e)}numberify(e){return S.pS(e)}extractString(e){return(0,C.extractString)(e)}addCellRef(e,t){e.addCellRef(t)}enterFunction(e){}leaveFunction(e){}exec(e,t,i){let n=eG.resolverTable[e]||eG.defaultResolver,o=t3[e]||t$,r=eu[e]||eh,a=eK(e,i)?r(n(i,this.ctx),i=>{let n=o(i);return n||(tX.call(this.ctx,e,i),n=o(i))?n:t.apply(this.ctx,i)}):x.Z.NA;return(cL.table[e]||cL.defaultHandler)(a,this.ctx)}callFunction(e,t,i){t=t||[];let n=cF[e];return n?this.exec(e,n,t):ei.fromValue(x.Z.NAME)}callOperator(e,t){let i=cA[e];return this.exec(e,i,t)}createConstantArrayExpr(e){let t=e.length,i=e[0].length;if(1===t&&1===i)return this.createExpr(e[0][0]);for(let n=1;n<t;n++)if(e[n].length!==i)return this.createExpr(x.Z.VALUE);return this.createExpr(e)}createExpr(e){return ei.fromValue(e)}createCellRefExpr(e,t){return t&&(t=(0,C.extractSheetName)(t)),en.createCellRef(e,t)}createColRefExpr(e,t){return t&&(t=(0,C.extractSheetName)(t)),en.createColRef(e,t)}createRowRefExpr(e,t){return t&&(t=(0,C.extractSheetName)(t)),en.createRowRef(e,t)}getVariableExpr(e,t){let i=this.ctx.getVariable(e,t);return void 0===i?this.createExpr(x.Z.NAME):cV(this).parse(i)}createArgs(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];return t}pushArgs(e,t){e.push(t)}nextArgument(){}}class cH extends cz{enterFunction(e){this.ctx.getDimHelper().pushFuncName(e)}leaveFunction(){this.ctx.getDimHelper().popFuncName()}callFunction(e,t,i){var n;if(this.ctx.getDimHelper().needRealValue()||this.ctx.getDimHelper().isReturnRefFunction(e))return super.callFunction(e,t,i);if(!eK(e,t))return this.createExpr(x.Z.NA);let{height:o,width:r}=(n=this.ctx,(em[e]||ev)(t,n)),a=o>0&&r>0?ea(o,r):0;return this.createExpr(a)}callOperator(e,t){var i;if(this.ctx.getDimHelper().needRealValue())return super.callOperator(e,t);let{height:n,width:o}=(i=this.ctx,(em[e]||ev)(t,i)),r=n>0&&o>0?ea(n,o):0;return this.createExpr(r)}createArgs(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];return this.ctx.getDimHelper().pushArgs(t.length),t}pushArgs(e,t){super.pushArgs(e,t),this.ctx.getDimHelper().pushArgs(1)}}let cW=`Maximum call stack size exceeded${(0,_.isSafari)()?".":""}`,cY=(0,_.isFirefox)()?e=>e instanceof Error&&"too much recursion"===e.message:e=>e instanceof RangeError&&e.message===cW,cU=class{constructor(e){this.ctx=new ek(e),this.parser=cV(new cz(this.ctx)),this.dimParser=cV(new cH(this.ctx))}exec(e,t){if(!this.ctx.preExec(t))return{error:x.Z.REF,result:null};let i=this._parse(e,t);return this.ctx.postExec(t)?i:{error:x.Z.REF,result:null}}parseRange(e,t){let i;if(!this.ctx.preExec(t))return null;try{i=this.parser.parse(e)}catch{}return this.ctx.postExec(t)&&i&&i instanceof en?i.toRange():null}execArrayDimension(e,t){let i={height:0,width:0};if(!this.ctx.preExec(t))return i;let n=null;try{n=this.dimParser.parse(e)}catch{}let o=el(n,this.ctx);return this.ctx.postExec(t)?o:i}getRangeValues(e,t,i){if(!this.ctx.preExec(t))return x.Z.REF;let n=this.ctx.visibleRangeValue(en.fromRange(e,void 0),i);return this.ctx.postExec(t)?n:x.Z.REF}_parse(e,t){let i=null,n=null,o=!1;try{i=this.parser.parse(e).finalize(this.ctx),S.VZ(i)&&(n=i,i=null)}catch(e){if(cY(e)){if(n=x.Z.CALC,o=!0,t.item)for(;this.ctx.item!==t.item;)this.ctx.postExec(t)}else n=x.Z.ERROR;i=null}return{error:n,result:i,delayCalc:o}}},cG={Comparator:w,...r,...C,...d,...u},cZ={date:{serialize:eJ.qC,deserialize:eJ.vB,roundTime:eJ.GG},number:{toEffective:S.ij},error:{isError:S.VZ}}},69774:function(e,t,i){"use strict";i.d(t,{R:()=>a,Z:()=>s});var n=i(44431);let o={NULL:n.nil,DIV0:n.div0,VALUE:n.value,REF:n.ref,NAME:n.name,NUM:n.num,NA:n.na,SPILL:n.spill,ERROR:n.error,CALC:n.calc,GETTING_DATA:n.data,LOADING:n.loading},r={};function a(e){return r[e]||n.error}Object.keys(o).forEach(e=>{let t=o[e];t.name=t.message,t.stack&&(t.stack=void 0),r[t.message]=t});let s=o},44431:function(e,t,i){"use strict";i.r(t),i.d(t,{calc:()=>h,data:()=>p,div0:()=>o,error:()=>u,loading:()=>f,na:()=>c,name:()=>s,nil:()=>n,num:()=>l,ref:()=>a,spill:()=>d,value:()=>r});let n=Error("#NULL!"),o=Error("#DIV/0!"),r=Error("#VALUE!"),a=Error("#REF!"),s=Error("#NAME?"),l=Error("#NUM!"),c=Error("#N/A"),d=Error("#SPILL!"),u=Error("#ERROR!"),h=Error("#CALC!"),p=Error("#GETTING_DATA"),f=Error("#LOADING!")},31076:function(e,t,i){"use strict";function n(e){if(null==e)return 0;switch(typeof e){case"number":return e;case"string":return+e;case"boolean":return+!!e}return NaN}function o(e){return"[object Error]"===Object.prototype.toString.call(e)}function r(e){return!0===e||!1===e}function a(e){return+e.toPrecision(15)}i.d(t,{VZ:()=>o,ij:()=>a,jn:()=>r,pS:()=>n})},73230:function(e,t,i){"use strict";i.d(t,{cV:()=>ei,no:()=>ep,QT:()=>eo,d1:()=>en,wS:()=>ef,nk:()=>n,ZW:()=>eg});var n={};i.r(n),i.d(n,{D7:()=>b,$D:()=>V,xU:()=>U,H4:()=>h,LF:()=>H,yD:()=>Z,OC:()=>p,WJ:()=>w,bg:()=>v,EQ:()=>_,pn:()=>D,Oi:()=>g,cy:()=>N,GE:()=>k,GT:()=>I,F4:()=>s,LE:()=>S,iJ:()=>R,DI:()=>c,LT:()=>C,eH:()=>m,A1:()=>T,NE:()=>x,Wu:()=>O,JH:()=>f,Xb:()=>l,rH:()=>z,x0:()=>G,Eh:()=>d,SR:()=>u,pl:()=>L,L_:()=>E,jd:()=>M,Dw:()=>y});var o=i(39499);let r={LCURLY:"{",RCURLY:"}",LPAREN:"(",RPAREN:")",SEMICOLON:";",COLON:":",COMMA:",",PERCENT:"%",EXP:"^",MUL:"*",DIV:"/",ADD:"+",SUB:"-",CONCAT:"&",EQ:"=",NE:"<>",LE:"<=",LT:"<",GE:">=",GT:">"};function a(e){let t=r[e];return(0,o.createToken)({name:e,label:t,pattern:t})}let s=a("LCURLY"),l=a("RCURLY"),c=a("LPAREN"),d=a("RPAREN"),u=a("SEMICOLON"),h=a("COLON"),p=a("COMMA"),f=a("PERCENT"),g=a("EXP"),m=a("MUL"),v=a("DIV"),b=a("ADD"),y=a("SUB"),w=a("CONCAT"),_=a("EQ"),x=a("NE"),S=a("LE"),C=a("LT"),k=a("GE"),I=a("GT"),A="[\\u00a1-\\ud7ff\\ue000-\\uffff]|[\ud800-\udbff][\udc00-\udfff]",T=(0,o.createToken)({name:"NAME",pattern:RegExp(`([A-Z_]|${A})([A-Z0-9_.\\]|${A})*`,"i")}),E=(0,o.createToken)({name:"SPACE",pattern:/\s+/,line_breaks:!0}),R=(0,o.createToken)({name:"LOGIC",pattern:/TRUE|FALSE/i,longer_alt:T}),D=(0,o.createToken)({name:"ERROR",pattern:/#DIV\/0!|#N\/A|#NAME\?|#NULL!|#NUM!|#REF!|#VALUE!|#CALC!|#SPILL!|#GETTING_DATA/i}),O=(0,o.createToken)({name:"NUMBER",pattern:/[0-9]*\.?[0-9]+([Ee][+-]?[0-9]+)?/}),M=(0,o.createToken)({name:"STRING",pattern:/"([^"]|"")*"/}),N=(0,o.createToken)({name:"FUNCTION",pattern:/[A-Z][A-Z0-9.]*(?=\()/i}),P=`([A-Z0-9_]|${A})([A-Z0-9_.]|${A})*`,L=(0,o.createToken)({name:"SHEETNAME",pattern:RegExp(`${P}!|'([^']|'')+'!`,"i")}),B="\\$?[0-9]{1,7}",F="\\$?[A-Z]{1,3}",V=(0,o.createToken)({name:"CELL_A1",pattern:RegExp(`${F}${B}`,"i"),longer_alt:T}),z=(0,o.createToken)({name:"ROWRANGE_A1",pattern:RegExp(`${B}:${B}`,"i")}),H=(0,o.createToken)({name:"COLRANGE_A1",pattern:RegExp(`${F}:${F}`,"i")}),W="(R\\[-?\\d+\\]|R\\d*)",Y="(C\\[-?\\d+\\]|C\\d*)",U=(0,o.createToken)({name:"CELL_R1C1",pattern:RegExp(`${W}${Y}`,"i")}),G=(0,o.createToken)({name:"ROWRANGE_R1C1",pattern:RegExp(`${W}:${W}`,"i")}),Z=(0,o.createToken)({name:"COLRANGE_R1C1",pattern:RegExp(`${Y}:${Y}`,"i")});function j(e,t,i){e[e.indexOf(t)]=i}let q=[E,N,L,V,H,z,O,M,R,D,T,p,u,c,d,s,l,h,f,g,m,v,b,y,w,x,S,k,_,C,I],K=q.slice();j(K,V,U),j(K,z,G),j(K,H,Z);let X=new o.Lexer({modes:{A1:q,R1C1:K},defaultMode:"A1"},{skipValidations:!0});var Q=i(11853),$=i.n(Q);let J=$().symbols_,ee=new Map(Object.entries({...J,SPACE:!1,",":J.COMMA,";":J.SEMICOLON,NAME:J.VARIABLE,ROWRANGE:J.ROWRANGECELL,COLRANGE:J.COLRANGECELL}));class et{constructor(){this.setInput("")}parseError(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];return this.yy.parser&&this.yy.parser.parseError(...t),this._handleParseError()}setInput(e,t){return this._index=0,this.tokens=[],this._initJisonState(e,t),this}lex(){let e=this.next();for(;!e;)e=this.next();return e}next(){if(0===this._index&&(this.tokens=this._initLexingTokens()),!this._validateInput())return this.setInput(this._input,this.yy).next();if(this.done)return this._translate("EOF");if(this._index>=this.tokens.length)return this.parseError(`Unrecognized text: ${this._input}`);let e=this.tokens[this._index++];this._updateJisonState(e);let t=this._getTokenLabel(e.tokenType);return this._translate(t)}pushState(e){this.conditionStack.push(e)}popState(){return this.conditionStack.length>1?this.conditionStack.pop():this.conditionStack[0]}_initLexingTokens(){let e=this.conditionStack[this.conditionStack.length-1],t=e===this.conditionStack[0]?void 0:e,{errors:i,tokens:n}=X.tokenize(this._input,t);if(0===i.length)return n;let o=Math.min.apply(null,i.map(e=>e.offset));return n.filter(e=>e.startOffset<o)}_initJisonState(e,t){this.yy=t||{},this._input=e,this.yytext="",this.yyleng=0,this.yylineno=0,this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.matched="",this.done=!e,this.conditionStack=["INITIAL"]}_updateJisonState(e){let{startLine:t,endLine:i,startColumn:n,endColumn:o,image:r}=e;this._input=this._input.slice(r.length),this.yytext=r,this.yyleng=r.length,this.yylineno=i-1,this.yylloc={first_line:t,last_line:i,first_column:n,last_column:o},this.matched+=r,this.done=!this._input}_handleParseError(){return this.yytext=this._input,this._input="",this.done=!0,J.error}_getTokenLabel(e){let t=(0,o.tokenLabel)(e),i=t.indexOf("_");return i<0?t:t.slice(0,i)}_translate(e){return ee.get(e)??e}_validateInput(){return!(this._index<this.tokens.length)||this.tokens[this._index].startOffset===this.matched.length}}let ei=new et;$().Parser.prototype.lexer=new et;let en=$().Parser,eo=$().symbols_;var er=i(721);class ea{constructor(e,t){this.symbol=e,this.setValue(t)}setValue(e){this.value=e}getValue(){return this.value}getText(){return this.value}isGroup(){return!1}isValid(){return this.symbol!==eo.error}isCell(){return this.isCellRange()&&-1===this.getValue().indexOf(":")}isCellRange(){return this.symbol===eo.CELL}isColRange(){return this.symbol===eo.COLRANGECELL}isRowRange(){return this.symbol===eo.ROWRANGECELL}isRange(){return this.symbol===eo.CELL||this.symbol===eo.COLRANGECELL||this.symbol===eo.ROWRANGECELL}isEqualSymbol(){return this.symbol===eo["="]}isFunction(){return this.symbol===eo.FUNCTION}isVariable(){return this.symbol===eo.VARIABLE}isLeftParenthesis(){return this.symbol===eo["("]}isRightParenthesis(){return this.symbol===eo[")"]}isParenthesis(){return this.isLeftParenthesis()||this.isRightParenthesis()}isLeftBrace(){return this.symbol===eo["{"]}isRightBrace(){return this.symbol===eo["}"]}isNumber(){return this.symbol===eo.NUMBER}isComma(){return this.symbol===eo.COMMA}isDelimiter(){return this.symbol===eo.COMMA||this.symbol===eo["+"]||this.symbol===eo["-"]||this.symbol===eo["*"]||this.symbol===eo["/"]||this.symbol===eo["%"]||this.symbol===eo["^"]||this.symbol===eo["&"]}isLeftDelimiter(){return this.isLeftParenthesis()||this.isEqualSymbol()||this.isDelimiter()}isRightDelimiter(){return this.isRightParenthesis()||this.symbol===eo.EOF||this.isDelimiter()}isString(){return this.symbol===eo.STRING}isWhitespace(){return!1===this.symbol}}class es extends ea{constructor(e,t){super(e,t),this.pair=void 0}getPair(){return this.pair}bind(e){if(this.unbind(),void 0!==e)return e.pair=this,this.pair=e,e}unbind(){let e=this.pair;if(void 0!==e)return e.pair=void 0,this.pair=void 0,e}getMatchSymbol(){switch(this.symbol){case eo["("]:return eo[")"];case eo[")"]:return eo["("];case eo["{"]:return eo["}"];case eo["}"]:return eo["{"]}}isMatch(e){return void 0!==e&&e.symbol===this.getMatchSymbol()}}class el extends ea{constructor(e,t,i){super(e,t),this.shName=i}getText(){let e=this.value||"";return void 0===this.shName?e:this.shName+e}getSheetName(){return void 0===this.shName?this.shName:(0,er.extractSheetName)(this.shName)}getFullSheetName(){return this.shName||""}setSheetName(e){this.shName=e}isValid(){return super.isValid()&&void 0!==this.value}}let ec=e=>class extends e{constructor(...e){let t=e.shift();super(...e),this.tokens=t||[]}getTokens(){return this.tokens}get(e){return this.tokens[e]}size(){return this.tokens.length}indexOf(e){return this.tokens.indexOf(e)}concat(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];this.tokens=this.tokens.concat(...t)}getText(){let e="";for(let t=0;t<this.tokens.length;t++)e+=this.tokens[t].getText();return e}isValid(){for(let e=0;e<this.tokens.length;e++)if(!this.tokens[e].isValid())return!1;return!0}flatten(){let e=[];for(let t=0;t<this.tokens.length;t++)this.tokens[t].isGroup()?e.push(...this.tokens[t].flatten()):e.push(this.tokens[t]);return e}getTokenByPos(e){let t=0;for(let i=0;i<this.tokens.length;i++){let n=this.tokens[i].getText().length;if(t<e&&e<=t+n)return{token:this.tokens[i],pos:t};t+=n}}getPosByToken(e){let t=0;for(let i=0;i<this.tokens.length;i++){if(e===this.tokens[i])return t;if(this.tokens[i].isGroup()){let n=this.tokens[i].getPosByToken(e);if(n>=0)return t+n}t+=this.tokens[i].getText().length}return -1}};class ed extends ec(ea){constructor(e,t){super(t,e)}getValue(){let e="",t=this.tokens;for(let i=0;i<t.length;i++)!1!==t[i].symbol&&(e+=t[i].getValue());return e}isGroup(){return!0}}class eu extends ed{getSheetName(){let e=this._findFirstCell();if(void 0!==e)return e.getSheetName()}getFullSheetName(){let e=this._findFirstCell();return void 0===e?"":e.getFullSheetName()}setSheetName(e){let t=this._findFirstCell();void 0!==t&&t.setSheetName(e)}_findFirstCell(){let e=this.tokens;for(let t=0;t<e.length;t++)if(e[t].symbol===eo.CELL)return e[t]}}class eh extends ec(function(){}){constructor(){super([]),this.scopes=[]}getScopes(){return this.scopes}append(e,t){let i;switch(e){case eo["("]:case eo["{"]:i=eh.createToken(e,t),this.scopes.push(i);break;case eo[")"]:case eo["}"]:(i=eh.createToken(e,t)).isMatch(this.getTopScope())&&i.bind(this.scopes.pop());break;case eo.CELL:if(void 0!==(i=this.reduceRangeRef(e,t)))return i;case eo.ROWRANGECELL:case eo.COLRANGECELL:case eo.VARIABLE:if(void 0!==(i=this.reduceCrossRef(e,t)))return i}return void 0===i&&(i=eh.createToken(e,t)),this.tokens.push(i),i}reduceRangeRef(e,t){let i=this.getIndexWhenEndsWith([eo.CELL,eo[":"]]);if(i<0)return;let n=this.tokens[i];if(this.tokens.push(eh.createToken(e,t)),n.isGroup())return n.concat(this.tokens.splice(i+1)),n;let o=eh.createGroup(eo.CELL,this.tokens.splice(i));return this.tokens.push(o),o}reduceCrossRef(e,t){let i=this.getIndexWhenEndsWith([eo.SHEETNAME]);if(i<0||i!==this.tokens.length-1)return;let n=this.tokens[i];return n.symbol=e,n.setValue(t),n}getIndexWhenEndsWith(e){let t;if(e.length>this.tokens.length)return -1;let i=this.tokens.length,n=e.length-1;for(;n>=0;){if(--i<0)return -1;if(!1!==(t=this.tokens[i]).symbol&&t.symbol!==e[n--])return -1}return i}static createToken(e,t,i){switch(e){case eo["("]:case eo[")"]:case eo["{"]:case eo["}"]:return new es(e,t);case eo.SHEETNAME:return new el(e,void 0,t);case eo.CELL:case eo.ROWRANGECELL:case eo.COLRANGECELL:case eo.VARIABLE:return new el(e,t,i)}return new ea(e,t)}static createGroup(e,t){return e===eo.CELL?new eu(e,t):new ed(e,t)}static createRangeToken(e,t,i){if(i&&(i=(0,er.escapeSheetName)(i)+"!"),"row"===t)return new el(eo.ROWRANGECELL,e,i);{if("col"===t)return new el(eo.COLRANGECELL,e,i);let n=e.split(":");if(1===n.length)return new el(eo.CELL,e,i);let o=[new el(eo.CELL,n[0],i)];for(let e=1;e<n.length;e++)o.push(new ea(eo[":"],":"),new el(eo.CELL,n[e]));return eh.createGroup(eo.CELL,o)}}getTopScope(){return this.scopes[this.scopes.length-1]}isValidFormula(){let e=this.tokens.length-1;return this.tokens[e].isValid()}forAllTokens(e){let t=0;for(let i=0;i<this.tokens.length&&!1!==e(this.tokens[i],t,i);i++)t+=this.tokens[i].getText().length}[Symbol.iterator](){return this.tokens[Symbol.iterator]()}insertRange(e,t,i,n,o){let r=[0,0];n&&r.push(eh.createToken(eo.COMMA,","));let a=eh.createRangeToken(e,t,o);r.push(a);let s=0;for(let e=0;e<this.tokens.length;e++){let t=this.tokens[e].getText().length;if(s<i&&i<=s+t){r[0]=e+1,Array.prototype.splice.apply(this.tokens,r);let i=s+t;return{oldRange:[i,i],newRange:[i,i+a.getText().length+ +!!n]}}s+=t}return null}updateRange(e,t,i,n){let o=0;for(let r=0;r<this.tokens.length;r++){if(this.tokens[r]===e){let a=eh.createRangeToken(t,i,n);return this.tokens.splice(r,1,a),{oldRange:[o,o+e.getText().length],newRange:[o,o+a.getText().length]}}o+=this.tokens[r].getText().length}return null}insertFormulaText(e,t){let i=0,n=0;for(let o=0;o<this.tokens.length;o++){let r=this.tokens[o],a=r.getText().length;if(i<t&&t<=i+a){let a=[new ea(eo.FUNCTION,e)];this.tokens[o+1]?.isLeftParenthesis()||a.push(new es(eo["("],"(")),r.isEqualSymbol()?(this.tokens.splice(o+1,0,...a),n=e.length+1):(this.tokens.splice(o,1,...a),n=i+e.length+1-t);break}i+=a}this.scopes=[];for(let e=0;e<this.tokens.length;e++){let t=this.tokens[e];t.isLeftParenthesis()||t.isLeftBrace()?(t.unbind(),this.scopes.push(t)):(t.isRightParenthesis()||t.isRightBrace())&&(t.unbind(),t.isMatch(this.getTopScope())&&t.bind(this.scopes.pop()))}return n}}let ep=eh,ef=function(e,t){ei.setInput(e),ei.pushState(t||"INITIAL");let i=new ep;for(;!ei.done;){let e=ei.next();ei.yytext&&i.append(e,ei.yytext)}return i};function eg(e,t,i){return function(e,t,i){let n=!1,o=ef(e);for(let e=0,i=o.size();e<i;e++){let i=o.get(e);if(i.isRange()||i.isVariable()){let e=t(i.getSheetName());e&&(i.setSheetName((0,er.escapeSheetName)(e)+"!"),n=!0)}else if(i.isFunction()&&0){let e=(void 0)(i.getValue());e&&(i.setValue(e),n=!0)}}return n?o.getText():e}(e,e=>e===t?i:void 0)}},721:function(e,t,i){"use strict";function n(e){return e>=0?(e+1).toString():""}function o(e){let t="";for(;e>=0;)t=String.fromCharCode(e%26+65)+t,e=e=Math.floor(e/26-1);return t}function r(e){return(e.isColAbs?"$":"")+o(e.col)+(e.isRowAbs?"$":"")+n(e.row)}function a(e,t,i){return e+(i?t.toString():`[${t}]`)}function s(e){return a("R",e.row+1,e.isRowAbs)+a("C",e.col+1,e.isColAbs)}function l(e){return/^\w+$/.test(e)?e:`'${e.replace(/'/g,"''")}'`}function c(e){let t=parseInt(e,10);return isNaN(t)||t<1?-1:t-1}function d(e){let t=0,i=(e||"").toUpperCase();for(let e=0;e<i.length;e++)t*=26,t+=i.charCodeAt(e)-65+1;return t-1}function u(e){return e.substring(1,e.length-1).replace(/""/g,'"')}function h(e){let t=e.length;return"'"!==e.charAt(0)?e.substring(0,t-1):e.substring(1,t-2).replace(/''/g,"'")}i.r(t),i.d(t,{columnIndexToLabel:()=>o,columnLabelToIndex:()=>d,coordToLabel:()=>r,coordToR1C1:()=>s,escapeSheetName:()=>l,extractSheetName:()=>h,extractString:()=>u,rowIndexToLabel:()=>n,rowLabelToIndex:()=>c})},35599:function(e,t,i){"use strict";i.d(t,{LJ:()=>g,ZJ:()=>l,eS:()=>m,kA:()=>f,l0:()=>s,lq:()=>a,lu:()=>r});var n=i(721);class o{constructor(e,t,i){this.from=e,this.to=t,this.shName=i}equals(e){return this.from===e.from&&this.to===e.to}clone(){return new this.constructor(this.from,this.to,this.shName)}toLabel(){let e=this._toLabel();return this.shName?(0,n.escapeSheetName)(this.shName)+"!"+e:e}isNameRange(){return!1}}class r extends o{getContainer(e){return e.getContainer()}key(){return`${this.from.row},${this.from.col},${this.to.row},${this.to.col}`}clone(){return new this.constructor(c(this.from),c(this.to),this.shName)}equals(e){return this.from.row===e.from.row&&this.from.col===e.from.col&&this.to.row===e.to.row&&this.to.col===e.to.col}includes(e,t){return this.from.row<=e&&this.to.row>=e&&this.from.col<=t&&this.to.col>=t}isBetweenRow(e,t){return e<=this.to.row&&t>=this.from.row}isBetweenCol(e,t){return e<=this.to.col&&t>=this.from.col}isWithinRow(e,t){return e<=this.from.row&&t>=this.to.row}isWithinCol(e,t){return e<=this.from.col&&t>=this.to.col}isInsertionWithin(e,t){return!1}willBeExpanded(e,t){return d(this.from[e],this.to[e],t)}insert(e,t,i,n){let[o,a]=[c(this.from),c(this.to)],s=u(o[e],a[e],t,i,n);return[o[e],a[e]]=s,new r(o,a,this.shName)}remove(e,t,i){let[n,o]=[c(this.from),c(this.to)],a=h(n[e],o[e],t,i);return null===a?null:([n[e],o[e]]=a,new r(n,o,this.shName))}move(e,t){let[i,n]=[c(this.from),c(this.to)],o=p(i[e],n[e],t);return[i[e],n[e]]=o,new r(i,n,this.shName)}setName(e){this.shName=e}_toLabel(){let e=(0,n.coordToLabel)(this.from);return(this.from.row!==this.to.row||this.from.col!==this.to.col)&&(e+=":"+(0,n.coordToLabel)(this.to)),e}}class a extends o{getContainer(e){return e.getRowContainer()}key(){return`${this.from},${this.to}`}includes(e,t){return this.from<=e&&this.to>=e}isBetweenRow(e,t){return e<=this.to&&t>=this.from}isBetweenCol(e,t){return!0}isWithinRow(e,t){return e<=this.from&&t>=this.to}isWithinCol(e,t){return!0}isInsertionWithin(e,t){return"row"===e&&d(this.from,this.to,t)}willBeExpanded(e,t){return"col"===e||d(this.from,this.to,t)}insert(e,t,i,n){if("col"===e)return this.clone();let[o,r]=u(this.from,this.to,t,i,n);return new a(o,r,this.shName)}remove(e,t,i){if("col"===e)return this.clone();let n=h(this.from,this.to,t,i);return n?new a(n[0],n[1],this.shName):null}move(e,t){if("col"===e)return this.clone();let[i,n]=p(this.from,this.to,t);return new a(i,n,this.shName)}_toLabel(){return(0,n.rowIndexToLabel)(this.from)+":"+(0,n.rowIndexToLabel)(this.to)}}class s extends o{getContainer(e){return e.getColContainer()}key(){return`${this.from},${this.to}`}includes(e,t){return this.from<=t&&this.to>=t}isBetweenRow(e,t){return!0}isBetweenCol(e,t){return e<=this.to&&t>=this.from}isWithinRow(e,t){return!0}isWithinCol(e,t){return e<=this.from&&t>=this.to}isInsertionWithin(e,t){return"col"===e&&d(this.from,this.to,t)}willBeExpanded(e,t){return"row"===e||d(this.from,this.to,t)}insert(e,t,i,n){if("row"===e)return this.clone();let[o,r]=u(this.from,this.to,t,i,n);return new s(o,r,this.shName)}remove(e,t,i){if("row"===e)return this.clone();let n=h(this.from,this.to,t,i);return n?new s(n[0],n[1],this.shName):null}move(e,t){if("row"===e)return this.clone();let[i,n]=p(this.from,this.to,t);return new s(i,n,this.shName)}_toLabel(){return(0,n.columnIndexToLabel)(this.from)+":"+(0,n.columnIndexToLabel)(this.to)}}class l{constructor(e,t){this.name=e,this.shName=t}getContainer(e){return e.getNameContainer()}includes(e,t){return!1}isBetweenRow(e,t){return!1}isBetweenCol(e,t){return!1}isNameRange(){return!0}}function c(e){return{row:e.row,col:e.col}}function d(e,t,i){return t-e!=0&&e<i&&i<=t}function u(e,t,i,n,o){return -1!==o&&e<=o&&o<=t||-1===o&&e<i&&i<=t?t+=n:e>=i&&(e+=n,t+=n),[e,t]}function h(e,t,i,n){if(i+n-1<e)e-=n,t-=n;else if(i<=t){let o=Math.max(i,e),r=Math.min(i+n-1,t)-o+1;if(t-e+1<=r)return null;e-=o-i,t-=r+o-i}return[e,t]}function p(e,t,i){let{sec:[n,o],isBackward:r}=i;return e>=n.start&&e<=n.end?!r&&t>=o.start&&t<=o.end?e=n.start:e+=o.amount:e>=o.start&&e<=o.end&&(e-=n.amount),t>=n.start&&t<=n.end?t+=o.amount:t>=o.start&&t<=o.end&&(r&&e>=n.start&&e<=n.end?t=o.end:t-=n.amount),[e,t]}function f(e){return e.constructor===r}function g(e){return e.constructor===a}function m(e){return e.constructor===s}},53253:function(e,t,i){"use strict";i.d(t,{Z:()=>o});var n=i(63447);let o=(0,n.defineComponent)({name:"vIconIcnAi24S",props:{height:{type:[Number,String],default:24},width:{type:[Number,String],default:24}},render:()=>{var e;return(0,n.createStaticVNode)(function(e,t){let i=e.matchAll(/\bid="([^"]+)"/g),n=e;for(let e of i){let i=e[1],o=t+i;n=n.replace(e[0],`id="${o}"`).replace(RegExp(`#${i}\\b`,"g"),`#${o}`)}return n}('<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" style="pointer-events: none;">\n<g clip-path="url(#clip0_3482_56764)">\n<path d="M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z" fill="white"/>\n<g clip-path="url(#paint0_angular_3482_56764_clip_path)" data-figma-skip-parse="true"><g transform="matrix(-0.0173952 -6.24361e-10 -0.000409489 -0.0170322 12 12)"><foreignObject x="-839.204" y="-839.204" width="1678.41" height="1678.41"><div xmlns="http://www.w3.org/1999/xhtml" style="background:conic-gradient(from 90deg,rgba(251, 227, 204, 1) 0deg,rgba(141, 228, 255, 1) 47.9528deg,rgba(134, 164, 255, 1) 135deg,rgba(223, 169, 255, 1) 225deg,rgba(255, 188, 143, 1) 315deg,rgba(251, 227, 204, 1) 360deg);height:100%;width:100%;opacity:1"></div></foreignObject></g></g><circle data-figma-bg-blur-radius="53.5236" cx="12" cy="12" r="10" transform="rotate(45 12 12)" data-figma-gradient-fill="{&#34;type&#34;:&#34;GRADIENT_ANGULAR&#34;,&#34;stops&#34;:[{&#34;color&#34;:{&#34;r&#34;:0.98590189218521118,&#34;g&#34;:0.89343899488449097,&#34;b&#34;:0.80097657442092896,&#34;a&#34;:1.0},&#34;position&#34;:0.0},{&#34;color&#34;:{&#34;r&#34;:0.55294120311737061,&#34;g&#34;:0.89411765336990356,&#34;b&#34;:1.0,&#34;a&#34;:1.0},&#34;position&#34;:0.13320221006870270},{&#34;color&#34;:{&#34;r&#34;:0.52549022436141968,&#34;g&#34;:0.64313727617263794,&#34;b&#34;:1.0,&#34;a&#34;:1.0},&#34;position&#34;:0.3750},{&#34;color&#34;:{&#34;r&#34;:0.87450981140136719,&#34;g&#34;:0.66274511814117432,&#34;b&#34;:1.0,&#34;a&#34;:1.0},&#34;position&#34;:0.6250},{&#34;color&#34;:{&#34;r&#34;:1.0,&#34;g&#34;:0.73725491762161255,&#34;b&#34;:0.56078433990478516,&#34;a&#34;:1.0},&#34;position&#34;:0.8750}],&#34;stopsVar&#34;:[{&#34;color&#34;:{&#34;r&#34;:0.98590189218521118,&#34;g&#34;:0.89343899488449097,&#34;b&#34;:0.80097657442092896,&#34;a&#34;:1.0},&#34;position&#34;:0.0},{&#34;color&#34;:{&#34;r&#34;:0.55294120311737061,&#34;g&#34;:0.89411765336990356,&#34;b&#34;:1.0,&#34;a&#34;:1.0},&#34;position&#34;:0.13320221006870270},{&#34;color&#34;:{&#34;r&#34;:0.52549022436141968,&#34;g&#34;:0.64313727617263794,&#34;b&#34;:1.0,&#34;a&#34;:1.0},&#34;position&#34;:0.3750},{&#34;color&#34;:{&#34;r&#34;:0.87450981140136719,&#34;g&#34;:0.66274511814117432,&#34;b&#34;:1.0,&#34;a&#34;:1.0},&#34;position&#34;:0.6250},{&#34;color&#34;:{&#34;r&#34;:1.0,&#34;g&#34;:0.73725491762161255,&#34;b&#34;:0.56078433990478516,&#34;a&#34;:1.0},&#34;position&#34;:0.8750}],&#34;transform&#34;:{&#34;m00&#34;:-34.790363311767578,&#34;m01&#34;:-0.81897830963134766,&#34;m02&#34;:29.804670333862305,&#34;m10&#34;:-1.2487223557400284e-06,&#34;m11&#34;:-34.064483642578125,&#34;m12&#34;:29.032230377197266},&#34;opacity&#34;:1.0,&#34;blendMode&#34;:&#34;NORMAL&#34;,&#34;visible&#34;:true}"/>\n<mask id="mask0_3482_56764" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="2" y="2" width="20" height="20">\n<path d="M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z" fill="white"/>\n</mask>\n<g mask="url(#mask0_3482_56764)">\n<rect x="3.17676" y="-4.70541" width="24.4706" height="24.4706" fill="url(#pattern0_3482_56764)"/>\n</g>\n<mask id="mask1_3482_56764" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="2" y="2" width="20" height="20">\n<path d="M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z" fill="white"/>\n</mask>\n<g mask="url(#mask1_3482_56764)">\n<rect x="-4.82373" y="-5.64648" width="23.2941" height="23.2941" fill="url(#pattern1_3482_56764)"/>\n</g>\n<mask id="mask2_3482_56764" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="2" y="2" width="20" height="20">\n<path d="M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z" fill="white"/>\n</mask>\n<g mask="url(#mask2_3482_56764)">\n<rect x="5.5293" y="7.76465" width="23.0588" height="23.0588" fill="url(#pattern2_3482_56764)"/>\n</g>\n<mask id="mask3_3482_56764" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="2" y="2" width="20" height="20">\n<path d="M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z" fill="white"/>\n</mask>\n<g mask="url(#mask3_3482_56764)">\n<rect x="-8.11768" y="5.76465" width="25.4118" height="25.4118" fill="url(#pattern3_3482_56764)"/>\n</g>\n<path d="M12 18C12 14.6863 14.6863 12 18 12" stroke="white" stroke-width="1.5"/>\n<path d="M12 6C12 9.31371 9.31371 12 6 12" stroke="white" stroke-width="1.5"/>\n<path d="M12 6C12 9.31371 14.6863 12 18 12" stroke="white" stroke-width="1.5"/>\n<path fill-rule="evenodd" clip-rule="evenodd" d="M11.1057 14.0052C10.0143 12.3461 8.13578 11.25 6 11.25V12.75C7.93844 12.75 9.59899 13.9475 10.2789 15.6452C10.484 15.0598 10.7633 14.5094 11.1057 14.0052Z" fill="white"/>\n</g>\n<defs>\n<clipPath id="paint0_angular_3482_56764_clip_path"><circle data-figma-bg-blur-radius="53.5236" cx="12" cy="12" r="10" transform="rotate(45 12 12)"/></clipPath><pattern id="pattern0_3482_56764" patternContentUnits="objectBoundingBox" width="1" height="1">\n<use xlink:href="#image0_3482_56764" transform="scale(0.00480769)"/>\n</pattern>\n<pattern id="pattern1_3482_56764" patternContentUnits="objectBoundingBox" width="1" height="1">\n<use xlink:href="#image1_3482_56764" transform="scale(0.00505051)"/>\n</pattern>\n<pattern id="pattern2_3482_56764" patternContentUnits="objectBoundingBox" width="1" height="1">\n<use xlink:href="#image2_3482_56764" transform="scale(0.00510204)"/>\n</pattern>\n<pattern id="pattern3_3482_56764" patternContentUnits="objectBoundingBox" width="1" height="1">\n<use xlink:href="#image3_3482_56764" transform="scale(0.00462963)"/>\n</pattern>\n<clipPath id="clip0_3482_56764">\n<rect width="24" height="24" fill="white"/>\n</clipPath>\n<image id="image0_3482_56764" width="208" height="208" preserveAspectRatio="none" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANAAAADQCAYAAAB2pO90AAAACXBIWXMAAAsSAAALEgHS3X78AAAgAElEQVR4nOy9y5YkOXIlKICquXtE5IOZVcke8pBzZsHigrXkbjb8iv6J+QmSv9P8Cu5nls1Fk5tp8hTJk1WVlY+IcHczBeYIIFdwAYWau0dFJjnntGZ6mJmampqaKi7ulSsCaJBnL3m+bZ4+9eVv/1aOv+OvRf7739X3/yut/od/oM/8VX341f+o6/6StvvXL/p9/+bfJPxCn/yZyG//vX/vszft9Xff2PM/Fvkjfi0ib7+XIF/V5/rww/f23s9F3n/ftvtSRN69lSBftO+4f9ve/1z/+QOR+3fHv//h/cF7nx184Lv56ttX01NflrvXkuV3It/yuje0/Tcir99I/i29/+pTyfLr+vyTTyV/jTe+FnnzafvsZ19I/ld98qv22g/1bX9MX/4XyfJPIv8oIj/73/r3/uib9vr/scc//nNb9/dtu7/4i7bd39njL/+rZPnbo18v8td/vT834fBF98bhOX3Wx/vl5eB5LnCEwPNTAufNAWheEUgYNCNgRrDc3/Tf24Hjs4aJ+yPQfKTlzsD0nfSAG0F29yh5CqoBUAwmXd4DQAOY3ip4fmIg/R199qVA+lggesbF/PHA81LWeS5wvv1Gwp/+SduuAGfGNnf1OTPN+9uBZQwYDJjbI7AYUGYgeTy1dZ+M791/GKhu7vpT/wO/d973vAouBtYIqofH9hqAev04sNNDXc/M9OZ+zkoMpH/+F5HP6fVzgPRjs9HHANETF+46eF4q2f77X3wY63wIcF7ENsQ0dxOWGRmmAOYALAAKQOLgINSMgHlzdMKeWN4Ob3eA+qFfB3CNwGJQMaCYoZid7u05M9NLWOnHAlLHRv9wLGmvSroPANEVAH1E8Dwl2f6qbargOZJrDBxdGDyQaofAGdlmlGcD03w+xC8Kms8+6wHDYBmBgtcAx+ODhCOknB/25+318Prd5HOn24OG8lbkxt4DyBxcBKwZqAqgRjC9lvzt7+z5hJkApiNWmgGJpV0BkS4TII2yzkEkDUgvlXQfE0QHm0/A86FmwVOS7Zms8+W/Sfh9gHONbWagmbHMEWAYLCNQAI7X0tA0A8zHWBxQbxvgOpAZsDpQXQHUjJ12YHqClT4USL99IRu9VNJ9mLmwB9Fks5eB52NJtuewzgw4QjHONeAgtpmxDcc0DycJI2g6OWaAcWZZ22cVGADKCJLzKuHVcH7Ojx8HSKeb/rK813WXfl0BkgGLQXVzaUwFQLHsG8F0S2yFmGnKShYrXQPSkdlwJOsO2egjSrqXgmjY5CcCzzNY50iufShwnmIblmcADQCjy8lYBoA5AouC4tXr9txPyCuR0wFgxu2uLu/bmyNwfH+6frLd+3f9Z2agAqDOJPnATh2YnstKHwik58i6p9jopwARvf2RwPPMeOe54Lkm1968ejlwwDaQaDeIaT6tgGHgjKA5mTwDYKZgGYBS1hMo1vPkvN2JXGbrryzrSbLc79+/nOhSve8Bw8CagQqAOs/AxEDS19/X/TwqiAhMHSs9F0jv6/NDWfexQPQCSfdcENlbHx88T8U7T8U6z5VrHwKca2wDeXYEmnVt4CnvL3uwKBjubN1l6X/fwmxz19Z/EICwEJC2gZXWrb6+x2dGUNn7WHe5HINplHnXWOmlQHqurLsWG33suOg5IAr/WcAzY52dLc3AMTv6g4DzqcjNvYQj0BR5dgQaYpizgQOswmApQDGAMDjuJqAat3nO0gHIFgULk5Jvc98DC6ACW53sNRhqBqZ3b3uZN4Lp0Vjpg4BE9vcIJLa9n8NGPzWIrgLo9wHPiyXbQawDufZHf9yed6xjrtpzgDOyDUu0a6ABywBAI2BmYFkJJFh3a9tsE7BcLhLkZnp298tjOb4dgBYDxIOhiEF2MZDMQNUBigCk7HQNTIcS7yz5OUCCazeyUUnGHrh1iI3+8Z9+P0n3QSB6FoB+JPB8iGR7tlwjV+25wGGJdgZYzClToCg4Xo2guWvy7BwNRPYaYLrYdhzrXGzbWwAFy219HAF1hKPH4TUAIw9tnQILL9dEALKYCQACW+H1KdHr+x5M7217PIfDp48s8Z4LJLh2948vk3UfS9J9TBD1APoJwTOVbG8k/Km9PwMPkqAzuQZX7UOAo2zD8mwGGrDMDDDKLACBgsWBctvWKyg2W4dlIzDd7J4cLIYiBtPCbPRQX+P9ArKHBiyAStc/HAHK2GkGJpZ5lw8EEly7maxDMvYIRP+sDiqz0QdKuo8Fogagnxo8T0g2OGxdrPOUXDtJuJnEODPgwEHr2GaRwPKMQbO+ADAFLLa9gqRg4qYHDCQb44Xfv7YwYB5lL+nK+4/1PWy7bBVUzwWUSr4OTCTzNGbqWMmcvGtAQoykrh1ySU/KOo6NDpy650i6HxNEFUA/IXheKtl2rHMg125OzVW7eSZwNLZhtvGYJkoooDFQMGhGwCxnCWAWgGWDvNPXhhAHxw2BypZto/N8ml9IX87t6bL0QAJwhIDzSOBakoForSDSx20CqA5MDyKXtYJpS42tOlZ6JpAURHDtHs+Sn5J1T7HRU5LupwBRkNwkHG/1U4DnSLLNHLZny7W1Ms/phcAZ2eYINAoOMMwImBgb6yhQFgNNAYgBYyGw4HO86GePMHQe5ZotC8U6G0B1bgDbDFj4bEp7QDlDJclHYJqx0nOBdL5IViZSQD1X1s2cuudIuh8bRHzRIp7srsp0Lx8PPJ8ZeBQ4+qeSbQeen+/Bo6xTwHOqrPPdNxJvjHV+uEg8GXhK/maT+C5J1BinuGqbRP17b+skScxb/SsSLUn0v1y3zfb68iiLnCTeZIlbkEXXnVaJea3bRKnrtrMsskpc9BHbrhLjWRb90+23gqO6vf6V96T+6T7l4E/fw3b6GXwe+8v0Pbp9+e5sx7Lasdmx6jFn22fZR5BFf5v+xvJbk/32zc4FnRs9VzhvYufyPbbd2vl+Z+v0WpRrYtdIrxVfO72Wek3LtbVrrde8qI6fW1v4qsr5N9ZW0G7+lBRMaVt/Zm1taIN/SU4w2iraLtpyadt//TQMGCuFgZ4l3T4yeOQFkq2wjg0pGFlnlGvnh8Y+MAfAOJe1GQAu0yDblFGMbZaBafBajGWYYcAuyiy+jb2fLj0zCcm100kkbf15dim3Hly5S31g6Vb2v0g+n/fvgWmiMVAiKVeYyliKGYrZaRuYSV+DlTbERFuTd25EXCoTgZFgNigLwf4eZV3HRjaUQtnoQyTdj8VEMykXcu5t7I8JnpnTdg08R5JtNAkO5ZoBaAROJ9UIOCzTyvpLfYQ8WwbQOKgUZAYcbfQMGJdxmwQGSQHHWkMcBwq9P8q2bQDXCBqEQtGAgG3K00vbHuDCawUIA2qxzyugXNIpSAhMm71WMG0m8bYDeQcgzaTdxQB0vhzLutFkOJJ0zwURO3Q/CogYQP8R4HnKZbt9But4nKPSge1oc9UQ4+gjgLOyYaDvnytwwDYOpgE0zEQjYAC4LdQ4BuykIDkNsZCuK0Sz7pnouUsBz6USUxxinzOBC6+XTIAYANUxzwAmgIZZSc2HdWvGAgBUHnU9xUjq2sH+vlhshPjoKTbagWji0v1HgsgBdGQaoKr6xwbPNckGh00fHwGaoXqgY50PAY6xDNimvN4aiEbQMMMoYKKBIEUDi25rIEmhnduYKhMxaJLt/0i5jcul7csvJMCUIq3LkgEubfxn+kzSdVkyM9QUTAa2jVhpAQN9CJAGNkJVQ2EjY6THwak7knQ/CYgOqrgBogKg/3TggctGku2IdQCcAhLEOUh+RgKSxThXgUPxD9hmBA2zjIJmBEw0sKRUjs2BAqZKJuXKyZ+A6LkLgyeDfS6NiTz+WUpj1e+v6w00DCiASYidGEzMSpsx0TUgIUYCcAqDnSTf39f46GKgciBdYSNIOnbp/jOBKM7ekGE8T7f8HuBxp+2uB8+XBB64bLcDeBQ0+VuJzj4Az1JZR5mluD+DQ5RvzD3SdafmqqnbBKcpr+QyrdV1Kg6Vrcu2Tpa6vTpe8SJLCrKsub5Ol+qO6XYx1OdJZAn2B6esvL7UR/08/uKlOXFP/l36z/I+u++xYyifMUcu2rHqNnrs+O7NnDn9jfj9xWnk30/nCe7j7lyezI2jc89OJ66RKwW7lnpN+RqXa25t4HZw6bStfGmxsjt0d71DJxN37hfWRuUJd+7ZWFCWDuFv9iD6a5Gv/2HCPk+4bX/yw7Hb5pUFVM8Gs+D8SQOPSrY3ryXcQ7rpiU0GmixhCRIfgsR4kfioHev70mC1IcRw0Q7VXm/18SwSwyYxqKLRz631YurrpIB4lGVREMS6z1QBELeLRP1vs+/S/cdNYor1fYmF1cr2ZV1tYCHURlnex/bZPhtiPT59vcTaKPU4yrHoem24ur1c+dtsf0ECPqvPt0zrL+V7g31vyEsZvKLHqDAKIdX3JVdmzravJI1V8ViI0pi3MKyuX4yht2qehCQhJwnxVB/1tTLwWVnankf6fI62XkFizx+M9c91aEXxRTQJfRNEHh5E7m7rtGJq+qhxkdUY+k7C/SuRV+9ELre1lvHmUqX+D9+XGKpUqTycRd6/lfDqfxf52W9F3tsgyR9eSfj0vswCIP/jNxI+/ZmI/B8iX//fEr76SuSX2u6tbf/h/9WPfNXl7/9ewhQ8h6bBB1rVDJ6vBvCMZoH+eIDn0XIHyOucjHXWx5514K6ttk4bhYxsk/eMg/xIJvZBb3tScC0ST9bzrkvtnVfrobVHT5fW0+u2YBWwSQqNTQpbELMk+gsf+Mf76PY7fC+zFh9rAHMaO3W/ca2/vZwDZqW1nUfPd42MlHtW0ufLQtfHZDSzkV7Tde2vNeQ6twltI7N8kbapr6iDvsZET+aJXpAj2gHomuP2McDzwxPgeTz14DmSbO9TLw/0+X1qcm1BYjRPJIclDkfgbJeahCwyKDSpk6ihJZJKAIxLo20PljRIOTzPSVasuyRN+ttnwvU/bHehz2Nf4/ekCahwjGLyrfst9BuTrS/nINTn5dxcasKWgYTE8k4S27kv12K4Rnzd9FoeSToGEdrGEYh++FggupZovQagp0yD8Qt/FPBQRQG7bV5J8EO9SF1PNrDOg12k5VWRFB3DoCpgBhyxnnfNnnEvPTJiBAaNx0DRwCP7uGd8HgM17hlQ1h4g/OeAWPefA2CDNJAdHgM96rHzb+EYStc5GyU7J6udjwmQUP3AwMp2DcSuychGrBzKez+0SgYkxB+HCoYfG0S+HIFoiIcagAZ6OnLcXlJhcA08twDPqQcPQPPWykLeba2k5DxItq70BqwzyDWYAvhDqQ2k2ggc9L7eEC9V8kC6lUYV6+NSY5pdY+3AQg29sEZlrDVOmCTU8p5V/0YjAet5WwDLGKXsW9cxsEZQjce7xP43QcoVmTecCz03I5BY2m322v8mso7ZCH8s6c72vn7unbUBbQsAUweiU21Dt0+ASGgw5lMgulbyM8NKxIrZcOyjaacEbsZTVrX9gBl47m/2NjUzzhjvILfD1A/26VhHg+fxwhlgSi2aXdyTuWkjcMA6m4Enhb7XHoEStjlgAJZIICk1aNSAWXptYQ+Q2Z9uo9vOpGCmY7wYCBlUO0Bte2B1bBrqOSjnyTqREUj63snOc7YOyZlpiDvR6YGNwEKdU3cmZ5XiImYkduhKHd0BiNCBv7E2eQSi3/xbD5AjZ24WD0W5Fvdcs6ufk+eZGAZPgYfNAk6M4iQDNGxNL9VRaqxDzHNilrKeU3vXzSxoXT8DDtjGG9RG8czW98zeIENrwCNY0tIaPJ47u4QGJDRkZRT+270fGkth/w7IhUAq/TGFcHDs9PvwW6MBp7iFEyBB2pV40s4fW92n1Nvf3KmVjo4sb4AJnSNAdJ6YC88FEUrDUIR6BKJf/NkT9vaVeCgCSUemAXbA0u0XhNZvn5Ek5ZjnKfCMZkEmZuGK6SVa3ANdHdu2LtekybWi2VN1lrQHBXCKAzUAh1ln7KlnoEnUWEejIJEEc5NAGcckV471EX8KFn2PHbZk20Om4Q+f3UwS4pggAdPEYOiOcQKmkVmZjUYg0feVc1pcu2Tnem0M5ZIOcVE0qW0GA8vxlV7nmbnwBIhm7hxXcjOIvn0zb9Pc1q+ZCoqd5atf1jzQLydxz/e/eTru+cMbC9KeAZ7bF4BHA0rNt3C887i1E6wyoORjUsvpyKWui8nyKJbTWcXyREtZtywAjMUw0XIruTaiGBHbaL7GgOjrQ8sp6fvbJouINyRt1CUnVPJG0vYpoTSiRfehx1COOZU+u2ynn/W80FJzRrs/ii9CqLkdbWShVj/o8QX9zSGW/ETN/WiaJtTXpaSodhxlHyXnFct2mgcq+aAoNT+kOaFSMFG/R8+5fklZX3peyxPpB8q2sVQ5KMx0iGapzsi6n1z2rT1C0Ce6jnNHuq+z5vliPYhHyxnpgW81OVXyRelO5BRqGdPpXAcmlgcdeXsrcvNQH29DzROtnw15oi9EzmpsJZHzH4o8fC3hD1+JcI7o1f+UwDmiP78X0TtNID8k/6/I11/XHJHmhzRXGuUjxD26+OygQ4XBzm17JnhGs4DjnUwWaWQzYW0BbV6pcsA0ewLDXGRZbD0zDkwBjwu2FhclkjroxYViG7CTskQGU0RztkKLUzaTY+WzJrUS4pilSjMYBru/cPAZe459d98Zja2MwcAycfgNmVkn2G+2c8DycYHraIy02bnkc7vmxvjlGqz9tfFxULGlGvIkLmJzQdvEs5hocOfGioWurX6EeCj8t/+WF3lGvuda3MN29ay2bWZVPwc8KP9Qmn9Ql82KPB9zk2yIfza7GNFea0b+nPuLpM/PwzYGoIBevbxOXtNWe3p639+zz2l2Xx/LdskeQ83GW49eeuSSqdfeORWWKD0semCxgtNFnrdsViiKjUMstWnag+fyfKvrQtavKFSUs73OuW6jj7qPFOqjnqVSJ2fv6WtsX0rr7D1dj/f5c+UxST7F+ohurawbttH1i22jdXIh1scbe631dreLJK2n06LUsEgqdXU6DOITSaetr6FDIarXz1kRKiq5x9o5HwrxXvKsbo7nV9jVzA31cnEEDy/PjXsYPDok4UcBD1nUHQvlFpxmej2yDnpLXRfRW24mm7ZazoPXMbT4oDMCyDJOiEXiddcsESu4yxZbDFTYgUyE0TwY/zyWCe3zZV9x+I7hu6d/xk5psNbZgHBzJLRzttg543MYiXlwvndsZE6dTK6fvzarG9cctY0vYqIhT4R5NDC6dWZvPyceYowAM7tKhJl0G+OeP52YBsaOdTzPjwEeY5uHdXDdTBas5LDBbYNjtElziZKZBqNk8yB6AhwGTxgTlaFJKpVY2mi1Efvno8k6s55d4lmADyAAKOVYojVu+tN1DDAADyZBps/reiFQZZgY2Y4RxkLof1+YFMHOgJQmko7PbbZzDmcT7hyuwcqSjly5B7K6fwwQ4bY2X02cOczNMcsPycSVw7L88pd/swBZR9LtZxPp9qDT4V6aaZDJNLhPdUiCDinQwlAdnPZKy2+kJsTK7J8fAJ7CLCrBllroqcWLuAAl3qy9WQnQrWdbpBZRxpDMGTKzQGrRZmkgaipIayTleQxe21a3M1NgS/W5/mUzBkKu32OfxXtlfa4NsL5nJoLANFiagQDzQL9bJsWk5TPVCAmBjYRoRkqowTdMhCwmQanIVNVcwGPbZzEQdB1MBf2vnEuppgI+U9ZLlbBL0aYmb2OZJ8B+fR3Sjp65k6n2fDGDQZ+r21D2YfK2XrD6XCXveStubNk41cLYgv7RWNAxTShC/SSWIRTy5pMyPENv/FUAc3cvoqZCHk2Fy7zw9F/+p4TXn0yKTv+yGQqRaWmkLQxPuBb3zBy3MhjOhiRwYegbm3f69ELwgPIfU88+HICWDHruWSbT89JYtxooL2YcJCqDYcbh+rEQBrZZ+l69PI/ETHFvbwslSd2OXvrqApkkUp1txkqF0IwImBGwv8dtumOhY8sk+fy3Lz0rhdDX9Y2MxOcQsk7PsRDbj8y/5v6ayZAbeuR80QuYCB0z5jhHASqGQpS7pk/sbblS7jMb/jBKOZdwM+nG9+f59pun454x1zNWVUO+eZL0sZXmXAMPGwEu3YYL4Uk+vRBp0OIkOaRZ1+VPJYg3Tki6ATh5BAyVznDOB/LM3bPQA0DIGfPPZwLEJHl6tB5yEfLPY6AwfI5cPci8LjcE51B6QHUSloAkdL6KfNta4lUGScyx55JaB4fc0BgX8fVld/UaiDCT7HpQgHo/yRGV5Vo8BJfuz/p4aCbl1qOEqSLvS457/mQS99zVu5hN455L1aIygOedyo7HliR1q1qugwfOG8DjiVPS0enSnDSvXasyJqCy4GLr4MolTNtUtXwwWRYt5xEhd0zmFFlTJJHlSsSkTq7jbKocsueC/Er2XEzNjYg91+2XKm0i5huLTd6Mi7psmnRRvVTcNW2G5rilXN023SYFe15nYKqPS3XhyiHo52pj1W1TUUxVgCX7TKiHWqRgjvYaci9J+d4i6dRBK/kf+2/Vq7GZfDNpGJe6Ti3BXLc1cS1lzPlSXTiV2eW5stBNGdhVXLvSyS+LJG0b6s5Z1x8udZJHTbam82OZb0FeLxJ0Loeb+zKqtcwzefO+5ntUpt2/LaNatc3q1BlZSejr7ytzvf1jyd/9qtwRJH/3trb9L/9M8m/+SYK6cooNuHKKmT/+K8krI+vIdTvK93CN2/352DTIXFWdqDwntDzPS8AjdZxKHbbGbs5iyVPIPAxQA2g2i4fW9n5AbGEASYgNZsCxxKQEs763CljEEMHiCHvUWEFbXwhoYMkaXW1dDh5ogVyBfrhka9oAkjbIMoTbLGxr5hkWNqxrgKtY0RV7Di7thNJSgQNw1K/YA0ksJtLDzoiLapK1/Ip8sWStrderE5L9msUSrbrOAFaOZLXJpTf7ec8E0baVNpEuBqYyV8tjnfT/dFuBc74vM6MWIN3UGWwbiB5F3itqvi9tuUwWWYjBpn3TNg9ru4QxRDB/+Y1k3AVi+fP/828WSLcfLK4ZXbdbqzbQW4yoecD5HsQ9b2zuAZgGy7kNvy6OW640u0jVrTAGkCTdBsMg1OB6D57FGnwg8Cwe0Lt5oEF8rtKq/AUzEIqJwO+HZiiUCoHgsiWaXVxNBxgMua4r5kFsQbpADsEwqO/hc/U4olUx5Ppcsu2zHksxFMwAsf65/wtt5CjOQQV3bHmqbOcqYMRrPT8N5KHrIApblvNGua5srArGCWRA5NQbB8bINQdGR6vzSBjb+PveMUSjYIArmJFg64IZCZdcTQXddjQW0lKrFLBeX5/qHHhqXu2qFfRsuKmwiWxDpcK7NxVsP/9Dkd98LeH2SpUCGwrOQEfSzdnHNKIPT/i5odfinmxxTwYD6dRS30o4b81x8yEJtaq66Fl17FaUdYQmzR4psOzAMyRHZWmsBCnGjLRCY2/2HhppquyEkhdurJvQekqwQtaBlUItjykS0ROotQFWNjL2SdLWF+Yxtgkmc0KTdrVlH81UkajNGVeV6phql2V7s8o4Yxmdpad+nSVQxROqsSRRBaJwL9cMSAnMtAixS3Xjav429etV3ilb6A+7hDJ5iv2wBppcJWjNCjPTqBu39Uyk799Ik3rLpTBbuGwid7F8n+4rnE/lZmFqSqVzNaz0zhHqammiVeMhndy+LA/KQl/YXOI/F/nqQeRrjYe+KW29TMEFFrom5dapcTBIt+K63bcepEi3xytxjw3DfnxTflBz3N7X5wgCL5gmFmx0qbkAaW7b88ETa90aTAOxuRCSvZeFQBS8d9ZG7rGS2csxQNIN8ZDXnTWZVlkhW0+cak9uMUz9w3ProQtgDDweC9lrQT1Z3ifokvTyzZBXKw2KcCurqjRLFuUh5hGvKGhVBhUkOdXRtCnX31QbcY2LurgnVLnXASVXWVpAJKGBB5/JbZaiCrhcf+NmP/65INL9PZqMu72Uqx+22nbS/Va210oFJZ+klrR8QvOL30ouMTik3EE8VO6xhPsT6bTB7+vsPkdSTizsWa+xj7Dr9k1fqlOk243f7Vp04sPvLvu4pzMN4LiJVVZbDKSvH82VKROyr5QoJXaZgadku5cKjsQMJO15pvWLyR+XfMRMAMwYEzlwaH2uwKmvjTWtwFOBUuMee26s45IGjGMypr6uwPQTP4ZCfkEQBxk8wDwBtwmwGEiMcQRmgpXolO1qrih5HFR/S7ZcTw1FCEgm47LHcjKApe6r7G0zpsnoHcA6RmUCUIUq9bXVT0GEoMtouQDpUouIdb83+p2YCswMBWUhbdDhsSifzlQ4k7HwmZb5nGvb1cdibb8prpy8/dSmDlbF9SsJKPU5YqFuLr9rxkFJmNJNcWfS7ZOTyOMnhTZr3LM10+A9l6oLVRbw+BBpwX3nti2NjabgMbPAP2vrUrOpXbIlWKaxl22djNvqLD2IORg4UmMeBwwSkAwaY8Em33KJTQTvJ9TC1URkhw/J3igmFGR7F7qrUx5q4Sogssm9aiLUxq/vJYDJZh9KMBKs9k1/U2IgZft9yjRsHAQZ2AgGSeglXZn6eLFXJuXgVqxLueOFzEBU4ratMo1r2zq4qQAH0u7WZN1aB+kXIF02ia/0NUyFi90N8E7yJxeb4Val3LsyfXCTcra8hSv3hKGgy/oU+xwlTDvXbbCs31Lc836rgeoa+spqMet3MXdqV2Ft8iejsT8TPCVhVx0anzqq5CdSXe/DByi774DKtI5inQ44th4yD66bx0cWD0noWSgja19jHMg8J51wBBwsWI8YYhYD5YGFwD5hHvdAvjnrwIFjIJGU89cASehBlIyVcq2KKN+y2HFvxlbRqLV0KFdAJNUccAmnVyXV69TWx3ozgGLqaRszZ07sFpyKG62AQTyklTOH1ra5cspC7+HK1QSrXGMhZ6BZxcEo3YSMA4Vn2fazCuwKhzYAACAASURBVLSbrUm313dFw9aBUC3uQZl6NQ1Og10NwNz0Je6c57kGnmQZ8IXkWqqJRXxHtJxNcbwKI4Wehca/TAYCA8crs3Ozscd4CNXaAU3PenN/30MaYyKUsBzkgLCAbRADGQizWWKFfSDNTDZV8Mg+7nEQBYuBDDQAEowEa9J9/EPPOecF2ZbAYxb7LLaXDTJueQaI1pongmMX7ySFiwEXgDJ7O5yrqaDrVzMVtMbnbPGQTh/8eJHg1va5AuMBs/R/YXcp0wTrryWwlBsNhV+IZLDQyuwj/94u1GgcyEHCVL1/rTV6XHvpltNx3JPrnGxaXV0vBANmKM+ZGQZPgae8NommEzGmbKCRxkghGbjyAByKg2AWUC1bBc6QJ2IgwUbm3tkGlYVg7FM6Csi61BsIh1PFgoDYcau2mcdAYB3brgGpgknPl8c9nYQjB46BFJh9xviH2ch+iySXluWzenI2S/oCNFqisC2lrk1GEKVsuSAGUaZ4KvXPI+KgczMVjuKhcCTlDhKsON9sKPhF0HFDxkLrjH2eaxwgYequ21pnh2Tp5slSqzTQxwepM2mqYZDX3q1aoyUcKzU3S5pt6u1p8NQ0QamSdkYKYCSxBCsBzRp9J+8wqpWqEhw4oxMn0vInAWxDsQJyKLj+YjIuBOgwt7XL81kIZDGOSJNsAvnGCdNOvsHCrlLPIoliMe8cuDFhCvYJo0xjN65eZ1AqzkPtECqwy29RcwGgOQKRWFIYwVdZlvJ/ButckM2z18pIW7326TZam5NmLMgg5fT3d66crXumoSAjC63MPloD9Nmbhrxd9zcYB0qFmlv6YeK6rVuTbsj3lLnPx7jngSadyBLPVBgalzKxey2DNwAtNhSZDYMj8OzYRtpkGCUWsgQqs46BwAHVgYaAw04cjIMcXMbUDoFknKX3m4nQZJ3A1hbpgcRxjwMHtQrNtq6ml71XXLZBvimjeIxUjYUIK5sdOAAJEg1gyizRBjYKrgUtxoEjkhorpVDzCjMQgTFz1dZ5Q4y01PyRVlqUtIc0RnJT4aGegC4e0jj3LInzQ0XKadpkcOU+kXoLF23LR4YCsABDQTHyuW5jLLQy+3C924x9joyDNxeRt/WWis11qyXqVaKZiZAvlCylPEmO/XMFzcWSoMiMd0lSsI9VAU/BYwwTTZYhNwRJx86bSXSPi8Io7RrLRABHABzpE6ywshlQFPsIenOKdbC+xT8j/RCQsgGFbO5qIoBlhpxQriDSYymsAxBFBgjyPbCyBykHqcbxTpIGdPwmSDY8Nwe7giwdgCjUC2Dc2CIuY1xdczFJFxey0qN1VPTck6xLBROkXGEg3dZcOc0VvVkklxu0PWEojCzEdXLKQqu8gH3YOLhfRW5+Rzmf4AnTUmpxd1ONhFG6qZd/IWPgNMY9dfL2kCgOiggYMzHL0nI4h+CJXrazk3S6PtL4nXRQPkN/gWKmIKOMI+lGLLW3e61tSGuAzY0LlAcazATUuiGowYOBBp04cJWD9MWkGSDiGMjkmzTWcbctSwPTzDyITpN1mHsYJVtFWXHj0mYFdBMQCaTbZnki+4GxxnYxG9tEA9MYD50ZcJZkHaWc3lrlXCfC19uqlPWPSzMU5A8kf3apIPK2/kwWWj+EfZRJSvzDOZ+13QFb6fySqnyTmXRrydLSkynrnJJpWQLNhauqx4qB3NvU18CjEi5FA46xEga9AbjY/tBQGCztXbV26MGThwbHfyjlQT6IAZPD3IkD8wAikHI8F0J2cddinzEGytIxUWcesNtm+w9uIAzHD7BAtsnANoEk3BGI9BiWei7akYtkZ6Ol5HS0ODGbY1vBFSSfjXUWsNDFGGmQcoWdkjlzmxsKudyE2gwFTf7fn6sz91IW2t0U7TnsoxUHM+NAtqHKGlbopdBnnauags9N2lgQnQBktRNQ4p6hqrpIp6WW54B1MCRbKOaZgQfForjFSLZ1tt9S0JnFYyCPl1DWwzKNGQnAERRfWlHmDjTo1cNEyg2mQaZ4aLeYVBO4caHFQGAfk2yo696BSZiJ6rF31dZuIAzxDyS2l2kHX1cPwtjGmCQEMwZ2IDJXQpDuyRVUYCMdamHV2jUMjFY5ka3yPNfJYlzOJjMZIkm59zUfFBaUDzdDoZT4HBgKqFB4DgthKQA6yvscsQ8qDh6Nfd6hGHQwDorZQI3oct/PGBqNhbIlXi+XSdzTHLM6BW8e2CdYXAP5JwfgycY4VuJjA+NQaV3mkkOVNxsLWdrxBAJQBxzpGKqPGai4VIZ4KLe6UQeShONcaiImcvPAGgLHPQCUle3swMQSjYHUybSaGwqh/y04EB+2YMdR2MY0ZfAK1AmIstXqLdEMA2ahLDqaL1+yASk1IHk8lP12lh4D5YtEl3KPhek8+XqrFQ2PVHB6qQDSvNNrrWi4Fb11+9zWPmAhzgs5A83yPs9ln1dr9fnPNyJFuplxoP78kmq+R7DewDKTbmUqKhu5WOIeq3T2MUAoDEVjtgqFEr+Q23YIHlqfbFtMfphZsrXynRgGOZfGOIgfTeqBadjOztKy93l04VroE7zFTBbayBOoOxcutWRqJjANzBRGICH+iQwYsXE+wV0/gaRDXgsOnFUeOJBmICqOoGnGhNKk6NZ1DgQksbo9u0ZFwp0TybmZlLuQudDyQ+XKw1CQeq/WUO4efqnn4aUsxHmh9cdgH7lpxkE244DzPXDdtscyvKFINzBLrLZja8j2WCYQ2UxqATjJ5Jo0NiozxYjdGe4KeGLogaPSLQ41ceMwBwyFwKygI3DsM3VkahjAQ49uJgQyEIANOFJHFERtGZVzDCQGDT9K6qoUwgikUo1wELN18Q8cONu5OY9VhhFYRhBZgbWY+VCuaqnKMV1cil2rXZ/jqZgKUfh3gnk22zxKLlLusVQw5J0rx2CCofBYBjF+VBZawT5/9Erku9+DfTrb+myMc2ojMdk4iJb7iUiOXWqh6WbASad6e8RyWuG2URLVqxC2BjBLNbRcTx2vfxU8bmGnFhtlin9Q/kNGAmbJCVQz14BDFdoOGgIT4qOAAWRtBGrwf2vR7JPFpK1Z1XXuxgUCT2p5ITfwmjTrgGS/KbtrCOPAJpP0KoTGNjXWsVYer4AoL1Z+ZEdtlr3/AhtiXn/N4s/cnSskdzJXLtc7imvBqI3GrbHng4je6Hg0FAqIUOazVADB1v5QFvojHcHwTa3U7iScz3Pwc5Evvxf57Viyc4V97tY6fBknveR6uFxHrLrgbLOIhjIfcvHuXbqFxkSYnkmduEjxkDtubZzP0rGPxUNqJgQMoJsxT7apqxhMJOl2DITEassB9fVwBBzUzTFo2M2qLoA3Siw1xIALl2S3UO2bdErP2IVYyWMfZiKqKnAgWR0crluy7+7KdsiSdwOgyD1DT0LsNgFROQYzDxD3RINOhvjNJW+a4czh34sOQQ9WLW6wKrItlbg3W0V/PoN19PWpNxS0M+dhD1Yrl9Uxfi4LfXmS/B6D7r5vmQb9Z2Xr2uc5eLSiznNjH837PP7uCfYx5inFgUuzFyHflHncOKgJrcI86rpBukWTc8gFlYa61sk/gp8CYwghSSd9PAQzwd6dgofBJ6l34zD022MhyLZMY4mGejihSmzbtuu5ARgClztwmapXZGJlD8lTNxBgbbMTJ4mMAxSYWlJUWamEIfVYmgPXqseT0RPqFAOcDkg2K7XCAQXUAY0gsqESbh50cY8NucBoWYOIeKJ39VingGirbaKsg5TTx7M9IsGaH4qCyS7jFgdX1nkKy/MnWGjMC73T+k8MurNKbVjahYE66xoV11Jr3r79TZ/3+SD20XqlYHeOJuNAL6IyzGIuV7k7NJjHJJhLKBrSkEMPmmDzDWBdNjDAbTsET+3/Fi7bQdxEjpyX+HgclHye7Gg1buW3uLxrdrW7cpBtXo1dgwmADQ0U5sKhlw2zwC0zY58M3LGca4nUlOG02XAGK70pjzH4686Fgw4FryViSR81xBJuAqJsrJKb5VhZMXm5UrPZWx4ok5DLl8Xm7653F89WGZIvAJU9wlCQWmeZP5SFOC/0+c9Izv3cQESW9rozDx6beVBY6LMaMD0+5bxdYZ9lq7dbF+SKNO6rhZUtYWrVBjZWxg0EzwWZne1TVLWymtrAt2YoRE6SAgCwq0fwoAYuVOAE5IK4Fg4OIE/kIe7ShYRYCPIu0fwIBBpMOO8sRCYC6AxW9nQxCSMt45ktaMkZk/awC9fAFJyVTKbl0OY/AGCc+QbbHezpkq3NLOT2B0CUWywmPozcrMxcZwWqTLTU15hqS2C7h8ZFsTlu2V25GpvmC8m4uBUZF5fNrmY1EDRUyNdY6JojV1rGZ3WC0FIj91hgoBPUd2bCqgHRNfPAb0eiI/juRbjqYOe83VRQMftsDxI3k3DKPvFcZRzucrDl/m4JG+VbRukWxeYwgMFADdzjIR620O7QhuB/oTq3HXg6SSckGdnOTh5vuawLBBwx4KBKITeWCejjzZoHULqSHjTIEUPeKMXfb8QFVjIm8gqE1OIgc9myHWORdJijDVP4SjU8WupUBq8cki23YIpBZLEXfH3M19AqDLALjnWkzd0gxjRWhb+TchtAVdtMthHL2So6Sj5I5ZsbCA/Fvc3MQhojlcF9gyPn1QlLuQNEUVpaI1emopRjM2F9yjy4OVnF9b3FMqENV1gp71MI6UzOG9gnNgdObetURw6WBlYkW51LrDwPdmMsWODsgHEM0g1BGEpvAJJMVQRIjNqNt3yQ3Q480uIhgXwjQJGV7UMarO+OI3Biy/fUEZptoJ1LuJrlgBnty9VcUPcWJhhBfISe29gH8UWsDTtMgJQsbkvSQNxVHvjz5MfaW9ROPxU80cYoUcDGt1TB9n1iN1K8ZkzEQk6Pv8j9msbINgZKr2dOq93WRm95UgtGYwGdOXHbGAtVBlJZ6Cx02erc7UWpWY3cJ6tVar+vU1wdmQnVhXuGefBmrRXXJ2OfV0rBbXoqycj7jLFPJPYZbetqR9dcW24ToHO8YXFMv240D4Rq6KpD1+Rcu1udu3LSEq6H4NkxnHRxEgbMYb3HOwBOblUKPEuPJyI9gkhTED29EHgcWK3Grcmn1sMnBhLNfdCkG9gnD8yC5zQ3wQ5EPieX53OqQRArAJDvyQNoMGNQN/hPWhKVZxaKJjthKOC+TspCbGtvlExdOB90bnmhcr8hY6FTrPGQgrzMr62V2lpU8AwzYVcLJ9IGzN1Dvhml6VDtdwaYs41xX06VhfTgMqoO2Hk779mn5BZCY59QJ1Is01xpjAIZB3Dt2GZs2IM7ByOhZQKGEh/7/FPgKbGQ3SZSaHAdjRfieAxVBnFMmgYGDQMmu6SrDTgSFGYLwJJa/GONOw+AQi/OFdkBN8uisp3k/wYrhqb4JzVJehVEGQldWM0o2bH/mI3IIBjLi/p1Np+dDeCLSC1d7EZf5gY6C2nHpXH2yELbiRKrVh0TrDqhsI8N3tRKbW3Tr23ot5oJBUTnIq98wN24rCrfXp37yoPdgLl7Y54HMw8ereJ6qbcwEQPOjRB4INvi0+wDwESTQZhKKZnjVuKN2DPNKN2iNXCe5yDnFvPkPs/Tx0MDeBALRd4XuXEwEhAHSUt9dJXYbmHDzuYpfitYWvyDRroPf0bx5sMaHEQDeMBEnZXdYpDgMg4GxsBCHscYb6bcjnUE0S7uQaUBvq85ec6GsWfGqZzbkPxFLgjDxE3aIx56ioW6Eh97fDQ2MjMh60Sfod5GpTCQGAO5jOMBd1yZUBjoq2Zbd5UHai7YcO1Rvpl5IGPF9Yaat0tz3GK0yut4nX1SnS/M2ccDeALLhrkJghkJAxP53AVDTDRIvxoPZaq8HsFjbp3vd/we3I8ndyDCqNXOjfO6skzVB8G5pMVC0nI/8QBC1pDbqNTgTRCc1WbgEWkcgEnBGiOJNe4QUe/WYiJ3KFDxCovaVR2BKJt2zWFgGnLjGCAzuVYAvtT3bP7u/fs2N725eDliuuIDFlo2S9zbI1cn6HwcXKktZGmPMq5UJojkB/wyNhO+mkg4zv1w5QFm2unMA7BPNsBcKjPdGHiUidRYKGOEQu+8Pck+KI2hbLhP8icFkHtJd8BO3fsTudfFPHkAD5w5dLKhA2uINPG8swzkHQEmgx9Cm1QkcsLU/h0reHjBeGsAByNRkRviGMjhAxZKzn3ZvjPBEmcb25ttk6EdiLq6bXBIMwFkMAX2hsFgGgD00XJVua98sFSXD7F4koXgyKlpo5JsORHzcIkPze4zmgknknFcmdDlhGxZMc813LfD3M9DZR11s2Ee6E9fXtcxINo9bDZUe7Ocz8kOfKtjfMoQh3IyTI8meZp9ElnImRqwz4KTm0STgX347nVZfA6ElmgN7T0vKB3BQ05cxq1SGkA5WeqVCF0VApXEcNWBm9gc+1yTb/2SKZnp7OMTi7CUIyAFys0IOdRsNHsDzsZMZAv6zCPNd/d56JAojcQymQHVyzo2CzAaNo6GQuIavgMWAri0wwYLXaz9LbmaCGcDzAJZp8d6U3NR27v6WZgJYjeB027zKCfEbtw6dd9Mvh3mfj5p0w5tbB4YiG6sVKcOApRwIummvQEqDiyQ99zJNfbxAWsDqDogMfPkVknAE4KQtOtYZzQlZuBx2xpxVfBQoc2LzexDycjAoAnU7JucE4wTkiMaSo4wjpZYzjmYhgJS5IWCSzkL9F3qNfbJuL9JJ+fE3xcZJCRMhJFtkOSdsZC7gDb+lMFiA/6eZCG9O8NmlkyZRJ9ApBLubNchGnAeg6Vb2Ey49aygnH9oMm7MCbGMYzeuk3CfV7wUyiryzW6Xd7orNzIKXnlwbsO1C3CkTjKiku3GQAQzQV24zcb/aBJVnbgIkGx1uPdKbBQOgJIZLGOVQJtFNDBIhIJ8BsguvmLpJlTrNoKnybTmvDGo2iQiUQYnDndlQEQCx6uzsEMHif3S+MkbsFV7OwRCaMnSEUgleerZnCF2GmTZDkQ1tpIIFhvAG5zDGmANPFEIRMHAQVNsOcOEaGyUUdTQA4vYCkwTy6360aZCyfPEVJOfRelsJOFuqtwsrx8h5WAm6Dl7VSsTSkQMGSeSPzFMFDeuVfOUZZVBviF5qovdWc7lW/nAeVd5oLNKlgOlIQvSmQfB6+HK8wKmze/aViuue6PgOvuEBjQYBwBboJ7fLxTHOKhfyzQwb8wvNTNgBE+U3AEy7B6HebOxDvMgYIL5gX1aHPRUPigMzZ4aMqSRJS299s2D9yiNJRqEhADFxkQDUX0n5oZh/1w3I1C2gfIMCgyipc4lte3rCForFkoEnBkLbRkOeZmw1N25WO8PVNuSsY9Wu7CZkKR17MGMBI3ldb53rkyQiYxDNYJiQ2OYB0qqrjrbaLYJE2U/7ud58u3WXsc6xS/MA0VycdvESi0st+C9hbTbXwSiaasvC57TOWCfTEDaGQdCDDbki/KwHeV9OmYawYP54EjaNQZqjNQ1ls6qZhnXMv4MDcJRD6TQ5NaY3uSePwysE4wJYBBwr8/SzfdqhaexAxExVGaQSS8ZZzJujGNGGZebe3nIQjqjarS5xdFGorWdhFtmptbOIuLqraofITNBmadwwW1VUiHZFb87lnHuxtE4oXea8vFKBLKvlarKrb5QeW3y7Wxzcz1XvpUSnq3GO6uZCCXYW5pUi6FJOQdPsBn5lzbTDWaNOWIf6u33CVapw7DJLOjG83CCtoulbDh556ZNwEOjU5Eb8sRpOc7oaU4ASPx5w0vHPnlAloyAYhYioBDnuNtl0qocBU33m+zcJes0kv0mB5Eft3jM14wD+GjtFiouTiHNcGeIMfbpZFzN1U1ZKDZwlWuybWXuhBTbPWYr64Q2dbKbCWIMlCuIgrW/58o4BVIJWciNk0uTcY6ZR4qBZrVvJ5JvJ0uelrIdPQt35r4ZNe7km5Z5UG8QzEToJJy0imW3JjFAzWrsvNp6YBt+7fKtVTj3rNQaesBwiJB6ZsnEdHmsehj2NcZBSK66UVDlIQMvUBMfgTTKNgfRwdKEGRvjDByGE7lewYYoeMPt458ORARL/zNpWCwOc/rcX8P9WKVVPfQxDgCRvTN04DAL4bUlwssgBpxXSDgHV7KpwexOH0XCmYVtzm5pczWxt5dxN+iV7soc2uX5xZKqcpRUtdo4XKL4pdTpeqt+q+dOP/AGOlBMvtlSbhuxVIlWYh+MN78RWSxxqppys6SW4OCjgSbZDzd3BGX/gmlwaRgAXDqOgQCSTCyyMwpookPf396hA2P0zJTnxsNEtpUksM+NbUAmU4El2ygz8Rq5pc4af+IvDp/p99WOuT+G4Rh9NG1sruLQMXS/PdD5Qe1fGt8bDZ92d7v2Wdlft5yHDtLqCKOxfqZ2gZyPd7zRwoFk4YGpHrvjh0Rri5u1zWVr4cq2WBu2+/ueI7Vza/MlqWqYYIwoZhQ78d3b9iF97/HUXr/mHS12exJebkW2ix3YpUo/pcrTqR44fgj0aKm4Dg086Rp4cJED3Q0b1c7DbUUYWELAYEDJADj+HDcM3z9bz9wQaT8MHjI+9qDbgyN2j9ljpdDFWcNf6F29ON3XHkijAxn4mBN3GC2e89/NAEhjR4P1eejIhnPu1wLjo/hzdDyJgbW1NoGUwQxEY1vyjtoAg9cna5vaRhdrs9p2S/xOywV3kLe2/5reU2x8Rq8VO+tT8c+rzQbO2Ye62rdzpcfMN1AywJTYJ5fJ9Jp8i3ZfUJJvJd6xeMhPDkZ8CjXOZKU/5NDt7s9DjUTEmafr0VNubp0H+nThAdJuhh6KrXyC+NSDh+/S0Em34c8HzdF4oGZt1WdHNhzFQVy/kDGzm+97pgDb2piyySCb/zolv9UJXMtdDojuxYoCriLhfAZTkmUAISVlOVdXk6HtXkT+3bg+0Yx4uyFYinBNYSbYrK52b93EMq4M6ExNxmmMorIukDoqpkK0OzOc97VxulqrZ3SgncZD1+Kgomc/h0VXseN0BQknZl8vOlpVieeu3mZls+EKmyE71lF9OmF4mQEyWY+QjBqP5Bu0agkGk9/NwEHFIzt9cnO+Mxwabz8mZ9cTdtJh7FGp52bgBbJgIQVH5tmBJ+16/jbCM/kNjB1cxIIBvbQ5TlViBmJXG5EbGJjsUO5Zqv7RPYtm7Jly73ZyRwUbeidBR0UwkdLMQt01Gq6fSH/tA7UNvvbFdaO2MZNxpa1Zu0vWFjfrpqK1VW67t9amixH3WO8i71LOMFDiIFunWPkcuCjMc1PuoC3YkNOrNt91Xe6GoQu3fhu/Wvt2U63tUuO2NudNp1xxx43dN7OrufIgWQML1sNkGlyHhp0TFaFy422GwpR9LIiNPPaINb3AyWkWdOyStrClj8BDuSBu3Naz+7wIXg1jidTsMbpZxyMTZX+dpdXD1cUSqVYelH2/wa0GZiAE9mXikNnd6fwG4ZmMBCIjDPXBoDczAsDI2Z3vCQt5nqfeKaJjH/t8c+dgJtTpmOucdXUkKpjLE6qJLG24tsnin3K8qyVVpeYuMUaonEe2s60mDhU5GCOEU1iwYQylmClu4Wgg6PJmYB/d0bX4R8zdSBefE1vggigYIwpJbSKSIuvseTC6zanNoQb5lq1Xsbu4uXkQrEcatTf3XGw8jOzTSbc2y6azF8m6PgZC48GxtJ55jEH2f73+d5YJxCh5+GPg8x8YK9B+XCbtj3f25x1BFjou/g1D7JelTyPgd+A9NmxGFsrSK4kxFsV9ZdlMwHXP3MGG1k5i7ttQsrsixtSKlr3tmZm1WBvdYDBci4PYODMjwRcyEiKvKwaCxj8PNXgqO1HL7pXtWN2Ks81+f671eIL4xw4I9Gk9fJkRHz+IAz133xabpCL4SfSh0GwcYKCXX3RptJ6pp+OLxI3ALexMjZ5kCC58V3oTWkMl4O0b3KTBjll0M4obyGnq34GterNgNBfou/w3Z/rdqYFgegwDM+46BGnHJ03m8X7abS5J/uLaCY3EpfPffjd3BKlNuNJVK+R2TVzGZWfxFisv5aAqyNigsg47oF2GFkZ4h2/v3dhUBOV+Qta+S6O2dg8jQTFRsDEYCS7W3EAABa1mIDyWW9SX4Awy7nbM/2j8U0ee1vgn2x3NraDUxv60agN+bicMUg2NIWUzKyjx6icx9pJOIPvoVvncOJ3JmHmCT6LRJBZNhiipMVGmMUAAlYukQMMX2LwY58ZGXJc7MyCYtAqQTX7bx8mS6YPQVULz/AYMsbYv5VROoLmuypJsorCWSUJiFaVIIki0toyP/xa+JpQsRvVAKSYOBDy/P1HwITC4S0TwpG5q5w/XTZPxPiAzE9A371y9MgFmQjILXAtLl7q+NO0zckLaHi0O4nzQw10b66NAeqXu3etqJMilnTo2ElYNhr69kkA1zGgWqdS/afxzoerrkv85t/hH4yXIuXIJFulKVtdgLolQUWm72W5JnHs2P7TAEUACyFJzu9DIuwCbe8HQhhk4iEIrDYnu8nDwzQDhoBr1bMRUoyGwA08fkPfA4Vq4uoMD+HhdWlscOQ1IOIgcMGOivZ0bmOgzAG4wVAc/tvH3Wfzkg1XtHquhFpICBD5y1F3I3HUiNbYhBs+YIZWq8gsjIQSw/6zaQGAiyeI3Za4lYvUm1j7o0PsJioO0Yy9jhCwO2m4qMFCdvSIOeiz78j0dJVQ/11mE5A+OLlefQC0owmKaUZNQizlvyP9s5sEX8K0WyA3xD8gsmZaNQjFBoJiouSzlxCFwPJJvyBdkOvEiQ2NuIIgds7HsyPScvjPRxIlH8UUevy/0MsU/O7O57d3R/JD2WZl+Nx0vn5/uFpOjXJx8N//GoXav6yjynoViBxSWjaF3Fsd4b5RxydaVkgN8DjEP7SeCZcx1WwwsXRxUxwWJtkV9b+N8kFQQXex5FwdRW+8wMC5/ILLqICGsfhyGb/sOblujF9OM4soHswAAIABJREFUesJubloRaZlsfKtybr1Y/kcskSW964aC0Wy9SLCBZsnkwC5/EBvz2LAAuEGdTIBM5MbSMU/qgeUXZ2yUI/twI41dr7xrXEfgsWMRamjo5RsbUDHpWJVNQxawUfc6N/RmwU288oSJug/493tRkN2Tp+8kJixrDmjwrBCAnpuUdonHNn7wCoN2DVBUnNo6qA8ci5d9JZ9KuG5XbdMKPtu318qFlnPU5qyyDYbCZgPrtA2fbXQqj+0pptlDc9262XrgxL3DZ2wE6nR5VUHCCVR9fcMJ1JXq3zZvXNOlJLZMrlnxKDx6zHwZrKDKk44o6kx0QQNiITuZANMYlHdyarC2fT7l0ALUGfu4FGwNu2cQkjxH4LHPiDB4GDgtscrQkuma3K1FbJLpOzpQMYi6z2GfLOWCy7TW8AcWQp1fmJzzMf5jGcfnJuN6S7t3FIAT8Rlm5LqDYAMBy/ZLHaLqysQS9dMlhaZ+vC6OEqqPlnDtEqqv9pMp+vJZvdV3lCMHbjUHbrIU9+2mBmFdAnWzW+gd1b/ZX2Ezc9+MkQT2pFuWqSsorfvIzQwQGl8D50iixRDX5FtwZvMLAUdMMgGFe1vMWR32gNkxFHrhETy0z65BUnHpVYk1Srn956ff5XJuiNt2zlzjomAaa3QChc5d75418F2VcXyN2BQCi0DOpURmAdIYSG3AxpbWfrQtLRYScFsb6+JO7BhTQlXb8s20pZsTtx47cft54QYH7kza7fauDaAb+kvf23Yx44DW+VM2ECpYBM6L3SMz2CCS2sBxA1vc+Sy3gWmBHRl8pk3U3qSANCCyNIMzJ42VvFGaVhfvaaOXyIzsI9LYze8Viu/FejIKGuvg+xoY2z9Hg+rayM8GIXwCyVMe5kCTloCFJPoN59p27Te5xJQ2KM8TwPy72UL3Gwtk6kBMegPA/vNoWmPfR/LvFDwaaMSvRb1WFXyxTnCDziRSvmhmJGCBWtqtv9QK7VsbYPdArHOqhQS54OKy/2xpn/fvDy7YUMIjZhx4wGUV2IWNwD6n+oO8gPQJA2FBsGjBIK8Ty6p7KUdudrBP0s7BZev1RKTfPgw9dCCJIAwuYiIMVw0DU3Ts02RnbSgRqXwge+jlaV/EOG2fR+CRYV/2GZZJXX2dtMbvFzra7+7f27MQxaXOvJN4T+iOE/wbAstiBg/n0ehzedjeO0d63yY4r68NMFj3lJFQ2mINPxoLUdsty621bZmX9IwLMOOJ1KMaOCwYwsDrNnLghOhR1j23ATjIHGO2toSZamArw7Lk5CCVvYTQtuf4xfdBvaYEu2hN6uEqO+sEbhhRuhgHF5vcs91gOMrb7KVbJnZj8ISGrwEQ/Zgh/ss7cIVuH/v9I3ZobEhSLoSOVR042Fv32w/OkQOAOq4gvbQ21hDY/3m43kLXDxKPgUNVJ6Vt8PVOOJ7FbqtPQOoWao9oo95mL905FQxtGHcxq4kTBtBLF0Ur68aTBT9pa6UTxUJcKN6JBhxoVupRYuxf40Q6A/CJzXabQXoNu1voouACY4ZNyBDsh1wi6RoI9tm/3xo7ya7OVYvDlvyQu0+Ffquh8c/6PayfA0nouFoDH7ewYww9uGT4Tb717hzEvgOhaYC9whys7vc54nkgAtnTJBnjcG3BlJFeAxwJ29NrxNSlncUWF62Ug+R2ibYqFs9fLtMz/qwlPhzIt2s5IAReghF+QhY2rsjWTANQLN5L1lssAMtSH/V1oNdCYAo8pxqd8NFQkKEXpPVNfrCUCQ2I3PvzbCM76bRveO379nESR4t9vOUtdQecPQMx9EJ3DL6vPG43HEuW7nz0Ww4yTCDhxMHQsyDHMeh4SOqN59+xPRgHwiCRocPkNmAsM2sz+aCNuamw0XuDlV02hiH2wlyQYueDGWjmWqSDIK3bJrWDQU/RLUtruDhR+Iyf4NQ1mPKafki1SG0neORT4PLBtveelYrHvLFJYyXffv/YxT67000NL4xb9Pb1Ef/s35+AqFHHJJayV9H/6b5rD+rYn4Neo7W5vUUGRsFaOvcx9uC+dg3xOhFIvCObtJVEZ4/b1nRZG3h4OXTgnrH4NR+HcQuQd9fvhOMgtwTpoDCYbvid0lnY0n64A4XmDXRDgXsh7q3aZeqmxg1D4/Per48r/Ec7G7QeUXaSRaSTLfRaBlDIVfbh3p730/NKfdGvC4hZaGn73psOs+8cjYv2oeG3+CeHc5BHqUrxj/Tq1U2Iju3aIXWszUeah31C2stBG8F3oi3N2hmWFCm0oDa70boxxte2P6vK9uHdz4mBvAL73Moedog9dQ/1R1EOaOwZqPf3E4GT4IAhgEW6iPxeoIuchx4e8dNkCcNF9wa060Unn+04gBrC2FDajz2IWXrm6b5jtq88gpj3NjTEg+/t9rWTcT237b+Dj4O+b+iMdp+NdOyB94GTP1xTHFckRs9D2+DcoQzbYElDLgjrT7sndUGb1jbObX52/sbf9/yFkLNzLwjJ6+6JLWQgjOuXcTsZTIODI+YAVPpezV/zRQ8H2/G+u9gJDbfRTGMKepjKN2rW+QiS809cW57cPsuOhbrnzBb9yRpAtY8jpy1m6Lw6x222HZ7HcV+xPXSmgvTybZG9nGMjoVswISit2wYZ17XlF+q56wA6qETwLzntgbRb7EehsrvrNThIlN7nnx0hn1jILgZXdyEDNaRJ4+/ujDBpZnE8OXPna3eMwqbF+AE+jqv9/JNL2H2yl7K7fQ/MMbvyPXvRZnG2Dcmu7nYsDEK6BmPHxQ6bzDrK4RiP2sisPZW2NgPTsKCSpixHwDnCgB/iZ9c3GJfxe5wJnzAPxsV/2/gjhws72ptHS9dDhv5C8X6vyjR8htcftB4Rz3/4c48vSNrN9k9Lt/1LlnD0Kw56fT+mIQ4ambF7wZ3XpBMaPzCyVNexhYNrMC6jpX1wPGVZuofnL9ZWBxX3cjPhs0k/9Hq+6bOWkRrHhWOho5P41Mk4lHL0/PACTS7gS9pufmFbr63gaa652qCOjuVKQ24bvfx4r0jN6fa74zno5PLAat0SD9YPy1Hb4H0/5cQ91UavLTNsfLCN/WMvH9Ko/qN+zS4G+Gg7fqK05wOWUUr95MsHXKP/sGN9xvKfFkD/a/lfy/8flv+0APL7gL5kORoM8hMd68sP+KkdGwd9xMVHgX/k/T57+YBr9B92rM9YdgB693vsbFmu/9BIc2wdnZTtie9IuyfD+msnPO3ff8mVGefleGrJYiAYl2HNhzSQ3WdmewgvP97wglPSjevD8RwAhI93t0k6WD8sR22D981tbLY81UavLTNsRPnuZTsZB+j5PVcnYyWuLX4yxrMynEWcHLvz2uHSXcDcXo+A6xreeCrxmX72miubtwaKm0yJtJW7Rr4HSrf9S5Z89CuG73B2bAOl2nFOANO9oN+e2g89BO4IosTr88E1GJc0XPOD4ynL1j08f7G2Otwv+HDw6eHy3VMS7miYN77pLLKsTyB680F4ZeGZHvEcjyn0r8vCF5FPqgGqzA6D/bGUytY4MusW6gVzd4H4NzjwuusV9tvMjlGC3WZx1jD5OJ7kpavLvhHj+Mah27aF38V7dszj9w9scdCHeCPvOhw6Dr4Go3T0a5naZ/hajsd41EZm7am0te1pOVPaLlB0hJ4jDNjyshiIvmQEDlPjZffEFvtRu981rrMXYXZiR+mW+p5q7LVC6BvP1Rgg9Z+hz7UGv5d/PdPNYJavSqNjYH7g9oGPd7I1A6I/WdT4zQPszoXMddYuBhw/M2yH52ncFzHXjoWogWyyB4evGxvXpXsoyyjjurb8Qhp6EkDrSbL/2RftvuPcPdQdp3Lz16yadNSlgfpf7TVSzTD3PUsmJhioH+9luqjDRcy73qwtLmHsfWe0q/IOazM1MJJqh7JkbwQ0Bj34jtm+Zqzme5sx6RUDojte/i152Ed/xO046Puc/WV+fASGJndJjufhmjpDJZKAQ9soNxYe2Wc4m2h3pQ2m9t5596QuaNPaxrnNz85f9z14cnMnWe9ycrptHyq3d7jvP7DQToHkRIiOwwGL+Cyl5Qehg4gEED8x0p+olAhQ0p9gGV/jduu0oKFkZhLW5tyYU4sJdr3t2HhZRnbKzLZr249M0F+QBqJu/7lfVxtf/8m271lctf9OPyaOf2a/xT85nIMQ/IbB0smukYHts/mAhfLQ8fCRhmGfpXPF90/aCL4TbWnWzrBom4zUTtFmmY2WETD3hgFbFBtvDSu+X/nAZcZ05QCfMBOYjcoPH3/p1nR3OWlb+0ywHi8PoMqxY5tyoZPtBI9jLxq4maXWmNFVAkhBdubF2Ntn7GMq46Rngzxu0TPRnGVk8v4ePA1jM/axV8n/6b5rz2CpPwc5E/Iagzh77Nibzn1KPUNdu4Z4He3aAyjl6yZtJdLZe8qB07YZJy7ci80DWuLtq/mXMvI6FnowzWjfuhjblAM7N62ZSb7hh+E9fR2slwh0ojac2G0IEuudm9oJ7iWbv2YZF/b6PVtj9f3R3adbL2zbamDsF44ZRbqGu5NxV1mIGGAKoj2Qxr+2ZiILOxl1wD5T+Tb+JvsMfn/CdgxMO+YgxvDJfim+azj/2Ll/f2qKAa+9g8RrbgNbbRuzNhMO2hj+8kLvnRuI0Ha1LZc2/UBnlNp8hwVaFDsfzECrzRGM5Wyaskg4oPwictlaT1GkHRkJkRyVlPrX7LD5CWVTYXBvtBdMuIiZpBsaQDad3AMtdzKCtDnAEPYNNY8Nr5M2vCU/zBrtLGY54iAGztwRHI2Oxki8NUnVSUfQffvuHKSuMynvdyAAs+dme0PK4b+UBsayazmmK7zDHMAUsT29ZgOhSDVTNqXtXfbt8kzxz6O15ckZf9biAPqBtB3HQVhWvc34oBHhXkR7XAg4o5QD+5Y7PVsPIgaaRCCI9faDpfGXO0nn4cRmOrH2fuB92IXMucVFYy+YORZgduIGgsaTnam4p/ZdheDxiYOWWSgwZBgkrYHnKZBG9pkDp+1jv38GSQZTeEDfbPy+A7G9db/94By5ASDSK7x2vqsszr0zx9db6PrlPHSUubYB/R5tE3G43hHHY+wEUO1cXmqPaKPeZkc3Wc2Dbd/+gQnFyA+0vgDo7kDGle8+Sd5uJIPRVqa6xzKzfZFzemAF2OcyGrWgHS5csh+n69xE0PXae6BHIp8f64ROdObAlIDFQOMLKdJvn3PXIGvPmKnnzUNDyU3GdSZE31NnbxwkZZIfwCD/egbJoQdP7hrxbBmlpAyScTQlGrg99nGAE/B3zGrnOjX23p0bbI9rw78hU0PPBFJ0XAwMQQxF2+PaMJC0TXAOiNdFAo62sWBtzl24pb7WtnkGiKjtluWhMZG2dW3zlysuHDCzl3Bv65/mj86D9nu4L99TUDtNoF4mpRKXPpmKXiSRvi0/eLMeaLCyPeBEIGo9lAWh3sMXZhsuJC4M97xoAA7KMS4JPet1MRfvY2jEYDx83jP+7Wz0IMI6asTehR/FQK13GME8d/Rghti5cKMky2g7d7+NY5IudcDyzTor6oi6+Cf3HV3fcfUGQrmW/J0F6DAVhjZRFMjW2o3U6QNcvXRJ1EEFLQcmF9rzg7VxXhQD7wkX41KGFmk1z825WNbhRq06nWX0ItnuCbRbFLQ3FnhtyjhrDabAQrFa0GU23tID4M7M9e7M+ZLKtFcS7eJuwU6IXeiUBbd18otgboyvJ11ct8/ewLpeGa9za+hY3y4gWMzAxY00t946hNZwQ9copAOFjPfnweoOHljT4BUOc0m0BHw++GBz4oNu797B5NCxs5+XKftYpzWyZBb/5X4OifXFOybpz7mzO9ZnUw3WFsp6Y8Zc7zBb1+Mz0aVgaT+4/nqMizFZsph6jX79WptL1m4CsY/UNlsqaU6VhR6PBky8FzlFyVoH9+ZW8vkHkZtF8ndrvSNKHZv33WR4Hu1AtyxJpVT/Lgaikx3QBsAEC9Yuh0nM0gFEA0siGRDM+QqxrUMPmmO7OMJgom3K50Pr+XHxAoMo9fFFuWgG9E7GUY8a+kYQ7E5tgFATPS0eqBvO7opgb2bMnIW9HAyGG5CThffTGw6tQyAmCsQQk0bdxXv+25N0sVN3XggkXUdHLJPt+owdFgExx+zbCuSixTNdpxVSi9UMzQVsAF4JB6LYtOm1XR65YuU71xp7a1vVDQEmT6Lq+lP9TSoPS9s/GsX3XR3uHe9etwtzlEwdgypFrbLP4xUrW59nS6omo9dsTpzHJHDnJkZCzoMepteusXkdNRTuXbFtziTjELzmBrCuR84D0KR9B/X3bfth29B6285U4HjpKPYAO3qDna0bpJ8zBRsa18AzA4g9+vkct83D+ZAWX7auzE2VXdyZh3Oyu7ZPXO+ZgQC3Dd8XU9s24bXFQEcW9qMpqdEg0zb/VBJVsbPK7w4QBv8bQ2DvadD4Q6UfDbo2/fJzdTXUHiwz2YeqRaNlfEGngSRchJFAGr3T1dYjOTMtracB21C8gguaQsZ8IVdkXG3EyeYH6CRDB56h97Q7zMecnR9G2dQYaMJE3ZaBP9W9B6nYLaG9n/efaEePuTxm4NmBaOg0Qjsvh+wDcIZgDGTn/fB76DN2PXxbl2i5qQAoDqUXMI0yQiKjSOz6g7myhTx6W8aUW7hQ2tbFOnRtp7m20QIWvbWjlu3gHD4Qfd035lEMXI6KA34nEr+1hJBcsbLdldiqM6HAWcBKEydO0R1jnw+aGgmZepHoxkCdVwK9kgWL3ktRr27gScwmeuNcByDZrR0TSd3GdHWynjLxRd6xUG7g7phg0juHEbS5fX6QhDvLenALr78X+n15B5Qn4BlZJQ+/gZin+54m7xIBIVmjT5KpQxrYBJ93Ny6Wmww31pLS4XmnhuuLmBfgIoC1dmLqBcA6MhCiOcHaJo8cOG3L2qa1bWsbZ9dZDixsxcy3PJeO2nKPmKLqbX3nfRJZPzUJlxoTPVi8dKMUORoJ+WkjoViP1EsI9S54He1EudYWd10aCMA20e8mjYtVX6NX4wva0oHOTmAhbzjWYELw+w4lm3c2pvodCTfdLZ+I/rrSQt4zkSAeio2N8sgn8ymp2tsc+0gTcpzTCvbrpuYJAyhaJ0G/Fw011PeSxTPVze+Z3q9J14EYu+TWuflnpN6Ru3WA+jq19yCxg8WlMAIkDuvYXAhNlSR776qBYMqBDYRwkewGwn1jIY35zyr9vhd5HQ2QnzesPFgy1gE0deJuJGedfH7bGwn5VGOgqZGQHCS1pEeKU9J+GMUelEx1DR3YWRPr6UK5+a3HMp2M4wvVpGBr5C33kexeqeh1k9R7biabuCJ5gN/cJmWr2MmXjJRKlXQTabXXdpVas015i+mbHOW0ceZpp3gfgy3upS8c/Ofo2zjjTGVba+Cpa5g9OyWYANIYzdkn5wZEMg9SyMN3VGnd4iCWaiTf3HCoLJVy7js4VgLR6h2zGVI78Cz2W7byA+vvi3MDoQDpPDcQFAPvLnMHrlzSuzd2umlk6nOMBNTEJQvGimxby5dXGWZ6VJGb8j6hCmmWLaEKX58pO5iEg5VpMi1Rdjphe8iB3GRatru6tpKuXkqlkYXQMIIMvXPfeyc/lr5nT7tGOsYYmRwmCpQ5LuA/Z9Dhz3ttzrUE6vmvyEA+VpwnPy7+DbwfY3yAJrdj8Pdw/nAtROzcM/O0vJBfi2i/wzrGBjRSICzpPW8Y+ja0S6By2zOwbNZGYSBo293VwF0xEHwxrCh2aiXCY9uYXQaZFJWipIcrEvTAOA5SyYY4CGXj6AVirYdyp61z3eyEehC8mEamkx4qGBMBLWXq6WJoF3PnEGGb2BoC4p1gMRA5cqURhKrbUwCwhJgpNxB7wwwEvtYLJwTa3OD8u8fYwRoeNdQk3ND4tzXwJWcJdBrjcbTOJHfHTr8Bv9NkK9eTMnsk/u5s1wRgYQBy/Bdbh9ZdO3w+DJ1h+Vuso5C+w4y0b25TsUl+SRT/lDZJ8Q86elQgeAnPlSLSzoEzzBQJByMhXyTASNDnirxsLlwpa1hKkBXKl5xEblaTcwdx0Jq9wWiP4a5b3Cz4C71rgp5FzOpO0jd+lmx6MpNJNDwHAKJJseHGu+Uvt9xLingdLC6yihebrraBiXtii43K91ms5d+PgKfKmvqd7X6pVXa1e4+6RsuQYfYvpJu7cbnbzg7Rl3J0yPAb+lt80mIe/x0z8MTQWLrLC+HcZwImgT9WQ8Y7pMDsIw7kxB0dwETyLAlLOmI5yDIzIep7lhqB9ExgqaVJu0hx1Dkcxz9iFQiIf8JN/Z7T1tjnfDED4VKN6GIgPNZbCK3yTbOn3Uj4oYIjP0goRsJawFPnHaY4aNM6OYqDFGDbubJTPku+BLMWL+aSZJEFNGtxzxJLHBLZzi4XJJWGqaApz6WeHAcNYiMHUb2QAEkc4iFvUHbhcDtANIRgvbzYPYiSDAYAGjzMCe0xRxBZ2782KiXTXRGax5B9/mj4ClMvgd6XBrf2SEwoDpxJzBM5vrPfklNjcQYAAFHDh4HdGDiRQDK6gtLvO1J8wwzur0PpuEt8BfkmxlBJKPEa7filObolRYJ9r6XDrxXap+LS1XxP7uOfdYx/NGWkjvNDNRA07jnf19udsIGg2Imv37TL7UaCLe+Ixk7b9ThoM2QjH4ShtClRYWnaUy4uJMu4wD1jLsDsJBtfuEhyh+3ROOhwCX0cxJ/z93n/zD6DW+U27tCLu/Tj3pefDzFI15tP5OP4N2mM+33x5yfHkY8laC8/czMOcI4iAYfP3RiLjuc8NibiOLCT29i/72dpbcJNCJJs3D64LflUAoutt9dna5vaRjdrs4fxj7XzYiDQe4oNnsRKsRN/a8GQI2hSkdAFVKkCaTnIB5UDW2rSyuMf+iGwp/HDwzUQ6UdDbwiwmcCAGANXNgZge/M2mYAWxoYx7o+fZ2et0msziCJvM3GiOiAxAHIHmucYAPyZEUweZ+yMEDpGB0/dU//bJr89576jCQSMPHwuDIZN10nJ/rqxecDGg1VfH4InMHiGORBgbiVri4u1zVn+B/HPiaYicOIYKxDIQPgt29gPj5JvX5WComkcdK5VCUqRVc/ft/o55IOKrAt7O5tlHADBMi5sHgelJUjYTLIhaReqSImksfUOaBGSIrb7f8bBUfI4xFMz9WIFj06S3ys1BYt/IOe8yXLVQLCIIghOd7tLd61SkAC7HDEQTHPIrfY62/G1yKwLddrSUX9fdJo9UuoLS5tLRiUxAJqVNXXxzKSz6NmrGSD+XMxoCARCMkg4DuocxEj7idTBuDMIICEW3arcz7lI5z7mARNZ7ofk296+TjXumeV/ykuL9TUGOop/FCt31vYrgJ6Igy51CHfJB62fWK4B+SCLhVBkSsnVciClsDT4WKAs+PH44cHARInWZSnMo3FKRHIVQEmpNN6MRsoxD8A1mgcAGN2VO8FQCME/08BjzSx7jbGbF2kEUUYcZLnj2L6jAAqJzQFImY6vNf8+5BpvO9KMg85a8OcjkHjoeuLzDrfNmWMAj+XnHISBgDSyTcfuBDCYC50MzcRY6MwGaRktcZv4eKMkbROZkvBsIIDliumkjCMk32oBaeak6WogWs7WSVv8o+Vilx9q/ueiRsL99fhH3oisrz6VrPcQurfb2X33ncjNSfLNXWWj822th7O6uJzvLbF6YzVFFmwpGy2IhUzG6X9KmWAg/YHlOZw4A9FYmUCD6KzGtIKE5EoYWWh02xg4HaBqZQHAEYgXxL6HW3DIxESaUO1AJMMt78F2FeTiQK3Hkuk7GUQNM/Yvm249ZoZKhN4wEAI6T9DRynu4+qACon8Ut9odMGFgJANeD4pA62P/HphmEg/u2KczJVgSwjzgzldajMbVLso6AQwkVb6JybcCroul19W+vjHja2v1bydbp2VB2vZvjIFE4593hYHKovFP0Cod+bXIb2+rprt9W0u0s5X0nO9KMmpqZyullntIngqP5ZmM09fxXBkm2cGjZylJVQPRGjFxS7k5bNgybmDWuTl6gsMRC7GMQ7lJHgCHxkuSrQMQqmVya6oJY3u82UUSUMG9NH4M3U2C4QzW2/Vnl3bgCrpDG7PQ4cLsE/Yze6Lkv6vXw8C4bKAZmYeD/9SehwYQSOldfBRGZsoEFHbYiHUAqiP2Ked9qKzXxyU0MOoNty9cKmYgK7H3akrH1FG4TOTbasMh7q1C5MC+VgzcWF2dyjfN/wSNfx5FXv16uK/ct7Vip1DVdxe1xEVuLk3GlYDzUcJzZZxY0HaCHDhJihcJYBwF0aqatrICl5w4WHDz2iMW0v9CD5yOjWwgXL+usldjDmOiVMt6MIbHeWIAUaBmvgNgRnxkx9zFYdnLhILnmhg0ANLRoJZELCR+bN0cEbmf66CraHBzpBkCYxzkzwk8Lcap0iqhVs6Bkg0Qo1Sb5IVyA7SD5Rr7OIOR9Y281BokbYHin1xKzJKqG5VxZ0voc8zzlHzTzyh4Xb6ttcj6M5Nv31Y158v6yaeSFTWvvi9grDKO6uIUYocyTvM6r23dVpmnyLja11XghAoilXCrOXMaF6lNqdddYx2ukwtcZHqFhXIDSHTQjQ02WSNucmsm4xqQSFztAhKAiEL4YHKLbuobLJkZSao1IDXwhQ68uHMe7np9xEHuoNgWqQNTi4PGMUeQdrElSk2GtaqI1pDzDjxiU8AcxDQ7+ZYb6LIQ4Ab5xmBhoMzYByDhvI8sTXoqaIriqfnGCpLNhjBYTLcEYyKVeavJt3d2JQ7km0zq314/Vvn2iZa4fS2VilzGnUQeflOlmWq/x7VUorqMe49kKmTcvV3CtZ46ZSNUKGxmJpxC06HRAIWgNolNCpGrA5cHEIwshL/EwAELJfosVQKg4ScDlN/JNrX3AJLiBsxA1EqBOFEaaFMBs7ic62OeYCBsZgKOMBOEn7dk+oyDhgZl2lqZAAAgAElEQVTvCQOHikGbhGvDNxKdx0SGQR7Bk6qk3YhhKjCirU91Rl6v4Mb7qQcPVXj3+bwBpAwqsKLlilKkQlQ3D1CVYMxzthGmS+2w1Rwr50c7+mJlhxp+KPvoVdWk66u9fMuP58oqdz+THE5Nvn396eTWwN/+rmo9BVKRcebGvX2QcNIBSJBxa63IZhkn9nozmoSZkOyHrRi/oTVuW5Vyi8U/RT49wUJerRDssoQBLBMHjuVVd8/uwcpmWbYDUbDoh7IxJpmiMUKwgsl6i+PaIYws1MAjjQED3D+Th2m8yTEruME8wJRagVmoDaQTinfa8AWqxUsonj3IfbH7lnLPLjIyTugl3SyXdAQoXafKJJMp8BT7aLy0iKQNeaBVEpTMxQZiLmQeyMXqN+vsPJWBosm3czXC1OBS9lLX7Y25bz/cVfmm2ys27t7012SVr0nUkZ0NGadu3A/GQJ2MSyVfU0suDDw3m/V0Bh4xBnIzYW1SzlioDCPIT7AQni/GMkU6hf02YQ8cNFT07rUh1+4xoHiuGtB1C+CoA1Ee5JwBJLXym2ixlYQG6GxeXHnN4OnMA5KQlE+aLgHQbzDamwkoSB3Yx+vgWlxS5BPybyTv3G0bweNsVMFTrrwyT6qyq7yfmWn0de5BxPFN5/YZqCKz1xPsA5NIY+mFpJuGCDAPbPSpx0H632OtSEBnoqNSO/lWkqcXkU/gvpF8g31dlq9F1jefSn57V2Og929E7m5ElH20jkfbyphUfbdJWA1E+tO62jhiIYAo4j2LizTwK1LqGSxUpIG483aVZVLtzUNIJPnIXA4W+1ijr2+15rcDkeC+NwYkAM+ZhlhI6kcxq050p41k5AF4ioS0fbfb+MNMGBeKfXyiSHBP7EE0jpSlwXUlx+JJamKfMOR1HDgk2xg8eA1gJWMtlmj82bL/aFLwCXZabB+5tpdnsY+2rYvx7MJtcm2FowqIVfraNyqUltez5OlZss5/oPLt/iT51YPk959KfnOq4NstRcbd2ORxaxn7HVjG6XRXOvdBGSWock6f3zQzQQ8u4weAjW4kxbOEayy01h4xgIVClTTqqKSpNBvyOyzlAsYA2/rCOBT7SK3bDxHsMoAIMZGEzoKFTBOXaY0VooEWzlrk5K0PNo0dsGreJxKQry3NPpfMrAM2ahXXknMHmmy2sQ9a62IfDIprbpjHKhPZxoDYEuKm7EM/tpSIwWxdhmxLbf2MiTpZ1yqxnX2K8/YE+6QbSckAY2N/qmQ7N/MgPEq+PFbZppL3/GjTV5F8u/kDyXeruW8T+SZeifC1yCdfTdy4mlQFGjsZ934z9rEhDjbsu4+LzC7Mz2AhPaG6Dnkhl3GbyZ/Yu2yFRdJe7kGa2XzLxeULYKNkWxlQgrWCayBygTXEP2Ah6+mjjZINNqwiGDvBBQzm2DHI93mg9m1PwwhR2cSJw4hajAwFcBDzkMHgOaAgkzhoTJjOwbN171UgbQaAAq5UZdfmzENME0YwwaVDjd7SttuQDqlt5Un2KYYB8kDGOqEWS5d0C3I/xTy42cu3x+9FvjtT8pTct/ca+qiJ8NkX9eR/LRLYjbt/Wz/ItXHqjSvDnDGHFsyErQ53QGUCDIU8GArMQnoCY5YAFoq5JTdTatLOE5HZhl6HCqojKQdpFkK/rnbBFPeENvZmCqJxXuj+L+ZmJ0ewkZUGdUBKBqIkDiaxYd1sae+AM6JoQk6ZAOxJVMFw89yPuQJwnIFgKtCAvDA0Yi+abSw1B09ocs1lHMVDIfRSbyfdwEqLAy67xDMJJ9kT57UygdgHz0f20dhHweTsk2u71MqD1SoW2DzQyURLofKs9u1N775p6KPYWf+VYiJfyEx4fCX55n3J2E5zQueleOhemVDkHLGQ3EpazjYPQS3o054ksCO3bRLiUhkI8VCxhC9FijnzJLFc+QgcA5XLthZ3SCOeIe4hZmEQCU9MTyyEEp/QT/IYrYHGANNgAJKuC3DejIUMfF6R4PkfxEKzea1ax2DK1A2MdpcEvgOFxUU+7dcAHB4R6klNGAl5ANMQC+3AQ+ZCFw9hjpzQg6/IuWUi3VKtvndjQY+v5Qxb3BMr6yyD86Ztp2OfWwMTsc/lPFQexOPcj7b926H2jZd/LRLuV7V858295Lefiry6rfMpwEyY5oQukt8Z+0ws7SLnmIVKL7LW06iy7pQkbTVfr71NWKvTEwSTe4B5Qu3BFwNRSNaTE6iCuXKyNKCYGWEt2Jw7n4/JWIi7+pbzyZjoA/FEFmqQLdJABUA2YOQQKKlroIGtjXAqxwFE5s65QrRjO1wwmV1ATref3B0TdbiNjaEcoQTv7sb58G8MqOun9mqWdCaJlT3434Jf6QaewkrZh78X9w1mgoINFQwFWItsYRIL5SrLitFQQJi6YeDJ2xKqEGxIhrLPKUs6x2YWLLmCidlnQw6TrOsy804dOFfI4Cj3U8yDTyW/v5GsWCkn/1cWA739QvKbb6xX/rW4Z8c5oXsyEx5vbYDdWk5ffq+gYUtbr90QCxXJZpfFpoSt4LHHMvpwK0AoIFpTY6JyZCTbQk0KOQNlK0XHui5RGstQcrH7D3kj7EDUYgnO+2RnHbhvaOdWbQA72+5vFC1HFawgFIlel6BsdWczDwpoQC6cBR2cOLp/DnBfZ+SheymBhcgoaNZ1bhIuSZtXItTzjxGfXFmQbbhBZR5Oss7iIdsOzzXmyVKTq5xo9URqtNe0zpkKDGWv162W7JSK/K2kQwqYEPdEk3lgn6SqZtnHPpetqQclmldmXYcKngIcNQ8ezTzY5X5+XeMeYEaZpsRA3/1KQknBPsNMmLGQMs7ag2bPQibntnNpPOUCn0KVc6ZzQwwNTCk1JhqlHDL9HlfAHAjNQIDrBifuCEQu2WpjxgwwTVc1CeRZHQ/Oq6zMcN9Cq0SIFpM0mUnum8vM3BevAjHm2h3KN1aYsA8yYa+br7rdorHWuDVmdfaxX9nG81DuRaI1aGMWVBqwRT0DjwMnNldO129N3Nf4RshYOJBuNpbHGSnVspzyqG3oDNmmcbOGDJfBeZuwj8ZHh+zzDPNA2afEQLg+T5kJY2XCi1mIYiCNicyDV7pVnaq2eNouDprqoIGhwELmym3RTALEPfaetvfNDIT6ogKrMFTaM5FLNgrGU2u5bdJ5apQ8YSMmdsRgPwMLfIpmYYfGQEJybjQQDB2wu/sleRzG4VEGg7psk9bLZpp/j+Yn4Gm5eueNB8mRA5cgsWAQBHLZVNKFxkIAT2ZXbqnrtjq8YSOgeDy0MfPY+2uwmCfY2CKAZpFUBsvVNqOxT2Wekzl1iST3C9mHKw+umQdv39eTvQI8/yoSrpkJPE7oKgttxW3TMgpxR46rE/T5bSXuZEaq29r1RIk6dSg2tduNNRlnYArJ7G1k79sItBBbFOt5nhmI0OKLJLP3vOeOff6HXTgv2M6tPJRHzcJmz1VOeh5oAFP7Xf1whnk1Nux1BhGNQM3NXm+giW3ut9yknFciADTe63uRBsmp3BeDhsoEhVnCIOFG8JTYx6oMFDhbA+LGQx5CsrgnDCDaaF6FWslSYqyUBttatwHzhL7qAM5b6QAfDVhX2Gcc93NkHoBw1u/eSv7sjYSdmUCVCc9lIXbkyjcNNXIAk1+aG0mnVM4sAIMhBYl8svKYzhJ0VKKZAhUo0e8AjdxOkXBbtewKC7FFPYJIPwjJBhNhAMrOwk5gngaqMAIJ7BKagdA9ujq0T4XGQFyTt1+a4QEp5xZ2MvYZkqcNPOTIMXDwOuU2VmeXkxmeQ3JB0uVr4LE4aIvGPrnJwiQk91Ir80nnyi6dQ0fSrTzXOQxWSecbctoSGT6Qb3bdykC7wXl7Dvt0lQdkHsgXIoqdTsJ9pwD6Rnr5/QIW4rxQYaMbyQ+blf3YfF7ICZ0Q8OFC6pUzKZfBTtkSqhYLlSB7c5PAYx/EPTATQmqybQYiqUG05OwNrwCJ6sVM37mT5+9x/CNe3dMDKbRYpwdPJBbqwiwC0DOGAwFibiRU80IyWdcMHj7uEThdRXY2qZS7CVxaHZs04yA1MG3mtm2QfiN4MtiqTvxf1nk8lCjeSkXutYlhLJmabDqyU2zSzRxcNw7KkAUrGvXrtUq+taoDobzP78M+ah58RhMs1jvU/QgsJDUGKdXbiH+WVxUc5RLE0n0Fm8LIKxQE1cnR20swtyDoPHPRZJuy1mJAQtwjZB5IaozDIBIbsQkgWW/hN/GiId2NhXKbm8HZKJN0G4GEioPQuW8OJCRTYSgASKjQvkZAnAfC8ftMrrln0dyDhpnUgYOxQDydVqSaOB5O4I4cOXaChGmiCoQJeNhMkGAxD54roAw4F5snIaRhZGs1CZJLt8VAYQn3m2CmxZ2k7b11JGLzcJysbOwjs4/IZDhDZ2m/gIXOVd/kkz1eEA9hTMZSTlR0Kbdaws4as0u54JNNCBKsDiTEQ6nMvV2ZIzsevfJUb/k3A1Fe7L4zFusgUZpxZ/DsVlhnHEgzBbo4KA1AsjkcWjHpACZPqIoDpQEH8Q8/HwFENw2OeyBlyy1NQcMz4vjzPDhxvWTLbi8nklNcgY2Zc3IFVUqU45mBx8wExEPRYqG4kMW9DbLNEqZekZBMukUDWawWtzOP/r0qyfm+4nqzmjd7PF0+jH3kfb9u/fK/SP7tv0v4538R+dM/aZb2UyyEvNB5rbY3qhPOZh6si98cuIBHT/HDxFCYSTkYDIWRNrvZ0ebVyj4AzVnInLnFtEVY9iCymVr2CVNMKdz0EbOMP4YWnWTBbDwDkEIdvIf3OglHlRM1X9XKijonDh+a5oHYq7aiUdxgim5fKSNoOvDwXNUo72ngaCBqtXKzOrUau2RKsFYbOzlAoldmT8EDs8DZZ6hIkNpmEidMPXYapdtgHNzm0v7Kfat9uHb06aq86uB8kXwz5H2eYh8NdRQrn38hothZ5Z+qr/35Fy4/nstC8nhXRp+K1si9bRMslkrt9yjrIUNhARtFGxtm1JFR3Bl9jHGwHIJ4PGTyLsJqNosabFRuNHsAIuQBdFkMLDZNDqSOg2k0EphxmI0YSDRPdwAT2RwNXSwkXV6W8kHiOjAguBk5yBNArXQH6/0pxTwu5TKBnt242E8E0mRdqzDII3C8UkFaVQKzFOIaZxdipRE8zjqhuW3lfZgEuNFAbOzDr619NOmmTGTGwcbGgdTynVexVlwrkBQ4b6zmTUep3gx5n6fYx7Aiip31H0XkFx/AQnqTLa2Ru6mlQ6VS+7SKvNvqzI9sa+vjPYGnk3LkynkGPZTsc6UNjoeg1YyNtIXaPAxzEFlDCtlHeWpFuLfJ2ErcPABH+UsHnjbvGwLyLu5ppOGD+AqIdNqtHPq4x6UbsYyDC+vI2fDfzUzEx2zrbLRqHuMhTJOMvBAPb+jioSEOgonA9XBWElTjHTIWkCfq8jzVkOhZaQDPVmej3Tr7OvUmQqhtocRGkHDugLLrJlZnaSC6y804cNv6RvLr/6+5a1ty3DiypwCS3T0zHq2klddW2Bu7EY59sB/9Aeuf8PfY+h7vT/gD9Gg9WPviS1gOj62xrJnpbhKXjczKU5VVLKDJvowXEQwSINhNgDg4J09mZVkPd624NummNW/3YJ8vvwU2H38PM/4X4VQWuvwwlvYUA+6GGPvs2UN7B1zHCu1kKGwaUk6ZaJOBIVpo0+ULhlUKEvvMFvOMZiSkYrBRK7rbIApZwpkWTnVus0k6+NwP5yVCmQdyFQecn6gjkCayU0g+RbBeC5rX6nK9WyzfCakWL8VAaMRAHKXHZaqYx3rnpRiIEzXDdSLtZjdh8OR6JoQk3WLtGYFStTxuxUHF0O54kce4x+WKkiM3OWZpgEdfmXkQgm1jXDWW1vXWmGawuAeW+wmDJU8r6SZMQ+NAXl9Zac9hjjGPvH6zOR4wdw77CHbURPAspI6cuAxLLAQEDrjby5DvONThyFDYtAwFZCmnBaIbdKlCgdNWuNc2HoQXTI6a48hTvdoTaBoggpNsnBGOwbU2H+gdeHzxaM0+c8q7JjA1pjbJXU7n0kjwTRw7c+asT1yMh+b0/ZKpUC+ejAJ7v/FmYP81Tcni3DgyDo8lMVFrihMHGvZtY01cIeG8sdCnRGiuzg7Hkq4FHl33jtuUwZT+DuvgLJ7upnQTiMcUx5wpiGrpRuNAm38uGAdyDV9s8oC5m+fL7EPnjezzMV04z0JcWnkhrUb91v6Rt7VfI0hMRENBpNxMS/tNlnKDAUjvEttUMBInZ2Jc4uOhyWXgxxjXyBEMg8ZXWAMRLMdDyZamESQr5UC8fHgXK9vSuaoZlXkAq+HjiNQpu3GMZijXPDslK9vJNstNrdVjx+kwp5KFZjKTY5kuO3Y5BprybH/F/DyVmeCHOBQtr2YX6DtplwL/kOOiCdmqVlln8mwJPINss0qDVIFAuVjFPXw9cYBdLNeZWK6TxvoISF5E40CMBJFxNA7eHOI1XhgH+1hx7WdsqPM+nn3gbewjFmrlhf6KoI5bbShIMBYn3IqGgg39Fga63mUpZ/JsHsyp63P1QZfioRvM3aUD1JBaZiUQdZs423cNIvn8aADpLUbiAISJ99bOwFRm5pvmgZ9MmDGOB5IHTstI6Kay+UmKhXKPBMw+PppWsqi2zIztQorfZgukyJAeNGnmgtRrzTGPB5IHTkdJNzc69lRmAlBWFsyUbZ0zCSzXA8Y8lG0leMYj8AwVYG5Sr6PUM0PjHmsjsLEuO4V0i65b6rSTjAPp9faPhnHwV2At7+PZRwH0/deYv/oQgSz00Y8iiEAWeg08v0KQKtPrTzDfZSjsLwGhyu1tnBmZUu7aCkxFum0sZy3XfBEP2QU00WTg9nDMRC0QgUNFrUXSZECCXeVz35Bpc1X3VuZQggdTcIWiJn0K4HCSL5ulIcs3k2us35utOtxVXYfEOyxiahSTIgMFDijRRJgSI82s7XPDMhILsWWUd+KOgFMZCImFfNsqF+MUoDJJx/fMph673oHjFPCY4zZ606DazrgnuKHesl2Y6KqSbrjQLqNZuq0YB7CK67fXsXCUP4GAx7OPYKdIpCoL2evEQjQU4uTDWV5UhoIAiRUKXsrRlbuSEp0RHeOhjSVWLww4e2MhG8adTIWRI0/6LPUWQTQnly5eg9HFm73D1tMgOLapMxv1aZrIbsqACh5Ibmr7YCX2HdgMxZkHnWuQUjhwDlSA9YxzyKhEw5GtbeyZC2F9PVyehDn3WXPNUWbKZh67zf7mgePnPNLj6/VCPbK1E3hMkI9z6dSx7CbleaYc4yyBR6XZaEzjAGWA1N9q54FkJT6Me6TkR2eYM9etkG6sOFgxDrRTlTMOyD7EyMfud9gQSassdIKhwAoFYSD5orUrtxQPwYyGXaRj3G6MnWydgQZivVvXAhHbvPbxUp8n8oZdIimems1cMKgE65haxz1zvAADA3AbdNYVQJrdWCBWkpuZwERpEfNMuYEIY6B5rhoruhhokYCsG8/sKhNci6vZlSol542gcdXa2kQ+xUNzAzhdaSC4vtqZdQwcHClaxEKhYqiQY6GRJkMj5pn4t/g3ugwcrW0bSiCtxj2V66Z5S1dxcIpxsMY+CqDPAfz0DhaqDQX2064NhSTl6Mp9Y5UKnIvLKhXkmhcZJyx0Y8/KNFvMF5ZkFUaitNMr1fJCLRDRnRtn5GyNMcnGT3tPsBAoAV1XS7ouzTkTnKwLHki1A5fimy7PFhF8g8jYCaiohfMjUQsjoYUebppyd1KChveG4HM/nSvjCYULl7r11PFQcuIccLx0s+aXRVfRwEJPP8TbMY4Uhg60pJGBUwCkBZ4xg2e0XM+uSpYGY51Lso/8r63VujHuGWIjnMMHK9LNjAMdLGfn2hsHa+zzuTcRlljIGwovP4109+oyDrqjoaBSzibSFyDdWBOSgyVXUzy0wbQd0R22ZX4omQqWZNXiQLtg9rZ+EoiQWUfZawQGg0C3dcBxkk6KFUJZaMlcULCk5OQG0eWEKR24Occ97LZD8NBE6Kw7D0uRkoVdGQmpschUC7YMmnJYEFIL39liIL5O8s2YJngWYjzk80R5mv8EHE69aE5aYWeDQyBwnFwVEMmQhMKSdsA5BzxFpcHkkqXRlCryPdso9ScBT4p7pGD0DbDvMV9SutkUJd440MFyNzZYrmEctNhHGejT/8L8+W8RPAt9/T3MHzWk3Fd/QnjeknKvEb7ZRTwVZT43UcYxHjrc5oLTQ5/BImwkjtytPbNSQUCya4EoGgWhMBbmnGztfBEoWWe063O2yWa9bOP4ni7nEpDMrhJI1gS90/Uxxj2pkHRKvRBCGnZhjpsMrAs5wRpjn2iYBPvORTK1tfBXo5U927GGbBiAgPHFpHrOOtcbwbtydtEFtvpl+yiCA+Vzb7HOPLnWUwaaechSrvNOG0HFqghnJqT4ZnSAq8AzeZNg1CEK0XlzoBLwpELRCxf3ZOkGum46RcnrtnT7akG6ff29MioV9hHsbPyGnxoL4S5D4XV05bR/QsuVc44cre197HqfTAWfZO3jiekuHIiAzDRHINIxDGb7bnKAIIxjMUKXErC8M5uEG2Z7f853abvYus4nHV2epwCSSTsxCaYusVOSa+xdl8wDOm+ceGvOIFKQ9cY4Ux4MtFaNnegn2n4KjtC5SmyX/wmTMxM4NaKTrMbEE+eyhXPiPHDqBOvkpF2AY48+Fn9iTEWnKZ7R3E+otpVW9bwIHmdX1+DxVdbJNDDgJMuaCdOrY9dNwhH2OTjFOBD2+dz9Jv3P/vOX3Xd+Cnz7N4RP5e+IU3GF8OwFcPV7hKt/B67fIvzlLwjf/Tfg9hXC4bvA8wn4+wZhK8WjH0bZdinguQEuJAa6AHa3wC4Ahx2w20cZ10vVtiRdB0CGfYvM0YKpMVq6217n6A8crjDbyFJZHeZo/wZYeyo6bmZ/y7QW9IUHy84nTWY5lM5q46idhI1Y6TmxXNRkUXCxRrKPc89ppAszKMNFFgiplVcK4PUiZfupOL17klHJEQtJOh3lXFzSMlvqrBUzNy1ND2KmQOr/FnIFtf0PZYUQu+bk2eKst0FKppr75mzt+HfMmQtMao6u4aGBabYeBrMN0BtdIWiwuU4VZHNhVZ8MHol55FwqeMxxk5EAwaYR1TE+l1Xc0zUSpu+Aby5ifkjB4+rd5Fom+4RKun1l7INfuxioJeWUhapq7aYr5xKsrXgosZGr2t5WztwQG0WozFpiIpbx0J2DNQ+Rs9ZHOdJpPCWAc32sfXMQmb9ULuCB0s7W9X2+nnO+MhkIcURpHqqQJR17H0wzzYPOjAPvxhkEvSM32xD0tL2uwGaxadU1m2zTsU+cy/uwucicp3VM8V7qleDtbcqqbPdTvhXxEKeXJ0BA5jGpJgWfqY8bYyS7Ych4nnFORcIyAwfLcxgPpRwPmz+ugUdAuBlLx42mgVRZu95uq3HPkuvm691axoGCx5YYF/y6/OGINAmavqQOdLRmXUniH3kVv4jQ4Y19QdWYz7Qptx6A1swNcb59m7xID1iDvhcx6NvQSRm19WpB1al0PbsyE7czsQYbzahSQe5vY9TafC2Pqcc497FkXranR6xR1T5mc6wu1m3y3jzn7bo+xtchFkwO+nqK+3Wxy0x85nocBj1w3z5IxSAG+Tuyjdv9PnyA+/ptnU7WMaTXnf2tgKEPbrvtU3wX9930O9u+6dhHO0auu/Mzue8Q3PnhQ86pnFs5xzzfsj2M5W8yhPI387/jOGW37UTwTB482tfaipsJnlvL98g1iSru0YQpyoRpUXGAtnHgMdP9+Mf2xq+NhRogEiTWIALjIfsiLxyIhCbFY4eZCohDHvTAeKDbM0E0Uq6YbpaHlXYUwagk5vxrtTtjZ9TUvKKLF/3EC1wSevMKkPTCtAurdxc5QVRf5HqBznF7CDIEJW7T/fyFO+bXvIBhn+urh4JpjmDxnwmj+/xk/4PHYp+T7+JvBAmcHjz+2OZ4zEvAkff1nNk6zyXPr5zrwUCiv4f9Pv51UZ5jv+eR23YieLZ2TTH2eYPy2rN8z0zwvLBrNiVMuf8drtvnTrrJItg5GtJ9iiv3BwA/NCn39tNYpaD95BYKTm8rGZecObO31ZUTEL3RvOiinNPKhQHTrRkKKuWGaCYMNnt2qimzLIhcEX2MUbrZjAP55NRlyWZyRvbV586ZCMkcsDK0bs6vzcbm1CmTSbJoEtjMEYzhLNmaauFSDGeTfVG+deZj1YUIqRqbzRXnVNMXQ8CQLPhYJOuqtNnyt2MVNqdHrGZ+m5nXcfKNJkJ639rqmrGSFIF0DGXTQ4ln+lhpEPe1fqM2LEL6WKtxYTfEmewjv+24OR88h4sjx+3YNHCFoq98tQHjHpFuJ7huNV46IsnTEhdPW1+67R84KafFdojxkNLiX+P6jX1xOYALyriDHaAx0eFcJjpk+g9ZMyfKD269t7tguuuFvG3auLH4Jj1Gtz7NWfb4OzTvyHL3TvJuKu/s9aNz7OSZIrGasRX/PmXb0oOsmVjF2MIzW/q+NTPWjynLNPnbZNwW40xzPmeUa/4cknV6d747t83FO2VVdf17Hp4GPHpRrsU9b9vX+pJ0I2Z6/PyX3U8AfPIJ8OoVAv4D+M7HwG8brtwff4/wA3PlZNKhix2CMMybbzX3E6Sz/bvnwNU7YNggvBRnyjtzt8ZEF9mVkw3bgwwlArZyS7sEphvth6B5nc6CbWnN30cPNWw758hxLLYNHuD6YM/BXDo1DqbIRsHcODp1tLRZT9bZNMKcyU0nRmYi09y0EJOTmOZ0x041Z8GC657jc6wt0zyVrxmAz7NNItankpnFR4i282QVBymHYlMjzjYOJ+dtzBELo5uoChqTxHl74gWdHTlrt9ubi2ZN4Wc2iu/ZhNEcvnGy724GwmgD4DieS5hv6swe5/cKeV0ru8x5o0yX6W+CSccRPOwAABJySURBVHe6bfcFj7TlFWe6zvcsxj1r0k2W32Xw/IoM9KsGwnw8xOWueEhfOFPha5gz55no6jwmoh7e8G7UGhPiYqMwuOexzUbyPHb5bil3YG0KZFqed2GtIrYYicG03HlDxSiME+wurXGPZ6d+zkzgA33GM10dA3ULj3nhM86gSP9nzmynLGeMNs05vitiKTs2mgN6zHYOyI6dnaMJibX0HI5deW4L1hmr32TIBkH67RwLqeyr8jwng+eqBI9ce1878CTT4IS4h0sBHqfQiJnuJz/PH2hJuc8rGvu6AtEfnJTzpkLtzCUQHU4HUTDgEESse1K97JwaPflDlgSHStId7IeUH693gJBtsj4vAGm2JhedA0jtsEngHToMfO6c+UBAUWrRRAh2ofcuiPeOnIKk9aj2Cy7wD/a36/83OReti00QB/+da6eOAGODj3kBOHLO5NzRYRvsXMJuXIdKsh28ZBtKp+3CDUO4pPs25TzPyeA5lOCpHbdW3IOFuKdOmNbSTRbBTv+z8Mvw6hOEL2SDl3K/A1oJVvngH98gfPxRlHKXTsr5JOvhNcLwYZRzN1fSQxhh8xK4vIlSi4nWNTnHZOvEbP0QX3e2PtqQhe5QSrrRSmP6WMKjYqa3JKs2Z+zjcDYG0TBpp2U/Vg5j3TBj67guSze4adc7S5oyoZqGEVDmWdLUqsU1lzLZeJ2eA9hyJfTMMTsmk2b/SA3Wfc2e1SV0cd4dfpfJ8lV+bp2Z8iy4ZKi15I1SLuZtpiTlekuYmqSzeXuiNLUqA7dvnCjNzomN/VEZZt9HpWzvJFs/KQg1xg2cfSEmWOexs0kIECsMpED0FPD4XM9d4FF5b+xz9QL48mtAwhQsJEw9eMg+3/0fk3BkIb7hUbZkbX/ZkHJHTIRjJrp9Hg90jYlSnmhnJ9AoPQWTzA9JDdehzA0VVrdjo7TN8kP9HKUGrGfzYPkKz0iaOyKb9FnGUOpMc/k8z07O1QYE80fCUmPeZ7IckJdJc8NMOHp/jkH/5P5+IKOMpRHgv9M8L3x3d3w81skYpmYcyjtYiqB3+R4v0RLrDNVvw3jnYNXbTroFW2dt23aX8zx3gee2BZ6G41ZLtzvjngZ4iJkYan92DCJPW+fEQwWILGB7cSaIfLJ1cCCScnWdmNhOso+LLhz1FxIhZP09bW3wlgGLkoPxUQtIlHU+J9L5576SPuZYbboopeQzGxcreVAFJ6H6RiK19ZB9ZN+u+hs1WOR/EjD6es5J0ho0/pj8ser+DeAwzqEk9nJNz/GQb2BeYlOKXzTiHf6uOiRhzLVtQ3VNnAqeFwTPzTp47hP3KFY+i6/zyJPPSoDU8RBBtBYP1SDiAbxaAFGKiRoW9/M+3p2e9QaGPutgHxelR2V1pzuei41UHm0jaBgzyQ/OO6cHUrrINvHuOozJ8YqtlUYbrlzZ3DPagPKg8pbxpq4+sBhncgw11TGSA4m31j1YmoCpbGrGNv6YYCNF5Zjn6lx44Cg7b60xiAGm32YLO924/I3MLGqyDqp4J8W/9ps/s2tAroWm22YxTws8r+za04twBTytuKcGj1dkNVaKoVs/+WJByq3kh9ZAxHKfJRAt5YleSO/jipEGzlj2It+90om3fJH8QAUbXTvXzlcwbK1awYAkjlENJJMV8UKxu3DvSnomY6dhcjKvcYHOLVBVwEqPIcsoAYJ/JHk1HH+ucwDxYGl+B/c8TGacbDLYeJyaK+ONw6SaB466bM5Vm+zG5OVa6FKj98Q6BBHZh+YBzYI0nscxzsGuiSWreg08S3Z1CzzFRb4Q9xAjTQBhLR5aKPV5EhAdyoraw1A6dELvV3TanKS7rNnIt0OqnB/V7ZX9TSD1UVLpHbdHvvtOtm2uwIRgIOqz9PEXa+uC9tKrAEgLWB4sDebyUtD/n+I7UIr2ibEmD5q5OsbOtus5mA1UDeAEO5dHjqg79551Lhu/2xUrqr3TNpTXgL82ngo8rVIdNOKeVQC14qG7TIVzQbRocV/lIkAPotpcYFw0VJJuaLAR7K5X63H9YSnn6jxS0B9UZczB7rxkI0o5D6Y51qRNnp0md9HWoPLA8hf9uY+uAkoNluI7OJbhd/WgoXRLxzjEY9dzMGb7uTAEBjuH9Q3K5BoarFMohyGu1/EOf+u6qnoNPNePBZ7qmm/FPX4J8zyHzz47HsD1mx/nbT+35y++QMB/x9d/cvVyHIT3tz8j6CC8HwFpJKsNxJPmi8/NBn97GZ+vvkW4vkD4SBr77BBu3iKIJS7vXWwRbq4R9lLhcIOwl7FHtwhSir7dIBxudTKvcOjjmCR53hwQhl5nbAhDbG4vs9oFmdhYt8n6QVsB67rMydp1OrND6Ad7lvUxbuc23T7quKUgM4lPXX7exPq0YDPrcXRpkPFNMlgkxNnFJViK79m6NoZwQ7c72/+kJdr56cfWyokhvp6cFQ+28hqidW8jO2P1hFnzA237Pg7/nqw5iwyT7q2LrNSnTbE1My1o3dZbJ9l+Y9sFHNt8Q+u38Wamcm3rgEOjYOdYx0AjrZ8EQD7eYVW1fHdfYVAkSU8ET6vCuo57avCgId1k+cUvUje146X1Af4DrNnbiOMolpgouXNVxYKvneNQiNqhCx9gWpJ0g7ujeXkQ9lnWhZqVasnhTAfZlhKyQzYQgrl3KQYKcb3bZGk0zcfxkI+h5k2Wf3yQtU56bMrP+r9Z/B/PTl5qmjQdQo6BeuTKgcQ2ZkWn43fnqWAcfy6dNc1znxy2inVako2/sXfaOCTB17bVFQZ02x4KnrOwQAaSFy0WgmOigoVkeQAT4dPY4efttwj4JDORvH9pTCSVsTc7hNtrbRus78nznmxkLPTsufZaiGwUp1Yp2Wgfn4WNyEqIw8iXGWnITNQbA4HMwn1sZO3kmAnGNFJdPhoLkaF4PmUErrLPmLeRnc4gIP6tzELGNFPntpFhjE0O7jNkGnnvcIiJZh0Qt8lMpUzjmWezzjj63Yxtkkmwq1jH5XaEdd69zWPEBDja5dbYhpJNbGodY+YKQ+9Kkt4XPHeZBlyEfeBjIG6olzVTAfdkoqWyHyk3VyYya7IVFyU22mR7c1vFRrRBi2B1n++e1OFNRrI7697uuntLFPq7stzFxbIdbJ+eOR5jp4N9xjMLcymeaWhOJBY68ZHYZ1PGP3TOepRxj3yXg33PwO9vbDmY/WxWeWIb+cze7Oj9UDF1xTiMPxOL70uTgGkIH+tsXbpCfkuyTiveYd6QQxLeG3gapkGNlcRAXJpM9AvgN796OiaCxUXCRPJa2OjyLYK0FvJx0a3EQxYXSdWFMJEwkrCRvF/ERmSjfRx+3oqP5FmqxFOMRObpMwvBmGe0eGhn7CIxkQxk0nhJagV2cZLkzj7jGYrrQjFbvkYcCMX3t9UpH8fyd+j78sc82LMyzyHvoy+HvL9nGMTh8coyMihLqp57+zxjnr0xT++YiOzT0wDY5BhHKu0T41RxjjToSNUkuyrWgZZqKeNwEJxPjsLFO94sAMohCU8KnoZpUBONVnHVMHtMEOnB/BnhVBB9Ah0esSrpXr7UXgvJYMAL7fyj0u5wmwFVA0mGWFzGAXsFkOziU7NhcOaBgqXP63BgEsDodgNSP7p9HKD4GZ4LAsODq35vUcuZdqvBRJDU7xEAHjCgNDPgqDyz9/tavhlo9m5948wBOMlG4Eip48aXYRlwYIDZXmR3VYYpe6PA2k4tSrYjm/oO8Nzptj0YPAYgNFoxv1cQwRrYy0lxcRH+VbufrrPRDcKL7wCMjZ4bM4ljdzAAXT0DFoFkMRLXEzsN+r90KhW6dDKKtgaTPHu28oCCsRUIKsSCWQIrAcA+c9ZyKJ04DxRZPFgQbwQJMHCsAgc0gkRGbdJl28QunnIzSiyTgOJinBZwrt9FBmIRKPtiMNbRcWSXd7CODdL0kg3mtAH/XPDAx0ALvfzKZS1HtBITYSFPxKEQhUPn4iI5ca18kTgyLAF6+SGmfVXBwFyClgJ1MbOdKhn6mLjT9cohKkqDrM8ZY6TNDqNo/xQTdRp/pZiJMQRLhUYra9F9rfqBdWJ0ytK4mG2OYw5DrpioH/Jeine2+fP8e8H9Hy2tsdiN+a7ePsN4LdjfZGJ5b/kbPVYXuxTNP1wrXcY4ci6vuG+fz/czxj4ur8OKAv/bXVQuWyHZKvB4p41DEp4aPPXisRJyT8sTWQiPy0S4h6ST54KNnFPXknWyfY2RfIwEOnTCRMY6PlYSiXdhk3wpIx1M0l1EJto51pF9djaP0ugYiPtxKeKdu5jokF96uaYyyzEQ2WVv7AFjmLTfbXwWF01eK9PYdDQ+tpH3hk2WaTDmacU4NeOAjWQquQbnsMGzjqUzcKZkwxODZ4l9ENz8TO8TRGou/Ci+fqikk31qWSd97DT5eiKQBDhXsd2w2t9w8k6moPCxkgcT4tDxAlCynbET4MCycyDi/rs0TxmA8v21heCAAQcOJHBA2rt9UyzTAAxsewKNi21wA1Cm6Xazo68NSKcAR2XaZexiW8s1WKzzIMkmfQyqqur3AR74Cc50ed8gQunQffMc4Yf2/kls5ID0wb8AN++OTQZ161aABGc2CBNpVYNjJQLIg4nxEk4EFGxCPzIVFw+Y3dGLhcUYZu/e9YAis/D9UwGT4hgPGntdsM0uv6Y5sAYcumuFSfAstj3zwMGJrPMH1wCk5bThPYIHRwDC+wUR7iHpYCVAMLsbK7LuXCDJszKRZ6UGmARAhy4DqAaU7Ecmg4EKNpnF4FnGwDQeynOyhKF9td7bxe/n9CRQ4MACYw4sAUbOw1QCyIOmYBsDDO4BHKzINZg9jQdINrxn8KAJIDwdiODmIjpX0n3/0/y6ANJdsu4OIMFcO1/VAGMlIMdKqMHkQEN2AgEEnTUvA8i2Xdg+NWDgJN1JSyXZuBBQwixw4IBJsmKbsQwMHEAJGj1eA419vwgaVz2woz19InCwJtcccGwmEOCekg3vCTy4C0B4IIjwUEn3GuGHP4jvH7GRj408G50ApDpGkmfa37LvGpgo82Axk75fAQoLoNLvV+3HZWiAam3x4OBCVknrDbCgBozNIqjHsysB1AINjG3Ujm7EOKcABzXr+Finlmx/zL2qHyLZ8FDwHK0Um/5/gAh3SDqcI+tOAZK5dp6VajCxArwJpjibRPpuBBhlHRpg6fdu/TJvfxCAHGo8UODAkuSZAwiMZYA2aFgZjQXQkG30UO4DnBW5hkeUbHgi8MQ5BtLy+CDCQyQdSjbCilOHewIJL3VKyvg3LBm7JPHQABOdPDhAeYaCAxWXTQsol/cE0M3x9sEDqwbLLs9/w+100LAAGrQkmrGNnhsBzAOAgxWHDSeyDk6QbHgC8DTeeiQQrY0nwvkgQiM2QoONcAaQ6NrhBFaSpQaTyjzEqTIIKCyBCsfA8ku93+pynd/c7o5+kvh/HVCwABY4wLxDKc9A0CDOCnAX29BVw7nAWWEdxjqPBp6VIQn3Bc/C2+8JRGhLOpzJRjgTSBy8BxyzEiyX9BLHYEJD5sEBCiuggnP4im0LgDp3qYHknTIuLbDAAaaWZ+CMGh40cq4O+bMF2wDgIDc8ADg4gXWwMo7nfYJncZdzQYRHiouwwEZwsRGwLuvuAhJdO5zASiLxajDJc2InW+FrjZ1M5nEhkAgs4Bhcj7UkYBhQUIFFtu9sDh04wPA1pwWpQYNT2cZNLrAGHKzJNUTWWYt18ATxDu4BnsXd4tIAEZYtbjxCXIQz2Aj3BBKTsR5ILVbyYEJD5mEFUEAJKjSA5ZcWoJ5V6++OPlWBwy8GFBizAJlV1gCDhjxDCzQ12xhwmATFA4BzMuvg8eId3GFV2xvNc33HnfARQXSmpMMKGy3JuiPbGw0gmf2NO1gJHkw2lIJ/o8VOXDyo0ABWsc2WBVzdubytdkggQQkUt1qABQsso9ttSAEcaO5iG29HYwE43pbGilzDCayDR5BseAB4Vj+Sl3UQ4cy46E5Jh8cFElyM9H0PrBYruVgJC8yEKmYCASXLAqjggIUSS/G9m1N+h+OlAIwDCRpAQQUWoAQMXEyDBaaBi22W2EaToCibGeIJgYMzqqnPj3ewCp7Vj5XL04EIZ7IRzgASWmYDTmQllMykYGqwExoMBQ8qZGBhAVyPuVwaKDxQ0ACLZxhULPPs+bE843IO26CSajgROLgP6/wTwLP60ePlfBDhCdkIjwSkI1ZyYPLM5MGEBqDQABWqOKpebpfA9HLhA/9ob67B4ReJX/D3OPEzlwQWHAMGFWg809Sg8WzD9fRVnxA4styXdWR5LPAAwP8BT66sgYfoniUAAAAASUVORK5CYII="/>\n<image id="image1_3482_56764" width="198" height="198" preserveAspectRatio="none" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMYAAADGCAYAAACJm/9dAAAACXBIWXMAAAsSAAALEgHS3X78AAAgAElEQVR4nOy9W5Ikx5EtqGbuEZlVhSoAxcF0g9Iil3OFMiNCftwPboCb6C3MNm73dqYXMT0L4Ofgix+kCKXRPRTiUaiqzIwINxvRpx0zd4/MKhDs+3G9EEgPDw8Pf+gxPUdVzSzRj1pqorr9/Z3N9M//TIn++/Zn/++/kJzPP/5jv/2rf9Xt9Nu27d9+R+k3/sZWvv7K9vuV/Ef//ntq1/dLom/+oO//CxF9O1N37W8mff+lv8/95+/+QumLL9r7t9/Y5z/rz/XZd/C91+trfP8dfdQ9f/7Zxi39pq3ejZ//Rf988rpt//OfiV78rN/vVdH3X/v7pf/88wvVP9r6619Qpd+3z/7+l1S/4pWv9P2Xv7Lv/o7iz89/A8f7V/3zq9/2v/Ev/6J/f/2PO2bzz0T//b9vf7Z7M+WDtGeGjy4/AhgfBgoBBC8fAIoABDVQjIAIMJAC4vUOGHj5L78g+vZP7f01MGwCAUAQAADj74z+8/bn/fc/5j6vl+efUv3Wt37bPu7AY6DpAPOX60C5BpLP/4HqH//QfmsEyTe/pOoAIQfJFkD+te2DAHkKOHjZAshPAY6PeGBVv/OhoPiRXuJjATF6h6eCYRMIWyD4fMP4P9M/92+27++nq5Wd5Xvd/P3Ox7ev7HZ/17YFaAwwI1j2gPJBILniRRAgVz3Ix3iPvyE4PhAYf31QCB62vATQpi9/Z9s2KNMuIDa8w4eAAYGwC4INAHz6KdH9D/v39T59nPe4rbvslG5fUv0e0DMCZhcsCJQngmTPi3wIQL5+hF59LLW6Dg76IIB8wEPaB8WHUqeneokfDYh/IHrztQLizZ8p0d/p7k8GwwYQHATc2N8POgSN/pVve0eJXm7coB+z/EB0+0Jv+xs4zAie20LV8SJg2QDKB4HkP4hefUFVAPIlVfqTHu9HA+Rv4T0+EBxPBMZPC4pd2vSRgEC6hN7hua0/BoabLSAMnsBBEAAYQHJ6R+mTT9bX//AO9tv4vFvetjc3L9a3+u1bouOLNRgIAINgQc+CQHn4lOpTQPK+9F5kpFl7ALkm0h+jV/9Z4HgCMD4CFNeo05aX2KFNqCN+9SuIMn0AILa8w1PAMHoEBsIWCE6Jktt3GD0Y/OG9bXuxfU9O77efwfH5Do14p3/O+LkByMHDb48ICADL7bD9+6eCZMeLfDBAdgT6U7zHX4VaPREcjwDjIyJPP6WX+FhAWOvugHgKGLaAgF5AQGDrbNxi9y/ae4L3hy3j3wHKanm33hSgsM+O8P4dvn8LYAHvsgWUR0ECXuST+uMAskevfqz3+GuC4wowng6KH0udNr3EQJu+mddRpmuA2KJLHSCugAF1wdFAhUAQQ3/RA6Azfv7sDijcM6Lz/V8nZHu4pfr+rr0/PqOK4BHQIGDeAZAAKCf3HKZXroFkDyDuRR4FCEaxLs18VgB5gvf4W4Fj52E9nT49Bopr1OlDvMRW2PUaIO6+o/T6dYso3bjx5+H9NTDY3w4IL7Sx93UHwMr44f0z23T+yIiULwczXMcFg4QAJAgaBwyDQ3Dybg2Um9qDZMuTPJT+M3/PIPnmG6JnQLO2AIJRrDcGiqd4jzFy9WRqtaM7PhQcG/v/NKC4Rp0e9RIDbXoyIIAuMSA2vYO9X4HB/gpNetED4TkauQHgGfVgINvHQSHv/bPb9f26utzrhwIEW+4AKAQguRsAc7Z9OqC8a3TLP98CyaYX+RCAYBRri16h9zjp+odSq58KHMO+Px4UfxXqtOEltvIQEWVyDZEpbdIljyi9Ijr+QCk0gwlnBIMD4DB4BAcKGvt5axvc0+mBEoLg8gD3+6nguG+r8w08hnuiBd4fqHkTBwz/De9SeyAczbCdejFQECQo4BkMp5dU2ZVcA8hd6TWIR7Gu0aur3uOJ1OqnAAfs9zcExUCdMOL0FC8xhl1RQwhFGgCx5R1cMyBNEuN3r+CtP3gEB8LsgLD7hwC42PotAuGW6Pywfia3N1tPqS33D+ttBwaDgYWBIqv3ABoAjIPlMgAlgGPUy70JA6OjW6ZJtryIh34RIJ0Gce/BkmsAyDXvgZGrTWr1Ibrjg8GxB4yfAhTX9MQTvYQn50batAKEU6YNQHhEac87nDJQpGdE8z2l0SMEEGy7g2C2v278bPCXU7u3F7jPiIXLI5pjBqqEGJnhscxHqg4gB83F/jpYltqAMnqUi9EuXn9vnmTlRQwgHtn6KIBcoVfXtMc1avVTgsM+/9uBYos67UWcNr0EGykA4vPPNTONGmIPEOEdcP3OPIUBYAavIB7jtnkEBIKDJkBwo5/fDAbvn93gexoQcm15UOP3PR5ovY0B9OBU62EACxs/AsU9yr16DPcm/Bfp1uhFXJcIzdoCCFAsjGK5/tijV9ciV1vU6m8FjvRTg2JLT2xRp1cOiP+g9OXPr3uJ97nXETdvTDeAhrgGCPEORpHCGyRdnwEMYuCDR3DgsBdAEPDfGwACL8uJ0vFo62e7D8f1vc6n/hmV48YTORFNh7b9xO99PwPDA3iZAAvQqZVHqVQZJOhJkG6NXkQ0h9GsESCuQdhjrMK8heqe93j3BdXNyNUVcNCgO34KcCSqdfXZx4LiKSI7QHGNOj3iJVBH3IBu6DTEEwDhXuHZM6VJ4Rn4M/cKN0TzidIIhAkA0QHAtouxb4DiiO+fuDAgTqTgIAKAnAxEABoHjANk2QAKag4GiexrnuRAay8SWmQHIK5BTgwKCPMGQAZ69Zj3GKnVSnf8DcCRxw0/JSheHyl9CCjYSzgo2Eu8TwoEBsCNrydK5T1l3saAqJnyD3eURUN8QqneUa73lOuk2+oDZd5HXg+U52eUSqJcT5T9H6/z55Qo3/B6gu9kypcLTbyN//I+h6T78Htez7w9U14uNC2+LdPE2/27sn+i6dqrwnH5u3wMPpYfl3+Dtx9u2jnx55T6c8Rz5203tk/N6+su9pvjfZJ7N9m9vKPM95a38b2u7ynzvT9mexb2bG6ssbqxZ8fPkJ8lP1N+tt7w8TP/EhK2zB7YNqTK4ZfakLLtkGvT3ww29tu+747bpNtoLDulShuEaQ2MzeVjQPEbAMWvFBTyoYPiFz0oXvyZEt8gpk4CikTpbqIkIdi8vtF88/1hHF9R4ocjXoJfIyCeq3dA4+CHPT3TbQSGcz7RdJMaGM5mWEcEghki/xUQ3KixsuGGQSaaZgbEQtOS9Xu+j78OmfK1F+672G/zsfiYs/1GANLOgW56sPBfB8pxuCYHCV+zXz9ZoyD35qEHyGz3FwEi9/ulemh+BqdX9kySPqOxIRNwZH22/Iyf2zMfwfHtAA5vWNmWfiw4orG/snRUatNbfCwoNiJPYyj2SdSJb6iLa4g2HUfaZFEm+QuUaU5Am4wuXVxks5YgShejSkyP+LPJdAJ/xrQnk9IiXud9FqJ0QNpElMqFEod9eJ+D7cvv5XP+bNZ12Q+Xw87DOfdv82yP50JUfP2sFOrsVOqs+xV7lFOlyoeZiCpTKtmH6Rfp+kIq1hejXryPUK2jUiredj9oEadXl5FimUjnv1v0ahTnz+sOtfKo1b8Rvfo7qlsh3a2I1cfQqmuUKoDxMaCgLaH9CChePUKdRGBbog4jTjeDuEYdcbL8g4DCokzXABHRp5smsgMUIxh421nBkBEIvp50fzZwBwAb/3xoIFjsnh/sf8sIjkeWaVajd6xM9rgYBBcDQwDGwFLM2HJtQOFtApIDVQbNCJIAhwFBgPFgWgS2O0AcJB7Fkr/VIliFqudARJyj9sDI1SDMH9UdHwmOp9ZWpfhb66pQ5FqV7F8bFKuok4HCBbZHnHa9BAjrA4LBIkxu8AiI8A4nSjc3KqAFEEkBgZ4hg4dgMHRAME/hIBg9SSFK5iioQAiXgXGY6UnL+WLAsCW7MFaArjwDgkUAAUDJsF+AxDyJAKT2ACET7/PgKWL9FryHA+QJ3mNLmEvW/H8gcORdsf23BAVTJ9cTAy917+C8lXlsuVN+6xx3fkHJdUS82PifMbtuHJlAO9SzagsRtmfVBtlELXN63m82kcp8n7l9WvTz+WjaYaEpZf27JOX+i73PyfbP+uL1lPTFny1L+97ma4Hj+Gs4XhzHdId/z89JtMhRtYd/92D3YbZ74frFAwN+L0QrnZsmIwhAcMCC7y3fY7zn8gxegMa700CIaA94hith/t3TdIfbkNuU2Niv+n471zTHSm/s2HzdFd8bFOrRPMWPAQVGnYA6ffdWox0ddXppXsK0BIvA9ygSk0VWTFRPt5Q6QLCQNlB4NIkANA6GDAYohmOGJ4ZmRp5NVIvxMpiOlMPw7fO8tPcBjgyvsvPCfRwUdmw5Zm7v+XP5bfstP/9kQJFzduACSPz8HSRk9yKiW3avqr9431sx6ghYFLy3D/Ys7im7B3dxfrBgiT9LfrbRANqz5+JPj1qxbXwwOJ4gyJ8aqUoVxPeernhy8u6poMiUvqAeFKOecOrUJeqAPnFrdbbw6zXaxBTp/kx5Mh0RdMneZ6BQ54sYudClAjRq1BbxHdcUvM+i60yT8kClCui6slCaBxo1ag6kTrxcLkR5AjrF1AaolNAi1xkTVdlummMyjeFag/c7nxudyvY3zVRiH/srNGtYTwcqs1EupFdOv3xb+oyKfEZNezi18sRgR602dAeLck8GfhCtekKe4zExHh7jmtjuQGHLv30kKJ5vgOIGKBSC4mitDVKnt/faIrmXeAptijg9eIiDhTu95eS/3LLSsaca4UFsX2+F3YNIa150vS40Z2/V7bPFPhePUmhOQJv4Pb8wLJtz2+77JdvXPcwClMxf/NvxWwmonXkpuU73IMO18SvhvViUSh02PMgFQr1Ir8hCvEyz5ufaYLn38NAuv4rnmOwZjyFdaSAh3yGeI3+c5/g3YDPdGGVPCOPmPVD4shWW3ap9eiooImkH+QkU2agnQmB/0qiTR5w8xl4etmnTEXIWhx1AHBwsBJrBubobUt4wNKAxl5OCIQEA3OiF1hSaixluAr3ghp92Xn6M7juLHovs2HIMOx8HBJ7Tknq94b+H14b7zHYvmJZJXiRvA8QbnCMARO69Jwmx0Ur9szsN1KrTHW9aA9mBgz4AHJAE/I2D47e9DY+d53BxcOwm+LZ63/kPrEBxfDooxsjTKLLvR1BAUgk9ggvAyFTba/JEHmSAUU/sAcJbUAdHWsCglt7wOiAACAIAC3iK1OsKqjS7Yft3LoVmfBX4Hd6Xv9PpjdR7DgdMJ9R3zre7JnsRXLt/LgCxZKbfHwKvER7ZaGo8gyxVCJogHDyKC3N/pg+D7rgfRbklAz8IHMc1ONB2scG/pjemlP4pf7CuGGqfxOB/qb3nPhgUWcOmW6Bg17ssYrz5DNEPdtG56ItbqksRKpATi0F+BGfKabaH7Z/x60JTmTn1oEJ1qbadjWES0ORpks/Z6FjAirjM9uq2Ff2bTOynKsYn50DqOeJvLTQxsM1Ys2+jSpkqnJ+9fDu/cqaUbL2waS66jYocR/+qkaRcKV34O1oeKu/5O66ZrL4rFdBREjZOuk32Yb0zEZVCaaoCBY7rpsKJy0lKTjm8n468z0l/h7WVH48/49Z2WiixniqT5JdkebioLmNNxbmh6aDlXzfaWUz/PhB98oro3YkS92m5v9Nuw+9tuNPv9Pfpf6lEf2H7qdpN+aEQPfuvOqrJ//Z/6EANb/9M6eV/I3r5O0pvf05EvyD6879S+uIXej6//jXRv/4Lpf/1133j///8M1/DU3TFRliWtgoC7QdHoS0bd0BxP7QaP4CeQOrk9ImNcH4G5R0bXkL+XrRlcx4trd6x9xDZKEW1SFP3mbXm3tpjBAhDrylDZMha+9AEc/tLRotqUv3QUSTeBq+Rcvm2OAb/ztyoVkG9kgbPsjTPscBn4mHYg4AXyX6PjDZWu298Dz0a597FPTHecyklSUZnc3tOe9QKQ7qd5/jBqhyGcG54jo1oFdse1lbJqN6+/GY/UrVl84yJTSq10hWDkHGxPYJiLPOQkKwL7T1QvKP0xmLdLsxGPfHeHoBQJ3PZAhR01RZOzODm3fULXTg2SuAhVH/w/H46WEjTjahYrqDQVJx2FOXvTG0upTdwBwQZEJJRJNlWm0F3Bl/WQEDwjPvLsfJwLABdgXOpRs34t4tTwUWvJZch/Gug4XsQjYMBBCkWmXfF8DbZPZf1c3seNTV6i9Tq/UOrucKQruc7roLjSiiXbS9qq3ZyHFtifE9vdMDY0xUrsY0RKK+S3QIF5il2QBE3J/f5CU4WhZ4g5bAMijMI7MnAgV4itII9LC++S0t7yOghHBBh/KN3cIOv65Y+KYA2jbhugWKGz2Yz6qrGO778c9x/65jd7xqgaPRIBpLOk6AXAdAgQFyTuddIUAzp93Ye7j1/fhyejXgR8+zsRd7bcx3BwTbA4HjjHmQExxitQnD8B6UoPNyJVH2I3ghgXNMV1yJQWDp+LXn3VFCwQKPcXO/ZQOFumQbqxOLvkPoWTIRehodrSS95wPbQp7QGBFOreG+0o6SesuxFkRA8nQFP7fuxPanxigFL1471yz+n1H9X/k4NHL4N3++eH14HJA75Pd+XlHuARPb80GjUklqgYvZAeBoo1XlNrSRq5d6eWrUzN4BdxMrWnwoO8rL1n+v6t49Eqp5KqTap1GNiG38YS8e9IHALFByS/dSGvedup3ugeA9cVOLgDgoGBDUv4tSJrLxj5SUORq28tVt0m3iMWbTKChARPrXwJwIB151GIRAcBGGESY2+1mbg4hXc0Pm7/srDCz4LINl3+ViynXR7eIypB6avXwa614G8NIB4I5Et+jWbznK6yffOva57XvQeDorDuYV2O2p1At1xapSKG8CIWA3gGGkV29CY54g+HX9WxkIbkapf7emNK5Qqb3kLX5CTyQK6goawLPenIKiSxYx25Cl+aEL7MVCUBxDZDIob8xjnNXWq4CXctfuDc9okD7YYp7YyDN6GgMiltaxiOLTWBbsts4MgtX3EyPk7s36GgAiDB++BXmIEkK+T06vcvJIAxMByzZN1emXpwU5n+40Z7snG/fLaLPQeTlUjDD5QK/fwk3l/B8jYCI7gGDWH5zkkPPVao6DR4envjLEM4EAxvtIbVyjV9MWv/0nA8etfr73F//41eAvUFW+UQvFJu654eNmHZdlFnlVwJUze+V8OwV4DxcVaFhfZqdiNninVc2Rr5a/Qn8lCmlVpEodXibdXebh5qRLv53Y1V6VY/FlOreWUMC2He6samH7fwrNkodbsdK1KuFeOL6AgMUD5y6HfWvV9tn09dGvnPPn5834TWQjZXoUsJNuy0qqriu3D96RKo5YtTCrXXu37vC6haNKQrpWoyHeqv7dwb6lyDrItaWhY9k1Fn10tGo6ti4Zi+fkfstTSpylby1opeVaMq4y5Dkc3S3hZ63JOrXxmstKY6ZbrdShNViLD4dybZyT8+az98On5AUK5iejhnuj2nuj+lujVM6LLM6LTN5TeP9f6GAzj/n0h+ncW7RzK/YbS3dJCuD//mmgrhMtdaP/8lYac+yjUDoXa0hUycAHoCvmih2W9IHADFByB+BBQuJBz7jpy2gjHwrp7CSsqFNokonJMujnNKEAvNlpcpFHSmk8mnmelMSvPYZTHW3OaWui1gmCfJgFrhGx5fZogagXfkf2AjpFHtdBTTHZOdl68L9IpiVJteJVi9yCEe9YGxj3pdGhFigt6j6VFAXF9pTuGgMlsSUF+1mXwHGO0Cm0ntOr3LYzLNjeGcWlLbxx39MYGpcpPpVDulvAHZTSPUVd4WHYoCByTdx6ReAwUIeTOSqcO57WrXoHj0B5UgQfpFKEYFSgIiCEsGnVNJpAjAz3Ld5t2AAA4CNyYJ6BXGTSC06i8IcL9fU49APAYQpsK0Krh94fziuiXA5fKhqAfAFJg3fUHNjRb93qkuP73YM/On+Vj4EBBPmbIu9qqjTAuWUO9Rak6W36EUqX/q9bpqrcYigMxX/HChrjxPtq7EaiNjHaEZO2G7IHCb6h0/CcLATLduVgM/UDJ16vSH/1LQpnkc193aiLbmZLBNhkxxT+bhEJI1tzX+XNeX2w9WQbYP6uwLRuNSGRUZLIRWUgzylqmC40PhkBK/5AqEyPhVvpX3kvJL9Wqw0dy9SsfrNaq72V75r5Ruq1K8pqKVNFmLsYl7jpUdOwk285wqVTqIjl3Wedt5aL74Dbpd1X1e74en1X7zH+DIVpgG68f9D1X4/JfrshNRyqXO6rPb+x9oeIdn9IzXfdOT6uqXO7sBBW53NEJq3G9e+xeJe5WFa4AAwsEVxTquEGhNso9uJMJ19NzrYvQKKu53wWFCbIQXo+AQiJMZKHcy+CqLwYAM2wiCN0u0UrJOnmNlBqx7lP6bR0gJuPjDpwNMMS6lWIk0vKIZCBgcCQrRXfg+PraX7fFjZ5sXb6jxq0gYZw4QGoDSgWQOBCSGaqAIisA+LOyUJ0URAoQBAFuY0MGwydcpwEUZ60IC8A4OA5UyunHgcNL2Bkcn31C5YEBUrUPuQzutlD1XoAdOHys3AvVreF4BBww/GfrGfDbjSfDbuf35ob+sJ2veP6F6orXWQcuWL5vHuNVInrzjlJ92aINFStkLU/hLvVJoKBdjdHKxRcTttREehk8hoh4attkzAIDhIliFb2l/S3w3sCgEtmAQUUEbvJt8k8VcYAikX1iXShr2QaHGL85k2pdQ8XQk4FjoiodJaqCgJqnkHU2SQGFiutas/S3yLJNr6HYNRZ+Dnz/DERyHXxl5uWK9SdJabFtWrOl65XSMul7EeF6/SUZkpP1iOPWgPvV8vB+vs7dgyfR4ZLbKBe1gcI2cWHh7SPOZ7lxSYbpeisjsrPwrhyp4hqp20L0/lOi16+li6z8oGjenxF9WXQaBLFd9hgtStVNvxwYMHCkf/q/67wruI8fT6GcE3LITcKyVjrOtfle5jFj8u7U889dUCwDKLgPDxp9Ao+xUGaOPAFI3DsIYMwbkIOtAK0i3TeB5yjuOfw9hXHk8BgQ0cnZvAJ4DtlWDQzmOkZwOCicVslYkcW2F/ledZrk9CoolMSI1DPITxk1Mu8SniIoEwG1Mk9B5jXcUyBNWoA6jdSKtOVfbXMPI8crSqlk24bncK+x8h63VM5v1VvkZ1RwkIVrlApHO1xRKpx6YPAawW5HwY2JvLHkI0Dxzb6ucLHNI4r7gAUMihgKcwAFe4hHQTF4CinqNKHoERIR2KVFl6ZZx5YSsT1EnOgC0RqIKoFAjvxDCNYK0SF7RebajyVBYchBTC3f4GXnMiggCG88VuQzbJ+M+ZEJkoMWxcKIGB4Lz3V1DZgNp1jvy9ZpEORlXUC5WC2Z33/Okk+pp7Oh/ahpxXy05wqC3PMcs/WuZNtAe3HWcVWMc9/xnfyGj56/mfgbhPi8WfaBibxHKJTcAiUO9GmSCVmIyz06XWERKIIqWSkITJDRHqJP9Wz0BEGxtBttHW/aAzg0HSEPEWhStnUGiYQkSb3DBF6Cv2fl23oeFbyHl3wPmsNyCSrCnW600mvdVpVOCc0wr6H9Snuvka1ZCu1tK06ZwltUqsZRpLvqqCuMuTDlcvHN58weIgudMhpFngtR2pP8KfI6087CZ3ChkjMtqdEqLVsvcV1ynXyDF7UmWha5cNmf8xyXBHRq0SiAUylOe6QbSncPUrZPN0yt2IvcUlruKU9HKvx3vqHyXjPk5ahuOj3Y0FtHzalUTow/fKY/9LoSjZSKfOQR1sgDpWKb//I3VH/zO5vw/7ekw4AxUjz2S7RRIOjZbft8rw6qNgrV9dF+mxtAJAJlVbJnrZ9JZ8toCyBuKGUs99igT14Dha2SZXJ1n1nApiBImjATYBT1ME6dSmo0KiOVSkalPKk29VojaeJLm4RGx5quKA0s2cBg/SOkP4OLDQNOF5TKjolkgtuIOovrkuwBZwWLg0BSehUgqFRJ5MmoKQpTGtMTQmeSNVCLYJMpDW8rAYQip7rw+6V22oOjdAIIFSaqM6oNesUXvxQZhkb6ZGyCoxBJ//MbORfuS5K4T0w66S8vJ8q3iYprtKQNbKc3iMfSdZt7Y3qjSL9xevuZ2CpTKmnUv54oMaVim/7jHyi9Jqq/arMsh9fg0dTnLW9xTXAHhZq2KVQxcJT3NnZs6sV2RKCg4rLq4GeR0T7ZkDWr6NMGKDj5hCLaDb8M7x0g0g+BLAMNxu/gyZhFzirEC0alDATJo1ot4qRgqU1fkLesyUS3ie8K4ttA1C2WRQ6dkVIT3/w/8RQqYmtRRdCHaBXgEk1yryBOqSpIqnkJi66VUhQMon2KZsAJggjmkpI1DOoVs6ny2t6TGT6n8i8GDv5uXmSQhh4cVUeKEG94tvcmxpMOQsG4KxzCZ82GYlwAwoNKZ6KXBooTi/CsE1BxByfu2HT/nY52d2dTV18T4qPXmN1brDLcrY+FeIvFOxzRNoX67m2fr6imKySzzRdigBgiUKkrCMQE0UbV5jVQoMhm459SeIXJSieyMZapwntrTTOChyqIcY3kuIcIr8GeIg1g8GiVt7TkJRVqNLHu4jvb/0KMU6BHPIV7DvIJZCziVE2AS+RJaZNuN9/hIAkwVKUhVctA2OdIICHAkHqq5MbPexRtBDwPI+8lD0NaFsJeJGtehnyd6ZRsyg0cMmgb0iqyoU4KgORs+zulsgZIolVHKmcdLI+eR1xPmcmN30ynVKTd/ZxSfVEVKFxo+O4LDd+ybbvXYJv/BgbjZEzMMcvRVxvhWexjQftRqLoRmnVdcXpoIJjcbWOpB9+LoyBYPUey98taaC87oGCv4PqBW/wpNRqV1fiFZk2jRwGAEHyno1IVQrcOGotUORiQSlX4G1Sq2rq3vGRgSDvJjNr+Jm27NadRLWSbdZ0gTIvawkFioVjxCkinIAKV4p97BNtW3HvY+RZq4ZmlvPsAACAASURBVNh4z890EkDIjZ4Wo096zSpUcqNV0ggM4MhHiUYlq7fiER71N8xrcN/X2ZoZ1xsiyDPRJ7eS10gPb4mnw2qUir3G90CpFhnhkN7/HdUvi1Iq+pPd4V+azVuRoXsNoVLXvAWNgpu0svHzJHkLunnbKBSP/xQUatQVTp1uxWMEODAChR6CE3YLZLEXF80boCAAhRv3pK2/109JAeAWlapWIEhIr4xKhYdwQCjF8H7a2rrW5j38PSTxOioVoVsKjn09weeCm1pI1h5neArZ3otwMXkBiOctFvUYBMKbgErJP5UKGobNqikC7Kpx5DvCbxT1AnQ2+MmEUXGgXBo45qSOIUllpow9JRuEh05Uy0U0YQPLxbKaBx2/2n8X9cblOxmkoXCE6rxDqegVtVDEjhDf8hoCDh6m9KneYhTcS/MYGoV6taJQ9P7BAMD3QcOy6Yy6gveFCNQCmqJCFGpKbcQ7gpzEHigkxKg0YoroklEq2QaRKvQscWyvUh30BoLCI1IOFs9jmBZpCT9z+7XGZ010p22H4XqiuPA231AdDAaP6qIbE3wmviVfw5oDPQUZKDS3Xcy7JIuYqZcwHcHRKKFcqVEpGdxAgSlNSNGLTkUNT7wjr09zAwfTqhiFms/9ojeJx9atet8UDFW0iWDwfKNeY6LmOURvGOW76I1OTql4nNyHKlKFbVEEORevPibEt7yGYOE3RJH5fsxblMnQ9rqNARVRqJdEPAuqDJ/JMxjdN09R722Ym0ahOl1x8oG/dD6ItECyzr1GhGqtwjM0xQiKuVElAcCkNCqnFqbl7fxbDhz0HMIIKohyaqN4ULUQrR5TaVRuoVs3OKdQybl4tWw4Na/hVMoF69aiQwz2wru6t9Ax6gMs8s+Ed6qmNTCzPdAoB0gCj1ZG0Z3850X8koMm+fZiwbIUETYBRYAjNVrlkaiFp0QzYV4TxRCYtY2+mE8oxjf0hp9bstmwzmOU6iXV+0IJhTh9plf91krPH/MavH3ejERtewsc5YNkIshXRPees/jEpgS2SBQPmcnA6SgUgQcBXcFDY845wqZKoQ5QrpF6zxHrV0Bho2AITSpT8xji+U1wC2imzgNJf44EAtypVE0h1GUGJs9vOCXBuqnIZyAonDrlpi9Ca2x5DJugofo65DJcU6SmK7z1DZC48C46BE+xSFUJEFuI1kCyhL4wzyb9Ksxr1Azi2yNRWVPrYvQb4KgT1WmBGR4XqkE2wXu4pxBN6eu01hv898HyG06pvP7Mo1TpE8mMa1P3guqn36neYJt9/hnR3c+oihB/xGswJuanegsuEqxjzuKHPmdRbX4KfgQBAK+JGihUhrJxzoI6INxTuPjuBhxeGoUyvdfoU9MJk9Fe/p4YPhu7gyBb5yCjTpzNzdaZSDsXUdM1cowKWiPJsVpkSo0p9IYYVG0FhmStmQOkE99mIrsiozZK5SLcqEu11jZyGVIV4qI7iddQX2YaQ8BhtMkpFRfoVaRSGiZdXHgbyEU32MWl6vmX3Cb9KC0/E+DgIwpALIzF+8uUAzA/sJSmGKUyKsrEvppnDr2xzAaUFt4PSpUsSkV30jhr4s+F+A8gxBUcdF8sfPsErzE/1VtYkWAXnvWcxQ9c7rEnuHco1GJpfhFWFykVkeiV6IxDXzrO3qCah+DkHQ0h2dAPbOi1gYIsGiWlDZN5GD2uh30nTQtYL7uN/Each/V4SwRRKgSB6QwsKuRWrgxCPDk4YkTmHWxkoxqlB4VlsylAQBCqHTLeQac4ZOsh50FXBHWqAQj1HiC6+WKKawh7b89VLrrYXwdHsZZJwrYaiapcZGXUUT1Jjrm8xHOwp7hcNANuYJF5TGTwvKronw49pfKocST+3iu1QiH+2adUH741ufAawrePeI2ZcfHvH+EtMDz74gXxvLciuOuD5i3QW/C5H69QKNQSrieSeQr/a1EmzWgDlfLtQp+oB4WVdChYrBsrgkC6ofp4rWT5DvAY9n09Lw/bmnY0fq2aoraK26ABKMT7/EXE4CNkC0VrURICodrakntBqVLdoFMelTLvYd1Uq5d/JBffILLJurOWVhGsQtsBUENHqMi2vEa1mG3NBgoWzkarJPpkOoNB4d6Ct7unEFArldIp0CqkdS5S6Sy6w3VQMkF+alpH3ocQ5znLmda7EH8LFbj5w7wGY2LuaqK4yOofiL78+mneYgzPVtMV84bgvngUSteDQgllWqwvxAJhWhPbXhLioHHqFO9J+12zKM5lBxQmwmU/69NtGe5JaMZkYEl9v2naAomFbV1XWAQrrTwHQWIvRTl29MdwSjUwp959WN6iQNIvvETq9UY1TwHeo9i5FgSIl60k8BQVhLh7B2uZyaNS1qdETl7qxBEctYVbKbVompQzVsvOm3cgj6otOvtTUc8mXoPDtxLFnaUOzO+lTNx/tkZlAhol/+5knuleiL8juvmE6j0D6Qle490/mO1Ty4bPNNZEfa2hWMxb4GBpq2Qez333XqI1UfaxJ7gv54hCBYVaXG8czTuAzvA+FB6BwrIPz0d4wV/VrjOqKbZAkZrnIBtLliwqZdnrKTLeAIQVSMxrFChP9w5Krjtq0xtBo1yMJ43axOABtEWnoBykQD7DM9ypNrBAJyQNz7boPZ+T6OOKAIGkHhQ5JpfG7h3CUywmvi27Xc1tIzi8V2G1fShb2QpJZ6OgUFHL5Q4T9AaDQbDBnZEGSnU66x2ZZ/E2nmSU9EB4DBfiOrf7Va+RXunvel7j3dcypFNXQxXh2q4map23kIXH9tnzFgeeJfVhLbgrzF405QacZJO0LB6WvVh+YNAVyWhTiG3PL1hG20fckJDsFFGlNShK0Cb9jnmX3EK1PuiFg22CcG3yLLjRqgSAUW+5RadqE+HhRcj4uXG5CtRq5SkSbLEOSl5A2JWCQGRK4KkJvmTeI1loNzwE1kG593AqZa4vuTeQbrkWOi1kQhvAYQWOWhNlQM2uKdrlRN+QoFy5o4L5vJBOBjlFBy2hVFUnwtHTOlPmiTWTUSnrFi2646zXUU9a37b2GsLydZE+4kNeo6uhYi/ltelkFbSLdUKKBfMWP1zxFh6efYCoFESh2DMcqCXyWGukgUJdFslTaD/uRYDUet6V5jECCG2E8Km0IflFaOe6AwrLY3hkqnp4tglyT+5N1HIaiYakH2UL41K0YM1zeF1UaiLc7T17sNJrOCxahYtRkYjzo4dwwERHJcuIp5boS9YSa+lHFJ70gEhN76yolBUMKo0qQQettsQAbWIoJ+tGa6Lba7wQKF4RTNT0Bpne4LssqfFJqRUbv1Mqub6LjEAveUEB8Vmeqyyzl8w/UMo3EL7d8hpZS9Vffyrbu771WEMlG35pCb5X6C2wE1KroO3yFitvoWMArQR3TU10OziyJ/IuGr4VkBwUJLT0FGrUFkynptK8hgtvgleeoENSNc8xgCLZmE8SJbOiwqpjRHXZb9GLGUpCqHkNE9JNX4C2wIERnEJZDFJb4hr6wxOA3WKlt0GnLARLKUVfbsyCt958UIpUzUdYaNk9SE+lgEL5OVWIOKUyCO0U9Em9VoK8hUXKxKhrR5vqlII2xS9Oi2XuWWvwdMpnxVvVKZkVDNqHpkqoH4T4Wal6SgcQ4hSCPLwGl4u8NK+Rzeh5OruHnRqqdyDCg0phfwtZoIKWOdoqb2HewiNRNW17i8XLRHTeurzofHXiKc4L5dnEtrT8c8tfJPAOVFoUKobOJFi3gc+KRZki0pTNcwygEBCY1/D1BPkNFNy1eY1s9CsiUx2Voha6TRCZohaaxYhU65OxJlLuUmp1Eetc3DyE640Q2xCVsmiT5DWqJxmdSuWBSoH38HxFSPRqfMY6fNfcwFHbUCg1t99VumQA8NJ4B2n1zlSL9leXRq80cCQT3MwaZFJ/A4fMiXhUzcqgO1tPvxEQ6DUOHqFir/EDJc5rcD3fXg0VYsBDt7OLbhpCtEN/C1libCjS7qoYidr0FqdGpU46TZVSKVLB7VEpHsomFygaxN567jXQK1Br1cOQs0WlNBQbowKS65AtUFBb9yiVMYWcUcskyIRDrZSP5JesJ5sn96LKNkWJdooK2xog8Va2C9tS8wwNJEilatRIEXgJ5/YlgICewhWGhzrBU3jVrGfVuigUDeAwSCcX2lC5mFxI2OwxXvLr6+I5cqNWyQoICTwH+cSayhwq28TZqFQ6ytBFCgpLQJ5Gr3FvYV2PUL2n1GXDl76Gajd0yzRtR3R3/S28gpbrUbwmqo6Fgg+CyOYtThrdEm9x1Jl60Ft0gnuBLqbWz5u9R9LhIT0xhT3sOo3hotzXu8z1ZC290acOFOglyOZ9qJD0w8ETXIjnKDkPER6ewgsNwTukCiXoWGUOYOjitmMMV1tkyq2oUMGRoq2LcnMLAfdaQ42iuObBCJTXS0Wy0aJopbYedggOo1ciyMMjpOYdQmSDF3GPJpUHGShWMU1RdeanRYMu4hG9k5/ZggBlmeQas0zib+c9GSAORyLWDec7AwhHqapQsYTZcLbhz1xj1KG/xiDC500aZQuMJigjlL9JUgvlNVHEseM5R6FggOnyVk38YDefw22HDN7CMt/ZchppCZ2RvBYJx4CSrqUXqJUadIW15FNEqWAsWdJqWjX+DVB4xyVP+lEDQfT8w/yFew7LukaCL4wORwvxqFQNru776K/s1EnFkls5SPVwbQ3N0fX3tmM5vy+ehPbftK6s7p1Qb3iLHut74AgwlFasFR4hKa2iBkxu8QM81sEq19zTqjq1cbHKrNObFc1dVQHDWUERlbapeQ0bJIEuVkUx31Jd7tRrCHh4yuS36jU4McghWRxyh14hkWp0ikV40xjbNEpE93fe34JCdFPURN3LaA5ycjekniPfyNzUEYma0uAtLDLFbpDnx04ouIeEnrfaPowNlmvk1EpFpDWZohuqepQKXsQoFlKpZNnuSO65UB/Bl3q9kXBMKaNWZUz0EYwx5SCA6BRBX++xZMpLjgrQKhl5sDawxFhSmMvwchD1FsV+r3T5iuyEgYIfeZWsy+OaenC4qdemi+T3PSJVVVNMtYT+UM9RW0QqE/x6bVEqoVD+3oCSdd5xKQfJBwO9e41LrzXEazxQ4ggU0610q+d61uSfgOPwVgaLlsgUhm6luNBE+Ein5sdo1P1bQZqU8KLolhAtX9kz5aWkXRCDSmWMRA3aYrGiQQ/PMm/3Ec1HQHT6wikUdkf1TLhrg1bikXMrEc9Oj1BTVAQFNVB4MSEWEVq1qlK/tBolJPuoIF1EaqOAsBuJELXFwKBI1Xx4iIqFhASl5wTlIXr8ao83Wcl5sgLC5rGMo3svPM9FWK2UhbwAHN4vpJW7N9FNDSABf30mlSBcm+foE+L7BCB4gAbJdBszqEUnzpfSEgvRhteg3ms4XWKPwQCho9rewakUhG75Pr0yrZwGET7SqfkpNOreOyKB6O5CtA+6jSA8ezF3PdOOtui9hVyMDGKmsfM20p97CAzf2vZimevQFS6S60ClCLxFCvE+daCgltTDRF8cE6NUrfZoTadAaPu6g4JaPqwP2VLrzWdj0kItSPT4rkZznIqQh2pbSiRSCOopRn3h0XvTFJZT8bxJA4IRLadVnozzH+5Ed4IRSvr1HJQqGY1yz+A0UAdxS9bDUDyGJMoPmgeS67hoUm+qQb0FFJ7XmK0BihqqB/McGLplEf5Mu756u+MifI9OzU+hUceX+gWJKg2i+2YI0XpNlJeYS6HgUcExU/Mgj3oL65txAcEddGrLYMnm0KhDMWBt66k2EU458hKTl6JHzz4ACXoOz2lAabn71gBFakK78xrR88HbTOiP4UAgiFR5fwxDToxA6MN1kgtd1BlxSPLqpGLJuuKRJsjAh/bJAzhMszjVqg4GclpFAIJCUxh7sbF0axQzRrjWPLzsI4WDWfujB4EzD8IjE3rY9qJeQu4WbzurzqzFGIl7j1UNFVMrT/hVqofU1p9Kp+YPoVF1Q3STiW6nUUdqtGmmVgISeYtsHoT2vQWOQi6DKwOdIYhCdRTKJo3pSsdpg4oNZeZBn2gARRo8h4NDzz1XFOODtujCtWCEBJ7DCwk3nHUAJAZ1xpJzB8owwBqNANHSkEajLICbwmVpubjnUxAcqYTbUa+Roh9Fn6uwddN47hkUMLN5iOYZgkZlH1N3idFMtDx/0md/aVQt+bwzDgbpSQjZcKdXJ4tOOTV6VlX3CiBchD97Op2atx7KHo2iFyq6D88peoBcLFR7k4jOEKLNuQGCqIGBnFKZIA+UY7h2tr69lyj5SJFcS8OABKgB0IhBV4zrFco7KoRsr4GC2ufZJbXZUMtd9KHa6JAUXV2t/c+0ry9GcEjdkb/1ft81EnrktMRLzT08msm0idO2BBXt4O5GcLS0g/1eCjqnwPP12tbt89AV5gHEj2Rbr1ay4gPA8Sjq8+A1StJBRaRviEWo7H6JLUivQLMntq3DQevzWFvdcCuMItxD1880isoinO/AU+nU/DE0qmK3VdMXQqFuuBosaoTIjX++6D4pBUC4aKxN27XoSOIR1VnW3iLBeh28BfaZ6LxEK9/QpN+YIBxCtFt0CmulhpecT4hu1xwJPEbzDjFNFzTYKejKJirijzOqVlyHIGkh0mQ98mqOb3sQd/3g98DhkSc4t+aVRi1RmmYI1dTCyOJPo695aqOvu9eQ6dDAa8hzhwgVD/k/2dD/VlYilOrikc6zDcm0JcKLZcLvpcBVMuHsMZ5Kp8RjPCkaZR7jfD9kvDNkurUjEo8Q0US3R6bgPXJEiY7MTWihthi9RZSdZ9Aa1IPFxpGKz6CHnhYGpgE8oEdGOhV1U6VV2AIYtb9AK63wCFVXDkJtVBBvq6KfRljpCA4EjOsLiFCFqQ/VtW7IFiZNPqBa8kF7an/sFTg0WacaI0HJh3koB0AIfo8uJaVL0YtwapCx4YmqD8qAXsOnIEi+PVFhW7C+GEqd7H2xUUPQllyET0dJRgmd8n4mYybcQ+AP6Wl0akWlPrfJJ28sYhIlIBaiRRrlQLo5AY26AeO3XAaKbqdP3pm9uFC1XIV4FZunwghAeIvk+2GPuoFa1QrUCZNzNgRO6BUAT5STj5rCs90wvhQULXpxYcI8xqgphsK93lNUaJO3llbMEfVSQ6udsFgvYFXhvRpnhFypWrlH7sHh360Vfou6Y3fUydc92ejUyWlUdUMv0W2j8xoIHg/XmgfW9IlFN4u9Jk/uuce4KMvJZls8+eVUKB1mG4nwtq+Fuhadev2ylaT70gGDXcqSo0XT2ijSvAWL7rf3zWNENGqkUWd9f0hrDxGiO7W5JZw2RVy99ACIMVY9mebzVOSeWqVBCyCdSn2r3usM2G8oIPRzyVhhazQsmfdyUHrZdvjc5EoDQQF9vh0c10YJceBYki8NkPIOSvI+JoKhyDbHAGuW17HmXA5QjGYGOMgHiU7NS9UEtAkrZgdKZaMaeokirju1KgmH8gGPQfasXV9UG3C6eHTPonoowtn4OdjDYOGeffPZdAcnlktPpzA6xYyHk31kyb6x4jaB1pgHfSGLd0iC2igtA/GkHt/H241olNGogw0ikVNE+QIk6DWo2HS8CbwD/I0ecjaieAzFTwNYctCaNhI5eoFBc4QWGT1F7cHldTcEXqeLRgGFwtqjruSieRCyMhFC9u4h2z1QRA7DigkDJGCcltXLXQtf4Qy02rbpiDT4GGBX8v8S4j6DuK6r9eaZQlx7QLobzyqZ4bunWHqQiD6yAeKqjlnVxtg1b+GRq0mrJsKO2NZGOjVGp5KVjUSyDypusdurdGAynTFv6gvokBSg+EQFx5jUuzHydjkP0aiRRi2d+I74PnqOBIbl9Cm8CAJn0BYJaFZokNrolK93FMr7bmt1bPe9La8T4docfS9yjPQ9RKMQEFg82CowgEaloYjQ7bSVbUQlBqT7xvUwUh9Kx/sT2QkUGybIh+wPWhU/mG28W40O5U7bFKh3AnDU1IYCpTbfX46hewYQVB/fysa9mmjwHOgtNLRfMGTLc43ztGabdOq8EZ0qfbJPoqpeO8U2bt1e02drnZHxaXxunMvfc4ckWSxMe4YA4+2t9KAS2iRU6iijQGgUxmgRh9OQRhXQFhednCQiUeFNinRRlb91pFY+sUtp4tc9TzXDdg0Q1Kb0HiH6bbccRK9TqK3bhPrboGhZ7wzEqgdsy280TeLH91DCOtqlL/+89t/Fei3YrntnmJ4Ak5BQIo/aCa+5VvCk1N+jmgZvWtq1UWljbVV4HhGCt2sMSgzPdFHNpprSnn8Cm7CR1pPbkzeqxYJBbk9EZntH9QwXG75JhyHU5exjnr0YbNts/vOhZQpgsL5grhU7GwNlffFCh16XXJ5PA3V5aPsup15DMHrng9KqbKPaZbhAfB9ggCRPGBR6igwUC296ap/hA3LjitmA3Ctg3gSGwSEAlecpajPyRBugCCMHQyR4sBAN66lXBvChp+kTgl0X2tAz9ncDIN25+G+N4IhoGsX9awDPfakLUlr/rq93+SK7d67FEkwBDQPS9c/QjzXFOAtpBIk800trUMV+Lk1wi42dwfZOMvhz2OX8YFOWQYP+wmwabZxMZ3TA8Hn0fIN0YbUDsb4Qb/G+9xZkCPR48vGoJ3iwkel4pGq8gA7xCwCEGpXClmTr5hHQpdgGU35Fv+XSe4uCIPFWvkWuwni6lpNaNju50N4DRWrhQQdWQYPPAxhaUrIlN7EFp05f9d/J8NvOuyucWwKAgafpQIqDNqA39HuQ4TvgKUrt10evkexcfLSU5I0WDSCZNho9eJaJetvIRsORcXjIlm2MjJWIrjVbnMw20WM8s1zcSXWG2rbZ+qfgHBwLHZXijAeiiKzvhbufs00/7N6CJ+xg8c2gEHCkOKheiGsN8yR5WYMBaVSx73i22MJ12SMUxfpVFy/cS60Mwx8EGmJFb1HbpDAwp9yqINDpyGCs4Qm2QOGUKzxGn5HH1ryLXNXUrqm7Zjew/nfbdyFKFpoMQLICB5wbeqvwvgiGwdvQ4CnCG6bmNQhA4ANbr54VQfi1DNtS7xX8N3hKgQDIAp7hot+JagoDBVkD7bbJWXG21TNBw24NPSGV4vP/rL1nZzF3syPZEp2S7H1XBkIaI57PLUzL3100463Z7ouKcPVnQr8EQNhHl2eCWXwkDROxGWhBLV2Ytb0mG14folIm91r/iJZ5DuPExFtxYd4bahiRD9INZdoZWt4VKDo6Q8M541i19tdbo3HQtW7xkgaKAdAg2xAh205Ex9tqd0T3zd5xybwGxXQAeq0Ykcom5GPEzeK5bS1515xFy50UAFMxkLQwsQtrnQc8RHYXwQPwewPoZfvRfaEFaXhsKSstNi17oTTNcp40nSkV1hmWW7q1nn1RDOPlIXbHOILFnZdOfl8/bwI847ZOeNPgLe4VddMDpXnUFyd1aagv3HMUm1dhnu1CwCOk8ZVaxAo/64wPQ7mlURR06ViiMbZ63fpQOo4UyosAu1ayAo0ZQTg+cADHeK3eonZg2nh5q4vf2wTgxm914IX+6H4PKPWNBd4DOP+V16Dhfviz7Cgsepmm59o9Tz2dymX9zL2hdI8S9rO0pLC0u6AzxAZBZ3BjLDrjwaZFvu+9BjiNlQCPBJ+IjyGxx5iAMWm7/AX/xMUoVDWPwe6O3VkxV1edH9pD0IFnh9YBHqzFsOOh0WAM3XpqLY0bcXyONz9B6LZG2Ud8J7yDGZIbSvDpUeCm8AI2RUT3wnTBqq+3j9dkrfuus/AFd6jwQwXWI+MHnqO25t9L2lNqgzB0rzTcW79nm17DihVjyNF2r0tME+f3pnmR1TOsA9C7bdhwLloOMudGqXj7tOjACFyJkVxnnKxs5Eh0rETcP2Mrn5G4t+k7se/qto6JvulV1KSp6AjkDMIbvYXv49ztxr3G2aIIjNgL8MBRXyx6DP7LF20TVsh80KsWw98XeI8tDTxU9Ba4re5sL9CpCIHlD6mMuqL2WiFRPyLIGE5N1AwkDUbXGWZdG+pjn3UepMLx4Zq66xzOHzUXYYuPXgM844526rzN6llsbMPn1z3j0r/XCU/UNrzxcdaR7SXN+UFbdbc1fn8YNIboC2A3TKXQa6AADwfh4ruLSH1KV5dN4W2RAAcIn60wqYPyQfRN4Vpn7WZZU4ix4JR1431HvVJ/08cwqQtXNJZoBZE+QGSIhofpXgx/GylLHY08hSdIRmD3qA9tAmD8N4JiAyT4G3a+NFK4VPtzRHoWjUHtG47Re3QeGe5reES8pxuNED6zLsgAtVByTB2iUJ59aeJebCWo86w10pEGcB08q+1FEOis3ay94Q4B7qDYWND2GRPNdD/TjHd89ZM+4x3LLdFtkonLVXhTE94HKwmpuaXtWYRDGYhcvEQe5ujO6TdVqJaPjheMI9lw9VN4gIQRm5FGjR5jdOMjEELs1bUhb1EoAGCMuA3H8bIPpHXJOE/7a6XFtS/7WHEoK8voS/qAP1mZSDcTany/DHTKAdxKUlZAgH1QU9W4vtKEsVMo/46NZ9X+4XFb11qlyk2DkN//BM/V7SCbvXjfFRHakwH8Yp2W2C4uSps4ZS62aBSK66ZWAty8hWfAfXtkwL/R96oqQHVwROr0riFLsoXPOlyIp/D32daXQXhzoReWKAqVStoyuGt0amUJNBkFXG4E9a1JHYRihqmvcthQz5fHVo9Kvw8+uDqCBr1FXYPLQeDVStF61wEUo5doot0BvTJS/F4dPQoeswLYa6NV6GEcqAAXPS6MdbWilATnt0eLNu5btw80eGk8vo3K6KwgPAV+tjSRXWwf6PSmy2w2RspOxGPYtWawT7ZVSGdoZOoO7Puddq+I5XMHhs2av1cKQkNEasx4S+zYirk8sVe80GtpiT2+uHlSg/b4tNwUu1iPVlkJCaG+yD7Joz+MAgO7tRYpABYPhRgyKQAAIABJREFUKjfRi8bu5mCUakUZ7AlHy2nquQMi0hOqA99vL/LP4xipbfNq260XDLfTeZrVNuqBCZ/HuXWA8euDOTCQYibwin6k2oAc6wnuM9xXIqTBNmlOBQAnfL6kDaHN6ipgITKbABthPeoYiETfojZWUGP4DGhHs00Hx05kijZKQ2TltXkMDFPdm7fwtDkAjTCTyEh0bSGGfWn7zwYSAqdRBvG9Et6awJE+pn5DPUqGrXd4C+3PHJ4DJ1FHL+OGDNpCQTE+7KHwD8y/M8ChFSf8TkefBlDAhPehR4jab4+vaK0HGpaugGPlqepwPTSArVX2+ouQmiYAMoI+2/dCA/q9B1BlA0lyT4ANm2+DMG2AZRTgC7AMO8cgIoe+3wTaINsmMhu2XSA+tGXjiAWNSmGdyMv+i8+fDQe81TJf1BfuLTwiFfvOVui1tG1lAU8xNfqErUa4WL+xOu+0jtdY4MY6r4VBk52bSssF81NEi+rrAJLqD7L2rX9nSOgtYF+/sK6EALxCgIKahwht8QiVcsMNcDhdG8GxdQ4A3oregXqtVNv7dl/s9wIcdmC5R7k1VPJc7HvxDPy51LYtwfMLj1JszEin0NQL8I5NgP04C6EhsNN5DYtMsY1ulYawTeOQUVs1U31JCC5Ao3DzGaJSfgJeCuInG6Ugl7a9i0iV4YINBO4lsPXwJ+6fw+jg0RIiALBFGjQF2TwUSA3EADLQsJXBJDBSN2VoSSttUKi6AQpqv90BZwcZaPibx8gD3briNVxrxG+DzhnpVDQQoEW85a910Gp4v8GrB0iAGq2er4dqS/MeARawDYxMTaBbhap7aQh4igWaCo9KdSFbWzB5vbX0wHi1vZNzs8vGDxCGahuD0lIQW0UXl5fmIifTHMncZp50TgZw/RSagnrQeGsVrpu0NbIge3soIJBxPVOYTooWfJzyC6hUR0daix0L8HvdE+lTO1ocrx16CGM2sDWA7BxjLOWhLa+R2/fQS+L36nC/3EPFQHEbOsPvF3roeDZDUMRPrHuWsC1ZRFLsArxHUG6n4JYbixMfvEZ4Cshn+CIh2/tBZ1xZcpfc+0HXH95d/6LnMPgEXGYcLOPdkGFUCtxg9QuEC/cb5PwxWgy4gT5CAW2AJh4ounNoAd14MjVDz2gkzROsWkAUyCC6Vx6jtlaX8HvYYse3oXaqrsy6LQgQBMeoOfa8Rvwm6J2M38cGgwYAgbfLcO4BunafO28b1zM8p64hA93oYjueuT9vaDj9szrQccyRHSzo46YH0je8xt6yl+SLa30kt9cJb/zFEZmLUShBt1+Av+BCfVl5BwALmcutdRDjtaNUrUCv9n8zmYuGUceH1r8r6iP4Hp4DiPPeKPe4aFQJgqYYQPHY7cbzQ3AMmmNVABrXvRbo/XXkwdhBZ1Da8HYIIrzE4Z539zYNv2fePA3bJEQPz72C53ZNKi+zo9ka3GK2FlQK2csovmnDhocFMbCvMYhoxcFuDRCPwPCwMYwbRqS6CzbvgPuGe8WNeMPAYLt18ByUwKi2rrZ/8J2h1zq0+jTQlz0ahYI89ee1B4oxWlOR2uH9oN7A/ZxiOwQOqP9yNyxody0juPH4qDHGe1eCVhF6CgTBCIiRQmWz9diGtmDf2bSZYdmytVjQTkdQXNEX/eUiXD7Z3DeOPyJxeaQFzBsXNC5oMK3BXT8UbLE8JJiNJ+S0bsn8Ifgy0poMAIuE2AiYjbN34x9oVP/b3c4b1+yh41F4Xxk9ZPMY8Dt4DVd4Wu+l/RqcPlFPAbF16egQHAd7cHkoffUcu1NQKpWHbfFmGr9hv/OILY22yF0jbq815GjrgIFdj3HaiPE+ugz6gvbfRiQKNxUTYbh0+/jZlt5YVy3WhgdygblpcGPrTjuGjhRmy3gHQCHPH70FgmLzdIbjg/fTj1Nv4OOBOioE653x7V3jsOC9W3m80jcuqwtZz2G+eu552mANEKHaXdCoDo/su7Fcs/HrVOqRJY8cbmPBUNquS5y6P6sFb+TKIzy22HfzlhGAoWwe7JoX2Fueekevteh07aQ2lo95ileOvQKwLXEP4XmMh9n6budlRqDYMq1W7KfAZq6xpnF5im1e/f6P+fJHL1daglFHxPY6aI5Hlqv7brWKOw9s7/tPBsp/4rLSKo+c89/8gp7yQDdsBRvbn2r5zwHG/1z+5/I/+PKfA4xl/6PUeiX329tw+E9aru67MVZs/O5TFiX8T9//P2kZz/Gxc/6bX9BTHuiGrfBk+D/F6eDyo4BRjo+fIF4ETyqIf2Oxi9/DCxqt30t8yFeNOseAAu14+F2zh80D7Hzn6vJU9Nbrhrh/UhvLh7QY3Q9sLzjwAl533EO838O93/puoXaOe89qWa3Y4cFmLh9weU+xzWvLLjCOzz/iwGdYH65idVHL+ibxNFVluDGyjz94/+s9kKnfHg9x42El69C5aeB1+D4NoPB3OBL4ltfAdziJvU3gsjKaHXA4KEYAV/wYz2X8bTi+/35cI+1cI1zXuOC9Sxt7+OT8K4DW9bPQqtJ+Gz/zPD4znSPj+oJGdX5k343lmo03YHwPW9/uH+z+gWgeJiKZHmnbyughfIELxxteNraN+xVvwbJSLP5fqRsepfQNahirGRY+VJ/eq/vdHU8RxutD51/zLjt3B8GBrw+haiOY/RqueiRIR8bsxNbLLSgrALvCgbrWf/Am0VEu6+yyjz3HnHt63O23A4pdW7JltEW21ftxjH9c0NYBA9ep1LvhPXZxvfJj5w2fN9KooFMFWgu7GfKgNm7aqD+wlfKHJDe3gNHiSZR2LG9F4+Gi2ycwngFIMdAxnluX947pvbrzao38+rtunPEajz94C/RglQZDHwGV+oln2lFWtyWuK8G9id/Ch5FjCgIvcGrfowaw7p7n/ljFHndss2efgSHs2gwsW7YWC9ro/fDZaNvDEsD4/vp+qwPPxuGmg52sjVrFmoJfmV/MCy/m8i528VeoUppkNp7uhtYakyF2gEjgtcYHg9zWH0iAAYwqWuw9cODv4T52hM2AQO1cXszPHe93WtC9ZZiQ0vuBN3CWbUOHKci676bheyMofMbWjopR713wHqURTEgX6/B7ZPMCjs9zeO5ItQQMbjdmR2xTvD2brYWOdRtkmzw1G41lBMewIAby88/al2/tVty8uP7gAoinOBeheHyio85AlPvFS3nNwjOcN8PKGy3H2MJQ7mmOrOfeU8gw9mYS4T38Gdg3bS5rnmEUDSC+302lZcbtz9V+WI2oDvtT7zncKEf65uC4BpCgONSBsWkL/5s6wPfUCM7V2Gb7/kClYtxC6u9NMDKkRjU8RkzI33mJ4TlVe04dDTMq1T1zAB3bxgINaQI7igbXbe+stuemd2ofXSM2srit30IzwJh4NCp1uKXKs+zz3/mmf5COTALPEbi4NG2UITLFHHGxC7fCFqFNi4mwmnuDdgrl28p4o20OuuC2IBaptWSNolgrVsBouwc6ClrbDx50oyajh8HvjfQFBXwbZTIAML6aa9s5RmqUEZcVFUSDBwqJ3+vuF0w3VtoVN+GNZ5PBa5qucMmEz4aoUa6RUgVtXhQD8fwXBcACuiIbE4nfRxp16dlLrNvCtou2PD6ycdkHxrtt1X4wcCASJ79ZdqKZWxJ0cRfThbzfRVscQs5oESqnVTb1aJvsvbTPgUJVbKm81cYWsPqDyTFDUPXWLEGrW5pgbbOhNiPq+HbXYtd2HpteowCl8XOGFhwBMr5Qi28eowdnXZ0HgDo8Wzvv8Ba1BQ/kvQtvvGaZeB8ie3FfBw8bVM11h4Ot2rPD51sVENW2xefuPab2XbGfSnW5NBtj22IbY1vDlMAEwHUbPQwNOnlE6orOEGA8/xToVGnr/L33d0R3+I17qd2q/quMTPESZyIBA7ZFF6sZG9xgXLCF6RJ4jwwtRsrNmHnMoFJ6j7J6EAYGpF3hafwMbG65ToBjywYGE0Y+Th8MxjV6jUoNMIR0jRotGwTyFWz0LbgbX20BgC76tBE4CAOvjV61ayLwAtgggJesEOAoFVp+8NoIkq3nUuH5xXNxEBSgzTp1klKsZaMBNe8hlGvwFsVo/Bl174PZKmiLO7NpxATavGNBgPEtrZfz4C3uqBcvLGxOQObQxV2ocaqgUz7/tGkLuSdMoYq1HtRusrcw0ZJgtKYAlQLX7RMpRpSnduK4N/YK4KjR4oWRDjH9TrR3+qPRnI4KoUAnNGRowfG3tl7oUbrvDqCgIaqF5xRgwuvrz7vRKPRk/WT31IGIGl1NSFGbqNZnWRUEAZrxPEtMb9Y9e/EMxWwDKHeG+csDE+eeTaENnkbxfT808Bs2jljIPvLaLcxY+dZjuwYr52bLTa8zpqNqDPYS7jWEB5K6N0f3BBeEF9q1CtBq8D7urosDB2+sUaoQgbm1/EEPyFpr1BawTgOosPV071BToxnYyoZxNf4ev9sBBw201xydsN96dTSpgqZYR5vWv43nlgbv59eX1jQKrw3vB+qLoJRAVVPbt3mE2hq4eC42Z3iAgNZsgZBNgD04ACYDCNvWZLbWeQsymwRQsM2y7Xb64t1g64iBb1xjgMt4w/wLolLHZ1QRavfUI9FT73xC7MIu5inOl14c8dwKufbol5Db1FqQvHGjMNoUhlxhPbcHuXpQsG1cJ2zd1x6l91LQwhN6DTRwa/Vr2gFHoyzB74fj9i/XPQm+hx4Bzxt+e0t32CNox02dMfdAoF5/XLuHq4YI9ol9x+OXDcrs9Mg/M7tAlpE1AtbKQi6QwzgrffIGGMtB2Fa7KO2d2bTb9wuqb/Bzw0IT398R3b4E1/J2R6DcQ/b7oY8AnE/qMabachnFLsjdHN+EiEyRhuT8BpYd1+rGj1GNEHx18B4VAKITpnSiOx6qzmxaKxjHKKK7B1777WGc8N2KhooUr6djeo4FoJKGVx32GehbHUExGnZtoOwS63VtxKvrxvsH19uJ8I37V/FZpP64EImqdecZ47N3m/CIVMKoFNjTZLYmodohh0EPkPXeSO6JbaO3YNv/rr3Pd5DH+P5Klk/oFDUq9WBo5BM5GTjkpC6W01CXqRGDZTsyxa/srQd6Cr+h2HJDC7TZgunUt933jBoU3xZ6IkUFwyYQbDre+N2cqJnxaPBgGG6IaKiddxkBMnoEBMqV76QRiOjxrpwj2bV03gINfLgneP8IG5+0vtcJnsH4bPyZ4bP07/mzRuGdAWQekZJjWpJYaDopSM7UQrVoi2ybHpWSUC1dD9Oi7d95HmM3yQcaA+nUwbSG/7BEpk59ZCoE+EVRXwb3GC3CIMDr0Kp0N7duAOKKywdqUNyl44Pu3lsUEQR08VftjbRQm0u7NzzwUEgxVuDYA8kTPhuPuwsKBLT/ReDbawBvSbg/AIG8UUvtPn3Is8Dn1z3T3L/vhDc1e8lmQxLhvDThPaHGAPby4IDAUO2d2bJ5jb3kHmGvWQ5T+bhSHL7iubYZF4fnVGV0aAsJ3Nz7SAQyt149nWU2TJpu1IUuLMCPVOuiLm5JVHNpLcPZwm9ZIyx6g0HUdXRnR1iCECw2k2p4BJ+U3aYilu3GvX0eugSUp9gYtj1N2jBGssnlk97ClhuwnXSrbYBtCQ6UYXu1z64tFctdqIuw0WiECIpo8VtgudYW1anXrjeOpfdmpJ4l7inQ1QoewI+TrTFKa72zepYrfefBkMnAUqVLd7V7oMI7N0pVjMKnWen9qcoQO0r1i77ubux+3xGl51TPb3U0WrZ1D64yBh7sAYXG+HaMTA1JEIxMXW7UVZFFpkTsnDVFgAK8INqrpvFzSyStgzHANZO75dpTH3HXSKcKfJ5bC9hx4NLvX91DtAffeY0K4MPv5tZaRku88gi1N7SxhfX9M7Tie68MHmj0gLTzm0gh8VzzcD+6SNTGPbBjlr3756AYaZT8bumfqUxYCecV1MqeZdliCN4QGWVi2xEgGOuw6T94ujvxEvL+rMLbI1Jso5ediBTbNhbWsu1j2mKmv1i/2qzDn5NHprSlFZCxiq93MArEvQyESzcWfuOT4x/PfvKzCKgqnecvMoSJD22jF2Daog4a4jJy/sHIxNgXnY7SbqpOXlJg1lC98d44a8g9tclhfLIXG+hYvIaNtqHB0MSenBzZKQxRLYgvo1TsEWK/13kA7Dfim1VLpKz3LLbt9cNOUGOVfX0rBDyGktv5Ng+KVeHwGRts9mr9CqAA6mnGL/sYmN1zdMYe9xsaKjd8WlpDNVDPzuvN6LFMY1TwdrwjA2SqarPFgjzF7spyoJoe1FskE948AnQMTWgRqbMhgm38DQ459S1F2W/+5DVwsO/6LOAYmRLUmQA/DBpDolN2gsVyF1EaAi7QOWNEowgiV/YdBEvWh9dvs9bNW9Rorao9GBIaUNDl1yteAx6atnYV+HSKY/aeCw3MjAZpSHxeenB3YK96DSiI/X2nF0YvVNa/Ax6tnVfaMN7SvhfXWZp3SHa8vOEt8B6aOC4Bhtp7bb8mf1bw7OSZdtvs2bsd+G8sENovkwVzbD8pBQHPIbY3aAzXwiK8vUnZikiVPiLFmJDGkVW4i47vNwQ4H+hcqW6VhizVIgEWIZBchSX65ELA6Ce/wAqiSrlk3FTWJk6Xgk4tQytkIOAHJQ+ighjGyEg2w+GHk1qLl5Q/BxgqtnJuXKl9dzRAbFmdqpj3C0E7UJxoSVdiuIbha2tcByDgd8qK6oQ4TgStPMW5NzqEQBquLxqGZPfCQVL1Mwd+d2+G++zATOaJKoAlAc3iZ9l5E3zmZgtoGwKWyRpaex9RKRPdHp2azBbZJrdKQdiGvaFH4e0BKcaAR2m7IsKtmilOm2Mq46JiSLibb3Od4Qh2nTHVdgGdV5j1Rvi2BEApBoSRo8YDqwNIlmbc2f56SyYPdqvFa7y3gaEEH28t/eBxqNEK5+Q9RekFrRpSauccdKV0RrqtMXpvVSK06sK40ZoRRK57+nUz+op0pTSPl+y8Ou+Jeg69xXCP8d7Lby4DGGp7RqNG5H0LNpK12YpRvc6bYIOL+kJsD/SF2OqN2SpEnd5BKchWjZQvHTBWAhxKQ5ibHeAHGI38g7O9yJBKnuWm5kGCWtkF1hqcsQktu/DJbsZEvQeIFsYNC1sc1x9ugKPXoN5TRMuY2mddaLYPZ8bnCA4Q3qU2I2vHA4CA0O5b/+YB1q8CtAe+m9eAcDAHDQzA4rnC9Sb0GOM1b10veI4AzOCVK1JSeDYEDVqAxf5OZM8aGkm0CbGRaWAckL9we2KbW8wG3R4FDOAx2HYl471TCjLWC85//jPRswkEeCa6/Zzqd28pcbq88t+XVOs7HTLxYIKu3GgmlMOx3FHkeNDty0Xd2MLaYmnoXiZtaXTSHG0ZpkmFc3E6VSzEyjeqyOj/CoFJ3xMIbhbhIbzJBLcKZx4TNdvD9+mykgnspNIdZjBtI6cXm/qqda8w6Zy0fkc5Eh8723mZEDca14afhfnv7L1A1kZWrzZ8ZtdCuQiH3n5xDl4MmVx0owAHIUuQI+q8jBm4tOoJgASArKULvao3TA0Ivj/QUP3baGwDX220aQQL6wsyalxqa/CcRnmjac+8VgAEg2SChlb0a1EQsOdgm+Jw68GiUHwm2RjJhZq+OP9gpSCF6LOXVB++hTuxEP15IZpf/Izq80z0Nkk4Sh4HZwFvtaQ4MRcr7yidP6Fa76medd6JVT5D8hUnmUNP0Hww/TEfLEJl763Vi+gU35ikhszJHjXwClEnpUtifAYifmC5i0qpmRWY51q3FQBFgsILn1GoClA8KkVmxA0UAI5IWCQwyUxoxj7NcU41YNF+R6tRcd6+sHvbUvFnPX/hEPNjVgRFbdn2VcIRaViyVnsLFFvbMhh5gs9wvQJgEgDJ9um8fKWSESyoIWvzPJ6LQrqFNCqo+kz1ctL3Z7LS8pNGpaJUacxf8O89p3p8q/qCcx2iL75vUSnWF59Uzbt1w4Gy+LhJbQIZT/SdVbA0j2H5DMlanqje8Ak+aMaycmr+0twfexMHDnqLbOsZvIXchNw8hz2gDgRJQ6MlApbJyJOBoXrotpp36FtuWU89QMj21Qbb+JGbrs0DWNxzVASQeyv7HfdaRC0cPHoO8wzx/0S95+gWr3fCUG1toKitb0fLEYxRq5bRD4N2owyKWcGoSwNBeA5a0ywEiXub+OXUA60rI0EKDKDIg9fACBR6DQnynC3jbWCxMK0AgkO1D3x9N8pQDuYxzuYx2JZv6jqxx8e9a1xhGIT8G6JvmUq9VgrFm056oYldUL0Td6Ymw1Ep5mwctj0R1SPVY4pM5Tadqs1bOHCMJlQTcVk+N8MWULTchVIjM8SgNMkep+cnFs1mO43ySdlT7SfOhxfZpO7Rkgc4yKcobRkJa7kTNO3dsTo6VYf/UwfC5jk2RkaONc+wkAFjo+wcXqXzJs3AO2MdQYGUCjLcPdUCAMU6/s0BjGKtfwAgLQDK0iJREfFaWng8hDhojohG7dEoNv6DeAHppiBlIIXqct/myDgW9RjnqjbtXkL0xTdEz41GeS5PgNHpDLJ8Rqb63USJcyM3VYxVHh9nD+sD1XpLtdzrQ54tc4l0yi8gQJIanZIJcSZLujEYFjl+dUNnalVTT6csQZcTJuQAPDBVcU+jEAQGmNISfWJO0mfGPEexeR0QHJ3B1gCDjmbBHqzG8Snhb/p+1E+qCTQtzmG11PjFDiSQ2Y4zgtqvyLITBisgHNyBwEBRqHmH0sT5Ep+ltSZZ0SnwLmj0TrXAW3Sew8O77snyRZmIeY4yVyqX2nuM7v1Ao5KHaYvaqkTQbqleTHSzLZ8sif1ZofrwXX/jGQsvfkY0v+JT+hmR6wz+u7yh5PmMY5EiwMQx4Gp1U1w/JeAY6FRVkSN/D0cV4h6C9bDsYaay6GSUTqsKTdbau/jmWHahdFmahkCvUVFce8YaRHTQKKRMKMAbUJTO+KR8DpQRHKPxgiYxUZzM+KuJcs+2i6guMEljTW3UdpwubbWkpjMKrreSlwq+wyNQUUqRW74Do1otdzGCwoAgf8sGCLb0CIjyCsccaVvojtJAwMJ6ZnBMQKmmiK6VAvTpMFG5nFulRHiQg1B42TbXEN9Bo8Tmbqme32t9FG+7MYmQLX9x6/mL0vTFq1Fj+PLwKdVb/rWBTomq/6SVhxw8XHazjk5xpSNrC2IgXLQUgteLClQV4eYpqGU+ixttAU/hjN7XE1Anuth3mriOaFQdKRVOlN/CN8nYCk7euAaHI8FktxUv4WQuyQBRPULl8/4hSBxM3WSX+wuOW9WBAft5DDVP/j4iRoS5iSugcG9hlx8gCU8A1Kmi/qiDF6ktCZh6atW2VYtK1fadjCUgF62hKl4JMSsltASf5Ke8mnYzGuUV3lgG8mxNoxhIzzc89vy1TUe2GbYd6dRzDduelUJIhGorOkWAdjd6pFQowmcGjlEfnhWstIeroVegS0TNcwR1MvAUDbXyROsLC+aSrJWu6/XcFG9KTTdESS6Cgyg4vvdR1rqo5h0UKIN2SW0uPQuKNEBa6Ja6yfCHJbXRPaJbK/SvoI0iwK4g0EtdypDgo9qiUytQJFosz7OEF0i0OIBMA6yAJfdcDZ3XFQBpoFaeUDWaNTWwYeUvswelT+e16A4KVQcbo51olEW5jhamzWWDRg1hWqZRX7vG+CA6ZbKvi06dWhnD0RBv2cbqZSOHA5VlUW+R+eJ5fVKaUS/W8mWT0ZZvKKA1fLsl1Lx1lvRCUYNr1ClbpLyCzrDJMJM9cZ94nfTp+LzfPThGcWsi3LVFaqDwQG4AJOhTMo3R9ESIcIx+bUWJQ2DDXyt87GjVkOzzQswuq+/CuqNTBAZuoCg1MvbiLUoy8PBrMfpEnVdYUNQX8yT2nEJ7hA7xilqPjIFgF29x0RIQptNTVarlXoNpuIRpPYFXG4U61VZ4mG76aNTZ1p9Ko1iOzK8W4XarVmuPTmF0qkv2nSzBZ9smCytivVTRIkTxEK490llyHeE1+Fyq3e7kiTMzfAbCcokZ+GR7TrQstYGiGHWSB23NUDJi6gk9atSGjOoEIIzMS2udW6iU4iPtR5Lde7jHMMfj0jw8lIMk5hZ3+ZBsFqeh/0YjTi3ZZ8cl75MR/RowwdeXthfyaoDShDAUSpaUABDW8hf3IC2Zt1TbXzxOpsU8zBJgqb0XIc30iwfx93zcaQrNEaCU0p8M2gK9xdS6JxxMgKchMsX/gnl4n5ybPql3LRq1R6MYE+IxHqNT959JDDgJnXrfJ/tmT+Pf7Ihwo02jW/To1Og1THdoNmIruqQJwYj6FPUci+UEmq6gFn1KvQgnBIIn7pIDojQuVIkqKBc+L8VOMlAAnaqqccRjxO9RB8L4axYck8uPEz4aAJU7uqfAMakaHCrBCCcVq3KhRMboRvB9Ah3B/yxPsUT0ScGyOHAskNnlNYQ2paYx0ki9fHsVQF2NZnkkavQWyxiiteuUXEa9LrovTjc9qfdMadTpJdXb767TqFeYx7hGp27eEN0mqm8mjUgxSI4GDjEIyGmwhmCALAaKYqKbWYy4xUUEc6WjtBhs2HxxGplSuqPmuzRK5TTKbFZAw8ZXDAwiylVbUPJWurZWu/o0vwYCSdrlARzNAAlyAaExYkTzGh6iFqdTBgo7lEeoXL44uON3ESRb+iJSJAgKj73Z34RD/hBAxauAoXQcqn77GjGPRNHqfYCilkatkpQkqZdINNAm9dCLewUBDjVQlNpEN4ICI1G8zvssfl0crDlZde0kNsT5i+I5jfNAnTB3IVTKRPfZPAbb+OmNVZBfoVEUGuMROsXZcKmdqiq+vXbqkKm+r5rTON9TYnDcUCsBLgm8hlMstge9OJ66mOtmlGpYhCpbaUeadBJ8XK8QdSoAGIKQqDxMt0gHgzZhyXVFsnBPBw4LFVlX22ZuFONOZSoxOrt4Dzu8e4pKAIb4axHZfTVuAAAgAElEQVQx9xAVQfJITCoGVvZ5K3Co0GF0EK+YTZDP8MSpl3h4dnsjqReUKVr8Boql0xt6PNYj6kkaYBQMSKEgAhUAnEB3TM2rFIhEOWA8AuVeI9XeW3j/n9k8xuWeKFnu4nnV3EXURj3XTklcG+UeZo9GyTE/v1D9dqY00qlvJqFRYizf57526kGJLLumEOHyuqd0n6OmR/6F12CemZrXcK0xGSdO5jEknKv6Qm4KinGJXFnUKUKvZLpiMWoF1Cm2T+puxIobADpw8IbcBiMjr+nqMskKyxyDtmULK9uha7WyEPcUybyV0TjTO57tbvVSg+eAofWDVpmQbuLbngGWg3TdYJOGNEedgRXDxcHhgEiNDo2gqMnAkFWEh9Fj2Le07RGehagVDWK7XKILgNiHJ/WmQVuEtzAAOTi8IVisp54Lbn69pzYSzao2yqD7TSF6tkGjGBPzH+3NSKf4CTzLRO+T0CgR4SevKXWvcUd1fkEUmfAHq+FhYPCACOfBa5x0uyT5GARnqvmgQMnagmir7h5CjVrAwaOrJPcSKgLVuFMYkDXfLfeQKohuC81W6sFhNzdG684QjcLBBFxnWESoFQUaQKp7jgR0ygBao5JrKD0B7TEurikqsqvaBkF28V1p0BjeX0LpjeYzUvMcVuAX5R/ekoee0OTegpGpmkxsm1FX9xjmLYz4NuDUft2BsLhH8ZIQ0qhTsuiT5zYYCGwbPBiCRKL4GZ1ke+ct0hGG2WE6BJnu9M5E9w9EJ05MFxXeILpl3y0a9UenUp//A1X6k4hueUR/5lzIX3oR/pCp3mo6VbzGD0ylPrFMuBl/HUK3K6+hnDFxhxKJUE1UljOldJBMqArwg9TWiIfgDDmvWzfJhAaXPCTq6643aghypTIJknTmIRAcEWhVV0216YhInqHQtcpfT1IGQDxC5b9LoDO8VKQL2fpArHs6w+V76fSP1xR5pKofuMH7RDggvP8GFvl5TgMSc5G1VgNvegNBUZrOIIs6JaBPNcG6Rap8PSFtI2kIq+c8rPKhSCNqwptBIdluM3rWGdOgLQgA4TrDqyvOOBIIeIuHIsK7F92vlSk5jWIsvPkD0fz6F1T/+AdKr2aLTv0H0Yu/o/r8dRPhY8Xtmzv1GAcVsn3otoLXMIrlXoMsFi1gSMJZU7LM+JzUY5QzJQZHCHGjQk6pFq9zwtono1EeA87WBDp63GsEOMy7AHWq7JKsVqwztNqLbl9PaQSIg8K1DIAzt2hUyl4K0lyBXI2XiRTf6NLf6FNx8A7TFlhdVAxDNALC7pyHcFclIQGSJPfcvYEKcNUUC0aqBCgGklppMZokwpsLOMsCBYX2W+Ep3GtdTF+Y4GYghPC+NBCI9jg3r0HoLTwj7t6ChhCtRaTe/kD06tlmJW14C/oPoq+/UOb0xz8QMSZm+n2LTTFiXnwhmcHWinnFbdYEiWTCX0gijzB0a1w5vMZ8pCKVjSc1zOmsrWvx9P6i5IRB4ck/Mq1hGd/kIdiFWrQJcwPSUk8tvFoWbZmFmk0t8L8CRxI3SjYGlWoi9R7a0cfBQD0goC92QoBYaFlHC/EQMXg2i4Y5UCI8m0FrRCQKwdA5kFYK4mNbwfD+etjcqBQCoutq614CyshN/BarIpC8BkefXGibWA5QeASKQeNA4L8OEgHXZYhE2WuB5F/8nSKSFXVRTKdSC9RE3qIcVMukox77cjd4iyFEm7xDUtH78u23Vkn7GQjuL7QKPDb8HsK1WyL8iy+ovv1sOxPOXuPwUgHCXsO1xvsmvMlzGvI6yA2lclH7PJinsMgEnwkLcg6JMKVKSKmk2Z2s7MP+5qYRyKNS2SrnPJsm+009OAR07h1KhHDbQGootFt9Uq8zPIOBVMqyLtZfJKhUptARUUSY1DWk2txET6ey5RVLmw44OYUapjcIKuX6okYUrXVvLdERqPcS1DQHRKo0QuWgMC9CAygECElAIYDhpJ4DIWmGWzSG7DcZzZqa10AKxcAQQBB4EYtIXaz1n7RWqswgsB8sA87X/7yCtmCAmL5gb7GX6fZKWhTdPsCzACPoFO/wJdUXvOfPWgPGy4OJl5tPLXQ7eA3XGh6lmqTJaS1a1PkcqEwXoyAzFR7FkL2FtFqL6g2LODn/xnJteS+gWCwEC1GnosYkYHAhXXTKKivxNc6TjUaZlxvGbWpgGIFSI7qTqY27VT1CZmFaD1HIedbaNIdZ8opOrVQGbE+1gYBaFtxHcqQE/d0xKmWeoPrACU6zoscdhFUjS22Z78hPsEdQI16q06kGCslpCCBalKqLWmXzIjR4jSgPMXCkJrYl6mTUKTwFewmvj8KxchEkF9AWK2/BIdpvVWM8h9vMvVdZdE9fqsb+o2FBPMbf/5Lqv/+eEkOEhce3f6L09bQTuoVur3te471FqDyciEL8SEqzrDM8sZ4oOg2YsKBZXWoTpC1/4eRFqZMWUgsAovaJWo7CwRBRptbbjVBk12SDmZFRKQIqVUBb5CEi5QBJ0N+cGgCwlIUgf0Kl0Sm6kuDzpSsktPMIL1L7ytpOjLv3oAYI78vdRaa89fbQrUWisglpolZUaMcS+mQZ7wCFewfukFQ9PMvbLi2KZVXQLUs+DSCZItMtIOGydPcS00PriNQJbgaE5y2ueQvovvrNNxsh2j+p7bPoZlAwJuavrNMSinDaC91+pz8wao0f3qu3wAjVrES1E+LLyYaSByHOBiOUynQnUy2PUhk/ZYEuFGuaQpwm1wwsxmV7aV5EKBWAo/p6MSC4zoBcgM3WNNUtMLR9pN95BxDPxlerl0oRMda/FcQ3NWrlpSl7VAq9RwyGUJv4phEMcI4w0Fwb3AD6X3flIUilPHM9dFYSIW4G70BAUBTthSc0i/dZFotIQYFhnqSmTWumLi2p595iwnAtM4nSC2560PEDtgS35C3u9P6c3xG93NAW4i0+uxKi/UPzFl8JlfrKhjA0Ee6h268nSrteA7QGJ/Q4CnB4STwiWz2ZiHW3715jvjGbzmoQTKEuF2uTZ3HhJFRqtnyblXJwT7/J3idnF5OCQEaOz0LFyCJC2iE8ETk4ZN9slMnCoFYgGDMnUbJJbXSuuAmjUKn1j86lhWR1dJIcw3Om6EVoib0M/TFsIGkvd0/oLbxwcaRSLrx9Xu+cOkql54yjAqbec/hgCN2ABN43owCtopaE84JAaqUei3mSxUKvixxvBEVVnSHO2uiTR6LqZFGu2ujbMuln0S3Wo1BzAwdfw/FA5ewexQT35b6BoUCVrRcLph/Us4xVtLveAkK0ggFevjKN8c0vqb7+PaUP9Rr3NoAAZsOPz4insJHqRA/fXo6C/nwDHVHYe9g4Q2pNF4vstA4M4ilY9vn7xYDhAGHjX6w+KqpoDRw2XZmPPSQjrFdPjHm+QgExhQZyfZFsqF0xfWm/c4yzqzQjh9ZQcZvRU6SmjXQ9G6CNUgUortCpnGKOwVYW4hPoFADIluew6JQXEmbQGMmHwBmSfRU8idc+YX6jmtB2fVH0zizuKewYAq7FgCZ9vT0ahbrCqBOd4T2/tKo23i8PbVicKBQ8Upnvem9hNVFdltvB8aHegrEgwPjyV1S//orSU7zG3c/kB1pxIUdjh2z4qdGT0BhzlcFE6+KjWg+UyqNUbtwsxld6w41pjvnALR1u1KlAibnHeI2fufewFrpaz5gQsBGOLVYGUiE82yf2xEPkbOBQY2pD+FD0V3fPQVAqErVSUWVb9yeUdvcQs58m7eifYFox93gOBhelMfKfD6sDpSE1Aa/HTke1DZJggxuoCC8mwqtkq5VOqeGqphhAkc2LpKVRKaFR5w3x7boC6qc8CoUUKhmFOtxL8anU3XXhWRt6c8xyj5EoHsD8Kd6CMRHh2qd4jbf8nL+xLLjN4CTZ8B8onV8p+TjSIMRrL8RHSsVXfDy3uqXlbMXm3uRWdiZE80RRrWYtsuoLAupk4ODSgeJVqD7Lq3sNpyZ9fmIiHQzMh+Js+QunJUkckQ/GkFd0qlX6tv4ixeiUedagUQ00HmbaLDuPpImds5fAxxRkOPFj3aZRkQ1v11Hs6rqQrYE9igqtq2kJz6BRQxfgss2F9rI0OubUCpN6i0WfpkrLBWmVd3E9R11cOVYq5wN4kg0K5RnxTnDzizUvV4I/tyy3e4tvNG8hgzU/wVuQ+IffaV/Yp2gNzGt0NVQmwvnrLsTJhkVkIFTl50qp7rUfg9Au69xUfNpb1xsXijioJfnknDg0K0/eNIZTKQeHJBKTjpI9WahWBiBKlq5ouoEwDDspbZnCQzgtsZESowtrsnGupqBPAY7QF5CYjNJzKzd3sLi4qKPodm/hAGl1UTEbqnsP9xTRZwRL0K20PAZYXmIQgor9sb1eiaB0I1t1LVIrsnCteEzLjNPSQOGaogOFC/nJEoQemgXPEQCZIRzLj/fBeuUZjaL7nkIdb1SYc5+fMwpu/s4Lqre1r4nazFvseAtZfmcaw+nUlteQbDhBXmOnhmoU4lwu8pYv6pkVGTql8vJzThYdrHlMojFabcWsKyHG3VP4gGgUFKUDh8wfXmT4Huo8w9Iy3p3ohiEtk5eWZ72yRE1bWP8H9RQ2MuIwCJxX2bZolAPDamm7/IV61eiotLc4dTJ3E/NrE06zTD0lza1WyucTaQK8TVXQj0cL4/RiDVRojmoivEqjpTTLQJIHTYGgiOO56DYQJIg+dboDPufXbbG+GdZgBYXSkT/E2LcE91ZNFIdeI29hWe4tb8FYYGBMP/8//2n6+ddEL/8b0duvKD2blC7dZUp/r8ae/pIpHf8/SucXRC+eE/3/zV3bjiTHcT2V1d1z2Rt3ZUIiIUAyYMAA+cg3P+kn+D0Sf8f6Cf4AH71PfpAMw5RBeb3cy8z0LcuIyDiZkdlZ3T3D5dK56K3qqu6a6qo8FedEREbeXAHXV8DdJXB5l3jcOj2xh4uVZoFgc5OKKCyXwHqHYVykNCXp7ONl6vTRUsanrUWulzZ2YpuTA0kt8vOY2y1IN4CR7pCCe/k7Jto5x20gdWPyXiiDtV0IsS7FCcfpU/R9ovuUtsGXzORn4ZYoUWcyo+imPvMVPPIrD0Ut0ewcl2Ch5CGU77OquiuPqZ2XnqUJRn1i3r73NIqxjMpLxUFGNq47sBgb30cb/TcUr5MNfc16IdK6wPQGahAIaLXEUkieqb3l4k6jm9By5Ya6WmLh5Ziybe82ac7Hi6XN5xid4H6WqNbtBabHV5huLCfq1SMt7KFRbtEgV39P9/n2bwUUQqIWn3+lb/Kz68BqNDlUzLytxms0QlzW306ZESRKBaVfmkO145MYxXKo6N7YcNGF3kC1lb6fcmwDU8qjjf2g0LaJ/vT9ZPviPifRlo7n0z+i4+ZtkEx0RbRauinJrhSWnix+OFhZHzQvG5brs2opK6rs2g6dMlE+WepIPfbbZ9mGWgu5elMHVc/zGHoT5r7I2eADfsid3OuAvadWsYloky75995S+KqFlYUwXaE0aqMiO+uKvQ/krTRdJKV9eAo1YXpihRBawS2l+/N4C8ug9TlRPsrttYU0wcTCKBW++g747KtEqX7zhYuGuxyqz1JWEyTzVt23r4EbOxEK8ZZSeS/VkoG/W0x3IZWB36caTbouyVIy/C93iIWBYl/AISNWwt6NtzCrMBoIaCXo1gypSG76mOtQOV5hgTxLC6l1RZkTIhWSdsJ7Yr1cK97AUXsEBGMXk1myiQOVkFPPDzJr2XKGbS3CC6Wi9tjn5MEEBuT3CgQFeI9GQR8exco4vRH9GO2GFtHlypyn1gowiIcGFNFiGZXW4AApbl9moU7qpOuXoisuXNqH80J1KRQFt1iOT2r37EFOlEW5X72srcXnzJVqrcZBNNysxikhLmPDGdsQD4H3UlWBP/kxkn27QRhFnG/0e0GeGvJegn+T81RRbHtwsOMTHPtd2jmyGh91hc0jjiF7pCYbn6DP7TAkXWG1qw50hWaNTAiRwntwVdahseGQR02USrUcO1WEt0sLaYV37CLDfq+BwC851NUPaYVf7t3k/3TdTqV4MtPBK71hFkRdp05j5JF3KF6mSOuwS2AYTGeoS3YsoBDgHFiKBhQM4knMAkvt2OqF2t9pNcu4v+0E8rwXyscszhDcrbV42Vx6xYIC41sAfzhuNd7sMD1dpBtJ9y2FeDsElpRqFRIo1gYEsSSLK8SbNYJ4qvYTwpguQJCYwqVRKul0TB0JqaxjFxyT80JJR9gbcbP5ocVlm7k/LQZp0sh0Dz9vuHfPMmYRbSJML7xd9fU24u0HKTEt3tU4ybEMMPcrc6fm7jhyxazaWLRNjuzEZtw3L0sbAZ/ijOXgWHCnLTydoqbZN/tzlqxZEe96FZcsxvKdY6CIFqfQCestnVyfZylekayHeaCuZfm+WIwL1pPyFOp1PWTVC266Z6Uv44S1EEykaMW3wOd/aKzGS+DFCnixw/RqgaFy3/43cPNrTI/PoFQX6dGUB4pkvXFnHqsp6Q7RF6RUMEoVA4IMfVV6NQMOmVdclovRxDCHpe6LG3OyOdzgp9oKNWBgMYwhPTFDNU+HFJ62yWuoNWzeQOZDBZ/+MZiVoPaY9sVaxFDiMNo6blvvprXePjGnV1TmQNetZT5NoY6A5xR0uw4ERQjOS0VABEelQnHTYirFCoIHiQeQszAEwG4yl+ziCCiWqfoH1wdSKIrtW6NOtwqISlesbGLKcygUBbcOQnLu2RcGjpeNuVBr8a3dg3+dpvHltxjEakj7TMDxFaDR8C8AEeL4J+BVct/qDXw0YngTMLz/Hwyffqoj/YargOFGSnb+qAURhgvxZA1pfbpBWD7BsJGn5h3CctARe8NN0ED2MG0QFldpKVx+THlPYdommhNW6rlKlAea6qafU3G8s6W9l9e4t22wbbGsa9GF6PbbOoumZcE92PsksPU7VpkkcCCSzdykloIDBic/cs+kwtQWXJvKVABzsYyBiYSlNGcevMSgHtd9ynlwwb7g50oPWii7qoLuLQfcZJ0HnirGQhxA8vqUcp98bCIL6/uAYrJA3q0T25ZIuE0uWgn+SXRbXLRR57fwoHjWpVDJWhiFEmsx55793iiUAOOLP/iizkaptJ0rxH+l48MHeqlevMB088z0RhoOCzRR8c0l4vYudQuK8W26IEqpFi4xNluOTQpsZ1o1FW+VRLmzpTDapMW7jGIBVkDA3of0tC/eqFDWw6BDZ6f8dLVgnqudG8xNWiaoYSqIE98M6uWodyzTAFh8g67i2Xrn9hs5pBUsnMiId877st82eCroPVMhj+QrRdichYgp7Ke1ZOPkXMIOBJON0cbo4hJTKWQQmPvk9vmCzRV9mgGFRrMNFEs0YpugcNFtSf24rEvhTDlJ0FGocwR3hQFrCgxBiFoNJOR8NkOp/rrA8DtHqSov1St9DfB6IwA+Kr5GLcY1tTioBcGNUardJqdDhQNaRc2xSK5cmXIKuzL5vLp37XGqNYfGApCpdKgp7hBk9s9MpaYyq9NgkyXup0MvFL1oSBVLIgFBrxTKxPrIw1v3Ouow18plIuHQWotq0Peh1cj0KqSAJRMKzRsFr5MIBp8qkjs+56UwkCxsYkhO/kLLQColJW40Ih6sc8MJbKaOT5YQ6MCh47a3ljHrNcUcKMxaXFvdY9Eb20ZsZ11h0W1fCgdJV0w+7cNHuP96hEJla2FYAKlUBoFRqv/6DsNXsuEEpZLKhI/SNFvinRqUUr1WiqRUipTqTmreGrVaS+e5TXRqE7Sy4TCJIBdqtS6UamF0ytOq8QLDZmu0aZcolgLDKFSwz6pGMDqlemCBgeuTLcPCPrt3tMktp31OBsx0yeYAHEjH6KLNFUmiK+acSrqzSmJy2TpZTXp1rJEqZaCglM8x13KK6pNC1UURygQyNgdiNb2XjfBjZyat4pKdX4CRgcDP7kq92cFpDBt/U9I8NhaTMu/TPiUEzoPChLYIbolsCyi2KXs2Xvh4RUdX3HpdITmtAo4zKNR3TlsQFNDkji//FL78Mr354S8Y8Bfgyb8AT77HIBL93Q8YhC/94z8D7/4dg0TE11GtgdSyxZNBo97D679jeO6j4rcWEYdRK4uOy3K/TMmCYj22uzS4SP7+xQJY35XI+Fgq3qgfVuuRWqxiHM0bayP61HrY0FWYNeG4cG4TKxGs5wZmiaTCqJN7UqcnBgcyjXQyuwodycuTOiLTTOCi3sFcpqMG/9Ic2Yx+j9Uk86ljDYevWCZvYWwlxReizXzKoB07JqftchFrHQK/T38nmOuUUfBgUXAG9qYiuNO+wdyzdpyB47MtZV2cEZp+si1Vy62yZAZDcPlZOtQ1JDAcA8XOyuX0QHFp1qMCxScW3TZdsbpOntPgQAGLcAuF+sGsxZNPU9HmwQnuT3+fln/+MzB++fWfgpgWAYfsUHD8Hnj3OfDkOwyaKvIDBks9H67iYbrIP0iveAS8HjAsX2HYNSkja+McHhy329RfV7li8GlwbDcYgn2B6SMECayTK1YYNd6lfXurIaW1VQwEjq8jsMpfyaHiXo74y+AYQ46YKyW0ihzFIzTaBCiltmxkakgoIpSgUY4fmLzocoJCsHET1kl93hMj2sPggBDLeAsFEYNnAftxyFN85fSOKeZ0lJwCko89FJpELUHLodN/jclq6N93UyAriBwYNM9tn6yEWItFOA0KzbCNJbJ9vSigOBDblyWd/Mcr4NFVoVA+7YMU6j/+lm7sgeD+S7EWAgpltl9+XXvR9QOGoO/sPz2QpYuAgT8r1KaBP4tvPIqJ42l8Qyb8m9IPkExH/jAun1wlDkkeiVgujl6o28QzWSZFaxkxZWCp7t0yG08sHhJJR9iZ21DXzcyLf12CUbIcR01+21vqgo5PntJA/l1I5Go3pUp7ugxp5Jqu8yX7FkroIEOsdoO8ZH1ndZZS6eodjyuvwb+3dflcbF6D/d2koOxztp7PbXKf26Xz0785pM8s7Lz8Octngjv/3m/mtZjsGo12zXjttFPj8Dp7kU06tXdpHljmsR3pnsbToJA+4vuMLDVr9lkR29LXpM896ukKBvJc3/UUSltDoaQJJgJXiBS4L3zuRIke8GUyR8LVLCqujeAQn/GNgePqE0wqyP/XAPI0eRH8D5WLsDoCDu++Eyp9WXJoDjIxt7FOcR5t4MwY083dWQqDVZ/QDuBvuO8UYSrA8YAYCIIGJPqCgcF1SA8WduJhajq+6/D5NdXAGdy6BwE7OPgezTnNnLOuj+53ut9eXZM0KKm6dgqUaNd2KqkecrxtLPfDxzH2k907H6dYIc6BYmX9oQLFk9SHpC9Jn5K+JX1M+lqOV/jotsuc/Y3XFdZ8zIJNMEBDEdodQI2g77+qXVpZ0VsOOzmcnJAkacn6jfmSRRBdW5ErmQl2PdXgEH/0tgMORjuX/kLG8qSh9RjMWlQDW5JHZG/Bp/RU26Z12NKEYrrhEXvZXwEkpk4ROk9ab0HY4bg+7V1nnFJHzWCZkjXg5wZaGXnF5uX2yWdhFoUgIgjUarDD2+f8+cydN9enYL/VAUKuhV4Tu0bDVF872U+AwK61v/ZyL3IO1LLcL28l6JKl0G5BsY11rEJBIYB4DVjBtAOxLX3vaaMr2EcrL9R3fS9UaxgyMI5RKoLjgFLZCTy3pQRSntqJiibx4BBuKD9MXWwdcHhaJR6JIZbBKHIhYfkzOdHMPZ3arE21PNGisP4m2o2VpLZMEUipCBBvKWJ6YpJyHFiJ5tU+mTMIQqEt+SlPmmRzTrSvbDmG+rt6rH2hQt4qnDw/O0Y08HvLQUBkCmU0Kto189fQNIJeY0+dMNX3xGXJpnu3MhbgXbLO+7SdAYX0GX2wNh4o6WMwGs8gHvsi+2ZLodpAnu/zHgOh3dGjVGj1xssaHH91J5T1xq/SibfgkB/cA0erObZ24a7tKaMXeFVTKdm/WbobExEXCzP59iSj9eBTkFRgZ1mfe+oPAsQoFgHhrcgiHFIS2DbSnUyXGp2i70mDeIydgaTzmnblb/jvtsfs/V10znNhQPe/KU6FMnlA7O3a7FoqGmsrMdq1lmvuM2U3Tk/wQcZ7p7rCrIi/19QUPVD03LI+sv29ddXn1hcrULzs6wrfPIXqAoOtR6l6euOkGG/B8ck8OCjIh6v6gmW9MaVMS2ZfUndkamWBo21jPbz2GMdyk5Ufb9I26QTTWACRO8yoI9WUYhA0wQnvyXH00LEsuSPHtPTAGjygdu7Jvisd3H920Ryrskwz50IBHnznt980+3vtGum1mdzDZCxDVbeNldgybTwW6kQ9IS/VFyn/KeuK6gF4lR6MraaoQPHJPChmxXZPV6Du2weGIAPjm3rDOZQqtxNi/AAc8TQ4LuxC6esygYQCTfhouHBclTdoVaKp3npEx38VEJvCjzlOQDuFsyDaCUxoBmctshUZnTfL9kXX0StdsjukUf7J7wGkYJgOhT2tRUun/LGD+/ukSfkYdr6588cCHr0WwVEmsxAKlrHoC6VNm0Kn9No1VmIwcCjtnep7pPfMCW2mefA++zjFLCg6OVCnxHZu96BQ2r7RzNBp+OYbDPhjDZB/+zOGr792GJhLNISmjOjyFVPTXWT8M1lKwmHAIDGVnHD4OkXFpXrDhSQbvi1Jh4yQa3TclpJseGMR8q29l6j4biiRcon17dJQWY2S2+ywKn/3qeDZwIh5yqpI4ym4L3Co7S5F0aNtr/b7bTY8d+GG7XKUXkznmGOOuagzpzVwLe7rjKkwNjdqb8NqS0GHHJYJHOMCjZOkid93lrQ7lnmxOUtunJptVugsTPV+WB1Z/axFsPO+RZnZiNHshc2gyvjEwuIxuzQzUnHDuyxZpnkceJ9MaB+AQhJY4yEo3rS6YnOeruhRKAHFH/+IKfgNLYrO0hvuRHhi3lPlYxzyw7LlcIJ8PR3GOS4mdwHf6XxqE031dSzUaku22UQAAA3YSURBVHFb6NR6VazHprEecEI8xjwHRLES9mQkXZjG8iQdx+LOjE5/6BhnJ2j1yT2m96N76ucnfyzu1eiOtTCqxJffl92/8dDS8G/I3wzuvPRzM+db/SZ7MV18dL85T3FsGqOKGVFLOCuxdh5DuSeZOjmqq+Mp3h0BRWxAEX86KO6jKzwGFBiCEMy0A71h8Y0Hg6MjyBnnWMeSD7Ohl+Jt7c7tUivzWqm35M5SmGMRgHFpNzYaHyZliIlLy2tnnJq0iZRidII1dyhHrcLoOh6pinm1ogXOQgMSdt6xAyD+rbETVCQFgh2bXiVPnfw55d9DMPD47rf537yzayEvBYQ9QLYOELyW/vrymtPr1KNOlTv2bVr391ruPeMUXaH9QFD4eMUpXeGxEKoNM3qDx2nF+Gxk/Bg4Ot4q8U3TaqwtSUxHAb5JHqtwVfioctPLJOIGpzda6+E9V3xibZ0F2XoLsihPUHqx6Orlk7QCiVkdHxjUjrxKT/vQerWCc482HT9rAwLVbfPAocXh3/JWKtrfzn+LQDZQVGAYS9EzWkj5zdlCLoqF8IDI67H2OLVWIsecLuwe2f3i/QvmeZJ7e5AQOOWJXY4K7S4oOpHtrthu+ra3Ft5AqMao9j9Eb6CTiXtKc/hBTq8xyDDEdqCTfKerO25sGdJyawOfVH847VHpjrcIspR9e1tqlU9ua3RG1hG7Wlfo5Dbuc/Z0GfZpspuUSLtL41cCtcMiV3THYnGoKU410Q67XfqQpdprEw3B5EjNa9qm/UwFo27Qeeus9lzWFgunNRp94See5/p+svkontR6glqCATsNzLZW4rpPncB5V9xAIy3d9BBQNOMrHqIr/KZ+5vMJvXHgqcJ8jANnWo6cW+UyJ1uP1daZYXk99tbDPcnCVKzEmpaDnitzK7YWBN5CLOxpG4sVIRWhBZnsiQymmIzFokT3xI6O1vB7+uSPJcLeffnPuJwleoyi95RN5VyjpcJE9z26p6P9Fp6rHmNRLAg6FiKPn1iWvLW1sx6hscy0Eo8vS1zKU6dKZPssWct9+iVA0WuaO9oKjJ7VwJmeKj2xe1gOcCyHDHL6lVZUrzxWd2/qMR0wK3LKeujyrrEmttyZVZFj0bqMKF4sSYn3VoSWIluSbW0dFss0r4e3KCgVgLRFN1ZP5x0sYyePti0HZFmjF2pnnin9Dc4iiPXYbRsrsiyWwVuObB2WxbLsUawAUn3gaYFiCbxVkElblmdaCViRjEydnh56npgQmNM87gMKHHfLdkGBvrUYcvmATqGKXxQcNtgJz4Gj1Op9AsSjRwDdujZ5TQ0QAcK60CvZdnkBKCBsewWQrblyV6mTy8Sa2d3Loodc90AxChV37j1qKiWVGbl+bhNgbLfpwxWVWqSOH2wb3xMIcHQKVpRCwbBMIJCSkQqIZQ0IXV6k5d06DUHeue3eBZsBcVXE9fv3qa6YleSfpU5weuL/EyjgqVR7p3pi3P8htrkA4DFaxQh5zq2yrNzbF3XyYU5bd+kk3pPhU0no1uUTi/SKrt3svaJrdyq0QJYb276xFIfsfVmn75BeZboVC2VhpHiyIKIK+I0FEJmAR1qzsZykWDxY3Zf7DINrmjG8dce1v7Wzv50j+bFkFpMmkTbp718XD5P81g3Ta2J9TdaOkmZvk3PByjXOVsK5YZna4e+Vv4fUE15k37osWeY+5coePxEU3XYEFPAWg+0cyyFWQ5ZnC3IXBOTw2N9JRvoxUf4Kw+2I4cULnazmgFrBWQ+1Fu8x4LHO1FTRKxkwtb2rqdTWKNblZbIai3XZJ6OoaEXUgmxsm1kSsSJhk2iXrI9mLWTfcmXTGFhMboliPXTbNm3T0Vn3aRtAKdDSbo9ZCdIi2L7txj6z1VGSahFURK9s3SyDjBzbr5IFoBWQbZki0VrcJWuxvKyplLyXqb1a2iTzRFgRtEMr0VAnK1ygaeNzeiLnPllEGx2XLE5oCpzhgWpBcRYwfglw4Axq9SzN6JS0h4DiiWmPll7dFP0hxyVAqEFk/K3SqLUB4xLYrosWkdGGBAnX9xsMK4LAgAJ7v2rAIUuvO3zbH96Pqo2d20E9gQYUG4JC6JEDgm43EMhISoJhnRhe6ugXWmpfgbG4MH0h701DEBDyt7KFuO7TJrxNBTAuDRxaCO0B1OljggIdYBx4pWbv1FyM41xvlf2wnFtlP7znsQIOqdVdLMEfmmXGPMK10oBDevXO8q4u0ww/WwsKZg/WhfNirZwXxqK4yxX2pBXLZZrnerAM3oFZpVPxbsn77brkEQl1kdfWqIxs53eHNGf1/thrcMeNRuW2Uzku88Hkb/K4TKL058jzXho9lN8kv43jJPzvzl6m5jrptduXmIRc2x5tkntBgd16ne561GlGT+QsWZa7+UCg6LVenw+9rV298UBwtEHAl2fojvcW5fSRcjG7PpWE2mN4jJgBsi8py+IiDB2AsMwjefLOje1YX9SuXg8Sz729JiFQNo3rV/j7dl06tnbQNSKB41+I9b92vx5n7Y4z2XGWVmXczm/TAIGaoTr3Fgzmcl1flP07l/KvmQbvS9IfAaHX1hdV3hdAyD2hlfCpHUqdmkj2+zP0BAca+eDdQ0FxikJxo21nrbu6dfWGHr3efopWHZTjUQQVj9W51AqWhHj7umiPOXr11NY37zE8fpwqmYj2UIplGkRqw9OLJcfOOoOUi1RrnZY7Wy7WhXKpd8t0iOwn3eJ14L4Ld7247ay2BharcivWONyWqZFpBdmn3iRSJFsubLm3JbWDnpNRJpAuXWHCe1u/Nsp0ndyv794BMpW1dP43NoNvlzZRS5iVgDEBnEudXJZsN6L9M4HCauKxfTxwoOPOJTjQc+lKCZ9fA16YU3vAi3MDw1GANCJdwEEdIt9XkFwBjIHAAHOVNG+OfWhn6gBFtmewWNu5e1ABZLYOYWqLqQEEt7vbQhDoufeAYLEIJK0z3VoFSNhSdARuEwBkG/UDDAgU1aIhTgECKOKaEWxqCQps9Tp9OuOK7YDCe54+Fig6+38mcKCU/zyIdYjx+AL4WxPv+N3vgf/9z771yCnspwDyTMuEVgABikhXgBg4WitCbxY8MJw1gQeKAQMOLJdcR6p2TdD4dnnCatytD7ex88MshK46EGSLYECAWQMYECpg0LvUWAddvy6AoHepAoQbM4FjgLCsWPSsxG/LGB5Sp9+01AmH7ljg5wVF5zOcUeLwe+eCA3NBQDTgwP2plX53hl7JklFzWe9ZEH3vIujitXqcal1la+GtiH7GWxIHDg8UAgcOLGgAAw8UuFnZT7W7sj93ftQAgANBaxFuud/RJJhl0PetdUg1maZ38pkmYg0DR2sh4KcMtqEF6NAmPIA6AadBMRe8w71AgWPAwEcDR5da3cd6zNCrSn80AKned6wIGpDA5hLMQDFr4vfDLMuVW+dv9oDR99x3LijYDBzyhOcmD4C879a22zo8EK6cJTAg+P0XBEHHOsABoAcI6ohzaNN9rERLnfCRQDH72Q8JDnwNOHxUugMz1OqU9kCPXs0ARJqA5Plz4ObHEiQkzZJS2Ku3NXgOQOLoliwfOcAQKNcNKDxIsjU5oSlONQIhWwEHADhqBAcEFc56gQwMBMcMGPT9E0wy4WKmSxacu35maeGfmMdoDhAd2oQTWgJz1AkdPWH//VygmP18aueDAydyq3CO7kBDreash6NXOAMg0rwGoRcrA6ShWU/tuAcgMU2CFijSHPXiewIGBhqgAc4DGi3GjQMDAcBGi6D7GiBQM6ADBm8dMl1itNp5mbKGQKkCeAoQpE2YsRK4J3VCT0/g/OBdvfEQFLPfKe3jgWOOWs1Zj1P6gwCB1yA9gEg7EyT0bKEBirqBkQDB93DvH/ltbI+OXvjS3tdvswVA2UdaJO/f+/cOCPQo4Uww6G+cAQQ1RA8Q6OgInGklzqFO+AigmP1e3T4MONDRHThhPTCjPSqANPoDxwAyQ7NOgQQzQIET8CBYpHEDnCWZAcIBYKzlzt02A8PW73+XFhkETjhjBgg4BwwduoRzAOF1hAPEnJbACSuBY3oCHx4Us989bA8AB47ojnOtBw49V1/gYQBBx80LZ0VwBCSymjWJtTuzQj2woLEuvmXwoAZQt70rG9npffNWgM2DAC0QWNXvBBi6dMm5XfEQQADoeZx+qpXATM2CnwKK2e/3288LDtzDelT0CvMAwW+BN9/XXizMWBH0QCI3m6IdDVA6YLhz4vqp395NvHl4u3Qd9I07igcBnEVAAwSKaOA4GNBYh8rL9FmaWQtHAIEjtAlnWgn8AqCYPcZ8mwfH3OZT1AonrAc+BECcSEdrRY6BBGlKXIJErMlz1ECRRrCgY1nadvdAz1Tb6at9zhKAIECq9woCAanyPFA0g7STYHCJnQei+qcCAg+wErgndcL9QXH0WMdbP0KOn9F6tPQK5wKk48WC0SycAom0jjUBjoAFfcD49ozrz3p7XbPO/uPM7hYAmAMBW2MVpJ0DBhzzMt0DEKdoEz60lcg7zgfEyeOdbh8OHDhlPXCG/sBxgGDGiuAMkKCxJmgsClsGCxJguKhA8wFa7vwoAEAHBPAWAbVVwH3B4KwDTgACZ+gIPMBK4COB4ugxz2v3AwceQK0wQ69OWZBKpOO4FcEJkKADFHTAAg8Y1KBhq8Bzj1Z1erZXZfW23d+AAB0g4AQYpB2zDl1RLa0HCGkPsRLSZqiTtJ8DFADwf7Hv4s+YYeOuAAAAAElFTkSuQmCC"/>\n<image id="image2_3482_56764" width="196" height="196" preserveAspectRatio="none" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMQAAADECAYAAADApo5rAAAACXBIWXMAAAsSAAALEgHS3X78AAAgAElEQVR4nOy9264kR3YluM3c49wys5JJFoclAmoUGoUeoPTQD/U2L10/MI/6ifkJSZ8xvyB9hKR31SsfBoRAqKdLxWHxkszMc4lwNxtss722LbPwiHOSZJUGg/bkYfgtIjzc97K19sXMgvzoJZfPyPwx+fxn/t3fSXnP32wd/BuRf/iHevyvh0P/9JkE+W8iv6V9v/u/xH/Db34j8tm/tu1fi8jnf7DtX9V985fS/eb5Wb/95bcSPtWVT+v2V9/W45/ghE9Evn5d931M7/vmjX3Oz+v2R3TsuzfyE9xnkQ9etDv7NVb+WF8+pGNf2etHLyXLl/a7bN/Hr+y835f/5JNX/dNa3g3bn9j253X7V7+Q/Bkd//V/lvy737Xt3/yX9v5/0v/9s8hvf91/5j/Y61//tWT5u+PfiV1/8zePWFLYWg2PWN/55Uc+qJ8QDH8KIBgI9OULAsK/P5Pwl/RZBQSftm0FAQDw9dUJ4/95M/otg//wQzv29qcBA5YPntc7/M03G8cMFAUsA1AcJPd1+0sGh+Lj9z04/ruI/AWB45efSP4cG59vA0N+JwJs/Fhg/EeB4kc8rPcDwzkg6LIFhgIEXQgM7wOEjg1+KTJ/1bYZBB0LDAzALf9Hg/GrzX93cXwPX4nI63e2/4PT9+QHLd/VN718Jvnbjfd/sJfMWFGQnAIIGGRkjxEcy8eS5Yv2mcwaTwUGQKELA6MDhRASbHkSMH5CUPxAQOTjb/uBYPhTA4El0SkQjCzADMAAiIPxxw2jj7cb9/RlfXlrx352+lZ1y/e28fzG7u7r43PSDd15A0t61j+NtG/bDJAt9ngUHMQao5za/6IdOyWlngSMHwmKtvn+oPgBgBjA8EMk0mOs8GOBMLDBpMZPQGAmYBb46OenAeCtvhn/m1sJL+m63+4kjIb+9q69/8WL8/fpseXNm3bC8+v+ritwnh8GEAAo3x2zyRFAiD1G5mCfYz3BGj8GGO/LFu8vod4PFO8JiKeD4adkhd+IyGevfgAQruv66BMwEzAIRgkUCQDc8o/Gr4bPBv/uvp7bYeCFyLu7H9IAiTxTABAgsPrsqj0BAAZgGUHCAGEGYYkFcHSyasPnWO8eB8aRlPpW8g+SUT+JhHo6KN7jAf2JwXACCEKs8BQgjLJokw1IDjEImAUYAHFHYCDjZ8N/N7dznkt/3Hf0q3J7v33/b8jQ3/IB2wAQ+NizRfIIFAUJs0kBxWtaVzV3aOzB4FgVFH88zxosp54CjMf8i/8vgOKJgPiRYHgiK5yTRxc/AAjsG3xzKYF9gsggMIMHCJgBAIAt438+GP3zDSN/9kzk9uGniTTdXEp+927YdyW5AIPAAqCMIGGAMINsgQOyCj7Hhw89a7wvMB6TUe/LFn8qUDzhQf0JwfBUefS8bm85y6eAsMkGH7YwaByYgEEQzODV2DcB8FwkkuGHub+PAQC4afvu9xJu5IcttyJydUF3/tYexeUQ5FuIDZQl3m4DBAyC84/AQbJKw7wa4h2d8UeBccL57oBxRkb9R4HiEUC8Hxh+tER6gjziqNHoI4xAmAY2OPIJXjZAbIFgEwDPmsHfPZiR3xwb/N10DAA9xzeuy3+by53gf3XpwGB4uFYw3LZtnHN7a8cGRhkBon6JMsYIDsgqVVYvBnCANY7k1ACMzscwYJyTUWCLHyOhfipQnAHETw8GSKTf/re6fYoVHpNHiBq9LxBg/PAJWA6NIHj+vMkfgKUAYTB+Nnzdf33d1vF7ru1/HSDeYynGftdhxAFwd0dg0K9Z23rZf9uYBEYPmaWM8XZgDpZV6QRrPAkYFJV6kozaYotBQv05QHHiAf00YHhficSscE4ejT7C9BQgGBs8BQTQ/YUBGAA3jR1g/DByNfr7idYPdv1XdqN/IBj8EYAl7uv21U4yAHK10vqF5C2QACDMIAqQAg5mjg1wgDUeA8Zq0SkGxlkZNbLFe0ioPxUoNh7S08Dwk/gLo0QafAUusejkEUeNLiW8LxAiWnySQwABWCCaAYMBGABs/EENf8Pow9Tf2/1BwqU0gDx5uRd5UNbcDf7C2rYZLNnOA0gYIMwgidgD0gqyKpuMSotkBgZ8jXPAUOcbUakvvzyWUVwSArb41dufTkI96lc8AooBEH9aMLyPRDrHCh8POYQtIMBJBhDU6J0NZglxlEOTBIBA17cA4C3/VTN+GD4bvK/bso/1nG7fYasxagsD4AH3KfX7yjkDYACUApL7xiRbAMkEDjCH+xJXkllSpScCg3MZo4zaYounSqg/Fyjo0J8fDJsSiX0FY4WoPoOxAssj5BBOMYL6Cp0sMiAwG9zPlQHABA4GA0E4AQDsh/Gr0V+SoV9ciuyX3ugvCRxPXRQED8O5F7Pkve1UIDzQeQBJPgEQ3T+CQwHhsmqRzD7HCIw35lucklLIZTAwkuUw0sAWR77FIxLqzwGKWHfl/iE9Eq19Khh+O4LhNwMYnvdgUFZQMCgrKBiUFRQMygpRwXBpf8YKBQy7uq4g0PXbryVqq/9yV6XR7VK37xaJE6+vEh8uJT6bJDxc1O2o+/Q1SdR9uh139pokxov6uohMun+5lynOEg8iU0gSy9+u/i17mcp75vo3iUzlfck+y/7WvUyr2N/++Li+R9+Lzyn79jLhe/C9BzunXNPOrpGumX/Lg+3T33ozSZhsX7kXl/VeKPD1Xuk9u7P7pvcy2r0t21+Xz6z33p5FeSb6bN7UZ6WSVp9deYbf1meqz1afsT5rKIFiA7+qNvFrsyG1ld/8pq6rDf3WAjKevyKbKzZIhrnZteCsjVcMhKOq1fdxoN8nkkT+wjmJ1EWQiBXOySN9EOekUQGBOcgqi+5MHkEShYEJnAUmCWCAEOs6Wv6OFZQJLkSCMcIhSriw+6HHyrrtOBBr4Jxx2dP2brYnsq/7L2xb13cmobLu29djHVsYkyhrZGIQZ41VMjOHbo+sMcop9jNGKZWeIKMS+xYciTojoTb9iidGoJ7qaIe2+XSp9FOC4ZREOvIVBqd5y09Qg4ezfA4IkENh6iWRGvvDJOGKQXBZZVGRQFMDQBiMP0AC2f6DAeBg+y8YBIaA3QCMrUWBcMB+Q4juA1gUDHsARlcMKHkAib667FolQ2LpeQCHBq4u1woallQASD4BDEgpON+6f8u/2HS6ybc4J6H+5KAYpFPILJf+zGBAFOmk42xgQIZZwfDmolaZghXgJxRQEBCEHGUGQgcG26dGH6aeCUYQwPDLcTX6wfhh+LuLZuyB/IVllbDDxq7dyhEYzgjlYHuZJyJxM/oCmn0DCoNkb4zhAFFj189+MP/CwAHmyGsDiLIGg2IEhjMMASOP/gXlMHQdGW8O0W453EdRqD83KBwQf2YwbEaRPhFRvTlGkFBvBFaIgzwKxg7uLD8RCJBKxehPgMDlj64TAAIZv4NllaDGXoBh92aJtL62W78jUGwth0PbCTAUYKS2XsBzEMlTM3qARI2/Y5HUQANwMHMoSC6MIQCCpwDDQ7YKijMyCnVS5yTUySjUnxEUFRDvEVH6h18/DQzXZyJJo78Ax/kxicSssCWPAIQ7AsQ5IJTWXo3ZjHpkAoAgkFSS4RwYPwy/MAGBYiGWCGvPBnIKFId+MxM7KCAABgWNguUw7GdWEJJOAIykY+bAuRepSadzwGAfo+yzJF9mGXWQnA0UpRRkL/mchErn/IohAnX3bT32KCg+a/fuKZGn+L7hVdno8/yDwHB9GgwqkSJFkG4PNZrB0SNlBUSO7hEdMlBotOTG/nT7wSJIHHEJs8S9RWgQvdHXYJGdxaI+l7ZPz4+HGg0q79Hjh3pc90WLFI2v61LXfVvfj7984s+Or/RZ0T7r3HeVaznUbb3GcuwgU7DfUI7v629b8DuG377Hb+XImt3fQPf1md1bvee4v3eISBlj45np67RrkahokSh91vrMPzaZHK2BRLj9KAL1hxaBgo3B5mCDWNxGNyJPsO2jJStD5Hx08FyuYSu0+kPAwP7CZhRp10Kp7iu8EAl3FvIbWAEtP0ukLUYQa+2LLGJWGNadGbRVDxIWW0fr78d2lTWWJGE3V4aY9TU1xpBZfV6RlRhCzzm3LEs7OE0q18v3NEaIkhdsL3VbSELN1uIfeDtL1vWRKfKwXhzucf/AGKOEyifYIlsRIfsWpyTU6Fe4s/2eTPFYmcc5poinnskPAQNixj8GDCqRGAxoYUpO4dvWCqHVGv885r7BCCVen1R91RZ1odaSW060siu30geZLqbGBjiuLXoM1irTMW+957qemBnm9rn7JHOyv739rXYOzk/4zLlnjO47Q72WdWAjvWYwGzOO/sat375YXuTW8hjhBGNge/MZEFvoMxvZQp9t8QnftZzFR5ZsVZv4xEp0nsIUnKeQE3mK98lRHAHinBPNYJATDvSTwKDO8ykwgFZxA41+y/pMrDBX2mZ5dK0Ro101+vK3SjyYNGIgBJZKLImwPtX1iyTxwtaDgSEcqvGNwFBjTSR12GCLUa/aiBNADARhQ0rp/u7ctZ4XRjACLPPG9YR6reU8/J6p/ib8HtwDNBbd/bD7pX8Hk1J6L8s9tfuJRB/LqGf2bJDY42cHXw/Pl585g0JtQ23kKaBQmxtBIQMo5AQotqRTJ5meHFHaykA/Ek3qwGCRJM1kevnFVhRJQbEhkUorxHJokEf60BA1CiaNliTRnWf70+01q0Dq5REfL6+6L9XXInv0uG6ZHMIxMcdZ5VWRSLZPkr1Odu57LDmWECmar0LxU64SSmWQO9wqh/T4Ur4n51zljsotP5ab85zhWJuMgqRKQRIfx/lzlOTbFpUq0kv3DzIK8ulysmODhFLZVGTUtWTkLEpo1so+1gfJYwTqlHw6FX0ayzy2Ik9b0skB8eSI0k8BhjG/sOEvRAqnFiA8UMtDAICz10WOtIUjH+HA2xpGVc3PQNgAhxo7wFAMOzUQ+H4Dhxt/kjBPImvSFEgDRAEB7ceyngDHRKGOFdurVFsno9f1Za1AAUg6EKjxGjjUxygg4f2pbc+XZPB6fpC0H4BRjJ/2XQAk5F84CNi3sPqokrew8Ky+jn7FmK/QCNSfBBRnIk+dZDoXUfoPBcPUg6Fo1dQiH6M84logSCFIgWjaGTJiNT0NabGaHErSXgPr9blJlRB6SROrvCjrh1Bfiyya7JUkUQp1/9afHhvPL+dh267hYNKKJZleUxquNcrxbyq/O9TfXH73waVf2V4QoWIpNff3dpRRW88mbEkoikL5MzcbUJtQ20AESm3mMfl0YcOVjvKpdDcg+XQu8oQlyhmpdBRepfXfyE8LBnaet/wFdtqC+Qp4MFexSBrXwQvpYHUY/dgGEDw8GarxXESJcRlAwA7xBkjUQNloYcxZDZbAoK851H3Rjm/9FV9gkikTMJJ9VqbtIAYgBdg8XNNwzeNvifZbgzSfqNyLARgI4Y73chn8DX0GDpQdgWMIiR/5FYOz/ZOA4oTNyhknGwppCuFvY/dG8hv+itiBI0pcwv2TgeFewjK39WAgWEViumsx8LSWhxR3ygxBYlpKq17BIfUvpXI8LtkAoC1glmm217wUQyhAmKPEKdZ1FUA5SFxTW5+CxKDfk+vnpWrIU9ZoqLauuZ4X9bUaat2f6nfrtl5TDvW7Qr2+Kee6Pku77nKe/uX6F4MEvbYUyrGg1xAnA/8kYU31M4JUCVfOCe39ScrvjXMwuVdcHJXJElKVcVrHFpJWvsSSl9IkbXl+eZWQogQttV1yfdXvSLnJwtnkoP6pXEurhHUn4XKqvpT+XU9V6i331bdCWDrsa22Xftkl1oN19LgSubsXefVS5OG1hNsbkZt3Is8+Evl//ijh+YtSNlJyVelQCz3TfxKZ/k3C+lzkq2sJ//Ve5HdfS/j0I5Ff/lLkn/5Fwi9tQC4N2X72mYS/+j/aSB/68s//XO7hdhhqlEpCUolLuB8LrboD/QgY9PWFrSPRxlGkuCGRLpUZdsQKcyu7LlGQbC2bhkztlRlhZ5GjNLSckeWQSROWMGFqkSJtxTMkkLXsLJNmqS194MiStf4h1Pfxn+7Lob3f2SbUz+LPjmAkuwZ8jzGhs4Nef/kNw2/j3wwZVRqQgTH43uk9PSQqQ5+JLXb1mcRBQum5HIXSffqM9Vm/GBrBk0zxxpjikZAsl47LicjTqHwYA9M//vZvA+9lqXTKb9AL4i6filAt1HuJcowXIi/ua0z5AdGkR8AAebTel4xquCB/Ya11/wUIuyBxF0sLV1pAMENhBamtaRgYQbezveqD3hEjmIF0DKGte2zMUI6HaAALxWDKdrDtbK/a5hZmqC19YRI9r7BErtdVmCXXawZbSC7xo/I31Za+fHZhBmMEZQf7LG3ECivoOeVfbVxDNBYo0sSKN8urbYN1wAT62asxBPbn0BhjkcJQoqygQYGUjxljlp4tVtu+jHV7n+pnLBfGDlOtWLkIJWIQdtdUR3SOKQ4StNr23TORjxeRfC0Sv5Kgr//jQsKLg0h6LvLNhYT/dV/Hj/qvfyXy7/8u8u9fS/jfPhL54pciXxhTqPr5h4Elfts51Rv5BjnjN2DehYLMX4qgapXLMZBn+FAeB0NJ5HzftGbnL1iS7cpCquw4H+AfDKzgJRVz8x1W081J+pzByBBpPqG9TcOj5XaNby003gPWmMl/wL6A94dtx9rZws7llj/ZZ/I++Coh9NeU7L1gs9EXSnPvC6Uht5HIGYcvAd/LS0SILZD07BzutT4zfXb7tfcr4BvqM0cHpLNMYWPvInmHMg+1udLv/pdNqXz+RH9CNvyJo8TcKal01m+wXm6fboBBEy6cZzgFBg6rdhGKVeK1AeFgtMwSyRNL9rA8gZaaXCqtrdYULe2h7wwYoxPqTiw5sKPcYWfVDW5qEiqQrClONMAQmlyCMx2Gv8wgmAo7VUc7EACn8vt8e56OZVLncKcePGlw/kdg7MzZDhZg0Hun99Al54GiU2K1UvQsWEIhCnVtz5IjhR6BejAbOAeKjYx2NJtD7zvZcrJfVdt9qnQK+W9zfIpUuh66fp7yG2Yr1AuX9QfEHwkGJNpUmyKfADbAPnUcd6HmEQoQLqvMWMb9Fo1aJ8s35CpFpuos+r6A96hTq8cWscxDPS9YzkHgrNp2sgSe9hdNdlyVRZEckRJ0UuXGxvNoS6Y6m1iSbGqlueTosuQYJae1Ju5iNsGVW65BLO8Q9cpsX5wlrXbOFCTpa7bjet5qr3ps0XNWSRm5hlj3HyxHUfY/9Pv1VXMVD5azSPZe32c5ioRcBeUtkKu4niXlpXVCykufp0DtU7Yq2eVe8qkcBY/mwTVPW/kJJOyiyGmptFmj9JwK1DYiSqha7coxKM/wDn0YEIbbAANqZTzrPNDxYZRIU2MHxNTVsCOzwFRbvRJ7X/r6ojGM2oVYU5M1eXCssQ8t+kyyKkDmhOLMzmjRQ2jHcpZ56y9Uv6Y52NUhdsfdJdok0yw94zizECOwkz7+vq0wbVlf7F6RZCr30nynI5aYeod7fF7BJNT4fEemQGj2nfWC7PIUVOaBKtlT4ViRvn/2UX5iWICBeCoBh+Wc3yDmRHcRJRoEAD/g7Zh0s1KM0WfoWAFFeQMrhCHh5jU5+pCW+mAQPSoPdanUz0Vy5T3rhlFYJKaL/SOalI7lTh4kVArN8Ithky+h+yaAILgPsPmH43ruhAgTAQ2fESi65SCVHqScG4nDb+Pf2gFj7UEA+VTupcnOHcCwWMCAasCQwOOGDOzMEagtUKhNoEyHk3dvh9qnLkeByJNNgvMUf+JUwi78/d/n6SlSaSvfsOU3aESp6+W2o9EZSCNq2O35GTBcUQkGS6Qu6QZJhH255BAQZarx91zXERXCfkRtsF3Oyb2UwjqkEfa5xMoWsQlVLnl5B0sklG/YPpVP7LilYWysSH0XUw0nFbnk3bggj1KRXVUiQTapBJLy7S6B8C+YNGKJlGmfy6RQZE6KvG37sO77V0lTtOMqnZYmnYqkipLm5VhCacnHPdVBQUJBPr1dJF9NklwymWy6+UhSkU1c4vEgGWXjiXrdnSrveEw6HTnVXVSJpNJWvgFdP9mJxoIun/pXCvWQsif0H9UinQEDV2UCDKBrSKRi9JYs21E0KQ6RkzGLOzqdLofYCUZrmymiFO1YNsdY5ZGuRzuPWnM/TxmA/qZaQj4HsAEdK+cO7y/XYd+RjIUKK+E8aVnyct7Gb9mSgGOe5dR9c6fb7n8gCeVBjdyeE5icmWJvzxhMselow9e0Mo9iQ7d95Eks8oQORl/RSPCn8hO/IZrYkk4h/32ettjhVFQJAwOcykRvOtG72pcBPxRJty12iBZWBRhQJsBOcYkyJWIFA0EgdgBArCXvtqdawOfHkh2fZmMOY4JxfTIHOtu+LcfajgcRYopcM8JofQpLnOyJYueYEw2mCNbygxnKQEKhOdCjQ82ssJJzra35uL4utN9elRHwPl3PwzGwSobjrdtrYwutjk1L75TPts1MkaZtlniHdWOIm1eVHbac7FOFgBiw4KgI0AZA22KJ7rF0k5YYkkap5PkGm7Bw028YI0p3fW3SUYtADvQpMKDV6cAwNUYY2cETZ0Pr5qHH0ZGeZFoGpoCDy6+6XwZfAPs7FqDWPEvV7/Ar3A8488fnRWMOZp2OPdIxkwj9hnnjN+A3LuQHsR+RKSTL4Wnc6y2W8OeR6jOKw7PDs2SmOKzb/oT/QU3cbYRjB3/i69dt6jTPT2ywhJxxsGd5xJHGgGIySKXOb9jXTHR4K/J/X1j/WXKiS3peWqGeHis/9qIm3a4pmnQkk8hX4GKyUidk8fFYnbtokSR1mKM50v6w4qq5VssOS/0MyzAHB5VmmFOtJyrXG9s5Yq/uR2Rbl+ZHaBuejBkQms2x+g/ZaoWqyEdE4wQ72GuurXzxH0Jqrwip6nbxHYJk/ldafeMmXbdQcbLfkjQ0nOrvTZzN1lCx/n698iySImW7C72FmtYuSem1ZrVLN+SlZKM1PF32xbnWreubdX1XfYuoyFrmMgBByVYrU0gddVA0JKu2cDFJ0tL+UsT2Al9Xhxkqgxfcl+6o2pdCbm4kv9Iush+WebuDZre/fiHy0bfFRpUlis3CnygRUg3FVgfbh8ksDvY/S1CWKJLpnz6uSDnrSNuAYqNUOpVvwLCH3uvNKh6dFWD8F60uqQvZbYChdHu0ligmYgd9iFOVPklqKYS3Wrau+xYco33Zyh/YoRYDgti+XAvvyqsVGnhBnckqOM8FDNnWi8Hn6nBHaUBAAZ1soSLRukmmUAbHKPUgxfjtFB1hLkM+CQACOVSd82RjNKZkr1Lfk4qcSr1jrf+CSSOWSXMpsmj74GQXCSWylu8k6aQyKlWHOWnOYtrJmgaHW7fhaHOeIu2rnLL3F9lUnOrByb6ZzcHeyE+M0gkDoD3mYP/2K8mxVLLSMzjpSFs2WgapdCr5VgYE2HCiUbUa4FQd2jpHky6s486jYIi1DwMk0AyHem10nzYc6VBlSJfdZQkiVgTHoU/IFs4hBDrmMknoPZBHdhwOseck8vAHBx6Oee4/G+FbD8/ieDi+rhDasalJtkkoP+HnIoeylYsZ/9bqWM8Uzi45C5JOeEaLOdz6DHfW+Uqf7dgABhsbC+s3JJtGJ7vY1oZ0+u6EdBqz2KccbMVC+Md/zPNj7LCVjeYQK/eFDncNFJ6OtwF1eUgYsESRSrsTTjQxxb3lGBgMK2naYOzArX/aOF5YITZHW4hJEvaLOdqBwrDi8ihanjkYi3hhXApePu3h12RMkbKXYIuzxKlcdW7sAOkUjRmiOdc5GzOYbEK4NZEzXd9aWaJEfMEG2ZxjsVaeWn4hZgjEApkYIg6MMR6fsE1McTXLmtnR3nCy80FSYQkKx8LJXqk7KrLZr5UZriWvB8k85hNCsVtZ7MdYIj6FHYQTcJaN5hAr5m0rmegdZaKH0Co7TGgJ0O8ZLYU7zORAL+mYGRgMYAMYPf7yRuu21QJqK7mMrWUk1sD+gR2moRUOmRJruTEK2EDgHEttqU9mqoMxgDhTdQ46M1GgcKuz2Zlr3vptR7+dGHTr/nWsi3u+NobwZ8NMMTjacLw5HCusHKYTtjO3THY0X/Ul2WBZLBTrWexvmx0/xhIh/2Oez4VZmR22EnAdO4AV0EWQ/AalwAfrTXVN4dU4Rh/mPs/QOdBbYGAWsIeiD0diA8vIIGCFDJ8CZeNiDBHM8c5ew+Qddjzk2pztVt+EUCsYw8KrKfv+mqCT2tSH2oR3PKGhVI+1iiXkjDEKS1g4NpvfAB/C65bAHsYGoTrVYI0WbpXiZCd3oHNjjGAtvGwwQJxkLf4DrWe84twNpojKEPAzVgvZxtLSV0YwxsC6MsWdjjd7kHQZJd2O/oT1zQZbwI8YWQIJu6eyRBsuSxHxr8eOtBaWHxXu/VwkvimT4hdkvj0YUncSns8id4bi+2AjvFGN/rXqRLHOPRbBUE0Zy2DbtYVY1/cEQy038H3FKdbWbK2v6HtgLV/pT6D9IwR9HoIZvzS5Vc4j5xr9CQT9EHg7WnRGeudawZBbNluQl9B90QRRQPEfstLmead6c2pUyeRTtqK+jMw1oku6GWsUSbI7z/oVyXrmJbvWpOcFyLpYcyYFvLFcU40aVXm3SosyiVi/iVT3lqhTkXDRRkKojUO57liz9DrIQqGU0pdiqRGnOmpCGbStDJiQzZ/Q78+x+RjaiF4fCkBgO3UyG+1hN1UZeq235F7Ca4o66UBtWiqefi5l4NqvriQs3xYHu07UosGhLyQsv5L867e195yyBAYnaOzwr8eK1su6r6sj/TUNN8mO9M92IrcmlTjEyq9OecGcp11fBIZ6pJCsHCNRlIgiQ2z4Dga0/lIZYQYwqvFPGV0zbd1Crw6OQABBR50cGhCE2MJCrb0fIZSgQ1IuWsQJ4KitfajDJZZIFLOCuw6+Dzg5E5wAACAASURBVIUalVVqZClYZCnaawVCHT4GYAhu/MV/sKhTCaUSiJOl+KofkUt0aa2X1pKIhk2EPtGACSJoZVTCqZ4Xs8FnAEWY7JvqB2fEvuZQgK3PXA7JQmLJpgqoMzSlYBLKbCcxMMTG9c32MJ5rJO62zg+oDXV6U0bu0I5G+RMj3C+t5m6xW13qnH5Rw7B6hYqF+TF2QHnGTDmHLan0YqkzeN5WqQTJ5PkGvZkoy0DrFEqVeF3X2qZEg2eth+YvxMll1NTJIAaDbc/MEqtMU+yMfwI7GGNE3gY4xFhCqOeataZloEsLxzs7SKJ8hEmlYIYFiZSbC13WIJVORV1Dc6rLQEEwJpNQkEi+XjLZYIlgTnRtBBLYI5pE8usGeMWZYg3DNvCarffcalECNd4ZhVe23YFCt8EExhJrHQOq1rDvSvhUsH1lbAGWyORP7AAG5CcmCW+XMv2X5j7kxSw5zRbmvrX5NJ6JyJva805zEwvlJs6xRAHEU9hBv+ybn9uXmFTSL0cV68/qBW1LpX0DhfsNXLlKrOAsEa3grlZZxhlJNzCFsQWDgZ1qjWpJXddk22RFFKU7qBhgmFk8F2FswuAIue/4j2Rdzi0fUdgCwAguOwTRJzSY1nQHJCpGHyLWlrNaIEWWUu2XWnyHbMcyySUUbWRiCSTlTIGVlFvIjQUgWTPtLxGk6MlFu4zav8MydTp4gI855SBgUNjgacZmBdQKjFjHii3j0IIdkrGF2oP+WPvppZRgX++Rg4EZIvJrLRUvCbsb/Y4PaAR1dbAf6uc+hSVC/pe88yEo0fFnSMKdDbNSePXFVNcLOyxtnE8PsQ7OMyRTkZMo1lvqeKRebjz18qiTSq3178Fg7ODrGEWDmKL0hbb9ZV/oznPn2pNwNhqGVJAEa3H72iYwQmitrDnYAukkoIV83Ah1C+qWIJXEnO1sNUyUjMM6wq0p2Hod8r4m2ypjlG040wFyKepYfCSfoqy5fvtqCmjF/jVVxzlMbd2dbqynuu5ONq+rQz3Xc/ZY1/CsOeFeFcsOtq1fmKNdnOu5OtbqVL8ZwrGnHGwOw3KyDh2JdKCzuevrgHnfnsIOO5G3X5MjbXJpsuFH7tcCAh0Vo0mlxcJmOiPVvYFCU/ra2f1QDXC3k1DKMAIl30zzz8QKkEbsMzAYAtaxnyUT+RejbEoDMyTxjHW0FjaCGXIg2ZQrMHLvRyDfUMBhtRLFhONGhMn9h5pPsPkKKkugkC8H703nTnWooi1DLsGpDjW3gHwJokCdfxMHuWTs4cwAv2E1dpuM6lTmTHU4GgFTlPWp+g+rsYUCeQ1t3aVTKpPGaK855TfMfReLP7EXmS8K85WykGCO9fda2nGQpLZ1uVb5dLuWxleu5+Zg33xUnesfwhJFMhV2+AG+Q5kI3Yx8Mnl0JySXpE5PpeceSSWMuWpAiJcVFLvc5RpqEdna9DxqlBBaPQUGSCGKqZd12QAGRtbI5FeMPgWAIMQWsTEB9gcGSPElEG5tMsUcAwPMxqLGAh8io9JVWvg1hD45Z4yWrTYpo3bJeKZGmaL7M4GuJSTye6I51gwE+Peh+RLiTvcAirk6LiU0XAxCzLdJtj4VaVT98KlKqkUfwmUZ2l+ribNPR1Brylw6Fef5UFjKM9i3FnEScrBfaHmHOteH3pf45qE62Y/5EvMWO+ARnWIHDrPq2KkqkfST4v7YkUZUSZmihFjtfA2xKjguDQjsNyQCwkog2BsbCEKiZvi6rj5DBwaUFSRPNEUGCQPDEmGNFbIdr6HL6jcYQFIDQgu9Ugm4FQeGgJxDdOnkMilT+Xfa8CGgx92xrsYviC5BOhUQxAqCXJ3rWrxXDTF4UZ8Bw2RQgmxSAIAtvCPTAAQqWw/FR4jkLwAUNstRsmiRhajK2/fmXJdTc53hE8BQCbczf+KiOtXxYanh2EsUC2LsXZsH0AFBDvY6SdayDmYJDsNusQRsfWSJuWMHW458h4EdOMyqU3eWiUaIFUZHmqNKiDZBKhXGCHXw4dJftzrQgXu5ISIEnyFb395szJFrJauzBIzewRDI1zgHDEinQFWxoXeoyZcIaYslmnxymURRm+pQY3bw3BgDCxxm98INDGCJlB0o2WUSCveCsQPlHxgYcPZjCxmH0FjhNBDs5nj0CIFnsUShAQPR42DgSAJNZkxRr7lIphJ21QZvNiAZ0AswTDrNJlY56rTlYJ8Nw55gCc9LWPYaLDF37PDsvdihhFlLP9i1+BHVb7iQcD9ZxOnQfIYyR9ssYTEHXB+fpfJLIq4MPmZdPHeZDBKt/dqAkU0ymeRBaFUbIjjOm2DIvYzaAobnLY5kEwEhxE46BWGn2md3bYkvsEMiMKQNMGBxoyemQMYaeQcYWMar5Rr0eEASPHkkLLFM4igTWGELCEK+xBYosvkUGdFT5BNW/4BsYNXsck0o1ptb9i01MZR3QbI2klPspVNZnyV3szwZU9wbIHTGqMuNMOzrOwlbvoSGYT9hluDy8D+YD6F4+ALsoDVL97VmSV6LfCQi3w/sEOA7GDvcXNpYnlInOHxgdjAf47BQZ/OWjQ4slcqYrbt6LJIxsu/AfxgLFeOtigxVrQMYYkvObQIj58YUHRDoVX0fRKE83Er9IjL5Ehzjj2RczAzB/1dPyL0lZvgQiViCgcDrVj7C4FCZk0MPgB4Y5lBvAUGshUjIqA+gQGucxTpP1IfWrodfkUexbR1BZ1fnmIgrSScFtD5/ZLG10Syh2blEkjqWuJok36KCug6/r5PvZ7XNLV/iA4vUJa1x+lLCx3dtgsdf1bniZda1L8iZ1tHQPvlWREtop5aVPhlZOscOgogSz89g2xeWd9BA52qtfwl6IvdgHX30NVqCTeQYFHCEY+hYgrPRHRiMDZC97oAhxBSBgGB+RjQ3ODg4TCqNSS6rkB2Nr8xaShUbpi+IGuC1Ej4sV4HTGjOEBghLymVElqzvA6Rq3sw9EEDCBhDYid4ERa2gzTBw820ygzYQOCCh9D1F81Mtlj1nHTeqrKuc2htjQDItvP0IS5yKOGl5uEqm9XVhiZy0/7U51198UZRSq2XiUKsuH+PJfyjy/ZenI0vn2EHZY6m90+pk6kstn76YG0Os2cdW8jJr9hnQSi9DbT5XZJqB+zqPMzSCIdM+BoYgF5E7+VSBkDuWCMQc7lyzXBJqiWm7MzoOMHW1TNjXJIcQTJoBnmaLAKc6e/1g69WXc39toVltB4TUtrdB0SJOfo73SJL+whf4EsQW1umpAqNOCKNyuUwCo7ahvoQOEKdl4Qi/LrFMCVZBcYYlTkWcPvik5Cj8OmUjBDuzM30y1HqclS7sgMjSOXbwv9j6zXaOtN7bGq2qw9qLsYL04Oha6439SKKdOKcHgyXhHBiZEnTMEqH/3pxIMiHK1PpJbMolhDZjDafChwBT1A8YJJO0D8gIwaJ1zQMAjmTTAIIimUIHgCN2QIlJQJ7EfIREdAZQjN8LI/es+ca18X6AYG1VG2X2I52FaGeVDJNlrhUcajMptnDsXiTszrAER5y+v6/D5SN7rSN1pH0ZuuY4BGvOdWEIjKQhJ5zpN7cSXik7XIvcLRWBnHeYTrDDO2KHMo0VprA6lFGiqyNt1aNl5IylyqbZjKiEqtMAjKmxRleYR0yxxRIygEGwLi2LXYsbqNCPwdC+K0gDSukcZP2QGwioFWbJxI4rYaCv6uspAYctH9dr8k421ZY0WcueQ/MP8ug/UNY82JhPKNMoP7KgawAFt/ib7BAo+kVyKaw9EGKsMYMZ98YiTVqWUnwJONirZA3VayOitvPwBJbQCfsVFDeXkt+stRF6VrudhsR3eSMEqxjQEToKIDCSxo6caR5F4+VFfdO7GlWSeN/nHXRSjJEd9gM7LAM7YMxVyzlUEOzqDSoAMMPPmB2oGWQHhK4WSc6yRHXCDQzW+msnmQIMykk4q4AVQivvCM4UyDm0HEU4YopU+1e7Rq86wcvC8Xw6cNiCvg9C0ZpcY6AdEDq2qInA2gcieW4kORhsH/kXNQkImYQk4gCKDGlzih1q8k0d/8nosjFWpPfEWgirhSAul3YNsEvN4RQHW68FLLHUCuezLHG9Sr7d1yH+kb1WoKnNKkNECsHCuRZzrg93In/5yiayHORSdaZr3VJdeme6hFrLzJs6YvOlhGcXIkUycQEfknX75jsIsYMZcDlXP2qlXMMabe4E8icAgo4pQpM5iESBKZ7EEgQGdBTKgfyH0H2XZ8pzA5gPPhAYFBibyYwutspW1+i5ifAwAsEQkHMT8d44R5R0tAyw1zUhM43cWGivIddjAueay81zDQCUD6wJjOZIJBPbj7EDMucE0gnl6YmjTfWZlj4dlrqoVbu2PlcglXu1DiyBGWFLpOmi2tgFsUQBxUUZzylcPpS8RQ51QpajEGxxrh8Ek7tmtX2XTVu5B3QACiaXOmfaQq2lotW0G2qW1Nj3lHdAZGn0HTC69il/YR2jSdYaK2u4wabeb7BJEJ/GEiMY7DVygV/2qFLrHwHphJE4GAihZXyDRZlysIe5UfodAIqtJZGhsXQyAGDQMmeHmrwLgmFnqtGnTrZlYwtoKANvjG0smpx7UMTwNHawRqf3J6InDMso39YxqTDAau/D5275FSNLIBSLmWXLuE46CAUy2Ifqy95MklXSl5KOjRDsy52FXq0DURpyEoUhIJeOnGntAHRoculnfai1ySSqWQpUwIc8hAy+Q4ydU2cJR/MnjDUwQ1AWAkJuUom7fY79G6w2aZslzD/owDCAwyJLxafIYIrkJRpb3UmDSSuXJu5T2P89Uy2evS7yaQsPZvQeaSJwuE9RyvfQfTR1JRzByr6DVb/6PNoFGJBN5P0CBAwKlJlnYhNmh0oDXYJwMue/DnqQ6nZGFElD6WsDwmS+RIavKMc2wSwhxBKQ4coWCop0MAll8ulmrV0u2LkujrUNsZrQgYica5VNOibszHJpa9FRl19aByAFxYuXNQaqoFDg6A1+2NUBgL1mybLSwSSTTs0UHypL7B5hBwFDBJ9csPZTYFkVepnknXqG0ouRJTy0avLJwqmdbLJR+TYlUzZgBHKkM7Ees4QDxXqTBQKFIN5/IlVtDbSnKNARqBvSktjBnOzgfSGSgQE+TDUn77vQasnrJ7FcCpRMMMs8ihwRQ00u2VIBUAWFAWHODUPWl71M+q78bjbg4dd8hiUYCKWBvWgsgRondbovDrXSunOuX1fZlGygs5vNEEbFQBnY7DG5pJlpsTqRF1citw+1xBvO9MOVyNVa33uYiCEWS7XHNqF6iH0LsMUOiRxo9UOW1GRTGuqbYOAygCMPTrZHoQAUm6dNfYYRDA6a1qnIw634bMgmwSvYgpghIMSaXbII96keAAD/ItM+oT4RnrEOgfpUE1OgqM9YKZmvkMBGia4tt2vzL3NQtCRFcYidKRpzuRNt8mjy0hIKVBUCjJZHsI5KBSRzGWQgulQypjjFEiFYzgr+RCTbWmqN0yUqFq9ErveWC9lX5/r5c8lvlhIFzT/Tc26LL3xaNnkyzqJL3cBjg1y6rSPwFaf6+vrYmb7UoQqHfg+QTPrjNO9wQaBAeBUgkBbJqftyX9zHfZ5FhgEB7LizTe7CsR0wUBwoQ286BoP7J8Hf28o1qMeccNg1UAch+A8ECkSZvCZCenB0fkNqhX4e+URvunAcenVWwPCXNQssLt+MJRDzzal1nHZQoIOElZbn5GwlJscmSDobQRDs4SCwjld1kOR6n7L1RCzGn9CrL3bl6R04OJN+sLyESM8UKOO4LB/cO9fKDsVveSgjSKq872WTTuP7rMqmlxeSi+3vbVCzT2VIxiG6xHLpWuTdwUrcLTPNznTxH9a6rhZ5sJEUEBbjBN1aJzZp5RWzSQ6ckxo7ILyZMNtm8llAWz1R9lJwdNxhP6Lr4+B/mYAQWkXrFhjQrZTzEh5VCg72yEBg6YTWGPVM6EFnBnhc4Jfd4ASsgQ5C1E/CZVMHjOBs4k41gBBIDm2BwoGHPhYtWdLnFWpd1dSxRTBAJANHPRaFHexEwCCWADCy2UZcqlxK+N65JhbdJ9UGWTud1VC9qA+RD3Vc2h0518WpvpD8bBY5kk1UFq7T/a51ai6tWsozapfGZFxkuXRXPrCUfSAzfWNyybpS1VafmOGw2Ih20H6HngYxdtGsfXV5EvJA7BCcPbw1hmyC8WN0DBg6S6XRj5BBZnk0yRzts2Dg7whU4ZqabHIgUC85izi5XDK2gEY64UU4K1Q2SO47VHVDw890wEh2RcYO9Oox0lOgYFmUGy100aRA/oM1Ng6C3OqrYiam8EGWxQZdHlhiNSml7KBSPMducIbiE5RX60+jDcyBnWvIpsvap1pMNt1a5vqUbEo740augP2UfAhduLJVKBkHuXRv0aVRLl2uIgdzqIu2I2das4yWBNr0HwxIEUySEvkL0OvRndlmqGANStR1RpyPnfWxxAMOuCSSZMPn0HA07lzLGHbNPSsE6wsB1jB/oIz87X6EnOgPIZR7sE40AIKIddyHkTIwshtqTT6jdTd2gEVvMUXIxgix+dscQs0EiiOZZGxAIeAYkjEEjmXyJ7IDpgAjGkOUKoXoEWAkNFum3+xIJfnEzjVk0+E4J6FlGncP9b2jbCo2zhWwdv/njdqlo2QcMtQ3Ny26dCSXLkvOoyD28kJkNUY4mkScfIfVJl332T6TTXeFmqHUKkqJHXykPPRtDgQOT+aNxj/UJmXyW3Lo/ZCTYEAPumwZa3sFGDAuUyZwCJiAhqPhklcfEdwJwdt1FCa1eFD2EWELGEKTNzyCn1j1aQUGAeEUKISHupEGDrCRjyPb1y3F3BijgEBoyH3rXJWsgSs5CBstsIAg1/xCAYVNyxVSS9yleXSyIZuskHS+EHmwHnVqS1uyabWCv/RgEVIk6WhkDk/SWfi1YwheMBVWl4zbl/7SxVogly4punQxV6cacgmIDrkHBTMBWCIZS6zMEKE3/ql1mO/YASPvBXPSRtnkxXh5YIrgTl0xeBtGppNJoywLbSABDwB4si4Psim6qGmVpDQmk6ev+8UL/yzcGjKLn2DSCContyRdQCFqJgNHEdQACjjRlmDIoQEjB/IlKO3gLGHOb2UCA0Emv4FZosxVAXDk/nU1cJRnT+wAkLhvYb7+0kIDLpvKPBNDtEko2vROpdM8JOnG2ia2+0+s1Fts8OJXBgbIJbEEh9QYbslM36Mb36FRlvdosgstQFgtMlB7x5VX4b9hMsOu5cc0VmbksY5vVEfBGNiB+jhzCx/Q9VNyD4yugpUiVwitngIDjefagcmGafX35cYa3RhP5PgHoRBuAWNo23Z+vf6xoxLNWeGjgaCEZPBx/Fop207n1GuPdg5l42W4V3hPpr/AmXyTj2iUnNGtsYri1+HPuMvd8PzfZvSr2Ung16Xa1IJwPoX2YYPFJs1G1VZvYOj3g03f1olB4Ud8TKkH9x803KohKUbMc1D5Q014qP9wjYNXIiqZ9tU/kEPVdbV/xCphtzOgDD9+j475LSTYAoP0b7KbiqiO91tmEIRm+JmNRagPNAw70MM0MIXhPRzW3QIDPseiU260Xr4Baqf8CFhE6HqIILrvxP7cAN5KzMFSNnogRbn8/th9rr81bIPi6HcKTVpP98YjbyQ1+Z5yw0RjU9VzaIhPMKgCC/P0eSNIk+KzTazUI9GDMNFsyuxLbe1QfYsSbVJbVJuUOu5r8XW1FVfbZVvG8tp6gX7EDKGw0NCTaqmyh4a2f2GIevasfrAzBNWPXFzaIAOaKZTS0yIcQr3wkpNYS2KlvHLLgB+Zln6qKrzaeBABrYoVyoXQ5Im3OJkeFLdSOIdLRWJ0I4pkdJEMoDPSPIKBWuBNg2sOezNaaUDujH0AkgOEQUND3wBsmQ15C7AnrjGP4INBw/D7e1LvlckYrOO+BgIorgXPyacqEx9CyJ8hP1uf+hhKYem33U7IhhYDhdqY2toFmGExW0QF7KEyRAHDTa1yLX6E2Tbbutv+JyJzqW4dkFPyD9fNf9Ds9MNa/Ydr8h/2diHqiO/3Np6rluamCoyj6FKqerAwwdSiCcJlyUmCjsZho1a01iNbNEeac+0tJowkNmPxISfjsWyxEKuXdPvQlCyL7F9EkR4ZESfmcnOeW1EfWkYaBr8r7KN7neEOg4kDAk0WBAp9EJVG/RbLa7SwkMX5fcBjG+jYjpduz7kBD/cXodYaNUIUKPZ+g2Afkm7wF8xBxj6Tme5Me4NAgy2HOghzMXIPkljQ2Dszrc13CLGPNmnwZmcJuUP1P4uTvTcnex78iNJ5SAH1vPkRr5cip/zOIx8RoaGcMjT/wBRyxn9Q3Va0m6Lzor6KIRY6byE2WDeocUsuJQKC3uQpU8vIAIFDToYtAzuglWV/woeUofCp+QPBpRjew7p8AANfI1iBpFdgyWAlE5GibZ7k61pD8iH4PSS54KS7T8IShgE+XrefT40GAhEeQg7W6Sn3fgPfb76/7C/w/e6uReoklXyN/IxHqcy2AZspPSxDKwGyhrazPbfHR/wIXX5mpUlu6IaB+LH5Dx8iNmuL0gs0151psGt3Hrb9h92FgcE0Hl6d8lKrtsSN6ORTo/q6nkgy0Q2euA9CaA8J4dDYWprID5n/+VhLg/7l4e0RKXMgjGO5Zu8B2s5j34C2za8IXcn4mb9Mv6Prq80SjL4ziDNcd41hGCbH74P0rMf3omt46N4d3U8LQfM9g78wDQ2YS6bk97MHAezAjs+TVekmktzrYFux2twpP4Jt9o78CDjWL83mPzQMfMxO9XcXDQzQWHhjyT8Y2qDRyhdfGiLNf9ALK8DY1TyGTpCsfyW4G5vhT/UJdjfAqltbvHkwYPYjErXAaA35QTtAgremXYsXyeDzwC5di0qObmh628OqR2DIvZG61qa+193oHI/9ta6o7XP4OoUMawRF9gQhh7f7miwGBrNl8DFfo+QumBE6h5nuI/t1NrdeJ3HHxgjPOC99dGnLLsq7Z7KnXRkX1u0NfkSpOrqsDbX3kdjXYBBY4h2xxJbtF0CMDrUuL6Bp5yaZwAz2vcVP2Bs6D7HFhQtih3Br0XVrpcC1DkFTQ2ujfKIWBJrcHLj2sMebnBp9j8xhdUv9A0mDpCIAdi0kGaS3gGQ8DAbMb+3X/hQgnPo3nrcBDGcCod/H3zmMSt5dx/A7u4lewBIb92wrcpRby3/EBmhw+Bn6d4VeKnl0yewCdqI2M1dd3EL3aHgNCAdTKXuzu8vBVm/sf7Dlc451/OZNj5i36B03FyekLIoykRZuZalUSjwMpQUjbRydSmv2g8uPm0vmpAOAlyXzvkAGM0Rh0LKgT0IcjSs3A+8K8KjV9IcMw0m9Hg7c0ufBsOk6GAxueKmLLh2zRhgMfetPhnM3PitIP43XCIruOwFeZhOWVgNLuJHytdE9C3w99Gz8949Sj8+x18SNgQEAtjCRXFKb6fyI1YBhfipM0Eo5pJNOZLOwYbXpdzZttNo6275iIcqwsEMNH2J0qOG8wKFGPLjkHuw9O9AbFjDFVG8LZJONHl1uUK0tJnCw3gQVD62ZEDhIGnUt7Fb9FBtl17lnBOC4H/tYJoXjz8rDe8bW/n0kU8coQvNOjNeWT1wjX9tooFuf9ZR7R75D10mKjnfPamQFGH+dzQXRRTnlR8CM1KZ2ZleFIdbKFjI41sU2NxxrzkWwrWOJY4SJD96S3nqKQ61XyE4PO0P641gq4Sa4brR98CMSlUEkvqHDDaYO/GNfhCYHNv4dGQAV5nUPkI2N5oxjg7W+od41cwCsuBGjFT0nmzbOIXDJAGTB7wg4Rtfm17r1W/h+Dffh7D3b6v8x3MMjEAzPEHN2j88c9mAKQSCdytD5FJxhGyv+xBMd69Gmj2z+5+RUv6KTOMLkiY1BMuHcwxMcaqU2/XGFAcAShnoAI9o+tCoTzeCJDvtopZxusc3UPbb4eXjgQlJgCxjMDrnJFryGLYO2Ub4Bhu44gaYbLQ81dibjUCHrgwIASLJh7DS2UrBy3s7oh8I4/g2dHBxadL5vYbhn3b3k+xaakfM9SXy/yBfM9mydQcZnbzYCgBQlkUwePeJYw5dgG+V2PGxEmkbbn0vJxocir7+0SteN5Q7dRlPtSac945Sbln0t6DvUsZMEDjUKsWz82+IUJUV3nchdQI8JdGjrfpNja2UTUX0Un8mzOZax3ehO2w4t7dED7kejqA95CAlmMgK0xlTA50YKnyEff4eQcaITf8AYmBgZHNmh8gZ0EKqtqq9zzzU6lUu4qROF/YLsDILknicNO5aIPasE6e8jFch2jMgMFugeEmuVyt5VGmi6Z2z3uzz7qQZd9Fqm2rm62IW+d4csYKpdCpLlNZCgS9Qwa5JudyllkKVkGetkla+Xy3ZBn5ZwfGjDXB75EFyyUXbcUISJFkSXHH2GTvch6BgcaqBd4DcYMKgvMqZz7WVSskkL6UFiaPnALbC16BjSKJOxS7CWMlB5NrfmufWBdpmChx7NsJFlJgnDLf1JMNh5gUYBx/4jlNJnWkau+wz+bDbI3IydgdrGhIptv+8bfzMxQR7umd9De3+S1j8cDBbs8xJ9PiactG9v8im1SWPwjNFIrmYjwRjCI06DbeE1xN4WR9sUijSJbJRw0FLDrm8lcMgVS6lh4uVq2LZ0OUeYlo0Ik0APEhjqxA7HDnXiVtpGJHbGIC2K0e+wjZbenmxZj/Q+GHigBx6bMYgbdT/Zer1hpMdHHyLikfY6vwfDCAQ6vvUnrr4aMGB4HSgGKRUZrNvXLNLqofy3ep8M3Ncw3CtiymhxrU520rPx2ZHo2SS+vtjkXSLH2u1iqg0n20q7o32kaRkiTXuKNPky2OyRTUsNvRYM6OV9x2HXl3TS81rDhE3WYntCJPwHYeTO0ve0sDwEfAdEFvBjJxtG0RmDblyiliblmE+XMQAAIABJREFUdlO5FRL7PLOk1uo1SeKtaWKDIwZhw7aRqv0hQDY0kyJm6I2za21HMDAQhDqaOzlgm/0Ne+8mKHL/3d010bUOYVjSn2SoxAC4zkT3zT8z0z2ye56o4QB7ozHbDI7YzQYjpGxyVYYGMm1HmmSINInZIGOBbZRtt9g0h5rI5r/bCrtqfNazchy/va5hLHaoAyFyWXv6AR5W7Ce04wYi9JpsdIrJhktxJ5NaFRT4pN5RRoGbG13KrvMFLSP/SFr3lpanz3UJMgAutPcIDPWIHZp0ch+BweDDzZhh0fcIrsOZjIz8CBR0vvTgCHHjWmU4n3+fXSxfh9+Xo/vGo4dYy58JUH5+bsyAzhx4hpCOAQ0gfVEIrdA0EUBk6m1p7NXmtkf1dGKOtdosEOG2LNXGX7yQo6UDxFt0DCJt5TkI+zCO8/pyUZG6FXItF09g4GgTfihHGZxWQRIEDnKcBa2VRVAkybGEgVFyFAoGxwYQ2BhRq9Ej56jV7aQGNQXeggcygL6raAcCYQukhceDHUEBsHdls8wSub9W6aUaZvqp5+eeFfzzBqmU8rEPBZC4z9YCEvX5kSRDFM1vKxgkUG5CIBdafkoIFF7tMIReC0sQPYw2yvaLBTb+dkg1HDEElrEzhS+mybpOQeeWuTlHE2STLWmgQlAshfAk0hX6Q2zRESx+o9PQIpaHz8Yduw9yg8MXZAIft4jd+ZkkDy6UQdEMWmQAA5/D8qpz7vvbGYbPOB6coBuxwQCD7wfIiTG73xiHa8xtv98ru4dhGGQN9zrSdUpsgYA8sjM9L3rO3fNNnISbxAfWCpa1PrdwLqKcNvgPW8m5cekAsZW5e8pSEEphpflopS4j4kd6xF1x47abNmpPbt06I6Vf0z1sYgX8RToWyUC71jo2426YaHKpi+70Yc2OHUSks2BnjK2mJPTv4/dusQQ70GyEnUTj30DWy785Eoi9Zc8bjDqOPEjb3BAwE4BFGAQso2ADbgcjO/BiNtWZ1q6Par7PMtr8SYbolut+k/0IYaeaQWFXvPAPGtmB922YRxyuLhEA/GYOrSFoPMb+AfGPDQQYNnQ+6UjCDEQwjpaBZZMdhoEFTr13/D7/rj444PtOfchj1zrekO782H82PwLsRxSJolr+OSx5ZYsFtiyO5NI0NpBkM25LhAbY3KhURhsdbfjUchIQXdnGmQ84yuXt2gUzukfEb31xuXkbI2JHfg3bU9ry3M/MDGctj0KP3W6WFBvgOFo2TuDvDsP+xz5u61z+rM3PeORTGVx5w4/x+3bm+rrvZmbYmAAGk690z25c0jFgTp5LSzGvWX4wLYzlG+/z3WcXRuWjvgQtAP0pcCTZCH8NO8aWf3zAaTSm0LT2uWV8sEPr2uTZqWULBTJ+wubepxv5Y98hPWv6vkGKPQbOU/dtNOLRVzj63A0rS8PV4xQOxW/JpiMJRcvFGTt8IkH8OEAc00O/POIDnV22Wo5xeco5ZbGz0GrJCVs6K2WeYIRYxpv6CNMcAW7r4GhkT3pw4STU2rWd+c7zV7a9POmZvAdLPmXpQPCITT62/DhA/M/lfy7/P1t+HCD25w8vP+Kjec7mH3NOWTJ9Zu52dUvY3t2/4QnfmIZtjKRx4q35xHp3MAy/dfyOk5+cz1/z1m/ORytP+93yxOcmTzhnfdrXlWU30+c9YpOPLT8KEHwh3UXZMsXtH74Ox8eHa5Nj9suwgw0kbRgMPxi3xvz4cw3D+8KGWYzf1S2PAWd7/7bZPvYZ5wyd63GxryuIfeR3nLlvo9FjHu2tz02yjd44XD1OYZvB+ta+rWV/wg51uTv3Q/vr2l5urtoHn/uwI0Aetqlh/HFbLVy50Rs/OPFr7Q+Zx5PwRMrDoPWzT9zOHQ0Dcx880rLTl298NH33+xjh+BnjV+RTn/HIpzLT8G/rviudb72776b7ltPxtTIbyylGi3Vm1XH3Y+y34H+HR048sbBtH1/SU5YBERe7/gOBygNd4GKgmNnAiQcj9mNf3rgxw52JKCSQetcAEG4NE16PZ/L0G53JAKgvQuaTxosJ1GDKCakhGwZrg391sumsNKP3dXIp9+87B/YwcMj4feMN6X5b6j97bPkzngvda/7ejhHCscGPz9QuyG1hZduQ3mbclqjBhc2NzDDa6FMpogPE9097z9FSronBcLRSl44l1vZbuxuQ2v2MdkMjysWSn1IWmh+5Y4ZxG+cF+kt0LDXL8QGx8UV5MD4YKmQaTyIibUafbgZRkV6rZALK0ZKPpU2bU4uMrgGk/jZpLX8aAN39BgI8/2aWnclAgT/cO9yTjl3SAPYg/DW4EeUZRgIIgOPPOpI6WLflUlmW7qUuhx9MFkc2f5Ih3p46cF9fLurMMSc1my9LGXKwTJO61gLA9uWxl0iJQOANFhl5a3hsspB2zDVsHFvR1H9GTvQQASbpH7ZLijaXG764gQ9Dy7PWxndssUQ71FYIRGzcww09auWP2IGuA4gefYgEAIU213XXaEg739kTsxHaPRylEe51R6o2ISSD058fPa84sEcHDFsWazRXqTbEKJgnyfrHtwG2CNuErWK5tdeTtj0C4vlN/aBn1+2L9EOuLiTrn9TZh/zPl31FqF5gtgud6ozQufyGAfFr/eYMikir6cncU67PrUY3OMM8sz082waL+MMxowm48faPgYCHg/O4deMnmaUDhksgN6Lcf9gWSzAoRv2e+48oC89LzZ9xxA78IXYOAEtiJHdslXqW7SZ29Auge2X30M+za4NkAjACJm6xT0nUwOQwAMSuIdY56MqzF7MVqRO1HymKYkuwLWk2V9iBnNnRRq/WZr9YYOOweSxHDPHmTZtnTgwMZeVOJF9IZm2WFZF2ISNaAWZcPIMCP36tBpRLq5CafswEAqZWG023FSU3R9vncMaDE2oRu1aqrTaDM8DAKAgc/j2DwfA0TC6XZHDEYQAjKHJuBtcxCRkhLmYEw4bvwNfJcumIlXxOafp9drF8HY2dx/tGjImGhkDa7jOBKOVeHgEc+hfROOJGZtsmppio4YQtjTEbt7292aQtaquZgNCB4o3Z+rDED17QSa/p4FsRnfgam+yTOCUNoS7ouMMyXLUaeZS8AP0GCgBkhVSylsGfAPkPen4MDSBxMNhoBo3pZB00fWua2/RuDQj0MKsx8vQy2c/vGaKXOuxtuwzCtLqDP+FGldvAAPU7aFafwNfJYBh8B/7u7proWl1R5QZWv0dk0AAGrjPSffPPDHSP7J57626fF01yQQJjlqPRF1zrzP3l/EwAiLmpCLWZPEhrta2D2RdsTm2QI55so2y7xaZZM5HNKxYKQ3zwXLJ8J0fLu3fDnkGTKRou6ELmJLn8xSqbcm4PQQjtkE2gRb8BYIvcbpxLqNDfVNAxtjPdeKwnep+3vNjm4yw1WpSlXXtojjM70KNEG2Jlm6AYgbH1x0A4CQah/w8SRoZrDT14fO449pnwO8t9zcO9IlZOyT6jNTi+HuE3jI0ZXx/uOT3r8uxJKq2DrQAEUieHLLZVbMzszUyx2CJs8pTNHtm0Lt8ZBrYk0/NrycokzxCrvW3OCC8XgzOd08ASdGxSNrAfnumHOiPEZnzJZknz1sQ0putNaoV4Rn8YntRx2ZssoH8BrWBuD7hzZqnVJF8DLdqRhu6YgmQTyxUHhUmFDhhZjt6Ucw8ESMcjMHDrHTaYgVmQfoMMcrD7zUL3he8V30N7fxRqPOw7s30es3fMLaLXMUUc9ptdqE0ADAjGFPshST7aWE69LW4tt9K8arXtN2br46nxax3T8huRl89Of+i1OSVXqslWyeqs7B+qXiuSicBQ5NNsCIZUsgZAfxi3BOONYGbo6DeTPrYWyedFtlajM0h6SN7i9r5HbwCZWjraxwYCOcbSw79LyFhOgEI2gIHfQczRHQMQ+DMYDORAYwL1o3Mga7oGgGct5Ubj+PobUwy/Y/SboAYy/Y4MMNiz7WTuyBTUMHojuVabWUEQsdmV2pjamkumVG2x2ORDdajVVtVm1XbVhk/Zt9q+YuBrZohv6QRFEGRW3vAj2LHGhexwgYeKDE3MLeZLKK1xdAm+hFCUgSNNeqNWki6YghYNamxSrAdNdjC0hz6AoANH7qe0bUq6nefzQpMv0RmNvT9l1zn9cWawARgeOQstCsPsIeN3bYBZz0u5GRcf95l/6Dc46Id7ON63PN43vpd83/KGsWePGpUGMVAjFuzZgj2Onr3ZSLZjUBVFGi1kV4ealIPdccPMNsr+A2z5LSugwfaj/LFtpCEE1ZVv8Cff1y/kXMRhXy9yK/Sq24uhfTJKxM3Aj8+2L9v2pjPGxjtuD61dmeY100Me/h0BgfUwfz63qBs+BLeYOR+3npAwYTTmEYCDgW4xDcshgKEzzAE8zHBHv0V6v2sTGFv3jO5td7+e8owAlrD9zGEPAEaxlWzyyWxpMtuCjRVg7PscRAED+Q5su2PZRmfzf9zwIThzB5bwXMRaw1gc50XoVS8oT43CDksr3zDotUgT/AmiR3as3aeIxzc0Dg8wQzLVeY2zzWvWM8LweiQJ8vA9zBLjfuxj48rHnxWG92y18o/+jeeipT/FbsN96b4/DPvaZyX+rFDngnv83tG5eu/xHPj46PNtPdtMjaPaQqZjRxEmsymOMKnN7cwG1RY72zSbVdvdSsptVWbEDznsqo7GQbLGZ58tLTyF+C1LJg9r7UtPoC7SlDciTQXpSwOGUy1aAd43Pkw20A0QdOe0VrtOZM77w8AidtwfLIyDjbmfFL27Dmx7iwnjGAyxM+bBaDb/Bqmz9Vk2MWIKUv8YmEOYNddetz14zUfxxgO/ne9LpvvGx46ARb+JwZGHz+VrguyFXJo46sRAWMz3zI0VZpv8kSNMQjkxZwmyWc9BvK22rTauts62/6GHXQEKC70i0lQabAUGR5qMih7sIhBt2hkQ2LHOg2NdKM/AAemEVsL/ESuMDrQ+jIQbyjea2KEDQjWCxBQPA+5awr5lT/4QmzPpYMAxNzIChX9vaM6lv3eLGU7922iN2bBH4x7B0AE9D78h0O8AuOi3JiGAjBKU3lOuhRmF7nG0fQmGHHpHW0a2IDkGu4CdoNqBbYkdarU5+A7Z7O5hsFVEmLINdtxFmMzmgQGXTB/se7QIOR63FGnKFmkqCIQ3/wTHWm+XS5PYWnmnTr3Js7UuY8tCN9l8iq5lK9GMsaUKBp7QPeBi7MkeatpgCWIUgCY544RqBORPdKA4YoPQDPgsME79bQChu86BCfx7iA1xf+zchPvArTaDHPtT6O8ZrsfuacfMqUX6Np9RHJ6l3xd65mwH47Y8waH20OuDZajXaquIMN0ONs0L2/78lbTBoOIzyW8OEl4h0rTUAcauL4tjE9Q58SHzzbEOqSIYjnWYK62tBbD1NRSpJ5bcrJRYHOWpsspRazm0IBHzLltLtdbJD0HfEXo22WiXyeZcNjlRZrpJg6NqD6+MF1Q+v44el3zkvZq95jBlsknReR5oTWJhfmYZbnV9l280LRM93XB6CbWFrW8I/skMBGEgdWBo1wj558yVKA9jhplwXxMYUjoQ+X3wBgL3xhoXGDh/L/ZLaqBYZfAL6R+c7FDDrcV/sPKNYjtoEGa7nvKqimQpE6ZkNUKVSgqCdN+aerXZy6nasJ6DCJOuv66DH+dv9q2IsL6NIk0vbiSzs5GIJdix1i9mx3pPdSTZ5FPReXnwI0CRsb8hnQ8x6Nk1bLAGtVJxwxcYJFHyfWAJ+ny0ehk0L+08M7Lue3Pur8Va/3Y+tY503H0ew0Utz6JWMWfaT5pcZJCBaO2lsRi37s4KeAXjMUPY7zb5lcCWuB98r+g9eby/+N4o/f0e2WANPQMNkrcHB227/5DNlsi2ZLA9t0erYRod6kTs8L3Zuhu6YWD+6GV1JF7T2JfFsb6T8HInWcewyS8lXy3GElImwC5j4igilREWS5cbWxTGuJwrO+QDtWBzYwrBw8g9U5TsZG4tks0dh1ausAEYw0LwyaaTTRmz59sspaWlSz7Jd5sNnyZXsTFSk81ag0FOAowvmXNrcknsGsAQzkBCgX+whSXhMO5FMUs7jUf0azwyMAyxTsZVcekHro39G9LpDly0+Ikz0NHlYOJtAnsCgwDkOTUgmYRNmZiCPy8Sa3QAiU3iwvBjNCm6UqTKfInCDAsR7E7tXfKDOtuprisYktpgZYqcYlUwd7GO76qgSNpYvxZ5Nkt+fSfyXN9D4zqpQ50KFr6sO0451kVzvTOn5LLPWCsSkbGGH1Ecnlz9iBIF4HzE2BrqzTANiRbDW46ptYjupFWmSKxXY2itmlRHzx8SzlFqRYub8GiEIjS5vo+cUIw66wyRq9RobKHHcmuJnVWILSjalLzlbP6EG0/3rx3L/B6cS35EY6+Na3Qw0DUG+l3OCBVEyZR6u7Zs98paY10PxBjmJPvv0PfhOblcs+fBz5CfLZ417EFtAdsxUCiXbEhtqvgPuTrQ8B+Qoc6D/1CScUoR7zZKNgaHWrHgTrWmrdNe8ljC0WWsb6sm8zzHRoKuxIMtcaIXnlOjPKdB3IiBKnFDcKPWTACQzrlzAKBl5OgQHmpiw8/U6tnn5GYMmaSOG5kDYDQ4++MWmP0gcxiTkEGQ5Gnnw+BD9725Aw0BCgaYM4Ett/NDk0jl2jcBmwfAktzKw73pZJM0I/f3pCaJuDGBBI10b/HedZBMeOZbcsn34RVyyeyr5L8gncx/OErI3fYZal7Ss8Is+WvaN39pA4pNf6zjh2saO95IjgcJiqi7RYJqr2mRoEB7diE5aj3ThSHRmCGmKpmKH5HMoZ6qTAIN5sHBhvFA7kjuz40kTVQCTdkkksqh2I7ZzPiojkk5+sDciedHC/QKZUNzzEmCY51bvXawi5a2LxpLRPM7MA90kuzzTFQhVMsWIM0Ek67YoGO587hZK+HrrCQE1aieeeYef9mc5cGplrANhtx8onovU5NL3AAEMny8x+QTpGwiNktpAIc1HO5MAzCxgbbaAwASmyM/zS7B+sRgqE60skQyqSSQVLFK+LSrYLnaS04Xkt+tVTYV/2GpLPF6Ebm5qVlu+A9fvRBLk51Y0pCg0y+Fg3InQz5iNcpCXHhu6J7TsXOUhxvD0mkKPUu4w2ytS2aKt4cR80DjuT4g07jpqPWv3+2tZTZjCNQauvQYDCWHQaq01r93wkf5VR9qYzb7XuuZ6X+ZjYzzHRThYTnner+xjh/LJ8AQcntvIHAAFDkfsVZ3H1PyqFu5fpZOdo2+f82D403PdjIbYJboADM41jNxyQ4yHcGctc8/3FEgKJsNn0rI8TJ//Epy/FYkvqgzi36vUw59V4cELH7EIuFnxhS3t9UZiVq+sVo+4qJmGOFQBwq/FgNNragLDLFY55MJTmmSuJr8WMwxLk4xvYZkjnMuA0gfsYS1xCm21j/5XHH2B2faHGmfTMRmHxUEODPRSh6Ywl71s5QWQobwCW2GT8yPgP0GjMZI/WDM3cMBM4jFhM2RFvsMBHNboV7umYLyLymwrzNIJm5UTNIoR3PEqu2v9xUBDPe9AjUmLrES+Xah7V+5EcCzNmZYrTqBWWIsGUF+qsglqTZWwq1SgVLCrVOVQMV/sPW3DyJXU2WG75dq0zrbaLHxZ9V/0IhUupecXhVlUxfPR2iS4plItOHEkY94cSU5LC0fcTORbDLneks2CWjtMPxAqgrNc4smQT7F6BEcBUPIkCf1wQV7EAFdTvgY5FLckEvDtjhIagcETDm7CQrKAJTpZjMyBIgk2Qw6AAa+B6Nmh9jec2qIWdNXKNn2gRLQFwNVsV39Fb3afWm5B3kUDGsOZPzECB3bSA8MMdmUiS3T6qUr1XFfm4Mdze+JsUk1ACCbDYSVbCQPoKilGHleSC6ZT/EQrVJCLNy6l3y7b/mH67k07J5/EPYfLmv+4SO7/1F+Lwg0yVj5inyEUs1b61KabMCBTjY9NNkExweyyWPGcIQo+6j7F8taK1uwXOKoUx40qN7cSM5yCJ1MqU5nbi2aSL9urd8qTTrU9SgrWkREnrDOWrx71ffgnEzHqIUdZR45zNt/wzl4f86t9ZbQf0a2a+FrC7g2+m6+Dlybyb01DPdmvG8e5t6QVZkkYzQZG3HM/Ii88Xzx3NUGFqtR4qoGVLm6HZFcQnRpSy6VUOuFZLXZtyaXxPIPY4WriGHg9yLz70Xk01dFBkmXj/hO5HmlJK39KLLp3TsJsaagCyhOyKbq+Vs0QIBcY4VpV1t0bb11Uu4yyWQqOQUwR80jLBLD1Bxlm4cs5SZ/kuUXkjRplNAqx1CMe8uRDjRNUHlkGY2zzfhhLbIzBSQTssZFttkryawgMkwQT/NAMyNZUyTkYDeGoPGTjCVcMoXYd6wR6r45Jubgq0SODg1gUMDwtvSyyY+NPkS5tyyfKGcB5oD/JY0d/Jy0NCZZssln2047nW+9fq6+ronkkjSb2hkzTFbItyWX1MF9R3LpZpGs/kN6V+WSUP4hXUv+/Z3I/Mkre8xf1jm5SkdrRcAzkTcbsunOZFPpjXQq2jST7zAXb77SXaXIMGrEGDBiSXlkkTRoWCjZBhDAr7DJP5KIR3aKTLJJxUNp+ZsR+kTp5r36XNVZpCn5DVDYPhQBRkF5B3yQaPvbJJA+iTnP9plzN2WwSySawSf7dYTWJdZBYqDwrrNcqEfSKbdMeZM8qTnzxdhjF5hwhkzEdKEyzhqkfzXJ08sncQD0zjiBQ0E6R2e7GlGK5dm7dBptYw5+7UU2qYOcTYrvFsnzRdsHuYS2RMOtNxtySVMLWc9T/+HB6OGVyCfsQ3D4dbq0ufZuJL89SHgJ2aQzwL+soHhYa52TZq3vd1YLZf5E+QE1J+Fx4ykVtAd2rvG60jbAAZaIU3O8i0zSCbtDD4ICFgMAT6dLGn4lFBajDeYHJBEvfBpB4VlgM/jc0t0ZWXML+VbnOAryzgWQmK0H09Y6CxEINh0JkEduXBMwMkj95szXxvF6z8UErzmqrXgkGRdOgyGU5o6MW/o/9i2s1a+yLPXMUY6vjaHgO6zEDjgmZgNW4+VBFzjTKqlWllMAgSXj5qtq4BpG1ey0ovbywsBg2ek0V7mk4dZvD/bD/yiyWrj1Y7vvBRC//73I7sQUK0oxo2zSVv+a2OFylXxAYsR0HTvXQLQyxUE14FSNfkJxnRkuWMJllJVUyFSdaphHrA82JAJBaC3ximl4IZMyvYZMTGGWjOo8gCK03mjuXGM/wBHtNdQCtALYQFLJ5Zl4VCq0jxfQ5GaB3zgObMLAaBxpYkcaCUIDhxfqxZYPENL/8JsgkxwMlVETmEByzwChl09r52uEdl5MpeFC1UACYJC5DrlJpDxEsCbad1hrzoqZwW1qtn1aU3cvsouWpd5LvjaAvXvYkEsb5Rpf3lcMfPLKAKFUMV2LcPi1yCYDAsumwEm61fwI03Eqlw7s8JBkYqaw1vskSyCRYzPBBpu+NxVgiIEgFWCABdbcDLD4DyRHumQL4pyYVByFRQ4K6hoWqCW2vsERNUop22Sd5keYMQZbb9Emkkx4TcOMoOMCzvfwK6RUdn/BS+hFzLeA/0D5C89wx5Z7kEj+wggGc6hTy8m4VLJ77LJJBkcb4BhlVDlvrd87ickj8h2M5cqxQ+olU3G2Y3OmO2BYI6vbxYeoDXfxbTkZ93aMLh2qf/EBySVNPaxXkv+7MsTyTvL8rBr9KdmkhXy3X1Ox31z9h9tJwjNyrsvIfqvkPRBskmmy8up5lqSTbp9iCUiliRgjo/W1z/BWuGWJKwikMkUenOiOHVq5d9nLIHBnJJpWxzhIFVHdyBhSfZgKCgu8koPdTdUbyY+w1r2B4QRDSA1QuBMPIRds6JZMRXruUMM1Ggr6OCmJsKs715VJqkySDgwOAEuytZyD9NKJzu3klOUj3JmODBDpwVEiTACAHQM7qM+hTrjZUG1YTTJdSM1MszOtYNBC1BJUuG/FfDcfVdAgO/31hlz6i3fkQ0A2ofr1VJIu1hR4UIdFZdPdXkKXk0i1F93B/IiczrOEssEulrBcBcLagBEnWw8tMpUaEzgAoNlNz1J56cAOYtEb0i0slwLJJWKYygy27oEAVz1e7ZqZHQBImjHVi2AJJO0AV3CYE2/OlAOCyjjYt/HusjjGJdyI9Fjmm0syVg4pH4GB8hQazj3BEquzRKKoU6i5DZZDq0m4sr328ihNjSHiI+wAm7qYj51pzT1ca1+cy1qmka+qQ12Sca+trykn4wa5JPAhlCr+0mSTfClBo01fU5JOGWKsbXoxiahzrcmXu1XCDeTThWRNsGhdidZVId8w1yz0EUugHNtrUiaKFNW2JrZxg6s/QWXbq89A+lR2iK2nks/6b3m3IDR4FjrFoOcWgBGspdb1aMBomWiXbe7oj+wQj6cV3qojSIhspcYSkEqbQ+Ig3Bqpv3luRXvsWJMvsVJrvxqzAAyr5TEeZQmwQiS2gFTKG/5BDg0o+lrkzlxBEDfYITE7SGWG8szMZ7iSWlKkeQcNvxZnem61S0o/mnsAm2gy7kM5lkt/AUAoVciGbCpCDA/oIPn2TkLcSdbZ39/dk3OtoJgkBGKJMlhZKtGBUEKycykY7FjikCVcgB0WCasZEKIM7Es4M6Rjow/1Ycqj7CDoPGEjYLNkCkcG2I9t1KJggQwxABicf8ih8x0gCd2h5sBSkJ4iKOqK+kLBKH6IwmRmCWKtrquqtI5QXG7e1XVxLiJ7xGilpJ77FWd8CTjXa86D401O9S4SUKzMZ5ImldToFTB7SGyzI204J2KHWYw5iB1KOcfbwZmeizOt/XpEAdLNaU3FfCyXCkMsn0iev6yPRKnj00/72qa4E/lej5tsCrMIO9fJeiYpKJRgzrGE/uhILKEtgIIiLuVHJfgTW34F/+UT+06xA3oYjaCw5FfOwY3PO98uLYoMAAAgAElEQVSEpsdbaxwdO94XiHEYzlwTVFhLazTLx1S2sfoG9RqJPKjg1sHZDTnDjjUVHOYmo5qh5sHhHVgCAMjDepFU51iCSj44aRcNWLlJq1bGDtbQ7UMNyCDvMF9Kehh8B7Wb3bLBDvuamdbqav01nTM919qllwfKPVDtEsulggU8l+VjyZ9Qo+W1Td/UvtYFYeRc60kqme4eJGjBX34CS1jCTluBcBFqXmKaSusQLLzqbFAMem0GNVsfxdjsyNLUjRFGdkh0zggKGL/PbSA+op4DAnFw6SNiIZMfQZ3kOqAGqp+irwUhwO7rzuDXNDIaZUaG69pgCfcfCASZwHFUFsK+BPwIlIBsg6Fsx1MsQcdwXkp9WLX4GtOwb60gATPo6z5ZEs8AoH5m4nCrscPdWoes9Ez2IvmZvbIzPeYeULukEVa1fbFBkGf5XOSXv5L8xRcSir+gtU3XIp+oc/1aJLw4dq41yXFnLHG9FN0mp1gCyF6WCgqx7cMqQUszVGpMJpusElRvSmGJNZij3bRPi+CMLbFFoFZqqVsniR4UDAQhVujYQfrIEo0FFeicIOjLQXkPyf01ghFYOvEP2pJMACmkUmoSyn0GIfaS1MaEAisISseJFSK16nlgCJNEDRhnwJDNr+DPk9gzROdjIHqkhp/qe7UxPFiR34Rsdaw+BPwHBcBOzDdCV1JmB+s3PbLD9ZXk0k30jDP98e9rhlq+EPnlJ5I//9x8iM/hTOgdeCX5Y3Ouv7rqK2BHlkAI9jGWKMV+sehSWQ0YkzGEVjkuBwkIw/K6t7qhPLZOBgkn8mKr+44AgCnpLVCMQEA1tkWYpnzCfwi1nD1YGUdRXpK3ZVPHFq1mKTQ6apUho1eNHATRQz8r0MAU5FgnHlEvJwt3ogp2AEMghrBj6xYwOjBkB9aa4zEzrKl9T/c39fmJAo5D7QzkjvSuMgJkEhpPLtc4xQ63tcx7M9TKznSpbCVnGvf8c3udf/ULyZ9bG7WVkxB2rjdCsMoW51gir332WpGv0aZQx/mvsimYLxELbQZ7wjWDnavlp9AbWanjWOvGWtFTiwWt6S/HN0CxBQRmBthroOFXXCJhcIMkqOIoTraDYwBCSR5aviEbY5XhbqI785t5iEgFfljH0DGp1Tb1Uon6j8OP4AhQy0dWA6SW251dAGEExgCGFX5BMADYo3CAlXOnkjxt2Whbj+Rom0RKh9hAMMfmUJf1USadYIcSbrXztkKtAlt+UW0b7LC8a6BQLMyfqY1/LrL8qjnX653kj1+1zPU3lzbcmbGE1jdpxOiFPfk7K63NSNBJHVcTP6xIJ6pF2c2FKtWQw+VcbmIxaDV89TfWLKHkJlbvTFNl0WpsIK4hkBkuaIjijnI1ug1QbAEhkxyxhNvkI1y0ORGK0TMwqItr8AJEk0/ODC2RWAGAfhfRM+QdKDARIfeBEB7ev/WHEEk0tA1Vuo4Vrx5xSs2fyLnVHo3yaQQG+QXNSU4umSpLTCUf3RzrCpR1SY0dsF+7Aqe5RIsKU0TzH/arpH3wHETqstLsJ1xY0veU73CQ/P1c65bADusLyR+SM83soM60UsRnvzAS6FjiY8nzV2dCsFYWHq9F2JdAxEnzEiWetjZAeI2TlXYoU0Sjw7SUpxAiSScr5is1QHPpO1oBcTG5UReHW40qmjwq/obFarGvA8U5ICAjnLzXmf5FU1hq4DowWgODASPYEDZlG+P5WZWuricLE4chWx2IKcLAEWCGbmJGZM4pS+1TBaRhdMJW+ZG8L4kZYtfFlQwUDvVZYGQCRmqsUViiRg/L8TJVYC2zKd9xMcl6MKAUnyG0qNI0N6m0N6kUCQgaqp+ZGQ5UCm62lk75DkOZ91aolZ1pxcBnUEUdS5hzPYZgR5bYijiJDXmZwRbW6fuyRhXquMhmxOpklxYO0umhRpysj6lGnPQ/B4Zg3dhiMnAsNXxbFn0a09RAAaPPLYbfAQGx/qka1zTKJH9N3u+gDi7QRquLgnGdqiyKkErGCl4izo61oMI2bUsmnq2THWqA1WZW7MeepUGaaZA29E/I7DdwSXZs+70+iWRUK+mo8X93sjswGDiUDbQ6OU7GDGN5eDKZJK3TU9l+kDzvBqkUiyNd/jRXpdlsnfczHxorqK2txA6edxh8h5EdPNT6Rc8Ousy//s+SP/tXCSNLIAR7iiW2Ik7IXse51pOoH/GzqVBhZAe7/Oir0qoIpJO2DPr0lSUupjqk5GrAyLXCVdy3yNVKij6fzODzMSiUGabo0aUjIOQW43eH2p3p1ArpzMD0N9SOTNaXO1Yntskk9O1upd7oVio+QJo4OsM2HKiwj4v84FKnfqj9TP4EgIEROBBhCo0RMkd/PKcQWmUrKl5HYFgPRfgMp8BQ/Qc7h8o3fF19BmWGfSxdRqs0ypSQi33ijR3pnxkoSgcgZYHvJd9kyW/GvMOG78DsMIZawQ6Khel//83fTrtrCSXv8G8S0n8Sif9DQryQ8IevJPzifxF5pt1Hn4nc3kgduu+6diYqPZLu64NVf+L2oa7f7yXsrPXGa7iQsFrXEZURh1C3Q81FVJmTax8LWHDJT1QZVOVQsLBlqEApvd2ym59HZ0slKwX90fzLkCKmUfB821tiBgoZqs1z4Po+NInVokCBiuxsxLxYW8U2EBtKKbac49z8AJQ5pDqEvI8PRaN+lKyyj4hBRl3qkshPkFrqop7Zipol1B1x6BXbxBroirpa1ewmGIosy8VnWBkIsfavTsF8iYDupSaby3YspR5e7RzJP4gGCO2jj7KOZBXI+yRyI5LvtQG+K413LmUaE7GDOt33km+MHZ6r3P+qscMfntfn+2//apLpx7KEZq/zvdb0Vp2eWDYNDvZl1PHQmnSqISORe8tLJGv5lSlKF9LaypdHnAkgZsSFLeAv6F4wRUnnr5VAUm2Rs+mlkplmBih4STRBPJdC2H4beS4mGzYziY3LFKyXX26OdRqHyrQupgE5CHOwczquAE+5+Q/k7LeBBxqb+TRW3qOMxo6NGIiYHGruJw6fwvsqBA+vuqQS6ywEYMQ6caz6B2skpxlgcCYY1vV7p5pYa30kbHut060lyKQtqZRZKg1h1mRg4ax0mVX0kyqbvn4Pdvjd70TCv/yfuVR5XL+qRnbxBwnyqzKCWdAQ7JffSvj00xJxCl9fSZguJUxvKoPEnYR4W19vtXfbXOqbtC5J+0OHh1XiM3uNa90Xk8SDru8klvVU3hfLMDO5nFPW1ZaDbadFprI/SlxXmfQ14bi9lm3dv8o023GpjnDZj3WpnXpiSjKp4xzMac6lt4Vt59I5KZrUL+kNK+zDmLERPgKiTLFtu/8QzLGWTMwGDjkhl4iwnJm8t5xNL5abhHI24gI/acV/3pnfW30aDUMGScOFfyWaxA43AGP7ToIBksn2Twi/au+5WdZS6VrrltZcQ6yljinXRFzaGRjyQVLJR8XimKe7tfqi7+xVgbFajkJBcTPXIsHCDofGDuuD5I963yFrqBXssP9FbXzuvq2v8Tf/pa4oQoAYPJTCErXPtY/M8eFD7VyhY+rjAr634j/tZqp/RfOt/R9+BIatwQ/fWetQtu3GHCxj6aNN4C+11+4BEH3rg0hUPoB4eTzx6uUJQZYgspRXWvfPsXU/Hkqj49splzIF/84iAPhz9PxSOF/Xy377y7UwbuV9qRpheU+mayr7Uj3fjK8U1m1dk18//45Uqli738n36dy9WpOHYss9hs/wKBiCgQHPkZ6xPvPOBuzVx2hdLeQ6/i3N3tT2MJqGrn9gHYDUVoVG1HB2kMYObPuKBa9lUrq4frUdceK8xFfKEtSBaDMMa9LpapROSfLdriRRkrJGQCg2tVCsZ7FXK6bSiNFc5FjZnuzJiUmrhHTv5NP71jR3LFWCuU5K4C2mkFYvUsnGDKojY5v88H7fyVvSyHkHa00jokuJBkLw4SxD7ekXrdwbrBCSSafWoSJwLZP7Jsk9fhSXF4mUeB5oLt9IJuto9G/OR7hvIpS15mgTjbEUhvwEJeoQeq19qGHweOV93IApK8z2SqwQzVt6MJk3W3l3GbPYHOiLQSqh84+ywtt5O8z6DdcsjXmHjciS2j6WCGScZAlk8mz8Ju1ApH1RlY6UlsqAT4ZMHSawaLoryTrbY7ZxnPQPc0pcTC28dmEtArcOebGETSBdudoxpltmiuQdVJAI8jKCPLBFbiNHqIO4aGs5HmemQGtfWlJ6zXpOHliD2CBjPfXHvbXPsqTa0i/8p/vKdTGThP6zsvSswddq19RdazhzreUv0qudJxv3LSMDba9LIlYwxgAI/Bnxs7Nn7c926VUC/IYSiVzNVmyuh/+3uWvZleM4sqequvs+eO9QMi0YM/AAWhhjwFp44d1srJ/QT8xPyPoefYSp/WirxWAWBAawYHtEmebl5e1HVQ0iMiLzVHRWPy5JeYpodndVd9/uqjx5zomIzMzt6MLa1mUChbY5l0pPyEjfJqnk7DBpyzPsIPeL5wA+P8QSnr22Gqc/i7e43DfYr1ZAJ9OMv00RJ+22LDdhcqm9MGaQHys9wGh1lRIt0BNjJntnTlNYYbGwfZL463Rmj32m6Exnm6n22p6hhFlzWUatUlR65YX4kDb5hhEWJm7ycMzWTbT6idQTS0Y9h17VL1hCrnFTbftsIQvdR/VLTUzKgb6gz8fUOCvAfp+XftNi7b5IpfScPdcyJb9RZuH2uiYyt0DpaCZZ634y8RiXbw8tj5RrpgaaZRKDYbEoPsHNM+cbxqFko5devoEitbPkdhNtGWmZT+nVFvilMMlNxUgfyEpHdniuDPFNenIKS4gpkT8gyOsDS9xu0qwGmpsQBF9ZBOCAn3hwYLSl5n09aHaynCw7gYvY21gvNNGppGt3gR3YVzR9KUab9ISDPR+Lp8g9LOtzJB3vPf6Qoi+9MUcqhx5LD9/b5wkD7PX+lVtkEXncj+XvyX4M5Tv35hPid9O/VWML9zT2/nguWvZWbfp9fC53A3m2E8BwuUgGOl9Lue0wrGk1INkvbeGhr3hOv5mBHq2NSVuTNidtT2atf/kyjfTsjR0+MSN9KjsIFhaf/wbjc6A5xhIxDMvl4X/jDPZ90mGvH0rxn8zdJJGN1vzEvU1oZuZJGUOocmsfsR40ApVmAhx1QqqhW9pCjn0qlXSm0LCsxf8lzNh77ZKxBrGDT7xQmMG0qa2D7HkD4Qn1DJ5LUGsyWnJutKiTscSQ1rsbcl7aJivrLYEIYgab71WVemaKvbhr9haFJdJ305Bx67+xLWvFwQdhlfCws8fgv8tHH/JiJpzXYFYIlap9O/UTWpu0pWiTzeo9nAIGm9BOixDZRK9NJi3tNffkGxQEo3W0JpOuFyWo4xlpm0mjlHeHMOtBdvgGECy0joznzBIWgvKQlH7Qi/RGM9ijGIq/2uwFsn10g/FpiDo5Q7CfuLg1CpQfnkp4lSW8t/ATNJCX2CYTJaDo5QR3I/ocwjNtuusLS3Tce5GfaMIAFu8B/TaJxEgP3xZWGOl+rLDHxCNQz+zPmRHGZsoCk1tDxxE+071JWz5zjH+fmGsM3x3GZPreIZwD81MtnYdlq+p14h/8vHbEDjsyy3rcrlENDDG86mBQE70suSptI7cYJr7BGGIvqnST2qlKJdBY6bf7RtrbtLdxafPPqT9SQAgyXDopclg63dWl0xCkk9CV0JZGnUw6SbIkh2FNOukPWpXScDfZLJ2y0aqAYiSjLSdeboNdBA69UuMerDJzMpLLL75e1H4KktYb/lAaT2v33nhdpnijHMepCR4NUNygx5EMLex9lVuWUSSzMgiTpJua+LEYbbl5o88NP3z3bK5DQKElgCwqxyaj4QgcfA1yVClIXgfDgnMNJpGX1gb2TPSuSKUcZiWp5EtiSdvzdsg5h0NSichBCUExQOOCEm0IOP4N47f/hUZRUZFOPkNHlE4vb0Pxn0mn4TKNyx5+zNWmOQzrJluykZK4W3oR4KAGVx8vZG3ihU5qKx/QuNFW+dNbaLKj6psuBfEbquiz4Z55jINNtd8OlJEWQ6fVt0kqtTbrXXqc1jJoO5NJvs+WaPS1JhoXTiOZahtnmueDsj+Yxkkc2GwcqEqlPFqusfmayqqso09tOflHM/jBFjjkgUJt+m36WPS8TC9pi58MiKPqEnNrlaovk+XPO278DZlzjxpVwMAmOmeiU9XqsOcdQL7h1iYj2+1Lpd5yDqdKJRgaIjvI1n32xR/azwB8+gnw4j/RfPop8C/PgG9/QPPbz4C//ojm1zfAS8lMv0Fzu9W1qhsR5De3wF/+F83DAs3Pe+Dq2tb1akqtk0dSthKj2aRD0qDfUp1T+iY6pqGR8dYXqY44lUcbz0uR09LELKxwTz2ENZ6F6OeujIqbPLbxi5kSbU4MH3fdosy4MaaoVamSTRMLpDWT7TVU3lEK73wAz5gBVzLKbRmgQ9Wo5TbmzHOpT6KK1Twfq63c09rx3vMkA82v1Fq9kU9Z36XpZXwsw+ATh8nj3iYvs1oon47Sp6H0DLeyNK3P1w30uJvM/j06ezdjAUaffIACkcHwYPMwRTDkbLSD4TLVMU3AQDPwXa0xilSSeVxZKuV6JWGHVXqNssP3xR68IHb4ujaZIiPGTYewhCDMP7wWdYp+In/x62l+YiAtWIsmLO1ErYJ80t6GJJP3ThppWpZIh/dSW4qEDET5/phlEutmlRF9Oq7ygu71RlIjR3KaJI9EmrTN1DtMfEITJBGKJ8maf3ps7/3ZOwwm7VyaNSSR/Hc05fvXfgtLJj8HLUmkITzO55D822YorNCl85orDkbPNQSZ5GDI4dVwc+85xHzDdQFD9A2HokrKDqFNx7buWzOOY/v112i+8Bd9hwa/T7kJkU6/E0BU6pzwKSADibof0fz1Co1EoNpLNC+51ulNur+Tmqe3Vvtk9U7tg641keqfrN5Ja53sXmqcLltlDJEvjdc9XbQ2Rf4i7Ze6p53VQYmsWS41DyBLdKWaKNsn/bRFhFrLG7R9m56bvNHjfswjSAvLN7gsGtLnukhK0oifDyUfYVnzNHZjsPEQtKQWZsZDWNQrDyEdjKF6W91/MNnUxlU72zJyDnaMl77tfBkrrm8ac4Y7SSpjgAlDmDzSMdANdUjWKSHlgEoiddAGrc/XFE2qgSGyw5CGIw9DMNGD+YacDGapZL5BEnC9S6UZI/0tS6XADl98IYz1VboGX9u1OGiwa1GnjxMyxU+IhpMvOMlic34iRJ6u/slmVuAT4ibb9WVgipEy2soapmF1oivrubbGHKNEOxbTEV6D9WIeMeEchZvs3FtaDD4zSF+y2w3ty72s99YjGeIWu529r3czW8xt3VSTkXaDvPMenZlCvu84/S4cNcusYAGEIfw2vo+5hsgKwrh6Li3CtKUInzK0VxTsSgZ6jPVJdk0PgUHaRIwo3RwCw1PLRltb1AcvSCqdYKS97QsWtK8SZMROisOwLJ1qUScPxf7ZQrFeABhLO/YiT72FYyugGEL0yU/sEE7yQNLJadwl1EDDGm0+UQ0Hjov9+YNqjSI3mL5S5hHAoY2WGqVFfhQkUs3uQMllGqEIb68gj0KxYwKqNv58zL7XLgAhSzv77ryvrUSOWBZ5hzBIWUavvsF/a5GfZqD1HPcFBHL+vVBvqFwvjibx9WUwSFuYFO5dUkdKpRleuCdt7c8hxDqJKt1NS7sxY6QZA60jQ3ZElqjlJs7xExkUZISyNjRQXElKvwKKCVt4noLYIjNFi+HSeqjBLpQzh1zQzBaub2fAEIGhjWNGa3PMvrFemvfnBmogaRra15ZGPcYcRAQMgU0ramf+RmaKsXwnD69Gb9T2U+ar/f7OQ6kL6kiMFeScauO3vNBAUSW+JgNFlyIYYsWCg+HKp5yhNlIz0cd8Q44qscw5IpVcKe2Z6pp0kg/6NibsGBRWJh7zEw6Kj94RFJ68k4y11MnLxVjsSDbZbY8l2sIW+QKbfNoye7CZdClRAYKzxYRF+vQZu76AZfTGZ88Hb8TjlG10X7hNQEDgGMbymfod2gIA/w5RwvnrY9CgjXkXu/dzsh0KCIZFyS/4Od0QI+t9uBYLf7xN12y5TdeQWeFdwBDzDVzWfcg3zEol2gogvpqXTgy0OT/xPxb7RQUUL2PkaQYU0VNcUMJm2KQ6FwHGKtDxGCSUXLi10/jOknJ28VgXj5RxnUiH3X4N1EDSxBtZbpBBTjXkHbwx5p7d3z+aBHKJ47LG97fmH6i3b9viJZgBHGyZsYi9GCwTgO+mv82zz5yEkwhSjhw5K6CwQr5v92XtimqT9Pl2P8/gnuEYGDiixGDwMQ7S9k7xDbNS6avyvGs+/0OuYxL0fPYfwNffoeHcxItPgX9/Bnz/A5rvv9d1JHQM9q83lfzElSbimr88oPlkZ2Ox74H1Fs3HT4G3DyFHsQKajf39RpNyuO91HTnN7y06YLHRZJuOq5bcg+cqOiu7hM/7KvebPA+TJrF8DMGCqkZ39jzPbtHYmhhNmQwsr+7Z5knD8oqfI01Z47kH+Lhpi/p0NvSxhQ8wTdmCxmqBep8ztsmr9eRYfu/Jw8FyFK3lDmwIaGdLZsn+Ns3gPV0PwqNEKM+7bjrGQYd1pil/fBx2njystbUaOpup22ZZ1Ht47qNPExNLzqZHmUZTQLFL51h/Q4tSjtHZoB/JM+hExp2CZjwGBs1Er0smWkz0kyugT2ug44lJpeHmiG84IJWMExJD0L68zUknnOAnssn2yBOVdxxiitf2+NLY4Y2dvHvrZS5CBEp9RZBQi1UyfjwCTxhjQ9GQLkmQzBptYILBKl6955SanmUw1ENgAze8A8ka7dFRYv8su1wOteE2Us4gvn6H6WdnliDWcH8Q8ywTphvpdxIjuE8YzCe49ORzF1khSiT3Cx5JurBhoPd2LT3pdmmh1dengCGMb6iZ6OgbGAze2R+SSo6B7o9//AO++QZ7LPGdsQSMKZ7HLPYDIPmH/oZm63iDZqhksp88A67fpFk71q/mmWJjmWxnDcloC0PIyka7B103wiab1akym4ttmnJGJizYoaSllS12OtNGGjFnjKEj6hqdJiev6DkGxmjTwopaKds2hQWQFgrUG2z6+daz0zZKrevynKo6vb/2pl0Zi2C9ZmaFwaaM4RtsqVrPVO/61NPa3xxs/Ig2Nhhb9DZCrjE2aOz9YnRbH9NAi6o3thacM4Qzgj+WCRp0NozkF0YrvR8zK/Rp+khnBV3EJP0tnSHjbaoa0GNbN9C32vnojBkTAOwwLo+BwcOrbw6DgX3D9wSG5xUwRHaQPv/LL628SB5MWCJEnXyb8xN7JrsSjuUcxSxTUJ5iCAWB7imyr9gWvfrgEaiW2MIz2iuLkbfFS7gW3mMM081DzT8cCNOKHmfDnX2D9Mz9NOavJtsYZpIzoNtgTJM9ivfyZPQ5N6JMsgvfKXznvd+0SL/VDHvvg/7lnLj32rBpDucyswLlF7J/2E7Ns7LELoxpoDzDSWCYCa/Omeham/WtJpUEA4hRpggKVKRTzE+8T1BMkneX+6DgcN1FkFAehWLDzQk8v3jDUqRnBRh9CdV2JCH8PjekHTU4l1VdSW65tPIGyhJnErE6Yqrj6/kzlhSWzQDo7PFIgK2AhH9TR7KRgeAmOsukVofL955wmxhniyJ58CNem8m1202v7eSavw8wkIme8w2xoUe7IKUbuXzgq6+SYvnSd3wJSFmHPJwr7dA//jtA5nVCLO8QU2yziXdixH9E84tfAO0rNC9fpyltZK2vv9GUNl7mcXubzHnzNpV63KclvHKZR7tJj/PNnm+t1KPZpvXo9LGVe8icFf5c13nY6SAeLdPYtWnBRy2/oONNW0oydNhonxd41PllpV44l3IgFSjKZy3S4grp3A5UwDhXrjGzqUnv7Vib1k3rujTYaWHLk+kxL+NIkzGkEo5BZVwu48A4XaLAFzTUOazssRpnXlrZyyz4PT5zCteh2Ry+GQSr6bBPzz6PVzT+3jPQFFrVTnSdPMPZYDhiohHYwcHg7IDIEHzA3+Gh2FOZ4lenMoXNmTNw8s7KPK6fWaXjdmq2xxCSzbdNMNxbKvtoCxPwc2aMwXtM6yXjbWyKpIqM0QVJNSmPGKkURJhnV4zyQAa+dvPXyXu01/eykm5aVjKmnjv/Bv8OHUu7Mf2G2m+b/OZlGdCTh3takGJPHlluIbJClLbuF7J5tmsq1ziXY1CewaNJUp90DAy/egcwzLX5vcTcnJ/gXbXIk4Piu1NBEZJ3XKeiJ4giUHO+gqNQ914SsE0Rjiij5Pk10F/PAGPkxyanNpaEyplvee+yaO6BGp/IkzaAZDIoySTNsJs2+JEaJycAJ6/tinziv8nlF3vfZ0zftcPUE2zaUANGVcRD8AXyvqVVqmZ51JXzuzJQ+Pn36zHrF9g8h9qkmHQ7Fk2KM+5hJqLk2yHfcBAQ/IYICjbZOha7Agp4zdMxUFjqvQaKpzNm+/rjlMSR2xBZws2b92CWzPPn+aIbMORiS++3QLp1/JhZwxuUhB9db3OjNPaIYVsGyhBN7q587ooSafI4g4OSg97oh9204U/+JrEA/30HweS32G+s/XY5J511HEsKrWbTvKHzW2GFCzvm10mu2Zx5/hBgeB7AMJdvmNsmHmKCgegnUDzFF7RLPMXnv0+P3VP4tJi/kTTFAU+hiLQpMmWUE5eO6zHyFbIUsJeNvxEv8VBKyZt1GqR0LZMxrzHxFA/0WG9b8wVSWs6eYld8w5b2LVfA1l/Xp0mal2lAUaOTOS/LcZiH0IzizubIHdAsbVyiD4bKwxQn4xVps9kQdv4y8wnbnYaYR3uvrsrvHmJMC9GM2216vU4AJ4MXySPo8Y3OGpyes58gjyCLovt6HuwLRltx1h9zcaYkX68upsb5CbGCjIG+OWCevTZp+Lh0nB8SDBL7fFIAAAomSURBVDV2gC0GUt38DYciTxkUgSneUuLuEFNwmYdXyebScdKW/bYSmr20cg9iC6dqllE5OVRhjBVLJ54mhXrONUuqZQlPei+bS0QCc2SGWUx77I6Zopm5kfSa9PiL+t/w+7UX3IHCycsSNtXjxAbrym9fzTCCewKWRypd/57uJdHW2/XwKNIrumbXS/2sfE1nwfCnx4OBt0MRpTkw+ChKHAMFb1WTPQMK9xSzIVkqCNw9pKiCgiKUj/9STqZLKItSeP3La9Kpsq+P9L1JWdI5YCy9wW9LeHEI2trBoTkOlyq7IkN4tFgEyVBp2A6mqsklyTb3fm782duQLBqtfmtB9UceNs1haHu9SCT57bljOACEYTM9t3Kur3ioJ10HH9QzJ5E0kmRh1R0V6vmYhlo06RgYqib6hDbNGLCpi2yrv1TlU006IYZj5UsF+XQoJPv9EzT/KjXtNsO4hmWliOsySSf8HJD7n/0M+NtdCc3C5NSdjcK7NTn1xiSVPNYfJyPwXDqRbJLlLVhKbdLU+7JOvUqhjYds5f5ClkYlSWRSa2VSamXjxVdJ0mSJ5a/1U+ZrZehGq+r7a/OhBV2Fbblz2QSTR/5akUByLyVcy8Hu5fkGWC3yVPlwWbRKc6nqsuyrZZFF6wdgtQzSSKYJepsmhbhclXCqZq1tZsaBxre8tumHPLcg65bcWqc2J5HcL/yJCvX++cTQKo6B4QQTrVszeThOFhH/qUHhQ1HBuQoDBfsKOe7DUvEREL3FG/MUsvYFA0OWDBZvEYGRQWGeYt2huTQQbWyfAMTBoY/NV2hpSWz0tp9BglSFUhr9yhp9BQhx08bu+6z40Rs+QuNPa5WVhq/3tn8kUDAIBBQrnmHbQbNMYHiLfSBMfIIB4S5NOZrWZwheQYIjMjVRzi8c8wuflJGY/yAw+CQUx7dD4dhj8mkuo+2l45MI1Nt0og5JKNehqktJp07KiHdp/YBLo/y7ndbfZKq/p8IzkQarbZFTS5dOJrGWHqrdWlx+V6SVy5JhlSSJa3PX6Q8urVYl/LkmSRNvLovWO8qk23sfduVz15w9tu/Uh+/EcmhJvycXP5os0kFXFDW676fnqrdzOPEJu7Smm8ujmlfQuVY5vxAk0p5feEHt4qcAQwUXPhG73hdOnn/jKUyBmegTM4VGoG4s6hIiUDUJVWMLUCQKJKM0y03RKNyk51FKySLz1ySfmDWk8NAllb7H923RbJg9LkpEyVlEXx9YoZlhhK0xi26bIJloG32/UYQ/zxIIxhLr1POv7ZiuAPsgddnGAiaFfF9kg3tbOLMmjXAn89GX6JFkm10egWbSg7GChlMtWDInkRD9Ag39RKhNOhRNwmPAEJdZS9NoIS+wH184tx1jClCeYi+jzRGou32z7aPvPF/hUagaW3xEUQu/GJ7lfuW5C+vN1HA7g3gPuLYVaTb7rHGxKRnZidH0HljY4jL1xEtK9mmPvJ1meL33zoadbt77OxPE4wubfnIgM5x7/m1Joi2dFS7tu/nfogCC/5aLTWGDoSuBCD0XazPLdq6YEa7TMso5eiTnOpvmTVmsxCcB0NyCsYJLJM8v+Ci3vUjSATA8PxMMB7e9Np4wEHaf7icwk6NAhSn2ap9oahuQr8A5bPEazbOf60TLJW9R8ReRMdhjwPwH+wwYg4jXuLpKC0g6c+g9sYe/FsYWujrAJT22zVljsm97uNtZLcvZdwZYDdN9K+v91/T63KuvpszgTHBpRvmSGCCyAdKMi9kjREZgnyDTSbJp9iSblOacwwpzEgkz5Rg4AQyn+gYmhMpF+bCgwBkSyqNQoESeFwj+8OqAjDoADDff+uNJTj15klZRlcQeCBxZVlUAApJS+nhTzqcDxTcGzFlbaPD5svSkcFf2+AgAXA7BQCDTjepEwhcY37xJIHBZBDLLWRoJAF4laeRAwAnyCIeMc5RINb+AnwYMmBdHp4ECNU+B+Yx2FRTEFrXMNo6wheznEC1mgIGnBhACxq2xhbLGA5qbG+CevIYzh4DgmsCBABDYSsUOkswkKABgsDxm40avH7tMDR7U+BEAoJfuIjX8ezvmkSIHgVSh3t2lNZ6dDXSK3hOBAIsewUovcCYreLINc34BdTDUCvVO9QyYAQMOu4X3AwqcEpY9QUJNwrM/osGMjDoKDDPfCKwxAYfd35Os0ntjDwcIZkDij/33XNl/D48ExaX16m95nzV4bvzMAA4AZwGQHDoFBLCcAnAcCDV5BE6yVVghSiQZcVYzzzghkoT3BAYct8/vHxQ4R0Id8BaIMuoMYLy+R/NUdjwtIPFGr+AQkLwtzOGySo67tAIxCDAFiYBGj4XTMQHElQElbLnRU+v3Bu8bN3yExq/HLogdbD1ml0M1EIC9A7OBnCLLJeARQMAprPCOEgnvEQw4DgicDQq8q684hS0qMgoHgPEMyXx7xhsV1nCvgQgOYwx5XgMIvz4/N8CAEDEBzJnbfQTFvV2Ki+ArduV5BAAOgMBNMipsIFEjnUbIPMIsEGyyuiiPUKlF8u0ciYTH+AWcBwacBgh8WFDIFqJQCGyBE2TUIWDAzLcDA8QaHwN4ZRKqBg6WVfK8ChB7wjLLN2aUd91c9/N27Q3eWn0NAKjIoT0QkEQCsUGMGuEYEI7IIxyJIqEikfATgQGnAwLvDgo8ji1wgow6BgxwVCrIKR/CihlwsKwCAQSogwQGFASwxGOogMe3a1o1844PUKOPx2Ljl/s5AICY4OmTfUlUZYOnaRm1c4EQ5VHVK+B8iYQPAAacBwh8eFCgsAUOyKhTgIGKx0BkDcplIIADJKuAAIrAIHLvIEEASt7Ml8yfsfntiTTq1+VwbPgIjR9zAEBa8szlEEgSIbCBnjdjA4CAED3CCUDAEXkE/P8AA84HBM4CBQ6YbdnOYQvMySjZjgHDolI4xBpy8QkcIFkFZ48ZgCCAJO8jANze4p221wQIbvioNH6tMp0BAIgJMAeCChs8GggVeYRTWAFnjmXw7R3AgMcBAvugwE/HFjgHGCEqFeUUEi5yPoOZg824v58BAmcQ2T6iffeVc/o03d3ZsQicue3vtv/GG/er/Rfmnh+p8eu+YwBAkUOogAAzsgg1s4zHAQEfkBXwSDBUPuacLRQE7j2ZbodAgUNsgXkZhQCMWSmFfdaYAwczB4g9agCJEsu3zCaYguW9bNboWfvzxhIIAQD6ndkcnwoCYgN8SCBgvwjpcRIJjwID3g0QOBsUeARboCKjcCYw5O4FgYNLQhDAgYrnQGQPFIAggMQ3CfHqsbv3E2HyzWfCfvmycsx6/MgAMBZAzRPYFkHAA3Vk+/QXGP/bn5wBBFQSbL69Myvg/YIB7w4IvF9Q4PHAQEVKZWCgLqcQJBUcHPKgxh4oDAICCQJQZHtGx2qAecz2ETXwH/wB9fy+KzIAsM8C4gn+hMMgkI3ZQE/jOUCQ/ypTwhwCgmz/KDAAwP8BvOAGGdOlV08AAAAASUVORK5CYII="/>\n<image id="image3_3482_56764" width="216" height="216" preserveAspectRatio="none" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANgAAADYCAYAAACJIC3tAAAACXBIWXMAAAsSAAALEgHS3X78AAAgAElEQVR4nOy9264syXElaO4R+3JOHZZIFksQGwKIaWD0QD7qB/q9n/U9oj6jf0H9ESN9QL+N+KCHwQhoNIVh81LFc9k7M8N9YO62zJd7eOTOfaooDQYdVftkZkRkZmSEL1/Llpl7hCwShJcsw7JbUZe/+7uwW/e39Py//pNt/5u2Tp/+w6/27/vnnwb5a3r9f/267fOLn4v8y7/273nzO3v9M5Hf/D7IX9r6334bRH5a/q/PbfnmQ5Cvv67Pv30f5Ctb/+2bus+PReSPH23/H4msH9t7PzwF+bM/a8+xrPr8y3ZMC237dF+fv6Nj/vTc/4Z37/brri3Pp37fh/uDCzNZ3jxkef++X6/rsGDTm1Nbtz3S538rcqHXX9jzb75pz3W5vM0iv6/Pf/A2y+9s/Zef6j6/1efv6vPf/Ebkz75o7/3qyyy/1ie/rs91+e8i8vWPssi/2Dn8cf+bf/YXWf7pV+31f/xp2/7fROSvfr0/R//p51n+K6+wF3/zi7bv303O4d/+7cH5DtdfdgD7XHC9BCxdvj4Ali4zcP1CRP7lx98NWPcfgsgtwPqRyPuPQX5o22egUix9vG+ffQSoDjTvRJYJiBQsb/Hii37997F04PtQHz4egHJToBH4Chjx/ABwb09ZMVcPfwK2P+hPN7C9BDT5jcjpuwLtd1n+yZ6PIJMDoP3m58O6G4D2GSBrAPv3ANetrMXA0gXgcjD9VOT+JWD9ROTbD3WfuwlbAUgKrBmoPj0FZ6QjQC13/e90IH3RXuvylvZ5YlC9le9n+dg+5ZFAhdUOtA9z4G3n9noGOH39xsA0gk2BJgQ8ZrXz27ruSwXU/7wOtJOC69f1uQLNQabLBGifw2b/BiCrALsFXP8WkvCQtQZgCbHWS8CaycD3D3u2ugVU/txAxYCagQl4cRC9bQ/P5zlb8fo3b6a77JZPn9qah7t5A9D1jjt7AvB9fAF0ABxk5ftXgK1jtef6fGS1W4C2YzOpQHsNm/3JJeMeZCHnce2fEFyfy1ovycFZjDWTgbPYCsBCTDUDFQDFcRMDipmpgMmAtAwgUvCMoDkN+zzK9e3jcj8A6umF7QrGEYQbXn+soOuYbgAcx3Ngtx3YKGYbgSbEateAxjHaa2Xja9nsTwiyAWDfE7heIwlvZa3DOOttfT5KwRmwxtiK2Qox1WtAdQ1Qz2sQYAkgAXhO6/78xBeA9NolTZjs/lLXAYQAnxLgw4UYawK414JtG1htFquNQJtJx9PH4/js+2azTjJ+PyAjgH0uuL5DvPVa1rr/jsAa2UqOgEXmRAHSAUsxoKKBhsHEQHrD8s+QpvvuGOvy3YB2v+4ZzVnMkKUM9onfc8k70KURcBN2+/ihgQ1myRHQrrHaa4F2KBtfYLPPjcu+A8gMYK8E161mxj//j1AsQoCLWUtm4LqBtTjOuntvIHvzOmBBBo5shZhqBFWcsBQYagYoZqPT0oMIAHq0lecrgAo3slo+iLvKOTLAPRmCGIAFfFt7DdYbAccMx+yWDFw7sFHMBrDdIh93QDPX8TyJz17DZgoy+ZXs2Oy/2T9/9R/68/eS+fEKkIWc8/4ivhZcr4m3Rkn4XVgLcRZcwfXhM4BFbLUokFj+GWAAKmapKaAeaRsBaQRRAQ6hDtsfdme93z4ud+scWM/22G1/2gNRtzPwnO1s3Qi4kd0AtsdLLyO3K6x2E9DMDHHXcYjPPpvNXiEZX4rLbgTZHmD/3uCastYBsGaspSAbgTWTgYitmK1m8u8qqEZAPVbcABAMJF0HAJXthKaHF5jscxYFzzO/77kB7pnBR8C7M5DpPyPgbgLbELOB1RCrTeXjADSA6xYjBEA7ZLN/f5D1APuTguuKJHz4fV1/K2u9JAevMdZMBoKtZvJvBiowloKKGQqA6sC0NHZyED2IxAFQDLB73nBEa1gIRSdaPbJb0tfPbZuz3DaAbgTcU5OV6QrYRhnJrDbKx2uMdotsvJXNnq9Ixlvjsu8IsjjZTDviM78DuH5xBVzKWgyunxK4NNZScCmwNNa6exMKuFQOKriUqRRcBVAP9U+Zar0PBVD6fLm3v+cgpxQLuFQGlse7IOf3sTDUOccCLn1+sef6iNdxCbKmWJ7r3yb1b81t3YL1OcqbJZRH/VvtD68X7Duuk/a33dNffuGP9uXPmH4HvR6Py4/Z3ovftdLv9XWpnhM+R3zO9PnZnus5xvnGuS/X4pmuz1O9Zqs9x/Us19autV5zvfalDbypbULbhraReysguLc2BOWjbUvbmLY1V0tS26K2yV8MqaK/puoiLNrGO6vhb3pM/K1cXRqDHVVofA64jsyM7yIJX5SDZLfPpCDHV5FkIHJTzFY7+aeN5oCllKEeSPaBmfT1/YPIhZgpbMHpSdczU51pW8dgtFw2+63LPPY60ZM72kfXr2C0k0imbbr+RPIRTAeWU4absdu25l4uGrN1rGY5N8hHNUU4TptJR7iOl9PLsvG7SsZr5sd3ZTJjsQqwPxW4bo23ZpKwOIRmvV8zMcY4S3vEoxjrCFiRJCBcP5Z/M1ABSHGZAwpgYiApiO4BsK2XhOc4j8HG/WSQgkdgu0t5ut+JwOfAI9DtALc14M3AxjISrmSi+Owa0GYx2jaJz66ZILD0zy9IxtfGZd8TyJZfhtDLRKa8X/0mfO/gUtr+kiThiSTh8sNK++9OVQp8obIDrJUrW739IsgmQd5cgmwKphzk8VJZK19iaZAqQz58ivLwGCRpKdinKEElpAQ5xyj3UcvDguQYJcTKWOcQ5S4GSQo2lUC6T4hySXX9JURZUizvW4K9L0XZQl0Xc5S8hLJPlFDfp+DLdfudft9an5fPsP3iXZVTWL/qOgmSUizvjfY62vZMr6PUz9e/NdTXm+2jx7UqG2/2ecHeq3I3B7nY+/V9es7w/hTre7D/moKEVeyY2j56ms7qQ8cgoWR6gsha/pdTDrJeFIlSzr9e4fVOcRykhMC6/kOQcC9ydy/yRw0B7iv49fhPDyL3zyIfVR08iDw8i5zX2uH98UN9TNqp/rHGyn+4C/L2o8gfrDNd/qBto7rDf/4Tkf/nt0H+4qGaXttfaLZb5O5TkItVAnzzJsj//qlkAeT374P86Aci/0FE/s8fBPmKCqH/798E+c9fF9ITb+i/EvnFnxsAReQfCRv/+I9XwDUmkb8TuJS1vtzHW50k/HouCTnWYtb6OImzRq2vjyUmuFOgtvgAsYQCC7HV2zXUuErBqEChWAWP2jgXjovuW3yzcRymccxdH/88h0WSPc/bUve7q885dkoS5aTr1viqP31Pkj4OK99zV4+nfE+O5Rj0WDgeW+7ouHP/mzgO1N9eAdqfG91Xz5meO/2MtxaXlViNzrfHuR9rXFauxynsYuMxPtNrrde8awMUm/3Y2sxXFlZoW4ISGttaicu+nMRlP65+AbflW2MyV3r7mCxON3w2uH5+AC7Ob30xAZdJwq9+Is3IsEBXTBrOTIxPE2CVC2kXj82LBRfdgPXWgvTSqFYC3Ro6cyAuYWoyeEMcAFXMhDU6mBYDEgMIwMmXpX2PAi8s5Q/vH/+i/c22lc+z90c6Tv0OfB8D0I+J3r8MgFtkANvwN56bSOdxsQ6rdF5LVQkrbRvNkNIJ6rYBaJ+umCBoG9pWYIBoG0IBwg5kX9TXf2nFDFOQ/fx7BVmcg6t/7+3gOnAKEW8VcA1mBlxCPTkeb5mRAYfwJdb6wx8rqJ7vapw1uoIAjl7kOAAr4DU5aeiZH+312NCWSW+fiMHQiMFEABJApPuemLmUgaI+6/9T1uG/s/2N68f36WcVwNBxJPvuOACPj2OT4bcMv2l3DugcrcM5vBirMdCiAW28Lg60U72GfE2vsRk7jdpmCsg+mNNILqODzDp4fX4Isn/9TJDJFGRxvgO98/sCF8wMfc4WPEtCPUHvZ5LwBdZiyx3sBQkIYF1SPARWYbVL3xs7uHLt7R+W0IMKLEVsAEA9X2pD5n0W6UFUGjJYh+QbAyiu8aY/7H/eehlawGzM1IEPbGrHqMf6PAAOvwn7MNjKubhr5+JxZLJLk5EzoF3ScG1yf+3c2n+BzUbJ+N6YbJSMsPJL27O2+H2BzJfBvrcl5PzLeAiuXW3hdwSXUC3hUbwlZL+j2n203gtbIaA9BU8SwxksbqBdvJM5fu4ILqE8RjiBZq2HS5DLEor7d4nV+Ssg3GogX7oj2xZSKIF6eb0Fuburbl+0/XS77nenbpi5gIFcwvL+VWRL9ntt/TY4iWHrXx8teXASl2RuG17HXF7k2PbLts+yZDnrMaTs21PKxXU8n6v7mPTzz/X9ul+y78u2X96qY1k+Y8myblnymt3y10d1I9VxzFtzHnU9XEe199PgOGqyeiO3cUxSq9PI1fpu5z/nuZVPtYxHDuNLCemZu3ilCr8C7LPBdWRovAJcoySc2e9gLdQNLqcmB2G7a893ol4RFRfIYd0CLAUIrHQAC6BSsOh+AFUAgAA4A1EB1F0DB8CEfQAiBk8YgAXgCYHvaLnQ+iX2Fx4gEgIhwJcH0GUDkQIu0z66/5nAlAxAAGWy/XUbUgDpRqAhl8YVIrD29bGz9c8VbKhv1EfPm03sfOTMipX/XUB2o4V/ADKSiH9qcLFT+JMXwHUkCcFed3t3kCVHibPM0VJn62Ky5Y2Bq7iBT7GrXIDb9vgYurhq43iK5CFLvkSxFWKn8hgXl3AcA/l2MyVS7uOtuMTyp9vO9peHP17v+9NnJDJN/JjoOCFBc1y6Yx5/i0tKkokuI6WP18q5g7ykyhY91+jYcA2K4WTXSK8Vx2dx4jY+3/Vt4BbJ6HGZmR+jw3iTXLzRXfx6Ihe1P/vlL76OO8dQ/f4ZuMTyBJ8FLnMK33Ly+ABcetLuLWm8kSTUvJay12aSUE888ll5i57LwnplrZI/WmpuSyyvpY9ZL7y+Xi3fpLktTeiEWPNbiF2WKJuW9ixRzinWPFWIJU8V7fM0vtCGJluUfFfzY5cYS96Nty+W3wolsR1LhijYuqy/qeTnoue2unzX8DfLhZVj13hIGXHT31c/X9frucC6FMw5tdclx5dDOQa5KOiCLEvbrsUIemwhVzNiXfT3hJJn03WaO9R8mebOxH5Z4vW5btM8mrJ1MlYvp0HZXV8aVWsOTdm+KAPLnwXLqd2fa7b96anmzVSXanL/bjM18iDy/Czyg3eWL8stX6a1kj/6Yc2Rpfs6NGk7V0W0/UTkk+XK/vUpyBd/IXL3r/M8mebIdJnlycYc2a/+YciDjY6hjuea1RZ+LriuOYULgeuTuUaIt3ZGxtDTgbWKUUE1c1x3tw3uV8deuSaW0esmWw9LnB02791Xsw3Wxg7+3IwDsBHY4WyMJmkpQMrEQGLME4h5XvsX7DsF34v3S/1O/e4zM9bywrHTbwSzsauI1EFhezpHei67vODk3PM14RpPKIyRzXDNRwPkk7mMYDO28q85jNw2X8Nku9rF/9FeT5zF5Zd/88sGst8M0vC3fxUKUhlcWlv4jR3ga8El5BS+PTdwjWaG9iqPb/QiGXuJnWQJ8jEaU8RYerlyMfLAWlqetFTmirZOKymS7bvidaxxl7LSFhuTKQNpL4/XaanrtEGCqbSfzmAzYw89PlGwpMpwyhJZGdNYRJ8rCMJamUr3z1axoceoR1vYhpjN2enKHzOVsxUqQYyxojGYMneN+Srz6fq02XeWBHvdv1asVPYq1SgpOLMFY7vCevoX6vNg+yc3iWrbUe9qWWyQ72oDBNbh9bZnM32t4bJWg2hc+hRbJYiuv0PtpsbMn1oFiD6+22r1hzJaCdN0hESJ86TIzbcltnsdk/3wfxP589+I/LNVe+jy6/8gu2qPj187izVw3RJ37Qp3PxNcP7SxWiVhSPktjreYvbgHW0br/VOcsha0/y45jF50jVPG0vhC4w704J7gtf3Q2ydpFnuJgYyhwE667kKMVBikAGhxtpJATJOWAjB9zGNsdcBku+3DZxRmtGMUfJ+xGRjvAiaz9WA4j+lCrRABsyUY/sbuYD49Zydjw5HRtnWvGI6uEbOZXlu29Mc20LHYEJchX4Y29kObTQx1rZ/DZKXt32DfE5ZC/vu/X15tx+MLteTks8BFyePRKUS8pY88TgugKvb7EnYOIaSFFuJuFlS7M2juH1xBfbzQOt1P2bBIFKxDHGCv4RZqL72Se1hYVGMKizG0005wFpfqHmrvu5otX7YHchjJWVwHB9GXpfzfLZvgn2HXmJs9z46hcm7O5S1ln0t9LNu2uk9MdXvUdTlLMhcRbqJ+bs7tdTa3EPtkcxUVkottw7riKJLrqI9aPAzHUd3F5THVdVt1HkenUdf780vuxp2phQ8r/8hhVPse08fxaOmxUHjnLn5b13MV/o32fcj575c+7nrBMRwLd8Wy46MV/xpwcbwFcMVTGxwZDVSnS3MIS7JYKwDWFn8VUOl2Ap2CpgDKwKaNujwSsErgfY49sBhcBqyQ2uuS8yJQIXjX/RhQHdCKPG0gCoGsegx8VbIjkI3AGhfGWDSwFFAFsuhzbuDbRJbQA6sDXM7lc/IItlT3ywBTptcGGgZavEttHUBl25FnK9slOZhWewTAiqV/yaVqf7tkWd+kCjLb5qOpz7lY+QwyVOa/CmSDhf/VBxq4OQ51ucG+/08/z3FXqfHX0i+zadVGcP3UVnOeS4eaXAMXD4oczQyA65lKaiAXHFxLcOABXEVmPJMMMXAVA4PKkjbU8Elvq+vrtLaaP9jWkIBFDpl8ClQdodLrYnIqDPKqPIdki/U5pFscJOEo8+INJkc8kJf4LBwfjqMcA7YtvcwNJnsvJCeLl2nnIAuZOxaPQi5Gq0yZntMhvVG2WCe2cQnWc6txdLPDrnVxPakNoF08r32bGc0Pt/GpvGqUi8IWvg3eRFmVYMT9z3oIsH1/hJ1/+NXgIrKWfMkxFK7vsvKnLs9lbuERuN7R2C2cmGc6UTu3cGlFu85OgxtV1sdW0sS5LDhbcAUBmLNVoXfAsrjibA0RMQtApK8ZVGisMVvMA0Ah/qJ1vr89121LWvy9+ANwbvmL9D6x713sGBmE/P2+LcduXQSY6DdLmJ8D3eccls59ZKCdyYlcCGi4Rl4QTdcoDKPBUXoFkMW1dxk9HrO28zwBGaaNOAKZttWvBpBx25ZXOItDPBa7DTNTYwauv5wMA+gqNMiKh6FxE7ioHu00A9cldEYGJGFXC2esxUliGBicHEXdX5wBi4Z+dGxlIEJvz6+9AafW+2cCSWGt1EDgwBkYB4ABy93yV47jhc/0z0nEqugIpO8YuMOY/VZmNYwQOG97oHkHNiTtYYTw9WA2Q31j6TDp2pZq+8seZKdz33ZuApkZH2zh83AXGdr4kX3/gukR8v/xy/U2U+MKuMbC3Vme6yjm6sA1ljxx9fWnuIu3CmshtkIVN71OpyYRuzjLYi1c2BIfaTylDYfiK32usghxVR1c2Mdi5bUlUiW1usVAiVUZYq5klnZ5rt9ngZau55grhUGaHywxN91f4qaA0cgWQ1kcpus33h/xksVUgvIqNTzUzAhDrGX7ZcRjZVbNVOO53GIshdxiZkj5/JD8OcdnCa/vU429LDZbQnud7fUYl5V4jMyPscRKH7286iAm03jsWllVNwXBlZKqK6bHvNLtFzKZR8PG0fyWrMw/BbgigQvxVsoEOAXSOZZ8S7C8VmGtXF3B2h/XRr9GA439d+HqiVDfE+xzdDS0VivIYsAqkq06hAq+uDRQSmjg0vyQxPqor7WtJXsdYYKYcZHN8MDoYH2+kqmxjIBKqIyYL6n1k759oRpEbaxwGwuIQpZYEVZeb1sFo4NKjY0gDUy2/pKy76fgKa6fAq+ASDuQCrS4AGha3VFBpP+V86fvs//WMpF0HZ8dYyrn2l9vSbalvl5iKqS/bbF+35L8fFzsPcs5lbxYWX+uOTKxR53e4OFUqz8+PeuUBHVKuu3LLOu3tV71w1O9X8flR1nufh/k27ciXynI3gf58l11Fmubz/LbXwf5yy/bjFyKDQVZqb6XZnrQEvJ/+S93O/Z6N4m7po7hYMeXqvhhtidOIt8CrtMArjAw1pncQg2Ky3OThGAf6PyOpQC2rd8/oDxpYCwwTyJmA1sVRqPn5Xts/8JcYChbD2s+jO5hDu4aLsZgQNPIZtcWZi1FnTMVXMXQWEzMtodlHw1EYLiyj4HNGSsYmIjVwFTR9i9gGhitPAerheSOY8R6YrfiUipTDfsX+/4hubuohcLMaMXKZ4dxsPGvMRkq8ZnJfvDcqvBn9v3oLHJh8Pvf1efEYnEqDUdwjaaGSHNbOnB97MdyjRUat4Br5xTSOC2tfOd4C6BLZnDsgmgLtjk5yg4XYi7EWAjyEVNcEI+McRYZHd06NhXIcKgoorgot+1ChkN5nevfLQ4iO4l4X/dZ9Nn4Tj92acbKeMyjGSKjQWPxmD7Xc4SYFZ+HGI3LrfycU9Ie5tJoQnXXkq53icuoPbD5AYfxNCmvGmMyTkZ/SfeEWz/2UxB4IpqdxSumx2QMWS8Rd9LwFlPjJ/WeUhjPNSvc7SriXwCXnrQRXM5YlyoNH+ykR5aBOVjpq5UN5boOj6XgFBfvUmWkSo9SeBvqZweL3YodbfIxh1omJNLLxBwaY2WTks5S2Ab5hwllLN6qk+S0GCuaXNTfBjmYOeH8okbUr8i+KpgU5ARzVbLZ47LCRGLxF1gO7JGy5dGMmQZ5WMqmPFYz6afMvaTKbhoHq0QsebdQ2Ej3Kr8xtWMqrJnrHRJK2GsSshCgZLlT+VjKy6o8LFJR6vMoVTouF82jWb7wIrV4e021MPhALuqLTw9SSqc+PopcnhRkOtQlyBc6sY5mrjUuU2fxfwb58us6bKZiQOOxKhX/+++DfP2zLG/+5VAqrh3idvmuW+KuwY6/Bq4uiZxfCa7n3sbVeGtDvBWbFEwAlIFNe8giHTd7v9ULlnUC8MUOPBo7AYgMugywuHyMDjKAqgBPwRlrDBVDq9eroJT6XCzGKutN2pFE5NtKDcO8Gr7ocgFgMVkjDnbHHMi6UjmSy3cV8JgkLPFTkXi2vrzXwMZScAQWwJQMTGX/0IEQcZd+XCzSsAInl1mrUhkrJrau/J9rTFaugT4mA5TFZQ4szXU+vBJkZ5Hne5HtpIM3e5AhFlOQXZ6rff/uY/FC5Cu5LR7DUjD0u1ww9R9/muNN0nBWBjWaGl2u6yVwkRV/ImfwJXDBxsVzlhWQhJHlYG7WcqkdlFp7l8fkK6Rj6C1sr+VLVUaO9np5HxK3ucmvEPV7KV9kEnGNGBNGUs5kWMpr2U8/OxXzqc0PJQd/vL28376rvJ+kndh36nM9Bj4mHE+IrUYRvyXG2OXJIBmDyUOZnC/Y/pCQfg7p3Ce2/SmpH0kyjnIf19qfP8fOxu9yZRann0YL/9S3Ra5dxHgy5Mi6sWSGi7FmUV6WipXBXpSGX9R7NRUt+naIu9gxzJbrSjXvUPJd76qDMwPX6Ba+BC4wVAmfc5WLui3aGCqwkTOYPd7NWAuPS51TUMeTVdevfjcYq0rAKgndcdTjw/inEIx56u/Xin1BFbqYfAw2P2OhEWM0k4PJWC1OyqZ4POx4k45AzmFI/sbKYtJYTM9Wwo2CYVCYXKy8Zo8hS1iy2+shZ2PaKhl1u7NWqPQYVB6WD7NtYK0ij5Ns2ZiJZB+z2VnadmcwkoxKx2Usnj7qLzGG83VXmEzblBofUu4xoDMN2zmCTJRcJqfVSvrNbhf85lTvGa8sBmfxx88iv3sT5Mv3dXJTxYCWUym+fv3ti1KxAuxWachx148Rd20t7lpU034p8u6JEsmpgur+JHK28qflO4CL81sLZCDkofWAd8lir1DjMo2/9JJumFz0YmAyOajfKQbUCOdxAFYZVmIyD7GZmBzMcCCDgYocxwwrnwcjAmQFQAY0k4fFTRxuiqj7L8Ml6vJZtg3uIZzEZDWJKv9KXAYwUb5LG7PAqgfoMD+HbauCNZn8NVkZ0g5oBVyxyj8B2LA+Vyl5tvWphGRVCGcD1NkkI+Qh4jKdXDifar4sbfFmkJWpIwxYCrLtrg6NedTPLIZHBZja9+/UWfxS5Eud/PTPpMZjSiDPIj9+m+UyicdukIoh/9Pf3x+z12DJj/mucZKaqalhxgaq4scp1Ap4Xgmuexgbth7PI8VhBURlFG506z3RY2TGi8HHSenrNbb4KxvYSq5rix5v4XkyIBWbnwC3s+xtPVgLLNUlnEWs0YozUZrcv40XAMnZLNfXnGAWA1q0bQ6qwZrn9YjdYEYoIwk/hy1vdrqC55Kave7rCxBzAV0FWvbHCtpqzev73ZrHe6Wt0+cnSkpjfSkWTr2VX2x8s/DL9q1Z92tI3YQ6pfp+qMDXefHHSXSOktCw7g8S0Ott0vAg7lIkXwWXOoZ5cAxzX/5Uksg3gms5RXcNWQrGiTyMJgmz7VumhsYYpmBOobFWNrmYU92mhstqUrBIwq3PmfHzaFUcSDoHOIZwF+15kODgiak9r4nqJhGzMZmD64ViDriGyV5UpjLZlUg2It8l5taB0YyhwG7Z92vVHMEYqUhHPHeghSIPLywP64GU9cW/MekHNtOfusE5NMlYjh8y0TqGFNo6/aB7dRVPOtvw7Uzm0tsMj/L6LPKk03er4XHeO4uegH60efA1HqMk9NkwoSB7QSruKzmm0tBqtO4Qd8k87lpmpsYgCeOnBq4y2YmtR2XGNXAFBhfHXsRkd4L54Jsk1NcXVHtIHW1cS50MsCWQN1koBkBjqGz7Zko2Y99g0pNlYWbZmJu7iKqQWghiMVg0tzAFireCu4Z5QBd2SdIvwRplCjRMxcBVwGfAq/FUs+St1bfkMVnzkIsASzYpWH4bAS0YqGp8Fur6kuJQ9pECvMpmsOsrS+v+RRYaMPVQymuLxxQ80WRiMslYYsqYSrpFiQAAACAASURBVFt4CWQFSOooXlospsiIb3rAqbQbncXtSfbxmOTS9jUeO79vd3R5QSquU/YaXUOXhrLPd3VxlwaL7+qB6pyF5/eDHZ9toCMKd1fcjKAmkbfL68Dl8tCAw/FWTfDW1w5ES2A6a8U6sUuATEwtNisTw4Q5sMrQe2OtGG3SmtCDCizlJVMuFcWZrbYlSx2kKh2ju+tUJjXkwfxlqjgCi1W2aLFZBUVlCljz5WtzK30q5sUANsH7YgVN2U/fu+yBJuWGE9kMpAYy/d2XEExaVkAV6WqlWFZhVa9Erp0Dx2WJzI9Xg0xSGUV9se/M2rZWO1c6ncSlt+8f3uUSi6kr985Mj108RvkxxQJb94qV00/rbZl+07NYz2BHruFMGh7mu1KTh3dvRb7NA4Od6twaPpWyjkJ+qhUaYLGQ+5hrvQau0GQepGDGWC+Ln1LGkPgmD0tslomdIAdtzo2a64pzYNl7wFbRXiOp7CaH3aHEpaIZGhngMxaDqcF5sGDrsjSzY7ewguQ8GJ4Te1VjwuKzQEAaWEus+LeApDAx9qugmQEt2rZcytZMQpo8dJYL0n67mRwxNClY3EMlHesQKiPXnNgRyLRtsPERrIPSa/ykA0gf69nRTnS9pMJoymBqJCYzPb7U2OwUmkzU9ZMktDLZVCpOXEVisXXKXqNr+BppOMZdSz5wDBF7nSvQPuXYKjTs9kJsaMzABQABXAVoFJeV3FeqoCvPbeIYrz207YXpQp1uTYSAFq06JPdSMUM6SnBn0W1+ireqhCSH0VqZbyfrPkISeo54H3xlN0b2iCu2ekVmcxCLCWFSUQCgllAu8RVLQ8RlqYLIAiAzQUIHtCIFy2831jKmknL+k2XBjc28MqWCKxiALgY+MFjMLa0AkHEsNoJMY7KTgaxU5qSajP601UedOkINjzqZTtjZ9yX5rC7yQTx2TSoeuYoDi1UGe9HYGKa2nklDzXf94Y+TuAumRuoTyaX3HljLKzS22FvvR+Ai9vHRx5hJSdo6naMwSr8/QLksLWZDaRWcQwAS8yUysKI5jM5WbHoQqJADCwQouIrgn2AxWAbDwTl0NhOTXgSokBuxpUpybnYUyUZV9uQOAnAlHoNjmMgxDL2RUSQkpCIBrcad2TqKFo/Vz6/AKqTvbF5ZrPwEuz9ZSDUOSyJugiRJbn6U/S0WOwJZ2b4ZuKRWfCjYmc0Kc+l1YPt+600Pjsd++IPs+TGWigqyesuk+hat8rhqeIhKxJ+J/OXv58bGmFC+6hqmMI27tPc4Wdy1frLhJVTEyVXxGHpSG6/luWzCy2vgYgbT7evS9mf5CMaLxmbJZKNgzFd5bKwoxqYpNcA5sKRZ+B57WY1i5yzmVi4lLvsANkjCYI2nbRcqkcoTNxG5LaGSKXcQLdYCYwVKKgNwDq7QO4Y1K92kYd2ntm4ALSCvpTGPpyiSAcQAZ2wGhgoWYwmDaBGPy/QbtCo+Io68AWSFlXSSWCVcxGFbzc8VJ/Gh1i+ijrE4ixeR05tyhKK1M54ro3hM87fbRCqyqzgmoEV6FlPCev6ZrN29u2bGhkifUL4mDRVY57cizx97aYi46+ymhrHWc22MGbfAiXaXxtzqBgEqoZgrhANwWflNOdGBLfjoJogy0GbPx3gMQMup5c6yzXlYk8oELKuBzDbsxWMzMzwYVIi53FVERYc5hgBUbkjpfA1Ix50slFa5kXguegNeMHkVYHBIq030mkOAzeRgMBC5hIxmaBDQ8OhgYzlIwPK4y4qtg+0TpYEHzzcDbJGK2xxkaA9iktLdRshD2wdSUZVSiUEf6vk8BwPWJezjsYvI+jbXe3nfIBU1AS02ac63ZHiAxXRw5m9+H9bOllct+M2HIF9fNTakjEO5Jg3v3miwOpGGFned9bavuU5k6RPToHzJns8YC0x2DVzZwLMlm1gaIDLWKqc6WhyGuAwmhrQpqD2202q/FDrZyMASaY5iZZrYg8qqO1wqMpgo9+WWvZVK5dhDSSY2Pc8cxZKQrXnxsilKOANQJBHL9pDtNzTAiRkdAFqgXNcWG2gE7BWTS9rsMWpdF5KpVfQxLgtbrFbisWUOMhgfweJlZjQxRisVIPYcoNM297TZgFaKx1gqltHQ51DzYwdSUdH4ZyYVZ4bHNx9Qu+u2vbmIZMt/PZZDjcbGjdIw5n0ymeMumBrsGOL5RvmtIG19J/eugAtAgnOYbV4NdQOTzagrBlLh/dj8yG1m3Aoai8FmwCrHaxIwYB58suellUsxmAAkt+wHswPggjrMvoZXtHIpxGBszYchH9aVRQ3sZRakx2yNkRrQnMUK+9p2xGFsZgBUubmdm8WhiEl1+DT2Y+DNQMbGRzLmQlybyr2yG6MVoJGzCNNjjMc4CV2evyAVkYA+Mjy+/lorPIRt+/XYlv/Ql0O5sWHXducaDtKwZPYvsOTrXTVybnEXmxrFMdyMcezmDVyl4Zb8K8EVjKl4RtpMcVcCyKLFWtI+RyjOc7t+sO0dWLmBTaxOEaDiHFhwzdRcRCGJGBPFZGRuXFs6s8MSybkzN8TdwhBbdceYC6v7hIHVQgc0NzNg4cfGXpC8kIAlNktUSibVzreROQ6igHjyFSBD1QeS60UmhjoYsw5xkfJd5Ure1w4qIC4zoD1faoem0lDBlsqcLU0qlpuNkFSEAlAiu2p49Lb9er2Y98DY0NgLZv8zje9iafiocymQNDzbvOcedxnwFjI1oLHj2UC1Rr+rx53dsWMFC5B8fA24CpNFAxGx2JYJWCYXu7hMWrWHELDa9ALRJWAHxtysfAYUEtEOotiYCyw38NV8QYIZrW5nbkgbQEmAawaGuYsUa0Vis0xAw5DILt4CJ5mBUQavYl1s7JUhEUOLGWHPl9sAHIHMpLH+ltVk9h05s8VNvDTgRYvDop3vT6dq1dcBr/Voz4/BPrNKxXup8pClIsaPrdZ9lTZ/xfA4sO3XOgz6iL1uMDZ0GMD57mVpWCaqWeptcLYu1upNjZDb450NaoTJkcn90xOobiFirZfA5bGXjl2a5MM6sAX6zGyAMqCJGRyoZQTYsn2LB/OxVd2DzQKxVzYXMZCL6GAKwT2JWnkxB1kBUKcbe+YSq6RHfNUq5y0+C1YKFXMDF0qkjM1KeZOVPgFMQsDKVvxcmnVOnSTs8l+2X/GL0u0gq7P9Qs3Ur05kctylVKcqD61zg+mBhDTHY1pdkiw/dlUqourektCl8v6K4XHAYutxUvlVxobQ+C6R06e9NES+Sw2OZYi7YM/L4BgKquKXATAEnCUQyAZwBdzowGahDak3SAJYicwNv28X4jPEbQH2vAHN7pqSicW81IqTzJ5gtnNAObAQmhkQickCAwrMMF3I5JCeuZIBLXRyEWzFlfOhVc7LwGal+sNisGgFvmZkbOhIpIHKkmAei2YDnRsaAeVdLQbTU34EsjI1nMQOiN2jTRMOsOFxC9W2h+OMeOwcgrnLFUijVFzfZDltVSquIZcRILcaHrDtS51iY7FqcnTsdYstn3B/ZJGzAevxLHKZuIZFGj7VSwFpiEf94asxF+IuZ7HceqM6b2Ft8AyuxPb7BFybji5eBnYjiQjZ2G03Kx8xH8aUZcqXZZKRABbb9l4tH/agAqA4HpNBIo7DVqqvMIBsqOYoljzYI1AlPVdv5OzVGUJ5sGLVT2x5dw45BsNgUYzyhAuYmxMIgEQDTRokorNUmZKt3vFpCjJUdQxsp+vWUisJkLfSNJeHl2aAIB7zkrUDqQhX8V47qLXKxEcdY/eFdIbHNdv+K/NJjMXWz2evvGevYmxQQjkbO10s/vIbMeTKcChrKvHW2RhrpZwXsU0ZKJlbfNMV7RqjMMvJAC6wlA6D3/LSxV0Z8pFYK5CbmDkBnZvh4WxHtr0P1Myw5AdQ0Zwdbn4Yk0F4oeH27DQwWB5TYzTnhTZennA0klTMeQc2AA0mxgi0bKxVjzu134P1bsaQNV9L+xtbidVdJs9OdCATBpkdf5XdVvgb6rqAGKwUaZtktPNRHi80VwmS1KFWjsRBKmrBeZkzUj+PEtAwPJzFTnVg5mew2NrnvQ7YSxnrqi2fW/w1TSjnJg1RZwhpOMZdpZEuzdTI5iIKuYca7F5iL/fyMhgaA7iyzanhoMK22Mdf7CKyyQEW4+RzCHtgtZHMcQcqn3YgYmxUoPgqUEO10A61hyIjmoRXBcRazGwZSegmCzsmY7ABXBiWMgCtSx6jDtE6AbbpXSlmsZpLK+OymGrLGKqzB5kPFDX3sMhbA5D2h2th6OhuIhxF3clND9x6aojHwG7RkgmQiiin2iWgLQ7zMqqJbX8Li33zIaz7vNeEvdQ90VEop0NbvpZDvV2ri/hwUbuTEsrsGmJ2J71gKxkaBiid/UnjLkHcFapzeCGjYyYRw2BopAm4Mu0rkXNlizNmbRlWuUFmR4LbSUBLqM5nYKHKw5mqxWBCd4EUKpXC/ByZ2AyGYAXmHlyOpZCRlnLXEI01hJ65UDnvo5d5WgDIwgFoiWx5MVu+GTmp4T43GQzJ6GGtJ8K9iGUHMqT+E73OwtZ8e60suEYcYazrNnMbl9y5jOW/S2OvTaf1NrCVqntLQN+pLNT7HKxZPl5CcQ9Vmc1s+zeSr7IY5cWqRLzdOZQC1fh+b8uXeGtibLg9n3vXsOShznUgZIQszBhlvI+7MOFMkYIo/iU20kYeSe7B0JAJuHLJ9C6eB4PDGAjEYEa27YUYDfFXsgJfBlYyAwRgqvY8ycWByQAil4nkHIaXXER63mQjngxTshFzjTY9JpRhoKVAAyhD7x4GGnYTqEoeoCm72xi3sj3OQeYxmR1nA1n2qvvqfEbr87J3ZLN4LFkJjEq+C6UVUa+YidHOB4ZHJBZj21605vBs8dhtjuLa1RximcVeO/aycV6r2fIqDd3YuNj9lc3QUP27QLev/boAarf3B5sQNFLc1SWXvSaQkr/SpmXDlGJegxhbrMXgasnkfR5NpAdbZ+nTc1j2PtcHgAXWynEHKrHclwSuzxOPy8BekItFbR1MPJoSAS2358KFwMZcwcfB5B3YYNUncxRD7K1505ZeX9jireogOqjYYieJ6GAaQLbEWl0Cd9EloUtbu0FFrXWp7miODsIAebhVFtO5+L09kVQs8RaAdakdONbp959tWodoZVTKYjow80GyfDjX4SzrXWOxN9diMVq+fR/WruYQk4eK3XLoKnupHDSn5VTmNJQCrJXKoS42Cy9cwfLDtgY8loiJpCFySPq6VGpAjsH1owLezdinlD+lCqCav7IbpRuYRnBlApeuQ7wFiZjM2OD8Vx03ZrLQbgIhFJfB7OCyqUDyULy3b68BpEgxl48bg41/bcDlMEWAmEHAtYhe+mRjvoIxWwNbcFYLsXcMhcwNLtgNBDSvsWTpaxOquis4AdmGWA0gi7W0q9jzZUblOsI5ETPD9Ci/UWqSubAaRqKbda9S0V3FSwVX6dS9fhLrqkREGdXZigJKhYeuv6NEtLHYLBYrd1oXmrS01ij2I5oVXC4Pj5xDir0UQG8H9iq3S31qwCmB/NoYKw6Ght/Nn6RhCC2Z7JUaNDxFUFnBLuCEecBG2WKuEVwKPkwn4DHZyGKYw2OoUwxCoKKxZIHrEYUSytKMDq/U8KEeDVwljcES0SVgP+Ay59788DrEwUVEiVSiWExCvTtK8ILeWrkRTLMhDmN73kFnHUAy2cgWDQ8WwK5badR7kGV3EzMmILYkd1sXTCpm60hqPSk5jBm/uz6XQSrqISzl9/eGB9irAG8TB6KCpNyjG7a9BHk6V6BxLDZzFBU3ymA/fGz3yC4jYsbxXlxzeOQcIvZ6nLEX2fJ6Cc86f+FmPw7gWitjYbJQGB6QhjBBks0/H22CGrfDudIe8RDseXICI1nxkJFyA7hcMoLFQuzALWNOTNodWgAsZis2PDI98nAVtup96m1yFZnF+DkzGJ43AFLCGXc8wX29XB4OLAbGyhavCGk4VKJYxbxLQi//7SVinZ8R8Y9YLFivkP+O0MZuY9RatA8FeNj0KMNoNPEf6/TcVWlkTyiLPQ/GWsUECZUVkRtDGdU5tq6UbftzMdZyaduPlhPjWGx0FJXhuEaRLPvKYDtr3moO393XSWyeJ+ylenWMvZi9tHwKtjzYazNGO51jSyybs1ZujrceS8MVE9RYYndZWu7L7fRMDBcaUAJZ+p6MHsFlcVu5lLEZGs2NpLyYuYwlqcwDL3N0YInFZgL2Cg1UwSJ73JQC8jCYk5hnieWDxcFGjJXRs1NJVJtBlyx6r+CoqWAALdDkNRiCknGtMHyapCHmHSnWvrQ8H4OseH5RPFWA56UTiMa0NtYre0xZr0iJw7Zot1mKzmAzqVgAdTaJSFJQ29xduV9aBZjHYFKLJZYJiyEWSxNHUcG1/iDXSXL0Ti1WozhY9us8sWwLZua9p6oNdg51lqhD9tosBsvEXsZcfgd/AyfmuxCabXe1GXchwVImZ48dvdwYRmKTdpwkFiSepcVcM3AFA1fIg+SE7KS6xc7giM2y74AVyJ7n5Kw/Fy+hEpvRlwdgBmnPjxaU3woxFstEBxzP0put3hB3pkTdoQEtdTFXMzjAVFWnpe7IAsVXkIgMMn+bVc8blmzAJ0nF2J5Hk4eSSTrmth5AW23qAmczyHb9/WhnPktZdtu+GCAa5y1hymJeQjU4iqju2HRu+3Ot/MAyWPZrYa/3W5C7aWK5vksR21dt9Hmvwl7ag1x69rovHUtjr3y2u6GsGK5S7yxZJhy1Wwjhee2xDHwomrWZehMGUXLZUmo3CGgAMBBBPpIUvAVcIv1nZdy2aGff17jR5+wgYMFJ9KqN0ogwOQwDKvSACm1W3wMTsZUgkUWPUc4AkgMOYCNnsdJE6oBWB0xmByziIK9HdobbV5dcA1m26bzxvMrVxrgA1VKYN9ptbavkA3uVqfgMVJCKzGrlyHQexMVyZHq7q3Izv+Yglin2luwsdr/UO3J2LFbm4W8sxnkxru5YDViKlTJejCz7cwGOzYv4w3qLr7pMEsulYn6oOdThKOcL8l4i22KJZGOvEpJQ7LXFaJX09VavYLMlYoKYdr9kOHXFNYw09CPZNNsGuo1AgAR0GFjN5SMnnQeGY3B1MZi7iENuDJPgkNnhtn3HWNFrEZtshNQSKi2yUcwwMUgyCup9B8kYKHaR3FdzhJBdZpmAq1PK2/MgLQ9WE+SJGI1s+VDfIbFREE9e4zm4luuuQGeQYaIdym3hoBlYiLuQUBZn5uxFvzOpGIy1qsLJLU43w2OzeK3Mu4kpKXTdlp3FAChnMU08S5ZPl8pij+Yi7moUrdIeiWcxyx6YupTx04O58dunvTX/9L4+n9UcPphERN6rVG881gF3YK9nBRKoGnHW2Rw3uluJTwwKyWXJZp/qGnGOMwhZ6DRRzSjv8sBEMriFI7hKEjr0gPKSLC+rCm2Uc7BkM9zE0CbKCVzBIT3QvILeead2TCNzwQQZF7wL1Q9eDgU6y7lzFwEsTILDzFWTzJjNVwUBWfwZnUFqgHJThio3wh5kLlcJVNl/VfsNqKHE6OvSJkK2Tsqk4pbd+ACoSglVqGAr4Yc2/HLTPzM8NrsWSzM/CsiWPhZbUpanrYILebGHUIE1rVHUeT+HxPPE7Fh30wHwDL2duZGrRPTBlJd6E2kF1Jo57yVy3ux96K3NFWT2QsEv7gi5EYiSSUXciOFCM+7q5J+Yt9CLbkNjqCI1fQwWDUcJBLTQwMSy0HNioWcyTHbDgI3SAA23quW4ogMpOIAgA1uFferqEq2CPreCX67uOJKI1b4GEs19QyzG+bDcgIUbjjdA2bAVxGCDe1j/xS8YpCJb9Ll5M5CL1anEemMrYyAwlFjeqzCQlSw747FULNczlxsJKqhWAlW9WYeBz+Si4J7dWiAcw1UWU0dR5eKzgSxapcei94TW2YCNxVLI5Q5BSDxvBjhVfBOzo0rEm8wNJJYx3ktdRBtMWVhrqTmBi4HrckfO4UvsFW3MDsqhpMVYVVPXmKxIR7rjiTMKzWEoJBNRYQGGA0slZriB8dIILtrHTQ7+bLCWMOBbBTmqy8FsqOlrw1ha8RFnvsIL4BKSZN3ASzI6IM/AVmzPc0W9T+uWUTVvhbZgSJgcFIeZBdhb9IHsdIyWoQnjYi/+GlNRxwDZKLaNnwNA+jkrgcoNjdhXcbhtT0bHIYudLSartyaUp0sD2maWvY4X07YMsD3a7aJwK6SJ2dESzUptTR7WdVNz4xzk7WM1N84GoBKP5VZzWIt6W95L5aWyGoB2iT17SQpd9UapBKG4DIBakGeKDVCBpCH2ncZdYDBIyyFB7cNU8hxcPNNU2S+RTKTHzExG81HUe45JYzDkyAwqDiUfG9a7ibOlXc7sFU0tr5QpYUs5LzhxoVnzGbWJZJB4TaObJA3UTYLKBGT9OJrcbJuWNIaJEhrgqgHTmIqlIjqBlCye8iR/MzyC33LKcmepshNY7KSld6m+V1nsbqnz1CMvpm0SZogy1/1aJWOydlfMDjU5IpkdpyCJphVQs0MrO76KFpPpppk8bCOW615H5kZ536J3sDDWGmoOkfdSTRy2tq4Ai+8UufRGh7MSGRs8V2Eb20Xz0ANoQq4jxWxdbSH2Cy3PxWbJDFwAUGAwSugqSwJqgyjW4nkUJVOsxaDyomDxQr3r0JJuq0+bTeBoiWQGW3MHnZVoG+SmgyK3ezp38lAou7wDWQd7m+BUGguBcd2dNJAgzpIWZ4G9Am6ETo4iGx5I9DubpcZmiWKxLbbBmCVcgek2qVG8IAa7BLfsR7ND7zOmToYSEVd2fLwPkInroTzkyo0yOy+mA8jN3NAPO9vMUbDmEVuh5nCz4l49e1uyO/UfxF45IS9mAIGs2prDiPVeXBvqvIV1BGOTbXAUd3Y+YiaK3dg08TKEHbha3OVjyRzAA4PhJnzIe0kw6YnxUDQ+TBDPtFKp1nZftulbU24NHOBwsPk0bEguBwzEbwLO56hvIK2N3YBGQEI8tgNZyKYYzK9xk6I+F5KFABYkJM5edYxzMR1yiH7TihY25NYmMMyGWCybRCwsFq1M2FhMlU8xQGLdZwu1XAo1ihiUeTbJqGaHgvqhTE5azQ6NvXRagXJH7UllxyATq0Q8lIdv68gxyEM1OEpR7czcEJ/DsRzAgvpDkoUxtznbS03YVgEnaR97MXvhRnrIyrux4cPyqXTJALN4TqqPu1wmOluF/nVukq8DV5iAi5jMRzf73B0toSzSZvp1LgjEYNLm5fCKegNWzswJewarbGD7m83uMZgDgSUgps2ODVjoGkIyljd4OShsvQMnGfN3rkerFXTzMdPr3n5HPOY2PElBjM1mYHm5FwMthimLcSymgCoxvNe5VmDdpT5cURV2bz5Cmaktzs0O/dWJZKJOtaFY4ZwYycTVp2O7RR6OlRvlDXZAbG7cRQMZagzFfrDXHFaJCFaSMIm9DthLUC413JwBgNxJQ1sfYzM7UKru1jwYrpsMp1nrI3O5XHSDpM2NWMFDLqIb5LYNlfYUfXWT3nirdXf8hfFgbVu7n5YN83dQBQcTAw3bA4wEfCuZDs0ZzA4cgCzT7wsGGQ/BjM18Jaos7LFW75ibOEhFoTjLZaIQmFID14zFEIvhTqSpGB4VaKhR3CzvVRgs1FzvaHZYHFVno6b6RK3scJloZ20nE5+C5cGGRalOiWuxGi2Wh+W3kjwcpwOAuXEpI5RrxUKRhV41HuoIWQaWFfQKrXOpGCbsBeZI7TZHMDawTzdeLPfMFnJzCsF+DjIyPsaiXwbXblxYGuOwfiwYpgwAsLhiPrucFAfaCKo4AdkILvT2uLuKW+CY1TcHZ7VxwGW9sI29wFhSahAx90UyppdOLhJ8G9NCKoI9zZKPQ5wFqehJejDWAKyUsF8md7axWMhNGgYyzHxmaAAt0brNJKIaHtkIgswOnlZA82+QifKmdj4sE+EmKnbukT+sSecGsE9Xk8tzeXihBPOFH1fke8TNjSXb7UKXNu9GmV/Ls+ktyYyTjFhmxl6BgcUMN0g1l2ypAc0T1qlVa+yAk9u2I3A1x7DGZ2CzxlqNycR7emR69mDbj17umYyXvkYxtyoQa6SRQGWRkHOWA80ZLBkgGtciznJL/QBkcNUb+TZAlV1SbvGYAScTYOq5zd36gGniyE300QkDi3kHbNIQebEA57bcS7oCCjHYXaxJY2WzUqBuubGL1SiW0MYeta1preI1mXiUdC4uImoPi84zquPk8hcmDyEHZ/Kw6NY7Y7WLDfe3CXFgbuSljfdia75si1aJHdpjNMC4RDxgryYlYGJALsR9vNaxVnvtpoY5gBFFvJSo9koMBpd9ZnMwzezAPZmFzA6fDIeq6mUE1cBkOyDtlyCNuQLxSQUsYpbsjBABDEi9GpXRDSKSdULJfmOy89tAhrjVC/PdLrFzyqYHQAW2gkSUZmCMQKrSvwfWjMX8HtlazeFldtbGos1sFYOsFnt54jlWyehmB4p/Y1VspU1fWtseZWJ5bW7ih0nSWRcdjVIZbKg9vD81eXjH7uGnCiyXhwqke5KHGKmsnxMt/kp2ycPc3PCb12HUL+oQ7UQJbgMkzTk8Zq+WDwMLNjs++I3PvayK75ZCjCcdeELbRrWIDC6+EboDllxFZzPIX7AYFfmKJ5X7JPO49CzVAzC0YMktdytF9+9yoCUa4ezgw2SE0UFWahTDDGTSzUkPFgfdQr7mTGDySuBsHSQZEyF7DN1mIQ6HLCYdsCqaUcOKekQf/anrY4vB8qVd0/qzDViLyJ2OYt7MTYwkE0+1TMXdxBB8ktI3k6Qz1SaSRLwiD1tymeRhrsifycNyk4pURzKX+Gqrdn29BUYfg7E1H4jZELekELzOL9KJ87v6D+yFhu/gswsdqZxJaPAm2ArSMtP0AIjZMsnF5v4dgMtt++Z4smXfmfGANAAAIABJREFUGntvbrhNX5L1XIjIcVYvHb3Fi9hYLHF5hMRyG2QyAZrfD0yMeVosNgOZeMdGqbBO0eZW5OysFjuWquw4VGlYnqvdgGJgsdzXdJaKeMnDPCct1kIbGuOyZGBT4JbRzEuNw0rfkiqzbTOZuFiNoslEvfXzLOnMMtHs+noVNf7ColRXXA5Qo6LTpOH5Uu14LPf8eCdyd2cHqr3FWuMvlYCK4zLjL7FZF4gCXDBCyCwIBrJMBbReisQlSF6xQcW1KFsCQAEIMBINlvTG04HIgM6vU2xDaA7ABaME348KAWzLxKz+GVRuheE3DFbOqfE6yU0O8/AZTnmE7ntt+DxSHIkLogenlfN6Kfpo7UDnhV/7NeAYWPpzPhZFZ7qmiI1bgfVwrQGu4dqD7byDvtLGylQA1ibL7W3Jztd9tA2XsV9DG9flgXDwaNjwxex6J6yKqVi1IoMLwFrrh+ii1uT4BXpgZzu44rxsVfqVjsxiKyFASWgxl/7KzWQgepWEk8EnLtEJzhSDbfsL4O5dakDrRhnzGDJpN2wI1MgEbEkVH105VW6AuQYuboDOYgRcr/JIrTEDgEINsgM9Tfgj5GwKNW5mTo83UzNjOiBQw+5l3hxkACSz+3gscItFelOpO9fSvtc7t9A6L1zXXQe62fewUuE2YgBKmIkMjBX6NlcYbqNOXWi9pZtKW7b47GxVSCPBABOKES3+nWFoebIpA2bx18ye18y2mh/3uc6zgEdOLk/dw3hFHlKvk8jkWHOL2VwOGiC9gXv9YWtYCXmrNKn+kHksFkOTht4Y3dQgM4Xs/pfANd6+CCzVBlRag08Wgw2VHJCCkIVTq8NzZpnem93/q+e1lTVldzdsAKW7elUqVsMiWiV93MnFKkET5b74tkwUh3GC2GIvyMRIeSt2C0sqAQZGHlQIht2YaYHzFmIzOxLaCW1flhpTjTKxsNcVN1GsTRfz7r42XSUkvQkEKpfYrr8Sh5lEfLbLp/GXIfB0bo+PgOpDdVOKnXkJDe2gVhGnWj3CzXQty8PFGA7UjfVjb5S80fe9GYDIEqM1dANRnrOXUM/pPebAJswu6P35vU2ivQyuqbQDM9DkOFxu1fbt5WE+eH70PpfL/jvb61FqdnL6CpMxM+O8VAAMUjHth+v4bz1gMUwJJwMLujQc1Q2pmnSgekaZyCEK3MTN2ipCGygwbdMXU2UXtHlNLT1ULDwOGNGlYOcLYUzFLv4qy43xly931aK/MLCsVKXEYSYVk/0YUHYKbX3KvTxU1uQTGFg2ZNz9kmQhYiOhCxLYxiX2Cn1DCTRxKF9cv4hgsdQkIveyt4DLj5Gq6xlYIfQN3ht46Bt0oglWeVv3HnI+R6B15yvcCrLWcaFDQQzq7/MCaB5c2sdfXnGTok+Mk23EdxrirG5mLr6BBLWRlK90wLnJxNLGwtD2bL22TdVwKATGuhLqWLuWF+Kw0xCH8fLpHnOD2QL9+Pya+MtQrsdyAbCkgmyDyWG9BgDnTDbIw5Tp/lgkH1Nu8pFPZuLGjobBxkZod3BBYOwVFcRe/P6UaCYo7pVd5kWSfX3PPgNXtnkVm+vYN2pnTO7l+biyuZ7ohOxPwBw8oDP0n8VAw3qMXUsUmx2BjJkaA0kFTmsYzlEm5uLzzCxG7JMxbGcwK9io2rET2gM998fcRoOHYTszl3f6BrbNHldjLn2ibRmewktx2OMQh3EMVk6exl/6j24oJVJn1Y81/sISCKX3DxXS9wbrOwsMyxgb20efr+gh9P63FGSip9hQNoUTkYy58rE83LlHSNqGfQ/nPSDFPxz8z9iLpcvIICPDBGqUHDOM4OL1eZB9DAZmjK5BjWzVMVfszg8z6igrR3bsfvMAsvH3hAlDeqcTGrjZ1AjdKO/BzJmc605tIN85MztekImlDaUGxGQgQruE4ZEIbKvFZGAwtFG059LW73smY0woVt4YdhxkBViWB9MSKX6zv9FnjtqXR2Vpjxp/ae5ys0ludJLJUhZl4FrEbkNogScqN8SCzhxrfggGhieOLXCNzhCUPwqDuZGpYj2QwSBNg/NrLwpCktuYyW/9OhoceMRgyZEx+fsIXBJ6MAXh6o3gpgZ6YJ5RppYhhQOHg/YRaYZHyDT/e7DqDvHv7CoY8T0h+vB/sd6+WCEp+sQ3weq1puYPm0A2M3O98R9VsuR2vtGpetxMeS+ojlbTSWoFwMesXJwfy609ld+3UBLZtitnJKuiX0Q6wyPciY8TC2Z4XOx1tvtOaz7sYmDWfFgxOWzGKSxvzRzRKd3exEwScWJwIP4alzH/5fGXYXY7iL/cnrc/AM4pHJJuoPjEbEcavOtthXS5DIxCBognqqXvBbveewjmO7bp4h52Oge5OIDLt0m/zRsSeuPcvwf3cx7/w3d3++b2+/bxXn8MnfFAEpnPXWa5ymzFbMiMnyeKgc71eA16JiXVQvvPZGKayMQUSHLa/ouV883s+lkchroLb8uTfBj7EAthY2Z0VJPjOchseUPrZgbHvcVccSMpGRvQQLmz+AvA4h+fcq/FuyCWJ4l5QR4KrUfNn7+Wtp4vdKDG6T1yNlMkk4xkCUjg7j6fYotRnnGj9o7BWKuxsRwDiv5m24OxWB4+e2TS8S/wuaLfMJO+3sgtpkwpdmyG3xIGUM2uAV+b7ruuyMTOTQQAJ20HnfKuEx/iMLFwRQ7yYa4TaXkg4nncb/bl0zOZHKjgeDbn8Jk05szgOMe2HQYHAw1GR0rt4DfU1ZgG5vhLQmM2naAX2Sb0YE3X08WXORj9xgrSS40x4Obes+tt0ZCidRCoA2RDoYuTauMO/F6ReRwUpDX4cAwsNHR8zhQYIrTfAdDY3An9Z2X6HGcUGdiFzpF0AJLuHDHDjybG7Nx3DGvXrIupcr89D26i8UMrA2C/Dnb9LA7LrQgC7ZLbrFhbBq5eMjqEKjoKZvqKjt5F1OUNUddpkIf3sjc4xIDEz3Hgq0iX/1rNxEBMBLD50VhPk4iZInaJ7Yh3J9NjKVs3yMMwYSyhXpQbq8dQfoFlz17SYkQAoDNWKKHcSTIGF7HWCJBRIiKe8rjR292w7+RzOtk4gAxH7+4iy1ack9zizZHFyicxY006he79xGjd93lHQ6AJ7e6YYtfcXxoYuXNNOXSshLa1oA0iDjtiM2q7d8Nzb/yD0SFDRUcn+1pzbQ4ibPziIBr3qVtS6PBhEKCKbqJUIe2K+kMEkUK5CAbUmP/KHMyO9nymHp9kA18ANIxRgojdwZ8HNnLcEYZG5Pe3GhspN6DcmyVuHeyseJycHlwja+UBiKNVz1By2ddZ9LIDGrPZHmTStjErSw9ml2zSH1PuvnsweLhT6xhQWlwXpb9GQ0yKwaguSfl13sdhaDuZ2tSYD+MSvbJQG3UmI3a7WMJZOBdGOHAn8bE5icCQsdgq796JnP5oK616HsujVdCXYeg2kxScwzLnIQENd1wJW2WrbNXdxSU0C16kOYUof4IkFJssqBV2B5uQk+6pRczBwbC7ixhHJu1itTkuernoN7xDY7ZGlKhH5aAfDSASm/ithzi2SqFju25EM5soHbtJA5ZV0zcWaPj0l/3MaNUptLk7eJgKjsynDeDhx6G/DRI+B5OfYnxXsBmoSgW6D+zszwmkYKbRAejM/FynBo7uGpCbWN4Xe7cwsQElDXgAfrJJW2Ok82LPC1NZuZRXitiyoSjYnitTJTM6tkt1ElEuVXJioTmKpbJ+aU4iL4qht1Yydf/uisnRZahp6SjSHMQ7e45eAHpXIA2HBHO3LI0N0AN1J80WPO/YZBJ/5UFucAlOICZzeUi9cx6GjziDhQYEZ1C2+gMdF1nwwgDN3PNLYxgCF46F2c/jKWpcebJdiFmBxh5mdIwTt1KkdTSjaRNCf+x8Tjh9EYVjwuG4J8yFwgIc26F5IY3BZu1iynBsdGgzm0jDxdroOhgdIr2TiGWWytpVc9DSTI5XWPQMrs5B3Ob7ptSvd5vefnz5kYw61CIOPRWC3C7+oiDX60z9ApAbRRfWm1voe1sbTmi5sPZZ/eO+oZVd2bFzw6MuDmJ8ZugbYZeP62QlyaSDJRNQGtCaTB2/w/u92DMig5p/S6St7LJOzw0pBZhTAARMH+7ogvQGyEvXFa/Z5ApDh8yWAuJ5sfCkGB1DWxzbJpbVQHXNScRyvm7V702O2Qcg9OKcwIUBtbaHQCYHFq7g4MAzmpuYeKi3NMBxUOssN9i66AkDsVqn7W3hxuqP0hzHZh4MvTvLPchQANhjJdmxV+fQxTGx3L6fe/vO/fMD78G3Y0X6fZXR2vdybLgzPqhxt/iPYkV0DnZMRc4NebCpFCbJHSONEqBzv7suR84w/c4uHyY98MQALbkVinuulVWTPTlyElGBtFFOTKytj+x1o1U/B1gcKA/W5PnIoh96gsAmB7GT19ENy4IjoTjNg1SqM+uOeiIf+Sc1Xd561RBaTCCZKyqkxWgu4anhcMXF0Fi818dnTNiLWa8danBliPftgOWgn1wkX0/mhLO+NHATVXljzH0H1fagTmE4P27N0wHwuek+m0E1OefOjDns3MGja9q1VDY63DHeNYFuYSfR2+TSTA4knLFcUuiI6zyx6nk5kInNRRwrgbHsKugHKM8sejE2Wwxsi/QTxPmguNw7RAATn3A+WYncxp18HOvxMgLkuowxgFCj6XrZzKzS2nbc9b79cWZ6x8heMkhDjrlGcPm/IMZZLm10LhlQxGb2w337KBUltu9jFuPzNJOJPSilsWXuJ+sBUP29g5srSMlQR8VuIMtAT5scdbS3OokvtM2NlNkoKadBmC0dizUsDdX0530V/dEyytJr+tb17+Bw+Eum+9hvz6EPcEdp0H3EhMlc92MVyx/7fG5E7TMG9rEPcHkogzzk1/Rxc/bq2YrBlemzmTXHJQz7Czfq4SD4u+Jua/8Fx78peCAU6bexTA1kYET6Xv5MFJ4xUHmJI1tNQgXvPJe+ScXxjbJrcp1KwtLFYnf0sHardsts+NYzF/zeEoNh8SQzreM4DL3AxrmvIZnMP2TZ/fK2QE87A8V9wxgdxMx/kB/8mTl0jT6KuCT0Hjn2EgetwRkm940ZLOQyjxiI95+xF0vD7jMJKF3z4ziMGzX9233GgVTMYyzGRgl9nrMPxZk9i4cBoS3n6MBnFsQxE1u7kUGVH/755CTKcC6cJU0iCsm+mdzktrbr7Nf2OM2FURufYUDGZHO/3A6wceFRzK9ZUB/GS8otuciybjxXo0SRCXPFyDhqslC4J4+tAcwuvCBem7BHx0a5l5zCYB2Pa/IZ3XMC+56FQn8ggdb3K/vPmn3PeNX5fMmwf+cm7uOwMLzfv5s7Mj7Xk2vQSeODuIs7Td88NN2cBqUzLilMXcMjJ9GXu73H8IqlP5Q3Q6lHOPD3xwWuC6z6mUODZVbkO5LZKAVh0Y87jSfy6GiPGhq/rwNOoGmtJRxKr/3LMHuYft/IXvOdp1A73CcP3y8iPYtd+4aD3zD7HgYkK4MjIAqt3z0/6IS6dbThlraQOBeW+lwYL7N2ukobESJX5CGWnbnRY2j/k46SZiw4Lwc5LxkCxnG5ogoPl3TU8+4WMiCmV7c3AbrH4Q0zEI7rdrHK0XtGkB4cGz5z34znXDUDfJgc17gb9uGk8uFy5fyMbLeLp3AYL7Dp5BCvLgzim/TXKxvddtC2uzb/MH06W27Lg33XZWZwYBnlytgTHe0M1klDI+l0vLg34awUR0kzfDT3vuHKtt2y05J7sN8C5Gsf2zmHNzTG2XccGTGH+wzHMn5ed3yc5phJfTv3IexbHsdgMrjAR79zDCcOzRFa0Ax3DuH3sJxsNoDuEIY5BL6XZcZir2WvPJGO4/YXW9iVfUbs3vqZR6BgVhn3mV3oMHnh62ZsOJOC3Q5DY3zlZeUO6Za3TuX5lTfOzs3R+eqOayIHebnWCR8uBw3rmvr6nOX5FG4i2W4Zs9rf90EdLUcmgXwnq+b7WUb5dm25KmOHD+FYZ1zGXNS1xetuX5DbL/2OWxh3+nOuve2Gz7z2vZ8TdvwbLv/eTfN/Lf9r+f/18nqArUuWE72+/BudnkTP+e4i4za5sh8vx1tev+RXfK4f07Udh13CZGesu+V3YFgKn4/ZOXvpd1w7n7d8/3S54TOvfe92uOX/E0uUh/vvs6nVZQa6156IEPLV94SQr7Yu3Mme98GFGtePnzluugZuLHyHx1s6gDx5wXeI3B0bvWMGOAkD4F55Wfnc3PLW8TcdndPxcPpbL+3X7Y5r/NDhi+OI3qPelpdNyn2hx+X7JouH+/wyg92t3x2A5cccoCUNL/j1tZOHwYUR946yJQyvM96Gu/wcXIBE7+f38uKgnSy7hjBhqnGfWxhhHFjJn3ELmMbv6I7BW/iVfYZjGT+vOz7blg5+m577bIw2Xoby2/zaZb+2135efKEjm13qPyXj3d9l+dSv2gNMd5ouz22lysSj5Vov8Dk/Lr4ga9qSr8svAgf288cbGv5hQ73W+4Z2o7sge0blY8NnzuA9skoewUUN8epx5bZPkHb/5uHrXjgu68SYUYfX/HnjuR6fTw7x6sId4S1k9dpGtxy07a7NP0+fzpYeYJ8G+OUjsM0O6iKS7SCYfkcq3uwH6x0OlaHiRAomaWcSvWGcSIWpTJksL13cPPS+uEtjGMFx9E0jlVxps2197mMTNMgrkdBOvuUeSGHyxdlQff1YJmtoQxqOyzsqdGq57SdXmH56HegizgDzOW0h2s38tG2VdmZtcBsa2qydXuwfAO18nhwULTtC6jH0+S6i3t3vpS+fLeXHDqCrt7TpZQEvnXwbeku+AEIypOxvd3nEdr6oZa6J1Eu5Th4egKQDYqifHSaNPI/HNfmM7nn3uyd8laX/k3z8ngPWwLGNspwB0x1XGgA8ACcP7/fvbhegnOPuGkh/DdCRjeeLQYNj79TMgMaQW7gwZTYCWrf6hlhsnexz43I7wE72DzuITJs4qNIT2IuYbDuxFpaxN+El2N21IwGCTxoYJ+KO9KFdKG9Iw4kO44WfSMTsYKHetWLfwe2f53orO6QysZN3BogpPH5iIyW3z56w167h8h+dC27i+IzSaJm9Rnk4OUY+/iwNLAxMjpN65s4OSnwPOh/vjPha2OclnHfpr6HYtZ3FYQ68aNtnYQRdfG5r2gY7T+DSHsFizGzcxmcY0OXefIon2S09wB7usu90/4K5MZLXKAUZTLsfhR+OJyQBuhMz65lS9xbpPiKNK6ypGAj4QntDzABiAxneKdQAk31AIsdkjHdmBsKsYUjHLj1YRrdwJwtp36P9ZQDekT2fd0+u/absiEC/KUPjRgdV1MEsxrVrCPDOzJQ0kf4daAIpna1vUiOrbbMQbNLZdyx2podLt2q3zOKvB5OM5s7H9uLjjR8ywHdJ2Q9gSe1AL/ZbcqwxFtOuMlu0k5QJQPpDMzPPgbZ2WUHshW0ycaFkkIssy7iRZmLAffMX6u3rFm9EqW+IYAiWPTnLjsXcnCAW839xiPwe+uscRWYq2cs0bPd4EttS+772HRP2YaASMPgcgYGcXZgFh/MUKPiMzIh0LfFdOdP1Dr39iE61XOfYvzeHFuOXP2ub20HbdPYixtpZ+SN10dKxV8PSXCKmIXBTq778LfZHQDpPNGo2mRgH1so4ScOy4WRR7wLgAXSzE+uvJ8yVsN4uXkJcFSj2yj2TdDYzyx7pGxU7Y/hMl1bctgcW7A97LhX7mIxir3HJDVhdIyZAYTM+YIxl92ChjiEM8nVgq/Hc9GkOes9wzptF3wA0k3XjNe3ICSaGScRtYK7u5dYeMjEfVkZrq5eBBIrHQK+1zWvbVyMPeODlwH2/LQ8GFjvRY2dbXtpDNvCNDs1C8RioO9kPhKOYY9tHJtIgD3EXGkh04FI8xra99I2XpQsuvMdUmXpUBGDSGlKRlJCJeZBUWQZAosH3jRFw7B3K2thy7iVdk2HD3xgTAuy5gSR0HcMQe2Vie0YxMaufE5ynJD2b8rnBZ+bWsaTUx4R8HUZpG+h3+nXmDiqTSpG+IxWK2zPcaZgacd+ulpCnDqK20Qu54ljG6iUxZXd3HHthMYB9EHm0ig4g8emlJPNZJBHI8kH+YHRpFgJUNIruhLIBLc5koF3oUULOGY0kBkkeb965STyOw8o+Hr+Nj0PuSFoAn4ktO7kG3E6kYgcC+kyYEx2jTRY2HPAekdZhjN/hzmhy3NDvax1CTvTbBnmYae/ukQyiBEkOyZjpvQbEqigaqGaMNcbc2dpAJx9N6ezaAMdnW/MBvD1e+rbJ0vBi1KXAKm38ilvOGAF2CpY+lKdR3jzML+BRwrlD8rkexNmee0+Qa0+gJ7Jo3EuVjTnvARVx8kk/44SlHWiae8hxVqDPyJkapenzTA0HLMRuIzdCgK7r8b2nlv7iEqvtUwhD7z5IxTywF5ijk2pZCDiDEznZDmnHEtEZM8+kIf815uH8X5C+k8NvwznB5wNMIys7Ow3xl9vudF0zxdEADpQJ4umxXeBaeCzHObDc58A2e9S2iDhM0FaNsdCGnfXOvXKTwZd4uoKVNw95lffv62f/wByQMw0NeHoSAUDT2yyr9RgKoC03Lat6tcxbrkBas1xQ65Wsl8itRy8xlTf43IYypDpVRy4mSJMN2QLUFuTW9ztw2KZno8OeF1DF9rqTLzYZfjDWBLsUSRdJAhEz1VlkAcxgPXZwOYV1fv0xBzxW++YmFjF5XB11nX1w6OiyHXFZdibuYy73ICH7WBpmlqsE0EwshOMjlu+kL3cguEbW6IOGBHbN0shudA2ErokDEEqDOsJkbU+vC14XYwPts35wHWZjz4sLvZmdb+9NkInR2lKoz7XNhiVLsCRzMn8hGpMt1sb88ZQlXex60ihLxdD7S/3u03tyET+S+XGvd3wwYanVHIUGnxt0gWQFVibDI3Me4dICSDGmGq36SKwDB891dmyshuecjM6t+/YT7HEYXZij3tN7O9P8IbfGFqgBdgzEvXNogO0cvbBnmYaCPvYBoPPATC22o8YcyLIf4rLQsWzuPhMmTA8uBmx7j/D5GdgrD+DqYk2KMbO0jo7lIadFRhXh8ZvQdeZrNGMoxO157iDmiYOIIl+ucUUb3TGXtu+U3cBzFiMceKXTU8XMJ8JQZ9PzwuVSYy4MiTZ8G9vzo1XPNAxpqL0EnEQF5igXoZsh+wC2beu1eCcRcmPEUW4AbHnQ/3loFCynvJGQ49nA3Dei4MxMTMBMySzCTJL3jTTPgMbgYZs/U9phOP7xc8IUXJmO2d7HJsMAJO58/DcyIELb3sleGd5P7OTgY6aya8gJaG8bFHsDWKPplU11RDI1NnIQud1lUy0IX7jtnofn3vgpPoJM7JLMQ6lhBzDkwpBsZqv+maz6bFZ9Hq16e905ian92OIkWoNdcuuB3OUh5ycNQW75DPRKR44TxWFsz+eRNchtZAkCEAVuRAkAlh2LSegb2g5k1sh2sQ6DjHv+vAcIx4gyfI5LsQlA2STxQG0AF7MPS0MGUkJug1l5xl55+LxMndTBuUdHxNfCJeMQf/XnaZ8nnRkc2RxExGELsdbMQczkIK5EGKu19WsWPbBSkswfhYeAHZscQvYjW/W86IF0TmLKndEhduG4pwCbbdvgKIYGhhlo8rhPpt4xt4vkDWKQIKM0GRmNXTL06DEmc67SnsU4VTBIxY5BZ3/D7+JGOzJayrID3dG2LiZi00D6Y+/+ho6Gf4PQ5xyxVyAg+DkNDWzsHh7JQ1cCob+WkJqz8KAzQ3LfLjqDI2Y3OHaslfu2WmKxGxzEGy16xRZJxIlVLwdWfeeqmJOYyf5UpF9Iz8bU4i8HVWxA8zgsNy0NbZ1zO1lo5JnjMAJJpIvYNYyJTcy9rYQBNEIM48U91Gioxw7jZ3CPOzTqaYw3sEyXgxNqlBN2C8Pnd3JwYJ4wHAN3FByPdqDjdUMH052L4ZzHEvT2qiBMrgGf890++QqAhvgrT+IvDy1o5EbXBodQJlvua+G2fG4532Q4YKLZrlv04lPWbA+5zC71gwFI91uWp0soTqICTZ3D9b45iXg8qUW/mvuSK+r17n/qKkZzFeEeXgxwcAQLULbqxkQ4O5EaV+hl3shaHeASLlayGaJIigz7u4vmFzvZzSRao8oDaNA4CphtS1CWSxhA0f4tx1Dv+DdMYpP7SVxA9DhcrIsy+JGTJVCFe3LhaJNpsQnEMVKTfY25Ugc8B4baucxWvA93SkPH0gEE3QJdAze1GMyS3Gwqbl8nkS0HynIeeVFqI8HAVxxPyMSE0Ru1Qw/GarpdDYwE1/BcQeYTDZnBoZ99ssl11q05iZ/0fUHkXkMS4qmPFvOt5yzvHyTKe137vjmJm43KLE4ivowYrbgoWlFMRkexMdnoIAa7UMkUV3QszEoWhyVjs5ipNyPWCrkHyJFMZFmEi9cYLXmvWy9col40db2uxxdDkM8NkqXiGI/139uzYccEvG2QwXy8uz863q4O0z5rn+vqj+kQXJPfw8ee+dxwBzSca3x2wG/ozm8vu3MY3ptJQufctYtRDnbtIhlzTeKvhZRUNAccbRSJ5tIODwwOzgErY8HggIO49YW+sq+mtw0Pl2p0PJFLcmR0KLiQbNaYDPKw/JjFftBBHMYyECdLYLcT+CLb9cMJH2Uiel3vDQcTwyVgpMY+vp9csTwATeo9Fv15t09MU5DFWEPxkQWEGjebKzuLXt9v8WCm12zVc5zVy8Fe4tbOpx7TDFyNtZIfY5OGPdi7Yw/2+wf2usXc4Ng7hNTJw7FDlVEeklkE+z3HfvtL8dcCmZhaWilZu54ZHCwTk5mCD5cduJS4orw5DSKEqurv7c2zD/ZFdSrHYecKrgK0yz4OgxbGyRgr64sLuEljFbJknaVMHjR5VxsdespMuh29YhACgF1E7mH5+yqIGliyNR4HXYxNAAAgAElEQVSAkoHIn3MEMj/GfMRmfUPvtnVxTvuNY0wUR4bpgJU66efHcgCuLu7Cb5d2nmH++PvMy+sMigP2wmcFM48419VAlFpnM8THbM/7OgMMgDTmv7jNHcVfnF5azdw4nRuBYWGi2Rkcw4iUN5j0xp3EidEBkJV/nqUEe+tagz44LTy6eWGgmSRMMXf5sJz2OQmwHB6PZGIegt5g7MBGRnQJ1ABXGufQKDnG2jUua1hjo+4ASY3hJZDx54LNmHUYaCNAXv47eF/m39kYrzueCbgc4LE/f95ZENg5ThP+/UfslXtXVq/R3ABpnx3yhO1m8pDbEKpzJm0NMtAl49mkIWSixV9QZyva/JblbqtFGE8DRmQwOAxTqzGZyHJWhqrTVcc7bcShaMvLudYvlYoOBchzECU93a883rU4bEuQC7VXKLmFYIxm5VSXLfs2sROgJSo4CUtoJwdlUeIVI9m1cwEP7oTIJ90YqtwrutxjCiwWvCHVMqRkpUlmiHjjNCuA44suiE+Yfd2AHY0RozXCWEOYmPwOjd0Nzs0DdIIoDSKYGYDyqDanrx/Pbu1ksh577cne2OovXSKOOTYqC+vAFXqpmIiNEpkX3PHVc9M6I32dB/ZqSoFNjVRep9yOT/gzQ5KYk1xiUzQhtlgt2PoL5xfNng8sF7catsDYKJVOpraChTib5GJeoExKvQZ9XYwOzJB8Z5VOZnJ8uNMbp2c5XzqDQyuoomyP7SKxfkyX/ejmwzjM8mEr9QCewONeZbTrYbmm7FIxH/RGLY+SJCyp77XYKSR5MWMxDsRDJ1tS9x7IHjxWBrAG1tn3YM/GZJ2RwnEfsUf5HaGXT91nDAYDH0d7zXFbAwabI/gtI2t1eUOSxTNwdbJ0cm6ysU3OPftMz/XAXixboRhGcwPnccV38vZB9XjIkfLUni8d9ZJbnCa0nvJfxU+4En9xBcfDZY6h7RES8TTsQFoyXYnDxnzY2ah2QfwFk+MinUwcqTuzeQEJMVrq2RK/3HA7y7022MRxABsekqznHeKv0ORcaYz2nmQNMY0uYhwazwgyMgT8swbgcoN3xy8OYIvJAXf1L5gBwqAaZGsm4OP34nd55yJ5+A30GXkfg+J3jdIwBIr3Qu8iBpfGaSfxcY64QxnNDZeFYehgA4qNUzPNDtpYqbqj+kOoKYQ2JdQ5N5MjUa5rjL+6gcl9BQcw1W7doJrxpOXsFodpVb1qy4s9Pn0a8mF6cu7b81R6mNpznGJL5iX7sVdlYm4yECcCehw5M0i5MZ8CKeZSseyfXJpVYIVyB8R68YM1SNsmQXBLt/Lce3OTXYHudlm+2iShprhSrA22iAmTi3Y8ukM5THyn4PY89pkmBYs4Ca1Kv7w22WiCRK4u2IyRAVbhgQGYLUkt1IApNmOHMOYpuIQZ3kBaG/nA8tYOYgCzcRpk/5kq+7J1ZjWf2BiJpSMzGo5fO9sLclweD1v4MLiIkIfKXPFiQ2ssBFkwT4i20UsNVzYT5ch/Jct/3Vn+S8Oe+zfVjFNsqORUzGwf6i1mFUtbZZ8o8m29PhqHbedWVd/lw54qJar2BIPpsJRsQR/s+sR2fWoZ8ZlMxAhmdwgT3MHU6H6Wx2I2iH1PFoYeWk/dRnJEuJe3XtMlFMUQLGMyOWU5kOEhjTmYyXh7MPkENnNTwL6b2a9Z5sk6mEEGHvzhOzzWGZw7Z+HJMXTyl9zAI3Dh/OLccf5L6HfmQVGMTI9rsdnv3EnzXa5zkIb2uJLE9PZFbQntrnMPB3kIpkMFUicPN2vjFCJ5/uupz38VzCjINP5Ch/itrHLRGEzvR2Q3JFOaK8bF+2CFv6GaHrYdDBathwXKSzUHwLRmWaQ6NQVQa/1xZ9XFi9G5yseN8ln2QyOYDXJuqfd07kyGGNyY2LHYsA9vqxe2rku5MVdlEVSLBg/oM6opSlu22o3ievVMllK0XjuU9ZXVSgashl/mmWSMHClSs91hsibc24AxmBVJ9mPCxiXtzA4zOmgcVnBzoELQS6yGVAaAkfi8dvKOnVZ0Zk3yBoCIpaF9np6fel2pM4skPzNJdfuMjr3MGPH3W5tZM8tNTSpbKKDvWZIzV3mM1QnU41xKFUf93Dr+q9YhxkBtmm6PpFLxDlVHCJ0uNf7aziIP7+ojFvU2LjGTRDxlWR7kUCbqBxY5+CnsyqZGmXjoJo76OBpjGYD8eQFaKjcxR+lUOblLlXoAVknghsEtjHDtavOETMT62vtindjtT00S0vPuJugGkLpP3IEsNOHi8BR7DnkIB1EM1pCDgb2/XOUh7hDZthh0cJO8AHdRSMq2YfNtRLb4kfFoY2bD9npwC0d2ZUOGmKyCpLF1oH1gOsEhjDCKAJ6RNQG0wG5hAx/cw/Le2O+jwOFOQwiErQ0ZsJAqMvdQn+sRryYPV61jDPVRB1ZuJg9VCm5vLDd3VR5m2R6FYrBv60bEYn84Xbfrn3Mo79ReQX9gse+lgkzpUh9Pm1VzrPXgsW+tTWwxWCcRx7iscwKPWQw2PJiOLXgZ4q9apwe/tQdXMBYbBx/fAjIx5qrHYesEAVzwjsCtehx74N9RjysNo5nTEI+Zuunm60Dc5fvlBjTEYuwgIo7tcmaRcoWhxVxyAK5MMrNzFOEQEuAA0mwx2p65SKqPsRdsfbQHciAxciGuBrIiCSuLCWpeO4ve1i015irMpTHVYqA6G6CkPqoaUzCpPFQrXrFQYi8F3F2Vh2zP+02bFVOPssoXj7mA6bepgmqxusSLXVQ9oJPJxPuSJwhTmfiwGJNtFVyamCvBYqpy8Qz2Ivv0QqDSE1TYCT2UsVex5BU4ExZjAMEFFLBWTA6sbI0YRokDNiZrY7atK7gNVEiadiALBtb6uj6PzlDSMVaX/xryYpl4SI8zEmeFgcl2S27Fvvi05AaKIBu2A5bnsDjHR9UgcFvhsjY3sgdXS1nkFp9CNgIEun6Qhons/hFoiIOn7LXYa2OjAAlIRb2dqYHHkLvaQwXYagUQ+ltVdal7WEC2NAbz2c0O5OGqEvOurnu4rxJR46/7xyxv1TV/NImoYHujQHuSAia8QeMw/YBrMhGy8LRUgHLSWdfrwemP1nirXCaLwTLomiUjpGEmwKSwYzFnI2YwoThLgmwa2wSSg84PoZKM3dC8PLfEbxBr+8RsNW6KO5A5Y+X6IS4TM0lDXU839e4TzaEAiu+M3AZLhgYL06rj2PM2vrCBr0ouXm/gAwvAtCc3zouopeX3EEsFBsQEXGCwbO/JlCPT581NbLKQjZVETAenEa4jrHrsw7GXs1dqzx28VpDA5scC0wNMlq1jvxiYpNXTcnI5SXMPizzUc/VmkIcag923+OuNyUPF1BffyCrffCOyPrQLpxJRTY4//DHIor7+Kp1MLCgnmQigqePiMlGstCRbqVRuZkdKzcwoNqmCFKCiHmjKYgPQshkYKYZq+cbGVASnjtEwHjZY43YA2oQ7/v5AnX44AlltitFNdwRuDUiZgJYJaNgH++ccCBwNsI2N+qW/n3Lu9sqQjwDcMLQEwNoBjXJnMDtsWPccXLDpA8VciLEMHDEjn9f2ATMBaM0pTjV+1/0XgMU+z9Y7uOBSbmbxx14qakddSpuWKhevmRsFZBfzD0JNLiPuKkNTNpOH+gueJvLwg8j6gyxvotvzZVFoFYmoAFP2+q1MZOLHSomQiWqCvF2buaFGyCPlxrbcpOBiOQ4F1llsnclFD55jIDu1gmDGYnAUN91ueSwhdmL2Co6C4KVRYINOEmYChbXMrliJQVbmCrHPSdhev8vthCJXK3jBUpCJI9CwzuO/QRbmSKaGzBcHXeB5HxEnEoPJHlieC6Mkutvynu9qTKayDwXVzXpv4Gl2f19xklkKwiyx19FyXx1whu/wjiBWwC0xd/EZANWxl7Uvr9AIdb+4WWePJLLFYMHYLYXe4NBHHcuoJKKvP14q0Fwenqt3UeTheynlUaoivyosVkq3mos4lYnnLMu9TJPOCpo7y1WdLkEeF+Q1mtkBl+dSLPwmF+9zknMBkrFYGahZgbCLxQC4FAoz1gB5YmBQYhlgS8QQ4AWXhI6fvvlmZ4+9ucEsw4a6M1g5lmxuIjGY7BktE6h8vjHrCMQ6ghAayGZLcKaqLOsxF43cNM+1m8ZgFoMFO7cwBnCbBma07InlFo+5sUE5P/7zPJ00ycisV9ZzHjI00I1xWLT3FGVEzmEEW4K9VGqmChi25hF/LZcmGR1QZm7of8pcT1uViXe2XUGFwZWde6jv69zDLN+eRL6oV6ICbCYTPz1LV/yrklAPLKpMXKvZkUwGKtBOORT0stlR2Eu3LQY2uIYrFc+STT+LxfSkXRRkyAppIzbJ2JkaAFxGXksqW1C+qwGrgchZzZbouaUGsorPbOa6mKEBIDXmcscQljqkYu4ZrXYKyNPVfWNmsAfgY1foS2RrTyY5MJq12GfcTQ1k7dwbuJC85XwYlW4Fyms1VsoOqOBA2TqQ5dzkojDQcu9A5kDg5fhr4iyC2S7axsg5zNs+9nLnMTbGArDEKjdgcrC5sRlrXTCFw1YLLdQ91M/4NCnuHdzDgqkv1EW8vM0FbZCJHx9FPpmjOCadL1KNDpWJardPzY7N2Mzs+TqtQAWRs5gNFSgJSDI9GFTZQAVwZcRZV5iqQABOBUnGKuuCxRFme/sklVWOAWR5BrJiBETv8zvmK404OnNViZrN7Ah0vAOD2bE62MCQJA0jScYRYYFseU+RhzaFd/1tbZZkH8pPDObVEpOazFpyxFUpA6AG634HLjI1soGNTQ9nojGmInMj0jaXlbqPhROXVAuAsW/KLfYKFHtBimay5st1W2hkwMXOT5qYG28qmEocFipQPbkcpu5hAeflrUrE30tBH1hsfSHpHM91AFu0EhFltjdrlYob2EybU7Lk8wGLxbsk2xacxZYYPBnp4IrBXwdIQ2cvu+yjJU81hiz5kANDnIUZd8t2jDohkPm7gzEX58FChWEJS4h1EJdJcTAr4JitAKwgwQa8BBQm1o4FgIskF2f0Zesyb7Y4jAElJgAjDbrhOS1ywkxNLafEgHLGiI1d3BH0/BgZGAyuRGVitl+WZtuHAWwsE8FYObMD2Wx57IN6RC2ZSsHyXyYVYc/Xag+Lvey1gjAye4XKcM9bHcaiwLpY/NVyX2bt39Xp2fS9s+SyEtilspdiq0rEP4jb+Z50xhgxfa4gUplYZ9nZmx1l+9YcxKqRQ+0hrrBY0c4Wi5UTvNX3dKCCwQFGShU+AqmYG4AK6CEPqcHD+nZbPocan1spVMqyAxmrLi9zQkPOdTIbgAiAa2wG5srFGElgNgDLAPf/NvdtS5IcR3YekVVd0z2DAUEQNGKNZjSt2fKBeNwfwA/sI/WsPyH4GfqF5U/su8Q3gQ8rM5lBBgm0BXEbDqYvlRkhcw8/ESeiMqt6BgNSOShUVWZWd3VmnjzHj3t4ZLyvDEeSNfRMtrYwcyEOq9yaWwUHnBorSavWB2IaYjJmLd/GJU6d4bFmcAzgCmHxc9jHYBV4meK4kDqGZGloRQrOQsx42R3mklstIAOwEHtFOIwBxbzFDGH2sphL28S7ZQ9ZuH+ybm682pe/dofaw4N3z3Z5CEw9U75656box53LRBuQqagccmLTg+KLzA7vODV5HGaB/o4qO1KRi4fYWCztHUTIgxnYmgUPaVgqrAlUdtElcxArg00tosKFmTzuYmB1jJAcByGg2MEAFy+ADAloCS3ugiTMbvmXLrTN5BAwVwjeqIWcwxRqUjnXxLM0wDk9RemBNi4RwPLvG7n3u7QGQsWA6UcXhwFYEvrxWYGGwCAGq4nm3Oe8zoJrNDWSAm3p4y5iQi2ghNPITqXdVrn2kWIsvVYw6iI6Q+bQTA9UC6lqsmtxYC+dX+zEmtf9lw1zY27mhtTcl9Uemitv7HefFVs7+VrZa5CJWMzs2Ivca05s72bHqwIqS0BbBYZUy14Dt92ds5iXTOkFCxazO00o0hBgBJNlr9aIGJYyDbZ9aLmrasXbhUqu4uxycYjH7ALz6qWaTBZ3leN5kGVpM7ScgAslSFbs22KwMjmEM5cDrZVEtTRCdsMjwuhAvMUScaOIQ0Z/w+OvCKt+6HAsaO8mTQoysLrRzuzkCQ2ypOEqMfR2faneWAFXQv3hYuBjthrjrjDIRPHfMQ3SsKYLnHGTg80UkY31akyFvFd0psuywl7HckwAuHnXrHlNLyX/GSYL3dwAe9HQFFu+gzwUUWwViags9teDrJsdL0/NDgWVVXYsxaKvLDYTi3ni2aiUYjF9vtonOS6hOlqIyaxTrZscgtcwJgapmOmOD1s7BbiHBXzJKSC4HEyhScMFACSQgWPYYauxFLOY90HEtkBSseS5GtByCBSXuTREgTKMjtziMPE4LEaAaNumF4q1EuXBxMeCRZpSiLts1fo+NjxgxdNQfRRg14RvbOwlcAMpHgsDW3XgkhaDRTAVLP6UallV3T6YJGGQhioZq7FB6QUDv15Lc8v56fvo5sQkPXsFSixnjPlaynnfZC+q3KjmxkNnbsg7Uy4Ae36b5evrcMJibHaMlR1gMZWQN7u+PlHH1XAs9sQ7oFYWI9bSi2vxuAs9N/QAWo7MT26YpEhDkopw3CrbOTVBHi5kzbcYrNUMWs5aQeajRgQVT5FyXtXBG8yNHHubHuDKvs0RzkDLZM9nL0qOYCmU7bNM3JKFnIQbWIzBJFXOSpsID2yGaYXYpueELpxBGuZvF7KbHgag1JsdXcmUx1w1RgO4EiWdad+ulEp6hov+qKVaHJe56RGXsv2IoStW/IB6Vwchl0qF3jm0ovQN9lIwzs5eOtByd9MqN37yTpYlbpob8vWNKLZ23fnTwOwnXtlx/22Ql1fSVXaMLKb6XjuiLrkUDI+xmOnjSewPBIvV4lDPh0Ub2SoWm8G2twPrDLaws+hSsVruXFPoVyBiooAqH6+2YOnHIKvCKTegsUMn3CJMiLlyMzWEmKx8wR5otcDX4q7geTOSgrnJxMAykRgsjMAaGKzNMNmPBYN0DBx3wR2lhjX1ANTGn02mweyokjBQ+ROcReS9MoFnBVxVKvp23VblYSpycfKft5AcrNJwauVRM9qqI0FNtjzs/AwLPlDVBlhMnUNUt6yw1y6UQPgKruGrZs3rvHrLaeUGzA1bvlI6+kp3uM3y4kbkmQ7LPJQTqgMxr6+KXASLPfw1SAKLeeL5eu+9DTkWm6XmxWqtgAMMNYrJK+2rRLT6s3JdzYuPDxukYqqOWmGiBMvdwWNgstlYfPI1Z6jF6WgNZMZaQSqIYo22cJOI9YJuffNjZTMGVwFbOAVagtlBjEXVHMFvGgAcKLS6iCs2YnBZmJEPq9mC3IGt2u+4lWCQZWomBwNLEjFE7QmSWqxci24bc6HCYnyG4TGCCww1eTKZTQ3+bGeeUPKZpSEbGRqryWBsGJimcnMZaw6t6ig15/ASe1llyPci1x17dZUb8uw+y/EmmzI0gD1/lkVe9nKkmh0vpGMxlYgHZrG9yK1b9ByLHZzdFmewsUYR4EsUg2W37nG31L+FpaKByy9EHsOVQmO76ENOahVHQGwSKjOtgcy2RVTSN3ZA3NUu0EgzXxK4CHTFUeyBFoYxYXVYCt5n5OVCteRzNUN6sFWA2e9iwHksxv04qJd/kr6qnmeY6YAl3CIBY+taES+AV02PwXqv78nQWAVXWCQRs9WhLRjy4q6h9cdETs1zX4mkYwoETNywY2MtpCG2ag6tJUAt6n199rruKze65fkzl4jGYk+zxV1sdnxv3UkbiyHxnIZYTB1FlYFPnMWSM1iNwRxIkIeTy0JDyc6H86Db4IpUxB0+J7hYDi5kmEIzdaNgku9QHcNa1zeADN2BY8aM+CQJhS7E3JsauHhRwaE/KTqYUm5mR3EMmzxksMGKR3lVTVIPxkat4hhCsizEXlxx4kAqvx6VGnICKiHDg6ViXJGJ7OpFHr4SG8vU8ic/R7DiIxkZW+CCIQKGQr4r+vsdLHopZkYE+BCfod7QpaG40WHPc/t8Sr1MLDWHud6I1pxDZq9XJ7HXqjUv89MsX92KPNer+8svRT74IIv8JcjX1yuWPbOYJ54PK44i58W0hjF6MbDFYCil8jvQUu/6NJwFMlIPytRs8xqHTamug4zU/VDXGtw4qDLSzY0tkNVZ/yNfvDAscHE39rJtABSMjVhkYhlPVUyNIjVRtVFs+jooNPTVHmZoZOkAV8EVG7g2q+lDAxaIppobMsyrTGCD0cHOW7uZFGDVSRZILnJchsr55jgOxgU5iZlYaQ1c5iIyM+n22JipVmsAWKkNwAyUwEbrt0xxViBjQyWk3gDgHqIcCjWH2etn9VpOb8hemvZ6/hdjL8XWTt59Wk7HV17NMVr2I4uNjqL1kMuNxXTd/tZLqTL6S7S2AsnfM6PlFamod5EJrWNCkYfJY6o5UcMa2OdSEs2VDWs1RA8yzYsstVLd2WxwEHGHiwN7CZkbNgoAI7GiD7QkoBW2yl3LAMRgnPs6cREDV3c0tlor9qX7Qu3JUQusYNkPLmIFDiecaVg+tge35JWZYDaMw0nEJ5FALFaZLQ99OtzQmACe0G8LcWng4t6R9NqKe50xLTZfUs3jwTW0ig9pAOPKDADOmHFptnxaWju2iWoOOe/1KPZya57YS7HlLuKXIs8/yLJ/KauW/RiLwVHk6o6xRhHMxclnlYZLitXGRz0ZS0UBAw3ASH7RIT6IobHVjHyZVjtP50FW53eO7QJDg5RaCFvn+5J2EVY56IW8lPuq2xxo5aIeZCFkojRGQ4WJuPOZOM4iJxGAqhnysdQktXXN5WyOYq7bhxgs9yBjYOXB7KhFt+PQflj2xk49i3ElBxzCE3DlAVyLx3FhMDUsfeMDKAcARrDY3nNoc3mPfFpKvbHB77VsT4/FlZdStZrDIe91ib1gzTt7KabkqSeaH57qaM03YDGv7uAaRQXUctts+4PnwTLJxeDjecoNNpZtqc2oyIyGeAzxQcdSYDWOt0qO+SKTYdCkSoFIbdUAvojv4A5hIPaqIAylLwmYqlbVo7PVCK6T900eFoJs8rDPFQwmR9fgxqnMnMG2A7gUf/gIKo7BSl1Wb3aUz2JUcyv4rXkoqrpgd5FLoxI5iWEEV1pnrroPJ5OlgQU9D8XHeyGOXnMNWRom3x9ScLTl1V3UdgAae6HmsFZtaFnUASOWH8deD6YMZSfvP8/y1YvwZiz2IN6Ho7HY7OPF4orhodfN3rWzMhlLRTM+3MXDswFlakCpwPFnOInlDusAqlUbA8ikTXIAJhpnW6mgcmu+Ta3T2Av9EeEYptQMjuAdegNLQrfqCwZbVT3nv3igpUjL7TW4nAZimeUguYeAF6Rulw8jUMFVrG4hxS/B2wSk3JxFtA7oYi+qsIAkBNjE3wdio1p3OMZcFVSnlRsqKTtTA8y2LwYG1iMOq/FY2paGacXY0HDkFQp+91me1mEpXnPoI5a5auMCeym2dvKFd2xjFnuMo3h7L63S/ugnei91Clmc6LSTWk823ZVRQ5h+1QZrukRUwEGqHP1ij1epykWwVUBnaTU/Zq+WFoqptkCG9UhfMZtJJRPqZcFGBldt0PgvJJmrNd+kYa3kyLnlvAKYCe9D7e0hJBfFWwZUhbhRLtWNByOZCE1tQAtohkNmTSaHkWc6kXbDQ3/7cXRxTfoOtr0w2IZxYx14WPqdAxc3vYnJ5xLrTQ1zCl0OWlNbsuThQh4ZaJCGT1IFGYwNfa8ksXNgvTqK7Ot4r3wyJEVxYQx26hyCvRRbO/v/+x/2LDY6ivpDFKmoUSzTrnilvU57dCUnhocNypzPS8VrjckeipELNrOYDNa9y0eAzpJ/ngyGRZ88sbwKsjzEZBSHYQIi+9+u1UkmcwLZ4o72ewEs13JevOglUQyuOvQk+gXcpCGSyfaZ2iBVqlysjAZHURpLry+57ROIsaTSe5W81YpHzWIFF/X+J0OgAis6azmLsSxcMLzFK+wTxV/mHlKeDLHUCbiW07isgsvZa/aBo4tP/nDMJA0nv25Si7vm1MqhrkOSu2mQhksvDY+7dWNDTsZ7Uc3hfVMP7BwSe8kXX7hE/EIl3haLvVIGC12NovjE6eIsdtgyPBQog1RUJluWWGVKQnw1pQoqxGNljE9verCbCMseTHUCsiDF+HA7HgMRJ7iE9aKLJSVQWYFkYW5mBlxETiwz0BBbVcDFxlQ1wZylMhyYq1bSx1qO0UnBLqPcycR8sqZ8VRp0WQHntn1o9YlZ2kQJpeFrauwNYKElGqQkx2IUL3XV8GAqis8mqjm0YoO0EpetgItNjjiYGiwPZ4q7MOByjLmm0JiLpeE5Y6Mb7yV9zeEF9ioSEe8ePsxy9SKc5sX0B1Jbge/vintyfcbwOCcVUUZ1DaA5ayV6XSVhonWUA4uhlUHZOnIPGWRWye8zzKP0yYb+xyYJueIBwILMSqjcWIY4zF0RxFgtyRa6MhHrIoLeHLUTsdSOWAAcag9DHaIyOIgXJCJ0ImIvIWABUEic22aavA5F2GBslE2NwKqjirnl9dRPoJFIRgpJySoZE3JhLc/VNbnZAFcY2c8T3otXbjwYUPpqDn7NwIJryNIwOWMh5jpebRgbD72xoQQz5L3k3aciD89zQdhz2cnnIvJLNTq+CCYVcQflGsX9N+HRhsfdvq/wGF1Fy5NBJt436x7xWPLXQqbHUY0EMFqmkr0RZNLkol65O7iADrzKdKnlu8xCgC0fcleDCOcwRgIfmx4ENFRtZA8UlY240LeCzb88A66LxZAL23IQGWBscjiQcEMLJBHrdD7uNDKowFYwfKo1j3xZINueWKyOxxIa9OgDIisAPTkdUbhLZkXHXjQjyxq48gAuy5OG3JkbMDU47pp8/e6Q5c5vomnFNRwrNg6DsbFly1PNIfJekPMkAV4AACAASURBVIb2/Lle7R+8l0W+Cb1UfJXluZYEe43iOdv+9iBVKhqguNr+WNpq2yRmawnoiYBmA+JKPAbQBWI0A4czWrWKR5B5TLbbFWAxGPFaYnMQk1fHT7FnrzAAKhF7herpU28qB1M1Pai5qOQebNkp1pxCNzNqLkyaZKzpOtRgDjZirT3kdTRdVAEqAapa9NKDitkq9LFXx1jdiOeWVGbAweDgKZog6TANUiQwdnmu1CaI2AJXHaFB0hATN0wBgCfGOniLgSXLja+7VZa6Jvaac63Y2A/S0BjsjC3/tR93ZS/FjDRpaK8/eE8l4mcinz8X+aVvrYaHehbPsjwfbPvR8DiRilrhgRGe+3LxaOkJJ6CnuchDxGPTQe9wJbaZlgIuA5nNQBNrQrqz7xWAGyAr9YxUbiXFfrV4zxktuSkQHUjZ5/Pt4isHVOA4DA1ROalcwZS7BqMi1Gi0Jpprd5CWC3NmS146xSObm6agoSshd+sFVnyWLvZC4MoDKx2B9SaThQwQyEiwFiWfAaxm9zcXUQbWKn0xUrlpdk1Ei0zcuRERpM9zhQhDYx1cbNcjH7a45LTRy7rdRytPHodlsuX1Rs8J5TaQ8rw0PDE22ngvwwgWsJfSmSrDDz5zy0JZ7PNvgklFZrGrmwuGx4ZUXHMVhceNDfEYyqkMcJOD69iAJR6PpQFke1f7mYyP4LETnEPdtvN1BiIujM1UuBt9fDSxl+0D59CBtAa00lMk+vAPNzWctVJg9vJ6Sd8nkblRh+FUV3BINBNTda0CKsqao2ixF5kdNhjTHbg6Z1imRG3s82AC06LOcrM+TiykvoSqNsUBoy3DZA7SquS1tnAGmwkbFqcMB3BFqh4ZHcNp7yDTn7sCLMRdBkLEXYNruCUNXzy5YGwM7PW5Y8om4Lv9aZbrz4J88KsiFc/a9qPhsSEV4SrqcJb73IyP3ZRkvo1dPGaguovV9JiQhPb2Wg8PUa42QHb0CRgiuYs7j19qMjoWiQfzoyWZY43VklfIlwaWTQ7q75swJMW3lbiFclxS4qkyk0zorPoKrsgJZqnsZnXGznDJX4O1Eg1dubQARNCMCbGXg6r8zlwZDe5hBRlLxFzikh1MCs6V0SwnYLEExgGLee+LNPSRx8BJ9PWwKvlY4iVM+qD7LzlvgisN4HpIJVeKWAtyEBLRnnfbcZe9v8knruE5aTgaG4Mtb4gzcH0miq1+RDMMj1XbfsXwePfdfCIVb+s07CJ3NG5sjMd2s95pyiWklqnZ+JSEhrOoBzA/xE0mK0zQYpXkgzEBsuBD8BOBrYY9yeWhFwEDXMmTylO1350boo/3WlreSx9zYtMjVFarE08IJZZFKuBKiiH0JVLUqq1r27YyvUqN0+Di+A0DJVNgqMTOobTEc01A535eYwVeK67NJ8ASmp7Ijhs3CvULe3GZWK17ryG08+gAFGcsTjhHTFhfTZO8Cq7s4IIdz+AKOrJj10wNZUsFE8DGcZdWyi/PHFhdQplcQ5KGo7Ex2PKFvdpZKgBbYzHY9jA8vnoZWp3iq0KX330Xeqn4ssRiumj18RiPXamV7kaH5cfwWllr5+x1H6vJAZAtepdaARliMbiLesr2DrgWY0UfnZELYKWBDcwUEWM5mwUHXu0UhX1TD7TqDgYyPbDeJaKCLTmzMaDYmndL06UgDbpE6dSoEassxMtmeASpQdyJZV/HvgWX5rExVswtVwY2S2hASlIRs0ZWdqJ21onWTxYftw7B6BkPSRh9TrhErQisIoMYKxMQR3AtDi62483kOJS/E6aGgml3vZbvKoDSsY16rR68BZsV9F6duoaQhl/7+Ek2NsiWZ/ZqAFtjMdj2MDz0B9Y6xS2pqGC9KlJRv/AYj9lFsG/5sd216vDYxWJmeDwSZEhE7+uQDy/QgTx0s6MAKtS4DOCa/JnZzC6sEC1uW7PlGWioRURSGayVBrCB2ZIbHGmlTAosBgcxxp7FtpZaLpV6sOWhXKrGYFTdIQSqhOqI3CefI9v2EePC+hzZVPtjUKxlMW1hrMVjtERGhQF2cdmYSs9McV8XeS5Y8ZfAVSXioZeIBVylw9RJvquLu0gahgvSEMbGIA0re33W3wbzp/96JZ/9uZzE66+DyK9EvlTDQ5H6NBiL6aKGx4uXQd7XNJiC7FUww8OAcgjy/V2Q3VWQ6S7IrT7fa/LZHw9B7nZBpmMwQMVdsEkkok5HpBfsFKzlmzqJuk7fK8hi9O2xjBTW9clisuBJ4LIer2OmdXP5fPB1Gft5v8KdS71E2/HZnT7P5X0BQim5LxKyuYRzjt5gx9eFBh70Q0xcQe9AYlkYwFLJmWvy/hy+RJF+GAst6CRVz2YsHWkLQE8t+1hNDKmmRR3aEof3NMp5F9pE45B7wpPfORvBAaxWP+KzyQFIMRW2Z8RxXlsI1mqdx9rrB5KFW+Di2GvN1DC5uKe467gSd5E0/Pa0z8YJe73/PRkbjb3kV7/I0ycffzTJ1XU5gbMaGX8O8vQXOoYryO1XQZafiYFF+8DdPBWbv/m9n5TSEW03rGD56/dB3nkmcrgXedCK43uRq0OZKbCgU+TqWNjluBcJs1v4OysGKBfQzqbN9f6HxSBJOkLaO0dZAlkvwr3IPPtcy7n1D3QCKey2SG0lkOlhcjBIsYc6NnODAz0cXUKGSH0FqxVe4pbZPxukxS2oskdMk6iCPyMeqoW3bcb+2pswtqY7tTDXbfMUW/cjrh0UehR2aLPW1FZraCyaUbrkgyt92En0KYIwajnQXGA2L5eUCxX7VAAFVNm0i33BhIloYOrfIfiMOehShfrG4M5j8ip7NJ8NuYFo8Z/7Q8GlcdjDJPIs9+CySSfJkt95pfyVegUAl7qGr9al4c1B5DCAS5f/879d7f/q61HgF6n4vv8AJM7MVVR6/EuhS7Mrbwra9QupbNX/6RfVQFG/uAWNx6zz+NnzAfRMtK1/uB2gXaN3O0CHlt/A3RAH2ALpoXTG7nhLs33130KWrxaWpsXHIYX2rP69FovucltvAwGXMiDQYKalItoBMpb3ur74/mVfsfW+j2/TDrf27OvxeRm2p7zIFOfyO/2Bn41HlLl78DahzwX/WWn4HfY60veQ4Tv6Nvsb/O/Hz8YxqJ+nY4BjhGO5i+VYCh3L+ryUc4B4C+ePE8d4Xuj8TX5+uRzqErjM1NgTuPbZDLcDXYvLoTc19Np9UbvzekL5xq99dg0HbHy+oi4cUyUG+1REPvpFNqnIhsdJbsxdxTEBPb/Xx2M7j8BfSjM+Fu/noabHwRnqgWMx2Pe7lojeisniPlieDOuE47UUyxAYdxhrXKbXRQw+5KU877WvB5kdRS5mkoduciSfE6VKR6/egFMYW7/5zpaXPheGqg0zMjwfVsIzr9xgB3Eolzq3lJizOYmlFwXlwaLnv2rLNmn2PBLMVB5V463U5tqyipbFW+lhnjePyawXhm9LHrdFK9gu+9qMpuwILtnbDeTOKbQhJ6kU7rL1bs+U54KhcQ5cFnuxY0imhj7vKN+FQl5tVdjFXSsJ5QeUQ405r14ayqelzCPk//5f9/K/vign9tlPm9ZHPHb4JhSj40M5G4+9PAT5yYV47P6hPEc8eyz2sCtWd7SmOeFsTGavdf1S4jNbhxgthRpTcYym6/fhdF2mmMxiqUSvxziM+8y7M8iDKjmhPLH9zoMsvTlPCqd96EV4uMpp3LU9CbpvH1po++mtVR5l4Cmq5KUNPM3NXVx8Pd4Hir3qLP2w8qWPv+q0VELzJUtvenA8dcRn99RzESqF9uUKDVjxF5lrV1IMV/OpY2gq6urtxF263K9Iw5euCP/xQ6+9+0cv8j2Rip+tS8Vi3fsvflq+yDPPFVR69S9uf8Ch/WEH/KGQiT7/kh4QPTCX5GJ1ifwuN7pMnVyUMuqVJaP9Q98HyBeXOixpICUhbSCjgkumhI61UrYJSasqIWOTe/ic7UNSDJISkmzcH48c+se4HTJRaFuTcy4J48r+K99ZXD5m6qVRf5dL3PH4nBw7l4j2+31dGiUhP0IvEQG6EVz6/KbgOlwAl167wuB6egouYEE8jJLeNawYckz198VPnd5EGiKtjEp6O9IWiscE8dh9+6JPqYaLQbYAZPMbgEyKNr+3od/+GkFwKC4TdP3i44VOHn5h1NhsLjHBbmoXC8cUfCHhoqkXXFxOgCf2s0trsnpRhnYxpyF2s58ZG/AAvqhOkK8Xip3qg7bpvgARgJRiD1wGVPLvVH+/xUM9AMe/DcDAthFY9SaFY6nHaG6xFu/fPeY+3rJz6J+5T3Se/ZzXa8Hj8Ivg2jdwLRfAxSOUbVmJuzpL/r0eKyYNe7xNn/zzv0zyDyLy3jsi37ws48G2XEV1S/7DJZ8m41TmpSuRm1ci3+6D/GQvcnctovGiOovHXZBny4qzeCWyP9psQ+YmwlXczVphLzbx+vLgQ+zdXdQ+8rfWB7u8thjmGOrr7Db35LGNuo92XbrDaO7h7K9xX9Frb8rVabTu3VNJ0FoY5331zJ1MXp9LAxJDbiVHyCt1lRH6mantj4Qv+sSbozi10dzViUQvP89NhTOPJBi+3/qLZDh0sVngAZ1+qN+7RKoXdIdR3F2M7iSKP0f0nfeKe8g4XTdheEjEjCu5/v68tFk07XgtxU1EzGfrQ67xFZzT6M6nsdTOncZFRx9nOSDPNcRcuv8JuOYeXKNjqIVHt9+TqRFzn+9SxeaS+7uDyPsusTdcw04R/lEZ7NdfZH1xUSreO1qtyoOkoiCzfevl+99IdRb1brDmLF5iMsu4X/so2KWVuNhd60kvG9lhhGScBrkRV5iM2Uj87prx3rdFSR2j1Tt7XKo8rHflJfX7ODPl1NYLMZyMjGG/s2eWE1eRHuwadkw5fB7sB4YSYiiTfyMLM9MsbdI8if0+YCzIb4Fs9s+Jd4zqjjU9RkmIHhqjUzjKQU4iQ9XA0HgMuEbHEKqrmhp+LX/ll/5JtQbFXb8kcA3S0DD16y/yGDpvS0XZsO67eOy2aNcRZLP/QY8FGVv4dgADZePpQNeA10E1DZIxsZU/r2h+FJGSbOT4TC8alTuJgWSgb9vXLsyT9bkBjiVYYPAwEKTFQZCBaXhUiZjb/gxcYQBy7MjbxhvCxo3CbihLi59YCtbtvp7lYBztd4qLIQmTS0BIQpxHdhFZDnKFRs1zLf218xhwzU/yCbjOmRprlvz/JHAN0lCctaZP/svHUd5/KfI/3gknUvGf/pPIdy9DJxX/fBfkFyoVvwry859pce+QhJ5Fbm9EJp2J5XmRi/f3pa4rfh/k1RRkv5yXiztLJnu93Vy+rxYSSy5zhVl2AVJxXyTkXQqyTOW1SkBLUC9NQiqzH31Ef5l6pcjDRLJxcpcNXZow88pk1cBNDobJa/dIJmaSixnzh6FiXfE4uRsHCYgCw6nJv9oPY/Iq+AvyEHIT8xMHH3BYJWFsljpkXyukdmno663QmmRhJHmo82uX+bB9eyjrch114FX5mgfLqR0Ht+6zv06efN/7UJgAux2Jacly1P6CykbKfFe5shfApTfb/aG/CZ9Y8WEdXJo22r96PXApqF6OcddoyX95Ig3l12EwOdakovypAdJ+4GeXTQ92FvWLf+vtreyPccND/9BNJltjtKVl4nd8R3OpeLf0dz4egMdsxhIEjzCRfPFt+6lJwURdj0bpdFYeDs5bdRUhpyDTbAI52m9ktkc8tj6fkVTPjaEkrrCarLDuub+VpCAYS48ZinmrDPd1kRPFA2t1TEVK5G4wMyYfQ2ZmxgCuZcUtXAOXXnvIdenjW1mpkL9kagxxFzAySENsLQyGRZns8E4xOJTJ/v1lkH+6Ffnugunx84PIS70Zfxvk8J7It9+WcqpbKcNYXux0VLPIkydlyJiWVG0y2VUpDN4Hsa6q9pv3hcl0/iYrYiDzY47NBLHclPfbmL0v2xqbYb4wU1OxGBtWcBz9nuPr7SYeGzNNzkK1NGpqDJZ8CHWk0qkUy+yJPFQfDMiNeGTiSf7AClKZLJx5YGb9NpcX2imUgZORSpqCTwWLRqJWiBsac1llfGhFvsZYE5VO5TJKuTKZNMay0cM+4d1ExkYdVZzLfMkjayWfySS63EeTGptrbvL1g1MYh/KnQ3g9cJ3kuqgMSsHVJZPPmBqQhpWQ1E3/ovMvonz8m97Q+KP0y6cXTA9NuCGrbWNjwGRu3yNH9i0HlE+aTToyWZcQ3BfGqo9YAlrY+LdzLx9wF1xW2GwBm829CYJ/dreV1i2WGa3mcObGZNktftz9zZr23JHd5ScqtxpiL+TV2DiYU2+BMxONOS82QNY+wz9LxrzV8D3s9bRUpgr+t1QWnhtbBT8GiElHxqo5Rz+eSXoTQ489zsPIWgufLzqnt3PvFNo1QNeEXiN8zazFXOfApctXf9kA15BM5mUt7hqx8/Fv8vTJR7+N8vTLVjWwGo/JEI/dBpHvRP58CDbo7OZ4at8f3L6/Vyt/v85kGpPlp2V4i1r5Wka1vxI5HkXClcgTbTI52Pgaq02Y/vVgPUM9firrlAHVvq+9KqSxHPZbQuuAbUy1+PixyeMlt/gT2Cz4a2kNPo3VvPGlDWJcpDJaqVouPy84G9nkhJiEFiwG297jtSm0/WUo+LUGm1TsizmtW7desrydlWpv+pi8TUBhKBt/51OtwqpnptLJ6yxOnHyYPgp6qSh5yo21wFj2HXYeo9l8XT5OK7bpqwQsNrCWlU89SbZPF+cesuxTG32trBW5vjCXAt6xQmMaDI0tcKk03BO4BHa8g0ul4dP/KKf+YtzVs5f8tw88BvtyYLG1eOzTP20noW1Zse+tZvE2rzLZ6C6OFR+mt698WMHoMA5xGaz828FlXGOzZYgHanzmd2BjHn/s+bXf6fUOz6ymnzEmmiheyy1+E2IILprt2CO04uEusU2P5IXKiQqW1/aBDY8YaCxaru+n9vtqNUdo7GsJ7IGt8H3rsRiOkamAuaVFliHuXTsXHHcl77jbScItM4OGnBiTrSSR2S3cAhfXGMpgx1vc9WIlmXw+7mJMxXHFWZDJCLLB9HgdkLGFv1bxwbJxy/yAZISVzwbIxCc0rJzQub1fAxokYQxNFlX56FKI5ZX+29eKDAfMtHSAq7a6f06mvnIE4KsSkAE1ysO1bcPPMPD4hS+5t/0BKEjb4PnAfWxpiXpDgTS8cGzWgLX4sT654W2co3oePb9l1T1rZsY8yMEBXDcuCxGWnAXXhh2/WqnxeHA5wP7QNozxGItK/YGfymVn8bEgG5PRa7WLeBxIYz+nk3BFubFVNnMdD6cRebN7vPc4YAtoPBwG5TxRGstx++aQhzo8YrdlYA6ADkluZjtxYFYGesTD3EECEVgJyV6AiZl0QYJ9bqVftfQJoCKnFTEqytAQf6HkbBVYnjDWY30POcjnYjhXJ6zlyWOcbz33nZnBj6H8aUwivxG4LjiGI0ZOMPSHoRbxD8MOv/6H3H0eIGPT43VAdrzNnYXPIDspEF4xP/bP0npSet9O1hqbzXzHJEmi+97dbQNtIqDhoqkSERdmahd5mltwDzDp8x6GgV/QDLqRaayPxQpjXXpkyNORGQcwYU6uPQEeDGyv52ax69/GbGU/C0zE5sUWsO76IgA+9vMGa9Vk8nCOcc71GlgzM9aq4k/yXE/LNfgm4FpzDP/oGGFwEV+J2fT/+p+D/OnfgshHDaRbpocu1fTYsO+RiB5HQ8P4YAufk9EYFa1J6XAQsYZXg/lhydkrnYOsWPnBrXx1ksw9nlpieoadPxdTw2aS905rk1vwiyeg1cbXsWna3UqvTzNF/HPZE9qLphR2uVr8NmJ6V/qIJDdCbMS0myN7m5i77FO6pWUzVGDp79Xc2OU6r5e1E1+86eFURkYvWZqxcOZf6VPiPfSTt1zDBBdTqRXEPNeoSTSrfiqGhrbTU7t+gtkhnoOKMD+a1a4zTM5WmO1A0Bn7PYm8c2NDz+GOzIydmxb6c3YTulaJzb6TvZ1adKMj+Nzeur+mb6bQkscRY7kmOTEz9Ho5Kdwdk8hsxYfXB5e48SfbpkbHVr/9iEulCHqPMj3ehMnIwl8rq+KhLmvmxygZ93rnu0mrbIbYbL72UiuSItMQcOO1VWyvmCG67mpa6n6LMxXiEb67g9Wq9T+3ZDabD9X2pzo9SLG1uGs/PNbisfp5rreciZ2G7xCJcfGdO5aWZvwgvaHb7VismBdW7rT0aoCPNZ8Dazx63WKtNdbSc/sYSWhmxiVwSW/Fvwm4Hhl3MZYKwH77UX5zkP3iNUDGeTKqXXznniidcmWd+TEYH3AZOejl/AjHZqNsXAMat2AeL456ER2bNKq1jrgA/YJDbMbPepHv6UJm0OkDgOnkmTt0qN8b/2E9u3hVpjoYu4qKuYGomhaSTr4rbigAVeJjIH4MwqkruISW26o3qSc9sE7kIMVa3bmjc7oqCY+nZkZ37dyXa+rvCS7H1PRJ+DjIx9oy4Ocif1JpqBrR5eKrD7bl4lrNolyQiycVH167WIe6UK5MZcYVScYHG+LfJOPTm1IBguqPMWemEvHK8lRFJtqcgXPpRY781/1SKkL2IVfpOHvuTNeZVEzlZ+1dHqISZG9AlDqJxUQy0KRdal10y+ya2STpDkNgljL0Ze8yseu2q7LUh4SECw/7nF6QGJYSm5RU6ZddNkIe6nB4qy0MLhFdmlkFhU89Y92qvGWAScCYrWPU5LWE9j4U6aeDIW1S+1xaw+1ICqoMPC7ldTR5meX4oKev5MAgB49JVnNbxlqhjM+6v5MqCe+15tSVjjao0eEmelzVKdxR/8I1cCmgNM/1NwCX/H4ccLnGZKOzeClHtsVkY8XHWIX/9YrDyJLxestlPMNmabT0cXcktquMNtS93S0Dww1yciGHrTKbV4qE3eLlPo0ZTGbCNCCmgzGy0M8EKxnLPOJR2Q41fsSckSWpf4eFmTb7d90VxorSmAr7sDycIAOP7VjcDccO+SxmLLiDqMjpzs3AWstQlTFKQqvMWJGEcApHcOm1NlZovA1wfXwGXL5EIO0UZPS5twEyGcqqhIa6wMY/6zCSy7i4yzjmzDg2g+vEskNP5rwFtCepXhRzSCfyMfuI2iqBVsDGBawMuBqDUKzGwNN99MKf5l4IPtqmp3+T/yyUJQUCHuIvfOcOUFQYHdduLHJ6TBhcM92s9FiuAWsmYHVycF/OGcdau3dSBVY9334NnEjCwSmEDT9WxXP509sA1+AYdtj5PQNsFWT06dcC2Rnjo4JsGE8mbuOz+fEOZd/n+97Kv8hm0O8ENIDpEtAsZqM7Md+Z7fGQ1pntSHb0PADu2MCEekcG3sQmR3ZwzH3V/7kH9ufKkGkEEoGJWbcCaqbPHE9vIPy3bz0YOOeAhW0VWM5eUCJ20zzDWvNwbXTx1l/kxIavVfEMrhdvEVx/WAWXWNuhTz7pZeLv+HOfBpHfEvBE5N/+1Hc7+vcPg/yzv0Z3Kg3hPhs7VNlfULpU6XLSqer7YF3zuVuV2PidIPKeyO5V30VYayBfXQW5vQvyzFp2l1pIXdDBSseo6bN2sRIdo3YMcn8Mcn2ttnzpaqWLdbaagg5Zsw5X0+wdoKYgxzlYm7mjd7qy/SefP20O9bW26bYUwlxa3B39vb6eF98ntmOi66wd+r5t97dtn9Qf661lR/3djrSPxj7ik27Ya19KHWNZNIayNIja4lImL9QX2ffXm4zGiXgtPoGHTiR+7xN3ZF+vk9xrYljj3St3BW1/L3G6vS0pFQWWNic0xqq94QuwxOf/xrCmazcyXlD1j3jrdrCWbMRbMpgZMhTu/sjgkjLBTQ7y+9/3J/LHBlltzT2ATLwlnC57NU1+JvLi+9IWThxcuijA3n23POuwGUWbtojTZVLQ3Qd59qwMBn1joM3BipIVREFHavrrEWz6+uBg06E389wDzn4u9l0BXT0TcRtM475YGDTjwiAS39caLTuY/OUJoPT9w71cBJWiKO8L+NSc0hzhmwJLJb5OuoCksS5joS5iLXHWEmmSUFZYS844hfK3AZf87ne5AMw2boDMACbyxiCT30jf+17WQfYhXhPImM1+ahMArrOZvb5ygHkvRmO1RwBNpLT/VqCBwaKvZ7BNDsI1sAFgMrCbAWlqx4lBB6bDcqRtvP51FnQqZxAJA8nfZNqmyeEHOQWUvjcwrYBKRrbal23oqYJ1CjDxmU0vAQtjthaAyIG2xlqrLuEoCWXdKZShtlBd8zcFl/SOYbf87ne2vgFM3jLIhIFGIJOVSSbEwfXhhwSyc5Jxg80gG+UM0HQiCnGg3Wh/fZ+UQhxodqIGVrN2BwAdSUjd70BgkxXA4b3QOmY6LIFZ6gcjrAeREDMJgQkAkgFQdduu2ONXBCpxtkoEKnG2khVgacW7tqpWQGnb5+UCsFgObrGWnJGE40j7TTNjpXBX3i64ZKVfbL/gg2v2/SXjQx7pMNaBm35gOCnNLqPVMcIA8R6MXWOd++Yy3Wy4jfq4gjtFlfowQ/bkau0oaNe7+ux9LJAkRSK6BvVkkNwO5sg8mALL2jppDzMTHi6bCtV48Ef3M4bfP1atj78f39n+/jDUc0o/YoGPBc9YcuIKDjOYdMd+cAdvHppL3JlaN61XIYyM4+AScrz1xRBv/a3BNSw9g8kKi8nbZLLXiMs6yTiwGWKzLdko0sdnbISMjKaLspoODDVGW5GP4mwFCSnEbHX9XN4/IaYCwwmtY6bDwoz3thYwEhZmJmEWI4baexwlHFMNTNXJQmIuyMAnV85YfgOz87zCWDAwOM4SYqoTOeix1g+RhLIRb8lbBBexl6wCTP4/AJlcMEBeRzba+jNAE3cdxYHWycdHgg3vGXBCoJtGOejgxMLgOsgPWzpQ7ehkU/yEBZLPju0AKAbRo0FFMlB8BhOR88CS15WDZ4wMGSSh/H3BJYI+xEvsEwAAAz1JREFUtSfTk14Amay4i7p8MILs/wZRlF0yP+QN2EzgNI4myFsAGgB27+8Rq9k+Drb7XbBZOR78PQNORDqjBNsFoPMVTy4wlzHg5tay3NOFv7YwK4kDid6a64f3I6DE1+nIhwODSr++x1bibFUB9haAxSaGSHMIT2IteSRrnTEz9H885ERW6nAvuYWyDq4yuU7GZL8/Esjkb8Rm52TjCLTRDJFLYHNWE4BtYDZ5BOCEQAe08b68PLyhXLza9SeRQcIr0gDIc4CSFaYSBxPcQNkAlcBuJ/NC1oD1GnJQfkTWkrcLLmkMhuVNQSa9ZPwhIBNyGXU5x2byhkDD63NAE4DtmdQENphtTUaKrANOCEiyATyRXlr+0OVug9UYSEL7rAJKlxX51zHVIdscWwoq8fngtoAFMP0QYG2ylsjp6OMfCq6V2sLXBJecAkzeHsheJy6TLStfttmMgfbd90E+cNm4CTSSjnJGPsoZVhNiNhliNhnYTRdNZt/Q36vvFXXXtI7Bh+WE0Vb2kRUQ3V3Y59b/dxhjsRVAyUpMJcRUcoatzslAeSSwdJTGuxtyUC6xFrmE8hbiLXkzcInP0BZOMfUjgkzehM3kcUDj+Owc0DBZoGzJxyFWkzVmG8DG7Ib3wqDDG3+63wBNt/66ezpZbrHitm0ZwcPrARy8OAGTHZCepWSQfzIwFcdWN0+2ZSCazoicB9a5OEsuAEvegLV+RHCVyXiw9jEgkzPJaNkAmbymZJQLbCbyiPjsDNCEXMdRPuqyFavJwGy6nGM3OQM6aVizZQTgD15etR/wxIFCq86CSTZYStaYaiO2EjmVgcKu4AVgybk4S+StsJZsxFtyAVyrwJJVcIkwwOTvAbLBZZS3yGayBTSy9y+xmsg6swmBTc4ATlZAJww8aeDjbT9kGcFik2bLOpBkAJNsAEoG+TcylQyxlbHVIAOFXMFzwHrbrCV/P3DJCcDkB4BMfgTJKCtsJm8AtDFG0+X9DaAxqwnApi+I2WSI2XTp5ORDMUdE5ERWYuFE92OWEXhrYNlakOjtjiHJPby4vhpkHxaKqQSg+s7+W42tRC4Di2MsXd4IWG/AWm9VEuqyDS4Rkf8Hs2g1eJgWrPMAAAAASUVORK5CYII="/>\n</defs>\n</svg>\n',`${(void 0===e&&(e=16),Array.from({length:8}).map(()=>Math.floor(Math.random()*e).toString(e)).join(""))}_`),1)}})},90167:function(e){"use strict";e.exports=SYNO.SDS.Drive.ModalWindow},96494:function(e){"use strict";e.exports=SYNO.SDS.Drive.Utils},49781:function(e){"use strict";e.exports=SYNO.SDS.Utils.ClipBoardComposite},34877:function(e){"use strict";e.exports=_Pinia},63447:function(e){"use strict";e.exports=_Vue},30947:function(e){"use strict";e.exports=synowebapi.promises},28167:function(e,t,i){"use strict";var n=i(51777),o=i(37752),r=TypeError;e.exports=function(e){if(n(e))return e;throw new r(o(e)+" is not a function")}},5014:function(e,t,i){"use strict";var n=i(66465).has;e.exports=function(e){return n(e),e}},28445:function(e,t,i){"use strict";var n=i(54979),o=TypeError;e.exports=function(e,t){if(n(t,e))return e;throw new o("Incorrect invocation")}},31407:function(e,t,i){"use strict";var n=i(57893),o=String,r=TypeError;e.exports=function(e){if(n(e))return e;throw new r(o(e)+" is not an object")}},60081:function(e,t,i){"use strict";var n=i(74200),o=i(60589),r=i(89876),a=function(e){return function(t,i,a){var s,l=n(t),c=r(l);if(0===c)return!e&&-1;var d=o(a,c);if(e&&i!=i){for(;c>d;)if((s=l[d++])!=s)return!0}else for(;c>d;d++)if((e||d in l)&&l[d]===i)return e||d||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},45701:function(e,t,i){"use strict";var n=i(75e3),o=i(8728),r=TypeError,a=Object.getOwnPropertyDescriptor;e.exports=n&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}()?function(e,t){if(o(e)&&!a(e,"length").writable)throw new r("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},28595:function(e,t,i){"use strict";var n=i(31407),o=i(59325);e.exports=function(e,t,i,r){try{return r?t(n(i)[0],i[1]):t(i)}catch(t){o(e,"throw",t)}}},87844:function(e,t,i){"use strict";var n=i(8872),o=n({}.toString),r=n("".slice);e.exports=function(e){return r(o(e),8,-1)}},2937:function(e,t,i){"use strict";var n=i(68290),o=i(51777),r=i(87844),a=i(44464)("toStringTag"),s=Object,l="Arguments"===r(function(){return arguments}()),c=function(e,t){try{return e[t]}catch(e){}};e.exports=n?r:function(e){var t,i,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(i=c(t=s(e),a))?i:l?r(t):"Object"===(n=r(t))&&o(t.callee)?"Arguments":n}},67745:function(e,t,i){"use strict";var n=i(76279),o=i(25119),r=i(85690),a=i(68795);e.exports=function(e,t,i){for(var s=o(t),l=a.f,c=r.f,d=0;d<s.length;d++){var u=s[d];n(e,u)||i&&n(i,u)||l(e,u,c(t,u))}}},62786:function(e,t,i){"use strict";e.exports=!i(29764)(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})},31877:function(e){"use strict";e.exports=function(e,t){return{value:e,done:t}}},39178:function(e,t,i){"use strict";var n=i(75e3),o=i(68795),r=i(33759);e.exports=n?function(e,t,i){return o.f(e,t,r(1,i))}:function(e,t,i){return e[t]=i,e}},33759:function(e){"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},11359:function(e,t,i){"use strict";var n=i(75e3),o=i(68795),r=i(33759);e.exports=function(e,t,i){n?o.f(e,t,r(0,i)):e[t]=i}},6871:function(e,t,i){"use strict";var n=i(28580),o=i(68795);e.exports=function(e,t,i){return i.get&&n(i.get,t,{getter:!0}),i.set&&n(i.set,t,{setter:!0}),o.f(e,t,i)}},32254:function(e,t,i){"use strict";var n=i(51777),o=i(68795),r=i(28580),a=i(6607);e.exports=function(e,t,i,s){s||(s={});var l=s.enumerable,c=void 0!==s.name?s.name:t;if(n(i)&&r(i,c,s),s.global)l?e[t]=i:a(t,i);else{try{s.unsafe?e[t]&&(l=!0):delete e[t]}catch(e){}l?e[t]=i:o.f(e,t,{value:i,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return e}},87061:function(e,t,i){"use strict";var n=i(32254);e.exports=function(e,t,i){for(var o in t)n(e,o,t[o],i);return e}},6607:function(e,t,i){"use strict";var n=i(2129),o=Object.defineProperty;e.exports=function(e,t){try{o(n,e,{value:t,configurable:!0,writable:!0})}catch(i){n[e]=t}return t}},28711:function(e,t,i){"use strict";var n=i(37752),o=TypeError;e.exports=function(e,t){if(!delete e[t])throw new o("Cannot delete property "+n(t)+" of "+n(e))}},75e3:function(e,t,i){"use strict";e.exports=!i(29764)(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})},11597:function(e,t,i){"use strict";var n=i(2129),o=i(57893),r=n.document,a=o(r)&&o(r.createElement);e.exports=function(e){return a?r.createElement(e):{}}},33348:function(e){"use strict";var t=TypeError;e.exports=function(e){if(e>0x1fffffffffffff)throw t("Maximum allowed index exceeded");return e}},31882:function(e){"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},8811:function(e,t,i){"use strict";var n=i(2129).navigator,o=n&&n.userAgent;e.exports=o?String(o):""},50416:function(e,t,i){"use strict";var n,o,r=i(2129),a=i(8811),s=r.process,l=r.Deno,c=s&&s.versions||l&&l.version,d=c&&c.v8;d&&(o=(n=d.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!o&&a&&(!(n=a.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=a.match(/Chrome\/(\d+)/))&&(o=+n[1]),e.exports=o},12827:function(e,t,i){"use strict";var n=i(2129),o=i(85690).f,r=i(39178),a=i(32254),s=i(6607),l=i(67745),c=i(47972);e.exports=function(e,t){var i,d,u,h,p,f=e.target,g=e.global,m=e.stat;if(i=g?n:m?n[f]||s(f,{}):n[f]&&n[f].prototype)for(d in t){if(h=t[d],u=e.dontCallGetSet?(p=o(i,d))&&p.value:i[d],!c(g?d:f+(m?".":"#")+d,e.forced)&&void 0!==u){if(typeof h==typeof u)continue;l(h,u)}(e.sham||u&&u.sham)&&r(h,"sham",!0),a(i,d,h,e)}}},29764:function(e){"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},73895:function(e,t,i){"use strict";var n=i(59675),o=i(28167),r=i(36988),a=n(n.bind);e.exports=function(e,t){return o(e),void 0===t?e:r?a(e,t):function(){return e.apply(t,arguments)}}},36988:function(e,t,i){"use strict";e.exports=!i(29764)(function(){var e=(function(){}).bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})},66843:function(e,t,i){"use strict";var n=i(36988),o=Function.prototype.call;e.exports=n?o.bind(o):function(){return o.apply(o,arguments)}},28909:function(e,t,i){"use strict";var n=i(75e3),o=i(76279),r=Function.prototype,a=n&&Object.getOwnPropertyDescriptor,s=o(r,"name"),l=s&&(!n||n&&a(r,"name").configurable);e.exports={EXISTS:s,PROPER:s&&"something"===(function(){}).name,CONFIGURABLE:l}},30826:function(e,t,i){"use strict";var n=i(8872),o=i(28167);e.exports=function(e,t,i){try{return n(o(Object.getOwnPropertyDescriptor(e,t)[i]))}catch(e){}}},59675:function(e,t,i){"use strict";var n=i(87844),o=i(8872);e.exports=function(e){if("Function"===n(e))return o(e)}},8872:function(e,t,i){"use strict";var n=i(36988),o=Function.prototype,r=o.call,a=n&&o.bind.bind(r,r);e.exports=n?a:function(e){return function(){return r.apply(e,arguments)}}},5720:function(e,t,i){"use strict";var n=i(2129),o=i(51777);e.exports=function(e,t){var i;return arguments.length<2?o(i=n[e])?i:void 0:n[e]&&n[e][t]}},16314:function(e){"use strict";e.exports=function(e){return{iterator:e,next:e.next,done:!1}}},91631:function(e,t,i){"use strict";var n=i(2937),o=i(30150),r=i(17145),a=i(79424),s=i(44464)("iterator");e.exports=function(e){if(!r(e))return o(e,s)||o(e,"@@iterator")||a[n(e)]}},33137:function(e,t,i){"use strict";var n=i(66843),o=i(28167),r=i(31407),a=i(37752),s=i(91631),l=TypeError;e.exports=function(e,t){var i=arguments.length<2?s(e):t;if(o(i))return r(n(i,e));throw new l(a(e)+" is not iterable")}},30150:function(e,t,i){"use strict";var n=i(28167),o=i(17145);e.exports=function(e,t){var i=e[t];return o(i)?void 0:n(i)}},70402:function(e,t,i){"use strict";var n=i(28167),o=i(31407),r=i(66843),a=i(26069),s=i(16314),l="Invalid size",c=RangeError,d=TypeError,u=Math.max,h=function(e,t){this.set=e,this.size=u(t,0),this.has=n(e.has),this.keys=n(e.keys)};h.prototype={getIterator:function(){return s(o(r(this.keys,this.set)))},includes:function(e){return r(this.has,this.set,e)}},e.exports=function(e){o(e);var t=+e.size;if(t!=t)throw new d(l);var i=a(t);if(i<0)throw new c(l);return new h(e,i)}},2129:function(e,t,i){"use strict";var n=function(e){return e&&e.Math===Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof i.g&&i.g)||n("object"==typeof this&&this)||function(){return this}()||Function("return this")()},76279:function(e,t,i){"use strict";var n=i(8872),o=i(19853),r=n({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return r(o(e),t)}},84739:function(e){"use strict";e.exports={}},87867:function(e,t,i){"use strict";e.exports=i(5720)("document","documentElement")},32638:function(e,t,i){"use strict";var n=i(75e3),o=i(29764),r=i(11597);e.exports=!n&&!o(function(){return 7!==Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a})},65126:function(e,t,i){"use strict";var n=i(8872),o=i(29764),r=i(87844),a=Object,s=n("".split);e.exports=o(function(){return!a("z").propertyIsEnumerable(0)})?function(e){return"String"===r(e)?s(e,""):a(e)}:a},65464:function(e,t,i){"use strict";var n=i(8872),o=i(51777),r=i(70248),a=n(Function.toString);o(r.inspectSource)||(r.inspectSource=function(e){return a(e)}),e.exports=r.inspectSource},74294:function(e,t,i){"use strict";var n,o,r,a=i(29065),s=i(2129),l=i(57893),c=i(39178),d=i(76279),u=i(70248),h=i(33450),p=i(84739),f="Object already initialized",g=s.TypeError,m=s.WeakMap;if(a||u.state){var v=u.state||(u.state=new m);v.get=v.get,v.has=v.has,v.set=v.set,n=function(e,t){if(v.has(e))throw new g(f);return t.facade=e,v.set(e,t),t},o=function(e){return v.get(e)||{}},r=function(e){return v.has(e)}}else{var b=h("state");p[b]=!0,n=function(e,t){if(d(e,b))throw new g(f);return t.facade=e,c(e,b,t),t},o=function(e){return d(e,b)?e[b]:{}},r=function(e){return d(e,b)}}e.exports={set:n,get:o,has:r,enforce:function(e){return r(e)?o(e):n(e,{})},getterFor:function(e){return function(t){var i;if(!l(t)||(i=o(t)).type!==e)throw new g("Incompatible receiver, "+e+" required");return i}}}},13430:function(e,t,i){"use strict";var n=i(44464),o=i(79424),r=n("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||a[r]===e)}},8728:function(e,t,i){"use strict";var n=i(87844);e.exports=Array.isArray||function(e){return"Array"===n(e)}},51777:function(e){"use strict";var t="object"==typeof document&&document.all;e.exports=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(e){return"function"==typeof e}},47972:function(e,t,i){"use strict";var n=i(29764),o=i(51777),r=/#|\.prototype\./,a=function(e,t){var i=l[s(e)];return i===d||i!==c&&(o(t)?n(t):!!t)},s=a.normalize=function(e){return String(e).replace(r,".").toLowerCase()},l=a.data={},c=a.NATIVE="N",d=a.POLYFILL="P";e.exports=a},17145:function(e){"use strict";e.exports=function(e){return null==e}},57893:function(e,t,i){"use strict";var n=i(51777);e.exports=function(e){return"object"==typeof e?null!==e:n(e)}},18537:function(e){"use strict";e.exports=!1},35275:function(e,t,i){"use strict";var n=i(5720),o=i(51777),r=i(54979),a=i(15221),s=Object;e.exports=a?function(e){return"symbol"==typeof e}:function(e){var t=n("Symbol");return o(t)&&r(t.prototype,s(e))}},38010:function(e,t,i){"use strict";var n=i(66843);e.exports=function(e,t,i){for(var o,r,a=i?e:e.iterator,s=e.next;!(o=n(s,a)).done;)if(void 0!==(r=t(o.value)))return r}},15694:function(e,t,i){"use strict";var n=i(73895),o=i(66843),r=i(31407),a=i(37752),s=i(13430),l=i(89876),c=i(54979),d=i(33137),u=i(91631),h=i(59325),p=TypeError,f=function(e,t){this.stopped=e,this.result=t},g=f.prototype;e.exports=function(e,t,i){var m,v,b,y,w,_,x,S=i&&i.that,C=!!(i&&i.AS_ENTRIES),k=!!(i&&i.IS_RECORD),I=!!(i&&i.IS_ITERATOR),A=!!(i&&i.INTERRUPTED),T=n(t,S),E=function(e){return m&&h(m,"normal",e),new f(!0,e)},R=function(e){return C?(r(e),A?T(e[0],e[1],E):T(e[0],e[1])):A?T(e,E):T(e)};if(k)m=e.iterator;else if(I)m=e;else{if(!(v=u(e)))throw new p(a(e)+" is not iterable");if(s(v)){for(b=0,y=l(e);y>b;b++)if((w=R(e[b]))&&c(g,w))return w;return new f(!1)}m=d(e,v)}for(_=k?e.next:m.next;!(x=o(_,m)).done;){try{w=R(x.value)}catch(e){h(m,"throw",e)}if("object"==typeof w&&w&&c(g,w))return w}return new f(!1)}},59325:function(e,t,i){"use strict";var n=i(66843),o=i(31407),r=i(30150);e.exports=function(e,t,i){var a,s;o(e);try{if(!(a=r(e,"return"))){if("throw"===t)throw i;return i}a=n(a,e)}catch(e){s=!0,a=e}if("throw"===t)throw i;if(s)throw a;return o(a),i}},19678:function(e,t,i){"use strict";var n=i(66843),o=i(51975),r=i(39178),a=i(87061),s=i(44464),l=i(74294),c=i(30150),d=i(67057).IteratorPrototype,u=i(31877),h=i(59325),p=s("toStringTag"),f="IteratorHelper",g="WrapForValidIterator",m=l.set,v=function(e){var t=l.getterFor(e?g:f);return a(o(d),{next:function(){var i=t(this);if(e)return i.nextHandler();if(i.done)return u(void 0,!0);try{var n=i.nextHandler();return i.returnHandlerResult?n:u(n,i.done)}catch(e){throw i.done=!0,e}},return:function(){var i=t(this),o=i.iterator;if(i.done=!0,e){var r=c(o,"return");return r?n(r,o):u(void 0,!0)}if(i.inner)try{h(i.inner.iterator,"normal")}catch(e){return h(o,"throw",e)}return o&&h(o,"normal"),u(void 0,!0)}})},b=v(!0),y=v(!1);r(y,p,"Iterator Helper"),e.exports=function(e,t,i){var n=function(n,o){o?(o.iterator=n.iterator,o.next=n.next):o=n,o.type=t?g:f,o.returnHandlerResult=!!i,o.nextHandler=e,o.counter=0,o.done=!1,m(this,o)};return n.prototype=t?b:y,n}},47306:function(e,t,i){"use strict";var n=i(66843),o=i(28167),r=i(31407),a=i(16314),s=i(19678),l=i(28595),c=s(function(){var e=this.iterator,t=r(n(this.next,e));if(!(this.done=!!t.done))return l(e,this.mapper,[t.value,this.counter++],!0)});e.exports=function(e){return r(this),o(e),new c(a(this),{mapper:e})}},67057:function(e,t,i){"use strict";var n,o,r,a=i(29764),s=i(51777),l=i(57893),c=i(51975),d=i(85764),u=i(32254),h=i(44464),p=i(18537),f=h("iterator"),g=!1;[].keys&&("next"in(r=[].keys())?(o=d(d(r)))!==Object.prototype&&(n=o):g=!0),!l(n)||a(function(){var e={};return n[f].call(e)!==e})?n={}:p&&(n=c(n)),s(n[f])||u(n,f,function(){return this}),e.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:g}},79424:function(e){"use strict";e.exports={}},89876:function(e,t,i){"use strict";var n=i(16522);e.exports=function(e){return n(e.length)}},28580:function(e,t,i){"use strict";var n=i(8872),o=i(29764),r=i(51777),a=i(76279),s=i(75e3),l=i(28909).CONFIGURABLE,c=i(65464),d=i(74294),u=d.enforce,h=d.get,p=String,f=Object.defineProperty,g=n("".slice),m=n("".replace),v=n([].join),b=s&&!o(function(){return 8!==f(function(){},"length",{value:8}).length}),y=String(String).split("String"),w=e.exports=function(e,t,i){"Symbol("===g(p(t),0,7)&&(t="["+m(p(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),i&&i.getter&&(t="get "+t),i&&i.setter&&(t="set "+t),(!a(e,"name")||l&&e.name!==t)&&(s?f(e,"name",{value:t,configurable:!0}):e.name=t),b&&i&&a(i,"arity")&&e.length!==i.arity&&f(e,"length",{value:i.arity});try{i&&a(i,"constructor")&&i.constructor?s&&f(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var n=u(e);return a(n,"source")||(n.source=v(y,"string"==typeof t?t:"")),e};Function.prototype.toString=w(function(){return r(this)&&h(this).source||c(this)},"toString")},37883:function(e){"use strict";var t=Math.ceil,i=Math.floor;e.exports=Math.trunc||function(e){var n=+e;return(n>0?i:t)(n)}},51975:function(e,t,i){"use strict";var n,o=i(31407),r=i(85557),a=i(31882),s=i(84739),l=i(87867),c=i(11597),d=i(33450),u="prototype",h="script",p=d("IE_PROTO"),f=function(){},g=function(e){return"<"+h+">"+e+"</"+h+">"},m=function(e){e.write(g("")),e.close();var t=e.parentWindow.Object;return e=null,t},v=function(){var e,t=c("iframe");return t.style.display="none",l.appendChild(t),t.src=String("java"+h+":"),(e=t.contentWindow.document).open(),e.write(g("document.F=Object")),e.close(),e.F},b=function(){try{n=new ActiveXObject("htmlfile")}catch(e){}b="undefined"!=typeof document?document.domain&&n?m(n):v():m(n);for(var e=a.length;e--;)delete b[u][a[e]];return b()};s[p]=!0,e.exports=Object.create||function(e,t){var i;return null!==e?(f[u]=o(e),i=new f,f[u]=null,i[p]=e):i=b(),void 0===t?i:r.f(i,t)}},85557:function(e,t,i){"use strict";var n=i(75e3),o=i(5417),r=i(68795),a=i(31407),s=i(74200),l=i(7260);t.f=n&&!o?Object.defineProperties:function(e,t){a(e);for(var i,n=s(t),o=l(t),c=o.length,d=0;c>d;)r.f(e,i=o[d++],n[i]);return e}},68795:function(e,t,i){"use strict";var n=i(75e3),o=i(32638),r=i(5417),a=i(31407),s=i(28237),l=TypeError,c=Object.defineProperty,d=Object.getOwnPropertyDescriptor,u="enumerable",h="configurable",p="writable";t.f=n?r?function(e,t,i){if(a(e),t=s(t),a(i),"function"==typeof e&&"prototype"===t&&"value"in i&&p in i&&!i[p]){var n=d(e,t);n&&n[p]&&(e[t]=i.value,i={configurable:h in i?i[h]:n[h],enumerable:u in i?i[u]:n[u],writable:!1})}return c(e,t,i)}:c:function(e,t,i){if(a(e),t=s(t),a(i),o)try{return c(e,t,i)}catch(e){}if("get"in i||"set"in i)throw new l("Accessors not supported");return"value"in i&&(e[t]=i.value),e}},85690:function(e,t,i){"use strict";var n=i(75e3),o=i(66843),r=i(47755),a=i(33759),s=i(74200),l=i(28237),c=i(76279),d=i(32638),u=Object.getOwnPropertyDescriptor;t.f=n?u:function(e,t){if(e=s(e),t=l(t),d)try{return u(e,t)}catch(e){}if(c(e,t))return a(!o(r.f,e,t),e[t])}},55963:function(e,t,i){"use strict";var n=i(22778),o=i(31882).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,o)}},90898:function(e,t){"use strict";t.f=Object.getOwnPropertySymbols},85764:function(e,t,i){"use strict";var n=i(76279),o=i(51777),r=i(19853),a=i(33450),s=i(62786),l=a("IE_PROTO"),c=Object,d=c.prototype;e.exports=s?c.getPrototypeOf:function(e){var t=r(e);if(n(t,l))return t[l];var i=t.constructor;return o(i)&&t instanceof i?i.prototype:t instanceof c?d:null}},54979:function(e,t,i){"use strict";e.exports=i(8872)({}.isPrototypeOf)},22778:function(e,t,i){"use strict";var n=i(8872),o=i(76279),r=i(74200),a=i(60081).indexOf,s=i(84739),l=n([].push);e.exports=function(e,t){var i,n=r(e),c=0,d=[];for(i in n)!o(s,i)&&o(n,i)&&l(d,i);for(;t.length>c;)o(n,i=t[c++])&&(~a(d,i)||l(d,i));return d}},7260:function(e,t,i){"use strict";var n=i(22778),o=i(31882);e.exports=Object.keys||function(e){return n(e,o)}},47755:function(e,t){"use strict";var i={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor;t.f=n&&!i.call({1:2},1)?function(e){var t=n(this,e);return!!t&&t.enumerable}:i},71674:function(e,t,i){"use strict";var n=i(66843),o=i(51777),r=i(57893),a=TypeError;e.exports=function(e,t){var i,s;if("string"===t&&o(i=e.toString)&&!r(s=n(i,e))||o(i=e.valueOf)&&!r(s=n(i,e))||"string"!==t&&o(i=e.toString)&&!r(s=n(i,e)))return s;throw new a("Can't convert object to primitive value")}},25119:function(e,t,i){"use strict";var n=i(5720),o=i(8872),r=i(55963),a=i(90898),s=i(31407),l=o([].concat);e.exports=n("Reflect","ownKeys")||function(e){var t=r.f(s(e)),i=a.f;return i?l(t,i(e)):t}},63797:function(e,t,i){"use strict";var n=i(17145),o=TypeError;e.exports=function(e){if(n(e))throw new o("Can't call method on "+e);return e}},67042:function(e,t,i){"use strict";var n=i(66465),o=i(74439),r=n.Set,a=n.add;e.exports=function(e){var t=new r;return o(e,function(e){a(t,e)}),t}},54718:function(e,t,i){"use strict";var n=i(5014),o=i(66465),r=i(67042),a=i(71827),s=i(70402),l=i(74439),c=i(38010),d=o.has,u=o.remove;e.exports=function(e){var t=n(this),i=s(e),o=r(t);return a(t)<=i.size?l(t,function(e){i.includes(e)&&u(o,e)}):c(i.getIterator(),function(e){d(t,e)&&u(o,e)}),o}},66465:function(e,t,i){"use strict";var n=i(8872),o=Set.prototype;e.exports={Set:Set,add:n(o.add),has:n(o.has),remove:n(o.delete),proto:o}},68404:function(e,t,i){"use strict";var n=i(5014),o=i(66465),r=i(71827),a=i(70402),s=i(74439),l=i(38010),c=o.Set,d=o.add,u=o.has;e.exports=function(e){var t=n(this),i=a(e),o=new c;return r(t)>i.size?l(i.getIterator(),function(e){u(t,e)&&d(o,e)}):s(t,function(e){i.includes(e)&&d(o,e)}),o}},18153:function(e,t,i){"use strict";var n=i(5014),o=i(66465).has,r=i(71827),a=i(70402),s=i(74439),l=i(38010),c=i(59325);e.exports=function(e){var t=n(this),i=a(e);if(r(t)<=i.size)return!1!==s(t,function(e){if(i.includes(e))return!1},!0);var d=i.getIterator();return!1!==l(d,function(e){if(o(t,e))return c(d,"normal",!1)})}},24462:function(e,t,i){"use strict";var n=i(5014),o=i(71827),r=i(74439),a=i(70402);e.exports=function(e){var t=n(this),i=a(e);return!(o(t)>i.size)&&!1!==r(t,function(e){if(!i.includes(e))return!1},!0)}},213:function(e,t,i){"use strict";var n=i(5014),o=i(66465).has,r=i(71827),a=i(70402),s=i(38010),l=i(59325);e.exports=function(e){var t=n(this),i=a(e);if(r(t)<i.size)return!1;var c=i.getIterator();return!1!==s(c,function(e){if(!o(t,e))return l(c,"normal",!1)})}},74439:function(e,t,i){"use strict";var n=i(8872),o=i(38010),r=i(66465),a=r.Set,s=r.proto,l=n(s.forEach),c=n(s.keys),d=c(new a).next;e.exports=function(e,t,i){return i?o({iterator:c(e),next:d},t):l(e,t)}},72495:function(e,t,i){"use strict";var n=i(5720),o=function(e){return{size:e,has:function(){return!1},keys:function(){return{next:function(){return{done:!0}}}}}},r=function(e){return{size:e,has:function(){return!0},keys:function(){throw Error("e")}}};e.exports=function(e,t){var i=n("Set");try{new i()[e](o(0));try{return new i()[e](o(-1)),!1}catch(n){if(!t)return!0;try{return new i()[e](r(-1/0)),!1}catch(n){var a=new i;return a.add(1),a.add(2),t(a[e](r(1/0)))}}}catch(e){return!1}}},71827:function(e,t,i){"use strict";e.exports=i(30826)(i(66465).proto,"size","get")||function(e){return e.size}},6036:function(e,t,i){"use strict";var n=i(5014),o=i(66465),r=i(67042),a=i(70402),s=i(38010),l=o.add,c=o.has,d=o.remove;e.exports=function(e){var t=n(this),i=a(e).getIterator(),o=r(t);return s(i,function(e){c(t,e)?d(o,e):l(o,e)}),o}},87467:function(e,t,i){"use strict";var n=i(5014),o=i(66465).add,r=i(67042),a=i(70402),s=i(38010);e.exports=function(e){var t=n(this),i=a(e).getIterator(),l=r(t);return s(i,function(e){o(l,e)}),l}},33450:function(e,t,i){"use strict";var n=i(87570),o=i(57125),r=n("keys");e.exports=function(e){return r[e]||(r[e]=o(e))}},70248:function(e,t,i){"use strict";var n=i(18537),o=i(2129),r=i(6607),a="__core-js_shared__",s=e.exports=o[a]||r(a,{});(s.versions||(s.versions=[])).push({version:"3.41.0",mode:n?"pure":"global",copyright:"\xa9 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.41.0/LICENSE",source:"https://github.com/zloirock/core-js"})},87570:function(e,t,i){"use strict";var n=i(70248);e.exports=function(e,t){return n[e]||(n[e]=t||{})}},8425:function(e,t,i){"use strict";var n=i(50416),o=i(29764),r=i(2129).String;e.exports=!!Object.getOwnPropertySymbols&&!o(function(){var e=Symbol("symbol detection");return!r(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41})},60589:function(e,t,i){"use strict";var n=i(26069),o=Math.max,r=Math.min;e.exports=function(e,t){var i=n(e);return i<0?o(i+t,0):r(i,t)}},74200:function(e,t,i){"use strict";var n=i(65126),o=i(63797);e.exports=function(e){return n(o(e))}},26069:function(e,t,i){"use strict";var n=i(37883);e.exports=function(e){var t=+e;return t!=t||0===t?0:n(t)}},16522:function(e,t,i){"use strict";var n=i(26069),o=Math.min;e.exports=function(e){var t=n(e);return t>0?o(t,0x1fffffffffffff):0}},19853:function(e,t,i){"use strict";var n=i(63797),o=Object;e.exports=function(e){return o(n(e))}},28073:function(e,t,i){"use strict";var n=i(66843),o=i(57893),r=i(35275),a=i(30150),s=i(71674),l=i(44464),c=TypeError,d=l("toPrimitive");e.exports=function(e,t){if(!o(e)||r(e))return e;var i,l=a(e,d);if(l){if(void 0===t&&(t="default"),!o(i=n(l,e,t))||r(i))return i;throw new c("Can't convert object to primitive value")}return void 0===t&&(t="number"),s(e,t)}},28237:function(e,t,i){"use strict";var n=i(28073),o=i(35275);e.exports=function(e){var t=n(e,"string");return o(t)?t:t+""}},68290:function(e,t,i){"use strict";var n=i(44464)("toStringTag"),o={};o[n]="z",e.exports="[object z]"===String(o)},37752:function(e){"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},57125:function(e,t,i){"use strict";var n=i(8872),o=0,r=Math.random(),a=n(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++o+r,36)}},15221:function(e,t,i){"use strict";e.exports=i(8425)&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},5417:function(e,t,i){"use strict";var n=i(75e3),o=i(29764);e.exports=n&&o(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})},29065:function(e,t,i){"use strict";var n=i(2129),o=i(51777),r=n.WeakMap;e.exports=o(r)&&/native code/.test(String(r))},44464:function(e,t,i){"use strict";var n=i(2129),o=i(87570),r=i(76279),a=i(57125),s=i(8425),l=i(15221),c=n.Symbol,d=o("wks"),u=l?c.for||c:c&&c.withoutSetter||a;e.exports=function(e){return r(d,e)||(d[e]=s&&r(c,e)?c[e]:u("Symbol."+e)),d[e]}},60080:function(e,t,i){"use strict";var n=i(12827),o=i(19853),r=i(89876),a=i(45701),s=i(28711),l=i(33348);n({target:"Array",proto:!0,arity:1,forced:1!==[].unshift(0)||!function(){try{Object.defineProperty([],"length",{writable:!1}).unshift()}catch(e){return e instanceof TypeError}}()},{unshift:function(e){var t=o(this),i=r(t),n=arguments.length;if(n){l(i+n);for(var c=i;c--;){var d=c+n;c in t?t[d]=t[c]:s(t,d)}for(var u=0;u<n;u++)t[u]=arguments[u]}return a(t,i+n)}})},95799:function(e,t,i){"use strict";var n=i(12827),o=i(2129),r=i(28445),a=i(31407),s=i(51777),l=i(85764),c=i(6871),d=i(11359),u=i(29764),h=i(76279),p=i(44464),f=i(67057).IteratorPrototype,g=i(75e3),m=i(18537),v="constructor",b="Iterator",y=p("toStringTag"),w=TypeError,_=o[b],x=m||!s(_)||_.prototype!==f||!u(function(){_({})}),S=function(){if(r(this,f),l(this)===f)throw new w("Abstract class Iterator not directly constructable")},C=function(e,t){g?c(f,e,{configurable:!0,get:function(){return t},set:function(t){if(a(this),this===f)throw new w("You can't redefine this property");h(this,e)?this[e]=t:d(this,e,t)}}):f[e]=t};h(f,y)||C(y,b),(x||!h(f,v)||f[v]===Object)&&C(v,S),S.prototype=f,n({global:!0,constructor:!0,forced:x},{Iterator:S})},43243:function(e,t,i){"use strict";var n=i(12827),o=i(15694),r=i(28167),a=i(31407),s=i(16314);n({target:"Iterator",proto:!0,real:!0},{every:function(e){a(this),r(e);var t=s(this),i=0;return!o(t,function(t,n){if(!e(t,i++))return n()},{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},56392:function(e,t,i){"use strict";var n=i(12827),o=i(66843),r=i(28167),a=i(31407),s=i(16314),l=i(19678),c=i(28595),d=i(18537),u=l(function(){for(var e,t,i=this.iterator,n=this.predicate,r=this.next;;){if(e=a(o(r,i)),this.done=!!e.done)return;if(c(i,n,[t=e.value,this.counter++],!0))return t}});n({target:"Iterator",proto:!0,real:!0,forced:d},{filter:function(e){return a(this),r(e),new u(s(this),{predicate:e})}})},29693:function(e,t,i){"use strict";var n=i(12827),o=i(15694),r=i(28167),a=i(31407),s=i(16314);n({target:"Iterator",proto:!0,real:!0},{find:function(e){a(this),r(e);var t=s(this),i=0;return o(t,function(t,n){if(e(t,i++))return n(t)},{IS_RECORD:!0,INTERRUPTED:!0}).result}})},46159:function(e,t,i){"use strict";var n=i(12827),o=i(15694),r=i(28167),a=i(31407),s=i(16314);n({target:"Iterator",proto:!0,real:!0},{forEach:function(e){a(this),r(e);var t=s(this),i=0;o(t,function(t){e(t,i++)},{IS_RECORD:!0})}})},60310:function(e,t,i){"use strict";var n=i(12827),o=i(47306);n({target:"Iterator",proto:!0,real:!0,forced:i(18537)},{map:o})},32467:function(e,t,i){"use strict";var n=i(12827),o=i(15694),r=i(28167),a=i(31407),s=i(16314),l=TypeError;n({target:"Iterator",proto:!0,real:!0},{reduce:function(e){a(this),r(e);var t=s(this),i=arguments.length<2,n=i?void 0:arguments[1],c=0;if(o(t,function(t){i?(i=!1,n=t):n=e(n,t,c),c++},{IS_RECORD:!0}),i)throw new l("Reduce of empty iterator with no initial value");return n}})},30748:function(e,t,i){"use strict";var n=i(12827),o=i(15694),r=i(28167),a=i(31407),s=i(16314);n({target:"Iterator",proto:!0,real:!0},{some:function(e){a(this),r(e);var t=s(this),i=0;return o(t,function(t,n){if(e(t,i++))return n()},{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},8416:function(e,t,i){"use strict";var n=i(12827),o=i(54718);n({target:"Set",proto:!0,real:!0,forced:!i(72495)("difference",function(e){return 0===e.size})},{difference:o})},93118:function(e,t,i){"use strict";var n=i(12827),o=i(29764),r=i(68404);n({target:"Set",proto:!0,real:!0,forced:!i(72495)("intersection",function(e){return 2===e.size&&e.has(1)&&e.has(2)})||o(function(){return"3,2"!==String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))})},{intersection:r})},82766:function(e,t,i){"use strict";var n=i(12827),o=i(18153);n({target:"Set",proto:!0,real:!0,forced:!i(72495)("isDisjointFrom",function(e){return!e})},{isDisjointFrom:o})},37151:function(e,t,i){"use strict";var n=i(12827),o=i(24462);n({target:"Set",proto:!0,real:!0,forced:!i(72495)("isSubsetOf",function(e){return e})},{isSubsetOf:o})},20142:function(e,t,i){"use strict";var n=i(12827),o=i(213);n({target:"Set",proto:!0,real:!0,forced:!i(72495)("isSupersetOf",function(e){return!e})},{isSupersetOf:o})},89909:function(e,t,i){"use strict";var n=i(12827),o=i(6036);n({target:"Set",proto:!0,real:!0,forced:!i(72495)("symmetricDifference")},{symmetricDifference:o})},24578:function(e,t,i){"use strict";var n=i(12827),o=i(87467);n({target:"Set",proto:!0,real:!0,forced:!i(72495)("union")},{union:o})},95790:function(e,t,i){"use strict";i(95799)},39908:function(e,t,i){"use strict";i(43243)},2850:function(e,t,i){"use strict";i(56392)},95922:function(e,t,i){"use strict";i(29693)},60919:function(e,t,i){"use strict";i(46159)},53346:function(e,t,i){"use strict";i(60310)},5556:function(e,t,i){"use strict";i(32467)},29127:function(e,t,i){"use strict";i(30748)},66794:function(e,t,i){"use strict";i.d(t,{Z:()=>n});var n=(e,t)=>{let i=e.__vccOpts||e;for(let[e,n]of t)i[e]=n;return i}},76293:function(e,t,i){"use strict";i.d(t,{Z:()=>M});var n=i(40172),o=i(63707),r=i(54730),a=i(83717),s=i(31755),l=i(29668),c=i(89641),d=i(71283),u=i(63447),h=(0,u.defineComponent)({name:"ButtonDropdown",mixins:[(0,s.f)("button")],emits:["update:is-open"],data:()=>({dropdownItem:null}),async mounted(){(0,d.D8)("button-dropdown is deprecated, please use button with dropdown slot directly instead"),this.button&&(this.button.register(this),await this.$nextTick(),this.getDropdownItem())},[o.mT.beforeUnmount](){this.button&&this.button.unregister(this),this.dropdownItem&&(this.dropdownItem=null)},methods:{getDropdownItem(){let e=(0,l.g)((0,c.getChildren)(this));this.dropdownItem=e,this.button.instance?.$el&&this.dropdownItem?.setTriggerButton?.(this.button.instance.$el),this.dropdownItem.$on("update:is-open",e=>this.$emit("update:is-open",e))}},render(){return(0,a.FJ)(this)?.default()}}),p=i(65698),f=i(64794),g=i(31842),m=i(2176),v=i(96868),b=i(74318),y=i(9022),w=i(74999),_=i(71367),x=i(23886),S=i(49098),C=i(88446),k=i(70243);(0,y.z)("btn-arrow",w.zw);let I={NORMAL:"normal",SMALL:"small"},A=["","footbar","dropdown","styleless-dropdown","styleless","split","border","border-dropdown","border-split","footbar-border","footbar-border-dropdown","welcome","round","round-border"];var T=(0,u.defineComponent)({name:"Button",components:{vIcon:x.Z,vPortal:S.Z},directives:{clickoutside:p.ZP,tooltip:f.Z},mixins:[v.ZP,m.ZP,(0,s.J)("trigger-action",["closeDropdown",{expose:"focusTrigger",internal:"focus"}]),b.Z,(0,s.f)("breakpoint-buttons-group"),y.Z,(0,C.W)("button")],props:{type:{type:(0,k.C)(String),default:"",validator:e=>A.includes(e)},size:{type:(0,k.C)(String),default:I.NORMAL,validator:e=>Object.values(I).includes(e)},display:{type:(0,k.C)(String),default:"text",validator:e=>["text","icon","icon-text"].includes(e)},suffix:{type:(0,k.C)(String),default:"grey"},htmlType:{type:(0,k.C)(String),default:"button"},disabled:{type:Boolean,default:!1},icon:{type:String,default:void 0},alignment:{type:(0,k.C)([Object,String]),default:()=>({pos:"tl->bl",offset:[0,1],opts:{constrainHeight:!1}})},menuAlign:{type:String,default:void 0},menuConstrainHeight:{type:Boolean,default:void 0},tooltip:{type:(0,k.C)([Object,String,Boolean]),default:!1},dropdownOffset:{type:Array,default:()=>{}},useBreakpoint:{type:Boolean,default:!0},name:{type:String,default:""},mobileBreakpoint:{type:(0,k.C)([String,Boolean]),default:"xxs"},active:{type:Boolean,default:!1},getExtraElements:{type:(0,k.C)(Function),default:void 0},dropdownIcon:{type:Object,default:()=>({})}},emits:["click","dropdown-show","dropdown-open","dropdown-close","click-dropdown"],data:()=>({prefixCls:"v-btn",clickTimer:null,hasDropdownSlot:!1,dropdownShown:!1,dropdownItem:null}),computed:{isMobile(){return!this.$breakpointManager&&this.mobileBreakpoint?((0,d.D8)("please import and use BreakpointManagerPlugin when you are in tree-shaking mode or breakpoint will not active."),!1):this.mobileBreakpoint&&this.$breakpointManager?.lessAndEqThan(this.mobileBreakpoint)},isStyleless(){return this.type.includes("styleless")},isDropdown(){return this.type.includes("dropdown")},hasDropdown(){return this.isDropdown||this.isSplitMode},isSplitMode(){return this.type.includes("split")},isBorder(){return this.type.includes("border")},dropdownSvgIconSet(){return this.isBorder?"set13":this.isStyleless||"grey"==this.suffix||"cancel"===this.suffix?"set01":"set02"},innerDropdownIconBinding(){return this.getButtonConfigValue("dropdownIcon")},btnClassObj(){let{prefixCls:e,type:t,suffix:i,icon:n}=this;return{[e]:!0,[`${e}-${t}`]:t,[`${e}-styleless`]:this.isStyleless,[`${e}-${i}`]:i,[`${e}-${this.size}`]:this.size,[`${e}-menu-shown`]:this.dropdownShown,[`${e}-dropdown-shown`]:this.dropdownShown,[`${e}-pressed`]:this.dropdownShown,[`${e}-active`]:this.active,[`${e}-dropdown`]:this.hasDropdown,[`${e}-split`]:this.isSplitMode,[`${e}-disabled`]:this.disabled,mobile:this.isMobile,[`${e}-display-${this.display}`]:!0,...n&&{[n]:!0}}},ariaLabel(){if(this.icon){let e=this.getTip();return e&&e.content||this.name}},innerAlignment(){((0,r.$K)(this.menuAlign)||(0,r.$K)(this.dropdownOffset)||(0,r.$K)(this.menuConstrainHeight))&&(0,d.D8)("The prop 'menuAlign', 'dropdownOffset', 'menuConstrainHeight' is deprecated, please use 'alignment' instead.");let e=this.getPopupConfigValue("alignment");return(0,r.HD)(e)&&(e={pos:e}),(0,n.Z)(e,{pos:this.menuAlign,offset:this.dropdownOffset,opts:{constrainHeight:this.menuConstrainHeight}})}},watch:{dropdownShown:{async handler(e){(0,_.Qy)(this,"dropdown-show",e),(0,_.Qy)(this,!0===e?"dropdown-open":"dropdown-close",e)},immediate:!0}},mounted(){this["breakpoint-buttons-group"]&&this.useBreakpoint&&this["breakpoint-buttons-group"].register(this),this.hasDropdownSlot=(0,a._Y)(this,"dropdown")},[o.mT.beforeUnmount](){this["breakpoint-buttons-group"]&&this.useBreakpoint&&this["breakpoint-buttons-group"].unregister(this),this.clearDropdownItem()},methods:{innerGetExtraElements(){let e=this.getExtraElements?.()??[];return e=(0,r.kJ)(e)?e:[e],[this.$el,...e]},focus(){this.$el?.focus()},closeDropdown(){this.dropdownShown=!1},hasDefaultSlot(){return(0,a._Y)(this,"default")},hasIconSlot(){return(0,a._Y)(this,"icon")},onClickoutside(){this.closeDropdown()},getTip(){return!1!==this.tooltip&&((0,r.Kn)(this.tooltip)?this.tooltip:{content:this.tooltip})},setDropdownItem(e){this.clearDropdownItem(),this.dropdownItem=e},clearDropdownItem(){this.dropdownItem&&(this.dropdownItem=null)},register(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>{};((0,r.Nr)(e,g.Z)||(0,r.mf)(e.isMenu)&&e.isMenu()||(0,r.Nr)(e,h))&&(this.setDropdownItem(e),t(this))},unregister(e){e&&this.dropdownItem===e&&this.clearDropdownItem()},handleClick(e){this.disabled||(e.stopPropagation(),this.hasDropdownSlot&&(this.isSplitMode?this.dropdownShown=!1:this.dropdownShown=!this.dropdownShown),this.dispatch("ButtonGroup","button.click",this),(0,_.Qy)(this,"click",e))},handleDropdownBtnClick(e){this.disabled||this.isSplitMode&&(e.stopPropagation(),this.dropdownShown=!this.dropdownShown,(0,_.Qy)(this,"click-dropdown",e))},handleKeydown(e){this.hasDropdown&&e.stopPropagation(),this.dropdownShown=!0},onDropdownAligned(e){this.dropdownItem?.tryConstrain(e)}}}),E=i(66794);let R=["type","aria-haspopup","aria-expanded","aria-disabled","aria-label","role"],D={key:0,class:"v-btn-content"},O=(0,u.createElementVNode)("i",{class:"split-div"},null,-1);var M=(0,E.Z)(T,[["render",function(e,t,i,n,o,r){let a=(0,u.resolveComponent)("v-icon"),s=(0,u.resolveComponent)("v-portal"),l=(0,u.resolveDirective)("tooltip"),c=(0,u.resolveDirective)("clickoutside"),d=(0,u.resolveDirective)("syno-id");return(0,u.withDirectives)(((0,u.openBlock)(),(0,u.createElementBlock)("button",{type:e.htmlType,class:(0,u.normalizeClass)(e.btnClassObj),"aria-haspopup":e.hasDropdown,"aria-expanded":e.dropdownShown,"aria-disabled":e.disabled,"aria-label":e.ariaLabel,role:e.hasDropdown?"combobox":"button",onClick:t[0]||(t[0]=function(){return e.handleClick&&e.handleClick(...arguments)}),onKeydown:t[1]||(t[1]=(0,u.withKeys)(function(){return e.handleKeydown&&e.handleKeydown(...arguments)},["down"]))},[e.hasDefaultSlot()||e.hasIconSlot()?(0,u.withDirectives)(((0,u.openBlock)(),(0,u.createElementBlock)("span",{key:0,class:(0,u.normalizeClass)(`${e.prefixCls}-text`)},[(0,u.renderSlot)(e.$slots,"icon",{disabled:"disabled"}),e.hasDefaultSlot()?((0,u.openBlock)(),(0,u.createElementBlock)("span",D,[(0,u.renderSlot)(e.$slots,"default")])):(0,u.createCommentVNode)("",!0),e.isDropdown?((0,u.openBlock)(),(0,u.createBlock)(a,(0,u.mergeProps)({key:1,class:e.prefixCls+"-dropdown-btn",name:"btn-arrow","svg-icon-set":e.dropdownSvgIconSet},e.innerDropdownIconBinding,{onClick:e.handleDropdownBtnClick}),null,16,["class","svg-icon-set","onClick"])):(0,u.createCommentVNode)("",!0)],2)),[[l,e.getTip()]]):(0,u.createCommentVNode)("",!0),e.isSplitMode?((0,u.openBlock)(),(0,u.createElementBlock)(u.Fragment,{key:1},[O,(0,u.createVNode)(a,(0,u.mergeProps)({class:e.prefixCls+"-dropdown-btn split-btn",name:"btn-arrow","svg-icon-set":e.dropdownSvgIconSet},e.innerDropdownIconBinding,{onClick:e.handleDropdownBtnClick}),null,16,["class","svg-icon-set","onClick"])],64)):(0,u.createCommentVNode)("",!0),e.dropdownShown?((0,u.openBlock)(),(0,u.createBlock)(s,{key:2,ref:"portal","mount-to":e.getContainerEl(),"acquire-z-index":"",alignment:e.innerAlignment,anchor:e.$el,onAligned:e.onDropdownAligned},{default:(0,u.withCtx)(()=>[(0,u.withDirectives)(((0,u.openBlock)(),(0,u.createElementBlock)("div",{ref:"dropdown",class:(0,u.normalizeClass)(e.prefixCls+"-dropdown")},[(0,u.renderSlot)(e.$slots,"dropdown",{closeDropdown:e.closeDropdown,focusTrigger:e.focus})],2)),[[c,e.onClickoutside,e.innerGetExtraElements(),{children:!0}]])]),_:3},8,["mount-to","alignment","anchor","onAligned"])):(0,u.createCommentVNode)("",!0)],42,R)),[[d]])}]])},29095:function(e,t,i){"use strict";i.d(t,{Z:()=>g});var n=i(74318),o=i(9022),r=i(18954),a=i(43319),s=i(71367),l=i(23886),c=i(63447),d=i(70243),u=(0,c.defineComponent)({name:"Checkbox",components:{vIcon:l.Z},mixins:[n.Z,o.Z],props:{stopPropagation:{type:Boolean,default:!1},[r.yz.value()]:{type:Boolean,default:!1},indeterminate:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},id:{type:String,default:()=>`syno-${(0,a.V)()}`},name:{type:String,default:void 0},labelColor:{type:(0,d.C)(String),default:"normal",validator:e=>["normal","red"].includes(e)}},emits:["change","focus","blur","update:model-value"],data:()=>({prefixCls:"v-checkbox",isFocused:!1}),computed:{innerValue(){return(0,r.eQ)(this)},wrapperCls(){return[`${this.prefixCls}-wrapper`,{checked:!this.indeterminate&&!0===this.innerValue,indeterminate:this.indeterminate,disabled:this.disabled,focused:this.isFocused}]},labelCls(){return[`${this.prefixCls}-label`,{[`label-color-${this.labelColor}`]:!0}]}},methods:{onChange(e){let t=!!this.indeterminate||!this.innerValue;(0,s.Qy)(this,(0,r.ef)(),t),(0,s.Qy)(this,"change",t,e)},onFocus(){this.$refs.input.focus()},onFocusInput(){this.isFocused=!0,(0,s.Qy)(this,"focus",this)},onBlurInput(){this.isFocused=!1,(0,s.Qy)(this,"blur",this)},onClick(e){this.stopPropagation&&e.stopPropagation(),this.disabled||this.onChange(e)},onDblClick(e){this.stopPropagation&&e.stopPropagation()}}}),h=i(66794);let p=["aria-checked","aria-labelledby","value","checked","disabled","name"],f=["id"];var g=(0,h.Z)(u,[["render",function(e,t,i,n,o,r){let a=(0,c.resolveComponent)("v-icon"),s=(0,c.resolveDirective)("syno-id");return(0,c.withDirectives)(((0,c.openBlock)(),(0,c.createElementBlock)("div",{class:(0,c.normalizeClass)(e.wrapperCls),tabindex:"-1",onClick:t[4]||(t[4]=function(){return e.onClick&&e.onClick(...arguments)}),onDblclick:t[5]||(t[5]=function(){return e.onDblClick&&e.onDblClick(...arguments)}),onFocus:t[6]||(t[6]=function(){return e.onFocus&&e.onFocus(...arguments)})},[(0,c.createVNode)(a,{name:"checkbox",class:(0,c.normalizeClass)(e.prefixCls+"-icon"),sprite:""},null,8,["class"]),(0,c.createElementVNode)("input",{ref:"input",type:"checkbox",role:"checkbox","aria-checked":e.innerValue?"true":"false","aria-labelledby":e.id,class:(0,c.normalizeClass)(e.prefixCls+"-input"),value:e.innerValue,checked:e.innerValue,disabled:e.disabled,name:e.name,onChange:t[0]||(t[0]=function(){return e.onChange&&e.onChange(...arguments)}),onClick:t[1]||(t[1]=(0,c.withModifiers)(()=>{},["stop"])),onFocus:t[2]||(t[2]=function(){return e.onFocusInput&&e.onFocusInput(...arguments)}),onBlur:t[3]||(t[3]=function(){return e.onBlurInput&&e.onBlurInput(...arguments)})},null,42,p),(0,c.createElementVNode)("label",{id:e.id,class:(0,c.normalizeClass)(e.labelCls)},[(0,c.renderSlot)(e.$slots,"default")],10,f)],34)),[[s]])}]])},70979:function(e,t,i){"use strict";i.d(t,{Z:()=>O}),i(95790),i(2850),i(53346),i(29127);var n=i(71367),o=i(70608),r=i(54730),a=i(63447),s=i(66794);let l=(0,a.defineComponent)({name:"Divider"}),c={class:"v-divider"};var d=(0,s.Z)(l,[["render",function(e,t,i,n,o,r){return(0,a.openBlock)(),(0,a.createElementBlock)("div",c)}]]),u=i(47696),h=i(67798),p=i(9022),f=i(74999),g=i(23886),m=i(83717);(0,p.z)("color-picker-reset",f.RC),(0,p.z)("color-picker-custom",f.xI);let v=(0,a.defineComponent)({name:"ColorPickerDropdown",components:{vTrapFocus:o.Z,vDivider:d,vIcon:g.Z},mixins:[u.Z,p.Z],props:{customDropdownCls:{type:String,default:""},commonOptions:{type:Array,default:()=>h.o7},options:{type:Array,default:()=>h.QP},customOptions:{type:Array,default:()=>[]},hasCustom:{type:Boolean,default:!0},filterSameColor:{type:Boolean,default:!1},currentColor:{type:Object,default:()=>({})}},emits:["close-dropdown","select","reset","show-custom"],data:()=>({activeIndex:-1}),computed:{hasTopDivider(){return this.hasCustom||(0,m._Y)(this,"top-custom")||(0,m._Y)(this,"bottom-custom")},hasBottomDivider(){return(0,m._Y)(this,"bottom")},dropdownStyle:()=>({overflow:"hidden"}),dropdownCls(){return["v-color-picker-dropdown","v-select-dropdown-placement-bottomLeft",this.customDropdownCls]},colorWrapperCls:()=>["default-color-wrapper"],innerOptions(){return this.options.map(e=>({color:e,alpha:1}))},innerCommonOptions(){return this.commonOptions.map(e=>({color:e,alpha:1}))},innerCustomOptions(){return this.customOptions.slice(0,30).map(e=>(0,r.Kn)(e)?e:{color:e,alpha:1}).filter(e=>!this.filterSameColor||![...this.innerOptions,...this.innerCommonOptions].some(t=>t.color===e.color&&t.alpha===e.alpha))},allOptions(){return this.innerCommonOptions.concat(this.innerOptions).concat(this.innerCustomOptions)}},watch:{currentColor:{handler(){this.activeIndex=this.currentColor?this.allOptions.findIndex(e=>e.color===this.currentColor.color&&e.alpha===this.currentColor.alpha):-1},immediate:!0}},methods:{commonColorItemCls(e){return["color-item",{activated:this.activeIndex===e}]},colorItemCls(e){return e+=this.commonOptions.length,["color-item",{activated:this.activeIndex===e}]},customColorItemCls(e){return e+=this.commonOptions.length+this.options.length,["color-item",{activated:this.activeIndex===e}]},colorBlockCls:e=>({"has-border":"#FFFFFF"===(0,h.ZP)(e.color).hex()}),colorBlockStyle:e=>({"user-select":"none","background-color":(0,h.ZP)(e.color).alpha((0,r.hj)(e.alpha)?e.alpha:1).string()}),closeDropdown(e){(0,n.Qy)(this,"close-dropdown",e)},reset(){(0,n.Qy)(this,"reset"),this.closeDropdown()},arrowSelect(e,t){let i=(0,r.HU)(this.activeIndex+e+10*t,0,this.allOptions.length-1);this.select(i)},clearSelection(){this.select(-1)},select(e){let t=this.allOptions[e];this.activeIndex=e,(0,n.Qy)(this,"select",e,t)},onClickButtonOption(e){this.select(e),this.closeDropdown()},onClickCustom(){(0,n.Qy)(this,"show-custom")}}}),b=["syno-id"],y={class:"reset-button-wrapper"},w=["syno-id"],_=["aria-activedescendant"],x=["id","syno-id","aria-selected","onClick"],S={class:"color-block"},C=["aria-activedescendant"],k=["id","syno-id","aria-selected","onClick"],I={class:"color-block"},A={key:1,class:"custom-button-wrapper"},T=["syno-id"],E={key:2,class:"custom-color-wrapper"},R=["syno-id","aria-selected","onClick"],D={class:"color-block"};var O=(0,s.Z)(v,[["render",function(e,t,i,n,o,r){let s=(0,a.resolveComponent)("v-icon"),l=(0,a.resolveComponent)("v-divider"),c=(0,a.resolveComponent)("v-trap-focus"),d=(0,a.resolveDirective)("auto-focus");return(0,a.openBlock)(),(0,a.createElementBlock)("div",{ref:"dropdown","syno-id":`${e.synoId}-dropdown-menu`,style:(0,a.normalizeStyle)(e.dropdownStyle),class:(0,a.normalizeClass)(e.dropdownCls),onKeydown:t[12]||(t[12]=(0,a.withKeys)(function(){return e.closeDropdown&&e.closeDropdown(...arguments)},["esc"]))},[(0,a.createVNode)(c,{ref:"dropdownTrapFocus"},{default:(0,a.withCtx)(()=>[(0,a.createElementVNode)("div",y,[(0,a.createVNode)(s,{name:"color-picker-reset","svg-icon-set":"set01"}),(0,a.createElementVNode)("button",{"syno-id":`${e.synoId}-reset-btn`,class:"reset color-picker-button",onClick:t[0]||(t[0]=t=>e.reset())},(0,a.toDisplayString)(e._i18n("common","reset")),9,w)]),(0,a.createVNode)(l),(0,a.withDirectives)(((0,a.openBlock)(),(0,a.createElementBlock)("ul",{class:"common-color-wrapper",role:"menu",tabindex:"0","aria-activedescendant":`option-${e.activeIndex}`,onKeydown:[t[1]||(t[1]=(0,a.withKeys)((0,a.withModifiers)(t=>e.arrowSelect(0,-1),["prevent"]),["up"])),t[2]||(t[2]=(0,a.withKeys)((0,a.withModifiers)(t=>e.arrowSelect(-1,0),["prevent"]),["left"])),t[3]||(t[3]=(0,a.withKeys)((0,a.withModifiers)(t=>e.arrowSelect(0,1),["prevent"]),["down"])),t[4]||(t[4]=(0,a.withKeys)((0,a.withModifiers)(t=>e.arrowSelect(1,0),["prevent"]),["right"])),t[5]||(t[5]=(0,a.withKeys)((0,a.withModifiers)(function(){return e.closeDropdown&&e.closeDropdown(...arguments)},["prevent"]),["enter"]))]},[((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(e.innerCommonOptions,(t,i)=>((0,a.openBlock)(),(0,a.createElementBlock)("li",{key:i,id:`options-${i}`,"syno-id":`${e.synoId}-option-${t.color}`,class:(0,a.normalizeClass)(e.commonColorItemCls(i)),role:"menuitem","aria-selected":i===e.activeIndex,onClick:t=>e.onClickButtonOption(i)},[(0,a.createElementVNode)("i",S,[(0,a.createElementVNode)("i",{class:(0,a.normalizeClass)(["cover",e.colorBlockCls(t)]),style:(0,a.normalizeStyle)(e.colorBlockStyle(t))},null,6)])],10,x))),128))],40,_)),[[d]]),(0,a.createVNode)(l),(0,a.createElementVNode)("ul",{class:(0,a.normalizeClass)(e.colorWrapperCls),role:"menu",tabindex:"0","aria-activedescendant":`option-${e.activeIndex}`,onKeydown:[t[6]||(t[6]=(0,a.withKeys)((0,a.withModifiers)(t=>e.arrowSelect(0,-1),["prevent"]),["up"])),t[7]||(t[7]=(0,a.withKeys)((0,a.withModifiers)(t=>e.arrowSelect(-1,0),["prevent"]),["left"])),t[8]||(t[8]=(0,a.withKeys)((0,a.withModifiers)(t=>e.arrowSelect(0,1),["prevent"]),["down"])),t[9]||(t[9]=(0,a.withKeys)((0,a.withModifiers)(t=>e.arrowSelect(1,0),["prevent"]),["right"])),t[10]||(t[10]=(0,a.withKeys)((0,a.withModifiers)(function(){return e.closeDropdown&&e.closeDropdown(...arguments)},["prevent"]),["enter"]))]},[((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(e.innerOptions,(t,i)=>((0,a.openBlock)(),(0,a.createElementBlock)("li",{key:i,id:`options-${i}`,"syno-id":`${e.synoId}-option-${t.color}`,class:(0,a.normalizeClass)(e.colorItemCls(i)),role:"menuitem","aria-selected":i+e.commonOptions.length===e.activeIndex,onClick:t=>e.onClickButtonOption(i+e.commonOptions.length)},[(0,a.createElementVNode)("i",I,[(0,a.createElementVNode)("i",{class:(0,a.normalizeClass)(["cover",e.colorBlockCls(t)]),style:(0,a.normalizeStyle)(e.colorBlockStyle(t))},null,6)])],10,k))),128))],42,C),e.hasTopDivider?((0,a.openBlock)(),(0,a.createBlock)(l,{key:0})):(0,a.createCommentVNode)("",!0),(0,a.renderSlot)(e.$slots,"top-custom"),e.hasCustom?((0,a.openBlock)(),(0,a.createElementBlock)("div",A,[(0,a.createVNode)(s,{name:"color-picker-custom","svg-icon-set":"set01"}),(0,a.createElementVNode)("button",{"syno-id":`${e.synoId}-custom-btn`,class:"custom color-picker-button",onClick:t[11]||(t[11]=t=>e.onClickCustom())},(0,a.toDisplayString)(e._i18n("common","custom")),9,T)])):(0,a.createCommentVNode)("",!0),(0,a.renderSlot)(e.$slots,"bottom-custom"),e.innerCustomOptions.length>0?((0,a.openBlock)(),(0,a.createElementBlock)("ul",E,[((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(e.innerCustomOptions,(t,i)=>((0,a.openBlock)(),(0,a.createElementBlock)("li",{key:i,"syno-id":`${e.synoId}-option-${t.color}`,class:(0,a.normalizeClass)(e.customColorItemCls(i)),role:"menuitem","aria-selected":i+e.commonOptions.length+e.options.length===e.activeIndex,onClick:t=>e.onClickButtonOption(i+e.commonOptions.length+e.options.length)},[(0,a.createElementVNode)("i",D,[(0,a.createElementVNode)("i",{class:(0,a.normalizeClass)(["cover",e.colorBlockCls(t)]),style:(0,a.normalizeStyle)(e.colorBlockStyle(t))},null,6)])],10,R))),128))])):(0,a.createCommentVNode)("",!0),e.hasBottomDivider?((0,a.openBlock)(),(0,a.createBlock)(l,{key:3})):(0,a.createCommentVNode)("",!0),(0,a.renderSlot)(e.$slots,"bottom")]),_:3},512)],46,b)}]])},67798:function(e,t,i){"use strict";i.d(t,{QP:()=>r,ZP:()=>u,o7:()=>a}),i(95790),i(53346);var n=i(2489),o=i(2771);let r=["#FFFFFF","#FFE0E0","#FFEFD9","#FFFAC7","#D1FFD9","#CCFFF6","#E0F0FF","#E0E4FF","#F0E0FF","#FFE0F0","#F2F2F2","#FAB6B6","#FADBAF","#FAF29B","#A7FAB5","#96FAE9","#B4D7FA","#BBC4FA","#D8B6FA","#FAB6D8","#D9D9D9","#FA8484","#FAC170","#FAEC4B","#62F57A","#5CE6CF","#70B5FA","#8998FA","#BF84FA","#FA84BF","#A6A6A6","#E64C4C","#E69E39","#E6D517","#20D93F","#1DC4A8","#2F8DEB","#5266EB","#984CE6","#E64C99","#666666","#BF0F0F","#BF7000","#B3A400","#00A61C","#00997F","#0063C7","#142DCC","#6E10CC","#BF0F67","#333333","#730000","#734300","#736900","#007313","#007360","#004285","#00138C","#4A0094","#730039"],a=["#000000","#FF0000","#FF9500","#FFEA00","#19FA3E","#00FAE5","#0582FF","#1A38FF","#8C1AFF","#FF1A8C"],s=[].slice,l=["keyword","gray","hex"],c={};for(let e of Object.keys(o))c[s.call(o[e].labels).sort().join("")]=e;let d={};function u(e,t){let i,r;if(!(this instanceof u))return new u(e,t);if(t&&t in l&&(t=null),t&&!(t in o))throw Error("Unknown model: "+t);if(e)if(e instanceof u)this.model=e.model,this.color=e.color.slice(),this.valpha=e.valpha;else if("string"==typeof e){let t=n.get(e);if(null===t)throw Error("Unable to parse color from string: "+e);this.model=t.model,r=o[this.model].channels,this.color=t.value.slice(0,r),this.valpha="number"==typeof t.value[r]?t.value[r]:1}else if(e.length>0){this.model=t||"rgb",r=o[this.model].channels;let i=s.call(e,0,r);this.color=f(i,r),this.valpha="number"==typeof e[r]?e[r]:1}else if("number"==typeof e)this.model="rgb",this.color=[e>>16&255,e>>8&255,255&e],this.valpha=1;else{this.valpha=1;let t=Object.keys(e);"alpha"in e&&(t.splice(t.indexOf("alpha"),1),this.valpha="number"==typeof e.alpha?e.alpha:0);let n=t.sort().join("");if(!(n in c))throw Error("Unable to parse color from object: "+JSON.stringify(e));this.model=c[n];let r=o[this.model].labels,a=[];for(i=0;i<r.length;i++)a.push(e[r[i]]);this.color=f(a)}else this.model="rgb",this.color=[0,0,0],this.valpha=1;if(d[this.model])for(r=o[this.model].channels,i=0;i<r;i++){let e=d[this.model][i];e&&(this.color[i]=e(this.color[i]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}for(let e of(u.prototype={toString(){return this.string()},toJSON(){return this[this.model]()},string(e){let t=this.model in n.to?this:this.rgb(),i=1===(t=t.round("number"==typeof e?e:1)).valpha?t.color:t.color.concat(this.valpha);return n.to[t.model](i)},percentString(e){let t=this.rgb().round("number"==typeof e?e:1),i=1===t.valpha?t.color:t.color.concat(this.valpha);return n.to.rgb.percent(i)},array(){return 1===this.valpha?this.color.slice():this.color.concat(this.valpha)},object(){let e={},t=o[this.model].channels,i=o[this.model].labels;for(let n=0;n<t;n++)e[i[n]]=this.color[n];return 1!==this.valpha&&(e.alpha=this.valpha),e},unitArray(){let e=this.rgb().color;return e[0]/=255,e[1]/=255,e[2]/=255,1!==this.valpha&&e.push(this.valpha),e},unitObject(){let e=this.rgb().object();return e.r/=255,e.g/=255,e.b/=255,1!==this.valpha&&(e.alpha=this.valpha),e},round(e){var t;return e=Math.max(e||0,0),new u(this.color.map((t=e,function(e){return Number(e.toFixed(t))})).concat(this.valpha),this.model)},alpha(e){return arguments.length>0?new u(this.color.concat(Math.max(0,Math.min(1,e))),this.model):this.valpha},red:h("rgb",0,p(255)),green:h("rgb",1,p(255)),blue:h("rgb",2,p(255)),hue:h(["hsl","hsv","hsl","hwb","hcg"],0,e=>(e%360+360)%360),saturationl:h("hsl",1,p(100)),lightness:h("hsl",2,p(100)),saturationv:h("hsv",1,p(100)),value:h("hsv",2,p(100)),chroma:h("hcg",1,p(100)),gray:h("hcg",2,p(100)),white:h("hwb",1,p(100)),wblack:h("hwb",2,p(100)),cyan:h("cmyk",0,p(100)),magenta:h("cmyk",1,p(100)),yellow:h("cmyk",2,p(100)),black:h("cmyk",3,p(100)),x:h("xyz",0,p(100)),y:h("xyz",1,p(100)),z:h("xyz",2,p(100)),l:h("lab",0,p(100)),a:h("lab",1),b:h("lab",2),keyword(e){return arguments.length>0?new u(e):o[this.model].keyword(this.color)},hex(e){return arguments.length>0?new u(e):n.to.hex(this.rgb().round().color)},hexa(e){if(arguments.length>0)return new u(e);let t=this.rgb().round().color,i=Math.round(255*this.valpha).toString(16).toUpperCase();return 1===i.length&&(i="0"+i),n.to.hex(t)+i},rgbNumber(){let e=this.rgb().color;return(255&e[0])<<16|(255&e[1])<<8|255&e[2]},luminosity(){let e=this.rgb().color,t=[];for(let[i,n]of e.entries()){let e=n/255;t[i]=e<=.03928?e/12.92:((e+.055)/1.055)**2.4}return .2126*t[0]+.7152*t[1]+.0722*t[2]},contrast(e){let t=this.luminosity(),i=e.luminosity();return t>i?(t+.05)/(i+.05):(i+.05)/(t+.05)},level(e){let t=this.contrast(e);return t>=7.1?"AAA":t>=4.5?"AA":""},isDark(){let e=this.rgb().color;return(299*e[0]+587*e[1]+114*e[2])/1e3<128},isLight(){return!this.isDark()},negate(){let e=this.rgb();for(let t=0;t<3;t++)e.color[t]=255-e.color[t];return e},lighten(e){let t=this.hsl();return t.color[2]+=t.color[2]*e,t},darken(e){let t=this.hsl();return t.color[2]-=t.color[2]*e,t},saturate(e){let t=this.hsl();return t.color[1]+=t.color[1]*e,t},desaturate(e){let t=this.hsl();return t.color[1]-=t.color[1]*e,t},whiten(e){let t=this.hwb();return t.color[1]+=t.color[1]*e,t},blacken(e){let t=this.hwb();return t.color[2]+=t.color[2]*e,t},grayscale(){let e=this.rgb().color,t=.3*e[0]+.59*e[1]+.11*e[2];return u.rgb(t,t,t)},fade(e){return this.alpha(this.valpha-this.valpha*e)},opaquer(e){return this.alpha(this.valpha+this.valpha*e)},rotate(e){let t=this.hsl(),i=t.color[0];return i=(i=(i+e)%360)<0?360+i:i,t.color[0]=i,t},mix(e,t){if(!e||!e.rgb)throw Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof e);let i=e.rgb(),n=this.rgb(),o=void 0===t?.5:t,r=2*o-1,a=i.alpha()-n.alpha(),s=((r*a==-1?r:(r+a)/(1+r*a))+1)/2,l=1-s;return u.rgb(s*i.red()+l*n.red(),s*i.green()+l*n.green(),s*i.blue()+l*n.blue(),i.alpha()*o+n.alpha()*(1-o))}},Object.keys(o))){if(l.includes(e))continue;let t=o[e].channels;u.prototype[e]=function(){var i;if(this.model===e)return new u(this);if(arguments.length>0)return new u(arguments,e);let n="number"==typeof arguments[t]?t:this.valpha;return new u((Array.isArray(i=o[this.model][e].raw(this.color))?i:[i]).concat(n),e)},u[e]=function(i){return"number"==typeof i&&(i=f(s.call(arguments),t)),new u(i,e)}}function h(e,t,i){for(let n of e=Array.isArray(e)?e:[e])(d[n]||(d[n]=[]))[t]=i;return e=e[0],function(n){let o;return arguments.length>0?(i&&(n=i(n)),(o=this[e]()).color[t]=n):(o=this[e]().color[t],i&&(o=i(o))),o}}function p(e){return function(t){return Math.max(0,Math.min(e,t))}}function f(e,t){for(let i=0;i<t;i++)"number"!=typeof e[i]&&(e[i]=0);return e}},62795:function(e,t,i){"use strict";i.d(t,{Z:()=>u});var n=i(63707),o=i(71367),r=i(40172),a=i(83717),s=i(29668),l=i(7135),c=i(54730),d=i(43319),u=(0,i(63447).defineComponent)({name:"DragTarget",props:{getDragZone:{type:Function,default:void 0},payload:{type:Object,default:()=>({})},dragProps:{type:Object,default:()=>({})},autoScrollElement:{type:[Boolean,HTMLElement],default:!1},draggingId:{type:String,default:`dragging-${(0,d.V)()}`}},emits:["drag-enter","drag-over","drag-out","drag","before-drag","before-drop","before-drag-out","before-drag-over","before-drag-enter","drop","valid-drop","invalid-drop","start-drag","end-drag"],computed:{mergedDragProps(){var e=this;return(0,r.Z)({onDragEnter:function(){for(var t=arguments.length,i=Array(t),n=0;n<t;n++)i[n]=arguments[n];(0,o.Qy)(e,"drag-enter",...i)},onDragOver:function(){for(var t=arguments.length,i=Array(t),n=0;n<t;n++)i[n]=arguments[n];(0,o.Qy)(e,"drag-over",...i)},onDragOut:function(){for(var t=arguments.length,i=Array(t),n=0;n<t;n++)i[n]=arguments[n];(0,o.Qy)(e,"drag-out",...i)},onDrag:function(){for(var t=arguments.length,i=Array(t),n=0;n<t;n++)i[n]=arguments[n];(0,o.Qy)(e,"drag",...i)},onBeforeDrag:function(){for(var t=arguments.length,i=Array(t),n=0;n<t;n++)i[n]=arguments[n];(0,o.Qy)(e,"before-drag",...i)},onBeforeDrop:function(){for(var t=arguments.length,i=Array(t),n=0;n<t;n++)i[n]=arguments[n];(0,o.Qy)(e,"before-drop",...i)},onBeforeDragOut:function(){for(var t=arguments.length,i=Array(t),n=0;n<t;n++)i[n]=arguments[n];(0,o.Qy)(e,"before-drag-out",...i)},onBeforeDragOver:function(){for(var t=arguments.length,i=Array(t),n=0;n<t;n++)i[n]=arguments[n];(0,o.Qy)(e,"before-drag-over",...i)},onBeforeDragEnter:function(){for(var t=arguments.length,i=Array(t),n=0;n<t;n++)i[n]=arguments[n];(0,o.Qy)(e,"before-drag-enter",...i)},onDrop:function(){for(var t=arguments.length,i=Array(t),n=0;n<t;n++)i[n]=arguments[n];(0,o.Qy)(e,"drop",...i)},onValidDrop:function(){for(var t=arguments.length,i=Array(t),n=0;n<t;n++)i[n]=arguments[n];(0,o.Qy)(e,"valid-drop",...i)},onInvalidDrop:function(){for(var t=arguments.length,i=Array(t),n=0;n<t;n++)i[n]=arguments[n];(0,o.Qy)(e,"invalid-drop",...i)},startDrag:function(){for(var t=arguments.length,i=Array(t),n=0;n<t;n++)i[n]=arguments[n];(0,o.Qy)(e,"start-drag",...i)},endDrag:function(){for(var t=arguments.length,i=Array(t),n=0;n<t;n++)i[n]=arguments[n];(0,o.Qy)(e,"end-drag",...i)},ghostCls:"v-dd-target",getTargetContent:()=>this.$el.outerHTML,draggingId:this.draggingId},this.dragProps)}},async mounted(){this.createDDTarget()},[n.mT.beforeUnmount](){this.removeDDTarget()},methods:{getDragTarget(){return this.ddTarget},createDDTarget(){this.$el&&(this.ddTarget=new this.$DragDropTarget(this.$el,this.mergedDragProps,this.payload),this.$ddm.registerDragTarget(this.ddTarget),this.getDragZone&&this.autoRegisterDragZone(),!0===this.autoScrollElement?this.autoRegisterScrollElement():(0,c.kK)(this.autoScrollElement)&&this.setAutoScrollElement(this.autoScrollElement))},autoRegisterDragZone(){let e=this.getDragZone?.();e&&this.registerDragZone(e)},autoRegisterScrollElement(){let e=(0,l.JX)(this.$el);this.setAutoScrollElement(e)},removeDDTarget(){this.ddTarget&&(this._destroyFn?.(),delete this.ddTarget)},registerDragZone(e){let t=e.getDragZone?.()??e;this._destroyFn=this.ddTarget.registerDragZone(t)},setAutoScrollElement(e){this.ddTarget.setAutoScrollElement(e)}},render(){return(0,s.g)((0,a.FJ)(this)?.default?.())}})},36852:function(e,t,i){"use strict";i.d(t,{Z:()=>c});var n=i(63707),o=i(71367),r=i(83717),a=i(29668),s=i(40172),l=i(43319),c=(0,i(63447).defineComponent)({name:"DragZone",props:{payload:{type:Object,default:()=>({})},dragProps:{type:Object,default:()=>({})},draggingId:{type:String,default:`dragging-${(0,l.V)()}`}},emits:["enter","drop","over","out","valid-drop","invalid-drop"],computed:{mergedDragProps(){var e=this;return(0,s.Z)({notifyEnter:function(){for(var t=arguments.length,i=Array(t),n=0;n<t;n++)i[n]=arguments[n];(0,o.Qy)(e,"enter",...i)},notifyDrop:function(){for(var t=arguments.length,i=Array(t),n=0;n<t;n++)i[n]=arguments[n];(0,o.Qy)(e,"drop",...i)},notifyOver:function(){for(var t=arguments.length,i=Array(t),n=0;n<t;n++)i[n]=arguments[n];(0,o.Qy)(e,"over",...i)},notifyOut:function(){for(var t=arguments.length,i=Array(t),n=0;n<t;n++)i[n]=arguments[n];(0,o.Qy)(e,"out",...i)},notifyValidDrop:function(){for(var t=arguments.length,i=Array(t),n=0;n<t;n++)i[n]=arguments[n];(0,o.Qy)(e,"valid-drop",...i)},notifyInvalidDrop:function(){for(var t=arguments.length,i=Array(t),n=0;n<t;n++)i[n]=arguments[n];(0,o.Qy)(e,"invalid-drop",...i)},draggingId:this.draggingId},this.dragProps)}},mounted(){this.createDragZone()},[n.mT.beforeUnmount](){this.removeDragZone()},methods:{createDragZone(){this.dragZone=new this.$DragZone(this.$el,this.mergedDragProps,this.payload),this._destroyFn=this.$ddm.registerDragZone(this.dragZone)},removeDragZone(){this._destroyFn?.(),delete this.dragZone},getDragZone(){return this.dragZone}},render(){return(0,a.g)((0,r.FJ)(this)?.default?.())}})},37167:function(e,t,i){"use strict";i.d(t,{Z:()=>m});var n=i(53683),o=i(12725),r=i(9022),a=i(74999),s=i(23886),l=i(54730),c=i(71283),d=i(63447),u=i(66794);(0,r.z)("fieldset-chevron-up",a.np),(0,r.z)("fieldset-chevron-down",a.u);let h={CLICK:"click",DBLCLICK:"dblclick",NONE:"none"},p=(0,d.defineComponent)({name:"Fieldset",components:{vSlideUpDownTransition:n.Z,vLayout:o.Z,vIcon:s.Z},mixins:[r.Z],props:{layoutOrder:{type:Number,default:0},prefixCls:{type:String,default:"v-fieldset"},collapsible:{type:Boolean,default:!0},collapseTriggerEvent:{type:String,default:h.CLICK,validator:e=>Object.values(h).includes(e)},collapseIcon:{type:String,default:"left",validator:e=>["left","none"].includes(e)},collapsed:{type:Boolean,default:!1},title:{type:[String,Object],default:""},titleHtml:{type:String,default:void 0}},emits:["collapsestatechange","update:collapsed","beforebodyenter","afterbodyenter","beforebodyleave","afterbodyleave","header-click","header-dblclick"],data(){return{isCollapsed:this.collapsed}},computed:{titleWrapperCls(){return[`${this.prefixCls}-title-wrapper`]},titleFormat(){return(0,l.$K)(this.titleHtml)?((0,c.Rn)("titleHtml","title",this),"html"):(0,l.Kn)(this.title)?this.title.format??"text":"text"},innerTitle(){return(0,l.$K)(this.titleHtml)?((0,c.Rn)("titleHtml","title",this),this.titleHtml):(0,l.Kn)(this.title)?this.title.text:this.title},fieldsetCls(){return[this.prefixCls,{collapsible:this.collapsible,collapsed:this.isCollapsed}]},iconName(){return this.isCollapsed?"fieldset-chevron-down":"fieldset-chevron-up"}},watch:{collapsed(e){this.isCollapsed=e}},methods:{onClick(){this.$emit("header-click"),this.collapseTriggerEvent===h.CLICK&&this.toggleCollapse()},onDblClick(){this.$emit("header-dblclick"),this.collapseTriggerEvent===h.DBLCLICK&&this.toggleCollapse()},toggleCollapse(){this.collapsible&&(this.isCollapsed=!this.isCollapsed,this.$emit("collapsestatechange",this.isCollapsed),this.$emit("update:collapsed",this.isCollapsed))},onBeforeEnter(e){this.$emit("beforebodyenter",e)},onAfterEnter(e){this.$emit("afterbodyenter",e)},onBeforeLeave(e){this.$emit("beforebodyleave",e)},onAfterLeave(e){this.$emit("afterbodyleave",e)}}}),f=["innerHTML"],g=["textContent"];var m=(0,u.Z)(p,[["render",function(e,t,i,n,o,r){let a=(0,d.resolveComponent)("v-icon"),s=(0,d.resolveComponent)("v-layout"),l=(0,d.resolveComponent)("v-slide-up-down-transition");return(0,d.openBlock)(),(0,d.createBlock)(s,{class:(0,d.normalizeClass)(e.fieldsetCls),role:"group","aria-label":e.innerTitle,tabindex:"0",type:"fieldset",order:e.layoutOrder},{default:(0,d.withCtx)(()=>[(0,d.createElementVNode)("div",{class:(0,d.normalizeClass)(e.titleWrapperCls),onClick:t[0]||(t[0]=function(){return e.onClick&&e.onClick(...arguments)}),onDblclick:t[1]||(t[1]=function(){return e.onDblClick&&e.onDblClick(...arguments)})},[(0,d.renderSlot)(e.$slots,"collapse-icon",{},()=>[e.collapsible&&"none"!==e.collapseIcon?((0,d.openBlock)(),(0,d.createBlock)(a,{key:0,class:"v-fieldset-collapse-icon",name:e.iconName,"svg-icon-set":"set15"},null,8,["name"])):(0,d.createCommentVNode)("",!0)]),(0,d.renderSlot)(e.$slots,"title",{},()=>["html"===e.titleFormat?((0,d.openBlock)(),(0,d.createElementBlock)("div",{key:0,class:(0,d.normalizeClass)(e.prefixCls+"-title"),innerHTML:e.innerTitle},null,10,f)):((0,d.openBlock)(),(0,d.createElementBlock)("div",{key:1,class:(0,d.normalizeClass)(e.prefixCls+"-title"),textContent:(0,d.toDisplayString)(e.innerTitle)},null,10,g))])],34),(0,d.createVNode)(l,{"syno-id":`${e.prefixCls}-slide-up-down`},{default:(0,d.withCtx)(()=>[(0,d.withDirectives)((0,d.createVNode)(s,{ref:"body",class:(0,d.normalizeClass)(e.prefixCls+"-body"),type:"fieldset-body"},{default:(0,d.withCtx)(()=>[(0,d.renderSlot)(e.$slots,"default")]),_:3},8,["class"]),[[d.vShow,!e.isCollapsed]])]),_:3},8,["syno-id"])]),_:3},8,["class","aria-label","order"])}]])},56280:function(e,t,i){"use strict";i.d(t,{Z:()=>G}),i(95790),i(2850),i(29127);var n=i(63707),o=i(83717),r=i(91229);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e}).apply(this,arguments)}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e,t,i){return(c=!function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}()?function(e,t,i){var n=[null];n.push.apply(n,t);var o=new(Function.bind.apply(e,n));return i&&l(o,i.prototype),o}:Reflect.construct).apply(null,arguments)}function d(e){var t="function"==typeof Map?new Map:void 0;return(d=function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))return e;if("function"!=typeof e)throw TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,i)}function i(){return c(e,arguments,s(this).constructor)}return i.prototype=Object.create(e.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),l(i,e)})(e)}var u=/%[sdj%]/g;function h(e){if(!e||!e.length)return null;var t={};return e.forEach(function(e){var i=e.field;t[i]=t[i]||[],t[i].push(e)}),t}function p(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];var n=1,o=t[0],r=t.length;return"function"==typeof o?o.apply(null,t.slice(1)):"string"==typeof o?String(o).replace(u,function(e){if("%%"===e)return"%";if(n>=r)return e;switch(e){case"%s":return String(t[n++]);case"%d":return Number(t[n++]);case"%j":try{return JSON.stringify(t[n++])}catch(e){return"[Circular]"}default:return e}}):o}function f(e,t){return!!(null==e||"array"===t&&Array.isArray(e)&&!e.length)||("string"===t||"url"===t||"hex"===t||"email"===t||"date"===t||"pattern"===t)&&"string"==typeof e&&!e||!1}function g(e,t,i){var n=0,o=e.length;!function r(a){if(a&&a.length)return void i(a);var s=n;n+=1,s<o?t(e[s],r):i([])}([])}"undefined"!=typeof process&&process.env;var m=function(e){function t(t,i){var n;return(n=e.call(this,"Async Validation Error")||this).errors=t,n.fields=i,n}return t.prototype=Object.create(e.prototype),t.prototype.constructor=t,l(t,e),t}(d(Error));function v(e){return function(t){return t&&t.message?(t.field=t.field||e.fullField,t):{message:"function"==typeof t?t():t,field:t.field||e.fullField}}}function b(e,t){if(t){for(var i in t)if(t.hasOwnProperty(i)){var n=t[i];"object"==typeof n&&"object"==typeof e[i]?e[i]=a({},e[i],n):e[i]=n}}return e}function y(e,t,i,n,o,r){e.required&&(!i.hasOwnProperty(e.field)||f(t,r||e.type))&&n.push(p(o.messages.required,e.fullField))}var w={email:/^(([^<>()\[\]\\.,;:\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: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},_={integer:function(e){return _.number(e)&&parseInt(e,10)===e},float:function(e){return _.number(e)&&!_.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return new RegExp(e),!0}catch(e){return!1}},date:function(e){return"function"==typeof e.getTime&&"function"==typeof e.getMonth&&"function"==typeof e.getYear&&!isNaN(e.getTime())},number:function(e){return!isNaN(e)&&"number"==typeof e},object:function(e){return"object"==typeof e&&!_.array(e)},method:function(e){return"function"==typeof e},email:function(e){return"string"==typeof e&&!!e.match(w.email)&&e.length<255},url:function(e){return"string"==typeof e&&!!e.match(w.url)},hex:function(e){return"string"==typeof e&&!!e.match(w.hex)}},x="enum",S={required:y,whitespace:function(e,t,i,n,o){(/^\s+$/.test(t)||""===t)&&n.push(p(o.messages.whitespace,e.fullField))},type:function(e,t,i,n,o){if(e.required&&void 0===t)return void y(e,t,i,n,o);var r=e.type;["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(r)>-1?_[r](t)||n.push(p(o.messages.types[r],e.fullField,e.type)):r&&typeof t!==e.type&&n.push(p(o.messages.types[r],e.fullField,e.type))},range:function(e,t,i,n,o){var r="number"==typeof e.len,a="number"==typeof e.min,s="number"==typeof e.max,l=t,c=null,d="number"==typeof t,u="string"==typeof t,h=Array.isArray(t);if(d?c="number":u?c="string":h&&(c="array"),!c)return!1;h&&(l=t.length),u&&(l=t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),r?l!==e.len&&n.push(p(o.messages[c].len,e.fullField,e.len)):a&&!s&&l<e.min?n.push(p(o.messages[c].min,e.fullField,e.min)):s&&!a&&l>e.max?n.push(p(o.messages[c].max,e.fullField,e.max)):a&&s&&(l<e.min||l>e.max)&&n.push(p(o.messages[c].range,e.fullField,e.min,e.max))},enum:function(e,t,i,n,o){e[x]=Array.isArray(e[x])?e[x]:[],-1===e[x].indexOf(t)&&n.push(p(o.messages[x],e.fullField,e[x].join(", ")))},pattern:function(e,t,i,n,o){e.pattern&&(e.pattern instanceof RegExp?(e.pattern.lastIndex=0,e.pattern.test(t)||n.push(p(o.messages.pattern.mismatch,e.fullField,t,e.pattern))):"string"==typeof e.pattern&&(new RegExp(e.pattern).test(t)||n.push(p(o.messages.pattern.mismatch,e.fullField,t,e.pattern))))}};function C(e,t,i,n,o){var r=e.type,a=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(f(t,r)&&!e.required)return i();S.required(e,t,n,a,o,r),f(t,r)||S.type(e,t,n,a,o)}i(a)}var k={string:function(e,t,i,n,o){var r=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(f(t,"string")&&!e.required)return i();S.required(e,t,n,r,o,"string"),f(t,"string")||(S.type(e,t,n,r,o),S.range(e,t,n,r,o),S.pattern(e,t,n,r,o),!0===e.whitespace&&S.whitespace(e,t,n,r,o))}i(r)},method:function(e,t,i,n,o){var r=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(f(t)&&!e.required)return i();S.required(e,t,n,r,o),void 0!==t&&S.type(e,t,n,r,o)}i(r)},number:function(e,t,i,n,o){var r=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(""===t&&(t=void 0),f(t)&&!e.required)return i();S.required(e,t,n,r,o),void 0!==t&&(S.type(e,t,n,r,o),S.range(e,t,n,r,o))}i(r)},boolean:function(e,t,i,n,o){var r=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(f(t)&&!e.required)return i();S.required(e,t,n,r,o),void 0!==t&&S.type(e,t,n,r,o)}i(r)},regexp:function(e,t,i,n,o){var r=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(f(t)&&!e.required)return i();S.required(e,t,n,r,o),f(t)||S.type(e,t,n,r,o)}i(r)},integer:function(e,t,i,n,o){var r=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(f(t)&&!e.required)return i();S.required(e,t,n,r,o),void 0!==t&&(S.type(e,t,n,r,o),S.range(e,t,n,r,o))}i(r)},float:function(e,t,i,n,o){var r=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(f(t)&&!e.required)return i();S.required(e,t,n,r,o),void 0!==t&&(S.type(e,t,n,r,o),S.range(e,t,n,r,o))}i(r)},array:function(e,t,i,n,o){var r=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(null==t&&!e.required)return i();S.required(e,t,n,r,o,"array"),null!=t&&(S.type(e,t,n,r,o),S.range(e,t,n,r,o))}i(r)},object:function(e,t,i,n,o){var r=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(f(t)&&!e.required)return i();S.required(e,t,n,r,o),void 0!==t&&S.type(e,t,n,r,o)}i(r)},enum:function(e,t,i,n,o){var r=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(f(t)&&!e.required)return i();S.required(e,t,n,r,o),void 0!==t&&S.enum(e,t,n,r,o)}i(r)},pattern:function(e,t,i,n,o){var r=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(f(t,"string")&&!e.required)return i();S.required(e,t,n,r,o),f(t,"string")||S.pattern(e,t,n,r,o)}i(r)},date:function(e,t,i,n,o){var r,a=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(f(t,"date")&&!e.required)return i();S.required(e,t,n,a,o),!f(t,"date")&&(r=t instanceof Date?t:new Date(t),S.type(e,r,n,a,o),r&&S.range(e,r.getTime(),n,a,o))}i(a)},url:C,hex:C,email:C,required:function(e,t,i,n,o){var r=[],a=Array.isArray(t)?"array":typeof t;S.required(e,t,n,r,o,a),i(r)},any:function(e,t,i,n,o){var r=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(f(t)&&!e.required)return i();S.required(e,t,n,r,o)}i(r)}};function I(){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 A=I();function T(e){this.rules=null,this._messages=A,this.define(e)}T.prototype={messages:function(e){return e&&(this._messages=b(I(),e)),this._messages},define:function(e){var t,i;if(!e)throw Error("Cannot configure a schema with no rules");if("object"!=typeof e||Array.isArray(e))throw Error("Rules must be an object");for(t in this.rules={},e)e.hasOwnProperty(t)&&(i=e[t],this.rules[t]=Array.isArray(i)?i:[i])},validate:function(e,t,i){var n,o,r=this;void 0===t&&(t={}),void 0===i&&(i=function(){});var s=e,l=t,c=i;if("function"==typeof l&&(c=l,l={}),!this.rules||0===Object.keys(this.rules).length)return c&&c(),Promise.resolve();if(l.messages){var d=this.messages();d===A&&(d=I()),b(d,l.messages),l.messages=d}else l.messages=this.messages();var u={};(l.keys||Object.keys(this.rules)).forEach(function(t){n=r.rules[t],o=s[t],n.forEach(function(i){var n=i;"function"==typeof n.transform&&(s===e&&(s=a({},s)),o=s[t]=n.transform(o)),(n="function"==typeof n?{validator:n}:a({},n)).validator=r.getValidationMethod(n),n.field=t,n.fullField=n.fullField||t,n.type=r.getType(n),n.validator&&(u[t]=u[t]||[],u[t].push({rule:n,value:o,source:s,field:t}))})});var f={};return function(e,t,i,n){if(t.first){var o=new Promise(function(t,o){var r;g((r=[],Object.keys(e).forEach(function(t){r.push.apply(r,e[t])}),r),i,function(e){return n(e),e.length?o(new m(e,h(e))):t()})});return o.catch(function(e){return e}),o}var r=t.firstFields||[];!0===r&&(r=Object.keys(e));var a=Object.keys(e),s=a.length,l=0,c=[],d=new Promise(function(t,o){var d=function(e){if(c.push.apply(c,e),++l===s)return n(c),c.length?o(new m(c,h(c))):t()};a.length||(n(c),t()),a.forEach(function(t){var n=e[t];if(-1!==r.indexOf(t))g(n,i,d);else{var o=[],a=0,s=n.length;function l(e){o.push.apply(o,e),++a===s&&d(o)}n.forEach(function(e){i(e,l)})}})});return d.catch(function(e){return e}),d}(u,l,function(e,t){var i,n=e.rule,o=("object"===n.type||"array"===n.type)&&("object"==typeof n.fields||"object"==typeof n.defaultField);function r(e,t){return a({},t,{fullField:n.fullField+"."+e})}function s(i){void 0===i&&(i=[]);var s=i;if(Array.isArray(s)||(s=[s]),!l.suppressWarning&&s.length&&T.warning("async-validator:",s),s.length&&void 0!==n.message&&(s=[].concat(n.message)),s=s.map(v(n)),l.first&&s.length)return f[n.field]=1,t(s);if(o){if(n.required&&!e.value)return void 0!==n.message?s=[].concat(n.message).map(v(n)):l.error&&(s=[l.error(n,p(l.messages.required,n.field))]),t(s);var c={};if(n.defaultField)for(var d in e.value)e.value.hasOwnProperty(d)&&(c[d]=n.defaultField);for(var u in c=a({},c,e.rule.fields))if(c.hasOwnProperty(u)){var h=Array.isArray(c[u])?c[u]:[c[u]];c[u]=h.map(r.bind(null,u))}var g=new T(c);g.messages(l.messages),e.rule.options&&(e.rule.options.messages=l.messages,e.rule.options.error=l.error),g.validate(e.value,e.rule.options||l,function(e){var i=[];s&&s.length&&i.push.apply(i,s),e&&e.length&&i.push.apply(i,e),t(i.length?i:null)})}else t(s)}o=o&&(n.required||!n.required&&e.value),n.field=e.field,n.asyncValidator?i=n.asyncValidator(n,e.value,s,e.source,l):n.validator&&(!0===(i=n.validator(n,e.value,s,e.source,l))?s():!1===i?s(n.message||n.field+" fails"):i instanceof Array?s(i):i instanceof Error&&s(i.message)),i&&i.then&&i.then(function(){return s()},function(e){return s(e)})},function(e){!function(e){var t,i=[],n={};for(t=0;t<e.length;t++){var o,r=e[t];Array.isArray(r)?i=(o=i).concat.apply(o,r):i.push(r)}i.length?n=h(i):(i=null,n=null),c(i,n)}(e)})},getType:function(e){if(void 0===e.type&&e.pattern instanceof RegExp&&(e.type="pattern"),"function"!=typeof e.validator&&e.type&&!k.hasOwnProperty(e.type))throw Error(p("Unknown rule type %s",e.type));return e.type||"string"},getValidationMethod:function(e){if("function"==typeof e.validator)return e.validator;var t=Object.keys(e),i=t.indexOf("message");return(-1!==i&&t.splice(i,1),1===t.length&&"required"===t[0])?k.required:k[this.getType(e)]||!1}},T.register=function(e,t){if("function"!=typeof t)throw Error("Cannot register a validator by type, validator is not a function");k[e]=t},T.warning=function(){},T.messages=A,T.validators=k;var E=i(96868),R=i(47696),D=i(31755),O=i(55014),M=i(54730),N=i(7135);class P extends Error{constructor(e){super("Async Validation Error"),this.errors=e}}var L=i(63462),B=i(5317),F=i(71367),V=i(18954),z=i(63447),H=i(66794);let W=(0,z.defineComponent)({name:"FormItem",components:{vPopup:O.Z,withCol:(0,B.Q)(L.Z)},mixins:[R.Z,E.ZP,(0,D.f)("form-controller"),(0,D.J)("form-item"),(0,D.f)("form-multiple-item"),(0,D.f)("form")],props:{prop:{type:String,default:void 0},label:{type:String,default:void 0},disableLabel:{type:Boolean,default:!1},disableDescription:{type:Boolean,default:!1},validateDisabledField:{type:Boolean,default:!1},disableValidation:{type:Boolean,default:!1},hideValidateMessage:{type:Boolean,default:!1},hideValidateStatusCls:{type:Boolean,default:!1},rules:{type:[Object,Array],default:void 0},help:{type:String,default:void 0},validateStatus:{type:String,default:void 0},defaultValidateTrigger:{type:String,default:"blur"},immediateValidate:{type:Boolean,default:!1},showMessage:{type:Boolean,default:!0},hideLabel:{type:Boolean,default:!1},textonly:{type:Boolean,default:!1},indent:{type:[Number,String],default:0},validateDebouncedTimer:{type:Number,default:250},registerKey:{type:String,default:void 0},validateMessageDisplayMode:{type:String,validator:e=>["popup","text","form"].includes(e),default:"form"},fixInitialValue:{type:String,default:void 0},wrapperFlex:{type:[String,Number,Object],default:void 0},controlFlex:{type:[String,Number,Object],default:void 0},labelFlex:{type:[String,Number,Object],default:void 0}},emits:["validated","validating","update:model-value","form.register","form.unregister"],data(){return{field:null,unwatchers:null,formPrefix:"v-form",prefixCls:"v-form-item",innerValidateStatus:this.validateStatus,validateMessage:this.help,fieldDisabled:!1,validator:{},innerInitialValue:void 0,fieldValue:void 0,labelFor:"",isComposite:!1}},computed:{inFlexMultipleFormItem(){return this["form-multiple-item"]?.instance?.inFlexForm},inFlexForm(){return!!this.form?.instance?.flex},itemCls(){return[this.prefixCls,{"is-composite":this.isComposite,"hide-label":this.hideLabel,[`${this.prefixCls}-with-help`]:this.validateMessage}]},itemStyle(){return{"--indent":+this.indent}},labelCls(){return[`${this.prefixCls}-label`,{disabled:this.isFieldDisabled||this.disableLabel}]},innerHideLabel(){return!!this.hideLabel||"vertical"===this.form?.instance?.innerDirection&&!(0,M.$K)(this.label)&&!(0,o._Y)(this,"label")},innerControlFlex(){return"vertical"!==this.form?.instance?.innerDirection&&((0,M.$K)(this.controlFlex)?this.controlFlex:!!this.inFlexMultipleFormItem&&"auto")},innerLabelFlex(){return"vertical"!==this.form?.instance?.innerDirection&&!!(0,M.$K)(this.labelFlex)&&this.labelFlex},controlCls(){let e={error:"has-error",warning:"has-warning",success:"has-success",validating:"is-validating"}[this.innerValidateStatus];return[`${this.prefixCls}-control`,{[e]:e&&!this.hideValidateStatusCls,"v-form-displayfield":this.textonly}]},labelStyle(){return{...this.getFlexStyle(this.innerLabelFlex)}},controlStyle(){return{...this.getFlexStyle(this.innerControlFlex)}},isFieldDisabled(){return!!this.fieldDisabled},shouldValidate(){return!this.disableValidation&&!(!this.validateDisabledField&&this.isFieldDisabled)},isPopupDisabled(){return!((0,M.$K)(this.validateMessage)&&""!==this.validateMessage)||this.hideValidateMessage||!this.shouldValidate||this.validateMessageTextMode},isDirty(){return!(0,M.Xy)(this.innerInitialValue,this.fieldValue)},validateMessageTextMode(){return"text"==this.currentValidateDisdplayMode},currentValidateDisdplayMode(){return"form"!==this.validateMessageDisplayMode?this.validateMessageDisplayMode:this.form?.instance.validateMessageDisplayMode?this.form?.instance.validateMessageDisplayMode:"popup"},descriptionCls(){return{disabled:this.isFieldDisabled||this.disableDescription}}},watch:{fixInitialValue:{handler(e){this.innerInitialValue=e},immediate:!0},help(e){this.validateMessage=e,this.innerValidateStatus=e?"error":""},validateStatus(e){this.innerValidateStatus=e}},created(){var e=this;(0,F.Zn)(this,"form.register",this.onFieldRegister),(0,F.Zn)(this,"form.unregister",this.onFieldUnregister),this.validateDebounced=(0,r.Z)(function(t){for(var i=arguments.length,n=Array(i>1?i-1:0),o=1;o<i;o++)n[o-1]=arguments[o];e.validate(t,...n)},this.validateDebouncedTimer)},mounted(){this.dispatch("Form","form.addField",[this]),this["form-multiple-item"]&&(this.isComposite=this["form-multiple-item"].isComposite,this["form-multiple-item"].register(this))},[n.mT.beforeUnmount](){this.dispatch("Form","form.removeField",[this]),this["form-multiple-item"]&&this["form-multiple-item"].unregister(this)},methods:{async showPopup(e){this.validateDebounced&&this.validateDebounced.cancel(),this.$refs.popup&&(this.setInvalid(e,"error"),await this.$nextTick(),this.$refs.popup.showPopup())},hidePopup(){this.validateDebounced&&this.validateDebounced.cancel(),this.$refs.popup&&this.$refs.popup.hidePopup()},async validate(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2?arguments[2]:void 0,n=null;if(this.validateDebounced&&this.validateDebounced.cancel(),this.innerValidateStatus="",n=this.getFilteredRule(e),i&&(n=n.concat(i)),(!this.field||!this.field.validateByField)&&(!this.prop||!n||0===n.length||!this.shouldValidate))return this.validateMessage="",(0,F.Qy)(this,"validated",{message:this.validateMessage,status:this.innerValidateStatus}),this.validateMessage;this.innerValidateStatus="validating",(0,F.Qy)(this,"validating");try{if(this.field?.validateByField&&await this.field?.validate?.(t?.event),n.length>0){let e={[this.prop]:this.fieldValue},t=new T({[this.prop]:n});t.messages({required:()=>this._i18n("extlang","fieldblank"),whitespace:()=>this._i18n("extlang","fieldblank")}),await t.validate(e,{firstFields:!0,suppressWarning:!0})}this.innerValidateStatus="success",this.validateMessage=""}catch(e){if(!(e instanceof P||/Async Validation Error/.test(e.message)))throw e;e.errors&&(this.innerValidateStatus="error",this.validateMessage=e.errors[0].message)}return(0,F.Qy)(this,"validated",{message:this.validateMessage,status:this.innerValidateStatus}),this.validateMessage},inFormController(){return!!this["form-controller"]},resetField(){this.innerValidateStatus="",this.validateMessage="",this.field&&(0,F.Qy)(this.field,(0,V.ef)(this.field),this.innerInitialValue)},commit(){this["form-controller"]||(this.innerInitialValue=this.fieldValue)},getRules(){let e=this.form?.instance?.rules?.[this.prop]??[];return[].concat(this.rules??[]).concat(e)},getFilteredRule(e){return this.getRules().filter(t=>{let i=t.trigger??this.defaultValidateTrigger;return!(0,M.$K)(e)||null===e||((0,M.kJ)(i)?i.some(t=>t.includes(e)):i.includes(e))})},setInvalid(e,t){this.innerValidateStatus=t||"error",(0,M.$K)(e)&&(this.validateMessage=e)},ensureVisible(){(0,N.X5)(this.$el,{scrollMode:"if-needed"})},resetInvalid(){this.innerValidateStatus="",this.validateMessage=""},watchField(e){let t=e.valueKey??(0,V.GV)(),i=e.disabledKey??"disabled";this.field=e,this.labelFor=e.id,(0,M.$K)(this.fixInitialValue)||(this.innerInitialValue=e[t]),this.fieldValue=e[t];let n=[e.$watch(t,this.onFieldChange,{immediate:!0}),e.$watch(t,e=>{this.onFieldShouldValidate(e,"change")},{immediate:this.immediateValidate}),e.$watch(i,e=>{this.onFieldDisable(e),(this.immediateValidate||e)&&this.onFieldShouldValidate(e,this.defaultValidateTrigger)},{immediate:!0}),(0,F.Zn)(e,"blur",this.onFieldBlur),(0,F.Zn)(e,"keyup",this.onFieldKeyUp),(0,F.Zn)(e,"focus-next-field",this.onFocusNextField),(0,F.Zn)(e,"focus-prev-field",this.onFocusPreviousField)];e.validateByField&&n.push((0,F.Zn)(e,e.validateByField.event,this.onFieldCustomEvent)),this.unwatchers=n},unwatchField(e){if((0,F.M5)(e,"blur",this.onFieldBlur),(0,F.M5)(e,"keyup",this.onFieldKeyUp),(0,F.M5)(e,"focus-next-field",this.onFocusNextField),(0,F.M5)(e,"focus-prev-field",this.onFocusPreviousField),e.validateByField&&(0,F.M5)(e,e.validateByField.event,this.onFieldCustomEvent),this.unwatchers){for(let e of this.unwatchers)e();this.unwatchers=null}},onFocusNextField(){this.form?.instance.focusNextField()},onFocusPreviousField(){this.form?.instance.focusPrevField()},onFieldRegister(e,t){(t||this.registerKey)&&this.registerKey!==t||(this.field&&this.onFieldUnregister(this.field),this.watchField(e))},onFieldUnregister(e,t){(t||this.registerKey)&&this.registerKey!==t||(this.unwatchField(e),this.field=null)},onFieldCustomEvent(e){return this.validateDebounced("",{triggerByField:!0,event:e})},onFieldBlur(){return this.validateDebounced("blur")},onFieldKeyUp(){},onFieldShouldValidate(e,t){return this.validateDebounced(t)},onFieldDisable(e){this.fieldDisabled=e},onFieldChange(e){this.fieldValue=e},register(e){(arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{})(this)},unregister(e){(arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{})(this)},hasDescriptionSlot(){return(0,o._Y)(this,"description")},getFlexStyle(e){let t={},i=(0,M.Kn)(e)?this.$breakpointManager.getSuitableValue(e):e;return!1===i?{}:((0,M.sI)(i)||(t.flex=i),(0,M.iE)(i)&&(t.width=i,t["flex-grow"]=0,t["flex-shrink"]=0),t)}}}),Y=["for"],U={key:0,class:"validate-message"};var G=(0,H.Z)(W,[["render",function(e,t,i,n,o,r){let a=(0,z.resolveComponent)("v-popup"),s=(0,z.resolveComponent)("with-col");return(0,z.openBlock)(),(0,z.createBlock)(s,{wrap:e.inFlexMultipleFormItem,flex:e.wrapperFlex},{default:(0,z.withCtx)(()=>[(0,z.createElementVNode)("div",{class:(0,z.normalizeClass)(e.itemCls),style:(0,z.normalizeStyle)(e.itemStyle)},[(0,z.renderSlot)(e.$slots,"before"),e.innerHideLabel||e.isComposite?(0,z.createCommentVNode)("",!0):((0,z.openBlock)(),(0,z.createElementBlock)("div",{key:0,class:(0,z.normalizeClass)(e.labelCls),style:(0,z.normalizeStyle)(e.labelStyle)},[(0,z.renderSlot)(e.$slots,"label",{label:e.label,for:e.labelFor},()=>[(0,z.renderSlot)(e.$slots,"label-before"),e.label?((0,z.openBlock)(),(0,z.createElementBlock)("label",{key:0,for:e.labelFor},(0,z.toDisplayString)(e.label),9,Y)):(0,z.createCommentVNode)("",!0),(0,z.renderSlot)(e.$slots,"label-after")])],6)),(0,z.createElementVNode)("div",{class:"v-form-item-input",style:(0,z.normalizeStyle)(e.controlStyle)},[(0,z.createElementVNode)("div",{class:(0,z.normalizeClass)(e.controlCls)},[(0,z.createVNode)(a,{ref:"popup",type:"error",disable:e.isPopupDisabled,content:e.validateMessage},{default:(0,z.withCtx)(()=>[(0,z.renderSlot)(e.$slots,"default")]),_:3},8,["disable","content"])],2),(0,z.renderSlot)(e.$slots,"status",{},()=>[e.validateMessageTextMode&&e.validateMessage?((0,z.openBlock)(),(0,z.createElementBlock)("div",U,(0,z.toDisplayString)(e.validateMessage),1)):(0,z.createCommentVNode)("",!0)]),e.hasDescriptionSlot()?((0,z.openBlock)(),(0,z.createElementBlock)("div",{key:0,class:(0,z.normalizeClass)(["item-description",e.descriptionCls])},[(0,z.renderSlot)(e.$slots,"description")],2)):(0,z.createCommentVNode)("",!0)],4),(0,z.renderSlot)(e.$slots,"after")],6)]),_:3},8,["wrap","flex"])}]])},73200:function(e,t,i){"use strict";i.d(t,{Z:()=>p}),i(95790),i(39908),i(29127);var n=i(31755),o=i(5317),r=i(54730),a=i(12120),s=i(94550),l=i(63447),c=i(66794);let d="follow-form",u=(0,l.defineComponent)({name:"FormMultipleItem",components:{withGrid:(0,o.Q)(a.Z),withRow:(0,o.Q)(s.Z)},mixins:[(0,n.J)("form-multiple-item",["isComposite"]),(0,n.f)("form")],props:{label:{type:String,default:void 0},disableLabel:{type:Boolean,default:!1},hideLabel:{type:Boolean,default:!1},marginSize:{type:String,default:"small"},indent:{type:[Number,String],default:0},gap:{type:[Object,String,Array,Number],default:()=>["6px","6px"]},flexWrap:{type:[Object,Boolean],default:!1},flexAlign:{type:[Object,Boolean],default:void 0},flexJustify:{type:[Object,Boolean],default:void 0},flex:{type:String,default:d},labelFlex:{type:[String,Number,Object],default:void 0},itemsWrapperFlex:{type:[String,Number,Object],default:void 0}},data:()=>({prefixCls:"v-form",isComposite:!0,fields:[]}),computed:{inFlexForm(){return this.inGridLayoutForm||this.inRowLayoutForm},inGridLayoutForm(){return this.flex===d?"grid"===this.form?.instance?.flex:"grid"===this.flex},inRowLayoutForm(){return this.flex===d?"row"===this.form?.instance?.flex||!0===this.form?.instance?.flex:"row"===this.flex||!0===this.flex},innerJustify(){return this.flexJustify},innerAlign(){return(0,r.$K)(this.flexAlign)?this.flexAlign:!!this.inFlexForm&&"center"},itemsCls(){return[`${this.prefixCls}-multi-item`,{small:"small"===this.marginSize,large:"large"===this.marginSize,none:"none"===this.marginSize}]},itemsWrapperCls(){return`${this.prefixCls}-multi-item-wrapper`},wrapperCls(){return[`${this.prefixCls}-multi-wrapper`,{"flex-form-multiple-item":this.inFlexForm,"hide-label":this.hideLabel}]},wrapperStyle(){return{"--indent":+this.indent}},labelCls(){return[`${this.prefixCls}-item-label`,{disabled:this.isDisabled()||this.disableLabel}]},itemsWrapperStyle(){return{...this.getFlexStyle(this.itemsWrapperFlex)}},labelStyle(){return{...this.getFlexStyle(this.labelFlex)}}},methods:{register(e){this.fields=this.fields||[],this.fields.push(e)},unregister(e){this.fields=(0,r.Er)(this.fields,e)},isDirty(){return this.fields.some(e=>e.isDirty)},isDisabled(){return this.fields.every(e=>e.isFieldDisabled)},getFlexStyle(e){let t={},i=(0,r.Kn)(e)?this.$breakpointManager.getSuitableValue(e):e;return!1===i?{}:((0,r.sI)(i)||(t.flex=i),(0,r.iE)(i)&&(t.width=i,t["flex-grow"]=0,t["flex-shrink"]=0),t)}}}),h={key:0};var p=(0,c.Z)(u,[["render",function(e,t,i,n,o,r){let a=(0,l.resolveComponent)("with-row"),s=(0,l.resolveComponent)("with-grid");return(0,l.openBlock)(),(0,l.createElementBlock)("div",{class:(0,l.normalizeClass)(e.wrapperCls),style:(0,l.normalizeStyle)(e.wrapperStyle)},[e.hideLabel?(0,l.createCommentVNode)("",!0):((0,l.openBlock)(),(0,l.createElementBlock)("div",{key:0,class:(0,l.normalizeClass)(e.labelCls),style:(0,l.normalizeStyle)(e.labelStyle)},[(0,l.renderSlot)(e.$slots,"label",{label:e.label},()=>[(0,l.renderSlot)(e.$slots,"label-before"),e.label?((0,l.openBlock)(),(0,l.createElementBlock)("label",h,(0,l.toDisplayString)(e.label),1)):(0,l.createCommentVNode)("",!0),(0,l.renderSlot)(e.$slots,"label-after")])],6)),(0,l.createElementVNode)("div",{class:(0,l.normalizeClass)(e.itemsWrapperCls),style:(0,l.normalizeStyle)(e.itemsWrapperStyle)},[(0,l.createElementVNode)("div",{class:(0,l.normalizeClass)(e.itemsCls)},[(0,l.createVNode)(s,{wrap:e.inGridLayoutForm,gap:e.gap},{default:(0,l.withCtx)(()=>[(0,l.createVNode)(a,{wrap:e.inRowLayoutForm,gap:e.gap,"flex-wrap":e.flexWrap,align:e.innerAlign,justify:e.innerJustify},{default:(0,l.withCtx)(()=>[(0,l.renderSlot)(e.$slots,"default")]),_:3},8,["wrap","gap","flex-wrap","align","justify"])]),_:3},8,["wrap","gap"])],2)],6)],6)}]])},21723:function(e,t,i){"use strict";i.d(t,{Z:()=>h}),i(95790),i(95922),i(60919),i(53346),i(29127);var n=i(31755),o=i(76013),r=i(54730),a=i(71283),s=i(12725),l=i(71367),c=i(63447),d=i(66794);let u="horizontal";var h=(0,d.Z)((0,c.defineComponent)({name:"Form",components:{vLayout:s.Z},mixins:[(0,n.J)("form")],props:{flex:{type:[Boolean,String],default:!1},layoutOrder:{type:Number,default:0},model:{type:Object,default:()=>({})},rules:{type:Object,default:()=>({})},direction:{type:[Object,String],default:()=>({xxs:"vertical",xxxl:u})},validateMessageDisplayMode:{type:String,validator:e=>["popup","text"].includes(e),default:"popup"}},emits:["submit","validated","form.removeField","form.addField"],data:()=>({prefix:"v-form",fields:[],controllers:[]}),computed:{innerDirection(){return(0,r.Kn)(this.direction)?this.$breakpointManager?this.$breakpointManager.getSuitableValue(this.direction):((0,a.D8)("please import and use BreakpointManagerPlugin when you are in tree-shaking mode or breakpoint will not active."),u):this.direction},wrapClasses(){return{[this.prefix]:!0,[`${this.prefix}-${this.innerDirection}`]:!0}}},watch:{async rules(e,t){(0,r.Xy)(e,t)||await this.validate()}},created(){(0,l.Zn)(this,"form.addField",e=>{e&&this.addField(e)}),(0,l.Zn)(this,"form.removeField",e=>{e&&this.removeField(e)})},methods:{addField(e){return this.fields.push(e),()=>this.removeField(e)},removeField(e){this.fields=(0,r.Er)(this.fields,e)},addFormController(e){return this.controllers.push(e),()=>(0,r.Er)(this.controllers,e)},register(e){(arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{})(this)},unregister(e){(arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{})(this)},onSubmit(e){(0,l.Qy)(this,"submit",e)},findField(e){if(!e)return null;for(let t of this.fields)if(t.prop===e)return t;return null},resetFields(){for(let e of this.controllers)e.resetField?.();this.fields.forEach(e=>{e.inFormController?.()||e.resetField()})},async validate(e){let{autoScroll:t=!0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=await Promise.all(this.fields.map(async t=>({error:await t?.validate?.(e),field:t}))),n=i.find(e=>e.error);return t&&n&&n.field&&(n.field.ensureVisible(),n.field.showPopup()),(0,l.Qy)(this,"validated",{valid:!n,errResults:i}),!n},async validateField(e){let t=this.fields.find(t=>t.prop===e);if(!t)throw Error("must call validateField with valid prop string!");await t.validate("")},isDirty(){let e=!1;for(let t of this.controllers)e=e||t.isDirty?.();return e||this.fields.some(e=>!e.isInTable?.()&&((0,r.mf)(e.isDirty)?e.isDirty():e.isDirty))},commit(){for(let e of this.controllers)e.commit?.();this.fields.forEach(e=>{e.commit()})},focusNextField(){(0,o.f9)(this.$el)},focusPrevField(){(0,o.lI)(this.$el)}}}),[["render",function(e,t,i,n,o,r){let a=(0,c.resolveComponent)("v-layout"),s=(0,c.resolveDirective)("syno-id");return(0,c.withDirectives)(((0,c.openBlock)(),(0,c.createBlock)(a,{tag:"form",class:(0,c.normalizeClass)(e.wrapClasses),type:"form",order:e.layoutOrder,onSubmit:(0,c.withModifiers)(e.onSubmit,["prevent"])},{default:(0,c.withCtx)(()=>[(0,c.renderSlot)(e.$slots,"default")]),_:3},8,["class","order","onSubmit"])),[[s]])}]])},63462:function(e,t,i){"use strict";i.d(t,{Z:()=>a});var n=i(54730),o=i(31755),r=i(63447),a=(0,i(66794).Z)((0,r.defineComponent)({name:"Col",mixins:[(0,o.f)("grid"),(0,o.f)("row")],props:{flex:{type:[String,Number,Object],default:"none"}},computed:{layout(){return this.grid?.instance?"grid":!!this.row?.instance&&"row"},colStyle(){let e={},t=(0,n.Kn)(this.flex)?this.$breakpointManager.getSuitableValue(this.flex):this.flex;return(0,n.sI)(t)||(e.flex=t),(0,n.iE)(t)&&(e.width=t,e["flex-grow"]=0,e["flex-shrink"]=0),e},colCls(){let e=[],t=(0,n.Kn)(this.flex)?this.$breakpointManager.getSuitableValue(this.flex):this.flex;return(0,n.sI)(t)?e.push(`v-col-${t}`):"auto"!==t&&"none"!==t||e.push(`v-col-${t}`),[{[`in-${this.layout}-layout`]:!!this.layout},"v-col",...e]}}}),[["render",function(e,t,i,n,o,a){return(0,r.openBlock)(),(0,r.createElementBlock)("div",{class:(0,r.normalizeClass)(e.colCls),style:(0,r.normalizeStyle)(e.colStyle)},[(0,r.renderSlot)(e.$slots,"default")],6)}]])},12120:function(e,t,i){"use strict";i.d(t,{Z:()=>c});var n=i(54730),o=i(31755),r=i(63447),a=i(66794);let s="start",l="max-content";var c=(0,a.Z)((0,r.defineComponent)({name:"Grid",mixins:[(0,o.J)("grid")],props:{gap:{type:[Object,String,Array,Number],default:void 0},columns:{type:[Number,String,Object],default:24},rows:{type:[Number,String],default:1},gridTemplateColumns:{type:[String,Object,Array],default:"1fr"},gridTemplateRows:{type:[String,Object],default:"1fr"},align:{type:[String,Object],default:s},justify:{type:[String,Object],default:s}},computed:{gapStyle(){let e=(0,n.Kn)(this.gap)?this.$breakpointManager.getSuitableValue(this.gap):this.gap,t=(0,n.kJ)(e)?e[0]:e;return{"--v-grid-row-gap":(0,n.kJ)(e)?e[1]:e,"--v-grid-col-gap":t}},innerColumns(){return(0,n.Kn)(this.columns)?this.$breakpointManager.getSuitableValue(this.columns):this.columns},innerRows(){return(0,n.Kn)(this.rows)?this.$breakpointManager.getSuitableValue(this.rows):this.rows},innerGridTemplateRows(){let e=(0,n.Kn)(this.gridTemplateRows)?this.$breakpointManager.getSuitableValue(this.gridTemplateRows):this.gridTemplateRows;return e===l?"repeat(var(--v-grid-rows), minmax(0, max-content))":(0,n.kJ)(e)?e.join(" "):`repeat(var(--v-grid-rows), ${e})`},innerGridTemplateColumns(){let e=(0,n.Kn)(this.gridTemplateColumns)?this.$breakpointManager.getSuitableValue(this.gridTemplateColumns):this.gridTemplateColumns;return e===l?"repeat(var(--v-grid-columns), minmax(0, max-content))":(0,n.kJ)(e)?e.join(" "):`repeat(var(--v-grid-columns), ${e})`},innerAlign(){return(0,n.Kn)(this.align)?this.$breakpointManager.getSuitableValue(this.align):this.align},innerJustify(){return(0,n.Kn)(this.justify)?this.$breakpointManager.getSuitableValue(this.justify):this.justify},gridStyle(){return{...this.gapStyle,"--v-grid-columns":this.innerColumns,"--v-grid-rows":this.innerRows,"--grid-template-columns":this.innerGridTemplateColumns,"--grid-template-rows":this.innerGridTemplateRows,"--grid-align":this.innerAlign,"--grid-justify":this.innerJustify}}}}),[["render",function(e,t,i,n,o,a){return(0,r.openBlock)(),(0,r.createElementBlock)("div",{class:"v-grid",style:(0,r.normalizeStyle)(e.gridStyle)},[(0,r.renderSlot)(e.$slots,"default")],4)}]])},94550:function(e,t,i){"use strict";i.d(t,{Z:()=>l});var n=i(54730),o=i(31755),r=i(63447),a=i(66794);let s=["start","end","baseline","center","stretch"];var l=(0,a.Z)((0,r.defineComponent)({name:"Row",mixins:[(0,o.J)("row")],props:{align:{type:[String,Object],default:"start",validator:e=>!(0,n.HD)(e)||s.includes(e)},justify:{type:[String,Object],default:"start",validator:e=>!(0,n.HD)(e)||s.includes(e)},gap:{type:[Object,String,Array,Number],default:void 0},flexWrap:{type:[Object,Boolean],default:!1}},computed:{innerFlexWrap(){return(0,n.Kn)(this.flexWrap)?this.$breakpointManager.getSuitableValue(this.flexWrap):this.flexWrap},innerAlign(){return(0,n.Kn)(this.align)?this.$breakpointManager.getSuitableValue(this.align):this.align},innerJustify(){return(0,n.Kn)(this.justify)?this.$breakpointManager.getSuitableValue(this.justify):this.justify},rowCls(){return["v-row",{wrap:this.innerFlexWrap,[`align-${this.innerAlign}`]:this.innerAlign,[`justify-content-${this.innerJustify}`]:this.innerJustify}]},rowStyle(){let e=(0,n.Kn)(this.gap)?this.$breakpointManager.getSuitableValue(this.gap):this.gap;return{"--v-row-horizontal-gap":(0,n.kJ)(e)?e[0]:e,"--v-row-vertical-gap":(0,n.kJ)(e)?e[1]:e}}}}),[["render",function(e,t,i,n,o,a){return(0,r.openBlock)(),(0,r.createElementBlock)("div",{class:(0,r.normalizeClass)(e.rowCls),style:(0,r.normalizeStyle)(e.rowStyle)},[(0,r.renderSlot)(e.$slots,"default")],6)}]])},23886:function(e,t,i){"use strict";i.d(t,{Z:()=>g});var n=i(71283),o=i(86847),r=i(54730),a=i(88446);let s=["normal","thin-rect"];var l=i(70243);let c={svgIcon:{type:(0,l.C)(Object),default:()=>null},name:{type:String,default:void 0},size:{type:(0,l.C)([String,Array]),default:"normal",validator:e=>(0,r.kJ)(e)||s.includes(e)},type:{type:(0,l.C)(String),default:o.e1.FOLLOW_MANAGER,validator:e=>Object.values(o.e1).includes(e)},svgIconSet:{type:[Boolean,String],default:!1},sprite:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},ariaHidden:{type:Boolean,default:!0},ariaLabel:{type:String,default:void 0}};var d=i(63447),u=(0,d.defineComponent)({name:"Icon",mixins:[(0,a.W)("icon")],props:c,computed:{innerAriaHidden(){return!((0,r.HD)(this.ariaLabel)&&this.ariaLabel.length>0)&&this.ariaHidden},innerSize(){return this.getIconConfigValue("size")},innerSvgIconSet(){return this.getIconConfigValue("svgIconSet")},innerSvgIcon(){return this.getIconConfigValue("svgIcon")},innerType(){let e=this.getIconConfigValue("type");return e===o.e1.FOLLOW_MANAGER?this.$iconManager.iconType:e},innerSprite(){return this.getIconConfigValue("sprite")},innerDisabled(){return this.getIconConfigValue("disabled")},innerConfigConsumerIcon(){return this.configConsumerIcon??this.name},iconCls(){return["v-icon",...this.name?[this.name]:[],{[`icon-${this.innerSvgIconSet}`]:this.isSvg&&this.innerSvgIconSet,[`v-icon-size-${this.innerSize}`]:!this.isSvg&&!(0,r.kJ)(this.innerSize),disabled:this.innerDisabled,"is-svg":this.isSvg,"is-bkg":this.isBkg}]},iconStyle(){return{width:(0,r.kJ)(this.innerSize)?`${this.innerSize[0]}px`:void 0,height:(0,r.kJ)(this.innerSize)?`${this.innerSize[1]}px`:void 0}},isSvg(){return this.innerType===o.e1.SVG},isBkg(){return this.innerType===o.e1.BKG},svgComponent(){let e=this.innerSvgIcon??this.$iconManager.get(this.name);return e||(0,n.D8)(`${this.name} icon is not registered into icon manager.`),e},svgProps(){return{width:(0,r.kJ)(this.innerSize)?+this.innerSize[0]:void 0,height:(0,r.kJ)(this.innerSize)?+this.innerSize[1]:void 0}},isComponentSvg(){return(0,r.Ou)(this.svgComponent)},isHtmlSvg(){let e=(0,r.HD)(this.svgComponent);return e&&(0,n.D8)("please use svg icon component instead of html svg, html svg will deprecated in the future."),e}},beforeCreate(){this.$iconManager||(0,n.D8)("please import and use IconManagerPlugin when you are in tree-shaking mode or svg icon will unavailable.")},methods:{focus(){this.$el?.focus()}}}),h=i(66794);let p=["syno-id","aria-hidden","aria-label","innerHTML"],f=["syno-id","aria-hidden","aria-label"];var g=(0,h.Z)(u,[["render",function(e,t,i,n,o,r){return e.isSvg&&!e.innerSprite&&e.isHtmlSvg?((0,d.openBlock)(),(0,d.createElementBlock)("i",{key:0,class:(0,d.normalizeClass)(e.iconCls),style:(0,d.normalizeStyle)(e.iconStyle),"syno-id":e.synoId,"aria-hidden":e.innerAriaHidden,"aria-label":e.ariaLabel,innerHTML:e.svgComponent},null,14,p)):((0,d.openBlock)(),(0,d.createElementBlock)("i",{key:1,class:(0,d.normalizeClass)(e.iconCls),style:(0,d.normalizeStyle)(e.iconStyle),"syno-id":e.synoId,"aria-hidden":e.innerAriaHidden,"aria-label":e.ariaLabel},[e.isSvg&&!e.innerSprite&&e.isComponentSvg?((0,d.openBlock)(),(0,d.createBlock)((0,d.resolveDynamicComponent)(e.svgComponent),(0,d.normalizeProps)((0,d.mergeProps)({key:0},e.svgProps)),null,16)):(0,d.createCommentVNode)("",!0),(0,d.renderSlot)(e.$slots,"default")],14,f))}]])},53495:function(e,t,i){"use strict";i.d(t,{Z:()=>D});var n=i(18954),o=i(71367),r=i(23886),a=i(54730),s=i(39693),l=i(7135),c=i(63707),d={[c.D2.mounted](e,t){let i=(0,a.mf)(t.value)?t.value:a.ZT;(0,l.on)(e,"mousedown",()=>{let e=!1,t=()=>{e=!0,!1===i()&&n()},n=()=>{window.clearInterval(o),e||t()},o=window.setInterval(()=>{t()},150);(0,l.IH)(document,"mouseup",n)})}},u=i(65698),h=i(31842),p=i(47501),f=i(74318),g=i(2176),m=i(9022),v=i(74999),b=i(49098),y=i(63447),w=i(66794);(0,m.z)("input-steppers-plus",v.HY),(0,m.z)("input-steppers-minus",v.pQ),(0,m.z)("input-steppers-up",v.EN),(0,m.z)("input-steppers-down",v.rn);let _=["up-down","right-left"],x=(0,y.defineComponent)({name:"InputSteppers",components:{vIcon:r.Z,vMenu:h.Z,vMenuItem:p.Z,vPortal:b.Z},directives:{pressing:d,clickoutside:u.ZP},mixins:[g.ZP,f.Z,m.Z],props:{controlsType:{type:String,default:"right-left",validator:e=>_.includes(e)},width:{type:Number,default:120},hasDivider:{type:Boolean,default:!0},[n.yz.value()]:{type:Number,default:0},min:{type:[Number,String],default:Number.MIN_SAFE_INTEGER},max:{type:[Number,String],default:Number.MAX_SAFE_INTEGER},step:{type:[Number,String],default:1},menu:{type:Array,default:()=>[]},disabled:{type:Boolean,default:!1},selectOnFocus:{type:Boolean,default:!0},patchNum:{type:Function,default:void 0}},emits:["update:model-value"],data:()=>({innerValue:0,showMenu:!1}),computed:{isUpDownControlsType(){return"up-down"===this.controlsType},isRightLeftControlsType(){return"right-left"===this.controlsType},wrapperStyle(){return{width:`${this.width}px`}},isPlusDisabled(){return+this.innerValue>=+this.max},isMinusDisabled(){return+this.innerValue<=+this.min},plusIconCls(){return{disabled:this.isPlusDisabled||this.disabled}},minusIconCls(){return{disabled:this.isMinusDisabled||this.disabled}},wrapperCls(){return["v-input-steppers-wrapper",this.controlsType,{"has-divider":this.hasDivider,disabled:this.disabled,"show-menu":this.showMenu}]},hasMenu(){return this.menu.length>0}},watch:{[n.yz.value()]:{handler(e){this.innerValue=e},immediate:!0}},methods:{onFocus(){this.showMenu=!0,this.isFocused=!0,this.selectOnFocus&&this.$refs.input?.select()},onBlur(){this.applyValue(parseFloat(this.$refs.input.value))},applyValue(e){if((0,a.hj)(e)&&!isNaN(e)||(e=this.innerValue),(0,a.mf)(this.patchNum)){let t=this.patchNum(e);e=!1===t?this.innerValue:t}this.setValue(e)},onClickoutside(){this.showMenu=!1},onMinus(){if(this.showMenu=!1,this.disabled||this.isMinusDisabled)return!1;this.applyValue(this.innerValue-+this.step)},onPlus(){if(this.showMenu=!1,this.disabled||this.isPlusDisabled)return!1;this.applyValue(this.innerValue+ +this.step)},setValue(e){let t=(0,a.HU)(e,+this.min,+this.max);this.$refs.input.value=t,t!==this.innerValue&&(0,o.Qy)(this,(0,n.ef)(),t)},selectValue(e){this.setValue(e)},onKeyDown(e){this.showMenu=!1,(0,s.Tx)(e)?(e.preventDefault(),this.onPlus()):(0,s.BU)(e)?(e.preventDefault(),this.onMinus()):(0,s.tH)(e)&&this.applyValue(parseFloat(this.$refs.input.value))}}}),S={key:0,class:"border-minus-wrapper"},C={key:0,class:"stepper-border border-minus"},k=["value","disabled","step"],I={key:1,class:"border-plus-wrapper"},A={key:0,class:"stepper-border border-plus"},T={key:2,class:"up-down-wrapper"},E=(0,y.createElementVNode)("div",{class:"stepper-border"},null,-1),R={class:"up-down-icon-wrapper"};var D=(0,w.Z)(x,[["render",function(e,t,i,n,o,r){let a=(0,y.resolveComponent)("v-icon"),s=(0,y.resolveComponent)("v-menu-item"),l=(0,y.resolveComponent)("v-menu"),c=(0,y.resolveComponent)("v-portal"),d=(0,y.resolveDirective)("pressing"),u=(0,y.resolveDirective)("clickoutside");return(0,y.openBlock)(),(0,y.createElementBlock)("div",{class:(0,y.normalizeClass)(e.wrapperCls),style:(0,y.normalizeStyle)(e.wrapperStyle)},[e.isRightLeftControlsType?((0,y.openBlock)(),(0,y.createElementBlock)("div",S,[(0,y.withDirectives)((0,y.createVNode)(a,{class:(0,y.normalizeClass)(["input-steppers-icon",e.minusIconCls]),name:"input-steppers-minus","svg-icon-set":"set13"},null,8,["class"]),[[d,e.onMinus]]),e.hasDivider?((0,y.openBlock)(),(0,y.createElementBlock)("div",C)):(0,y.createCommentVNode)("",!0)])):(0,y.createCommentVNode)("",!0),(0,y.withDirectives)((0,y.createElementVNode)("input",{ref:"input",type:"number",class:"number",value:e.innerValue,disabled:e.disabled,step:e.step,onBlur:t[0]||(t[0]=function(){return e.onBlur&&e.onBlur(...arguments)}),onFocus:t[1]||(t[1]=function(){return e.onFocus&&e.onFocus(...arguments)}),onKeydown:t[2]||(t[2]=function(){return e.onKeyDown&&e.onKeyDown(...arguments)})},null,40,k),[[u,e.onClickoutside,void 0,{children:!0}]]),e.isRightLeftControlsType?((0,y.openBlock)(),(0,y.createElementBlock)("div",I,[e.hasDivider?((0,y.openBlock)(),(0,y.createElementBlock)("div",A)):(0,y.createCommentVNode)("",!0),(0,y.withDirectives)((0,y.createVNode)(a,{class:(0,y.normalizeClass)(["input-steppers-icon",e.plusIconCls]),name:"input-steppers-plus","svg-icon-set":"set13"},null,8,["class"]),[[d,e.onPlus]])])):(0,y.createCommentVNode)("",!0),e.isUpDownControlsType?((0,y.openBlock)(),(0,y.createElementBlock)("div",T,[E,(0,y.createElementVNode)("div",R,[e.useSvgIcon?((0,y.openBlock)(),(0,y.createElementBlock)(y.Fragment,{key:0},[(0,y.withDirectives)((0,y.createVNode)(a,{class:(0,y.normalizeClass)(["input-steppers-icon",e.plusIconCls]),name:"input-steppers-up","svg-icon-set":"set13"},null,8,["class"]),[[d,e.onPlus]]),(0,y.withDirectives)((0,y.createVNode)(a,{class:(0,y.normalizeClass)(["input-steppers-icon",e.minusIconCls]),name:"input-steppers-down","svg-icon-set":"set13"},null,8,["class"]),[[d,e.onMinus]])],64)):((0,y.openBlock)(),(0,y.createElementBlock)(y.Fragment,{key:1},[(0,y.withDirectives)((0,y.createVNode)(a,{class:(0,y.normalizeClass)(["input-steppers-icon",e.plusIconCls]),name:"input-steppers-plus"},null,8,["class"]),[[d,e.onPlus]]),(0,y.withDirectives)((0,y.createVNode)(a,{class:(0,y.normalizeClass)(["input-steppers-icon",e.minusIconCls]),name:"input-steppers-minus"},null,8,["class"]),[[d,e.onMinus]])],64))])])):(0,y.createCommentVNode)("",!0),e.hasMenu&&e.showMenu?((0,y.openBlock)(),(0,y.createBlock)(c,{key:3,ref:"portal","mount-to":e.getContainerEl(),"acquire-z-index":"",alignment:e.innerAlignment,anchor:e.$el},{default:(0,y.withCtx)(()=>[(0,y.createVNode)(l,{width:e.width,onMenuClose:t[3]||(t[3]=t=>e.showMenu=!1)},{default:(0,y.withCtx)(()=>[((0,y.openBlock)(!0),(0,y.createElementBlock)(y.Fragment,null,(0,y.renderList)(e.menu,t=>((0,y.openBlock)(),(0,y.createBlock)(s,{key:t.value,type:"select",title:`${t.title}`,selected:e.innerValue===t.value,"close-on-select":"",onSelected:i=>e.selectValue(t.value)},null,8,["title","selected","onSelected"]))),128))]),_:1},8,["width"])]),_:1},8,["mount-to","alignment","anchor"])):(0,y.createCommentVNode)("",!0)],6)}]])},32361:function(e,t,i){"use strict";i.d(t,{Z:()=>j}),i(95790),i(53346);var n=i(91229);i(60919);var o=i(7135),r=i(60129);let a="function"==typeof Map?new Map:function(){let e=[],t=[];return{has:t=>e.indexOf(t)>-1,get:i=>t[e.indexOf(i)],set(i,n){-1===e.indexOf(i)&&(e.push(i),t.push(n))},delete(i){let n=e.indexOf(i);n>-1&&(e.splice(n,1),t.splice(n,1))}}}();function s(e){let t=a.get(e);t&&t.destroy()}function l(e){let t=a.get(e);t&&t.update()}let c=null;r.s?((c=e=>e).destroy=e=>e,c.update=e=>e):((c=(e,t)=>(e&&Array.prototype.forEach.call(e.length?e:[e],e=>(function(e){if(!e||!e.nodeName||"TEXTAREA"!==e.nodeName||a.has(e))return;let t=null,i=null,n=null;function r(){if(0===e.scrollHeight)return;let n=function(e){let t=[];for(;e&&e.parentNode&&e.parentNode instanceof Element;)e.parentNode.scrollTop&&t.push({node:e.parentNode,scrollTop:e.parentNode.scrollTop}),e=e.parentNode;return t}(e),o=document.documentElement&&document.documentElement.scrollTop;e.style.height="",e.style.height=e.scrollHeight+t+"px",i=e.clientWidth,n.forEach(e=>{e.node.scrollTop=e.scrollTop}),o&&(document.documentElement.scrollTop=o)}function s(){r();let t=Math.round(parseFloat(e.style.height)),i=window.getComputedStyle(e,null),a="content-box"===i.boxSizing?Math.round(parseFloat(i.height)):e.offsetHeight;if(a<t?"hidden"===i.overflowY&&(r(),a="content-box"===i.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight):"hidden"!==i.overflowY&&(r(),a="content-box"===i.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight),n!==a){n=a;let t=(0,o.yM)("autosize:resized");try{e.dispatchEvent(t)}catch{}}let s=(0,o.yM)("autosize:updated");try{e.dispatchEvent(s)}catch{}}let l=()=>{e.clientWidth!==i&&s()},c=(t=>{window.removeEventListener("resize",l,!1),e.removeEventListener("input",s,!1),e.removeEventListener("keyup",s,!1),e.removeEventListener("autosize:destroy",c,!1),e.removeEventListener("autosize:update",s,!1),Object.keys(t).forEach(i=>{e.style[i]=t[i]}),a.delete(e)}).bind(e,{height:e.style.height,resize:e.style.resize,overflowY:e.style.overflowY,overflowX:e.style.overflowX,wordWrap:e.style.wordWrap});e.addEventListener("autosize:destroy",c,!1),window.addEventListener("resize",l,!1),e.addEventListener("keyup",s,!1),e.addEventListener("autosize:update",s,!1),e.style.overflowX="hidden",e.style.wordWrap="break-word",a.set(e,{destroy:c,update:s}),function(){let i=window.getComputedStyle(e,null);"vertical"===i.resize?e.style.resize="none":"both"===i.resize&&(e.style.resize="horizontal"),isNaN(t="content-box"===i.boxSizing?-(parseFloat(i.paddingTop)+parseFloat(i.paddingBottom)):parseFloat(i.borderTopWidth)+parseFloat(i.borderBottomWidth))&&(t=0),s()}()})(e)),e)).destroy=e=>(e&&Array.prototype.forEach.call(e.length?e:[e],s),e),c.update=e=>(e&&Array.prototype.forEach.call(e.length?e:[e],l),e));var d=i(96868),u=i(43319),h=i(74318),p=i(47696),f=i(46001),g=i(49098),m=i(83717),v=i(71367),b=i(18954),y=i(54730),w=i(9022),_=i(71283),x=i(74999),S=i(23886),C=i(63447),k=i(66794),I=(0,k.Z)((0,C.defineComponent)({name:"HighlightBox",components:{},mixins:[],props:{color:{type:String,default:"blue"},hideInnerCls:{type:Boolean,default:!1}},data:()=>({prefixCls:"v-highlight-box"}),computed:{wrapperCls(){return[this.prefixCls,`${this.prefixCls}-${this.color}`]},innerCls(){return[{[`${this.prefixCls}-inner`]:!this.hideInnerCls}]}}}),[["render",function(e,t,i,n,o,r){return(0,C.openBlock)(),(0,C.createElementBlock)("div",{class:(0,C.normalizeClass)(e.wrapperCls)},[(0,C.createElementVNode)("div",{class:(0,C.normalizeClass)(e.innerCls)},[(0,C.renderSlot)(e.$slots,"default")],2)],2)}]]),A=i(64794),T=i(63707),E=i(12592);(0,w.z)("input-clear",x.xo),(0,w.z)("input-eye",x.eK),(0,w.z)("input-eye-slash",x.sG),(0,w.z)("input-password-rule-tick",x.E5);let R=(0,C.defineComponent)({name:"Input",components:{vIcon:S.Z,vHighlightBox:I,vScrollbar:f.Z,vPortal:g.Z},directives:{tooltip:A.Z},mixins:[d.ZP,h.Z,w.Z,p.Z],props:{type:{type:String,default:"text"},id:{type:String,default:()=>`syno-${(0,u.V)()}`},[b.yz.value()]:{type:[String,Number],default:void 0},placeholder:{type:[String,Number],default:void 0},disabled:{type:Boolean,default:!1},autosize:{type:[Boolean,Object],default:!1},strengthChecker:{type:[Function,Boolean],default:!1},mask:{type:[RegExp,Function],default:null},numberOnly:{type:Boolean,default:!1},defaultShowStrengthChecker:{type:Boolean,default:!1},maxlength:{type:Number,default:void 0},readonly:{type:Boolean,default:!1},focusClass:{type:[Boolean,String],default:"focused"},disableHoverStyle:{type:Boolean,default:!1},fitContainer:{type:Boolean,default:!0},autocomplete:{type:String,default:"off"},showPasswordVisibilityIcon:{type:Boolean,default:!0},clearable:{type:Boolean,default:!1},selectOnFocus:{type:Boolean,default:!1},passwordPortalName:{type:String,default:()=>"password-portal"+String(Math.round(1e7*Math.random()))},passwordRules:{type:Array,default:()=>[]},mobileBreakpoint:{type:[String,Boolean],default:"xxs"},inputAttrs:{type:Object,default:()=>({})}},emits:["focus","blur","strength-check","paste","keydown","clear","click","keyup","update:model-value","input"],data(){let e=this[b.yz.value()];return{composing:!1,showPasswordInfoInMobile:!1,prefixCls:"v-textfield",currentValue:null==e?"":e,isFocused:!1,isInvalid:!1,showStrength:this.defaultShowStrengthChecker,strength:"",strengthText:this._i18n("common","password_strength"),maskPassword:!0,passwordRulesChecked:[]}},computed:{isMobile(){return!this.$breakpointManager&&this.mobileBreakpoint?((0,_.D8)("please import and use BreakpointManagerPlugin when you are in tree-shaking mode or breakpoint will not active."),!1):this.mobileBreakpoint&&this.$breakpointManager?.lessAndEqThan(this.mobileBreakpoint)},hasPasswordInfo(){return"password"===this.type&&(this.passwordRules.length>0||!!this.strengthChecker)},hasPasswordRules(){return this.passwordRules.length>0},textareaRows(){return this.autosize?.minRows??2},textareaStyle(){let e=this.autosize?.lineHeight??18;return{maxHeight:this.autosize?.maxRows?this.autosize.maxRows*e+10+"px":"auto"}},inputType(){return"password"===this.type?this.maskPassword?"password":"text":this.type},wrapperCls(){return[`${this.prefixCls}-wrapper`,{[this.focusClass]:!!this.focusClass&&this.isFocused,"disabled-hover":this.disableHoverStyle,disabled:this.disabled,invalid:this.isInvalid}]},inputWrapperCls(){return[`${this.prefixCls}-input-wrapper`,{password:"password"===this.type,"mask-password":this.maskPassword}]},textareaWrapperCls(){return[`${this.prefixCls}-textarea-wrapper`,{"auto-size":this.autosize},{"fit-container":this.fitContainer}]},inputContainerCls(){return{textarea:"textarea"===this.type,"only-suffix-icons":this.hasSuffixIcons&&!(0,m._Y)(this,"suffix")}},inputCls(){return["textarea"===this.type?`${this.prefixCls}-textarea`:`${this.prefixCls}-input`,{"fit-container":this.fitContainer}]},strengthCheckerCls(){return[`${this.prefixCls}-strength`,`${this.strength}`]},isPasswordType(){return"password"===this.type},showClear(){return this.clearable&&this.currentValue},showPasswordIcon(){return this.isPasswordType&&this.showPasswordVisibilityIcon},hasPrefix(){return(0,m._Y)(this,"prefix")},hasSuffixIcons(){return this.showClear||this.showPasswordIcon||(0,m._Y)(this,"suffix-icons")},hasSuffix(){return this.hasSuffixIcons||(0,m._Y)(this,"suffix")},suffixIconCount(){let e=0;return this.showClear&&e++,this.showPasswordIcon&&e++,e},suffixIconsCls:()=>({}),suffixWrapperCls(){return{"has-suffix-icons":this.hasSuffixIcons}},passwordTipOpts(){return!(!this.hasPasswordInfo||this.isMobile)&&{portalName:this.passwordPortalName,type:"info",cls:"password-info-tip",triggerAction:"custom",hideWhenClickOutside:!0,usePortal:!0,attachToElement:!0,arrow:!0,align:"tl->tr",offset:[0,0]}}},watch:{strengthChecker:{handler(){this.strengthChecker&&this.checkStrength()},immediate:!0},passwordRules:{handler(){this.hasPasswordRules&&this.checkPasswordRules()},immediate:!0},async [b.yz.value()](e){this.currentValue=e,this.hasPasswordRules&&this.checkPasswordRules(),this.strengthChecker&&this.checkStrength()}},created(){this.checkStrengthDebounced=(0,n.Z)(()=>{this.checkStrength()},250)},async mounted(){if(await this.$nextTick(),"textarea"===this.type){this.autosize?c(this.$refs.textarea):this.updateTextFieldHeight();let e=(0,n.Z)(()=>{this.$refs?.textarea&&!(0,o.xj)(this.$refs.textarea)&&(this.autosize?c.update(this.$refs.textarea):this.updateTextFieldHeight())},30);this.disposeFn=(0,E.k)(this.$refs.textarea,e)}},[T.mT.beforeUnmount](){"textarea"===this.type&&(this.disposeFn?.(),c.destroy(this.$refs.textarea))},methods:{onMouseDown(e){let t,i=this.$refs.scrollbar.getScrollEl(),n=e.clientY,r=e.offsetY,a=i.clientHeight-e.offsetY,s=e=>{let o=e.clientY>n?1:-1,s=Math.abs(e.clientY-n),l=0;1===o&&s>=a?l=s-a:-1===o&&s>=r&&(l=r-s),l*=1,i.scrollTop+=l,t&&window.clearInterval(t),t=window.setInterval(()=>{i.scrollTop+=l},100)};(0,o.IH)(document,"mouseup",e=>{(0,o.S1)(document,"mousemove",s),window.clearInterval(t)}),(0,o.on)(document,"mousemove",s)},onCompositionStart(){this.composing=!0},onCompositionEnd(e){this.composing=!1,this.onInput(e)},updateTextFieldHeight(){if(this.$refs.textarea){let e=this.$refs.textarea.scrollTop;(0,o.iv)(this.$refs["fake-textarea"],"height",`${this.$refs.textarea.scrollHeight}px`),this.$refs.scrollbar.update(),this.$refs.scrollbar.getScrollEl().scrollTop=e}},onScroll(){this.$refs.textarea&&this.$refs.scrollbar&&(this.$refs.textarea.scrollTop=this.$refs.scrollbar?.getScrollTop())},setFocus(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(this.$refs.input||this.$refs.textarea).focus(e)},setBlur(){(this.$refs.input||this.$refs.textarea).blur()},selectText(){(this.$refs.input||this.$refs.textarea).select()},setInputValue(e){this.$refs.input&&(this.$refs.input.value=e)},onWheel(e){let t=e.deltaY,i=this.$refs.scrollbar?.getScrollEl();i&&(i.scrollTop+=t)},onInput(e){if(!0===this.composing)return;let t=e.target.value;(this.mask||this.numberOnly)&&(t=this.filterMaskValue(t),this.setInputValue(t)),(0,v.Qy)(this,(0,b.ef)(),t),this.checkStrengthDebounced()},onFocus(){this.hasPasswordInfo&&(this.$refs?.["input-container"]?._svc_tooltip_e_show_cb?.(),this.showPasswordInfoInMobile=!0),this.isFocused=!0,this.selectOnFocus&&this.selectInput(),(0,v.Qy)(this,"focus",this)},selectInput(){("textarea"===this.type?this.$refs.textarea:this.$refs.input).select()},onBlur(e){this.showPasswordInfoInMobile&&(this.showPasswordInfoInMobile=!1),this.isFocused=!1,(0,v.Qy)(this,"blur",this,e)},async checkStrength(){if(!this.strengthChecker)return;let{strength:e,strengthText:t}=await this.strengthChecker(this.currentValue);this.strength=e,this.strengthText=t,this.showStrength=!0,(0,v.Qy)(this,"strength-check",{strength:e,strengthText:t})},async checkPasswordRules(){this.passwordRulesChecked=await Promise.all(this.passwordRules.map(e=>e?.check?.(this.currentValue)))},filterMaskValue(e){return this.mask&&(e=(0,y.mf)(this.mask)?this.mask(e):e.replace(this.mask,"")),this.numberOnly&&(e="-"===e.substr(0,1)?"-"+e.substr(1).replace(/[^\d]/g,"").replace(/^0*/,""):e.replace(/[^\d]/g,"").replace(/^0+(?!$)/,""),(0,y.sI)(e)&&(e*=1)),e},onPaste(){(0,v.Qy)(this,"paste",event),"textarea"!==this.type||this.autosize||this.updateTextFieldHeight()},onKeyUp(e){"textarea"!==this.type||this.autosize||this.updateTextFieldHeight(),this.$emit("keyup",e)},onKeyDown(e){this.handleEnterKeyHint(e),(0,v.Qy)(this,"keydown",e)},onClickVisibilityIcon(){this.disabled||(this.maskPassword=!this.maskPassword)},async onClear(e){this.disabled||((0,v.Qy)(this,(0,b.ef)(),""),(0,v.Qy)(this,"clear",e),await this.$nextTick(),this.updateTextFieldHeight(),this.setFocus())},copyValue(){return("textarea"===this.type?this.$refs.textarea:this.$refs.input).select(),document.execCommand("Copy")},cutValue(){return("textarea"===this.type?this.$refs.textarea:this.$refs.input).select(),document.execCommand("Copy")&&this.onClear()},inDataTableBehavior(){this.$el.addEventListener("mousedown",e=>e.stopPropagation()),this.$el.addEventListener("keydown",e=>e.stopPropagation())},getRuleItemCls(e,t){return["rule-checked-item",{checked:this.passwordRulesChecked[t]}]},onClick(e){(0,v.Qy)(this,"click",e)}}}),D={class:"strength-text"},O=(0,C.createElementVNode)("div",{class:"strength-line"},[(0,C.createElementVNode)("div",{class:"strength-cover"})],-1),M={key:1,class:"v-input-password-rules"},N={class:"rule-header"},P={class:"rule-wrapper"},L={class:"rule-text"},B=["id","placeholder","disabled","value","readonly","maxlength","enterkeyhint","rows"],F={key:0,class:"prefix-wrapper"},V=["id","type","placeholder","disabled","value","enterkeyhint","autocomplete","readonly","maxlength","aria-describedby"],z={ref:"fake-textarea",class:"fake-textarea"},H={class:"strength-text"},W=(0,C.createElementVNode)("div",{class:"strength-line"},[(0,C.createElementVNode)("div",{class:"strength-cover"})],-1),Y={key:1,class:"v-input-password-rules"},U={class:"rule-header"},G={class:"rule-wrapper"},Z={class:"rule-text"};var j=(0,k.Z)(R,[["render",function(e,t,i,n,o,r){let a=(0,C.resolveComponent)("v-icon"),s=(0,C.resolveComponent)("v-portal"),l=(0,C.resolveComponent)("v-scrollbar"),c=(0,C.resolveComponent)("v-highlight-box"),d=(0,C.resolveDirective)("tooltip"),u=(0,C.resolveDirective)("syno-id");return(0,C.withDirectives)(((0,C.openBlock)(),(0,C.createElementBlock)("div",{class:(0,C.normalizeClass)(e.wrapperCls),onClick:t[19]||(t[19]=function(){return e.onClick&&e.onClick(...arguments)})},[(0,C.withDirectives)(((0,C.openBlock)(),(0,C.createElementBlock)("div",{ref:"input-container",class:(0,C.normalizeClass)(["input-container",e.inputContainerCls])},[e.hasPasswordInfo?((0,C.openBlock)(),(0,C.createBlock)(s,{key:0,name:e.passwordPortalName,to:e.passwordPortalName},{default:(0,C.withCtx)(()=>[e.strengthChecker?((0,C.openBlock)(),(0,C.createElementBlock)("div",{key:0,class:(0,C.normalizeClass)([e.strengthCheckerCls,"v-input-strength-wrapper"])},[(0,C.createElementVNode)("div",D,(0,C.toDisplayString)(e.strengthText||e._i18n("common","password_strength")),1),O],2)):(0,C.createCommentVNode)("",!0),e.hasPasswordRules?((0,C.openBlock)(),(0,C.createElementBlock)("div",M,[(0,C.renderSlot)(e.$slots,"password-rule-header",{},()=>[(0,C.createElementVNode)("div",N,(0,C.toDisplayString)(e._i18n("common","password_must"))+" "+(0,C.toDisplayString)(e._i18n("common","colon")),1)]),(0,C.createElementVNode)("div",P,[((0,C.openBlock)(!0),(0,C.createElementBlock)(C.Fragment,null,(0,C.renderList)(e.passwordRules,(t,i)=>((0,C.openBlock)(),(0,C.createElementBlock)("div",{key:i,class:(0,C.normalizeClass)(e.getRuleItemCls(t,i))},[(0,C.createVNode)(a,{name:"input-password-rule-tick"}),(0,C.createElementVNode)("div",L,(0,C.toDisplayString)(t.text),1)],2))),128))])])):(0,C.createCommentVNode)("",!0)]),_:3},8,["name","to"])):(0,C.createCommentVNode)("",!0),"textarea"===e.type?((0,C.openBlock)(),(0,C.createElementBlock)("div",{key:1,class:(0,C.normalizeClass)(e.textareaWrapperCls)},["textarea"===e.type?((0,C.openBlock)(),(0,C.createElementBlock)("textarea",{key:0,id:e.id,ref:"textarea",class:(0,C.normalizeClass)(e.inputCls),placeholder:e.placeholder,disabled:e.disabled,value:e.currentValue,readonly:e.readonly,maxlength:e.maxlength,enterkeyhint:e.enterKey,rows:e.textareaRows,style:(0,C.normalizeStyle)(e.textareaStyle),onInput:t[0]||(t[0]=function(){return e.onInput&&e.onInput(...arguments)}),onCompositionstart:t[1]||(t[1]=function(){return e.onCompositionStart&&e.onCompositionStart(...arguments)}),onCompositionend:t[2]||(t[2]=function(){return e.onCompositionEnd&&e.onCompositionEnd(...arguments)}),onKeyup:t[3]||(t[3]=function(){return e.onKeyUp&&e.onKeyUp(...arguments)}),onKeydown:t[4]||(t[4]=function(){return e.onKeyDown&&e.onKeyDown(...arguments)}),onPaste:t[5]||(t[5]=function(){return e.onPaste&&e.onPaste(...arguments)}),"onAutosize:updated":t[6]||(t[6]=function(){return e.updateTextFieldHeight&&e.updateTextFieldHeight(...arguments)}),onWheel:t[7]||(t[7]=(0,C.withModifiers)(function(){return e.onWheel&&e.onWheel(...arguments)},["stop","prevent"])),onMousedown:t[8]||(t[8]=function(){return e.onMouseDown&&e.onMouseDown(...arguments)}),onBlur:t[9]||(t[9]=function(){return e.onBlur&&e.onBlur(...arguments)}),onFocus:t[10]||(t[10]=function(){return e.onFocus&&e.onFocus(...arguments)})},null,46,B)):(0,C.createCommentVNode)("",!0),e.hasSuffix?((0,C.openBlock)(),(0,C.createElementBlock)("span",{key:1,class:(0,C.normalizeClass)(["suffix-wrapper",e.suffixWrapperCls])},[e.showClear?((0,C.openBlock)(),(0,C.createBlock)(a,{key:0,name:"input-clear","svg-icon-set":"set25",onClick:(0,C.withModifiers)(e.onClear,["stop"])},null,8,["onClick"])):(0,C.createCommentVNode)("",!0),e.showPasswordIcon?((0,C.openBlock)(),(0,C.createBlock)(a,{key:1,name:e.maskPassword?"input-eye":"input-eye-slash",class:"password-icon","svg-icon-set":"set13",onClick:(0,C.withModifiers)(e.onClickVisibilityIcon,["stop"])},null,8,["name","onClick"])):(0,C.createCommentVNode)("",!0),(0,C.renderSlot)(e.$slots,"suffix-icons")],2)):(0,C.createCommentVNode)("",!0)],2)):((0,C.openBlock)(),(0,C.createElementBlock)("div",{key:2,class:(0,C.normalizeClass)(e.inputWrapperCls)},[e.hasPrefix?((0,C.openBlock)(),(0,C.createElementBlock)("span",F,[(0,C.renderSlot)(e.$slots,"prefix")])):(0,C.createCommentVNode)("",!0),(0,C.createElementVNode)("input",(0,C.mergeProps)({id:e.id},e.inputAttrs,{ref:"input",type:e.inputType,class:e.inputCls,placeholder:e.placeholder,disabled:e.disabled,value:e.currentValue,enterkeyhint:e.enterKey,autocomplete:e.autocomplete,readonly:e.readonly,maxlength:e.maxlength,"aria-describedby":e.strengthChecker?`${e.id}-strength`:void 0,onInput:t[11]||(t[11]=function(){return e.onInput&&e.onInput(...arguments)}),onCompositionstart:t[12]||(t[12]=function(){return e.onCompositionStart&&e.onCompositionStart(...arguments)}),onCompositionend:t[13]||(t[13]=function(){return e.onCompositionEnd&&e.onCompositionEnd(...arguments)}),onKeyup:t[14]||(t[14]=function(){return e.onKeyUp&&e.onKeyUp(...arguments)}),onKeydown:t[15]||(t[15]=function(){return e.onKeyDown&&e.onKeyDown(...arguments)}),onPaste:t[16]||(t[16]=function(){return e.onPaste&&e.onPaste(...arguments)}),onBlur:t[17]||(t[17]=function(){return e.onBlur&&e.onBlur(...arguments)}),onFocus:t[18]||(t[18]=function(){return e.onFocus&&e.onFocus(...arguments)})}),null,16,V),e.hasSuffix?((0,C.openBlock)(),(0,C.createElementBlock)("span",{key:1,class:(0,C.normalizeClass)(["suffix-wrapper",e.suffixWrapperCls])},[e.showClear?((0,C.openBlock)(),(0,C.createBlock)(a,{key:0,name:"input-clear",class:"clear-icon","svg-icon-set":"set25",onClick:(0,C.withModifiers)(e.onClear,["stop"])},null,8,["onClick"])):(0,C.createCommentVNode)("",!0),e.showPasswordIcon?((0,C.openBlock)(),(0,C.createBlock)(a,{key:1,name:e.maskPassword?"input-eye":"input-eye-slash",class:"password-icon","svg-icon-set":"set13",onClick:(0,C.withModifiers)(e.onClickVisibilityIcon,["stop"])},null,8,["name","onClick"])):(0,C.createCommentVNode)("",!0),(0,C.renderSlot)(e.$slots,"suffix-icons"),(0,C.renderSlot)(e.$slots,"suffix")],2)):(0,C.createCommentVNode)("",!0)],2))],2)),[[d,e.passwordTipOpts]]),"textarea"===e.type?((0,C.openBlock)(),(0,C.createBlock)(l,{key:0,ref:"scrollbar",class:"textarea-fake-scrollbar","has-padding":"",disabled:e.disabled,onScroll:e.onScroll},{default:(0,C.withCtx)(()=>[(0,C.createElementVNode)("div",z,null,512)]),_:1},8,["disabled","onScroll"])):(0,C.createCommentVNode)("",!0),e.hasPasswordInfo&&e.showPasswordInfoInMobile&&e.isMobile?((0,C.openBlock)(),(0,C.createBlock)(c,{key:1,class:"password-rule-wrapper",color:"grey","hide-inner-cls":""},{default:(0,C.withCtx)(()=>[e.strengthChecker?((0,C.openBlock)(),(0,C.createElementBlock)("div",{key:0,class:(0,C.normalizeClass)([e.strengthCheckerCls,"v-input-strength-wrapper"])},[(0,C.createElementVNode)("div",H,(0,C.toDisplayString)(e.strengthText||e._i18n("common","password_strength")),1),W],2)):(0,C.createCommentVNode)("",!0),e.hasPasswordRules?((0,C.openBlock)(),(0,C.createElementBlock)("div",Y,[(0,C.createElementVNode)("div",U,(0,C.toDisplayString)(e._i18n("common","password_must")),1),(0,C.createElementVNode)("div",G,[((0,C.openBlock)(!0),(0,C.createElementBlock)(C.Fragment,null,(0,C.renderList)(e.passwordRules,(t,i)=>((0,C.openBlock)(),(0,C.createElementBlock)("div",{key:i,class:(0,C.normalizeClass)(e.getRuleItemCls(t,i))},[(0,C.createVNode)(a,{name:"input-password-rule-tick"}),(0,C.createElementVNode)("div",Z,(0,C.toDisplayString)(t.text),1)],2))),128))])])):(0,C.createCommentVNode)("",!0)]),_:1})):(0,C.createCommentVNode)("",!0)],2)),[[u]])}]])},12725:function(e,t,i){"use strict";i.d(t,{Z:()=>c}),i(95790),i(2850);var n=i(63707),o=i(31755),r=i(71283),a=i(71367),s=i(19257),l=i(63447),c=(0,i(66794).Z)((0,l.defineComponent)({name:"Layout",mixins:[(0,o.J)("layout"),(0,o.f)("layout"),(0,o.f)("layout-container")],props:{tag:{type:String,default:"div"},type:{type:String,default:"none"},order:{type:Number,default:0},customLayoutStyles:{type:Object,default:()=>({})}},emits:["keydown"],data:()=>({children:[],parent:null,sibling:null,active:!0}),computed:{layoutData(){return this.$layoutManager?this.$layoutManager.getLayoutData(this):{}},currentLayoutStyles(){let{styles:e}=this.layoutData,t={},i={};for(let[i,n]of Object.entries(this.customLayoutStyles))t[n]=e[i];for(let[t,n]of Object.entries(e))i[`--svc-${t}`]=n;return{...i,...t}},currentClass(){return["v-layout",{"pass-through":this.passThrough},"layout-"+this.type.replace(".","-")]},passThrough(){let{props:e}=this.layoutData;return!!e?.["pass-through"]}},mounted(){if(this.$layoutManager&&(this.layout&&(this.layout.register(this),this.parent=this.layout.instance,this.sibling=this.parent.children),this["layout-container"])){let e=this["layout-container"].instance;(0,a.Zn)(e,"activate",this.onContainerActivate),(0,a.Zn)(e,"deactivate",this.onContainerDeactivate)}},[n.mT.beforeUnmount](){if(this.layout&&this.layout.unregister(this),this["layout-container"]){let e=this["layout-container"].instance;(0,a.M5)(e,"activate",this.onContainerActivate),(0,a.M5)(e,"deactivate",this.onContainerDeactivate)}},methods:{onContainerActivate(){this.active=!0},onContainerDeactivate(){this.active=!1},register(e){this.children=this.children||[],this.children.push(e)},unregister(e){let t=this.children.findIndex(t=>(0,s.s)(t)===(0,s.s)(e));this.children.splice(t,1)},getSiblingIndex(){return this.sibling?this.sibling.filter(e=>e.active).sort((e,t)=>e.order>t.order?1:e.order<t.order?-1:0).findIndex(e=>(0,s.s)(e)===(0,s.s)(this)):-1},onKeydown(e){(0,a.Qy)(this,"keydown",e)},onClick(e){this.$layoutManager.debug&&(e.stopPropagation(),(0,r.cM)("Layout on this element ",this.$el,"with below paths: "),(0,r.p8)(this.$layoutManager.getLayoutData(this).paths))}}}),[["render",function(e,t,i,n,o,r){return(0,l.openBlock)(),(0,l.createBlock)((0,l.resolveDynamicComponent)(e.tag),{style:(0,l.normalizeStyle)(e.currentLayoutStyles),class:(0,l.normalizeClass)(e.currentClass),onClick:e.onClick,onKeydown:e.onKeydown},{default:(0,l.withCtx)(()=>[(0,l.renderSlot)(e.$slots,"default")]),_:3},40,["style","class","onClick","onKeydown"])}]])},16067:function(e,t,i){"use strict";i.d(t,{Z:()=>s});var n=i(63447),o=i(66794);let r=(0,n.defineComponent)({name:"MenuDivider"}),a={class:"v-menu-item-divider"};var s=(0,o.Z)(r,[["render",function(e,t,i,o,r,s){let l=(0,n.resolveDirective)("syno-id");return(0,n.withDirectives)(((0,n.openBlock)(),(0,n.createElementBlock)("div",a,null,512)),[[l]])}]])},24766:function(e,t,i){"use strict";i.d(t,{Z:()=>c});var n=i(96868),o=i(71367),r=i(63447),a=i(66794);let s=(0,r.defineComponent)({name:"MenuGroup",mixins:[n.ZP],props:{title:{type:String,default:void 0},singleSelect:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},data:()=>({items:[]}),computed:{groupCls(){return["v-menu-group",{"v-menu-group-disabled":this.disabled}]}},watch:{disabled(e){this.setDisableAll(e)}},created(){(0,o.Zn)(this,"item-created",e=>{e.setDisabled(this.disabled),this.items.push(e)}),(0,o.Zn)(this,"select",(e,t)=>{this.singleSelect?(this.onSingleSelect(e),this.dispatch("Menu","select",[e,!0])):this.dispatch("Menu","select",[e,t])}),this.dispatch("Menu","group-created",this)},methods:{onSingleSelect(e){for(let t of this.items)t!==e?t.setSelected(!1):t.setSelected(!0)},setDisableAll(e){for(let t of this.items)t.setDisabled&&t.setDisabled(e)}}}),l={key:0,class:"v-menu-group-title"};var c=(0,a.Z)(s,[["render",function(e,t,i,n,o,a){return(0,r.openBlock)(),(0,r.createElementBlock)("div",{class:(0,r.normalizeClass)(e.groupCls)},[(0,r.renderSlot)(e.$slots,"title",{},()=>[e.title?((0,r.openBlock)(),(0,r.createElementBlock)("div",l,(0,r.toDisplayString)(e.title),1)):(0,r.createCommentVNode)("",!0)]),(0,r.renderSlot)(e.$slots,"default")],2)}]])},47501:function(e,t,i){"use strict";i.d(t,{Z:()=>b});var n=i(63707),o=i(83717),r=i(71367),a=i(96868),s=i(54730),l=i(40172),c=i(9022),d=i(74999),u=i(23886),h=i(63447),p=i(66794);(0,c.z)("menu-item-tick",d.E5),(0,c.z)("menu-item-untick",s.js);let f=(0,h.defineComponent)({name:"MenuItem",components:{vIcon:u.Z},mixins:[a.ZP],props:{id:{type:String,default:void 0},title:{type:String,default:void 0},desc:{type:String,default:void 0},icon:{type:[String,Object],default:void 0},iconType:{type:String,default:void 0},type:{type:String,default:"item"},disabled:{type:Boolean,default:void 0},selected:{type:Boolean,default:!1},indeterminate:{type:Boolean,default:!1},closeOnSelect:{type:[Boolean,Function],default:void 0},tooltip:{type:[String,Object],default:()=>{}},useHtml:{type:Boolean,default:!1},focusTriggerWhenClosed:{type:[Boolean,Function],default:void 0}},emits:["click","update:selected","selected","changed"],data(){return{isGroupItem:!1,innerSelected:this.selected,innerDisabled:this.disabled||!1,active:!1}},computed:{iconProps(){let e=this.getIconType();if((0,s.Kn)(this.icon))return this.icon;let t=(0,s.HD)(this.icon)?{name:this.icon}:{};return"checkbox"===e?(t.name="menu-item-checkbox",t.sprite=!0):"select"===e&&(t={name:this.innerSelected?"menu-item-tick":"menu-item-untick",svgIconSet:"set03"}),t},role(){return"checkbox"===this.type?"checkbox":"select"===this.type?"option":"menuitem"},ariaChecked(){return"checkbox"===this.type&&!!this.innerSelected},ariaSelected(){return"select"===this.type&&!this.innerSelected},showIcon(){let e=this.getIconType();return this.icon||"checkbox"===e||"select"===e},iconCls(){let e=this.getIconType();return["v-icon","icon--left",{[`v-icon--${e}`]:"checkbox"===e||"select"===e,"v-checkbox-icon":"checkbox"===e}]},itemCls(){let e=this.getIconType();return["v-menu-item",{"v-menu-item-disabled disabled":this.innerDisabled,"v-checkbox-wrapper v-menu-item-checkbox":"checkbox"===e,"v-menu-item-checkbox-checked checked":"checkbox"===e&&this.innerSelected,"v-menu-item-checkbox-indeterminate indeterminate":this.indeterminate,"v-menu-item-select":"select"===e,"v-menu-item-select-selected selected":"select"===e&&this.innerSelected,active:this.active}]},activatable(){return!this.innerDisabled},mergedTooltip(){let e=(0,s.HD)(this.tooltip)?{content:this.tooltip,overflowOnly:!1}:this.tooltip;return(0,l.Z)({content:this.desc?`${this.title} ${this.desc}`:this.title,overflowOnly:()=>this.$refs.text},e)}},watch:{selected(e){this.indeterminate?this.innerSelected=!1:this.innerSelected=e},indeterminate(){this.indeterminate&&(this.innerSelected=!1)},disabled:{handler(e){this.innerDisabled=e},immediate:!0}},created(){"MenuGroup"===this.$parent.$options.name&&(this.isGroupItem=!0),this.dispatch("MenuGroup","item-created",this),this.dispatch("Menu","item-created",this)},[n.mT.beforeUnmount](){this.dispatch("MenuGroup","item-removed",this),this.dispatch("Menu","item-removed",this)},methods:{hasSuffix(){return(0,o._Y)(this,"suffix")},getIconType(){return(0,s.$K)(this.iconType)?this.iconType:this.type},onClick(e){if(this.innerDisabled)return;(0,r.Qy)(this,"click",e);let t="item"===this.type||!this.innerSelected;this.isGroupItem?this.dispatch("MenuGroup","select",[this,t]):this.dispatch("Menu","select",[this,t])},setSelected(e){if(e===this.innerSelected||this.indeterminate)return;let t=this.innerSelected;this.innerSelected=e,"checkbox"!==this.type&&"select"!==this.type||this.dispatch("Menu","change",[this,e,t]),(0,r.Qy)(this,"update:selected",e,t),(0,r.Qy)(this,"changed",e,t),this.innerSelected&&(0,r.Qy)(this,"selected",e,t)},setDisabled(e){void 0===this.disabled&&e!==this.innerDisabled&&(this.innerDisabled=e)},onMouseEnter(e){this.innerDisabled||this.dispatch("Menu","item-hover",this)},onMouseLeave(e){this.innerDisabled||this.dispatch("Menu","item-hover-out",this)},activate(){this.$el.focus(),this.active=!0},deactivate(){this.active=!1}}}),g=["role","aria-checked","aria-selected","tabindex"],m=["innerHTML"],v={key:2,class:"item-suffix"};var b=(0,p.Z)(f,[["render",function(e,t,i,n,o,r){let a=(0,h.resolveComponent)("v-icon"),s=(0,h.resolveDirective)("tooltip"),l=(0,h.resolveDirective)("syno-id");return(0,h.withDirectives)(((0,h.openBlock)(),(0,h.createElementBlock)("div",{class:(0,h.normalizeClass)(e.itemCls),role:e.role,"aria-checked":e.ariaChecked,"aria-selected":e.ariaSelected,tabindex:e.activatable?"0":"",onClick:t[0]||(t[0]=(0,h.withModifiers)(t=>e.onClick(t),["prevent"])),onKeydown:[t[1]||(t[1]=(0,h.withKeys)((0,h.withModifiers)(t=>e.onClick(t),["prevent"]),["enter"])),t[2]||(t[2]=(0,h.withKeys)((0,h.withModifiers)(t=>e.onClick(t),["prevent"]),["space"]))],onMouseenter:t[3]||(t[3]=function(){return e.onMouseEnter&&e.onMouseEnter(...arguments)}),onMouseleave:t[4]||(t[4]=function(){return e.onMouseLeave&&e.onMouseLeave(...arguments)})},[(0,h.renderSlot)(e.$slots,"default",{},()=>[e.showIcon?((0,h.openBlock)(),(0,h.createBlock)(a,(0,h.mergeProps)({key:0,class:e.iconCls},e.iconProps),null,16,["class"])):(0,h.createCommentVNode)("",!0),(0,h.renderSlot)(e.$slots,"title",{},()=>[e.useHtml?((0,h.openBlock)(),(0,h.createElementBlock)("span",{key:0,ref:"text",class:"title",innerHTML:e.title},null,8,m)):((0,h.openBlock)(),(0,h.createElementBlock)("span",{key:1,ref:"text",class:"title"},(0,h.toDisplayString)(e.title),513))]),e.desc?((0,h.openBlock)(),(0,h.createElementBlock)("span",{key:1,ref:"desc",class:"desc"},(0,h.toDisplayString)(e.desc),513)):(0,h.createCommentVNode)("",!0),e.hasSuffix()?((0,h.openBlock)(),(0,h.createElementBlock)("div",v,[(0,h.renderSlot)(e.$slots,"suffix")])):(0,h.createCommentVNode)("",!0)])],42,g)),[[s,e.mergedTooltip],[l]])}]])},27755:function(e,t,i){"use strict";i.d(t,{Z:()=>S});var n=i(31842),o=i(96868),r=i(2176),a=i(31755),s=i(7135),l=i(54730),c=i(40172),d=i(9022),u=i(74999),h=i(71367),p=i(83717),f=i(63707),g=i(23886),m=i(49098),v=i(63447),b=i(66794);(0,d.z)("menu-submenu-triangle-right",u.je);let y=(0,v.defineComponent)({name:"MenuSubmenu",components:{vMenu:n.Z,vIcon:g.Z,vPortal:m.Z},mixins:[o.ZP,(0,a.J)("sub-menu-item"),(0,a.f)("menu"),r.ZP,d.Z],props:{title:{type:String,default:void 0},desc:{type:String,default:void 0},icon:{type:[String,Object],default:void 0},disabled:{type:Boolean,default:!1},width:{type:[Number,String],default:188,validator:e=>!(0,l.HD)(e)||"auto"===e},height:{type:Number,default:void 0},useScrollbar:{type:Boolean,default:!1},zIndex:{type:Number,default:15e3},tooltip:{type:[String,Object],default:()=>{}},constrainHeight:{type:Boolean,default:!1},onClose:{type:Function,default:void 0},arrowIcon:{type:Boolean,default:!0},alignment:{type:[Object,String],default:()=>({})},useHtml:{type:Boolean,default:!1},disableMenuConfigOverride:{type:Object,default:()=>({})}},emits:["reposition-done","menu-opened","menu-closed"],data:()=>({isOpen:!1,subPosX:0,subPosY:0,isOver:!1,hasChildMenu:!0,parentMenu:null,active:!1,menuStyle:{top:0,left:0,zIndex:void 0}}),computed:{innerAlignment(){let e=(0,c.Z)({pos:"tl->tr",opts:{constrainHeight:!1}},this.menu?.instance?.getDefaultAlignment()??{},{opts:{constrainHeight:this.constrainHeight}});return(0,l.Kn)(this.alignment)?(0,c.Z)(e,this.alignment):(0,c.Z)(e,{pos:this.alignment})},showIcon(){return this.icon},iconProps(){if((0,l.Kn)(this.icon))return this.icon;let e=(0,l.HD)(this.icon)?{name:this.icon}:{};return"checkbox"===this.type?e={name:"menu-item-checkbox",sprite:!0}:"select"===this.type&&(e={name:this.innerSelected?"menu-item-tick":"menu-item-untick",svgIconSet:"set03"}),e},iconCls:()=>["v-icon","icon--left"],itemCls(){return["v-menu-submenu-item",{disabled:this.disabled,active:this.active||this.isOpen}]},activatable(){return!this.disabled},innerTooltip(){let e=(0,l.HD)(this.tooltip)?{content:this.tooltip,overflowOnly:!1}:this.tooltip;return(0,c.Z)({content:this.desc?`${this.title} ${this.desc}`:this.title,overflowOnly:()=>this.$refs.text},e)}},watch:{isOver:{handler(e){!1===e&&this.tryCloseMenu()}}},created(){this.dispatch("Menu","item-created",this)},mounted(){this.menu.register(this)},[f.mT.beforeUnmount](){this.menu.unregister(this),this.dispatch("Menu","item-removed",this)},methods:{innerOnClose(){this.isOpen=!1,this.onClose?.()},getSlots(){return(0,p.FJ)(this)},register(e){e.parentMenuItem=this},unregister(e){delete e.parentMenuItem},canClose(){return this.$refs.childMenu?!this.isOver&&this.$refs.childMenu.canClose():!this.isOver},tryCloseMenu(){window.setTimeout(()=>{this.canClose()&&(this.closeMenu(),this.parentMenu&&this.parentMenu.tryCloseMenu())},0)},closeMenu(){this.$refs.childMenu?.closeMenu()},async openChildMenu(){return this.isOver=!0,this.disabled||(this.isOpen=!0),await this.$nextTick()},async openChildMenuWithFocus(){await this.openChildMenu(),(0,h.Zn)(this,"reposition-done",()=>{(0,s.mh)(this.$refs.childMenu.$refs.menu.$el)})},onMouseEnter(e){this.dispatch("Menu","item-hover",this),this.openChildMenu()},onMouseLeave(e){this.dispatch("Menu","item-hover-out",this)},activate(){this.$el.focus(),this.active=!0},deactivate(){this.active=!1,this.isOver=!1},onMenuAligned(e){this.$refs.childMenu.tryConstrain(e),(0,h.Qy)(this,"reposition-done")},onMenuOpened(){(0,h.Qy)(this,"menu-opened")},onMenuClosed(){(0,h.Qy)(this,"menu-closed")}}}),w=["tabindex"],_=["innerHTML"],x={class:"item-suffix"};var S=(0,b.Z)(y,[["render",function(e,t,i,n,o,r){let a=(0,v.resolveComponent)("v-icon"),s=(0,v.resolveComponent)("v-menu"),l=(0,v.resolveComponent)("v-portal"),c=(0,v.resolveDirective)("tooltip"),d=(0,v.resolveDirective)("syno-id");return(0,v.withDirectives)(((0,v.openBlock)(),(0,v.createElementBlock)("div",{class:(0,v.normalizeClass)(e.itemCls),role:"menuitem",tabindex:e.activatable?"0":"",onMouseenter:t[0]||(t[0]=function(){return e.onMouseEnter&&e.onMouseEnter(...arguments)}),onMouseleave:t[1]||(t[1]=function(){return e.onMouseLeave&&e.onMouseLeave(...arguments)})},[(0,v.renderSlot)(e.$slots,"content",{},()=>[e.showIcon?((0,v.openBlock)(),(0,v.createBlock)(a,(0,v.mergeProps)({key:0,class:e.iconCls},e.iconProps),null,16,["class"])):(0,v.createCommentVNode)("",!0),(0,v.renderSlot)(e.$slots,"title",{},()=>[e.useHtml?((0,v.openBlock)(),(0,v.createElementBlock)("span",{key:0,ref:"text",class:"title",innerHTML:e.title},null,8,_)):((0,v.openBlock)(),(0,v.createElementBlock)("span",{key:1,ref:"text",class:"title"},(0,v.toDisplayString)(e.title),513))]),e.desc?((0,v.openBlock)(),(0,v.createElementBlock)("span",{key:1,ref:"desc",class:"desc"},(0,v.toDisplayString)(e.desc),513)):(0,v.createCommentVNode)("",!0),(0,v.createElementVNode)("div",x,[(0,v.renderSlot)(e.$slots,"suffix"),e.arrowIcon?((0,v.openBlock)(),(0,v.createBlock)(a,{key:0,name:"menu-submenu-triangle-right","svg-icon-set":"set01",size:"thin-rect"})):(0,v.createCommentVNode)("",!0)])]),e.isOpen?((0,v.openBlock)(),(0,v.createBlock)(l,{key:0,ref:"portal","mount-to":e.getContainerEl(),anchor:e.$el,alignment:e.innerAlignment,"acquire-z-index":"",onAligned:e.onMenuAligned},{default:(0,v.withCtx)(()=>[(0,v.createVNode)(s,{ref:"childMenu",width:e.width,height:e.height,"use-scrollbar":e.useScrollbar,"is-root":!1,"z-index":e.zIndex,"syno-id":`${e.synoId}-child-menu`,"on-close":e.innerOnClose,"default-alignment":e.innerAlignment,"disable-menu-config-override":e.disableMenuConfigOverride,onMenuOpened:e.onMenuOpened,onMenuClosed:e.onMenuClosed},(0,v.createSlots)({_:2},[(0,v.renderList)(e.getSlots(),(t,i)=>({name:i,fn:(0,v.withCtx)(t=>[(0,v.renderSlot)(e.$slots,i,(0,v.normalizeProps)((0,v.guardReactiveProps)(t)))])}))]),1032,["width","height","use-scrollbar","z-index","syno-id","on-close","default-alignment","disable-menu-config-override","onMenuOpened","onMenuClosed"])]),_:3},8,["mount-to","anchor","alignment","onAligned"])):(0,v.createCommentVNode)("",!0)],42,w)),[[c,e.innerTooltip],[d]])}]])},31842:function(e,t,i){"use strict";i.d(t,{Z:()=>f}),i(95790),i(39908),i(2850),i(29127);var n=i(63707),o=i(71367),r=i(70608),a=i(96868),s=i(31755),l=i(54730),c=i(46001),d=i(2176),u=i(39693),h=i(88446),p=i(63447),f=(0,i(66794).Z)((0,p.defineComponent)({name:"Menu",components:{vScrollbar:c.Z,vTrapFocus:r.Z},mixins:[a.ZP,(0,s.J)("menu"),(0,s.f)("menu"),(0,s.f)("sub-menu-item"),(0,s.f)("trigger-action"),d.ZP,(0,h.W)("menu")],props:{width:{type:[Number,String],default:170,validator:e=>"string"!=typeof e||"auto"===e},alignment:{type:String,default:"tl->tr"},defaultAlignment:{type:Object,default:()=>({pos:"tl->tr"})},height:{type:Number,default:void 0},useScrollbar:{type:Boolean,default:!1},position:{type:Array,default:()=>[0,0]},isOpen:{type:Boolean,default:!0},isRoot:{type:Boolean,default:!0},closeOnSelect:{type:Boolean,default:void 0},emitEventOnly:{type:Boolean,default:!1},zIndex:{type:Number,default:15e3},autoFocus:{type:[Boolean,Number],default:!0},onClose:{type:Function,default:void 0},triggerAction:{type:Object,default:()=>{}},focusTriggerWhenClosed:{type:[Boolean,Function],default:!0}},emits:["item-select","item-change","item-created","item-hover","item-hover-out","item-removed","group-created","select","change","menu-closed","menu-opened","close-menu","mouseenter","mouseleave"],data:()=>({activeIndex:0,items:[],groups:[],subMenus:[],parentMenuItem:null,triggerButton:null,showIcon:!1,isOver:!1,isOutOfBound:!1,forceScroll:void 0,forceHeight:void 0,forceWidth:void 0}),computed:{menuCls(){return["v-menu",{"v-menu-icon-menu":this.showIcon}]},innerWidth(){return this.getMenuConfigValue("width")},menuStyle(){let e=this.height?`${this.height}px`:"auto",t=(0,l.HD)(this.innerWidth)?this.innerWidth:+this.innerWidth+"px";return(0,l.$K)(this.forceHeight)&&(e=`${this.forceHeight}px`),(0,l.$K)(this.forceWidth)&&(t=`${this.forceWidth}px`),{height:e,width:t,left:`${this.position[0]}px`,top:`${this.position[1]}px`,zIndex:this.zIndex}}},watch:{isOpen:{immediate:!0,async handler(e){!0===e&&this.autoActiveItem()}},isOver:{handler(e){this.isRoot||!1===e&&this.tryCloseMenu()}}},created(){(0,o.Zn)(this,"item-created",e=>{this.items.push(e),(e.icon||"checkbox"===e.type||"select"===e.type)&&(this.showIcon=!0)}),(0,o.Zn)(this,"item-hover",e=>{let t=this.items.indexOf(e);t>=0&&this.activeItemByIndex(t)}),(0,o.Zn)(this,"item-hover-out",e=>{this.deactiveItem(e)}),(0,o.Zn)(this,"item-removed",e=>{this.items=this.items.filter(t=>t!==e)}),(0,o.Zn)(this,"group-created",e=>{this.groups.push(e)}),(0,o.Zn)(this,"select",(e,t)=>{this.isRoot?(!1===this.emitEventOnly&&e.setSelected(t),(0,o.Qy)(this,"item-select",e,t),this.canCloseOnSelect(e)&&this.closeMenu(e)):this.dispatch("Menu","select",[e,t])}),(0,o.Zn)(this,"change",(e,t,i)=>{this.isRoot?(0,o.Qy)(this,"item-change",e,t,i):this.dispatch("Menu","change",[e,t,i])})},mounted(){if(this.isRoot){let e=this.getTriggerAction();e?.register?.(this)}else this.menu?.register(this),this["sub-menu-item"]?.register?.(this);(0,o.Qy)(this,"menu-opened")},[n.mT.beforeUnmount](){if(this.isRoot){let e=this.getTriggerAction();e?.unregister?.(this)}else this.menu?.unregister(this),this["sub-menu-item"]?.unregister(this);(0,o.Qy)(this,"menu-closed")},methods:{async autoActiveItem(){(0,l.hj)(this.autoFocus)?(await (0,p.nextTick)(),this.activeItemByIndex(this.autoFocus)):this.autoFocus&&(await (0,p.nextTick)(),this.tryActiveFirstItem())},getDefaultAlignment(){return this.defaultAlignment},canCloseOnSelect(e){return(0,l.$K)(e.closeOnSelect)?(0,l.mf)(e.closeOnSelect)?e.closeOnSelect():e.closeOnSelect:(0,l.$K)(this.closeOnSelect)?this.closeOnSelect:"item"===e.type},canClose(){return this.subMenus?!this.isOver&&this.subMenus.every(e=>e.canClose()):!this.isOver},tryCloseMenu(){this.parentMenuItem&&this.parentMenuItem.tryCloseMenu()},getTriggerAction(){return this.triggerAction?this.triggerAction:this["trigger-action"]},async closeMenu(e){if(this.subMenus)for(let e of this.subMenus)await e.closeMenu();if(this.onClose?.(),this.isRoot){let t=this.getTriggerAction();t?.closeDropdown?.(),await this.$nextTick();let i=e?.focusTriggerWhenClosed??this.focusTriggerWhenClosed;!0===i?t?.focusTrigger?.():(0,l.mf)(i)&&i()}(0,o.Qy)(this,"close-menu")},register(e){"Menu"===e.$options.name?e.isRoot||this.subMenus.push(e):"MenuSubmenu"===e.$options.name&&(e.parentMenu=this)},unregister(e){let t=this.subMenus.indexOf(e);t>-1&&this.subMenus.splice(t,1)},withinSubMenuEl(e){return this.subMenus.some(t=>t.contains(e))},onMouseEnter(){this.isOver=!0,(0,o.Qy)(this,"mouseenter")},onMouseLeave(){this.isOver=!1,(0,o.Qy)(this,"mouseleave")},async onArrowKeydown(e){(0,u.Tx)(e)?this.activePrevItem():(0,u.BU)(e)?this.activeNextItem():(0,u.oQ)(e)||(0,u.tH)(e)?this.items[this.activeIndex]&&this.items[this.activeIndex].hasChildMenu&&this.items[this.activeIndex].openChildMenuWithFocus():(0,u.F$)(e)&&(this.parentMenuItem?.$el?.focus(),await this.closeMenu())},tryActiveFirstItem(){for(let e=0,t=this.items.length;e<t;e++)if(this.items[e].activatable)return this.activeItemByIndex(e)},activePrevItem(){if(-1===this.activeIndex)return this.tryActiveFirstItem();for(let e=this.activeIndex-1;e>=0;e--)if(this.items[e].activatable)return this.activeItemByIndex(e)},activeNextItem(){if(-1===this.activeIndex)return this.tryActiveFirstItem();for(let e=this.activeIndex+1;e<this.items.length;e++)if(this.items[e].activatable)return this.activeItemByIndex(e)},activeItemByIndex(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;if(e<0||this.items.length<=e)return;let t=this.items[e];this.activeItem(t,e)},activeItem(e,t){e&&(-1!==this.activeIndex&&this.items[this.activeIndex].deactivate(),e.activate(),this.activeIndex=t)},deactiveItem(e){e&&(e.deactivate(),this.activeIndex=-1)},async tryConstrain(e){e.constrainHeight&&(this.forceHeight=e.constrainHeight,this.forceScroll=!0,await (0,p.nextTick)(),await this.autoActiveItem()),e.constrainWidth&&(this.forceWidth=e.constrainWidth)}}}),[["render",function(e,t,i,n,o,r){let a=(0,p.resolveComponent)("v-scrollbar"),s=(0,p.resolveComponent)("v-trap-focus"),l=(0,p.resolveDirective)("syno-id");return(0,p.withDirectives)(((0,p.openBlock)(),(0,p.createBlock)(s,{ref:"menu",style:(0,p.normalizeStyle)(e.menuStyle),class:(0,p.normalizeClass)(e.menuCls),tabindex:"-1",role:"listbox",onMouseenter:e.onMouseEnter,onMouseleave:e.onMouseLeave,onKeydown:[(0,p.withKeys)((0,p.withModifiers)(e.onArrowKeydown,["prevent"]),["up","native"]),(0,p.withKeys)((0,p.withModifiers)(e.onArrowKeydown,["prevent"]),["down","native"]),(0,p.withKeys)((0,p.withModifiers)(e.onArrowKeydown,["prevent"]),["right","native"]),(0,p.withKeys)((0,p.withModifiers)(e.onArrowKeydown,["prevent"]),["left","native"]),(0,p.withKeys)((0,p.withModifiers)(e.onArrowKeydown,["prevent"]),["enter","native"]),t[0]||(t[0]=(0,p.withKeys)((0,p.withModifiers)(t=>e.closeMenu(),["prevent","stop"]),["esc","native"]))]},{default:(0,p.withCtx)(()=>[(0,p.renderSlot)(e.$slots,"top-actions"),e.forceScroll||e.useScrollbar?((0,p.openBlock)(),(0,p.createBlock)(a,{key:0,"active-adaptive-scrollbar":!1},{default:(0,p.withCtx)(()=>[(0,p.renderSlot)(e.$slots,"default")]),_:3})):(0,p.renderSlot)(e.$slots,"default",{key:1}),(0,p.renderSlot)(e.$slots,"bottom-actions")]),_:3},8,["style","class","onMouseenter","onMouseleave","onKeydown"])),[[p.vShow,e.isOpen],[l]])}]])},72428:function(e,t,i){"use strict";i.d(t,{Z:()=>v});var n=i(63707),o=i(12592),r=i(31755),a=i(63447),s=i(66794);let l=(0,a.defineComponent)({name:"OverflowListItem",mixins:[(0,r.f)("overflow-list")],data:()=>({visible:!0}),methods:{hide(){this.visible=!1},show(){this.visible=!0}}}),c={key:0,class:"v-overflow-item"};var d=(0,s.Z)(l,[["render",function(e,t,i,n,o,r){return e.visible?((0,a.openBlock)(),(0,a.createElementBlock)("div",c,[(0,a.renderSlot)(e.$slots,"default")])):(0,a.createCommentVNode)("",!0)}]]),u=i(54730);let h={START:"start",FROM:"from"},p=(0,a.defineComponent)({name:"OverflowList",components:{vOverflowListItem:d},mixins:[(0,r.J)("overflow-list")],props:{collapseDirection:{type:String,validator:e=>Object.values(h).includes(e),default:h.END},items:{type:Array,default:()=>[]},minVisibleItemsNum:{type:Number,default:0}},data:()=>({visibleItems:[]}),computed:{isCollapsedFromStart(){return this.collapseDirection===h.START},isCollapsedFromEnd(){return this.collapseDirection===h.END},isOverflowing(){return this.visibleItems.length<this.items.length},overflowItems(){return this.items.slice(this.visibleItems.length)}},watch:{items:{handler(e,t){(0,u.Xy)(e,t)||(this.showAllItems(),this.$nextTick(()=>{this.onMeasure()}))},immediate:!0}},mounted(){this.disposeFn=(0,o.k)(this.$el,this.onResize,this),this.prevWidth=this.$el.getBoundingClientRect().width,this.$nextTick(()=>{this.showAllItems(),this.onMeasure()})},[n.mT.beforeUnmount](){this.disposeFn?.()},methods:{onResize(e){e.contentRect.width>this.prevWidth&&this.showAllItems(),this.prevWidth=e.contentRect.width,this.onMeasure()},showAllItems(){this.visibleItems=this.items.slice()},onMeasure(){this.measuring=this.measuring??Promise.resolve(),this.measuring=this.measuring.then(()=>this.remeasure())},getItemKey:(e,t)=>e.id??t,remeasure(){return(this.$refs.measure?.getBoundingClientRect()?.width??0)<.8&&this.visibleItems.length>this.minVisibleItemsNum?(this.isCollapsedFromEnd?this.visibleItems.pop():this.isCollapsedFromStart&&this.visibleItems.shift(),this.$nextTick().then(()=>this.remeasure())):Promise.resolve()}}}),f={class:"v-overflow-list"},g={key:0,ref:"measure",class:"v-overflow-list-spacer"},m={key:3,ref:"measure",class:"v-overflow-list-spacer"};var v=(0,s.Z)(p,[["render",function(e,t,i,n,o,r){let s=(0,a.resolveComponent)("v-overflow-list-item");return(0,a.openBlock)(),(0,a.createElementBlock)("div",f,[e.isCollapsedFromStart?((0,a.openBlock)(),(0,a.createElementBlock)("i",g,null,512)):(0,a.createCommentVNode)("",!0),(0,a.renderSlot)(e.$slots,"overflow-start-anchor",{visibleItems:e.visibleItems,overflowItems:e.overflowItems}),e.isOverflowing&&e.isCollapsedFromStart?(0,a.renderSlot)(e.$slots,"overflow-item",{key:1,visibleItems:e.visibleItems,overflowItems:e.overflowItems}):(0,a.createCommentVNode)("",!0),((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(e.visibleItems,(t,i)=>((0,a.openBlock)(),(0,a.createBlock)(s,{key:e.getItemKey(t,i)},{default:(0,a.withCtx)(()=>[(0,a.renderSlot)(e.$slots,"default",{item:t,visibleIndex:i,visibleItems:e.visibleItems,overflowItems:e.overflowItems})]),_:2},1024))),128)),e.isOverflowing&&e.isCollapsedFromEnd?(0,a.renderSlot)(e.$slots,"overflow-item",{key:2,visibleItems:e.visibleItems,overflowItems:e.overflowItems}):(0,a.createCommentVNode)("",!0),(0,a.renderSlot)(e.$slots,"overflow-end-anchor",{visibleItems:e.visibleItems,overflowItems:e.overflowItems}),e.isCollapsedFromEnd?((0,a.openBlock)(),(0,a.createElementBlock)("i",m,null,512)):(0,a.createCommentVNode)("",!0)])}]])},7046:function(e,t,i){"use strict";i.d(t,{Z:()=>U});var n=i(71367),o=i(76293),r=i(98671),a=i(3957),s=i(47696),l=i(9022),c=i(64794),d=i(74999),u=i(23886),h=i(63447),p=i(66794);(0,l.z)("status-error",d.fr),(0,l.z)("status-normal",d.Zx);let f=(0,h.defineComponent)({name:"StatusBar",components:{SpinIcon:a.Z,vIcon:u.Z},directives:{tooltip:c.Z},mixins:[s.Z,l.Z],props:{state:{type:String,default:""},successText:{type:String,default:void 0},errorText:{type:String,default:void 0},loadingText:{type:String,default:void 0},text:{type:String,default:void 0},show:{type:Boolean,default:!1},autoHide:{type:Boolean,default:!0}},data:()=>({successState:void 0,errorState:void 0,loadingState:void 0}),computed:{innerSuccessText(){return this.successText??this._i18n("common","setting_applied")},innerErrorText(){return this.errorText??this._i18n("common","error_system")},innerLoadingText(){return this.loadingText??this._i18n("common","loading")},stateBarCls(){return"success"===this.state?"success":"error"===this.state?"error":"loading"},currentText(){return"success"===this.state?this.innerSuccessText:"error"===this.state?this.innerErrorText:this.innerLoadingText}}}),g={class:"status-text"};var m=(0,p.Z)(f,[["render",function(e,t,i,n,o,r){let a=(0,h.resolveComponent)("v-icon"),s=(0,h.resolveComponent)("spin-icon"),l=(0,h.resolveDirective)("tooltip");return(0,h.openBlock)(),(0,h.createBlock)(h.Transition,{name:"fade"},{default:(0,h.withCtx)(()=>[(0,h.withDirectives)((0,h.createElementVNode)("div",{class:(0,h.normalizeClass)(["v-status-bar",e.stateBarCls])},[(0,h.withDirectives)(((0,h.openBlock)(),(0,h.createElementBlock)("div",g,[e.useSvgIcon?((0,h.openBlock)(),(0,h.createElementBlock)(h.Fragment,{key:0},["success"===e.state?((0,h.openBlock)(),(0,h.createBlock)(a,{key:0,name:"status-normal"})):"error"===e.state?((0,h.openBlock)(),(0,h.createBlock)(a,{key:1,name:"status-error"})):((0,h.openBlock)(),(0,h.createBlock)(s,{key:2,class:"status-icon"}))],64)):((0,h.openBlock)(),(0,h.createElementBlock)(h.Fragment,{key:1},["loading"!==e.state?((0,h.openBlock)(),(0,h.createBlock)(a,{key:0,name:"status-icon"})):((0,h.openBlock)(),(0,h.createBlock)(s,{key:1,class:"status-icon"}))],64)),(0,h.createTextVNode)(" "+(0,h.toDisplayString)(e.currentText),1)])),[[l,{overflowOnly:!0,content:e.currentText}]])],2),[[h.vShow,e.show]])]),_:1})}]]),v=i(83717),b=i(54730),y=i(12725);let w=(0,h.defineComponent)({name:"Toolbar",data:()=>({})}),_={class:"v-toolbar"},x={class:"main-wrapper"},S={class:"right-wrapper"};var C=(0,p.Z)(w,[["render",function(e,t,i,n,o,r){return(0,h.openBlock)(),(0,h.createElementBlock)("div",_,[(0,h.createElementVNode)("div",x,[(0,h.renderSlot)(e.$slots,"default")]),(0,h.createElementVNode)("div",S,[(0,h.renderSlot)(e.$slots,"right")])])}]]),k=i(72428),I=i(31842),A=i(47501),T=i(27755),E=i(16067);let R=(0,h.defineComponent)({name:"ButtonSplit"}),D={class:"v-button-split"};var O=(0,p.Z)(R,[["render",function(e,t,i,n,o,r){return(0,h.openBlock)(),(0,h.createElementBlock)("div",D)}]]);let M=(0,h.defineComponent)({name:"OverflowToolbar",components:{vOverflowList:k.Z,vButton:o.Z,vButtonSplit:O,vMenu:I.Z,vMenuItem:A.Z,vMenuSubmenu:T.Z,vMenuDivider:E.Z},extends:C,mixins:[s.Z],props:{items:{type:Array,default:()=>[]},minVisibleItemsNum:{type:Number,default:1},getMoreButtonText:{type:Function,default:void 0},moreMenu:{type:Object,default:()=>({})}},emits:["click-item"],data:()=>({}),computed:{},methods:{getInnerMoreButtonText(e){return this.getMoreButtonText?this.getMoreButtonText(e):e.visibleItems.length<=0?this._i18n("common","action"):this._i18n("common","more")},isDropdown:e=>"dropdown"===e.type,isDivider:e=>"divider"===e.type,isDividerMenuItem:e=>"divider"===e.type,getButtonType:e=>"basic"===e.type?"":e.type,getItemId:e=>e.id??e.title,getItemSynoId(e){return`${this.synoId}-${this.getItemId(e)}`},onClickItem(e){this.isDropdown(e)||(0,n.Qy)(this,"click-item",e)},getMenuBind:e=>e.menuBind??e.bind}}),N={class:"v-toolbar v-overflow-toolbar"},P={class:"right-wrapper"};var L=(0,p.Z)(M,[["render",function(e,t,i,n,o,r){let a=(0,h.resolveComponent)("v-button-split"),s=(0,h.resolveComponent)("v-menu-divider"),l=(0,h.resolveComponent)("v-menu-item"),c=(0,h.resolveComponent)("v-menu"),d=(0,h.resolveComponent)("v-button"),u=(0,h.resolveComponent)("v-menu-submenu"),p=(0,h.resolveComponent)("v-overflow-list"),f=(0,h.resolveDirective)("syno-id");return(0,h.withDirectives)(((0,h.openBlock)(),(0,h.createElementBlock)("div",N,[(0,h.createVNode)(p,{items:e.items,"min-visible-items-num":e.minVisibleItemsNum},(0,h.createSlots)({default:(0,h.withCtx)(t=>{let{item:i}=t;return[(0,h.renderSlot)(e.$slots,i.slot,{item:i},()=>[e.isDivider(i)?((0,h.openBlock)(),(0,h.createBlock)(a,(0,h.normalizeProps)((0,h.mergeProps)({key:0},i.bind)),null,16)):((0,h.openBlock)(),(0,h.createBlock)(d,(0,h.mergeProps)({key:1,type:e.getButtonType(i)},i.bind,{"syno-id":e.getItemSynoId(i),onClick:t=>e.onClickItem(i)}),(0,h.createSlots)({default:(0,h.withCtx)(()=>[(0,h.createTextVNode)((0,h.toDisplayString)(i.title)+" ",1)]),_:2},[i.menuItems||i.slot?{name:"dropdown",fn:(0,h.withCtx)(()=>[(0,h.createVNode)(c,(0,h.mergeProps)({"syno-id":`${e.getItemSynoId(i)}-menu`},i.menu),{default:(0,h.withCtx)(()=>[((0,h.openBlock)(!0),(0,h.createElementBlock)(h.Fragment,null,(0,h.renderList)(i.menuItems,t=>((0,h.openBlock)(),(0,h.createElementBlock)(h.Fragment,null,[e.isDividerMenuItem(t)?((0,h.openBlock)(),(0,h.createBlock)(s,(0,h.mergeProps)({key:0,ref_for:!0},e.getMenuBind(t),{key:t.id,"syno-id":e.getItemSynoId(t),onClick:i=>e.onClickItem(t)}),null,16,["syno-id","onClick"])):((0,h.openBlock)(),(0,h.createBlock)(l,(0,h.mergeProps)({key:1,ref_for:!0},e.getMenuBind(t),{key:t.id,"syno-id":e.getItemSynoId(t),title:t.title,onClick:i=>e.onClickItem(t)}),null,16,["syno-id","title","onClick"]))],64))),256))]),_:2},1040,["syno-id"])]),key:"0"}:void 0]),1040,["type","syno-id","onClick"]))])]}),"overflow-item":(0,h.withCtx)(t=>[(0,h.renderSlot)(e.$slots,"overflow-item",(0,h.normalizeProps)((0,h.guardReactiveProps)(t)),()=>[(0,h.createVNode)(d,{type:"dropdown","syno-id":`${e.synoId}-more`},{dropdown:(0,h.withCtx)(()=>[(0,h.createVNode)(c,(0,h.mergeProps)({"syno-id":`${e.synoId}-more-menu`},e.moreMenu),{default:(0,h.withCtx)(()=>[((0,h.openBlock)(!0),(0,h.createElementBlock)(h.Fragment,null,(0,h.renderList)(t.overflowItems,(t,i)=>((0,h.openBlock)(),(0,h.createElementBlock)(h.Fragment,null,[t.menuItems?((0,h.openBlock)(),(0,h.createBlock)(u,(0,h.mergeProps)({key:t.id,title:t.title,"syno-id":`${e.getItemSynoId(t)}-submenu`,ref_for:!0},e.getMenuBind(t)),{default:(0,h.withCtx)(()=>[((0,h.openBlock)(!0),(0,h.createElementBlock)(h.Fragment,null,(0,h.renderList)(t.menuItems,t=>((0,h.openBlock)(),(0,h.createElementBlock)(h.Fragment,null,[e.isDividerMenuItem(t)?((0,h.openBlock)(),(0,h.createBlock)(s,(0,h.mergeProps)({key:0,ref_for:!0},e.getMenuBind(t),{key:t.id,"syno-id":e.getItemSynoId(t),onClick:i=>e.onClickItem(t)}),null,16,["syno-id","onClick"])):((0,h.openBlock)(),(0,h.createBlock)(l,(0,h.mergeProps)({key:1,ref_for:!0},e.getMenuBind(t),{key:t.id,"syno-id":e.getItemSynoId(t),title:t.title,onClick:i=>e.onClickItem(t)}),null,16,["syno-id","title","onClick"]))],64))),256))]),_:2},1040,["title","syno-id"])):e.isDivider(t)?i>0?((0,h.openBlock)(),(0,h.createBlock)(s,(0,h.mergeProps)({key:2,ref_for:!0},e.getMenuBind(t),{key:t.id,"syno-id":`divider-${i}`}),null,16,["syno-id"])):(0,h.createCommentVNode)("",!0):((0,h.openBlock)(),(0,h.createBlock)(l,(0,h.mergeProps)({key:1,ref_for:!0},e.getMenuBind(t),{key:t.id,"syno-id":e.getItemSynoId(t),title:t.title,onClick:i=>e.onClickItem(t)}),null,16,["syno-id","title","onClick"]))],64))),256))]),_:2},1040,["syno-id"])]),default:(0,h.withCtx)(()=>[(0,h.createTextVNode)((0,h.toDisplayString)(e.getInnerMoreButtonText(t))+" ",1)]),_:2},1032,["syno-id"])])]),_:2},[(0,h.renderList)(["overflow-start-anchor","overflow-end-anchor"],t=>({name:t,fn:(0,h.withCtx)(i=>[(0,h.renderSlot)(e.$slots,t,(0,h.normalizeProps)((0,h.guardReactiveProps)(i)))])}))]),1032,["items","min-visible-items-num"]),(0,h.createElementVNode)("div",P,[(0,h.renderSlot)(e.$slots,"right")])])),[[f]])}]]),B=i(46001),F=i(2184),V=i(71283),z=i(5317),H=i(31755),W=i(88446);let Y="basic";var U=(0,p.Z)((0,h.defineComponent)({name:"Panel",components:{vButton:o.Z,vSpin:r.Z,vStatusBar:m,vLayout:y.Z,vScrollbar:B.Z,withTransitionGroup:(0,z.Q)(h.TransitionGroup)},mixins:[s.Z,(0,H.J)("alert-bar-container"),(0,W.W)("panel")],props:{loadingText:{type:String,default:void 0},tbar:{type:[Boolean,Object],default:!1},fbar:{type:[Boolean,Object],default:!0},hasTbar:{type:Boolean,default:!1},hasFbar:{type:Boolean,default:!0},loading:{type:Boolean,default:!1},successText:{type:String,default:void 0},errorText:{type:String,default:void 0},showStatusBar:{type:Boolean,default:!1},autoHideStatusBar:{type:Boolean,default:!0},autoHideTimer:{type:Number,default:5e3},statusBarState:{type:String,default:"loading"},loadingType:{type:String,default:"spin"},cancel:{type:Function,default:()=>{}},cancelBtnDisabled:{type:Boolean,default:!1},confirm:{type:Function,default:()=>{}},confirmBtnDisabled:{type:Boolean,default:!1},useDefaultTBar:{type:Boolean,default:!0},tbarBorder:{type:Boolean,default:!1},cancelText:{type:String,default:void 0},confirmText:{type:String,default:void 0},fluidFooter:{type:Boolean,default:!0},layoutType:{type:String,default:"content"},layoutOrder:{type:Number,default:0},mobileBreakpoint:{type:[String,Boolean],default:"xxs"},footerDirection:{type:Object,default:()=>({mobile:"row",desktop:"row"})},detectScroll:{type:Boolean,default:!1},scrollbarOption:{type:Object,default:()=>({})}},emits:["update:show-status-bar","click-toolbar-item"],data:()=>({prefixCls:"v-panel",reachYEnd:!0,reachYStart:!0,toolbarShown:!0,$_scroll:0}),computed:{innerDetectScroll(){return this.getPanelConfigValue("detectScroll")},hasConfirmButton(){return(0,b.Kn)(this.fbar)?!(0,b.jn)(this.fbar.confirm)||this.fbar.confirm:!!this.fbar},hasCancelButton(){return(0,b.Kn)(this.fbar)?!(0,b.jn)(this.fbar.cancel)||this.fbar.cancel:!!this.fbar},confirmBinding(){return(0,b.Kn)(this.fbar)&&(0,b.Kn)(this.fbar.confirm)?this.fbar.confirm:{}},cancelBinding(){return(0,b.Kn)(this.fbar)&&(0,b.Kn)(this.fbar.cancel)?this.fbar.cancel:{}},innerLoadingText(){return this.loadingText??this._i18n("common","loading")},innerSuccessText(){return this.successText??this._i18n("common","setting_applied")},innerErrorText(){return this.errorText??this._i18n("common","error_system")},hasToolbarTransition(){return!!this.tbar?.transition},toolbarScrollTransition(){return"scroll"===this.tbar?.transition?.action},transitionToolbarName(){return this.tbar?.transition?.name??"slide-toolbar"},toolbarComponent(){return this.toolbarType===Y?C:L},toolbarType(){return(0,b.Kn)(this.tbar)?this.tbar.type:!0===this.tbar?Y:this.hasTbar?((0,V.Rn)("hasTbar","tbar",this),Y):"none"},useFooter(){return!0!==this.hasFbar?((0,V.Rn)("hasFbar","fbar",this),this.hasFbar):this.fbar},useToolbar(){return this.toolbarScrollTransition?this.toolbarShown:this.useBasicToolbar||this.useOverflowToolbar},useBasicToolbar(){return this.toolbarType===Y},useOverflowToolbar(){return"overflow"===this.toolbarType},tbarCls(){let e=!1!==this.tbar?.defaultStyle;return!1===this.useDefaultTBar&&((0,V.Rn)("useDefaultTBar","tbar.defaultStyle",this),e=this.useDefaultTBar),this.tbarBorder&&(0,V.Rn)("tbarBorder","tbar.border",this),["tbar-wrapper",{"default-tbar":e,"tbar-has-border":this.tbar?.border||this.tbarBorder}]},footerCls(){return this.isMobile?this.footerDirection?.mobile??"row":this.footerDirection?.desktop??"row"},bodyWrapperCls(){return["layout-body-wrapper",{"reach-y-start":this.innerDetectScroll&&this.reachYStart,"reach-y-end":this.innerDetectScroll&&this.reachYEnd}]},panelCls(){return["v-panel",{mobile:this.isMobile}]},bodyWrapper:()=>({"flex-bug":(0,F.Eh)("<",17)}),fbarCls(){return["fbar-wrapper",{"fbar-wrapper--fluid":this.fluidFooter,"reach-y-start":this.innerDetectScroll&&this.reachYStart,"reach-y-end":this.innerDetectScroll&&this.reachYEnd}]},isSpinType(){return"spin"===this.loadingType},panelBodyStyle(){return{"--panel-in-tabs-padding-top":this.useToolbar?"8px":"0"}},isMobile(){return!this.$breakpointManager&&this.mobileBreakpoint?((0,V.D8)("please import and use BreakpointManagerPlugin when you are in tree-shaking mode or breakpoint will not active."),!1):this.mobileBreakpoint&&this.$breakpointManager?.lessAndEqThan(this.mobileBreakpoint)}},watch:{statusBarState(e){this.delayHideStatusBar()},showStatusBar(e){this.delayHideStatusBar()}},async mounted(){await this.$nextTick(),this.detectReachStartEnd()},methods:{hasScrollBodySlot(){return(0,v._Y)(this,"scroll-body")},hasContentBodySlot(){return(0,v._Y)(this,"content-body")},delayHideStatusBar(){this.autoHideStatusBar&&"loading"!==this.statusBarState&&window.setTimeout(()=>{(0,n.Qy)(this,"update:show-status-bar",!1)},this.autoHideTimer)},detectReachStartEnd(){if(this.getScrollEl()&&this.innerDetectScroll){let e=this.getScrollEl(),t=e.scrollTop;this.reachYStart=0===t,this.reachYEnd=e.scrollHeight<=e.offsetHeight||t===e.scrollHeight-e.offsetHeight}},determineToolbarShownWhenScroll(){let e=this.$refs.scrollbar?.getScrollTop()??0;Math.abs(e-this.$data.$_scroll)>20&&(e>this.$data.$_scroll?this.toolbarShown=!1:this.toolbarShown=!0,this.$data.$_scroll=e)},handleScroll(e){this.toolbarScrollTransition&&this.determineToolbarShownWhenScroll(),this.detectReachStartEnd()},getScrollEl(){return this.$refs.scrollbar?.getScrollEl()},onClickToolbarItem(e){(0,n.Qy)(this,"click-toolbar-item",e)}}}),[["render",function(e,t,i,n,o,r){let a=(0,h.resolveComponent)("v-layout"),s=(0,h.resolveComponent)("v-scrollbar"),l=(0,h.resolveComponent)("with-transition-group"),c=(0,h.resolveComponent)("v-status-bar"),d=(0,h.resolveComponent)("v-button"),u=(0,h.resolveComponent)("v-spin"),p=(0,h.resolveDirective)("syno-id");return(0,h.withDirectives)(((0,h.openBlock)(),(0,h.createBlock)(a,{class:(0,h.normalizeClass)(e.panelCls),type:`panel.${e.layoutType}`,order:e.layoutOrder},{default:(0,h.withCtx)(()=>[(0,h.createVNode)(u,{class:(0,h.normalizeClass)(e.prefixCls+"-wrapper"),tip:e.innerLoadingText,spinning:e.loading,"only-mask":!e.isSpinType},{"spin-inner":(0,h.withCtx)(()=>[(0,h.renderSlot)(e.$slots,"spin-inner")]),default:(0,h.withCtx)(()=>[(0,h.createVNode)(a,{class:(0,h.normalizeClass)(e.bodyWrapperCls),type:"panel-body",style:(0,h.normalizeStyle)(e.panelBodyStyle),"custom-layout-styles":{"layout-padding-top":"--svc-panel-layout-padding-top"}},{default:(0,h.withCtx)(()=>[(0,h.createVNode)(l,{wrap:e.hasToolbarTransition,name:e.transitionToolbarName,multiple:!0,tag:"div",class:"layout-body-wrapper-transition"},{default:(0,h.withCtx)(()=>[(0,h.renderSlot)(e.$slots,"tbar-wrapper",{},()=>[e.useToolbar?((0,h.openBlock)(),(0,h.createBlock)((0,h.resolveDynamicComponent)(e.toolbarComponent),{key:"toolbar",class:(0,h.normalizeClass)(e.tbarCls),items:e.tbar.items,"min-visible-items-num":e.tbar.minVisibleItemsNum,"syno-id":`${e.synoId}-toolbar`,"get-more-button-text":e.tbar.getMoreButtonText,"more-menu":e.tbar.moreMenu,onClickItem:e.onClickToolbarItem},(0,h.createSlots)({right:(0,h.withCtx)(()=>[(0,h.renderSlot)(e.$slots,"tbar-right")]),default:(0,h.withCtx)(()=>[(0,h.renderSlot)(e.$slots,"tbar")]),_:2},[(0,h.renderList)(["overflow-start-anchor","overflow-end-anchor"],t=>({name:t,fn:(0,h.withCtx)(i=>[(0,h.renderSlot)(e.$slots,t,(0,h.normalizeProps)((0,h.guardReactiveProps)(i)))])}))]),1064,["class","items","min-visible-items-num","syno-id","get-more-button-text","more-menu","onClickItem"])):(0,h.createCommentVNode)("",!0)]),(0,h.createElementVNode)("div",{key:"body-wrapper",class:(0,h.normalizeClass)(["body-wrapper",e.bodyWrapper])},[(0,h.renderSlot)(e.$slots,"body"),e.hasScrollBodySlot()?((0,h.openBlock)(),(0,h.createBlock)(s,(0,h.mergeProps)({key:0},e.scrollbarOption,{ref:"scrollbar",onScroll:e.handleScroll}),{default:(0,h.withCtx)(()=>[(0,h.createVNode)(a,{type:e.useToolbar?"toolbar-content":"content"},{default:(0,h.withCtx)(()=>[(0,h.renderSlot)(e.$slots,"scroll-body")]),_:3},8,["type"])]),_:3},16,["onScroll"])):(0,h.createCommentVNode)("",!0),e.hasContentBodySlot()?((0,h.openBlock)(),(0,h.createBlock)(a,{key:1,type:e.useToolbar?"toolbar-content":"content"},{default:(0,h.withCtx)(()=>[(0,h.renderSlot)(e.$slots,"content-body")]),_:3},8,["type"])):(0,h.createCommentVNode)("",!0)],2)]),_:3},8,["wrap","name"])]),_:3},8,["class","style"]),e.useFooter?((0,h.openBlock)(),(0,h.createBlock)(a,{key:0,class:(0,h.normalizeClass)(e.fbarCls),type:"panel-fbar"},{default:(0,h.withCtx)(()=>["statusbar"===e.loadingType?(0,h.renderSlot)(e.$slots,"status-bar",{key:0},()=>[(0,h.createVNode)(c,{state:e.statusBarState,show:e.showStatusBar,"success-text":e.innerSuccessText,"error-text":e.innerErrorText,"loading-text":e.innerLoadingText},null,8,["state","show","success-text","error-text","loading-text"])]):(0,h.createCommentVNode)("",!0),(0,h.renderSlot)(e.$slots,"fbar",{},()=>[(0,h.createElementVNode)("div",{class:(0,h.normalizeClass)(["default pull-right button-region",e.footerCls])},[e.hasCancelButton?((0,h.openBlock)(),(0,h.createBlock)(d,(0,h.mergeProps)({key:0,"syno-id":`${e.synoId}-fbar-cancel`,type:"footbar",suffix:"cancel",disabled:e.cancelBtnDisabled},e.cancelBinding,{onClick:e.cancel}),{default:(0,h.withCtx)(()=>[(0,h.createTextVNode)((0,h.toDisplayString)(e.cancelText||e._i18n("common","cancel")),1)]),_:1},16,["syno-id","disabled","onClick"])):(0,h.createCommentVNode)("",!0),e.hasConfirmButton?((0,h.openBlock)(),(0,h.createBlock)(d,(0,h.mergeProps)({key:1,"syno-id":`${e.synoId}-fbar-commit`,type:"footbar",suffix:"main",disabled:e.confirmBtnDisabled},e.confirmBinding,{onClick:e.confirm}),{default:(0,h.withCtx)(()=>[(0,h.createTextVNode)((0,h.toDisplayString)(e.confirmText||e._i18n("common","commit")),1)]),_:1},16,["syno-id","disabled","onClick"])):(0,h.createCommentVNode)("",!0)],2)])]),_:3},8,["class"])):(0,h.createCommentVNode)("",!0)]),_:3},8,["class","tip","spinning","only-mask"])]),_:3},8,["class","type","order"])),[[p]])}]])},55014:function(e,t,i){"use strict";i.d(t,{Z:()=>c});var n=i(2176),o=i(88446),r=i(63447),a=i(66794);let s=(0,r.defineComponent)({name:"Popup",mixins:[n.ZP,(0,o.W)("popup","Tip")],props:{disable:{type:Boolean,default:!1},type:{type:String,default:"error"},content:{type:String,default:""},tipOptions:{type:Object,default:()=>({})}},data:()=>({isShow:!1}),computed:{innerTipOpts(){let e=this.getTipConfigValue("tipOptions");return{content:this.content,attachToElement:!0,offset:[0,0],align:"bl->tl",type:this.type,arrow:!0,disabled:this.disable,...e}}},methods:{showPopup(){this.$refs.tip?._svc_tooltip_e_show_cb?.()},hidePopup(){this.$refs.tip?._svc_tooltip_e_hide_cb?.()}}}),l={ref:"tip"};var c=(0,a.Z)(s,[["render",function(e,t,i,n,o,a){let s=(0,r.resolveDirective)("tooltip");return(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("div",l,[(0,r.renderSlot)(e.$slots,"default")])),[[s,e.innerTipOpts]])}]])},36058:function(e,t,i){"use strict";i.d(t,{m:()=>c});var n=i(63964),o=i(63511),r=i(54730),a=i(78050),s=i(71283),l=i(63447);function c(e){let{props:t,onAligned:i}=e,c=(0,l.ref)(),{alignStyle:d,mountTo:u,doAlign:h}=function(e){let{props:t,alignEl:i,onAligned:n=r.ZT}=e,o=(0,a.xj)(),c=function(e,t){let{alignEl:i}=t;return(0,l.computed)(()=>{let{anchor:t}=(0,l.unref)(e),{alignment:n}=(0,l.unref)(e);return n=n??{},{alignOffset:(0,r.Kn)(n)?n.offset??[0,0]:[0,0],alignPos:(0,r.HD)(n)?n:n.pos??"tl->bl",alignOpts:(0,r.HD)(n)?void 0:n.opts,alignEl:(0,l.unref)(i),anchor:(0,l.unref)(t)}})}(t,{alignEl:i}),d=(0,l.computed)(()=>{var e;return e=(0,l.unref)(t).mountTo,e=(0,r.mf)(e)?e?.():e,(0,r.HD)(e)?document.querySelector(e):e}),u=(0,l.reactive)({position:[void 0,void 0],constrainWidth:!1,constrainHeight:!1}),h=(0,l.computed)(()=>({left:(0,r.$K)(u.position[0])?`${u.position[0]}px`:void 0,top:(0,r.$K)(u.position[1])?`${u.position[1]}px`:void 0,maxWidth:u.constrainWidth?`${u.constrainWidth}px`:void 0,maxHeight:u.constrainHeight?`${u.constrainHeight}px`:void 0})),p=()=>{let{alignOffset:e,alignPos:t,alignOpts:i,alignEl:r,anchor:a}=(0,l.unref)(c);if(!a||!d.value||!r)return u;if(!o)return(0,s.D8)("AlignManager is not found, please make sure you have installed it."),u;let h=o.getAlignToXYv2(r,a,t,{offset:e,containerEl:d.value,constrain:i});u.position=[h.x,h.y],u.constrainHeight=!!h.constrainHeight&&h.constrainHeight,u.constrainWidth=!!h.constrainWidth&&h.constrainWidth,(0,l.nextTick)(()=>{n?.(h)})};return(0,l.watchPostEffect)(()=>{p()}),{alignStyle:h,result:u,mountTo:d,doAlign:p}}({props:t,alignEl:c,onAligned:i}),p=function(e){let t=(0,n.U5)(),i=(0,l.ref)(),o=(0,l.computed)(()=>({zIndex:i.value}));return(0,l.onMounted)(()=>{let{acquireZIndex:n}=(0,l.unref)(e);i.value=n?t?.acquireZIndex():void 0}),(0,l.onBeforeUnmount)(()=>{let{acquireZIndex:i}=(0,l.unref)(e);i&&t?.releaseZIndex()}),o}(t),f=(0,l.computed)(()=>[(0,l.unref)(t)?.innerClass??{},(0,l.unref)(t)?.customClass??{}]),g=(0,l.computed)(()=>[(0,l.unref)(t)?.innerStyle??{},(0,l.unref)(t)?.customStyle??{}]);return{render:e=>(0,o.h)("div",{ref:c,class:["vue-portal-target",...f.value],style:[d.value,p.value,...g.value]},e?.()??[]),doAlign:h,mountTo:u}}},37995:function(e,t,i){"use strict";i.d(t,{w:()=>a});var n=i(97013),o=i(63447);let r=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=(0,o.reactive)({}),i={open:function(e){let{to:i,from:o,content:r,order:a=1/0}=e;if(!i||!o||!r)return;t[i]||(0,n.t)(t,i,{});let s=t[i];(0,n.t)(s,o,{to:i,from:o,content:r,order:a})},close:function(e){let{to:i,from:o}=e;if(!i||!o)return;let r=t[i];r&&((0,n.I)(r,o),r.size||(0,n.I)(t,i))},transports:t,getContentForTarget:function(e,i){let n=t[e];if(!n)return[];let o=Object.values(n)??[];return i?o.sort((e,t)=>(e?.order??0)-(t?.order??0)):o.length>0?[o[o.length-1]]:[]}};return e?(0,o.readonly)(i):i}();function a(){return r}},49098:function(e,t,i){"use strict";i.d(t,{Z:()=>d});var n=i(89641),o=i(63511),r=i(37995),a=i(36058),s=i(70243);let l={disabled:{type:Boolean,default:!1},name:{type:String,default:()=>String(Math.round(1e7*Math.random()))},order:{type:Number,default:0},slotProps:{type:(0,s.C)(Object),default:()=>({})},to:{type:String,default:()=>String(Math.round(1e7*Math.random()))},mountTo:{type:(0,s.C)([String,HTMLElement,Function]),default:void 0},alignment:{type:[String,Object],default:void 0},anchor:{type:[Object,HTMLElement],default:void 0},acquireZIndex:{type:Boolean,default:!1},targetClass:{type:(0,s.C)([String,Object,Array]),default:void 0},targetStyle:{type:(0,s.C)([String,Object,Array]),default:void 0}};var c=i(63447),d=(0,c.defineComponent)({name:"Portal",props:l,emits:["aligned"],setup(e,t){let{slots:i,emit:s,expose:l}=t;if(e.mountTo&&n.isVue3){let t=(0,c.computed)(()=>({...{name:e.to,acquireZIndex:e.acquireZIndex,mountTo:e.mountTo},...{innerStyle:e.targetStyle,innerClass:e.targetClass,anchor:e.anchor,alignment:e.alignment}})),{render:n,mountTo:r,doAlign:d}=(0,a.m)({props:t,onAligned:e=>s("aligned",e)});return l({doAlign:d}),()=>e.disabled&&i?.default?i.default(e.slotProps):i?.default?(0,o.h)(c.Teleport,{props:{to:r.value}},[n(()=>i?.default?.(e.slotProps)??[])]):void 0}{let{portalTarget:t,doAlign:n}=function(e,t,i){let n=(0,r.w)(),o=null,a=(0,c.ref)(null),s=(0,c.ref)(null);function l(){let{to:i,name:o,order:r,mountTo:a}=e;t.default?n.open({to:i,from:o,order:r,content:t.default}):d()}function d(t){n.close({to:t??e.to,from:e.name}),o?.()}return(0,c.getCurrentInstance)(),(0,c.onMounted)(()=>{e.disabled||l()}),(0,c.onUpdated)(()=>{e.disabled?d():l()}),(0,c.onBeforeUnmount)(()=>{d()}),(0,c.watch)(()=>e.mountTo,()=>{o?.(),o=function(){let{portalTarget:e,doAlign:t,destroyFn:i}=function(e,t){throw Error("mount portal target only for vue2")}();return a.value=e,s&&(s.value=t),i}()}),(0,c.watch)(()=>e.to,(t,i)=>{e.disabled||(i&&i!==t&&d(i),l())}),{portalTarget:a,doAlign:s}}(e,i);l({portalTarget:t,doAlign:n})}return()=>e.disabled&&i.default?i.default(e.slotProps):null}})},95254:function(e,t,i){"use strict";i.d(t,{Z:()=>f}),i(95790),i(95922);var n=i(46570),o=i(43319),r=i(74318),a=i(31755),s=i(18954),l=i(71367),c=i(63447),d=i(70243),u=(0,c.defineComponent)({name:"RadioGroup",components:{vRadio:n.Z},mixins:[r.Z,(0,a.J)("radio-group"),(0,a.J)("form-controls-group")],props:{[s.yz.value()]:{type:(0,d.C)([String,Number,Boolean]),default:""},data:{type:(0,d.C)(Array),default:()=>[]},disabled:{type:Boolean,default:!1},size:{type:String,default:""},name:{type:String,default:()=>`syno-${(0,o.V)()}`},deactiveChildrenFormItems:{type:(0,d.C)(Function),default:()=>n.Z}},emits:["change","update:model-value"],data:()=>({prefixCls:"v-radio-group",hasSlot:!1,model:""}),computed:{ariaLabelledby(){let e=this.data.find(e=>e.value===this.innerValue);return e&&this.getRadioId(e.value)},wrapperCls(){return[this.prefixCls]},innerValue(){return(0,s.eQ)(this)}},mounted(){this.$slots&&this.$slots.default&&(this.hasSlot=!0)},created(){if(this.model=this.innerValue,this.disabled)for(let e of this.data)e.disabled=!0},methods:{change(e){this.model=e,(0,l.Qy)(this,(0,s.ef)(),e),(0,l.Qy)(this,"change",e)},getRadioSynoId(e){return`${this.synoId}-${e}`},getRadioId(e){return`${this.name}-${e}`}}}),h=i(66794);let p=["aria-labelledby"];var f=(0,h.Z)(u,[["render",function(e,t,i,n,o,r){let a=(0,c.resolveComponent)("v-radio"),s=(0,c.resolveDirective)("syno-id");return(0,c.withDirectives)(((0,c.openBlock)(),(0,c.createElementBlock)("div",{class:(0,c.normalizeClass)(e.wrapperCls),role:"radiogroup","aria-labelledby":e.ariaLabelledby,tabindex:"-1",onBlur:t[0]||(t[0]=function(){return e.onBlur&&e.onBlur(...arguments)})},[(0,c.renderSlot)(e.$slots,"default"),e.hasSlot?(0,c.createCommentVNode)("",!0):((0,c.openBlock)(!0),(0,c.createElementBlock)(c.Fragment,{key:0},(0,c.renderList)(e.data,t=>((0,c.openBlock)(),(0,c.createBlock)(a,{id:e.getRadioId(t.value),key:e.getRadioId(t.value),"syno-id":e.getRadioSynoId(t.value),disabled:t.disabled,value:t.value,name:e.name},{default:(0,c.withCtx)(()=>[(0,c.createTextVNode)((0,c.toDisplayString)(t.text),1)]),_:2},1032,["id","syno-id","disabled","value","name"]))),128))],42,p)),[[s]])}]])},46570:function(e,t,i){"use strict";i.d(t,{Z:()=>g});var n=i(9022),o=i(31755),r=i(74318),a=i(18954),s=i(71367),l=i(43319),c=i(23886),d=i(63447),u=i(70243),h=(0,d.defineComponent)({name:"Radio",components:{vIcon:c.Z},mixins:[(0,o.f)("radio-group"),n.Z,r.Z],model:{prop:"model",event:"input"},props:{stopPropagation:{type:Boolean,default:!1},value:{type:(0,u.C)([String,Number,Boolean]),default:""},[a.yz.value("model")]:{type:(0,u.C)([String,Number,Boolean]),default:""},disabled:{type:Boolean,default:!1},id:{type:String,default:()=>`syno-${(0,l.V)()}`},name:{type:String,default:""},labelColor:{type:(0,u.C)(String),default:"normal",validator:e=>["normal","red"].includes(e)}},emits:["focus","blur","click","update:model-value","input"],data:()=>({prefixCls:"v-radio",isGroup:!1,isFocused:!1,disabledKey:"innerDisabled"}),computed:{wrapperCls(){return[`${this.prefixCls}-wrapper`,{checked:this.isChecked,disabled:this.innerDisabled,focused:this.isFocused}]},labelCls(){return[`${this.prefixCls}-label`,{[`label-color-${this.labelColor}`]:!0}]},innerModel:{get(){return this.isGroup?this["radio-group"]?.instance.innerValue:this[(0,a.GV)()]},set(e){this.isGroup?this["radio-group"]?.instance.change(e):(0,s.Qy)(this,(0,a.ef)(),e)}},isChecked(){return this.innerModel===this.value},innerDisabled(){return this.isGroup&&this["radio-group"]?.instance.disabled||this.disabled}},created(){this["radio-group"]&&(this.isGroup=!0)},methods:{onFocus(){this.$refs.input.focus()},onFocusInput(){this.isFocused=!0,(0,s.Qy)(this,"focus",this)},onBlurInput(){this.isFocused=!1,(0,s.Qy)(this,"blur",this)},onClick(e){this.stopPropagation&&e.stopPropagation(),this.innerDisabled||((0,s.Qy)(this,"click",e,this),this.innerModel!==this.value&&(this.innerModel=this.value))},onDblClick(e){this.stopPropagation&&e.stopPropagation()}}}),p=i(66794);let f=["id","disabled","name","tabindex","aria-checked","value"];var g=(0,p.Z)(h,[["render",function(e,t,i,n,o,r){let a=(0,d.resolveComponent)("v-icon"),s=(0,d.resolveDirective)("syno-id");return(0,d.withDirectives)(((0,d.openBlock)(),(0,d.createElementBlock)("div",{class:(0,d.normalizeClass)(e.wrapperCls),tabindex:"-1",onClick:t[4]||(t[4]=function(){return e.onClick&&e.onClick(...arguments)}),onDblclick:t[5]||(t[5]=function(){return e.onDblClick&&e.onDblClick(...arguments)}),onFocus:t[6]||(t[6]=function(){return e.onFocus&&e.onFocus(...arguments)})},[(0,d.createVNode)(a,{name:"radio",class:"v-radio-icon",sprite:""}),(0,d.withDirectives)((0,d.createElementVNode)("input",{id:e.id,ref:"input","onUpdate:modelValue":t[0]||(t[0]=t=>e.innerModel=t),type:"radio",class:(0,d.normalizeClass)(e.prefixCls+"-input"),disabled:e.innerDisabled,name:e.name,tabindex:e.isChecked?0:-1,"aria-checked":e.isChecked?"true":"false",value:e.value,onClick:t[1]||(t[1]=(0,d.withModifiers)(()=>{},["stop"])),onFocus:t[2]||(t[2]=function(){return e.onFocusInput&&e.onFocusInput(...arguments)}),onBlur:t[3]||(t[3]=function(){return e.onBlurInput&&e.onBlurInput(...arguments)})},null,42,f),[[d.vModelRadio,e.innerModel]]),(0,d.createElementVNode)("label",{class:(0,d.normalizeClass)(e.labelCls)},[(0,d.renderSlot)(e.$slots,"default")],2)],34)),[[s]])}]])},25063:function(e,t,i){"use strict";let n;i.d(t,{Z:()=>n}),i(95790),i(53346),i(5556);var o,r,a,s,l,c,d,u,h,p,f=i(45684),g=i(42766);function m(e){return e===c.Space||e===c.NewLine||e===c.Tab||e===c.FormFeed||e===c.CarriageReturn}function v(e){return e===c.Slash||e===c.Gt||m(e)}(o=c||(c={}))[o.Tab=9]="Tab",o[o.NewLine=10]="NewLine",o[o.FormFeed=12]="FormFeed",o[o.CarriageReturn=13]="CarriageReturn",o[o.Space=32]="Space",o[o.ExclamationMark=33]="ExclamationMark",o[o.Number=35]="Number",o[o.Amp=38]="Amp",o[o.SingleQuote=39]="SingleQuote",o[o.DoubleQuote=34]="DoubleQuote",o[o.Dash=45]="Dash",o[o.Slash=47]="Slash",o[o.Zero=48]="Zero",o[o.Nine=57]="Nine",o[o.Semi=59]="Semi",o[o.Lt=60]="Lt",o[o.Eq=61]="Eq",o[o.Gt=62]="Gt",o[o.Questionmark=63]="Questionmark",o[o.UpperA=65]="UpperA",o[o.LowerA=97]="LowerA",o[o.UpperF=70]="UpperF",o[o.LowerF=102]="LowerF",o[o.UpperZ=90]="UpperZ",o[o.LowerZ=122]="LowerZ",o[o.LowerX=120]="LowerX",o[o.OpeningSquareBracket=91]="OpeningSquareBracket",(r=d||(d={}))[r.Text=1]="Text",r[r.BeforeTagName=2]="BeforeTagName",r[r.InTagName=3]="InTagName",r[r.InSelfClosingTag=4]="InSelfClosingTag",r[r.BeforeClosingTagName=5]="BeforeClosingTagName",r[r.InClosingTagName=6]="InClosingTagName",r[r.AfterClosingTagName=7]="AfterClosingTagName",r[r.BeforeAttributeName=8]="BeforeAttributeName",r[r.InAttributeName=9]="InAttributeName",r[r.AfterAttributeName=10]="AfterAttributeName",r[r.BeforeAttributeValue=11]="BeforeAttributeValue",r[r.InAttributeValueDq=12]="InAttributeValueDq",r[r.InAttributeValueSq=13]="InAttributeValueSq",r[r.InAttributeValueNq=14]="InAttributeValueNq",r[r.BeforeDeclaration=15]="BeforeDeclaration",r[r.InDeclaration=16]="InDeclaration",r[r.InProcessingInstruction=17]="InProcessingInstruction",r[r.BeforeComment=18]="BeforeComment",r[r.CDATASequence=19]="CDATASequence",r[r.InSpecialComment=20]="InSpecialComment",r[r.InCommentLike=21]="InCommentLike",r[r.BeforeSpecialS=22]="BeforeSpecialS",r[r.BeforeSpecialT=23]="BeforeSpecialT",r[r.SpecialStartSequence=24]="SpecialStartSequence",r[r.InSpecialTag=25]="InSpecialTag",r[r.InEntity=26]="InEntity",(a=u||(u={}))[a.NoValue=0]="NoValue",a[a.Unquoted=1]="Unquoted",a[a.Single=2]="Single",a[a.Double=3]="Double";let b={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101]),TextareaEnd:new Uint8Array([60,47,116,101,120,116,97,114,101,97])};class y{constructor({xmlMode:e=!1,decodeEntities:t=!0},i){this.cbs=i,this.state=d.Text,this.buffer="",this.sectionStart=0,this.index=0,this.entityStart=0,this.baseState=d.Text,this.isSpecial=!1,this.running=!0,this.offset=0,this.currentSequence=void 0,this.sequenceIndex=0,this.xmlMode=e,this.decodeEntities=t,this.entityDecoder=new g.PQ(e?g.mP:g.HP,(e,t)=>this.emitCodePoint(e,t))}reset(){this.state=d.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=d.Text,this.currentSequence=void 0,this.running=!0,this.offset=0}write(e){this.offset+=this.buffer.length,this.buffer=e,this.parse()}end(){this.running&&this.finish()}pause(){this.running=!1}resume(){this.running=!0,this.index<this.buffer.length+this.offset&&this.parse()}stateText(e){e===c.Lt||!this.decodeEntities&&this.fastForwardTo(c.Lt)?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=d.BeforeTagName,this.sectionStart=this.index):this.decodeEntities&&e===c.Amp&&this.startEntity()}stateSpecialStartSequence(e){let t=this.sequenceIndex===this.currentSequence.length;if(t?v(e):(32|e)===this.currentSequence[this.sequenceIndex]){if(!t)return void this.sequenceIndex++}else this.isSpecial=!1;this.sequenceIndex=0,this.state=d.InTagName,this.stateInTagName(e)}stateInSpecialTag(e){if(this.sequenceIndex===this.currentSequence.length){if(e===c.Gt||m(e)){let t=this.index-this.currentSequence.length;if(this.sectionStart<t){let e=this.index;this.index=t,this.cbs.ontext(this.sectionStart,t),this.index=e}this.isSpecial=!1,this.sectionStart=t+2,this.stateInClosingTagName(e);return}this.sequenceIndex=0}(32|e)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:0===this.sequenceIndex?this.currentSequence===b.TitleEnd?this.decodeEntities&&e===c.Amp&&this.startEntity():this.fastForwardTo(c.Lt)&&(this.sequenceIndex=1):this.sequenceIndex=Number(e===c.Lt)}stateCDATASequence(e){e===b.Cdata[this.sequenceIndex]?++this.sequenceIndex===b.Cdata.length&&(this.state=d.InCommentLike,this.currentSequence=b.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=d.InDeclaration,this.stateInDeclaration(e))}fastForwardTo(e){for(;++this.index<this.buffer.length+this.offset;)if(this.buffer.charCodeAt(this.index-this.offset)===e)return!0;return this.index=this.buffer.length+this.offset-1,!1}stateInCommentLike(e){e===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===b.CdataEnd?this.cbs.oncdata(this.sectionStart,this.index,2):this.cbs.oncomment(this.sectionStart,this.index,2),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=d.Text):0===this.sequenceIndex?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):e!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)}isTagStartChar(e){return this.xmlMode?!v(e):e>=c.LowerA&&e<=c.LowerZ||e>=c.UpperA&&e<=c.UpperZ}startSpecial(e,t){this.isSpecial=!0,this.currentSequence=e,this.sequenceIndex=t,this.state=d.SpecialStartSequence}stateBeforeTagName(e){if(e===c.ExclamationMark)this.state=d.BeforeDeclaration,this.sectionStart=this.index+1;else if(e===c.Questionmark)this.state=d.InProcessingInstruction,this.sectionStart=this.index+1;else if(this.isTagStartChar(e)){let t=32|e;this.sectionStart=this.index,this.xmlMode?this.state=d.InTagName:t===b.ScriptEnd[2]?this.state=d.BeforeSpecialS:t===b.TitleEnd[2]?this.state=d.BeforeSpecialT:this.state=d.InTagName}else e===c.Slash?this.state=d.BeforeClosingTagName:(this.state=d.Text,this.stateText(e))}stateInTagName(e){v(e)&&(this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=d.BeforeAttributeName,this.stateBeforeAttributeName(e))}stateBeforeClosingTagName(e){m(e)||(e===c.Gt?this.state=d.Text:(this.state=this.isTagStartChar(e)?d.InClosingTagName:d.InSpecialComment,this.sectionStart=this.index))}stateInClosingTagName(e){(e===c.Gt||m(e))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=d.AfterClosingTagName,this.stateAfterClosingTagName(e))}stateAfterClosingTagName(e){(e===c.Gt||this.fastForwardTo(c.Gt))&&(this.state=d.Text,this.sectionStart=this.index+1)}stateBeforeAttributeName(e){e===c.Gt?(this.cbs.onopentagend(this.index),this.isSpecial?(this.state=d.InSpecialTag,this.sequenceIndex=0):this.state=d.Text,this.sectionStart=this.index+1):e===c.Slash?this.state=d.InSelfClosingTag:m(e)||(this.state=d.InAttributeName,this.sectionStart=this.index)}stateInSelfClosingTag(e){e===c.Gt?(this.cbs.onselfclosingtag(this.index),this.state=d.Text,this.sectionStart=this.index+1,this.isSpecial=!1):m(e)||(this.state=d.BeforeAttributeName,this.stateBeforeAttributeName(e))}stateInAttributeName(e){(e===c.Eq||v(e))&&(this.cbs.onattribname(this.sectionStart,this.index),this.sectionStart=this.index,this.state=d.AfterAttributeName,this.stateAfterAttributeName(e))}stateAfterAttributeName(e){e===c.Eq?this.state=d.BeforeAttributeValue:e===c.Slash||e===c.Gt?(this.cbs.onattribend(u.NoValue,this.sectionStart),this.sectionStart=-1,this.state=d.BeforeAttributeName,this.stateBeforeAttributeName(e)):m(e)||(this.cbs.onattribend(u.NoValue,this.sectionStart),this.state=d.InAttributeName,this.sectionStart=this.index)}stateBeforeAttributeValue(e){e===c.DoubleQuote?(this.state=d.InAttributeValueDq,this.sectionStart=this.index+1):e===c.SingleQuote?(this.state=d.InAttributeValueSq,this.sectionStart=this.index+1):m(e)||(this.sectionStart=this.index,this.state=d.InAttributeValueNq,this.stateInAttributeValueNoQuotes(e))}handleInAttributeValue(e,t){e===t||!this.decodeEntities&&this.fastForwardTo(t)?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(t===c.DoubleQuote?u.Double:u.Single,this.index+1),this.state=d.BeforeAttributeName):this.decodeEntities&&e===c.Amp&&this.startEntity()}stateInAttributeValueDoubleQuotes(e){this.handleInAttributeValue(e,c.DoubleQuote)}stateInAttributeValueSingleQuotes(e){this.handleInAttributeValue(e,c.SingleQuote)}stateInAttributeValueNoQuotes(e){m(e)||e===c.Gt?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(u.Unquoted,this.index),this.state=d.BeforeAttributeName,this.stateBeforeAttributeName(e)):this.decodeEntities&&e===c.Amp&&this.startEntity()}stateBeforeDeclaration(e){e===c.OpeningSquareBracket?(this.state=d.CDATASequence,this.sequenceIndex=0):this.state=e===c.Dash?d.BeforeComment:d.InDeclaration}stateInDeclaration(e){(e===c.Gt||this.fastForwardTo(c.Gt))&&(this.cbs.ondeclaration(this.sectionStart,this.index),this.state=d.Text,this.sectionStart=this.index+1)}stateInProcessingInstruction(e){(e===c.Gt||this.fastForwardTo(c.Gt))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=d.Text,this.sectionStart=this.index+1)}stateBeforeComment(e){e===c.Dash?(this.state=d.InCommentLike,this.currentSequence=b.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=d.InDeclaration}stateInSpecialComment(e){(e===c.Gt||this.fastForwardTo(c.Gt))&&(this.cbs.oncomment(this.sectionStart,this.index,0),this.state=d.Text,this.sectionStart=this.index+1)}stateBeforeSpecialS(e){let t=32|e;t===b.ScriptEnd[3]?this.startSpecial(b.ScriptEnd,4):t===b.StyleEnd[3]?this.startSpecial(b.StyleEnd,4):(this.state=d.InTagName,this.stateInTagName(e))}stateBeforeSpecialT(e){let t=32|e;t===b.TitleEnd[3]?this.startSpecial(b.TitleEnd,4):t===b.TextareaEnd[3]?this.startSpecial(b.TextareaEnd,4):(this.state=d.InTagName,this.stateInTagName(e))}startEntity(){this.baseState=this.state,this.state=d.InEntity,this.entityStart=this.index,this.entityDecoder.startEntity(this.xmlMode?g.SX.Strict:this.baseState===d.Text||this.baseState===d.InSpecialTag?g.SX.Legacy:g.SX.Attribute)}stateInEntity(){let e=this.entityDecoder.write(this.buffer,this.index-this.offset);e>=0?(this.state=this.baseState,0===e&&(this.index=this.entityStart)):this.index=this.offset+this.buffer.length-1}cleanup(){this.running&&this.sectionStart!==this.index&&(this.state===d.Text||this.state===d.InSpecialTag&&0===this.sequenceIndex?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===d.InAttributeValueDq||this.state===d.InAttributeValueSq||this.state===d.InAttributeValueNq)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))}shouldContinue(){return this.index<this.buffer.length+this.offset&&this.running}parse(){for(;this.shouldContinue();){let e=this.buffer.charCodeAt(this.index-this.offset);switch(this.state){case d.Text:this.stateText(e);break;case d.SpecialStartSequence:this.stateSpecialStartSequence(e);break;case d.InSpecialTag:this.stateInSpecialTag(e);break;case d.CDATASequence:this.stateCDATASequence(e);break;case d.InAttributeValueDq:this.stateInAttributeValueDoubleQuotes(e);break;case d.InAttributeName:this.stateInAttributeName(e);break;case d.InCommentLike:this.stateInCommentLike(e);break;case d.InSpecialComment:this.stateInSpecialComment(e);break;case d.BeforeAttributeName:this.stateBeforeAttributeName(e);break;case d.InTagName:this.stateInTagName(e);break;case d.InClosingTagName:this.stateInClosingTagName(e);break;case d.BeforeTagName:this.stateBeforeTagName(e);break;case d.AfterAttributeName:this.stateAfterAttributeName(e);break;case d.InAttributeValueSq:this.stateInAttributeValueSingleQuotes(e);break;case d.BeforeAttributeValue:this.stateBeforeAttributeValue(e);break;case d.BeforeClosingTagName:this.stateBeforeClosingTagName(e);break;case d.AfterClosingTagName:this.stateAfterClosingTagName(e);break;case d.BeforeSpecialS:this.stateBeforeSpecialS(e);break;case d.BeforeSpecialT:this.stateBeforeSpecialT(e);break;case d.InAttributeValueNq:this.stateInAttributeValueNoQuotes(e);break;case d.InSelfClosingTag:this.stateInSelfClosingTag(e);break;case d.InDeclaration:this.stateInDeclaration(e);break;case d.BeforeDeclaration:this.stateBeforeDeclaration(e);break;case d.BeforeComment:this.stateBeforeComment(e);break;case d.InProcessingInstruction:this.stateInProcessingInstruction(e);break;case d.InEntity:this.stateInEntity()}this.index++}this.cleanup()}finish(){this.state===d.InEntity&&(this.entityDecoder.end(),this.state=this.baseState),this.handleTrailingData(),this.cbs.onend()}handleTrailingData(){let e=this.buffer.length+this.offset;this.sectionStart>=e||(this.state===d.InCommentLike?this.currentSequence===b.CdataEnd?this.cbs.oncdata(this.sectionStart,e,0):this.cbs.oncomment(this.sectionStart,e,0):this.state===d.InTagName||this.state===d.BeforeAttributeName||this.state===d.BeforeAttributeValue||this.state===d.AfterAttributeName||this.state===d.InAttributeName||this.state===d.InAttributeValueSq||this.state===d.InAttributeValueDq||this.state===d.InAttributeValueNq||this.state===d.InClosingTagName||this.cbs.ontext(this.sectionStart,e))}emitCodePoint(e,t){this.baseState!==d.Text&&this.baseState!==d.InSpecialTag?(this.sectionStart<this.entityStart&&this.cbs.onattribdata(this.sectionStart,this.entityStart),this.sectionStart=this.entityStart+t,this.index=this.sectionStart-1,this.cbs.onattribentity(e)):(this.sectionStart<this.entityStart&&this.cbs.ontext(this.sectionStart,this.entityStart),this.sectionStart=this.entityStart+t,this.index=this.sectionStart-1,this.cbs.ontextentity(e,this.sectionStart))}}let w=new Set(["input","option","optgroup","select","button","datalist","textarea"]),_=new Set(["p"]),x=new Set(["thead","tbody"]),S=new Set(["dd","dt"]),C=new Set(["rt","rp"]),k=new Map([["tr",new Set(["tr","th","td"])],["th",new Set(["th"])],["td",new Set(["thead","th","td"])],["body",new Set(["head","link","script"])],["li",new Set(["li"])],["p",_],["h1",_],["h2",_],["h3",_],["h4",_],["h5",_],["h6",_],["select",w],["input",w],["output",w],["button",w],["datalist",w],["textarea",w],["option",new Set(["option"])],["optgroup",new Set(["optgroup","option"])],["dd",S],["dt",S],["address",_],["article",_],["aside",_],["blockquote",_],["details",_],["div",_],["dl",_],["fieldset",_],["figcaption",_],["figure",_],["footer",_],["form",_],["header",_],["hr",_],["main",_],["nav",_],["ol",_],["pre",_],["section",_],["table",_],["ul",_],["rt",C],["rp",C],["tbody",x],["tfoot",x]]),I=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]),A=new Set(["math","svg"]),T=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignobject","desc","title"]),E=/\s|\//;class R{constructor(e,t={}){var i,n,o,r,a,s;this.options=t,this.startIndex=0,this.endIndex=0,this.openTagStart=0,this.tagname="",this.attribname="",this.attribvalue="",this.attribs=null,this.stack=[],this.buffers=[],this.bufferOffset=0,this.writeIndex=0,this.ended=!1,this.cbs=null!=e?e:{},this.htmlMode=!this.options.xmlMode,this.lowerCaseTagNames=null!=(i=t.lowerCaseTags)?i:this.htmlMode,this.lowerCaseAttributeNames=null!=(n=t.lowerCaseAttributeNames)?n:this.htmlMode,this.recognizeSelfClosing=null!=(o=t.recognizeSelfClosing)?o:!this.htmlMode,this.tokenizer=new(null!=(r=t.Tokenizer)?r:y)(this.options,this),this.foreignContext=[!this.htmlMode],null==(s=(a=this.cbs).onparserinit)||s.call(a,this)}ontext(e,t){var i,n;let o=this.getSlice(e,t);this.endIndex=t-1,null==(n=(i=this.cbs).ontext)||n.call(i,o),this.startIndex=t}ontextentity(e,t){var i,n;this.endIndex=t-1,null==(n=(i=this.cbs).ontext)||n.call(i,(0,g.bg)(e)),this.startIndex=t}isVoidElement(e){return this.htmlMode&&I.has(e)}onopentagname(e,t){this.endIndex=t;let i=this.getSlice(e,t);this.lowerCaseTagNames&&(i=i.toLowerCase()),this.emitOpenTag(i)}emitOpenTag(e){var t,i,n,o;this.openTagStart=this.startIndex,this.tagname=e;let r=this.htmlMode&&k.get(e);if(r)for(;this.stack.length>0&&r.has(this.stack[0]);){let e=this.stack.shift();null==(i=(t=this.cbs).onclosetag)||i.call(t,e,!0)}!this.isVoidElement(e)&&(this.stack.unshift(e),this.htmlMode&&(A.has(e)?this.foreignContext.unshift(!0):T.has(e)&&this.foreignContext.unshift(!1))),null==(o=(n=this.cbs).onopentagname)||o.call(n,e),this.cbs.onopentag&&(this.attribs={})}endOpenTag(e){var t,i;this.startIndex=this.openTagStart,this.attribs&&(null==(i=(t=this.cbs).onopentag)||i.call(t,this.tagname,this.attribs,e),this.attribs=null),this.cbs.onclosetag&&this.isVoidElement(this.tagname)&&this.cbs.onclosetag(this.tagname,!0),this.tagname=""}onopentagend(e){this.endIndex=e,this.endOpenTag(!1),this.startIndex=e+1}onclosetag(e,t){var i,n,o,r,a,s,l,c;this.endIndex=t;let d=this.getSlice(e,t);if(this.lowerCaseTagNames&&(d=d.toLowerCase()),this.htmlMode&&(A.has(d)||T.has(d))&&this.foreignContext.shift(),this.isVoidElement(d))this.htmlMode&&"br"===d&&(null==(r=(o=this.cbs).onopentagname)||r.call(o,"br"),null==(s=(a=this.cbs).onopentag)||s.call(a,"br",{},!0),null==(c=(l=this.cbs).onclosetag)||c.call(l,"br",!1));else{let e=this.stack.indexOf(d);if(-1!==e)for(let t=0;t<=e;t++){let o=this.stack.shift();null==(n=(i=this.cbs).onclosetag)||n.call(i,o,t!==e)}else this.htmlMode&&"p"===d&&(this.emitOpenTag("p"),this.closeCurrentTag(!0))}this.startIndex=t+1}onselfclosingtag(e){this.endIndex=e,this.recognizeSelfClosing||this.foreignContext[0]?(this.closeCurrentTag(!1),this.startIndex=e+1):this.onopentagend(e)}closeCurrentTag(e){var t,i;let n=this.tagname;this.endOpenTag(e),this.stack[0]===n&&(null==(i=(t=this.cbs).onclosetag)||i.call(t,n,!e),this.stack.shift())}onattribname(e,t){this.startIndex=e;let i=this.getSlice(e,t);this.attribname=this.lowerCaseAttributeNames?i.toLowerCase():i}onattribdata(e,t){this.attribvalue+=this.getSlice(e,t)}onattribentity(e){this.attribvalue+=(0,g.bg)(e)}onattribend(e,t){var i,n;this.endIndex=t,null==(n=(i=this.cbs).onattribute)||n.call(i,this.attribname,this.attribvalue,e===u.Double?'"':e===u.Single?"'":e===u.NoValue?void 0:null),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribvalue=""}getInstructionName(e){let t=e.search(E),i=t<0?e:e.substr(0,t);return this.lowerCaseTagNames&&(i=i.toLowerCase()),i}ondeclaration(e,t){this.endIndex=t;let i=this.getSlice(e,t);if(this.cbs.onprocessinginstruction){let e=this.getInstructionName(i);this.cbs.onprocessinginstruction(`!${e}`,`!${i}`)}this.startIndex=t+1}onprocessinginstruction(e,t){this.endIndex=t;let i=this.getSlice(e,t);if(this.cbs.onprocessinginstruction){let e=this.getInstructionName(i);this.cbs.onprocessinginstruction(`?${e}`,`?${i}`)}this.startIndex=t+1}oncomment(e,t,i){var n,o,r,a;this.endIndex=t,null==(o=(n=this.cbs).oncomment)||o.call(n,this.getSlice(e,t-i)),null==(a=(r=this.cbs).oncommentend)||a.call(r),this.startIndex=t+1}oncdata(e,t,i){var n,o,r,a,s,l,c,d,u,h;this.endIndex=t;let p=this.getSlice(e,t-i);!this.htmlMode||this.options.recognizeCDATA?(null==(o=(n=this.cbs).oncdatastart)||o.call(n),null==(a=(r=this.cbs).ontext)||a.call(r,p),null==(l=(s=this.cbs).oncdataend)||l.call(s)):(null==(d=(c=this.cbs).oncomment)||d.call(c,`[CDATA[${p}]]`),null==(h=(u=this.cbs).oncommentend)||h.call(u)),this.startIndex=t+1}onend(){var e,t;if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(let e=0;e<this.stack.length;e++)this.cbs.onclosetag(this.stack[e],!0)}null==(t=(e=this.cbs).onend)||t.call(e)}reset(){var e,t,i,n;null==(t=(e=this.cbs).onreset)||t.call(e),this.tokenizer.reset(),this.tagname="",this.attribname="",this.attribs=null,this.stack.length=0,this.startIndex=0,this.endIndex=0,null==(n=(i=this.cbs).onparserinit)||n.call(i,this),this.buffers.length=0,this.foreignContext.length=0,this.foreignContext.unshift(!this.htmlMode),this.bufferOffset=0,this.writeIndex=0,this.ended=!1}parseComplete(e){this.reset(),this.end(e)}getSlice(e,t){for(;e-this.bufferOffset>=this.buffers[0].length;)this.shiftBuffer();let i=this.buffers[0].slice(e-this.bufferOffset,t-this.bufferOffset);for(;t-this.bufferOffset>this.buffers[0].length;)this.shiftBuffer(),i+=this.buffers[0].slice(0,t-this.bufferOffset);return i}shiftBuffer(){this.bufferOffset+=this.buffers[0].length,this.writeIndex--,this.buffers.shift()}write(e){var t,i;if(this.ended){null==(i=(t=this.cbs).onerror)||i.call(t,Error(".write() after done!"));return}this.buffers.push(e),this.tokenizer.running&&(this.tokenizer.write(e),this.writeIndex++)}end(e){var t,i;if(this.ended){null==(i=(t=this.cbs).onerror)||i.call(t,Error(".end() after done!"));return}e&&this.write(e),this.ended=!0,this.tokenizer.end()}pause(){this.tokenizer.pause()}resume(){for(this.tokenizer.resume();this.tokenizer.running&&this.writeIndex<this.buffers.length;)this.tokenizer.write(this.buffers[this.writeIndex++]);this.ended&&this.tokenizer.end()}parseChunk(e){this.write(e)}done(e){this.end(e)}}(s=h||(h={})).Root="root",s.Text="text",s.Directive="directive",s.Comment="comment",s.Script="script",s.Style="style",s.Tag="tag",s.CDATA="cdata",s.Doctype="doctype",h.Root,h.Text,h.Directive,h.Comment,h.Script,h.Style,h.Tag,h.CDATA,h.Doctype,i(99762),["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e]),["definitionURL","attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e]),(l=p||(p={}))[l.DISCONNECTED=1]="DISCONNECTED",l[l.PRECEDING=2]="PRECEDING",l[l.FOLLOWING=4]="FOLLOWING",l[l.CONTAINS=8]="CONTAINS",l[l.CONTAINED_BY=16]="CONTAINED_BY";var D=i(54730),O=i(70243);let M=["class","style"],N={parseTags:{type:(0,O.C)(Array),default:()=>["br","li","ul","ol","a","span","b","p"]},allowAttrs:{type:(0,O.C)(Array),default:()=>[]},stopPropagation:{type:Boolean,default:!1},linkTags:{type:(0,O.C)(Array),default:()=>["a","span"]},text:{type:String,default:""}},P=(e,t,i)=>{let n=[],o=[];return new R({onopentag(e,r){if(!t.parseTags.includes(e))return;let a=n.length>0?n[n.length-1]:null,s=((e,n,o)=>{let r=Object.entries(n).reduce((e,i)=>{let[n,o]=i;return(t.allowAttrs.includes(n)||M.includes(n))&&(e[n]=o),e},{});return o?{name:e,rawProps:{attrs:r,on:{click:e=>{t.stopPropagation&&e.stopPropagation(),(0,f.j8)(i,"click-link",n["link-id"],r)}}},children:[]}:{name:e,rawProps:{attrs:r},children:[]}})(e,r,t.linkTags.includes(e));a?a.children.push(s):o.push(s),n.push(s)},ontext(e){let t=n.length>0?n[n.length-1]:null;t?t.children.push(e):o.push(e)},onclosetag(e){t.parseTags.includes(e)&&n.pop()}}).write(t.text),o.map(t=>(function e(t,i){if((0,D.HD)(i))return i;let{name:n,rawProps:o,children:r}=i;return(0,f.h)(t,n,o,r.map(i=>e(t,i)))})(e,t))};(n=function(e,t){return P(void 0,e,t)}).componentName="RichText",n.props=N,n.emits=["click-link"]},46001:function(e,t,i){"use strict";i.d(t,{Z:()=>f});var n=i(63707),o=i(7135),r=i(12592),a=i(31755),s=i(91229),l=i(54730),c=i(71367),d=i(39693),u=i(63447),h=i(70243),p=(0,u.defineComponent)({name:"Scrollbar",mixins:[(0,a.J)("adaptive-container")],props:{viewTag:{type:String,default:"div"},hasPadding:{type:Boolean,default:!1},viewStyle:{type:(0,h.C)([String,Array,Object]),default:""},viewClass:{type:(0,h.C)([String,Array,Object]),default:""},innerStyle:{type:(0,h.C)([String,Array,Object]),default:""},innerClass:{type:(0,h.C)([String,Array,Object]),default:""},minYRailHeight:{type:Number,default:0},minYBarHeight:{type:Number,default:12},minXRailWidth:{type:Number,default:0},minXBarWidth:{type:Number,default:12},showXRail:{type:Boolean,default:!0},showYRail:{type:Boolean,default:!0},activeAdaptiveScrollbar:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},barHiddenUnderBreakpoint:{type:(0,h.C)([String,Boolean]),default:"xxs"},overscroll:{type:[String,Boolean],default:!1}},emits:["scroll","reach-top","reach-bottom","not-reach-top","not-reach-bottom","reach-left","reach-right","not-reach-left","not-reach-right","bar-pointer-down","rail-pointer-down"],data:()=>({disposedSwallowClick:null,viewCachedRect:null,hideBarWhenUnderBreakpoint:null,yBarHeight:0,yBarTop:0,xBarWidth:0,xBarLeft:0,yRailExists:!1,xRailExists:!1,reachTop:!0,reachLeft:!0,reachBottom:!1,reachRight:!1,yRailHeight:void 0,xRailWidth:void 0,barHidden:!1,keepBarShowing:!1}),computed:{wrapperCls(){let e=this.xRailExists,t=this.yRailExists;return["v-scrollbar",{disabled:this.disabled,"with-padding":this.hasPadding,"is-active":e||t,"x-active":e,"y-active":t,"reach-top":this.reachTop,"reach-bottom":this.reachBottom,"reach-left":this.reachLeft,"reach-right":this.reachRight,[`overscroll-${this.overscroll}`]:this.overscroll}]},yBarStyle(){return{height:`${this.yBarHeight}px`,transform:`translate3d(0, ${this.yBarTop}px, 0)`}},xBarStyle(){return{width:`${this.xBarWidth}px`,transform:`translate3d(${this.xBarLeft}px, 0, 0)`}},realMinYBarHeight(){return this.$scrollbar?.minLength||this.minYBarHeight},realMinXBarWidth(){return this.$scrollbar?.minLength||this.minXBarWidth},hasYRail(){return this.yRailExists&&this.showYRail},hasXRail(){return this.xRailExists&&this.showXRail},xRailStyle(){return{width:`${this.xRailWidth}px`,minWidth:`${this.minXRailWidth}px`}},yRailStyle(){return{height:`${this.yRailHeight}px`,minHeight:`${this.minYRailHeight}px`}},barCls(){return{hidden:this.barHidden&&!this.keepBarShowing}}},watch:{async hasXRail(){await this.$nextTick(),this.updateRail()},async hasYRail(){await this.$nextTick(),this.updateRail()}},created(){this.hideBarWhenUnderBreakpoint=(0,s.Z)(()=>{this.barHiddenUnderBreakpoint&&this.$breakpointManager.lessAndEqThan(this.barHiddenUnderBreakpoint)&&(this.barHidden=!0)},500)},mounted(){(0,r.k)(this.$refs.inner,this.updateScroll,this),(0,r.k)(this.$refs.view,this.onViewResize,this),this.updateRail(),this.hideBarWhenUnderBreakpoint?.()},[n.mT.beforeUnmount](){(0,r.S)(this.$refs.inner,this.updateScroll),(0,r.S)(this.$refs.view,this.onViewResize)},methods:{showBar(){this.barHidden=!1},updateRail(){let e=this.viewCachedRect?.height??(this.$refs?.view).offsetHeight,t=this.viewCachedRect?.width??(this.$refs?.view).offsetWidth,i=this.$refs["y-rail"]?parseInt((0,o.iv)(this.$refs["y-rail"],"marginTop"),10):0,n=this.$refs["y-rail"]?parseInt((0,o.iv)(this.$refs["y-rail"],"marginBottom"),10):0,r=this.$refs["x-rail"]?parseInt((0,o.iv)(this.$refs["x-rail"],"marginRight"),10):0,a=this.$refs["x-rail"]?parseInt((0,o.iv)(this.$refs["x-rail"],"marginLeft"),10):0;this.yRailHeight=e-i-n,this.xRailWidth=t-a-r},onViewResize(){let e=this.$refs.view;e&&(this.viewCachedRect={height:e.offsetHeight,width:e.offsetWidth},this.updateRail(),this.updateScroll())},getAdaptiveContainer(){return this.activeAdaptiveScrollbar?this.$refs.inner:null},getScrollEl(){return this.$refs.view},isReachTop(){return 0===this.$refs.view.scrollTop},isReachBottom(){let e=this.$refs.view,t=this.viewCachedRect?.height??e.offsetHeight,i=e.scrollTop,n=e.scrollHeight;return i>=n-t-1||n<=t},isReachRight(){let e=this.$refs.view,t=this.viewCachedRect?.width??e.offsetWidth,i=e.scrollLeft,n=e.scrollWidth;return i>=n-t-1||n<=t},isReachLeft(){return 0===this.$refs.view.scrollLeft},updateScroll(){this.showBar(),(0,o.Wn)(()=>{let e=this.$refs.view;if(!e)return;let t=this.viewCachedRect?.height??e.offsetHeight,i=this.viewCachedRect?.width??e.offsetWidth,n=this.yRailHeight??t,o=this.xRailWidth??i,r=e.scrollHeight,a=e.scrollTop,s=e.scrollWidth,l=e.scrollLeft,d=this.isReachLeft(),u=this.isReachRight(),h=this.isReachTop(),p=this.isReachBottom();(0,c.Qy)(this,u?"reach-right":"not-reach-right"),(0,c.Qy)(this,d?"reach-left":"not-reach-left"),(0,c.Qy)(this,h?"reach-top":"not-reach-top"),(0,c.Qy)(this,p?"reach-bottom":"not-reach-bottom"),this.yRailExists=r>t,this.xRailExists=s>i,this.yBarHeight=Math.max(n*t/r,this.realMinYBarHeight),this.yBarTop=(n-this.yBarHeight)*a/(r-t),this.reachTop=h,this.reachBottom=p,this.xBarWidth=Math.max(o*i/s,this.realMinXBarWidth),this.xBarLeft=(o-this.xBarWidth)*l/(s-i),this.reachLeft=d,this.reachRight=u,this.hideBarWhenUnderBreakpoint?.()})},update(){this.updateScroll()},handleScroll(e){this.disabled||(this.updateScroll(),(0,c.Qy)(this,"scroll",e))},onBarPointerDown(e,t){if(this.disabled)return;let i=this.$refs.view,n=i.offsetHeight,r=i.offsetWidth,a=i.scrollHeight,s=i.scrollWidth,l=i.scrollTop,u=i.scrollLeft,h=(0,d.xp)(e),p=document.onselectstart,f=document.ondragstart;document.onselectstart=()=>!1,document.ondragstart=()=>!1,this.swallowClick(),this.keepBarShowing=!0;let g=e=>{e.preventDefault(),(0,o.Wn)(()=>{let i=this.$refs.view;if(!i)return;let[o,c]=(0,d.xp)(e),p=o-h[0],f=c-h[1];"y"===t?i.scrollTop=l+f*((a-n)/(n-this.yBarHeight)):"x"===t&&(i.scrollLeft=u+p*((s-r)/(r-this.xBarWidth)))})},m=e=>{e.stopPropagation(),(0,o.S1)(document.documentElement,"touchmove",g),(0,o.S1)(document.documentElement,"mousemove",g),document.onselectstart=p,document.ondragstart=f,window.setTimeout(()=>{this.disposedSwallowClick?.(),delete this.disposedSwallowClick},0),this.keepBarShowing=!1,this.hideBarWhenUnderBreakpoint?.()};(0,o.on)(document.documentElement,"touchmove",g,{passive:!1}),(0,o.on)(document.documentElement,"mousemove",g),(0,o.IH)(document.documentElement,"touchend",m),(0,o.IH)(document.documentElement,"mouseup",m),(0,c.Qy)(this,"bar-pointer-down",e,t)},swallowClick(){this.disposedSwallowClick||(this.disposedSwallowClick=(0,o.on)(document.documentElement,"click",e=>e.stopPropagation(),{capture:!0}))},onRailPointerDown(e,t){if(this.disabled)return;let i=this.$refs.view,n=i.offsetHeight,o=i.offsetWidth,r=e.target?.getBoundingClientRect(),a=i.scrollHeight,s=i.scrollWidth,l=(0,d.xp)(e);(this.showBar(),this.hideBarWhenUnderBreakpoint?.(),"y"===t)?i.scrollTop=(l[1]-r.top-this.yBarHeight/2)*a/n:"x"===t&&(i.scrollLeft=(l[0]-r.left-this.xBarWidth/2)*s/o),(0,c.Qy)(this,"rail-pointer-down",e,t)},ensureVisible(e){(0,o.X5)(e,{scrollMode:"if-needed",behavior:arguments.length>2&&void 0!==arguments[2]&&arguments[2]?"smooth":"auto"})},getScrollTop(){let e=this.$refs.view,t=e.scrollTop,i=this.viewCachedRect?.height??e.offsetHeight,n=e.scrollHeight;return t+i>n&&(t=n-i),t},getScrollLeft(){return this.$refs.view.scrollLeft},setScroll(e,t){let i=this.$refs.view;i&&((0,l.$K)(e)&&(i.scrollLeft=e),(0,l.$K)(t)&&(i.scrollTop=t))},resetScrollTop(){this.$refs.view.scrollTop=0},resetScrollLeft(){this.$refs.view.scrollLeft=0}}}),f=(0,i(66794).Z)(p,[["render",function(e,t,i,n,o,r){return(0,u.openBlock)(),(0,u.createElementBlock)("div",{ref:"scrollbar",class:(0,u.normalizeClass)(e.wrapperCls)},[((0,u.openBlock)(),(0,u.createBlock)((0,u.resolveDynamicComponent)(e.viewTag),{ref:"view",class:(0,u.normalizeClass)(["v-scrollbar-view",e.viewClass]),style:(0,u.normalizeStyle)(e.viewStyle),onScrollPassive:e.handleScroll},{default:(0,u.withCtx)(()=>[(0,u.createElementVNode)("div",{ref:"inner",class:(0,u.normalizeClass)(["v-scrollbar-inner",e.innerClass]),style:(0,u.normalizeStyle)(e.innerStyle)},[(0,u.renderSlot)(e.$slots,"default")],6)]),_:3},40,["class","style","onScrollPassive"])),e.hasYRail?((0,u.openBlock)(),(0,u.createElementBlock)("div",{key:0,ref:"y-rail",class:"y-rail rail",style:(0,u.normalizeStyle)(e.yRailStyle),onTouchstart:t[2]||(t[2]=t=>e.onRailPointerDown(t,"y")),onMousedown:t[3]||(t[3]=(0,u.withModifiers)(t=>e.onRailPointerDown(t,"y"),["stop"]))},[(0,u.createElementVNode)("div",{ref:"y-bar",class:(0,u.normalizeClass)(["y-bar bar",e.barCls]),style:(0,u.normalizeStyle)(e.yBarStyle),onTouchstart:t[0]||(t[0]=(0,u.withModifiers)(t=>e.onBarPointerDown(t,"y"),["stop"])),onMousedown:t[1]||(t[1]=(0,u.withModifiers)(t=>e.onBarPointerDown(t,"y"),["stop"]))},null,38)],36)):(0,u.createCommentVNode)("",!0),e.hasXRail?((0,u.openBlock)(),(0,u.createElementBlock)("div",{key:1,ref:"x-rail",class:"x-rail rail",style:(0,u.normalizeStyle)(e.xRailStyle),onTouchstart:t[6]||(t[6]=t=>e.onRailPointerDown(t,"x")),onMousedown:t[7]||(t[7]=(0,u.withModifiers)(t=>e.onRailPointerDown(t,"x"),["stop"]))},[(0,u.createElementVNode)("div",{ref:"x-bar",class:(0,u.normalizeClass)(["x-bar bar",e.barCls]),style:(0,u.normalizeStyle)(e.xBarStyle),onTouchstart:t[4]||(t[4]=(0,u.withModifiers)(t=>e.onBarPointerDown(t,"x"),["stop"])),onMousedown:t[5]||(t[5]=(0,u.withModifiers)(t=>e.onBarPointerDown(t,"x"),["stop"]))},null,38)],36)):(0,u.createCommentVNode)("",!0)],2)}]])},58148:function(e,t,i){"use strict";i.d(t,{Z:()=>f});var n=i(64794),o=i(49098),r=i(23886),a=i(54730),s=i(71367),l=i(63447),c=i(66794);let d=(0,l.defineComponent)({name:"SelectBaseOption",components:{vPortal:o.Z,vIcon:r.Z},directives:{tooltip:n.Z},props:{id:{type:String,default:void 0},option:{type:Object,default:()=>({})},display:{type:String,default:void 0},value:{type:[Number,String,Boolean],default:void 0},selectable:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},activated:{type:Boolean,default:!1},customClass:{type:[Array,Object,String],default:void 0},isSelected:{type:Boolean,default:void 0},tooltip:{type:[Boolean,Object],default:!1},active:{type:Function,default:a.ZT},hover:{type:Function,default:a.ZT},hoverOut:{type:Function,default:a.ZT},toggle:{type:Function,default:a.ZT},synoId:{type:String,default:""},useSynoId:{type:Boolean,default:!0}},emits:["click","active","hover","mouseenter","hover-out","mouseleave"],computed:{innerCls(){return["v-select2-dropdown-menu-item",this.customClass?this.customClass:"",{unselectable:!1===this.selectable,disabled:this.disabled,activated:this.activated,"is-selected":this.isSelected,"has-icon":!!this.option.icon}]},mergedTooltip(){if(!1===this.tooltip)return!1;let e=Object.assign({},this.tooltip);return!0===e.overflowOnly&&(e.overflowOnly=()=>this.$refs.text),e},innerIcon(){return(0,a.Kn)(this.option.icon)?this.option.icon:{name:this.option.icon}}},methods:{onClick(e){this.active(),(0,s.Qy)(this,"active",e),(0,s.Qy)(this,"click",e)},onHover(e){this.hover(),(0,s.Qy)(this,"hover",e),(0,s.Qy)(this,"mouseenter",e)},onHoverOut(e){this.hoverOut(),(0,s.Qy)(this,"hover-out",e),(0,s.Qy)(this,"mouseleave",e)}}}),u=["id","syno-id","aria-selected"],h={key:1,class:"item-desc"},p={class:"item-suffix"};var f=(0,c.Z)(d,[["render",function(e,t,i,n,o,r){let a=(0,l.resolveComponent)("v-portal"),s=(0,l.resolveComponent)("v-icon"),c=(0,l.resolveDirective)("tooltip");return(0,l.withDirectives)(((0,l.openBlock)(),(0,l.createElementBlock)("li",{id:e.id,"syno-id":`${e.synoId}-option-${e.value}`,style:{"user-select":"none"},class:(0,l.normalizeClass)(e.innerCls),role:"option","aria-selected":e.activated,onClick:t[0]||(t[0]=function(){return e.onClick&&e.onClick(...arguments)}),onMouseenter:t[1]||(t[1]=function(){return e.onHover&&e.onHover(...arguments)}),onMouseleave:t[2]||(t[2]=function(){return e.onHoverOut&&e.onHoverOut(...arguments)})},[e.mergedTooltip.usePortal?((0,l.openBlock)(),(0,l.createBlock)(a,{key:0,name:e.mergedTooltip.portalName,to:e.mergedTooltip.portalName},{default:(0,l.withCtx)(()=>[(0,l.renderSlot)(e.$slots,"tooltip-portal",{option:e.option})]),_:3},8,["name","to"])):(0,l.createCommentVNode)("",!0),(0,l.renderSlot)(e.$slots,"inner-option",{option:e.option},()=>[e.option.icon?((0,l.openBlock)(),(0,l.createBlock)(s,(0,l.mergeProps)({key:0,class:"item-icon"},e.innerIcon),null,16)):(0,l.createCommentVNode)("",!0),(0,l.createElementVNode)("span",{ref:"text",class:"option-text"},(0,l.toDisplayString)(e.display),513),e.option.desc?((0,l.openBlock)(),(0,l.createElementBlock)("span",h,(0,l.toDisplayString)(e.option.desc),1)):(0,l.createCommentVNode)("",!0),(0,l.createElementVNode)("div",p,[(0,l.renderSlot)(e.$slots,"suffix",{option:e.option})])])],42,u)),[[c,e.mergedTooltip]])}]])},72914:function(e,t,i){"use strict";i.d(t,{Z:()=>eh}),i(95790),i(2850),i(95922);var n=i(7135);i(53346),i(5556);var o=i(63707),r=i(54730),a=i(83717),s=i(47696),l=i(74318),c=i(2176),d=i(64794),u=i(65698),h=i(39693),p=i(9022),f=i(74999),g=i(23886),m=i(71367),v=i(18954),b=i(63447),y=i(66794);(0,p.z)("select-adjust",f.DI),(0,p.z)("select-dropdown",f.Zt),(0,p.z)("select-clear",f.xo);let w=(0,b.defineComponent)({name:"SelectInput",components:{vIcon:g.Z},directives:{tooltip:d.Z},mixins:[p.Z],props:{clearIconCls:{type:Array,default:()=>[]},searchIconCls:{type:Array,default:()=>[]},allowClear:{type:Boolean,default:!1},allowEdit:{type:Boolean,default:!1},[v.yz.value()]:{type:String,default:""},inputTooltip:{type:[Object,String,Boolean],default:()=>({disabled:!0})},clearable:{type:Boolean,default:!1},hideTrigger:{type:Boolean,default:void 0},placeholder:{type:String,default:""},inputAttrs:{type:Object,default:()=>{}},openDropdown:{type:Function,default:r.ZT},toggleDropdown:{type:Function,default:r.ZT},closeDropdown:{type:Function,default:r.ZT},advanced:{type:Boolean,default:!1},hasRightAdvIcon:{type:Boolean,default:!1},displayField:{type:String,default:"label"},valueField:{type:String,default:"value"},triggerQueryAction:{type:String,default:"all"},autoOpenDropdownCharCount:{type:Number,default:-1},toggleDropdownOnClick:{type:Boolean,default:!0},mode:{type:String,default:"normal"},selectedOption:{type:Object,default:()=>({})},displayTextFormat:{type:Object,default:()=>({key:void 0,group:"{group}:{option}",option:"{option}",delimiter:","})},displayMode:{type:String,default:"none",validator:e=>["text","none","html"].includes(e)},groupOptions:{type:Object,default:()=>({})},enterKeyHint:{type:String,default:void 0},disabled:{type:Boolean,default:!1},hasPrefix:{type:Boolean,default:!1},hasSuffix:{type:Boolean,default:!1},dropdownShown:{type:Boolean,default:!1}},emits:["click-icon","click-advanced-icon","keydown","focus","blur","clear","update:model-value","arrow-up","arrow-down","key-enter","key-esc"],data:()=>({focused:!1}),computed:{textDisplayCls(){return["v-select2-text-display","v-select2-input",{placeholder:this.showPlaceholder}]},showPlaceholder(){return!this.display},display(){let{group:e,option:t,key:i}=this.displayTextFormat,n=this.selectedOption;if(!n)return"";(0,r.$K)(i)||(i=this.displayField);let o="";return n.inGroup?e.replace("{group}",this.groupOptions[n.inGroup][i]||"").replace("{option}",n[i]||""):t.replace("{option}",n[i]||"")},isTextDisplayMode(){return"text"===this.displayMode},isHtmlDisplayMode(){return"html"===this.displayMode},isLabelDisplayMode(){return"label"===this.displayMode},isNoneDisplayMode(){return"none"===this.displayMode},innerVal(){return(0,v.eQ)(this)},innerHasSuffix(){return this.hasSuffix||this.hasClearIcon||this.hasRightAdvIcon||this.hasTriggerIcon},hasClearIcon(){return this.allowClear&&this.focused},hasTriggerIcon(){return!this.hideTrigger},prefixCls(){return{"prefix-wrapper--has-icon":this.hasPrefix}},suffixCls(){return{"suffix-wrapper--has-icon":!this.hasTriggerIcon&&(this.hasClearIcon||this.hasRightAdvIcon||this.hasSuffix)}}},methods:{canOpenDropdown(e){return!(-1!==this.autoOpenDropdownCharCount&&this.autoOpenDropdownCharCount>this.getInputEl().value.length)},getInputEl(){return this.$refs.input},onInput(e){this.canOpenDropdown()?this.openDropdown("keyword"):this.closeDropdown(),(0,m.Qy)(this,(0,v.ef)(),e.target.value)},onKeyDown(e){this.advanced||((0,h.tH)(e)?((0,m.Qy)(this,"key-enter"),e.preventDefault(),e.stopPropagation()):(0,h.j2)(e)?((0,m.Qy)(this,"key-esc"),this.dropdownShown&&(this.closeDropdown(),e.stopPropagation())):((0,h.Tx)(e)?((0,m.Qy)(this,"arrow-up"),e.preventDefault()):(0,h.BU)(e)&&((0,m.Qy)(this,"arrow-down"),e.preventDefault()),e.stopPropagation()),(0,m.Qy)(this,"keydown",e))},onClick(){this.toggleDropdownOnClick&&this.toggleDropdown(this.triggerQueryAction)},focus(){this.$refs.input.focus()},selectInput(){this.$refs.input&&this.$refs.input.select&&this.$refs.input.select()},onFocus(e){this.focused=!0,(0,m.Qy)(this,"focus",e)},onBlur(e){this.focused=!1,(0,m.Qy)(this,"blur",e)},onClear(e){(0,m.Qy)(this,"clear"),this.focus(),e.preventDefault()}}}),_={class:"input-wrapper"},x={class:"v-select-ul-wrap"},S=["data-placeholder"],C=["innerHTML"],k=["value","enterkeyhint","placeholder"];var I=(0,y.Z)(w,[["render",function(e,t,i,n,o,r){let a=(0,b.resolveComponent)("v-icon"),s=(0,b.resolveDirective)("tooltip");return(0,b.openBlock)(),(0,b.createElementBlock)("div",_,[e.hasPrefix?((0,b.openBlock)(),(0,b.createElementBlock)("span",{key:0,class:(0,b.normalizeClass)(["prefix-wrapper",e.prefixCls])},[(0,b.renderSlot)(e.$slots,"prefix")],2)):(0,b.createCommentVNode)("",!0),(0,b.createElementVNode)("ul",x,[e.isTextDisplayMode||e.isHtmlDisplayMode?(0,b.withDirectives)(((0,b.openBlock)(),(0,b.createElementBlock)("div",{key:0,ref:"input",class:(0,b.normalizeClass)([e.textDisplayCls,"v-select2-text-display v-select2-input select-input"]),"data-placeholder":e.placeholder,tabindex:"-1",onFocus:t[0]||(t[0]=function(){return e.onFocus&&e.onFocus(...arguments)}),onBlur:t[1]||(t[1]=function(){return e.onBlur&&e.onBlur(...arguments)}),onKeydown:t[2]||(t[2]=function(){return e.onKeyDown&&e.onKeyDown(...arguments)})},[e.isHtmlDisplayMode?((0,b.openBlock)(),(0,b.createElementBlock)("div",{key:0,innerHTML:e.showPlaceholder?e.placeholder:e.display},null,8,C)):e.isTextDisplayMode?((0,b.openBlock)(),(0,b.createElementBlock)(b.Fragment,{key:1},[(0,b.createTextVNode)((0,b.toDisplayString)(e.showPlaceholder?e.placeholder:e.display),1)],64)):(0,b.createCommentVNode)("",!0)],42,S)),[[s,{overflowOnly:!0,content:e.display}]]):e.isNoneDisplayMode?(0,b.withDirectives)(((0,b.openBlock)(),(0,b.createElementBlock)("input",(0,b.mergeProps)({key:1,ref:"input"},e.inputAttrs,{value:e.innerVal,enterkeyhint:e.enterKeyHint,class:"v-select2-input select-input",placeholder:e.placeholder,onInput:t[3]||(t[3]=function(){return e.onInput&&e.onInput(...arguments)}),onFocus:t[4]||(t[4]=function(){return e.onFocus&&e.onFocus(...arguments)}),onBlur:t[5]||(t[5]=function(){return e.onBlur&&e.onBlur(...arguments)}),onKeydown:t[6]||(t[6]=function(){return e.onKeyDown&&e.onKeyDown(...arguments)}),onClick:t[7]||(t[7]=(0,b.withModifiers)(function(){return e.onClick&&e.onClick(...arguments)},["stop"]))}),null,16,k)),[[s,e.inputTooltip]]):(0,b.createCommentVNode)("",!0)]),e.innerHasSuffix?((0,b.openBlock)(),(0,b.createElementBlock)("span",{key:1,class:(0,b.normalizeClass)(["suffix-wrapper",e.suffixCls])},[e.hasClearIcon?((0,b.openBlock)(),(0,b.createBlock)(a,{key:0,name:"select-clear",class:(0,b.normalizeClass)(e.clearIconCls),"svg-icon-set":"set25",onMousedown:(0,b.withModifiers)(e.onClear,["stop"])},null,8,["class","onMousedown"])):(0,b.createCommentVNode)("",!0),e.hasRightAdvIcon?((0,b.openBlock)(),(0,b.createBlock)(a,{key:1,name:"select-adjust",class:(0,b.normalizeClass)(e.searchIconCls),"svg-icon-set":"set13",disabled:e.disabled,onClick:t[8]||(t[8]=t=>e.$emit("click-advanced-icon"))},null,8,["class","disabled"])):(0,b.createCommentVNode)("",!0),e.hasTriggerIcon?((0,b.openBlock)(),(0,b.createBlock)(a,{key:2,name:"select-dropdown",class:"v-select2-dropdown-icon","svg-icon-set":"set12"})):(0,b.createCommentVNode)("",!0),(0,b.renderSlot)(e.$slots,"suffix")],2)):(0,b.createCommentVNode)("",!0)])}]]),A=i(58148),T=i(40172),E=i(49098);(0,p.z)("select-option-tick",f.E5),(0,p.z)("select-option-untick",r.js);let R=(0,b.defineComponent)({name:"SelectTickOption",components:{vIcon:g.Z,vPortal:E.Z},directives:{tooltip:d.Z},extends:A.Z,mixins:[p.Z],computed:{innerTickIcon(){return(0,T.Z)({name:this.isSelected?"select-option-tick":"select-option-untick",svgIconSet:"set03"},this.option?.tickIcon??{})},innerCls(){return["v-select2-dropdown-menu-item tick",this.customClass?this.customClass:"",{unselectable:!1===this.selectable,disabled:this.disabled,activated:this.activated,"is-selected":this.isSelected}]}}}),D=["id","syno-id","aria-selected"],O={class:"item-suffix"};var M=(0,y.Z)(R,[["render",function(e,t,i,n,o,r){let a=(0,b.resolveComponent)("v-portal"),s=(0,b.resolveComponent)("v-icon"),l=(0,b.resolveDirective)("tooltip");return(0,b.withDirectives)(((0,b.openBlock)(),(0,b.createElementBlock)("li",{id:e.id,"syno-id":`${e.synoId}-option-${e.value}`,style:{"user-select":"none"},class:(0,b.normalizeClass)(e.innerCls),unselectable:"unselectable",role:"option","aria-selected":e.activated,onClick:t[0]||(t[0]=function(){return e.onClick&&e.onClick(...arguments)}),onMouseenter:t[1]||(t[1]=function(){return e.onHover&&e.onHover(...arguments)}),onMouseleave:t[2]||(t[2]=function(){return e.onHoverOut&&e.onHoverOut(...arguments)})},[e.mergedTooltip.usePortal?((0,b.openBlock)(),(0,b.createBlock)(a,{key:0,name:e.mergedTooltip.portalName,to:e.mergedTooltip.portalName},{default:(0,b.withCtx)(()=>[(0,b.renderSlot)(e.$slots,"tooltip-portal",{option:e.option})]),_:3},8,["name","to"])):(0,b.createCommentVNode)("",!0),(0,b.renderSlot)(e.$slots,"inner-option",{option:e.option},()=>[(0,b.createVNode)(s,(0,b.normalizeProps)((0,b.guardReactiveProps)(e.innerTickIcon)),null,16),e.option.icon?((0,b.openBlock)(),(0,b.createBlock)(s,(0,b.mergeProps)({key:0,class:"item-icon"},e.innerIcon),null,16)):(0,b.createCommentVNode)("",!0),(0,b.createElementVNode)("span",{ref:"text",class:"option-text"},(0,b.toDisplayString)(e.display),513),(0,b.createElementVNode)("div",O,[(0,b.renderSlot)(e.$slots,"suffix",{option:e.option})])])],42,D)),[[l,e.mergedTooltip]])}]]);let N=(0,b.defineComponent)({name:"SelectCheckOption",components:{vPortal:E.Z,vIcon:g.Z},directives:{tooltip:d.Z},extends:A.Z,emits:["toggle"],computed:{innerCls(){return["v-select2-dropdown-menu-item check",this.customClass?this.customClass:"",{unselectable:!1===this.selectable,disabled:this.disabled,activated:this.activated,"is-selected":this.isSelected}]}},methods:{onToggle(e){this.toggle(),(0,m.Qy)(this,"toggle",e)}}}),P=["id","syno-id","aria-selected"],L={class:"item-suffix"};var B=(0,y.Z)(N,[["render",function(e,t,i,n,o,r){let a=(0,b.resolveComponent)("v-portal"),s=(0,b.resolveComponent)("v-icon"),l=(0,b.resolveDirective)("tooltip");return(0,b.withDirectives)(((0,b.openBlock)(),(0,b.createElementBlock)("li",{id:e.id,"syno-id":`${e.synoId}-option-${e.value}`,style:{"user-select":"none"},class:(0,b.normalizeClass)(e.innerCls),unselectable:"unselectable",role:"option","aria-selected":e.activated,onClick:t[0]||(t[0]=function(){return e.onToggle&&e.onToggle(...arguments)}),onMouseenter:t[1]||(t[1]=function(){return e.onHover&&e.onHover(...arguments)}),onMouseleave:t[2]||(t[2]=function(){return e.onHoverOut&&e.onHoverOut(...arguments)})},[e.mergedTooltip.usePortal?((0,b.openBlock)(),(0,b.createBlock)(a,{key:0,name:e.mergedTooltip.portalName,to:e.mergedTooltip.portalName},{default:(0,b.withCtx)(()=>[(0,b.renderSlot)(e.$slots,"tooltip-portal",{option:e.option})]),_:3},8,["name","to"])):(0,b.createCommentVNode)("",!0),(0,b.renderSlot)(e.$slots,"inner-option",{option:e.option},()=>[(0,b.createVNode)(s,{name:"checkbox-icon",sprite:""}),e.option.icon?((0,b.openBlock)(),(0,b.createBlock)(s,(0,b.mergeProps)({key:0,class:"item-icon"},e.innerIcon),null,16)):(0,b.createCommentVNode)("",!0),(0,b.createElementVNode)("span",{ref:"text",class:"option-text"},(0,b.toDisplayString)(e.display),513),(0,b.createElementVNode)("div",L,[(0,b.renderSlot)(e.$slots,"suffix",{option:e.option})])])],42,P)),[[l,e.mergedTooltip]])}]]);let F=(0,b.defineComponent)({name:"SelectDividerOption",extends:A.Z,methods:{}}),V={class:"v-select2-dropdown-divider"};var z=(0,y.Z)(F,[["render",function(e,t,i,n,o,r){return(0,b.openBlock)(),(0,b.createElementBlock)("div",V)}]]),H=(0,y.Z)((0,b.defineComponent)({name:"SelectNoMatchOption",extends:A.Z,data:()=>({}),computed:{innerCls:()=>["v-select2-dropdown-menu-item","not-found"],mergedTooltip(){return{content:this.display,overflowOnly:!0}}},methods:{}}),[["render",function(e,t,i,n,o,r){let a=(0,b.resolveDirective)("tooltip");return(0,b.withDirectives)(((0,b.openBlock)(),(0,b.createElementBlock)("li",{class:(0,b.normalizeClass)(e.innerCls)},[(0,b.createTextVNode)((0,b.toDisplayString)(e.display),1)],2)),[[a,e.mergedTooltip]])}]]);let W=(0,b.defineComponent)({name:"SelectGroupOption",extends:A.Z,computed:{innerCls(){return["v-select2-dropdown-menu-item-group-label",{unselectable:!1===this.selectable,[this.customClass]:!!this.customClass}]}},methods:{}}),Y=["syno-id"];var U=(0,y.Z)(W,[["render",function(e,t,i,n,o,r){return(0,b.openBlock)(),(0,b.createElementBlock)("li",{class:(0,b.normalizeClass)(e.innerCls),"syno-id":`${e.synoId}-option-${e.value}`},(0,b.toDisplayString)(e.display),11,Y)}]]),G=i(46001),Z=i(64535),j=i(3957);let q=0,K={TICK:"tick",CHECK:"check",BASE:"base"};var X=i(71283);let Q=(0,b.defineComponent)({name:"SelectDropdown",components:{vBaseOption:A.Z,vDividerOption:z,SpinIcon:j.Z,vGroupOption:U,vNoMatchOption:H},mixins:[{beforeCreate(){this.uuid=q.toString(),q++}},s.Z],props:{virtualScrollbar:{type:Boolean,default:!1},virtualItemHeight:{type:Number,default:28},virtualBufferSize:{type:Number,default:200},options:{type:Array,default:()=>[]},advanced:{type:Boolean,default:!1},dropdownCls:{type:Array,default:()=>[]},loading:{type:Boolean,default:!1},maxHeight:{type:[Number,String],default:184},notFoundText:{type:String,default:void 0},value:{type:[Array,Number,String,Boolean],default:""},displayField:{type:String,default:"label"},valueField:{type:String,default:"value"},getOptionTooltip:{type:Function,required:!0},loadingText:{type:String,default:void 0},useOptionSlot:{type:[Boolean,String],default:void 0},showNotFound:{type:Boolean,default:!0},defaultOption:{type:[Function,String],default:K.BASE}},emits:["blur","hover-index","select","toggle","shown"],data(){let e=0;return(0,r.kJ)(this.value)||-1===(e=this.findActiveIndexByValue(this.value))&&(e=0),{activeIndex:e,visible:!1}},computed:{innerNotFoundText(){return this.notFoundText??this._i18n("search","no_search_result")},scrollbar(){return this.virtualScrollbar?Z.Z:G.Z},optionsNum(){return this.showNotFound&&(!this.options||0===this.options.length)||this.loading?1:this.options.length},dropdownMenuWrapperStyle(){return this.virtualScrollbar?{visibility:this.visible?"visible":"hidden"}:{}},hasTopActionsSlot(){return(0,a._Y)(this,"top-actions")},hasBottomActionsSlot(){return(0,a._Y)(this,"bottom-actions")},listStyles(){return{maxHeight:(0,r.hj)(this.maxHeight)?this.maxHeight-16+"px":this.maxHeight}}},watch:{options(){this.virtualScrollbar&&this.$nextTick(()=>this.resetScroll()),!1===this.moveActiveIndex("none")&&this.moveActiveIndex("none",0)},loading(){this.virtualScrollbar&&this.$nextTick(()=>this.$refs.scrollbar.updateVisible())},activeIndex:{handler(e){this.$nextTick(()=>{(0,m.Qy)(this,"hover-index",e)})},immediate:!0}},mounted(){(0,m.Zn)(this,"shown",this.onShown)},methods:{onShown(){this.virtualScrollbar||(this.$refs?.scrollbar?.ensureVisible(this.$el),this.moveActiveIndex("none"))},onScrollbarVisible(){(0,m.Qy)(this,"scrollbar-visible"),this.$nextTick(()=>{this.visible=!0,this.moveActiveIndex("none")})},getVisibleOptions(e,t){let i=this.options.map((e,t)=>({index:t,option:e}));return this.virtualScrollbar&&(i=i.slice(e,t+1)),i},closeDropdown(){(0,m.Qy)(this,"close-dropdown")},clearSelection(){this.activeIndex=-1},useComponent(e){if((0,r.$K)(e.useComponent))return(0,r.mf)(e.useComponent)?e.useComponent():e.useComponent;if((0,r.HD)(this.defaultOption)){if(this.defaultOption===K.BASE)return A.Z;if(this.defaultOption===K.TICK)return M;if(this.defaultOption===K.CHECK)return B}return this.defaultOption?.()},getSlot(e){return e.useSlot||this.useOptionSlot},useSlot(e){return(0,r.$K)(e.useSlot)?!!e.useSlot:!!this.useOptionSlot},getOptionClass(e){return e.child&&(0,X.Rn)("option.child","option.indent",this),{[e.class]:!!e.class,indent:e.child||e.indent}},isOptionSelectable(e){let t=this.options[e];return!!t&&"-"!==t&&"group-label"!==t.type&&(!(0,r.$K)(t.selectable)||t.selectable)},isOptionSelected(e){return Array.isArray(this.value)?this.value.includes(e[this.valueField]):e[this.valueField]===this.value},findActiveIndexByValue(e){return this.options.findIndex(t=>t[this.valueField]===e)},setActiveIndex(e){let{ensureVisible:t=!0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e<0||e>=this.options.length||(this.activeIndex=e,t&&this.$nextTick(()=>this.ensureActiveIndexVisible()))},moveActiveIndex(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.activeIndex;if("up"===e){for(let e=t-1;e>=0;e--)if(this.isOptionSelectable(e))return this.setActiveIndex(e)}else if("down"===e){for(let e=t+1,i=this.options.length;e<i;e++)if(this.isOptionSelectable(e))return this.setActiveIndex(e)}else{for(let e=t,i=this.options.length;e<i;e++)if(this.isOptionSelectable(e))return this.setActiveIndex(e);this.clearSelection()}return!1},async ensureActiveIndexVisible(){let e=this.activeIndex,t=this.options[e];this.virtualScrollbar&&(this.$refs.scrollbar.scrollToIndex(e),await this.$nextTick());let i=this.$refs.dropdownMenu?.querySelector("#"+this.getOptionId(t));i&&this.$refs.scrollbar&&this.$refs.scrollbar.ensureVisible(i)},setActiveIndexByValue(e){this.activeIndex=this.options.findIndex(t=>t[this.valueField]===e)},getActiveIndex(){return this.activeIndex<0||this.options.length<=this.activeIndex?-1:this.activeIndex},getActiveOptionAria(){let e=this.getActiveOption();return e?this.getOptionId(e):""},getActiveOption(){return this.activeIndex<0||this.options.length<=this.activeIndex?null:this.options[this.activeIndex]},onHoverOption(e){this.activeIndex=e},onClickOption(e,t){-1!==t?!1!==e.selectable&&(0,m.Qy)(this,"select",t,e):this.clearSelection()},onToggleOption(e,t){-1!==t?!1!==e.selectable&&(0,m.Qy)(this,"toggle",t,e):this.clearSelection()},focus(){this.$refs.dropdown.focus()},resetScroll(){this.$refs.scrollbar&&(this.$refs.scrollbar.resetScrollTop(),this.$refs.scrollbar.update())},getOptionId(e){return(0,r.lV)(`option-${e[this.valueField]}-${this.uuid}`)}}}),$=["syno-id"],J={key:0,class:"v-select2-dropdown-loading-text",role:"menuitem","aria-selected":"false"};var ee=(0,y.Z)(Q,[["render",function(e,t,i,n,o,r){let a=(0,b.resolveComponent)("spin-icon"),s=(0,b.resolveComponent)("v-no-match-option"),l=(0,b.resolveComponent)("v-divider-option"),c=(0,b.resolveComponent)("v-group-option");return(0,b.openBlock)(),(0,b.createElementBlock)("div",{ref:"dropdown",tabindex:-1,class:"v-select2-dropdown-menu-wrapper",style:(0,b.normalizeStyle)(e.dropdownMenuWrapperStyle),onBlur:t[2]||(t[2]=t=>e.$emit("blur",t))},[(0,b.renderSlot)(e.$slots,"dropdown",{options:e.options},()=>[(0,b.createElementVNode)("div",{"syno-id":`${e.synoId}-dropdown-menu`,class:(0,b.normalizeClass)(e.dropdownCls)},[e.hasTopActionsSlot?((0,b.openBlock)(),(0,b.createElementBlock)("div",{key:0,onMouseenter:t[0]||(t[0]=t=>e.clearSelection())},[(0,b.renderSlot)(e.$slots,"top-actions")],32)):(0,b.createCommentVNode)("",!0),((0,b.openBlock)(),(0,b.createBlock)((0,b.resolveDynamicComponent)(e.scrollbar),{ref:"scrollbar",virtual:e.virtualScrollbar,"item-size":e.virtualItemHeight,total:e.optionsNum,"buffer-size":e.virtualBufferSize,onVisible:e.onScrollbarVisible},{default:(0,b.withCtx)(t=>{let{start:i,end:n}=t;return[(0,b.createElementVNode)("ul",{ref:"dropdownMenu",class:"v-select2-dropdown-menu",role:"listbox",style:(0,b.normalizeStyle)(e.listStyles)},[(0,b.renderSlot)(e.$slots,"before-options"),e.loading?((0,b.openBlock)(),(0,b.createElementBlock)("li",J,[(0,b.createVNode)(a),(0,b.createTextVNode)(" "+(0,b.toDisplayString)(e.loadingText),1)])):((0,b.openBlock)(),(0,b.createElementBlock)(b.Fragment,{key:1},[!e.showNotFound||e.options&&0!==e.options.length?(0,b.createCommentVNode)("",!0):(0,b.renderSlot)(e.$slots,"notfound-item",{key:0},()=>[((0,b.openBlock)(),(0,b.createBlock)(s,{key:"option-no-match",display:e.innerNotFoundText},null,8,["display"]))]),((0,b.openBlock)(!0),(0,b.createElementBlock)(b.Fragment,null,(0,b.renderList)(e.getVisibleOptions(i,n),t=>{let{option:i,index:n}=t;return(0,b.openBlock)(),(0,b.createElementBlock)(b.Fragment,null,[e.useSlot(i)?(0,b.renderSlot)(e.$slots,e.getSlot(i),{key:0,id:e.getOptionId(i),option:i,synoId:`${e.synoId}-option-${i[e.valueField]}`,display:i[e.displayField],value:i[e.valueField],disabled:i.disabled,activated:n===e.activeIndex,customClass:e.getOptionClass(i),isSelected:e.isOptionSelected(i),selectable:e.isOptionSelectable(n),tooltip:e.getOptionTooltip(i),active:()=>e.onClickOption(i,n),toggle:()=>e.onToggleOption(i,n),hover:()=>e.onHoverOption(n)}):"-"===i?((0,b.openBlock)(),(0,b.createBlock)(l,{key:`option-divider-${n}`})):"group-label"===i.type?((0,b.openBlock)(),(0,b.createBlock)(c,{key:i[e.displayField],display:i[e.displayField]},null,8,["display"])):((0,b.openBlock)(),(0,b.createBlock)((0,b.resolveDynamicComponent)(e.useComponent(i)),{id:e.getOptionId(i),ref_for:!0,ref:`option-${n}`,key:i[e.valueField],option:i,"syno-id":e.synoId,value:i[e.valueField],display:i[e.displayField],disabled:i.disabled,activated:n===e.activeIndex,"custom-class":e.getOptionClass(i),selectable:e.isOptionSelectable(n),"is-selected":e.isOptionSelected(i),tooltip:e.getOptionTooltip(i),active:()=>e.onClickOption(i,n),toggle:()=>e.onToggleOption(i,n),hover:()=>e.onHoverOption(n)},{"tooltip-portal":(0,b.withCtx)(t=>{let{option:i}=t;return[(0,b.renderSlot)(e.$slots,"tooltip-portal",{option:i})]}),"inner-option":(0,b.withCtx)(t=>{let{option:i}=t;return[(0,b.renderSlot)(e.$slots,"inner-option",{option:i})]}),suffix:(0,b.withCtx)(t=>{let{option:i}=t;return[(0,b.renderSlot)(e.$slots,"suffix",{option:i})]}),_:2},1032,["id","option","syno-id","value","display","disabled","activated","custom-class","selectable","is-selected","tooltip","active","toggle","hover"]))],64)}),256))],64)),(0,b.renderSlot)(e.$slots,"after-options")],4)]}),_:3},40,["virtual","item-size","total","buffer-size","onVisible"])),e.hasBottomActionsSlot?((0,b.openBlock)(),(0,b.createElementBlock)("div",{key:1,onMouseenter:t[1]||(t[1]=t=>e.clearSelection())},[(0,b.renderSlot)(e.$slots,"bottom-actions")],32)):(0,b.createCommentVNode)("",!0)],10,$)])],36)}]]),et=i(91229),ei=i(12592),en=i(62224),eo=i(31755),er=i(43319),ea=i(70243);(0,p.z)("select-search",f.O0),(0,p.z)("select-filter",f.aK);let es="panel";var el=(0,b.defineComponent)({name:"BaseSelect",directives:{clickoutside:u.ZP,tooltip:d.Z},components:{vSelectInput:I,vSelectDropdown:ee},mixins:[s.Z,l.Z,c.ZP,p.Z,(0,eo.J)("trigger-action",[{expose:"closeDropdown",internal:"closeAdvancedPanel"}])],props:{[v.yz.value()]:{type:(0,ea.C)([Array,Number,String,Boolean]),default:void 0},width:{type:[Number,String],default:250},height:{type:[Number,String],default:"auto"},maxHeight:{type:[Number,String],default:200},dropdownWidth:{type:[String,Number],default:void 0},dropdownOffset:{type:Array,default:()=>{}},customDropdownCls:{type:String,default:""},disabled:{type:Boolean,default:!1},filter:{type:(0,ea.C)(Function),default:void 0},search:{type:Function,default:void 0},align:{type:String,default:void 0},minSearchChar:{type:[Number,String],default:1},loading:{type:Boolean,default:void 0},loadingText:{type:String,default:void 0},notFoundText:{type:String,default:void 0},tooltip:{type:Boolean,default:!1},mapOptionToTooltip:{type:(0,ea.C)(Function),default:null},shouldMenuClose:{type:(0,ea.C)(Function),default:()=>!0},options:{type:(0,ea.C)([Object,Array]),default:()=>[]},groupOptions:{type:(0,ea.C)(Object),default:()=>{}},clearable:{type:Boolean,default:!1},editable:{type:Boolean,default:void 0},hideTrigger:{type:Boolean,default:void 0},position:{type:String,default:"absolute"},displayField:{type:String,default:"label"},valueField:{type:String,default:"value"},closeOnSelect:{type:Boolean,default:!0},placeholder:{type:String,default:""},nullValue:{type:[String,Array],default:null},inputScrollable:{type:Boolean,default:!1},inputTooltip:{type:(0,ea.C)([Object,String,Boolean]),default:()=>({disabled:!0})},useOptionSlot:{type:[Boolean,String],default:void 0},triggerQueryAction:{type:(0,ea.C)(String),default:"all"},caseSensitive:{type:Boolean,default:!1},virtualScrollbar:{type:Boolean,default:!1},virtualItemHeight:{type:Number,default:28},virtualBufferSize:{type:Number,default:200},showNotFound:{type:Boolean,default:!0},showDropdown:{type:Boolean,default:!0},displayTextFormat:{type:(0,ea.C)(Object),default:()=>({})},displayMode:{type:(0,ea.C)(String),default:"none",validator:e=>["label","text","none"].includes(e)},advanced:{type:(0,ea.C)([Boolean,Object]),default:!1},searchIconActive:{type:Boolean,default:!1},defaultOption:{type:(0,ea.C)([Function,String]),default:K.BASE},enterKey:{type:(0,ea.C)(String),default:void 0,validator:e=>!e||Object.values(en.a).includes(e)},customIcon:{type:(0,ea.C)(String),default:void 0,validator:e=>["search","filter","custom","none"].includes(e)}},emits:["display-changed","is-active","update:model-value","input","internal-select","select","focus","blur","clear","dropdown-hidden","dropdown-shown","close-dropdown","click-icon","click-advanced-icon"],data:()=>({id:(0,er.V)(),activeDescendant:null,isFocused:!1,dropdownStyle:{},isSearching:!1,show:!1,showAdvanced:!1,dropItemNodeList:[],display:"",currentQueryAction:"all",visibleOptions:[],searchOptions:[],defaultChildOptionIndent:!0}),computed:{innerLoading(){return(0,r.$K)(this.loading)?this.loading:this.isSearching},innerLoadingText(){return this.loadingText??this._i18n("uicommon","searching")},innerNotFoundText(){return this.notFoundText??this._i18n("search","no_search_result")},innerAdvancedType(){return(0,r.Kn)(this.advanced)?this.advanced?.type??es:es},hasAdvancedPanel(){return this.innerAdvancedType===es},hasAdvancedMenu(){return"menu"===this.innerAdvancedType},innerAlignment(){((0,r.$K)(this.align)||(0,r.$K)(this.dropdownOffset))&&(0,X.D8)("The prop 'align', 'dropdownOffset' is deprecated, please use 'alignment' instead.");let e=(0,r.$K)(this.align)?this.align:this.getPopupConfigValue("alignment");return(0,r.HD)(this.alignment)&&(e={pos:e}),(0,T.Z)(e,{offset:this.dropdownOffset})},wrapStyles(){return{"--width":(0,r.sI)(this.width)?`${this.width}px`:this.width,"--height":(0,r.sI)(this.height)?`${this.height}px`:this.height}},mergedDisplayTextFormat(){return(0,T.Z)({group:"{group}:{option}",option:"{option}",delimiter:this._i18n("common","comma")},this.displayTextFormat)},currentOptions(){return this.isSearchMode?this.transformGroupOptions(this.searchOptions):this.transformGroupOptions(this.options)},allowClear(){return this.clearable&&!!this.display},allowEdit(){return(0,r.$K)(this.editable)?this.editable:!(!this.search&&!this.filter)},_hideTrigger(){return(0,r.$K)(this.hideTrigger)?this.hideTrigger:!(!this.search&&!this.filter)},innerCustomIcon(){return this.customIcon?this.customIcon:this.search?"search":this.filter?"filter":"none"},inputAttrs(){return{disabled:this.disabled,readonly:!this.allowEdit,autocomplete:"off","aria-autocomplete":"list","aria-haspopup":"listbox","aria-activedescendant":this.activeDescendant,"aria-expanded":this.show}},wrapCls(){return{"v-select2-wrapper":!0,"has-prefix":this.hasPrefix(),disabled:this.disabled,focused:this.isFocused,pressed:this.show||this.showAdvanced,readonly:!this.allowEdit,"allow-clear":this.allowClear,"hide-trigger":this._hideTrigger,"right-advanced-icon":"right"===this.advanceIconPos}},dropdownCls(){return["v-select2-dropdown",this.customDropdownCls]},clearIconCls(){return["v-select2-clear-icon",{"hide-trigger":this._hideTrigger,"has-right-advanced-icon":"right"===this.advanceIconPos}]},advanceIconPos(){return(0,r.jn)(this.advanced)?this.advanced?"left":"none":this.advanced?.icon??"left"},searchIcon(){let e={};return"left"===this.advanceIconPos?(e.sprite=!0,"search"==this.innerCustomIcon?e.name="select-advanced-search":"filter"==this.innerCustomIcon&&(e.name="select-advanced-filter")):(e.svgIconSet="set01","search"==this.innerCustomIcon?e.name="select-search":"filter"==this.innerCustomIcon&&(e.name="select-filter")),e},searchIconCls(){return[{normal:"search"===this.innerCustomIcon,advanced:"left"===this.advanceIconPos,"show-advanced-panel":this.showAdvanced,active:this.searchIconActive}]},isActive(){return this.show||this.isFocused},selectedOption(){return this.currentOptions.find(e=>"-"!==e&&e[this.valueField]===(0,v.eQ)(this))},isSearchMode(){return this.search},autoOpenDropdownCharCount(){return this.isSearchMode?+this.minSearchChar:-1},inputMode(){return this.search?"search":"normal"},innerGroupOptions(){return this.currentOptions.reduce((e,t)=>("-"===e||"-"===t||"group-label"===t.type&&(e[t[this.valueField]]=t),e),{})},enterKeyHint(){return(0,r.$K)(this.enterKey)?this.enterKey:this.isSearchMode?en.a.Search:en.a.Enter}},watch:{options:{handler(e){this.isSearchMode&&(this.searchOptions=e)},immediate:!0},currentOptions(){this.doQuery(this.currentQueryAction)},display(e){this.currentQueryAction="keyword",this.doQuery(this.currentQueryAction),(0,m.Qy)(this,"display-changed",e)},show:{async handler(e){(0,m.Qy)(this,e?"dropdown-shown":"dropdown-hidden"),await this.repositionMenu(),await this.$nextTick(),this.$refs.dropdown&&(0,m.Qy)(this.$refs.dropdown,"shown")},immediate:!0},isActive:{handler(e){(0,m.Qy)(this,"is-active",e)}}},created(){this._searchingDebounce=(0,et.Z)(this.searching,250)},mounted(){(0,ei.k)(this.$el,this.onInputWidthChanged,this),this.onInputWidthChanged()},[o.mT.beforeUnmount](){(0,ei.S)(this.$el,this.onInputWidthChanged)},methods:{onInputWidthChanged(){let{width:e}=this.$el.getBoundingClientRect(),t=this.dropdownWidth??e;t=(0,r.HD)(t)?t:`${t}px`,this.dropdownStyle={width:t}},hasPrefix(){return"none"!==this.innerCustomIcon||this.hasPrefixSlot()},hasPrefixSlot(){return(0,a._Y)(this,"icon")},hasSuffix(){return(0,a._Y)(this,"input-right")},transformGroupOptions(e){if((0,r.Kn)(e)){let t=[];for(let i in e)(0,r.RI)(e,i)&&(t.push({type:"group-label",[this.valueField]:i,[this.displayField]:i,...this.groupOptions?.[i]??{}}),t=t.concat(e[i].options.map(e=>"-"===e?e:{...e,indent:this.groupOptions?.[i]?.indent??this.defaultChildOptionIndent,inGroup:i})));return t}return e},setLoading(e){(0,X.D8)("setLoading is deprecated now, use `loading` prop instead"),this.isSearching=e},isEmptyStateValue(e){return Array.isArray(this.nullValue)&&this.nullValue.includes(e)||this.nullValue===e},getOptionTooltip(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if("-"===e)return!1;let t=this.mapOptionToTooltip?this.mapOptionToTooltip(e):e[this.displayField];if((0,r.HD)(t))t={content:t};else if(!1===t)return!1;return{delay:300,bgOpacity:1,offset:[25,25],attachToElement:!0,overflowOnly:!0,content:e[this.displayField],...t}},getValidOptions(){return this.currentOptions.filter(e=>"-"===e||!0!==e.hide&&"group-label"!==e.type)},getVisibleOptions(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"all";if(this.filter)return this.filter(this.display,this.currentOptions,e);let t=Object.create(null),i=0,n=this.currentOptions.filter(n=>{if("-"===n)return!0;if(n.hide)return!1;let o=!1;if(!this.search&&this.allowEdit&&this.display&&"group-label"!==n.type||(o=!0),"keyword"===e){let e=n[this.displayField],t=this.display;this.caseSensitive||(e=e.toUpperCase(),t=t.toUpperCase()),e.includes(t)&&(o=!0)}else"all"===e&&(o=!0);return(0,r.mf)(n.filter)&&(o=n.filter(this.display,n,i,{query:e})),o&&(i++,n.inGroup&&(t[n.inGroup]=!0)),o});return n=n.filter(e=>"-"===e||"group-label"!==e.type||!!t[e[this.valueField]]),this.filterLegalDividerOption(n)},doQuery(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"all";this.visibleOptions=this.getVisibleOptions(e),this.repositionMenu()},register(e){(arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{})(this)},unregister(e){(arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{})(this)},filterLegalDividerOption(e){let t=null,i=!1,n=[];for(let o=0;o<e.length;o++){let r=e[o];"-"!==r?(i&&t&&n.push(t),i=!0,n.push(r),t=null):t=r}return n},clickOutside(){this.closeDropdown(),this.advanced&&this.closeAdvancedPanel()},doSearch(e){!this.search||e.length<+this.minSearchChar||(this.isSearching=!0,this._searchingDebounce(e))},async searching(e){this._searchingDefer=this._searchingDefer||Promise.resolve(),this._searchingDefer=this._searchingDefer.then(async()=>{this.isSearching=!0;let t=await this.search(e);t&&(this.searchOptions=t),this.isSearching=!1})},async repositionMenu(){await this.$nextTick(),this.$el&&this.$refs.dropdown&&this.$refs.dropdown.$el&&this.show&&this.$refs.portal?.doAlign()},focusInput(){this.$refs.input&&this.$refs.input.focus()},onClick(){this._hideTrigger||(this.$refs.input.focus(),this.toggleDropdown(this.triggerQueryAction))},openDropdown(e){return!this.show&&(e&&(this.currentQueryAction=e),this.doQuery(this.currentQueryAction),this.show=!0,!0)},closeDropdown(){this.show&&(this.shouldMenuClose&&!this.shouldMenuClose()||(this.show=!1,(0,m.Qy)(this,"close-dropdown")))},toggleDropdown(e){this.disabled||(this.allowEdit&&this.$refs.input.getInputEl()?.focus(),this.show?this.closeDropdown():this.openDropdown(e))},openAdvancedPanel(){this.showAdvanced=!0,this.closeDropdown()},closeAdvancedPanel(){this.showAdvanced=!1},toggleAdvancedPanel(){this.disabled||(this.showAdvanced?this.closeAdvancedPanel():this.openAdvancedPanel())},onClickIcon(){(0,m.Qy)(this,"click-icon"),this.advanced&&this.toggleAdvancedPanel()},onClickAdvancedIcon(){(0,m.Qy)(this,"click-advanced-icon"),this.toggleAdvancedPanel()},onEnter(){if(this.$refs.dropdown){let e=this.$refs.dropdown.getActiveIndex();this.select(e)}},onArrow(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.advanced||(this.openDropdown(),this.$refs.dropdown&&this.$refs.dropdown.moveActiveIndex(e))},clear(){this.display="";let e=this.findOptions(this.display);(0,m.Qy)(this,"clear"),(0,m.Qy)(this,(0,v.ef)(),e&&e[this.valueField])},canCloseOnSelect(e){return"-"!==e&&(0,r.$K)(e.closeOnSelect)?e.closeOnSelect:this.closeOnSelect},select(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;if(e<0||this.visibleOptions.length<=e)return;let t=this.visibleOptions[e];(0,m.Qy)(this,"internal-select",e),(0,m.Qy)(this,"select",t),this.canCloseOnSelect(t)&&(this.closeDropdown(),(0,b.nextTick)().then(()=>this.$refs.input.focus()))},onScrollbarVisible(){this.repositionMenu()},onHoverIndexChanged(){this.activeDescendant=this.$refs.dropdown?.getActiveOptionAria()},inDataTableBehavior(){this.$el.addEventListener("mousedown",e=>{e.stopPropagation(),(0,u.rd)(e)}),this.$el.addEventListener("keydown",e=>e.stopPropagation())},setDisplay(e){this.display=e},onFocus(e){this.isFocused=!0,(0,m.Qy)(this,"focus",e)},onBlur(e){this.isFocused=!1,(0,m.Qy)(this,"blur",e)}}});function ec(e){return void 0!==e&&""!==e}var ed=(0,b.defineComponent)({name:"SingleSelect",components:{vSelectInput:I,vSelectDropdown:ee,vIcon:g.Z,vPortal:E.Z},extends:el,props:{forceSelection:{type:Boolean,default:!1},selectOnFocus:{type:Boolean,default:!0},displayMode:{type:(0,ea.C)(String),default:"none",validator:e=>["text","none","html"].includes(e)},defaultOption:{type:(0,ea.C)([Function,String]),default:K.BASE}},data:()=>({lastSelectedOption:void 0,defaultChildOptionIndent:!0,searchPlaceholderOption:void 0}),computed:{selectedOption(){let e=(0,v.eQ)(this);return this.isEmptyStateValue(e)?null:this.currentOptions.find(t=>ec(e)&&"-"!==t&&t[this.valueField]===e)},innerValue(){return(0,v.eQ)(this)}},watch:{display(e){this.doSearch(e)},currentOptions:{immediate:!0,deep:!0,handler(){let e=this.selectedOption;e&&!this.search&&(this.display=e[this.displayField])}},[v.yz.value()]:{immediate:!0,handler(e){if(!(0,r.$K)(e)&&this.clearable&&this.tryRememberLastSelectedOption(null),this.isEmptyStateValue(e))return(0,m.Qy)(this,(0,v.ef)(),null),this.display="",void this.tryRememberLastSelectedOption(null);ec(e)&&this.$refs.dropdown&&this.$refs.dropdown.setActiveIndexByValue(e);let t=this.selectedOption;this.tryRememberLastSelectedOption(t),t&&(this.display=t[this.displayField])}}},methods:{getSlots(){return(0,a.FJ)(this)},getValidOptions(){let e=[...this.currentOptions];return this.searchPlaceholderOption&&e.push(this.searchPlaceholderOption),e.filter(e=>"-"===e||!0!==e.hide&&"group-label"!==e.type)},findOptions(e){return this.getValidOptions().find(t=>this.isOptionMatchedDisplay(e,t))},isOptionMatchedDisplay(e,t){return"-"!==t&&(this.search?e===t[this.displayField]:!(!e||e!==t[this.displayField]))},tryRememberLastSelectedOption(e){this.lastSelectedOption=e},handleForceSelection(e){return(""!==this.display||!this.clearable)&&!e&&(this.lastSelectedOption?this.display=this.lastSelectedOption[this.displayField]:this.display="",!0)},onFocus(e){this.advanced&&this.closeAdvancedPanel(),el.methods.onFocus.apply(this,[e])},onBlur(e){let t=(0,n.yG)(e);if(el.methods.onBlur.apply(this,[e]),this.$refs.dropdown&&this.$refs.dropdown.$el.contains(t)||this.$el.contains(t)||this.selectedOption&&this.display===this.selectedOption[this.displayField]||!this.allowEdit)return;this.search&&this.commitSearchOption(this.display);let i=this.findOptions(this.display);this.forceSelection?!1===this.handleForceSelection(i)&&(0,m.Qy)(this,(0,v.ef)(),i?.[this.valueField]):(0,m.Qy)(this,(0,v.ef)(),i?.[this.valueField])},select(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;if(e<0||this.visibleOptions.length<=e)return;let t=this.visibleOptions[e];"-"===t||t.disabled||(this.display=t[this.displayField],(0,m.Qy)(this,(0,v.ef)(),t[this.valueField]),el.methods.select.apply(this,[e]))},openDropdown(e){let t=this.selectOnFocus&&this.allowEdit;el.methods.openDropdown.apply(this,[e])&&t&&"all"===e&&this.$refs.input.selectInput()},async openAdvancedPanel(){el.methods.openAdvancedPanel.apply(this)},closeAdvancedPanel(){el.methods.closeAdvancedPanel.apply(this)},onEnter(){el.methods.onEnter.apply(this)},createOption(e){return{type:"normal",[this.displayField]:e,[this.valueField]:e}},commitSearchOption(e){return this.searchPlaceholderOption=this.createOption(e)}}});let eu={key:1,class:"v-select2-advanced"};var eh=(0,y.Z)(ed,[["render",function(e,t,i,n,o,r){let a=(0,b.resolveComponent)("v-icon"),s=(0,b.resolveComponent)("v-select-input"),l=(0,b.resolveComponent)("v-portal"),c=(0,b.resolveComponent)("v-select-dropdown"),d=(0,b.resolveDirective)("clickoutside"),u=(0,b.resolveDirective)("syno-id");return(0,b.withDirectives)(((0,b.openBlock)(),(0,b.createElementBlock)("div",{class:(0,b.normalizeClass)(e.wrapCls),style:(0,b.normalizeStyle)(e.wrapStyles),onClick:t[3]||(t[3]=function(){return e.onClick&&e.onClick(...arguments)})},[(0,b.renderSlot)(e.$slots,"input",{hasIcon:e.hasPrefix(),hasPrefix:e.hasPrefix(),searchIconCls:e.searchIconCls},()=>[(0,b.createVNode)(s,{ref:"input",modelValue:e.display,"onUpdate:modelValue":t[0]||(t[0]=t=>e.display=t),"input-tooltip":e.inputTooltip,placeholder:e.placeholder,disabled:e.disabled,"selected-option":e.selectedOption,"input-attrs":e.inputAttrs,"open-dropdown":e.openDropdown,"toggle-dropdown":e.toggleDropdown,"close-dropdown":e.closeDropdown,advanced:!!e.advanced,"has-right-adv-icon":"right"===e.advanceIconPos,"search-icon-cls":e.searchIconCls,"clear-icon-cls":e.clearIconCls,"allow-clear":e.allowClear,"hide-trigger":e._hideTrigger,"display-field":e.displayField,"value-field":e.valueField,"trigger-query-action":e.triggerQueryAction,"auto-open-dropdown-char-count":e.autoOpenDropdownCharCount,"toggle-dropdown-on-click":!e.isSearchMode,"display-mode":e.displayMode,"display-text-format":e.mergedDisplayTextFormat,"group-options":e.innerGroupOptions,"enter-key-hint":e.enterKeyHint,"has-prefix":e.hasPrefix(),"has-suffix":e.hasSuffix(),"dropdown-shown":e.show&&e.showDropdown,onClickAdvancedIcon:e.onClickAdvancedIcon,onClear:e.clear,onArrowUp:t[1]||(t[1]=t=>e.onArrow("up")),onArrowDown:t[2]||(t[2]=t=>e.onArrow("down")),onKeyEnter:e.onEnter,onFocus:e.onFocus,onBlur:e.onBlur},{prefix:(0,b.withCtx)(()=>[(0,b.renderSlot)(e.$slots,"icon",{disabled:e.disabled,class:(0,b.normalizeClass)(e.searchIconCls)},()=>[e.hasPrefix()?((0,b.openBlock)(),(0,b.createBlock)(a,(0,b.mergeProps)({key:0,class:e.searchIconCls,disabled:e.disabled},e.searchIcon,{onClick:e.onClickIcon}),null,16,["class","disabled","onClick"])):(0,b.createCommentVNode)("",!0)])]),suffix:(0,b.withCtx)(()=>[(0,b.renderSlot)(e.$slots,"input-right")]),_:3},8,["modelValue","input-tooltip","placeholder","disabled","selected-option","input-attrs","open-dropdown","toggle-dropdown","close-dropdown","advanced","has-right-adv-icon","search-icon-cls","clear-icon-cls","allow-clear","hide-trigger","display-field","value-field","trigger-query-action","auto-open-dropdown-char-count","toggle-dropdown-on-click","display-mode","display-text-format","group-options","enter-key-hint","has-prefix","has-suffix","dropdown-shown","onClickAdvancedIcon","onClear","onKeyEnter","onFocus","onBlur"])]),e.showAdvanced&&e.advanced?((0,b.openBlock)(),(0,b.createBlock)(l,{ref:"advanced-portal",key:"advanced","mount-to":e.getContainerEl(),anchor:e.$el,alignment:e.innerAlignment},{default:(0,b.withCtx)(()=>[e.hasAdvancedMenu?(0,b.renderSlot)(e.$slots,"advanced-menu",{key:0}):e.hasAdvancedPanel?((0,b.openBlock)(),(0,b.createElementBlock)("div",eu,[(0,b.renderSlot)(e.$slots,"advanced-panel",{display:e.display})])):(0,b.createCommentVNode)("",!0)]),_:3},8,["mount-to","anchor","alignment"])):(0,b.createCommentVNode)("",!0),e.show&&e.showDropdown?((0,b.openBlock)(),(0,b.createBlock)(l,{ref:"portal",key:"dropdown","mount-to":e.getContainerEl(),anchor:e.$el,"acquire-z-index":"",alignment:e.innerAlignment},{default:(0,b.withCtx)(()=>[(0,b.renderSlot)(e.$slots,"dropdown",{style:(0,b.normalizeStyle)(e.dropdownStyle),synoId:e.synoId,options:e.visibleOptions,useOptionSlot:e.useOptionSlot,advanced:!!e.advanced,dropdownCls:e.dropdownCls,loading:e.innerLoading,loadingText:e.innerLoadingText,maxHeight:+e.maxHeight,notFoundText:e.innerNotFoundText,value:e.innerValue,valueField:e.valueField,displayField:e.displayField,getOptionTooltip:e.getOptionTooltip,virtualScrollbar:e.virtualScrollbar,virtualItemHeight:e.virtualItemHeight,virtualBufferSize:e.virtualBufferSize,showNotFound:e.showNotFound,defaultOption:e.defaultOption},()=>[(0,b.createVNode)(c,{ref:"dropdown",style:(0,b.normalizeStyle)(e.dropdownStyle),"syno-id":e.synoId,options:e.visibleOptions,"use-option-slot":e.useOptionSlot,advanced:!!e.advanced,"dropdown-cls":e.dropdownCls,loading:e.innerLoading,"loading-text":e.innerLoadingText,"max-height":+e.maxHeight,"not-found-text":e.innerNotFoundText,value:e.innerValue,"value-field":e.valueField,"display-field":e.displayField,"get-option-tooltip":e.getOptionTooltip,"virtual-scrollbar":e.virtualScrollbar,"virtual-item-height":e.virtualItemHeight,"virtual-buffer-size":e.virtualBufferSize,"show-not-found":e.showNotFound,"default-option":e.defaultOption,onCloseDropdown:e.closeDropdown,onHoverIndex:e.onHoverIndexChanged,onSelect:e.select,onScrollbarVisible:e.onScrollbarVisible},(0,b.createSlots)({_:2},[(0,b.renderList)(e.getSlots(),(t,i)=>({name:i,fn:(0,b.withCtx)(t=>[(0,b.renderSlot)(e.$slots,i,(0,b.normalizeProps)((0,b.guardReactiveProps)(t)))])}))]),1032,["style","syno-id","options","use-option-slot","advanced","dropdown-cls","loading","loading-text","max-height","not-found-text","value","value-field","display-field","get-option-tooltip","virtual-scrollbar","virtual-item-height","virtual-buffer-size","show-not-found","default-option","onCloseDropdown","onHoverIndex","onSelect","onScrollbarVisible"])])]),_:3},8,["mount-to","anchor","alignment"])):(0,b.createCommentVNode)("",!0)],6)),[[d,e.clickOutside,void 0,{children:!0}],[u]])}]])},53683:function(e,t,i){"use strict";i.d(t,{Z:()=>s});var n=i(7135),o=i(71367),r=i(63447),a=(0,r.defineComponent)({name:"SlideUpDownTransition",emits:["before-enter","enter","after-enter","before-leave","leave","after-leave"],methods:{onBeforeEnter(e){e.dataset||(e.dataset={}),e.dataset.overflow=(0,n.iv)(e,"overflow"),e.dataset.paddingTop=e.dataset.paddingTop?e.dataset.paddingTop:(0,n.iv)(e,"padding-top"),e.dataset.paddingBottom=e.dataset.paddingBottom?e.dataset.paddingBottom:(0,n.iv)(e,"padding-bottom"),this.reflow=e.scrollHeight,(0,n.iv)(e,"max-height","0"),(0,n.iv)(e,"padding-top","0"),(0,n.iv)(e,"padding-bottom","0"),this.reflow=e.scrollHeight,(0,o.Qy)(this,"before-enter",e)},onEnter(e){0!==e.scrollHeight?(0,n.iv)(e,"max-height",`${e.scrollHeight}px`):(0,n.iv)(e,"max-height",""),(0,n.iv)(e,"padding-top",e.dataset.paddingTop),(0,n.iv)(e,"padding-bottom",e.dataset.paddingBottom),(0,n.iv)(e,"overflow","hidden"),(0,o.Qy)(this,"enter",e)},onAfterEnter(e){(0,n.iv)(e,"max-height",""),e.removeAttribute("data-padding-top"),e.removeAttribute("data-padding-bottom"),(0,o.Qy)(this,"after-enter",e)},onBeforeLeave(e){e.dataset||(e.dataset={}),(0,n.iv)(e,"max-height",`${e.scrollHeight}px`),e.dataset.overflow=(0,n.iv)(e,"overflow"),e.dataset.paddingTop=e.dataset.paddingTop?e.dataset.paddingTop:(0,n.iv)(e,"padding-top"),e.dataset.paddingBottom=e.dataset.paddingBottom?e.dataset.paddingBottom:(0,n.iv)(e,"padding-bottom"),(0,n.iv)(e,"overflow","hidden"),(0,o.Qy)(this,"before-leave",e)},onLeave(e){0!==e.scrollHeight&&((0,n.iv)(e,"max-height","0"),(0,n.iv)(e,"padding-top","0"),(0,n.iv)(e,"padding-bottom","0")),(0,o.Qy)(this,"leave",e)},onAfterLeave(e){(0,n.iv)(e,"max-height",""),(0,n.iv)(e,"padding-top",e.dataset.paddingTop),(0,n.iv)(e,"padding-bottom",e.dataset.paddingBottom),(0,n.iv)(e,"overflow",e.dataset.overflow),e.removeAttribute("data-padding-top"),e.removeAttribute("data-padding-bottom"),e.removeAttribute("overflow"),(0,o.Qy)(this,"after-leave",e)}}}),s=(0,i(66794).Z)(a,[["render",function(e,t,i,n,o,a){return(0,r.openBlock)(),(0,r.createBlock)(r.Transition,{name:"slide-up-down",onBeforeEnter:t[0]||(t[0]=t=>e.onBeforeEnter(t)),onEnter:e.onEnter,onAfterEnter:t[1]||(t[1]=t=>e.onAfterEnter(t)),onBeforeLeave:t[2]||(t[2]=t=>e.onBeforeLeave(t)),onLeave:e.onLeave,onAfterLeave:t[3]||(t[3]=t=>e.onAfterLeave(t))},{default:(0,r.withCtx)(()=>[(0,r.renderSlot)(e.$slots,"default")]),_:3},8,["onEnter","onLeave"])}]])},3957:function(e,t,i){"use strict";i.d(t,{Z:()=>l});var n=i(63447),o=(0,n.defineComponent)({name:"SpinIcon"}),r=i(66794);let a={class:"v-spin-icon"},s=[(0,n.createElementVNode)("i",null,[(0,n.createElementVNode)("i")],-1)];var l=(0,r.Z)(o,[["render",function(e,t,i,o,r,l){return(0,n.openBlock)(),(0,n.createElementBlock)("div",a,s)}]])},98671:function(e,t,i){"use strict";i.d(t,{Z:()=>h});var n=i(83717),o=i(3957),r=i(63447),a=(0,r.defineComponent)({name:"SpinInner",components:{SpinIcon:o.Z},props:{prefix:{type:String,default:"v-spin"},tip:{type:String,default:void 0},showIcon:{type:Boolean,default:!0}},computed:{textClasses(){return[`${this.prefix}-text`,{"has-icon":this.showIcon}]},wrapClasses(){return[this.prefix]}}}),s=i(66794),l=(0,s.Z)(a,[["render",function(e,t,i,n,o,a){let s=(0,r.resolveComponent)("spin-icon");return(0,r.openBlock)(),(0,r.createElementBlock)("div",{class:(0,r.normalizeClass)(e.wrapClasses)},[(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)(e.textClasses)},[(0,r.renderSlot)(e.$slots,"default",{},()=>[(0,r.createTextVNode)((0,r.toDisplayString)(e.tip),1)])],2),e.showIcon?(0,r.renderSlot)(e.$slots,"icon",{key:0},()=>[(0,r.createVNode)(s)]):(0,r.createCommentVNode)("",!0)],2)}]]),c=i(70243),d=(0,r.defineComponent)({name:"Spin",components:{vSpinInner:l},props:{type:{type:(0,c.C)(String),default:"circle"},maskStyle:{type:(0,c.C)(Object),default:()=>{}},onlyMask:{type:Boolean,default:!1},spinning:{type:Boolean,default:!1},mask:{type:Boolean,default:!0},delay:{type:Number,default:0},size:{type:String,default:void 0},tip:{type:String,default:void 0},showIcon:{type:Boolean,default:!0}},data:()=>({prefix:"v-spin",delayedShow:!1}),computed:{wrapperClass(){return[`${this.prefix}-wrapper`,this.type]}},watch:{spinning(e){!0===e&&(this.delayedShow=!1,this.delayedTimeout())}},mounted(){this.delayedTimeout()},methods:{delayedTimeout(){this.delay>0?window.setTimeout(()=>{this.delayedShow=!0},this.delay):this.delayedShow=!0},getSpinInnerSlots(){return(0,n.XR)("inner-",this)}}});let u={key:1,class:"loader-inner"};var h=(0,s.Z)(d,[["render",function(e,t,i,n,o,a){let s=(0,r.resolveComponent)("v-spin-inner");return(0,r.openBlock)(),(0,r.createElementBlock)("div",{class:(0,r.normalizeClass)(e.wrapperClass)},["circle"===e.type?((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:0},[(0,r.withDirectives)((0,r.createElementVNode)("div",{class:(0,r.normalizeClass)(e.prefix+"-wrapper-masking"),style:(0,r.normalizeStyle)(e.maskStyle)},null,6),[[r.vShow,e.mask&&e.delayedShow&&e.spinning]]),(0,r.renderSlot)(e.$slots,"default"),e.delayedShow&&e.spinning&&!e.onlyMask?(0,r.renderSlot)(e.$slots,"spin-inner",{key:0},()=>[(0,r.createVNode)(s,{tip:e.tip,prefix:e.prefix,delay:e.delay,"show-icon":e.showIcon},(0,r.createSlots)({_:2},[(0,r.renderList)(e.getSpinInnerSlots(),t=>{let{name:i,exposeName:n}=t;return{name:i,fn:(0,r.withCtx)(t=>[(0,r.renderSlot)(e.$slots,n,(0,r.normalizeProps)((0,r.guardReactiveProps)(t)))])}})]),1032,["tip","prefix","delay","show-icon"])]):(0,r.createCommentVNode)("",!0)],64)):"large-dots"===e.type?((0,r.openBlock)(),(0,r.createElementBlock)("div",u)):(0,r.createCommentVNode)("",!0)],2)}]])},72681:function(e,t,i){"use strict";i.d(t,{Z:()=>p});var n=i(63707),o=i(71367),r=i(31755),a=i(83717),s=i(46001),l=i(12725),c=i(63447),d=(0,c.defineComponent)({name:"TabPane",components:{vScrollbar:s.Z,vLayout:l.Z},mixins:[(0,r.J)("layout-container"),(0,r.f)("tabs"),(0,r.J)("alert-bar-container")],props:{tabKey:{type:String,required:!0},disabled:{type:Boolean,default:!1},tab:{type:String,default:void 0},hidden:{type:Boolean,default:!1},detectScroll:{type:Boolean,default:!0},alwaysActive:{type:Boolean,default:!1},order:{type:Number,default:0},error:{type:Boolean,default:!1}},emits:["reachYEnd","reachYStart","activate","deactivate"],data:()=>({prefix:"v-tabs-tabpane",active:!1,reachYEnd:!0,reachYStart:!0}),computed:{wrapCls(){return[this.prefix]}},watch:{reachYEnd(e){this.active&&(0,o.Qy)(this.tabs?.instance,"reachYEnd",e)},reachYStart(e){this.active&&(0,o.Qy)(this.tabs?.instance,"reachYStart",e)}},async mounted(){this.tabs?.instance?.addTab(this),this.disposedFn=this.$watch(()=>this.tabs.instance.activatedTabKey,async(e,t)=>{this.active=e===this.tabKey,this.active?((0,o.Qy)(this,"activate",this),await this.$nextTick(),this.detectReachStartEnd()):(0,o.Qy)(this,"deactivate",this)},{immediate:!0})},[n.mT.beforeUnmount](){this.disposedFn?.(),this.tabs?.instance?.removeTab(this)},methods:{hasDefaultSlot(){return(0,a._Y)(this,"default")},hasScrollBodySlot(){return(0,a._Y)(this,"scroll-body")},hasContentBodySlot(){return(0,a._Y)(this,"content-body")},getScrollEl(){return this.$refs.scrollbar?.getScrollEl()},detectReachStartEnd(){if(this.detectScroll&&this.$refs.scrollbar){let e=this.$refs.scrollbar;this.reachYStart=e.isReachTop(),this.reachYEnd=e.isReachBottom()}}}}),u=i(66794);let h=["id","aria-hidden","aria-labelledby"];var p=(0,u.Z)(d,[["render",function(e,t,i,n,o,r){let a=(0,c.resolveComponent)("v-layout"),s=(0,c.resolveComponent)("v-scrollbar"),l=(0,c.resolveDirective)("syno-id");return(0,c.withDirectives)(((0,c.openBlock)(),(0,c.createElementBlock)("div",{id:`tab-pane-${e.tabKey}`,role:"tabpanel","aria-hidden":!e.active,class:(0,c.normalizeClass)(e.wrapCls),"aria-labelledby":`tab-${e.tabKey}`},[(0,c.renderSlot)(e.$slots,"default"),e.hasScrollBodySlot()?((0,c.openBlock)(),(0,c.createBlock)(s,{key:0,ref:"scrollbar",onScroll:e.detectReachStartEnd},{default:(0,c.withCtx)(()=>[(0,c.createVNode)(a,{type:"content"},{default:(0,c.withCtx)(()=>[(0,c.renderSlot)(e.$slots,"scroll-body")]),_:3})]),_:3},8,["onScroll"])):(0,c.createCommentVNode)("",!0),e.hasContentBodySlot()?((0,c.openBlock)(),(0,c.createBlock)(a,{key:1,type:"content"},{default:(0,c.withCtx)(()=>[(0,c.renderSlot)(e.$slots,"content-body")]),_:3})):(0,c.createCommentVNode)("",!0)],10,h)),[[c.vShow,e.active||e.alwaysActive],[l]])}]])},3384:function(e,t,i){"use strict";i.d(t,{Z:()=>T}),i(95790),i(95922);var n=i(71367),o=i(19257),r=i(18954),a=i(47696),s=i(76293),l=i(63447),c=i(70243),d=(0,l.defineComponent)({name:"TabFooter",components:{vButton:s.Z},mixins:[a.Z],props:{confirmText:{type:String,default:void 0},footerDirection:{type:(0,c.C)(Object),default:()=>({mobile:"row",desktop:"row"})},cancelText:{type:String,default:void 0}},emits:["cancel","confirm"],data:()=>({prefix:"v-tabs-footer"}),computed:{innerConfirmText(){return this.confirmText??this._i18n("common","save")},innerCancelText(){return this.cancelText??this._i18n("common","cancel")}},mounted(){},methods:{onClickCancel(){(0,n.Qy)(this,"cancel")},onClickConfirm(){(0,n.Qy)(this,"confirm")}}}),u=i(66794);let h={class:"default pull-right button-region"};var p=(0,u.Z)(d,[["render",function(e,t,i,n,o,r){let a=(0,l.resolveComponent)("v-button"),s=(0,l.resolveDirective)("syno-id");return(0,l.withDirectives)(((0,l.openBlock)(),(0,l.createElementBlock)("div",h,[(0,l.createVNode)(a,{"syno-id":`${e.synoId}-cancel`,type:"footbar",suffix:"cancel",onClick:e.onClickCancel},{default:(0,l.withCtx)(()=>[(0,l.createTextVNode)((0,l.toDisplayString)(e.innerCancelText),1)]),_:1},8,["syno-id","onClick"]),(0,l.createVNode)(a,{"syno-id":`${e.synoId}-apply`,type:"footbar",suffix:"main",onClick:e.onClickConfirm},{default:(0,l.withCtx)(()=>[(0,l.createTextVNode)((0,l.toDisplayString)(e.innerConfirmText),1)]),_:1},8,["syno-id","onClick"])])),[[s]])}]]),f=i(96868),g=i(54730),m=i(7135),v=i(88446),b=i(31755),y=i(12725),w=i(71283),_=(0,l.defineComponent)({name:"Tabs",components:{tabFooter:p,vLayout:y.Z},mixins:[f.ZP,a.Z,(0,b.f)("info-board"),(0,v.W)("tabs"),(0,b.J)("tabs")],props:{[r.yz.value()]:{type:String,default:void 0},type:{type:String,default:"line"},size:{type:String,default:void 0},hasFbar:{type:Boolean,default:!0},fbar:{type:Boolean,default:!0},confirmText:{type:String,default:void 0},cancelText:{type:String,default:void 0},layoutType:{type:(0,c.C)(String),default:"content"},layoutOrder:{type:Number,default:0},mobileBreakpoint:{type:(0,c.C)([String,Boolean]),default:"xxs"},navTabsList:{type:(0,c.C)([Array,Boolean]),default:!1},beforeTabChange:{type:(0,c.C)(Function),default:g.ZT},styleVersion:{default:7,type:Number}},emits:["update:model-value","tab-click","cancel","confirm","input","reachYEnd","reachYStart"],data:()=>({prefixCls:"v-tabs",activatedTabKey:void 0,activeIndex:0,tabs:{},orderedTabs:[],inInfoBoard:!1,reachYStart:!0,reachYEnd:!0,navbarScrollingTo:"middle",showNavbarFilter:!1}),computed:{innerStyleVersion(){return this.getTabsConfigValue("styleVersion")},styleVersionCls(){return"v"+this.innerStyleVersion},useFooter(){return!0!==this.hasFbar?((0,w.Rn)("hasFbar","fbar",this),this.hasFbar):this.fbar},innerNavTabsList(){return(0,g.kJ)(this.navTabsList)?this.navTabsList:this.orderedTabs},tabPrefixCls(){return`${this.prefixCls}-tab`},tabBodyCls(){return[`${this.tabPrefixCls}-content`,{"reach-y-start":this.reachYStart,"reach-y-end":this.reachYEnd}]},fbarCls(){return[`${this.prefixCls}-footer`,{"reach-y-start":this.reachYStart,"reach-y-end":this.reachYEnd}]},navPrefixCls(){return`${this.prefixCls}-nav`},inkBarPrefixCls(){return`${this.prefixCls}-ink-bar`},contentPrefixCls(){return`${this.prefixCls}-content`},tabsCls(){return[this.styleVersionCls,this.prefixCls,{mobile:this.isMobile}]},navContainerCls(){return[`${this.navPrefixCls}-container`,`scrolling-to-${this.navbarScrollingTo}`]},isMobile(){return!this.$breakpointManager&&this.mobileBreakpoint?((0,w.D8)("please import and use BreakpointManagerPlugin when you are in tree-shaking mode or breakpoint will not active."),!1):this.mobileBreakpoint&&this.$breakpointManager?.lessAndEqThan(this.mobileBreakpoint)},innerConfirmText(){return this.confirmText??this._i18n("common","save")},innerCancelText(){return this.cancelText??this._i18n("common","cancel")}},watch:{[r.yz.value()]:{async handler(e){let t=this.innerNavTabsList.find(t=>t.tabKey===e);t&&this.selectTab(t,{autoScroll:this.isMobile})}},activatedTabKey(e){(0,n.Qy)(this,(0,r.ef)(),e)}},created(){(0,n.Zn)(this,"reachYEnd",e=>{this.reachYEnd=e}),(0,n.Zn)(this,"reachYStart",e=>{this.reachYStart=e})},mounted(){this["info-board"]&&(this.inInfoBoard=!0),this.onTabNavScroll();let e=this.orderedTabs.find(e=>e.tabKey===(0,r.eQ)(this));e&&this.selectTab(e,{autoScroll:this.isMobile}),this.navTabsList&&(this.activatedTabKey=(0,r.eQ)(this))},methods:{onTabNavScroll(){let{scrollLeft:e,scrollWidth:t,offsetWidth:i}=this.$refs.navWrap;this.showNavbarFilter=t>i,this.navbarScrollingTo=e<=0?"left":e>=t-i?"right":"middle"},getTabHeaderCls(e){let t=this.tabPrefixCls;return[t,{[t+"-active"]:e.tabKey==this.activatedTabKey,[t+"-disabled"]:e.disabled,[t+"-hidden"]:e.hidden}]},getOrderedTabs:e=>Object.values(e).sort((e,t)=>e.order>t.order?1:e.order<t.order?-1:0),async addTab(e){this.tabs[(0,o.s)(e)]=e,this.orderedTabs=this.getOrderedTabs(this.tabs)},removeTab(e){delete this.tabs[(0,o.s)(e)],this.orderedTabs=this.getOrderedTabs(this.tabs)},getActiveTab(){return this.orderedTabs.find(e=>e.tabKey===this.activatedTabKey)},onClickTab(e,t){this.selectTab(e,t),(0,n.Qy)(this,"tab-click",this.activatedTabKey)},async selectTab(e){let{autoScroll:t=!1,autoFocus:i=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.activatedTabKey!==e.tabKey&&!1===await this.beforeTabChange({key:this.activatedTabKey},{key:e.tabKey}))return!1;i&&(0,m.mh)(this.$refs?.[e.tabKey]?.[0]),t&&(0,m.X5)(this.$refs?.[e.tabKey]?.[0],{inline:"center",behavior:"smooth"}),this.activatedTabKey=e.tabKey},onCancel(){(0,n.Qy)(this,"cancel")},onConfirm(){(0,n.Qy)(this,"confirm")},onKeyDown(e){"ArrowLeft"!==e.key&&"ArrowUp"!==e.key||(e.preventDefault(),this.focusPrevTab()),"ArrowRight"!==e.key&&"ArrowDown"!==e.key||(e.preventDefault(),this.focusNextTab())},focusDescendTab(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=(n,o,r)=>{let a=(o+r)%r;return a===i?i:n[a].disabled?t(n,a+e,r):a},i=this.orderedTabs.findIndex(e=>e.tabKey===this.activatedTabKey),n=this.orderedTabs.length,o=t(this.orderedTabs,i+e,n);return this.selectTab(this.orderedTabs[o],{autoScroll:this.isMobile,autoFocus:!0})},focusPrevTab(){return this.focusDescendTab(-1)},focusNextTab(){return this.focusDescendTab(1)},hasErrorState:e=>!!e.error}});let x=["id","syno-id","tabindex","aria-disabled","aria-selected","aria-controls","onClick"],S={class:"tab-text-wrapper"},C={class:"tab-text"},k={key:0,class:"error-dot"},I=(0,l.createElementVNode)("i",{class:"prev-filter gradient-filter"},null,-1),A=(0,l.createElementVNode)("i",{class:"next-filter gradient-filter"},null,-1);var T=(0,u.Z)(_,[["render",function(e,t,i,n,o,r){let a=(0,l.resolveComponent)("v-layout"),s=(0,l.resolveComponent)("tab-footer"),c=(0,l.resolveDirective)("syno-id");return(0,l.withDirectives)(((0,l.openBlock)(),(0,l.createBlock)(a,{class:(0,l.normalizeClass)(e.tabsCls),type:`tabs.${e.layoutType}`,order:e.layoutOrder},{default:(0,l.withCtx)(()=>[(0,l.createVNode)(a,{role:"tablist",class:(0,l.normalizeClass)(e.prefixCls+"-bar"),type:"tab-tbar",onKeydown:e.onKeyDown},{default:(0,l.withCtx)(()=>[(0,l.createElementVNode)("div",{class:(0,l.normalizeClass)(e.navContainerCls)},[(0,l.createElementVNode)("div",{ref:"navWrap",class:(0,l.normalizeClass)(e.navPrefixCls+"-wrap"),onScroll:t[0]||(t[0]=function(){return e.onTabNavScroll&&e.onTabNavScroll(...arguments)})},[((0,l.openBlock)(!0),(0,l.createElementBlock)(l.Fragment,null,(0,l.renderList)(e.innerNavTabsList,t=>((0,l.openBlock)(),(0,l.createElementBlock)("div",{id:`tab-${t.tabKey}`,key:t.tabKey,ref_for:!0,ref:t.tabKey,"syno-id":`${e.synoId}-head-${t.tabKey}`,role:"tab",tabindex:t.tabKey==e.activatedTabKey?0:-1,"aria-disabled":t.disabled,"aria-selected":t.tabKey==e.activatedTabKey,"aria-controls":`tab-pane-${t.tabKey}`,class:(0,l.normalizeClass)(e.getTabHeaderCls(t)),onClick:i=>e.onClickTab(t,{autoScroll:e.isMobile})},[(0,l.createElementVNode)("div",S,[(0,l.createElementVNode)("span",C,(0,l.toDisplayString)(t.tab),1),e.hasErrorState(t)?((0,l.openBlock)(),(0,l.createElementBlock)("i",k)):(0,l.createCommentVNode)("",!0)]),(0,l.createElementVNode)("div",{class:(0,l.normalizeClass)(e.tabPrefixCls+"-text-guard"),"aria-hidden":"true"},(0,l.toDisplayString)(t.tab),3)],10,x))),128))],34),e.showNavbarFilter?((0,l.openBlock)(),(0,l.createElementBlock)(l.Fragment,{key:0},[I,A],64)):(0,l.createCommentVNode)("",!0)],2)]),_:1},8,["class","onKeydown"]),(0,l.createVNode)(a,{ref:"body",class:(0,l.normalizeClass)(e.tabBodyCls),type:"tab-body"},{default:(0,l.withCtx)(()=>[(0,l.renderSlot)(e.$slots,"default")]),_:3},8,["class"]),!e.inInfoBoard&&e.useFooter?((0,l.openBlock)(),(0,l.createBlock)(a,{key:0,class:(0,l.normalizeClass)(e.fbarCls),type:"tab-fbar",role:"tabfooter"},{default:(0,l.withCtx)(()=>[(0,l.renderSlot)(e.$slots,"fbar",{},()=>[(0,l.createVNode)(s,{"confirm-text":e.innerConfirmText,"cancel-text":e.innerCancelText,"syno-id":`${e.synoId}-fbar`,onCancel:e.onCancel,onConfirm:e.onConfirm},null,8,["confirm-text","cancel-text","syno-id","onCancel","onConfirm"])])]),_:3},8,["class"])):(0,l.createCommentVNode)("",!0)]),_:3},8,["class","type","order"])),[[c]])}]])},74778:function(e,t,i){"use strict";i.d(t,{e:()=>g});var n=i(82959),o=i(96868),r=i(47696),a=i(2176),s=i(54730),l=i(5317),c=i(9022),d=i(74999),u=i(23886),h=i(63447),p=i(66794);(0,c.z)("toast-close",d.nT);var f=(0,p.Z)((0,h.defineComponent)({name:"Toast",components:{withTransition:(0,l.Q)(h.Transition),vIcon:u.Z},mixins:[o.ZP,r.Z,a.ZP,c.Z],props:{showClose:{type:Boolean,default:void 0},delay:{type:[Number,String,Boolean],default:5e3},onClick:{type:Function,default:s.ZT},text:{type:String,default:""},actionBtnText:{type:String,default:""},actionBtnCls:{type:String,default:""},textCls:{type:String,default:""},onClickActionBtn:{type:Function,default:s.ZT},animate:{type:[Boolean,String],default:!0},icon:{type:[String,Boolean],default:!1},interactive:{type:Boolean,default:!1},onDestroy:{type:Function,default:s.ZT}},data:()=>({prefix:"v-toast",left:0,top:0,destroyTimer:null}),computed:{innerShowClose(){return(0,s.jn)(this.showClose)?this.showClose:!!this.interactive},toastStyle(){return{left:this.left+"px",top:this.top+"px"}},wrapCls(){return[this.prefix,{"has-icon":this.hasIcon,"has-close":this.innerShowClose}]},extendedActionBtnCls(){return[`${this.prefix}-action-btn`,this.actionBtnCls]},extendedTextCls(){return[`${this.prefix}-text`,this.textCls]},delayTime(){return!0===this.delay?5e3:this.delay},delayDestroy(){return!1!==this.delay},hasIcon(){return!!this.icon},transitionName(){return(0,s.HD)(this.animate)?this.animate:"fadeInUp"},hasAnimate(){return!!this.animate}},mounted(){this.delayDestroy&&(this.destroyTimer=window.setTimeout(()=>this.destroy(),this.delayTime))},methods:{destroy(){this.onDestroy?.(),this.$el&&this.$el.parentNode&&this.$el.parentNode.removeChild(this.$el)},doAlign(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=t?.anchorEl??e,n=t?.offset,o=t?.align??"t->t",r=!(0,s.jn)(t?.constrainMode)||t?.constrainMode,a=!(0,s.jn)(t?.absoluteMode)||t?.absoluteMode,l=t?.containerEl??this.getContainerEl(),{x:c,y:d}=this.$alignManager.getAlignToXYv2(this.$refs.root,i,o,{offset:n,constrain:r,absoluteMode:a,containerEl:l});this.left=c,this.top=d},onMouseEnter(){this.interactive&&this.destroyTimer&&(window.clearTimeout(this.destroyTimer),this.destroyTimer=null)},onMouseLeave(){this.delayDestroy&&this.interactive&&(this.destroyTimer&&window.clearTimeout(this.destroyTimer),this.destroyTimer=window.setTimeout(()=>this.destroy(),this.delayTime))}}}),[["render",function(e,t,i,n,o,r){let a=(0,h.resolveComponent)("v-icon"),s=(0,h.resolveComponent)("with-transition");return(0,h.openBlock)(),(0,h.createBlock)(s,{wrap:e.hasAnimate,name:e.transitionName,appear:""},{default:(0,h.withCtx)(()=>[(0,h.createElementVNode)("div",{ref:"root",class:(0,h.normalizeClass)(e.wrapCls),style:(0,h.normalizeStyle)(e.toastStyle),onMouseenter:t[2]||(t[2]=function(){return e.onMouseEnter&&e.onMouseEnter(...arguments)}),onMouseleave:t[3]||(t[3]=function(){return e.onMouseLeave&&e.onMouseLeave(...arguments)})},[e.hasIcon?((0,h.openBlock)(),(0,h.createBlock)(a,{key:0,name:e.icon},null,8,["name"])):(0,h.createCommentVNode)("",!0),(0,h.createElementVNode)("div",{class:(0,h.normalizeClass)(e.extendedTextCls),onClick:t[0]||(t[0]=function(){return e.onClick&&e.onClick(...arguments)})},(0,h.toDisplayString)(e.text),3),e.actionBtnText?((0,h.openBlock)(),(0,h.createElementBlock)("button",{key:1,class:(0,h.normalizeClass)(e.extendedActionBtnCls),onClick:t[1]||(t[1]=()=>e.onClickActionBtn(this))},(0,h.toDisplayString)(e.actionBtnText),3)):(0,h.createCommentVNode)("",!0),e.innerShowClose?((0,h.openBlock)(),(0,h.createBlock)(a,{key:2,name:"toast-close",class:(0,h.normalizeClass)(`${e.prefix}-close-btn`),role:"button","aria-label":e._i18n("common","close"),"svg-icon-set":"set24",onClick:e.destroy},null,8,["class","aria-label","onClick"])):(0,h.createCommentVNode)("",!0)],38)]),_:1},8,["wrap","name"])}]]);let g=function(e,t,i,o){let{destroyFn:r,component:a,anchorEl:s}=(0,n.J)(e,f,{onDestroy:()=>r?.(),...i});return t.appendChild(s),a.doAlign(t,o),a}},70608:function(e,t,i){"use strict";i.d(t,{Z:()=>a});var n=i(76013),o=i(71367),r=i(63447),a=(0,i(66794).Z)((0,r.defineComponent)({name:"TrapFocus",props:{selfFocusable:{type:Boolean,default:!1},focusLast:{type:Boolean,default:!1},bodyClass:{type:Array,default:()=>[]}},emits:["focus"],computed:{innerBodyClass(){return["v-trap-focus-body",...this.bodyClass]}},methods:{shouldFocus(){if(this.$el===document.activeElement){if(this.selfFocusable)return!1}else if(this.$el?.contains(document.activeElement))return!1;return this.selfFocusable?"self":this.focusLast?"last":"first"},focus(){let e=this.shouldFocus();!1!==e&&("self"===e?this.focusTrapper():"last"===e?this.focusLastDescendantInBody():"first"===e&&this.focusFirstDescendantInBody(),(0,o.Qy)(this,"focus"))},focusTrapper(){this.$refs.trapper&&this.$refs.trapper.focus()},focusFirstDescendantInBody(){this.$refs.body&&(0,n.fo)(this.$refs.body)},focusLastDescendantInBody(){this.$refs.body&&(0,n.bg)(this.$refs.body)}}}),[["render",function(e,t,i,n,o,a){return(0,r.openBlock)(),(0,r.createElementBlock)("div",{ref:"trapper",tabindex:"-1",onFocus:t[2]||(t[2]=function(){return e.focus&&e.focus(...arguments)})},[(0,r.createElementVNode)("div",{class:"v-trap-focus-indicator",tabindex:"0",onFocus:t[0]||(t[0]=function(){return e.focusLastDescendantInBody&&e.focusLastDescendantInBody(...arguments)})},null,32),(0,r.createElementVNode)("div",{ref:"body",class:(0,r.normalizeClass)(e.innerBodyClass)},[(0,r.renderSlot)(e.$slots,"default")],2),(0,r.renderSlot)(e.$slots,"alert-last"),(0,r.createElementVNode)("div",{class:"v-trap-focus-indicator",tabindex:"0",onFocus:t[1]||(t[1]=function(){return e.focusFirstDescendantInBody&&e.focusFirstDescendantInBody(...arguments)})},null,32)],544)}]])},64535:function(e,t,i){"use strict";i.d(t,{Z:()=>f});var n=i(63707),o=i(71367),r=i(46001),a=i(77971),s=i(12592),l=i(54730),c=i(7135),d=i(63447),u=i(66794);let h=(0,d.defineComponent)({name:"VirtualScrollbar",extends:r.Z,props:{itemSize:{type:Number,default:void 0},total:{type:Number,default:0},updateBufferItemsNum:{type:Number,default:5},bufferItemsNum:{type:Number,default:10},bufferSize:{type:Number,default:200}},emits:["visible"],data:()=>({bufferStart:0,bufferEnd:0,virtualTotalSize:0,visibleStart:0,visibleEnd:0}),computed:{offsetHeight(){return this.visibleStart*+this.itemSize},offsetStyle(){return{transform:`translateY(${this.offsetHeight}px)`,position:"static"}},ghostStyle(){return{height:this.virtualTotalSize+"px",top:0,left:0,width:"1px",position:"absolute"}}},watch:{total(){this.$nextTick(()=>{this.updateVisible(),this.updateScroll()})},bufferItemsNum(){this.$nextTick(()=>{this.updateVisible(),this.updateScroll()})},itemSize(){this.$nextTick(()=>{this.updateVisible(),this.updateScroll()})}},created(){this.$_scrollTop=void 0},mounted(){this.$nextTick(()=>{(0,a.m)(this.$el,this.onVisibleChanged),(0,s.k)(this.$refs.view,this.onScrollViewportChanged)})},[n.mT.beforeUnmount](){(0,a.j)(this.$el,this.onVisibleChanged),(0,s.S)(this.$refs.view,this.onScrollViewportChanged)},methods:{onScrollViewportChanged(e){this.$_scrollViewportHeight=e.contentRect.height},onVisibleChanged(e){(e.isVisible||0!==e.boundingClientRect.width||0!==e.boundingClientRect.height)&&(this.handleVirtualScroll({checkScrollSticky:!1}),(0,o.Qy)(this,"visible"),this.$nextTick(()=>{this.updateScroll()}))},getBuffer(e){let t=e;return t<0&&(t=0),{bufferStart:t,bufferEnd:t+this.$_scrollViewportHeight}},findAnchor(e,t){let i=0,n=0,o=0;return i=Math.max(Math.min(~~(e/+this.itemSize),this.total),0),n=Math.max(Math.min(~~(t/+this.itemSize),this.total),0),o=this.total*+this.itemSize,{start:i=(0,l.HU)(i-this.bufferItemsNum,0,this.total-1),end:n=(0,l.HU)(n+this.bufferItemsNum,0,this.total-1),total:o}},getVisibleItems(e,t){return this.bufferStart=e,this.bufferEnd=t,this.findAnchor(this.bufferStart,this.bufferEnd)},isScrollSticky(e,t,i){let n=(this.visibleStart+this.updateBufferItemsNum)*+this.itemSize,o=(this.visibleEnd-this.updateBufferItemsNum)*+this.itemSize;return e>this.$_scrollTop&&i>=o||e<this.$_scrollTop&&t<=n},handleVirtualScroll(){let{checkScrollSticky:e=!0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.$refs.view.scrollTop,{bufferStart:i,bufferEnd:n}=this.getBuffer(t);if(!e||this.isScrollSticky(t,i,n)){let{start:e,end:t,total:o}=this.getVisibleItems(i,n);this.renderVisibleItems(e,t,o)}this.$_scrollTop=t},updateVisible(){this.handleVirtualScroll({checkScrollSticky:!1})},renderVisibleItems(e,t,i){this.visibleStart=e,this.visibleEnd=t,this.virtualTotalSize=i},handleScroll(e){"scroll"===e.type&&this.handleVirtualScroll(),r.Z.methods.handleScroll.apply(this,arguments)},scrollToIndex(e){let t=this.itemSize*e;this.$refs.view.scrollTop=t,this.handleVirtualScroll()},ensureVisible(e){(0,c.X5)(e,{scrollMode:"if-needed",behavior:arguments.length>2&&void 0!==arguments[2]&&arguments[2]?"smooth":"auto"})}}}),p={ref:"inner",class:"v-scrollbar-inner"};var f=(0,u.Z)(h,[["render",function(e,t,i,n,o,r){return(0,d.openBlock)(),(0,d.createElementBlock)("div",{ref:"scrollbar",class:(0,d.normalizeClass)(e.wrapperCls)},[((0,d.openBlock)(),(0,d.createBlock)((0,d.resolveDynamicComponent)(e.viewTag),{ref:"view",class:(0,d.normalizeClass)(["v-scrollbar-view",e.viewClass]),style:(0,d.normalizeStyle)(e.viewStyle),onScrollPassive:e.handleScroll},{default:(0,d.withCtx)(()=>[(0,d.createElementVNode)("div",p,[(0,d.createElementVNode)("div",{class:"v-scrollbar-virtual-wrapper",style:(0,d.normalizeStyle)(e.offsetStyle)},[(0,d.renderSlot)(e.$slots,"default",{start:e.visibleStart,end:e.visibleEnd})],4),(0,d.createElementVNode)("div",{style:(0,d.normalizeStyle)(e.ghostStyle)},null,4)],512)]),_:3},40,["class","style","onScrollPassive"])),e.yRailExists?((0,d.openBlock)(),(0,d.createElementBlock)("div",{key:0,ref:"y-rail",class:"y-rail rail",style:(0,d.normalizeStyle)(e.yRailStyle),onTouchstart:t[2]||(t[2]=t=>e.onRailPointerDown(t,"y")),onMousedown:t[3]||(t[3]=t=>e.onRailPointerDown(t,"y"))},[(0,d.createElementVNode)("div",{ref:"y-bar",class:"y-bar bar",style:(0,d.normalizeStyle)(e.yBarStyle),onTouchstart:t[0]||(t[0]=(0,d.withModifiers)(t=>e.onBarPointerDown(t,"y"),["stop"])),onMousedown:t[1]||(t[1]=(0,d.withModifiers)(t=>e.onBarPointerDown(t,"y"),["stop"]))},null,36)],36)):(0,d.createCommentVNode)("",!0),e.xRailExists?((0,d.openBlock)(),(0,d.createElementBlock)("div",{key:1,ref:"x-rail",class:"x-rail rail",style:(0,d.normalizeStyle)(e.xRailStyle),onTouchstart:t[6]||(t[6]=t=>e.onRailPointerDown(t,"x")),onMousedown:t[7]||(t[7]=t=>e.onRailPointerDown(t,"x"))},[(0,d.createElementVNode)("div",{ref:"x-bar",class:"x-bar bar",style:(0,d.normalizeStyle)(e.xBarStyle),onTouchstart:t[4]||(t[4]=(0,d.withModifiers)(t=>e.onBarPointerDown(t,"x"),["stop"])),onMousedown:t[5]||(t[5]=(0,d.withModifiers)(t=>e.onBarPointerDown(t,"x"),["stop"]))},null,36)],36)):(0,d.createCommentVNode)("",!0)],2)}]])},82366:function(e,t,i){"use strict";i.d(t,{Z:()=>f});var n=i(63707),o=i(49098),r=i(23886),a=i(31755),s=i(64794),l=i(54730),c=i(71283),d=i(71367),u=i(63447),h=i(70243),p=(0,u.defineComponent)({name:"Whitetip",components:{vPortal:o.Z,vIcon:r.Z},directives:{tooltip:s.Z},mixins:[(0,a.f)("form-item")],props:{disabled:{type:Boolean,default:!1},content:{type:(0,h.C)([String,Boolean]),default:""},delay:{type:Number,default:300},tooltipOptions:{type:(0,h.C)(Object),default:()=>({})},forceSimple:{type:Boolean,default:!1},portalName:{type:String,default:()=>"whitetip-"+String(Math.round(1e7*Math.random()))},size:{type:(0,h.C)(String),default:void 0,validator:e=>["normal","small",void 0].includes(e)},type:{type:(0,h.C)(String),default:"normal"},transitionTime:{type:(0,h.C)(Array),default:()=>[500,100]},triggerAction:{type:(0,h.C)(String),default:"adaptive",validator:e=>["hover","click","adaptive"].includes(e)},hasPadding:{type:Boolean,default:!0},hasMargin:{type:Boolean,default:void 0},mobileBreakpoint:{type:(0,h.C)([String,Boolean]),default:void 0},tipContainer:{type:(0,h.C)(Function),default:l.ZT}},data:()=>({isFieldDisabled:void 0}),computed:{innerHasMargin(){return(0,l.$K)(this.hasMargin)?this.hasMargin:!this?.["form-item"]?.instance?.inFlexForm},iconCls(){return{"has-margin":this.innerHasMargin,[this.type]:!0}},isMobile(){return this.$breakpointManager?(0,l.$K)(this.mobileBreakpoint)?(0,l.HD)(this.mobileBreakpoint)?this.$breakpointManager.lessAndEqThan(this.mobileBreakpoint):this.mobileBreakpoint:this.$breakpointManager.mobile:((0,c.D8)("please import and use BreakpointManagerPlugin when you are in tree-shaking mode or breakpoint will not active."),!1)},innerTriggerAction(){return"adaptive"===this.triggerAction?this.isMobile?"click":"hover":this.triggerAction},currentDisabled(){return this.disabled||this.isFieldDisabled},innerSize(){return(0,l.$K)(this.size)?this.size:this?.["form-item"]?.instance?.inFlexForm||"white"===this.type?"small":"normal"},whiteTipCls(){return{"v-whitetip-wrapper":!0,disabled:this.currentDisabled,[this.innerSize]:!0}}},created(){this._unregister=this.registerFormItemOnCreated()},[n.mT.beforeUnmount](){this._unregister()},methods:{useSlot(){return!1===this.content},getExtraElements(){return this.$refs.tooltip?._tooltip},hideTooltip(){this.$refs.tooltip?._svc_tooltip_e_hide_cb?.()},onActivate(){(0,d.Qy)(this,"activate")},onDeactivate(){(0,d.Qy)(this,"deactivate")},tipOpts(){let e={content:this.content,cls:"v-whitetip-tooltip text-tip",delay:this.delay,bgOpacity:1,offset:[25,25],attachToElement:!0,interactive:!0,onActivate:this.onActivate,onDeactivate:this.onDeactivate,transitionTime:this.transitionTime,triggerAction:this.innerTriggerAction,tipContainer:this.tipContainer};return this.useSlot()&&(this.forceSimple||(e.cls="v-whitetip-tooltip complex-tip"),e.usePortal=!0,e.portalName=this.portalName),!1===this.hasPadding&&(e.cls="v-whitetip-tooltip no-padding"),Object.assign(e,this.tooltipOptions),e},registerFormItemOnCreated(){let e;return this["form-item"]?(this["form-item"].register(this,t=>{e=t.$watch("isFieldDisabled",e=>this.isFieldDisabled=e,{immediate:!0})}),()=>{e(),this["form-item"].unregister(this)}):l.ZT}}}),f=(0,i(66794).Z)(p,[["render",function(e,t,i,n,o,r){let a=(0,u.resolveComponent)("v-icon"),s=(0,u.resolveComponent)("v-portal"),l=(0,u.resolveDirective)("tooltip");return(0,u.withDirectives)(((0,u.openBlock)(),(0,u.createElementBlock)("div",{ref:"tooltip",class:(0,u.normalizeClass)(e.whiteTipCls),tabindex:"-1"},[(0,u.renderSlot)(e.$slots,"custom",{disabled:e.currentDisabled},()=>[(0,u.createVNode)(a,{class:(0,u.normalizeClass)(["v-whitetip-icon",e.iconCls]),sprite:""},null,8,["class"])]),(0,u.createVNode)(s,{name:e.portalName,to:e.portalName},{default:(0,u.withCtx)(()=>[(0,u.renderSlot)(e.$slots,"default")]),_:3},8,["name","to"])],2)),[[l,e.tipOpts()]])}]])},51633:function(e,t,i){"use strict";i.d(t,{Z:()=>Q});var n=i(59492),o=i(98671),r=i(3957),a=i(47696),s=i(9022),l=i(74999),c=i(54730),d=i(6054),u=i(10158),h=i(31755),p=i(32079),f=i(83717),g=i(63447);let m=(0,g.defineComponent)({name:"ConfigProvider",mixins:[(0,h.J)("config-provider")],props:p.u,render(){return(0,f.FJ)(this).default?.()}});var v=i(31214),b=i(92680),y=i(28618),w=i(23886),_=i(82366),x=i(70608),S=i(12725),C=i(66794);(0,s.z)("about-beta-label-blue",l.m9),(0,s.z)("about-tick-blue",l.BJ);let k={FETCHING:Symbol("fetching"),UPDATE_AVAILABLE:Symbol("update_available"),FAILED:Symbol("failed"),UP_TO_DATE:Symbol("up_to_date"),UNKNOWN:Symbol("unknown")},I=(0,g.defineComponent)({name:"AboutWindowV2",components:{vSpinIcon:r.Z,vConfigProvider:m,vIcon:w.Z,vResizable:v.Z,vDraggable:b.Z,vWindowHeader:y.Z,vTrapFocus:x.Z,vSpin:o.Z,vLayout:S.Z,vWhitetip:_.Z},extends:n.Z,mixins:[a.Z,s.Z],props:{width:{type:[String,Number],default:700},height:{type:[String,Number],default:"auto"},draggable:{type:Boolean,default:!1},maskContainer:{type:[Boolean,Object],default:!0},tagline:{type:String,default:""},icon:{type:String,default:""},copyrightYear:{type:String,default:(new Date).getFullYear().toString()},tosUrl:{type:String,default:"https://www.synology.com/company/legal"},privacyUrl:{type:String,default:"https://www.synology.com/company/legal/privacy"},beta:{type:Boolean,default:!1},title:{type:String,default:""},subscript:{type:[Boolean,String],default:!1},subTitle:{type:[Boolean,String],default:!1},version:{type:String,default:""},fetchVersion:{type:Function,default:c.ZT},releaseNotesUrl:{type:String,default:""}},data:()=>({fetchStatus:k.FETCHING,iconConfig:{all:{value:{type:"svg"}}}}),computed:{isFetchFailed(){return this.fetchStatus===k.FAILED},isFetching(){return this.fetchStatus===k.FETCHING},isUpToDate(){return this.fetchStatus===k.UP_TO_DATE},isUpdateAvailable(){return this.fetchStatus===k.UPDATE_AVAILABLE},versionStatusText(){return this.fetchStatus===k.FETCHING?`${this._i18n("about","check_for_update")}`:this.fetchStatus==k.UPDATE_AVAILABLE?this._i18n("about","update_available"):this.fetchStatus==k.FAILED?"":this.fetchStatus==k.UP_TO_DATE?this._i18n("about","update_up_to_date"):""},aboutWindowCls(){return["v-about-window-v2",...this.windowCls]},aboutHeaderProps(){return{...this.headerProps,title:""}},iconStyle(){return{backgroundImage:this.icon?`url(${this.icon})`:""}},aboutMaskContainer(){return!!this.maskContainer&&{...this.maskContainer,maskCls:["v-about-window-v2-mask"]}}},mounted(){this.hasVersionInfo()&&this.tryFetching()},methods:{async tryFetching(){let{newVersion:e,betaVersion:t}=await this.fetchVersion?.()??{},i=null;(i=e&&t?(0,u.zY)(">",e,t)?e:t:e??t)?(0,u.zY)(">",i,this.version)?this.fetchStatus=k.UPDATE_AVAILABLE:(0,u.zY)("<=",i,this.version)?this.fetchStatus=k.UP_TO_DATE:this.fetchStatus=k.UNKNOWN:this.fetchStatus=k.FAILED},hasVersionInfo:()=>d.Z?._S?.("is_admin"),maskOwner(){this.isComponentType||this.manager&&this.maskContainer&&this.doMaskContainer(this.aboutMaskContainer)}}}),A=["aria-label"],T={class:"v-about-window-v2-body-wrapper"},E={class:"page-wrapper"},R={class:"icon-wrapper"},D={class:"content-wrapper"},O={class:"title-wrapper"},M={class:"title"},N={key:0,class:"subscript"},P={class:"badge-wrapper"},L={key:0,class:"sub-title"},B={key:1,class:"version-wrapper"},F={key:0,class:"version-status"},V={class:"version-num"},z=["href"],H={class:"tagline-wrapper"},W=(0,g.createElementVNode)("div",{class:"divider"},null,-1),Y={class:"footer-wrapper"},U={class:"footer-content"},G={class:"content-row"},Z=["href"],j=(0,g.createElementVNode)("i",{class:"ellipsis"},null,-1),q=["href"],K={class:"content-row copyright"},X={class:"focus-last-alert",tabindex:"0",role:"alert"};var Q=(0,C.Z)(I,[["render",function(e,t,i,n,o,r){let a=(0,g.resolveComponent)("v-window-header"),s=(0,g.resolveComponent)("v-icon"),l=(0,g.resolveComponent)("v-whitetip"),c=(0,g.resolveComponent)("v-spin-icon"),d=(0,g.resolveComponent)("v-trap-focus"),u=(0,g.resolveComponent)("v-resizable"),h=(0,g.resolveComponent)("v-draggable"),p=(0,g.resolveComponent)("v-spin"),f=(0,g.resolveComponent)("v-layout"),m=(0,g.resolveComponent)("v-config-provider"),v=(0,g.resolveDirective)("syno-id");return(0,g.openBlock)(),(0,g.createBlock)(m,{icon:e.iconConfig},{default:(0,g.withCtx)(()=>[(0,g.withDirectives)(((0,g.openBlock)(),(0,g.createBlock)(f,{ref:"_window",class:(0,g.normalizeClass)(e.aboutWindowCls),style:(0,g.normalizeStyle)(e.windowStyle),type:`window.${e.layoutType}`,order:e.layoutOrder,onMousedown:t[1]||(t[1]=t=>e.toFront()),onKeydown:(0,g.withKeys)(e.onEsc,["native","esc"])},{default:(0,g.withCtx)(()=>[e.showHeader?((0,g.openBlock)(),(0,g.createBlock)(a,(0,g.mergeProps)({key:0,ref:"header"},e.aboutHeaderProps,{"is-modalized":"","show-app-icon":!1,class:e.headerCls,onClose:e.onClose,onMinimize:e.onMinimize,onMaximize:e.onMaximize,onFullscreen:e.onFullscreen,onRestore:e.onRestore}),null,16,["class","onClose","onMinimize","onMaximize","onFullscreen","onRestore"])):(0,g.createCommentVNode)("",!0),(0,g.createVNode)(d,{ref:"trapFocus",class:(0,g.normalizeClass)(e.extendedBodyCls)},{"alert-last":(0,g.withCtx)(()=>[(0,g.createElementVNode)("div",X,(0,g.toDisplayString)(e._i18n("desktop","window_last_hint")),1)]),default:(0,g.withCtx)(()=>[(0,g.createElementVNode)("div",{class:"v-trap-focus-indicator",tabindex:"0",role:"dialog","aria-label":e.currentTitle},null,8,A),(0,g.createElementVNode)("div",T,[(0,g.createElementVNode)("div",E,[(0,g.createElementVNode)("div",R,[(0,g.createVNode)(s,{name:"app-icon",size:[72,72],style:(0,g.normalizeStyle)(e.iconStyle),type:"bkg-img","disable-config-override":{type:!0}},null,8,["style"])]),(0,g.createElementVNode)("div",D,[(0,g.createElementVNode)("div",O,[(0,g.createElementVNode)("div",M,[(0,g.createTextVNode)((0,g.toDisplayString)(e.title)+" ",1),e.subscript?((0,g.openBlock)(),(0,g.createElementBlock)("span",N,(0,g.toDisplayString)(e.subscript),1)):(0,g.createCommentVNode)("",!0)]),(0,g.createElementVNode)("div",P,[(0,g.renderSlot)(e.$slots,"badge",{},()=>[e.beta?((0,g.openBlock)(),(0,g.createBlock)(s,{key:0,name:"about-beta-label-blue"})):(0,g.createCommentVNode)("",!0)])])]),e.subTitle?((0,g.openBlock)(),(0,g.createElementBlock)("div",L,(0,g.toDisplayString)(e.subTitle),1)):(0,g.createCommentVNode)("",!0),e.hasVersionInfo()?((0,g.openBlock)(),(0,g.createElementBlock)("div",B,[e.isFetchFailed?(0,g.createCommentVNode)("",!0):((0,g.openBlock)(),(0,g.createElementBlock)("div",F,[(0,g.createElementVNode)("span",null,(0,g.toDisplayString)(e.versionStatusText),1),e.isUpdateAvailable?((0,g.openBlock)(),(0,g.createBlock)(l,{key:0,content:e._i18n("about","update_package_tip"),"tooltip-options":{isHtml:!0},size:"small"},null,8,["content"])):e.isUpToDate?((0,g.openBlock)(),(0,g.createBlock)(s,{key:1,name:"about-tick-blue"})):e.isFetching?((0,g.openBlock)(),(0,g.createBlock)(c,{key:2,class:"about-window-v2-spin-icon"})):(0,g.createCommentVNode)("",!0)])),(0,g.createElementVNode)("div",V,[(0,g.createTextVNode)((0,g.toDisplayString)(e._i18n("update","version"))+": "+(0,g.toDisplayString)(e.version)+" (",1),(0,g.createElementVNode)("a",{class:"release-notes link",href:e.releaseNotesUrl,target:"_blank"},(0,g.toDisplayString)(e._i18n("update","update_dsm_release_note")),9,z),(0,g.createTextVNode)(") ")])])):(0,g.createCommentVNode)("",!0),(0,g.createElementVNode)("div",H,(0,g.toDisplayString)(e.tagline),1)])]),W,(0,g.createElementVNode)("div",Y,[(0,g.createElementVNode)("div",U,[(0,g.createElementVNode)("div",G,[(0,g.createElementVNode)("a",{class:"link terms",href:e.tosUrl,target:"_blank"},(0,g.toDisplayString)(e._i18n("common","terms_of_service")),9,Z),j,(0,g.createElementVNode)("a",{class:"link privacy",href:e.privacyUrl,target:"_blank"},(0,g.toDisplayString)(e._i18n("common","privacy_statements")),9,q)]),(0,g.createElementVNode)("div",K,(0,g.toDisplayString)(e._i18n("copyright","copyright").replace("{0}",e.copyrightYear)),1)])])])]),_:3},8,["class"]),e.resizable?((0,g.openBlock)(),(0,g.createBlock)(u,{key:1,"window-property":e.windowProperty,onResizeEnd:e.onResizeEnd},null,8,["window-property","onResizeEnd"])):(0,g.createCommentVNode)("",!0),e.innerDraggable&&!e.isComponentType?((0,g.openBlock)(),(0,g.createBlock)(h,{key:2,"window-property":e.windowProperty,onDragging:e.setDragging,onDragEnd:e.onDragEnd},null,8,["window-property","onDragging","onDragEnd"])):(0,g.createCommentVNode)("",!0),e.isMasking?((0,g.openBlock)(),(0,g.createElementBlock)("div",{key:3,class:(0,g.normalizeClass)(e.maskCls),onMousedown:t[0]||(t[0]=(0,g.withModifiers)(function(){return e.onMaskMouseDown&&e.onMaskMouseDown(...arguments)},["stop"]))},[(0,g.createVNode)(p,{"only-mask":!e.lastMaskLayer.text,tip:e.lastMaskLayer.text,spinning:e.isMasking,"mask-style":e.maskStyle},null,8,["only-mask","tip","spinning","mask-style"])],34)):(0,g.createCommentVNode)("",!0)]),_:3},8,["class","style","type","order","onKeydown"])),[[g.vShow,e.showWindow],[v]])]),_:3},8,["icon"])}]])},98751:function(e,t,i){"use strict";i.d(t,{Z:()=>y});var n=i(59492),o=i(47696),r=i(63447),a=i(66794);let s=(0,r.defineComponent)({name:"AboutWindow",components:{vModalWindow:n.Z},mixins:[o.Z],props:{name:{type:String,default:""},customName:{type:Array,default:null},desc:{type:String,default:""},icon:{type:String,default:""},copyrightYear:{type:String,default:""},tosUrl:{type:String,default:"https://www.synology.com/company/legal"},privacyUrl:{type:String,default:"https://www.synology.com/company/legal/privacy"},isBeta:{type:Boolean,default:!1},swapNameAndDesc:{type:Boolean,default:!1},theme:{type:Object,default:()=>({dark:!1,customBgColor:""})}},data:()=>({clsPrefix:"v-about-window"}),computed:{windowCls(){return[this.clsPrefix,this.theme.dark?"dark-theme":"light-theme"]},windowStyle(){let e={};return this.theme.customBgColor&&(e.backgroundColor=this.theme.customBgColor),e},nameAndDescCls(){return["name-and-desc",{swap:this.swapNameAndDesc}]},title(){return this.customName?this.customName[0]:this.name},label(){return this.customName?this.customName[1]:""}}}),l={class:"content-top"},c={class:"content-row name"},d={key:0,class:"label"},u={key:1,class:"beta-tag"},h={key:0,class:"content-row desc"},p=(0,r.createElementVNode)("div",{class:"divider"},null,-1),f={class:"content-bottom"},g={class:"content-row links"},m=["href"],v=["href"],b={class:"content-row copyright"};var y=(0,a.Z)(s,[["render",function(e,t,i,n,o,a){let s=(0,r.resolveComponent)("v-modal-window");return(0,r.openBlock)(),(0,r.createBlock)(s,{"syno-id":e.synoId,"show-close":"",draggable:!1,width:"auto",height:"auto","header-cls":`${e.clsPrefix}-header`,"body-cls":`${e.clsPrefix}-body`,"dark-theme":e.theme.dark,class:(0,r.normalizeClass)(e.windowCls),style:(0,r.normalizeStyle)(e.windowStyle)},{"fullsize-window-mask":(0,r.withCtx)(()=>[(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)(`${e.clsPrefix}-mask`)},null,2)]),default:(0,r.withCtx)(()=>[(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)(`${e.clsPrefix}-body-wrapper`)},[(0,r.createElementVNode)("div",l,[(0,r.createElementVNode)("div",{class:"content-row icon",style:(0,r.normalizeStyle)({backgroundImage:`url(${e.icon})`})},null,4),(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)(e.nameAndDescCls)},[(0,r.createElementVNode)("div",c,[(0,r.createTextVNode)((0,r.toDisplayString)(e.title)+" ",1),""!==e.label?((0,r.openBlock)(),(0,r.createElementBlock)("div",d,(0,r.toDisplayString)(e.label),1)):(0,r.createCommentVNode)("",!0),e.isBeta?((0,r.openBlock)(),(0,r.createElementBlock)("div",u)):(0,r.createCommentVNode)("",!0)]),e.desc?((0,r.openBlock)(),(0,r.createElementBlock)("div",h,(0,r.toDisplayString)(e.desc),1)):(0,r.createCommentVNode)("",!0)],2)]),p,(0,r.createElementVNode)("div",f,[(0,r.createElementVNode)("div",g,[(0,r.createElementVNode)("a",{href:e.tosUrl,target:"_blank",class:"terms"},(0,r.toDisplayString)(e._i18n("common","terms_of_service")),9,m),(0,r.createElementVNode)("a",{href:e.privacyUrl,target:"_blank",class:"privacy"},(0,r.toDisplayString)(e._i18n("common","privacy_statements")),9,v)]),(0,r.createElementVNode)("div",b,(0,r.toDisplayString)(e._i18n("copyright","copyright").replace("{0}",e.copyrightYear)),1)])],2)]),_:1},8,["syno-id","header-cls","body-cls","dark-theme","class","style"])}]])},92680:function(e,t,i){"use strict";i.d(t,{Z:()=>l});var n=i(63707),o=i(71367),r=i(7135),a=i(31755),s=i(63447),l=(0,i(66794).Z)((0,s.defineComponent)({name:"Draggable",mixins:[(0,a.f)("window")],props:{windowProperty:{type:Object,default:()=>({})},prefixCls:{type:String,default:void 0}},emits:["dragging","drag-end","window.header"],data:()=>({isDragging:!1,top:void 0,left:void 0,startTop:void 0,startLeft:void 0,width:void 0,height:void 0,currentWidth:void 0,currentHeight:void 0,diffX:void 0,diffY:void 0,maximized:void 0,isFit:void 0,constrainRect:void 0,headerEl:void 0}),computed:{ghostCls(){let e=["v-window-draggable"];return this.prefixCls?e.concat(this.prefixCls):e},ghostStyle(){return{top:`${this.top}px`,left:`${this.left}px`,width:`${this.currentWidth}px`,height:`${this.currentHeight}px`}}},watch:{windowProperty:{deep:!0,immediate:!0,handler(e){this.top=+e.top,this.left=+e.left,this.width=e.width,this.height=e.height,this.maximized=e.maximized,this.constrainRect=e.constrainRect,this.isFit=e.isFit}},async isDragging(e){if((0,o.Qy)(this,"dragging",e),await (0,s.nextTick)(),e){let e=this.window.instance.$el.parentNode||document.body;if(!e)return;let t=this.headerEl.cloneNode(!0);this.$refs.ghost.appendChild(t),e.appendChild(this.$refs.ghost)}}},async mounted(){await (0,s.nextTick)(),this.window.instance.$refs.header?.$el&&(this.headerEl=this.window.instance.$refs.header?.$el,this.disposedFn=(0,r.on)(this.headerEl,"mousedown",e=>this.mouseDown(e)))},[n.mT.beforeUnmount](){this.disposedFn?.()},methods:{mouseMove(e){let{pageX:t,pageY:i,clientX:n,clientY:o}=e;if((0,r.C3)([n,o])||Math.max(Math.abs(t-this.startX),Math.abs(i-this.startY))<5/window.devicePixelRatio)return;this.isDragging||(this.isDragging=!0),this.diffX=t-this.startX,this.diffY=i-this.startY;let a=this.startTop+this.diffY,s=this.startLeft+this.diffX;a<=this.constrainRect.top&&(this.diffY=this.constrainRect.top-this.startTop,a=this.constrainRect.top),(0,r.iv)(this.$refs.ghost,"top",`${a}px`),(0,r.iv)(this.$refs.ghost,"left",`${s}px`)},mouseUp(){this.isDragging=!1,this.$nextTick(()=>{this.activeElement&&(this.activeElement.focus(),delete this.activeElement)}),this.$emit("drag-end",{top:this.startTop+this.diffY,left:this.startLeft+this.diffX})},mouseDown(e){let t;this.isFit||(this.activeElement=document.activeElement,this.currentWidth="auto"===this.width?this.window.instance.getCurrentWidth():+this.width,this.currentHeight="auto"===this.height?this.window.instance.getCurrentHeight():+this.height,this.startX=e.pageX,this.startY=e.pageY,this.startTop=this.top,this.startLeft=this.left,this.diffX=this.diffY=0,(0,r.IH)(document.documentElement,"mouseup",()=>{this.mouseUp(),t?.()}),t=(0,r.on)(document.documentElement,"mousemove",e=>this.mouseMove(e)))}}}),[["render",function(e,t,i,n,o,r){return e.isDragging?((0,s.openBlock)(),(0,s.createElementBlock)("div",{key:0,ref:"ghost",class:(0,s.normalizeClass)(e.ghostCls),style:(0,s.normalizeStyle)(e.ghostStyle)},null,6)):(0,s.createCommentVNode)("",!0)}]])},39787:function(e,t,i){"use strict";i.d(t,{Z:()=>z}),i(95790),i(2850);var n=i(59492),o=i(70608);i(8416),i(93118),i(82766),i(37151),i(20142),i(89909),i(24578);var r=i(63707),a=i(54730),s=i(12592),l=i(7135),c=i(63447),d=i(66794);let u=(0,c.defineComponent)({name:"ProgressBar",props:{title:{type:[String,Boolean],default:""},percentText:{type:[String,Boolean],default:""},percent:{type:[String,Number,Array],default:0},segmentBorder:{type:Object,default:()=>({})},info:{type:[String,Boolean],default:""},paused:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},wait:{type:Boolean,default:!1}},data:()=>({hiddenSegment:new Set}),computed:{hasTitle(){return!1!==this.title},hasPercentText(){return!1!==this.percentText},hasInfo(){return!1!==this.info},isMultipleSegments(){return(0,a.kJ)(this.percent)},segments(){return this.percent.filter(e=>!this.hiddenSegment.has(e.id))},titleTip(){return{overflowOnly:!0,content:this.title}},progressOuterClass(){return{disabled:this.disabled}},progressPercentClass(){return{"progress-bar-inner":!0,paused:this.paused,"progress-bar-inner--waiting":this.wait,"progress-bar-inner--full":parseInt(this.percent,10)>=100}},progressPercentStyle(){return{width:`${(0,a.HU)(+this.percent,0,100)}%`}}},watch:{percent:{handler(e){this.onResize()},immediate:!0}},mounted(){this.$options.disposedFn=(0,s.k)(this.$el,this.onResize.bind(this))},[r.mT.beforeUnmount](){this.$options.disposedFn?.()},methods:{async onResize(){if(this.isMultipleSegments){for(let e of(this.hiddenSegment=new Set,await this.$nextTick(),this.segments)){let t=this.$refs[`seg-${e.id}`]?.[0],i=t?.getBoundingClientRect(),n=parseInt((0,l.iv)(t,"border-right-width"),10);i&&i.width<.9+n&&this.hiddenSegment.add(e.id)}this.hiddenSegment=new Set(this.hiddenSegment)}},getSegmentBorderSize(e){let t=e.border??this.segmentBorder??{};return t?.size??0},getSegmentBorderColor(e){let t=e.border??this.segmentBorder??{};return t?.color??"#FFFFFF"},getSegmentStyle(e){return{width:`${(0,a.HU)(+e.value,0,100)}%`,backgroundColor:e.color,"--border-size":`${this.getSegmentBorderSize(e)}px`,"--border-color":this.getSegmentBorderColor(e)}}}}),h={class:"progress-wrapper"},p={key:0,class:"progress-title-wrapper"},f={key:0,class:"progress-title"},g={key:1,class:"progress-percent"},m={key:0,class:"segments-outer"},v={key:1,class:"progress-info"};var b=(0,d.Z)(u,[["render",function(e,t,i,n,o,r){let a=(0,c.resolveDirective)("tooltip");return(0,c.openBlock)(),(0,c.createElementBlock)("div",h,[e.hasTitle||e.hasPercentText?((0,c.openBlock)(),(0,c.createElementBlock)("div",p,[e.hasTitle?(0,c.withDirectives)(((0,c.openBlock)(),(0,c.createElementBlock)("div",f,[(0,c.createTextVNode)((0,c.toDisplayString)(e.title),1)])),[[a,e.titleTip]]):(0,c.createCommentVNode)("",!0),e.hasPercentText?((0,c.openBlock)(),(0,c.createElementBlock)("div",g,(0,c.toDisplayString)(e.percentText),1)):(0,c.createCommentVNode)("",!0)])):(0,c.createCommentVNode)("",!0),(0,c.createElementVNode)("div",{class:(0,c.normalizeClass)(["progress-bar-outer",e.progressOuterClass])},[e.isMultipleSegments?((0,c.openBlock)(),(0,c.createElementBlock)("div",m,[((0,c.openBlock)(!0),(0,c.createElementBlock)(c.Fragment,null,(0,c.renderList)(e.segments,t=>((0,c.openBlock)(),(0,c.createElementBlock)("div",{key:t.id||t.color,ref_for:!0,ref:`seg-${t.id}`,class:"segment-inner",style:(0,c.normalizeStyle)(e.getSegmentStyle(t))},null,4))),128))])):((0,c.openBlock)(),(0,c.createElementBlock)("div",{key:1,class:(0,c.normalizeClass)(e.progressPercentClass),style:(0,c.normalizeStyle)(e.progressPercentStyle)},null,6))],2),e.hasInfo?((0,c.openBlock)(),(0,c.createElementBlock)("div",v,(0,c.toDisplayString)(e.info),1)):(0,c.createCommentVNode)("",!0)])}]]),y=i(7046),w=i(76293),_=i(32361),x=i(21723),S=i(56280),C=i(47696),k=i(40172),I=i(2184),A=i(71283),T=i(74778),E=i(88446),R=i(10158),D=i(92680);let O=[0,16];function M(e,t,i){if(!(0,a.mf)(e))return void SYNO.Debug.error("Callback should be callable");let n=e.apply(i,[]);n&&n.then&&(0,a.mf)(n.then)||(n=Promise.resolve()),n.then((function(e){(0,a.mf)(t)&&t.apply(i,[])}).bind(i)).catch((function(e){}).bind(i))}let N=(0,c.defineComponent)({name:"MessageBoxWindow",components:{vProgressBar:b,vTrapFocus:o.Z,vPanel:y.Z,vButton:w.Z,vInput:_.Z,vForm:x.Z,vFormItem:S.Z,vDraggable:D.Z},extends:n.Z,mixins:[C.Z,(0,E.W)("messageBoxWindow","MessageBox")],props:{densePadding:{type:Object,default:()=>({sm:40,xxs:20})},footerDirection:{type:[Object,String,Boolean],default:!1},mobileBreakpoint:{type:[String,Boolean,Object],default:()=>({fit:!1,center:"sm"})},loadingType:{type:String,default:"statusbar"},width:{type:[String,Number],default:480},minWidth:{type:[String,Number],default:420},height:{type:[String,Number],default:"auto"},doConfirm:{type:Function,default:void 0},doCancel:{type:Function,default:void 0},doLeftCustom:{type:Function,default:void 0},resizable:{type:Boolean,default:!1},buttons:{type:Object,default:()=>({})}},data(){return{showStatusBar:!1,loading:!1,errorText:void 0,inputPassword:"",statusBarState:"loading",dialogTitle:"",dialogContent:"",prompt:void 0,callbackFn:a.ZT,callbackScope:this,iconCls:void 0,isHtmlContent:!1,innerButtons:(0,k.Z)({leftCustom:{type:"footbar",text:void 0,suffix:"cancel"},cancel:{type:"footbar",text:this._i18n("common","cancel"),suffix:"cancel"},confirm:{type:"footbar",text:this._i18n("common","apply"),suffix:"main"}},this.buttons),messageType:"normal",currentProgress:{percent:void 0,percentText:void 0,info:void 0,title:void 0},resolveFunc:void 0,rejectFunc:void 0,useHtml:void 0,opts:{}}},computed:{innerDensePadding(){return this.getMessageBoxConfigValue("densePadding")},innerFooterDirection(){return!1===this.footerDirection?"row":(0,a.HD)(this.footerDirection)?this.footerDirection:this.$breakpointManager?this.$breakpointManager.getSuitableValue(this.footerDirection):((0,A.D8)("please import and use BreakpointManagerPlugin when you are in tree-shaking mode or breakpoint will not active."),"row")},footerCls(){return this.innerFooterDirection},isPasswordType(){return"password"===this.messageType},isProgressType(){return"progress"===this.messageType},windowCls(){return[this.prefixCls,this.customCls,"v-message-box-window",{"active-win":this.active,"deactive-win":!this.active,blink:this.blink,"is-safari":I.G6,"auto-height":this.autoHeight}]},hasIcon(){return!!this.iconCls},extendedBodyCls(){return["message-box-wrapper",this.bodyCls]},dialogIconWrapperCls(){return["dialog-icon-wrapper",this.iconCls?this.iconCls:""]},dialogIconCls(){return["dialog-icon",this.iconCls?this.iconCls:""]},panelCls(){return["message-box","password"===this.messageType?"is-password":""]},panelBodyCls(){return["message-box-body",this.iconCls?"has-icon":"",this.dialogTitle?"has-title":"","password"===this.messageType?"is-password":""]},progressWrapperCls:()=>["progress-wrapper"],progressPercentClass(){return{"progress-bar-inner":!0,"progress-bar-inner--full":parseInt(this.currentProgress.percent,10)>=100}},progressPercentStyle(){return{width:`${this.currentProgress.percent}%`}}},watch:{buttons:{handler(e){this.innerButtons=(0,k.Z)(this.innerButtons,this.buttons)},deep:!0}},methods:{async doBreakpointFit(e){let t=(0,a.Kn)(this.innerDensePadding)?this.$breakpointManager.getSuitableValue(this.innerDensePadding):this.innerDensePadding;await this.fitContainer({padding:[t,0],fit:"width",pos:"center"})},async doClose(){let{payload:e={}}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.owner;t&&(t.messageBox=null),this.hideFromOwner()&&(this.owner=null),await n.Z.methods.doClose.apply(this,arguments)},async onLeftCustomButton(){if(this.doLeftCustom){let e=await this.doLeftCustom();if(!1===e)return;if((0,a.$K)(e))return this.resolveFunc(e)}this.resolveFunc("leftCustom")},async onEsc(e){return!!this.closeByEscKey&&(e.stopPropagation(),e.preventDefault(),this.onCancelButton())},async onCancelButton(){if(this.doCancel){let e=await this.doCancel();if(!1===e)return;if((0,a.$K)(e))return this.resolveFunc(e)}await this.onClose(),this.resolveFunc("cancel")},async onConfirmButton(){if(this.doConfirm){let e=await this.doConfirm();if(!1===e)return;if((0,a.$K)(e))return this.resolveFunc(e)}if("password"===this.messageType)return this.onPasswordConfirm();await this.onClose(),this.resolveFunc("confirm")},onArrowKeydown(e){if(!e)return;let t=[this.$refs.leftCustomBtn,this.$refs.cancelBtn,this.$refs.confirmBtn].filter(e=>e).filter(e=>e.$el);if(0===t.length)return;let i="ArrowLeft"===e.key?-1:+("ArrowRight"===e.key),n=t.findIndex(t=>t.$el===e.target);t[Math.min(Math.max(0,n+i),t.length-1)].$el.focus()},clearStatus(){this.setStatus("clear")},setStatusBusy(e,t){this.setStatus("loading")},setStatus(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"loading",t=arguments.length>1?arguments[1]:void 0;"clear"===e?(this.loading=!1,this.showStatusBar=!1):"loading"===e?(this.loading=!0,this.statusBarState="loading",this.showStatusBar=!0):"error"===e&&(this.loading=!1,this.statusBarState="error",this.showStatusBar=!0,this.errorText=t)},async onPasswordConfirm(){this.setStatus("loading");try{await (0,R.rl)({api:"SYNO.Core.User.PasswordConfirm",method:"auth",version:1,encryption:["password"],params:{password:this.inputPassword}}),await this.onClose(),this.resolveFunc("confirm")}catch(e){this.setStatus("error",SYNO.API.Errors.core[e.code])}},showMessage(e){this.opts=e,this.currentTitle=e.title,this.dialogTitle=e.title,this.dialogContent=e.msg,this.iconCls=e.iconCls,this.currentProgress=e.progress,this.messageType=e.type,e.width&&(this.currentWidth=e.width),e.height&&(this.currentHeight=e.height),e.isHtmlContent&&(0,A.Rn)("isHtmlContent","useHtml",this),this.useHtml=e.useHtml||e.isHtmlContent,this.innerButtons=(0,k.Z)({leftCustom:{type:"footbar",text:void 0,suffix:"cancel"},cancel:{type:"footbar",text:this._i18n("common","cancel"),suffix:"cancel"},confirm:{type:"footbar",text:this._i18n("common","apply"),suffix:"main"}},this.buttons,e.buttons??{})},actionDefer(){return new Promise((e,t)=>{this.resolveFunc=e,this.rejectFunc=t})},alert(e,t,i){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return i=(0,k.Z)({leftCustom:{text:null},cancel:{text:null},confirm:{type:"footbar",text:this._i18n("common","apply"),suffix:"main"}},this.buttons,i??{}),this.showMessage(Object.assign({title:e,msg:t,type:"normal",buttons:i},n)),this.$nextTick(()=>{this.alignCenterToOwner()}),this.actionDefer()},confirm(e,t,i){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return i=(0,k.Z)({leftCustom:{text:null},cancel:{type:"footbar",text:this._i18n("common","cancel")},confirm:{type:"footbar",text:this._i18n("common","apply"),suffix:"main"}},this.buttons,i??{}),this.$nextTick(()=>{this.alignCenterToOwner()}),this.showMessage(Object.assign({title:e,msg:t,type:"normal",buttons:i},n)),this.actionDefer()},async confirmLostChange(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};i=(0,k.Z)({leftCustom:{text:this._i18n("common","dont_save"),type:"footbar"},cancel:{type:"footbar",text:this._i18n("common","cancel")},confirm:{text:this._i18n("common","save"),suffix:"main",type:"footbar"}},this.buttons,i??{});let o=await this.confirm(e,t||this._i18n("common","confirm_lostchange_without_save"),i,n);return"leftCustom"===o?(await this.onClose(),"dont_save"):"confirm"===o?"save":"cancel"===o?"cancel":o},confirmDelete(e,t,i){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return i=(0,k.Z)({leftCustom:{text:null},cancel:{type:"footbar",text:this._i18n("common","cancel")},confirm:{text:this._i18n("common","delete"),suffix:"red",type:"footbar"}},this.buttons,i??{}),this.$nextTick(()=>{this.alignCenterToOwner()}),this.showMessage(Object.assign({title:e,msg:t,type:"normal",buttons:i},n)),this.actionDefer()},progress(e,t,i,n,o){let r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};return this.updateProgress(e,t,i,n,o,r),this.$nextTick(()=>{this.alignCenterToOwner()}),this.actionDefer()},wait(e,t,i){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return i=(0,k.Z)({leftCustom:{text:null},cancel:{text:null},confirm:{text:null}},this.buttons,i??{}),this.showMessage(Object.assign({progress:{title:e,info:t,wait:!0},buttons:i,type:"progress"},n)),this.actionDefer()},updateProgress(e,t,i,n,o){let r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};t*=1,n=(t=Math.max(0,t=Math.min(100,t)))?`${t}%`:n,o=(0,k.Z)({leftCustom:{text:null},cancel:{type:"footbar",text:this._i18n("common","cancel")},confirm:{text:this._i18n("common","hide"),suffix:"main",type:"footbar"}},this.buttons,o??{}),this.showMessage(Object.assign({progress:{title:e,percentText:n,percent:t,info:i},buttons:o,type:"progress"},r))},password(e,t,i){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return e=e||this._i18n("common","enter_password_to_continue"),t=t||this._i18n("common","enter_user_password"),i=(0,k.Z)({leftCustom:{text:null},cancel:{type:"footbar",text:this._i18n("common","cancel")},confirm:{text:this._i18n("common","submit"),suffix:"red",type:"footbar"}},this.buttons,i??{}),this.showMessage(Object.assign({title:e,msg:t,type:"password",buttons:i},n)),this.$nextTick(()=>{this.alignCenterToOwner()}),this.actionDefer()},getToastBox(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=this.getWindowEl();t=(0,k.Z)({text:e},t),(0,T.e)(this.$.appContext.app,this.$el,t,{constrainMode:!1,absoluteMode:!0,anchorEl:i,containerEl:i,offset:O,align:"t->t"})},async confirmLostChangePromise(e,t,i,n,o){let r,s={};if((0,a.mf)(e))r=e;else{if(!(0,a.Kn)(e))return void SYNO.Debug.error("func should be object(for promise) or function(for callback)");s=e}let l=s.save,c=s.dontSave,d=s.cancel,u=s.confirmText;i=i||a.ZT,n=n||a.ZT,o=o||a.ZT;let h=await this.confirm("",u||this._i18n("common","confirm_lostchange_without_save"),{leftCustom:{text:this._i18n("common","dont_save"),type:"footbar"},cancel:{type:"footbar",text:this._i18n("common","cancel")},confirm:{text:this._i18n("common","save"),suffix:"main",type:"footbar"}});"leftCustom"===h&&this.onClose(),(0,a.mf)(r)?r.apply(t):((0,a.mf)(i)&&i.apply(t,[]),"confirm"===h?M(l,n,t):"cancel"===h?M(d,o,t):"leftCustom"===h&&M(c,n,t))}}}),P=["aria-label"],L={key:0,class:"dialog-title"},B=["innerHTML"],F={key:1,class:"dialog-content"},V={class:"focus-last-alert",tabindex:"0",role:"alert"};var z=(0,d.Z)(N,[["render",function(e,t,i,n,o,r){let a=(0,c.resolveComponent)("v-progress-bar"),s=(0,c.resolveComponent)("v-input"),l=(0,c.resolveComponent)("v-form-item"),d=(0,c.resolveComponent)("v-form"),u=(0,c.resolveComponent)("v-button"),h=(0,c.resolveComponent)("v-panel"),p=(0,c.resolveComponent)("v-trap-focus"),f=(0,c.resolveComponent)("v-draggable"),g=(0,c.resolveDirective)("syno-id");return(0,c.withDirectives)(((0,c.openBlock)(),(0,c.createElementBlock)("div",{ref:"_window",class:(0,c.normalizeClass)(e.windowCls),style:(0,c.normalizeStyle)(e.windowStyle),onMousedown:t[2]||(t[2]=t=>e.toFront()),onKeydown:[t[3]||(t[3]=(0,c.withKeys)(function(){return e.onArrowKeydown&&e.onArrowKeydown(...arguments)},["left"])),t[4]||(t[4]=(0,c.withKeys)(function(){return e.onArrowKeydown&&e.onArrowKeydown(...arguments)},["right"])),t[5]||(t[5]=(0,c.withKeys)(function(){return e.onEsc&&e.onEsc(...arguments)},["esc"]))]},[(0,c.createVNode)(p,{ref:"trapFocus","focus-last":"",class:(0,c.normalizeClass)(e.extendedBodyCls)},{"alert-last":(0,c.withCtx)(()=>[(0,c.createElementVNode)("div",V,(0,c.toDisplayString)(e._i18n("desktop","window_last_hint")),1)]),default:(0,c.withCtx)(()=>[(0,c.createElementVNode)("div",{class:"v-trap-focus-indicator",tabindex:"0",role:"alertdialog","aria-label":e.currentTitle||e.dialogContent},null,8,P),(0,c.createVNode)(h,{class:(0,c.normalizeClass)(e.panelCls),"show-status-bar":e.showStatusBar,loading:e.loading,"loading-type":e.loadingType,"status-bar-state":e.statusBarState,"error-text":e.errorText,"syno-id":`${e.synoId}-panel`,"onUpdate:showStatusBar":t[1]||(t[1]=t=>e.showStatusBar=t)},{body:(0,c.withCtx)(()=>[e.isProgressType?((0,c.openBlock)(),(0,c.createBlock)(a,{key:0,title:e.currentProgress.title,"percent-text":e.currentProgress.percentText,percent:e.currentProgress.percent,info:e.currentProgress.info,wait:e.currentProgress.wait},null,8,["title","percent-text","percent","info","wait"])):((0,c.openBlock)(),(0,c.createElementBlock)("div",{key:1,class:(0,c.normalizeClass)(e.panelBodyCls)},[e.hasIcon?((0,c.openBlock)(),(0,c.createElementBlock)("div",{key:0,class:(0,c.normalizeClass)(e.dialogIconWrapperCls)},[(0,c.createElementVNode)("div",{class:(0,c.normalizeClass)(e.dialogIconCls)},null,2)],2)):(0,c.createCommentVNode)("",!0),(0,c.renderSlot)(e.$slots,"title",{title:e.dialogTitle,opts:e.opts},()=>[e.dialogTitle?((0,c.openBlock)(),(0,c.createElementBlock)("div",L,[(0,c.renderSlot)(e.$slots,"dialog-title",{},()=>[(0,c.createTextVNode)((0,c.toDisplayString)(e.dialogTitle),1)])])):(0,c.createCommentVNode)("",!0)]),(0,c.renderSlot)(e.$slots,"content",{content:e.dialogContent,opts:e.opts},()=>[e.useHtml?((0,c.openBlock)(),(0,c.createElementBlock)("div",{key:0,class:"dialog-content",innerHTML:e.dialogContent},null,8,B)):e.dialogContent?((0,c.openBlock)(),(0,c.createElementBlock)("div",F,[(0,c.renderSlot)(e.$slots,"dialog-content",{},()=>[(0,c.createTextVNode)((0,c.toDisplayString)(e.dialogContent),1)])])):(0,c.createCommentVNode)("",!0),e.isPasswordType?((0,c.openBlock)(),(0,c.createBlock)(d,{key:2,"syno-id":`${e.synoId}-password-form`},{default:(0,c.withCtx)(()=>[(0,c.createVNode)(l,{class:"password-form-item",label:e._i18n("common","password")+e._i18n("common","pure_colon"),"syno-id":`${e.synoId}-password-form-item`},{default:(0,c.withCtx)(()=>[(0,c.createVNode)(s,{modelValue:e.inputPassword,"onUpdate:modelValue":t[0]||(t[0]=t=>e.inputPassword=t),name:"password",type:"password","syno-id":`${e.synoId}-password-form-input`},null,8,["modelValue","syno-id"])]),_:1},8,["label","syno-id"])]),_:1},8,["syno-id"])):(0,c.createCommentVNode)("",!0)])],2))]),fbar:(0,c.withCtx)(()=>[(0,c.renderSlot)(e.$slots,"footbar",{buttons:e.innerButtons,opts:e.opts},()=>["row"===e.innerFooterDirection&&e.innerButtons.leftCustom.text?((0,c.openBlock)(),(0,c.createElementBlock)("div",{key:0,class:(0,c.normalizeClass)(["default pull-left button-region",e.footerCls])},[(0,c.createVNode)(u,(0,c.mergeProps)({ref:"leftCustomBtn","syno-id":`${e.synoId}-fbar-cancel`},e.innerButtons.leftCustom,{onClick:e.onLeftCustomButton}),{default:(0,c.withCtx)(()=>[(0,c.createTextVNode)((0,c.toDisplayString)(e.innerButtons.leftCustom.text),1)]),_:1},16,["syno-id","onClick"])],2)):(0,c.createCommentVNode)("",!0),(0,c.createElementVNode)("div",{class:(0,c.normalizeClass)(["default pull-right button-region",e.footerCls])},["column-reverse"===e.innerFooterDirection&&e.innerButtons.leftCustom.text?((0,c.openBlock)(),(0,c.createBlock)(u,(0,c.mergeProps)({key:0,ref:"leftCustomBtn","syno-id":`${e.synoId}-fbar-cancel`},e.innerButtons.leftCustom,{onClick:e.onLeftCustomButton}),{default:(0,c.withCtx)(()=>[(0,c.createTextVNode)((0,c.toDisplayString)(e.innerButtons.leftCustom.text),1)]),_:1},16,["syno-id","onClick"])):(0,c.createCommentVNode)("",!0),e.innerButtons.cancel.text?((0,c.openBlock)(),(0,c.createBlock)(u,(0,c.mergeProps)({key:1,ref:"cancelBtn","syno-id":`${e.synoId}-fbar-cancel`},e.innerButtons.cancel,{onClick:e.onCancelButton}),{default:(0,c.withCtx)(()=>[(0,c.createTextVNode)((0,c.toDisplayString)(e.innerButtons.cancel.text),1)]),_:1},16,["syno-id","onClick"])):(0,c.createCommentVNode)("",!0),e.innerButtons.confirm.text?((0,c.openBlock)(),(0,c.createBlock)(u,(0,c.mergeProps)({key:2,ref:"confirmBtn","syno-id":`${e.synoId}-fbar-commit`},e.innerButtons.confirm,{onClick:e.onConfirmButton}),{default:(0,c.withCtx)(()=>[(0,c.createTextVNode)((0,c.toDisplayString)(e.innerButtons.confirm.text),1)]),_:1},16,["syno-id","onClick"])):(0,c.createCommentVNode)("",!0)],2)])]),_:3},8,["class","show-status-bar","loading","loading-type","status-bar-state","error-text","syno-id"])]),_:3},8,["class"]),e.isPasswordType?((0,c.openBlock)(),(0,c.createBlock)(f,{key:0,"window-property":e.windowProperty,onDragging:e.setDragging,onDragEnd:e.onDragEnd},null,8,["window-property","onDragging","onDragEnd"])):(0,c.createCommentVNode)("",!0)],38)),[[c.vShow,e.showWindow],[g]])}]])},59492:function(e,t,i){"use strict";i.d(t,{Z:()=>H});var n=i(63707),o=i(71367),r=i(70608),a=i(88446),s=i(96868),l=i(47696),c=i(43319);i(95790),i(5556);var d=i(94904),u=i(54730),h=i(10158),p=i(63447),f=(0,p.defineComponent)({emits:["show"],data:()=>({active:!1}),async mounted(){this.defaultFocus&&(0,p.nextTick)(()=>{this.focus()})},methods:{isVisible(){return!this.hidden},getTitle(){return this.currentTitle},show(e,t,i){t=t||u.ZT,this.hidden=!1,this.toFront({focus:!!this.defaultFocus&&"default"}),(0,p.nextTick)(()=>{t?.apply(i??this)})},focus(){this.$refs.trapFocus&&this.$refs.trapFocus.focus()},toFront(){let{focus:e="default"}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.manager;t&&(t.bringToFront(this)&&"default"===e||"force"===e)&&window.setTimeout(()=>{this.focus()},0)},alignTo(e){},getWidth(){return this.getCurrentWidth()},getHeight(){return this.getCurrentHeight()},setPosition(e,t){this.left=e,this.top=t},getSize(){return{width:this.width,height:this.height}},getGroupWinAccessTime(e){return[this,...(0,d.Z)(this,"modalWins",[])].reduce((t,i)=>Math.max(t,(e?e(i.id):i._lastAccess)||0),0)},getTopWin(){let e=this;for(;e.owner;)if(e=e.owner,(0,h.mV)()?.Window&&e instanceof(0,h.mV)().Window)return e.getTopWin();return e},getMountEl(){let e=this.getTopWin();return(0,h.mV)()?.Window&&e instanceof(0,h.mV)().Window?e.el.dom.parentElement:e._isVue&&e.$el.parentElement?e.$el.parentElement:document.querySelector("#sds-desktop")||document.querySelector("body")},setActive(e){let t;this.active=e;let i=this.getTopWin();if((0,h.mV)()?.Window&&(0,h.mV)().Window,t=i.taskButton,this.active){for(let e of(t&&t.setState("active"),this.modalWins))e.hideForMinimize&&(delete e.hideForMinimize,e.show());(0,h.fm)()?.SDS?.StatusNotifier&&SYNO.SDS.StatusNotifier.fireEvent("windowActivate",this)}else t&&t.setState("deactive")},afterShow(){this.$emit("show")},isModalized(){return this.modal},maximize(){return this.onMaximize()},restore(){return this.onRestore()},close(e){return this.onClose(e)},minimize(){return this.onMinimize()},getEl(){return{dom:this.$el,getSize:this.getSize}}}}),g=i(31755),m=i(31214),v=i(92680),b=i(28618),y=i(71283),w=i(7135),_=i(60129),x=i(74778),S=i(98671),C=i(12725),k=i(7434),I=i(2184),A=i(12592),T=i(86658),E=i(91229),R=i(40172),D=i(19257),O=i(93128);let M={OWNER:Symbol("owner"),STATUS:Symbol("status")};function N(e,t){e.removeModalWindow(t),e.unmask(),t.owner=null}let P="window-inject",L=(0,p.defineComponent)({name:T.IA,components:{vResizable:m.Z,vDraggable:v.Z,vWindowHeader:b.Z,vTrapFocus:r.Z,vSpin:S.Z,vLayout:C.Z},mixins:[s.ZP,f,l.Z,(0,g.J)("window"),(0,g.J)("adaptive-container-root"),(0,a.W)("window")],inject:{[P]:{from:O.k,default:u.ZT}},props:{id:{type:String,default:()=>`syno-${(0,c.V)()}`},inline:{type:Boolean,default:!1},toggleGrayOverlay:{type:Boolean,default:!0},closable:{type:Boolean,default:!0},minimizable:{type:Boolean,default:!0},maximizable:{type:Boolean,default:!0},width:{type:[String,Number],default:300},height:{type:[String,Number],default:300},minWidth:{type:[String,Number],default:void 0},minHeight:{type:[String,Number],default:void 0},maxWidth:{type:[String,Number],default:void 0},maxHeight:{type:[String,Number],default:void 0},showHelp:{type:Boolean,default:!1},showMinimize:{type:Boolean,default:!0},showMaximize:{type:Boolean,default:!0},showFullscreen:{type:Boolean,default:!1},showClose:{type:Boolean,default:!0},beforeClose:{type:Function,default:u.ZT},beforeMinimize:{type:Function,default:u.ZT},beforeMaximize:{type:Function,default:u.ZT},maximizeHook:{type:Function,default:u.ZT},minimizeHook:{type:Function,default:u.ZT},restoreHook:{type:Function,default:u.ZT},fullscreenHook:{type:Function,default:u.ZT},closeHook:{type:Function,default:u.ZT},title:{type:String,default:void 0},resizable:{type:Boolean,default:!1},resizeHandles:{type:String,default:"all"},draggable:{type:Boolean,default:!0},helpParams:{type:String,default:void 0},alwaysOnTop:{type:[Boolean,Function],default:!1},isSkipActive:{type:[Boolean,Function],default:!1},customCls:{type:String,default:""},type:{type:String,validator:e=>["launch","component"].includes(e),default:"launch"},layoutType:{type:String,default:"none"},layoutOrder:{type:Number,default:0},mobileBreakpoint:{type:[String,Boolean,Object],default:()=>({fit:"xxs",center:"sm"})},stickyCenter:{type:Boolean,default:!1},defaultFocus:{type:Boolean,default:!0},closeByEscKey:{type:Boolean,default:!0},onHelp:{type:Function,default:void 0}},emits:["resize","close","zindex-changed","window-resize","hide","maximize","restore"],data(){return{name:void 0,prefixCls:"v-window",closeDisabled:!1,isFit:!1,currentTitle:void 0,initialized:!1,iconUrl:void 0,formalTitle:void 0,top:0,left:0,currentWidth:0,currentHeight:0,dragging:!1,hidden:!0,maximized:!1,blink:!1,autoWidth:!1,autoHeight:!1,isMobile:!1,isStandalone:!1,isFullsize:!1,isStandaloneMainWindow:!1,lastFocusElement:_.s?null:document.activeElement,forceAlwaysOnTop:!1,containerMasked:!1,constrainRect:{left:0,right:0,bottom:0,top:0},maskStack:[],statusMaskInfo:{opacity:void 0,text:this._i18n("common","loading")},maskInfo:{opacity:void 0,text:this._i18n("common","loading")},onDestroy:u.ZT,onMinimized:u.ZT,svc:!0}},computed:{isLastMaskByOwner(){return this.lastMaskLayer?.type===M.OWNER},lastMaskLayer(){return this.maskStack[this.maskStack.length-1]},innerConfigConsumerWindow(){return this.configConsumerWindow??this.name},innerDraggable(){return this.getWindowConfigValue("draggable")},innerMinHeight(){return this[`get${this.syntax}ConfigValue`]("minHeight")},blinkWhenTouched(){return this.isLastMaskByOwner},showWindow(){return this.isComponentType||!this.hidden&&!this.dragging},maskInnerCls(){return`${this.prefixCls}-mask-inner`},maskCls(){return`${this.prefixCls}-mask`},maskStyle(){return{opacity:this.lastMaskLayer?.opacity,backgroundColor:"#FFFFFF"}},windowCls(){return[this.prefixCls,{"active-win":this.active,"deactive-win":!this.active,blink:this.blink,"is-safari":I.G6,"auto-height":this.autoHeight,"mobile-fit":this.inFitBreakpoint}]},headerProps(){return{inMobile:this.inFitBreakpoint,showHelp:this.showHelp,showFullscreen:this.showFullscreen,showMaximize:!this.inFitBreakpoint&&!this.isStandaloneMainWindow&&this.showMaximize,showMinimize:!this.isStandalone&&this.showMinimize,showClose:!this.isStandaloneMainWindow&&this.showClose,draggable:this.innerDraggable,iconUrl:this.iconUrl,title:this.currentTitle,maximized:this.maximized}},windowProperty(){return{top:this.top,left:this.left,width:this.autoWidth?"auto":this.currentWidth,height:this.autoHeight?"auto":this.currentHeight,minWidth:this.minWidth,minHeight:this.innerMinHeight,maxWidth:this.maxWidth,maxHeight:this.maxHeight,maximized:this.maximized,hidden:this.hidden,constrainRect:this.constrainRect,resizeHandles:this.resizeHandles,isFit:this.isFit}},windowStyle(){let e="width"===this.isFit||"both"===this.isFit,t="height"===this.isFit||"both"===this.isFit;return{position:this.isComponentType?"relative":"absolute",width:!e&&this.autoWidth?"auto":`${this.currentWidth}px`,height:!t&&this.autoHeight?"auto":`${this.currentHeight}px`,minWidth:e?"auto":!!this.minWidth&&`${this.minWidth}px`,minHeight:e?"auto":!!this.innerMinHeight&&`${this.innerMinHeight}px`,maxWidth:t?"none":!!this.maxWidth&&`${this.maxWidth}px`,maxHeight:t?"none":!!this.maxHeight&&`${this.maxHeight}px`,top:`${this.top}px`,left:`${this.left}px`}},isComponentType(){return"component"===this.type},canMinimize(){return this.minimizable},isFixSizeMode(){return this.hidden||!!this.isFit},inFitBreakpoint(){return this.inBreakpoint("fit","xxs")},inCenterBreakpoint(){return this.inBreakpoint("center","sm")},inMobileBreakpoint(){return this.inFitBreakpoint||this.inCenterBreakpoint},isMasking(){return this.maskStack.length>0}},watch:{title:{immediate:!0,handler(e){this.currentTitle=e}},hidden:{async handler(e){e?this.setActive(!1):(this.setActive(!0),this.toFront({focus:!!this.defaultFocus&&"default"}),this.afterShow(),await this.$nextTick(),this.setIntrinsicSize())}},width:{immediate:!0,async handler(e){let t=this[`get${this.syntax}ConfigValue`]("width")||e;"auto"===t?(this.autoWidth=!0,await this.$nextTick(),this.setIntrinsicWidth()):(this.currentWidth=+t,this.autoWidth=!1)}},height:{immediate:!0,async handler(e){"auto"===e?(this.autoHeight=!0,await this.$nextTick(),this.setIntrinsicHeight()):(this.currentHeight=+e,this.autoHeight=!1)}},isComponentType:{immediate:!0,handler(e){e&&!this.initialized&&this.init()}}},[n.mT.beforeUnmount](){for(let e of this.modalWins)e?.doClose?.();this.modalWins=[],this.messageBox=null,this.unWindowResize?.(),this.unResize?.(),this.unBreakpointWatch?.()},created(){this.modalWins=[],this[P]&&(this[P].window=this)},async mounted(){let e=(0,E.Z)(()=>{this.onWindowResize(),this.onSticky(),(0,o.Qy)(this,"window-resize")},0);this.unResize=(0,A.k)(this.getWindowEl(),this.onSticky,this),this.unWindowResize=(0,w.on)(window,"resize",e),this.unBreakpointWatch=this.$watch(()=>this.$breakpointManager.current,()=>{e()}),await this.$nextTick(),this.initDraggable()},methods:{getWindowEl(){return this.$refs._window?.$el??this.$refs._window},getAdaptiveContainer(){return this.appInstance?.fullsize?document.body:null},setDestroyCallback(e){this.onDestroy=e},setMinimizedCallback(e){this.onMinimized=e},destroy(){this.onDestroy?.()},registerManager(e){return e?this.manager=e:this.$windowManager.isActive()&&(this.manager=this.$windowManager),this.manager?.register(this),()=>{this.manager?.unregister(this)}},pushModalWindow(e){this.modalWins.push(e)},inBreakpoint(e,t){return!this.$breakpointManager&&this.mobileBreakpoint?((0,y.D8)("please import and use BreakpointManagerPlugin when you are in tree-shaking mode or breakpoint will not active."),!1):(0,u.HD)(this.mobileBreakpoint)?this.mobileBreakpoint&&this.$breakpointManager?.lessAndEqThan(this.mobileBreakpoint):(0,u.Kn)(this.mobileBreakpoint)?!1!==this.mobileBreakpoint?.[e]&&this.$breakpointManager?.lessAndEqThan(this.mobileBreakpoint?.[e]??t):this.mobileBreakpoint},init(e,t){this.constrainRect=this.getConstrainRect(),this.initialized=!0,this.appInstance=t},getConstrainRect(){let e=(0,k.F)(this);if(!e)return{top:0,left:0,bottom:0,right:0};let{top:t,left:i,bottom:n,right:o}=e.getBoundingClientRect();return{top:t,left:i,bottom:n,right:o}},async doBreakpointFit(){this.inFitBreakpoint?await this.fitContainerWithTaskbar():this.inCenterBreakpoint&&await this.fitContainer({padding:[this.manager.densePadding,0],fit:"width",pos:"center"})},onSticky(){this.stickyCenter&&this.alignCenterToContainer()},onWindowResize(){this.isComponentType||(this.isFullsize?this.fitContainer():this.maximized?this.fitContainerWithTaskbar():this.inMobileBreakpoint?this.doBreakpointFit():(this.doConstrain(),this.restoreSizePos()))},setIntrinsicSize(){this.setIntrinsicHeight(),this.setIntrinsicWidth()},setIntrinsicHeight(){this.isFixSizeMode||(this.currentHeight=this.getWindowEl().offsetHeight)},setIntrinsicWidth(){this.isFixSizeMode||(this.currentWidth=this.getWindowEl().offsetWidth)},doUnmaskContainer(){this.manager.unmaskContainer&&this.manager.unmaskContainer(this.id),this.containerMasked=!1},doMaskContainer(e){this.manager.maskContainer&&this.manager.maskContainer(this.id,e),this.containerMasked=!0},tryConstrainHeight(e){let{isFullsize:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=this.getCurrentHeight(),n=this.getFullHeight(e,{withinTaskbar:t});n<this.innerMinHeight&&(n=this.innerMinHeight),this.constrainHeight(n,i)},constrainHeight(e,t){this.hidden||t>e&&(this.autoHeight=!1,this.currentHeight=e)},doConstrain(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,k.F)(this),t=this.$alignManager.getConstrainToXY(e,this.getWindowEl());(0,u.kJ)(t)&&(t[0]!==this.left||t[1]!==this.top)&&this.setPosition(t[0],t[1]),this.tryConstrainHeight(e,{isFullsize:!0})},getCurrentWidth(){let e=this.getWindowEl();return!0===this.autoWidth?e?.offsetWidth:this.currentWidth},getCurrentHeight(){let e=this.getWindowEl();return!0===this.autoHeight?e?.offsetHeight:this.currentHeight},setForceAlwaysOnTop(e){this.forceAlwaysOnTop=e},isAlwaysOnTop(){return!!this.forceAlwaysOnTop||((0,u.jn)(this.alwaysOnTop)?this.alwaysOnTop:this.alwaysOnTop())},initDraggable(){this.broadcast("Draggable","window.header",this.$refs.header)},setDragging(e){this.dragging=e},onDragEnd(e){let{top:t,left:i}=e;this.top=t,this.left=i},onResizeEnd(e){let{top:t,left:i,width:n,height:r}=e;this.currentWidth=n,this.currentHeight=r,this.autoWidth=!1,this.autoHeight=!1,this.top=t,this.left=i,(0,o.Qy)(this,"resize",{top:t,left:i,width:n,height:r}),this.$nextTick(()=>{(0,o.Qy)(this,"window-resize")})},async onEsc(e){return!!this.closeByEscKey&&(e.stopPropagation(),e.preventDefault(),this.onClose())},async onClose(){let{forceClose:e=!1,payload:t={}}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return!1!==this.closable&&(!0===e||!1!==await this.beforeClose())&&void await this.doClose({payload:t})},whenClosed(){if(this._closedDefer)return this._closedDefer;let e=(0,D.h)(this)?Promise.resolve():new Promise((e,t)=>{this._closedResolver=e});return this._closedDefer=e},async doClose(){let{payload:e={}}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(this.closeHook(),!1===await this.onMinimize()){for(let e of(this.hidden=!0,this.modalWins))e.onMinimize();(0,o.Qy)(this,"hide"),this.onMinimized?.()}(0,o.Qy)(this,"close",{payload:e}),this._closedResolver?.(e),this.onDestroy?.({payload:e})},async onMinimize(){if(this.isStandalone||!this.canMinimize||!1===await this.beforeMinimize())return!1;for(let e of(this.minimizeHook(),this.hidden=!0,(0,o.Qy)(this,"hide"),this.onMinimized?.(),(0,h.fm)()?.SDS?.StatusNotifier&&(0,h.fm)()?.SDS.StatusNotifier.fireEvent("windowMinimize",this),this.modalWins))e.hideForMinimize=!0,e.onMinimize()},onFullsize(){this.left=0,this.top=0,this.isFullsize=!0,this.fitContainer()},doMaximize(){this.inFitBreakpoint||this.isStandaloneMainWindow||this.onMaximize()},doMinimize(){this.onMinimize()},doFullscreen(){this.onFullscreen()},doRestore(){this.inFitBreakpoint||this.isStandaloneMainWindow||this.onRestore()},onMaximize(){return!!this.maximizable&&!1!==this.beforeMaximize()&&(this.maximizeHook(),void(this.maximized||(this.fitContainerWithTaskbar(),this.maximized=!0,(0,h.fm)()?.SDS?.StatusNotifier&&(0,h.fm)()?.SDS.StatusNotifier.fireEvent("windowBeforeMaximize",this),(0,o.Qy)(this,"maximize"),this.$nextTick(()=>{(0,o.Qy)(this,"window-resize")}))))},getFullHeight(e){let{withinTaskbar:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=e.clientHeight;return!t&&(0,h.fm)()?.SDS?.TaskBar?.height?i-(0,h.fm)()?.SDS.TaskBar.height():i},fitContainerWithTaskbar(){let e=0;(0,h.fm)()?.SDS?.TaskBar&&(e=(0,h.fm)()?.SDS.TaskBar.height()),this.fitContainer({pos:[0,e]})},storeSizeAndPos(){this._storeSizeAndPosProps={width:this.currentWidth,height:this.currentHeight,top:this.top,left:this.left}},getStoreSizeAndPos(){return this._storeSizeAndPosProps},async fitContainer(){let{padding:e=[0,0],pos:t="center",fit:i="both"}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=(0,k.F)(this);this.isFit||this.storeSizeAndPos(),this.isFit=i,(0,u.kJ)(t)&&(this.left=t[0],this.top=t[1]),"both"===i||"width"===i?(this.currentWidth=n.clientWidth-2*e[0],(0,u.kJ)(t)&&(this.currentWidth-=t[0])):this.currentWidth=this.getStoreSizeAndPos().width,"both"===i||"height"===i?(this.currentHeight=n.clientHeight-2*e[1],(0,u.kJ)(t)&&(this.currentHeight-=t[1])):this.currentHeight=this.getStoreSizeAndPos().height,await this.$nextTick(),"center"===t&&this.alignCenterToContainer(),await this.$nextTick()},restoreSizePos(){let e=this.getStoreSizeAndPos();if(this.isFit&&e){let{width:t,height:i,top:n,left:o}=e;this.currentWidth=t,this.currentHeight=i,this.top=n,this.left=o}this.isFit=!1},_onHelp(){if(this.onHelp)return this.onHelp()},onRestore(){this.isStandalone||(this.restoreHook(),this.restoreSizePos(),this.maximized=!1,(0,h.fm)()?.SDS?.StatusNotifier&&(0,h.fm)()?.SDS.StatusNotifier.fireEvent("windowRestore",this),(0,o.Qy)(this,"restore"),this.$nextTick(()=>{(0,o.Qy)(this,"window-resize")}))},onFullscreen(){this.fullscreenHook()},getStateParam:function(){let e={};return(this.maximized||this.hidden)&&(e.maximized=this.maximized,e.minimized=this.hidden),e},setStatus(e,t){let i=this.maskStack.findIndex(e=>e.type===M.STATUS);-1!==i&&this.maskStack.splice(i,1),this.maskStack.push({opacity:e,text:t,type:M.STATUS})},setStatusBusy(e,t){e=(0,u.hj)(e)?e:.4,t=t||this._i18n("common","loading"),this.setStatus(e,t)},clearStatus(){let e=this.maskStack.findIndex(e=>e.type===M.STATUS);-1!==e&&this.maskStack.splice(e,1)},mask(e){this.maskStack.push({opacity:e,text:void 0,type:M.OWNER})},unmask(){let e=this.maskStack.findLastIndex(e=>e.type===M.OWNER);-1!==e&&this.maskStack.splice(e,1)},onMaskMouseDown(){this.blinkWhenTouched&&this.blinkModalChild()},blinkModalChild(){if(!this.manager)return;this.modalWins.sort(this.manager.sortWindows);let e=this.modalWins[this.modalWins.length-1];e?e.blinkModalChild():this.modal&&(this.toFront({focus:"force"}),this.blinkShadow(3))},blinkShadow(e){e<=0||(this.blink=!0,window.setTimeout(()=>{this.blink=!1},100*e*2))},openWindow(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(this.lastFocusElement=document.activeElement,(0,h.mV)()&&e instanceof(0,h.mV)().Window)return e.owner=this,{type:"extjs",...this.openExtWindow(e)};let{win:n,app:o,rootComponent:r}=(0,k.j)(e,t,{parentApp:this.$.appContext.app,containerEl:this.getMountEl(),onDestroy:e=>{this.lastFocusElement?.focus?.(),i?.onDestroy?.(e)},...i});return(0,h.fm)()?.SDS?.Desktop&&r&&(0,h.fm)()?.SDS.Desktop.appendChild(r),this.alwaysOnTop&&n.setForceAlwaysOnTop(!0),n.setOwner(this),n.init(this.manager,this.instance,i),{window:n,component:r,app:o,type:"vue"}},onExtWindowHide(e){e.hideForMinimize||N(this,e),this.lastFocusElement&&this.lastFocusElement.focus()},onExtWindowDestroy(e){N(this,e),this.lastFocusElement&&this.lastFocusElement.focus()},onExtWindowShow(e){e.owner||(e.owner=this),this.modalWins.includes(e)||this.pushModalWindow(e),this.isLastMaskByOwner||this.mask(0)},openExtWindow(e){return this.lastFocusElement=document.activeElement,e.on("beforedestroy",()=>{this.onExtWindowDestroy(e)}),e.on("show",()=>{this.onExtWindowShow(e)}),e.on("hide",()=>{this.onExtWindowHide(e)}),e.alignTo(this.getWindowEl(),"c-c"),e.onOpenByVue(),{window:e}},openModalWindow(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2?arguments[2]:void 0;this.lastFocusElement=document.activeElement;let n=this.openWindow(e,t,i);return"vue"===n.type&&this.pushModalWindow(n.window),n},removeModalWindow(e){let t=this.modalWins.indexOf(e);-1!==t&&this.modalWins.splice(t,1)},alignCenterToContainer(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[0,0],t=(0,k.F)(this);this.alignCenterToElement(t,t,e)},alignToElement(e,t,i){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:(0,k.F)(this),r=this.getWindowEl().getBoundingClientRect();r.width=this.autoWidth?r.width:this.currentWidth,r.height=this.autoHeight?r.height:this.currentHeight;let a=this.$alignManager.getAlignToXYv2(r,e,t,i,!0,!0,o,n);this.left=a.x,this.top=a.y,(0,p.nextTick)(()=>{this.doConstrain(o)})},alignCenterToElement(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(0,k.F)(this),i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[0,0];this.alignToElement(e,"c->c",i,t)},getMsgBox(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.messageBox||(e=e||this.$messageWindow,this.messageBox=this.openWindow(e,{synoId:`${this.synoId}-msgbox`,...t},i).window,this.pushModalWindow(this.messageBox)),this.messageBox},showAboutWindow(){let e,t,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(i.className)try{e=(0,h.fm)()?.SDS.Config.FnMap[i.className].config}catch{throw Error(`Failed to get jsConfig of ${i.className}`)}else e=this.jsConfig;if(!e)throw Error("Cannot find jsConfig");try{t=(0,h.fm)()?.SDS.UIFeatures.IconSizeManager.getIconPath(`${encodeURI(e.jsBaseURL)}/${e.icon||e.icon_32}`,"desktop")}catch{throw Error("Failed to get icon path")}let n=window._S,o=this.openWindow(this.$aboutWindow,{name:e.title,customName:Array.isArray(e.customAboutTitle)?e.customAboutTitle:null,icon:t,copyrightYear:e.buildTime?e.buildTime.split("-")[0]:n&&n("builddate")?n("builddate").split("/")[0]:"",desc:i.desc,isBeta:i.isBeta,swapNameAndDesc:i.swapNameAndDesc}).window;this.pushModalWindow(o)},setZIndex(e){let t=this.getWindowEl();t&&(0,w.iv)(t,"zIndex",`${e}`),(0,o.Qy)(this,"zindex-changed",e)},getZIndex(){let e=this.getWindowEl();return e?(0,w.iv)(e,"zIndex"):0},getToastBox(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=this.getWindowEl(),o=this.getWindowConfigValue("toastAlignConfig",{});return t=(0,R.Z)({text:e},t),(0,x.e)(this.$.appContext.app,n,t,(0,R.Z)({constrainMode:!1,absoluteMode:!0,anchorEl:n,containerEl:n,offset:T.pQ,align:"t->t"},i,o))},open(){this.show()}}});var B=i(66794);let F=(0,p.defineComponent)({name:T.v3,components:{vLayout:C.Z,vResizable:m.Z,vDraggable:v.Z,vWindowHeader:b.Z,vTrapFocus:r.Z,vSpin:S.Z},extends:L,props:{minimizable:{type:Boolean,default:!0},maximizable:{type:Boolean,default:!1},showHelp:{type:Boolean,default:!1},showMinimize:{type:Boolean,default:!1},showMaximize:{type:Boolean,default:!1},showFullscreen:{type:Boolean,default:!1},showClose:{type:Boolean,default:!0},maskContainer:{type:[Boolean,Object],default:!0},headerCls:{type:String,default:""},bodyCls:{type:String,default:""},darkTheme:{type:Boolean,default:!1},showHeader:{type:Boolean,default:!0},layoutType:{type:String,default:"modal"}},data:()=>({modal:!0,hidden:!0,ownerMasked:!1,isExtOwner:!1,ownerMinimizable:!1,autoAlignAfterInit:!0}),computed:{extendedBodyCls(){return[this.prefixCls+"-body",this.bodyCls]},canMinimize(){return this.minimizable||this.ownerMinimizable}},[n.mT.beforeUnmount](){this.manager&&this.containerMasked&&this.doUnmaskContainer(),this.unregisterManager?.()},methods:{init(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.unregisterManager=this.registerManager(e),this.maskOwner(),this.hidden=!1,this.isComponentType||(0,p.nextTick)(()=>{this.align(i.align??{}),(0,p.nextTick)(()=>this.onWindowResize())}),L.methods.init.apply(this,arguments)},maskOwner(){this.isComponentType||(this.owner?(this.owner.mask(0,null,null,!0),this.ownerMasked=!0):this.manager&&this.maskContainer&&this.doMaskContainer((0,u.Kn)(this.maskContainer)?this.maskContainer:void 0))},align(){let e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.isExtOwner&&this.owner.el.dom?e=this.owner.el.dom:this.owner&&this.owner.$el&&(e=this.owner.$el);let i=t.el??e,n=t.anchor??"c->c",o=t.offset??[0,0];this.alignToElement(i,n,o,t)},alignCenterToOwner(){let e;if(this.isExtOwner&&this.owner.el.dom?e=this.owner.el.dom:this.owner&&this.owner.$el&&(e=this.owner.$el),e)return this.alignCenterToElement(e)},setOwner(e){(0,h.mV)()?.Window&&e instanceof(0,h.mV)().Window&&(this.isExtOwner=!0),this.ownerMinimizable=e.minimizable,this.owner=e},hideFromOwner(){return!!this.owner&&(this.isExtOwner?this.owner?.modalWin?.remove?.(this):this.owner?.removeModalWindow?.(this),this.ownerMasked&&(this.owner.unmask(!0),this.ownerMasked=!1),!0)},async doClose(){let{payload:e={}}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.hideFromOwner()&&(this.owner=null),await L.methods.doClose.apply(this,arguments)},hasOwnerWin(e){let t=this;for(;t;){if(t===e)return!0;t=t.owner}return!1},setZIndex(e){L.methods.setZIndex.apply(this,arguments)}}}),V=["aria-label"],z={class:"focus-last-alert",tabindex:"0",role:"alert"};var H=(0,B.Z)(F,[["render",function(e,t,i,n,o,r){let a=(0,p.resolveComponent)("v-window-header"),s=(0,p.resolveComponent)("v-trap-focus"),l=(0,p.resolveComponent)("v-resizable"),c=(0,p.resolveComponent)("v-draggable"),d=(0,p.resolveComponent)("v-spin"),u=(0,p.resolveComponent)("v-layout"),h=(0,p.resolveDirective)("syno-id");return(0,p.withDirectives)(((0,p.openBlock)(),(0,p.createBlock)(u,{ref:"_window",class:(0,p.normalizeClass)(e.windowCls),style:(0,p.normalizeStyle)(e.windowStyle),type:`window.${e.layoutType}`,order:e.layoutOrder,onMousedown:t[1]||(t[1]=t=>e.toFront()),onKeydown:(0,p.withKeys)(e.onEsc,["native","esc"])},{default:(0,p.withCtx)(()=>[(0,p.renderSlot)(e.$slots,"fullsize-window-mask"),e.showHeader?((0,p.openBlock)(),(0,p.createBlock)(a,(0,p.mergeProps)({key:0,ref:"header"},e.headerProps,{"is-modalized":"","show-app-icon":!1,class:e.headerCls,"dark-theme":e.darkTheme,onClose:e.onClose,onMinimize:e.onMinimize,onMaximize:e.onMaximize,onFullscreen:e.onFullscreen,onRestore:e.onRestore}),null,16,["class","dark-theme","onClose","onMinimize","onMaximize","onFullscreen","onRestore"])):(0,p.createCommentVNode)("",!0),(0,p.createVNode)(s,{ref:"trapFocus",class:(0,p.normalizeClass)(e.extendedBodyCls)},{"alert-last":(0,p.withCtx)(()=>[(0,p.createElementVNode)("div",z,(0,p.toDisplayString)(e._i18n("desktop","window_last_hint")),1)]),default:(0,p.withCtx)(()=>[(0,p.createElementVNode)("div",{class:"v-trap-focus-indicator",tabindex:"0",role:"dialog","aria-label":e.currentTitle},null,8,V),(0,p.renderSlot)(e.$slots,"default")]),_:3},8,["class"]),e.resizable?((0,p.openBlock)(),(0,p.createBlock)(l,{key:1,"window-property":e.windowProperty,onResizeEnd:e.onResizeEnd},null,8,["window-property","onResizeEnd"])):(0,p.createCommentVNode)("",!0),e.innerDraggable&&!e.isComponentType?((0,p.openBlock)(),(0,p.createBlock)(c,{key:2,"window-property":e.windowProperty,onDragging:e.setDragging,onDragEnd:e.onDragEnd},null,8,["window-property","onDragging","onDragEnd"])):(0,p.createCommentVNode)("",!0),e.isMasking?((0,p.openBlock)(),(0,p.createElementBlock)("div",{key:3,class:(0,p.normalizeClass)(e.maskCls),onMousedown:t[0]||(t[0]=(0,p.withModifiers)(function(){return e.onMaskMouseDown&&e.onMaskMouseDown(...arguments)},["stop"]))},[(0,p.createVNode)(d,{"only-mask":!e.lastMaskLayer.text,tip:e.lastMaskLayer.text,spinning:e.isMasking,"mask-style":e.maskStyle},null,8,["only-mask","tip","spinning","mask-style"])],34)):(0,p.createCommentVNode)("",!0)]),_:3},8,["class","style","type","order","onKeydown"])),[[p.vShow,e.showWindow],[h]])}]])},31214:function(e,t,i){"use strict";i.d(t,{Z:()=>c});var n=i(49098),o=i(7135),r=i(31755),a=i(71367),s=i(63447);function l(e,t,i,n,o){let r=t-e;return i+r<n?n-i:i+r>o?o-i:r}var c=(0,i(66794).Z)((0,s.defineComponent)({name:"Resizable",components:{vPortal:n.Z},mixins:[(0,r.f)("window")],props:{windowProperty:{type:Object,default:()=>({})}},emits:["resize-end"],data:()=>({prefixCls:"v-window-resizable",isResizing:!1,top:void 0,left:void 0,startTop:void 0,startLeft:void 0,width:void 0,height:void 0,currentWidth:void 0,currentHeight:void 0,direction:void 0,startX:void 0,startY:void 0,diffX:void 0,diffY:void 0,minWidth:void 0,minHeight:void 0,maxHeight:void 0,maxWidth:void 0,maximized:void 0,isFit:void 0,constrainRect:void 0,resizeHandles:void 0}),computed:{horizontal(){return this.direction?-1!==this.direction.indexOf("w")?"w":-1!==this.direction.indexOf("e")?"e":null:null},vertical(){return this.direction?-1!==this.direction.indexOf("s")?"s":-1!==this.direction.indexOf("n")?"n":null:null},ghostStyle(){return{top:`${this.top}px`,left:`${this.left}px`,width:`${this.currentWidth+this.diffX}px`,height:`${this.currentHeight+this.diffY}px`}},maskStyle(){return{cursor:`${this.direction}-resize`}}},watch:{windowProperty:{immediate:!0,deep:!0,handler(e){this.top=+e.top,this.left=+e.left,this.width=e.width,this.height=e.height,this.minWidth=+e.minWidth,this.minHeight=+e.minHeight,this.maxWidth=+e.maxWidth,this.maxHeight=+e.maxHeight,this.maximized=e.maximized,this.constrainRect=e.constrainRect,this.resizeHandles=e.resizeHandles,this.isFit=e.isFit}}},methods:{getMountEl(){return this.window.instance.$el.parentNode??document.body},mouseMove(e){let{pageX:t,pageY:i}=e,n=this.getMountEl().getBoundingClientRect();i<n.top&&(i=n.top),t<n.left&&(t=n.left),"e"===this.horizontal?this.diffX=l(this.startX,t,this.currentWidth,this.minWidth,this.maxWidth):"w"===this.horizontal&&(this.diffX=l(t,this.startX,this.currentWidth,this.minWidth,this.maxWidth),this.left=this.startLeft-this.diffX),"s"===this.vertical?this.diffY=l(this.startY,i,this.currentHeight,this.minHeight,this.maxHeight):"n"===this.vertical&&(this.diffY=l(i,this.startY,this.currentHeight,this.minHeight,this.maxHeight),this.top=this.startTop-this.diffY)},mouseUp(){this.isResizing=!1,(0,a.Qy)(this,"resize-end",{top:this.top,left:this.left,width:this.currentWidth+this.diffX,height:this.currentHeight+this.diffY})},mouseDown(e,t){let i;this.currentWidth="auto"===this.width?this.window.instance.getCurrentWidth():+this.width,this.currentHeight="auto"===this.height?this.window.instance.getCurrentHeight():+this.height,this.direction=e,this.isResizing=!0,this.startX=t.pageX,this.startY=t.pageY,this.diffX=this.diffY=0,this.startTop=this.top,this.startLeft=this.left,(0,o.IH)(document,"mouseup",()=>{this.mouseUp(),i?.()}),i=(0,o.on)(document,"mousemove",e=>this.mouseMove(e))}}}),[["render",function(e,t,i,n,o,r){let a=(0,s.resolveComponent)("v-portal");return e.isFit?(0,s.createCommentVNode)("",!0):((0,s.openBlock)(),(0,s.createElementBlock)("div",{key:0,class:(0,s.normalizeClass)(e.prefixCls)},[e.isResizing?((0,s.openBlock)(),(0,s.createBlock)(a,{key:0,"mount-to":e.getMountEl},{default:(0,s.withCtx)(()=>[(0,s.createElementVNode)("div",{ref:"ghost",class:(0,s.normalizeClass)(`${e.prefixCls}-ghost`),style:(0,s.normalizeStyle)(e.ghostStyle)},null,6),(0,s.createElementVNode)("div",{ref:"resizing-mask",class:(0,s.normalizeClass)(`${e.prefixCls}-resizing-mask`),style:(0,s.normalizeStyle)(e.maskStyle)},null,6)]),_:1},8,["mount-to"])):(0,s.createCommentVNode)("",!0),["all","nw"].some(t=>e.resizeHandles.includes(t))?((0,s.openBlock)(),(0,s.createElementBlock)("div",{key:1,class:(0,s.normalizeClass)(`handler ${e.prefixCls}-nw`),onMousedown:t[0]||(t[0]=t=>e.mouseDown("nw",t))},null,34)):(0,s.createCommentVNode)("",!0),["all","ne"].some(t=>e.resizeHandles.includes(t))?((0,s.openBlock)(),(0,s.createElementBlock)("div",{key:2,class:(0,s.normalizeClass)(`handler ${e.prefixCls}-ne`),onMousedown:t[1]||(t[1]=t=>e.mouseDown("ne",t))},null,34)):(0,s.createCommentVNode)("",!0),["all","sw"].some(t=>e.resizeHandles.includes(t))?((0,s.openBlock)(),(0,s.createElementBlock)("div",{key:3,class:(0,s.normalizeClass)(`handler ${e.prefixCls}-sw`),onMousedown:t[2]||(t[2]=t=>e.mouseDown("sw",t))},null,34)):(0,s.createCommentVNode)("",!0),["all","se"].some(t=>e.resizeHandles.includes(t))?((0,s.openBlock)(),(0,s.createElementBlock)("div",{key:4,class:(0,s.normalizeClass)(`handler ${e.prefixCls}-se`),onMousedown:t[3]||(t[3]=t=>e.mouseDown("se",t))},null,34)):(0,s.createCommentVNode)("",!0),["all","n"].some(t=>e.resizeHandles.includes(t))?((0,s.openBlock)(),(0,s.createElementBlock)("div",{key:5,class:(0,s.normalizeClass)(`handler ${e.prefixCls}-n`),onMousedown:t[4]||(t[4]=t=>e.mouseDown("n",t))},null,34)):(0,s.createCommentVNode)("",!0),["all","s"].some(t=>e.resizeHandles.includes(t))?((0,s.openBlock)(),(0,s.createElementBlock)("div",{key:6,class:(0,s.normalizeClass)(`handler ${e.prefixCls}-s`),onMousedown:t[5]||(t[5]=t=>e.mouseDown("s",t))},null,34)):(0,s.createCommentVNode)("",!0),["all","w"].some(t=>e.resizeHandles.includes(t))?((0,s.openBlock)(),(0,s.createElementBlock)("div",{key:7,class:(0,s.normalizeClass)(`handler ${e.prefixCls}-w`),onMousedown:t[6]||(t[6]=t=>e.mouseDown("w",t))},null,34)):(0,s.createCommentVNode)("",!0),["all","e"].some(t=>e.resizeHandles.includes(t))?((0,s.openBlock)(),(0,s.createElementBlock)("div",{key:8,class:(0,s.normalizeClass)(`handler ${e.prefixCls}-e`),onMousedown:t[7]||(t[7]=t=>e.mouseDown("e",t))},null,34)):(0,s.createCommentVNode)("",!0)],2))}]])},93128:function(e,t,i){"use strict";i.d(t,{k:()=>n});let n=Symbol("window_mgr_inject")},7434:function(e,t,i){"use strict";i.d(t,{F:()=>l,j:()=>c});var n=i(60129),o=i(71283),r=i(82959),a=i(82813),s=i(93128);function l(e){return n.s?null:e.$el?.parentNode}function c(e,t){let i,{parentApp:n,containerEl:l,onDestroy:c}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},d=null,u=null,h=null;if("mount"in e&&"unmount"in e&&(h=d=e),!d){if(!n)return(0,o.N6)("parentApp is required when app is not provided"),{app:d,rootComponent:i,win:u};h=d=(0,r.$)(e,t,n)}let p=document.createDocumentFragment();if(h){let e={window:void 0};(0,a.J)(h,s.k,e),i=d?.mount(p),l?.appendChild(p),u=e.window,u?.setDestroyCallback(e=>{let{payload:t}=e;d?.unmount(),c?.({payload:t})})}return{app:d,rootComponent:i,win:u}}},27082:function(e,t,i){"use strict";i.d(t,{Z:()=>c});var n=i(9022),o=i(71367),r=i(23886),a=i(74999),s=i(63447),l=i(66794);(0,n.z)("window-tool-close",a.O_),(0,n.z)("window-tool-maximize",a.Dl),(0,n.z)("window-tool-restore",a.qh),(0,n.z)("window-tool-help",a.Cz),(0,n.z)("window-tool-minimize",a.j2);var c=(0,l.Z)((0,s.defineComponent)({name:"WindowHeaderToolWrapper",components:{vIcon:r.Z},props:{showHelp:{type:Boolean,default:!1},showMinimize:{type:Boolean,default:!0},showMaximize:{type:Boolean,default:!0},showFullscreen:{type:Boolean,default:!1},showClose:{type:Boolean,default:!0},maximized:{type:Boolean,default:!1},darkTheme:{type:Boolean,default:!1}},emits:["help","minimzie","restore","maximize","close"],methods:{onClickHelp(){(0,o.Qy)(this,"help")},onClickMinimize(){(0,o.Qy)(this,"minimize")},onClickRestore(){(0,o.Qy)(this,"restore")},onClickMaximize(){(0,o.Qy)(this,"maximize")},onClickClose(){(0,o.Qy)(this,"close")}}}),[["render",function(e,t,i,n,o,r){let a=(0,s.resolveComponent)("v-icon");return(0,s.openBlock)(),(0,s.createElementBlock)("div",{class:(0,s.normalizeClass)(["window-header-tool-wrapper",e.darkTheme?"dark":"light"])},[e.showHelp?((0,s.openBlock)(),(0,s.createBlock)(a,{key:0,class:"tool help",name:"window-tool-help","svg-icon-set":e.darkTheme?"set23":"set21",onClick:e.onClickHelp},null,8,["svg-icon-set","onClick"])):(0,s.createCommentVNode)("",!0),e.showMinimize?((0,s.openBlock)(),(0,s.createBlock)(a,{key:1,class:"tool minimize",name:"window-tool-minimize","svg-icon-set":"set21",onClick:e.onClickMinimize},null,8,["onClick"])):(0,s.createCommentVNode)("",!0),e.showMaximize&&e.maximized?((0,s.openBlock)(),(0,s.createBlock)(a,{key:2,class:"tool restore",name:"window-tool-restore","svg-icon-set":"set21",onClick:e.onClickRestore},null,8,["onClick"])):(0,s.createCommentVNode)("",!0),e.showMaximize&&!e.maximized?((0,s.openBlock)(),(0,s.createBlock)(a,{key:3,class:"tool maximize",name:"window-tool-maximize","svg-icon-set":"set21",onClick:e.onClickMaximize},null,8,["onClick"])):(0,s.createCommentVNode)("",!0),e.showClose?((0,s.openBlock)(),(0,s.createBlock)(a,{key:4,class:"tool close",name:"window-tool-close","svg-icon-set":e.darkTheme?"set23":"set22",onClick:e.onClickClose},null,8,["svg-icon-set","onClick"])):(0,s.createCommentVNode)("",!0)],2)}]])},28618:function(e,t,i){"use strict";i.d(t,{Z:()=>s});var n=i(96868),o=i(27082),r=i(71367),a=i(63447),s=(0,i(66794).Z)((0,a.defineComponent)({name:"WindowHeader",components:{vWindowHeaderToolWrapper:o.Z},mixins:[n.ZP],props:{showHelp:{type:Boolean,default:!1},showMinimize:{type:Boolean,default:!0},showMaximize:{type:Boolean,default:!0},showFullscreen:{type:Boolean,default:!1},showClose:{type:Boolean,default:!0},iconUrl:{type:String,default:void 0},title:{type:String,default:void 0},maximized:{type:Boolean,default:!1},showAppIcon:{type:Boolean,default:!0},isModalized:{type:Boolean,default:!1},isWizard:{type:Boolean,default:!1},darkTheme:{type:Boolean,default:!1},draggable:{type:Boolean,default:!1},inMobile:{type:Boolean,default:!1}},emits:["fullscreen","help","minimize","restore","maximize","close"],data:()=>({prefixCls:"v-window-header"}),computed:{wrapperCls(){return[`${this.prefixCls}-wrapper`,{"modal-win":this.isModalized,"wizard-win":this.isWizard,draggable:this.draggable,"mobile-fit":this.inMobile}]},iconStyle(){let e={};return this.iconUrl&&(e.backgroundImage=`url(${this.iconUrl})`),e},titleTooltip(){return{content:this.title,overflowOnly:!0}}},methods:{onDblClick(){this.maximized?(0,r.Qy)(this,"restore"):(0,r.Qy)(this,"maximize")},getTitleEl(){return this.$refs.title}}}),[["render",function(e,t,i,n,o,r){let s=(0,a.resolveComponent)("v-window-header-tool-wrapper"),l=(0,a.resolveDirective)("tooltip");return(0,a.openBlock)(),(0,a.createElementBlock)("div",{class:(0,a.normalizeClass)(e.wrapperCls),onDblclick:t[6]||(t[6]=function(){return e.onDblClick&&e.onDblClick(...arguments)})},[e.showAppIcon?((0,a.openBlock)(),(0,a.createElementBlock)("div",{key:0,class:"app-icon",style:(0,a.normalizeStyle)(e.iconStyle)},null,4)):(0,a.createCommentVNode)("",!0),(0,a.createElementVNode)("div",{class:(0,a.normalizeClass)(e.prefixCls+"-text")},[(0,a.withDirectives)(((0,a.openBlock)(),(0,a.createElementBlock)("div",{ref:"title",class:(0,a.normalizeClass)(e.prefixCls+"-title")},[(0,a.createTextVNode)((0,a.toDisplayString)(e.title),1)],2)),[[l,e.titleTooltip]]),(0,a.renderSlot)(e.$slots,"sub-title")],2),(0,a.createVNode)(s,{"dark-theme":e.darkTheme,"show-fullscreen":e.showFullscreen,"show-help":e.showHelp,"show-minimize":e.showMinimize,"show-maximize":e.showMaximize,"show-close":e.showClose,maximized:e.maximized,onFullscreen:t[0]||(t[0]=t=>e.$emit("fullscreen")),onHelp:t[1]||(t[1]=t=>e.$emit("help")),onMinimize:t[2]||(t[2]=t=>e.$emit("minimize")),onRestore:t[3]||(t[3]=t=>e.$emit("restore")),onMaximize:t[4]||(t[4]=t=>e.$emit("maximize")),onClose:t[5]||(t[5]=t=>e.$emit("close"))},null,8,["dark-theme","show-fullscreen","show-help","show-minimize","show-maximize","show-close","maximized"])],34)}]])},5317:function(e,t,i){"use strict";i.d(t,{Q:()=>r});var n=i(29668),o=i(63447);function r(e){{let t=(t,i)=>{let{attrs:r,slots:a}=i;return t.wrap?(0,o.h)(e,r,a):t.multiple?a.default?.():(0,n.g)(a.default())};return t.componentName="WithWrap",t.props=["wrap","multiple"],t}}},86658:function(e,t,i){"use strict";i.d(t,{IA:()=>o,jK:()=>n,pQ:()=>a,v3:()=>r});let n="AppWindow",o="Window",r="ModalWindow",a=[0,16]},65698:function(e,t,i){"use strict";i.d(t,{ZP:()=>b,rd:()=>f}),i(8416),i(93118),i(82766),i(37151),i(20142),i(89909),i(24578),i(95790),i(29127);var n=i(7135),o=i(54730),r=i(39693),a=i(63707),s=i(89641),l=i(6901);let c="__synoclickoutside__",d="clickoutside",u=new Set,h=0,p=!1;function f(e){for(let t of u)t[c]&&t[c].validateFn(e)}function g(e,t,i){return n=>{var a,u;let h=[];i&&(h=function(e,t){let i=(0,l.s)(t),n=t.arg,r=t.modifiers.children&&i?(0,s.getChildren)(i):[];if(n){let i=(0,o.mf)(n)?n(e,t):n;i=(0,o.kJ)(i)?i:[i],r.push(...i)}return r}(i,t),!n.target||e.contains(n.target)||(a=h,u=n.target,a.some(e=>!!e&&("$el"in e?e.$el.contains(u):e.contains(u))))||(0,o.$K)(e[c]?.attachTimestamp)&&n.timeStamp<e[c].attachTimestamp||e.dispatchEvent((0,r.L8)(d,{bubbles:!1,cancelable:!1})))}}function m(e,t,i){if(e[c])return;let r=(0,n.on)(e,d,e=>(0,o.mf)(t.value)?t.value(e):null);e[c]={id:++h,validateFn:g(e,t,i),disposedFn:r,attachTimestamp:performance.now()},u.add(e)}function v(e){e[c]&&(u.delete(e),e[c].disposedFn?.(),delete e[c])}var b=(0,a.Dj)({[a.D2.mounted](e,t,i){p||((0,n.on)(document.documentElement,["mousedown","touchstart"],e=>{f(e)}),p=!0),!1!==t.value&&m(e,t,i)},[a.D2.updated](e,t,i){!1!==t.value?e[c]?e[c].validateFn=g(e,t,i):m(e,t,i):v(e)},[a.D2.unmounted](e){v(e)}})},64794:function(e,t,i){"use strict";i.d(t,{Z:()=>P}),i(95790),i(53346);var n=i(37995),o=i(36058),r=i(63447),a=i(70243),s=(0,r.defineComponent)({name:"PortalTarget",props:{multiple:{type:Boolean,default:!1},name:{type:String,required:!0},slotProps:{type:Object,default:()=>({})},mountTo:{type:(0,a.C)([String,HTMLElement,Function]),default:void 0},acquireZIndex:{type:Boolean,default:!1},customClass:{type:(0,a.C)([String,Array,Object]),default:()=>[]},customStyle:{type:(0,a.C)([String,Array,Object]),default:()=>[]}},emits:["change","aligned"],setup(e,t){let{emit:i,slots:a,expose:s}=t,l=(0,r.reactive)({innerStyle:void 0,innerClass:void 0,anchor:void 0,alignment:void 0}),c=(0,n.w)(),d=(0,r.computed)(()=>{let t=c.getContentForTarget(e.name,e.multiple).map(t=>t.content(e.slotProps)).flat(1);return{vnodes:t,vnodesFn:()=>t}}),{render:u,doAlign:h}=(0,o.m)({props:(0,r.computed)(()=>({...l,...e})),onAligned(e){i("aligned",e)}});return(0,r.watch)(d,t=>{let{vnodes:n}=t,o=n.length>0,r=c.transports[e.name];i("change",{hasContent:o,sources:r?[...Object.keys(r)]:[]})},{flush:"post"}),s({doAlign:h,updateData:e=>{Object.assign(l,e)}}),()=>d.value.vnodes.length?u(d.value.vnodesFn):a.default?.()}}),l=i(54730),c=i(65698),d=i(71367),u=i(63707);let h={HINT:"hint",INFO:"info",ERROR:"error",CUSTOM:"custom"},p={HOVER:"hover",CLICK:"click",LONG_PRESS:"long-press",FOCUS:"focus",CUSTOM:"custom"},f=[p.CLICK,p.LONG_PRESS,p.FOCUS];var g=(0,r.defineComponent)({directives:{clickoutside:c.ZP},components:{vPortalTarget:s},props:{attachToElement:{type:(0,a.C)([HTMLElement,Boolean]),default:!1},arrow:{type:Boolean,default:!1},extraElement:{type:HTMLElement,default:void 0},tipContainer:{type:(0,a.C)(Function),default:l.ZT},portalName:{type:String,default:""},triggerAction:{type:(0,a.C)(String),default:"hover",validator:e=>Object.values(p).includes(e)},interactive:{type:Boolean,default:!1},usePortal:{type:Boolean,default:!1},type:{type:(0,a.C)(String),default:h.HINT,validator:e=>Object.values(h).includes(e)}},data:()=>({x:0,y:0,arrowPlacement:"",opacity:0,showTooltip:!1,visible:!1,isActive:!1,zIndex:void 0,overflowOnly:!1,content:"",isHtml:!1,delay:300,cls:"",offset:[20,20],align:"tl->tl",bgOpacity:1,disabled:!1,onActivate:l.ZT,onDeactivate:l.ZT,transitionTime:[500,100],dismissTime:500,hideWhenClickOutside:void 0,showTimeout:null,hideTimeout:null}),computed:{innerHideWhenClickOutside(){return(0,l.$K)(this.hideWhenClickOutside)?this.hideWhenClickOutside:f.includes(this.triggerAction)},innerOffset(){if(this.arrow){let e=this.$alignManager.getArrowPlacement(this.align);if(e.startsWith("top"))return[this.offset[0],this.offset[1]+9];if(e.startsWith("bottom"))return[this.offset[0],this.offset[1]-9];if(e.startsWith("left"))return[this.offset[0]+9,this.offset[1]];if(e.startsWith("right"))return[this.offset[0]-9,this.offset[1]]}return this.offset},tooltipStyle(){return{left:`${this.x}px`,top:`${this.y}px`,opacity:this.opacity,transition:`opacity ${this.transitionTime[0]}ms`,visibility:this.visible?"visible":"hidden",zIndex:this.zIndex}},tooltipCls(){return[this.cls,"v-tooltip-directive",this.type,{"has-arrow":this.arrow,interactive:this.interactive}]}},watch:{disabled(e){e&&this.hide()}},mounted(){this.zIndex=this.$popupManager?.acquireZIndex()},[u.mT.beforeUnmount](){this.$popupManager?.releaseZIndex()},methods:{onMouseEnter(e){this.interactive&&this.triggerAction===p.HOVER&&(0,d.Qy)(this,"trigger-show",e)},onMouseLeave(e){this.interactive&&this.triggerAction===p.HOVER&&(0,d.Qy)(this,"trigger-hide",e)},onClickoutside(){this.innerHideWhenClickOutside&&(0,d.Qy)(this,"trigger-hide")},shouldShow(e){if(this.overflowOnly){let t=e;if((0,l.mf)(this.overflowOnly)&&(t=this.overflowOnly(e)||e),t&&t.offsetWidth>=t.scrollWidth&&t.offsetHeight>=t.scrollHeight)return!1}return!0},removeFromContainer(){this.$el&&this.$el.parentNode&&this.$el.parentNode.removeChild(this.$el)},mountOnContainer(){(this.tipContainer?.()??this.$popupManager?.getTipContainerEl()??document.body).appendChild(this.$el)},show(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this.showTimeout&&(clearTimeout(this.showTimeout),this.showTimeout=null),this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=null),this.disabled||(this.onActivate&&this.onActivate(),this.showTooltip=!0,this.$nextTick(()=>{this.showTimeout=setTimeout(async()=>{let i=this.tipContainer?.()??this.$popupManager?.getTipContainerEl()??document.body;this.x=0,this.y=0,this.visible=!1,await this.$nextTick();let n=this.attachToElement?this.attachToElement:{left:e,top:t,width:0,height:0},{x:o,y:r,arrowPlacement:a}=this.$alignManager.getAlignToXYv2(this.$el,n,this.align,{containerEl:i,offset:this.innerOffset});this.arrowPlacement=a??"",this.x=o,this.y=r,this.visible=!0,this.opacity=this.bgOpacity},this.delay)}))},hide(){this.showTimeout&&(clearTimeout(this.showTimeout),this.showTimeout=null),this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=null),this.opacity=0,this.hideTimeout=setTimeout(()=>{this.onDeactivate&&this.onDeactivate(),this.showTooltip=!1},this.dismissTime)}}}),m=i(66794);let v=["data-placement"],b={key:2},y=["innerHTML"];var w=(0,m.Z)(g,[["render",function(e,t,i,n,o,a){let s=(0,r.resolveComponent)("v-portal-target"),l=(0,r.resolveDirective)("clickoutside");return e.showTooltip?(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:0,class:(0,r.normalizeClass)(e.tooltipCls),style:(0,r.normalizeStyle)(e.tooltipStyle),onMouseenter:t[0]||(t[0]=function(){return e.onMouseEnter&&e.onMouseEnter(...arguments)}),onMouseleave:t[1]||(t[1]=function(){return e.onMouseLeave&&e.onMouseLeave(...arguments)})},[e.arrow?((0,r.openBlock)(),(0,r.createElementBlock)("i",{key:0,class:"tooltip-arrow","data-placement":e.arrowPlacement},null,8,v)):(0,r.createCommentVNode)("",!0),e.usePortal?((0,r.openBlock)(),(0,r.createBlock)(s,{key:1,name:e.portalName,"custom-class":"tip-portal"},null,8,["name"])):e.isHtml?((0,r.openBlock)(),(0,r.createElementBlock)("span",{key:3,innerHTML:e.content},null,8,y)):((0,r.openBlock)(),(0,r.createElementBlock)("span",b,(0,r.toDisplayString)(e.content),1))],38)),[[l,e.onClickoutside,e.extraElement]]):(0,r.createCommentVNode)("",!0)}]]),_=i(7135),x=i(77971),S=i(31469),C=i(39693),k=i(82959);function I(e){return{target:e?.currentTarget??e?.target??null,x:e?.touches?.[0]?.clientX??e?.clientX??0,y:e?.touches?.[0]?.clientY??e?.clientY??0}}function A(e,t,i){let n=function(e,t){let i={};(0,l.HD)(e.value)?i.content=e.value:(0,l.Kn)(e.value)?i=e.value:!1===e.value&&(i.disabled=!0),(0,l.$K)(i.isHtml)||(i.isHtml=!!(0,l.$K)(e.modifiers.html)&&e.modifiers.html);let n=t.ctx.appContext.config.globalProperties.$breakpointManager;return!(0,l.$K)(i.triggerAction)&&n?.mobile&&(i.triggerAction="long-press"),i}(t,i);return!0===n.attachToElement&&(n.attachToElement=e),n.extraElement=e,n}function T(e,t){if(!e._tooltip)return!1;if((0,l.Kn)(t))for(let i in t)(0,l.RI)(t,i)&&!(0,l.RI)(e._tooltip.$props,i)&&(e._tooltip[i]=t[i]);return!0}function E(e,t,i){if(e._tooltip)return;let n=e._svc_tooltip_props_data??{};if(n.disabled)return;let{component:o,destroyFn:r}=(0,k.J)(t.ctx.appContext.app,w,n);e._tooltip=o,e._tooltip_destroy_fn=r,(0,d.Zn)(e._tooltip,"trigger-show",e._svc_tooltip_e_show_cb),(0,d.Zn)(e._tooltip,"trigger-hide",e._svc_tooltip_e_hide_cb),T(e,n)}function R(e,t,i,n){if(!0===(t._svc_tooltip_props_data??{}).disabled)return;E(t,n);let{x:o,y:r}=I(e);t._tooltip.shouldShow(t)&&(t._tooltip.isActive=!0,t._tooltip.mountOnContainer(),t._tooltip.show(o,r))}function D(e){let t=e._tooltip;t&&(t.isActive=!1,window.setTimeout(()=>{t&&(t.isActive||O(e))},t.transitionTime[1]))}function O(e){let t=e._tooltip;t&&(t.removeFromContainer(),t.hide(),e._tooltip_destroy_fn?.(),e._tooltip=null)}function M(e,t,i,n){let o=[],r=t=>{R(t,e,0,n)},a=()=>{D(e)},s=t=>{!function(e,t,i,n){if(!0===(t._svc_tooltip_props_data??{}).disabled)return;E(t,n);let{x:o,y:r}=I(e);t._tooltip.shouldShow(t)&&(t._tooltip.isActive?t._tooltip.show(o,r):R(e,t,0,n))}(t,e,0,n)};if(e._svc_tooltip_e_show_cb=r,e._svc_tooltip_e_hide_cb=a,e._svc_tooltip_e_move_cb=s,e._svc_tooltip_e_intersection_cb=t=>{t.target!==e||t.isVisible||D(e)},t.triggerAction&&"hover"!==t.triggerAction)if("click"===t.triggerAction){let t=e=>{r(e)},i=t=>{if((0,C.Wd)(t)){let i=e._tooltip;i?.isActive?a():r(t),t.preventDefault(),t.stopPropagation()}};(0,_.on)(e,"click",t),(0,_.on)(e,"keydown",i),o.push(()=>(0,_.S1)(e,"click",t)),o.push(()=>(0,_.S1)(e,"keydown",i))}else if("long-press"===t.triggerAction){let t=(0,S.p)(e,r);o.push(t)}else"focus"===t.triggerAction&&o.push((0,_.on)(e,"focus",r));else(0,_.on)(e,"mouseenter",r),(0,_.on)(e,"mouseleave",a),(0,_.on)(e,"mousemove",s),o.push(()=>(0,_.S1)(e,"mouseenter",r)),o.push(()=>(0,_.S1)(e,"mouseleave",a)),o.push(()=>(0,_.S1)(e,"mousemove",s));o.push((0,x.m)(e,e._svc_tooltip_e_intersection_cb,e)),e._tooltip_disposed_fns=o}function N(e){if(e._tooltip_disposed_fns){for(let t of e._tooltip_disposed_fns)t?.();delete e._tooltip_disposed_fns}O(e)}var P={[u.D2.mounted](e,t,i){let n=A(e,t,i);e._svc_tooltip_props_data=n,M(e,n,0,i)},[u.D2.updated](e,t,i){let n=A(e,t,i),o=e._svc_tooltip_props_data;T(e,n),o&&!(0,l.Xy)(o.triggerAction,n.triggerAction)&&(N(e),M(e,n,0,i)),e._svc_tooltip_props_data=n,e._tooltip&&!(0,_.pn)(e)&&D(e)},[u.D2.unmounted](e){N(e)}}},78050:function(e,t,i){"use strict";i.d(t,{lX:()=>D,xj:()=>R});var n=i(5275),o=i(99496),r=i(7135),a=i(54730),s=i(71283),l=i(60129),c=i(35466),d=i(70387);function u(e){return p(e)?(e.nodeName||"").toLowerCase():"#document"}function h(e){return e instanceof HTMLElement}function p(e){return e instanceof Node}function f(e){return e.parentNode??((p(e)?e.ownerDocument:e.document)??window.document)?.documentElement}function g(e,t){return getComputedStyle(e).position===t}function m(e){let t=!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none"),i=(0,a.kK)(e)?getComputedStyle(e):e;return"none"!==i.transform||"none"!==i.perspective||!!i.containerType&&"normal"!==i.containerType||!t&&!!i.backdropFilter&&"none"!==i.backdropFilter||!t&&!!i.filter&&"none"!==i.filter||["transform","perspective","filter"].some(e=>(i.willChange||"").includes(e))||["paint","layout","strict","content"].some(e=>(i.contain||"").includes(e))}function v(e){return["html","body","#document"].includes(u(e))}function b(e){return!h(e)||g(e,"fixed")?null:e.offsetParent}i(95790),i(2850);let y=/^([a-z]+)?->([a-z]+)?$/;function w(e){return"hidden"===(0,r.iv)(e,"overflow")}function _(e,t){if((0,a.kK)(e)){let t=e.getBoundingClientRect();return{top:t.top,left:t.left,width:t.width,height:t.height}}return(0,a.Kn)(e)||(0,a.iN)(e)?{top:e.top,left:e.left,width:e.width,height:e.height}:(0,a.kJ)(e)?{left:t[0],top:t[1],width:0,height:0}:e}function x(e){return"t"===e?"top":"b"===e?"bottom":"l"===e?"left":"r"===e?"right":e}function S(e){let t={...e,right:0,bottom:0};return(0,a.hj)(e.left)&&(0,a.hj)(e.width)&&(t.right=e.left+e.width),(0,a.hj)(e.top)&&(0,a.hj)(e.height)&&(t.bottom=e.top+e.height),t}function C(e){return"width"in e&&(0,a.hj)(e.width)?e.width:"offsetWidth"in e&&(0,a.hj)(e.offsetWidth)?e.offsetWidth:0}function k(e){return"height"in e&&(0,a.hj)(e.height)?e.height:"offsetHeight"in e&&(0,a.hj)(e.offsetHeight)?e.offsetHeight:0}function I(e,t,i,n){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:["none"],{constrainMinSize:r=0}=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a="end",s="none",l="none",c=i+t>e.size,d=i<e.scrollBeginPoint;if(o.includes("shift"))l="shift",(d||c)&&(s="shift",a=d?"begin":"end");else if(o.includes("constrain-size")){let o=t;l="constrain-size",c&&(o=e.size-i-n,a="end"),d&&(o=t+i-n,a="begin"),o>=r&&(d||c)&&(s="constrain-size")}else o.includes("swap")&&(l="swap",(d||c)&&(s="swap",a=d?"begin":"end"));return{method:s,over:a,pickMethod:l}}function A(e,t,i,n,o,r,a){let s={size:i,pos:n,offset:r,pushOffset:a};return"constrain-size"===t.method?"end"===t.over?s.size=e.size-n-a:"begin"===t.over&&(s.size=i+n-a,s.pos=a):"shift"===t.method?"end"===t.over?s.pos=e.size-Math.ceil(i)-a:"begin"===t.over&&(s.pos=e.scrollBeginPoint+a):"swap"===t.method&&(s.offset=r=-r,"end"===t.over?s.pos=o.begin-i+e.scrollBeginPoint+r-e.beginPoint:"begin"===t.over&&(s.pos=o.end+r-e.beginPoint)),s}class T{constructor(){l.s||(this.doc=document.documentElement,this.body=document.body,w(this.doc)||w(this.body)||c.Ys||(0,s.D8)("html or body should have overflow hidden, or it will make alignment offset glitch."))}getScroll(e){return e===this.doc||e===this.body?[window.pageXOffset??this.body?.scrollLeft??0,window.pageYOffset??this.body?.scrollTop??0]:[e.scrollLeft,e.scrollTop]}getConstrainToXY(e,t){let i,n,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{left:0,top:0,right:0,bottom:0},r=0,a=0;if(!e||!t||(e==this.doc||e===document.body?(i=document.body.clientWidth,n=document.body.clientHeight):(i=e.clientWidth,n=e.clientHeight),!i||!n))return!1;let s=t.scrollLeft,l=t.scrollTop;r+=o.left+s,a+=o.top+l,i-=o.right,n-=o.bottom;let c=r+i,d=a+n,u=t.getBoundingClientRect(),h=t.offsetWidth,p=t.offsetHeight,f=u.x,g=u.y,m=!1;return f<r&&(f=r,m=!0),g+p>d&&(g=d-p,m=!0),f+h>c&&(f=c-h,m=!0),g<a&&(g=a,m=!0),!!m&&[f,g]}getArrowPlacement(e){let t=e.match(y);if(!t)throw Error("anchor should be xx->xx or xx->");let i=x(t[1]?t[1].charAt(1):""),n=x(t[1]?t[1].charAt(0):""),o=x(t[2]?t[2].charAt(1):"");return n!==x(t[2]?t[2].charAt(0):"")?`${n}-${i}`:i!==o?`${i}-${n}`:`${n}-${i}`}getAlignToXYv2(e,t,i){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{offset:[0,0]},o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],r=!(arguments.length>5&&void 0!==arguments[5])||arguments[5],l=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,d=arguments.length>7&&void 0!==arguments[7]?arguments[7]:{},p=[0,0];(0,a.kJ)(n)?(p=[...n],d={pushXOffset:0,pushYOffset:0,constrainWidth:!1,constrainHeight:!1,constrainMinWidth:0,constrainMinHeight:0,...d}):(0,a.Kn)(n)&&(p=[...n.offset??[0,0]],o=!(0,a.jn)(n.constrain)||n.constrain,r=n.absoluteMode??!0,l=n.containerEl??null,((0,a.Kn)(n.constrain)||!0===o)&&(d={pushXOffset:0,pushYOffset:0,constrainWidth:!1,constrainHeight:!1,constrainMinWidth:0,constrainMinHeight:0,...(0,a.Kn)(n.constrain)?n.constrain:{}}));let{pushXOffset:w,pushYOffset:x,constrainWidth:C,constrainHeight:k,constrainMinWidth:T,constrainMinHeight:E}=d;if(l=l??this.body,h(e)&&h(t)){let i=function(e){let t=e.ownerDocument.defaultView??window,i=b(e);for(;i&&["table","td","th"].includes(u(i))&&g(i,"static");)i=b(i);return i&&v(i)&&g(i,"static")&&!m(i)?t:i||function(e){let t=f(e);for(;h(t)&&!v(t);){if(m(t))return t;t=f(t)}return null}(e)||t}(e);i===l||c.Ys||(0,s.D8)("[AlignManager] if offsetParent of el is not equal to containerEl, it will cause align wrong position.",void 0,"el",e,"offsetParent:",i,"containerEl:",l),!l||l.contains(t)||c.Ys||(0,s.D8)("[AlignManager] targetEl should be in containerEl, or it will cause align wrong position.")}!1===r&&(0,s.D8)("[AlignManager] absoluteMode is false, it weird in some cases, and it will be deprecated in the future");let R=i.match(y);if(!R||0===R.length)throw Error("anchor should be xx->xx or xx->");if(!l)throw Error("containerEl should not be null");let D=this.getAnchorXY(e,R[1],l),O=this.getAnchorXY(t,R[2],l),M=this.getXY(t,l),N=S(_(e,D)),P=S(_(t,O)),{width:L,height:B}=N,F=R[1]?R[1].charAt(1):"",V=R[1]?R[1].charAt(0):"",z=R[2]?R[2].charAt(1):"",H=R[2]?R[2].charAt(0):"",{containerWidth:W,containerHeight:Y,containerTop:U,containerLeft:G}=function(e){let t=0,i=0,n=0,o=0;if(e===document.body)t=document.body.clientWidth,i=document.body.clientHeight;else{g(e,"static")&&(0,s.D8)("[AlignManager] if container box did not generate containing block due to position is static, it will caused align wrong position");let r=e.getBoundingClientRect();t=r.width,i=r.height,n=r.top,o=r.left}return{containerWidth:t,containerHeight:i,containerTop:n,containerLeft:o}}(l),Z=O[0]-D[0]+p[0]+M[0],j=O[1]-D[1]+p[1]+M[1],q={x:Z,y:j};if(o){let e=this.getScroll(l),t,i,n="r"===F&&"l"===z||"l"===F&&"r"===z?["swap"]:["shift"],o="t"===V&&"b"===H||"b"===V&&"t"===H?["swap"]:["shift"];C&&n.push("constrain-size"),k&&o.push("constrain-size");let r={size:L,pos:Z,offset:p[0],pushOffset:w},s={size:B,pos:j,offset:p[1],pushOffset:x};for(;"none"!==(t=I({scrollBeginPoint:e[0],size:W+e[0]},r.size,r.pos,r.pushOffset,n,{constrainMinSize:T})).method||n.length>0;)n=(0,a.Er)(n,t.pickMethod),r=A({scrollBeginPoint:e[0],size:W+e[0],beginPoint:G},t,r.size,r.pos,{begin:P.left,end:P.right},r.offset,r.pushOffset),"swap"===t.method?[F,z]=[z,F]:"constrain-size"===t.method&&(q.constrainWidth=r.size);for(;"none"!==(i=I({scrollBeginPoint:e[1],size:Y+e[1]},s.size,s.pos,s.pushOffset,o,{constrainMinSize:E})).method||o.length>0;)o=(0,a.Er)(o,i.pickMethod),s=A({scrollBeginPoint:e[1],size:Y+e[1],beginPoint:U},i,s.size,s.pos,{begin:P.top,end:P.bottom},s.offset,s.pushOffset),"swap"===i.method?[V,H]=[H,V]:"constrain-size"===i.method&&(q.constrainHeight=s.size);q.x=r.pos,q.y=s.pos}return q.anchor=`${V}${F}->${H}${z}`,q.arrowPlacement=this.getArrowPlacement(q.anchor),q}getAlignToXY(e,t,i){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[0,0],o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],r=!(arguments.length>5&&void 0!==arguments[5])||arguments[5],a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,s=arguments.length>7?arguments[7]:void 0,{x:l,y:c}=this.getAlignToXYv2(e,t,i,n,o,r,a,s);return[l,c]}getAnchorXY(e,t,i){if(!t){let[t,n]=this.getScroll(i);if((0,a.kJ)(e)&&(0,a.hj)(e[0])&&(0,a.hj)(e[1]))return[e[0]+t,e[1]+n];if("left"in e&&"top"in e&&(0,a.hj)(e.left)&&(0,a.hj)(e.top))return[e.left+t,e.top+n]}let n=C(e),o=k(e);return({c:[.5*n,.5*o],t:[.5*n,0],b:[.5*n,o],l:[0,.5*o],r:[n,.5*o],tl:[0,0],bl:[0,o],br:[n,o],tr:[n,0]})[t]}getXY(e,t){let i="getBoundingClientRect"in e?e.getBoundingClientRect():"left"in e&&"top"in e&&(0,a.hj)(e.left)&&(0,a.hj)(e.top)?{left:e.left,top:e.top,width:C(e),height:k(e)}:{left:0,top:0,width:0,height:0},[n,o]=this.getScroll(t),r=t.getBoundingClientRect(),{left:s=0,top:l=0}=i;return[s+n-r.left,l+o-r.top]}}let E=(0,d.j)("alignManager"),R=()=>{(0,s.N6)("you are not install AlignManagerPlugin yet, please install it first")},D=(0,n.e)({},e=>{R=(0,o.b)(e,"$alignManager",new T,E)})},22508:function(e,t,i){"use strict";i.d(t,{G6:()=>g,Zl:()=>m});var n=i(5275),o=i(40172),r=i(60129),a=i(54730),s=i(99496),l=i(71283),c=i(70387),d=i(63447);let u={xxxl:"(min-width: 1920px)",xxl:"(max-width: 1919px) and (min-width: 1680px)",xl:"(max-width: 1679px) and (min-width: 1440px)",lg:"(max-width: 1439px) and (min-width: 1280px)",md:"(max-width: 1279px) and (min-width: 1024px)",sm:"(max-width: 1023px) and (min-width: 768px)",xs:"(max-width: 767px) and (min-width: 576px)",xxs:"(max-width: 575px) and (min-width: 400px)",xxxs:"(max-width: 399px)"},h={SMALL_FIRST:Symbol("SmallFirst"),LARGE_FIRST:Symbol("LargeFirst")};class p{constructor(e){this._current=(0,d.ref)(""),this._mobile=(0,d.ref)(!1),this.mobileBreakpoint=e.mobileBreakpoint??"xs",this.active=e.active??!0,this.threshold=(0,o.Z)(u,e.threshold??{}),this.breakpointsOrder=["xxxs","xxs","xs","sm","md","lg","xl","xxl","xxxl"],this.breakpointPriority={xxxs:0,xxs:1,xs:2,sm:3,md:4,lg:5,xl:6,xxl:7,xxxl:8},r.s||!1===this.mobileBreakpoint||this.registerMql()}registerMql(){let e=[];if(this.threshold)for(let[t,i]of Object.entries(this.threshold))e.push(function(e,t){if(!window||!window.matchMedia)return a.ZT;let i=window.matchMedia(e),n=e=>{e.matches?t("match",e):t("unmatch",e)};return i.addEventListener?i.addEventListener("change",n):i.addListener&&i.addListener(n),n(i),()=>{i.removeEventListener?i.removeEventListener("change",n):i.removeListener&&i.removeListener(n)}}(i,e=>{"match"===e&&(this._current.value=t,this.mobileBreakpoint&&(this._mobile.value=this.lessAndEqThan(this.mobileBreakpoint)))}))}get current(){return!1===this.active?"xxxl":this._current.value}get mobile(){return this._mobile.value}greaterAndEqThan(e){return""!==this.current&&this.breakpointPriority[this.current]>=this.breakpointPriority[e]}lessAndEqThan(e){return""!==this.current&&this.breakpointPriority[this.current]<=this.breakpointPriority[e]}getSuitableValue(e){let{ordered:t=h.SMALL_FIRST,defaultBreakpointBy:i=h.LARGE_FIRST}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[...Object.keys(e)].sort((e,i)=>t===h.LARGE_FIRST?this.breakpointPriority[i]-this.breakpointPriority[e]:this.breakpointPriority[e]-this.breakpointPriority[i]),o=-1,r=h.LARGE_FIRST?"xxxs":"xxxl";for(let e of n)i===h.LARGE_FIRST?(-1===o||this.breakpointPriority[e]>o)&&(o=this.breakpointPriority[e],r=e):(-1===o||this.breakpointPriority[e]<o)&&(o=this.breakpointPriority[e],r=e);for(let t of n)if(this.lessAndEqThan(t))return e[t];return e[r]}}let f=(0,c.j)("breakpointManager"),g=()=>{(0,l.N6)("you are not install BreakpointManagerPlugin yet, please install it first")},m=(0,n.e)({},function(e){g=(0,s.b)(e,"$breakpointManager",new p(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}),f)})},32079:function(e,t,i){"use strict";i.d(t,{FH:()=>h,UR:()=>u,u:()=>l});var n=i(5275),o=i(99496),r=i(71283),a=i(70387),s=i(70243);let l={icon:{type:(0,s.C)(Object),default:()=>({})},hasPopupContainer:{type:(0,s.C)(Object),default:()=>({})},window:{type:(0,s.C)(Object),default:()=>({})},tabs:{type:(0,s.C)(Object),default:()=>({})},dataTable:{type:(0,s.C)(Object),default:()=>({})},alertBar:{type:(0,s.C)(Object),default:()=>({})},popup:{type:(0,s.C)(Object),default:()=>({})},datePickerMenu:{type:(0,s.C)(Object),default:()=>({})},tableHeaderCell:{type:(0,s.C)(Object),default:()=>({})},messageBoxWindow:{type:(0,s.C)(Object),default:()=>({})},panel:{type:(0,s.C)(Object),default:()=>({})},wizard:{type:(0,s.C)(Object),default:()=>({})},button:{type:(0,s.C)(Object),default:()=>({})}};class c{constructor(e){let{props:t}=e;this.setProps(t??{})}setProps(e){this.props=e}}let d=(0,a.j)("configManager"),u=()=>{(0,r.N6)("you are not install ConfigManagerPlugin yet, please install it first")},h=(0,n.e)({},function(e){u=(0,o.b)(e,"$configManager",new c(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}),d)})},87577:function(e,t,i){"use strict";i.d(t,{Nx:()=>v,SD:()=>b,_1:()=>f,sZ:()=>p}),i(8416),i(93118),i(82766),i(37151),i(20142),i(89909),i(24578),i(95790),i(2850),i(53346);var n=i(7135),o=i(54730),r=i(43319),a=i(5275),s=i(63707),l=i(39693),c=i(99496),d=i(71283),u=i(70387);function h(e,t,i){e[t]?i[t]=e[t]:i[t]||(i[t]=o.ZT)}class p{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.manager=null,this.id=(0,r.V)(),this.el=e,this.payload=i,this.isOver=t.isOver??!1,this.applyOpts(t),this.order=t.order??10,this.ddTargets=new Set,this.draggingId=t.draggingId??(0,r.V)(),t.zoneCls&&this.updateCls(t.zoneCls)}updateCls(e){if(!this.el)return!1;this.restoreClsFn?.(),this.restoreClsFn=(0,n.cn)(this.el,e)}addTarget(e){this.ddTargets.add(e)}removeTarget(e){this.ddTargets.delete(e)}purge(){for(let e of this.ddTargets)e.unregisterDragZone(this);this.manager=null,delete this.el}applyOpts(e){e.extDDGroup&&window.Ext&&window.Ext.dd.DDM.regDragDrop(this,e.extDDGroup),h(e,"notifyEnter",this),h(e,"notifyDrop",this),h(e,"notifyOver",this),h(e,"notifyOut",this),h(e,"notifyValidDrop",this),h(e,"notifyInvalidDrop",this)}getEl(){return this.el}_notifyValidDrop(e,t,i){let n=this.notifyValidDrop(e,t,i);!1!==n&&(0,o.HD)(n)&&this.manager?.updateGhostCls(n)}_notifyOver(e,t,i){let n=this.notifyOver(e,t,i);!1!==n&&(0,o.HD)(n)&&this.manager?.updateGhostCls(n)}notifyEnter(e,t,i){}notifyDrop(e,t,i){}notifyOver(e,t,i){}notifyOut(e,t){}notifyValidDrop(e,t,i){}notifyInvalidDrop(e,t,i){}}class f{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.el=e,this.manager=null,this.isDragging=!1,this.isEnteringZone=!1,this.targetZones=[],this.applyOpts(t),this.payload=i,this.autoScrollElement=!!(0,o.$K)(t.autoScrollElement)&&t.autoScrollElement,this.draggingId=t.draggingId??(0,r.V)()}setAutoScrollElement(e){this.autoScrollElement=e}applyOpts(e){h(e,"onDragEnter",this),h(e,"onDragOver",this),h(e,"onDragOut",this),h(e,"onDrag",this),h(e,"onBeforeDrag",this),h(e,"onBeforeDrop",this),h(e,"onBeforeDragOut",this),h(e,"onBeforeDragOver",this),h(e,"onBeforeDragEnter",this),h(e,"onDrop",this),h(e,"onValidDrop",this),h(e,"onInvalidDrop",this),h(e,"startDrag",this),h(e,"endDrag",this),this.getTargetEl=e.getTargetEl,this.getTargetContent=e.getTargetContent,this.renderGhost=e.renderGhost,this._alignOffset={x:e.offsetX||20,y:e.offsetY||20},this._ghostCls=e.ghostCls||"x-dd-drag-proxy",this.validStatusCls=e.validGhostCls||"dd-valid",this.invalidStatusCls=e.invalidGhostCls||"dd-invalid"}isDraggable(){return this.el?._markDraggable}get alignOffset(){return this._alignOffset}set ghostCls(e){this._ghostCls=e}get ghostCls(){return this._ghostCls}getValidStatusCls(){return this.validStatusCls}getInvalidStatusCls(){return this.invalidStatusCls}set el(e){if(this._el){for(let e of this._el?._disposePointEventFns??[])e?.();delete this._el._markDraggable,delete this._el._ddTarget}e&&(e._markDraggable=!0,e._ddTarget=this,e._disposePointEventFns=[(0,n.on)(e,"mousedown",e=>this.handleMouseDown(e)),(0,n.on)(e,"long-press",e=>this.handleMouseDown(e))]),this._el=e}get el(){return this._el}addMetaProp(e,t){this._meta||(this._meta={}),this._meta[e]=t}getMetaProp(e){return this._meta?this._meta[e]:null}handleMouseDown(e){if(!(e&&(0,l.N5)(e)&&0!==e.button||!0===this.isDragging))return this.manager?.handleMouseDown(e,this)}registerDragZones(e){for(let t of((0,o.kJ)(e)||(e=[e]),e))this.registerDragZone(t);return()=>{this.unregisterDragZones(e)}}registerDragZone(e){if(!this.isDragZoneRegistered(e))return e.addTarget(this),this.targetZones.push(e),()=>{this.unregisterDragZone(e)}}isDragZoneRegistered(e){return this.targetZones.includes(e)}unregisterDragZones(e){for(let t of((0,o.kJ)(e)||(e=[e]),e))this.unregisterDragZone(t)}unregisterDragZone(e){let t=this.targetZones.indexOf(e);t>-1&&this.targetZones.splice(t,1),e.removeTarget(this)}getTargetZones(){return this.targetZones}purge(){for(let e of this._el?._disposePointEventFns??[])e?.();for(let e of this.targetZones)this.unregisterDragZone(e);this.manager=null,delete this.el?._markDraggable,delete this.el?._ddTarget,delete this.el?._disposePointEventFns,delete this._el}_startDrag(e,t){this.isDragging=!0,this.startDrag(e,t,this),this.el&&(this.el.__isDragging=!0)}_endDrag(){this.isDragging=!1,this.endDrag(this),setTimeout(()=>{this.el&&(this.el.__isDragging=!1)},0)}_onDragEnter(e,t){if(this.isEnteringZone)return;if(this.isEnteringZone=!0,this.enteredZone=t,!1===this.onBeforeDragEnter(e,t))return!1;let i=this.onDragEnter(e,t,this);!1!==i&&(0,o.HD)(i)&&this.manager?.updateGhostCls(i)}_onDragOut(e,t){if(this.isEnteringZone=!1,delete this.enteredZone,!1===this.onBeforeDragOut(e,t))return!1;let i=this.onDragOut(e,t,this);!1!==i&&(0,o.HD)(i)&&this.manager?.updateGhostCls(i)}_onDragOver(e,t){if(!1===this.onBeforeDragOver(e,t))return!1;let i=this.onDragOver(e,t,this);!1!==i&&(0,o.HD)(i)&&this.manager?.updateGhostCls(i)}_onDrag(e){if(this.autoScrollElement&&!(0,l.z6)(e)){let t=["none","none"],i=[0,0];this._keepScrolling&&(window.clearInterval(this._keepScrolling),this._keepScrolling=null);let n=(e,t)=>{this.autoScrollElement&&("left"===e[0]?this.autoScrollElement.scrollLeft-=.1*t[0]:"right"===e[0]&&(this.autoScrollElement.scrollLeft+=.1*t[0]),"top"===e[1]?this.autoScrollElement.scrollTop-=.1*t[1]:"bottom"===e[1]&&(this.autoScrollElement.scrollTop+=.1*t[1]))},o=this.autoScrollElement.getBoundingClientRect();e.clientX<o.left?(i[0]=Math.abs(e.clientX-o.left),t[0]="left"):e.clientX>o.right&&(i[0]=Math.abs(e.clientX-o.right),t[0]="right"),e.clientY<o.top?(i[1]=Math.abs(e.clientY-o.top),t[1]="top"):e.clientY>o.bottom&&(i[1]=Math.abs(e.clientY-o.bottom),t[1]="bottom"),this._keepScrolling=window.setInterval(()=>{n(t,i)},100),n(t,i)}this.onDrag(e,this)}_onDrop(e,t){this._keepScrolling&&(window.clearInterval(this._keepScrolling),this._keepScrolling=null),!1!==this.onBeforeDrop(e)&&(this.isEnteringZone&&this.enteredZone?(this.onDrop(e,t,this,{valid:!0}),this.onValidDrop(e,this.enteredZone,this),this.enteredZone.notifyValidDrop(e,this.enteredZone,this)):(this.onDrop(e,t,this,{valid:!1}),this.onInvalidDrop(e,t,this),t&&t.notifyInvalidDrop(e,t,this)),this.isEnteringZone=!1)}onDragEnter(e,t,i){}onDragOver(e,t,i){}onDragOut(e,t,i){}onDrag(e,t){}startDrag(e,t,i){}onBeforeDrop(e){}onBeforeDragOut(e,t){}onBeforeDragOver(e,t){}onBeforeDragEnter(e,t){}onBeforeDrag(e,t){}onDrop(e,t,i,n){}onValidDrop(e,t,i){}onInvalidDrop(e,t,i){}beforeEndDrag(){}endDrag(e){}on(e,t){return(0,n.on)(this.el,e,t)}off(e,t){return(0,n.S1)(this.el,e,t)}}class g{constructor(){this.startX=0,this.startY=0,this.startThreshold=10,this.globalDragStart=null,this.globalSelectStart=null,delete this.currentDragTarget,this.preEnterZone=null,this._disposePointEventFns=[],this._ghostStatusCls="",this.dragZones=[],delete this.ghostEl}get globalDragZones(){return this.dragZones}isDraggable(e){return e.isDraggable()}hideGhost(){this.ghostEl&&(0,n.iv)(this.ghostEl,"display","none"),this._ghostStatusCls=""}unhideGhost(){this.ghostEl&&(0,n.iv)(this.ghostEl,"display","block")}setGhostClass(e){this.ghostEl&&(this.ghostEl.className="",e.ghostCls&&(0,n.cn)(this.ghostEl,e.ghostCls),(0,n.cn)(this.ghostEl,"v-dd-ghost"))}updateValidGhostCls(){this.currentDragTarget&&this.updateGhostCls(this.currentDragTarget.getValidStatusCls())}updateInvalidGhostCls(){this.currentDragTarget&&this.updateGhostCls(this.currentDragTarget.getInvalidStatusCls())}updateGhostCls(e){e&&e!==this._ghostStatusCls&&(this.ghostEl&&((0,o.HH)(this._ghostStatusCls)&&(0,n.IV)(this.ghostEl,this._ghostStatusCls),(0,n.cn)(this.ghostEl,e)),this._ghostStatusCls=e)}destroyGhost(){this.ghostEl&&(this._destroyGhost?.(),this.ghostEl?.parentNode?.removeChild(this.ghostEl),delete this.ghostEl)}createGhost(){if(this.ghostEl)return;let e=document.body,t=document.createElement("div");return(0,n.iv)(t,"position","absolute"),(0,n.iv)(t,"cursor","move"),(0,n.iv)(t,"zIndex","999999"),(0,n.iv)(t,"backgroundColor","white"),e.insertBefore(t,e.firstChild),this.ghostEl=t,this.ghostEl}destroyDragTarget(e){e.purge()}registerDragTarget(e){return e.manager=this,()=>{this.destroyDragTarget(e)}}registerDragZone(e){return this.dragZones.push(e),e.manager=this,()=>{this.destroyDragZone(e)}}destroyDragZone(e){this.dragZones=(0,o.Er)(this.dragZones,e),e.purge()}getZones(e){if(!e)return this.dragZones;let t=e.getTargetZones(),i=new Set(t);for(let n of this.globalDragZones)i.has(n)||n.draggingId!==e.draggingId||(i.add(n),t.push(n));return t.sort((e,t)=>t.order-e.order)}isOverDragZones(e,t){if(!this.ghostEl)return null;for(let{rect:i,zone:o}of this.getZones(this.currentDragTarget).map(e=>({rect:e.el?.getBoundingClientRect()??new DOMRect,zone:e})).filter(e=>!!e))if(o.isOver&&o.isOver(e,i,this.currentDragTarget)||(0,n._4)(i,t[0],t[1])&&o.el?.contains(e.target))return o;return null}handleMouseMove(e){let t,i,o,r;if(e.preventDefault(),(0,l.z6)(e)?(t=e.touches[0].pageX,i=e.touches[0].pageY,o=e.touches[0].clientX,r=e.touches[0].clientY):(t=e.pageX,i=e.pageY,o=e.clientX,r=e.clientY),!this.currentDragTarget||Math.max(Math.abs(t-this.startX),Math.abs(i-this.startY))<this.startThreshold)return!0;this.currentDragTarget.isDragging||this.startDrag(t,i),this.ghostEl&&(0,n.DU)(this.ghostEl,t,i,{offsetX:this.currentDragTarget?.alignOffset?.x,offsetY:this.currentDragTarget?.alignOffset?.y}),this.currentDragTarget._onDrag(e);let a=this.isOverDragZones(e,[o,r]);a?(this.updateValidGhostCls(),this.currentDragTarget.isEnteringZone&&(this.currentDragTarget._onDragOver(e,a),a.notifyOver(e,this,this.currentDragTarget),this.preEnterZone!==a&&(this.currentDragTarget.enteredZone?.notifyOut(e,this.currentDragTarget),this.currentDragTarget._onDragOut(e,this.preEnterZone??null))),this.currentDragTarget.isEnteringZone||(this.currentDragTarget._onDragEnter(e,a),a.notifyEnter(e,this,this.currentDragTarget))):(this.updateInvalidGhostCls(),this.currentDragTarget.isEnteringZone&&(this.currentDragTarget.enteredZone?.notifyOut(e,this.currentDragTarget),this.currentDragTarget._onDragOut(e,this.preEnterZone))),this.preEnterZone=a}handleMouseDown(e,t){let i,o;(0,l.z6)(e)?(i=e.touches[0].pageX,o=e.touches[0].pageY):(i=e.pageX,o=e.pageY),this.currentDragTarget&&this.handleMouseUp(e),this.currentDragTarget=t,!1!==this.currentDragTarget.onBeforeDrag(e,this.currentDragTarget)?(this._disposePointEventFns=[(0,n.on)(document.documentElement,"mousemove",e=>this.handleMouseMove(e)),(0,n.on)(document.documentElement,"touchmove",e=>this.handleMouseMove(e),{passive:!1}),(0,n.IH)(document.documentElement,"mouseup",e=>this.handleMouseUp(e)),(0,n.IH)(document.documentElement,"touchend",e=>this.handleMouseUp(e))],this.startX=i,this.startY=o):delete this.currentDragTarget}setGhostHtml(e){this.ghostEl&&(this.ghostEl.innerHTML=e)}startDrag(e,t){this.currentDragTarget&&(this.globalSelectStart=document.onselectstart,this.globalDragStart=document.ondragstart,document.onselectstart=()=>!1,document.ondragstart=()=>!1,this.createGhost(),this.setGhostClass(this.currentDragTarget),this.currentDragTarget._startDrag(e,t),this.ghostEl&&(this.currentDragTarget.renderGhost&&(this._destroyGhost=this.currentDragTarget.renderGhost(this.ghostEl)),this.currentDragTarget.getTargetContent?this.ghostEl.innerHTML=this.currentDragTarget.getTargetContent(this.currentDragTarget):this.currentDragTarget.getTargetEl&&this.ghostEl.appendChild(this.currentDragTarget.getTargetEl()),(0,n.DU)(this.ghostEl,e,t,{offsetX:this.currentDragTarget?.alignOffset?.x,offsetY:this.currentDragTarget?.alignOffset?.y})))}handleMouseUp(e){if(this.currentDragTarget){for(let t of((0,l.N5)(e)&&this.handleMouseMove(e),this.startX=0,this.startY=0,this.destroyGhost(),this.stopDrag(e),this._disposePointEventFns??[]))t?.();this._disposePointEventFns=[]}}stopDrag(e){document.onselectstart=this.globalSelectStart,document.ondragstart=this.globalDragStart,this.globalSelectStart=null,this.globalDragStart=null,this.currentDragTarget&&(this.preEnterZone&&this.preEnterZone.notifyDrop(e,this,this.currentDragTarget),this.currentDragTarget._onDrop(e,this.preEnterZone),this.currentDragTarget.beforeEndDrag(),this.currentDragTarget._endDrag(),delete this.currentDragTarget,this.preEnterZone=null)}stopEvents(e){e.stopPropagation(),e.preventDefault()}}let m=(0,u.j)("dragDropManager"),v=()=>{(0,d.N6)("you are not install DragDropManagerPlugin yet, please install it first")},b=(0,a.e)({},e=>{v=(0,c.b)(e,"$ddm",new g,m);let t=(0,s.a0)(e);t&&(t.$DragZone=p,t.$DragDropTarget=f)})},86847:function(e,t,i){"use strict";i.d(t,{ck:()=>p,e1:()=>c,il:()=>h,tF:()=>d});var n=i(5275),o=i(71283),r=i(99496),a=i(70387),s=i(54730),l=i(63447);let c={BKG:"bkg-img",SVG:"svg",FOLLOW_MANAGER:"follow-manager",UNKNOWN:"unknown"};class d{static icons=Object.create(null);static register(e,t){if((0,s.kJ)(e))for(let{name:t,component:i}of e)d.register(t,i);else t&&(this.icons[e]=t)}register(e,t){d.register(e,t)}constructor(){let{iconType:e=c.BKG,icons:t=[]}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Object.values(c).includes(e)||(0,o.D8)(`iconType ${e} is not valid type, please choose one of ${JSON.stringify(Object.values(c))}`),this.info=(0,l.reactive)({iconType:c.UNKNOWN}),this.registeredIcons=t,this.registered=!1,this.iconType=e}set iconType(e){if(this.info.iconType=e,e===c.SVG&&!this.registered){for(let e of this.registeredIcons)this.register(e.name,e.component);this.registered=!0}}get iconType(){return this.info.iconType}get(e){if(e)return d.icons[e]}get icons(){return d.icons}}let u=(0,a.j)("iconManager"),h=()=>{(0,o.N6)("you are not install IconManagerPlugin yet, please install it first")},p=(0,n.e)({},function(e){h=(0,r.b)(e,"$iconManager",new d(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}),u)})},97342:function(e,t,i){"use strict";i.d(t,{D_:()=>f,R:()=>p}),i(60080),i(8416),i(93118),i(82766),i(37151),i(20142),i(89909),i(24578),i(95790),i(2850),i(53346);var n=i(40172),o=i(94904),r=i(5275),a=i(71283),s=i(99496),l=i(70387);let c={window:{modal:{},"page-list-app":{},app:{},wizard:{},none:{}},panel:{overview:{},content:{},none:{}},tabs:{overview:{},content:{},none:{}},tree:{basic:{},navigation:{},selector:{},none:{}},"module-list":{panel:{},toolbar:{},none:{}},card:{regular:{},compact:{},"regular-has-header":{},"compact-has-header":{}},"alert-bar":{},"tab-body":{},"tab-fbar":{},"tab-tbar":{},content:{},"toolbar-content":{},"panel-body":{},"panel-fbar":{},form:{},"data-table":{},wizard:{basic:{},none:{}},"wizard-step-container":{},fieldset:{},"fieldset-body":{},others:{},none:{}},d={"tree.navigation":[{filter:/^tree\.navigation/,styles:{"layout-padding":"8px 0 6px 12px"}}],"tree.selector":[{filter:/^tree\.selector/,styles:{"layout-padding":"7px"}}],"module-list.panel":[{filter:/^module-list\.panel/,styles:{"layout-padding":"16px 12px 6px 12px"},props:{"pass-through":!0}}],"module-list.toolbar":[{filter:/^module-list\.toolbar/,styles:{"layout-padding-top":"16px","layout-padding-right":"12px","layout-padding-bottom":"6px","layout-padding-left":"12px"},props:{"pass-through":!0}}],fieldset:[{filter:/^fieldset/,styles:{"layout-padding":"8px 0 0 0"}},{filter:/^fieldset\[0\]/,styles:{"layout-padding":"0 0 0 0"}}],"fieldset-body":[{filter:/^fieldset => fieldset-body/,styles:{"layout-padding":"8px 0 0 0"}},{filter:/^form => fieldset => fieldset-body/,styles:{"layout-padding":"8px 8px 8px 8px"}}],form:[{filter:/^fieldset => fieldset-body => form/,styles:{"layout-padding":"0px 8px 8px 8px"}},{filter:/^tab-body => content => form/,styles:{"layout-padding":"0 8px 0 8px"}},{filter:/^tab-body => form/,styles:{"layout-padding":"8px 8px 0 8px"}},{filter:/^tab-body => content => form\[\d+\]:has\(fieldset\)/,styles:{"layout-padding":"0"}},{filter:/^tab-body => form\[\d+\]:has\(fieldset\)/,styles:{"layout-padding":"8px 0px 0 0px"}},{filter:/^tab-body => panel.content => panel-body => => form\[\d+\]:has\(\)/,styles:{"layout-padding":"0 8px 0 8px"}},{filter:/^tab-body => panel.content => panel-body => content => form\[\d+\]:has\(\)/,styles:{"layout-padding":"0 8px 0 8px"}}],"alert-bar":[{filter:/^tab-body => content => alert-bar/,styles:{"layout-padding":"0 0 8px 0"}},{filter:/^panel.content => panel-body => content => alert-bar/,styles:{"layout-padding":"0 0 8px 0"}},{filter:/^panel.content => panel-body => toolbar-content => alert-bar/,styles:{"layout-padding":"0 0 8px 0"}}],content:[{filter:/^tab-body => content/,styles:{"layout-padding":"8px 0 0 0","layout-height":"100%"}},{filter:/^tab-body => panel.content => panel-body => content/,styles:{"layout-padding":"8px 0 0 0","layout-height":"100%"}},{filter:/^panel.content => panel-body => content/,styles:{"layout-height":"100%"}}],"panel-body":[{filter:/^window\.(modal|app) => tabs\.(content|overview) => tab-body => panel.content => panel-body/,styles:{"layout-padding":"var(--panel-in-tabs-padding-top) 20px 6px 20px","layout-height":"100%"}},{filter:/^window\.page-list-app => tabs\.overview => tab-body => panel.content => panel-body/,styles:{"layout-padding":"var(--panel-in-tabs-padding-top) 20px 6px 20px","layout-height":"100%"}},{filter:/^window\.page-list-app => tabs\.content => tab-body => panel.content => panel-body/,styles:{"layout-padding":"var(--panel-in-tabs-padding-top) 16px 6px 16px","layout-height":"100%"}},{filter:/^tabs\.(content|overview) => tab-body => panel.content => panel-body/,styles:{"layout-padding":"var(--panel-in-tabs-padding-top) 0 0 0"}},{filter:/^window\.page-list-app => panel.overview => panel-body/,styles:{"layout-padding":"16px 20px 16px 20px","layout-margin":"0 0 0 0"}},{filter:/^window\.page-list-app => panel.content => panel-body/,styles:{"layout-padding":"16px 16px 6px 16px","layout-margin":"0 0 0 0"}},{filter:/^window\.(modal|app) => panel.content => panel-body/,styles:{"layout-padding":"16px 20px 6px 20px","layout-margin":"0 0 0 0"}}],"panel-fbar":[{filter:/^window\.page-list-app => tabs\.(content|overview) => tab-body => panel.content => panel-fbar/,breakpoint:{greaterAndEqThan:"xs"},styles:{"layout-margin":"0 16px"}},{filter:/^window\.page-list-app => panel.content => panel-fbar/,breakpoint:{greaterAndEqThan:"xs"},styles:{"layout-margin":"0 16px"}}],"wizard-step-container":[{filter:/^wizard\.basic => wizard-step-container/,breakpoint:{greaterAndEqThan:"xs"},styles:{"layout-padding":"24px 40px 0 40px","layout-height":"100%"}},{filter:/^wizard\.basic => wizard-step-container/,breakpoint:{lessAndEqThan:"xxs"},styles:{"layout-padding":"16px 20px 0 20px","layout-height":"100%"}}],"tab-tbar":[{filter:/^window\.(page-list-app|modal|app) => tabs.overview => tab-tbar/,styles:{"layout-padding":"16px 20px 0 20px","layout-margin":"0 0 0 0"}},{filter:/^window\.page-list-app => tabs.content => tab-tbar/,styles:{"layout-padding":"16px 16px 0 16px","layout-margin":"0 0 0 0"}},{filter:/^window\.(modal|app) => tabs.content => tab-tbar/,styles:{"layout-padding":"16px 20px 0 20px","layout-margin":"0 0 0 0"}}],"tab-body":[{filter:/^window\.(page-list-app|modal|app) => tabs.overview => tab-body/,styles:{"layout-padding":"4px 20px 6px 20px","layout-margin":"0 0 0 0"}},{filter:/^window\.page-list-app => tabs.content => tab-body/,styles:{"layout-padding":"4px 16px 6px 16px","layout-margin":"0 0 0 0"}},{filter:/^window\.(modal|app) => tabs.content => tab-body/,styles:{"layout-padding":"4px 20px 6px 20px","layout-margin":"0 0 0 0"}},{filter:/^tabs.content => tab-body\[\d+\]:has\(panel\.content\)/,styles:{"layout-padding":"4px 0 0 0","layout-margin":"0 0 0 0"},priority:2}],"tab-fbar":[{filter:/^window\.page-list-app => tabs\.overview => tab-fbar/,breakpoint:{greaterAndEqThan:"xs"},styles:{"layout-margin":"0 20px"}},{filter:/^window\.page-list-app => tabs\.content => tab-fbar/,breakpoint:{greaterAndEqThan:"xs"},styles:{"layout-margin":"0 16px"}}],commons:[{filter:/^window\.(page-list-app|modal|app) => panel\.(overview|content)\[\d+\]:has(.*)$/,styles:{"layout-height":"100%"}},{filter:/^tab-body => panel\.(overview|content)\[\d+\]:has(.*)$/,styles:{"layout-height":"100%"}}]};class u{constructor(e){let{types:t={},graph:i={},keepOriginalGraph:o=!0,debug:r=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.cached=new Map,this.types=(0,n.Z)(c,t),this.localVue=e,this.debug=r,this.graph=o?(0,n.Z)(d,i):i}isTypeValid(e){return!!(0,o.Z)(this.types,e)}cleanAllPath(){this.graph={},this.cached=new Map}addGraph(e){this.graph=e,this.cached=new Map}addPath(e,t){this.graph[e]=t,this.cached=new Map}getLayoutData(e){let t=this.localVue.config.globalProperties.$breakpointManager;t||(0,a.D8)("please import and use BreakpointManagerPlugin when you are in tree-shaking mode or breakpoint will not active.");let i=[],o=[],r=e,s={styles:{},props:{},priority:-1,paths:""},l=Array.from(new Set(e.children.map(e=>e.type))).join(",");for(i.push(`${e.type}[${e.getSiblingIndex()}]:has(${l})`),o.push(`${e.type}[${e.getSiblingIndex()}]:has(${l})`),e=e.parent;e;)i.unshift(e.type),o.push(i.join(" => ")),e=e.parent;let c=o.join(",")+t.current;if(r.targetPaths=o,this.cached.has(c))return this.cached.get(c);let d=[...this.graph.commons||[],...this.graph[r.type]||[]],u=e=>{let i=!0;if(!e)return i;for(let[n,o]of Object.entries(e))i=i&&t?.[n](o);return i};for(let e of o)for(let t of d)t.priority||(t.priority=1),t.filter.test(e)&&t.priority>=s.priority&&u(t.breakpoint)&&(s=(0,n.Z)(s,t));return s.paths=o,this.cached.set(c,s),s}}let h=(0,l.j)("layoutManager"),p=()=>{(0,a.N6)("you are not install LayoutManagerPlugin yet, please install it first")},f=(0,r.e)({},function(e){p=(0,s.b)(e,"$layoutManager",new u(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}),h)})},63964:function(e,t,i){"use strict";i.d(t,{U5:()=>d,WS:()=>u});var n=i(5275),o=i(99496),r=i(54730),a=i(71283),s=i(70387);class l{constructor(e){this.baseZIndex=e.baseZIndex||2e4,this.popupContainer=e.popupContainer,this.tipContainer=e.tipContainer,this.zIndex=this.baseZIndex,this.acquireCount=0}getPopupContainer(){return(0,r.HD)(this.popupContainer)?this.popupContainer:this.popupContainer?.()}getTipContainerEl(){let e;return(0,r.mf)(this.tipContainer)&&(e=this.tipContainer?.()),(0,r.HD)(this.tipContainer)&&(e=this.tipContainer),(0,r.HD)(e)?document.querySelector(e):e}acquireZIndex(){return this.acquireCount++,++this.zIndex}releaseZIndex(){this.acquireCount--,this.acquireCount<=0&&(this.acquireCount=0,this.zIndex=this.baseZIndex)}}let c=(0,s.j)("popupManager"),d=()=>{(0,a.N6)("you are not install PopupManagerPlugin yet, please install it first")},u=(0,n.e)({},function(e){d=(0,o.b)(e,"$popupManager",new l(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}),c)})},99496:function(e,t,i){"use strict";i.d(t,{b:()=>r});var n=i(82813),o=i(63707);function r(e,t,i,r){let a=r??Symbol(t),s=((0,n.J)(e,a,i),()=>(0,n.f)(a)),l=(0,o.a0)(e);return l&&(l[t]=i),s}},61245:function(e,t,i){"use strict";i.d(t,{Ct:()=>_,SV:()=>w}),i(95790),i(2850),i(95922),i(60919),i(53346),i(5556);var n=i(54730),o=i(63707),r=i(5275),a=i(7135),s=i(71283),l=i(60129),c=i(7434),d=i(86658),u=i(99496),h=i(70387),p=i(40172),f=i(10158),g=i(63447);let m={x:10,y:10},v={x:30,y:30};class b{constructor(e,t,i){this.zseed=9e3,this.maximumZIndex=this.zseed+1e3,this.minimumZIndex=this.zseed-1e3,this.centeredWindowCount=0,this.offsetX=m.x,this.offsetY=m.y,this.windowsMap=Object.create(null),this.windowList=[],this.bindActivateLast=this.activateLast.bind(this),this.minimizedComps=[],this.maskList=[],l.s||(this.app=e,t instanceof HTMLElement?this._containerEl=t:(0,n.HD)(t)&&(this._containerSel=t),this.densePadding=i.densePadding||20,this.front=null,this.sortWindows=this.sortWindows.bind(this),this.centerOffsets=i.centerOffsets||[20,20],this.lastFocusElement=void 0)}get(e){return(0,n.HD)(e)?this.windowsMap?.[e]:e}getOffsetDefault(){return m}getOffsetGap(){return v}_tryAccessByCurrentTime(e){let t,i=(new Date).getTime();if(!(e=this.get(e?.id)))return!1;for(e.lastClick=i;e;)if(e=this.get(e.id)){if(t=e.component,e.lastAccess=i,(0,n.mf)(t?.isModalized)&&!t.isModalized())break;e=t.owner}return!0}bringToFront(e){let t=this.get(e.id);if(!t)throw Error(`window ${e.id} is not registered`);return this._tryAccessByCurrentTime(t),(!this.front||t.id!==this.front.id)&&(this.orderWindows(),!0)}sendToBack(e){let t=this.get(e.id);t&&(t.lastAccess=-(new Date).getTime(),this.orderWindows())}isWindowHidden(e){let t=this.get(e.id),i=t?.component;return i&&(0,n.zy)(i)?!i.showWindow:!!i?.hidden}orderWindows(){let{autoActivateLast:e=!0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.windowList?.sort(this.sortWindows),this.windowList?.forEach((e,t)=>{e.component&&!this.isWindowHidden(e)&&"setZIndex"in e.component&&(0,n.mf)(e.component.setZIndex)&&e.component.setZIndex((this.zseed??0)+10*t)}),this.maskList?.forEach(e=>{let t=this.windowList?.filter(t=>e.triggeredBy.includes(t.id));if(0===t?.length)return;let i=t?.reduce((e,t)=>Math.min(e,t.component.getZIndex()),this.maximumZIndex)??this.maximumZIndex;(0,a.iv)(e.el,"z-index",""+(i-1))}),e&&this.activateLast()}activateLast(){let e;if(this.windowList){for(let t=this.windowList.length-1;t>=0;--t)if((e=this.windowList[t]).component&&!this.isWindowHidden(e)){if(e.component.isSkipActive&&e.component.isSkipActive())continue;return this.setActiveWin(this.windowList[t]),this.windowList[t]}this.setActiveWin(null)}}setActiveWin(e){if(e!==this.front&&(this.front&&this.front.component.setActive(!1),this.front=e,e)){let t=e.component;if(!(0,n.zy)(t))for(let e of[...t.modalWin||[],...t.siblingWin||[]])e&&e.hideForMinimize&&(delete e.hideForMinimize,e.show());this._tryAccessByCurrentTime(e),this.orderWindows({autoActivateLast:!1}),t.setActive(!0)}}getLastAccess(e){let t=this.get(e.id);return t?t?.lastAccess??0:0}getGroupWinAccessTime(e){let t=this.get(e?.id);if(!t)return 0;let i=t.component?.modalWin??[];return[t.component,...i].reduce((e,t)=>Math.max(e,this.getLastAccess(t)),0)}sortWindows(e,t){let i=this.get(e.id),n=this.get(t.id);if(!i)return -1;if(!n)return 1;let o=i?.component,r=n?.component,a=o?.getTopWin?o.getTopWin():o,l=r?.getTopWin?r.getTopWin():r,c=o?.isModalized&&o.isModalized()?1:0,d=r?.isModalized&&r.isModalized()?1:0,u=o?.isAlwaysOnTop&&o.isAlwaysOnTop()?1:0,h=r?.isAlwaysOnTop&&r.isAlwaysOnTop()?1:0,p=o?.isAlwaysOnBottom&&o.isAlwaysOnBottom()?1:0,f=r?.isAlwaysOnBottom&&r.isAlwaysOnBottom()?1:0;return this.get(a?.id)?this.get(l?.id)?p!==f?f?1:-1:u!==h?h?-1:1:a!==l?this.getGroupWinAccessTime(a)<this.getGroupWinAccessTime(l)?-1:1:c&&o?.hasOwnerWin(r)?1:d&&r?.hasOwnerWin(o)?-1:o?.sinkable&&o?.hasOwnerWin(r)?i.lastClick<n.lastClick?-1:1:r?.sinkable&&r?.hasOwnerWin(o)?i.lastClick<n.lastClick?1:-1:!i.lastAccess||i.lastAccess<n.lastAccess?-1:1:((0,s.D8)(`win ${n?.id} is a zombie window, parent window ${l.id} has been destroyed`,void 0,n),1):((0,s.D8)(`win ${i?.id} is a zombie window, parent window ${a.id} has been destroyed`,void 0,i),-1)}centerWindow(e){let{withOffset:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=this.get(e.id);if(!i)return;let o=i.component,r=[0,0];if(t&&(r=this.centerOffsets?.map(e=>e*this.centeredWindowCount)??[0,0]),(0,n.zy)(o)){let e=this.getContainerEl();o.alignCenterToElement(e,e,r)}else(0,f.mV)()&&o.alignTo((0,f.mV)().get(this.getContainerEl()),"c-c",r);this.centeredWindowCount++}cascadeOverlap(e){let t;t=e.container?e.container.getSize():e.getSize();let i=this.offsetX+e.getWidth(),n=this.offsetY+e.getHeight();i>t.width&&n>t.height?this.offsetX=this.offsetY=10:i>t.width?(10===this.offsetX&&(this.offsetY=10),this.offsetX=10):n>t.height&&(this.offsetX+=v.x,this.offsetY=10),e.setPosition(this.offsetX,this.offsetY),this.offsetX+=v.x,this.offsetY+=v.y}register(e){this.windowsMap[e.id]&&this.unregister(e),(0,f.mV)()?.Window&&e instanceof(0,f.mV)().Window&&(e.manager=this);let t={id:e.id,lastClick:0,lastAccess:0,component:e};if(this.windowsMap[e.id]=t,this.windowList.push(t),e.on?e.on("hide",this.activateLast,this):(0,n.zy)(e)&&e.setMinimizedCallback?.(()=>this.activateLast()),e.fromRestore||e.isModalized&&e.isModalized()||e.defaultMaximized||this.cascadeOverlap(e),e.autoStart&&e.maximized&&e.appInstance){let{x:t,y:i,pageX:o,pageY:r}=e.appInstance.getRestoreSizePos();(0,n.$K)(t)||(0,n.$K)(i)||(0,n.$K)(o)||(0,n.$K)(r)||this.cascadeOverlap(e)}}unregister(e){e.manager&&delete e.manager,e.un&&e.un("hide",this.activateLast,this),this.windowList=this.windowList.filter(t=>t.id!==e.id),this.minimizedComps=this.minimizedComps.filter(t=>t.id!==e.id),delete this.windowsMap[e.id]}isActive(){return!!this.getContainerEl()}setZIndex(e){this.zseed=e}setContainerEl(e){e instanceof HTMLElement?this._containerEl=e:(0,n.HD)(e)&&(this._containerSel=e)}getContainerEl(){return!this._containerEl&&this._containerSel&&(this._containerEl=document.querySelector(this._containerSel)),this._containerEl??document.body}createWindow(){return(0,c.j)(...arguments)}openModalWindow(e){var t;let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.lastFocusElement=document.activeElement;let o=(n&&n.containerEl)??this.getContainerEl(),{onDestroy:r,...a}=n,s=n?.createWindow??this.createWindow;i=i??{},(n?.containerEl||n?.sharedMask)&&(i=(0,p.Z)({maskContainer:{containerEl:n.containerEl,sharedMask:n.sharedMask}},i));let{win:l,app:c,rootComponent:d}=s(e,i,{parentApp:this.app,containerEl:o,onDestroy:e=>{this.lastFocusElement?.focus?.(),r?.(e)},...a}),u=(0,p.Z)({align:{el:this.getContainerEl()}},n);return l.init(this,void 0,u),l.autoAlignAfterInit||(0,g.nextTick)(()=>{if(l.alignCenterToElement){let e=this.getContainerEl();l.alignCenterToElement(e,e)}}),(t=i).top&&(l.top=t.top),t.left&&(l.left=t.left),{window:l,component:d,app:c}}getMsgBox(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(this.app)return(e=e??(0,o.a0)(this.app)?.$messageWindow)||(0,s.D8)("you need to set first parameter as vue component for open it, if you want to used default one, please import vMessageBoxWindowPlugin when you are in tree-shaking mode"),this.openModalWindow(e,{synoId:"window-manager-msg-box",...t},i).window;(0,s.D8)("your window manager need to be init with app instance, please call windowManager.init(app) first")}getSameContainerMask(e){return this.maskList.find(t=>t.containerEl===e)}maskContainer(e){let t,{sharedMask:i=!1,containerEl:o,maskCls:r=[]}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(o=o??this.getContainerEl(),i&&this.maskList.length>0&&(o&&(t=this.getSameContainerMask(o)),(t=t||this.maskList[this.maskList.length-1])&&t.triggeredBy.push(e)),!t){for(let i of(t={id:`${e}-container-mask`,triggeredBy:[e],el:document.createElement("div"),containerEl:o},(0,a.cn)(t.el,"v-window-container-mask"),r=(0,n.kJ)(r)?r:[r]))(0,a.cn)(t.el,i);o.appendChild(t.el),this.maskList.push(t)}this.orderWindows()}unmaskContainer(e){let t=this.maskList.findIndex(t=>t.triggeredBy.includes(e));if(t<0)return;let i=this.maskList[t];i.triggeredBy=i.triggeredBy.filter(t=>t!==e),0===i.triggeredBy.length&&(i.containerEl.removeChild(i.el),this.maskList.splice(t,1),this.orderWindows())}getActive(){return this.front&&this.front.component}getBy(e,t){let i=[],n=this.windowList;for(let o=n.length-1;o>=0;--o){let r=n[o].component;!1!==e.call(t||r,r)&&i.push(r)}return i}getActiveAppWindow(){let e=this.getActive();for(;e&&!((0,f.fm)()?.SDS?.AppWindow&&e instanceof(0,f.fm)().SDS.AppWindow||(0,n.zy)(e)&&(0,n.Nr)(e,d.jK));)e=e.owner;return e}hideAll(){for(let e of this.windowList)e&&!(0,n.mf)(e)&&e.component.isVisible()&&e.component.hide()}toggleAllWin(){this.toggleAllWinMinimize()}toggleAllWinMinimize(){let e=[];for(let t of this.windowList){let i=t.component;i.isVisible()&&(!1===i.toggleMinimizable?i.close():e.push(i))}if(e.length){for(let t of e)t.minimize&&t.minimize();this.minimizedComps=e}else this.minimizedComps.length&&Promise.all(this.minimizedComps.map(e=>new Promise(t=>{e.show(void 0,t,this)}))).then(()=>{let e=(new Date).getTime();for(let[t,i]of this.minimizedComps.entries()){let n=this.get(i.id);n&&(n.lastAccess=e+t)}this.orderWindows()})}getMaximizeAppWindowCount(e){return this.windowList.reduce(function(t,i){let o=i.component;return e&&e.id&&i.id&&e.id===i.id?t:((0,n.zy)(o)||(0,f.fm)()&&o instanceof(0,f.fm)().SDS.AppWindow)&&o.isVisible()&&!0===o.maximized?t+1:t},0)}}let y=(0,h.j)("windowManager"),w=()=>{(0,s.N6)("you are not install WindowManagerPlugin yet, please install it first")},_=(0,r.e)({},function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{desktopEl:document.body};w=(0,u.b)(e,"$windowManager",new b(e,t.desktopEl,t),y)})},88446:function(e,t,i){"use strict";i.d(t,{W:()=>c});var n=i(54730),o=i(31755),r=i(22273),a=i(2840),s=i(40172),l=i(63447);function c(e,t){return t=t??(0,r.Z)((0,a.Z)(e)),(0,l.defineComponent)({mixins:[(0,o.f)("config-provider")],props:{[`configConsumer${t}`]:{type:String,default:void 0},[`disable${t}ConfigOverride`]:{type:Object,default:()=>({})}},data:()=>({syntax:t}),computed:{[`componentProviderConfigValue${t}`](){return(0,s.Z)({},this?.["config-provider"]?.instance?.[e]?.all?.value,this?.["config-provider"]?.instance?.[e]?.[this[`innerConfigConsumer${t}`]]?.value)},[`managerProviderConfigValue${t}`](){return(0,s.Z)(this.$configManager?.props?.[e]?.[this[`innerConfigConsumer${t}`]]?.value,this.$configManager?.props?.[e]?.all?.value)},[`config${t}Value`](){return(0,s.Z)(this[`managerProviderConfigValue${t}`],this[`componentProviderConfigValue${t}`])},[`innerConfigConsumer${t}`](){return this[`configConsumer${t}`]}},methods:{[`get${t}ConfigValue`](e,i){return i=i??this[e],this[`disable${t}ConfigOverride`]?.[e]?this[e]:(0,n.mf)(this[`config${t}Value`]?.[e])?this[`config${t}Value`]?.[e](this)??i:this[`config${t}Value`]?.[e]??i}}})}},96868:function(e,t,i){"use strict";i.d(t,{WI:()=>a,ZP:()=>s});var n=i(71367),o=i(89641);function r(e,t,i){for(let r of(0,o.getChildren)(this))r.$options.name===e&&(0,n.Qy)(r,...[t].concat(i))}function a(e,t,i,o,r){var a;let s=this.$parent||this.$root,l=e=>!o||e[o.key]===o.value;for(;s&&(a=s,!r||r!==a.$options.name);){if(s.$options.name===e&&l(s))return void(0,n.Qy)(s,...[t].concat(i));s=s.$parent}}var s={methods:{dispatch(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];a.apply(this,t)},broadcast(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];r.apply(this,t)}}}},74318:function(e,t,i){"use strict";i.d(t,{Z:()=>h});var n=i(96868),o=i(71367),r=i(63707),a=i(62224),s=i(54730),l=i(39693),c=i(31755),d=i(63447),u=i(70243),h=(0,d.defineComponent)({mixins:[n.ZP,(0,c.f)("data-table"),(0,c.f)("form-controls-group")],props:{subscribeField:{type:String,default:void 0},activeFormItem:{type:Boolean,default:!0},enterKey:{type:(0,u.C)(String),default:a.a.Enter,validator:e=>!e||Object.values(a.a).includes(e)},boundaryComponentName:{type:String,default:"Portal"}},emits:["focus-next-field","focus-prev-field","blur"],data:()=>({validateByField:!1,disabledKey:"disabled"}),mounted(){let e=this["form-controls-group"]?.instance?.deactiveChildrenFormItems?.();if(e){let t=(0,s.mf)(e)?e():e;if((0,s.jn)(t)){if(t)return}else if((0,s.Nr)(this,t))return}this.activeFormItem&&(this.subscribeField?this.dispatch("FormItem","form.register",[this,this.subscribeField],{key:"registerKey",value:this.subscribeField},this.boundaryComponentName):(this["data-table"]&&this["data-table"].register(this,()=>{this.inDataTableBehavior()}),this.dispatch("FormItem","form.register",[this,this.subscribeField],!1,this.boundaryComponentName)))},[r.mT.beforeUnmount](){this.activeFormItem&&(this.subscribeField?this.dispatch("FormItem","form.unregister",[this,this.subscribeField],{key:"registerKey",value:this.subscribeField},this.boundaryComponentName):this.dispatch("FormItem","form.unregister",[this,this.subscribeField],!1,this.boundaryComponentName))},methods:{handleEnterKeyHint(e){(0,l.tH)(e)&&(this.enterKey===a.a.Next?(0,o.Qy)(this,"focus-next-field"):this.enterKey===a.a.Previous&&(0,o.Qy)(this,"focus-prev-field"))},validate(){},inDataTableBehavior(){},onBlur(e){(0,o.Qy)(this,"blur",e)}}})},2176:function(e,t,i){"use strict";i.d(t,{ZP:()=>f});var n=i(7135),o=i(54730),r=i(71283),a=i(60129),s=i(49098),l=i(31755),c=i(88446),d=i(63447),u=i(70243);function h(e){return(0,o.mf)(e)&&(e=e()),(0,o.HD)(e)?document.querySelector(e):e}let p={root:"root",ancestor:"ancestor",manager:"manager",config:"config"};var f=(0,d.defineComponent)({components:{vPortal:s.Z},mixins:[(0,l.f)("adaptive-container-root"),(0,l.f)("adaptive-container"),(0,c.W)("hasPopupContainer","Popup")],props:{popupContainer:{type:(0,u.C)([Function,String,HTMLElement]),default:void 0},useAdaptiveContainer:{type:[Array,Boolean],default:()=>[p.root,p.ancestor,p.manager,p.config]},alignment:{type:(0,u.C)([Object,String]),default:()=>({pos:"tl->bl",offset:[0,1]})}},data:()=>({}),computed:{innerUseAdaptiveContainer(){let e=this.getPopupConfigValue("useAdaptiveContainer");return!1===e?e=[p.root,p.manager,p.config]:!0===e&&(e=[p.root,p.ancestor,p.manager,p.config]),e},innerPopupContainer(){return this.getPopupConfigValue("popupContainer")},innerAlignment(){return this.getPopupConfigValue("alignment")}},mounted(){this.$popupManager||(0,r.D8)("without popup manager, z-index will not be adatpive and will not have global popup container injected")},methods:{getRootContainerEl(){let e=this["adaptive-container-root"]?.instance,t=e?.forceUseAdaptiveContainer?.();return{container:h(e?.getAdaptiveContainer?.()),type:p.root,force:t}},getAncestorContainerEl(){let e=this["adaptive-container"]?.instance,t=e?.forceUseAdaptiveContainer?.();return{container:h(e?.getAdaptiveContainer?.()),type:p.ancestor,force:t}},getManagerContainerEl(){let e=this.$popupManager?.getPopupContainer();return{container:e?h(e):null,type:p.manager,force:!1}},getConfigContainerEl(){return{container:this.innerPopupContainer?h(this.innerPopupContainer):null,type:p.config,force:!1}},getContainerEl(){if(a.s)return null;let e=[this.getConfigContainerEl(),this.getAncestorContainerEl(),this.getRootContainerEl(),this.getManagerContainerEl()],t=null;for(let{container:i,force:n,type:o}of e){if(n)return i??document.body;this.innerUseAdaptiveContainer.includes(o)&&i&&!t&&(t=i)}return t??document.body},outOfContainer(e){let t=this.getContainerEl(),i=e?.getBoundingClientRect(),o=t?.getBoundingClientRect();return!i||!o||!(0,n.bt)(i,o)},outOfContainerHeight(e){let t=this.getContainerEl(),i=e.getBoundingClientRect(),n=t&&t.getBoundingClientRect();return!!n&&(i.top<n.top||i.bottom>n.bottom)}}})},9022:function(e,t,i){"use strict";i.d(t,{Z:()=>l,z:()=>s});var n=i(86847),o=i(23886),r=i(63447),a=i(70243);function s(e,t){n.tF.register(e,t)}var l=(0,r.defineComponent)({components:{vIcon:o.Z},props:{iconType:{type:(0,a.C)(String),default:n.e1.FOLLOW_MANAGER}},computed:{innerIconType(){return this.iconType===n.e1.FOLLOW_MANAGER?this.$iconManager.iconType:this.iconType},useSvgIcon(){return this.innerIconType===n.e1.SVG},useBkgIcon(){return this.innerIconType===n.e1.BKG}}})},31755:function(e,t,i){"use strict";i.d(t,{J:()=>r,f:()=>a}),i(95790),i(5556);var n=i(54730),o=i(63447);function r(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return(0,o.defineComponent)({provide(){let i=t.reduce((e,t)=>{let i,o;return(0,n.Kn)(t)?(i=t.expose,o=t.internal):(i=t,o=t),e[i]=this[o],e},{});return{[e]:{register:this.register,unregister:this.unregister,instance:this,...i}}},data:()=>({}),methods:{register:n.ZT,unregister:n.ZT}})}function a(e){return(0,o.defineComponent)({inject:{[e]:{default:n.ZT}},data:()=>({})})}},47696:function(e,t,i){"use strict";i.d(t,{Z:()=>r});var n=i(54730),o=i(60129),r=(0,i(63447).defineComponent)({beforeCreate(){this.$i18n?this._i18n=this.$i18n:this._i18n=function(e,t){var i;let r="";return o.s||(window&&window._T&&(r=window._T(e,t)),((0,n.ke)(i=r)||!(0,n.$K)(i))&&(r=`${e}:${t}`)),r}}})},63707:function(e,t,i){"use strict";i.d(t,{D2:()=>n,Dj:()=>o,a0:()=>a,mT:()=>r});let n={mounted:"mounted",updated:"updated",unmounted:"unmounted"};function o(e){return e}let r={beforeUnmount:"beforeUnmount"},a=e=>e.config.globalProperties},19257:function(e,t,i){"use strict";function n(e){return e.$.uid}function o(e){return e.$.isUnmounted}i.d(t,{h:()=>o,s:()=>n})},6901:function(e,t,i){"use strict";function n(e,t){return e?.instance}i.d(t,{s:()=>n})},71367:function(e,t,i){"use strict";i.d(t,{Qy:()=>l,M5:()=>s,Zn:()=>a});var n=i(35466);let o=new WeakMap;function r(e){var t;let i=o.get(e);return i||o.set(e,i={all:t=t||new Map,on:function(e,i){var n=t.get(e);n?n.push(i):t.set(e,[i])},off:function(e,i){var n=t.get(e);n&&(i?n.splice(n.indexOf(i)>>>0,1):t.set(e,[]))},emit:function(e,i){var n=t.get(e);n&&n.slice().map(function(e){e(i)}),(n=t.get("*"))&&n.slice().map(function(t){t(e,i)})}}),i}n.Ts&&(window.SVC_EVENTS_REGISTRY_MAP=o);let a=(e,t,i)=>(r(e).on(t,e=>{i(...e)}),()=>s(e,t,i)),s=(e,t,i)=>{r(e).off(t,i)},l=function(e,t){for(var i=arguments.length,n=Array(i>2?i-2:0),o=2;o<i;o++)n[o-2]=arguments[o];r(e).emit(t,n),e.$emit(t,...n)}},45684:function(e,t,i){"use strict";i.d(t,{FJ:()=>s,Ie:()=>l,LO:()=>a,h:()=>d,j8:()=>c});var n=i(63511),o=i(22273),r=i(2840);function a(e,t){return e.attrs[`on${(0,o.Z)((0,r.Z)(t))}`]}function s(e){return e.slots??{}}function l(e){let t,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["slots"],n=s(e);{let{slots:i,emit:n,...o}=e;t={...o,attrs:e.attrs}}return Object.keys(n).length>0&&i.includes("slots")&&(t.scopedSlots=n),t}function c(e,t){for(var i=arguments.length,n=Array(i>2?i-2:0),o=2;o<i;o++)n[o-2]=arguments[o];e.emit(t,...n)}function d(e){for(var t=arguments.length,i=Array(t>1?t-1:0),o=1;o<t;o++)i[o-1]=arguments[o];return(0,n.h)(...i)}},63511:function(e,t,i){"use strict";i.d(t,{h:()=>a});var n=i(22273),o=i(2840),r=i(63447);function a(e,t,i){{let a=function(e){let{props:t,on:i,nativeOn:r,domProps:a,attrs:s,scopedSlots:l,...c}=e=Object.assign({props:{},on:{},nativeOn:{},domProps:{},attrs:{},scopedSlots:{}},e),d={...c};if(t)for(let[e,i]of Object.entries(t))d[e]=i;if(i)for(let[e,t]of Object.entries(i))d[`on${(0,n.Z)((0,o.Z)(e))}`]=t;if(r)for(let[e,t]of Object.entries(r))d[`on${(0,n.Z)((0,o.Z)(e))}`]=t;if(a)for(let[e,t]of Object.entries(a))d[e]=t;if(s)for(let[e,t]of Object.entries(s))d[e]=t;return delete d.directives,d}(t);if(t.scopedSlots){if(i)throw Error("h function will confuse with children and slots together");i=t.scopedSlots}let s=(0,r.h)(e,a,i);return t.directives&&(s=function(e,t){let i=[];for(let e of t)i.push([(0,r.resolveDirective)(e.name),e.value,e.argument,e.modifiers]);return(0,r.withDirectives)(e,i)}(s,t.directives)),s}}},82959:function(e,t,i){"use strict";i.d(t,{$:()=>s,J:()=>a});var n=i(54730),o=i(93128),r=i(63447);function a(e,t){let i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=n.ZT,s=document.createDocumentFragment();{let n=(0,r.createVNode)(t,o);n.appContext=e._context,(0,r.render)(n,s),i=n.component?.proxy,a=()=>{(0,r.render)(null,s)}}return{component:i,destroyFn:a,anchorEl:s}}function s(e,t,i){{if(!i)throw Error("parentApp is required");let n=(0,r.createApp)(e,t);n.config.globalProperties=i.config.globalProperties;let{reload:a,...s}=i._context;return delete s.provides[o.k],Object.assign(n._context,s),n}}},18954:function(e,t,i){"use strict";function n(e){return"update:model-value"}function o(e){return"modelValue"}function r(e){return e.modelValue}i.d(t,{GV:()=>o,eQ:()=>r,ef:()=>n,yz:()=>a});let a={value:e=>"modelValue"}},82813:function(e,t,i){"use strict";i.d(t,{J:()=>o,f:()=>r});var n=i(63447);function o(e,t,i){e.provide(t,i)}function r(e,t){return(0,n.inject)(e)}},97013:function(e,t,i){"use strict";function n(e,t,i){return e[t]=i,i}function o(e,t){delete e[t]}i.d(t,{I:()=>o,t:()=>n})},83717:function(e,t,i){"use strict";function n(e,t){let i=o(e);return!!i?.[t]}function o(e){return e.$slots}function r(e,t){return Object.keys(o(t)??{}).reduce((t,i)=>(i.startsWith(e)&&t.push({name:i.replace(e,""),exposeName:i}),t),[])}i.d(t,{FJ:()=>o,XR:()=>r,_Y:()=>n}),i(95790),i(5556)},29668:function(e,t,i){"use strict";i.d(t,{g:()=>o});var n=i(54730);function o(e){if((0,n.kJ)(e)&&e.length>1)throw Error("expect only one child");return e[0]}},70243:function(e,t,i){"use strict";function n(e){return e}i.d(t,{C:()=>n})},76013:function(e,t,i){"use strict";i.d(t,{EB:()=>c,bg:()=>function e(t){for(let i=t.childNodes.length-1;i>=0;i--){let n=t.childNodes[i];if(l(n)||e(n))return!0}return!1},f9:()=>a,fo:()=>function e(t){for(let i=0;i<t.childNodes.length;i++){let n=t.childNodes[i];if(l(n)||e(n))return!0}return!1},lI:()=>s}),i(95790),i(2850);var n=i(54730);let o=['a[href]:not([tabindex^="-"])','area[href]:not([tabindex^="-"])','input:not([type="hidden"]):not([type="radio"]):not([disabled]):not([tabindex^="-"])','input[type="radio"]:not([disabled]):not([tabindex^="-"])','select:not([disabled]):not([tabindex^="-"])','textarea:not([disabled]):not([tabindex^="-"])','button:not([disabled]):not([tabindex^="-"])','iframe:not([tabindex^="-"])','audio[controls]:not([tabindex^="-"])','video[controls]:not([tabindex^="-"])','[contenteditable]:not([tabindex^="-"])','[tabindex]:not([tabindex^="-"])'];function r(e){return Array.from(e.querySelectorAll(o.join(","))).filter(e=>c(e))}function a(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.activeElement,i=r(e),n=t?i.indexOf(t):-1,o=i[n+1];return o&&l(o)}function s(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.activeElement,i=r(e),n=t?i.indexOf(t):-1,o=i[n-1];return o&&l(o)}function l(e){return e instanceof HTMLElement&&!!c(e)&&(e&&"focus"in e&&(0,n.mf)(e.focus)&&e.focus(),document.activeElement===e)}function c(e){if(null!==e.getAttribute("tabIndex"))return!0;if("disabled"in e&&e.disabled)return!1;switch(e.nodeName){case"A":return"href"in e&&!!e.href&&"ref"in e&&"ignore"!==e.ref;case"INPUT":return"type"in e&&"hidden"!==e.type&&"file"!==e.type;case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}}},71283:function(e,t,i){"use strict";i.d(t,{D8:()=>l,L1:()=>o,N6:()=>c,Rn:()=>r,cM:()=>a,p8:()=>s});var n=i(35466);function o(){return/jsDebug=script/.test(window.location.search)||n.Ts}function r(e,t,i){var r,a;return r=`'${e}' is deprecated, use '${t}' instead.`,a=i,void(n.Ys?function(e,t){for(var i=arguments.length,n=Array(i>2?i-2:0),o=2;o<i;o++)n[o-2]=arguments[o];console.log(d(e,t),...n)}(`[DEPRECATED] ${r}`,a):o()?c(`[DEPRECATED] ${r}`,a):function(e,t){for(var i=arguments.length,n=Array(i>2?i-2:0),o=2;o<i;o++)n[o-2]=arguments[o];console.warn(d(e,t),...n)}(`[DEPRECATED] ${r}`,a))}function a(){console.log(...arguments)}function s(e,t){console.table(e,t)}function l(e,t){if(o()){for(var i=arguments.length,n=Array(i>2?i-2:0),r=2;r<i;r++)n[r-2]=arguments[r];c(`${e}`,t,...n)}}function c(e,t){for(var i=arguments.length,n=Array(i>2?i-2:0),o=2;o<i;o++)n[o-2]=arguments[o];console.error(d(e,t),...n)}function d(e,t){return`[SynoVueComponents] ${e}`}},10158:function(e,t,i){"use strict";i.d(t,{fm:()=>r,mV:()=>o,rl:()=>a,zY:()=>s});var n=i(54730);function o(){return window?.Ext}function r(){return window?.SYNO}function a(e){return(r()?.API?.RequestPromise)(e)}function s(e,t,i){let o=t.split(/[-.]/),r=i.split(/[-.]/);for(let t=0,i=Math.max(o.length,r.length);t<i;t++){let i=o[t]??"0",a=r[t]??"0",[s,l]=[(0,n.hh)(i),(0,n.hh)(a)];if(s>l)return">"===e||">="===e;if(s<l)return"<"===e||"<="===e}return"="===e||">="===e||"<="===e}},7135:function(e,t,i){"use strict";i.d(t,{iv:()=>y,on:()=>_,yG:()=>I,DU:()=>w,JX:()=>N,Wn:()=>M,pv:()=>T,IH:()=>x,X5:()=>k,_4:()=>v,pn:()=>D,T5:()=>m,cn:()=>E,mh:()=>C,yM:()=>O,C3:()=>P,bt:()=>b,S1:()=>S,IV:()=>R,xj:()=>A});var n,o=i(2184),r=i(54730),a=i(35466);function s(e){return"object"==typeof e&&null!=e&&1===e.nodeType}function l(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function c(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var i,n=getComputedStyle(e,null);return l(n.overflowY,t)||l(n.overflowX,t)||!!(i=function(e){if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}}(e))&&(i.clientHeight<e.scrollHeight||i.clientWidth<e.scrollWidth)}return!1}function d(e,t,i,n,o,r,a,s){return r<e&&a>t||r>e&&a<t?0:r<=e&&s<=i||a>=t&&s>=i?r-e-n:a>t&&s<i||r<e&&s>i?a-t+o:0}var u=function(e,t){var i=window,n=t.scrollMode,o=t.block,r=t.inline,a=t.boundary,l=t.skipOverflowHiddenElements,u="function"==typeof a?a:function(e){return e!==a};if(!s(e))throw TypeError("Invalid target");for(var h,p,f=document.scrollingElement||document.documentElement,g=[],m=e;s(m)&&u(m);){if((m=null==(p=(h=m).parentElement)?h.getRootNode().host||null:p)===f){g.push(m);break}null!=m&&m===document.body&&c(m)&&!c(document.documentElement)||null!=m&&c(m,l)&&g.push(m)}for(var v=i.visualViewport?i.visualViewport.width:innerWidth,b=i.visualViewport?i.visualViewport.height:innerHeight,y=window.scrollX||pageXOffset,w=window.scrollY||pageYOffset,_=e.getBoundingClientRect(),x=_.height,S=_.width,C=_.top,k=_.right,I=_.bottom,A=_.left,T="start"===o||"nearest"===o?C:"end"===o?I:C+x/2,E="center"===r?A+S/2:"end"===r?k:A,R=[],D=0;D<g.length;D++){var O=g[D],M=O.getBoundingClientRect(),N=M.height,P=M.width,L=M.top,B=M.right,F=M.bottom,V=M.left;if("if-needed"===n&&C>=0&&A>=0&&I<=b&&k<=v&&C>=L&&I<=F&&A>=V&&k<=B)break;var z=getComputedStyle(O),H=parseInt(z.borderLeftWidth,10),W=parseInt(z.borderTopWidth,10),Y=parseInt(z.borderRightWidth,10),U=parseInt(z.borderBottomWidth,10),G=0,Z=0,j="offsetWidth"in O?O.offsetWidth-O.clientWidth-H-Y:0,q="offsetHeight"in O?O.offsetHeight-O.clientHeight-W-U:0,K="offsetWidth"in O?0===O.offsetWidth?0:P/O.offsetWidth:0,X="offsetHeight"in O?0===O.offsetHeight?0:N/O.offsetHeight:0;if(f===O)G="start"===o?T:"end"===o?T-b:"nearest"===o?d(w,w+b,b,W,U,w+T,w+T+x,x):T-b/2,Z="start"===r?E:"center"===r?E-v/2:"end"===r?E-v:d(y,y+v,v,H,Y,y+E,y+E+S,S),G=Math.max(0,G+w),Z=Math.max(0,Z+y);else{G="start"===o?T-L-W:"end"===o?T-F+U+q:"nearest"===o?d(L,F,N,W,U+q,T,T+x,x):T-(L+N/2)+q/2,Z="start"===r?E-V-H:"center"===r?E-(V+P/2)+j/2:"end"===r?E-B+Y+j:d(V,B,P,H,Y+j,E,E+S,S);var Q=O.scrollLeft,$=O.scrollTop;T+=$-(G=Math.max(0,Math.min($+G/X,O.scrollHeight-N/X+q))),E+=Q-(Z=Math.max(0,Math.min(Q+Z/K,O.scrollWidth-P/K+j)))}R.push({el:O,top:G,left:Z})}return R};function h(e){return e===Object(e)&&0!==Object.keys(e).length}let p=function(e,t){var i=e.isConnected||e.ownerDocument.documentElement.contains(e);if(h(t)&&"function"==typeof t.behavior)return t.behavior(i?u(e,t):[]);if(i){var n,o,r,a=!1===t?{block:"end",inline:"nearest"}:h(t)?t:{block:"start",inline:"nearest"};return n=u(e,a),void 0===(o=a.behavior)&&(o="auto"),r="scrollBehavior"in document.body.style,void n.forEach(function(e){var t=e.el,i=e.top,n=e.left;t.scroll&&r?t.scroll({top:i,left:n,behavior:o}):(t.scrollTop=i,t.scrollLeft=n)})}};var f=function(){return n||(n="performance"in window?performance.now.bind(performance):Date.now),n()};let g=function(e,t){var i=t||{};return i&&!i.behavior||"smooth"===i.behavior?p(e,{block:i.block,inline:i.inline,scrollMode:i.scrollMode,boundary:i.boundary,behavior:function(e){return Promise.all(e.reduce(function(e,t){var n=t.el,o=t.left,r=t.top,a=n.scrollLeft,s=n.scrollTop;return a===o&&s===r?e:[].concat(e,[new Promise(function(e){var t,l,c,d,u;return t=i.duration,l=i.ease,c=function(){return e({el:n,left:[a,o],top:[s,r]})},void 0===t&&(t=600),void 0===l&&(l=function(e){return 1+--e*e*e*e*e}),d=n.scrollLeft,u=n.scrollTop,void!function e(t){var i=Math.min((f()-t.startTime)/t.duration,1),n=t.ease(i),o=t.startX+(t.x-t.startX)*n,r=t.startY+(t.y-t.startY)*n;t.method(o,r),o!==t.x||r!==t.y?requestAnimationFrame(function(){return e(t)}):t.cb()}({scrollable:n,method:function(e,t){n.scrollLeft=Math.ceil(e),n.scrollTop=Math.ceil(t)},startTime:f(),startX:d,startY:u,x:o,y:r,duration:t,ease:l,cb:c})})])},[]))}}):Promise.resolve(p(e,t))};function m(e,t){return e.closest(t)}function v(e,t,i){let n=(0,r.kK)(e)?e.getBoundingClientRect():e;return n.right>=t&&n.left<=t&&n.bottom>=i&&n.top<=i}function b(e,t){return e.right<t.right&&e.left>t.left&&e.top>t.top&&e.bottom<t.bottom}function y(e,t,i){let n=e&&e.style;if(n){if(null==i){let i={};return document.defaultView&&document.defaultView.getComputedStyle&&(i=document.defaultView.getComputedStyle(e,"")),void 0===t?i:i[t]}t&&(t in n||-1!==t.indexOf("webkit")||(t="-webkit-"+t),n[t]=i+("string"==typeof i?"":"px"))}}function w(e,t,i){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=n.offsetX??0,r=n.offsetY??0;y(e,"left",`${t+o}px`),y(e,"top",`${i+r}px`)}function _(e,t,i){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};(0,r.kJ)(t)||(t=[t]);let o=[];for(let r of t)e.addEventListener(r,i,n),o.push(()=>{S(e,r,i,n)});return()=>{for(let e of o)e()}}function x(e,t,i){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};n.once=!0,(0,r.kJ)(t)||(t=[t]);let o=[];for(let r of t)e.addEventListener(r,i,n),o.push(()=>{S(e,r,i,n)});return()=>{for(let e of o)e()}}function S(e,t,i){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};e.removeEventListener(t,i,n)}function C(e,t){let i,n;t&&(i=t.scrollTop,n=t.scrollLeft),e?.focus({preventScroll:!0}),t&&t.scrollTo&&"number"==typeof i&&"number"==typeof n&&t.scrollTo(i,n)}function k(e,t){return g(e,{behavior:"auto",inline:"nearest",block:"nearest",...t})}function I(e){return o.hx?e.relatedTarget:e.relatedTarget??document.activeElement}function A(e){return null===e.offsetParent}function T(e,t){return e.classList.contains?e.classList.contains(t):e.className.indexOf(t)>=0}function E(e,t){if(e.classList.add)for(let i of t.split(" "))e.classList.add(i);else 0>e.className.indexOf(t)&&(e.className+=` ${t}`);return()=>{R(e,t)}}function R(e,t){e.classList.remove?e.classList.remove(t):e.className.indexOf(t)>=0&&(e.className=e.className.replace(t,""))}function D(e){return!!a.Ys||!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)}function O(e){let t;return"function"==typeof Event?t=new Event(e):(t=document.createEvent("Event")).initEvent(e,!0,!0),t}function M(e){return window.requestAnimationFrame?window.requestAnimationFrame(e):setTimeout(e,16)}function N(e){let t=e;for(;t&&!(document.documentElement===t||["scroll","auto","overlay"].includes(y(t,"overflow-y")));)t=t.parentNode;return t}function P(e){return e[0]<0||e[1]<0||e[0]>window.innerWidth||e[1]>window.innerHeight}},62224:function(e,t,i){"use strict";i.d(t,{a:()=>n});let n={Enter:"enter",Done:"done",Go:"go",Next:"next",Previous:"previous",Search:"search",Send:"send"}},35466:function(e,t,i){"use strict";i.d(t,{Ts:()=>n,Ys:()=>o});let n=!1,o=!1},39693:function(e,t,i){"use strict";i.d(t,{BU:()=>h,F$:()=>p,L8:()=>v,N5:()=>w,Tx:()=>u,Wd:()=>l,Wl:()=>d,cY:()=>c,j2:()=>m,oQ:()=>f,tH:()=>g,xp:()=>y,yl:()=>s,z6:()=>b}),i(95790),i(60919);var n=i(2184),o=i(6054),r=i(54730);let a={enter:13,tab:9,delete:46,esc:27,space:32,up:38,down:40,left:37,right:39,end:35,home:36,backspace:8,insert:45,pageup:33,pagedown:34};function s(e){return!!e&&(n.V5?e.metaKey:e.ctrlKey)}function l(e){return!!e&&(e.code?"Space"===e.code:e.keyCode===a.space)}function c(e){return!!e&&e.shiftKey}function d(e){return e.key?["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"].includes(e.key):[a.up,a.down,a.left,a.right].includes(e.keyCode)}function u(e){return e.key?"ArrowUp"===e.key||"Up"===e.key||"up"===e.key:e.keyCode===a.up}function h(e){return e.key?"ArrowDown"===e.key||"Down"===e.key||"down"===e.key:e.keyCode===a.down}function p(e){return e.key?"ArrowLeft"===e.key||"Left"===e.key||"left"===e.key:e.keyCode===a.left}function f(e){return e.key?"ArrowRight"===e.key||"Right"===e.key||"right"===e.key:e.keyCode===a.right}function g(e){return e.key?"Enter"===e.key||"enter"===e.key:e.keyCode===a.enter}function m(e){return e.key?"Escape"===e.key||"Esc"===e.key||"esc"===e.key:e.keyCode===a.esc}function v(e,t){let i=e.split("."),n=function(e,t,i,n){let o=i.eventInterface,r=i.bubbles,s=i.cancelable;return new("function"==typeof window[o]?window[o]:window.Event)(e,{bubbles:r,cancelable:s,keyCode:a[t],...n})}(i[0],i[1],{eventInterface:"Event",cancelable:!0,bubbles:!0},t),o=Object.getPrototypeOf(n);return Object.keys(t||{}).forEach(function(e){let i=Object.getOwnPropertyDescriptor(o,e);i&&void 0===i.set||(n[e]=t[e])}),n}function b(e){return(0,r.$K)(o.Z?.TouchEvent)&&e instanceof TouchEvent}function y(e){return b(e)?[e.targetTouches[0].pageX,e.targetTouches[0].pageY]:[e.pageX,e.pageY]}function w(e){return(0,r.$K)(o.Z?.MouseEvent)&&e instanceof MouseEvent}},54730:function(e,t,i){"use strict";function n(e,t){let i=(t=(t=t.replace(/\[(\w+)\]/g,".$1")).replace(/^\./,"")).split(".");for(let t=0,n=i.length;t<n;++t){let n=i[t];if(!(n in e))return;e=e[n]}return e}function o(e,t){return e.hasOwnProperty.call(e,t)}function r(e){return"string"==typeof e}function a(e){return"[object Function]"===Object.prototype.toString.call(e)||"[object AsyncFunction]"===Object.prototype.toString.call(e)}function s(e){return!!e&&"[object Object]"===Object.prototype.toString.call(e)}function l(e){return"boolean"==typeof e}function c(e){return"number"==typeof e}function d(e){return!!c(e)||!!r(e)&&parseInt(e,10).toString().padStart(e.length,"0")===e}function u(e){let t=parseInt(e,10);return Number.isNaN(t)?0:t}function h(e){return/[\d.\-+]+\s*([^\d]+)/.test(e)}function p(e){return e instanceof DOMRect}function f(e){return void 0!==e}function g(e){return r(e)&&0===e.trim().length}function m(e){return r(e)&&e.trim().length>0}function v(e){return e&&1===e.nodeType&&toString.call(e).indexOf("Element")>-1}function b(e){return Array.isArray(e)}function y(e){return"$"in e||"_isVue"in e}function w(e,t){for(t&&!r(t)&&t.name&&(t=t.name);e;){if("$options"in e&&e.$options.name==t||"name"in e&&e.name===t)return!0;if(!("$options"in e)||!e.$options.extends)break;e=e.$options.extends}return!1}function _(e){return"object"==typeof e&&null!==e}function x(e){return"[object Date]"===Object.prototype.toString.apply(e)}function S(){}function C(e,t,i){return Math.min(Math.max(e,Math.min(t,i)),Math.max(t,i))}function k(e){return a(e)&&"componentName"in e?e.componentName:"name"in e?e.name:e.$options.name}i.d(t,{$K:()=>f,Er:()=>T,Es:()=>n,HD:()=>r,HH:()=>m,HU:()=>C,Kn:()=>s,Nr:()=>w,Ou:()=>function e(t){var i;return function(e){if(!1===s(e))return!1;let t=e.constructor;if("function"!=typeof t)return!1;let i=t.prototype;return!1!==s(i)&&!1!==Object.prototype.hasOwnProperty.call(i,"isPrototypeOf")}(t)&&(!!t.template||a(t.render)||m(t.el)||v(t.el)||e(t.extends)||!!(t.mixins&&Array.isArray(i=t.mixins)&&i.length>0&&t.mixins.some(t=>e(t))))},RI:()=>o,Xy:()=>function e(t,i){if(typeof t!=typeof i)return!1;if(x(t)||x(i))return!(!x(i)||!x(t))&&t.getTime()===i.getTime();if(_(t)&&_(i)){let n=Object.keys(t),o=Object.keys(i);if(n.length!==o.length)return!1;for(let o of n)if(!Object.prototype.hasOwnProperty.call(i,o)||!1===e(t[o],i[o]))return!1;return!0}return t===i},ZT:()=>S,hh:()=>u,hj:()=>c,iE:()=>h,iN:()=>p,iY:()=>k,jn:()=>l,js:()=>I,kJ:()=>b,kK:()=>v,ke:()=>g,lV:()=>A,mf:()=>a,sI:()=>d,zy:()=>y}),i(95790),i(29127);let I={render:()=>null};function A(e){return e=(e=(e=(e=(e=(e=(e=(e=function(e){if(/^\[[^\]]+\]\(/.test(e)){let t=/^\[([^\]]+)\]/.exec(e);if(t)return t[1]}return e}(e)).toLowerCase()).split(" ").join("-")).split(/\t/).join("--")).split(/<\/?[^>]+>/).join("")).split(/[|$&`~=\\/@+*!?({[\]})<>=.,;:'"^]/).join("")).split(/[。?!,、;:“”【】()〔〕[]﹃﹄“ ”‘’﹁﹂—…-~《》〈〉「」]/).join("")).replace(/[\s·/_\\,:;.()[\]]+/g,"-").replace(/&/g,"-and-").replace(/--+/g,"-")}function T(e,t){let i=e.indexOf(t);return i>=0&&e.splice(i,1),e}},43319:function(e,t,i){"use strict";function n(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){let t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)})}i.d(t,{V:()=>n})},6054:function(e,t,i){"use strict";i.d(t,{Z:()=>n});var n=(()=>{if("undefined"!=typeof window)return window})()},77971:function(e,t,i){"use strict";i.d(t,{j:()=>l,m:()=>s}),i(95790),i(2850);var n=i(60129),o=i(54730);let r=!n.s&&window&&"IntersectionObserver"in window,a=function(e){for(let t of e)for(let e of t.target.__syno_intersection_listeners__||[])(0,o.$K)(t.isVisible)||(t.isVisible=t.isIntersecting),e.fn.apply(e.scope||e.fn,[t])},s=function(e,t,i,n){if(r)return e.__syno_intersection_listeners__||(e.__syno_intersection_listeners__=[],e.__syno_intersection__=new IntersectionObserver(a,n),e.__syno_intersection__.observe(e)),e.__syno_intersection_listeners__.push({fn:t,scope:i}),()=>l(e,t)},l=function(e,t){r&&e&&e.__syno_intersection_listeners__&&(e.__syno_intersection_listeners__=e.__syno_intersection_listeners__.filter(e=>t!==e.fn),e.__syno_intersection_listeners__.length<=0&&(e.__syno_intersection__?.disconnect(),delete e.__syno_intersection__,delete e.__syno_intersection_listeners__))}},60129:function(e,t,i){"use strict";i.d(t,{s:()=>n});let n="undefined"==typeof window},31469:function(e,t,i){"use strict";i.d(t,{p:()=>o});var n=i(7135);let o=function(e,t,i){let o=i=>{let o=i.timeStamp,r=!0,a=window.setTimeout(()=>{t.apply(window,[i]),r=!1},500);(0,n.on)(e,"touchmove",()=>{r=!1,window.clearTimeout(a)}),(0,n.IH)(e,"touchend",e=>{window.clearTimeout(a),e.timeStamp-o>500&&r&&t.apply(window,[i])})};return(0,n.on)(e,"touchstart",o),()=>(0,n.S1)(e,"touchstart",o)}},5275:function(e,t,i){"use strict";let n;i.d(t,{e:()=>n});var o=i(54730);n=function(){let{components:e=[]}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return{install:function i(n){if(!i.installed){if(e=(0,o.kJ)(e)?e:[e]){for(let t of e)if(t){let e=`v${(0,o.iY)(t)}`;n.component(e)||n.component(e,t)}}for(var r=arguments.length,a=Array(r>1?r-1:0),s=1;s<r;s++)a[s-1]=arguments[s];t?.(n,...a)}}}}},12592:function(e,t,i){"use strict";i.d(t,{k:()=>C,S:()=>k}),i(95790),i(2850);var n=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var i=-1;return e.some(function(e,n){return e[0]===t&&(i=n,!0)}),i}function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var i=e(this.__entries__,t),n=this.__entries__[i];return n&&n[1]},t.prototype.set=function(t,i){var n=e(this.__entries__,t);~n?this.__entries__[n][1]=i:this.__entries__.push([t,i])},t.prototype.delete=function(t){var i=this.__entries__,n=e(i,t);~n&&i.splice(n,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var i=0,n=this.__entries__;i<n.length;i++){var o=n[i];e.call(t,o[1],o[0])}},t}(),o="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,r=void 0!==i.g&&i.g.Math===Math?i.g:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),a="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(r):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)},s=["top","right","bottom","left","width","height","size","weight"],l="undefined"!=typeof MutationObserver,c=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var i=!1,n=!1,o=0;function r(){i&&(i=!1,e()),n&&l()}function s(){a(r)}function l(){var e=Date.now();if(i){if(e-o<2)return;n=!0}else i=!0,n=!1,setTimeout(s,20);o=e}return l}(this.refresh.bind(this),0)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,i=t.indexOf(e);~i&&t.splice(i,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter(function(e){return e.gatherActive(),e.hasActive()});return e.forEach(function(e){return e.broadcastActive()}),e.length>0},e.prototype.connect_=function(){o&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),l?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){o&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,i=void 0===t?"":t;s.some(function(e){return!!~i.indexOf(e)})&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),d=function(e,t){for(var i=0,n=Object.keys(t);i<n.length;i++){var o=n[i];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e},u=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||r},h=m(0,0,0,0);function p(e){return parseFloat(e)||0}function f(e){for(var t=[],i=1;i<arguments.length;i++)t[i-1]=arguments[i];return t.reduce(function(t,i){return t+p(e["border-"+i+"-width"])},0)}var g="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof u(e).SVGGraphicsElement}:function(e){return e instanceof u(e).SVGElement&&"function"==typeof e.getBBox};function m(e,t,i,n){return{x:e,y:t,width:i,height:n}}var v=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=m(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=function(e){if(!o)return h;if(g(e)){var t;return m(0,0,(t=e.getBBox()).width,t.height)}return function(e){var t,i=e.clientWidth,n=e.clientHeight;if(!i&&!n)return h;var o=u(e).getComputedStyle(e),r=function(e){for(var t={},i=0,n=["top","right","bottom","left"];i<n.length;i++){var o=n[i],r=e["padding-"+o];t[o]=p(r)}return t}(o),a=r.left+r.right,s=r.top+r.bottom,l=p(o.width),c=p(o.height);if("border-box"===o.boxSizing&&(Math.round(l+a)!==i&&(l-=f(o,"left","right")+a),Math.round(c+s)!==n&&(c-=f(o,"top","bottom")+s)),(t=e)!==u(t).document.documentElement){var d=Math.round(l+a)-i,g=Math.round(c+s)-n;1!==Math.abs(d)&&(l-=d),1!==Math.abs(g)&&(c-=g)}return m(r.left,r.top,l,c)}(e)}(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),b=function(e,t){var i,n,o,r,a,s=(i=t.x,n=t.y,o=t.width,r=t.height,d(a=Object.create(("undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object).prototype),{x:i,y:n,width:o,height:r,top:n,right:i+o,bottom:r+n,left:i}),a);d(this,{target:e,contentRect:s})},y=function(){function e(e,t,i){if(this.activeObservations_=[],this.observations_=new n,"function"!=typeof e)throw TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=i}return e.prototype.observe=function(e){if(!arguments.length)throw TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof u(e).Element))throw TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new v(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof u(e).Element))throw TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach(function(t){t.isActive()&&e.activeObservations_.push(t)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map(function(e){return new b(e.target,e.broadcastRect())});this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),w="undefined"!=typeof WeakMap?new WeakMap:new n,_=function e(t){if(!(this instanceof e))throw TypeError("Cannot call a class as a function.");if(!arguments.length)throw TypeError("1 argument required, but only 0 present.");var i=new y(t,c.getInstance(),this);w.set(this,i)};["observe","unobserve","disconnect"].forEach(function(e){_.prototype[e]=function(){var t;return(t=w.get(this))[e].apply(t,arguments)}});var x=void 0!==r.ResizeObserver?r.ResizeObserver:_;let S=function(e){for(let t of e)for(let e of t.target.__syno_resize_listeners__||[])e.fn.apply(e.scope||e.fn,[t])},C=function(e,t,i){return e.__syno_resize_listeners__||(e.__syno_resize_listeners__=[],e.__syno_resize__=new x(S),e.__syno_resize__.observe(e)),e.__syno_resize_listeners__.push({fn:t,scope:i}),()=>k(e,t)},k=function(e,t){e&&e.__syno_resize_listeners__&&(e.__syno_resize_listeners__=e.__syno_resize_listeners__.filter(e=>t!==e.fn),e.__syno_resize_listeners__.length<=0&&(e.__syno_resize__?.disconnect(),e.__syno_resize__=null,e.__syno_resize_listeners__=null))}},70387:function(e,t,i){"use strict";i.d(t,{j:()=>o});var n=i(35466);function o(e){return n.Ts?Symbol(e):Symbol()}},2184:function(e,t,i){"use strict";i.d(t,{Eh:()=>f,G6:()=>d,V5:()=>p,hx:()=>h});var n=i(60129);let o=!n.s&&"navigator"in window?window.navigator.userAgent.toLowerCase():"node",r=function(e){return e.test(o)},a=n.s?null:document;n.s||null===a||"documentMode"in a&&a.documentMode,n.s||null==a||a.compatMode;let s=r(/opera/),l=r(/\bchrome\b/),c=r(/webkit/),d=!l&&r(/safari/);d&&r(/applewebkit\/4/),d&&r(/version\/3/),d&&r(/version\/4/);let u=!s&&r(/msie/);u&&r(/msie 7/),u&&r(/msie 8/),u&&r(/msie 9/);let h=!c&&r(/gecko/);h&&r(/rv:1\.8/),h&&r(/rv:1\.9/),r(/windows|win32/);let p=r(/macintosh|mac os x/);function f(e,t){let i=RegExp("Version/([0-9._]+).*Safari").exec(o);try{if(i)switch(e){case"=":return parseFloat(i[1])===t;case">":return parseFloat(i[1])>t;case">=":return parseFloat(i[1])>=t;case"<":return parseFloat(i[1])<t;case"<=":return parseFloat(i[1])<=t}return!1}catch{return!1}}r(/adobeair/),r(/linux/)},89641:function(e,t,i){"use strict";i.d(t,{getChildren:()=>o,isVue3:()=>n}),i(63447);let n=!0;function o(e){let t=e.$.subTree,i=[];return t&&(i=(e=>{let t=[e],i=[];for(;t.length>0;){let e=t.shift(),n=e?.component?.proxy;if(n&&i.push(n),Array.isArray(e?.children)&&t.push(...e?.children),e?.component?.subTree){let i=e?.component.subTree;t.push(i)}}return i})(t)),i}},74999:function(e,t,i){"use strict";i.d(t,{BJ:()=>g,Bn:()=>h,Cz:()=>z,DI:()=>v,Di:()=>u,Dl:()=>V,E5:()=>L,ED:()=>S,EN:()=>l,GX:()=>o,H3:()=>y,HY:()=>M,LB:()=>p,O0:()=>P,O_:()=>F,RC:()=>A,TD:()=>r,Zt:()=>B,Zx:()=>U,aK:()=>R,aP:()=>_,cG:()=>x,eK:()=>T,fr:()=>Y,j2:()=>H,je:()=>c,k6:()=>C,k7:()=>w,m9:()=>m,nT:()=>f,np:()=>k,pQ:()=>D,ph:()=>d,qh:()=>W,rn:()=>s,sG:()=>E,tj:()=>a,u:()=>b,vN:()=>N,xI:()=>O,xo:()=>I,zw:()=>n});let n={render:()=>null},o={render:()=>null},r={render:()=>null},a={render:()=>null},s={render:()=>null},l={render:()=>null},c={render:()=>null},d={render:()=>null},u={render:()=>null},h={render:()=>null},p={render:()=>null},f={render:()=>null},g={render:()=>null},m={render:()=>null},v={render:()=>null},b={render:()=>null},y={render:()=>null},w={render:()=>null},_={render:()=>null},x={render:()=>null},S={render:()=>null},C={render:()=>null},k={render:()=>null},I={render:()=>null},A={render:()=>null},T={render:()=>null},E={render:()=>null},R={render:()=>null},D={render:()=>null},O={render:()=>null},M={render:()=>null},N={render:()=>null},P={render:()=>null},L={render:()=>null},B={render:()=>null},F={render:()=>null},V={render:()=>null},z={render:()=>null},H={render:()=>null},W={render:()=>null},Y={render:()=>null},U={render:()=>null}},83484:function(e,t,i){"use strict";i.d(t,{R:()=>o,l:()=>n});class n{inBeginning=!0;hasBackQuotes=!1;bufferedMessage="";onMessage(e){if(this.bufferedMessage+=e,this.inBeginning){let t=function(e){if(e.length<=3)if("```".startsWith(e))return;else return 0;{let t=e.match(/^(```\w*)(\n|$)/);return t?"\n"===t[2]?t[1].length+1:void 0:0}}(this.bufferedMessage);if(void 0===t)return"";this.inBeginning=!1,t?(this.hasBackQuotes=!0,this.bufferedMessage=this.bufferedMessage.slice(t)):(e=this.bufferedMessage,this.bufferedMessage="")}if(!this.hasBackQuotes)return e;let t=this.bufferedMessage.match(/\n(`{0,3}|```\n+)$/)?.[0]??"",i=0===t.length?this.bufferedMessage:this.bufferedMessage.slice(0,-t.length);return this.bufferedMessage=t,i}}function o(e){let t=function(e){let t=e.match(/^(```\w*\n)/);return t?t[1].length:0}(e);if(!t)return e;let i=function(e){let t=e.match(/(\n```\n*)$/);return t?t[1].length:0}(e);return i?e.slice(t,-i):e}},153:function(e,t,i){"use strict";i.d(t,{en:()=>is,wB:()=>iu,lr:()=>ic,qx:()=>ih});var n,o={};i.r(o),i.d(o,{decode:()=>u,encode:()=>f,format:()=>g,parse:()=>I});var r={};i.r(r),i.d(r,{Any:()=>E,Cc:()=>R,Cf:()=>D,P:()=>A,S:()=>T,Z:()=>O});var a={};i.r(a),i.d(a,{arrayReplaceAt:()=>F,assign:()=>B,escapeHtml:()=>X,escapeRE:()=>$,fromCodePoint:()=>z,has:()=>L,isMdAsciiPunct:()=>ei,isPunctChar:()=>et,isSpace:()=>J,isString:()=>N,isValidEntityCode:()=>V,isWhiteSpace:()=>ee,lib:()=>eo,normalizeReference:()=>en,unescapeAll:()=>G,unescapeMd:()=>U});var s={};i.r(s),i.d(s,{parseLinkDestination:()=>ea,parseLinkLabel:()=>er,parseLinkTitle:()=>es});var l=i(83484);let c={};function d(e,t){"string"!=typeof t&&(t=d.defaultChars);let i=function(e){let t=c[e];if(t)return t;t=c[e]=[];for(let e=0;e<128;e++){let i=String.fromCharCode(e);t.push(i)}for(let i=0;i<e.length;i++){let n=e.charCodeAt(i);t[n]="%"+("0"+n.toString(16).toUpperCase()).slice(-2)}return t}(t);return e.replace(/(%[a-f0-9]{2})+/gi,function(e){let t="";for(let n=0,o=e.length;n<o;n+=3){let r=parseInt(e.slice(n+1,n+3),16);if(r<128){t+=i[r];continue}if((224&r)==192&&n+3<o){let i=parseInt(e.slice(n+4,n+6),16);if((192&i)==128){let e=r<<6&1984|63&i;e<128?t+="��":t+=String.fromCharCode(e),n+=3;continue}}if((240&r)==224&&n+6<o){let i=parseInt(e.slice(n+4,n+6),16),o=parseInt(e.slice(n+7,n+9),16);if((192&i)==128&&(192&o)==128){let e=r<<12&61440|i<<6&4032|63&o;e<2048||e>=55296&&e<=57343?t+="���":t+=String.fromCharCode(e),n+=6;continue}}if((248&r)==240&&n+9<o){let i=parseInt(e.slice(n+4,n+6),16),o=parseInt(e.slice(n+7,n+9),16),a=parseInt(e.slice(n+10,n+12),16);if((192&i)==128&&(192&o)==128&&(192&a)==128){let e=r<<18&1835008|i<<12&258048|o<<6&4032|63&a;e<65536||e>1114111?t+="����":(e-=65536,t+=String.fromCharCode(55296+(e>>10),56320+(1023&e))),n+=9;continue}}t+="�"}return t})}d.defaultChars=";/?:@&=+$,#",d.componentChars="";let u=d,h={};function p(e,t,i){"string"!=typeof t&&(i=t,t=p.defaultChars),void 0===i&&(i=!0);let n=function(e){let t=h[e];if(t)return t;t=h[e]=[];for(let e=0;e<128;e++){let i=String.fromCharCode(e);/^[0-9a-z]$/i.test(i)?t.push(i):t.push("%"+("0"+e.toString(16).toUpperCase()).slice(-2))}for(let i=0;i<e.length;i++)t[e.charCodeAt(i)]=e[i];return t}(t),o="";for(let t=0,r=e.length;t<r;t++){let a=e.charCodeAt(t);if(i&&37===a&&t+2<r&&/^[0-9a-f]{2}$/i.test(e.slice(t+1,t+3))){o+=e.slice(t,t+3),t+=2;continue}if(a<128){o+=n[a];continue}if(a>=55296&&a<=57343){if(a>=55296&&a<=56319&&t+1<r){let i=e.charCodeAt(t+1);if(i>=56320&&i<=57343){o+=encodeURIComponent(e[t]+e[t+1]),t++;continue}}o+="%EF%BF%BD";continue}o+=encodeURIComponent(e[t])}return o}p.defaultChars=";/?:@&=+$,-_.!~*'()#",p.componentChars="-_.!~*'()";let f=p;function g(e){let t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&-1!==e.hostname.indexOf(":")?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",t+=e.search||"",t+=e.hash||""}function m(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}let v=/^([a-z0-9.+-]+:)/i,b=/:[0-9]*$/,y=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,w=["%","/","?",";","#"].concat(["'"].concat(["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","	"]))),_=["/","?","#"],x=/^[+a-z0-9A-Z_-]{0,63}$/,S=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,C={javascript:!0,"javascript:":!0},k={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};m.prototype.parse=function(e,t){let i,n,o,r=e;if(r=r.trim(),!t&&1===e.split("#").length){let e=y.exec(r);if(e)return this.pathname=e[1],e[2]&&(this.search=e[2]),this}let a=v.exec(r);if(a&&(i=(a=a[0]).toLowerCase(),this.protocol=a,r=r.substr(a.length)),(t||a||r.match(/^\/\/[^@\/]+@[^@\/]+/))&&(o="//"===r.substr(0,2))&&!(a&&C[a])&&(r=r.substr(2),this.slashes=!0),!C[a]&&(o||a&&!k[a])){let e,t,i=-1;for(let e=0;e<_.length;e++)-1!==(n=r.indexOf(_[e]))&&(-1===i||n<i)&&(i=n);-1!==(t=-1===i?r.lastIndexOf("@"):r.lastIndexOf("@",i))&&(e=r.slice(0,t),r=r.slice(t+1),this.auth=e),i=-1;for(let e=0;e<w.length;e++)-1!==(n=r.indexOf(w[e]))&&(-1===i||n<i)&&(i=n);-1===i&&(i=r.length),":"===r[i-1]&&i--;let o=r.slice(0,i);r=r.slice(i),this.parseHost(o),this.hostname=this.hostname||"";let a="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!a){let e=this.hostname.split(/\./);for(let t=0,i=e.length;t<i;t++){let i=e[t];if(i&&!i.match(x)){let n="";for(let e=0,t=i.length;e<t;e++)i.charCodeAt(e)>127?n+="x":n+=i[e];if(!n.match(x)){let n=e.slice(0,t),o=e.slice(t+1),a=i.match(S);a&&(n.push(a[1]),o.unshift(a[2])),o.length&&(r=o.join(".")+r),this.hostname=n.join(".");break}}}}this.hostname.length>255&&(this.hostname=""),a&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}let s=r.indexOf("#");-1!==s&&(this.hash=r.substr(s),r=r.slice(0,s));let l=r.indexOf("?");return -1!==l&&(this.search=r.substr(l),r=r.slice(0,l)),r&&(this.pathname=r),k[i]&&this.hostname&&!this.pathname&&(this.pathname=""),this},m.prototype.parseHost=function(e){let t=b.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};let I=function(e,t){if(e&&e instanceof m)return e;let i=new m;return i.parse(e,t),i},A=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,T=/[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/,E=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,R=/[\0-\x1F\x7F-\x9F]/,D=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/,O=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/;var M=i(99762);function N(e){return"[object String]"===Object.prototype.toString.call(e)}let P=Object.prototype.hasOwnProperty;function L(e,t){return P.call(e,t)}function B(e){let t=Array.prototype.slice.call(arguments,1);return t.forEach(function(t){if(t){if("object"!=typeof t)throw TypeError(t+"must be object");Object.keys(t).forEach(function(i){e[i]=t[i]})}}),e}function F(e,t,i){return[].concat(e.slice(0,t),i,e.slice(t+1))}function V(e){return(!(e>=55296)||!(e<=57343))&&(!(e>=64976)||!(e<=65007))&&(65535&e)!=65535&&(65535&e)!=65534&&(!(e>=0)||!(e<=8))&&11!==e&&(!(e>=14)||!(e<=31))&&(!(e>=127)||!(e<=159))&&!(e>1114111)&&!0}function z(e){return e>65535?String.fromCharCode(55296+((e-=65536)>>10),56320+(1023&e)):String.fromCharCode(e)}let H=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,W=RegExp(H.source+"|"+/&([a-z#][a-z0-9]{1,31});/gi.source,"gi"),Y=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function U(e){return 0>e.indexOf("\\")?e:e.replace(H,"$1")}function G(e){return 0>e.indexOf("\\")&&0>e.indexOf("&")?e:e.replace(W,function(e,t,i){if(t)return t;if(35===i.charCodeAt(0)&&Y.test(i)){let t="x"===i[1].toLowerCase()?parseInt(i.slice(2),16):parseInt(i.slice(1),10);return V(t)?z(t):e}let n=(0,M.p1)(e);return n!==e?n:e})}let Z=/[&<>"]/,j=/[&<>"]/g,q={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function K(e){return q[e]}function X(e){return Z.test(e)?e.replace(j,K):e}let Q=/[.?*+^$[\]\\(){}|-]/g;function $(e){return e.replace(Q,"\\$&")}function J(e){switch(e){case 9:case 32:return!0}return!1}function ee(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}function et(e){return A.test(e)||T.test(e)}function ei(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function en(e){return(e=e.trim().replace(/\s+/g," ")).toLowerCase().toUpperCase()}let eo={mdurl:o,ucmicro:r};function er(e,t,i){let n,o,r,a,s=e.posMax,l=e.pos;for(e.pos=t+1,n=1;e.pos<s;){if(93===(r=e.src.charCodeAt(e.pos))&&0==--n){o=!0;break}if(a=e.pos,e.md.inline.skipToken(e),91===r){if(a===e.pos-1)n++;else if(i)return e.pos=l,-1}}let c=-1;return o&&(c=e.pos),e.pos=l,c}function ea(e,t,i){let n,o=t,r={ok:!1,pos:0,str:""};if(60===e.charCodeAt(o)){for(o++;o<i&&10!==(n=e.charCodeAt(o))&&60!==n;){if(62===n){r.pos=o+1,r.str=G(e.slice(t+1,o)),r.ok=!0;break}if(92===n&&o+1<i){o+=2;continue}o++}return r}let a=0;for(;o<i&&32!==(n=e.charCodeAt(o))&&!(n<32)&&127!==n;){if(92===n&&o+1<i){if(32===e.charCodeAt(o+1))break;o+=2;continue}if(40===n&&++a>32)return r;if(41===n){if(0===a)break;a--}o++}return t===o||0!==a||(r.str=G(e.slice(t,o)),r.pos=o,r.ok=!0),r}function es(e,t,i,n){let o,r=t,a={ok:!1,can_continue:!1,pos:0,str:"",marker:0};if(n)a.str=n.str,a.marker=n.marker;else{if(r>=i)return a;let n=e.charCodeAt(r);if(34!==n&&39!==n&&40!==n)return a;t++,r++,40===n&&(n=41),a.marker=n}for(;r<i;){if((o=e.charCodeAt(r))===a.marker)return a.pos=r+1,a.str+=G(e.slice(t,r)),a.ok=!0,a;if(40===o&&41===a.marker)return a;92===o&&r+1<i&&r++,r++}return a.can_continue=!0,a.str+=G(e.slice(t,r)),a}let el={};function ec(){this.rules=B({},el)}function ed(){this.__rules__=[],this.__cache__=null}function eu(e,t,i){this.type=e,this.tag=t,this.attrs=null,this.map=null,this.nesting=i,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}function eh(e,t,i){this.src=e,this.env=i,this.tokens=[],this.inlineMode=!1,this.md=t}el.code_inline=function(e,t,i,n,o){let r=e[t];return"<code"+o.renderAttrs(r)+">"+X(r.content)+"</code>"},el.code_block=function(e,t,i,n,o){let r=e[t];return"<pre"+o.renderAttrs(r)+"><code>"+X(e[t].content)+"</code></pre>\n"},el.fence=function(e,t,i,n,o){let r,a=e[t],s=a.info?G(a.info).trim():"",l="",c="";if(s){let e=s.split(/(\s+)/g);l=e[0],c=e.slice(2).join("")}if(0===(r=i.highlight&&i.highlight(a.content,l,c)||X(a.content)).indexOf("<pre"))return r+"\n";if(s){let e=a.attrIndex("class"),t=a.attrs?a.attrs.slice():[];return e<0?t.push(["class",i.langPrefix+l]):(t[e]=t[e].slice(),t[e][1]+=" "+i.langPrefix+l),`<pre><code${o.renderAttrs({attrs:t})}>${r}</code></pre>
`}return`<pre><code${o.renderAttrs(a)}>${r}</code></pre>
`},el.image=function(e,t,i,n,o){let r=e[t];return r.attrs[r.attrIndex("alt")][1]=o.renderInlineAsText(r.children,i,n),o.renderToken(e,t,i)},el.hardbreak=function(e,t,i){return i.xhtmlOut?"<br />\n":"<br>\n"},el.softbreak=function(e,t,i){return i.breaks?i.xhtmlOut?"<br />\n":"<br>\n":"\n"},el.text=function(e,t){return X(e[t].content)},el.html_block=function(e,t){return e[t].content},el.html_inline=function(e,t){return e[t].content},ec.prototype.renderAttrs=function(e){let t,i,n;if(!e.attrs)return"";for(t=0,n="",i=e.attrs.length;t<i;t++)n+=" "+X(e.attrs[t][0])+'="'+X(e.attrs[t][1])+'"';return n},ec.prototype.renderToken=function(e,t,i){let n=e[t],o="";if(n.hidden)return"";n.block&&-1!==n.nesting&&t&&e[t-1].hidden&&(o+="\n"),o+=(-1===n.nesting?"</":"<")+n.tag,o+=this.renderAttrs(n),0===n.nesting&&i.xhtmlOut&&(o+=" /");let r=!1;if(n.block&&(r=!0,1===n.nesting&&t+1<e.length)){let i=e[t+1];"inline"===i.type||i.hidden?r=!1:-1===i.nesting&&i.tag===n.tag&&(r=!1)}return o+(r?">\n":">")},ec.prototype.renderInline=function(e,t,i){let n="",o=this.rules;for(let r=0,a=e.length;r<a;r++){let a=e[r].type;void 0!==o[a]?n+=o[a](e,r,t,i,this):n+=this.renderToken(e,r,t)}return n},ec.prototype.renderInlineAsText=function(e,t,i){let n="";for(let o=0,r=e.length;o<r;o++)switch(e[o].type){case"text":case"html_inline":case"html_block":n+=e[o].content;break;case"image":n+=this.renderInlineAsText(e[o].children,t,i);break;case"softbreak":case"hardbreak":n+="\n"}return n},ec.prototype.render=function(e,t,i){let n="",o=this.rules;for(let r=0,a=e.length;r<a;r++){let a=e[r].type;"inline"===a?n+=this.renderInline(e[r].children,t,i):void 0!==o[a]?n+=o[a](e,r,t,i,this):n+=this.renderToken(e,r,t,i)}return n},ed.prototype.__find__=function(e){for(let t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t;return -1},ed.prototype.__compile__=function(){let e=this,t=[""];e.__rules__.forEach(function(e){e.enabled&&e.alt.forEach(function(e){0>t.indexOf(e)&&t.push(e)})}),e.__cache__={},t.forEach(function(t){e.__cache__[t]=[],e.__rules__.forEach(function(i){i.enabled&&(t&&0>i.alt.indexOf(t)||e.__cache__[t].push(i.fn))})})},ed.prototype.at=function(e,t,i){let n=this.__find__(e);if(-1===n)throw Error("Parser rule not found: "+e);this.__rules__[n].fn=t,this.__rules__[n].alt=(i||{}).alt||[],this.__cache__=null},ed.prototype.before=function(e,t,i,n){let o=this.__find__(e);if(-1===o)throw Error("Parser rule not found: "+e);this.__rules__.splice(o,0,{name:t,enabled:!0,fn:i,alt:(n||{}).alt||[]}),this.__cache__=null},ed.prototype.after=function(e,t,i,n){let o=this.__find__(e);if(-1===o)throw Error("Parser rule not found: "+e);this.__rules__.splice(o+1,0,{name:t,enabled:!0,fn:i,alt:(n||{}).alt||[]}),this.__cache__=null},ed.prototype.push=function(e,t,i){this.__rules__.push({name:e,enabled:!0,fn:t,alt:(i||{}).alt||[]}),this.__cache__=null},ed.prototype.enable=function(e,t){Array.isArray(e)||(e=[e]);let i=[];return e.forEach(function(e){let n=this.__find__(e);if(n<0){if(t)return;throw Error("Rules manager: invalid rule name "+e)}this.__rules__[n].enabled=!0,i.push(e)},this),this.__cache__=null,i},ed.prototype.enableOnly=function(e,t){Array.isArray(e)||(e=[e]),this.__rules__.forEach(function(e){e.enabled=!1}),this.enable(e,t)},ed.prototype.disable=function(e,t){Array.isArray(e)||(e=[e]);let i=[];return e.forEach(function(e){let n=this.__find__(e);if(n<0){if(t)return;throw Error("Rules manager: invalid rule name "+e)}this.__rules__[n].enabled=!1,i.push(e)},this),this.__cache__=null,i},ed.prototype.getRules=function(e){return null===this.__cache__&&this.__compile__(),this.__cache__[e]||[]},eu.prototype.attrIndex=function(e){if(!this.attrs)return -1;let t=this.attrs;for(let i=0,n=t.length;i<n;i++)if(t[i][0]===e)return i;return -1},eu.prototype.attrPush=function(e){this.attrs?this.attrs.push(e):this.attrs=[e]},eu.prototype.attrSet=function(e,t){let i=this.attrIndex(e),n=[e,t];i<0?this.attrPush(n):this.attrs[i]=n},eu.prototype.attrGet=function(e){let t=this.attrIndex(e),i=null;return t>=0&&(i=this.attrs[t][1]),i},eu.prototype.attrJoin=function(e,t){let i=this.attrIndex(e);i<0?this.attrPush([e,t]):this.attrs[i][1]=this.attrs[i][1]+" "+t},eh.prototype.Token=eu;let ep=/\r\n?|\n/g,ef=/\0/g,eg=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,em=/\((c|tm|r)\)/i,ev=/\((c|tm|r)\)/ig,eb={c:"\xa9",r:"\xae",tm:"™"};function ey(e,t){return eb[t.toLowerCase()]}let ew=/['"]/,e_=/['"]/g;function ex(e,t,i){return e.slice(0,t)+i+e.slice(t+1)}let eS=[["normalize",function(e){let t;t=(t=e.src.replace(ep,"\n")).replace(ef,"�"),e.src=t}],["block",function(e){let t;e.inlineMode?((t=new e.Token("inline","",0)).content=e.src,t.map=[0,1],t.children=[],e.tokens.push(t)):e.md.block.parse(e.src,e.md,e.env,e.tokens)}],["inline",function(e){let t=e.tokens;for(let i=0,n=t.length;i<n;i++){let n=t[i];"inline"===n.type&&e.md.inline.parse(n.content,e.md,e.env,n.children)}}],["linkify",function(e){let t=e.tokens;if(e.md.options.linkify)for(let o=0,r=t.length;o<r;o++){if("inline"!==t[o].type||!e.md.linkify.pretest(t[o].content))continue;let r=t[o].children,a=0;for(let s=r.length-1;s>=0;s--){let l=r[s];if("link_close"===l.type){for(s--;r[s].level!==l.level&&"link_open"!==r[s].type;)s--;continue}if("html_inline"===l.type){var i,n;i=l.content,/^<a[>\s]/i.test(i)&&a>0&&a--,n=l.content,/^<\/a\s*>/i.test(n)&&a++}if(!(a>0)&&"text"===l.type&&e.md.linkify.test(l.content)){let i=l.content,n=e.md.linkify.match(i),a=[],c=l.level,d=0;n.length>0&&0===n[0].index&&s>0&&"text_special"===r[s-1].type&&(n=n.slice(1));for(let t=0;t<n.length;t++){let o=n[t].url,r=e.md.normalizeLink(o);if(!e.md.validateLink(r))continue;let s=n[t].text;s=n[t].schema?"mailto:"!==n[t].schema||/^mailto:/i.test(s)?e.md.normalizeLinkText(s):e.md.normalizeLinkText("mailto:"+s).replace(/^mailto:/,""):e.md.normalizeLinkText("http://"+s).replace(/^http:\/\//,"");let l=n[t].index;if(l>d){let t=new e.Token("text","",0);t.content=i.slice(d,l),t.level=c,a.push(t)}let u=new e.Token("link_open","a",1);u.attrs=[["href",r]],u.level=c++,u.markup="linkify",u.info="auto",a.push(u);let h=new e.Token("text","",0);h.content=s,h.level=c,a.push(h);let p=new e.Token("link_close","a",-1);p.level=--c,p.markup="linkify",p.info="auto",a.push(p),d=n[t].lastIndex}if(d<i.length){let t=new e.Token("text","",0);t.content=i.slice(d),t.level=c,a.push(t)}t[o].children=r=F(r,s,a)}}}}],["replacements",function(e){let t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)"inline"===e.tokens[t].type&&(em.test(e.tokens[t].content)&&function(e){let t=0;for(let i=e.length-1;i>=0;i--){let n=e[i];"text"!==n.type||t||(n.content=n.content.replace(ev,ey)),"link_open"===n.type&&"auto"===n.info&&t--,"link_close"===n.type&&"auto"===n.info&&t++}}(e.tokens[t].children),eg.test(e.tokens[t].content)&&function(e){let t=0;for(let i=e.length-1;i>=0;i--){let n=e[i];"text"===n.type&&!t&&eg.test(n.content)&&(n.content=n.content.replace(/\+-/g,"\xb1").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1—").replace(/(^|\s)--(?=\s|$)/mg,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1–")),"link_open"===n.type&&"auto"===n.info&&t--,"link_close"===n.type&&"auto"===n.info&&t++}}(e.tokens[t].children))}],["smartquotes",function(e){if(e.md.options.typographer)for(let t=e.tokens.length-1;t>=0;t--)"inline"===e.tokens[t].type&&ew.test(e.tokens[t].content)&&function(e,t){let i,n=[];for(let o=0;o<e.length;o++){let r=e[o],a=e[o].level;for(i=n.length-1;i>=0&&!(n[i].level<=a);i--);if(n.length=i+1,"text"!==r.type)continue;let s=r.content,l=0,c=s.length;n:for(;l<c;){e_.lastIndex=l;let d=e_.exec(s);if(!d)break;let u=!0,h=!0;l=d.index+1;let p="'"===d[0],f=32;if(d.index-1>=0)f=s.charCodeAt(d.index-1);else for(i=o-1;i>=0&&"softbreak"!==e[i].type&&"hardbreak"!==e[i].type;i--)if(e[i].content){f=e[i].content.charCodeAt(e[i].content.length-1);break}let g=32;if(l<c)g=s.charCodeAt(l);else for(i=o+1;i<e.length&&"softbreak"!==e[i].type&&"hardbreak"!==e[i].type;i++)if(e[i].content){g=e[i].content.charCodeAt(0);break}let m=ei(f)||et(String.fromCharCode(f)),v=ei(g)||et(String.fromCharCode(g)),b=ee(f),y=ee(g);if(y?u=!1:v&&!(b||m)&&(u=!1),b?h=!1:m&&!(y||v)&&(h=!1),34===g&&'"'===d[0]&&f>=48&&f<=57&&(h=u=!1),u&&h&&(u=m,h=v),!u&&!h){p&&(r.content=ex(r.content,d.index,"’"));continue}if(h)for(i=n.length-1;i>=0;i--){let u=n[i];if(n[i].level<a)break;if(u.single===p&&n[i].level===a){let a,h;u=n[i],p?(a=t.md.options.quotes[2],h=t.md.options.quotes[3]):(a=t.md.options.quotes[0],h=t.md.options.quotes[1]),r.content=ex(r.content,d.index,h),e[u.token].content=ex(e[u.token].content,u.pos,a),l+=h.length-1,u.token===o&&(l+=a.length-1),c=(s=r.content).length,n.length=i;continue n}}u?n.push({token:o,pos:d.index,single:p,level:a}):h&&p&&(r.content=ex(r.content,d.index,"’"))}}}(e.tokens[t].children,e)}],["text_join",function(e){let t,i,n=e.tokens,o=n.length;for(let e=0;e<o;e++){if("inline"!==n[e].type)continue;let o=n[e].children,r=o.length;for(t=0;t<r;t++)"text_special"===o[t].type&&(o[t].type="text");for(t=i=0;t<r;t++)"text"===o[t].type&&t+1<r&&"text"===o[t+1].type?o[t+1].content=o[t].content+o[t+1].content:(t!==i&&(o[i]=o[t]),i++);t!==i&&(o.length=i)}}]];function eC(){this.ruler=new ed;for(let e=0;e<eS.length;e++)this.ruler.push(eS[e][0],eS[e][1])}function ek(e,t,i,n){this.src=e,this.md=t,this.env=i,this.tokens=n,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0;let o=this.src;for(let e=0,t=0,i=0,n=0,r=o.length,a=!1;t<r;t++){let s=o.charCodeAt(t);if(!a)if(J(s)){i++,9===s?n+=4-n%4:n++;continue}else a=!0;(10===s||t===r-1)&&(10!==s&&t++,this.bMarks.push(e),this.eMarks.push(t),this.tShift.push(i),this.sCount.push(n),this.bsCount.push(0),a=!1,i=0,n=0,e=t+1)}this.bMarks.push(o.length),this.eMarks.push(o.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}function eI(e,t){let i=e.bMarks[t]+e.tShift[t],n=e.eMarks[t];return e.src.slice(i,n)}function eA(e){let t=[],i=e.length,n=0,o=e.charCodeAt(n),r=!1,a=0,s="";for(;n<i;)124===o&&(r?(s+=e.substring(a,n-1),a=n):(t.push(s+e.substring(a,n)),s="",a=n+1)),r=92===o,n++,o=e.charCodeAt(n);return t.push(s+e.substring(a)),t}function eT(e,t){let i=e.eMarks[t],n=e.bMarks[t]+e.tShift[t],o=e.src.charCodeAt(n++);return 42!==o&&45!==o&&43!==o||n<i&&!J(e.src.charCodeAt(n))?-1:n}function eE(e,t){let i=e.bMarks[t]+e.tShift[t],n=e.eMarks[t],o=i;if(o+1>=n)return -1;let r=e.src.charCodeAt(o++);if(r<48||r>57)return -1;for(;;){if(o>=n)return -1;if((r=e.src.charCodeAt(o++))>=48&&r<=57){if(o-i>=10)return -1;continue}if(41===r||46===r)break;return -1}return o<n&&!J(r=e.src.charCodeAt(o))?-1:o}eC.prototype.process=function(e){let t=this.ruler.getRules("");for(let i=0,n=t.length;i<n;i++)t[i](e)},eC.prototype.State=eh,ek.prototype.push=function(e,t,i){let n=new eu(e,t,i);return n.block=!0,i<0&&this.level--,n.level=this.level,i>0&&this.level++,this.tokens.push(n),n},ek.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]},ek.prototype.skipEmptyLines=function(e){for(let t=this.lineMax;e<t&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e},ek.prototype.skipSpaces=function(e){for(let t=this.src.length;e<t&&J(this.src.charCodeAt(e));e++);return e},ek.prototype.skipSpacesBack=function(e,t){if(e<=t)return e;for(;e>t;)if(!J(this.src.charCodeAt(--e)))return e+1;return e},ek.prototype.skipChars=function(e,t){for(let i=this.src.length;e<i&&this.src.charCodeAt(e)===t;e++);return e},ek.prototype.skipCharsBack=function(e,t,i){if(e<=i)return e;for(;e>i;)if(t!==this.src.charCodeAt(--e))return e+1;return e},ek.prototype.getLines=function(e,t,i,n){if(e>=t)return"";let o=Array(t-e);for(let r=0,a=e;a<t;a++,r++){let e,s=0,l=this.bMarks[a],c=l;for(e=a+1<t||n?this.eMarks[a]+1:this.eMarks[a];c<e&&s<i;){let e=this.src.charCodeAt(c);if(J(e))9===e?s+=4-(s+this.bsCount[a])%4:s++;else if(c-l<this.tShift[a])s++;else break;c++}s>i?o[r]=Array(s-i+1).join(" ")+this.src.slice(c,e):o[r]=this.src.slice(c,e)}return o.join("")},ek.prototype.Token=eu;let eR="<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^\"'=<>`\\x00-\\x20]+|'[^']*'|\"[^\"]*\"))?)*\\s*\\/?>",eD="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",eO=RegExp("^(?:"+eR+"|"+eD+"|\x3c!---?>|\x3c!--(?:[^-]|-[^-]|--[^>])*--\x3e|<[?][\\s\\S]*?[?]>|<![A-Za-z][^>]*>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>)"),eM=RegExp("^(?:"+eR+"|"+eD+")"),eN=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[RegExp("^</?(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|h1|h2|h3|h4|h5|h6|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul)(?=(\\s|/?>|$))","i"),/^$/,!0],[RegExp(eM.source+"\\s*$"),/^$/,!1]],eP=[["table",function(e,t,i,n){let o;if(t+2>i)return!1;let r=t+1;if(e.sCount[r]<e.blkIndent||e.sCount[r]-e.blkIndent>=4)return!1;let a=e.bMarks[r]+e.tShift[r];if(a>=e.eMarks[r])return!1;let s=e.src.charCodeAt(a++);if(124!==s&&45!==s&&58!==s||a>=e.eMarks[r])return!1;let l=e.src.charCodeAt(a++);if(124!==l&&45!==l&&58!==l&&!J(l)||45===s&&J(l))return!1;for(;a<e.eMarks[r];){let t=e.src.charCodeAt(a);if(124!==t&&45!==t&&58!==t&&!J(t))return!1;a++}let c=eI(e,t+1),d=c.split("|"),u=[];for(let e=0;e<d.length;e++){let t=d[e].trim();if(!t)if(0===e||e===d.length-1)continue;else return!1;if(!/^:?-+:?$/.test(t))return!1;58===t.charCodeAt(t.length-1)?u.push(58===t.charCodeAt(0)?"center":"right"):58===t.charCodeAt(0)?u.push("left"):u.push("")}if(-1===(c=eI(e,t).trim()).indexOf("|")||e.sCount[t]-e.blkIndent>=4)return!1;(d=eA(c)).length&&""===d[0]&&d.shift(),d.length&&""===d[d.length-1]&&d.pop();let h=d.length;if(0===h||h!==u.length)return!1;if(n)return!0;let p=e.parentType;e.parentType="table";let f=e.md.block.ruler.getRules("blockquote"),g=e.push("table_open","table",1),m=[t,0];g.map=m,e.push("thead_open","thead",1).map=[t,t+1],e.push("tr_open","tr",1).map=[t,t+1];for(let t=0;t<d.length;t++){let i=e.push("th_open","th",1);u[t]&&(i.attrs=[["style","text-align:"+u[t]]]);let n=e.push("inline","",0);n.content=d[t].trim(),n.children=[],e.push("th_close","th",-1)}e.push("tr_close","tr",-1),e.push("thead_close","thead",-1);let v=0;for(r=t+2;r<i&&!(e.sCount[r]<e.blkIndent);r++){let n=!1;for(let t=0,o=f.length;t<o;t++)if(f[t](e,r,i,!0)){n=!0;break}if(n||!(c=eI(e,r).trim())||e.sCount[r]-e.blkIndent>=4||((d=eA(c)).length&&""===d[0]&&d.shift(),d.length&&""===d[d.length-1]&&d.pop(),(v+=h-d.length)>65536))break;r===t+2&&(e.push("tbody_open","tbody",1).map=o=[t+2,0]),e.push("tr_open","tr",1).map=[r,r+1];for(let t=0;t<h;t++){let i=e.push("td_open","td",1);u[t]&&(i.attrs=[["style","text-align:"+u[t]]]);let n=e.push("inline","",0);n.content=d[t]?d[t].trim():"",n.children=[],e.push("td_close","td",-1)}e.push("tr_close","tr",-1)}return o&&(e.push("tbody_close","tbody",-1),o[1]=r),e.push("table_close","table",-1),m[1]=r,e.parentType=p,e.line=r,!0},["paragraph","reference"]],["code",function(e,t,i){if(e.sCount[t]-e.blkIndent<4)return!1;let n=t+1,o=n;for(;n<i;){if(e.isEmpty(n)){n++;continue}if(e.sCount[n]-e.blkIndent>=4){o=++n;continue}break}e.line=o;let r=e.push("code_block","code",0);return r.content=e.getLines(t,o,4+e.blkIndent,!1)+"\n",r.map=[t,e.line],!0}],["fence",function(e,t,i,n){let o=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||o+3>r)return!1;let a=e.src.charCodeAt(o);if(126!==a&&96!==a)return!1;let s=o,l=(o=e.skipChars(o,a))-s;if(l<3)return!1;let c=e.src.slice(s,o),d=e.src.slice(o,r);if(96===a&&d.indexOf(String.fromCharCode(a))>=0)return!1;if(n)return!0;let u=t,h=!1;for(;!(++u>=i)&&(!((o=s=e.bMarks[u]+e.tShift[u])<(r=e.eMarks[u]))||!(e.sCount[u]<e.blkIndent));){;if(!(e.src.charCodeAt(o)!==a||e.sCount[u]-e.blkIndent>=4||(o=e.skipChars(o,a))-s<l)&&!((o=e.skipSpaces(o))<r)){h=!0;break}}l=e.sCount[t],e.line=u+ +!!h;let p=e.push("fence","code",0);return p.info=d,p.content=e.getLines(t+1,u,l,!0),p.markup=c,p.map=[t,e.line],!0},["paragraph","reference","blockquote","list"]],["blockquote",function(e,t,i,n){let o,r=e.bMarks[t]+e.tShift[t],a=e.eMarks[t],s=e.lineMax;if(e.sCount[t]-e.blkIndent>=4||62!==e.src.charCodeAt(r))return!1;if(n)return!0;let l=[],c=[],d=[],u=[],h=e.md.block.ruler.getRules("blockquote"),p=e.parentType;e.parentType="blockquote";let f=!1;for(o=t;o<i;o++){let t=e.sCount[o]<e.blkIndent;if((r=e.bMarks[o]+e.tShift[o])>=(a=e.eMarks[o]))break;if(62===e.src.charCodeAt(r++)&&!t){let t,i,n=e.sCount[o]+1;32===e.src.charCodeAt(r)?(r++,n++,i=!1,t=!0):9===e.src.charCodeAt(r)?(t=!0,(e.bsCount[o]+n)%4==3?(r++,n++,i=!1):i=!0):t=!1;let s=n;for(l.push(e.bMarks[o]),e.bMarks[o]=r;r<a;){let t=e.src.charCodeAt(r);if(J(t))9===t?s+=4-(s+e.bsCount[o]+ +!!i)%4:s++;else break;r++}f=r>=a,c.push(e.bsCount[o]),e.bsCount[o]=e.sCount[o]+1+ +!!t,d.push(e.sCount[o]),e.sCount[o]=s-n,u.push(e.tShift[o]),e.tShift[o]=r-e.bMarks[o];continue}if(f)break;let n=!1;for(let t=0,r=h.length;t<r;t++)if(h[t](e,o,i,!0)){n=!0;break}if(n){e.lineMax=o,0!==e.blkIndent&&(l.push(e.bMarks[o]),c.push(e.bsCount[o]),u.push(e.tShift[o]),d.push(e.sCount[o]),e.sCount[o]-=e.blkIndent);break}l.push(e.bMarks[o]),c.push(e.bsCount[o]),u.push(e.tShift[o]),d.push(e.sCount[o]),e.sCount[o]=-1}let g=e.blkIndent;e.blkIndent=0;let m=e.push("blockquote_open","blockquote",1);m.markup=">";let v=[t,0];m.map=v,e.md.block.tokenize(e,t,o),e.push("blockquote_close","blockquote",-1).markup=">",e.lineMax=s,e.parentType=p,v[1]=e.line;for(let i=0;i<u.length;i++)e.bMarks[i+t]=l[i],e.tShift[i+t]=u[i],e.sCount[i+t]=d[i],e.bsCount[i+t]=c[i];return e.blkIndent=g,!0},["paragraph","reference","blockquote","list"]],["hr",function(e,t,i,n){let o=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let r=e.bMarks[t]+e.tShift[t],a=e.src.charCodeAt(r++);if(42!==a&&45!==a&&95!==a)return!1;let s=1;for(;r<o;){let t=e.src.charCodeAt(r++);if(t!==a&&!J(t))return!1;t===a&&s++}if(s<3)return!1;if(n)return!0;e.line=t+1;let l=e.push("hr","hr",0);return l.map=[t,e.line],l.markup=Array(s+1).join(String.fromCharCode(a)),!0},["paragraph","reference","blockquote","list"]],["list",function(e,t,i,n){let o,r,a,s,l,c,d,u=t,h=!0;if(e.sCount[u]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[u]-e.listIndent>=4&&e.sCount[u]<e.blkIndent)return!1;let p=!1;if(n&&"paragraph"===e.parentType&&e.sCount[u]>=e.blkIndent&&(p=!0),(d=eE(e,u))>=0){if(l=!0,a=e.bMarks[u]+e.tShift[u],c=Number(e.src.slice(a,d-1)),p&&1!==c)return!1}else{if(!((d=eT(e,u))>=0))return!1;l=!1}if(p&&e.skipSpaces(d)>=e.eMarks[u])return!1;if(n)return!0;let f=e.src.charCodeAt(d-1),g=e.tokens.length;l?(s=e.push("ordered_list_open","ol",1),1!==c&&(s.attrs=[["start",c]])):s=e.push("bullet_list_open","ul",1);let m=[u,0];s.map=m,s.markup=String.fromCharCode(f);let v=!1,b=e.md.block.ruler.getRules("list"),y=e.parentType;for(e.parentType="list";u<i;){let t;r=d,o=e.eMarks[u];let n=e.sCount[u]+d-(e.bMarks[u]+e.tShift[u]),c=n;for(;r<o;){let t=e.src.charCodeAt(r);if(9===t)c+=4-(c+e.bsCount[u])%4;else if(32===t)c++;else break;r++}let p=r;(t=p>=o?1:c-n)>4&&(t=1);let g=n+t;(s=e.push("list_item_open","li",1)).markup=String.fromCharCode(f);let m=[u,0];s.map=m,l&&(s.info=e.src.slice(a,d-1));let y=e.tight,w=e.tShift[u],_=e.sCount[u],x=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=g,e.tight=!0,e.tShift[u]=p-e.bMarks[u],e.sCount[u]=c,p>=o&&e.isEmpty(u+1)?e.line=Math.min(e.line+2,i):e.md.block.tokenize(e,u,i,!0),(!e.tight||v)&&(h=!1),v=e.line-u>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=x,e.tShift[u]=w,e.sCount[u]=_,e.tight=y,(s=e.push("list_item_close","li",-1)).markup=String.fromCharCode(f),u=e.line,m[1]=u,u>=i||e.sCount[u]<e.blkIndent||e.sCount[u]-e.blkIndent>=4)break;let S=!1;for(let t=0,n=b.length;t<n;t++)if(b[t](e,u,i,!0)){S=!0;break}if(S)break;if(l){if((d=eE(e,u))<0)break;a=e.bMarks[u]+e.tShift[u]}else if((d=eT(e,u))<0)break;if(f!==e.src.charCodeAt(d-1))break}return(s=l?e.push("ordered_list_close","ol",-1):e.push("bullet_list_close","ul",-1)).markup=String.fromCharCode(f),m[1]=u,e.line=u,e.parentType=y,h&&function(e,t){let i=e.level+2;for(let n=t+2,o=e.tokens.length-2;n<o;n++)e.tokens[n].level===i&&"paragraph_open"===e.tokens[n].type&&(e.tokens[n+2].hidden=!0,e.tokens[n].hidden=!0,n+=2)}(e,g),!0},["paragraph","reference","blockquote"]],["reference",function(e,t,i,n){let o,r=e.bMarks[t]+e.tShift[t],a=e.eMarks[t],s=t+1;if(e.sCount[t]-e.blkIndent>=4||91!==e.src.charCodeAt(r))return!1;function l(t){let i=e.lineMax;if(t>=i||e.isEmpty(t))return null;let n=!1;if(e.sCount[t]-e.blkIndent>3&&(n=!0),e.sCount[t]<0&&(n=!0),!n){let n=e.md.block.ruler.getRules("reference"),o=e.parentType;e.parentType="reference";let r=!1;for(let o=0,a=n.length;o<a;o++)if(n[o](e,t,i,!0)){r=!0;break}if(e.parentType=o,r)return null}let o=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];return e.src.slice(o,r+1)}let c=e.src.slice(r,a+1);a=c.length;let d=-1;for(r=1;r<a;r++){let e=c.charCodeAt(r);if(91===e)return!1;if(93===e){d=r;break}if(10===e){let e=l(s);null!==e&&(c+=e,a=c.length,s++)}else if(92===e&&++r<a&&10===c.charCodeAt(r)){let e=l(s);null!==e&&(c+=e,a=c.length,s++)}}if(d<0||58!==c.charCodeAt(d+1))return!1;for(r=d+2;r<a;r++){let e=c.charCodeAt(r);if(10===e){let e=l(s);null!==e&&(c+=e,a=c.length,s++)}else if(J(e));else break}let u=e.md.helpers.parseLinkDestination(c,r,a);if(!u.ok)return!1;let h=e.md.normalizeLink(u.str);if(!e.md.validateLink(h))return!1;let p=r=u.pos,f=s,g=r;for(;r<a;r++){let e=c.charCodeAt(r);if(10===e){let e=l(s);null!==e&&(c+=e,a=c.length,s++)}else if(J(e));else break}let m=e.md.helpers.parseLinkTitle(c,r,a);for(;m.can_continue;){let t=l(s);if(null===t)break;c+=t,r=a,a=c.length,s++,m=e.md.helpers.parseLinkTitle(c,r,a,m)}for(r<a&&g!==r&&m.ok?(o=m.str,r=m.pos):(o="",r=p,s=f);r<a&&J(c.charCodeAt(r));)r++;if(r<a&&10!==c.charCodeAt(r)&&o)for(o="",r=p,s=f;r<a&&J(c.charCodeAt(r));)r++;if(r<a&&10!==c.charCodeAt(r))return!1;let v=en(c.slice(1,d));return!!v&&(!!n||(void 0===e.env.references&&(e.env.references={}),void 0===e.env.references[v]&&(e.env.references[v]={title:o,href:h}),e.line=s,!0))}],["html_block",function(e,t,i,n){let o=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||!e.md.options.html||60!==e.src.charCodeAt(o))return!1;let a=e.src.slice(o,r),s=0;for(;s<eN.length&&!eN[s][0].test(a);s++);if(s===eN.length)return!1;if(n)return eN[s][2];let l=t+1;if(!eN[s][1].test(a)){for(;l<i&&!(e.sCount[l]<e.blkIndent);l++)if(o=e.bMarks[l]+e.tShift[l],r=e.eMarks[l],a=e.src.slice(o,r),eN[s][1].test(a)){0!==a.length&&l++;break}}e.line=l;let c=e.push("html_block","",0);return c.map=[t,l],c.content=e.getLines(t,l,e.blkIndent,!0),!0},["paragraph","reference","blockquote"]],["heading",function(e,t,i,n){let o=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let a=e.src.charCodeAt(o);if(35!==a||o>=r)return!1;let s=1;for(a=e.src.charCodeAt(++o);35===a&&o<r&&s<=6;)s++,a=e.src.charCodeAt(++o);if(s>6||o<r&&!J(a))return!1;if(n)return!0;r=e.skipSpacesBack(r,o);let l=e.skipCharsBack(r,35,o);l>o&&J(e.src.charCodeAt(l-1))&&(r=l),e.line=t+1;let c=e.push("heading_open","h"+String(s),1);c.markup="########".slice(0,s),c.map=[t,e.line];let d=e.push("inline","",0);return d.content=e.src.slice(o,r).trim(),d.map=[t,e.line],d.children=[],e.push("heading_close","h"+String(s),-1).markup="########".slice(0,s),!0},["paragraph","reference","blockquote"]],["lheading",function(e,t,i){let n,o=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;let r=e.parentType;e.parentType="paragraph";let a=0,s=t+1;for(;s<i&&!e.isEmpty(s);s++){if(e.sCount[s]-e.blkIndent>3)continue;if(e.sCount[s]>=e.blkIndent){let t=e.bMarks[s]+e.tShift[s],i=e.eMarks[s];if(t<i&&(45===(n=e.src.charCodeAt(t))||61===n)&&(t=e.skipChars(t,n),(t=e.skipSpaces(t))>=i)){a=61===n?1:2;break}}if(e.sCount[s]<0)continue;let t=!1;for(let n=0,r=o.length;n<r;n++)if(o[n](e,s,i,!0)){t=!0;break}if(t)break}if(!a)return!1;let l=e.getLines(t,s,e.blkIndent,!1).trim();e.line=s+1;let c=e.push("heading_open","h"+String(a),1);c.markup=String.fromCharCode(n),c.map=[t,e.line];let d=e.push("inline","",0);return d.content=l,d.map=[t,e.line-1],d.children=[],e.push("heading_close","h"+String(a),-1).markup=String.fromCharCode(n),e.parentType=r,!0}],["paragraph",function(e,t,i){let n=e.md.block.ruler.getRules("paragraph"),o=e.parentType,r=t+1;for(e.parentType="paragraph";r<i&&!e.isEmpty(r);r++){if(e.sCount[r]-e.blkIndent>3||e.sCount[r]<0)continue;let t=!1;for(let o=0,a=n.length;o<a;o++)if(n[o](e,r,i,!0)){t=!0;break}if(t)break}let a=e.getLines(t,r,e.blkIndent,!1).trim();e.line=r,e.push("paragraph_open","p",1).map=[t,e.line];let s=e.push("inline","",0);return s.content=a,s.map=[t,e.line],s.children=[],e.push("paragraph_close","p",-1),e.parentType=o,!0}]];function eL(){this.ruler=new ed;for(let e=0;e<eP.length;e++)this.ruler.push(eP[e][0],eP[e][1],{alt:(eP[e][2]||[]).slice()})}function eB(e,t,i,n){this.src=e,this.env=i,this.md=t,this.tokens=n,this.tokens_meta=Array(n.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0}eL.prototype.tokenize=function(e,t,i){let n=this.ruler.getRules(""),o=n.length,r=e.md.options.maxNesting,a=t,s=!1;for(;a<i&&(e.line=a=e.skipEmptyLines(a),!(a>=i)&&!(e.sCount[a]<e.blkIndent));){if(e.level>=r){e.line=i;break}let t=e.line,l=!1;for(let r=0;r<o;r++)if(l=n[r](e,a,i,!1)){if(t>=e.line)throw Error("block rule didn't increment state.line");break}if(!l)throw Error("none of the block rules matched");e.tight=!s,e.isEmpty(e.line-1)&&(s=!0),(a=e.line)<i&&e.isEmpty(a)&&(s=!0,e.line=++a)}},eL.prototype.parse=function(e,t,i,n){if(!e)return;let o=new this.State(e,t,i,n);this.tokenize(o,o.line,o.lineMax)},eL.prototype.State=ek,eB.prototype.pushPending=function(){let e=new eu("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e},eB.prototype.push=function(e,t,i){this.pending&&this.pushPending();let n=new eu(e,t,i),o=null;return i<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),n.level=this.level,i>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],o={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(n),this.tokens_meta.push(o),n},eB.prototype.scanDelims=function(e,t){let i=this.posMax,n=this.src.charCodeAt(e),o=e>0?this.src.charCodeAt(e-1):32,r=e;for(;r<i&&this.src.charCodeAt(r)===n;)r++;let a=r-e,s=r<i?this.src.charCodeAt(r):32,l=ei(o)||et(String.fromCharCode(o)),c=ei(s)||et(String.fromCharCode(s)),d=ee(o),u=ee(s),h=!u&&(!c||d||l),p=!d&&(!l||u||c);return{can_open:h&&(t||!p||l),can_close:p&&(t||!h||c),length:a}},eB.prototype.Token=eu;let eF=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i,eV=[];for(let e=0;e<256;e++)eV.push(0);function ez(e,t){let i,n=[],o=t.length;for(let r=0;r<o;r++){let o=t[r];if(126!==o.marker||-1===o.end)continue;let a=t[o.end];(i=e.tokens[o.token]).type="s_open",i.tag="s",i.nesting=1,i.markup="~~",i.content="",(i=e.tokens[a.token]).type="s_close",i.tag="s",i.nesting=-1,i.markup="~~",i.content="","text"===e.tokens[a.token-1].type&&"~"===e.tokens[a.token-1].content&&n.push(a.token-1)}for(;n.length;){let t=n.pop(),o=t+1;for(;o<e.tokens.length&&"s_close"===e.tokens[o].type;)o++;t!==--o&&(i=e.tokens[o],e.tokens[o]=e.tokens[t],e.tokens[t]=i)}}"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(e){eV[e.charCodeAt(0)]=1});function eH(e,t){let i=t.length;for(let n=i-1;n>=0;n--){let i=t[n];if(95!==i.marker&&42!==i.marker||-1===i.end)continue;let o=t[i.end],r=n>0&&t[n-1].end===i.end+1&&t[n-1].marker===i.marker&&t[n-1].token===i.token-1&&t[i.end+1].token===o.token+1,a=String.fromCharCode(i.marker),s=e.tokens[i.token];s.type=r?"strong_open":"em_open",s.tag=r?"strong":"em",s.nesting=1,s.markup=r?a+a:a,s.content="";let l=e.tokens[o.token];l.type=r?"strong_close":"em_close",l.tag=r?"strong":"em",l.nesting=-1,l.markup=r?a+a:a,l.content="",r&&(e.tokens[t[n-1].token].content="",e.tokens[t[i.end+1].token].content="",n--)}}let eW=/^([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])?)*)$/,eY=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/,eU=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,eG=/^&([a-z][a-z0-9]{1,31});/i;function eZ(e){let t={},i=e.length;if(!i)return;let n=0,o=-2,r=[];for(let a=0;a<i;a++){let i=e[a];if(r.push(0),(e[n].marker!==i.marker||o!==i.token-1)&&(n=a),o=i.token,i.length=i.length||0,!i.close)continue;t.hasOwnProperty(i.marker)||(t[i.marker]=[-1,-1,-1,-1,-1,-1]);let s=t[i.marker][3*!!i.open+i.length%3],l=n-r[n]-1,c=l;for(;l>s;l-=r[l]+1){let t=e[l];if(t.marker===i.marker&&t.open&&t.end<0){let n=!1;if((t.close||i.open)&&(t.length+i.length)%3==0&&(t.length%3!=0||i.length%3!=0)&&(n=!0),!n){let n=l>0&&!e[l-1].open?r[l-1]+1:0;r[a]=a-l+n,r[l]=n,i.open=!1,t.end=a,t.close=!1,c=-1,o=-2;break}}}-1!==c&&(t[i.marker][3*!!i.open+(i.length||0)%3]=c)}}let ej=[["text",function(e,t){let i=e.pos;for(;i<e.posMax&&!function(e){switch(e){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}(e.src.charCodeAt(i));)i++;return i!==e.pos&&(t||(e.pending+=e.src.slice(e.pos,i)),e.pos=i,!0)}],["linkify",function(e,t){if(!e.md.options.linkify||e.linkLevel>0)return!1;let i=e.pos;if(i+3>e.posMax||58!==e.src.charCodeAt(i)||47!==e.src.charCodeAt(i+1)||47!==e.src.charCodeAt(i+2))return!1;let n=e.pending.match(eF);if(!n)return!1;let o=n[1],r=e.md.linkify.matchAtStart(e.src.slice(i-o.length));if(!r)return!1;let a=r.url;if(a.length<=o.length)return!1;a=a.replace(/\*+$/,"");let s=e.md.normalizeLink(a);if(!e.md.validateLink(s))return!1;if(!t){e.pending=e.pending.slice(0,-o.length);let t=e.push("link_open","a",1);t.attrs=[["href",s]],t.markup="linkify",t.info="auto",e.push("text","",0).content=e.md.normalizeLinkText(a);let i=e.push("link_close","a",-1);i.markup="linkify",i.info="auto"}return e.pos+=a.length-o.length,!0}],["newline",function(e,t){let i=e.pos;if(10!==e.src.charCodeAt(i))return!1;let n=e.pending.length-1,o=e.posMax;if(!t)if(n>=0&&32===e.pending.charCodeAt(n))if(n>=1&&32===e.pending.charCodeAt(n-1)){let t=n-1;for(;t>=1&&32===e.pending.charCodeAt(t-1);)t--;e.pending=e.pending.slice(0,t),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(i++;i<o&&J(e.src.charCodeAt(i));)i++;return e.pos=i,!0}],["escape",function(e,t){let i=e.pos,n=e.posMax;if(92!==e.src.charCodeAt(i)||++i>=n)return!1;let o=e.src.charCodeAt(i);if(10===o){for(t||e.push("hardbreak","br",0),i++;i<n&&J(o=e.src.charCodeAt(i));)i++;return e.pos=i,!0}let r=e.src[i];if(o>=55296&&o<=56319&&i+1<n){let t=e.src.charCodeAt(i+1);t>=56320&&t<=57343&&(r+=e.src[i+1],i++)}let a="\\"+r;if(!t){let t=e.push("text_special","",0);o<256&&0!==eV[o]?t.content=r:t.content=a,t.markup=a,t.info="escape"}return e.pos=i+1,!0}],["backticks",function(e,t){let i,n=e.pos;if(96!==e.src.charCodeAt(n))return!1;let o=n;n++;let r=e.posMax;for(;n<r&&96===e.src.charCodeAt(n);)n++;let a=e.src.slice(o,n),s=a.length;if(e.backticksScanned&&(e.backticks[s]||0)<=o)return t||(e.pending+=a),e.pos+=s,!0;let l=n;for(;-1!==(i=e.src.indexOf("`",l));){for(l=i+1;l<r&&96===e.src.charCodeAt(l);)l++;let o=l-i;if(o===s){if(!t){let t=e.push("code_inline","code",0);t.markup=a,t.content=e.src.slice(n,i).replace(/\n/g," ").replace(/^ (.+) $/,"$1")}return e.pos=l,!0}e.backticks[o]=i}return e.backticksScanned=!0,t||(e.pending+=a),e.pos+=s,!0}],["strikethrough",function(e,t){let i,n=e.pos,o=e.src.charCodeAt(n);if(t||126!==o)return!1;let r=e.scanDelims(e.pos,!0),a=r.length,s=String.fromCharCode(o);if(a<2)return!1;a%2&&(e.push("text","",0).content=s,a--);for(let t=0;t<a;t+=2)e.push("text","",0).content=s+s,e.delimiters.push({marker:o,length:0,token:e.tokens.length-1,end:-1,open:r.can_open,close:r.can_close});return e.pos+=r.length,!0}],["emphasis",function(e,t){let i=e.pos,n=e.src.charCodeAt(i);if(t||95!==n&&42!==n)return!1;let o=e.scanDelims(e.pos,42===n);for(let t=0;t<o.length;t++)e.push("text","",0).content=String.fromCharCode(n),e.delimiters.push({marker:n,length:o.length,token:e.tokens.length-1,end:-1,open:o.can_open,close:o.can_close});return e.pos+=o.length,!0}],["link",function(e,t){let i,n,o,r,a="",s="",l=e.pos,c=!0;if(91!==e.src.charCodeAt(e.pos))return!1;let d=e.pos,u=e.posMax,h=e.pos+1,p=e.md.helpers.parseLinkLabel(e,e.pos,!0);if(p<0)return!1;let f=p+1;if(f<u&&40===e.src.charCodeAt(f)){for(c=!1,f++;f<u&&(J(i=e.src.charCodeAt(f))||10===i);f++);if(f>=u)return!1;if(l=f,(o=e.md.helpers.parseLinkDestination(e.src,f,e.posMax)).ok){for(a=e.md.normalizeLink(o.str),e.md.validateLink(a)?f=o.pos:a="",l=f;f<u&&(J(i=e.src.charCodeAt(f))||10===i);f++);if(o=e.md.helpers.parseLinkTitle(e.src,f,e.posMax),f<u&&l!==f&&o.ok)for(s=o.str,f=o.pos;f<u&&(J(i=e.src.charCodeAt(f))||10===i);f++);}(f>=u||41!==e.src.charCodeAt(f))&&(c=!0),f++}if(c){if(void 0===e.env.references)return!1;if(f<u&&91===e.src.charCodeAt(f)?(l=f+1,(f=e.md.helpers.parseLinkLabel(e,f))>=0?n=e.src.slice(l,f++):f=p+1):f=p+1,n||(n=e.src.slice(h,p)),!(r=e.env.references[en(n)]))return e.pos=d,!1;a=r.href,s=r.title}if(!t){e.pos=h,e.posMax=p;let t=e.push("link_open","a",1),i=[["href",a]];t.attrs=i,s&&i.push(["title",s]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push("link_close","a",-1)}return e.pos=f,e.posMax=u,!0}],["image",function(e,t){let i,n,o,r,a,s,l,c,d="",u=e.pos,h=e.posMax;if(33!==e.src.charCodeAt(e.pos)||91!==e.src.charCodeAt(e.pos+1))return!1;let p=e.pos+2,f=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(f<0)return!1;if((r=f+1)<h&&40===e.src.charCodeAt(r)){for(r++;r<h&&(J(i=e.src.charCodeAt(r))||10===i);r++);if(r>=h)return!1;for(c=r,(s=e.md.helpers.parseLinkDestination(e.src,r,e.posMax)).ok&&(d=e.md.normalizeLink(s.str),e.md.validateLink(d)?r=s.pos:d=""),c=r;r<h&&(J(i=e.src.charCodeAt(r))||10===i);r++);if(s=e.md.helpers.parseLinkTitle(e.src,r,e.posMax),r<h&&c!==r&&s.ok)for(l=s.str,r=s.pos;r<h&&(J(i=e.src.charCodeAt(r))||10===i);r++);else l="";if(r>=h||41!==e.src.charCodeAt(r))return e.pos=u,!1;r++}else{if(void 0===e.env.references)return!1;if(r<h&&91===e.src.charCodeAt(r)?(c=r+1,(r=e.md.helpers.parseLinkLabel(e,r))>=0?o=e.src.slice(c,r++):r=f+1):r=f+1,o||(o=e.src.slice(p,f)),!(a=e.env.references[en(o)]))return e.pos=u,!1;d=a.href,l=a.title}if(!t){n=e.src.slice(p,f);let t=[];e.md.inline.parse(n,e.md,e.env,t);let i=e.push("image","img",0),o=[["src",d],["alt",""]];i.attrs=o,i.children=t,i.content=n,l&&o.push(["title",l])}return e.pos=r,e.posMax=h,!0}],["autolink",function(e,t){let i=e.pos;if(60!==e.src.charCodeAt(i))return!1;let n=e.pos,o=e.posMax;for(;;){if(++i>=o)return!1;let t=e.src.charCodeAt(i);if(60===t)return!1;if(62===t)break}let r=e.src.slice(n+1,i);if(eY.test(r)){let i=e.md.normalizeLink(r);if(!e.md.validateLink(i))return!1;if(!t){let t=e.push("link_open","a",1);t.attrs=[["href",i]],t.markup="autolink",t.info="auto",e.push("text","",0).content=e.md.normalizeLinkText(r);let n=e.push("link_close","a",-1);n.markup="autolink",n.info="auto"}return e.pos+=r.length+2,!0}if(eW.test(r)){let i=e.md.normalizeLink("mailto:"+r);if(!e.md.validateLink(i))return!1;if(!t){let t=e.push("link_open","a",1);t.attrs=[["href",i]],t.markup="autolink",t.info="auto",e.push("text","",0).content=e.md.normalizeLinkText(r);let n=e.push("link_close","a",-1);n.markup="autolink",n.info="auto"}return e.pos+=r.length+2,!0}return!1}],["html_inline",function(e,t){if(!e.md.options.html)return!1;let i=e.posMax,n=e.pos;if(60!==e.src.charCodeAt(n)||n+2>=i)return!1;let o=e.src.charCodeAt(n+1);if(33!==o&&63!==o&&47!==o&&!function(e){let t=32|e;return t>=97&&t<=122}(o))return!1;let r=e.src.slice(n).match(eO);if(!r)return!1;if(!t){var a,s;let t=e.push("html_inline","",0);t.content=r[0],a=t.content,/^<a[>\s]/i.test(a)&&e.linkLevel++,s=t.content,/^<\/a\s*>/i.test(s)&&e.linkLevel--}return e.pos+=r[0].length,!0}],["entity",function(e,t){let i=e.pos,n=e.posMax;if(38!==e.src.charCodeAt(i)||i+1>=n)return!1;if(35===e.src.charCodeAt(i+1)){let n=e.src.slice(i).match(eU);if(n){if(!t){let t="x"===n[1][0].toLowerCase()?parseInt(n[1].slice(1),16):parseInt(n[1],10),i=e.push("text_special","",0);i.content=V(t)?z(t):z(65533),i.markup=n[0],i.info="entity"}return e.pos+=n[0].length,!0}}else{let n=e.src.slice(i).match(eG);if(n){let i=(0,M.p1)(n[0]);if(i!==n[0]){if(!t){let t=e.push("text_special","",0);t.content=i,t.markup=n[0],t.info="entity"}return e.pos+=n[0].length,!0}}}return!1}]],eq=[["balance_pairs",function(e){let t=e.tokens_meta,i=e.tokens_meta.length;eZ(e.delimiters);for(let e=0;e<i;e++)t[e]&&t[e].delimiters&&eZ(t[e].delimiters)}],["strikethrough",function(e){let t=e.tokens_meta,i=e.tokens_meta.length;ez(e,e.delimiters);for(let n=0;n<i;n++)t[n]&&t[n].delimiters&&ez(e,t[n].delimiters)}],["emphasis",function(e){let t=e.tokens_meta,i=e.tokens_meta.length;eH(e,e.delimiters);for(let n=0;n<i;n++)t[n]&&t[n].delimiters&&eH(e,t[n].delimiters)}],["fragments_join",function(e){let t,i,n=0,o=e.tokens,r=e.tokens.length;for(t=i=0;t<r;t++)o[t].nesting<0&&n--,o[t].level=n,o[t].nesting>0&&n++,"text"===o[t].type&&t+1<r&&"text"===o[t+1].type?o[t+1].content=o[t].content+o[t+1].content:(t!==i&&(o[i]=o[t]),i++);t!==i&&(o.length=i)}]];function eK(){this.ruler=new ed;for(let e=0;e<ej.length;e++)this.ruler.push(ej[e][0],ej[e][1]);this.ruler2=new ed;for(let e=0;e<eq.length;e++)this.ruler2.push(eq[e][0],eq[e][1])}function eX(e){let t=Array.prototype.slice.call(arguments,1);return t.forEach(function(t){t&&Object.keys(t).forEach(function(i){e[i]=t[i]})}),e}function eQ(e){return Object.prototype.toString.call(e)}function e$(e){return"[object Function]"===eQ(e)}function eJ(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}eK.prototype.skipToken=function(e){let t=e.pos,i=this.ruler.getRules(""),n=i.length,o=e.md.options.maxNesting,r=e.cache;if(void 0!==r[t]){e.pos=r[t];return}let a=!1;if(e.level<o){for(let o=0;o<n;o++)if(e.level++,a=i[o](e,!0),e.level--,a){if(t>=e.pos)throw Error("inline rule didn't increment state.pos");break}}else e.pos=e.posMax;!a&&e.pos++,r[t]=e.pos},eK.prototype.tokenize=function(e){let t=this.ruler.getRules(""),i=t.length,n=e.posMax,o=e.md.options.maxNesting;for(;e.pos<n;){let r=e.pos,a=!1;if(e.level<o){for(let n=0;n<i;n++)if(a=t[n](e,!1)){if(r>=e.pos)throw Error("inline rule didn't increment state.pos");break}}if(a){if(e.pos>=n)break;continue}e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},eK.prototype.parse=function(e,t,i,n){let o=new this.State(e,t,i,n);this.tokenize(o);let r=this.ruler2.getRules(""),a=r.length;for(let e=0;e<a;e++)r[e](o)},eK.prototype.State=eB;let e0={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1},e1={"http:":{validate:function(e,t,i){let n=e.slice(t);return(i.re.http||(i.re.http=RegExp("^\\/\\/"+i.re.src_auth+i.re.src_host_port_strict+i.re.src_path,"i")),i.re.http.test(n))?n.match(i.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,i){let n=e.slice(t);return(i.re.no_http||(i.re.no_http=RegExp("^"+i.re.src_auth+"(?:localhost|(?:(?:"+i.re.src_domain+")\\.)+"+i.re.src_domain_root+")"+i.re.src_port+i.re.src_host_terminator+i.re.src_path,"i")),i.re.no_http.test(n))?t>=3&&":"===e[t-3]||t>=3&&"/"===e[t-3]?0:n.match(i.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,i){let n=e.slice(t);return(i.re.mailto||(i.re.mailto=RegExp("^"+i.re.src_email_name+"@"+i.re.src_host_strict,"i")),i.re.mailto.test(n))?n.match(i.re.mailto)[0].length:0}}},e2="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function e3(){return function(e,t){t.normalize(e)}}function e4(e){let t=e.re=function(e){let t={};e=e||{},t.src_Any=E.source,t.src_Cc=R.source,t.src_Z=O.source,t.src_P=A.source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");let i="[><|]";return t.src_pseudo_letter="(?:(?!"+i+"|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|"+i+"|"+t.src_ZPCc+")(?!"+(e["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|"+i+"|[()[\\]{}.,\"'?!\\-;]).|\\[(?:(?!"+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+'|["]).)+\\"|\\\'(?:(?!'+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+t.src_ZCc+"|[.]|$)|"+(e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+t.src_ZCc+"|$)|;(?!"+t.src_ZCc+"|$)|\\!+(?!"+t.src_ZCc+"|[!]|$)|\\?(?!"+t.src_ZCc+"|[?]|$))+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy="(^|"+i+'|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}(e.__opts__),i=e.__tlds__.slice();function n(e){return e.replace("%TLDS%",t.src_tlds)}e.onCompile(),e.__tlds_replaced__||i.push("a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]"),i.push(t.src_xn),t.src_tlds=i.join("|"),t.email_fuzzy=RegExp(n(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(n(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(n(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(n(t.tpl_host_fuzzy_test),"i");let o=[];function r(e,t){throw Error('(LinkifyIt) Invalid schema "'+e+'": '+t)}e.__compiled__={},Object.keys(e.__schemas__).forEach(function(t){let i=e.__schemas__[t];if(null===i)return;let n={validate:null,link:null};if(e.__compiled__[t]=n,"[object Object]"===eQ(i)){if("[object RegExp]"===eQ(i.validate)){var a;a=i.validate,n.validate=function(e,t){let i=e.slice(t);return a.test(i)?i.match(a)[0].length:0}}else e$(i.validate)?n.validate=i.validate:r(t,i);e$(i.normalize)?n.normalize=i.normalize:i.normalize?r(t,i):n.normalize=e3();return}if("[object String]"===eQ(i))return void o.push(t);r(t,i)}),o.forEach(function(t){e.__compiled__[e.__schemas__[t]]&&(e.__compiled__[t].validate=e.__compiled__[e.__schemas__[t]].validate,e.__compiled__[t].normalize=e.__compiled__[e.__schemas__[t]].normalize)}),e.__compiled__[""]={validate:null,normalize:e3()};let a=Object.keys(e.__compiled__).filter(function(t){return t.length>0&&e.__compiled__[t]}).map(eJ).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+a+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+a+")","ig"),e.re.schema_at_start=RegExp("^"+e.re.schema_search.source,"i"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),e.__index__=-1,e.__text_cache__=""}function e5(e,t){let i=e.__index__,n=e.__last_index__,o=e.__text_cache__.slice(i,n);this.schema=e.__schema__.toLowerCase(),this.index=i+t,this.lastIndex=n+t,this.raw=o,this.text=o,this.url=o}function e6(e,t){let i=new e5(e,t);return e.__compiled__[i.schema].normalize(i,e),i}function e8(e,t){if(!(this instanceof e8))return new e8(e,t);!t&&Object.keys(e||{}).reduce(function(e,t){return e||e0.hasOwnProperty(t)},!1)&&(t=e,e={}),this.__opts__=eX({},e0,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=eX({},e1,e),this.__compiled__={},this.__tlds__=e2,this.__tlds_replaced__=!1,this.re={},e4(this)}e8.prototype.add=function(e,t){return this.__schemas__[e]=t,e4(this),this},e8.prototype.set=function(e){return this.__opts__=eX(this.__opts__,e),this},e8.prototype.test=function(e){let t,i,n,o,r,a,s,l;if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;if(this.re.schema_test.test(e)){for((s=this.re.schema_search).lastIndex=0;null!==(t=s.exec(e));)if(o=this.testSchemaAt(e,t[2],s.lastIndex)){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+o;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(l=e.search(this.re.host_fuzzy_test))>=0&&(this.__index__<0||l<this.__index__)&&null!==(i=e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))&&(r=i.index+i[1].length,(this.__index__<0||r<this.__index__)&&(this.__schema__="",this.__index__=r,this.__last_index__=i.index+i[0].length)),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&e.indexOf("@")>=0&&null!==(n=e.match(this.re.email_fuzzy))&&(r=n.index+n[1].length,a=n.index+n[0].length,(this.__index__<0||r<this.__index__||r===this.__index__&&a>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=r,this.__last_index__=a)),this.__index__>=0},e8.prototype.pretest=function(e){return this.re.pretest.test(e)},e8.prototype.testSchemaAt=function(e,t,i){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,i,this):0},e8.prototype.match=function(e){let t=[],i=0;this.__index__>=0&&this.__text_cache__===e&&(t.push(e6(this,i)),i=this.__last_index__);let n=i?e.slice(i):e;for(;this.test(n);)t.push(e6(this,i)),n=n.slice(this.__last_index__),i+=this.__last_index__;return t.length?t:null},e8.prototype.matchAtStart=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return null;let t=this.re.schema_at_start.exec(e);if(!t)return null;let i=this.testSchemaAt(e,t[2],t[0].length);return i?(this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+i,e6(this,0)):null},e8.prototype.tlds=function(e,t){return(e=Array.isArray(e)?e:[e],t)?this.__tlds__=this.__tlds__.concat(e).sort().filter(function(e,t,i){return e!==i[t-1]}).reverse():(this.__tlds__=e.slice(),this.__tlds_replaced__=!0),e4(this),this},e8.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),"mailto:"!==e.schema||/^mailto:/i.test(e.url)||(e.url="mailto:"+e.url)},e8.prototype.onCompile=function(){};let e7=/^xn--/,e9=/[^\0-\x7F]/,te=/[\x2E\u3002\uFF0E\uFF61]/g,tt={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},ti=Math.floor,tn=String.fromCharCode;function to(e){throw RangeError(tt[e])}function tr(e,t){let i=e.split("@"),n="";return i.length>1&&(n=i[0]+"@",e=i[1]),n+(function(e,t){let i=[],n=e.length;for(;n--;)i[n]=t(e[n]);return i})((e=e.replace(te,".")).split("."),t).join(".")}let ta=function(e,t){return e+22+75*(e<26)-((0!=t)<<5)},ts=function(e,t,i){let n=0;for(e=i?ti(e/700):e>>1,e+=ti(e/t);e>455;n+=36)e=ti(e/35);return ti(n+36*e/(e+38))},tl=function(e){let t=[],i=e.length,n=0,o=128,r=72,a=e.lastIndexOf("-");a<0&&(a=0);for(let i=0;i<a;++i)e.charCodeAt(i)>=128&&to("not-basic"),t.push(e.charCodeAt(i));for(let l=a>0?a+1:0;l<i;){let a=n;for(let t=1,o=36;;o+=36){var s;l>=i&&to("invalid-input");let a=(s=e.charCodeAt(l++))>=48&&s<58?26+(s-48):s>=65&&s<91?s-65:s>=97&&s<123?s-97:36;a>=36&&to("invalid-input"),a>ti((0x7fffffff-n)/t)&&to("overflow"),n+=a*t;let c=o<=r?1:o>=r+26?26:o-r;if(a<c)break;let d=36-c;t>ti(0x7fffffff/d)&&to("overflow"),t*=d}let c=t.length+1;r=ts(n-a,c,0==a),ti(n/c)>0x7fffffff-o&&to("overflow"),o+=ti(n/c),n%=c,t.splice(n++,0,o)}return String.fromCodePoint(...t)},tc=function(e){let t=[],i=(e=function(e){let t=[],i=0,n=e.length;for(;i<n;){let o=e.charCodeAt(i++);if(o>=55296&&o<=56319&&i<n){let n=e.charCodeAt(i++);(64512&n)==56320?t.push(((1023&o)<<10)+(1023&n)+65536):(t.push(o),i--)}else t.push(o)}return t}(e)).length,n=128,o=0,r=72;for(let i of e)i<128&&t.push(tn(i));let a=t.length,s=a;for(a&&t.push("-");s<i;){let i=0x7fffffff;for(let t of e)t>=n&&t<i&&(i=t);let l=s+1;for(let c of(i-n>ti((0x7fffffff-o)/l)&&to("overflow"),o+=(i-n)*l,n=i,e))if(c<n&&++o>0x7fffffff&&to("overflow"),c===n){let e=o;for(let i=36;;i+=36){let n=i<=r?1:i>=r+26?26:i-r;if(e<n)break;let o=e-n,a=36-n;t.push(tn(ta(n+o%a,0))),e=ti(o/a)}t.push(tn(ta(e,0))),r=ts(o,l,s===a),o=0,++s}++o,++n}return t.join("")},td={toASCII:function(e){return tr(e,function(e){return e9.test(e)?"xn--"+tc(e):e})},toUnicode:function(e){return tr(e,function(e){return e7.test(e)?tl(e.slice(4).toLowerCase()):e})}},tu={default:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},zero:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}},commonmark:{options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","fragments_join"]}}}},th=/^(vbscript|javascript|file|data):/,tp=/^data:image\/(gif|png|jpeg|webp);/;function tf(e){let t=e.trim().toLowerCase();return!th.test(t)||tp.test(t)}let tg=["http:","https:","mailto:"];function tm(e){let t=I(e,!0);if(t.hostname&&(!t.protocol||tg.indexOf(t.protocol)>=0))try{t.hostname=td.toASCII(t.hostname)}catch(e){}return f(g(t))}function tv(e){let t=I(e,!0);if(t.hostname&&(!t.protocol||tg.indexOf(t.protocol)>=0))try{t.hostname=td.toUnicode(t.hostname)}catch(e){}return u(g(t),u.defaultChars+"%")}function tb(e,t){if(!(this instanceof tb))return new tb(e,t);t||N(e)||(t=e||{},e="default"),this.inline=new eK,this.block=new eL,this.core=new eC,this.renderer=new ec,this.linkify=new e8,this.validateLink=tf,this.normalizeLink=tm,this.normalizeLinkText=tv,this.utils=a,this.helpers=B({},s),this.options={},this.configure(e),t&&this.set(t)}tb.prototype.set=function(e){return B(this.options,e),this},tb.prototype.configure=function(e){let t=this;if(N(e)){let t=e;if(!(e=tu[t]))throw Error('Wrong `markdown-it` preset "'+t+'", check name')}if(!e)throw Error("Wrong `markdown-it` preset, can't be empty");return e.options&&t.set(e.options),e.components&&Object.keys(e.components).forEach(function(i){e.components[i].rules&&t[i].ruler.enableOnly(e.components[i].rules),e.components[i].rules2&&t[i].ruler2.enableOnly(e.components[i].rules2)}),this},tb.prototype.enable=function(e,t){let i=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(t){i=i.concat(this[t].ruler.enable(e,!0))},this),i=i.concat(this.inline.ruler2.enable(e,!0));let n=e.filter(function(e){return 0>i.indexOf(e)});if(n.length&&!t)throw Error("MarkdownIt. Failed to enable unknown rule(s): "+n);return this},tb.prototype.disable=function(e,t){let i=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(t){i=i.concat(this[t].ruler.disable(e,!0))},this),i=i.concat(this.inline.ruler2.disable(e,!0));let n=e.filter(function(e){return 0>i.indexOf(e)});if(n.length&&!t)throw Error("MarkdownIt. Failed to disable unknown rule(s): "+n);return this},tb.prototype.use=function(e){let t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this},tb.prototype.parse=function(e,t){if("string"!=typeof e)throw Error("Input data should be a String");let i=new this.core.State(e,this,t);return this.core.process(i),i.tokens},tb.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)},tb.prototype.parseInline=function(e,t){let i=new this.core.State(e,this,t);return i.inlineMode=!0,this.core.process(i),i.tokens},tb.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};let ty=tb({html:!0,linkify:!0,quotes:""}),{entries:tw,setPrototypeOf:t_,isFrozen:tx,getPrototypeOf:tS,getOwnPropertyDescriptor:tC}=Object,{freeze:tk,seal:tI,create:tA}=Object,{apply:tT,construct:tE}="undefined"!=typeof Reflect&&Reflect;tk||(tk=function(e){return e}),tI||(tI=function(e){return e}),tT||(tT=function(e,t,i){return e.apply(t,i)}),tE||(tE=function(e,t){return new e(...t)});let tR=tW(Array.prototype.forEach),tD=tW(Array.prototype.pop),tO=tW(Array.prototype.push),tM=tW(String.prototype.toLowerCase),tN=tW(String.prototype.toString),tP=tW(String.prototype.match),tL=tW(String.prototype.replace),tB=tW(String.prototype.indexOf),tF=tW(String.prototype.trim),tV=tW(Object.prototype.hasOwnProperty),tz=tW(RegExp.prototype.test),tH=(n=TypeError,function(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];return tE(n,t)});function tW(e){return function(t){for(var i=arguments.length,n=Array(i>1?i-1:0),o=1;o<i;o++)n[o-1]=arguments[o];return tT(e,t,n)}}function tY(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:tM;t_&&t_(e,null);let n=t.length;for(;n--;){let o=t[n];if("string"==typeof o){let e=i(o);e!==o&&(tx(t)||(t[n]=e),o=e)}e[o]=!0}return e}function tU(e){let t=tA(null);for(let[i,n]of tw(e))tV(e,i)&&(Array.isArray(n)?t[i]=function(e){for(let t=0;t<e.length;t++)tV(e,t)||(e[t]=null);return e}(n):n&&"object"==typeof n&&n.constructor===Object?t[i]=tU(n):t[i]=n);return t}function tG(e,t){for(;null!==e;){let i=tC(e,t);if(i){if(i.get)return tW(i.get);if("function"==typeof i.value)return tW(i.value)}e=tS(e)}return function(){return null}}let tZ=tk(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),tj=tk(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),tq=tk(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),tK=tk(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),tX=tk(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),tQ=tk(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),t$=tk(["#text"]),tJ=tk(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),t0=tk(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),t1=tk(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),t2=tk(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),t3=tI(/\{\{[\w\W]*|[\w\W]*\}\}/gm),t4=tI(/<%[\w\W]*|[\w\W]*%>/gm),t5=tI(/\$\{[\w\W]*}/gm),t6=tI(/^data-[\-\w.\u00B7-\uFFFF]+$/),t8=tI(/^aria-[\-\w]+$/),t7=tI(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),t9=tI(/^(?:\w+script|data):/i),ie=tI(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),it=tI(/^html$/i);var ii=Object.freeze({__proto__:null,ARIA_ATTR:t8,ATTR_WHITESPACE:ie,CUSTOM_ELEMENT:tI(/^[a-z][.\w]*(-[.\w]+)+$/i),DATA_ATTR:t6,DOCTYPE_NAME:it,ERB_EXPR:t4,IS_ALLOWED_URI:t7,IS_SCRIPT_OR_DATA:t9,MUSTACHE_EXPR:t3,TMPLIT_EXPR:t5});let io={element:1,text:3,progressingInstruction:7,comment:8,document:9},ir=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let i=null,n="data-tt-policy-suffix";t&&t.hasAttribute(n)&&(i=t.getAttribute(n));let o="dompurify"+(i?"#"+i:"");try{return e.createPolicy(o,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+o+" could not be created."),null}},ia=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};var is=function e(){let t,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"undefined"==typeof window?null:window,n=t=>e(t);if(n.version="3.2.3",n.removed=[],!i||!i.document||i.document.nodeType!==io.document)return n.isSupported=!1,n;let{document:o}=i,r=o,a=r.currentScript,{DocumentFragment:s,HTMLTemplateElement:l,Node:c,Element:d,NodeFilter:u,NamedNodeMap:h=i.NamedNodeMap||i.MozNamedAttrMap,HTMLFormElement:p,DOMParser:f,trustedTypes:g}=i,m=d.prototype,v=tG(m,"cloneNode"),b=tG(m,"remove"),y=tG(m,"nextSibling"),w=tG(m,"childNodes"),_=tG(m,"parentNode");if("function"==typeof l){let e=o.createElement("template");e.content&&e.content.ownerDocument&&(o=e.content.ownerDocument)}let x="",{implementation:S,createNodeIterator:C,createDocumentFragment:k,getElementsByTagName:I}=o,{importNode:A}=r,T=ia();n.isSupported="function"==typeof tw&&"function"==typeof _&&S&&void 0!==S.createHTMLDocument;let{MUSTACHE_EXPR:E,ERB_EXPR:R,TMPLIT_EXPR:D,DATA_ATTR:O,ARIA_ATTR:M,IS_SCRIPT_OR_DATA:N,ATTR_WHITESPACE:P,CUSTOM_ELEMENT:L}=ii,{IS_ALLOWED_URI:B}=ii,F=null,V=tY({},[...tZ,...tj,...tq,...tX,...t$]),z=null,H=tY({},[...tJ,...t0,...t1,...t2]),W=Object.seal(tA(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Y=null,U=null,G=!0,Z=!0,j=!1,q=!0,K=!1,X=!0,Q=!1,$=!1,J=!1,ee=!1,et=!1,ei=!1,en=!0,eo=!1,er=!0,ea=!1,es={},el=null,ec=tY({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),ed=null,eu=tY({},["audio","video","img","source","image","track"]),eh=null,ep=tY({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ef="http://www.w3.org/1998/Math/MathML",eg="http://www.w3.org/2000/svg",em="http://www.w3.org/1999/xhtml",ev=em,eb=!1,ey=null,ew=tY({},[ef,eg,em],tN),e_=tY({},["mi","mo","mn","ms","mtext"]),ex=tY({},["annotation-xml"]),eS=tY({},["title","style","font","a","script"]),eC=null,ek=["application/xhtml+xml","text/html"],eI=null,eA=null,eT=o.createElement("form"),eE=function(e){return e instanceof RegExp||e instanceof Function},eR=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!eA||eA!==e){if(e&&"object"==typeof e||(e={}),e=tU(e),eI="application/xhtml+xml"===(eC=-1===ek.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE)?tN:tM,F=tV(e,"ALLOWED_TAGS")?tY({},e.ALLOWED_TAGS,eI):V,z=tV(e,"ALLOWED_ATTR")?tY({},e.ALLOWED_ATTR,eI):H,ey=tV(e,"ALLOWED_NAMESPACES")?tY({},e.ALLOWED_NAMESPACES,tN):ew,eh=tV(e,"ADD_URI_SAFE_ATTR")?tY(tU(ep),e.ADD_URI_SAFE_ATTR,eI):ep,ed=tV(e,"ADD_DATA_URI_TAGS")?tY(tU(eu),e.ADD_DATA_URI_TAGS,eI):eu,el=tV(e,"FORBID_CONTENTS")?tY({},e.FORBID_CONTENTS,eI):ec,Y=tV(e,"FORBID_TAGS")?tY({},e.FORBID_TAGS,eI):{},U=tV(e,"FORBID_ATTR")?tY({},e.FORBID_ATTR,eI):{},es=!!tV(e,"USE_PROFILES")&&e.USE_PROFILES,G=!1!==e.ALLOW_ARIA_ATTR,Z=!1!==e.ALLOW_DATA_ATTR,j=e.ALLOW_UNKNOWN_PROTOCOLS||!1,q=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,K=e.SAFE_FOR_TEMPLATES||!1,X=!1!==e.SAFE_FOR_XML,Q=e.WHOLE_DOCUMENT||!1,ee=e.RETURN_DOM||!1,et=e.RETURN_DOM_FRAGMENT||!1,ei=e.RETURN_TRUSTED_TYPE||!1,J=e.FORCE_BODY||!1,en=!1!==e.SANITIZE_DOM,eo=e.SANITIZE_NAMED_PROPS||!1,er=!1!==e.KEEP_CONTENT,ea=e.IN_PLACE||!1,B=e.ALLOWED_URI_REGEXP||t7,ev=e.NAMESPACE||em,e_=e.MATHML_TEXT_INTEGRATION_POINTS||e_,ex=e.HTML_INTEGRATION_POINTS||ex,W=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&eE(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(W.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&eE(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(W.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(W.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),K&&(Z=!1),et&&(ee=!0),es&&(F=tY({},t$),z=[],!0===es.html&&(tY(F,tZ),tY(z,tJ)),!0===es.svg&&(tY(F,tj),tY(z,t0),tY(z,t2)),!0===es.svgFilters&&(tY(F,tq),tY(z,t0),tY(z,t2)),!0===es.mathMl&&(tY(F,tX),tY(z,t1),tY(z,t2))),e.ADD_TAGS&&(F===V&&(F=tU(F)),tY(F,e.ADD_TAGS,eI)),e.ADD_ATTR&&(z===H&&(z=tU(z)),tY(z,e.ADD_ATTR,eI)),e.ADD_URI_SAFE_ATTR&&tY(eh,e.ADD_URI_SAFE_ATTR,eI),e.FORBID_CONTENTS&&(el===ec&&(el=tU(el)),tY(el,e.FORBID_CONTENTS,eI)),er&&(F["#text"]=!0),Q&&tY(F,["html","head","body"]),F.table&&(tY(F,["tbody"]),delete Y.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw tH('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw tH('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');x=(t=e.TRUSTED_TYPES_POLICY).createHTML("")}else void 0===t&&(t=ir(g,a)),null!==t&&"string"==typeof x&&(x=t.createHTML(""));tk&&tk(e),eA=e}},eD=tY({},[...tj,...tq,...tK]),eO=tY({},[...tX,...tQ]),eM=function(e){let t=_(e);t&&t.tagName||(t={namespaceURI:ev,tagName:"template"});let i=tM(e.tagName),n=tM(t.tagName);return!!ey[e.namespaceURI]&&(e.namespaceURI===eg?t.namespaceURI===em?"svg"===i:t.namespaceURI===ef?"svg"===i&&("annotation-xml"===n||e_[n]):!!eD[i]:e.namespaceURI===ef?t.namespaceURI===em?"math"===i:t.namespaceURI===eg?"math"===i&&ex[n]:!!eO[i]:e.namespaceURI===em?(t.namespaceURI!==eg||!!ex[n])&&(t.namespaceURI!==ef||!!e_[n])&&!eO[i]&&(eS[i]||!eD[i]):"application/xhtml+xml"===eC&&!!ey[e.namespaceURI])},eN=function(e){tO(n.removed,{element:e});try{_(e).removeChild(e)}catch(t){b(e)}},eP=function(e,t){try{tO(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){tO(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(ee||et)try{eN(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},eL=function(e){let i=null,n=null;if(J)e="<remove></remove>"+e;else{let t=tP(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===eC&&ev===em&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");let r=t?t.createHTML(e):e;if(ev===em)try{i=new f().parseFromString(r,eC)}catch(e){}if(!i||!i.documentElement){i=S.createDocument(ev,"template",null);try{i.documentElement.innerHTML=eb?x:r}catch(e){}}let a=i.body||i.documentElement;return(e&&n&&a.insertBefore(o.createTextNode(n),a.childNodes[0]||null),ev===em)?I.call(i,Q?"html":"body")[0]:Q?i.documentElement:a},eB=function(e){return C.call(e.ownerDocument||e,e,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},eF=function(e){return e instanceof p&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof h)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},eV=function(e){return"function"==typeof c&&e instanceof c};function ez(e,t,i){tR(e,e=>{e.call(n,t,i,eA)})}let eH=function(e){let t=null;if(ez(T.beforeSanitizeElements,e,null),eF(e))return eN(e),!0;let i=eI(e.nodeName);if(ez(T.uponSanitizeElement,e,{tagName:i,allowedTags:F}),e.hasChildNodes()&&!eV(e.firstElementChild)&&tz(/<[/\w]/g,e.innerHTML)&&tz(/<[/\w]/g,e.textContent)||e.nodeType===io.progressingInstruction||X&&e.nodeType===io.comment&&tz(/<[/\w]/g,e.data))return eN(e),!0;if(!F[i]||Y[i]){if(!Y[i]&&eY(i)&&(W.tagNameCheck instanceof RegExp&&tz(W.tagNameCheck,i)||W.tagNameCheck instanceof Function&&W.tagNameCheck(i)))return!1;if(er&&!el[i]){let t=_(e)||e.parentNode,i=w(e)||e.childNodes;if(i&&t){let n=i.length;for(let o=n-1;o>=0;--o){let n=v(i[o],!0);n.__removalCount=(e.__removalCount||0)+1,t.insertBefore(n,y(e))}}}return eN(e),!0}return e instanceof d&&!eM(e)||("noscript"===i||"noembed"===i||"noframes"===i)&&tz(/<\/no(script|embed|frames)/i,e.innerHTML)?(eN(e),!0):(K&&e.nodeType===io.text&&(t=e.textContent,tR([E,R,D],e=>{t=tL(t,e," ")}),e.textContent!==t&&(tO(n.removed,{element:e.cloneNode()}),e.textContent=t)),ez(T.afterSanitizeElements,e,null),!1)},eW=function(e,t,i){if(en&&("id"===t||"name"===t)&&(i in o||i in eT))return!1;if(Z&&!U[t]&&tz(O,t));else if(G&&tz(M,t));else if(!z[t]||U[t]){if(!(eY(e)&&(W.tagNameCheck instanceof RegExp&&tz(W.tagNameCheck,e)||W.tagNameCheck instanceof Function&&W.tagNameCheck(e))&&(W.attributeNameCheck instanceof RegExp&&tz(W.attributeNameCheck,t)||W.attributeNameCheck instanceof Function&&W.attributeNameCheck(t))||"is"===t&&W.allowCustomizedBuiltInElements&&(W.tagNameCheck instanceof RegExp&&tz(W.tagNameCheck,i)||W.tagNameCheck instanceof Function&&W.tagNameCheck(i))))return!1}else if(eh[t]);else if(tz(B,tL(i,P,"")));else if(("src"===t||"xlink:href"===t||"href"===t)&&"script"!==e&&0===tB(i,"data:")&&ed[e]);else if(j&&!tz(N,tL(i,P,"")));else if(i)return!1;return!0},eY=function(e){return"annotation-xml"!==e&&tP(e,L)},eU=function(e){ez(T.beforeSanitizeAttributes,e,null);let{attributes:i}=e;if(!i||eF(e))return;let o={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:z,forceKeepAttr:void 0},r=i.length;for(;r--;){let{name:a,namespaceURI:s,value:l}=i[r],c=eI(a),d="value"===a?l:tF(l);if(o.attrName=c,o.attrValue=d,o.keepAttr=!0,o.forceKeepAttr=void 0,ez(T.uponSanitizeAttribute,e,o),d=o.attrValue,eo&&("id"===c||"name"===c)&&(eP(a,e),d="user-content-"+d),X&&tz(/((--!?|])>)|<\/(style|title)/i,d)){eP(a,e);continue}if(o.forceKeepAttr||(eP(a,e),!o.keepAttr))continue;if(!q&&tz(/\/>/i,d)){eP(a,e);continue}K&&tR([E,R,D],e=>{d=tL(d,e," ")});let u=eI(e.nodeName);if(eW(u,c,d)){if(t&&"object"==typeof g&&"function"==typeof g.getAttributeType)if(s);else switch(g.getAttributeType(u,c)){case"TrustedHTML":d=t.createHTML(d);break;case"TrustedScriptURL":d=t.createScriptURL(d)}try{s?e.setAttributeNS(s,a,d):e.setAttribute(a,d),eF(e)?eN(e):tD(n.removed)}catch(e){}}}ez(T.afterSanitizeAttributes,e,null)},eG=function e(t){let i=null,n=eB(t);for(ez(T.beforeSanitizeShadowDOM,t,null);i=n.nextNode();)ez(T.uponSanitizeShadowNode,i,null),eH(i),eU(i),i.content instanceof s&&e(i.content);ez(T.afterSanitizeShadowDOM,t,null)};return n.sanitize=function(e){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=null,a=null,l=null,d=null;if((eb=!e)&&(e="\x3c!--\x3e"),"string"!=typeof e&&!eV(e))if("function"==typeof e.toString){if("string"!=typeof(e=e.toString()))throw tH("dirty is not a string, aborting")}else throw tH("toString is not a function");if(!n.isSupported)return e;if($||eR(i),n.removed=[],"string"==typeof e&&(ea=!1),ea){if(e.nodeName){let t=eI(e.nodeName);if(!F[t]||Y[t])throw tH("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof c)(a=(o=eL("\x3c!----\x3e")).ownerDocument.importNode(e,!0)).nodeType===io.element&&"BODY"===a.nodeName||"HTML"===a.nodeName?o=a:o.appendChild(a);else{if(!ee&&!K&&!Q&&-1===e.indexOf("<"))return t&&ei?t.createHTML(e):e;if(!(o=eL(e)))return ee?null:ei?x:""}o&&J&&eN(o.firstChild);let u=eB(ea?e:o);for(;l=u.nextNode();)eH(l),eU(l),l.content instanceof s&&eG(l.content);if(ea)return e;if(ee){if(et)for(d=k.call(o.ownerDocument);o.firstChild;)d.appendChild(o.firstChild);else d=o;return(z.shadowroot||z.shadowrootmode)&&(d=A.call(r,d,!0)),d}let h=Q?o.outerHTML:o.innerHTML;return Q&&F["!doctype"]&&o.ownerDocument&&o.ownerDocument.doctype&&o.ownerDocument.doctype.name&&tz(it,o.ownerDocument.doctype.name)&&(h="<!DOCTYPE "+o.ownerDocument.doctype.name+">\n"+h),K&&tR([E,R,D],e=>{h=tL(h,e," ")}),t&&ei?t.createHTML(h):h},n.setConfig=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};eR(e),$=!0},n.clearConfig=function(){eA=null,$=!1},n.isValidAttribute=function(e,t,i){return eA||eR({}),eW(eI(e),eI(t),i)},n.addHook=function(e,t){"function"==typeof t&&tO(T[e],t)},n.removeHook=function(e){return tD(T[e])},n.removeHooks=function(e){T[e]=[]},n.removeAllHooks=function(){T=ia()},n}();let il=is(),ic={USE_PROFILES:{html:!0,svg:!0}};il.setConfig(ic);let id=null;function iu(e,t){return e=(0,l.R)(e),t?.inputFormat==="markdown"&&!function(e){if(!e.startsWith("<"))return!1;let t=1,i=e.length,n=!1;for(;t<i&&" "!==e[t]&&">"!==e[t];){let i=e.charCodeAt(t);if((!(i>=48)||!(i<=57))&&(!(i>=65)||!(i<=90))&&(!(i>=97)||!(i<=122)))return!1;n=!0,t++}return n}(e)&&(e=(e=ty.render(e)).trimEnd()),e=(t?.htmlSanitizer??il).sanitize(e)}function ih(e,t){let i=(id||(id=document.createElement("div")),id);i.innerHTML=iu(e,t);let n=document.createDocumentFragment();return n.append(...Array.from(i.childNodes)),i.innerHTML="",n}},42766:function(e,t,i){"use strict";var n,o,r,a,s,l,c,d,u;i.d(t,{mP:()=>p,p1:()=>w,PQ:()=>v,SX:()=>s,bg:()=>g,HP:()=>h});let h=new Uint16Array('ᵁ<\xd5ıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms\x7f\x84\x8b\x90\x95\x98\xa6\xb3\xb9\xc8\xcflig耻\xc6䃆P耻&䀦cute耻\xc1䃁reve;䄂Āiyx}rc耻\xc2䃂;䐐r;쀀\ud835\udd04rave耻\xc0䃀pha;䎑acr;䄀d;橓Āgp\x9d\xa1on;䄄f;쀀\ud835\udd38plyFunction;恡ing耻\xc5䃅Ācs\xbe\xc3r;쀀\ud835\udc9cign;扔ilde耻\xc3䃃ml耻\xc4䃄Ѐaceforsu\xe5\xfb\xfeėĜĢħĪĀcr\xea\xf2kslash;或Ŷ\xf6\xf8;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀\ud835\udd05pf;쀀\ud835\udd39eve;䋘c\xf2ēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻\xa9䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻\xc7䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷\xf2ſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀\ud835\udc9epĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀\ud835\udd07Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀\ud835\udd3bƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegra\xecȹoɴ͹\0\0ͻ\xbb͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔e\xe5ˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀\ud835\udc9frok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻\xd0䃐cute耻\xc9䃉ƀaiyӒӗӜron;䄚rc耻\xca䃊;䐭ot;䄖r;쀀\ud835\udd08rave耻\xc8䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀\ud835\udd3csilon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻\xcb䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀\ud835\udd09lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀\ud835\udd3dAll;戀riertrf;愱c\xf2׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀\ud835\udd0a;拙pf;쀀\ud835\udd3eeater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀\ud835\udca2;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅ\xf2کrok;䄦mpńېۘownHum\xf0įqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻\xcd䃍Āiyܓܘrc耻\xce䃎;䐘ot;䄰r;愑rave耻\xcc䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lie\xf3ϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀\ud835\udd40a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻\xcf䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀\ud835\udd0dpf;쀀\ud835\udd41ǣ߇\0ߌr;쀀\ud835\udca5rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀\ud835\udd0epf;쀀\ud835\udd42cr;쀀\ud835\udca6րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ight\xe1Μs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀\ud835\udd0fĀ;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊight\xe1οight\xe1ϊf;쀀\ud835\udd43erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂ\xf2ࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀\ud835\udd10nusPlus;戓pf;쀀\ud835\udd44c\xf2੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘\xeb૙eryThi\xee૙tedĀGL૸ଆreaterGreate\xf2ٳessLes\xf3ੈLine;䀊r;쀀\ud835\udd11ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀\ud835\udca9ilde耻\xd1䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻\xd3䃓Āiy෎ීrc耻\xd4䃔;䐞blac;䅐r;쀀\ud835\udd12rave耻\xd2䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀\ud835\udd46enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀\ud835\udcaaash耻\xd8䃘iŬื฼de耻\xd5䃕es;樷ml耻\xd6䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀\ud835\udd13i;䎦;䎠usMinus;䂱Āipຢອncareplan\xe5ڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀\ud835\udcab;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀\ud835\udd14pf;愚cr;쀀\ud835\udcac؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻\xae䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r\xbbཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀\ud835\udd16ortȀDLRUᄪᄴᄾᅉownArrow\xbbОeftArrow\xbb࢚ightArrow\xbb࿝pArrow;憑gma;䎣allCircle;战pf;쀀\ud835\udd4aɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀\ud835\udcaear;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Th\xe1ྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et\xbbሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻\xde䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀\ud835\udd17Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀\ud835\udd4bipleDot;惛Āctዖዛr;쀀\ud835\udcafrok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻\xda䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻\xdb䃛;䐣blac;䅰r;쀀\ud835\udd18rave耻\xd9䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀\ud835\udd4cЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥own\xe1ϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀\ud835\udcb0ilde;䅨ml耻\xdc䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀\ud835\udd19pf;쀀\ud835\udd4dcr;쀀\ud835\udcb1dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀\ud835\udd1apf;쀀\ud835\udd4ecr;쀀\ud835\udcb2Ȁfiosᓋᓐᓒᓘr;쀀\ud835\udd1b;䎞pf;쀀\ud835\udd4fcr;쀀\ud835\udcb3ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻\xdd䃝Āiyᔉᔍrc;䅶;䐫r;쀀\ud835\udd1cpf;쀀\ud835\udd50cr;쀀\ud835\udcb4ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidt\xe8૙a;䎖r;愨pf;愤cr;쀀\ud835\udcb5௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻\xe1䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻\xe2䃢te肻\xb4̆;䐰lig耻\xe6䃦Ā;r\xb2ᖺ;쀀\ud835\udd1erave耻\xe0䃠ĀepᗊᗖĀfpᗏᗔsym;愵\xe8ᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e\xbbᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢\xbb\xb9arr;捼Āgpᙣᙧon;䄅f;쀀\ud835\udd52΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒ\xf1ᚃing耻\xe5䃥ƀctyᚡᚦᚨr;쀀\ud835\udcb6;䀪mpĀ;e዁ᚯ\xf1ʈilde耻\xe3䃣ml耻\xe4䃤Āciᛂᛈonin\xf4ɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e\xbbᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰s\xe9ᜌno\xf5ēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀\ud835\udd1fg΀costuvwឍឝឳេ៕៛៞ƀaiuបពរ\xf0ݠrc;旯p\xbb፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄e\xe5ᑄ\xe5ᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀\ud835\udd53Ā;tᏋᡣom\xbbᏌtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻\xa6䂦Ȁceioᥑᥖᥚᥠr;쀀\ud835\udcb7mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t\xbb᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁\xeeړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻\xe7䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻\xb8ƭptyv;榲t脀\xa2;eᨭᨮ䂢r\xe4Ʋr;쀀\ud835\udd20ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark\xbbᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟\xbbཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it\xbb᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;q\xc7\xc6ɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁\xeeᅠeĀmx᫱᫶ent\xbb᫩e\xf3ɍǧ᫾\0ᬇĀ;dኻᬂot;橭n\xf4Ɇƀfryᬐᬔᬗ;쀀\ud835\udd54o\xe4ɔ脀\xa9;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀\ud835\udcb8Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒre\xe3᭳u\xe3᭵ee;拎edge;拏en耻\xa4䂤earrowĀlrᯮ᯳eft\xbbᮀight\xbbᮽe\xe4ᯝĀciᰁᰇonin\xf4Ƿnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍r\xf2΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸\xf2ᄳhĀ;vᱚᱛ怐\xbbऊūᱡᱧarow;椏a\xe3̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻\xb0䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀\ud835\udd21arĀlrᲳᲵ\xbbࣜ\xbbသʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀\xf7;o᳧ᳰntimes;拇n\xf8᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀\ud835\udd55ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedg\xe5\xfanƀadhᄮᵝᵧownarrow\xf3ᲃarpoonĀlrᵲᵶef\xf4Ჴigh\xf4ᲶŢᵿᶅkaro\xf7གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀\ud835\udcb9;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃r\xf2Щa\xf2ྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴo\xf4ᲉĀcsḎḔute耻\xe9䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻\xea䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀\ud835\udd22ƀ;rsṐṑṗ檚ave耻\xe8䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et\xbbẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀\ud835\udd56ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on\xbbớ;䏵ȀcsuvỪỳἋἣĀioữḱrc\xbbḮɩỹ\0\0ỻ\xedՈantĀglἂἆtr\xbbṝess\xbbṺƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯o\xf4͒ĀahὉὋ;䎷耻\xf0䃰Āmrὓὗl耻\xeb䃫o;悬ƀcipὡὤὧl;䀡s\xf4ծĀeoὬὴctatio\xeeՙnential\xe5չৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotse\xf1Ṅy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀\ud835\udd23lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀\ud835\udd57ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻\xbd䂽;慓耻\xbc䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻\xbe䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀\ud835\udcbbࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lan\xf4٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀\ud835\udd24Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox\xbbℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀\ud835\udd58Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎pro\xf8₞r;楸qĀlqؿ↖les\xf3₈i\xed٫Āen↣↭rtneqq;쀀≩︀\xc5↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽r\xf2ΠȀilmr⇐⇔⇗⇛rs\xf0ᒄf\xbb․il\xf4کĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it\xbb∊lip;怦con;抹r;쀀\ud835\udd25sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀\ud835\udd59bar;怕ƀclt≯≴≸r;쀀\ud835\udcbdas\xe8⇴rok;䄧Ābp⊂⊇ull;恃hen\xbbᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻\xed䃭ƀ;iyݱ⊰⊵rc耻\xee䃮;䐸Ācx⊼⊿y;䐵cl耻\xa1䂡ĀfrΟ⋉;쀀\ud835\udd26rave耻\xec䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓in\xe5ގar\xf4ܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝do\xf4⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙er\xf3ᕣ\xe3⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀\ud835\udd5aa;䎹uest耻\xbf䂿Āci⎊⎏r;쀀\ud835\udcbenʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻\xef䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀\ud835\udd27ath;䈷pf;쀀\ud835\udd5bǣ⏬\0⏱r;쀀\ud835\udcbfrcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀\ud835\udd28reen;䄸cy;䑅cy;䑜pf;쀀\ud835\udd5ccr;쀀\ud835\udcc0஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼r\xf2৆\xf2Εail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴ra\xeeࡌbda;䎻gƀ;dlࢎⓁⓃ;榑\xe5ࢎ;檅uo耻\xab䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝\xeb≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼\xecࢰ\xe2┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□a\xe9⓶arpoonĀdu▯▴own\xbbњp\xbb०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoon\xf3྘quigarro\xf7⇰hreetimes;拋ƀ;qs▋ও◺lan\xf4বʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋ppro\xf8Ⓠot;拖qĀgq♃♅\xf4উgt\xf2⒌\xf4ছi\xedলƀilr♕࣡♚sht;楼;쀀\ud835\udd29Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖r\xf2◁orne\xf2ᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che\xbb⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox\xbb⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽r\xebࣁgƀlmr⛿✍✔eftĀar০✇ight\xe1৲apsto;柼ight\xe1৽parrowĀlr✥✩ef\xf4⓭ight;憬ƀafl✶✹✽r;榅;쀀\ud835\udd5dus;樭imes;樴š❋❏st;戗\xe1ፎƀ;ef❗❘᠀旊nge\xbb❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇r\xf2ࢨorne\xf2ᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀\ud835\udcc1mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹re\xe5◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀\xc5⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻\xaf䂯Āet⡗⡙;時Ā;e⡞⡟朠se\xbb⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻ow\xeeҌef\xf4ए\xf0Ꮡker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle\xbbᘦr;쀀\ud835\udd2ao;愧ƀcdn⢯⢴⣉ro耻\xb5䂵Ȁ;acdᑤ⢽⣀⣄s\xf4ᚧir;櫰ot肻\xb7Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛\xf2−\xf0ઁĀdp⣩⣮els;抧f;쀀\ud835\udd5eĀct⣸⣽r;쀀\ud835\udcc2pos\xbbᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la\xbb˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉ro\xf8඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻\xa0ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸ui\xf6ୣĀei⩊⩎ar;椨\xed஘istĀ;s஠டr;쀀\ud835\udd2bȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lan\xf4௢i\xed௪Ā;rஶ⪁\xbbஷƀAap⪊⪍⪑r\xf2⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹r\xf2⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro\xf7⫁ightarro\xf7⪐ƀ;qs఻⪺⫪lan\xf4ౕĀ;sౕ⫴\xbbశi\xedౝĀ;rవ⫾iĀ;eచథi\xe4ඐĀpt⬌⬑f;쀀\ud835\udd5f膀\xac;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lle\xec୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳u\xe5ಥĀ;cಘ⭸Ā;eಒ⭽\xf1ಘȀAait⮈⮋⮝⮧r\xf2⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow\xbb⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉u\xe5൅;쀀\ud835\udcc3ortɭ⬅\0\0⯖ar\xe1⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭\xe5೸\xe5ഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗ\xf1സȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇ\xecௗlde耻\xf1䃱\xe7ృiangleĀlrⱒⱜeftĀ;eచⱚ\xf1దightĀ;eೋⱥ\xf1೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻\xf3䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻\xf4䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀\ud835\udd2cͯ⵹\0\0⵼\0ⶂn;䋛ave耻\xf2䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨr\xf2᪀Āir⶝ⶠr;榾oss;榻n\xe5๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀\ud835\udd60ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨r\xf2᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f\xbbⷿ耻\xaa䂪耻\xba䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧\xf2⸁ash耻\xf8䃸l;折iŬⸯ⸴de耻\xf5䃵esĀ;aǛ⸺s;樶ml耻\xf6䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀\xb6;l⹭⹮䂶le\xecЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀\ud835\udd2dƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕ma\xf4੶ne;明ƀ;tv⺿⻀⻈䏀chfork\xbb´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎\xf6⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻\xb1ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀\ud835\udd61nd耻\xa3䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷u\xe5໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾ppro\xf8⽃urlye\xf1໙\xf1໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨i\xedໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺\xf0⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴\xef໻rel;抰Āci⿀⿅r;쀀\ud835\udcc5;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀\ud835\udd2epf;쀀\ud835\udd62rime;恗cr;쀀\ud835\udcc6ƀaeo⿸〉〓tĀei⿾々rnion\xf3ڰnt;樖stĀ;e【】䀿\xf1Ἑ\xf4༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがr\xf2Ⴓ\xf2ϝail;検ar\xf2ᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕i\xe3ᅮmptyv;榳gȀ;del࿑らるろ;榒;榥\xe5࿑uo耻\xbb䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞\xeb≝\xf0✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶al\xf3༞ƀabrョリヮr\xf2៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗\xec࿲\xe2ヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜn\xe5Ⴛar\xf4ྩt;断ƀilrㅩဣㅮsht;楽;쀀\ud835\udd2fĀaoㅷㆆrĀduㅽㅿ\xbbѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭa\xe9トarpoonĀduㆻㆿow\xeeㅾp\xbb႒eftĀah㇊㇐rrow\xf3࿪arpoon\xf3Ցightarrows;應quigarro\xf7ニhreetimes;拌g;䋚ingdotse\xf1ἲƀahm㈍㈐㈓r\xf2࿪a\xf2Ց;怏oustĀ;a㈞㈟掱che\xbb㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾r\xebဃƀafl㉇㉊㉎r;榆;쀀\ud835\udd63us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒ar\xf2㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀\ud835\udcc7Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠re\xe5ㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛qu\xef➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡u\xe5ᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓i\xedሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒\xeb∨Ā;oਸ਼਴t耻\xa7䂧i;䀻war;椩mĀin㍩\xf0nu\xf3\xf1t;朶rĀ;o㍶⁕쀀\ud835\udd30Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜i\xe4ᑤara\xec⹯耻\xad䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲ar\xf2ᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetm\xe9㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀\ud835\udd64aĀdr㑍ЂesĀ;u㑔㑕晠it\xbb㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍\xf1ᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝\xf1ᆮƀ;afᅻ㒦ְrť㒫ֱ\xbbᅼar\xf2ᅈȀcemt㒹㒾㓂㓅r;쀀\ud835\udcc8tm\xee\xf1i\xec㐕ar\xe6ᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psilo\xeeỠh\xe9⺯s\xbb⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦ppro\xf8㋺urlye\xf1ᇾ\xf1ᇳƀaes㖂㖈㌛ppro\xf8㌚q\xf1㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻\xb9䂹耻\xb2䂲耻\xb3䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨\xeb∮Ā;oਫ਩war;椪lig耻\xdf䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄r\xeb๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀\ud835\udd31Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮ppro\xf8዁im\xbbኬs\xf0ኞĀas㚺㚮\xf0዁rn耻\xfe䃾Ǭ̟㛆⋧es膀\xd7;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀\xe1⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀\ud835\udd65rk;櫚\xe1㍢rime;怴ƀaip㜏㜒㝤d\xe5ቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own\xbbᶻeftĀ;e⠀㜾\xf1म;扜ightĀ;e㊪㝋\xf1ၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀\ud835\udcc9;䑆cy;䑛rok;䅧Āio㞋㞎x\xf4᝷headĀlr㞗㞠eftarro\xf7ࡏightarrow\xbbཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶r\xf2ϭar;楣Ācr㟜㟢ute耻\xfa䃺\xf2ᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻\xfb䃻;䑃ƀabh㠃㠆㠋r\xf2Ꭽlac;䅱a\xf2ᏃĀir㠓㠘sht;楾;쀀\ud835\udd32rave耻\xf9䃹š㠧㠱rĀlr㠬㠮\xbbॗ\xbbႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r\xbb㡆op;挏ri;旸Āal㡖㡚cr;䅫肻\xa8͉Āgp㡢㡦on;䅳f;쀀\ud835\udd66̀adhlsuᅋ㡸㡽፲㢑㢠own\xe1ᎳarpoonĀlr㢈㢌ef\xf4㠭igh\xf4㠯iƀ;hl㢙㢚㢜䏅\xbbᏺon\xbb㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r\xbb㢽op;挎ng;䅯ri;旹cr;쀀\ud835\udccaƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨\xbb᠓Āam㣯㣲r\xf2㢨l耻\xfc䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠r\xf2ϷarĀ;v㤦㤧櫨;櫩as\xe8ϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖app\xe1␕othin\xe7ẖƀhir㓫⻈㥙op\xf4⾵Ā;hᎷ㥢\xefㆍĀiu㥩㥭gm\xe1㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟et\xe1㚜iangleĀlr㦪㦯eft\xbbथight\xbbၑy;䐲ash\xbbံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨa\xf2ᑩr;쀀\ud835\udd33tr\xe9㦮suĀbp㧯㧱\xbbജ\xbb൙pf;쀀\ud835\udd67ro\xf0໻tr\xe9㦴Ācu㨆㨋r;쀀\ud835\udccbĀbp㨐㨘nĀEe㦀㨖\xbb㥾nĀEe㦒㨞\xbb㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀\ud835\udd34pf;쀀\ud835\udd68Ā;eᑹ㩦at\xe8ᑹcr;쀀\ud835\udcccૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tr\xe9៑r;쀀\ud835\udd35ĀAa㪔㪗r\xf2σr\xf2৶;䎾ĀAa㪡㪤r\xf2θr\xf2৫a\xf0✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀\ud835\udd69im\xe5ឲĀAa㫇㫊r\xf2ώr\xf2ਁĀcq㫒ីr;쀀\ud835\udccdĀpt៖㫜r\xe9។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻\xfd䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻\xa5䂥r;쀀\ud835\udd36cy;䑗pf;쀀\ud835\udd6acr;쀀\ud835\udcceĀcm㬦㬩y;䑎l耻\xff䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡tr\xe6ᕟa;䎶r;쀀\ud835\udd37cy;䐶grarr;懝pf;쀀\ud835\udd6bcr;쀀\ud835\udccfĀjn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),p=new Uint16Array("Ȁaglq	\x15\x18\x1bɭ\x0f\0\0\x12p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0))),f=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),g=null!=(n=String.fromCodePoint)?n:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|1023&e),t+=String.fromCharCode(e)};function m(e){return e>=o.ZERO&&e<=o.NINE}(l=o||(o={}))[l.NUM=35]="NUM",l[l.SEMI=59]="SEMI",l[l.EQUALS=61]="EQUALS",l[l.ZERO=48]="ZERO",l[l.NINE=57]="NINE",l[l.LOWER_A=97]="LOWER_A",l[l.LOWER_F=102]="LOWER_F",l[l.LOWER_X=120]="LOWER_X",l[l.LOWER_Z=122]="LOWER_Z",l[l.UPPER_A=65]="UPPER_A",l[l.UPPER_F=70]="UPPER_F",l[l.UPPER_Z=90]="UPPER_Z",(c=r||(r={}))[c.VALUE_LENGTH=49152]="VALUE_LENGTH",c[c.BRANCH_LENGTH=16256]="BRANCH_LENGTH",c[c.JUMP_TABLE=127]="JUMP_TABLE",(d=a||(a={}))[d.EntityStart=0]="EntityStart",d[d.NumericStart=1]="NumericStart",d[d.NumericDecimal=2]="NumericDecimal",d[d.NumericHex=3]="NumericHex",d[d.NamedEntity=4]="NamedEntity",(u=s||(s={}))[u.Legacy=0]="Legacy",u[u.Strict=1]="Strict",u[u.Attribute=2]="Attribute";class v{constructor(e,t,i){this.decodeTree=e,this.emitCodePoint=t,this.errors=i,this.state=a.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=s.Strict}startEntity(e){this.decodeMode=e,this.state=a.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,t){switch(this.state){case a.EntityStart:if(e.charCodeAt(t)===o.NUM)return this.state=a.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1);return this.state=a.NamedEntity,this.stateNamedEntity(e,t);case a.NumericStart:return this.stateNumericStart(e,t);case a.NumericDecimal:return this.stateNumericDecimal(e,t);case a.NumericHex:return this.stateNumericHex(e,t);case a.NamedEntity:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){return t>=e.length?-1:(32|e.charCodeAt(t))===o.LOWER_X?(this.state=a.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=a.NumericDecimal,this.stateNumericDecimal(e,t))}addToNumericResult(e,t,i,n){if(t!==i){let o=i-t;this.result=this.result*Math.pow(n,o)+parseInt(e.substr(t,o),n),this.consumed+=o}}stateNumericHex(e,t){let i=t;for(;t<e.length;){var n;let r=e.charCodeAt(t);if(!m(r)&&(!((n=r)>=o.UPPER_A)||!(n<=o.UPPER_F))&&(!(n>=o.LOWER_A)||!(n<=o.LOWER_F)))return this.addToNumericResult(e,i,t,16),this.emitNumericEntity(r,3);t+=1}return this.addToNumericResult(e,i,t,16),-1}stateNumericDecimal(e,t){let i=t;for(;t<e.length;){let n=e.charCodeAt(t);if(!m(n))return this.addToNumericResult(e,i,t,10),this.emitNumericEntity(n,2);t+=1}return this.addToNumericResult(e,i,t,10),-1}emitNumericEntity(e,t){var i,n,r;if(this.consumed<=t)return null==(i=this.errors)||i.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(e===o.SEMI)this.consumed+=1;else if(this.decodeMode===s.Strict)return 0;return this.emitCodePoint((n=this.result)>=55296&&n<=57343||n>1114111?65533:null!=(r=f.get(n))?r:n,this.consumed),this.errors&&(e!==o.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(e,t){let{decodeTree:i}=this,n=i[this.treeIndex],a=(n&r.VALUE_LENGTH)>>14;for(;t<e.length;t++,this.excess++){let l=e.charCodeAt(t);if(this.treeIndex=function(e,t,i,n){let o=(t&r.BRANCH_LENGTH)>>7,a=t&r.JUMP_TABLE;if(0===o)return 0!==a&&n===a?i:-1;if(a){let t=n-a;return t<0||t>=o?-1:e[i+t]-1}let s=i,l=s+o-1;for(;s<=l;){let t=s+l>>>1,i=e[t];if(i<n)s=t+1;else{if(!(i>n))return e[t+o];l=t-1}}return -1}(i,n,this.treeIndex+Math.max(1,a),l),this.treeIndex<0)return 0===this.result||this.decodeMode===s.Attribute&&(0===a||function(e){var t;return e===o.EQUALS||(t=e)>=o.UPPER_A&&t<=o.UPPER_Z||t>=o.LOWER_A&&t<=o.LOWER_Z||m(t)}(l))?0:this.emitNotTerminatedNamedEntity();if(0!=(a=((n=i[this.treeIndex])&r.VALUE_LENGTH)>>14)){if(l===o.SEMI)return this.emitNamedEntityData(this.treeIndex,a,this.consumed+this.excess);this.decodeMode!==s.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return -1}emitNotTerminatedNamedEntity(){var e;let{result:t,decodeTree:i}=this,n=(i[t]&r.VALUE_LENGTH)>>14;return this.emitNamedEntityData(t,n,this.consumed),null==(e=this.errors)||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,t,i){let{decodeTree:n}=this;return this.emitCodePoint(1===t?n[e]&~r.VALUE_LENGTH:n[e+1],i),3===t&&this.emitCodePoint(n[e+2],i),i}end(){var e;switch(this.state){case a.NamedEntity:return 0!==this.result&&(this.decodeMode!==s.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case a.NumericDecimal:return this.emitNumericEntity(0,2);case a.NumericHex:return this.emitNumericEntity(0,3);case a.NumericStart:return null==(e=this.errors)||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case a.EntityStart:return 0}}}function b(e){let t="",i=new v(e,e=>t+=g(e));return function(e,n){let o=0,r=0;for(;(r=e.indexOf("&",r))>=0;){t+=e.slice(o,r),i.startEntity(n);let a=i.write(e,r+1);if(a<0){o=r+i.end();break}o=r+a,r=0===a?o+1:o}let a=t+e.slice(o);return t="",a}}let y=b(h);function w(e,t=s.Legacy){return y(e,t)}b(p)},99762:function(e,t,i){"use strict";i.d(t,{p1:()=>s.p1});var n,o,r,a,s=i(42766);let l=new Map([[34,"&quot;"],[38,"&amp;"],[39,"&apos;"],[60,"&lt;"],[62,"&gt;"]]);function c(e,t){return function(i){let n,o=0,r="";for(;n=e.exec(i);)o!==n.index&&(r+=i.substring(o,n.index)),r+=t.get(n[0].charCodeAt(0)),o=n.index+1;return r+i.substring(o)}}null!=String.prototype.codePointAt||((e,t)=>(64512&e.charCodeAt(t))==55296?(e.charCodeAt(t)-55296)*1024+e.charCodeAt(t+1)-56320+65536:e.charCodeAt(t)),c(/[&<>'"]/g,l),c(/["&\u00A0]/g,new Map([[34,"&quot;"],[38,"&amp;"],[160,"&nbsp;"]])),c(/[&<>\u00A0]/g,new Map([[38,"&amp;"],[60,"&lt;"],[62,"&gt;"],[160,"&nbsp;"]])),(n=r||(r={}))[n.XML=0]="XML",n[n.HTML=1]="HTML",(o=a||(a={}))[o.UTF8=0]="UTF8",o[o.ASCII=1]="ASCII",o[o.Extensive=2]="Extensive",o[o.Attribute=3]="Attribute",o[o.Text=4]="Text"},69902:function(e,t,i){"use strict";i.d(t,{Z:()=>s});var n=i(94596);let o=function(e,t){for(var i=e.length;i--;)if((0,n.Z)(e[i][0],t))return i;return -1};var r=Array.prototype.splice;function a(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t<i;){var n=e[t];this.set(n[0],n[1])}}a.prototype.clear=function(){this.__data__=[],this.size=0},a.prototype.delete=function(e){var t=this.__data__,i=o(t,e);return!(i<0)&&(i==t.length-1?t.pop():r.call(t,i,1),--this.size,!0)},a.prototype.get=function(e){var t=this.__data__,i=o(t,e);return i<0?void 0:t[i][1]},a.prototype.has=function(e){return o(this.__data__,e)>-1},a.prototype.set=function(e,t){var i=this.__data__,n=o(i,e);return n<0?(++this.size,i.push([e,t])):i[n][1]=t,this};let s=a},20843:function(e,t,i){"use strict";i.d(t,{Z:()=>r});var n=i(80938),o=i(80651);let r=(0,n.Z)(o.Z,"Map")},37408:function(e,t,i){"use strict";i.d(t,{Z:()=>h});var n=(0,i(80938).Z)(Object,"create"),o=Object.prototype.hasOwnProperty,r=Object.prototype.hasOwnProperty;function a(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t<i;){var n=e[t];this.set(n[0],n[1])}}a.prototype.clear=function(){this.__data__=n?n(null):{},this.size=0},a.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=+!!t,t},a.prototype.get=function(e){var t=this.__data__;if(n){var i=t[e];return"__lodash_hash_undefined__"===i?void 0:i}return o.call(t,e)?t[e]:void 0},a.prototype.has=function(e){var t=this.__data__;return n?void 0!==t[e]:r.call(t,e)},a.prototype.set=function(e,t){var i=this.__data__;return this.size+=+!this.has(e),i[e]=n&&void 0===t?"__lodash_hash_undefined__":t,this};var s=i(69902),l=i(20843);let c=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e},d=function(e,t){var i=e.__data__;return c(t)?i["string"==typeof t?"string":"hash"]:i.map};function u(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t<i;){var n=e[t];this.set(n[0],n[1])}}u.prototype.clear=function(){this.size=0,this.__data__={hash:new a,map:new(l.Z||s.Z),string:new a}},u.prototype.delete=function(e){var t=d(this,e).delete(e);return this.size-=+!!t,t},u.prototype.get=function(e){return d(this,e).get(e)},u.prototype.has=function(e){return d(this,e).has(e)},u.prototype.set=function(e,t){var i=d(this,e),n=i.size;return i.set(e,t),this.size+=+(i.size!=n),this};let h=u},73567:function(e,t,i){"use strict";i.d(t,{Z:()=>r});var n=i(80938),o=i(80651);let r=(0,n.Z)(o.Z,"Set")},6623:function(e,t,i){"use strict";i.d(t,{Z:()=>r});var n=i(37408);function o(e){var t=-1,i=null==e?0:e.length;for(this.__data__=new n.Z;++t<i;)this.add(e[t])}o.prototype.add=o.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},o.prototype.has=function(e){return this.__data__.has(e)};let r=o},53146:function(e,t,i){"use strict";i.d(t,{Z:()=>s});var n=i(69902),o=i(20843),r=i(37408);function a(e){var t=this.__data__=new n.Z(e);this.size=t.size}a.prototype.clear=function(){this.__data__=new n.Z,this.size=0},a.prototype.delete=function(e){var t=this.__data__,i=t.delete(e);return this.size=t.size,i},a.prototype.get=function(e){return this.__data__.get(e)},a.prototype.has=function(e){return this.__data__.has(e)},a.prototype.set=function(e,t){var i=this.__data__;if(i instanceof n.Z){var a=i.__data__;if(!o.Z||a.length<199)return a.push([e,t]),this.size=++i.size,this;i=this.__data__=new r.Z(a)}return i.set(e,t),this.size=i.size,this};let s=a},28373:function(e,t,i){"use strict";i.d(t,{Z:()=>n});let n=i(80651).Z.Symbol},72337:function(e,t,i){"use strict";i.d(t,{Z:()=>n});let n=i(80651).Z.Uint8Array},64464:function(e,t,i){"use strict";i.d(t,{Z:()=>d});let n=function(e,t){for(var i=-1,n=Array(e);++i<e;)n[i]=t(i);return n};var o=i(75266),r=i(3073),a=i(4339),s=i(1400),l=i(77407),c=Object.prototype.hasOwnProperty;let d=function(e,t){var i=(0,r.Z)(e),d=!i&&(0,o.Z)(e),u=!i&&!d&&(0,a.Z)(e),h=!i&&!d&&!u&&(0,l.Z)(e),p=i||d||u||h,f=p?n(e.length,String):[],g=f.length;for(var m in e)(t||c.call(e,m))&&!(p&&("length"==m||u&&("offset"==m||"parent"==m)||h&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||(0,s.Z)(m,g)))&&f.push(m);return f}},75952:function(e,t,i){"use strict";i.d(t,{Z:()=>n});let n=function(e,t){for(var i=-1,n=null==e?0:e.length,o=Array(n);++i<n;)o[i]=t(e[i],i,e);return o}},3240:function(e,t,i){"use strict";i.d(t,{Z:()=>n});let n=function(e,t){for(var i=-1,n=t.length,o=e.length;++i<n;)e[o+i]=t[i];return e}},26028:function(e,t,i){"use strict";i.d(t,{Z:()=>a});var n=i(23454),o=i(94596),r=Object.prototype.hasOwnProperty;let a=function(e,t,i){var a=e[t];r.call(e,t)&&(0,o.Z)(a,i)&&(void 0!==i||t in e)||(0,n.Z)(e,t,i)}},23454:function(e,t,i){"use strict";i.d(t,{Z:()=>o});var n=i(89445);let o=function(e,t,i){"__proto__"==t&&n.Z?(0,n.Z)(e,t,{configurable:!0,enumerable:!0,value:i,writable:!0}):e[t]=i}},10834:function(e,t,i){"use strict";i.d(t,{Z:()=>W});var n=i(53146);let o=function(e,t){for(var i=-1,n=null==e?0:e.length;++i<n&&!1!==t(e[i],i,e););return e};var r=i(26028),a=i(45169),s=i(54851),l=i(27042),c=i(83712),d=i(91481),u=i(95688),h=i(31491),p=i(94645),f=i(80778),g=i(50560),m=Object.prototype.hasOwnProperty;let v=function(e){var t=e.length,i=new e.constructor(t);return t&&"string"==typeof e[0]&&m.call(e,"index")&&(i.index=e.index,i.input=e.input),i};var b=i(98240);let y=function(e,t){var i=t?(0,b.Z)(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.byteLength)};var w=/\w*$/;let _=function(e){var t=new e.constructor(e.source,w.exec(e));return t.lastIndex=e.lastIndex,t};var x=i(28373),S=x.Z?x.Z.prototype:void 0,C=S?S.valueOf:void 0,k=i(70980);let I=function(e,t,i){var n=e.constructor;switch(t){case"[object ArrayBuffer]":return(0,b.Z)(e);case"[object Boolean]":case"[object Date]":return new n(+e);case"[object DataView]":return y(e,i);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return(0,k.Z)(e,i);case"[object Map]":case"[object Set]":return new n;case"[object Number]":case"[object String]":return new n(e);case"[object RegExp]":return _(e);case"[object Symbol]":return C?Object(C.call(e)):{}}};var A=i(6625),T=i(3073),E=i(4339),R=i(32398),D=i(94421),O=i(41394),M=O.Z&&O.Z.isMap,N=M?(0,D.Z)(M):function(e){return(0,R.Z)(e)&&"[object Map]"==(0,g.Z)(e)},P=i(26129),L=O.Z&&O.Z.isSet,B=L?(0,D.Z)(L):function(e){return(0,R.Z)(e)&&"[object Set]"==(0,g.Z)(e)},F="[object Arguments]",V="[object Function]",z="[object Object]",H={};H[F]=H["[object Array]"]=H["[object ArrayBuffer]"]=H["[object DataView]"]=H["[object Boolean]"]=H["[object Date]"]=H["[object Float32Array]"]=H["[object Float64Array]"]=H["[object Int8Array]"]=H["[object Int16Array]"]=H["[object Int32Array]"]=H["[object Map]"]=H["[object Number]"]=H[z]=H["[object RegExp]"]=H["[object Set]"]=H["[object String]"]=H["[object Symbol]"]=H["[object Uint8Array]"]=H["[object Uint8ClampedArray]"]=H["[object Uint16Array]"]=H["[object Uint32Array]"]=!0,H["[object Error]"]=H[V]=H["[object WeakMap]"]=!1;let W=function e(t,i,m,b,y,w){var _,x=1&i,S=2&i,C=4&i;if(m&&(_=y?m(t,b,y,w):m(t)),void 0!==_)return _;if(!(0,P.Z)(t))return t;var k=(0,T.Z)(t);if(k){if(_=v(t),!x)return(0,d.Z)(t,_)}else{var R,D,O,M,L=(0,g.Z)(t),W=L==V||"[object GeneratorFunction]"==L;if((0,E.Z)(t))return(0,c.Z)(t,x);if(L==z||L==F||W&&!y){if(_=S||W?{}:(0,A.Z)(t),!x)return S?(D=(R=_)&&(0,a.Z)(t,(0,l.Z)(t),R),(0,a.Z)(t,(0,h.Z)(t),D)):(M=(O=_)&&(0,a.Z)(t,(0,s.Z)(t),O),(0,a.Z)(t,(0,u.Z)(t),M))}else{if(!H[L])return y?t:{};_=I(t,L,x)}}w||(w=new n.Z);var Y=w.get(t);if(Y)return Y;w.set(t,_),B(t)?t.forEach(function(n){_.add(e(n,i,m,n,t,w))}):N(t)&&t.forEach(function(n,o){_.set(o,e(n,i,m,o,t,w))});var U=C?S?f.Z:p.Z:S?l.Z:s.Z,G=k?void 0:U(t);return o(G||t,function(n,o){G&&(n=t[o=n]),(0,r.Z)(_,o,e(n,i,m,o,t,w))}),_}},27014:function(e,t,i){"use strict";i.d(t,{Z:()=>o});var n=i(56721);let o=function(e,t,i){for(var o=-1,r=e.length;++o<r;){var a=e[o],s=t(a);if(null!=s&&(void 0===l?s==s&&!(0,n.Z)(s):i(s,l)))var l=s,c=a}return c}},27796:function(e,t,i){"use strict";i.d(t,{Z:()=>c});var n=i(3240),o=i(28373),r=i(75266),a=i(3073),s=o.Z?o.Z.isConcatSpreadable:void 0;let l=function(e){return(0,a.Z)(e)||(0,r.Z)(e)||!!(s&&e&&e[s])},c=function e(t,i,o,r,a){var s=-1,c=t.length;for(o||(o=l),a||(a=[]);++s<c;){var d=t[s];i>0&&o(d)?i>1?e(d,i-1,o,r,a):(0,n.Z)(a,d):r||(a[a.length]=d)}return a}},89357:function(e,t,i){"use strict";i.d(t,{Z:()=>n});let n=function(e,t,i){for(var n=-1,o=Object(e),r=i(e),a=r.length;a--;){var s=r[++n];if(!1===t(o[s],s,o))break}return e}},80954:function(e,t,i){"use strict";i.d(t,{Z:()=>r});var n=i(34542),o=i(32452);let r=function(e,t){t=(0,n.Z)(t,e);for(var i=0,r=t.length;null!=e&&i<r;)e=e[(0,o.Z)(t[i++])];return i&&i==r?e:void 0}},30292:function(e,t,i){"use strict";i.d(t,{Z:()=>r});var n=i(3240),o=i(3073);let r=function(e,t,i){var r=t(e);return(0,o.Z)(e)?r:(0,n.Z)(r,i(e))}},21452:function(e,t,i){"use strict";i.d(t,{Z:()=>u});var n=i(28373),o=Object.prototype,r=o.hasOwnProperty,a=o.toString,s=n.Z?n.Z.toStringTag:void 0;let l=function(e){var t=r.call(e,s),i=e[s];try{e[s]=void 0;var n=!0}catch(e){}var o=a.call(e);return n&&(t?e[s]=i:delete e[s]),o};var c=Object.prototype.toString,d=n.Z?n.Z.toStringTag:void 0;let u=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":d&&d in Object(e)?l(e):c.call(e)}},28077:function(e,t,i){"use strict";i.d(t,{Z:()=>E});var n=i(53146),o=i(6623);let r=function(e,t){for(var i=-1,n=null==e?0:e.length;++i<n;)if(t(e[i],i,e))return!0;return!1};var a=i(43137);let s=function(e,t,i,n,s,l){var c=1&i,d=e.length,u=t.length;if(d!=u&&!(c&&u>d))return!1;var h=l.get(e),p=l.get(t);if(h&&p)return h==t&&p==e;var f=-1,g=!0,m=2&i?new o.Z:void 0;for(l.set(e,t),l.set(t,e);++f<d;){var v=e[f],b=t[f];if(n)var y=c?n(b,v,f,t,e,l):n(v,b,f,e,t,l);if(void 0!==y){if(y)continue;g=!1;break}if(m){if(!r(t,function(e,t){if(!(0,a.Z)(m,t)&&(v===e||s(v,e,i,n,l)))return m.push(t)})){g=!1;break}}else if(!(v===b||s(v,b,i,n,l))){g=!1;break}}return l.delete(e),l.delete(t),g};var l=i(28373),c=i(72337),d=i(94596);let u=function(e){var t=-1,i=Array(e.size);return e.forEach(function(e,n){i[++t]=[n,e]}),i};var h=i(54428),p=l.Z?l.Z.prototype:void 0,f=p?p.valueOf:void 0;let g=function(e,t,i,n,o,r,a){switch(i){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)break;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":if(e.byteLength!=t.byteLength||!r(new c.Z(e),new c.Z(t)))break;return!0;case"[object Boolean]":case"[object Date]":case"[object Number]":return(0,d.Z)(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var l=u;case"[object Set]":var p=1&n;if(l||(l=h.Z),e.size!=t.size&&!p)break;var g=a.get(e);if(g)return g==t;n|=2,a.set(e,t);var m=s(l(e),l(t),n,o,r,a);return a.delete(e),m;case"[object Symbol]":if(f)return f.call(e)==f.call(t)}return!1};var m=i(94645),v=Object.prototype.hasOwnProperty;let b=function(e,t,i,n,o,r){var a=1&i,s=(0,m.Z)(e),l=s.length;if(l!=(0,m.Z)(t).length&&!a)return!1;for(var c=l;c--;){var d=s[c];if(!(a?d in t:v.call(t,d)))return!1}var u=r.get(e),h=r.get(t);if(u&&h)return u==t&&h==e;var p=!0;r.set(e,t),r.set(t,e);for(var f=a;++c<l;){var g=e[d=s[c]],b=t[d];if(n)var y=a?n(b,g,d,t,e,r):n(g,b,d,e,t,r);if(!(void 0===y?g===b||o(g,b,i,n,r):y)){p=!1;break}f||(f="constructor"==d)}if(p&&!f){var w=e.constructor,_=t.constructor;w!=_&&"constructor"in e&&"constructor"in t&&!("function"==typeof w&&w instanceof w&&"function"==typeof _&&_ instanceof _)&&(p=!1)}return r.delete(e),r.delete(t),p};var y=i(50560),w=i(3073),_=i(4339),x=i(77407),S="[object Arguments]",C="[object Array]",k="[object Object]",I=Object.prototype.hasOwnProperty;let A=function(e,t,i,o,r,a){var l=(0,w.Z)(e),c=(0,w.Z)(t),d=l?C:(0,y.Z)(e),u=c?C:(0,y.Z)(t);d=d==S?k:d,u=u==S?k:u;var h=d==k,p=u==k,f=d==u;if(f&&(0,_.Z)(e)){if(!(0,_.Z)(t))return!1;l=!0,h=!1}if(f&&!h)return a||(a=new n.Z),l||(0,x.Z)(e)?s(e,t,i,o,r,a):g(e,t,d,i,o,r,a);if(!(1&i)){var m=h&&I.call(e,"__wrapped__"),v=p&&I.call(t,"__wrapped__");if(m||v){var A=m?e.value():e,T=v?t.value():t;return a||(a=new n.Z),r(A,T,i,o,a)}}return!!f&&(a||(a=new n.Z),b(e,t,i,o,r,a))};var T=i(32398);let E=function e(t,i,n,o,r){return t===i||(null!=t&&null!=i&&((0,T.Z)(t)||(0,T.Z)(i))?A(t,i,n,o,e,r):t!=t&&i!=i)}},94353:function(e,t,i){"use strict";i.d(t,{Z:()=>w});var n=i(53146),o=i(28077);let r=function(e,t,i,r){var a=i.length,s=a,l=!r;if(null==e)return!s;for(e=Object(e);a--;){var c=i[a];if(l&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++a<s;){var d=(c=i[a])[0],u=e[d],h=c[1];if(l&&c[2]){if(void 0===u&&!(d in e))return!1}else{var p=new n.Z;if(r)var f=r(u,h,d,e,t,p);if(!(void 0===f?(0,o.Z)(h,u,3,r,p):f))return!1}}return!0};var a=i(26129);let s=function(e){return e==e&&!(0,a.Z)(e)};var l=i(54851);let c=function(e){for(var t=(0,l.Z)(e),i=t.length;i--;){var n=t[i],o=e[n];t[i]=[n,o,s(o)]}return t},d=function(e,t){return function(i){return null!=i&&i[e]===t&&(void 0!==t||e in Object(i))}},u=function(e){var t=c(e);return 1==t.length&&t[0][2]?d(t[0][0],t[0][1]):function(i){return i===e||r(i,e,t)}};var h=i(94904),p=i(8986),f=i(90483),g=i(32452),m=i(85627),v=i(3073),b=i(80954);let y=function(e){var t;return(0,f.Z)(e)?(t=(0,g.Z)(e),function(e){return null==e?void 0:e[t]}):function(t){return(0,b.Z)(t,e)}},w=function(e){if("function"==typeof e)return e;if(null==e)return m.Z;if("object"==typeof e){var t,i;return(0,v.Z)(e)?(t=e[0],i=e[1],(0,f.Z)(t)&&s(i)?d((0,g.Z)(t),i):function(e){var n=(0,h.Z)(e,t);return void 0===n&&n===i?(0,p.Z)(e,t):(0,o.Z)(i,n,3)}):u(e)}return y(e)}},63519:function(e,t,i){"use strict";i.d(t,{Z:()=>d});var n=i(80954),o=i(26028),r=i(34542),a=i(1400),s=i(26129),l=i(32452);let c=function(e,t,i,n){if(!(0,s.Z)(e))return e;t=(0,r.Z)(t,e);for(var c=-1,d=t.length,u=d-1,h=e;null!=h&&++c<d;){var p=(0,l.Z)(t[c]),f=i;if("__proto__"===p||"constructor"===p||"prototype"===p)break;if(c!=u){var g=h[p];void 0===(f=n?n(g,p,h):void 0)&&(f=(0,s.Z)(g)?g:(0,a.Z)(t[c+1])?[]:{})}(0,o.Z)(h,p,f),h=h[p]}return e},d=function(e,t,i){for(var o=-1,a=t.length,s={};++o<a;){var l=t[o],d=(0,n.Z)(e,l);i(d,l)&&c(s,(0,r.Z)(l,e),d)}return s}},11021:function(e,t,i){"use strict";i.d(t,{Z:()=>a});var n=i(85627),o=i(51875),r=i(23143);let a=function(e,t){return(0,r.Z)((0,o.Z)(e,t,n.Z),e+"")}},6665:function(e,t,i){"use strict";i.d(t,{Z:()=>n});let n=function(e,t,i){var n=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(i=i>o?o:i)<0&&(i+=o),o=t>i?0:i-t>>>0,t>>>=0;for(var r=Array(o);++n<o;)r[n]=e[n+t];return r}},35351:function(e,t,i){"use strict";i.d(t,{Z:()=>a});var n=i(56721),o=Math.floor,r=Math.min;let a=function(e,t,i,a){var s=0,l=null==e?0:e.length;if(0===l)return 0;for(var c=(t=i(t))!=t,d=null===t,u=(0,n.Z)(t),h=void 0===t;s<l;){var p=o((s+l)/2),f=i(e[p]),g=void 0!==f,m=null===f,v=f==f,b=(0,n.Z)(f);if(c)var y=a||v;else y=h?v&&(a||g):d?v&&g&&(a||!m):u?v&&g&&!m&&(a||!b):!m&&!b&&(a?f<=t:f<t);y?s=p+1:l=p}return r(l,0xfffffffe)}},94421:function(e,t,i){"use strict";i.d(t,{Z:()=>n});let n=function(e){return function(t){return e(t)}}},19175:function(e,t,i){"use strict";i.d(t,{Z:()=>p});var n=i(6623);let o=function(e,t,i,n){for(var o=e.length,r=i+(n?1:-1);n?r--:++r<o;)if(t(e[r],r,e))return r;return -1},r=function(e){return e!=e},a=function(e,t,i){for(var n=i-1,o=e.length;++n<o;)if(e[n]===t)return n;return -1},s=function(e,t){return!!(null==e?0:e.length)&&(t==t?a(e,t,0):o(e,r,0))>-1},l=function(e,t,i){for(var n=-1,o=null==e?0:e.length;++n<o;)if(i(t,e[n]))return!0;return!1};var c=i(43137),d=i(73567),u=i(54428),h=d.Z&&1/(0,u.Z)(new d.Z([,-0]))[1]==1/0?function(e){return new d.Z(e)}:function(){};let p=function(e,t,i){var o=-1,r=s,a=e.length,d=!0,p=[],f=p;if(i)d=!1,r=l;else if(a>=200){var g=t?null:h(e);if(g)return(0,u.Z)(g);d=!1,r=c.Z,f=new n.Z}else f=t?[]:p;o:for(;++o<a;){var m=e[o],v=t?t(m):m;if(m=i||0!==m?m:0,d&&v==v){for(var b=f.length;b--;)if(f[b]===v)continue o;t&&f.push(v),p.push(m)}else r(f,v,i)||(f!==p&&f.push(v),p.push(m))}return p}},43137:function(e,t,i){"use strict";i.d(t,{Z:()=>n});let n=function(e,t){return e.has(t)}},34542:function(e,t,i){"use strict";i.d(t,{Z:()=>p});var n,o,r=i(3073),a=i(90483),s=i(37408);function l(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw TypeError("Expected a function");var i=function(){var n=arguments,o=t?t.apply(this,n):n[0],r=i.cache;if(r.has(o))return r.get(o);var a=e.apply(this,n);return i.cache=r.set(o,a)||r,a};return i.cache=new(l.Cache||s.Z),i}l.Cache=s.Z;var c=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,d=/\\(\\)?/g,u=(o=(n=l(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(c,function(e,i,n,o){t.push(n?o.replace(d,"$1"):i||e)}),t},function(e){return 500===o.size&&o.clear(),e})).cache,n),h=i(88521);let p=function(e,t){return(0,r.Z)(e)?e:(0,a.Z)(e,t)?[e]:u((0,h.Z)(e))}},98240:function(e,t,i){"use strict";i.d(t,{Z:()=>o});var n=i(72337);let o=function(e){var t=new e.constructor(e.byteLength);return new n.Z(t).set(new n.Z(e)),t}},83712:function(e,t,i){"use strict";i.d(t,{Z:()=>l});var n=i(80651),o="object"==typeof exports&&exports&&!exports.nodeType&&exports,r=o&&"object"==typeof module&&module&&!module.nodeType&&module,a=r&&r.exports===o?n.Z.Buffer:void 0,s=a?a.allocUnsafe:void 0;let l=function(e,t){if(t)return e.slice();var i=e.length,n=s?s(i):new e.constructor(i);return e.copy(n),n}},70980:function(e,t,i){"use strict";i.d(t,{Z:()=>o});var n=i(98240);let o=function(e,t){var i=t?(0,n.Z)(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.length)}},91481:function(e,t,i){"use strict";i.d(t,{Z:()=>n});let n=function(e,t){var i=-1,n=e.length;for(t||(t=Array(n));++i<n;)t[i]=e[i];return t}},45169:function(e,t,i){"use strict";i.d(t,{Z:()=>r});var n=i(26028),o=i(23454);let r=function(e,t,i,r){var a=!i;i||(i={});for(var s=-1,l=t.length;++s<l;){var c=t[s],d=r?r(i[c],e[c],c,i,e):void 0;void 0===d&&(d=e[c]),a?(0,o.Z)(i,c,d):(0,n.Z)(i,c,d)}return i}},53238:function(e,t,i){"use strict";i.d(t,{Z:()=>N});let n=function(e,t,i,n){var o=-1,r=null==e?0:e.length;for(n&&r&&(i=e[++o]);++o<r;)i=t(i,e[o],o,e);return i};var o,r=(o={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},function(e){return null==o?void 0:o[e]}),a=i(88521),s=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,l=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g"),c=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,d=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,u="\ud800-\udfff",h="\\u2700-\\u27bf",p="a-z\\xdf-\\xf6\\xf8-\\xff",f="A-Z\\xc0-\\xd6\\xd8-\\xde",g="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",m="['’]",v="["+g+"]",b="["+p+"]",y="[^"+u+g+"\\d+"+h+p+f+"]",w="(?:\ud83c[\udde6-\uddff]){2}",_="[\ud800-\udbff][\udc00-\udfff]",x="["+f+"]",S="(?:"+b+"|"+y+")",C="(?:"+x+"|"+y+")",k="(?:"+m+"(?:d|ll|m|re|s|t|ve))?",I="(?:"+m+"(?:D|LL|M|RE|S|T|VE))?",A="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\ud83c[\udffb-\udfff])?",T="[\\ufe0e\\ufe0f]?",E="(?:\\u200d(?:"+["[^"+u+"]",w,_].join("|")+")"+T+A+")*",R="(?:"+["["+h+"]",w,_].join("|")+")"+(T+A+E),D=RegExp([x+"?"+b+"+"+k+"(?="+[v,x,"$"].join("|")+")",C+"+"+I+"(?="+[v,x+S,"$"].join("|")+")",x+"?"+S+"+"+k,x+"+"+I,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])","\\d+",R].join("|"),"g");let O=function(e,t,i){if(e=(0,a.Z)(e),void 0===(t=i?void 0:t)){var n;return(n=e,d.test(n))?e.match(D)||[]:e.match(c)||[]}return e.match(t)||[]};var M=RegExp("['’]","g");let N=function(e){return function(t){var i;return n(O((i=t,(i=(0,a.Z)(i))&&i.replace(s,r).replace(l,"")).replace(M,"")),e,"")}}},89445:function(e,t,i){"use strict";i.d(t,{Z:()=>o});var n=i(80938);let o=function(){try{var e=(0,n.Z)(Object,"defineProperty");return e({},"",{}),e}catch(e){}}()},48826:function(e,t,i){"use strict";i.d(t,{Z:()=>a});var n=i(74590),o=i(51875),r=i(23143);let a=function(e){return(0,r.Z)((0,o.Z)(e,void 0,n.Z),e+"")}},82208:function(e,t,i){"use strict";i.d(t,{Z:()=>n});let n="object"==typeof global&&global&&global.Object===Object&&global},94645:function(e,t,i){"use strict";i.d(t,{Z:()=>a});var n=i(30292),o=i(95688),r=i(54851);let a=function(e){return(0,n.Z)(e,r.Z,o.Z)}},80778:function(e,t,i){"use strict";i.d(t,{Z:()=>a});var n=i(30292),o=i(31491),r=i(27042);let a=function(e){return(0,n.Z)(e,r.Z,o.Z)}},80938:function(e,t,i){"use strict";i.d(t,{Z:()=>g});var n,o=i(84015),r=i(80651).Z["__core-js_shared__"],a=(n=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",s=i(26129),l=i(58436),c=/^\[object .+?Constructor\]$/,d=Object.prototype,u=Function.prototype.toString,h=d.hasOwnProperty,p=RegExp("^"+u.call(h).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");let f=function(e){return!!(0,s.Z)(e)&&(!a||!(a in e))&&((0,o.Z)(e)?p:c).test((0,l.Z)(e))},g=function(e,t){var i=null==e?void 0:e[t];return f(i)?i:void 0}},76351:function(e,t,i){"use strict";i.d(t,{Z:()=>n});let n=(0,i(25886).Z)(Object.getPrototypeOf,Object)},95688:function(e,t,i){"use strict";i.d(t,{Z:()=>s});let n=function(e,t){for(var i=-1,n=null==e?0:e.length,o=0,r=[];++i<n;){var a=e[i];t(a,i,e)&&(r[o++]=a)}return r};var o=i(91758),r=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols;let s=a?function(e){return null==e?[]:n(a(e=Object(e)),function(t){return r.call(e,t)})}:o.Z},31491:function(e,t,i){"use strict";i.d(t,{Z:()=>s});var n=i(3240),o=i(76351),r=i(95688),a=i(91758);let s=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)(0,n.Z)(t,(0,r.Z)(e)),e=(0,o.Z)(e);return t}:a.Z},50560:function(e,t,i){"use strict";i.d(t,{Z:()=>S});var n=i(80938),o=i(80651),r=(0,n.Z)(o.Z,"DataView"),a=i(20843),s=(0,n.Z)(o.Z,"Promise"),l=i(73567),c=(0,n.Z)(o.Z,"WeakMap"),d=i(21452),u=i(58436),h="[object Map]",p="[object Promise]",f="[object Set]",g="[object WeakMap]",m="[object DataView]",v=(0,u.Z)(r),b=(0,u.Z)(a.Z),y=(0,u.Z)(s),w=(0,u.Z)(l.Z),_=(0,u.Z)(c),x=d.Z;(r&&x(new r(new ArrayBuffer(1)))!=m||a.Z&&x(new a.Z)!=h||s&&x(s.resolve())!=p||l.Z&&x(new l.Z)!=f||c&&x(new c)!=g)&&(x=function(e){var t=(0,d.Z)(e),i="[object Object]"==t?e.constructor:void 0,n=i?(0,u.Z)(i):"";if(n)switch(n){case v:return m;case b:return h;case y:return p;case w:return f;case _:return g}return t});let S=x},6625:function(e,t,i){"use strict";i.d(t,{Z:()=>l});var n=i(26129),o=Object.create,r=function(){function e(){}return function(t){if(!(0,n.Z)(t))return{};if(o)return o(t);e.prototype=t;var i=new e;return e.prototype=void 0,i}}(),a=i(76351),s=i(98168);let l=function(e){return"function"!=typeof e.constructor||(0,s.Z)(e)?{}:r((0,a.Z)(e))}},1400:function(e,t,i){"use strict";i.d(t,{Z:()=>o});var n=/^(?:0|[1-9]\d*)$/;let o=function(e,t){var i=typeof e;return!!(t=null==t?0x1fffffffffffff:t)&&("number"==i||"symbol"!=i&&n.test(e))&&e>-1&&e%1==0&&e<t}},99302:function(e,t,i){"use strict";i.d(t,{Z:()=>s});var n=i(94596),o=i(67737),r=i(1400),a=i(26129);let s=function(e,t,i){if(!(0,a.Z)(i))return!1;var s=typeof t;return("number"==s?!!((0,o.Z)(i)&&(0,r.Z)(t,i.length)):"string"==s&&t in i)&&(0,n.Z)(i[t],e)}},90483:function(e,t,i){"use strict";i.d(t,{Z:()=>s});var n=i(3073),o=i(56721),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;let s=function(e,t){if((0,n.Z)(e))return!1;var i=typeof e;return!!("number"==i||"symbol"==i||"boolean"==i||null==e||(0,o.Z)(e))||a.test(e)||!r.test(e)||null!=t&&e in Object(t)}},98168:function(e,t,i){"use strict";i.d(t,{Z:()=>o});var n=Object.prototype;let o=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||n)}},41394:function(e,t,i){"use strict";i.d(t,{Z:()=>s});var n=i(82208),o="object"==typeof exports&&exports&&!exports.nodeType&&exports,r=o&&"object"==typeof module&&module&&!module.nodeType&&module,a=r&&r.exports===o&&n.Z.process;let s=function(){try{var e=r&&r.require&&r.require("util").types;if(e)return e;return a&&a.binding&&a.binding("util")}catch(e){}}()},25886:function(e,t,i){"use strict";i.d(t,{Z:()=>n});let n=function(e,t){return function(i){return e(t(i))}}},51875:function(e,t,i){"use strict";i.d(t,{Z:()=>r});let n=function(e,t,i){switch(i.length){case 0:return e.call(t);case 1:return e.call(t,i[0]);case 2:return e.call(t,i[0],i[1]);case 3:return e.call(t,i[0],i[1],i[2])}return e.apply(t,i)};var o=Math.max;let r=function(e,t,i){return t=o(void 0===t?e.length-1:t,0),function(){for(var r=arguments,a=-1,s=o(r.length-t,0),l=Array(s);++a<s;)l[a]=r[t+a];a=-1;for(var c=Array(t+1);++a<t;)c[a]=r[a];return c[t]=i(l),n(e,this,c)}}},80651:function(e,t,i){"use strict";i.d(t,{Z:()=>r});var n=i(82208),o="object"==typeof self&&self&&self.Object===Object&&self;let r=n.Z||o||Function("return this")()},54428:function(e,t,i){"use strict";i.d(t,{Z:()=>n});let n=function(e){var t=-1,i=Array(e.size);return e.forEach(function(e){i[++t]=e}),i}},23143:function(e,t,i){"use strict";i.d(t,{Z:()=>c});var n,o,r=i(89445),a=i(85627),s=r.Z?function(e,t){return(0,r.Z)(e,"toString",{configurable:!0,enumerable:!1,value:function(){return t},writable:!0})}:a.Z,l=Date.now;let c=(n=0,o=0,function(){var e=l(),t=16-(e-o);if(o=e,t>0){if(++n>=800)return arguments[0]}else n=0;return s.apply(void 0,arguments)})},32452:function(e,t,i){"use strict";i.d(t,{Z:()=>r});var n=i(56721),o=1/0;let r=function(e){if("string"==typeof e||(0,n.Z)(e))return e;var t=e+"";return"0"==t&&1/e==-o?"-0":t}},58436:function(e,t,i){"use strict";i.d(t,{Z:()=>o});var n=Function.prototype.toString;let o=function(e){if(null!=e){try{return n.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},2840:function(e,t,i){"use strict";i.d(t,{Z:()=>r});var n=i(88521),o=i(22273);let r=(0,i(53238).Z)(function(e,t,i){var r;return t=t.toLowerCase(),e+(i?(r=t,(0,o.Z)((0,n.Z)(r).toLowerCase())):t)})},82164:function(e,t,i){"use strict";i.d(t,{Z:()=>o});var n=i(20157);let o=function(e,t,i){var o,r,a;return void 0===i&&(i=t,t=void 0),void 0!==i&&(i=(i=(0,n.Z)(i))==i?i:0),void 0!==t&&(t=(t=(0,n.Z)(t))==t?t:0),o=(0,n.Z)(e),r=t,a=i,o==o&&(void 0!==a&&(o=o<=a?o:a),void 0!==r&&(o=o>=r?o:r)),o}},91229:function(e,t,i){"use strict";i.d(t,{Z:()=>c});var n=i(26129),o=i(80651);let r=function(){return o.Z.Date.now()};var a=i(20157),s=Math.max,l=Math.min;let c=function(e,t,i){var o,c,d,u,h,p,f=0,g=!1,m=!1,v=!0;if("function"!=typeof e)throw TypeError("Expected a function");function b(t){var i=o,n=c;return o=c=void 0,f=t,u=e.apply(n,i)}function y(e){var i=e-p,n=e-f;return void 0===p||i>=t||i<0||m&&n>=d}function w(){var e,i,n,o=r();if(y(o))return _(o);h=setTimeout(w,(e=o-p,i=o-f,n=t-e,m?l(n,d-i):n))}function _(e){return(h=void 0,v&&o)?b(e):(o=c=void 0,u)}function x(){var e,i=r(),n=y(i);if(o=arguments,c=this,p=i,n){if(void 0===h)return f=e=p,h=setTimeout(w,t),g?b(e):u;if(m)return clearTimeout(h),h=setTimeout(w,t),b(p)}return void 0===h&&(h=setTimeout(w,t)),u}return t=(0,a.Z)(t)||0,(0,n.Z)(i)&&(g=!!i.leading,d=(m="maxWait"in i)?s((0,a.Z)(i.maxWait)||0,t):d,v="trailing"in i?!!i.trailing:v),x.cancel=function(){void 0!==h&&clearTimeout(h),f=0,o=p=c=h=void 0},x.flush=function(){return void 0===h?u:_(r())},x}},94596:function(e,t,i){"use strict";i.d(t,{Z:()=>n});let n=function(e,t){return e===t||e!=e&&t!=t}},74590:function(e,t,i){"use strict";i.d(t,{Z:()=>o});var n=i(27796);let o=function(e){return(null==e?0:e.length)?(0,n.Z)(e,1):[]}},94904:function(e,t,i){"use strict";i.d(t,{Z:()=>o});var n=i(80954);let o=function(e,t,i){var o=null==e?void 0:(0,n.Z)(e,t);return void 0===o?i:o}},8986:function(e,t,i){"use strict";i.d(t,{Z:()=>u});let n=function(e,t){return null!=e&&t in Object(e)};var o=i(34542),r=i(75266),a=i(3073),s=i(1400),l=i(97830),c=i(32452);let d=function(e,t,i){t=(0,o.Z)(t,e);for(var n=-1,d=t.length,u=!1;++n<d;){var h=(0,c.Z)(t[n]);if(!(u=null!=e&&i(e,h)))break;e=e[h]}return u||++n!=d?u:!!(d=null==e?0:e.length)&&(0,l.Z)(d)&&(0,s.Z)(h,d)&&((0,a.Z)(e)||(0,r.Z)(e))},u=function(e,t){return null!=e&&d(e,t,n)}},85627:function(e,t,i){"use strict";i.d(t,{Z:()=>n});let n=function(e){return e}},75266:function(e,t,i){"use strict";i.d(t,{Z:()=>c});var n=i(21452),o=i(32398);let r=function(e){return(0,o.Z)(e)&&"[object Arguments]"==(0,n.Z)(e)};var a=Object.prototype,s=a.hasOwnProperty,l=a.propertyIsEnumerable;let c=r(function(){return arguments}())?r:function(e){return(0,o.Z)(e)&&s.call(e,"callee")&&!l.call(e,"callee")}},3073:function(e,t,i){"use strict";i.d(t,{Z:()=>n});let n=Array.isArray},67737:function(e,t,i){"use strict";i.d(t,{Z:()=>r});var n=i(84015),o=i(97830);let r=function(e){return null!=e&&(0,o.Z)(e.length)&&!(0,n.Z)(e)}},4339:function(e,t,i){"use strict";i.d(t,{Z:()=>s});var n=i(80651),o="object"==typeof exports&&exports&&!exports.nodeType&&exports,r=o&&"object"==typeof module&&module&&!module.nodeType&&module,a=r&&r.exports===o?n.Z.Buffer:void 0;let s=(a?a.isBuffer:void 0)||function(){return!1}},28579:function(e,t,i){"use strict";i.d(t,{Z:()=>o});var n=i(28077);let o=function(e,t){return(0,n.Z)(e,t)}},84015:function(e,t,i){"use strict";i.d(t,{Z:()=>r});var n=i(21452),o=i(26129);let r=function(e){if(!(0,o.Z)(e))return!1;var t=(0,n.Z)(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},97830:function(e,t,i){"use strict";i.d(t,{Z:()=>n});let n=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=0x1fffffffffffff}},7456:function(e,t,i){"use strict";i.d(t,{Z:()=>n});let n=function(e){return null==e}},82822:function(e,t,i){"use strict";i.d(t,{Z:()=>r});var n=i(21452),o=i(32398);let r=function(e){return"number"==typeof e||(0,o.Z)(e)&&"[object Number]"==(0,n.Z)(e)}},26129:function(e,t,i){"use strict";i.d(t,{Z:()=>n});let n=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},32398:function(e,t,i){"use strict";i.d(t,{Z:()=>n});let n=function(e){return null!=e&&"object"==typeof e}},64275:function(e,t,i){"use strict";i.d(t,{Z:()=>d});var n=i(21452),o=i(76351),r=i(32398),a=Object.prototype,s=Function.prototype.toString,l=a.hasOwnProperty,c=s.call(Object);let d=function(e){if(!(0,r.Z)(e)||"[object Object]"!=(0,n.Z)(e))return!1;var t=(0,o.Z)(e);if(null===t)return!0;var i=l.call(t,"constructor")&&t.constructor;return"function"==typeof i&&i instanceof i&&s.call(i)==c}},88514:function(e,t,i){"use strict";i.d(t,{Z:()=>a});var n=i(21452),o=i(3073),r=i(32398);let a=function(e){return"string"==typeof e||!(0,o.Z)(e)&&(0,r.Z)(e)&&"[object String]"==(0,n.Z)(e)}},56721:function(e,t,i){"use strict";i.d(t,{Z:()=>r});var n=i(21452),o=i(32398);let r=function(e){return"symbol"==typeof e||(0,o.Z)(e)&&"[object Symbol]"==(0,n.Z)(e)}},77407:function(e,t,i){"use strict";i.d(t,{Z:()=>d});var n=i(21452),o=i(97830),r=i(32398),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1;var s=i(94421),l=i(41394),c=l.Z&&l.Z.isTypedArray;let d=c?(0,s.Z)(c):function(e){return(0,r.Z)(e)&&(0,o.Z)(e.length)&&!!a[(0,n.Z)(e)]}},54851:function(e,t,i){"use strict";i.d(t,{Z:()=>c});var n=i(64464),o=i(98168),r=(0,i(25886).Z)(Object.keys,Object),a=Object.prototype.hasOwnProperty;let s=function(e){if(!(0,o.Z)(e))return r(e);var t=[];for(var i in Object(e))a.call(e,i)&&"constructor"!=i&&t.push(i);return t};var l=i(67737);let c=function(e){return(0,l.Z)(e)?(0,n.Z)(e):s(e)}},27042:function(e,t,i){"use strict";i.d(t,{Z:()=>d});var n=i(64464),o=i(26129),r=i(98168);let a=function(e){var t=[];if(null!=e)for(var i in Object(e))t.push(i);return t};var s=Object.prototype.hasOwnProperty;let l=function(e){if(!(0,o.Z)(e))return a(e);var t=(0,r.Z)(e),i=[];for(var n in e)"constructor"==n&&(t||!s.call(e,n))||i.push(n);return i};var c=i(67737);let d=function(e){return(0,c.Z)(e)?(0,n.Z)(e,!0):l(e)}},90437:function(e,t,i){"use strict";i.d(t,{Z:()=>n});let n=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},65430:function(e,t,i){"use strict";i.d(t,{Z:()=>a});var n=i(27014);let o=function(e,t){return e>t};var r=i(85627);let a=function(e){return e&&e.length?(0,n.Z)(e,r.Z,o):void 0}},40172:function(e,t,i){"use strict";i.d(t,{Z:()=>E});var n,o=i(53146),r=i(23454),a=i(94596);let s=function(e,t,i){(void 0===i||(0,a.Z)(e[t],i))&&(void 0!==i||t in e)||(0,r.Z)(e,t,i)};var l=i(89357),c=i(83712),d=i(70980),u=i(91481),h=i(6625),p=i(75266),f=i(3073),g=i(67737),m=i(32398),v=i(4339),b=i(84015),y=i(26129),w=i(64275),_=i(77407);let x=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]};var S=i(45169),C=i(27042);let k=function(e,t,i,n,o,r,a){var l=x(e,i),k=x(t,i),I=a.get(k);if(I)return void s(e,i,I);var A=r?r(l,k,i+"",e,t,a):void 0,T=void 0===A;if(T){var E=(0,f.Z)(k),R=!E&&(0,v.Z)(k),D=!E&&!R&&(0,_.Z)(k);(A=k,E||R||D)?(0,f.Z)(l)?A=l:(0,m.Z)(l)&&(0,g.Z)(l)?A=(0,u.Z)(l):R?(T=!1,A=(0,c.Z)(k,!0)):D?(T=!1,A=(0,d.Z)(k,!0)):A=[]:(0,w.Z)(k)||(0,p.Z)(k)?(A=l,(0,p.Z)(l))?A=(0,S.Z)(l,(0,C.Z)(l)):(!(0,y.Z)(l)||(0,b.Z)(l))&&(A=(0,h.Z)(k)):T=!1}T&&(a.set(k,A),o(A,k,n,r,a),a.delete(k)),s(e,i,A)},I=function e(t,i,n,r,a){t!==i&&(0,l.Z)(i,function(l,c){if(a||(a=new o.Z),(0,y.Z)(l))k(t,i,c,n,e,r,a);else{var d=r?r(x(t,c),l,c+"",t,i,a):void 0;void 0===d&&(d=l),s(t,c,d)}},C.Z)};var A=i(11021),T=i(99302);let E=(n=function(e,t,i){I(e,t,i)},(0,A.Z)(function(e,t){var i=-1,o=t.length,r=o>1?t[o-1]:void 0,a=o>2?t[2]:void 0;for(r=n.length>3&&"function"==typeof r?(o--,r):void 0,a&&(0,T.Z)(t[0],t[1],a)&&(r=o<3?void 0:r,o=1),e=Object(e);++i<o;){var s=t[i];s&&n(e,s,i,r)}return e}))},21944:function(e,t,i){"use strict";i.d(t,{Z:()=>a});var n=i(27014);let o=function(e,t){return e<t};var r=i(85627);let a=function(e){return e&&e.length?(0,n.Z)(e,r.Z,o):void 0}},27187:function(e,t,i){"use strict";i.d(t,{Z:()=>m});var n=i(75952),o=i(10834),r=i(34542),a=i(90437),s=i(80954),l=i(6665),c=i(32452);let d=function(e,t){var i,n;return t=(0,r.Z)(t,e),i=e,null==(e=(n=t).length<2?i:(0,s.Z)(i,(0,l.Z)(n,0,-1)))||delete e[(0,c.Z)((0,a.Z)(t))]};var u=i(45169),h=i(64275);let p=function(e){return(0,h.Z)(e)?void 0:e};var f=i(48826),g=i(80778);let m=(0,f.Z)(function(e,t){var i={};if(null==e)return i;var a=!1;t=(0,n.Z)(t,function(t){return t=(0,r.Z)(t,e),a||(a=t.length>1),t}),(0,u.Z)(e,(0,g.Z)(e),i),a&&(i=(0,o.Z)(i,7,p));for(var s=t.length;s--;)d(i,t[s]);return i})},99067:function(e,t,i){"use strict";i.d(t,{Z:()=>r});var n=i(63519),o=i(8986);let r=(0,i(48826).Z)(function(e,t){return null==e?{}:(0,n.Z)(e,t,function(t,i){return(0,o.Z)(e,i)})})},33158:function(e,t,i){"use strict";i.d(t,{Z:()=>l});var n=Math.ceil,o=Math.max;let r=function(e,t,i,r){for(var a=-1,s=o(n((t-e)/(i||1)),0),l=Array(s);s--;)l[r?s:++a]=e,e+=i;return l};var a=i(99302),s=i(77622);let l=function(e,t,i){return i&&"number"!=typeof i&&(0,a.Z)(e,t,i)&&(t=i=void 0),e=(0,s.Z)(e),void 0===t?(t=e,e=0):t=(0,s.Z)(t),i=void 0===i?e<t?1:-1:(0,s.Z)(i),r(e,t,i,void 0)}},8771:function(e,t,i){"use strict";i.d(t,{Z:()=>n});let n=(0,i(53238).Z)(function(e,t,i){return e+(i?"_":"")+t.toLowerCase()})},65611:function(e,t,i){"use strict";i.d(t,{Z:()=>r});var n=i(94353),o=i(35351);let r=function(e,t,i){return(0,o.Z)(e,t,(0,n.Z)(i,2))}},91758:function(e,t,i){"use strict";i.d(t,{Z:()=>n});let n=function(){return[]}},56084:function(e,t,i){"use strict";i.d(t,{Z:()=>r});var n=i(91229),o=i(26129);let r=function(e,t,i){var r=!0,a=!0;if("function"!=typeof e)throw TypeError("Expected a function");return(0,o.Z)(i)&&(r="leading"in i?!!i.leading:r,a="trailing"in i?!!i.trailing:a),(0,n.Z)(e,t,{leading:r,maxWait:t,trailing:a})}},77622:function(e,t,i){"use strict";i.d(t,{Z:()=>r});var n=i(20157),o=1/0;let r=function(e){return e?(e=(0,n.Z)(e))===o||e===-o?(e<0?-1:1)*17976931348623157e292:e==e?e:0:0===e?e:0}},20157:function(e,t,i){"use strict";i.d(t,{Z:()=>p});var n=/\s/;let o=function(e){for(var t=e.length;t--&&n.test(e.charAt(t)););return t};var r=/^\s+/,a=i(26129),s=i(56721),l=0/0,c=/^[-+]0x[0-9a-f]+$/i,d=/^0b[01]+$/i,u=/^0o[0-7]+$/i,h=parseInt;let p=function(e){if("number"==typeof e)return e;if((0,s.Z)(e))return l;if((0,a.Z)(e)){var t,i="function"==typeof e.valueOf?e.valueOf():e;e=(0,a.Z)(i)?i+"":i}if("string"!=typeof e)return 0===e?e:+e;e=(t=e)?t.slice(0,o(t)+1).replace(r,""):t;var n=d.test(e);return n||u.test(e)?h(e.slice(2),n?2:8):c.test(e)?l:+e}},88521:function(e,t,i){"use strict";i.d(t,{Z:()=>u});var n=i(28373),o=i(75952),r=i(3073),a=i(56721),s=1/0,l=n.Z?n.Z.prototype:void 0,c=l?l.toString:void 0;let d=function e(t){if("string"==typeof t)return t;if((0,r.Z)(t))return(0,o.Z)(t,e)+"";if((0,a.Z)(t))return c?c.call(t):"";var i=t+"";return"0"==i&&1/t==-s?"-0":i},u=function(e){return null==e?"":d(e)}},39002:function(e,t,i){"use strict";i.d(t,{Z:()=>o});var n=i(19175);let o=function(e){return e&&e.length?(0,n.Z)(e):[]}},22273:function(e,t,i){"use strict";i.d(t,{Z:()=>b});var n=i(6665);let o=function(e,t,i){var o=e.length;return i=void 0===i?o:i,!t&&i>=o?e:(0,n.Z)(e,t,i)};var r=RegExp("[\\u200d\ud800-\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");let a=function(e){return r.test(e)};var s="\ud800-\udfff",l="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",c="\ud83c[\udffb-\udfff]",d="[^"+s+"]",u="(?:\ud83c[\udde6-\uddff]){2}",h="[\ud800-\udbff][\udc00-\udfff]",p="(?:"+l+"|"+c+")?",f="[\\ufe0e\\ufe0f]?",g="(?:\\u200d(?:"+[d,u,h].join("|")+")"+f+p+")*",m=RegExp(c+"(?="+c+")|"+("(?:"+[d+l+"?",l,u,h,"["+s+"]"].join("|"))+")"+(f+p+g),"g"),v=i(88521);let b=function(e){var t,i=a(e=(0,v.Z)(e))?a(t=e)?t.match(m)||[]:t.split(""):void 0,n=i?i[0]:e.charAt(0),r=i?o(i,1).join(""):e.slice(1);return n.toUpperCase()+r}}},function(e){e(e.s=80686)}]);