@mescius/spread-sheets-tablesheet 17.1.4 → 17.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
*
|
|
3
|
-
* SpreadJS Library 17.1.
|
|
3
|
+
* SpreadJS Library 17.1.5
|
|
4
4
|
*
|
|
5
5
|
* Copyright(c) MESCIUS inc. All rights reserved.
|
|
6
6
|
*
|
|
@@ -9,4 +9,4 @@
|
|
|
9
9
|
* https://developer.mescius.com/spreadjs
|
|
10
10
|
*
|
|
11
11
|
*/
|
|
12
|
-
!function(t){"object"==typeof module&&"object"==typeof module.exports?module.exports=t(require("@mescius/spread-sheets")):"function"==typeof define&&define.amd?define(["@mescius/spread-sheets"],t):"object"==typeof exports?exports.Spread=t(require("@mescius/spread-sheets")):t(GC)}(function(e){!function(){"use strict";var n,i,t;function o(t){var e,e,e=i[t];return void 0!==e||(e=i[t]={exports:{}},n[t].call(e.exports,e,e.exports,o)),e.exports}n={"./dist/plugins/tableSheet/actionColumn.js":function(t,e,n){var i,o;function u(t){this.LEt={visible:!1,title:"Actions",width:210,actionButtons:{remove:{visible:!0,title:"Remove",icon:i.ButtonImageType.minus},save:{visible:!0,title:"Save",icon:i.ButtonImageType.ok},reset:{visible:!0,title:"Reset",icon:i.ButtonImageType.clear}},headerStyle:null},this.hce=t}Object.defineProperty(e,"__esModule",{value:!0}),e.ActionColumn=void 0,i=n("Core"),u.prototype.options=function(t){var e;if(!t)return this.LEt;e=this.LEt,this.LEt=t,this.hce(e,t)},u.prototype.toJSON=function(){return this.LEt},u.prototype.fromJSON=function(t){this.LEt=t},e.ActionColumn=u},"./dist/plugins/tableSheet/arrayFunction.js":function(t,e,n){var i,e,n;Object.defineProperty(e,"__esModule",{value:!0}),(i=n("CalcEngine")).Functions.findGlobalFunction(e="CONVERTARRAY")||((n=new i.Functions.Function(e,1,255)).evaluate=function(){var t=[].slice.apply(arguments);return new i.CalcArray([t])},i.Functions.defineGlobalCustomFunction(e,n))},"./dist/plugins/tableSheet/data.dataManager.js":function(t,e,n){var e,i,o,c,s,u,a;function l(t){return t instanceof Function}function r(){}Object.defineProperty(e,"__esModule",{value:!0}),e=n("Bindings"),i=n("Common"),o=n("DataManager"),c=i.Common.lt.ht,s=null,u=void 0,r.prototype.isDataSource=function(t){return o&&o.isView&&o.isView(t)},r.prototype.getDataLength=function(t){return t.visibleLength()},r.prototype.getDataItem=function(t,e,n){var i;return e<0?s:(i=u,n&&((i={})[n]=1),t.getRowData(e,u,i))},r.prototype.addItems=function(t,e,n,i,o){},r.prototype.removeItems=function(t,e,n,i){var o=this.getDataLength(t);i()},r.prototype.undoRemoveItems=function(t,e,n){},r.prototype.getProperties=function(t){var t=this.getDataItem(t,0);return t?Object.keys(t):[]},r.prototype.getValue=function(t,e,n,i,o,u){var e,o,a,t,r,o=t.getColumn(o);return o?(a=s,t=t._ve(i,o),r=!1,c(t)||(r=!0,e&&l(e)&&(t=e(((e={})[n]=t,e))),a=u?u(o,i,t):t),{value:a,hasBinding:r}):{value:s,hasBinding:!0}},r.prototype.setValue=function(t,e,n,i,o,u,a){},r.prototype.allowSetCount=function(){return!0},r.prototype.canAdd=function(){return!0},r.prototype.canInsert=function(){return!1},r.prototype.fromJSON=function(t){return t},r.prototype.toJSON=function(t){return t},e.X$.dataManagerBindingSource=new r},"./dist/plugins/tableSheet/overr-write-worksheet.js":function(t,e,n){var i,n,o,u,a;function r(t){return void 0===t}function c(t,e,n){var t=a.call(this,t)||this;return t.NMi=e,t.ize=n,t}i=this&&this.__extends||(u=function(t,e){return(u=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}u(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),Object.defineProperty(e,"__esModule",{value:!0}),e.OverWriteWorkSheet=void 0,n=n("Core"),a=n.Worksheet,i(c,a),c.prototype.Mtt=function(t){this.oze(t)?this.ize.undo(t):a.prototype.Mtt.call(this,t)},c.prototype.VAe=function(){a.prototype.VAe.call(this),this.ize.startTransaction()},c.prototype.zAe=function(){var t,e,t=a.prototype.zAe.call(this),e=this.ize.endTransaction();return 0<(null==e?void 0:e.length)?e:t},c.prototype.qWe=function(){return!r(this.$We)},c.prototype.zHe=function(){this.$We={}},c.prototype.ZHe=function(){this.QHe(),this.$We=void 0},c.prototype.YHe=function(t){r(this.$We[t])&&(this.$We[t]=!0)},c.prototype.QHe=function(){if(this.$We)for(var t in this.$We)this.$We[t]&&this.NMi.iM(void 0,t)},c.prototype.oze=function(t){var t=null==t?void 0:t[0];return!(null==t||!t.sourceType)},e.OverWriteWorkSheet=c},"./dist/plugins/tableSheet/tableSheet-action.js":function(Z,t,e){var n,o,e,r,e,e,U,G,B,R,P,Q,Y,W,H,V,F,_,J,X,K,i,u,a,c,s,l,f,d,h,g,b,v,M,I,m,N,D;function j(){return null!==u&&u.apply(this,arguments)||this}function C(){return null!==a&&a.apply(this,arguments)||this}function w(){return null!==c&&c.apply(this,arguments)||this}function p(){return null!==s&&s.apply(this,arguments)||this}function x(){return null!==l&&l.apply(this,arguments)||this}function y(){return null!==f&&f.apply(this,arguments)||this}function A(){return null!==d&&d.apply(this,arguments)||this}function T(){return null!==h&&h.apply(this,arguments)||this}function S(){return null!==g&&g.apply(this,arguments)||this}function z(){return null!==b&&b.apply(this,arguments)||this}function L(){return null!==v&&v.apply(this,arguments)||this}function O(){return null!==M&&M.apply(this,arguments)||this}function k(){return null!==I&&I.apply(this,arguments)||this}function q(){return null!==m&&m.apply(this,arguments)||this}function $(){return null!==N&&N.apply(this,arguments)||this}function E(){return null!==D&&D.apply(this,arguments)||this}function tt(t,e){var n,i,o,n=e.getDataView();n&&(i=e.Mf.rowFilter(),(o=e.TLt(n,t,t))&&(e.EPt(),i.UIi()),e.Mf.rowFilter().VIi(t),n.sUe(t),o&&(i.QIi(),e.jPt()),e.restoreView(e.getDataView()))}n=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),Object.defineProperty(t,"__esModule",{value:!0}),t.TableSheetRemoveColumnInfoAction=t.TableSheetResertViewAction=t.ViewGroupOptionsAction=t.ViewMoveColumnAction=t.ViewAddColumnInfoAction=t.ViewRemoveColumnInfoAction=t.ViewUpdateColumnInfoAction=t.DefineColumnToTableAction=t.RemoveColumnToTableAction=t.ModifyColumnToTableAction=t.ExpandGroupItemAction=t.ExpandGroupAction=t.RemoveRowAction=t.PinRowAction=t.ResetRowAction=t.TableSheetActionBase=void 0,o=e("Core"),e=e("Common"),r=e.Common.lt.ht,e=o.Commands.ActionBase,n(j,u=e),Object.defineProperty(j.prototype,"sheet",{get:function(){return this.Mf},enumerable:!1,configurable:!0}),Object.defineProperty(j.prototype,"sheetTab",{get:function(){return this.sheet.NMi},enumerable:!1,configurable:!0}),j.prototype.execute=function(){var t,e,n,i,t=this,e=!1;if(t.canExecute()){i=(n=t.sheet).parent.i4(),o.Commands.II(i),t.X5(n,!0);try{"boolean"!=typeof(e=this.uze())&&(e=!0)}finally{t.q5(n,!0),o.Commands.xI(i,t.tT)}}return e},j.prototype.undo=function(){var t,e,n,i,t=this,e=t.sheet,n=!1;if(t.canUndo()){t.X5(e,!0);try{i=e.parent.i4(),t.aze(),o.Commands.NI(i,t.tT),this.cze(),n=!0}finally{t.q5(e,!0)}}return n},j.prototype.aze=function(){},j.prototype.cze=function(){},t.TableSheetActionBase=e=j,n(C,a=e),C.prototype.uze=function(){var t=this.tT,e=t.tableSheet,t=t.index;e.Mf.ki(o.Events.RowOperation,{sheet:e,sheetName:e.name(),actionType:2,row:t}),e.resetRow(t)},t.ResetRowAction=C,n(w,c=e),w.prototype.uze=function(){var t=this.tT,e=t.tableSheet,t=t.index;e.togglePinnedRows([t])},t.PinRowAction=w,n(p,s=e),p.prototype.uze=function(){var t=this.tT,e=t.tableSheet,t=t.index;e.Mf.ki(o.Events.RowOperation,{sheet:e,sheetName:e.name(),actionType:0,row:t}),e.removeRow(t)},t.RemoveRowAction=p,n(x,l=e),x.prototype.uze=function(){var t,e,t,n,e,t=this,e=t.tT,t=t.sheetTab,n=e.field,e=e.expand;t.expandGroup(n,e)},t.ExpandGroupAction=x,n(y,f=e),y.prototype.uze=function(){var t,e,t,n,i,e,t=this,e=t.tT,t=t.sheetTab,n=e.level,i=e.index,e=e.expand;t.expandGroupItem(n,i,e)},t.ExpandGroupItemAction=y,n(A,d=e),A.prototype.uze=function(){var t,e,t,n,i,e,t=this,e=t.tT,t=t.sheetTab,n=e.column,i=e.originalColumn,e=e.col;return t.yBe(e,n,i)},A.prototype.cze=function(){var t;this.sheetTab.refreshBindColumns()},t.ModifyColumnToTableAction=A,n(T,h=e),T.prototype.uze=function(){var t,e,t,n,e,t=this,e=t.tT,t=t.sheetTab,n=e.column,e=e.col;return t.gBe(e,n)},T.prototype.cze=function(){var t;this.sheetTab.refreshBindColumns()},t.RemoveColumnToTableAction=T,n(S,g=e),S.prototype.uze=function(){var t,e,t,n,e,t=this,e=t.tT,t=t.sheetTab,n=e.column,e=e.col;return t.cBe(e,n)},S.prototype.cze=function(){var t;this.sheetTab.refreshBindColumns()},t.DefineColumnToTableAction=S,n(z,b=e),z.prototype.uze=function(){var t,e,t,e,n,o,i,t=this,e=t.tT,t=t.sheetTab,e=e.columnInfos,n=t.getDataView(),o=n.getColumnInfos(),i=t.sze(!0)&&e.some(function(e){var t,n,i,t=!1!==e.visible,n=o.find(function(t){return t.value===e.value});return!(!n||t==(!1!==n.visible))});i&&t.ize.startAddComboChanges(),e.forEach(function(t){n.updateColumn(t)}),t.refreshBindColumns(),i&&(t.lze(),t.ize.endAddComboChanges())},z.prototype.cze=function(){var t;this.sheetTab.refreshBindColumns()},t.ViewUpdateColumnInfoAction=z,n(L,v=e),L.prototype.uze=function(){var t,e,t,e,n,t=this,e=t.tT,t=t.sheetTab,e=e.value,n=t.getDataView();t.ize.startAddComboChanges(),n.removeColumn(e),t.refreshBindColumns(),t.lze(),t.ize.endAddComboChanges()},L.prototype.cze=function(){var t;this.sheetTab.refreshBindColumns()},t.ViewRemoveColumnInfoAction=L,n(O,M=e),O.prototype.uze=function(){var t,e,t,e,n,t=this,e=t.tT,t=t.sheetTab,e=e.columnInfo,n;t.getDataView().addColumn(e),t.refreshBindColumns()},O.prototype.cze=function(){var t;this.sheetTab.refreshBindColumns()},t.ViewAddColumnInfoAction=O,n(k,I=e),k.prototype.uze=function(){var t,e,t,n,i,o,u,e,a,t=this,e=t.tT,t=t.sheetTab,n=e.fromColumnOptionIndex,i=e.toColumnOptionIndex,o=e.fromColumnIndex,u=e.toColumnIndex,e=e.count,a=!0;!(a=r(n)||r(i)?a:!t.DPt(n,i))||r(o)||r(u)||r(e)||t.OPt(o,u,e)},t.ViewMoveColumnAction=k,n(q,m=e),q.prototype.uze=function(){var t,e,t,e,t=this,e=t.tT,t=t.sheetTab,e=e.groupOptions;0<(null==e?void 0:e.length)?t.groupBy(e):t.removeGroupBy()},t.ViewGroupOptionsAction=q,n($,N=e),$.prototype.uze=function(){var t,e,t,e,n,i,e,t=this,e=t.tT,t=t.sheetTab,e=e.newConfig,n=e.columnInfoOptions,i=e.includeDefaultColumns,e=e.options;t.resetNewView(n,i,e)},t.TableSheetResertViewAction=$,n(E,D=e),E.prototype.uze=function(){var t,e,t,n,t=this,e=t.tT,t=t.sheetTab,n;tt(e.index,t)},E.prototype.cze=function(){var t=this.sheetTab;t.restoreView(t.getDataView())},t.TableSheetRemoveColumnInfoAction=E},"./dist/plugins/tableSheet/tableSheet-grouping.js":function(b,t,e){var n,u,Z,U,v,o,G,B,R,A,_,T,M,I,m,N,D,J,j,S,C,a,P,w,e,r,z,L,X,x,y,K,O,k,d,q,$,tt,p,Q;function Y(t){return void 0===t}function et(t,e){return T(t)&&(t=Number.MIN_VALUE),T(e)&&(e=Number.MIN_VALUE),A(t,e)}function W(t){return E(t)||H(t)}function E(t){return t===U.GroupLayoutMode.outline}function H(t){return t===U.GroupLayoutMode.condensed}function nt(t,e){var n,i;return t?(i=t.headerStyle&&!!t.headerStyle.formatter,n=st(t.headerStyle,e),i||(n.formatter=B)):(n=e.clone()).formatter=B,n}function it(t,e){return t?st(t.style,e):e}function ot(t){var e=new Z.Style;return Y(t.backColor)||(e.backColor=t.backColor),Y(t.foreColor)||(e.foreColor=t.foreColor),Y(t.font)||(e.font=t.font),Y(t.themeFont)||(e.themeFont=t.themeFont),Y(t.cellPadding)||(e.cellPadding=t.cellPadding),e}function ut(t){return at(t.value,t.caption)}function at(t,e){return T(t)?B:e?"".concat(e).concat((0,G.getSR)().TextColon," ").concat(t):""+t}function rt(t){return ct(t.value,t.field)}function ct(t,e){return T(t)?""+e:"".concat(e).concat((0,G.getSR)().TextColon," ").concat(t)}function V(t,e,n){var t,t=t instanceof Z.Style?t.clone():new Z.Style(t);return Y(t.foreColor)&&n&&!Y(n.foreColor)&&(t.foreColor=n.foreColor),e&&t.v5(e),t}function st(t,e){var t;return t&&(t=V(t),e&&t.compose(e),e=t),e&&(delete e.cellButtons,delete e.dropDowns),e}function F(t,e){return t.hAlign===Z.HorizontalAlign.general||T(t.hAlign)?e:t.hAlign}function lt(t,e,n){var i,o;for(o in t=t||{},i=e[n])i.hasOwnProperty(o)&&T(t[o])&&(t[o]=u(u({},i[o]),{value:e.value}));return t}function ft(t,e,n){var i,o,u;for(o in t)t.hasOwnProperty(o)&&((u=t[o])[e]&&(i=lt(i,u,e)),n)&&(i=lt(i,u));return i}function dt(t,e){var n,i,o,u,a,r;for(n in t)"parent"!==n&&"children"!==n&&(e[n]=t[n]);for(e.children=[],o=0,u=i=t.children;o<u.length;o++)a=u[o],e.children.push(r={}),dt(a,r)}function ht(t){for(var e,n,i,o,e,n=0,i=t.children;n<i.length;n++)(o=i[n]).parent=t,ht(o)}function gt(t,e){var n,i,o,u,a,r,c,n=!0,i=t.start===e.start&&t.end===e.end,o=t.children.length===e.children.length;if(i&&o)for(u=t.children.length,a=0;a<u&&!1!==(n=gt(r=t.children[a],c=e.children[a]));a++);else n=!1;return n}function bt(t){return t&&t.row&&"number"==typeof t.row&&0<t.row?t.row:B}function vt(t){var t,t,t,e,t,e=0,t=null==(t=null==(t=null==(t=null==t?void 0:t.cellNode)?void 0:t.field)?void 0:t.extra)?void 0:t.spacing;return e=t?bt(t):e}function i(){}function c(){return null!==O&&O.apply(this,arguments)||this}function Mt(){return null!==k&&k.apply(this,arguments)||this}function It(t,e,n){for(var i,o,u,a,r,i,a=t.getRowCount(Z.SheetArea.colHeader)-1;0<=a;a--){if(r=t.getValue(a,n,Z.SheetArea.colHeader),T(o))o=r;else if(o!==r)break;u=a}return e===u}function s(){var t=d.call(this)||this;return t.typeName="98",t}function mt(){return q.call(this)||this}function l(){var t=$.call(this)||this;return t.typeName="99",t}function Nt(){var t=tt.call(this)||this;return t.typeName="108",t}function Dt(){var t=p.call(this)||this;return t.fze=U.GroupLayoutMode.outline,t.dze=!1,t.typeName="109",t}function f(){var t=Q.call(this)||this;return t.fze=U.GroupLayoutMode.outline,t.typeName="110",t}function h(){this.tMi=U.GroupOutlinePosition.groupCell,this.GY=U.GroupLayoutMode.tabular,this.hze=M}function g(){this._data=new I,this._ui=new x}n=this&&this.__extends||(K=function(t,e){return(K=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}K(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),u=this&&this.__assign||function(){return(u=Object.assign||function(t){for(var e,n,i,o,n=1,i=arguments.length;n<i;n++)for(o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},Object.defineProperty(t,"__esModule",{value:!0}),t.Grouping=t.nMi=t.getHorizontalAlign=t.getGroupHeaderValueFromCondensed=t.getValueFromCondensed=t.composeValueStyle=t.composeHeaderStyle=t.isGroupCondensedLayout=t.isGroupOutlineLayout=t.isGroupOutlineCondensedLayout=void 0,Z=e("Core"),U=e("./dist/plugins/tableSheet/tableSheet.interface.js"),v=e("Common"),o=e("./dist/plugins/tableSheet/tablesheet-command.js"),G=e("./dist/plugins/tableSheet/tableSheet.js"),B=void 0,R=Math.round,A=Math.max,_=Math.ceil,T=v.Common.lt.ht,M={position:"header"},t.isGroupOutlineCondensedLayout=W,t.isGroupOutlineLayout=E,t.isGroupCondensedLayout=H,t.composeHeaderStyle=nt,t.composeValueStyle=it,t.getValueFromCondensed=ut,t.getGroupHeaderValueFromCondensed=rt,t.getHorizontalAlign=F,i.prototype.Hc=function(t,e){var e,n,i,e={level:-1,collapsed:!1,children:[],parent:B,start:0,end:e},n=0,i=0;this.eMi(t,0,0,e),this.oMi&&this.zJe(this.oMi,e),this.oMi=e},i.prototype.eMi=function(t,e,n,i){for(var o,u,a,r,c,s,l,f,d,o=i.children,u,a=0,r=0,c=t.childrenArray&&t.childrenArray[0]||[];r<c.length;r++)l=(s=c[r]).recordRowNumbers,s.childrenArray&&s.childrenArray[0]&&0!==s.childrenArray[0].length?s.childrenArray&&s.childrenArray[0]&&s.childrenArray[0].length&&(f={level:n,value:s.value,collapsed:!1,children:[],parent:i,start:e,end:0,spacingIndex:s.spacingIndex},d=this.eMi(s,e,n+1,f),f.end=e+d-1,o.push(f),e+=d,a+=d):(o.push({start:e,end:e+l.length-1,level:n,collapsed:!1,children:[],parent:i,spacingIndex:s.spacingIndex,value:s.value}),e+=l.length,a+=l.length);return a},i.prototype.zJe=function(t,e){for(var n,i,o,u,a,r,c,s,n=t.children,i,o=0,u=e.children;o<u.length;o++)for(a=u[o],r=0,c=n;r<c.length;r++)if(s=c[r],a.value===s.value){a.collapsed=s.collapsed,this.zJe(s,a);break}},i.prototype.uMi=function(t,e,n,i){for(var o=0;o<t.length;o++)if(t[o].field===e){this.cMi(this.oMi,o,n,i);break}},i.prototype.cMi=function(t,e,n,i){for(var o,u,a,r,o,u=0,a=t.children;u<a.length;u++)r=a[u],this.rMi(r,e,n,i)},i.prototype.rMi=function(t,e,n,i){var o,u,a,r,c;if(t.level===e)t.collapsed!==(o=!n)&&(t.collapsed=o,i)&&i(t.level,t.start);else for(a=0,r=u=t.children;a<r.length;a++)c=r[a],this.rMi(c,e,n,i)},i.prototype.aMi=function(t,e,n,i){var o,u,a,r,c,s,l,o=this.oMi,u=!n;if(o&&o.start<=e&&e<=o.end)for(a=o.children;0<a.length;){for(r=!0,c=0,s=a;c<s.length;c++)if((l=s[c]).start<=e&&e<=l.end){if(l.level===t)return l.collapsed!==u&&i(!l.collapsed),void(l.collapsed=u);a=l.children,r=!1;break}if(r)break}},i.prototype.TWe=function(t){for(t=t.parent;t;){if(t.collapsed)return!0;t=t.parent}return!1},i.prototype.sMi=function(t,e,n,i,o){var u,a,r,c,s,l,f,d,h,g,u=-1,a=this.oMi,r="number"==typeof i;if(a&&a.start+n<=t&&t<=a.end){if(c=a.collapsed,r&&!o&&(c=a.spacingIndex===i&&a.parent&&this.TWe(a)),u<e&&c)return!1;for(s=a.children,u++;0<s.length;){for(l=!0,f=0,d=s;f<d.length;f++)if((h=d[f]).start+n<=t&&t<=h.end){if(g=h.collapsed,r&&!o&&(g=h.spacingIndex===i&&h.parent&&this.TWe(h)),u<e&&g)return!1;s=h.children,u++,l=!1;break}if(l)break}}return!0},i.prototype.MMi=function(t){var e,n,i,o,u,a,r,e=[],n=this.oMi;if(n&&n.start<=t&&t<=n.end)for(i=n.children;0<i.length;){for(o=!0,u=0,a=i;u<a.length;u++)if((r=a[u]).start<=t&&t<=r.end){e.push(r),i=r.children,o=!1;break}if(o)break}return e},i.prototype.IMi=function(t,e){var n,i,o,u,a,r,n=this.oMi;if(n&&n.start<=t&&t<=n.end)for(i=n.children;0<i.length;){for(o=!0,u=0,a=i;u<a.length;u++)if((r=a[u]).start<=t&&t<=r.end){if(r.level===e)return r;i=r.children,o=!1;break}if(o)break}},i.prototype.gMi=function(t){var e,n,i,o,u,a,r,c,s,l,f,d,e=this.oMi;if(!e)return!1;for(n=e.children.slice(0),i=0;i<t;){for(o=[],u=0,a=n;u<a.length;u++)for(c=0,s=(r=a[u]).children;c<s.length;c++)l=s[c],o.push(l);n=o,i++}for(f=0,d=n;f<d.length;f++)if(!(r=d[f]).collapsed)return!1;return!0},i.prototype.L0=function(){this.oMi=B},i.prototype.toJSON=function(){var t;return this.oMi&&(dt(this.oMi,t={}),t)},i.prototype.fromJSON=function(t,e){var n=this.oMi;(e||n&&t&>(this.oMi,t))&&(ht(t),this.oMi=t)},I=i,m=40,N=16,D=4,J=2.5,O=Z.CellTypes.RowHeader,n(c,O),c.prototype.paint=function(t,e,n,i,o,u,a,r){var c,s,l,f,d,h,g,b,v,M,I,m,N,D,j,C,w,p,x,y,A,C,T,S,c=r.sheet,s=r.row,l=c.zoom(),f=16*l,d=4*l,h=J*l,g=c.NMi;if(g)for(M=!(v=W(b=g.gze())),N=(40*(m=(I=g.MMi(s)).length)-16*m)/(m+1)*l,O.prototype.paintValue.call(this,t,e,n,i,o,u,a,r),D=0;D<m;D++)j=I[D],(D!==g.lMi.length-1||g.detailColumnsVisible())&&g.DMi(D,s)&&(t.save(),t.beginPath(),t.strokeStyle="#999999",t.lineWidth=1,w=(C=n+N)+f/2,p=i+u,x=i+u/2,(y=j.start===s)&&M?(A=R(C)-.5,C=R(C+f)-.5,T=R(x-f/2)-.5,S=R(x-f/2+f)-.5,t.moveTo(A,T),t.lineTo(C,T),t.lineTo(C,S),t.lineTo(A,S),t.lineTo(A,T),t.moveTo(R(w-d)-.5,R(x)-.5),t.lineTo(R(w+d)-.5,R(x)-.5),j.collapsed?(t.moveTo(R(w)-.5,R(x-d)-.5),t.lineTo(R(w)-.5,R(x+d)-.5)):(t.moveTo(R(w)-.5,R(x+f/2)-.5),t.lineTo(R(w)-.5,R(p)-.5))):j.start<s&&s<j.end||y&&v||j.end===s&&this.bze(c,s,D)?(t.moveTo(R(w)-.5,R(i)-.5),t.lineTo(R(w)-.5,R(p)-.5)):j.end===s&&(t.moveTo(R(w)-.5,R(i)-.5),t.lineTo(R(w)-.5,R(p-h)-.5),t.lineTo(R(w+d)-.5,R(p-h)-.5)),t.stroke(),t.restore(),n+=N+f)},c.prototype.fMi=function(t,e,n,i,o,u){var a,r,c,s,l,f,d,h,g,b,v,M,I,m,M,N,I,a=t.x,r=i.zoom(),c=16*r,s=i.NMi;if(s){if(f=W(l=s.gze()))return B;for(g=(40*(h=(d=s.MMi(o)).length)-16*h)/(h+1)*r,b=0;b<h;b++)if(v=d[b],(b!==s.lMi.length-1||s.detailColumnsVisible())&&s.DMi(b,o)){if(M=a+g,I=t.y+t.height/2,v.start===o&&(m=R(M)-.5,M=R(M+c)-.5,N=R(I-c/2)-.5,I=R(I-c/2+c)-.5,m<=e)&&e<=M&&N<=n&&n<=I)return{level:b,index:o,collapsed:v.collapsed};a+=g+c}}},c.prototype.getHitInfo=function(t,e,n,i,o){var u,a;if(o&&2===(u=o.sheetArea)&&(a=this.fMi(i,t,e,o.sheet,o.row,o)))return{x:t,y:e,row:o.row,col:o.col,cellRect:i,sheetArea:2,isReservedLocation:!0,sheet:o.sheet,level:a.level,index:a.index,collapsed:a.collapsed}},c.prototype.processMouseDown=function(t){var e,n,i,t;return!(!t||!(e=t.sheet.NMi)||(n=t.level,i=t.index,t=t.collapsed,e.zA({cmd:o.EXPAND_GROUP_ITEM,level:n,index:i,expand:t}),0))},c.prototype.bze=function(t,e,n,i){void 0===i&&(i=0);var t=t.TFe&&t.TFe(e,i,-1,!0);return!(!t||t.isSpacing)&&n<=t.level},c.prototype.vze=function(e,n,i,t,o){var u,o,u=this;return!!o&&(o=function(t){return u.bze(e,n,i,t)})(t)&&o(t+1)},n(Mt,k=j=c),Mt.prototype.paint=function(t,e,n,i,o,u,a,r){var c,s,l,f,d,h,g,b,v,M,I,m,N,D,j,C,w,p,x,y,A,T,S,x,z,L,c=r.sheet,s=r.row,l=c.zoom(),f=16*l,d=4*l,h=J*l,g=c.NMi;if(g&&(b=r.rowSpacingIndex,M=!(v=r.isAfterRowSpacing),I=c.TFe&&c.TFe(s,b,-1,v)))for(m=I.level,N=I.isSpacing,C=(40*(j=(D=g.MMi(s)).length)-16*j)/(j+1)*l,k.prototype.paintValue.call(this,t,e,n,i,o,u,a,r),w=0;w<j;w++)m<w||(p=D[w],(w!==g.lMi.length-1||g.detailColumnsVisible())&&g.DMi(w,s)&&(t.save(),t.beginPath(),t.strokeStyle="#999999",t.lineWidth=1,y=(x=n+C)+f/2,A=i+u,T=i+u/2,p.start===s&&w===m&&M?(S=R(x)-.5,x=R(x+f)-.5,z=R(T-f/2)-.5,L=R(T-f/2+f)-.5,t.moveTo(S,z),t.lineTo(x,z),t.lineTo(x,L),t.lineTo(S,L),t.lineTo(S,z),t.moveTo(R(y-d)-.5,R(T)-.5),t.lineTo(R(y+d)-.5,R(T)-.5),p.collapsed?(t.moveTo(R(y)-.5,R(T-d)-.5),t.lineTo(R(y)-.5,R(T+d)-.5)):(t.moveTo(R(y)-.5,R(T+f/2)-.5),t.lineTo(R(y)-.5,R(A)-.5))):p.start<s&&s<p.end||w<m&&(M||this.vze(c,s,w,b,v))?(t.moveTo(R(y)-.5,R(i)-.5),t.lineTo(R(y)-.5,R(A)-.5)):p.end!==s||N||(t.moveTo(R(y)-.5,R(i)-.5),t.lineTo(R(y)-.5,R(A-h)-.5),t.lineTo(R(y+d)-.5,R(A-h)-.5)),t.stroke(),t.restore(),n+=C+f))},Mt.prototype.fMi=function(t,e,n,i,o,u){var a,r,c,s,l,f,d,u,h,g,b,v,M,I,m,N,D,m,j,N,a=t.x,r=i.zoom(),c=16*r,s=i.NMi;if(s&&(l=u.rowSpacingIndex,d=!(f=u.isAfterRowSpacing),u=i.TFe&&i.TFe(o,l,-1)))for(h=u.level,v=(40*(b=(g=s.MMi(o)).length)-16*b)/(b+1)*r,M=0;M<b;M++)if(!(h<M&&d)&&(I=g[M],M!==s.lMi.length-1||s.detailColumnsVisible())&&s.DMi(M,o)){if(m=a+v,N=t.y+t.height/2,I.start===o&&M===h&&d&&(D=R(m)-.5,m=R(m+c)-.5,j=R(N-c/2)-.5,N=R(N-c/2+c)-.5,D<=e)&&e<=m&&j<=n&&n<=N)return{level:M,index:o,collapsed:I.collapsed};a+=v+c}},S=Mt,C=2.5,t.nMi=It,d=Z.CellTypes.ColumnHeader,n(s,d),s.prototype.dMi=function(t,e){for(var n=0;n<e;n++)if(t.gMi(n))return!1;return!0},s.prototype.paintContent=function(t,e,n,i,o,u,a,r){var c,s,l,e,o,l,a,c,c,f,a,r,l,c,s,n,r,i,u,c=r.sheet,s=c.zoom(),l=21*s;d.prototype.paintContent.call(this,t,e,n+l,i,o-l,u,a,r),e=16*s,o=4*s,l=c.NMi,a=c.getDataSource(),l&&l.lMi&&0<l.lMi.length&&a&&It(r.sheet,r.row,r.col)&&((c=l.groupOutlinePosition())!==U.GroupOutlinePosition.groupCell&&c!==U.GroupOutlinePosition.groupCellAll||!(f=(c=a.getColumn(r.col).OFt)===l.lMi.length-1&&!l.detailColumnsVisible())&&this.dMi(l,c)&&(a=l.gMi(c),r=C*s,t.save(),t.beginPath(),t.strokeStyle="#999999",t.lineWidth=1,c=(l=n+r)+e/2,s=i+u/2,n=R(l)-.5,r=R(l+e)-.5,i=R(s-e/2)-.5,u=R(s-e/2+e)-.5,t.moveTo(n,i),t.lineTo(r,i),t.lineTo(r,u),t.lineTo(n,u),t.lineTo(n,i),t.moveTo(R(c-o)-.5,R(s)-.5),t.lineTo(R(c+o)-.5,R(s)-.5),a&&(t.moveTo(R(c)-.5,R(s-o)-.5),t.lineTo(R(c)-.5,R(s+o)-.5)),t.stroke(),t.restore()))},s.prototype.fMi=function(t,e,n,i,o,u){var a,r,c,s,l,i,o,f,i,l,d,s,u,t,a,r,s,a=t.x,r=i.zoom(),c=16*r,s=i.NMi,l=i.getDataSource();if(s&&l&&It(i,o,u)&&((i=s.groupOutlinePosition())===U.GroupOutlinePosition.groupCell||i===U.GroupOutlinePosition.groupCellAll)&&!(f=(o=l.getColumn(u).OFt)===s.lMi.length-1&&!s.detailColumnsVisible())&&this.dMi(s,o)&&(i=s.lMi[o].field,l=s.gMi(o),u=t.y+t.height/2,t=R(s=a+(d=C*r))-.5,a=R(s+c)-.5,r=R(u-c/2)-.5,s=R(u-c/2+c)-.5,t<=e)&&e<=a&&r<=n&&n<=s)return{field:i,level:o,collapsed:l}},s.prototype.getHitInfo=function(t,e,n,i,o){var u,n;if(o&&1===(u=o.sheetArea)&&(i=this.An(i,n,o.sheet.zoom()),n=this.fMi(i,t,e,o.sheet,o.row,o.col)))return{x:t,y:e,row:o.row,col:o.col,cellRect:i,sheetArea:1,isReservedLocation:!0,sheet:o.sheet,field:n.field,level:n.level,collapsed:n.collapsed}},s.prototype.processMouseDown=function(t){var e,n,t;return!(!t||!(e=t.sheet.NMi)||(n=t.field,t=t.collapsed,e.zA({cmd:o.EXPAND_GROUP,field:n,expand:t}),0))},a=s,Z.CellTypes.ti[98]=a,P=2.5,w=5,q=Z.CellTypes.Text,n(mt,q),mt.prototype.getHitInfo=function(t,e,n,i,o){var u,u;if(o&&(3===(u=o.sheetArea)||T(u))&&(i=this.An(i,n,o.sheet.zoom()),u=this.fMi(i,t,e,o.sheet,o.row,o.col,o.rowSpacingIndex)))return{x:t,y:e,row:o.row,col:o.col,cellRect:i,sheetArea:3,isReservedLocation:!0,sheet:o.sheet,level:u.level,index:u.index,collapsed:u.collapsed,rowSpacingIndex:o.rowSpacingIndex,isAfterRowSpacing:o.isAfterRowSpacing}},mt.prototype.processMouseDown=function(t){var e,n,i,t;return!(!t||!(e=t.sheet.NMi)||(n=t.level,i=t.index,t=t.collapsed,e.zA({cmd:o.EXPAND_GROUP_ITEM,level:n,index:i,expand:t}),0))},n(l,$=e=mt),l.prototype.Mze=function(t,e,n,i,o){var u;return!(!e||(t.gze()===U.GroupLayoutMode.tabular?e.start!==n:"number"!=typeof o||!t.Mf.TFe||"number"!=typeof t.Mf.TFe(n,o,i)))},l.prototype.paintValue=function(t,e,n,i,o,u,a,r){var c,s,l,f,c,d,h,g,b,v,M,I,m,N,e,m,D,e,a,m,j,I,c,r,s,f,d,h,v,c=r.sheet,s=c.zoom(),l=21*s,f=c.NMi,c=c.getDataSource(),d=r.row,h=r.col,g=16*s,b=4*s,v=r.rowSpacingIndex,M=f.gze(),I=W(M),m=e;!T(m)&&I&&"number"==typeof v&&(m="".concat(e)),e=n+l,I&&f.Mf.TFe&&(e=n+l*((N=f.Mf.TFe(d,r.rowSpacingIndex,h))+1)),$.prototype.paintValue.call(this,t,m,e,i,o-l,u,a,r),f&&c&&f.lMi&&0<f.lMi.length&&((m=f.groupOutlinePosition())!==U.GroupOutlinePosition.groupCell&&m!==U.GroupOutlinePosition.groupCellAll||!(D=(N=I?N:c.getColumn(h).OFt)===f.lMi.length-1&&!f.detailColumnsVisible())&&f.DMi(N,r.row)&&(e=P*s,a=5*s,m=f.IMi(d,N),j=this.Mze(f,m,d,h,v))&&(t.save(),t.beginPath(),t.rect(n,i,o,u),t.clip(),t.beginPath(),t.strokeStyle="#999999",t.lineWidth=1,I=n+e,W(M)&&(I+=l*N),c=I+g/2,s=(r=i+a)+g/2,f=R(I)-.5,d=R(I+g)-.5,h=R(r)-.5,v=R(r+g)-.5,t.moveTo(f,h),t.lineTo(d,h),t.lineTo(d,v),t.lineTo(f,v),t.lineTo(f,h),t.moveTo(R(c-b)-.5,R(s)-.5),t.lineTo(R(c+b)-.5,R(s)-.5),m.collapsed&&(t.moveTo(R(c)-.5,R(s-b)-.5),t.lineTo(R(c)-.5,R(s+b)-.5)),t.stroke(),t.restore()))},l.prototype.fMi=function(t,e,n,i,o,u,a){var r,c,s,i,l,f,i,l,d,h,r,g,b,s,u,a,h,f,l,r=i.zoom(),c=16*r,s=i.NMi,i=i.getDataSource();if(s&&i&&((l=s.groupOutlinePosition())===U.GroupOutlinePosition.groupCell||l===U.GroupOutlinePosition.groupCellAll)&&(l=21*r,!(d=(i=W(f=s.gze())&&s.Mf.TFe?s.Mf.TFe(o,a,u):i.getColumn(u).OFt)===s.lMi.length-1&&!s.detailColumnsVisible()))&&s.DMi(i,o)&&(h=P*r,r=5*r,g=s.IMi(o,i),b=this.Mze(s,g,o,u,a))&&(s=t.x+h,W(f)&&(s+=l*i),u=t.y+r,a=R(s)-.5,h=R(s+c)-.5,f=R(u)-.5,l=R(u+c)-.5,a<=e)&&e<=h&&f<=n&&n<=l)return{level:g.level,index:o,collapsed:g.collapsed}},l.prototype.Ln=function(t,e,n,i,o){var u=o.sheet.NMi,a=o.col,t=$.prototype.Ln.call(this,t,e,n,i,o);return u&&u.hMi(a)&&(t+=21*i),t},r=l,Z.CellTypes.ti[99]=r,tt=Z.CellTypes.Text,n(Nt,tt),Nt.prototype.paintValue=function(t,e,n,i,o,u,a,r){var c,s,l,f,c,d,f,h,g,c=r.sheet,s=c.zoom(),l,f=r.isAfterRowSpacing,c=c.NMi,d=-1;!f&&c.lMi&&(d=c.lMi.length-1),tt.prototype.paintValue.call(this,t,e,h=n+(f=21*s*(d+2)),i,g=o-f,u,a,r)},z=Nt,Z.CellTypes.ti[108]=z,p=Z.CellTypes.Text,n(Dt,p),Dt.prototype.paint=function(t,e,n,i,o,u,a,r){var c,s,l,f,d,h,g,b,v,M,M,s,d,l,h,I,m,N,D,f,j,C,w,w,D,f,c=this,s=r.row,l=r.col,f=r.sheet,d=r.rowSpacingIndex,h=r.isAfterRowSpacing,g=f.zoom(),b,v=f.NMi.currentTheme(),M=a.backColor;r.parentBackColor!==M&&(0,Z.cellTypeContext_paintBackground)(t,n,i,o,u,r.imageLoader,a,e,r),a.backColor=void 0,a.backgroundImage=void 0,M=new Z.Rect(n,i,o,u),d=(s=f.TFe&&f.TFe(s,d,l,h))&&s.caption,l=ot(a),h=f.getDefaultStyle(),(m=(I=s&&s.headerStyle)?V(I,v,h):l.clone()).hAlign=F(m,Z.HorizontalAlign.right),(N=H(this.fze))?(D=2*g,f=f.getDefaultStyle().cellPadding+" 0 0 0",(C=(j=s&&s.style)?V(j,v,h):l.clone()).cellPadding=f,C.hAlign=F(C,Z.HorizontalAlign.right),r.fontInfo=Z.W.Lge(C,j?g:1),C.font=r.fontInfo.font,r.cellStyle=C,p.prototype.paint.call(this,t,e,n,i,o,u,C,r),w=r.Ui,d&&(d="".concat(d).concat((0,G.getSR)().TextColon),w=o-w-D,m.cellPadding=f,m.hAlign=F(m,Z.HorizontalAlign.right),r.fontInfo=Z.W.Lge(m,I?g:1),m.font=r.fontInfo.font,r.cellStyle=m,p.prototype.paint.call(this,t,d,n,i,w,u,m,r))):(D=c.An(M,a,(0,Z.isPrintZoomFactorExist)(r)?r.printZoomFactor:r.sheet.zoom()),f=new Z.Rect(n,i,o,u-D.height),d&&(I&&!T(I.cellPadding)||(m.cellPadding=B),r.cellStyle=m,r.fontInfo=Z.W.Lge(m,I?g:1),m.font=r.fontInfo.font,r.lineHeight=Z.mt.vt(r.fontInfo.font,!1,Z.mt.pt(d)),p.prototype.paint.call(this,t,d,n,f.y,o,f.height,m,r)),(C=(j=s&&s.style)?V(j,v,h):l.clone()).cellPadding=B,C.hAlign=F(C,Z.HorizontalAlign.right),r.cellStyle=C,r.fontInfo=Z.W.Lge(C,j?g:1),C.font=r.fontInfo.font,r.lineHeight=Z.mt.vt(r.fontInfo.font,!1,Z.mt.pt(e)),p.prototype.paint.call(this,t,e,n,D.y,o,D.height,C,r))},Dt.prototype.Ln=function(t,e,n,i,o){var u,a,r,c,s,l,f,d,a,s,r,l,h,n,g,b,v,M,n,u=0,a=o.row,r=o.col,c=o.sheet,s=o.rowSpacingIndex,l=o.isAfterRowSpacing,f,d=c.NMi.currentTheme(),a=c.TFe&&c.TFe(a,s,r,l),s=a&&a.caption;return s=s&&"".concat(s).concat((0,G.getSR)().TextColon),r=ot(n),l=c.getDefaultStyle(),H(this.fze)?(h=2,n=c.getDefaultStyle().cellPadding+" 0 0 0",T(t)||((b=(g=a&&a.style)?V(g,d,l):r.clone()).cellPadding=n,b.hAlign=F(b,Z.HorizontalAlign.right),o.fontInfo=Z.W.Lge(b,g?i:1),b.font=o.fontInfo.font,o.cellStyle=b,u+=p.prototype.Ln.call(this,t,(0,Z.AHe)(this,t,b,c),b,i,o)+2),T(s)||((M=(v=a&&a.headerStyle)?V(v,d,l):r.clone()).cellPadding=n,M.hAlign=F(M,Z.HorizontalAlign.right),o.fontInfo=Z.W.Lge(M,v?i:1),M.font=o.fontInfo.font,o.cellStyle=M,u+=p.prototype.Ln.call(this,s,s,M,i,o)+2)):(T(t)||((b=(g=a&&a.style)?V(g,d,l):r.clone()).cellPadding=B,b.hAlign=F(b,Z.HorizontalAlign.right),o.cellStyle=b,o.fontInfo=Z.W.Lge(b,g?i:1),b.font=o.fontInfo.font,u=p.prototype.Ln.call(this,t,(0,Z.AHe)(this,t,b,c),b,i,o)),T(s)||(M=(v=a&&a.headerStyle)?V(v,d,l):r.clone(),v&&!T(v.cellPadding)||(M.cellPadding=B),o.cellStyle=M,o.fontInfo=Z.W.Lge(M,v?i:1),M.font=o.fontInfo.font,u<(n=p.prototype.Ln.call(this,s,s,M,i,o))&&(u=n))),u},L=Dt,Z.CellTypes.ti[109]=L,n(f,Q=e),f.prototype.paint=function(t,e,n,i,o,u,a,r){var c,s,l,f,d,h,g,b,v,M,I,I,m,N,D,j,C,w,p,x,m,b,y,b,g,b,C,A,T,S,b,z,A,D,b,A,S,z,g,C,T,j,N,w,b,L,s,d,f,h,O,k,h,f,l,O,E,h,f,l,h,s,d,f,a,p,c=this,s=r.row,l=r.sheet,f=r.col,d=r.rowSpacingIndex,h=r.isAfterRowSpacing,g=l.NMi,b=l.getDataSource(),v=l.zoom(),M=g.currentTheme(),I=a.backColor;r.parentBackColor!==I&&(0,Z.cellTypeContext_paintBackground)(t,n,i,o,u,r.imageLoader,a,e,r),a.backColor=void 0,a.backgroundImage=void 0,I=new Z.Rect(n,i,o,u),(m=l.TFe&&l.TFe(s,d,-1))&&(N=21*v,D=16*v,j=4*v,C=g.gze(),w=m.level,p=m.field,x=m.value,m=m.groupLevelOptions,x=Z.mt.V0(x),g&&b&&g.lMi&&0<g.lMi.length&&((b=g.groupOutlinePosition())!==U.GroupOutlinePosition.groupCell&&b!==U.GroupOutlinePosition.groupCellAll||!(y=w===g.lMi.length-1&&!g.detailColumnsVisible())&&g.DMi(w,r.row)&&(b=P*v,g=g.IMi(s,w),t.save(),t.beginPath(),t.rect(n,i,o,u),t.clip(),t.beginPath(),t.strokeStyle="#999999",t.lineWidth=1,b=n+b,W(C)&&(b+=N*w),C=b+D/2,T=(A=i+(u-D)/2)+D/2,S=R(b)-.5,b=R(b+D)-.5,z=R(A)-.5,A=R(A+D)-.5,t.moveTo(S,z),t.lineTo(b,z),t.lineTo(b,A),t.lineTo(S,A),t.lineTo(S,z),t.moveTo(R(C-j)-.5,R(T)-.5),t.lineTo(R(C+j)-.5,R(T)-.5),g.collapsed&&(t.moveTo(R(C)-.5,R(T-j)-.5),t.lineTo(R(C)-.5,R(T+j)-.5)),t.stroke(),t.restore())),D=0,A=n+(b=N*(w+1)),S=o-b,z=4*v,g=ot(a),C=l.getDefaultStyle(),T=l.defaults.rowHeight,N=(j=l.TFe&&l.TFe(s,d,f,h))&&j.caption,(b=(w=j&&j.headerStyle)?V(w,M,C):g.clone()).hAlign=Z.HorizontalAlign.right,(L=H(this.fze))?(s=2*v,d=l.getDefaultStyle().cellPadding+" 0 0 0",(f=m.headerStyle?V(m.headerStyle,M,C):g.clone()).cellPadding=d,f.hAlign=F(f,Z.HorizontalAlign.left),r.fontInfo=Z.W.Lge(f,m.headerStyle?v:1),f.font=r.fontInfo.font,r.cellStyle=f,h="".concat(p).concat((0,G.getSR)().TextColon),O=_(Z.mt.Mt(t,f.font,(0,Z.xHe)(this,t,h,S,u,f,r))+s),Q.prototype.paint.call(this,t,h,A,i,O,u,f,r),A+=O,(k=m.style?V(m.style,M,C):g.clone()).cellPadding=d,k.hAlign=F(k,Z.HorizontalAlign.left),r.fontInfo=Z.W.Lge(k,m.style?v:1),k.font=r.fontInfo.font,r.cellStyle=k,h=(0,Z.AHe)(this,x,k,l),f=_(Z.mt.Mt(t,k.font,(0,Z.xHe)(this,t,h,S,u,k,r))+s),k.formatter=B,Q.prototype.paint.call(this,t,h,A,i,f,u,k,r),A=A+f+z,l=S-O-f-z,(E=(O=j&&j.style)?V(O,M,C):g.clone()).cellPadding=d,E.hAlign=F(E,Z.HorizontalAlign.right),r.fontInfo=Z.W.Lge(E,O?v:1),E.font=r.fontInfo.font,r.cellStyle=E,Q.prototype.paint.call(this,t,e,A,i,l,u,E,r),h=r.Ui,N&&(N="".concat(N).concat((0,G.getSR)().TextColon),f=l-h-s,b.cellPadding=d,b.hAlign=F(b,Z.HorizontalAlign.right),r.fontInfo=Z.W.Lge(b,w?v:1),b.font=r.fontInfo.font,r.cellStyle=b,Q.prototype.paint.call(this,t,N,A,i,f,u,b,r))):(l=c.An(I,a,(0,Z.isPrintZoomFactorExist)(r)?r.printZoomFactor:r.sheet.zoom()),h=new Z.Rect(n,i,o,u-l.height),(k=m.style?V(m.style,M,C):g.clone()).hAlign=F(k,Z.HorizontalAlign.left),s=m.headerStyle?V(m.headerStyle,M,C):g.clone(),(!m.headerStyle||m.headerStyle&&Y(m.headerStyle.cellPadding))&&(s.cellPadding=B),s.hAlign=F(s,Z.HorizontalAlign.left),r.cellStyle=s,r.fontInfo=Z.W.Lge(s,m.headerStyle?v:1),s.font=r.fontInfo.font,r.lineHeight=Z.mt.vt(r.fontInfo.font,!1,Z.mt.pt(p)),Q.prototype.paint.call(this,t,p,A,h.y,S,h.height,s,r),D=et(0,r.Ui),k.cellPadding=B,r.cellStyle=k,r.fontInfo=Z.W.Lge(k,m.style?v:1),k.font=r.fontInfo.font,r.lineHeight=Z.mt.vt(r.fontInfo.font,!1,Z.mt.pt(x)),Q.prototype.paint.call(this,t,x,A,l.y,S,l.height,k,r),d=A+(D=et(D,r.Ui))+z,f=S-D-z,E=(O=j&&j.style)?V(O,M,C):g.clone(),O&&!Y(O.cellPadding)||(E.cellPadding=T+" 0 0 0"),a=c.An(I,E,(0,Z.isPrintZoomFactorExist)(r)?r.printZoomFactor:r.sheet.zoom()),N&&(p=new Z.Rect(n,i,o,u-a.height),w&&!Y(w.cellPadding)||(b.cellPadding=B),r.cellStyle=b,r.fontInfo=Z.W.Lge(b,j&&j.headerStyle?v:1),b.font=r.fontInfo.font,r.lineHeight=Z.mt.vt(r.fontInfo.font,!1,Z.mt.pt(N)),Q.prototype.paint.call(this,t,N,d,p.y,f,p.height,b,r)),E.cellPadding=B,E.hAlign=Z.HorizontalAlign.right,r.cellStyle=E,r.fontInfo=Z.W.Lge(E,O?v:1),E.font=r.fontInfo.font,r.lineHeight=Z.mt.vt(r.fontInfo.font,!1,Z.mt.pt(e)),Q.prototype.paint.call(this,t,e,d,a.y,f,a.height,E,r)))},f.prototype.Ln=function(t,e,n,i,o){var u,a,r,c,s,l,f,d,h,g,b,n,v,M,I,m,g,N,M,a,D,j,s,c,C,l,w,p,x,y,b,c,l,u=0,a=o.row,r=o.sheet,c=o.col,s=o.rowSpacingIndex,l=o.isAfterRowSpacing,f,d=r.NMi.currentTheme(),h=21,g=r.TFe&&r.TFe(a,s,-1),b=H(this.fze);return g&&(n=ot(n),v=r.getDefaultStyle(),M=g.level,I=g.field,m=g.value,g=g.groupLevelOptions,u=N=21*(M+1),a=(M=r.TFe&&r.TFe(a,s,c,l))&&M.caption,D=4,b?(a=a&&"".concat(a).concat((0,G.getSR)().TextColon),I=I&&"".concat(I).concat((0,G.getSR)().TextColon),j=2,s=r.getDefaultStyle().cellPadding+" 0 0 0",T(I)||((c=g.headerStyle?V(g.headerStyle,d,v):n.clone()).cellPadding=s,c.hAlign=F(c,Z.HorizontalAlign.left),o.fontInfo=Z.W.Lge(c,g.headerStyle?i:1),c.font=o.fontInfo.font,o.cellStyle=c,u+=Q.prototype.Ln.call(this,I,I,c,i,o)+2),T(m)||((C=g.style?V(g.style,d,v):n.clone()).cellPadding=s,C.hAlign=F(C,Z.HorizontalAlign.left),o.fontInfo=Z.W.Lge(C,g.style?i:1),C.font=o.fontInfo.font,o.cellStyle=C,l=(0,Z.AHe)(this,m,C,r),u+=Q.prototype.Ln.call(this,l,l,C,i,o)+2),M&&(u+=4,T(t)||((p=(w=M.style)?V(w,d,v):n.clone()).cellPadding=s,p.hAlign=F(p,Z.HorizontalAlign.right),o.fontInfo=Z.W.Lge(p,w?i:1),p.font=o.fontInfo.font,o.cellStyle=p,u+=Q.prototype.Ln.call(this,t,(0,Z.AHe)(this,t,p,r),p,i,o)+2),T(a)||((y=(x=M.headerStyle)?V(x,d,v):n.clone()).cellPadding=s,y.hAlign=F(y,Z.HorizontalAlign.right),o.fontInfo=Z.W.Lge(y,x?i:1),y.font=o.fontInfo.font,o.cellStyle=y,u+=Q.prototype.Ln.call(this,a,a,y,i,o)+2))):(b=0,T(I)||(c=g.headerStyle?V(g.headerStyle,d,v):n.clone(),(!g.headerStyle||g.headerStyle&&Y(g.headerStyle.cellPadding))&&(c.cellPadding=B),c.hAlign=F(c,Z.HorizontalAlign.left),o.cellStyle=c,o.fontInfo=Z.W.Lge(c,g.headerStyle?i:1),c.font=o.fontInfo.font,b=A(Q.prototype.Ln.call(this,I,I,c,i,o),b)),T(m)||((C=g.style?V(g.style,d,v):n.clone()).hAlign=F(C,Z.HorizontalAlign.left),C.cellPadding=B,o.cellStyle=C,o.fontInfo=Z.W.Lge(C,g.style?i:1),C.font=o.fontInfo.font,b=A(Q.prototype.Ln.call(this,m,(0,Z.AHe)(this,m,C,r),C,i,o),b)),u+=b,l=0,T(a)||(y=(x=M&&M.headerStyle)?V(x,d,v):n.clone(),x&&!Y(x.cellPadding)||(y.cellPadding=B),o.cellStyle=y,o.fontInfo=Z.W.Lge(y,M&&M.headerStyle?i:1),y.font=o.fontInfo.font,l=A(Q.prototype.Ln.call(this,a,a,y,i,o),l)),T(t)||((p=(w=M.style)?V(w,d,v):n.clone()).cellPadding=B,p.hAlign=Z.HorizontalAlign.right,o.cellStyle=p,o.fontInfo=Z.W.Lge(p,w?i:1),p.font=o.fontInfo.font,l=A(Q.prototype.Ln.call(this,t,(0,Z.AHe)(this,t,p,r),p,i,o),l)),u+=l,0<l&&(u+=4))),u},f.prototype.getCellAndPaddingHitInfo=function(t,e,n,i,o){var u,t,u=n.cellPadding;return n.cellPadding=void 0,t=Q.prototype.getCellAndPaddingHitInfo.call(this,t,e,n,i,o),n.cellPadding=u,t},f.prototype.fMi=function(t,e,n,i,o,u,a){var r,c,s,l,l,l,a,i,f,l,r,s,l,i,a,t,s,r=i.zoom(),c=16*r,s=i.NMi,l=i.getDataSource();if(s&&l&&((l=s.groupOutlinePosition())===U.GroupOutlinePosition.groupCell||l===U.GroupOutlinePosition.groupCellAll)&&(l=i.TFe&&i.TFe(o,a,-1))&&(i=21*r,!(f=(a=l.level)===s.lMi.length-1&&!s.detailColumnsVisible()))&&s.DMi(a,o)&&(l=P*r,r=s.IMi(o,a),s=t.x+l+i*a,l=t.y+(t.height-c)/2,i=R(s)-.5,a=R(s+c)-.5,t=R(l)-.5,s=R(l+c)-.5,i<=e)&&e<=a&&t<=n&&n<=s)return{level:r.level,index:o,collapsed:r.collapsed}},Z.CellTypes.ti[110]=X=f,h.prototype.Hc=function(t,e,n){var i,i,i=new Z.Style;i.backColor="white",i.cellType=new j,t.setStyle(-1,0,i,Z.SheetArea.rowHeader),t.setColumnWidth(0,40*e,Z.SheetArea.rowHeader),(i=this.tMi)!==U.GroupOutlinePosition.rowHeader&&i!==U.GroupOutlinePosition.groupCellAll||t.setColumnVisible(0,!0,Z.SheetArea.rowHeader),this.Ize(t,n)},h.prototype.Ize=function(t,e){var n;W(this.GY)?(this.mze(t),this.Nze(t),this.Dze(t,e)):this.jze(t,e)},h.prototype.jze=function(t,e){for(var n,i,o,i,u,n=0;n<e.length;n++)e[n].DFt&&(i=new a,t.setCellType(-1,n,i,Z.SheetArea.colHeader),(o=(o=e[n].headerStyle)||(e[n].headerStyle={})).cellType=i,i=new r,t.setCellType(-1,n,i),(u=(u=e[n].style)||(e[n].style={})).cellType=i)},h.prototype.Dze=function(t,e){var n,i,o,u,a,r,c,s,l,f,d,h,g,b,v,M,I,m,v,N,D,j,j,C,n,w,p,n,n,x,y,A,i=t.NMi,o=t.getRowCount(),u=e.length,a=t.k9(Z.SheetArea.viewport),r=t.NMi.currentTheme();if(!T(a)){if(c=t.defaults.rowHeight,s=t.FCn)for(l=0;l<o;l++){for(f=t.C9e(l),d=0;d<f;d++){for(g=null==(h=t.TFe(l,d,-1))?void 0:h.field,b=0;b<u;b++)(I=new(M=(v=b===a)?X:L)).fze=this.GY,(v=(v=it(m=v&&h&&h.groupLevelOptions?h.groupLevelOptions:t.TFe(l,d,b)))||new Z.Style).cellType=I,t.xFe(l,d,b,v);h&&(D=Y((N=V(h.groupLevelOptions&&h.groupLevelOptions.style||{},r)).cellPadding),E(this.GY)&&D&&(N.cellPadding=c+" 0 0 0"),t.xFe(l,d,-1,N)),(j=new Z.Style).backColor="white",j.cellType=new S,t.xFe(l,d,0,j,!1,Z.SheetArea.rowHeader),E(this.GY)&&(j=i.getGroupingHeaderHeight(g,c),t.SFe(l,d,j))}for(C=t.C9e(l,!0),d=0;d<C;d++)if(g=null==(n=null==(h=t.TFe(l,d,-1,!0))?void 0:h.groupLevelOptions)?void 0:n.field,h&&h.isSpacing)(n=new Z.Style).backColor="white",n.cellType=new S,t.xFe(l,d,0,n,!0,Z.SheetArea.rowHeader),t.SFe(l,d,h.spacingRow,!0);else{for(b=0;b<u;b++)(w=new L).fze=this.GY,w.dze=!0,(p=(p=it(m=t.TFe(l,d,b,!0)))||new Z.Style).cellType=w,t.xFe(l,d,b,p,!0);h&&(D=Y((N=V(h.groupLevelOptions&&h.groupLevelOptions.style||{},r)).cellPadding),E(this.GY)&&D&&(N.cellPadding=c+" 0 0 0"),t.xFe(l,d,-1,N,!0)),(n=new Z.Style).backColor="white",n.cellType=new S,t.xFe(l,d,0,n,!0,Z.SheetArea.rowHeader),E(this.GY)&&(n=i.getGroupingFooterHeight(g,c),t.SFe(l,d,n,!0))}}for(l=0,x=u;l<x;l++)t.getCellType(-1,l)instanceof z&&t.setCellType(-1,l,B);y=new z,t.setCellType(-1,a,y),(A=(A=e[a].style)||(e[a].style={})).cellType=y}},h.prototype.mze=function(t,e,n,i,o,u){var a,r,c,s,l,f,d,h,g,b,v,v,g,M,M,v,b,M;if(t.FCn&&(r=(a=t.NMi).getDataView(),c=this.Cze(),s=a.groupBy(),l=W(c),T(e)&&(e=r.FFt.childrenArray[0]),T(n)&&(n=a.INi.wze()),e.length===n.length)&&(T(i)&&(i=0),T(o)&&(o=0),T(u)&&(u=0),e)&&0<e.length)for(f=0;f<e.length;f++)d=e[f],h=n[f],g=d.recordRowNumbers,b=d.value,v=(v=d.cellNode).field.extra&&!T(v.field.extra.caption)?v.field.extra.caption:v.field.fieldValue,g=g.length,M=t.C9e(i),t.CFe(i,M,1),t.IFe(i,o,-1,{groupLevelOptions:s[h.level],level:h.level,field:v,value:Z.mt.Z0(b)}),h.spacingIndex=o,l&&(M=d.summaryResults)&&(v=ft(M,"header",a.pze()))&&this.yze(t,i,o,v),b=d.childrenArray[0],M=h.children,b&&0<b.length&&this.mze(t,b,M,i,o+1,u),i+=g,o=0},h.prototype.Nze=function(t,e,n,i,o){var u,a,r,c,s,l,f,d,f,h,g,g,d,h;if(t.FCn&&(a=(u=t.NMi).getDataView(),T(e)&&(e=a.FFt.childrenArray[0]),T(n)&&(n=u.INi.wze()),e.length===n.length)&&(T(i)&&(i=0),T(o)&&(o=0),e)&&0<e.length)for(r=u.groupBy(),c=0;c<e.length;c++)s=e[c],l=n[c],f=s.recordRowNumbers,d=s.summaryResults,h=i+(f=f.length)-1,0<(g=vt(s))&&c<e.length-1&&(t.CFe(h,0,1,!0),t.IFe(h,0,-1,{level:l.level,spacingRow:g,isSpacing:!0},!0)),d&&(g=ft(d,"footer"))&&(t.CFe(h,0,1,!0),t.IFe(h,0,-1,{groupLevelOptions:r[l.level],level:l.level},!0),this.Aze(t,h,0,g)),d=s.childrenArray[0],h=l.children,d&&0<d.length&&this.Nze(t,d,h,i,o),i+=f},h.prototype.yze=function(t,e,n,i){var o,u,a,r,c,s;if(t.FCn)for(u=(o=t.NMi.getDataView()).getColumnInfos(),a=0;a<u.length;a++)(s=i[c=(r=u[a]).value])&&(t.AFe(e,n,a,s.value),t.IFe(e,n,a,s))},h.prototype.Aze=function(t,e,n,i){var o,u,a,r,c,s;if(t.FCn)for(u=(o=t.NMi.getDataView()).getColumnInfos(),a=0;a<u.length;a++)(s=i[c=(r=u[a]).value])&&(t.AFe(e,n,a,s.value,!0),t.IFe(e,n,a,s,!0))},h.prototype.TMi=function(t,e){var n,n;if(0===arguments.length)return this.tMi;this.tMi=e,(n=t.NMi)&&n.lMi&&(n=e===U.GroupOutlinePosition.rowHeader||e===U.GroupOutlinePosition.groupCellAll,t.setColumnVisible(0,n,Z.SheetArea.rowHeader))},h.prototype.Cze=function(t){if(T(t))return this.GY;this.GY=t},h.prototype.Tze=function(t){if(T(t))return this.hze;this.hze=u(u({},this.hze),t)},h.prototype.L0=function(t){t.setColumnVisible(0,!1,Z.SheetArea.rowHeader);for(var e=0,n=t.getColumnCount();e<n;e++)t.getCellType(-1,e,Z.SheetArea.colHeader)instanceof a&&t.setCellType(-1,e,B,Z.SheetArea.colHeader),t.getCellType(-1,e)instanceof r&&t.setCellType(-1,e,B),t.getCellType(-1,e)instanceof z&&t.setCellType(-1,e,B)},h.prototype.toJSON=function(){return this.tMi},h.prototype.fromJSON=function(t,e){this.TMi(t,e)},x=h,g.prototype.wze=function(){return this._data.oMi.children},g.prototype.Hc=function(t,e,n,i,o){o||this._data.Hc(t,e);var o=n.getDataSource();this._ui.Hc(n,i.length,o&&o.getColumnInfos())},g.prototype.TMi=function(t,e){if(0===arguments.length)return this._ui.TMi();this._ui.TMi(t,e)},g.prototype.uMi=function(t,e,n,i){this._data.uMi(t,e,n,i)},g.prototype.aMi=function(t,e,n,i){this._data.aMi(t,e,n,i)},g.prototype.sMi=function(t,e,n,i,o){return this._data.sMi(t,e,n,i,o)},g.prototype.MMi=function(t){return this._data.MMi(t)},g.prototype.IMi=function(t,e){return this._data.IMi(t,e)},g.prototype.gMi=function(t){return this._data.gMi(t)},g.prototype.Cze=function(t){return this._ui.Cze(t)},g.prototype.Tze=function(t){return this._ui.Tze(t)},g.prototype.L0=function(t){this._data.L0(),this._ui.L0(t)},g.prototype.Ize=function(t,e){this._ui.Ize(t,e)},g.prototype.toJSON=function(){return{outlinePosition:this._ui.toJSON(),tree:this._data.toJSON()}},g.prototype.fromJSON=function(t,e,n){this._ui.fromJSON(t,e.outlinePosition),this._data.fromJSON(e.tree,n)},t.Grouping=g},"./dist/plugins/tableSheet/tableSheet-panel/tableSheetPanel.js":function(i,M,t){var L,O,k,R,o,P,Q,Y,E,W,H,r,V,u,n,g,Z,N,a,F,_,J,c,f,d,h,X,v,K,q,I,$,tt,et,nt,s,l,C,w,b,it,ot,m,D,j,ut,at,p,rt,x,ct,y,A,st,lt,ft,dt,T,S,ht,gt,bt,z,vt,Mt,It,mt,Nt,Dt,t;function jt(t,e){for(var n,i,n=0;n<t.length;n++)if(e(i=t[n]))return n;return-1}function U(t){return t.value||t}function G(t){return B(t)&&t.bMi}function Ct(t){return t.yBt}function B(t){return 1===t.textIndent}function wt(t){return 2<=t.textIndent}function pt(t){return N(t)||""===t}function xt(t){return t&&t.richText&&t.richText[0]&&t.richText[0].text||t&&t.text||t}function e(t,e,n,i){this.AMi=!0,this.Zc=t,this.vMi=e,this.jMi=0,this.Ti=n,this.options=k.util.b0(Nt,this.zMi.bind(this)),this.Zp(i||{}),this.CMi=[],this.wMi=-1,n&&(0,k.GC$)(n).data(u,this),this.Ti.innerHTML=this.yMi(),this.mMi=n.querySelector(".".concat(_)),this.LMi=n.querySelector(".".concat(F)),this.xMi=n.querySelector(".".concat(f)),this.SMi=n.querySelector(".".concat(c)),this.ZMi=n.querySelector(".".concat(x)),this.OMi=this.ZMi.querySelector(".".concat(y)),this.EMi=n.querySelector(".".concat(c,".").concat(J,".").concat(rt)),this.GMi=n.querySelector(".".concat(s)),this.pMi=n.querySelector(".".concat(at)),this.attach(e),this.kMi(),(this.vMi.UMi=this).AMi=!1}function yt(t){return JSON.parse(JSON.stringify(t))}L=this&&this.__assign||function(){return(L=Object.assign||function(t){for(var e,n,i,o,n=1,i=arguments.length;n<i;n++)for(o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},Object.defineProperty(M,"__esModule",{value:!0}),M.TableSheetPanel=M.ShowSourceOptions=M.ARROW_RIGHT=M.ARROW_DOWN=M.GANTT_COLUMN_VALUE=void 0,O=t("./dist/plugins/tableSheet/tableSheet.js"),k=t("Core"),R=t("./dist/plugins/tableSheet/tableSheet.interface.js"),o=t("Common"),P=t("FormulaTextBox"),Q=t("CalcEngine"),Y=t("CellTypes"),E=t("./dist/plugins/tableSheet/tablesheet-command.js"),W=t("./dist/plugins/tableSheet/tableSheet-grouping.js"),H=k.CellTypes.Base,r=o.Common.zf.j0,V=o.Common.lt.tv,n="."+(u="table-sheet-panel"),g=null,Z=void 0,N=o.Common.lt.ht,a=window,F="gc-table-sheet-panel",_="gc-table-sheet-field-panel",J="gc-table-sheet-cross-panel",c="gc-table-sheet-group-panel",f="gc-table-sheet-group-list",d="gc-table-sheet-group-input",X=(h="gc-table-sheet-group-item")+"-remove",v="group-index",K="group-name",q="group-field",I="summary-index",$="gc-table-sheet-summary-item",tt="summary-name",et="summary-formula",nt=h+"-label",s="gc-table-sheet-summary-container",l="gc-table-sheet-field-container",C="gc-table-sheet-summary-item-label",w="gc-table-sheet-summary-item-input-formula",b="gc-table-sheet-summary-item-input-slice",it="gc-table-sheet-summary-function",ot="gc-table-sheet-summary-item-input-caption",m="gc-table-sheet-summary-list-container",D="gc-table-sheet-group-item-reorder-top",j="gc-table-sheet-group-item-reorder-bottom",ut="gc-table-sheet-add-calculate-column",at="fake-ftb-workbook",p="gc-table-sheet-summary-item-caption",rt="gc-table-sheet-cross-column",x="gc-table-sheet-cross-column-detail",ct="gc-table-sheet-cross-column-detail-value",y="gc-table-sheet-cross-column-attributes-list",A="gc-table-sheet-cross-column-item",st="gc-table-sheet-cross-column-item-checkbox",lt="gc-table-sheet-cross-column-item-edit",ft="gc-table-sheet-cross-column-item-input-filter",dt="gc-table-sheet-cross-column-item-editing",T="gc-table-sheet-cross-detail-input",S="gc-table-sheet-hidden",ht="gc-table-sheet-summary-item-input-relateTo",gt="gc-table-sheet-summary-item-input-position",bt="gc-table-sheet-group-item-setting",z="attribute-index",M.GANTT_COLUMN_VALUE="_ganttColumn",M.ARROW_DOWN="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAHJJREFUOE+10i0OwkAQBtC394ED4PE4EA0HBIeurEX2QE2TDYKwOyTTrt3Myzc/RfKVZL1dgQPmKGErwRFP3PHuIb0WTnhgwNRCohmca5Ibxl9IBKw1l4pc8fpGdgdSLaSGuMkaU4cUHeDn/58tdLE0sABwBBIR30jsewAAAABJRU5ErkJggg==",M.ARROW_RIGHT="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAI1JREFUOE/t0rEJwlAQBuAv09hJagewsBQMFuIqDuEA9tpa2qbMAA7gAG4gB08IjySvSCe+9riPe/9dZearZvb7UWCB50g2O9z6tTyDE7bY4JUh0XxF00eGQgxknZB3QqL5gj3uUxN8a4GsEhITnXHAI//a1BoDWaLGEe1QLqU7CCRG7sYOrgQUD/UP8AFFTRERJMaNUQAAAABJRU5ErkJggg==",vt=function(t,e){return t?e:""},Mt=function(t){var e=t.formula,n=t.caption,n=void 0===n?"":n,i=t.sliceField,o=t.columnList,u=t.relateTo,a=t.position,t=t.showSlice;return'\n <div class="gc-table-sheet-summary-item-formula">\n <span class="'.concat(C,'">').concat((0,O.getSR)().GroupPanelSummaryLabelFormula,'</span>\n <input class="').concat(w,'" input-type="formula" spellcheck="false" tabIndex="-1" current-data=\'').concat(r(e),"' value='").concat(r(e),'\'></input>\n <span class="gc-table-sheet-summary-item-remove-icon" title="').concat((0,O.getSR)().GroupPanelItemRemove,'"></span>\n </div>\n <div class="').concat(p,'">\n <span class="').concat(C,'">').concat((0,O.getSR)().GroupPanelSummaryLabelCaption,'</span>\n <input class="').concat(ot,'" input-type="caption" spellcheck="false" tabIndex="-1" current-data=\'').concat(r(n),"' value='").concat(r(n),"'></input>\n </div>")+vt(t,'\n <div class="gc-table-sheet-summary-item-slice">\n <span class="'.concat(C,'">').concat((0,O.getSR)().GroupPanelSummaryLabelSlice,'</span>\n <input class="').concat(b,'" input-type="slice" spellcheck="false" tabIndex="-1" current-data=\'').concat(i,"' value='").concat(i,"'></input>\n </div>"))+vt(!t,'\n <div class="gc-table-sheet-summary-item-relateTo">\n <span class="'.concat(C,'">').concat((0,O.getSR)().GroupPanelSummaryLabelRelateTo,'</span>\n <select class="').concat(ht,' gc-table-sheet-summary-item-select" name="relateTo">').concat('<option value="" style="display: none"></option>'+o.map(function(t){return'<option value="'.concat(t.value,'" ').concat(t.value===u?"selected":"",">").concat(t.text,"</option>")}),'</select>\n </div>\n <div class="gc-table-sheet-summary-item-position">\n <span class="').concat(C,'">').concat((0,O.getSR)().GroupPanelSummaryLabelPosition,'</span>\n <select class="').concat(gt,' gc-table-sheet-summary-item-select" name="position">\n <option value="header" ').concat("header"===a?"selected":"",">").concat((0,O.getSR)().GroupPanelSummaryLabelPositionHeader,'</option>\n <option value="footer" ').concat("footer"===a?"selected":"",">").concat((0,O.getSR)().GroupPanelSummaryLabelPositionFooter,"</option>\n </select>\n </div>"))},It=function(t){var e,n,i,o,u,e,n,i,o,u;return{formulaInputValue:t.find(".".concat(w)).val(),captionInputValue:t.find(".".concat(ot)).val(),sliceInputValue:t.find(".".concat(b)).val(),relateToValue:t.find(".".concat(ht)).val(),positionValue:t.find(".".concat(gt)).val()}},(t=mt=M.ShowSourceOptions||(M.ShowSourceOptions={}))[t.none=0]="none",t[t.field=1]="field",t[t.formula=2]="formula",t[t.all=3]="all",Nt={showSource:mt.none,fieldAreaVisible:!0,crossAreaVisible:!1,groupAreaVisible:!0,showEditButton:!1,showViewName:!0,showGroupSetting:void 0},e.prototype.ZS=function(){var n=this;setTimeout(function(){var t,e,e;null!=(e=null==(e=null==(t=n.vMi)?void 0:t.getParent)?void 0:e.call(t))&&e.focus(!0)},0)},e.prototype.Hc=function(t,e){var e,n,t,i,e=new k.Workbook(e,{allowUndo:!1});e.xU=!0,e.suspendPaint(),e.suspendEvent(),this.fb(e),n=e.getSheet(0),this.BMi=n,this.QMi(n),this.RMi(),this.PMi(),this.YMi=this.WMi(),t=this.HMi(t.getDataView()),this.CMi=t,this.VMi(e,n.getViewportBottomRow(1)<t.length-1),this.FMi(n,t),e.resumeEvent(),e.resumePaint(),(i=this).mMi&&(i.JMi=a.setTimeout(function(){var t,e,t=(0,k.GC$)(i.mMi),e=t.data("workbook");e&&Math.abs(t.height()-(0,k.GC$)(e._vp).height())>e.Xm()&&e.refresh(),i.JMi&&(a.clearTimeout(i.JMi),i.JMi=0)},100))},e.prototype.fb=function(t){t.options.allowContextMenu=!1,t.options.allowUserZoom=!1,t.options.allowUserDragDrop=!1,t.options.allowDragHeaderToMove=k.AllowDragHeaderToMove.none,t.options.allowUserDragFill=!1,t.options.showHorizontalScrollbar=!1,t.options.scrollbarMaxAlign=!0,t.options.tabStripVisible=!1,t.options.tabNavigationVisible=!1,t.options.grayAreaBackColor="white",t.options.scrollByPixel=!0,this.XMi(t)},e.prototype.QMi=function(t){var e=this.options;t.selectionPolicy(k.SelectionPolicy.single),t.selectionUnit(k.SelectionUnit.row),t.options.showFormulas=!0,t.options.rowHeaderVisible=!1,(t.options.colHeaderVisible=!1)===e.showViewName?t.setRowVisible(0,e.showViewName):t.frozenRowCount(1),t.options.gridline.showHorizontalGridline=!1,t.options.gridline.showVerticalGridline=!1,t.setColumnCount(2),t.setRowCount(30),t.setColumnWidth(0,20),t.setColumnWidth(1,"*"),t.outlineColumn.options({columnIndex:1,showIndicator:!0,collapseIndicator:M.ARROW_RIGHT,expandIndicator:M.ARROW_DOWN}),t.outlineColumn.refresh(),t.showRowOutline(!1),t.rowOutlines.KMi=!0,t.t4(0,1)},e.prototype.zMi=function(t,e,n){var i,o,i=this;if(!i.AMi)switch(t){case"showSource":i._Mi();break;case"fieldAreaVisible":case"crossAreaVisible":case"groupAreaVisible":o=i.vMi,i.detach(),i.vMi=o,i.Ti.innerHTML=i.yMi(),i.mMi=i.Ti.querySelector(".".concat(_)),i.LMi=i.Ti.querySelector(".".concat(F)),i.ZMi=i.Ti.querySelector(".".concat(x)),this.OMi=this.ZMi.querySelector(".".concat(y)),i.xMi=i.Ti.querySelector(".".concat(f)),i.SMi=i.Ti.querySelector(".".concat(c)),i.EMi=i.Ti.querySelector(".".concat(c,".").concat(J,".").concat(rt)),this.GMi=i.Ti.querySelector(".".concat(s)),this.pMi=i.Ti.querySelector(".".concat(at)),i.attach(o),i.kMi(),o.UMi=i}},e.prototype.Zp=function(t){var n=this.options||{};t=k.GC$.extend(!0,{},Nt,t),k.GC$.each(t,function(t,e){n.hasOwnProperty(t)&&(n[t]=e)})},e.prototype.RMi=function(){var S,l,z,o,r,u,e,a,c,s,f,S=this,l=S.Tp(),z=S.vMi,o=S.LMi.getBoundingClientRect();l.bind(k.Events.EditStarting+n,function(t,e){var n,i,n=e.row,i=S.CMi;i[n]&&i[n].isCalculateColumn||(e.cancel=!0)}),l.bind(k.Events.EditStarted+n,function(t,e){var n,i;e.row!==l.getRowCount()-1||l.il.text()||l.il.text("="),l.il&&(l.il.qMi=!0),S.$Mi=!0}),l.bind(k.Events.EditEnded+n,function(t,e){var n,i,o,e,u,a,r,c,a,s,c,n=e.row,i=S.CMi,o=z.getDataView(),e=e.editingText,u=!1;if(S.$Mi=!1,a=l.getText(n,1),r=e&&e.replace(/\s/g,""),c=a&&a.replace(/\s/g,""),!r){if(a)return;u=!0}if(String(c).toUpperCase()===String(r).toUpperCase()||u){if(i[n]&&i[n].isCalculateColumn){if(a=S.HMi(o,n-1),e){if(0===e.indexOf("=")&&e!==(a&&a.value)){try{(s=l.Lp).parse(new Q.CalcSource(s),e,0,0)}catch(t){return void S._Mi()}a?((c=L({},a)).value===c.caption&&(c.caption=e),c.value=e,z.zA({cmd:E.VIEW_UPDATE_COLUMN_INFO,columnInfos:[c]})):z.zA({cmd:E.VIEW_Add_COLUMN_INFO,columnInfo:{value:e,caption:e,readonly:!0}})}}else a&&z.zA({cmd:E.VIEW_REMOVE_COLUMN_INFO,value:a.value});S._Mi(),l.il&&(l.il.qMi=!1),S.ZS()}}else S._Mi()}),l.bind(k.Events.ValueChanged+n,function(t,e){var n,i,o,u,a,r,c,s,l,f,d,h,g,o,b,v,M,I,m,N,D,j,C,w,p,x,y,A,T,n=e.newValue,i=e.row,o=e.col,u=e.sheet,a=z.getDataView();if(0===o&&a){if(r=[],l=a.getColumnInfos(!(s=c=void 0),!0),(f=S.CMi[e.row])&&f.isCalculateColumn)c=f.value;else if(f.bMi){for(d=0;d<l.length;d++)if((h=l[d])&&h.cross&&h.cross===f.bMi){s=d;break}}else c=xt(g=u.getValue(i,1,k.SheetArea.viewport,k.ValueType.richText));if(o=a.getColumnInfos(!0),0===e.row&&c===a.name){for(b=0,v=o;b<v.length;b++)h=v[b],r.push(L(L({},h),{visible:n}));for(M=0,I=l;M<I.length;M++)m=I[M],r.push(L(L({},m),{visible:n}))}else if(s!==Z){for(N=0,D=o;N<D.length;N++)(h=D[N]).isCross&&h.RBt===s&&r.push(L(L({},h),{visible:n}));r.push(L(L({},l[s]),{visible:n}))}else if(1===(j=u.getCell(i,1).textIndent())){for(C=0,w=o;C<w.length;C++)if(h=w[C],((0,O.tIi)(h.caption)===c||h.value===c)&&!h.isGroup){r.push(L(L({},h),{visible:n}));break}}else for(x=(p=function(t){return"string"==typeof t?t.substring(0,t.indexOf(".")):""})(o[i-1].value),y=0,A=o;y<A.length;y++)if("string"==typeof(T=(h=A[y]).value)&&-1!==T.indexOf(x)&&-1!==T.indexOf("."+c)&&!h.isGroup){r.push(L(L({},h),{visible:n}));break}z.zA({cmd:E.VIEW_UPDATE_COLUMN_INFO,columnInfos:r}),S.CMi=S.HMi(a),S.ZS()}}),r=function(t){var t=S.CMi[t].nIi;return!N(t)&&0<t.indexOf(".")},u=function(t){var t=S.CMi[t].nIi;return!N(t)&&0<t.indexOf(".")&&S.eIi().isLookupField(t)},e=function(t){return!N(t)&&!N(S.oIi)&&0<t.indexOf(".")},a=function(t){var t=S.CMi[t].nIi;return e(t)&&!S.mLt(t)},c=function(t){var t=S.CMi[t].nIi;return e(t)&&S.mLt(t)},s=function(t){var t,e,n,e,t=S.CMi[t],e=t.yBt,n=t.nIi;S.uIi=n,e?(S.oIi=n,S.cIi=[],S.rIi&&-1<S.rIi.indexOf(".")&&(S.rIi=void 0,S.aIi=-1,S.wMi=-1),S.AMi=!0,S.sIi(!0),S.MIi(!1),S.IIi(),S.AMi=!1):G(t)&&(e=S.gIi(t.bMi),S.NIi=S.CMi.filter(G).indexOf(t),S.cIi=S.lIi(),S.options.groupAreaVisible?(S.oIi=e.over,S.rIi&&-1<S.rIi.indexOf(".")&&(S.rIi=void 0,S.aIi=-1,S.wMi=-1),S.AMi=!0,S.sIi(!0),S.MIi(!1),S.IIi(),S.AMi=!1):S.options.crossAreaVisible&&S.IIi())},f={},S.DIi=function(t){var e,t,n,e,n,i;t.target===l.Dg()&&(e=S.fIi(l,t))&&!S.$Mi&&(f={x:t.x,y:t.y},t=e.row,n=e.col,!N(t))&&0<t&&!N(n)&&(u(t)?s(t):!a(t)&&(e.cellTypeHitInfo&&e.cellTypeHitInfo.outlineColumnHitInfo&&(S.dIi=!0),n=void 0,"string"!=typeof(e=l.getValue(t,1))?n=e=l.getFormula(t,1):S.CMi[t].isRelationship?(n=S.hIi(l,t)+"."+e,S.TIi=!1):(n=xt(i=l.getValue(t,1,k.SheetArea.viewport,k.ValueType.richText)),S.TIi=!0),S.CMi[t].isRelationship||!wt(S.CMi[t])||S.options.crossAreaVisible)&&(S.rIi=n,o=S.LMi.getBoundingClientRect(),S.aIi=t,S.wMi=t,s(t)))},S.bIi=function(t){var e,n,n,i,e,t,e=S.rIi,n=t.x!==f.x||t.y!==f.y;if(e&&n){if(S.AIi(t,e,o,S.LMi),(n=S.fIi(l,t))&&(i=n.row,e=n.col,!N(e))&&i&&i!==S.wMi){if(r(i))return;l.t4(i,1)}(t=l.Dg())&&(t.style.cursor="move"),S.xMi&&(S.xMi.style.cursor="move"),S.dIi=!1}},S.vIi=function(t){var e,n,i,n,o,u,a,n,o,t,u,e;S.rIi&&((n=S.fIi(l,t))&&!S.dIi&&(i=n.row,n=n.col,o=z.jIi,u=S.aIi,N(i)||N(n)||!(i!==u&&o<i&&o<u||i===u)?(l.t4(S.aIi,0),S.zIi(t.target,S.xMi)&&S.kMi(),S.CIi(t)):(a=z.getDataView())&&!c(u)&&(S.CMi[u].isRelationship&&2===S.CMi[u].textIndent?S.wIi(u,i):S.yIi(u,i),o=!((n=S.CMi[i]).yBt||G(n)||r(i)),S.options.crossAreaVisible)&&o&&(S.rIi=void 0,S.TIi=void 0,S.aIi=-1,S.wMi=-1,S.cIi=Z,S.oIi=Z,S.NIi=void 0,S.mIi=void 0,S.AMi=!0,S.sIi(!1),S.MIi(!0),S.LIi(),S.xIi(),S.AMi=!1)),S.dIi=!1,S.rIi=void 0,S.TIi=void 0,S.aIi=-1,S.wMi=-1,(t=l.Dg())&&(t.style.cursor="default"),S.xMi&&(S.xMi.style.cursor="default"),u=S.SIi)&&(u.style.display="none")},(0,k.GC$)(".".concat(ut)).bind("click",function(){var t,e,n,t=l.getRowCount();S.$Mi||0===t||(e=t+1,l.suspendPaint(),l.ffe(t,1,3,{rowExpand:!1,clearUndoNotInCommand:!1}),S.CMi[t]={isCalculateColumn:!0,checkStatus:!0,value:"",textIndent:1},l.getCell(e,1).locked(!1).textIndent(1),l.outlineColumn.getCollapsed(0)&&l.outlineColumn.setCollapsed(0,!1),l.outlineColumn.refresh(),l.setActiveCell(e,1),l.showCell(t,0,k.VerticalPosition.center,k.HorizontalPosition.center),n=setTimeout(function(){l.startEdit(),clearTimeout(n)},0),l.resumePaint())}),S.mMi&&S.mMi.addEventListener("mousedown",S.DIi,!0),document.addEventListener("mousemove",S.bIi,!0),document.addEventListener("mouseup",S.vIi,!0)},e.prototype.hIi=function(t,e){for(;0<=e;){var n;if(1===t.getCell(e,1).textIndent())return t.getValue(e,1);e--}return""},e.prototype.ZIi=function(n,i){var t,e,o,e,u,a,r,c,s,l,f,d,h,t=this,e=t.eIi();if(t.CMi=t.HMi(e),o=e.getColumnInfos(),e=t.CMi.filter(B),a=(u=t.CMi.filter(function(t,e){return e<n&&G(t)&&!t.isRelationship})).reduce(function(t,e){return t+o.filter(function(t){return t.RBt===e.RBt}).length-1},0),r=n<i?i+1:i,s=(c=t.CMi.filter(function(t,e){return e<r&&G(t)&&!t.isRelationship})).reduce(function(t,e){return t+o.filter(function(t){return t.RBt===e.RBt}).length-1},0),l=t.CMi.filter(function(t,e){return e<n&&wt(t)&&!t.isRelationship}).length,f=t.CMi.filter(function(t,e){return e<i&&wt(t)&&!t.isRelationship}).length,!t.CMi[n].isRelationship&&t.CMi[i].isRelationship)if(l=0,i<n){for(d=i;0<=d;d--)if(!t.CMi[d].isRelationship||2!==t.CMi[d].textIndent){f=i-d;break}}else{for(h=!1,d=i;d<t.CMi.length;d++)if(!t.CMi[d].isRelationship||2!==t.CMi[d].textIndent){f=i-d,h=!0;break}h||(f=i-t.CMi.length)}return{columnInfos:o,columnFieldInfos:e,crossColumnCountBeforeFromRow:a,crossColumnCountBeforeToRow:s,crossRelationFieldCountBeforeFromRow:l,crossRelationFieldCountBeforeToRow:f}},e.prototype.OIi=function(n,t){var e,i,o,i,u,a,r,c,s,l,f,e=this,i=e.eIi();return e.CMi=e.HMi(i),o=i.getColumnInfos(),i=e.CMi.filter(B),a=(u=e.CMi.filter(function(t,e){return e<n&&G(t)})).reduce(function(t,e){return t+o.filter(function(t){return t.RBt===e.RBt}).length-1},0),r=n<t?t+1:t,s=(c=e.CMi.filter(function(t,e){return e<r&&G(t)})).reduce(function(t,e){return t+o.filter(function(t){return t.RBt===e.RBt}).length-1},0),l=0,f=e.EIi(n,t),e.CMi[n].textIndent===e.CMi[t].textIndent&&e.CMi[n].isRelationship&&e.CMi[t].isRelationship&&e.GIi(n,t)&&(f=0),{columnInfos:o,columnFieldInfos:i,crossColumnCountBeforeFromRow:a,crossColumnCountBeforeToRow:s,crossRelationFieldCountBeforeFromRow:0,crossRelationFieldCountBeforeToRow:f}},e.prototype.GIi=function(t,e){for(var n,i,o,u,a,r,n=this,i=n.eIi(),o=n.HMi(i),u="",a=t;0<=a;a--)if(!o[a].isRelationship||2!==o[a].textIndent){u=o[a].value;break}for(r="",a=e;0<=a;a--)if(!o[a].isRelationship||2!==o[a].textIndent){r=o[a].value;break}return u===r},e.prototype.EIi=function(t,e){for(var n,i,o,n,u,a,n=this,i=n.eIi(),o=n.HMi(i),n=e-t,a=t;0<=a;a--)if(!o[a].isRelationship||2!==o[a].textIndent){u=t-a-1;break}return n+u},e.prototype.yIi=function(t,e){var n,i,o,u,a,r,c,s,u,l,f,d,s,r,h,g,b,n=this,i=n.vMi,o=i.getDataView();if(!(n.CMi[t].isRelationship&&1===n.CMi[t].textIndent&&n.CMi[e].isRelationship&&2===n.CMi[e].textIndent||(a=(u=n.ZIi(t,e)).columnInfos,r=u.crossColumnCountBeforeFromRow,c=u.crossColumnCountBeforeToRow,f=t-1-(s=u.crossRelationFieldCountBeforeFromRow),d=e-1-(u=u.crossRelationFieldCountBeforeToRow),(s=t-1+(l=n.pIi(o).length||0)-s+r)===(r=e-1+l-u+c)))){if(h=1,G(n.CMi[t])&&(g=n.kIi(o,s),h=a.filter(function(t){return t.RBt===g}).length),n.CMi[t].isRelationship)for(b=t+(h=1);b<n.CMi.length&&2===n.CMi[b].textIndent;b++)h++;i.zA({cmd:E.VIEW_MOVE_COLUMN,fromColumnOptionIndex:f,toColumnOptionIndex:d,fromColumnIndex:s,toColumnIndex:r,count:h}),n.Sze(),n.ZS()}},e.prototype.Sze=function(){var t,e,n,t=this.vMi,e=t.getDataView(),n=t.Mf.rowFilter();t.suspendPaint(),t.EPt(),n.UIi(),t.resetNewView(e.ILt,e.aPt,e.LEt),n.QIi(),t.jPt(),t.resumePaint()},e.prototype.wIi=function(t,e){var n,i,o,u,a,r,c,s,u,l,f,d,s,r,e,h;t!==e&&(o=(i=(n=this).vMi).getDataView(),a=(u=n.OIi(t,e)).columnInfos,r=u.crossColumnCountBeforeFromRow,c=u.crossColumnCountBeforeToRow,f=t-1-(s=u.crossRelationFieldCountBeforeFromRow),d=e-1-(u=u.crossRelationFieldCountBeforeToRow),(s=t-1+(l=n.pIi(o).length||0)-s+r)!==(r=e-1+l-u+c))&&(e=1,n.CMi[t].isRelationship&&1===n.CMi[t].textIndent&&(h=n.kIi(o,s),e=a.filter(function(t){return t.RBt===h}).length),i.zA({cmd:E.VIEW_MOVE_COLUMN,fromColumnOptionIndex:f,toColumnOptionIndex:d,fromColumnIndex:s,toColumnIndex:r,count:e}),n.Sze(),n.ZS())},e.prototype.sIi=function(t){var e=this,n=e.EMi;(e.options.crossAreaVisible=t)?n.classList.remove(S):n.classList.add(S)},e.prototype.setGroupAreaVisible=function(t){this.MIi(t)},e.prototype.MIi=function(t){var e=this,n=e.SMi,i=e.GMi;(e.options.groupAreaVisible=t)?(n.classList.remove(S),i.classList.remove(S)):(n.classList.add(S),i.classList.add(S))},e.prototype.AIi=function(t,e,n,i){var o,u,a,r,a,o=this,u=o.SIi,a=document.documentElement,r=a&&a.scrollTop||0,a=a&&a.scrollLeft||0;u&&u.parentElement&&u.parentElement!==i&&(u.parentElement.removeChild(u),u=this.SIi=void 0),u||((u=o.SIi=document.createElement("span")).className="gc-table-sheet-move-span",i.appendChild(u)),u.textContent=e,u.style.top=t.pageY+5-r-n.top+"px",u.style.left=t.pageX-50-a-n.left+"px",u.style.display="block"},e.prototype.fIi=function(t,e){var n=t.uw();return t.hitTest(e.pageX-n.left,e.pageY-n.top,!1)},e.prototype.PMi=function(){var o,u,a,o=this,u=o.Tp(),a=o.vMi;a.bind(k.Events.ColumnChanged+n,function(t,e){var n,i,n,n,n,n=e.sheetArea,i=a.getDataView();1!==n&&3!==n||("isVisible"===e.propertyName?(n=e.sheet.getValue(0,e.col,k.SheetArea.colHeader),0<=(n=o.nv(i,n))&&(u.suspendPaint(),u.suspendEvent(),u.setValue(n,0,e.newValue),u.resumeEvent(),u.resumePaint())):"addColumns"!==e.propertyName&&"deleteColumns"!==e.propertyName||(u.suspendPaint(),u.suspendEvent(),n=o.RIi(a),o.FMi(u,n),u.resumeEvent(),u.resumePaint()),o.CMi=o.HMi(i))})},e.prototype.Tp=function(){if(this.mMi){var t=(0,k.GC$)(this.mMi).data("workbook");if(t)return t.getSheet(0)}return null},e.prototype.RIi=function(t){var e,n,i,o,u,a,r,r,e=t.getDataView();if(e){for(i=[(n=this.HMi(e))[0]],u=0,a=(o=t.Mf).getColumnCount();u<a;u++)r=o.getValue(0,u,k.SheetArea.colHeader),0<=(r=this.nv(e,r))&&i.push(n[r]);return i}return[]},e.prototype.nv=function(t,e){var n,i;if(t)for(n=t.getColumnInfos(!0),i=0;i<n.length;i++)if(n[i].caption===e||n[i].value===e)return i+1;return-1},e.prototype.kIi=function(t,e){var e,t,e=t.BPt(e),t=t.yLt[e];return t&&t.RBt},e.prototype.HMi=function(t,e){var n,i,o,u,a,r,c,s,l,f,d,h,f,g,n=this;if(t){for(i=[],u=t.getColumnInfos(!(o=!1),!0),a=!N(e),r=function(){return a&&i.length-1>=e},c=0;c<u.length;c++){if("string"==typeof(s=u[c]).value&&0===s.value.trim().indexOf("="))i.push({value:s.value,textIndent:1,checkStatus:!1!==s.visible,isCalculateColumn:!0});else if(N(s.cross))if("string"==typeof s.value&&t.FPt(s.value)&&1===s.value.split(".").length)if(u[c].isRelationship){for(l=s.value,f=!this.PIi(u,l)||!1,i.push({value:l,textIndent:1,checkStatus:!1!==s.visible,setCollapsed:f,isRelationship:!0}),d=c+1;this.YIi(u,d,l);)"string"==typeof(h=u[d].value)&&i.push({value:h.substring(h.indexOf(".")+1),textIndent:2,checkStatus:!1!==u[d].visible,needCheckBox:!0,isRelationship:!0}),d++;c=d-1}else i.push({value:n.$t(s),textIndent:1,checkStatus:!1!==s.visible}),n.WIi(s.value,n.YMi,t).forEach(function(t){return i.push(t)});else{if("string"==typeof s.value&&"_ganttColumn"===s.value){if(r())return s;continue}g=f=void 0,"string"==typeof s.value&&-1===s.value.indexOf(".")&&(f=t.isLookupField(s.value),s.yBt=f,g=s.value),i.push({value:n.$t(s),textIndent:1,checkStatus:!1!==s.visible,yBt:f,nIi:g})}else i.push({value:n.$t(s),bMi:s.cross,RBt:s.RBt,textIndent:1,checkStatus:!1!==s.visible});if((N(s.visible)||s.visible)&&(o=!0),r())return s}return a?Z:(i.unshift({value:t.name,textIndent:0,checkStatus:o}),i)}return[]},e.prototype.PIi=function(t,e){for(var n,i,n=0;n<t.length;n++)if("string"==typeof(i=t[n]).value&&-1!==i.value.indexOf(e)&&!1!==i.visible)return!0;return!1},e.prototype.YIi=function(t,e,n){var t;return!(e>=t.length)&&-1!==(t=t[e]).value.indexOf(n)&&-1===t.value.indexOf("=")},e.prototype.$t=function(t){var e,n,t,t,i,o,e=[],n=t.value instanceof Function?t.value.name:t.value,t=(0,O.tIi)(t.caption)||n;return e.push({text:t}),(t=this.options.showSource)===mt.field?"="!==n[0]&&(i=n):t===mt.formula?"="===n[0]&&(i=n):t===mt.all&&(i=n),i&&e.push({style:{foreColor:"lightgrey"},text:o="("+i+")"}),{richText:e}},e.prototype.VMi=function(t,e){t.options.showVerticalScrollbar=e},e.prototype.FMi=function(d,a){var r,t,e,n,i,h,g,o,u,c,s,l,f,b,v,r=this,t=a.length,e=d.outlineColumn,n,i=this.options.showEditButton,h=this.vMi,g=h.Mf,o={};for(d.suspendEvent(),d.suspendPaint(),u=0;u<d.getRowCount();u++)e.getCollapsed(u)&&(e.setCollapsed(u,!1),o[(c=d.getCell(u,1)).value()]=c.textIndent()),a[u]&&!N(a[u].setCollapsed)&&a[u].setCollapsed&&(c=d.getCell(u,1)).textIndent()<=1&&(o[c.value()]=c.textIndent());for(e.reset(),d.setRowCount(t),d.clear(0,0,t,2,3,k.StorageType.data|k.StorageType.style),s=0;s<t;s++)l=a[s],c=d.getCell(s,1).textIndent(l.textIndent),l.isCalculateColumn?d.setFormula(s,1,l.value):c.value(l.value),(l.textIndent<=1||l.needCheckBox)&&d.getCell(s,0).value(l.checkStatus).cellType(new Y.CheckBox),f=[],Ct(l)&&f.push({useButtonStyle:!1,hoverBackColor:"white",imageType:k.ButtonImageType.custom,imageSrc:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTZweCIgaGVpZ2h0PSIxNnB4IiB2aWV3Qm94PSIwIDAgMTYgMTYiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8dGl0bGU+bG9vayB1cCBjb2x1bW4xPC90aXRsZT4KICAgIDxnIGlkPSJsb29rLXVwLWNvbHVtbjEiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxwYXRoIGQ9Ik0zLDMgTDUsMyBMNSw0IEwzLDQgTDMsMyBaIE0zLDYgTDUsNiBMNSw3IEwzLDcgTDMsNiBaIE0zLDkgTDUsOSBMNSwxMCBMMywxMCBMMyw5IFogTTMsMTIgTDUsMTIgTDUsMTMgTDMsMTMgTDMsMTIgWiBNNiwzIEwxNCwzIEwxNCw0IEw2LDQgTDYsMyBaIE02LDYgTDE0LDYgTDE0LDcgTDYsNyBMNiw2IFogTTYsOSBMMTQsOSBMMTQsMTAgTDYsMTAgTDYsOSBaIE02LDEyIEwxNCwxMiBMMTQsMTMgTDYsMTMgTDYsMTIgWiIgaWQ9IuW9oueKtue7k+WQiCIgZmlsbD0iIzY2NjY2NiI+PC9wYXRoPgogICAgPC9nPgo8L3N2Zz4=",visibility:k.ButtonVisibility.always,i4i:!0,imageSize:{height:20,width:20}}),G(l)&&(f.push({useButtonStyle:!1,hoverBackColor:"white",imageType:k.ButtonImageType.custom,imageSrc:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMzJweCIgaGVpZ2h0PSIzMnB4IiB2aWV3Qm94PSIwIDAgMTYgMTYiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8dGl0bGU+Y3Jvc3MgY29sdW1uMTwvdGl0bGU+CiAgICA8ZyBpZD0iY3Jvc3MtY29sdW1uMSIgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+CiAgICAgICAgPGcgaWQ9Iue8lue7hCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMS4wMDAwMDAsIDIuMDAwMDAwKSIgZmlsbD0iIzY2NjY2NiI+CiAgICAgICAgICAgIDxwYXRoIGQ9Ik0xMywwIEwxMywzLjUzMSBMMTIsMi42OTcgTDEyLDEgTDksMSBMOSw1IEw4LDUgTDgsMSBMNSwxIEw1LDEwIEw0LDEwIEw0LDEgTDEsMSBMMSwxMSBMMy42OTcsMTEgTDQuNTMxLDEyIEwwLDEyIEwwLDAgTDEzLDAgWiBNMTMsOS40NjggTDEzLDEyIEwxMC40NjksMTIgTDExLjMwMywxMSBMMTIsMTEgTDEyLDEwLjMwMiBMMTMsOS40NjggWiIgaWQ9IuW9oueKtue7k+WQiCIgZmlsbC1ydWxlPSJub256ZXJvIj48L3BhdGg+CiAgICAgICAgICAgIDxwb2x5Z29uIGlkPSLlvaLnirbnu5PlkIgiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDEwLjAwMDAwMCwgOS4wMDAwMDApIHNjYWxlKC0xLCAtMSkgdHJhbnNsYXRlKC0xMC4wMDAwMDAsIC05LjAwMDAwMCkgIiBwb2ludHM9IjggMTQgNSAxMS41IDggOSA4IDExIDEyIDExIDEyIDcgMTAgNyAxMi41IDQgMTUgNyAxMyA3IDEzIDEyIDggMTIiPjwvcG9seWdvbj4KICAgICAgICA8L2c+CiAgICA8L2c+Cjwvc3ZnPg==",visibility:k.ButtonVisibility.always,i4i:!0,imageSize:{height:16,width:16}}),f.push({imageType:k.ButtonImageType.clear,visibility:k.ButtonVisibility.always,i4i:!0,imageSize:{height:18,width:18},command:function(t,e,n,i){var o,o,u,o=h.getDataView();if(o){for(o=o.uPt(a.filter(B).indexOf(a[e])),h.zA({cmd:E.REMOVE_CROSS_COLUMN,index:o}),r.cIi=Z,r.oIi=Z,r.NIi=void 0,r.mIi=void 0,u=0;u<a.length;u++)if(a[u]&&B(a[u])){t.t4(u,1);break}r.AM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0NzUgMTMuNTk5MSAwLjA2Njk0MTdDMTMuNzA1NyAwLjExMTEzNiAxMy44MDI2IDAuMTc1OTExIDEzLjg4NDIgMC4yNTc1NjFMMTUuNzQ2OCAyLjEyMDJDMTUuODI4NSAyLjIwMTc2IDE1Ljg5MzIgMi4yOTg2MiAxNS45Mzc0IDIuNDA1MjNDMTUuOTgxNiAyLjUxMTg0IDE2LjAwNDQgMi42MjYxMSAxNi4wMDQ0IDIuNzQxNTJDMTYuMDA0NCAyLjg1NjkzIDE1Ljk4MTYgMi45NzEyMSAxNS45Mzc0IDMuMDc3ODJDMTUuODkzMiAzLjE4NDQzIDE1LjgyODUgMy4yODEyOCAxNS43NDY4IDMuMzYyODRMMTMuODg1IDUuMjI0NkwxMy44ODQyIDUuMjI1NDhWNS4yMjU0OFoiIGZpbGw9IiM2NjY2NjYiLz4KPC9nPgo8ZGVmcz4KPGNsaXBQYXRoIGlkPSJjbGlwMF8xOV8xNTExIj4KPHJlY3Qgd2lkdGg9IjE2IiBoZWlnaHQ9IjE2IiBmaWxsPSJ0cmFuc3BhcmVudCIvPgo8L2NsaXBQYXRoPgo8L2RlZnM+Cjwvc3ZnPgo=",visibility:k.ButtonVisibility.onSelected,i4i:!0,command:function(t,e,n,i){var o,u,a,e,r,c,s,l,s,l,f,o=h.getDataView();if(o&&(u=d.getText(e,n)))for(0!==u.indexOf("=")?0<=(e=u.indexOf("("))&&(u=u.substring(0,e)):a=!0,r=o.getColumnInfos(),c=0;c<r.length;c++)if(s=r[c],l=a?s.value:(0,O.tIi)(s.caption||s.value),!s.isGroup&&l===u){s=c,l=g.getSelections(),f=[(0,k.Ec)(-1,s,-1,1)],g.EA(l,f),g.setSelection(-1,s,-1,1),g.showCell(g.Tb||0,s,k.VerticalPosition.nearest,k.HorizontalPosition.nearest),g.jA(l);break}}}),0<f.length&&c.cellButtons(f);for(b in d.outlineColumn.options({columnIndex:1,showIndicator:!0}),d.outlineColumn.options().collapseIndicator=M.ARROW_RIGHT,d.outlineColumn.options().expandIndicator=M.ARROW_DOWN,d.outlineColumn.refresh(),d.showRowOutline(!1),e=d.outlineColumn,o)if(o.hasOwnProperty(b))for(v=o[b],u=0;u<d.getRowCount();u++)if((c=d.getCell(u,1)).value()===b&&c.textIndent()===v){e.setCollapsed(u,!0);break}d.resumePaint(),d.resumeEvent()},e.prototype.kMi=function(){var t,e,n,i,o,u,a,o,r,c,t=this,e=t.vMi,n=t.rIi,i=e.getDataView();i&&t.options.groupAreaVisible&&(o=i.oPt,u=(0,k.RF)(e.lMi)||[],n?(a=void 0,a=t.TIi?this.CMi.filter(B).indexOf(this.CMi[t.aIi]):this.CMi.indexOf(this.CMi[t.aIi-1]),o&&o.length&&(a=i.ALt()[a]),o=i.ILt[a],r=o&&o.value,0===(c=u.filter(function(t){return t.field===r})).length&&(u.push({caption:(0,O.zze)(n),field:r}),e.zA({cmd:E.GROUP_OPTIONS,groupOptions:u}),t.ZS())):t.updatePanelLayout())},e.prototype.pIi=function(t){var e,t,n,i,o,e=[];if((t=(t=t||this.eIi())&&t.getColumnInfos())&&t.length)for(n=0,i=t;n<i.length;n++)(o=i[n]).isGroup&&e.push(o);return e},e.prototype.yMi=function(){var t,e,n,i,o,u,a,t=this.options.fieldAreaVisible,e=this.options.crossAreaVisible,n=this.options.groupAreaVisible,i="",o="",u="",a="";return i='<div class="'.concat(l,'">\n <span class="gc-table-sheet-field-header">').concat((0,O.getSR)().GroupPanelFieldsHeader,'\n <span class="').concat(ut,"\" title='").concat((0,O.getSR)().GroupPanelAddCalculateColumn,"'></span>\n </span>\n <div class=\"").concat(_,'"></div>\n </div>'),o=this.FIi(e),u='<div class="'.concat(c,'">\n <span class="gc-table-sheet-group-header">').concat((0,O.getSR)().GroupPanelGroupsHeader,'</span>\n <ul class="').concat(f,'">\n <span class="gc-table-sheet-group-tip">').concat((0,O.getSR)().GroupPanelTip,"</span>\n </ul>\n </div>"),a='<div class="'.concat(s,'"></div>'),!1===t&&(i=i.replace(l,l+" "+S),u=u.replace(c,"".concat(c," half-height")),a=a.replace(s,"".concat(s," half-height"))),!1===n&&(u=u.replace(c,c+" "+S),a=a.replace(s,s+" "+S)),!1===e&&!1===n&&(i=i.replace(l,"".concat(l," total-height"))),'<div class="'.concat(F,'">\n ').concat(i,"\n ").concat(u,"\n ").concat(o,"\n ").concat(a,'\n </div>\n <div class="').concat(at,'" style="display:none;"></div>')},e.prototype.updatePanelLayout=function(){this.IIi(),this.LIi(),this.xIi(),this._Mi()},e.prototype.getBindingTable=function(){return this.vMi},e.prototype.LIi=function(){this.SWt(),this.JIi(),this.Fz()},e.prototype.xIi=function(){var e,t,n,t,e=this;this.GMi&&(this.XIi(),t=null==(t=(n=function(){var t;return null==(t=e.GMi)?void 0:t.querySelector(".".concat(m))})())?void 0:t.scrollTop,this.GMi.innerHTML=this.KIi(),n()&&(n().scrollTop=t),this._Ii(),this.qIi=!1)},e.prototype.JIi=function(){var t,e,n,i,o,u,a,t,e=this.vMi.lMi,n=this.xMi;if(e&&n){for(i="",o=void 0,u=e.length,this.jMi=this.jMi>=u?u-1:this.jMi,a=0;a<e.length;a++)o=e[a],i+=this.$Ii(o,a);n.innerHTML=i,n.style.border="solid 1px lightgrey",this.igi=n.querySelector(".".concat(d))}else this.tgi()},e.prototype._Mi=function(){var t,t;this.mMi&&(t=this.vMi,t=this.HMi(t.getDataView()),this.CMi=t,this.FMi(this.Tp(),t))},e.prototype.tgi=function(){var t,t,t=this.xMi;t&&(t.innerHTML='<span class="gc-table-sheet-group-tip">'.concat((0,O.getSR)().GroupPanelTip,"</span>"),t.style.border="",this.jMi=0),(t=this.GMi)&&(t.innerHTML="")},e.prototype.Fz=function(){var u,a,t,r,c,s,e,l,u=this,a=u.vMi,t=u.BMi,r=t&&t.Dg(),c=(0,k.RF)(a.lMi),s=u.xMi;s&&(e=u.igi,l=u.LMi.getBoundingClientRect(),(0,k.GC$)(".".concat(h),s).bind("click",function(t){var e,n,i,e=t.target.className;e===X?(i=(n=(0,k.GC$)(t.target).parent()).attr(v),u.ngi(i)):e===bt&&(i=(n=(0,k.GC$)(t.target).parent()).attr(v),u.PWe(i))}).bind("mousedown",function(t){var e,t,n,t,e=t.target,t=t.target.className,n=!1;-1<t.indexOf(X)||(-1<t.indexOf(nt)?(e=e.parentElement,n=!0):-1<t.indexOf(h)&&(n=!0),n&&(t=(0,k.GC$)(e).attr(v),u.egi=t,l=u.LMi.getBoundingClientRect(),u.jMi!==+t&&(u.jMi=+t,u.XIi(),u.ogi(e),u._Ii()),u.ugi=e))}),u.cgi=function(t){var e,n,i,o,n,o,n,e,n,o,e=u.egi;e!==Z&&e!==g&&(n=(c=(0,k.RF)(a.lMi))[e].caption||c[e].field,u.AIi(t,n,l,u.LMi),r&&(r.style.cursor="move"),n=!(u.Ti.style.cursor="move"),(o=(i=t.target).parentElement)&&-1<o.className.indexOf(h)?(i=o,n=!0):-1<i.className.indexOf(h)&&(n=!0),o=u.ugi,n&&o!==i&&((n=i.getAttribute(v))<e?(o.className=o.className.replace(D,"").replace(j,"").trim(),i.className=i.className+" ".concat(D)):e<n?(o.className=o.className.replace(D,"").replace(j,"").trim(),i.className=i.className+" ".concat(j)):o.className=o.className.replace(D,"").replace(j,"").trim(),u.ugi=i),n=(e=s.getBoundingClientRect()).top+document.documentElement.scrollLeft,o=e.bottom+document.documentElement.scrollTop,t.pageY<n?s.scrollTop=s.scrollTop-10:t.pageY>o&&(s.scrollTop=s.scrollTop+10))},u.rgi=function(t){var e,t,t,t,n,n,e=u.egi,t=t.target;c=(0,k.RF)(a.lMi),e!==Z&&(u.ugi.className=u.ugi.className.replace(D,"").replace(j,"").trim(),u.zIi(t,u.xMi)?(t=u.ugi)&&(t=(0,k.GC$)(t).attr(v))!==e&&(n=c.splice(e,1)[0],c.splice(t,0,n),u.jMi=+t,a.zA({cmd:E.GROUP_OPTIONS,groupOptions:c}),u.ZS()):u.ngi(e)),u.egi=Z,u.ugi=Z,r&&(r.style.cursor="default"),u.Ti.style.cursor="default",(n=u.SIi)&&(n.style.display="none")},document.addEventListener("mouseup",u.rgi,!0),document.addEventListener("mousemove",u.cgi,!0),(0,k.GC$)(".".concat(d)).bind("blur",function(t){"none"!==e.style.display&&(u.agi(t.target),e.style.display="none")}).bind("keydown",function(t){13===t.keyCode?(u.agi(t.target),e.style.display="none"):27===t.keyCode&&(e.style.display="none")}),(0,k.GC$)(".".concat(f)).bind("dblclick",function(t){var e;t.target.className===nt&&u.sgi(t)}))},e.prototype.Lze=function(t){var e;return t?t.getColumnInfos(!0,!0).filter(function(t){return N(t.cross)}).map(function(t){var e=t.value instanceof Function?t.value.name:t.value;return{text:(0,O.tIi)(t.caption)||e,value:e}}):[]},e.prototype.Mgi=function(){var t,e,n,i,t=document.createElement("li");return t.className=$,e=this.Lze(this.vMi.getDataView()),n=this.vMi.options.groupLayout.mode===R.GroupLayoutMode.tabular,i=this.vMi.options.groupLayout.position,t.innerHTML=Mt({sliceField:"",caption:"",formula:"",columnList:e,showSlice:n,position:i}),t},e.prototype.ogi=function(t){var e,n,i,o,u,e,n,i=this.xMi.querySelectorAll(".".concat(h));for(o in i)i.hasOwnProperty(o)&&((u=i[o]).className=u.className.replace("selected","").trim(),u===t)&&(u.className=u.className+" selected");this.GMi&&(this.GMi.innerHTML=this.KIi())},e.prototype.KIi=function(){var t,e,n,i,e,o,o,u,a,r,c,s,l,f,d,h,d,g,t,b,e=this,n=e.jMi,i="",e=e.vMi,o=e.lMi,o=o&&o[n],u=o&&o.field,a="",r=o&&o.summaryFields,c=this.Lze(this.vMi.getDataView()),s=e.options.groupLayout&&(0,W.isGroupOutlineCondensedLayout)(e.options.groupLayout.mode);if(r)for(l=0;l<r.length;l++)h="",(d=(f=r[l]).slice)&&(h="string"==typeof d?d:d.field),d=s?f.caption:f.caption||f.formula,g=f.relateTo,t=f.position||(null==(t=this.vMi.options.groupLayout)?void 0:t.position)||"header",g=g||this.vMi.getDataView().JGe(f.formula,!0)[0],b=this.vMi.options.groupLayout.mode===R.GroupLayoutMode.tabular,a+='<li class="'.concat($,'" ').concat(v,"=").concat(n," ").concat(I,"=").concat(l,">\n ").concat(Mt({formula:f.formula,caption:d,sliceField:h,columnList:c,relateTo:g,position:t,showSlice:b}),"\n </li>");return i=u?'<div class="gc-table-sheet-summary-header">\n <span class="gc-table-sheet-summary-label">'.concat(u,'</span>\n <span class="').concat(it,'" title="').concat((0,O.getSR)().GroupPanelItemAddCalculation,'"></span>\n <span class="gc-table-sheet-summary-remove" title="').concat((0,O.getSR)().GroupPanelItemRemoveAll,'"></span>\n </div>\n <ul class="').concat(m,'">\n ').concat(a,"\n </ul>"):i},e.prototype._Ii=function(){var f,d,h,n,f=this,n=f.pMi;(0,k.GC$)(".".concat(m)).bind("change",function(t){var t,e,n,t,e,n,i,i,o,t,u,t,a,r,c,s,t,l,l,t=(0,k.GC$)(t.target),e=t.attr("current-data"),n=t.val(),t=t.parent();if(e!==n&&t&&t[0]&&"="!==n){if(e=f.vMi,n=(0,k.RF)(e.lMi),i=f.jMi,i=n&&n[i],o=JSON.parse(JSON.stringify(n)),u=(t=t.parent()).attr(I),a=(t=It(t)).formulaInputValue,r=t.captionInputValue,c=t.sliceInputValue,s=t.relateToValue,t=t.positionValue,i.summaryFields||(i.summaryFields=[]),c&&""!==c){if(-1===c.indexOf("(")&&(l=c.replace("=",""),!f.Igi(c=l)))return}else c=Z;(l=i.summaryFields[u])?(l.formula=a,l.caption=r||a,l.slice=""===c?Z:c,l.position=t,l.relateTo=s):i.summaryFields.push({formula:a,caption:r||a,slice:""===c?Z:c,position:t,relateTo:s});try{e.zA({cmd:E.GROUP_OPTIONS,groupOptions:n})}catch(t){e.groupBy(o)}f.ZS()}f.ggi(d,h)}),(0,k.GC$)(".".concat(w)).bind("focus",function(t){var t=t.target,e=(0,k.GC$)(t).val()||"=";(d=new P.FormulaTextBox(t,g,g)).Ngi=!0,h=new k.Workbook(n,{allowDynamicArray:!0,allowUndo:!1}),f.XMi(h),f.lgi(h),d.workbook(h),d.text(e)}).bind("blur",function(t){var t=(0,k.GC$)(t.target),e;"="===t.val()&&t.val(""),f.ggi(d,h)}).bind("keydown",function(t){13===t.keyCode&&(f.ggi(d,h),t.target.blur())}),(0,k.GC$)(".".concat(b)).bind("focus",function(t){var t=t.target,e=(0,k.GC$)(t).val()||"=";(d=new P.FormulaTextBox(t,g,g)).Ngi=!0,h=new k.Workbook(n,{allowDynamicArray:!0,allowUndo:!1}),f.XMi(h),f.lgi(h),d.workbook(h),d.text(e)}).bind("blur",function(t){var t=(0,k.GC$)(t.target),e;"="===t.val()&&t.val(""),f.ggi(d,h)}).bind("keydown",function(t){13===t.keyCode&&(f.ggi(d,h),t.target.blur())}),(0,k.GC$)(".".concat(s)).bind("mouseup",function(t){var e,n,i,o,u,a,r,c,s,l,c,s,n,e,n=t.target.className;"gc-table-sheet-summary-remove"===n?(i=f.vMi,o=(0,k.RF)(i.lMi),u=f.jMi,(a=o&&o[u]).summaryFields=[],i.zA({cmd:E.GROUP_OPTIONS,groupOptions:o}),f.ZS()):n===it?(c=(r=f.GMi).querySelector(".".concat(m)))&&!f.qIi&&(f.qIi=!0,f.XIi(),s=f.Mgi(),c.appendChild(s),f._Ii()):"gc-table-sheet-summary-item-remove-icon"===n&&(c=(l=(0,k.GC$)(t.target)).parent())&&c[0]&&(i=f.vMi,o=(0,k.RF)(i.lMi),u=f.jMi,a=o&&o[u],(n=(s=c.parent()).attr(I))&&a.summaryFields?(a.summaryFields.splice(parseInt(n,10),1),i.zA({cmd:E.GROUP_OPTIONS,groupOptions:o}),f.ZS()):n||(s.remove(),f.ggi(d,h),f.qIi=!1))})},e.prototype.lgi=function(t){var t=t.getActiveSheet();delete t.Qy().PUt.enter,t.setRowCount(1),t.setColumnCount(1)},e.prototype.ggi=function(t,e){t&&t.destroy&&t.destroy(),e&&e.destroy&&e.destroy()},e.prototype.Igi=function(t){var e,n=this.vMi.getDataView(),n=n&&n.getColumnInfos(!0).map(function(t){return t.value});return!!(n&&-1<n.indexOf(t))},e.prototype.XMi=function(t){var e,n,n,i,o,u,a,r,e,n=this.vMi.getDataView(),n=n&&n.getColumnInfos(!0,!0);if(n)for(this.Dgi&&(i=this.Dgi.map(function(t){return{value:t.attribute}}),n=n.concat(i)),o=0,u=n;o<u.length;o++)(r=(a=u[o]).value)&&"string"==typeof r&&-1===r.indexOf("=")&&a.cross===Z&&t.zwt(t.hyt,r,"=A1",0,0,!0,(0,O.getSR)().GroupPanelDropDownCalcField+" "+r)},e.prototype.XIi=function(){(0,k.GC$)(".".concat(m)).unbind("change"),(0,k.GC$)(".".concat(w)).unbind("focus"),(0,k.GC$)(".".concat(w)).unbind("blur"),(0,k.GC$)(".".concat(w)).unbind("keydown"),(0,k.GC$)(".".concat(b)).unbind("focus"),(0,k.GC$)(".".concat(b)).unbind("blur"),(0,k.GC$)(".".concat(b)).unbind("keydown"),(0,k.GC$)(".".concat(s)).unbind("mouseup")},e.prototype.sgi=function(t){var e,n,t,i,e,n=this.igi,t=(0,k.GC$)(t.target).parent(),i=t.attr(K);n.style.display="inline",n.value=i,n.style.left="",n.style.width="",t.append(n),n.focus()},e.prototype.ngi=function(t){var e,n,i,t,o,e=this,n=e.vMi,i=(0,k.RF)(n.lMi),t=i[t],o=t&&t.field;(i=i.filter(function(t){return t.field!==o})).length?n.zA({cmd:E.GROUP_OPTIONS,groupOptions:i}):n.zA({cmd:E.GROUP_OPTIONS,groupOptions:[]}),e.ZS()},e.prototype.PWe=function(t){var e,t,e=this.vMi,t=e.lMi[t];e.ki(k.Events.TableSheetGroupFieldSetting,{groupOption:t})},e.prototype.SWt=function(){var t,e,t=this,e=t.xMi;(0,k.GC$)(".".concat(h),e).unbind("click"),(0,k.GC$)(".".concat(h),e).unbind("mousedown"),(0,k.GC$)(".".concat(f)).unbind("dblclick"),(0,k.GC$)(".".concat(d)).unbind("blur"),(0,k.GC$)(".".concat(d)).unbind("keydown"),(0,k.GC$)(".".concat(it)).unbind("click"),document.removeEventListener("mouseup",t.rgi,!0),document.removeEventListener("mousemove",t.cgi,!0)},e.prototype.agi=function(t){var e,n,t,i,o,u,a,r,t,c,s,e=this,n=t.value;n&&(i=(t=(0,k.GC$)(t).parent()).attr(q),o=t.attr(K),u=t.attr(tt),a=t.attr(et),r=t.attr(v),t=t.attr(I),c=e.vMi,s=(0,k.RF)(c.lMi),i||o?n!==o&&s&&(s[r].caption=(0,O.zze)(n),c.zA({cmd:E.GROUP_OPTIONS,groupOptions:s})):(u||a)&&n!==u&&s&&(s[r].summaryFields[t].caption=n,c.zA({cmd:E.GROUP_OPTIONS,groupOptions:s})),e.ZS())},e.prototype.$Ii=function(t,e){var n,t,i,n=t.field,t=(0,O.tIi)(t.caption)||n,i=e===this.jMi?" selected":"";return'<li class="'.concat(h).concat(i,'" ').concat(K,'="').concat(r(t),'" ').concat(q,'="').concat(n,'" ').concat(v,"=").concat(e,'>\n <span class="').concat(nt,'">').concat(r(t),'</span>\n <span class="').concat(X,'" title="').concat((0,O.getSR)().GroupPanelItemRemove,'"></span>\n ').concat(vt(this.options.showGroupSetting,'<span class="'.concat(bt,'"></span>')),'\n </li>\n <input class="').concat(d,'" display="none"></input>')},e.prototype.zIi=function(t,e){for(;t;){if(t===e)return!0;t=t.parentElement}return!1},e.prototype.BIi=function(t,e){var n,i,o,t,u,e,n=this,i=n.vMi,o=i.getDataView(),t=t||o.ILt,u=o.aPt,e=null!=e?e:o.LEt;i.zA({cmd:E.RESET_NEW_VIEW,newConfig:{columnInfoOptions:t,includeDefaultColumns:u,options:e}}),n.ZS()},e.prototype.WHe=function(t){for(var e,n,i,o,u,a,r,c,e={},n=0;n<t.ILt.length;n++)!((i=t.ILt[n]).style instanceof k.Style)&&i.style.cellType&&i.style.cellType instanceof H&&(e[n]||(e[n]={}),e[n].style=i.style,i.style=new k.Style(i.style)),!(i.headerStyle instanceof k.Style)&&i.headerStyle.cellType&&i.style.cellType instanceof H&&(e[n]||(e[n]={}),e[n].headerStyle=i.headerStyle,i.headerStyle=new k.Style(i.headerStyle));for(n in o=V(t.ILt,!1),e)if(e.hasOwnProperty(n)){if((u=e[n]).style){for(r in a={},u.style)u.style.hasOwnProperty(r)&&(a[r]=o[n].style[r]);o[n].style=a,t.ILt[n].style=u.style}if(u.headerStyle){for(r in c={},u.headerStyle)u.headerStyle.hasOwnProperty(r)&&(c[r]=o[n].headerStyle[r]);o[n].headerStyle=c,t.ILt[n].headerStyle=u.headerStyle}}return o},e.prototype.dgi=function(t,e){var n,i,o,u,e,a,r,c,s,l,f,f,d,h,g,b,h,g,n=this,i,o=n.vMi.getDataView(),u=n.WHe(o),e=null!=e?e:(0,k.RF)(o.LEt),a=n.cIi,r=e&&e.cross||{};for(t&&u.push(a[a.length-1]),s=c=0;c<u.length;c++)l=void 0,N(u[c].cross)||(l=a[s],s++),l&&((f=l.cross.attributes)&&(l.cross.attributes=f.filter(function(t){return t})),f=l.cross.hgi,d=l.cross.Zc,h=l.cross.Tgi,g=l.cross.bgi,b=yt(l),h?(delete b.cross.Tgi,delete l.cross.Tgi,d?(r[d]||(n.Agi(f),b.cross.vgi=b.vgi,r[d]=b.cross),b.cross=d,l.cross=d):f&&r[f]&&(l.cross=b.cross=r[f])):g&&(n.Agi(f),(h=r[d])?(l.vgi=h.vgi,l.cross=d,b.cross=d):(delete l.cross.jgi,delete b.cross.jgi,delete l.cross.Zc,delete b.cross.Zc)),l.cross.jgi!==Z&&(g=l.cross.jgi,delete l.cross.jgi,delete b.cross.jgi,r[g]=l.cross,b.cross=g,l.cross=g),delete b.cross.hgi,delete b.cross.Tgi,delete b.cross.bgi,delete b.cross.jgi,delete l.cross.hgi,delete l.cross.Tgi,delete l.cross.bgi,delete l.cross.jgi,delete b.vgi,u[c]=b);0<Object.keys(r).length&&(e.cross=r),n.BIi(u,e),n.options.crossAreaVisible||(n.cIi=Z,n.oIi=Z,n.NIi=void 0,n.mIi=void 0)},e.prototype.Agi=function(t){var e,n,n,i,o,u,a,e=this,n=e.vMi.getDataView().LEt,n=n&&n.cross||{},i=e.cIi;if(t&&n[t]){for(u=o=0;u<i.length&&((a=i[u]).cross.hgi!==t&&a.cross!==t||!(2<=++o));u++);o<2&&delete n[t]}},e.prototype.CIi=function(t){var e,n,i,t,n,t,n,o,e=this,n=e.uIi;n&&e.zIi(t.target,e.zgi())&&e.oIi&&e.mLt(n)&&((i=e.cIi&&0===e.cIi.length)&&(e.cIi=e.lIi()),t=e.cIi,n={value:n,cross:{over:e.oIi}},t&&t.length?t.push(n):e.cIi=[n],e.NIi=e.cIi.length-1,e.IIi(),n=(t=e.cIi[e.NIi])&&t.cross,e.Cgi(n,t.value))&&(e.dgi(!0),(o=e.Tp()).t4(e.CMi.length-1,0))},e.prototype.wgi=function(t){var e,n,i,o,u,a,e,n=this.YMi,i="";if(n&&n[t])for(u=(o=n[t].level)-1,i=n[t].name,t--;0<=u&&0<=t;)(a=n[t])&&a.level===u&&(u--,i=a.name+"."+i),t--;return i},e.prototype.FIi=function(t){var t=t?"":" "+S;return'<div class="'.concat(c," ").concat(J," ").concat(rt).concat(t,'">\n ').concat(this.ygi(),"\n </div>")},e.prototype.ygi=function(){return'<span class="gc-table-sheet-group-header">'.concat((0,O.getSR)().CrossColumnCrossHeader,'</span>\n <div class="').concat(x,'">').concat(this.mgi(),"</div>")},e.prototype.IIi=function(){var t;this.ZMi&&(this.Lgi(),(t=this.mgi())&&(this.ZMi.innerHTML=t),this.OMi=this.ZMi.querySelector(".".concat(y)),this.xgi())},e.prototype.mgi=function(){var t,e,u,n,i,o,a,i,r,c,s,l,f,d,h,g,i,b,v,b,M,I,b,m,N,D,j,t=this,e="",i=t.oIi,o=t.vMi.getDataView(),a=o&&o.LEt||{};if((void 0!==t.NIi&&t.cIi&&t.cIi.length||i)&&(i=t.cIi&&t.cIi[t.NIi]||{value:"",cross:{over:i}})){if(r=t.gIi(i.cross),l=(s=!pt(c=i.value))?"":"disabled",n=o.isLookupRelationField(r.over))if(u=i.vgi,r.attributes){if(!u)for(u=i.vgi=t.Sgi(r.over).map(function(e){var t=jt(r.attributes,function(t){return U(t)===U(e)}),n=-1<t;return{attribute:n?r.attributes[t]:e,checked:n}}),f=function(t){for(var e,i,n,o,e=r.attributes[t],i=jt(u,function(t){return U(t.attribute)===U(e)}),n=function(t){var e,t,n,e=r.attributes[t],t=jt(u,function(t){return U(t.attribute)===U(e)});i<t&&(n=u[t],u.splice(t,1),u.splice(i,0,n),i+=1)},o=t-1;0<=o;o--)n(o)},d=r.attributes.length-1;0<=d;d--)f(d)}else r.attributes=t.Sgi(r.over),u=i.vgi=r.attributes.map(function(t){return{attribute:t,checked:!0}});else u=o.getLookup(r.over).map(function(t){return{attribute:t=t instanceof Date?t.toString():t}});for(h="",i=g=n?"":" "+S,t.Dgi=u||[],t.mIi===Z&&(t.mIi=0),d=0;d<u.length&&c;d++)v=(b=u[d]).checked,I="",(M=b=b.attribute)!==Z&&("object"==typeof b&&(M=b.value,I=b.formatter),b=n&&d===this.mIi?" selected":"",h+='<li class="'.concat(n?A+b:"gc-table-sheet-cross-column-static-list-item",'" attribute-value="').concat(M,'" attribute-index=').concat(d,' >\n <input name="').concat(M,'" class="').concat(st," ").concat(g,'" input-type="attributes" type="checkbox" value="" ').concat(v?"checked":"",' />\n <span class="gc-table-sheet-cross-column-item-label">').concat(M,'</span>\n <span class="').concat(lt," ").concat(g,'" title="').concat((0,O.getSR)().GroupPanelItemRemove,'"></span>\n <span class="').concat(p,' gc-table-sheet-cross-column-attributes-formatter gc-table-sheet-hidden">\n <span class="').concat(C,'">').concat((0,O.getSR)().CrossColumnDetailFormatter,'</span>\n <input class="').concat(ot,'" input-type="attributes.formatter" spellcheck="false" tabIndex="-1" value="').concat(I,'"></input>\n </span>\n </li>'));if(m="<option></option>",N=o.LEt&&o.LEt.cross)for(D in N)N.hasOwnProperty(D)&&N[D].over===r.over&&(j=D===r.Zc?'selected="selected"':"",m+="<option value=".concat(D," ").concat(j,">").concat(D,"</option>"));e='<div class="gc-table-sheet-cross-column-detail-content">\n <div class="'.concat(p,'">\n <span class="').concat(C,'">').concat((0,O.getSR)().CrossColumnDetailName,'</span>\n <input class="gc-table-sheet-cross-item-input-name" input-type="name" spellcheck="false" tabIndex="-1" value=\'').concat(r.Zc||"","' ").concat(l,'></input>\n <select class="gc-table-sheet-cross-item-select-name" input-type="name-select" ').concat(l,">\n ").concat(m,'\n </select>\n </div>\n <div class="').concat(p,'">\n <span class="').concat(C,'">').concat((0,O.getSR)().CrossColumnDetailValue,'</span>\n <input class="').concat(ct," ").concat(T,'" input-type="value" spellcheck="false" tabIndex="-1" readonly="readonly" maxlength="0" placeholder="').concat((0,O.getSR)().CrossColumnDetailValuePlaceHolder,"\" value='").concat(c,'\'></input>\n </div>\n <div class="gc-table-sheet-summary-item-formula">\n <span class="').concat(C,'">').concat((0,O.getSR)().CrossColumnDetailOver,'</span>\n <input class="').concat(ct," ").concat(T,'" input-type="over" spellcheck="false" tabIndex="-1" readonly="readonly" maxlength="0" value=\'').concat(r.over,"'></input>\n \x3c!--input class=\"").concat(w,'" input-type="over" spellcheck="false" tabIndex="-1" value=\'').concat(r.over||"","'></input--\x3e\n </div>\n <div class=\"").concat(p,'">\n <span class="').concat(C,'">').concat((0,O.getSR)().CrossColumnDetailCaption,'</span>\n <input class="').concat(T,'" input-type="header" spellcheck="false" tabIndex="-1" value=\'').concat(r.caption||"","' ").concat(l,'></input>\n </div>\n <div class="').concat(p,' gc-table-sheet-cross-column-value-caption">\n <span class="').concat(C,'"></span>\n <input name="showCrossValueHeader" class="').concat(st,' gc-table-sheet-cross-column-show-value-header" input-type="showCrossValueHeader" type="checkbox" value="" ').concat(a.showCrossValueHeader?"checked":""," ").concat(l,' />\n <span class="').concat(C,' gc-table-sheet-cross-column-value-caption-label">').concat((0,O.getSR)().CrossColumnDetailValueHeader,'</span>\n </div>\n <div class="').concat(p).concat(i,'">\n <span class="').concat(C,'">').concat((0,O.getSR)().CrossColumnDetailFilter,'</span>\n <input class="').concat(T,'" input-type="filter" spellcheck="false" tabIndex="-1" value=\'').concat(n&&r.filter||"","' ").concat(l,'></input>\n </div>\n <div class="gc-table-sheet-cross-column-attributes-list-container">\n <span class="').concat(C,'">').concat(n?(0,O.getSR)().CrossColumnDetailAttributes:(0,O.getSR)().CrossColumnDetailList,'</span>\n <ul class="').concat(y,'">\n ').concat(h,"\n </ul>\n </div>\n </div>")}return e},e.prototype.zgi=function(){return this.ZMi&&this.ZMi.querySelector(".".concat(ct))},e.prototype.WIi=function(t,e,n){for(var i,o,u,a,r,i=this,a=0;a<e.length;a++)0===(r=e[a]).level&&(r.name===t?o=a+1:N(o)||(u=a));return e.slice(o,u).map(function(t){var e=N(t.cross)&&(n.isLookupField(t.name)||n.isLookupField(t.fieldString));return{value:i.$t({value:t.name}),nIi:t.fieldString,textIndent:t.level+1,checkStatus:!1,yBt:e}})},e.prototype.WMi=function(){var t,e,n,n,f,t,e,n=this.vMi.getDataView(),n=n&&n.gLt,f=function(t,e,n,i,o){var u,a,r,c,s,l;if(t&&t.Pq){for(u=[],a=0,r=t.Pq;a<r.length;a++)(c=r[a]).targetTable?u.push(c):n.push({level:e,name:c.name,isLeafNode:!0,field:c,hostTable:t,index:n.length,fieldString:o.concat(c.name).join(".")});for(i.push(t.name),s=0,l=u;s<l.length;s++)(c=l[s]).targetTable&&-1===i.indexOf(c.targetTable.name)&&(n.push({level:e,name:c.name,fieldString:o.concat(c.name).join(".")}),o.push(c.name),f(c.targetTable,e+1,n,i,o),o.pop())}return n};return f(n,0,[],[],[])},e.prototype.xgi=function(){var m,n,i,o,t,e,u,a,r,c,m=this,o=m.pMi,t,e=function(t){var e=t.target,t=t.target.classList;t.contains(A)||(e=e.parentElement),t.contains(lt)&&m.Zgi(e)},a=function(t){var e,n,i,o,e=t.target,n=(0,k.GC$)(t.target),i=n.attr(z),o;t.target.classList.contains(A)||(e=e.parentElement,i=n.parent().attr(z)),!N(i)&&e.classList.contains(A)&&(u=m.LMi.getBoundingClientRect(),m.Ogi=e,m.Egi=e,m.mIi!==+i)&&(m.mIi=+i,m.Ggi(e))},r=function(t){var e,n,n,t,i,n,i,n,e=m.mIi,n=m.Ogi;!N(e)&&n&&(n=n.getAttribute("attribute-value"),m.AIi(t,n,u,m.LMi),n=!(m.Ti.style.cursor="move"),(i=(t=t.target).parentElement)&&-1<i.className.indexOf(A)?(t=i,n=!0):-1<t.className.indexOf(A)&&(n=!0),i=m.Egi,n)&&i!==t&&((n=t.getAttribute(z))<e?(i.className=i.className.replace(D,"").replace(j,"").trim(),t.className=t.className+" ".concat(D)):e<n?(i.className=i.className.replace(D,"").replace(j,"").trim(),t.className=t.className+" ".concat(j)):i.className=i.className.replace(D,"").replace(j,"").trim(),m.Egi=t)},c=function(t){var e,e,n,i,t,o,o,t,t,i,t,e=m.cIi,e=e&&e[m.NIi],n=e&&e.cross,i=m.mIi,t=t.target,o=m.Egi,o=o&&+(0,k.GC$)(o).attr(z);i!==Z&&m.Ogi&&o!==Z&&o!==i&&(m.Egi.className=m.Egi.className.replace(D,"").replace(j,"").trim(),m.zIi(t,m.OMi)&&("string"==typeof n&&(t=n,(n=yt(m.gIi(n))).jgi=t,e.cross=n),t=e.vgi.splice(i,1)[0],e.vgi.splice(o,0,t),m.mIi=+o,i=[],i=e.vgi.filter(function(t){return t.checked}).map(function(t){return t&&t.formatter?{formatter:t.formatter,value:t.attribute}:t.attribute}),n.attributes=i,n.vgi=e.vgi),m.Cgi(n,e.value))&&(m.dgi(),m.IIi()),m.Egi=Z,m.Ogi=Z,m.Ti.style.cursor="default",(t=m.SIi)&&(t.style.display="none")};m.pgi=function(t){var e,n,t,i,o,u,t,a,r,c,s,e,l,f,d,h,g,b,v,M,I,n=(0,k.GC$)(t.target),t=m.NIi,i,o=m.cIi[t],u=o&&o.cross,t=n.attr("input-type"),a=n.val().trim(),r=!1;if(u){switch(c=m.vMi.getDataView(),s=null!=(e=(0,k.RF)(c.LEt))?e:{},"string"==typeof u&&(e=u,(u=yt(m.gIi(u))).jgi=e,o.cross=u,o.vgi=u.vgi),t){case"name":""===a||(l=c.LEt.cross)&&l.hasOwnProperty(a)?u.bgi=!0:u.Tgi=!0,u.hgi=u.Zc,u.Zc=m.kgi(u,a),r=!0;break;case"name-select":u.hgi=u.Zc,u.Zc=a,r=u.bgi=!0;break;case"over":u.over=a,m.Ugi(a);break;case"header":u.caption=pt(a)?Z:a;break;case"filter":u.filter=a;break;case"showCrossValueHeader":s.showCrossValueHeader=!s.showCrossValueHeader;break;case"attributes":if(f=[],d=o.vgi,n.parent().parent()[0].querySelectorAll("li").forEach(function(t,e){var n,e,n,n=t.querySelector(".".concat(st));d[e].checked=n.checked,n.checked&&(e=(0,k.GC$)(n).attr("name"),n=(0,k.GC$)(t.querySelector('[input-type="attributes.formatter"]')).val(),N(n)||""===n?f.push(e):f.push({value:e,formatter:n}))}),0===f.length)return void n.prop("checked",!0);u.attributes=f;break;case"attributes.formatter":for(h=o.vgi,g=n.parent().parent().attr("attribute-value"),b=function(e){return jt(h,function(t){var t=t.attribute;return e===("string"==typeof t?t:t.value)})},v=0;v<u.attributes.length;v++)(M=u.attributes[v])!==g&&M.value!==g||("string"==typeof M?(I=b(M),h[I].attribute=u.attributes[v]={value:M,formatter:a}):(I=b(M.value),u.attributes[v].formatter=a,h[I].attribute=u.attributes[v]))}m.Cgi(u,o.value)&&m.dgi(!1,s),r&&m.IIi()}},m.Bgi=e,m.Qgi=a,m.Rgi=r,m.Pgi=c,(0,k.GC$)(".".concat(x)).bind("change",m.pgi),(0,k.GC$)(".".concat(y)).bind("click",m.Bgi),(0,k.GC$)(".".concat(y)).bind("mousedown",m.Qgi).bind("mousemove",m.Rgi),document.addEventListener("mouseup",m.Pgi),(0,k.GC$)(".".concat(ft)).bind("focus",function(t){var t=t.target,e=(0,k.GC$)(t).val()||"=";(n=new P.FormulaTextBox(t,g,g)).Ngi=!0,i=new k.Workbook(o,{allowDynamicArray:!0,allowUndo:!1}),m.XMi(i),m.lgi(i),n.workbook(i),n.text(e)}).bind("blur",function(t){var t=(0,k.GC$)(t.target),e;"="===t.val()&&t.val(""),m.ggi(n,i)}).bind("keydown",function(t){13===t.keyCode&&(m.ggi(n,i),t.target.blur())})},e.prototype.Lgi=function(){var t=this;t.ZMi&&(t.pgi&&(0,k.GC$)(".".concat(x)).unbind("change"),t.Bgi&&(0,k.GC$)(".".concat(y)).unbind("click"),t.Qgi&&(0,k.GC$)(".".concat(y)).unbind("mousedown").unbind("mousemove"),t.Pgi&&document.removeEventListener("mouseup",t.Pgi),(0,k.GC$)(".".concat(ft)).unbind("focus").unbind("blur").unbind("keydown"))},e.prototype.eIi=function(){return this.vMi.getDataView()},e.prototype.mLt=function(t){var e=this;return e.eIi().mLt(e.oIi,t)},e.prototype.Cgi=function(t,e){var n,i=this.eIi();return t&&t.over&&e&&(i.isLookupListField(t.over)||t.attributes&&0<t.attributes.length)},e.prototype.lIi=function(){return(0,k.RF)(this.eIi().ILt.filter(function(t){return!N(t.cross)}))},e.prototype.gIi=function(t){var e,n,i,i,e;return"string"==typeof t&&(n=t,(i=this.eIi()).LEt.cross)&&((i=i.LEt.cross[n]||{}).Zc=n,t=i),t},e.prototype.kgi=function(t,e){var n,i,e,i,n=this,i=n.eIi(),e=e;return i.LEt.cross&&(i=i.LEt.cross[e])&&i.over!==n.gIi(t).over?e+"1":e},e.prototype.Zgi=function(t){var e,n,e=t.className,n=t.querySelector(".gc-table-sheet-cross-column-attributes-formatter");-1<e.indexOf(dt)?(t.className=t.className.replace(dt,""),n.className+=" "+S):(t.className+=" ".concat(dt),n.className=n.className.replace(S,""),setTimeout(function(){n.querySelector("input").focus()}))},e.prototype.Ggi=function(t){var e,n,i,o,u,e,n,i=this.ZMi.querySelectorAll(".".concat(A));for(o in i)i.hasOwnProperty(o)&&((u=i[o]).className=u.className.replace("selected","").trim(),u===t)&&(u.className=u.className+" selected")},e.prototype.Ugi=function(t){var e,t,e=this,t=e.Sgi(t);e.cIi[e.NIi].cross.attributes=t,e.mIi=0,e.IIi()},e.prototype.Sgi=function(t){var e,t,n,i,o,u,t,a,r,c,s,c,l,f,d,e=this,t=e.Ygi(t),n=[];if(t&&t.hostTable&&t.field&&(u="",o=(i=t.hostTable).tBt(t.field.name))&&o.Pq){for(t=o.Pq,a=e.YMi,r=0;r<a.length;r++)s="",(c=(s=(c=a[r]).hostTable===o?c.fieldString!==Z?c.fieldString:c.fieldString=e.wgi(r):s)&&s.split("."))&&1<c.length&&(u=(c=c.slice(0,c.length-1)).join(".")+".");for(l=0,f=t;l<f.length;l++)(d=f[l]).targetTable||n.push(u+d.name)}return n},e.prototype.Ygi=function(t){var e,n,t,i,o;if(t)return n=this.YMi,t=t.split("."),i=t.length-1,o=t[i],n.filter(function(t){return t.name===o&&t.level===i})[0]},e.prototype.attach=function(t){this.Ti&&t&&(((this.vMi=t).UMi=this).mMi&&this.Hc(t,this.mMi),this.updatePanelLayout())},e.prototype.detach=function(){var t,e,t=this;t.vMi&&(t.vMi.UMi=g,t.vMi.unbind(n),t.vMi=g,document.removeEventListener("mousemove",t.bIi,!0),document.removeEventListener("mouseup",t.vIi,!0),(0,k.GC$)(".".concat(ut)).unbind("click"),t.SWt(),t.XIi(),t.Lgi(),t.tgi(),t.mMi&&(t.mMi.removeEventListener("mousedown",t.DIi,!0),e=(0,k.GC$)(t.mMi).data("workbook"))&&(this.BMi=null,e.getSheet(0).unbind(n),e.destroy()),t.JMi&&(a.clearTimeout(t.JMi),t.JMi=0),t.cIi=Z,t.oIi=Z,t.YMi=Z,t.Dgi=Z,t.uIi=Z,t.NIi=Z,t.AMi=!0,t.sIi(!1),t.MIi(!0))},e.prototype.destroy=function(){var t,e;this.detach(),t=this.Ti,(0,k.GC$)(t).data(u,g),(e=this.SIi)&&e.parentElement&&(e.parentElement.removeChild(e),this.SIi=void 0),t&&(t.innerHTML=""),this.Ti=g},e.findControl=function(t){var e=t;return"string"==typeof t&&(e=document.getElementById(t)),(0,k.GC$)(e).data(u)},M.TableSheetPanel=e},"./dist/plugins/tableSheet/tableSheet-row-action.js":function(Z,t,e){var n,i,o,D,l,e,o,j,d,s,u,a,r,g,U,c,e,f;function h(t){return"number"==typeof t}function b(t){return"string"==typeof t}function v(t){return t instanceof Function}function M(t){return"object"==typeof t&&!j(t)}function I(t){return t instanceof Array}function m(t){return"boolean"==typeof t}function N(t){return b(t)?"ROWACTION_".concat(t):t}function C(t,e){var n=f.call(this)||this;return n.Wgi=[],n.MU=t,n.DJ=e,n}function w(t,e){M(e)?(t.imageType=e.imageType,t.imageSrc=e.imageSrc,t.imageSize=e.imageSize):(t.imageType=s,t.imageSrc=s,t.imageSize=s)}function p(t,e,n,i,o,u,a){var t=S(t,e,n,i,a);if(!j(t))return o[u]=new D.Rect(t.x,t.y,t.width,t.height),o[u].offsetX=t.x-a.x,o[u].offsetY=t.y-a.y,o[u]}function x(t,e,n,i,o,u){y(t,e.x,e.y,e.width,e.height,n,i,o,u)}function y(t,e,n,i,o,u,a,r,c){t.save(),t.rect(e,n,i,o),t.clip(),t.beginPath();var s=k(u,r.row);s&&A(t,u,e,n,i,o,s,r,c,l.middleCenter),t.restore()}function A(t,e,n,i,o,u,a,r,c,s){var r,l,r,n,i,o,f,u,s,n,d,e,h;t.save(),t.rect(n,i,o,u),t.clip(),t.beginPath(),(l=(r=r.sheet).BO()).getState(a)?l.qh(a)&&(r=r.zoom(),n=new D.Rect(n,i,o,u),i=L(e),o=R(e),u=T(s,n,f=new D.Rect(0,0,i*r,o*r)),n=(s=l.getImage(a)).width,d=s.height,D.mt.Tt.msie&&e.imageType&&(d=e.imageType===D.ButtonImageType.custom?(g[a]||(s.style.position="absolute",s.style.left="-10000px",s.style.top="-100000px",document.body.appendChild(s),g[a]={width:s.width,height:s.height},document.body.removeChild(s)),n=g[a].width,g[a].height):n=12),c&&D.mt.Tt.msie&&u.x+u.width>c.x+c.width?0<(e=c.x+c.width-u.x)&&t.drawImage(s,0,0,e*(h=n/(i*r)),d,u.x,u.y,e,o*r):t.drawImage(s,0,0,n,d,u.x,u.y,i*r,o*r)):l.addImage(a,"anonymous"),t.restore()}function T(t,e,n){var i=Math.max(0,(e.width-n.width)/2),o=Math.max(0,(e.height-n.height)/2);return t===l.leftCenter&&(i=0),new D.Rect(e.x+i,e.y+o,Math.min(n.width,e.width),Math.min(n.height,e.height))}function S(t,e,n,i,o){if(!(t+n<o.x||t>o.x+o.width||e+i<o.y||e>o.y+o.height))return t+n>o.x+o.width&&(n=o.x+o.width-t),e+i>o.y+o.height&&(i=o.y+o.height-e),t<o.x&&(t=o.x),e<o.y&&(e=o.y),new D.Rect(t,e,n,i)}function z(t,e){return h(t)?{imageType:t}:b(t)?{imageType:D.ButtonImageType.custom,imageSrc:t,imageSize:G(e)}:s}function G(t){return h(t)?{width:t,height:t}:t}function B(t,e,n,i){var n,o;return void 0===i&&(i=!0),n=n.sheet.zoom(),j(t.width)?o=L(t):(o=u(1,t.width),isNaN(o)&&(o=1)),i?o*n:o}function L(t){var e;return e=(e=t.imageSize&&("string"==typeof t.imageSize.width&&(e=a(t.imageSize.width)),"number"==typeof t.imageSize.width)?t.imageSize.width:e)===d||isNaN(e)||e<0?12:e}function R(t){var e;return e=(e=t.imageSize&&("string"==typeof t.imageSize.height&&(e=a(t.imageSize.height)),"number"==typeof t.imageSize.height)?t.imageSize.height:e)===d||isNaN(e)||e<0?12:e}function O(t,e,n,i,o){var u=t.Ut.getValueForKey(e,n,r,i);return j(u)&&P(t,e,n,i,u={layout:{}}),u}function P(t,e,n,i,o){t.Ut.setValueForKey(e,n,r,o,i)}function Q(t,e,n,i,o){var u;delete O(e,n,i,o).layout[t]}function Y(t,e,n){for(var i,o,u,i=e.BO(),o=0;o<t.length;o++)b(u=k(t[o].option,n))&&i.addImage(u,"anonymous")}function k(t,e){var n,i,e,o,n=null,i=t.imageType;if(j(t.imageType))return null;switch(o=(e=E(t.enabled,e))||j(e),i){case D.ButtonImageType.dropdown:n=o?"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTJweCIgaGVpZ2h0PSIxMnB4IiB2aWV3Qm94PSIw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DxyZWN0IHg9IjAiIHk9IjAiIHdpZHRoPSIxMnB4IiBoZWlnaHQ9IjEycHgiIHJ4PSI0cHgiIHJ5PSI0cHgiIHN0eWxlPSJzdHJva2U6ICNjYWNhY2E7IHN0cm9rZS13aWR0aDoxcHg7IGZpbGw6IG5vbmU7Ii8+CiAgICAgICAgPGxpbmUgeDE9IjJweCIgeTE9IjZweCIgeDI9IjEwcHgiIHkyPSI2cHgiIHN0eWxlPSJzdHJva2U6ICNjYWNhY2E7IHN0cm9rZS13aWR0aDoxcHg7Ii8+CiAgICAgICAgPGxpbmUgeDE9IjZweCIgeTE9IjJweCIgeDI9IjZweCIgeTI9IjEwcHgiIHN0eWxlPSJzdHJva2U6ICNjYWNhY2E7IHN0cm9rZS13aWR0aDoxcHg7Ii8+CiAgICA8L3N2Zz4=";break;case D.ButtonImageType.custom:n=t.imageSrc}return n}function E(t,e){return"function"==typeof t?t(e):t}n=this&&this.__extends||(c=function(t,e){return(c=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}c(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,n,i,o,n=1,i=arguments.length;n<i;n++)for(o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},Object.defineProperty(t,"__esModule",{value:!0}),t.paintImage=t.RowAction=t.ImagePosition=void 0,o=e("Common"),D=e("Core"),(e=l=t.ImagePosition||(t.ImagePosition={}))[e.leftTop=0]="leftTop",e[e.leftCenter=1]="leftCenter",e[e.leftBottom=2]="leftBottom",e[e.middleTop=3]="middleTop",e[e.middleCenter=4]="middleCenter",e[e.middleBottom=5]="middleBottom",e[e.rightTop=6]="rightTop",e[e.rightCenter=7]="rightCenter",e[e.rightBottom=8]="rightBottom",e=o.Common.lt,o=D.CellTypes.RowHeader,j=e.ht,d=null,s=void 0,u=Math.max,a=parseInt,r="rowActionParam",g={},n(C,f=o),C.prototype.toJSON=function(){var t=f.prototype.toJSON.call(this);return delete t.MU,delete t.Wgi,delete t.DJ,t},C.prototype.build=function(t){this.Wgi=this.Hgi(t)},C.prototype.t4i=function(t,e){return t.NMi.n4i(e)?this.Wgi:[]},C.prototype.Hgi=function(n){var t=this,e=t.MU,t=t.MU.subActionOptions;return n=I(n.subActionOptions)?n.subActionOptions:[n],(I(t)?t:[e]).map(function(t,e){return i({rowActionOption:t,command:N(t.command),visible:!0},n[e])})},C.prototype.Vgi=function(t,e){var n=-1;return m(t)?1===e.length?n=t?0:-1:1<e.length&&(n=t?1:0):h(t)&&(n=t),n},C.prototype.Fgi=function(t,e){var n,n,i,o,t,u,a,r,c,n=t.icons,n=void 0===n?[]:n,i=t.iconSelector,o=t.BTi,t=t.iconSize,u=this,a=u.DJ,r,c;return z(n[u.Vgi(i?i(a.getDataItem(e),e,a):!o||o(s,e,a),n)],t)},C.prototype.Jgi=function(t){for(var e,n,i,o,u,a,r,c,s,l,l,e=this,n=t.sheet,i=t.row,o=t.col,u=t.sheetArea,a=e.t4i(n,i),r=[],c=0;c<a.length;c++)l=(s=a[c]).visible,!(j(l)||v(l)&&l(i)||m(l)&&l)||(l=e.Fgi(s.rowActionOption,i),j(l))?Q(c,n,i,o,u):(r.push({index:c,width:0,option:s}),w(s,l));return r},C.prototype.Xgi=function(t,e,n,i){for(var o,u,a,o=0,u=0;u<t.length;u++)a=B(t[u].option,n,i),o+=t[u].width=a;return e/2-o/2},C.prototype.Kgi=function(t,e,n,i,o,u,a,r){var c,s,l,f,d,h,g,b,v,M,I,m,N,c=this,s=r.sheet,l=r.row,f=r.col,d=r.sheetArea,h=new D.Rect(n,i,o,u),g=c.Jgi(r);if(0<g.length){for(Y(g,s,l),t.save(),t.rect(h.x,h.y,h.width,h.height),t.clip(),t.beginPath(),b=h.x+c.Xgi(g,h.width,a,r),M=(v=O(s,l,f,d)).layout,I=0;I<g.length;I++)m=g[I],N=p(b,h.y,m.width,h.height,M,m.index,h),j(N)||(x(t,N,m.option,a,r,v),b+=N.width);t.restore()}},C.prototype.paint=function(t,e,n,i,o,u,a,r){t&&(f.prototype.paint.call(this,t,e,n,i,o,u,a,r),this.Kgi(t,e,n,i,o,u,a,r))},C.prototype.getHitInfo=function(t,e,n,i,o){var u,a,r,t,e,a,c,s,l,f,d,h,g,u=o.row,a=o.col,r=o.sheet,t={x:t,y:e,row:u,col:a,cellRect:i,cellStyle:n,sheetArea:o.sheetArea,sheet:o.sheet,context:o,isRowAction:!0},e=O(r,t.row,t.col,t.sheetArea,!0),a=this.t4i(r,u);if(!e||0===a.length)return null;for(d in c=e.layout,s=-1,l=t.x,f=t.y,c)if(c.hasOwnProperty(d)&&(h=void 0,g=c[d],h=new D.Rect(i.x+g.offsetX,i.y+g.offsetY,g.width,g.height))&&h.contains(l,f)){s=+d;break}return-1!==s&&(t.actionHitInfo={index:s,option:a[s]}),t},C.prototype.processMouseUp=function(t){var e,n,i,o,u,a,r,r,c,s,l,f,r,c,s;return!(!t||(e=t.sheet,n=t.row,i=t.col,o=t.cellRect,u=t.sheetArea,a=t.actionHitInfo,r=1<(r=e.getSelections()).length||1===r.length&&1<r[0].rowCount,c=t.isShift,s=t.isCtrl,c)||s||r||!(n===e.ui&&i===e.ci||u!==D.SheetArea.rowHeader||e.endEdit())||(c=(l=this).MU,r=j(a)?(f=N(c.command),!0):(f=(s=a.option).command,E(s.enabled,n)),!e)||j(f)||!r&&!j(r)||(e.getActiveRowIndex()===n&&e.getActiveColumnIndex()===i||e.eR(n,-1,1,-1,2),b(f)?e.getParent().commandManager().execute({cmd:f,row:n,col:i,sheetName:e.name(),sheetArea:u}):v(f)&&f.call(d,e,n,i,u),t.isReservedLocation=!0,e.repaint(o),0))},C.prototype.processMouseMove=function(t){var e,n,i,o,u,t,i,a,i,r,c;return!(!t||(n=t.sheet,i=t.row,o=t.col,u=t.sheetArea,t=t.actionHitInfo,a=(e=this).MU,i=n.Ut.Ci(i,o,u),r=n.Ut.Ci(-1,o,u),b(i))||(i=(j(t)?a:(c=t.option).rowActionOption).tooltip,!n)||i===r||(n.Ut.$n(-1,o,i,u),0))},t.RowAction=C,t.paintImage=A},"./dist/plugins/tableSheet/tableSheet-status-bar.js":function(Z,t,e){var n,i,o,u,e,a,s,r,c,l,f,d,h,g,b,v,M,I,m,N,a,D,j,C,w,p,x,y,A,T;function U(t){return t&&t._gi===o.SheetType.tableSheet}function G(t){return t&&t._gi===o.SheetType.ganttSheet}function S(t){var t=t.getActiveSheetTab();if(U(t)||G(t))return t}function z(t){return t.b3t}function B(t,e){return(-1===t.row||-1===e.row||e.row<t.row+t.rowCount&&t.row<e.row+e.rowCount)&&(-1===t.col||-1===e.col||e.col<t.col+t.colCount&&t.col<e.col+e.colCount)}function L(t,e,n,i){return{row:t,col:e,rowCount:n,colCount:i}}function R(t,e){var n,i,o,t,n=r(t.row,e.row),i=r(t.col,e.col),o=c(t.row+t.rowCount-1,e.row+e.rowCount-1),t=c(t.col+t.colCount-1,e.col+e.colCount-1);return 0<=n&&0<=i?L(n,i,o-n+1,t-i+1):0<=n?L(n,-1,o-n+1,-1):0<=i?L(-1,i,-1,t-i+1):L(-1,-1,-1,-1)}function P(t){for(var e,n,i,o,e=[],i=0;i<t.length;i++){for(n=t[i],o=0;o<t.length;o++)n!==t[o]&&B(n,t[o])&&(n=R(n,t[o]),i=o);e.push(n)}return e}function Q(t){var e,n,i,n=0;for(t.sort(function(t,e){return t.row-e.row}),e=P(t),i=0;i<e.length;i++)n+=e[i].rowCount;return n}function O(){var t,e,t=T.call(this,j)||this;return t.c3t=": ",t.s3t=f+t.name,e=D().StatusBarRowCount,t.menuContent=e,t.vit=e,t.align=p,t.tipText=D().StatusBarToolTipRowCount,t.visible=!0,t.e4t=C,t.i4t=w,t}function Y(t){var e,t,n,e=z(t),t=S(t);s(e)||(s(t)?e.qgi&&(e.qgi=!1,E(e)):(n=t.qgi,e.qgi!==t.qgi&&((n?k:E)(e),e.qgi=n)))}function W(t,e){var e=e.hitTestType,n=0===e,i=1===e,o=2===e,e=3===e;s(t)||(s(t.$gi)&&H(t),!n&&!o||t.qgi?(e||i)&&t.qgi&&(t.qgi=!1,E(t)):(t.qgi=!0,k(t)),t.DJ.getActiveSheetTab().qgi=t.qgi)}function H(t){for(var e,n,i,o,u,a,r,e=t.all(),n=[],i=0;i<e.length;i++)for(o=e[i],u=0;u<I.length;u++)o.name===I[u]&&n.push({pos:i,item:o});for(t.$gi=n,a=[],i=0;i<x.length;i++)r=V(x[i]),a.push(r);t.iNi=a}function k(t){for(var e,n,i,o,e=0;e<I.length;e++)t.remove(I[e]);if(n=t.$gi&&0<t.$gi.length?t.$gi[0].pos:0,i=t.iNi)for(e=0;e<i.length;e++)o=i[e],t.add(o,e+n)}function E(t){for(var e,n,i,e=0;e<x.length;e++)t.remove(x[e]);if(n=t.$gi)for(e=0;e<n.length;e++)i=n[e],t.add(i.item,i.pos)}function V(t){if(t===j)return new y}n=this&&this.__extends||(A=function(t,e){return(A=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}A(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),Object.defineProperty(t,"__esModule",{value:!0}),t.processStatusBarOnMouseDown=t.updateStatusBarOnActiveSheetChanged=void 0,i=e("Common"),o=e("Core"),u=e("StatusBar"),e=e("./dist/plugins/tableSheet/tablesheet-override.js"),a=i.Common.lt,s=a.ht,r=Math.min,c=Math.max,l=null,f=".statusbar",I=[d="average",h="count",g="numericalCount",b="min",v="max",M="sum"],m="none",N="inline-block",a=new i.Common.ResourceManager(e.SR,"TableSheet"),D=a.getResource.bind(a),C="menuRowCount",w="tooltipRowCount",p="right",x=[j="rowCount"],T=u.StatusItem,n(O,T),O.prototype.Zji=function(){return S(this.DJ)},O.prototype.nNi=function(){return z(this.DJ)},O.prototype.onBind=function(t){var n=this;(n.DJ=t).bind(o.Events.SelectionChanging+n.s3t,function(t,e){n.x3t(e)}),t.bind(o.Events.SelectionChanged+n.s3t,function(t,e){n.x3t(e)}),t.bind(o.Events.ActiveSheetChanged+n.s3t,function(){n.onUpdate()})},O.prototype.x3t=function(t){var e,t=t.newSelections;this.eNi(t)},O.prototype.eNi=function(t){var e,n,n,i,o,u,a,r,c,n,e=this,n=e.Zji();if(n&&(n=n.getDataView(),i=0,o=l,u=!1,a=[],!s(n))){for(i=n.getColumnInfos().length,r=0;r<t.length;r++){if(-1===(c=t[r]).col&&-1===c.row){u=!0;break}-1===c.row||-1!==c.colCount&&c.colCount!==i||a.push(c)}u?o=n.visibleLength():0<(n=Q(a))&&(o=n),e.A3t(o)}},O.prototype.E3t=function(t){this.u3t&&(this.u3t.style.display=t?N:m)},O.prototype.A3t=function(t){var e=this.c3t,n=this.I3t,i=this.vit,o=this.visible,u=!1;this.value=t,n.innerText=i+e+t,!s(t)&&o&&(u=!0),this.E3t(u)},O.prototype.onUpdate=function(){T.prototype.onUpdate.call(this);var t=this,e=t.Zji();s(e)||t.eNi(e.Mf.getSelections())},O.prototype.FM=function(t){var e,t;t&&(e=t.menuContent,t=t.tipText,this.menuContent=e,this.vit=e,this.tipText=t,this.u3t.title=t)},O.prototype.onUnbind=function(){var t=this.DJ,e=this.s3t;t&&(t.unbind(o.Events.SelectionChanging+e),t.unbind(o.Events.SelectionChanged+e),t.unbind(o.Events.ActiveSheetChanged+e),this.DJ=l)},y=O,t.updateStatusBarOnActiveSheetChanged=Y,t.processStatusBarOnMouseDown=W},"./dist/plugins/tableSheet/tableSheet-theme.js":function(t,e,n){var i,u,a,o,e,n,r,c,s,l,f,d,h,g;function b(t,e){return void 0===e&&(e=i.LineStyle.thin),new i.LineBorder(t,e)}function v(t,e,n,i){var o=new u.TableTheme;return o.name(t),o.headerRowStyle(new u.TableStyle(e.backColor,e.foreColor,e.font,a,a,e.borderRight,e.borderBottom)),o.wholeTableStyle(new u.TableStyle(n.backColor,n.foreColor,a,a,a,n.borderRight,n.borderBottom)),i&&i.backColor&&o.firstRowStripStyle(new u.TableStyle(i.backColor)),o}Object.defineProperty(e,"__esModule",{value:!0}),i=n("Core"),u=n("Tables"),a=void 0,e="#808080",n="transparent",r="#E6E4F6",c="#92A5A8",s="#66D1C7",l="black",f="#EBEBEB",d="#FFFFFF",h="bold 11pt Calibri",(g=[v("professional1",{backColor:"#6A76D4",foreColor:o="#F2F2F2",borderRight:b("#6A76D4"),font:h},{foreColor:e,borderRight:b(n),borderBottom:b(r)},a),v("professional2",{backColor:c,foreColor:o,font:h},{foreColor:e,borderRight:b(c),borderBottom:b(n)},a),v("professional3",{backColor:s,foreColor:o,borderRight:b(s),font:h},{foreColor:e,borderRight:b(n),borderBottom:b(s)},a),v("professional4",{backColor:"#36495E",foreColor:o,borderRight:b("#36495E"),font:h},{foreColor:e},{backColor:"#F1F1F1"}),v("professional5",{backColor:"#2F7A84",foreColor:o,borderRight:b("#2F7A84"),font:h},{foreColor:e},{backColor:"#DAF1F3"}),v("professional6",{backColor:"#FFED88",foreColor:l,font:"bold 11pt Arial",borderRight:b("#FFED88")},{foreColor:l,borderRight:b(n),borderBottom:b(n)},a),v("professional7",{backColor:"#9EB09F",foreColor:o,borderRight:b("#9EB09F"),font:h},{foreColor:e,borderRight:b(n),borderBottom:b(r)},a),v("professional8",{backColor:"#362F4A",foreColor:o,borderRight:b("#362F4A"),font:h},{foreColor:e,borderRight:b(n)},{backColor:"#F6F6F6"}),v("professional9",{backColor:"#EB6051",foreColor:o,borderRight:b("#EB6051"),font:h},{foreColor:e,borderRight:b(n)},{backColor:f}),v("professional10",{backColor:"#26AE60",foreColor:o,borderRight:b("#26AE60"),font:h},{foreColor:e,borderRight:b(n)},{backColor:f}),v("professional11",{backColor:"#2882BA",foreColor:o,borderRight:b("#2882BA"),font:h},{foreColor:e,borderRight:b(n)},{backColor:f}),v("professional12",{backColor:"#555F8D",foreColor:o,borderRight:b("#555F8D"),font:h},{foreColor:e},{backColor:"#9EB6C4"}),v("professional13",{backColor:"#54618F",foreColor:o,borderRight:b("#54618F"),font:h},{backColor:"#7591AB",foreColor:d},a),v("professional14",{backColor:d,foreColor:"#5660B9",borderBottom:b("#A1A5CA",i.LineStyle.thick),borderRight:b(d),font:h},{backColor:d,foreColor:"#595959"},{backColor:" #F8F8FD"}),v("professional15",{backColor:"#E6ECF2",foreColor:"#404040",borderRight:b("#E6ECF2"),font:h},{foreColor:e,borderRight:b(n),borderBottom:b("#E6ECF2")},a),v("professional16",{backColor:"#475E86",foreColor:"#67C3F7",borderRight:b("#475E86"),font:h},{backColor:"#2A395A",foreColor:"#D0CECE"},a),v("professional17",{backColor:"#5165F8",foreColor:o,borderRight:b("#5165F8"),font:h},{backColor:d,foreColor:"#595959"},{backColor:"#F3F4FC"}),v("professional18",{backColor:"#F6F8FA",foreColor:"#404040",borderRight:b("#F6F8FA"),font:h},{backColor:d,foreColor:"#757171"},a),v("professional19",{backColor:d,foreColor:e,borderBottom:b("#83ACF6",i.LineStyle.thick),borderRight:b(d),font:h},{backColor:d,foreColor:e,borderBottom:b("#D9E1F2")},a),v("professional20",{backColor:d,foreColor:"#3565F6",borderBottom:b("#3565F6",i.LineStyle.thick),borderRight:b(d),font:h},{backColor:"#FCFDFF",foreColor:"#757171",borderRight:b(d,i.LineStyle.thick),borderBottom:b(d,i.LineStyle.thick)},{backColor:"#F6F8FA"}),v("professional21",{backColor:"#FCFDFF",foreColor:"#404040",borderBottom:b("#ACB9CA",i.LineStyle.thick),borderRight:b("#D6DCE4",i.LineStyle.dashed),font:h},{backColor:"#FCFDFF",foreColor:"#595959",borderBottom:b("#E5E9F0"),borderRight:b("#E5E9F0",i.LineStyle.dashed)},a),v("professional22",{backColor:"#222B35",foreColor:d,borderBottom:b("#08D4FF",i.LineStyle.thick),borderRight:b("#222B35"),font:h},{backColor:"#213551",foreColor:d},{backColor:"#3C5679"}),v("professional23",{backColor:"#213551",foreColor:d,borderBottom:b("#13E86C",i.LineStyle.thick),borderRight:b("#D6DCE4"),font:h},{backColor:"#F4F7F9",foreColor:"#213551",borderRight:b("#D6DCE4")},{backColor:d}),v("professional24",{backColor:"#1D1E1F",foreColor:"#E7E6E6",borderBottom:b("#13E86C",i.LineStyle.thick),borderRight:b("#606060"),font:h},{backColor:"#404142",foreColor:d,borderRight:b("#606060")},{backColor:"#4F4F50"})]).forEach(function(t){u.TableThemes[t.name()]=t})},"./dist/plugins/tableSheet/tableSheet-undo.js":function(t,e,n){var i,s,l,o,u,a,n,r,f,d,c,o,n;function h(t){return(null==t?void 0:t.sourceType)===d.Combo}function g(t,e,n,i){return{sheet:t,sheetName:t.name(),col:e,filterValues:n,conditionInfo:n&&0===n.length&&i?i.toJSON():void 0}}function b(t){this.host=t,this.G8=[],this.P8=0,this.Oze=0,this.kze=[]}i=this&&this.__awaiter||function(t,a,n,r){function c(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n=n||Promise)(function(e,n){function i(t){try{u(r.next(t))}catch(t){n(t)}}function o(t){try{u(r.throw(t))}catch(t){n(t)}}function u(t){t.done?e(t.value):c(t.value).then(i,o)}u((r=r.apply(t,a||[])).next())})},s=this&&this.__generator||function(t,n){var i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},o,u,a,r,r={next:e(0),throw:e(1),return:e(2)};return"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function e(e){return function(t){return c([e,t])}}function c(e){if(o)throw new TypeError("Generator is already executing.");for(;i=r&&e[r=0]?0:i;)try{if(o=1,u&&(a=2&e[0]?u.return:e[0]?u.throw||((a=u.return)&&a.call(u),0):u.next)&&!(a=a.call(u,e[1])).done)return a;switch(u=0,(e=a?[2&e[0],a.value]:e)[0]){case 0:case 1:a=e;break;case 4:return i.label++,{value:e[1],done:!1};case 5:i.label++,u=e[1],e=[0];continue;case 7:e=i.ops.pop(),i.trys.pop();continue;default:if(!(a=0<(a=i.trys).length&&a[a.length-1])&&(6===e[0]||2===e[0])){i=0;continue}if(3===e[0]&&(!a||e[1]>a[0]&&e[1]<a[3]))i.label=e[1];else if(6===e[0]&&i.label<a[1])i.label=a[1],a=e;else{if(!(a&&i.label<a[2])){a[2]&&i.ops.pop(),i.trys.pop();continue}i.label=a[2],i.ops.push(e)}}e=n.call(t,i)}catch(t){e=[6,t],u=0}finally{o=a=0}if(5&e[0])throw e[1];return{value:e[0]?e[1]:void 0,done:!0}}},l=this&&this.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var i=0,o=e.length,u;i<o;i++)!u&&i in e||((u=u||Array.prototype.slice.call(e,0,i))[i]=e[i]);return t.concat(u||Array.prototype.slice.call(e))},Object.defineProperty(e,"__esModule",{value:!0}),e.UndoHelper=e.TableSheetUndoSourceType=e.TableSheetUndoType=void 0,o=n("Common"),u=n("Core"),a=void 0,n=o.Common.lt,r=n.ht,(o=f=e.TableSheetUndoType||(e.TableSheetUndoType={})).RowAction="rowAction",o.GroupOptions="groupOptions",o.GroupOutlinePosition="groupOutlinePosition",o.ExpandGroupByLevel="expandGroupBylevel",o.ExpandGroupItem="expandGroupItem",o.OptionChanged="optionChanged",o.ThemeChanged="themeChanged",o.PinnedRowsChanged="pinnedRowsChanged",o.PinnedColumnsChanged="pinnedColumnsChanged",o.DefaultRowHeightChanged="defaultRowHeightChanged",o.ApplyFreeHeaderChanged="applyFreeHeaderChanged",o.ResetViewChanged="resetViewChanged",o.UpdateFilterOnMoved="updateFilterOnMoved",o.FilterColumn="filterColumn",o.SetFilterItemMap="setFilterItemMap",o.RemoveCrosRowFilterInfo="removeCrosRowFilterInfo",o.RemoveRow="removeRow",o.SetDataView="setDataView",o.RemoveColumns="removeColumns",o.AddColumns="addColumns",o.ResetGroupOutline="resetGroupOutline",o.SortMapChanged="sortMapChanged",o.StoreTreeData="storeTreeData",o.ApplyTreeData="applyTreeData",o.ChangeCollapse="changeCollapse",(n=d=e.TableSheetUndoSourceType||(e.TableSheetUndoSourceType={}))[n.TableSheet=1]="TableSheet",n[n.DataManager=2]="DataManager",n[n.Combo=3]="Combo",b.prototype.startTransaction=function(){var t;this.P8++,null!=(t=this.view)&&t.VAe()},b.prototype.endTransaction=function(){var t,t;return this.P8=Math.max(this.P8-1,0),null!=(t=this.view)&&t.zAe(),0===this.P8?(t=this.getUndoChanges(),this.Eze(),t):[]},b.prototype.startAddComboChanges=function(){var t={sourceType:d.Combo,changes:[]};this.Zze(t),this.kze.push(t),this.Oze++},b.prototype.endAddComboChanges=function(){this.Oze=Math.max(this.Oze-1,0),this.kze.pop()},b.prototype.addUndoChanges=function(t){this.lM()&&(this.Uze(),this.Zze({sourceType:d.TableSheet,changeData:t}))},b.prototype.getUndoChanges=function(){return this.Uze(),this.G8},b.prototype.undo=function(a,r){var c;return void 0===r&&(r=!0),i(this,void 0,void 0,function(){var e,n,i,o,u,u;return s(this,function(t){switch(t.label){case 0:this.host.suspendPaint(),e=r?l([],a,!0).reverse():l([],a,!0),n=!0,i=0,t.label=1;case 1:return i<e.length?(o=e[i]).sourceType!==d.DataManager?[3,4]:(u=null==(c=this.view)?void 0:c.Mtt(o.changeData),n=!1,u?[4,u]:[3,3]):[3,6];case 2:t.sent(),t.label=3;case 3:return[3,5];case 4:o.sourceType===d.TableSheet?(u=this.Bze(o.changeData),n&&!1===u&&(n=u)):o.sourceType===d.Combo&&this.undo(o.changes,!1),t.label=5;case 5:return i++,[3,1];case 6:return this.Gze(n),[2]}})})},b.prototype.Gze=function(t){this.host.refreshBindColumns(),this.host.WDi(a,a,t),this.host.Rze(),this.host.resumePaint()},b.prototype.Zze=function(t){var e=this.kze[this.kze.length-1];(e&&0<this.Oze&&h(e)?e.changes:this.G8).push(t)},Object.defineProperty(b.prototype,"view",{get:function(){return this.host.getDataView()},enumerable:!1,configurable:!0}),b.prototype.Eze=function(){var t;null!=(t=this.view)&&t.iGe(),this.G8=[],this.kze=[],this.P8=0},b.prototype.lM=function(){return 0<this.P8},b.prototype.Bze=function(t){var e,n,i,o,u,a,r,o,a,c,o,a,c,o,a,i,e=this,n=!0;return t.type===f.RemoveCrosRowFilterInfo||t.type===f.UpdateFilterOnMoved||t.type===f.FilterColumn||t.type===f.SetFilterItemMap?this.Pze(t):t.type===f.RowAction?this.host.rowActionOptions(t.oldData):t.type===f.GroupOptions?((i=t.oldData)?this.host.groupBy(i):this.host.removeGroupBy(),n=!1):t.type===f.GroupOutlinePosition?this.host.groupOutlinePosition(t.oldData):t.type===f.ExpandGroupByLevel?(o=t.oldData,u=o.level,a=o.indexs,r=o.expand,a.forEach(function(t){e.host.expandGroupItem(u,t,r)})):t.type===f.ExpandGroupItem?(a=(o=t.oldData).level,c=o.index,o=o.expand,this.host.expandGroupItem(a,c,o)):t.type===f.OptionChanged?(a=t.key,i=t.oldData,this.host.options[a]=i):t.type===f.ThemeChanged?this.host.applyTableTheme(t.oldData):t.type===f.PinnedRowsChanged?this.host.Rze():t.type===f.PinnedColumnsChanged?this.host.Qze(t.oldData.oldFilterColumnsMap,t.oldData.oldFilterColumnsMap):t.type===f.DefaultRowHeightChanged?this.host.setDefaultRowHeight(t.oldData.size,t.oldData.sheetArea):t.type===f.ApplyFreeHeaderChanged?this.host.applyFreeHeaderArea(t.oldData):t.type===f.ResetViewChanged?(o=(c=t.oldData).columnInfoOptions,a=c.includeDefaultColumns,i=c.options,this.host.resetNewView(o,a,i)):t.type===f.RemoveRow?(this.host.Yze(),n=!1):t.type===f.RemoveColumns?this.host.Wze(t.oldCol,t.oldCount):t.type===f.AddColumns?this.host.Hze(t.oldCol,t.oldCount):t.type===f.ResetGroupOutline?(this.host.refreshBindColumns(),this.host.WDi()):t.type===f.SortMapChanged?(this.Vze(t),n=!1):t.type===f.StoreTreeData||t.type===f.ApplyTreeData?(this.Fze(t),n=!1):t.type===f.ChangeCollapse?this.host._ze(t.oldData):t.type===f.SetDataView&&this.host.kTi(this.view),n},b.prototype.Fze=function(t){var t=t.type;t===f.ApplyTreeData?this.host.nDi():t===f.StoreTreeData&&this.host.uDi()},b.prototype.Vze=function(t){var t,e,t=t.oldData,e;this.host.Mf.rowFilter().Jze(t)},b.prototype.Pze=function(t){var e,e,n,n,n,t,n,t;t.type===f.RemoveCrosRowFilterInfo?this.host.Mf.rowFilter().Xze(t.changedData):t.type===f.UpdateFilterOnMoved?(n=t.changedData.map(function(t){return{oldIndex:t.newIndex,newIndex:t.oldIndex}}),this.host.Mf.rowFilter().nTi(n)):t.type===f.FilterColumn?(n=this.host.Kze(t.changedData.columnName),r(n)||(this.host.Mf.VAe(),this.host.zA({cmd:"clearFilter",cmdOption:{colIndex:n}}),this.host.Mf.zAe())):t.type===f.SetFilterItemMap&&(t=(n=t.changedData).columnName,n=n.checkedValues,null!==(t=this.host.Kze(t)))&&(this.host.Mf.ki(u.Events.RangeFiltering,g(this.host.Mf,t,n,null)),this.host.Mf.IB.removeFilterItems(t),null!=(e=null==(e=this.host.Mf)?void 0:e.IB)&&e.setFilterItemMap&&this.host.Mf.IB.setFilterItemMap(t,n),this.host.Mf.IB.filter(t),this.host.Mf.ki(u.Events.RangeFiltered,g(this.host.Mf,t,n,null)))},b.prototype.Uze=function(){var e,t,t,t,n,e=this,n;(null!=(t=null==(t=this.view)?void 0:t.eGe())?t:[]).forEach(function(t){e.Zze({sourceType:d.DataManager,changeData:t})}),null!=(t=this.view)&&t.iGe()},e.UndoHelper=b},"./dist/plugins/tableSheet/tableSheet.entry.js":function(t,e,n){var i,o,i=this&&this.__createBinding||(Object.create?function(t,e,n,i){void 0===i&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);o&&("get"in o?e.__esModule:!o.writable&&!o.configurable)||(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}:function(t,e,n,i){t[i=void 0===i?n:i]=e[n]}),o=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||i(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),o(n("./dist/plugins/tableSheet/tableSheet.interface.js"),e),n("./dist/plugins/tableSheet/data.dataManager.js"),n("./dist/plugins/tableSheet/arrayFunction.js"),o(n("./dist/plugins/tableSheet/actionColumn.js"),e),n("./dist/plugins/tableSheet/tableSheet-theme.js"),o(n("./dist/plugins/tableSheet/tableSheet.js"),e),n("./dist/plugins/tableSheet/tableSheet-action.js"),n("./dist/plugins/tableSheet/tablesheet-command-register.js"),o(n("./dist/plugins/tableSheet/tablesheet-override.js"),e),o(n("./dist/plugins/tableSheet/tableSheet-panel/tableSheetPanel.js"),e)},"./dist/plugins/tableSheet/tableSheet.interface.js":function(t,e,n){var i,u,a,o,r,c,s,l,n,n,n,n;function f(t){this.Hc(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.CustomSheetTab=e.GroupLayoutMode=e.GroupOutlinePosition=e.TriggerWhenType=e.ColumnTypes=void 0,i=n("Core"),u=i.util.Z0,a=i.util.V0,(n=o=e.ColumnTypes||(e.ColumnTypes={})).Number="Number",n.Text="Text",n.Formula="Formula",n.Checkbox="Checkbox",n.Date="Date",n.Currency="Currency",n.Percent="Percent",n.Phone="Phone",n.Email="Email",n.URL="URL",n.Lookup="Lookup",n.CreatedTime="CreatedTime",n.ModifiedTime="ModifiedTime",n.Attachment="Attachment",n.Select="Select",n.Barcode="Barcode",(n=r=e.TriggerWhenType||(e.TriggerWhenType={})).onNew="onNew",n.onNewAndUpdate="onNewAndUpdate",(n=c=e.GroupOutlinePosition||(e.GroupOutlinePosition={}))[n.none=0]="none",n[n.groupCell=1]="groupCell",n[n.rowHeader=2]="rowHeader",n[n.groupCellAll=3]="groupCellAll",(n=s=e.GroupLayoutMode||(e.GroupLayoutMode={}))[n.tabular=0]="tabular",n[n.outline=1]="outline",n[n.condensed=2]="condensed",f.prototype.Hc=function(t){this.Zc=t,this.jft=i.SheetTabVisible.visible,this._gi=i.SheetType.customSheetTab},f.prototype.hg=function(t){this.onSetHost(t)},f.prototype.onSetHost=function(t){},f.prototype.L0=function(t,e){this.onDispose(t,e)},f.prototype.onDispose=function(t,e){},f.prototype.Zg=function(t){},f.prototype.pM=function(t){this.parent=t},f.prototype.getParent=function(){return this.parent},f.prototype.name=function(t){if(0===arguments.length)return this.Zc;this.Zc=t},f.prototype.visible=function(t){if(0===arguments.length)return this.jft;this.jft=!0===t?i.SheetTabVisible.visible:!1===t?i.SheetTabVisible.hidden:t},f.prototype.b2=function(t,e){if(0===arguments.length)return this.ni;this.ni=t},f.prototype.ow=function(){},f.prototype.tw=function(){},f.prototype.aw=function(){},f.prototype.$C=function(t){},f.prototype.Wb=function(t,e){},f.prototype.Kb=function(t){},f.prototype.Fb=function(t,e){},f.prototype.onHorizontalDockScroll=function(t,e){},f.prototype.Gb=function(t){},f.prototype.WC=function(t,e,n){this.parent.zb.w4()},f.prototype.QC=function(t,e,n){this.parent.Xb.w4()},f.prototype.Cg=function(){this.onDoResize()},f.prototype.onDoResize=function(){},f.prototype.suspendPaint=function(){},f.prototype.resumePaint=function(){},f.prototype.isPaintSuspended=function(){return!1},f.prototype.bind=function(t,e,n){},f.prototype.unbind=function(t,e){},f.prototype.unbindAll=function(){},f.prototype.D3=function(t,e,n){},f.prototype._3=function(t,e){},f.prototype.E3=function(){},f.prototype.suspendEvent=function(){},f.prototype.resumeEvent=function(){},f.prototype.isEventSuspended=function(){return!1},f.prototype.bC=function(){},f.prototype.ki=function(t,e,n){},f.prototype.isEditing=function(){return!1},f.prototype.ol=function(t,e,n,i){return!0},f.prototype.currentTheme=function(t){},f.prototype.FM=function(){},f.prototype.toJSON=function(t){},f.prototype.fromJSON=function(t,e,n,i,o){},f.prototype.uw=function(){return{top:0,left:0}},f.prototype.ot=function(){return new i.Rect(0,0,0,0)},f.prototype.hitTest=function(t,e,n,i){return null},f.prototype.R2e=function(){},f.prototype.parameter=function(t){var e,n,i,o;if(0===arguments.length){for(i in n={},e=this.ghe)e.hasOwnProperty(i)&&(n[i]=a(e[i]));return n}if(t){for(i in o={},t)t.hasOwnProperty(i)&&(o[i]=u(t[i]));this.ghe=o}},e.CustomSheetTab=f},"./dist/plugins/tableSheet/tableSheet.js":function(u,l,s){var f,r,o,L,g,d,G,c,m,A,b,B,h,O,R,P,Q,Y,v,W,t,M,t,H,k,V,F,_,J,I,X,N,D,j,C,K,w,p,q,$,tt,et,nt,it,ot,ut,at,E,Z,rt,ct,st,lt,ft,dt,a,ht,gt,i,t;function bt(t,e){return Array.isArray(t)?e?t.toString():Mt(t):t}function vt(t,e){return t&&It(e?"["+t+"]":t)}function Mt(t){var e=t;return e=Array.isArray(t)?"["+t.toString()+"]":e}function It(t){var e=t;return e=t&&"["===t[0]&&"]"===t[t.length-1]?t.substring(1,t.length-1).split(","):e}function mt(e,n,t){var i,o,u;e.value=e.value||n.value,e.type=e.type||n.type,e.caption=e.caption||n.caption,i=e.type!==n.type,o=n.type===d.ColumnTypes.CreatedTime||n.type===d.ColumnTypes.ModifiedTime,u=e.type===d.ColumnTypes.Formula,(t=t||Object.keys(n)).forEach(function(t){if(!e.hasOwnProperty(t)){if(i){if("defaultValue"===t||"dataType"===t||"style"===t||"_"===t[0])return;if(o&&("trigger"===t||"readonly"===t))return;if(!u&&"name"===t)return}e[t]=n[t]}})}function Nt(t){return k(t)||t!==d.GroupLayoutMode.outline&&t!==d.GroupLayoutMode.condensed?d.GroupLayoutMode.tabular:t}function Dt(t){return"header"===t||"footer"===t?t:E}function jt(t,i,o){Object.defineProperty(t,i,{get:function(){return this["_"+i]},set:function(t){var e,e,n,e,e=this["_"+i];e!==t&&(o?(n=(e=o(i,t,e))[0],e=e[1],this["_"+i]=n,e&&e()):this["_"+i]=t)},configurable:!0})}function e(t){return"gc-defined-column-type-icon-".concat(t.toLowerCase())}function x(t){return t&&"="===t[0]}function Ct(t){return t&&-1<t.indexOf(".")}function T(t){return"number"==typeof t}function S(t){return"string"==typeof t}function z(t){return"boolean"==typeof t}function U(t,e){return T(t[e])}function wt(t){return t instanceof Function}function pt(t,e){var n,i,o,u,a;if(t.collapsed)for(n=t.start+1;n<=t.end;n++)(i=e[n])?i.visible=!1:e[n]={visible:!1};else if(t.children)for(o=0,u=t.children;o<u.length;o++)pt(a=u[o],e)}function xt(t,e){var e,n,i,o,u,a,e=e&&e.grouping&&e.grouping.tree;if(e)for(n=(n=t.rows)||(t.rows=[]),o=0,u=i=e.children;o<u.length;o++)pt(a=u[o],n)}function yt(t,e){var e,n,e,i,o,u,n,a,r,c,s,l,f,d,h,e=e.options.alternatingRowOptions;if(e&&(n=e.step||[1,1],e=e.style,u=(i=k(n[0])?1:n[0])+(o=k(n[1])?1:n[1]),a=(a=(n=t.data).rowDataArray)||(n.rowDataArray=[]),e))for(s=c=r=void 0,Array.isArray(e)?(r=e[0],c=e[1]):r=e,l=0,f=t.rowCount;l<f;l++)(s=(d=Math.floor(l%u))<i?r:c)&&((h=(h=a[l])||(a[l]={})).style=s)}function At(t,e,n,i){var t,o;t[e]||(t[e]={}),(t=t[e])[n]||(t[n]={}),(o=t[n]).style=i}function Tt(t,e,n,i){for(var o,u,a,r,c,s,l,f,o=t.JS(e,i),u=o.row,a=o.col,r=0,c=o.rowCount;r<c;r++)for(s=0,l=o.colCount;s<l;s++)f=t.getActualStyle(u+r,a+s,i).toJSON(),V(f)||At(n,u+r,a+s,f)}function St(e,t,n){t&&(e.oNi=!0,t.rules.forEach(function(t){t.ranges.forEach(function(t){Tt(e,t,n)})}),e.oNi=!1)}function zt(t){return t.NMi}function y(e,t){return function(t){e.repaint()}}function Lt(t){var e,n,i,o,u,a,r,a,e=t.type,n=t.comparisonOperator;switch(U(A.ComparisonOperators,n)&&(n=A.ComparisonOperators[n]),e){case"number":o=t.value1,u=t.value2,a=t.isIntegerValue,i=(0,m.createNumberValidator)(n,o,u,a);break;case"date":o=t.value1,u=t.value2,i=(0,m.createDateValidator)(n,o,u);break;case"time":o=t.value1,u=t.value2,i=(0,m.createTimeValidator)(n,o,u);break;case"textLength":o=t.value1,u=t.value2,i=(0,m.createTextLengthValidator)(n,o,u);break;case"formula":r=t.formula,i=(0,m.createFormulaValidator)(r);break;case"formulaList":r=t.formula,i=(0,m.createFormulaListValidator)(r);break;case"list":a=t.source,i=(0,m.createListValidator)(a)}return i}function Ot(t,e){var n,i,o,u,a,r,c,s,l,e,n,n=e.errorMessage,i=e.errorStyle,o=e.errorTitle,u=e.highlightStyle,a=e.ignoreBlank,r=e.inCellDropdown,c=e.inputMessage,s=e.inputTitle,l=e.showErrorMessage,e=e.showInputMessage;k(n)||t.errorMessage(n),U(m.ErrorStyle,i)&&t.errorStyle(m.ErrorStyle[i]),k(o)||t.errorTitle(o),k(u)||(n={},U(m.HighlightType,u.type)&&(n.type=m.HighlightType[u.type]),k(u.color)||(n.color=u.color),U(m.HighlightPosition,u.position)&&(n.position=m.HighlightPosition[u.position]),k(u.image)||(n.image=u.image),t.highlightStyle(n)),k(a)||t.ignoreBlank(a),k(r)||t.inCellDropdown(r),k(c)||t.inputMessage(c),k(s)||t.inputTitle(s),k(l)||t.showErrorMessage(l),k(e)||t.showInputMessage(e)}function kt(t){var e=Lt(t);return Ot(e,t),e}function Et(t,e,n){var i,o,u,a,r,c,s,l,c,s,f,l,d,h,g,b,v,M,r,c,s,l,f,g,r,c,s,M,d,h,b,v,l,f,g,r,c,I,m,N,D,j,C,j,w,p,x,y,p,o,i,i=e.ruleType,o=e.style,u=o;switch(!o||o instanceof L.Style||(u=new L.Style(o)),i){case"cellValueRule":r=e.comparisonOperator,c=e.value1,s=e.value2,l=e.comparisionOperator,k(r)&&(r=l),U(A.ComparisonOperators,r)&&(r=A.ComparisonOperators[r]),a=t.addCellValueRule(r,c,s,u,n);break;case"specificTextRule":r=e.comparisonOperator,c=e.text,l=e.comparisionOperator,k(r)&&(r=l),U(A.TextComparisonOperators,r)&&(r=A.TextComparisonOperators[r]),a=t.addSpecificTextRule(r,c,u,n);break;case"formulaRule":s=e.formula,a=t.addFormulaRule(s,u,n);break;case"dateOccurringRule":f=e.type,U(A.DateOccurringType,f)&&(f=A.DateOccurringType[f]),a=t.addDateOccurringRule(f,u,n);break;case"top10Rule":f=e.type,l=e.rank,U(A.Top10ConditionType,f)&&(f=A.Top10ConditionType[f]),a=t.addTop10Rule(f,l,u,n);break;case"uniqueRule":a=t.addUniqueRule(u,n);break;case"duplicateRule":a=t.addDuplicateRule(u,n);break;case"averageRule":f=e.type,U(A.AverageConditionType,f)&&(f=A.AverageConditionType[f]),a=t.addAverageRule(f,u,n);break;case"twoScaleRule":d=e.minType,h=e.minValue,g=e.minColor,b=e.maxType,v=e.maxValue,M=e.maxColor,U(A.ScaleValueType,d)&&(d=A.ScaleValueType[d]),U(A.ScaleValueType,b)&&(b=A.ScaleValueType[b]),a=t.add2ScaleRule(d,h,g,b,v,M,n);break;case"threeScaleRule":d=e.minType,h=e.minValue,g=e.minColor,r=e.midType,c=e.midValue,s=e.midColor,b=e.maxType,v=e.maxValue,M=e.maxColor,U(A.ScaleValueType,d)&&(d=A.ScaleValueType[d]),U(A.ScaleValueType,r)&&(r=A.ScaleValueType[r]),U(A.ScaleValueType,b)&&(b=A.ScaleValueType[b]),a=t.add3ScaleRule(d,h,g,r,c,s,b,v,M,n);break;case"dataBarRule":d=e.minType,h=e.minValue,b=e.maxType,v=e.maxValue,l=e.color,f=e.gradient,g=e.showBarOnly,r=e.showBorder,c=e.borderColor,s=e.barDirection,M=e.negativeData,U(A.ScaleValueType,d)&&(d=A.ScaleValueType[d]),U(A.ScaleValueType,b)&&(b=A.ScaleValueType[b]),a=t.addDataBarRule(d,h,b,v,l,n),z(f)&&a.gradient(f),z(g)&&a.showBarOnly(g),z(r)&&a.showBorder(r),S(c)&&a.borderColor(c),U(A.BarDirection,s)&&a.dataBarDirection(A.BarDirection[s]),M&&(d=M.negativeFillColor,h=M.useNegativeFillColor,b=M.negativeBorderColor,v=M.useNegativeBorderColor,l=M.axisColor,f=M.axisPosition,S(d)&&a.negativeFillColor(d),z(h)&&a.useNegativeFillColor(h),S(b)&&a.negativeBorderColor(b),z(v)&&a.useNegativeBorderColor(v),S(l)&&a.axisColor(l),U(A.DataBarAxisPosition,f))&&a.axisPosition(A.DataBarAxisPosition[f]);break;case"iconSetRule":if(g=e.iconSetType,r=e.reverseIconOrder,c=e.showIconOnly,I=e.icons,m=e.iconCriteria,U(A.IconSetType,g)&&(g=A.IconSetType[g]),a=t.addIconSetRule(g,n),z(r)&&a.reverseIconOrder(r),z(c)&&a.showIconOnly(c),I)for(N=a.icons(),D=0;D<I.length;D++)C=(j=I[D]).iconSetType,j=j.iconIndex,U(A.IconSetType,C)&&(C=A.IconSetType[C]),N[D]={iconSetType:C,iconIndex:j};if(m)for(w=a.iconCriteria(),D=0;D<m.length;D++)x=(p=m[D]).isGreaterThanOrEqualTo,y=p.iconValueType,p=p.iconValue,U(A.IconValueType,y)&&(y=A.IconValueType[y]),w[D]=new A.IconCriterion(x,y,p)}a&&(o=e.priority,i=e.stopIfTrue,T(o)&&a.priority(o),z(i))&&a.stopIfTrue(i)}function Zt(t,e){return t.filter(function(t){return t.name===e})[0]}function Ut(t){return!k(t)&&!k(t.icons)&&0<t.icons.length}function Gt(t){for(var e=[];0<t;)e[--t]=t;return e}function Bt(t,e){var n,i,o,u;if(!k(t))for(I(t)||(t=[t]),n=0;n<t.length;n++)for(i=t[n],o=0;o<e.length;o++)if(u=e[o],i.field===u.value&&u.isGroup)return!0;return!1}function Rt(e){["columnStart","columnEnd","rowStart","rowEnd","repeatColumnStart","repeatColumnEnd","repeatRowStart","repeatRowEnd"].forEach(function(t){e[t]=function(){return-1}})}function Pt(t,e){!1===e?e=L.SheetTabVisible.hidden:!0===e&&(e=L.SheetTabVisible.visible),void 0!==e&&t.visible(e)}function n(t,e,n){this._gi=L.SheetType.tableSheet,this.uNi=0,this.jIi=0,this.cNi=[[]],this.jHe=this.getColumnIndexInTable;var i=this;this.ize=new v.UndoHelper(this),i.Mf=new Y.OverWriteWorkSheet(t||Xt(),this,this.ize),i.Hc(e,n)}function Qt(t){return t instanceof i}function Yt(t){return t.ctrlKey}function Wt(t){return t.shiftKey}function Ht(t){return t.metaKey}function Vt(t){var e,n=(L.mt.Qf()?Ht:Yt)(t),t=Wt(t);return{isCtrl:n&&!t,isShift:t&&!n}}function Ft(t,e,n){return n.isPinnedRow(e)}function _t(t,e,n){return n.isNewRow(e)?0:n.isInsertedRow(e)?1:n.isUpdatedRow(e)?2:-1}function Jt(t,e,n){return n.hasWarning(e)}function Xt(){var t="TableSheet"+i._ID;return i._ID++,t}function Kt(t){for(var e=Xt(),n=0;n<t.length;)t[n].name()===e?(e=Xt(),n=0):n++;return e}f=this&&this.__assign||function(){return(f=Object.assign||function(t){for(var e,n,i,o,n=1,i=arguments.length;n<i;n++)for(o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},r=this&&this.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var i=0,o=e.length,u;i<o;i++)!u&&i in e||((u=u||Array.prototype.slice.call(e,0,i))[i]=e[i]);return t.concat(u||Array.prototype.slice.call(e))},Object.defineProperty(l,"__esModule",{value:!0}),l.BuiltInRowActions=l.TableSheet=l.ActionType=l.copyOriginalColumnPropertiesToCurrentColumn=l.zze=l.tIi=l.getSR=void 0,o=s("Common"),L=s("Core"),g=s("Tables"),d=s("./dist/plugins/tableSheet/tableSheet.interface.js"),G=s("./dist/plugins/tableSheet/actionColumn.js"),c=s("./dist/plugins/tableSheet/tablesheet-override.js"),m=s("Validation"),A=s("ConditionalFormatting"),b=s("DataManager"),B=s("./dist/plugins/tableSheet/tableSheet-row-action.js"),h=s("AutoMerge"),O=s("./dist/plugins/tableSheet/tableSheet-grouping.js"),R=s("./dist/plugins/tableSheet/tableSheet-panel/tableSheetPanel.js"),P=s("./dist/plugins/tableSheet/tableSheet-status-bar.js"),Q=s("SheetsCalc"),Y=s("./dist/plugins/tableSheet/overr-write-worksheet.js"),v=s("./dist/plugins/tableSheet/tableSheet-undo.js"),W=s("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-popup.js"),t=new o.Common.ResourceManager(c.SR,"TableSheet"),l.getSR=t.getResource.bind(t),M=o.Common.lt.tv,t=o.Common.lt,H=L.mt.j,k=t.ht,V=t._h,F=t.Dh,_=t.y0,J=t.tv,I=t.Nh,X=Number.MAX_VALUE,N="composedPinDirtyNewWarningRow",D="pinRow",j="dirtyStatus",C="warningInfo",K="removeRow",w="saveRow",p="resetRow",$="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTIiIHZpZXdCb3g9IjAgMCAxMiAxMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3Qgd2lkdGg9IjEyIiBoZWlnaHQ9IjEyIiBmaWxsPSJ0cmFuc3BhcmVudCIvPgo8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTcgOUg1TDUgNS45NjA0NmUtMDhIN0w3IDlaTTYgMTBDNi41NTIyOCAxMCA3IDEwLjQ0NzcgNyAxMUM3IDExLjU1MjMgNi41NTIyOCAxMiA2IDEyQzUuNDQ3NzIgMTIgNSAxMS41NTIzIDUgMTFDNSAxMC40NDc3IDUuNDQ3NzIgMTAgNiAxMFoiIGZpbGw9IiNFNjUyNDkiLz4KPC9zdmc+Cg==",tt="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTIiIHZpZXdCb3g9IjAgMCAxMiAxMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3Qgd2lkdGg9IjEyIiBoZWlnaHQ9IjEyIiBmaWxsPSJ0cmFuc3BhcmVudCI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45NzUgMi40MjUgcSAwLjk3NSAwLjk3NSAyLjQyNSAwLjk3NSBaIiBzdHJva2UtbGluZWNhcD0icm91bmQiLz4KPC9nPgo8L3N2Zz4=",ut="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAwIDI0IDI0IiB3aWR0aD0iMjRweCIgZmlsbD0iIzAwMDAwMCI+PGcgZmlsbD0ibm9uZSI+PHBhdGggZD0iTTAgMGgyNHYyNEgwVjB6Ii8+PHBhdGggZD0iTTAgMGgyNHYyNEgwVjB6IiBvcGFjaXR5PSIuODciLz48L2c+PHBhdGggZD0iTTIwIDhoLTNWNi4yMWMwLTIuNjEtMS45MS00Ljk0LTQuNTEtNS4xOUM5LjUxLjc0IDcgMy4wOCA3IDZ2Mkg0djE0aDE2Vjh6bS04IDljLTEuMSAwLTItLjktMi0ycy45LTIgMi0yIDIgLjkgMiAyLS45IDItMiAyek05IDhWNmMwLTEuNjYgMS4zNC0zIDMtM3MzIDEuMzQgMyAzdjJIOXoiLz48L3N2Zz4=",at="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iNDgiIHdpZHRoPSI0OCI+PHBhdGggZD0ibTExLjY1IDQ0IDMuMjUtMTQuMDVMNCAyMC41bDE0LjQtMS4yNUwyNCA2bDUuNiAxMy4yNUw0NCAyMC41bC0xMC45IDkuNDVMMzYuMzUgNDQgMjQgMzYuNTVaIi8+PC9zdmc+",E=void 0,Z=null,rt=".tableSheet",ct="gc.spread.contextMenu.defineColumn",st="gc.spread.contextMenu.insertColumns",lt="gc.spread.defineColumn.submit",ft=L.util.Z0,dt=L.util.V0,l.tIi=bt,l.zze=vt,l.copyOriginalColumnPropertiesToCurrentColumn=mt,a={},l.BuiltInRowActions=a,ht={name:N,icons:[q,tt,et,nt,$]},L.Events.RowOperation="RowOperation",(t=gt=l.ActionType||(l.ActionType={}))[t.remove=0]="remove",t[t.save=1]="save",t[t.reset=2]="reset",t[t.addNewEmptyRow=3]="addNewEmptyRow",n.prototype.Iwt=function(t,e,n){var i,o,u,a,r,c,s,l,f,i=e.abt.getDataView(),o=i&&i.gLt,u=this.getColumnIndexInTable(e.ubt),a=u,r=i.getColumnInfos();for(e.sbt&&(a=this.getColumnIndexInTable(e.sbt)),c=u;c<=a;c++)s=-1===c?"*":r[c].value,o._Et(t,s,n);if(l=this.rNi,n)this.rNi.push(e);else for(f=0;f<l.length;f++)l[f]===e&&(l.splice(f,1),f--)},n.prototype.startRow=function(){return 0},n.prototype.startColumn=function(){return 0},n.prototype.endRow=function(){return this.Mf.getRowCount()-(this.options.allowAddNew?2:1)},n.prototype.endColumn=function(){return this.Mf.getColumnCount()-1},n.prototype.hasTotalsRow=function(){return!1},n.prototype.hasHeadersRow=function(){return!1},n.prototype.tableName=function(){return this.name()},n.prototype.source=function(){return this.Mf.Uw()},n.prototype.getColumnName=function(t,e){var n,i,t,n,i,t=this.Mf.getDataSource().getColumn(t);return t?bt(t.caption,e)||t.value:null},n.prototype.getColumnIndexInTable=function(t){for(var e,n,i,o,e,n,i,o=this.Mf.getDataSource().getColumnInfos().length-1;0<=o;o--)if(t===this.getColumnName(o)||t===this.getColumnName(o,!0))return o;return-1},n.prototype.showFooter=function(t){return!1},n.prototype.dataRange=function(){var t,e,t=this,e=this.Mf.getRowCount();return t.options.allowAddNew&&e--,(0,L.Ec)(0,0,e,t.endColumn()+1)},n.prototype.headerIndex=function(){return 0},n.prototype.cSt=function(t,e){var n,i;for(null!==t&&(t=H(t)),n=0;n<this.Tx;n++)if(n!==e&&t===(i=this.getColumnName(n)))return!0;return!1},n.prototype.Hc=function(t,e){var a,r,a=this,r=a.Mf;r.$L.push({tF:function(t,e){var n,i,o,e,i,u;return void 0===e&&(e={}),n=1,i=a.gze(),o=e.spacingIndex,e=e.isAfter,(0,O.isGroupOutlineCondensedLayout)(i)&&(n=0),i=X,e&&(u=r.TFe&&r.TFe(t,o,-1,e))&&"number"==typeof u.level&&(i=u.level+1),a.sMi(t,i,n,o,e)}}),a.rNi=[],this.suspendPaint(),a.aNi(),a.setDefaultRowHeight(30),a.setDefaultRowHeight(30,L.SheetArea.colHeader),r.setRowCount(0),r.setColumnCount(0),r.zwt("@","=A1",0,0,!0),r.zwt("AutoId","=MAX(OFFSET($A$1,0,COLUMN()-1,ROW()-1,1))+1",0,0,!0),(0,c.overrideProperties)(a),(0,c.overrideMethods)(a),a.v7(),t&&r.setDataSource(t),a.Zp(e),a.sNi(),a.MNi(),a.INi=new O.Grouping,a.rowActionOptions(a.gNi),a.applyTableTheme(g.TableThemes.light2),a.leV(),this.resumePaint()},n.prototype.leV=function(){},n.prototype.reset=function(){var t,e,n,i,o,e=this,n=e.Mf,i=e.UMi,o=e.getDataView();o&&(null!=(t=o.iGe)&&t.call(o),e.qze()),n&&n.reset(),i&&i.detach(),e.E3(),e.Hc(),e.lMi=E,e.jFt=E,e.jIi=0,e.uNi=0},n.prototype.hg=function(t){this.Mf.hg(t)},n.prototype.L0=function(t,e){var n=this.Mf;t&&this.WTi(!0),this.$ze&&this.$ze.close(),n.L0(t,e),t&&(n.E3(),this.UMi)&&this.UMi.detach()},n.prototype.Zg=function(t){this.Mf.Zg(t)},n.prototype.setAccessibilityPrefixSuffixContent=function(t,e){this.Mf.setAccessibilityPrefixSuffixContent(t,e)},n.prototype.pM=function(t){this.Mf.pM(t),this.NNi()},n.prototype.getParent=function(){return this.Mf.getParent()},n.prototype.name=function(t){var e=this.Mf;return e.name.apply(e,arguments)},n.prototype.visible=function(t){var e=this.Mf;return e.visible.apply(e,arguments)},n.prototype.b2=function(t,e){return this.Mf.b2(t,e)},n.prototype.ow=function(){this.Mf.ow()},n.prototype.aw=function(){this.Mf.aw()},n.prototype.tw=function(){this.Mf.tw()},n.prototype.Wb=function(t,e){this.Mf.Wb(t,e)},n.prototype.Kb=function(t){this.Mf.Kb(t)},n.prototype.Fb=function(t,e){this.Mf.Fb(t,e)},n.prototype.onHorizontalDockScroll=function(t,e){this.Mf.onHorizontalDockScroll(t,e)},n.prototype.Gb=function(t){this.Mf.Gb(t)},n.prototype.WC=function(t,e,n){this.Mf.WC(t,e,n)},n.prototype.$C=function(t){this.Mf.$C(t)},n.prototype.QC=function(t,e,n){this.Mf.QC(t,e,n)},n.prototype.Cg=function(){this.Mf.Cg()},n.prototype.suspendPaint=function(){this.Mf.suspendPaint()},n.prototype.resumePaint=function(){var t=this.Mf.getDataSource();t&&this.lNi(t.visibleLength()),this.Mf.resumePaint()},n.prototype.isPaintSuspended=function(){return this.Mf.isPaintSuspended()},n.prototype.bind=function(t,e,n){this.Mf.bind(t,e,n)},n.prototype.unbind=function(t,e){this.Mf.unbind(t,e)},n.prototype.unbindAll=function(){this.Mf.unbindAll()},n.prototype.D3=function(t,e,n){this.Mf.D3(t,e,n)},n.prototype._3=function(t,e){this.Mf._3(t,e)},n.prototype.E3=function(){this.Mf.E3()},n.prototype.suspendEvent=function(){this.Mf.suspendEvent()},n.prototype.resumeEvent=function(){this.Mf.resumeEvent()},n.prototype.isEventSuspended=function(){return this.Mf.isEventSuspended()},n.prototype.bC=function(){this.Mf.bC()},n.prototype.ki=function(t,e,n){this.Mf.ki(t,e,n)},n.prototype.isEditing=function(){return this.Mf.isEditing()},n.prototype.ol=function(t,e,n,i){return this.Mf.ol(t,e,n,i)},n.prototype.currentTheme=function(t){var e=this.Mf;return e.currentTheme.apply(e,arguments)},n.prototype.FM=function(){(0,l.getSR)(),this.Mf.FM()},n.prototype.DNi=function(t){var e,t=t||this.gNi;return J(t).map(function(t){return delete t.subActionOptions,t})},n.prototype.fNi=function(t,e){var n,i,o,u,a,r,c,s,l,f,d,d,n=[N,D,j,C,K,w,p],i=[q,$,tt,et,nt],o=["ROW_ACTION_PIN_ROW","ROW_ACTION_WARNING_INFO","ROW_ACTION_NEW_ROW","ROW_ACTION_INSERTED_ROW","ROW_ACTION_UPDATED_ROW"],u=e?o:i,a=e?i:o;if(I(t))for(r=0;r<t.length;r++)if(s=(c=t[r]).name,l=c.icons,-1<n.indexOf(s)&&l)for(f=0;f<l.length;f++)"string"==typeof(d=l[f])&&-1<(d=u.indexOf(d))&&(l[f]=a[d]);return t},n.prototype.dNi=function(t,e){var n,i,o,u,a,u,u,r,c,s,l,f,d,h,s,n=this,i=n.Mf;return t&&t.saveAsView?(e.colHeaderData.dataTable||(e.colHeaderData.dataTable={}),Tt(i,(0,L.Ec)(0,0,i.getRowCount(1),i.getColumnCount(1)),e.colHeaderData.dataTable,1),n.iAi(e),e.data.dataTable||(e.data.dataTable={}),St(i,e.conditionalFormats,e.data.dataTable),delete e.conditionalFormats,delete e.validations):k(e)||n.iAi(e),o={},u=n.getDataView(),a=t&&t.gp,u&&(o.dataView={name:u.name,tableName:u.gLt.name},o.grouping=n.INi.toJSON(),a)&&(o.grouping.groupInfos=M(n.lMi)),u=i.rowFilter(),o.rowFilter=u.toJSON(),a&&xt(e,o),u=n.options,(r={}).allowAddNew=u.allowAddNew,u.hasOwnProperty("defaultStackRowHeight")&&(r.defaultStackRowHeight=u.defaultStackRowHeight),u.hasOwnProperty("menuItemVisibility")&&(r.menuItemVisibility=u.menuItemVisibility),r.sheetTabColor=u.sheetTabColor,(c=u.alternatingRowOptions)?(s=c.style,l=void 0,Array.isArray(s)?l=[f=s[0]&&s[0].toJSON(),d=s[1]&&s[1].toJSON()]:s&&(l=s.toJSON()),r.alternatingRowOptions={step:c.step,style:l}):null===c&&(r.alternatingRowOptions=null),u.hasOwnProperty("isDesignMode")&&(r.isDesignMode=u.isDesignMode),u.hasOwnProperty("showRowNumber")&&(r.showRowNumber=u.showRowNumber),u.hasOwnProperty("enableDefineColumn")&&(r.enableDefineColumn=u.enableDefineColumn),u.hasOwnProperty("defineColumnCommand")&&(r.defineColumnCommand=u.defineColumnCommand),u.hasOwnProperty("submitDefineColumnCommand")&&(r.submitDefineColumnCommand=u.submitDefineColumnCommand),u.hasOwnProperty("columnTypeItems")&&(r.columnTypeItems=u.columnTypeItems),u.hasOwnProperty("groupLayout")&&(h=u.groupLayout)&&["mode","position"].forEach(function(t){var e=h[t];h.hasOwnProperty(t)&&(r.groupLayout||(r.groupLayout={}),r.groupLayout[t]=e)}),o.options=r,o.rowActionOptions=n.fNi(n.DNi()),n.hl&&(o.currentTheme=n.hl.toJSON()),t&&t.saveAsView&&!a&&yt(e,o),s=i.defaults,o.defaults={rowHeight:s.rowHeight,colHeaderRowHeight:s.colHeaderRowHeight},o.printInfo=i.printInfo&&i.printInfo().toJSON(),o.freeHeaderArea=n.hNi,e&&(e.sheetType=n._gi),o.parameter=n.ghe,o},n.prototype.toJSON=function(t){var e,n,n,e=this,n=e.Mf;return n.options.sheetTabColor=this.options.sheetTabColor,t&&t.cb===L.OpenSaveFileType.excel&&(e.WWe=!0),(n=n.toJSON(t)).addition=e.dNi(t,n),(n=e.eZe(n,t)).sheetType=this._gi,t&&t.cb===L.OpenSaveFileType.excel&&(e.WWe=E),n},n.prototype.eZe=function(t,e){var n,i,o,u,a,n=this,i=n.Mf;return e&&e.cb===L.OpenSaveFileType.excel&&n.sze(!0)&&(o=new L.Worksheet(n.Mf.name()),(u=t.addition)&&!k(u.currentTheme)&&((a=new g.TableTheme).fromJSON(u.currentTheme),o.suspendPaint(),n.oZe(o,M(n.options.alternatingRowOptions),a),o.resumeEvent()),delete t.spacing,o.fromJSON(t,!1,E,E,!0),n.uZe()?n.aZe(o,i):n.rZe(o,i),n.cZe(o),(t=o.toJSON(e)).addition=u),t},n.prototype.cZe=function(t){for(var e,n,i,o,u,e=this,n=e.getDataView().getColumnInfos(),i=0;i<n.length;i++)if(!1!==(o=n[i]).visible){(u=t.getStyle(-1,i)).textIndent=e.lMi.length,t.setStyle(-1,i,u);break}},n.prototype.sZe=function(t){var e,n,i,o,u,t,a,e,n,i=this.getDataView().getColumnInfos(),o=new L.Style;return o.backColor="white",t=(u=t.Ut.vFe).mFe,{columnInfos:i,spacingStyle:o,rows:a=Object.keys(t).reverse()}},n.prototype.rZe=function(t,e){var n,i,o,u,a,r,c,s,l,f,d,h,g,b,v,M,I,m,N,D,j,C,w,p,x,y,A,T,S,z,z,z,S;if(t.FCn)for(o=(i=(n=this).sZe(e)).columnInfos,u=i.spacingStyle,r=0,c=a=i.rows;r<c.length;r++){if(s=c[r],l=Number(s),0<(f=2*e.C9e(l,!0)))for(t.addRows(l+1,f),d=0;d<f;d+=2)if(h=Math.floor(d/2),b=(g=l+d+1)+1,v=e.MFe(l,d,!0)/2,t.setRowHeight(g,v),t.setRowHeight(b,v),M=e.TFe(l,h,-1,!0),!k(M))if(I={rowSpacingIndex:h,isAfterRowSpacing:!0},M.isSpacing){for(m=e.getActualStyle(l,-1,E,E,I),u.borderTop=m.borderTop,N=0;N<o.length;N++)t.setStyle(g,N,u);t.setRowHeight(g,2*v),t.deleteRows(b,1)}else for(m=e.getActualStyle(l,-1,E,E,I),N=0;N<o.length;N++)(D=m.clone()).borderBottom=Z,t.setStyle(g,N,D),(j=m.clone()).borderTop=Z,t.setStyle(b,N,j),C=e.TFe(l,h,N,!0),k(C)||(w=e.Jt.qt(l,N,E,E,I),(p=(0,O.composeHeaderStyle)(C,w)).hAlign=(0,O.getHorizontalAlign)(p,L.HorizontalAlign.right),x=C.caption,k(x)||(p.borderBottom=Z,t.setStyle(g,N,p),t.setValue(g,N,C.caption)),(y=(0,O.composeValueStyle)(C,w)).hAlign=(0,O.getHorizontalAlign)(y,L.HorizontalAlign.right),A=C.value,k(A))||(y.borderTop=Z,t.setStyle(b,N,y),t.setValue(b,N,C.value));if(0<(f=2*e.C9e(l)))for(t.addRows(l,f),d=0;d<f;d+=2)if(h=Math.floor(d/2),b=(g=l+d)+1,v=e.MFe(l,h)/2,t.setRowHeight(g,v),t.setRowHeight(b,v),M=e.TFe(l,h,-1))for(m=e.getActualStyle(l,-1,E,E,I={rowSpacingIndex:h,isAfterRowSpacing:!1}),T=!1,N=0;N<o.length;N++)(D=m.clone()).borderBottom=Z,t.setStyle(g,N,D),(j=m.clone()).borderTop=Z,t.setStyle(b,N,j),S=!T&&!1!==o[N].visible,w=e.Jt.qt(l,N,E,E,I),y=void 0,S&&(T=!0,p=(0,O.composeHeaderStyle)(M.groupLevelOptions,w),z=M.field,k(z)||(p.textIndent=M.level,p.borderBottom=Z,t.setStyle(g,N,p),t.setValue(g,N,M.field)),y=(0,O.composeValueStyle)(M.groupLevelOptions,w),z=M.value,k(z)||(y.textIndent=M.level,y.borderTop=Z,t.setStyle(b,N,y),t.setValue(b,N,M.value))),C=e.TFe(l,h,N),k(C)||S||((z=(0,O.composeHeaderStyle)(C,w)).hAlign=(0,O.getHorizontalAlign)(z,L.HorizontalAlign.right),x=C.caption,k(x)||(z.borderBottom=Z,t.setStyle(g,N,z),t.setValue(g,N,C.caption)),(S=(0,O.composeValueStyle)(C,w)).hAlign=(0,O.getHorizontalAlign)(S,L.HorizontalAlign.right),A=C.value,k(A))||(S.borderTop=Z,t.setStyle(b,N,S),t.setValue(b,N,C.value))}},n.prototype.aZe=function(t,e){var n,i,o,u,a,r,c,s,l,f,d,h,g,b,v,M,I,m,N,D,j,C,w,p,p;if(t.FCn)for(o=(i=(n=this).sZe(e)).columnInfos,u=i.spacingStyle,r=0,c=a=i.rows;r<c.length;r++){if(s=c[r],l=Number(s),0<(f=e.C9e(l,!0)))for(t.addRows(l+1,f),d=0;d<f;d++)if(h=l+d+1,g=e.MFe(l,d,!0),t.setRowHeight(h,g),b=e.TFe(l,d,-1,!0),!k(b))if(v={rowSpacingIndex:d,isAfterRowSpacing:!0},b.isSpacing)for(M=e.getActualStyle(l,-1,E,E,v),u.borderTop=M.borderTop,I=0;I<o.length;I++)t.setStyle(h,I,u);else for(M=e.getActualStyle(l,-1,E,E,v),I=0;I<o.length;I++)t.setStyle(h,I,M),m=e.TFe(l,d,I,!0),k(m)||(N=e.Jt.qt(l,I,E,E,v),(D=(0,O.composeValueStyle)(m,N)).hAlign=(0,O.getHorizontalAlign)(D,L.HorizontalAlign.right),j=(0,O.getValueFromCondensed)(m),k(j))||(t.setStyle(h,I,D),t.setValue(h,I,j));if(0<(f=e.C9e(l)))for(t.addRows(l,f),d=0;d<f;d++)if(h=l+d,g=e.MFe(l,d),t.setRowHeight(h,g),b=e.TFe(l,d,-1))for(M=e.getActualStyle(l,-1,E,E,v={rowSpacingIndex:d,isAfterRowSpacing:!1}),C=!1,I=0;I<o.length;I++)t.setStyle(h,I,M),w=!C&&!1!==o[I].visible,N=e.Jt.qt(l,I,E,E,v),D=void 0,w&&(C=!0,D=(0,O.composeValueStyle)(b.groupLevelOptions,N),p=(0,O.getGroupHeaderValueFromCondensed)(b),k(p)||(D&&(D.textIndent=b.level,t.setStyle(h,I,D)),t.setValue(h,I,p))),m=e.TFe(l,d,I),k(m)||w||((p=(0,O.composeValueStyle)(m,N)).hAlign=(0,O.getHorizontalAlign)(p,L.HorizontalAlign.right),j=(0,O.getValueFromCondensed)(m),k(j))||(t.setStyle(h,I,p),t.setValue(h,I,j))}},n.prototype.TNi=function(t){var e,n,i,o,o,o,i,u,o,i,a,r,c,n;if(t){if(n=(e=this).Mf,i=t.options,k(t.currentTheme)||((o=new g.TableTheme).fromJSON(t.currentTheme),e.applyTableTheme(o)),o=e.getDefaultOptions(),e.options.allowAddNew=i.allowAddNew,e.options.defaultStackRowHeight=i.defaultStackRowHeight,e.options.menuItemVisibility=i.menuItemVisibility,e.options.isDesignMode=i.isDesignMode,e.options.sheetTabColor=i.sheetTabColor,e.options.showRowNumber=i.showRowNumber,e.options.enableDefineColumn=i.enableDefineColumn,e.options.defineColumnCommand=(k(i.defineColumnCommand)?o:i).defineColumnCommand,e.options.submitDefineColumnCommand=(k(i.submitDefineColumnCommand)?o:i).submitDefineColumnCommand,e.options.columnTypeItems=(k(i.columnTypeItems)?o:i).columnTypeItems,e.options.groupLayout=(k(i.groupLayout)?o:i).groupLayout,e.bNi(i.alternatingRowOptions,i.alternatingRowStyles),k(t.actionColumn)||e.actionColumn.fromJSON(t.actionColumn),e.rowActionOptions(e.fNi(t.rowActionOptions,!0)),o=n.defaults,(i=t.defaults)&&(o.rowHeight=i.rowHeight,o.colHeaderRowHeight=i.colHeaderRowHeight),n.printInfo&&t.printInfo&&((o=new(u=s("Print")).PrintInfo).fromJSON(t.printInfo),n.printInfo(o)),i=t.stateRules)for(a=0,r=i;a<r.length;a++)(c=r[a]).isRow?e.addRowStateRule(c.state,c.style):e.addColumnStateRule(c.state,c.style);(n=t.freeHeaderArea)&&e.applyFreeHeaderArea(n),e.ghe=t.parameter}},n.prototype.fromJSON=function(t,e,n,i,o){var u,a,r,c,s,l,f,d,h,d,f,e,n,i,u=this,a=u.Mf,r=i&&i.gp,c=i&&i.sb,s=i&&i.cb,l=t.addition,f=l.options;r||c&&s===L.OpenSaveFileType.excel?(c&&s===L.OpenSaveFileType.excel&&(k(l.currentTheme)||((d=new g.TableTheme).fromJSON(l.currentTheme),u.applyTableTheme(d)),f)&&(u.options.sheetTabColor=f.sheetTabColor),r&&(u.options||(u.options={}),u.bNi(f.alternatingRowOptions,f.alternatingRowStyles),l.grouping&&(l.grouping.tree&&u.INi.fromJSON(a,l.grouping,!0),l.grouping.groupInfos)&&u.lZe(l.grouping.groupInfos),f.groupLayout&&u.fZe(f.groupLayout),u.options.allowAddNew=!1),t.rowFilter=E,a.fromJSON(t,e,n,i,o),r&&(l.options.showRowNumber?(a.setColumnCount(h=1,L.SheetArea.rowHeader),a.setColumnVisible(0,!0,L.SheetArea.rowHeader),a.setColumnWidth(0,a.defaults.rowHeaderColWidth,L.SheetArea.rowHeader)):(a.setColumnCount(0,L.SheetArea.rowHeader),1!==(d=a.printInfo()).showRowHeader()&&d.showRowHeader(1)))):c&&s===L.OpenSaveFileType.sjs?(a.ub(t.name+"",!0),a.b2(t.isSelected),a.g8(t.zoomFactor||1),u.TNi(l),u.ANi(l)):(a.ub(t.name+"",!0),a.b2(t.isSelected),a.g8(t.zoomFactor||1),Pt(a,t.visible),u.TNi(l),f=l&&l.dataView,e=a.parent&&a.parent.dataManager(),(i=(n=f&&e.tables[f.tableName])&&n.views[f.name])&&u.kTi(i,!1))},n.prototype.ANi=function(t,e){var n,i,o,u,i,i,i,n=this,i=n.Mf,o=t.dataView,u,i=i.parent.dataManager(),i=o&&i.tables[o.tableName],i=i&&i.views[o.name];n.fromJSONAfterViewFetchedImp(t,i,e)},n.prototype.fromJSONAfterViewFetchedImp=function(t,e,n){var i,o,e;e&&(o=(i=this).Mf,i.suspendPaint(),i.restoreView(e,n),i.INi.fromJSON(i.Mf,t.grouping),e=o.rowFilter(),t.rowFilter&&e.fromJSON(t.rowFilter),i.vNi(i.options.isDesignMode),i.resumePaint())},n.prototype.resetNewView=function(t,e,n){var i,o,u,a,r,c,s,i,a,r,i=this.getDataView(),o=i.gLt,u=i.name,a=i.ILt,r=i.includeDefaultColumns,c=i.LEt,s=i.$Be(),i=i.toJSON(),a={columnInfoOptions:a,includeDefaultColumns:r,options:c};o.removeView(u),(r=o.addView(u,t,e,n)).fromJSON(i),r.tGe(s),this.ize.addUndoChanges({type:v.TableSheetUndoType.ResetViewChanged,oldData:a}),this.restoreView(r)},n.prototype.restoreView=function(t,e){for(var n,i,o,u,e,a,e,u,r,r,n=this,i=n.Mf,o=0;o<t.lFt.length;o++)t.lFt[o]>=t.length()&&(t.lFt.splice(o,1),o--);n.suspendPaint(),t.visibleLength()!==t.length()&&(t.gFt(),t.bde()),(u=t.getColumnInfos()).some(function(t){return t.isGroup})&&(u=u.filter(function(t){return!t.isGroup}),t.setColumnInfos(u)),e?n.refreshBindColumns(E,t):n.kTi(t),e=t.DLt&&0<t.DLt.length,a=t._Lt&&0<t._Lt.length,e&&(t.isHierarchy()?t.KFt(t.DLt):t.JFt(t.DLt)),u=Bt(e=t.NLt,u),e&&!u&&t.filter(e),0<(r=t.lFt.length)&&(i.frozenRowCount(r),n.uNi=r),0<(r=t.CLt.length)&&(i.frozenColumnCount(r),n.jIi=r),t.MFt&&(n.groupBy(t.MFt),e&&u&&t.filter(e),a)&&t.HFt(t._Lt),n.resumePaint()},n.prototype.bNi=function(t,e){t?this.options.alternatingRowOptions={step:t.step,style:this.jNi(t.style)}:e?this.options.alternatingRowOptions={step:[1,1],style:this.jNi(e)}:null!==t&&null!==e||(this.options.alternatingRowOptions=null)},n.prototype.lZe=function(t){this.lMi=t},n.prototype.fZe=function(t){this.options.groupLayout=t},n.prototype.jNi=function(t){var e,n,e,e=Array.isArray(t)?(n=new L.Style,e=new L.Style,t[0]&&n.fromJSON(t[0],!1,null),t[1]&&e.fromJSON(t[1],!1,null),[n,e]):((n=new L.Style).fromJSON(t,!1,null),n);return e},n.prototype.wh=function(t,e,n){var i,o,o,i=this,o=i.Mf;return n&&n.fileType===L.OpenSaveFileType.excel?(o.options.sheetTabColor=i.options.sheetTabColor,o.wh(t,e,n)):((o=o.wh(t,e,n)).lossless.addition=i.dNi(),o)},n.prototype.yh=function(t,e,n,i){var o,u,a,t,t,a,a,a,t,o,a,o=this,u=o.Mf,a=t.lossless.addition;i||((t=L.util.o1(t,"sheetViews&sheetView"))&&(t.zoomScale&&u.zoom(t.zoomScale/100),"1"===t.tabSelected)&&u.b2(!0,!1),o.TNi(a)),t=a&&a.dataView,a=u.parent&&u.parent.dataManager(),(a=(a=t&&a.tables[t.tableName])&&a.views[t.name])&&o.kTi(a,i),i||(a=(o=(t=u.parent)&&t.v2)&&o.sheetsState)&&(a[u.name()]=2)},n.prototype.uw=function(){return this.Mf.uw()},n.prototype.ot=function(){return this.Mf.ot()},n.prototype.hitTest=function(t,e,n,i){return this.Mf.hitTest(t,e,n,i)},n.prototype.getSheet=function(){return this.Mf},n.prototype.getSelections=function(t){return t===L.SheetArea.colHeader?this.Mf.Ut.getSelections(1):this.Mf.getSelections()},n.prototype.zoom=function(t){return 0===arguments.length?this.Mf.zoom():this.Mf.zoom(t)},n.prototype.autoFitRow=function(t){this.Mf.autoFitRow(t)},n.prototype.getColumnWidth=function(t,e,n){return this.Mf.getColumnWidth(t,e,n)},n.prototype.getRowHeight=function(t,e,n){return this.Mf.getRowHeight(t,e,n)},n.prototype.getColumnCount=function(t){return this.Mf.getColumnCount(t)},n.prototype.getRowCount=function(t){return this.Mf.getRowCount(t)},n.prototype.setDataView=function(t){this.kTi(t)},n.prototype.HTi=function(t){var e,n,e=this.Mf,n;(t||this.getDataView())&&e.setRowCount(t.visibleLength()+(this.options.allowAddNew?1:0))},n.prototype.Mji=function(t){var e=this.Mf;t&&(e.setColumnCount(t.getColumnInfos().length),this.HTi(t))},n.prototype.qze=function(){this.Mf.parent.Wp.clear()},n.prototype.kTi=function(t,e){var n,i,o,n,n,i=this.Mf;i.xT||(this.suspendPaint(),i.suspendCalcService(),n=(null==(o=this.getDataView())?void 0:o.name)===(null==t?void 0:t.name),t&&this.WTi(!n),!n&&o&&(null!=(n=o.iGe)&&n.call(o),this.qze()),this.beforeSetDataView(t),i.autoGenerateColumns=!1,i.setDataSource(t),this.Mji(t),t&&(this.refreshBindColumns(),e||(this.actionColumn.options().visible&&this.zNi(),n=t.iRt&&t.iRt.length,this.options.allowAddNew&&n===i.getRowCount()&&this.CNi(),this.wNi(),this.yNi())),this.afterSetDataView(t),i.resumeCalcService(!1),this.resumePaint())},n.prototype.beforeSetDataView=function(t){},n.prototype.afterSetDataView=function(t){},n.prototype.yNi=function(){var o=this,n=o.getDataView();o.VTi=function(t,e){o.mNi(e.row)},o.FTi=function(t,e){o.LNi(e.row,e.changingFields)},o.JTi=function(t,e){o.xNi(e.row)},o.XTi=function(t,e){o.SNi(e.row)},o.KTi=function(t,e){var n,i,n,i=o.getDataView().tableName;e.tableName===i&&o.ZNi(e.row)},o._Ti=function(t,e){o.ONi(e.row,e.reason,e.type)},o.qTi=function(t,e){o.ENi()},o.$Ti=function(t,e){o.GNi(n,e.isDataLengthChanged,e.isColumnCountChanged)},n.bind(b.Events.ItemInserted,o.VTi),n.bind(b.Events.ItemUpdated,o.FTi),n.bind(b.Events.ItemReset,o.JTi),n.bind(b.Events.ItemSaved,o.XTi),n.bind(b.Events.ItemRemoved,o.KTi),n.bind(b.Events.ChangesSubmittedRowFailed,o._Ti),n.bind(b.Events.ChangesSubmitted,o.qTi),n.bind(b.Events.ChangesCancelled,o.$Ti)},n.prototype.WTi=function(t){var e=this,n=e.getDataView();n&&n.gLt&&(e.VTi&&n.unbind(b.Events.ItemInserted,e.VTi),e.FTi&&n.unbind(b.Events.ItemUpdated,e.FTi),e.JTi&&n.unbind(b.Events.ItemReset,e.JTi),e.XTi&&n.unbind(b.Events.ItemSaved,e.XTi),e.KTi&&n.unbind(b.Events.ItemRemoved,e.KTi),e._Ti&&n.unbind(b.Events.ChangesSubmittedRowFailed,e._Ti),e.qTi&&n.unbind(b.Events.ChangesSubmitted,e.qTi),e.$Ti&&n.unbind(b.Events.ChangesCancelled,e.$Ti),t)&&n.wpt()},n.prototype.pNi=function(t){var e,n,t,n,e,n=this.Mf.getDataSource(),t=n.getColumn(t),n="function"!=typeof t.value&&!n.GPt(t.value)&&!t.isCross;return!!(t.readonly||t.isGroup||t.isPrimaryKey||n)},n.prototype.jOt=function(t){var e,n,i,e,n,i;return this.Mf.getDataSource().getColumn(t).isPrimaryKey},n.prototype.kNi=function(t){for(var e,n,i,i,e=1,n=0;n<t.length;n++)(i=t[n].caption)&&e<(i="string"==typeof i?1:i.length)&&(e=i);return e},n.prototype.UNi=function(){var t=0,e=this.hNi;return t=e?e.rowCount:t},n.prototype.QNi=function(t,e,n){var i,o,u,i=this.Mf,o,u;i.getRowCount(L.SheetArea.colHeader)!==t+n&&(i.setRowCount(t+n,L.SheetArea.colHeader),i.ki(L.Events.TableSheetColHeaderRowCountChanged,null,!0)),i.setColumnCount(e,L.SheetArea.colHeader)},n.prototype.RNi=function(t){var e,n,i,o,u,e=this.Mf,n=e.getRowCount(L.SheetArea.colHeader),i=e.getColumnCount(L.SheetArea.colHeader);for(e.clear(0,0,n,i,L.SheetArea.colHeader,L.StorageType.data|L.StorageType.style),e.Cb.clear(L.SheetArea.colHeader),o=0;o<n;o++)if(e.setCellType(o,-1,void 0,L.SheetArea.colHeader),t)for(u=0;u<i;u++)this.wDi(o,u,null,E,L.SheetArea.colHeader)},n.prototype.PNi=function(){var t,e,n,i,o,o,u,o,a,r,c,s,l,f,d,h,t=this.hNi,e=this.Mf;if(t){for(n=e.Ut,i=L.SheetArea.colHeader,o=e.Z_(-1,-1,i),n.W_(i).fromJSON(t.data,!0,{}),e.setStyle(-1,-1,o,i),n.Q_(!0,i).fromJSON(t.rows),u=(o=n.K_(i)).spans,t.spans&&t.spans.length?o.fromJSON(t.spans):u&&u.length&&o.removeSpan(0,u.length),(o=t.data.dataTable)&&(e.Xbt=t.sharedFormulas,(0,Q.dMt)(e,o,e.getRowCount(i),e.getColumnCount(i),i)),(a=new L.CellTypes.Text).isImeAware=function(){return!1},r=0;r<t.rowCount;r++)e.getCell(r,-1,i).cellType(a).locked(!1);for(c=this.UNi(),s=n.getColumnCount(),n.setFreeAreaRowCount(c,i),n.setFreeAreaColumnCount(s,i),t.columnCount=s,l=0;l<s;l++)if(f=e.Z_(-1,l,i))for(r=0;r<c;r++)(d=e.Z_(r,l,i))?((h=new L.Style).h5(f),h.h5(d),n.setStyle(r,l,h,i)):n.setStyle(r,l,f,i)}else n=e.Ut,i=L.SheetArea.colHeader,n.setFreeAreaRowCount(0,i)},n.prototype.YNi=function(t,e,n,i){var o,u,o,u,a,o=this.hNi;o&&((a=(a=(u=(u=(o=(o=(u=(u=o.data)||(o.data={})).dataTable)||(u.dataTable={}))[t])||(o[t]={}))[e])||(u[e]={}))[n]=i)},n.prototype.WNi=function(t,e){var n,i,n=this.rNi;for(I(t)&&(t=t.join(",")),I(e)&&(e=e.join(",")),i=0;i<n.length;i++)n[i].ubt===t&&(n[i].ubt=e),n[i].sbt===t&&(n[i].sbt=e)},n.prototype.HNi=function(t){var e,n,n,i,o,u,a,r,e=this.Mf,n=e.getDataSource();if(n&&(n=n.getColumn(t))){for(i=[],u=e.Ut.getFreeAreaRowCount(o=1),a=e.getRowCount(1);u<a;u++)i.push(e.getText(u,t,1));this.WNi(n.caption,i),r=i.every(function(t,e,n){return 0===e||t===n[0]}),n.caption=r?i[0]:i}},n.prototype.VNi=function(t,e,n){var i,o,u,a,r,c,s;if(1<t){for(o=(i=this.Mf).getRowCount(L.SheetArea.colHeader),u=0;u<n.length;u++)if(a=n[u].caption||n[u].value){for(r="string"==typeof a?[a]:a,c=0;c<r.length;c++)i.setValue(e+c,u,r[c],L.SheetArea.colHeader);for(s=r[c-1];c<o;c++)i.setValue(e+c,u,s,L.SheetArea.colHeader)}i.autoMerge(new L.Range(e,-1,t,-1),h.AutoMergeDirection.rowColumn,h.AutoMergeMode.restricted,L.SheetArea.colHeader)}},n.prototype.getFilterButtonVisibleFromColumnInfo=function(t,e,n){var e,i,e,e=e[t],i=!1!==e.allowSort||!1!==e.allowFilterByValue||!1!==e.allowFilterByList;return i=k(e.allowSort)&&k(e.allowFilterByValue)&&k(e.allowFilterByList)&&(e=n.getValue(0,t))&&"object"==typeof e&&!o.Common.ct.W0(e)&&k(e._error||e._code)?!1:i},n.prototype.dZe=function(t){var e,n,i=this.Mf.rowFilter();return i&&i.Dit(t)},n.prototype.hZe=function(t){var e,n,t,e,n=this.Mf,t={tableName:E,colIndex:t};n.Qy().execute({cmd:"clearFilter",sheetName:n.name(),cmdOption:t})},n.prototype.gZe=function(t){var e,n,i=this.Mf.rowFilter();return i&&i.getSortState(t)!==L.SortState.none},n.prototype.bZe=function(t){var e,n,i,e,e=this,n,i;return e.Mf.rowFilter().vZe(t),(e=e.getDataView()).DGe(),e.NGe(e.getColumn(t))},n.prototype.MZe=function(t){var e=this,t=e.fDi(t),e=e.getDataView();return t&&(t.GFt||e.$Lt(e.ife(t),!0))},n.prototype.IZe=function(t){var e,n=this.getDataView();return n.uii(n.getColumn(t))},n.prototype.gBe=function(o,u){var a,r,a=this,r=a.getDataView();return!r.xRe(o)&&(u=u||r.getColumn(o),a.suspendPaint(),r.dUe(u,function(){var t,e,n,i,n,t,e,t=r.Dit();a.dZe(o)&&a.hZe(o),e=!t||!r.Dit(),i=n=!1,a.gZe(o)&&(i=!0,n=a.bZe(o),e||!n||t||(e=!0)),n=!1,a.MZe(o)&&(n=a.IZe(o)),i&&r.Dit()&&(r.dFt(),r.vFt(!0)),e&&i&&r.gFt(),n?(t=r.autoSort,r.autoSort=!0,a.removeGroupBy(),r.autoSort=t):(r.EGe(!0),a.groupBy(r.groupBy()),r.RGe(!0)),a.mZe(o)?(a.togglePinnedColumns([o]),e=a.Kze(a.tDi(u)),a.HWe(e)):a.HWe(o)},function(){a.refreshBindColumns(),a.lze(),a.NZe(o)}),a.resumePaint(),!0)},n.prototype.HWe=function(t,e,n){var i=this;i.Mf.o9e(t,e=void 0===e?1:e,E,n),!1!==n&&i.ize.addUndoChanges({type:v.TableSheetUndoType.RemoveColumns,oldCol:t,oldCount:e})},n.prototype.yBe=function(e,t,n){var i,o,i=this,o=i.getDataView();return(n=n||o.getColumn(e))&&t&&mt(t,n),!(o.xRe(e)||!i.DZe(t,n)||(i.suspendPaint(),o.pUe(n,t,function(t){t.isFilterUpdated?(i.hZe(e),o.EGe(!0),i.groupBy(o.groupBy()),o.RGe(!0)):t.isSortUpdated?(o.EGe(!0),i.groupBy(o.groupBy()),o.RGe(!0)):t.isGroupUpdated&&(o.EGe(!0),o.RGe(!0))},function(){i.refreshBindColumns()}),i.resumePaint(),0))},n.prototype.cBe=function(t,e){var n,i,o,u,n=this;return!!n.DZe(e)&&(i=n.getDataView(),n.suspendPaint(),o=i.nUe(t),u=n.Mf.getColumnCount()>o,i.rUe(t,e,function(){u&&n.VWe(o)},function(){n.refreshBindColumns(),u&&n.lze()}),n.resumePaint(),!0)},n.prototype.VWe=function(t,e,n){var i=this;i.Mf.r9e(t,e=void 0===e?1:e,E,{clearUndoNotInCommand:n}),!1!==n&&i.ize.addUndoChanges({type:v.TableSheetUndoType.AddColumns,oldCol:t,oldCount:e})},n.prototype.FPt=function(t){var e;return null==(e=this.getDataView())?void 0:e.FPt(t,!0)},n.prototype.DZe=function(t,e){var n,i,o,u,a,r,n=this,i;return!(!(!(0,b.isNullOrEmpty)(t.type)||e&&(0,b.isNullOrEmpty)(e.type))||(o="Formula"===t.type&&!x(t.value),u="Formula"!==t.type&&x(t.value),a="Lookup"===t.type&&!n.FPt(t.value),r="Lookup"!==t.type&&!x(t.value)&&(Ct(t.value)||n.FPt(t.value)),o)||u||a||r)&&(!e||n.getDataView().aHe(e,t))},n.prototype.isDisableDefineColumn=function(t){return this.xRe(t)},n.prototype.xRe=function(t){var e,n,e,n;return this.getDataView().xRe(t)},n.prototype.refreshBindColumns=function(t,e){var n,i,o,u,a,e,r,c,s,l,f,d,h,g,f,d,h,g,b,v,M,I,d,f,n=this.Mf,i=e||n.getDataSource();if(i){for(n.suspendPaint(),n.suspendEvent(),(o=n.conditionalFormats)&&o.clearRule(),n.b8&&n.b8.d5(),u=i.getColumnInfos(),a=this.kNi(u),e=this.UNi(),this.QNi(a,u.length,e),this.RNi(t),this.PNi(),this.VNi(a,e,u),r=n.rowFilter(),this.QWe(n,r,u),c=[[]],s=0;s<u.length;s++){if(g=h=d=void 0,"string"==typeof(f=(l=u[s]).value)?x(f)?h=f:d=f:"function"==typeof f&&(g=f.name),f={name:d||h||g},d=l.caption,1===a&&d&&(f.displayName=bt(d)),k(l.width)||(f.width=l.width),k(l.visible)||(f.visible=l.visible),n.bindColumn(s,f),this.JNi(-1,s,l.headerStyle,L.SheetArea.colHeader),this.JNi(-1,s,l.style),n.qgt.nM=i.gLt,n.qgt.getField=i.gLt.POt.getField,l.validator&&(h=l.validator instanceof m.DefaultDataValidator?l.validator:kt(l.validator),n.setDataValidator(-1,s,h)),(g=l.conditionalFormats)&&o)for(b=[new L.Range(-1,s,-1,1)],v=0,M=g;v<M.length;v++)(I=M[v])instanceof A.ConditionRuleBase?(I.ranges([new L.Range(-1,s,-1,1)]),n.conditionalFormats.addRule(I)):Et(o,I,b);d=this.pNi(s),n.getRange(-1,s,-1,1).locked(d),n.getRange(-1,s,-1,1,L.SheetArea.colHeader).locked(!1),f=this.getFilterButtonVisibleFromColumnInfo(s,u,n),r.filterButtonVisible(s,f),l.isCross?c[0].push(s):0<c[0].length&&c.unshift([])}for(s=0;s<u.length;s++)l=u[s],k(l.headerFit)||this.FNi(s,l.headerFit);this.XNi(),this.QTi(),n.resumeEvent(),n.resumePaint(),this.KNi(c),this.UMi&&this.UMi.updatePanelLayout(),this.applyStyleRules()}},n.prototype.ZJe=function(){var t,e,n,i,o,u,t=this.Mf,e=t.getDataSource();if(e&&e.PJe){for(t.suspendPaint(),n=0;n<e.PJe.length;n++)(i=e.PJe[n]).FJe&&t.o9e(n,1,L.SheetArea.viewport,!1);for(e.PJe=E,o=e.getColumnInfos(),n=0;n<o.length;n++)(u=o[n]).nme&&t.r9e(n,1,L.SheetArea.viewport,{clearUndoNotInCommand:!1});t.resumePaint()}},n.prototype.QWe=function(t,e,n){e.Fct((0,L.Ec)(-1,0,-1,n.length)),t.lct=Z},n.prototype._Ni=function(t){var e,n,i,e,t,e=this;return e.qNi()&&(n=e.getDataView(),T(e=(i=e.Mf.rowFilter()).tAi[t]))&&(t=n.getHierarchyNode(e,!0),!k(t))?t.level:0},n.prototype.$Ni=function(){return this.getDataView().getHierarchyColumnIndex(!0)},n.prototype.isShowHierarchyOutlineColumn=function(t){return this.qNi(t)},n.prototype.qNi=function(t){var e,n=this.getDataView();return!k(n)&&n.hasHierarchyColumn(t)},n.prototype.isHierarchyParent=function(){var t,e=this.getDataView();return e&&e.isHierarchy()&&"Parent"===e.gLt.getHierarchyType()},n.prototype.iDi=function(t,e){var n,i,e,n,n=this,i=n.getDataView();if(!k(i)&&!k(e)&&(e=i.getColumn(e),!k(e)))return n=n.tDi(e),!k(i.h7t(n,t))},n.prototype.wNi=function(){var t,e,n,i,o,t=this,e=t.Mf;t.qNi()&&(i=(n=t.getDataView().SPt(!0)).options,t.suspendPaint(),(o=e.outlineColumn.options())&&!k(o.columnIndex)&&t.jZe(o.columnIndex),e.outlineColumn.options(f(f({columnIndex:n.index,showIndicator:!0},i),{collapseIndicator:i&&i.collapseIndicator?i.collapseIndicator:R.ARROW_RIGHT,expandIndicator:i&&i.expandIndicator?i.expandIndicator:R.ARROW_DOWN})),e.showRowOutline(!1),e.rowOutlines.KMi=!0,t.resumePaint())},n.prototype.jZe=function(t){var e,n,i,o,u,e=this,n=e.Mf,i,o=e.getDataView().visibleLength();for(e.options.allowAddNew&&n.getCell(o,t).textIndent(E),u=0;u<o;u++)n.getCell(u,t).textIndent(E)},n.prototype.nDi=function(){var t,e,n,i,o,u,a,t=this,e=t.Mf;if(t.qNi()){for(i=(n=t.getDataView()).visibleLength(),o=!1,u=0;u<i;u++)e.outlineColumn.getCollapsed(u)&&(o=(a=n.getHierarchyNode(u)).eDi=!0);return o}},n.prototype.CZe=function(){var t,e,n,i,o,u,t=this,e=t.Mf;if(!t.qNi())return{};for(n={},o=(i=t.getDataView()).visibleLength(),u=0;u<o;u++)n[u]=e.rowOutlines.getCollapsed(u);return n},n.prototype._ze=function(t){var e,n,i,o,u,e=this,n=e.Mf;if(e.qNi())for(o=(i=e.getDataView()).visibleLength(),e.expandAllHierarchyLevels(),e.XNi(),u=0;u<o;u++)n.outlineColumn.setCollapsed(u,t[u])},n.prototype.oDi=function(){var t,e,n,i,o,u,t=this,e=t.Mf;if(t.qNi())for(i=(n=t.getDataView()).visibleLength(),o=0;o<i;o++)(u=n.getHierarchyNode(o)).eDi&&(u.eDi=!1,e.outlineColumn.setCollapsed(o,!0))},n.prototype.uDi=function(t){var e=this;e.qNi()&&(e.suspendPaint(),!1!==t&&e.expandAllHierarchyLevels(),e.XNi(),!1!==t&&e.oDi(),e.resumePaint())},n.prototype.XNi=function(){var t,e,n,i,o,u,a,r,c,s,t=this,e=t.Mf;if(t.qNi()){for(n=t.getDataView(),i=t.$Ni(),t.suspendPaint(),o=n.visibleLength(),t.options.allowAddNew&&e.getCell(o,i).textIndent(E),u=0;u<o;u++)a=n.getHierarchyNode(u),r=k(a)?E:a.level,e.getCell(u,i).textIndent(r);if(e.outlineColumn.refresh(),(c=n.SPt())&&c.options&&c.options.showCheckbox){for(u=0;u<o;u++)a=n.getHierarchyNode(u),s=!k(a)&&a.cDi,e.outlineColumn.ect(u,s);e.outlineColumn.refresh()}t.resumePaint()}},n.prototype.rDi=function(){var t=this;t.suspendPaint(),t.XNi(),t.resumePaint()},n.prototype.aDi=function(t){var e=this;return!(!e.qNi()||!T(t))&&e.Mf.outlineColumn.getCheckStatus(t)},n.prototype.sDi=function(){var t,e,n,i,o,t=this;if(t.qNi())for(e=t.Mf,i=0,o=(n=t.getDataView()).visibleLength();i<o;i++)n.getHierarchyNode(i).cDi=e.outlineColumn.getCheckStatus(i)},n.prototype.getHierarchyMaxLevel=function(){return this.MDi()},n.prototype.MDi=function(){for(var t,e,n,i,o,u,t,e=this.getDataView(),n=e.visibleLength(),i=-1,o=0;o<n;o++)i<(u=e.getHierarchyNode(o).level)&&(i=u);return i},n.prototype.showHierarchyItems=function(t){this.IDi(t,!1)},n.prototype.hideHierarchyItems=function(t){this.IDi(t,!0)},n.prototype.IDi=function(t,e){var n=this,i=n.Mf;n.qNi()&&(i.suspendPaint(),t.forEach(function(t){n.gDi(t)&&i.outlineColumn.setCollapsed(t,e)}),i.outlineColumn.refresh(),i.resumePaint())},n.prototype.NDi=function(t){var e,n,i,o,e=this;if(e.qNi()){for(n=e.Mf,i=e.lDi(),n.suspendPaint(),o=0;o<i;o++)n.outlineColumn.setCollapsed(o,t);n.outlineColumn.refresh(),n.resumePaint()}},n.prototype.expandAllHierarchyLevels=function(){this.NDi(!1)},n.prototype.collapseAllHierarchyLevels=function(){this.NDi(!0)},n.prototype.lDi=function(){var t,e,n;return this.getDataView().visibleLength()},n.prototype.gDi=function(t){return t<this.lDi()},n.prototype.expandHierarchyLevel=function(t){var e,n,i,o,u,a,e=this;if(e.qNi()){for(n=e.Mf,i=e.getDataView(),o=e.lDi(),e.suspendPaint(),u=0;u<o;u++)(a=i.getHierarchyNode(u).level)<t?n.outlineColumn.setCollapsed(u,!1):n.outlineColumn.setCollapsed(u,!0);n.outlineColumn.refresh(),e.resumePaint()}},n.prototype.promoteHierarchyLevel=function(t){var e=this;e.qNi()&&(e.getDataView().promoteHierarchyLevel(t),e.rDi())},n.prototype.demoteHierarchyLevel=function(t,e){var n=this;n.qNi()&&(n.getDataView().demoteHierarchyLevel(t,e),n.rDi())},n.prototype.moveUp=function(t){var e=this,n=e.getDataView();n.hasHierarchyRowOrder()&&(n.moveUp(t),e.rDi())},n.prototype.moveDown=function(t){var e=this,n=e.getDataView();n.hasHierarchyRowOrder()&&(n.moveDown(t),e.rDi())},n.prototype.hasHierarchyRowOrder=function(){return this.qX()},n.prototype.qX=function(){var t,e;return this.getDataView().hasHierarchyRowOrder()},n.prototype.addHierarchyItemBefore=function(t,e){var n,i,o,u,n=this,i=n.Mf,o=n.getDataView();o.hasHierarchyRowOrder()&&(this.ize.addUndoChanges({type:v.TableSheetUndoType.StoreTreeData}),u=n.nDi(),i.ffe(t,1,3,{rowExpand:!1,clearUndoNotInCommand:!1}),o.addHierarchyItemBefore(t,e||{}),n.uDi(u),this.ize.addUndoChanges({type:v.TableSheetUndoType.ApplyTreeData}))},n.prototype.addHierarchyItemAfter=function(t,e){var n,i,o,u,o,n=this,i=n.Mf,o=n.getDataView();o.hasHierarchyRowOrder()&&(this.ize.addUndoChanges({type:v.TableSheetUndoType.StoreTreeData}),u=n.nDi(),o=o.addHierarchyItemAfter(t,e||{}),i.ffe(t+o,1,3,{rowExpand:!1,clearUndoNotInCommand:!1}),n.uDi(u),this.ize.addUndoChanges({type:v.TableSheetUndoType.ApplyTreeData}))},n.prototype.addHierarchyItemAbove=function(t,e){var n,i,o,u,n=this,i=n.Mf,o=n.getDataView();o.hasHierarchyRowOrder()&&(this.ize.addUndoChanges({type:v.TableSheetUndoType.StoreTreeData}),u=n.nDi(),i.ffe(t,1,3,{rowExpand:!1,clearUndoNotInCommand:!1}),o.addHierarchyItemAbove(t,e||{}),n.uDi(u),this.ize.addUndoChanges({type:v.TableSheetUndoType.ApplyTreeData}))},n.prototype.addHierarchyItemBelow=function(t,e){var n,i,o,u,o,n=this,i=n.Mf,o=n.getDataView();o.hasHierarchyRowOrder()&&(this.ize.addUndoChanges({type:v.TableSheetUndoType.StoreTreeData}),u=n.nDi(),o=o.addHierarchyItemBelow(t,e||{}),i.ffe(t+o,1,3,{rowExpand:!1,clearUndoNotInCommand:!1}),n.uDi(u),this.ize.addUndoChanges({type:v.TableSheetUndoType.ApplyTreeData}))},n.prototype.KNi=function(t){var e,n,i,o,u,e=this.Mf,n=this.cNi||[[]];for(e.suspendPaint(),i=0;i<n.length;i++)0<(o=n[i]).length&&e.cellStates.getCollection(L.CellStatesType.readonly)&&(u=new L.Range(-1,o[0],-1,o.length),e.cellStates.remove(u,L.CellStatesType.readonly));for(this.cNi=t,i=0;i<t.length;i++)0<(o=t[i]).length&&e.cellStates.add(new L.Range(-1,o[0],-1,o.length),L.CellStatesType.readonly,new L.Style({backColor:"#e6e6e6"}));e.resumePaint()},n.prototype.applyStyleRules=function(){var t,e,n,i,o,u,a,u,r,a,c,s,u,l,f,t=this.Mf,e,n=t.getDataSource().getStyleRules();if(n)for(o in i=t.conditionalFormats,this.clearStyleRuleConditionalFormats(),n)n[o]&&(a=(u=n[o]).style,u=u.rule,a)&&u&&(r=void 0,r=a instanceof L.Style?a:new L.Style(a),a=u.formula,c=u.state,s=u.direction,u=u.area,l=[new L.Range(-1,-1,-1,-1)],f={},a?Et(i,f={ruleType:"formulaRule",formula:a,style:r},l):T(c)&&T(s)&&(1!==s&&3!==s||this.addRowStateRule(c,r),2===s&&u===L.SheetArea.colHeader?this.addColumnHeaderStateRule(c,r):2!==s&&3!==s||this.addColumnStateRule(c,r)))},n.prototype.DDi=function(t){var e,n,i,o,u,a,r,c,s,a;if(t&&(n=(e=this.Mf).conditionalFormats))for(o=(i=n.getRules()).length-1;0<=o;o--)a=(u=i[o]).ruleType(),c=(r=u.ranges())[0],s=a===A.RuleType.rowStateRule||a===A.RuleType.columnStateRule,a=a===A.RuleType.formulaRule&&-1===c.col&&-1===c.colCount,(s||a)&&t(u,n)},n.prototype.clearStyleRuleConditionalFormats=function(){this.DDi(function(t,e){e.removeRule(t)})},n.prototype.refreshStyleRuleCache=function(){this.DDi(function(t,e){e.RX(t),e.fE(t)})},n.prototype.fDi=function(t,e){var n,i,o,n,i=this.Mf.getDataSource();return i&&(o=i.Dve(t,e))||null},n.prototype.Kze=function(t){for(var e,n,i,o,n=this,i=n.endColumn(),o=0;o<i+1;o++)if((null==(e=n.fDi(o))?void 0:e.name)===t)return o;return null},n.prototype.dDi=function(t){return this.tDi(this.fDi(t))},n.prototype.tDi=function(t){var t;if(t)return"string"==typeof(t=t.value)?t:"function"==typeof t?t.name:void 0},n.prototype.JNi=function(t,e,n,i){var o,u,n,o=this.Mf;k(i)||i===L.SheetArea.viewport?i=3:n&&(n.cellType&&"98"!==n.cellType.typeName&&"107"!==n.cellType.typeName&&delete n.cellType,delete n.tabStop,delete n.imeMode,delete n.cellButtons,delete n.dropDowns),u=new L.Style,n&&(this.hDi(n.dropDowns),n=n instanceof L.Style?n:new L.Style(n),u.h5(n,!0),this.wZe(u))&&this.pZe(u),o.setStyle(t,e,u,i)},n.prototype.Ywt=function(t,e,n){var i,o=this.getDataView();return o&&o.Ywt(t,e,n)},n.prototype.nMt=function(t,e){var n,i=this.getDataView();return i&&i.nMt(t,e)},n.prototype.hDi=function(t){var e,n,i,o,e,n,i,o=this.Mf.parent.dataManager();t&&t.forEach(function(t){var t,e,t,n,t=t.option;t&&t.dataSource&&(e=t.dataSource,(e=t.dataSource instanceof b.View?t.dataSource={datamanagerTable:e.tableName,columns:e.yLt}:e).datamanagerTable)&&(t=o.tables[e.datamanagerTable],e.viewName=e.datamanagerTable+Math.random().toString(16).substring(1,8),(n=t.GRt(e.viewName,e.columns)).fetch())})},n.prototype.enablePinRow=function(){for(var t,e,n,i,i,o,u,t,e,a,r,c,s,l,f,d,f,t=this,e=t.Mf,n=10,i=t.groupBy(),i=i&&Array.isArray(i)&&0<i.length,o=t.qNi(),u,t=t.getDataView().lFt,e=e.getSelections(),a=t&&t.length,r=0,c=0,s=0,l=e;s<l.length;s++)(f=l[s])&&(d=f.row,c+=f=f.rowCount,(d=-1===d?0:d)<a)&&(r+=Math.min(f+d,a)-d);return!(i||o||10<a-r+(c-r))},n.prototype.enablePinColumn=function(){for(var t,e,n,i,i,o,t,o,t,e,u,a,r,c,s,l,f,l,t=this,e=t.Mf,n=10,i=t.groupBy(),i=i&&Array.isArray(i)&&0<i.length,o=e.getActiveColumnIndex(),t=t.getDataView(),o=t&&t.getColumn(o),t=t.CLt,e=e.getSelections(),u=t&&t.length,a=0,r=0,c=0,s=e;c<s.length;c++)(l=s[c])&&(f=l.col,r+=l=l.colCount,(f=-1===f?0:f)<u)&&(a+=Math.min(l+f,u)-f);return!(i||o&&o.isCross||10<u-a+(r-a))},n.prototype.FNi=function(t,e){var n,i,e,n=this.Mf;switch(e){case"vertical":i=L.ColumnHeaderFitMode.vertical;break;case"stack":i=L.ColumnHeaderFitMode.stack;break;default:i=L.ColumnHeaderFitMode.normal}e=n.defaults.colHeaderRowHeight,n.GB(t,i),e!==n.defaults.colHeaderRowHeight&&this.ize.addUndoChanges({type:v.TableSheetUndoType.DefaultRowHeightChanged,oldData:{size:e,sheetArea:L.SheetArea.colHeader},newData:{size:n.defaults.colHeaderRowHeight,sheetArea:L.SheetArea.colHeader}})},n.prototype.getDataView=function(){return this.Mf.getDataSource()},n.prototype.setDefaultRowHeight=function(t,e){var n,i,n=this.Mf.defaults,i=n.rowHeight;e===L.SheetArea.colHeader?(i=n.colHeaderRowHeight,n.colHeaderRowHeight=t):n.rowHeight=t,i!==t&&this.ize.addUndoChanges({type:v.TableSheetUndoType.DefaultRowHeightChanged,oldData:{size:i,sheetArea:e},newData:{size:t,sheetArea:e}})},n.prototype.getDefaultRowHeight=function(t){var e=this.Mf.defaults;return(t=k(t)?3:t)===L.SheetArea.corner||t===L.SheetArea.colHeader?e.colHeaderRowHeight:e.rowHeight},n.prototype.MNi=function(){var t;this.gNi=[ht]},n.prototype.rowActionOptions=function(t){var e,n,e=this;return I(t)&&(n=r([],this.gNi,!0),e.clearRowActions(),e.gNi=e.DNi(t),e.rebuildRowActionOptions(),e.NNi(),e.bDi(),this.ize.addUndoChanges({type:v.TableSheetUndoType.RowAction,oldData:n,newData:this.gNi})),e.DNi()},n.prototype.rebuildRowActionOptions=function(){var t,e,n,i,o,u,t=this,e,n=Zt(t.gNi,N);Ut(n)&&(i=a[D],o=a[j],u=a[C],i.icons=n.icons.slice(0,1),(i=J(i)).command=n.command,o.icons=n.icons.slice(1,4),u.icons=n.icons.slice(4,5),n.subActionOptions=[t.RTi(i),t.RTi(o),t.RTi(u)])},n.prototype.NNi=function(){var t=this,e=t.gNi;k(t.getParent())||L.Commands.iMi(t.getParent().commandManager(),e)},n.prototype.QTi=function(){var n,i,o,t,e,n=this,i=n.getDataView();if(i)for(n.PTi={},o=i.getColumn(),t=function(t){var e=o[t],t=e.value;if("string"!=typeof t||n.PTi.hasOwnProperty(t))return"continue";Object.defineProperty(n.PTi,t,{get:function(){return i._ve(n.PTi.YTi,e)}})},e=0;e<o.length;e++)t(e)},n.prototype.RTi=function(t){return t.name===D?t.BTi=Ft:t.name===j?t.BTi=_t:t.name===C&&(t.BTi=Jt),t},n.prototype.bDi=function(){var e,t,n,i,o,u,o,a,r,c,s,l,e=this,t=e.Mf,n=e.gNi,i=n.length,o=e.options.showRowNumber?1:0,u=1;for(t.suspendPaint(),t.setColumnCount(1+i+o,L.SheetArea.rowHeader),o=e.groupOutlinePosition(),t.setColumnVisible(0,o===d.GroupOutlinePosition.rowHeader||o===d.GroupOutlinePosition.groupCellAll,L.SheetArea.rowHeader),e.QTi(),a={isPinnedRow:function(t){return e.ADi(t)},isInsertedRow:function(t){return e.vDi(t)},isUpdatedRow:function(t){return e.jDi(t)},isNewRow:function(t){return e.zDi(t)},hasWarning:function(t){return e.CDi(t)},getDataItem:function(t){return e.PTi.YTi=t,e.PTi}},r=0;r<i;r++)s=1+r,S((c=n[r]).tooltip)&&e.wDi(-1,s,c.tooltip),e.RTi(c),(l=new B.RowAction(c,a)).build(e.yDi(c)),t.setCellType(-1,s,l,L.SheetArea.rowHeader);t.resumePaint()},n.prototype.clearRowActions=function(){var t,e,n,i,o,u,a,r,t=this,e=t.Mf,n=t.gNi,i=n.length,o=1;for(e.suspendPaint(),u=0;u<i;u++)r=1+u,(a=n[u]).tooltip&&t.wDi(-1,r,null),e.setStyle(-1,r,null,L.SheetArea.rowHeader);e.resumePaint()},n.prototype.yDi=function(t){var e=this,n=t.name===j||t.name===N,t=t.name===w||t.name===p,i=e.mDi.bind(e),e=e.LDi.bind(e);return n?{enabled:i}:t?{enabled:e,visible:i}:{enabled:i,visible:i}},n.prototype.n4i=function(t){var e;return!this.jFt||this.VDi(t)},n.prototype.mZe=function(t){var e,n;return t<this.Mf.frozenColumnCount()},n.prototype.ADi=function(t){var e,n;return t<this.Mf.frozenRowCount()},n.prototype.xDi=function(t){for(var e,n,i,o,e,n=this.gNi,i=1,o=0;o<n.length&&n[o].name!==t;o++);return o===n.length?-1:1+o},n.prototype.SDi=function(){var t=this,e=t.xDi(C);return e=-1===e?t.xDi(N):e},n.prototype.zA=function(t){return t.sheetName=this.name(),this.getParent().commandManager().execute(t)},n.prototype.CDi=function(t,e){var n,i,n=this;if(T(t))return(i=n.SDi())===(e=T(e)?e:i)&&!k(n.ZDi(t))},n.prototype.ZDi=function(t){var e,n=this.getDataView();return n&&n.getErrorInfo(t)},n.prototype.ODi=function(t){var e,t=this.ZDi(t);if(!k(t))return t.reason},n.prototype.wDi=function(t,e,n,i,o){void 0===o&&(o=L.SheetArea.rowHeader);var u,a=this.Mf;i&&a.getCell(t,e,o).tag(n),a.Ut.$n(t,e,n,o)},n.prototype.wZe=function(t){return t&&t.cellType&&"8"===t.cellType.typeName},n.prototype.pZe=function(t){var t=t.cellType;t.yZe=!0,t.W7e=!0,t.J7e=function(t,e,n){var i,t,t,i=this,t=t.NMi.getDataView(),t=t&&t.BGe(e,n);return t?{id:i._id,visited:t.visited}:Z},t.K7e=function(t,e,n){var t=t.NMi.getDataView();t&&t.PGe(e,n,{visited:!0})}},n.prototype.xZe=function(t){var e,n,i,e=this,n=e.getDataView();if(n&&!(S(t)&&(t=e.Kze(t),k(t))||(i=n.Dve(t,!0),k(i))))return(i=f({},i)).caption=bt(i.caption),x(i.value)&&(i.formula=i.value,"formula"!==i.dataType||(0,b.isNullOrEmpty)(i.name)||x(i.name)?i.value=Z:i.value=i.name),i},n.prototype.AZe=function(t,e,i){var r,n,o,u,r=this,n=r.getParent();n.iy(),r.$ze&&r.$ze.close(),o=T(i)&&r.getDataView()?r.xZe(i):{},t-=(u=n.uC()).left,e-=u.top,r.$ze=new W.TZe(n.j2(),L.util.gi(n&&n.Ti),{columnTypeItems:r.options.columnTypeItems,column:o,getSheet:function(){return r.Mf},getLookup:function(t){var e;return(null==(e=r.getDataView())?void 0:e.KBe(t))||[]},getSampleValue:function(n){var i,o,t,e,t,u,i=r.getDataView();if(i){if(x(t=n.formula||n.value))return r.CCi(t);if(t=function(){for(var t=0,e=i.visibleLength();t<e&&(o=i.ufe(n,t),k(o));t++);},(e=Ct(n.value))&&(t(),!k(o)))return o;if("number"===(u=n.dataType||i.XBe(n)))return 0;if("date"===u)return new Date;e||t()}return o},getColumnBy:function(t){return r.xZe(t)},getColumnFields:function(){var t,e,n,i,o,u,a,t=r.getDataView(),e=[];if(t)for(o=n=t.getColumnInfos(!(i=0),!0);i<o.length;i++)(a=(u=o[i]).value)&&"string"==typeof a&&-1===a.indexOf("=")&&!u.cross&&e.push(a);return e},getTriggerFields:function(){var t,e,n,i,o,u,a,t=r.getDataView(),e=[];if(t)for(o=n=t.getColumnInfos(!(i=0),!0);i<o.length;i++)!(a=(u=o[i]).value)||"string"!=typeof a||-1!==a.indexOf("=")||-1!==a.indexOf(".")||u.cross||u.isRelationship||e.push(a);return e},isRelationship:function(t){var e=r.getDataView();return e&&e.FPt(t,!0)},onOpening:function(){n.focus(!1)},onOpened:function(){r.getSheet().rt.u2()},onSaving:function(e){var t,n;e.column&&(e.column.caption=vt(e.column.caption)),e.originalColumn&&(e.originalColumn.caption=vt(e.originalColumn.caption)),e.col=i,r.options.submitDefineColumnCommand===lt?!1!==(t=r.zA(e))&&r.$ze.close():(e.command=e.cmd,e.cmd=r.options.submitDefineColumnCommand,t=r.zA(e),"function"==typeof e.onCompleted?(n=e.onCompleted,delete e.onCompleted,n(function(t){t&&t.success&&(e.cmd=e.command,r.zA(e)),r.$ze&&r.$ze.close()})):!1!==t&&r.$ze.close())},onClosed:function(){r.$ze=Z,n.focus()}}),r.$ze.rQ(t,e)},n.prototype.getChanges=function(){var t,e,t,e=this.Mf.getDataSource();if(e)return e.getChanges()},n.prototype.submitChanges=function(){var i,t,e,i=this,t,e=this.Mf.getDataSource();e&&(i.beforeSubmitChanges(),e.submitChanges(function(t,e,n){i.ONi(t,e,n)}).then(function(t){i.ENi(t)}))},n.prototype.beforeSubmitChanges=function(){},n.prototype.ONi=function(t,e,n){var i,o,i,o=this.Mf;"delete"===n&&o.ffe(t,1,3,{rowExpand:!1,clearUndoNotInCommand:!1})},n.prototype.ENi=function(t){var e,n,i,e,e=this,n=e.Mf,i,e=n.getDataSource().visibleLength()+(e.options.allowAddNew?1:0);n.setRowCount(e),n.repaint()},n.prototype.cancelChanges=function(){var t,e,n,i,t,e=this.Mf.getDataSource();e&&(n=e.isDataLengthChanged(),i=(this.getChanges()||[]).some(function(t){return"addColumn"===t.type||"removeColumn"===t.type}),this.beforeCancelChanges(),e.cancelChanges(),this.GNi(e,n,i))},n.prototype.beforeCancelChanges=function(){},n.prototype.GNi=function(t,e,n){var i,o,u,a,i=this.Mf;this.suspendPaint(),u=(o=i.getRowCount())-1,a=i.getColumnCount(),i.Ut.clear(0,0,u,a,L.StorageType.data,[]),i.clearPendingChanges({row:0,col:0,rowCount:u,colCount:a,clearType:L.ClearPendingChangeType.dirty|L.ClearPendingChangeType.insert|L.ClearPendingChangeType.delete}),e&&(this.HTi(t),this.EDi()),n&&this.refreshBindColumns(),this.sze()&&this.WDi(),this.resumePaint()},n.prototype.EDi=function(){var t,e,n,i,o,u,t,e;if(!this.getDataView().autoFilter){for(i=(n=this.Mf).rowFilter().Mct.slice(),n.suspendPaint(),o=0;o<i.length;o++)u=i[o],n.Qy().execute({cmd:"clearFilter",sheetName:n.name(),cmdOption:{colIndex:u}});n.resumePaint()}},n.prototype.yy=function(t,e){var n,i=this.Mf;i.getParent().ib.yy(i,t||0,e||0),i.tw()},n.prototype.GDi=function(t){var e=this,n=e.Mf,i=e.uNi;t<i&&i===n.getViewportTopRow(1)&&e.yy(t)},n.prototype.wy=function(t,e){var n,i=this.Mf;i.getParent().ib.wy(i,t||0,e||0),i.ow()},n.prototype.pDi=function(t){var e=this,n=e.Mf,i=e.jIi;t<i&&i===n.getViewportLeftColumn(1)&&e.wy(t)},n.prototype.togglePinnedRows=function(t){var e,n,n,e,n=this.Mf.getDataSource();if(n&&!this.jFt&&!this.qNi())return this.ize.startAddComboChanges(),n=n.togglePinnedRows(t),this.ize.addUndoChanges({type:v.TableSheetUndoType.PinnedRowsChanged}),this.Rze(),this.ize.endAddComboChanges(),n},n.prototype.Rze=function(){var t,e,t=this.Mf,e=this.Mf.getDataSource().togglePinnedRows();if(-1===e)throw(0,l.getSR)().EXP_TooManyPinRecords;e!==this.uNi&&(this.suspendPaint(),t.frozenRowCount(e),this.GDi(e),this.resumePaint(),this.uNi=e)},n.prototype.togglePinnedColumns=function(t){var e,n,i,i,i,o,n,t,i,e=this.Mf,n=e.getDataSource();if(n&&!this.jFt)return i=this.kDi(),0<=(i=t.indexOf(i))&&t.splice(i,1),i=this.UDi(),o=e.rowFilter().BDi(),this.ize.startAddComboChanges(),n=n.togglePinnedColumns(t),this.Qze(i,o,n),t=this.UDi(),i=e.rowFilter().BDi(),this.ize.addUndoChanges({type:v.TableSheetUndoType.PinnedColumnsChanged,oldData:{oldFilterColumnsMap:M(t),oldSortColumnsMap:M(i)}}),this.ize.endAddComboChanges(),n},n.prototype.Qze=function(t,e,n){var n,i,n=null!=n?n:this.Mf.getDataSource().togglePinnedColumns(),i=this.Mf;if(-1===n)throw(0,l.getSR)().EXP_TooManyPinRecords;this.QDi(t),i.rowFilter().RDi(e),this.suspendPaint(),this.refreshBindColumns(),i.frozenColumnCount(n),this.NZe(),this.pDi(n),this.resumePaint(),this.jIi=n},n.prototype.UDi=function(){var t,e,n,t,t,i,o,u,a,r,t=this.Mf,e,n=t.getDataSource().oPt,t=t.rowFilter(),t=t&&t.Mct,i={};if(t&&t.length)for(o=-1,u=0,a=t;u<a.length;u++)r=a[u],i[o=n&&n.length?n[r]:r]=r;return i},n.prototype.QDi=function(t){var e,n,i,e,o,u,a,r,c,s,c,l,f,e=this.Mf,n,i=e.getDataSource().oPt,e=e.rowFilter(),o=e&&e.Mct,u=e&&e.rrt,a={};for(r in t)t.hasOwnProperty(r)&&(s=t[c=+r],(c=i&&0<i.length?i.indexOf(c):c)!==s)&&(o[o.indexOf(s)]=c,l=u[s],delete u[s],a[c]=l);for(f in a)a.hasOwnProperty(f)&&(u[f]=a[f])},n.prototype.PDi=function(){var t=this.uNi,e=this.jIi;this.suspendPaint(),0<t&&this.togglePinnedRows(Gt(t)),0<e&&this.togglePinnedColumns(Gt(e)),this.resumePaint()},n.prototype.nPt=function(){var t,e,n;this.Mf.getDataSource().nPt()},n.prototype.nDe=function(){var t,e,n,i,o,u,a,t=this,e=t.Mf,n=t.getDataView(),i=e.H3,o=[];if(o=i.J$?Object.keys(i.J$).reduce(function(t,e){var e,e,e,e=null!=(e=i.J$[e])?e:{},e=e.name||e.dataField;return e&&t.push(e),t},[]):Object.keys(i.Pq).map(function(t){return i.Pq[t]}),u=n.getColumnInfos().map(function(t){return n.ife(t)}),o.length!==u.length)t.eDe();else for(a=0;a<o.length;a++)if(o[a]!==u[a])return void t.eDe()},n.prototype.WDi=function(t,e,n){var i=this.Mf,o=this.jFt,u=this.lMi,a=i.getDataSource();o&&a.pde(t)&&(this.suspendPaint(),!1!==e&&this.nDe(),this.Mf.kFe&&this.Mf.kFe(),this.INi.Cze(this.options.groupLayout.mode),this.INi.Tze(this.options.groupLayout),this.INi.Hc(a.FFt,i.getRowCount()-1-(this.options.allowAddNew?1:0),i,u,n),this.resumePaint())},n.prototype.groupBy=function(t){var e,n,i,t,e=this.Mf,n=e.getDataSource();if(!n||0===arguments.length||!I(t)||this.qNi())return n&&n.groupBy();this.suspendPaint(),e.suspendCalcService(),this.PDi(),this.jFt=!0,i=M(this.lMi),this.lMi=M(t),n.$Je(!this.sze()),n.groupBy(this.lMi),this.WDi(E,!1),this.eDe(),(t=e.rowFilter())&&t.SZe(),e.resumeCalcService(!1),this.resumePaint(),this.UMi&&this.UMi.updatePanelLayout(),this.ize.addUndoChanges({type:v.TableSheetUndoType.GroupOptions,oldData:i,newData:this.lMi})},n.prototype.eDe=function(t,e){var n,i,o,u,o;void 0===t&&(t=d.GroupLayoutMode.tabular),u=(o=(i=(n=this.Mf).getDataSource()).getColumnInfos()).length,o=o.filter(function(t){return t.isGroup}).length,this.ZJe(),n.setColumnCount(u),this.refreshBindColumns(e),0<o?(n.Cb.clear(L.SheetArea.viewport),t===d.GroupLayoutMode.tabular&&n.autoMerge((0,L.Ec)(-1,0,-1,o),h.AutoMergeDirection.column,h.AutoMergeMode.restricted)):this.sze()&&n.Cb.clear(L.SheetArea.viewport)},n.prototype.removeGroupBy=function(){var t,e,n,e,e,t=this.Mf,e=t.getDataSource();e&&!this.qNi()&&(n=M(this.lMi),this.jFt=!1,this.lMi=E,this.suspendPaint(),t.suspendCalcService(),this.detailColumnsVisible(!0),e.removeGroupBy(),e=e.getColumnInfos().length,t.setColumnCount(e),this.refreshBindColumns(),t.Cb.clear(L.SheetArea.viewport),this.Mf.kFe(),this.INi.L0(t),(e=t.rowFilter())&&e.SZe(),t.resumeCalcService(!1),this.resumePaint(),this.UMi&&this.UMi.updatePanelLayout(),this.ize.addUndoChanges({type:v.TableSheetUndoType.GroupOptions,oldData:n}))},n.prototype.detailColumnsVisible=function(t){var e,n,i,o,u,a,e=this.Mf,n=e.getDataSource();if(n){if(i=n.detailColumnsVisible(),0===arguments.length)return i;if((t===i||t||!this.sze(!0))&&(n.detailColumnsVisible(t),n.BFt)){for(this.suspendPaint(),o=n.getColumnInfos(),u=0;u<o.length;u++)(a=o[u]).isGroup||e.setColumnVisible(u,a.visible);this.HDi(),this.resumePaint()}}},n.prototype.HDi=function(){var t=this.lMi,e=this.detailColumnsVisible();t&&!e&&this.expandGroup(t[t.length-1].field,!1)},n.prototype.groupOutlinePosition=function(t){var e,n;if(0===arguments.length)return this.INi.TMi();e=this.INi.TMi(),n=this.Mf,this.suspendPaint(),this.INi.TMi(n,t),this.resumePaint(),this.ize.addUndoChanges({type:v.TableSheetUndoType.GroupOutlinePosition,oldData:e,newData:t})},n.prototype.Ize=function(t,e){var n,i,o;this.jFt&&(i=(n=this.options.groupLayout).mode,o=this.getDataView())&&(this.suspendPaint(),t&&(i===d.GroupLayoutMode.tabular?(o.$Je(!0),this.FWe()):(0,O.isGroupOutlineCondensedLayout)(i)&&(this.JWe(),o.$Je(!1),this.detailColumnsVisible()||this.detailColumnsVisible(!0))),this.WDi(E,!1,e),this.eDe(i,t),this.resumePaint())},n.prototype.XWe=function(){var t,e,n,i,t=this.getDataView(),e=0;if(t)for(n=t.getColumn();e<n.length&&(i=n[e]).isGroup;e++);return e},n.prototype.JWe=function(){var t=this;t.HWe(0,t.XWe(),!1)},n.prototype.FWe=function(){var t=this;t.VWe(0,t.XWe(),!1)},n.prototype.lze=function(){this.sze(!0)&&(this.WDi(),this.ize.addUndoChanges({type:v.TableSheetUndoType.ResetGroupOutline}))},n.prototype.zZe=function(){return this.options.groupLayout},n.prototype.sze=function(t){return(!t||this.jFt)&&(0,O.isGroupOutlineCondensedLayout)(this.gze())},n.prototype.uZe=function(){return(0,O.isGroupCondensedLayout)(this.gze())},n.prototype.gze=function(){var t=this.zZe();return t&&Nt(t.mode)},n.prototype.LZe=function(){var t=this.zZe();return t&&Dt(t.position)},n.prototype.pze=function(){return"footer"!==this.LZe()},n.prototype.expandGroup=function(t,e){var n,i,o,n=this.lMi;n&&!(i=e&&t===n[n.length-1].field&&!this.detailColumnsVisible())&&(this.suspendPaint(),o={expand:!e,indexs:[]},this.INi.uMi(n,t,e,function(t,e){o.level=t,o.indexs.push(e)}),this.ize.addUndoChanges({type:v.TableSheetUndoType.ExpandGroupByLevel,oldData:o,newData:{field:t,expand:e}}),this.resumePaint())},n.prototype.expandGroupItem=function(e,n,i){var o,t,u,a,o=this,t=this.lMi;t&&!(u=i&&e===t.length-1&&!this.detailColumnsVisible())&&(this.suspendPaint(),a={index:n,level:e},this.INi.aMi(e,n,i,function(t){a.expand=t,o.ize.addUndoChanges({type:v.TableSheetUndoType.ExpandGroupItem,oldData:a,newData:{index:n,level:e,expand:i}})}),this.resumePaint())},n.prototype.VDi=function(t){return this.sMi(t,X,0)},n.prototype.DMi=function(t,e){return!(-1<t)||this.sMi(e,t,0)},n.prototype.sMi=function(t,e,n,i,o){return this.WWe||this.INi.sMi(t,e,n,i,o)},n.prototype.e4i=function(t,e,n){var i,n,n,i=this;return!(!i.jFt||n!==L.SheetArea.viewport||!(n=i.Mf.getDataSource())||((n=n.getColumn(e))&&n.isGroup?i.DMi(n.OFt,t):i.VDi(t)))},n.prototype.MMi=function(t){return this.INi.MMi(t)},n.prototype.IMi=function(t,e){return this.INi.IMi(t,e)},n.prototype.gMi=function(t){return this.INi.gMi(t)},n.prototype.FDi=function(t){var e,e,e=this.Mf.getDataSource();return!!e&&(e=e.getColumn(t))&&e.isGroup},n.prototype.hMi=function(t){var e,e,e=this.Mf.getDataSource();return!!e&&(e=e.getColumn(t))&&e.DFt},n.prototype.JDi=function(t){var e,e,e=this.Mf.getDataSource();return!!e&&(e=e.getColumn(t))&&e.GFt},n.prototype.applyTableTheme=function(t){var e,n,i,e=this.Mf,n=this.hl;this.hl=t,i=M(this.options.alternatingRowOptions),this.suspendPaint(),this.oZe(e,i,t),this.options.alternatingRowOptions=i,this.resumePaint(),this.ize.addUndoChanges({type:v.TableSheetUndoType.ThemeChanged,oldData:n,newData:this.hl})},n.prototype.oZe=function(t,e,n){var i,o,u,u,u,i,t,o,i=new L.Style,o=new L.Style,u=n&&n.headerRowStyle();u&&o.h5(u),(u=n&&n.wholeTableStyle())&&(i.h5(u),o.h5(u)),i.cellPadding===E&&(i.cellPadding="5"),t.setDefaultStyle(i),o.showEllipsis===E&&(o.showEllipsis=!0),o.cellPadding===E&&(o.cellPadding="5"),t.setDefaultStyle(o,L.SheetArea.colHeader),(e=e||M(this.options.alternatingRowOptions))&&(u=n&&n.firstRowStripStyle(),Array.isArray(e.style)||(e.style=[]),e.style[0]=u?this.XDi(u):E,i=n&&n.firstRowStripSize(),Array.isArray(e.step)||(e.step=[]),e.step[0]=k(i)?1:i,(t=n&&n.secondRowStripStyle())&&(Array.isArray(e.style)||(e.style=[]),e.style[1]=this.XDi(t)),o=n&&n.secondRowStripSize(),k(o)||(Array.isArray(e.step)||(e.step=[]),e.step[1]=o))},n.prototype.XDi=function(t){var e=new L.Style;return e.backColor=t.backColor,e.foreColor=t.foreColor,e.font=t.font,e.borderLeft=t.borderLeft,e.borderTop=t.borderTop,e.borderRight=t.borderRight,e.borderBottom=t.borderBottom,e.textDecoration=t.textDecoration,e},n.prototype.applyFreeHeaderArea=function(t){if(0===arguments.length)return this.hNi;this.ize.addUndoChanges({type:v.TableSheetUndoType.ApplyFreeHeaderChanged,oldData:this.hNi,newData:t}),this.hNi=t,this.refreshBindColumns()},n.prototype.printInfo=function(t){var e,t,e=this.Mf;return t&&(t.columnStart(-1),t.columnEnd(-1),t.rowStart(-1),t.rowEnd(-1),t.repeatColumnStart(-1),t.repeatColumnEnd(-1),t.repeatRowStart(-1),t.repeatRowEnd(-1)),(t=e.printInfo&&e.printInfo.apply(e,arguments))&&Rt(t),t},n.prototype.addRow=function(t){var e,n,i,o,e=this,n=this.Mf,i=n.getRowCount();e.options.allowAddNew&&(i-=1),(o=this.getDataView()).insertItem(i,t,function(){o.saveItem(i,function(){e.mNi(i)},y(n,i))},y(n,i))},n.prototype.iM=function(t,e){var n=this;n.suspendPaint(),n.WDi(e),n.XNi(),n.resumePaint()},n.prototype.iDe=function(t){var e,n;this.Mf.gL(t,-1)},n.prototype.removeRow=function(e){var n,t,i,n=this,t=this.Mf;n.zDi(e)||(i=this.CZe(),this.ize.addUndoChanges({type:v.TableSheetUndoType.ChangeCollapse,oldData:i}),this.ize.addUndoChanges({type:v.TableSheetUndoType.RemoveRow}),n.getDataView().removeRowData(e,1,function(t){n.ZNi(e,t.removedCount)},y(t,e)),this.ize.addUndoChanges({type:v.TableSheetUndoType.PinnedRowsChanged}))},n.prototype.Yze=function(){var t,e,n,i,t=this,e=t.Mf.getRowCount(),n=t.getDataView().length(),i=this.options.allowAddNew;t.suspendPaint(),t.Mf.ffe(e,n-e+(i?1:0),3,{rowExpand:!1,clearUndoNotInCommand:!1}),t.WDi(),t.uDi(),t.resumePaint()},n.prototype.Wze=function(t,e){var n=this;n.Mf.r9e(t,e||1,L.SheetArea.viewport,{clearUndoNotInCommand:!1}),n.NZe(t)},n.prototype.Hze=function(t,e){var n=this;n.Mf.o9e(t,e||1,L.SheetArea.viewport,!1),n.NZe(t)},n.prototype.NZe=function(t){var e,n,e=this;e.isShowHierarchyOutlineColumn()&&(n=e.Mf.outlineColumn.options().columnIndex,k(t)?e.$Ni()!==n:t<n)&&e.wNi()},n.prototype.KDi=function(t,e){var n,e,n=this.Mf;n.i9e(t,e||1,3,!1),t<(e=n.frozenRowCount())&&n.frozenRowCount(e-1)},n.prototype.ZNi=function(t,e){var n=this;n.suspendPaint(),n.KDi(t,e),n.WDi(),n.XNi(),n.resumePaint()},n.prototype.saveRow=function(t){var e,n,e=this;e.zDi(t)||(n=e.Mf,e.getDataView().saveItem(t,function(){e.SNi(t)},y(n,t)))},n.prototype.SNi=function(t){var e=this;e.suspendPaint(),e.resumePaint()},n.prototype.resetRow=function(t){var e=this;e.zDi(t)||e.getDataView().resetItem(t,function(){e.xNi(t)})},n.prototype.xNi=function(t){var e=this;e.iDe(t),e.iM(t)},n.prototype.addRowStateRule=function(t,e){var n,i,o,u;t!==L.RowColumnStates.invalid&&4!==t&&t!==L.RowColumnStates.edit&&(o=(i=(n=this).Mf).conditionalFormats)&&(u=[new L.Range(-1,-1,-1,-1)],o.addRowStateRule(t,e,u))},n.prototype.addColumnStateRule=function(t,e){var n,i,o,u;t!==L.RowColumnStates.invalid&&t!==L.RowColumnStates.dirty&&t!==L.RowColumnStates.edit&&(o=(i=(n=this).Mf).conditionalFormats)&&(u=[new L.Range(-1,-1,-1,-1)],o.addColumnStateRule(t,e,u))},n.prototype.addColumnHeaderStateRule=function(t,e){var n,i,o,u,t;if((4===t||1024===t||2048===t||4096===t)&&(o=(i=(n=this).Mf).conditionalFormats)){switch(u=function(t){e.decoration&&e.decoration.icons&&1===e.decoration.icons.length&&""===e.decoration.icons[0].src&&(e.decoration.icons[0].src=t)},t){case 4:u(ut);break;case 1024:u(it);break;case 2048:u(ot);break;case 4096:u(at)}return t=new c.ColumnHeaderStateRule(A.RuleType.columnStateRule,t,e),o.addRule(t)}},n.prototype.iAi=function(t){var t=t.conditionalFormats;t&&t.rules&&(t.rules=t.rules.filter(function(t){var e=[4,1024,2048,4096];return!(15===t.ruleType&&-1<e.indexOf(t.state))}))},n.prototype.removeRowStateRule=function(t){t!==L.RowColumnStates.invalid&&4!==t&&t!==L.RowColumnStates.edit&&this._Di(t,!0)},n.prototype.removeColumnStateRule=function(t){t!==L.RowColumnStates.invalid&&t!==L.RowColumnStates.dirty&&t!==L.RowColumnStates.edit&&this._Di(t,!1)},n.prototype._Di=function(t,e){var n,i,o,u,a,r,c,n,i,o=this.Mf.conditionalFormats;if(o)for(a=0,r=u=o.getRules();a<r.length;a++)!(c=r[a]).isStateRule()||c.isRow()!==e||t&&t!==c.state()||o.removeRule(c)},n.prototype.getStateRules=function(){var t,e,t=this.Mf.conditionalFormats;return t?(e=t.getRules()).filter(function(t){var t=t.ruleType();return t===A.RuleType.rowStateRule||t===A.RuleType.columnStateRule}):[]},n.prototype.clearStateRules=function(){var t,e,n,i,o,t=this.Mf.conditionalFormats;if(t)for(n=(e=t.getRules()).length-1;0<=n;n--)(o=(i=e[n]).ruleType())!==A.RuleType.rowStateRule&&o!==A.RuleType.columnStateRule||t.removeRule(i)},n.prototype.qDi=function(){return this.Mf._1},n.prototype.hasRowState=function(t,e){var e=this.qDi().getState(e,0,t,!0,[{row:-1,rowCount:-1,col:-1,colCount:-1}]);return T(e)&&e===t},n.prototype.$Di=function(e,n,t,i){var o,u,a,r,o=this,u=this.getDataView(),a=this.Mf,r={};r[n]=t,u.updateItem(e,r,function(t){i&&i.hasAddNewRowData&&!o.jFt||o.LNi(e,n)},y(a,e),i)},n.prototype.LNi=function(t,e){var n,i,n=this,i=n.Mf;i.qWe()?i.YHe(e):n.iM(t,e)},n.prototype.iTi=function(u,a,r){var c,s,t,c=this.getDataView();c&&(s=this.Mf,(t=c.getColumnInfos()).forEach(function(t,e){var n,i,o,n,n=t.defaultValue,i=r&&r[c.ife(t)];k(i)&&!k(n)&&(i=wt(n)?n():n,n)&&"="===n[0]&&((o=s.Uw()).DJ=c.length(),n=s.Lp.parse(o,n,0,0),i=s.Lp.evaluateExpression(o,n,{row:u,col:e})),a(i,e,t)}))},n.prototype.CCi=function(t){var e,n,i,e,n=this.getDataView();return i=n?n.nMt(n.Ywt(t),0):i},n.prototype.TLt=function(t,e,n){return t.TLt(e,n)},n.prototype.EPt=function(){var t=this,e=t.jIi,n=t.getDataView();0<e&&(t.tTi=n.EPt(),t.togglePinnedColumns(Gt(e)))},n.prototype.jPt=function(){var t,e,n,e,t=this,e=t.tTi,n,e=t.getDataView().jPt(e);0<e.length&&t.togglePinnedColumns(e),delete t.tTi},n.prototype.DPt=function(t,e){var n=this.getDataView();if(n)return n.DPt(t,e)},n.prototype.OPt=function(t,e,n){var i,t,i=this.getDataView();i&&(this.ize.startAddComboChanges(),t=i.OPt(t,e,n),this.Mf.rowFilter().nTi(t),this.kTi(i),this.ize.addUndoChanges({type:v.TableSheetUndoType.SetDataView}),this.sze(!0)&&this.ize.addUndoChanges({type:v.TableSheetUndoType.ResetGroupOutline}),this.ize.endAddComboChanges())},n.prototype.eTi=function(t,e){var n,i={},o;return this.iTi(t,function(t,e,n){wt(o=n.value instanceof Function?n.value.name:n.value)||x(o)||Ct(o)||(i[o]=t)},e),i},n.prototype.oTi=function(t,e){var n,i,o,n,n=this,i=this.getDataView(),o=this.Mf,n=n.eTi(t,e);i.insertItem(t,n,function(){},y(o,t))},n.prototype.mNi=function(t){var e,n,e=this,n=e.Mf.getRowCount();e.Mf.ffe(n<1?t:t-1,1,3,{rowExpand:!1,clearUndoNotInCommand:!1}),e.refreshStyleRuleCache(),e.iM(t)},n.prototype.vDi=function(t){var e;return 0<this.qDi().getState(t,-1,L.RowColumnStates.inserted)},n.prototype.jDi=function(t){var e;return 0<this.qDi().getState(t,-1,256)},n.prototype.zNi=function(){var t,e,n,t=this,e=t.Mf;e.suspendPaint(),n=e.getColumnCount(),e.r9e(n,1,3,{clearUndoNotInCommand:!1}),t.uTi(!0,""),e.rowFilter().filterButtonVisible(n,!1),e.resumePaint()},n.prototype.cTi=function(){var t,e,n,t=this,e=t.Mf;e.suspendPaint(),n=t.kDi(),e.getValue(0,n,L.SheetArea.colHeader)===t.actionColumn.options().title&&e.o9e(n,1,3,!1),e.resumePaint()},n.prototype.uTi=function(t,e){var o,n,i,t,e,u,a,r,a,r,a,r,o=this,n=o.Mf;n.suspendPaint(),i=o.kDi(),!t&&n.getValue(0,i,L.SheetArea.colHeader)!==e||(t=new L.Style,e=[],(r=(a=(u=o.actionColumn.options()).actionButtons.remove)&&a.visible)&&e.push({useButtonStyle:!0,caption:a.title,imageType:a.icon,enabled:o.mDi.bind(o),visible:"auto"!==r||o.mDi.bind(o),position:L.ButtonPosition.left,command:function(t,e,n,i){o.Mf.ki(L.Events.RowOperation,{sheet:o,sheetName:o.name(),actionType:gt.remove,row:e}),o.removeRow(e)}}),(r=(a=u.actionButtons.save)&&a.visible)&&e.push({useButtonStyle:!0,caption:a.title,imageType:a.icon,enabled:o.LDi.bind(o),visible:"auto"!==r||o.LDi.bind(o),position:L.ButtonPosition.left,command:function(t,e,n,i){o.Mf.ki(L.Events.RowOperation,{sheet:o,sheetName:o.name(),actionType:gt.save,row:e}),o.saveRow(e)}}),(r=(a=u.actionButtons.reset)&&a.visible)&&e.push({useButtonStyle:!0,caption:a.title,imageType:a.icon,enabled:o.LDi.bind(o),visible:"auto"!==r||o.LDi.bind(o),position:L.ButtonPosition.left,command:function(t,e,n,i){o.Mf.ki(L.Events.RowOperation,{sheet:o,sheetName:o.name(),actionType:gt.reset,row:e}),o.resetRow(e)}}),0<e.length&&(t.cellButtons=e),t.locked=!1,n.setStyle(-1,i,t),o.JNi(-1,i,u.headerStyle,L.SheetArea.colHeader),n.setValue(0,i,u.title,L.SheetArea.colHeader),n.setColumnWidth(i,u.width)),n.resumePaint()},n.prototype.mDi=function(t){return!this.zDi(t)},n.prototype.LDi=function(t){var e,n,i,e,e=this,n=e.jDi(t),i=e.vDi(t),e=e.zDi(t);return n||i&&!e},n.prototype.CNi=function(){var t,e,t=this.Mf,e=t.getRowCount();t.ffe(e=e<2?e:e-2,1,3,{rowExpand:!1,clearUndoNotInCommand:!1})},n.prototype.rTi=function(){var t=this.Mf;t.i9e(t.getRowCount()-1,1,3,!1)},n.prototype.aNi=function(){var t,t,t=this.Mf;t.suspendDirty(),t.options.allowCellOverflow=!1,t.options.rowHeaderAutoText=L.HeaderAutoText.blank,t.options.clipBoardOptions=L.ClipboardPasteOptions.values,t.options.isProtected=!0,(t=t.options.protectionOptions).allowSort=!0,t.allowFilter=!0,t.allowResizeColumns=!0,t.allowDragInsertColumns=!0,t.allowOutlineRows=!0},n.prototype.lNi=function(t){var e=this,n=e.Mf;e.options.allowAddNew&&t++,t!==n.getRowCount()&&(n.Ut.cj(t),n.Ww=!0)},n.prototype.aTi=function(t,e){var n,i,i,o,n=this,i=n.getDataView(),i=i&&i.iRt&&i.iRt.length,o=n.Mf.getRowCount();n.zDi(t)&&o!==i+1&&(n.Mf.ki(L.Events.RowOperation,{sheet:n,sheetName:n.name(),actionType:gt.addNewEmptyRow,row:t+1}),n.CNi(),n.WDi(),n.XNi())},n.prototype.pTi=function(t,e){var n,t,n=this,t=t.value;return!("string"==typeof t&&-1<t.indexOf(".")&&(t=t.split(".")[0],k(n.getDataView().ufe({value:t},e))))},n.prototype.iIe=function(){var t,e,n,i,o,u,a,t=this,e=t.Mf,n=t.getDataView(),i=t.nIe;for(o in i)i.hasOwnProperty(o)&&(u=i[o],a=Number(o),t.zDi(a)?t.oTi(a,u):n.updateItem(a,u,function(){},y(e,a)));t.nIe=E},n.prototype.tDe=function(){var t,e,n,i,t=this,e=t.Mf,n=e.getRowCount()-(t.options.allowAddNew?1:0),i=t.getDataView().visibleLength();n<=i?(e.setRowCount(i-(t.options.allowAddNew?0:1)),e.ffe(n-1,1,3,{rowExpand:!1,clearUndoNotInCommand:!1})):(e.setRowCount(i),t.options.allowAddNew&&e.ffe(i,1,3,{rowExpand:!1,clearUndoNotInCommand:!1}))},n.prototype.v7=function(){var h=this,g=h.Mf;function n(t,e){var n;h.nPt(),h.WDi(),h.HDi(),h.XNi(),h.getParent().options.calcOnDemand?(n=h.getDataView().gLt)&&n.o_t(E,!0):setTimeout(function(){var t,t,t=null==(t=h.getDataView())?void 0:t.gLt;t&&(g.suspendCalcService(),t.o_t(E,!0),g.resumeCalcService(!1))},10)}g.D3(L.Events.EditStarting,function(t,e){e.col===h.kDi()&&(e.cancel=!0)}),g.D3(L.Events.EditEnded,function(t,e){var n,i,i,n=e.row,i=e.ignoreValueChange;if(!i){if((0,b.isNullOrEmpty)(e.editingText)&&h.zDi(n)){if(i=h.fDi(e.col),k(i.defaultValue)||!h.pTi(i,n))return;h.oTi(n)}h.aTi(n,!0)}}),g.D3(L.Events.ClipboardPasting,function(t,e){var n=e.cellRange,i=n.col,n=n.col+n.colCount-1,o=h.kDi(),u;i<=o&&o<=n&&(e.cancel=!0),h.nIe={},h.getDataView().gme()}),g.D3(L.Events.ClipboardPasted,function(t,e){h.iIe();var e=e.cellRange,e=e.row+e.rowCount-1;h.aTi(e),h.getDataView().pme(),h.iM(e)}),g.D3(L.Events.DragFillBlock,function(t,e){var n,i,o,i,n,n=e.fillRange,i=e.fillDirection,o=n.col+n.colCount-1;0===i&&(-1!==n.row&&-1!==n.rowCount&&(o+=1),n=(i=e.sheet.getSelections()[0]).col+i.colCount-1,o=Math.max(o,n)),o===h.kDi()&&(e.cancel=!0),h.nIe={},h.getDataView().gme()}),g.D3(L.Events.DragFillBlockCompleted,function(t,e){h.iIe();var e=e.fillRange,e=e.row+e.rowCount-1;h.aTi(e),h.getDataView().pme(),h.iM(e)}),g.D3(L.Events.DragDropBlock,function(t,e){var n,i,o,u,a,r,c,s,l,f,d,n=e.fromCol,i=e.toCol,o=e.colCount,u=e.insert,a=e.fromRow,r=e.toRow,c=n+o-1,s=i+o-1,l=h.kDi();c===l||s===l?e.cancel=!0:u&&-1===a&&-1===r&&(h.OPt(n,f=n<i?i-1:i,o),h.UMi&&h.UMi.updatePanelLayout(),g.setSelection(-1,d=n<i?i-o:i,-1,o),e.cancel=!0),h.nIe={},h.getDataView().gme()}),g.D3(L.Events.DragDropBlockCompleted,function(t,e){h.iIe();var e=e.toRow+e.rowCount-1;h.aTi(e),h.getDataView().pme(),h.iM(e)}),g.D3(L.Events.ValueChanged,function(t,e){h.aTi(e.row)}),g.D3(L.Events.CellChanged,function(t,e){var n,i,o,u,o,n=e.row,i=e.col,o=e.sheetArea,u=e.newValue;o===L.SheetArea.colHeader&&(o=n<g.Ut.getFreeAreaRowCount(o),"value"===e.propertyName?o?h.YNi(n,i,"value",u):h.HNi(i):"formula"===e.propertyName&&o&&h.YNi(n,i,"formula",u))}),g.D3(L.Events.RangeChanged,function(t,e){var n,i,o,u,a,r,u,c;if(6===e.action)for(i=0,o=n=e.changedCells;i<o.length;i++)a=(u=o[i]).row,r=u.col,(u=u.sheetArea)===L.SheetArea.colHeader&&((c=a<g.Ut.getFreeAreaRowCount(u))?h.YNi(a,r,"value",g.getValue(a,r,u)):h.HNi(r))}),g.D3(L.Events.ColumnWidthChanged,function(t,e){var n,i,n=g.getDataSource(),i=n.getColumnInfos();!e.header&&!k(i)&&0<i.length&&e.colList.forEach(function(t){var e=i[t]&&f({},i[t]);k(e)||(e.width=g.Do(t,1),n.yBe(e))})}),g.D3(L.Events.ColumnChanged,function(t,e){var n,i,o,n;"isVisible"!==e.propertyName||1!==e.sheetArea&&3!==e.sheetArea||(n=g.getDataSource())&&(i=n.getColumn(e.col))&&(h.ize.startAddComboChanges(),o=!1!==i.visible,n.yBe(f(f({},i),{visible:e.newValue})),o!==e.newValue&&h.sze(!0)&&(n=g.k9(L.SheetArea.viewport),e.newValue?e.col===n:e.col<n)&&h.lze(),h.ize.endAddComboChanges())}),g.D3(L.Events.RangeFiltering,function(){h.UJe=!0}),g.D3(L.Events.RangeFiltered,function(t,e){h.UJe=!1,n(t,e)}),g.D3(L.Events.RangeFilterClearing,function(){h.nAi=!0}),g.D3(L.Events.RangeFilterCleared,function(t,e){h.nAi=!1,n(t,e)}),g.D3(L.Events.RangeSorting,function(){h.nDi()}),g.D3(L.Events.RangeSorted,function(t,e){(h.FDi(e.col)||h.JDi(e.col))&&(h.WDi(E,!1),h.HDi()),h.uDi()}),g.D3(L.Events.OutlineColumnCheckStatusChanged,function(t,e){h.sDi()})},n.prototype.Ob=function(t,e,n,i){var u,o,o,a,r,c,s,u=this;"allowAddNew"===t?!0===e&&!1===n?u.CNi():!1===e&&!0===n&&u.rTi():"alternatingRowOptions"===t?u.Mf.repaint():"defaultStackRowHeight"===t?u.Mf.zw():"isDesignMode"===t?u.vNi(e):"sheetTabColor"===t?(o=u.getParent(),k(o.getHost())||o.AC(!1)):"enableDefineColumn"===t?(u.Mf.suspendPaint(),u.Mf.options.addColumnButtonOption=e?{visible:!0,width:Z,command:u.options.defineColumnCommand,style:Z,tooltip:(0,l.getSR)().defineColumn}:{visible:!1,width:Z,command:st,style:Z,tooltip:Z},u.Mf.resumePaint()):"defineColumnCommand"===t?(u.Mf.suspendPaint(),u.Mf.options.addColumnButtonOption?u.Mf.options.addColumnButtonOption.command=e:u.Mf.options.addColumnButtonOption={visible:!0,width:Z,command:u.options.defineColumnCommand,style:Z,tooltip:(0,l.getSR)().defineColumn},u.Mf.resumePaint()):"showRowNumber"===t?(u.Mf.suspendPaint(),e?(u.Mf.setColumnCount(u.Mf.getColumnCount(L.SheetArea.rowHeader)+1,L.SheetArea.rowHeader),u.Mf.options.rowHeaderAutoText=L.HeaderAutoText.numbers):(u.Mf.setColumnCount(u.Mf.getColumnCount(L.SheetArea.rowHeader)-1,L.SheetArea.rowHeader),u.Mf.options.rowHeaderAutoText=L.HeaderAutoText.blank),u.Mf.resumePaint()):"groupLayout"===t&&(u.Mf.suspendPaint(),e?(o=Nt(e.mode),a=e.position,r={mode:o},a&&Dt(a)&&(r.position=a),c=function(t,e,n){var i,o;return"mode"===t?(i=Nt(e))!==n&&(o=!0):"position"===t&&(i=Dt(e)?e:E),[i,function(){u.Ize(o,!0)}]},s=u.options.groupLayout,["mode","position"].forEach(function(t){var e=r[t];jt(s,t,c),s["_"+t]=e}),u.Ize(e.mode!==(n&&n.mode),!0)):u.options.groupLayout=i&&i.groupLayout?f({},i.groupLayout):{mode:d.GroupLayoutMode.tabular},u.Mf.resumePaint()),this.ize.addUndoChanges({type:v.TableSheetUndoType.OptionChanged,oldData:n,newData:e,key:t})},n.prototype.vNi=function(t){var e,n,e=this.Mf;e.suspendPaint(),e.suspendEvent(),t&&((n=new L.CellTypes.Text).isImeAware=function(){return!1}),e.setCellType(-1,-1,n,L.SheetArea.colHeader),e.resumeEvent(),e.resumePaint()},n.prototype.getDefaultOptions=function(){return{allowAddNew:!0,alternatingRowOptions:{step:[1,1],style:new L.Style("lightgrey")},defaultStackRowHeight:null,isDesignMode:!1,menuItemVisibility:{promoteMenuItemVisible:!1,demoteMenuItemVisible:!1,moveUpMenuItemVisible:!1,moveDownMenuItemVisible:!1,addBeforeMenuItemVisible:!1,addAfterMenuItemVisible:!1,addAboveMenuItemVisible:!1,addBelowMenuItemVisible:!1,expandAllLevelMenuItemVisible:!1,collapseAllLevelMenuItemVisible:!1,expandToLevelMenuItemVisible:!1},sheetTabColor:void 0,showRowNumber:!1,defineColumnCommand:ct,submitDefineColumnCommand:lt,enableDefineColumn:!1,groupLayout:{mode:d.GroupLayoutMode.tabular},columnTypeItems:[{name:d.ColumnTypes.Number,text:(0,l.getSR)().columnTypeNumber,iconClass:e(d.ColumnTypes.Number)},{name:d.ColumnTypes.Text,text:(0,l.getSR)().columnTypeText,iconClass:e(d.ColumnTypes.Text)},{name:d.ColumnTypes.Formula,text:(0,l.getSR)().columnTypeFormula,iconClass:e(d.ColumnTypes.Formula)},{name:d.ColumnTypes.Lookup,text:(0,l.getSR)().columnTypeLookup,iconClass:e(d.ColumnTypes.Lookup)},{name:d.ColumnTypes.Date,text:(0,l.getSR)().columnTypeDate,iconClass:e(d.ColumnTypes.Date)},{name:d.ColumnTypes.Checkbox,text:(0,l.getSR)().columnTypeCheckbox,iconClass:e(d.ColumnTypes.Checkbox)},{name:d.ColumnTypes.Select,text:(0,l.getSR)().columnTypeSelect,iconClass:e(d.ColumnTypes.Select)},{name:d.ColumnTypes.Currency,text:(0,l.getSR)().columnTypeCurrency,iconClass:e(d.ColumnTypes.Currency)},{name:d.ColumnTypes.Percent,text:(0,l.getSR)().columnTypePercent,iconClass:e(d.ColumnTypes.Percent)},{name:d.ColumnTypes.Phone,text:(0,l.getSR)().columnTypePhone,iconClass:e(d.ColumnTypes.Phone)},{name:d.ColumnTypes.Email,text:(0,l.getSR)().columnTypeEmail,iconClass:e(d.ColumnTypes.Email)},{name:d.ColumnTypes.URL,text:(0,l.getSR)().columnTypeURL,iconClass:e(d.ColumnTypes.URL)},{name:d.ColumnTypes.CreatedTime,text:(0,l.getSR)().columnTypeCreatedTime,iconClass:e(d.ColumnTypes.CreatedTime)},{name:d.ColumnTypes.ModifiedTime,text:(0,l.getSR)().columnTypeModifiedTime,iconClass:e(d.ColumnTypes.ModifiedTime)},{name:d.ColumnTypes.Attachment,text:(0,l.getSR)().columnTypeAttachment,iconClass:e(d.ColumnTypes.Attachment)},{name:d.ColumnTypes.Barcode,text:(0,l.getSR)().columnTypeBarcode,iconClass:e(d.ColumnTypes.Barcode)}]}},n.prototype.Zp=function(t){var i,o,n,t,i=this,o=i.getDefaultOptions();i.options=L.mt.b0(o,function(t,e,n){i.Ob(t,e,n,o)}),n=i.options,t=F(!0,{},o,t=t||{}),_(t,function(t,e){n.hasOwnProperty(t)&&(n[t]=e)})},n.prototype.sNi=function(){var i=this;i.actionColumn=new G.ActionColumn(function(t,e){var n;i.getDataView()&&(t.visible&&!e.visible?i.cTi():!t.visible&&e.visible?i.zNi():t.visible&&e.visible&&i.uTi(!1,t.title))})},n.prototype.zDi=function(t){var e=this;return e.options.allowAddNew&&t===e.Mf.getRowCount()-1},n.prototype.kDi=function(){var t=this,e=t.Mf;return t.actionColumn.options().visible?e.getColumnCount()-1:-1},n.prototype.id=function(){return this.getDataView().getDirtyIndexes()},n.prototype.R2e=function(){return this.options.sheetTabColor},n.prototype.parameter=function(t){var e,n,i,o;if(0===arguments.length){for(i in n={},e=this.ghe)e.hasOwnProperty(i)&&(n[i]=dt(e[i]));return n}if(t){for(i in o={},t)t.hasOwnProperty(i)&&(o[i]=ft(t[i]));this.ghe=o}},n.prototype.isAlternatingRowStyleColumn=function(t){return!0},n.prototype.getGroupingHeaderHeight=function(t,e){var n=this.options.groupLayout.mode;return n===d.GroupLayoutMode.outline?2*this.Mf.defaults.rowHeight:n===d.GroupLayoutMode.condensed?this.Mf.defaults.rowHeight:0},n.prototype.getGroupingFooterHeight=function(t,e){return this.getGroupingHeaderHeight(t,e)},n._ID=1,i=n,l.TableSheet=i,L.Workbook.ch("tableSheet",{init:function(){var t=this;L.Commands.uri(t.commandManager()),t.bind(L.Events.ActiveSheetChanged+rt,function(){(0,P.updateStatusBarOnActiveSheetChanged)(t)})},onCultureChanged:function(){(0,l.getSR)()},createSheetTab:function(t){t.type===L.SheetType.tableSheet?(t.name||(t.name=Kt(this.qv())),t.sheetTab=new i(t.name)):t.type===L.SheetType.customSheetTab&&(t.sheetTab=new d.CustomSheetTab(t.name))},preFromJson:function(t,e,n){i._ID=1},preFromSJSFormat:function(t,e,n){i._ID=1},dispose:function(){this.unbind(L.Events.ActiveSheetChanged+rt)}}),L.Worksheet.ch("tableSheet",{processKeyDown:function(t){var e,n,e=this.rt,n=this.NMi;n&&n.options.isDesignMode&&e.q9&&(t.r=!0)},processMouseDown:function(t){var e,n,e=t.hitInfo.cellTypeHitInfo;e&&e.isRowAction&&(n=Vt(t.e),e.isShift=n.isShift,e.isCtrl=n.isCtrl),k(zt(this))||(0,P.processStatusBarOnMouseDown)(zt(this).getParent().b3t,t.hitInfo)}}),L.Y8.ch("tablesheet",{priority:7e3,setValue:function(t){var e,n,i,o,u,a,r,c,o,s,l,f,a,f,e=t.row,n=t.col,i=t.value,o=t.sheetArea,u=this.Mf,a=u.H3,r=zt(u);if(o===L.SheetArea.viewport&&a&&a.getSource()&&Qt(r)){if(s=o=void 0,f=r.fDi(n,!(l=c=!1)),r.options.allowAddNew&&a.getRowCount()===e&&(!r.nIe||k(r.nIe[e]))){if((0,b.isNullOrEmpty)(i)&&k(f.defaultValue)||!r.pTi(f,e))return void(t.isValueSet=!0);(s=r.getDataView()).gme(),(l=s.kbe()&&!r.nIe)&&(r.nIe={}),r.nIe?r.nIe[e]={}:r.oTi(e),c=!0,o=s.length()-1}(a=u.Ut.q_(!1,L.SheetArea.colHeader,n)).name&&(i=L.util.V0(i),r.nIe?((f=r.nIe[e])||(r.nIe[e]=f={}),f[a.name]=i):r.$Di(e,a.name,i,{hasAddNewRowData:c,currentModelIndex:o}),t.isValueSet=!0),c&&(l&&(r.oTi(e,r.nIe[e]),r.nIe=E),s.pme())}}}),a[D]={name:D,icons:[q],command:"PinRow"},a[j]={name:j,icons:[tt,et,nt]},a[C]={name:C,icons:[$]},a[K]={name:K,icons:[L.ButtonImageType.minus],command:"RemoveRow"},a[w]={name:w,icons:[L.ButtonImageType.ok],command:"SaveRow"},a[p]={name:p,icons:[L.ButtonImageType.clear],command:"ResetRow"}},"./dist/plugins/tableSheet/tableSheet.res.en.js":function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.columnTypeFormula=e.columnTypeText=e.columnTypeNumber=e.defineColumnExisted=e.defineColumnRequired=e.defineColumnNoResults=e.defineColumnAll=e.defineColumnNone=e.defineColumnFormula=e.defineColumnOthers=e.defineColumnDefaultValue=e.defineColumnConfiguration=e.defineColumnFormatting=e.defineColumnType=e.defineColumnCaption=e.defineColumnValue=e.submit=e.cancel=e.defineColumn=e.Exp_InvalidOperationInProtectForTableSheet=e.CrossColumnDetailList=e.CrossColumnDetailAttributes=e.CrossColumnDetailFilter=e.CrossColumnDetailValueHeader=e.CrossColumnDetailCaption=e.CrossColumnDetailOver=e.CrossColumnDetailValuePlaceHolder=e.CrossColumnDetailValue=e.CrossColumnDetailName=e.CrossColumnDetailFormatter=e.CrossColumnCrossHeader=e.StatusBarToolTipRowCount=e.StatusBarRowCount=e.TextColon=e.GroupPanelAddCalculateColumn=e.GroupPanelItemRemoveAll=e.GroupPanelSummaryLabelPositionFooter=e.GroupPanelSummaryLabelPositionHeader=e.GroupPanelSummaryLabelPosition=e.GroupPanelSummaryLabelRelateTo=e.GroupPanelSummaryLabelSlice=e.GroupPanelSummaryLabelCaption=e.GroupPanelSummaryLabelFormula=e.GroupPanelDropDownCalcField=e.GroupPanelItemAddCalculation=e.GroupPanelItemRemove=e.GroupPanelGroupsHeader=e.GroupPanelFieldsHeader=e.GroupPanelTip=e.EXP_TooManyPinRecords=void 0,e.columnTypeAttachmentRight=e.columnTypeAttachmentTop=e.columnTypeAttachmentLeft=e.columnTypeAttachmentMarginGroup=e.columnTypeCalendarType=e.columnTypeShowEraFirstYear=e.columnTypeCalendar=e.columnTypeDateLocale=e.columnTypeDateType=e.columnTypeDateShowBuiltInDateRange=e.columnTypeDateShowDateRange=e.columnTypeDateShowTime=e.columnTypeDateMonth=e.columnTypeDateYear=e.columnTypeDateDay=e.columnTypeDateCalendarPage=e.columnTypeDateSunday=e.columnTypeDateSaturday=e.columnTypeDateFriday=e.columnTypeDateThursday=e.columnTypeDateWednesday=e.columnTypeDateTuesday=e.columnTypeDateMonday=e.columnTypeDateStartDay=e.columnTypeDateTimePicker=e.columnTypeAllEditableFields=e.columnTypeMask=e.columnTypeFormattingCategory=e.columnTypeLookupIndexes=e.columnTypeLookupFields=e.columnTypeLookupTables=e.columnTypeNumberFormatting=e.columnTypeNumberFormattingSymbol=e.columnTypeNumberFormattingNegativeNumbers=e.columnTypeNumberFormattingThousandSeparator=e.columnTypeNumberFormattingDecimalPlaces=e.columnTypeNumberFormattingSample=e.columnTypeBarcode=e.columnTypeSelect=e.columnTypeAttachment=e.columnTypeModifiedTime=e.columnTypeCreatedTime=e.columnTypeLookup=e.columnTypeURL=e.columnTypeEmail=e.columnTypePhone=e.columnTypePercent=e.columnTypeCurrency=e.columnTypeDate=e.columnTypeCheckbox=void 0,e.columnTypeUrlLabel=e.columnTypeComboBoxItemHeight=e.columnTypeComboBoxEditable=e.columnTypeComboBoxEditorValueType=e.columnTypeComboBoxRemove=e.columnTypeComboBoxAdd=e.columnTypeComboBoxValue=e.columnTypeComboBoxText=e.columnTypeComboBoxItemProperties=e.columnTypeComboBoxItems=e.columnTypeComboBoxEditorValueTypes=e.columnTypeBarcodeLabel=e.columnTypeCheckboxTextAlign=e.columnTypeCheckboxAuto=e.columnTypeCheckboxBoxSize=e.columnTypeCheckboxIsThreeState=e.columnTypeCheckboxCaption=e.columnTypeCheckboxOther=e.columnTypeCheckboxAlign=e.columnTypeCheckboxFalse=e.columnTypeCheckboxIndeterminate=e.columnTypeCheckboxTrue=e.columnTypeCheckboxTextGroup=e.columnTypeCheckboxTitle=e.columnTypeAttachmentSizeUnit=e.columnTypeAttachmentIsDownloadEnabled=e.columnTypeAttachmentIsClearEnabled=e.columnTypeAttachmentIsPreviewEnabled=e.columnTypeAttachmentAcceptValueTypes=e.columnTypeAttachmentAccept=e.columnTypeAttachmentMaxSize=e.columnTypeAttachmentBottom=void 0,e.EXP_TooManyPinRecords="Only support less than 10 pin records.",e.GroupPanelTip="Drag here to set row groups",e.GroupPanelFieldsHeader="Fields",e.GroupPanelGroupsHeader="Groups",e.GroupPanelItemRemove="Remove",e.GroupPanelItemAddCalculation="Add Summary Field",e.GroupPanelDropDownCalcField="Field",e.GroupPanelSummaryLabelFormula="Formula",e.GroupPanelSummaryLabelCaption="Caption",e.GroupPanelSummaryLabelSlice="Slice",e.GroupPanelSummaryLabelRelateTo="Relate to",e.GroupPanelSummaryLabelPosition="Position",e.GroupPanelSummaryLabelPositionHeader="Header",e.GroupPanelSummaryLabelPositionFooter="Footer",e.GroupPanelItemRemoveAll="Remove All",e.GroupPanelAddCalculateColumn="Add Calculated Column",e.TextColon=":",e.StatusBarRowCount="Row Count",e.StatusBarToolTipRowCount="Count of selected rows",e.CrossColumnCrossHeader="Cross",e.CrossColumnDetailFormatter="Formatter",e.CrossColumnDetailName="Name",e.CrossColumnDetailValue="Value",e.CrossColumnDetailValuePlaceHolder="Drag item here to set value",e.CrossColumnDetailOver="Over",e.CrossColumnDetailCaption="Caption",e.CrossColumnDetailValueHeader="Show Cross Value Header",e.CrossColumnDetailFilter="Filter",e.CrossColumnDetailAttributes="Attributes",e.CrossColumnDetailList="List",e.Exp_InvalidOperationInProtectForTableSheet="The range you're trying to change is locked.",e.defineColumn="Define Column",e.cancel="Cancel",e.submit="Submit",e.defineColumnValue="Value",e.defineColumnCaption="Caption",e.defineColumnType="Type",e.defineColumnFormatting="Formatting",e.defineColumnConfiguration="Configuration",e.defineColumnDefaultValue="Default",e.defineColumnOthers="Others",e.defineColumnFormula="Formula",e.defineColumnNone="None",e.defineColumnAll="All",e.defineColumnNoResults="No Results",e.defineColumnRequired="It's required",e.defineColumnExisted="It's existed",e.columnTypeNumber="Number",e.columnTypeText="Text",e.columnTypeFormula="Formula",e.columnTypeCheckbox="Checkbox",e.columnTypeDate="Date",e.columnTypeCurrency="Currency",e.columnTypePercent="Percent",e.columnTypePhone="Phone",e.columnTypeEmail="Email",e.columnTypeURL="URL",e.columnTypeLookup="Lookup",e.columnTypeCreatedTime="CreatedTime",e.columnTypeModifiedTime="ModifiedTime",e.columnTypeAttachment="Attachment",e.columnTypeSelect="Select",e.columnTypeBarcode="Barcode",e.columnTypeNumberFormattingSample="Sample",e.columnTypeNumberFormattingDecimalPlaces="Decimal places",e.columnTypeNumberFormattingThousandSeparator="Use 1000 Separator(,)",e.columnTypeNumberFormattingNegativeNumbers="Negative numbers",e.columnTypeNumberFormattingSymbol="Symbol",e.columnTypeNumberFormatting={negativeNumbers:{"-1234.10":"-1234.10","red:1234.10":"1234.10","(1234.10)":"(1234.10)","red:(1234.10)":"(1234.10)"},numberCategoryFormats:["0","0;[Red]0","0_);(0)","0_);[Red](0)","#,##0","#,##0;[Red]#,##0","#,##0_);(#,##0)","#,##0_);[Red](#,##0)"],japanEmperorReignDateFormat:["[$-411]ge.m.d;@",'[$-411]ggge"\u5e74"m"\u6708"d"\u65e5";@'],japanEmperorReignFirstYearDateFormat:["[$-411]ge.m.d;@",'[$-ja-JP-x-gannen]ggge"\u5e74"m"\u6708"d"\u65e5";@'],accountingSymbol:[["None","",""],["$","$","en-US"],["\xa5(Chinese)","\xa5","zh-cn"],["\xa5(Japanese)","\xa5","ja-jp"],["\u20a9(Korean)","\u20a9","ko-kr"]],percentageFormats:["0%"],currencyFormatWithoutSymbol:["#,##0","#,##0;[Red]#,##0","#,##0_);(#,##0)","#,##0_);[Red](#,##0)"],commonFormats:{Number:{format:"0.00",label:"Number"},Currency:{format:"[$$-409]#,##0.00",label:"Currency"},Accounting:{format:'_("$"* #,##0.00_);_("$"* (#,##0.00);_("$"* "-"??_);_(@_)',label:"Accounting"},ShortDate:{format:"m/d/yyyy",label:"Short Date"},LongDate:{format:"[$-409]dddd, mmmm dd, yyyy",label:"Long Date"},Time:{format:"[$-409]h:mm:ss AM/PM",label:"Time"},Percentage:{format:"0.00%",label:"Percentage"},Fraction:{format:"# ?/?",label:"Fraction"},Scientific:{format:"0.00E+00",label:"Scientific"},Text:{format:"@",label:"Text"},Comma:{format:'_(* #,##0.00_);_(* (#,##0.00);_(* "-"??_);_(@_)',label:"Comma"}}},e.columnTypeLookupTables="Select lookup table",e.columnTypeLookupFields="The field to look up",e.columnTypeLookupIndexes="The record number",e.columnTypeFormattingCategory="Category",e.columnTypeMask={pattern:"Pattern",placeholder:"Placeholder",excludeLiteral:"Exclude Literal",excludePlaceholder:"Exclude Placeholder"},e.columnTypeAllEditableFields="All Editable Fields",e.columnTypeDateTimePicker="DateTime Picker",e.columnTypeDateStartDay="StartDay",e.columnTypeDateMonday="Monday",e.columnTypeDateTuesday="Tuesday",e.columnTypeDateWednesday="Wednesday",e.columnTypeDateThursday="Thursday",e.columnTypeDateFriday="Friday",e.columnTypeDateSaturday="Saturday",e.columnTypeDateSunday="Sunday",e.columnTypeDateCalendarPage="CalendarPage",e.columnTypeDateDay="Day",e.columnTypeDateYear="Year",e.columnTypeDateMonth="Month",e.columnTypeDateShowTime="ShowTime",e.columnTypeDateShowDateRange="ShowDateRange",e.columnTypeDateShowBuiltInDateRange="ShowBuiltInDateRange",e.columnTypeDateType="Type",e.columnTypeDateLocale="locale (location)",e.columnTypeCalendar="Calendar type",e.columnTypeShowEraFirstYear="Use Gannen to display 1st year",e.columnTypeCalendarType={western:"Western",JER:"Japanese Emperor Reign"},e.columnTypeAttachmentMarginGroup="Margin",e.columnTypeAttachmentLeft="Left",e.columnTypeAttachmentTop="Top",e.columnTypeAttachmentRight="Right",e.columnTypeAttachmentBottom="Bottom",e.columnTypeAttachmentMaxSize="Size Limit",e.columnTypeAttachmentAccept="File Type",e.columnTypeAttachmentAcceptValueTypes={txt:"txt",all:"all",pdf:"pdf",image:"jpg,png,gif",excel:"docx,xlsx,pptx"},e.columnTypeAttachmentIsPreviewEnabled="Preview",e.columnTypeAttachmentIsClearEnabled="Clear",e.columnTypeAttachmentIsDownloadEnabled="Download",e.columnTypeAttachmentSizeUnit="KB",e.columnTypeCheckboxTitle="CheckBox CellType",e.columnTypeCheckboxTextGroup="Text",e.columnTypeCheckboxTrue="True",e.columnTypeCheckboxIndeterminate="Indeterminate",e.columnTypeCheckboxFalse="False",e.columnTypeCheckboxAlign="Align",e.columnTypeCheckboxOther="Other",e.columnTypeCheckboxCaption="Caption",e.columnTypeCheckboxIsThreeState="IsThreeState",e.columnTypeCheckboxBoxSize="Box Size",e.columnTypeCheckboxAuto="Auto",e.columnTypeCheckboxTextAlign={top:"Top",bottom:"Bottom",left:"Left",right:"Right"},e.columnTypeBarcodeLabel={showLabel:"Show Label",barcodeType:"Barcode Type",color:"Color",errorCorrectionLevel:"Error Correction Level",backgroundColor:"Background Color",version:"Version",model:"Model",mask:"Mask",connection:"Connection",charCode:"CharCode",connectionNo:"Connection No",charset:"Charset",quietZoneLeft:"Quiet Zone Left",quietZoneRight:"Quiet Zone Right",quietZoneTop:"Quiet Zone Top",quietZoneBottom:"Quiet Zone Bottom",labelPosition:"Label Position",addOn:"AddOn",addOnLabelPosition:"AddOn Label Position",fontFamily:"Font Family",fontStyle:"Font Style",fontWeight:"Font Weight",fontTextDecoration:"Font TextDecoration",fontTextAlign:"Font TextAlign",fontSize:"Font Size",fileIdentifier:"File Identifier",structureNumber:"Structure Number",structureAppend:"Structure Append",ecc00_140Symbol:"Ecc000_140 Symbol Size",ecc200EncodingMode:"Ecc200 Endcoding Mode",ecc200SymbolSize:"Ecc200 Symbol Size",eccMode:"Ecc Mode",compact:"Compact",columns:"Columns",rows:"Rows",groupNo:"GroupNo",grouping:"Grouping",codeSet:"Code Set",fullASCII:"Full ASCII",checkDigit:"Check Digit",nwRatio:"Wide And Narrow Bar Ratio",labelWithStartAndStopCharacter:"Label With Start And Stop Character"},e.columnTypeComboBoxEditorValueTypes="EditorValueType",e.columnTypeComboBoxItems="Items",e.columnTypeComboBoxItemProperties="ItemProperties",e.columnTypeComboBoxText="Text",e.columnTypeComboBoxValue="Value",e.columnTypeComboBoxAdd="Add",e.columnTypeComboBoxRemove="Remove",e.columnTypeComboBoxEditorValueType={text:"Text",index:"Index",value:"Value"},e.columnTypeComboBoxEditable="Editable",e.columnTypeComboBoxItemHeight="Items Height",e.columnTypeUrlLabel={linkColor:"Link Color",visitedLinkColor:"Visited Link Color"}},"./dist/plugins/tableSheet/tablesheet-command-register.js":function(t,e,n){var a,e,l,i,n,o;function f(t){return"string"==typeof t}function u(t){return t.reduce(function(t,e){return t.push(e),o(e.subActionOptions)?t.concat(e.subActionOptions):t},[])}function d(t){return f(t)?t.toUpperCase().charCodeAt(0):t}function r(t){return"ROWACTION_".concat(t)}function h(u){var t=r(u);return l.Commands[t]={canUndo:!1,execute:function(t,e){var n=t.commandManager(),t=t.Ofe(e.sheetName),i=t.Mf,o=i.getActiveRowIndex(),i=i.getDataItem(o);return n.execute(a(a({},e),{cmd:u,index:o,item:i,tableSheet:t})),!0}},t}a=this&&this.__assign||function(){return(a=Object.assign||function(t){for(var e,n,i,o,n=1,i=arguments.length;n<i;n++)for(o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},Object.defineProperty(e,"__esModule",{value:!0}),e=n("Common"),l=n("Core"),i=n("./dist/plugins/tableSheet/tablesheet-command.js"),n=e.Common.lt,o=n.Nh,l.Commands.uri=function(t){var e=l.mt.Qf(),n=!e,e=e;t.register(i.SAVE_ALL,l.Commands[i.SAVE_ALL],"S".charCodeAt(0),n,!0,!1,e),t.register(i.START_EDIT,l.Commands[i.START_EDIT],113,!1,!1,!1,!1),t.register(i.EXPAND_GROUP_ITEM,l.Commands[i.EXPAND_GROUP_ITEM]),t.register(i.EXPAND_GROUP,l.Commands[i.EXPAND_GROUP]),t.register(i.REMOVE_COLUMN_TO_TABLE,l.Commands[i.REMOVE_COLUMN_TO_TABLE]),t.register(i.MODIFY_COLUMN_TO_TABLE,l.Commands[i.MODIFY_COLUMN_TO_TABLE]),t.register(i.DEFINE_COLUMN_TO_TABLE,l.Commands[i.DEFINE_COLUMN_TO_TABLE]),t.register(i.VIEW_REMOVE_COLUMN_INFO,l.Commands[i.VIEW_REMOVE_COLUMN_INFO]),t.register(i.VIEW_UPDATE_COLUMN_INFO,l.Commands[i.VIEW_UPDATE_COLUMN_INFO]),t.register(i.VIEW_Add_COLUMN_INFO,l.Commands[i.VIEW_Add_COLUMN_INFO]),t.register(i.VIEW_MOVE_COLUMN,l.Commands[i.VIEW_MOVE_COLUMN]),t.register(i.GROUP_OPTIONS,l.Commands[i.GROUP_OPTIONS]),t.register(i.RESET_NEW_VIEW,l.Commands[i.RESET_NEW_VIEW]),t.register(i.REMOVE_CROSS_COLUMN,l.Commands[i.REMOVE_CROSS_COLUMN])},l.Commands.iMi=function(t,e){var s=t;u(e).forEach(function(t){var e,t,t,n,i,o,u,t,a,r,c,n,e=t.command,t=t.shortcutKey,t=void 0===t?{}:t,n=t.key,i=t.ctrl,o=t.shift,u=t.alt,t=t.meta;f(e)&&(a=h(e),r=s.getCommand(a),c=s.getCommand(e),n=d(n),c?f(c.shortcutKey)&&s.setShortcutKey(e,null,!1,!1,!1,!1):s.register(e,l.Commands[e]),r?r.shortcutKey!==s.getShortcutKey(n,i,o,u,t)&&s.setShortcutKey(a,n,i,o,u,t):s.register(a,l.Commands[a],n,i,o,u,t))})}},"./dist/plugins/tableSheet/tablesheet-command.js":function(t,e,n){var i,o,u,a,r;Object.defineProperty(e,"__esModule",{value:!0}),e.REMOVE_CROSS_COLUMN=e.RESET_NEW_VIEW=e.DEFINE_COLUMN_TO_TABLE=e.MODIFY_COLUMN_TO_TABLE=e.REMOVE_COLUMN_TO_TABLE=e.VIEW_MOVE_COLUMN=e.VIEW_Add_COLUMN_INFO=e.VIEW_UPDATE_COLUMN_INFO=e.VIEW_REMOVE_COLUMN_INFO=e.GROUP_OPTIONS=e.EXPAND_GROUP=e.EXPAND_GROUP_ITEM=e.RESET_ROW=e.SAVE_ROW=e.REMOVE_ROW=e.PIN_ROW=e.START_EDIT=e.SAVE_ALL=void 0,i=n("Core"),o=n("./dist/plugins/tableSheet/tableSheet-action.js"),u="TableSheet",a=function(t){return u+t},e.SAVE_ALL="SaveAll",e.START_EDIT="StartEdit",e.PIN_ROW="PinRow",e.REMOVE_ROW="RemoveRow",e.SAVE_ROW="SaveRow",e.RESET_ROW="ResetRow",e.EXPAND_GROUP_ITEM=u+"ExpandGroupItemCommand",e.EXPAND_GROUP=u+"ExpandGroupCommand",e.GROUP_OPTIONS=u+"SetGroupOptions",e.VIEW_REMOVE_COLUMN_INFO=u+"ViewRemoveColumnInfo",e.VIEW_UPDATE_COLUMN_INFO=u+"ViewUpdateColumnInfo",e.VIEW_Add_COLUMN_INFO=u+"ViewAddColumnInfo",e.VIEW_MOVE_COLUMN=u+"ViewMoveColumn",e.REMOVE_COLUMN_TO_TABLE="RemoveColumn",e.MODIFY_COLUMN_TO_TABLE="ModifyColumn",e.DEFINE_COLUMN_TO_TABLE="DefineColumn",e.RESET_NEW_VIEW=u+"ResetNewView",e.REMOVE_CROSS_COLUMN=u+"CrossColumnOptions",r=i.Commands.zA,i.Commands[e.SAVE_ALL]={canUndo:!1,execute:function(t,e,n){var i,t,o,u,a,i=t.Ofe(e.sheetName),t=i.id();for(i.suspendPaint(),o=0,u=t;o<u.length;o++)a=u[o],i.saveRow(a);return i.resumePaint(),!0}},i.Commands[e.START_EDIT]={canUndo:!1,execute:function(t,e){var t=t.Ofe(e.sheetName);return!t.isEditing()&&(t.Mf.startEdit(),!0)}},i.Commands[e.SAVE_ROW]={canUndo:!1,execute:function(t,e){var n=e.tableSheet,e=e.index;return n.Mf.ki(i.Events.RowOperation,{sheet:n,sheetName:n.name(),actionType:1,row:e}),n.saveRow(e),!0}},i.Commands[e.RESET_ROW]={canUndo:!0,execute:function(t,e,n){return e.sheetName=e.tableSheet.name(),r(t,o.ResetRowAction,e,n)}},i.Commands[e.EXPAND_GROUP_ITEM]={canUndo:!0,execute:function(t,e,n){return r(t,o.ExpandGroupItemAction,e,n)}},i.Commands[e.EXPAND_GROUP]={canUndo:!0,execute:function(t,e,n){return r(t,o.ExpandGroupAction,e,n)}},i.Commands[e.PIN_ROW]={canUndo:!0,execute:function(t,e,n){return e.sheetName=e.tableSheet.name(),r(t,o.PinRowAction,e,n)}},i.Commands[e.REMOVE_ROW]={canUndo:!0,execute:function(t,e,n){return r(t,o.RemoveRowAction,e,n)}},i.Commands[e.MODIFY_COLUMN_TO_TABLE]={canUndo:!0,execute:function(t,e,n){return r(t,o.ModifyColumnToTableAction,e,n)}},i.Commands[e.REMOVE_COLUMN_TO_TABLE]={canUndo:!0,execute:function(t,e,n){return r(t,o.RemoveColumnToTableAction,e,n)}},i.Commands[e.DEFINE_COLUMN_TO_TABLE]={canUndo:!0,execute:function(t,e,n){return r(t,o.DefineColumnToTableAction,e,n)}},i.Commands[e.VIEW_UPDATE_COLUMN_INFO]={canUndo:!0,execute:function(t,e,n){return r(t,o.ViewUpdateColumnInfoAction,e,n)}},i.Commands[e.VIEW_REMOVE_COLUMN_INFO]={canUndo:!0,execute:function(t,e,n){return r(t,o.ViewRemoveColumnInfoAction,e,n)}},i.Commands[e.VIEW_Add_COLUMN_INFO]={canUndo:!0,execute:function(t,e,n){return r(t,o.ViewAddColumnInfoAction,e,n)}},i.Commands[e.VIEW_MOVE_COLUMN]={canUndo:!0,execute:function(t,e,n){return r(t,o.ViewMoveColumnAction,e,n)}},i.Commands[e.GROUP_OPTIONS]={canUndo:!0,execute:function(t,e,n){return r(t,o.ViewGroupOptionsAction,e,n)}},i.Commands[e.RESET_NEW_VIEW]={canUndo:!0,execute:function(t,e,n){return r(t,o.TableSheetResertViewAction,e,n)}},i.Commands[e.REMOVE_CROSS_COLUMN]={canUndo:!0,execute:function(t,e,n){return r(t,o.TableSheetRemoveColumnInfoAction,e,n)}}},"./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-attachment-margin.js":function(t,e,n){var i,o,u,a,r,n,c,s;function l(t){var e;this.LEt=t}i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,n,i,o,n=1,i=arguments.length;n<i;n++)for(o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},Object.defineProperty(e,"__esModule",{value:!0}),e.OZe=void 0,o=n("Core"),u=n("./dist/plugins/tableSheet/tableSheet.js"),a=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-utils.js"),r=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-input-number.js"),n=o.mt,c=n.En,l.prototype.create=function(){var t,e,t=this,e;return(t.kZe=(0,o.GC$)(c("div"))).addClass("gc-defined-column-attachment-margins-container"),t.ZX()},l.prototype.ZX=function(){var t,t,t,t,e,n,i,e=this,n=e.kZe,i=e.LEt;return e._marginLeft=new r.EZe({inputId:"attachment-margin-left",minValue:0,label:{text:(0,u.getSR)().columnTypeAttachmentLeft},onChange:function(){e.ZZe()}}),e._marginLeft.create().appendTo(n),e._marginLeft.setValue(null!=(t=i.marginLeft)?t:2),e._marginRight=new r.EZe({inputId:"attachment-margin-right",minValue:0,label:{text:(0,u.getSR)().columnTypeAttachmentRight},onChange:function(){e.ZZe()}}),e._marginRight.create().appendTo(n),e._marginRight.setValue(null!=(t=i.marginRight)?t:2),e._marginTop=new r.EZe({inputId:"attachment-margin-top",minValue:0,label:{text:(0,u.getSR)().columnTypeAttachmentTop},onChange:function(){e.ZZe()}}),e._marginTop.create().appendTo(n),e._marginTop.setValue(null!=(t=i.marginTop)?t:2),e._marginBottom=new r.EZe({inputId:"attachment-margin-bottom",minValue:0,label:{text:(0,u.getSR)().columnTypeAttachmentBottom},onChange:function(){e.ZZe()}}),e._marginBottom.create().appendTo(n),e._marginBottom.setValue(null!=(t=i.marginBottom)?t:2),n},l.prototype.ZZe=function(){var t,t,t,t,e,e=this;this.LEt.onChange({marginLeft:null==(t=e._marginLeft)?void 0:t.value,marginRight:null==(t=e._marginRight)?void 0:t.value,marginTop:null==(t=e._marginTop)?void 0:t.value,marginBottom:null==(t=e._marginBottom)?void 0:t.value})},l.prototype.setOptions=function(t){var e=this;e.LEt=i(i({},e.LEt),t),e.clear(),e.ZX()},l.prototype.clear=function(){var t=this;t.L0(),t.kZe.empty()},l.prototype.dispose=function(){var t=this;t.clear(),t.kZe=a.keyword_null},l.prototype.L0=function(){var t=this;t._marginLeft&&t._marginLeft.dispose(),t._marginLeft=a.keyword_null,t._marginRight&&t._marginRight.dispose(),t._marginRight=a.keyword_null,t._marginTop&&t._marginTop.dispose(),t._marginTop=a.keyword_null,t._marginBottom&&t._marginBottom.dispose(),t._marginBottom=a.keyword_null},e.OZe=l},"./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-attachment.js":function(t,e,n){var i,o,u,a,r,c,s,n,l,f,d,n;function h(t){var e;this.LEt=t}i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,n,i,o,n=1,i=arguments.length;n<i;n++)for(o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},Object.defineProperty(e,"__esModule",{value:!0}),e.UZe=e.AcceptExtensionsValueType=void 0,o=n("Core"),u=n("./dist/plugins/tableSheet/tableSheet.js"),a=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-checkbox.js"),r=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-select.js"),c=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-input-number.js"),s=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-utils.js"),n=o.mt,l=n.En,(n=f=e.AcceptExtensionsValueType||(e.AcceptExtensionsValueType={})).txt=".txt",n.all="",n.pdf=".pdf",n.image=".jpg, .png, .gif",n.excel=".xls, .xlsx, .ppt, .pptx, .doc, .docx",h.prototype.create=function(){var t,e,t=this,e;return(t.BZe=(0,o.GC$)(l("div"))).addClass("gc-defined-column-attachment-container"),t.ZX()},h.prototype.ZX=function(){var t,e,n,t=this,e=t.BZe,n=t.LEt;return t.cb=new r.GZe({inputId:"attachment-file-type",items:[{text:(0,u.getSR)().columnTypeAttachmentAcceptValueTypes.all,value:f.all},{text:(0,u.getSR)().columnTypeAttachmentAcceptValueTypes.txt,value:f.txt},{text:(0,u.getSR)().columnTypeAttachmentAcceptValueTypes.image,value:f.image},{text:(0,u.getSR)().columnTypeAttachmentAcceptValueTypes.pdf,value:f.pdf},{text:(0,u.getSR)().columnTypeAttachmentAcceptValueTypes.excel,value:f.excel}],label:{text:(0,u.getSR)().columnTypeAttachmentAccept},onChange:function(){t.RZe()}}),t.cb.create().appendTo(e),t.cb.setValue(n.fileType||""),t.PZe=new c.EZe({inputId:"attachment-size-limit",minValue:0,label:{text:(0,u.getSR)().columnTypeAttachmentMaxSize},onChange:function(){t.RZe()}}),t.PZe.create().appendTo(e),t.PZe.setValue(n.maxSize||2048),t.QZe=new a.YZe({label:{text:(0,u.getSR)().columnTypeAttachmentIsPreviewEnabled},onChange:function(){t.RZe()}}),t.QZe.create().appendTo(e),t.QZe.setValue(!!n.preview||(0,s.isNullOrUndefined)(n.preview)),t.WZe=new a.YZe({label:{text:(0,u.getSR)().columnTypeAttachmentIsDownloadEnabled},onChange:function(){t.RZe()}}),t.WZe.create().appendTo(e),t.WZe.setValue(!!n.download||(0,s.isNullOrUndefined)(n.download)),t.d5=new a.YZe({label:{text:(0,u.getSR)().columnTypeAttachmentIsClearEnabled},onChange:function(){t.RZe()}}),t.d5.create().appendTo(e),t.d5.setValue(!!n.clear||(0,s.isNullOrUndefined)(n.clear)),e},h.prototype.RZe=function(){var t,t,t,t,t,e,e=this;this.LEt.onChange({fileType:null==(t=e.cb)?void 0:t.value,maxSize:null==(t=e.PZe)?void 0:t.value,preview:null==(t=e.QZe)?void 0:t.value,download:null==(t=e.WZe)?void 0:t.value,clear:null==(t=e.d5)?void 0:t.value})},h.prototype.setOptions=function(t){var e=this;e.LEt=i(i({},e.LEt),t),e.clear(),e.ZX()},h.prototype.clear=function(){var t=this;t.L0(),t.BZe.empty()},h.prototype.dispose=function(){var t=this;t.clear(),t.BZe=s.keyword_null},h.prototype.L0=function(){var t=this;t.cb&&t.cb.dispose(),t.cb=s.keyword_null,t.PZe&&t.PZe.dispose(),t.PZe=s.keyword_null,t.QZe&&t.QZe.dispose(),t.QZe=s.keyword_null,t.WZe&&t.WZe.dispose(),t.WZe=s.keyword_null,t.d5&&t.d5.dispose(),t.d5=s.keyword_null},e.UZe=h},"./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-barcode/tablesheet-define-column-barcode-base-options.js":function(t,e,n){var i,r,u,a,c,s,n,o,l;function f(t){var e=this;e.LEt=t,e.xT=[],e.selectBarcode="data_"+t.option.barcodeType,e.fontOptions=[]}Object.defineProperty(e,"__esModule",{value:!0}),e.HZe=void 0,i=n("Core"),r=n("./dist/plugins/tableSheet/tableSheet.js"),u=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-checkbox.js"),a=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-input.js"),c=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-input-number.js"),s=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-select.js"),n=i.mt,o=n.En,f.prototype.create=function(){var t;return this.ZX()},f.prototype.ZX=function(){},f.prototype.VZe=function(t,e,n,i,o){var u,n,u=this,n=new s.GZe({inputId:"barcode-"+e,defaultValue:u.LEt.option[u.selectBarcode][e],items:n,enable:i,label:{text:(0,r.getSR)().columnTypeBarcodeLabel[e]},onChange:function(t){u.LEt.option[u.selectBarcode][e]=t.value,o&&o(t),u.onChange()}});return n.create().appendTo(t),u.xT.push(n),n},f.prototype.FZe=function(t,e,n,i){var o,n,o=this,n=new a._Ze({inputId:"barcode-"+e,enable:n,defaultValue:o.LEt.option[o.selectBarcode][e],className:"gc-defined-column-barcode-options-input",label:{text:(0,r.getSR)().columnTypeBarcodeLabel[e]},onBlur:function(t){o.LEt.option[o.selectBarcode][e]=t,i&&i(t),o.onChange()}});return n.create().appendTo(t),o.xT.push(n),n},f.prototype.JZe=function(t,e,n,i){var o,n,o=this,n=new u.YZe({defaultValue:o.LEt.option[o.selectBarcode][e],label:{text:(0,r.getSR)().columnTypeBarcodeLabel[e]},enable:n,textDisplay:1,inputId:e,onChange:function(t){o.LEt.option[o.selectBarcode][e]=t,i&&i(t),o.onChange()}});return n.create().appendTo(t),o.xT.push(n),n},f.prototype.XZe=function(t,e,n,i,o,u){var a,n,a=this,n=new c.EZe({defaultValue:a.LEt.option[a.selectBarcode][e],minValue:n,maxValue:i,enable:o,label:{text:(0,r.getSR)().columnTypeBarcodeLabel[e]},inputId:e,onChange:function(t){a.LEt.option[a.selectBarcode][e]=t,u&&u(t),a.onChange()}});return n.create().appendTo(t),a.xT.push(n),n},f.prototype.KZe=function(t){var e,n,e=this,n=(0,i.GC$)(o("div"));return n.addClass("gc-defined-column-empty-div"),n.appendTo(t),e.xT.push(n),n},f.prototype.qZe=function(t){var e,n,i,e=this,n=e.fontOptions,i=e.labelPosition;e.JZe(t,"showLabel",void 0,function(t){t?(n.forEach(function(t){t.isDisable()&&t.resetDisable()}),i.isDisable()&&i.resetDisable()):(n.forEach(function(t){t.isDisable()||t.resetDisable()}),i.isDisable()||i.resetDisable())}),i=e.VZe(t,"labelPosition",[{text:"top",value:"top"},{text:"bottom",value:"bottom"}],!1)},f.prototype.$Ze=function(t){var e,n,e=this,n=e.fontOptions;n.push(e.VZe(t,"fontFamily",[{text:"sans-serif",value:"sans-serif"},{text:"serif",value:"serif"},{text:"monospace",value:"monospace"},{text:"Arial",value:"Arial"},{text:"Verdana",value:"Verdana"},{text:"Times",value:"Times"}],!1)),n.push(e.VZe(t,"fontStyle",[{text:"normal",value:"normal"},{text:"italic",value:"italic"}],!1)),n.push(e.VZe(t,"fontWeight",[{text:"normal",value:"normal"},{text:"bold",value:"bold"}],!1)),n.push(e.VZe(t,"fontTextDecoration",[{text:"none",value:"none"},{text:"underline",value:"underline"},{text:"overline",value:"overline"},{text:"line-through",value:"line-through"}],!1)),n.push(e.VZe(t,"fontTextAlign",[{text:"center",value:"center"},{text:"left",value:"left"},{text:"right",value:"right"},{text:"group",value:"group"}],!1)),n.push(e.VZe(t,"fontSize",[{text:"12",value:12},{text:"13",value:13},{text:"14",value:14},{text:"15",value:15},{text:"16",value:16},{text:"17",value:17},{text:"18",value:18},{text:"19",value:19},{text:"20",value:20},{text:"21",value:21},{text:"22",value:22}],!1)),n.forEach(function(t){t.container.addClass("gc-defined-column-field-item-small-container")})},f.prototype.onChange=function(){var t=this,e=t.LEt.onChange;e&&e(t.LEt.option)},f.prototype.MUe=function(t){for(var e,n,i,e=0,n=t;e<n.length;e++)(i=n[e]).dispose?i.dispose():i.unbind&&i.unbind("click");return[]},f.prototype.dispose=function(){var t=this;t.xT=t.MUe(t.xT)},e.HZe=f},"./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-barcode/tablesheet-define-column-barcode-base.js":function(t,e,n){var i,o,u,a,r,n,c,s;function l(t){var e=this;e.LEt=t,e.xT=[]}Object.defineProperty(e,"__esModule",{value:!0}),e.IUe=void 0,i=n("Core"),o=n("./dist/plugins/tableSheet/tableSheet.js"),u=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-input.js"),a=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-input-number.js"),r=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-select.js"),n=i.mt,c=n.En,l.prototype.create=function(){var t;return this.ZX()},l.prototype.ZX=function(){var e,t,n,n,e=this,t=(0,i.GC$)(c("div"));return t.addClass("gc-defined-column-barcode-base-container"),(n=new r.GZe({inputId:"barcode-type",defaultValue:e.LEt.option.barcodeType,enableSearch:!0,items:[{text:"QRCODE",value:"QRCODE"},{text:"EAN13",value:"EAN13"},{text:"EAN8",value:"EAN8"},{text:"CODABAR",value:"CODABAR"},{text:"CODE39",value:"CODE39"},{text:"CODE93",value:"CODE93"},{text:"CODE128",value:"CODE128"},{text:"GS1_128",value:"GS1_128"},{text:"CODE49",value:"CODE49"},{text:"PDF417",value:"PDF417"},{text:"DATAMATRIX",value:"DATAMATRIX"}],label:{text:(0,o.getSR)().columnTypeBarcodeLabel.barcodeType},onChange:function(t){e.LEt.option.barcodeType=t.value,e.onChange(!0)}})).create().appendTo(t),e.xT.push(n),(n=(0,i.GC$)(c("div"))).addClass("gc-defined-column-barcode-base-style-container"),n.appendTo(t),e.NUe(n,"color",(0,o.getSR)().columnTypeBarcodeLabel.color),e.NUe(n,"backgroundColor",(0,o.getSR)().columnTypeBarcodeLabel.backgroundColor),e.DUe(n,"quietZoneLeft",(0,o.getSR)().columnTypeBarcodeLabel.quietZoneLeft),e.DUe(n,"quietZoneRight",(0,o.getSR)().columnTypeBarcodeLabel.quietZoneRight),e.DUe(n,"quietZoneTop",(0,o.getSR)().columnTypeBarcodeLabel.quietZoneTop),e.DUe(n,"quietZoneBottom",(0,o.getSR)().columnTypeBarcodeLabel.quietZoneBottom),t},l.prototype.NUe=function(t,e,n){var i,n,i=this,n=new u._Ze({inputId:"barcode-"+e,type:"color",defaultValue:i.LEt.option[e],label:{text:n},onChange:function(t){i.LEt.option[e]=t,i.onChange()}});n.create().appendTo(t),i.xT.push(n)},l.prototype.DUe=function(t,e,n){var i,n,i=this,n=new a.EZe({inputId:"barcode-"+e,defaultValue:i.LEt.option[e],label:{text:n},allowMinNull:!0,maxValue:1e3,onChange:function(t){i.LEt.option[e]=t,i.onChange()}});n.create().appendTo(t),i.xT.push(n)},l.prototype.onChange=function(t){var e=this,n=e.LEt.onChange;n&&n(e.LEt.option,t)},l.prototype.MUe=function(t){for(var e,n,i,e=0,n=t;e<n.length;e++)(i=n[e]).dispose?i.dispose():i.unbind&&i.unbind("click");return[]},l.prototype.dispose=function(){var t=this;t.xT=t.MUe(t.xT)},e.IUe=l},"./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-barcode/tablesheet-define-column-barcode-codabar.js":function(t,e,n){var i,o,n,u,a,r,c,s;function l(){return null!==s&&s.apply(this,arguments)||this}i=this&&this.__extends||(c=function(t,e){return(c=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}c(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),Object.defineProperty(e,"__esModule",{value:!0}),e.jUe=void 0,o=n("Core"),n=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-barcode/tablesheet-define-column-barcode-base-options.js"),u=o.mt,a=u.En,s=n.HZe,i(l,s),l.prototype.ZX=function(){var t,e,t=this,e=(0,o.GC$)(a("div"));return e.addClass("gc-defined-column-barcode-options-container"),t.qZe(e),t.JZe(e,"checkDigit"),t.VZe(e,"nwRatio",[{text:"3",value:"3"},{text:"2",value:"2"}]),t.$Ze(e),e},e.jUe=l},"./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-barcode/tablesheet-define-column-barcode-code128.js":function(t,e,n){var i,o,n,u,a,r,c,s;function l(){return null!==s&&s.apply(this,arguments)||this}i=this&&this.__extends||(c=function(t,e){return(c=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}c(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),Object.defineProperty(e,"__esModule",{value:!0}),e.CUe=void 0,o=n("Core"),n=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-barcode/tablesheet-define-column-barcode-base-options.js"),u=o.mt,a=u.En,s=n.HZe,i(l,s),l.prototype.ZX=function(){var t,e,t=this,e=(0,o.GC$)(a("div"));return e.addClass("gc-defined-column-barcode-options-container"),t.qZe(e),t.VZe(e,"codeSet",[{text:"auto",value:"auto"},{text:"A",value:"A"},{text:"B",value:"B"},{text:"C",value:"C"}]),t.KZe(e),t.$Ze(e),e},e.CUe=l},"./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-barcode/tablesheet-define-column-barcode-code39.js":function(t,e,n){var i,o,n,u,a,r,c,s;function l(){return null!==s&&s.apply(this,arguments)||this}i=this&&this.__extends||(c=function(t,e){return(c=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}c(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),Object.defineProperty(e,"__esModule",{value:!0}),e.wUe=void 0,o=n("Core"),n=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-barcode/tablesheet-define-column-barcode-base-options.js"),u=o.mt,a=u.En,s=n.HZe,i(l,s),l.prototype.ZX=function(){var t,e,t=this,e=(0,o.GC$)(a("div"));return e.addClass("gc-defined-column-barcode-options-container"),t.qZe(e),t.JZe(e,"labelWithStartAndStopCharacter"),t.JZe(e,"checkDigit"),t.VZe(e,"nwRatio",[{text:"3",value:"3"},{text:"2",value:"2"}]),t.JZe(e,"fullASCII"),t.$Ze(e),e},e.wUe=l},"./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-barcode/tablesheet-define-column-barcode-code49.js":function(t,e,n){var i,o,n,u,a,r,c,s;function l(){return null!==s&&s.apply(this,arguments)||this}i=this&&this.__extends||(c=function(t,e){return(c=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}c(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),Object.defineProperty(e,"__esModule",{value:!0}),e.yUe=void 0,o=n("Core"),n=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-barcode/tablesheet-define-column-barcode-base-options.js"),u=o.mt,a=u.En,s=n.HZe,i(l,s),l.prototype.ZX=function(){var t,e,t=this,e=(0,o.GC$)(a("div"));return e.addClass("gc-defined-column-barcode-options-container"),t.qZe(e),t.JZe(e,"grouping"),t.FZe(e,"groupNo"),t.$Ze(e),e},e.yUe=l},"./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-barcode/tablesheet-define-column-barcode-code93.js":function(t,e,n){var i,o,n,u,a,r,c,s;function l(){return null!==s&&s.apply(this,arguments)||this}i=this&&this.__extends||(c=function(t,e){return(c=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}c(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),Object.defineProperty(e,"__esModule",{value:!0}),e.xUe=void 0,o=n("Core"),n=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-barcode/tablesheet-define-column-barcode-base-options.js"),u=o.mt,a=u.En,s=n.HZe,i(l,s),l.prototype.ZX=function(){var t,e,t=this,e=(0,o.GC$)(a("div"));return e.addClass("gc-defined-column-barcode-options-container"),t.qZe(e),t.JZe(e,"checkDigit"),t.JZe(e,"fullASCII"),t.$Ze(e),e},e.xUe=l},"./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-barcode/tablesheet-define-column-barcode-datamatrix.js":function(t,e,n){var i,o,u,a,n,r,c,s,l;function f(){return null!==l&&l.apply(this,arguments)||this}i=this&&this.__extends||(s=function(t,e){return(s=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}s(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),Object.defineProperty(e,"__esModule",{value:!0}),e.AUe=void 0,o=n("Core"),u=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-barcode/tablesheet-define-column-barcode-base-options.js"),a=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-barcode/tablesheet-define-column-barcode-utils.js"),n=o.mt,r=n.En,l=u.HZe,i(f,l),f.prototype.ZX=function(){var t,e,n,i,t=this,e=(0,o.GC$)(r("div"));return e.addClass("gc-defined-column-barcode-options-container"),n=[],t.VZe(e,"eccMode",[{text:"ECC000",value:"ECC000"},{text:"ECC050",value:"ECC050"},{text:"ECC080",value:"ECC080"},{text:"ECC100",value:"ECC100"},{text:"ECC140",value:"ECC140"},{text:"ECC200",value:"ECC200"}],void 0,function(t){var t=t.value;"ECC140"===t?(i.isDisable()&&i.resetDisable(),n.forEach(function(t){t.isDisable()||t.resetDisable()})):(n.forEach("ECC200"===t?function(t){t.isDisable()&&t.resetDisable()}:function(t){t.isDisable()||t.resetDisable()}),i.isDisable()||i.resetDisable())}),n.push(t.JZe(e,"structureAppend",!1)),n.push(t.VZe(e,"ecc200SymbolSize",[{text:"squareAuto",value:"squareAuto"},{text:"rectangularAuto",value:"rectangularAuto"},{text:"square10",value:"square10"},{text:"square12",value:"square12"},{text:"square14",value:"square14"},{text:"square16",value:"square16"},{text:"square18square20",value:"square18square20"},{text:"square22",value:"square22"},{text:"square24",value:"square24"},{text:"square26",value:"square26"},{text:"square32",value:"square32"},{text:"square36",value:"square36"},{text:"square40",value:"square40"},{text:"square44",value:"square44"},{text:"square48",value:"square48"},{text:"square52",value:"square52"},{text:"square64",value:"square64"},{text:"square72",value:"square72"},{text:"square80",value:"square80"},{text:"square88",value:"square88"},{text:"square96",value:"square96"},{text:"square104",value:"square104"},{text:"square120",value:"square120"},{text:"square132",value:"square132"},{text:"square144",value:"square144"},{text:"rectangular8x18",value:"rectangular8x18"},{text:"rectangular8x32",value:"rectangular8x32"},{text:"rectangular12x26",value:"rectangular12x26"},{text:"rectangular12x36",value:"rectangular12x36"},{text:"rectangular16x36",value:"rectangular16x36"},{text:"rectangular16x48",value:"rectangular16x48"}],!1)),n.push(t.VZe(e,"structureNumber",(0,a.getItems)(15,!1,!0),!1)),n.push(t.VZe(e,"ecc200EncodingMode",[{text:"auto",value:"auto"},{text:"ASCII",value:"ASCII"},{text:"C40",value:"C40"},{text:"Text",value:"Text"},{text:"X12",value:"X12"},{text:"EDIFACT",value:"EDIFACT"},{text:"Base256",value:"Base256"}],!1)),n.push(t.XZe(e,"fileIdentifier",0,254,!1)),i=t.VZe(e,"ecc00_140Symbol",[{text:"auto",value:"auto"},{text:"square9",value:"square9"},{text:"square11",value:"square11"},{text:"square13",value:"square13"},{text:"square15",value:"square15"},{text:"square17",value:"square17"},{text:"square19",value:"square19"},{text:"square21",value:"square21"},{text:"square23",value:"square23"},{text:"square25",value:"square25"},{text:"square27",value:"square27"},{text:"square29",value:"square29"},{text:"square31",value:"square31"},{text:"square33",value:"square33"},{text:"square35",value:"square35"},{text:"square37",value:"square37"},{text:"square39",value:"square39"},{text:"square41",value:"square41"},{text:"square43",value:"square43"},{text:"square45",value:"square45"},{text:"square47",value:"square47"},{text:"square49",value:"square49"}],!1),e},e.AUe=f},"./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-barcode/tablesheet-define-column-barcode-ean13.js":function(t,e,n){var i,o,n,u,a,r,c,s;function l(){return null!==s&&s.apply(this,arguments)||this}i=this&&this.__extends||(c=function(t,e){return(c=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}c(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),Object.defineProperty(e,"__esModule",{value:!0}),e.TUe=void 0,o=n("Core"),n=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-barcode/tablesheet-define-column-barcode-base-options.js"),u=o.mt,a=u.En,s=n.HZe,i(l,s),l.prototype.ZX=function(){var t,e,t=this,e=(0,o.GC$)(a("div"));return e.addClass("gc-defined-column-barcode-options-container"),t.qZe(e),t.FZe(e,"addOn"),t.VZe(e,"addOnLabelPosition",[{text:"top",value:"top"},{text:"bottom",value:"bottom"}]),t.$Ze(e),e},e.TUe=l},"./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-barcode/tablesheet-define-column-barcode-ean8.js":function(t,e,n){var i,o,n,u,a,r,c,s;function l(){return null!==s&&s.apply(this,arguments)||this}i=this&&this.__extends||(c=function(t,e){return(c=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}c(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),Object.defineProperty(e,"__esModule",{value:!0}),e.SUe=void 0,o=n("Core"),n=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-barcode/tablesheet-define-column-barcode-base-options.js"),u=o.mt,a=u.En,s=n.HZe,i(l,s),l.prototype.ZX=function(){var t,e,t=this,e=(0,o.GC$)(a("div"));return e.addClass("gc-defined-column-barcode-options-container"),t.qZe(e),t.$Ze(e),e},e.SUe=l},"./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-barcode/tablesheet-define-column-barcode-gs1_128.js":function(t,e,n){var i,o,n,u,a,r,c,s;function l(){return null!==s&&s.apply(this,arguments)||this}i=this&&this.__extends||(c=function(t,e){return(c=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}c(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),Object.defineProperty(e,"__esModule",{value:!0}),e.zUe=void 0,o=n("Core"),n=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-barcode/tablesheet-define-column-barcode-base-options.js"),u=o.mt,a=u.En,s=n.HZe,i(l,s),l.prototype.ZX=function(){var t,e,t=this,e=(0,o.GC$)(a("div"));return e.addClass("gc-defined-column-barcode-options-container"),t.qZe(e),t.$Ze(e),e},e.zUe=l},"./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-barcode/tablesheet-define-column-barcode-options-container.js":function(t,e,n){var i,o,u,a,r,c,s,l,f,d,h,g;function b(t){var e=this;e.LEt=t,e.xT=[]}Object.defineProperty(e,"__esModule",{value:!0}),e.LUe=void 0,i=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-barcode/tablesheet-define-column-barcode-codabar.js"),o=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-barcode/tablesheet-define-column-barcode-ean13.js"),u=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-barcode/tablesheet-define-column-barcode-ean8.js"),a=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-barcode/tablesheet-define-column-barcode-code128.js"),r=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-barcode/tablesheet-define-column-barcode-code39.js"),c=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-barcode/tablesheet-define-column-barcode-code49.js"),s=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-barcode/tablesheet-define-column-barcode-code93.js"),l=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-barcode/tablesheet-define-column-barcode-datamatrix.js"),f=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-barcode/tablesheet-define-column-barcode-gs1_128.js"),d=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-barcode/tablesheet-define-column-barcode-pdf417.js"),h=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-barcode/tablesheet-define-column-barcode-qrcode.js"),b.prototype.create=function(){var t;this.ZX()},b.prototype.ZX=function(){var t;this.OUe()},b.prototype.kUe=function(t){var e,n,i,t,e=this,n=e.LEt.option,i=e.LEt.panel,t=new t({option:n,onChange:function(t){e.FSi(t)}});t.create().appendTo(i),e.xT.push(t)},b.prototype.OUe=function(){var t=this,e,n;switch(t.LEt.option.barcodeType){case"QRCODE":t.kUe(h.EUe);break;case"EAN13":t.kUe(o.TUe);break;case"EAN8":t.kUe(u.SUe);break;case"CODABAR":t.kUe(i.jUe);break;case"CODE39":t.kUe(r.wUe);break;case"CODE93":t.kUe(s.xUe);break;case"CODE128":t.kUe(a.CUe);break;case"GS1_128":t.kUe(f.zUe);break;case"CODE49":t.kUe(c.yUe);break;case"PDF417":t.kUe(d.ZUe);break;case"DATAMATRIX":t.kUe(l.AUe)}},b.prototype.FSi=function(t){var e,n=this.LEt.onChange;n&&n(t)},b.prototype.reset=function(){var t=this;t.d5(),t.ZX()},b.prototype.d5=function(){var t=this;t.LEt.panel.empty(),t.xT=t.MUe(t.xT)},b.prototype.MUe=function(t){for(var e,n,i,e=0,n=t;e<n.length;e++)(i=n[e]).dispose?i.dispose():i.unbind&&i.unbind("click");return[]},b.prototype.dispose=function(){var t=this;t.xT=t.MUe(t.xT)},e.LUe=b},"./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-barcode/tablesheet-define-column-barcode-pdf417.js":function(t,e,n){var i,o,u,a,n,r,c,s,l;function f(){return null!==l&&l.apply(this,arguments)||this}i=this&&this.__extends||(s=function(t,e){return(s=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}s(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),Object.defineProperty(e,"__esModule",{value:!0}),e.ZUe=void 0,o=n("Core"),u=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-barcode/tablesheet-define-column-barcode-base-options.js"),a=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-barcode/tablesheet-define-column-barcode-utils.js"),n=o.mt,r=n.En,l=u.HZe,i(f,l),f.prototype.ZX=function(){var t,e,t=this,e=(0,o.GC$)(r("div"));return e.addClass("gc-defined-column-barcode-options-container"),t.VZe(e,"errorCorrectionLevel",(0,a.getItems)(8,!0,!0)),t.VZe(e,"columns",(0,a.getItems)(30,!0)),t.VZe(e,"rows",(0,a.getItems)(90,!0)),t.JZe(e,"compact"),e},e.ZUe=f},"./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-barcode/tablesheet-define-column-barcode-qrcode.js":function(t,e,n){var i,o,n,u,a,r,c,s;function l(){return null!==s&&s.apply(this,arguments)||this}i=this&&this.__extends||(c=function(t,e){return(c=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}c(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),Object.defineProperty(e,"__esModule",{value:!0}),e.EUe=void 0,o=n("Core"),n=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-barcode/tablesheet-define-column-barcode-base-options.js"),u=o.mt,a=u.En,s=n.HZe,i(l,s),l.prototype.ZX=function(){var t,e,t=this,e=(0,o.GC$)(a("div"));return e.addClass("gc-defined-column-barcode-options-container"),t.VZe(e,"errorCorrectionLevel",[{text:"L",value:"L"},{text:"M",value:"M"},{text:"Q",value:"Q"},{text:"H",value:"H"}]),t.JZe(e,"connection"),t.VZe(e,"model",[{text:"2",value:2},{text:"1",value:1}]),t.VZe(e,"connectionNo",[{text:"0",value:0},{text:"1",value:1},{text:"2",value:2},{text:"3",value:3},{text:"4",value:4},{text:"5",value:5},{text:"6",value:6},{text:"7",value:7},{text:"8",value:8},{text:"9",value:9},{text:"10",value:10},{text:"11",value:11},{text:"12",value:12},{text:"13",value:13},{text:"14",value:14},{text:"15",value:15}]),t.VZe(e,"version",[{text:"auto",value:"auto"},{text:"1",value:"1"},{text:"2",value:"2"},{text:"3",value:"3"},{text:"4",value:"4"},{text:"5",value:"5"},{text:"6",value:"6"},{text:"7",value:"7"},{text:"8",value:"8"},{text:"9",value:"9"},{text:"10",value:"10"},{text:"11",value:"11"},{text:"12",value:"12"},{text:"13",value:"13"},{text:"14",value:"14"}]),t.FZe(e,"charCode"),t.VZe(e,"mask",[{text:"auto",value:"auto"},{text:"1",value:"1"},{text:"2",value:"2"},{text:"3",value:"3"},{text:"4",value:"4"},{text:"5",value:"5"},{text:"6",value:"6"},{text:"7",value:"7"}]),t.VZe(e,"charset",[{text:"UTF-8",value:"UTF-8"},{text:"Shift_JIS",value:"Shift_JIS"}]),e},e.EUe=l},"./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-barcode/tablesheet-define-column-barcode-utils.js":function(t,v,e){var u,M,n,I,e;function i(t){return{barcodeType:I.QRCODE,value:o(t),backgroundColor:"#FFFFFF",color:"#000000",data_CODABAR:v.BarCode_DefaultValue_CODABAR,data_CODE39:v.BarCode_DefaultValue_CODE39,data_CODE49:v.BarCode_DefaultValue_CODE49,data_CODE93:v.BarCode_DefaultValue_CODE93,data_CODE128:v.BarCode_DefaultValue_CODE128,data_DATAMATRIX:v.BarCode_DefaultValue_DATAMATRIX,data_EAN8:v.BarCode_DefaultValue_EAN8,data_EAN13:v.BarCode_DefaultValue_EAN13,data_GS1_128:v.BarCode_DefaultValue_GS1_128,data_QRCODE:v.BarCode_DefaultValue_QRCODE,data_PDF417:v.BarCode_DefaultValue_PDF417}}function o(t){return t?-1<t.indexOf(" ")?"[@["+t+"]]":"[@"+t+"]":n.keyword_null}function a(t,e){var n,n,i,n=null==(n=t.NMi)?void 0:n.getDataView();if(n)try{return n.Ywt(e)}catch(t){}try{return(i=t.getCalcService()).parse(null,e,0,0)}catch(t){}}function m(t,e){var n,i,o,n=t.parent;try{if((i=a(t,e))&&i.type===M.ExpressionType.function&&(o=i.functionName)&&n.getSparklineEx(o))return i}catch(t){}return null}function r(t,e){var t,n,i,o,u,a,e,r,c,s,l,f,d,h,g,b,b,t=m(t,e);if(t&&t.arguments&&(n={barcodeType:I.QRCODE,value:"",backgroundColor:"#FFFFFF",color:"#000000",data_CODABAR:v.BarCode_DefaultValue_CODABAR,data_CODE39:v.BarCode_DefaultValue_CODE39,data_CODE49:v.BarCode_DefaultValue_CODE49,data_CODE93:v.BarCode_DefaultValue_CODE93,data_CODE128:v.BarCode_DefaultValue_CODE128,data_DATAMATRIX:v.BarCode_DefaultValue_DATAMATRIX,data_EAN8:v.BarCode_DefaultValue_EAN8,data_EAN13:v.BarCode_DefaultValue_EAN13,data_GS1_128:v.BarCode_DefaultValue_GS1_128,data_QRCODE:v.BarCode_DefaultValue_QRCODE,data_PDF417:v.BarCode_DefaultValue_PDF417},!((o=(i=t.arguments).length)<=0))){for(u=0;u<o;u++)i[u].type===M.ExpressionType.reference&&(a="",i[u]={value:"=",type:"referenceValue"});for(e=t.functionName.substr(3),n.barcodeType=I[e],n.value=i[0]&&i[0].value?i[0].value:"",n.color=i[1]&&i[1].value?i[1].value:n.color,n.backgroundColor=i[2]&&i[2].value?i[2].value:n.backgroundColor,n.quietZoneLeft=i[o-4]&&i[o-4].value?i[o-4].value:"",n.quietZoneRight=i[o-4]&&i[o-3].value?i[o-3].value:"",n.quietZoneTop=i[o-4]&&i[o-2].value?i[o-2].value:"",n.quietZoneBottom=i[o-4]&&i[o-1].value?i[o-1].value:"",r={},c=3,s=v.DefaultBarCodeTypeData[n.barcodeType],l=0,f=Object.keys(s);l<f.length;l++)d=f[l],g=void 0,g=(h=i[c])&&h.type!==M.ExpressionType.missingArgument?h.value:s[d],r[d]=g,c++;switch(n.barcodeType){case I.QRCODE:(b=r).version=""+b.version,b.mask=""+b.mask,n.data_QRCODE=b;break;case I.EAN13:n.data_EAN13=r;break;case I.EAN8:n.data_EAN8=r;break;case I.CODE39:n.data_CODE39=r;break;case I.CODE49:n.data_CODE49=r;break;case I.CODE93:n.data_CODE93=r;break;case I.CODE128:n.data_CODE128=r;break;case I.PDF417:(b=r).errorCorrectionLevel=""+b.errorCorrectionLevel,b.rows=""+b.rows,b.columns=""+b.columns,n.data_PDF417=b;break;case I.DATAMATRIX:n.data_DATAMATRIX=r;break;case I.GS1_128:n.data_GS1_128=r}return n}}function c(t,e){var n,i,o,u,a,r,c,s,l,f,o,n="",i=[],o=e.value||"";try{d(o)?0<(u=[]).length&&i.push(o.substr(1)):i.push(o)}catch(t){i.push('"'+o+'"')}switch(i.push('"'+e.color+'"'),i.push('"'+e.backgroundColor+'"'),a={},e.barcodeType){case I.QRCODE:a=e.data_QRCODE;break;case I.EAN13:a=e.data_EAN13;break;case I.EAN8:a=e.data_EAN8;break;case I.CODE39:a=e.data_CODE39;break;case I.CODE49:a=e.data_CODE49;break;case I.CODE93:a=e.data_CODE93;break;case I.CODE128:a=e.data_CODE128;break;case I.PDF417:a=e.data_PDF417;break;case I.DATAMATRIX:a=e.data_DATAMATRIX;break;case I.GS1_128:a=e.data_GS1_128;break;case I.CODABAR:a=e.data_CODABAR}for(r=!1===a.showLabel,c=0,s=Object.keys(a);c<s.length;c++)l=s[c],!r||"labelPosition"!==l&&"font"!==l.substr(0,4)?(f=String(a[l]),void 0===a[l]&&(f=""),/^[0-9]+.?[0-9]*$/.test(f)||null===f||""===f||"true"===f||"false"===f||-1!==f.indexOf("{")||(f='"'+f+'"'),i.push(f)):i.push("");return i.push(e.quietZoneLeft),i.push(e.quietZoneRight),i.push(e.quietZoneTop),i.push(e.quietZoneBottom),o=i.join(","),n=(n=n+("=BC_"+e.barcodeType.toUpperCase())+"(")+o+")"}function s(t,e,n){var i,o,t,t,i={text:"auto",value:"auto"},o={text:"0",value:"0"},t=Array.from({length:t},function(t,e){return{text:(e+1).toString(),value:(e+1).toString()}}),t=u([],t,!0);return n&&t.unshift(o),e&&t.unshift(i),t}function d(t){return t&&"string"==typeof t&&"="===t.toString().charAt(0)}u=this&&this.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var i=0,o=e.length,u;i<o;i++)!u&&i in e||((u=u||Array.prototype.slice.call(e,0,i))[i]=e[i]);return t.concat(u||Array.prototype.slice.call(e))},Object.defineProperty(v,"__esModule",{value:!0}),v.getItems=v.createBarcodeFormula=v.parseBarCodeOptions=v.getFieldRef=v.getDefaultBarcodeOptions=v.DefaultBarCodeTypeData=v.BarCode_DefaultValue_CODE128=v.BarCode_DefaultValue_CODE93=v.BarCode_DefaultValue_CODE39=v.BarCode_DefaultValue_CODABAR=v.BarCode_DefaultValue_CODE49=v.BarCode_DefaultValue_QRCODE=v.BarCode_DefaultValue_PDF417=v.BarCode_DefaultValue_GS1_128=v.BarCode_DefaultValue_EAN13=v.BarCode_DefaultValue_EAN8=v.BarCode_DefaultValue_DATAMATRIX=v.SANS_SERIF_FONT=v.BarCodeType=void 0,M=e("CalcEngine"),n=e("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-utils.js"),(e=I=v.BarCodeType||(v.BarCodeType={})).QRCODE="QRCODE",e.EAN13="EAN13",e.EAN8="EAN8",e.CODABAR="CODABAR",e.CODE39="CODE39",e.CODE93="CODE93",e.CODE128="CODE128",e.GS1_128="GS1_128",e.CODE49="CODE49",e.PDF417="PDF417",e.DATAMATRIX="DATAMATRIX",v.SANS_SERIF_FONT="sans-serif",v.BarCode_DefaultValue_DATAMATRIX={eccMode:"ECC000",ecc200SymbolSize:"",ecc200EncodingMode:"",ecc00_140Symbol:"",structureAppend:!1,structureNumber:0,fileIdentifier:0},v.BarCode_DefaultValue_EAN8={showLabel:!1,labelPosition:"top",fontFamily:v.SANS_SERIF_FONT,fontStyle:"normal",fontWeight:"normal",fontTextDecoration:"none",fontTextAlign:"center",fontSize:12},v.BarCode_DefaultValue_EAN13={showLabel:!1,labelPosition:"top",addOn:"",addOnLabelPosition:"top",fontFamily:v.SANS_SERIF_FONT,fontStyle:"normal",fontWeight:"normal",fontTextDecoration:"none",fontTextAlign:"center",fontSize:12},v.BarCode_DefaultValue_GS1_128={showLabel:!1,labelPosition:"top",fontFamily:v.SANS_SERIF_FONT,fontStyle:"normal",fontWeight:"normal",fontTextDecoration:"none",fontTextAlign:"center",fontSize:12},v.BarCode_DefaultValue_PDF417={errorCorrectionLevel:"auto",rows:"auto",columns:"auto",compact:!1},v.BarCode_DefaultValue_QRCODE={errorCorrectionLevel:"L",model:2,version:"auto",mask:"auto",connection:!1,connectionNo:0,charCode:"",charset:"UTF-8"},v.BarCode_DefaultValue_CODE49={showLabel:!1,labelPosition:"top",grouping:!1,groupNo:"",fontFamily:v.SANS_SERIF_FONT,fontStyle:"normal",fontWeight:"normal",fontTextDecoration:"none",fontTextAlign:"center",fontSize:12},v.BarCode_DefaultValue_CODABAR={showLabel:!1,labelPosition:"bottom",checkDigit:!1,nwRatio:3,fontFamily:v.SANS_SERIF_FONT,fontStyle:"normal",fontWeight:"normal",fontTextDecoration:"none",fontTextAlign:"center",fontSize:12},v.BarCode_DefaultValue_CODE39={showLabel:!1,labelPosition:"top",labelWithStartAndStopCharacter:!1,checkDigit:!1,nwRatio:3,fullASCII:!1,fontFamily:v.SANS_SERIF_FONT,fontStyle:"normal",fontWeight:"normal",fontTextDecoration:"none",fontTextAlign:"center",fontSize:12},v.BarCode_DefaultValue_CODE93={showLabel:!1,labelPosition:"top",checkDigit:!1,fullASCII:!1,fontFamily:v.SANS_SERIF_FONT,fontStyle:"normal",fontWeight:"normal",fontTextDecoration:"none",fontTextAlign:"center",fontSize:12},v.BarCode_DefaultValue_CODE128={showLabel:!1,labelPosition:"top",codeSet:"auto",fontFamily:v.SANS_SERIF_FONT,fontStyle:"normal",fontWeight:"normal",fontTextDecoration:"none",fontTextAlign:"center",fontSize:12},v.DefaultBarCodeTypeData={QRCODE:v.BarCode_DefaultValue_QRCODE,EAN13:v.BarCode_DefaultValue_EAN13,EAN8:v.BarCode_DefaultValue_EAN8,CODABAR:v.BarCode_DefaultValue_CODABAR,CODE39:v.BarCode_DefaultValue_CODE39,CODE93:v.BarCode_DefaultValue_CODE93,CODE128:v.BarCode_DefaultValue_CODE128,GS1_128:v.BarCode_DefaultValue_GS1_128,CODE49:v.BarCode_DefaultValue_CODE49,PDF417:v.BarCode_DefaultValue_PDF417,DATAMATRIX:v.BarCode_DefaultValue_DATAMATRIX},v.getDefaultBarcodeOptions=i,v.getFieldRef=o,v.parseBarCodeOptions=r,v.createBarcodeFormula=c,v.getItems=s},"./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-checkbox-cell-type-text.js":function(t,e,n){var i,o,u,a,r,c,s,n,l,f,d,n;function h(t){var e;this.LEt=t}i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,n,i,o,n=1,i=arguments.length;n<i;n++)for(o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},Object.defineProperty(e,"__esModule",{value:!0}),e.UUe=e.CheckBoxTextAlign=void 0,o=n("Core"),u=n("./dist/plugins/tableSheet/tableSheet.js"),a=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-checkbox.js"),r=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-select.js"),c=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-input.js"),s=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-utils.js"),n=o.mt,l=n.En,(n=f=e.CheckBoxTextAlign||(e.CheckBoxTextAlign={}))[n.top=0]="top",n[n.bottom=1]="bottom",n[n.left=2]="left",n[n.right=3]="right",h.prototype.create=function(){var t,e,t=this,e;return(t.BUe=(0,o.GC$)(l("div"))).addClass("gc-defined-column-checkbox-text-container"),t.ZX()},h.prototype.ZX=function(){var e,t,n,e=this,t=e.BUe,n=e.LEt;return e._isThreeState=new a.YZe({label:{text:(0,u.getSR)().columnTypeCheckboxIsThreeState},onChange:function(t){var t,t,t,t;t?null!=(t=e.GUe)&&t.isVisible()||null!=(t=e.GUe)&&t.resetVisible():null!=(t=e.GUe)&&t.isVisible()&&null!=(t=e.GUe)&&t.resetVisible(),e.RUe()}}),e._isThreeState.create().appendTo(t),e._isThreeState.setValue(n.isThreeState),e.PUe=new c._Ze({inputId:"checkboxTrue",label:{text:(0,u.getSR)().columnTypeCheckboxTrue},placeholder:"",onChange:function(t){e.RUe()}}),e.PUe.create().appendTo(t),e.PUe.setValue(n.checkboxTrue),e.GUe=new c._Ze({inputId:"checkboxIndeterminate",label:{text:(0,u.getSR)().columnTypeCheckboxIndeterminate},placeholder:"",hide:!n.isThreeState,onChange:function(t){e.RUe()}}),e.GUe.create().appendTo(t),e.GUe.setValue(n.checkboxIndeterminate),e.QUe=new c._Ze({inputId:"checkboxFalse",label:{text:(0,u.getSR)().columnTypeCheckboxFalse},placeholder:"",onChange:function(t){e.RUe()}}),e.QUe.create().appendTo(t),e.QUe.setValue(n.checkboxFalse),e.YUe=new r.GZe({inputId:"checkboxAlign",items:[{text:(0,u.getSR)().columnTypeCheckboxTextAlign.top,value:f.top},{text:(0,u.getSR)().columnTypeCheckboxTextAlign.bottom,value:f.bottom},{text:(0,u.getSR)().columnTypeCheckboxTextAlign.left,value:f.left},{text:(0,u.getSR)().columnTypeCheckboxTextAlign.right,value:f.right}],label:{text:(0,u.getSR)().columnTypeCheckboxAlign},onChange:function(){e.RUe()}}),e.YUe.create().appendTo(t),e.YUe.setValue(n.checkboxAlign||f.right),t},h.prototype.RUe=function(){var t,t,t,t,t,e,e=this;this.LEt.onChange({isThreeState:null==(t=e._isThreeState)?void 0:t.value,checkboxTrue:null==(t=e.PUe)?void 0:t.value,checkboxIndeterminate:null==(t=e.GUe)?void 0:t.value,checkboxFalse:null==(t=e.QUe)?void 0:t.value,checkboxAlign:null==(t=e.YUe)?void 0:t.value})},h.prototype.setOptions=function(t){var e=this;e.LEt=i(i({},e.LEt),t),e.clear(),e.ZX()},h.prototype.clear=function(){var t=this;t.L0(),t.BUe.empty()},h.prototype.dispose=function(){var t=this;t.clear(),t.BUe=s.keyword_null},h.prototype.L0=function(){var t=this;t._isThreeState&&t._isThreeState.dispose(),t._isThreeState=s.keyword_null,t.PUe&&t.PUe.dispose(),t.PUe=s.keyword_null,t.GUe&&t.GUe.dispose(),t.GUe=s.keyword_null,t.QUe&&t.QUe.dispose(),t.QUe=s.keyword_null,t.YUe&&t.YUe.dispose(),t.YUe=s.keyword_null},e.UUe=h},"./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-checkbox-cell-type.js":function(t,e,n){var i,o,u,a,r,c,s,n,l,f;function d(t){var e;this.LEt=t}i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,n,i,o,n=1,i=arguments.length;n<i;n++)for(o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},Object.defineProperty(e,"__esModule",{value:!0}),e.WUe=void 0,o=n("Core"),u=n("./dist/plugins/tableSheet/tableSheet.js"),a=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-checkbox.js"),r=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-input-number.js"),c=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-input.js"),s=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-utils.js"),n=o.mt,l=n.En,d.prototype.create=function(){var t,e,t=this,e;return(t.BUe=(0,o.GC$)(l("div"))).addClass("gc-defined-column-column-type-checkbox-container"),t.ZX()},d.prototype.ZX=function(){var e,t,n,e=this,t=e.BUe,n=e.LEt;return e._caption=new c._Ze({inputId:"placeholder",label:{text:(0,u.getSR)().columnTypeCheckboxCaption},placeholder:"",onChange:function(t){e.HUe()}}),e._caption.create().appendTo(t),e._caption.setValue(n.caption),e._boxSize=new r.EZe({inputId:"checkbox-size-limit",minValue:0,label:{text:(0,u.getSR)().columnTypeCheckboxBoxSize},onChange:function(){e.HUe()}}),e._boxSize.create().appendTo(t),e._boxSize.setValue(n.boxSize||12),e.VUe=new a.YZe({label:{text:(0,u.getSR)().columnTypeCheckboxAuto},onChange:function(t){t?e._boxSize.isDisable()||e._boxSize.resetDisable():e._boxSize.isDisable()&&e._boxSize.resetDisable(),e.HUe()}}),e.VUe.create().appendTo(t),e.VUe.setValue(n.autoBoxSize),t},d.prototype.HUe=function(){var t,t,t,e,e=this;this.LEt.onChange({caption:null==(t=e._caption)?void 0:t.value,boxSize:null==(t=e._boxSize)?void 0:t.value,autoBoxSize:null==(t=e.VUe)?void 0:t.value})},d.prototype.setOptions=function(t){var e=this;e.LEt=i(i({},e.LEt),t),e.clear(),e.ZX()},d.prototype.clear=function(){var t=this;t.L0(),t.BUe.empty()},d.prototype.dispose=function(){var t=this;t.clear(),t.BUe=s.keyword_null},d.prototype.L0=function(){var t=this;t._caption&&t._caption.dispose(),t._caption=s.keyword_null,t._boxSize&&t._boxSize.dispose(),t._boxSize=s.keyword_null,t.VUe&&t.VUe.dispose(),t.VUe=s.keyword_null},e.WUe=d},"./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-checkbox.js":function(t,e,n){var u,a,r,i;function o(t){var e;this.LEt=t}Object.defineProperty(e,"__esModule",{value:!0}),e.YZe=void 0,u=n("Core"),a=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-utils.js"),r=u.mt.En,Object.defineProperty(o.prototype,"value",{get:function(){var t;return null==(t=this.FUe)?void 0:t.val()},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"container",{get:function(){return this._Ue},enumerable:!1,configurable:!0}),o.prototype.create=function(){var t,e,n,i,o,i,t=this,e=t.LEt,n=t._Ue=(0,u.GC$)(r("div"));return n.addClass("gc-defined-column-field-item-container gc-defined-column-checkbox-field-item-container"),e.label&&e.label.text&&e.textDisplay&&((i=(0,u.GC$)(r("div"))).addClass("gc-defined-column-field-label-container"),i.appendTo(n),(o=(0,u.GC$)(r("label"))).addClass("gc-defined-column-field-label-container-label-text"),o.appendTo(i),e.inputId&&o.attr("for","gc-defined-column-checkbox-"+e.inputId),o.text(e.label.text)),(i=t.BUe=(0,u.GC$)(r("div"))).appendTo(n),i.addClass("gc-defined-column-checkbox-container"),t.ZX(),n},o.prototype.ZX=function(){var e,n,t,i,t,o,o,e=this,n=e.LEt,t=e.BUe,i=e.JUe=(0,u.GC$)(r("div"));i.addClass("gc-defined-column-checkbox-item-container"),e.isDisable()&&i.addClass("gc-defined-column-disabled"),e.isVisible()||t.addClass("gc-defined-column-hide"),i.appendTo(t),i.attr("role","checkbox"),i.attr("tabindex","0"),i.attr("aria-label",n.label.text),i.attr("aria-checked","false"),i.attr("aria-disabled",e.isDisable()?"true":"false"),i.attr("aria-hide",e.isVisible()?"false":"true"),(t=(0,u.GC$)(r("div"))).addClass("gc-defined-column-check-container"),t.appendTo(i),o=e.FUe=(0,a.createDCElement)("sjs-checkbox"),n.inputId&&o.attr("id","gc-defined-column-checkbox-"+n.inputId),n.isThreeState&&o.attr("indeterminate",!0),(0,a.isNullOrUndefined)(n.defaultValue)||e.setValue(n.defaultValue,!1),o.bind("input",function(t){e.isDisable()||(e.XUe(t.target.value),n.onChange&&n.onChange(t.target.value,t))}),o.appendTo(t),n.label&&n.label.text&&1!==n.textDisplay&&((o=e.KUe=(0,u.GC$)(r("div"))).addClass("gc-defined-column-label-container"),o.appendTo(i),o.text(n.label.text),n.inputId&&o.attr("for","gc-defined-column-checkbox-"+n.inputId),o.bind("click",function(t){e.isDisable()||e.setValue(e.kV(e.FUe.val()))}))},o.prototype.XUe=function(t){var e=this,n=t;(0,a.isNullOrUndefined)(t)&&(n=!!e.LEt.isThreeState&&"mixed"),e.JUe.attr("aria-checked",n)},o.prototype.kV=function(t){var e;if(this.LEt.isThreeState){if(t)return a.keyword_null;if((0,a.isNullOrUndefined)(t))return!1}return!t},o.prototype.setValue=function(t,e){var n=this;n.FUe.val(t),n.XUe(t),!1!==e&&(0,a.triggerEvent)(n.FUe)},o.prototype.isDisable=function(){return!1===this.LEt.enable},o.prototype.resetDisable=function(){var t=this,e=t.isDisable(),n=t.JUe;(t.LEt.enable=e)?(n.removeClass("gc-defined-column-disabled"),n.attr("aria-disabled","false")):(n.addClass("gc-defined-column-disabled"),n.attr("aria-disabled","true"))},o.prototype.isVisible=function(){return!0!==this.LEt.hide},o.prototype.resetVisible=function(){var t=this,e=t.isVisible(),n=t.BUe;(t.LEt.hide=e)?(n.addClass("gc-defined-column-hide"),n.attr("aria-hide","true")):(n.removeClass("gc-defined-column-hide"),n.attr("aria-hide","false"))},o.prototype.dispose=function(){var t=this;t.FUe.unbind("input"),t.FUe=a.keyword_null,t.KUe&&t.KUe.unbind("click"),t.KUe=a.keyword_null,t.JUe=a.keyword_null,t.BUe=a.keyword_null},e.YZe=o},"./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-combobox-style.js":function(t,e,n){var i,o,u,a,r,c,s,l,n,f,d;function h(t){var e;this.LEt=t}i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,n,i,o,n=1,i=arguments.length;n<i;n++)for(o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},Object.defineProperty(e,"__esModule",{value:!0}),e.qUe=void 0,o=n("Core"),u=n("./dist/plugins/tableSheet/tableSheet.js"),a=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-checkbox.js"),r=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-select.js"),c=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-input-number.js"),s=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-utils.js"),l=n("CellTypes"),n=o.mt,f=n.En,h.prototype.create=function(){var t,e,t=this,e;return(t.$Ue=(0,o.GC$)(f("div"))).addClass("gc-defined-column-combo-box-style-container"),t.ZX()},h.prototype.ZX=function(){var t,e,n,t=this,e=t.$Ue,n=t.LEt;return t._editorValueType=new r.GZe({inputId:"combo-box-editor-value-type",items:[{text:(0,u.getSR)().columnTypeComboBoxEditorValueType.text,value:l.EditorValueType.text},{text:(0,u.getSR)().columnTypeComboBoxEditorValueType.index,value:l.EditorValueType.index},{text:(0,u.getSR)().columnTypeComboBoxEditorValueType.value,value:l.EditorValueType.value}],label:{text:(0,u.getSR)().columnTypeComboBoxEditorValueTypes},onChange:function(){t.eQe()}}),t._editorValueType.create().appendTo(e),t._editorValueType.setValue((0,s.isNullOrUndefined)(n.editorValueType)?l.EditorValueType.value:n.editorValueType),t.tQe=new c.EZe({inputId:"combo-box-item-height",minValue:0,label:{text:(0,u.getSR)().columnTypeComboBoxItemHeight},onChange:function(){t.eQe()}}),t.tQe.create().appendTo(e),t.tQe.setValue(n.itemHeight||22),t.nQe=new a.YZe({label:{text:(0,u.getSR)().columnTypeComboBoxEditable},onChange:function(){t.eQe()}}),t.nQe.create().appendTo(e),t.nQe.setValue(n.editable),e},h.prototype.eQe=function(){var t,t,t,e,e=this;this.LEt.onChange({editorValueType:null==(t=e._editorValueType)?void 0:t.value,itemHeight:null==(t=e.tQe)?void 0:t.value,editable:null==(t=e.nQe)?void 0:t.value})},h.prototype.setOptions=function(t){var e=this;e.LEt=i(i({},e.LEt),t),e.clear(),e.ZX()},h.prototype.clear=function(){var t=this;t.L0(),t.$Ue.empty()},h.prototype.dispose=function(){var t=this;t.clear(),t.$Ue=s.keyword_null},h.prototype.L0=function(){var t=this;t._editorValueType&&t._editorValueType.dispose(),t._editorValueType=s.keyword_null,t.tQe&&t.tQe.dispose(),t.tQe=s.keyword_null,t.nQe&&t.nQe.dispose(),t.nQe=s.keyword_null},e.qUe=h},"./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-combobox.js":function(t,e,n){var i,o,u,a,r,n,c,s;function l(t){var e;this.iQe=[],this.LEt=t}i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,n,i,o,n=1,i=arguments.length;n<i;n++)for(o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},Object.defineProperty(e,"__esModule",{value:!0}),e.oQe=void 0,o=n("Core"),u=n("./dist/plugins/tableSheet/tableSheet.js"),a=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-list.js"),r=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-utils.js"),n=o.mt,c=n.En,l.prototype.create=function(){var t,e,t=this,e;return(t.uQe=(0,o.GC$)(c("div"))).addClass("gc-defined-column-combo-box-container"),t.ZX()},l.prototype.ZX=function(){var t,e,n,t=this,e=t.uQe,n=t.LEt;return this.iQe=n.items||[],t.aQe=new a.rQe({label:{text:(0,u.getSR)().columnTypeComboBoxItems},showValue:!0,editable:!0,addAndRemoveButton:!0,items:this.iQe,onChange:function(){t.cQe()}}),t.aQe.create().appendTo(e),t.cQe(),e},l.prototype.cQe=function(){var t;this.LEt.onChange({items:this.iQe})},l.prototype.setOptions=function(t){var e=this;e.LEt=i(i({},e.LEt),t),e.clear(),e.ZX()},l.prototype.clear=function(){var t=this;t.L0(),t.uQe.empty()},l.prototype.dispose=function(){var t=this;t.clear(),t.uQe=r.keyword_null},l.prototype.L0=function(){var t=this;t.aQe&&t.aQe.dispose(),t.aQe=r.keyword_null},e.oQe=l},"./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-date-formatting.js":function(t,e,n){var i,o,u,f,a,r,d,c,s,l,n,h,g,b,v;function M(t){var e;this.fQe=b.getCultureInfo(1041),this.LEt=t}i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,n,i,o,n=1,i=arguments.length;n<i;n++)for(o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},Object.defineProperty(e,"__esModule",{value:!0}),e.dQe=void 0,o=n("Common"),u=n("Core"),f=n("./dist/plugins/tableSheet/tableSheet.js"),a=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-checkbox.js"),r=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-list.js"),d=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-formatting.js"),c=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-preview.js"),s=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-select.js"),l=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-utils.js"),n=u.mt,h=n.En,g="3/14/2001 13:30:00",b=o.Common.CultureManager,M.prototype.create=function(){var t,e,t=this,e;return(t.hQe=(0,u.GC$)(h("div"))).addClass("gc-defined-column-date-formatting-container"),t.ZX()},M.prototype.ZX=function(){var t,e,n,e,t=this,e=t.LEt,n=t.hQe,e=(0,d.parseFormat)(e.formatter);return t.gQe=new r.rQe({label:{text:(0,f.getSR)().columnTypeDateType},items:[],onChange:function(){t.bQe()}}),t.gQe.create().appendTo(n),t.gQe.setIndex(e.index||0),t.vQe=new s.GZe({inputId:"date-locale",items:(0,d.getListItems)(4),label:{text:(0,f.getSR)().columnTypeDateLocale},onChange:function(){t.MQe(),t.IQe(),t.mQe()}}),t.vQe.create().appendTo(n),e.locale?t.vQe.setValue(e.locale):t.vQe.setIndex(0),t.NQe=new s.GZe({inputId:"date-locale",hide:"ja-jp"!==e.locale,items:[{text:(0,f.getSR)().columnTypeCalendarType.western,value:"western"},{text:(0,f.getSR)().columnTypeCalendarType.JER,value:"JER"}],label:{text:(0,f.getSR)().columnTypeCalendar},onChange:function(){t.IQe(),t.mQe()}}),t.NQe.create().appendTo(n),t.NQe.setValue(e.calendarType||"western"),t.DQe=new a.YZe({hide:"JER"!==e.calendarType,label:{text:(0,f.getSR)().columnTypeShowEraFirstYear},onChange:function(){t.mQe()}}),t.DQe.create().appendTo(n),t.DQe.setValue(1===e.numberSystem),t.jQe().appendTo(n),t.mQe(),n},M.prototype.mQe=function(){var t,e,t,e,n,i,o,u,a,r,c,s,l,t,t=null==(t=this.vQe)?void 0:t.value,e=null==(e=this.NQe)?void 0:e.value,n=new Date(g),i=[],o=[],u=[];if(t&&e&&(u=(0,d.getPredefinedFormats)(t,d.formatCategories[4])),t===this.fQe.name().toLowerCase()&&"JER"===e)for(a=(0,f.getSR)().columnTypeNumberFormatting.japanEmperorReignDateFormat,r=0;r<a.length;r++)c=this.DQe&&this.DQe.value,1===r&&c?(i.push(this.Re(n,(0,f.getSR)().columnTypeNumberFormatting.japanEmperorReignFirstYearDateFormat[r])),o.push((0,f.getSR)().columnTypeNumberFormatting.japanEmperorReignFirstYearDateFormat[r])):(i.push(this.Re(n,a[r])),o.push(a[r]));else for(r=0;r<u.length;r++)s=this.Re(n,u[r]),i.push(s),o.push(u[r]);for(l=[],r=0;r<i.length;r++)l.push({text:i[r],value:o[r]});t=this.gQe.index,this.gQe.setOptions({items:l}),this.gQe.setIndex(Math.max(t,0))},M.prototype.bQe=function(){var t=this,e=t.CQe();t.LEt.onChange({formatter:e})},M.prototype.MQe=function(){var t,t,t,t,t,e,n,e=this,n;(null==(t=this.vQe)?void 0:t.value)===this.fQe.name().toLowerCase()?null!=(t=e.NQe)&&t.isVisible()||null!=(t=e.NQe)&&t.resetVisible():null!=(t=e.NQe)&&t.isVisible()&&null!=(t=e.NQe)&&t.resetVisible()},M.prototype.IQe=function(){var t,e,t,e,t,e,t,e,n,t,e,n=this,t=(null==(t=this.vQe)?void 0:t.value)===this.fQe.name().toLowerCase(),e="JER"===(null==(e=this.NQe)?void 0:e.value);t?e?null!=(t=n.DQe)&&t.isVisible()||null!=(e=n.DQe)&&e.resetVisible():null!=(t=n.DQe)&&t.isVisible()&&null!=(e=n.DQe)&&e.resetVisible():null!=(t=n.DQe)&&t.isVisible()&&null!=(e=n.DQe)&&e.resetVisible()},M.prototype.CQe=function(){var t,e,n,i,e=this,n=this.gQe.value,i=new Date(g);return null!=(t=e.wQe)&&t.setText(e.Re(i,n)),n},M.prototype.jQe=function(){var t,e,t,e;return(this.wQe=new c.pQe).create()},M.prototype.Re=function(t,e){var n;return new o.Formatter.GeneralFormatter(e).format(t)},M.prototype.setOptions=function(t){var e=this;e.LEt=i(i({},e.LEt),t),e.clear(),e.ZX()},M.prototype.clear=function(){var t=this;t.L0(),t.hQe.empty()},M.prototype.dispose=function(){var t=this;t.clear(),t.hQe=l.keyword_null},M.prototype.L0=function(){var t=this;t.gQe&&t.gQe.dispose(),t.gQe=l.keyword_null,t.vQe&&t.vQe.dispose(),t.vQe=l.keyword_null,t.NQe&&t.NQe.dispose(),t.NQe=l.keyword_null,t.DQe&&t.DQe.dispose(),t.DQe=l.keyword_null,t.wQe.dispose(),t.wQe=l.keyword_null},e.dQe=M},"./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-date-time-picker.js":function(t,e,n){var i,o,u,a,r,c,n,s,l;function f(t){var e;this.LEt=t}i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,n,i,o,n=1,i=arguments.length;n<i;n++)for(o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},Object.defineProperty(e,"__esModule",{value:!0}),e.yQe=void 0,o=n("Core"),u=n("./dist/plugins/tableSheet/tableSheet.js"),a=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-checkbox.js"),r=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-select.js"),c=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-utils.js"),n=o.mt,s=n.En,f.prototype.create=function(){var t,e,t=this,e;return(t.xQe=(0,o.GC$)(s("div"))).addClass("gc-defined-column-date-time-picker-container"),t.ZX()},f.prototype.ZX=function(){var t,e,n,t=this,e=t.LEt,n=t.xQe;return t.dH=new r.GZe({inputId:"start-day",items:[{value:o.CalendarStartDay[o.CalendarStartDay.monday],text:(0,u.getSR)().columnTypeDateMonday},{value:o.CalendarStartDay[o.CalendarStartDay.tuesday],text:(0,u.getSR)().columnTypeDateTuesday},{value:o.CalendarStartDay[o.CalendarStartDay.wednesday],text:(0,u.getSR)().columnTypeDateWednesday},{value:o.CalendarStartDay[o.CalendarStartDay.thursday],text:(0,u.getSR)().columnTypeDateThursday},{value:o.CalendarStartDay[o.CalendarStartDay.friday],text:(0,u.getSR)().columnTypeDateFriday},{value:o.CalendarStartDay[o.CalendarStartDay.saturday],text:(0,u.getSR)().columnTypeDateSaturday},{value:o.CalendarStartDay[o.CalendarStartDay.sunday],text:(0,u.getSR)().columnTypeDateSunday}],label:{text:(0,u.getSR)().columnTypeDateStartDay},onChange:function(){t.AQe()}}),t.dH.create().appendTo(n),t.dH.setValue(e.startDay||o.CalendarStartDay[o.CalendarStartDay.sunday]),t.TQe=new r.GZe({inputId:"calendar-page",items:[{value:o.CalendarPage[o.CalendarPage.day],text:(0,u.getSR)().columnTypeDateDay},{value:o.CalendarPage[o.CalendarPage.year],text:(0,u.getSR)().columnTypeDateYear},{value:o.CalendarPage[o.CalendarPage.month],text:(0,u.getSR)().columnTypeDateMonth}],label:{text:(0,u.getSR)().columnTypeDateCalendarPage},onChange:function(){t.AQe()}}),t.TQe.create().appendTo(n),t.TQe.setValue(e.calendarPage||o.CalendarPage[o.CalendarPage.day]),t.HG=new a.YZe({label:{text:(0,u.getSR)().columnTypeDateShowTime},onChange:function(){t.AQe()}}),t.HG.create().appendTo(n),t.HG.setValue(!!e.showTime||(0,c.isNullOrUndefined)(e.showTime)),n},f.prototype.SQe=function(t){var t,t,t,t,t,t,t,t,e,e=this;t?(null!=(t=e.TQe)&&t.isDisable()||null!=(t=e.TQe)&&t.resetDisable(),null!=(t=e.HG)&&t.isDisable()||null!=(t=e.HG)&&t.resetDisable()):(null!=(t=e.TQe)&&t.isDisable()&&null!=(t=e.TQe)&&t.resetDisable(),null!=(t=e.HG)&&t.isDisable()&&null!=(t=e.HG)&&t.resetDisable())},f.prototype.AQe=function(){var t,t,t;this.LEt.onChange({startDay:null==(t=this.dH)?void 0:t.value,calendarPage:null==(t=this.TQe)?void 0:t.value,showTime:!(null==(t=this.HG)||!t.value)})},f.prototype.setOptions=function(t){var e=this;e.LEt=i(i({},e.LEt),t),e.clear(),e.ZX()},f.prototype.clear=function(){var t=this;t.L0(),t.xQe.empty()},f.prototype.dispose=function(){var t=this;t.clear(),t.xQe=c.keyword_null},f.prototype.L0=function(){var t=this;t.dH&&t.dH.dispose(),t.dH=c.keyword_null,t.TQe&&t.TQe.dispose(),t.TQe=c.keyword_null,t.HG&&t.HG.dispose(),t.HG=c.keyword_null},e.yQe=f},"./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-divider.js":function(t,e,n){var i,o,n,u,a;function r(t){var e;this.LEt=t}Object.defineProperty(e,"__esModule",{value:!0}),e.LQe=void 0,i=n("Core"),o=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-utils.js"),n=i.mt,u=n.En,r.prototype.create=function(){var t;return this.OQe()},r.prototype.OQe=function(){var t,e,n,t=this,e=(0,i.GC$)(u("div"));return e.addClass("gc-defined-column-divider-container"),e.attr("role","separator"),(n=t._text=(0,i.GC$)(u("div"))).appendTo(e),n.addClass("gc-defined-column-divider-inner-text"),t.LEt.text?n.text(t.LEt.text):n.hide(),e},r.prototype.setText=function(t){var e;this._text.text(t)},r.prototype.dispose=function(){var t;this._text=o.keyword_null},e.LQe=r},"./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-formatting-select.js":function(t,e,n){var a,r,i,c,s,l,f,n,d,o;function u(t){var e;this.xT=[],this.LEt=t}Object.defineProperty(e,"__esModule",{value:!0}),e.kQe=void 0,a=n("Core"),r=n("./dist/plugins/tableSheet/tableSheet.js"),i=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-date-formatting.js"),c=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-formatting.js"),s=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-number-formatting.js"),l=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-select.js"),f=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-utils.js"),n=a.mt,d=n.En,u.prototype.create=function(){var t,e,t,e=this.EQe=(0,a.GC$)(d("div"));return e.addClass("gc-defined-column-formatting-select-container"),e},u.prototype.ZQe=function(){var e,t,n,i,o,u,n,e=this,t=e.LEt.formatter,n=(0,c.parseFormat)(t),i=(0,a.GC$)(d("div"));return i.addClass("gc-defined-column-formatting-select-number-container"),o=new s.UQe({onChange:function(t){e.LEt.onChange(t)}}),(u=new l.GZe({inputId:"lookup-number-formatting",items:[{text:(0,r.getSR)().columnTypeNumber,value:1},{text:(0,r.getSR)().columnTypeCurrency,value:2},{text:(0,r.getSR)().columnTypePercent,value:6}],label:{text:(0,r.getSR)().columnTypeFormattingCategory},onChange:function(t){o.setOptions({type:t.value,formatter:f.keyword_null})}})).create().appendTo(i),e.xT.push(u),o.create().appendTo(i),e.xT.push(o),n=n.category,-1===[1,2,6].indexOf(n)&&(n=1),u.setValue(n),o.setOptions({type:n,formatter:t}),i},u.prototype.BQe=function(){var e,t,n,t,e=this,t=e.LEt.formatter,n=(0,a.GC$)(d("div"));return n.addClass("gc-defined-column-formatting-select-date-container"),(t=new i.dQe({formatter:t,onChange:function(t){e.LEt.onChange(t.formatter)}})).create().appendTo(n),e.xT.push(t),n},u.prototype.createFormatting=function(t){var e=this,n=e.EQe;if(e.L0(),(0,f.isNumber)(t))e.ZQe().appendTo(n);else{if(!(0,f.isDate)(t))return!1;e.BQe().appendTo(n)}return!0},u.prototype.dispose=function(){var t=this;t.L0(),t.EQe=f.keyword_null},u.prototype.L0=function(){for(var t,e,n,i,t=this,e=0,n=t.xT;e<n.length;e++)(i=n[e]).dispose?i.dispose():i.unbind&&i.unbind("click");t.xT=[],t.EQe.empty()},e.kQe=u},"./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-formatting.js":function(t,e,n){var c,s,l,r,o,f,i,d,u,a;function h(t){var t,t,t=t.match(o);if(t&&t[0])return t=t[0],-1!==u.indexOf(t)?-1:parseInt(t.split("-")[1],16)}function g(t){return t.replace(o,function(t,e){var n="[$";return 0<e.length&&"-"!==e[0]&&(n+="$"),n+="-409]"})}function b(t,n){var i,i;return t&&(i=(i=t.split(";")).map(function(t,e){return 4===i.length&&2===e?t.replace(new RegExp("\\?{"+n+"}"),""):t.replace(r,"")})).join(";")}function v(u){var a,t,e,r,a=c.Common.CultureManager.getCultureInfoDict(),t=(0,s.getSR)().columnTypeNumberFormatting.japanEmperorReignDateFormat,e=(0,s.getSR)().columnTypeNumberFormatting.japanEmperorReignFirstYearDateFormat,r={category:4,index:-1};if(u=u.replace(d,""),-1<e.indexOf(u)?(r.index=e.indexOf(u),r.locale="ja-jp",r.calendarType="JER",1===r.index&&(r.numberSystem=1)):-1<t.indexOf(u)?(r.index=t.indexOf(u),r.locale="ja-jp",r.calendarType="JER"):Object.keys(a).forEach(function(t){var e,n,i,o,i;if(!(-1<r.index)&&"invariant"!==t){if(n=u,!a[e=t].predefinedFormats||!a[t].predefinedFormats.Date){if(i=h(u),!(0,l.isNullOrUndefined)(i)&&i!==a[t].id)return;e=f,n=g(u)}-1<(i=(o=a[e].predefinedFormats.Date).indexOf(n))&&(r.index=i,r.locale=t,r.calendarType="western")}}),-1<r.index)return r}function M(u){var a,r,a=c.Common.CultureManager.getCultureInfoDict(),r={category:5,index:-1};if(Object.keys(a).forEach(function(t){var e,n,i,o,i;if(!(-1<r.index)&&"invariant"!==t){if(n=u,!a[e=t].predefinedFormats||!a[t].predefinedFormats.Time){if(i=h(u),!(0,l.isNullOrUndefined)(i)&&i!==a[t].id)return;e=f,n=g(u)}-1<(i=(o=a[e].predefinedFormats.Time).indexOf(n))&&(r.index=i,r.locale=t)}}),0<=r.index)return r}function I(t,o){var u,a,r,u=c.Common.CultureManager.getCultureInfoDict(),a={category:3,index:-1};if(t&&(r=b(t,o).replace(d,""),Object.keys(u).forEach(function(t,e){var n,i;if(!(-1<a.index)&&"invariant"!==t){if(!u[n=t].predefinedFormats||!u[t].predefinedFormats.Accounting&&!u[n].predefinedFormats.Comma){if(i=h(r),!(0,l.isNullOrUndefined)(i)&&i!==u[t].id)return;n=f,r=g(r)}b(u[n].predefinedFormats.Accounting,2)===r?(a.decimalPlaces=o,a.locale=t,a.index=e):b(u[n].predefinedFormats.Comma,2)===r&&(a.decimalPlaces=o,a.locale=(0,s.getSR)().columnTypeNumberFormatting.accountingSymbol[0][0],a.index=e)}})),-1<a.index)return a}function m(t,e){var n,i,o;if(t&&(n=(0,s.getSR)().columnTypeNumberFormatting.percentageFormats,i=null,i=t,0!==e&&(o="\\"+t.substring(t.indexOf("."),t.indexOf(".")+e+1),i=t.replace(new RegExp(o,"g"),"")),i===n[0]))return{decimalPlaces:e,category:6,index:0}}function N(t,e){var n,i,o,u,a,n={category:1,index:-1};if(t)for(i=(0,s.getSR)().columnTypeNumberFormatting.numberCategoryFormats,o=t,0!==e&&(u="\\"+t.substring(t.indexOf("."),t.indexOf(".")+e+1),o=t.replace(new RegExp(u,"g"),"")),o=o.replace(d,""),a=0;a<i.length;a++)if(o===i[a])return n.decimalPlaces=e,-1!==t.indexOf("#,")&&(n.useThousand=!0),n.index=a%(i.length/2),n}function D(t,i){var o,u,a,o=c.Common.CultureManager.getCultureInfoDict(),u={category:2,index:-1},a=t;if(t&&(a=t.replace(r,"").replace(d,""),-1<(0,s.getSR)().columnTypeNumberFormatting.currencyFormatWithoutSymbol.indexOf(a)?(u.decimalPlaces=i,u.locale=(0,s.getSR)().columnTypeNumberFormatting.accountingSymbol[0][0],u.index=(0,s.getSR)().columnTypeNumberFormatting.currencyFormatWithoutSymbol.indexOf(a)):Object.keys(o).forEach(function(t){var e,n,n;if(!(-1<u.index)&&"invariant"!==t){if(e=o[t].predefinedFormats.Currency,!o[t].predefinedFormats||!o[t].predefinedFormats.Currency){if(n=h(a),!(0,l.isNullOrUndefined)(n)&&n!==o[t].id)return;a=g(a),e=o[f].predefinedFormats.Currency}e&&0<e.length&&(-1<u.index||0<=(n=(e=e.map(function(t){return t.replace(r,"")})).indexOf(a))&&(u.decimalPlaces=i,u.locale=t,u.index=n))}}),-1<u.index))return u}function j(t,r){var e,n,c,e="\u200e",n=r.id,c=a.hasOwnProperty(n);return t.replace(o,function(t,e,n,i,o,u){var a="[$";return 0<i.length&&"$"===i[0]&&(a+=r.NumberFormat.currencySymbol||"$"),a+=(c?"\u200e":"")+"-"+r.id.toString(16)+"]",c?e+n+o+a+u:e+n+a+o+u})}function C(t,e){var n,t,i,i,o,u,n=c.Common.CultureManager.getCultureInfo(t);if(n)return!(i=(t=n.predefinedFormats&&n.predefinedFormats[e])instanceof Array)&&t||i&&0<t.length?t:(i=c.Common.CultureManager.culture(),(t=(u=(o=c.Common.CultureManager.getCultureInfo(i)).predefinedFormats)[e]||(0,s.getSR)().columnTypeNumberFormatting.commonFormats[e]&&(0,s.getSR)().columnTypeNumberFormatting.commonFormats[e].format)instanceof Array?t.map(function(t){var e,e;return(e=(e=t.split(";")).map(function(t){return j(t,n)})).join(";")}):"object"==typeof t?{}:t.split(";").map(function(t){return j(t,n)}).join(";"))}function w(t){var e,n,i,e="";if(t)for(n=0;n<t.length;n++)t[n]&&(i=t[n].match(o))&&i[0]&&(e=i[0],t[n]=t[n].replace(o,"[$]"));return e}function p(t,e){var n,i;if(e)for(n=0;n<t.length;n++)t[n]&&-1<(i=t[n].indexOf("[$]"))&&(t[n]=t[n].slice(0,i)+e+t[n].slice(i+3))}function x(n,t){var i,o,u,i=c.Common.CultureManager.getCultureInfoDict(),o=[];return t&&(o=o.concat(t)),u=c.Common.CultureManager.culture(),Object.keys(i).sort(function(t,e){return t===u?-1:1}).forEach(function(t){var e;"invariant"!==t&&(e=i[t],2===n||3===n?o.push({text:e.NumberFormat.currencySymbol+" "+e.displayName,value:t}):o.push({text:e.displayName,value:t}))}),o}function y(t){var e,n,i,o;if(!t||"General"===t)return{category:0,index:0};if("@"===t)return{category:9,index:0};if(e=v(t)||M(t))return e;if(n=0,t&&-1!==t.indexOf("."))for(o=(i=t.indexOf("."))+1;o<t.length&&"0"===t.substring(o,o+1);o++)n++;return(e=I(t,n)||m(t,n)||N(t,n)||D(t,n))||{category:11,index:0}}Object.defineProperty(e,"__esModule",{value:!0}),e.parseFormat=e.getListItems=e.afterAdjustFormatString=e.beforeAdjustFormatString=e.getPredefinedFormats=e.formatCategories=e.decimalPlacesWithZeroDotReg=void 0,c=n("Common"),s=n("./dist/plugins/tableSheet/tableSheet.js"),l=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-utils.js"),r=/\.0*/g,e.decimalPlacesWithZeroDotReg=/(0)(\.?(0*)?)/g,o=/\[\$(.?-.*?)\]/g,f="en-us",d=new RegExp(i="\\\\","g"),u=["[$\u20ac-1]","[$\u20ac-2]"],e.formatCategories=["General","Number","Currency","Accounting","Date","Time","Percentage","Fraction","Scientific","Text","Special","Custom"],a={4097:!0,14337:!0,15361:!0,5121:!0,3073:!0,2049:!0,11265:!0,13313:!0,12289:!0,6145:!0,8193:!0,17409:!0,16385:!0,1025:!0,10241:!0,7169:!0,9217:!0,1170:!0},e.getPredefinedFormats=C,e.beforeAdjustFormatString=w,e.afterAdjustFormatString=p,e.getListItems=x,e.parseFormat=y},"./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-input-formula.js":function(t,e,n){var o,u,a,i,r,n,c,s;function l(t){var e;this.LEt=t}Object.defineProperty(e,"__esModule",{value:!0}),e.GQe=void 0,o=n("Core"),u=n("FormulaTextBox"),a=n("./dist/plugins/tableSheet/tableSheet.js"),i=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-input.js"),r=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-utils.js"),n=o.mt,c=n.En,l.prototype.create=function(){var t;return this.ZX()},l.prototype.ZX=function(){var t,e,n,t,t=this,e=(0,o.GC$)(c("div"));return e.addClass("gc-defined-column-input-formula-container"),(n=t.mEe=new i._Ze({inputId:"formula",type:"text",validate:t.LEt.validate,placeholder:(0,a.getSR)().defineColumnFormula})).create().appendTo(e),t.RQe(),(t=t.PQe=(0,o.GC$)(c("div"))).addClass("gc-defined-column-fake-ftb-workbook"),t.hide(),t.appendTo(e),e},l.prototype.RQe=function(){var e=this,n={formulaInputTextBox:null,fakeFormulaTextBoxWorkbook:null};e.mEe.bind("focus",function(){e.ggi(n.formulaInputTextBox,n.fakeFormulaTextBoxWorkbook);var t=e.QQe();n.formulaInputTextBox=t.formulaInputTextBox,n.fakeFormulaTextBoxWorkbook=t.fakeFormulaTextBoxWorkbook}).bind("blur",function(){var t=e.mEe.value;"="===t&&e.mEe.setValue(t="",!1),e.LEt.onChange(t),e.ggi(n.formulaInputTextBox,n.fakeFormulaTextBoxWorkbook)}).bind("keydown",function(t){13===t.keyCode&&(e.ggi(n.formulaInputTextBox,n.fakeFormulaTextBoxWorkbook),t.target.blur())})},l.prototype.YQe=function(){var t;this.mEe.unbind("focus").unbind("blur").unbind("keydown")},l.prototype.QQe=function(){var t,e,n,e,i,t=this,e=t.mEe,n=e.value||"=",e=new u.FormulaTextBox(e.getInputElement(),r.keyword_null,r.keyword_null);return e.Ngi=!0,i=new o.Workbook(t.PQe.get(0),{allowDynamicArray:!0,allowUndo:!1}),t.XMi(i),t.lgi(i),e.workbook(i),e.text(n),{formulaInputTextBox:e,fakeFormulaTextBoxWorkbook:i}},l.prototype.XMi=function(t){for(var e,n,i,o,u,e,n,i=0,o=this.LEt.getColumnFields();i<o.length;i++)u=o[i],t.zwt(t.hyt,u,"=A1",0,0,!0,(0,a.getSR)().GroupPanelDropDownCalcField+" "+u)},l.prototype.lgi=function(t){var t=t.getActiveSheet();delete t.Qy().PUt.enter,t.setRowCount(1),t.setColumnCount(1)},l.prototype.ggi=function(t,e){t&&t.destroy&&t.destroy(),e&&e.destroy&&e.destroy()},l.prototype.validate=function(){return this.mEe.validate()},l.prototype.setValue=function(t){var e;this.mEe.setValue(t)},l.prototype.dispose=function(){var t=this;t.YQe(),t.mEe.dispose(),t.mEe=r.keyword_null},e.GQe=l},"./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-input-number.js":function(t,e,n){var i,u,o,a,r;function c(t){var e;this.LEt=t}i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,n,i,o,n=1,i=arguments.length;n<i;n++)for(o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},Object.defineProperty(e,"__esModule",{value:!0}),e.EZe=void 0,u=n("Core"),o=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-utils.js"),a=u.mt.En,Object.defineProperty(c.prototype,"value",{get:function(){var t;return null==(t=this.mEe)?void 0:t.val()},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"container",{get:function(){return this._Ue},enumerable:!1,configurable:!0}),c.prototype.create=function(){var t,e,n,i,o,i,t=this,e=t.LEt,n=t._Ue=(0,u.GC$)(a("div"));return n.addClass("gc-defined-column-field-item-container gc-defined-column-input-number"),e.label&&e.label.text&&((i=(0,u.GC$)(a("div"))).addClass("gc-defined-column-field-label-container"),i.appendTo(n),(o=(0,u.GC$)(a("label"))).addClass("gc-defined-column-field-label-container-label-text"),o.attr("for","gc-defined-column-input-"+e.inputId),o.appendTo(i),o.text(e.label.text)),(i=t.WQe=(0,u.GC$)(a("div"))).addClass("gc-defined-column-field-container"),i.appendTo(n),t.ZX(),n},c.prototype.ZX=function(){var n,i,t,e,t,n=this,i=n.LEt;!1===i.visible?n._Ue.hide():n._Ue.show(),t=n.WQe,n.isDisable()&&t.addClass("gc-defined-column-disabled"),(e=(0,u.GC$)(a("div"))).addClass("gc-defined-column-field-input-container"),e.appendTo(t),(t=n.mEe=(0,o.createDCElement)("sjs-number-editor")).attr("id","gc-defined-column-input-"+i.inputId),t.attr("type","text"),t.attr("aria-disabled",n.isDisable()?"true":"false"),n.isDisable()?t.attr("disabled","true"):t.removeAttr("disabled"),i.placeholder&&t.attr("placeholder",i.placeholder),(i.label&&i.label.text||i.placeholder)&&t.attr("aria-label",i.label&&i.label.text||i.placeholder),(0,o.isNullOrUndefined)(i.defaultValue)||t.val(i.defaultValue),t.attr("min",n.HQe()),(0,o.isNumber)(i.maxValue)&&t.attr("max",i.maxValue),i.allowMinNull&&(t.attr("allow-empty",!0),t.attr("empty-value",n.HQe())),t.bind("input",function(t){var e=t.target.value;n.isDisable()||i.onChange&&i.onChange(e,t)}),t.appendTo(e)},c.prototype.setFocus=function(){var t;this.mEe.focus()},c.prototype.setOptions=function(t){var e=this;e.L0(),e.LEt=i(i({},e.LEt),t),e.ZX()},c.prototype.isDisable=function(){return!1===this.LEt.enable},c.prototype.resetDisable=function(){var t=this,e=t.isDisable(),n=t.WQe;(t.LEt.enable=e)?n.removeClass("gc-defined-column-disabled"):n.addClass("gc-defined-column-disabled"),t.mEe.attr("aria-disabled",e?"false":"true"),e?t.mEe.removeAttr("disabled"):t.mEe.attr("disabled","true")},c.prototype.HQe=function(){var t=this;return(0,o.isNumber)(t.LEt.minValue)?t.LEt.minValue:0},c.prototype.setValue=function(t){var e=this;e.mEe.val((0,o.isNumber)(t)?t:e.HQe()),(0,o.triggerEvent)(e.mEe,"input")},c.prototype.dispose=function(){var t=this;t.L0(),t.WQe=o.keyword_null,t._Ue=o.keyword_null},c.prototype.L0=function(){var t=this;t.mEe.unbind("input"),t.mEe=o.keyword_null,t.WQe.empty()},e.EZe=c},"./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-input.js":function(t,e,n){var r,c,u,s,l,i;function o(t){var e;this.LEt=t}Object.defineProperty(e,"__esModule",{value:!0}),e._Ze=void 0,r=n("Core"),c=n("DataManager"),u=n("./dist/plugins/tableSheet/tableSheet.js"),s=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-utils.js"),l=r.mt.En,Object.defineProperty(o.prototype,"value",{get:function(){var t;return null==(t=this.mEe)?void 0:t.val()},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"container",{get:function(){return this._Ue},enumerable:!1,configurable:!0}),o.prototype.create=function(){var t,e,n,i,o,i,o,t=this,e=t.LEt,n=t._Ue=(0,r.GC$)(l("div"));return n.addClass("gc-defined-column-field-item-container gc-defined-column-input"+(e.className?" "+e.className:"")),e.label&&e.label.text&&((i=(0,r.GC$)(l("div"))).addClass("gc-defined-column-field-label-container"),i.appendTo(n),(o=(0,r.GC$)(l("label"))).addClass("gc-defined-column-field-label-container-label-text"),o.attr("for","gc-defined-column-input-"+e.inputId),o.appendTo(i),o.text(e.label.text)),(i=t.WQe=(0,r.GC$)(l("div"))).addClass("gc-defined-column-field-container"),i.appendTo(n),t.isVisible()||n.addClass("gc-defined-column-hide"),n.attr("aria-hide",t.isVisible()?"false":"true"),t.ZX(),(o=(0,r.GC$)(l("div"))).addClass("gc-defined-column-field-label-validation-container"),o.appendTo(n),n},o.prototype.ZX=function(){var e,n,t,i,o,u,a,e=this,n=e.LEt,t=e.WQe;e.isDisable()&&t.addClass("gc-defined-column-disabled"),e.FQe()&&(t.addClass("gc-defined-column-click"),t.bind("click",function(t){if(!e.isDisable())return n.onClick(t),!1})),n.label&&((i=e.KUe=(0,r.GC$)(l("div"))).addClass("gc-defined-column-field-label-container"),(0,s.isFunction)(n.label.onClick)&&i.bind("click",function(t){if(!e.isDisable())return n.label.onClick(t),!1}),i.appendTo(t),(o=(0,r.GC$)(l("label"))).addClass("gc-defined-column-field-label-container-label "+n.label.iconClass),o.attr("for","gc-defined-column-input-"+n.inputId),o.appendTo(i),(0,c.isNullOrEmpty)(n.label.iconClass))&&o.hide(),(u=(0,r.GC$)(l("div"))).addClass("gc-defined-column-field-input-container"),u.appendTo(t),"color"===n.type?n.tag="sjs-color-picker":(0,s.isNullOrUndefined)(n.type)&&(n.tag="sjs-text-editor"),a=e.mEe=n.tag?(0,s.createDCElement)(n.tag):(0,r.GC$)(l("input")),n.tag||a.addClass("gc-defined-column-field-input-container-input"),a.attr("id","gc-defined-column-input-"+n.inputId),n.tag||a.attr("type",n.type||"text"),a.attr("aria-disabled",e.isDisable()?"true":"false"),e.isDisable()?a.attr("disabled","true"):a.removeAttr("disabled"),n.placeholder&&a.attr("placeholder",n.placeholder),(n.label&&n.label.text||n.placeholder)&&a.attr("aria-label",n.label&&n.label.text||n.placeholder),(0,s.isNullOrUndefined)(n.defaultValue)||(a.attr("value",n.defaultValue),a.val(n.defaultValue)),n.isReadOnly&&a.attr("readonly","true"),n.maxLength&&a.attr("maxlength",n.maxLength),e.v7(),a.appendTo(u),n.label&&n.label.suffixIconClass&&((i=e._Qe=(0,r.GC$)(l("div"))).addClass("gc-defined-column-field-label-container"),(0,s.isFunction)(n.label.onSuffixClick)&&(i.addClass("gc-defined-column-click-quieter"),i.bind("click",function(t){if(!e.isDisable())return n.label.onSuffixClick(t),!1})),i.appendTo(t),(o=(0,r.GC$)(l("label"))).addClass("gc-defined-column-field-label-container-label "+n.label.suffixIconClass),o.appendTo(i))},o.prototype.v7=function(){var n,i,t,e,n=this,i=n.LEt,t=n.mEe,e=function(e){return function(t){n.isValid()||n.resetValid(n.validate()),n.isDisable()||(i.maxLength&&t.target.value&&i.maxLength<t.target.value.length?n.setValue(t.target.value.slice(0,i.maxLength)):e&&e(t))}};n.JQe()&&t.bind("blur",e(function(t){i.onBlur&&i.onBlur(t.target.value,t)})),n.XQe()&&t.bind("input",e(function(t){i.onChange(t.target.value,t)}))},o.prototype.setFocus=function(){var t;this.mEe.focus()},o.prototype.setOptions=function(t){var e=this;e.L0(),e.LEt=t,e.ZX()},o.prototype.isDisable=function(){return!1===this.LEt.enable},o.prototype.resetDisable=function(){var t=this,e=t.isDisable(),n=t.WQe;(t.LEt.enable=e)?n.removeClass("gc-defined-column-disabled"):n.addClass("gc-defined-column-disabled"),t.mEe.attr("aria-disabled",e?"false":"true"),e?t.mEe.removeAttr("disabled"):t.mEe.attr("disabled","true")},o.prototype.validate=function(){var t,e,n,n,t=this,e=t.LEt.validate,n=!t.isDisable();if(e&&n){if(e.required&&(0,c.isNullOrEmpty)(t.value))return t.resetValid(!1,{required:!1}),!1;if(e.validating)if("boolean"==typeof(n=e.validating(t.value))){if(!n)return t.resetValid(!1),!1}else if(!n.success)return t.resetValid(!1,n),!1}return t.resetValid(!0),!0},o.prototype.resetValid=function(t,e){var n,i,o,n,n=this,i=n.mEe,o=n.WQe,n=(0,r.GC$)(n._Ue.find(".gc-defined-column-field-label-validation-container")[0]);t?(o.removeClass("gc-define-column-invalid"),i.removeClass("gc-define-column-invalid"),i.attr("aria-invalid","false"),n.hide(),n.empty()):o.hasClass("gc-define-column-invalid")||(o.addClass("gc-define-column-invalid"),i.addClass("gc-define-column-invalid"),i.attr("aria-invalid","true"),!1===e.required?n.html((0,u.getSR)().defineColumnRequired):e.errorMessage&&n.html(e.errorMessage),e&&n.show())},o.prototype.isValid=function(){var t,e;return!this.WQe.hasClass("gc-define-column-invalid")},o.prototype.JQe=function(){var t=this,e=t.LEt;return!e.isReadOnly&&!t.isDisable()&&e.validate&&(e.validate.required||(0,s.isFunction)(e.validate.validating))},o.prototype.isVisible=function(){return!0!==this.LEt.hide},o.prototype.resetVisible=function(){var t=this,e=t.isVisible(),n=t._Ue;(t.LEt.hide=e)?n.addClass("gc-defined-column-hide"):n.removeClass("gc-defined-column-hide"),t.mEe.attr("aria-hide",e?"true":"false")},o.prototype.XQe=function(){var t,e=this.LEt;return!e.isReadOnly&&(0,s.isFunction)(e.onChange)},o.prototype.FQe=function(){var t,e=this.LEt;return e.isReadOnly&&(0,s.isFunction)(e.onClick)},o.prototype.setValue=function(t,e){var n=this;n.mEe.val(t),!1!==e&&(0,s.triggerEvent)(n.mEe,"input")},o.prototype.getInputElement=function(){return(0,s.getSJSInput)(this.mEe)},o.prototype.bind=function(t,e){return this.mEe.bind(t,e),this},o.prototype.unbind=function(t){return this.mEe.unbind(t),this},o.prototype.dispose=function(){var t=this;t.L0(),t.WQe=s.keyword_null},o.prototype.L0=function(){var t=this;t.XQe()&&t.mEe.unbind("input"),t.JQe()&&t.mEe.unbind("blur"),"sjs-text-editor"===t.LEt.tag&&t.mEe.unbind("sjs-mounted"),t.FQe()&&(t.WQe.removeClass("gc-defined-column-click"),t.WQe.unbind("click")),t.KUe&&(0,s.isFunction)(t.LEt.label.onClick)&&t.KUe.unbind("click"),t._Qe&&(0,s.isFunction)(t.LEt.label.onSuffixClick)&&t._Qe.unbind("click"),t.KUe=s.keyword_null,t._Qe=s.keyword_null,t.mEe=s.keyword_null,t.WQe.empty()},e._Ze=o},"./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-list.js":function(t,e,n){var i,s,l,r,c,n,f,o;function u(t){this.itemContainers=[];var e=this;e.LEt=t,e.$G=c.keyword_null,e.KQe=[]}i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,n,i,o,n=1,i=arguments.length;n<i;n++)for(o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},Object.defineProperty(e,"__esModule",{value:!0}),e.rQe=void 0,s=n("Core"),l=n("DataManager"),r=n("./dist/plugins/tableSheet/tableSheet.js"),c=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-utils.js"),n=s.mt,f=n.En,Object.defineProperty(u.prototype,"value",{get:function(){var t,e,e=this;return e.LEt.enableMultiSelected?e.KQe.map(function(t){var t;return null==(t=e.LEt.items[t])?void 0:t.value}):null==(t=e.LEt.items[e.$G])?void 0:t.value},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"index",{get:function(){var t=this;return t.LEt.enableMultiSelected?t.KQe.slice():t.$G},enumerable:!1,configurable:!0}),u.prototype.create=function(){var t,e,n,i,o,u,t=this,e=t.LEt.label,n=t.LEt.addAndRemoveButton,i=(0,s.GC$)(f("div"));return i.addClass("gc-defined-column-list-container"),(o=(0,s.GC$)(f("div"))).addClass("gc-defined-column-list-label-container"),o.appendTo(i),e&&e.text&&((u=(0,s.GC$)(f("div"))).addClass("gc-defined-column-label-container"),u.appendTo(o),u.text(e.text)),n&&t.qQe(o),t.zqt().appendTo(i),i},u.prototype.zqt=function(){var t,e,t=this,e=t.$Qe=(0,s.GC$)(f("div"));return e.addClass("gc-defined-column-list-items-container"),t.isDisable()&&e.addClass("gc-defined-column-disabled"),e.attr("role","listbox"),e.attr("tabindex","-1"),e.attr("aria-disabled",t.isDisable()?"true":"false"),t.tyn(),e},u.prototype.tyn=function(){var i,o,e,n,u,a,r,t,c,i=this,o=i.LEt.items,e=i.LEt.enableMultiSelected,n=i.KQe,u=i.$G,a=i.LEt.showValue,r=function(t){return e?-1<n.indexOf(t):u===t};for(a&&i.eYe(),t=function(e){var t,n,t=o[e],n=(0,s.GC$)(f("span"));i.itemContainers.push(n),n.addClass("gc-defined-column-list-item-container"),r(e)&&n.addClass("gc-defined-column-list-item-selected"),n.attr("role","option"),n.attr("tabindex","0"),n.attr("aria-selected",r(e)?"true":"false"),n.bind("click",function(t){i.isDisable()||i.tYe(e,t)}),i.ryn(t,n),a&&i.ryn(t,n,!0),n.appendTo(i.$Qe)},c=0;c<o.length;c++)t(c)},u.prototype.eYe=function(){var t,e,n,n,t=this,e=(0,s.GC$)(f("div"));e.addClass("gc-defined-column-list-header"),(n=(0,s.GC$)(f("div"))).addClass("gc-defined-column-list-header-text"),n.text((0,r.getSR)().columnTypeText),n.appendTo(e),(n=(0,s.GC$)(f("div"))).addClass("gc-defined-column-list-header-value"),n.text((0,r.getSR)().defineColumnValue),n.appendTo(e),e.appendTo(t.$Qe)},u.prototype.ryn=function(t,e,n){var i,o,u,a,r,i=this,o=i.LEt.editable,u=o?(0,s.GC$)(f("input")):(0,s.GC$)(f("div")),a;u.addClass("gc-defined-column-list-item-"+(n?"value":"text")),t.class&&u.addClass(t.class),r=n||(0,c.isNullOrUndefined)(t.text)?t.value:t.text,o?u.val(r):u.text(r),u.appendTo(e),i.LEt.editable&&u.bind("blur",function(){n?t.value=this.value:t.text=this.value,i.LEt.onChange&&i.LEt.onChange()})},u.prototype.tYe=function(t,e){var n,i,o,u,a,r,c,n=this,i=n.LEt.enableMultiSelected,o=n.KQe,u=function(t){return i?-1<o.indexOf(t):n.$G===t};for(i?(a=function(t){var e=o.indexOf(t);-1<e?o.splice(e,1):o.push(t)},(0,l.isArray)(t)?t.forEach(function(t){a(t)}):a(t)):n.$G=t,r=0;r<n.itemContainers.length;r++)c=n.itemContainers[r],u(r)?(c.attr("aria-selected","true"),c.addClass("gc-defined-column-list-item-selected")):(c.attr("aria-selected","false"),c.removeClass("gc-defined-column-list-item-selected"));n.LEt.onChange&&n.LEt.onChange(n.value,n.index,e)},u.prototype.qQe=function(t){var e,n,i,o,u,a,a,a,u,o,e=this,n=e.LEt.items,i=(0,s.GC$)(f("div"));i.addClass("gc-defined-column-add-remove-container"),(o=(0,s.GC$)(f("div"))).addClass("gc-defined-column-add-remove-container-buttons"),o.appendTo(i),(u=(0,s.GC$)(f("button"))).addClass("gc-defined-column-add-remove-container-button"),u.appendTo(o),(a=(0,s.GC$)(f("span"))).addClass("gc-defined-column-add-remove-container-button-icon gc-defined-column-add-remove-container-button-icon-add ui-icon ui-icon-check"),a.appendTo(u),(a=(0,s.GC$)(f("span"))).appendTo(u),a.text((0,r.getSR)().columnTypeComboBoxAdd),u.bind("click",function(){(n=n||[]).push({text:"",value:""}),e.setOptions({items:n}),e.LEt.onChange&&e.LEt.onChange()}),(a=(0,s.GC$)(f("button"))).addClass("gc-defined-column-add-remove-container-button"),a.appendTo(o),(u=(0,s.GC$)(f("span"))).addClass("gc-defined-column-add-remove-container-button-icon gc-defined-column-add-remove-container-button-icon-remove ui-icon ui-icon-check"),u.appendTo(a),(o=(0,s.GC$)(f("span"))).appendTo(a),o.text((0,r.getSR)().columnTypeComboBoxRemove),a.bind("click",function(){var t=e.$G;n.splice(t,1),e.setOptions({items:n}),e.LEt.onChange&&e.LEt.onChange()}),i.appendTo(t)},u.prototype.setValue=function(e){var i,t,t,i=this;(0,c.isNullOrUndefined)(e)||(i.LEt.enableMultiSelected&&(0,l.isArray)(e)?0<(t=e.reduce(function(t,e){var n=i.LEt.items.findIndex(function(t){return t.value===e});return-1<n&&t.push(n),t},[])).length&&i.tYe(t):-1<(t=i.LEt.items.findIndex(function(t){return t.value===e}))&&i.tYe(t))},u.prototype.setIndex=function(t){var e=this;(0,c.isNullOrUndefined)(t)||(e.LEt.enableMultiSelected&&(0,l.isArray)(t)?0<t.length&&e.tYe(t):-1<t&&e.tYe(t))},u.prototype.setOptions=function(t){var e=this;e.LEt=i(i({},e.LEt),t),e.clear(),e.tyn()},u.prototype.isDisable=function(){return!1===this.LEt.enable},u.prototype.resetDisable=function(){var t=this,e=t.isDisable(),n=t.$Qe;(t.LEt.enable=e)?n.removeClass("gc-defined-column-disabled"):n.addClass("gc-defined-column-disabled"),n.attr("aria-disabled",e?"false":"true")},u.prototype.clear=function(){for(var t,e,n,i,t=this,e=0,n=t.itemContainers;e<n.length;e++)(i=n[e]).unbind("click");t.itemContainers=[],t.$Qe.empty()},u.prototype.dispose=function(){var t=this;t.clear(),t.$Qe=c.keyword_null},e.rQe=u},"./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-lookup.js":function(t,e,n){var c,r,s,l,f,d,n,h,i;function o(t){var e;this.Pq=[],this.nYe=[],this.LEt=t}c=this&&this.__assign||function(){return(c=Object.assign||function(t){for(var e,n,i,o,n=1,i=arguments.length;n<i;n++)for(o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},Object.defineProperty(e,"__esModule",{value:!0}),e.iYe=void 0,r=n("Core"),s=n("./dist/plugins/tableSheet/tableSheet.js"),l=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-input-number.js"),f=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-select.js"),d=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-utils.js"),n=r.mt,h=n.En,o.prototype.create=function(t){var e,n,e=this,n=e.oYe=(0,r.GC$)(h("div"));return n.addClass("gc-defined-column-look-up-container"),e.ZX(e.uYe(t)),n},o.prototype.ZX=function(t){var e,i,e,o,n,u,a,r,i=this,e=i.oYe,o=i.LEt.getLookup()||[],n=new f.GZe({inputId:"lookup-tables",validate:{required:!0},enableSearch:!0,stickItem:{value:d.keyword_undefined,text:(0,s.getSR)().defineColumnNone,iconClass:""},items:o.map(function(t){return{lookup:t,value:t.table,text:t.table,iconClass:""}}),label:{text:(0,s.getSR)().columnTypeLookupTables},onChange:function(t){var e,n,e,n=function(){i.MUe(i.Pq.slice(2)),i.Pq=i.Pq.slice(0,2),i.ltt().setValue()};(null==t?void 0:t.value)?(0===i.nYe.length?i.nYe.push(t.lookup):(i.nYe=[t.lookup],n()),o=i.LEt.getLookup(i.aYe()),i.ltt().setOptions({items:o.map(function(t){return{lookup:t,value:t.table,text:t.table,iconClass:""}})}),i.ltt().isDisable()&&i.ltt().resetDisable()):(i.nYe=[],n(),i.ltt().isDisable()||i.ltt().resetDisable()),i.F_e()}});if(n.create().appendTo(e),i.Pq.push({fieldSelect:n}),i.rYe(),t&&(n.setValue(null==(e=t[0])?void 0:e.table),1<t.length)&&i.ltt().setValue(t[1],t[0]),t&&2<t.length)for(u=2;u<t.length;u++)a=t[u],(r=i.Pq[u]).fieldSelect.setValue(a.table),r.fieldNumber&&i.cYe(r.fieldNumber,t[u-1].isMany,a.index)},o.prototype.rYe=function(t,e){var n,u,i,n,o,a,n,u=this,i=!!t,n=u.oYe,o=(0,r.GC$)(h("div"));o.appendTo(n),o.addClass("gc-defined-column-look-up-field-container"),(n=new l.EZe({inputId:"lookup-fields-number"+(t?"-"+t:"")+"-"+(u.Pq.length-1),minValue:0,maxValue:Number.MAX_SAFE_INTEGER,allowMinNull:!0,enable:i,visible:!(null==(n=u.nYe[u.Pq.length-1])||!n.isMany),label:{text:(0,s.getSR)().columnTypeLookupIndexes},onChange:function(t){var e,n,i,e=u.Pq.findIndex(function(t){return t.fieldSelect===a}),n=a.item.lookup,i=t||d.keyword_undefined;n?(n.index=t||d.keyword_undefined,u.nYe[e]?u.nYe[e]=n:u.nYe.push(n)):u.nYe[e]?u.nYe[e].index=i:u.nYe.push({table:d.keyword_null,index:i}),u.F_e()}})).create().appendTo(o),(a=new f.GZe({inputId:"lookup-fields"+(t?"-"+t:"")+"-"+u.Pq.length,enable:i,enableSearch:!0,stickItem:{value:d.keyword_undefined,text:(0,s.getSR)().defineColumnNone,iconClass:""},items:i?e.map(function(t){return{lookup:t,value:t.table,text:t.table,iconClass:""}}):[],label:{text:(0,s.getSR)().columnTypeLookupFields},onChange:function(t){var e,n,i,o,e,t,n=null==t?void 0:t.value,i=u.Pq.findIndex(function(t){return t.fieldSelect===a}),o=function(){var t=i+1;u.nYe=u.nYe.slice(0,t),u.MUe(u.Pq.slice(t)),u.Pq=u.Pq.slice(0,t)},e=null==(e=u.Pq[i].fieldNumber)?void 0:e.value;n?(u.nYe[i]?(u.nYe[i]=t.lookup,u.nYe[i].index=e,o()):u.nYe.push(t.lookup),t.lookup.isTable&&(t=u.LEt.getLookup(u.aYe()))&&0<t.length&&u.rYe(n,t)):(o(),u.nYe[i]&&(u.nYe[i]=c(c({},u.nYe[i]),{table:d.keyword_null}),e||(u.nYe[i].index=d.keyword_null))),u.F_e()}})).create().appendTo(o),u.Pq.push({fieldSelect:a,fieldNumber:n,lookupFieldContainer:o}),a.setValue()},o.prototype.ltt=function(){var n,t,i,o,n=this,t=n.Pq[1],i=t.fieldSelect,o=t.fieldNumber;return{setValue:function(t,e){i.setValue(null==t?void 0:t.table),n.cYe(o,null==e?void 0:e.isMany,null==t?void 0:t.index)},resetDisable:function(){i.resetDisable(),o.resetDisable()},isDisable:function(){return i.isDisable()},setOptions:function(t){var t;i.setOptions(t),n.cYe(o,n.nYe[0].isMany,null==(t=n.nYe[1])?void 0:t.index)}}},o.prototype.cYe=function(t,e,n){e?(t.setOptions({visible:!0}),t.setValue(n)):(t.setOptions({visible:!1}),t.setValue())},o.prototype.uYe=function(t){for(var i,o,u,e,a,n,r,i=this,o=[],u=t?t.split("."):[],e=function(t,e){var n,t,n=u[t];Number.isInteger(Number(n))?o[e]=c(c({},o[e]),{index:Number(n)}):(t=i.LEt.getLookup(u.slice(0,t).join(".")),o[e]=c(c(c({},o[e]),{table:n}),t.find(function(t){return t.table===n})),e++),a=e},n=0,r=0;n<u.length;n++)e(n,r),r=a;return o},o.prototype.aYe=function(t){var e,n,i,o,e=this,n="";if(t){for(i=0;i<e.nYe.length;i++)(o=e.nYe[i]).index&&(n+=".".concat(o.index)),o.table&&(n+=".".concat(o.table));n=n.slice(1)}else n=e.nYe.map(function(t){return t.table}).join(".");return n},o.prototype.F_e=function(){var t,e,t=this,e=t.aYe(!0);t.LEt.onChange(e)},o.prototype.validate=function(){var t,t;return null==(t=null==(t=this.Pq[0])?void 0:t.fieldSelect)?void 0:t.validate()},o.prototype.MUe=function(t){for(var e,n,i,o,u,a,o,e=function(t){t&&(t.dispose?t.dispose(!0):t.unbind&&t.unbind("click"))},n=0,i=t;n<i.length;n++)u=(o=i[n]).fieldSelect,a=o.fieldNumber,o=o.lookupFieldContainer,u&&e(u),a&&e(a),o&&o.remove();return[]},o.prototype.dispose=function(){var t=this;t.MUe(t.Pq),t.Pq=[],t.oYe=d.keyword_null},e.iYe=o},"./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-mask.js":function(t,e,n){var a,r,c,s,l,f,d,n,h,i;function o(t){var e=this;e.LEt=t,e.y4={pattern:t.pattern,placeholder:t.placeholder,excludeLiteral:t.excludeLiteral,excludePlaceholder:t.excludePlaceholder}}a=this&&this.__assign||function(){return(a=Object.assign||function(t){for(var e,n,i,o,n=1,i=arguments.length;n<i;n++)for(o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},Object.defineProperty(e,"__esModule",{value:!0}),e.sYe=void 0,r=n("Core"),c=n("DataManager"),s=n("./dist/plugins/tableSheet/tableSheet.js"),l=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-checkbox.js"),f=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-input.js"),d=null,n=r.mt,h=n.En,o.prototype.create=function(){var t;return this.ZX()},o.prototype.ZX=function(){var e,n,i,t,o,o,o,u,u,e=this,n=e.LEt,i=n.onChange,t=(0,r.GC$)(h("div"));return t.addClass("gc-defined-column-mask-container"),(o=e.lYe=new f._Ze({inputId:"pattern",label:{text:(0,s.getSR)().columnTypeMask.pattern},onChange:function(t){e.y4.pattern=(0,c.isNullOrEmpty)(t)?n.pattern:t,i&&i(a({},e.y4))}})).create().appendTo(t),n.pattern&&o.setValue(n.pattern),(o=e.fYe=new f._Ze({inputId:"placeholder",maxLength:1,label:{text:(0,s.getSR)().columnTypeMask.placeholder},onChange:function(t){e.y4.placeholder=(0,c.isNullOrEmpty)(t)?d:t,i&&i(a({},e.y4))}})).create().appendTo(t),n.placeholder&&o.setValue(n.placeholder),(o=(0,r.GC$)(h("div"))).addClass("gc-defined-column-mask-exclude-container"),o.appendTo(t),(u=e.Lse=new l.YZe({label:{text:(0,s.getSR)().columnTypeMask.excludeLiteral},onChange:function(t){e.y4.excludeLiteral=t,i&&i(a({},e.y4))}})).create().appendTo(o),n.excludeLiteral&&u.setValue(n.excludeLiteral),(u=e.Fse=new l.YZe({label:{text:(0,s.getSR)().columnTypeMask.excludePlaceholder},onChange:function(t){e.y4.excludePlaceholder=t,i&&i(a({},e.y4))}})).create().appendTo(o),n.excludePlaceholder&&u.setValue(n.excludePlaceholder),t},o.prototype.dispose=function(){var t=this;t.lYe.dispose(),t.lYe=d,t.fYe.dispose(),t.fYe=d,t.Lse.dispose(),t.Lse=d,t.Fse.dispose(),t.Fse=d},e.sYe=o},"./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-modified-fields.js":function(t,e,n){var i,o,u,a,r,c,n,s,l;function f(t){var e;this.LEt=t}i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,n,i,o,n=1,i=arguments.length;n<i;n++)for(o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},Object.defineProperty(e,"__esModule",{value:!0}),e.dYe=void 0,o=n("Core"),u=n("./dist/plugins/tableSheet/tableSheet.js"),a=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-checkbox.js"),r=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-list.js"),c=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-utils.js"),n=o.mt,s=n.En,f.prototype.create=function(){var t,e,t=this,e;return(t.hYe=(0,o.GC$)(s("div"))).addClass("gc-defined-column-modified-fields-container"),t.ZX()},f.prototype.ZX=function(){var t,e,n,i,t,n,e=this,n=e.LEt,i=e.hYe,t=(null==(t=n.fields)?void 0:t.split(","))||[];return e.gYe=new a.YZe({label:{text:(0,u.getSR)().columnTypeAllEditableFields},onChange:function(t){var t,t,t,t;t?(e.fields="*",e.bQe(),null!=(t=e.bYe)&&t.isDisable()||null!=(t=e.bYe)&&t.resetDisable()):null!=(t=e.bYe)&&t.isDisable()&&null!=(t=e.bYe)&&t.resetDisable()}}),e.gYe.create().appendTo(i),n=(0,c.isNullOrUndefined)(n.fields)||t.length===e.vYe().length||"*"===n.fields,e.gYe.setValue(n),e.bYe=new r.rQe({label:{text:(0,u.getSR)().GroupPanelFieldsHeader},enableMultiSelected:!0,items:e.vYe(),enable:!e.gYe.value,onChange:function(t){e.fields=t.join(","),t.length===e.vYe().length&&e.gYe.setValue(!0),e.bQe()}}),e.bYe.create().appendTo(i),e.bYe.setValue(t),i},f.prototype.vYe=function(){for(var t,e,n,i,o,u,t,e,n=[],i=0,o=this.LEt.getTriggerFields();i<o.length;i++)u=o[i],n.push({value:u});return n},f.prototype.bQe=function(){var t=this;t.LEt.onChange({fields:t.fields})},f.prototype.setOptions=function(t){var e=this;e.LEt=i(i({},e.LEt),t),e.clear(),e.ZX()},f.prototype.clear=function(){var t=this;t.L0(),t.hYe.empty()},f.prototype.dispose=function(){var t=this;t.clear(),t.hYe=c.keyword_null},f.prototype.L0=function(){var t=this;t.gYe&&t.gYe.dispose(),t.gYe=c.keyword_null,t.bYe&&t.bYe.dispose(),t.bYe=c.keyword_null},e.dYe=f},"./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-number-formatting.js":function(t,e,n){var i,m,o,N,u,a,r,D,c,s,j,l,n,f,d,h;function g(t){var e;this.LEt=t}i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,n,i,o,n=1,i=arguments.length;n<i;n++)for(o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},Object.defineProperty(e,"__esModule",{value:!0}),e.UQe=void 0,m=n("Common"),o=n("Core"),N=n("./dist/plugins/tableSheet/tableSheet.js"),u=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-input-number.js"),a=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-checkbox.js"),r=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-list.js"),D=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-formatting.js"),c=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-preview.js"),s=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-select.js"),j=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-utils.js"),l=m.Formatter&&m.Formatter.GeneralFormatter,n=o.mt,f=n.En,d=n.St,g.prototype.create=function(){var t,e,t=this,e;return(t.MYe=(0,o.GC$)(f("div"))).addClass("gc-defined-column-number-formatting-container"),t.ZX()},g.prototype.ZX=function(){var t,e,n,i,o,t=this,e=t.LEt,n=t.MYe,i=(0,D.parseFormat)(e.formatter),o=e.type||i.category;return t.IYe=new u.EZe({inputId:"number-formatting-decimal-places",maxValue:16,label:{text:(0,N.getSR)().columnTypeNumberFormattingDecimalPlaces},onChange:function(){6!==o&&t.mYe.setOptions({items:t.NYe()}),t.bQe()}}),t.IYe.create().appendTo(n),6===o?(t.jQe().appendTo(n),t.IYe.setValue(i.decimalPlaces)):((2===o?(t.oUt=new s.GZe({inputId:"number-formatting-symbol",items:(0,D.getListItems)(2,[{text:(0,N.getSR)().columnTypeNumberFormatting.accountingSymbol[0][0],value:(0,N.getSR)().columnTypeNumberFormatting.accountingSymbol[0][0]}]),label:{text:(0,N.getSR)().columnTypeNumberFormattingSymbol},onChange:function(){t.mYe.setOptions({items:t.NYe()}),t.bQe()}}),t.oUt):(t.DYe=new a.YZe({label:{text:(0,N.getSR)().columnTypeNumberFormattingThousandSeparator},onChange:function(){t.mYe.setOptions({items:t.NYe()}),t.bQe()}}),t.DYe)).create().appendTo(n),t.mYe=new r.rQe({label:{text:(0,N.getSR)().columnTypeNumberFormattingNegativeNumbers},items:t.NYe(),onChange:function(){t.bQe()}}),t.mYe.create().appendTo(n),t.jQe().appendTo(n),t.mYe.setIndex(0),t.IYe.setValue((0,j.isNullOrUndefined)(i.decimalPlaces)?2:i.decimalPlaces),2===o?i.locale?t.oUt.setValue(i.locale):t.oUt.setIndex(1):t.DYe.setValue(i.useThousand||!1),t.mYe.setIndex((0,j.isNullOrUndefined)(i.index)?0:i.index)),n},g.prototype.bQe=function(){var t=this,e=t.CQe();t.LEt.onChange(e)},g.prototype.CQe=function(){var t,e,n,t=this,e=6===t.LEt.type?t.jYe(t.IYe.value):2===t.LEt.type?t.CYe(t.mYe.value):t.wYe(t.mYe.index,t.IYe.value,t.DYe.value),n=t.Re("12345",e);return t.wQe.setText(n),e},g.prototype.jYe=function(t){var e,n,i,e="";if(0<t){for(i=0;i<t;i++)e+="0";n="0."+e+"%"}else n="0%";return n},g.prototype.CYe=function(t){return t},g.prototype.wYe=function(t,e,n){var i,o,u,a,r,i=(0,N.getSR)().columnTypeNumberFormatting.numberCategoryFormats,o=i.length/2,u=i[t];if(n&&(u=i[t+o]),0<e){for(a="",r=0;r<e;r++)a+="0";u=u.replace(/0/g,"0."+a)}return u},g.prototype.NYe=function(){var t=this,e;return 2===t.LEt.type&&0!==t.oUt.index?t.pYe():t.yYe()},g.prototype.yYe=function(){var t,e,n,i,o,n,u,a,r,c,s,l,f,f,t="1234.10",e=this.IYe.value,n=this.DYe&&this.DYe.value;if(0<e){for(i="",o=0;o<e;o++)i=(o%10).toString()+i.substring(0);t=t.substring(0,t.indexOf(".")+1)+i}else t=t.substring(0,t.indexOf("."));for(n&&(n=t.indexOf("1"),t=t.substring(0,n+1)+","+t.substring(n+1)),u=[],a=(0,N.getSR)().columnTypeNumberFormatting.negativeNumbers,r=0,c=Object.keys(a);r<c.length;r++)l=t,-1!==(f=a[s=c[r]]).indexOf("-")&&(l="-"+l),-1!==f.indexOf(")")&&(l="("+l+")"),-1!==f.indexOf("\u25b3")&&(l="\u25b3"+l),f={text:l=-1!==f.indexOf("\u25b2")?"\u25b2"+l:l,value:s,class:j.keyword_null},-1!==s.indexOf("red")&&(f.class="gc-defined-column-number-formatting-negative-item"),u.push(f);return u},g.prototype.pYe=function(){var t,e,n,i,o,u,a,r,c,s,l,f,d,h,g,b,v,v,M,I,b,t=this.IYe.value,e=this.oUt.value,n=[],i="-1234",o="",u="";if(0<t){for(u="."+Array(t).fill(0).join(""),a=Array(t),r=0;r<t;)a[r]=r%10,r++;a.reverse(),o=a.join("")}for(s=parseFloat(c=i+"."+o),l=(0,j.isNullOrUndefined)(e)||e===(0,N.getSR)().columnTypeNumberFormatting.accountingSymbol[0][0]?(0,N.getSR)().columnTypeNumberFormatting.currencyFormatWithoutSymbol:(0,D.getPredefinedFormats)(e,D.formatCategories[2]),f=/(\[[^\$^\]]+\])?(\[\$[^\]]+\])?(.*)(0)([^\[]*)(\[\$[^\]]+\])?/,d=0,h=l.length;d<h;d++)b=(g=l[d]).split(";"),v=(0,D.beforeAdjustFormatString)(b),b=b.map(function(t){return t.replace(f,function(){for(var t,e,n,t=[],e=1;e<7;e++)(0,j.isNullOrUndefined)(n=arguments[e])||(2!==e&&6!==e&&(n=n.replace(D.decimalPlacesWithZeroDotReg,"0"+u)),t.push(n));return t.join("")})}),(0,D.afterAdjustFormatString)(b,v),g=b.join(";"),v={},b={text:I=(M=new m.Formatter.GeneralFormatter(g)).format(s,v),value:g},(v.conditionalForeColor&&"red"===v.conditionalForeColor.toLowerCase()||"#FF0000"===v.conditionalForeColor)&&(b.class="gc-defined-column-number-formatting-negative-item"),n.push(b);return n},g.prototype.jQe=function(){var t,e,t,e;return(this.wQe=new c.pQe).create()},g.prototype.Re=function(t,e){var n,i;return d(e)?(n=(0,j.isNullOrUndefined)(t)?0:t,e.replace(/@/g,n)):(i=new l(e)).format(t)},g.prototype.setOptions=function(t){var e=this;e.LEt=i(i({},e.LEt),t),e.clear(),e.ZX()},g.prototype.clear=function(){var t=this;t.L0(),t.MYe.empty()},g.prototype.dispose=function(){var t=this;t.clear(),t.MYe=j.keyword_null},g.prototype.L0=function(){var t=this;t.IYe.dispose(),t.IYe=j.keyword_null,t.DYe&&t.DYe.dispose(),t.DYe=j.keyword_null,t.mYe&&t.mYe.dispose(),t.mYe=j.keyword_null,t.oUt&&t.oUt.dispose(),t.oUt=j.keyword_null,t.wQe.dispose(),t.wQe=j.keyword_null},e.UQe=g},"./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-popup.js":function(Z,t,e){var n,r,a,c,s,i,o,u,l,f,d,h,g,b,v,M,I,m,N,D,j,C,w,p,x,y,A,T,S,z,e,L,U,O,k;function E(t,e,n){var t,e,t=k.call(this,t,e)||this;return t.xT=[],(e=t).LEt=n,e.xYe=n.column,e.AYe={},e.Wc=e.Xc(),e._hidden(),t}n=this&&this.__extends||(O=function(t,e){return(O=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}O(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,n,i,o,n=1,i=arguments.length;n<i;n++)for(o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},Object.defineProperty(t,"__esModule",{value:!0}),t.TZe=void 0,a=e("Core"),c=e("./dist/plugins/tableSheet/tableSheet.js"),s=e("./dist/plugins/tableSheet/tableSheet.interface.js"),i=e("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-select-types.js"),o=e("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-input.js"),u=e("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-tabs.js"),l=e("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-number-formatting.js"),f=e("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-date-formatting.js"),d=e("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-date-time-picker.js"),h=e("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-modified-fields.js"),g=e("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-attachment.js"),b=e("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-attachment-margin.js"),v=e("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-checkbox-cell-type.js"),M=e("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-checkbox-cell-type-text.js"),I=e("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-lookup.js"),m=e("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-formatting-select.js"),N=e("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-input-formula.js"),D=e("DataManager"),j=e("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-utils.js"),C=e("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-mask.js"),w=e("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-barcode/tablesheet-define-column-barcode-base.js"),p=e("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-barcode/tablesheet-define-column-barcode-utils.js"),x=e("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-barcode/tablesheet-define-column-barcode-options-container.js"),y=e("CellTypes"),A=e("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-combobox.js"),T=e("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-combobox-style.js"),S=e("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-url.js"),z="keydown.definedColumn.gcSheet",e=a.mt,L=e.En,k=a.zc,n(E,k),E.prototype.LF=function(){var e=this,t=e.Wc;t.css(["box-shadow","width","box-sizing","overflow-y"],["rgba(0, 0, 0, 0.15) 2px 4px 5px","400px","content-box","auto"]),t.addClass("gc-defined-column-container"),t.appendTo(e.qc()),e.TYe(),(0,a.GC$)(j.DOCUMENT).bind(z,function(t){27===t.keyCode&&e.close()})},E.prototype.lf=function(t){var e,n,n;return this.AYe.type===s.ColumnTypes.Formula&&-1<(null==(e=(0,a.GC$)(t).attr("class"))?void 0:e.indexOf("gcsj-func-ac"))||k.prototype.lf.call(this,t)},E.prototype.SYe=function(t,e){var t=new o._Ze(t),n=t.create();return(0,j.isNullOrUndefined)(e)||t.setValue(e),{input:t,elem:n}},E.prototype.zYe=function(t,e){var t=this.SYe(t,e),e=t.input,t=t.elem;return this.xT.push(e),t},E.prototype.TYe=function(){var u,t,e,n,u=this,t=u.Wc,e=(0,a.GC$)(L("div"));e.addClass("gc-defined-column-content-container"),e.appendTo(t),u.zYe({inputId:"value",placeholder:(0,c.getSR)().defineColumnValue,validate:{validating:function(t){var e,n,i,o,e=u.AYe.type,n=e===s.ColumnTypes.Formula;return n||((0,D.isNullOrEmpty)(t)?{success:!1,errorMessage:(0,c.getSR)().defineColumnRequired}:(i=u.LEt.getColumnBy(t),(o=0!==Object.keys(u.xYe).length&&t===u.xYe.value||!i||!1===i.visible)?!(!n&&(0,j.isFormula)(t)&&e!==s.ColumnTypes.Lookup&&((0,j.isRelation)(t)||u.LEt.isRelationship(t))):{success:!1,errorMessage:(0,c.getSR)().defineColumnExisted}))}},onBlur:function(){u.AYe.type===s.ColumnTypes.Barcode&&u.LYe(u.t())},onChange:function(t){u.AYe.value=t}},u.xYe.value).appendTo(e),u.zYe({inputId:"caption",placeholder:(0,c.getSR)().defineColumnCaption,onChange:function(t){u.AYe.caption=t}},u.xYe.caption).appendTo(e),n=u.OYe(),u.kYe().appendTo(e),n.appendTo(e),u.EYe().appendTo(t)},E.prototype.kYe=function(){var o,t,e,n,o=this,t=new i.ZYe({items:o.LEt.columnTypeItems,onChange:function(t){var e,n,i,e=o.xT[0],n;e.isDisable()?(e.resetDisable(),(i=e.value)&&o.LEt.isRelationship(i)&&(e.setValue(j.keyword_null),o.AYe.value=j.keyword_null)):t.name===s.ColumnTypes.Lookup&&o.xYe.value&&o.LEt.isRelationship(o.xYe.value)&&(e.setValue(o.xYe.value),o.AYe.value=o.xYe.value),o.AYe={value:o.AYe.value,caption:o.AYe.caption,type:t.name},o.UYe(t)}}),e=t.create();return(0,j.isNullOrUndefined)(o.xYe.type)?0<Object.keys(o.xYe).length&&("number"===o.xYe.dataType?t.setValue(s.ColumnTypes.Number):"date"===o.xYe.dataType?t.setValue(s.ColumnTypes.Date):"boolean"===o.xYe.dataType?t.setValue(s.ColumnTypes.Checkbox):(0,j.isFormula)(o.xYe.formula)?t.setValue(s.ColumnTypes.Formula):o.LEt.isRelationship(o.xYe.value)?t.setValue(s.ColumnTypes.Lookup):(n=o.LEt.getSampleValue(o.xYe),(0,j.isNumber)(n)?t.setValue(s.ColumnTypes.Number):(0,j.isDate)(n)?t.setValue(s.ColumnTypes.Date):(0,j.isString)(n)?t.setValue(s.ColumnTypes.Text):(0,j.isBoolean)(n)&&t.setValue(s.ColumnTypes.Checkbox))):t.setValue(o.xYe.type),o.xT.push(t),e},E.prototype.Ue=function(){var t=this;return t.AYe&&t.AYe.style&&t.AYe.style.formatter?t.AYe.style.formatter:t.xYe&&t.xYe.style&&t.xYe.style.formatter?t.xYe.style.formatter:j.keyword_null},E.prototype.BYe=function(){var t=this;return t.AYe&&t.AYe.style&&t.AYe.style.cellType?t.AYe.style.cellType:t.xYe&&t.xYe.style&&t.xYe.style.cellType?t.xYe.style.cellType:j.keyword_null},E.prototype.GYe=function(){var t=this;return t.AYe&&t.AYe.style&&t.AYe.style.dropDowns?t.AYe.style.dropDowns[0].option:t.xYe&&t.xYe.style&&t.xYe.style.dropDowns?t.xYe.style.dropDowns[0].option:j.keyword_null},E.prototype.RYe=function(){var t=this;return t.AYe&&t.AYe.trigger&&t.AYe.trigger.fields?t.AYe.trigger.fields:t.xYe&&t.xYe.trigger&&t.xYe.trigger.fields?t.xYe.trigger.fields:j.keyword_null},E.prototype.GWe=function(){var t=this,e=t.AYe,t=t.xYe;return 0<Object.keys(t).length&&!(0,D.isNullOrEmpty)(t.type)&&t.type!==e.type},E.prototype.BWe=function(t){var e,n,i,e=this;if(e.GWe())e.AYe.style=t;else{for(i in(0,j.isNullOrUndefined)(e.AYe.style)&&(e.AYe.style={}),n=e.xYe.style)n.hasOwnProperty(i)&&(e.AYe.style[i]=(0,j.cloneObject)(n[i],!1));for(i in t)t.hasOwnProperty(i)&&(e.AYe.style[i]=t[i])}},E.prototype.UYe=function(t){var e=this;switch(e.PYe.xT=e.MUe(e.PYe.xT),e.PYe.empty(),t.name){case s.ColumnTypes.Text:e.AYe.dataType="string",e.QYe().appendTo(e.PYe);break;case s.ColumnTypes.Number:e.ZQe(1);break;case s.ColumnTypes.Percent:e.ZQe(6,s.ColumnTypes.Percent.toLowerCase());break;case s.ColumnTypes.Currency:e.ZQe(2,s.ColumnTypes.Currency.toLowerCase());break;case s.ColumnTypes.Lookup:e.YYe();break;case s.ColumnTypes.Formula:e.WYe();break;case s.ColumnTypes.Phone:e.HYe();break;case s.ColumnTypes.Email:e.VYe();break;case s.ColumnTypes.URL:e.FYe();break;case s.ColumnTypes.Date:e.BQe(4,s.ColumnTypes.Date.toLowerCase());break;case s.ColumnTypes.CreatedTime:e.BQe(4,s.ColumnTypes.CreatedTime.toLowerCase());break;case s.ColumnTypes.ModifiedTime:e.BQe(4,s.ColumnTypes.ModifiedTime.toLowerCase());break;case s.ColumnTypes.Barcode:e._Ye();break;case s.ColumnTypes.Attachment:e.JYe();break;case s.ColumnTypes.Checkbox:e.XYe();break;case s.ColumnTypes.Select:e.KYe()}},E.prototype.ZQe=function(n,t){var i=this;t=t?"-"+t:"",i.AYe.dataType="number",i.qYe([{typeId:"number-formatting"+t,title:(0,c.getSR)().defineColumnFormatting,onInitPanel:function(t){var e=new l.UQe({type:n,formatter:i.Ue(),onChange:function(t){i.BWe({mask:{pattern:"[-]{0,1}0{0,}[.]{0,1}0{0,}"},formatter:t})}});e.create().appendTo(t),i.PYe.xT.push(e)}},{typeId:"number-default"+t,title:(0,c.getSR)().defineColumnDefaultValue,onInitPanel:function(t){i.QYe().appendTo(t)}}]).appendTo(i.PYe)},E.prototype.YYe=function(){var n,i,o,u,n=this,i=n.xT[0];i.resetDisable(),o={formattingSelect:j.keyword_null},u=n.$Ye(o,"value"),n.qYe([{typeId:"lookup",title:(0,c.getSR)().defineColumnConfiguration,onInitPanel:function(t){var e=new I.iYe({getLookup:function(t){return n.LEt.getLookup(t)},onChange:function(t){o.formattingSelect&&(i.setValue(t),n.AYe.value=t,u())}});e.create(n.AYe.value||n.xYe.value).appendTo(t),n.PYe.xT.push(e)}},{typeId:"lookup-formatting",title:(0,c.getSR)().defineColumnFormatting,onInitPanel:function(t){o.formattingSelect=new m.kQe({formatter:n.Ue(),onChange:function(t){n.BWe({formatter:t})}}),o.formattingSelect.create().appendTo(t),u(),n.PYe.xT.push(o.formattingSelect)}}]).appendTo(n.PYe)},E.prototype.$Ye=function(e,n){var i,o,u,a,t,i=this,o=i.PYe.xT,u=o.length,a=function(t){t===o[u].isDisable(1)&&o[u].resetDisable(1)},t;return function(){var t,t,t,t=r(r({},i.xYe),i.AYe),t=t[n]&&i.LEt.getSampleValue(t),t=e.formattingSelect&&e.formattingSelect.createFormatting(t);a(t)}},E.prototype.WYe=function(){var n,i,o,n=this;n.AYe.dataType="formula",i={formattingSelect:j.keyword_null},o=n.$Ye(i,"formula"),n.qYe([{typeId:"formula",title:(0,c.getSR)().defineColumnFormula,onInitPanel:function(t){var e=new N.GQe({validate:{validating:function(t){return!(0,D.isNullOrEmpty)(t)&&"="!==t||{success:!1,errorMessage:(0,c.getSR)().defineColumnRequired}}},getColumnFields:function(){return n.LEt.getColumnFields()},onChange:function(t){i.formattingSelect&&(n.AYe.formula=t,o())}});e.create().appendTo(t),e.setValue(n.AYe.formula||n.xYe.formula),n.PYe.xT.push(e)}},{typeId:"formula-formatting",title:(0,c.getSR)().defineColumnFormatting,onInitPanel:function(t){i.formattingSelect=new m.kQe({formatter:n.Ue(),onChange:function(t){n.BWe({formatter:t})}}),i.formattingSelect.create().appendTo(t),o(),n.PYe.xT.push(i.formattingSelect)}}]).appendTo(n.PYe)},E.prototype.FYe=function(){var n,i,o,u,n=this;n.AYe.dataType="string",(i=n.BYe())&&"hyperlink"===i.type&&(o=i.linkColor,u=i.visitedLinkColor),n.qYe([{typeId:"url",title:(0,c.getSR)().defineColumnConfiguration,onInitPanel:function(t){var e=new S.eWe({linkColor:o,visitedLinkColor:u,onChange:function(t){n.BWe({cellType:{type:"hyperlink",linkColor:t.linkColor,visitedLinkColor:t.visitedLinkColor,target:null==i?void 0:i.target}})}});e.create().appendTo(t),n.PYe.xT.push(e)}},{typeId:"url-default",title:(0,c.getSR)().defineColumnDefaultValue,onInitPanel:function(t){n.QYe().appendTo(t)}}]).appendTo(n.PYe)},E.prototype.HYe=function(){this.nWe("phone","1 \\(0{3}\\) 0{3}-0{4}")},E.prototype.VYe=function(){this.nWe("email","[a0._\\-]{1,}@[a0._\\-]{1,}.(com|cn|gov|edu)")},E.prototype.nWe=function(t,n){var i,o,i=this;i.AYe.dataType="string",o=i.oWe(),i.qYe([{typeId:t,title:(0,c.getSR)().defineColumnConfiguration,onInitPanel:function(t){var e,e,e=new C.sYe({pattern:null!=(e=o.pattern)?e:n,placeholder:o.placeholder,excludeLiteral:o.excludeLiteral,excludePlaceholder:o.excludePlaceholder,onChange:function(t){i.BWe({mask:t})}});e.create().appendTo(t),i.PYe.xT.push(e)}},{typeId:t+"-default",title:(0,c.getSR)().defineColumnDefaultValue,onInitPanel:function(t){i.QYe().appendTo(t)}}]).appendTo(i.PYe)},E.prototype.oWe=function(){var t=this;return t.AYe&&t.AYe.style&&t.AYe.style.mask?t.AYe.style.mask:t.xYe&&t.xYe.style&&t.xYe.style.mask?t.xYe.style.mask:{}},E.prototype.BQe=function(t,e){var n=this;n.qYe(n.uWe(t,e)).appendTo(n.PYe)},E.prototype.uWe=function(n,t){var i,e,o,u,i=this,e=t?"-"+t:"";return i.AYe.dataType="date",t!==s.ColumnTypes.CreatedTime.toLowerCase()&&t!==s.ColumnTypes.ModifiedTime.toLowerCase()||(i.AYe.readonly=!0,i.AYe.trigger={formula:"=NOW()",when:t===s.ColumnTypes.CreatedTime.toLowerCase()?"onNew":"onNewAndUpdate"}),t===s.ColumnTypes.CreatedTime.toLowerCase()&&(i.AYe.defaultValue="=NOW()"),o=[],t===s.ColumnTypes.Date.toLowerCase()?(u=i.GYe(),o.push({typeId:"date-time-piker"+e,title:(0,c.getSR)().defineColumnConfiguration,onInitPanel:function(t){var e=new d.yQe({type:n,calendarPage:null==u?void 0:u.calendarPage,showTime:null==u?void 0:u.showTime,showDateRange:null==u?void 0:u.showDateRange,startDay:null==u?void 0:u.startDay,showBuiltInDateRange:null==u?void 0:u.showBuiltInDateRange,onChange:function(t){i.BWe({cellButtons:[{imageType:a.ButtonImageType[a.ButtonImageType.dropdown],command:"openDateTimePicker",useButtonStyle:!1,visibility:a.ButtonVisibility[a.ButtonVisibility.always],buttonBackColor:"transparent"}],dropDowns:[{type:a.DropDownType[a.DropDownType.dateTimePicker],option:{startDay:t.startDay,calendarPage:t.calendarPage,showTime:t.showTime,showDateRange:null==u?void 0:u.showDateRange,showBuiltInDateRange:null==u?void 0:u.showBuiltInDateRange}}]})}});e.create().appendTo(t),i.PYe.xT.push(e)}})):t===s.ColumnTypes.ModifiedTime.toLowerCase()&&o.push({typeId:"modified-fields"+e,title:(0,c.getSR)().defineColumnConfiguration,onInitPanel:function(t){var e=new h.dYe({fields:i.RYe(),getTriggerFields:function(){return i.LEt.getTriggerFields()},onChange:function(t){i.AYe.trigger.fields=t.fields}});e.create().appendTo(t),i.PYe.xT.push(e)}}),o.push({typeId:"date-formatting"+e,title:(0,c.getSR)().defineColumnFormatting,onInitPanel:function(t){var e=new f.dQe({formatter:i.Ue(),onChange:function(t){i.BWe({formatter:t.formatter})}});e.create().appendTo(t),i.PYe.xT.push(e)}}),o},E.prototype.t=function(){var t=this,e=t.Ue(),t,n=t.AYe.value||t.xYe.value,t=e?(0,p.parseBarCodeOptions)(t.LEt.getSheet(),e):(0,p.getDefaultBarcodeOptions)(n);return t},E.prototype.LYe=function(t){var e=this;t.value=(0,p.getFieldRef)(e.AYe.value||e.xYe.value),e.BWe({formatter:(0,p.createBarcodeFormula)(e.LEt.getSheet(),t)})},E.prototype._Ye=function(){var n=this,i=n.t(),o={container:j.keyword_null};n.Ue()||n.LYe(i),n.qYe([{typeId:"barcode-base",title:(0,c.getSR)().defineColumnConfiguration,onInitPanel:function(t){var e=new w.IUe({option:i,onChange:function(t,e){n.LYe(t),e&&o.container.reset()}});e.create().appendTo(t),n.PYe.xT.push(e)}},{typeId:"barcode-options",title:(0,c.getSR)().defineColumnOthers,onInitPanel:function(t){var t=o.container=new x.LUe({panel:t,option:i,onChange:function(t){n.LYe(t)}});t.create(),n.PYe.xT.push(t)}},{typeId:"barcode-default",title:(0,c.getSR)().defineColumnDefaultValue,onInitPanel:function(t){n.QYe().appendTo(t)}}]).appendTo(n.PYe)},E.prototype.JYe=function(){var n,i,o,n=this,i={type:"fileUpload"},o=n.BYe();n.qYe([{typeId:"attachment",title:(0,c.getSR)().defineColumnConfiguration,onInitPanel:function(t){var e=new g.UZe({fileType:null==o?void 0:o.accept,maxSize:null==o?void 0:o.maxSize,preview:null==o?void 0:o.isPreviewEnabled,download:null==o?void 0:o.isDownloadEnabled,clear:null==o?void 0:o.isClearEnabled,onChange:function(t){i.accept=t.fileType,i.maxSize=t.maxSize,i.isPreviewEnabled=!!t.preview,i.isDownloadEnabled=!!t.download,i.isClearEnabled=!!t.clear,n.BWe({hAlign:a.HorizontalAlign[a.HorizontalAlign.center],vAlign:a.VerticalAlign[a.VerticalAlign.center],cellType:i})}});e.create().appendTo(t),n.PYe.xT.push(e)}},{typeId:"attachment-margin",title:(0,c.getSR)().columnTypeAttachmentMarginGroup,onInitPanel:function(t){var e=new b.OZe({marginLeft:null==o?void 0:o.marginLeft,marginRight:null==o?void 0:o.marginRight,marginTop:null==o?void 0:o.marginTop,marginBottom:null==o?void 0:o.marginBottom,onChange:function(t){i.marginLeft=t.marginLeft,i.marginRight=t.marginRight,i.marginTop=t.marginTop,i.marginBottom=t.marginBottom}});e.create().appendTo(t),n.PYe.xT.push(e)}}]).appendTo(n.PYe)},E.prototype.XYe=function(){var n,i,o,n=this,i={type:"checkbox"};n.AYe.dataType="boolean",o=n.BYe(),n.qYe([{typeId:"checkbox",title:(0,c.getSR)().defineColumnConfiguration,onInitPanel:function(t){var e=new v.WUe({caption:null==o?void 0:o.caption,boxSize:null==o?void 0:o.boxSize,autoBoxSize:"auto"===(null==o?void 0:o.boxSize),onChange:function(t){i.caption=t.caption,i.boxSize=t.boxSize,t.autoBoxSize&&(i.boxSize="auto"),n.BWe({cellType:i})}});e.create().appendTo(t),n.PYe.xT.push(e)}},{typeId:"checkbox-text",title:(0,c.getSR)().columnTypeCheckboxTextGroup,onInitPanel:function(t){var e=new M.UUe({isThreeState:null==o?void 0:o.isThreeState,checkboxTrue:null==o?void 0:o.textTrue,checkboxFalse:null==o?void 0:o.textFalse,checkboxIndeterminate:null==o?void 0:o.textIndeterminate,checkboxAlign:o?M.CheckBoxTextAlign[o.textAlign]:j.keyword_null,onChange:function(t){i.isThreeState=t.isThreeState,i.textTrue=t.checkboxTrue,i.textFalse=t.checkboxFalse,i.textIndeterminate=t.checkboxIndeterminate,i.textAlign=M.CheckBoxTextAlign[t.checkboxAlign]}});e.create().appendTo(t),n.PYe.xT.push(e)}}]).appendTo(n.PYe)},E.prototype.KYe=function(){var n,i,o,n=this,i={type:"combobox"},o=n.BYe();n.qYe([{typeId:"combobox",title:(0,c.getSR)().defineColumnConfiguration,onInitPanel:function(t){var e=new A.oQe({items:null==o?void 0:o.items,onChange:function(t){i.items=t.items,n.BWe({cellType:i})}});e.create().appendTo(t),n.PYe.xT.push(e)}},{typeId:"combobox-text",title:(0,c.getSR)().columnTypeCheckboxTextGroup,onInitPanel:function(t){var e=new T.qUe({editorValueType:o?y.EditorValueType[o.editorValueType]:j.keyword_null,itemHeight:null==o?void 0:o.itemHeight,editable:null==o?void 0:o.editable,onChange:function(t){i.editorValueType=y.EditorValueType[t.editorValueType],i.itemHeight=t.itemHeight,i.editable=t.editable}});e.create().appendTo(t),n.PYe.xT.push(e)}}]).appendTo(n.PYe)},E.prototype.qYe=function(t){var t=new u.aWe({items:t});return this.PYe.xT.push(t),t.create()},E.prototype.QYe=function(){var n,t,e,t,n=this,t=n.SYe({inputId:"defaultValue",placeholder:(0,c.getSR)().defineColumnDefaultValue,onChange:function(t){var e;"string"===n.AYe.dataType||(0,j.isFormula)(t)||(0,D.isNullOrEmpty)(t)||(e=Number(t),Number.isNaN(e))||(t=e),n.AYe.defaultValue=t}},n.xYe.defaultValue),e=t.input,t=t.elem;return n.PYe.xT.push(e),t},E.prototype.OYe=function(){var t,e,t,e=this.PYe=(0,a.GC$)(L("div"));return e.xT=[],e.addClass("gc-defined-column-type-config-container"),e},E.prototype.Aoe=function(){var t,e,t=this,e=function(t){for(var e,n,i,e=0,n=t;e<n.length;e++)if((i=n[e]).validate&&!i.validate())return i.setFocus&&i.setFocus(),!1;return!0};return!!e(t.xT)&&!!e(t.PYe.xT)},E.prototype.EYe=function(){var u,t,e,n,i,o,i,u=this,t=(0,a.GC$)(L("div"));return t.addClass("gc-defined-column-footer-container"),(e=(0,a.GC$)(L("div"))).addClass("gc-defined-column-footer-container-buttons"),e.appendTo(t),(n=(0,a.GC$)(L("button"))).addClass("gc-defined-column-footer-container-button ui-button ui-state-default ui-corner-all btn btn-default"),(i=(0,a.GC$)(L("span"))).appendTo(n),i.text((0,c.getSR)().cancel),n.bind("click",function(){u.close()}),u.xT.push(n),(o=(0,a.GC$)(L("button"))).addClass("gc-defined-column-footer-container-button gc-defined-column-footer-container-button-primary ui-button ui-state-default ui-corner-all btn btn-default"),o.appendTo(e),n.appendTo(e),(i=(0,a.GC$)(L("span"))).appendTo(o),i.text((0,c.getSR)().submit),o.bind("click",function(){var t,e,n,i,o,o,t=r({},u.AYe);if(u.Aoe()){if(e=t.type===s.ColumnTypes.Formula){if(!(0,D.isNullOrEmpty)(t.value)&&(t.name=t.value,(0,j.isFormula)(t.value)))return;t.value=t.formula,(0,D.isNullOrEmpty)(t.name)&&delete t.dataType,delete t.formula}(i=0<(n=Object.keys(u.xYe)).length)&&u.xYe.value===t.value||(o=u.LEt.getColumnBy(t.value))&&!1===o.visible&&(u.xYe=r({},o),u.xYe.visible=!0,i=0<(n=Object.keys(u.xYe)).length),i?(e&&(0,D.isNullOrEmpty)(t.value)&&(t.value=u.xYe.formula),t.value=t.value||u.xYe.value,t.type=t.type||u.xYe.type,t.caption=t.caption||u.xYe.caption,o=r({},u.xYe),(0,D.isNullOrEmpty)(o.formula)||(o.value=o.formula,delete o.formula),e&&(0,D.isNullOrEmpty)(t.name)&&"formula"===t.dataType&&!(0,D.isNullOrEmpty)(o.name)&&"formula"===o.dataType||((0,c.copyOriginalColumnPropertiesToCurrentColumn)(t,o,n),u.LEt.onSaving({cmd:"ModifyColumn",originalColumn:o,column:t}))):t.value&&u.LEt.onSaving({cmd:"DefineColumn",column:t})}}),u.xT.push(o),n.bind("mouseover",function(){o.addClass("ui-state-hover")}).bind("mouseout",function(){o.removeClass("ui-state-hover")}),o.bind("mouseover",function(){o.addClass("ui-state-hover")}).bind("mouseout",function(){o.removeClass("ui-state-hover")}),t},E.prototype._hidden=function(){var t,e;this.Wc.css(["visibility","display"],["hidden","block"])},E.prototype.$c=function(t){var e,n;this.Wc.css(["visibility"],["visible"]),k.prototype.$c.call(this,t)},E.prototype.MUe=function(t){for(var e,n,i,e=0,n=t;e<n.length;e++)(i=n[e]).dispose?i.dispose():i.unbind&&(i.unbind("click"),i.unbind("mouseover"),i.unbind("mouseout"));return[]},E.prototype.L0=function(){var t=this;t.xT=t.MUe(t.xT),t.PYe.xT=t.MUe(t.PYe.xT),t.PYe.empty(),t.PYe=j.keyword_null,(0,a.GC$)(j.DOCUMENT).unbind(z)},E.prototype.close=function(){var t=this;t._hidden(),t.L0(),k.prototype.close.call(this),t.LEt.onClosed()},E.prototype.rQ=function(t,e){var n=this,i=n.Wc;n.LF(),i.css(["left","top"],[t,e]),i.css("max-height",Math.min(window.innerHeight,window.innerHeight-e)+"px"),n.LEt.onOpening(),n.$c(),n.if(),setTimeout(function(){n.Wc.focus(),n.xT[0].setFocus()}),n.LEt.onOpened()},t.TZe=E},"./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-preview.js":function(t,e,n){var i,o,u,a,n,r,c;function s(t){var e;this.LEt=t}Object.defineProperty(e,"__esModule",{value:!0}),e.pQe=void 0,i=n("Core"),o=n("./dist/plugins/tableSheet/tableSheet.js"),u=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-divider.js"),a=null,n=i.mt,r=n.En,s.prototype.create=function(){var t;return this.jQe()},s.prototype.jQe=function(){var t,e,n,t,t=this,e=(0,i.GC$)(r("div"));return e.addClass("gc-defined-column-number-formatting-preview-container"),(n=t.rWe=new u.LQe({text:(0,o.getSR)().columnTypeNumberFormattingSample})).create().appendTo(e),(t=t.wQe=(0,i.GC$)(r("div"))).appendTo(e),t.addClass("gc-defined-column-number-formatting-preview-text"),e},s.prototype.setText=function(t){var e;this.wQe.text(t)},s.prototype.dispose=function(){var t=this;t.wQe=a,t.rWe.dispose(),t.rWe=a},e.pQe=s},"./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-select-types.js":function(t,e,n){var r,i,u,o,c,n,s,a;function l(t){this.itemContainers=[];var e=this;e.LEt=t,e.jrt=e.RWe=c.keyword_null}Object.defineProperty(e,"__esModule",{value:!0}),e.ZYe=void 0,r=n("Core"),i=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-input.js"),u=n("./dist/plugins/tableSheet/tableSheet.js"),o=n("DataManager"),c=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-utils.js"),n=r.mt,s=n.En,l.prototype.cWe=function(t){var e=this;return{inputId:"type-select",type:"text",placeholder:(0,u.getSR)().defineColumnType,isReadOnly:!!t,label:t?{iconClass:t,suffixIconClass:"gc-defined-column-type-icon-chevrondown"}:{iconClass:"gc-defined-column-type-icon-magnifyingglass",suffixIconClass:"gc-defined-column-type-icon-x",onSuffixClick:function(t){(e.jrt||e.RWe)&&(0,o.isNullOrEmpty)(e.XKt)?(e.jrt=e.jrt||e.RWe,e.sWe(e.jrt,t)):e.lWe.setValue()}},onChange:t?c.keyword_null:function(t){e.fWe(t)},onClick:t?function(t){e.lWe.setOptions(e.cWe()),e.lWe.setValue(),e.RWe=e.jrt,e.jrt=c.keyword_null,e.LEt.onChange({name:c.keyword_null},t)}:c.keyword_null}},l.prototype.create=function(){var t,e,n,e,t=this,e=t.LEt.items,n=(0,r.GC$)(s("div"));return n.addClass("gc-defined-column-type-select-container"),n.attr("role","combobox"),n.attr("aria-autocomplete","list"),n.attr("aria-controls","gc-defined-column-types-container"),t.lWe=new i._Ze(t.cWe()),t.lWe.create().appendTo(n),(0,c.isNullOrUndefined)(t.jrt)&&e&&0<e.length&&t.dWe().appendTo(n),(e=(0,r.GC$)(s("div"))).addClass("gc-defined-column-field-label-validation-container"),e.appendTo(n),n},l.prototype.dWe=function(){var t,e,n,t=this,e=t.LEt.items,n=t.hWe=(0,r.GC$)(s("div"));return n.addClass("gc-defined-column-types-container"),n.attr("id","gc-defined-column-types-container"),n.attr("role","listbox"),t.tyn(e),n},l.prototype.tyn=function(t){for(var i,o,e,n,u,a,i=this,o=i.hWe,e=function(e){var t,n,n,t=(0,r.GC$)(s("div"));i.itemContainers.push(t),t.addClass("gc-defined-column-field-type-container"),t.attr("role","option"),(0,c.isFunction)(i.LEt.onChange)&&t.bind("click",function(t){i.jrt=e,i.sWe(e,t)}),(n=(0,r.GC$)(s("div"))).addClass("gc-defined-column-field-type-icon "+e.iconClass),n.appendTo(t),(n=(0,r.GC$)(s("div"))).addClass("gc-defined-column-field-type-text"),n.text(e.text||e.name),n.appendTo(t),t.appendTo(o)},n=0,u=t;n<u.length;n++)e(a=u[n])},l.prototype.setValue=function(e){var t,n,t=this;!(0,c.isNullOrUndefined)(e)&&(n=t.LEt.items.find(function(t){return t.name===e}))?(t.jrt=n,t.sWe(n)):t.lWe.setValue()},l.prototype.sWe=function(t,e){var n=this;n.isValid()||n.resetValid(n.validate()),n.lWe.setOptions(n.cWe(t.iconClass)),n.lWe.setValue(t.text||t.name),n.d5(),n.LEt.onChange(t,e)},l.prototype.d5=function(){var t,e,n,i,t=this;if(t.hWe.empty(),(0,c.isFunction)(t.LEt.onChange))for(e=0,n=t.itemContainers;e<n.length;e++)(i=n[e]).unbind("click")},l.prototype.fWe=function(e){var t,n,n,t=this,n=t.LEt.items;t.XKt=e,t.d5(),(0,c.isNullOrUndefined)(e)||""===e?t.tyn(n):(e=e.toLowerCase(),n=n.filter(function(t){return-1<(t.text||t.name).toLowerCase().indexOf(e)}),t.tyn(n))},l.prototype.validate=function(){var t=this;return(0,c.isNullOrUndefined)(t.jrt)?(t.resetValid(!1,{required:!1}),!1):(t.resetValid(!0),!0)},l.prototype.resetValid=function(t,e){var n,i,n,o,o,i,n=null==(n=this.hWe)?void 0:n.parent();n&&(o=n.find(".gc-defined-column-field-label-validation-container"),o=(0,r.GC$)(o[o.length-1]),t?(n.removeClass("gc-define-column-invalid"),n.attr("aria-invalid","false"),o.hide(),o.empty()):n.hasClass("gc-define-column-invalid")||(n.addClass("gc-define-column-invalid"),n.attr("aria-invalid","true"),!1===e.required&&o.html((0,u.getSR)().defineColumnRequired),o.show()))},l.prototype.isValid=function(){var t,e,t,e,t=null==(t=this.hWe)?void 0:t.parent();return t&&!t.hasClass("gc-define-column-invalid")},l.prototype.setFocus=function(){this.lWe.setFocus()},l.prototype.dispose=function(){var t=this;t.lWe.dispose(),t.lWe=c.keyword_null,t.d5(),t.hWe=c.keyword_null},e.ZYe=l},"./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-select.js":function(t,e,n){var i,u,o,a,r,n,c,s;function l(){var t,e,t=Date.now().toString(),e=Math.floor(1e3*Math.random()).toString().padStart(3,"0")}function f(t){var e=this;e.LEt=t,e.gWe=r.keyword_null,e.bWe="select-input-"+t.inputId||0}i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,n,i,o,n=1,i=arguments.length;n<i;n++)for(o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},Object.defineProperty(e,"__esModule",{value:!0}),e.GZe=void 0,u=n("Core"),o=n("DataManager"),a=n("./dist/plugins/tableSheet/tableSheet.js"),r=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-utils.js"),n=u.mt,c=n.En,Object.defineProperty(f.prototype,"value",{get:function(){var t;return null==(t=this.gWe)?void 0:t.value},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"index",{get:function(){var e=this;return this.EE().findIndex(function(t){return t.value===e.value})},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"item",{get:function(){return this.gWe},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"container",{get:function(){return this._Ue},enumerable:!1,configurable:!0}),f.prototype.EE=function(){var t,e=this.LEt,n=e.stickItem,e=e.items;return n?[n].concat(e):e},f.prototype.create=function(){var n,t,e,i,o,i,o,t,t,n=this,t=n.LEt,e=n._Ue=(0,u.GC$)(c("div"));return e.addClass("gc-defined-column-field-item-container gc-defined-column-select-box-container"),t.label&&t.label.text&&((i=(0,u.GC$)(c("div"))).addClass("gc-defined-column-field-label-container"),i.appendTo(e),(o=(0,u.GC$)(c("label"))).addClass("gc-defined-column-field-label-container-label-text"),o.attr("for","gc-defined-column-input-"+n.bWe),o.appendTo(i),o.text(t.label.text)),(i=(0,u.GC$)(c("div"))).addClass("gc-defined-column-select-container"),n.isDisable()&&i.addClass("gc-defined-column-disabled"),n.isVisible()||e.addClass("gc-defined-column-hide"),i.attr("role","combobox"),i.attr("aria-autocomplete","list"),i.attr("aria-controls","gc-defined-column-select-list-container"),i.attr("aria-disabled",n.isDisable()?"true":"false"),i.appendTo(e),(o=n.vWe=(0,r.createDCElement)("sjs-select")).attr("id","gc-defined-column-input-"+t.inputId),(0,r.isNullOrUndefined)(t.defaultValue)||o.attr("value",t.defaultValue),n.LEt.enableSearch&&o.attr("showSearch",!0),o.attr("no-result-tip",(0,a.getSR)().defineColumnNoResults),(t=n.EE())&&0<t.length&&o.attr("items",JSON.stringify(n.EE().map(function(t){return{value:t.value,label:t.text||t.value}}))),o.bind("input",function(t){var e,t,e=t.target.value;(0,r.isNullOrUndefined)(t.target.value)&&(e=r.keyword_null),t=n.EE().find(function(t){return((0,r.isNullOrUndefined)(t.value)?r.keyword_null:t.value)===e}),n.gWe=t,n.LEt.onChange(n.gWe),n.isValid()||n.resetValid(n.validate())}),o.appendTo(i),(t=(0,u.GC$)(c("div"))).addClass("gc-defined-column-field-label-validation-container"),t.appendTo(e),e},f.prototype.setValue=function(e,t){var n=this;n.setIndex(n.EE().findIndex(function(t){return t.value===e}),t)},f.prototype.setIndex=function(t,e){var n,t,n=this;!(0,r.isNullOrUndefined)(t)&&-1<t&&(t=n.EE()[t])?(n.gWe=t,n.MWe(t,null==e||e)):n.MWe(r.keyword_null)},f.prototype.setOptions=function(t){var e,n,e=this,n=e.LEt.items!==t.items;e.LEt=i(i({},e.LEt),t),n&&e.vWe.setItems(e.EE().map(function(t){return{value:t.value,label:t.text||t.value}})),e.setValue()},f.prototype.MWe=function(t,e){var n=this;t?n.vWe.val(t.value):(n.gWe=r.keyword_null,n.vWe.val(r.keyword_null)),e&&n.LEt.onChange(t)},f.prototype.isDisable=function(){return!1===this.LEt.enable},f.prototype.resetDisable=function(){var t=this,e=t.isDisable(),n=t.vWe.parent();(t.LEt.enable=e)?n.removeClass("gc-defined-column-disabled"):n.addClass("gc-defined-column-disabled"),n.attr("aria-disabled",e?"false":"true")},f.prototype.isVisible=function(){return!0!==this.LEt.hide},f.prototype.resetVisible=function(){var t=this,e=t.isVisible(),n=t._Ue;(t.LEt.hide=e)?n.addClass("gc-defined-column-hide"):n.removeClass("gc-defined-column-hide"),n.attr("aria-hide",e?"true":"false")},f.prototype.validate=function(){var t,e,n,n,t=this,e=t.LEt.validate,n=!t.isDisable();if(e&&n){if(e.required&&(0,o.isNullOrEmpty)(t.value))return t.resetValid(!1,{required:!1}),!1;if(e.validating)if("boolean"==typeof(n=e.validating(t.value))){if(!n)return t.resetValid(!1),!1}else if(!n.success)return t.resetValid(!1,n),!1}return t.resetValid(!0),!0},f.prototype.resetValid=function(t,e){var n,i,o,n,n=this,i=n.vWe,o=i.parent(),n=(0,u.GC$)(n._Ue.find(".gc-defined-column-field-label-validation-container")[0]);t?(o.removeClass("gc-define-column-invalid"),i.removeClass("gc-define-column-invalid"),i.attr("aria-invalid","false"),n.hide(),n.empty()):o.hasClass("gc-define-column-invalid")||(o.addClass("gc-define-column-invalid"),i.addClass("gc-define-column-invalid"),i.attr("aria-invalid","true"),!1===e.required?n.html((0,a.getSR)().defineColumnRequired):e.errorMessage&&n.html(e.errorMessage),e&&n.show())},f.prototype.isValid=function(){var t,e;return!this.vWe.parent().hasClass("gc-define-column-invalid")},f.prototype.dispose=function(t){var e=this;e.vWe.unbind("input"),e.vWe=r.keyword_null,t&&e._Ue.remove(),e._Ue=r.keyword_null},e.GZe=f},"./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-tabs.js":function(t,e,n){var l,n,f,i;function o(t){var e;this.itemContainers=[],this.LEt=t}Object.defineProperty(e,"__esModule",{value:!0}),e.aWe=void 0,n=(l=n("Core")).mt,f=n.En,o.prototype.create=function(){var t,e,t=this,e=(0,l.GC$)(f("div"));return e.addClass("gc-defined-column-tab-list-container"),t.qYe().appendTo(e),t.IWe().appendTo(e),t.mWe().appendTo(e),e},o.prototype.qYe=function(){var s,t,e,n,i,s=this,t=s.LEt.items,e=(0,l.GC$)(f("div"));for(e.addClass("gc-defined-column-tab-list-items-container"),e.attr("role","tablist"),n=function(a){var r,c,r=t[a],c=(0,l.GC$)(f("div"));s.itemContainers.push([c]),c.addClass("gc-defined-column-tab-item-container"),c.attr("role","tab"),c.attr("tabindex",0),c.attr("id","gc-defined-column-tab-"+r.typeId),c.attr("aria-selected","false"),c.attr("aria-controls","gc-defined-column-tab-panel-"+r.typeId),c.text(r.title),0===a&&(c.attr("aria-selected","true"),c.addClass("gc-defined-column-tab-item-container-selected")),c.bind("click",function(t){var e,n,i,o,i,u;if(!1!==s.itemContainers[a][2]){for(e=0,n=s.itemContainers;e<n.length;e++)o=(i=n[e])[0],i=i[1],o.attr("aria-selected","false"),o.removeClass("gc-defined-column-tab-item-container-selected"),i.removeClass("gc-defined-column-tab-panel-container-selected");c.attr("aria-selected","true"),c.addClass("gc-defined-column-tab-item-container-selected"),(u=s.itemContainers[a][1]).addClass("gc-defined-column-tab-panel-container-selected"),r.onSelect&&r.onSelect(r,t)}}),c.appendTo(e)},i=0;i<t.length;i++)n(i);return e},o.prototype.mWe=function(){var t,e,n,i,o,u,t=this,e=t.LEt.items,n=(0,l.GC$)(f("div"));for(n.addClass("gc-defined-column-tab-panels-container"),i=0;i<e.length;i++)o=e[i],u=(0,l.GC$)(f("div")),(t.itemContainers[i][1]=u).addClass("gc-defined-column-tab-panel-container"),u.attr("role","tabpanel"),u.attr("id","gc-defined-column-tab-panel-"+o.typeId),u.attr("aria-labelledby","gc-defined-column-tab-"+o.typeId),0===i&&u.addClass("gc-defined-column-tab-panel-container-selected"),o.onInitPanel&&o.onInitPanel(u),u.appendTo(n);return n},o.prototype.IWe=function(){var t=(0,l.GC$)(f("div"));return t.addClass("gc-defined-column-tab-list-break-line"),t},o.prototype.isDisable=function(t){return!1===this.itemContainers[t][2]},o.prototype.resetDisable=function(t){var e=this,n=e.isDisable(t),i=e.itemContainers[t][0];(e.itemContainers[t][2]=n)?i.removeClass("gc-defined-column-disabled"):i.addClass("gc-defined-column-disabled"),i.attr("aria-disabled",n?"false":"true")},o.prototype.d5=function(){for(var t,e,t=this,e=0;e<t.LEt.items.length;e++)t.itemContainers[e]&&t.itemContainers[e][0].unbind("click");t.itemContainers=[]},o.prototype.dispose=function(){var t;this.d5()},e.aWe=o},"./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-url.js":function(t,e,n){var a,r,c,i,s,l,n,f,o;function u(t){var e;this.LEt=t}Object.defineProperty(e,"__esModule",{value:!0}),e.eWe=void 0,a=n("Core"),r=n("./dist/plugins/tableSheet/tableSheet.js"),c=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-input.js"),i=null,s="#0066cc",l="#3399ff",n=a.mt,f=n.En,u.prototype.create=function(){var t;return this.ZX()},u.prototype.ZX=function(){var e,t,n,i,o,u,e=this,t=e.LEt,n=t.onChange,i=(0,a.GC$)(f("div"));return i.addClass("gc-defined-column-url-container"),(o=e.NWe=new c._Ze({inputId:"linkColor",type:"color",defaultValue:t.linkColor||s,label:{text:(0,r.getSR)().columnTypeUrlLabel.linkColor},onChange:function(t){n&&n({linkColor:t||s,visitedLinkColor:e.DWe.value||l})}})).create().appendTo(i),(u=e.DWe=new c._Ze({inputId:"visitedLinkColor",type:"color",defaultValue:t.visitedLinkColor||l,label:{text:(0,r.getSR)().columnTypeUrlLabel.visitedLinkColor},onChange:function(t){n&&n({linkColor:e.NWe.value||s,visitedLinkColor:t||l})}})).create().appendTo(i),n&&n({linkColor:e.NWe.value||s,visitedLinkColor:e.DWe.value||l}),i},u.prototype.dispose=function(){var t=this;t.NWe.dispose(),t.NWe=i,t.DWe.dispose(),t.DWe=i},e.eWe=u},"./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-utils.js":function(t,u,e){var n,a,e,i;function o(t){return"boolean"==typeof t}function r(t){return"string"==typeof t}function c(t){return t&&"="===t[0]}function s(t){return t&&-1<t.indexOf(".")}function l(t){return"number"==typeof t}function f(t){return n.Common.ct.W0(t)}function d(t){return"function"==typeof t}function h(t,e){var t=t.get(0);b(t)?t.r_e():t.dispatchEvent(new Event(e))}function g(t){return t&&-1<t.indexOf("sjs-")}function b(t){return g(t.nodeName.toLowerCase())}function v(t){var t=t.get(0);return b(t)?t.shadowRoot&&t.shadowRoot.querySelector("input"):t}function M(t,e){var n,i,o,n=(0,a.GC$)(t,e);return b(t)&&(n.focus=function(){n.get(0).ZS()},n.setItems=function(t){t&&0<t.length&&n.attr("items",JSON.stringify(t));try{n.get(0)._De(t)}catch(t){}},n.val=function(t){var e=n.get(0);if(!arguments.length)return e.Sl();try{(0,u.isNullOrUndefined)(e.getAttribute("value"))?e.y4=t:e.Kbt(t)}catch(t){}(0,u.isNullOrUndefined)(t)||e.setAttribute("value","string"==typeof t?t:""+t)},i=n.bind.bind(n),n.bind=function(t,e,o){void 0===o&&(o=e,e=u.keyword_undefined),"input"===t?i(t="sjs-value-change",e,function(t){var e=!1,n,i=!1;(0,u.isNullOrUndefined)(t.target)?(e=!0,t.target={value:t.detail}):t.target.value!==t.detail&&(i=!0,n=t.target.value,t.target.value=t.detail),o(t),i&&(t.target.value=n),e&&delete t.target}):i(t,e,o)},o=n.unbind.bind(n),n.unbind=function(t){o(t="input"===t?"sjs-value-change":t)}),n}function I(t){return M(i(t))}Object.defineProperty(u,"__esModule",{value:!0}),u.createDCElement=u.DC$=u.getSJSInput=u.isSJSElem=u.isSJSComponent=u.triggerEvent=u.isFunction=u.isDate=u.isNumber=u.isRelation=u.isFormula=u.isString=u.isBoolean=u.keyword_undefined=u.keyword_null=u.cloneObject=u.isNullOrUndefined=u.DOCUMENT=void 0,n=e("Common"),a=e("Core"),u.DOCUMENT=document,e=n.Common.lt,i=a.mt.En,u.isNullOrUndefined=e.ht,u.cloneObject=e.tv,u.keyword_null=null,u.keyword_undefined=void 0,u.isBoolean=o,u.isString=r,u.isFormula=c,u.isRelation=s,u.isNumber=l,u.isDate=f,u.isFunction=d,u.triggerEvent=h,u.isSJSComponent=g,u.isSJSElem=b,u.getSJSInput=v,u.DC$=M,u.createDCElement=I},"./dist/plugins/tableSheet/tablesheet-filter-dialog.js":function(t,e,n){var i,o,u,Z,n,U,z,G,I,m,N,x,a,D,r,c,s;function l(t,e,n,i,o,u){var t=s.call(this,t,e,n,i,o)||this;return t.jWe=!1,t.vMi=u,t}i=this&&this.__extends||(c=function(t,e){return(c=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}c(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),Object.defineProperty(e,"__esModule",{value:!0}),e.TableSheetFilterDialog=void 0,o=n("Filters"),u=n("Common"),Z=n("./dist/plugins/tableSheet/tablesheet-filter-utils.js"),n=u.Common.lt,U=n.ht,z=n.q8,G=Object.keys,I="null",m="undefined",N=null,x=void 0,a=1e5,D=/((\d{4}|\d{2}|\d{1})[\/\-])(\d{4}|\d{2}|\d{1})[\/\-](\d{4}|\d{2}|\d{1})|((\d{4}|\d{2}|\d{1})[\/\-\s](\d{4}|\d{2}|\d{1}) [0-9]{2}:[0-9]{2}:[0-9]{2})/,s=o.iut,i(l,s),l.prototype.Bst=function(t,e,n,i,o,u,a){var r,c,s,l,f,d,h,g,b,v,M,I,m,c,N,N,D,j,C,w,p,r=this,c=this.vMi,s=c.Mf,l=this.filterButtonInfo.col,f=c.getDataView(),d=f&&f.gLt,h=function(t){return f.uFt(t)},g=this,b;if(g.filterButtonInfo.rowFilter){if(M=0,m=[],c=c.qNi(),(N=(N=f.getColumn(t)).value||N.name)&&!c){if((I=h(N))?d&&d.rBt(N)&&I.K$!==d.rBt(N)&&f.eRt([N],!0):f.eRt([N]),I=h(N),U(I))return;v=I.K$,delete I.K$,m=G(I),M=m.length,I.K$=v,g.wTi=g.yTi(f.lFt&&0<f.lFt.length?f.iRt.slice(f.lFt.length):f.iRt)}if(g.Jut=!1,D=s.getCellType(-1,t),j=s.l0(-1,t===l?t:l,"formatter"),c)g.Jut=x,g.mTi(N,t,e,n,i,o,u,a,D,j);else if(1e5<M){for(C=Math.ceil(M/1e5),g.CTi=[],w=1;w<C;w++)p=void 0,p=w===C-1?{startIndex:1e5*w,endIndex:M-1}:{startIndex:1e5*w,endIndex:1e5*(w+1)-1},g.CTi.push(p);g.Yut(!0),g.zTi(I,m,0,99999,t,e,n,i,o,u,a,D,j,v),g.Vut(1e5/M),setTimeout(function(){r.asyncCreateFilterData(I,m,g.CTi,t,e,n,i,o,u,a,D,j,v,M)},0)}else g.zTi(I,m,0,M-1,t,e,n,i,o,u,a,D,j,v)}},l.prototype.mTi=function(r,c,t,e,E,s,l,f,d,h){var n,g,b,v,n,M,i,o,u,a,I,o,m,N,D,j,C,w,p,x,y,A,T,S,z,L,O,k,n=this.vMi,g=this,b={},v=n.getDataView(),n=v.gLt._dataSource.options.schema,i=g.filterButtonInfo.rowFilter,o=i.Mct,I=i.isFiltered(c)&&(0,Z.isSpecificCondition)(i.rrt[c][0],g),o=0===o.length||i.isFiltered(c)&&1===o.length;if(n&&n.columns&&n.columns[r]&&(M=n.columns[r].dataType),m=v.iRt,D=(N=v.bFt()).length,o)i.tAi=N;else{for(u=v.Jce||{},j=v.ife(c),a=G(u).filter(function(t){var e,e;return t!==j&&((e=(e=u[t].options[0])&&void 0!==e.Vce)&&(C=t),!e)}),x=C,y=p=w=0;y<a.length;y++)((A=u[a[y]].count)<w||0===y)&&(w=A,x=a[p=y]);for(L in a.splice(p,1),T=function(t){for(var e=0;e<a.length&&u[a[e]][t];e++);return e===a.length},S=[],z=u[x])T(L)&&(O=+L,Number.isNaN(O)||S.push(O));v.iRt=S,v.yFt(),S=v.iRt,v.iRt=m,D=(N=S).length,i.tAi=S}for(k=function(t){var e,n,e,e,i,o,u,a,e,n=N[t],e=v.getRowData(n,!0,((e={})[r]=!0,e))[r];U(M)&&!U(e)&&(M=typeof e),i=(e=g.LTi(e,b,c,function(){return{row:t,isCheckedInCheckList:!I&&-1<m.indexOf(n),index:n}},d,h,M)).row,o=e.filterData,u=e.filterText,a=e.type,e=e.isCheckedInCheckList,g.Pst({},s,l,i,c,f,!0,o,u,a,e)},y=0;y<D;y++)k(y)},l.prototype.zTi=function(r,c,t,e,s,n,i,l,f,d,h,g,b,v){var o,M,I,u,a,m,N,D,j,C,w,a,p,u,x,y,A,T,S,o=this.vMi,M=this,I={},u=M.filterButtonInfo.rowFilter,a=u.Mct,j=u.isFiltered(s)&&(0,Z.isSpecificCondition)(u.rrt[s][0],M),C=0===a.length||u.isFiltered(s)&&1===a.length;for(C?(u=(w=o.getDataView()).lFt)&&0<u.length&&(D=u.reduce(function(t,e){return t[e]=!0,t},{})):(w=o.getDataView(),m=w.Jce||{},a=w.getColumn(s),p=a.isGroup&&z(a._Ft)?w.ife(a._Ft):w.ife(a),N=G(m).filter(function(t){return t!==p})),x=function(t){var e,n;if(U(D))return!0;for(e=r[t],n=0;n<e.length;n++)if(!D[e[n]])return!0;return!1},y=function(t){for(var e,n,i,e=r[t],n=0;n<e.length;n++){for(i=0;i<N.length&&m[N[i]][e[n]];i++);if(i===N.length)return!0}return!1},A=function(t,e){return!!t||(C?x:y)(e)},T=function(t){var e,n,t,i,o,u,a,t,e=c[t],n,t=M.LTi(e,I,s,function(){return M.xTi(r[e],M.wTi)},g,b,v),i=t.row,o=t.filterData,u=t.filterText,a=t.type,t=t.isCheckedInCheckList;M.Pst(l,f,d,i,s,h,!0,o,u,a,!j&&t,A(t,e))},S=t;S<=e;S++)T(S)},l.prototype.LTi=function(t,e,n,i,o,u,a){var r,c,s,l,c,i,f,d,i,h,g,b,v,M,M,r=this.vMi,c=this,s=r.Mf,l="string";return t!==I&&t!==m||(t=N,l="blank"),t&&"string"!==a&&("number"!==a&&"boolean"!==a||(isNaN(parseFloat(t))||(t=parseFloat(t)),l="number"),"object"!==a&&"date"!==a||t.match(D)&&!isNaN(Date.parse(t))&&(t=new Date(t),c.Jut=!0,l="date"),"string"===l)&&(this.jWe=!0),c=t,f=(i=i()).row,d=i.isCheckedInCheckList,i=i.index,("string"!=typeof t||u)&&(h=!1,U(f)&&"string"==typeof u&&r.Mf.parent&&(v=!(b=(g=void 0,Z.isFormulaFormatter)(u))&&(0,Z.hasATWithoutBrackets)(u),(b||v)&&(M=r.Mf.parent.xO(u))&&(h=!0,g=M.getExpression()),h)&&(b?c=r.getDataView().sPt(g,i):v&&(c=r.getDataView().jfe(g,i,(0,Z.getColumnName)(r,n))),U(c)||"object"!=typeof c||(c=U(c._error)?c.toString():c._error)),c=h?c:o.format(t,u,e,{sheet:s,row:f,col:n,sheetArea:3,quotePrefix:null}))&&"string"==typeof c&&(c=c.replace(/\r\n?/g,"\n")),"boolean"===a&&("TRUE"===(M=String(t).toUpperCase())&&(t=!0,c="TRUE"),"FALSE"===M)&&(t=!1,c="FALSE"),{row:f,filterData:t,filterText:c,type:l,isCheckedInCheckList:d}},l.prototype.yTi=function(t){for(var e,n,e=[],n=0;n<t.length;n++)e[t[n]]=n;return e},l.prototype.xTi=function(t,e){for(var n,i,o,o=0;o<t.length;o++)if((i=e[n=t[o]])!==x)return{row:i,isCheckedInCheckList:!0};return{row:e[n=t[0]],isCheckedInCheckList:!1,index:n}},l.prototype.qut=function(){var t,e,n,i,o,u,a,r,c,s,l,f,d,h,g,b,v,t=this.vMi,e=this,n=e.ast.outlineColumn.getCheckStatus(),i=0,o=e._at||e.Dat,u=e.Eat,r=0;if(e.Bat=1===n[0],"add_current"===e.dataSource[0].key&&(i=1),e.Dat=[],c=t.qNi(),s="add_current"===e.dataSource[0].key,c&&s&&e.Bat)for(e.Bat=!1,l=0;l<u.length;l++)1===(f=u[l]).status&&e.Dat.push({text:f.key,value:f.value,type:f.type});for(l=0;l<u.length&&(a=u[l],s||(a.checkedStatus=n[l]),!(r>=o.length));l++)if(a.key===o[r].text){for(r++,d=a.children,h=x,g=0;g<d.length;g++)b=d[g],v=n[i],!1!==b.show&&(i+=1),h=v||h,3!==v&&(b.status=v);2!==h?(e.Dat.push({text:a.key,value:a.value,type:a.type}),c&&(s?1!==h&&e.Dat.pop():e.Dat[e.Dat.length-1].eAi=d[0].level)):e.lst(l,a)}},l.prototype.asyncCreateFilterData=function(t,e,n,i,o,u,a,r,c,s,l,f,d,h){var g,b,v,M,I,m,N,g=this,b=this,v,M;if(this.vMi.Mf.Cut){for(I=new Date,m=new Date;0<n.length&&m-I<=500;)N=n.shift(),b.zTi(t,e,N.startIndex,N.endIndex,i,o,u,a,r,c,s,l,f,d),b.Vut(N.endIndex/h),m=new Date;0<n.length?setTimeout(function(){g.asyncCreateFilterData(t,e,b.CTi,i,o,u,a,r,c,s,l,f,d,h)},0):(b.Lst(o,u,!1,c,s,r,i),b.sut(),b.Yut(!1))}},e.TableSheetFilterDialog=l},"./dist/plugins/tableSheet/tablesheet-filter-utils.js":function(t,e,n){var i,h,o,n,g,u;function a(t){return t instanceof h.Condition}function r(t,e){return a(t)&&!t.art&&!e.jut().isShowSelectCheck}function c(t){return"="===t.charAt(0)}function s(t){var e,n;return{left:t.indexOf("["),right:t.indexOf("]")}}function l(t){var t=s(t),e=t.left,t=t.right;return 0<=e&&e<t}function f(t){return c(t)&&l(t)}function d(t){var e,n;if(f(t=t.trim()))return!0;if(0<=t.indexOf("{{")&&0<=t.indexOf("}}"))for(e=t.split(/{{|}}/),n=0;n<e.length;n++)if(f(e[n].trim()))return!0;return!1}function b(t){var e,n,i,o;if(c(t))for(e=!0,n=0;n<t.length;n++)if(i=t.charAt(n),e&&"@"===i){if("."===(o=t.charAt(n+1))||!o.match(/[\[\s\]]/))return!0}else"["===i?e=!1:"]"===i&&(e=!0);return!1}function v(t,e,n,i,o){var t=t;3!==o||!t.zDi(e)&&!t.vDi(e)||i.locked||M(t,n,i,!0)}function M(t,e,n,i){for(var o,u,a,r,c,s,o,u=t.cNi,a=0;a<u.length;a++)if(0<(r=u[a]).length)for(c=0;c<r.length;c++)if((s=r[c])===e){n.locked=i;break}}function I(t,e){var t=t.getDataView();return t&&t.getColumn(e)}function m(t,e){var t,e,t=t.getDataView();if(t)return(e=t.getColumn(e)).isGroup&&u(e._Ft)?t.ife(e._Ft):t.ife(e)}function N(t,e){for(var n=0,i=t.length;n<i;n++)if(e(t[n],n,t))return n;return-1}function D(t,e,n){var i,o,u,a,r,c,n,s,l,f,d,n,o,t,o,i=t.expected(),o=t.conType(),u=n&&n.isDateFieldListFilter;if("string"==typeof i&&(i=i.split(String.fromCharCode(160)).join(" ")),t.art&&o===h.ConditionType.textCondition&&(i=t.urt,g(t.urt)||(o=h.ConditionType.dateCondition,u=!0)),o===h.ConditionType.numberCondition)return[{field:e,operator:(a={0:"eq",1:"neq",2:"gt",3:"gte",4:"lt",5:"lte"})[t.compareType()],value:i,ort:u}];if(o===h.ConditionType.cellValueCondition)return[{field:e,operator:(a={0:"eq",1:"neq",2:"gt",3:"gte",4:"lt",5:"lte"})[t.compareType()],value:i,ort:u}];if(o===h.ConditionType.relationCondition)return r=D(t.item1(),e),(c=D(t.item2(),e))[0].relation=(a={0:"or",1:"and"})[t.compareType()],r.concat(c);if(o===h.ConditionType.textCondition)return[{field:e,operator:(a={0:"eq",1:"neq",2:"startswith",3:"doesnotstartwith",4:"endswith",5:"doesnotendwith",6:"contains",7:"doesnotcontain"})[t.compareType()],value:i,ort:u}];if(o===h.ConditionType.dateCondition)switch(n=t.compareType(),c=r=l=s=void 0,f=i.setHours(0,0,0,0),d=i.setHours(23,59,59,999),n){case 0:return s=new h.Condition(h.ConditionType.numberCondition,{compareType:h.GeneralComparisonOperators.greaterThanOrEqualsTo,expected:f}),l=new h.Condition(h.ConditionType.numberCondition,{compareType:h.GeneralComparisonOperators.lessThanOrEqualsTo,expected:d}),r=D(s,e,{isDateFieldListFilter:u}),(c=D(l,e,{isDateFieldListFilter:u}))[0].relation="and",r.concat(c);case 1:return s=new h.Condition(h.ConditionType.numberCondition,{compareType:h.GeneralComparisonOperators.greaterThan,expected:d}),l=new h.Condition(h.ConditionType.numberCondition,{compareType:h.GeneralComparisonOperators.lessThan,expected:f}),r=D(s,e,{isDateFieldListFilter:u}),(c=D(l,e,{isDateFieldListFilter:u}))[0].relation="or",r.concat(c);case 2:return[{field:e,operator:"lt",value:f,ort:u}];case 3:return[{field:e,operator:"lte",value:d,ort:u}];case 4:return[{field:e,operator:"gt",value:d,ort:u}];case 5:return[{field:e,operator:"gte",value:f,ort:u}];default:return[]}else{if(o===h.ConditionType.top10Condition)return[{field:e,operator:(a={0:"top",1:"bottom"})[t.type()],value:i,ort:u}];if(o===h.ConditionType.averageCondition)return[{field:e,operator:(a={0:"above",1:"below"})[t.type()],value:i,ort:u}];if(o===h.ConditionType.dateExCondition)return(n=t.expectTypeId())===h.DateExConditionExpectType.dateOccurring||n===h.DateExConditionExpectType.yearToDate?(d=f=void 0,n===h.DateExConditionExpectType.dateOccurring?(f=(o=t.getExConditionDateScope(i)).from,d=o.to):(f=new Date,d=new Date,f.setMonth(0,1),f.setHours(0,0,0,0),d.setHours(23,59,59,999)),t=new h.Condition(h.ConditionType.dateCondition,{compareType:h.DateCompareType.afterEqualsTo,expected:f}),o=new h.Condition(h.ConditionType.dateCondition,{compareType:h.DateCompareType.beforeEqualsTo,expected:d}),r=D(t,e),(c=D(o,e))[0].relation="and",r.concat(c)):[{field:e,operator:(a={0:"date",1:"year",2:"quarter",3:"month",4:"week",5:"day",6:"yearToDate"})[n],value:i,ort:u}]}return[]}function j(t){var e=t.col,n=t.rowFilter;return!n.Dit(e)&&n.Dit(n.NTi(e))?i(i({},t),{col:n.NTi(e)}):t}i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,n,i,o,n=1,i=arguments.length;n<i;n++)for(o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},Object.defineProperty(e,"__esModule",{value:!0}),e.reuseFilterButtonInfo=e.convertCondition=e.findIndex=e.getColumnName=e.getColumnInfo=e.setInsertedRowCrossStyle=e.hasATWithoutBrackets=e.isFormulaFormatter=e.isSpecificCondition=e.isCondition=void 0,h=n("ConditionalFormatting"),n=(o=n("Common")).Common.lt,g=n.ht,u=n.q8,e.isCondition=a,e.isSpecificCondition=r,e.isFormulaFormatter=d,e.hasATWithoutBrackets=b,e.setInsertedRowCrossStyle=v,e.getColumnInfo=I,e.getColumnName=m,e.findIndex=N,e.convertCondition=D,e.reuseFilterButtonInfo=j},"./dist/plugins/tableSheet/tablesheet-filter.js":function(t,e,n){var i,b,o,u,a,d,v,h,s,n,M,g,f,I,r,c,l,m,N;function D(t,e){var t=N.call(this,t)||this;return t.sTi={},t.MTi={},t.ITi=!1,t.gTi=0,t.act=!1,t.CWe=e,t}i=this&&this.__extends||(m=function(t,e){return(m=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}m(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),b=this&&this.__assign||function(){return(b=Object.assign||function(t){for(var e,n,i,o,n=1,i=arguments.length;n<i;n++)for(o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},Object.defineProperty(e,"__esModule",{value:!0}),e.GroupHideRowFilter=void 0,o=n("Common"),u=n("Filters"),a=n("Core"),d=n("ConditionalFormatting"),v=n("./dist/plugins/tableSheet/tableSheet-undo.js"),h=n("./dist/plugins/tableSheet/tablesheet-filter-utils.js"),s=n("./dist/plugins/tableSheet/tablesheet-filter-dialog.js"),n=o.Common.lt,M=n.ht,g=n.q8,f=null,I=void 0,r=-1,c=-2,N=u.HideRowFilter,i(D,N),D.prototype.toJSON=function(){var t=this,e=N.prototype.toJSON.call(this);return e.sortMap=t.sTi,e.relatedColFilters=t.MTi,e.lastGroup=t.ITi,e.lastGroupCount=t.gTi,M(t.lTi)||(e.lTi=t.lTi),e},D.prototype.fromJSON=function(t,e){var n;M(t)||((n=this).sTi=t.sortMap,n.MTi=t.relatedColFilters,n.ITi=t.lastGroup,n.gTi=t.lastGroupCount,M(t.lTi)||(n.lTi=t.lTi),N.prototype.fromJSON.call(this,t,e))},D.prototype.isFiltered=function(t){var e=this;return arguments.length?N.prototype.isFiltered.call(this,t)||N.prototype.isFiltered.call(this,e.NTi(t)):N.prototype.isFiltered.call(this)},D.prototype.Dit=function(t){return N.prototype.isFiltered.call(this,t)},D.prototype.wWe=function(t){var e,n,u,n,t,a,r,c,s,i,o,l,f,f,e,n=this.CWe,u=this.rrt[t],n=n.getDataView(),t=n.getColumn(t),a=t.isGroup&&g(t._Ft)?n.ife(t._Ft):n.ife(t);if(u&&0<u.length){if(r=[],(0,h.isCondition)(u[0]))if(u[0].art&&u[0].conType()===d.ConditionType.textCondition)for(o=0;o<u.length;o++)l=u[o].urt,r.push({field:a,value:M(l)?l:l.toISOString()});else for(o=0;o<u.length;o++)f=u[o],f=(0,h.convertCondition)(f,a),r=0===o?f:(f[0].relation="or",r.concat(f));else for(c=[],s=[],i=function(t){var e,n,i,n,o,e,e;if(g(u[t].eAi)){if(e=u[t].eAi,c.push(u[t].value),s.push(e),n=u[t+1],(i=M(n)?-1:n.eAi)<=e)for(n=!0,o=c.slice().reverse(),(n=(e=r[r.length-1])?!((e=e.Vce).length===o.length&&e.every(function(t,e){return t===o[e]})):n)&&r.push({field:a,value:u[t].value,Vce:o});0<s.length&&s[s.length-1]>=i;)c.pop(),s.pop()}else r.push({field:a,value:u[t].value})},o=0;o<u.length;o++)i(o);return r}},D.prototype.pWe=function(){var n,t,e,i,e,o,n=this,t,e=this.CWe.Mf,i=this.rrt,e=e.getDataSource(),o=Object.keys(i).filter(function(t){return!M(i[t])}).reduce(function(t,e){return t.concat(n.wWe(Number(e)))},[]);e.filter(o)},D.prototype.yWe=function(t,e){var n=this.CWe,i=n.Mf;i.suspendPaint(),this.Nct(t,e),n.tDe(),i.resumePaint()},D.prototype.filter=function(t,e){var n,n,i,o,u,a,r,c,s,n=this.CWe;if(n&&(i=n.getDataView())){if(o=this.rrt,u=!M(o[t]),n.qNi()&&(a=function(t){var t=o[t];return t&&t.some(function(t){return g(t.eAi)})})(t))for(r=this.Mct,c=0;c<r.length;c++)if(t!==(s=r[c])&&a(s)){this.yct(s),this.Nct(s,!1);break}n.ize.addUndoChanges({type:v.TableSheetUndoType.FilterColumn,changedData:{col:t,columnName:null==(n=n.fDi(t))?void 0:n.name}}),this.pWe(),this.yWe(t,u)}},D.prototype.unfilter=function(t){var e,e,e=this.CWe;e&&(e=e.getDataView())&&(e.filter(),this.setFilterItemMap(t),this.pWe(),this.yWe(t,!1))},D.prototype.reFilter=function(t){},D.prototype.openFilterDialog=function(t){var e,n,i,o,o,u,u,u,a,o,r,c,e=this.CWe,n=this,i=n.Mf,o=t.col,o=e.getDataView().getColumn(o);this.irt=!1,this.ort=!1,u=0<((u=e.getDataView())&&u.length()||0),n.Hct(i)&&u&&(u={sortByValue:!1!==o.allowSort,filterByValue:!1!==o.allowFilterByValue,listFilterArea:!1!==o.allowFilterByList,sortByColor:!1,filterByColor:!1},n.filterDialogVisibleInfo(u),a=new s.TableSheetFilterDialog(i.parent.j2(),i,(0,h.reuseFilterButtonInfo)(t),u,n.dialogOptions,e),i.Cut=a,(o=e.qNi())&&(r=i.outlineColumn.Un,i.outlineColumn.Un=function(){return!0},c=a.close,a.close=function(){i.outlineColumn.Un=r,a.close=c,a.close()},a.STi=function(){for(var t,e,n,i,t=this,e=t.dataSource,n=t.Eat,i=0;i<e.length;i++)n[i].checkedStatus=e[i].status}),a.rQ(),o&&a.STi(),a.jWe)&&a.yut()},D.prototype.Nct=function(t,e){var n=this;e&&n.DFt(t)?n.MTi[t]=n.NTi(t):M(n.MTi[t])||delete n.MTi[t],N.prototype.Nct.call(this,t,e)},D.prototype.setFilterItemMap=function(t,e){var n=this;n.rrt[t]=e||I},D.prototype.removeFilterItems=function(t,e){var n,i,o,n=this.CWe;n&&(o=(i=n.Mf).getDataSource(),n.nAi&&o?N.prototype.removeFilterItems.call(this,t,e):(this.setFilterItemMap(t),this.Cct(t),n.UJe&&o&&o.filter()))},D.prototype.DTi=function(t){for(var e,n,i,o,u,a,r,c,c,s,l,e=this,o=e.Mct,u=e.rrt,a=e.hst,r=0;r<o.length;r++)n=o[r],0<=(i=(M(e.MTi[n])?n:e.MTi[n])+t)?(o[r]=i,c=u[n],M(c)||(u[n]=f,u[i]=c),a&&(c=a[n],M(c)||(delete a[n],a[i]=c))):(o[r]=-1,u[n]=f,a&&delete a[n]);e.Mct=o.filter(function(t){return-1!==t}),o.some(function(t){return-1===t})&&((l=(s=e.Mf).NMi).suspendPaint(),l.resumePaint())},D.prototype.getSortState=function(t){var e=this;return e.GFt(t)&&(t=e.NTi(t)),e.nrt=e.wot(t),N.prototype.getSortState.call(this,t)},D.prototype.SZe=function(){var t=this,e=t.jFt(),n=t.gTi;e?(t.gTi=t.dTi(),n=t.gTi-n,t.DTi(n),t.hTi(-1,n)):(t.gTi=0,t.DTi(-n),t.hTi(-2,-n),t.TTi())},D.prototype.hTi=function(t,e){var n,i,o,u,n=this,i=n.sTi[t];for(u in i)i[u]&&((o=i[u]).index+=e,n.setSortInfo(o))},D.prototype.TTi=function(){var t,e,e=this;e.sTi[-2]?e.sTi=((t={})[-1]=e.sTi[-1],t):e.sTi={}},D.prototype.eIi=function(){return this.Mf.getDataSource()},D.prototype.HMi=function(){return this.Mf.getDataSource().getColumnInfos()},D.prototype.fDi=function(t){return this.Mf.NMi.fDi(t)},D.prototype.sze=function(){return this.Mf.NMi.sze()},D.prototype.dTi=function(){return this.HMi().filter(function(t){return t.isGroup}).length},D.prototype.jFt=function(){return this.Mf.NMi.jFt},D.prototype.bTi=function(t){var t=this.fDi(t);return t&&t.OFt},D.prototype.GFt=function(t){var t=this.fDi(t);return t&&t.GFt},D.prototype.DFt=function(t){var t=this.fDi(t);return t&&t.DFt},D.prototype.tNi=function(){return this.Mf.NMi},D.prototype.NTi=function(t,e){var n=this.fDi(t);return n&&(this.sze()&&!e?t:n._Ft)},D.prototype.vZe=function(t){var e,n,n,i,o,u,a,e=this,n=e.ATi(t),n=e.sTi[n],i=e.sTi[-2],o=n&&n[t],u=i&&i[t];(o||u)&&(a=e.tNi()).ize.addUndoChanges({type:v.TableSheetUndoType.SortMapChanged,oldData:e.xWe()}),n&&n[t]&&delete n[t],i&&i[t]&&delete i[t]},D.prototype.wot=function(t){var e=this,n=e.ATi(t),e=e.sTi[n];return e&&e[t]?e[t]:f},D.prototype.ATi=function(t){var e=this,e;return e.jFt()&&(e=e.bTi(t),!M(e))?e:-1},D.prototype.GJe=function(){var t,e,n,i,o,u,a,t,e=this.sTi,n=[];for(i in e)if(-2!=+i)for(u in o=e[i])o.hasOwnProperty(u)&&(a=o[u],n.push(a));return n},D.prototype.Gct=function(t){return arguments&&0<arguments.length?this:N.prototype.Gct.call(this)},D.prototype.xWe=function(){var t;return null!=(t=(0,a.RF)(this.sTi))?t:{}},D.prototype.Jze=function(t){this.sTi=t},D.prototype.qO=function(a,r,t){var c,e,s,n;for(n in N.prototype.qO.call(this,a,r,t),c=this.sTi,e=function(t){var e,n,i,o,u;if(c.hasOwnProperty(t)){for(i in n=[],e=c[t])e.hasOwnProperty(i)&&(o=e[i]).index>=a&&(s.GFt(u=+i+r)?o.index=s.NTi(u,!0):o.index+=r,n.push({col:i,sortInfo:o}));n.forEach(function(t){var t=t.col;delete e[t]}),n.forEach(function(t){var t=t.sortInfo;e[t.index]=t}),0===Object.keys(e).length&&delete c[t]}},s=this,c)e(n)},D.prototype.NP=function(r,c){var s,t,l,e;for(e in N.prototype.NP.call(this,r,c),s=this.sTi,t=function(t){var e,n,i,o,u,a;if(s.hasOwnProperty(t)){for(i in n=[],e=s[t])e.hasOwnProperty(i)&&(u=(o=e[i]).index,a=r+c,r<=u&&u<a?l.DFt(i)?(o.index=l.NTi(i,!0),o.index-=c,n.push({col:i,sortInfo:o})):n.push({col:i}):a<=u&&(o.index-=c,n.push({col:i,sortInfo:o})));n.forEach(function(t){var t=t.col;delete e[t]}),n.forEach(function(t){var t=t.sortInfo;t&&(e[t.index]=t)}),0===Object.keys(e).length&&delete s[t]}},l=this,s)t(e)},D.prototype.KWe=function(t){this.setFilterItemMap(t)},D.prototype.setSortInfo=function(t){var e,n,i,o,n=this,i=t.index;n.GFt(i)&&(i=n.NTi(i),t.index=i),o=n.ATi(i),n.sTi[o]=((e={})[i]=t,e),n.vTi(t,o)},D.prototype.vTi=function(t,e){var e,n,i,n=this,i=t.index;-1===e||n.DFt(i)||n.GFt(i)?(n.DFt(i)&&(i=n.NTi(i)),n.sTi[-2]=((e={})[i]=b(b({},t),{index:i}),e)):delete n.sTi[-2]},D.prototype.BDi=function(){var t,i,t,o,u,a,t,t=this.Mf,i=t.getDataSource(),t=t.rowFilter(),o=t&&t.sTi,u={};return o&&((t=function(t){var e,n,e=o[t];if(!M(e))for(n in u[t]={},e)e.hasOwnProperty(n)&&(a=i.uPt(n),u[t][a]=n)})(a=-1),t(-2)),u},D.prototype.RDi=function(r){var t,c,e,s,t,t=this.Mf,c=t.getDataSource(),e,s=t.rowFilter().sTi,t=function(t){var e,n,i,o,i,u,a,e=r[t];for(n in e)e.hasOwnProperty(n)&&(o=+e[i=+n],(i=c.BPt(i))!==o)&&(u=s[t],M(u)||(a=u[o],M(a))||(delete u[o],u[a.index=i]=a))};t(-1),t(-2)},D.prototype.nTi=function(t){var r,c,s,e,n,i,o,u,a,l,f,d,h,g,h;if(t&&0<t.length){for(r=this,c=[],s=[],e=t.map(function(t){return{oldIndex:t.oldIndex,newIndex:t.newIndex}}),n=function(t){var e,n,i,i,t,o,u,a,i,e=t.oldIndex,n=b({},t);for(o in s.push(n),-1<(i=r.Mct.indexOf(e))&&c.push([i,t.newIndex]),i=r.rrt[e],M(i)||(n.filterItemMapValue=i,r.rrt[e]=I),t=r.hst&&r.hst[e],!M(t)&&0<t.length&&(n.filteredColumnCacheValue=t,delete r.hst[e]),r.MTi)r.MTi.hasOwnProperty(o)&&(u=r.MTi[o])===e&&(n.relatedColFiltersValue=o,delete r.MTi[o]);M(r.sTi)||(a=r.sTi,(i=function(t){var t=a[t];M(t)||M(t[e])||(n.sortMapValue=t[e],delete t[e])})(-1),i(-2))},i=0,o=t;i<o.length;i++)n(u=o[i]);for(a=function(e){var n,t,i,o,u,a,t,n=e.newIndex,t=e.filterItemMapValue,i=e.filteredColumnCacheValue,o=e.relatedColFiltersValue,u=e.sortMapValue;M(t)||(r.rrt[n]=t),M(i)||(r.hst[n]=i),M(o)||(r.MTi[o]=n),M(r.sTi)||M(u)||(a=r.sTi,(t=function(t){var t=a[t];M(t)||(t[e.sortMapValue.index=n]=e.sortMapValue)})(-1),t(-2))},l=0,f=s;l<f.length;l++)a(u=f[l]);for(d=0;d<c.length;d++)g=(h=c[d])[0],h=h[1],r.Mct[g]=h;this.tNi().ize.addUndoChanges({type:v.TableSheetUndoType.UpdateFilterOnMoved,changedData:e})}},D.prototype.VIi=function(n){var e,i,o,t,u,a,r,e=this,i=e.eIi(),o=[],t=e.HMi(),u=[];t.forEach(function(t,e){t.RBt===n&&o.push(i.BPt(e))}),o.forEach(function(t){e.AWe(t)}),r=o[(a=o.length)-1],0<a&&t.forEach(function(t,e){var e=i.BPt(e);r<e&&u.push({oldIndex:e,newIndex:e-a})}),e.nTi(u)},D.prototype.AWe=function(n){var t,t,e,i,t,o,u,a,t,e=this,i={index:n,filterItemMap:{oldValue:null==(t=e.rrt)?void 0:t[n]},filteredColumns:{},filteredColumnCache:{oldValue:null==(t=e.hst)?void 0:t[n]},relatedColFilters:[],sortMap:[]};for(o in e.rrt[n]&&(e.rrt[n]=I,t=e.Mct.indexOf(n),i.filteredColumns={index:t,oldValue:e.Mct[t]},e.Mct.splice(t,1)),e.hst&&e.hst[n]&&delete e.hst[n],e.MTi)e.MTi.hasOwnProperty(o)&&(u=e.MTi[o])===n&&(i.relatedColFilters.push({col:o,value:e.MTi[o]}),delete e.MTi[o]);M(e.sTi)||(a=e.sTi,(t=function(t){var e=a[t];M(e)||M(e[n])||(i[t].push({level:t,index:n,value:e[n]}),delete e[n])})(-1),t(-2)),this.tNi().ize.addUndoChanges({type:v.TableSheetUndoType.RemoveCrosRowFilterInfo,changedData:i})},D.prototype.Xze=function(t){var e,n,i,o,u,u,t,a,r,e=t.index,n=t.filterItemMap,i=t.filteredColumnCache,o=t.filteredColumns,u=t.relatedColFilters,u=void 0===u?[]:u,t=t.sortMap,a=void 0===t?[]:t,r=this;r.rrt&&(r.rrt[e]=n.oldValue),M(null==o?void 0:o.index)||(r.Mct[o.index]=o.oldValue),r.hst&&(r.hst[e]=i.oldValue),u.forEach(function(t){var e=t.col,t=t.value;r.MTi[e]=t}),a.forEach(function(t){var e=t.level,n=t.index,t=t.value;a&&a[e]&&(a[e][n]=t)})},D.prototype.UIi=function(){var i,t,o,u,e,t,i=this,t=this,o=t.eIi(),u=t.HMi();this.lTi={},Object.keys(this.rrt).forEach(function(t){var e,e;M(i.rrt[t])||(e=o.uPt(t),e=u[e].value,M(i.lTi[e])&&(i.lTi[e]={}),i.lTi[e].filterItemMap=i.rrt[t])}),M(this.hst)||Object.keys(this.hst).forEach(function(t){var e,e,e=o.uPt(t),e=u[e].value;M(i.lTi[e])&&(i.lTi[e]={}),i.lTi[e].filteredColumnCache=i.hst[t]}),Object.keys(this.MTi).forEach(function(t){var e,n,e=o.uPt(t),n=u[e].value;M(i.lTi[n])&&(i.lTi[n]={}),e=o.uPt(i.MTi[t]),i.lTi[n].relatedColFilter=u[e].value}),M(this.sTi)||(e=this.sTi,(t=function(t){var n=e[t];M(n)||Object.keys(n).forEach(function(t){var e,e,e=o.uPt(t),e=u[e].value;M(i.lTi[e])&&(i.lTi[e]={}),M(i.lTi[e].sortMap)&&(i.lTi[e].sortMap={}),i.lTi[e].sortMap=n[t]})})(-1),t(-2)),0===Object.keys(this.lTi).length&&delete this.lTi},D.prototype.QIi=function(){var u,t,e,a,r,c,u=this,t=this,e=t.Mf,a=t.eIi(),r=this.lTi,c=t.HMi();M(r)||(delete t.lTi,this.rrt=[],this.Mct=[],this.hst={},this.MTi={},M(this.sTi)||(M(this.sTi[-1])||(this.sTi[-1]={}),M(this.sTi[-2]))||(this.sTi[-2]={}),Object.keys(r).forEach(function(e){var n,i,o,t,n=r[e],i=(0,h.findIndex)(c,function(t){return t.value===e});M(i)||(i=a.BPt(i),M(n.filterItemMap)||(u.rrt[i]=n.filterItemMap,u.Mct.push(i),u.hst[i]=n.filteredColumnCache),M(n.relatedColFilter)||(u.MTi[i]=a.BPt((0,h.findIndex)(c,function(t){return t.value===n.relatedColFilter}))),M(u.sTi))||M(n.sortMap)||(o=u.sTi,(t=function(t){var e;o[t][n.sortMap.index=i]=n.sortMap})(-1),t(-2))}),e.repaint())},e.GroupHideRowFilter=D},"./dist/plugins/tableSheet/tablesheet-override.js":function(t,e,n){var i,o,b,u,a,r,c,s,v,M,n,l,r,I,m,f,N,d,h,g,D;function j(t,e,n){var i=D.call(this,t,e,n,[new b.Range(-1,-1,-1,-1)])||this;return i.nT=b.SheetArea.colHeader,Object.defineProperty(i,"sheetArea",{get:function(){return i.nT}}),i}function C(t){return{field:t.rYt,ascending:t.ascending,compare:t.compareFunction}}function w(t){for(var e,n,i,o,e,n=0,i=f(h);n<i.length;n++)o=i[n],h[o].call(t)}function p(t){var t=t.Mf;t.hA=b.ClipboardPasteOptions.values,t.lF=b.CopyToOptions.value,t.JT=!1,t.UB=!1}function x(t,e,n,i,o,u){var a,r,i,r,n,a,r,i,c,s,l,r,a=t.NMi;return a.isAlternatingRowStyleColumn(n)&&(r=a.FDi(n),a)&&(I(i)||i===b.SheetArea.viewport)&&!t.oNi&&!r&&0<=e&&0<=n&&(i=a.options.alternatingRowOptions)&&(r=i.step||[1,1],n=I(r[0])?1:r[0],a=I(r[1])?1:r[1],r=i.style,!I(r))&&(c=i=void 0,Array.isArray(r)?(i=r[0],c=r[1]):i=r,u=!0,r=void 0,r=(l=Math.floor(e%(s=n+a)))<n?i:c)&&(o.h5(r,!1,45),(0,b.composeParentStyle)(r,o,t,!1,45,!0)),u}i=this&&this.__extends||(g=function(t,e){return(g=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}g(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),Object.defineProperty(e,"__esModule",{value:!0}),e.overrideProperties=e.overrideMethods=e.ColumnHeaderStateRule=e.SR=void 0,o=n("Common"),b=n("Core"),u=n("ConditionalFormatting"),a=n("./dist/plugins/tableSheet/tableSheet.interface.js"),r=n("./dist/plugins/tableSheet/tableSheet.res.en.js"),c=n("./dist/plugins/tableSheet/tableSheet-grouping.js"),s=n("./dist/plugins/tableSheet/tablesheet-filter.js"),v=n("./dist/plugins/tableSheet/tablesheet-filter-utils.js"),M=n("./dist/plugins/tableSheet/tableSheet-undo.js"),e.SR={en:r},n=new o.Common.ResourceManager(e.SR,"TableSheet"),l=n.getResource.bind(n),r=o.Common.lt,I=r.ht,m=r.q8,f=Object.keys,N=null,D=u.StateRule,i(j,D),e.ColumnHeaderStateRule=j,h={aL:function(){var t,e,n,t,e=this.Mf,n=new s.GroupHideRowFilter(new b.Range(-1,-1,-1,-1),this);n.filterDialogVisibleInfo({sortByValue:!0,sortByColor:!1,filterByColor:!1,filterByValue:!0,listFilterArea:!0}),e.rowFilter(n)},OTi:function(){var h=this,g=h.Mf;g.sortRangeOriginal=g.sortRange,g.sortRange=function(t,e,n,i,o,u,a,r,c){var s,l,f,d,u,s,l=this.getDataSource();return!!l&&(d=(f=g.rowFilter()).xWe(),u=u.map(function(t){return f.setSortInfo(t),t.rYt=h.dDi(t.index),C(t)}),f.jFt()&&(u=f.GJe().map(C)),l.sort(u),this.ize.addUndoChanges({type:M.TableSheetUndoType.SortMapChanged,oldData:d}),!0)}},ETi:function(){var t,o,i,n,t=this,o=this,i=o.Mf;i.onItemRemoved=function(t){this.zw()},i.onItemGotten=function(t,e,n){var i;return t&&t.isGroup&&!I(t.OFt)?o.gze()===a.GroupLayoutMode.tabular&&o.DMi(t.OFt,e)?n:N:o.VDi(e)?n:void 0},i.TF=function(){return t},i.hP=function(){var t=this.parent;return!t||t.getActiveSheetTab()===this.NMi},i.FT=function(){return l().Exp_InvalidOperationInProtectForTableSheet},I(i.UTi)&&(i.UTi=i.jT,i.jT=function(){for(var t,e,n,t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.sw&&((n=this.C6(this.sw.rowViewportIndex,this.sw.colViewportIndex))===b.SheetArea.rowHeader||n===b.SheetArea.corner)||i.UTi.apply(i,t)}),i.Ci=function(t,e,n){var t,t=n===b.SheetArea.rowHeader&&o.CDi(t,e)?o.ODi(t):i.CP(t,e,n);return t},n=i.AO.bind(i),i.AO=function(){var t=o.getDataView(),e;return 0<(t&&t.length()||0)?n():[]}},GTi:function(){var h,g,h=this,g=this.Mf;g.getCompositeStyle=function(t,e,n,i,o,u,a){var i,r,c,s,l,f,i,d;if(void 0===a&&(a={}),I(n)&&(n=3),r=this,c=new b.Style,s=!1,l=h.e4i(t,e,n),0!==n){if(s=r.IL(t,e,n,c,s,i),a.hasTableStyle)return c;s=r.xL(t,e,n,c,s,a.table,a.isForFilter),s=(i=r.NL(t,e,n,c,s,a.pivotTable,a.isForFilter,a.pivotTableStyle)).changed,c=i.destInfo,s=r.kL(t,n,c,s,o),(f=1===n&&t<g.Ut.getFreeAreaRowCount(n))||l||(s=r.DL(e,n,c,s,u)),i=m(a.rowSpacingIndex),l||i||(s=x(r,t,e,n,c,s))}return r._L(n,c,s,a.ignoreSheet),(0,v.setInsertedRowCrossStyle)(h,t,e,c,n),l&&(c.cellButtons=[],c.locked=!0),3===n&&h.iDi(t,e)&&(c.locked=!0),3!==n||!h.zDi(t)||I(u)||I(u.formatter)||(d=void 0,-1<(d="string"==typeof u.formatter?u.formatter:u.formatter.formatCached).indexOf("=")&&(c.formatter=N)),c}},l0t:function(){var a,u,o,t,r,a=this,u=a.Mf,o=u._1,t=o.getStateMethods;t[4]=function(t,e,n,i,o){if(n)return!1;if(o===b.SheetArea.colHeader){if(!(0,c.nMi)(this,t,e))return!1;var n=(0,v.getColumnInfo)(a,e);if(n)return n.readonly}return a.pNi(e)},t[1024]=function(t,e,n,i,o){return!n&&o===b.SheetArea.colHeader&&!!(0,c.nMi)(this,t,e)&&e<u.frozenColumnCount()},t[2048]=function(t,e,n,i,o){var n;return!n&&o===b.SheetArea.colHeader&&!!(0,c.nMi)(this,t,e)&&!!(n=(0,v.getColumnInfo)(a,e))&&n.isPrimaryKey},t[4096]=function(t,e,n,i,o){var n,u;return!n&&o===b.SheetArea.colHeader&&!!(0,c.nMi)(this,t,e)&&!!(n=(0,v.getColumnInfo)(a,e))&&(u=!(n.isPrimaryKey||n.readonly))&&n.required},t[b.RowColumnStates.dirty]=function(t,e,n){var i=a.getDataView();return!(!n||!i)&&(i.isUpdated(t)||i.isInserted(t))},t[b.RowColumnStates.inserted]=function(t){var e=a.getDataView();return e&&e.isInserted(t)},t[256]=function(t){var e=a.getDataView();return e&&e.isUpdated(t)},r=t[b.RowColumnStates.selected],t[b.RowColumnStates.selected]=function(t,e,n,i){if("function"==typeof r)return r.call(o.context,t,e,n,i)||a.aDi(t)}}},e.overrideMethods=w,e.overrideProperties=p},DataManager:function(t){t.exports=e.Data},Common:function(t){t.exports=e.Spread},CalcEngine:function(t){t.exports=e.Spread.CalcEngine},Core:function(t){t.exports=e.Spread.Sheets},AutoMerge:function(t){t.exports=e.Spread.Sheets.AutoMerge},Bindings:function(t){t.exports=e.Spread.Sheets.Bindings},SheetsCalc:function(t){t.exports=e.Spread.Sheets.CalcEngine},CellTypes:function(t){t.exports=e.Spread.Sheets.CellTypes},ConditionalFormatting:function(t){t.exports=e.Spread.Sheets.ConditionalFormatting},Validation:function(t){t.exports=e.Spread.Sheets.DataValidation},Filters:function(t){t.exports=e.Spread.Sheets.Filter},FormulaTextBox:function(t){t.exports=e.Spread.Sheets.FormulaTextBox},Print:function(t){t.exports=e.Spread.Sheets.Print},StatusBar:function(t){t.exports=e.Spread.Sheets.StatusBar},Tables:function(t){t.exports=e.Spread.Sheets.Tables}},i={},t=o("./dist/plugins/tableSheet/tableSheet.entry.js"),(((e=void 0===e?{}:e).Spread=e.Spread||{}).Sheets=e.Spread.Sheets||{}).TableSheet=t}()});
|
|
12
|
+
!function(t){"object"==typeof module&&"object"==typeof module.exports?module.exports=t(require("@mescius/spread-sheets")):"function"==typeof define&&define.amd?define(["@mescius/spread-sheets"],t):"object"==typeof exports?exports.Spread=t(require("@mescius/spread-sheets")):t(GC)}(function(e){!function(){"use strict";var n,i,t;function o(t){var e,e,e=i[t];return void 0!==e||(e=i[t]={exports:{}},n[t].call(e.exports,e,e.exports,o)),e.exports}n={"./dist/plugins/tableSheet/actionColumn.js":function(t,e,n){var i,o;function u(t){this.LEt={visible:!1,title:"Actions",width:210,actionButtons:{remove:{visible:!0,title:"Remove",icon:i.ButtonImageType.minus},save:{visible:!0,title:"Save",icon:i.ButtonImageType.ok},reset:{visible:!0,title:"Reset",icon:i.ButtonImageType.clear}},headerStyle:null},this.hce=t}Object.defineProperty(e,"__esModule",{value:!0}),e.ActionColumn=void 0,i=n("Core"),u.prototype.options=function(t){var e;if(!t)return this.LEt;e=this.LEt,this.LEt=t,this.hce(e,t)},u.prototype.toJSON=function(){return this.LEt},u.prototype.fromJSON=function(t){this.LEt=t},e.ActionColumn=u},"./dist/plugins/tableSheet/arrayFunction.js":function(t,e,n){var i,e,n;Object.defineProperty(e,"__esModule",{value:!0}),(i=n("CalcEngine")).Functions.findGlobalFunction(e="CONVERTARRAY")||((n=new i.Functions.Function(e,1,255)).evaluate=function(){var t=[].slice.apply(arguments);return new i.CalcArray([t])},i.Functions.defineGlobalCustomFunction(e,n))},"./dist/plugins/tableSheet/data.dataManager.js":function(t,e,n){var e,i,o,c,s,u,r;function l(t){return t instanceof Function}function a(){}Object.defineProperty(e,"__esModule",{value:!0}),e=n("Bindings"),i=n("Common"),o=n("DataManager"),c=i.Common.lt.ht,s=null,u=void 0,a.prototype.isDataSource=function(t){return o&&o.isView&&o.isView(t)},a.prototype.getDataLength=function(t){return t.visibleLength()},a.prototype.getDataItem=function(t,e,n){var i;return e<0?s:(i=u,n&&((i={})[n]=1),t.getRowData(e,u,i))},a.prototype.addItems=function(t,e,n,i,o){},a.prototype.removeItems=function(t,e,n,i){var o=this.getDataLength(t);i()},a.prototype.undoRemoveItems=function(t,e,n){},a.prototype.getProperties=function(t){var t=this.getDataItem(t,0);return t?Object.keys(t):[]},a.prototype.getValue=function(t,e,n,i,o,u){var e,o,r,t,a,o=t.Dve(o);return o?(r=s,t=t._ve(i,o),a=!1,c(t)||(a=!0,e&&l(e)&&(t=e(((e={})[n]=t,e))),r=u?u(o,i,t):t),{value:r,hasBinding:a}):{value:s,hasBinding:!0}},a.prototype.setValue=function(t,e,n,i,o,u,r){},a.prototype.allowSetCount=function(){return!0},a.prototype.canAdd=function(){return!0},a.prototype.canInsert=function(){return!1},a.prototype.fromJSON=function(t){return t},a.prototype.toJSON=function(t){return t},e.X$.dataManagerBindingSource=new a},"./dist/plugins/tableSheet/overr-write-worksheet.js":function(t,e,n){var i,n,o,u,r;function a(t){return void 0===t}function c(t,e,n){var t=r.call(this,t)||this;return t.NMi=e,t.ize=n,t}i=this&&this.__extends||(u=function(t,e){return(u=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}u(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),Object.defineProperty(e,"__esModule",{value:!0}),e.OverWriteWorkSheet=void 0,n=n("Core"),r=n.Worksheet,i(c,r),c.prototype.Mtt=function(t){this.oze(t)?this.ize.undo(t):r.prototype.Mtt.call(this,t)},c.prototype.VAe=function(){r.prototype.VAe.call(this),this.ize.startTransaction()},c.prototype.zAe=function(){var t,e,t=r.prototype.zAe.call(this),e=this.ize.endTransaction();return 0<(null==e?void 0:e.length)?e:t},c.prototype.qWe=function(){return!a(this.$We)},c.prototype.zHe=function(){this.$We={}},c.prototype.ZHe=function(){this.QHe(),this.$We=void 0},c.prototype.YHe=function(t){a(this.$We[t])&&(this.$We[t]=!0)},c.prototype.QHe=function(){if(this.$We)for(var t in this.$We)this.$We[t]&&this.NMi.iM(void 0,t)},c.prototype.oze=function(t){var t=null==t?void 0:t[0];return!(null==t||!t.sourceType)},e.OverWriteWorkSheet=c},"./dist/plugins/tableSheet/tableSheet-action.js":function(Z,t,e){var n,o,e,a,e,e,U,G,B,R,P,Q,Y,W,H,V,F,_,J,X,K,i,u,r,c,s,l,f,d,h,g,b,v,M,I,m,N,D;function j(){return null!==u&&u.apply(this,arguments)||this}function C(){return null!==r&&r.apply(this,arguments)||this}function w(){return null!==c&&c.apply(this,arguments)||this}function p(){return null!==s&&s.apply(this,arguments)||this}function x(){return null!==l&&l.apply(this,arguments)||this}function y(){return null!==f&&f.apply(this,arguments)||this}function A(){return null!==d&&d.apply(this,arguments)||this}function T(){return null!==h&&h.apply(this,arguments)||this}function S(){return null!==g&&g.apply(this,arguments)||this}function z(){return null!==b&&b.apply(this,arguments)||this}function L(){return null!==v&&v.apply(this,arguments)||this}function O(){return null!==M&&M.apply(this,arguments)||this}function k(){return null!==I&&I.apply(this,arguments)||this}function q(){return null!==m&&m.apply(this,arguments)||this}function $(){return null!==N&&N.apply(this,arguments)||this}function E(){return null!==D&&D.apply(this,arguments)||this}function tt(t,e){var n,i,o,n=e.getDataView();n&&(i=e.Mf.rowFilter(),(o=e.TLt(n,t,t))&&(e.EPt(),i.UIi()),e.Mf.rowFilter().VIi(t),n.sUe(t),o&&(i.QIi(),e.jPt()),e.restoreView(e.getDataView()))}n=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),Object.defineProperty(t,"__esModule",{value:!0}),t.TableSheetRemoveColumnInfoAction=t.TableSheetResertViewAction=t.ViewGroupOptionsAction=t.ViewMoveColumnAction=t.ViewAddColumnInfoAction=t.ViewRemoveColumnInfoAction=t.ViewUpdateColumnInfoAction=t.DefineColumnToTableAction=t.RemoveColumnToTableAction=t.ModifyColumnToTableAction=t.ExpandGroupItemAction=t.ExpandGroupAction=t.RemoveRowAction=t.PinRowAction=t.ResetRowAction=t.TableSheetActionBase=void 0,o=e("Core"),e=e("Common"),a=e.Common.lt.ht,e=o.Commands.ActionBase,n(j,u=e),Object.defineProperty(j.prototype,"sheet",{get:function(){return this.Mf},enumerable:!1,configurable:!0}),Object.defineProperty(j.prototype,"sheetTab",{get:function(){return this.sheet.NMi},enumerable:!1,configurable:!0}),j.prototype.execute=function(){var t,e,n,i,t=this,e=!1;if(t.canExecute()){i=(n=t.sheet).parent.i4(),o.Commands.II(i),t.X5(n,!0);try{"boolean"!=typeof(e=this.uze())&&(e=!0)}finally{t.q5(n,!0),o.Commands.xI(i,t.tT)}}return e},j.prototype.undo=function(){var t,e,n,i,t=this,e=t.sheet,n=!1;if(t.canUndo()){t.X5(e,!0);try{i=e.parent.i4(),t.aze(),o.Commands.NI(i,t.tT),this.cze(),n=!0}finally{t.q5(e,!0)}}return n},j.prototype.aze=function(){},j.prototype.cze=function(){},t.TableSheetActionBase=e=j,n(C,r=e),C.prototype.uze=function(){var t=this.tT,e=t.tableSheet,t=t.index;e.Mf.ki(o.Events.RowOperation,{sheet:e,sheetName:e.name(),actionType:2,row:t}),e.resetRow(t)},t.ResetRowAction=C,n(w,c=e),w.prototype.uze=function(){var t=this.tT,e=t.tableSheet,t=t.index;e.togglePinnedRows([t])},t.PinRowAction=w,n(p,s=e),p.prototype.uze=function(){var t=this.tT,e=t.tableSheet,t=t.index;e.Mf.ki(o.Events.RowOperation,{sheet:e,sheetName:e.name(),actionType:0,row:t}),e.removeRow(t)},t.RemoveRowAction=p,n(x,l=e),x.prototype.uze=function(){var t,e,t,n,e,t=this,e=t.tT,t=t.sheetTab,n=e.field,e=e.expand;t.expandGroup(n,e)},t.ExpandGroupAction=x,n(y,f=e),y.prototype.uze=function(){var t,e,t,n,i,e,t=this,e=t.tT,t=t.sheetTab,n=e.level,i=e.index,e=e.expand;t.expandGroupItem(n,i,e)},t.ExpandGroupItemAction=y,n(A,d=e),A.prototype.uze=function(){var t,e,t,n,i,e,t=this,e=t.tT,t=t.sheetTab,n=e.column,i=e.originalColumn,e=e.col;return t.yBe(e,n,i)},A.prototype.cze=function(){var t;this.sheetTab.refreshBindColumns()},t.ModifyColumnToTableAction=A,n(T,h=e),T.prototype.uze=function(){var t,e,t,n,e,t=this,e=t.tT,t=t.sheetTab,n=e.column,e=e.col;return t.gBe(e,n)},T.prototype.cze=function(){var t;this.sheetTab.refreshBindColumns()},t.RemoveColumnToTableAction=T,n(S,g=e),S.prototype.uze=function(){var t,e,t,n,e,t=this,e=t.tT,t=t.sheetTab,n=e.column,e=e.col;return t.cBe(e,n)},S.prototype.cze=function(){var t;this.sheetTab.refreshBindColumns()},t.DefineColumnToTableAction=S,n(z,b=e),z.prototype.uze=function(){var t,e,t,e,n,o,i,t=this,e=t.tT,t=t.sheetTab,e=e.columnInfos,n=t.getDataView(),o=n.getColumnInfos(),i=t.sze(!0)&&e.some(function(e){var t,n,i,t=!1!==e.visible,n=o.find(function(t){return t.value===e.value});return!(!n||t==(!1!==n.visible))});i&&t.ize.startAddComboChanges(),e.forEach(function(t){n.updateColumn(t)}),t.refreshBindColumns(),i&&(t.lze(),t.ize.endAddComboChanges())},z.prototype.cze=function(){var t;this.sheetTab.refreshBindColumns()},t.ViewUpdateColumnInfoAction=z,n(L,v=e),L.prototype.uze=function(){var t,e,t,e,n,t=this,e=t.tT,t=t.sheetTab,e=e.value,n=t.getDataView();t.ize.startAddComboChanges(),n.removeColumn(e),t.refreshBindColumns(),t.lze(),t.ize.endAddComboChanges()},L.prototype.cze=function(){var t;this.sheetTab.refreshBindColumns()},t.ViewRemoveColumnInfoAction=L,n(O,M=e),O.prototype.uze=function(){var t,e,t,e,n,t=this,e=t.tT,t=t.sheetTab,e=e.columnInfo,n;t.getDataView().addColumn(e),t.refreshBindColumns()},O.prototype.cze=function(){var t;this.sheetTab.refreshBindColumns()},t.ViewAddColumnInfoAction=O,n(k,I=e),k.prototype.uze=function(){var t,e,t,n,i,o,u,e,r,t=this,e=t.tT,t=t.sheetTab,n=e.fromColumnOptionIndex,i=e.toColumnOptionIndex,o=e.fromColumnIndex,u=e.toColumnIndex,e=e.count,r=!0;!(r=a(n)||a(i)?r:!t.DPt(n,i))||a(o)||a(u)||a(e)||t.OPt(o,u,e)},t.ViewMoveColumnAction=k,n(q,m=e),q.prototype.uze=function(){var t,e,t,e,t=this,e=t.tT,t=t.sheetTab,e=e.groupOptions;0<(null==e?void 0:e.length)?t.groupBy(e):t.removeGroupBy()},t.ViewGroupOptionsAction=q,n($,N=e),$.prototype.uze=function(){var t,e,t,e,n,i,e,t=this,e=t.tT,t=t.sheetTab,e=e.newConfig,n=e.columnInfoOptions,i=e.includeDefaultColumns,e=e.options;t.resetNewView(n,i,e)},t.TableSheetResertViewAction=$,n(E,D=e),E.prototype.uze=function(){var t,e,t,n,t=this,e=t.tT,t=t.sheetTab,n;tt(e.index,t)},E.prototype.cze=function(){var t=this.sheetTab;t.restoreView(t.getDataView())},t.TableSheetRemoveColumnInfoAction=E},"./dist/plugins/tableSheet/tableSheet-grouping.js":function(b,t,e){var n,u,Z,U,v,o,G,B,R,A,_,T,M,I,m,N,D,J,j,S,C,r,P,w,e,a,z,L,X,x,y,K,O,k,d,q,$,tt,p,Q;function Y(t){return void 0===t}function et(t,e){return T(t)&&(t=Number.MIN_VALUE),T(e)&&(e=Number.MIN_VALUE),A(t,e)}function W(t){return E(t)||H(t)}function E(t){return t===U.GroupLayoutMode.outline}function H(t){return t===U.GroupLayoutMode.condensed}function nt(t,e){var n,i;return t?(i=t.headerStyle&&!!t.headerStyle.formatter,n=st(t.headerStyle,e),i||(n.formatter=B)):(n=e.clone()).formatter=B,n}function it(t,e){return t?st(t.style,e):e}function ot(t){var e=new Z.Style;return Y(t.backColor)||(e.backColor=t.backColor),Y(t.foreColor)||(e.foreColor=t.foreColor),Y(t.font)||(e.font=t.font),Y(t.themeFont)||(e.themeFont=t.themeFont),Y(t.cellPadding)||(e.cellPadding=t.cellPadding),e}function ut(t){return rt(t.value,t.caption)}function rt(t,e){return T(t)?B:e?"".concat(e).concat((0,G.getSR)().TextColon," ").concat(t):""+t}function at(t){return ct(t.value,t.field)}function ct(t,e){return T(t)?""+e:"".concat(e).concat((0,G.getSR)().TextColon," ").concat(t)}function V(t,e,n){var t,t=t instanceof Z.Style?t.clone():new Z.Style(t);return Y(t.foreColor)&&n&&!Y(n.foreColor)&&(t.foreColor=n.foreColor),e&&t.v5(e),t}function st(t,e){var t;return t&&(t=V(t),e&&t.compose(e),e=t),e&&(delete e.cellButtons,delete e.dropDowns),e}function F(t,e){return t.hAlign===Z.HorizontalAlign.general||T(t.hAlign)?e:t.hAlign}function lt(t,e,n){var i,o;for(o in t=t||{},i=e[n])i.hasOwnProperty(o)&&T(t[o])&&(t[o]=u(u({},i[o]),{value:e.value}));return t}function ft(t,e,n){var i,o,u;for(o in t)t.hasOwnProperty(o)&&((u=t[o])[e]&&(i=lt(i,u,e)),n)&&(i=lt(i,u));return i}function dt(t,e){var n,i,o,u,r,a;for(n in t)"parent"!==n&&"children"!==n&&(e[n]=t[n]);for(e.children=[],o=0,u=i=t.children;o<u.length;o++)r=u[o],e.children.push(a={}),dt(r,a)}function ht(t){for(var e,n,i,o,e,n=0,i=t.children;n<i.length;n++)(o=i[n]).parent=t,ht(o)}function gt(t,e){var n,i,o,u,r,a,c,n=!0,i=t.start===e.start&&t.end===e.end,o=t.children.length===e.children.length;if(i&&o)for(u=t.children.length,r=0;r<u&&!1!==(n=gt(a=t.children[r],c=e.children[r]));r++);else n=!1;return n}function bt(t){return t&&t.row&&"number"==typeof t.row&&0<t.row?t.row:B}function vt(t){var t,t,t,e,t,e=0,t=null==(t=null==(t=null==(t=null==t?void 0:t.cellNode)?void 0:t.field)?void 0:t.extra)?void 0:t.spacing;return e=t?bt(t):e}function i(){}function c(){return null!==O&&O.apply(this,arguments)||this}function Mt(){return null!==k&&k.apply(this,arguments)||this}function It(t,e,n){for(var i,o,u,r,a,i,r=t.getRowCount(Z.SheetArea.colHeader)-1;0<=r;r--){if(a=t.getValue(r,n,Z.SheetArea.colHeader),T(o))o=a;else if(o!==a)break;u=r}return e===u}function s(){var t=d.call(this)||this;return t.typeName="98",t}function mt(){return q.call(this)||this}function l(){var t=$.call(this)||this;return t.typeName="99",t}function Nt(){var t=tt.call(this)||this;return t.typeName="108",t}function Dt(){var t=p.call(this)||this;return t.fze=U.GroupLayoutMode.outline,t.dze=!1,t.typeName="109",t}function f(){var t=Q.call(this)||this;return t.fze=U.GroupLayoutMode.outline,t.typeName="110",t}function h(){this.tMi=U.GroupOutlinePosition.groupCell,this.GY=U.GroupLayoutMode.tabular,this.hze=M}function g(){this._data=new I,this._ui=new x}n=this&&this.__extends||(K=function(t,e){return(K=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}K(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),u=this&&this.__assign||function(){return(u=Object.assign||function(t){for(var e,n,i,o,n=1,i=arguments.length;n<i;n++)for(o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},Object.defineProperty(t,"__esModule",{value:!0}),t.Grouping=t.nMi=t.getHorizontalAlign=t.getGroupHeaderValueFromCondensed=t.getValueFromCondensed=t.composeValueStyle=t.composeHeaderStyle=t.isGroupCondensedLayout=t.isGroupOutlineLayout=t.isGroupOutlineCondensedLayout=void 0,Z=e("Core"),U=e("./dist/plugins/tableSheet/tableSheet.interface.js"),v=e("Common"),o=e("./dist/plugins/tableSheet/tablesheet-command.js"),G=e("./dist/plugins/tableSheet/tableSheet.js"),B=void 0,R=Math.round,A=Math.max,_=Math.ceil,T=v.Common.lt.ht,M={position:"header"},t.isGroupOutlineCondensedLayout=W,t.isGroupOutlineLayout=E,t.isGroupCondensedLayout=H,t.composeHeaderStyle=nt,t.composeValueStyle=it,t.getValueFromCondensed=ut,t.getGroupHeaderValueFromCondensed=at,t.getHorizontalAlign=F,i.prototype.Hc=function(t,e){var e,n,i,e={level:-1,collapsed:!1,children:[],parent:B,start:0,end:e},n=0,i=0;this.eMi(t,0,0,e),this.oMi&&this.zJe(this.oMi,e),this.oMi=e},i.prototype.eMi=function(t,e,n,i){for(var o,u,r,a,c,s,l,f,d,o=i.children,u,r=0,a=0,c=t.childrenArray&&t.childrenArray[0]||[];a<c.length;a++)l=(s=c[a]).recordRowNumbers,s.childrenArray&&s.childrenArray[0]&&0!==s.childrenArray[0].length?s.childrenArray&&s.childrenArray[0]&&s.childrenArray[0].length&&(f={level:n,value:s.value,collapsed:!1,children:[],parent:i,start:e,end:0,spacingIndex:s.spacingIndex},d=this.eMi(s,e,n+1,f),f.end=e+d-1,o.push(f),e+=d,r+=d):(o.push({start:e,end:e+l.length-1,level:n,collapsed:!1,children:[],parent:i,spacingIndex:s.spacingIndex,value:s.value}),e+=l.length,r+=l.length);return r},i.prototype.zJe=function(t,e){for(var n,i,o,u,r,a,c,s,n=t.children,i,o=0,u=e.children;o<u.length;o++)for(r=u[o],a=0,c=n;a<c.length;a++)if(s=c[a],r.value===s.value){r.collapsed=s.collapsed,this.zJe(s,r);break}},i.prototype.uMi=function(t,e,n,i){for(var o=0;o<t.length;o++)if(t[o].field===e){this.cMi(this.oMi,o,n,i);break}},i.prototype.cMi=function(t,e,n,i){for(var o,u,r,a,o,u=0,r=t.children;u<r.length;u++)a=r[u],this.rMi(a,e,n,i)},i.prototype.rMi=function(t,e,n,i){var o,u,r,a,c;if(t.level===e)t.collapsed!==(o=!n)&&(t.collapsed=o,i)&&i(t.level,t.start);else for(r=0,a=u=t.children;r<a.length;r++)c=a[r],this.rMi(c,e,n,i)},i.prototype.aMi=function(t,e,n,i){var o,u,r,a,c,s,l,o=this.oMi,u=!n;if(o&&o.start<=e&&e<=o.end)for(r=o.children;0<r.length;){for(a=!0,c=0,s=r;c<s.length;c++)if((l=s[c]).start<=e&&e<=l.end){if(l.level===t)return l.collapsed!==u&&i(!l.collapsed),void(l.collapsed=u);r=l.children,a=!1;break}if(a)break}},i.prototype.TWe=function(t){for(t=t.parent;t;){if(t.collapsed)return!0;t=t.parent}return!1},i.prototype.sMi=function(t,e,n,i,o){var u,r,a,c,s,l,f,d,h,g,u=-1,r=this.oMi,a="number"==typeof i;if(r&&r.start+n<=t&&t<=r.end){if(c=r.collapsed,a&&!o&&(c=r.spacingIndex===i&&r.parent&&this.TWe(r)),u<e&&c)return!1;for(s=r.children,u++;0<s.length;){for(l=!0,f=0,d=s;f<d.length;f++)if((h=d[f]).start+n<=t&&t<=h.end){if(g=h.collapsed,a&&!o&&(g=h.spacingIndex===i&&h.parent&&this.TWe(h)),u<e&&g)return!1;s=h.children,u++,l=!1;break}if(l)break}}return!0},i.prototype.MMi=function(t){var e,n,i,o,u,r,a,e=[],n=this.oMi;if(n&&n.start<=t&&t<=n.end)for(i=n.children;0<i.length;){for(o=!0,u=0,r=i;u<r.length;u++)if((a=r[u]).start<=t&&t<=a.end){e.push(a),i=a.children,o=!1;break}if(o)break}return e},i.prototype.IMi=function(t,e){var n,i,o,u,r,a,n=this.oMi;if(n&&n.start<=t&&t<=n.end)for(i=n.children;0<i.length;){for(o=!0,u=0,r=i;u<r.length;u++)if((a=r[u]).start<=t&&t<=a.end){if(a.level===e)return a;i=a.children,o=!1;break}if(o)break}},i.prototype.gMi=function(t){var e,n,i,o,u,r,a,c,s,l,f,d,e=this.oMi;if(!e)return!1;for(n=e.children.slice(0),i=0;i<t;){for(o=[],u=0,r=n;u<r.length;u++)for(c=0,s=(a=r[u]).children;c<s.length;c++)l=s[c],o.push(l);n=o,i++}for(f=0,d=n;f<d.length;f++)if(!(a=d[f]).collapsed)return!1;return!0},i.prototype.L0=function(){this.oMi=B},i.prototype.toJSON=function(){var t;return this.oMi&&(dt(this.oMi,t={}),t)},i.prototype.fromJSON=function(t,e){var n=this.oMi;(e||n&&t&>(this.oMi,t))&&(ht(t),this.oMi=t)},I=i,m=40,N=16,D=4,J=2.5,O=Z.CellTypes.RowHeader,n(c,O),c.prototype.paint=function(t,e,n,i,o,u,r,a){var c,s,l,f,d,h,g,b,v,M,I,m,N,D,j,C,w,p,x,y,A,C,T,S,c=a.sheet,s=a.row,l=c.zoom(),f=16*l,d=4*l,h=J*l,g=c.NMi;if(g)for(M=!(v=W(b=g.gze())),N=(40*(m=(I=g.MMi(s)).length)-16*m)/(m+1)*l,O.prototype.paintValue.call(this,t,e,n,i,o,u,r,a),D=0;D<m;D++)j=I[D],(D!==g.lMi.length-1||g.detailColumnsVisible())&&g.DMi(D,s)&&(t.save(),t.beginPath(),t.strokeStyle="#999999",t.lineWidth=1,w=(C=n+N)+f/2,p=i+u,x=i+u/2,(y=j.start===s)&&M?(A=R(C)-.5,C=R(C+f)-.5,T=R(x-f/2)-.5,S=R(x-f/2+f)-.5,t.moveTo(A,T),t.lineTo(C,T),t.lineTo(C,S),t.lineTo(A,S),t.lineTo(A,T),t.moveTo(R(w-d)-.5,R(x)-.5),t.lineTo(R(w+d)-.5,R(x)-.5),j.collapsed?(t.moveTo(R(w)-.5,R(x-d)-.5),t.lineTo(R(w)-.5,R(x+d)-.5)):(t.moveTo(R(w)-.5,R(x+f/2)-.5),t.lineTo(R(w)-.5,R(p)-.5))):j.start<s&&s<j.end||y&&v||j.end===s&&this.bze(c,s,D)?(t.moveTo(R(w)-.5,R(i)-.5),t.lineTo(R(w)-.5,R(p)-.5)):j.end===s&&(t.moveTo(R(w)-.5,R(i)-.5),t.lineTo(R(w)-.5,R(p-h)-.5),t.lineTo(R(w+d)-.5,R(p-h)-.5)),t.stroke(),t.restore(),n+=N+f)},c.prototype.fMi=function(t,e,n,i,o,u){var r,a,c,s,l,f,d,h,g,b,v,M,I,m,M,N,I,r=t.x,a=i.zoom(),c=16*a,s=i.NMi;if(s){if(f=W(l=s.gze()))return B;for(g=(40*(h=(d=s.MMi(o)).length)-16*h)/(h+1)*a,b=0;b<h;b++)if(v=d[b],(b!==s.lMi.length-1||s.detailColumnsVisible())&&s.DMi(b,o)){if(M=r+g,I=t.y+t.height/2,v.start===o&&(m=R(M)-.5,M=R(M+c)-.5,N=R(I-c/2)-.5,I=R(I-c/2+c)-.5,m<=e)&&e<=M&&N<=n&&n<=I)return{level:b,index:o,collapsed:v.collapsed};r+=g+c}}},c.prototype.getHitInfo=function(t,e,n,i,o){var u,r;if(o&&2===(u=o.sheetArea)&&(r=this.fMi(i,t,e,o.sheet,o.row,o)))return{x:t,y:e,row:o.row,col:o.col,cellRect:i,sheetArea:2,isReservedLocation:!0,sheet:o.sheet,level:r.level,index:r.index,collapsed:r.collapsed}},c.prototype.processMouseDown=function(t){var e,n,i,t;return!(!t||!(e=t.sheet.NMi)||(n=t.level,i=t.index,t=t.collapsed,e.zA({cmd:o.EXPAND_GROUP_ITEM,level:n,index:i,expand:t}),0))},c.prototype.bze=function(t,e,n,i){void 0===i&&(i=0);var t=t.TFe&&t.TFe(e,i,-1,!0);return!(!t||t.isSpacing)&&n<=t.level},c.prototype.vze=function(e,n,i,t,o){var u,o,u=this;return!!o&&(o=function(t){return u.bze(e,n,i,t)})(t)&&o(t+1)},n(Mt,k=j=c),Mt.prototype.paint=function(t,e,n,i,o,u,r,a){var c,s,l,f,d,h,g,b,v,M,I,m,N,D,j,C,w,p,x,y,A,T,S,x,z,L,c=a.sheet,s=a.row,l=c.zoom(),f=16*l,d=4*l,h=J*l,g=c.NMi;if(g&&(b=a.rowSpacingIndex,M=!(v=a.isAfterRowSpacing),I=c.TFe&&c.TFe(s,b,-1,v)))for(m=I.level,N=I.isSpacing,C=(40*(j=(D=g.MMi(s)).length)-16*j)/(j+1)*l,k.prototype.paintValue.call(this,t,e,n,i,o,u,r,a),w=0;w<j;w++)m<w||(p=D[w],(w!==g.lMi.length-1||g.detailColumnsVisible())&&g.DMi(w,s)&&(t.save(),t.beginPath(),t.strokeStyle="#999999",t.lineWidth=1,y=(x=n+C)+f/2,A=i+u,T=i+u/2,p.start===s&&w===m&&M?(S=R(x)-.5,x=R(x+f)-.5,z=R(T-f/2)-.5,L=R(T-f/2+f)-.5,t.moveTo(S,z),t.lineTo(x,z),t.lineTo(x,L),t.lineTo(S,L),t.lineTo(S,z),t.moveTo(R(y-d)-.5,R(T)-.5),t.lineTo(R(y+d)-.5,R(T)-.5),p.collapsed?(t.moveTo(R(y)-.5,R(T-d)-.5),t.lineTo(R(y)-.5,R(T+d)-.5)):(t.moveTo(R(y)-.5,R(T+f/2)-.5),t.lineTo(R(y)-.5,R(A)-.5))):p.start<s&&s<p.end||w<m&&(M||this.vze(c,s,w,b,v))?(t.moveTo(R(y)-.5,R(i)-.5),t.lineTo(R(y)-.5,R(A)-.5)):p.end!==s||N||(t.moveTo(R(y)-.5,R(i)-.5),t.lineTo(R(y)-.5,R(A-h)-.5),t.lineTo(R(y+d)-.5,R(A-h)-.5)),t.stroke(),t.restore(),n+=C+f))},Mt.prototype.fMi=function(t,e,n,i,o,u){var r,a,c,s,l,f,d,u,h,g,b,v,M,I,m,N,D,m,j,N,r=t.x,a=i.zoom(),c=16*a,s=i.NMi;if(s&&(l=u.rowSpacingIndex,d=!(f=u.isAfterRowSpacing),u=i.TFe&&i.TFe(o,l,-1)))for(h=u.level,v=(40*(b=(g=s.MMi(o)).length)-16*b)/(b+1)*a,M=0;M<b;M++)if(!(h<M&&d)&&(I=g[M],M!==s.lMi.length-1||s.detailColumnsVisible())&&s.DMi(M,o)){if(m=r+v,N=t.y+t.height/2,I.start===o&&M===h&&d&&(D=R(m)-.5,m=R(m+c)-.5,j=R(N-c/2)-.5,N=R(N-c/2+c)-.5,D<=e)&&e<=m&&j<=n&&n<=N)return{level:M,index:o,collapsed:I.collapsed};r+=v+c}},S=Mt,C=2.5,t.nMi=It,d=Z.CellTypes.ColumnHeader,n(s,d),s.prototype.dMi=function(t,e){for(var n=0;n<e;n++)if(t.gMi(n))return!1;return!0},s.prototype.paintContent=function(t,e,n,i,o,u,r,a){var c,s,l,e,o,l,r,c,c,f,r,a,l,c,s,n,a,i,u,c=a.sheet,s=c.zoom(),l=21*s;d.prototype.paintContent.call(this,t,e,n+l,i,o-l,u,r,a),e=16*s,o=4*s,l=c.NMi,r=c.getDataSource(),l&&l.lMi&&0<l.lMi.length&&r&&It(a.sheet,a.row,a.col)&&((c=l.groupOutlinePosition())!==U.GroupOutlinePosition.groupCell&&c!==U.GroupOutlinePosition.groupCellAll||!(f=(c=r.Dve(a.col).OFt)===l.lMi.length-1&&!l.detailColumnsVisible())&&this.dMi(l,c)&&(r=l.gMi(c),a=C*s,t.save(),t.beginPath(),t.strokeStyle="#999999",t.lineWidth=1,c=(l=n+a)+e/2,s=i+u/2,n=R(l)-.5,a=R(l+e)-.5,i=R(s-e/2)-.5,u=R(s-e/2+e)-.5,t.moveTo(n,i),t.lineTo(a,i),t.lineTo(a,u),t.lineTo(n,u),t.lineTo(n,i),t.moveTo(R(c-o)-.5,R(s)-.5),t.lineTo(R(c+o)-.5,R(s)-.5),r&&(t.moveTo(R(c)-.5,R(s-o)-.5),t.lineTo(R(c)-.5,R(s+o)-.5)),t.stroke(),t.restore()))},s.prototype.fMi=function(t,e,n,i,o,u){var r,a,c,s,l,i,o,f,i,l,d,s,u,t,r,a,s,r=t.x,a=i.zoom(),c=16*a,s=i.NMi,l=i.getDataSource();if(s&&l&&It(i,o,u)&&((i=s.groupOutlinePosition())===U.GroupOutlinePosition.groupCell||i===U.GroupOutlinePosition.groupCellAll)&&!(f=(o=l.Dve(u).OFt)===s.lMi.length-1&&!s.detailColumnsVisible())&&this.dMi(s,o)&&(i=s.lMi[o].field,l=s.gMi(o),u=t.y+t.height/2,t=R(s=r+(d=C*a))-.5,r=R(s+c)-.5,a=R(u-c/2)-.5,s=R(u-c/2+c)-.5,t<=e)&&e<=r&&a<=n&&n<=s)return{field:i,level:o,collapsed:l}},s.prototype.getHitInfo=function(t,e,n,i,o){var u,n;if(o&&1===(u=o.sheetArea)&&(i=this.An(i,n,o.sheet.zoom()),n=this.fMi(i,t,e,o.sheet,o.row,o.col)))return{x:t,y:e,row:o.row,col:o.col,cellRect:i,sheetArea:1,isReservedLocation:!0,sheet:o.sheet,field:n.field,level:n.level,collapsed:n.collapsed}},s.prototype.processMouseDown=function(t){var e,n,t;return!(!t||!(e=t.sheet.NMi)||(n=t.field,t=t.collapsed,e.zA({cmd:o.EXPAND_GROUP,field:n,expand:t}),0))},r=s,Z.CellTypes.ti[98]=r,P=2.5,w=5,q=Z.CellTypes.Text,n(mt,q),mt.prototype.getHitInfo=function(t,e,n,i,o){var u,u;if(o&&(3===(u=o.sheetArea)||T(u))&&(i=this.An(i,n,o.sheet.zoom()),u=this.fMi(i,t,e,o.sheet,o.row,o.col,o.rowSpacingIndex)))return{x:t,y:e,row:o.row,col:o.col,cellRect:i,sheetArea:3,isReservedLocation:!0,sheet:o.sheet,level:u.level,index:u.index,collapsed:u.collapsed,rowSpacingIndex:o.rowSpacingIndex,isAfterRowSpacing:o.isAfterRowSpacing}},mt.prototype.processMouseDown=function(t){var e,n,i,t;return!(!t||!(e=t.sheet.NMi)||(n=t.level,i=t.index,t=t.collapsed,e.zA({cmd:o.EXPAND_GROUP_ITEM,level:n,index:i,expand:t}),0))},n(l,$=e=mt),l.prototype.Mze=function(t,e,n,i,o){var u;return!(!e||(t.gze()===U.GroupLayoutMode.tabular?e.start!==n:"number"!=typeof o||!t.Mf.TFe||"number"!=typeof t.Mf.TFe(n,o,i)))},l.prototype.paintValue=function(t,e,n,i,o,u,r,a){var c,s,l,f,c,d,h,g,b,v,M,I,m,N,e,m,D,e,r,m,j,I,c,a,s,f,d,h,v,c=a.sheet,s=c.zoom(),l=21*s,f=c.NMi,c=c.getDataSource(),d=a.row,h=a.col,g=16*s,b=4*s,v=a.rowSpacingIndex,M=f.gze(),I=W(M),m=e;!T(m)&&I&&"number"==typeof v&&(m="".concat(e)),e=n+l,I&&f.Mf.TFe&&(e=n+l*((N=f.Mf.TFe(d,a.rowSpacingIndex,h))+1)),$.prototype.paintValue.call(this,t,m,e,i,o-l,u,r,a),f&&c&&f.lMi&&0<f.lMi.length&&((m=f.groupOutlinePosition())!==U.GroupOutlinePosition.groupCell&&m!==U.GroupOutlinePosition.groupCellAll||!(D=(N=I?N:c.Dve(h).OFt)===f.lMi.length-1&&!f.detailColumnsVisible())&&f.DMi(N,a.row)&&(e=P*s,r=5*s,m=f.IMi(d,N),j=this.Mze(f,m,d,h,v))&&(t.save(),t.beginPath(),t.rect(n,i,o,u),t.clip(),t.beginPath(),t.strokeStyle="#999999",t.lineWidth=1,I=n+e,W(M)&&(I+=l*N),c=I+g/2,s=(a=i+r)+g/2,f=R(I)-.5,d=R(I+g)-.5,h=R(a)-.5,v=R(a+g)-.5,t.moveTo(f,h),t.lineTo(d,h),t.lineTo(d,v),t.lineTo(f,v),t.lineTo(f,h),t.moveTo(R(c-b)-.5,R(s)-.5),t.lineTo(R(c+b)-.5,R(s)-.5),m.collapsed&&(t.moveTo(R(c)-.5,R(s-b)-.5),t.lineTo(R(c)-.5,R(s+b)-.5)),t.stroke(),t.restore()))},l.prototype.fMi=function(t,e,n,i,o,u,r){var a,c,s,i,l,f,i,l,d,h,a,g,b,s,u,r,h,f,l,a=i.zoom(),c=16*a,s=i.NMi,i=i.getDataSource();if(s&&i&&((l=s.groupOutlinePosition())===U.GroupOutlinePosition.groupCell||l===U.GroupOutlinePosition.groupCellAll)&&(l=21*a,!(d=(i=W(f=s.gze())&&s.Mf.TFe?s.Mf.TFe(o,r,u):i.Dve(u).OFt)===s.lMi.length-1&&!s.detailColumnsVisible()))&&s.DMi(i,o)&&(h=P*a,a=5*a,g=s.IMi(o,i),b=this.Mze(s,g,o,u,r))&&(s=t.x+h,W(f)&&(s+=l*i),u=t.y+a,r=R(s)-.5,h=R(s+c)-.5,f=R(u)-.5,l=R(u+c)-.5,r<=e)&&e<=h&&f<=n&&n<=l)return{level:g.level,index:o,collapsed:g.collapsed}},l.prototype.Ln=function(t,e,n,i,o){var u=o.sheet.NMi,r=o.col,t=$.prototype.Ln.call(this,t,e,n,i,o);return u&&u.hMi(r)&&(t+=21*i),t},a=l,Z.CellTypes.ti[99]=a,tt=Z.CellTypes.Text,n(Nt,tt),Nt.prototype.paintValue=function(t,e,n,i,o,u,r,a){var c,s,l,f,c,d,f,h,g,c=a.sheet,s=c.zoom(),l,f=a.isAfterRowSpacing,c=c.NMi,d=-1;!f&&c.lMi&&(d=c.lMi.length-1),tt.prototype.paintValue.call(this,t,e,h=n+(f=21*s*(d+2)),i,g=o-f,u,r,a)},z=Nt,Z.CellTypes.ti[108]=z,p=Z.CellTypes.Text,n(Dt,p),Dt.prototype.paint=function(t,e,n,i,o,u,r,a){var c,s,l,f,d,h,g,b,v,M,M,s,d,l,h,I,m,N,D,f,j,C,w,w,D,f,c=this,s=a.row,l=a.col,f=a.sheet,d=a.rowSpacingIndex,h=a.isAfterRowSpacing,g=f.zoom(),b,v=f.NMi.currentTheme(),M=r.backColor;a.parentBackColor!==M&&(0,Z.cellTypeContext_paintBackground)(t,n,i,o,u,a.imageLoader,r,e,a),r.backColor=void 0,r.backgroundImage=void 0,M=new Z.Rect(n,i,o,u),d=(s=f.TFe&&f.TFe(s,d,l,h))&&s.caption,l=ot(r),h=f.getDefaultStyle(),(m=(I=s&&s.headerStyle)?V(I,v,h):l.clone()).hAlign=F(m,Z.HorizontalAlign.right),(N=H(this.fze))?(D=2*g,f=f.getDefaultStyle().cellPadding+" 0 0 0",(C=(j=s&&s.style)?V(j,v,h):l.clone()).cellPadding=f,C.hAlign=F(C,Z.HorizontalAlign.right),a.fontInfo=Z.W.Lge(C,j?g:1),C.font=a.fontInfo.font,a.cellStyle=C,p.prototype.paint.call(this,t,e,n,i,o,u,C,a),w=a.Ui,d&&(d="".concat(d).concat((0,G.getSR)().TextColon),w=o-w-D,m.cellPadding=f,m.hAlign=F(m,Z.HorizontalAlign.right),a.fontInfo=Z.W.Lge(m,I?g:1),m.font=a.fontInfo.font,a.cellStyle=m,p.prototype.paint.call(this,t,d,n,i,w,u,m,a))):(D=c.An(M,r,(0,Z.isPrintZoomFactorExist)(a)?a.printZoomFactor:a.sheet.zoom()),f=new Z.Rect(n,i,o,u-D.height),d&&(I&&!T(I.cellPadding)||(m.cellPadding=B),a.cellStyle=m,a.fontInfo=Z.W.Lge(m,I?g:1),m.font=a.fontInfo.font,a.lineHeight=Z.mt.vt(a.fontInfo.font,!1,Z.mt.pt(d)),p.prototype.paint.call(this,t,d,n,f.y,o,f.height,m,a)),(C=(j=s&&s.style)?V(j,v,h):l.clone()).cellPadding=B,C.hAlign=F(C,Z.HorizontalAlign.right),a.cellStyle=C,a.fontInfo=Z.W.Lge(C,j?g:1),C.font=a.fontInfo.font,a.lineHeight=Z.mt.vt(a.fontInfo.font,!1,Z.mt.pt(e)),p.prototype.paint.call(this,t,e,n,D.y,o,D.height,C,a))},Dt.prototype.Ln=function(t,e,n,i,o){var u,r,a,c,s,l,f,d,r,s,a,l,h,n,g,b,v,M,n,u=0,r=o.row,a=o.col,c=o.sheet,s=o.rowSpacingIndex,l=o.isAfterRowSpacing,f,d=c.NMi.currentTheme(),r=c.TFe&&c.TFe(r,s,a,l),s=r&&r.caption;return s=s&&"".concat(s).concat((0,G.getSR)().TextColon),a=ot(n),l=c.getDefaultStyle(),H(this.fze)?(h=2,n=c.getDefaultStyle().cellPadding+" 0 0 0",T(t)||((b=(g=r&&r.style)?V(g,d,l):a.clone()).cellPadding=n,b.hAlign=F(b,Z.HorizontalAlign.right),o.fontInfo=Z.W.Lge(b,g?i:1),b.font=o.fontInfo.font,o.cellStyle=b,u+=p.prototype.Ln.call(this,t,(0,Z.AHe)(this,t,b,c),b,i,o)+2),T(s)||((M=(v=r&&r.headerStyle)?V(v,d,l):a.clone()).cellPadding=n,M.hAlign=F(M,Z.HorizontalAlign.right),o.fontInfo=Z.W.Lge(M,v?i:1),M.font=o.fontInfo.font,o.cellStyle=M,u+=p.prototype.Ln.call(this,s,s,M,i,o)+2)):(T(t)||((b=(g=r&&r.style)?V(g,d,l):a.clone()).cellPadding=B,b.hAlign=F(b,Z.HorizontalAlign.right),o.cellStyle=b,o.fontInfo=Z.W.Lge(b,g?i:1),b.font=o.fontInfo.font,u=p.prototype.Ln.call(this,t,(0,Z.AHe)(this,t,b,c),b,i,o)),T(s)||(M=(v=r&&r.headerStyle)?V(v,d,l):a.clone(),v&&!T(v.cellPadding)||(M.cellPadding=B),o.cellStyle=M,o.fontInfo=Z.W.Lge(M,v?i:1),M.font=o.fontInfo.font,u<(n=p.prototype.Ln.call(this,s,s,M,i,o))&&(u=n))),u},L=Dt,Z.CellTypes.ti[109]=L,n(f,Q=e),f.prototype.paint=function(t,e,n,i,o,u,r,a){var c,s,l,f,d,h,g,b,v,M,I,I,m,N,D,j,C,w,p,x,m,b,y,b,g,b,C,A,T,S,b,z,A,D,b,A,S,z,g,C,T,j,N,w,b,L,s,d,f,h,O,k,h,f,l,O,E,h,f,l,h,s,d,f,r,p,c=this,s=a.row,l=a.sheet,f=a.col,d=a.rowSpacingIndex,h=a.isAfterRowSpacing,g=l.NMi,b=l.getDataSource(),v=l.zoom(),M=g.currentTheme(),I=r.backColor;a.parentBackColor!==I&&(0,Z.cellTypeContext_paintBackground)(t,n,i,o,u,a.imageLoader,r,e,a),r.backColor=void 0,r.backgroundImage=void 0,I=new Z.Rect(n,i,o,u),(m=l.TFe&&l.TFe(s,d,-1))&&(N=21*v,D=16*v,j=4*v,C=g.gze(),w=m.level,p=m.field,x=m.value,m=m.groupLevelOptions,x=Z.mt.V0(x),g&&b&&g.lMi&&0<g.lMi.length&&((b=g.groupOutlinePosition())!==U.GroupOutlinePosition.groupCell&&b!==U.GroupOutlinePosition.groupCellAll||!(y=w===g.lMi.length-1&&!g.detailColumnsVisible())&&g.DMi(w,a.row)&&(b=P*v,g=g.IMi(s,w),t.save(),t.beginPath(),t.rect(n,i,o,u),t.clip(),t.beginPath(),t.strokeStyle="#999999",t.lineWidth=1,b=n+b,W(C)&&(b+=N*w),C=b+D/2,T=(A=i+(u-D)/2)+D/2,S=R(b)-.5,b=R(b+D)-.5,z=R(A)-.5,A=R(A+D)-.5,t.moveTo(S,z),t.lineTo(b,z),t.lineTo(b,A),t.lineTo(S,A),t.lineTo(S,z),t.moveTo(R(C-j)-.5,R(T)-.5),t.lineTo(R(C+j)-.5,R(T)-.5),g.collapsed&&(t.moveTo(R(C)-.5,R(T-j)-.5),t.lineTo(R(C)-.5,R(T+j)-.5)),t.stroke(),t.restore())),D=0,A=n+(b=N*(w+1)),S=o-b,z=4*v,g=ot(r),C=l.getDefaultStyle(),T=l.defaults.rowHeight,N=(j=l.TFe&&l.TFe(s,d,f,h))&&j.caption,(b=(w=j&&j.headerStyle)?V(w,M,C):g.clone()).hAlign=Z.HorizontalAlign.right,(L=H(this.fze))?(s=2*v,d=l.getDefaultStyle().cellPadding+" 0 0 0",(f=m.headerStyle?V(m.headerStyle,M,C):g.clone()).cellPadding=d,f.hAlign=F(f,Z.HorizontalAlign.left),a.fontInfo=Z.W.Lge(f,m.headerStyle?v:1),f.font=a.fontInfo.font,a.cellStyle=f,h="".concat(p).concat((0,G.getSR)().TextColon),O=_(Z.mt.Mt(t,f.font,(0,Z.xHe)(this,t,h,S,u,f,a))+s),Q.prototype.paint.call(this,t,h,A,i,O,u,f,a),A+=O,(k=m.style?V(m.style,M,C):g.clone()).cellPadding=d,k.hAlign=F(k,Z.HorizontalAlign.left),a.fontInfo=Z.W.Lge(k,m.style?v:1),k.font=a.fontInfo.font,a.cellStyle=k,h=(0,Z.AHe)(this,x,k,l),f=_(Z.mt.Mt(t,k.font,(0,Z.xHe)(this,t,h,S,u,k,a))+s),k.formatter=B,Q.prototype.paint.call(this,t,h,A,i,f,u,k,a),A=A+f+z,l=S-O-f-z,(E=(O=j&&j.style)?V(O,M,C):g.clone()).cellPadding=d,E.hAlign=F(E,Z.HorizontalAlign.right),a.fontInfo=Z.W.Lge(E,O?v:1),E.font=a.fontInfo.font,a.cellStyle=E,Q.prototype.paint.call(this,t,e,A,i,l,u,E,a),h=a.Ui,N&&(N="".concat(N).concat((0,G.getSR)().TextColon),f=l-h-s,b.cellPadding=d,b.hAlign=F(b,Z.HorizontalAlign.right),a.fontInfo=Z.W.Lge(b,w?v:1),b.font=a.fontInfo.font,a.cellStyle=b,Q.prototype.paint.call(this,t,N,A,i,f,u,b,a))):(l=c.An(I,r,(0,Z.isPrintZoomFactorExist)(a)?a.printZoomFactor:a.sheet.zoom()),h=new Z.Rect(n,i,o,u-l.height),(k=m.style?V(m.style,M,C):g.clone()).hAlign=F(k,Z.HorizontalAlign.left),s=m.headerStyle?V(m.headerStyle,M,C):g.clone(),(!m.headerStyle||m.headerStyle&&Y(m.headerStyle.cellPadding))&&(s.cellPadding=B),s.hAlign=F(s,Z.HorizontalAlign.left),a.cellStyle=s,a.fontInfo=Z.W.Lge(s,m.headerStyle?v:1),s.font=a.fontInfo.font,a.lineHeight=Z.mt.vt(a.fontInfo.font,!1,Z.mt.pt(p)),Q.prototype.paint.call(this,t,p,A,h.y,S,h.height,s,a),D=et(0,a.Ui),k.cellPadding=B,a.cellStyle=k,a.fontInfo=Z.W.Lge(k,m.style?v:1),k.font=a.fontInfo.font,a.lineHeight=Z.mt.vt(a.fontInfo.font,!1,Z.mt.pt(x)),Q.prototype.paint.call(this,t,x,A,l.y,S,l.height,k,a),d=A+(D=et(D,a.Ui))+z,f=S-D-z,E=(O=j&&j.style)?V(O,M,C):g.clone(),O&&!Y(O.cellPadding)||(E.cellPadding=T+" 0 0 0"),r=c.An(I,E,(0,Z.isPrintZoomFactorExist)(a)?a.printZoomFactor:a.sheet.zoom()),N&&(p=new Z.Rect(n,i,o,u-r.height),w&&!Y(w.cellPadding)||(b.cellPadding=B),a.cellStyle=b,a.fontInfo=Z.W.Lge(b,j&&j.headerStyle?v:1),b.font=a.fontInfo.font,a.lineHeight=Z.mt.vt(a.fontInfo.font,!1,Z.mt.pt(N)),Q.prototype.paint.call(this,t,N,d,p.y,f,p.height,b,a)),E.cellPadding=B,E.hAlign=Z.HorizontalAlign.right,a.cellStyle=E,a.fontInfo=Z.W.Lge(E,O?v:1),E.font=a.fontInfo.font,a.lineHeight=Z.mt.vt(a.fontInfo.font,!1,Z.mt.pt(e)),Q.prototype.paint.call(this,t,e,d,r.y,f,r.height,E,a)))},f.prototype.Ln=function(t,e,n,i,o){var u,r,a,c,s,l,f,d,h,g,b,n,v,M,I,m,g,N,M,r,D,j,s,c,C,l,w,p,x,y,b,c,l,u=0,r=o.row,a=o.sheet,c=o.col,s=o.rowSpacingIndex,l=o.isAfterRowSpacing,f,d=a.NMi.currentTheme(),h=21,g=a.TFe&&a.TFe(r,s,-1),b=H(this.fze);return g&&(n=ot(n),v=a.getDefaultStyle(),M=g.level,I=g.field,m=g.value,g=g.groupLevelOptions,u=N=21*(M+1),r=(M=a.TFe&&a.TFe(r,s,c,l))&&M.caption,D=4,b?(r=r&&"".concat(r).concat((0,G.getSR)().TextColon),I=I&&"".concat(I).concat((0,G.getSR)().TextColon),j=2,s=a.getDefaultStyle().cellPadding+" 0 0 0",T(I)||((c=g.headerStyle?V(g.headerStyle,d,v):n.clone()).cellPadding=s,c.hAlign=F(c,Z.HorizontalAlign.left),o.fontInfo=Z.W.Lge(c,g.headerStyle?i:1),c.font=o.fontInfo.font,o.cellStyle=c,u+=Q.prototype.Ln.call(this,I,I,c,i,o)+2),T(m)||((C=g.style?V(g.style,d,v):n.clone()).cellPadding=s,C.hAlign=F(C,Z.HorizontalAlign.left),o.fontInfo=Z.W.Lge(C,g.style?i:1),C.font=o.fontInfo.font,o.cellStyle=C,l=(0,Z.AHe)(this,m,C,a),u+=Q.prototype.Ln.call(this,l,l,C,i,o)+2),M&&(u+=4,T(t)||((p=(w=M.style)?V(w,d,v):n.clone()).cellPadding=s,p.hAlign=F(p,Z.HorizontalAlign.right),o.fontInfo=Z.W.Lge(p,w?i:1),p.font=o.fontInfo.font,o.cellStyle=p,u+=Q.prototype.Ln.call(this,t,(0,Z.AHe)(this,t,p,a),p,i,o)+2),T(r)||((y=(x=M.headerStyle)?V(x,d,v):n.clone()).cellPadding=s,y.hAlign=F(y,Z.HorizontalAlign.right),o.fontInfo=Z.W.Lge(y,x?i:1),y.font=o.fontInfo.font,o.cellStyle=y,u+=Q.prototype.Ln.call(this,r,r,y,i,o)+2))):(b=0,T(I)||(c=g.headerStyle?V(g.headerStyle,d,v):n.clone(),(!g.headerStyle||g.headerStyle&&Y(g.headerStyle.cellPadding))&&(c.cellPadding=B),c.hAlign=F(c,Z.HorizontalAlign.left),o.cellStyle=c,o.fontInfo=Z.W.Lge(c,g.headerStyle?i:1),c.font=o.fontInfo.font,b=A(Q.prototype.Ln.call(this,I,I,c,i,o),b)),T(m)||((C=g.style?V(g.style,d,v):n.clone()).hAlign=F(C,Z.HorizontalAlign.left),C.cellPadding=B,o.cellStyle=C,o.fontInfo=Z.W.Lge(C,g.style?i:1),C.font=o.fontInfo.font,b=A(Q.prototype.Ln.call(this,m,(0,Z.AHe)(this,m,C,a),C,i,o),b)),u+=b,l=0,T(r)||(y=(x=M&&M.headerStyle)?V(x,d,v):n.clone(),x&&!Y(x.cellPadding)||(y.cellPadding=B),o.cellStyle=y,o.fontInfo=Z.W.Lge(y,M&&M.headerStyle?i:1),y.font=o.fontInfo.font,l=A(Q.prototype.Ln.call(this,r,r,y,i,o),l)),T(t)||((p=(w=M.style)?V(w,d,v):n.clone()).cellPadding=B,p.hAlign=Z.HorizontalAlign.right,o.cellStyle=p,o.fontInfo=Z.W.Lge(p,w?i:1),p.font=o.fontInfo.font,l=A(Q.prototype.Ln.call(this,t,(0,Z.AHe)(this,t,p,a),p,i,o),l)),u+=l,0<l&&(u+=4))),u},f.prototype.getCellAndPaddingHitInfo=function(t,e,n,i,o){var u,t,u=n.cellPadding;return n.cellPadding=void 0,t=Q.prototype.getCellAndPaddingHitInfo.call(this,t,e,n,i,o),n.cellPadding=u,t},f.prototype.fMi=function(t,e,n,i,o,u,r){var a,c,s,l,l,l,r,i,f,l,a,s,l,i,r,t,s,a=i.zoom(),c=16*a,s=i.NMi,l=i.getDataSource();if(s&&l&&((l=s.groupOutlinePosition())===U.GroupOutlinePosition.groupCell||l===U.GroupOutlinePosition.groupCellAll)&&(l=i.TFe&&i.TFe(o,r,-1))&&(i=21*a,!(f=(r=l.level)===s.lMi.length-1&&!s.detailColumnsVisible()))&&s.DMi(r,o)&&(l=P*a,a=s.IMi(o,r),s=t.x+l+i*r,l=t.y+(t.height-c)/2,i=R(s)-.5,r=R(s+c)-.5,t=R(l)-.5,s=R(l+c)-.5,i<=e)&&e<=r&&t<=n&&n<=s)return{level:a.level,index:o,collapsed:a.collapsed}},Z.CellTypes.ti[110]=X=f,h.prototype.Hc=function(t,e,n){var i,i,i=new Z.Style;i.backColor="white",i.cellType=new j,t.setStyle(-1,0,i,Z.SheetArea.rowHeader),t.setColumnWidth(0,40*e,Z.SheetArea.rowHeader),(i=this.tMi)!==U.GroupOutlinePosition.rowHeader&&i!==U.GroupOutlinePosition.groupCellAll||t.setColumnVisible(0,!0,Z.SheetArea.rowHeader),this.Ize(t,n)},h.prototype.Ize=function(t,e){var n;W(this.GY)?(this.mze(t),this.Nze(t),this.Dze(t,e)):this.jze(t,e)},h.prototype.jze=function(t,e){for(var n,i,o,i,u,n=0;n<e.length;n++)e[n].DFt&&(i=new r,t.setCellType(-1,n,i,Z.SheetArea.colHeader),(o=(o=e[n].headerStyle)||(e[n].headerStyle={})).cellType=i,i=new a,t.setCellType(-1,n,i),(u=(u=e[n].style)||(e[n].style={})).cellType=i)},h.prototype.Dze=function(t,e){var n,i,o,u,r,a,c,s,l,f,d,h,g,b,v,M,I,m,v,N,D,j,j,C,n,w,p,n,n,x,y,A,i=t.NMi,o=t.getRowCount(),u=e.length,r=t.k9(Z.SheetArea.viewport),a=t.NMi.currentTheme();if(!T(r)){if(c=t.defaults.rowHeight,s=t.FCn)for(l=0;l<o;l++){for(f=t.C9e(l),d=0;d<f;d++){for(g=null==(h=t.TFe(l,d,-1))?void 0:h.field,b=0;b<u;b++)(I=new(M=(v=b===r)?X:L)).fze=this.GY,(v=(v=it(m=v&&h&&h.groupLevelOptions?h.groupLevelOptions:t.TFe(l,d,b)))||new Z.Style).cellType=I,t.xFe(l,d,b,v);h&&(D=Y((N=V(h.groupLevelOptions&&h.groupLevelOptions.style||{},a)).cellPadding),E(this.GY)&&D&&(N.cellPadding=c+" 0 0 0"),t.xFe(l,d,-1,N)),(j=new Z.Style).backColor="white",j.cellType=new S,t.xFe(l,d,0,j,!1,Z.SheetArea.rowHeader),E(this.GY)&&(j=i.getGroupingHeaderHeight(g,c),t.SFe(l,d,j))}for(C=t.C9e(l,!0),d=0;d<C;d++)if(g=null==(n=null==(h=t.TFe(l,d,-1,!0))?void 0:h.groupLevelOptions)?void 0:n.field,h&&h.isSpacing)(n=new Z.Style).backColor="white",n.cellType=new S,t.xFe(l,d,0,n,!0,Z.SheetArea.rowHeader),t.SFe(l,d,h.spacingRow,!0);else{for(b=0;b<u;b++)(w=new L).fze=this.GY,w.dze=!0,(p=(p=it(m=t.TFe(l,d,b,!0)))||new Z.Style).cellType=w,t.xFe(l,d,b,p,!0);h&&(D=Y((N=V(h.groupLevelOptions&&h.groupLevelOptions.style||{},a)).cellPadding),E(this.GY)&&D&&(N.cellPadding=c+" 0 0 0"),t.xFe(l,d,-1,N,!0)),(n=new Z.Style).backColor="white",n.cellType=new S,t.xFe(l,d,0,n,!0,Z.SheetArea.rowHeader),E(this.GY)&&(n=i.getGroupingFooterHeight(g,c),t.SFe(l,d,n,!0))}}for(l=0,x=u;l<x;l++)t.getCellType(-1,l)instanceof z&&t.setCellType(-1,l,B);y=new z,t.setCellType(-1,r,y),(A=(A=e[r].style)||(e[r].style={})).cellType=y}},h.prototype.mze=function(t,e,n,i,o,u){var r,a,c,s,l,f,d,h,g,b,v,v,g,M,M,v,b,M;if(t.FCn&&(a=(r=t.NMi).getDataView(),c=this.Cze(),s=r.groupBy(),l=W(c),T(e)&&(e=a.FFt.childrenArray[0]),T(n)&&(n=r.INi.wze()),e.length===n.length)&&(T(i)&&(i=0),T(o)&&(o=0),T(u)&&(u=0),e)&&0<e.length)for(f=0;f<e.length;f++)d=e[f],h=n[f],g=d.recordRowNumbers,b=d.value,v=(v=d.cellNode).field.extra&&!T(v.field.extra.caption)?v.field.extra.caption:v.field.fieldValue,Array.isArray(v)&&(v=(0,G.tIi)(v)),g=g.length,M=t.C9e(i),t.CFe(i,M,1),t.IFe(i,o,-1,{groupLevelOptions:s[h.level],level:h.level,field:v,value:Z.mt.Z0(b)}),h.spacingIndex=o,l&&(M=d.summaryResults)&&(v=ft(M,"header",r.pze()))&&this.yze(t,i,o,v),b=d.childrenArray[0],M=h.children,b&&0<b.length&&this.mze(t,b,M,i,o+1,u),i+=g,o=0},h.prototype.Nze=function(t,e,n,i,o){var u,r,a,c,s,l,f,d,f,h,g,g,d,h;if(t.FCn&&(r=(u=t.NMi).getDataView(),T(e)&&(e=r.FFt.childrenArray[0]),T(n)&&(n=u.INi.wze()),e.length===n.length)&&(T(i)&&(i=0),T(o)&&(o=0),e)&&0<e.length)for(a=u.groupBy(),c=0;c<e.length;c++)s=e[c],l=n[c],f=s.recordRowNumbers,d=s.summaryResults,h=i+(f=f.length)-1,0<(g=vt(s))&&c<e.length-1&&(t.CFe(h,0,1,!0),t.IFe(h,0,-1,{level:l.level,spacingRow:g,isSpacing:!0},!0)),d&&(g=ft(d,"footer"))&&(t.CFe(h,0,1,!0),t.IFe(h,0,-1,{groupLevelOptions:a[l.level],level:l.level},!0),this.Aze(t,h,0,g)),d=s.childrenArray[0],h=l.children,d&&0<d.length&&this.Nze(t,d,h,i,o),i+=f},h.prototype.yze=function(t,e,n,i){var o,u,r,a,c,s;if(t.FCn)for(u=(o=t.NMi.getDataView()).getColumnInfos(),r=0;r<u.length;r++)(s=i[c=(a=u[r]).value])&&(t.AFe(e,n,r,s.value),t.IFe(e,n,r,s))},h.prototype.Aze=function(t,e,n,i){var o,u,r,a,c,s;if(t.FCn)for(u=(o=t.NMi.getDataView()).getColumnInfos(),r=0;r<u.length;r++)(s=i[c=(a=u[r]).value])&&(t.AFe(e,n,r,s.value,!0),t.IFe(e,n,r,s,!0))},h.prototype.TMi=function(t,e){var n,n;if(0===arguments.length)return this.tMi;this.tMi=e,(n=t.NMi)&&n.lMi&&(n=e===U.GroupOutlinePosition.rowHeader||e===U.GroupOutlinePosition.groupCellAll,t.setColumnVisible(0,n,Z.SheetArea.rowHeader))},h.prototype.Cze=function(t){if(T(t))return this.GY;this.GY=t},h.prototype.Tze=function(t){if(T(t))return this.hze;this.hze=u(u({},this.hze),t)},h.prototype.L0=function(t){t.setColumnVisible(0,!1,Z.SheetArea.rowHeader);for(var e=0,n=t.getColumnCount();e<n;e++)t.getCellType(-1,e,Z.SheetArea.colHeader)instanceof r&&t.setCellType(-1,e,B,Z.SheetArea.colHeader),t.getCellType(-1,e)instanceof a&&t.setCellType(-1,e,B),t.getCellType(-1,e)instanceof z&&t.setCellType(-1,e,B)},h.prototype.toJSON=function(){return this.tMi},h.prototype.fromJSON=function(t,e){this.TMi(t,e)},x=h,g.prototype.wze=function(){return this._data.oMi.children},g.prototype.Hc=function(t,e,n,i,o){o||this._data.Hc(t,e);var o=n.getDataSource();this._ui.Hc(n,i.length,o&&o.getColumnInfos())},g.prototype.TMi=function(t,e){if(0===arguments.length)return this._ui.TMi();this._ui.TMi(t,e)},g.prototype.uMi=function(t,e,n,i){this._data.uMi(t,e,n,i)},g.prototype.aMi=function(t,e,n,i){this._data.aMi(t,e,n,i)},g.prototype.sMi=function(t,e,n,i,o){return this._data.sMi(t,e,n,i,o)},g.prototype.MMi=function(t){return this._data.MMi(t)},g.prototype.IMi=function(t,e){return this._data.IMi(t,e)},g.prototype.gMi=function(t){return this._data.gMi(t)},g.prototype.Cze=function(t){return this._ui.Cze(t)},g.prototype.Tze=function(t){return this._ui.Tze(t)},g.prototype.L0=function(t){this._data.L0(),this._ui.L0(t)},g.prototype.Ize=function(t,e){this._ui.Ize(t,e)},g.prototype.toJSON=function(){return{outlinePosition:this._ui.toJSON(),tree:this._data.toJSON()}},g.prototype.fromJSON=function(t,e,n){this._ui.fromJSON(t,e.outlinePosition),this._data.fromJSON(e.tree,n)},t.Grouping=g},"./dist/plugins/tableSheet/tableSheet-panel/tableSheetPanel.js":function(i,M,t){var L,O,k,R,o,P,Q,Y,E,W,H,a,V,u,n,g,Z,N,r,F,_,J,c,f,d,h,X,v,K,q,I,$,tt,et,nt,s,l,C,w,b,it,ot,m,D,j,ut,rt,p,at,x,ct,y,A,st,lt,ft,dt,T,S,ht,gt,bt,z,vt,Mt,It,mt,Nt,Dt,t;function jt(t,e){for(var n,i,n=0;n<t.length;n++)if(e(i=t[n]))return n;return-1}function U(t){return t.value||t}function G(t){return B(t)&&t.bMi}function Ct(t){return t.yBt}function B(t){return 1===t.textIndent}function wt(t){return 2<=t.textIndent}function pt(t){return N(t)||""===t}function xt(t){return t&&t.richText&&t.richText[0]&&t.richText[0].text||t&&t.text||t}function e(t,e,n,i){this.AMi=!0,this.Zc=t,this.vMi=e,this.jMi=0,this.Ti=n,this.options=k.util.b0(Nt,this.zMi.bind(this)),this.Zp(i||{}),this.CMi=[],this.wMi=-1,n&&(0,k.GC$)(n).data(u,this),this.Ti.innerHTML=this.yMi(),this.mMi=n.querySelector(".".concat(_)),this.LMi=n.querySelector(".".concat(F)),this.xMi=n.querySelector(".".concat(f)),this.SMi=n.querySelector(".".concat(c)),this.ZMi=n.querySelector(".".concat(x)),this.OMi=this.ZMi.querySelector(".".concat(y)),this.EMi=n.querySelector(".".concat(c,".").concat(J,".").concat(at)),this.GMi=n.querySelector(".".concat(s)),this.pMi=n.querySelector(".".concat(rt)),this.attach(e),this.kMi(),(this.vMi.UMi=this).AMi=!1}function yt(t){return JSON.parse(JSON.stringify(t))}L=this&&this.__assign||function(){return(L=Object.assign||function(t){for(var e,n,i,o,n=1,i=arguments.length;n<i;n++)for(o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},Object.defineProperty(M,"__esModule",{value:!0}),M.TableSheetPanel=M.ShowSourceOptions=M.ARROW_RIGHT=M.ARROW_DOWN=M.GANTT_COLUMN_VALUE=void 0,O=t("./dist/plugins/tableSheet/tableSheet.js"),k=t("Core"),R=t("./dist/plugins/tableSheet/tableSheet.interface.js"),o=t("Common"),P=t("FormulaTextBox"),Q=t("CalcEngine"),Y=t("CellTypes"),E=t("./dist/plugins/tableSheet/tablesheet-command.js"),W=t("./dist/plugins/tableSheet/tableSheet-grouping.js"),H=k.CellTypes.Base,a=o.Common.zf.j0,V=o.Common.lt.tv,n="."+(u="table-sheet-panel"),g=null,Z=void 0,N=o.Common.lt.ht,r=window,F="gc-table-sheet-panel",_="gc-table-sheet-field-panel",J="gc-table-sheet-cross-panel",c="gc-table-sheet-group-panel",f="gc-table-sheet-group-list",d="gc-table-sheet-group-input",X=(h="gc-table-sheet-group-item")+"-remove",v="group-index",K="group-name",q="group-field",I="summary-index",$="gc-table-sheet-summary-item",tt="summary-name",et="summary-formula",nt=h+"-label",s="gc-table-sheet-summary-container",l="gc-table-sheet-field-container",C="gc-table-sheet-summary-item-label",w="gc-table-sheet-summary-item-input-formula",b="gc-table-sheet-summary-item-input-slice",it="gc-table-sheet-summary-function",ot="gc-table-sheet-summary-item-input-caption",m="gc-table-sheet-summary-list-container",D="gc-table-sheet-group-item-reorder-top",j="gc-table-sheet-group-item-reorder-bottom",ut="gc-table-sheet-add-calculate-column",rt="fake-ftb-workbook",p="gc-table-sheet-summary-item-caption",at="gc-table-sheet-cross-column",x="gc-table-sheet-cross-column-detail",ct="gc-table-sheet-cross-column-detail-value",y="gc-table-sheet-cross-column-attributes-list",A="gc-table-sheet-cross-column-item",st="gc-table-sheet-cross-column-item-checkbox",lt="gc-table-sheet-cross-column-item-edit",ft="gc-table-sheet-cross-column-item-input-filter",dt="gc-table-sheet-cross-column-item-editing",T="gc-table-sheet-cross-detail-input",S="gc-table-sheet-hidden",ht="gc-table-sheet-summary-item-input-relateTo",gt="gc-table-sheet-summary-item-input-position",bt="gc-table-sheet-group-item-setting",z="attribute-index",M.GANTT_COLUMN_VALUE="_ganttColumn",M.ARROW_DOWN="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAHJJREFUOE+10i0OwkAQBtC394ED4PE4EA0HBIeurEX2QE2TDYKwOyTTrt3Myzc/RfKVZL1dgQPmKGErwRFP3PHuIb0WTnhgwNRCohmca5Ibxl9IBKw1l4pc8fpGdgdSLaSGuMkaU4cUHeDn/58tdLE0sABwBBIR30jsewAAAABJRU5ErkJggg==",M.ARROW_RIGHT="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAI1JREFUOE/t0rEJwlAQBuAv09hJagewsBQMFuIqDuEA9tpa2qbMAA7gAG4gB08IjySvSCe+9riPe/9dZearZvb7UWCB50g2O9z6tTyDE7bY4JUh0XxF00eGQgxknZB3QqL5gj3uUxN8a4GsEhITnXHAI//a1BoDWaLGEe1QLqU7CCRG7sYOrgQUD/UP8AFFTRERJMaNUQAAAABJRU5ErkJggg==",vt=function(t,e){return t?e:""},Mt=function(t){var e=t.formula,n=t.caption,n=void 0===n?"":n,i=t.sliceField,o=t.columnList,u=t.relateTo,r=t.position,t=t.showSlice;return'\n <div class="gc-table-sheet-summary-item-formula">\n <span class="'.concat(C,'">').concat((0,O.getSR)().GroupPanelSummaryLabelFormula,'</span>\n <input class="').concat(w,'" input-type="formula" spellcheck="false" tabIndex="-1" current-data=\'').concat(a(e),"' value='").concat(a(e),'\'></input>\n <span class="gc-table-sheet-summary-item-remove-icon" title="').concat((0,O.getSR)().GroupPanelItemRemove,'"></span>\n </div>\n <div class="').concat(p,'">\n <span class="').concat(C,'">').concat((0,O.getSR)().GroupPanelSummaryLabelCaption,'</span>\n <input class="').concat(ot,'" input-type="caption" spellcheck="false" tabIndex="-1" current-data=\'').concat(a(n),"' value='").concat(a(n),"'></input>\n </div>")+vt(t,'\n <div class="gc-table-sheet-summary-item-slice">\n <span class="'.concat(C,'">').concat((0,O.getSR)().GroupPanelSummaryLabelSlice,'</span>\n <input class="').concat(b,'" input-type="slice" spellcheck="false" tabIndex="-1" current-data=\'').concat(i,"' value='").concat(i,"'></input>\n </div>"))+vt(!t,'\n <div class="gc-table-sheet-summary-item-relateTo">\n <span class="'.concat(C,'">').concat((0,O.getSR)().GroupPanelSummaryLabelRelateTo,'</span>\n <select class="').concat(ht,' gc-table-sheet-summary-item-select" name="relateTo">').concat('<option value="" style="display: none"></option>'+o.map(function(t){return'<option value="'.concat(t.value,'" ').concat(t.value===u?"selected":"",">").concat(t.text,"</option>")}),'</select>\n </div>\n <div class="gc-table-sheet-summary-item-position">\n <span class="').concat(C,'">').concat((0,O.getSR)().GroupPanelSummaryLabelPosition,'</span>\n <select class="').concat(gt,' gc-table-sheet-summary-item-select" name="position">\n <option value="header" ').concat("header"===r?"selected":"",">").concat((0,O.getSR)().GroupPanelSummaryLabelPositionHeader,'</option>\n <option value="footer" ').concat("footer"===r?"selected":"",">").concat((0,O.getSR)().GroupPanelSummaryLabelPositionFooter,"</option>\n </select>\n </div>"))},It=function(t){var e,n,i,o,u,e,n,i,o,u;return{formulaInputValue:t.find(".".concat(w)).val(),captionInputValue:t.find(".".concat(ot)).val(),sliceInputValue:t.find(".".concat(b)).val(),relateToValue:t.find(".".concat(ht)).val(),positionValue:t.find(".".concat(gt)).val()}},(t=mt=M.ShowSourceOptions||(M.ShowSourceOptions={}))[t.none=0]="none",t[t.field=1]="field",t[t.formula=2]="formula",t[t.all=3]="all",Nt={showSource:mt.none,fieldAreaVisible:!0,crossAreaVisible:!1,groupAreaVisible:!0,showEditButton:!1,showViewName:!0,showGroupSetting:void 0},e.prototype.ZS=function(){var n=this;setTimeout(function(){var t,e,e;null!=(e=null==(e=null==(t=n.vMi)?void 0:t.getParent)?void 0:e.call(t))&&e.focus(!0)},0)},e.prototype.Hc=function(t,e){var e,n,t,i,e=new k.Workbook(e,{allowUndo:!1});e.xU=!0,e.suspendPaint(),e.suspendEvent(),this.fb(e),n=e.getSheet(0),this.BMi=n,this.QMi(n),this.RMi(),this.PMi(),this.YMi=this.WMi(),t=this.HMi(t.getDataView()),this.CMi=t,this.VMi(e,n.getViewportBottomRow(1)<t.length-1),this.FMi(n,t),e.resumeEvent(),e.resumePaint(),(i=this).mMi&&(i.JMi=r.setTimeout(function(){var t,e,t=(0,k.GC$)(i.mMi),e=t.data("workbook");e&&Math.abs(t.height()-(0,k.GC$)(e._vp).height())>e.Xm()&&e.refresh(),i.JMi&&(r.clearTimeout(i.JMi),i.JMi=0)},100))},e.prototype.fb=function(t){t.options.allowContextMenu=!1,t.options.allowUserZoom=!1,t.options.allowUserDragDrop=!1,t.options.allowDragHeaderToMove=k.AllowDragHeaderToMove.none,t.options.allowUserDragFill=!1,t.options.showHorizontalScrollbar=!1,t.options.scrollbarMaxAlign=!0,t.options.tabStripVisible=!1,t.options.tabNavigationVisible=!1,t.options.grayAreaBackColor="white",t.options.scrollByPixel=!0,this.XMi(t)},e.prototype.QMi=function(t){var e=this.options;t.selectionPolicy(k.SelectionPolicy.single),t.selectionUnit(k.SelectionUnit.row),t.options.showFormulas=!0,t.options.rowHeaderVisible=!1,(t.options.colHeaderVisible=!1)===e.showViewName?t.setRowVisible(0,e.showViewName):t.frozenRowCount(1),t.options.gridline.showHorizontalGridline=!1,t.options.gridline.showVerticalGridline=!1,t.setColumnCount(2),t.setRowCount(30),t.setColumnWidth(0,20),t.setColumnWidth(1,"*"),t.outlineColumn.options({columnIndex:1,showIndicator:!0,collapseIndicator:M.ARROW_RIGHT,expandIndicator:M.ARROW_DOWN}),t.outlineColumn.refresh(),t.showRowOutline(!1),t.rowOutlines.KMi=!0,t.t4(0,1)},e.prototype.zMi=function(t,e,n){var i,o,i=this;if(!i.AMi)switch(t){case"showSource":i._Mi();break;case"fieldAreaVisible":case"crossAreaVisible":case"groupAreaVisible":o=i.vMi,i.detach(),i.vMi=o,i.Ti.innerHTML=i.yMi(),i.mMi=i.Ti.querySelector(".".concat(_)),i.LMi=i.Ti.querySelector(".".concat(F)),i.ZMi=i.Ti.querySelector(".".concat(x)),this.OMi=this.ZMi.querySelector(".".concat(y)),i.xMi=i.Ti.querySelector(".".concat(f)),i.SMi=i.Ti.querySelector(".".concat(c)),i.EMi=i.Ti.querySelector(".".concat(c,".").concat(J,".").concat(at)),this.GMi=i.Ti.querySelector(".".concat(s)),this.pMi=i.Ti.querySelector(".".concat(rt)),i.attach(o),i.kMi(),o.UMi=i}},e.prototype.Zp=function(t){var n=this.options||{};t=k.GC$.extend(!0,{},Nt,t),k.GC$.each(t,function(t,e){n.hasOwnProperty(t)&&(n[t]=e)})},e.prototype.RMi=function(){var S,l,z,o,a,u,e,r,c,s,f,S=this,l=S.Tp(),z=S.vMi,o=S.LMi.getBoundingClientRect();l.bind(k.Events.EditStarting+n,function(t,e){var n,i,n=e.row,i=S.CMi;i[n]&&i[n].isCalculateColumn||(e.cancel=!0)}),l.bind(k.Events.EditStarted+n,function(t,e){var n,i;e.row!==l.getRowCount()-1||l.il.text()||l.il.text("="),l.il&&(l.il.qMi=!0),S.$Mi=!0}),l.bind(k.Events.EditEnded+n,function(t,e){var n,i,o,e,u,r,a,c,r,s,c,n=e.row,i=S.CMi,o=z.getDataView(),e=e.editingText,u=!1;if(S.$Mi=!1,r=l.getText(n,1),a=e&&e.replace(/\s/g,""),c=r&&r.replace(/\s/g,""),!a){if(r)return;u=!0}if(String(c).toUpperCase()===String(a).toUpperCase()||u){if(i[n]&&i[n].isCalculateColumn){if(r=S.HMi(o,n-1),e){if(0===e.indexOf("=")&&e!==(r&&r.value)){try{(s=l.Lp).parse(new Q.CalcSource(s),e,0,0)}catch(t){return void S._Mi()}r?((c=L({},r)).value===c.caption&&(c.caption=e),c.value=e,z.zA({cmd:E.VIEW_UPDATE_COLUMN_INFO,columnInfos:[c]})):z.zA({cmd:E.VIEW_Add_COLUMN_INFO,columnInfo:{value:e,caption:e,readonly:!0}})}}else r&&z.zA({cmd:E.VIEW_REMOVE_COLUMN_INFO,value:r.value});S._Mi(),l.il&&(l.il.qMi=!1),S.ZS()}}else S._Mi()}),l.bind(k.Events.ValueChanged+n,function(t,e){var n,i,o,u,r,a,c,s,l,f,d,h,g,o,b,v,M,I,m,N,D,j,C,w,p,x,y,A,T,n=e.newValue,i=e.row,o=e.col,u=e.sheet,r=z.getDataView();if(0===o&&r){if(a=[],l=r.getColumnInfos(!(s=c=void 0),!0),(f=S.CMi[e.row])&&f.isCalculateColumn)c=f.value;else if(f.bMi){for(d=0;d<l.length;d++)if((h=l[d])&&h.cross&&h.cross===f.bMi){s=d;break}}else c=xt(g=u.getValue(i,1,k.SheetArea.viewport,k.ValueType.richText));if(o=r.getColumnInfos(!0),0===e.row&&c===r.name){for(b=0,v=o;b<v.length;b++)h=v[b],a.push(L(L({},h),{visible:n}));for(M=0,I=l;M<I.length;M++)m=I[M],a.push(L(L({},m),{visible:n}))}else if(s!==Z){for(N=0,D=o;N<D.length;N++)(h=D[N]).isCross&&h.RBt===s&&a.push(L(L({},h),{visible:n}));a.push(L(L({},l[s]),{visible:n}))}else if(1===(j=u.getCell(i,1).textIndent())){for(C=0,w=o;C<w.length;C++)if(h=w[C],((0,O.tIi)(h.caption)===c||h.value===c)&&!h.isGroup){a.push(L(L({},h),{visible:n}));break}}else for(x=(p=function(t){return"string"==typeof t?t.substring(0,t.indexOf(".")):""})(o[i-1].value),y=0,A=o;y<A.length;y++)if("string"==typeof(T=(h=A[y]).value)&&-1!==T.indexOf(x)&&-1!==T.indexOf("."+c)&&!h.isGroup){a.push(L(L({},h),{visible:n}));break}z.zA({cmd:E.VIEW_UPDATE_COLUMN_INFO,columnInfos:a}),S.CMi=S.HMi(r),S.ZS()}}),a=function(t){var t=S.CMi[t].nIi;return!N(t)&&0<t.indexOf(".")},u=function(t){var t=S.CMi[t].nIi;return!N(t)&&0<t.indexOf(".")&&S.eIi().isLookupField(t)},e=function(t){return!N(t)&&!N(S.oIi)&&0<t.indexOf(".")},r=function(t){var t=S.CMi[t].nIi;return e(t)&&!S.mLt(t)},c=function(t){var t=S.CMi[t].nIi;return e(t)&&S.mLt(t)},s=function(t){var t,e,n,e,t=S.CMi[t],e=t.yBt,n=t.nIi;S.uIi=n,e?(S.oIi=n,S.cIi=[],S.rIi&&-1<S.rIi.indexOf(".")&&(S.rIi=void 0,S.aIi=-1,S.wMi=-1),S.AMi=!0,S.sIi(!0),S.MIi(!1),S.IIi(),S.AMi=!1):G(t)&&(e=S.gIi(t.bMi),S.NIi=S.CMi.filter(G).indexOf(t),S.cIi=S.lIi(),S.options.groupAreaVisible?(S.oIi=e.over,S.rIi&&-1<S.rIi.indexOf(".")&&(S.rIi=void 0,S.aIi=-1,S.wMi=-1),S.AMi=!0,S.sIi(!0),S.MIi(!1),S.IIi(),S.AMi=!1):S.options.crossAreaVisible&&S.IIi())},f={},S.DIi=function(t){var e,t,n,n,e,i;t.target===l.Dg()&&(e=S.fIi(l,t))&&!S.$Mi&&(f={x:t.x,y:t.y},t=e.row,n=e.col,!N(t))&&0<t&&!N(n)&&(u(t)?s(t):!r(t)&&(e.cellTypeHitInfo&&e.cellTypeHitInfo.outlineColumnHitInfo&&(S.dIi=!0),n=l.getValue(t,1),e=void 0,S.tXe=!1,"string"!=typeof n?(e=n=l.getFormula(t,1),S.tXe=!0):S.CMi[t].isRelationship?(e=S.hIi(l,t)+"."+n,S.TIi=!1):(e=xt(i=l.getValue(t,1,k.SheetArea.viewport,k.ValueType.richText)),S.TIi=!0),S.CMi[t].isRelationship||!wt(S.CMi[t])||S.options.crossAreaVisible)&&(S.rIi=e,o=S.LMi.getBoundingClientRect(),S.aIi=t,S.wMi=t,s(t)))},S.bIi=function(t){var e,n,n,i,e,t,e=S.rIi,n=t.x!==f.x||t.y!==f.y;if(e&&n){if(S.AIi(t,e,o,S.LMi),(n=S.fIi(l,t))&&(i=n.row,e=n.col,!N(e))&&i&&i!==S.wMi){if(a(i))return;l.t4(i,1)}(t=l.Dg())&&(t.style.cursor="move"),S.xMi&&(S.xMi.style.cursor="move"),S.dIi=!1}},S.vIi=function(t){var e,n,i,n,o,u,r,n,o,t,u,e;S.rIi&&((n=S.fIi(l,t))&&!S.dIi&&(i=n.row,n=n.col,o=z.jIi,u=S.aIi,N(i)||N(n)||!(i!==u&&o<i&&o<u||i===u)?(l.t4(S.aIi,0),S.zIi(t.target,S.xMi)&&S.kMi(),S.CIi(t)):(r=z.getDataView())&&!c(u)&&(S.CMi[u].isRelationship&&2===S.CMi[u].textIndent?S.wIi(u,i):S.yIi(u,i),o=!((n=S.CMi[i]).yBt||G(n)||a(i)),S.options.crossAreaVisible)&&o&&(S.rIi=void 0,S.TIi=void 0,S.aIi=-1,S.wMi=-1,S.cIi=Z,S.oIi=Z,S.NIi=void 0,S.mIi=void 0,S.AMi=!0,S.sIi(!1),S.MIi(!0),S.LIi(),S.xIi(),S.AMi=!1)),S.dIi=!1,S.rIi=void 0,S.TIi=void 0,S.aIi=-1,S.wMi=-1,(t=l.Dg())&&(t.style.cursor="default"),S.xMi&&(S.xMi.style.cursor="default"),u=S.SIi)&&(u.style.display="none")},(0,k.GC$)(".".concat(ut)).bind("click",function(){var t,e,n,t=l.getRowCount();S.$Mi||0===t||(e=t+1,l.suspendPaint(),l.ffe(t,1,3,{rowExpand:!1,clearUndoNotInCommand:!1}),S.CMi[t]={isCalculateColumn:!0,checkStatus:!0,value:"",textIndent:1},l.getCell(e,1).locked(!1).textIndent(1),l.outlineColumn.getCollapsed(0)&&l.outlineColumn.setCollapsed(0,!1),l.outlineColumn.refresh(),l.setActiveCell(e,1),l.showCell(t,0,k.VerticalPosition.center,k.HorizontalPosition.center),n=setTimeout(function(){l.startEdit(),clearTimeout(n)},0),l.resumePaint())}),S.mMi&&S.mMi.addEventListener("mousedown",S.DIi,!0),document.addEventListener("mousemove",S.bIi,!0),document.addEventListener("mouseup",S.vIi,!0)},e.prototype.hIi=function(t,e){for(;0<=e;){var n;if(1===t.getCell(e,1).textIndent())return t.getValue(e,1);e--}return""},e.prototype.ZIi=function(n,i){var t,e,o,e,u,r,a,c,s,l,f,d,h,t=this,e=t.eIi();if(t.CMi=t.HMi(e),o=e.getColumnInfos(),e=t.CMi.filter(B),r=(u=t.CMi.filter(function(t,e){return e<n&&G(t)&&!t.isRelationship})).reduce(function(t,e){return t+o.filter(function(t){return t.RBt===e.RBt}).length-1},0),a=n<i?i+1:i,s=(c=t.CMi.filter(function(t,e){return e<a&&G(t)&&!t.isRelationship})).reduce(function(t,e){return t+o.filter(function(t){return t.RBt===e.RBt}).length-1},0),l=t.CMi.filter(function(t,e){return e<n&&wt(t)&&!t.isRelationship}).length,f=t.CMi.filter(function(t,e){return e<i&&wt(t)&&!t.isRelationship}).length,!t.CMi[n].isRelationship&&t.CMi[i].isRelationship)if(l=0,i<n){for(d=i;0<=d;d--)if(!t.CMi[d].isRelationship||2!==t.CMi[d].textIndent){f=i-d;break}}else{for(h=!1,d=i;d<t.CMi.length;d++)if(!t.CMi[d].isRelationship||2!==t.CMi[d].textIndent){f=i-d,h=!0;break}h||(f=i-t.CMi.length)}return{columnInfos:o,columnFieldInfos:e,crossColumnCountBeforeFromRow:r,crossColumnCountBeforeToRow:s,crossRelationFieldCountBeforeFromRow:l,crossRelationFieldCountBeforeToRow:f}},e.prototype.OIi=function(n,t){var e,i,o,i,u,r,a,c,s,l,f,e=this,i=e.eIi();return e.CMi=e.HMi(i),o=i.getColumnInfos(),i=e.CMi.filter(B),r=(u=e.CMi.filter(function(t,e){return e<n&&G(t)})).reduce(function(t,e){return t+o.filter(function(t){return t.RBt===e.RBt}).length-1},0),a=n<t?t+1:t,s=(c=e.CMi.filter(function(t,e){return e<a&&G(t)})).reduce(function(t,e){return t+o.filter(function(t){return t.RBt===e.RBt}).length-1},0),l=0,f=e.EIi(n,t),e.CMi[n].textIndent===e.CMi[t].textIndent&&e.CMi[n].isRelationship&&e.CMi[t].isRelationship&&e.GIi(n,t)&&(f=0),{columnInfos:o,columnFieldInfos:i,crossColumnCountBeforeFromRow:r,crossColumnCountBeforeToRow:s,crossRelationFieldCountBeforeFromRow:0,crossRelationFieldCountBeforeToRow:f}},e.prototype.GIi=function(t,e){for(var n,i,o,u,r,a,n=this,i=n.eIi(),o=n.HMi(i),u="",r=t;0<=r;r--)if(!o[r].isRelationship||2!==o[r].textIndent){u=o[r].value;break}for(a="",r=e;0<=r;r--)if(!o[r].isRelationship||2!==o[r].textIndent){a=o[r].value;break}return u===a},e.prototype.EIi=function(t,e){for(var n,i,o,n,u,r,n=this,i=n.eIi(),o=n.HMi(i),n=e-t,r=t;0<=r;r--)if(!o[r].isRelationship||2!==o[r].textIndent){u=t-r-1;break}return n+u},e.prototype.yIi=function(t,e){var n,i,o,u,r,a,c,s,u,l,f,d,s,a,h,g,b,n=this,i=n.vMi,o=i.getDataView();if(!(n.CMi[t].isRelationship&&1===n.CMi[t].textIndent&&n.CMi[e].isRelationship&&2===n.CMi[e].textIndent||(r=(u=n.ZIi(t,e)).columnInfos,a=u.crossColumnCountBeforeFromRow,c=u.crossColumnCountBeforeToRow,f=t-1-(s=u.crossRelationFieldCountBeforeFromRow),d=e-1-(u=u.crossRelationFieldCountBeforeToRow),(s=t-1+(l=n.pIi(o).length||0)-s+a)===(a=e-1+l-u+c)))){if(h=1,G(n.CMi[t])&&(g=n.kIi(o,s),h=r.filter(function(t){return t.RBt===g}).length),n.CMi[t].isRelationship)for(b=t+(h=1);b<n.CMi.length&&2===n.CMi[b].textIndent;b++)h++;i.zA({cmd:E.VIEW_MOVE_COLUMN,fromColumnOptionIndex:f,toColumnOptionIndex:d,fromColumnIndex:s,toColumnIndex:a,count:h}),n.Sze(),n.ZS()}},e.prototype.Sze=function(){var t,e,n,t=this.vMi,e=t.getDataView(),n=t.Mf.rowFilter();t.suspendPaint(),t.EPt(),n.UIi(),t.resetNewView(e.ILt,e.aPt,e.LEt),n.QIi(),t.jPt(),t.resumePaint()},e.prototype.wIi=function(t,e){var n,i,o,u,r,a,c,s,u,l,f,d,s,a,e,h;t!==e&&(o=(i=(n=this).vMi).getDataView(),r=(u=n.OIi(t,e)).columnInfos,a=u.crossColumnCountBeforeFromRow,c=u.crossColumnCountBeforeToRow,f=t-1-(s=u.crossRelationFieldCountBeforeFromRow),d=e-1-(u=u.crossRelationFieldCountBeforeToRow),(s=t-1+(l=n.pIi(o).length||0)-s+a)!==(a=e-1+l-u+c))&&(e=1,n.CMi[t].isRelationship&&1===n.CMi[t].textIndent&&(h=n.kIi(o,s),e=r.filter(function(t){return t.RBt===h}).length),i.zA({cmd:E.VIEW_MOVE_COLUMN,fromColumnOptionIndex:f,toColumnOptionIndex:d,fromColumnIndex:s,toColumnIndex:a,count:e}),n.Sze(),n.ZS())},e.prototype.sIi=function(t){var e=this,n=e.EMi;(e.options.crossAreaVisible=t)?n.classList.remove(S):n.classList.add(S)},e.prototype.setGroupAreaVisible=function(t){this.MIi(t)},e.prototype.MIi=function(t){var e=this,n=e.SMi,i=e.GMi;(e.options.groupAreaVisible=t)?(n.classList.remove(S),i.classList.remove(S)):(n.classList.add(S),i.classList.add(S))},e.prototype.AIi=function(t,e,n,i){var o,u,r,a,r,o=this,u=o.SIi,r=document.documentElement,a=r&&r.scrollTop||0,r=r&&r.scrollLeft||0;u&&u.parentElement&&u.parentElement!==i&&(u.parentElement.removeChild(u),u=this.SIi=void 0),u||((u=o.SIi=document.createElement("span")).className="gc-table-sheet-move-span",i.appendChild(u)),u.textContent=e,u.style.top=t.pageY+5-a-n.top+"px",u.style.left=t.pageX-50-r-n.left+"px",u.style.display="block"},e.prototype.fIi=function(t,e){var n=t.uw();return t.hitTest(e.pageX-n.left,e.pageY-n.top,!1)},e.prototype.PMi=function(){var o,u,r,o=this,u=o.Tp(),r=o.vMi;r.bind(k.Events.ColumnChanged+n,function(t,e){var n,i,n,n,n,n=e.sheetArea,i=r.getDataView();1!==n&&3!==n||("isVisible"===e.propertyName?(n=e.sheet.getValue(0,e.col,k.SheetArea.colHeader),0<=(n=o.nv(i,n))&&(u.suspendPaint(),u.suspendEvent(),u.setValue(n,0,e.newValue),u.resumeEvent(),u.resumePaint())):"addColumns"!==e.propertyName&&"deleteColumns"!==e.propertyName||(u.suspendPaint(),u.suspendEvent(),n=o.RIi(r),o.FMi(u,n),u.resumeEvent(),u.resumePaint()),o.CMi=o.HMi(i))})},e.prototype.Tp=function(){if(this.mMi){var t=(0,k.GC$)(this.mMi).data("workbook");if(t)return t.getSheet(0)}return null},e.prototype.RIi=function(t){var e,n,i,o,u,r,a,a,e=t.getDataView();if(e){for(i=[(n=this.HMi(e))[0]],u=0,r=(o=t.Mf).getColumnCount();u<r;u++)a=o.getValue(0,u,k.SheetArea.colHeader),0<=(a=this.nv(e,a))&&i.push(n[a]);return i}return[]},e.prototype.nv=function(t,e){var n,i;if(t)for(n=t.getColumnInfos(!0),i=0;i<n.length;i++)if(n[i].caption===e||n[i].value===e)return i+1;return-1},e.prototype.kIi=function(t,e){var e,t,e=t.BPt(e),t=t.yLt[e];return t&&t.RBt},e.prototype.HMi=function(t,e){var n,i,o,u,r,a,c,s,l,f,d,h,f,g,n=this;if(t){for(i=[],u=t.getColumnInfos(!(o=!1),!0),r=!N(e),a=function(){return r&&i.length-1>=e},c=0;c<u.length;c++){if("string"==typeof(s=u[c]).value&&0===s.value.trim().indexOf("="))i.push({value:s.value,textIndent:1,checkStatus:!1!==s.visible,isCalculateColumn:!0});else if(N(s.cross))if("string"==typeof s.value&&t.FPt(s.value)&&1===s.value.split(".").length)if(u[c].isRelationship){for(l=s.value,f=!this.PIi(u,l)||!1,i.push({value:l,textIndent:1,checkStatus:!1!==s.visible,setCollapsed:f,isRelationship:!0}),d=c+1;this.YIi(u,d,l);)"string"==typeof(h=u[d].value)&&i.push({value:h.substring(h.indexOf(".")+1),textIndent:2,checkStatus:!1!==u[d].visible,needCheckBox:!0,isRelationship:!0}),d++;c=d-1}else i.push({value:n.$t(s),textIndent:1,checkStatus:!1!==s.visible}),n.WIi(s.value,n.YMi,t).forEach(function(t){return i.push(t)});else{if("string"==typeof s.value&&"_ganttColumn"===s.value){if(a())return s;continue}g=f=void 0,"string"==typeof s.value&&-1===s.value.indexOf(".")&&(f=t.isLookupField(s.value),s.yBt=f,g=s.value),i.push({value:n.$t(s),textIndent:1,checkStatus:!1!==s.visible,yBt:f,nIi:g})}else i.push({value:n.$t(s),bMi:s.cross,RBt:s.RBt,textIndent:1,checkStatus:!1!==s.visible});if((N(s.visible)||s.visible)&&(o=!0),a())return s}return r?Z:(i.unshift({value:t.name,textIndent:0,checkStatus:o}),i)}return[]},e.prototype.PIi=function(t,e){for(var n,i,n=0;n<t.length;n++)if("string"==typeof(i=t[n]).value&&-1!==i.value.indexOf(e)&&!1!==i.visible)return!0;return!1},e.prototype.YIi=function(t,e,n){var t;return!(e>=t.length)&&-1!==(t=t[e]).value.indexOf(n)&&-1===t.value.indexOf("=")},e.prototype.$t=function(t){var e,n,t,t,i,o,e=[],n=t.value instanceof Function?t.value.name:t.value,t=(0,O.tIi)(t.caption)||n;return e.push({text:t}),(t=this.options.showSource)===mt.field?"="!==n[0]&&(i=n):t===mt.formula?"="===n[0]&&(i=n):t===mt.all&&(i=n),i&&e.push({style:{foreColor:"lightgrey"},text:o="("+i+")"}),{richText:e}},e.prototype.VMi=function(t,e){t.options.showVerticalScrollbar=e},e.prototype.FMi=function(d,r){var a,t,e,n,i,h,g,o,u,c,s,l,f,b,v,a=this,t=r.length,e=d.outlineColumn,n,i=this.options.showEditButton,h=this.vMi,g=h.Mf,o={};for(d.suspendEvent(),d.suspendPaint(),u=0;u<d.getRowCount();u++)e.getCollapsed(u)&&(e.setCollapsed(u,!1),o[(c=d.getCell(u,1)).value()]=c.textIndent()),r[u]&&!N(r[u].setCollapsed)&&r[u].setCollapsed&&(c=d.getCell(u,1)).textIndent()<=1&&(o[c.value()]=c.textIndent());for(e.reset(),d.setRowCount(t),d.clear(0,0,t,2,3,k.StorageType.data|k.StorageType.style),s=0;s<t;s++)l=r[s],c=d.getCell(s,1).textIndent(l.textIndent),l.isCalculateColumn?d.setFormula(s,1,l.value):c.value(l.value),(l.textIndent<=1||l.needCheckBox)&&d.getCell(s,0).value(l.checkStatus).cellType(new Y.CheckBox),f=[],Ct(l)&&f.push({useButtonStyle:!1,hoverBackColor:"white",imageType:k.ButtonImageType.custom,imageSrc:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTZweCIgaGVpZ2h0PSIxNnB4IiB2aWV3Qm94PSIwIDAgMTYgMTYiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8dGl0bGU+bG9vayB1cCBjb2x1bW4xPC90aXRsZT4KICAgIDxnIGlkPSJsb29rLXVwLWNvbHVtbjEiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxwYXRoIGQ9Ik0zLDMgTDUsMyBMNSw0IEwzLDQgTDMsMyBaIE0zLDYgTDUsNiBMNSw3IEwzLDcgTDMsNiBaIE0zLDkgTDUsOSBMNSwxMCBMMywxMCBMMyw5IFogTTMsMTIgTDUsMTIgTDUsMTMgTDMsMTMgTDMsMTIgWiBNNiwzIEwxNCwzIEwxNCw0IEw2LDQgTDYsMyBaIE02LDYgTDE0LDYgTDE0LDcgTDYsNyBMNiw2IFogTTYsOSBMMTQsOSBMMTQsMTAgTDYsMTAgTDYsOSBaIE02LDEyIEwxNCwxMiBMMTQsMTMgTDYsMTMgTDYsMTIgWiIgaWQ9IuW9oueKtue7k+WQiCIgZmlsbD0iIzY2NjY2NiI+PC9wYXRoPgogICAgPC9nPgo8L3N2Zz4=",visibility:k.ButtonVisibility.always,i4i:!0,imageSize:{height:20,width:20}}),G(l)&&(f.push({useButtonStyle:!1,hoverBackColor:"white",imageType:k.ButtonImageType.custom,imageSrc:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2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DEyIDggMTIiPjwvcG9seWdvbj4KICAgICAgICA8L2c+CiAgICA8L2c+Cjwvc3ZnPg==",visibility:k.ButtonVisibility.always,i4i:!0,imageSize:{height:16,width:16}}),f.push({imageType:k.ButtonImageType.clear,visibility:k.ButtonVisibility.always,i4i:!0,imageSize:{height:18,width:18},command:function(t,e,n,i){var o,o,u,o=h.getDataView();if(o){for(o=o.uPt(r.filter(B).indexOf(r[e])),h.zA({cmd:E.REMOVE_CROSS_COLUMN,index:o}),a.cIi=Z,a.oIi=Z,a.NIi=void 0,a.mIi=void 0,u=0;u<r.length;u++)if(r[u]&&B(r[u])){t.t4(u,1);break}a.AMi=!0,a.MIi(!0),a.sIi(!1),a.AMi=!1,a.ZS()}}})),i&&f.push({imageType:k.ButtonImageType.custom,imageSrc:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgY2xpcC1wYXRoPSJ1cmwoI2NsaXAwXzE5XzE1MTEpIj4KPHJlY3Qgd2lkdGg9IjE2IiBoZWlnaHQ9IjE2IiBmaWxsPSJ0cmFuc3BhcmVudCIvPgo8cGF0aCBkPSJNMC44ODE2OCAxNkMwLjc1OTg0IDE1Ljk5OTggMC42MzkzNzcgMTUuOTc0MiAwLjUyNzk1MSAxNS45MjQ5QzAuNDE2NTI1IDE1Ljg3NTYgMC4zMTY1NzQgMTUuODAzNyAwLjIzNDQ1NCAxNS43MTM3QzAuMTUwODQ5IDE1LjYyNDUgMC4wODcwNTI3IDE1LjUxODYgMC4wNDcyNDg5IDE1LjQwMjlDMC4wMDc0NDUxNSAxNS4yODczIC0wLjAwNzQ2NzAxIDE1LjE2NDYgMC4wMDM0OTAwMiAxNS4wNDI4TDAuMjE4NjQ2IDEyLjY3NjlMMTAuMTU4IDIuNzQxMDhMMTMuMjY0M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e,n)))for(0!==u.indexOf("=")?0<=(e=u.indexOf("("))&&(u=u.substring(0,e)):r=!0,a=o.getColumnInfos(),c=0;c<a.length;c++)if(s=a[c],l=r?s.value:(0,O.tIi)(s.caption||s.value),!s.isGroup&&l===u){s=c,l=g.getSelections(),f=[(0,k.Ec)(-1,s,-1,1)],g.EA(l,f),g.setSelection(-1,s,-1,1),g.showCell(g.Tb||0,s,k.VerticalPosition.nearest,k.HorizontalPosition.nearest),g.jA(l);break}}}),0<f.length&&c.cellButtons(f);for(b in d.outlineColumn.options({columnIndex:1,showIndicator:!0}),d.outlineColumn.options().collapseIndicator=M.ARROW_RIGHT,d.outlineColumn.options().expandIndicator=M.ARROW_DOWN,d.outlineColumn.refresh(),d.showRowOutline(!1),e=d.outlineColumn,o)if(o.hasOwnProperty(b))for(v=o[b],u=0;u<d.getRowCount();u++)if((c=d.getCell(u,1)).value()===b&&c.textIndent()===v){e.setCollapsed(u,!0);break}d.resumePaint(),d.resumeEvent()},e.prototype.kMi=function(){var t,e,n,i,o,u,r,o,a,c,t=this,e=t.vMi,n=t.rIi,i=e.getDataView();i&&t.options.groupAreaVisible&&(o=i.oPt,u=(0,k.RF)(e.lMi)||[],n?(r=void 0,r=t.TIi?this.CMi.filter(B).indexOf(this.CMi[t.aIi]):this.CMi.indexOf(this.CMi[t.aIi-1]),o&&o.length&&(r=i.ALt()[r]),o=i.ILt[r],a=o&&o.value,0===(c=u.filter(function(t){return t.field===a})).length&&(u.push({caption:t.tXe?n:(0,O.zze)(n),field:a}),e.zA({cmd:E.GROUP_OPTIONS,groupOptions:u}),t.ZS())):t.updatePanelLayout())},e.prototype.pIi=function(t){var e,t,n,i,o,e=[];if((t=(t=t||this.eIi())&&t.getColumnInfos())&&t.length)for(n=0,i=t;n<i.length;n++)(o=i[n]).isGroup&&e.push(o);return e},e.prototype.yMi=function(){var t,e,n,i,o,u,r,t=this.options.fieldAreaVisible,e=this.options.crossAreaVisible,n=this.options.groupAreaVisible,i="",o="",u="",r="";return i='<div class="'.concat(l,'">\n <span class="gc-table-sheet-field-header">').concat((0,O.getSR)().GroupPanelFieldsHeader,'\n <span class="').concat(ut,"\" title='").concat((0,O.getSR)().GroupPanelAddCalculateColumn,"'></span>\n </span>\n <div class=\"").concat(_,'"></div>\n </div>'),o=this.FIi(e),u='<div class="'.concat(c,'">\n <span class="gc-table-sheet-group-header">').concat((0,O.getSR)().GroupPanelGroupsHeader,'</span>\n <ul class="').concat(f,'">\n <span class="gc-table-sheet-group-tip">').concat((0,O.getSR)().GroupPanelTip,"</span>\n </ul>\n </div>"),r='<div class="'.concat(s,'"></div>'),!1===t&&(i=i.replace(l,l+" "+S),u=u.replace(c,"".concat(c," half-height")),r=r.replace(s,"".concat(s," half-height"))),!1===n&&(u=u.replace(c,c+" "+S),r=r.replace(s,s+" "+S)),!1===e&&!1===n&&(i=i.replace(l,"".concat(l," total-height"))),'<div class="'.concat(F,'">\n ').concat(i,"\n ").concat(u,"\n ").concat(o,"\n ").concat(r,'\n </div>\n <div class="').concat(rt,'" style="display:none;"></div>')},e.prototype.updatePanelLayout=function(){this.IIi(),this.LIi(),this.xIi(),this._Mi()},e.prototype.getBindingTable=function(){return this.vMi},e.prototype.LIi=function(){this.SWt(),this.JIi(),this.Fz()},e.prototype.xIi=function(){var e,t,n,t,e=this;this.GMi&&(this.XIi(),t=null==(t=(n=function(){var t;return null==(t=e.GMi)?void 0:t.querySelector(".".concat(m))})())?void 0:t.scrollTop,this.GMi.innerHTML=this.KIi(),n()&&(n().scrollTop=t),this._Ii(),this.qIi=!1)},e.prototype.JIi=function(){var t,e,n,i,o,u,r,t,e=this.vMi.lMi,n=this.xMi;if(e&&n){for(i="",o=void 0,u=e.length,this.jMi=this.jMi>=u?u-1:this.jMi,r=0;r<e.length;r++)o=e[r],i+=this.$Ii(o,r);n.innerHTML=i,n.style.border="solid 1px lightgrey",this.igi=n.querySelector(".".concat(d))}else this.tgi()},e.prototype._Mi=function(){var t,t;this.mMi&&(t=this.vMi,t=this.HMi(t.getDataView()),this.CMi=t,this.FMi(this.Tp(),t))},e.prototype.tgi=function(){var t,t,t=this.xMi;t&&(t.innerHTML='<span class="gc-table-sheet-group-tip">'.concat((0,O.getSR)().GroupPanelTip,"</span>"),t.style.border="",this.jMi=0),(t=this.GMi)&&(t.innerHTML="")},e.prototype.Fz=function(){var u,r,t,a,c,s,e,l,u=this,r=u.vMi,t=u.BMi,a=t&&t.Dg(),c=(0,k.RF)(r.lMi),s=u.xMi;s&&(e=u.igi,l=u.LMi.getBoundingClientRect(),(0,k.GC$)(".".concat(h),s).bind("click",function(t){var e,n,i,e=t.target.className;e===X?(i=(n=(0,k.GC$)(t.target).parent()).attr(v),u.ngi(i)):e===bt&&(i=(n=(0,k.GC$)(t.target).parent()).attr(v),u.PWe(i))}).bind("mousedown",function(t){var e,t,n,t,e=t.target,t=t.target.className,n=!1;-1<t.indexOf(X)||(-1<t.indexOf(nt)?(e=e.parentElement,n=!0):-1<t.indexOf(h)&&(n=!0),n&&(t=(0,k.GC$)(e).attr(v),u.egi=t,l=u.LMi.getBoundingClientRect(),u.jMi!==+t&&(u.jMi=+t,u.XIi(),u.ogi(e),u._Ii()),u.ugi=e))}),u.cgi=function(t){var e,n,i,o,n,o,n,e,n,o,e=u.egi;e!==Z&&e!==g&&(n=(c=(0,k.RF)(r.lMi))[e].caption||c[e].field,u.AIi(t,n,l,u.LMi),a&&(a.style.cursor="move"),n=!(u.Ti.style.cursor="move"),(o=(i=t.target).parentElement)&&-1<o.className.indexOf(h)?(i=o,n=!0):-1<i.className.indexOf(h)&&(n=!0),o=u.ugi,n&&o!==i&&((n=i.getAttribute(v))<e?(o.className=o.className.replace(D,"").replace(j,"").trim(),i.className=i.className+" ".concat(D)):e<n?(o.className=o.className.replace(D,"").replace(j,"").trim(),i.className=i.className+" ".concat(j)):o.className=o.className.replace(D,"").replace(j,"").trim(),u.ugi=i),n=(e=s.getBoundingClientRect()).top+document.documentElement.scrollLeft,o=e.bottom+document.documentElement.scrollTop,t.pageY<n?s.scrollTop=s.scrollTop-10:t.pageY>o&&(s.scrollTop=s.scrollTop+10))},u.rgi=function(t){var e,t,t,t,n,n,e=u.egi,t=t.target;c=(0,k.RF)(r.lMi),e!==Z&&(u.ugi.className=u.ugi.className.replace(D,"").replace(j,"").trim(),u.zIi(t,u.xMi)?(t=u.ugi)&&(t=(0,k.GC$)(t).attr(v))!==e&&(n=c.splice(e,1)[0],c.splice(t,0,n),u.jMi=+t,r.zA({cmd:E.GROUP_OPTIONS,groupOptions:c}),u.ZS()):u.ngi(e)),u.egi=Z,u.ugi=Z,a&&(a.style.cursor="default"),u.Ti.style.cursor="default",(n=u.SIi)&&(n.style.display="none")},document.addEventListener("mouseup",u.rgi,!0),document.addEventListener("mousemove",u.cgi,!0),(0,k.GC$)(".".concat(d)).bind("blur",function(t){"none"!==e.style.display&&(u.agi(t.target),e.style.display="none")}).bind("keydown",function(t){13===t.keyCode?(u.agi(t.target),e.style.display="none"):27===t.keyCode&&(e.style.display="none")}),(0,k.GC$)(".".concat(f)).bind("dblclick",function(t){var e;t.target.className===nt&&u.sgi(t)}))},e.prototype.Lze=function(t){var e;return t?t.getColumnInfos(!0,!0).filter(function(t){return N(t.cross)}).map(function(t){var e=t.value instanceof Function?t.value.name:t.value;return{text:(0,O.tIi)(t.caption)||e,value:e}}):[]},e.prototype.Mgi=function(){var t,e,n,i,t=document.createElement("li");return t.className=$,e=this.Lze(this.vMi.getDataView()),n=this.vMi.options.groupLayout.mode===R.GroupLayoutMode.tabular,i=this.vMi.options.groupLayout.position,t.innerHTML=Mt({sliceField:"",caption:"",formula:"",columnList:e,showSlice:n,position:i}),t},e.prototype.ogi=function(t){var e,n,i,o,u,e,n,i=this.xMi.querySelectorAll(".".concat(h));for(o in i)i.hasOwnProperty(o)&&((u=i[o]).className=u.className.replace("selected","").trim(),u===t)&&(u.className=u.className+" selected");this.GMi&&(this.GMi.innerHTML=this.KIi())},e.prototype.KIi=function(){var t,e,n,i,e,o,o,u,r,a,c,s,l,f,d,h,d,g,t,b,e=this,n=e.jMi,i="",e=e.vMi,o=e.lMi,o=o&&o[n],u=o&&o.field,r="",a=o&&o.summaryFields,c=this.Lze(this.vMi.getDataView()),s=e.options.groupLayout&&(0,W.isGroupOutlineCondensedLayout)(e.options.groupLayout.mode);if(a)for(l=0;l<a.length;l++)h="",(d=(f=a[l]).slice)&&(h="string"==typeof d?d:d.field),d=s?f.caption:f.caption||f.formula,g=f.relateTo,t=f.position||(null==(t=this.vMi.options.groupLayout)?void 0:t.position)||"header",g=g||this.vMi.getDataView().JGe(f.formula,!0)[0],b=this.vMi.options.groupLayout.mode===R.GroupLayoutMode.tabular,r+='<li class="'.concat($,'" ').concat(v,"=").concat(n," ").concat(I,"=").concat(l,">\n ").concat(Mt({formula:f.formula,caption:d,sliceField:h,columnList:c,relateTo:g,position:t,showSlice:b}),"\n </li>");return i=u?'<div class="gc-table-sheet-summary-header">\n <span class="gc-table-sheet-summary-label">'.concat(u,'</span>\n <span class="').concat(it,'" title="').concat((0,O.getSR)().GroupPanelItemAddCalculation,'"></span>\n <span class="gc-table-sheet-summary-remove" title="').concat((0,O.getSR)().GroupPanelItemRemoveAll,'"></span>\n </div>\n <ul class="').concat(m,'">\n ').concat(r,"\n </ul>"):i},e.prototype._Ii=function(){var f,d,h,n,f=this,n=f.pMi;(0,k.GC$)(".".concat(m)).bind("change",function(t){var t,e,n,t,e,n,i,i,o,t,u,t,r,a,c,s,t,l,l,t=(0,k.GC$)(t.target),e=t.attr("current-data"),n=t.val(),t=t.parent();if(e!==n&&t&&t[0]&&"="!==n){if(e=f.vMi,n=(0,k.RF)(e.lMi),i=f.jMi,i=n&&n[i],o=JSON.parse(JSON.stringify(n)),u=(t=t.parent()).attr(I),r=(t=It(t)).formulaInputValue,a=t.captionInputValue,c=t.sliceInputValue,s=t.relateToValue,t=t.positionValue,i.summaryFields||(i.summaryFields=[]),c&&""!==c){if(-1===c.indexOf("(")&&(l=c.replace("=",""),!f.Igi(c=l)))return}else c=Z;(l=i.summaryFields[u])?(l.formula=r,l.caption=a||r,l.slice=""===c?Z:c,l.position=t,l.relateTo=s):i.summaryFields.push({formula:r,caption:a||r,slice:""===c?Z:c,position:t,relateTo:s});try{e.zA({cmd:E.GROUP_OPTIONS,groupOptions:n})}catch(t){e.groupBy(o)}f.ZS()}f.ggi(d,h)}),(0,k.GC$)(".".concat(w)).bind("focus",function(t){var t=t.target,e=(0,k.GC$)(t).val()||"=";(d=new P.FormulaTextBox(t,g,g)).Ngi=!0,h=new k.Workbook(n,{allowDynamicArray:!0,allowUndo:!1}),f.XMi(h),f.lgi(h),d.workbook(h),d.text(e)}).bind("blur",function(t){var t=(0,k.GC$)(t.target),e;"="===t.val()&&t.val(""),f.ggi(d,h)}).bind("keydown",function(t){13===t.keyCode&&(f.ggi(d,h),t.target.blur())}),(0,k.GC$)(".".concat(b)).bind("focus",function(t){var t=t.target,e=(0,k.GC$)(t).val()||"=";(d=new P.FormulaTextBox(t,g,g)).Ngi=!0,h=new k.Workbook(n,{allowDynamicArray:!0,allowUndo:!1}),f.XMi(h),f.lgi(h),d.workbook(h),d.text(e)}).bind("blur",function(t){var t=(0,k.GC$)(t.target),e;"="===t.val()&&t.val(""),f.ggi(d,h)}).bind("keydown",function(t){13===t.keyCode&&(f.ggi(d,h),t.target.blur())}),(0,k.GC$)(".".concat(s)).bind("mouseup",function(t){var e,n,i,o,u,r,a,c,s,l,c,s,n,e,n=t.target.className;"gc-table-sheet-summary-remove"===n?(i=f.vMi,o=(0,k.RF)(i.lMi),u=f.jMi,(r=o&&o[u]).summaryFields=[],i.zA({cmd:E.GROUP_OPTIONS,groupOptions:o}),f.ZS()):n===it?(c=(a=f.GMi).querySelector(".".concat(m)))&&!f.qIi&&(f.qIi=!0,f.XIi(),s=f.Mgi(),c.appendChild(s),f._Ii()):"gc-table-sheet-summary-item-remove-icon"===n&&(c=(l=(0,k.GC$)(t.target)).parent())&&c[0]&&(i=f.vMi,o=(0,k.RF)(i.lMi),u=f.jMi,r=o&&o[u],(n=(s=c.parent()).attr(I))&&r.summaryFields?(r.summaryFields.splice(parseInt(n,10),1),i.zA({cmd:E.GROUP_OPTIONS,groupOptions:o}),f.ZS()):n||(s.remove(),f.ggi(d,h),f.qIi=!1))})},e.prototype.lgi=function(t){var t=t.getActiveSheet();delete t.Qy().PUt.enter,t.setRowCount(1),t.setColumnCount(1)},e.prototype.ggi=function(t,e){t&&t.destroy&&t.destroy(),e&&e.destroy&&e.destroy()},e.prototype.Igi=function(t){var e,n=this.vMi.getDataView(),n=n&&n.getColumnInfos(!0).map(function(t){return t.value});return!!(n&&-1<n.indexOf(t))},e.prototype.XMi=function(t){var e,n,n,i,o,u,r,a,e,n=this.vMi.getDataView(),n=n&&n.getColumnInfos(!0,!0);if(n)for(this.Dgi&&(i=this.Dgi.map(function(t){return{value:t.attribute}}),n=n.concat(i)),o=0,u=n;o<u.length;o++)(a=(r=u[o]).value)&&"string"==typeof a&&-1===a.indexOf("=")&&r.cross===Z&&t.zwt(t.hyt,a,"=A1",0,0,!0,(0,O.getSR)().GroupPanelDropDownCalcField+" "+a)},e.prototype.XIi=function(){(0,k.GC$)(".".concat(m)).unbind("change"),(0,k.GC$)(".".concat(w)).unbind("focus"),(0,k.GC$)(".".concat(w)).unbind("blur"),(0,k.GC$)(".".concat(w)).unbind("keydown"),(0,k.GC$)(".".concat(b)).unbind("focus"),(0,k.GC$)(".".concat(b)).unbind("blur"),(0,k.GC$)(".".concat(b)).unbind("keydown"),(0,k.GC$)(".".concat(s)).unbind("mouseup")},e.prototype.sgi=function(t){var e,n,t,i,e,n=this.igi,t=(0,k.GC$)(t.target).parent(),i=t.attr(K);n.style.display="inline",n.value=i,n.style.left="",n.style.width="",t.append(n),n.focus()},e.prototype.ngi=function(t){var e,n,i,t,o,e=this,n=e.vMi,i=(0,k.RF)(n.lMi),t=i[t],o=t&&t.field;(i=i.filter(function(t){return t.field!==o})).length?n.zA({cmd:E.GROUP_OPTIONS,groupOptions:i}):n.zA({cmd:E.GROUP_OPTIONS,groupOptions:[]}),e.ZS()},e.prototype.PWe=function(t){var e,t,e=this.vMi,t=e.lMi[t];e.ki(k.Events.TableSheetGroupFieldSetting,{groupOption:t})},e.prototype.SWt=function(){var t,e,t=this,e=t.xMi;(0,k.GC$)(".".concat(h),e).unbind("click"),(0,k.GC$)(".".concat(h),e).unbind("mousedown"),(0,k.GC$)(".".concat(f)).unbind("dblclick"),(0,k.GC$)(".".concat(d)).unbind("blur"),(0,k.GC$)(".".concat(d)).unbind("keydown"),(0,k.GC$)(".".concat(it)).unbind("click"),document.removeEventListener("mouseup",t.rgi,!0),document.removeEventListener("mousemove",t.cgi,!0)},e.prototype.agi=function(t){var e,n,t,i,o,u,r,a,t,c,s,e=this,n=t.value;n&&(i=(t=(0,k.GC$)(t).parent()).attr(q),o=t.attr(K),u=t.attr(tt),r=t.attr(et),a=t.attr(v),t=t.attr(I),c=e.vMi,s=(0,k.RF)(c.lMi),i||o?n!==o&&s&&(s[a].caption=(0,O.zze)(n),c.zA({cmd:E.GROUP_OPTIONS,groupOptions:s})):(u||r)&&n!==u&&s&&(s[a].summaryFields[t].caption=n,c.zA({cmd:E.GROUP_OPTIONS,groupOptions:s})),e.ZS())},e.prototype.$Ii=function(t,e){var n,t,i,n=t.field,t=(0,O.tIi)(t.caption)||n,i=e===this.jMi?" selected":"";return'<li class="'.concat(h).concat(i,'" ').concat(K,'="').concat(a(t),'" ').concat(q,'="').concat(n,'" ').concat(v,"=").concat(e,'>\n <span class="').concat(nt,'">').concat(a(t),'</span>\n <span class="').concat(X,'" title="').concat((0,O.getSR)().GroupPanelItemRemove,'"></span>\n ').concat(vt(this.options.showGroupSetting,'<span class="'.concat(bt,'"></span>')),'\n </li>\n <input class="').concat(d,'" display="none"></input>')},e.prototype.zIi=function(t,e){for(;t;){if(t===e)return!0;t=t.parentElement}return!1},e.prototype.BIi=function(t,e){var n,i,o,t,u,e,n=this,i=n.vMi,o=i.getDataView(),t=t||o.ILt,u=o.aPt,e=null!=e?e:o.LEt;i.zA({cmd:E.RESET_NEW_VIEW,newConfig:{columnInfoOptions:t,includeDefaultColumns:u,options:e}}),n.ZS()},e.prototype.WHe=function(t){for(var e,n,i,o,u,r,a,c,e={},n=0;n<t.ILt.length;n++)!((i=t.ILt[n]).style instanceof k.Style)&&i.style.cellType&&i.style.cellType instanceof H&&(e[n]||(e[n]={}),e[n].style=i.style,i.style=new k.Style(i.style)),!(i.headerStyle instanceof k.Style)&&i.headerStyle.cellType&&i.style.cellType instanceof H&&(e[n]||(e[n]={}),e[n].headerStyle=i.headerStyle,i.headerStyle=new k.Style(i.headerStyle));for(n in o=V(t.ILt,!1),e)if(e.hasOwnProperty(n)){if((u=e[n]).style){for(a in r={},u.style)u.style.hasOwnProperty(a)&&(r[a]=o[n].style[a]);o[n].style=r,t.ILt[n].style=u.style}if(u.headerStyle){for(a in c={},u.headerStyle)u.headerStyle.hasOwnProperty(a)&&(c[a]=o[n].headerStyle[a]);o[n].headerStyle=c,t.ILt[n].headerStyle=u.headerStyle}}return o},e.prototype.dgi=function(t,e){var n,i,o,u,e,r,a,c,s,l,f,f,d,h,g,b,h,g,n=this,i,o=n.vMi.getDataView(),u=n.WHe(o),e=null!=e?e:(0,k.RF)(o.LEt),r=n.cIi,a=e&&e.cross||{};for(t&&u.push(r[r.length-1]),s=c=0;c<u.length;c++)l=void 0,N(u[c].cross)||(l=r[s],s++),l&&((f=l.cross.attributes)&&(l.cross.attributes=f.filter(function(t){return t})),f=l.cross.hgi,d=l.cross.Zc,h=l.cross.Tgi,g=l.cross.bgi,b=yt(l),h?(delete b.cross.Tgi,delete l.cross.Tgi,d?(a[d]||(n.Agi(f),b.cross.vgi=b.vgi,a[d]=b.cross),b.cross=d,l.cross=d):f&&a[f]&&(l.cross=b.cross=a[f])):g&&(n.Agi(f),(h=a[d])?(l.vgi=h.vgi,l.cross=d,b.cross=d):(delete l.cross.jgi,delete b.cross.jgi,delete l.cross.Zc,delete b.cross.Zc)),l.cross.jgi!==Z&&(g=l.cross.jgi,delete l.cross.jgi,delete b.cross.jgi,a[g]=l.cross,b.cross=g,l.cross=g),delete b.cross.hgi,delete b.cross.Tgi,delete b.cross.bgi,delete b.cross.jgi,delete l.cross.hgi,delete l.cross.Tgi,delete l.cross.bgi,delete l.cross.jgi,delete b.vgi,u[c]=b);0<Object.keys(a).length&&(e.cross=a),n.BIi(u,e),n.options.crossAreaVisible||(n.cIi=Z,n.oIi=Z,n.NIi=void 0,n.mIi=void 0)},e.prototype.Agi=function(t){var e,n,n,i,o,u,r,e=this,n=e.vMi.getDataView().LEt,n=n&&n.cross||{},i=e.cIi;if(t&&n[t]){for(u=o=0;u<i.length&&((r=i[u]).cross.hgi!==t&&r.cross!==t||!(2<=++o));u++);o<2&&delete n[t]}},e.prototype.CIi=function(t){var e,n,i,t,n,t,n,o,e=this,n=e.uIi;n&&e.zIi(t.target,e.zgi())&&e.oIi&&e.mLt(n)&&((i=e.cIi&&0===e.cIi.length)&&(e.cIi=e.lIi()),t=e.cIi,n={value:n,cross:{over:e.oIi}},t&&t.length?t.push(n):e.cIi=[n],e.NIi=e.cIi.length-1,e.IIi(),n=(t=e.cIi[e.NIi])&&t.cross,e.Cgi(n,t.value))&&(e.dgi(!0),(o=e.Tp()).t4(e.CMi.length-1,0))},e.prototype.wgi=function(t){var e,n,i,o,u,r,e,n=this.YMi,i="";if(n&&n[t])for(u=(o=n[t].level)-1,i=n[t].name,t--;0<=u&&0<=t;)(r=n[t])&&r.level===u&&(u--,i=r.name+"."+i),t--;return i},e.prototype.FIi=function(t){var t=t?"":" "+S;return'<div class="'.concat(c," ").concat(J," ").concat(at).concat(t,'">\n ').concat(this.ygi(),"\n </div>")},e.prototype.ygi=function(){return'<span class="gc-table-sheet-group-header">'.concat((0,O.getSR)().CrossColumnCrossHeader,'</span>\n <div class="').concat(x,'">').concat(this.mgi(),"</div>")},e.prototype.IIi=function(){var t;this.ZMi&&(this.Lgi(),(t=this.mgi())&&(this.ZMi.innerHTML=t),this.OMi=this.ZMi.querySelector(".".concat(y)),this.xgi())},e.prototype.mgi=function(){var t,e,u,n,i,o,r,i,a,c,s,l,f,d,h,g,i,b,v,b,M,I,b,m,N,D,j,t=this,e="",i=t.oIi,o=t.vMi.getDataView(),r=o&&o.LEt||{};if((void 0!==t.NIi&&t.cIi&&t.cIi.length||i)&&(i=t.cIi&&t.cIi[t.NIi]||{value:"",cross:{over:i}})){if(a=t.gIi(i.cross),l=(s=!pt(c=i.value))?"":"disabled",n=o.isLookupRelationField(a.over))if(u=i.vgi,a.attributes){if(!u)for(u=i.vgi=t.Sgi(a.over).map(function(e){var t=jt(a.attributes,function(t){return U(t)===U(e)}),n=-1<t;return{attribute:n?a.attributes[t]:e,checked:n}}),f=function(t){for(var e,i,n,o,e=a.attributes[t],i=jt(u,function(t){return U(t.attribute)===U(e)}),n=function(t){var e,t,n,e=a.attributes[t],t=jt(u,function(t){return U(t.attribute)===U(e)});i<t&&(n=u[t],u.splice(t,1),u.splice(i,0,n),i+=1)},o=t-1;0<=o;o--)n(o)},d=a.attributes.length-1;0<=d;d--)f(d)}else a.attributes=t.Sgi(a.over),u=i.vgi=a.attributes.map(function(t){return{attribute:t,checked:!0}});else u=o.getLookup(a.over).map(function(t){return{attribute:t=t instanceof Date?t.toString():t}});for(h="",i=g=n?"":" "+S,t.Dgi=u||[],t.mIi===Z&&(t.mIi=0),d=0;d<u.length&&c;d++)v=(b=u[d]).checked,I="",(M=b=b.attribute)!==Z&&("object"==typeof b&&(M=b.value,I=b.formatter),b=n&&d===this.mIi?" selected":"",h+='<li class="'.concat(n?A+b:"gc-table-sheet-cross-column-static-list-item",'" attribute-value="').concat(M,'" attribute-index=').concat(d,' >\n <input name="').concat(M,'" class="').concat(st," ").concat(g,'" input-type="attributes" type="checkbox" value="" ').concat(v?"checked":"",' />\n <span class="gc-table-sheet-cross-column-item-label">').concat(M,'</span>\n <span class="').concat(lt," ").concat(g,'" title="').concat((0,O.getSR)().GroupPanelItemRemove,'"></span>\n <span class="').concat(p,' gc-table-sheet-cross-column-attributes-formatter gc-table-sheet-hidden">\n <span class="').concat(C,'">').concat((0,O.getSR)().CrossColumnDetailFormatter,'</span>\n <input class="').concat(ot,'" input-type="attributes.formatter" spellcheck="false" tabIndex="-1" value="').concat(I,'"></input>\n </span>\n </li>'));if(m="<option></option>",N=o.LEt&&o.LEt.cross)for(D in N)N.hasOwnProperty(D)&&N[D].over===a.over&&(j=D===a.Zc?'selected="selected"':"",m+="<option value=".concat(D," ").concat(j,">").concat(D,"</option>"));e='<div class="gc-table-sheet-cross-column-detail-content">\n <div class="'.concat(p,'">\n <span class="').concat(C,'">').concat((0,O.getSR)().CrossColumnDetailName,'</span>\n <input class="gc-table-sheet-cross-item-input-name" input-type="name" spellcheck="false" tabIndex="-1" value=\'').concat(a.Zc||"","' ").concat(l,'></input>\n <select class="gc-table-sheet-cross-item-select-name" input-type="name-select" ').concat(l,">\n ").concat(m,'\n </select>\n </div>\n <div class="').concat(p,'">\n <span class="').concat(C,'">').concat((0,O.getSR)().CrossColumnDetailValue,'</span>\n <input class="').concat(ct," ").concat(T,'" input-type="value" spellcheck="false" tabIndex="-1" readonly="readonly" maxlength="0" placeholder="').concat((0,O.getSR)().CrossColumnDetailValuePlaceHolder,"\" value='").concat(c,'\'></input>\n </div>\n <div class="gc-table-sheet-summary-item-formula">\n <span class="').concat(C,'">').concat((0,O.getSR)().CrossColumnDetailOver,'</span>\n <input class="').concat(ct," ").concat(T,'" input-type="over" spellcheck="false" tabIndex="-1" readonly="readonly" maxlength="0" value=\'').concat(a.over,"'></input>\n \x3c!--input class=\"").concat(w,'" input-type="over" spellcheck="false" tabIndex="-1" value=\'').concat(a.over||"","'></input--\x3e\n </div>\n <div class=\"").concat(p,'">\n <span class="').concat(C,'">').concat((0,O.getSR)().CrossColumnDetailCaption,'</span>\n <input class="').concat(T,'" input-type="header" spellcheck="false" tabIndex="-1" value=\'').concat(a.caption||"","' ").concat(l,'></input>\n </div>\n <div class="').concat(p,' gc-table-sheet-cross-column-value-caption">\n <span class="').concat(C,'"></span>\n <input name="showCrossValueHeader" class="').concat(st,' gc-table-sheet-cross-column-show-value-header" input-type="showCrossValueHeader" type="checkbox" value="" ').concat(r.showCrossValueHeader?"checked":""," ").concat(l,' />\n <span class="').concat(C,' gc-table-sheet-cross-column-value-caption-label">').concat((0,O.getSR)().CrossColumnDetailValueHeader,'</span>\n </div>\n <div class="').concat(p).concat(i,'">\n <span class="').concat(C,'">').concat((0,O.getSR)().CrossColumnDetailFilter,'</span>\n <input class="').concat(T,'" input-type="filter" spellcheck="false" tabIndex="-1" value=\'').concat(n&&a.filter||"","' ").concat(l,'></input>\n </div>\n <div class="gc-table-sheet-cross-column-attributes-list-container">\n <span class="').concat(C,'">').concat(n?(0,O.getSR)().CrossColumnDetailAttributes:(0,O.getSR)().CrossColumnDetailList,'</span>\n <ul class="').concat(y,'">\n ').concat(h,"\n </ul>\n </div>\n </div>")}return e},e.prototype.zgi=function(){return this.ZMi&&this.ZMi.querySelector(".".concat(ct))},e.prototype.WIi=function(t,e,n){for(var i,o,u,r,a,i=this,r=0;r<e.length;r++)0===(a=e[r]).level&&(a.name===t?o=r+1:N(o)||(u=r));return e.slice(o,u).map(function(t){var e=N(t.cross)&&(n.isLookupField(t.name)||n.isLookupField(t.fieldString));return{value:i.$t({value:t.name}),nIi:t.fieldString,textIndent:t.level+1,checkStatus:!1,yBt:e}})},e.prototype.WMi=function(){var t,e,n,n,f,t,e,n=this.vMi.getDataView(),n=n&&n.gLt,f=function(t,e,n,i,o){var u,r,a,c,s,l;if(t&&t.Pq){for(u=[],r=0,a=t.Pq;r<a.length;r++)(c=a[r]).targetTable?u.push(c):n.push({level:e,name:c.name,isLeafNode:!0,field:c,hostTable:t,index:n.length,fieldString:o.concat(c.name).join(".")});for(i.push(t.name),s=0,l=u;s<l.length;s++)(c=l[s]).targetTable&&-1===i.indexOf(c.targetTable.name)&&(n.push({level:e,name:c.name,fieldString:o.concat(c.name).join(".")}),o.push(c.name),f(c.targetTable,e+1,n,i,o),o.pop())}return n};return f(n,0,[],[],[])},e.prototype.xgi=function(){var m,n,i,o,t,e,u,r,a,c,m=this,o=m.pMi,t,e=function(t){var e=t.target,t=t.target.classList;t.contains(A)||(e=e.parentElement),t.contains(lt)&&m.Zgi(e)},r=function(t){var e,n,i,o,e=t.target,n=(0,k.GC$)(t.target),i=n.attr(z),o;t.target.classList.contains(A)||(e=e.parentElement,i=n.parent().attr(z)),!N(i)&&e.classList.contains(A)&&(u=m.LMi.getBoundingClientRect(),m.Ogi=e,m.Egi=e,m.mIi!==+i)&&(m.mIi=+i,m.Ggi(e))},a=function(t){var e,n,n,t,i,n,i,n,e=m.mIi,n=m.Ogi;!N(e)&&n&&(n=n.getAttribute("attribute-value"),m.AIi(t,n,u,m.LMi),n=!(m.Ti.style.cursor="move"),(i=(t=t.target).parentElement)&&-1<i.className.indexOf(A)?(t=i,n=!0):-1<t.className.indexOf(A)&&(n=!0),i=m.Egi,n)&&i!==t&&((n=t.getAttribute(z))<e?(i.className=i.className.replace(D,"").replace(j,"").trim(),t.className=t.className+" ".concat(D)):e<n?(i.className=i.className.replace(D,"").replace(j,"").trim(),t.className=t.className+" ".concat(j)):i.className=i.className.replace(D,"").replace(j,"").trim(),m.Egi=t)},c=function(t){var e,e,n,i,t,o,o,t,t,i,t,e=m.cIi,e=e&&e[m.NIi],n=e&&e.cross,i=m.mIi,t=t.target,o=m.Egi,o=o&&+(0,k.GC$)(o).attr(z);i!==Z&&m.Ogi&&o!==Z&&o!==i&&(m.Egi.className=m.Egi.className.replace(D,"").replace(j,"").trim(),m.zIi(t,m.OMi)&&("string"==typeof n&&(t=n,(n=yt(m.gIi(n))).jgi=t,e.cross=n),t=e.vgi.splice(i,1)[0],e.vgi.splice(o,0,t),m.mIi=+o,i=[],i=e.vgi.filter(function(t){return t.checked}).map(function(t){return t&&t.formatter?{formatter:t.formatter,value:t.attribute}:t.attribute}),n.attributes=i,n.vgi=e.vgi),m.Cgi(n,e.value))&&(m.dgi(),m.IIi()),m.Egi=Z,m.Ogi=Z,m.Ti.style.cursor="default",(t=m.SIi)&&(t.style.display="none")};m.pgi=function(t){var e,n,t,i,o,u,t,r,a,c,s,e,l,f,d,h,g,b,v,M,I,n=(0,k.GC$)(t.target),t=m.NIi,i,o=m.cIi[t],u=o&&o.cross,t=n.attr("input-type"),r=n.val().trim(),a=!1;if(u){switch(c=m.vMi.getDataView(),s=null!=(e=(0,k.RF)(c.LEt))?e:{},"string"==typeof u&&(e=u,(u=yt(m.gIi(u))).jgi=e,o.cross=u,o.vgi=u.vgi),t){case"name":""===r||(l=c.LEt.cross)&&l.hasOwnProperty(r)?u.bgi=!0:u.Tgi=!0,u.hgi=u.Zc,u.Zc=m.kgi(u,r),a=!0;break;case"name-select":u.hgi=u.Zc,u.Zc=r,a=u.bgi=!0;break;case"over":u.over=r,m.Ugi(r);break;case"header":u.caption=pt(r)?Z:r;break;case"filter":u.filter=r;break;case"showCrossValueHeader":s.showCrossValueHeader=!s.showCrossValueHeader;break;case"attributes":if(f=[],d=o.vgi,n.parent().parent()[0].querySelectorAll("li").forEach(function(t,e){var n,e,n,n=t.querySelector(".".concat(st));d[e].checked=n.checked,n.checked&&(e=(0,k.GC$)(n).attr("name"),n=(0,k.GC$)(t.querySelector('[input-type="attributes.formatter"]')).val(),N(n)||""===n?f.push(e):f.push({value:e,formatter:n}))}),0===f.length)return void n.prop("checked",!0);u.attributes=f;break;case"attributes.formatter":for(h=o.vgi,g=n.parent().parent().attr("attribute-value"),b=function(e){return jt(h,function(t){var t=t.attribute;return e===("string"==typeof t?t:t.value)})},v=0;v<u.attributes.length;v++)(M=u.attributes[v])!==g&&M.value!==g||("string"==typeof M?(I=b(M),h[I].attribute=u.attributes[v]={value:M,formatter:r}):(I=b(M.value),u.attributes[v].formatter=r,h[I].attribute=u.attributes[v]))}m.Cgi(u,o.value)&&m.dgi(!1,s),a&&m.IIi()}},m.Bgi=e,m.Qgi=r,m.Rgi=a,m.Pgi=c,(0,k.GC$)(".".concat(x)).bind("change",m.pgi),(0,k.GC$)(".".concat(y)).bind("click",m.Bgi),(0,k.GC$)(".".concat(y)).bind("mousedown",m.Qgi).bind("mousemove",m.Rgi),document.addEventListener("mouseup",m.Pgi),(0,k.GC$)(".".concat(ft)).bind("focus",function(t){var t=t.target,e=(0,k.GC$)(t).val()||"=";(n=new P.FormulaTextBox(t,g,g)).Ngi=!0,i=new k.Workbook(o,{allowDynamicArray:!0,allowUndo:!1}),m.XMi(i),m.lgi(i),n.workbook(i),n.text(e)}).bind("blur",function(t){var t=(0,k.GC$)(t.target),e;"="===t.val()&&t.val(""),m.ggi(n,i)}).bind("keydown",function(t){13===t.keyCode&&(m.ggi(n,i),t.target.blur())})},e.prototype.Lgi=function(){var t=this;t.ZMi&&(t.pgi&&(0,k.GC$)(".".concat(x)).unbind("change"),t.Bgi&&(0,k.GC$)(".".concat(y)).unbind("click"),t.Qgi&&(0,k.GC$)(".".concat(y)).unbind("mousedown").unbind("mousemove"),t.Pgi&&document.removeEventListener("mouseup",t.Pgi),(0,k.GC$)(".".concat(ft)).unbind("focus").unbind("blur").unbind("keydown"))},e.prototype.eIi=function(){return this.vMi.getDataView()},e.prototype.mLt=function(t){var e=this;return e.eIi().mLt(e.oIi,t)},e.prototype.Cgi=function(t,e){var n,i=this.eIi();return t&&t.over&&e&&(i.isLookupListField(t.over)||t.attributes&&0<t.attributes.length)},e.prototype.lIi=function(){return(0,k.RF)(this.eIi().ILt.filter(function(t){return!N(t.cross)}))},e.prototype.gIi=function(t){var e,n,i,i,e;return"string"==typeof t&&(n=t,(i=this.eIi()).LEt.cross)&&((i=i.LEt.cross[n]||{}).Zc=n,t=i),t},e.prototype.kgi=function(t,e){var n,i,e,i,n=this,i=n.eIi(),e=e;return i.LEt.cross&&(i=i.LEt.cross[e])&&i.over!==n.gIi(t).over?e+"1":e},e.prototype.Zgi=function(t){var e,n,e=t.className,n=t.querySelector(".gc-table-sheet-cross-column-attributes-formatter");-1<e.indexOf(dt)?(t.className=t.className.replace(dt,""),n.className+=" "+S):(t.className+=" ".concat(dt),n.className=n.className.replace(S,""),setTimeout(function(){n.querySelector("input").focus()}))},e.prototype.Ggi=function(t){var e,n,i,o,u,e,n,i=this.ZMi.querySelectorAll(".".concat(A));for(o in i)i.hasOwnProperty(o)&&((u=i[o]).className=u.className.replace("selected","").trim(),u===t)&&(u.className=u.className+" selected")},e.prototype.Ugi=function(t){var e,t,e=this,t=e.Sgi(t);e.cIi[e.NIi].cross.attributes=t,e.mIi=0,e.IIi()},e.prototype.Sgi=function(t){var e,t,n,i,o,u,t,r,a,c,s,c,l,f,d,e=this,t=e.Ygi(t),n=[];if(t&&t.hostTable&&t.field&&(u="",o=(i=t.hostTable).tBt(t.field.name))&&o.Pq){for(t=o.Pq,r=e.YMi,a=0;a<r.length;a++)s="",(c=(s=(c=r[a]).hostTable===o?c.fieldString!==Z?c.fieldString:c.fieldString=e.wgi(a):s)&&s.split("."))&&1<c.length&&(u=(c=c.slice(0,c.length-1)).join(".")+".");for(l=0,f=t;l<f.length;l++)(d=f[l]).targetTable||n.push(u+d.name)}return n},e.prototype.Ygi=function(t){var e,n,t,i,o;if(t)return n=this.YMi,t=t.split("."),i=t.length-1,o=t[i],n.filter(function(t){return t.name===o&&t.level===i})[0]},e.prototype.attach=function(t){this.Ti&&t&&(((this.vMi=t).UMi=this).mMi&&this.Hc(t,this.mMi),this.updatePanelLayout())},e.prototype.detach=function(){var t,e,t=this;t.vMi&&(t.vMi.UMi=g,t.vMi.unbind(n),t.vMi=g,document.removeEventListener("mousemove",t.bIi,!0),document.removeEventListener("mouseup",t.vIi,!0),(0,k.GC$)(".".concat(ut)).unbind("click"),t.SWt(),t.XIi(),t.Lgi(),t.tgi(),t.mMi&&(t.mMi.removeEventListener("mousedown",t.DIi,!0),e=(0,k.GC$)(t.mMi).data("workbook"))&&(this.BMi=null,e.getSheet(0).unbind(n),e.destroy()),t.JMi&&(r.clearTimeout(t.JMi),t.JMi=0),t.cIi=Z,t.oIi=Z,t.YMi=Z,t.Dgi=Z,t.uIi=Z,t.NIi=Z,t.AMi=!0,t.sIi(!1),t.MIi(!0))},e.prototype.destroy=function(){var t,e;this.detach(),t=this.Ti,(0,k.GC$)(t).data(u,g),(e=this.SIi)&&e.parentElement&&(e.parentElement.removeChild(e),this.SIi=void 0),t&&(t.innerHTML=""),this.Ti=g},e.findControl=function(t){var e=t;return"string"==typeof t&&(e=document.getElementById(t)),(0,k.GC$)(e).data(u)},M.TableSheetPanel=e},"./dist/plugins/tableSheet/tableSheet-row-action.js":function(Z,t,e){var n,i,o,D,l,e,o,j,d,s,u,r,a,g,U,c,e,f;function h(t){return"number"==typeof t}function b(t){return"string"==typeof t}function v(t){return t instanceof Function}function M(t){return"object"==typeof t&&!j(t)}function I(t){return t instanceof Array}function m(t){return"boolean"==typeof t}function N(t){return b(t)?"ROWACTION_".concat(t):t}function C(t,e){var n=f.call(this)||this;return n.Wgi=[],n.MU=t,n.DJ=e,n}function w(t,e){M(e)?(t.imageType=e.imageType,t.imageSrc=e.imageSrc,t.imageSize=e.imageSize):(t.imageType=s,t.imageSrc=s,t.imageSize=s)}function p(t,e,n,i,o,u,r){var t=S(t,e,n,i,r);if(!j(t))return o[u]=new D.Rect(t.x,t.y,t.width,t.height),o[u].offsetX=t.x-r.x,o[u].offsetY=t.y-r.y,o[u]}function x(t,e,n,i,o,u){y(t,e.x,e.y,e.width,e.height,n,i,o,u)}function y(t,e,n,i,o,u,r,a,c){t.save(),t.rect(e,n,i,o),t.clip(),t.beginPath();var s=k(u,a.row);s&&A(t,u,e,n,i,o,s,a,c,l.middleCenter),t.restore()}function A(t,e,n,i,o,u,r,a,c,s){var a,l,a,n,i,o,f,u,s,n,d,e,h;t.save(),t.rect(n,i,o,u),t.clip(),t.beginPath(),(l=(a=a.sheet).BO()).getState(r)?l.qh(r)&&(a=a.zoom(),n=new D.Rect(n,i,o,u),i=L(e),o=R(e),u=T(s,n,f=new D.Rect(0,0,i*a,o*a)),n=(s=l.getImage(r)).width,d=s.height,D.mt.Tt.msie&&e.imageType&&(d=e.imageType===D.ButtonImageType.custom?(g[r]||(s.style.position="absolute",s.style.left="-10000px",s.style.top="-100000px",document.body.appendChild(s),g[r]={width:s.width,height:s.height},document.body.removeChild(s)),n=g[r].width,g[r].height):n=12),c&&D.mt.Tt.msie&&u.x+u.width>c.x+c.width?0<(e=c.x+c.width-u.x)&&t.drawImage(s,0,0,e*(h=n/(i*a)),d,u.x,u.y,e,o*a):t.drawImage(s,0,0,n,d,u.x,u.y,i*a,o*a)):l.addImage(r,"anonymous"),t.restore()}function T(t,e,n){var i=Math.max(0,(e.width-n.width)/2),o=Math.max(0,(e.height-n.height)/2);return t===l.leftCenter&&(i=0),new D.Rect(e.x+i,e.y+o,Math.min(n.width,e.width),Math.min(n.height,e.height))}function S(t,e,n,i,o){if(!(t+n<o.x||t>o.x+o.width||e+i<o.y||e>o.y+o.height))return t+n>o.x+o.width&&(n=o.x+o.width-t),e+i>o.y+o.height&&(i=o.y+o.height-e),t<o.x&&(t=o.x),e<o.y&&(e=o.y),new D.Rect(t,e,n,i)}function z(t,e){return h(t)?{imageType:t}:b(t)?{imageType:D.ButtonImageType.custom,imageSrc:t,imageSize:G(e)}:s}function G(t){return h(t)?{width:t,height:t}:t}function B(t,e,n,i){var n,o;return void 0===i&&(i=!0),n=n.sheet.zoom(),j(t.width)?o=L(t):(o=u(1,t.width),isNaN(o)&&(o=1)),i?o*n:o}function L(t){var e;return e=(e=t.imageSize&&("string"==typeof t.imageSize.width&&(e=r(t.imageSize.width)),"number"==typeof t.imageSize.width)?t.imageSize.width:e)===d||isNaN(e)||e<0?12:e}function R(t){var e;return e=(e=t.imageSize&&("string"==typeof t.imageSize.height&&(e=r(t.imageSize.height)),"number"==typeof t.imageSize.height)?t.imageSize.height:e)===d||isNaN(e)||e<0?12:e}function O(t,e,n,i,o){var u=t.Ut.getValueForKey(e,n,a,i);return j(u)&&P(t,e,n,i,u={layout:{}}),u}function P(t,e,n,i,o){t.Ut.setValueForKey(e,n,a,o,i)}function Q(t,e,n,i,o){var u;delete O(e,n,i,o).layout[t]}function Y(t,e,n){for(var i,o,u,i=e.BO(),o=0;o<t.length;o++)b(u=k(t[o].option,n))&&i.addImage(u,"anonymous")}function k(t,e){var n,i,e,o,n=null,i=t.imageType;if(j(t.imageType))return null;switch(o=(e=E(t.enabled,e))||j(e),i){case D.ButtonImageType.dropdown:n=o?"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTJweCIgaGVpZ2h0PSIxMnB4IiB2aWV3Qm94PSIwIDAgMTIgMTIiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8IS0tIEdlbmVyYXRvcjogU2tldGNoIDU1ICg3ODA3NikgLSBodHRwczovL3NrZXRjaGFwcC5jb20gLS0+CiAgICA8dGl0bGU+ZHJvcGRvd248L3RpdGxlPgogICAgPGRlc2M+Q3JlYXRlZCB3aXRoIFNrZXRjaC48L2Rlc2M+CiAgICA8ZyBpZD0iZHJvcGRvd24iIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxwb2x5Z29uIGZpbGw9IiM2RTZFNkUiIHBvaW50cz0iMyA0IDEwIDQgNi41IDkiPjwvcG9seWdvbj4KICAgIDwvZz4KPC9zdmc+":"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTJweCIgaGVpZ2h0PSIxMnB4IiB2aWV3Qm94PSIwIDAgMTIgMTIiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3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DI9IjEwcHgiIHkyPSI2cHgiIHN0eWxlPSJzdHJva2U6ICM2ZTZlNmU7IHN0cm9rZS13aWR0aDoxcHg7Ii8+CiAgICAgICAgPGxpbmUgeDE9IjZweCIgeTE9IjJweCIgeDI9IjZweCIgeTI9IjEwcHgiIHN0eWxlPSJzdHJva2U6ICM2ZTZlNmU7IHN0cm9rZS13aWR0aDoxcHg7Ii8+CiAgICA8L3N2Zz4=":"data:image/svg+xml;PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGlkPSJleHBhbmQiIHdpZHRoPSIxMnB4IiBoZWlnaHQ9IjEycHgiPgogICAgICAgIDxyZWN0IHg9IjAiIHk9IjAiIHdpZHRoPSIxMnB4IiBoZWlnaHQ9IjEycHgiIHJ4PSI0cHgiIHJ5PSI0cHgiIHN0eWxlPSJzdHJva2U6ICNjYWNhY2E7IHN0cm9rZS13aWR0aDoxcHg7IGZpbGw6IG5vbmU7Ii8+CiAgICAgICAgPGxpbmUgeDE9IjJweCIgeTE9IjZweCIgeDI9IjEwcHgiIHkyPSI2cHgiIHN0eWxlPSJzdHJva2U6ICNjYWNhY2E7IHN0cm9rZS13aWR0aDoxcHg7Ii8+CiAgICAgICAgPGxpbmUgeDE9IjZweCIgeTE9IjJweCIgeDI9IjZweCIgeTI9IjEwcHgiIHN0eWxlPSJzdHJva2U6ICNjYWNhY2E7IHN0cm9rZS13aWR0aDoxcHg7Ii8+CiAgICA8L3N2Zz4=";break;case D.ButtonImageType.custom:n=t.imageSrc}return n}function E(t,e){return"function"==typeof t?t(e):t}n=this&&this.__extends||(c=function(t,e){return(c=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}c(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,n,i,o,n=1,i=arguments.length;n<i;n++)for(o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},Object.defineProperty(t,"__esModule",{value:!0}),t.paintImage=t.RowAction=t.ImagePosition=void 0,o=e("Common"),D=e("Core"),(e=l=t.ImagePosition||(t.ImagePosition={}))[e.leftTop=0]="leftTop",e[e.leftCenter=1]="leftCenter",e[e.leftBottom=2]="leftBottom",e[e.middleTop=3]="middleTop",e[e.middleCenter=4]="middleCenter",e[e.middleBottom=5]="middleBottom",e[e.rightTop=6]="rightTop",e[e.rightCenter=7]="rightCenter",e[e.rightBottom=8]="rightBottom",e=o.Common.lt,o=D.CellTypes.RowHeader,j=e.ht,d=null,s=void 0,u=Math.max,r=parseInt,a="rowActionParam",g={},n(C,f=o),C.prototype.toJSON=function(){var t=f.prototype.toJSON.call(this);return delete t.MU,delete t.Wgi,delete t.DJ,t},C.prototype.build=function(t){this.Wgi=this.Hgi(t)},C.prototype.t4i=function(t,e){return t.NMi.n4i(e)?this.Wgi:[]},C.prototype.Hgi=function(n){var t=this,e=t.MU,t=t.MU.subActionOptions;return n=I(n.subActionOptions)?n.subActionOptions:[n],(I(t)?t:[e]).map(function(t,e){return i({rowActionOption:t,command:N(t.command),visible:!0},n[e])})},C.prototype.Vgi=function(t,e){var n=-1;return m(t)?1===e.length?n=t?0:-1:1<e.length&&(n=t?1:0):h(t)&&(n=t),n},C.prototype.Fgi=function(t,e){var n,n,i,o,t,u,r,a,c,n=t.icons,n=void 0===n?[]:n,i=t.iconSelector,o=t.BTi,t=t.iconSize,u=this,r=u.DJ,a,c;return z(n[u.Vgi(i?i(r.getDataItem(e),e,r):!o||o(s,e,r),n)],t)},C.prototype.Jgi=function(t){for(var e,n,i,o,u,r,a,c,s,l,l,e=this,n=t.sheet,i=t.row,o=t.col,u=t.sheetArea,r=e.t4i(n,i),a=[],c=0;c<r.length;c++)l=(s=r[c]).visible,!(j(l)||v(l)&&l(i)||m(l)&&l)||(l=e.Fgi(s.rowActionOption,i),j(l))?Q(c,n,i,o,u):(a.push({index:c,width:0,option:s}),w(s,l));return a},C.prototype.Xgi=function(t,e,n,i){for(var o,u,r,o=0,u=0;u<t.length;u++)r=B(t[u].option,n,i),o+=t[u].width=r;return e/2-o/2},C.prototype.Kgi=function(t,e,n,i,o,u,r,a){var c,s,l,f,d,h,g,b,v,M,I,m,N,c=this,s=a.sheet,l=a.row,f=a.col,d=a.sheetArea,h=new D.Rect(n,i,o,u),g=c.Jgi(a);if(0<g.length){for(Y(g,s,l),t.save(),t.rect(h.x,h.y,h.width,h.height),t.clip(),t.beginPath(),b=h.x+c.Xgi(g,h.width,r,a),M=(v=O(s,l,f,d)).layout,I=0;I<g.length;I++)m=g[I],N=p(b,h.y,m.width,h.height,M,m.index,h),j(N)||(x(t,N,m.option,r,a,v),b+=N.width);t.restore()}},C.prototype.paint=function(t,e,n,i,o,u,r,a){t&&(f.prototype.paint.call(this,t,e,n,i,o,u,r,a),this.Kgi(t,e,n,i,o,u,r,a))},C.prototype.getHitInfo=function(t,e,n,i,o){var u,r,a,t,e,r,c,s,l,f,d,h,g,u=o.row,r=o.col,a=o.sheet,t={x:t,y:e,row:u,col:r,cellRect:i,cellStyle:n,sheetArea:o.sheetArea,sheet:o.sheet,context:o,isRowAction:!0},e=O(a,t.row,t.col,t.sheetArea,!0),r=this.t4i(a,u);if(!e||0===r.length)return null;for(d in c=e.layout,s=-1,l=t.x,f=t.y,c)if(c.hasOwnProperty(d)&&(h=void 0,g=c[d],h=new D.Rect(i.x+g.offsetX,i.y+g.offsetY,g.width,g.height))&&h.contains(l,f)){s=+d;break}return-1!==s&&(t.actionHitInfo={index:s,option:r[s]}),t},C.prototype.processMouseUp=function(t){var e,n,i,o,u,r,a,a,c,s,l,f,a,c,s;return!(!t||(e=t.sheet,n=t.row,i=t.col,o=t.cellRect,u=t.sheetArea,r=t.actionHitInfo,a=1<(a=e.getSelections()).length||1===a.length&&1<a[0].rowCount,c=t.isShift,s=t.isCtrl,c)||s||a||!(n===e.ui&&i===e.ci||u!==D.SheetArea.rowHeader||e.endEdit())||(c=(l=this).MU,a=j(r)?(f=N(c.command),!0):(f=(s=r.option).command,E(s.enabled,n)),!e)||j(f)||!a&&!j(a)||(e.getActiveRowIndex()===n&&e.getActiveColumnIndex()===i||e.eR(n,-1,1,-1,2),b(f)?e.getParent().commandManager().execute({cmd:f,row:n,col:i,sheetName:e.name(),sheetArea:u}):v(f)&&f.call(d,e,n,i,u),t.isReservedLocation=!0,e.repaint(o),0))},C.prototype.processMouseMove=function(t){var e,n,i,o,u,t,i,r,i,a,c;return!(!t||(n=t.sheet,i=t.row,o=t.col,u=t.sheetArea,t=t.actionHitInfo,r=(e=this).MU,i=n.Ut.Ci(i,o,u),a=n.Ut.Ci(-1,o,u),b(i))||(i=(j(t)?r:(c=t.option).rowActionOption).tooltip,!n)||i===a||(n.Ut.$n(-1,o,i,u),0))},t.RowAction=C,t.paintImage=A},"./dist/plugins/tableSheet/tableSheet-status-bar.js":function(Z,t,e){var n,i,o,u,e,r,s,a,c,l,f,d,h,g,b,v,M,I,m,N,r,D,j,C,w,p,x,y,A,T;function U(t){return t&&t._gi===o.SheetType.tableSheet}function G(t){return t&&t._gi===o.SheetType.ganttSheet}function S(t){var t=t.getActiveSheetTab();if(U(t)||G(t))return t}function z(t){return t.b3t}function B(t,e){return(-1===t.row||-1===e.row||e.row<t.row+t.rowCount&&t.row<e.row+e.rowCount)&&(-1===t.col||-1===e.col||e.col<t.col+t.colCount&&t.col<e.col+e.colCount)}function L(t,e,n,i){return{row:t,col:e,rowCount:n,colCount:i}}function R(t,e){var n,i,o,t,n=a(t.row,e.row),i=a(t.col,e.col),o=c(t.row+t.rowCount-1,e.row+e.rowCount-1),t=c(t.col+t.colCount-1,e.col+e.colCount-1);return 0<=n&&0<=i?L(n,i,o-n+1,t-i+1):0<=n?L(n,-1,o-n+1,-1):0<=i?L(-1,i,-1,t-i+1):L(-1,-1,-1,-1)}function P(t){for(var e,n,i,o,e=[],i=0;i<t.length;i++){for(n=t[i],o=0;o<t.length;o++)n!==t[o]&&B(n,t[o])&&(n=R(n,t[o]),i=o);e.push(n)}return e}function Q(t){var e,n,i,n=0;for(t.sort(function(t,e){return t.row-e.row}),e=P(t),i=0;i<e.length;i++)n+=e[i].rowCount;return n}function O(){var t,e,t=T.call(this,j)||this;return t.c3t=": ",t.s3t=f+t.name,e=D().StatusBarRowCount,t.menuContent=e,t.vit=e,t.align=p,t.tipText=D().StatusBarToolTipRowCount,t.visible=!0,t.e4t=C,t.i4t=w,t}function Y(t){var e,t,n,e=z(t),t=S(t);s(e)||(s(t)?e.qgi&&(e.qgi=!1,E(e)):(n=t.qgi,e.qgi!==t.qgi&&((n?k:E)(e),e.qgi=n)))}function W(t,e){var e=e.hitTestType,n=0===e,i=1===e,o=2===e,e=3===e;s(t)||(s(t.$gi)&&H(t),!n&&!o||t.qgi?(e||i)&&t.qgi&&(t.qgi=!1,E(t)):(t.qgi=!0,k(t)),t.DJ.getActiveSheetTab().qgi=t.qgi)}function H(t){for(var e,n,i,o,u,r,a,e=t.all(),n=[],i=0;i<e.length;i++)for(o=e[i],u=0;u<I.length;u++)o.name===I[u]&&n.push({pos:i,item:o});for(t.$gi=n,r=[],i=0;i<x.length;i++)a=V(x[i]),r.push(a);t.iNi=r}function k(t){for(var e,n,i,o,e=0;e<I.length;e++)t.remove(I[e]);if(n=t.$gi&&0<t.$gi.length?t.$gi[0].pos:0,i=t.iNi)for(e=0;e<i.length;e++)o=i[e],t.add(o,e+n)}function E(t){for(var e,n,i,e=0;e<x.length;e++)t.remove(x[e]);if(n=t.$gi)for(e=0;e<n.length;e++)i=n[e],t.add(i.item,i.pos)}function V(t){if(t===j)return new y}n=this&&this.__extends||(A=function(t,e){return(A=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}A(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),Object.defineProperty(t,"__esModule",{value:!0}),t.processStatusBarOnMouseDown=t.updateStatusBarOnActiveSheetChanged=void 0,i=e("Common"),o=e("Core"),u=e("StatusBar"),e=e("./dist/plugins/tableSheet/tablesheet-override.js"),r=i.Common.lt,s=r.ht,a=Math.min,c=Math.max,l=null,f=".statusbar",I=[d="average",h="count",g="numericalCount",b="min",v="max",M="sum"],m="none",N="inline-block",r=new i.Common.ResourceManager(e.SR,"TableSheet"),D=r.getResource.bind(r),C="menuRowCount",w="tooltipRowCount",p="right",x=[j="rowCount"],T=u.StatusItem,n(O,T),O.prototype.Zji=function(){return S(this.DJ)},O.prototype.nNi=function(){return z(this.DJ)},O.prototype.onBind=function(t){var n=this;(n.DJ=t).bind(o.Events.SelectionChanging+n.s3t,function(t,e){n.x3t(e)}),t.bind(o.Events.SelectionChanged+n.s3t,function(t,e){n.x3t(e)}),t.bind(o.Events.ActiveSheetChanged+n.s3t,function(){n.onUpdate()})},O.prototype.x3t=function(t){var e,t=t.newSelections;this.eNi(t)},O.prototype.eNi=function(t){var e,n,n,i,o,u,r,a,c,n,e=this,n=e.Zji();if(n&&(n=n.getDataView(),i=0,o=l,u=!1,r=[],!s(n))){for(i=n.getColumnInfos().length,a=0;a<t.length;a++){if(-1===(c=t[a]).col&&-1===c.row){u=!0;break}-1===c.row||-1!==c.colCount&&c.colCount!==i||r.push(c)}u?o=n.visibleLength():0<(n=Q(r))&&(o=n),e.A3t(o)}},O.prototype.E3t=function(t){this.u3t&&(this.u3t.style.display=t?N:m)},O.prototype.A3t=function(t){var e=this.c3t,n=this.I3t,i=this.vit,o=this.visible,u=!1;this.value=t,n.innerText=i+e+t,!s(t)&&o&&(u=!0),this.E3t(u)},O.prototype.onUpdate=function(){T.prototype.onUpdate.call(this);var t=this,e=t.Zji();s(e)||t.eNi(e.Mf.getSelections())},O.prototype.FM=function(t){var e,t;t&&(e=t.menuContent,t=t.tipText,this.menuContent=e,this.vit=e,this.tipText=t,this.u3t.title=t)},O.prototype.onUnbind=function(){var t=this.DJ,e=this.s3t;t&&(t.unbind(o.Events.SelectionChanging+e),t.unbind(o.Events.SelectionChanged+e),t.unbind(o.Events.ActiveSheetChanged+e),this.DJ=l)},y=O,t.updateStatusBarOnActiveSheetChanged=Y,t.processStatusBarOnMouseDown=W},"./dist/plugins/tableSheet/tableSheet-theme.js":function(t,e,n){var i,u,r,o,e,n,a,c,s,l,f,d,h,g;function b(t,e){return void 0===e&&(e=i.LineStyle.thin),new i.LineBorder(t,e)}function v(t,e,n,i){var o=new u.TableTheme;return o.name(t),o.headerRowStyle(new u.TableStyle(e.backColor,e.foreColor,e.font,r,r,e.borderRight,e.borderBottom)),o.wholeTableStyle(new u.TableStyle(n.backColor,n.foreColor,r,r,r,n.borderRight,n.borderBottom)),i&&i.backColor&&o.firstRowStripStyle(new u.TableStyle(i.backColor)),o}Object.defineProperty(e,"__esModule",{value:!0}),i=n("Core"),u=n("Tables"),r=void 0,e="#808080",n="transparent",a="#E6E4F6",c="#92A5A8",s="#66D1C7",l="black",f="#EBEBEB",d="#FFFFFF",h="bold 11pt Calibri",(g=[v("professional1",{backColor:"#6A76D4",foreColor:o="#F2F2F2",borderRight:b("#6A76D4"),font:h},{foreColor:e,borderRight:b(n),borderBottom:b(a)},r),v("professional2",{backColor:c,foreColor:o,font:h},{foreColor:e,borderRight:b(c),borderBottom:b(n)},r),v("professional3",{backColor:s,foreColor:o,borderRight:b(s),font:h},{foreColor:e,borderRight:b(n),borderBottom:b(s)},r),v("professional4",{backColor:"#36495E",foreColor:o,borderRight:b("#36495E"),font:h},{foreColor:e},{backColor:"#F1F1F1"}),v("professional5",{backColor:"#2F7A84",foreColor:o,borderRight:b("#2F7A84"),font:h},{foreColor:e},{backColor:"#DAF1F3"}),v("professional6",{backColor:"#FFED88",foreColor:l,font:"bold 11pt Arial",borderRight:b("#FFED88")},{foreColor:l,borderRight:b(n),borderBottom:b(n)},r),v("professional7",{backColor:"#9EB09F",foreColor:o,borderRight:b("#9EB09F"),font:h},{foreColor:e,borderRight:b(n),borderBottom:b(a)},r),v("professional8",{backColor:"#362F4A",foreColor:o,borderRight:b("#362F4A"),font:h},{foreColor:e,borderRight:b(n)},{backColor:"#F6F6F6"}),v("professional9",{backColor:"#EB6051",foreColor:o,borderRight:b("#EB6051"),font:h},{foreColor:e,borderRight:b(n)},{backColor:f}),v("professional10",{backColor:"#26AE60",foreColor:o,borderRight:b("#26AE60"),font:h},{foreColor:e,borderRight:b(n)},{backColor:f}),v("professional11",{backColor:"#2882BA",foreColor:o,borderRight:b("#2882BA"),font:h},{foreColor:e,borderRight:b(n)},{backColor:f}),v("professional12",{backColor:"#555F8D",foreColor:o,borderRight:b("#555F8D"),font:h},{foreColor:e},{backColor:"#9EB6C4"}),v("professional13",{backColor:"#54618F",foreColor:o,borderRight:b("#54618F"),font:h},{backColor:"#7591AB",foreColor:d},r),v("professional14",{backColor:d,foreColor:"#5660B9",borderBottom:b("#A1A5CA",i.LineStyle.thick),borderRight:b(d),font:h},{backColor:d,foreColor:"#595959"},{backColor:" #F8F8FD"}),v("professional15",{backColor:"#E6ECF2",foreColor:"#404040",borderRight:b("#E6ECF2"),font:h},{foreColor:e,borderRight:b(n),borderBottom:b("#E6ECF2")},r),v("professional16",{backColor:"#475E86",foreColor:"#67C3F7",borderRight:b("#475E86"),font:h},{backColor:"#2A395A",foreColor:"#D0CECE"},r),v("professional17",{backColor:"#5165F8",foreColor:o,borderRight:b("#5165F8"),font:h},{backColor:d,foreColor:"#595959"},{backColor:"#F3F4FC"}),v("professional18",{backColor:"#F6F8FA",foreColor:"#404040",borderRight:b("#F6F8FA"),font:h},{backColor:d,foreColor:"#757171"},r),v("professional19",{backColor:d,foreColor:e,borderBottom:b("#83ACF6",i.LineStyle.thick),borderRight:b(d),font:h},{backColor:d,foreColor:e,borderBottom:b("#D9E1F2")},r),v("professional20",{backColor:d,foreColor:"#3565F6",borderBottom:b("#3565F6",i.LineStyle.thick),borderRight:b(d),font:h},{backColor:"#FCFDFF",foreColor:"#757171",borderRight:b(d,i.LineStyle.thick),borderBottom:b(d,i.LineStyle.thick)},{backColor:"#F6F8FA"}),v("professional21",{backColor:"#FCFDFF",foreColor:"#404040",borderBottom:b("#ACB9CA",i.LineStyle.thick),borderRight:b("#D6DCE4",i.LineStyle.dashed),font:h},{backColor:"#FCFDFF",foreColor:"#595959",borderBottom:b("#E5E9F0"),borderRight:b("#E5E9F0",i.LineStyle.dashed)},r),v("professional22",{backColor:"#222B35",foreColor:d,borderBottom:b("#08D4FF",i.LineStyle.thick),borderRight:b("#222B35"),font:h},{backColor:"#213551",foreColor:d},{backColor:"#3C5679"}),v("professional23",{backColor:"#213551",foreColor:d,borderBottom:b("#13E86C",i.LineStyle.thick),borderRight:b("#D6DCE4"),font:h},{backColor:"#F4F7F9",foreColor:"#213551",borderRight:b("#D6DCE4")},{backColor:d}),v("professional24",{backColor:"#1D1E1F",foreColor:"#E7E6E6",borderBottom:b("#13E86C",i.LineStyle.thick),borderRight:b("#606060"),font:h},{backColor:"#404142",foreColor:d,borderRight:b("#606060")},{backColor:"#4F4F50"})]).forEach(function(t){u.TableThemes[t.name()]=t})},"./dist/plugins/tableSheet/tableSheet-undo.js":function(t,e,n){var i,s,l,o,u,r,n,a,f,d,c,o,n;function h(t){return(null==t?void 0:t.sourceType)===d.Combo}function g(t,e,n,i){return{sheet:t,sheetName:t.name(),col:e,filterValues:n,conditionInfo:n&&0===n.length&&i?i.toJSON():void 0}}function b(t){this.host=t,this.G8=[],this.P8=0,this.Oze=0,this.kze=[]}i=this&&this.__awaiter||function(t,r,n,a){function c(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n=n||Promise)(function(e,n){function i(t){try{u(a.next(t))}catch(t){n(t)}}function o(t){try{u(a.throw(t))}catch(t){n(t)}}function u(t){t.done?e(t.value):c(t.value).then(i,o)}u((a=a.apply(t,r||[])).next())})},s=this&&this.__generator||function(t,n){var i={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]},o,u,r,a,a={next:e(0),throw:e(1),return:e(2)};return"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function e(e){return function(t){return c([e,t])}}function c(e){if(o)throw new TypeError("Generator is already executing.");for(;i=a&&e[a=0]?0:i;)try{if(o=1,u&&(r=2&e[0]?u.return:e[0]?u.throw||((r=u.return)&&r.call(u),0):u.next)&&!(r=r.call(u,e[1])).done)return r;switch(u=0,(e=r?[2&e[0],r.value]:e)[0]){case 0:case 1:r=e;break;case 4:return i.label++,{value:e[1],done:!1};case 5:i.label++,u=e[1],e=[0];continue;case 7:e=i.ops.pop(),i.trys.pop();continue;default:if(!(r=0<(r=i.trys).length&&r[r.length-1])&&(6===e[0]||2===e[0])){i=0;continue}if(3===e[0]&&(!r||e[1]>r[0]&&e[1]<r[3]))i.label=e[1];else if(6===e[0]&&i.label<r[1])i.label=r[1],r=e;else{if(!(r&&i.label<r[2])){r[2]&&i.ops.pop(),i.trys.pop();continue}i.label=r[2],i.ops.push(e)}}e=n.call(t,i)}catch(t){e=[6,t],u=0}finally{o=r=0}if(5&e[0])throw e[1];return{value:e[0]?e[1]:void 0,done:!0}}},l=this&&this.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var i=0,o=e.length,u;i<o;i++)!u&&i in e||((u=u||Array.prototype.slice.call(e,0,i))[i]=e[i]);return t.concat(u||Array.prototype.slice.call(e))},Object.defineProperty(e,"__esModule",{value:!0}),e.UndoHelper=e.TableSheetUndoSourceType=e.TableSheetUndoType=void 0,o=n("Common"),u=n("Core"),r=void 0,n=o.Common.lt,a=n.ht,(o=f=e.TableSheetUndoType||(e.TableSheetUndoType={})).RowAction="rowAction",o.GroupOptions="groupOptions",o.GroupOutlinePosition="groupOutlinePosition",o.ExpandGroupByLevel="expandGroupBylevel",o.ExpandGroupItem="expandGroupItem",o.OptionChanged="optionChanged",o.ThemeChanged="themeChanged",o.PinnedRowsChanged="pinnedRowsChanged",o.PinnedColumnsChanged="pinnedColumnsChanged",o.DefaultRowHeightChanged="defaultRowHeightChanged",o.ApplyFreeHeaderChanged="applyFreeHeaderChanged",o.ResetViewChanged="resetViewChanged",o.UpdateFilterOnMoved="updateFilterOnMoved",o.FilterColumn="filterColumn",o.SetFilterItemMap="setFilterItemMap",o.RemoveCrosRowFilterInfo="removeCrosRowFilterInfo",o.RemoveRow="removeRow",o.SetDataView="setDataView",o.RemoveColumns="removeColumns",o.AddColumns="addColumns",o.ResetGroupOutline="resetGroupOutline",o.SortMapChanged="sortMapChanged",o.StoreTreeData="storeTreeData",o.ApplyTreeData="applyTreeData",o.ChangeCollapse="changeCollapse",(n=d=e.TableSheetUndoSourceType||(e.TableSheetUndoSourceType={}))[n.TableSheet=1]="TableSheet",n[n.DataManager=2]="DataManager",n[n.Combo=3]="Combo",b.prototype.startTransaction=function(){var t;this.P8++,null!=(t=this.view)&&t.VAe()},b.prototype.endTransaction=function(){var t,t;return this.P8=Math.max(this.P8-1,0),null!=(t=this.view)&&t.zAe(),0===this.P8?(t=this.getUndoChanges(),this.Eze(),t):[]},b.prototype.startAddComboChanges=function(){var t={sourceType:d.Combo,changes:[]};this.Zze(t),this.kze.push(t),this.Oze++},b.prototype.endAddComboChanges=function(){this.Oze=Math.max(this.Oze-1,0),this.kze.pop()},b.prototype.addUndoChanges=function(t){this.lM()&&(this.Uze(),this.Zze({sourceType:d.TableSheet,changeData:t}))},b.prototype.getUndoChanges=function(){return this.Uze(),this.G8},b.prototype.undo=function(r,a){var c;return void 0===a&&(a=!0),i(this,void 0,void 0,function(){var e,n,i,o,u,u;return s(this,function(t){switch(t.label){case 0:this.host.suspendPaint(),e=a?l([],r,!0).reverse():l([],r,!0),n=!0,i=0,t.label=1;case 1:return i<e.length?(o=e[i]).sourceType!==d.DataManager?[3,4]:(u=null==(c=this.view)?void 0:c.Mtt(o.changeData),n=!1,u?[4,u]:[3,3]):[3,6];case 2:t.sent(),t.label=3;case 3:return[3,5];case 4:o.sourceType===d.TableSheet?(u=this.Bze(o.changeData),n&&!1===u&&(n=u)):o.sourceType===d.Combo&&this.undo(o.changes,!1),t.label=5;case 5:return i++,[3,1];case 6:return this.Gze(n),[2]}})})},b.prototype.Gze=function(t){this.host.refreshBindColumns(),this.host.WDi(r,r,t),this.host.Rze(),this.host.resumePaint()},b.prototype.Zze=function(t){var e=this.kze[this.kze.length-1];(e&&0<this.Oze&&h(e)?e.changes:this.G8).push(t)},Object.defineProperty(b.prototype,"view",{get:function(){return this.host.getDataView()},enumerable:!1,configurable:!0}),b.prototype.Eze=function(){var t;null!=(t=this.view)&&t.iGe(),this.G8=[],this.kze=[],this.P8=0},b.prototype.lM=function(){return 0<this.P8},b.prototype.Bze=function(t){var e,n,i,o,u,r,a,o,r,c,o,r,c,o,r,i,e=this,n=!0;return t.type===f.RemoveCrosRowFilterInfo||t.type===f.UpdateFilterOnMoved||t.type===f.FilterColumn||t.type===f.SetFilterItemMap?this.Pze(t):t.type===f.RowAction?this.host.rowActionOptions(t.oldData):t.type===f.GroupOptions?((i=t.oldData)?this.host.groupBy(i):this.host.removeGroupBy(),n=!1):t.type===f.GroupOutlinePosition?this.host.groupOutlinePosition(t.oldData):t.type===f.ExpandGroupByLevel?(o=t.oldData,u=o.level,r=o.indexs,a=o.expand,r.forEach(function(t){e.host.expandGroupItem(u,t,a)})):t.type===f.ExpandGroupItem?(r=(o=t.oldData).level,c=o.index,o=o.expand,this.host.expandGroupItem(r,c,o)):t.type===f.OptionChanged?(r=t.key,i=t.oldData,this.host.options[r]=i):t.type===f.ThemeChanged?this.host.applyTableTheme(t.oldData):t.type===f.PinnedRowsChanged?this.host.Rze():t.type===f.PinnedColumnsChanged?this.host.Qze(t.oldData.oldFilterColumnsMap,t.oldData.oldFilterColumnsMap):t.type===f.DefaultRowHeightChanged?this.host.setDefaultRowHeight(t.oldData.size,t.oldData.sheetArea):t.type===f.ApplyFreeHeaderChanged?this.host.applyFreeHeaderArea(t.oldData):t.type===f.ResetViewChanged?(o=(c=t.oldData).columnInfoOptions,r=c.includeDefaultColumns,i=c.options,this.host.resetNewView(o,r,i)):t.type===f.RemoveRow?(this.host.Yze(),n=!1):t.type===f.RemoveColumns?this.host.Wze(t.oldCol,t.oldCount):t.type===f.AddColumns?this.host.Hze(t.oldCol,t.oldCount):t.type===f.ResetGroupOutline?(this.host.refreshBindColumns(),this.host.WDi()):t.type===f.SortMapChanged?(this.Vze(t),n=!1):t.type===f.StoreTreeData||t.type===f.ApplyTreeData?(this.Fze(t),n=!1):t.type===f.ChangeCollapse?this.host._ze(t.oldData):t.type===f.SetDataView&&this.host.kTi(this.view),n},b.prototype.Fze=function(t){var t=t.type;t===f.ApplyTreeData?this.host.nDi():t===f.StoreTreeData&&this.host.uDi()},b.prototype.Vze=function(t){var t,e,t=t.oldData,e;this.host.Mf.rowFilter().Jze(t)},b.prototype.Pze=function(t){var e,e,n,n,n,t,n,t;t.type===f.RemoveCrosRowFilterInfo?this.host.Mf.rowFilter().Xze(t.changedData):t.type===f.UpdateFilterOnMoved?(n=t.changedData.map(function(t){return{oldIndex:t.newIndex,newIndex:t.oldIndex}}),this.host.Mf.rowFilter().nTi(n)):t.type===f.FilterColumn?(n=this.host.Kze(t.changedData.columnName),a(n)||(this.host.Mf.VAe(),this.host.zA({cmd:"clearFilter",cmdOption:{colIndex:n}}),this.host.Mf.zAe())):t.type===f.SetFilterItemMap&&(t=(n=t.changedData).columnName,n=n.checkedValues,null!==(t=this.host.Kze(t)))&&(this.host.Mf.ki(u.Events.RangeFiltering,g(this.host.Mf,t,n,null)),this.host.Mf.IB.removeFilterItems(t),null!=(e=null==(e=this.host.Mf)?void 0:e.IB)&&e.setFilterItemMap&&this.host.Mf.IB.setFilterItemMap(t,n),this.host.Mf.IB.filter(t),this.host.Mf.ki(u.Events.RangeFiltered,g(this.host.Mf,t,n,null)))},b.prototype.Uze=function(){var e,t,t,t,n,e=this,n;(null!=(t=null==(t=this.view)?void 0:t.eGe())?t:[]).forEach(function(t){e.Zze({sourceType:d.DataManager,changeData:t})}),null!=(t=this.view)&&t.iGe()},e.UndoHelper=b},"./dist/plugins/tableSheet/tableSheet.entry.js":function(t,e,n){var i,o,i=this&&this.__createBinding||(Object.create?function(t,e,n,i){void 0===i&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);o&&("get"in o?e.__esModule:!o.writable&&!o.configurable)||(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}:function(t,e,n,i){t[i=void 0===i?n:i]=e[n]}),o=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||i(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),o(n("./dist/plugins/tableSheet/tableSheet.interface.js"),e),n("./dist/plugins/tableSheet/data.dataManager.js"),n("./dist/plugins/tableSheet/arrayFunction.js"),o(n("./dist/plugins/tableSheet/actionColumn.js"),e),n("./dist/plugins/tableSheet/tableSheet-theme.js"),o(n("./dist/plugins/tableSheet/tableSheet.js"),e),n("./dist/plugins/tableSheet/tableSheet-action.js"),n("./dist/plugins/tableSheet/tablesheet-command-register.js"),o(n("./dist/plugins/tableSheet/tablesheet-override.js"),e),o(n("./dist/plugins/tableSheet/tableSheet-panel/tableSheetPanel.js"),e)},"./dist/plugins/tableSheet/tableSheet.interface.js":function(t,e,n){var i,u,r,o,a,c,s,l,n,n,n,n;function f(t){this.Hc(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.CustomSheetTab=e.GroupLayoutMode=e.GroupOutlinePosition=e.TriggerWhenType=e.ColumnTypes=void 0,i=n("Core"),u=i.util.Z0,r=i.util.V0,(n=o=e.ColumnTypes||(e.ColumnTypes={})).Number="Number",n.Text="Text",n.Formula="Formula",n.Checkbox="Checkbox",n.Date="Date",n.Currency="Currency",n.Percent="Percent",n.Phone="Phone",n.Email="Email",n.URL="URL",n.Lookup="Lookup",n.CreatedTime="CreatedTime",n.ModifiedTime="ModifiedTime",n.Attachment="Attachment",n.Select="Select",n.Barcode="Barcode",(n=a=e.TriggerWhenType||(e.TriggerWhenType={})).onNew="onNew",n.onNewAndUpdate="onNewAndUpdate",(n=c=e.GroupOutlinePosition||(e.GroupOutlinePosition={}))[n.none=0]="none",n[n.groupCell=1]="groupCell",n[n.rowHeader=2]="rowHeader",n[n.groupCellAll=3]="groupCellAll",(n=s=e.GroupLayoutMode||(e.GroupLayoutMode={}))[n.tabular=0]="tabular",n[n.outline=1]="outline",n[n.condensed=2]="condensed",f.prototype.Hc=function(t){this.Zc=t,this.jft=i.SheetTabVisible.visible,this._gi=i.SheetType.customSheetTab},f.prototype.hg=function(t){this.onSetHost(t)},f.prototype.onSetHost=function(t){},f.prototype.L0=function(t,e){this.onDispose(t,e)},f.prototype.onDispose=function(t,e){},f.prototype.Zg=function(t){},f.prototype.pM=function(t){this.parent=t},f.prototype.getParent=function(){return this.parent},f.prototype.name=function(t){if(0===arguments.length)return this.Zc;this.Zc=t},f.prototype.visible=function(t){if(0===arguments.length)return this.jft;this.jft=!0===t?i.SheetTabVisible.visible:!1===t?i.SheetTabVisible.hidden:t},f.prototype.b2=function(t,e){if(0===arguments.length)return this.ni;this.ni=t},f.prototype.ow=function(){},f.prototype.tw=function(){},f.prototype.aw=function(){},f.prototype.$C=function(t){},f.prototype.Wb=function(t,e){},f.prototype.Kb=function(t){},f.prototype.Fb=function(t,e){},f.prototype.onHorizontalDockScroll=function(t,e){},f.prototype.Gb=function(t){},f.prototype.WC=function(t,e,n){this.parent.zb.w4()},f.prototype.QC=function(t,e,n){this.parent.Xb.w4()},f.prototype.Cg=function(){this.onDoResize()},f.prototype.onDoResize=function(){},f.prototype.suspendPaint=function(){},f.prototype.resumePaint=function(){},f.prototype.isPaintSuspended=function(){return!1},f.prototype.bind=function(t,e,n){},f.prototype.unbind=function(t,e){},f.prototype.unbindAll=function(){},f.prototype.D3=function(t,e,n){},f.prototype._3=function(t,e){},f.prototype.E3=function(){},f.prototype.suspendEvent=function(){},f.prototype.resumeEvent=function(){},f.prototype.isEventSuspended=function(){return!1},f.prototype.bC=function(){},f.prototype.ki=function(t,e,n){},f.prototype.isEditing=function(){return!1},f.prototype.ol=function(t,e,n,i){return!0},f.prototype.currentTheme=function(t){},f.prototype.FM=function(){},f.prototype.toJSON=function(t){},f.prototype.fromJSON=function(t,e,n,i,o){},f.prototype.uw=function(){return{top:0,left:0}},f.prototype.ot=function(){return new i.Rect(0,0,0,0)},f.prototype.hitTest=function(t,e,n,i){return null},f.prototype.R2e=function(){},f.prototype.parameter=function(t){var e,n,i,o;if(0===arguments.length){for(i in n={},e=this.ghe)e.hasOwnProperty(i)&&(n[i]=r(e[i]));return n}if(t){for(i in o={},t)t.hasOwnProperty(i)&&(o[i]=u(t[i]));this.ghe=o}},e.CustomSheetTab=f},"./dist/plugins/tableSheet/tableSheet.js":function(u,l,s){var f,a,o,L,g,d,G,c,m,A,b,B,h,O,R,P,Q,Y,v,W,t,M,t,H,k,V,F,_,J,I,X,N,D,j,C,K,w,p,q,$,tt,et,nt,it,ot,ut,rt,E,Z,at,ct,st,lt,ft,dt,r,ht,gt,i,t;function bt(t,e){return Array.isArray(t)?e?t.toString():Mt(t):t}function vt(t,e){return t&&It(e?"["+t+"]":t)}function Mt(t){var e=t;return e=Array.isArray(t)?"["+t.toString()+"]":e}function It(t){var e=t;return e=t&&"["===t[0]&&"]"===t[t.length-1]?t.substring(1,t.length-1).split(","):e}function mt(e,n,t){var i,o,u;e.value=e.value||n.value,e.type=e.type||n.type,e.caption=e.caption||n.caption,i=e.type!==n.type,o=n.type===d.ColumnTypes.CreatedTime||n.type===d.ColumnTypes.ModifiedTime,u=e.type===d.ColumnTypes.Formula,(t=t||Object.keys(n)).forEach(function(t){if(!e.hasOwnProperty(t)){if(i){if("defaultValue"===t||"dataType"===t||"style"===t||"_"===t[0])return;if(o&&("trigger"===t||"readonly"===t))return;if(!u&&"name"===t)return}e[t]=n[t]}})}function Nt(t){return k(t)||t!==d.GroupLayoutMode.outline&&t!==d.GroupLayoutMode.condensed?d.GroupLayoutMode.tabular:t}function Dt(t){return"header"===t||"footer"===t?t:E}function jt(t,i,o){Object.defineProperty(t,i,{get:function(){return this["_"+i]},set:function(t){var e,e,n,e,e=this["_"+i];e!==t&&(o?(n=(e=o(i,t,e))[0],e=e[1],this["_"+i]=n,e&&e()):this["_"+i]=t)},configurable:!0})}function e(t){return"gc-defined-column-type-icon-".concat(t.toLowerCase())}function x(t){return t&&"="===t[0]}function Ct(t){return t&&-1<t.indexOf(".")}function T(t){return"number"==typeof t}function S(t){return"string"==typeof t}function z(t){return"boolean"==typeof t}function U(t,e){return T(t[e])}function wt(t){return t instanceof Function}function pt(t,e){var n,i,o,u,r;if(t.collapsed)for(n=t.start+1;n<=t.end;n++)(i=e[n])?i.visible=!1:e[n]={visible:!1};else if(t.children)for(o=0,u=t.children;o<u.length;o++)pt(r=u[o],e)}function xt(t,e){var e,n,i,o,u,r,e=e&&e.grouping&&e.grouping.tree;if(e)for(n=(n=t.rows)||(t.rows=[]),o=0,u=i=e.children;o<u.length;o++)pt(r=u[o],n)}function yt(t,e){var e,n,e,i,o,u,n,r,a,c,s,l,f,d,h,e=e.options.alternatingRowOptions;if(e&&(n=e.step||[1,1],e=e.style,u=(i=k(n[0])?1:n[0])+(o=k(n[1])?1:n[1]),r=(r=(n=t.data).rowDataArray)||(n.rowDataArray=[]),e))for(s=c=a=void 0,Array.isArray(e)?(a=e[0],c=e[1]):a=e,l=0,f=t.rowCount;l<f;l++)(s=(d=Math.floor(l%u))<i?a:c)&&((h=(h=r[l])||(r[l]={})).style=s)}function At(t,e,n,i){var t,o;t[e]||(t[e]={}),(t=t[e])[n]||(t[n]={}),(o=t[n]).style=i}function Tt(t,e,n,i){for(var o,u,r,a,c,s,l,f,o=t.JS(e,i),u=o.row,r=o.col,a=0,c=o.rowCount;a<c;a++)for(s=0,l=o.colCount;s<l;s++)f=t.getActualStyle(u+a,r+s,i).toJSON(),V(f)||At(n,u+a,r+s,f)}function St(e,t,n){t&&(e.oNi=!0,t.rules.forEach(function(t){t.ranges.forEach(function(t){Tt(e,t,n)})}),e.oNi=!1)}function zt(t){return t.NMi}function y(e,t,n){return function(t){e.repaint(),n&&n()}}function Lt(t){var e,n,i,o,u,r,a,r,e=t.type,n=t.comparisonOperator;switch(U(A.ComparisonOperators,n)&&(n=A.ComparisonOperators[n]),e){case"number":o=t.value1,u=t.value2,r=t.isIntegerValue,i=(0,m.createNumberValidator)(n,o,u,r);break;case"date":o=t.value1,u=t.value2,i=(0,m.createDateValidator)(n,o,u);break;case"time":o=t.value1,u=t.value2,i=(0,m.createTimeValidator)(n,o,u);break;case"textLength":o=t.value1,u=t.value2,i=(0,m.createTextLengthValidator)(n,o,u);break;case"formula":a=t.formula,i=(0,m.createFormulaValidator)(a);break;case"formulaList":a=t.formula,i=(0,m.createFormulaListValidator)(a);break;case"list":r=t.source,i=(0,m.createListValidator)(r)}return i}function Ot(t,e){var n,i,o,u,r,a,c,s,l,e,n,n=e.errorMessage,i=e.errorStyle,o=e.errorTitle,u=e.highlightStyle,r=e.ignoreBlank,a=e.inCellDropdown,c=e.inputMessage,s=e.inputTitle,l=e.showErrorMessage,e=e.showInputMessage;k(n)||t.errorMessage(n),U(m.ErrorStyle,i)&&t.errorStyle(m.ErrorStyle[i]),k(o)||t.errorTitle(o),k(u)||(n={},U(m.HighlightType,u.type)&&(n.type=m.HighlightType[u.type]),k(u.color)||(n.color=u.color),U(m.HighlightPosition,u.position)&&(n.position=m.HighlightPosition[u.position]),k(u.image)||(n.image=u.image),t.highlightStyle(n)),k(r)||t.ignoreBlank(r),k(a)||t.inCellDropdown(a),k(c)||t.inputMessage(c),k(s)||t.inputTitle(s),k(l)||t.showErrorMessage(l),k(e)||t.showInputMessage(e)}function kt(t){var e=Lt(t);return Ot(e,t),e}function Et(t,e,n){var i,o,u,r,a,c,s,l,c,s,f,l,d,h,g,b,v,M,a,c,s,l,f,g,a,c,s,M,d,h,b,v,l,f,g,a,c,I,m,N,D,j,C,j,w,p,x,y,p,o,i,i=e.ruleType,o=e.style,u=o;switch(!o||o instanceof L.Style||(u=new L.Style(o)),i){case"cellValueRule":a=e.comparisonOperator,c=e.value1,s=e.value2,l=e.comparisionOperator,k(a)&&(a=l),U(A.ComparisonOperators,a)&&(a=A.ComparisonOperators[a]),r=t.addCellValueRule(a,c,s,u,n);break;case"specificTextRule":a=e.comparisonOperator,c=e.text,l=e.comparisionOperator,k(a)&&(a=l),U(A.TextComparisonOperators,a)&&(a=A.TextComparisonOperators[a]),r=t.addSpecificTextRule(a,c,u,n);break;case"formulaRule":s=e.formula,r=t.addFormulaRule(s,u,n);break;case"dateOccurringRule":f=e.type,U(A.DateOccurringType,f)&&(f=A.DateOccurringType[f]),r=t.addDateOccurringRule(f,u,n);break;case"top10Rule":f=e.type,l=e.rank,U(A.Top10ConditionType,f)&&(f=A.Top10ConditionType[f]),r=t.addTop10Rule(f,l,u,n);break;case"uniqueRule":r=t.addUniqueRule(u,n);break;case"duplicateRule":r=t.addDuplicateRule(u,n);break;case"averageRule":f=e.type,U(A.AverageConditionType,f)&&(f=A.AverageConditionType[f]),r=t.addAverageRule(f,u,n);break;case"twoScaleRule":d=e.minType,h=e.minValue,g=e.minColor,b=e.maxType,v=e.maxValue,M=e.maxColor,U(A.ScaleValueType,d)&&(d=A.ScaleValueType[d]),U(A.ScaleValueType,b)&&(b=A.ScaleValueType[b]),r=t.add2ScaleRule(d,h,g,b,v,M,n);break;case"threeScaleRule":d=e.minType,h=e.minValue,g=e.minColor,a=e.midType,c=e.midValue,s=e.midColor,b=e.maxType,v=e.maxValue,M=e.maxColor,U(A.ScaleValueType,d)&&(d=A.ScaleValueType[d]),U(A.ScaleValueType,a)&&(a=A.ScaleValueType[a]),U(A.ScaleValueType,b)&&(b=A.ScaleValueType[b]),r=t.add3ScaleRule(d,h,g,a,c,s,b,v,M,n);break;case"dataBarRule":d=e.minType,h=e.minValue,b=e.maxType,v=e.maxValue,l=e.color,f=e.gradient,g=e.showBarOnly,a=e.showBorder,c=e.borderColor,s=e.barDirection,M=e.negativeData,U(A.ScaleValueType,d)&&(d=A.ScaleValueType[d]),U(A.ScaleValueType,b)&&(b=A.ScaleValueType[b]),r=t.addDataBarRule(d,h,b,v,l,n),z(f)&&r.gradient(f),z(g)&&r.showBarOnly(g),z(a)&&r.showBorder(a),S(c)&&r.borderColor(c),U(A.BarDirection,s)&&r.dataBarDirection(A.BarDirection[s]),M&&(d=M.negativeFillColor,h=M.useNegativeFillColor,b=M.negativeBorderColor,v=M.useNegativeBorderColor,l=M.axisColor,f=M.axisPosition,S(d)&&r.negativeFillColor(d),z(h)&&r.useNegativeFillColor(h),S(b)&&r.negativeBorderColor(b),z(v)&&r.useNegativeBorderColor(v),S(l)&&r.axisColor(l),U(A.DataBarAxisPosition,f))&&r.axisPosition(A.DataBarAxisPosition[f]);break;case"iconSetRule":if(g=e.iconSetType,a=e.reverseIconOrder,c=e.showIconOnly,I=e.icons,m=e.iconCriteria,U(A.IconSetType,g)&&(g=A.IconSetType[g]),r=t.addIconSetRule(g,n),z(a)&&r.reverseIconOrder(a),z(c)&&r.showIconOnly(c),I)for(N=r.icons(),D=0;D<I.length;D++)C=(j=I[D]).iconSetType,j=j.iconIndex,U(A.IconSetType,C)&&(C=A.IconSetType[C]),N[D]={iconSetType:C,iconIndex:j};if(m)for(w=r.iconCriteria(),D=0;D<m.length;D++)x=(p=m[D]).isGreaterThanOrEqualTo,y=p.iconValueType,p=p.iconValue,U(A.IconValueType,y)&&(y=A.IconValueType[y]),w[D]=new A.IconCriterion(x,y,p)}r&&(o=e.priority,i=e.stopIfTrue,T(o)&&r.priority(o),z(i))&&r.stopIfTrue(i)}function Zt(t,e){return t.filter(function(t){return t.name===e})[0]}function Ut(t){return!k(t)&&!k(t.icons)&&0<t.icons.length}function Gt(t){for(var e=[];0<t;)e[--t]=t;return e}function Bt(t,e){var n,i,o,u;if(!k(t))for(I(t)||(t=[t]),n=0;n<t.length;n++)for(i=t[n],o=0;o<e.length;o++)if(u=e[o],i.field===u.value&&u.isGroup)return!0;return!1}function Rt(e){["columnStart","columnEnd","rowStart","rowEnd","repeatColumnStart","repeatColumnEnd","repeatRowStart","repeatRowEnd"].forEach(function(t){e[t]=function(){return-1}})}function Pt(t,e){!1===e?e=L.SheetTabVisible.hidden:!0===e&&(e=L.SheetTabVisible.visible),void 0!==e&&t.visible(e)}function n(t,e,n){this._gi=L.SheetType.tableSheet,this.uNi=0,this.jIi=0,this.cNi=[[]],this.jHe=this.getColumnIndexInTable;var i=this;this.ize=new v.UndoHelper(this),i.Mf=new Y.OverWriteWorkSheet(t||Xt(),this,this.ize),i.Hc(e,n)}function Qt(t){return t instanceof i}function Yt(t){return t.ctrlKey}function Wt(t){return t.shiftKey}function Ht(t){return t.metaKey}function Vt(t){var e,n=(L.mt.Qf()?Ht:Yt)(t),t=Wt(t);return{isCtrl:n&&!t,isShift:t&&!n}}function Ft(t,e,n){return n.isPinnedRow(e)}function _t(t,e,n){return n.isNewRow(e)?0:n.isInsertedRow(e)?1:n.isUpdatedRow(e)?2:-1}function Jt(t,e,n){return n.hasWarning(e)}function Xt(){var t="TableSheet"+i._ID;return i._ID++,t}function Kt(t){for(var e=Xt(),n=0;n<t.length;)t[n].name()===e?(e=Xt(),n=0):n++;return e}f=this&&this.__assign||function(){return(f=Object.assign||function(t){for(var e,n,i,o,n=1,i=arguments.length;n<i;n++)for(o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},a=this&&this.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var i=0,o=e.length,u;i<o;i++)!u&&i in e||((u=u||Array.prototype.slice.call(e,0,i))[i]=e[i]);return t.concat(u||Array.prototype.slice.call(e))},Object.defineProperty(l,"__esModule",{value:!0}),l.BuiltInRowActions=l.TableSheet=l.ActionType=l.copyOriginalColumnPropertiesToCurrentColumn=l.zze=l.tIi=l.getSR=void 0,o=s("Common"),L=s("Core"),g=s("Tables"),d=s("./dist/plugins/tableSheet/tableSheet.interface.js"),G=s("./dist/plugins/tableSheet/actionColumn.js"),c=s("./dist/plugins/tableSheet/tablesheet-override.js"),m=s("Validation"),A=s("ConditionalFormatting"),b=s("DataManager"),B=s("./dist/plugins/tableSheet/tableSheet-row-action.js"),h=s("AutoMerge"),O=s("./dist/plugins/tableSheet/tableSheet-grouping.js"),R=s("./dist/plugins/tableSheet/tableSheet-panel/tableSheetPanel.js"),P=s("./dist/plugins/tableSheet/tableSheet-status-bar.js"),Q=s("SheetsCalc"),Y=s("./dist/plugins/tableSheet/overr-write-worksheet.js"),v=s("./dist/plugins/tableSheet/tableSheet-undo.js"),W=s("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-popup.js"),t=new o.Common.ResourceManager(c.SR,"TableSheet"),l.getSR=t.getResource.bind(t),M=o.Common.lt.tv,t=o.Common.lt,H=L.mt.j,k=t.ht,V=t._h,F=t.Dh,_=t.y0,J=t.tv,I=t.Nh,X=Number.MAX_VALUE,N="composedPinDirtyNewWarningRow",D="pinRow",j="dirtyStatus",C="warningInfo",K="removeRow",w="saveRow",p="resetRow",$="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTIiIHZpZXdCb3g9IjAgMCAxMiAxMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3Qgd2lkdGg9IjEyIiBoZWlnaHQ9IjEyIiBmaWxsPSJ0cmFuc3BhcmVudCIvPgo8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTcgOUg1TDUgNS45NjA0NmUtMDhIN0w3IDlaTTYgMTBDNi41NTIyOCAxMCA3IDEwLjQ0NzcgNyAx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SI0OCI+PHBhdGggZD0ibTExLjY1IDQ0IDMuMjUtMTQuMDVMNCAyMC41bDE0LjQtMS4yNUwyNCA2bDUuNiAxMy4yNUw0NCAyMC41bC0xMC45IDkuNDVMMzYuMzUgNDQgMjQgMzYuNTVaIi8+PC9zdmc+",E=void 0,Z=null,at=".tableSheet",ct="gc.spread.contextMenu.defineColumn",st="gc.spread.contextMenu.insertColumns",lt="gc.spread.defineColumn.submit",ft=L.util.Z0,dt=L.util.V0,l.tIi=bt,l.zze=vt,l.copyOriginalColumnPropertiesToCurrentColumn=mt,r={},l.BuiltInRowActions=r,ht={name:N,icons:[q,tt,et,nt,$]},L.Events.RowOperation="RowOperation",(t=gt=l.ActionType||(l.ActionType={}))[t.remove=0]="remove",t[t.save=1]="save",t[t.reset=2]="reset",t[t.addNewEmptyRow=3]="addNewEmptyRow",n.prototype.Iwt=function(t,e,n){var i,o,u,r,a,c,s,l,f,i=e.abt.getDataView(),o=i&&i.gLt,u=this.getColumnIndexInTable(e.ubt),r=u,a=i.getColumnInfos();for(e.sbt&&(r=this.getColumnIndexInTable(e.sbt)),c=u;c<=r;c++)s=-1===c?"*":a[c].value,o._Et(t,s,n);if(l=this.rNi,n)this.rNi.push(e);else for(f=0;f<l.length;f++)l[f]===e&&(l.splice(f,1),f--)},n.prototype.startRow=function(){return 0},n.prototype.startColumn=function(){return 0},n.prototype.endRow=function(){return this.Mf.getRowCount()-(this.options.allowAddNew?2:1)},n.prototype.endColumn=function(){return this.Mf.getColumnCount()-1},n.prototype.hasTotalsRow=function(){return!1},n.prototype.hasHeadersRow=function(){return!1},n.prototype.tableName=function(){return this.name()},n.prototype.source=function(){return this.Mf.Uw()},n.prototype.getColumnName=function(t,e){var n,i,t,n,i,t=this.Mf.getDataSource().Dve(t);return t?bt(t.caption,e)||t.value:null},n.prototype.getColumnIndexInTable=function(t){for(var e,n,i,o,e,n,i,o=this.Mf.getDataSource().getColumnInfos().length-1;0<=o;o--)if(t===this.getColumnName(o)||t===this.getColumnName(o,!0))return o;return-1},n.prototype.showFooter=function(t){return!1},n.prototype.dataRange=function(){var t,e,t=this,e=this.Mf.getRowCount();return t.options.allowAddNew&&e--,(0,L.Ec)(0,0,e,t.endColumn()+1)},n.prototype.headerIndex=function(){return 0},n.prototype.cSt=function(t,e){var n,i;for(null!==t&&(t=H(t)),n=0;n<this.Tx;n++)if(n!==e&&t===(i=this.getColumnName(n)))return!0;return!1},n.prototype.Hc=function(t,e){var r,a,r=this,a=r.Mf;a.$L.push({tF:function(t,e){var n,i,o,e,i,u;return void 0===e&&(e={}),n=1,i=r.gze(),o=e.spacingIndex,e=e.isAfter,(0,O.isGroupOutlineCondensedLayout)(i)&&(n=0),i=X,e&&(u=a.TFe&&a.TFe(t,o,-1,e))&&"number"==typeof u.level&&(i=u.level+1),r.sMi(t,i,n,o,e)}}),r.rNi=[],this.suspendPaint(),r.aNi(),r.setDefaultRowHeight(30),r.setDefaultRowHeight(30,L.SheetArea.colHeader),a.setRowCount(0),a.setColumnCount(0),a.zwt("@","=A1",0,0,!0),a.zwt("AutoId","=MAX(OFFSET($A$1,0,COLUMN()-1,ROW()-1,1))+1",0,0,!0),(0,c.overrideProperties)(r),(0,c.overrideMethods)(r),r.v7(),t&&a.setDataSource(t),r.Zp(e),r.sNi(),r.MNi(),r.INi=new O.Grouping,r.rowActionOptions(r.gNi),r.applyTableTheme(g.TableThemes.light2),r.leV(),this.resumePaint()},n.prototype.leV=function(){},n.prototype.reset=function(){var t,e,n,i,o,e=this,n=e.Mf,i=e.UMi,o=e.getDataView();o&&(null!=(t=o.iGe)&&t.call(o),e.qze()),n&&n.reset(),i&&i.detach(),e.E3(),e.Hc(),e.lMi=E,e.jFt=E,e.jIi=0,e.uNi=0},n.prototype.hg=function(t){this.Mf.hg(t)},n.prototype.L0=function(t,e){var n=this.Mf;t&&this.WTi(!0),this.$ze&&this.$ze.close(),n.L0(t,e),t&&(n.E3(),this.UMi)&&this.UMi.detach()},n.prototype.Zg=function(t){this.Mf.Zg(t)},n.prototype.setAccessibilityPrefixSuffixContent=function(t,e){this.Mf.setAccessibilityPrefixSuffixContent(t,e)},n.prototype.pM=function(t){this.Mf.pM(t),this.NNi()},n.prototype.getParent=function(){return this.Mf.getParent()},n.prototype.name=function(t){var e=this.Mf;return e.name.apply(e,arguments)},n.prototype.visible=function(t){var e=this.Mf;return e.visible.apply(e,arguments)},n.prototype.b2=function(t,e){return this.Mf.b2(t,e)},n.prototype.ow=function(){this.Mf.ow()},n.prototype.aw=function(){this.Mf.aw()},n.prototype.tw=function(){this.Mf.tw()},n.prototype.Wb=function(t,e){this.Mf.Wb(t,e)},n.prototype.Kb=function(t){this.Mf.Kb(t)},n.prototype.Fb=function(t,e){this.Mf.Fb(t,e)},n.prototype.onHorizontalDockScroll=function(t,e){this.Mf.onHorizontalDockScroll(t,e)},n.prototype.Gb=function(t){this.Mf.Gb(t)},n.prototype.WC=function(t,e,n){this.Mf.WC(t,e,n)},n.prototype.$C=function(t){this.Mf.$C(t)},n.prototype.QC=function(t,e,n){this.Mf.QC(t,e,n)},n.prototype.Cg=function(){this.Mf.Cg()},n.prototype.suspendPaint=function(){this.Mf.suspendPaint()},n.prototype.resumePaint=function(){var t=this.Mf.getDataSource();t&&this.lNi(t.visibleLength()),this.Mf.resumePaint()},n.prototype.isPaintSuspended=function(){return this.Mf.isPaintSuspended()},n.prototype.bind=function(t,e,n){this.Mf.bind(t,e,n)},n.prototype.unbind=function(t,e){this.Mf.unbind(t,e)},n.prototype.unbindAll=function(){this.Mf.unbindAll()},n.prototype.D3=function(t,e,n){this.Mf.D3(t,e,n)},n.prototype._3=function(t,e){this.Mf._3(t,e)},n.prototype.E3=function(){this.Mf.E3()},n.prototype.suspendEvent=function(){this.Mf.suspendEvent()},n.prototype.resumeEvent=function(){this.Mf.resumeEvent()},n.prototype.isEventSuspended=function(){return this.Mf.isEventSuspended()},n.prototype.bC=function(){this.Mf.bC()},n.prototype.ki=function(t,e,n){this.Mf.ki(t,e,n)},n.prototype.isEditing=function(){return this.Mf.isEditing()},n.prototype.ol=function(t,e,n,i){return this.Mf.ol(t,e,n,i)},n.prototype.currentTheme=function(t){var e=this.Mf;return e.currentTheme.apply(e,arguments)},n.prototype.FM=function(){(0,l.getSR)(),this.Mf.FM()},n.prototype.DNi=function(t){var e,t=t||this.gNi;return J(t).map(function(t){return delete t.subActionOptions,t})},n.prototype.fNi=function(t,e){var n,i,o,u,r,a,c,s,l,f,d,d,n=[N,D,j,C,K,w,p],i=[q,$,tt,et,nt],o=["ROW_ACTION_PIN_ROW","ROW_ACTION_WARNING_INFO","ROW_ACTION_NEW_ROW","ROW_ACTION_INSERTED_ROW","ROW_ACTION_UPDATED_ROW"],u=e?o:i,r=e?i:o;if(I(t))for(a=0;a<t.length;a++)if(s=(c=t[a]).name,l=c.icons,-1<n.indexOf(s)&&l)for(f=0;f<l.length;f++)"string"==typeof(d=l[f])&&-1<(d=u.indexOf(d))&&(l[f]=r[d]);return t},n.prototype.dNi=function(t,e){var n,i,o,u,r,u,u,a,c,s,l,f,d,h,s,n=this,i=n.Mf;return t&&t.saveAsView?(e.colHeaderData.dataTable||(e.colHeaderData.dataTable={}),Tt(i,(0,L.Ec)(0,0,i.getRowCount(1),i.getColumnCount(1)),e.colHeaderData.dataTable,1),n.iAi(e),e.data.dataTable||(e.data.dataTable={}),St(i,e.conditionalFormats,e.data.dataTable),delete e.conditionalFormats,delete e.validations):k(e)||n.iAi(e),o={},u=n.getDataView(),r=t&&t.gp,u&&(o.dataView={name:u.name,tableName:u.gLt.name},o.grouping=n.INi.toJSON(),r)&&(o.grouping.groupInfos=M(n.lMi)),u=i.rowFilter(),o.rowFilter=u.toJSON(),r&&xt(e,o),u=n.options,(a={}).allowAddNew=u.allowAddNew,u.hasOwnProperty("defaultStackRowHeight")&&(a.defaultStackRowHeight=u.defaultStackRowHeight),u.hasOwnProperty("menuItemVisibility")&&(a.menuItemVisibility=u.menuItemVisibility),a.sheetTabColor=u.sheetTabColor,(c=u.alternatingRowOptions)?(s=c.style,l=void 0,Array.isArray(s)?l=[f=s[0]&&s[0].toJSON(),d=s[1]&&s[1].toJSON()]:s&&(l=s.toJSON()),a.alternatingRowOptions={step:c.step,style:l}):null===c&&(a.alternatingRowOptions=null),u.hasOwnProperty("isDesignMode")&&(a.isDesignMode=u.isDesignMode),u.hasOwnProperty("showRowNumber")&&(a.showRowNumber=u.showRowNumber),u.hasOwnProperty("enableDefineColumn")&&(a.enableDefineColumn=u.enableDefineColumn),u.hasOwnProperty("defineColumnCommand")&&(a.defineColumnCommand=u.defineColumnCommand),u.hasOwnProperty("submitDefineColumnCommand")&&(a.submitDefineColumnCommand=u.submitDefineColumnCommand),u.hasOwnProperty("columnTypeItems")&&(a.columnTypeItems=u.columnTypeItems),u.hasOwnProperty("groupLayout")&&(h=u.groupLayout)&&["mode","position"].forEach(function(t){var e=h[t];h.hasOwnProperty(t)&&(a.groupLayout||(a.groupLayout={}),a.groupLayout[t]=e)}),o.options=a,o.rowActionOptions=n.fNi(n.DNi()),n.hl&&(o.currentTheme=n.hl.toJSON()),t&&t.saveAsView&&!r&&yt(e,o),s=i.defaults,o.defaults={rowHeight:s.rowHeight,colHeaderRowHeight:s.colHeaderRowHeight},o.printInfo=i.printInfo&&i.printInfo().toJSON(),o.freeHeaderArea=n.hNi,e&&(e.sheetType=n._gi),o.parameter=n.ghe,o},n.prototype.toJSON=function(t){var e,n,n,e=this,n=e.Mf;return n.options.sheetTabColor=this.options.sheetTabColor,t&&t.cb===L.OpenSaveFileType.excel&&(e.WWe=!0),(n=n.toJSON(t)).addition=e.dNi(t,n),(n=e.eZe(n,t)).sheetType=this._gi,t&&t.cb===L.OpenSaveFileType.excel&&(e.WWe=E),n},n.prototype.eZe=function(t,e){var n,i,o,u,r,n=this,i=n.Mf;return e&&e.cb===L.OpenSaveFileType.excel&&n.sze(!0)&&(o=new L.Worksheet(n.Mf.name()),(u=t.addition)&&!k(u.currentTheme)&&((r=new g.TableTheme).fromJSON(u.currentTheme),o.suspendPaint(),n.oZe(o,M(n.options.alternatingRowOptions),r),o.resumeEvent()),delete t.spacing,o.fromJSON(t,!1,E,E,!0),n.uZe()?n.aZe(o,i):n.rZe(o,i),n.cZe(o),(t=o.toJSON(e)).addition=u),t},n.prototype.cZe=function(t){for(var e,n,i,o,u,e=this,n=e.getDataView().getColumnInfos(),i=0;i<n.length;i++)if(!1!==(o=n[i]).visible){(u=t.getStyle(-1,i)).textIndent=e.lMi.length,t.setStyle(-1,i,u);break}},n.prototype.sZe=function(t){var e,n,i,o,u,t,r,e,n,i=this.getDataView().getColumnInfos(),o=new L.Style;return o.backColor="white",t=(u=t.Ut.vFe).mFe,{columnInfos:i,spacingStyle:o,rows:r=Object.keys(t).reverse()}},n.prototype.rZe=function(t,e){var n,i,o,u,r,a,c,s,l,f,d,h,g,b,v,M,I,m,N,D,j,C,w,p,x,y,A,T,S,z,z,z,S;if(t.FCn)for(o=(i=(n=this).sZe(e)).columnInfos,u=i.spacingStyle,a=0,c=r=i.rows;a<c.length;a++){if(s=c[a],l=Number(s),0<(f=2*e.C9e(l,!0)))for(t.addRows(l+1,f),d=0;d<f;d+=2)if(h=Math.floor(d/2),b=(g=l+d+1)+1,v=e.MFe(l,d,!0)/2,t.setRowHeight(g,v),t.setRowHeight(b,v),M=e.TFe(l,h,-1,!0),!k(M))if(I={rowSpacingIndex:h,isAfterRowSpacing:!0},M.isSpacing){for(m=e.getActualStyle(l,-1,E,E,I),u.borderTop=m.borderTop,N=0;N<o.length;N++)t.setStyle(g,N,u);t.setRowHeight(g,2*v),t.deleteRows(b,1)}else for(m=e.getActualStyle(l,-1,E,E,I),N=0;N<o.length;N++)(D=m.clone()).borderBottom=Z,t.setStyle(g,N,D),(j=m.clone()).borderTop=Z,t.setStyle(b,N,j),C=e.TFe(l,h,N,!0),k(C)||(w=e.Jt.qt(l,N,E,E,I),(p=(0,O.composeHeaderStyle)(C,w)).hAlign=(0,O.getHorizontalAlign)(p,L.HorizontalAlign.right),x=C.caption,k(x)||(p.borderBottom=Z,t.setStyle(g,N,p),t.setValue(g,N,C.caption)),(y=(0,O.composeValueStyle)(C,w)).hAlign=(0,O.getHorizontalAlign)(y,L.HorizontalAlign.right),A=C.value,k(A))||(y.borderTop=Z,t.setStyle(b,N,y),t.setValue(b,N,C.value));if(0<(f=2*e.C9e(l)))for(t.addRows(l,f),d=0;d<f;d+=2)if(h=Math.floor(d/2),b=(g=l+d)+1,v=e.MFe(l,h)/2,t.setRowHeight(g,v),t.setRowHeight(b,v),M=e.TFe(l,h,-1))for(m=e.getActualStyle(l,-1,E,E,I={rowSpacingIndex:h,isAfterRowSpacing:!1}),T=!1,N=0;N<o.length;N++)(D=m.clone()).borderBottom=Z,t.setStyle(g,N,D),(j=m.clone()).borderTop=Z,t.setStyle(b,N,j),S=!T&&!1!==o[N].visible,w=e.Jt.qt(l,N,E,E,I),y=void 0,S&&(T=!0,p=(0,O.composeHeaderStyle)(M.groupLevelOptions,w),z=M.field,k(z)||(p.textIndent=M.level,p.borderBottom=Z,t.setStyle(g,N,p),t.setValue(g,N,M.field)),y=(0,O.composeValueStyle)(M.groupLevelOptions,w),z=M.value,k(z)||(y.textIndent=M.level,y.borderTop=Z,t.setStyle(b,N,y),t.setValue(b,N,M.value))),C=e.TFe(l,h,N),k(C)||S||((z=(0,O.composeHeaderStyle)(C,w)).hAlign=(0,O.getHorizontalAlign)(z,L.HorizontalAlign.right),x=C.caption,k(x)||(z.borderBottom=Z,t.setStyle(g,N,z),t.setValue(g,N,C.caption)),(S=(0,O.composeValueStyle)(C,w)).hAlign=(0,O.getHorizontalAlign)(S,L.HorizontalAlign.right),A=C.value,k(A))||(S.borderTop=Z,t.setStyle(b,N,S),t.setValue(b,N,C.value))}},n.prototype.aZe=function(t,e){var n,i,o,u,r,a,c,s,l,f,d,h,g,b,v,M,I,m,N,D,j,C,w,p,p;if(t.FCn)for(o=(i=(n=this).sZe(e)).columnInfos,u=i.spacingStyle,a=0,c=r=i.rows;a<c.length;a++){if(s=c[a],l=Number(s),0<(f=e.C9e(l,!0)))for(t.addRows(l+1,f),d=0;d<f;d++)if(h=l+d+1,g=e.MFe(l,d,!0),t.setRowHeight(h,g),b=e.TFe(l,d,-1,!0),!k(b))if(v={rowSpacingIndex:d,isAfterRowSpacing:!0},b.isSpacing)for(M=e.getActualStyle(l,-1,E,E,v),u.borderTop=M.borderTop,I=0;I<o.length;I++)t.setStyle(h,I,u);else for(M=e.getActualStyle(l,-1,E,E,v),I=0;I<o.length;I++)t.setStyle(h,I,M),m=e.TFe(l,d,I,!0),k(m)||(N=e.Jt.qt(l,I,E,E,v),(D=(0,O.composeValueStyle)(m,N)).hAlign=(0,O.getHorizontalAlign)(D,L.HorizontalAlign.right),j=(0,O.getValueFromCondensed)(m),k(j))||(t.setStyle(h,I,D),t.setValue(h,I,j));if(0<(f=e.C9e(l)))for(t.addRows(l,f),d=0;d<f;d++)if(h=l+d,g=e.MFe(l,d),t.setRowHeight(h,g),b=e.TFe(l,d,-1))for(M=e.getActualStyle(l,-1,E,E,v={rowSpacingIndex:d,isAfterRowSpacing:!1}),C=!1,I=0;I<o.length;I++)t.setStyle(h,I,M),w=!C&&!1!==o[I].visible,N=e.Jt.qt(l,I,E,E,v),D=void 0,w&&(C=!0,D=(0,O.composeValueStyle)(b.groupLevelOptions,N),p=(0,O.getGroupHeaderValueFromCondensed)(b),k(p)||(D&&(D.textIndent=b.level,t.setStyle(h,I,D)),t.setValue(h,I,p))),m=e.TFe(l,d,I),k(m)||w||((p=(0,O.composeValueStyle)(m,N)).hAlign=(0,O.getHorizontalAlign)(p,L.HorizontalAlign.right),j=(0,O.getValueFromCondensed)(m),k(j))||(t.setStyle(h,I,p),t.setValue(h,I,j))}},n.prototype.TNi=function(t){var e,n,i,o,o,o,i,u,o,i,r,a,c,n;if(t){if(n=(e=this).Mf,i=t.options,k(t.currentTheme)||((o=new g.TableTheme).fromJSON(t.currentTheme),e.applyTableTheme(o)),o=e.getDefaultOptions(),e.options.allowAddNew=i.allowAddNew,e.options.defaultStackRowHeight=i.defaultStackRowHeight,e.options.menuItemVisibility=i.menuItemVisibility,e.options.isDesignMode=i.isDesignMode,e.options.sheetTabColor=i.sheetTabColor,e.options.showRowNumber=i.showRowNumber,e.options.enableDefineColumn=i.enableDefineColumn,e.options.defineColumnCommand=(k(i.defineColumnCommand)?o:i).defineColumnCommand,e.options.submitDefineColumnCommand=(k(i.submitDefineColumnCommand)?o:i).submitDefineColumnCommand,e.options.columnTypeItems=(k(i.columnTypeItems)?o:i).columnTypeItems,e.options.groupLayout=(k(i.groupLayout)?o:i).groupLayout,e.bNi(i.alternatingRowOptions,i.alternatingRowStyles),k(t.actionColumn)||e.actionColumn.fromJSON(t.actionColumn),e.rowActionOptions(e.fNi(t.rowActionOptions,!0)),o=n.defaults,(i=t.defaults)&&(o.rowHeight=i.rowHeight,o.colHeaderRowHeight=i.colHeaderRowHeight),n.printInfo&&t.printInfo&&((o=new(u=s("Print")).PrintInfo).fromJSON(t.printInfo),n.printInfo(o)),i=t.stateRules)for(r=0,a=i;r<a.length;r++)(c=a[r]).isRow?e.addRowStateRule(c.state,c.style):e.addColumnStateRule(c.state,c.style);(n=t.freeHeaderArea)&&e.applyFreeHeaderArea(n),e.ghe=t.parameter}},n.prototype.fromJSON=function(t,e,n,i,o){var u,r,a,c,s,l,f,d,h,d,f,e,n,i,u=this,r=u.Mf,a=i&&i.gp,c=i&&i.sb,s=i&&i.cb,l=t.addition,f=l.options;a||c&&s===L.OpenSaveFileType.excel?(c&&s===L.OpenSaveFileType.excel&&(k(l.currentTheme)||((d=new g.TableTheme).fromJSON(l.currentTheme),u.applyTableTheme(d)),f)&&(u.options.sheetTabColor=f.sheetTabColor),a&&(u.options||(u.options={}),u.bNi(f.alternatingRowOptions,f.alternatingRowStyles),l.grouping&&(l.grouping.tree&&u.INi.fromJSON(r,l.grouping,!0),l.grouping.groupInfos)&&u.lZe(l.grouping.groupInfos),f.groupLayout&&u.fZe(f.groupLayout),u.options.allowAddNew=!1),t.rowFilter=E,r.fromJSON(t,e,n,i,o),a&&(l.options.showRowNumber?(r.setColumnCount(h=1,L.SheetArea.rowHeader),r.setColumnVisible(0,!0,L.SheetArea.rowHeader),r.setColumnWidth(0,r.defaults.rowHeaderColWidth,L.SheetArea.rowHeader)):(r.setColumnCount(0,L.SheetArea.rowHeader),1!==(d=r.printInfo()).showRowHeader()&&d.showRowHeader(1)))):c&&s===L.OpenSaveFileType.sjs?(r.ub(t.name+"",!0),r.b2(t.isSelected),r.g8(t.zoomFactor||1),u.TNi(l),u.ANi(l)):(r.ub(t.name+"",!0),r.b2(t.isSelected),r.g8(t.zoomFactor||1),Pt(r,t.visible),u.TNi(l),f=l&&l.dataView,e=r.parent&&r.parent.dataManager(),(i=(n=f&&e.tables[f.tableName])&&n.views[f.name])&&u.kTi(i,!1))},n.prototype.ANi=function(t,e){var n,i,o,u,i,i,i,n=this,i=n.Mf,o=t.dataView,u,i=i.parent.dataManager(),i=o&&i.tables[o.tableName],i=i&&i.views[o.name];n.fromJSONAfterViewFetchedImp(t,i,e)},n.prototype.fromJSONAfterViewFetchedImp=function(t,e,n){var i,o,e;e&&(o=(i=this).Mf,i.suspendPaint(),i.restoreView(e,n),i.INi.fromJSON(i.Mf,t.grouping),e=o.rowFilter(),t.rowFilter&&e.fromJSON(t.rowFilter),i.vNi(i.options.isDesignMode),i.resumePaint())},n.prototype.resetNewView=function(t,e,n){var i,o,u,r,a,c,s,i,r,a,i=this.getDataView(),o=i.gLt,u=i.name,r=i.ILt,a=i.includeDefaultColumns,c=i.LEt,s=i.$Be(),i=i.toJSON(),r={columnInfoOptions:r,includeDefaultColumns:a,options:c};o.removeView(u),(a=o.addView(u,t,e,n)).fromJSON(i),a.tGe(s),this.ize.addUndoChanges({type:v.TableSheetUndoType.ResetViewChanged,oldData:r}),this.restoreView(a)},n.prototype.restoreView=function(t,e){for(var n,i,o,u,e,r,e,u,a,a,n=this,i=n.Mf,o=0;o<t.lFt.length;o++)t.lFt[o]>=t.length()&&(t.lFt.splice(o,1),o--);n.suspendPaint(),t.visibleLength()!==t.length()&&(t.gFt(),t.bde()),(u=t.getColumnInfos()).some(function(t){return t.isGroup})&&(u=u.filter(function(t){return!t.isGroup}),t.setColumnInfos(u)),e?n.refreshBindColumns(E,t):n.kTi(t),e=t.DLt&&0<t.DLt.length,r=t._Lt&&0<t._Lt.length,e&&(t.isHierarchy()?t.KFt(t.DLt):t.JFt(t.DLt)),u=Bt(e=t.NLt,u),e&&!u&&t.filter(e),0<(a=t.lFt.length)&&(i.frozenRowCount(a),n.uNi=a),0<(a=t.CLt.length)&&(i.frozenColumnCount(a),n.jIi=a),t.MFt&&(n.groupBy(t.MFt),e&&u&&t.filter(e),r)&&t.HFt(t._Lt),n.resumePaint()},n.prototype.bNi=function(t,e){t?this.options.alternatingRowOptions={step:t.step,style:this.jNi(t.style)}:e?this.options.alternatingRowOptions={step:[1,1],style:this.jNi(e)}:null!==t&&null!==e||(this.options.alternatingRowOptions=null)},n.prototype.lZe=function(t){this.lMi=t},n.prototype.fZe=function(t){this.options.groupLayout=t},n.prototype.jNi=function(t){var e,n,e,e=Array.isArray(t)?(n=new L.Style,e=new L.Style,t[0]&&n.fromJSON(t[0],!1,null),t[1]&&e.fromJSON(t[1],!1,null),[n,e]):((n=new L.Style).fromJSON(t,!1,null),n);return e},n.prototype.wh=function(t,e,n){var i,o,o,i=this,o=i.Mf;return n&&n.fileType===L.OpenSaveFileType.excel?(o.options.sheetTabColor=i.options.sheetTabColor,o.wh(t,e,n)):((o=o.wh(t,e,n)).lossless.addition=i.dNi(),o)},n.prototype.yh=function(t,e,n,i){var o,u,r,t,t,r,r,r,t,o,r,o=this,u=o.Mf,r=t.lossless.addition;i||((t=L.util.o1(t,"sheetViews&sheetView"))&&(t.zoomScale&&u.zoom(t.zoomScale/100),"1"===t.tabSelected)&&u.b2(!0,!1),o.TNi(r)),t=r&&r.dataView,r=u.parent&&u.parent.dataManager(),(r=(r=t&&r.tables[t.tableName])&&r.views[t.name])&&o.kTi(r,i),i||(r=(o=(t=u.parent)&&t.v2)&&o.sheetsState)&&(r[u.name()]=2)},n.prototype.uw=function(){return this.Mf.uw()},n.prototype.ot=function(){return this.Mf.ot()},n.prototype.hitTest=function(t,e,n,i){return this.Mf.hitTest(t,e,n,i)},n.prototype.getSheet=function(){return this.Mf},n.prototype.getSelections=function(t){return t===L.SheetArea.colHeader?this.Mf.Ut.getSelections(1):this.Mf.getSelections()},n.prototype.zoom=function(t){return 0===arguments.length?this.Mf.zoom():this.Mf.zoom(t)},n.prototype.autoFitRow=function(t){this.Mf.autoFitRow(t)},n.prototype.getColumnWidth=function(t,e,n){return this.Mf.getColumnWidth(t,e,n)},n.prototype.getRowHeight=function(t,e,n){return this.Mf.getRowHeight(t,e,n)},n.prototype.getColumnCount=function(t){return this.Mf.getColumnCount(t)},n.prototype.getRowCount=function(t){return this.Mf.getRowCount(t)},n.prototype.setDataView=function(t){this.kTi(t)},n.prototype.HTi=function(t){var e,n,e=this.Mf,n;(t||this.getDataView())&&e.setRowCount(t.visibleLength()+(this.options.allowAddNew?1:0))},n.prototype.Mji=function(t){var e=this.Mf;t&&(e.setColumnCount(t.getColumnInfos().length),this.HTi(t))},n.prototype.qze=function(){this.Mf.parent.Wp.clear()},n.prototype.kTi=function(t,e){var n,i,o,n,n,i=this.Mf;i.xT||(this.suspendPaint(),i.suspendCalcService(),n=(null==(o=this.getDataView())?void 0:o.name)===(null==t?void 0:t.name),t&&this.WTi(!n),!n&&o&&(null!=(n=o.iGe)&&n.call(o),this.qze()),this.beforeSetDataView(t),i.autoGenerateColumns=!1,i.setDataSource(t),this.Mji(t),t&&(this.refreshBindColumns(),e||(this.actionColumn.options().visible&&this.zNi(),n=t.iRt&&t.iRt.length,this.options.allowAddNew&&n===i.getRowCount()&&this.CNi(),this.wNi(),this.yNi())),this.afterSetDataView(t),i.resumeCalcService(!1),this.resumePaint())},n.prototype.beforeSetDataView=function(t){},n.prototype.afterSetDataView=function(t){},n.prototype.yNi=function(){var o=this,n=o.getDataView();o.VTi=function(t,e){o.mNi(e.row)},o.FTi=function(t,e){o.LNi(e.row,e.changingFields)},o.JTi=function(t,e){o.xNi(e.row)},o.XTi=function(t,e){o.SNi(e.row)},o.KTi=function(t,e){var n,i,n,i=o.getDataView().tableName;e.tableName===i&&o.ZNi(e.row)},o._Ti=function(t,e){o.ONi(e.row,e.reason,e.type)},o.qTi=function(t,e){o.ENi()},o.$Ti=function(t,e){o.GNi(n,e.isDataLengthChanged,e.isColumnCountChanged)},n.bind(b.Events.ItemInserted,o.VTi),n.bind(b.Events.ItemUpdated,o.FTi),n.bind(b.Events.ItemReset,o.JTi),n.bind(b.Events.ItemSaved,o.XTi),n.bind(b.Events.ItemRemoved,o.KTi),n.bind(b.Events.ChangesSubmittedRowFailed,o._Ti),n.bind(b.Events.ChangesSubmitted,o.qTi),n.bind(b.Events.ChangesCancelled,o.$Ti)},n.prototype.WTi=function(t){var e=this,n=e.getDataView();n&&n.gLt&&(e.VTi&&n.unbind(b.Events.ItemInserted,e.VTi),e.FTi&&n.unbind(b.Events.ItemUpdated,e.FTi),e.JTi&&n.unbind(b.Events.ItemReset,e.JTi),e.XTi&&n.unbind(b.Events.ItemSaved,e.XTi),e.KTi&&n.unbind(b.Events.ItemRemoved,e.KTi),e._Ti&&n.unbind(b.Events.ChangesSubmittedRowFailed,e._Ti),e.qTi&&n.unbind(b.Events.ChangesSubmitted,e.qTi),e.$Ti&&n.unbind(b.Events.ChangesCancelled,e.$Ti),t)&&n.wpt()},n.prototype.pNi=function(t){var e,n,t,n,e,n=this.Mf.getDataSource(),t=n.Dve(t)||{},n="function"!=typeof t.value&&!n.GPt(t.value)&&!t.isCross;return!!(t.readonly||t.isGroup||t.isPrimaryKey||n)},n.prototype.jOt=function(t){var e,n,i,e,n,i;return(this.Mf.getDataSource().Dve(t)||{}).isPrimaryKey},n.prototype.kNi=function(t){for(var e,n,i,i,e=1,n=0;n<t.length;n++)(i=t[n].caption)&&e<(i="string"==typeof i?1:i.length)&&(e=i);return e},n.prototype.UNi=function(){var t=0,e=this.hNi;return t=e?e.rowCount:t},n.prototype.QNi=function(t,e,n){var i,o,u,i=this.Mf,o,u;i.getRowCount(L.SheetArea.colHeader)!==t+n&&(i.setRowCount(t+n,L.SheetArea.colHeader),i.ki(L.Events.TableSheetColHeaderRowCountChanged,null,!0)),i.setColumnCount(e,L.SheetArea.colHeader)},n.prototype.RNi=function(t){var e,n,i,o,u,e=this.Mf,n=e.getRowCount(L.SheetArea.colHeader),i=e.getColumnCount(L.SheetArea.colHeader);for(e.clear(0,0,n,i,L.SheetArea.colHeader,L.StorageType.data|L.StorageType.style),e.Cb.clear(L.SheetArea.colHeader),o=0;o<n;o++)if(e.setCellType(o,-1,void 0,L.SheetArea.colHeader),t)for(u=0;u<i;u++)this.wDi(o,u,null,E,L.SheetArea.colHeader)},n.prototype.PNi=function(){var t,e,n,i,o,o,u,o,r,a,c,s,l,f,d,h,t=this.hNi,e=this.Mf;if(t){for(n=e.Ut,i=L.SheetArea.colHeader,o=e.Z_(-1,-1,i),n.W_(i).fromJSON(t.data,!0,{}),e.setStyle(-1,-1,o,i),n.Q_(!0,i).fromJSON(t.rows),u=(o=n.K_(i)).spans,t.spans&&t.spans.length?o.fromJSON(t.spans):u&&u.length&&o.removeSpan(0,u.length),(o=t.data.dataTable)&&(e.Xbt=t.sharedFormulas,(0,Q.dMt)(e,o,e.getRowCount(i),e.getColumnCount(i),i)),(r=new L.CellTypes.Text).isImeAware=function(){return!1},a=0;a<t.rowCount;a++)e.getCell(a,-1,i).cellType(r).locked(!1);for(c=this.UNi(),s=n.getColumnCount(),n.setFreeAreaRowCount(c,i),n.setFreeAreaColumnCount(s,i),t.columnCount=s,l=0;l<s;l++)if(f=e.Z_(-1,l,i))for(a=0;a<c;a++)(d=e.Z_(a,l,i))?((h=new L.Style).h5(f),h.h5(d),n.setStyle(a,l,h,i)):n.setStyle(a,l,f,i)}else n=e.Ut,i=L.SheetArea.colHeader,n.setFreeAreaRowCount(0,i)},n.prototype.YNi=function(t,e,n,i){var o,u,o,u,r,o=this.hNi;o&&((r=(r=(u=(u=(o=(o=(u=(u=o.data)||(o.data={})).dataTable)||(u.dataTable={}))[t])||(o[t]={}))[e])||(u[e]={}))[n]=i)},n.prototype.WNi=function(t,e){var n,i,n=this.rNi;for(I(t)&&(t=t.join(",")),I(e)&&(e=e.join(",")),i=0;i<n.length;i++)n[i].ubt===t&&(n[i].ubt=e),n[i].sbt===t&&(n[i].sbt=e)},n.prototype.HNi=function(t){var e,n,n,i,o,u,r,a,e=this.Mf,n=e.getDataSource();if(n&&(n=n.Dve(t))){for(i=[],u=e.Ut.getFreeAreaRowCount(o=1),r=e.getRowCount(1);u<r;u++)i.push(e.getText(u,t,1));this.WNi(n.caption,i),a=i.every(function(t,e,n){return 0===e||t===n[0]}),n.caption=a?i[0]:i}},n.prototype.VNi=function(t,e,n){var i,o,u,r,a,c,s;if(1<t){for(o=(i=this.Mf).getRowCount(L.SheetArea.colHeader),u=0;u<n.length;u++)if(r=n[u].caption||n[u].value){for(a="string"==typeof r?[r]:r,c=0;c<a.length;c++)i.setValue(e+c,u,a[c],L.SheetArea.colHeader);for(s=a[c-1];c<o;c++)i.setValue(e+c,u,s,L.SheetArea.colHeader)}i.autoMerge(new L.Range(e,-1,t,-1),h.AutoMergeDirection.rowColumn,h.AutoMergeMode.restricted,L.SheetArea.colHeader)}},n.prototype.getFilterButtonVisibleFromColumnInfo=function(t,e,n){var e,i,e,e=e[t],i=!1!==e.allowSort||!1!==e.allowFilterByValue||!1!==e.allowFilterByList;return i=k(e.allowSort)&&k(e.allowFilterByValue)&&k(e.allowFilterByList)&&(e=n.getValue(0,t))&&"object"==typeof e&&!o.Common.ct.W0(e)&&k(e._error||e._code)?!1:i},n.prototype.dZe=function(t){var e,n,i=this.Mf.rowFilter();return i&&i.Dit(t)},n.prototype.hZe=function(t){var e,n,t,e,n=this.Mf,t={tableName:E,colIndex:t};n.Qy().execute({cmd:"clearFilter",sheetName:n.name(),cmdOption:t})},n.prototype.gZe=function(t){var e,n,i=this.Mf.rowFilter();return i&&i.getSortState(t)!==L.SortState.none},n.prototype.bZe=function(t){var e,n,i,e,e=this,n,i;return e.Mf.rowFilter().vZe(t),(e=e.getDataView()).DGe(),e.NGe(e.Dve(t))},n.prototype.MZe=function(t){var e=this,t=e.fDi(t),e=e.getDataView();return t&&(t.GFt||e.$Lt(e.ife(t),!0))},n.prototype.IZe=function(t){var e,n=this.getDataView();return n.uii(n.Dve(t))},n.prototype.gBe=function(o,u){var r,a,r=this,a=r.getDataView();return!a.xRe(o)&&(u=u||a.Dve(o),r.suspendPaint(),a.dUe(u,function(){var t,e,n,i,n,t,e,t=a.Dit();r.dZe(o)&&r.hZe(o),e=!t||!a.Dit(),i=n=!1,r.gZe(o)&&(i=!0,n=r.bZe(o),e||!n||t||(e=!0)),n=!1,r.MZe(o)&&(n=r.IZe(o)),i&&a.Dit()&&(a.dFt(),a.vFt(!0)),e&&i&&a.gFt(),n?(t=a.autoSort,a.autoSort=!0,r.removeGroupBy(),a.autoSort=t):(a.EGe(!0),r.groupBy(a.groupBy()),a.RGe(!0)),r.mZe(o)?(r.togglePinnedColumns([o]),e=r.Kze(r.tDi(u)),r.HWe(e)):r.HWe(o)},function(){r.refreshBindColumns(),r.lze(),r.NZe(o)}),r.resumePaint(),!0)},n.prototype.HWe=function(t,e,n){var i=this;i.Mf.o9e(t,e=void 0===e?1:e,E,n),!1!==n&&i.ize.addUndoChanges({type:v.TableSheetUndoType.RemoveColumns,oldCol:t,oldCount:e})},n.prototype.yBe=function(e,t,n){var i,o,i=this,o=i.getDataView();return(n=n||o.getColumn(e))&&t&&mt(t,n),!(o.xRe(e)||!i.DZe(t,n)||(i.suspendPaint(),o.pUe(n,t,function(t){t.isFilterUpdated?(i.hZe(e),o.EGe(!0),i.groupBy(o.groupBy()),o.RGe(!0)):t.isSortUpdated?(o.EGe(!0),i.groupBy(o.groupBy()),o.RGe(!0)):t.isGroupUpdated&&(o.EGe(!0),o.RGe(!0))},function(){i.refreshBindColumns()}),i.resumePaint(),0))},n.prototype.cBe=function(t,e){var n,i,o,u,n=this;return!!n.DZe(e)&&(i=n.getDataView(),n.suspendPaint(),o=i.nUe(t),u=n.Mf.getColumnCount()>o,i.rUe(t,e,function(){u&&n.VWe(o)},function(){n.refreshBindColumns(),u&&n.lze()}),n.resumePaint(),!0)},n.prototype.VWe=function(t,e,n){var i=this;i.Mf.r9e(t,e=void 0===e?1:e,E,{clearUndoNotInCommand:n}),!1!==n&&i.ize.addUndoChanges({type:v.TableSheetUndoType.AddColumns,oldCol:t,oldCount:e})},n.prototype.FPt=function(t){var e;return null==(e=this.getDataView())?void 0:e.FPt(t,!0)},n.prototype.DZe=function(t,e){var n,i,o,u,r,a,n=this,i;return!(!(!(0,b.isNullOrEmpty)(t.type)||e&&(0,b.isNullOrEmpty)(e.type))||(o="Formula"===t.type&&!x(t.value),u="Formula"!==t.type&&x(t.value),r="Lookup"===t.type&&!n.FPt(t.value),a="Lookup"!==t.type&&!x(t.value)&&(Ct(t.value)||n.FPt(t.value)),o)||u||r||a)&&(!e||n.getDataView().aHe(e,t))},n.prototype.isDisableDefineColumn=function(t){return this.xRe(t)},n.prototype.xRe=function(t){var e,n,e,n;return this.getDataView().xRe(t)},n.prototype.refreshBindColumns=function(t,e){var n,i,o,u,r,e,a,c,s,l,f,d,h,g,f,d,h,g,b,v,M,I,d,f,n=this.Mf,i=e||n.getDataSource();if(i){for(n.suspendPaint(),n.suspendEvent(),(o=n.conditionalFormats)&&o.clearRule(),n.b8&&n.b8.d5(),u=i.getColumnInfos(),r=this.kNi(u),e=this.UNi(),this.QNi(r,u.length,e),this.RNi(t),this.PNi(),this.VNi(r,e,u),a=n.rowFilter(),this.QWe(n,a,u),c=[[]],s=0;s<u.length;s++){if(g=h=d=void 0,"string"==typeof(f=(l=u[s]).value)?x(f)?h=f:d=f:"function"==typeof f&&(g=f.name),f={name:d||h||g},d=l.caption,1===r&&d&&(f.displayName=bt(d)),k(l.width)||(f.width=l.width),k(l.visible)||(f.visible=l.visible),n.bindColumn(s,f),this.JNi(-1,s,l.headerStyle,L.SheetArea.colHeader),this.JNi(-1,s,l.style),n.qgt.nM=i.gLt,n.qgt.getField=i.gLt.POt.getField,l.validator&&(h=l.validator instanceof m.DefaultDataValidator?l.validator:kt(l.validator),n.setDataValidator(-1,s,h)),(g=l.conditionalFormats)&&o)for(b=[new L.Range(-1,s,-1,1)],v=0,M=g;v<M.length;v++)(I=M[v])instanceof A.ConditionRuleBase?(I.ranges([new L.Range(-1,s,-1,1)]),n.conditionalFormats.addRule(I)):Et(o,I,b);d=this.pNi(s),n.getRange(-1,s,-1,1).locked(d),n.getRange(-1,s,-1,1,L.SheetArea.colHeader).locked(!1),f=this.getFilterButtonVisibleFromColumnInfo(s,u,n),a.filterButtonVisible(s,f),l.isCross?c[0].push(s):0<c[0].length&&c.unshift([])}for(s=0;s<u.length;s++)l=u[s],k(l.headerFit)||this.FNi(s,l.headerFit);this.XNi(),this.QTi(),n.resumeEvent(),n.resumePaint(),this.KNi(c),this.UMi&&this.UMi.updatePanelLayout(),this.applyStyleRules()}},n.prototype.ZJe=function(){var t,e,n,i,o,u,t=this.Mf,e=t.getDataSource();if(e&&e.PJe){for(t.suspendPaint(),n=0;n<e.PJe.length;n++)(i=e.PJe[n]).FJe&&t.o9e(n,1,L.SheetArea.viewport,!1);for(e.PJe=E,o=e.getColumnInfos(),n=0;n<o.length;n++)(u=o[n]).nme&&t.r9e(n,1,L.SheetArea.viewport,{clearUndoNotInCommand:!1});t.resumePaint()}},n.prototype.QWe=function(t,e,n){e.Fct((0,L.Ec)(-1,0,-1,n.length)),t.lct=Z},n.prototype._Ni=function(t){var e,n,i,e,t,e=this;return e.qNi()&&(n=e.getDataView(),T(e=(i=e.Mf.rowFilter()).tAi[t]))&&(t=n.getHierarchyNode(e,!0),!k(t))?t.level:0},n.prototype.$Ni=function(){return this.getDataView().getHierarchyColumnIndex(!0)},n.prototype.isShowHierarchyOutlineColumn=function(t){return this.qNi(t)},n.prototype.qNi=function(t){var e,n=this.getDataView();return!k(n)&&n.hasHierarchyColumn(t)},n.prototype.isHierarchyParent=function(){var t,e=this.getDataView();return e&&e.isHierarchy()&&"Parent"===e.gLt.getHierarchyType()},n.prototype.iDi=function(t,e){var n,i,e,n,n=this,i=n.getDataView();if(!k(i)&&!k(e)&&(e=i.Dve(e),!k(e)))return n=n.tDi(e),!k(i.h7t(n,t))},n.prototype.wNi=function(){var t,e,n,i,o,t=this,e=t.Mf;t.qNi()&&(i=(n=t.getDataView().SPt(!0)).options,t.suspendPaint(),(o=e.outlineColumn.options())&&!k(o.columnIndex)&&t.jZe(o.columnIndex),e.outlineColumn.options(f(f({columnIndex:n.index,showIndicator:!0},i),{collapseIndicator:i&&i.collapseIndicator?i.collapseIndicator:R.ARROW_RIGHT,expandIndicator:i&&i.expandIndicator?i.expandIndicator:R.ARROW_DOWN})),e.showRowOutline(!1),e.rowOutlines.KMi=!0,t.resumePaint())},n.prototype.jZe=function(t){var e,n,i,o,u,e=this,n=e.Mf,i,o=e.getDataView().visibleLength();for(e.options.allowAddNew&&n.getCell(o,t).textIndent(E),u=0;u<o;u++)n.getCell(u,t).textIndent(E)},n.prototype.nDi=function(){var t,e,n,i,o,u,r,t=this,e=t.Mf;if(t.qNi()){for(i=(n=t.getDataView()).visibleLength(),o=!1,u=0;u<i;u++)e.outlineColumn.getCollapsed(u)&&(o=(r=n.getHierarchyNode(u)).eDi=!0);return o}},n.prototype.CZe=function(){var t,e,n,i,o,u,t=this,e=t.Mf;if(!t.qNi())return{};for(n={},o=(i=t.getDataView()).visibleLength(),u=0;u<o;u++)n[u]=e.rowOutlines.getCollapsed(u);return n},n.prototype._ze=function(t){var e,n,i,o,u,e=this,n=e.Mf;if(e.qNi())for(o=(i=e.getDataView()).visibleLength(),e.expandAllHierarchyLevels(),e.XNi(),u=0;u<o;u++)n.outlineColumn.setCollapsed(u,t[u])},n.prototype.oDi=function(){var t,e,n,i,o,u,t=this,e=t.Mf;if(t.qNi())for(i=(n=t.getDataView()).visibleLength(),o=0;o<i;o++)(u=n.getHierarchyNode(o)).eDi&&(u.eDi=!1,e.outlineColumn.setCollapsed(o,!0))},n.prototype.uDi=function(t){var e=this;e.qNi()&&(e.suspendPaint(),!1!==t&&e.expandAllHierarchyLevels(),e.XNi(),!1!==t&&e.oDi(),e.resumePaint())},n.prototype.XNi=function(){var t,e,n,i,o,u,r,a,c,s,t=this,e=t.Mf;if(t.qNi()){for(n=t.getDataView(),i=t.$Ni(),t.suspendPaint(),o=n.visibleLength(),t.options.allowAddNew&&e.getCell(o,i).textIndent(E),u=0;u<o;u++)r=n.getHierarchyNode(u),a=k(r)?E:r.level,e.getCell(u,i).textIndent(a);if(e.outlineColumn.refresh(),(c=n.SPt())&&c.options&&c.options.showCheckbox){for(u=0;u<o;u++)r=n.getHierarchyNode(u),s=!k(r)&&r.cDi,e.outlineColumn.ect(u,s);e.outlineColumn.refresh()}t.resumePaint()}},n.prototype.rDi=function(){var t=this;t.suspendPaint(),t.XNi(),t.resumePaint()},n.prototype.aDi=function(t){var e=this;return!(!e.qNi()||!T(t))&&e.Mf.outlineColumn.getCheckStatus(t)},n.prototype.sDi=function(){var t,e,n,i,o,t=this;if(t.qNi())for(e=t.Mf,i=0,o=(n=t.getDataView()).visibleLength();i<o;i++)n.getHierarchyNode(i).cDi=e.outlineColumn.getCheckStatus(i)},n.prototype.getHierarchyMaxLevel=function(){return this.MDi()},n.prototype.MDi=function(){for(var t,e,n,i,o,u,t,e=this.getDataView(),n=e.visibleLength(),i=-1,o=0;o<n;o++)i<(u=e.getHierarchyNode(o).level)&&(i=u);return i},n.prototype.showHierarchyItems=function(t){this.IDi(t,!1)},n.prototype.hideHierarchyItems=function(t){this.IDi(t,!0)},n.prototype.IDi=function(t,e){var n=this,i=n.Mf;n.qNi()&&(i.suspendPaint(),t.forEach(function(t){n.gDi(t)&&i.outlineColumn.setCollapsed(t,e)}),i.outlineColumn.refresh(),i.resumePaint())},n.prototype.NDi=function(t){var e,n,i,o,e=this;if(e.qNi()){for(n=e.Mf,i=e.lDi(),n.suspendPaint(),o=0;o<i;o++)n.outlineColumn.setCollapsed(o,t);n.outlineColumn.refresh(),n.resumePaint()}},n.prototype.expandAllHierarchyLevels=function(){this.NDi(!1)},n.prototype.collapseAllHierarchyLevels=function(){this.NDi(!0)},n.prototype.lDi=function(){var t,e,n;return this.getDataView().visibleLength()},n.prototype.gDi=function(t){return t<this.lDi()},n.prototype.expandHierarchyLevel=function(t){var e,n,i,o,u,r,e=this;if(e.qNi()){for(n=e.Mf,i=e.getDataView(),o=e.lDi(),e.suspendPaint(),u=0;u<o;u++)(r=i.getHierarchyNode(u).level)<t?n.outlineColumn.setCollapsed(u,!1):n.outlineColumn.setCollapsed(u,!0);n.outlineColumn.refresh(),e.resumePaint()}},n.prototype.promoteHierarchyLevel=function(t){var e=this;e.qNi()&&(e.getDataView().promoteHierarchyLevel(t),e.rDi())},n.prototype.demoteHierarchyLevel=function(t,e){var n=this;n.qNi()&&(n.getDataView().demoteHierarchyLevel(t,e),n.rDi())},n.prototype.moveUp=function(t){var e=this,n=e.getDataView();n.hasHierarchyRowOrder()&&(n.moveUp(t),e.rDi())},n.prototype.moveDown=function(t){var e=this,n=e.getDataView();n.hasHierarchyRowOrder()&&(n.moveDown(t),e.rDi())},n.prototype.hasHierarchyRowOrder=function(){return this.qX()},n.prototype.qX=function(){var t,e;return this.getDataView().hasHierarchyRowOrder()},n.prototype.addHierarchyItemBefore=function(t,e){var n,i,o,u,n=this,i=n.Mf,o=n.getDataView();o.hasHierarchyRowOrder()&&(this.ize.addUndoChanges({type:v.TableSheetUndoType.StoreTreeData}),u=n.nDi(),i.ffe(t,1,3,{rowExpand:!1,clearUndoNotInCommand:!1}),o.addHierarchyItemBefore(t,e||{}),n.uDi(u),this.ize.addUndoChanges({type:v.TableSheetUndoType.ApplyTreeData}))},n.prototype.addHierarchyItemAfter=function(t,e){var n,i,o,u,o,n=this,i=n.Mf,o=n.getDataView();o.hasHierarchyRowOrder()&&(this.ize.addUndoChanges({type:v.TableSheetUndoType.StoreTreeData}),u=n.nDi(),o=o.addHierarchyItemAfter(t,e||{}),i.ffe(t+o,1,3,{rowExpand:!1,clearUndoNotInCommand:!1}),n.uDi(u),this.ize.addUndoChanges({type:v.TableSheetUndoType.ApplyTreeData}))},n.prototype.addHierarchyItemAbove=function(t,e){var n,i,o,u,n=this,i=n.Mf,o=n.getDataView();o.hasHierarchyRowOrder()&&(this.ize.addUndoChanges({type:v.TableSheetUndoType.StoreTreeData}),u=n.nDi(),i.ffe(t,1,3,{rowExpand:!1,clearUndoNotInCommand:!1}),o.addHierarchyItemAbove(t,e||{}),n.uDi(u),this.ize.addUndoChanges({type:v.TableSheetUndoType.ApplyTreeData}))},n.prototype.addHierarchyItemBelow=function(t,e){var n,i,o,u,o,n=this,i=n.Mf,o=n.getDataView();o.hasHierarchyRowOrder()&&(this.ize.addUndoChanges({type:v.TableSheetUndoType.StoreTreeData}),u=n.nDi(),o=o.addHierarchyItemBelow(t,e||{}),i.ffe(t+o,1,3,{rowExpand:!1,clearUndoNotInCommand:!1}),n.uDi(u),this.ize.addUndoChanges({type:v.TableSheetUndoType.ApplyTreeData}))},n.prototype.KNi=function(t){var e,n,i,o,u,e=this.Mf,n=this.cNi||[[]];for(e.suspendPaint(),i=0;i<n.length;i++)0<(o=n[i]).length&&e.cellStates.getCollection(L.CellStatesType.readonly)&&(u=new L.Range(-1,o[0],-1,o.length),e.cellStates.remove(u,L.CellStatesType.readonly));for(this.cNi=t,i=0;i<t.length;i++)0<(o=t[i]).length&&e.cellStates.add(new L.Range(-1,o[0],-1,o.length),L.CellStatesType.readonly,new L.Style({backColor:"#e6e6e6"}));e.resumePaint()},n.prototype.applyStyleRules=function(){var t,e,n,i,o,u,r,u,a,r,c,s,u,l,f,t=this.Mf,e,n=t.getDataSource().getStyleRules();if(n)for(o in i=t.conditionalFormats,this.clearStyleRuleConditionalFormats(),n)n[o]&&(r=(u=n[o]).style,u=u.rule,r)&&u&&(a=void 0,a=r instanceof L.Style?r:new L.Style(r),r=u.formula,c=u.state,s=u.direction,u=u.area,l=[new L.Range(-1,-1,-1,-1)],f={},r?Et(i,f={ruleType:"formulaRule",formula:r,style:a},l):T(c)&&T(s)&&(1!==s&&3!==s||this.addRowStateRule(c,a),2===s&&u===L.SheetArea.colHeader?this.addColumnHeaderStateRule(c,a):2!==s&&3!==s||this.addColumnStateRule(c,a)))},n.prototype.DDi=function(t){var e,n,i,o,u,r,a,c,s,r;if(t&&(n=(e=this.Mf).conditionalFormats))for(o=(i=n.getRules()).length-1;0<=o;o--)r=(u=i[o]).ruleType(),c=(a=u.ranges())[0],s=r===A.RuleType.rowStateRule||r===A.RuleType.columnStateRule,r=r===A.RuleType.formulaRule&&-1===c.col&&-1===c.colCount,(s||r)&&t(u,n)},n.prototype.clearStyleRuleConditionalFormats=function(){this.DDi(function(t,e){e.removeRule(t)})},n.prototype.refreshStyleRuleCache=function(){this.DDi(function(t,e){e.RX(t),e.fE(t)})},n.prototype.fDi=function(t,e){var n,i,o,n,i=this.Mf.getDataSource();return i&&(o=i.Dve(t,!0,e))||null},n.prototype.Kze=function(t){for(var e,n,i,o,n=this,i=n.endColumn(),o=0;o<i+1;o++)if((null==(e=n.fDi(o))?void 0:e.name)===t)return o;return null},n.prototype.dDi=function(t){return this.tDi(this.fDi(t))},n.prototype.tDi=function(t){var t;if(t)return"string"==typeof(t=t.value)?t:"function"==typeof t?t.name:void 0},n.prototype.JNi=function(t,e,n,i){var o,u,n,o=this.Mf;k(i)||i===L.SheetArea.viewport?i=3:n&&(n.cellType&&"98"!==n.cellType.typeName&&"107"!==n.cellType.typeName&&delete n.cellType,delete n.tabStop,delete n.imeMode,delete n.cellButtons,delete n.dropDowns),u=new L.Style,n&&(this.hDi(n.dropDowns),n=n instanceof L.Style?n:new L.Style(n),u.h5(n,!0),this.wZe(u))&&this.pZe(u),o.setStyle(t,e,u,i)},n.prototype.Ywt=function(t,e,n){var i,o=this.getDataView();return o&&o.Ywt(t,e,n)},n.prototype.nMt=function(t,e){var n,i=this.getDataView();return i&&i.nMt(t,e)},n.prototype.hDi=function(t){var e,n,i,o,e,n,i,o=this.Mf.parent.dataManager();t&&t.forEach(function(t){var t,e,t,n,t=t.option;t&&t.dataSource&&(e=t.dataSource,(e=t.dataSource instanceof b.View?t.dataSource={datamanagerTable:e.tableName,columns:e.yLt}:e).datamanagerTable)&&(t=o.tables[e.datamanagerTable],e.viewName=e.datamanagerTable+Math.random().toString(16).substring(1,8),(n=t.GRt(e.viewName,e.columns)).fetch())})},n.prototype.enablePinRow=function(){for(var t,e,n,i,i,o,u,t,e,r,a,c,s,l,f,d,f,t=this,e=t.Mf,n=10,i=t.groupBy(),i=i&&Array.isArray(i)&&0<i.length,o=t.qNi(),u,t=t.getDataView().lFt,e=e.getSelections(),r=t&&t.length,a=0,c=0,s=0,l=e;s<l.length;s++)(f=l[s])&&(d=f.row,c+=f=f.rowCount,(d=-1===d?0:d)<r)&&(a+=Math.min(f+d,r)-d);return!(i||o||10<r-a+(c-a))},n.prototype.enablePinColumn=function(){for(var t,e,n,i,i,o,t,o,t,e,u,r,a,c,s,l,f,l,t=this,e=t.Mf,n=10,i=t.groupBy(),i=i&&Array.isArray(i)&&0<i.length,o=e.getActiveColumnIndex(),t=t.getDataView(),o=t&&t.Dve(o),t=t.CLt,e=e.getSelections(),u=t&&t.length,r=0,a=0,c=0,s=e;c<s.length;c++)(l=s[c])&&(f=l.col,a+=l=l.colCount,(f=-1===f?0:f)<u)&&(r+=Math.min(l+f,u)-f);return!(i||o&&o.isCross||10<u-r+(a-r))},n.prototype.FNi=function(t,e){var n,i,e,n=this.Mf;switch(e){case"vertical":i=L.ColumnHeaderFitMode.vertical;break;case"stack":i=L.ColumnHeaderFitMode.stack;break;default:i=L.ColumnHeaderFitMode.normal}e=n.defaults.colHeaderRowHeight,n.GB(t,i),e!==n.defaults.colHeaderRowHeight&&this.ize.addUndoChanges({type:v.TableSheetUndoType.DefaultRowHeightChanged,oldData:{size:e,sheetArea:L.SheetArea.colHeader},newData:{size:n.defaults.colHeaderRowHeight,sheetArea:L.SheetArea.colHeader}})},n.prototype.getDataView=function(){return this.Mf.getDataSource()},n.prototype.setDefaultRowHeight=function(t,e){var n,i,n=this.Mf.defaults,i=n.rowHeight;e===L.SheetArea.colHeader?(i=n.colHeaderRowHeight,n.colHeaderRowHeight=t):n.rowHeight=t,i!==t&&this.ize.addUndoChanges({type:v.TableSheetUndoType.DefaultRowHeightChanged,oldData:{size:i,sheetArea:e},newData:{size:t,sheetArea:e}})},n.prototype.getDefaultRowHeight=function(t){var e=this.Mf.defaults;return(t=k(t)?3:t)===L.SheetArea.corner||t===L.SheetArea.colHeader?e.colHeaderRowHeight:e.rowHeight},n.prototype.MNi=function(){var t;this.gNi=[ht]},n.prototype.rowActionOptions=function(t){var e,n,e=this;return I(t)&&(n=a([],this.gNi,!0),e.clearRowActions(),e.gNi=e.DNi(t),e.rebuildRowActionOptions(),e.NNi(),e.bDi(),this.ize.addUndoChanges({type:v.TableSheetUndoType.RowAction,oldData:n,newData:this.gNi})),e.DNi()},n.prototype.rebuildRowActionOptions=function(){var t,e,n,i,o,u,t=this,e,n=Zt(t.gNi,N);Ut(n)&&(i=r[D],o=r[j],u=r[C],i.icons=n.icons.slice(0,1),(i=J(i)).command=n.command,o.icons=n.icons.slice(1,4),u.icons=n.icons.slice(4,5),n.subActionOptions=[t.RTi(i),t.RTi(o),t.RTi(u)])},n.prototype.NNi=function(){var t=this,e=t.gNi;k(t.getParent())||L.Commands.iMi(t.getParent().commandManager(),e)},n.prototype.QTi=function(){var n,i,o,t,e,n=this,i=n.getDataView();if(i)for(n.PTi={},o=i.getColumn(),t=function(t){var e=o[t],t=e.value;if("string"!=typeof t||n.PTi.hasOwnProperty(t))return"continue";Object.defineProperty(n.PTi,t,{get:function(){return i._ve(n.PTi.YTi,e)}})},e=0;e<o.length;e++)t(e)},n.prototype.RTi=function(t){return t.name===D?t.BTi=Ft:t.name===j?t.BTi=_t:t.name===C&&(t.BTi=Jt),t},n.prototype.bDi=function(){var e,t,n,i,o,u,o,r,a,c,s,l,e=this,t=e.Mf,n=e.gNi,i=n.length,o=e.options.showRowNumber?1:0,u=1;for(t.suspendPaint(),t.setColumnCount(1+i+o,L.SheetArea.rowHeader),o=e.groupOutlinePosition(),t.setColumnVisible(0,o===d.GroupOutlinePosition.rowHeader||o===d.GroupOutlinePosition.groupCellAll,L.SheetArea.rowHeader),e.QTi(),r={isPinnedRow:function(t){return e.ADi(t)},isInsertedRow:function(t){return e.vDi(t)},isUpdatedRow:function(t){return e.jDi(t)},isNewRow:function(t){return e.zDi(t)},hasWarning:function(t){return e.CDi(t)},getDataItem:function(t){return e.PTi.YTi=t,e.PTi}},a=0;a<i;a++)s=1+a,S((c=n[a]).tooltip)&&e.wDi(-1,s,c.tooltip),e.RTi(c),(l=new B.RowAction(c,r)).build(e.yDi(c)),t.setCellType(-1,s,l,L.SheetArea.rowHeader);t.resumePaint()},n.prototype.clearRowActions=function(){var t,e,n,i,o,u,r,a,t=this,e=t.Mf,n=t.gNi,i=n.length,o=1;for(e.suspendPaint(),u=0;u<i;u++)a=1+u,(r=n[u]).tooltip&&t.wDi(-1,a,null),e.setStyle(-1,a,null,L.SheetArea.rowHeader);e.resumePaint()},n.prototype.yDi=function(t){var e=this,n=t.name===j||t.name===N,t=t.name===w||t.name===p,i=e.mDi.bind(e),e=e.LDi.bind(e);return n?{enabled:i}:t?{enabled:e,visible:i}:{enabled:i,visible:i}},n.prototype.n4i=function(t){var e;return!this.jFt||this.VDi(t)},n.prototype.mZe=function(t){var e,n;return t<this.Mf.frozenColumnCount()},n.prototype.ADi=function(t){var e,n;return t<this.Mf.frozenRowCount()},n.prototype.xDi=function(t){for(var e,n,i,o,e,n=this.gNi,i=1,o=0;o<n.length&&n[o].name!==t;o++);return o===n.length?-1:1+o},n.prototype.SDi=function(){var t=this,e=t.xDi(C);return e=-1===e?t.xDi(N):e},n.prototype.zA=function(t){return t.sheetName=this.name(),this.getParent().commandManager().execute(t)},n.prototype.CDi=function(t,e){var n,i,n=this;if(T(t))return(i=n.SDi())===(e=T(e)?e:i)&&!k(n.ZDi(t))},n.prototype.ZDi=function(t){var e,n=this.getDataView();return n&&n.getErrorInfo(t)},n.prototype.ODi=function(t){var e,t=this.ZDi(t);if(!k(t))return t.reason},n.prototype.wDi=function(t,e,n,i,o){void 0===o&&(o=L.SheetArea.rowHeader);var u,r=this.Mf;i&&r.getCell(t,e,o).tag(n),r.Ut.$n(t,e,n,o)},n.prototype.wZe=function(t){return t&&t.cellType&&"8"===t.cellType.typeName},n.prototype.pZe=function(t){var t=t.cellType;t.yZe=!0,t.W7e=!0,t.J7e=function(t,e,n){var i,t,t,i=this,t=t.NMi.getDataView(),t=t&&t.BGe(e,n);return t?{id:i._id,visited:t.visited}:Z},t.K7e=function(t,e,n){var t=t.NMi.getDataView();t&&t.PGe(e,n,{visited:!0})}},n.prototype.xZe=function(t){var e,n,i,e=this,n=e.getDataView();if(n&&!(S(t)&&(t=e.Kze(t),k(t))||(i=n.Dve(t,!0,!0),k(i))))return(i=f({},i)).caption=bt(i.caption),x(i.value)&&(i.formula=i.value,"formula"!==i.dataType||(0,b.isNullOrEmpty)(i.name)||x(i.name)?i.value=Z:i.value=i.name),i},n.prototype.AZe=function(t,e,i){var a,n,o,u,a=this,n=a.getParent();n.iy(),a.$ze&&a.$ze.close(),o=T(i)&&a.getDataView()?a.xZe(i):{},t-=(u=n.uC()).left,e-=u.top,a.$ze=new W.TZe(n.j2(),L.util.gi(n&&n.Ti),{columnTypeItems:a.options.columnTypeItems,column:o,getSheet:function(){return a.Mf},getLookup:function(t){var e;return(null==(e=a.getDataView())?void 0:e.KBe(t))||[]},getSampleValue:function(n){var i,o,t,e,t,u,i=a.getDataView();if(i){if(x(t=n.formula||n.value))return a.CCi(t);if(t=function(){for(var t=0,e=i.visibleLength();t<e&&(o=i.ufe(n,t),k(o));t++);},(e=Ct(n.value))&&(t(),!k(o)))return o;if("number"===(u=n.dataType||i.XBe(n)))return 0;if("date"===u)return new Date;e||t()}return o},getColumnBy:function(t){return a.xZe(t)},getColumnFields:function(){var t,e,n,i,o,u,r,t=a.getDataView(),e=[];if(t)for(o=n=t.getColumnInfos(!(i=0),!0);i<o.length;i++)(r=(u=o[i]).value)&&"string"==typeof r&&-1===r.indexOf("=")&&!u.cross&&e.push(r);return e},getTriggerFields:function(){var t,e,n,i,o,u,r,t=a.getDataView(),e=[];if(t)for(o=n=t.getColumnInfos(!(i=0),!0);i<o.length;i++)!(r=(u=o[i]).value)||"string"!=typeof r||-1!==r.indexOf("=")||-1!==r.indexOf(".")||u.cross||u.isRelationship||e.push(r);return e},isRelationship:function(t){var e=a.getDataView();return e&&e.FPt(t,!0)},onOpening:function(){n.focus(!1)},onOpened:function(){a.getSheet().rt.u2()},onSaving:function(e){var t,n;e.column&&(e.column.caption=vt(e.column.caption)),e.originalColumn&&(e.originalColumn.caption=vt(e.originalColumn.caption)),e.col=i,a.options.submitDefineColumnCommand===lt?!1!==(t=a.zA(e))&&a.$ze.close():(e.command=e.cmd,e.cmd=a.options.submitDefineColumnCommand,t=a.zA(e),"function"==typeof e.onCompleted?(n=e.onCompleted,delete e.onCompleted,n(function(t){t&&t.success&&(e.cmd=e.command,a.zA(e)),a.$ze&&a.$ze.close()})):!1!==t&&a.$ze.close())},onClosed:function(){a.$ze=Z,n.focus()}}),a.$ze.rQ(t,e)},n.prototype.getChanges=function(){var t,e,t,e=this.Mf.getDataSource();if(e)return e.getChanges()},n.prototype.submitChanges=function(){var i,t,n,i=this,t,n=this.Mf.getDataSource();return n?(i.beforeSubmitChanges(),new Promise(function(e){n.submitChanges(function(t,e,n){i.ONi(t,e,n)}).then(function(t){i.ENi(t),e()})})):Promise.resolve()},n.prototype.beforeSubmitChanges=function(){},n.prototype.ONi=function(t,e,n){var i,o,i,o=this.Mf;"delete"===n&&o.ffe(t,1,3,{rowExpand:!1,clearUndoNotInCommand:!1})},n.prototype.ENi=function(t){var e,n,i,e,e=this,n=e.Mf,i,e=n.getDataSource().visibleLength()+(e.options.allowAddNew?1:0);n.setRowCount(e),n.repaint()},n.prototype.cancelChanges=function(){var t,e,n,i,t,e=this.Mf.getDataSource();e&&(n=e.isDataLengthChanged(),i=(this.getChanges()||[]).some(function(t){return"addColumn"===t.type||"removeColumn"===t.type}),this.beforeCancelChanges(),e.cancelChanges(),this.GNi(e,n,i))},n.prototype.beforeCancelChanges=function(){},n.prototype.GNi=function(t,e,n){var i,o,u,r,i=this.Mf;this.suspendPaint(),u=(o=i.getRowCount())-1,r=i.getColumnCount(),i.Ut.clear(0,0,u,r,L.StorageType.data,[]),i.clearPendingChanges({row:0,col:0,rowCount:u,colCount:r,clearType:L.ClearPendingChangeType.dirty|L.ClearPendingChangeType.insert|L.ClearPendingChangeType.delete}),e&&(this.HTi(t),this.EDi()),n&&this.refreshBindColumns(),this.sze()&&this.WDi(),this.resumePaint()},n.prototype.EDi=function(){var t,e,n,i,o,u,t,e;if(!this.getDataView().autoFilter){for(i=(n=this.Mf).rowFilter().Mct.slice(),n.suspendPaint(),o=0;o<i.length;o++)u=i[o],n.Qy().execute({cmd:"clearFilter",sheetName:n.name(),cmdOption:{colIndex:u}});n.resumePaint()}},n.prototype.yy=function(t,e){var n,i=this.Mf;i.getParent().ib.yy(i,t||0,e||0),i.tw()},n.prototype.GDi=function(t){var e=this,n=e.Mf,i=e.uNi;t<i&&i===n.getViewportTopRow(1)&&e.yy(t)},n.prototype.wy=function(t,e){var n,i=this.Mf;i.getParent().ib.wy(i,t||0,e||0),i.ow()},n.prototype.pDi=function(t){var e=this,n=e.Mf,i=e.jIi;t<i&&i===n.getViewportLeftColumn(1)&&e.wy(t)},n.prototype.togglePinnedRows=function(t){var e,n,n,e,n=this.Mf.getDataSource();if(n&&!this.jFt&&!this.qNi())return this.ize.startAddComboChanges(),n=n.togglePinnedRows(t),this.ize.addUndoChanges({type:v.TableSheetUndoType.PinnedRowsChanged}),this.Rze(),this.ize.endAddComboChanges(),n},n.prototype.Rze=function(){var t,e,t=this.Mf,e=this.Mf.getDataSource().togglePinnedRows();if(-1===e)throw(0,l.getSR)().EXP_TooManyPinRecords;e!==this.uNi&&(this.suspendPaint(),t.frozenRowCount(e),this.GDi(e),this.resumePaint(),this.uNi=e)},n.prototype.togglePinnedColumns=function(t){var e,n,i,i,i,o,n,t,i,e=this.Mf,n=e.getDataSource();if(n&&!this.jFt)return i=this.kDi(),0<=(i=t.indexOf(i))&&t.splice(i,1),i=this.UDi(),o=e.rowFilter().BDi(),this.ize.startAddComboChanges(),n=n.togglePinnedColumns(t),this.Qze(i,o,n),t=this.UDi(),i=e.rowFilter().BDi(),this.ize.addUndoChanges({type:v.TableSheetUndoType.PinnedColumnsChanged,oldData:{oldFilterColumnsMap:M(t),oldSortColumnsMap:M(i)}}),this.ize.endAddComboChanges(),n},n.prototype.Qze=function(t,e,n){var n,i,n=null!=n?n:this.Mf.getDataSource().togglePinnedColumns(),i=this.Mf;if(-1===n)throw(0,l.getSR)().EXP_TooManyPinRecords;this.QDi(t),i.rowFilter().RDi(e),this.suspendPaint(),this.refreshBindColumns(),i.frozenColumnCount(n),this.NZe(),this.pDi(n),this.resumePaint(),this.jIi=n},n.prototype.UDi=function(){var t,e,n,t,t,i,o,u,r,a,t=this.Mf,e,n=t.getDataSource().oPt,t=t.rowFilter(),t=t&&t.Mct,i={};if(t&&t.length)for(o=-1,u=0,r=t;u<r.length;u++)a=r[u],i[o=n&&n.length?n[a]:a]=a;return i},n.prototype.QDi=function(t){var e,n,i,e,o,u,r,a,c,s,c,l,f,e=this.Mf,n,i=e.getDataSource().oPt,e=e.rowFilter(),o=e&&e.Mct,u=e&&e.rrt,r={};for(a in t)t.hasOwnProperty(a)&&(s=t[c=+a],(c=i&&0<i.length?i.indexOf(c):c)!==s)&&(o[o.indexOf(s)]=c,l=u[s],delete u[s],r[c]=l);for(f in r)r.hasOwnProperty(f)&&(u[f]=r[f])},n.prototype.PDi=function(){var t=this.uNi,e=this.jIi;this.suspendPaint(),0<t&&this.togglePinnedRows(Gt(t)),0<e&&this.togglePinnedColumns(Gt(e)),this.resumePaint()},n.prototype.nPt=function(){var t,e,n;this.Mf.getDataSource().nPt()},n.prototype.nDe=function(){var t,e,n,i,o,u,r,t=this,e=t.Mf,n=t.getDataView(),i=e.H3,o=[];if(o=i.J$?Object.keys(i.J$).reduce(function(t,e){var e,e,e,e=null!=(e=i.J$[e])?e:{},e=e.name||e.dataField;return e&&t.push(e),t},[]):Object.keys(i.Pq).map(function(t){return i.Pq[t]}),u=n.getColumnInfos().map(function(t){return n.ife(t)}),o.length!==u.length)t.eDe();else for(r=0;r<o.length;r++)if(o[r]!==u[r])return void t.eDe()},n.prototype.WDi=function(t,e,n){var i=this.Mf,o=this.jFt,u=this.lMi,r=i.getDataSource();o&&r.pde(t)&&(this.suspendPaint(),!1!==e&&this.nDe(),this.Mf.kFe&&this.Mf.kFe(),this.INi.Cze(this.options.groupLayout.mode),this.INi.Tze(this.options.groupLayout),this.INi.Hc(r.FFt,i.getRowCount()-1-(this.options.allowAddNew?1:0),i,u,n),this.resumePaint())},n.prototype.groupBy=function(t){var e,n,i,t,e=this.Mf,n=e.getDataSource();if(!n||0===arguments.length||!I(t)||this.qNi())return n&&n.groupBy();this.suspendPaint(),e.suspendCalcService(),this.PDi(),this.jFt=!0,i=M(this.lMi),this.lMi=M(t),n.$Je(!this.sze()),n.groupBy(this.lMi),this.WDi(E,!1),this.eDe(),(t=e.rowFilter())&&t.SZe(),e.resumeCalcService(!1),this.resumePaint(),this.UMi&&this.UMi.updatePanelLayout(),this.ize.addUndoChanges({type:v.TableSheetUndoType.GroupOptions,oldData:i,newData:this.lMi})},n.prototype.eDe=function(t,e){var n,i,o,u,o;void 0===t&&(t=d.GroupLayoutMode.tabular),u=(o=(i=(n=this.Mf).getDataSource()).getColumnInfos()).length,o=o.filter(function(t){return t.isGroup}).length,this.ZJe(),n.setColumnCount(u),this.refreshBindColumns(e),0<o?(n.Cb.clear(L.SheetArea.viewport),t===d.GroupLayoutMode.tabular&&n.autoMerge((0,L.Ec)(-1,0,-1,o),h.AutoMergeDirection.column,h.AutoMergeMode.restricted)):this.sze()&&n.Cb.clear(L.SheetArea.viewport)},n.prototype.removeGroupBy=function(){var t,e,n,e,e,t=this.Mf,e=t.getDataSource();e&&!this.qNi()&&(n=M(this.lMi),this.jFt=!1,this.lMi=E,this.suspendPaint(),t.suspendCalcService(),this.detailColumnsVisible(!0),e.removeGroupBy(),e=e.getColumnInfos().length,t.setColumnCount(e),this.refreshBindColumns(),t.Cb.clear(L.SheetArea.viewport),this.Mf.kFe(),this.INi.L0(t),(e=t.rowFilter())&&e.SZe(),t.resumeCalcService(!1),this.resumePaint(),this.UMi&&this.UMi.updatePanelLayout(),this.ize.addUndoChanges({type:v.TableSheetUndoType.GroupOptions,oldData:n}))},n.prototype.detailColumnsVisible=function(t){var e,n,i,o,u,r,e=this.Mf,n=e.getDataSource();if(n){if(i=n.detailColumnsVisible(),0===arguments.length)return i;if((t===i||t||!this.sze(!0))&&(n.detailColumnsVisible(t),n.BFt)){for(this.suspendPaint(),o=n.getColumnInfos(),u=0;u<o.length;u++)(r=o[u]).isGroup||e.setColumnVisible(u,r.visible);this.HDi(),this.resumePaint()}}},n.prototype.HDi=function(){var t=this.lMi,e=this.detailColumnsVisible();t&&!e&&this.expandGroup(t[t.length-1].field,!1)},n.prototype.groupOutlinePosition=function(t){var e,n;if(0===arguments.length)return this.INi.TMi();e=this.INi.TMi(),n=this.Mf,this.suspendPaint(),this.INi.TMi(n,t),this.resumePaint(),this.ize.addUndoChanges({type:v.TableSheetUndoType.GroupOutlinePosition,oldData:e,newData:t})},n.prototype.Ize=function(t,e){var n,i,o;this.jFt&&(i=(n=this.options.groupLayout).mode,o=this.getDataView())&&(this.suspendPaint(),t&&(i===d.GroupLayoutMode.tabular?(o.$Je(!0),this.FWe()):(0,O.isGroupOutlineCondensedLayout)(i)&&(this.JWe(),o.$Je(!1),this.detailColumnsVisible()||this.detailColumnsVisible(!0))),this.WDi(E,!1,e),this.eDe(i,t),this.resumePaint())},n.prototype.XWe=function(){var t,e,n,i,t=this.getDataView(),e=0;if(t)for(n=t.getColumn();e<n.length&&(i=n[e]).isGroup;e++);return e},n.prototype.JWe=function(){var t=this;t.HWe(0,t.XWe(),!1)},n.prototype.FWe=function(){var t=this;t.VWe(0,t.XWe(),!1)},n.prototype.lze=function(){this.sze(!0)&&(this.WDi(),this.ize.addUndoChanges({type:v.TableSheetUndoType.ResetGroupOutline}))},n.prototype.zZe=function(){return this.options.groupLayout},n.prototype.sze=function(t){return(!t||this.jFt)&&(0,O.isGroupOutlineCondensedLayout)(this.gze())},n.prototype.uZe=function(){return(0,O.isGroupCondensedLayout)(this.gze())},n.prototype.gze=function(){var t=this.zZe();return t&&Nt(t.mode)},n.prototype.LZe=function(){var t=this.zZe();return t&&Dt(t.position)},n.prototype.pze=function(){return"footer"!==this.LZe()},n.prototype.expandGroup=function(t,e){var n,i,o,n=this.lMi;n&&!(i=e&&t===n[n.length-1].field&&!this.detailColumnsVisible())&&(this.suspendPaint(),o={expand:!e,indexs:[]},this.INi.uMi(n,t,e,function(t,e){o.level=t,o.indexs.push(e)}),this.ize.addUndoChanges({type:v.TableSheetUndoType.ExpandGroupByLevel,oldData:o,newData:{field:t,expand:e}}),this.resumePaint())},n.prototype.expandGroupItem=function(e,n,i){var o,t,u,r,o=this,t=this.lMi;t&&!(u=i&&e===t.length-1&&!this.detailColumnsVisible())&&(this.suspendPaint(),r={index:n,level:e},this.INi.aMi(e,n,i,function(t){r.expand=t,o.ize.addUndoChanges({type:v.TableSheetUndoType.ExpandGroupItem,oldData:r,newData:{index:n,level:e,expand:i}})}),this.resumePaint())},n.prototype.VDi=function(t){return this.sMi(t,X,0)},n.prototype.DMi=function(t,e){return!(-1<t)||this.sMi(e,t,0)},n.prototype.sMi=function(t,e,n,i,o){return this.WWe||this.INi.sMi(t,e,n,i,o)},n.prototype.e4i=function(t,e,n){var i,n,n,i=this;return!(!i.jFt||n!==L.SheetArea.viewport||!(n=i.Mf.getDataSource())||((n=n.Dve(e))&&n.isGroup?i.DMi(n.OFt,t):i.VDi(t)))},n.prototype.MMi=function(t){return this.INi.MMi(t)},n.prototype.IMi=function(t,e){return this.INi.IMi(t,e)},n.prototype.gMi=function(t){return this.INi.gMi(t)},n.prototype.FDi=function(t){var e,e,e=this.Mf.getDataSource();return!!e&&(e=e.Dve(t))&&e.isGroup},n.prototype.hMi=function(t){var e,e,e=this.Mf.getDataSource();return!!e&&(e=e.Dve(t))&&e.DFt},n.prototype.JDi=function(t){var e,e,e=this.Mf.getDataSource();return!!e&&(e=e.Dve(t))&&e.GFt},n.prototype.applyTableTheme=function(t){var e,n,i,e=this.Mf,n=this.hl;this.hl=t,i=M(this.options.alternatingRowOptions),this.suspendPaint(),this.oZe(e,i,t),this.options.alternatingRowOptions=i,this.resumePaint(),this.ize.addUndoChanges({type:v.TableSheetUndoType.ThemeChanged,oldData:n,newData:this.hl})},n.prototype.oZe=function(t,e,n){var i,o,u,u,u,i,t,o,i=new L.Style,o=new L.Style,u=n&&n.headerRowStyle();u&&o.h5(u),(u=n&&n.wholeTableStyle())&&(i.h5(u),o.h5(u)),i.cellPadding===E&&(i.cellPadding="5"),t.setDefaultStyle(i),o.showEllipsis===E&&(o.showEllipsis=!0),o.cellPadding===E&&(o.cellPadding="5"),t.setDefaultStyle(o,L.SheetArea.colHeader),(e=e||M(this.options.alternatingRowOptions))&&(u=n&&n.firstRowStripStyle(),Array.isArray(e.style)||(e.style=[]),e.style[0]=u?this.XDi(u):E,i=n&&n.firstRowStripSize(),Array.isArray(e.step)||(e.step=[]),e.step[0]=k(i)?1:i,(t=n&&n.secondRowStripStyle())&&(Array.isArray(e.style)||(e.style=[]),e.style[1]=this.XDi(t)),o=n&&n.secondRowStripSize(),k(o)||(Array.isArray(e.step)||(e.step=[]),e.step[1]=o))},n.prototype.XDi=function(t){var e=new L.Style;return e.backColor=t.backColor,e.foreColor=t.foreColor,e.font=t.font,e.borderLeft=t.borderLeft,e.borderTop=t.borderTop,e.borderRight=t.borderRight,e.borderBottom=t.borderBottom,e.textDecoration=t.textDecoration,e},n.prototype.applyFreeHeaderArea=function(t){if(0===arguments.length)return this.hNi;this.ize.addUndoChanges({type:v.TableSheetUndoType.ApplyFreeHeaderChanged,oldData:this.hNi,newData:t}),this.hNi=t,this.refreshBindColumns()},n.prototype.printInfo=function(t){var e,t,e=this.Mf;return t&&(t.columnStart(-1),t.columnEnd(-1),t.rowStart(-1),t.rowEnd(-1),t.repeatColumnStart(-1),t.repeatColumnEnd(-1),t.repeatRowStart(-1),t.repeatRowEnd(-1)),(t=e.printInfo&&e.printInfo.apply(e,arguments))&&Rt(t),t},n.prototype.addRow=function(n){var i,o,u,r,i=this,o=this.Mf,u=o.getRowCount();return i.options.allowAddNew&&(u-=1),r=this.getDataView(),new Promise(function(t,e){r.insertItem(u,n,function(){r.saveItem(u,function(){i.mNi(u),t()},y(o,u,e))},y(o,u,e))})},n.prototype.iM=function(t,e){var n=this;n.suspendPaint(),n.WDi(e),n.XNi(),n.resumePaint()},n.prototype.iDe=function(t){var e,n;this.Mf.gL(t,-1)},n.prototype.removeRow=function(n){var i,o,t,i=this,o=this.Mf;return i.zDi(n)?Promise.resolve():(t=this.CZe(),this.ize.addUndoChanges({type:v.TableSheetUndoType.ChangeCollapse,oldData:t}),this.ize.addUndoChanges({type:v.TableSheetUndoType.RemoveRow}),new Promise(function(e,t){i.getDataView().removeRowData(n,1,function(t){i.ZNi(n,t.removedCount),i.ize.addUndoChanges({type:v.TableSheetUndoType.PinnedRowsChanged}),e()},y(o,n,t))}))},n.prototype.Yze=function(){var t,e,n,i,t=this,e=t.Mf.getRowCount(),n=t.getDataView().length(),i=this.options.allowAddNew;t.suspendPaint(),t.Mf.ffe(e,n-e+(i?1:0),3,{rowExpand:!1,clearUndoNotInCommand:!1}),t.WDi(),t.uDi(),t.resumePaint()},n.prototype.Wze=function(t,e){var n=this;n.Mf.r9e(t,e||1,L.SheetArea.viewport,{clearUndoNotInCommand:!1}),n.NZe(t)},n.prototype.Hze=function(t,e){var n=this;n.Mf.o9e(t,e||1,L.SheetArea.viewport,!1),n.NZe(t)},n.prototype.NZe=function(t){var e,n,e=this;e.isShowHierarchyOutlineColumn()&&(n=e.Mf.outlineColumn.options().columnIndex,k(t)?e.$Ni()!==n:t<n)&&e.wNi()},n.prototype.KDi=function(t,e){var n,e,n=this.Mf;n.i9e(t,e||1,3,!1),t<(e=n.frozenRowCount())&&n.frozenRowCount(e-1)},n.prototype.ZNi=function(t,e){var n=this;n.suspendPaint(),n.KDi(t,e),n.WDi(),n.XNi(),n.resumePaint()},n.prototype.saveRow=function(i){var o=this;return o.zDi(i)?Promise.resolve():new Promise(function(t,e){var n=o.Mf;o.getDataView().saveItem(i,function(){o.SNi(i),t()},y(n,i,e))})},n.prototype.SNi=function(t){var e=this;e.suspendPaint(),e.resumePaint()},n.prototype.resetRow=function(t){var e=this;e.zDi(t)||e.getDataView().resetItem(t,function(){e.xNi(t)})},n.prototype.xNi=function(t){var e=this;e.iDe(t),e.iM(t)},n.prototype.addRowStateRule=function(t,e){var n,i,o,u;t!==L.RowColumnStates.invalid&&4!==t&&t!==L.RowColumnStates.edit&&(o=(i=(n=this).Mf).conditionalFormats)&&(u=[new L.Range(-1,-1,-1,-1)],o.addRowStateRule(t,e,u))},n.prototype.addColumnStateRule=function(t,e){var n,i,o,u;t!==L.RowColumnStates.invalid&&t!==L.RowColumnStates.dirty&&t!==L.RowColumnStates.edit&&(o=(i=(n=this).Mf).conditionalFormats)&&(u=[new L.Range(-1,-1,-1,-1)],o.addColumnStateRule(t,e,u))},n.prototype.addColumnHeaderStateRule=function(t,e){var n,i,o,u,t;if((4===t||1024===t||2048===t||4096===t)&&(o=(i=(n=this).Mf).conditionalFormats)){switch(u=function(t){e.decoration&&e.decoration.icons&&1===e.decoration.icons.length&&""===e.decoration.icons[0].src&&(e.decoration.icons[0].src=t)},t){case 4:u(ut);break;case 1024:u(it);break;case 2048:u(ot);break;case 4096:u(rt)}return t=new c.ColumnHeaderStateRule(A.RuleType.columnStateRule,t,e),o.addRule(t)}},n.prototype.iAi=function(t){var t=t.conditionalFormats;t&&t.rules&&(t.rules=t.rules.filter(function(t){var e=[4,1024,2048,4096];return!(15===t.ruleType&&-1<e.indexOf(t.state))}))},n.prototype.removeRowStateRule=function(t){t!==L.RowColumnStates.invalid&&4!==t&&t!==L.RowColumnStates.edit&&this._Di(t,!0)},n.prototype.removeColumnStateRule=function(t){t!==L.RowColumnStates.invalid&&t!==L.RowColumnStates.dirty&&t!==L.RowColumnStates.edit&&this._Di(t,!1)},n.prototype._Di=function(t,e){var n,i,o,u,r,a,c,n,i,o=this.Mf.conditionalFormats;if(o)for(r=0,a=u=o.getRules();r<a.length;r++)!(c=a[r]).isStateRule()||c.isRow()!==e||t&&t!==c.state()||o.removeRule(c)},n.prototype.getStateRules=function(){var t,e,t=this.Mf.conditionalFormats;return t?(e=t.getRules()).filter(function(t){var t=t.ruleType();return t===A.RuleType.rowStateRule||t===A.RuleType.columnStateRule}):[]},n.prototype.clearStateRules=function(){var t,e,n,i,o,t=this.Mf.conditionalFormats;if(t)for(n=(e=t.getRules()).length-1;0<=n;n--)(o=(i=e[n]).ruleType())!==A.RuleType.rowStateRule&&o!==A.RuleType.columnStateRule||t.removeRule(i)},n.prototype.qDi=function(){return this.Mf._1},n.prototype.hasRowState=function(t,e){var e=this.qDi().getState(e,0,t,!0,[{row:-1,rowCount:-1,col:-1,colCount:-1}]);return T(e)&&e===t},n.prototype.$Di=function(e,n,t,i){var o,u,r,a,o=this,u=this.getDataView(),r=this.Mf,a={};a[n]=t,u.updateItem(e,a,function(t){i&&i.hasAddNewRowData&&!o.jFt||o.LNi(e,n)},y(r,e),i)},n.prototype.LNi=function(t,e){var n,i,n=this,i=n.Mf;i.qWe()?i.YHe(e):n.iM(t,e)},n.prototype.iTi=function(u,r,a){var c,s,t,c=this.getDataView();c&&(s=this.Mf,(t=c.getColumnInfos()).forEach(function(t,e){var n,i,o,n,n=t.defaultValue,i=a&&a[c.ife(t)];k(i)&&!k(n)&&(i=wt(n)?n():n,n)&&"="===n[0]&&((o=s.Uw()).DJ=c.length(),n=s.Lp.parse(o,n,0,0),i=s.Lp.evaluateExpression(o,n,{row:u,col:e})),r(i,e,t)}))},n.prototype.CCi=function(t){var e,n,i,e,n=this.getDataView();return i=n?n.nMt(n.Ywt(t),0):i},n.prototype.TLt=function(t,e,n){return t.TLt(e,n)},n.prototype.EPt=function(){var t=this,e=t.jIi,n=t.getDataView();0<e&&(t.tTi=n.EPt(),t.togglePinnedColumns(Gt(e)))},n.prototype.jPt=function(){var t,e,n,e,t=this,e=t.tTi,n,e=t.getDataView().jPt(e);0<e.length&&t.togglePinnedColumns(e),delete t.tTi},n.prototype.DPt=function(t,e){var n=this.getDataView();if(n)return n.DPt(t,e)},n.prototype.OPt=function(t,e,n){var i,t,i=this.getDataView();i&&(this.ize.startAddComboChanges(),t=i.OPt(t,e,n),this.Mf.rowFilter().nTi(t),this.kTi(i),this.ize.addUndoChanges({type:v.TableSheetUndoType.SetDataView}),this.sze(!0)&&this.ize.addUndoChanges({type:v.TableSheetUndoType.ResetGroupOutline}),this.ize.endAddComboChanges())},n.prototype.eTi=function(t,e){var n,i={},o;return this.iTi(t,function(t,e,n){wt(o=n.value instanceof Function?n.value.name:n.value)||x(o)||Ct(o)||(i[o]=t)},e),i},n.prototype.oTi=function(t,e){var n,i,o,n,n=this,i=this.getDataView(),o=this.Mf,n=n.eTi(t,e);i.insertItem(t,n,function(){},y(o,t))},n.prototype.mNi=function(t){var e,n,e=this,n=e.Mf.getRowCount();e.Mf.ffe(n<1?t:t-1,1,3,{rowExpand:!1,clearUndoNotInCommand:!1}),e.refreshStyleRuleCache(),e.iM(t)},n.prototype.vDi=function(t){var e;return 0<this.qDi().getState(t,-1,L.RowColumnStates.inserted)},n.prototype.jDi=function(t){var e;return 0<this.qDi().getState(t,-1,256)},n.prototype.zNi=function(){var t,e,n,t=this,e=t.Mf;e.suspendPaint(),n=e.getColumnCount(),e.r9e(n,1,3,{clearUndoNotInCommand:!1}),t.uTi(!0,""),e.rowFilter().filterButtonVisible(n,!1),e.resumePaint()},n.prototype.cTi=function(){var t,e,n,t=this,e=t.Mf;e.suspendPaint(),n=t.kDi(),e.getValue(0,n,L.SheetArea.colHeader)===t.actionColumn.options().title&&e.o9e(n,1,3,!1),e.resumePaint()},n.prototype.uTi=function(t,e){var o,n,i,t,e,u,r,a,r,a,r,a,o=this,n=o.Mf;n.suspendPaint(),i=o.kDi(),!t&&n.getValue(0,i,L.SheetArea.colHeader)!==e||(t=new L.Style,e=[],(a=(r=(u=o.actionColumn.options()).actionButtons.remove)&&r.visible)&&e.push({useButtonStyle:!0,caption:r.title,imageType:r.icon,enabled:o.mDi.bind(o),visible:"auto"!==a||o.mDi.bind(o),position:L.ButtonPosition.left,command:function(t,e,n,i){o.Mf.ki(L.Events.RowOperation,{sheet:o,sheetName:o.name(),actionType:gt.remove,row:e}),o.removeRow(e)}}),(a=(r=u.actionButtons.save)&&r.visible)&&e.push({useButtonStyle:!0,caption:r.title,imageType:r.icon,enabled:o.LDi.bind(o),visible:"auto"!==a||o.LDi.bind(o),position:L.ButtonPosition.left,command:function(t,e,n,i){o.Mf.ki(L.Events.RowOperation,{sheet:o,sheetName:o.name(),actionType:gt.save,row:e}),o.saveRow(e)}}),(a=(r=u.actionButtons.reset)&&r.visible)&&e.push({useButtonStyle:!0,caption:r.title,imageType:r.icon,enabled:o.LDi.bind(o),visible:"auto"!==a||o.LDi.bind(o),position:L.ButtonPosition.left,command:function(t,e,n,i){o.Mf.ki(L.Events.RowOperation,{sheet:o,sheetName:o.name(),actionType:gt.reset,row:e}),o.resetRow(e)}}),0<e.length&&(t.cellButtons=e),t.locked=!1,n.setStyle(-1,i,t),o.JNi(-1,i,u.headerStyle,L.SheetArea.colHeader),n.setValue(0,i,u.title,L.SheetArea.colHeader),n.setColumnWidth(i,u.width)),n.resumePaint()},n.prototype.mDi=function(t){return!this.zDi(t)},n.prototype.LDi=function(t){var e,n,i,e,e=this,n=e.jDi(t),i=e.vDi(t),e=e.zDi(t);return n||i&&!e},n.prototype.CNi=function(){var t,e,t=this.Mf,e=t.getRowCount();t.ffe(e=e<2?e:e-2,1,3,{rowExpand:!1,clearUndoNotInCommand:!1})},n.prototype.rTi=function(){var t=this.Mf;t.i9e(t.getRowCount()-1,1,3,!1)},n.prototype.aNi=function(){var t,t,t=this.Mf;t.suspendDirty(),t.options.allowCellOverflow=!1,t.options.rowHeaderAutoText=L.HeaderAutoText.blank,t.options.clipBoardOptions=L.ClipboardPasteOptions.values,t.options.isProtected=!0,(t=t.options.protectionOptions).allowSort=!0,t.allowFilter=!0,t.allowResizeColumns=!0,t.allowDragInsertColumns=!0,t.allowOutlineRows=!0},n.prototype.lNi=function(t){var e=this,n=e.Mf;e.options.allowAddNew&&t++,t!==n.getRowCount()&&(n.Ut.cj(t),n.Ww=!0)},n.prototype.aTi=function(t,e){var n,i,i,o,n=this,i=n.getDataView(),i=i&&i.iRt&&i.iRt.length,o=n.Mf.getRowCount();n.zDi(t)&&o!==i+1&&(n.Mf.ki(L.Events.RowOperation,{sheet:n,sheetName:n.name(),actionType:gt.addNewEmptyRow,row:t+1}),n.CNi(),n.WDi(),n.XNi())},n.prototype.pTi=function(t,e){var n,t,n=this,t=t.value;return!("string"==typeof t&&-1<t.indexOf(".")&&(t=t.split(".")[0],k(n.getDataView().ufe({value:t},e))))},n.prototype.iIe=function(){var t,e,n,i,o,u,r,t=this,e=t.Mf,n=t.getDataView(),i=t.nIe;for(o in i)i.hasOwnProperty(o)&&(u=i[o],r=Number(o),t.zDi(r)?t.oTi(r,u):n.updateItem(r,u,function(){},y(e,r)));t.nIe=E},n.prototype.tDe=function(){var t,e,n,i,t=this,e=t.Mf,n=e.getRowCount()-(t.options.allowAddNew?1:0),i=t.getDataView().visibleLength();n<=i?(e.setRowCount(i-(t.options.allowAddNew?0:1)),e.ffe(n-1,1,3,{rowExpand:!1,clearUndoNotInCommand:!1})):(e.setRowCount(i),t.options.allowAddNew&&e.ffe(i,1,3,{rowExpand:!1,clearUndoNotInCommand:!1}))},n.prototype.v7=function(){var h=this,g=h.Mf;function n(t,e){var n;h.nPt(),h.WDi(),h.HDi(),h.XNi(),h.getParent().options.calcOnDemand?(n=h.getDataView().gLt)&&n.o_t(E,!0):setTimeout(function(){var t,t,t=null==(t=h.getDataView())?void 0:t.gLt;t&&(g.suspendCalcService(),t.o_t(E,!0),g.resumeCalcService(!1))},10)}g.D3(L.Events.EditStarting,function(t,e){e.col===h.kDi()&&(e.cancel=!0)}),g.D3(L.Events.EditEnded,function(t,e){var n,i,i,n=e.row,i=e.ignoreValueChange;if(!i){if((0,b.isNullOrEmpty)(e.editingText)&&h.zDi(n)){if(i=h.fDi(e.col),k(i.defaultValue)||!h.pTi(i,n))return;h.oTi(n)}h.aTi(n,!0)}}),g.D3(L.Events.ClipboardPasting,function(t,e){var n=e.cellRange,i=n.col,n=n.col+n.colCount-1,o=h.kDi(),u;i<=o&&o<=n&&(e.cancel=!0),h.nIe={},h.getDataView().gme()}),g.D3(L.Events.ClipboardPasted,function(t,e){h.iIe();var e=e.cellRange,e=e.row+e.rowCount-1;h.aTi(e),h.getDataView().pme(),h.iM(e)}),g.D3(L.Events.DragFillBlock,function(t,e){var n,i,o,i,n,n=e.fillRange,i=e.fillDirection,o=n.col+n.colCount-1;0===i&&(-1!==n.row&&-1!==n.rowCount&&(o+=1),n=(i=e.sheet.getSelections()[0]).col+i.colCount-1,o=Math.max(o,n)),o===h.kDi()&&(e.cancel=!0),h.nIe={},h.getDataView().gme()}),g.D3(L.Events.DragFillBlockCompleted,function(t,e){h.iIe();var e=e.fillRange,e=e.row+e.rowCount-1;h.aTi(e),h.getDataView().pme(),h.iM(e)}),g.D3(L.Events.DragDropBlock,function(t,e){var n,i,o,u,r,a,c,s,l,f,d,n=e.fromCol,i=e.toCol,o=e.colCount,u=e.insert,r=e.fromRow,a=e.toRow,c=n+o-1,s=i+o-1,l=h.kDi();c===l||s===l?e.cancel=!0:u&&-1===r&&-1===a&&(h.OPt(n,f=n<i?i-1:i,o),h.UMi&&h.UMi.updatePanelLayout(),g.setSelection(-1,d=n<i?i-o:i,-1,o),e.cancel=!0),h.nIe={},h.getDataView().gme()}),g.D3(L.Events.DragDropBlockCompleted,function(t,e){h.iIe();var e=e.toRow+e.rowCount-1;h.aTi(e),h.getDataView().pme(),h.iM(e)}),g.D3(L.Events.ValueChanged,function(t,e){h.aTi(e.row)}),g.D3(L.Events.CellChanged,function(t,e){var n,i,o,u,o,n=e.row,i=e.col,o=e.sheetArea,u=e.newValue;o===L.SheetArea.colHeader&&(o=n<g.Ut.getFreeAreaRowCount(o),"value"===e.propertyName?o?h.YNi(n,i,"value",u):h.HNi(i):"formula"===e.propertyName&&o&&h.YNi(n,i,"formula",u))}),g.D3(L.Events.RangeChanged,function(t,e){var n,i,o,u,r,a,u,c;if(6===e.action)for(i=0,o=n=e.changedCells;i<o.length;i++)r=(u=o[i]).row,a=u.col,(u=u.sheetArea)===L.SheetArea.colHeader&&((c=r<g.Ut.getFreeAreaRowCount(u))?h.YNi(r,a,"value",g.getValue(r,a,u)):h.HNi(a))}),g.D3(L.Events.ColumnWidthChanged,function(t,e){var n,i,n=g.getDataSource(),i=n.getColumnInfos();!e.header&&!k(i)&&0<i.length&&e.colList.forEach(function(t){var e=i[t]&&f({},i[t]);k(e)||(e.width=g.Do(t,1),n.yBe(e))})}),g.D3(L.Events.ColumnChanged,function(t,e){var n,i,o,n;"isVisible"!==e.propertyName||1!==e.sheetArea&&3!==e.sheetArea||(n=g.getDataSource())&&(i=n.Dve(e.col))&&(h.ize.startAddComboChanges(),o=!1!==i.visible,n.yBe(f(f({},i),{visible:e.newValue})),o!==e.newValue&&h.sze(!0)&&(n=g.k9(L.SheetArea.viewport),e.newValue?e.col===n:e.col<n)&&h.lze(),h.ize.endAddComboChanges())}),g.D3(L.Events.RangeFiltering,function(){h.UJe=!0}),g.D3(L.Events.RangeFiltered,function(t,e){h.UJe=!1,n(t,e)}),g.D3(L.Events.RangeFilterClearing,function(){h.nAi=!0}),g.D3(L.Events.RangeFilterCleared,function(t,e){h.nAi=!1,n(t,e)}),g.D3(L.Events.RangeSorting,function(){h.nDi()}),g.D3(L.Events.RangeSorted,function(t,e){(h.FDi(e.col)||h.JDi(e.col))&&(h.WDi(E,!1),h.HDi()),h.uDi()}),g.D3(L.Events.OutlineColumnCheckStatusChanged,function(t,e){h.sDi()})},n.prototype.Ob=function(t,e,n,i){var u,o,o,r,a,c,s,u=this;"allowAddNew"===t?!0===e&&!1===n?u.CNi():!1===e&&!0===n&&u.rTi():"alternatingRowOptions"===t?u.Mf.repaint():"defaultStackRowHeight"===t?u.Mf.zw():"isDesignMode"===t?u.vNi(e):"sheetTabColor"===t?(o=u.getParent(),k(o.getHost())||o.AC(!1)):"enableDefineColumn"===t?(u.Mf.suspendPaint(),u.Mf.options.addColumnButtonOption=e?{visible:!0,width:Z,command:u.options.defineColumnCommand,style:Z,tooltip:(0,l.getSR)().defineColumn}:{visible:!1,width:Z,command:st,style:Z,tooltip:Z},u.Mf.resumePaint()):"defineColumnCommand"===t?(u.Mf.suspendPaint(),u.Mf.options.addColumnButtonOption?u.Mf.options.addColumnButtonOption.command=e:u.Mf.options.addColumnButtonOption={visible:!0,width:Z,command:u.options.defineColumnCommand,style:Z,tooltip:(0,l.getSR)().defineColumn},u.Mf.resumePaint()):"showRowNumber"===t?(u.Mf.suspendPaint(),e?(u.Mf.setColumnCount(u.Mf.getColumnCount(L.SheetArea.rowHeader)+1,L.SheetArea.rowHeader),u.Mf.options.rowHeaderAutoText=L.HeaderAutoText.numbers):(u.Mf.setColumnCount(u.Mf.getColumnCount(L.SheetArea.rowHeader)-1,L.SheetArea.rowHeader),u.Mf.options.rowHeaderAutoText=L.HeaderAutoText.blank),u.Mf.resumePaint()):"groupLayout"===t&&(u.Mf.suspendPaint(),e?(o=Nt(e.mode),r=e.position,a={mode:o},r&&Dt(r)&&(a.position=r),c=function(t,e,n){var i,o;return"mode"===t?(i=Nt(e))!==n&&(o=!0):"position"===t&&(i=Dt(e)?e:E),[i,function(){u.Ize(o,!0)}]},s=u.options.groupLayout,["mode","position"].forEach(function(t){var e=a[t];jt(s,t,c),s["_"+t]=e}),u.Ize(e.mode!==(n&&n.mode),!0)):u.options.groupLayout=i&&i.groupLayout?f({},i.groupLayout):{mode:d.GroupLayoutMode.tabular},u.Mf.resumePaint()),this.ize.addUndoChanges({type:v.TableSheetUndoType.OptionChanged,oldData:n,newData:e,key:t})},n.prototype.vNi=function(t){var e,n,e=this.Mf;e.suspendPaint(),e.suspendEvent(),t&&((n=new L.CellTypes.Text).isImeAware=function(){return!1}),e.setCellType(-1,-1,n,L.SheetArea.colHeader),e.resumeEvent(),e.resumePaint()},n.prototype.getDefaultOptions=function(){return{allowAddNew:!0,alternatingRowOptions:{step:[1,1],style:new L.Style("lightgrey")},defaultStackRowHeight:null,isDesignMode:!1,menuItemVisibility:{promoteMenuItemVisible:!1,demoteMenuItemVisible:!1,moveUpMenuItemVisible:!1,moveDownMenuItemVisible:!1,addBeforeMenuItemVisible:!1,addAfterMenuItemVisible:!1,addAboveMenuItemVisible:!1,addBelowMenuItemVisible:!1,expandAllLevelMenuItemVisible:!1,collapseAllLevelMenuItemVisible:!1,expandToLevelMenuItemVisible:!1},sheetTabColor:void 0,showRowNumber:!1,defineColumnCommand:ct,submitDefineColumnCommand:lt,enableDefineColumn:!1,groupLayout:{mode:d.GroupLayoutMode.tabular},columnTypeItems:[{name:d.ColumnTypes.Number,text:(0,l.getSR)().columnTypeNumber,iconClass:e(d.ColumnTypes.Number)},{name:d.ColumnTypes.Text,text:(0,l.getSR)().columnTypeText,iconClass:e(d.ColumnTypes.Text)},{name:d.ColumnTypes.Formula,text:(0,l.getSR)().columnTypeFormula,iconClass:e(d.ColumnTypes.Formula)},{name:d.ColumnTypes.Lookup,text:(0,l.getSR)().columnTypeLookup,iconClass:e(d.ColumnTypes.Lookup)},{name:d.ColumnTypes.Date,text:(0,l.getSR)().columnTypeDate,iconClass:e(d.ColumnTypes.Date)},{name:d.ColumnTypes.Checkbox,text:(0,l.getSR)().columnTypeCheckbox,iconClass:e(d.ColumnTypes.Checkbox)},{name:d.ColumnTypes.Select,text:(0,l.getSR)().columnTypeSelect,iconClass:e(d.ColumnTypes.Select)},{name:d.ColumnTypes.Currency,text:(0,l.getSR)().columnTypeCurrency,iconClass:e(d.ColumnTypes.Currency)},{name:d.ColumnTypes.Percent,text:(0,l.getSR)().columnTypePercent,iconClass:e(d.ColumnTypes.Percent)},{name:d.ColumnTypes.Phone,text:(0,l.getSR)().columnTypePhone,iconClass:e(d.ColumnTypes.Phone)},{name:d.ColumnTypes.Email,text:(0,l.getSR)().columnTypeEmail,iconClass:e(d.ColumnTypes.Email)},{name:d.ColumnTypes.URL,text:(0,l.getSR)().columnTypeURL,iconClass:e(d.ColumnTypes.URL)},{name:d.ColumnTypes.CreatedTime,text:(0,l.getSR)().columnTypeCreatedTime,iconClass:e(d.ColumnTypes.CreatedTime)},{name:d.ColumnTypes.ModifiedTime,text:(0,l.getSR)().columnTypeModifiedTime,iconClass:e(d.ColumnTypes.ModifiedTime)},{name:d.ColumnTypes.Attachment,text:(0,l.getSR)().columnTypeAttachment,iconClass:e(d.ColumnTypes.Attachment)},{name:d.ColumnTypes.Barcode,text:(0,l.getSR)().columnTypeBarcode,iconClass:e(d.ColumnTypes.Barcode)}]}},n.prototype.Zp=function(t){var i,o,n,t,i=this,o=i.getDefaultOptions();i.options=L.mt.b0(o,function(t,e,n){i.Ob(t,e,n,o)}),n=i.options,t=F(!0,{},o,t=t||{}),_(t,function(t,e){n.hasOwnProperty(t)&&(n[t]=e)})},n.prototype.sNi=function(){var i=this;i.actionColumn=new G.ActionColumn(function(t,e){var n;i.getDataView()&&(t.visible&&!e.visible?i.cTi():!t.visible&&e.visible?i.zNi():t.visible&&e.visible&&i.uTi(!1,t.title))})},n.prototype.zDi=function(t){var e=this;return e.options.allowAddNew&&t===e.Mf.getRowCount()-1},n.prototype.kDi=function(){var t=this,e=t.Mf;return t.actionColumn.options().visible?e.getColumnCount()-1:-1},n.prototype.id=function(){return this.getDataView().getDirtyIndexes()},n.prototype.R2e=function(){return this.options.sheetTabColor},n.prototype.parameter=function(t){var e,n,i,o;if(0===arguments.length){for(i in n={},e=this.ghe)e.hasOwnProperty(i)&&(n[i]=dt(e[i]));return n}if(t){for(i in o={},t)t.hasOwnProperty(i)&&(o[i]=ft(t[i]));this.ghe=o}},n.prototype.isAlternatingRowStyleColumn=function(t){return!0},n.prototype.getGroupingHeaderHeight=function(t,e){var n=this.options.groupLayout.mode;return n===d.GroupLayoutMode.outline?2*this.Mf.defaults.rowHeight:n===d.GroupLayoutMode.condensed?this.Mf.defaults.rowHeight:0},n.prototype.getGroupingFooterHeight=function(t,e){return this.getGroupingHeaderHeight(t,e)},n._ID=1,i=n,l.TableSheet=i,L.Workbook.ch("tableSheet",{init:function(){var t=this;L.Commands.uri(t.commandManager()),t.bind(L.Events.ActiveSheetChanged+at,function(){(0,P.updateStatusBarOnActiveSheetChanged)(t)})},onCultureChanged:function(){(0,l.getSR)()},createSheetTab:function(t){t.type===L.SheetType.tableSheet?(t.name||(t.name=Kt(this.qv())),t.sheetTab=new i(t.name)):t.type===L.SheetType.customSheetTab&&(t.sheetTab=new d.CustomSheetTab(t.name))},preFromJson:function(t,e,n){i._ID=1},preFromSJSFormat:function(t,e,n){i._ID=1},dispose:function(){this.unbind(L.Events.ActiveSheetChanged+at)}}),L.Worksheet.ch("tableSheet",{processKeyDown:function(t){var e,n,e=this.rt,n=this.NMi;n&&n.options.isDesignMode&&e.q9&&(t.r=!0)},processMouseDown:function(t){var e,n,e=t.hitInfo.cellTypeHitInfo;e&&e.isRowAction&&(n=Vt(t.e),e.isShift=n.isShift,e.isCtrl=n.isCtrl),k(zt(this))||(0,P.processStatusBarOnMouseDown)(zt(this).getParent().b3t,t.hitInfo)}}),L.Y8.ch("tablesheet",{priority:7e3,setValue:function(t){var e,n,i,o,u,r,a,c,o,s,l,f,r,f,e=t.row,n=t.col,i=t.value,o=t.sheetArea,u=this.Mf,r=u.H3,a=zt(u);if(o===L.SheetArea.viewport&&r&&r.getSource()&&Qt(a)){if(s=o=void 0,f=a.fDi(n,!(l=c=!1)),a.options.allowAddNew&&r.getRowCount()===e&&(!a.nIe||k(a.nIe[e]))){if((0,b.isNullOrEmpty)(i)&&k(f.defaultValue)||!a.pTi(f,e))return void(t.isValueSet=!0);(s=a.getDataView()).gme(),(l=s.kbe()&&!a.nIe)&&(a.nIe={}),a.nIe?a.nIe[e]={}:a.oTi(e),c=!0,o=s.length()-1}(r=u.Ut.q_(!1,L.SheetArea.colHeader,n)).name&&(i=L.util.V0(i),a.nIe?((f=a.nIe[e])||(a.nIe[e]=f={}),f[r.name]=i):a.$Di(e,r.name,i,{hasAddNewRowData:c,currentModelIndex:o}),t.isValueSet=!0),c&&(l&&(a.oTi(e,a.nIe[e]),a.nIe=E),s.pme())}}}),r[D]={name:D,icons:[q],command:"PinRow"},r[j]={name:j,icons:[tt,et,nt]},r[C]={name:C,icons:[$]},r[K]={name:K,icons:[L.ButtonImageType.minus],command:"RemoveRow"},r[w]={name:w,icons:[L.ButtonImageType.ok],command:"SaveRow"},r[p]={name:p,icons:[L.ButtonImageType.clear],command:"ResetRow"}},"./dist/plugins/tableSheet/tableSheet.res.en.js":function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.columnTypeFormula=e.columnTypeText=e.columnTypeNumber=e.defineColumnExisted=e.defineColumnRequired=e.defineColumnNoResults=e.defineColumnAll=e.defineColumnNone=e.defineColumnFormula=e.defineColumnOthers=e.defineColumnDefaultValue=e.defineColumnConfiguration=e.defineColumnFormatting=e.defineColumnType=e.defineColumnCaption=e.defineColumnValue=e.submit=e.cancel=e.defineColumn=e.Exp_InvalidOperationInProtectForTableSheet=e.CrossColumnDetailList=e.CrossColumnDetailAttributes=e.CrossColumnDetailFilter=e.CrossColumnDetailValueHeader=e.CrossColumnDetailCaption=e.CrossColumnDetailOver=e.CrossColumnDetailValuePlaceHolder=e.CrossColumnDetailValue=e.CrossColumnDetailName=e.CrossColumnDetailFormatter=e.CrossColumnCrossHeader=e.StatusBarToolTipRowCount=e.StatusBarRowCount=e.TextColon=e.GroupPanelAddCalculateColumn=e.GroupPanelItemRemoveAll=e.GroupPanelSummaryLabelPositionFooter=e.GroupPanelSummaryLabelPositionHeader=e.GroupPanelSummaryLabelPosition=e.GroupPanelSummaryLabelRelateTo=e.GroupPanelSummaryLabelSlice=e.GroupPanelSummaryLabelCaption=e.GroupPanelSummaryLabelFormula=e.GroupPanelDropDownCalcField=e.GroupPanelItemAddCalculation=e.GroupPanelItemRemove=e.GroupPanelGroupsHeader=e.GroupPanelFieldsHeader=e.GroupPanelTip=e.EXP_TooManyPinRecords=void 0,e.columnTypeAttachmentRight=e.columnTypeAttachmentTop=e.columnTypeAttachmentLeft=e.columnTypeAttachmentMarginGroup=e.columnTypeCalendarType=e.columnTypeShowEraFirstYear=e.columnTypeCalendar=e.columnTypeDateLocale=e.columnTypeDateType=e.columnTypeDateShowBuiltInDateRange=e.columnTypeDateShowDateRange=e.columnTypeDateShowTime=e.columnTypeDateMonth=e.columnTypeDateYear=e.columnTypeDateDay=e.columnTypeDateCalendarPage=e.columnTypeDateSunday=e.columnTypeDateSaturday=e.columnTypeDateFriday=e.columnTypeDateThursday=e.columnTypeDateWednesday=e.columnTypeDateTuesday=e.columnTypeDateMonday=e.columnTypeDateStartDay=e.columnTypeDateTimePicker=e.columnTypeAllEditableFields=e.columnTypeMask=e.columnTypeFormattingCategory=e.columnTypeLookupIndexes=e.columnTypeLookupFields=e.columnTypeLookupTables=e.columnTypeNumberFormatting=e.columnTypeNumberFormattingSymbol=e.columnTypeNumberFormattingNegativeNumbers=e.columnTypeNumberFormattingThousandSeparator=e.columnTypeNumberFormattingDecimalPlaces=e.columnTypeNumberFormattingSample=e.columnTypeBarcode=e.columnTypeSelect=e.columnTypeAttachment=e.columnTypeModifiedTime=e.columnTypeCreatedTime=e.columnTypeLookup=e.columnTypeURL=e.columnTypeEmail=e.columnTypePhone=e.columnTypePercent=e.columnTypeCurrency=e.columnTypeDate=e.columnTypeCheckbox=void 0,e.columnTypeUrlLabel=e.columnTypeComboBoxItemHeight=e.columnTypeComboBoxEditable=e.columnTypeComboBoxEditorValueType=e.columnTypeComboBoxRemove=e.columnTypeComboBoxAdd=e.columnTypeComboBoxValue=e.columnTypeComboBoxText=e.columnTypeComboBoxItemProperties=e.columnTypeComboBoxItems=e.columnTypeComboBoxEditorValueTypes=e.columnTypeBarcodeLabel=e.columnTypeCheckboxTextAlign=e.columnTypeCheckboxAuto=e.columnTypeCheckboxBoxSize=e.columnTypeCheckboxIsThreeState=e.columnTypeCheckboxCaption=e.columnTypeCheckboxOther=e.columnTypeCheckboxAlign=e.columnTypeCheckboxFalse=e.columnTypeCheckboxIndeterminate=e.columnTypeCheckboxTrue=e.columnTypeCheckboxTextGroup=e.columnTypeCheckboxTitle=e.columnTypeAttachmentSizeUnit=e.columnTypeAttachmentIsDownloadEnabled=e.columnTypeAttachmentIsClearEnabled=e.columnTypeAttachmentIsPreviewEnabled=e.columnTypeAttachmentAcceptValueTypes=e.columnTypeAttachmentAccept=e.columnTypeAttachmentMaxSize=e.columnTypeAttachmentBottom=void 0,e.EXP_TooManyPinRecords="Only support less than 10 pin records.",e.GroupPanelTip="Drag here to set row groups",e.GroupPanelFieldsHeader="Fields",e.GroupPanelGroupsHeader="Groups",e.GroupPanelItemRemove="Remove",e.GroupPanelItemAddCalculation="Add Summary Field",e.GroupPanelDropDownCalcField="Field",e.GroupPanelSummaryLabelFormula="Formula",e.GroupPanelSummaryLabelCaption="Caption",e.GroupPanelSummaryLabelSlice="Slice",e.GroupPanelSummaryLabelRelateTo="Relate to",e.GroupPanelSummaryLabelPosition="Position",e.GroupPanelSummaryLabelPositionHeader="Header",e.GroupPanelSummaryLabelPositionFooter="Footer",e.GroupPanelItemRemoveAll="Remove All",e.GroupPanelAddCalculateColumn="Add Calculated Column",e.TextColon=":",e.StatusBarRowCount="Row Count",e.StatusBarToolTipRowCount="Count of selected rows",e.CrossColumnCrossHeader="Cross",e.CrossColumnDetailFormatter="Formatter",e.CrossColumnDetailName="Name",e.CrossColumnDetailValue="Value",e.CrossColumnDetailValuePlaceHolder="Drag item here to set value",e.CrossColumnDetailOver="Over",e.CrossColumnDetailCaption="Caption",e.CrossColumnDetailValueHeader="Show Cross Value Header",e.CrossColumnDetailFilter="Filter",e.CrossColumnDetailAttributes="Attributes",e.CrossColumnDetailList="List",e.Exp_InvalidOperationInProtectForTableSheet="The range you're trying to change is locked.",e.defineColumn="Define Column",e.cancel="Cancel",e.submit="Submit",e.defineColumnValue="Value",e.defineColumnCaption="Caption",e.defineColumnType="Type",e.defineColumnFormatting="Formatting",e.defineColumnConfiguration="Configuration",e.defineColumnDefaultValue="Default",e.defineColumnOthers="Others",e.defineColumnFormula="Formula",e.defineColumnNone="None",e.defineColumnAll="All",e.defineColumnNoResults="No Results",e.defineColumnRequired="It's required",e.defineColumnExisted="It's existed",e.columnTypeNumber="Number",e.columnTypeText="Text",e.columnTypeFormula="Formula",e.columnTypeCheckbox="Checkbox",e.columnTypeDate="Date",e.columnTypeCurrency="Currency",e.columnTypePercent="Percent",e.columnTypePhone="Phone",e.columnTypeEmail="Email",e.columnTypeURL="URL",e.columnTypeLookup="Lookup",e.columnTypeCreatedTime="CreatedTime",e.columnTypeModifiedTime="ModifiedTime",e.columnTypeAttachment="Attachment",e.columnTypeSelect="Select",e.columnTypeBarcode="Barcode",e.columnTypeNumberFormattingSample="Sample",e.columnTypeNumberFormattingDecimalPlaces="Decimal places",e.columnTypeNumberFormattingThousandSeparator="Use 1000 Separator(,)",e.columnTypeNumberFormattingNegativeNumbers="Negative numbers",e.columnTypeNumberFormattingSymbol="Symbol",e.columnTypeNumberFormatting={negativeNumbers:{"-1234.10":"-1234.10","red:1234.10":"1234.10","(1234.10)":"(1234.10)","red:(1234.10)":"(1234.10)"},numberCategoryFormats:["0","0;[Red]0","0_);(0)","0_);[Red](0)","#,##0","#,##0;[Red]#,##0","#,##0_);(#,##0)","#,##0_);[Red](#,##0)"],japanEmperorReignDateFormat:["[$-411]ge.m.d;@",'[$-411]ggge"\u5e74"m"\u6708"d"\u65e5";@'],japanEmperorReignFirstYearDateFormat:["[$-411]ge.m.d;@",'[$-ja-JP-x-gannen]ggge"\u5e74"m"\u6708"d"\u65e5";@'],accountingSymbol:[["None","",""],["$","$","en-US"],["\xa5(Chinese)","\xa5","zh-cn"],["\xa5(Japanese)","\xa5","ja-jp"],["\u20a9(Korean)","\u20a9","ko-kr"]],percentageFormats:["0%"],currencyFormatWithoutSymbol:["#,##0","#,##0;[Red]#,##0","#,##0_);(#,##0)","#,##0_);[Red](#,##0)"],commonFormats:{Number:{format:"0.00",label:"Number"},Currency:{format:"[$$-409]#,##0.00",label:"Currency"},Accounting:{format:'_("$"* #,##0.00_);_("$"* (#,##0.00);_("$"* "-"??_);_(@_)',label:"Accounting"},ShortDate:{format:"m/d/yyyy",label:"Short Date"},LongDate:{format:"[$-409]dddd, mmmm dd, yyyy",label:"Long Date"},Time:{format:"[$-409]h:mm:ss AM/PM",label:"Time"},Percentage:{format:"0.00%",label:"Percentage"},Fraction:{format:"# ?/?",label:"Fraction"},Scientific:{format:"0.00E+00",label:"Scientific"},Text:{format:"@",label:"Text"},Comma:{format:'_(* #,##0.00_);_(* (#,##0.00);_(* "-"??_);_(@_)',label:"Comma"}}},e.columnTypeLookupTables="Select lookup table",e.columnTypeLookupFields="The field to look up",e.columnTypeLookupIndexes="The record number",e.columnTypeFormattingCategory="Category",e.columnTypeMask={pattern:"Pattern",placeholder:"Placeholder",excludeLiteral:"Exclude Literal",excludePlaceholder:"Exclude Placeholder"},e.columnTypeAllEditableFields="All Editable Fields",e.columnTypeDateTimePicker="DateTime Picker",e.columnTypeDateStartDay="StartDay",e.columnTypeDateMonday="Monday",e.columnTypeDateTuesday="Tuesday",e.columnTypeDateWednesday="Wednesday",e.columnTypeDateThursday="Thursday",e.columnTypeDateFriday="Friday",e.columnTypeDateSaturday="Saturday",e.columnTypeDateSunday="Sunday",e.columnTypeDateCalendarPage="CalendarPage",e.columnTypeDateDay="Day",e.columnTypeDateYear="Year",e.columnTypeDateMonth="Month",e.columnTypeDateShowTime="ShowTime",e.columnTypeDateShowDateRange="ShowDateRange",e.columnTypeDateShowBuiltInDateRange="ShowBuiltInDateRange",e.columnTypeDateType="Type",e.columnTypeDateLocale="locale (location)",e.columnTypeCalendar="Calendar type",e.columnTypeShowEraFirstYear="Use Gannen to display 1st year",e.columnTypeCalendarType={western:"Western",JER:"Japanese Emperor Reign"},e.columnTypeAttachmentMarginGroup="Margin",e.columnTypeAttachmentLeft="Left",e.columnTypeAttachmentTop="Top",e.columnTypeAttachmentRight="Right",e.columnTypeAttachmentBottom="Bottom",e.columnTypeAttachmentMaxSize="Size Limit",e.columnTypeAttachmentAccept="File Type",e.columnTypeAttachmentAcceptValueTypes={txt:"txt",all:"all",pdf:"pdf",image:"jpg,png,gif",excel:"docx,xlsx,pptx"},e.columnTypeAttachmentIsPreviewEnabled="Preview",e.columnTypeAttachmentIsClearEnabled="Clear",e.columnTypeAttachmentIsDownloadEnabled="Download",e.columnTypeAttachmentSizeUnit="KB",e.columnTypeCheckboxTitle="CheckBox CellType",e.columnTypeCheckboxTextGroup="Text",e.columnTypeCheckboxTrue="True",e.columnTypeCheckboxIndeterminate="Indeterminate",e.columnTypeCheckboxFalse="False",e.columnTypeCheckboxAlign="Align",e.columnTypeCheckboxOther="Other",e.columnTypeCheckboxCaption="Caption",e.columnTypeCheckboxIsThreeState="IsThreeState",e.columnTypeCheckboxBoxSize="Box Size",e.columnTypeCheckboxAuto="Auto",e.columnTypeCheckboxTextAlign={top:"Top",bottom:"Bottom",left:"Left",right:"Right"},e.columnTypeBarcodeLabel={showLabel:"Show Label",barcodeType:"Barcode Type",color:"Color",errorCorrectionLevel:"Error Correction Level",backgroundColor:"Background Color",version:"Version",model:"Model",mask:"Mask",connection:"Connection",charCode:"CharCode",connectionNo:"Connection No",charset:"Charset",quietZoneLeft:"Quiet Zone Left",quietZoneRight:"Quiet Zone Right",quietZoneTop:"Quiet Zone Top",quietZoneBottom:"Quiet Zone Bottom",labelPosition:"Label Position",addOn:"AddOn",addOnLabelPosition:"AddOn Label Position",fontFamily:"Font Family",fontStyle:"Font Style",fontWeight:"Font Weight",fontTextDecoration:"Font TextDecoration",fontTextAlign:"Font TextAlign",fontSize:"Font Size",fileIdentifier:"File Identifier",structureNumber:"Structure Number",structureAppend:"Structure Append",ecc00_140Symbol:"Ecc000_140 Symbol Size",ecc200EncodingMode:"Ecc200 Endcoding Mode",ecc200SymbolSize:"Ecc200 Symbol Size",eccMode:"Ecc Mode",compact:"Compact",columns:"Columns",rows:"Rows",groupNo:"GroupNo",grouping:"Grouping",codeSet:"Code Set",fullASCII:"Full ASCII",checkDigit:"Check Digit",nwRatio:"Wide And Narrow Bar Ratio",labelWithStartAndStopCharacter:"Label With Start And Stop Character"},e.columnTypeComboBoxEditorValueTypes="EditorValueType",e.columnTypeComboBoxItems="Items",e.columnTypeComboBoxItemProperties="ItemProperties",e.columnTypeComboBoxText="Text",e.columnTypeComboBoxValue="Value",e.columnTypeComboBoxAdd="Add",e.columnTypeComboBoxRemove="Remove",e.columnTypeComboBoxEditorValueType={text:"Text",index:"Index",value:"Value"},e.columnTypeComboBoxEditable="Editable",e.columnTypeComboBoxItemHeight="Items Height",e.columnTypeUrlLabel={linkColor:"Link Color",visitedLinkColor:"Visited Link Color"}},"./dist/plugins/tableSheet/tablesheet-command-register.js":function(t,e,n){var r,e,l,i,n,o;function f(t){return"string"==typeof t}function u(t){return t.reduce(function(t,e){return t.push(e),o(e.subActionOptions)?t.concat(e.subActionOptions):t},[])}function d(t){return f(t)?t.toUpperCase().charCodeAt(0):t}function a(t){return"ROWACTION_".concat(t)}function h(u){var t=a(u);return l.Commands[t]={canUndo:!1,execute:function(t,e){var n=t.commandManager(),t=t.Ofe(e.sheetName),i=t.Mf,o=i.getActiveRowIndex(),i=i.getDataItem(o);return n.execute(r(r({},e),{cmd:u,index:o,item:i,tableSheet:t})),!0}},t}r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,n,i,o,n=1,i=arguments.length;n<i;n++)for(o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},Object.defineProperty(e,"__esModule",{value:!0}),e=n("Common"),l=n("Core"),i=n("./dist/plugins/tableSheet/tablesheet-command.js"),n=e.Common.lt,o=n.Nh,l.Commands.uri=function(t){var e=l.mt.Qf(),n=!e,e=e;t.register(i.SAVE_ALL,l.Commands[i.SAVE_ALL],"S".charCodeAt(0),n,!0,!1,e),t.register(i.START_EDIT,l.Commands[i.START_EDIT],113,!1,!1,!1,!1),t.register(i.EXPAND_GROUP_ITEM,l.Commands[i.EXPAND_GROUP_ITEM]),t.register(i.EXPAND_GROUP,l.Commands[i.EXPAND_GROUP]),t.register(i.REMOVE_COLUMN_TO_TABLE,l.Commands[i.REMOVE_COLUMN_TO_TABLE]),t.register(i.MODIFY_COLUMN_TO_TABLE,l.Commands[i.MODIFY_COLUMN_TO_TABLE]),t.register(i.DEFINE_COLUMN_TO_TABLE,l.Commands[i.DEFINE_COLUMN_TO_TABLE]),t.register(i.VIEW_REMOVE_COLUMN_INFO,l.Commands[i.VIEW_REMOVE_COLUMN_INFO]),t.register(i.VIEW_UPDATE_COLUMN_INFO,l.Commands[i.VIEW_UPDATE_COLUMN_INFO]),t.register(i.VIEW_Add_COLUMN_INFO,l.Commands[i.VIEW_Add_COLUMN_INFO]),t.register(i.VIEW_MOVE_COLUMN,l.Commands[i.VIEW_MOVE_COLUMN]),t.register(i.GROUP_OPTIONS,l.Commands[i.GROUP_OPTIONS]),t.register(i.RESET_NEW_VIEW,l.Commands[i.RESET_NEW_VIEW]),t.register(i.REMOVE_CROSS_COLUMN,l.Commands[i.REMOVE_CROSS_COLUMN])},l.Commands.iMi=function(t,e){var s=t;u(e).forEach(function(t){var e,t,t,n,i,o,u,t,r,a,c,n,e=t.command,t=t.shortcutKey,t=void 0===t?{}:t,n=t.key,i=t.ctrl,o=t.shift,u=t.alt,t=t.meta;f(e)&&(r=h(e),a=s.getCommand(r),c=s.getCommand(e),n=d(n),c?f(c.shortcutKey)&&s.setShortcutKey(e,null,!1,!1,!1,!1):s.register(e,l.Commands[e]),a?a.shortcutKey!==s.getShortcutKey(n,i,o,u,t)&&s.setShortcutKey(r,n,i,o,u,t):s.register(r,l.Commands[r],n,i,o,u,t))})}},"./dist/plugins/tableSheet/tablesheet-command.js":function(t,e,n){var i,o,u,r,a;Object.defineProperty(e,"__esModule",{value:!0}),e.REMOVE_CROSS_COLUMN=e.RESET_NEW_VIEW=e.DEFINE_COLUMN_TO_TABLE=e.MODIFY_COLUMN_TO_TABLE=e.REMOVE_COLUMN_TO_TABLE=e.VIEW_MOVE_COLUMN=e.VIEW_Add_COLUMN_INFO=e.VIEW_UPDATE_COLUMN_INFO=e.VIEW_REMOVE_COLUMN_INFO=e.GROUP_OPTIONS=e.EXPAND_GROUP=e.EXPAND_GROUP_ITEM=e.RESET_ROW=e.SAVE_ROW=e.REMOVE_ROW=e.PIN_ROW=e.START_EDIT=e.SAVE_ALL=void 0,i=n("Core"),o=n("./dist/plugins/tableSheet/tableSheet-action.js"),u="TableSheet",r=function(t){return u+t},e.SAVE_ALL="SaveAll",e.START_EDIT="StartEdit",e.PIN_ROW="PinRow",e.REMOVE_ROW="RemoveRow",e.SAVE_ROW="SaveRow",e.RESET_ROW="ResetRow",e.EXPAND_GROUP_ITEM=u+"ExpandGroupItemCommand",e.EXPAND_GROUP=u+"ExpandGroupCommand",e.GROUP_OPTIONS=u+"SetGroupOptions",e.VIEW_REMOVE_COLUMN_INFO=u+"ViewRemoveColumnInfo",e.VIEW_UPDATE_COLUMN_INFO=u+"ViewUpdateColumnInfo",e.VIEW_Add_COLUMN_INFO=u+"ViewAddColumnInfo",e.VIEW_MOVE_COLUMN=u+"ViewMoveColumn",e.REMOVE_COLUMN_TO_TABLE="RemoveColumn",e.MODIFY_COLUMN_TO_TABLE="ModifyColumn",e.DEFINE_COLUMN_TO_TABLE="DefineColumn",e.RESET_NEW_VIEW=u+"ResetNewView",e.REMOVE_CROSS_COLUMN=u+"CrossColumnOptions",a=i.Commands.zA,i.Commands[e.SAVE_ALL]={canUndo:!1,execute:function(t,e,n){var i,t,o,u,r,i=t.Ofe(e.sheetName),t=i.id();for(i.suspendPaint(),o=0,u=t;o<u.length;o++)r=u[o],i.saveRow(r);return i.resumePaint(),!0}},i.Commands[e.START_EDIT]={canUndo:!1,execute:function(t,e){var t=t.Ofe(e.sheetName);return!t.isEditing()&&(t.Mf.startEdit(),!0)}},i.Commands[e.SAVE_ROW]={canUndo:!1,execute:function(t,e){var n=e.tableSheet,e=e.index;return n.Mf.ki(i.Events.RowOperation,{sheet:n,sheetName:n.name(),actionType:1,row:e}),n.saveRow(e),!0}},i.Commands[e.RESET_ROW]={canUndo:!0,execute:function(t,e,n){return e.sheetName=e.tableSheet.name(),a(t,o.ResetRowAction,e,n)}},i.Commands[e.EXPAND_GROUP_ITEM]={canUndo:!0,execute:function(t,e,n){return a(t,o.ExpandGroupItemAction,e,n)}},i.Commands[e.EXPAND_GROUP]={canUndo:!0,execute:function(t,e,n){return a(t,o.ExpandGroupAction,e,n)}},i.Commands[e.PIN_ROW]={canUndo:!0,execute:function(t,e,n){return e.sheetName=e.tableSheet.name(),a(t,o.PinRowAction,e,n)}},i.Commands[e.REMOVE_ROW]={canUndo:!0,execute:function(t,e,n){return a(t,o.RemoveRowAction,e,n)}},i.Commands[e.MODIFY_COLUMN_TO_TABLE]={canUndo:!0,execute:function(t,e,n){return a(t,o.ModifyColumnToTableAction,e,n)}},i.Commands[e.REMOVE_COLUMN_TO_TABLE]={canUndo:!0,execute:function(t,e,n){return a(t,o.RemoveColumnToTableAction,e,n)}},i.Commands[e.DEFINE_COLUMN_TO_TABLE]={canUndo:!0,execute:function(t,e,n){return a(t,o.DefineColumnToTableAction,e,n)}},i.Commands[e.VIEW_UPDATE_COLUMN_INFO]={canUndo:!0,execute:function(t,e,n){return a(t,o.ViewUpdateColumnInfoAction,e,n)}},i.Commands[e.VIEW_REMOVE_COLUMN_INFO]={canUndo:!0,execute:function(t,e,n){return a(t,o.ViewRemoveColumnInfoAction,e,n)}},i.Commands[e.VIEW_Add_COLUMN_INFO]={canUndo:!0,execute:function(t,e,n){return a(t,o.ViewAddColumnInfoAction,e,n)}},i.Commands[e.VIEW_MOVE_COLUMN]={canUndo:!0,execute:function(t,e,n){return a(t,o.ViewMoveColumnAction,e,n)}},i.Commands[e.GROUP_OPTIONS]={canUndo:!0,execute:function(t,e,n){return a(t,o.ViewGroupOptionsAction,e,n)}},i.Commands[e.RESET_NEW_VIEW]={canUndo:!0,execute:function(t,e,n){return a(t,o.TableSheetResertViewAction,e,n)}},i.Commands[e.REMOVE_CROSS_COLUMN]={canUndo:!0,execute:function(t,e,n){return a(t,o.TableSheetRemoveColumnInfoAction,e,n)}}},"./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-attachment-margin.js":function(t,e,n){var i,o,u,r,a,n,c,s;function l(t){var e;this.LEt=t}i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,n,i,o,n=1,i=arguments.length;n<i;n++)for(o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},Object.defineProperty(e,"__esModule",{value:!0}),e.OZe=void 0,o=n("Core"),u=n("./dist/plugins/tableSheet/tableSheet.js"),r=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-utils.js"),a=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-input-number.js"),n=o.mt,c=n.En,l.prototype.create=function(){var t,e,t=this,e;return(t.kZe=(0,o.GC$)(c("div"))).addClass("gc-defined-column-attachment-margins-container"),t.ZX()},l.prototype.ZX=function(){var t,t,t,t,e,n,i,e=this,n=e.kZe,i=e.LEt;return e._marginLeft=new a.EZe({inputId:"attachment-margin-left",minValue:0,label:{text:(0,u.getSR)().columnTypeAttachmentLeft},onChange:function(){e.ZZe()}}),e._marginLeft.create().appendTo(n),e._marginLeft.setValue(null!=(t=i.marginLeft)?t:2),e._marginRight=new a.EZe({inputId:"attachment-margin-right",minValue:0,label:{text:(0,u.getSR)().columnTypeAttachmentRight},onChange:function(){e.ZZe()}}),e._marginRight.create().appendTo(n),e._marginRight.setValue(null!=(t=i.marginRight)?t:2),e._marginTop=new a.EZe({inputId:"attachment-margin-top",minValue:0,label:{text:(0,u.getSR)().columnTypeAttachmentTop},onChange:function(){e.ZZe()}}),e._marginTop.create().appendTo(n),e._marginTop.setValue(null!=(t=i.marginTop)?t:2),e._marginBottom=new a.EZe({inputId:"attachment-margin-bottom",minValue:0,label:{text:(0,u.getSR)().columnTypeAttachmentBottom},onChange:function(){e.ZZe()}}),e._marginBottom.create().appendTo(n),e._marginBottom.setValue(null!=(t=i.marginBottom)?t:2),n},l.prototype.ZZe=function(){var t,t,t,t,e,e=this;this.LEt.onChange({marginLeft:null==(t=e._marginLeft)?void 0:t.value,marginRight:null==(t=e._marginRight)?void 0:t.value,marginTop:null==(t=e._marginTop)?void 0:t.value,marginBottom:null==(t=e._marginBottom)?void 0:t.value})},l.prototype.setOptions=function(t){var e=this;e.LEt=i(i({},e.LEt),t),e.clear(),e.ZX()},l.prototype.clear=function(){var t=this;t.L0(),t.kZe.empty()},l.prototype.dispose=function(){var t=this;t.clear(),t.kZe=r.keyword_null},l.prototype.L0=function(){var t=this;t._marginLeft&&t._marginLeft.dispose(),t._marginLeft=r.keyword_null,t._marginRight&&t._marginRight.dispose(),t._marginRight=r.keyword_null,t._marginTop&&t._marginTop.dispose(),t._marginTop=r.keyword_null,t._marginBottom&&t._marginBottom.dispose(),t._marginBottom=r.keyword_null},e.OZe=l},"./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-attachment.js":function(t,e,n){var i,o,u,r,a,c,s,n,l,f,d,n;function h(t){var e;this.LEt=t}i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,n,i,o,n=1,i=arguments.length;n<i;n++)for(o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},Object.defineProperty(e,"__esModule",{value:!0}),e.UZe=e.AcceptExtensionsValueType=void 0,o=n("Core"),u=n("./dist/plugins/tableSheet/tableSheet.js"),r=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-checkbox.js"),a=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-select.js"),c=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-input-number.js"),s=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-utils.js"),n=o.mt,l=n.En,(n=f=e.AcceptExtensionsValueType||(e.AcceptExtensionsValueType={})).txt=".txt",n.all="",n.pdf=".pdf",n.image=".jpg, .png, .gif",n.excel=".xls, .xlsx, .ppt, .pptx, .doc, .docx",h.prototype.create=function(){var t,e,t=this,e;return(t.BZe=(0,o.GC$)(l("div"))).addClass("gc-defined-column-attachment-container"),t.ZX()},h.prototype.ZX=function(){var t,e,n,t=this,e=t.BZe,n=t.LEt;return t.cb=new a.GZe({inputId:"attachment-file-type",items:[{text:(0,u.getSR)().columnTypeAttachmentAcceptValueTypes.all,value:f.all},{text:(0,u.getSR)().columnTypeAttachmentAcceptValueTypes.txt,value:f.txt},{text:(0,u.getSR)().columnTypeAttachmentAcceptValueTypes.image,value:f.image},{text:(0,u.getSR)().columnTypeAttachmentAcceptValueTypes.pdf,value:f.pdf},{text:(0,u.getSR)().columnTypeAttachmentAcceptValueTypes.excel,value:f.excel}],label:{text:(0,u.getSR)().columnTypeAttachmentAccept},onChange:function(){t.RZe()}}),t.cb.create().appendTo(e),t.cb.setValue(n.fileType||""),t.PZe=new c.EZe({inputId:"attachment-size-limit",minValue:0,label:{text:(0,u.getSR)().columnTypeAttachmentMaxSize},onChange:function(){t.RZe()}}),t.PZe.create().appendTo(e),t.PZe.setValue(n.maxSize||2048),t.QZe=new r.YZe({label:{text:(0,u.getSR)().columnTypeAttachmentIsPreviewEnabled},onChange:function(){t.RZe()}}),t.QZe.create().appendTo(e),t.QZe.setValue(!!n.preview||(0,s.isNullOrUndefined)(n.preview)),t.WZe=new r.YZe({label:{text:(0,u.getSR)().columnTypeAttachmentIsDownloadEnabled},onChange:function(){t.RZe()}}),t.WZe.create().appendTo(e),t.WZe.setValue(!!n.download||(0,s.isNullOrUndefined)(n.download)),t.d5=new r.YZe({label:{text:(0,u.getSR)().columnTypeAttachmentIsClearEnabled},onChange:function(){t.RZe()}}),t.d5.create().appendTo(e),t.d5.setValue(!!n.clear||(0,s.isNullOrUndefined)(n.clear)),e},h.prototype.RZe=function(){var t,t,t,t,t,e,e=this;this.LEt.onChange({fileType:null==(t=e.cb)?void 0:t.value,maxSize:null==(t=e.PZe)?void 0:t.value,preview:null==(t=e.QZe)?void 0:t.value,download:null==(t=e.WZe)?void 0:t.value,clear:null==(t=e.d5)?void 0:t.value})},h.prototype.setOptions=function(t){var e=this;e.LEt=i(i({},e.LEt),t),e.clear(),e.ZX()},h.prototype.clear=function(){var t=this;t.L0(),t.BZe.empty()},h.prototype.dispose=function(){var t=this;t.clear(),t.BZe=s.keyword_null},h.prototype.L0=function(){var t=this;t.cb&&t.cb.dispose(),t.cb=s.keyword_null,t.PZe&&t.PZe.dispose(),t.PZe=s.keyword_null,t.QZe&&t.QZe.dispose(),t.QZe=s.keyword_null,t.WZe&&t.WZe.dispose(),t.WZe=s.keyword_null,t.d5&&t.d5.dispose(),t.d5=s.keyword_null},e.UZe=h},"./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-barcode/tablesheet-define-column-barcode-base-options.js":function(t,e,n){var i,a,u,r,c,s,n,o,l;function f(t){var e=this;e.LEt=t,e.xT=[],e.selectBarcode="data_"+t.option.barcodeType,e.fontOptions=[]}Object.defineProperty(e,"__esModule",{value:!0}),e.HZe=void 0,i=n("Core"),a=n("./dist/plugins/tableSheet/tableSheet.js"),u=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-checkbox.js"),r=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-input.js"),c=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-input-number.js"),s=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-select.js"),n=i.mt,o=n.En,f.prototype.create=function(){var t;return this.ZX()},f.prototype.ZX=function(){},f.prototype.VZe=function(t,e,n,i,o){var u,n,u=this,n=new s.GZe({inputId:"barcode-"+e,defaultValue:u.LEt.option[u.selectBarcode][e],items:n,enable:i,label:{text:(0,a.getSR)().columnTypeBarcodeLabel[e]},onChange:function(t){u.LEt.option[u.selectBarcode][e]=t.value,o&&o(t),u.onChange()}});return n.create().appendTo(t),u.xT.push(n),n},f.prototype.FZe=function(t,e,n,i){var o,n,o=this,n=new r._Ze({inputId:"barcode-"+e,enable:n,defaultValue:o.LEt.option[o.selectBarcode][e],className:"gc-defined-column-barcode-options-input",label:{text:(0,a.getSR)().columnTypeBarcodeLabel[e]},onBlur:function(t){o.LEt.option[o.selectBarcode][e]=t,i&&i(t),o.onChange()}});return n.create().appendTo(t),o.xT.push(n),n},f.prototype.JZe=function(t,e,n,i){var o,n,o=this,n=new u.YZe({defaultValue:o.LEt.option[o.selectBarcode][e],label:{text:(0,a.getSR)().columnTypeBarcodeLabel[e]},enable:n,textDisplay:1,inputId:e,onChange:function(t){o.LEt.option[o.selectBarcode][e]=t,i&&i(t),o.onChange()}});return n.create().appendTo(t),o.xT.push(n),n},f.prototype.XZe=function(t,e,n,i,o,u){var r,n,r=this,n=new c.EZe({defaultValue:r.LEt.option[r.selectBarcode][e],minValue:n,maxValue:i,enable:o,label:{text:(0,a.getSR)().columnTypeBarcodeLabel[e]},inputId:e,onChange:function(t){r.LEt.option[r.selectBarcode][e]=t,u&&u(t),r.onChange()}});return n.create().appendTo(t),r.xT.push(n),n},f.prototype.KZe=function(t){var e,n,e=this,n=(0,i.GC$)(o("div"));return n.addClass("gc-defined-column-empty-div"),n.appendTo(t),e.xT.push(n),n},f.prototype.qZe=function(t){var e,n,i,e=this,n=e.fontOptions,i=e.labelPosition;e.JZe(t,"showLabel",void 0,function(t){t?(n.forEach(function(t){t.isDisable()&&t.resetDisable()}),i.isDisable()&&i.resetDisable()):(n.forEach(function(t){t.isDisable()||t.resetDisable()}),i.isDisable()||i.resetDisable())}),i=e.VZe(t,"labelPosition",[{text:"top",value:"top"},{text:"bottom",value:"bottom"}],!1)},f.prototype.$Ze=function(t){var e,n,e=this,n=e.fontOptions;n.push(e.VZe(t,"fontFamily",[{text:"sans-serif",value:"sans-serif"},{text:"serif",value:"serif"},{text:"monospace",value:"monospace"},{text:"Arial",value:"Arial"},{text:"Verdana",value:"Verdana"},{text:"Times",value:"Times"}],!1)),n.push(e.VZe(t,"fontStyle",[{text:"normal",value:"normal"},{text:"italic",value:"italic"}],!1)),n.push(e.VZe(t,"fontWeight",[{text:"normal",value:"normal"},{text:"bold",value:"bold"}],!1)),n.push(e.VZe(t,"fontTextDecoration",[{text:"none",value:"none"},{text:"underline",value:"underline"},{text:"overline",value:"overline"},{text:"line-through",value:"line-through"}],!1)),n.push(e.VZe(t,"fontTextAlign",[{text:"center",value:"center"},{text:"left",value:"left"},{text:"right",value:"right"},{text:"group",value:"group"}],!1)),n.push(e.VZe(t,"fontSize",[{text:"12",value:12},{text:"13",value:13},{text:"14",value:14},{text:"15",value:15},{text:"16",value:16},{text:"17",value:17},{text:"18",value:18},{text:"19",value:19},{text:"20",value:20},{text:"21",value:21},{text:"22",value:22}],!1)),n.forEach(function(t){t.container.addClass("gc-defined-column-field-item-small-container")})},f.prototype.onChange=function(){var t=this,e=t.LEt.onChange;e&&e(t.LEt.option)},f.prototype.MUe=function(t){for(var e,n,i,e=0,n=t;e<n.length;e++)(i=n[e]).dispose?i.dispose():i.unbind&&i.unbind("click");return[]},f.prototype.dispose=function(){var t=this;t.xT=t.MUe(t.xT)},e.HZe=f},"./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-barcode/tablesheet-define-column-barcode-base.js":function(t,e,n){var i,o,u,r,a,n,c,s;function l(t){var e=this;e.LEt=t,e.xT=[]}Object.defineProperty(e,"__esModule",{value:!0}),e.IUe=void 0,i=n("Core"),o=n("./dist/plugins/tableSheet/tableSheet.js"),u=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-input.js"),r=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-input-number.js"),a=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-select.js"),n=i.mt,c=n.En,l.prototype.create=function(){var t;return this.ZX()},l.prototype.ZX=function(){var e,t,n,n,e=this,t=(0,i.GC$)(c("div"));return t.addClass("gc-defined-column-barcode-base-container"),(n=new a.GZe({inputId:"barcode-type",defaultValue:e.LEt.option.barcodeType,enableSearch:!0,items:[{text:"QRCODE",value:"QRCODE"},{text:"EAN13",value:"EAN13"},{text:"EAN8",value:"EAN8"},{text:"CODABAR",value:"CODABAR"},{text:"CODE39",value:"CODE39"},{text:"CODE93",value:"CODE93"},{text:"CODE128",value:"CODE128"},{text:"GS1_128",value:"GS1_128"},{text:"CODE49",value:"CODE49"},{text:"PDF417",value:"PDF417"},{text:"DATAMATRIX",value:"DATAMATRIX"}],label:{text:(0,o.getSR)().columnTypeBarcodeLabel.barcodeType},onChange:function(t){e.LEt.option.barcodeType=t.value,e.onChange(!0)}})).create().appendTo(t),e.xT.push(n),(n=(0,i.GC$)(c("div"))).addClass("gc-defined-column-barcode-base-style-container"),n.appendTo(t),e.NUe(n,"color",(0,o.getSR)().columnTypeBarcodeLabel.color),e.NUe(n,"backgroundColor",(0,o.getSR)().columnTypeBarcodeLabel.backgroundColor),e.DUe(n,"quietZoneLeft",(0,o.getSR)().columnTypeBarcodeLabel.quietZoneLeft,!0),e.DUe(n,"quietZoneRight",(0,o.getSR)().columnTypeBarcodeLabel.quietZoneRight,!0),e.DUe(n,"quietZoneTop",(0,o.getSR)().columnTypeBarcodeLabel.quietZoneTop,!0),e.DUe(n,"quietZoneBottom",(0,o.getSR)().columnTypeBarcodeLabel.quietZoneBottom,!0),t},l.prototype.NUe=function(t,e,n){var i,n,i=this,n=new u._Ze({inputId:"barcode-"+e,type:"color",defaultValue:i.LEt.option[e],label:{text:n},onChange:function(t){i.LEt.option[e]=t,i.onChange()}});n.create().appendTo(t),i.xT.push(n)},l.prototype.DUe=function(t,e,n,i){var o,n,o=this,n=new r.EZe({inputId:"barcode-"+e,defaultValue:o.LEt.option[e],label:{text:n,useRawContent:i},allowMinNull:!0,maxValue:1e3,onChange:function(t){o.LEt.option[e]=t,o.onChange()}});n.create().appendTo(t),o.xT.push(n)},l.prototype.onChange=function(t){var e=this,n=e.LEt.onChange;n&&n(e.LEt.option,t)},l.prototype.MUe=function(t){for(var e,n,i,e=0,n=t;e<n.length;e++)(i=n[e]).dispose?i.dispose():i.unbind&&i.unbind("click");return[]},l.prototype.dispose=function(){var t=this;t.xT=t.MUe(t.xT)},e.IUe=l},"./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-barcode/tablesheet-define-column-barcode-codabar.js":function(t,e,n){var i,o,n,u,r,a,c,s;function l(){return null!==s&&s.apply(this,arguments)||this}i=this&&this.__extends||(c=function(t,e){return(c=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}c(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),Object.defineProperty(e,"__esModule",{value:!0}),e.jUe=void 0,o=n("Core"),n=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-barcode/tablesheet-define-column-barcode-base-options.js"),u=o.mt,r=u.En,s=n.HZe,i(l,s),l.prototype.ZX=function(){var t,e,t=this,e=(0,o.GC$)(r("div"));return e.addClass("gc-defined-column-barcode-options-container"),t.qZe(e),t.JZe(e,"checkDigit"),t.VZe(e,"nwRatio",[{text:"3",value:"3"},{text:"2",value:"2"}]),t.$Ze(e),e},e.jUe=l},"./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-barcode/tablesheet-define-column-barcode-code128.js":function(t,e,n){var i,o,n,u,r,a,c,s;function l(){return null!==s&&s.apply(this,arguments)||this}i=this&&this.__extends||(c=function(t,e){return(c=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}c(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),Object.defineProperty(e,"__esModule",{value:!0}),e.CUe=void 0,o=n("Core"),n=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-barcode/tablesheet-define-column-barcode-base-options.js"),u=o.mt,r=u.En,s=n.HZe,i(l,s),l.prototype.ZX=function(){var t,e,t=this,e=(0,o.GC$)(r("div"));return e.addClass("gc-defined-column-barcode-options-container"),t.qZe(e),t.VZe(e,"codeSet",[{text:"auto",value:"auto"},{text:"A",value:"A"},{text:"B",value:"B"},{text:"C",value:"C"}]),t.KZe(e),t.$Ze(e),e},e.CUe=l},"./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-barcode/tablesheet-define-column-barcode-code39.js":function(t,e,n){var i,o,n,u,r,a,c,s;function l(){return null!==s&&s.apply(this,arguments)||this}i=this&&this.__extends||(c=function(t,e){return(c=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}c(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),Object.defineProperty(e,"__esModule",{value:!0}),e.wUe=void 0,o=n("Core"),n=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-barcode/tablesheet-define-column-barcode-base-options.js"),u=o.mt,r=u.En,s=n.HZe,i(l,s),l.prototype.ZX=function(){var t,e,t=this,e=(0,o.GC$)(r("div"));return e.addClass("gc-defined-column-barcode-options-container"),t.qZe(e),t.JZe(e,"labelWithStartAndStopCharacter"),t.JZe(e,"checkDigit"),t.VZe(e,"nwRatio",[{text:"3",value:"3"},{text:"2",value:"2"}]),t.JZe(e,"fullASCII"),t.$Ze(e),e},e.wUe=l},"./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-barcode/tablesheet-define-column-barcode-code49.js":function(t,e,n){var i,o,n,u,r,a,c,s;function l(){return null!==s&&s.apply(this,arguments)||this}i=this&&this.__extends||(c=function(t,e){return(c=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}c(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),Object.defineProperty(e,"__esModule",{value:!0}),e.yUe=void 0,o=n("Core"),n=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-barcode/tablesheet-define-column-barcode-base-options.js"),u=o.mt,r=u.En,s=n.HZe,i(l,s),l.prototype.ZX=function(){var t,e,t=this,e=(0,o.GC$)(r("div"));return e.addClass("gc-defined-column-barcode-options-container"),t.qZe(e),t.JZe(e,"grouping"),t.FZe(e,"groupNo"),t.$Ze(e),e},e.yUe=l},"./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-barcode/tablesheet-define-column-barcode-code93.js":function(t,e,n){var i,o,n,u,r,a,c,s;function l(){return null!==s&&s.apply(this,arguments)||this}i=this&&this.__extends||(c=function(t,e){return(c=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}c(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),Object.defineProperty(e,"__esModule",{value:!0}),e.xUe=void 0,o=n("Core"),n=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-barcode/tablesheet-define-column-barcode-base-options.js"),u=o.mt,r=u.En,s=n.HZe,i(l,s),l.prototype.ZX=function(){var t,e,t=this,e=(0,o.GC$)(r("div"));return e.addClass("gc-defined-column-barcode-options-container"),t.qZe(e),t.JZe(e,"checkDigit"),t.JZe(e,"fullASCII"),t.$Ze(e),e},e.xUe=l},"./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-barcode/tablesheet-define-column-barcode-datamatrix.js":function(t,e,n){var i,o,u,r,n,a,c,s,l;function f(){return null!==l&&l.apply(this,arguments)||this}i=this&&this.__extends||(s=function(t,e){return(s=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}s(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),Object.defineProperty(e,"__esModule",{value:!0}),e.AUe=void 0,o=n("Core"),u=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-barcode/tablesheet-define-column-barcode-base-options.js"),r=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-barcode/tablesheet-define-column-barcode-utils.js"),n=o.mt,a=n.En,l=u.HZe,i(f,l),f.prototype.ZX=function(){var t,e,n,i,t=this,e=(0,o.GC$)(a("div"));return e.addClass("gc-defined-column-barcode-options-container"),n=[],t.VZe(e,"eccMode",[{text:"ECC000",value:"ECC000"},{text:"ECC050",value:"ECC050"},{text:"ECC080",value:"ECC080"},{text:"ECC100",value:"ECC100"},{text:"ECC140",value:"ECC140"},{text:"ECC200",value:"ECC200"}],void 0,function(t){var t=t.value;"ECC140"===t?(i.isDisable()&&i.resetDisable(),n.forEach(function(t){t.isDisable()||t.resetDisable()})):(n.forEach("ECC200"===t?function(t){t.isDisable()&&t.resetDisable()}:function(t){t.isDisable()||t.resetDisable()}),i.isDisable()||i.resetDisable())}),n.push(t.JZe(e,"structureAppend",!1)),n.push(t.VZe(e,"ecc200SymbolSize",[{text:"squareAuto",value:"squareAuto"},{text:"rectangularAuto",value:"rectangularAuto"},{text:"square10",value:"square10"},{text:"square12",value:"square12"},{text:"square14",value:"square14"},{text:"square16",value:"square16"},{text:"square18square20",value:"square18square20"},{text:"square22",value:"square22"},{text:"square24",value:"square24"},{text:"square26",value:"square26"},{text:"square32",value:"square32"},{text:"square36",value:"square36"},{text:"square40",value:"square40"},{text:"square44",value:"square44"},{text:"square48",value:"square48"},{text:"square52",value:"square52"},{text:"square64",value:"square64"},{text:"square72",value:"square72"},{text:"square80",value:"square80"},{text:"square88",value:"square88"},{text:"square96",value:"square96"},{text:"square104",value:"square104"},{text:"square120",value:"square120"},{text:"square132",value:"square132"},{text:"square144",value:"square144"},{text:"rectangular8x18",value:"rectangular8x18"},{text:"rectangular8x32",value:"rectangular8x32"},{text:"rectangular12x26",value:"rectangular12x26"},{text:"rectangular12x36",value:"rectangular12x36"},{text:"rectangular16x36",value:"rectangular16x36"},{text:"rectangular16x48",value:"rectangular16x48"}],!1)),n.push(t.VZe(e,"structureNumber",(0,r.getItems)(15,!1,!0),!1)),n.push(t.VZe(e,"ecc200EncodingMode",[{text:"auto",value:"auto"},{text:"ASCII",value:"ASCII"},{text:"C40",value:"C40"},{text:"Text",value:"Text"},{text:"X12",value:"X12"},{text:"EDIFACT",value:"EDIFACT"},{text:"Base256",value:"Base256"}],!1)),n.push(t.XZe(e,"fileIdentifier",0,254,!1)),i=t.VZe(e,"ecc00_140Symbol",[{text:"auto",value:"auto"},{text:"square9",value:"square9"},{text:"square11",value:"square11"},{text:"square13",value:"square13"},{text:"square15",value:"square15"},{text:"square17",value:"square17"},{text:"square19",value:"square19"},{text:"square21",value:"square21"},{text:"square23",value:"square23"},{text:"square25",value:"square25"},{text:"square27",value:"square27"},{text:"square29",value:"square29"},{text:"square31",value:"square31"},{text:"square33",value:"square33"},{text:"square35",value:"square35"},{text:"square37",value:"square37"},{text:"square39",value:"square39"},{text:"square41",value:"square41"},{text:"square43",value:"square43"},{text:"square45",value:"square45"},{text:"square47",value:"square47"},{text:"square49",value:"square49"}],!1),e},e.AUe=f},"./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-barcode/tablesheet-define-column-barcode-ean13.js":function(t,e,n){var i,o,n,u,r,a,c,s;function l(){return null!==s&&s.apply(this,arguments)||this}i=this&&this.__extends||(c=function(t,e){return(c=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}c(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),Object.defineProperty(e,"__esModule",{value:!0}),e.TUe=void 0,o=n("Core"),n=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-barcode/tablesheet-define-column-barcode-base-options.js"),u=o.mt,r=u.En,s=n.HZe,i(l,s),l.prototype.ZX=function(){var t,e,t=this,e=(0,o.GC$)(r("div"));return e.addClass("gc-defined-column-barcode-options-container"),t.qZe(e),t.FZe(e,"addOn"),t.VZe(e,"addOnLabelPosition",[{text:"top",value:"top"},{text:"bottom",value:"bottom"}]),t.$Ze(e),e},e.TUe=l},"./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-barcode/tablesheet-define-column-barcode-ean8.js":function(t,e,n){var i,o,n,u,r,a,c,s;function l(){return null!==s&&s.apply(this,arguments)||this}i=this&&this.__extends||(c=function(t,e){return(c=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}c(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),Object.defineProperty(e,"__esModule",{value:!0}),e.SUe=void 0,o=n("Core"),n=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-barcode/tablesheet-define-column-barcode-base-options.js"),u=o.mt,r=u.En,s=n.HZe,i(l,s),l.prototype.ZX=function(){var t,e,t=this,e=(0,o.GC$)(r("div"));return e.addClass("gc-defined-column-barcode-options-container"),t.qZe(e),t.$Ze(e),e},e.SUe=l},"./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-barcode/tablesheet-define-column-barcode-gs1_128.js":function(t,e,n){var i,o,n,u,r,a,c,s;function l(){return null!==s&&s.apply(this,arguments)||this}i=this&&this.__extends||(c=function(t,e){return(c=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}c(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),Object.defineProperty(e,"__esModule",{value:!0}),e.zUe=void 0,o=n("Core"),n=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-barcode/tablesheet-define-column-barcode-base-options.js"),u=o.mt,r=u.En,s=n.HZe,i(l,s),l.prototype.ZX=function(){var t,e,t=this,e=(0,o.GC$)(r("div"));return e.addClass("gc-defined-column-barcode-options-container"),t.qZe(e),t.$Ze(e),e},e.zUe=l},"./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-barcode/tablesheet-define-column-barcode-options-container.js":function(t,e,n){var i,o,u,r,a,c,s,l,f,d,h,g;function b(t){var e=this;e.LEt=t,e.xT=[]}Object.defineProperty(e,"__esModule",{value:!0}),e.LUe=void 0,i=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-barcode/tablesheet-define-column-barcode-codabar.js"),o=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-barcode/tablesheet-define-column-barcode-ean13.js"),u=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-barcode/tablesheet-define-column-barcode-ean8.js"),r=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-barcode/tablesheet-define-column-barcode-code128.js"),a=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-barcode/tablesheet-define-column-barcode-code39.js"),c=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-barcode/tablesheet-define-column-barcode-code49.js"),s=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-barcode/tablesheet-define-column-barcode-code93.js"),l=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-barcode/tablesheet-define-column-barcode-datamatrix.js"),f=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-barcode/tablesheet-define-column-barcode-gs1_128.js"),d=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-barcode/tablesheet-define-column-barcode-pdf417.js"),h=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-barcode/tablesheet-define-column-barcode-qrcode.js"),b.prototype.create=function(){var t;this.ZX()},b.prototype.ZX=function(){var t;this.OUe()},b.prototype.kUe=function(t){var e,n,i,t,e=this,n=e.LEt.option,i=e.LEt.panel,t=new t({option:n,onChange:function(t){e.FSi(t)}});t.create().appendTo(i),e.xT.push(t)},b.prototype.OUe=function(){var t=this,e,n;switch(t.LEt.option.barcodeType){case"QRCODE":t.kUe(h.EUe);break;case"EAN13":t.kUe(o.TUe);break;case"EAN8":t.kUe(u.SUe);break;case"CODABAR":t.kUe(i.jUe);break;case"CODE39":t.kUe(a.wUe);break;case"CODE93":t.kUe(s.xUe);break;case"CODE128":t.kUe(r.CUe);break;case"GS1_128":t.kUe(f.zUe);break;case"CODE49":t.kUe(c.yUe);break;case"PDF417":t.kUe(d.ZUe);break;case"DATAMATRIX":t.kUe(l.AUe)}},b.prototype.FSi=function(t){var e,n=this.LEt.onChange;n&&n(t)},b.prototype.reset=function(){var t=this;t.d5(),t.ZX()},b.prototype.d5=function(){var t=this;t.LEt.panel.empty(),t.xT=t.MUe(t.xT)},b.prototype.MUe=function(t){for(var e,n,i,e=0,n=t;e<n.length;e++)(i=n[e]).dispose?i.dispose():i.unbind&&i.unbind("click");return[]},b.prototype.dispose=function(){var t=this;t.xT=t.MUe(t.xT)},e.LUe=b},"./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-barcode/tablesheet-define-column-barcode-pdf417.js":function(t,e,n){var i,o,u,r,n,a,c,s,l;function f(){return null!==l&&l.apply(this,arguments)||this}i=this&&this.__extends||(s=function(t,e){return(s=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}s(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),Object.defineProperty(e,"__esModule",{value:!0}),e.ZUe=void 0,o=n("Core"),u=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-barcode/tablesheet-define-column-barcode-base-options.js"),r=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-barcode/tablesheet-define-column-barcode-utils.js"),n=o.mt,a=n.En,l=u.HZe,i(f,l),f.prototype.ZX=function(){var t,e,t=this,e=(0,o.GC$)(a("div"));return e.addClass("gc-defined-column-barcode-options-container"),t.VZe(e,"errorCorrectionLevel",(0,r.getItems)(8,!0,!0)),t.VZe(e,"columns",(0,r.getItems)(30,!0)),t.VZe(e,"rows",(0,r.getItems)(90,!0)),t.JZe(e,"compact"),e},e.ZUe=f},"./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-barcode/tablesheet-define-column-barcode-qrcode.js":function(t,e,n){var i,o,n,u,r,a,c,s;function l(){return null!==s&&s.apply(this,arguments)||this}i=this&&this.__extends||(c=function(t,e){return(c=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}c(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),Object.defineProperty(e,"__esModule",{value:!0}),e.EUe=void 0,o=n("Core"),n=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-barcode/tablesheet-define-column-barcode-base-options.js"),u=o.mt,r=u.En,s=n.HZe,i(l,s),l.prototype.ZX=function(){var t,e,t=this,e=(0,o.GC$)(r("div"));return e.addClass("gc-defined-column-barcode-options-container"),t.VZe(e,"errorCorrectionLevel",[{text:"L",value:"L"},{text:"M",value:"M"},{text:"Q",value:"Q"},{text:"H",value:"H"}]),t.JZe(e,"connection"),t.VZe(e,"model",[{text:"2",value:2},{text:"1",value:1}]),t.VZe(e,"connectionNo",[{text:"0",value:0},{text:"1",value:1},{text:"2",value:2},{text:"3",value:3},{text:"4",value:4},{text:"5",value:5},{text:"6",value:6},{text:"7",value:7},{text:"8",value:8},{text:"9",value:9},{text:"10",value:10},{text:"11",value:11},{text:"12",value:12},{text:"13",value:13},{text:"14",value:14},{text:"15",value:15}]),t.VZe(e,"version",[{text:"auto",value:"auto"},{text:"1",value:"1"},{text:"2",value:"2"},{text:"3",value:"3"},{text:"4",value:"4"},{text:"5",value:"5"},{text:"6",value:"6"},{text:"7",value:"7"},{text:"8",value:"8"},{text:"9",value:"9"},{text:"10",value:"10"},{text:"11",value:"11"},{text:"12",value:"12"},{text:"13",value:"13"},{text:"14",value:"14"}]),t.FZe(e,"charCode"),t.VZe(e,"mask",[{text:"auto",value:"auto"},{text:"1",value:"1"},{text:"2",value:"2"},{text:"3",value:"3"},{text:"4",value:"4"},{text:"5",value:"5"},{text:"6",value:"6"},{text:"7",value:"7"}]),t.VZe(e,"charset",[{text:"UTF-8",value:"UTF-8"},{text:"Shift_JIS",value:"Shift_JIS"}]),e},e.EUe=l},"./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-barcode/tablesheet-define-column-barcode-utils.js":function(t,v,e){var u,M,n,I,e;function i(t){return{barcodeType:I.QRCODE,value:o(t),backgroundColor:"#FFFFFF",color:"#000000",data_CODABAR:v.BarCode_DefaultValue_CODABAR,data_CODE39:v.BarCode_DefaultValue_CODE39,data_CODE49:v.BarCode_DefaultValue_CODE49,data_CODE93:v.BarCode_DefaultValue_CODE93,data_CODE128:v.BarCode_DefaultValue_CODE128,data_DATAMATRIX:v.BarCode_DefaultValue_DATAMATRIX,data_EAN8:v.BarCode_DefaultValue_EAN8,data_EAN13:v.BarCode_DefaultValue_EAN13,data_GS1_128:v.BarCode_DefaultValue_GS1_128,data_QRCODE:v.BarCode_DefaultValue_QRCODE,data_PDF417:v.BarCode_DefaultValue_PDF417}}function o(t){return t?-1<t.indexOf(" ")?"[@["+t+"]]":"[@"+t+"]":n.keyword_null}function r(t,e){var n,n,i,n=null==(n=t.NMi)?void 0:n.getDataView();if(n)try{return n.Ywt(e)}catch(t){}try{return(i=t.getCalcService()).parse(null,e,0,0)}catch(t){}}function m(t,e){var n,i,o,n=t.parent;try{if((i=r(t,e))&&i.type===M.ExpressionType.function&&(o=i.functionName)&&n.getSparklineEx(o))return i}catch(t){}return null}function a(t,e){var t,n,i,o,u,r,e,a,c,s,l,f,d,h,g,b,b,t=m(t,e);if(t&&t.arguments&&(n={barcodeType:I.QRCODE,value:"",backgroundColor:"#FFFFFF",color:"#000000",data_CODABAR:v.BarCode_DefaultValue_CODABAR,data_CODE39:v.BarCode_DefaultValue_CODE39,data_CODE49:v.BarCode_DefaultValue_CODE49,data_CODE93:v.BarCode_DefaultValue_CODE93,data_CODE128:v.BarCode_DefaultValue_CODE128,data_DATAMATRIX:v.BarCode_DefaultValue_DATAMATRIX,data_EAN8:v.BarCode_DefaultValue_EAN8,data_EAN13:v.BarCode_DefaultValue_EAN13,data_GS1_128:v.BarCode_DefaultValue_GS1_128,data_QRCODE:v.BarCode_DefaultValue_QRCODE,data_PDF417:v.BarCode_DefaultValue_PDF417},!((o=(i=t.arguments).length)<=0))){for(u=0;u<o;u++)i[u].type===M.ExpressionType.reference&&(r="",i[u]={value:"=",type:"referenceValue"});for(e=t.functionName.substr(3),n.barcodeType=I[e],n.value=i[0]&&i[0].value?i[0].value:"",n.color=i[1]&&i[1].value?i[1].value:n.color,n.backgroundColor=i[2]&&i[2].value?i[2].value:n.backgroundColor,n.quietZoneLeft=i[o-4]&&i[o-4].value?i[o-4].value:"",n.quietZoneRight=i[o-4]&&i[o-3].value?i[o-3].value:"",n.quietZoneTop=i[o-4]&&i[o-2].value?i[o-2].value:"",n.quietZoneBottom=i[o-4]&&i[o-1].value?i[o-1].value:"",a={},c=3,s=v.DefaultBarCodeTypeData[n.barcodeType],l=0,f=Object.keys(s);l<f.length;l++)d=f[l],g=void 0,g=(h=i[c])&&h.type!==M.ExpressionType.missingArgument?h.value:s[d],a[d]=g,c++;switch(n.barcodeType){case I.QRCODE:(b=a).version=""+b.version,b.mask=""+b.mask,n.data_QRCODE=b;break;case I.EAN13:n.data_EAN13=a;break;case I.EAN8:n.data_EAN8=a;break;case I.CODE39:n.data_CODE39=a;break;case I.CODE49:n.data_CODE49=a;break;case I.CODE93:n.data_CODE93=a;break;case I.CODE128:n.data_CODE128=a;break;case I.PDF417:(b=a).errorCorrectionLevel=""+b.errorCorrectionLevel,b.rows=""+b.rows,b.columns=""+b.columns,n.data_PDF417=b;break;case I.DATAMATRIX:n.data_DATAMATRIX=a;break;case I.GS1_128:n.data_GS1_128=a}return n}}function c(t,e){var n,i,o,u,r,a,c,s,l,f,o,n="",i=[],o=e.value||"";try{d(o)?0<(u=[]).length&&i.push(o.substr(1)):i.push(o)}catch(t){i.push('"'+o+'"')}switch(i.push('"'+e.color+'"'),i.push('"'+e.backgroundColor+'"'),r={},e.barcodeType){case I.QRCODE:r=e.data_QRCODE;break;case I.EAN13:r=e.data_EAN13;break;case I.EAN8:r=e.data_EAN8;break;case I.CODE39:r=e.data_CODE39;break;case I.CODE49:r=e.data_CODE49;break;case I.CODE93:r=e.data_CODE93;break;case I.CODE128:r=e.data_CODE128;break;case I.PDF417:r=e.data_PDF417;break;case I.DATAMATRIX:r=e.data_DATAMATRIX;break;case I.GS1_128:r=e.data_GS1_128;break;case I.CODABAR:r=e.data_CODABAR}for(a=!1===r.showLabel,c=0,s=Object.keys(r);c<s.length;c++)l=s[c],!a||"labelPosition"!==l&&"font"!==l.substr(0,4)?(f=String(r[l]),void 0===r[l]&&(f=""),/^[0-9]+.?[0-9]*$/.test(f)||null===f||""===f||"true"===f||"false"===f||-1!==f.indexOf("{")||(f='"'+f+'"'),i.push(f)):i.push("");return i.push(e.quietZoneLeft),i.push(e.quietZoneRight),i.push(e.quietZoneTop),i.push(e.quietZoneBottom),o=i.join(","),n=(n=n+("=BC_"+e.barcodeType.toUpperCase())+"(")+o+")"}function s(t,e,n){var i,o,t,t,i={text:"auto",value:"auto"},o={text:"0",value:"0"},t=Array.from({length:t},function(t,e){return{text:(e+1).toString(),value:(e+1).toString()}}),t=u([],t,!0);return n&&t.unshift(o),e&&t.unshift(i),t}function d(t){return t&&"string"==typeof t&&"="===t.toString().charAt(0)}u=this&&this.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var i=0,o=e.length,u;i<o;i++)!u&&i in e||((u=u||Array.prototype.slice.call(e,0,i))[i]=e[i]);return t.concat(u||Array.prototype.slice.call(e))},Object.defineProperty(v,"__esModule",{value:!0}),v.getItems=v.createBarcodeFormula=v.parseBarCodeOptions=v.getFieldRef=v.getDefaultBarcodeOptions=v.DefaultBarCodeTypeData=v.BarCode_DefaultValue_CODE128=v.BarCode_DefaultValue_CODE93=v.BarCode_DefaultValue_CODE39=v.BarCode_DefaultValue_CODABAR=v.BarCode_DefaultValue_CODE49=v.BarCode_DefaultValue_QRCODE=v.BarCode_DefaultValue_PDF417=v.BarCode_DefaultValue_GS1_128=v.BarCode_DefaultValue_EAN13=v.BarCode_DefaultValue_EAN8=v.BarCode_DefaultValue_DATAMATRIX=v.SANS_SERIF_FONT=v.BarCodeType=void 0,M=e("CalcEngine"),n=e("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-utils.js"),(e=I=v.BarCodeType||(v.BarCodeType={})).QRCODE="QRCODE",e.EAN13="EAN13",e.EAN8="EAN8",e.CODABAR="CODABAR",e.CODE39="CODE39",e.CODE93="CODE93",e.CODE128="CODE128",e.GS1_128="GS1_128",e.CODE49="CODE49",e.PDF417="PDF417",e.DATAMATRIX="DATAMATRIX",v.SANS_SERIF_FONT="sans-serif",v.BarCode_DefaultValue_DATAMATRIX={eccMode:"ECC000",ecc200SymbolSize:"",ecc200EncodingMode:"",ecc00_140Symbol:"",structureAppend:!1,structureNumber:0,fileIdentifier:0},v.BarCode_DefaultValue_EAN8={showLabel:!1,labelPosition:"top",fontFamily:v.SANS_SERIF_FONT,fontStyle:"normal",fontWeight:"normal",fontTextDecoration:"none",fontTextAlign:"center",fontSize:12},v.BarCode_DefaultValue_EAN13={showLabel:!1,labelPosition:"top",addOn:"",addOnLabelPosition:"top",fontFamily:v.SANS_SERIF_FONT,fontStyle:"normal",fontWeight:"normal",fontTextDecoration:"none",fontTextAlign:"center",fontSize:12},v.BarCode_DefaultValue_GS1_128={showLabel:!1,labelPosition:"top",fontFamily:v.SANS_SERIF_FONT,fontStyle:"normal",fontWeight:"normal",fontTextDecoration:"none",fontTextAlign:"center",fontSize:12},v.BarCode_DefaultValue_PDF417={errorCorrectionLevel:"auto",rows:"auto",columns:"auto",compact:!1},v.BarCode_DefaultValue_QRCODE={errorCorrectionLevel:"L",model:2,version:"auto",mask:"auto",connection:!1,connectionNo:0,charCode:"",charset:"UTF-8"},v.BarCode_DefaultValue_CODE49={showLabel:!1,labelPosition:"top",grouping:!1,groupNo:"",fontFamily:v.SANS_SERIF_FONT,fontStyle:"normal",fontWeight:"normal",fontTextDecoration:"none",fontTextAlign:"center",fontSize:12},v.BarCode_DefaultValue_CODABAR={showLabel:!1,labelPosition:"bottom",checkDigit:!1,nwRatio:3,fontFamily:v.SANS_SERIF_FONT,fontStyle:"normal",fontWeight:"normal",fontTextDecoration:"none",fontTextAlign:"center",fontSize:12},v.BarCode_DefaultValue_CODE39={showLabel:!1,labelPosition:"top",labelWithStartAndStopCharacter:!1,checkDigit:!1,nwRatio:3,fullASCII:!1,fontFamily:v.SANS_SERIF_FONT,fontStyle:"normal",fontWeight:"normal",fontTextDecoration:"none",fontTextAlign:"center",fontSize:12},v.BarCode_DefaultValue_CODE93={showLabel:!1,labelPosition:"top",checkDigit:!1,fullASCII:!1,fontFamily:v.SANS_SERIF_FONT,fontStyle:"normal",fontWeight:"normal",fontTextDecoration:"none",fontTextAlign:"center",fontSize:12},v.BarCode_DefaultValue_CODE128={showLabel:!1,labelPosition:"top",codeSet:"auto",fontFamily:v.SANS_SERIF_FONT,fontStyle:"normal",fontWeight:"normal",fontTextDecoration:"none",fontTextAlign:"center",fontSize:12},v.DefaultBarCodeTypeData={QRCODE:v.BarCode_DefaultValue_QRCODE,EAN13:v.BarCode_DefaultValue_EAN13,EAN8:v.BarCode_DefaultValue_EAN8,CODABAR:v.BarCode_DefaultValue_CODABAR,CODE39:v.BarCode_DefaultValue_CODE39,CODE93:v.BarCode_DefaultValue_CODE93,CODE128:v.BarCode_DefaultValue_CODE128,GS1_128:v.BarCode_DefaultValue_GS1_128,CODE49:v.BarCode_DefaultValue_CODE49,PDF417:v.BarCode_DefaultValue_PDF417,DATAMATRIX:v.BarCode_DefaultValue_DATAMATRIX},v.getDefaultBarcodeOptions=i,v.getFieldRef=o,v.parseBarCodeOptions=a,v.createBarcodeFormula=c,v.getItems=s},"./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-checkbox-cell-type-text.js":function(t,e,n){var i,o,u,r,a,c,s,n,l,f,d,n;function h(t){var e;this.LEt=t}i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,n,i,o,n=1,i=arguments.length;n<i;n++)for(o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},Object.defineProperty(e,"__esModule",{value:!0}),e.UUe=e.CheckBoxTextAlign=void 0,o=n("Core"),u=n("./dist/plugins/tableSheet/tableSheet.js"),r=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-checkbox.js"),a=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-select.js"),c=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-input.js"),s=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-utils.js"),n=o.mt,l=n.En,(n=f=e.CheckBoxTextAlign||(e.CheckBoxTextAlign={}))[n.top=0]="top",n[n.bottom=1]="bottom",n[n.left=2]="left",n[n.right=3]="right",h.prototype.create=function(){var t,e,t=this,e;return(t.BUe=(0,o.GC$)(l("div"))).addClass("gc-defined-column-checkbox-text-container"),t.ZX()},h.prototype.ZX=function(){var e,t,n,e=this,t=e.BUe,n=e.LEt;return e._isThreeState=new r.YZe({label:{text:(0,u.getSR)().columnTypeCheckboxIsThreeState},onChange:function(t){var t,t,t,t;t?null!=(t=e.GUe)&&t.isVisible()||null!=(t=e.GUe)&&t.resetVisible():null!=(t=e.GUe)&&t.isVisible()&&null!=(t=e.GUe)&&t.resetVisible(),e.RUe()}}),e._isThreeState.create().appendTo(t),e._isThreeState.setValue(n.isThreeState),e.PUe=new c._Ze({inputId:"checkboxTrue",label:{text:(0,u.getSR)().columnTypeCheckboxTrue},placeholder:"",onChange:function(t){e.RUe()}}),e.PUe.create().appendTo(t),e.PUe.setValue(n.checkboxTrue),e.GUe=new c._Ze({inputId:"checkboxIndeterminate",label:{text:(0,u.getSR)().columnTypeCheckboxIndeterminate},placeholder:"",hide:!n.isThreeState,onChange:function(t){e.RUe()}}),e.GUe.create().appendTo(t),e.GUe.setValue(n.checkboxIndeterminate),e.QUe=new c._Ze({inputId:"checkboxFalse",label:{text:(0,u.getSR)().columnTypeCheckboxFalse},placeholder:"",onChange:function(t){e.RUe()}}),e.QUe.create().appendTo(t),e.QUe.setValue(n.checkboxFalse),e.YUe=new a.GZe({inputId:"checkboxAlign",items:[{text:(0,u.getSR)().columnTypeCheckboxTextAlign.top,value:f.top},{text:(0,u.getSR)().columnTypeCheckboxTextAlign.bottom,value:f.bottom},{text:(0,u.getSR)().columnTypeCheckboxTextAlign.left,value:f.left},{text:(0,u.getSR)().columnTypeCheckboxTextAlign.right,value:f.right}],label:{text:(0,u.getSR)().columnTypeCheckboxAlign},onChange:function(){e.RUe()}}),e.YUe.create().appendTo(t),e.YUe.setValue(n.checkboxAlign||f.right),t},h.prototype.RUe=function(){var t,t,t,t,t,e,e=this;this.LEt.onChange({isThreeState:null==(t=e._isThreeState)?void 0:t.value,checkboxTrue:null==(t=e.PUe)?void 0:t.value,checkboxIndeterminate:null==(t=e.GUe)?void 0:t.value,checkboxFalse:null==(t=e.QUe)?void 0:t.value,checkboxAlign:null==(t=e.YUe)?void 0:t.value})},h.prototype.setOptions=function(t){var e=this;e.LEt=i(i({},e.LEt),t),e.clear(),e.ZX()},h.prototype.clear=function(){var t=this;t.L0(),t.BUe.empty()},h.prototype.dispose=function(){var t=this;t.clear(),t.BUe=s.keyword_null},h.prototype.L0=function(){var t=this;t._isThreeState&&t._isThreeState.dispose(),t._isThreeState=s.keyword_null,t.PUe&&t.PUe.dispose(),t.PUe=s.keyword_null,t.GUe&&t.GUe.dispose(),t.GUe=s.keyword_null,t.QUe&&t.QUe.dispose(),t.QUe=s.keyword_null,t.YUe&&t.YUe.dispose(),t.YUe=s.keyword_null},e.UUe=h},"./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-checkbox-cell-type.js":function(t,e,n){var i,o,u,r,a,c,s,n,l,f;function d(t){var e;this.LEt=t}i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,n,i,o,n=1,i=arguments.length;n<i;n++)for(o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},Object.defineProperty(e,"__esModule",{value:!0}),e.WUe=void 0,o=n("Core"),u=n("./dist/plugins/tableSheet/tableSheet.js"),r=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-checkbox.js"),a=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-input-number.js"),c=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-input.js"),s=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-utils.js"),n=o.mt,l=n.En,d.prototype.create=function(){var t,e,t=this,e;return(t.BUe=(0,o.GC$)(l("div"))).addClass("gc-defined-column-column-type-checkbox-container"),t.ZX()},d.prototype.ZX=function(){var e,t,n,e=this,t=e.BUe,n=e.LEt;return e._caption=new c._Ze({inputId:"placeholder",label:{text:(0,u.getSR)().columnTypeCheckboxCaption},placeholder:"",onChange:function(t){e.HUe()}}),e._caption.create().appendTo(t),e._caption.setValue(n.caption),e._boxSize=new a.EZe({inputId:"checkbox-size-limit",minValue:0,label:{text:(0,u.getSR)().columnTypeCheckboxBoxSize},onChange:function(){e.HUe()}}),e._boxSize.create().appendTo(t),e._boxSize.setValue(n.boxSize||12),e.VUe=new r.YZe({label:{text:(0,u.getSR)().columnTypeCheckboxAuto},onChange:function(t){t?e._boxSize.isDisable()||e._boxSize.resetDisable():e._boxSize.isDisable()&&e._boxSize.resetDisable(),e.HUe()}}),e.VUe.create().appendTo(t),e.VUe.setValue(n.autoBoxSize),t},d.prototype.HUe=function(){var t,t,t,e,e=this;this.LEt.onChange({caption:null==(t=e._caption)?void 0:t.value,boxSize:null==(t=e._boxSize)?void 0:t.value,autoBoxSize:null==(t=e.VUe)?void 0:t.value})},d.prototype.setOptions=function(t){var e=this;e.LEt=i(i({},e.LEt),t),e.clear(),e.ZX()},d.prototype.clear=function(){var t=this;t.L0(),t.BUe.empty()},d.prototype.dispose=function(){var t=this;t.clear(),t.BUe=s.keyword_null},d.prototype.L0=function(){var t=this;t._caption&&t._caption.dispose(),t._caption=s.keyword_null,t._boxSize&&t._boxSize.dispose(),t._boxSize=s.keyword_null,t.VUe&&t.VUe.dispose(),t.VUe=s.keyword_null},e.WUe=d},"./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-checkbox.js":function(t,e,n){var u,r,a,i;function o(t){var e;this.LEt=t}Object.defineProperty(e,"__esModule",{value:!0}),e.YZe=void 0,u=n("Core"),r=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-utils.js"),a=u.mt.En,Object.defineProperty(o.prototype,"value",{get:function(){var t;return null==(t=this.FUe)?void 0:t.val()},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"container",{get:function(){return this._Ue},enumerable:!1,configurable:!0}),o.prototype.create=function(){var t,e,n,i,o,i,t=this,e=t.LEt,n=t._Ue=(0,u.GC$)(a("div"));return n.addClass("gc-defined-column-field-item-container gc-defined-column-checkbox-field-item-container"),e.label&&e.label.text&&e.textDisplay&&((i=(0,u.GC$)(a("div"))).addClass("gc-defined-column-field-label-container"),i.appendTo(n),(o=(0,u.GC$)(a("label"))).addClass("gc-defined-column-field-label-container-label-text"),o.appendTo(i),e.inputId&&o.attr("for","gc-defined-column-checkbox-"+e.inputId),o.text(e.label.text)),(i=t.BUe=(0,u.GC$)(a("div"))).appendTo(n),i.addClass("gc-defined-column-checkbox-container"),t.ZX(),n},o.prototype.ZX=function(){var e,n,t,i,t,o,o,e=this,n=e.LEt,t=e.BUe,i=e.JUe=(0,u.GC$)(a("div"));i.addClass("gc-defined-column-checkbox-item-container"),e.isDisable()&&i.addClass("gc-defined-column-disabled"),e.isVisible()||t.addClass("gc-defined-column-hide"),i.appendTo(t),i.attr("role","checkbox"),i.attr("tabindex","0"),i.attr("aria-label",n.label.text),i.attr("aria-checked","false"),i.attr("aria-disabled",e.isDisable()?"true":"false"),i.attr("aria-hide",e.isVisible()?"false":"true"),(t=(0,u.GC$)(a("div"))).addClass("gc-defined-column-check-container"),t.appendTo(i),o=e.FUe=(0,r.createDCElement)("sjs-checkbox"),n.inputId&&o.attr("id","gc-defined-column-checkbox-"+n.inputId),n.isThreeState&&o.attr("indeterminate",!0),(0,r.isNullOrUndefined)(n.defaultValue)||e.setValue(n.defaultValue,!1),o.bind("input",function(t){e.isDisable()||(e.XUe(t.target.value),n.onChange&&n.onChange(t.target.value,t))}),o.appendTo(t),n.label&&n.label.text&&1!==n.textDisplay&&((o=e.KUe=(0,u.GC$)(a("div"))).addClass("gc-defined-column-label-container"),o.appendTo(i),o.text(n.label.text),n.inputId&&o.attr("for","gc-defined-column-checkbox-"+n.inputId),o.bind("click",function(t){e.isDisable()||e.setValue(e.kV(e.FUe.val()))}))},o.prototype.XUe=function(t){var e=this,n=t;(0,r.isNullOrUndefined)(t)&&(n=!!e.LEt.isThreeState&&"mixed"),e.JUe.attr("aria-checked",n)},o.prototype.kV=function(t){var e;if(this.LEt.isThreeState){if(t)return r.keyword_null;if((0,r.isNullOrUndefined)(t))return!1}return!t},o.prototype.setValue=function(t,e){var n=this;n.FUe.val(t),n.XUe(t),!1!==e&&(0,r.triggerEvent)(n.FUe)},o.prototype.isDisable=function(){return!1===this.LEt.enable},o.prototype.resetDisable=function(){var t=this,e=t.isDisable(),n=t.JUe;(t.LEt.enable=e)?(n.removeClass("gc-defined-column-disabled"),n.attr("aria-disabled","false")):(n.addClass("gc-defined-column-disabled"),n.attr("aria-disabled","true"))},o.prototype.isVisible=function(){return!0!==this.LEt.hide},o.prototype.resetVisible=function(){var t=this,e=t.isVisible(),n=t.BUe;(t.LEt.hide=e)?(n.addClass("gc-defined-column-hide"),n.attr("aria-hide","true")):(n.removeClass("gc-defined-column-hide"),n.attr("aria-hide","false"))},o.prototype.dispose=function(){var t=this;t.FUe.unbind("input"),t.FUe=r.keyword_null,t.KUe&&t.KUe.unbind("click"),t.KUe=r.keyword_null,t.JUe=r.keyword_null,t.BUe=r.keyword_null},e.YZe=o},"./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-combobox-style.js":function(t,e,n){var i,o,u,r,a,c,s,l,n,f,d;function h(t){var e;this.LEt=t}i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,n,i,o,n=1,i=arguments.length;n<i;n++)for(o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},Object.defineProperty(e,"__esModule",{value:!0}),e.qUe=void 0,o=n("Core"),u=n("./dist/plugins/tableSheet/tableSheet.js"),r=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-checkbox.js"),a=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-select.js"),c=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-input-number.js"),s=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-utils.js"),l=n("CellTypes"),n=o.mt,f=n.En,h.prototype.create=function(){var t,e,t=this,e;return(t.$Ue=(0,o.GC$)(f("div"))).addClass("gc-defined-column-combo-box-style-container"),t.ZX()},h.prototype.ZX=function(){var t,e,n,t=this,e=t.$Ue,n=t.LEt;return t._editorValueType=new a.GZe({inputId:"combo-box-editor-value-type",items:[{text:(0,u.getSR)().columnTypeComboBoxEditorValueType.text,value:l.EditorValueType.text},{text:(0,u.getSR)().columnTypeComboBoxEditorValueType.index,value:l.EditorValueType.index},{text:(0,u.getSR)().columnTypeComboBoxEditorValueType.value,value:l.EditorValueType.value}],label:{text:(0,u.getSR)().columnTypeComboBoxEditorValueTypes},onChange:function(){t.eQe()}}),t._editorValueType.create().appendTo(e),t._editorValueType.setValue((0,s.isNullOrUndefined)(n.editorValueType)?l.EditorValueType.value:n.editorValueType),t.tQe=new c.EZe({inputId:"combo-box-item-height",minValue:0,label:{text:(0,u.getSR)().columnTypeComboBoxItemHeight},onChange:function(){t.eQe()}}),t.tQe.create().appendTo(e),t.tQe.setValue(n.itemHeight||22),t.nQe=new r.YZe({label:{text:(0,u.getSR)().columnTypeComboBoxEditable},onChange:function(){t.eQe()}}),t.nQe.create().appendTo(e),t.nQe.setValue(n.editable),e},h.prototype.eQe=function(){var t,t,t,e,e=this;this.LEt.onChange({editorValueType:null==(t=e._editorValueType)?void 0:t.value,itemHeight:null==(t=e.tQe)?void 0:t.value,editable:null==(t=e.nQe)?void 0:t.value})},h.prototype.setOptions=function(t){var e=this;e.LEt=i(i({},e.LEt),t),e.clear(),e.ZX()},h.prototype.clear=function(){var t=this;t.L0(),t.$Ue.empty()},h.prototype.dispose=function(){var t=this;t.clear(),t.$Ue=s.keyword_null},h.prototype.L0=function(){var t=this;t._editorValueType&&t._editorValueType.dispose(),t._editorValueType=s.keyword_null,t.tQe&&t.tQe.dispose(),t.tQe=s.keyword_null,t.nQe&&t.nQe.dispose(),t.nQe=s.keyword_null},e.qUe=h},"./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-combobox.js":function(t,e,n){var i,o,u,r,a,n,c,s;function l(t){var e;this.iQe=[],this.LEt=t}i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,n,i,o,n=1,i=arguments.length;n<i;n++)for(o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},Object.defineProperty(e,"__esModule",{value:!0}),e.oQe=void 0,o=n("Core"),u=n("./dist/plugins/tableSheet/tableSheet.js"),r=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-list.js"),a=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-utils.js"),n=o.mt,c=n.En,l.prototype.create=function(){var t,e,t=this,e;return(t.uQe=(0,o.GC$)(c("div"))).addClass("gc-defined-column-combo-box-container"),t.ZX()},l.prototype.ZX=function(){var t,e,n,t=this,e=t.uQe,n=t.LEt;return this.iQe=n.items||[],t.aQe=new r.rQe({label:{text:(0,u.getSR)().columnTypeComboBoxItems},showValue:!0,editable:!0,addAndRemoveButton:!0,items:this.iQe,onChange:function(){t.cQe()}}),t.aQe.create().appendTo(e),t.cQe(),e},l.prototype.cQe=function(){var t;this.LEt.onChange({items:this.iQe})},l.prototype.setOptions=function(t){var e=this;e.LEt=i(i({},e.LEt),t),e.clear(),e.ZX()},l.prototype.clear=function(){var t=this;t.L0(),t.uQe.empty()},l.prototype.dispose=function(){var t=this;t.clear(),t.uQe=a.keyword_null},l.prototype.L0=function(){var t=this;t.aQe&&t.aQe.dispose(),t.aQe=a.keyword_null},e.oQe=l},"./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-date-formatting.js":function(t,e,n){var i,o,u,f,r,a,d,c,s,l,n,h,g,b,v;function M(t){var e;this.fQe=b.getCultureInfo(1041),this.LEt=t}i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,n,i,o,n=1,i=arguments.length;n<i;n++)for(o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},Object.defineProperty(e,"__esModule",{value:!0}),e.dQe=void 0,o=n("Common"),u=n("Core"),f=n("./dist/plugins/tableSheet/tableSheet.js"),r=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-checkbox.js"),a=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-list.js"),d=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-formatting.js"),c=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-preview.js"),s=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-select.js"),l=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-utils.js"),n=u.mt,h=n.En,g="3/14/2001 13:30:00",b=o.Common.CultureManager,M.prototype.create=function(){var t,e,t=this,e;return(t.hQe=(0,u.GC$)(h("div"))).addClass("gc-defined-column-date-formatting-container"),t.ZX()},M.prototype.ZX=function(){var t,e,n,e,t=this,e=t.LEt,n=t.hQe,e=(0,d.parseFormat)(e.formatter);return t.gQe=new a.rQe({label:{text:(0,f.getSR)().columnTypeDateType},items:[],onChange:function(){t.bQe()}}),t.gQe.create().appendTo(n),t.gQe.setIndex(e.index||0),t.vQe=new s.GZe({inputId:"date-locale",items:(0,d.getListItems)(4),label:{text:(0,f.getSR)().columnTypeDateLocale},onChange:function(){t.MQe(),t.IQe(),t.mQe()}}),t.vQe.create().appendTo(n),e.locale?t.vQe.setValue(e.locale):t.vQe.setIndex(0),t.NQe=new s.GZe({inputId:"date-locale",hide:"ja-jp"!==e.locale,items:[{text:(0,f.getSR)().columnTypeCalendarType.western,value:"western"},{text:(0,f.getSR)().columnTypeCalendarType.JER,value:"JER"}],label:{text:(0,f.getSR)().columnTypeCalendar},onChange:function(){t.IQe(),t.mQe()}}),t.NQe.create().appendTo(n),t.NQe.setValue(e.calendarType||"western"),t.DQe=new r.YZe({hide:"JER"!==e.calendarType,label:{text:(0,f.getSR)().columnTypeShowEraFirstYear},onChange:function(){t.mQe()}}),t.DQe.create().appendTo(n),t.DQe.setValue(1===e.numberSystem),t.jQe().appendTo(n),t.mQe(),n},M.prototype.mQe=function(){var t,e,t,e,n,i,o,u,r,a,c,s,l,t,t=null==(t=this.vQe)?void 0:t.value,e=null==(e=this.NQe)?void 0:e.value,n=new Date(g),i=[],o=[],u=[];if(t&&e&&(u=(0,d.getPredefinedFormats)(t,d.formatCategories[4])),t===this.fQe.name().toLowerCase()&&"JER"===e)for(r=(0,f.getSR)().columnTypeNumberFormatting.japanEmperorReignDateFormat,a=0;a<r.length;a++)c=this.DQe&&this.DQe.value,1===a&&c?(i.push(this.Re(n,(0,f.getSR)().columnTypeNumberFormatting.japanEmperorReignFirstYearDateFormat[a])),o.push((0,f.getSR)().columnTypeNumberFormatting.japanEmperorReignFirstYearDateFormat[a])):(i.push(this.Re(n,r[a])),o.push(r[a]));else for(a=0;a<u.length;a++)s=this.Re(n,u[a]),i.push(s),o.push(u[a]);for(l=[],a=0;a<i.length;a++)l.push({text:i[a],value:o[a]});t=this.gQe.index,this.gQe.setOptions({items:l}),this.gQe.setIndex(Math.max(t,0))},M.prototype.bQe=function(){var t=this,e=t.CQe();t.LEt.onChange({formatter:e})},M.prototype.MQe=function(){var t,t,t,t,t,e,n,e=this,n;(null==(t=this.vQe)?void 0:t.value)===this.fQe.name().toLowerCase()?null!=(t=e.NQe)&&t.isVisible()||null!=(t=e.NQe)&&t.resetVisible():null!=(t=e.NQe)&&t.isVisible()&&null!=(t=e.NQe)&&t.resetVisible()},M.prototype.IQe=function(){var t,e,t,e,t,e,t,e,n,t,e,n=this,t=(null==(t=this.vQe)?void 0:t.value)===this.fQe.name().toLowerCase(),e="JER"===(null==(e=this.NQe)?void 0:e.value);t?e?null!=(t=n.DQe)&&t.isVisible()||null!=(e=n.DQe)&&e.resetVisible():null!=(t=n.DQe)&&t.isVisible()&&null!=(e=n.DQe)&&e.resetVisible():null!=(t=n.DQe)&&t.isVisible()&&null!=(e=n.DQe)&&e.resetVisible()},M.prototype.CQe=function(){var t,e,n,i,e=this,n=this.gQe.value,i=new Date(g);return null!=(t=e.wQe)&&t.setText(e.Re(i,n)),n},M.prototype.jQe=function(){var t,e,t,e;return(this.wQe=new c.pQe).create()},M.prototype.Re=function(t,e){var n;return new o.Formatter.GeneralFormatter(e).format(t)},M.prototype.setOptions=function(t){var e=this;e.LEt=i(i({},e.LEt),t),e.clear(),e.ZX()},M.prototype.clear=function(){var t=this;t.L0(),t.hQe.empty()},M.prototype.dispose=function(){var t=this;t.clear(),t.hQe=l.keyword_null},M.prototype.L0=function(){var t=this;t.gQe&&t.gQe.dispose(),t.gQe=l.keyword_null,t.vQe&&t.vQe.dispose(),t.vQe=l.keyword_null,t.NQe&&t.NQe.dispose(),t.NQe=l.keyword_null,t.DQe&&t.DQe.dispose(),t.DQe=l.keyword_null,t.wQe.dispose(),t.wQe=l.keyword_null},e.dQe=M},"./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-date-time-picker.js":function(t,e,n){var i,o,u,r,a,c,n,s,l;function f(t){var e;this.LEt=t}i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,n,i,o,n=1,i=arguments.length;n<i;n++)for(o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},Object.defineProperty(e,"__esModule",{value:!0}),e.yQe=void 0,o=n("Core"),u=n("./dist/plugins/tableSheet/tableSheet.js"),r=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-checkbox.js"),a=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-select.js"),c=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-utils.js"),n=o.mt,s=n.En,f.prototype.create=function(){var t,e,t=this,e;return(t.xQe=(0,o.GC$)(s("div"))).addClass("gc-defined-column-date-time-picker-container"),t.ZX()},f.prototype.ZX=function(){var t,e,n,t=this,e=t.LEt,n=t.xQe;return t.dH=new a.GZe({inputId:"start-day",items:[{value:o.CalendarStartDay[o.CalendarStartDay.monday],text:(0,u.getSR)().columnTypeDateMonday},{value:o.CalendarStartDay[o.CalendarStartDay.tuesday],text:(0,u.getSR)().columnTypeDateTuesday},{value:o.CalendarStartDay[o.CalendarStartDay.wednesday],text:(0,u.getSR)().columnTypeDateWednesday},{value:o.CalendarStartDay[o.CalendarStartDay.thursday],text:(0,u.getSR)().columnTypeDateThursday},{value:o.CalendarStartDay[o.CalendarStartDay.friday],text:(0,u.getSR)().columnTypeDateFriday},{value:o.CalendarStartDay[o.CalendarStartDay.saturday],text:(0,u.getSR)().columnTypeDateSaturday},{value:o.CalendarStartDay[o.CalendarStartDay.sunday],text:(0,u.getSR)().columnTypeDateSunday}],label:{text:(0,u.getSR)().columnTypeDateStartDay},onChange:function(){t.AQe()}}),t.dH.create().appendTo(n),t.dH.setValue(e.startDay||o.CalendarStartDay[o.CalendarStartDay.sunday]),t.TQe=new a.GZe({inputId:"calendar-page",items:[{value:o.CalendarPage[o.CalendarPage.day],text:(0,u.getSR)().columnTypeDateDay},{value:o.CalendarPage[o.CalendarPage.year],text:(0,u.getSR)().columnTypeDateYear},{value:o.CalendarPage[o.CalendarPage.month],text:(0,u.getSR)().columnTypeDateMonth}],label:{text:(0,u.getSR)().columnTypeDateCalendarPage},onChange:function(){t.AQe()}}),t.TQe.create().appendTo(n),t.TQe.setValue(e.calendarPage||o.CalendarPage[o.CalendarPage.day]),t.HG=new r.YZe({label:{text:(0,u.getSR)().columnTypeDateShowTime},onChange:function(){t.AQe()}}),t.HG.create().appendTo(n),t.HG.setValue(!!e.showTime||(0,c.isNullOrUndefined)(e.showTime)),n},f.prototype.SQe=function(t){var t,t,t,t,t,t,t,t,e,e=this;t?(null!=(t=e.TQe)&&t.isDisable()||null!=(t=e.TQe)&&t.resetDisable(),null!=(t=e.HG)&&t.isDisable()||null!=(t=e.HG)&&t.resetDisable()):(null!=(t=e.TQe)&&t.isDisable()&&null!=(t=e.TQe)&&t.resetDisable(),null!=(t=e.HG)&&t.isDisable()&&null!=(t=e.HG)&&t.resetDisable())},f.prototype.AQe=function(){var t,t,t;this.LEt.onChange({startDay:null==(t=this.dH)?void 0:t.value,calendarPage:null==(t=this.TQe)?void 0:t.value,showTime:!(null==(t=this.HG)||!t.value)})},f.prototype.setOptions=function(t){var e=this;e.LEt=i(i({},e.LEt),t),e.clear(),e.ZX()},f.prototype.clear=function(){var t=this;t.L0(),t.xQe.empty()},f.prototype.dispose=function(){var t=this;t.clear(),t.xQe=c.keyword_null},f.prototype.L0=function(){var t=this;t.dH&&t.dH.dispose(),t.dH=c.keyword_null,t.TQe&&t.TQe.dispose(),t.TQe=c.keyword_null,t.HG&&t.HG.dispose(),t.HG=c.keyword_null},e.yQe=f},"./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-divider.js":function(t,e,n){var i,o,n,u,r;function a(t){var e;this.LEt=t}Object.defineProperty(e,"__esModule",{value:!0}),e.LQe=void 0,i=n("Core"),o=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-utils.js"),n=i.mt,u=n.En,a.prototype.create=function(){var t;return this.OQe()},a.prototype.OQe=function(){var t,e,n,t=this,e=(0,i.GC$)(u("div"));return e.addClass("gc-defined-column-divider-container"),e.attr("role","separator"),(n=t._text=(0,i.GC$)(u("div"))).appendTo(e),n.addClass("gc-defined-column-divider-inner-text"),t.LEt.text?n.text(t.LEt.text):n.hide(),e},a.prototype.setText=function(t){var e;this._text.text(t)},a.prototype.dispose=function(){var t;this._text=o.keyword_null},e.LQe=a},"./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-formatting-select.js":function(t,e,n){var r,a,i,c,s,l,f,n,d,o;function u(t){var e;this.xT=[],this.LEt=t}Object.defineProperty(e,"__esModule",{value:!0}),e.kQe=void 0,r=n("Core"),a=n("./dist/plugins/tableSheet/tableSheet.js"),i=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-date-formatting.js"),c=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-formatting.js"),s=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-number-formatting.js"),l=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-select.js"),f=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-utils.js"),n=r.mt,d=n.En,u.prototype.create=function(){var t,e,t,e=this.EQe=(0,r.GC$)(d("div"));return e.addClass("gc-defined-column-formatting-select-container"),e},u.prototype.ZQe=function(){var e,t,n,i,o,u,n,e=this,t=e.LEt.formatter,n=(0,c.parseFormat)(t),i=(0,r.GC$)(d("div"));return i.addClass("gc-defined-column-formatting-select-number-container"),o=new s.UQe({onChange:function(t){e.LEt.onChange(t)}}),(u=new l.GZe({inputId:"lookup-number-formatting",items:[{text:(0,a.getSR)().columnTypeNumber,value:1},{text:(0,a.getSR)().columnTypeCurrency,value:2},{text:(0,a.getSR)().columnTypePercent,value:6}],label:{text:(0,a.getSR)().columnTypeFormattingCategory},onChange:function(t){o.setOptions({type:t.value,formatter:f.keyword_null})}})).create().appendTo(i),e.xT.push(u),o.create().appendTo(i),e.xT.push(o),n=n.category,-1===[1,2,6].indexOf(n)&&(n=1),u.setValue(n),o.setOptions({type:n,formatter:t}),i},u.prototype.BQe=function(){var e,t,n,t,e=this,t=e.LEt.formatter,n=(0,r.GC$)(d("div"));return n.addClass("gc-defined-column-formatting-select-date-container"),(t=new i.dQe({formatter:t,onChange:function(t){e.LEt.onChange(t.formatter)}})).create().appendTo(n),e.xT.push(t),n},u.prototype.createFormatting=function(t){var e=this,n=e.EQe;if(e.L0(),(0,f.isNumber)(t))e.ZQe().appendTo(n);else{if(!(0,f.isDate)(t))return!1;e.BQe().appendTo(n)}return!0},u.prototype.dispose=function(){var t=this;t.L0(),t.EQe=f.keyword_null},u.prototype.L0=function(){for(var t,e,n,i,t=this,e=0,n=t.xT;e<n.length;e++)(i=n[e]).dispose?i.dispose():i.unbind&&i.unbind("click");t.xT=[],t.EQe.empty()},e.kQe=u},"./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-formatting.js":function(t,e,n){var c,s,l,a,o,f,i,d,u,r;function h(t){var t,t,t=t.match(o);if(t&&t[0])return t=t[0],-1!==u.indexOf(t)?-1:parseInt(t.split("-")[1],16)}function g(t){return t.replace(o,function(t,e){var n="[$";return 0<e.length&&"-"!==e[0]&&(n+="$"),n+="-409]"})}function b(t,n){var i,i;return t&&(i=(i=t.split(";")).map(function(t,e){return 4===i.length&&2===e?t.replace(new RegExp("\\?{"+n+"}"),""):t.replace(a,"")})).join(";")}function v(u){var r,t,e,a,r=c.Common.CultureManager.getCultureInfoDict(),t=(0,s.getSR)().columnTypeNumberFormatting.japanEmperorReignDateFormat,e=(0,s.getSR)().columnTypeNumberFormatting.japanEmperorReignFirstYearDateFormat,a={category:4,index:-1};if(u=u.replace(d,""),-1<e.indexOf(u)?(a.index=e.indexOf(u),a.locale="ja-jp",a.calendarType="JER",1===a.index&&(a.numberSystem=1)):-1<t.indexOf(u)?(a.index=t.indexOf(u),a.locale="ja-jp",a.calendarType="JER"):Object.keys(r).forEach(function(t){var e,n,i,o,i;if(!(-1<a.index)&&"invariant"!==t){if(n=u,!r[e=t].predefinedFormats||!r[t].predefinedFormats.Date){if(i=h(u),!(0,l.isNullOrUndefined)(i)&&i!==r[t].id)return;e=f,n=g(u)}-1<(i=(o=r[e].predefinedFormats.Date).indexOf(n))&&(a.index=i,a.locale=t,a.calendarType="western")}}),-1<a.index)return a}function M(u){var r,a,r=c.Common.CultureManager.getCultureInfoDict(),a={category:5,index:-1};if(Object.keys(r).forEach(function(t){var e,n,i,o,i;if(!(-1<a.index)&&"invariant"!==t){if(n=u,!r[e=t].predefinedFormats||!r[t].predefinedFormats.Time){if(i=h(u),!(0,l.isNullOrUndefined)(i)&&i!==r[t].id)return;e=f,n=g(u)}-1<(i=(o=r[e].predefinedFormats.Time).indexOf(n))&&(a.index=i,a.locale=t)}}),0<=a.index)return a}function I(t,o){var u,r,a,u=c.Common.CultureManager.getCultureInfoDict(),r={category:3,index:-1};if(t&&(a=b(t,o).replace(d,""),Object.keys(u).forEach(function(t,e){var n,i;if(!(-1<r.index)&&"invariant"!==t){if(!u[n=t].predefinedFormats||!u[t].predefinedFormats.Accounting&&!u[n].predefinedFormats.Comma){if(i=h(a),!(0,l.isNullOrUndefined)(i)&&i!==u[t].id)return;n=f,a=g(a)}b(u[n].predefinedFormats.Accounting,2)===a?(r.decimalPlaces=o,r.locale=t,r.index=e):b(u[n].predefinedFormats.Comma,2)===a&&(r.decimalPlaces=o,r.locale=(0,s.getSR)().columnTypeNumberFormatting.accountingSymbol[0][0],r.index=e)}})),-1<r.index)return r}function m(t,e){var n,i,o;if(t&&(n=(0,s.getSR)().columnTypeNumberFormatting.percentageFormats,i=null,i=t,0!==e&&(o="\\"+t.substring(t.indexOf("."),t.indexOf(".")+e+1),i=t.replace(new RegExp(o,"g"),"")),i===n[0]))return{decimalPlaces:e,category:6,index:0}}function N(t,e){var n,i,o,u,r,n={category:1,index:-1};if(t)for(i=(0,s.getSR)().columnTypeNumberFormatting.numberCategoryFormats,o=t,0!==e&&(u="\\"+t.substring(t.indexOf("."),t.indexOf(".")+e+1),o=t.replace(new RegExp(u,"g"),"")),o=o.replace(d,""),r=0;r<i.length;r++)if(o===i[r])return n.decimalPlaces=e,-1!==t.indexOf("#,")&&(n.useThousand=!0),n.index=r%(i.length/2),n}function D(t,i){var o,u,r,o=c.Common.CultureManager.getCultureInfoDict(),u={category:2,index:-1},r=t;if(t&&(r=t.replace(a,"").replace(d,""),-1<(0,s.getSR)().columnTypeNumberFormatting.currencyFormatWithoutSymbol.indexOf(r)?(u.decimalPlaces=i,u.locale=(0,s.getSR)().columnTypeNumberFormatting.accountingSymbol[0][0],u.index=(0,s.getSR)().columnTypeNumberFormatting.currencyFormatWithoutSymbol.indexOf(r)):Object.keys(o).forEach(function(t){var e,n,n;if(!(-1<u.index)&&"invariant"!==t){if(e=o[t].predefinedFormats.Currency,!o[t].predefinedFormats||!o[t].predefinedFormats.Currency){if(n=h(r),!(0,l.isNullOrUndefined)(n)&&n!==o[t].id)return;r=g(r),e=o[f].predefinedFormats.Currency}e&&0<e.length&&(-1<u.index||0<=(n=(e=e.map(function(t){return t.replace(a,"")})).indexOf(r))&&(u.decimalPlaces=i,u.locale=t,u.index=n))}}),-1<u.index))return u}function j(t,a){var e,n,c,e="\u200e",n=a.id,c=r.hasOwnProperty(n);return t.replace(o,function(t,e,n,i,o,u){var r="[$";return 0<i.length&&"$"===i[0]&&(r+=a.NumberFormat.currencySymbol||"$"),r+=(c?"\u200e":"")+"-"+a.id.toString(16)+"]",c?e+n+o+r+u:e+n+r+o+u})}function C(t,e){var n,t,i,i,o,u,n=c.Common.CultureManager.getCultureInfo(t);if(n)return!(i=(t=n.predefinedFormats&&n.predefinedFormats[e])instanceof Array)&&t||i&&0<t.length?t:(i=c.Common.CultureManager.culture(),(t=(u=(o=c.Common.CultureManager.getCultureInfo(i)).predefinedFormats)[e]||(0,s.getSR)().columnTypeNumberFormatting.commonFormats[e]&&(0,s.getSR)().columnTypeNumberFormatting.commonFormats[e].format)instanceof Array?t.map(function(t){var e,e;return(e=(e=t.split(";")).map(function(t){return j(t,n)})).join(";")}):"object"==typeof t?{}:t.split(";").map(function(t){return j(t,n)}).join(";"))}function w(t){var e,n,i,e="";if(t)for(n=0;n<t.length;n++)t[n]&&(i=t[n].match(o))&&i[0]&&(e=i[0],t[n]=t[n].replace(o,"[$]"));return e}function p(t,e){var n,i;if(e)for(n=0;n<t.length;n++)t[n]&&-1<(i=t[n].indexOf("[$]"))&&(t[n]=t[n].slice(0,i)+e+t[n].slice(i+3))}function x(n,t){var i,o,u,i=c.Common.CultureManager.getCultureInfoDict(),o=[];return t&&(o=o.concat(t)),u=c.Common.CultureManager.culture(),Object.keys(i).sort(function(t,e){return t===u?-1:1}).forEach(function(t){var e;"invariant"!==t&&(e=i[t],2===n||3===n?o.push({text:e.NumberFormat.currencySymbol+" "+e.displayName,value:t}):o.push({text:e.displayName,value:t}))}),o}function y(t){var e,n,i,o;if(!t||"General"===t)return{category:0,index:0};if("@"===t)return{category:9,index:0};if(e=v(t)||M(t))return e;if(n=0,t&&-1!==t.indexOf("."))for(o=(i=t.indexOf("."))+1;o<t.length&&"0"===t.substring(o,o+1);o++)n++;return(e=I(t,n)||m(t,n)||N(t,n)||D(t,n))||{category:11,index:0}}Object.defineProperty(e,"__esModule",{value:!0}),e.parseFormat=e.getListItems=e.afterAdjustFormatString=e.beforeAdjustFormatString=e.getPredefinedFormats=e.formatCategories=e.decimalPlacesWithZeroDotReg=void 0,c=n("Common"),s=n("./dist/plugins/tableSheet/tableSheet.js"),l=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-utils.js"),a=/\.0*/g,e.decimalPlacesWithZeroDotReg=/(0)(\.?(0*)?)/g,o=/\[\$(.?-.*?)\]/g,f="en-us",d=new RegExp(i="\\\\","g"),u=["[$\u20ac-1]","[$\u20ac-2]"],e.formatCategories=["General","Number","Currency","Accounting","Date","Time","Percentage","Fraction","Scientific","Text","Special","Custom"],r={4097:!0,14337:!0,15361:!0,5121:!0,3073:!0,2049:!0,11265:!0,13313:!0,12289:!0,6145:!0,8193:!0,17409:!0,16385:!0,1025:!0,10241:!0,7169:!0,9217:!0,1170:!0},e.getPredefinedFormats=C,e.beforeAdjustFormatString=w,e.afterAdjustFormatString=p,e.getListItems=x,e.parseFormat=y},"./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-input-formula.js":function(t,e,n){var o,u,r,i,a,n,c,s;function l(t){var e;this.LEt=t}Object.defineProperty(e,"__esModule",{value:!0}),e.GQe=void 0,o=n("Core"),u=n("FormulaTextBox"),r=n("./dist/plugins/tableSheet/tableSheet.js"),i=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-input.js"),a=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-utils.js"),n=o.mt,c=n.En,l.prototype.create=function(){var t;return this.ZX()},l.prototype.ZX=function(){var t,e,n,t,t=this,e=(0,o.GC$)(c("div"));return e.addClass("gc-defined-column-input-formula-container"),(n=t.mEe=new i._Ze({inputId:"formula",type:"text",validate:t.LEt.validate,placeholder:(0,r.getSR)().defineColumnFormula})).create().appendTo(e),t.RQe(),(t=t.PQe=(0,o.GC$)(c("div"))).addClass("gc-defined-column-fake-ftb-workbook"),t.hide(),t.appendTo(e),e},l.prototype.RQe=function(){var e=this,n={formulaInputTextBox:null,fakeFormulaTextBoxWorkbook:null};e.mEe.bind("focus",function(){e.ggi(n.formulaInputTextBox,n.fakeFormulaTextBoxWorkbook);var t=e.QQe();n.formulaInputTextBox=t.formulaInputTextBox,n.fakeFormulaTextBoxWorkbook=t.fakeFormulaTextBoxWorkbook}).bind("blur",function(){var t=e.mEe.value;"="===t&&e.mEe.setValue(t="",!1),e.LEt.onChange(t),e.ggi(n.formulaInputTextBox,n.fakeFormulaTextBoxWorkbook)}).bind("keydown",function(t){13===t.keyCode&&(e.ggi(n.formulaInputTextBox,n.fakeFormulaTextBoxWorkbook),t.target.blur())})},l.prototype.YQe=function(){var t;this.mEe.unbind("focus").unbind("blur").unbind("keydown")},l.prototype.QQe=function(){var t,e,n,e,i,t=this,e=t.mEe,n=e.value||"=",e=new u.FormulaTextBox(e.getInputElement(),a.keyword_null,a.keyword_null);return e.Ngi=!0,i=new o.Workbook(t.PQe.get(0),{allowDynamicArray:!0,allowUndo:!1}),t.XMi(i),t.lgi(i),e.workbook(i),e.text(n),{formulaInputTextBox:e,fakeFormulaTextBoxWorkbook:i}},l.prototype.XMi=function(t){for(var e,n,i,o,u,e,n,i=0,o=this.LEt.getColumnFields();i<o.length;i++)u=o[i],t.zwt(t.hyt,u,"=A1",0,0,!0,(0,r.getSR)().GroupPanelDropDownCalcField+" "+u)},l.prototype.lgi=function(t){var t=t.getActiveSheet();delete t.Qy().PUt.enter,t.setRowCount(1),t.setColumnCount(1)},l.prototype.ggi=function(t,e){t&&t.destroy&&t.destroy(),e&&e.destroy&&e.destroy()},l.prototype.validate=function(){return this.mEe.validate()},l.prototype.setValue=function(t){var e;this.mEe.setValue(t)},l.prototype.dispose=function(){var t=this;t.YQe(),t.mEe.dispose(),t.mEe=a.keyword_null},e.GQe=l},"./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-input-number.js":function(t,e,n){var i,u,r,a,o;function c(t){var e;this.LEt=t}i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,n,i,o,n=1,i=arguments.length;n<i;n++)for(o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},Object.defineProperty(e,"__esModule",{value:!0}),e.EZe=void 0,u=n("Core"),r=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-utils.js"),a=u.mt.En,Object.defineProperty(c.prototype,"value",{get:function(){var t;return null==(t=this.mEe)?void 0:t.val()},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"container",{get:function(){return this._Ue},enumerable:!1,configurable:!0}),c.prototype.create=function(){var t,e,n,i,o,i,e,t=this,e=t.LEt,n=t._Ue=(0,u.GC$)(a("div"));return n.addClass("gc-defined-column-field-item-container gc-defined-column-input-number"),e.label&&e.label.text&&((i=(0,u.GC$)(a("div"))).addClass("gc-defined-column-field-label-container"),i.appendTo(n),(o=(0,u.GC$)(a("label"))).addClass("gc-defined-column-field-label-container-label-text"),o.attr("for","gc-defined-column-input-"+e.inputId),o.appendTo(i),i=e.label.useRawContent?e.label.text:(0,r.j0)(e.label.text),o.html(i)),(e=t.WQe=(0,u.GC$)(a("div"))).addClass("gc-defined-column-field-container"),e.appendTo(n),t.ZX(),n},c.prototype.ZX=function(){var n,i,t,e,t,n=this,i=n.LEt;!1===i.visible?n._Ue.hide():n._Ue.show(),t=n.WQe,n.isDisable()&&t.addClass("gc-defined-column-disabled"),(e=(0,u.GC$)(a("div"))).addClass("gc-defined-column-field-input-container"),e.appendTo(t),(t=n.mEe=(0,r.createDCElement)("sjs-number-editor")).attr("id","gc-defined-column-input-"+i.inputId),t.attr("type","text"),t.attr("aria-disabled",n.isDisable()?"true":"false"),n.isDisable()?t.attr("disabled","true"):t.removeAttr("disabled"),i.placeholder&&t.attr("placeholder",i.placeholder),(i.label&&i.label.text||i.placeholder)&&t.attr("aria-label",i.label&&i.label.text||i.placeholder),(0,r.isNullOrUndefined)(i.defaultValue)||t.val(i.defaultValue),t.attr("min",n.HQe()),(0,r.isNumber)(i.maxValue)&&t.attr("max",i.maxValue),i.allowMinNull&&(t.attr("allow-empty",!0),t.attr("empty-value",n.HQe())),t.bind("input",function(t){var e=t.target.value;n.isDisable()||i.onChange&&i.onChange(e,t)}),t.appendTo(e)},c.prototype.setFocus=function(){var t;this.mEe.focus()},c.prototype.setOptions=function(t){var e=this;e.L0(),e.LEt=i(i({},e.LEt),t),e.ZX()},c.prototype.isDisable=function(){return!1===this.LEt.enable},c.prototype.resetDisable=function(){var t=this,e=t.isDisable(),n=t.WQe;(t.LEt.enable=e)?n.removeClass("gc-defined-column-disabled"):n.addClass("gc-defined-column-disabled"),t.mEe.attr("aria-disabled",e?"false":"true"),e?t.mEe.removeAttr("disabled"):t.mEe.attr("disabled","true")},c.prototype.HQe=function(){var t=this;return(0,r.isNumber)(t.LEt.minValue)?t.LEt.minValue:0},c.prototype.setValue=function(t){var e=this;e.mEe.val((0,r.isNumber)(t)?t:e.HQe()),(0,r.triggerEvent)(e.mEe,"input")},c.prototype.dispose=function(){var t=this;t.L0(),t.WQe=r.keyword_null,t._Ue=r.keyword_null},c.prototype.L0=function(){var t=this;t.mEe.unbind("input"),t.mEe=r.keyword_null,t.WQe.empty()},e.EZe=c},"./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-input.js":function(t,e,n){var a,c,u,s,l,i;function o(t){var e;this.LEt=t}Object.defineProperty(e,"__esModule",{value:!0}),e._Ze=void 0,a=n("Core"),c=n("DataManager"),u=n("./dist/plugins/tableSheet/tableSheet.js"),s=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-utils.js"),l=a.mt.En,Object.defineProperty(o.prototype,"value",{get:function(){var t;return null==(t=this.mEe)?void 0:t.val()},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"container",{get:function(){return this._Ue},enumerable:!1,configurable:!0}),o.prototype.create=function(){var t,e,n,i,o,i,o,t=this,e=t.LEt,n=t._Ue=(0,a.GC$)(l("div"));return n.addClass("gc-defined-column-field-item-container gc-defined-column-input"+(e.className?" "+e.className:"")),e.label&&e.label.text&&((i=(0,a.GC$)(l("div"))).addClass("gc-defined-column-field-label-container"),i.appendTo(n),(o=(0,a.GC$)(l("label"))).addClass("gc-defined-column-field-label-container-label-text"),o.attr("for","gc-defined-column-input-"+e.inputId),o.appendTo(i),o.text(e.label.text)),(i=t.WQe=(0,a.GC$)(l("div"))).addClass("gc-defined-column-field-container"),i.appendTo(n),t.isVisible()||n.addClass("gc-defined-column-hide"),n.attr("aria-hide",t.isVisible()?"false":"true"),t.ZX(),(o=(0,a.GC$)(l("div"))).addClass("gc-defined-column-field-label-validation-container"),o.appendTo(n),n},o.prototype.ZX=function(){var e,n,t,i,o,u,r,e=this,n=e.LEt,t=e.WQe;e.isDisable()&&t.addClass("gc-defined-column-disabled"),e.FQe()&&(t.addClass("gc-defined-column-click"),t.bind("click",function(t){if(!e.isDisable())return n.onClick(t),!1})),n.label&&((i=e.KUe=(0,a.GC$)(l("div"))).addClass("gc-defined-column-field-label-container"),(0,s.isFunction)(n.label.onClick)&&i.bind("click",function(t){if(!e.isDisable())return n.label.onClick(t),!1}),i.appendTo(t),(o=(0,a.GC$)(l("label"))).addClass("gc-defined-column-field-label-container-label "+n.label.iconClass),o.attr("for","gc-defined-column-input-"+n.inputId),o.appendTo(i),(0,c.isNullOrEmpty)(n.label.iconClass))&&o.hide(),(u=(0,a.GC$)(l("div"))).addClass("gc-defined-column-field-input-container"),u.appendTo(t),"color"===n.type?n.tag="sjs-color-picker":(0,s.isNullOrUndefined)(n.type)&&(n.tag="sjs-text-editor"),r=e.mEe=n.tag?(0,s.createDCElement)(n.tag):(0,a.GC$)(l("input")),n.tag||r.addClass("gc-defined-column-field-input-container-input"),r.attr("id","gc-defined-column-input-"+n.inputId),n.tag||r.attr("type",n.type||"text"),r.attr("aria-disabled",e.isDisable()?"true":"false"),e.isDisable()?r.attr("disabled","true"):r.removeAttr("disabled"),n.placeholder&&r.attr("placeholder",n.placeholder),(n.label&&n.label.text||n.placeholder)&&r.attr("aria-label",n.label&&n.label.text||n.placeholder),(0,s.isNullOrUndefined)(n.defaultValue)||(r.attr("value",n.defaultValue),r.val(n.defaultValue)),n.isReadOnly&&r.attr("readonly","true"),n.maxLength&&r.attr("maxlength",n.maxLength),e.v7(),r.appendTo(u),n.label&&n.label.suffixIconClass&&((i=e._Qe=(0,a.GC$)(l("div"))).addClass("gc-defined-column-field-label-container"),(0,s.isFunction)(n.label.onSuffixClick)&&(i.addClass("gc-defined-column-click-quieter"),i.bind("click",function(t){if(!e.isDisable())return n.label.onSuffixClick(t),!1})),i.appendTo(t),(o=(0,a.GC$)(l("label"))).addClass("gc-defined-column-field-label-container-label "+n.label.suffixIconClass),o.appendTo(i))},o.prototype.v7=function(){var n,i,t,e,n=this,i=n.LEt,t=n.mEe,e=function(e){return function(t){n.isValid()||n.resetValid(n.validate()),n.isDisable()||(i.maxLength&&t.target.value&&i.maxLength<t.target.value.length?n.setValue(t.target.value.slice(0,i.maxLength)):e&&e(t))}};n.JQe()&&t.bind("blur",e(function(t){i.onBlur&&i.onBlur(t.target.value,t)})),n.XQe()&&t.bind("input",e(function(t){i.onChange(t.target.value,t)}))},o.prototype.setFocus=function(){var t;this.mEe.focus()},o.prototype.setOptions=function(t){var e=this;e.L0(),e.LEt=t,e.ZX()},o.prototype.isDisable=function(){return!1===this.LEt.enable},o.prototype.resetDisable=function(){var t=this,e=t.isDisable(),n=t.WQe;(t.LEt.enable=e)?n.removeClass("gc-defined-column-disabled"):n.addClass("gc-defined-column-disabled"),t.mEe.attr("aria-disabled",e?"false":"true"),e?t.mEe.removeAttr("disabled"):t.mEe.attr("disabled","true")},o.prototype.validate=function(){var t,e,n,n,t=this,e=t.LEt.validate,n=!t.isDisable();if(e&&n){if(e.required&&(0,c.isNullOrEmpty)(t.value))return t.resetValid(!1,{required:!1}),!1;if(e.validating)if("boolean"==typeof(n=e.validating(t.value))){if(!n)return t.resetValid(!1),!1}else if(!n.success)return t.resetValid(!1,n),!1}return t.resetValid(!0),!0},o.prototype.resetValid=function(t,e){var n,i,o,n,n=this,i=n.mEe,o=n.WQe,n=(0,a.GC$)(n._Ue.find(".gc-defined-column-field-label-validation-container")[0]);t?(o.removeClass("gc-define-column-invalid"),i.removeClass("gc-define-column-invalid"),i.attr("aria-invalid","false"),n.hide(),n.empty()):o.hasClass("gc-define-column-invalid")||(o.addClass("gc-define-column-invalid"),i.addClass("gc-define-column-invalid"),i.attr("aria-invalid","true"),!1===e.required?n.html((0,u.getSR)().defineColumnRequired):e.errorMessage&&n.html(e.errorMessage),e&&n.show())},o.prototype.isValid=function(){var t,e;return!this.WQe.hasClass("gc-define-column-invalid")},o.prototype.JQe=function(){var t=this,e=t.LEt;return!e.isReadOnly&&!t.isDisable()&&e.validate&&(e.validate.required||(0,s.isFunction)(e.validate.validating))},o.prototype.isVisible=function(){return!0!==this.LEt.hide},o.prototype.resetVisible=function(){var t=this,e=t.isVisible(),n=t._Ue;(t.LEt.hide=e)?n.addClass("gc-defined-column-hide"):n.removeClass("gc-defined-column-hide"),t.mEe.attr("aria-hide",e?"true":"false")},o.prototype.XQe=function(){var t,e=this.LEt;return!e.isReadOnly&&(0,s.isFunction)(e.onChange)},o.prototype.FQe=function(){var t,e=this.LEt;return e.isReadOnly&&(0,s.isFunction)(e.onClick)},o.prototype.setValue=function(t,e){var n=this;n.mEe.val(t),!1!==e&&(0,s.triggerEvent)(n.mEe,"input")},o.prototype.getInputElement=function(){return(0,s.getSJSInput)(this.mEe)},o.prototype.bind=function(t,e){return this.mEe.bind(t,e),this},o.prototype.unbind=function(t){return this.mEe.unbind(t),this},o.prototype.dispose=function(){var t=this;t.L0(),t.WQe=s.keyword_null},o.prototype.L0=function(){var t=this;t.XQe()&&t.mEe.unbind("input"),t.JQe()&&t.mEe.unbind("blur"),"sjs-text-editor"===t.LEt.tag&&t.mEe.unbind("sjs-mounted"),t.FQe()&&(t.WQe.removeClass("gc-defined-column-click"),t.WQe.unbind("click")),t.KUe&&(0,s.isFunction)(t.LEt.label.onClick)&&t.KUe.unbind("click"),t._Qe&&(0,s.isFunction)(t.LEt.label.onSuffixClick)&&t._Qe.unbind("click"),t.KUe=s.keyword_null,t._Qe=s.keyword_null,t.mEe=s.keyword_null,t.WQe.empty()},e._Ze=o},"./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-list.js":function(t,e,n){var i,s,l,a,c,n,f,o;function u(t){this.itemContainers=[];var e=this;e.LEt=t,e.$G=c.keyword_null,e.KQe=[]}i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,n,i,o,n=1,i=arguments.length;n<i;n++)for(o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},Object.defineProperty(e,"__esModule",{value:!0}),e.rQe=void 0,s=n("Core"),l=n("DataManager"),a=n("./dist/plugins/tableSheet/tableSheet.js"),c=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-utils.js"),n=s.mt,f=n.En,Object.defineProperty(u.prototype,"value",{get:function(){var t,e,e=this;return e.LEt.enableMultiSelected?e.KQe.map(function(t){var t;return null==(t=e.LEt.items[t])?void 0:t.value}):null==(t=e.LEt.items[e.$G])?void 0:t.value},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"index",{get:function(){var t=this;return t.LEt.enableMultiSelected?t.KQe.slice():t.$G},enumerable:!1,configurable:!0}),u.prototype.create=function(){var t,e,n,i,o,u,t=this,e=t.LEt.label,n=t.LEt.addAndRemoveButton,i=(0,s.GC$)(f("div"));return i.addClass("gc-defined-column-list-container"),(o=(0,s.GC$)(f("div"))).addClass("gc-defined-column-list-label-container"),o.appendTo(i),e&&e.text&&((u=(0,s.GC$)(f("div"))).addClass("gc-defined-column-label-container"),u.appendTo(o),u.text(e.text)),n&&t.qQe(o),t.zqt().appendTo(i),i},u.prototype.zqt=function(){var t,e,t=this,e=t.$Qe=(0,s.GC$)(f("div"));return e.addClass("gc-defined-column-list-items-container"),t.isDisable()&&e.addClass("gc-defined-column-disabled"),e.attr("role","listbox"),e.attr("tabindex","-1"),e.attr("aria-disabled",t.isDisable()?"true":"false"),t.tyn(),e},u.prototype.tyn=function(){var i,o,e,n,u,r,a,t,c,i=this,o=i.LEt.items,e=i.LEt.enableMultiSelected,n=i.KQe,u=i.$G,r=i.LEt.showValue,a=function(t){return e?-1<n.indexOf(t):u===t};for(r&&i.eYe(),t=function(e){var t,n,t=o[e],n=(0,s.GC$)(f("span"));i.itemContainers.push(n),n.addClass("gc-defined-column-list-item-container"),a(e)&&n.addClass("gc-defined-column-list-item-selected"),n.attr("role","option"),n.attr("tabindex","0"),n.attr("aria-selected",a(e)?"true":"false"),n.bind("click",function(t){i.isDisable()||i.tYe(e,t)}),i.ryn(t,n),r&&i.ryn(t,n,!0),n.appendTo(i.$Qe)},c=0;c<o.length;c++)t(c)},u.prototype.eYe=function(){var t,e,n,n,t=this,e=(0,s.GC$)(f("div"));e.addClass("gc-defined-column-list-header"),(n=(0,s.GC$)(f("div"))).addClass("gc-defined-column-list-header-text"),n.text((0,a.getSR)().columnTypeText),n.appendTo(e),(n=(0,s.GC$)(f("div"))).addClass("gc-defined-column-list-header-value"),n.text((0,a.getSR)().defineColumnValue),n.appendTo(e),e.appendTo(t.$Qe)},u.prototype.ryn=function(t,e,n){var i,o,u,r,a,i=this,o=i.LEt.editable,u=o?(0,s.GC$)(f("input")):(0,s.GC$)(f("div")),r;u.addClass("gc-defined-column-list-item-"+(n?"value":"text")),t.class&&u.addClass(t.class),a=n||(0,c.isNullOrUndefined)(t.text)?t.value:t.text,o?u.val(a):u.text(a),u.appendTo(e),i.LEt.editable&&u.bind("blur",function(){n?t.value=this.value:t.text=this.value,i.LEt.onChange&&i.LEt.onChange()})},u.prototype.tYe=function(t,e){var n,i,o,u,r,a,c,n=this,i=n.LEt.enableMultiSelected,o=n.KQe,u=function(t){return i?-1<o.indexOf(t):n.$G===t};for(i?(r=function(t){var e=o.indexOf(t);-1<e?o.splice(e,1):o.push(t)},(0,l.isArray)(t)?t.forEach(function(t){r(t)}):r(t)):n.$G=t,a=0;a<n.itemContainers.length;a++)c=n.itemContainers[a],u(a)?(c.attr("aria-selected","true"),c.addClass("gc-defined-column-list-item-selected")):(c.attr("aria-selected","false"),c.removeClass("gc-defined-column-list-item-selected"));n.LEt.onChange&&n.LEt.onChange(n.value,n.index,e)},u.prototype.qQe=function(t){var e,n,i,o,u,r,r,r,u,o,e=this,n=e.LEt.items,i=(0,s.GC$)(f("div"));i.addClass("gc-defined-column-add-remove-container"),(o=(0,s.GC$)(f("div"))).addClass("gc-defined-column-add-remove-container-buttons"),o.appendTo(i),(u=(0,s.GC$)(f("button"))).addClass("gc-defined-column-add-remove-container-button"),u.appendTo(o),(r=(0,s.GC$)(f("span"))).addClass("gc-defined-column-add-remove-container-button-icon gc-defined-column-add-remove-container-button-icon-add ui-icon ui-icon-check"),r.appendTo(u),(r=(0,s.GC$)(f("span"))).appendTo(u),r.text((0,a.getSR)().columnTypeComboBoxAdd),u.bind("click",function(){(n=n||[]).push({text:"",value:""}),e.setOptions({items:n}),e.LEt.onChange&&e.LEt.onChange()}),(r=(0,s.GC$)(f("button"))).addClass("gc-defined-column-add-remove-container-button"),r.appendTo(o),(u=(0,s.GC$)(f("span"))).addClass("gc-defined-column-add-remove-container-button-icon gc-defined-column-add-remove-container-button-icon-remove ui-icon ui-icon-check"),u.appendTo(r),(o=(0,s.GC$)(f("span"))).appendTo(r),o.text((0,a.getSR)().columnTypeComboBoxRemove),r.bind("click",function(){var t=e.$G;n.splice(t,1),e.setOptions({items:n}),e.LEt.onChange&&e.LEt.onChange()}),i.appendTo(t)},u.prototype.setValue=function(e){var i,t,t,i=this;(0,c.isNullOrUndefined)(e)||(i.LEt.enableMultiSelected&&(0,l.isArray)(e)?0<(t=e.reduce(function(t,e){var n=i.LEt.items.findIndex(function(t){return t.value===e});return-1<n&&t.push(n),t},[])).length&&i.tYe(t):-1<(t=i.LEt.items.findIndex(function(t){return t.value===e}))&&i.tYe(t))},u.prototype.setIndex=function(t){var e=this;(0,c.isNullOrUndefined)(t)||(e.LEt.enableMultiSelected&&(0,l.isArray)(t)?0<t.length&&e.tYe(t):-1<t&&e.tYe(t))},u.prototype.setOptions=function(t){var e=this;e.LEt=i(i({},e.LEt),t),e.clear(),e.tyn()},u.prototype.isDisable=function(){return!1===this.LEt.enable},u.prototype.resetDisable=function(){var t=this,e=t.isDisable(),n=t.$Qe;(t.LEt.enable=e)?n.removeClass("gc-defined-column-disabled"):n.addClass("gc-defined-column-disabled"),n.attr("aria-disabled",e?"false":"true")},u.prototype.clear=function(){for(var t,e,n,i,t=this,e=0,n=t.itemContainers;e<n.length;e++)(i=n[e]).unbind("click");t.itemContainers=[],t.$Qe.empty()},u.prototype.dispose=function(){var t=this;t.clear(),t.$Qe=c.keyword_null},e.rQe=u},"./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-lookup.js":function(t,e,n){var c,a,s,l,f,d,n,h,i;function o(t){var e;this.Pq=[],this.nYe=[],this.LEt=t}c=this&&this.__assign||function(){return(c=Object.assign||function(t){for(var e,n,i,o,n=1,i=arguments.length;n<i;n++)for(o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},Object.defineProperty(e,"__esModule",{value:!0}),e.iYe=void 0,a=n("Core"),s=n("./dist/plugins/tableSheet/tableSheet.js"),l=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-input-number.js"),f=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-select.js"),d=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-utils.js"),n=a.mt,h=n.En,o.prototype.create=function(t){var e,n,e=this,n=e.oYe=(0,a.GC$)(h("div"));return n.addClass("gc-defined-column-look-up-container"),e.ZX(e.uYe(t)),n},o.prototype.ZX=function(t){var e,i,e,o,n,u,r,a,i=this,e=i.oYe,o=i.LEt.getLookup()||[],n=new f.GZe({inputId:"lookup-tables",validate:{required:!0},enableSearch:!0,stickItem:{value:d.keyword_undefined,text:(0,s.getSR)().defineColumnNone,iconClass:""},items:o.map(function(t){return{lookup:t,value:t.table,text:t.table,iconClass:""}}),label:{text:(0,s.getSR)().columnTypeLookupTables},onChange:function(t){var e,n,e,n=function(){i.MUe(i.Pq.slice(2)),i.Pq=i.Pq.slice(0,2),i.ltt().setValue()};(null==t?void 0:t.value)?(0===i.nYe.length?i.nYe.push(t.lookup):(i.nYe=[t.lookup],n()),o=i.LEt.getLookup(i.aYe()),i.ltt().setOptions({items:o.map(function(t){return{lookup:t,value:t.table,text:t.table,iconClass:""}})}),i.ltt().isDisable()&&i.ltt().resetDisable()):(i.nYe=[],n(),i.ltt().isDisable()||i.ltt().resetDisable()),i.F_e()}});if(n.create().appendTo(e),i.Pq.push({fieldSelect:n}),i.rYe(),t&&(n.setValue(null==(e=t[0])?void 0:e.table),1<t.length)&&i.ltt().setValue(t[1],t[0]),t&&2<t.length)for(u=2;u<t.length;u++)r=t[u],(a=i.Pq[u]).fieldSelect.setValue(r.table),a.fieldNumber&&i.cYe(a.fieldNumber,t[u-1].isMany,r.index)},o.prototype.rYe=function(t,e){var n,u,i,n,o,r,n,u=this,i=!!t,n=u.oYe,o=(0,a.GC$)(h("div"));o.appendTo(n),o.addClass("gc-defined-column-look-up-field-container"),(n=new l.EZe({inputId:"lookup-fields-number"+(t?"-"+t:"")+"-"+(u.Pq.length-1),minValue:0,maxValue:Number.MAX_SAFE_INTEGER,allowMinNull:!0,enable:i,visible:!(null==(n=u.nYe[u.Pq.length-1])||!n.isMany),label:{text:(0,s.getSR)().columnTypeLookupIndexes},onChange:function(t){var e,n,i,e=u.Pq.findIndex(function(t){return t.fieldSelect===r}),n=r.item.lookup,i=t||d.keyword_undefined;n?(n.index=t||d.keyword_undefined,u.nYe[e]?u.nYe[e]=n:u.nYe.push(n)):u.nYe[e]?u.nYe[e].index=i:u.nYe.push({table:d.keyword_null,index:i}),u.F_e()}})).create().appendTo(o),(r=new f.GZe({inputId:"lookup-fields"+(t?"-"+t:"")+"-"+u.Pq.length,enable:i,enableSearch:!0,stickItem:{value:d.keyword_undefined,text:(0,s.getSR)().defineColumnNone,iconClass:""},items:i?e.map(function(t){return{lookup:t,value:t.table,text:t.table,iconClass:""}}):[],label:{text:(0,s.getSR)().columnTypeLookupFields},onChange:function(t){var e,n,i,o,e,t,n=null==t?void 0:t.value,i=u.Pq.findIndex(function(t){return t.fieldSelect===r}),o=function(){var t=i+1;u.nYe=u.nYe.slice(0,t),u.MUe(u.Pq.slice(t)),u.Pq=u.Pq.slice(0,t)},e=null==(e=u.Pq[i].fieldNumber)?void 0:e.value;n?(u.nYe[i]?(u.nYe[i]=t.lookup,u.nYe[i].index=e,o()):u.nYe.push(t.lookup),t.lookup.isTable&&(t=u.LEt.getLookup(u.aYe()))&&0<t.length&&u.rYe(n,t)):(o(),u.nYe[i]&&(u.nYe[i]=c(c({},u.nYe[i]),{table:d.keyword_null}),e||(u.nYe[i].index=d.keyword_null))),u.F_e()}})).create().appendTo(o),u.Pq.push({fieldSelect:r,fieldNumber:n,lookupFieldContainer:o}),r.setValue()},o.prototype.ltt=function(){var n,t,i,o,n=this,t=n.Pq[1],i=t.fieldSelect,o=t.fieldNumber;return{setValue:function(t,e){i.setValue(null==t?void 0:t.table),n.cYe(o,null==e?void 0:e.isMany,null==t?void 0:t.index)},resetDisable:function(){i.resetDisable(),o.resetDisable()},isDisable:function(){return i.isDisable()},setOptions:function(t){var t;i.setOptions(t),n.cYe(o,n.nYe[0].isMany,null==(t=n.nYe[1])?void 0:t.index)}}},o.prototype.cYe=function(t,e,n){e?(t.setOptions({visible:!0}),t.setValue(n)):(t.setOptions({visible:!1}),t.setValue())},o.prototype.uYe=function(t){for(var i,o,u,e,r,n,a,i=this,o=[],u=t?t.split("."):[],e=function(t,e){var n,t,n=u[t];Number.isInteger(Number(n))?o[e]=c(c({},o[e]),{index:Number(n)}):(t=i.LEt.getLookup(u.slice(0,t).join(".")),o[e]=c(c(c({},o[e]),{table:n}),t.find(function(t){return t.table===n})),e++),r=e},n=0,a=0;n<u.length;n++)e(n,a),a=r;return o},o.prototype.aYe=function(t){var e,n,i,o,e=this,n="";if(t){for(i=0;i<e.nYe.length;i++)(o=e.nYe[i]).index&&(n+=".".concat(o.index)),o.table&&(n+=".".concat(o.table));n=n.slice(1)}else n=e.nYe.map(function(t){return t.table}).join(".");return n},o.prototype.F_e=function(){var t,e,t=this,e=t.aYe(!0);t.LEt.onChange(e)},o.prototype.validate=function(){var t,t;return null==(t=null==(t=this.Pq[0])?void 0:t.fieldSelect)?void 0:t.validate()},o.prototype.MUe=function(t){for(var e,n,i,o,u,r,o,e=function(t){t&&(t.dispose?t.dispose(!0):t.unbind&&t.unbind("click"))},n=0,i=t;n<i.length;n++)u=(o=i[n]).fieldSelect,r=o.fieldNumber,o=o.lookupFieldContainer,u&&e(u),r&&e(r),o&&o.remove();return[]},o.prototype.dispose=function(){var t=this;t.MUe(t.Pq),t.Pq=[],t.oYe=d.keyword_null},e.iYe=o},"./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-mask.js":function(t,e,n){var r,a,c,s,l,f,d,n,h,i;function o(t){var e=this;e.LEt=t,e.y4={pattern:t.pattern,placeholder:t.placeholder,excludeLiteral:t.excludeLiteral,excludePlaceholder:t.excludePlaceholder}}r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,n,i,o,n=1,i=arguments.length;n<i;n++)for(o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},Object.defineProperty(e,"__esModule",{value:!0}),e.sYe=void 0,a=n("Core"),c=n("DataManager"),s=n("./dist/plugins/tableSheet/tableSheet.js"),l=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-checkbox.js"),f=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-input.js"),d=null,n=a.mt,h=n.En,o.prototype.create=function(){var t;return this.ZX()},o.prototype.ZX=function(){var e,n,i,t,o,o,o,u,u,e=this,n=e.LEt,i=n.onChange,t=(0,a.GC$)(h("div"));return t.addClass("gc-defined-column-mask-container"),(o=e.lYe=new f._Ze({inputId:"pattern",label:{text:(0,s.getSR)().columnTypeMask.pattern},onChange:function(t){e.y4.pattern=(0,c.isNullOrEmpty)(t)?n.pattern:t,i&&i(r({},e.y4))}})).create().appendTo(t),n.pattern&&o.setValue(n.pattern),(o=e.fYe=new f._Ze({inputId:"placeholder",maxLength:1,label:{text:(0,s.getSR)().columnTypeMask.placeholder},onChange:function(t){e.y4.placeholder=(0,c.isNullOrEmpty)(t)?d:t,i&&i(r({},e.y4))}})).create().appendTo(t),n.placeholder&&o.setValue(n.placeholder),(o=(0,a.GC$)(h("div"))).addClass("gc-defined-column-mask-exclude-container"),o.appendTo(t),(u=e.Lse=new l.YZe({label:{text:(0,s.getSR)().columnTypeMask.excludeLiteral},onChange:function(t){e.y4.excludeLiteral=t,i&&i(r({},e.y4))}})).create().appendTo(o),n.excludeLiteral&&u.setValue(n.excludeLiteral),(u=e.Fse=new l.YZe({label:{text:(0,s.getSR)().columnTypeMask.excludePlaceholder},onChange:function(t){e.y4.excludePlaceholder=t,i&&i(r({},e.y4))}})).create().appendTo(o),n.excludePlaceholder&&u.setValue(n.excludePlaceholder),t},o.prototype.dispose=function(){var t=this;t.lYe.dispose(),t.lYe=d,t.fYe.dispose(),t.fYe=d,t.Lse.dispose(),t.Lse=d,t.Fse.dispose(),t.Fse=d},e.sYe=o},"./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-modified-fields.js":function(t,e,n){var i,o,u,r,a,c,n,s,l;function f(t){var e;this.LEt=t}i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,n,i,o,n=1,i=arguments.length;n<i;n++)for(o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},Object.defineProperty(e,"__esModule",{value:!0}),e.dYe=void 0,o=n("Core"),u=n("./dist/plugins/tableSheet/tableSheet.js"),r=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-checkbox.js"),a=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-list.js"),c=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-utils.js"),n=o.mt,s=n.En,f.prototype.create=function(){var t,e,t=this,e;return(t.hYe=(0,o.GC$)(s("div"))).addClass("gc-defined-column-modified-fields-container"),t.ZX()},f.prototype.ZX=function(){var t,e,n,i,t,n,e=this,n=e.LEt,i=e.hYe,t=(null==(t=n.fields)?void 0:t.split(","))||[];return e.gYe=new r.YZe({label:{text:(0,u.getSR)().columnTypeAllEditableFields},onChange:function(t){var t,t,t,t;t?(e.fields="*",e.bQe(),null!=(t=e.bYe)&&t.isDisable()||null!=(t=e.bYe)&&t.resetDisable()):null!=(t=e.bYe)&&t.isDisable()&&null!=(t=e.bYe)&&t.resetDisable()}}),e.gYe.create().appendTo(i),n=(0,c.isNullOrUndefined)(n.fields)||t.length===e.vYe().length||"*"===n.fields,e.gYe.setValue(n),e.bYe=new a.rQe({label:{text:(0,u.getSR)().GroupPanelFieldsHeader},enableMultiSelected:!0,items:e.vYe(),enable:!e.gYe.value,onChange:function(t){e.fields=t.join(","),t.length===e.vYe().length&&e.gYe.setValue(!0),e.bQe()}}),e.bYe.create().appendTo(i),e.bYe.setValue(t),i},f.prototype.vYe=function(){for(var t,e,n,i,o,u,t,e,n=[],i=0,o=this.LEt.getTriggerFields();i<o.length;i++)u=o[i],n.push({value:u});return n},f.prototype.bQe=function(){var t=this;t.LEt.onChange({fields:t.fields})},f.prototype.setOptions=function(t){var e=this;e.LEt=i(i({},e.LEt),t),e.clear(),e.ZX()},f.prototype.clear=function(){var t=this;t.L0(),t.hYe.empty()},f.prototype.dispose=function(){var t=this;t.clear(),t.hYe=c.keyword_null},f.prototype.L0=function(){var t=this;t.gYe&&t.gYe.dispose(),t.gYe=c.keyword_null,t.bYe&&t.bYe.dispose(),t.bYe=c.keyword_null},e.dYe=f},"./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-number-formatting.js":function(t,e,n){var i,m,o,N,u,r,a,D,c,s,j,l,n,f,d,h;function g(t){var e;this.LEt=t}i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,n,i,o,n=1,i=arguments.length;n<i;n++)for(o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},Object.defineProperty(e,"__esModule",{value:!0}),e.UQe=void 0,m=n("Common"),o=n("Core"),N=n("./dist/plugins/tableSheet/tableSheet.js"),u=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-input-number.js"),r=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-checkbox.js"),a=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-list.js"),D=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-formatting.js"),c=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-preview.js"),s=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-select.js"),j=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-utils.js"),l=m.Formatter&&m.Formatter.GeneralFormatter,n=o.mt,f=n.En,d=n.St,g.prototype.create=function(){var t,e,t=this,e;return(t.MYe=(0,o.GC$)(f("div"))).addClass("gc-defined-column-number-formatting-container"),t.ZX()},g.prototype.ZX=function(){var t,e,n,i,o,t=this,e=t.LEt,n=t.MYe,i=(0,D.parseFormat)(e.formatter),o=e.type||i.category;return t.IYe=new u.EZe({inputId:"number-formatting-decimal-places",maxValue:16,label:{text:(0,N.getSR)().columnTypeNumberFormattingDecimalPlaces},onChange:function(){6!==o&&t.mYe.setOptions({items:t.NYe()}),t.bQe()}}),t.IYe.create().appendTo(n),6===o?(t.jQe().appendTo(n),t.IYe.setValue((0,j.isNullOrUndefined)(i.decimalPlaces)?2:i.decimalPlaces)):((2===o?((0,j.isNullOrUndefined)(i.locale)&&e.formatter&&1===i.category&&(i.locale=(0,N.getSR)().columnTypeNumberFormatting.accountingSymbol[0][0]),t.oUt=new s.GZe({inputId:"number-formatting-symbol",items:(0,D.getListItems)(2,[{text:(0,N.getSR)().columnTypeNumberFormatting.accountingSymbol[0][0],value:(0,N.getSR)().columnTypeNumberFormatting.accountingSymbol[0][0]}]),label:{text:(0,N.getSR)().columnTypeNumberFormattingSymbol},onChange:function(){t.mYe.setOptions({items:t.NYe()}),t.bQe()}}),t.oUt):(t.DYe=new r.YZe({label:{text:(0,N.getSR)().columnTypeNumberFormattingThousandSeparator},onChange:function(){t.mYe.setOptions({items:t.NYe()}),t.bQe()}}),t.DYe)).create().appendTo(n),t.mYe=new a.rQe({label:{text:(0,N.getSR)().columnTypeNumberFormattingNegativeNumbers},items:t.NYe(),onChange:function(){t.bQe()}}),t.mYe.create().appendTo(n),t.jQe().appendTo(n),t.mYe.setIndex(0),t.IYe.setValue((0,j.isNullOrUndefined)(i.decimalPlaces)?2:i.decimalPlaces),2===o?i.locale?t.oUt.setValue(i.locale):t.oUt.setIndex(1):t.DYe.setValue(i.useThousand||!1),t.mYe.setIndex((0,j.isNullOrUndefined)(i.index)?0:i.index)),n},g.prototype.bQe=function(){var t=this,e=t.CQe();t.LEt.onChange(e)},g.prototype.CQe=function(){var t,e,n,t=this,e=6===t.LEt.type?t.jYe(t.IYe.value):2===t.LEt.type?t.CYe(t.mYe.value):t.wYe(t.mYe.index,t.IYe.value,t.DYe.value),n=t.Re("12345",e);return t.wQe.setText(n),e},g.prototype.jYe=function(t){var e,n,i,e="";if(0<t){for(i=0;i<t;i++)e+="0";n="0."+e+"%"}else n="0%";return n},g.prototype.CYe=function(t){return t},g.prototype.wYe=function(t,e,n){var i,o,u,r,a,i=(0,N.getSR)().columnTypeNumberFormatting.numberCategoryFormats,o=i.length/2,u=i[t];if(n&&(u=i[t+o]),0<e){for(r="",a=0;a<e;a++)r+="0";u=u.replace(/0/g,"0."+r)}return u},g.prototype.NYe=function(){var t=this,e;return 2===t.LEt.type?t.pYe():t.yYe()},g.prototype.yYe=function(){var t,e,n,i,o,n,u,r,a,c,s,l,f,f,t="1234.10",e=this.IYe.value,n=this.DYe&&this.DYe.value;if(0<e){for(i="",o=0;o<e;o++)i=(o%10).toString()+i.substring(0);t=t.substring(0,t.indexOf(".")+1)+i}else t=t.substring(0,t.indexOf("."));for(n&&(n=t.indexOf("1"),t=t.substring(0,n+1)+","+t.substring(n+1)),u=[],r=(0,N.getSR)().columnTypeNumberFormatting.negativeNumbers,a=0,c=Object.keys(r);a<c.length;a++)l=t,-1!==(f=r[s=c[a]]).indexOf("-")&&(l="-"+l),-1!==f.indexOf(")")&&(l="("+l+")"),-1!==f.indexOf("\u25b3")&&(l="\u25b3"+l),f={text:l=-1!==f.indexOf("\u25b2")?"\u25b2"+l:l,value:s,class:j.keyword_null},-1!==s.indexOf("red")&&(f.class="gc-defined-column-number-formatting-negative-item"),u.push(f);return u},g.prototype.pYe=function(){var t,e,n,i,o,u,r,a,c,s,l,f,d,h,g,b,v,v,M,I,b,t=this.IYe.value,e=this.oUt.value,n=[],i="-1234",o="",u="";if(0<t){for(u="."+Array(t).fill(0).join(""),r=Array(t),a=0;a<t;)r[a]=a%10,a++;r.reverse(),o=r.join("")}for(s=parseFloat(c=i+"."+o),l=(0,j.isNullOrUndefined)(e)||e===(0,N.getSR)().columnTypeNumberFormatting.accountingSymbol[0][0]?(0,N.getSR)().columnTypeNumberFormatting.currencyFormatWithoutSymbol:(0,D.getPredefinedFormats)(e,D.formatCategories[2]),f=/(\[[^\$^\]]+\])?(\[\$[^\]]+\])?(.*)(0)([^\[]*)(\[\$[^\]]+\])?/,d=0,h=l.length;d<h;d++)b=(g=l[d]).split(";"),v=(0,D.beforeAdjustFormatString)(b),b=b.map(function(t){return t.replace(f,function(){for(var t,e,n,t=[],e=1;e<7;e++)(0,j.isNullOrUndefined)(n=arguments[e])||(2!==e&&6!==e&&(n=n.replace(D.decimalPlacesWithZeroDotReg,"0"+u)),t.push(n));return t.join("")})}),(0,D.afterAdjustFormatString)(b,v),g=b.join(";"),v={},b={text:I=(M=new m.Formatter.GeneralFormatter(g)).format(s,v),value:g},(v.conditionalForeColor&&"red"===v.conditionalForeColor.toLowerCase()||"#FF0000"===v.conditionalForeColor)&&(b.class="gc-defined-column-number-formatting-negative-item"),n.push(b);return n},g.prototype.jQe=function(){var t,e,t,e;return(this.wQe=new c.pQe).create()},g.prototype.Re=function(t,e){var n,i;return d(e)?(n=(0,j.isNullOrUndefined)(t)?0:t,e.replace(/@/g,n)):(i=new l(e)).format(t)},g.prototype.setOptions=function(t){var e=this;e.LEt=i(i({},e.LEt),t),e.clear(),e.ZX()},g.prototype.clear=function(){var t=this;t.L0(),t.MYe.empty()},g.prototype.dispose=function(){var t=this;t.clear(),t.MYe=j.keyword_null},g.prototype.L0=function(){var t=this;t.IYe.dispose(),t.IYe=j.keyword_null,t.DYe&&t.DYe.dispose(),t.DYe=j.keyword_null,t.mYe&&t.mYe.dispose(),t.mYe=j.keyword_null,t.oUt&&t.oUt.dispose(),t.oUt=j.keyword_null,t.wQe.dispose(),t.wQe=j.keyword_null},e.UQe=g},"./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-popup.js":function(Z,t,e){var n,a,r,c,s,i,o,u,l,f,d,h,g,b,v,M,I,m,N,D,j,C,w,p,x,y,A,T,S,z,e,L,U,O,k;function E(t,e,n){var t,e,t=k.call(this,t,e)||this;return t.xT=[],(e=t).LEt=n,e.xYe=n.column,e.AYe={},e.Wc=e.Xc(),e._hidden(),t}n=this&&this.__extends||(O=function(t,e){return(O=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}O(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),a=this&&this.__assign||function(){return(a=Object.assign||function(t){for(var e,n,i,o,n=1,i=arguments.length;n<i;n++)for(o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},Object.defineProperty(t,"__esModule",{value:!0}),t.TZe=void 0,r=e("Core"),c=e("./dist/plugins/tableSheet/tableSheet.js"),s=e("./dist/plugins/tableSheet/tableSheet.interface.js"),i=e("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-select-types.js"),o=e("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-input.js"),u=e("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-tabs.js"),l=e("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-number-formatting.js"),f=e("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-date-formatting.js"),d=e("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-date-time-picker.js"),h=e("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-modified-fields.js"),g=e("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-attachment.js"),b=e("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-attachment-margin.js"),v=e("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-checkbox-cell-type.js"),M=e("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-checkbox-cell-type-text.js"),I=e("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-lookup.js"),m=e("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-formatting-select.js"),N=e("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-input-formula.js"),D=e("DataManager"),j=e("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-utils.js"),C=e("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-mask.js"),w=e("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-barcode/tablesheet-define-column-barcode-base.js"),p=e("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-barcode/tablesheet-define-column-barcode-utils.js"),x=e("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-barcode/tablesheet-define-column-barcode-options-container.js"),y=e("CellTypes"),A=e("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-combobox.js"),T=e("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-combobox-style.js"),S=e("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-url.js"),z="keydown.definedColumn.gcSheet",e=r.mt,L=e.En,k=r.zc,n(E,k),E.prototype.LF=function(){var e=this,t=e.Wc;t.css(["box-shadow","width","box-sizing","overflow-y"],["rgba(0, 0, 0, 0.15) 2px 4px 5px","400px","content-box","auto"]),t.addClass("gc-defined-column-container"),t.appendTo(e.qc()),e.TYe(),(0,r.GC$)(j.DOCUMENT).bind(z,function(t){27===t.keyCode&&e.close()})},E.prototype.lf=function(t){var e,n,n;return this.AYe.type===s.ColumnTypes.Formula&&-1<(null==(e=(0,r.GC$)(t).attr("class"))?void 0:e.indexOf("gcsj-func-ac"))||k.prototype.lf.call(this,t)},E.prototype.SYe=function(t,e){var t=new o._Ze(t),n=t.create();return(0,j.isNullOrUndefined)(e)||t.setValue(e),{input:t,elem:n}},E.prototype.zYe=function(t,e){var t=this.SYe(t,e),e=t.input,t=t.elem;return this.xT.push(e),t},E.prototype.TYe=function(){var u,t,e,n,u=this,t=u.Wc,e=(0,r.GC$)(L("div"));e.addClass("gc-defined-column-content-container"),e.appendTo(t),u.zYe({inputId:"value",placeholder:(0,c.getSR)().defineColumnValue,validate:{validating:function(t){var e,n,i,o,e=u.AYe.type,n=e===s.ColumnTypes.Formula;return n||((0,D.isNullOrEmpty)(t)?{success:!1,errorMessage:(0,c.getSR)().defineColumnRequired}:(i=u.LEt.getColumnBy(t),(o=0!==Object.keys(u.xYe).length&&t===u.xYe.value||!i||!1===i.visible)?!(!n&&(0,j.isFormula)(t)&&e!==s.ColumnTypes.Lookup&&((0,j.isRelation)(t)||u.LEt.isRelationship(t))):{success:!1,errorMessage:(0,c.getSR)().defineColumnExisted}))}},onBlur:function(){u.AYe.type===s.ColumnTypes.Barcode&&u.LYe(u.t())},onChange:function(t){u.AYe.value=t}},u.xYe.value).appendTo(e),u.zYe({inputId:"caption",placeholder:(0,c.getSR)().defineColumnCaption,onChange:function(t){u.AYe.caption=t}},u.xYe.caption).appendTo(e),n=u.OYe(),u.kYe().appendTo(e),n.appendTo(e),u.EYe().appendTo(t)},E.prototype.kYe=function(){var o,t,e,n,o=this,t=new i.ZYe({items:o.LEt.columnTypeItems,onChange:function(t){var e,n,i,e=o.xT[0],n;e.isDisable()?(e.resetDisable(),(i=e.value)&&o.LEt.isRelationship(i)&&(e.setValue(j.keyword_null),o.AYe.value=j.keyword_null)):t.name===s.ColumnTypes.Lookup&&o.xYe.value&&o.LEt.isRelationship(o.xYe.value)&&(e.setValue(o.xYe.value),o.AYe.value=o.xYe.value),o.AYe={value:o.AYe.value,caption:o.AYe.caption,type:t.name},o.UYe(t)}}),e=t.create();return(0,j.isNullOrUndefined)(o.xYe.type)?0<Object.keys(o.xYe).length&&("number"===o.xYe.dataType?t.setValue(s.ColumnTypes.Number):"date"===o.xYe.dataType?t.setValue(s.ColumnTypes.Date):"boolean"===o.xYe.dataType?t.setValue(s.ColumnTypes.Checkbox):(0,j.isFormula)(o.xYe.formula)?t.setValue(s.ColumnTypes.Formula):o.LEt.isRelationship(o.xYe.value)?t.setValue(s.ColumnTypes.Lookup):(n=o.LEt.getSampleValue(o.xYe),(0,j.isNumber)(n)?t.setValue(s.ColumnTypes.Number):(0,j.isDate)(n)?t.setValue(s.ColumnTypes.Date):(0,j.isString)(n)?t.setValue(s.ColumnTypes.Text):(0,j.isBoolean)(n)&&t.setValue(s.ColumnTypes.Checkbox))):t.setValue(o.xYe.type),o.xT.push(t),e},E.prototype.Ue=function(){var t=this;return t.AYe&&t.AYe.style&&t.AYe.style.formatter?t.AYe.style.formatter:t.xYe&&t.xYe.style&&t.xYe.style.formatter?t.xYe.style.formatter:j.keyword_null},E.prototype.BYe=function(){var t=this;return t.AYe&&t.AYe.style&&t.AYe.style.cellType?t.AYe.style.cellType:t.xYe&&t.xYe.style&&t.xYe.style.cellType?t.xYe.style.cellType:j.keyword_null},E.prototype.GYe=function(){var t=this;return t.AYe&&t.AYe.style&&t.AYe.style.dropDowns?t.AYe.style.dropDowns[0].option:t.xYe&&t.xYe.style&&t.xYe.style.dropDowns?t.xYe.style.dropDowns[0].option:j.keyword_null},E.prototype.RYe=function(){var t=this;return t.AYe&&t.AYe.trigger&&t.AYe.trigger.fields?t.AYe.trigger.fields:t.xYe&&t.xYe.trigger&&t.xYe.trigger.fields?t.xYe.trigger.fields:j.keyword_null},E.prototype.GWe=function(){var t=this,e=t.AYe,t=t.xYe;return 0<Object.keys(t).length&&!(0,D.isNullOrEmpty)(t.type)&&t.type!==e.type},E.prototype.BWe=function(t){var e,n,i,e=this;if(e.GWe())e.AYe.style=t;else{for(i in(0,j.isNullOrUndefined)(e.AYe.style)&&(e.AYe.style={}),n=e.xYe.style)n.hasOwnProperty(i)&&(e.AYe.style[i]=(0,j.cloneObject)(n[i],!1));for(i in t)t.hasOwnProperty(i)&&(e.AYe.style[i]=t[i])}},E.prototype.UYe=function(t){var e=this;switch(e.PYe.xT=e.MUe(e.PYe.xT),e.PYe.empty(),t.name){case s.ColumnTypes.Text:e.AYe.dataType="string",e.QYe().appendTo(e.PYe);break;case s.ColumnTypes.Number:e.ZQe(1);break;case s.ColumnTypes.Percent:e.ZQe(6,s.ColumnTypes.Percent.toLowerCase());break;case s.ColumnTypes.Currency:e.ZQe(2,s.ColumnTypes.Currency.toLowerCase());break;case s.ColumnTypes.Lookup:e.YYe();break;case s.ColumnTypes.Formula:e.WYe();break;case s.ColumnTypes.Phone:e.HYe();break;case s.ColumnTypes.Email:e.VYe();break;case s.ColumnTypes.URL:e.FYe();break;case s.ColumnTypes.Date:e.BQe(4,s.ColumnTypes.Date.toLowerCase());break;case s.ColumnTypes.CreatedTime:e.BQe(4,s.ColumnTypes.CreatedTime.toLowerCase());break;case s.ColumnTypes.ModifiedTime:e.BQe(4,s.ColumnTypes.ModifiedTime.toLowerCase());break;case s.ColumnTypes.Barcode:e._Ye();break;case s.ColumnTypes.Attachment:e.JYe();break;case s.ColumnTypes.Checkbox:e.XYe();break;case s.ColumnTypes.Select:e.KYe()}},E.prototype.ZQe=function(n,t){var i=this;t=t?"-"+t:"",i.AYe.dataType="number",i.qYe([{typeId:"number-formatting"+t,title:(0,c.getSR)().defineColumnFormatting,onInitPanel:function(t){var e=new l.UQe({type:n,formatter:i.Ue(),onChange:function(t){i.BWe({mask:{pattern:"[-]{0,1}0{0,}[.]{0,1}0{0,}"},formatter:t})}});e.create().appendTo(t),i.PYe.xT.push(e)}},{typeId:"number-default"+t,title:(0,c.getSR)().defineColumnDefaultValue,onInitPanel:function(t){i.QYe().appendTo(t)}}]).appendTo(i.PYe)},E.prototype.YYe=function(){var n,i,o,u,n=this,i=n.xT[0];i.resetDisable(),o={formattingSelect:j.keyword_null},u=n.$Ye(o,"value"),n.qYe([{typeId:"lookup",title:(0,c.getSR)().defineColumnConfiguration,onInitPanel:function(t){var e=new I.iYe({getLookup:function(t){return n.LEt.getLookup(t)},onChange:function(t){o.formattingSelect&&(i.setValue(t),n.AYe.value=t,u())}});e.create(n.AYe.value||n.xYe.value).appendTo(t),n.PYe.xT.push(e)}},{typeId:"lookup-formatting",title:(0,c.getSR)().defineColumnFormatting,onInitPanel:function(t){o.formattingSelect=new m.kQe({formatter:n.Ue(),onChange:function(t){n.BWe({formatter:t})}}),o.formattingSelect.create().appendTo(t),u(),n.PYe.xT.push(o.formattingSelect)}}]).appendTo(n.PYe)},E.prototype.$Ye=function(e,n){var i,o,u,r,t,i=this,o=i.PYe.xT,u=o.length,r=function(t){t===o[u].isDisable(1)&&o[u].resetDisable(1)},t;return function(){var t,t,t,t=a(a({},i.xYe),i.AYe),t=t[n]&&i.LEt.getSampleValue(t),t=e.formattingSelect&&e.formattingSelect.createFormatting(t);r(t)}},E.prototype.WYe=function(){var n,i,o,n=this;n.AYe.dataType="formula",i={formattingSelect:j.keyword_null},o=n.$Ye(i,"formula"),n.qYe([{typeId:"formula",title:(0,c.getSR)().defineColumnFormula,onInitPanel:function(t){var e=new N.GQe({validate:{validating:function(t){return!(0,D.isNullOrEmpty)(t)&&"="!==t||{success:!1,errorMessage:(0,c.getSR)().defineColumnRequired}}},getColumnFields:function(){return n.LEt.getColumnFields()},onChange:function(t){i.formattingSelect&&(n.AYe.formula=t,o())}});e.create().appendTo(t),e.setValue(n.AYe.formula||n.xYe.formula),n.PYe.xT.push(e)}},{typeId:"formula-formatting",title:(0,c.getSR)().defineColumnFormatting,onInitPanel:function(t){i.formattingSelect=new m.kQe({formatter:n.Ue(),onChange:function(t){n.BWe({formatter:t})}}),i.formattingSelect.create().appendTo(t),o(),n.PYe.xT.push(i.formattingSelect)}}]).appendTo(n.PYe)},E.prototype.FYe=function(){var n,i,o,u,n=this;n.AYe.dataType="string",(i=n.BYe())&&"hyperlink"===i.type&&(o=i.linkColor,u=i.visitedLinkColor),n.qYe([{typeId:"url",title:(0,c.getSR)().defineColumnConfiguration,onInitPanel:function(t){var e=new S.eWe({linkColor:o,visitedLinkColor:u,onChange:function(t){n.BWe({cellType:{type:"hyperlink",linkColor:t.linkColor,visitedLinkColor:t.visitedLinkColor,target:null==i?void 0:i.target}})}});e.create().appendTo(t),n.PYe.xT.push(e)}},{typeId:"url-default",title:(0,c.getSR)().defineColumnDefaultValue,onInitPanel:function(t){n.QYe().appendTo(t)}}]).appendTo(n.PYe)},E.prototype.HYe=function(){this.nWe("phone","1 \\(0{3}\\) 0{3}-0{4}")},E.prototype.VYe=function(){this.nWe("email","[a0._\\-]{1,}@[a0._\\-]{1,}.(com|cn|gov|edu)")},E.prototype.nWe=function(t,n){var i,o,i=this;i.AYe.dataType="string",o=i.oWe(),i.qYe([{typeId:t,title:(0,c.getSR)().defineColumnConfiguration,onInitPanel:function(t){var e,e,e=new C.sYe({pattern:null!=(e=o.pattern)?e:n,placeholder:o.placeholder,excludeLiteral:o.excludeLiteral,excludePlaceholder:o.excludePlaceholder,onChange:function(t){i.BWe({mask:t})}});e.create().appendTo(t),i.PYe.xT.push(e)}},{typeId:t+"-default",title:(0,c.getSR)().defineColumnDefaultValue,onInitPanel:function(t){i.QYe().appendTo(t)}}]).appendTo(i.PYe)},E.prototype.oWe=function(){var t=this;return t.AYe&&t.AYe.style&&t.AYe.style.mask?t.AYe.style.mask:t.xYe&&t.xYe.style&&t.xYe.style.mask?t.xYe.style.mask:{}},E.prototype.BQe=function(t,e){var n=this;n.qYe(n.uWe(t,e)).appendTo(n.PYe)},E.prototype.uWe=function(n,t){var i,e,o,u,i=this,e=t?"-"+t:"";return i.AYe.dataType="date",t!==s.ColumnTypes.CreatedTime.toLowerCase()&&t!==s.ColumnTypes.ModifiedTime.toLowerCase()||(i.AYe.readonly=!0,i.AYe.trigger={formula:"=NOW()",when:t===s.ColumnTypes.CreatedTime.toLowerCase()?"onNew":"onNewAndUpdate"}),t===s.ColumnTypes.CreatedTime.toLowerCase()&&(i.AYe.defaultValue="=NOW()"),o=[],t===s.ColumnTypes.Date.toLowerCase()?(u=i.GYe(),o.push({typeId:"date-time-piker"+e,title:(0,c.getSR)().defineColumnConfiguration,onInitPanel:function(t){var e=new d.yQe({type:n,calendarPage:null==u?void 0:u.calendarPage,showTime:null==u?void 0:u.showTime,showDateRange:null==u?void 0:u.showDateRange,startDay:null==u?void 0:u.startDay,showBuiltInDateRange:null==u?void 0:u.showBuiltInDateRange,onChange:function(t){i.BWe({cellButtons:[{imageType:r.ButtonImageType[r.ButtonImageType.dropdown],command:"openDateTimePicker",useButtonStyle:!1,visibility:r.ButtonVisibility[r.ButtonVisibility.always],buttonBackColor:"transparent"}],dropDowns:[{type:r.DropDownType[r.DropDownType.dateTimePicker],option:{startDay:t.startDay,calendarPage:t.calendarPage,showTime:t.showTime,showDateRange:null==u?void 0:u.showDateRange,showBuiltInDateRange:null==u?void 0:u.showBuiltInDateRange}}]})}});e.create().appendTo(t),i.PYe.xT.push(e)}})):t===s.ColumnTypes.ModifiedTime.toLowerCase()&&o.push({typeId:"modified-fields"+e,title:(0,c.getSR)().defineColumnConfiguration,onInitPanel:function(t){var e=new h.dYe({fields:i.RYe(),getTriggerFields:function(){return i.LEt.getTriggerFields()},onChange:function(t){i.AYe.trigger.fields=t.fields}});e.create().appendTo(t),i.PYe.xT.push(e)}}),o.push({typeId:"date-formatting"+e,title:(0,c.getSR)().defineColumnFormatting,onInitPanel:function(t){var e=new f.dQe({formatter:i.Ue(),onChange:function(t){i.BWe({formatter:t.formatter})}});e.create().appendTo(t),i.PYe.xT.push(e)}}),o},E.prototype.t=function(){var t=this,e=t.Ue(),t,n=t.AYe.value||t.xYe.value,t=e?(0,p.parseBarCodeOptions)(t.LEt.getSheet(),e):(0,p.getDefaultBarcodeOptions)(n);return t},E.prototype.LYe=function(t){var e=this;t.value=(0,p.getFieldRef)(e.AYe.value||e.xYe.value),e.BWe({formatter:(0,p.createBarcodeFormula)(e.LEt.getSheet(),t)})},E.prototype._Ye=function(){var n=this,i=n.t(),o={container:j.keyword_null};n.Ue()||n.LYe(i),n.qYe([{typeId:"barcode-base",title:(0,c.getSR)().defineColumnConfiguration,onInitPanel:function(t){var e=new w.IUe({option:i,onChange:function(t,e){n.LYe(t),e&&o.container.reset()}});e.create().appendTo(t),n.PYe.xT.push(e)}},{typeId:"barcode-options",title:(0,c.getSR)().defineColumnOthers,onInitPanel:function(t){var t=o.container=new x.LUe({panel:t,option:i,onChange:function(t){n.LYe(t)}});t.create(),n.PYe.xT.push(t)}},{typeId:"barcode-default",title:(0,c.getSR)().defineColumnDefaultValue,onInitPanel:function(t){n.QYe().appendTo(t)}}]).appendTo(n.PYe)},E.prototype.JYe=function(){var n,i,o,n=this,i={type:"fileUpload"},o=n.BYe();n.qYe([{typeId:"attachment",title:(0,c.getSR)().defineColumnConfiguration,onInitPanel:function(t){var e=new g.UZe({fileType:null==o?void 0:o.accept,maxSize:null==o?void 0:o.maxSize,preview:null==o?void 0:o.isPreviewEnabled,download:null==o?void 0:o.isDownloadEnabled,clear:null==o?void 0:o.isClearEnabled,onChange:function(t){i.accept=t.fileType,i.maxSize=t.maxSize,i.isPreviewEnabled=!!t.preview,i.isDownloadEnabled=!!t.download,i.isClearEnabled=!!t.clear,n.BWe({hAlign:r.HorizontalAlign[r.HorizontalAlign.center],vAlign:r.VerticalAlign[r.VerticalAlign.center],cellType:i})}});e.create().appendTo(t),n.PYe.xT.push(e)}},{typeId:"attachment-margin",title:(0,c.getSR)().columnTypeAttachmentMarginGroup,onInitPanel:function(t){var e=new b.OZe({marginLeft:null==o?void 0:o.marginLeft,marginRight:null==o?void 0:o.marginRight,marginTop:null==o?void 0:o.marginTop,marginBottom:null==o?void 0:o.marginBottom,onChange:function(t){i.marginLeft=t.marginLeft,i.marginRight=t.marginRight,i.marginTop=t.marginTop,i.marginBottom=t.marginBottom}});e.create().appendTo(t),n.PYe.xT.push(e)}}]).appendTo(n.PYe)},E.prototype.XYe=function(){var n,i,o,n=this,i={type:"checkbox"};n.AYe.dataType="boolean",o=n.BYe(),n.qYe([{typeId:"checkbox",title:(0,c.getSR)().defineColumnConfiguration,onInitPanel:function(t){var e=new v.WUe({caption:null==o?void 0:o.caption,boxSize:null==o?void 0:o.boxSize,autoBoxSize:"auto"===(null==o?void 0:o.boxSize),onChange:function(t){i.caption=t.caption,i.boxSize=t.boxSize,t.autoBoxSize&&(i.boxSize="auto"),n.BWe({cellType:i})}});e.create().appendTo(t),n.PYe.xT.push(e)}},{typeId:"checkbox-text",title:(0,c.getSR)().columnTypeCheckboxTextGroup,onInitPanel:function(t){var e=new M.UUe({isThreeState:null==o?void 0:o.isThreeState,checkboxTrue:null==o?void 0:o.textTrue,checkboxFalse:null==o?void 0:o.textFalse,checkboxIndeterminate:null==o?void 0:o.textIndeterminate,checkboxAlign:o?M.CheckBoxTextAlign[o.textAlign]:j.keyword_null,onChange:function(t){i.isThreeState=t.isThreeState,i.textTrue=t.checkboxTrue,i.textFalse=t.checkboxFalse,i.textIndeterminate=t.checkboxIndeterminate,i.textAlign=M.CheckBoxTextAlign[t.checkboxAlign]}});e.create().appendTo(t),n.PYe.xT.push(e)}}]).appendTo(n.PYe)},E.prototype.KYe=function(){var n,i,o,n=this,i={type:"combobox"},o=n.BYe();n.qYe([{typeId:"combobox",title:(0,c.getSR)().defineColumnConfiguration,onInitPanel:function(t){var e=new A.oQe({items:null==o?void 0:o.items,onChange:function(t){i.items=t.items,n.BWe({cellType:i})}});e.create().appendTo(t),n.PYe.xT.push(e)}},{typeId:"combobox-text",title:(0,c.getSR)().columnTypeCheckboxTextGroup,onInitPanel:function(t){var e=new T.qUe({editorValueType:o?y.EditorValueType[o.editorValueType]:j.keyword_null,itemHeight:null==o?void 0:o.itemHeight,editable:null==o?void 0:o.editable,onChange:function(t){i.editorValueType=y.EditorValueType[t.editorValueType],i.itemHeight=t.itemHeight,i.editable=t.editable}});e.create().appendTo(t),n.PYe.xT.push(e)}}]).appendTo(n.PYe)},E.prototype.qYe=function(t){var t=new u.aWe({items:t});return this.PYe.xT.push(t),t.create()},E.prototype.QYe=function(){var n,t,e,t,n=this,t=n.SYe({inputId:"defaultValue",placeholder:(0,c.getSR)().defineColumnDefaultValue,onChange:function(t){var e;"string"===n.AYe.dataType||(0,j.isFormula)(t)||(0,D.isNullOrEmpty)(t)||(e=Number(t),Number.isNaN(e))||(t=e),n.AYe.defaultValue=t}},n.xYe.defaultValue),e=t.input,t=t.elem;return n.PYe.xT.push(e),t},E.prototype.OYe=function(){var t,e,t,e=this.PYe=(0,r.GC$)(L("div"));return e.xT=[],e.addClass("gc-defined-column-type-config-container"),e},E.prototype.Aoe=function(){var t,e,t=this,e=function(t){for(var e,n,i,e=0,n=t;e<n.length;e++)if((i=n[e]).validate&&!i.validate())return i.setFocus&&i.setFocus(),!1;return!0};return!!e(t.xT)&&!!e(t.PYe.xT)},E.prototype.EYe=function(){var u,t,e,n,i,o,i,u=this,t=(0,r.GC$)(L("div"));return t.addClass("gc-defined-column-footer-container"),(e=(0,r.GC$)(L("div"))).addClass("gc-defined-column-footer-container-buttons"),e.appendTo(t),(n=(0,r.GC$)(L("button"))).addClass("gc-defined-column-footer-container-button ui-button ui-state-default ui-corner-all btn btn-default"),(i=(0,r.GC$)(L("span"))).appendTo(n),i.text((0,c.getSR)().cancel),n.bind("click",function(){u.close()}),u.xT.push(n),(o=(0,r.GC$)(L("button"))).addClass("gc-defined-column-footer-container-button gc-defined-column-footer-container-button-primary ui-button ui-state-default ui-corner-all btn btn-default"),o.appendTo(e),n.appendTo(e),(i=(0,r.GC$)(L("span"))).appendTo(o),i.text((0,c.getSR)().submit),o.bind("click",function(){var t,e,n,i,o,o,t=a({},u.AYe);if(u.Aoe()){if(e=t.type===s.ColumnTypes.Formula){if(!(0,D.isNullOrEmpty)(t.value)&&(t.name=t.value,(0,j.isFormula)(t.value)))return;t.value=t.formula,(0,D.isNullOrEmpty)(t.name)&&delete t.dataType,delete t.formula}(i=0<(n=Object.keys(u.xYe)).length)&&(u.xYe.value===t.value||(0,D.isNullOrEmpty)(t.value))||(o=u.LEt.getColumnBy(t.value))&&!1===o.visible&&(u.xYe=a({},o),u.xYe.visible=!0,i=0<(n=Object.keys(u.xYe)).length),i?(e&&(0,D.isNullOrEmpty)(t.value)&&(t.value=u.xYe.formula),t.value=t.value||u.xYe.value,t.type=t.type||u.xYe.type,t.caption=t.caption||u.xYe.caption,o=a({},u.xYe),(0,D.isNullOrEmpty)(o.formula)||(o.value=o.formula,delete o.formula),e&&(0,D.isNullOrEmpty)(t.name)&&"formula"===t.dataType&&!(0,D.isNullOrEmpty)(o.name)&&"formula"===o.dataType||((0,c.copyOriginalColumnPropertiesToCurrentColumn)(t,o,n),u.LEt.onSaving({cmd:"ModifyColumn",originalColumn:o,column:t}))):t.value&&u.LEt.onSaving({cmd:"DefineColumn",column:t})}}),u.xT.push(o),n.bind("mouseover",function(){o.addClass("ui-state-hover")}).bind("mouseout",function(){o.removeClass("ui-state-hover")}),o.bind("mouseover",function(){o.addClass("ui-state-hover")}).bind("mouseout",function(){o.removeClass("ui-state-hover")}),t},E.prototype._hidden=function(){var t,e;this.Wc.css(["visibility","display"],["hidden","block"])},E.prototype.$c=function(t){var e,n;this.Wc.css(["visibility"],["visible"]),k.prototype.$c.call(this,t)},E.prototype.MUe=function(t){for(var e,n,i,e=0,n=t;e<n.length;e++)(i=n[e]).dispose?i.dispose():i.unbind&&(i.unbind("click"),i.unbind("mouseover"),i.unbind("mouseout"));return[]},E.prototype.L0=function(){var t=this;t.xT=t.MUe(t.xT),t.PYe.xT=t.MUe(t.PYe.xT),t.PYe.empty(),t.PYe=j.keyword_null,(0,r.GC$)(j.DOCUMENT).unbind(z)},E.prototype.close=function(){var t=this;t._hidden(),t.L0(),k.prototype.close.call(this),t.LEt.onClosed()},E.prototype.rQ=function(t,e){var n=this,i=n.Wc;n.LF(),i.css(["left","top"],[t,e]),i.css("max-height",Math.min(window.innerHeight,window.innerHeight-e)+"px"),n.LEt.onOpening(),n.$c(),n.if(),setTimeout(function(){n.Wc.focus(),n.xT[0].setFocus()}),n.LEt.onOpened()},t.TZe=E},"./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-preview.js":function(t,e,n){var i,o,u,r,n,a,c;function s(t){var e;this.LEt=t}Object.defineProperty(e,"__esModule",{value:!0}),e.pQe=void 0,i=n("Core"),o=n("./dist/plugins/tableSheet/tableSheet.js"),u=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-divider.js"),r=null,n=i.mt,a=n.En,s.prototype.create=function(){var t;return this.jQe()},s.prototype.jQe=function(){var t,e,n,t,t=this,e=(0,i.GC$)(a("div"));return e.addClass("gc-defined-column-number-formatting-preview-container"),(n=t.rWe=new u.LQe({text:(0,o.getSR)().columnTypeNumberFormattingSample})).create().appendTo(e),(t=t.wQe=(0,i.GC$)(a("div"))).appendTo(e),t.addClass("gc-defined-column-number-formatting-preview-text"),e},s.prototype.setText=function(t){var e;this.wQe.text(t)},s.prototype.dispose=function(){var t=this;t.wQe=r,t.rWe.dispose(),t.rWe=r},e.pQe=s},"./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-select-types.js":function(t,e,n){var a,i,u,o,c,n,s,r;function l(t){this.itemContainers=[];var e=this;e.LEt=t,e.jrt=e.RWe=c.keyword_null}Object.defineProperty(e,"__esModule",{value:!0}),e.ZYe=void 0,a=n("Core"),i=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-input.js"),u=n("./dist/plugins/tableSheet/tableSheet.js"),o=n("DataManager"),c=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-utils.js"),n=a.mt,s=n.En,l.prototype.cWe=function(t){var e=this;return{inputId:"type-select",type:"text",placeholder:(0,u.getSR)().defineColumnType,isReadOnly:!!t,label:t?{iconClass:t,suffixIconClass:"gc-defined-column-type-icon-chevrondown"}:{iconClass:"gc-defined-column-type-icon-magnifyingglass",suffixIconClass:"gc-defined-column-type-icon-x",onSuffixClick:function(t){(e.jrt||e.RWe)&&(0,o.isNullOrEmpty)(e.XKt)?(e.jrt=e.jrt||e.RWe,e.sWe(e.jrt,t)):e.lWe.setValue()}},onChange:t?c.keyword_null:function(t){e.fWe(t)},onClick:t?function(t){e.lWe.setOptions(e.cWe()),e.lWe.setValue(),e.RWe=e.jrt,e.jrt=c.keyword_null,e.LEt.onChange({name:c.keyword_null},t)}:c.keyword_null}},l.prototype.create=function(){var t,e,n,e,t=this,e=t.LEt.items,n=(0,a.GC$)(s("div"));return n.addClass("gc-defined-column-type-select-container"),n.attr("role","combobox"),n.attr("aria-autocomplete","list"),n.attr("aria-controls","gc-defined-column-types-container"),t.lWe=new i._Ze(t.cWe()),t.lWe.create().appendTo(n),(0,c.isNullOrUndefined)(t.jrt)&&e&&0<e.length&&t.dWe().appendTo(n),(e=(0,a.GC$)(s("div"))).addClass("gc-defined-column-field-label-validation-container"),e.appendTo(n),n},l.prototype.dWe=function(){var t,e,n,t=this,e=t.LEt.items,n=t.hWe=(0,a.GC$)(s("div"));return n.addClass("gc-defined-column-types-container"),n.attr("id","gc-defined-column-types-container"),n.attr("role","listbox"),t.tyn(e),n},l.prototype.tyn=function(t){for(var i,o,e,n,u,r,i=this,o=i.hWe,e=function(e){var t,n,n,t=(0,a.GC$)(s("div"));i.itemContainers.push(t),t.addClass("gc-defined-column-field-type-container"),t.attr("role","option"),(0,c.isFunction)(i.LEt.onChange)&&t.bind("click",function(t){i.jrt=e,i.sWe(e,t)}),(n=(0,a.GC$)(s("div"))).addClass("gc-defined-column-field-type-icon "+e.iconClass),n.appendTo(t),(n=(0,a.GC$)(s("div"))).addClass("gc-defined-column-field-type-text"),n.text(e.text||e.name),n.appendTo(t),t.appendTo(o)},n=0,u=t;n<u.length;n++)e(r=u[n])},l.prototype.setValue=function(e){var t,n,t=this;!(0,c.isNullOrUndefined)(e)&&(n=t.LEt.items.find(function(t){return t.name===e}))?(t.jrt=n,t.sWe(n)):t.lWe.setValue()},l.prototype.sWe=function(t,e){var n=this;n.isValid()||n.resetValid(n.validate()),n.lWe.setOptions(n.cWe(t.iconClass)),n.lWe.setValue(t.text||t.name),n.d5(),n.LEt.onChange(t,e)},l.prototype.d5=function(){var t,e,n,i,t=this;if(t.hWe.empty(),(0,c.isFunction)(t.LEt.onChange))for(e=0,n=t.itemContainers;e<n.length;e++)(i=n[e]).unbind("click")},l.prototype.fWe=function(e){var t,n,n,t=this,n=t.LEt.items;t.XKt=e,t.d5(),(0,c.isNullOrUndefined)(e)||""===e?t.tyn(n):(e=e.toLowerCase(),n=n.filter(function(t){return-1<(t.text||t.name).toLowerCase().indexOf(e)}),t.tyn(n))},l.prototype.validate=function(){var t=this;return(0,c.isNullOrUndefined)(t.jrt)?(t.resetValid(!1,{required:!1}),!1):(t.resetValid(!0),!0)},l.prototype.resetValid=function(t,e){var n,i,n,o,o,i,n=null==(n=this.hWe)?void 0:n.parent();n&&(o=n.find(".gc-defined-column-field-label-validation-container"),o=(0,a.GC$)(o[o.length-1]),t?(n.removeClass("gc-define-column-invalid"),n.attr("aria-invalid","false"),o.hide(),o.empty()):n.hasClass("gc-define-column-invalid")||(n.addClass("gc-define-column-invalid"),n.attr("aria-invalid","true"),!1===e.required&&o.html((0,u.getSR)().defineColumnRequired),o.show()))},l.prototype.isValid=function(){var t,e,t,e,t=null==(t=this.hWe)?void 0:t.parent();return t&&!t.hasClass("gc-define-column-invalid")},l.prototype.setFocus=function(){this.lWe.setFocus()},l.prototype.dispose=function(){var t=this;t.lWe.dispose(),t.lWe=c.keyword_null,t.d5(),t.hWe=c.keyword_null},e.ZYe=l},"./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-select.js":function(t,e,n){var i,u,o,r,a,n,c,s;function l(){var t,e,t=Date.now().toString(),e=Math.floor(1e3*Math.random()).toString().padStart(3,"0")}function f(t){var e=this;e.LEt=t,e.gWe=a.keyword_null,e.bWe="select-input-"+t.inputId||0}i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,n,i,o,n=1,i=arguments.length;n<i;n++)for(o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},Object.defineProperty(e,"__esModule",{value:!0}),e.GZe=void 0,u=n("Core"),o=n("DataManager"),r=n("./dist/plugins/tableSheet/tableSheet.js"),a=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-utils.js"),n=u.mt,c=n.En,Object.defineProperty(f.prototype,"value",{get:function(){var t;return null==(t=this.gWe)?void 0:t.value},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"index",{get:function(){var e=this;return this.EE().findIndex(function(t){return t.value===e.value})},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"item",{get:function(){return this.gWe},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"container",{get:function(){return this._Ue},enumerable:!1,configurable:!0}),f.prototype.EE=function(){var t,e=this.LEt,n=e.stickItem,e=e.items;return n?[n].concat(e):e},f.prototype.create=function(){var n,t,e,i,o,i,o,t,t,n=this,t=n.LEt,e=n._Ue=(0,u.GC$)(c("div"));return e.addClass("gc-defined-column-field-item-container gc-defined-column-select-box-container"),t.label&&t.label.text&&((i=(0,u.GC$)(c("div"))).addClass("gc-defined-column-field-label-container"),i.appendTo(e),(o=(0,u.GC$)(c("label"))).addClass("gc-defined-column-field-label-container-label-text"),o.attr("for","gc-defined-column-input-"+n.bWe),o.appendTo(i),o.text(t.label.text)),(i=(0,u.GC$)(c("div"))).addClass("gc-defined-column-select-container"),n.isDisable()&&i.addClass("gc-defined-column-disabled"),n.isVisible()||e.addClass("gc-defined-column-hide"),i.attr("role","combobox"),i.attr("aria-autocomplete","list"),i.attr("aria-controls","gc-defined-column-select-list-container"),i.attr("aria-disabled",n.isDisable()?"true":"false"),i.appendTo(e),(o=n.vWe=(0,a.createDCElement)("sjs-select")).attr("id","gc-defined-column-input-"+t.inputId),(0,a.isNullOrUndefined)(t.defaultValue)||o.attr("value",t.defaultValue),n.LEt.enableSearch&&o.attr("showSearch",!0),o.attr("no-result-tip",(0,r.getSR)().defineColumnNoResults),(t=n.EE())&&0<t.length&&o.attr("items",JSON.stringify(n.EE().map(function(t){return{value:t.value,label:t.text||t.value}}))),o.bind("input",function(t){var e,t,e=t.target.value;(0,a.isNullOrUndefined)(t.target.value)&&(e=a.keyword_null),t=n.EE().find(function(t){return((0,a.isNullOrUndefined)(t.value)?a.keyword_null:t.value)===e}),n.gWe=t,n.LEt.onChange(n.gWe),n.isValid()||n.resetValid(n.validate())}),o.appendTo(i),(t=(0,u.GC$)(c("div"))).addClass("gc-defined-column-field-label-validation-container"),t.appendTo(e),t.hide(),e},f.prototype.setValue=function(e,t){var n=this;n.setIndex(n.EE().findIndex(function(t){return t.value===e}),t)},f.prototype.setIndex=function(t,e){var n,t,n=this;!(0,a.isNullOrUndefined)(t)&&-1<t&&(t=n.EE()[t])?(n.gWe=t,n.MWe(t,null==e||e)):n.MWe(a.keyword_null)},f.prototype.setOptions=function(t){var e,n,e=this,n=e.LEt.items!==t.items;e.LEt=i(i({},e.LEt),t),n&&e.vWe.setItems(e.EE().map(function(t){return{value:t.value,label:t.text||t.value}})),e.setValue()},f.prototype.MWe=function(t,e){var n=this;t?n.vWe.val(t.value):(n.gWe=a.keyword_null,n.vWe.val(a.keyword_null)),e&&n.LEt.onChange(t)},f.prototype.isDisable=function(){return!1===this.LEt.enable},f.prototype.resetDisable=function(){var t=this,e=t.isDisable(),n=t.vWe.parent();(t.LEt.enable=e)?n.removeClass("gc-defined-column-disabled"):n.addClass("gc-defined-column-disabled"),n.attr("aria-disabled",e?"false":"true")},f.prototype.isVisible=function(){return!0!==this.LEt.hide},f.prototype.resetVisible=function(){var t=this,e=t.isVisible(),n=t._Ue;(t.LEt.hide=e)?n.addClass("gc-defined-column-hide"):n.removeClass("gc-defined-column-hide"),n.attr("aria-hide",e?"true":"false")},f.prototype.validate=function(){var t,e,n,n,t=this,e=t.LEt.validate,n=!t.isDisable();if(e&&n){if(e.required&&(0,o.isNullOrEmpty)(t.value))return t.resetValid(!1,{required:!1}),!1;if(e.validating)if("boolean"==typeof(n=e.validating(t.value))){if(!n)return t.resetValid(!1),!1}else if(!n.success)return t.resetValid(!1,n),!1}return t.resetValid(!0),!0},f.prototype.resetValid=function(t,e){var n,i,o,n,n=this,i=n.vWe,o=i.parent(),n=(0,u.GC$)(n._Ue.find(".gc-defined-column-field-label-validation-container")[0]);t?(o.removeClass("gc-define-column-invalid"),i.removeClass("gc-define-column-invalid"),i.attr("aria-invalid","false"),n.hide(),n.empty()):o.hasClass("gc-define-column-invalid")||(o.addClass("gc-define-column-invalid"),i.addClass("gc-define-column-invalid"),i.attr("aria-invalid","true"),!1===e.required?n.html((0,r.getSR)().defineColumnRequired):e.errorMessage&&n.html(e.errorMessage),e&&n.show())},f.prototype.isValid=function(){var t,e;return!this.vWe.parent().hasClass("gc-define-column-invalid")},f.prototype.dispose=function(t){var e=this;e.vWe.unbind("input"),e.vWe=a.keyword_null,t&&e._Ue.remove(),e._Ue=a.keyword_null},e.GZe=f},"./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-tabs.js":function(t,e,n){var l,n,f,i;function o(t){var e;this.itemContainers=[],this.LEt=t}Object.defineProperty(e,"__esModule",{value:!0}),e.aWe=void 0,n=(l=n("Core")).mt,f=n.En,o.prototype.create=function(){var t,e,t=this,e=(0,l.GC$)(f("div"));return e.addClass("gc-defined-column-tab-list-container"),t.qYe().appendTo(e),t.IWe().appendTo(e),t.mWe().appendTo(e),e},o.prototype.qYe=function(){var s,t,e,n,i,s=this,t=s.LEt.items,e=(0,l.GC$)(f("div"));for(e.addClass("gc-defined-column-tab-list-items-container"),e.attr("role","tablist"),n=function(r){var a,c,a=t[r],c=(0,l.GC$)(f("div"));s.itemContainers.push([c]),c.addClass("gc-defined-column-tab-item-container"),c.attr("role","tab"),c.attr("tabindex",0),c.attr("id","gc-defined-column-tab-"+a.typeId),c.attr("aria-selected","false"),c.attr("aria-controls","gc-defined-column-tab-panel-"+a.typeId),c.text(a.title),0===r&&(c.attr("aria-selected","true"),c.addClass("gc-defined-column-tab-item-container-selected")),c.bind("click",function(t){var e,n,i,o,i,u;if(!1!==s.itemContainers[r][2]){for(e=0,n=s.itemContainers;e<n.length;e++)o=(i=n[e])[0],i=i[1],o.attr("aria-selected","false"),o.removeClass("gc-defined-column-tab-item-container-selected"),i.removeClass("gc-defined-column-tab-panel-container-selected");c.attr("aria-selected","true"),c.addClass("gc-defined-column-tab-item-container-selected"),(u=s.itemContainers[r][1]).addClass("gc-defined-column-tab-panel-container-selected"),a.onSelect&&a.onSelect(a,t)}}),c.appendTo(e)},i=0;i<t.length;i++)n(i);return e},o.prototype.mWe=function(){var t,e,n,i,o,u,t=this,e=t.LEt.items,n=(0,l.GC$)(f("div"));for(n.addClass("gc-defined-column-tab-panels-container"),i=0;i<e.length;i++)o=e[i],u=(0,l.GC$)(f("div")),(t.itemContainers[i][1]=u).addClass("gc-defined-column-tab-panel-container"),u.attr("role","tabpanel"),u.attr("id","gc-defined-column-tab-panel-"+o.typeId),u.attr("aria-labelledby","gc-defined-column-tab-"+o.typeId),0===i&&u.addClass("gc-defined-column-tab-panel-container-selected"),o.onInitPanel&&o.onInitPanel(u),u.appendTo(n);return n},o.prototype.IWe=function(){var t=(0,l.GC$)(f("div"));return t.addClass("gc-defined-column-tab-list-break-line"),t},o.prototype.isDisable=function(t){return!1===this.itemContainers[t][2]},o.prototype.resetDisable=function(t){var e=this,n=e.isDisable(t),i=e.itemContainers[t][0];(e.itemContainers[t][2]=n)?i.removeClass("gc-defined-column-disabled"):i.addClass("gc-defined-column-disabled"),i.attr("aria-disabled",n?"false":"true")},o.prototype.d5=function(){for(var t,e,t=this,e=0;e<t.LEt.items.length;e++)t.itemContainers[e]&&t.itemContainers[e][0].unbind("click");t.itemContainers=[]},o.prototype.dispose=function(){var t;this.d5()},e.aWe=o},"./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-url.js":function(t,e,n){var r,a,c,i,s,l,n,f,o;function u(t){var e;this.LEt=t}Object.defineProperty(e,"__esModule",{value:!0}),e.eWe=void 0,r=n("Core"),a=n("./dist/plugins/tableSheet/tableSheet.js"),c=n("./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-input.js"),i=null,s="#0066cc",l="#3399ff",n=r.mt,f=n.En,u.prototype.create=function(){var t;return this.ZX()},u.prototype.ZX=function(){var e,t,n,i,o,u,e=this,t=e.LEt,n=t.onChange,i=(0,r.GC$)(f("div"));return i.addClass("gc-defined-column-url-container"),(o=e.NWe=new c._Ze({inputId:"linkColor",type:"color",defaultValue:t.linkColor||s,label:{text:(0,a.getSR)().columnTypeUrlLabel.linkColor},onChange:function(t){n&&n({linkColor:t||s,visitedLinkColor:e.DWe.value||l})}})).create().appendTo(i),(u=e.DWe=new c._Ze({inputId:"visitedLinkColor",type:"color",defaultValue:t.visitedLinkColor||l,label:{text:(0,a.getSR)().columnTypeUrlLabel.visitedLinkColor},onChange:function(t){n&&n({linkColor:e.NWe.value||s,visitedLinkColor:t||l})}})).create().appendTo(i),n&&n({linkColor:e.NWe.value||s,visitedLinkColor:e.DWe.value||l}),i},u.prototype.dispose=function(){var t=this;t.NWe.dispose(),t.NWe=i,t.DWe.dispose(),t.DWe=i},e.eWe=u},"./dist/plugins/tableSheet/tablesheet-define-columns/tablesheet-define-column-utils.js":function(t,u,e){var n,r,e,i;function o(t){return"boolean"==typeof t}function a(t){return"string"==typeof t}function c(t){return t&&"="===t[0]}function s(t){return t&&-1<t.indexOf(".")}function l(t){return"number"==typeof t}function f(t){return n.Common.ct.W0(t)}function d(t){return"function"==typeof t}function h(t,e){var t=t.get(0);b(t)?t.r_e():t.dispatchEvent(new Event(e))}function g(t){return t&&-1<t.indexOf("sjs-")}function b(t){return g(t.nodeName.toLowerCase())}function v(t){var t=t.get(0);return b(t)?t.shadowRoot&&t.shadowRoot.querySelector("input"):t}function M(t,e){var n,i,o,n=(0,r.GC$)(t,e);return b(t)&&(n.focus=function(){n.get(0).ZS()},n.setItems=function(t){t&&0<t.length&&n.attr("items",JSON.stringify(t));try{n.get(0)._De(t)}catch(t){}},n.val=function(t){var e=n.get(0);if(!arguments.length)return e.Sl();try{!(0,u.isNullOrUndefined)(e.getAttribute("value"))||e.shadowRoot&&!(0,u.isNullOrUndefined)(e.shadowRoot.innerHTML)&&""!==e.shadowRoot.innerHTML?e.Kbt(t):e.y4=t}catch(t){}(0,u.isNullOrUndefined)(t)||e.setAttribute("value","string"==typeof t?t:""+t)},i=n.bind.bind(n),n.bind=function(t,e,o){void 0===o&&(o=e,e=u.keyword_undefined),"input"===t?i(t="sjs-value-change",e,function(t){var e=!1,n,i=!1;(0,u.isNullOrUndefined)(t.target)?(e=!0,t.target={value:t.detail}):t.target.value!==t.detail&&(i=!0,n=t.target.value,t.target.value=t.detail),o(t),i&&(t.target.value=n),e&&delete t.target}):i(t,e,o)},o=n.unbind.bind(n),n.unbind=function(t){o(t="input"===t?"sjs-value-change":t)}),n}function I(t){return M(i(t))}function m(t){return D(t,!0)}function N(t){return D(t,!1)}function D(t,e){var n,i,o,u,i,r,n={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},i=new RegExp("(?:&|<|>|\"|'|`)","g"),o={"&":"&","<":"<",">":">",""":'"',"'":"'","`":"`"},u=new RegExp("(?:&|<|>|"|'|`)","g"),i=e?i:u,r=e?n:o;return i.test(t)?t.replace(i,function(t){return r[t]}):t}Object.defineProperty(u,"__esModule",{value:!0}),u.dI=u.j0=u.createDCElement=u.DC$=u.getSJSInput=u.isSJSElem=u.isSJSComponent=u.triggerEvent=u.isFunction=u.isDate=u.isNumber=u.isRelation=u.isFormula=u.isString=u.isBoolean=u.keyword_undefined=u.keyword_null=u.cloneObject=u.isNullOrUndefined=u.DOCUMENT=void 0,n=e("Common"),r=e("Core"),u.DOCUMENT=document,e=n.Common.lt,i=r.mt.En,u.isNullOrUndefined=e.ht,u.cloneObject=e.tv,u.keyword_null=null,u.keyword_undefined=void 0,u.isBoolean=o,u.isString=a,u.isFormula=c,u.isRelation=s,u.isNumber=l,u.isDate=f,u.isFunction=d,u.triggerEvent=h,u.isSJSComponent=g,u.isSJSElem=b,u.getSJSInput=v,u.DC$=M,u.createDCElement=I,u.j0=m,u.dI=N},"./dist/plugins/tableSheet/tablesheet-filter-dialog.js":function(t,e,n){var i,o,u,Z,n,U,z,G,I,m,N,x,r,D,a,c,s;function l(t,e,n,i,o,u){var t=s.call(this,t,e,n,i,o)||this;return t.jWe=!1,t.vMi=u,t}i=this&&this.__extends||(c=function(t,e){return(c=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}c(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),Object.defineProperty(e,"__esModule",{value:!0}),e.TableSheetFilterDialog=void 0,o=n("Filters"),u=n("Common"),Z=n("./dist/plugins/tableSheet/tablesheet-filter-utils.js"),n=u.Common.lt,U=n.ht,z=n.q8,G=Object.keys,I="null",m="undefined",N=null,x=void 0,r=1e5,D=/((\d{4}|\d{2}|\d{1})[\/\-])(\d{4}|\d{2}|\d{1})[\/\-](\d{4}|\d{2}|\d{1})|((\d{4}|\d{2}|\d{1})[\/\-\s](\d{4}|\d{2}|\d{1}) [0-9]{2}:[0-9]{2}:[0-9]{2})/,s=o.iut,i(l,s),l.prototype.Bst=function(t,e,n,i,o,u,r){var a,c,s,l,f,d,h,g,b,v,M,I,m,c,N,N,D,j,C,w,p,a=this,c=this.vMi,s=c.Mf,l=this.filterButtonInfo.col,f=c.getDataView(),d=f&&f.gLt,h=function(t){return f.uFt(t)},g=this,b;if(g.filterButtonInfo.rowFilter){if(M=0,m=[],c=c.qNi(),(N=(N=f.Dve(t)).value||N.name)&&!c){if((I=h(N))?d&&d.rBt(N)&&I.K$!==d.rBt(N)&&f.eRt([N],!0):f.eRt([N]),I=h(N),U(I))return;v=I.K$,delete I.K$,m=G(I),M=m.length,I.K$=v,g.wTi=g.yTi(f.lFt&&0<f.lFt.length?f.iRt.slice(f.lFt.length):f.iRt)}if(g.Jut=!1,D=s.getCellType(-1,t),j=s.l0(-1,t===l?t:l,"formatter"),c)g.Jut=x,g.mTi(N,t,e,n,i,o,u,r,D,j);else if(1e5<M){for(C=Math.ceil(M/1e5),g.CTi=[],w=1;w<C;w++)p=void 0,p=w===C-1?{startIndex:1e5*w,endIndex:M-1}:{startIndex:1e5*w,endIndex:1e5*(w+1)-1},g.CTi.push(p);g.Yut(!0),g.zTi(I,m,0,99999,t,e,n,i,o,u,r,D,j,v),g.Vut(1e5/M),setTimeout(function(){a.asyncCreateFilterData(I,m,g.CTi,t,e,n,i,o,u,r,D,j,v,M)},0)}else g.zTi(I,m,0,M-1,t,e,n,i,o,u,r,D,j,v)}},l.prototype.mTi=function(a,c,t,e,E,s,l,f,d,h){var n,g,b,v,n,M,i,o,u,r,I,o,m,N,D,j,C,w,p,x,y,A,T,S,z,L,O,k,n=this.vMi,g=this,b={},v=n.getDataView(),n=v.gLt._dataSource.options.schema,i=g.filterButtonInfo.rowFilter,o=i.Mct,I=i.isFiltered(c)&&(0,Z.isSpecificCondition)(i.rrt[c][0],g),o=0===o.length||i.isFiltered(c)&&1===o.length;if(n&&n.columns&&n.columns[a]&&(M=n.columns[a].dataType),m=v.iRt,D=(N=v.bFt()).length,o)i.tAi=N;else{for(u=v.Jce||{},j=v.ife(c),r=G(u).filter(function(t){var e,e;return t!==j&&((e=(e=u[t].options[0])&&void 0!==e.Vce)&&(C=t),!e)}),x=C,y=p=w=0;y<r.length;y++)((A=u[r[y]].count)<w||0===y)&&(w=A,x=r[p=y]);for(L in r.splice(p,1),T=function(t){for(var e=0;e<r.length&&u[r[e]][t];e++);return e===r.length},S=[],z=u[x])T(L)&&(O=+L,Number.isNaN(O)||S.push(O));v.iRt=S,v.yFt(),S=v.iRt,v.iRt=m,D=(N=S).length,i.tAi=S}for(k=function(t){var e,n,e,e,i,o,u,r,e,n=N[t],e=v.getRowData(n,!0,((e={})[a]=!0,e))[a];U(M)&&!U(e)&&(M=typeof e),i=(e=g.LTi(e,b,c,function(){return{row:t,isCheckedInCheckList:!I&&-1<m.indexOf(n),index:n}},d,h,M)).row,o=e.filterData,u=e.filterText,r=e.type,e=e.isCheckedInCheckList,g.Pst({},s,l,i,c,f,!0,o,u,r,e)},y=0;y<D;y++)k(y)},l.prototype.zTi=function(a,c,t,e,s,n,i,l,f,d,h,g,b,v){var o,M,I,u,r,m,N,D,j,C,w,r,p,u,x,y,A,T,S,o=this.vMi,M=this,I={},u=M.filterButtonInfo.rowFilter,r=u.Mct,j=u.isFiltered(s)&&(0,Z.isSpecificCondition)(u.rrt[s][0],M),C=0===r.length||u.isFiltered(s)&&1===r.length;for(C?(u=(w=o.getDataView()).lFt)&&0<u.length&&(D=u.reduce(function(t,e){return t[e]=!0,t},{})):(w=o.getDataView(),m=w.Jce||{},r=w.Dve(s),p=r.isGroup&&z(r._Ft)?w.ife(r._Ft):w.ife(r),N=G(m).filter(function(t){return t!==p})),x=function(t){var e,n;if(U(D))return!0;for(e=a[t],n=0;n<e.length;n++)if(!D[e[n]])return!0;return!1},y=function(t){for(var e,n,i,e=a[t],n=0;n<e.length;n++){for(i=0;i<N.length&&m[N[i]][e[n]];i++);if(i===N.length)return!0}return!1},A=function(t,e){return!!t||(C?x:y)(e)},T=function(t){var e,n,t,i,o,u,r,t,e=c[t],n,t=M.LTi(e,I,s,function(){return M.xTi(a[e],M.wTi)},g,b,v),i=t.row,o=t.filterData,u=t.filterText,r=t.type,t=t.isCheckedInCheckList;M.Pst(l,f,d,i,s,h,!0,o,u,r,!j&&t,A(t,e))},S=t;S<=e;S++)T(S)},l.prototype.LTi=function(t,e,n,i,o,u,r){var a,c,s,l,c,i,f,d,i,h,g,b,v,M,M,a=this.vMi,c=this,s=a.Mf,l="string";return t!==I&&t!==m||(t=N,l="blank"),t&&"string"!==r&&("number"!==r&&"boolean"!==r||(isNaN(parseFloat(t))||(t=parseFloat(t)),l="number"),"object"!==r&&"date"!==r||t.match(D)&&!isNaN(Date.parse(t))&&(t=new Date(t),c.Jut=!0,l="date"),"string"===l)&&(this.jWe=!0),c=t,f=(i=i()).row,d=i.isCheckedInCheckList,i=i.index,("string"!=typeof t||u)&&(h=!1,U(f)&&"string"==typeof u&&a.Mf.parent&&(v=!(b=(g=void 0,Z.isFormulaFormatter)(u))&&(0,Z.hasATWithoutBrackets)(u),(b||v)&&(M=a.Mf.parent.xO(u))&&(h=!0,g=M.getExpression()),h)&&(b?c=a.getDataView().sPt(g,i):v&&(c=a.getDataView().jfe(g,i,(0,Z.getColumnName)(a,n))),U(c)||"object"!=typeof c||(c=U(c._error)?c.toString():c._error)),c=h?c:o.format(t,u,e,{sheet:s,row:f,col:n,sheetArea:3,quotePrefix:null}))&&"string"==typeof c&&(c=c.replace(/\r\n?/g,"\n")),"boolean"===r&&("TRUE"===(M=String(t).toUpperCase())&&(t=!0,c="TRUE"),"FALSE"===M)&&(t=!1,c="FALSE"),{row:f,filterData:t,filterText:c,type:l,isCheckedInCheckList:d}},l.prototype.yTi=function(t){for(var e,n,e=[],n=0;n<t.length;n++)e[t[n]]=n;return e},l.prototype.xTi=function(t,e){for(var n,i,o,o=0;o<t.length;o++)if((i=e[n=t[o]])!==x)return{row:i,isCheckedInCheckList:!0};return{row:e[n=t[0]],isCheckedInCheckList:!1,index:n}},l.prototype.qut=function(){var t,e,n,i,o,u,r,a,c,s,l,f,d,h,g,b,v,t=this.vMi,e=this,n=e.ast.outlineColumn.getCheckStatus(),i=0,o=e._at||e.Dat,u=e.Eat,a=0;if(e.Bat=1===n[0],"add_current"===e.dataSource[0].key&&(i=1),e.Dat=[],c=t.qNi(),s="add_current"===e.dataSource[0].key,c&&s&&e.Bat)for(e.Bat=!1,l=0;l<u.length;l++)1===(f=u[l]).status&&e.Dat.push({text:f.key,value:f.value,type:f.type});for(l=0;l<u.length&&(r=u[l],s||(r.checkedStatus=n[l]),!(a>=o.length));l++)if(r.key===o[a].text){for(a++,d=r.children,h=x,g=0;g<d.length;g++)b=d[g],v=n[i],!1!==b.show&&(i+=1),h=v||h,3!==v&&(b.status=v);2!==h?(e.Dat.push({text:r.key,value:r.value,type:r.type}),c&&(s?1!==h&&e.Dat.pop():e.Dat[e.Dat.length-1].eAi=d[0].level)):e.lst(l,r)}},l.prototype.asyncCreateFilterData=function(t,e,n,i,o,u,r,a,c,s,l,f,d,h){var g,b,v,M,I,m,N,g=this,b=this,v,M;if(this.vMi.Mf.Cut){for(I=new Date,m=new Date;0<n.length&&m-I<=500;)N=n.shift(),b.zTi(t,e,N.startIndex,N.endIndex,i,o,u,r,a,c,s,l,f,d),b.Vut(N.endIndex/h),m=new Date;0<n.length?setTimeout(function(){g.asyncCreateFilterData(t,e,b.CTi,i,o,u,r,a,c,s,l,f,d,h)},0):(b.Lst(o,u,!1,c,s,a,i),b.sut(),b.Yut(!1))}},e.TableSheetFilterDialog=l},"./dist/plugins/tableSheet/tablesheet-filter-utils.js":function(t,e,n){var i,h,o,n,g,u;function r(t){return t instanceof h.Condition}function a(t,e){return r(t)&&!t.art&&!e.jut().isShowSelectCheck}function c(t){return"="===t.charAt(0)}function s(t){var e,n;return{left:t.indexOf("["),right:t.indexOf("]")}}function l(t){var t=s(t),e=t.left,t=t.right;return 0<=e&&e<t}function f(t){return c(t)&&l(t)}function d(t){var e,n;if(f(t=t.trim()))return!0;if(0<=t.indexOf("{{")&&0<=t.indexOf("}}"))for(e=t.split(/{{|}}/),n=0;n<e.length;n++)if(f(e[n].trim()))return!0;return!1}function b(t){var e,n,i,o;if(c(t))for(e=!0,n=0;n<t.length;n++)if(i=t.charAt(n),e&&"@"===i){if("."===(o=t.charAt(n+1))||!o.match(/[\[\s\]]/))return!0}else"["===i?e=!1:"]"===i&&(e=!0);return!1}function v(t,e,n,i,o){var t=t;3!==o||!t.zDi(e)&&!t.vDi(e)||i.locked||M(t,n,i,!0)}function M(t,e,n,i){for(var o,u,r,a,c,s,o,u=t.cNi,r=0;r<u.length;r++)if(0<(a=u[r]).length)for(c=0;c<a.length;c++)if((s=a[c])===e){n.locked=i;break}}function I(t,e){var t=t.getDataView();return t&&t.Dve(e)}function m(t,e){var t,e,t=t.getDataView();if(t)return(e=t.Dve(e)).isGroup&&u(e._Ft)?t.ife(e._Ft):t.ife(e)}function N(t,e){for(var n=0,i=t.length;n<i;n++)if(e(t[n],n,t))return n;return-1}function D(t,e,n){var i,o,u,r,a,c,n,s,l,f,d,n,o,t,o,i=t.expected(),o=t.conType(),u=n&&n.isDateFieldListFilter;if("string"==typeof i&&(i=i.split(String.fromCharCode(160)).join(" ")),t.art&&o===h.ConditionType.textCondition&&(i=t.urt,g(t.urt)||(o=h.ConditionType.dateCondition,u=!0)),o===h.ConditionType.numberCondition)return[{field:e,operator:(r={0:"eq",1:"neq",2:"gt",3:"gte",4:"lt",5:"lte"})[t.compareType()],value:i,ort:u}];if(o===h.ConditionType.cellValueCondition)return[{field:e,operator:(r={0:"eq",1:"neq",2:"gt",3:"gte",4:"lt",5:"lte"})[t.compareType()],value:i,ort:u}];if(o===h.ConditionType.relationCondition)return a=D(t.item1(),e),(c=D(t.item2(),e))[0].relation=(r={0:"or",1:"and"})[t.compareType()],a.concat(c);if(o===h.ConditionType.textCondition)return[{field:e,operator:(r={0:"eq",1:"neq",2:"startswith",3:"doesnotstartwith",4:"endswith",5:"doesnotendwith",6:"contains",7:"doesnotcontain"})[t.compareType()],value:i,ort:u}];if(o===h.ConditionType.dateCondition)switch(n=t.compareType(),c=a=l=s=void 0,f=i.setHours(0,0,0,0),d=i.setHours(23,59,59,999),n){case 0:return s=new h.Condition(h.ConditionType.numberCondition,{compareType:h.GeneralComparisonOperators.greaterThanOrEqualsTo,expected:f}),l=new h.Condition(h.ConditionType.numberCondition,{compareType:h.GeneralComparisonOperators.lessThanOrEqualsTo,expected:d}),a=D(s,e,{isDateFieldListFilter:u}),(c=D(l,e,{isDateFieldListFilter:u}))[0].relation="and",a.concat(c);case 1:return s=new h.Condition(h.ConditionType.numberCondition,{compareType:h.GeneralComparisonOperators.greaterThan,expected:d}),l=new h.Condition(h.ConditionType.numberCondition,{compareType:h.GeneralComparisonOperators.lessThan,expected:f}),a=D(s,e,{isDateFieldListFilter:u}),(c=D(l,e,{isDateFieldListFilter:u}))[0].relation="or",a.concat(c);case 2:return[{field:e,operator:"lt",value:f,ort:u}];case 3:return[{field:e,operator:"lte",value:d,ort:u}];case 4:return[{field:e,operator:"gt",value:d,ort:u}];case 5:return[{field:e,operator:"gte",value:f,ort:u}];default:return[]}else{if(o===h.ConditionType.top10Condition)return[{field:e,operator:(r={0:"top",1:"bottom"})[t.type()],value:i,ort:u}];if(o===h.ConditionType.averageCondition)return[{field:e,operator:(r={0:"above",1:"below"})[t.type()],value:i,ort:u}];if(o===h.ConditionType.dateExCondition)return(n=t.expectTypeId())===h.DateExConditionExpectType.dateOccurring||n===h.DateExConditionExpectType.yearToDate?(d=f=void 0,n===h.DateExConditionExpectType.dateOccurring?(f=(o=t.getExConditionDateScope(i)).from,d=o.to):(f=new Date,d=new Date,f.setMonth(0,1),f.setHours(0,0,0,0),d.setHours(23,59,59,999)),t=new h.Condition(h.ConditionType.dateCondition,{compareType:h.DateCompareType.afterEqualsTo,expected:f}),o=new h.Condition(h.ConditionType.dateCondition,{compareType:h.DateCompareType.beforeEqualsTo,expected:d}),a=D(t,e),(c=D(o,e))[0].relation="and",a.concat(c)):[{field:e,operator:(r={0:"date",1:"year",2:"quarter",3:"month",4:"week",5:"day",6:"yearToDate"})[n],value:i,ort:u}]}return[]}function j(t){var e=t.col,n=t.rowFilter;return!n.Dit(e)&&n.Dit(n.NTi(e))?i(i({},t),{col:n.NTi(e)}):t}i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,n,i,o,n=1,i=arguments.length;n<i;n++)for(o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},Object.defineProperty(e,"__esModule",{value:!0}),e.reuseFilterButtonInfo=e.convertCondition=e.findIndex=e.getColumnName=e.getColumnInfo=e.setInsertedRowCrossStyle=e.hasATWithoutBrackets=e.isFormulaFormatter=e.isSpecificCondition=e.isCondition=void 0,h=n("ConditionalFormatting"),n=(o=n("Common")).Common.lt,g=n.ht,u=n.q8,e.isCondition=r,e.isSpecificCondition=a,e.isFormulaFormatter=d,e.hasATWithoutBrackets=b,e.setInsertedRowCrossStyle=v,e.getColumnInfo=I,e.getColumnName=m,e.findIndex=N,e.convertCondition=D,e.reuseFilterButtonInfo=j},"./dist/plugins/tableSheet/tablesheet-filter.js":function(t,e,n){var i,b,o,u,r,d,v,h,s,n,M,g,f,I,a,c,l,m,N;function D(t,e){var t=N.call(this,t)||this;return t.sTi={},t.MTi={},t.ITi=!1,t.gTi=0,t.act=!1,t.CWe=e,t}i=this&&this.__extends||(m=function(t,e){return(m=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}m(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),b=this&&this.__assign||function(){return(b=Object.assign||function(t){for(var e,n,i,o,n=1,i=arguments.length;n<i;n++)for(o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},Object.defineProperty(e,"__esModule",{value:!0}),e.GroupHideRowFilter=void 0,o=n("Common"),u=n("Filters"),r=n("Core"),d=n("ConditionalFormatting"),v=n("./dist/plugins/tableSheet/tableSheet-undo.js"),h=n("./dist/plugins/tableSheet/tablesheet-filter-utils.js"),s=n("./dist/plugins/tableSheet/tablesheet-filter-dialog.js"),n=o.Common.lt,M=n.ht,g=n.q8,f=null,I=void 0,a=-1,c=-2,N=u.HideRowFilter,i(D,N),D.prototype.toJSON=function(){var t=this,e=N.prototype.toJSON.call(this);return e.sortMap=t.sTi,e.relatedColFilters=t.MTi,e.lastGroup=t.ITi,e.lastGroupCount=t.gTi,M(t.lTi)||(e.lTi=t.lTi),e},D.prototype.fromJSON=function(t,e){var n;M(t)||((n=this).sTi=t.sortMap,n.MTi=t.relatedColFilters,n.ITi=t.lastGroup,n.gTi=t.lastGroupCount,M(t.lTi)||(n.lTi=t.lTi),N.prototype.fromJSON.call(this,t,e))},D.prototype.isFiltered=function(t){var e=this;return arguments.length?N.prototype.isFiltered.call(this,t)||N.prototype.isFiltered.call(this,e.NTi(t)):N.prototype.isFiltered.call(this)},D.prototype.Dit=function(t){return N.prototype.isFiltered.call(this,t)},D.prototype.wWe=function(t){var e,n,u,n,t,r,a,c,s,i,o,l,f,f,e,n=this.CWe,u=this.rrt[t],n=n.getDataView(),t=n.Dve(t),r=t.isGroup&&g(t._Ft)?n.ife(t._Ft):n.ife(t);if(u&&0<u.length){if(a=[],(0,h.isCondition)(u[0]))if(u[0].art&&u[0].conType()===d.ConditionType.textCondition)for(o=0;o<u.length;o++)l=u[o].urt,a.push({field:r,value:M(l)?l:l.toISOString()});else for(o=0;o<u.length;o++)f=u[o],f=(0,h.convertCondition)(f,r),a=0===o?f:(f[0].relation="or",a.concat(f));else for(c=[],s=[],i=function(t){var e,n,i,n,o,e,e;if(g(u[t].eAi)){if(e=u[t].eAi,c.push(u[t].value),s.push(e),n=u[t+1],(i=M(n)?-1:n.eAi)<=e)for(n=!0,o=c.slice().reverse(),(n=(e=a[a.length-1])?!((e=e.Vce).length===o.length&&e.every(function(t,e){return t===o[e]})):n)&&a.push({field:r,value:u[t].value,Vce:o});0<s.length&&s[s.length-1]>=i;)c.pop(),s.pop()}else a.push({field:r,value:u[t].value})},o=0;o<u.length;o++)i(o);return a}},D.prototype.pWe=function(){var n,t,e,i,e,o,n=this,t,e=this.CWe.Mf,i=this.rrt,e=e.getDataSource(),o=Object.keys(i).filter(function(t){return!M(i[t])}).reduce(function(t,e){return t.concat(n.wWe(Number(e)))},[]);e.filter(o)},D.prototype.yWe=function(t,e){var n=this.CWe,i=n.Mf;i.suspendPaint(),this.Nct(t,e),n.tDe(),i.resumePaint()},D.prototype.filter=function(t,e){var n,n,i,o,u,r,a,c,s,n=this.CWe;if(n&&(i=n.getDataView())){if(o=this.rrt,u=!M(o[t]),n.qNi()&&(r=function(t){var t=o[t];return t&&t.some(function(t){return g(t.eAi)})})(t))for(a=this.Mct,c=0;c<a.length;c++)if(t!==(s=a[c])&&r(s)){this.yct(s),this.Nct(s,!1);break}n.ize.addUndoChanges({type:v.TableSheetUndoType.FilterColumn,changedData:{col:t,columnName:null==(n=n.fDi(t))?void 0:n.name}}),this.pWe(),this.yWe(t,u)}},D.prototype.unfilter=function(t){var e,e,e=this.CWe;e&&(e=e.getDataView())&&(e.filter(),this.setFilterItemMap(t),this.pWe(),this.yWe(t,!1))},D.prototype.reFilter=function(t){},D.prototype.openFilterDialog=function(t){var e,n,i,o,o,u,u,u,r,o,a,c,e=this.CWe,n=this,i=n.Mf,o=t.col,o=e.getDataView().Dve(o);this.irt=!1,this.ort=!1,u=0<((u=e.getDataView())&&u.length()||0),n.Hct(i)&&u&&(u={sortByValue:!1!==o.allowSort,filterByValue:!1!==o.allowFilterByValue,listFilterArea:!1!==o.allowFilterByList,sortByColor:!1,filterByColor:!1},n.filterDialogVisibleInfo(u),r=new s.TableSheetFilterDialog(i.parent.j2(),i,(0,h.reuseFilterButtonInfo)(t),u,n.dialogOptions,e),i.Cut=r,(o=e.qNi())&&(a=i.outlineColumn.Un,i.outlineColumn.Un=function(){return!0},c=r.close,r.close=function(){i.outlineColumn.Un=a,r.close=c,r.close()},r.STi=function(){for(var t,e,n,i,t=this,e=t.dataSource,n=t.Eat,i=0;i<e.length;i++)n[i].checkedStatus=e[i].status}),r.rQ(),o&&r.STi(),r.jWe)&&r.yut()},D.prototype.Nct=function(t,e){var n=this;e&&n.DFt(t)?n.MTi[t]=n.NTi(t):M(n.MTi[t])||delete n.MTi[t],N.prototype.Nct.call(this,t,e)},D.prototype.setFilterItemMap=function(t,e){var n=this;n.rrt[t]=e||I},D.prototype.removeFilterItems=function(t,e){var n,i,o,n=this.CWe;n&&(o=(i=n.Mf).getDataSource(),n.nAi&&o?N.prototype.removeFilterItems.call(this,t,e):(this.setFilterItemMap(t),this.Cct(t),n.UJe&&o&&o.filter()))},D.prototype.DTi=function(t){for(var e,n,i,o,u,r,a,c,c,s,l,e=this,o=e.Mct,u=e.rrt,r=e.hst,a=0;a<o.length;a++)n=o[a],0<=(i=(M(e.MTi[n])?n:e.MTi[n])+t)?(o[a]=i,c=u[n],M(c)||(u[n]=f,u[i]=c),r&&(c=r[n],M(c)||(delete r[n],r[i]=c))):(o[a]=-1,u[n]=f,r&&delete r[n]);e.Mct=o.filter(function(t){return-1!==t}),o.some(function(t){return-1===t})&&((l=(s=e.Mf).NMi).suspendPaint(),l.resumePaint())},D.prototype.getSortState=function(t){var e=this;return e.GFt(t)&&(t=e.NTi(t)),e.nrt=e.wot(t),N.prototype.getSortState.call(this,t)},D.prototype.SZe=function(){var t=this,e=t.jFt(),n=t.gTi;e?(t.gTi=t.dTi(),n=t.gTi-n,t.DTi(n),t.hTi(-1,n)):(t.gTi=0,t.DTi(-n),t.hTi(-2,-n),t.TTi())},D.prototype.hTi=function(t,e){var n,i,o,u,n=this,i=n.sTi[t];for(u in i)i[u]&&((o=i[u]).index+=e,n.setSortInfo(o))},D.prototype.TTi=function(){var t,e,e=this;e.sTi[-2]?e.sTi=((t={})[-1]=e.sTi[-1],t):e.sTi={}},D.prototype.eIi=function(){return this.Mf.getDataSource()},D.prototype.HMi=function(){return this.Mf.getDataSource().getColumnInfos()},D.prototype.fDi=function(t){return this.Mf.NMi.fDi(t)},D.prototype.sze=function(){return this.Mf.NMi.sze()},D.prototype.dTi=function(){return this.HMi().filter(function(t){return t.isGroup}).length},D.prototype.jFt=function(){return this.Mf.NMi.jFt},D.prototype.bTi=function(t){var t=this.fDi(t);return t&&t.OFt},D.prototype.GFt=function(t){var t=this.fDi(t);return t&&t.GFt},D.prototype.DFt=function(t){var t=this.fDi(t);return t&&t.DFt},D.prototype.tNi=function(){return this.Mf.NMi},D.prototype.NTi=function(t,e){var n=this.fDi(t);return n&&(this.sze()&&!e?t:n._Ft)},D.prototype.vZe=function(t){var e,n,n,i,o,u,r,e=this,n=e.ATi(t),n=e.sTi[n],i=e.sTi[-2],o=n&&n[t],u=i&&i[t];(o||u)&&(r=e.tNi()).ize.addUndoChanges({type:v.TableSheetUndoType.SortMapChanged,oldData:e.xWe()}),n&&n[t]&&delete n[t],i&&i[t]&&delete i[t]},D.prototype.wot=function(t){var e=this,n=e.ATi(t),e=e.sTi[n];return e&&e[t]?e[t]:f},D.prototype.ATi=function(t){var e=this,e;return e.jFt()&&(e=e.bTi(t),!M(e))?e:-1},D.prototype.GJe=function(){var t,e,n,i,o,u,r,t,e=this.sTi,n=[];for(i in e)if(-2!=+i)for(u in o=e[i])o.hasOwnProperty(u)&&(r=o[u],n.push(r));return n},D.prototype.Gct=function(t){return arguments&&0<arguments.length?this:N.prototype.Gct.call(this)},D.prototype.xWe=function(){var t;return null!=(t=(0,r.RF)(this.sTi))?t:{}},D.prototype.Jze=function(t){this.sTi=t},D.prototype.qO=function(r,a,t){var c,e,s,n;for(n in N.prototype.qO.call(this,r,a,t),c=this.sTi,e=function(t){var e,n,i,o,u;if(c.hasOwnProperty(t)){for(i in n=[],e=c[t])e.hasOwnProperty(i)&&(o=e[i]).index>=r&&(s.GFt(u=+i+a)?o.index=s.NTi(u,!0):o.index+=a,n.push({col:i,sortInfo:o}));n.forEach(function(t){var t=t.col;delete e[t]}),n.forEach(function(t){var t=t.sortInfo;e[t.index]=t}),0===Object.keys(e).length&&delete c[t]}},s=this,c)e(n)},D.prototype.NP=function(a,c){var s,t,l,e;for(e in N.prototype.NP.call(this,a,c),s=this.sTi,t=function(t){var e,n,i,o,u,r;if(s.hasOwnProperty(t)){for(i in n=[],e=s[t])e.hasOwnProperty(i)&&(u=(o=e[i]).index,r=a+c,a<=u&&u<r?l.DFt(i)?(o.index=l.NTi(i,!0),o.index-=c,n.push({col:i,sortInfo:o})):n.push({col:i}):r<=u&&(o.index-=c,n.push({col:i,sortInfo:o})));n.forEach(function(t){var t=t.col;delete e[t]}),n.forEach(function(t){var t=t.sortInfo;t&&(e[t.index]=t)}),0===Object.keys(e).length&&delete s[t]}},l=this,s)t(e)},D.prototype.KWe=function(t){this.setFilterItemMap(t)},D.prototype.setSortInfo=function(t){var e,n,i,o,n=this,i=t.index;n.GFt(i)&&(i=n.NTi(i),t.index=i),o=n.ATi(i),n.sTi[o]=((e={})[i]=t,e),n.vTi(t,o)},D.prototype.vTi=function(t,e){var e,n,i,n=this,i=t.index;-1===e||n.DFt(i)||n.GFt(i)?(n.DFt(i)&&(i=n.NTi(i)),n.sTi[-2]=((e={})[i]=b(b({},t),{index:i}),e)):delete n.sTi[-2]},D.prototype.BDi=function(){var t,i,t,o,u,r,t,t=this.Mf,i=t.getDataSource(),t=t.rowFilter(),o=t&&t.sTi,u={};return o&&((t=function(t){var e,n,e=o[t];if(!M(e))for(n in u[t]={},e)e.hasOwnProperty(n)&&(r=i.uPt(n),u[t][r]=n)})(r=-1),t(-2)),u},D.prototype.RDi=function(a){var t,c,e,s,t,t=this.Mf,c=t.getDataSource(),e,s=t.rowFilter().sTi,t=function(t){var e,n,i,o,i,u,r,e=a[t];for(n in e)e.hasOwnProperty(n)&&(o=+e[i=+n],(i=c.BPt(i))!==o)&&(u=s[t],M(u)||(r=u[o],M(r))||(delete u[o],u[r.index=i]=r))};t(-1),t(-2)},D.prototype.nTi=function(t){var a,c,s,e,n,i,o,u,r,l,f,d,h,g,h;if(t&&0<t.length){for(a=this,c=[],s=[],e=t.map(function(t){return{oldIndex:t.oldIndex,newIndex:t.newIndex}}),n=function(t){var e,n,i,i,t,o,u,r,i,e=t.oldIndex,n=b({},t);for(o in s.push(n),-1<(i=a.Mct.indexOf(e))&&c.push([i,t.newIndex]),i=a.rrt[e],M(i)||(n.filterItemMapValue=i,a.rrt[e]=I),t=a.hst&&a.hst[e],!M(t)&&0<t.length&&(n.filteredColumnCacheValue=t,delete a.hst[e]),a.MTi)a.MTi.hasOwnProperty(o)&&(u=a.MTi[o])===e&&(n.relatedColFiltersValue=o,delete a.MTi[o]);M(a.sTi)||(r=a.sTi,(i=function(t){var t=r[t];M(t)||M(t[e])||(n.sortMapValue=t[e],delete t[e])})(-1),i(-2))},i=0,o=t;i<o.length;i++)n(u=o[i]);for(r=function(e){var n,t,i,o,u,r,t,n=e.newIndex,t=e.filterItemMapValue,i=e.filteredColumnCacheValue,o=e.relatedColFiltersValue,u=e.sortMapValue;M(t)||(a.rrt[n]=t),M(i)||(a.hst[n]=i),M(o)||(a.MTi[o]=n),M(a.sTi)||M(u)||(r=a.sTi,(t=function(t){var t=r[t];M(t)||(t[e.sortMapValue.index=n]=e.sortMapValue)})(-1),t(-2))},l=0,f=s;l<f.length;l++)r(u=f[l]);for(d=0;d<c.length;d++)g=(h=c[d])[0],h=h[1],a.Mct[g]=h;this.tNi().ize.addUndoChanges({type:v.TableSheetUndoType.UpdateFilterOnMoved,changedData:e})}},D.prototype.VIi=function(n){var e,i,o,t,u,r,a,e=this,i=e.eIi(),o=[],t=e.HMi(),u=[];t.forEach(function(t,e){t.RBt===n&&o.push(i.BPt(e))}),o.forEach(function(t){e.AWe(t)}),a=o[(r=o.length)-1],0<r&&t.forEach(function(t,e){var e=i.BPt(e);a<e&&u.push({oldIndex:e,newIndex:e-r})}),e.nTi(u)},D.prototype.AWe=function(n){var t,t,e,i,t,o,u,r,t,e=this,i={index:n,filterItemMap:{oldValue:null==(t=e.rrt)?void 0:t[n]},filteredColumns:{},filteredColumnCache:{oldValue:null==(t=e.hst)?void 0:t[n]},relatedColFilters:[],sortMap:[]};for(o in e.rrt[n]&&(e.rrt[n]=I,t=e.Mct.indexOf(n),i.filteredColumns={index:t,oldValue:e.Mct[t]},e.Mct.splice(t,1)),e.hst&&e.hst[n]&&delete e.hst[n],e.MTi)e.MTi.hasOwnProperty(o)&&(u=e.MTi[o])===n&&(i.relatedColFilters.push({col:o,value:e.MTi[o]}),delete e.MTi[o]);M(e.sTi)||(r=e.sTi,(t=function(t){var e=r[t];M(e)||M(e[n])||(i[t].push({level:t,index:n,value:e[n]}),delete e[n])})(-1),t(-2)),this.tNi().ize.addUndoChanges({type:v.TableSheetUndoType.RemoveCrosRowFilterInfo,changedData:i})},D.prototype.Xze=function(t){var e,n,i,o,u,u,t,r,a,e=t.index,n=t.filterItemMap,i=t.filteredColumnCache,o=t.filteredColumns,u=t.relatedColFilters,u=void 0===u?[]:u,t=t.sortMap,r=void 0===t?[]:t,a=this;a.rrt&&(a.rrt[e]=n.oldValue),M(null==o?void 0:o.index)||(a.Mct[o.index]=o.oldValue),a.hst&&(a.hst[e]=i.oldValue),u.forEach(function(t){var e=t.col,t=t.value;a.MTi[e]=t}),r.forEach(function(t){var e=t.level,n=t.index,t=t.value;r&&r[e]&&(r[e][n]=t)})},D.prototype.UIi=function(){var i,t,o,u,e,t,i=this,t=this,o=t.eIi(),u=t.HMi();this.lTi={},Object.keys(this.rrt).forEach(function(t){var e,e;M(i.rrt[t])||(e=o.uPt(t),e=u[e].value,M(i.lTi[e])&&(i.lTi[e]={}),i.lTi[e].filterItemMap=i.rrt[t])}),M(this.hst)||Object.keys(this.hst).forEach(function(t){var e,e,e=o.uPt(t),e=u[e].value;M(i.lTi[e])&&(i.lTi[e]={}),i.lTi[e].filteredColumnCache=i.hst[t]}),Object.keys(this.MTi).forEach(function(t){var e,n,e=o.uPt(t),n=u[e].value;M(i.lTi[n])&&(i.lTi[n]={}),e=o.uPt(i.MTi[t]),i.lTi[n].relatedColFilter=u[e].value}),M(this.sTi)||(e=this.sTi,(t=function(t){var n=e[t];M(n)||Object.keys(n).forEach(function(t){var e,e,e=o.uPt(t),e=u[e].value;M(i.lTi[e])&&(i.lTi[e]={}),M(i.lTi[e].sortMap)&&(i.lTi[e].sortMap={}),i.lTi[e].sortMap=n[t]})})(-1),t(-2)),0===Object.keys(this.lTi).length&&delete this.lTi},D.prototype.QIi=function(){var u,t,e,r,a,c,u=this,t=this,e=t.Mf,r=t.eIi(),a=this.lTi,c=t.HMi();M(a)||(delete t.lTi,this.rrt=[],this.Mct=[],this.hst={},this.MTi={},M(this.sTi)||(M(this.sTi[-1])||(this.sTi[-1]={}),M(this.sTi[-2]))||(this.sTi[-2]={}),Object.keys(a).forEach(function(e){var n,i,o,t,n=a[e],i=(0,h.findIndex)(c,function(t){return t.value===e});M(i)||(i=r.BPt(i),M(n.filterItemMap)||(u.rrt[i]=n.filterItemMap,u.Mct.push(i),u.hst[i]=n.filteredColumnCache),M(n.relatedColFilter)||(u.MTi[i]=r.BPt((0,h.findIndex)(c,function(t){return t.value===n.relatedColFilter}))),M(u.sTi))||M(n.sortMap)||(o=u.sTi,(t=function(t){var e;o[t][n.sortMap.index=i]=n.sortMap})(-1),t(-2))}),e.repaint())},e.GroupHideRowFilter=D},"./dist/plugins/tableSheet/tablesheet-override.js":function(t,e,n){var i,o,b,u,r,a,c,s,v,M,n,l,a,I,m,f,N,d,h,g,D;function j(t,e,n){var i=D.call(this,t,e,n,[new b.Range(-1,-1,-1,-1)])||this;return i.nT=b.SheetArea.colHeader,Object.defineProperty(i,"sheetArea",{get:function(){return i.nT}}),i}function C(t){return{field:t.rYt,ascending:t.ascending,compare:t.compareFunction}}function w(t){for(var e,n,i,o,e,n=0,i=f(h);n<i.length;n++)o=i[n],h[o].call(t)}function p(t){var t=t.Mf;t.hA=b.ClipboardPasteOptions.values,t.lF=b.CopyToOptions.value,t.JT=!1,t.UB=!1}function x(t,e,n,i,o,u){var r,a,i,a,n,r,a,i,c,s,l,a,r=t.NMi;return r.isAlternatingRowStyleColumn(n)&&(a=r.FDi(n),r)&&(I(i)||i===b.SheetArea.viewport)&&!t.oNi&&!a&&0<=e&&0<=n&&(i=r.options.alternatingRowOptions)&&(a=i.step||[1,1],n=I(a[0])?1:a[0],r=I(a[1])?1:a[1],a=i.style,!I(a))&&(c=i=void 0,Array.isArray(a)?(i=a[0],c=a[1]):i=a,u=!0,a=void 0,a=(l=Math.floor(e%(s=n+r)))<n?i:c)&&(o.h5(a,!1,45),(0,b.composeParentStyle)(a,o,t,!1,45,!0)),u}i=this&&this.__extends||(g=function(t,e){return(g=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}g(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),Object.defineProperty(e,"__esModule",{value:!0}),e.overrideProperties=e.overrideMethods=e.ColumnHeaderStateRule=e.SR=void 0,o=n("Common"),b=n("Core"),u=n("ConditionalFormatting"),r=n("./dist/plugins/tableSheet/tableSheet.interface.js"),a=n("./dist/plugins/tableSheet/tableSheet.res.en.js"),c=n("./dist/plugins/tableSheet/tableSheet-grouping.js"),s=n("./dist/plugins/tableSheet/tablesheet-filter.js"),v=n("./dist/plugins/tableSheet/tablesheet-filter-utils.js"),M=n("./dist/plugins/tableSheet/tableSheet-undo.js"),e.SR={en:a},n=new o.Common.ResourceManager(e.SR,"TableSheet"),l=n.getResource.bind(n),a=o.Common.lt,I=a.ht,m=a.q8,f=Object.keys,N=null,D=u.StateRule,i(j,D),e.ColumnHeaderStateRule=j,h={aL:function(){var t,e,n,t,e=this.Mf,n=new s.GroupHideRowFilter(new b.Range(-1,-1,-1,-1),this);n.filterDialogVisibleInfo({sortByValue:!0,sortByColor:!1,filterByColor:!1,filterByValue:!0,listFilterArea:!0}),e.rowFilter(n)},OTi:function(){var h=this,g=h.Mf;g.sortRangeOriginal=g.sortRange,g.sortRange=function(t,e,n,i,o,u,r,a,c){var s,l,f,d,u,s,l=this.getDataSource();return!!l&&(d=(f=g.rowFilter()).xWe(),u=u.map(function(t){return f.setSortInfo(t),t.rYt=h.dDi(t.index),C(t)}),f.jFt()&&(u=f.GJe().map(C)),l.sort(u),this.ize.addUndoChanges({type:M.TableSheetUndoType.SortMapChanged,oldData:d}),!0)}},ETi:function(){var t,o,i,n,t=this,o=this,i=o.Mf;i.onItemRemoved=function(t){this.zw()},i.onItemGotten=function(t,e,n){var i;return t&&t.isGroup&&!I(t.OFt)?o.gze()===r.GroupLayoutMode.tabular&&o.DMi(t.OFt,e)?n:N:o.VDi(e)?n:void 0},i.TF=function(){return t},i.hP=function(){var t=this.parent;return!t||t.getActiveSheetTab()===this.NMi},i.FT=function(){return l().Exp_InvalidOperationInProtectForTableSheet},I(i.UTi)&&(i.UTi=i.jT,i.jT=function(){for(var t,e,n,t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.sw&&((n=this.C6(this.sw.rowViewportIndex,this.sw.colViewportIndex))===b.SheetArea.rowHeader||n===b.SheetArea.corner)||i.UTi.apply(i,t)}),i.Ci=function(t,e,n){var t,t=n===b.SheetArea.rowHeader&&o.CDi(t,e)?o.ODi(t):i.CP(t,e,n);return t},n=i.AO.bind(i),i.AO=function(){var t=o.getDataView(),e;return 0<(t&&t.length()||0)?n():[]}},GTi:function(){var h,g,h=this,g=this.Mf;g.getCompositeStyle=function(t,e,n,i,o,u,r){var i,a,c,s,l,f,i,d;if(void 0===r&&(r={}),I(n)&&(n=3),a=this,c=new b.Style,s=!1,l=h.e4i(t,e,n),0!==n){if(s=a.IL(t,e,n,c,s,i),r.hasTableStyle)return c;s=a.xL(t,e,n,c,s,r.table,r.isForFilter),s=(i=a.NL(t,e,n,c,s,r.pivotTable,r.isForFilter,r.pivotTableStyle)).changed,c=i.destInfo,s=a.kL(t,n,c,s,o),(f=1===n&&t<g.Ut.getFreeAreaRowCount(n))||l||(s=a.DL(e,n,c,s,u)),i=m(r.rowSpacingIndex),l||i||(s=x(a,t,e,n,c,s))}return a._L(n,c,s,r.ignoreSheet),(0,v.setInsertedRowCrossStyle)(h,t,e,c,n),l&&(c.cellButtons=[],c.locked=!0),3===n&&h.iDi(t,e)&&(c.locked=!0),3!==n||!h.zDi(t)||I(u)||I(u.formatter)||(d=void 0,-1<(d="string"==typeof u.formatter?u.formatter:u.formatter.formatCached).indexOf("=")&&(c.formatter=N)),c}},l0t:function(){var r,u,o,t,a,r=this,u=r.Mf,o=u._1,t=o.getStateMethods;t[4]=function(t,e,n,i,o){if(n)return!1;if(o===b.SheetArea.colHeader){if(!(0,c.nMi)(this,t,e))return!1;var n=(0,v.getColumnInfo)(r,e);if(n)return n.readonly}return r.pNi(e)},t[1024]=function(t,e,n,i,o){return!n&&o===b.SheetArea.colHeader&&!!(0,c.nMi)(this,t,e)&&e<u.frozenColumnCount()},t[2048]=function(t,e,n,i,o){var n;return!n&&o===b.SheetArea.colHeader&&!!(0,c.nMi)(this,t,e)&&!!(n=(0,v.getColumnInfo)(r,e))&&n.isPrimaryKey},t[4096]=function(t,e,n,i,o){var n,u;return!n&&o===b.SheetArea.colHeader&&!!(0,c.nMi)(this,t,e)&&!!(n=(0,v.getColumnInfo)(r,e))&&(u=!(n.isPrimaryKey||n.readonly))&&n.required},t[b.RowColumnStates.dirty]=function(t,e,n){var i=r.getDataView();return!(!n||!i)&&(i.isUpdated(t)||i.isInserted(t))},t[b.RowColumnStates.inserted]=function(t){var e=r.getDataView();return e&&e.isInserted(t)},t[256]=function(t){var e=r.getDataView();return e&&e.isUpdated(t)},a=t[b.RowColumnStates.selected],t[b.RowColumnStates.selected]=function(t,e,n,i){if("function"==typeof a)return a.call(o.context,t,e,n,i)||r.aDi(t)}}},e.overrideMethods=w,e.overrideProperties=p},DataManager:function(t){t.exports=e.Data},Common:function(t){t.exports=e.Spread},CalcEngine:function(t){t.exports=e.Spread.CalcEngine},Core:function(t){t.exports=e.Spread.Sheets},AutoMerge:function(t){t.exports=e.Spread.Sheets.AutoMerge},Bindings:function(t){t.exports=e.Spread.Sheets.Bindings},SheetsCalc:function(t){t.exports=e.Spread.Sheets.CalcEngine},CellTypes:function(t){t.exports=e.Spread.Sheets.CellTypes},ConditionalFormatting:function(t){t.exports=e.Spread.Sheets.ConditionalFormatting},Validation:function(t){t.exports=e.Spread.Sheets.DataValidation},Filters:function(t){t.exports=e.Spread.Sheets.Filter},FormulaTextBox:function(t){t.exports=e.Spread.Sheets.FormulaTextBox},Print:function(t){t.exports=e.Spread.Sheets.Print},StatusBar:function(t){t.exports=e.Spread.Sheets.StatusBar},Tables:function(t){t.exports=e.Spread.Sheets.Tables}},i={},t=o("./dist/plugins/tableSheet/tableSheet.entry.js"),(((e=void 0===e?{}:e).Spread=e.Spread||{}).Sheets=e.Spread.Sheets||{}).TableSheet=t}()});
|